{"version":3,"sources":["node_modules/file-saver/dist/FileSaver.min.js","node_modules/mapbox-gl/dist/mapbox-gl.js","node_modules/@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.js","node_modules/@mapbox/mapbox-gl-draw-static-mode/index.js","node_modules/xtend/immutable.js","node_modules/fuzzy/lib/fuzzy.js","node_modules/suggestions/src/list.js","node_modules/suggestions/src/suggestions.js","node_modules/suggestions/index.js","node_modules/lodash.debounce/index.js","node_modules/events/events.js","node_modules/@mapbox/mapbox-gl-geocoder/lib/exceptions.js","node_modules/@mapbox/mapbox-sdk/lib/helpers/parse-link-header.js","node_modules/@mapbox/mapbox-sdk/lib/classes/mapi-response.js","node_modules/@mapbox/mapbox-sdk/lib/constants.js","node_modules/@mapbox/mapbox-sdk/lib/classes/mapi-error.js","node_modules/@mapbox/mapbox-sdk/lib/helpers/parse-headers.js","node_modules/@mapbox/mapbox-sdk/lib/browser/browser-layer.js","node_modules/base-64/base64.js","node_modules/@mapbox/parse-mapbox-token/index.js","node_modules/@mapbox/mapbox-sdk/node_modules/eventemitter3/index.js","node_modules/@mapbox/mapbox-sdk/lib/helpers/url-utils.js","node_modules/@mapbox/mapbox-sdk/lib/classes/mapi-request.js","node_modules/@mapbox/mapbox-sdk/lib/classes/mapi-client.js","node_modules/@mapbox/mapbox-sdk/lib/browser/browser-client.js","node_modules/@mapbox/mapbox-sdk/index.js","node_modules/@mapbox/fusspot/node_modules/is-plain-obj/index.js","node_modules/@mapbox/fusspot/lib/index.js","node_modules/@mapbox/mapbox-sdk/services/service-helpers/validator.js","node_modules/@mapbox/mapbox-sdk/services/service-helpers/pick.js","node_modules/@mapbox/mapbox-sdk/services/service-helpers/object-map.js","node_modules/@mapbox/mapbox-sdk/services/service-helpers/stringify-booleans.js","node_modules/@mapbox/mapbox-sdk/services/service-helpers/create-service-factory.js","node_modules/@mapbox/mapbox-sdk/services/geocoding.js","node_modules/nanoid/url-alphabet/index.js","node_modules/nanoid/index.browser.js","node_modules/@mapbox/mapbox-gl-geocoder/lib/events.js","node_modules/@mapbox/mapbox-gl-geocoder/lib/localization.js","node_modules/subtag/subtag.js","node_modules/@mapbox/mapbox-gl-geocoder/lib/geolocation.js","node_modules/@mapbox/mapbox-gl-geocoder/lib/utils.js","node_modules/@mapbox/mapbox-gl-geocoder/lib/index.js","node_modules/@angular/core/fesm2022/primitives/signals.mjs","node_modules/rxjs/dist/esm/internal/util/isFunction.js","node_modules/rxjs/dist/esm/internal/util/createErrorClass.js","node_modules/rxjs/dist/esm/internal/util/UnsubscriptionError.js","node_modules/rxjs/dist/esm/internal/util/arrRemove.js","node_modules/rxjs/dist/esm/internal/Subscription.js","node_modules/rxjs/dist/esm/internal/config.js","node_modules/rxjs/dist/esm/internal/scheduler/timeoutProvider.js","node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js","node_modules/rxjs/dist/esm/internal/util/noop.js","node_modules/rxjs/dist/esm/internal/NotificationFactories.js","node_modules/rxjs/dist/esm/internal/util/errorContext.js","node_modules/rxjs/dist/esm/internal/Subscriber.js","node_modules/rxjs/dist/esm/internal/symbol/observable.js","node_modules/rxjs/dist/esm/internal/util/identity.js","node_modules/rxjs/dist/esm/internal/util/pipe.js","node_modules/rxjs/dist/esm/internal/Observable.js","node_modules/rxjs/dist/esm/internal/util/lift.js","node_modules/rxjs/dist/esm/internal/operators/OperatorSubscriber.js","node_modules/rxjs/dist/esm/internal/operators/refCount.js","node_modules/rxjs/dist/esm/internal/observable/ConnectableObservable.js","node_modules/rxjs/dist/esm/internal/util/ObjectUnsubscribedError.js","node_modules/rxjs/dist/esm/internal/Subject.js","node_modules/rxjs/dist/esm/internal/BehaviorSubject.js","node_modules/rxjs/dist/esm/internal/scheduler/dateTimestampProvider.js","node_modules/rxjs/dist/esm/internal/ReplaySubject.js","node_modules/rxjs/dist/esm/internal/scheduler/Action.js","node_modules/rxjs/dist/esm/internal/scheduler/intervalProvider.js","node_modules/rxjs/dist/esm/internal/scheduler/AsyncAction.js","node_modules/rxjs/dist/esm/internal/Scheduler.js","node_modules/rxjs/dist/esm/internal/scheduler/AsyncScheduler.js","node_modules/rxjs/dist/esm/internal/scheduler/async.js","node_modules/rxjs/dist/esm/internal/observable/empty.js","node_modules/rxjs/dist/esm/internal/util/isScheduler.js","node_modules/rxjs/dist/esm/internal/util/args.js","node_modules/tslib/tslib.es6.mjs","node_modules/rxjs/dist/esm/internal/util/isArrayLike.js","node_modules/rxjs/dist/esm/internal/util/isPromise.js","node_modules/rxjs/dist/esm/internal/util/isInteropObservable.js","node_modules/rxjs/dist/esm/internal/util/isAsyncIterable.js","node_modules/rxjs/dist/esm/internal/util/throwUnobservableError.js","node_modules/rxjs/dist/esm/internal/symbol/iterator.js","node_modules/rxjs/dist/esm/internal/util/isIterable.js","node_modules/rxjs/dist/esm/internal/util/isReadableStreamLike.js","node_modules/rxjs/dist/esm/internal/observable/innerFrom.js","node_modules/rxjs/dist/esm/internal/util/executeSchedule.js","node_modules/rxjs/dist/esm/internal/operators/observeOn.js","node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js","node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js","node_modules/rxjs/dist/esm/internal/observable/from.js","node_modules/rxjs/dist/esm/internal/observable/of.js","node_modules/rxjs/dist/esm/internal/observable/throwError.js","node_modules/rxjs/dist/esm/internal/util/isObservable.js","node_modules/rxjs/dist/esm/internal/util/EmptyError.js","node_modules/rxjs/dist/esm/internal/util/isDate.js","node_modules/rxjs/dist/esm/internal/operators/map.js","node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js","node_modules/rxjs/dist/esm/internal/util/argsArgArrayOrObject.js","node_modules/rxjs/dist/esm/internal/util/createObject.js","node_modules/rxjs/dist/esm/internal/observable/combineLatest.js","node_modules/rxjs/dist/esm/internal/operators/mergeInternals.js","node_modules/rxjs/dist/esm/internal/operators/mergeMap.js","node_modules/rxjs/dist/esm/internal/operators/mergeAll.js","node_modules/rxjs/dist/esm/internal/operators/concatAll.js","node_modules/rxjs/dist/esm/internal/observable/concat.js","node_modules/rxjs/dist/esm/internal/observable/defer.js","node_modules/rxjs/dist/esm/internal/observable/forkJoin.js","node_modules/rxjs/dist/esm/internal/observable/fromEvent.js","node_modules/rxjs/dist/esm/internal/observable/iif.js","node_modules/rxjs/dist/esm/internal/observable/timer.js","node_modules/rxjs/dist/esm/internal/observable/interval.js","node_modules/rxjs/dist/esm/internal/observable/merge.js","node_modules/rxjs/dist/esm/internal/operators/filter.js","node_modules/rxjs/dist/esm/internal/operators/catchError.js","node_modules/rxjs/dist/esm/internal/operators/scanInternals.js","node_modules/rxjs/dist/esm/internal/operators/concatMap.js","node_modules/rxjs/dist/esm/internal/operators/debounceTime.js","node_modules/rxjs/dist/esm/internal/operators/defaultIfEmpty.js","node_modules/rxjs/dist/esm/internal/operators/take.js","node_modules/rxjs/dist/esm/internal/operators/mapTo.js","node_modules/rxjs/dist/esm/internal/operators/distinctUntilChanged.js","node_modules/rxjs/dist/esm/internal/operators/throwIfEmpty.js","node_modules/rxjs/dist/esm/internal/operators/finalize.js","node_modules/rxjs/dist/esm/internal/operators/first.js","node_modules/rxjs/dist/esm/internal/operators/takeLast.js","node_modules/rxjs/dist/esm/internal/operators/last.js","node_modules/rxjs/dist/esm/internal/operators/scan.js","node_modules/rxjs/dist/esm/internal/operators/share.js","node_modules/rxjs/dist/esm/internal/operators/shareReplay.js","node_modules/rxjs/dist/esm/internal/operators/startWith.js","node_modules/rxjs/dist/esm/internal/operators/switchMap.js","node_modules/rxjs/dist/esm/internal/operators/takeUntil.js","node_modules/rxjs/dist/esm/internal/operators/tap.js","node_modules/rxjs/dist/esm/internal/operators/throttle.js","node_modules/rxjs/dist/esm/internal/operators/throttleTime.js","node_modules/@angular/core/fesm2022/core.mjs","node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js","package.json","src/environments/environment.prod.ts","node_modules/@angular/common/fesm2022/common.mjs","node_modules/@angular/common/fesm2022/http.mjs","node_modules/@angular/platform-browser/fesm2022/platform-browser.mjs","node_modules/@angular/router/fesm2022/router.mjs","node_modules/@syncfusion/ej2-angular-base/src/util.js","node_modules/@syncfusion/ej2-angular-base/src/complex-array-base.js","node_modules/@syncfusion/ej2-angular-base/src/component-base.js","node_modules/@syncfusion/ej2-angular-base/src/form-base.js","node_modules/@syncfusion/ej2-angular-base/src/template.js","node_modules/@syncfusion/ej2-data/dist/es6/ej2-data.es5.js","node_modules/@syncfusion/ej2-buttons/dist/es6/ej2-buttons.es5.js","node_modules/@syncfusion/ej2-lists/dist/es6/ej2-lists.es5.js","node_modules/@syncfusion/ej2-popups/dist/es6/ej2-popups.es5.js","node_modules/@syncfusion/ej2-splitbuttons/dist/es6/ej2-splitbuttons.es5.js","node_modules/@syncfusion/ej2-inputs/dist/es6/ej2-inputs.es5.js","node_modules/@syncfusion/ej2-navigations/dist/es6/ej2-navigations.es5.js","node_modules/@syncfusion/ej2-angular-navigations/fesm2020/syncfusion-ej2-angular-navigations.mjs","node_modules/@ng-idle/core/fesm2022/ng-idle-core.mjs","src/app/core/routing/page-names.ts","src/app/core/routing/route-names.ts","node_modules/@syncfusion/ej2-angular-popups/fesm2020/syncfusion-ej2-angular-popups.mjs","node_modules/@ngx-translate/core/dist/fesm2022/ngx-translate-core.mjs","src/app/base/shared/modal/modal.service.ts","src/app/base/shared/modal/modal.component.ts","src/app/base/shared/modal/modal.component.html","node_modules/@syncfusion/ej2-notifications/dist/es6/ej2-notifications.es5.js","node_modules/@syncfusion/ej2-angular-notifications/fesm2020/syncfusion-ej2-angular-notifications.mjs","node_modules/luxon/src/errors.js","node_modules/luxon/src/impl/formats.js","node_modules/luxon/src/zone.js","node_modules/luxon/src/zones/systemZone.js","node_modules/luxon/src/zones/IANAZone.js","node_modules/luxon/src/impl/locale.js","node_modules/luxon/src/zones/fixedOffsetZone.js","node_modules/luxon/src/zones/invalidZone.js","node_modules/luxon/src/impl/zoneUtil.js","node_modules/luxon/src/impl/digits.js","node_modules/luxon/src/settings.js","node_modules/luxon/src/impl/invalid.js","node_modules/luxon/src/impl/conversions.js","node_modules/luxon/src/impl/util.js","node_modules/luxon/src/impl/english.js","node_modules/luxon/src/impl/formatter.js","node_modules/luxon/src/impl/regexParser.js","node_modules/luxon/src/duration.js","node_modules/luxon/src/interval.js","node_modules/luxon/src/info.js","node_modules/luxon/src/impl/diff.js","node_modules/luxon/src/impl/tokenParser.js","node_modules/luxon/src/datetime.js","src/app/base/models/models.swagger.generated.ts","src/app/base/services/toast.service.ts","src/app/base/toasts/toast/toast.component.ts","src/app/base/toasts/toast/toast.component.html","src/app/base/toasts/toasts.component.ts","src/app/base/toasts/toasts.component.html","src/app/base/spinner/spinner.service.ts","src/app/base/spinner/spinner.component.ts","src/app/base/spinner/spinner.component.html","node_modules/@syncfusion/ej2-angular-splitbuttons/fesm2020/syncfusion-ej2-angular-splitbuttons.mjs","src/app/base/shared/string-helper.ts","src/app/base/services/parking-process-info.service.ts","src/app/base/shared/parking-indicator/parking-indicator.component.ts","src/app/base/shared/parking-indicator/parking-indicator.component.html","src/app/base/http/login-proxy.service.ts","node_modules/cldr-data/supplemental/numberingSystems.json","node_modules/cldr-data/supplemental/weekData.json","src/app/base/services/syncfusion-translation.service.ts","src/app/base/services/auth.service.ts","src/app/base/services/language.service.ts","src/app/base/language-selector/language-selector.component.ts","src/app/base/language-selector/language-selector.component.html","src/app/base/services/report-visibility.service.ts","src/app/base/navigation/navigation.component.ts","src/app/base/navigation/navigation.component.html","node_modules/@ng-idle/keepalive/fesm2022/ng-idle-keepalive.mjs","src/app/base/services/wide-format.service.ts","src/app/base/services/prevent-shrink.service.ts","src/app/app.component.ts","src/app/app.component.html","node_modules/@angular/forms/fesm2022/forms.mjs","node_modules/@fortawesome/fontawesome-svg-core/index.mjs","node_modules/@fortawesome/angular-fontawesome/fesm2022/angular-fontawesome.mjs","node_modules/@ngx-translate/http-loader/dist/fesm2022/ngx-translate-http-loader.mjs","src/app/base/models/models.ts","src/app/base/http/http-json-utilities.service.ts","src/app/base/activity/activity.service.ts","src/app/base/http/http-config.service.ts","src/app/base/services/auth.interceptor.ts","src/app/base/services/app-error-messages.service.ts","src/app/base/services/enum-translation.service.ts","node_modules/@syncfusion/ej2-dropdowns/dist/es6/ej2-dropdowns.es5.js","node_modules/@syncfusion/ej2-calendars/dist/es6/ej2-calendars.es5.js","node_modules/@syncfusion/ej2-grids/dist/es6/ej2-grids.es5.js","node_modules/@syncfusion/ej2-angular-grids/fesm2020/syncfusion-ej2-angular-grids.mjs","src/app/core/routing/error-types.ts","src/app/base/shared/grid-base/show-inactive.service.ts","src/app/base/services/client/client.service.ts","node_modules/ngx-filesaver/fesm2020/ngx-filesaver.mjs","node_modules/ngx-lightbox/lightbox-event.service.js","node_modules/ngx-lightbox/lightbox.component.js","node_modules/ngx-lightbox/lightbox-config.service.js","node_modules/ngx-lightbox/lightbox-overlay.component.js","node_modules/ngx-lightbox/lightbox.service.js","node_modules/ngx-lightbox/lightbox.module.js","src/app/base/resolver/translation-loader.resolver.ts","node_modules/ts-custom-error/dist/custom-error.mjs","node_modules/@zxing/library/esm/core/Exception.js","node_modules/@zxing/library/esm/core/ArgumentException.js","node_modules/@zxing/library/esm/core/IllegalArgumentException.js","node_modules/@zxing/library/esm/core/BinaryBitmap.js","node_modules/@zxing/library/esm/core/ChecksumException.js","node_modules/@zxing/library/esm/core/Binarizer.js","node_modules/@zxing/library/esm/core/util/System.js","node_modules/@zxing/library/esm/core/IndexOutOfBoundsException.js","node_modules/@zxing/library/esm/core/ArrayIndexOutOfBoundsException.js","node_modules/@zxing/library/esm/core/util/Arrays.js","node_modules/@zxing/library/esm/core/util/Integer.js","node_modules/@zxing/library/esm/core/common/BitArray.js","node_modules/@zxing/library/esm/core/DecodeHintType.js","node_modules/@zxing/library/esm/core/FormatException.js","node_modules/@zxing/library/esm/core/common/CharacterSetECI.js","node_modules/@zxing/library/esm/core/UnsupportedOperationException.js","node_modules/@zxing/library/esm/core/util/StringEncoding.js","node_modules/@zxing/library/esm/core/common/StringUtils.js","node_modules/@zxing/library/esm/core/util/StringBuilder.js","node_modules/@zxing/library/esm/core/common/BitMatrix.js","node_modules/@zxing/library/esm/core/NotFoundException.js","node_modules/@zxing/library/esm/core/common/GlobalHistogramBinarizer.js","node_modules/@zxing/library/esm/core/common/HybridBinarizer.js","node_modules/@zxing/library/esm/core/LuminanceSource.js","node_modules/@zxing/library/esm/core/InvertedLuminanceSource.js","node_modules/@zxing/library/esm/browser/HTMLCanvasElementLuminanceSource.js","node_modules/@zxing/library/esm/browser/VideoInputDevice.js","node_modules/@zxing/library/esm/browser/BrowserCodeReader.js","node_modules/@zxing/library/esm/core/Result.js","node_modules/@zxing/library/esm/core/BarcodeFormat.js","node_modules/@zxing/library/esm/core/ResultMetadataType.js","node_modules/@zxing/library/esm/core/common/DecoderResult.js","node_modules/@zxing/library/esm/core/common/reedsolomon/AbstractGenericGF.js","node_modules/@zxing/library/esm/core/common/reedsolomon/GenericGFPoly.js","node_modules/@zxing/library/esm/core/ArithmeticException.js","node_modules/@zxing/library/esm/core/common/reedsolomon/GenericGF.js","node_modules/@zxing/library/esm/core/ReedSolomonException.js","node_modules/@zxing/library/esm/core/IllegalStateException.js","node_modules/@zxing/library/esm/core/common/reedsolomon/ReedSolomonDecoder.js","node_modules/@zxing/library/esm/core/aztec/decoder/Decoder.js","node_modules/@zxing/library/esm/core/common/detector/MathUtils.js","node_modules/@zxing/library/esm/core/util/Float.js","node_modules/@zxing/library/esm/core/ResultPoint.js","node_modules/@zxing/library/esm/core/common/DetectorResult.js","node_modules/@zxing/library/esm/core/aztec/AztecDetectorResult.js","node_modules/@zxing/library/esm/core/common/detector/WhiteRectangleDetector.js","node_modules/@zxing/library/esm/core/common/GridSampler.js","node_modules/@zxing/library/esm/core/common/PerspectiveTransform.js","node_modules/@zxing/library/esm/core/common/DefaultGridSampler.js","node_modules/@zxing/library/esm/core/common/GridSamplerInstance.js","node_modules/@zxing/library/esm/core/aztec/detector/Detector.js","node_modules/@zxing/library/esm/core/aztec/AztecReader.js","node_modules/@zxing/library/esm/browser/BrowserAztecCodeReader.js","node_modules/@zxing/library/esm/core/oned/OneDReader.js","node_modules/@zxing/library/esm/core/oned/Code128Reader.js","node_modules/@zxing/library/esm/core/oned/Code39Reader.js","node_modules/@zxing/library/esm/core/oned/Code93Reader.js","node_modules/@zxing/library/esm/core/oned/ITFReader.js","node_modules/@zxing/library/esm/core/oned/AbstractUPCEANReader.js","node_modules/@zxing/library/esm/core/oned/UPCEANExtension5Support.js","node_modules/@zxing/library/esm/core/oned/UPCEANExtension2Support.js","node_modules/@zxing/library/esm/core/oned/UPCEANExtensionSupport.js","node_modules/@zxing/library/esm/core/oned/UPCEANReader.js","node_modules/@zxing/library/esm/core/oned/EAN13Reader.js","node_modules/@zxing/library/esm/core/oned/EAN8Reader.js","node_modules/@zxing/library/esm/core/oned/UPCAReader.js","node_modules/@zxing/library/esm/core/oned/UPCEReader.js","node_modules/@zxing/library/esm/core/oned/MultiFormatUPCEANReader.js","node_modules/@zxing/library/esm/core/oned/CodaBarReader.js","node_modules/@zxing/library/esm/core/oned/rss/AbstractRSSReader.js","node_modules/@zxing/library/esm/core/oned/rss/DataCharacter.js","node_modules/@zxing/library/esm/core/oned/rss/FinderPattern.js","node_modules/@zxing/library/esm/core/oned/rss/RSSUtils.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/BitArrayBuilder.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/BlockParsedResult.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/DecodedObject.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/DecodedChar.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/DecodedInformation.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/DecodedNumeric.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/FieldParser.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/GeneralAppIdDecoder.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/AbstractExpandedDecoder.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/AI01decoder.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/AI01AndOtherAIs.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/AnyAIDecoder.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/AI01weightDecoder.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/AI013x0xDecoder.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/AI013103decoder.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/AI01320xDecoder.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/AI01392xDecoder.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/AI01393xDecoder.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/AI013x0x1xDecoder.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/decoders/AbstractExpandedDecoderComplement.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/ExpandedPair.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/ExpandedRow.js","node_modules/@zxing/library/esm/core/oned/rss/expanded/RSSExpandedReader.js","node_modules/@zxing/library/esm/core/oned/rss/Pair.js","node_modules/@zxing/library/esm/core/oned/rss/RSS14Reader.js","node_modules/@zxing/library/esm/core/oned/MultiFormatOneDReader.js","node_modules/@zxing/library/esm/browser/BrowserBarcodeReader.js","node_modules/@zxing/library/esm/core/datamatrix/decoder/Version.js","node_modules/@zxing/library/esm/core/datamatrix/decoder/BitMatrixParser.js","node_modules/@zxing/library/esm/core/datamatrix/decoder/DataBlock.js","node_modules/@zxing/library/esm/core/common/BitSource.js","node_modules/@zxing/library/esm/core/datamatrix/decoder/DecodedBitStreamParser.js","node_modules/@zxing/library/esm/core/datamatrix/decoder/Decoder.js","node_modules/@zxing/library/esm/core/datamatrix/detector/Detector.js","node_modules/@zxing/library/esm/core/datamatrix/DataMatrixReader.js","node_modules/@zxing/library/esm/browser/BrowserDatamatrixCodeReader.js","node_modules/@zxing/library/esm/core/qrcode/decoder/ErrorCorrectionLevel.js","node_modules/@zxing/library/esm/core/qrcode/decoder/FormatInformation.js","node_modules/@zxing/library/esm/core/qrcode/decoder/ECBlocks.js","node_modules/@zxing/library/esm/core/qrcode/decoder/ECB.js","node_modules/@zxing/library/esm/core/qrcode/decoder/Version.js","node_modules/@zxing/library/esm/core/qrcode/decoder/DataMask.js","node_modules/@zxing/library/esm/core/qrcode/decoder/BitMatrixParser.js","node_modules/@zxing/library/esm/core/qrcode/decoder/DataBlock.js","node_modules/@zxing/library/esm/core/qrcode/decoder/Mode.js","node_modules/@zxing/library/esm/core/qrcode/decoder/DecodedBitStreamParser.js","node_modules/@zxing/library/esm/core/qrcode/decoder/QRCodeDecoderMetaData.js","node_modules/@zxing/library/esm/core/qrcode/decoder/Decoder.js","node_modules/@zxing/library/esm/core/qrcode/detector/AlignmentPattern.js","node_modules/@zxing/library/esm/core/qrcode/detector/AlignmentPatternFinder.js","node_modules/@zxing/library/esm/core/qrcode/detector/FinderPattern.js","node_modules/@zxing/library/esm/core/qrcode/detector/FinderPatternInfo.js","node_modules/@zxing/library/esm/core/qrcode/detector/FinderPatternFinder.js","node_modules/@zxing/library/esm/core/qrcode/detector/Detector.js","node_modules/@zxing/library/esm/core/qrcode/QRCodeReader.js","node_modules/@zxing/library/esm/core/pdf417/PDF417Common.js","node_modules/@zxing/library/esm/core/pdf417/detector/PDF417DetectorResult.js","node_modules/@zxing/library/esm/core/pdf417/detector/Detector.js","node_modules/@zxing/library/esm/core/pdf417/decoder/ec/ModulusPoly.js","node_modules/@zxing/library/esm/core/pdf417/decoder/ec/ModulusBase.js","node_modules/@zxing/library/esm/core/pdf417/decoder/ec/ModulusGF.js","node_modules/@zxing/library/esm/core/pdf417/decoder/ec/ErrorCorrection.js","node_modules/@zxing/library/esm/core/pdf417/decoder/BoundingBox.js","node_modules/@zxing/library/esm/core/pdf417/decoder/BarcodeMetadata.js","node_modules/@zxing/library/esm/core/util/Formatter.js","node_modules/@zxing/library/esm/core/pdf417/decoder/DetectionResultColumn.js","node_modules/@zxing/library/esm/core/pdf417/decoder/BarcodeValue.js","node_modules/@zxing/library/esm/core/pdf417/decoder/DetectionResultRowIndicatorColumn.js","node_modules/@zxing/library/esm/core/pdf417/decoder/DetectionResult.js","node_modules/@zxing/library/esm/core/pdf417/decoder/Codeword.js","node_modules/@zxing/library/esm/core/pdf417/decoder/PDF417CodewordDecoder.js","node_modules/@zxing/library/esm/core/pdf417/PDF417ResultMetadata.js","node_modules/@zxing/library/esm/core/util/Long.js","node_modules/@zxing/library/esm/core/NullPointerException.js","node_modules/@zxing/library/esm/core/util/OutputStream.js","node_modules/@zxing/library/esm/core/OutOfMemoryError.js","node_modules/@zxing/library/esm/core/util/ByteArrayOutputStream.js","node_modules/@zxing/library/esm/core/pdf417/decoder/DecodedBitStreamParser.js","node_modules/@zxing/library/esm/core/pdf417/decoder/PDF417ScanningDecoder.js","node_modules/@zxing/library/esm/core/pdf417/PDF417Reader.js","node_modules/@zxing/library/esm/core/ReaderException.js","node_modules/@zxing/library/esm/core/MultiFormatReader.js","node_modules/@zxing/library/esm/browser/BrowserMultiFormatReader.js","node_modules/@zxing/library/esm/browser/BrowserPDF417Reader.js","node_modules/@zxing/library/esm/browser/BrowserQRCodeReader.js","node_modules/@zxing/library/esm/core/EncodeHintType.js","node_modules/@zxing/library/esm/core/common/reedsolomon/ReedSolomonEncoder.js","node_modules/@zxing/library/esm/core/qrcode/encoder/MaskUtil.js","node_modules/@zxing/library/esm/core/qrcode/encoder/ByteMatrix.js","node_modules/@zxing/library/esm/core/qrcode/encoder/QRCode.js","node_modules/@zxing/library/esm/core/WriterException.js","node_modules/@zxing/library/esm/core/qrcode/encoder/MatrixUtil.js","node_modules/@zxing/library/esm/core/qrcode/encoder/BlockPair.js","node_modules/@zxing/library/esm/core/qrcode/encoder/Encoder.js","node_modules/@zxing/library/esm/browser/BrowserQRCodeSvgWriter.js","node_modules/@zxing/library/esm/core/qrcode/QRCodeWriter.js","node_modules/@zxing/library/esm/core/MultiFormatWriter.js","node_modules/@zxing/library/esm/core/PlanarYUVLuminanceSource.js","node_modules/@zxing/library/esm/core/RGBLuminanceSource.js","node_modules/@zxing/library/esm/core/util/Charset.js","node_modules/@zxing/library/esm/core/util/StandardCharsets.js","node_modules/@zxing/library/esm/core/datamatrix/encoder/DefaultPlacement.js","node_modules/@zxing/library/esm/core/datamatrix/encoder/constants.js","node_modules/@zxing/library/esm/core/datamatrix/encoder/ErrorCorrection.js","node_modules/@zxing/library/esm/core/datamatrix/encoder/ASCIIEncoder.js","node_modules/@zxing/library/esm/core/datamatrix/encoder/Base256Encoder.js","node_modules/@zxing/library/esm/core/datamatrix/encoder/C40Encoder.js","node_modules/@zxing/library/esm/core/datamatrix/encoder/EdifactEncoder.js","node_modules/@zxing/library/esm/core/datamatrix/encoder/SymbolInfo.js","node_modules/@zxing/library/esm/core/datamatrix/encoder/EncoderContext.js","node_modules/@zxing/library/esm/core/datamatrix/encoder/X12Encoder.js","node_modules/@zxing/library/esm/core/datamatrix/encoder/TextEncoder.js","node_modules/@zxing/library/esm/core/datamatrix/encoder/HighLevelEncoder.js","node_modules/@zxing/library/esm/core/common/ECIEncoderSet.js","node_modules/@zxing/library/esm/core/common/MinimalECIInput.js","node_modules/@zxing/library/esm/core/datamatrix/encoder/MinimalEncoder.js","node_modules/@zxing/library/esm/core/datamatrix/DataMatrixWriter.js","node_modules/@zxing/library/esm/core/aztec/encoder/AztecCode.js","node_modules/@zxing/library/esm/core/util/Collections.js","node_modules/@zxing/library/esm/core/aztec/encoder/Token.js","node_modules/@zxing/library/esm/core/aztec/encoder/SimpleToken.js","node_modules/@zxing/library/esm/core/aztec/encoder/BinaryShiftToken.js","node_modules/@zxing/library/esm/core/aztec/encoder/TokenHelpers.js","node_modules/@zxing/library/esm/core/aztec/encoder/EncoderConstants.js","node_modules/@zxing/library/esm/core/aztec/encoder/LatchTable.js","node_modules/@zxing/library/esm/core/aztec/encoder/ShiftTable.js","node_modules/@zxing/library/esm/core/aztec/encoder/State.js","node_modules/@zxing/library/esm/core/aztec/encoder/CharMap.js","node_modules/@zxing/library/esm/core/aztec/encoder/HighLevelEncoder.js","node_modules/@zxing/library/esm/core/aztec/encoder/Encoder.js","node_modules/@zxing/library/esm/core/aztec/AztecWriter.js","node_modules/@zxing/browser/esm/common/HTMLCanvasElementLuminanceSource.js","node_modules/@zxing/browser/esm/common/navigator-utils.js","node_modules/@zxing/browser/esm/readers/BrowserCodeReader.js","node_modules/@zxing/browser/esm/readers/BrowserAztecCodeReader.js","node_modules/@zxing/browser/esm/readers/BrowserMultiFormatOneDReader.js","node_modules/@zxing/browser/esm/readers/BrowserDatamatrixCodeReader.js","node_modules/@zxing/browser/esm/readers/BrowserMultiFormatReader.js","node_modules/@zxing/browser/esm/readers/BrowserPDF417Reader.js","node_modules/@zxing/browser/esm/readers/BrowserQRCodeReader.js","node_modules/@zxing/browser/esm/writers/BrowserCodeSvgWriter.js","node_modules/@zxing/browser/esm/writers/BrowserQRCodeSvgWriter.js","node_modules/@zxing/ngx-scanner/fesm2022/zxing-ngx-scanner.mjs","src/app/base/shared/modal-helper.ts","src/app/base/services/enum-filter.service.ts","src/app/base/base.module.ts","src/app/base/models/parker-offense-filter-type.enum.ts","src/app/base/shared/date-helper.ts","src/app/base/shared/filter-util.ts","src/app/domain/parker-registration/parking-session.service.ts","src/app/domain/parker-registration/parker-registration.service.ts","src/app/domain/zone-damage/zone-damage.service.ts","src/app/domain/administration/parker-administration/parker-administraton.service.ts","src/app/domain/administration/client-administration/client-administration.service.ts","src/app/domain/administration/company-administration/company-administration.service.ts","src/app/domain/parking-ranger-sessions/parking-ranger-sessions.service.ts","src/app/domain/reports/report/tags/tags-per-parker-report.service.ts","src/app/domain/reports/report/parker-registration/parker-registration-report.service.ts","src/app/domain/reports/report/false-recording/false-recording-report.service.ts","src/app/domain/reports/report/parker-turnover/parker-turnover-report.service.ts","src/app/domain/reports/report/parker-extract/parker-extract-report.service.ts","src/app/domain/reports/report/device-status/device-status-report.service.ts","src/app/domain/reports/report/automatic-parking/automatic-parking-report.service.ts","src/app/domain/reports/report/payment/payment-report.service.ts","src/app/domain/administration/administration/administration-details/zone-details/zone-details.service.ts","src/app/domain/administration/administration/administration-details/zone-device-details/zone-device-details.service.ts","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details.service.ts","src/app/domain/administration/administration/administration-details/subscription-details/subscription-details.service.ts","src/app/domain/reports/report/user-extract/user-extract-report.service.ts","src/app/domain/administration/client-administration/client-administraion-edit-form/price-model-edit/finance-client-price-model.service.ts","src/app/domain/domain.module.ts","src/app/base/models/syncfusion-data.ts","src/app/base/shared/syncfusion/grid-constants-factory.ts","src/app/base/shared/fakeHttpRequest.ts","src/app/base/shared/syncfusion/avp-custom-adaptor.ts","src/app/base/shared/id-provider.ts","src/app/base/shared/button-group/button-group.component.ts","src/app/base/shared/button-group/button-group.component.html","src/app/base/shared/yes-no-group-button/yes-no-group-button.service.ts","src/app/base/shared/yes-no-group-button/yes-no-group-button.component.ts","src/app/base/shared/yes-no-group-button/yes-no-group-button.component.html","src/app/domain/reports/reports.service.ts","src/app/domain/reports/reports-footer/reports-footer.component.ts","src/app/domain/reports/reports-footer/reports-footer.component.html","node_modules/@syncfusion/ej2-angular-calendars/fesm2020/syncfusion-ej2-angular-calendars.mjs","src/app/base/shared/autocomplete/autocomplete-custom-adaptor.ts","node_modules/@syncfusion/ej2-angular-dropdowns/fesm2020/syncfusion-ej2-angular-dropdowns.mjs","src/app/base/shared/autocomplete/autocomplete.component.ts","src/app/base/shared/autocomplete/autocomplete.component.html","src/app/base/shared/client-autocomplete/client-autocomplete.component.ts","src/app/base/shared/client-autocomplete/client-autocomplete.component.html","src/app/domain/reports/report/automatic-parking/automatic-parking-form/automatic-parking-form.component.ts","src/app/domain/reports/report/automatic-parking/automatic-parking-form/automatic-parking-form.component.html","src/app/base/shared/title-bar/title-bar.component.ts","src/app/base/shared/title-bar/title-bar.component.html","src/app/domain/reports/report/automatic-parking/automatic-parking-report/automatic-parking-report.component.ts","src/app/domain/reports/report/automatic-parking/automatic-parking-report/automatic-parking-report.component.html","src/app/base/guards/activation-guard.base.ts","src/app/base/guards/admin.guard.ts","src/app/base/shared/syncfusion/dropdown-constants-factory.ts","src/app/base/shared/form-helper.ts","src/app/base/shared/grid-base/grid-base.component.ts","src/app/base/shared/map-box-map/map-box-map.component.ts","src/app/base/shared/map-box-map/map-box-map.component.html","node_modules/@syncfusion/ej2-angular-buttons/fesm2020/syncfusion-ej2-angular-buttons.mjs","node_modules/ngx-mapbox-gl/fesm2022/ngx-mapbox-gl.mjs","src/app/base/shared/map-box-map/map-box-style.enum.ts","src/app/base/shared/map-box-map/custom-map-controls/map-box-map-lock-control.ts","src/app/base/shared/map-box-map/custom-map-controls/map-box-map-refocus-control.ts","src/app/base/shared/async-image/async-image.component.ts","src/app/base/shared/async-image/async-image.component.html","src/app/base/error-messages/app-error-messages.component.ts","src/app/base/error-messages/app-error-messages.component.html","src/app/domain/zone-damage/zone-damage-edit-form/zone-damage-edit-form.component.ts","src/app/domain/zone-damage/zone-damage-edit-form/zone-damage-edit-form.component.html","src/app/domain/zone-damage/zone-damage.component.ts","src/app/domain/zone-damage/zone-damage.component.html","src/app/base/shared/regex-patterns.ts","src/app/base/shared/validators/custom-validators-factory.ts","src/app/base/user-management/linked-parker/linked-parker.component.ts","src/app/base/user-management/linked-parker/linked-parker.component.html","src/app/base/shared/countryISO2-enum.ts","src/app/base/shared/enum-drop-down-list/enum-drop-down-list.component.ts","src/app/base/shared/enum-drop-down-list/enum-drop-down-list.component.html","src/app/base/user-management/deposited-number-plates/deposited-number-plates.component.ts","src/app/base/user-management/deposited-number-plates/deposited-number-plates.component.html","src/app/base/user-management/user-edit-form/user-edit-form.component.ts","src/app/base/user-management/user-edit-form/user-edit-form.component.html","src/app/base/edit-profile/edit-profile.service.ts","src/app/base/edit-profile/edit-profile.component.ts","src/app/base/edit-profile/edit-profile.component.html","src/app/domain/parking-ranger-sessions/parking-ranger-session-details-list/parking-ranger-session-details-list.component.ts","src/app/domain/parking-ranger-sessions/parking-ranger-session-details-list/parking-ranger-session-details-list.component.html","src/app/domain/parking-ranger-sessions/parking-ranger-sessions.component.ts","src/app/domain/parking-ranger-sessions/parking-ranger-sessions.component.html","src/app/base/models/parker-registration-data-type.enum.ts","src/app/domain/parker-registration/parker-registration-detail/parker-registration-details.helper.ts","src/app/domain/parker-registration/parker-registration-detail/parker-registration-detail-offense/parker-registration-detail-offense.component.ts","src/app/domain/parker-registration/parker-registration-detail/parker-registration-detail-offense/parker-registration-detail-offense.component.html","src/app/domain/parker-registration/parker-registration-detail/parker-registration-detail-parker-details/parker-registration-detail-parker-details.component.ts","src/app/domain/parker-registration/parker-registration-detail/parker-registration-detail-parker-details/parker-registration-detail-parker-details.component.html","src/app/domain/parker-registration/parker-registration-detail/parker-registration-raw-detail/parker-registration-raw-detail.component.ts","src/app/domain/parker-registration/parker-registration-detail/parker-registration-raw-detail/parker-registration-raw-detail.component.html","src/app/domain/parker-registration/parker-registration-raw-table/parker-registration-raw-table.component.ts","src/app/domain/parker-registration/parker-registration-raw-table/parker-registration-raw-table.component.html","src/app/domain/parker-registration/parker-registration-detail/parker-registration-evaluated-detail/parker-registration-evaluated-detail.component.ts","src/app/domain/parker-registration/parker-registration-detail/parker-registration-evaluated-detail/parker-registration-evaluated-detail.component.html","src/app/domain/parker-registration/parker-registration-evaluated-table/adjust-parker-registration-evaluated-dialog/adjust-parker-registration-evaluated-function.type.ts","src/app/domain/parker-registration/parker-registration-evaluated-table/adjust-parker-registration-evaluated-dialog/adjust-start-time-form/adjust-start-time-form.component.ts","src/app/domain/parker-registration/parker-registration-evaluated-table/adjust-parker-registration-evaluated-dialog/adjust-start-time-form/adjust-start-time-form.component.html","src/app/domain/parker-registration/parker-registration-evaluated-table/adjust-parker-registration-evaluated-dialog/adjust-end-time-form/adjust-end-time-form.component.ts","src/app/domain/parker-registration/parker-registration-evaluated-table/adjust-parker-registration-evaluated-dialog/adjust-end-time-form/adjust-end-time-form.component.html","src/app/domain/parker-registration/parker-registration-evaluated-table/adjust-parker-registration-evaluated-dialog/adjust-parker-registration-evaluated-dialog.component.ts","src/app/domain/parker-registration/parker-registration-evaluated-table/adjust-parker-registration-evaluated-dialog/adjust-parker-registration-evaluated-dialog.component.html","src/app/base/shared/syncfusion/enum-filter-adaptor.ts","src/app/base/shared/syncfusion/enum-filter-data-manager.ts","src/app/domain/parker-registration/parker-registration-evaluated-table/parker-registration-evaluated-table.component.ts","src/app/domain/parker-registration/parker-registration-evaluated-table/parker-registration-evaluated-table.component.html","src/app/domain/parker-registration/parker-registration.component.ts","src/app/domain/parker-registration/parker-registration.component.html","src/app/domain/administration/parker-administration/parker-function/parker-execution-status.ts","src/app/domain/administration/parker-administration/parker-function/progress-info.ts","src/app/domain/administration/parker-administration/parker-function/parker-function-executor/parker-function-executor.class.ts","src/app/domain/administration/parker-administration/parker-function/parker-function-executor/resend-link-to-parker-executor.class.ts","src/app/domain/administration/parker-administration/parker-function/parker-function-executor/unlink-parker-executor.class.ts","src/app/domain/administration/parker-administration/parker-function/parker-function-executor/update-parker.util.ts","src/app/domain/administration/parker-administration/parker-function/parker-function-executor/add-subscription-executor.class.ts","node_modules/@syncfusion/ej2-svg-base/dist/es6/ej2-svg-base.es5.js","node_modules/@syncfusion/ej2-progressbar/dist/es6/ej2-progressbar.es5.js","node_modules/@syncfusion/ej2-angular-progressbar/fesm2020/syncfusion-ej2-angular-progressbar.mjs","src/app/domain/administration/parker-administration/parker-function/parker-function.types.ts","src/app/domain/administration/parker-administration/parker-function/parker-function-executor/set-status-executor.class.ts","src/app/domain/administration/parker-administration/parker-function/parker-function-executor/end-subscription-executor.class.ts","src/app/domain/administration/parker-administration/parker-function/parker-function-executor/replace-subscription-executor.class.ts","src/app/domain/administration/parker-administration/parker-function/parker-function-replace-subscription-form/parker-function-replace-subscription-form.component.ts","src/app/domain/administration/parker-administration/parker-function/parker-function-replace-subscription-form/parker-function-replace-subscription-form.component.html","src/app/domain/administration/parker-administration/parker-function/parker-function-end-subscription-form/parker-function-end-subscription-form.component.ts","src/app/domain/administration/parker-administration/parker-function/parker-function-end-subscription-form/parker-function-end-subscription-form.component.html","src/app/domain/administration/parker-administration/edit-parker-form/edit-parker-edit-subscription-list-form/edit-parker-edit-subscription-list-form.component.ts","src/app/domain/administration/parker-administration/edit-parker-form/edit-parker-edit-subscription-list-form/edit-parker-edit-subscription-list-form.component.html","src/app/domain/administration/parker-administration/parker-function/parker-function-executor/recalculate-executor.class.ts","src/app/domain/administration/parker-administration/parker-function/parker-function-from-until-form/parker-function-from-until-form.component.ts","src/app/domain/administration/parker-administration/parker-function/parker-function-from-until-form/parker-function-from-until-form.component.html","src/app/domain/administration/parker-administration/parker-function/parker-function-executor/adjust-subscription-executor.class.ts","src/app/domain/administration/parker-administration/parker-function/parker-function-executor/add-subscription-set-executor.class.ts","src/app/domain/administration/parker-administration/parker-function/parker-function.component.ts","src/app/domain/administration/parker-administration/parker-function/parker-function.component.html","src/app/domain/administration/parker-administration/edit-parker-form/edit-parker-subscription-list/edit-parker-subscription-list.component.ts","src/app/domain/administration/parker-administration/edit-parker-form/edit-parker-subscription-list/edit-parker-subscription-list.component.html","src/app/domain/administration/parker-administration/edit-parker-form/edit-parker-edit-tag-list-form/tag-type.enum.ts","src/app/base/shared/qr-scanner/qr-scanner.component.ts","src/app/base/shared/qr-scanner/qr-scanner.component.html","src/app/domain/administration/parker-administration/edit-parker-form/edit-parker-edit-tag-list-form/edit-parker-edit-tag-list-form.component.ts","src/app/domain/administration/parker-administration/edit-parker-form/edit-parker-edit-tag-list-form/edit-parker-edit-tag-list-form.component.html","src/app/domain/administration/parker-administration/edit-parker-form/edit-parker-tags-list/edit-parker-tags-list.component.ts","src/app/domain/administration/parker-administration/edit-parker-form/edit-parker-tags-list/edit-parker-tags-list.component.html","src/app/domain/administration/parker-administration/edit-parker-form/edit-parker-form.component.ts","src/app/domain/administration/parker-administration/edit-parker-form/edit-parker-form.component.html","src/app/base/shared/search-field/search-field.component.ts","src/app/base/shared/search-field/search-field.component.html","src/app/domain/administration/parker-administration/parker-filter/parker-filter.component.ts","src/app/domain/administration/parker-administration/parker-filter/parker-filter.component.html","src/app/domain/administration/parker-administration/parker-administration.component.ts","src/app/domain/administration/parker-administration/parker-administration.component.html","src/app/directives/mark-asterisk.directive.ts","src/app/base/forgot-password/forgot-password.component.ts","src/app/base/forgot-password/forgot-password.component.html","src/app/directives/numeric.directive.ts","src/app/domain/administration/client-administration/client-administraion-edit-form/price-model-edit/price-model-edit.component.ts","src/app/domain/administration/client-administration/client-administraion-edit-form/price-model-edit/price-model-edit.component.html","src/app/domain/administration/client-administration/client-administraion-edit-form/client-administraion-edit-form.component.ts","src/app/domain/administration/client-administration/client-administraion-edit-form/client-administraion-edit-form.component.html","src/app/domain/administration/client-administration/client-administration.component.ts","src/app/domain/administration/client-administration/client-administration.component.html","src/app/base/models/user-management-data.ts","src/app/directives/password-visibility.directive.ts","src/app/base/user-management/proxy-edit-form/proxy-edit-form.component.ts","src/app/base/user-management/proxy-edit-form/proxy-edit-form.component.html","src/app/base/user-management/third-party-user-edit-form/third-party-user-edit-form.component.ts","src/app/base/user-management/third-party-user-edit-form/third-party-user-edit-form.component.html","src/app/base/user-management/user-management.service.ts","src/app/base/user-management/user-management.component.ts","src/app/base/user-management/user-management.component.html","src/app/base/login/login.component.ts","src/app/base/login/login.component.html","src/app/base/change-password/change-password.component.ts","src/app/base/change-password/change-password.component.html","src/app/domain/home/home.component.ts","src/app/domain/home/home.component.html","src/app/base/guards/auth.guard.ts","src/app/base/guards/admin-client-admin.guard.ts","src/app/base/set-password/set-password.component.ts","src/app/base/set-password/set-password.component.html","src/app/domain/administration/company-administration/company-form/company-form.component.ts","src/app/domain/administration/company-administration/company-form/company-form.component.html","src/app/domain/administration/company-administration/company-administration.component.ts","src/app/domain/administration/company-administration/company-administration.component.html","src/app/domain/reports/report/device-status/device-status-form/device-status-form.component.ts","src/app/domain/reports/report/device-status/device-status-form/device-status-form.component.html","src/app/domain/reports/report/parker-extract/parker-extract-form/parker-extract-form.component.ts","src/app/domain/reports/report/parker-extract/parker-extract-form/parker-extract-form.component.html","src/app/base/shared/multi-select-filter/multi-select-filter-type.ts","src/app/base/shared/multi-select-filter/multi-select-custom-adaptor.ts","src/app/base/shared/multi-select-filter/multi-select-filter.component.ts","src/app/base/shared/multi-select-filter/multi-select-filter.component.html","src/app/domain/reports/report/parker-turnover/parker-turnover-form/parker-turnover-form.component.ts","src/app/domain/reports/report/parker-turnover/parker-turnover-form/parker-turnover-form.component.html","src/app/domain/reports/report/false-recording/false-recording-form/false-recording-form.component.ts","src/app/domain/reports/report/false-recording/false-recording-form/false-recording-form.component.html","src/app/domain/reports/report/parker-registration/parker-registration-form/parker-registration-form.component.ts","src/app/domain/reports/report/parker-registration/parker-registration-form/parker-registration-form.component.html","src/app/domain/reports/report/tags/tags-form/tags-form.component.ts","src/app/domain/reports/report/tags/tags-form/tags-form.component.html","src/app/domain/reports/reports-form/reports-form.component.ts","src/app/domain/reports/reports-form/reports-form.component.html","src/app/domain/reports/reports.component.ts","src/app/domain/reports/reports.component.html","src/app/domain/home/dashboard/widget-type.enum.ts","src/app/domain/home/dashboard/dashboard.service.ts","src/app/domain/reports/report/tags/tags-report/tags-report.component.ts","src/app/domain/reports/report/tags/tags-report/tags-report.component.html","src/app/domain/reports/report/parker-registration/parker-registration-report/parker-registration-report.component.ts","src/app/domain/reports/report/parker-registration/parker-registration-report/parker-registration-report.component.html","src/app/domain/reports/report/false-recording/false-recording-report/false-recording-report.component.ts","src/app/domain/reports/report/false-recording/false-recording-report/false-recording-report.component.html","src/app/domain/reports/report/parker-turnover/parker-turnover-report/parker-turnover-report.component.ts","src/app/domain/reports/report/parker-turnover/parker-turnover-report/parker-turnover-report.component.html","src/app/domain/reports/report/parker-extract/parker-extract-report/parker-extract-report.component.ts","src/app/domain/reports/report/parker-extract/parker-extract-report/parker-extract-report.component.html","src/app/domain/reports/report/device-status/device-status-report/device-status-report.component.ts","src/app/domain/reports/report/device-status/device-status-report/device-status-report.component.html","src/app/domain/link-parker-to-user/link-parker-to-user.component.ts","src/app/domain/link-parker-to-user/link-parker-to-user.component.html","src/app/base/confirm-email/confirm-email.component.ts","src/app/base/confirm-email/confirm-email.component.html","src/app/base/guards/client-user.guard.ts","src/app/domain/administration/tags-administration/tags-administration.service.ts","src/app/domain/administration/tags-administration/tags-administration.component.ts","src/app/domain/administration/tags-administration/tags-administration.component.html","src/app/domain/parking/parking-helper.ts","src/app/base/shared/utils/week-day-flags.helper.ts","src/app/domain/parking/helpers/from-backend/parking-tariff-validity.ts","src/app/domain/parking/helpers/from-backend/parking-time-grid.ts","src/app/domain/parking/helpers/from-backend/parking-time-range.ts","src/app/domain/parking/helpers/from-backend/parking-session-time-slice.ts","src/app/domain/parking/helpers/from-backend/parking-session-time-slice-collection.ts","src/app/domain/parking/helpers/from-backend/parking-validity-extension.ts","src/app/domain/parking/helpers/from-backend/tariff-selection-strategies.ts","src/app/domain/parking/helpers/from-backend/session-time-slicer.ts","src/app/base/shared/bit-helper.ts","src/app/domain/parking/parking/parking.service.ts","src/app/domain/parking/parking/parking.component.ts","src/app/domain/parking/parking/parking.component.html","src/app/domain/device-interaction/device-interaction.service.ts","src/app/domain/device-interaction/device-interaction.component.ts","src/app/domain/device-interaction/device-interaction.component.html","src/app/domain/parking/helpers/parking-tariff-validity.helper.ts","node_modules/@syncfusion/ej2-angular-inputs/fesm2020/syncfusion-ej2-angular-inputs.mjs","src/app/base/shared/duration-time-slider/duration-time-slider.component.ts","src/app/base/shared/duration-time-slider/duration-time-slider.component.html","src/app/base/shared/duration-input/duration-input.component.ts","src/app/base/shared/duration-input/duration-input.component.html","src/app/base/shared/time-picker-with-time-slider/time-picker-with-time-slider.component.ts","src/app/base/shared/time-picker-with-time-slider/time-picker-with-time-slider.component.html","src/app/base/shared/multi-select-button-group/multi-select-button-group.component.ts","src/app/base/shared/multi-select-button-group/multi-select-button-group.component.html","src/app/base/shared/day-selector/day-selector.component.ts","src/app/base/shared/day-selector/day-selector.component.html","src/app/domain/parking/parking-administration/parking-administration-edit-form/parking-administration-edit-form.component.ts","src/app/domain/parking/parking-administration/parking-administration-edit-form/parking-administration-edit-form.component.html","src/app/domain/parking/parking-administration/parking-administration.service.ts","src/app/domain/parking/parking-administration/parking-administration.component.ts","src/app/domain/parking/parking-administration/parking-administration.component.html","src/app/base/guards/user.guard.ts","src/app/base/guards/client-active.guard.ts","src/app/domain/reports/report/payment/payment-form/payment-form.component.ts","src/app/domain/reports/report/payment/payment-form/payment-form.component.html","src/app/domain/reports/report/payment/payment-report/payment-report.component.ts","src/app/domain/reports/report/payment/payment-report/payment-report.component.html","src/app/domain/administration/administration/data-structures.ts","src/app/domain/administration/administration/item-type.util.ts","src/app/domain/administration/administration/tree-views/icon-text-codes.ts","src/app/domain/administration/administration/tree-views/tree-view-base.component.ts","src/app/domain/administration/administration/administration-details/generate-qr-code-details/generate-qr-code-details.service.ts","src/app/domain/administration/administration/administration-details/generate-qr-code-details/generate-qr-code-details.component.ts","src/app/domain/administration/administration/administration-details/generate-qr-code-details/generate-qr-code-details.component.html","src/app/domain/administration/administration/item-id.util.ts","src/app/domain/administration/administration/tree-views/item-cache.ts","src/app/domain/administration/administration/tree-views/tree-view-zone-based/tree-view-zone-based.service.ts","src/app/domain/administration/administration/tree-views/tree-view-zone-based/tree-view-zone-based.component.ts","src/app/domain/administration/administration/tree-views/tree-view-zone-based/tree-view-zone-based.component.html","src/app/domain/administration/administration/tree-views/tree-view-config-based/tree-view-config-based.service.ts","src/app/domain/administration/administration/tree-views/tree-view-config-based/tree-view-config-based.component.ts","src/app/domain/administration/administration/tree-views/tree-view-config-based/tree-view-config-based.component.html","src/app/domain/administration/administration/administration-details/structural-entry-details/structural-entry-details.service.ts","src/app/domain/administration/administration/administration-details/structural-entry-details/structural-entry-details.component.ts","src/app/domain/administration/administration/administration-details/structural-entry-details/structural-entry-details.component.html","src/app/base/shared/multi-field-duration-picker/multi-field-duration-picker-helper.ts","src/app/domain/administration/administration/administration-details/subscription-details/subscription-details-general/currency-cents.ts","src/app/base/shared/multi-field-duration-picker/multi-field-duration-picker.component.ts","src/app/base/shared/multi-field-duration-picker/multi-field-duration-picker.component.html","src/app/domain/administration/administration/administration-details/subscription-details/subscription-details-general/subscription-details-general.component.ts","src/app/domain/administration/administration/administration-details/subscription-details/subscription-details-general/subscription-details-general.component.html","src/app/domain/administration/administration/administration-details/subscription-details/subscription-details-tariffs/subscription-details-tariffs.component.ts","src/app/domain/administration/administration/administration-details/subscription-details/subscription-details-tariffs/subscription-details-tariffs.component.html","src/app/directives/message.directive.ts","src/app/domain/administration/administration/administration-details/subscription-details/subscription-details.component.ts","src/app/domain/administration/administration/administration-details/subscription-details/subscription-details.component.html","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details-prices/tariff-details-prices.validators.ts","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details.validators.ts","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details-zones/tariff-details-zones.component.ts","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details-zones/tariff-details-zones.component.html","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details-prices/tariff-details-prices-tiered-prices-grid/tiered-price-form/tiered-price-form.component.ts","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details-prices/tariff-details-prices-tiered-prices-grid/tiered-price-form/tiered-price-form.component.html","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details-prices/tariff-details-prices-tiered-prices-grid/tariff-details-prices-tiered-prices-grid.component.ts","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details-prices/tariff-details-prices-tiered-prices-grid/tariff-details-prices-tiered-prices-grid.component.html","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details-prices/tariff-details-prices.component.ts","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details-prices/tariff-details-prices.component.html","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details-general/tariff-details-general.component.ts","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details-general/tariff-details-general.component.html","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details-blacklist/blacklist-form/blacklist-form.component.ts","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details-blacklist/blacklist-form/blacklist-form.component.html","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details-blacklist/tariff-details-blacklist.component.ts","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details-blacklist/tariff-details-blacklist.component.html","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details.component.ts","src/app/domain/administration/administration/administration-details/tariff-details/tariff-details.component.html","src/app/base/models/input-type.ts","src/app/domain/administration/administration/administration-details/zone-device-details/zone-device-add/zone-device-add.component.ts","src/app/domain/administration/administration/administration-details/zone-device-details/zone-device-add/zone-device-add.component.html","src/app/base/shared/input-factory/input-factory.component.ts","src/app/base/shared/input-factory/input-factory.component.html","src/app/domain/administration/administration/administration-details/zone-device-details/zone-device-details.component.ts","src/app/domain/administration/administration/administration-details/zone-device-details/zone-device-details.component.html","src/app/domain/administration/administration/administration-details/zone-details/zone-details-blacklist/zone-details-blacklist.component.ts","src/app/domain/administration/administration/administration-details/zone-details/zone-details-blacklist/zone-details-blacklist.component.html","src/app/domain/administration/administration/administration-details/zone-details/zone-details.component.ts","src/app/domain/administration/administration/administration-details/zone-details/zone-details.component.html","src/app/domain/administration/administration/administration-details/administration-details.component.ts","src/app/domain/administration/administration/administration-details/administration-details.component.html","src/app/domain/administration/administration/administration.component.ts","src/app/domain/administration/administration/administration.component.html","src/app/domain/reports/report/user-extract/user-extract-form/user-extract-form.component.ts","src/app/domain/reports/report/user-extract/user-extract-form/user-extract-form.component.html","src/app/domain/reports/report/user-extract/user-extract-report/user-extract-report.component.ts","src/app/domain/reports/report/user-extract/user-extract-report/user-extract-report.component.html","src/app/base/guards/can-deactivate-guard.service.ts","src/app/base/guards/admin-client-company-admin.guard.ts","src/app/domain/administration/onboarding-wizard/wizard-step/wizard-step.component.ts","src/app/domain/administration/onboarding-wizard/wizard-step/wizard-step.component.html","src/app/domain/administration/onboarding-wizard/onboarding-wizard.component.ts","src/app/domain/administration/onboarding-wizard/onboarding-wizard.component.html","src/app/domain/administration/tag-master/tag-master.service.ts","src/app/domain/administration/tag-master/tag-master.component.ts","src/app/domain/administration/tag-master/tag-master.component.html","src/app/domain/parking/parking-card/parking-card.service.ts","src/app/domain/parking/parking-card/parking-card.component.ts","src/app/domain/parking/parking-card/parking-card.component.html","src/app/app-routing.module.ts","src/main.ts"],"sourcesContent":["(function (a, b) {\n if (\"function\" == typeof define && define.amd) define([], b);else if (\"undefined\" != typeof exports) b();else {\n b(), a.FileSaver = {\n exports: {}\n }.exports;\n }\n})(this, function () {\n \"use strict\";\n\n function b(a, b) {\n return \"undefined\" == typeof b ? b = {\n autoBom: !1\n } : \"object\" != typeof b && (console.warn(\"Deprecated: Expected third argument to be a object\"), b = {\n autoBom: !b\n }), b.autoBom && /^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(a.type) ? new Blob([\"\\uFEFF\", a], {\n type: a.type\n }) : a;\n }\n function c(a, b, c) {\n var d = new XMLHttpRequest();\n d.open(\"GET\", a), d.responseType = \"blob\", d.onload = function () {\n g(d.response, b, c);\n }, d.onerror = function () {\n console.error(\"could not download file\");\n }, d.send();\n }\n function d(a) {\n var b = new XMLHttpRequest();\n b.open(\"HEAD\", a, !1);\n try {\n b.send();\n } catch (a) {}\n return 200 <= b.status && 299 >= b.status;\n }\n function e(a) {\n try {\n a.dispatchEvent(new MouseEvent(\"click\"));\n } catch (c) {\n var b = document.createEvent(\"MouseEvents\");\n b.initMouseEvent(\"click\", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), a.dispatchEvent(b);\n }\n }\n var f = \"object\" == typeof window && window.window === window ? window : \"object\" == typeof self && self.self === self ? self : \"object\" == typeof global && global.global === global ? global : void 0,\n a = f.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent),\n g = f.saveAs || (\"object\" != typeof window || window !== f ? function () {} : \"download\" in HTMLAnchorElement.prototype && !a ? function (b, g, h) {\n var i = f.URL || f.webkitURL,\n j = document.createElement(\"a\");\n g = g || b.name || \"download\", j.download = g, j.rel = \"noopener\", \"string\" == typeof b ? (j.href = b, j.origin === location.origin ? e(j) : d(j.href) ? c(b, g, h) : e(j, j.target = \"_blank\")) : (j.href = i.createObjectURL(b), setTimeout(function () {\n i.revokeObjectURL(j.href);\n }, 4E4), setTimeout(function () {\n e(j);\n }, 0));\n } : \"msSaveOrOpenBlob\" in navigator ? function (f, g, h) {\n if (g = g || f.name || \"download\", \"string\" != typeof f) navigator.msSaveOrOpenBlob(b(f, h), g);else if (d(f)) c(f, g, h);else {\n var i = document.createElement(\"a\");\n i.href = f, i.target = \"_blank\", setTimeout(function () {\n e(i);\n });\n }\n } : function (b, d, e, g) {\n if (g = g || open(\"\", \"_blank\"), g && (g.document.title = g.document.body.innerText = \"downloading...\"), \"string\" == typeof b) return c(b, d, e);\n var h = \"application/octet-stream\" === b.type,\n i = /constructor/i.test(f.HTMLElement) || f.safari,\n j = /CriOS\\/[\\d]+/.test(navigator.userAgent);\n if ((j || h && i || a) && \"undefined\" != typeof FileReader) {\n var k = new FileReader();\n k.onloadend = function () {\n var a = k.result;\n a = j ? a : a.replace(/^data:[^;]*;/, \"data:attachment/file;\"), g ? g.location.href = a : location = a, g = null;\n }, k.readAsDataURL(b);\n } else {\n var l = f.URL || f.webkitURL,\n m = l.createObjectURL(b);\n g ? g.location = m : location.href = m, g = null, setTimeout(function () {\n l.revokeObjectURL(m);\n }, 4E4);\n }\n });\n f.saveAs = g.saveAs = g, \"undefined\" != typeof module && (module.exports = g);\n});\n\n","/* Mapbox GL JS is Copyright © 2020 Mapbox and subject to the Mapbox Terms of Service ((https://www.mapbox.com/legal/tos/). */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.mapboxgl = factory());\n})(this, function () {\n 'use strict';\n\n /* eslint-disable */\n var shared, worker, mapboxgl;\n // define gets called three times: one for each chunk. we rely on the order\n // they're imported to know which is which\n function define(_, chunk) {\n if (!shared) {\n shared = chunk;\n } else if (!worker) {\n worker = chunk;\n } else {\n var workerBundleString = \"self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; (\" + shared + \")(sharedChunk); (\" + worker + \")(sharedChunk); self.onerror = null;\";\n var sharedChunk = {};\n shared(sharedChunk);\n mapboxgl = chunk(sharedChunk);\n if (typeof window !== 'undefined' && window && window.URL && window.URL.createObjectURL) {\n mapboxgl.workerUrl = window.URL.createObjectURL(new Blob([workerBundleString], {\n type: 'text/javascript'\n }));\n }\n }\n }\n define([\"exports\"], function (t) {\n \"use strict\";\n\n var e = \"undefined\" != typeof self ? self : {},\n r = \"2.15.0\";\n let n;\n const i = {\n API_URL: \"https://api.mapbox.com\",\n get API_URL_REGEX() {\n if (null == n) {\n const t = /^((https?:)?\\/\\/)?([^\\/]+\\.)?mapbox\\.c(n|om)(\\/|\\?|$)/i;\n try {\n n = null != process.env.API_URL_REGEX ? new RegExp(process.env.API_URL_REGEX) : t;\n } catch (e) {\n n = t;\n }\n }\n return n;\n },\n get API_TILEJSON_REGEX() {\n return /^((https?:)?\\/\\/)?([^\\/]+\\.)?mapbox\\.c(n|om)(\\/v[0-9]*\\/.*\\.json.*$)/i;\n },\n get API_SPRITE_REGEX() {\n return /^((https?:)?\\/\\/)?([^\\/]+\\.)?mapbox\\.c(n|om)(\\/styles\\/v[0-9]*\\/)(.*\\/sprite.*\\..*$)/i;\n },\n get API_FONTS_REGEX() {\n return /^((https?:)?\\/\\/)?([^\\/]+\\.)?mapbox\\.c(n|om)(\\/fonts\\/v[0-9]*\\/)(.*\\.pbf.*$)/i;\n },\n get API_STYLE_REGEX() {\n return /^((https?:)?\\/\\/)?([^\\/]+\\.)?mapbox\\.c(n|om)(\\/styles\\/v[0-9]*\\/)(.*$)/i;\n },\n get API_CDN_URL_REGEX() {\n return /^((https?:)?\\/\\/)?api\\.mapbox\\.c(n|om)(\\/mapbox-gl-js\\/)(.*$)/i;\n },\n get EVENTS_URL() {\n if (!i.API_URL) return null;\n try {\n const t = new URL(i.API_URL);\n return \"api.mapbox.cn\" === t.hostname ? \"https://events.mapbox.cn/events/v2\" : \"api.mapbox.com\" === t.hostname ? \"https://events.mapbox.com/events/v2\" : null;\n } catch (t) {\n return null;\n }\n },\n SESSION_PATH: \"/map-sessions/v1\",\n FEEDBACK_URL: \"https://apps.mapbox.com/feedback\",\n TILE_URL_VERSION: \"v4\",\n RASTER_URL_PREFIX: \"raster/v1\",\n REQUIRE_ACCESS_TOKEN: !0,\n ACCESS_TOKEN: null,\n MAX_PARALLEL_IMAGE_REQUESTS: 16\n },\n s = {\n supported: !1,\n testSupport: function (t) {\n !l && o && (u ? c(t) : a = t);\n }\n };\n let a,\n o,\n l = !1,\n u = !1;\n function c(t) {\n const e = t.createTexture();\n t.bindTexture(t.TEXTURE_2D, e);\n try {\n if (t.texImage2D(t.TEXTURE_2D, 0, t.RGBA, t.RGBA, t.UNSIGNED_BYTE, o), t.isContextLost()) return;\n s.supported = !0;\n } catch (t) {}\n t.deleteTexture(e), l = !0;\n }\n e.document && (o = e.document.createElement(\"img\"), o.onload = function () {\n a && c(a), a = null, u = !0;\n }, o.onerror = function () {\n l = !0, a = null;\n }, o.src = \"data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=\");\n const h = \"01\";\n function p(t) {\n return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, \"default\") ? t.default : t;\n }\n var d = f;\n function f(t, e, r, n) {\n this.cx = 3 * t, this.bx = 3 * (r - t) - this.cx, this.ax = 1 - this.cx - this.bx, this.cy = 3 * e, this.by = 3 * (n - e) - this.cy, this.ay = 1 - this.cy - this.by, this.p1x = t, this.p1y = e, this.p2x = r, this.p2y = n;\n }\n f.prototype = {\n sampleCurveX: function (t) {\n return ((this.ax * t + this.bx) * t + this.cx) * t;\n },\n sampleCurveY: function (t) {\n return ((this.ay * t + this.by) * t + this.cy) * t;\n },\n sampleCurveDerivativeX: function (t) {\n return (3 * this.ax * t + 2 * this.bx) * t + this.cx;\n },\n solveCurveX: function (t, e) {\n if (void 0 === e && (e = 1e-6), t < 0) return 0;\n if (t > 1) return 1;\n for (var r = t, n = 0; n < 8; n++) {\n var i = this.sampleCurveX(r) - t;\n if (Math.abs(i) < e) return r;\n var s = this.sampleCurveDerivativeX(r);\n if (Math.abs(s) < 1e-6) break;\n r -= i / s;\n }\n var a = 0,\n o = 1;\n for (r = t, n = 0; n < 20 && (i = this.sampleCurveX(r), !(Math.abs(i - t) < e)); n++) t > i ? a = r : o = r, r = .5 * (o - a) + a;\n return r;\n },\n solve: function (t, e) {\n return this.sampleCurveY(this.solveCurveX(t, e));\n }\n };\n var y = p(d),\n m = g;\n function g(t, e) {\n this.x = t, this.y = e;\n }\n g.prototype = {\n clone: function () {\n return new g(this.x, this.y);\n },\n add: function (t) {\n return this.clone()._add(t);\n },\n sub: function (t) {\n return this.clone()._sub(t);\n },\n multByPoint: function (t) {\n return this.clone()._multByPoint(t);\n },\n divByPoint: function (t) {\n return this.clone()._divByPoint(t);\n },\n mult: function (t) {\n return this.clone()._mult(t);\n },\n div: function (t) {\n return this.clone()._div(t);\n },\n rotate: function (t) {\n return this.clone()._rotate(t);\n },\n rotateAround: function (t, e) {\n return this.clone()._rotateAround(t, e);\n },\n matMult: function (t) {\n return this.clone()._matMult(t);\n },\n unit: function () {\n return this.clone()._unit();\n },\n perp: function () {\n return this.clone()._perp();\n },\n round: function () {\n return this.clone()._round();\n },\n mag: function () {\n return Math.sqrt(this.x * this.x + this.y * this.y);\n },\n equals: function (t) {\n return this.x === t.x && this.y === t.y;\n },\n dist: function (t) {\n return Math.sqrt(this.distSqr(t));\n },\n distSqr: function (t) {\n var e = t.x - this.x,\n r = t.y - this.y;\n return e * e + r * r;\n },\n angle: function () {\n return Math.atan2(this.y, this.x);\n },\n angleTo: function (t) {\n return Math.atan2(this.y - t.y, this.x - t.x);\n },\n angleWith: function (t) {\n return this.angleWithSep(t.x, t.y);\n },\n angleWithSep: function (t, e) {\n return Math.atan2(this.x * e - this.y * t, this.x * t + this.y * e);\n },\n _matMult: function (t) {\n var e = t[2] * this.x + t[3] * this.y;\n return this.x = t[0] * this.x + t[1] * this.y, this.y = e, this;\n },\n _add: function (t) {\n return this.x += t.x, this.y += t.y, this;\n },\n _sub: function (t) {\n return this.x -= t.x, this.y -= t.y, this;\n },\n _mult: function (t) {\n return this.x *= t, this.y *= t, this;\n },\n _div: function (t) {\n return this.x /= t, this.y /= t, this;\n },\n _multByPoint: function (t) {\n return this.x *= t.x, this.y *= t.y, this;\n },\n _divByPoint: function (t) {\n return this.x /= t.x, this.y /= t.y, this;\n },\n _unit: function () {\n return this._div(this.mag()), this;\n },\n _perp: function () {\n var t = this.y;\n return this.y = this.x, this.x = -t, this;\n },\n _rotate: function (t) {\n var e = Math.cos(t),\n r = Math.sin(t),\n n = r * this.x + e * this.y;\n return this.x = e * this.x - r * this.y, this.y = n, this;\n },\n _rotateAround: function (t, e) {\n var r = Math.cos(t),\n n = Math.sin(t),\n i = e.y + n * (this.x - e.x) + r * (this.y - e.y);\n return this.x = e.x + r * (this.x - e.x) - n * (this.y - e.y), this.y = i, this;\n },\n _round: function () {\n return this.x = Math.round(this.x), this.y = Math.round(this.y), this;\n }\n }, g.convert = function (t) {\n return t instanceof g ? t : Array.isArray(t) ? new g(t[0], t[1]) : t;\n };\n var x = p(m);\n const v = Math.PI / 180,\n b = 180 / Math.PI;\n function w(t) {\n return t * v;\n }\n function _(t) {\n return t * b;\n }\n const A = [[0, 0], [1, 0], [1, 1], [0, 1]];\n function S(t) {\n if (t <= 0) return 0;\n if (t >= 1) return 1;\n const e = t * t,\n r = e * t;\n return 4 * (t < .5 ? r : 3 * (t - e) + r - .75);\n }\n function k(t, e, r, n) {\n const i = new y(t, e, r, n);\n return function (t) {\n return i.solve(t);\n };\n }\n const I = k(.25, .1, .25, 1);\n function M(t, e, r) {\n return Math.min(r, Math.max(e, t));\n }\n function T(t, e, r) {\n return (r = M((r - t) / (e - t), 0, 1)) * r * (3 - 2 * r);\n }\n function z(t, e, r) {\n const n = r - e,\n i = ((t - e) % n + n) % n + e;\n return i === e ? r : i;\n }\n function B(t, e, r) {\n if (!t.length) return r(null, []);\n let n = t.length;\n const i = new Array(t.length);\n let s = null;\n t.forEach((t, a) => {\n e(t, (t, e) => {\n t && (s = t), i[a] = e, 0 == --n && r(s, i);\n });\n });\n }\n function E(t) {\n const e = [];\n for (const r in t) e.push(t[r]);\n return e;\n }\n function C(t, ...e) {\n for (const r of e) for (const e in r) t[e] = r[e];\n return t;\n }\n let P = 1;\n function D() {\n return P++;\n }\n function V() {\n return function t(e) {\n return e ? (e ^ Math.random() * (16 >> e / 4)).toString(16) : ([1e7] + -[1e3] + -4e3 + -8e3 + -1e11).replace(/[018]/g, t);\n }();\n }\n function L(t) {\n return t <= 1 ? 1 : Math.pow(2, Math.ceil(Math.log(t) / Math.LN2));\n }\n function F(t) {\n return !!t && /^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t);\n }\n function R(t, e) {\n t.forEach(t => {\n e[t] && (e[t] = e[t].bind(e));\n });\n }\n function U(t, e) {\n return -1 !== t.indexOf(e, t.length - e.length);\n }\n function $(t, e, r) {\n const n = {};\n for (const i in t) n[i] = e.call(r || this, t[i], i, t);\n return n;\n }\n function j(t, e, r) {\n const n = {};\n for (const i in t) e.call(r || this, t[i], i, t) && (n[i] = t[i]);\n return n;\n }\n function O(t) {\n return Array.isArray(t) ? t.map(O) : \"object\" == typeof t && t ? $(t, O) : t;\n }\n const q = {};\n function N(t) {\n q[t] || (\"undefined\" != typeof console && console.warn(t), q[t] = !0);\n }\n function G(t, e, r) {\n return (r.y - t.y) * (e.x - t.x) > (e.y - t.y) * (r.x - t.x);\n }\n function Z(t) {\n let e = 0;\n for (let r, n, i = 0, s = t.length, a = s - 1; i < s; a = i++) r = t[i], n = t[a], e += (n.x - r.x) * (r.y + n.y);\n return e;\n }\n function K() {\n return \"undefined\" != typeof WorkerGlobalScope && \"undefined\" != typeof self && self instanceof WorkerGlobalScope;\n }\n function X(t) {\n const e = {};\n if (t.replace(/(?:^|(?:\\s*\\,\\s*))([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)(?:\\=(?:([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)|(?:\\\"((?:[^\"\\\\]|\\\\.)*)\\\")))?/g, (t, r, n, i) => {\n const s = n || i;\n return e[r] = !s || s.toLowerCase(), \"\";\n }), e[\"max-age\"]) {\n const t = parseInt(e[\"max-age\"], 10);\n isNaN(t) ? delete e[\"max-age\"] : e[\"max-age\"] = t;\n }\n return e;\n }\n let J = null;\n function H(t) {\n if (null == J) {\n const e = t.navigator ? t.navigator.userAgent : null;\n J = !!t.safari || !(!e || !(/\\b(iPad|iPhone|iPod)\\b/.test(e) || e.match(\"Safari\") && !e.match(\"Chrome\")));\n }\n return J;\n }\n function Y(t) {\n try {\n const r = e[t];\n return r.setItem(\"_mapbox_test_\", 1), r.removeItem(\"_mapbox_test_\"), !0;\n } catch (t) {\n return !1;\n }\n }\n function W(t, e) {\n return [t[4 * e], t[4 * e + 1], t[4 * e + 2], t[4 * e + 3]];\n }\n const Q = \"mapbox-tiles\";\n let tt = 500,\n et = 50;\n let rt, nt;\n function it() {\n try {\n return e.caches;\n } catch (t) {}\n }\n function st() {\n it() && !rt && (rt = e.caches.open(Q));\n }\n function at(t) {\n const e = t.indexOf(\"?\");\n if (e < 0) return t;\n const r = function (t) {\n const e = t.indexOf(\"?\");\n return e > 0 ? t.slice(e + 1).split(\"&\") : [];\n }(t),\n n = r.filter(t => {\n const e = t.split(\"=\");\n return \"language\" === e[0] || \"worldview\" === e[0];\n });\n return n.length ? `${t.slice(0, e)}?${n.join(\"&\")}` : t.slice(0, e);\n }\n let ot = 1 / 0;\n const lt = {\n Unknown: \"Unknown\",\n Style: \"Style\",\n Source: \"Source\",\n Tile: \"Tile\",\n Glyphs: \"Glyphs\",\n SpriteImage: \"SpriteImage\",\n SpriteJSON: \"SpriteJSON\",\n Image: \"Image\"\n };\n \"function\" == typeof Object.freeze && Object.freeze(lt);\n class ut extends Error {\n constructor(t, e, r) {\n 401 === e && bt(r) && (t += \": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes\"), super(t), this.status = e, this.url = r;\n }\n toString() {\n return `${this.name}: ${this.message} (${this.status}): ${this.url}`;\n }\n }\n const ct = K() ? () => self.worker && self.worker.referrer : () => (\"blob:\" === e.location.protocol ? e.parent : e).location.href;\n const ht = function (t, r) {\n if (!(/^file:/.test(n = t.url) || /^file:/.test(ct()) && !/^\\w+:/.test(n))) {\n if (e.fetch && e.Request && e.AbortController && e.Request.prototype.hasOwnProperty(\"signal\")) return function (t, r) {\n const n = new e.AbortController(),\n i = new e.Request(t.url, {\n method: t.method || \"GET\",\n body: t.body,\n credentials: t.credentials,\n headers: t.headers,\n referrer: ct(),\n referrerPolicy: t.referrerPolicy,\n signal: n.signal\n });\n let s = !1,\n a = !1;\n const o = (l = i.url).indexOf(\"sku=\") > 0 && bt(l);\n var l;\n \"json\" === t.type && i.headers.set(\"Accept\", \"application/json\");\n const u = (n, s, l) => {\n if (a) return;\n if (n && \"SecurityError\" !== n.message && N(n.toString()), s && l) return c(s);\n const u = Date.now();\n e.fetch(i).then(e => {\n if (e.ok) {\n const t = o ? e.clone() : null;\n return c(e, t, u);\n }\n return r(new ut(e.statusText, e.status, t.url));\n }).catch(e => {\n \"AbortError\" !== e.name && r(new Error(`${e.message} ${t.url}`));\n });\n },\n c = (n, o, l) => {\n (\"arrayBuffer\" === t.type ? n.arrayBuffer() : \"json\" === t.type ? n.json() : n.text()).then(t => {\n a || (o && l && function (t, r, n) {\n if (st(), !rt) return;\n const i = {\n status: r.status,\n statusText: r.statusText,\n headers: new e.Headers()\n };\n r.headers.forEach((t, e) => i.headers.set(e, t));\n const s = X(r.headers.get(\"Cache-Control\") || \"\");\n if (s[\"no-store\"]) return;\n s[\"max-age\"] && i.headers.set(\"Expires\", new Date(n + 1e3 * s[\"max-age\"]).toUTCString());\n const a = i.headers.get(\"Expires\");\n a && (new Date(a).getTime() - n < 42e4 || function (t, e) {\n if (void 0 === nt) try {\n new Response(new ReadableStream()), nt = !0;\n } catch (t) {\n nt = !1;\n }\n nt ? e(t.body) : t.blob().then(e);\n }(r, r => {\n const n = new e.Response(r, i);\n st(), rt && rt.then(e => e.put(at(t.url), n)).catch(t => N(t.message));\n }));\n }(i, o, l), s = !0, r(null, t, n.headers.get(\"Cache-Control\"), n.headers.get(\"Expires\")));\n }).catch(t => {\n a || r(new Error(t.message));\n });\n };\n return o ? function (t, e) {\n if (st(), !rt) return e(null);\n const r = at(t.url);\n rt.then(t => {\n t.match(r).then(n => {\n const i = function (t) {\n if (!t) return !1;\n const e = new Date(t.headers.get(\"Expires\") || 0),\n r = X(t.headers.get(\"Cache-Control\") || \"\");\n return e > Date.now() && !r[\"no-cache\"];\n }(n);\n t.delete(r), i && t.put(r, n.clone()), e(null, n, i);\n }).catch(e);\n }).catch(e);\n }(i, u) : u(null, null), {\n cancel: () => {\n a = !0, s || n.abort();\n }\n };\n }(t, r);\n if (K() && self.worker && self.worker.actor) return self.worker.actor.send(\"getResource\", t, r, void 0, !0);\n }\n var n;\n return function (t, r) {\n const n = new e.XMLHttpRequest();\n n.open(t.method || \"GET\", t.url, !0), \"arrayBuffer\" === t.type && (n.responseType = \"arraybuffer\");\n for (const e in t.headers) n.setRequestHeader(e, t.headers[e]);\n return \"json\" === t.type && (n.responseType = \"text\", n.setRequestHeader(\"Accept\", \"application/json\")), n.withCredentials = \"include\" === t.credentials, n.onerror = () => {\n r(new Error(n.statusText));\n }, n.onload = () => {\n if ((n.status >= 200 && n.status < 300 || 0 === n.status) && null !== n.response) {\n let e = n.response;\n if (\"json\" === t.type) try {\n e = JSON.parse(n.response);\n } catch (t) {\n return r(t);\n }\n r(null, e, n.getResponseHeader(\"Cache-Control\"), n.getResponseHeader(\"Expires\"));\n } else r(new ut(n.statusText, n.status, t.url));\n }, n.send(t.body), {\n cancel: () => n.abort()\n };\n }(t, r);\n },\n pt = function (t, e) {\n return ht(C(t, {\n type: \"arrayBuffer\"\n }), e);\n };\n function dt(t) {\n const r = e.document.createElement(\"a\");\n return r.href = t, r.protocol === e.document.location.protocol && r.host === e.document.location.host;\n }\n const ft = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=\";\n let yt, mt;\n yt = [], mt = 0;\n const gt = function (t, r) {\n if (s.supported && (t.headers || (t.headers = {}), t.headers.accept = \"image/webp,*/*\"), mt >= i.MAX_PARALLEL_IMAGE_REQUESTS) {\n const e = {\n requestParameters: t,\n callback: r,\n cancelled: !1,\n cancel() {\n this.cancelled = !0;\n }\n };\n return yt.push(e), e;\n }\n mt++;\n let n = !1;\n const a = () => {\n if (!n) for (n = !0, mt--; yt.length && mt < i.MAX_PARALLEL_IMAGE_REQUESTS;) {\n const t = yt.shift(),\n {\n requestParameters: e,\n callback: r,\n cancelled: n\n } = t;\n n || (t.cancel = gt(e, r).cancel);\n }\n },\n o = pt(t, (t, n, i, s) => {\n a(), t ? r(t) : n && (e.createImageBitmap ? function (t, r) {\n const n = new e.Blob([new Uint8Array(t)], {\n type: \"image/png\"\n });\n e.createImageBitmap(n).then(t => {\n r(null, t);\n }).catch(t => {\n r(new Error(`Could not load image because of ${t.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`));\n });\n }(n, (t, e) => r(t, e, i, s)) : function (t, r) {\n const n = new e.Image(),\n i = e.URL;\n n.onload = () => {\n r(null, n), i.revokeObjectURL(n.src), n.onload = null, e.requestAnimationFrame(() => {\n n.src = ft;\n });\n }, n.onerror = () => r(new Error(\"Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.\"));\n const s = new e.Blob([new Uint8Array(t)], {\n type: \"image/png\"\n });\n n.src = t.byteLength ? i.createObjectURL(s) : ft;\n }(n, (t, e) => r(t, e, i, s)));\n });\n return {\n cancel: () => {\n o.cancel(), a();\n }\n };\n },\n xt = \"NO_ACCESS_TOKEN\";\n function vt(t) {\n return 0 === t.indexOf(\"mapbox:\");\n }\n function bt(t) {\n return i.API_URL_REGEX.test(t);\n }\n function wt(t) {\n return i.API_CDN_URL_REGEX.test(t);\n }\n function _t(t) {\n return i.API_STYLE_REGEX.test(t) && !At(t);\n }\n function At(t) {\n return i.API_SPRITE_REGEX.test(t);\n }\n const St = /^(\\w+):\\/\\/([^/?]*)(\\/[^?]+)?\\??(.+)?/;\n function kt(t) {\n const e = t.match(St);\n if (!e) throw new Error(\"Unable to parse URL object\");\n return {\n protocol: e[1],\n authority: e[2],\n path: e[3] || \"/\",\n params: e[4] ? e[4].split(\"&\") : []\n };\n }\n function It(t) {\n const e = t.params.length ? `?${t.params.join(\"&\")}` : \"\";\n return `${t.protocol}://${t.authority}${t.path}${e}`;\n }\n const Mt = \"mapbox.eventData\";\n function Tt(t) {\n if (!t) return null;\n const r = t.split(\".\");\n if (!r || 3 !== r.length) return null;\n try {\n return JSON.parse(decodeURIComponent(e.atob(r[1]).split(\"\").map(t => \"%\" + (\"00\" + t.charCodeAt(0).toString(16)).slice(-2)).join(\"\")));\n } catch (t) {\n return null;\n }\n }\n class zt {\n constructor(t) {\n this.type = t, this.anonId = null, this.eventData = {}, this.queue = [], this.pendingRequest = null;\n }\n getStorageKey(t) {\n const r = Tt(i.ACCESS_TOKEN);\n let n = \"\";\n return n = r && r.u ? e.btoa(encodeURIComponent(r.u).replace(/%([0-9A-F]{2})/g, (t, e) => String.fromCharCode(Number(\"0x\" + e)))) : i.ACCESS_TOKEN || \"\", t ? `${Mt}.${t}:${n}` : `${Mt}:${n}`;\n }\n fetchEventData() {\n const t = Y(\"localStorage\"),\n r = this.getStorageKey(),\n n = this.getStorageKey(\"uuid\");\n if (t) try {\n const t = e.localStorage.getItem(r);\n t && (this.eventData = JSON.parse(t));\n const i = e.localStorage.getItem(n);\n i && (this.anonId = i);\n } catch (t) {\n N(\"Unable to read from LocalStorage\");\n }\n }\n saveEventData() {\n const t = Y(\"localStorage\"),\n r = this.getStorageKey(),\n n = this.getStorageKey(\"uuid\");\n if (t) try {\n e.localStorage.setItem(n, this.anonId), Object.keys(this.eventData).length >= 1 && e.localStorage.setItem(r, JSON.stringify(this.eventData));\n } catch (t) {\n N(\"Unable to write to LocalStorage\");\n }\n }\n processRequests(t) {}\n postEvent(t, e, r, n) {\n if (!i.EVENTS_URL) return;\n const s = kt(i.EVENTS_URL);\n s.params.push(`access_token=${n || i.ACCESS_TOKEN || \"\"}`);\n const a = {\n event: this.type,\n created: new Date(t).toISOString()\n },\n o = e ? C(a, e) : a,\n l = {\n url: It(s),\n headers: {\n \"Content-Type\": \"text/plain\"\n },\n body: JSON.stringify([o])\n };\n this.pendingRequest = function (t, e) {\n return ht(C(t, {\n method: \"POST\"\n }), e);\n }(l, t => {\n this.pendingRequest = null, r(t), this.saveEventData(), this.processRequests(n);\n });\n }\n queueRequest(t, e) {\n this.queue.push(t), this.processRequests(e);\n }\n }\n const Bt = new class extends zt {\n constructor(t) {\n super(\"appUserTurnstile\"), this._customAccessToken = t;\n }\n postTurnstileEvent(t, e) {\n i.EVENTS_URL && i.ACCESS_TOKEN && Array.isArray(t) && t.some(t => vt(t) || bt(t)) && this.queueRequest(Date.now(), e);\n }\n processRequests(t) {\n if (this.pendingRequest || 0 === this.queue.length) return;\n this.anonId && this.eventData.lastSuccess && this.eventData.tokenU || this.fetchEventData();\n const e = Tt(i.ACCESS_TOKEN),\n n = e ? e.u : i.ACCESS_TOKEN;\n let s = n !== this.eventData.tokenU;\n F(this.anonId) || (this.anonId = V(), s = !0);\n const a = this.queue.shift();\n if (this.eventData.lastSuccess) {\n const t = new Date(this.eventData.lastSuccess),\n e = new Date(a),\n r = (a - this.eventData.lastSuccess) / 864e5;\n s = s || r >= 1 || r < -1 || t.getDate() !== e.getDate();\n } else s = !0;\n s ? this.postEvent(a, {\n sdkIdentifier: \"mapbox-gl-js\",\n sdkVersion: r,\n skuId: h,\n \"enabled.telemetry\": !1,\n userId: this.anonId\n }, t => {\n t || (this.eventData.lastSuccess = a, this.eventData.tokenU = n);\n }, t) : this.processRequests();\n }\n }(),\n Et = Bt.postTurnstileEvent.bind(Bt),\n Ct = new class extends zt {\n constructor() {\n super(\"map.load\"), this.success = {}, this.skuToken = \"\";\n }\n postMapLoadEvent(t, e, r, n) {\n this.skuToken = e, this.errorCb = n, i.EVENTS_URL && (r || i.ACCESS_TOKEN ? this.queueRequest({\n id: t,\n timestamp: Date.now()\n }, r) : this.errorCb(new Error(xt)));\n }\n processRequests(t) {\n if (this.pendingRequest || 0 === this.queue.length) return;\n const {\n id: e,\n timestamp: n\n } = this.queue.shift();\n e && this.success[e] || (this.anonId || this.fetchEventData(), F(this.anonId) || (this.anonId = V()), this.postEvent(n, {\n sdkIdentifier: \"mapbox-gl-js\",\n sdkVersion: r,\n skuId: h,\n skuToken: this.skuToken,\n userId: this.anonId\n }, t => {\n t ? this.errorCb(t) : e && (this.success[e] = !0);\n }, t));\n }\n }(),\n Pt = Ct.postMapLoadEvent.bind(Ct),\n Dt = new class extends zt {\n constructor() {\n super(\"gljs.performance\");\n }\n postPerformanceEvent(t, e) {\n i.EVENTS_URL && (t || i.ACCESS_TOKEN) && this.queueRequest({\n timestamp: Date.now(),\n performanceData: e\n }, t);\n }\n processRequests(t) {\n if (this.pendingRequest || 0 === this.queue.length) return;\n const {\n timestamp: n,\n performanceData: i\n } = this.queue.shift(),\n s = function (t) {\n const n = e.performance.getEntriesByType(\"resource\"),\n i = e.performance.getEntriesByType(\"mark\"),\n s = function (t) {\n const e = {};\n if (t) for (const r in t) if (\"other\" !== r) for (const n of t[r]) {\n const t = `${r}ResolveRangeMin`,\n i = `${r}ResolveRangeMax`,\n s = `${r}RequestCount`,\n a = `${r}RequestCachedCount`;\n e[t] = Math.min(e[t] || 1 / 0, n.startTime), e[i] = Math.max(e[i] || -1 / 0, n.responseEnd);\n const o = t => {\n void 0 === e[t] && (e[t] = 0), ++e[t];\n };\n void 0 !== n.transferSize && 0 === n.transferSize && o(a), o(s);\n }\n return e;\n }(function (t, e) {\n const r = {};\n if (t) for (const n of t) {\n const t = e(n);\n void 0 === r[t] && (r[t] = []), r[t].push(n);\n }\n return r;\n }(n, jt)),\n a = e.devicePixelRatio,\n o = e.navigator.connection || e.navigator.mozConnection || e.navigator.webkitConnection,\n l = {\n counters: [],\n metadata: [],\n attributes: []\n },\n u = (t, e, r) => {\n null != r && t.push({\n name: e,\n value: r.toString()\n });\n };\n for (const t in s) u(l.counters, t, s[t]);\n if (t.interactionRange[0] !== 1 / 0 && t.interactionRange[1] !== -1 / 0 && (u(l.counters, \"interactionRangeMin\", t.interactionRange[0]), u(l.counters, \"interactionRangeMax\", t.interactionRange[1])), i) for (const t of Object.keys(Ut)) {\n const e = Ut[t],\n r = i.find(t => t.name === e);\n r && u(l.counters, e, r.startTime);\n }\n return u(l.counters, \"visibilityHidden\", t.visibilityHidden), u(l.attributes, \"style\", function (t) {\n if (t) for (const e of t) {\n const t = e.name.split(\"?\")[0];\n if (_t(t)) {\n const e = t.split(\"/\").slice(-2);\n if (2 === e.length) return `mapbox://styles/${e[0]}/${e[1]}`;\n }\n }\n }(n)), u(l.attributes, \"terrainEnabled\", t.terrainEnabled ? \"true\" : \"false\"), u(l.attributes, \"fogEnabled\", t.fogEnabled ? \"true\" : \"false\"), u(l.attributes, \"projection\", t.projection), u(l.attributes, \"zoom\", t.zoom), u(l.metadata, \"devicePixelRatio\", a), u(l.metadata, \"connectionEffectiveType\", o ? o.effectiveType : void 0), u(l.metadata, \"navigatorUserAgent\", e.navigator.userAgent), u(l.metadata, \"screenWidth\", e.screen.width), u(l.metadata, \"screenHeight\", e.screen.height), u(l.metadata, \"windowWidth\", e.innerWidth), u(l.metadata, \"windowHeight\", e.innerHeight), u(l.metadata, \"mapWidth\", t.width / a), u(l.metadata, \"mapHeight\", t.height / a), u(l.metadata, \"webglRenderer\", t.renderer), u(l.metadata, \"webglVendor\", t.vendor), u(l.metadata, \"sdkVersion\", r), u(l.metadata, \"sdkIdentifier\", \"mapbox-gl-js\"), l;\n }(i);\n for (const t of s.metadata);\n for (const t of s.counters);\n for (const t of s.attributes);\n this.postEvent(n, s, () => {}, t);\n }\n }(),\n Vt = Dt.postPerformanceEvent.bind(Dt),\n Lt = new class extends zt {\n constructor() {\n super(\"map.auth\"), this.success = {}, this.skuToken = \"\";\n }\n getSession(t, e, r, n) {\n if (!i.API_URL || !i.SESSION_PATH) return;\n const s = kt(i.API_URL + i.SESSION_PATH);\n s.params.push(`sku=${e || \"\"}`), s.params.push(`access_token=${n || i.ACCESS_TOKEN || \"\"}`);\n const a = {\n url: It(s),\n headers: {\n \"Content-Type\": \"text/plain\"\n }\n };\n this.pendingRequest = function (t, e) {\n return ht(C(t, {\n method: \"GET\"\n }), e);\n }(a, t => {\n this.pendingRequest = null, r(t), this.saveEventData(), this.processRequests(n);\n });\n }\n getSessionAPI(t, e, r, n) {\n this.skuToken = e, this.errorCb = n, i.SESSION_PATH && i.API_URL && (r || i.ACCESS_TOKEN ? this.queueRequest({\n id: t,\n timestamp: Date.now()\n }, r) : this.errorCb(new Error(xt)));\n }\n processRequests(t) {\n if (this.pendingRequest || 0 === this.queue.length) return;\n const {\n id: e,\n timestamp: r\n } = this.queue.shift();\n e && this.success[e] || this.getSession(r, this.skuToken, t => {\n t ? this.errorCb(t) : e && (this.success[e] = !0);\n }, t);\n }\n }(),\n Ft = Lt.getSessionAPI.bind(Lt),\n Rt = new Set(),\n Ut = {\n create: \"create\",\n load: \"load\",\n fullLoad: \"fullLoad\"\n },\n $t = {\n mark(t) {\n e.performance.mark(t);\n },\n measure(t, r, n) {\n e.performance.measure(t, r, n);\n }\n };\n function jt(t) {\n const e = t.name.split(\"?\")[0];\n return wt(e) && e.includes(\"mapbox-gl.js\") ? \"javascript\" : wt(e) && e.includes(\"mapbox-gl.css\") ? \"css\" : function (t) {\n return i.API_FONTS_REGEX.test(t);\n }(e) ? \"fontRange\" : At(e) ? \"sprite\" : _t(e) ? \"style\" : function (t) {\n return i.API_TILEJSON_REGEX.test(t);\n }(e) ? \"tilejson\" : \"other\";\n }\n const Ot = e.performance;\n function qt(t) {\n const e = t ? t.url.toString() : void 0;\n return Ot.getEntriesByName(e);\n }\n let Nt, Gt, Zt, Kt;\n const Xt = {\n now: () => void 0 !== Zt ? Zt : e.performance.now(),\n setNow(t) {\n Zt = t;\n },\n restoreNow() {\n Zt = void 0;\n },\n frame(t) {\n const r = e.requestAnimationFrame(t);\n return {\n cancel: () => e.cancelAnimationFrame(r)\n };\n },\n getImageData(t, r = 0) {\n const {\n width: n,\n height: i\n } = t;\n Kt || (Kt = e.document.createElement(\"canvas\"));\n const s = Kt.getContext(\"2d\", {\n willReadFrequently: !0\n });\n if (!s) throw new Error(\"failed to create canvas 2d context\");\n return (n > Kt.width || i > Kt.height) && (Kt.width = n, Kt.height = i), s.clearRect(-r, -r, n + 2 * r, i + 2 * r), s.drawImage(t, 0, 0, n, i), s.getImageData(-r, -r, n + 2 * r, i + 2 * r);\n },\n resolveURL: t => (Nt || (Nt = e.document.createElement(\"a\")), Nt.href = t, Nt.href),\n get devicePixelRatio() {\n return e.devicePixelRatio;\n },\n get prefersReducedMotion() {\n return !!e.matchMedia && (null == Gt && (Gt = e.matchMedia(\"(prefers-reduced-motion: reduce)\")), Gt.matches);\n }\n };\n function Jt(t, e, r) {\n r[t] && -1 !== r[t].indexOf(e) || (r[t] = r[t] || [], r[t].push(e));\n }\n function Ht(t, e, r) {\n if (r && r[t]) {\n const n = r[t].indexOf(e);\n -1 !== n && r[t].splice(n, 1);\n }\n }\n class Yt {\n constructor(t, e = {}) {\n C(this, e), this.type = t;\n }\n }\n class Wt extends Yt {\n constructor(t, e = {}) {\n super(\"error\", C({\n error: t\n }, e));\n }\n }\n class Qt {\n on(t, e) {\n return this._listeners = this._listeners || {}, Jt(t, e, this._listeners), this;\n }\n off(t, e) {\n return Ht(t, e, this._listeners), Ht(t, e, this._oneTimeListeners), this;\n }\n once(t, e) {\n return e ? (this._oneTimeListeners = this._oneTimeListeners || {}, Jt(t, e, this._oneTimeListeners), this) : new Promise(e => this.once(t, e));\n }\n fire(t, e) {\n \"string\" == typeof t && (t = new Yt(t, e || {}));\n const r = t.type;\n if (this.listens(r)) {\n t.target = this;\n const e = this._listeners && this._listeners[r] ? this._listeners[r].slice() : [];\n for (const r of e) r.call(this, t);\n const n = this._oneTimeListeners && this._oneTimeListeners[r] ? this._oneTimeListeners[r].slice() : [];\n for (const e of n) Ht(r, e, this._oneTimeListeners), e.call(this, t);\n const i = this._eventedParent;\n i && (C(t, \"function\" == typeof this._eventedParentData ? this._eventedParentData() : this._eventedParentData), i.fire(t));\n } else t instanceof Wt && console.error(t.error);\n return this;\n }\n listens(t) {\n return !!(this._listeners && this._listeners[t] && this._listeners[t].length > 0 || this._oneTimeListeners && this._oneTimeListeners[t] && this._oneTimeListeners[t].length > 0 || this._eventedParent && this._eventedParent.listens(t));\n }\n setEventedParent(t, e) {\n return this._eventedParent = t, this._eventedParentData = e, this;\n }\n }\n var te = JSON.parse('{\"$version\":8,\"$root\":{\"version\":{\"required\":true,\"type\":\"enum\",\"values\":[8]},\"name\":{\"type\":\"string\"},\"metadata\":{\"type\":\"*\"},\"center\":{\"type\":\"array\",\"value\":\"number\"},\"zoom\":{\"type\":\"number\"},\"bearing\":{\"type\":\"number\",\"default\":0,\"period\":360,\"units\":\"degrees\"},\"pitch\":{\"type\":\"number\",\"default\":0,\"units\":\"degrees\"},\"light\":{\"type\":\"light\"},\"terrain\":{\"type\":\"terrain\"},\"fog\":{\"type\":\"fog\"},\"sources\":{\"required\":true,\"type\":\"sources\"},\"sprite\":{\"type\":\"string\"},\"glyphs\":{\"type\":\"string\"},\"transition\":{\"type\":\"transition\"},\"projection\":{\"type\":\"projection\"},\"layers\":{\"required\":true,\"type\":\"array\",\"value\":\"layer\"}},\"sources\":{\"*\":{\"type\":\"source\"}},\"source\":[\"source_vector\",\"source_raster\",\"source_raster_dem\",\"source_geojson\",\"source_video\",\"source_image\"],\"source_vector\":{\"type\":{\"required\":true,\"type\":\"enum\",\"values\":{\"vector\":{}}},\"url\":{\"type\":\"string\"},\"tiles\":{\"type\":\"array\",\"value\":\"string\"},\"bounds\":{\"type\":\"array\",\"value\":\"number\",\"length\":4,\"default\":[-180,-85.051129,180,85.051129]},\"scheme\":{\"type\":\"enum\",\"values\":{\"xyz\":{},\"tms\":{}},\"default\":\"xyz\"},\"minzoom\":{\"type\":\"number\",\"default\":0},\"maxzoom\":{\"type\":\"number\",\"default\":22},\"attribution\":{\"type\":\"string\"},\"promoteId\":{\"type\":\"promoteId\"},\"volatile\":{\"type\":\"boolean\",\"default\":false},\"*\":{\"type\":\"*\"}},\"source_raster\":{\"type\":{\"required\":true,\"type\":\"enum\",\"values\":{\"raster\":{}}},\"url\":{\"type\":\"string\"},\"tiles\":{\"type\":\"array\",\"value\":\"string\"},\"bounds\":{\"type\":\"array\",\"value\":\"number\",\"length\":4,\"default\":[-180,-85.051129,180,85.051129]},\"minzoom\":{\"type\":\"number\",\"default\":0},\"maxzoom\":{\"type\":\"number\",\"default\":22},\"tileSize\":{\"type\":\"number\",\"default\":512,\"units\":\"pixels\"},\"scheme\":{\"type\":\"enum\",\"values\":{\"xyz\":{},\"tms\":{}},\"default\":\"xyz\"},\"attribution\":{\"type\":\"string\"},\"volatile\":{\"type\":\"boolean\",\"default\":false},\"*\":{\"type\":\"*\"}},\"source_raster_dem\":{\"type\":{\"required\":true,\"type\":\"enum\",\"values\":{\"raster-dem\":{}}},\"url\":{\"type\":\"string\"},\"tiles\":{\"type\":\"array\",\"value\":\"string\"},\"bounds\":{\"type\":\"array\",\"value\":\"number\",\"length\":4,\"default\":[-180,-85.051129,180,85.051129]},\"minzoom\":{\"type\":\"number\",\"default\":0},\"maxzoom\":{\"type\":\"number\",\"default\":22},\"tileSize\":{\"type\":\"number\",\"default\":512,\"units\":\"pixels\"},\"attribution\":{\"type\":\"string\"},\"encoding\":{\"type\":\"enum\",\"values\":{\"terrarium\":{},\"mapbox\":{}},\"default\":\"mapbox\"},\"volatile\":{\"type\":\"boolean\",\"default\":false},\"*\":{\"type\":\"*\"}},\"source_geojson\":{\"type\":{\"required\":true,\"type\":\"enum\",\"values\":{\"geojson\":{}}},\"data\":{\"type\":\"*\"},\"maxzoom\":{\"type\":\"number\",\"default\":18},\"attribution\":{\"type\":\"string\"},\"buffer\":{\"type\":\"number\",\"default\":128,\"maximum\":512,\"minimum\":0},\"filter\":{\"type\":\"*\"},\"tolerance\":{\"type\":\"number\",\"default\":0.375},\"cluster\":{\"type\":\"boolean\",\"default\":false},\"clusterRadius\":{\"type\":\"number\",\"default\":50,\"minimum\":0},\"clusterMaxZoom\":{\"type\":\"number\"},\"clusterMinPoints\":{\"type\":\"number\"},\"clusterProperties\":{\"type\":\"*\"},\"lineMetrics\":{\"type\":\"boolean\",\"default\":false},\"generateId\":{\"type\":\"boolean\",\"default\":false},\"promoteId\":{\"type\":\"promoteId\"}},\"source_video\":{\"type\":{\"required\":true,\"type\":\"enum\",\"values\":{\"video\":{}}},\"urls\":{\"required\":true,\"type\":\"array\",\"value\":\"string\"},\"coordinates\":{\"required\":true,\"type\":\"array\",\"length\":4,\"value\":{\"type\":\"array\",\"length\":2,\"value\":\"number\"}}},\"source_image\":{\"type\":{\"required\":true,\"type\":\"enum\",\"values\":{\"image\":{}}},\"url\":{\"required\":true,\"type\":\"string\"},\"coordinates\":{\"required\":true,\"type\":\"array\",\"length\":4,\"value\":{\"type\":\"array\",\"length\":2,\"value\":\"number\"}}},\"layer\":{\"id\":{\"type\":\"string\",\"required\":true},\"type\":{\"type\":\"enum\",\"values\":{\"fill\":{},\"line\":{},\"symbol\":{},\"circle\":{},\"heatmap\":{},\"fill-extrusion\":{},\"raster\":{},\"hillshade\":{},\"background\":{},\"sky\":{}},\"required\":true},\"metadata\":{\"type\":\"*\"},\"source\":{\"type\":\"string\"},\"source-layer\":{\"type\":\"string\"},\"minzoom\":{\"type\":\"number\",\"minimum\":0,\"maximum\":24},\"maxzoom\":{\"type\":\"number\",\"minimum\":0,\"maximum\":24},\"filter\":{\"type\":\"filter\"},\"layout\":{\"type\":\"layout\"},\"paint\":{\"type\":\"paint\"}},\"layout\":[\"layout_fill\",\"layout_line\",\"layout_circle\",\"layout_heatmap\",\"layout_fill-extrusion\",\"layout_symbol\",\"layout_raster\",\"layout_hillshade\",\"layout_background\",\"layout_sky\"],\"layout_background\":{\"visibility\":{\"type\":\"enum\",\"values\":{\"visible\":{},\"none\":{}},\"default\":\"visible\",\"property-type\":\"constant\"}},\"layout_sky\":{\"visibility\":{\"type\":\"enum\",\"values\":{\"visible\":{},\"none\":{}},\"default\":\"visible\",\"property-type\":\"constant\"}},\"layout_fill\":{\"fill-sort-key\":{\"type\":\"number\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"visibility\":{\"type\":\"enum\",\"values\":{\"visible\":{},\"none\":{}},\"default\":\"visible\",\"property-type\":\"constant\"}},\"layout_circle\":{\"circle-sort-key\":{\"type\":\"number\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"visibility\":{\"type\":\"enum\",\"values\":{\"visible\":{},\"none\":{}},\"default\":\"visible\",\"property-type\":\"constant\"}},\"layout_heatmap\":{\"visibility\":{\"type\":\"enum\",\"values\":{\"visible\":{},\"none\":{}},\"default\":\"visible\",\"property-type\":\"constant\"}},\"layout_fill-extrusion\":{\"visibility\":{\"type\":\"enum\",\"values\":{\"visible\":{},\"none\":{}},\"default\":\"visible\",\"property-type\":\"constant\"},\"fill-extrusion-edge-radius\":{\"type\":\"number\",\"private\":true,\"default\":0,\"minimum\":0,\"maximum\":1,\"property-type\":\"constant\"}},\"layout_line\":{\"line-cap\":{\"type\":\"enum\",\"values\":{\"butt\":{},\"round\":{},\"square\":{}},\"default\":\"butt\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"line-join\":{\"type\":\"enum\",\"values\":{\"bevel\":{},\"round\":{},\"miter\":{}},\"default\":\"miter\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"line-miter-limit\":{\"type\":\"number\",\"default\":2,\"requires\":[{\"line-join\":\"miter\"}],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"line-round-limit\":{\"type\":\"number\",\"default\":1.05,\"requires\":[{\"line-join\":\"round\"}],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"line-sort-key\":{\"type\":\"number\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"visibility\":{\"type\":\"enum\",\"values\":{\"visible\":{},\"none\":{}},\"default\":\"visible\",\"property-type\":\"constant\"}},\"layout_symbol\":{\"symbol-placement\":{\"type\":\"enum\",\"values\":{\"point\":{},\"line\":{},\"line-center\":{}},\"default\":\"point\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"symbol-spacing\":{\"type\":\"number\",\"default\":250,\"minimum\":1,\"units\":\"pixels\",\"requires\":[{\"symbol-placement\":\"line\"}],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"symbol-avoid-edges\":{\"type\":\"boolean\",\"default\":false,\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"symbol-sort-key\":{\"type\":\"number\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"symbol-z-order\":{\"type\":\"enum\",\"values\":{\"auto\":{},\"viewport-y\":{},\"source\":{}},\"default\":\"auto\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-allow-overlap\":{\"type\":\"boolean\",\"default\":false,\"requires\":[\"icon-image\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-ignore-placement\":{\"type\":\"boolean\",\"default\":false,\"requires\":[\"icon-image\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-optional\":{\"type\":\"boolean\",\"default\":false,\"requires\":[\"icon-image\",\"text-field\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-rotation-alignment\":{\"type\":\"enum\",\"values\":{\"map\":{},\"viewport\":{},\"auto\":{}},\"default\":\"auto\",\"requires\":[\"icon-image\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-size\":{\"type\":\"number\",\"default\":1,\"minimum\":0,\"units\":\"factor of the original icon size\",\"requires\":[\"icon-image\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"icon-text-fit\":{\"type\":\"enum\",\"values\":{\"none\":{},\"width\":{},\"height\":{},\"both\":{}},\"default\":\"none\",\"requires\":[\"icon-image\",\"text-field\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-text-fit-padding\":{\"type\":\"array\",\"value\":\"number\",\"length\":4,\"default\":[0,0,0,0],\"units\":\"pixels\",\"requires\":[\"icon-image\",\"text-field\",{\"icon-text-fit\":[\"both\",\"width\",\"height\"]}],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-image\":{\"type\":\"resolvedImage\",\"tokens\":true,\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"icon-rotate\":{\"type\":\"number\",\"default\":0,\"period\":360,\"units\":\"degrees\",\"requires\":[\"icon-image\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"icon-padding\":{\"type\":\"number\",\"default\":2,\"minimum\":0,\"units\":\"pixels\",\"requires\":[\"icon-image\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-keep-upright\":{\"type\":\"boolean\",\"default\":false,\"requires\":[\"icon-image\",{\"icon-rotation-alignment\":\"map\"},{\"symbol-placement\":[\"line\",\"line-center\"]}],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-offset\":{\"type\":\"array\",\"value\":\"number\",\"length\":2,\"default\":[0,0],\"requires\":[\"icon-image\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"icon-anchor\":{\"type\":\"enum\",\"values\":{\"center\":{},\"left\":{},\"right\":{},\"top\":{},\"bottom\":{},\"top-left\":{},\"top-right\":{},\"bottom-left\":{},\"bottom-right\":{}},\"default\":\"center\",\"requires\":[\"icon-image\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"icon-pitch-alignment\":{\"type\":\"enum\",\"values\":{\"map\":{},\"viewport\":{},\"auto\":{}},\"default\":\"auto\",\"requires\":[\"icon-image\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-pitch-alignment\":{\"type\":\"enum\",\"values\":{\"map\":{},\"viewport\":{},\"auto\":{}},\"default\":\"auto\",\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-rotation-alignment\":{\"type\":\"enum\",\"values\":{\"map\":{},\"viewport\":{},\"auto\":{}},\"default\":\"auto\",\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-field\":{\"type\":\"formatted\",\"default\":\"\",\"tokens\":true,\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-font\":{\"type\":\"array\",\"value\":\"string\",\"default\":[\"Open Sans Regular\",\"Arial Unicode MS Regular\"],\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-size\":{\"type\":\"number\",\"default\":16,\"minimum\":0,\"units\":\"pixels\",\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-max-width\":{\"type\":\"number\",\"default\":10,\"minimum\":0,\"units\":\"ems\",\"requires\":[\"text-field\",{\"symbol-placement\":[\"point\"]}],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-line-height\":{\"type\":\"number\",\"default\":1.2,\"units\":\"ems\",\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-letter-spacing\":{\"type\":\"number\",\"default\":0,\"units\":\"ems\",\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-justify\":{\"type\":\"enum\",\"values\":{\"auto\":{},\"left\":{},\"center\":{},\"right\":{}},\"default\":\"center\",\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-radial-offset\":{\"type\":\"number\",\"units\":\"ems\",\"default\":0,\"requires\":[\"text-field\"],\"property-type\":\"data-driven\",\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\"]}},\"text-variable-anchor\":{\"type\":\"array\",\"value\":\"enum\",\"values\":{\"center\":{},\"left\":{},\"right\":{},\"top\":{},\"bottom\":{},\"top-left\":{},\"top-right\":{},\"bottom-left\":{},\"bottom-right\":{}},\"requires\":[\"text-field\",{\"symbol-placement\":[\"point\"]}],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-anchor\":{\"type\":\"enum\",\"values\":{\"center\":{},\"left\":{},\"right\":{},\"top\":{},\"bottom\":{},\"top-left\":{},\"top-right\":{},\"bottom-left\":{},\"bottom-right\":{}},\"default\":\"center\",\"requires\":[\"text-field\",{\"!\":\"text-variable-anchor\"}],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-max-angle\":{\"type\":\"number\",\"default\":45,\"units\":\"degrees\",\"requires\":[\"text-field\",{\"symbol-placement\":[\"line\",\"line-center\"]}],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-writing-mode\":{\"type\":\"array\",\"value\":\"enum\",\"values\":{\"horizontal\":{},\"vertical\":{}},\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-rotate\":{\"type\":\"number\",\"default\":0,\"period\":360,\"units\":\"degrees\",\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-padding\":{\"type\":\"number\",\"default\":2,\"minimum\":0,\"units\":\"pixels\",\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-keep-upright\":{\"type\":\"boolean\",\"default\":true,\"requires\":[\"text-field\",{\"text-rotation-alignment\":\"map\"},{\"symbol-placement\":[\"line\",\"line-center\"]}],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-transform\":{\"type\":\"enum\",\"values\":{\"none\":{},\"uppercase\":{},\"lowercase\":{}},\"default\":\"none\",\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-offset\":{\"type\":\"array\",\"value\":\"number\",\"units\":\"ems\",\"length\":2,\"default\":[0,0],\"requires\":[\"text-field\",{\"!\":\"text-radial-offset\"}],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-allow-overlap\":{\"type\":\"boolean\",\"default\":false,\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-ignore-placement\":{\"type\":\"boolean\",\"default\":false,\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-optional\":{\"type\":\"boolean\",\"default\":false,\"requires\":[\"text-field\",\"icon-image\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"visibility\":{\"type\":\"enum\",\"values\":{\"visible\":{},\"none\":{}},\"default\":\"visible\",\"property-type\":\"constant\"}},\"layout_raster\":{\"visibility\":{\"type\":\"enum\",\"values\":{\"visible\":{},\"none\":{}},\"default\":\"visible\",\"property-type\":\"constant\"}},\"layout_hillshade\":{\"visibility\":{\"type\":\"enum\",\"values\":{\"visible\":{},\"none\":{}},\"default\":\"visible\",\"property-type\":\"constant\"}},\"filter\":{\"type\":\"array\",\"value\":\"*\"},\"filter_symbol\":{\"type\":\"boolean\",\"default\":false,\"transition\":false,\"property-type\":\"data-driven\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\",\"pitch\",\"distance-from-center\"]}},\"filter_fill\":{\"type\":\"boolean\",\"default\":false,\"transition\":false,\"property-type\":\"data-driven\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]}},\"filter_line\":{\"type\":\"boolean\",\"default\":false,\"transition\":false,\"property-type\":\"data-driven\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]}},\"filter_circle\":{\"type\":\"boolean\",\"default\":false,\"transition\":false,\"property-type\":\"data-driven\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]}},\"filter_fill-extrusion\":{\"type\":\"boolean\",\"default\":false,\"transition\":false,\"property-type\":\"data-driven\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]}},\"filter_heatmap\":{\"type\":\"boolean\",\"default\":false,\"transition\":false,\"property-type\":\"data-driven\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]}},\"filter_operator\":{\"type\":\"enum\",\"values\":{\"==\":{},\"!=\":{},\">\":{},\">=\":{},\"<\":{},\"<=\":{},\"in\":{},\"!in\":{},\"all\":{},\"any\":{},\"none\":{},\"has\":{},\"!has\":{},\"within\":{}}},\"geometry_type\":{\"type\":\"enum\",\"values\":{\"Point\":{},\"LineString\":{},\"Polygon\":{}}},\"function\":{\"expression\":{\"type\":\"expression\"},\"stops\":{\"type\":\"array\",\"value\":\"function_stop\"},\"base\":{\"type\":\"number\",\"default\":1,\"minimum\":0},\"property\":{\"type\":\"string\",\"default\":\"$zoom\"},\"type\":{\"type\":\"enum\",\"values\":{\"identity\":{},\"exponential\":{},\"interval\":{},\"categorical\":{}},\"default\":\"exponential\"},\"colorSpace\":{\"type\":\"enum\",\"values\":{\"rgb\":{},\"lab\":{},\"hcl\":{}},\"default\":\"rgb\"},\"default\":{\"type\":\"*\",\"required\":false}},\"function_stop\":{\"type\":\"array\",\"minimum\":0,\"maximum\":24,\"value\":[\"number\",\"color\"],\"length\":2},\"expression\":{\"type\":\"array\",\"value\":\"*\",\"minimum\":1},\"fog\":{\"range\":{\"type\":\"array\",\"default\":[0.5,10],\"minimum\":-20,\"maximum\":20,\"length\":2,\"value\":\"number\",\"property-type\":\"data-constant\",\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]}},\"color\":{\"type\":\"color\",\"property-type\":\"data-constant\",\"default\":\"#ffffff\",\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"transition\":true},\"high-color\":{\"type\":\"color\",\"property-type\":\"data-constant\",\"default\":\"#245cdf\",\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"transition\":true},\"space-color\":{\"type\":\"color\",\"property-type\":\"data-constant\",\"default\":[\"interpolate\",[\"linear\"],[\"zoom\"],4,\"#010b19\",7,\"#367ab9\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"transition\":true},\"horizon-blend\":{\"type\":\"number\",\"property-type\":\"data-constant\",\"default\":[\"interpolate\",[\"linear\"],[\"zoom\"],4,0.2,7,0.1],\"minimum\":0,\"maximum\":1,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"transition\":true},\"star-intensity\":{\"type\":\"number\",\"property-type\":\"data-constant\",\"default\":[\"interpolate\",[\"linear\"],[\"zoom\"],5,0.35,6,0],\"minimum\":0,\"maximum\":1,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"transition\":true}},\"light\":{\"anchor\":{\"type\":\"enum\",\"default\":\"viewport\",\"values\":{\"map\":{},\"viewport\":{}},\"property-type\":\"data-constant\",\"transition\":false,\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]}},\"position\":{\"type\":\"array\",\"default\":[1.15,210,30],\"length\":3,\"value\":\"number\",\"property-type\":\"data-constant\",\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]}},\"color\":{\"type\":\"color\",\"property-type\":\"data-constant\",\"default\":\"#ffffff\",\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"transition\":true},\"intensity\":{\"type\":\"number\",\"property-type\":\"data-constant\",\"default\":0.5,\"minimum\":0,\"maximum\":1,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"transition\":true}},\"projection\":{\"name\":{\"type\":\"enum\",\"values\":{\"albers\":{},\"equalEarth\":{},\"equirectangular\":{},\"lambertConformalConic\":{},\"mercator\":{},\"naturalEarth\":{},\"winkelTripel\":{},\"globe\":{}},\"default\":\"mercator\",\"required\":true},\"center\":{\"type\":\"array\",\"length\":2,\"value\":\"number\",\"property-type\":\"data-constant\",\"minimum\":[-180,-90],\"maximum\":[180,90],\"transition\":false,\"requires\":[{\"name\":[\"albers\",\"lambertConformalConic\"]}]},\"parallels\":{\"type\":\"array\",\"length\":2,\"value\":\"number\",\"property-type\":\"data-constant\",\"minimum\":[-90,-90],\"maximum\":[90,90],\"transition\":false,\"requires\":[{\"name\":[\"albers\",\"lambertConformalConic\"]}]}},\"terrain\":{\"source\":{\"type\":\"string\",\"required\":true},\"exaggeration\":{\"type\":\"number\",\"property-type\":\"data-constant\",\"default\":1,\"minimum\":0,\"maximum\":1000,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"transition\":true,\"requires\":[\"source\"]}},\"paint\":[\"paint_fill\",\"paint_line\",\"paint_circle\",\"paint_heatmap\",\"paint_fill-extrusion\",\"paint_symbol\",\"paint_raster\",\"paint_hillshade\",\"paint_background\",\"paint_sky\"],\"paint_fill\":{\"fill-antialias\":{\"type\":\"boolean\",\"default\":true,\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-opacity\":{\"type\":\"number\",\"default\":1,\"minimum\":0,\"maximum\":1,\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-color\":{\"type\":\"color\",\"default\":\"#000000\",\"transition\":true,\"requires\":[{\"!\":\"fill-pattern\"}],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-outline-color\":{\"type\":\"color\",\"transition\":true,\"requires\":[{\"!\":\"fill-pattern\"},{\"fill-antialias\":true}],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-translate\":{\"type\":\"array\",\"value\":\"number\",\"length\":2,\"default\":[0,0],\"transition\":true,\"units\":\"pixels\",\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-translate-anchor\":{\"type\":\"enum\",\"values\":{\"map\":{},\"viewport\":{}},\"default\":\"map\",\"requires\":[\"fill-translate\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-pattern\":{\"type\":\"resolvedImage\",\"transition\":false,\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"}},\"paint_fill-extrusion\":{\"fill-extrusion-opacity\":{\"type\":\"number\",\"default\":1,\"minimum\":0,\"maximum\":1,\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-extrusion-color\":{\"type\":\"color\",\"default\":\"#000000\",\"transition\":true,\"requires\":[{\"!\":\"fill-extrusion-pattern\"}],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-extrusion-translate\":{\"type\":\"array\",\"value\":\"number\",\"length\":2,\"default\":[0,0],\"transition\":true,\"units\":\"pixels\",\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-extrusion-translate-anchor\":{\"type\":\"enum\",\"values\":{\"map\":{},\"viewport\":{}},\"default\":\"map\",\"requires\":[\"fill-extrusion-translate\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-extrusion-pattern\":{\"type\":\"resolvedImage\",\"transition\":false,\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"fill-extrusion-height\":{\"type\":\"number\",\"default\":0,\"minimum\":0,\"units\":\"meters\",\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-extrusion-base\":{\"type\":\"number\",\"default\":0,\"minimum\":0,\"units\":\"meters\",\"transition\":true,\"requires\":[\"fill-extrusion-height\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-extrusion-vertical-gradient\":{\"type\":\"boolean\",\"default\":true,\"transition\":false,\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-extrusion-ambient-occlusion-intensity\":{\"property-type\":\"data-constant\",\"type\":\"number\",\"private\":true,\"default\":0,\"minimum\":0,\"maximum\":1,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"transition\":true},\"fill-extrusion-ambient-occlusion-radius\":{\"property-type\":\"data-constant\",\"type\":\"number\",\"private\":true,\"default\":3,\"minimum\":0,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"transition\":true,\"requires\":[\"fill-extrusion-edge-radius\"]},\"fill-extrusion-rounded-roof\":{\"type\":\"boolean\",\"default\":true,\"requires\":[\"fill-extrusion-edge-radius\"],\"transition\":false,\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"}},\"paint_line\":{\"line-opacity\":{\"type\":\"number\",\"default\":1,\"minimum\":0,\"maximum\":1,\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-color\":{\"type\":\"color\",\"default\":\"#000000\",\"transition\":true,\"requires\":[{\"!\":\"line-pattern\"}],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-translate\":{\"type\":\"array\",\"value\":\"number\",\"length\":2,\"default\":[0,0],\"transition\":true,\"units\":\"pixels\",\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"line-translate-anchor\":{\"type\":\"enum\",\"values\":{\"map\":{},\"viewport\":{}},\"default\":\"map\",\"requires\":[\"line-translate\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"line-width\":{\"type\":\"number\",\"default\":1,\"minimum\":0,\"transition\":true,\"units\":\"pixels\",\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-gap-width\":{\"type\":\"number\",\"default\":0,\"minimum\":0,\"transition\":true,\"units\":\"pixels\",\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-offset\":{\"type\":\"number\",\"default\":0,\"transition\":true,\"units\":\"pixels\",\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-blur\":{\"type\":\"number\",\"default\":0,\"minimum\":0,\"transition\":true,\"units\":\"pixels\",\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-dasharray\":{\"type\":\"array\",\"value\":\"number\",\"minimum\":0,\"transition\":false,\"units\":\"line widths\",\"requires\":[{\"!\":\"line-pattern\"}],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"line-pattern\":{\"type\":\"resolvedImage\",\"transition\":false,\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"line-gradient\":{\"type\":\"color\",\"transition\":false,\"requires\":[{\"!\":\"line-pattern\"},{\"source\":\"geojson\",\"has\":{\"lineMetrics\":true}}],\"expression\":{\"interpolated\":true,\"parameters\":[\"line-progress\"]},\"property-type\":\"color-ramp\"},\"line-trim-offset\":{\"type\":\"array\",\"value\":\"number\",\"length\":2,\"default\":[0,0],\"minimum\":[0,0],\"maximum\":[1,1],\"transition\":false,\"requires\":[{\"source\":\"geojson\",\"has\":{\"lineMetrics\":true}}],\"property-type\":\"constant\"}},\"paint_circle\":{\"circle-radius\":{\"type\":\"number\",\"default\":5,\"minimum\":0,\"transition\":true,\"units\":\"pixels\",\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-color\":{\"type\":\"color\",\"default\":\"#000000\",\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-blur\":{\"type\":\"number\",\"default\":0,\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-opacity\":{\"type\":\"number\",\"default\":1,\"minimum\":0,\"maximum\":1,\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-translate\":{\"type\":\"array\",\"value\":\"number\",\"length\":2,\"default\":[0,0],\"transition\":true,\"units\":\"pixels\",\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"circle-translate-anchor\":{\"type\":\"enum\",\"values\":{\"map\":{},\"viewport\":{}},\"default\":\"map\",\"requires\":[\"circle-translate\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"circle-pitch-scale\":{\"type\":\"enum\",\"values\":{\"map\":{},\"viewport\":{}},\"default\":\"map\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"circle-pitch-alignment\":{\"type\":\"enum\",\"values\":{\"map\":{},\"viewport\":{}},\"default\":\"viewport\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"circle-stroke-width\":{\"type\":\"number\",\"default\":0,\"minimum\":0,\"transition\":true,\"units\":\"pixels\",\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-stroke-color\":{\"type\":\"color\",\"default\":\"#000000\",\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-stroke-opacity\":{\"type\":\"number\",\"default\":1,\"minimum\":0,\"maximum\":1,\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"}},\"paint_heatmap\":{\"heatmap-radius\":{\"type\":\"number\",\"default\":30,\"minimum\":1,\"transition\":true,\"units\":\"pixels\",\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"heatmap-weight\":{\"type\":\"number\",\"default\":1,\"minimum\":0,\"transition\":false,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"heatmap-intensity\":{\"type\":\"number\",\"default\":1,\"minimum\":0,\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"heatmap-color\":{\"type\":\"color\",\"default\":[\"interpolate\",[\"linear\"],[\"heatmap-density\"],0,\"rgba(0, 0, 255, 0)\",0.1,\"royalblue\",0.3,\"cyan\",0.5,\"lime\",0.7,\"yellow\",1,\"red\"],\"transition\":false,\"expression\":{\"interpolated\":true,\"parameters\":[\"heatmap-density\"]},\"property-type\":\"color-ramp\"},\"heatmap-opacity\":{\"type\":\"number\",\"default\":1,\"minimum\":0,\"maximum\":1,\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"}},\"paint_symbol\":{\"icon-opacity\":{\"type\":\"number\",\"default\":1,\"minimum\":0,\"maximum\":1,\"transition\":true,\"requires\":[\"icon-image\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"icon-color\":{\"type\":\"color\",\"default\":\"#000000\",\"transition\":true,\"requires\":[\"icon-image\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"icon-halo-color\":{\"type\":\"color\",\"default\":\"rgba(0, 0, 0, 0)\",\"transition\":true,\"requires\":[\"icon-image\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"icon-halo-width\":{\"type\":\"number\",\"default\":0,\"minimum\":0,\"transition\":true,\"units\":\"pixels\",\"requires\":[\"icon-image\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"icon-halo-blur\":{\"type\":\"number\",\"default\":0,\"minimum\":0,\"transition\":true,\"units\":\"pixels\",\"requires\":[\"icon-image\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"icon-translate\":{\"type\":\"array\",\"value\":\"number\",\"length\":2,\"default\":[0,0],\"transition\":true,\"units\":\"pixels\",\"requires\":[\"icon-image\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-translate-anchor\":{\"type\":\"enum\",\"values\":{\"map\":{},\"viewport\":{}},\"default\":\"map\",\"requires\":[\"icon-image\",\"icon-translate\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-opacity\":{\"type\":\"number\",\"default\":1,\"minimum\":0,\"maximum\":1,\"transition\":true,\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"text-color\":{\"type\":\"color\",\"default\":\"#000000\",\"transition\":true,\"overridable\":true,\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"text-halo-color\":{\"type\":\"color\",\"default\":\"rgba(0, 0, 0, 0)\",\"transition\":true,\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"text-halo-width\":{\"type\":\"number\",\"default\":0,\"minimum\":0,\"transition\":true,\"units\":\"pixels\",\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"text-halo-blur\":{\"type\":\"number\",\"default\":0,\"minimum\":0,\"transition\":true,\"units\":\"pixels\",\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"text-translate\":{\"type\":\"array\",\"value\":\"number\",\"length\":2,\"default\":[0,0],\"transition\":true,\"units\":\"pixels\",\"requires\":[\"text-field\"],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-translate-anchor\":{\"type\":\"enum\",\"values\":{\"map\":{},\"viewport\":{}},\"default\":\"map\",\"requires\":[\"text-field\",\"text-translate\"],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"}},\"paint_raster\":{\"raster-opacity\":{\"type\":\"number\",\"default\":1,\"minimum\":0,\"maximum\":1,\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-hue-rotate\":{\"type\":\"number\",\"default\":0,\"period\":360,\"transition\":true,\"units\":\"degrees\",\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-brightness-min\":{\"type\":\"number\",\"default\":0,\"minimum\":0,\"maximum\":1,\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-brightness-max\":{\"type\":\"number\",\"default\":1,\"minimum\":0,\"maximum\":1,\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-saturation\":{\"type\":\"number\",\"default\":0,\"minimum\":-1,\"maximum\":1,\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-contrast\":{\"type\":\"number\",\"default\":0,\"minimum\":-1,\"maximum\":1,\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-resampling\":{\"type\":\"enum\",\"values\":{\"linear\":{},\"nearest\":{}},\"default\":\"linear\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-fade-duration\":{\"type\":\"number\",\"default\":300,\"minimum\":0,\"transition\":false,\"units\":\"milliseconds\",\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"}},\"paint_hillshade\":{\"hillshade-illumination-direction\":{\"type\":\"number\",\"default\":335,\"minimum\":0,\"maximum\":359,\"transition\":false,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-illumination-anchor\":{\"type\":\"enum\",\"values\":{\"map\":{},\"viewport\":{}},\"default\":\"viewport\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-exaggeration\":{\"type\":\"number\",\"default\":0.5,\"minimum\":0,\"maximum\":1,\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-shadow-color\":{\"type\":\"color\",\"default\":\"#000000\",\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-highlight-color\":{\"type\":\"color\",\"default\":\"#FFFFFF\",\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-accent-color\":{\"type\":\"color\",\"default\":\"#000000\",\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"}},\"paint_background\":{\"background-color\":{\"type\":\"color\",\"default\":\"#000000\",\"transition\":true,\"requires\":[{\"!\":\"background-pattern\"}],\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"background-pattern\":{\"type\":\"resolvedImage\",\"transition\":false,\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"background-opacity\":{\"type\":\"number\",\"default\":1,\"minimum\":0,\"maximum\":1,\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"}},\"paint_sky\":{\"sky-type\":{\"type\":\"enum\",\"values\":{\"gradient\":{},\"atmosphere\":{}},\"default\":\"atmosphere\",\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"sky-atmosphere-sun\":{\"type\":\"array\",\"value\":\"number\",\"length\":2,\"units\":\"degrees\",\"minimum\":[0,0],\"maximum\":[360,180],\"transition\":false,\"requires\":[{\"sky-type\":\"atmosphere\"}],\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"sky-atmosphere-sun-intensity\":{\"type\":\"number\",\"requires\":[{\"sky-type\":\"atmosphere\"}],\"default\":10,\"minimum\":0,\"maximum\":100,\"transition\":false,\"property-type\":\"data-constant\"},\"sky-gradient-center\":{\"type\":\"array\",\"requires\":[{\"sky-type\":\"gradient\"}],\"value\":\"number\",\"default\":[0,0],\"length\":2,\"units\":\"degrees\",\"minimum\":[0,0],\"maximum\":[360,180],\"transition\":false,\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"sky-gradient-radius\":{\"type\":\"number\",\"requires\":[{\"sky-type\":\"gradient\"}],\"default\":90,\"minimum\":0,\"maximum\":180,\"transition\":false,\"expression\":{\"interpolated\":false,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"},\"sky-gradient\":{\"type\":\"color\",\"default\":[\"interpolate\",[\"linear\"],[\"sky-radial-progress\"],0.8,\"#87ceeb\",1,\"white\"],\"transition\":false,\"requires\":[{\"sky-type\":\"gradient\"}],\"expression\":{\"interpolated\":true,\"parameters\":[\"sky-radial-progress\"]},\"property-type\":\"color-ramp\"},\"sky-atmosphere-halo-color\":{\"type\":\"color\",\"default\":\"white\",\"transition\":false,\"requires\":[{\"sky-type\":\"atmosphere\"}],\"property-type\":\"data-constant\"},\"sky-atmosphere-color\":{\"type\":\"color\",\"default\":\"white\",\"transition\":false,\"requires\":[{\"sky-type\":\"atmosphere\"}],\"property-type\":\"data-constant\"},\"sky-opacity\":{\"type\":\"number\",\"default\":1,\"minimum\":0,\"maximum\":1,\"transition\":true,\"expression\":{\"interpolated\":true,\"parameters\":[\"zoom\"]},\"property-type\":\"data-constant\"}},\"transition\":{\"duration\":{\"type\":\"number\",\"default\":300,\"minimum\":0,\"units\":\"milliseconds\"},\"delay\":{\"type\":\"number\",\"default\":0,\"minimum\":0,\"units\":\"milliseconds\"}},\"property-type\":{\"data-driven\":{\"type\":\"property-type\"},\"color-ramp\":{\"type\":\"property-type\"},\"data-constant\":{\"type\":\"property-type\"},\"constant\":{\"type\":\"property-type\"}},\"promoteId\":{\"*\":{\"type\":\"string\"}}}');\n function ee(t, ...e) {\n for (const r of e) for (const e in r) t[e] = r[e];\n return t;\n }\n function re(t) {\n return t instanceof Number || t instanceof String || t instanceof Boolean ? t.valueOf() : t;\n }\n function ne(t) {\n if (Array.isArray(t)) return t.map(ne);\n if (t instanceof Object && !(t instanceof Number || t instanceof String || t instanceof Boolean)) {\n const e = {};\n for (const r in t) e[r] = ne(t[r]);\n return e;\n }\n return re(t);\n }\n class ie extends Error {\n constructor(t, e) {\n super(e), this.message = e, this.key = t;\n }\n }\n var se = ie;\n class ae {\n constructor(t, e = []) {\n this.parent = t, this.bindings = {};\n for (const [t, r] of e) this.bindings[t] = r;\n }\n concat(t) {\n return new ae(this, t);\n }\n get(t) {\n if (this.bindings[t]) return this.bindings[t];\n if (this.parent) return this.parent.get(t);\n throw new Error(`${t} not found in scope.`);\n }\n has(t) {\n return !!this.bindings[t] || !!this.parent && this.parent.has(t);\n }\n }\n var oe = ae;\n const le = {\n kind: \"null\"\n },\n ue = {\n kind: \"number\"\n },\n ce = {\n kind: \"string\"\n },\n he = {\n kind: \"boolean\"\n },\n pe = {\n kind: \"color\"\n },\n de = {\n kind: \"object\"\n },\n fe = {\n kind: \"value\"\n },\n ye = {\n kind: \"collator\"\n },\n me = {\n kind: \"formatted\"\n },\n ge = {\n kind: \"resolvedImage\"\n };\n function xe(t, e) {\n return {\n kind: \"array\",\n itemType: t,\n N: e\n };\n }\n function ve(t) {\n if (\"array\" === t.kind) {\n const e = ve(t.itemType);\n return \"number\" == typeof t.N ? `array<${e}, ${t.N}>` : \"value\" === t.itemType.kind ? \"array\" : `array<${e}>`;\n }\n return t.kind;\n }\n const be = [le, ue, ce, he, pe, me, de, xe(fe), ge];\n function we(t, e) {\n if (\"error\" === e.kind) return null;\n if (\"array\" === t.kind) {\n if (\"array\" === e.kind && (0 === e.N && \"value\" === e.itemType.kind || !we(t.itemType, e.itemType)) && (\"number\" != typeof t.N || t.N === e.N)) return null;\n } else {\n if (t.kind === e.kind) return null;\n if (\"value\" === t.kind) for (const t of be) if (!we(t, e)) return null;\n }\n return `Expected ${ve(t)} but found ${ve(e)} instead.`;\n }\n function _e(t, e) {\n return e.some(e => e.kind === t.kind);\n }\n function Ae(t, e) {\n return e.some(e => \"null\" === e ? null === t : \"array\" === e ? Array.isArray(t) : \"object\" === e ? t && !Array.isArray(t) && \"object\" == typeof t : e === typeof t);\n }\n var Se,\n ke = {\n transparent: [0, 0, 0, 0],\n aliceblue: [240, 248, 255, 1],\n antiquewhite: [250, 235, 215, 1],\n aqua: [0, 255, 255, 1],\n aquamarine: [127, 255, 212, 1],\n azure: [240, 255, 255, 1],\n beige: [245, 245, 220, 1],\n bisque: [255, 228, 196, 1],\n black: [0, 0, 0, 1],\n blanchedalmond: [255, 235, 205, 1],\n blue: [0, 0, 255, 1],\n blueviolet: [138, 43, 226, 1],\n brown: [165, 42, 42, 1],\n burlywood: [222, 184, 135, 1],\n cadetblue: [95, 158, 160, 1],\n chartreuse: [127, 255, 0, 1],\n chocolate: [210, 105, 30, 1],\n coral: [255, 127, 80, 1],\n cornflowerblue: [100, 149, 237, 1],\n cornsilk: [255, 248, 220, 1],\n crimson: [220, 20, 60, 1],\n cyan: [0, 255, 255, 1],\n darkblue: [0, 0, 139, 1],\n darkcyan: [0, 139, 139, 1],\n darkgoldenrod: [184, 134, 11, 1],\n darkgray: [169, 169, 169, 1],\n darkgreen: [0, 100, 0, 1],\n darkgrey: [169, 169, 169, 1],\n darkkhaki: [189, 183, 107, 1],\n darkmagenta: [139, 0, 139, 1],\n darkolivegreen: [85, 107, 47, 1],\n darkorange: [255, 140, 0, 1],\n darkorchid: [153, 50, 204, 1],\n darkred: [139, 0, 0, 1],\n darksalmon: [233, 150, 122, 1],\n darkseagreen: [143, 188, 143, 1],\n darkslateblue: [72, 61, 139, 1],\n darkslategray: [47, 79, 79, 1],\n darkslategrey: [47, 79, 79, 1],\n darkturquoise: [0, 206, 209, 1],\n darkviolet: [148, 0, 211, 1],\n deeppink: [255, 20, 147, 1],\n deepskyblue: [0, 191, 255, 1],\n dimgray: [105, 105, 105, 1],\n dimgrey: [105, 105, 105, 1],\n dodgerblue: [30, 144, 255, 1],\n firebrick: [178, 34, 34, 1],\n floralwhite: [255, 250, 240, 1],\n forestgreen: [34, 139, 34, 1],\n fuchsia: [255, 0, 255, 1],\n gainsboro: [220, 220, 220, 1],\n ghostwhite: [248, 248, 255, 1],\n gold: [255, 215, 0, 1],\n goldenrod: [218, 165, 32, 1],\n gray: [128, 128, 128, 1],\n green: [0, 128, 0, 1],\n greenyellow: [173, 255, 47, 1],\n grey: [128, 128, 128, 1],\n honeydew: [240, 255, 240, 1],\n hotpink: [255, 105, 180, 1],\n indianred: [205, 92, 92, 1],\n indigo: [75, 0, 130, 1],\n ivory: [255, 255, 240, 1],\n khaki: [240, 230, 140, 1],\n lavender: [230, 230, 250, 1],\n lavenderblush: [255, 240, 245, 1],\n lawngreen: [124, 252, 0, 1],\n lemonchiffon: [255, 250, 205, 1],\n lightblue: [173, 216, 230, 1],\n lightcoral: [240, 128, 128, 1],\n lightcyan: [224, 255, 255, 1],\n lightgoldenrodyellow: [250, 250, 210, 1],\n lightgray: [211, 211, 211, 1],\n lightgreen: [144, 238, 144, 1],\n lightgrey: [211, 211, 211, 1],\n lightpink: [255, 182, 193, 1],\n lightsalmon: [255, 160, 122, 1],\n lightseagreen: [32, 178, 170, 1],\n lightskyblue: [135, 206, 250, 1],\n lightslategray: [119, 136, 153, 1],\n lightslategrey: [119, 136, 153, 1],\n lightsteelblue: [176, 196, 222, 1],\n lightyellow: [255, 255, 224, 1],\n lime: [0, 255, 0, 1],\n limegreen: [50, 205, 50, 1],\n linen: [250, 240, 230, 1],\n magenta: [255, 0, 255, 1],\n maroon: [128, 0, 0, 1],\n mediumaquamarine: [102, 205, 170, 1],\n mediumblue: [0, 0, 205, 1],\n mediumorchid: [186, 85, 211, 1],\n mediumpurple: [147, 112, 219, 1],\n mediumseagreen: [60, 179, 113, 1],\n mediumslateblue: [123, 104, 238, 1],\n mediumspringgreen: [0, 250, 154, 1],\n mediumturquoise: [72, 209, 204, 1],\n mediumvioletred: [199, 21, 133, 1],\n midnightblue: [25, 25, 112, 1],\n mintcream: [245, 255, 250, 1],\n mistyrose: [255, 228, 225, 1],\n moccasin: [255, 228, 181, 1],\n navajowhite: [255, 222, 173, 1],\n navy: [0, 0, 128, 1],\n oldlace: [253, 245, 230, 1],\n olive: [128, 128, 0, 1],\n olivedrab: [107, 142, 35, 1],\n orange: [255, 165, 0, 1],\n orangered: [255, 69, 0, 1],\n orchid: [218, 112, 214, 1],\n palegoldenrod: [238, 232, 170, 1],\n palegreen: [152, 251, 152, 1],\n paleturquoise: [175, 238, 238, 1],\n palevioletred: [219, 112, 147, 1],\n papayawhip: [255, 239, 213, 1],\n peachpuff: [255, 218, 185, 1],\n peru: [205, 133, 63, 1],\n pink: [255, 192, 203, 1],\n plum: [221, 160, 221, 1],\n powderblue: [176, 224, 230, 1],\n purple: [128, 0, 128, 1],\n rebeccapurple: [102, 51, 153, 1],\n red: [255, 0, 0, 1],\n rosybrown: [188, 143, 143, 1],\n royalblue: [65, 105, 225, 1],\n saddlebrown: [139, 69, 19, 1],\n salmon: [250, 128, 114, 1],\n sandybrown: [244, 164, 96, 1],\n seagreen: [46, 139, 87, 1],\n seashell: [255, 245, 238, 1],\n sienna: [160, 82, 45, 1],\n silver: [192, 192, 192, 1],\n skyblue: [135, 206, 235, 1],\n slateblue: [106, 90, 205, 1],\n slategray: [112, 128, 144, 1],\n slategrey: [112, 128, 144, 1],\n snow: [255, 250, 250, 1],\n springgreen: [0, 255, 127, 1],\n steelblue: [70, 130, 180, 1],\n tan: [210, 180, 140, 1],\n teal: [0, 128, 128, 1],\n thistle: [216, 191, 216, 1],\n tomato: [255, 99, 71, 1],\n turquoise: [64, 224, 208, 1],\n violet: [238, 130, 238, 1],\n wheat: [245, 222, 179, 1],\n white: [255, 255, 255, 1],\n whitesmoke: [245, 245, 245, 1],\n yellow: [255, 255, 0, 1],\n yellowgreen: [154, 205, 50, 1]\n };\n function Ie(t) {\n return (t = Math.round(t)) < 0 ? 0 : t > 255 ? 255 : t;\n }\n function Me(t) {\n return Ie(\"%\" === t[t.length - 1] ? parseFloat(t) / 100 * 255 : parseInt(t));\n }\n function Te(t) {\n return (e = \"%\" === t[t.length - 1] ? parseFloat(t) / 100 : parseFloat(t)) < 0 ? 0 : e > 1 ? 1 : e;\n var e;\n }\n function ze(t, e, r) {\n return r < 0 ? r += 1 : r > 1 && (r -= 1), 6 * r < 1 ? t + (e - t) * r * 6 : 2 * r < 1 ? e : 3 * r < 2 ? t + (e - t) * (2 / 3 - r) * 6 : t;\n }\n try {\n Se = {}.parseCSSColor = function (t) {\n var e,\n r = t.replace(/ /g, \"\").toLowerCase();\n if (r in ke) return ke[r].slice();\n if (\"#\" === r[0]) return 4 === r.length ? (e = parseInt(r.substr(1), 16)) >= 0 && e <= 4095 ? [(3840 & e) >> 4 | (3840 & e) >> 8, 240 & e | (240 & e) >> 4, 15 & e | (15 & e) << 4, 1] : null : 7 === r.length && (e = parseInt(r.substr(1), 16)) >= 0 && e <= 16777215 ? [(16711680 & e) >> 16, (65280 & e) >> 8, 255 & e, 1] : null;\n var n = r.indexOf(\"(\"),\n i = r.indexOf(\")\");\n if (-1 !== n && i + 1 === r.length) {\n var s = r.substr(0, n),\n a = r.substr(n + 1, i - (n + 1)).split(\",\"),\n o = 1;\n switch (s) {\n case \"rgba\":\n if (4 !== a.length) return null;\n o = Te(a.pop());\n case \"rgb\":\n return 3 !== a.length ? null : [Me(a[0]), Me(a[1]), Me(a[2]), o];\n case \"hsla\":\n if (4 !== a.length) return null;\n o = Te(a.pop());\n case \"hsl\":\n if (3 !== a.length) return null;\n var l = (parseFloat(a[0]) % 360 + 360) % 360 / 360,\n u = Te(a[1]),\n c = Te(a[2]),\n h = c <= .5 ? c * (u + 1) : c + u - c * u,\n p = 2 * c - h;\n return [Ie(255 * ze(p, h, l + 1 / 3)), Ie(255 * ze(p, h, l)), Ie(255 * ze(p, h, l - 1 / 3)), o];\n default:\n return null;\n }\n }\n return null;\n };\n } catch (t) {}\n class Be {\n constructor(t, e, r, n = 1) {\n this.r = t, this.g = e, this.b = r, this.a = n;\n }\n static parse(t) {\n if (!t) return;\n if (t instanceof Be) return t;\n if (\"string\" != typeof t) return;\n const e = Se(t);\n return e ? new Be(e[0] / 255 * e[3], e[1] / 255 * e[3], e[2] / 255 * e[3], e[3]) : void 0;\n }\n toString() {\n const [t, e, r, n] = this.toArray();\n return `rgba(${Math.round(t)},${Math.round(e)},${Math.round(r)},${n})`;\n }\n toArray() {\n const {\n r: t,\n g: e,\n b: r,\n a: n\n } = this;\n return 0 === n ? [0, 0, 0, 0] : [255 * t / n, 255 * e / n, 255 * r / n, n];\n }\n toArray01() {\n const {\n r: t,\n g: e,\n b: r,\n a: n\n } = this;\n return 0 === n ? [0, 0, 0, 0] : [t / n, e / n, r / n, n];\n }\n toArray01PremultipliedAlpha() {\n const {\n r: t,\n g: e,\n b: r,\n a: n\n } = this;\n return [t, e, r, n];\n }\n }\n Be.black = new Be(0, 0, 0, 1), Be.white = new Be(1, 1, 1, 1), Be.transparent = new Be(0, 0, 0, 0), Be.red = new Be(1, 0, 0, 1), Be.blue = new Be(0, 0, 1, 1);\n var Ee = Be;\n class Ce {\n constructor(t, e, r) {\n this.sensitivity = t ? e ? \"variant\" : \"case\" : e ? \"accent\" : \"base\", this.locale = r, this.collator = new Intl.Collator(this.locale ? this.locale : [], {\n sensitivity: this.sensitivity,\n usage: \"search\"\n });\n }\n compare(t, e) {\n return this.collator.compare(t, e);\n }\n resolvedLocale() {\n return new Intl.Collator(this.locale ? this.locale : []).resolvedOptions().locale;\n }\n }\n class Pe {\n constructor(t, e, r, n, i) {\n this.text = t.normalize ? t.normalize() : t, this.image = e, this.scale = r, this.fontStack = n, this.textColor = i;\n }\n }\n class De {\n constructor(t) {\n this.sections = t;\n }\n static fromString(t) {\n return new De([new Pe(t, null, null, null, null)]);\n }\n isEmpty() {\n return 0 === this.sections.length || !this.sections.some(t => 0 !== t.text.length || t.image && 0 !== t.image.name.length);\n }\n static factory(t) {\n return t instanceof De ? t : De.fromString(t);\n }\n toString() {\n return 0 === this.sections.length ? \"\" : this.sections.map(t => t.text).join(\"\");\n }\n serialize() {\n const t = [\"format\"];\n for (const e of this.sections) {\n if (e.image) {\n t.push([\"image\", e.image.name]);\n continue;\n }\n t.push(e.text);\n const r = {};\n e.fontStack && (r[\"text-font\"] = [\"literal\", e.fontStack.split(\",\")]), e.scale && (r[\"font-scale\"] = e.scale), e.textColor && (r[\"text-color\"] = [\"rgba\"].concat(e.textColor.toArray())), t.push(r);\n }\n return t;\n }\n }\n class Ve {\n constructor(t) {\n this.name = t.name, this.available = t.available;\n }\n toString() {\n return this.name;\n }\n static fromString(t) {\n return t ? new Ve({\n name: t,\n available: !1\n }) : null;\n }\n serialize() {\n return [\"image\", this.name];\n }\n }\n function Le(t, e, r, n) {\n return \"number\" == typeof t && t >= 0 && t <= 255 && \"number\" == typeof e && e >= 0 && e <= 255 && \"number\" == typeof r && r >= 0 && r <= 255 ? void 0 === n || \"number\" == typeof n && n >= 0 && n <= 1 ? null : `Invalid rgba value [${[t, e, r, n].join(\", \")}]: 'a' must be between 0 and 1.` : `Invalid rgba value [${(\"number\" == typeof n ? [t, e, r, n] : [t, e, r]).join(\", \")}]: 'r', 'g', and 'b' must be between 0 and 255.`;\n }\n function Fe(t) {\n if (null === t) return !0;\n if (\"string\" == typeof t) return !0;\n if (\"boolean\" == typeof t) return !0;\n if (\"number\" == typeof t) return !0;\n if (t instanceof Ee) return !0;\n if (t instanceof Ce) return !0;\n if (t instanceof De) return !0;\n if (t instanceof Ve) return !0;\n if (Array.isArray(t)) {\n for (const e of t) if (!Fe(e)) return !1;\n return !0;\n }\n if (\"object\" == typeof t) {\n for (const e in t) if (!Fe(t[e])) return !1;\n return !0;\n }\n return !1;\n }\n function Re(t) {\n if (null === t) return le;\n if (\"string\" == typeof t) return ce;\n if (\"boolean\" == typeof t) return he;\n if (\"number\" == typeof t) return ue;\n if (t instanceof Ee) return pe;\n if (t instanceof Ce) return ye;\n if (t instanceof De) return me;\n if (t instanceof Ve) return ge;\n if (Array.isArray(t)) {\n const e = t.length;\n let r;\n for (const e of t) {\n const t = Re(e);\n if (r) {\n if (r === t) continue;\n r = fe;\n break;\n }\n r = t;\n }\n return xe(r || fe, e);\n }\n return de;\n }\n function Ue(t) {\n const e = typeof t;\n return null === t ? \"\" : \"string\" === e || \"number\" === e || \"boolean\" === e ? String(t) : t instanceof Ee || t instanceof De || t instanceof Ve ? t.toString() : JSON.stringify(t);\n }\n class $e {\n constructor(t, e) {\n this.type = t, this.value = e;\n }\n static parse(t, e) {\n if (2 !== t.length) return e.error(`'literal' expression requires exactly one argument, but found ${t.length - 1} instead.`);\n if (!Fe(t[1])) return e.error(\"invalid value\");\n const r = t[1];\n let n = Re(r);\n const i = e.expectedType;\n return \"array\" !== n.kind || 0 !== n.N || !i || \"array\" !== i.kind || \"number\" == typeof i.N && 0 !== i.N || (n = i), new $e(n, r);\n }\n evaluate() {\n return this.value;\n }\n eachChild() {}\n outputDefined() {\n return !0;\n }\n serialize() {\n return \"array\" === this.type.kind || \"object\" === this.type.kind ? [\"literal\", this.value] : this.value instanceof Ee ? [\"rgba\"].concat(this.value.toArray()) : this.value instanceof De ? this.value.serialize() : this.value;\n }\n }\n var je = $e,\n Oe = class {\n constructor(t) {\n this.name = \"ExpressionEvaluationError\", this.message = t;\n }\n toJSON() {\n return this.message;\n }\n };\n const qe = {\n string: ce,\n number: ue,\n boolean: he,\n object: de\n };\n class Ne {\n constructor(t, e) {\n this.type = t, this.args = e;\n }\n static parse(t, e) {\n if (t.length < 2) return e.error(\"Expected at least one argument.\");\n let r,\n n = 1;\n const i = t[0];\n if (\"array\" === i) {\n let i, s;\n if (t.length > 2) {\n const r = t[1];\n if (\"string\" != typeof r || !(r in qe) || \"object\" === r) return e.error('The item type argument of \"array\" must be one of string, number, boolean', 1);\n i = qe[r], n++;\n } else i = fe;\n if (t.length > 3) {\n if (null !== t[2] && (\"number\" != typeof t[2] || t[2] < 0 || t[2] !== Math.floor(t[2]))) return e.error('The length argument to \"array\" must be a positive integer literal', 2);\n s = t[2], n++;\n }\n r = xe(i, s);\n } else r = qe[i];\n const s = [];\n for (; n < t.length; n++) {\n const r = e.parse(t[n], n, fe);\n if (!r) return null;\n s.push(r);\n }\n return new Ne(r, s);\n }\n evaluate(t) {\n for (let e = 0; e < this.args.length; e++) {\n const r = this.args[e].evaluate(t);\n if (!we(this.type, Re(r))) return r;\n if (e === this.args.length - 1) throw new Oe(`Expected value to be of type ${ve(this.type)}, but found ${ve(Re(r))} instead.`);\n }\n return null;\n }\n eachChild(t) {\n this.args.forEach(t);\n }\n outputDefined() {\n return this.args.every(t => t.outputDefined());\n }\n serialize() {\n const t = this.type,\n e = [t.kind];\n if (\"array\" === t.kind) {\n const r = t.itemType;\n if (\"string\" === r.kind || \"number\" === r.kind || \"boolean\" === r.kind) {\n e.push(r.kind);\n const n = t.N;\n (\"number\" == typeof n || this.args.length > 1) && e.push(n);\n }\n }\n return e.concat(this.args.map(t => t.serialize()));\n }\n }\n var Ge = Ne;\n class Ze {\n constructor(t) {\n this.type = me, this.sections = t;\n }\n static parse(t, e) {\n if (t.length < 2) return e.error(\"Expected at least one argument.\");\n const r = t[1];\n if (!Array.isArray(r) && \"object\" == typeof r) return e.error(\"First argument must be an image or text section.\");\n const n = [];\n let i = !1;\n for (let r = 1; r <= t.length - 1; ++r) {\n const s = t[r];\n if (i && \"object\" == typeof s && !Array.isArray(s)) {\n i = !1;\n let t = null;\n if (s[\"font-scale\"] && (t = e.parse(s[\"font-scale\"], 1, ue), !t)) return null;\n let r = null;\n if (s[\"text-font\"] && (r = e.parse(s[\"text-font\"], 1, xe(ce)), !r)) return null;\n let a = null;\n if (s[\"text-color\"] && (a = e.parse(s[\"text-color\"], 1, pe), !a)) return null;\n const o = n[n.length - 1];\n o.scale = t, o.font = r, o.textColor = a;\n } else {\n const s = e.parse(t[r], 1, fe);\n if (!s) return null;\n const a = s.type.kind;\n if (\"string\" !== a && \"value\" !== a && \"null\" !== a && \"resolvedImage\" !== a) return e.error(\"Formatted text type must be 'string', 'value', 'image' or 'null'.\");\n i = !0, n.push({\n content: s,\n scale: null,\n font: null,\n textColor: null\n });\n }\n }\n return new Ze(n);\n }\n evaluate(t) {\n return new De(this.sections.map(e => {\n const r = e.content.evaluate(t);\n return Re(r) === ge ? new Pe(\"\", r, null, null, null) : new Pe(Ue(r), null, e.scale ? e.scale.evaluate(t) : null, e.font ? e.font.evaluate(t).join(\",\") : null, e.textColor ? e.textColor.evaluate(t) : null);\n }));\n }\n eachChild(t) {\n for (const e of this.sections) t(e.content), e.scale && t(e.scale), e.font && t(e.font), e.textColor && t(e.textColor);\n }\n outputDefined() {\n return !1;\n }\n serialize() {\n const t = [\"format\"];\n for (const e of this.sections) {\n t.push(e.content.serialize());\n const r = {};\n e.scale && (r[\"font-scale\"] = e.scale.serialize()), e.font && (r[\"text-font\"] = e.font.serialize()), e.textColor && (r[\"text-color\"] = e.textColor.serialize()), t.push(r);\n }\n return t;\n }\n }\n class Ke {\n constructor(t) {\n this.type = ge, this.input = t;\n }\n static parse(t, e) {\n if (2 !== t.length) return e.error(\"Expected two arguments.\");\n const r = e.parse(t[1], 1, ce);\n return r ? new Ke(r) : e.error(\"No image name provided.\");\n }\n evaluate(t) {\n const e = this.input.evaluate(t),\n r = Ve.fromString(e);\n return r && t.availableImages && (r.available = t.availableImages.indexOf(e) > -1), r;\n }\n eachChild(t) {\n t(this.input);\n }\n outputDefined() {\n return !1;\n }\n serialize() {\n return [\"image\", this.input.serialize()];\n }\n }\n const Xe = {\n \"to-boolean\": he,\n \"to-color\": pe,\n \"to-number\": ue,\n \"to-string\": ce\n };\n class Je {\n constructor(t, e) {\n this.type = t, this.args = e;\n }\n static parse(t, e) {\n if (t.length < 2) return e.error(\"Expected at least one argument.\");\n const r = t[0];\n if ((\"to-boolean\" === r || \"to-string\" === r) && 2 !== t.length) return e.error(\"Expected one argument.\");\n const n = Xe[r],\n i = [];\n for (let r = 1; r < t.length; r++) {\n const n = e.parse(t[r], r, fe);\n if (!n) return null;\n i.push(n);\n }\n return new Je(n, i);\n }\n evaluate(t) {\n if (\"boolean\" === this.type.kind) return Boolean(this.args[0].evaluate(t));\n if (\"color\" === this.type.kind) {\n let e, r;\n for (const n of this.args) {\n if (e = n.evaluate(t), r = null, e instanceof Ee) return e;\n if (\"string\" == typeof e) {\n const r = t.parseColor(e);\n if (r) return r;\n } else if (Array.isArray(e) && (r = e.length < 3 || e.length > 4 ? `Invalid rbga value ${JSON.stringify(e)}: expected an array containing either three or four numeric values.` : Le(e[0], e[1], e[2], e[3]), !r)) return new Ee(e[0] / 255, e[1] / 255, e[2] / 255, e[3]);\n }\n throw new Oe(r || `Could not parse color from value '${\"string\" == typeof e ? e : String(JSON.stringify(e))}'`);\n }\n if (\"number\" === this.type.kind) {\n let e = null;\n for (const r of this.args) {\n if (e = r.evaluate(t), null === e) return 0;\n const n = Number(e);\n if (!isNaN(n)) return n;\n }\n throw new Oe(`Could not convert ${JSON.stringify(e)} to number.`);\n }\n return \"formatted\" === this.type.kind ? De.fromString(Ue(this.args[0].evaluate(t))) : \"resolvedImage\" === this.type.kind ? Ve.fromString(Ue(this.args[0].evaluate(t))) : Ue(this.args[0].evaluate(t));\n }\n eachChild(t) {\n this.args.forEach(t);\n }\n outputDefined() {\n return this.args.every(t => t.outputDefined());\n }\n serialize() {\n if (\"formatted\" === this.type.kind) return new Ze([{\n content: this.args[0],\n scale: null,\n font: null,\n textColor: null\n }]).serialize();\n if (\"resolvedImage\" === this.type.kind) return new Ke(this.args[0]).serialize();\n const t = [`to-${this.type.kind}`];\n return this.eachChild(e => {\n t.push(e.serialize());\n }), t;\n }\n }\n var He = Je;\n const Ye = [\"Unknown\", \"Point\", \"LineString\", \"Polygon\"];\n var We = class {\n constructor() {\n this.globals = null, this.feature = null, this.featureState = null, this.formattedSection = null, this._parseColorCache = {}, this.availableImages = null, this.canonical = null, this.featureTileCoord = null, this.featureDistanceData = null;\n }\n id() {\n return this.feature && void 0 !== this.feature.id ? this.feature.id : null;\n }\n geometryType() {\n return this.feature ? \"number\" == typeof this.feature.type ? Ye[this.feature.type] : this.feature.type : null;\n }\n geometry() {\n return this.feature && \"geometry\" in this.feature ? this.feature.geometry : null;\n }\n canonicalID() {\n return this.canonical;\n }\n properties() {\n return this.feature && this.feature.properties || {};\n }\n distanceFromCenter() {\n if (this.featureTileCoord && this.featureDistanceData) {\n const t = this.featureDistanceData.center,\n e = this.featureDistanceData.scale,\n {\n x: r,\n y: n\n } = this.featureTileCoord;\n return this.featureDistanceData.bearing[0] * (r * e - t[0]) + this.featureDistanceData.bearing[1] * (n * e - t[1]);\n }\n return 0;\n }\n parseColor(t) {\n let e = this._parseColorCache[t];\n return e || (e = this._parseColorCache[t] = Ee.parse(t)), e;\n }\n };\n class Qe {\n constructor(t, e, r, n) {\n this.name = t, this.type = e, this._evaluate = r, this.args = n;\n }\n evaluate(t) {\n return this._evaluate(t, this.args);\n }\n eachChild(t) {\n this.args.forEach(t);\n }\n outputDefined() {\n return !1;\n }\n serialize() {\n return [this.name].concat(this.args.map(t => t.serialize()));\n }\n static parse(t, e) {\n const r = t[0],\n n = Qe.definitions[r];\n if (!n) return e.error(`Unknown expression \"${r}\". If you wanted a literal array, use [\"literal\", [...]].`, 0);\n const i = Array.isArray(n) ? n[0] : n.type,\n s = Array.isArray(n) ? [[n[1], n[2]]] : n.overloads,\n a = s.filter(([e]) => !Array.isArray(e) || e.length === t.length - 1);\n let o = null;\n for (const [n, s] of a) {\n o = new Ir(e.registry, e.path, null, e.scope);\n const a = [];\n let l = !1;\n for (let e = 1; e < t.length; e++) {\n const r = t[e],\n i = Array.isArray(n) ? n[e - 1] : n.type,\n s = o.parse(r, 1 + a.length, i);\n if (!s) {\n l = !0;\n break;\n }\n a.push(s);\n }\n if (!l) if (Array.isArray(n) && n.length !== a.length) o.error(`Expected ${n.length} arguments, but found ${a.length} instead.`);else {\n for (let t = 0; t < a.length; t++) {\n const e = Array.isArray(n) ? n[t] : n.type,\n r = a[t];\n o.concat(t + 1).checkSubtype(e, r.type);\n }\n if (0 === o.errors.length) return new Qe(r, i, s, a);\n }\n }\n if (1 === a.length) e.errors.push(...o.errors);else {\n const r = (a.length ? a : s).map(([t]) => {\n return e = t, Array.isArray(e) ? `(${e.map(ve).join(\", \")})` : `(${ve(e.type)}...)`;\n var e;\n }).join(\" | \"),\n n = [];\n for (let r = 1; r < t.length; r++) {\n const i = e.parse(t[r], 1 + n.length);\n if (!i) return null;\n n.push(ve(i.type));\n }\n e.error(`Expected arguments of type ${r}, but found (${n.join(\", \")}) instead.`);\n }\n return null;\n }\n static register(t, e) {\n Qe.definitions = e;\n for (const r in e) t[r] = Qe;\n }\n }\n var tr = Qe;\n class er {\n constructor(t, e, r) {\n this.type = ye, this.locale = r, this.caseSensitive = t, this.diacriticSensitive = e;\n }\n static parse(t, e) {\n if (2 !== t.length) return e.error(\"Expected one argument.\");\n const r = t[1];\n if (\"object\" != typeof r || Array.isArray(r)) return e.error(\"Collator options argument must be an object.\");\n const n = e.parse(void 0 !== r[\"case-sensitive\"] && r[\"case-sensitive\"], 1, he);\n if (!n) return null;\n const i = e.parse(void 0 !== r[\"diacritic-sensitive\"] && r[\"diacritic-sensitive\"], 1, he);\n if (!i) return null;\n let s = null;\n return r.locale && (s = e.parse(r.locale, 1, ce), !s) ? null : new er(n, i, s);\n }\n evaluate(t) {\n return new Ce(this.caseSensitive.evaluate(t), this.diacriticSensitive.evaluate(t), this.locale ? this.locale.evaluate(t) : null);\n }\n eachChild(t) {\n t(this.caseSensitive), t(this.diacriticSensitive), this.locale && t(this.locale);\n }\n outputDefined() {\n return !1;\n }\n serialize() {\n const t = {};\n return t[\"case-sensitive\"] = this.caseSensitive.serialize(), t[\"diacritic-sensitive\"] = this.diacriticSensitive.serialize(), this.locale && (t.locale = this.locale.serialize()), [\"collator\", t];\n }\n }\n const rr = 8192;\n function nr(t, e) {\n t[0] = Math.min(t[0], e[0]), t[1] = Math.min(t[1], e[1]), t[2] = Math.max(t[2], e[0]), t[3] = Math.max(t[3], e[1]);\n }\n function ir(t, e) {\n return !(t[0] <= e[0] || t[2] >= e[2] || t[1] <= e[1] || t[3] >= e[3]);\n }\n function sr(t, e) {\n const r = (180 + t[0]) / 360,\n n = (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + t[1] * Math.PI / 360))) / 360,\n i = Math.pow(2, e.z);\n return [Math.round(r * i * rr), Math.round(n * i * rr)];\n }\n function ar(t, e, r) {\n const n = t[0] - e[0],\n i = t[1] - e[1],\n s = t[0] - r[0],\n a = t[1] - r[1];\n return n * a - s * i == 0 && n * s <= 0 && i * a <= 0;\n }\n function or(t, e) {\n let r = !1;\n for (let a = 0, o = e.length; a < o; a++) {\n const o = e[a];\n for (let e = 0, a = o.length; e < a - 1; e++) {\n if (ar(t, o[e], o[e + 1])) return !1;\n (i = o[e])[1] > (n = t)[1] != (s = o[e + 1])[1] > n[1] && n[0] < (s[0] - i[0]) * (n[1] - i[1]) / (s[1] - i[1]) + i[0] && (r = !r);\n }\n }\n var n, i, s;\n return r;\n }\n function lr(t, e) {\n for (let r = 0; r < e.length; r++) if (or(t, e[r])) return !0;\n return !1;\n }\n function ur(t, e, r, n) {\n const i = n[0] - r[0],\n s = n[1] - r[1],\n a = (t[0] - r[0]) * s - i * (t[1] - r[1]),\n o = (e[0] - r[0]) * s - i * (e[1] - r[1]);\n return a > 0 && o < 0 || a < 0 && o > 0;\n }\n function cr(t, e, r) {\n for (const u of r) for (let r = 0; r < u.length - 1; ++r) if (0 != (o = [(a = u[r + 1])[0] - (s = u[r])[0], a[1] - s[1]])[0] * (l = [(i = e)[0] - (n = t)[0], i[1] - n[1]])[1] - o[1] * l[0] && ur(n, i, s, a) && ur(s, a, n, i)) return !0;\n var n, i, s, a, o, l;\n return !1;\n }\n function hr(t, e) {\n for (let r = 0; r < t.length; ++r) if (!or(t[r], e)) return !1;\n for (let r = 0; r < t.length - 1; ++r) if (cr(t[r], t[r + 1], e)) return !1;\n return !0;\n }\n function pr(t, e) {\n for (let r = 0; r < e.length; r++) if (hr(t, e[r])) return !0;\n return !1;\n }\n function dr(t, e, r) {\n const n = [];\n for (let i = 0; i < t.length; i++) {\n const s = [];\n for (let n = 0; n < t[i].length; n++) {\n const a = sr(t[i][n], r);\n nr(e, a), s.push(a);\n }\n n.push(s);\n }\n return n;\n }\n function fr(t, e, r) {\n const n = [];\n for (let i = 0; i < t.length; i++) {\n const s = dr(t[i], e, r);\n n.push(s);\n }\n return n;\n }\n function yr(t, e, r, n) {\n if (t[0] < r[0] || t[0] > r[2]) {\n const e = .5 * n;\n let i = t[0] - r[0] > e ? -n : r[0] - t[0] > e ? n : 0;\n 0 === i && (i = t[0] - r[2] > e ? -n : r[2] - t[0] > e ? n : 0), t[0] += i;\n }\n nr(e, t);\n }\n function mr(t, e, r, n) {\n const i = Math.pow(2, n.z) * rr,\n s = [n.x * rr, n.y * rr],\n a = [];\n if (!t) return a;\n for (const n of t) for (const t of n) {\n const n = [t.x + s[0], t.y + s[1]];\n yr(n, e, r, i), a.push(n);\n }\n return a;\n }\n function gr(t, e, r, n) {\n const i = Math.pow(2, n.z) * rr,\n s = [n.x * rr, n.y * rr],\n a = [];\n if (!t) return a;\n for (const r of t) {\n const t = [];\n for (const n of r) {\n const r = [n.x + s[0], n.y + s[1]];\n nr(e, r), t.push(r);\n }\n a.push(t);\n }\n if (e[2] - e[0] <= i / 2) {\n (o = e)[0] = o[1] = 1 / 0, o[2] = o[3] = -1 / 0;\n for (const t of a) for (const n of t) yr(n, e, r, i);\n }\n var o;\n return a;\n }\n class xr {\n constructor(t, e) {\n this.type = he, this.geojson = t, this.geometries = e;\n }\n static parse(t, e) {\n if (2 !== t.length) return e.error(`'within' expression requires exactly one argument, but found ${t.length - 1} instead.`);\n if (Fe(t[1])) {\n const e = t[1];\n if (\"FeatureCollection\" === e.type) for (let t = 0; t < e.features.length; ++t) {\n const r = e.features[t].geometry.type;\n if (\"Polygon\" === r || \"MultiPolygon\" === r) return new xr(e, e.features[t].geometry);\n } else if (\"Feature\" === e.type) {\n const t = e.geometry.type;\n if (\"Polygon\" === t || \"MultiPolygon\" === t) return new xr(e, e.geometry);\n } else if (\"Polygon\" === e.type || \"MultiPolygon\" === e.type) return new xr(e, e);\n }\n return e.error(\"'within' expression requires valid geojson object that contains polygon geometry type.\");\n }\n evaluate(t) {\n if (null != t.geometry() && null != t.canonicalID()) {\n if (\"Point\" === t.geometryType()) return function (t, e) {\n const r = [1 / 0, 1 / 0, -1 / 0, -1 / 0],\n n = [1 / 0, 1 / 0, -1 / 0, -1 / 0],\n i = t.canonicalID();\n if (!i) return !1;\n if (\"Polygon\" === e.type) {\n const s = dr(e.coordinates, n, i),\n a = mr(t.geometry(), r, n, i);\n if (!ir(r, n)) return !1;\n for (const t of a) if (!or(t, s)) return !1;\n }\n if (\"MultiPolygon\" === e.type) {\n const s = fr(e.coordinates, n, i),\n a = mr(t.geometry(), r, n, i);\n if (!ir(r, n)) return !1;\n for (const t of a) if (!lr(t, s)) return !1;\n }\n return !0;\n }(t, this.geometries);\n if (\"LineString\" === t.geometryType()) return function (t, e) {\n const r = [1 / 0, 1 / 0, -1 / 0, -1 / 0],\n n = [1 / 0, 1 / 0, -1 / 0, -1 / 0],\n i = t.canonicalID();\n if (!i) return !1;\n if (\"Polygon\" === e.type) {\n const s = dr(e.coordinates, n, i),\n a = gr(t.geometry(), r, n, i);\n if (!ir(r, n)) return !1;\n for (const t of a) if (!hr(t, s)) return !1;\n }\n if (\"MultiPolygon\" === e.type) {\n const s = fr(e.coordinates, n, i),\n a = gr(t.geometry(), r, n, i);\n if (!ir(r, n)) return !1;\n for (const t of a) if (!pr(t, s)) return !1;\n }\n return !0;\n }(t, this.geometries);\n }\n return !1;\n }\n eachChild() {}\n outputDefined() {\n return !0;\n }\n serialize() {\n return [\"within\", this.geojson];\n }\n }\n var vr = xr;\n function br(t) {\n if (t instanceof tr) {\n if (\"get\" === t.name && 1 === t.args.length) return !1;\n if (\"feature-state\" === t.name) return !1;\n if (\"has\" === t.name && 1 === t.args.length) return !1;\n if (\"properties\" === t.name || \"geometry-type\" === t.name || \"id\" === t.name) return !1;\n if (/^filter-/.test(t.name)) return !1;\n }\n if (t instanceof vr) return !1;\n let e = !0;\n return t.eachChild(t => {\n e && !br(t) && (e = !1);\n }), e;\n }\n function wr(t) {\n if (t instanceof tr && \"feature-state\" === t.name) return !1;\n let e = !0;\n return t.eachChild(t => {\n e && !wr(t) && (e = !1);\n }), e;\n }\n function _r(t, e) {\n if (t instanceof tr && e.indexOf(t.name) >= 0) return !1;\n let r = !0;\n return t.eachChild(t => {\n r && !_r(t, e) && (r = !1);\n }), r;\n }\n class Ar {\n constructor(t, e) {\n this.type = e.type, this.name = t, this.boundExpression = e;\n }\n static parse(t, e) {\n if (2 !== t.length || \"string\" != typeof t[1]) return e.error(\"'var' expression requires exactly one string literal argument.\");\n const r = t[1];\n return e.scope.has(r) ? new Ar(r, e.scope.get(r)) : e.error(`Unknown variable \"${r}\". Make sure \"${r}\" has been bound in an enclosing \"let\" expression before using it.`, 1);\n }\n evaluate(t) {\n return this.boundExpression.evaluate(t);\n }\n eachChild() {}\n outputDefined() {\n return !1;\n }\n serialize() {\n return [\"var\", this.name];\n }\n }\n var Sr = Ar;\n class kr {\n constructor(t, e = [], r, n = new oe(), i = []) {\n this.registry = t, this.path = e, this.key = e.map(t => `[${t}]`).join(\"\"), this.scope = n, this.errors = i, this.expectedType = r;\n }\n parse(t, e, r, n, i = {}) {\n return e ? this.concat(e, r, n)._parse(t, i) : this._parse(t, i);\n }\n _parse(t, e) {\n function r(t, e, r) {\n return \"assert\" === r ? new Ge(e, [t]) : \"coerce\" === r ? new He(e, [t]) : t;\n }\n if (null !== t && \"string\" != typeof t && \"boolean\" != typeof t && \"number\" != typeof t || (t = [\"literal\", t]), Array.isArray(t)) {\n if (0 === t.length) return this.error('Expected an array with at least one element. If you wanted a literal array, use [\"literal\", []].');\n const n = t[0];\n if (\"string\" != typeof n) return this.error(`Expression name must be a string, but found ${typeof n} instead. If you wanted a literal array, use [\"literal\", [...]].`, 0), null;\n const i = this.registry[n];\n if (i) {\n let n = i.parse(t, this);\n if (!n) return null;\n if (this.expectedType) {\n const t = this.expectedType,\n i = n.type;\n if (\"string\" !== t.kind && \"number\" !== t.kind && \"boolean\" !== t.kind && \"object\" !== t.kind && \"array\" !== t.kind || \"value\" !== i.kind) {\n if (\"color\" !== t.kind && \"formatted\" !== t.kind && \"resolvedImage\" !== t.kind || \"value\" !== i.kind && \"string\" !== i.kind) {\n if (this.checkSubtype(t, i)) return null;\n } else n = r(n, t, e.typeAnnotation || \"coerce\");\n } else n = r(n, t, e.typeAnnotation || \"assert\");\n }\n if (!(n instanceof je) && \"resolvedImage\" !== n.type.kind && Mr(n)) {\n const t = new We();\n try {\n n = new je(n.type, n.evaluate(t));\n } catch (t) {\n return this.error(t.message), null;\n }\n }\n return n;\n }\n return this.error(`Unknown expression \"${n}\". If you wanted a literal array, use [\"literal\", [...]].`, 0);\n }\n return this.error(void 0 === t ? \"'undefined' value invalid. Use null instead.\" : \"object\" == typeof t ? 'Bare objects invalid. Use [\"literal\", {...}] instead.' : `Expected an array, but found ${typeof t} instead.`);\n }\n concat(t, e, r) {\n const n = \"number\" == typeof t ? this.path.concat(t) : this.path,\n i = r ? this.scope.concat(r) : this.scope;\n return new kr(this.registry, n, e || null, i, this.errors);\n }\n error(t, ...e) {\n const r = `${this.key}${e.map(t => `[${t}]`).join(\"\")}`;\n this.errors.push(new se(r, t));\n }\n checkSubtype(t, e) {\n const r = we(t, e);\n return r && this.error(r), r;\n }\n }\n var Ir = kr;\n function Mr(t) {\n if (t instanceof Sr) return Mr(t.boundExpression);\n if (t instanceof tr && \"error\" === t.name) return !1;\n if (t instanceof er) return !1;\n if (t instanceof vr) return !1;\n const e = t instanceof He || t instanceof Ge;\n let r = !0;\n return t.eachChild(t => {\n r = e ? r && Mr(t) : r && t instanceof je;\n }), !!r && br(t) && _r(t, [\"zoom\", \"heatmap-density\", \"line-progress\", \"sky-radial-progress\", \"accumulated\", \"is-supported-script\", \"pitch\", \"distance-from-center\"]);\n }\n function Tr(t, e) {\n const r = t.length - 1;\n let n,\n i,\n s = 0,\n a = r,\n o = 0;\n for (; s <= a;) if (o = Math.floor((s + a) / 2), n = t[o], i = t[o + 1], n <= e) {\n if (o === r || e < i) return o;\n s = o + 1;\n } else {\n if (!(n > e)) throw new Oe(\"Input is not a number.\");\n a = o - 1;\n }\n return 0;\n }\n class zr {\n constructor(t, e, r) {\n this.type = t, this.input = e, this.labels = [], this.outputs = [];\n for (const [t, e] of r) this.labels.push(t), this.outputs.push(e);\n }\n static parse(t, e) {\n if (t.length - 1 < 4) return e.error(`Expected at least 4 arguments, but found only ${t.length - 1}.`);\n if ((t.length - 1) % 2 != 0) return e.error(\"Expected an even number of arguments.\");\n const r = e.parse(t[1], 1, ue);\n if (!r) return null;\n const n = [];\n let i = null;\n e.expectedType && \"value\" !== e.expectedType.kind && (i = e.expectedType);\n for (let r = 1; r < t.length; r += 2) {\n const s = 1 === r ? -1 / 0 : t[r],\n a = t[r + 1],\n o = r,\n l = r + 1;\n if (\"number\" != typeof s) return e.error('Input/output pairs for \"step\" expressions must be defined using literal numeric values (not computed expressions) for the input values.', o);\n if (n.length && n[n.length - 1][0] >= s) return e.error('Input/output pairs for \"step\" expressions must be arranged with input values in strictly ascending order.', o);\n const u = e.parse(a, l, i);\n if (!u) return null;\n i = i || u.type, n.push([s, u]);\n }\n return new zr(i, r, n);\n }\n evaluate(t) {\n const e = this.labels,\n r = this.outputs;\n if (1 === e.length) return r[0].evaluate(t);\n const n = this.input.evaluate(t);\n if (n <= e[0]) return r[0].evaluate(t);\n const i = e.length;\n return n >= e[i - 1] ? r[i - 1].evaluate(t) : r[Tr(e, n)].evaluate(t);\n }\n eachChild(t) {\n t(this.input);\n for (const e of this.outputs) t(e);\n }\n outputDefined() {\n return this.outputs.every(t => t.outputDefined());\n }\n serialize() {\n const t = [\"step\", this.input.serialize()];\n for (let e = 0; e < this.labels.length; e++) e > 0 && t.push(this.labels[e]), t.push(this.outputs[e].serialize());\n return t;\n }\n }\n var Br = zr;\n function Er(t, e, r) {\n return t * (1 - r) + e * r;\n }\n var Cr = Object.freeze({\n __proto__: null,\n array: function (t, e, r) {\n return t.map((t, n) => Er(t, e[n], r));\n },\n color: function (t, e, r) {\n return new Ee(Er(t.r, e.r, r), Er(t.g, e.g, r), Er(t.b, e.b, r), Er(t.a, e.a, r));\n },\n number: Er\n });\n const Pr = .95047,\n Dr = 1.08883,\n Vr = 4 / 29,\n Lr = 6 / 29,\n Fr = 3 * Lr * Lr,\n Rr = Lr * Lr * Lr,\n Ur = Math.PI / 180,\n $r = 180 / Math.PI;\n function jr(t) {\n return t > Rr ? Math.pow(t, 1 / 3) : t / Fr + Vr;\n }\n function Or(t) {\n return t > Lr ? t * t * t : Fr * (t - Vr);\n }\n function qr(t) {\n return 255 * (t <= .0031308 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - .055);\n }\n function Nr(t) {\n return (t /= 255) <= .04045 ? t / 12.92 : Math.pow((t + .055) / 1.055, 2.4);\n }\n function Gr(t) {\n const e = Nr(t.r),\n r = Nr(t.g),\n n = Nr(t.b),\n i = jr((.4124564 * e + .3575761 * r + .1804375 * n) / Pr),\n s = jr((.2126729 * e + .7151522 * r + .072175 * n) / 1);\n return {\n l: 116 * s - 16,\n a: 500 * (i - s),\n b: 200 * (s - jr((.0193339 * e + .119192 * r + .9503041 * n) / Dr)),\n alpha: t.a\n };\n }\n function Zr(t) {\n let e = (t.l + 16) / 116,\n r = isNaN(t.a) ? e : e + t.a / 500,\n n = isNaN(t.b) ? e : e - t.b / 200;\n return e = 1 * Or(e), r = Pr * Or(r), n = Dr * Or(n), new Ee(qr(3.2404542 * r - 1.5371385 * e - .4985314 * n), qr(-.969266 * r + 1.8760108 * e + .041556 * n), qr(.0556434 * r - .2040259 * e + 1.0572252 * n), t.alpha);\n }\n function Kr(t, e, r) {\n const n = e - t;\n return t + r * (n > 180 || n < -180 ? n - 360 * Math.round(n / 360) : n);\n }\n const Xr = {\n forward: Gr,\n reverse: Zr,\n interpolate: function (t, e, r) {\n return {\n l: Er(t.l, e.l, r),\n a: Er(t.a, e.a, r),\n b: Er(t.b, e.b, r),\n alpha: Er(t.alpha, e.alpha, r)\n };\n }\n },\n Jr = {\n forward: function (t) {\n const {\n l: e,\n a: r,\n b: n\n } = Gr(t),\n i = Math.atan2(n, r) * $r;\n return {\n h: i < 0 ? i + 360 : i,\n c: Math.sqrt(r * r + n * n),\n l: e,\n alpha: t.a\n };\n },\n reverse: function (t) {\n const e = t.h * Ur,\n r = t.c;\n return Zr({\n l: t.l,\n a: Math.cos(e) * r,\n b: Math.sin(e) * r,\n alpha: t.alpha\n });\n },\n interpolate: function (t, e, r) {\n return {\n h: Kr(t.h, e.h, r),\n c: Er(t.c, e.c, r),\n l: Er(t.l, e.l, r),\n alpha: Er(t.alpha, e.alpha, r)\n };\n }\n };\n var Hr = Object.freeze({\n __proto__: null,\n hcl: Jr,\n lab: Xr\n });\n class Yr {\n constructor(t, e, r, n, i) {\n this.type = t, this.operator = e, this.interpolation = r, this.input = n, this.labels = [], this.outputs = [];\n for (const [t, e] of i) this.labels.push(t), this.outputs.push(e);\n }\n static interpolationFactor(t, e, r, n) {\n let i = 0;\n if (\"exponential\" === t.name) i = Wr(e, t.base, r, n);else if (\"linear\" === t.name) i = Wr(e, 1, r, n);else if (\"cubic-bezier\" === t.name) {\n const s = t.controlPoints;\n i = new y(s[0], s[1], s[2], s[3]).solve(Wr(e, 1, r, n));\n }\n return i;\n }\n static parse(t, e) {\n let [r, n, i, ...s] = t;\n if (!Array.isArray(n) || 0 === n.length) return e.error(\"Expected an interpolation type expression.\", 1);\n if (\"linear\" === n[0]) n = {\n name: \"linear\"\n };else if (\"exponential\" === n[0]) {\n const t = n[1];\n if (\"number\" != typeof t) return e.error(\"Exponential interpolation requires a numeric base.\", 1, 1);\n n = {\n name: \"exponential\",\n base: t\n };\n } else {\n if (\"cubic-bezier\" !== n[0]) return e.error(`Unknown interpolation type ${String(n[0])}`, 1, 0);\n {\n const t = n.slice(1);\n if (4 !== t.length || t.some(t => \"number\" != typeof t || t < 0 || t > 1)) return e.error(\"Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.\", 1);\n n = {\n name: \"cubic-bezier\",\n controlPoints: t\n };\n }\n }\n if (t.length - 1 < 4) return e.error(`Expected at least 4 arguments, but found only ${t.length - 1}.`);\n if ((t.length - 1) % 2 != 0) return e.error(\"Expected an even number of arguments.\");\n if (i = e.parse(i, 2, ue), !i) return null;\n const a = [];\n let o = null;\n \"interpolate-hcl\" === r || \"interpolate-lab\" === r ? o = pe : e.expectedType && \"value\" !== e.expectedType.kind && (o = e.expectedType);\n for (let t = 0; t < s.length; t += 2) {\n const r = s[t],\n n = s[t + 1],\n i = t + 3,\n l = t + 4;\n if (\"number\" != typeof r) return e.error('Input/output pairs for \"interpolate\" expressions must be defined using literal numeric values (not computed expressions) for the input values.', i);\n if (a.length && a[a.length - 1][0] >= r) return e.error('Input/output pairs for \"interpolate\" expressions must be arranged with input values in strictly ascending order.', i);\n const u = e.parse(n, l, o);\n if (!u) return null;\n o = o || u.type, a.push([r, u]);\n }\n return \"number\" === o.kind || \"color\" === o.kind || \"array\" === o.kind && \"number\" === o.itemType.kind && \"number\" == typeof o.N ? new Yr(o, r, n, i, a) : e.error(`Type ${ve(o)} is not interpolatable.`);\n }\n evaluate(t) {\n const e = this.labels,\n r = this.outputs;\n if (1 === e.length) return r[0].evaluate(t);\n const n = this.input.evaluate(t);\n if (n <= e[0]) return r[0].evaluate(t);\n const i = e.length;\n if (n >= e[i - 1]) return r[i - 1].evaluate(t);\n const s = Tr(e, n),\n a = Yr.interpolationFactor(this.interpolation, n, e[s], e[s + 1]),\n o = r[s].evaluate(t),\n l = r[s + 1].evaluate(t);\n return \"interpolate\" === this.operator ? Cr[this.type.kind.toLowerCase()](o, l, a) : \"interpolate-hcl\" === this.operator ? Jr.reverse(Jr.interpolate(Jr.forward(o), Jr.forward(l), a)) : Xr.reverse(Xr.interpolate(Xr.forward(o), Xr.forward(l), a));\n }\n eachChild(t) {\n t(this.input);\n for (const e of this.outputs) t(e);\n }\n outputDefined() {\n return this.outputs.every(t => t.outputDefined());\n }\n serialize() {\n let t;\n t = \"linear\" === this.interpolation.name ? [\"linear\"] : \"exponential\" === this.interpolation.name ? 1 === this.interpolation.base ? [\"linear\"] : [\"exponential\", this.interpolation.base] : [\"cubic-bezier\"].concat(this.interpolation.controlPoints);\n const e = [this.operator, t, this.input.serialize()];\n for (let t = 0; t < this.labels.length; t++) e.push(this.labels[t], this.outputs[t].serialize());\n return e;\n }\n }\n function Wr(t, e, r, n) {\n const i = n - r,\n s = t - r;\n return 0 === i ? 0 : 1 === e ? s / i : (Math.pow(e, s) - 1) / (Math.pow(e, i) - 1);\n }\n var Qr = Yr;\n class tn {\n constructor(t, e) {\n this.type = t, this.args = e;\n }\n static parse(t, e) {\n if (t.length < 2) return e.error(\"Expectected at least one argument.\");\n let r = null;\n const n = e.expectedType;\n n && \"value\" !== n.kind && (r = n);\n const i = [];\n for (const n of t.slice(1)) {\n const t = e.parse(n, 1 + i.length, r, void 0, {\n typeAnnotation: \"omit\"\n });\n if (!t) return null;\n r = r || t.type, i.push(t);\n }\n const s = n && i.some(t => we(n, t.type));\n return new tn(s ? fe : r, i);\n }\n evaluate(t) {\n let e,\n r = null,\n n = 0;\n for (const i of this.args) {\n if (n++, r = i.evaluate(t), r && r instanceof Ve && !r.available && (e || (e = r), r = null, n === this.args.length)) return e;\n if (null !== r) break;\n }\n return r;\n }\n eachChild(t) {\n this.args.forEach(t);\n }\n outputDefined() {\n return this.args.every(t => t.outputDefined());\n }\n serialize() {\n const t = [\"coalesce\"];\n return this.eachChild(e => {\n t.push(e.serialize());\n }), t;\n }\n }\n var en = tn;\n class rn {\n constructor(t, e) {\n this.type = e.type, this.bindings = [].concat(t), this.result = e;\n }\n evaluate(t) {\n return this.result.evaluate(t);\n }\n eachChild(t) {\n for (const e of this.bindings) t(e[1]);\n t(this.result);\n }\n static parse(t, e) {\n if (t.length < 4) return e.error(`Expected at least 3 arguments, but found ${t.length - 1} instead.`);\n const r = [];\n for (let n = 1; n < t.length - 1; n += 2) {\n const i = t[n];\n if (\"string\" != typeof i) return e.error(`Expected string, but found ${typeof i} instead.`, n);\n if (/[^a-zA-Z0-9_]/.test(i)) return e.error(\"Variable names must contain only alphanumeric characters or '_'.\", n);\n const s = e.parse(t[n + 1], n + 1);\n if (!s) return null;\n r.push([i, s]);\n }\n const n = e.parse(t[t.length - 1], t.length - 1, e.expectedType, r);\n return n ? new rn(r, n) : null;\n }\n outputDefined() {\n return this.result.outputDefined();\n }\n serialize() {\n const t = [\"let\"];\n for (const [e, r] of this.bindings) t.push(e, r.serialize());\n return t.push(this.result.serialize()), t;\n }\n }\n var nn = rn;\n class sn {\n constructor(t, e, r) {\n this.type = t, this.index = e, this.input = r;\n }\n static parse(t, e) {\n if (3 !== t.length) return e.error(`Expected 2 arguments, but found ${t.length - 1} instead.`);\n const r = e.parse(t[1], 1, ue),\n n = e.parse(t[2], 2, xe(e.expectedType || fe));\n return r && n ? new sn(n.type.itemType, r, n) : null;\n }\n evaluate(t) {\n const e = this.index.evaluate(t),\n r = this.input.evaluate(t);\n if (e < 0) throw new Oe(`Array index out of bounds: ${e} < 0.`);\n if (e >= r.length) throw new Oe(`Array index out of bounds: ${e} > ${r.length - 1}.`);\n if (e !== Math.floor(e)) throw new Oe(`Array index must be an integer, but found ${e} instead.`);\n return r[e];\n }\n eachChild(t) {\n t(this.index), t(this.input);\n }\n outputDefined() {\n return !1;\n }\n serialize() {\n return [\"at\", this.index.serialize(), this.input.serialize()];\n }\n }\n var an = sn;\n class on {\n constructor(t, e) {\n this.type = he, this.needle = t, this.haystack = e;\n }\n static parse(t, e) {\n if (3 !== t.length) return e.error(`Expected 2 arguments, but found ${t.length - 1} instead.`);\n const r = e.parse(t[1], 1, fe),\n n = e.parse(t[2], 2, fe);\n return r && n ? _e(r.type, [he, ce, ue, le, fe]) ? new on(r, n) : e.error(`Expected first argument to be of type boolean, string, number or null, but found ${ve(r.type)} instead`) : null;\n }\n evaluate(t) {\n const e = this.needle.evaluate(t),\n r = this.haystack.evaluate(t);\n if (null == r) return !1;\n if (!Ae(e, [\"boolean\", \"string\", \"number\", \"null\"])) throw new Oe(`Expected first argument to be of type boolean, string, number or null, but found ${ve(Re(e))} instead.`);\n if (!Ae(r, [\"string\", \"array\"])) throw new Oe(`Expected second argument to be of type array or string, but found ${ve(Re(r))} instead.`);\n return r.indexOf(e) >= 0;\n }\n eachChild(t) {\n t(this.needle), t(this.haystack);\n }\n outputDefined() {\n return !0;\n }\n serialize() {\n return [\"in\", this.needle.serialize(), this.haystack.serialize()];\n }\n }\n var ln = on;\n class un {\n constructor(t, e, r) {\n this.type = ue, this.needle = t, this.haystack = e, this.fromIndex = r;\n }\n static parse(t, e) {\n if (t.length <= 2 || t.length >= 5) return e.error(`Expected 3 or 4 arguments, but found ${t.length - 1} instead.`);\n const r = e.parse(t[1], 1, fe),\n n = e.parse(t[2], 2, fe);\n if (!r || !n) return null;\n if (!_e(r.type, [he, ce, ue, le, fe])) return e.error(`Expected first argument to be of type boolean, string, number or null, but found ${ve(r.type)} instead`);\n if (4 === t.length) {\n const i = e.parse(t[3], 3, ue);\n return i ? new un(r, n, i) : null;\n }\n return new un(r, n);\n }\n evaluate(t) {\n const e = this.needle.evaluate(t),\n r = this.haystack.evaluate(t);\n if (!Ae(e, [\"boolean\", \"string\", \"number\", \"null\"])) throw new Oe(`Expected first argument to be of type boolean, string, number or null, but found ${ve(Re(e))} instead.`);\n if (!Ae(r, [\"string\", \"array\"])) throw new Oe(`Expected second argument to be of type array or string, but found ${ve(Re(r))} instead.`);\n if (this.fromIndex) {\n const n = this.fromIndex.evaluate(t);\n return r.indexOf(e, n);\n }\n return r.indexOf(e);\n }\n eachChild(t) {\n t(this.needle), t(this.haystack), this.fromIndex && t(this.fromIndex);\n }\n outputDefined() {\n return !1;\n }\n serialize() {\n if (null != this.fromIndex && void 0 !== this.fromIndex) {\n const t = this.fromIndex.serialize();\n return [\"index-of\", this.needle.serialize(), this.haystack.serialize(), t];\n }\n return [\"index-of\", this.needle.serialize(), this.haystack.serialize()];\n }\n }\n var cn = un;\n class hn {\n constructor(t, e, r, n, i, s) {\n this.inputType = t, this.type = e, this.input = r, this.cases = n, this.outputs = i, this.otherwise = s;\n }\n static parse(t, e) {\n if (t.length < 5) return e.error(`Expected at least 4 arguments, but found only ${t.length - 1}.`);\n if (t.length % 2 != 1) return e.error(\"Expected an even number of arguments.\");\n let r, n;\n e.expectedType && \"value\" !== e.expectedType.kind && (n = e.expectedType);\n const i = {},\n s = [];\n for (let a = 2; a < t.length - 1; a += 2) {\n let o = t[a];\n const l = t[a + 1];\n Array.isArray(o) || (o = [o]);\n const u = e.concat(a);\n if (0 === o.length) return u.error(\"Expected at least one branch label.\");\n for (const t of o) {\n if (\"number\" != typeof t && \"string\" != typeof t) return u.error(\"Branch labels must be numbers or strings.\");\n if (\"number\" == typeof t && Math.abs(t) > Number.MAX_SAFE_INTEGER) return u.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);\n if (\"number\" == typeof t && Math.floor(t) !== t) return u.error(\"Numeric branch labels must be integer values.\");\n if (r) {\n if (u.checkSubtype(r, Re(t))) return null;\n } else r = Re(t);\n if (void 0 !== i[String(t)]) return u.error(\"Branch labels must be unique.\");\n i[String(t)] = s.length;\n }\n const c = e.parse(l, a, n);\n if (!c) return null;\n n = n || c.type, s.push(c);\n }\n const a = e.parse(t[1], 1, fe);\n if (!a) return null;\n const o = e.parse(t[t.length - 1], t.length - 1, n);\n return o ? \"value\" !== a.type.kind && e.concat(1).checkSubtype(r, a.type) ? null : new hn(r, n, a, i, s, o) : null;\n }\n evaluate(t) {\n const e = this.input.evaluate(t);\n return (Re(e) === this.inputType && this.outputs[this.cases[e]] || this.otherwise).evaluate(t);\n }\n eachChild(t) {\n t(this.input), this.outputs.forEach(t), t(this.otherwise);\n }\n outputDefined() {\n return this.outputs.every(t => t.outputDefined()) && this.otherwise.outputDefined();\n }\n serialize() {\n const t = [\"match\", this.input.serialize()],\n e = Object.keys(this.cases).sort(),\n r = [],\n n = {};\n for (const t of e) {\n const e = n[this.cases[t]];\n void 0 === e ? (n[this.cases[t]] = r.length, r.push([this.cases[t], [t]])) : r[e][1].push(t);\n }\n const i = t => \"number\" === this.inputType.kind ? Number(t) : t;\n for (const [e, n] of r) t.push(1 === n.length ? i(n[0]) : n.map(i)), t.push(this.outputs[e].serialize());\n return t.push(this.otherwise.serialize()), t;\n }\n }\n var pn = hn;\n class dn {\n constructor(t, e, r) {\n this.type = t, this.branches = e, this.otherwise = r;\n }\n static parse(t, e) {\n if (t.length < 4) return e.error(`Expected at least 3 arguments, but found only ${t.length - 1}.`);\n if (t.length % 2 != 0) return e.error(\"Expected an odd number of arguments.\");\n let r;\n e.expectedType && \"value\" !== e.expectedType.kind && (r = e.expectedType);\n const n = [];\n for (let i = 1; i < t.length - 1; i += 2) {\n const s = e.parse(t[i], i, he);\n if (!s) return null;\n const a = e.parse(t[i + 1], i + 1, r);\n if (!a) return null;\n n.push([s, a]), r = r || a.type;\n }\n const i = e.parse(t[t.length - 1], t.length - 1, r);\n return i ? new dn(r, n, i) : null;\n }\n evaluate(t) {\n for (const [e, r] of this.branches) if (e.evaluate(t)) return r.evaluate(t);\n return this.otherwise.evaluate(t);\n }\n eachChild(t) {\n for (const [e, r] of this.branches) t(e), t(r);\n t(this.otherwise);\n }\n outputDefined() {\n return this.branches.every(([t, e]) => e.outputDefined()) && this.otherwise.outputDefined();\n }\n serialize() {\n const t = [\"case\"];\n return this.eachChild(e => {\n t.push(e.serialize());\n }), t;\n }\n }\n var fn = dn;\n class yn {\n constructor(t, e, r, n) {\n this.type = t, this.input = e, this.beginIndex = r, this.endIndex = n;\n }\n static parse(t, e) {\n if (t.length <= 2 || t.length >= 5) return e.error(`Expected 3 or 4 arguments, but found ${t.length - 1} instead.`);\n const r = e.parse(t[1], 1, fe),\n n = e.parse(t[2], 2, ue);\n if (!r || !n) return null;\n if (!_e(r.type, [xe(fe), ce, fe])) return e.error(`Expected first argument to be of type array or string, but found ${ve(r.type)} instead`);\n if (4 === t.length) {\n const i = e.parse(t[3], 3, ue);\n return i ? new yn(r.type, r, n, i) : null;\n }\n return new yn(r.type, r, n);\n }\n evaluate(t) {\n const e = this.input.evaluate(t),\n r = this.beginIndex.evaluate(t);\n if (!Ae(e, [\"string\", \"array\"])) throw new Oe(`Expected first argument to be of type array or string, but found ${ve(Re(e))} instead.`);\n if (this.endIndex) {\n const n = this.endIndex.evaluate(t);\n return e.slice(r, n);\n }\n return e.slice(r);\n }\n eachChild(t) {\n t(this.input), t(this.beginIndex), this.endIndex && t(this.endIndex);\n }\n outputDefined() {\n return !1;\n }\n serialize() {\n if (null != this.endIndex && void 0 !== this.endIndex) {\n const t = this.endIndex.serialize();\n return [\"slice\", this.input.serialize(), this.beginIndex.serialize(), t];\n }\n return [\"slice\", this.input.serialize(), this.beginIndex.serialize()];\n }\n }\n var mn = yn;\n function gn(t, e) {\n return \"==\" === t || \"!=\" === t ? \"boolean\" === e.kind || \"string\" === e.kind || \"number\" === e.kind || \"null\" === e.kind || \"value\" === e.kind : \"string\" === e.kind || \"number\" === e.kind || \"value\" === e.kind;\n }\n function xn(t, e, r, n) {\n return 0 === n.compare(e, r);\n }\n function vn(t, e, r) {\n const n = \"==\" !== t && \"!=\" !== t;\n return class i {\n constructor(t, e, r) {\n this.type = he, this.lhs = t, this.rhs = e, this.collator = r, this.hasUntypedArgument = \"value\" === t.type.kind || \"value\" === e.type.kind;\n }\n static parse(t, e) {\n if (3 !== t.length && 4 !== t.length) return e.error(\"Expected two or three arguments.\");\n const r = t[0];\n let s = e.parse(t[1], 1, fe);\n if (!s) return null;\n if (!gn(r, s.type)) return e.concat(1).error(`\"${r}\" comparisons are not supported for type '${ve(s.type)}'.`);\n let a = e.parse(t[2], 2, fe);\n if (!a) return null;\n if (!gn(r, a.type)) return e.concat(2).error(`\"${r}\" comparisons are not supported for type '${ve(a.type)}'.`);\n if (s.type.kind !== a.type.kind && \"value\" !== s.type.kind && \"value\" !== a.type.kind) return e.error(`Cannot compare types '${ve(s.type)}' and '${ve(a.type)}'.`);\n n && (\"value\" === s.type.kind && \"value\" !== a.type.kind ? s = new Ge(a.type, [s]) : \"value\" !== s.type.kind && \"value\" === a.type.kind && (a = new Ge(s.type, [a])));\n let o = null;\n if (4 === t.length) {\n if (\"string\" !== s.type.kind && \"string\" !== a.type.kind && \"value\" !== s.type.kind && \"value\" !== a.type.kind) return e.error(\"Cannot use collator to compare non-string types.\");\n if (o = e.parse(t[3], 3, ye), !o) return null;\n }\n return new i(s, a, o);\n }\n evaluate(i) {\n const s = this.lhs.evaluate(i),\n a = this.rhs.evaluate(i);\n if (n && this.hasUntypedArgument) {\n const e = Re(s),\n r = Re(a);\n if (e.kind !== r.kind || \"string\" !== e.kind && \"number\" !== e.kind) throw new Oe(`Expected arguments for \"${t}\" to be (string, string) or (number, number), but found (${e.kind}, ${r.kind}) instead.`);\n }\n if (this.collator && !n && this.hasUntypedArgument) {\n const t = Re(s),\n r = Re(a);\n if (\"string\" !== t.kind || \"string\" !== r.kind) return e(i, s, a);\n }\n return this.collator ? r(i, s, a, this.collator.evaluate(i)) : e(i, s, a);\n }\n eachChild(t) {\n t(this.lhs), t(this.rhs), this.collator && t(this.collator);\n }\n outputDefined() {\n return !0;\n }\n serialize() {\n const e = [t];\n return this.eachChild(t => {\n e.push(t.serialize());\n }), e;\n }\n };\n }\n const bn = vn(\"==\", function (t, e, r) {\n return e === r;\n }, xn),\n wn = vn(\"!=\", function (t, e, r) {\n return e !== r;\n }, function (t, e, r, n) {\n return !xn(0, e, r, n);\n }),\n _n = vn(\"<\", function (t, e, r) {\n return e < r;\n }, function (t, e, r, n) {\n return n.compare(e, r) < 0;\n }),\n An = vn(\">\", function (t, e, r) {\n return e > r;\n }, function (t, e, r, n) {\n return n.compare(e, r) > 0;\n }),\n Sn = vn(\"<=\", function (t, e, r) {\n return e <= r;\n }, function (t, e, r, n) {\n return n.compare(e, r) <= 0;\n }),\n kn = vn(\">=\", function (t, e, r) {\n return e >= r;\n }, function (t, e, r, n) {\n return n.compare(e, r) >= 0;\n });\n class In {\n constructor(t, e, r, n, i, s) {\n this.type = ce, this.number = t, this.locale = e, this.currency = r, this.unit = n, this.minFractionDigits = i, this.maxFractionDigits = s;\n }\n static parse(t, e) {\n if (3 !== t.length) return e.error(\"Expected two arguments.\");\n const r = e.parse(t[1], 1, ue);\n if (!r) return null;\n const n = t[2];\n if (\"object\" != typeof n || Array.isArray(n)) return e.error(\"NumberFormat options argument must be an object.\");\n let i = null;\n if (n.locale && (i = e.parse(n.locale, 1, ce), !i)) return null;\n let s = null;\n if (n.currency && (s = e.parse(n.currency, 1, ce), !s)) return null;\n let a = null;\n if (n.unit && (a = e.parse(n.unit, 1, ce), !a)) return null;\n let o = null;\n if (n[\"min-fraction-digits\"] && (o = e.parse(n[\"min-fraction-digits\"], 1, ue), !o)) return null;\n let l = null;\n return n[\"max-fraction-digits\"] && (l = e.parse(n[\"max-fraction-digits\"], 1, ue), !l) ? null : new In(r, i, s, a, o, l);\n }\n evaluate(t) {\n return new Intl.NumberFormat(this.locale ? this.locale.evaluate(t) : [], {\n style: (this.currency ? \"currency\" : this.unit && \"unit\") || \"decimal\",\n currency: this.currency ? this.currency.evaluate(t) : void 0,\n unit: this.unit ? this.unit.evaluate(t) : void 0,\n minimumFractionDigits: this.minFractionDigits ? this.minFractionDigits.evaluate(t) : void 0,\n maximumFractionDigits: this.maxFractionDigits ? this.maxFractionDigits.evaluate(t) : void 0\n }).format(this.number.evaluate(t));\n }\n eachChild(t) {\n t(this.number), this.locale && t(this.locale), this.currency && t(this.currency), this.unit && t(this.unit), this.minFractionDigits && t(this.minFractionDigits), this.maxFractionDigits && t(this.maxFractionDigits);\n }\n outputDefined() {\n return !1;\n }\n serialize() {\n const t = {};\n return this.locale && (t.locale = this.locale.serialize()), this.currency && (t.currency = this.currency.serialize()), this.unit && (t.unit = this.unit.serialize()), this.minFractionDigits && (t[\"min-fraction-digits\"] = this.minFractionDigits.serialize()), this.maxFractionDigits && (t[\"max-fraction-digits\"] = this.maxFractionDigits.serialize()), [\"number-format\", this.number.serialize(), t];\n }\n }\n class Mn {\n constructor(t) {\n this.type = ue, this.input = t;\n }\n static parse(t, e) {\n if (2 !== t.length) return e.error(`Expected 1 argument, but found ${t.length - 1} instead.`);\n const r = e.parse(t[1], 1);\n return r ? \"array\" !== r.type.kind && \"string\" !== r.type.kind && \"value\" !== r.type.kind ? e.error(`Expected argument of type string or array, but found ${ve(r.type)} instead.`) : new Mn(r) : null;\n }\n evaluate(t) {\n const e = this.input.evaluate(t);\n if (\"string\" == typeof e) return e.length;\n if (Array.isArray(e)) return e.length;\n throw new Oe(`Expected value to be of type string or array, but found ${ve(Re(e))} instead.`);\n }\n eachChild(t) {\n t(this.input);\n }\n outputDefined() {\n return !1;\n }\n serialize() {\n const t = [\"length\"];\n return this.eachChild(e => {\n t.push(e.serialize());\n }), t;\n }\n }\n const Tn = {\n \"==\": bn,\n \"!=\": wn,\n \">\": An,\n \"<\": _n,\n \">=\": kn,\n \"<=\": Sn,\n array: Ge,\n at: an,\n boolean: Ge,\n case: fn,\n coalesce: en,\n collator: er,\n format: Ze,\n image: Ke,\n in: ln,\n \"index-of\": cn,\n interpolate: Qr,\n \"interpolate-hcl\": Qr,\n \"interpolate-lab\": Qr,\n length: Mn,\n let: nn,\n literal: je,\n match: pn,\n number: Ge,\n \"number-format\": In,\n object: Ge,\n slice: mn,\n step: Br,\n string: Ge,\n \"to-boolean\": He,\n \"to-color\": He,\n \"to-number\": He,\n \"to-string\": He,\n var: Sr,\n within: vr\n };\n function zn(t, [e, r, n, i]) {\n e = e.evaluate(t), r = r.evaluate(t), n = n.evaluate(t);\n const s = i ? i.evaluate(t) : 1,\n a = Le(e, r, n, s);\n if (a) throw new Oe(a);\n return new Ee(e / 255 * s, r / 255 * s, n / 255 * s, s);\n }\n function Bn(t, e) {\n return t in e;\n }\n function En(t, e) {\n const r = e[t];\n return void 0 === r ? null : r;\n }\n function Cn(t) {\n return {\n type: t\n };\n }\n tr.register(Tn, {\n error: [{\n kind: \"error\"\n }, [ce], (t, [e]) => {\n throw new Oe(e.evaluate(t));\n }],\n typeof: [ce, [fe], (t, [e]) => ve(Re(e.evaluate(t)))],\n \"to-rgba\": [xe(ue, 4), [pe], (t, [e]) => e.evaluate(t).toArray()],\n rgb: [pe, [ue, ue, ue], zn],\n rgba: [pe, [ue, ue, ue, ue], zn],\n has: {\n type: he,\n overloads: [[[ce], (t, [e]) => Bn(e.evaluate(t), t.properties())], [[ce, de], (t, [e, r]) => Bn(e.evaluate(t), r.evaluate(t))]]\n },\n get: {\n type: fe,\n overloads: [[[ce], (t, [e]) => En(e.evaluate(t), t.properties())], [[ce, de], (t, [e, r]) => En(e.evaluate(t), r.evaluate(t))]]\n },\n \"feature-state\": [fe, [ce], (t, [e]) => En(e.evaluate(t), t.featureState || {})],\n properties: [de, [], t => t.properties()],\n \"geometry-type\": [ce, [], t => t.geometryType()],\n id: [fe, [], t => t.id()],\n zoom: [ue, [], t => t.globals.zoom],\n pitch: [ue, [], t => t.globals.pitch || 0],\n \"distance-from-center\": [ue, [], t => t.distanceFromCenter()],\n \"heatmap-density\": [ue, [], t => t.globals.heatmapDensity || 0],\n \"line-progress\": [ue, [], t => t.globals.lineProgress || 0],\n \"sky-radial-progress\": [ue, [], t => t.globals.skyRadialProgress || 0],\n accumulated: [fe, [], t => void 0 === t.globals.accumulated ? null : t.globals.accumulated],\n \"+\": [ue, Cn(ue), (t, e) => {\n let r = 0;\n for (const n of e) r += n.evaluate(t);\n return r;\n }],\n \"*\": [ue, Cn(ue), (t, e) => {\n let r = 1;\n for (const n of e) r *= n.evaluate(t);\n return r;\n }],\n \"-\": {\n type: ue,\n overloads: [[[ue, ue], (t, [e, r]) => e.evaluate(t) - r.evaluate(t)], [[ue], (t, [e]) => -e.evaluate(t)]]\n },\n \"/\": [ue, [ue, ue], (t, [e, r]) => e.evaluate(t) / r.evaluate(t)],\n \"%\": [ue, [ue, ue], (t, [e, r]) => e.evaluate(t) % r.evaluate(t)],\n ln2: [ue, [], () => Math.LN2],\n pi: [ue, [], () => Math.PI],\n e: [ue, [], () => Math.E],\n \"^\": [ue, [ue, ue], (t, [e, r]) => Math.pow(e.evaluate(t), r.evaluate(t))],\n sqrt: [ue, [ue], (t, [e]) => Math.sqrt(e.evaluate(t))],\n log10: [ue, [ue], (t, [e]) => Math.log(e.evaluate(t)) / Math.LN10],\n ln: [ue, [ue], (t, [e]) => Math.log(e.evaluate(t))],\n log2: [ue, [ue], (t, [e]) => Math.log(e.evaluate(t)) / Math.LN2],\n sin: [ue, [ue], (t, [e]) => Math.sin(e.evaluate(t))],\n cos: [ue, [ue], (t, [e]) => Math.cos(e.evaluate(t))],\n tan: [ue, [ue], (t, [e]) => Math.tan(e.evaluate(t))],\n asin: [ue, [ue], (t, [e]) => Math.asin(e.evaluate(t))],\n acos: [ue, [ue], (t, [e]) => Math.acos(e.evaluate(t))],\n atan: [ue, [ue], (t, [e]) => Math.atan(e.evaluate(t))],\n min: [ue, Cn(ue), (t, e) => Math.min(...e.map(e => e.evaluate(t)))],\n max: [ue, Cn(ue), (t, e) => Math.max(...e.map(e => e.evaluate(t)))],\n abs: [ue, [ue], (t, [e]) => Math.abs(e.evaluate(t))],\n round: [ue, [ue], (t, [e]) => {\n const r = e.evaluate(t);\n return r < 0 ? -Math.round(-r) : Math.round(r);\n }],\n floor: [ue, [ue], (t, [e]) => Math.floor(e.evaluate(t))],\n ceil: [ue, [ue], (t, [e]) => Math.ceil(e.evaluate(t))],\n \"filter-==\": [he, [ce, fe], (t, [e, r]) => t.properties()[e.value] === r.value],\n \"filter-id-==\": [he, [fe], (t, [e]) => t.id() === e.value],\n \"filter-type-==\": [he, [ce], (t, [e]) => t.geometryType() === e.value],\n \"filter-<\": [he, [ce, fe], (t, [e, r]) => {\n const n = t.properties()[e.value],\n i = r.value;\n return typeof n == typeof i && n < i;\n }],\n \"filter-id-<\": [he, [fe], (t, [e]) => {\n const r = t.id(),\n n = e.value;\n return typeof r == typeof n && r < n;\n }],\n \"filter->\": [he, [ce, fe], (t, [e, r]) => {\n const n = t.properties()[e.value],\n i = r.value;\n return typeof n == typeof i && n > i;\n }],\n \"filter-id->\": [he, [fe], (t, [e]) => {\n const r = t.id(),\n n = e.value;\n return typeof r == typeof n && r > n;\n }],\n \"filter-<=\": [he, [ce, fe], (t, [e, r]) => {\n const n = t.properties()[e.value],\n i = r.value;\n return typeof n == typeof i && n <= i;\n }],\n \"filter-id-<=\": [he, [fe], (t, [e]) => {\n const r = t.id(),\n n = e.value;\n return typeof r == typeof n && r <= n;\n }],\n \"filter->=\": [he, [ce, fe], (t, [e, r]) => {\n const n = t.properties()[e.value],\n i = r.value;\n return typeof n == typeof i && n >= i;\n }],\n \"filter-id->=\": [he, [fe], (t, [e]) => {\n const r = t.id(),\n n = e.value;\n return typeof r == typeof n && r >= n;\n }],\n \"filter-has\": [he, [fe], (t, [e]) => e.value in t.properties()],\n \"filter-has-id\": [he, [], t => null !== t.id() && void 0 !== t.id()],\n \"filter-type-in\": [he, [xe(ce)], (t, [e]) => e.value.indexOf(t.geometryType()) >= 0],\n \"filter-id-in\": [he, [xe(fe)], (t, [e]) => e.value.indexOf(t.id()) >= 0],\n \"filter-in-small\": [he, [ce, xe(fe)], (t, [e, r]) => r.value.indexOf(t.properties()[e.value]) >= 0],\n \"filter-in-large\": [he, [ce, xe(fe)], (t, [e, r]) => function (t, e, r, n) {\n for (; r <= n;) {\n const i = r + n >> 1;\n if (e[i] === t) return !0;\n e[i] > t ? n = i - 1 : r = i + 1;\n }\n return !1;\n }(t.properties()[e.value], r.value, 0, r.value.length - 1)],\n all: {\n type: he,\n overloads: [[[he, he], (t, [e, r]) => e.evaluate(t) && r.evaluate(t)], [Cn(he), (t, e) => {\n for (const r of e) if (!r.evaluate(t)) return !1;\n return !0;\n }]]\n },\n any: {\n type: he,\n overloads: [[[he, he], (t, [e, r]) => e.evaluate(t) || r.evaluate(t)], [Cn(he), (t, e) => {\n for (const r of e) if (r.evaluate(t)) return !0;\n return !1;\n }]]\n },\n \"!\": [he, [he], (t, [e]) => !e.evaluate(t)],\n \"is-supported-script\": [he, [ce], (t, [e]) => {\n const r = t.globals && t.globals.isSupportedScript;\n return !r || r(e.evaluate(t));\n }],\n upcase: [ce, [ce], (t, [e]) => e.evaluate(t).toUpperCase()],\n downcase: [ce, [ce], (t, [e]) => e.evaluate(t).toLowerCase()],\n concat: [ce, Cn(fe), (t, e) => e.map(e => Ue(e.evaluate(t))).join(\"\")],\n \"resolved-locale\": [ce, [ye], (t, [e]) => e.evaluate(t).resolvedLocale()]\n });\n var Pn = Tn;\n function Dn(t) {\n return {\n result: \"success\",\n value: t\n };\n }\n function Vn(t) {\n return {\n result: \"error\",\n value: t\n };\n }\n function Ln(t) {\n return \"data-driven\" === t[\"property-type\"];\n }\n function Fn(t) {\n return !!t.expression && t.expression.parameters.indexOf(\"zoom\") > -1;\n }\n function Rn(t) {\n return !!t.expression && t.expression.interpolated;\n }\n function Un(t) {\n return t instanceof Number ? \"number\" : t instanceof String ? \"string\" : t instanceof Boolean ? \"boolean\" : Array.isArray(t) ? \"array\" : null === t ? \"null\" : typeof t;\n }\n function $n(t) {\n return \"object\" == typeof t && null !== t && !Array.isArray(t);\n }\n function jn(t) {\n return t;\n }\n function On(t, e) {\n const r = \"color\" === e.type,\n n = t.stops && \"object\" == typeof t.stops[0][0],\n i = n || !(n || void 0 !== t.property),\n s = t.type || (Rn(e) ? \"exponential\" : \"interval\");\n if (r && ((t = ee({}, t)).stops && (t.stops = t.stops.map(t => [t[0], Ee.parse(t[1])])), t.default = Ee.parse(t.default ? t.default : e.default)), t.colorSpace && \"rgb\" !== t.colorSpace && !Hr[t.colorSpace]) throw new Error(`Unknown color space: ${t.colorSpace}`);\n let a, o, l;\n if (\"exponential\" === s) a = Zn;else if (\"interval\" === s) a = Gn;else if (\"categorical\" === s) {\n a = Nn, o = Object.create(null);\n for (const e of t.stops) o[e[0]] = e[1];\n l = typeof t.stops[0][0];\n } else {\n if (\"identity\" !== s) throw new Error(`Unknown function type \"${s}\"`);\n a = Kn;\n }\n if (n) {\n const r = {},\n n = [];\n for (let e = 0; e < t.stops.length; e++) {\n const i = t.stops[e],\n s = i[0].zoom;\n void 0 === r[s] && (r[s] = {\n zoom: s,\n type: t.type,\n property: t.property,\n default: t.default,\n stops: []\n }, n.push(s)), r[s].stops.push([i[0].value, i[1]]);\n }\n const i = [];\n for (const t of n) i.push([r[t].zoom, On(r[t], e)]);\n const s = {\n name: \"linear\"\n };\n return {\n kind: \"composite\",\n interpolationType: s,\n interpolationFactor: Qr.interpolationFactor.bind(void 0, s),\n zoomStops: i.map(t => t[0]),\n evaluate: ({\n zoom: r\n }, n) => Zn({\n stops: i,\n base: t.base\n }, e, r).evaluate(r, n)\n };\n }\n if (i) {\n const r = \"exponential\" === s ? {\n name: \"exponential\",\n base: void 0 !== t.base ? t.base : 1\n } : null;\n return {\n kind: \"camera\",\n interpolationType: r,\n interpolationFactor: Qr.interpolationFactor.bind(void 0, r),\n zoomStops: t.stops.map(t => t[0]),\n evaluate: ({\n zoom: r\n }) => a(t, e, r, o, l)\n };\n }\n return {\n kind: \"source\",\n evaluate(r, n) {\n const i = n && n.properties ? n.properties[t.property] : void 0;\n return void 0 === i ? qn(t.default, e.default) : a(t, e, i, o, l);\n }\n };\n }\n function qn(t, e, r) {\n return void 0 !== t ? t : void 0 !== e ? e : void 0 !== r ? r : void 0;\n }\n function Nn(t, e, r, n, i) {\n return qn(typeof r === i ? n[r] : void 0, t.default, e.default);\n }\n function Gn(t, e, r) {\n if (\"number\" !== Un(r)) return qn(t.default, e.default);\n const n = t.stops.length;\n if (1 === n) return t.stops[0][1];\n if (r <= t.stops[0][0]) return t.stops[0][1];\n if (r >= t.stops[n - 1][0]) return t.stops[n - 1][1];\n const i = Tr(t.stops.map(t => t[0]), r);\n return t.stops[i][1];\n }\n function Zn(t, e, r) {\n const n = void 0 !== t.base ? t.base : 1;\n if (\"number\" !== Un(r)) return qn(t.default, e.default);\n const i = t.stops.length;\n if (1 === i) return t.stops[0][1];\n if (r <= t.stops[0][0]) return t.stops[0][1];\n if (r >= t.stops[i - 1][0]) return t.stops[i - 1][1];\n const s = Tr(t.stops.map(t => t[0]), r),\n a = function (t, e, r, n) {\n const i = n - r,\n s = t - r;\n return 0 === i ? 0 : 1 === e ? s / i : (Math.pow(e, s) - 1) / (Math.pow(e, i) - 1);\n }(r, n, t.stops[s][0], t.stops[s + 1][0]),\n o = t.stops[s][1],\n l = t.stops[s + 1][1];\n let u = Cr[e.type] || jn;\n if (t.colorSpace && \"rgb\" !== t.colorSpace) {\n const e = Hr[t.colorSpace];\n u = (t, r) => e.reverse(e.interpolate(e.forward(t), e.forward(r), a));\n }\n return \"function\" == typeof o.evaluate ? {\n evaluate(...t) {\n const e = o.evaluate.apply(void 0, t),\n r = l.evaluate.apply(void 0, t);\n if (void 0 !== e && void 0 !== r) return u(e, r, a);\n }\n } : u(o, l, a);\n }\n function Kn(t, e, r) {\n return \"color\" === e.type ? r = Ee.parse(r) : \"formatted\" === e.type ? r = De.fromString(r.toString()) : \"resolvedImage\" === e.type ? r = Ve.fromString(r.toString()) : Un(r) === e.type || \"enum\" === e.type && e.values[r] || (r = void 0), qn(r, t.default, e.default);\n }\n class Xn {\n constructor(t, e) {\n this.expression = t, this._warningHistory = {}, this._evaluator = new We(), this._defaultValue = e ? function (t) {\n return \"color\" === t.type && ($n(t.default) || Array.isArray(t.default)) ? new Ee(0, 0, 0, 0) : \"color\" === t.type ? Ee.parse(t.default) || null : void 0 === t.default ? null : t.default;\n }(e) : null, this._enumValues = e && \"enum\" === e.type ? e.values : null;\n }\n evaluateWithoutErrorHandling(t, e, r, n, i, s, a, o) {\n return this._evaluator.globals = t, this._evaluator.feature = e, this._evaluator.featureState = r, this._evaluator.canonical = n || null, this._evaluator.availableImages = i || null, this._evaluator.formattedSection = s, this._evaluator.featureTileCoord = a || null, this._evaluator.featureDistanceData = o || null, this.expression.evaluate(this._evaluator);\n }\n evaluate(t, e, r, n, i, s, a, o) {\n this._evaluator.globals = t, this._evaluator.feature = e || null, this._evaluator.featureState = r || null, this._evaluator.canonical = n || null, this._evaluator.availableImages = i || null, this._evaluator.formattedSection = s || null, this._evaluator.featureTileCoord = a || null, this._evaluator.featureDistanceData = o || null;\n try {\n const t = this.expression.evaluate(this._evaluator);\n if (null == t || \"number\" == typeof t && t != t) return this._defaultValue;\n if (this._enumValues && !(t in this._enumValues)) throw new Oe(`Expected value to be one of ${Object.keys(this._enumValues).map(t => JSON.stringify(t)).join(\", \")}, but found ${JSON.stringify(t)} instead.`);\n return t;\n } catch (t) {\n return this._warningHistory[t.message] || (this._warningHistory[t.message] = !0, \"undefined\" != typeof console && console.warn(t.message)), this._defaultValue;\n }\n }\n }\n function Jn(t) {\n return Array.isArray(t) && t.length > 0 && \"string\" == typeof t[0] && t[0] in Pn;\n }\n function Hn(t, e) {\n const r = new Ir(Pn, [], e ? function (t) {\n const e = {\n color: pe,\n string: ce,\n number: ue,\n enum: ce,\n boolean: he,\n formatted: me,\n resolvedImage: ge\n };\n return \"array\" === t.type ? xe(e[t.value] || fe, t.length) : e[t.type];\n }(e) : void 0),\n n = r.parse(t, void 0, void 0, void 0, e && \"string\" === e.type ? {\n typeAnnotation: \"coerce\"\n } : void 0);\n return n ? Dn(new Xn(n, e)) : Vn(r.errors);\n }\n class Yn {\n constructor(t, e) {\n this.kind = t, this._styleExpression = e, this.isStateDependent = \"constant\" !== t && !wr(e.expression);\n }\n evaluateWithoutErrorHandling(t, e, r, n, i, s) {\n return this._styleExpression.evaluateWithoutErrorHandling(t, e, r, n, i, s);\n }\n evaluate(t, e, r, n, i, s) {\n return this._styleExpression.evaluate(t, e, r, n, i, s);\n }\n }\n class Wn {\n constructor(t, e, r, n) {\n this.kind = t, this.zoomStops = r, this._styleExpression = e, this.isStateDependent = \"camera\" !== t && !wr(e.expression), this.interpolationType = n;\n }\n evaluateWithoutErrorHandling(t, e, r, n, i, s) {\n return this._styleExpression.evaluateWithoutErrorHandling(t, e, r, n, i, s);\n }\n evaluate(t, e, r, n, i, s) {\n return this._styleExpression.evaluate(t, e, r, n, i, s);\n }\n interpolationFactor(t, e, r) {\n return this.interpolationType ? Qr.interpolationFactor(this.interpolationType, t, e, r) : 0;\n }\n }\n function Qn(t, e) {\n if (\"error\" === (t = Hn(t, e)).result) return t;\n const r = t.value.expression,\n n = br(r);\n if (!n && !Ln(e)) return Vn([new se(\"\", \"data expressions not supported\")]);\n const i = _r(r, [\"zoom\", \"pitch\", \"distance-from-center\"]);\n if (!i && !Fn(e)) return Vn([new se(\"\", \"zoom expressions not supported\")]);\n const s = ei(r);\n return s || i ? s instanceof se ? Vn([s]) : s instanceof Qr && !Rn(e) ? Vn([new se(\"\", '\"interpolate\" expressions cannot be used with this property')]) : Dn(s ? new Wn(n ? \"camera\" : \"composite\", t.value, s.labels, s instanceof Qr ? s.interpolation : void 0) : new Yn(n ? \"constant\" : \"source\", t.value)) : Vn([new se(\"\", '\"zoom\" expression may only be used as input to a top-level \"step\" or \"interpolate\" expression.')]);\n }\n class ti {\n constructor(t, e) {\n this._parameters = t, this._specification = e, ee(this, On(this._parameters, this._specification));\n }\n static deserialize(t) {\n return new ti(t._parameters, t._specification);\n }\n static serialize(t) {\n return {\n _parameters: t._parameters,\n _specification: t._specification\n };\n }\n }\n function ei(t) {\n let e = null;\n if (t instanceof nn) e = ei(t.result);else if (t instanceof en) {\n for (const r of t.args) if (e = ei(r), e) break;\n } else (t instanceof Br || t instanceof Qr) && t.input instanceof tr && \"zoom\" === t.input.name && (e = t);\n return e instanceof se || t.eachChild(t => {\n const r = ei(t);\n r instanceof se ? e = r : !e && r ? e = new se(\"\", '\"zoom\" expression may only be used as input to a top-level \"step\" or \"interpolate\" expression.') : e && r && e !== r && (e = new se(\"\", 'Only one zoom-based \"step\" or \"interpolate\" subexpression may be used in an expression.'));\n }), e;\n }\n class ri {\n constructor(t, e, r, n) {\n this.message = (t ? `${t}: ` : \"\") + r, n && (this.identifier = n), null != e && e.__line__ && (this.line = e.__line__);\n }\n }\n function ni(t) {\n const e = t.key,\n r = t.value,\n n = t.valueSpec || {},\n i = t.objectElementValidators || {},\n s = t.style,\n a = t.styleSpec;\n let o = [];\n const l = Un(r);\n if (\"object\" !== l) return [new ri(e, r, `object expected, ${l} found`)];\n for (const t in r) {\n const l = t.split(\".\")[0];\n let u;\n i[l] ? u = i[l] : n[l] ? u = Fi : i[\"*\"] ? u = i[\"*\"] : n[\"*\"] && (u = Fi), u ? o = o.concat(u({\n key: (e ? `${e}.` : e) + t,\n value: r[t],\n valueSpec: n[l] || n[\"*\"],\n style: s,\n styleSpec: a,\n object: r,\n objectKey: t\n }, r)) : o.push(new ri(e, r[t], `unknown property \"${t}\"`));\n }\n for (const t in n) i[t] || n[t].required && void 0 === n[t].default && void 0 === r[t] && o.push(new ri(e, r, `missing required property \"${t}\"`));\n return o;\n }\n function ii(t) {\n const e = t.value,\n r = t.valueSpec,\n n = t.style,\n i = t.styleSpec,\n s = t.key,\n a = t.arrayElementValidator || Fi;\n if (\"array\" !== Un(e)) return [new ri(s, e, `array expected, ${Un(e)} found`)];\n if (r.length && e.length !== r.length) return [new ri(s, e, `array length ${r.length} expected, length ${e.length} found`)];\n if (r[\"min-length\"] && e.length < r[\"min-length\"]) return [new ri(s, e, `array length at least ${r[\"min-length\"]} expected, length ${e.length} found`)];\n let o = {\n type: r.value,\n values: r.values,\n minimum: r.minimum,\n maximum: r.maximum,\n function: void 0\n };\n i.$version < 7 && (o.function = r.function), \"object\" === Un(r.value) && (o = r.value);\n let l = [];\n for (let t = 0; t < e.length; t++) l = l.concat(a({\n array: e,\n arrayIndex: t,\n value: e[t],\n valueSpec: o,\n style: n,\n styleSpec: i,\n key: `${s}[${t}]`\n }));\n return l;\n }\n function si(t) {\n const e = t.key,\n r = t.value,\n n = t.valueSpec;\n let i = Un(r);\n if (\"number\" === i && r != r && (i = \"NaN\"), \"number\" !== i) return [new ri(e, r, `number expected, ${i} found`)];\n if (\"minimum\" in n) {\n let i = n.minimum;\n if (\"array\" === Un(n.minimum) && (i = n.minimum[t.arrayIndex]), r < i) return [new ri(e, r, `${r} is less than the minimum value ${i}`)];\n }\n if (\"maximum\" in n) {\n let i = n.maximum;\n if (\"array\" === Un(n.maximum) && (i = n.maximum[t.arrayIndex]), r > i) return [new ri(e, r, `${r} is greater than the maximum value ${i}`)];\n }\n return [];\n }\n function ai(t) {\n const e = t.valueSpec,\n r = re(t.value.type);\n let n,\n i,\n s,\n a = {};\n const o = \"categorical\" !== r && void 0 === t.value.property,\n l = !o,\n u = \"array\" === Un(t.value.stops) && \"array\" === Un(t.value.stops[0]) && \"object\" === Un(t.value.stops[0][0]),\n c = ni({\n key: t.key,\n value: t.value,\n valueSpec: t.styleSpec.function,\n style: t.style,\n styleSpec: t.styleSpec,\n objectElementValidators: {\n stops: function (t) {\n if (\"identity\" === r) return [new ri(t.key, t.value, 'identity function may not have a \"stops\" property')];\n let e = [];\n const n = t.value;\n return e = e.concat(ii({\n key: t.key,\n value: n,\n valueSpec: t.valueSpec,\n style: t.style,\n styleSpec: t.styleSpec,\n arrayElementValidator: h\n })), \"array\" === Un(n) && 0 === n.length && e.push(new ri(t.key, n, \"array must have at least one stop\")), e;\n },\n default: function (t) {\n return Fi({\n key: t.key,\n value: t.value,\n valueSpec: e,\n style: t.style,\n styleSpec: t.styleSpec\n });\n }\n }\n });\n return \"identity\" === r && o && c.push(new ri(t.key, t.value, 'missing required property \"property\"')), \"identity\" === r || t.value.stops || c.push(new ri(t.key, t.value, 'missing required property \"stops\"')), \"exponential\" === r && t.valueSpec.expression && !Rn(t.valueSpec) && c.push(new ri(t.key, t.value, \"exponential functions not supported\")), t.styleSpec.$version >= 8 && (l && !Ln(t.valueSpec) ? c.push(new ri(t.key, t.value, \"property functions not supported\")) : o && !Fn(t.valueSpec) && c.push(new ri(t.key, t.value, \"zoom functions not supported\"))), \"categorical\" !== r && !u || void 0 !== t.value.property || c.push(new ri(t.key, t.value, '\"property\" property is required')), c;\n function h(t) {\n let r = [];\n const n = t.value,\n o = t.key;\n if (\"array\" !== Un(n)) return [new ri(o, n, `array expected, ${Un(n)} found`)];\n if (2 !== n.length) return [new ri(o, n, `array length 2 expected, length ${n.length} found`)];\n if (u) {\n if (\"object\" !== Un(n[0])) return [new ri(o, n, `object expected, ${Un(n[0])} found`)];\n if (void 0 === n[0].zoom) return [new ri(o, n, \"object stop key must have zoom\")];\n if (void 0 === n[0].value) return [new ri(o, n, \"object stop key must have value\")];\n const e = re(n[0].zoom);\n if (\"number\" != typeof e) return [new ri(o, n[0].zoom, \"stop zoom values must be numbers\")];\n if (s && s > e) return [new ri(o, n[0].zoom, \"stop zoom values must appear in ascending order\")];\n e !== s && (s = e, i = void 0, a = {}), r = r.concat(ni({\n key: `${o}[0]`,\n value: n[0],\n valueSpec: {\n zoom: {}\n },\n style: t.style,\n styleSpec: t.styleSpec,\n objectElementValidators: {\n zoom: si,\n value: p\n }\n }));\n } else r = r.concat(p({\n key: `${o}[0]`,\n value: n[0],\n valueSpec: {},\n style: t.style,\n styleSpec: t.styleSpec\n }, n));\n return Jn(ne(n[1])) ? r.concat([new ri(`${o}[1]`, n[1], \"expressions are not allowed in function stops.\")]) : r.concat(Fi({\n key: `${o}[1]`,\n value: n[1],\n valueSpec: e,\n style: t.style,\n styleSpec: t.styleSpec\n }));\n }\n function p(t, s) {\n const o = Un(t.value),\n l = re(t.value),\n u = null !== t.value ? t.value : s;\n if (n) {\n if (o !== n) return [new ri(t.key, u, `${o} stop domain type must match previous stop domain type ${n}`)];\n } else n = o;\n if (\"number\" !== o && \"string\" !== o && \"boolean\" !== o && \"number\" != typeof l && \"string\" != typeof l && \"boolean\" != typeof l) return [new ri(t.key, u, \"stop domain value must be a number, string, or boolean\")];\n if (\"number\" !== o && \"categorical\" !== r) {\n let n = `number expected, ${o} found`;\n return Ln(e) && void 0 === r && (n += '\\nIf you intended to use a categorical function, specify `\"type\": \"categorical\"`.'), [new ri(t.key, u, n)];\n }\n return \"categorical\" !== r || \"number\" !== o || \"number\" == typeof l && isFinite(l) && Math.floor(l) === l ? \"categorical\" !== r && \"number\" === o && \"number\" == typeof l && \"number\" == typeof i && void 0 !== i && l < i ? [new ri(t.key, u, \"stop domain values must appear in ascending order\")] : (i = l, \"categorical\" === r && l in a ? [new ri(t.key, u, \"stop domain values must be unique\")] : (a[l] = !0, [])) : [new ri(t.key, u, `integer expected, found ${String(l)}`)];\n }\n }\n function oi(t) {\n const e = (\"property\" === t.expressionContext ? Qn : Hn)(ne(t.value), t.valueSpec);\n if (\"error\" === e.result) return e.value.map(e => new ri(`${t.key}${e.key}`, t.value, e.message));\n const r = e.value.expression || e.value._styleExpression.expression;\n if (\"property\" === t.expressionContext && \"text-font\" === t.propertyKey && !r.outputDefined()) return [new ri(t.key, t.value, `Invalid data expression for \"${t.propertyKey}\". Output values must be contained as literals within the expression.`)];\n if (\"property\" === t.expressionContext && \"layout\" === t.propertyType && !wr(r)) return [new ri(t.key, t.value, '\"feature-state\" data expressions are not supported with layout properties.')];\n if (\"filter\" === t.expressionContext) return li(r, t);\n if (t.expressionContext && 0 === t.expressionContext.indexOf(\"cluster\")) {\n if (!_r(r, [\"zoom\", \"feature-state\"])) return [new ri(t.key, t.value, '\"zoom\" and \"feature-state\" expressions are not supported with cluster properties.')];\n if (\"cluster-initial\" === t.expressionContext && !br(r)) return [new ri(t.key, t.value, \"Feature data expressions are not supported with initial expression part of cluster properties.\")];\n }\n return [];\n }\n function li(t, e) {\n const r = new Set([\"zoom\", \"feature-state\", \"pitch\", \"distance-from-center\"]);\n if (e.valueSpec && e.valueSpec.expression) for (const t of e.valueSpec.expression.parameters) r.delete(t);\n if (0 === r.size) return [];\n const n = [];\n return t instanceof tr && r.has(t.name) ? [new ri(e.key, e.value, `[\"${t.name}\"] expression is not supported in a filter for a ${e.object.type} layer with id: ${e.object.id}`)] : (t.eachChild(t => {\n n.push(...li(t, e));\n }), n);\n }\n function ui(t) {\n const e = t.key,\n r = t.value,\n n = t.valueSpec,\n i = [];\n return Array.isArray(n.values) ? -1 === n.values.indexOf(re(r)) && i.push(new ri(e, r, `expected one of [${n.values.join(\", \")}], ${JSON.stringify(r)} found`)) : -1 === Object.keys(n.values).indexOf(re(r)) && i.push(new ri(e, r, `expected one of [${Object.keys(n.values).join(\", \")}], ${JSON.stringify(r)} found`)), i;\n }\n function ci(t) {\n if (!0 === t || !1 === t) return !0;\n if (!Array.isArray(t) || 0 === t.length) return !1;\n switch (t[0]) {\n case \"has\":\n return t.length >= 2 && \"$id\" !== t[1] && \"$type\" !== t[1];\n case \"in\":\n return t.length >= 3 && (\"string\" != typeof t[1] || Array.isArray(t[2]));\n case \"!in\":\n case \"!has\":\n case \"none\":\n return !1;\n case \"==\":\n case \"!=\":\n case \">\":\n case \">=\":\n case \"<\":\n case \"<=\":\n return 3 !== t.length || Array.isArray(t[1]) || Array.isArray(t[2]);\n case \"any\":\n case \"all\":\n for (const e of t.slice(1)) if (!ci(e) && \"boolean\" != typeof e) return !1;\n return !0;\n default:\n return !0;\n }\n }\n function hi(t, e = \"fill\") {\n if (null == t) return {\n filter: () => !0,\n needGeometry: !1,\n needFeature: !1\n };\n ci(t) || (t = xi(t));\n const r = t;\n let n = !0;\n try {\n n = function (t) {\n if (!fi(t)) return t;\n let e = ne(t);\n return di(e), e = pi(e), e;\n }(r);\n } catch (t) {\n console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\\nand paste the contents of this message in the report.\\nThank you!\\nFilter Expression:\\n${JSON.stringify(r, null, 2)}\\n `);\n }\n const i = te[`filter_${e}`],\n s = Hn(n, i);\n let a = null;\n if (\"error\" === s.result) throw new Error(s.value.map(t => `${t.key}: ${t.message}`).join(\", \"));\n a = (t, e, r) => s.value.evaluate(t, e, {}, r);\n let o = null,\n l = null;\n if (n !== r) {\n const t = Hn(r, i);\n if (\"error\" === t.result) throw new Error(t.value.map(t => `${t.key}: ${t.message}`).join(\", \"));\n o = (e, r, n, i, s) => t.value.evaluate(e, r, {}, n, void 0, void 0, i, s), l = !br(t.value.expression);\n }\n return {\n filter: a,\n dynamicFilter: o || void 0,\n needGeometry: gi(n),\n needFeature: !!l\n };\n }\n function pi(t) {\n if (!Array.isArray(t)) return t;\n const e = function (t) {\n if (yi.has(t[0])) for (let e = 1; e < t.length; e++) if (fi(t[e])) return !0;\n return t;\n }(t);\n return !0 === e ? e : e.map(t => pi(t));\n }\n function di(t) {\n let e = !1;\n const r = [];\n if (\"case\" === t[0]) {\n for (let n = 1; n < t.length - 1; n += 2) e = e || fi(t[n]), r.push(t[n + 1]);\n r.push(t[t.length - 1]);\n } else if (\"match\" === t[0]) {\n e = e || fi(t[1]);\n for (let e = 2; e < t.length - 1; e += 2) r.push(t[e + 1]);\n r.push(t[t.length - 1]);\n } else if (\"step\" === t[0]) {\n e = e || fi(t[1]);\n for (let e = 1; e < t.length - 1; e += 2) r.push(t[e + 1]);\n }\n e && (t.length = 0, t.push(\"any\", ...r));\n for (let e = 1; e < t.length; e++) di(t[e]);\n }\n function fi(t) {\n if (!Array.isArray(t)) return !1;\n if (\"pitch\" === (e = t[0]) || \"distance-from-center\" === e) return !0;\n var e;\n for (let e = 1; e < t.length; e++) if (fi(t[e])) return !0;\n return !1;\n }\n const yi = new Set([\"in\", \"==\", \"!=\", \">\", \">=\", \"<\", \"<=\", \"to-boolean\"]);\n function mi(t, e) {\n return t < e ? -1 : t > e ? 1 : 0;\n }\n function gi(t) {\n if (!Array.isArray(t)) return !1;\n if (\"within\" === t[0]) return !0;\n for (let e = 1; e < t.length; e++) if (gi(t[e])) return !0;\n return !1;\n }\n function xi(t) {\n if (!t) return !0;\n const e = t[0];\n return t.length <= 1 ? \"any\" !== e : \"==\" === e ? vi(t[1], t[2], \"==\") : \"!=\" === e ? _i(vi(t[1], t[2], \"==\")) : \"<\" === e || \">\" === e || \"<=\" === e || \">=\" === e ? vi(t[1], t[2], e) : \"any\" === e ? (r = t.slice(1), [\"any\"].concat(r.map(xi))) : \"all\" === e ? [\"all\"].concat(t.slice(1).map(xi)) : \"none\" === e ? [\"all\"].concat(t.slice(1).map(xi).map(_i)) : \"in\" === e ? bi(t[1], t.slice(2)) : \"!in\" === e ? _i(bi(t[1], t.slice(2))) : \"has\" === e ? wi(t[1]) : \"!has\" === e ? _i(wi(t[1])) : \"within\" !== e || t;\n var r;\n }\n function vi(t, e, r) {\n switch (t) {\n case \"$type\":\n return [`filter-type-${r}`, e];\n case \"$id\":\n return [`filter-id-${r}`, e];\n default:\n return [`filter-${r}`, t, e];\n }\n }\n function bi(t, e) {\n if (0 === e.length) return !1;\n switch (t) {\n case \"$type\":\n return [\"filter-type-in\", [\"literal\", e]];\n case \"$id\":\n return [\"filter-id-in\", [\"literal\", e]];\n default:\n return e.length > 200 && !e.some(t => typeof t != typeof e[0]) ? [\"filter-in-large\", t, [\"literal\", e.sort(mi)]] : [\"filter-in-small\", t, [\"literal\", e]];\n }\n }\n function wi(t) {\n switch (t) {\n case \"$type\":\n return !0;\n case \"$id\":\n return [\"filter-has-id\"];\n default:\n return [\"filter-has\", t];\n }\n }\n function _i(t) {\n return [\"!\", t];\n }\n function Ai(t) {\n return ci(ne(t.value)) ? oi(ee({}, t, {\n expressionContext: \"filter\",\n valueSpec: t.styleSpec[`filter_${t.layerType || \"fill\"}`]\n })) : Si(t);\n }\n function Si(t) {\n const e = t.value,\n r = t.key;\n if (\"array\" !== Un(e)) return [new ri(r, e, `array expected, ${Un(e)} found`)];\n const n = t.styleSpec;\n let i,\n s = [];\n if (e.length < 1) return [new ri(r, e, \"filter array must have at least 1 element\")];\n switch (s = s.concat(ui({\n key: `${r}[0]`,\n value: e[0],\n valueSpec: n.filter_operator,\n style: t.style,\n styleSpec: t.styleSpec\n })), re(e[0])) {\n case \"<\":\n case \"<=\":\n case \">\":\n case \">=\":\n e.length >= 2 && \"$type\" === re(e[1]) && s.push(new ri(r, e, `\"$type\" cannot be use with operator \"${e[0]}\"`));\n case \"==\":\n case \"!=\":\n 3 !== e.length && s.push(new ri(r, e, `filter array for operator \"${e[0]}\" must have 3 elements`));\n case \"in\":\n case \"!in\":\n e.length >= 2 && (i = Un(e[1]), \"string\" !== i && s.push(new ri(`${r}[1]`, e[1], `string expected, ${i} found`)));\n for (let a = 2; a < e.length; a++) i = Un(e[a]), \"$type\" === re(e[1]) ? s = s.concat(ui({\n key: `${r}[${a}]`,\n value: e[a],\n valueSpec: n.geometry_type,\n style: t.style,\n styleSpec: t.styleSpec\n })) : \"string\" !== i && \"number\" !== i && \"boolean\" !== i && s.push(new ri(`${r}[${a}]`, e[a], `string, number, or boolean expected, ${i} found`));\n break;\n case \"any\":\n case \"all\":\n case \"none\":\n for (let n = 1; n < e.length; n++) s = s.concat(Si({\n key: `${r}[${n}]`,\n value: e[n],\n style: t.style,\n styleSpec: t.styleSpec\n }));\n break;\n case \"has\":\n case \"!has\":\n i = Un(e[1]), 2 !== e.length ? s.push(new ri(r, e, `filter array for \"${e[0]}\" operator must have 2 elements`)) : \"string\" !== i && s.push(new ri(`${r}[1]`, e[1], `string expected, ${i} found`));\n break;\n case \"within\":\n i = Un(e[1]), 2 !== e.length ? s.push(new ri(r, e, `filter array for \"${e[0]}\" operator must have 2 elements`)) : \"object\" !== i && s.push(new ri(`${r}[1]`, e[1], `object expected, ${i} found`));\n }\n return s;\n }\n function ki(t, e) {\n const r = t.key,\n n = t.style,\n i = t.styleSpec,\n s = t.value,\n a = t.objectKey,\n o = i[`${e}_${t.layerType}`];\n if (!o) return [];\n const l = a.match(/^(.*)-transition$/);\n if (\"paint\" === e && l && o[l[1]] && o[l[1]].transition) return Fi({\n key: r,\n value: s,\n valueSpec: i.transition,\n style: n,\n styleSpec: i\n });\n const u = t.valueSpec || o[a];\n if (!u) return [new ri(r, s, `unknown property \"${a}\"`)];\n let c;\n if (\"string\" === Un(s) && Ln(u) && !u.tokens && (c = /^{([^}]+)}$/.exec(s))) {\n const t = `\\`{ \"type\": \"identity\", \"property\": ${c ? JSON.stringify(c[1]) : '\"_\"'} }\\``;\n return [new ri(r, s, `\"${a}\" does not support interpolation syntax\\nUse an identity property function instead: ${t}.`)];\n }\n const h = [];\n return \"symbol\" === t.layerType && (\"text-field\" === a && n && !n.glyphs && h.push(new ri(r, s, 'use of \"text-field\" requires a style \"glyphs\" property')), \"text-font\" === a && $n(ne(s)) && \"identity\" === re(s.type) && h.push(new ri(r, s, '\"text-font\" does not support identity functions'))), h.concat(Fi({\n key: t.key,\n value: s,\n valueSpec: u,\n style: n,\n styleSpec: i,\n expressionContext: \"property\",\n propertyType: e,\n propertyKey: a\n }));\n }\n function Ii(t) {\n return ki(t, \"paint\");\n }\n function Mi(t) {\n return ki(t, \"layout\");\n }\n function Ti(t) {\n let e = [];\n const r = t.value,\n n = t.key,\n i = t.style,\n s = t.styleSpec;\n r.type || r.ref || e.push(new ri(n, r, 'either \"type\" or \"ref\" is required'));\n let a = re(r.type);\n const o = re(r.ref);\n if (r.id) {\n const s = re(r.id);\n for (let a = 0; a < t.arrayIndex; a++) {\n const t = i.layers[a];\n re(t.id) === s && e.push(new ri(n, r.id, `duplicate layer id \"${r.id}\", previously used at line ${t.id.__line__}`));\n }\n }\n if (\"ref\" in r) {\n let t;\n [\"type\", \"source\", \"source-layer\", \"filter\", \"layout\"].forEach(t => {\n t in r && e.push(new ri(n, r[t], `\"${t}\" is prohibited for ref layers`));\n }), i.layers.forEach(e => {\n re(e.id) === o && (t = e);\n }), t ? t.ref ? e.push(new ri(n, r.ref, \"ref cannot reference another ref layer\")) : a = re(t.type) : \"string\" == typeof o && e.push(new ri(n, r.ref, `ref layer \"${o}\" not found`));\n } else if (\"background\" !== a && \"sky\" !== a) if (r.source) {\n const t = i.sources && i.sources[r.source],\n s = t && re(t.type);\n t ? \"vector\" === s && \"raster\" === a ? e.push(new ri(n, r.source, `layer \"${r.id}\" requires a raster source`)) : \"raster\" === s && \"raster\" !== a ? e.push(new ri(n, r.source, `layer \"${r.id}\" requires a vector source`)) : \"vector\" !== s || r[\"source-layer\"] ? \"raster-dem\" === s && \"hillshade\" !== a ? e.push(new ri(n, r.source, \"raster-dem source can only be used with layer type 'hillshade'.\")) : \"line\" !== a || !r.paint || !r.paint[\"line-gradient\"] && !r.paint[\"line-trim-offset\"] || \"geojson\" === s && t.lineMetrics || e.push(new ri(n, r, `layer \"${r.id}\" specifies a line-gradient, which requires a GeoJSON source with \\`lineMetrics\\` enabled.`)) : e.push(new ri(n, r, `layer \"${r.id}\" must specify a \"source-layer\"`)) : e.push(new ri(n, r.source, `source \"${r.source}\" not found`));\n } else e.push(new ri(n, r, 'missing required property \"source\"'));\n return e = e.concat(ni({\n key: n,\n value: r,\n valueSpec: s.layer,\n style: t.style,\n styleSpec: t.styleSpec,\n objectElementValidators: {\n \"*\": () => [],\n type: () => Fi({\n key: `${n}.type`,\n value: r.type,\n valueSpec: s.layer.type,\n style: t.style,\n styleSpec: t.styleSpec,\n object: r,\n objectKey: \"type\"\n }),\n filter: t => Ai(ee({\n layerType: a\n }, t)),\n layout: t => ni({\n layer: r,\n key: t.key,\n value: t.value,\n valueSpec: {},\n style: t.style,\n styleSpec: t.styleSpec,\n objectElementValidators: {\n \"*\": t => Mi(ee({\n layerType: a\n }, t))\n }\n }),\n paint: t => ni({\n layer: r,\n key: t.key,\n value: t.value,\n valueSpec: {},\n style: t.style,\n styleSpec: t.styleSpec,\n objectElementValidators: {\n \"*\": t => Ii(ee({\n layerType: a\n }, t))\n }\n })\n }\n })), e;\n }\n function zi(t) {\n const e = t.value,\n r = t.key,\n n = Un(e);\n return \"string\" !== n ? [new ri(r, e, `string expected, ${n} found`)] : [];\n }\n const Bi = {\n promoteId: function ({\n key: t,\n value: e\n }) {\n if (\"string\" === Un(e)) return zi({\n key: t,\n value: e\n });\n {\n const r = [];\n for (const n in e) r.push(...zi({\n key: `${t}.${n}`,\n value: e[n]\n }));\n return r;\n }\n }\n };\n function Ei(t) {\n const e = t.value,\n r = t.key,\n n = t.styleSpec,\n i = t.style;\n if (!e.type) return [new ri(r, e, '\"type\" is required')];\n const s = re(e.type);\n let a;\n switch (s) {\n case \"vector\":\n case \"raster\":\n case \"raster-dem\":\n return a = ni({\n key: r,\n value: e,\n valueSpec: n[`source_${s.replace(\"-\", \"_\")}`],\n style: t.style,\n styleSpec: n,\n objectElementValidators: Bi\n }), a;\n case \"geojson\":\n if (a = ni({\n key: r,\n value: e,\n valueSpec: n.source_geojson,\n style: i,\n styleSpec: n,\n objectElementValidators: Bi\n }), e.cluster) for (const t in e.clusterProperties) {\n const [n, i] = e.clusterProperties[t],\n s = \"string\" == typeof n ? [n, [\"accumulated\"], [\"get\", t]] : n;\n a.push(...oi({\n key: `${r}.${t}.map`,\n value: i,\n expressionContext: \"cluster-map\"\n })), a.push(...oi({\n key: `${r}.${t}.reduce`,\n value: s,\n expressionContext: \"cluster-reduce\"\n }));\n }\n return a;\n case \"video\":\n return ni({\n key: r,\n value: e,\n valueSpec: n.source_video,\n style: i,\n styleSpec: n\n });\n case \"image\":\n return ni({\n key: r,\n value: e,\n valueSpec: n.source_image,\n style: i,\n styleSpec: n\n });\n case \"canvas\":\n return [new ri(r, null, \"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.\", \"source.canvas\")];\n default:\n return ui({\n key: `${r}.type`,\n value: e.type,\n valueSpec: {\n values: Ci(n)\n },\n style: i,\n styleSpec: n\n });\n }\n }\n function Ci(t) {\n return t.source.reduce((e, r) => {\n const n = t[r];\n return \"enum\" === n.type.type && (e = e.concat(Object.keys(n.type.values))), e;\n }, []);\n }\n function Pi(t) {\n const e = t.value,\n r = t.styleSpec,\n n = r.light,\n i = t.style;\n let s = [];\n const a = Un(e);\n if (void 0 === e) return s;\n if (\"object\" !== a) return s = s.concat([new ri(\"light\", e, `object expected, ${a} found`)]), s;\n for (const t in e) {\n const a = t.match(/^(.*)-transition$/);\n s = s.concat(a && n[a[1]] && n[a[1]].transition ? Fi({\n key: t,\n value: e[t],\n valueSpec: r.transition,\n style: i,\n styleSpec: r\n }) : n[t] ? Fi({\n key: t,\n value: e[t],\n valueSpec: n[t],\n style: i,\n styleSpec: r\n }) : [new ri(t, e[t], `unknown property \"${t}\"`)]);\n }\n return s;\n }\n function Di(t) {\n const e = t.value,\n r = t.key,\n n = t.style,\n i = t.styleSpec,\n s = i.terrain;\n let a = [];\n const o = Un(e);\n if (void 0 === e) return a;\n if (\"object\" !== o) return a = a.concat([new ri(\"terrain\", e, `object expected, ${o} found`)]), a;\n for (const t in e) {\n const r = t.match(/^(.*)-transition$/);\n a = a.concat(r && s[r[1]] && s[r[1]].transition ? Fi({\n key: t,\n value: e[t],\n valueSpec: i.transition,\n style: n,\n styleSpec: i\n }) : s[t] ? Fi({\n key: t,\n value: e[t],\n valueSpec: s[t],\n style: n,\n styleSpec: i\n }) : [new ri(t, e[t], `unknown property \"${t}\"`)]);\n }\n if (e.source) {\n const t = n.sources && n.sources[e.source],\n i = t && re(t.type);\n t ? \"raster-dem\" !== i && a.push(new ri(r, e.source, `terrain cannot be used with a source of type ${String(i)}, it only be used with a \"raster-dem\" source type`)) : a.push(new ri(r, e.source, `source \"${e.source}\" not found`));\n } else a.push(new ri(r, e, 'terrain is missing required property \"source\"'));\n return a;\n }\n function Vi(t) {\n const e = t.value,\n r = t.style,\n n = t.styleSpec,\n i = n.fog;\n let s = [];\n const a = Un(e);\n if (void 0 === e) return s;\n if (\"object\" !== a) return s = s.concat([new ri(\"fog\", e, `object expected, ${a} found`)]), s;\n for (const t in e) {\n const a = t.match(/^(.*)-transition$/);\n s = s.concat(a && i[a[1]] && i[a[1]].transition ? Fi({\n key: t,\n value: e[t],\n valueSpec: n.transition,\n style: r,\n styleSpec: n\n }) : i[t] ? Fi({\n key: t,\n value: e[t],\n valueSpec: i[t],\n style: r,\n styleSpec: n\n }) : [new ri(t, e[t], `unknown property \"${t}\"`)]);\n }\n return s;\n }\n const Li = {\n \"*\": () => [],\n array: ii,\n boolean: function (t) {\n const e = t.value,\n r = t.key,\n n = Un(e);\n return \"boolean\" !== n ? [new ri(r, e, `boolean expected, ${n} found`)] : [];\n },\n number: si,\n color: function (t) {\n const e = t.key,\n r = t.value,\n n = Un(r);\n return \"string\" !== n ? [new ri(e, r, `color expected, ${n} found`)] : null === Se(r) ? [new ri(e, r, `color expected, \"${r}\" found`)] : [];\n },\n enum: ui,\n filter: Ai,\n function: ai,\n layer: Ti,\n object: ni,\n source: Ei,\n light: Pi,\n terrain: Di,\n fog: Vi,\n string: zi,\n formatted: function (t) {\n return 0 === zi(t).length ? [] : oi(t);\n },\n resolvedImage: function (t) {\n return 0 === zi(t).length ? [] : oi(t);\n },\n projection: function (t) {\n const e = t.value,\n r = t.styleSpec,\n n = r.projection,\n i = t.style;\n let s = [];\n const a = Un(e);\n if (\"object\" === a) for (const t in e) s = s.concat(Fi({\n key: t,\n value: e[t],\n valueSpec: n[t],\n style: i,\n styleSpec: r\n }));else \"string\" !== a && (s = s.concat([new ri(\"projection\", e, `object or string expected, ${a} found`)]));\n return s;\n }\n };\n function Fi(t) {\n const e = t.value,\n r = t.valueSpec,\n n = t.styleSpec;\n return r.expression && $n(re(e)) ? ai(t) : r.expression && Jn(ne(e)) ? oi(t) : r.type && Li[r.type] ? Li[r.type](t) : ni(ee({}, t, {\n valueSpec: r.type ? n[r.type] : r\n }));\n }\n function Ri(t) {\n const e = t.value,\n r = t.key,\n n = zi(t);\n return n.length || (-1 === e.indexOf(\"{fontstack}\") && n.push(new ri(r, e, '\"glyphs\" url must include a \"{fontstack}\" token')), -1 === e.indexOf(\"{range}\") && n.push(new ri(r, e, '\"glyphs\" url must include a \"{range}\" token'))), n;\n }\n function Ui(t, e = te) {\n return Oi(Fi({\n key: \"\",\n value: t,\n valueSpec: e.$root,\n styleSpec: e,\n style: t,\n objectElementValidators: {\n glyphs: Ri,\n \"*\": () => []\n }\n }));\n }\n const $i = t => Oi(Ii(t)),\n ji = t => Oi(Mi(t));\n function Oi(t) {\n return t.slice().sort((t, e) => t.line && e.line ? t.line - e.line : 0);\n }\n function qi(t, e) {\n let r = !1;\n if (e && e.length) for (const n of e) t.fire(new Wt(new Error(n.message))), r = !0;\n return r;\n }\n var Ni = Zi,\n Gi = 3;\n function Zi(t, e, r) {\n var n = this.cells = [];\n if (t instanceof ArrayBuffer) {\n this.arrayBuffer = t;\n var i = new Int32Array(this.arrayBuffer);\n t = i[0], this.d = (e = i[1]) + 2 * (r = i[2]);\n for (var s = 0; s < this.d * this.d; s++) {\n var a = i[Gi + s],\n o = i[Gi + s + 1];\n n.push(a === o ? null : i.subarray(a, o));\n }\n var l = i[Gi + n.length + 1];\n this.keys = i.subarray(i[Gi + n.length], l), this.bboxes = i.subarray(l), this.insert = this._insertReadonly;\n } else {\n this.d = e + 2 * r;\n for (var u = 0; u < this.d * this.d; u++) n.push([]);\n this.keys = [], this.bboxes = [];\n }\n this.n = e, this.extent = t, this.padding = r, this.scale = e / t, this.uid = 0;\n var c = r / e * t;\n this.min = -c, this.max = t + c;\n }\n Zi.prototype.insert = function (t, e, r, n, i) {\n this._forEachCell(e, r, n, i, this._insertCell, this.uid++), this.keys.push(t), this.bboxes.push(e), this.bboxes.push(r), this.bboxes.push(n), this.bboxes.push(i);\n }, Zi.prototype._insertReadonly = function () {\n throw \"Cannot insert into a GridIndex created from an ArrayBuffer.\";\n }, Zi.prototype._insertCell = function (t, e, r, n, i, s) {\n this.cells[i].push(s);\n }, Zi.prototype.query = function (t, e, r, n, i) {\n var s = this.min,\n a = this.max;\n if (t <= s && e <= s && a <= r && a <= n && !i) return Array.prototype.slice.call(this.keys);\n var o = [];\n return this._forEachCell(t, e, r, n, this._queryCell, o, {}, i), o;\n }, Zi.prototype._queryCell = function (t, e, r, n, i, s, a, o) {\n var l = this.cells[i];\n if (null !== l) for (var u = this.keys, c = this.bboxes, h = 0; h < l.length; h++) {\n var p = l[h];\n if (void 0 === a[p]) {\n var d = 4 * p;\n (o ? o(c[d + 0], c[d + 1], c[d + 2], c[d + 3]) : t <= c[d + 2] && e <= c[d + 3] && r >= c[d + 0] && n >= c[d + 1]) ? (a[p] = !0, s.push(u[p])) : a[p] = !1;\n }\n }\n }, Zi.prototype._forEachCell = function (t, e, r, n, i, s, a, o) {\n for (var l = this._convertToCellCoord(t), u = this._convertToCellCoord(e), c = this._convertToCellCoord(r), h = this._convertToCellCoord(n), p = l; p <= c; p++) for (var d = u; d <= h; d++) {\n var f = this.d * d + p;\n if ((!o || o(this._convertFromCellCoord(p), this._convertFromCellCoord(d), this._convertFromCellCoord(p + 1), this._convertFromCellCoord(d + 1))) && i.call(this, t, e, r, n, f, s, a, o)) return;\n }\n }, Zi.prototype._convertFromCellCoord = function (t) {\n return (t - this.padding) / this.scale;\n }, Zi.prototype._convertToCellCoord = function (t) {\n return Math.max(0, Math.min(this.d - 1, Math.floor(t * this.scale) + this.padding));\n }, Zi.prototype.toArrayBuffer = function () {\n if (this.arrayBuffer) return this.arrayBuffer;\n for (var t = this.cells, e = Gi + this.cells.length + 1 + 1, r = 0, n = 0; n < this.cells.length; n++) r += this.cells[n].length;\n var i = new Int32Array(e + r + this.keys.length + this.bboxes.length);\n i[0] = this.extent, i[1] = this.n, i[2] = this.padding;\n for (var s = e, a = 0; a < t.length; a++) {\n var o = t[a];\n i[Gi + a] = s, i.set(o, s), s += o.length;\n }\n return i[Gi + t.length] = s, i.set(this.keys, s), i[Gi + t.length + 1] = s += this.keys.length, i.set(this.bboxes, s), s += this.bboxes.length, i.buffer;\n };\n var Ki = p(Ni);\n const Xi = {};\n function Ji(t, e, r = {}) {\n Object.defineProperty(t, \"_classRegistryKey\", {\n value: e,\n writeable: !1\n }), Xi[e] = {\n klass: t,\n omit: r.omit || []\n };\n }\n Ji(Object, \"Object\"), Ki.serialize = function (t, e) {\n const r = t.toArrayBuffer();\n return e && e.push(r), {\n buffer: r\n };\n }, Ki.deserialize = function (t) {\n return new Ki(t.buffer);\n }, Object.defineProperty(Ki, \"name\", {\n value: \"Grid\"\n }), Ji(Ki, \"Grid\"), Ji(Ee, \"Color\"), Ji(Error, \"Error\"), Ji(ut, \"AJAXError\"), Ji(Ve, \"ResolvedImage\"), Ji(ti, \"StylePropertyFunction\"), Ji(Xn, \"StyleExpression\", {\n omit: [\"_evaluator\"]\n }), Ji(Wn, \"ZoomDependentExpression\"), Ji(Yn, \"ZoomConstantExpression\"), Ji(tr, \"CompoundExpression\", {\n omit: [\"_evaluate\"]\n });\n for (const t in Pn) Xi[Pn[t]._classRegistryKey] || Ji(Pn[t], `Expression${t}`);\n function Hi(t) {\n return t && \"undefined\" != typeof ArrayBuffer && (t instanceof ArrayBuffer || t.constructor && \"ArrayBuffer\" === t.constructor.name);\n }\n function Yi(t) {\n return e.ImageBitmap && t instanceof e.ImageBitmap;\n }\n function Wi(t, r) {\n if (null == t || \"boolean\" == typeof t || \"number\" == typeof t || \"string\" == typeof t || t instanceof Boolean || t instanceof Number || t instanceof String || t instanceof Date || t instanceof RegExp) return t;\n if (Hi(t) || Yi(t)) return r && r.push(t), t;\n if (ArrayBuffer.isView(t)) {\n const e = t;\n return r && r.push(e.buffer), e;\n }\n if (t instanceof e.ImageData) return r && r.push(t.data.buffer), t;\n if (Array.isArray(t)) {\n const e = [];\n for (const n of t) e.push(Wi(n, r));\n return e;\n }\n if (\"object\" == typeof t) {\n const e = t.constructor,\n n = e._classRegistryKey;\n if (!n) throw new Error(`can't serialize object of unregistered class ${n}`);\n const i = e.serialize ? e.serialize(t, r) : {};\n if (!e.serialize) {\n for (const e in t) t.hasOwnProperty(e) && (Xi[n].omit.indexOf(e) >= 0 || (i[e] = Wi(t[e], r)));\n t instanceof Error && (i.message = t.message);\n }\n if (i.$name) throw new Error(\"$name property is reserved for worker serialization logic.\");\n return \"Object\" !== n && (i.$name = n), i;\n }\n throw new Error(\"can't serialize object of type \" + typeof t);\n }\n function Qi(t) {\n if (null == t || \"boolean\" == typeof t || \"number\" == typeof t || \"string\" == typeof t || t instanceof Boolean || t instanceof Number || t instanceof String || t instanceof Date || t instanceof RegExp || Hi(t) || Yi(t) || ArrayBuffer.isView(t) || t instanceof e.ImageData) return t;\n if (Array.isArray(t)) return t.map(Qi);\n if (\"object\" == typeof t) {\n const e = t.$name || \"Object\",\n {\n klass: r\n } = Xi[e];\n if (!r) throw new Error(`can't deserialize unregistered class ${e}`);\n if (r.deserialize) return r.deserialize(t);\n const n = Object.create(r.prototype);\n for (const e of Object.keys(t)) \"$name\" !== e && (n[e] = Qi(t[e]));\n return n;\n }\n throw new Error(\"can't deserialize object of type \" + typeof t);\n }\n const ts = {\n \"Latin-1 Supplement\": t => t >= 128 && t <= 255,\n Arabic: t => t >= 1536 && t <= 1791,\n \"Arabic Supplement\": t => t >= 1872 && t <= 1919,\n \"Arabic Extended-A\": t => t >= 2208 && t <= 2303,\n \"Hangul Jamo\": t => t >= 4352 && t <= 4607,\n \"Unified Canadian Aboriginal Syllabics\": t => t >= 5120 && t <= 5759,\n Khmer: t => t >= 6016 && t <= 6143,\n \"Unified Canadian Aboriginal Syllabics Extended\": t => t >= 6320 && t <= 6399,\n \"General Punctuation\": t => t >= 8192 && t <= 8303,\n \"Letterlike Symbols\": t => t >= 8448 && t <= 8527,\n \"Number Forms\": t => t >= 8528 && t <= 8591,\n \"Miscellaneous Technical\": t => t >= 8960 && t <= 9215,\n \"Control Pictures\": t => t >= 9216 && t <= 9279,\n \"Optical Character Recognition\": t => t >= 9280 && t <= 9311,\n \"Enclosed Alphanumerics\": t => t >= 9312 && t <= 9471,\n \"Geometric Shapes\": t => t >= 9632 && t <= 9727,\n \"Miscellaneous Symbols\": t => t >= 9728 && t <= 9983,\n \"Miscellaneous Symbols and Arrows\": t => t >= 11008 && t <= 11263,\n \"CJK Radicals Supplement\": t => t >= 11904 && t <= 12031,\n \"Kangxi Radicals\": t => t >= 12032 && t <= 12255,\n \"Ideographic Description Characters\": t => t >= 12272 && t <= 12287,\n \"CJK Symbols and Punctuation\": t => t >= 12288 && t <= 12351,\n Hiragana: t => t >= 12352 && t <= 12447,\n Katakana: t => t >= 12448 && t <= 12543,\n Bopomofo: t => t >= 12544 && t <= 12591,\n \"Hangul Compatibility Jamo\": t => t >= 12592 && t <= 12687,\n Kanbun: t => t >= 12688 && t <= 12703,\n \"Bopomofo Extended\": t => t >= 12704 && t <= 12735,\n \"CJK Strokes\": t => t >= 12736 && t <= 12783,\n \"Katakana Phonetic Extensions\": t => t >= 12784 && t <= 12799,\n \"Enclosed CJK Letters and Months\": t => t >= 12800 && t <= 13055,\n \"CJK Compatibility\": t => t >= 13056 && t <= 13311,\n \"CJK Unified Ideographs Extension A\": t => t >= 13312 && t <= 19903,\n \"Yijing Hexagram Symbols\": t => t >= 19904 && t <= 19967,\n \"CJK Unified Ideographs\": t => t >= 19968 && t <= 40959,\n \"Yi Syllables\": t => t >= 40960 && t <= 42127,\n \"Yi Radicals\": t => t >= 42128 && t <= 42191,\n \"Hangul Jamo Extended-A\": t => t >= 43360 && t <= 43391,\n \"Hangul Syllables\": t => t >= 44032 && t <= 55215,\n \"Hangul Jamo Extended-B\": t => t >= 55216 && t <= 55295,\n \"Private Use Area\": t => t >= 57344 && t <= 63743,\n \"CJK Compatibility Ideographs\": t => t >= 63744 && t <= 64255,\n \"Arabic Presentation Forms-A\": t => t >= 64336 && t <= 65023,\n \"Vertical Forms\": t => t >= 65040 && t <= 65055,\n \"CJK Compatibility Forms\": t => t >= 65072 && t <= 65103,\n \"Small Form Variants\": t => t >= 65104 && t <= 65135,\n \"Arabic Presentation Forms-B\": t => t >= 65136 && t <= 65279,\n \"Halfwidth and Fullwidth Forms\": t => t >= 65280 && t <= 65519\n };\n function es(t) {\n for (const e of t) if (is(e.charCodeAt(0))) return !0;\n return !1;\n }\n function rs(t) {\n for (const e of t) if (!ns(e.charCodeAt(0))) return !1;\n return !0;\n }\n function ns(t) {\n return !(ts.Arabic(t) || ts[\"Arabic Supplement\"](t) || ts[\"Arabic Extended-A\"](t) || ts[\"Arabic Presentation Forms-A\"](t) || ts[\"Arabic Presentation Forms-B\"](t));\n }\n function is(t) {\n return !(746 !== t && 747 !== t && (t < 4352 || !(ts[\"Bopomofo Extended\"](t) || ts.Bopomofo(t) || ts[\"CJK Compatibility Forms\"](t) && !(t >= 65097 && t <= 65103) || ts[\"CJK Compatibility Ideographs\"](t) || ts[\"CJK Compatibility\"](t) || ts[\"CJK Radicals Supplement\"](t) || ts[\"CJK Strokes\"](t) || !(!ts[\"CJK Symbols and Punctuation\"](t) || t >= 12296 && t <= 12305 || t >= 12308 && t <= 12319 || 12336 === t) || ts[\"CJK Unified Ideographs Extension A\"](t) || ts[\"CJK Unified Ideographs\"](t) || ts[\"Enclosed CJK Letters and Months\"](t) || ts[\"Hangul Compatibility Jamo\"](t) || ts[\"Hangul Jamo Extended-A\"](t) || ts[\"Hangul Jamo Extended-B\"](t) || ts[\"Hangul Jamo\"](t) || ts[\"Hangul Syllables\"](t) || ts.Hiragana(t) || ts[\"Ideographic Description Characters\"](t) || ts.Kanbun(t) || ts[\"Kangxi Radicals\"](t) || ts[\"Katakana Phonetic Extensions\"](t) || ts.Katakana(t) && 12540 !== t || !(!ts[\"Halfwidth and Fullwidth Forms\"](t) || 65288 === t || 65289 === t || 65293 === t || t >= 65306 && t <= 65310 || 65339 === t || 65341 === t || 65343 === t || t >= 65371 && t <= 65503 || 65507 === t || t >= 65512 && t <= 65519) || !(!ts[\"Small Form Variants\"](t) || t >= 65112 && t <= 65118 || t >= 65123 && t <= 65126) || ts[\"Unified Canadian Aboriginal Syllabics\"](t) || ts[\"Unified Canadian Aboriginal Syllabics Extended\"](t) || ts[\"Vertical Forms\"](t) || ts[\"Yijing Hexagram Symbols\"](t) || ts[\"Yi Syllables\"](t) || ts[\"Yi Radicals\"](t))));\n }\n function ss(t) {\n return !(is(t) || function (t) {\n return !!(ts[\"Latin-1 Supplement\"](t) && (167 === t || 169 === t || 174 === t || 177 === t || 188 === t || 189 === t || 190 === t || 215 === t || 247 === t) || ts[\"General Punctuation\"](t) && (8214 === t || 8224 === t || 8225 === t || 8240 === t || 8241 === t || 8251 === t || 8252 === t || 8258 === t || 8263 === t || 8264 === t || 8265 === t || 8273 === t) || ts[\"Letterlike Symbols\"](t) || ts[\"Number Forms\"](t) || ts[\"Miscellaneous Technical\"](t) && (t >= 8960 && t <= 8967 || t >= 8972 && t <= 8991 || t >= 8996 && t <= 9e3 || 9003 === t || t >= 9085 && t <= 9114 || t >= 9150 && t <= 9165 || 9167 === t || t >= 9169 && t <= 9179 || t >= 9186 && t <= 9215) || ts[\"Control Pictures\"](t) && 9251 !== t || ts[\"Optical Character Recognition\"](t) || ts[\"Enclosed Alphanumerics\"](t) || ts[\"Geometric Shapes\"](t) || ts[\"Miscellaneous Symbols\"](t) && !(t >= 9754 && t <= 9759) || ts[\"Miscellaneous Symbols and Arrows\"](t) && (t >= 11026 && t <= 11055 || t >= 11088 && t <= 11097 || t >= 11192 && t <= 11243) || ts[\"CJK Symbols and Punctuation\"](t) || ts.Katakana(t) || ts[\"Private Use Area\"](t) || ts[\"CJK Compatibility Forms\"](t) || ts[\"Small Form Variants\"](t) || ts[\"Halfwidth and Fullwidth Forms\"](t) || 8734 === t || 8756 === t || 8757 === t || t >= 9984 && t <= 10087 || t >= 10102 && t <= 10131 || 65532 === t || 65533 === t);\n }(t));\n }\n function as(t) {\n return t >= 1424 && t <= 2303 || ts[\"Arabic Presentation Forms-A\"](t) || ts[\"Arabic Presentation Forms-B\"](t);\n }\n function os(t, e) {\n return !(!e && as(t) || t >= 2304 && t <= 3583 || t >= 3840 && t <= 4255 || ts.Khmer(t));\n }\n function ls(t) {\n for (const e of t) if (as(e.charCodeAt(0))) return !0;\n return !1;\n }\n const us = \"deferred\",\n cs = \"loading\",\n hs = \"loaded\";\n let ps = null,\n ds = \"unavailable\",\n fs = null;\n const ys = function (t) {\n t && \"string\" == typeof t && t.indexOf(\"NetworkError\") > -1 && (ds = \"error\"), ps && ps(t);\n };\n function ms() {\n gs.fire(new Yt(\"pluginStateChange\", {\n pluginStatus: ds,\n pluginURL: fs\n }));\n }\n const gs = new Qt(),\n xs = function () {\n return ds;\n },\n vs = function () {\n if (ds !== us || !fs) throw new Error(\"rtl-text-plugin cannot be downloaded unless a pluginURL is specified\");\n ds = cs, ms(), fs && pt({\n url: fs\n }, t => {\n t ? ys(t) : (ds = hs, ms());\n });\n },\n bs = {\n applyArabicShaping: null,\n processBidirectionalText: null,\n processStyledBidirectionalText: null,\n isLoaded: () => ds === hs || null != bs.applyArabicShaping,\n isLoading: () => ds === cs,\n setState(t) {\n ds = t.pluginStatus, fs = t.pluginURL;\n },\n isParsed: () => null != bs.applyArabicShaping && null != bs.processBidirectionalText && null != bs.processStyledBidirectionalText,\n getPluginURL: () => fs\n };\n class ws {\n constructor(t, e) {\n this.zoom = t, e ? (this.now = e.now, this.fadeDuration = e.fadeDuration, this.transition = e.transition, this.pitch = e.pitch) : (this.now = 0, this.fadeDuration = 0, this.transition = {}, this.pitch = 0);\n }\n isSupportedScript(t) {\n return function (t, e) {\n for (const r of t) if (!os(r.charCodeAt(0), e)) return !1;\n return !0;\n }(t, bs.isLoaded());\n }\n }\n class _s {\n constructor(t, e) {\n this.property = t, this.value = e, this.expression = function (t, e) {\n if ($n(t)) return new ti(t, e);\n if (Jn(t)) {\n const r = Qn(t, e);\n if (\"error\" === r.result) throw new Error(r.value.map(t => `${t.key}: ${t.message}`).join(\", \"));\n return r.value;\n }\n {\n let r = t;\n return \"string\" == typeof t && \"color\" === e.type && (r = Ee.parse(t)), {\n kind: \"constant\",\n evaluate: () => r\n };\n }\n }(void 0 === e ? t.specification.default : e, t.specification);\n }\n isDataDriven() {\n return \"source\" === this.expression.kind || \"composite\" === this.expression.kind;\n }\n possiblyEvaluate(t, e, r) {\n return this.property.possiblyEvaluate(this, t, e, r);\n }\n }\n class As {\n constructor(t) {\n this.property = t, this.value = new _s(t, void 0);\n }\n transitioned(t, e) {\n return new ks(this.property, this.value, e, C({}, t.transition, this.transition), t.now);\n }\n untransitioned() {\n return new ks(this.property, this.value, null, {}, 0);\n }\n }\n class Ss {\n constructor(t) {\n this._properties = t, this._values = Object.create(t.defaultTransitionablePropertyValues);\n }\n getValue(t) {\n return O(this._values[t].value.value);\n }\n setValue(t, e) {\n this._values.hasOwnProperty(t) || (this._values[t] = new As(this._values[t].property)), this._values[t].value = new _s(this._values[t].property, null === e ? void 0 : O(e));\n }\n getTransition(t) {\n return O(this._values[t].transition);\n }\n setTransition(t, e) {\n this._values.hasOwnProperty(t) || (this._values[t] = new As(this._values[t].property)), this._values[t].transition = O(e) || void 0;\n }\n serialize() {\n const t = {};\n for (const e of Object.keys(this._values)) {\n const r = this.getValue(e);\n void 0 !== r && (t[e] = r);\n const n = this.getTransition(e);\n void 0 !== n && (t[`${e}-transition`] = n);\n }\n return t;\n }\n transitioned(t, e) {\n const r = new Is(this._properties);\n for (const n of Object.keys(this._values)) r._values[n] = this._values[n].transitioned(t, e._values[n]);\n return r;\n }\n untransitioned() {\n const t = new Is(this._properties);\n for (const e of Object.keys(this._values)) t._values[e] = this._values[e].untransitioned();\n return t;\n }\n }\n class ks {\n constructor(t, e, r, n, i) {\n const s = n.delay || 0,\n a = n.duration || 0;\n i = i || 0, this.property = t, this.value = e, this.begin = i + s, this.end = this.begin + a, t.specification.transition && (n.delay || n.duration) && (this.prior = r);\n }\n possiblyEvaluate(t, e, r) {\n const n = t.now || 0,\n i = this.value.possiblyEvaluate(t, e, r),\n s = this.prior;\n if (s) {\n if (n > this.end) return this.prior = null, i;\n if (this.value.isDataDriven()) return this.prior = null, i;\n if (n < this.begin) return s.possiblyEvaluate(t, e, r);\n {\n const a = (n - this.begin) / (this.end - this.begin);\n return this.property.interpolate(s.possiblyEvaluate(t, e, r), i, S(a));\n }\n }\n return i;\n }\n }\n class Is {\n constructor(t) {\n this._properties = t, this._values = Object.create(t.defaultTransitioningPropertyValues);\n }\n possiblyEvaluate(t, e, r) {\n const n = new zs(this._properties);\n for (const i of Object.keys(this._values)) n._values[i] = this._values[i].possiblyEvaluate(t, e, r);\n return n;\n }\n hasTransition() {\n for (const t of Object.keys(this._values)) if (this._values[t].prior) return !0;\n return !1;\n }\n }\n class Ms {\n constructor(t) {\n this._properties = t, this._values = Object.create(t.defaultPropertyValues);\n }\n getValue(t) {\n return O(this._values[t].value);\n }\n setValue(t, e) {\n this._values[t] = new _s(this._values[t].property, null === e ? void 0 : O(e));\n }\n serialize() {\n const t = {};\n for (const e of Object.keys(this._values)) {\n const r = this.getValue(e);\n void 0 !== r && (t[e] = r);\n }\n return t;\n }\n possiblyEvaluate(t, e, r) {\n const n = new zs(this._properties);\n for (const i of Object.keys(this._values)) n._values[i] = this._values[i].possiblyEvaluate(t, e, r);\n return n;\n }\n }\n class Ts {\n constructor(t, e, r) {\n this.property = t, this.value = e, this.parameters = r;\n }\n isConstant() {\n return \"constant\" === this.value.kind;\n }\n constantOr(t) {\n return \"constant\" === this.value.kind ? this.value.value : t;\n }\n evaluate(t, e, r, n) {\n return this.property.evaluate(this.value, this.parameters, t, e, r, n);\n }\n }\n class zs {\n constructor(t) {\n this._properties = t, this._values = Object.create(t.defaultPossiblyEvaluatedValues);\n }\n get(t) {\n return this._values[t];\n }\n }\n class Bs {\n constructor(t) {\n this.specification = t;\n }\n possiblyEvaluate(t, e) {\n return t.expression.evaluate(e);\n }\n interpolate(t, e, r) {\n const n = Cr[this.specification.type];\n return n ? n(t, e, r) : t;\n }\n }\n class Es {\n constructor(t, e) {\n this.specification = t, this.overrides = e;\n }\n possiblyEvaluate(t, e, r, n) {\n return new Ts(this, \"constant\" === t.expression.kind || \"camera\" === t.expression.kind ? {\n kind: \"constant\",\n value: t.expression.evaluate(e, null, {}, r, n)\n } : t.expression, e);\n }\n interpolate(t, e, r) {\n if (\"constant\" !== t.value.kind || \"constant\" !== e.value.kind) return t;\n if (void 0 === t.value.value || void 0 === e.value.value) return new Ts(this, {\n kind: \"constant\",\n value: void 0\n }, t.parameters);\n const n = Cr[this.specification.type];\n return n ? new Ts(this, {\n kind: \"constant\",\n value: n(t.value.value, e.value.value, r)\n }, t.parameters) : t;\n }\n evaluate(t, e, r, n, i, s) {\n return \"constant\" === t.kind ? t.value : t.evaluate(e, r, n, i, s);\n }\n }\n class Cs {\n constructor(t) {\n this.specification = t;\n }\n possiblyEvaluate(t, e, r, n) {\n return !!t.expression.evaluate(e, null, {}, r, n);\n }\n interpolate() {\n return !1;\n }\n }\n class Ps {\n constructor(t) {\n this.properties = t, this.defaultPropertyValues = {}, this.defaultTransitionablePropertyValues = {}, this.defaultTransitioningPropertyValues = {}, this.defaultPossiblyEvaluatedValues = {}, this.overridableProperties = [];\n const e = new ws(0, {});\n for (const r in t) {\n const n = t[r];\n n.specification.overridable && this.overridableProperties.push(r);\n const i = this.defaultPropertyValues[r] = new _s(n, void 0),\n s = this.defaultTransitionablePropertyValues[r] = new As(n);\n this.defaultTransitioningPropertyValues[r] = s.untransitioned(), this.defaultPossiblyEvaluatedValues[r] = i.possiblyEvaluate(e);\n }\n }\n }\n function Ds(t, e) {\n return 256 * (t = M(Math.floor(t), 0, 255)) + M(Math.floor(e), 0, 255);\n }\n Ji(Es, \"DataDrivenProperty\"), Ji(Bs, \"DataConstantProperty\"), Ji(Cs, \"ColorRampProperty\");\n const Vs = {\n Int8: Int8Array,\n Uint8: Uint8Array,\n Int16: Int16Array,\n Uint16: Uint16Array,\n Int32: Int32Array,\n Uint32: Uint32Array,\n Float32: Float32Array\n };\n class Ls {\n constructor(t, e) {\n this._structArray = t, this._pos1 = e * this.size, this._pos2 = this._pos1 / 2, this._pos4 = this._pos1 / 4, this._pos8 = this._pos1 / 8;\n }\n }\n class Fs {\n constructor() {\n this.isTransferred = !1, this.capacity = -1, this.resize(0);\n }\n static serialize(t, e) {\n return t._trim(), e && (t.isTransferred = !0, e.push(t.arrayBuffer)), {\n length: t.length,\n arrayBuffer: t.arrayBuffer\n };\n }\n static deserialize(t) {\n const e = Object.create(this.prototype);\n return e.arrayBuffer = t.arrayBuffer, e.length = t.length, e.capacity = t.arrayBuffer.byteLength / e.bytesPerElement, e._refreshViews(), e;\n }\n _trim() {\n this.length !== this.capacity && (this.capacity = this.length, this.arrayBuffer = this.arrayBuffer.slice(0, this.length * this.bytesPerElement), this._refreshViews());\n }\n clear() {\n this.length = 0;\n }\n resize(t) {\n this.reserve(t), this.length = t;\n }\n reserve(t) {\n if (t > this.capacity) {\n this.capacity = Math.max(t, Math.floor(5 * this.capacity), 128), this.arrayBuffer = new ArrayBuffer(this.capacity * this.bytesPerElement);\n const e = this.uint8;\n this._refreshViews(), e && this.uint8.set(e);\n }\n }\n _refreshViews() {\n throw new Error(\"_refreshViews() must be implemented by each concrete StructArray layout\");\n }\n destroy() {\n this.int8 = this.uint8 = this.int16 = this.uint16 = this.int32 = this.uint32 = this.float32 = null, this.arrayBuffer = null;\n }\n }\n function Rs(t, e = 1) {\n let r = 0,\n n = 0;\n return {\n members: t.map(t => {\n const i = Vs[t.type].BYTES_PER_ELEMENT,\n s = r = Us(r, Math.max(e, i)),\n a = t.components || 1;\n return n = Math.max(n, i), r += i * a, {\n name: t.name,\n type: t.type,\n components: a,\n offset: s\n };\n }),\n size: Us(r, Math.max(n, e)),\n alignment: e\n };\n }\n function Us(t, e) {\n return Math.ceil(t / e) * e;\n }\n class $s extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);\n }\n emplaceBack(t, e) {\n const r = this.length;\n return this.resize(r + 1), this.emplace(r, t, e);\n }\n emplace(t, e, r) {\n const n = 2 * t;\n return this.int16[n + 0] = e, this.int16[n + 1] = r, t;\n }\n }\n $s.prototype.bytesPerElement = 4, Ji($s, \"StructArrayLayout2i4\");\n class js extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r) {\n const n = this.length;\n return this.resize(n + 1), this.emplace(n, t, e, r);\n }\n emplace(t, e, r, n) {\n const i = 3 * t;\n return this.int16[i + 0] = e, this.int16[i + 1] = r, this.int16[i + 2] = n, t;\n }\n }\n js.prototype.bytesPerElement = 6, Ji(js, \"StructArrayLayout3i6\");\n class Os extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r, n) {\n const i = this.length;\n return this.resize(i + 1), this.emplace(i, t, e, r, n);\n }\n emplace(t, e, r, n, i) {\n const s = 4 * t;\n return this.int16[s + 0] = e, this.int16[s + 1] = r, this.int16[s + 2] = n, this.int16[s + 3] = i, t;\n }\n }\n Os.prototype.bytesPerElement = 8, Ji(Os, \"StructArrayLayout4i8\");\n class qs extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r, n, i, s, a) {\n const o = this.length;\n return this.resize(o + 1), this.emplace(o, t, e, r, n, i, s, a);\n }\n emplace(t, e, r, n, i, s, a, o) {\n const l = 6 * t,\n u = 12 * t,\n c = 3 * t;\n return this.int16[l + 0] = e, this.int16[l + 1] = r, this.uint8[u + 4] = n, this.uint8[u + 5] = i, this.uint8[u + 6] = s, this.uint8[u + 7] = a, this.float32[c + 2] = o, t;\n }\n }\n qs.prototype.bytesPerElement = 12, Ji(qs, \"StructArrayLayout2i4ub1f12\");\n class Ns extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r, n) {\n const i = this.length;\n return this.resize(i + 1), this.emplace(i, t, e, r, n);\n }\n emplace(t, e, r, n, i) {\n const s = 4 * t;\n return this.float32[s + 0] = e, this.float32[s + 1] = r, this.float32[s + 2] = n, this.float32[s + 3] = i, t;\n }\n }\n Ns.prototype.bytesPerElement = 16, Ji(Ns, \"StructArrayLayout4f16\");\n class Gs extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r, n, i) {\n const s = this.length;\n return this.resize(s + 1), this.emplace(s, t, e, r, n, i);\n }\n emplace(t, e, r, n, i, s) {\n const a = 6 * t,\n o = 3 * t;\n return this.uint16[a + 0] = e, this.uint16[a + 1] = r, this.uint16[a + 2] = n, this.uint16[a + 3] = i, this.float32[o + 2] = s, t;\n }\n }\n Gs.prototype.bytesPerElement = 12, Ji(Gs, \"StructArrayLayout4ui1f12\");\n class Zs extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r, n) {\n const i = this.length;\n return this.resize(i + 1), this.emplace(i, t, e, r, n);\n }\n emplace(t, e, r, n, i) {\n const s = 4 * t;\n return this.uint16[s + 0] = e, this.uint16[s + 1] = r, this.uint16[s + 2] = n, this.uint16[s + 3] = i, t;\n }\n }\n Zs.prototype.bytesPerElement = 8, Ji(Zs, \"StructArrayLayout4ui8\");\n class Ks extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r, n, i, s) {\n const a = this.length;\n return this.resize(a + 1), this.emplace(a, t, e, r, n, i, s);\n }\n emplace(t, e, r, n, i, s, a) {\n const o = 6 * t;\n return this.int16[o + 0] = e, this.int16[o + 1] = r, this.int16[o + 2] = n, this.int16[o + 3] = i, this.int16[o + 4] = s, this.int16[o + 5] = a, t;\n }\n }\n Ks.prototype.bytesPerElement = 12, Ji(Ks, \"StructArrayLayout6i12\");\n class Xs extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r, n, i, s, a, o, l, u, c, h) {\n const p = this.length;\n return this.resize(p + 1), this.emplace(p, t, e, r, n, i, s, a, o, l, u, c, h);\n }\n emplace(t, e, r, n, i, s, a, o, l, u, c, h, p) {\n const d = 12 * t;\n return this.int16[d + 0] = e, this.int16[d + 1] = r, this.int16[d + 2] = n, this.int16[d + 3] = i, this.uint16[d + 4] = s, this.uint16[d + 5] = a, this.uint16[d + 6] = o, this.uint16[d + 7] = l, this.int16[d + 8] = u, this.int16[d + 9] = c, this.int16[d + 10] = h, this.int16[d + 11] = p, t;\n }\n }\n Xs.prototype.bytesPerElement = 24, Ji(Xs, \"StructArrayLayout4i4ui4i24\");\n class Js extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r, n, i, s) {\n const a = this.length;\n return this.resize(a + 1), this.emplace(a, t, e, r, n, i, s);\n }\n emplace(t, e, r, n, i, s, a) {\n const o = 10 * t,\n l = 5 * t;\n return this.int16[o + 0] = e, this.int16[o + 1] = r, this.int16[o + 2] = n, this.float32[l + 2] = i, this.float32[l + 3] = s, this.float32[l + 4] = a, t;\n }\n }\n Js.prototype.bytesPerElement = 20, Ji(Js, \"StructArrayLayout3i3f20\");\n class Hs extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer);\n }\n emplaceBack(t) {\n const e = this.length;\n return this.resize(e + 1), this.emplace(e, t);\n }\n emplace(t, e) {\n return this.uint32[1 * t + 0] = e, t;\n }\n }\n Hs.prototype.bytesPerElement = 4, Ji(Hs, \"StructArrayLayout1ul4\");\n class Ys extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r, n, i, s, a, o, l, u, c, h, p) {\n const d = this.length;\n return this.resize(d + 1), this.emplace(d, t, e, r, n, i, s, a, o, l, u, c, h, p);\n }\n emplace(t, e, r, n, i, s, a, o, l, u, c, h, p, d) {\n const f = 20 * t,\n y = 10 * t;\n return this.int16[f + 0] = e, this.int16[f + 1] = r, this.int16[f + 2] = n, this.int16[f + 3] = i, this.int16[f + 4] = s, this.float32[y + 3] = a, this.float32[y + 4] = o, this.float32[y + 5] = l, this.float32[y + 6] = u, this.int16[f + 14] = c, this.uint32[y + 8] = h, this.uint16[f + 18] = p, this.uint16[f + 19] = d, t;\n }\n }\n Ys.prototype.bytesPerElement = 40, Ji(Ys, \"StructArrayLayout5i4f1i1ul2ui40\");\n class Ws extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r, n, i, s, a) {\n const o = this.length;\n return this.resize(o + 1), this.emplace(o, t, e, r, n, i, s, a);\n }\n emplace(t, e, r, n, i, s, a, o) {\n const l = 8 * t;\n return this.int16[l + 0] = e, this.int16[l + 1] = r, this.int16[l + 2] = n, this.int16[l + 4] = i, this.int16[l + 5] = s, this.int16[l + 6] = a, this.int16[l + 7] = o, t;\n }\n }\n Ws.prototype.bytesPerElement = 16, Ji(Ws, \"StructArrayLayout3i2i2i16\");\n class Qs extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r, n, i) {\n const s = this.length;\n return this.resize(s + 1), this.emplace(s, t, e, r, n, i);\n }\n emplace(t, e, r, n, i, s) {\n const a = 4 * t,\n o = 8 * t;\n return this.float32[a + 0] = e, this.float32[a + 1] = r, this.float32[a + 2] = n, this.int16[o + 6] = i, this.int16[o + 7] = s, t;\n }\n }\n Qs.prototype.bytesPerElement = 16, Ji(Qs, \"StructArrayLayout2f1f2i16\");\n class ta extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r, n) {\n const i = this.length;\n return this.resize(i + 1), this.emplace(i, t, e, r, n);\n }\n emplace(t, e, r, n, i) {\n const s = 12 * t,\n a = 3 * t;\n return this.uint8[s + 0] = e, this.uint8[s + 1] = r, this.float32[a + 1] = n, this.float32[a + 2] = i, t;\n }\n }\n ta.prototype.bytesPerElement = 12, Ji(ta, \"StructArrayLayout2ub2f12\");\n class ea extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r) {\n const n = this.length;\n return this.resize(n + 1), this.emplace(n, t, e, r);\n }\n emplace(t, e, r, n) {\n const i = 3 * t;\n return this.float32[i + 0] = e, this.float32[i + 1] = r, this.float32[i + 2] = n, t;\n }\n }\n ea.prototype.bytesPerElement = 12, Ji(ea, \"StructArrayLayout3f12\");\n class ra extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r) {\n const n = this.length;\n return this.resize(n + 1), this.emplace(n, t, e, r);\n }\n emplace(t, e, r, n) {\n const i = 3 * t;\n return this.uint16[i + 0] = e, this.uint16[i + 1] = r, this.uint16[i + 2] = n, t;\n }\n }\n ra.prototype.bytesPerElement = 6, Ji(ra, \"StructArrayLayout3ui6\");\n class na extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r, n, i, s, a, o, l, u, c, h, p, d, f, y, m, g, x, v, b) {\n const w = this.length;\n return this.resize(w + 1), this.emplace(w, t, e, r, n, i, s, a, o, l, u, c, h, p, d, f, y, m, g, x, v, b);\n }\n emplace(t, e, r, n, i, s, a, o, l, u, c, h, p, d, f, y, m, g, x, v, b, w) {\n const _ = 30 * t,\n A = 15 * t,\n S = 60 * t;\n return this.int16[_ + 0] = e, this.int16[_ + 1] = r, this.int16[_ + 2] = n, this.float32[A + 2] = i, this.float32[A + 3] = s, this.uint16[_ + 8] = a, this.uint16[_ + 9] = o, this.uint32[A + 5] = l, this.uint32[A + 6] = u, this.uint32[A + 7] = c, this.uint16[_ + 16] = h, this.uint16[_ + 17] = p, this.uint16[_ + 18] = d, this.float32[A + 10] = f, this.float32[A + 11] = y, this.uint8[S + 48] = m, this.uint8[S + 49] = g, this.uint8[S + 50] = x, this.uint32[A + 13] = v, this.int16[_ + 28] = b, this.uint8[S + 58] = w, t;\n }\n }\n na.prototype.bytesPerElement = 60, Ji(na, \"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60\");\n class ia extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r, n, i, s, a, o, l, u, c, h, p, d, f, y, m, g, x, v, b, w, _, A, S, k, I, M, T, z) {\n const B = this.length;\n return this.resize(B + 1), this.emplace(B, t, e, r, n, i, s, a, o, l, u, c, h, p, d, f, y, m, g, x, v, b, w, _, A, S, k, I, M, T, z);\n }\n emplace(t, e, r, n, i, s, a, o, l, u, c, h, p, d, f, y, m, g, x, v, b, w, _, A, S, k, I, M, T, z, B) {\n const E = 38 * t,\n C = 19 * t;\n return this.int16[E + 0] = e, this.int16[E + 1] = r, this.int16[E + 2] = n, this.float32[C + 2] = i, this.float32[C + 3] = s, this.int16[E + 8] = a, this.int16[E + 9] = o, this.int16[E + 10] = l, this.int16[E + 11] = u, this.int16[E + 12] = c, this.int16[E + 13] = h, this.uint16[E + 14] = p, this.uint16[E + 15] = d, this.uint16[E + 16] = f, this.uint16[E + 17] = y, this.uint16[E + 18] = m, this.uint16[E + 19] = g, this.uint16[E + 20] = x, this.uint16[E + 21] = v, this.uint16[E + 22] = b, this.uint16[E + 23] = w, this.uint16[E + 24] = _, this.uint16[E + 25] = A, this.uint16[E + 26] = S, this.uint16[E + 27] = k, this.uint16[E + 28] = I, this.uint32[C + 15] = M, this.float32[C + 16] = T, this.float32[C + 17] = z, this.float32[C + 18] = B, t;\n }\n }\n ia.prototype.bytesPerElement = 76, Ji(ia, \"StructArrayLayout3i2f6i15ui1ul3f76\");\n class sa extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);\n }\n emplaceBack(t) {\n const e = this.length;\n return this.resize(e + 1), this.emplace(e, t);\n }\n emplace(t, e) {\n return this.float32[1 * t + 0] = e, t;\n }\n }\n sa.prototype.bytesPerElement = 4, Ji(sa, \"StructArrayLayout1f4\");\n class aa extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r, n, i) {\n const s = this.length;\n return this.resize(s + 1), this.emplace(s, t, e, r, n, i);\n }\n emplace(t, e, r, n, i, s) {\n const a = 5 * t;\n return this.float32[a + 0] = e, this.float32[a + 1] = r, this.float32[a + 2] = n, this.float32[a + 3] = i, this.float32[a + 4] = s, t;\n }\n }\n aa.prototype.bytesPerElement = 20, Ji(aa, \"StructArrayLayout5f20\");\n class oa extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);\n }\n emplaceBack(t, e, r, n) {\n const i = this.length;\n return this.resize(i + 1), this.emplace(i, t, e, r, n);\n }\n emplace(t, e, r, n, i) {\n const s = 6 * t;\n return this.uint32[3 * t + 0] = e, this.uint16[s + 2] = r, this.uint16[s + 3] = n, this.uint16[s + 4] = i, t;\n }\n }\n oa.prototype.bytesPerElement = 12, Ji(oa, \"StructArrayLayout1ul3ui12\");\n class la extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);\n }\n emplaceBack(t, e) {\n const r = this.length;\n return this.resize(r + 1), this.emplace(r, t, e);\n }\n emplace(t, e, r) {\n const n = 2 * t;\n return this.uint16[n + 0] = e, this.uint16[n + 1] = r, t;\n }\n }\n la.prototype.bytesPerElement = 4, Ji(la, \"StructArrayLayout2ui4\");\n class ua extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);\n }\n emplaceBack(t) {\n const e = this.length;\n return this.resize(e + 1), this.emplace(e, t);\n }\n emplace(t, e) {\n return this.uint16[1 * t + 0] = e, t;\n }\n }\n ua.prototype.bytesPerElement = 2, Ji(ua, \"StructArrayLayout1ui2\");\n class ca extends Fs {\n _refreshViews() {\n this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);\n }\n emplaceBack(t, e) {\n const r = this.length;\n return this.resize(r + 1), this.emplace(r, t, e);\n }\n emplace(t, e, r) {\n const n = 2 * t;\n return this.float32[n + 0] = e, this.float32[n + 1] = r, t;\n }\n }\n ca.prototype.bytesPerElement = 8, Ji(ca, \"StructArrayLayout2f8\");\n class ha extends Ls {\n get projectedAnchorX() {\n return this._structArray.int16[this._pos2 + 0];\n }\n get projectedAnchorY() {\n return this._structArray.int16[this._pos2 + 1];\n }\n get projectedAnchorZ() {\n return this._structArray.int16[this._pos2 + 2];\n }\n get tileAnchorX() {\n return this._structArray.int16[this._pos2 + 3];\n }\n get tileAnchorY() {\n return this._structArray.int16[this._pos2 + 4];\n }\n get x1() {\n return this._structArray.float32[this._pos4 + 3];\n }\n get y1() {\n return this._structArray.float32[this._pos4 + 4];\n }\n get x2() {\n return this._structArray.float32[this._pos4 + 5];\n }\n get y2() {\n return this._structArray.float32[this._pos4 + 6];\n }\n get padding() {\n return this._structArray.int16[this._pos2 + 14];\n }\n get featureIndex() {\n return this._structArray.uint32[this._pos4 + 8];\n }\n get sourceLayerIndex() {\n return this._structArray.uint16[this._pos2 + 18];\n }\n get bucketIndex() {\n return this._structArray.uint16[this._pos2 + 19];\n }\n }\n ha.prototype.size = 40;\n class pa extends Ys {\n get(t) {\n return new ha(this, t);\n }\n }\n Ji(pa, \"CollisionBoxArray\");\n class da extends Ls {\n get projectedAnchorX() {\n return this._structArray.int16[this._pos2 + 0];\n }\n get projectedAnchorY() {\n return this._structArray.int16[this._pos2 + 1];\n }\n get projectedAnchorZ() {\n return this._structArray.int16[this._pos2 + 2];\n }\n get tileAnchorX() {\n return this._structArray.float32[this._pos4 + 2];\n }\n get tileAnchorY() {\n return this._structArray.float32[this._pos4 + 3];\n }\n get glyphStartIndex() {\n return this._structArray.uint16[this._pos2 + 8];\n }\n get numGlyphs() {\n return this._structArray.uint16[this._pos2 + 9];\n }\n get vertexStartIndex() {\n return this._structArray.uint32[this._pos4 + 5];\n }\n get lineStartIndex() {\n return this._structArray.uint32[this._pos4 + 6];\n }\n get lineLength() {\n return this._structArray.uint32[this._pos4 + 7];\n }\n get segment() {\n return this._structArray.uint16[this._pos2 + 16];\n }\n get lowerSize() {\n return this._structArray.uint16[this._pos2 + 17];\n }\n get upperSize() {\n return this._structArray.uint16[this._pos2 + 18];\n }\n get lineOffsetX() {\n return this._structArray.float32[this._pos4 + 10];\n }\n get lineOffsetY() {\n return this._structArray.float32[this._pos4 + 11];\n }\n get writingMode() {\n return this._structArray.uint8[this._pos1 + 48];\n }\n get placedOrientation() {\n return this._structArray.uint8[this._pos1 + 49];\n }\n set placedOrientation(t) {\n this._structArray.uint8[this._pos1 + 49] = t;\n }\n get hidden() {\n return this._structArray.uint8[this._pos1 + 50];\n }\n set hidden(t) {\n this._structArray.uint8[this._pos1 + 50] = t;\n }\n get crossTileID() {\n return this._structArray.uint32[this._pos4 + 13];\n }\n set crossTileID(t) {\n this._structArray.uint32[this._pos4 + 13] = t;\n }\n get associatedIconIndex() {\n return this._structArray.int16[this._pos2 + 28];\n }\n get flipState() {\n return this._structArray.uint8[this._pos1 + 58];\n }\n set flipState(t) {\n this._structArray.uint8[this._pos1 + 58] = t;\n }\n }\n da.prototype.size = 60;\n class fa extends na {\n get(t) {\n return new da(this, t);\n }\n }\n Ji(fa, \"PlacedSymbolArray\");\n class ya extends Ls {\n get projectedAnchorX() {\n return this._structArray.int16[this._pos2 + 0];\n }\n get projectedAnchorY() {\n return this._structArray.int16[this._pos2 + 1];\n }\n get projectedAnchorZ() {\n return this._structArray.int16[this._pos2 + 2];\n }\n get tileAnchorX() {\n return this._structArray.float32[this._pos4 + 2];\n }\n get tileAnchorY() {\n return this._structArray.float32[this._pos4 + 3];\n }\n get rightJustifiedTextSymbolIndex() {\n return this._structArray.int16[this._pos2 + 8];\n }\n get centerJustifiedTextSymbolIndex() {\n return this._structArray.int16[this._pos2 + 9];\n }\n get leftJustifiedTextSymbolIndex() {\n return this._structArray.int16[this._pos2 + 10];\n }\n get verticalPlacedTextSymbolIndex() {\n return this._structArray.int16[this._pos2 + 11];\n }\n get placedIconSymbolIndex() {\n return this._structArray.int16[this._pos2 + 12];\n }\n get verticalPlacedIconSymbolIndex() {\n return this._structArray.int16[this._pos2 + 13];\n }\n get key() {\n return this._structArray.uint16[this._pos2 + 14];\n }\n get textBoxStartIndex() {\n return this._structArray.uint16[this._pos2 + 15];\n }\n get textBoxEndIndex() {\n return this._structArray.uint16[this._pos2 + 16];\n }\n get verticalTextBoxStartIndex() {\n return this._structArray.uint16[this._pos2 + 17];\n }\n get verticalTextBoxEndIndex() {\n return this._structArray.uint16[this._pos2 + 18];\n }\n get iconBoxStartIndex() {\n return this._structArray.uint16[this._pos2 + 19];\n }\n get iconBoxEndIndex() {\n return this._structArray.uint16[this._pos2 + 20];\n }\n get verticalIconBoxStartIndex() {\n return this._structArray.uint16[this._pos2 + 21];\n }\n get verticalIconBoxEndIndex() {\n return this._structArray.uint16[this._pos2 + 22];\n }\n get featureIndex() {\n return this._structArray.uint16[this._pos2 + 23];\n }\n get numHorizontalGlyphVertices() {\n return this._structArray.uint16[this._pos2 + 24];\n }\n get numVerticalGlyphVertices() {\n return this._structArray.uint16[this._pos2 + 25];\n }\n get numIconVertices() {\n return this._structArray.uint16[this._pos2 + 26];\n }\n get numVerticalIconVertices() {\n return this._structArray.uint16[this._pos2 + 27];\n }\n get useRuntimeCollisionCircles() {\n return this._structArray.uint16[this._pos2 + 28];\n }\n get crossTileID() {\n return this._structArray.uint32[this._pos4 + 15];\n }\n set crossTileID(t) {\n this._structArray.uint32[this._pos4 + 15] = t;\n }\n get textOffset0() {\n return this._structArray.float32[this._pos4 + 16];\n }\n get textOffset1() {\n return this._structArray.float32[this._pos4 + 17];\n }\n get collisionCircleDiameter() {\n return this._structArray.float32[this._pos4 + 18];\n }\n }\n ya.prototype.size = 76;\n class ma extends ia {\n get(t) {\n return new ya(this, t);\n }\n }\n Ji(ma, \"SymbolInstanceArray\");\n class ga extends sa {\n getoffsetX(t) {\n return this.float32[1 * t + 0];\n }\n }\n Ji(ga, \"GlyphOffsetArray\");\n class xa extends $s {\n getx(t) {\n return this.int16[2 * t + 0];\n }\n gety(t) {\n return this.int16[2 * t + 1];\n }\n }\n Ji(xa, \"SymbolLineVertexArray\");\n class va extends Ls {\n get featureIndex() {\n return this._structArray.uint32[this._pos4 + 0];\n }\n get sourceLayerIndex() {\n return this._structArray.uint16[this._pos2 + 2];\n }\n get bucketIndex() {\n return this._structArray.uint16[this._pos2 + 3];\n }\n get layoutVertexArrayOffset() {\n return this._structArray.uint16[this._pos2 + 4];\n }\n }\n va.prototype.size = 12;\n class ba extends oa {\n get(t) {\n return new va(this, t);\n }\n }\n Ji(ba, \"FeatureIndexArray\");\n class wa extends la {\n geta_centroid_pos0(t) {\n return this.uint16[2 * t + 0];\n }\n geta_centroid_pos1(t) {\n return this.uint16[2 * t + 1];\n }\n }\n Ji(wa, \"FillExtrusionCentroidArray\");\n const _a = Rs([{\n name: \"a_pattern\",\n components: 4,\n type: \"Uint16\"\n }, {\n name: \"a_pixel_ratio\",\n components: 1,\n type: \"Float32\"\n }]),\n Aa = Rs([{\n name: \"a_dash\",\n components: 4,\n type: \"Uint16\"\n }]);\n var Sa = {\n exports: {}\n },\n ka = {\n exports: {}\n };\n ka.exports = function (t, e) {\n var r, n, i, s, a, o, l, u;\n for (n = t.length - (r = 3 & t.length), i = e, a = 3432918353, o = 461845907, u = 0; u < n;) l = 255 & t.charCodeAt(u) | (255 & t.charCodeAt(++u)) << 8 | (255 & t.charCodeAt(++u)) << 16 | (255 & t.charCodeAt(++u)) << 24, ++u, i = 27492 + (65535 & (s = 5 * (65535 & (i = (i ^= l = (65535 & (l = (l = (65535 & l) * a + (((l >>> 16) * a & 65535) << 16) & 4294967295) << 15 | l >>> 17)) * o + (((l >>> 16) * o & 65535) << 16) & 4294967295) << 13 | i >>> 19)) + ((5 * (i >>> 16) & 65535) << 16) & 4294967295)) + ((58964 + (s >>> 16) & 65535) << 16);\n switch (l = 0, r) {\n case 3:\n l ^= (255 & t.charCodeAt(u + 2)) << 16;\n case 2:\n l ^= (255 & t.charCodeAt(u + 1)) << 8;\n case 1:\n i ^= l = (65535 & (l = (l = (65535 & (l ^= 255 & t.charCodeAt(u))) * a + (((l >>> 16) * a & 65535) << 16) & 4294967295) << 15 | l >>> 17)) * o + (((l >>> 16) * o & 65535) << 16) & 4294967295;\n }\n return i ^= t.length, i = 2246822507 * (65535 & (i ^= i >>> 16)) + ((2246822507 * (i >>> 16) & 65535) << 16) & 4294967295, i = 3266489909 * (65535 & (i ^= i >>> 13)) + ((3266489909 * (i >>> 16) & 65535) << 16) & 4294967295, (i ^= i >>> 16) >>> 0;\n };\n var Ia = ka.exports,\n Ma = {\n exports: {}\n };\n Ma.exports = function (t, e) {\n for (var r, n = t.length, i = e ^ n, s = 0; n >= 4;) r = 1540483477 * (65535 & (r = 255 & t.charCodeAt(s) | (255 & t.charCodeAt(++s)) << 8 | (255 & t.charCodeAt(++s)) << 16 | (255 & t.charCodeAt(++s)) << 24)) + ((1540483477 * (r >>> 16) & 65535) << 16), i = 1540483477 * (65535 & i) + ((1540483477 * (i >>> 16) & 65535) << 16) ^ (r = 1540483477 * (65535 & (r ^= r >>> 24)) + ((1540483477 * (r >>> 16) & 65535) << 16)), n -= 4, ++s;\n switch (n) {\n case 3:\n i ^= (255 & t.charCodeAt(s + 2)) << 16;\n case 2:\n i ^= (255 & t.charCodeAt(s + 1)) << 8;\n case 1:\n i = 1540483477 * (65535 & (i ^= 255 & t.charCodeAt(s))) + ((1540483477 * (i >>> 16) & 65535) << 16);\n }\n return i = 1540483477 * (65535 & (i ^= i >>> 13)) + ((1540483477 * (i >>> 16) & 65535) << 16), (i ^= i >>> 15) >>> 0;\n };\n var Ta = Ia,\n za = Ma.exports;\n Sa.exports = Ta, Sa.exports.murmur3 = Ta, Sa.exports.murmur2 = za;\n var Ba = p(Sa.exports);\n class Ea {\n constructor() {\n this.ids = [], this.positions = [], this.indexed = !1;\n }\n add(t, e, r, n) {\n this.ids.push(Ca(t)), this.positions.push(e, r, n);\n }\n getPositions(t) {\n const e = Ca(t);\n let r = 0,\n n = this.ids.length - 1;\n for (; r < n;) {\n const t = r + n >> 1;\n this.ids[t] >= e ? n = t : r = t + 1;\n }\n const i = [];\n for (; this.ids[r] === e;) i.push({\n index: this.positions[3 * r],\n start: this.positions[3 * r + 1],\n end: this.positions[3 * r + 2]\n }), r++;\n return i;\n }\n static serialize(t, e) {\n const r = new Float64Array(t.ids),\n n = new Uint32Array(t.positions);\n return Pa(r, n, 0, r.length - 1), e && e.push(r.buffer, n.buffer), {\n ids: r,\n positions: n\n };\n }\n static deserialize(t) {\n const e = new Ea();\n return e.ids = t.ids, e.positions = t.positions, e.indexed = !0, e;\n }\n }\n function Ca(t) {\n const e = +t;\n return !isNaN(e) && Number.MIN_SAFE_INTEGER <= e && e <= Number.MAX_SAFE_INTEGER ? e : Ba(String(t));\n }\n function Pa(t, e, r, n) {\n for (; r < n;) {\n const i = t[r + n >> 1];\n let s = r - 1,\n a = n + 1;\n for (;;) {\n do {\n s++;\n } while (t[s] < i);\n do {\n a--;\n } while (t[a] > i);\n if (s >= a) break;\n Da(t, s, a), Da(e, 3 * s, 3 * a), Da(e, 3 * s + 1, 3 * a + 1), Da(e, 3 * s + 2, 3 * a + 2);\n }\n a - r < n - a ? (Pa(t, e, r, a), r = a + 1) : (Pa(t, e, a + 1, n), n = a);\n }\n }\n function Da(t, e, r) {\n const n = t[e];\n t[e] = t[r], t[r] = n;\n }\n Ji(Ea, \"FeaturePositionMap\");\n class Va {\n constructor(t) {\n this.gl = t.gl, this.initialized = !1;\n }\n fetchUniformLocation(t, e) {\n return this.location || this.initialized || (this.location = this.gl.getUniformLocation(t, e), this.initialized = !0), !!this.location;\n }\n }\n class La extends Va {\n constructor(t) {\n super(t), this.current = 0;\n }\n set(t, e, r) {\n this.fetchUniformLocation(t, e) && this.current !== r && (this.current = r, this.gl.uniform1f(this.location, r));\n }\n }\n class Fa extends Va {\n constructor(t) {\n super(t), this.current = [0, 0, 0, 0];\n }\n set(t, e, r) {\n this.fetchUniformLocation(t, e) && (r[0] === this.current[0] && r[1] === this.current[1] && r[2] === this.current[2] && r[3] === this.current[3] || (this.current = r, this.gl.uniform4f(this.location, r[0], r[1], r[2], r[3])));\n }\n }\n class Ra extends Va {\n constructor(t) {\n super(t), this.current = Ee.transparent;\n }\n set(t, e, r) {\n this.fetchUniformLocation(t, e) && (r.r === this.current.r && r.g === this.current.g && r.b === this.current.b && r.a === this.current.a || (this.current = r, this.gl.uniform4f(this.location, r.r, r.g, r.b, r.a)));\n }\n }\n const Ua = new Float32Array(16),\n $a = new Float32Array(9),\n ja = new Float32Array(4);\n function Oa(t) {\n return [Ds(255 * t.r, 255 * t.g), Ds(255 * t.b, 255 * t.a)];\n }\n class qa {\n constructor(t, e, r) {\n this.value = t, this.uniformNames = e.map(t => `u_${t}`), this.type = r;\n }\n setUniform(t, e, r, n, i) {\n e.set(t, i, n.constantOr(this.value));\n }\n getBinding(t, e) {\n return \"color\" === this.type ? new Ra(t) : new La(t);\n }\n }\n class Na {\n constructor(t, e) {\n this.uniformNames = e.map(t => `u_${t}`), this.pattern = null, this.pixelRatio = 1;\n }\n setConstantPatternPositions(t) {\n this.pixelRatio = t.pixelRatio || 1, this.pattern = t.tl.concat(t.br);\n }\n setUniform(t, e, r, n, i) {\n const s = \"u_pattern\" === i || \"u_dash\" === i ? this.pattern : \"u_pixel_ratio\" === i ? this.pixelRatio : null;\n s && e.set(t, i, s);\n }\n getBinding(t, e) {\n return \"u_pattern\" === e || \"u_dash\" === e ? new Fa(t) : new La(t);\n }\n }\n class Ga {\n constructor(t, e, r, n) {\n this.expression = t, this.type = r, this.maxValue = 0, this.paintVertexAttributes = e.map(t => ({\n name: `a_${t}`,\n type: \"Float32\",\n components: \"color\" === r ? 2 : 1,\n offset: 0\n })), this.paintVertexArray = new n();\n }\n populatePaintArray(t, e, r, n, i, s) {\n const a = this.paintVertexArray.length,\n o = this.expression.evaluate(new ws(0), e, {}, i, n, s);\n this.paintVertexArray.resize(t), this._setPaintValue(a, t, o);\n }\n updatePaintArray(t, e, r, n, i) {\n const s = this.expression.evaluate({\n zoom: 0\n }, r, n, void 0, i);\n this._setPaintValue(t, e, s);\n }\n _setPaintValue(t, e, r) {\n if (\"color\" === this.type) {\n const n = Oa(r);\n for (let r = t; r < e; r++) this.paintVertexArray.emplace(r, n[0], n[1]);\n } else {\n for (let n = t; n < e; n++) this.paintVertexArray.emplace(n, r);\n this.maxValue = Math.max(this.maxValue, Math.abs(r));\n }\n }\n upload(t) {\n this.paintVertexArray && this.paintVertexArray.arrayBuffer && (this.paintVertexBuffer && this.paintVertexBuffer.buffer ? this.paintVertexBuffer.updateData(this.paintVertexArray) : this.paintVertexBuffer = t.createVertexBuffer(this.paintVertexArray, this.paintVertexAttributes, this.expression.isStateDependent));\n }\n destroy() {\n this.paintVertexBuffer && this.paintVertexBuffer.destroy();\n }\n }\n class Za {\n constructor(t, e, r, n, i, s) {\n this.expression = t, this.uniformNames = e.map(t => `u_${t}_t`), this.type = r, this.useIntegerZoom = n, this.zoom = i, this.maxValue = 0, this.paintVertexAttributes = e.map(t => ({\n name: `a_${t}`,\n type: \"Float32\",\n components: \"color\" === r ? 4 : 2,\n offset: 0\n })), this.paintVertexArray = new s();\n }\n populatePaintArray(t, e, r, n, i, s) {\n const a = this.expression.evaluate(new ws(this.zoom), e, {}, i, n, s),\n o = this.expression.evaluate(new ws(this.zoom + 1), e, {}, i, n, s),\n l = this.paintVertexArray.length;\n this.paintVertexArray.resize(t), this._setPaintValue(l, t, a, o);\n }\n updatePaintArray(t, e, r, n, i) {\n const s = this.expression.evaluate({\n zoom: this.zoom\n }, r, n, void 0, i),\n a = this.expression.evaluate({\n zoom: this.zoom + 1\n }, r, n, void 0, i);\n this._setPaintValue(t, e, s, a);\n }\n _setPaintValue(t, e, r, n) {\n if (\"color\" === this.type) {\n const i = Oa(r),\n s = Oa(n);\n for (let r = t; r < e; r++) this.paintVertexArray.emplace(r, i[0], i[1], s[0], s[1]);\n } else {\n for (let i = t; i < e; i++) this.paintVertexArray.emplace(i, r, n);\n this.maxValue = Math.max(this.maxValue, Math.abs(r), Math.abs(n));\n }\n }\n upload(t) {\n this.paintVertexArray && this.paintVertexArray.arrayBuffer && (this.paintVertexBuffer && this.paintVertexBuffer.buffer ? this.paintVertexBuffer.updateData(this.paintVertexArray) : this.paintVertexBuffer = t.createVertexBuffer(this.paintVertexArray, this.paintVertexAttributes, this.expression.isStateDependent));\n }\n destroy() {\n this.paintVertexBuffer && this.paintVertexBuffer.destroy();\n }\n setUniform(t, e, r, n, i) {\n const s = this.useIntegerZoom ? Math.floor(r.zoom) : r.zoom,\n a = M(this.expression.interpolationFactor(s, this.zoom, this.zoom + 1), 0, 1);\n e.set(t, i, a);\n }\n getBinding(t, e) {\n return new La(t);\n }\n }\n class Ka {\n constructor(t, e, r, n, i) {\n this.expression = t, this.layerId = i, this.paintVertexAttributes = (\"array\" === r ? Aa : _a).members;\n for (let t = 0; t < e.length; ++t);\n this.paintVertexArray = new n();\n }\n populatePaintArray(t, e, r) {\n const n = this.paintVertexArray.length;\n this.paintVertexArray.resize(t), this._setPaintValues(n, t, e.patterns && e.patterns[this.layerId], r);\n }\n updatePaintArray(t, e, r, n, i, s) {\n this._setPaintValues(t, e, r.patterns && r.patterns[this.layerId], s);\n }\n _setPaintValues(t, e, r, n) {\n if (!n || !r) return;\n const i = n[r];\n if (!i) return;\n const {\n tl: s,\n br: a,\n pixelRatio: o\n } = i;\n for (let r = t; r < e; r++) this.paintVertexArray.emplace(r, s[0], s[1], a[0], a[1], o);\n }\n upload(t) {\n this.paintVertexArray && this.paintVertexArray.arrayBuffer && (this.paintVertexBuffer = t.createVertexBuffer(this.paintVertexArray, this.paintVertexAttributes, this.expression.isStateDependent));\n }\n destroy() {\n this.paintVertexBuffer && this.paintVertexBuffer.destroy();\n }\n }\n class Xa {\n constructor(t, e, r = () => !0) {\n this.binders = {}, this._buffers = [];\n const n = [];\n for (const i in t.paint._values) {\n if (!r(i)) continue;\n const s = t.paint.get(i);\n if (!(s instanceof Ts && Ln(s.property.specification))) continue;\n const a = Ya(i, t.type),\n o = s.value,\n l = s.property.specification.type,\n u = !!s.property.useIntegerZoom,\n c = \"line-dasharray\" === i || i.endsWith(\"pattern\"),\n h = \"line-dasharray\" === i && \"constant\" !== t.layout.get(\"line-cap\").value.kind;\n if (\"constant\" !== o.kind || h) {\n if (\"source\" === o.kind || h || c) {\n const e = to(i, l, \"source\");\n this.binders[i] = c ? new Ka(o, a, l, e, t.id) : new Ga(o, a, l, e), n.push(`/a_${i}`);\n } else {\n const t = to(i, l, \"composite\");\n this.binders[i] = new Za(o, a, l, u, e, t), n.push(`/z_${i}`);\n }\n } else this.binders[i] = c ? new Na(o.value, a) : new qa(o.value, a, l), n.push(`/u_${i}`);\n }\n this.cacheKey = n.sort().join(\"\");\n }\n getMaxValue(t) {\n const e = this.binders[t];\n return e instanceof Ga || e instanceof Za ? e.maxValue : 0;\n }\n populatePaintArrays(t, e, r, n, i, s) {\n for (const a in this.binders) {\n const o = this.binders[a];\n (o instanceof Ga || o instanceof Za || o instanceof Ka) && o.populatePaintArray(t, e, r, n, i, s);\n }\n }\n setConstantPatternPositions(t) {\n for (const e in this.binders) {\n const r = this.binders[e];\n r instanceof Na && r.setConstantPatternPositions(t);\n }\n }\n updatePaintArrays(t, e, r, n, i, s) {\n let a = !1;\n for (const o in t) {\n const l = e.getPositions(o);\n for (const e of l) {\n const l = r.feature(e.index);\n for (const r in this.binders) {\n const u = this.binders[r];\n if ((u instanceof Ga || u instanceof Za || u instanceof Ka) && !0 === u.expression.isStateDependent) {\n const c = n.paint.get(r);\n u.expression = c.value, u.updatePaintArray(e.start, e.end, l, t[o], i, s), a = !0;\n }\n }\n }\n }\n return a;\n }\n defines() {\n const t = [];\n for (const e in this.binders) {\n const r = this.binders[e];\n (r instanceof qa || r instanceof Na) && t.push(...r.uniformNames.map(t => `#define HAS_UNIFORM_${t}`));\n }\n return t;\n }\n getBinderAttributes() {\n const t = [];\n for (const e in this.binders) {\n const r = this.binders[e];\n if (r instanceof Ga || r instanceof Za || r instanceof Ka) for (let e = 0; e < r.paintVertexAttributes.length; e++) t.push(r.paintVertexAttributes[e].name);\n }\n return t;\n }\n getBinderUniforms() {\n const t = [];\n for (const e in this.binders) {\n const r = this.binders[e];\n if (r instanceof qa || r instanceof Na || r instanceof Za) for (const e of r.uniformNames) t.push(e);\n }\n return t;\n }\n getPaintVertexBuffers() {\n return this._buffers;\n }\n getUniforms(t) {\n const e = [];\n for (const r in this.binders) {\n const n = this.binders[r];\n if (n instanceof qa || n instanceof Na || n instanceof Za) for (const i of n.uniformNames) e.push({\n name: i,\n property: r,\n binding: n.getBinding(t, i)\n });\n }\n return e;\n }\n setUniforms(t, e, r, n, i) {\n for (const {\n name: e,\n property: s,\n binding: a\n } of r) this.binders[s].setUniform(t, a, i, n.get(s), e);\n }\n updatePaintBuffers() {\n this._buffers = [];\n for (const t in this.binders) {\n const e = this.binders[t];\n (e instanceof Ga || e instanceof Za || e instanceof Ka) && e.paintVertexBuffer && this._buffers.push(e.paintVertexBuffer);\n }\n }\n upload(t) {\n for (const e in this.binders) {\n const r = this.binders[e];\n (r instanceof Ga || r instanceof Za || r instanceof Ka) && r.upload(t);\n }\n this.updatePaintBuffers();\n }\n destroy() {\n for (const t in this.binders) {\n const e = this.binders[t];\n (e instanceof Ga || e instanceof Za || e instanceof Ka) && e.destroy();\n }\n }\n }\n class Ja {\n constructor(t, e, r = () => !0) {\n this.programConfigurations = {};\n for (const n of t) this.programConfigurations[n.id] = new Xa(n, e, r);\n this.needsUpload = !1, this._featureMap = new Ea(), this._bufferOffset = 0;\n }\n populatePaintArrays(t, e, r, n, i, s, a) {\n for (const r in this.programConfigurations) this.programConfigurations[r].populatePaintArrays(t, e, n, i, s, a);\n void 0 !== e.id && this._featureMap.add(e.id, r, this._bufferOffset, t), this._bufferOffset = t, this.needsUpload = !0;\n }\n updatePaintArrays(t, e, r, n, i) {\n for (const s of r) this.needsUpload = this.programConfigurations[s.id].updatePaintArrays(t, this._featureMap, e, s, n, i) || this.needsUpload;\n }\n get(t) {\n return this.programConfigurations[t];\n }\n upload(t) {\n if (this.needsUpload) {\n for (const e in this.programConfigurations) this.programConfigurations[e].upload(t);\n this.needsUpload = !1;\n }\n }\n destroy() {\n for (const t in this.programConfigurations) this.programConfigurations[t].destroy();\n }\n }\n const Ha = {\n \"text-opacity\": [\"opacity\"],\n \"icon-opacity\": [\"opacity\"],\n \"text-color\": [\"fill_color\"],\n \"icon-color\": [\"fill_color\"],\n \"text-halo-color\": [\"halo_color\"],\n \"icon-halo-color\": [\"halo_color\"],\n \"text-halo-blur\": [\"halo_blur\"],\n \"icon-halo-blur\": [\"halo_blur\"],\n \"text-halo-width\": [\"halo_width\"],\n \"icon-halo-width\": [\"halo_width\"],\n \"line-gap-width\": [\"gapwidth\"],\n \"line-pattern\": [\"pattern\", \"pixel_ratio\"],\n \"fill-pattern\": [\"pattern\", \"pixel_ratio\"],\n \"fill-extrusion-pattern\": [\"pattern\", \"pixel_ratio\"],\n \"line-dasharray\": [\"dash\"]\n };\n function Ya(t, e) {\n return Ha[t] || [t.replace(`${e}-`, \"\").replace(/-/g, \"_\")];\n }\n const Wa = {\n \"line-pattern\": {\n source: Gs,\n composite: Gs\n },\n \"fill-pattern\": {\n source: Gs,\n composite: Gs\n },\n \"fill-extrusion-pattern\": {\n source: Gs,\n composite: Gs\n },\n \"line-dasharray\": {\n source: Zs,\n composite: Zs\n }\n },\n Qa = {\n color: {\n source: ca,\n composite: Ns\n },\n number: {\n source: sa,\n composite: ca\n }\n };\n function to(t, e, r) {\n const n = Wa[t];\n return n && n[r] || Qa[e][r];\n }\n Ji(qa, \"ConstantBinder\"), Ji(Na, \"PatternConstantBinder\"), Ji(Ga, \"SourceExpressionBinder\"), Ji(Ka, \"PatternCompositeBinder\"), Ji(Za, \"CompositeExpressionBinder\"), Ji(Xa, \"ProgramConfiguration\", {\n omit: [\"_buffers\"]\n }), Ji(Ja, \"ProgramConfigurationSet\");\n const eo = \"-transition\";\n class ro extends Qt {\n constructor(t, e) {\n if (super(), this.id = t.id, this.type = t.type, this._featureFilter = {\n filter: () => !0,\n needGeometry: !1,\n needFeature: !1\n }, this._filterCompiled = !1, \"custom\" !== t.type && (this.metadata = t.metadata, this.minzoom = t.minzoom, this.maxzoom = t.maxzoom, \"background\" !== t.type && \"sky\" !== t.type && (this.source = t.source, this.sourceLayer = t[\"source-layer\"], this.filter = t.filter), e.layout && (this._unevaluatedLayout = new Ms(e.layout)), e.paint)) {\n this._transitionablePaint = new Ss(e.paint);\n for (const e in t.paint) this.setPaintProperty(e, t.paint[e], {\n validate: !1\n });\n for (const e in t.layout) this.setLayoutProperty(e, t.layout[e], {\n validate: !1\n });\n this._transitioningPaint = this._transitionablePaint.untransitioned(), this.paint = new zs(e.paint);\n }\n }\n getLayoutProperty(t) {\n return \"visibility\" === t ? this.visibility : this._unevaluatedLayout.getValue(t);\n }\n setLayoutProperty(t, e, r = {}) {\n null != e && this._validate(ji, `layers.${this.id}.layout.${t}`, t, e, r) || (\"visibility\" !== t ? this._unevaluatedLayout.setValue(t, e) : this.visibility = e);\n }\n getPaintProperty(t) {\n return U(t, eo) ? this._transitionablePaint.getTransition(t.slice(0, -11)) : this._transitionablePaint.getValue(t);\n }\n setPaintProperty(t, e, r = {}) {\n if (null != e && this._validate($i, `layers.${this.id}.paint.${t}`, t, e, r)) return !1;\n if (U(t, eo)) return this._transitionablePaint.setTransition(t.slice(0, -11), e || void 0), !1;\n {\n const r = this._transitionablePaint._values[t],\n n = r.value.isDataDriven(),\n i = r.value;\n this._transitionablePaint.setValue(t, e), this._handleSpecialPaintPropertyUpdate(t);\n const s = this._transitionablePaint._values[t].value,\n a = s.isDataDriven(),\n o = U(t, \"pattern\") || \"line-dasharray\" === t;\n return a || n || o || this._handleOverridablePaintPropertyUpdate(t, i, s);\n }\n }\n _handleSpecialPaintPropertyUpdate(t) {}\n getProgramIds() {\n return null;\n }\n getProgramConfiguration(t) {\n return null;\n }\n _handleOverridablePaintPropertyUpdate(t, e, r) {\n return !1;\n }\n isHidden(t) {\n return !!(this.minzoom && t < this.minzoom) || !!(this.maxzoom && t >= this.maxzoom) || \"none\" === this.visibility;\n }\n updateTransitions(t) {\n this._transitioningPaint = this._transitionablePaint.transitioned(t, this._transitioningPaint);\n }\n hasTransition() {\n return this._transitioningPaint.hasTransition();\n }\n recalculate(t, e) {\n this._unevaluatedLayout && (this.layout = this._unevaluatedLayout.possiblyEvaluate(t, void 0, e)), this.paint = this._transitioningPaint.possiblyEvaluate(t, void 0, e);\n }\n serialize() {\n const t = {\n id: this.id,\n type: this.type,\n source: this.source,\n \"source-layer\": this.sourceLayer,\n metadata: this.metadata,\n minzoom: this.minzoom,\n maxzoom: this.maxzoom,\n filter: this.filter,\n layout: this._unevaluatedLayout && this._unevaluatedLayout.serialize(),\n paint: this._transitionablePaint && this._transitionablePaint.serialize()\n };\n return this.visibility && (t.layout = t.layout || {}, t.layout.visibility = this.visibility), j(t, (t, e) => !(void 0 === t || \"layout\" === e && !Object.keys(t).length || \"paint\" === e && !Object.keys(t).length));\n }\n _validate(t, e, r, n, i = {}) {\n return (!i || !1 !== i.validate) && qi(this, t.call(Ui, {\n key: e,\n layerType: this.type,\n objectKey: r,\n value: n,\n styleSpec: te,\n style: {\n glyphs: !0,\n sprite: !0\n }\n }));\n }\n is3D() {\n return !1;\n }\n isSky() {\n return !1;\n }\n isTileClipped() {\n return !1;\n }\n hasOffscreenPass() {\n return !1;\n }\n resize() {}\n isStateDependent() {\n for (const t in this.paint._values) {\n const e = this.paint.get(t);\n if (e instanceof Ts && Ln(e.property.specification) && (\"source\" === e.value.kind || \"composite\" === e.value.kind) && e.value.isStateDependent) return !0;\n }\n return !1;\n }\n compileFilter() {\n this._filterCompiled || (this._featureFilter = hi(this.filter), this._filterCompiled = !0);\n }\n invalidateCompiledFilter() {\n this._filterCompiled = !1;\n }\n dynamicFilter() {\n return this._featureFilter.dynamicFilter;\n }\n dynamicFilterNeedsFeature() {\n return this._featureFilter.needFeature;\n }\n }\n const no = Rs([{\n name: \"a_pos\",\n components: 2,\n type: \"Int16\"\n }], 4),\n io = Rs([{\n name: \"a_pos_3\",\n components: 3,\n type: \"Int16\"\n }, {\n name: \"a_pos_normal_3\",\n components: 3,\n type: \"Int16\"\n }]);\n class so {\n constructor(t = []) {\n this.segments = t;\n }\n prepareSegment(t, e, r, n) {\n let i = this.segments[this.segments.length - 1];\n return t > so.MAX_VERTEX_ARRAY_LENGTH && N(`Max vertices per segment is ${so.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${t}`), (!i || i.vertexLength + t > so.MAX_VERTEX_ARRAY_LENGTH || i.sortKey !== n) && (i = {\n vertexOffset: e.length,\n primitiveOffset: r.length,\n vertexLength: 0,\n primitiveLength: 0\n }, void 0 !== n && (i.sortKey = n), this.segments.push(i)), i;\n }\n get() {\n return this.segments;\n }\n destroy() {\n for (const t of this.segments) for (const e in t.vaos) t.vaos[e].destroy();\n }\n static simpleSegment(t, e, r, n) {\n return new so([{\n vertexOffset: t,\n primitiveOffset: e,\n vertexLength: r,\n primitiveLength: n,\n vaos: {},\n sortKey: 0\n }]);\n }\n }\n so.MAX_VERTEX_ARRAY_LENGTH = Math.pow(2, 16) - 1, Ji(so, \"SegmentVector\");\n var ao = 8192;\n class oo {\n constructor(t, e) {\n t && (e ? this.setSouthWest(t).setNorthEast(e) : 4 === t.length ? this.setSouthWest([t[0], t[1]]).setNorthEast([t[2], t[3]]) : this.setSouthWest(t[0]).setNorthEast(t[1]));\n }\n setNorthEast(t) {\n return this._ne = t instanceof Ol ? new Ol(t.lng, t.lat) : Ol.convert(t), this;\n }\n setSouthWest(t) {\n return this._sw = t instanceof Ol ? new Ol(t.lng, t.lat) : Ol.convert(t), this;\n }\n extend(t) {\n const e = this._sw,\n r = this._ne;\n let n, i;\n if (t instanceof Ol) n = t, i = t;else {\n if (!(t instanceof oo)) return Array.isArray(t) ? 4 === t.length || t.every(Array.isArray) ? this.extend(oo.convert(t)) : this.extend(Ol.convert(t)) : \"object\" == typeof t && null !== t && t.hasOwnProperty(\"lat\") && (t.hasOwnProperty(\"lon\") || t.hasOwnProperty(\"lng\")) ? this.extend(Ol.convert(t)) : this;\n if (n = t._sw, i = t._ne, !n || !i) return this;\n }\n return e || r ? (e.lng = Math.min(n.lng, e.lng), e.lat = Math.min(n.lat, e.lat), r.lng = Math.max(i.lng, r.lng), r.lat = Math.max(i.lat, r.lat)) : (this._sw = new Ol(n.lng, n.lat), this._ne = new Ol(i.lng, i.lat)), this;\n }\n getCenter() {\n return new Ol((this._sw.lng + this._ne.lng) / 2, (this._sw.lat + this._ne.lat) / 2);\n }\n getSouthWest() {\n return this._sw;\n }\n getNorthEast() {\n return this._ne;\n }\n getNorthWest() {\n return new Ol(this.getWest(), this.getNorth());\n }\n getSouthEast() {\n return new Ol(this.getEast(), this.getSouth());\n }\n getWest() {\n return this._sw.lng;\n }\n getSouth() {\n return this._sw.lat;\n }\n getEast() {\n return this._ne.lng;\n }\n getNorth() {\n return this._ne.lat;\n }\n toArray() {\n return [this._sw.toArray(), this._ne.toArray()];\n }\n toString() {\n return `LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`;\n }\n isEmpty() {\n return !(this._sw && this._ne);\n }\n contains(t) {\n const {\n lng: e,\n lat: r\n } = Ol.convert(t);\n let n = this._sw.lng <= e && e <= this._ne.lng;\n return this._sw.lng > this._ne.lng && (n = this._sw.lng >= e && e >= this._ne.lng), this._sw.lat <= r && r <= this._ne.lat && n;\n }\n static convert(t) {\n return !t || t instanceof oo ? t : new oo(t);\n }\n }\n var lo = 1e-6,\n uo = \"undefined\" != typeof Float32Array ? Float32Array : Array;\n function co() {\n var t = new uo(9);\n return uo != Float32Array && (t[1] = 0, t[2] = 0, t[3] = 0, t[5] = 0, t[6] = 0, t[7] = 0), t[0] = 1, t[4] = 1, t[8] = 1, t;\n }\n function ho(t, e, r) {\n var n = e[0],\n i = e[1],\n s = e[2],\n a = e[3],\n o = e[4],\n l = e[5],\n u = e[6],\n c = e[7],\n h = e[8],\n p = r[0],\n d = r[1],\n f = r[2],\n y = r[3],\n m = r[4],\n g = r[5],\n x = r[6],\n v = r[7],\n b = r[8];\n return t[0] = p * n + d * a + f * u, t[1] = p * i + d * o + f * c, t[2] = p * s + d * l + f * h, t[3] = y * n + m * a + g * u, t[4] = y * i + m * o + g * c, t[5] = y * s + m * l + g * h, t[6] = x * n + v * a + b * u, t[7] = x * i + v * o + b * c, t[8] = x * s + v * l + b * h, t;\n }\n function po(t) {\n return t[0] = 1, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = 1, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[10] = 1, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, t;\n }\n function fo(t, e) {\n var r = e[0],\n n = e[1],\n i = e[2],\n s = e[3],\n a = e[4],\n o = e[5],\n l = e[6],\n u = e[7],\n c = e[8],\n h = e[9],\n p = e[10],\n d = e[11],\n f = e[12],\n y = e[13],\n m = e[14],\n g = e[15],\n x = r * o - n * a,\n v = r * l - i * a,\n b = r * u - s * a,\n w = n * l - i * o,\n _ = n * u - s * o,\n A = i * u - s * l,\n S = c * y - h * f,\n k = c * m - p * f,\n I = c * g - d * f,\n M = h * m - p * y,\n T = h * g - d * y,\n z = p * g - d * m,\n B = x * z - v * T + b * M + w * I - _ * k + A * S;\n return B ? (t[0] = (o * z - l * T + u * M) * (B = 1 / B), t[1] = (i * T - n * z - s * M) * B, t[2] = (y * A - m * _ + g * w) * B, t[3] = (p * _ - h * A - d * w) * B, t[4] = (l * I - a * z - u * k) * B, t[5] = (r * z - i * I + s * k) * B, t[6] = (m * b - f * A - g * v) * B, t[7] = (c * A - p * b + d * v) * B, t[8] = (a * T - o * I + u * S) * B, t[9] = (n * I - r * T - s * S) * B, t[10] = (f * _ - y * b + g * x) * B, t[11] = (h * b - c * _ - d * x) * B, t[12] = (o * k - a * M - l * S) * B, t[13] = (r * M - n * k + i * S) * B, t[14] = (y * v - f * w - m * x) * B, t[15] = (c * w - h * v + p * x) * B, t) : null;\n }\n function yo(t, e, r) {\n var n = e[0],\n i = e[1],\n s = e[2],\n a = e[3],\n o = e[4],\n l = e[5],\n u = e[6],\n c = e[7],\n h = e[8],\n p = e[9],\n d = e[10],\n f = e[11],\n y = e[12],\n m = e[13],\n g = e[14],\n x = e[15],\n v = r[0],\n b = r[1],\n w = r[2],\n _ = r[3];\n return t[0] = v * n + b * o + w * h + _ * y, t[1] = v * i + b * l + w * p + _ * m, t[2] = v * s + b * u + w * d + _ * g, t[3] = v * a + b * c + w * f + _ * x, t[4] = (v = r[4]) * n + (b = r[5]) * o + (w = r[6]) * h + (_ = r[7]) * y, t[5] = v * i + b * l + w * p + _ * m, t[6] = v * s + b * u + w * d + _ * g, t[7] = v * a + b * c + w * f + _ * x, t[8] = (v = r[8]) * n + (b = r[9]) * o + (w = r[10]) * h + (_ = r[11]) * y, t[9] = v * i + b * l + w * p + _ * m, t[10] = v * s + b * u + w * d + _ * g, t[11] = v * a + b * c + w * f + _ * x, t[12] = (v = r[12]) * n + (b = r[13]) * o + (w = r[14]) * h + (_ = r[15]) * y, t[13] = v * i + b * l + w * p + _ * m, t[14] = v * s + b * u + w * d + _ * g, t[15] = v * a + b * c + w * f + _ * x, t;\n }\n function mo(t, e, r) {\n var n,\n i,\n s,\n a,\n o,\n l,\n u,\n c,\n h,\n p,\n d,\n f,\n y = r[0],\n m = r[1],\n g = r[2];\n return e === t ? (t[12] = e[0] * y + e[4] * m + e[8] * g + e[12], t[13] = e[1] * y + e[5] * m + e[9] * g + e[13], t[14] = e[2] * y + e[6] * m + e[10] * g + e[14], t[15] = e[3] * y + e[7] * m + e[11] * g + e[15]) : (i = e[1], s = e[2], a = e[3], o = e[4], l = e[5], u = e[6], c = e[7], h = e[8], p = e[9], d = e[10], f = e[11], t[0] = n = e[0], t[1] = i, t[2] = s, t[3] = a, t[4] = o, t[5] = l, t[6] = u, t[7] = c, t[8] = h, t[9] = p, t[10] = d, t[11] = f, t[12] = n * y + o * m + h * g + e[12], t[13] = i * y + l * m + p * g + e[13], t[14] = s * y + u * m + d * g + e[14], t[15] = a * y + c * m + f * g + e[15]), t;\n }\n function go(t, e, r) {\n var n = r[0],\n i = r[1],\n s = r[2];\n return t[0] = e[0] * n, t[1] = e[1] * n, t[2] = e[2] * n, t[3] = e[3] * n, t[4] = e[4] * i, t[5] = e[5] * i, t[6] = e[6] * i, t[7] = e[7] * i, t[8] = e[8] * s, t[9] = e[9] * s, t[10] = e[10] * s, t[11] = e[11] * s, t[12] = e[12], t[13] = e[13], t[14] = e[14], t[15] = e[15], t;\n }\n function xo(t, e, r) {\n var n = Math.sin(r),\n i = Math.cos(r),\n s = e[4],\n a = e[5],\n o = e[6],\n l = e[7],\n u = e[8],\n c = e[9],\n h = e[10],\n p = e[11];\n return e !== t && (t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[3], t[12] = e[12], t[13] = e[13], t[14] = e[14], t[15] = e[15]), t[4] = s * i + u * n, t[5] = a * i + c * n, t[6] = o * i + h * n, t[7] = l * i + p * n, t[8] = u * i - s * n, t[9] = c * i - a * n, t[10] = h * i - o * n, t[11] = p * i - l * n, t;\n }\n function vo(t, e, r) {\n var n = Math.sin(r),\n i = Math.cos(r),\n s = e[0],\n a = e[1],\n o = e[2],\n l = e[3],\n u = e[8],\n c = e[9],\n h = e[10],\n p = e[11];\n return e !== t && (t[4] = e[4], t[5] = e[5], t[6] = e[6], t[7] = e[7], t[12] = e[12], t[13] = e[13], t[14] = e[14], t[15] = e[15]), t[0] = s * i - u * n, t[1] = a * i - c * n, t[2] = o * i - h * n, t[3] = l * i - p * n, t[8] = s * n + u * i, t[9] = a * n + c * i, t[10] = o * n + h * i, t[11] = l * n + p * i, t;\n }\n function bo(t, e) {\n return t[0] = e[0], t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = e[1], t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[10] = e[2], t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, t;\n }\n function wo(t, e, r) {\n var n,\n i,\n s,\n a = r[0],\n o = r[1],\n l = r[2],\n u = Math.hypot(a, o, l);\n return u < lo ? null : (a *= u = 1 / u, o *= u, l *= u, n = Math.sin(e), i = Math.cos(e), t[0] = a * a * (s = 1 - i) + i, t[1] = o * a * s + l * n, t[2] = l * a * s - o * n, t[3] = 0, t[4] = a * o * s - l * n, t[5] = o * o * s + i, t[6] = l * o * s + a * n, t[7] = 0, t[8] = a * l * s + o * n, t[9] = o * l * s - a * n, t[10] = l * l * s + i, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, t);\n }\n Math.hypot || (Math.hypot = function () {\n for (var t = 0, e = arguments.length; e--;) t += arguments[e] * arguments[e];\n return Math.sqrt(t);\n });\n var _o = yo;\n function Ao() {\n var t = new uo(3);\n return uo != Float32Array && (t[0] = 0, t[1] = 0, t[2] = 0), t;\n }\n function So(t) {\n var e = new uo(3);\n return e[0] = t[0], e[1] = t[1], e[2] = t[2], e;\n }\n function ko(t) {\n return Math.hypot(t[0], t[1], t[2]);\n }\n function Io(t, e, r) {\n var n = new uo(3);\n return n[0] = t, n[1] = e, n[2] = r, n;\n }\n function Mo(t, e, r) {\n return t[0] = e[0] + r[0], t[1] = e[1] + r[1], t[2] = e[2] + r[2], t;\n }\n function To(t, e, r) {\n return t[0] = e[0] - r[0], t[1] = e[1] - r[1], t[2] = e[2] - r[2], t;\n }\n function zo(t, e, r) {\n return t[0] = e[0] * r[0], t[1] = e[1] * r[1], t[2] = e[2] * r[2], t;\n }\n function Bo(t, e, r) {\n return t[0] = Math.min(e[0], r[0]), t[1] = Math.min(e[1], r[1]), t[2] = Math.min(e[2], r[2]), t;\n }\n function Eo(t, e, r) {\n return t[0] = Math.max(e[0], r[0]), t[1] = Math.max(e[1], r[1]), t[2] = Math.max(e[2], r[2]), t;\n }\n function Co(t, e, r) {\n return t[0] = e[0] * r, t[1] = e[1] * r, t[2] = e[2] * r, t;\n }\n function Po(t, e, r, n) {\n return t[0] = e[0] + r[0] * n, t[1] = e[1] + r[1] * n, t[2] = e[2] + r[2] * n, t;\n }\n function Do(t, e) {\n var r = e[0],\n n = e[1],\n i = e[2],\n s = r * r + n * n + i * i;\n return s > 0 && (s = 1 / Math.sqrt(s)), t[0] = e[0] * s, t[1] = e[1] * s, t[2] = e[2] * s, t;\n }\n function Vo(t, e) {\n return t[0] * e[0] + t[1] * e[1] + t[2] * e[2];\n }\n function Lo(t, e, r) {\n var n = e[0],\n i = e[1],\n s = e[2],\n a = r[0],\n o = r[1],\n l = r[2];\n return t[0] = i * l - s * o, t[1] = s * a - n * l, t[2] = n * o - i * a, t;\n }\n function Fo(t, e, r) {\n var n = e[0],\n i = e[1],\n s = e[2],\n a = r[3] * n + r[7] * i + r[11] * s + r[15];\n return t[0] = (r[0] * n + r[4] * i + r[8] * s + r[12]) / (a = a || 1), t[1] = (r[1] * n + r[5] * i + r[9] * s + r[13]) / a, t[2] = (r[2] * n + r[6] * i + r[10] * s + r[14]) / a, t;\n }\n function Ro(t, e, r) {\n var n = r[0],\n i = r[1],\n s = r[2],\n a = e[0],\n o = e[1],\n l = e[2],\n u = i * l - s * o,\n c = s * a - n * l,\n h = n * o - i * a,\n p = i * h - s * c,\n d = s * u - n * h,\n f = n * c - i * u,\n y = 2 * r[3];\n return c *= y, h *= y, d *= 2, f *= 2, t[0] = a + (u *= y) + (p *= 2), t[1] = o + c + d, t[2] = l + h + f, t;\n }\n var Uo,\n $o = To,\n jo = zo,\n Oo = ko;\n function qo(t, e, r) {\n return t[0] = e[0] * r, t[1] = e[1] * r, t[2] = e[2] * r, t[3] = e[3] * r, t;\n }\n function No(t, e) {\n var r = e[0],\n n = e[1],\n i = e[2],\n s = e[3],\n a = r * r + n * n + i * i + s * s;\n return a > 0 && (a = 1 / Math.sqrt(a)), t[0] = r * a, t[1] = n * a, t[2] = i * a, t[3] = s * a, t;\n }\n function Go(t, e, r) {\n var n = e[0],\n i = e[1],\n s = e[2],\n a = e[3];\n return t[0] = r[0] * n + r[4] * i + r[8] * s + r[12] * a, t[1] = r[1] * n + r[5] * i + r[9] * s + r[13] * a, t[2] = r[2] * n + r[6] * i + r[10] * s + r[14] * a, t[3] = r[3] * n + r[7] * i + r[11] * s + r[15] * a, t;\n }\n function Zo() {\n var t = new uo(4);\n return uo != Float32Array && (t[0] = 0, t[1] = 0, t[2] = 0), t[3] = 1, t;\n }\n function Ko(t) {\n return t[0] = 0, t[1] = 0, t[2] = 0, t[3] = 1, t;\n }\n function Xo(t, e, r) {\n r *= .5;\n var n = e[0],\n i = e[1],\n s = e[2],\n a = e[3],\n o = Math.sin(r),\n l = Math.cos(r);\n return t[0] = n * l + a * o, t[1] = i * l + s * o, t[2] = s * l - i * o, t[3] = a * l - n * o, t;\n }\n function Jo(t, e, r) {\n r *= .5;\n var n = e[0],\n i = e[1],\n s = e[2],\n a = e[3],\n o = Math.sin(r),\n l = Math.cos(r);\n return t[0] = n * l - s * o, t[1] = i * l + a * o, t[2] = s * l + n * o, t[3] = a * l - i * o, t;\n }\n Ao(), Uo = new uo(4), uo != Float32Array && (Uo[0] = 0, Uo[1] = 0, Uo[2] = 0, Uo[3] = 0);\n var Ho = No;\n Ao(), Io(1, 0, 0), Io(0, 1, 0), Zo(), Zo(), co();\n const Yo = Rs([{\n type: \"Float32\",\n name: \"a_globe_pos\",\n components: 3\n }, {\n type: \"Float32\",\n name: \"a_uv\",\n components: 2\n }]),\n {\n members: Wo\n } = Yo,\n Qo = Rs([{\n name: \"a_pos_3\",\n components: 3,\n type: \"Int16\"\n }]);\n var tl = Rs([{\n name: \"a_pos\",\n type: \"Int16\",\n components: 2\n }]);\n class el {\n constructor(t, e) {\n this.pos = t, this.dir = e;\n }\n intersectsPlane(t, e, r) {\n const n = Vo(e, this.dir);\n if (Math.abs(n) < 1e-6) return !1;\n const i = ((t[0] - this.pos[0]) * e[0] + (t[1] - this.pos[1]) * e[1] + (t[2] - this.pos[2]) * e[2]) / n;\n return r[0] = this.pos[0] + this.dir[0] * i, r[1] = this.pos[1] + this.dir[1] * i, r[2] = this.pos[2] + this.dir[2] * i, !0;\n }\n closestPointOnSphere(t, e, r) {\n if (function (t, e) {\n var r = t[0],\n n = t[1],\n i = t[2],\n s = e[0],\n a = e[1],\n o = e[2];\n return Math.abs(r - s) <= lo * Math.max(1, Math.abs(r), Math.abs(s)) && Math.abs(n - a) <= lo * Math.max(1, Math.abs(n), Math.abs(a)) && Math.abs(i - o) <= lo * Math.max(1, Math.abs(i), Math.abs(o));\n }(this.pos, t) || 0 === e) return r[0] = r[1] = r[2] = 0, !1;\n const [n, i, s] = this.dir,\n a = this.pos[0] - t[0],\n o = this.pos[1] - t[1],\n l = this.pos[2] - t[2],\n u = n * n + i * i + s * s,\n c = 2 * (a * n + o * i + l * s),\n h = c * c - 4 * u * (a * a + o * o + l * l - e * e);\n if (h < 0) {\n const t = Math.max(-c / 2, 0),\n u = a + n * t,\n h = o + i * t,\n p = l + s * t,\n d = Math.hypot(u, h, p);\n return r[0] = u * e / d, r[1] = h * e / d, r[2] = p * e / d, !1;\n }\n {\n const t = (-c - Math.sqrt(h)) / (2 * u);\n if (t < 0) {\n const t = Math.hypot(a, o, l);\n return r[0] = a * e / t, r[1] = o * e / t, r[2] = l * e / t, !1;\n }\n return r[0] = a + n * t, r[1] = o + i * t, r[2] = l + s * t, !0;\n }\n }\n }\n class rl {\n constructor(t, e, r, n, i) {\n this.TL = t, this.TR = e, this.BR = r, this.BL = n, this.horizon = i;\n }\n static fromInvProjectionMatrix(t, e, r) {\n const n = [-1, 1, 1],\n i = [1, 1, 1],\n s = [1, -1, 1],\n a = [-1, -1, 1],\n o = Fo(n, n, t),\n l = Fo(i, i, t),\n u = Fo(s, s, t),\n c = Fo(a, a, t);\n return new rl(o, l, u, c, e / r);\n }\n }\n class nl {\n constructor(t, e) {\n this.points = t, this.planes = e;\n }\n static fromInvProjectionMatrix(t, e, r, n) {\n const i = Math.pow(2, r),\n s = [[-1, 1, -1, 1], [1, 1, -1, 1], [1, -1, -1, 1], [-1, -1, -1, 1], [-1, 1, 1, 1], [1, 1, 1, 1], [1, -1, 1, 1], [-1, -1, 1, 1]].map(r => {\n const s = Go([], r, t),\n a = 1 / s[3] / e * i;\n return function (t, e, r) {\n return t[0] = e[0] * r[0], t[1] = e[1] * r[1], t[2] = e[2] * r[2], t[3] = e[3] * r[3], t;\n }(s, s, [a, a, n ? 1 / s[3] : a, a]);\n }),\n a = [[0, 1, 2], [6, 5, 4], [0, 3, 7], [2, 1, 5], [3, 2, 6], [0, 4, 5]].map(t => {\n const e = Do([], Lo([], $o([], s[t[0]], s[t[1]]), $o([], s[t[2]], s[t[1]]))),\n r = -Vo(e, s[t[1]]);\n return e.concat(r);\n });\n return new nl(s, a);\n }\n }\n class il {\n static fromPoints(t) {\n const e = [1 / 0, 1 / 0, 1 / 0],\n r = [-1 / 0, -1 / 0, -1 / 0];\n for (const n of t) Bo(e, e, n), Eo(r, r, n);\n return new il(e, r);\n }\n static applyTransform(t, e) {\n const r = t.getCorners();\n for (let t = 0; t < r.length; ++t) Fo(r[t], r[t], e);\n return il.fromPoints(r);\n }\n constructor(t, e) {\n this.min = t, this.max = e, this.center = Co([], Mo([], this.min, this.max), .5);\n }\n quadrant(t) {\n const e = [t % 2 == 0, t < 2],\n r = So(this.min),\n n = So(this.max);\n for (let t = 0; t < e.length; t++) r[t] = e[t] ? this.min[t] : this.center[t], n[t] = e[t] ? this.center[t] : this.max[t];\n return n[2] = this.max[2], new il(r, n);\n }\n distanceX(t) {\n return Math.max(Math.min(this.max[0], t[0]), this.min[0]) - t[0];\n }\n distanceY(t) {\n return Math.max(Math.min(this.max[1], t[1]), this.min[1]) - t[1];\n }\n distanceZ(t) {\n return Math.max(Math.min(this.max[2], t[2]), this.min[2]) - t[2];\n }\n getCorners() {\n const t = this.min,\n e = this.max;\n return [[t[0], t[1], t[2]], [e[0], t[1], t[2]], [e[0], e[1], t[2]], [t[0], e[1], t[2]], [t[0], t[1], e[2]], [e[0], t[1], e[2]], [e[0], e[1], e[2]], [t[0], e[1], e[2]]];\n }\n intersects(t) {\n const e = this.getCorners();\n let r = !0;\n for (let n = 0; n < t.planes.length; n++) {\n const i = t.planes[n];\n let s = 0;\n for (let t = 0; t < e.length; t++) s += Vo(i, e[t]) + i[3] >= 0;\n if (0 === s) return 0;\n s !== e.length && (r = !1);\n }\n if (r) return 2;\n for (let e = 0; e < 3; e++) {\n let r = Number.MAX_VALUE,\n n = -Number.MAX_VALUE;\n for (let i = 0; i < t.points.length; i++) {\n const s = t.points[i][e] - this.min[e];\n r = Math.min(r, s), n = Math.max(n, s);\n }\n if (n < 0 || r > this.max[e] - this.min[e]) return 0;\n }\n return 1;\n }\n }\n const sl = 5,\n al = 6,\n ol = ao / Math.PI / 2,\n ll = 16383,\n ul = 64,\n cl = [ul, 32, 16],\n hl = -ol,\n pl = ol,\n dl = [new il([hl, hl, hl], [pl, pl, pl]), new il([hl, hl, hl], [0, 0, pl]), new il([0, hl, hl], [pl, 0, pl]), new il([hl, 0, hl], [0, pl, pl]), new il([0, 0, hl], [pl, pl, pl])];\n function fl(t) {\n return t * ol / Ul;\n }\n function yl(t, e, r, n = !0) {\n const i = Co([], t._camera.position, t.worldSize),\n s = [e, r, 1, 1];\n Go(s, s, t.pixelMatrixInverse), qo(s, s, 1 / s[3]);\n const a = Do([], $o([], s, i)),\n o = t.globeMatrix,\n l = [o[12], o[13], o[14]],\n u = $o([], l, i),\n c = ko(u),\n h = Do([], u),\n p = t.worldSize / (2 * Math.PI),\n d = Vo(h, a),\n f = Math.asin(p / c);\n if (f < Math.acos(d)) {\n if (!n) return null;\n const t = [],\n e = [];\n Co(t, a, c / d), Do(e, $o(e, t, u)), Do(a, Mo(a, u, Co(a, e, Math.tan(f) * c)));\n }\n const y = [];\n new el(i, a).closestPointOnSphere(l, p, y);\n const m = Do([], W(o, 0)),\n g = Do([], W(o, 1)),\n x = Do([], W(o, 2)),\n v = Vo(m, y),\n b = Vo(g, y),\n w = Vo(x, y),\n A = _(Math.asin(-b / p));\n let S = _(Math.atan2(v, w));\n S = t.center.lng + function (t, e) {\n const r = (e - t + 180) % 360 - 180;\n return r < -180 ? r + 360 : r;\n }(t.center.lng, S);\n const k = Nl(S),\n I = M(Gl(A), 0, 1);\n return new Wl(k, I);\n }\n class ml {\n constructor(t, e, r) {\n this.a = $o([], t, r), this.b = $o([], e, r), this.center = r;\n const n = Do([], this.a),\n i = Do([], this.b);\n this.angle = Math.acos(Vo(n, i));\n }\n }\n function gl(t, e) {\n if (0 === t.angle) return null;\n let r;\n return r = 0 === t.a[e] ? 1 / t.angle * .5 * Math.PI : 1 / t.angle * Math.atan(t.b[e] / t.a[e] / Math.sin(t.angle) - 1 / Math.tan(t.angle)), r < 0 || r > 1 ? null : function (t, e, r, n) {\n const i = Math.sin(r);\n return t * (Math.sin((1 - n) * r) / i) + e * (Math.sin(n * r) / i);\n }(t.a[e], t.b[e], t.angle, M(r, 0, 1)) + t.center[e];\n }\n function xl(t) {\n if (t.z <= 1) return dl[t.z + 2 * t.y + t.x];\n const e = Sl(Al(t));\n return il.fromPoints(e);\n }\n function vl(t, e, r) {\n return Co(t, t, 1 - r), Po(t, t, e, r);\n }\n function bl(t, e) {\n const r = Pl(e.zoom);\n if (0 === r) return xl(t);\n const n = Al(t),\n i = Sl(n),\n s = Nl(n.getWest()) * e.worldSize,\n a = Nl(n.getEast()) * e.worldSize,\n o = Gl(n.getNorth()) * e.worldSize,\n l = Gl(n.getSouth()) * e.worldSize,\n u = [s, o, 0],\n c = [a, o, 0],\n h = [s, l, 0],\n p = [a, l, 0],\n d = fo([], e.globeMatrix);\n return Fo(u, u, d), Fo(c, c, d), Fo(h, h, d), Fo(p, p, d), i[0] = vl(i[0], h, r), i[1] = vl(i[1], p, r), i[2] = vl(i[2], c, r), i[3] = vl(i[3], u, r), il.fromPoints(i);\n }\n function wl(t, e, r) {\n for (const n of t) Fo(n, n, e), Co(n, n, r);\n }\n function _l(t, e, r) {\n const n = e / t.worldSize,\n i = t.globeMatrix;\n if (r.z <= 1) {\n const t = xl(r).getCorners();\n return wl(t, i, n), il.fromPoints(t);\n }\n const s = Al(r),\n a = Sl(s);\n wl(a, i, n);\n const o = Number.MAX_VALUE,\n l = [-o, -o, -o],\n u = [o, o, o];\n if (s.contains(t.center)) {\n for (const t of a) Bo(u, u, t), Eo(l, l, t);\n l[2] = 0;\n const e = t.point,\n r = [e.x * n, e.y * n, 0];\n return Bo(u, u, r), Eo(l, l, r), new il(u, l);\n }\n const c = [i[12] * n, i[13] * n, i[14] * n],\n h = s.getCenter(),\n p = M(t.center.lat, -Hl, Hl),\n d = M(h.lat, -Hl, Hl),\n f = Nl(t.center.lng),\n y = Gl(p);\n let m = f - Nl(h.lng);\n const g = y - Gl(d);\n m > .5 ? m -= 1 : m < -.5 && (m += 1);\n let x = 0;\n Math.abs(m) > Math.abs(g) ? x = m >= 0 ? 1 : 3 : (x = g >= 0 ? 0 : 2, Po(c, c, [i[4] * n, i[5] * n, i[6] * n], -Math.sin(w(g >= 0 ? s.getSouth() : s.getNorth())) * ol));\n const v = a[x],\n b = a[(x + 1) % 4],\n _ = new ml(v, b, c),\n A = [gl(_, 0) || v[0], gl(_, 1) || v[1], gl(_, 2) || v[2]],\n S = Pl(t.zoom);\n if (S > 0) {\n const n = function ({\n x: t,\n y: e,\n z: r\n }, n, i, s, a) {\n const o = 1 / (1 << r);\n let l = t * o,\n u = l + o,\n c = e * o,\n h = c + o,\n p = 0;\n const d = (l + u) / 2 - s;\n return d > .5 ? p = -1 : d < -.5 && (p = 1), l = ((l + p) * n - (s *= n)) * i + s, u = ((u + p) * n - s) * i + s, c = (c * n - (a *= n)) * i + a, h = (h * n - a) * i + a, [[l, h, 0], [u, h, 0], [u, c, 0], [l, c, 0]];\n }(r, e, t._pixelsPerMercatorPixel, f, y);\n for (let t = 0; t < a.length; t++) vl(a[t], n[t], S);\n const i = Mo([], n[x], n[(x + 1) % 4]);\n Co(i, i, .5), vl(A, i, S);\n }\n for (const t of a) Bo(u, u, t), Eo(l, l, t);\n return u[2] = Math.min(v[2], b[2]), Bo(u, u, A), Eo(l, l, A), new il(u, l);\n }\n function Al({\n x: t,\n y: e,\n z: r\n }) {\n const n = 1 / (1 << r),\n i = new Ol(Kl(t * n), Xl((e + 1) * n)),\n s = new Ol(Kl((t + 1) * n), Xl(e * n));\n return new oo(i, s);\n }\n function Sl(t) {\n const e = w(t.getNorth()),\n r = w(t.getSouth()),\n n = Math.cos(e),\n i = Math.cos(r),\n s = Math.sin(e),\n a = Math.sin(r),\n o = t.getWest(),\n l = t.getEast();\n return [kl(i, a, o), kl(i, a, l), kl(n, s, l), kl(n, s, o)];\n }\n function kl(t, e, r, n = ol) {\n return r = w(r), [t * Math.sin(r) * n, -e * n, t * Math.cos(r) * n];\n }\n function Il(t, e, r) {\n return kl(Math.cos(w(t)), Math.sin(w(t)), e, r);\n }\n function Ml(t, e, r, n) {\n const i = 1 << r.z,\n s = (t / ao + r.x) / i;\n return Il(Xl((e / ao + r.y) / i), Kl(s), n);\n }\n function Tl({\n min: t,\n max: e\n }) {\n return ll / Math.max(e[0] - t[0], e[1] - t[1], e[2] - t[2]);\n }\n const zl = new Float64Array(16);\n function Bl(t) {\n const e = Tl(t),\n r = bo(zl, [e, e, e]);\n return mo(r, r, ((n = [])[0] = -(i = t.min)[0], n[1] = -i[1], n[2] = -i[2], n));\n var n, i;\n }\n function El(t) {\n const e = (n = t.min, (r = zl)[0] = 1, r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 0, r[5] = 1, r[6] = 0, r[7] = 0, r[8] = 0, r[9] = 0, r[10] = 1, r[11] = 0, r[12] = n[0], r[13] = n[1], r[14] = n[2], r[15] = 1, r);\n var r, n;\n const i = 1 / Tl(t);\n return go(e, e, [i, i, i]);\n }\n function Cl(t, e, r, n, i) {\n const s = function (t) {\n const e = ao / (2 * Math.PI);\n return t / (2 * Math.PI) / e;\n }(r),\n a = [t, e, -r / (2 * Math.PI)],\n o = po(new Float64Array(16));\n return mo(o, o, a), go(o, o, [s, s, s]), xo(o, o, w(-i)), vo(o, o, w(-n)), o;\n }\n function Pl(t) {\n return T(sl, al, t);\n }\n function Dl(t, e) {\n const r = Il(e.lat, e.lng),\n n = function (t) {\n const e = Il(t._center.lat, t._center.lng);\n let r = Lo([], Io(0, 1, 0), e);\n const n = wo([], -t.angle, e);\n r = Fo(r, r, n), wo(n, -t._pitch, r);\n const i = Do([], e);\n return Co(i, i, fl(t.cameraToCenterDistance / t.pixelsPerMeter)), Fo(i, i, n), Mo([], e, i);\n }(t);\n return a = (i = To([], n, r))[0], o = i[1], l = i[2], u = (s = r)[0], c = s[1], h = s[2], d = (p = Math.sqrt(a * a + o * o + l * l) * Math.sqrt(u * u + c * c + h * h)) && Vo(i, s) / p, Math.acos(Math.min(Math.max(d, -1), 1));\n var i, s, a, o, l, u, c, h, p, d;\n }\n function Vl(t, e) {\n return Dl(t, e) > Math.PI / 2 * 1.01;\n }\n const Ll = w(85),\n Fl = Math.cos(Ll),\n Rl = Math.sin(Ll),\n Ul = 6371008.8,\n $l = 2 * Math.PI * Ul;\n class jl {\n constructor(t, e) {\n if (isNaN(t) || isNaN(e)) throw new Error(`Invalid LngLat object: (${t}, ${e})`);\n if (this.lng = +t, this.lat = +e, this.lat > 90 || this.lat < -90) throw new Error(\"Invalid LngLat latitude value: must be between -90 and 90\");\n }\n wrap() {\n return new jl(z(this.lng, -180, 180), this.lat);\n }\n toArray() {\n return [this.lng, this.lat];\n }\n toString() {\n return `LngLat(${this.lng}, ${this.lat})`;\n }\n distanceTo(t) {\n const e = Math.PI / 180,\n r = this.lat * e,\n n = t.lat * e,\n i = Math.sin(r) * Math.sin(n) + Math.cos(r) * Math.cos(n) * Math.cos((t.lng - this.lng) * e);\n return Ul * Math.acos(Math.min(i, 1));\n }\n toBounds(t = 0) {\n const e = 360 * t / 40075017,\n r = e / Math.cos(Math.PI / 180 * this.lat);\n return new oo(new jl(this.lng - r, this.lat - e), new jl(this.lng + r, this.lat + e));\n }\n toEcef(t) {\n const e = fl(t);\n return Il(this.lat, this.lng, ol + e);\n }\n static convert(t) {\n if (t instanceof jl) return t;\n if (Array.isArray(t) && (2 === t.length || 3 === t.length)) return new jl(Number(t[0]), Number(t[1]));\n if (!Array.isArray(t) && \"object\" == typeof t && null !== t) return new jl(Number(\"lng\" in t ? t.lng : t.lon), Number(t.lat));\n throw new Error(\"`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]\");\n }\n }\n var Ol = jl;\n function ql(t) {\n return $l * Math.cos(t * Math.PI / 180);\n }\n function Nl(t) {\n return (180 + t) / 360;\n }\n function Gl(t) {\n return (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + t * Math.PI / 360))) / 360;\n }\n function Zl(t, e) {\n return t / ql(e);\n }\n function Kl(t) {\n return 360 * t - 180;\n }\n function Xl(t) {\n return 360 / Math.PI * Math.atan(Math.exp((180 - 360 * t) * Math.PI / 180)) - 90;\n }\n function Jl(t, e) {\n return t * ql(Xl(e));\n }\n const Hl = 85.051129;\n function Yl(t) {\n return 1 / Math.cos(t * Math.PI / 180);\n }\n class Wl {\n constructor(t, e, r = 0) {\n this.x = +t, this.y = +e, this.z = +r;\n }\n static fromLngLat(t, e = 0) {\n const r = Ol.convert(t);\n return new Wl(Nl(r.lng), Gl(r.lat), Zl(e, r.lat));\n }\n toLngLat() {\n return new Ol(Kl(this.x), Xl(this.y));\n }\n toAltitude() {\n return Jl(this.z, this.y);\n }\n meterInMercatorCoordinateUnits() {\n return 1 / $l * Yl(Xl(this.y));\n }\n }\n function Ql(t, e, r, n, i, s, a, o, l) {\n const u = (e + n) / 2,\n c = (r + i) / 2,\n h = new x(u, c);\n o(h), function (t, e, r, n, i, s) {\n const a = r - i,\n o = n - s;\n return Math.abs((n - e) * a - (r - t) * o) / Math.hypot(a, o);\n }(h.x, h.y, s.x, s.y, a.x, a.y) >= l ? (Ql(t, e, r, u, c, s, h, o, l), Ql(t, u, c, n, i, h, a, o, l)) : t.push(a);\n }\n function tu(t, e, r) {\n let n = t[0],\n i = n.x,\n s = n.y;\n e(n);\n const a = [n];\n for (let o = 1; o < t.length; o++) {\n const l = t[o],\n {\n x: u,\n y: c\n } = l;\n e(l), Ql(a, i, s, u, c, n, l, e, r), i = u, s = c, n = l;\n }\n return a;\n }\n function eu(t, e, r, n) {\n if (n(e, r)) {\n const i = e.add(r)._mult(.5);\n eu(t, e, i, n), eu(t, i, r, n);\n } else t.push(r);\n }\n function ru(t, e) {\n let r = t[0];\n const n = [r];\n for (let i = 1; i < t.length; i++) {\n const s = t[i];\n eu(n, r, s, e), r = s;\n }\n return n;\n }\n const nu = Math.pow(2, 14) - 1,\n iu = -nu - 1;\n function su(t, e) {\n const r = Math.round(t.x * e),\n n = Math.round(t.y * e);\n return t.x = M(r, iu, nu), t.y = M(n, iu, nu), (r < t.x || r > t.x + 1 || n < t.y || n > t.y + 1) && N(\"Geometry exceeds allowed extent, reduce your vector tile buffer size\"), t;\n }\n function au(t, e, r) {\n const n = t.loadGeometry(),\n i = t.extent,\n s = ao / i;\n if (e && r && r.projection.isReprojectedInTileSpace) {\n const s = 1 << e.z,\n {\n scale: a,\n x: o,\n y: l,\n projection: u\n } = r,\n c = t => {\n const r = Kl((e.x + t.x / i) / s),\n n = Xl((e.y + t.y / i) / s),\n c = u.project(r, n);\n t.x = (c.x * a - o) * i, t.y = (c.y * a - l) * i;\n };\n for (let e = 0; e < n.length; e++) if (1 !== t.type) n[e] = tu(n[e], c, 1);else {\n const t = [];\n for (const r of n[e]) r.x < 0 || r.x >= i || r.y < 0 || r.y >= i || (c(r), t.push(r));\n n[e] = t;\n }\n }\n for (const t of n) for (const e of t) su(e, s);\n return n;\n }\n function ou(t, e) {\n return {\n type: t.type,\n id: t.id,\n properties: t.properties,\n geometry: e ? au(t) : []\n };\n }\n function lu(t, e, r, n, i) {\n t.emplaceBack(2 * e + (n + 1) / 2, 2 * r + (i + 1) / 2);\n }\n function uu(t, e, r) {\n const n = 16384;\n t.emplaceBack(e.x, e.y, e.z, r[0] * n, r[1] * n, r[2] * n);\n }\n class cu {\n constructor(t) {\n this.zoom = t.zoom, this.overscaling = t.overscaling, this.layers = t.layers, this.layerIds = this.layers.map(t => t.id), this.index = t.index, this.hasPattern = !1, this.projection = t.projection, this.layoutVertexArray = new $s(), this.indexArray = new ra(), this.segments = new so(), this.programConfigurations = new Ja(t.layers, t.zoom), this.stateDependentLayerIds = this.layers.filter(t => t.isStateDependent()).map(t => t.id);\n }\n populate(t, e, r, n) {\n const i = this.layers[0],\n s = [];\n let a = null;\n \"circle\" === i.type && (a = i.layout.get(\"circle-sort-key\"));\n for (const {\n feature: e,\n id: i,\n index: o,\n sourceLayerIndex: l\n } of t) {\n const t = this.layers[0]._featureFilter.needGeometry,\n u = ou(e, t);\n if (!this.layers[0]._featureFilter.filter(new ws(this.zoom), u, r)) continue;\n const c = a ? a.evaluate(u, {}, r) : void 0,\n h = {\n id: i,\n properties: e.properties,\n type: e.type,\n sourceLayerIndex: l,\n index: o,\n geometry: t ? u.geometry : au(e, r, n),\n patterns: {},\n sortKey: c\n };\n s.push(h);\n }\n a && s.sort((t, e) => t.sortKey - e.sortKey);\n let o = null;\n \"globe\" === n.projection.name && (this.globeExtVertexArray = new Ks(), o = n.projection);\n for (const n of s) {\n const {\n geometry: i,\n index: s,\n sourceLayerIndex: a\n } = n,\n l = t[s].feature;\n this.addFeature(n, i, s, e.availableImages, r, o), e.featureIndex.insert(l, i, s, a, this.index);\n }\n }\n update(t, e, r, n) {\n this.stateDependentLayers.length && this.programConfigurations.updatePaintArrays(t, e, this.stateDependentLayers, r, n);\n }\n isEmpty() {\n return 0 === this.layoutVertexArray.length;\n }\n uploadPending() {\n return !this.uploaded || this.programConfigurations.needsUpload;\n }\n upload(t) {\n this.uploaded || (this.layoutVertexBuffer = t.createVertexBuffer(this.layoutVertexArray, no.members), this.indexBuffer = t.createIndexBuffer(this.indexArray), this.globeExtVertexArray && (this.globeExtVertexBuffer = t.createVertexBuffer(this.globeExtVertexArray, io.members))), this.programConfigurations.upload(t), this.uploaded = !0;\n }\n destroy() {\n this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.globeExtVertexBuffer && this.globeExtVertexBuffer.destroy());\n }\n addFeature(t, e, r, n, i, s) {\n for (const r of e) for (const e of r) {\n const r = e.x,\n n = e.y;\n if (r < 0 || r >= ao || n < 0 || n >= ao) continue;\n if (s) {\n const t = s.projectTilePoint(r, n, i),\n e = s.upVector(i, r, n),\n a = this.globeExtVertexArray;\n uu(a, t, e), uu(a, t, e), uu(a, t, e), uu(a, t, e);\n }\n const a = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray, t.sortKey),\n o = a.vertexLength;\n lu(this.layoutVertexArray, r, n, -1, -1), lu(this.layoutVertexArray, r, n, 1, -1), lu(this.layoutVertexArray, r, n, 1, 1), lu(this.layoutVertexArray, r, n, -1, 1), this.indexArray.emplaceBack(o, o + 1, o + 2), this.indexArray.emplaceBack(o, o + 2, o + 3), a.vertexLength += 4, a.primitiveLength += 2;\n }\n this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, t, r, {}, n, i);\n }\n }\n function hu(t, e) {\n for (let r = 0; r < t.length; r++) if (bu(e, t[r])) return !0;\n for (let r = 0; r < e.length; r++) if (bu(t, e[r])) return !0;\n return !!yu(t, e);\n }\n function pu(t, e, r) {\n return !!bu(t, e) || !!gu(e, t, r);\n }\n function du(t, e) {\n if (1 === t.length) return vu(e, t[0]);\n for (let r = 0; r < e.length; r++) {\n const n = e[r];\n for (let e = 0; e < n.length; e++) if (bu(t, n[e])) return !0;\n }\n for (let r = 0; r < t.length; r++) if (vu(e, t[r])) return !0;\n for (let r = 0; r < e.length; r++) if (yu(t, e[r])) return !0;\n return !1;\n }\n function fu(t, e, r) {\n if (t.length > 1) {\n if (yu(t, e)) return !0;\n for (let n = 0; n < e.length; n++) if (gu(e[n], t, r)) return !0;\n }\n for (let n = 0; n < t.length; n++) if (gu(t[n], e, r)) return !0;\n return !1;\n }\n function yu(t, e) {\n if (0 === t.length || 0 === e.length) return !1;\n for (let r = 0; r < t.length - 1; r++) {\n const n = t[r],\n i = t[r + 1];\n for (let t = 0; t < e.length - 1; t++) if (mu(n, i, e[t], e[t + 1])) return !0;\n }\n return !1;\n }\n function mu(t, e, r, n) {\n return G(t, r, n) !== G(e, r, n) && G(t, e, r) !== G(t, e, n);\n }\n function gu(t, e, r) {\n const n = r * r;\n if (1 === e.length) return t.distSqr(e[0]) < n;\n for (let r = 1; r < e.length; r++) if (xu(t, e[r - 1], e[r]) < n) return !0;\n return !1;\n }\n function xu(t, e, r) {\n const n = e.distSqr(r);\n if (0 === n) return t.distSqr(e);\n const i = ((t.x - e.x) * (r.x - e.x) + (t.y - e.y) * (r.y - e.y)) / n;\n return t.distSqr(i < 0 ? e : i > 1 ? r : r.sub(e)._mult(i)._add(e));\n }\n function vu(t, e) {\n let r,\n n,\n i,\n s = !1;\n for (let a = 0; a < t.length; a++) {\n r = t[a];\n for (let t = 0, a = r.length - 1; t < r.length; a = t++) n = r[t], i = r[a], n.y > e.y != i.y > e.y && e.x < (i.x - n.x) * (e.y - n.y) / (i.y - n.y) + n.x && (s = !s);\n }\n return s;\n }\n function bu(t, e) {\n let r = !1;\n for (let n = 0, i = t.length - 1; n < t.length; i = n++) {\n const s = t[n],\n a = t[i];\n s.y > e.y != a.y > e.y && e.x < (a.x - s.x) * (e.y - s.y) / (a.y - s.y) + s.x && (r = !r);\n }\n return r;\n }\n function wu(t, e, r, n, i) {\n for (const s of t) if (e <= s.x && r <= s.y && n >= s.x && i >= s.y) return !0;\n const s = [new x(e, r), new x(e, i), new x(n, i), new x(n, r)];\n if (t.length > 2) for (const e of s) if (bu(t, e)) return !0;\n for (let e = 0; e < t.length - 1; e++) if (_u(t[e], t[e + 1], s)) return !0;\n return !1;\n }\n function _u(t, e, r) {\n const n = r[0],\n i = r[2];\n if (t.x < n.x && e.x < n.x || t.x > i.x && e.x > i.x || t.y < n.y && e.y < n.y || t.y > i.y && e.y > i.y) return !1;\n const s = G(t, e, r[0]);\n return s !== G(t, e, r[1]) || s !== G(t, e, r[2]) || s !== G(t, e, r[3]);\n }\n function Au(t, e, r) {\n const n = e.paint.get(t).value;\n return \"constant\" === n.kind ? n.value : r.programConfigurations.get(e.id).getMaxValue(t);\n }\n function Su(t) {\n return Math.sqrt(t[0] * t[0] + t[1] * t[1]);\n }\n function ku(t, e, r, n, i) {\n if (!e[0] && !e[1]) return t;\n const s = x.convert(e)._mult(i);\n \"viewport\" === r && s._rotate(-n);\n const a = [];\n for (let e = 0; e < t.length; e++) a.push(t[e].sub(s));\n return a;\n }\n function Iu(t, e, r, n) {\n const i = x.convert(t)._mult(n);\n return \"viewport\" === e && i._rotate(-r), i;\n }\n Ji(cu, \"CircleBucket\", {\n omit: [\"layers\"]\n });\n const Mu = new Ps({\n \"circle-sort-key\": new Es(te.layout_circle[\"circle-sort-key\"])\n });\n var Tu = {\n paint: new Ps({\n \"circle-radius\": new Es(te.paint_circle[\"circle-radius\"]),\n \"circle-color\": new Es(te.paint_circle[\"circle-color\"]),\n \"circle-blur\": new Es(te.paint_circle[\"circle-blur\"]),\n \"circle-opacity\": new Es(te.paint_circle[\"circle-opacity\"]),\n \"circle-translate\": new Bs(te.paint_circle[\"circle-translate\"]),\n \"circle-translate-anchor\": new Bs(te.paint_circle[\"circle-translate-anchor\"]),\n \"circle-pitch-scale\": new Bs(te.paint_circle[\"circle-pitch-scale\"]),\n \"circle-pitch-alignment\": new Bs(te.paint_circle[\"circle-pitch-alignment\"]),\n \"circle-stroke-width\": new Es(te.paint_circle[\"circle-stroke-width\"]),\n \"circle-stroke-color\": new Es(te.paint_circle[\"circle-stroke-color\"]),\n \"circle-stroke-opacity\": new Es(te.paint_circle[\"circle-stroke-opacity\"])\n }),\n layout: Mu\n };\n function zu(t, e, r, n, i, s, a, o, l) {\n if (s && t.queryGeometry.isAboveHorizon) return !1;\n s && (l *= t.pixelToTileUnitsFactor);\n const u = t.tileID.canonical,\n c = r.projection.upVectorScale(u, r.center.lat, r.worldSize).metersToTile;\n for (const h of e) for (const e of h) {\n const h = e.add(o),\n p = i && r.elevation ? r.elevation.exaggeration() * i.getElevationAt(h.x, h.y, !0) : 0,\n d = r.projection.projectTilePoint(h.x, h.y, u);\n if (p > 0) {\n const t = r.projection.upVector(u, h.x, h.y);\n d.x += t[0] * c * p, d.y += t[1] * c * p, d.z += t[2] * c * p;\n }\n const f = s ? h : Bu(d.x, d.y, d.z, n),\n y = s ? t.tilespaceRays.map(t => Pu(t, p)) : t.queryGeometry.screenGeometry,\n m = Go([], [d.x, d.y, d.z, 1], n);\n if (!a && s ? l *= m[3] / r.cameraToCenterDistance : a && !s && (l *= r.cameraToCenterDistance / m[3]), s) {\n const t = Xl((e.y / ao + u.y) / (1 << u.z));\n l /= r.projection.pixelsPerMeter(t, 1) / Zl(1, t);\n }\n if (pu(y, f, l)) return !0;\n }\n return !1;\n }\n function Bu(t, e, r, n) {\n const i = Go([], [t, e, r, 1], n);\n return new x(i[0] / i[3], i[1] / i[3]);\n }\n const Eu = Io(0, 0, 0),\n Cu = Io(0, 0, 1);\n function Pu(t, e) {\n const r = Ao();\n return Eu[2] = e, t.intersectsPlane(Eu, Cu, r), new x(r[0], r[1]);\n }\n class Du extends cu {}\n function Vu(t, {\n width: e,\n height: r\n }, n, i) {\n if (i) {\n if (i instanceof Uint8ClampedArray) i = new Uint8Array(i.buffer);else if (i.length !== e * r * n) throw new RangeError(\"mismatched image size\");\n } else i = new Uint8Array(e * r * n);\n return t.width = e, t.height = r, t.data = i, t;\n }\n function Lu(t, e, r) {\n const {\n width: n,\n height: i\n } = e;\n n === t.width && i === t.height || (Fu(t, e, {\n x: 0,\n y: 0\n }, {\n x: 0,\n y: 0\n }, {\n width: Math.min(t.width, n),\n height: Math.min(t.height, i)\n }, r), t.width = n, t.height = i, t.data = e.data);\n }\n function Fu(t, e, r, n, i, s) {\n if (0 === i.width || 0 === i.height) return e;\n if (i.width > t.width || i.height > t.height || r.x > t.width - i.width || r.y > t.height - i.height) throw new RangeError(\"out of range source coordinates for image copy\");\n if (i.width > e.width || i.height > e.height || n.x > e.width - i.width || n.y > e.height - i.height) throw new RangeError(\"out of range destination coordinates for image copy\");\n const a = t.data,\n o = e.data;\n for (let l = 0; l < i.height; l++) {\n const u = ((r.y + l) * t.width + r.x) * s,\n c = ((n.y + l) * e.width + n.x) * s;\n for (let t = 0; t < i.width * s; t++) o[c + t] = a[u + t];\n }\n return e;\n }\n Ji(Du, \"HeatmapBucket\", {\n omit: [\"layers\"]\n });\n class Ru {\n constructor(t, e) {\n Vu(this, t, 1, e);\n }\n resize(t) {\n Lu(this, new Ru(t), 1);\n }\n clone() {\n return new Ru({\n width: this.width,\n height: this.height\n }, new Uint8Array(this.data));\n }\n static copy(t, e, r, n, i) {\n Fu(t, e, r, n, i, 1);\n }\n }\n class Uu {\n constructor(t, e) {\n Vu(this, t, 4, e);\n }\n resize(t) {\n Lu(this, new Uu(t), 4);\n }\n replace(t, e) {\n e ? this.data.set(t) : this.data = t instanceof Uint8ClampedArray ? new Uint8Array(t.buffer) : t;\n }\n clone() {\n return new Uu({\n width: this.width,\n height: this.height\n }, new Uint8Array(this.data));\n }\n static copy(t, e, r, n, i) {\n Fu(t, e, r, n, i, 4);\n }\n }\n Ji(Ru, \"AlphaImage\"), Ji(Uu, \"RGBAImage\");\n var $u = {\n paint: new Ps({\n \"heatmap-radius\": new Es(te.paint_heatmap[\"heatmap-radius\"]),\n \"heatmap-weight\": new Es(te.paint_heatmap[\"heatmap-weight\"]),\n \"heatmap-intensity\": new Bs(te.paint_heatmap[\"heatmap-intensity\"]),\n \"heatmap-color\": new Cs(te.paint_heatmap[\"heatmap-color\"]),\n \"heatmap-opacity\": new Bs(te.paint_heatmap[\"heatmap-opacity\"])\n })\n };\n function ju(t) {\n const e = {},\n r = t.resolution || 256,\n n = t.clips ? t.clips.length : 1,\n i = t.image || new Uu({\n width: r,\n height: n\n }),\n s = (r, n, s) => {\n e[t.evaluationKey] = s;\n const a = t.expression.evaluate(e);\n i.data[r + n + 0] = Math.floor(255 * a.r / a.a), i.data[r + n + 1] = Math.floor(255 * a.g / a.a), i.data[r + n + 2] = Math.floor(255 * a.b / a.a), i.data[r + n + 3] = Math.floor(255 * a.a);\n };\n if (t.clips) for (let e = 0, i = 0; e < n; ++e, i += 4 * r) for (let n = 0, a = 0; n < r; n++, a += 4) {\n const o = n / (r - 1),\n {\n start: l,\n end: u\n } = t.clips[e];\n s(i, a, l * (1 - o) + u * o);\n } else for (let t = 0, e = 0; t < r; t++, e += 4) s(0, e, t / (r - 1));\n return i;\n }\n var Ou = {\n paint: new Ps({\n \"hillshade-illumination-direction\": new Bs(te.paint_hillshade[\"hillshade-illumination-direction\"]),\n \"hillshade-illumination-anchor\": new Bs(te.paint_hillshade[\"hillshade-illumination-anchor\"]),\n \"hillshade-exaggeration\": new Bs(te.paint_hillshade[\"hillshade-exaggeration\"]),\n \"hillshade-shadow-color\": new Bs(te.paint_hillshade[\"hillshade-shadow-color\"]),\n \"hillshade-highlight-color\": new Bs(te.paint_hillshade[\"hillshade-highlight-color\"]),\n \"hillshade-accent-color\": new Bs(te.paint_hillshade[\"hillshade-accent-color\"])\n })\n };\n const qu = Rs([{\n name: \"a_pos\",\n components: 2,\n type: \"Int16\"\n }], 4),\n {\n members: Nu\n } = qu;\n var Gu = {\n exports: {}\n };\n function Zu(t, e, r) {\n r = r || 2;\n var n,\n i,\n s,\n a,\n o,\n l,\n u,\n c = e && e.length,\n h = c ? e[0] * r : t.length,\n p = Ku(t, 0, h, r, !0),\n d = [];\n if (!p || p.next === p.prev) return d;\n if (c && (p = function (t, e, r, n) {\n var i,\n s,\n a,\n o = [];\n for (i = 0, s = e.length; i < s; i++) (a = Ku(t, e[i] * n, i < s - 1 ? e[i + 1] * n : t.length, n, !1)) === a.next && (a.steiner = !0), o.push(ic(a));\n for (o.sort(tc), i = 0; i < o.length; i++) r = ec(o[i], r);\n return r;\n }(t, e, p, r)), t.length > 80 * r) {\n n = s = t[0], i = a = t[1];\n for (var f = r; f < h; f += r) (o = t[f]) < n && (n = o), (l = t[f + 1]) < i && (i = l), o > s && (s = o), l > a && (a = l);\n u = 0 !== (u = Math.max(s - n, a - i)) ? 32767 / u : 0;\n }\n return Ju(p, d, r, n, i, u, 0), d;\n }\n function Ku(t, e, r, n, i) {\n var s, a;\n if (i === gc(t, e, r, n) > 0) for (s = e; s < r; s += n) a = fc(s, t[s], t[s + 1], a);else for (s = r - n; s >= e; s -= n) a = fc(s, t[s], t[s + 1], a);\n return a && lc(a, a.next) && (yc(a), a = a.next), a;\n }\n function Xu(t, e) {\n if (!t) return t;\n e || (e = t);\n var r,\n n = t;\n do {\n if (r = !1, n.steiner || !lc(n, n.next) && 0 !== oc(n.prev, n, n.next)) n = n.next;else {\n if (yc(n), (n = e = n.prev) === n.next) break;\n r = !0;\n }\n } while (r || n !== e);\n return e;\n }\n function Ju(t, e, r, n, i, s, a) {\n if (t) {\n !a && s && function (t, e, r, n) {\n var i = t;\n do {\n 0 === i.z && (i.z = nc(i.x, i.y, e, r, n)), i.prevZ = i.prev, i.nextZ = i.next, i = i.next;\n } while (i !== t);\n i.prevZ.nextZ = null, i.prevZ = null, function (t) {\n var e,\n r,\n n,\n i,\n s,\n a,\n o,\n l,\n u = 1;\n do {\n for (r = t, t = null, s = null, a = 0; r;) {\n for (a++, n = r, o = 0, e = 0; e < u && (o++, n = n.nextZ); e++);\n for (l = u; o > 0 || l > 0 && n;) 0 !== o && (0 === l || !n || r.z <= n.z) ? (i = r, r = r.nextZ, o--) : (i = n, n = n.nextZ, l--), s ? s.nextZ = i : t = i, i.prevZ = s, s = i;\n r = n;\n }\n s.nextZ = null, u *= 2;\n } while (a > 1);\n }(i);\n }(t, n, i, s);\n for (var o, l, u = t; t.prev !== t.next;) if (o = t.prev, l = t.next, s ? Yu(t, n, i, s) : Hu(t)) e.push(o.i / r | 0), e.push(t.i / r | 0), e.push(l.i / r | 0), yc(t), t = l.next, u = l.next;else if ((t = l) === u) {\n a ? 1 === a ? Ju(t = Wu(Xu(t), e, r), e, r, n, i, s, 2) : 2 === a && Qu(t, e, r, n, i, s) : Ju(Xu(t), e, r, n, i, s, 1);\n break;\n }\n }\n }\n function Hu(t) {\n var e = t.prev,\n r = t,\n n = t.next;\n if (oc(e, r, n) >= 0) return !1;\n for (var i = e.x, s = r.x, a = n.x, o = e.y, l = r.y, u = n.y, c = i < s ? i < a ? i : a : s < a ? s : a, h = o < l ? o < u ? o : u : l < u ? l : u, p = i > s ? i > a ? i : a : s > a ? s : a, d = o > l ? o > u ? o : u : l > u ? l : u, f = n.next; f !== e;) {\n if (f.x >= c && f.x <= p && f.y >= h && f.y <= d && sc(i, o, s, l, a, u, f.x, f.y) && oc(f.prev, f, f.next) >= 0) return !1;\n f = f.next;\n }\n return !0;\n }\n function Yu(t, e, r, n) {\n var i = t.prev,\n s = t,\n a = t.next;\n if (oc(i, s, a) >= 0) return !1;\n for (var o = i.x, l = s.x, u = a.x, c = i.y, h = s.y, p = a.y, d = o < l ? o < u ? o : u : l < u ? l : u, f = c < h ? c < p ? c : p : h < p ? h : p, y = o > l ? o > u ? o : u : l > u ? l : u, m = c > h ? c > p ? c : p : h > p ? h : p, g = nc(d, f, e, r, n), x = nc(y, m, e, r, n), v = t.prevZ, b = t.nextZ; v && v.z >= g && b && b.z <= x;) {\n if (v.x >= d && v.x <= y && v.y >= f && v.y <= m && v !== i && v !== a && sc(o, c, l, h, u, p, v.x, v.y) && oc(v.prev, v, v.next) >= 0) return !1;\n if (v = v.prevZ, b.x >= d && b.x <= y && b.y >= f && b.y <= m && b !== i && b !== a && sc(o, c, l, h, u, p, b.x, b.y) && oc(b.prev, b, b.next) >= 0) return !1;\n b = b.nextZ;\n }\n for (; v && v.z >= g;) {\n if (v.x >= d && v.x <= y && v.y >= f && v.y <= m && v !== i && v !== a && sc(o, c, l, h, u, p, v.x, v.y) && oc(v.prev, v, v.next) >= 0) return !1;\n v = v.prevZ;\n }\n for (; b && b.z <= x;) {\n if (b.x >= d && b.x <= y && b.y >= f && b.y <= m && b !== i && b !== a && sc(o, c, l, h, u, p, b.x, b.y) && oc(b.prev, b, b.next) >= 0) return !1;\n b = b.nextZ;\n }\n return !0;\n }\n function Wu(t, e, r) {\n var n = t;\n do {\n var i = n.prev,\n s = n.next.next;\n !lc(i, s) && uc(i, n, n.next, s) && pc(i, s) && pc(s, i) && (e.push(i.i / r | 0), e.push(n.i / r | 0), e.push(s.i / r | 0), yc(n), yc(n.next), n = t = s), n = n.next;\n } while (n !== t);\n return Xu(n);\n }\n function Qu(t, e, r, n, i, s) {\n var a = t;\n do {\n for (var o = a.next.next; o !== a.prev;) {\n if (a.i !== o.i && ac(a, o)) {\n var l = dc(a, o);\n return a = Xu(a, a.next), l = Xu(l, l.next), Ju(a, e, r, n, i, s, 0), void Ju(l, e, r, n, i, s, 0);\n }\n o = o.next;\n }\n a = a.next;\n } while (a !== t);\n }\n function tc(t, e) {\n return t.x - e.x;\n }\n function ec(t, e) {\n var r = function (t, e) {\n var r,\n n = e,\n i = t.x,\n s = t.y,\n a = -1 / 0;\n do {\n if (s <= n.y && s >= n.next.y && n.next.y !== n.y) {\n var o = n.x + (s - n.y) * (n.next.x - n.x) / (n.next.y - n.y);\n if (o <= i && o > a && (a = o, r = n.x < n.next.x ? n : n.next, o === i)) return r;\n }\n n = n.next;\n } while (n !== e);\n if (!r) return null;\n var l,\n u = r,\n c = r.x,\n h = r.y,\n p = 1 / 0;\n n = r;\n do {\n i >= n.x && n.x >= c && i !== n.x && sc(s < h ? i : a, s, c, h, s < h ? a : i, s, n.x, n.y) && (l = Math.abs(s - n.y) / (i - n.x), pc(n, t) && (l < p || l === p && (n.x > r.x || n.x === r.x && rc(r, n))) && (r = n, p = l)), n = n.next;\n } while (n !== u);\n return r;\n }(t, e);\n if (!r) return e;\n var n = dc(r, t);\n return Xu(n, n.next), Xu(r, r.next);\n }\n function rc(t, e) {\n return oc(t.prev, t, e.prev) < 0 && oc(e.next, t, t.next) < 0;\n }\n function nc(t, e, r, n, i) {\n return (t = 1431655765 & ((t = 858993459 & ((t = 252645135 & ((t = 16711935 & ((t = (t - r) * i | 0) | t << 8)) | t << 4)) | t << 2)) | t << 1)) | (e = 1431655765 & ((e = 858993459 & ((e = 252645135 & ((e = 16711935 & ((e = (e - n) * i | 0) | e << 8)) | e << 4)) | e << 2)) | e << 1)) << 1;\n }\n function ic(t) {\n var e = t,\n r = t;\n do {\n (e.x < r.x || e.x === r.x && e.y < r.y) && (r = e), e = e.next;\n } while (e !== t);\n return r;\n }\n function sc(t, e, r, n, i, s, a, o) {\n return (i - a) * (e - o) >= (t - a) * (s - o) && (t - a) * (n - o) >= (r - a) * (e - o) && (r - a) * (s - o) >= (i - a) * (n - o);\n }\n function ac(t, e) {\n return t.next.i !== e.i && t.prev.i !== e.i && !function (t, e) {\n var r = t;\n do {\n if (r.i !== t.i && r.next.i !== t.i && r.i !== e.i && r.next.i !== e.i && uc(r, r.next, t, e)) return !0;\n r = r.next;\n } while (r !== t);\n return !1;\n }(t, e) && (pc(t, e) && pc(e, t) && function (t, e) {\n var r = t,\n n = !1,\n i = (t.x + e.x) / 2,\n s = (t.y + e.y) / 2;\n do {\n r.y > s != r.next.y > s && r.next.y !== r.y && i < (r.next.x - r.x) * (s - r.y) / (r.next.y - r.y) + r.x && (n = !n), r = r.next;\n } while (r !== t);\n return n;\n }(t, e) && (oc(t.prev, t, e.prev) || oc(t, e.prev, e)) || lc(t, e) && oc(t.prev, t, t.next) > 0 && oc(e.prev, e, e.next) > 0);\n }\n function oc(t, e, r) {\n return (e.y - t.y) * (r.x - e.x) - (e.x - t.x) * (r.y - e.y);\n }\n function lc(t, e) {\n return t.x === e.x && t.y === e.y;\n }\n function uc(t, e, r, n) {\n var i = hc(oc(t, e, r)),\n s = hc(oc(t, e, n)),\n a = hc(oc(r, n, t)),\n o = hc(oc(r, n, e));\n return i !== s && a !== o || !(0 !== i || !cc(t, r, e)) || !(0 !== s || !cc(t, n, e)) || !(0 !== a || !cc(r, t, n)) || !(0 !== o || !cc(r, e, n));\n }\n function cc(t, e, r) {\n return e.x <= Math.max(t.x, r.x) && e.x >= Math.min(t.x, r.x) && e.y <= Math.max(t.y, r.y) && e.y >= Math.min(t.y, r.y);\n }\n function hc(t) {\n return t > 0 ? 1 : t < 0 ? -1 : 0;\n }\n function pc(t, e) {\n return oc(t.prev, t, t.next) < 0 ? oc(t, e, t.next) >= 0 && oc(t, t.prev, e) >= 0 : oc(t, e, t.prev) < 0 || oc(t, t.next, e) < 0;\n }\n function dc(t, e) {\n var r = new mc(t.i, t.x, t.y),\n n = new mc(e.i, e.x, e.y),\n i = t.next,\n s = e.prev;\n return t.next = e, e.prev = t, r.next = i, i.prev = r, n.next = r, r.prev = n, s.next = n, n.prev = s, n;\n }\n function fc(t, e, r, n) {\n var i = new mc(t, e, r);\n return n ? (i.next = n.next, i.prev = n, n.next.prev = i, n.next = i) : (i.prev = i, i.next = i), i;\n }\n function yc(t) {\n t.next.prev = t.prev, t.prev.next = t.next, t.prevZ && (t.prevZ.nextZ = t.nextZ), t.nextZ && (t.nextZ.prevZ = t.prevZ);\n }\n function mc(t, e, r) {\n this.i = t, this.x = e, this.y = r, this.prev = null, this.next = null, this.z = 0, this.prevZ = null, this.nextZ = null, this.steiner = !1;\n }\n function gc(t, e, r, n) {\n for (var i = 0, s = e, a = r - n; s < r; s += n) i += (t[a] - t[s]) * (t[s + 1] + t[a + 1]), a = s;\n return i;\n }\n Gu.exports = Zu, Gu.exports.default = Zu, Zu.deviation = function (t, e, r, n) {\n var i = e && e.length,\n s = Math.abs(gc(t, 0, i ? e[0] * r : t.length, r));\n if (i) for (var a = 0, o = e.length; a < o; a++) s -= Math.abs(gc(t, e[a] * r, a < o - 1 ? e[a + 1] * r : t.length, r));\n var l = 0;\n for (a = 0; a < n.length; a += 3) {\n var u = n[a] * r,\n c = n[a + 1] * r,\n h = n[a + 2] * r;\n l += Math.abs((t[u] - t[h]) * (t[c + 1] - t[u + 1]) - (t[u] - t[c]) * (t[h + 1] - t[u + 1]));\n }\n return 0 === s && 0 === l ? 0 : Math.abs((l - s) / s);\n }, Zu.flatten = function (t) {\n for (var e = t[0][0].length, r = {\n vertices: [],\n holes: [],\n dimensions: e\n }, n = 0, i = 0; i < t.length; i++) {\n for (var s = 0; s < t[i].length; s++) for (var a = 0; a < e; a++) r.vertices.push(t[i][s][a]);\n i > 0 && r.holes.push(n += t[i - 1].length);\n }\n return r;\n };\n var xc = p(Gu.exports);\n function vc(t, e, r, n, i) {\n bc(t, e, r || 0, n || t.length - 1, i || _c);\n }\n function bc(t, e, r, n, i) {\n for (; n > r;) {\n if (n - r > 600) {\n var s = n - r + 1,\n a = e - r + 1,\n o = Math.log(s),\n l = .5 * Math.exp(2 * o / 3),\n u = .5 * Math.sqrt(o * l * (s - l) / s) * (a - s / 2 < 0 ? -1 : 1);\n bc(t, e, Math.max(r, Math.floor(e - a * l / s + u)), Math.min(n, Math.floor(e + (s - a) * l / s + u)), i);\n }\n var c = t[e],\n h = r,\n p = n;\n for (wc(t, r, e), i(t[n], c) > 0 && wc(t, r, n); h < p;) {\n for (wc(t, h, p), h++, p--; i(t[h], c) < 0;) h++;\n for (; i(t[p], c) > 0;) p--;\n }\n 0 === i(t[r], c) ? wc(t, r, p) : wc(t, ++p, n), p <= e && (r = p + 1), e <= p && (n = p - 1);\n }\n }\n function wc(t, e, r) {\n var n = t[e];\n t[e] = t[r], t[r] = n;\n }\n function _c(t, e) {\n return t < e ? -1 : t > e ? 1 : 0;\n }\n function Ac(t, e) {\n const r = t.length;\n if (r <= 1) return [t];\n const n = [];\n let i, s;\n for (let e = 0; e < r; e++) {\n const r = Z(t[e]);\n 0 !== r && (t[e].area = Math.abs(r), void 0 === s && (s = r < 0), s === r < 0 ? (i && n.push(i), i = [t[e]]) : i.push(t[e]));\n }\n if (i && n.push(i), e > 1) for (let t = 0; t < n.length; t++) n[t].length <= e || (vc(n[t], e, 1, n[t].length - 1, Sc), n[t] = n[t].slice(0, e));\n return n;\n }\n function Sc(t, e) {\n return e.area - t.area;\n }\n function kc(t, e, r) {\n const n = r.patternDependencies;\n let i = !1;\n for (const r of e) {\n const e = r.paint.get(`${t}-pattern`);\n e.isConstant() || (i = !0);\n const s = e.constantOr(null);\n s && (i = !0, n[s] = !0);\n }\n return i;\n }\n function Ic(t, e, r, n, i) {\n const s = i.patternDependencies;\n for (const a of e) {\n const e = a.paint.get(`${t}-pattern`).value;\n if (\"constant\" !== e.kind) {\n let t = e.evaluate({\n zoom: n\n }, r, {}, i.availableImages);\n t = t && t.name ? t.name : t, s[t] = !0, r.patterns[a.id] = t;\n }\n }\n return r;\n }\n class Mc {\n constructor(t) {\n this.zoom = t.zoom, this.overscaling = t.overscaling, this.layers = t.layers, this.layerIds = this.layers.map(t => t.id), this.index = t.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new $s(), this.indexArray = new ra(), this.indexArray2 = new la(), this.programConfigurations = new Ja(t.layers, t.zoom), this.segments = new so(), this.segments2 = new so(), this.stateDependentLayerIds = this.layers.filter(t => t.isStateDependent()).map(t => t.id), this.projection = t.projection;\n }\n populate(t, e, r, n) {\n this.hasPattern = kc(\"fill\", this.layers, e);\n const i = this.layers[0].layout.get(\"fill-sort-key\"),\n s = [];\n for (const {\n feature: a,\n id: o,\n index: l,\n sourceLayerIndex: u\n } of t) {\n const t = this.layers[0]._featureFilter.needGeometry,\n c = ou(a, t);\n if (!this.layers[0]._featureFilter.filter(new ws(this.zoom), c, r)) continue;\n const h = i ? i.evaluate(c, {}, r, e.availableImages) : void 0,\n p = {\n id: o,\n properties: a.properties,\n type: a.type,\n sourceLayerIndex: u,\n index: l,\n geometry: t ? c.geometry : au(a, r, n),\n patterns: {},\n sortKey: h\n };\n s.push(p);\n }\n i && s.sort((t, e) => t.sortKey - e.sortKey);\n for (const n of s) {\n const {\n geometry: i,\n index: s,\n sourceLayerIndex: a\n } = n;\n if (this.hasPattern) {\n const t = Ic(\"fill\", this.layers, n, this.zoom, e);\n this.patternFeatures.push(t);\n } else this.addFeature(n, i, s, r, {}, e.availableImages);\n e.featureIndex.insert(t[s].feature, i, s, a, this.index);\n }\n }\n update(t, e, r, n) {\n this.stateDependentLayers.length && this.programConfigurations.updatePaintArrays(t, e, this.stateDependentLayers, r, n);\n }\n addFeatures(t, e, r, n, i) {\n for (const t of this.patternFeatures) this.addFeature(t, t.geometry, t.index, e, r, n);\n }\n isEmpty() {\n return 0 === this.layoutVertexArray.length;\n }\n uploadPending() {\n return !this.uploaded || this.programConfigurations.needsUpload;\n }\n upload(t) {\n this.uploaded || (this.layoutVertexBuffer = t.createVertexBuffer(this.layoutVertexArray, Nu), this.indexBuffer = t.createIndexBuffer(this.indexArray), this.indexBuffer2 = t.createIndexBuffer(this.indexArray2)), this.programConfigurations.upload(t), this.uploaded = !0;\n }\n destroy() {\n this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.indexBuffer2.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.segments2.destroy());\n }\n addFeature(t, e, r, n, i, s = []) {\n for (const t of Ac(e, 500)) {\n let e = 0;\n for (const r of t) e += r.length;\n const r = this.segments.prepareSegment(e, this.layoutVertexArray, this.indexArray),\n n = r.vertexLength,\n i = [],\n s = [];\n for (const e of t) {\n if (0 === e.length) continue;\n e !== t[0] && s.push(i.length / 2);\n const r = this.segments2.prepareSegment(e.length, this.layoutVertexArray, this.indexArray2),\n n = r.vertexLength;\n this.layoutVertexArray.emplaceBack(e[0].x, e[0].y), this.indexArray2.emplaceBack(n + e.length - 1, n), i.push(e[0].x), i.push(e[0].y);\n for (let t = 1; t < e.length; t++) this.layoutVertexArray.emplaceBack(e[t].x, e[t].y), this.indexArray2.emplaceBack(n + t - 1, n + t), i.push(e[t].x), i.push(e[t].y);\n r.vertexLength += e.length, r.primitiveLength += e.length;\n }\n const a = xc(i, s);\n for (let t = 0; t < a.length; t += 3) this.indexArray.emplaceBack(n + a[t], n + a[t + 1], n + a[t + 2]);\n r.vertexLength += e, r.primitiveLength += a.length / 3;\n }\n this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, t, r, i, s, n);\n }\n }\n Ji(Mc, \"FillBucket\", {\n omit: [\"layers\", \"patternFeatures\"]\n });\n const Tc = new Ps({\n \"fill-sort-key\": new Es(te.layout_fill[\"fill-sort-key\"])\n });\n var zc = {\n paint: new Ps({\n \"fill-antialias\": new Bs(te.paint_fill[\"fill-antialias\"]),\n \"fill-opacity\": new Es(te.paint_fill[\"fill-opacity\"]),\n \"fill-color\": new Es(te.paint_fill[\"fill-color\"]),\n \"fill-outline-color\": new Es(te.paint_fill[\"fill-outline-color\"]),\n \"fill-translate\": new Bs(te.paint_fill[\"fill-translate\"]),\n \"fill-translate-anchor\": new Bs(te.paint_fill[\"fill-translate-anchor\"]),\n \"fill-pattern\": new Es(te.paint_fill[\"fill-pattern\"])\n }),\n layout: Tc\n };\n const Bc = Rs([{\n name: \"a_pos_normal_ed\",\n components: 4,\n type: \"Int16\"\n }]),\n Ec = Rs([{\n name: \"a_centroid_pos\",\n components: 2,\n type: \"Uint16\"\n }]),\n Cc = Rs([{\n name: \"a_pos_3\",\n components: 3,\n type: \"Int16\"\n }, {\n name: \"a_pos_normal_3\",\n components: 3,\n type: \"Int16\"\n }]),\n {\n members: Pc\n } = Bc;\n var Dc = {},\n Vc = m,\n Lc = Fc;\n function Fc(t, e, r, n, i) {\n this.properties = {}, this.extent = r, this.type = 0, this._pbf = t, this._geometry = -1, this._keys = n, this._values = i, t.readFields(Rc, this, e);\n }\n function Rc(t, e, r) {\n 1 == t ? e.id = r.readVarint() : 2 == t ? function (t, e) {\n for (var r = t.readVarint() + t.pos; t.pos < r;) {\n var n = e._keys[t.readVarint()],\n i = e._values[t.readVarint()];\n e.properties[n] = i;\n }\n }(r, e) : 3 == t ? e.type = r.readVarint() : 4 == t && (e._geometry = r.pos);\n }\n function Uc(t) {\n for (var e, r, n = 0, i = 0, s = t.length, a = s - 1; i < s; a = i++) n += ((r = t[a]).x - (e = t[i]).x) * (e.y + r.y);\n return n;\n }\n Fc.types = [\"Unknown\", \"Point\", \"LineString\", \"Polygon\"], Fc.prototype.loadGeometry = function () {\n var t = this._pbf;\n t.pos = this._geometry;\n for (var e, r = t.readVarint() + t.pos, n = 1, i = 0, s = 0, a = 0, o = []; t.pos < r;) {\n if (i <= 0) {\n var l = t.readVarint();\n n = 7 & l, i = l >> 3;\n }\n if (i--, 1 === n || 2 === n) s += t.readSVarint(), a += t.readSVarint(), 1 === n && (e && o.push(e), e = []), e.push(new Vc(s, a));else {\n if (7 !== n) throw new Error(\"unknown command \" + n);\n e && e.push(e[0].clone());\n }\n }\n return e && o.push(e), o;\n }, Fc.prototype.bbox = function () {\n var t = this._pbf;\n t.pos = this._geometry;\n for (var e = t.readVarint() + t.pos, r = 1, n = 0, i = 0, s = 0, a = 1 / 0, o = -1 / 0, l = 1 / 0, u = -1 / 0; t.pos < e;) {\n if (n <= 0) {\n var c = t.readVarint();\n r = 7 & c, n = c >> 3;\n }\n if (n--, 1 === r || 2 === r) (i += t.readSVarint()) < a && (a = i), i > o && (o = i), (s += t.readSVarint()) < l && (l = s), s > u && (u = s);else if (7 !== r) throw new Error(\"unknown command \" + r);\n }\n return [a, l, o, u];\n }, Fc.prototype.toGeoJSON = function (t, e, r) {\n var n,\n i,\n s = this.extent * Math.pow(2, r),\n a = this.extent * t,\n o = this.extent * e,\n l = this.loadGeometry(),\n u = Fc.types[this.type];\n function c(t) {\n for (var e = 0; e < t.length; e++) {\n var r = t[e];\n t[e] = [360 * (r.x + a) / s - 180, 360 / Math.PI * Math.atan(Math.exp((180 - 360 * (r.y + o) / s) * Math.PI / 180)) - 90];\n }\n }\n switch (this.type) {\n case 1:\n var h = [];\n for (n = 0; n < l.length; n++) h[n] = l[n][0];\n c(l = h);\n break;\n case 2:\n for (n = 0; n < l.length; n++) c(l[n]);\n break;\n case 3:\n for (l = function (t) {\n var e = t.length;\n if (e <= 1) return [t];\n for (var r, n, i = [], s = 0; s < e; s++) {\n var a = Uc(t[s]);\n 0 !== a && (void 0 === n && (n = a < 0), n === a < 0 ? (r && i.push(r), r = [t[s]]) : r.push(t[s]));\n }\n return r && i.push(r), i;\n }(l), n = 0; n < l.length; n++) for (i = 0; i < l[n].length; i++) c(l[n][i]);\n }\n 1 === l.length ? l = l[0] : u = \"Multi\" + u;\n var p = {\n type: \"Feature\",\n geometry: {\n type: u,\n coordinates: l\n },\n properties: this.properties\n };\n return \"id\" in this && (p.id = this.id), p;\n };\n var $c = Lc,\n jc = Oc;\n function Oc(t, e) {\n this.version = 1, this.name = null, this.extent = 4096, this.length = 0, this._pbf = t, this._keys = [], this._values = [], this._features = [], t.readFields(qc, this, e), this.length = this._features.length;\n }\n function qc(t, e, r) {\n 15 === t ? e.version = r.readVarint() : 1 === t ? e.name = r.readString() : 5 === t ? e.extent = r.readVarint() : 2 === t ? e._features.push(r.pos) : 3 === t ? e._keys.push(r.readString()) : 4 === t && e._values.push(function (t) {\n for (var e = null, r = t.readVarint() + t.pos; t.pos < r;) {\n var n = t.readVarint() >> 3;\n e = 1 === n ? t.readString() : 2 === n ? t.readFloat() : 3 === n ? t.readDouble() : 4 === n ? t.readVarint64() : 5 === n ? t.readVarint() : 6 === n ? t.readSVarint() : 7 === n ? t.readBoolean() : null;\n }\n return e;\n }(r));\n }\n Oc.prototype.feature = function (t) {\n if (t < 0 || t >= this._features.length) throw new Error(\"feature index out of bounds\");\n this._pbf.pos = this._features[t];\n var e = this._pbf.readVarint() + this._pbf.pos;\n return new $c(this._pbf, e, this.extent, this._keys, this._values);\n };\n var Nc = jc;\n function Gc(t, e, r) {\n if (3 === t) {\n var n = new Nc(r, r.readVarint() + r.pos);\n n.length && (e[n.name] = n);\n }\n }\n var Zc = Dc.VectorTile = function (t, e) {\n this.layers = t.readFields(Gc, {}, e);\n },\n Kc = Dc.VectorTileFeature = Lc;\n function Xc(t, e, r, n) {\n const i = [],\n s = 0 === n ? (t, e, r, n, i, s) => {\n t.push(new x(s, r + (s - e) / (n - e) * (i - r)));\n } : (t, e, r, n, i, s) => {\n t.push(new x(e + (s - r) / (i - r) * (n - e), s));\n };\n for (const a of t) {\n const t = [];\n for (const i of a) {\n if (i.length <= 2) continue;\n const a = [];\n for (let t = 0; t < i.length - 1; t++) {\n const o = i[t].x,\n l = i[t].y,\n u = i[t + 1].x,\n c = i[t + 1].y,\n h = 0 === n ? o : l,\n p = 0 === n ? u : c;\n h < e ? p > e && s(a, o, l, u, c, e) : h > r ? p < r && s(a, o, l, u, c, r) : a.push(i[t]), p < e && h >= e && s(a, o, l, u, c, e), p > r && h <= r && s(a, o, l, u, c, r);\n }\n let o = i[i.length - 1];\n const l = 0 === n ? o.x : o.y;\n l >= e && l <= r && a.push(o), a.length && (o = a[a.length - 1], a[0].x === o.x && a[0].y === o.y || a.push(a[0]), t.push(a));\n }\n t.length && i.push(t);\n }\n return i;\n }\n Dc.VectorTileLayer = jc;\n const Jc = Kc.types,\n Hc = Math.pow(2, 13);\n function Yc(t, e, r, n, i, s, a, o) {\n t.emplaceBack((e << 1) + a, (r << 1) + s, (Math.floor(n * Hc) << 1) + i, Math.round(o));\n }\n function Wc(t, e, r) {\n const n = 16384;\n t.emplaceBack(e.x, e.y, e.z, r[0] * n, r[1] * n, r[2] * n);\n }\n class Qc {\n constructor() {\n this.acc = new x(0, 0), this.polyCount = [];\n }\n startRing(t) {\n this.currentPolyCount = {\n edges: 0,\n top: 0\n }, this.polyCount.push(this.currentPolyCount), this.min || (this.min = new x(t.x, t.y), this.max = new x(t.x, t.y));\n }\n append(t, e) {\n this.currentPolyCount.edges++, this.acc._add(t);\n const r = this.min,\n n = this.max;\n t.x < r.x ? r.x = t.x : t.x > n.x && (n.x = t.x), t.y < r.y ? r.y = t.y : t.y > n.y && (n.y = t.y), ((0 === t.x || t.x === ao) && t.x === e.x) != ((0 === t.y || t.y === ao) && t.y === e.y) && this.processBorderOverlap(t, e), e.x < 0 != t.x < 0 && this.addBorderIntersection(0, Er(e.y, t.y, (0 - e.x) / (t.x - e.x))), e.x > ao != t.x > ao && this.addBorderIntersection(1, Er(e.y, t.y, (ao - e.x) / (t.x - e.x))), e.y < 0 != t.y < 0 && this.addBorderIntersection(2, Er(e.x, t.x, (0 - e.y) / (t.y - e.y))), e.y > ao != t.y > ao && this.addBorderIntersection(3, Er(e.x, t.x, (ao - e.y) / (t.y - e.y)));\n }\n addBorderIntersection(t, e) {\n this.borders || (this.borders = [[Number.MAX_VALUE, -Number.MAX_VALUE], [Number.MAX_VALUE, -Number.MAX_VALUE], [Number.MAX_VALUE, -Number.MAX_VALUE], [Number.MAX_VALUE, -Number.MAX_VALUE]]);\n const r = this.borders[t];\n e < r[0] && (r[0] = e), e > r[1] && (r[1] = e);\n }\n processBorderOverlap(t, e) {\n if (t.x === e.x) {\n if (t.y === e.y) return;\n const r = 0 === t.x ? 0 : 1;\n this.addBorderIntersection(r, e.y), this.addBorderIntersection(r, t.y);\n } else {\n const r = 0 === t.y ? 2 : 3;\n this.addBorderIntersection(r, e.x), this.addBorderIntersection(r, t.x);\n }\n }\n centroid() {\n const t = this.polyCount.reduce((t, e) => t + e.edges, 0);\n return 0 !== t ? this.acc.div(t)._round() : new x(0, 0);\n }\n span() {\n return new x(this.max.x - this.min.x, this.max.y - this.min.y);\n }\n intersectsCount() {\n return this.borders.reduce((t, e) => t + +(e[0] !== Number.MAX_VALUE), 0);\n }\n }\n class th {\n constructor(t) {\n this.zoom = t.zoom, this.canonical = t.canonical, this.overscaling = t.overscaling, this.layers = t.layers, this.layerIds = this.layers.map(t => t.id), this.index = t.index, this.hasPattern = !1, this.edgeRadius = 0, this.projection = t.projection, this.layoutVertexArray = new Os(), this.centroidVertexArray = new wa(), this.indexArray = new ra(), this.programConfigurations = new Ja(t.layers, t.zoom), this.segments = new so(), this.stateDependentLayerIds = this.layers.filter(t => t.isStateDependent()).map(t => t.id), this.enableTerrain = t.enableTerrain;\n }\n populate(t, e, r, n) {\n this.features = [], this.hasPattern = kc(\"fill-extrusion\", this.layers, e), this.featuresOnBorder = [], this.borders = [[], [], [], []], this.borderDoneWithNeighborZ = [-1, -1, -1, -1], this.tileToMeter = function (t) {\n const e = Math.exp(Math.PI * (1 - t.y / (1 << t.z) * 2));\n return 80150034 * e / (e * e + 1) / ao / (1 << t.z);\n }(r), this.edgeRadius = this.layers[0].layout.get(\"fill-extrusion-edge-radius\") / this.tileToMeter;\n for (const {\n feature: i,\n id: s,\n index: a,\n sourceLayerIndex: o\n } of t) {\n const t = this.layers[0]._featureFilter.needGeometry,\n l = ou(i, t);\n if (!this.layers[0]._featureFilter.filter(new ws(this.zoom), l, r)) continue;\n const u = {\n id: s,\n sourceLayerIndex: o,\n index: a,\n geometry: t ? l.geometry : au(i, r, n),\n properties: i.properties,\n type: i.type,\n patterns: {}\n },\n c = this.layoutVertexArray.length;\n this.hasPattern ? this.features.push(Ic(\"fill-extrusion\", this.layers, u, this.zoom, e)) : this.addFeature(u, u.geometry, a, r, {}, e.availableImages, n), e.featureIndex.insert(i, u.geometry, a, o, this.index, c);\n }\n this.sortBorders();\n }\n addFeatures(t, e, r, n, i) {\n for (const t of this.features) {\n const {\n geometry: s\n } = t;\n this.addFeature(t, s, t.index, e, r, n, i);\n }\n this.sortBorders();\n }\n update(t, e, r, n) {\n this.stateDependentLayers.length && this.programConfigurations.updatePaintArrays(t, e, this.stateDependentLayers, r, n);\n }\n isEmpty() {\n return 0 === this.layoutVertexArray.length;\n }\n uploadPending() {\n return !this.uploaded || this.programConfigurations.needsUpload;\n }\n upload(t) {\n this.uploaded || (this.layoutVertexBuffer = t.createVertexBuffer(this.layoutVertexArray, Pc), this.indexBuffer = t.createIndexBuffer(this.indexArray), this.layoutVertexExtArray && (this.layoutVertexExtBuffer = t.createVertexBuffer(this.layoutVertexExtArray, Cc.members, !0))), this.programConfigurations.upload(t), this.uploaded = !0;\n }\n uploadCentroid(t) {\n 0 !== this.centroidVertexArray.length && (this.centroidVertexBuffer ? this.needsCentroidUpdate && this.centroidVertexBuffer.updateData(this.centroidVertexArray) : this.centroidVertexBuffer = t.createVertexBuffer(this.centroidVertexArray, Ec.members, !0), this.needsCentroidUpdate = !1);\n }\n destroy() {\n this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.centroidVertexBuffer && this.centroidVertexBuffer.destroy(), this.layoutVertexExtBuffer && this.layoutVertexExtBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy());\n }\n addFeature(t, e, r, n, i, s, a) {\n const o = [new x(0, 0), new x(ao, ao)],\n l = a.projection,\n u = \"globe\" === l.name,\n c = this.enableTerrain && !u ? new Qc() : null,\n h = \"Polygon\" === Jc[t.type];\n u && !this.layoutVertexExtArray && (this.layoutVertexExtArray = new Ks());\n const p = Ac(e, 500);\n for (let t = p.length - 1; t >= 0; t--) {\n const e = p[t];\n (0 === e.length || (d = e[0]).every(t => t.x <= 0) || d.every(t => t.x >= ao) || d.every(t => t.y <= 0) || d.every(t => t.y >= ao)) && p.splice(t, 1);\n }\n var d;\n let f;\n if (u) f = lh(p, o, n);else {\n f = [];\n for (const t of p) f.push({\n polygon: t,\n bounds: o\n });\n }\n const y = h ? this.edgeRadius : 0;\n for (const {\n polygon: t,\n bounds: e\n } of f) {\n let r = 0,\n i = 0;\n for (const e of t) h && !e[0].equals(e[e.length - 1]) && e.push(e[0]), i += h ? e.length - 1 : e.length;\n const s = this.segments.prepareSegment((h ? 5 : 4) * i, this.layoutVertexArray, this.indexArray);\n if (h) {\n const e = [],\n i = [];\n r = s.vertexLength;\n for (const r of t) {\n let a, o;\n r.length && r !== t[0] && i.push(e.length / 2), a = r[1].sub(r[0])._perp()._unit();\n for (let t = 1; t < r.length; t++) {\n const i = r[t],\n c = r[t === r.length - 1 ? 1 : t + 1];\n let {\n x: h,\n y: p\n } = i;\n if (y) {\n o = c.sub(i)._perp()._unit();\n const t = a.add(o)._unit(),\n e = y * Math.min(4, 1 / (a.x * t.x + a.y * t.y));\n h += e * t.x, p += e * t.y, a = o;\n }\n Yc(this.layoutVertexArray, h, p, 0, 0, 1, 1, 0), s.vertexLength++, e.push(i.x, i.y), u && Wc(this.layoutVertexExtArray, l.projectTilePoint(h, p, n), l.upVector(n, h, p));\n }\n }\n const a = xc(e, i);\n for (let t = 0; t < a.length; t += 3) this.indexArray.emplaceBack(r + a[t], r + a[t + 2], r + a[t + 1]), s.primitiveLength++;\n }\n for (const i of t) {\n c && i.length && c.startRing(i[0]);\n let t,\n a,\n o,\n p = i.length > 4 && sh(i[i.length - 2], i[0], i[1]),\n d = y ? rh(i[i.length - 2], i[0], i[1], y) : 0;\n a = i[1].sub(i[0])._perp()._unit();\n let f = !0;\n for (let m = 1, g = 0; m < i.length; m++) {\n let x = i[m - 1],\n v = i[m];\n const b = i[m === i.length - 1 ? 1 : m + 1];\n if (c && h && c.currentPolyCount.top++, ih(v, x, e)) {\n y && (a = b.sub(v)._perp()._unit(), f = !f);\n continue;\n }\n c && c.append(v, x);\n const w = v.sub(x)._perp(),\n _ = w.x / (Math.abs(w.x) + Math.abs(w.y)),\n A = w.y > 0 ? 1 : 0,\n S = x.dist(v);\n if (g + S > 32768 && (g = 0), y) {\n o = b.sub(v)._perp()._unit();\n let t = nh(x, v, b, eh(a, o), y);\n isNaN(t) && (t = 0);\n const e = v.sub(x)._unit();\n x = x.add(e.mult(d))._round(), v = v.add(e.mult(-t))._round(), d = t, a = o;\n }\n const k = s.vertexLength,\n I = i.length > 4 && sh(x, v, b);\n let M = ah(g, p, f);\n if (Yc(this.layoutVertexArray, x.x, x.y, _, A, 0, 0, M), Yc(this.layoutVertexArray, x.x, x.y, _, A, 0, 1, M), g += S, M = ah(g, I, !f), p = I, Yc(this.layoutVertexArray, v.x, v.y, _, A, 0, 0, M), Yc(this.layoutVertexArray, v.x, v.y, _, A, 0, 1, M), s.vertexLength += 4, this.indexArray.emplaceBack(k + 0, k + 1, k + 2), this.indexArray.emplaceBack(k + 1, k + 3, k + 2), s.primitiveLength += 2, y) {\n const n = r + (1 === m ? i.length - 2 : m - 2),\n a = 1 === m ? r : n + 1;\n if (this.indexArray.emplaceBack(k + 1, n, k + 3), this.indexArray.emplaceBack(n, a, k + 3), s.primitiveLength += 2, void 0 === t && (t = k), !ih(b, i[m], e)) {\n const e = m === i.length - 1 ? t : s.vertexLength;\n this.indexArray.emplaceBack(k + 2, k + 3, e), this.indexArray.emplaceBack(k + 3, e + 1, e), this.indexArray.emplaceBack(k + 3, a, e + 1), s.primitiveLength += 3;\n }\n f = !f;\n }\n if (u) {\n const t = this.layoutVertexExtArray,\n e = l.projectTilePoint(x.x, x.y, n),\n r = l.projectTilePoint(v.x, v.y, n),\n i = l.upVector(n, x.x, x.y),\n s = l.upVector(n, v.x, v.y);\n Wc(t, e, i), Wc(t, e, i), Wc(t, r, s), Wc(t, r, s);\n }\n }\n h && (r += i.length - 1);\n }\n }\n if (c && c.polyCount.length > 0) {\n if (c.borders) {\n c.vertexArrayOffset = this.centroidVertexArray.length;\n const t = c.borders,\n e = this.featuresOnBorder.push(c) - 1;\n for (let r = 0; r < 4; r++) t[r][0] !== Number.MAX_VALUE && this.borders[r].push(e);\n }\n this.encodeCentroid(c.borders ? void 0 : c.centroid(), c);\n }\n this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, t, r, i, s, n);\n }\n sortBorders() {\n for (let t = 0; t < 4; t++) this.borders[t].sort((e, r) => this.featuresOnBorder[e].borders[t][0] - this.featuresOnBorder[r].borders[t][0]);\n }\n encodeCentroid(t, e, r = !0) {\n let n, i;\n if (t) {\n if (0 !== t.y) {\n const r = e.span()._mult(this.tileToMeter);\n n = (Math.max(t.x, 1) << 3) + Math.min(7, Math.round(r.x / 10)), i = (Math.max(t.y, 1) << 3) + Math.min(7, Math.round(r.y / 10));\n } else n = Math.ceil(7 * (t.x + 450)), i = 0;\n } else n = 0, i = +r;\n let s = r ? this.centroidVertexArray.length : e.vertexArrayOffset;\n for (const t of e.polyCount) {\n r && this.centroidVertexArray.resize(this.centroidVertexArray.length + 4 * t.edges + t.top);\n for (let e = 0; e < t.top; e++) this.centroidVertexArray.emplace(s++, n, i);\n for (let e = 0; e < 2 * t.edges; e++) this.centroidVertexArray.emplace(s++, 0, i), this.centroidVertexArray.emplace(s++, n, i);\n }\n }\n }\n function eh(t, e) {\n const r = t.add(e)._unit();\n return t.x * r.x + t.y * r.y;\n }\n function rh(t, e, r, n) {\n const i = e.sub(t)._perp()._unit(),\n s = r.sub(e)._perp()._unit();\n return nh(t, e, r, eh(i, s), n);\n }\n function nh(t, e, r, n, i) {\n const s = Math.sqrt(1 - n * n);\n return Math.min(t.dist(e) / 3, e.dist(r) / 3, i * s / n);\n }\n function ih(t, e, r) {\n return t.x < r[0].x && e.x < r[0].x || t.x > r[1].x && e.x > r[1].x || t.y < r[0].y && e.y < r[0].y || t.y > r[1].y && e.y > r[1].y;\n }\n function sh(t, e, r) {\n if (t.x < 0 || t.x >= ao || e.x < 0 || e.x >= ao || r.x < 0 || r.x >= ao) return !1;\n const n = r.sub(e),\n i = n.perp(),\n s = t.sub(e);\n return (n.x * s.x + n.y * s.y) / Math.sqrt((n.x * n.x + n.y * n.y) * (s.x * s.x + s.y * s.y)) > -.866 && i.x * s.x + i.y * s.y < 0;\n }\n function ah(t, e, r) {\n const n = e ? 2 | t : -3 & t;\n return r ? 1 | n : -2 & n;\n }\n function oh() {\n const t = Math.PI / 32,\n e = Math.tan(t),\n r = Ul;\n return r * Math.sqrt(1 + 2 * e * e) - r;\n }\n function lh(t, e, r) {\n const n = 1 << r.z,\n i = Kl(r.x / n),\n s = Kl((r.x + 1) / n),\n a = Xl(r.y / n),\n o = Xl((r.y + 1) / n);\n return function (t, e, r, n, i = 0, s) {\n const a = [];\n if (!t.length || !r || !n) return a;\n const o = (t, e) => {\n for (const r of t) a.push({\n polygon: r,\n bounds: e\n });\n },\n l = Math.ceil(Math.log2(r)),\n u = Math.ceil(Math.log2(n)),\n c = l - u,\n h = [];\n for (let t = 0; t < Math.abs(c); t++) h.push(c > 0 ? 0 : 1);\n for (let t = 0; t < Math.min(l, u); t++) h.push(0), h.push(1);\n let p = t;\n if (p = Xc(p, e[0].y - i, e[1].y + i, 1), p = Xc(p, e[0].x - i, e[1].x + i, 0), !p.length) return a;\n const d = [];\n for (h.length ? d.push({\n polygons: p,\n bounds: e,\n depth: 0\n }) : o(p, e); d.length;) {\n const t = d.pop(),\n e = t.depth,\n r = h[e],\n n = t.bounds[0],\n a = t.bounds[1],\n l = 0 === r ? n.x : n.y,\n u = 0 === r ? a.x : a.y,\n c = s ? s(r, l, u) : .5 * (l + u),\n p = Xc(t.polygons, l - i, c + i, r),\n f = Xc(t.polygons, c - i, u + i, r);\n if (p.length) {\n const t = [n, new x(0 === r ? c : a.x, 1 === r ? c : a.y)];\n h.length > e + 1 ? d.push({\n polygons: p,\n bounds: t,\n depth: e + 1\n }) : o(p, t);\n }\n if (f.length) {\n const t = [new x(0 === r ? c : n.x, 1 === r ? c : n.y), a];\n h.length > e + 1 ? d.push({\n polygons: f,\n bounds: t,\n depth: e + 1\n }) : o(f, t);\n }\n }\n return a;\n }(t, e, Math.ceil((s - i) / 11.25), Math.ceil((a - o) / 11.25), 1, (t, e, i) => {\n if (0 === t) return .5 * (e + i);\n {\n const t = Xl((r.y + e / ao) / n);\n return (Gl(.5 * (Xl((r.y + i / ao) / n) + t)) * n - r.y) * ao;\n }\n });\n }\n Ji(th, \"FillExtrusionBucket\", {\n omit: [\"layers\", \"features\"]\n }), Ji(Qc, \"PartMetadata\");\n const uh = new Ps({\n \"fill-extrusion-edge-radius\": new Bs(te[\"layout_fill-extrusion\"][\"fill-extrusion-edge-radius\"])\n });\n var ch = {\n paint: new Ps({\n \"fill-extrusion-opacity\": new Bs(te[\"paint_fill-extrusion\"][\"fill-extrusion-opacity\"]),\n \"fill-extrusion-color\": new Es(te[\"paint_fill-extrusion\"][\"fill-extrusion-color\"]),\n \"fill-extrusion-translate\": new Bs(te[\"paint_fill-extrusion\"][\"fill-extrusion-translate\"]),\n \"fill-extrusion-translate-anchor\": new Bs(te[\"paint_fill-extrusion\"][\"fill-extrusion-translate-anchor\"]),\n \"fill-extrusion-pattern\": new Es(te[\"paint_fill-extrusion\"][\"fill-extrusion-pattern\"]),\n \"fill-extrusion-height\": new Es(te[\"paint_fill-extrusion\"][\"fill-extrusion-height\"]),\n \"fill-extrusion-base\": new Es(te[\"paint_fill-extrusion\"][\"fill-extrusion-base\"]),\n \"fill-extrusion-vertical-gradient\": new Bs(te[\"paint_fill-extrusion\"][\"fill-extrusion-vertical-gradient\"]),\n \"fill-extrusion-ambient-occlusion-intensity\": new Bs(te[\"paint_fill-extrusion\"][\"fill-extrusion-ambient-occlusion-intensity\"]),\n \"fill-extrusion-ambient-occlusion-radius\": new Bs(te[\"paint_fill-extrusion\"][\"fill-extrusion-ambient-occlusion-radius\"]),\n \"fill-extrusion-rounded-roof\": new Bs(te[\"paint_fill-extrusion\"][\"fill-extrusion-rounded-roof\"])\n }),\n layout: uh\n };\n function hh(t, e, r) {\n var n = 2 * Math.PI * 6378137 / 256 / Math.pow(2, r);\n return [t * n - 2 * Math.PI * 6378137 / 2, e * n - 2 * Math.PI * 6378137 / 2];\n }\n class ph {\n constructor(t, e, r) {\n this.z = t, this.x = e, this.y = r, this.key = yh(0, t, t, e, r);\n }\n equals(t) {\n return this.z === t.z && this.x === t.x && this.y === t.y;\n }\n url(t, e) {\n const r = function (t, e, r) {\n var n = hh(256 * t, 256 * (e = Math.pow(2, r) - e - 1), r),\n i = hh(256 * (t + 1), 256 * (e + 1), r);\n return n[0] + \",\" + n[1] + \",\" + i[0] + \",\" + i[1];\n }(this.x, this.y, this.z),\n n = function (t, e, r) {\n let n,\n i = \"\";\n for (let s = t; s > 0; s--) n = 1 << s - 1, i += (e & n ? 1 : 0) + (r & n ? 2 : 0);\n return i;\n }(this.z, this.x, this.y);\n return t[(this.x + this.y) % t.length].replace(\"{prefix}\", (this.x % 16).toString(16) + (this.y % 16).toString(16)).replace(/{z}/g, String(this.z)).replace(/{x}/g, String(this.x)).replace(/{y}/g, String(\"tms\" === e ? Math.pow(2, this.z) - this.y - 1 : this.y)).replace(\"{quadkey}\", n).replace(\"{bbox-epsg-3857}\", r);\n }\n toString() {\n return `${this.z}/${this.x}/${this.y}`;\n }\n }\n class dh {\n constructor(t, e) {\n this.wrap = t, this.canonical = e, this.key = yh(t, e.z, e.z, e.x, e.y);\n }\n }\n class fh {\n constructor(t, e, r, n, i) {\n this.overscaledZ = t, this.wrap = e, this.canonical = new ph(r, +n, +i), this.key = 0 === e && t === r ? this.canonical.key : yh(e, t, r, n, i);\n }\n equals(t) {\n return this.overscaledZ === t.overscaledZ && this.wrap === t.wrap && this.canonical.equals(t.canonical);\n }\n scaledTo(t) {\n const e = this.canonical.z - t;\n return t > this.canonical.z ? new fh(t, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y) : new fh(t, this.wrap, t, this.canonical.x >> e, this.canonical.y >> e);\n }\n calculateScaledKey(t, e = !0) {\n if (this.overscaledZ === t && e) return this.key;\n if (t > this.canonical.z) return yh(this.wrap * +e, t, this.canonical.z, this.canonical.x, this.canonical.y);\n {\n const r = this.canonical.z - t;\n return yh(this.wrap * +e, t, t, this.canonical.x >> r, this.canonical.y >> r);\n }\n }\n isChildOf(t) {\n if (t.wrap !== this.wrap) return !1;\n const e = this.canonical.z - t.canonical.z;\n return 0 === t.overscaledZ || t.overscaledZ < this.overscaledZ && t.canonical.x === this.canonical.x >> e && t.canonical.y === this.canonical.y >> e;\n }\n children(t) {\n if (this.overscaledZ >= t) return [new fh(this.overscaledZ + 1, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y)];\n const e = this.canonical.z + 1,\n r = 2 * this.canonical.x,\n n = 2 * this.canonical.y;\n return [new fh(e, this.wrap, e, r, n), new fh(e, this.wrap, e, r + 1, n), new fh(e, this.wrap, e, r, n + 1), new fh(e, this.wrap, e, r + 1, n + 1)];\n }\n isLessThan(t) {\n return this.wrap < t.wrap || !(this.wrap > t.wrap) && (this.overscaledZ < t.overscaledZ || !(this.overscaledZ > t.overscaledZ) && (this.canonical.x < t.canonical.x || !(this.canonical.x > t.canonical.x) && this.canonical.y < t.canonical.y));\n }\n wrapped() {\n return new fh(this.overscaledZ, 0, this.canonical.z, this.canonical.x, this.canonical.y);\n }\n unwrapTo(t) {\n return new fh(this.overscaledZ, t, this.canonical.z, this.canonical.x, this.canonical.y);\n }\n overscaleFactor() {\n return Math.pow(2, this.overscaledZ - this.canonical.z);\n }\n toUnwrapped() {\n return new dh(this.wrap, this.canonical);\n }\n toString() {\n return `${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`;\n }\n }\n function yh(t, e, r, n, i) {\n const s = 1 << Math.min(r, 22);\n let a = s * (i % s) + n % s;\n return t && r < 22 && (a += s * s * ((t < 0 ? -2 * t - 1 : 2 * t) % (1 << 2 * (22 - r)))), 16 * (32 * a + r) + (e - r);\n }\n Ji(ph, \"CanonicalTileID\"), Ji(fh, \"OverscaledTileID\", {\n omit: [\"projMatrix\"]\n });\n class mh extends x {\n constructor(t, e, r) {\n super(t, e), this.z = r;\n }\n }\n function gh(t, e) {\n return t.x * e.x + t.y * e.y;\n }\n function xh(t, e) {\n if (1 === t.length) {\n let r = 0;\n const n = e[r++];\n let i;\n for (; !i || n.equals(i);) if (i = e[r++], !i) return 1 / 0;\n for (; r < e.length; r++) {\n const s = e[r],\n a = t[0],\n o = i.sub(n),\n l = s.sub(n),\n u = a.sub(n),\n c = gh(o, o),\n h = gh(o, l),\n p = gh(l, l),\n d = gh(u, o),\n f = gh(u, l),\n y = c * p - h * h,\n m = (p * d - h * f) / y,\n g = (c * f - h * d) / y,\n x = n.z * (1 - m - g) + i.z * m + s.z * g;\n if (isFinite(x)) return x;\n }\n return 1 / 0;\n }\n {\n let t = 1 / 0;\n for (const r of e) t = Math.min(t, r.z);\n return t;\n }\n }\n function vh(t, e, r, n, i, s, a, o) {\n const l = a * i.getElevationAt(t, e, !0, !0),\n u = 0 !== s[0],\n c = u ? 0 === s[1] ? a * (s[0] / 7 - 450) : a * function (t, e, r) {\n const n = Math.floor(e[0] / 8),\n i = Math.floor(e[1] / 8),\n s = 10 * (e[0] - 8 * n),\n a = 10 * (e[1] - 8 * i),\n o = t.getElevationAt(n, i, !0, !0),\n l = t.getMeterToDEM(r),\n u = Math.floor(.5 * (s * l - 1)),\n c = Math.floor(.5 * (a * l - 1)),\n h = t.tileCoordToPixel(n, i),\n p = 2 * u + 1,\n d = 2 * c + 1,\n f = function (t, e, r, n, i) {\n return [t.getElevationAtPixel(e, r, !0), t.getElevationAtPixel(e + i, r, !0), t.getElevationAtPixel(e, r + i, !0), t.getElevationAtPixel(e + n, r + i, !0)];\n }(t, h.x - u, h.y - c, p, d),\n y = Math.abs(f[0] - f[1]),\n m = Math.abs(f[2] - f[3]),\n g = Math.abs(f[0] - f[2]) + Math.abs(f[1] - f[3]),\n x = Math.min(.25, .5 * l * (y + m) / p),\n v = Math.min(.25, .5 * l * g / d);\n return o + Math.max(x * s, v * a);\n }(i, s, o) : l;\n return {\n base: l + (0 === r) ? -1 : r,\n top: u ? Math.max(c + n, l + r + 2) : l + n\n };\n }\n const bh = Rs([{\n name: \"a_pos_normal\",\n components: 2,\n type: \"Int16\"\n }, {\n name: \"a_data\",\n components: 4,\n type: \"Uint8\"\n }, {\n name: \"a_linesofar\",\n components: 1,\n type: \"Float32\"\n }], 4),\n {\n members: wh\n } = bh,\n _h = Rs([{\n name: \"a_packed\",\n components: 4,\n type: \"Float32\"\n }]),\n {\n members: Ah\n } = _h,\n Sh = Kc.types,\n kh = Math.cos(Math.PI / 180 * 37.5);\n class Ih {\n constructor(t) {\n this.zoom = t.zoom, this.overscaling = t.overscaling, this.layers = t.layers, this.layerIds = this.layers.map(t => t.id), this.index = t.index, this.projection = t.projection, this.hasPattern = !1, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach(t => {\n this.gradients[t.id] = {};\n }), this.layoutVertexArray = new qs(), this.layoutVertexArray2 = new Ns(), this.indexArray = new ra(), this.programConfigurations = new Ja(t.layers, t.zoom), this.segments = new so(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter(t => t.isStateDependent()).map(t => t.id);\n }\n populate(t, e, r, n) {\n this.hasPattern = kc(\"line\", this.layers, e);\n const i = this.layers[0].layout.get(\"line-sort-key\"),\n s = [];\n for (const {\n feature: e,\n id: a,\n index: o,\n sourceLayerIndex: l\n } of t) {\n const t = this.layers[0]._featureFilter.needGeometry,\n u = ou(e, t);\n if (!this.layers[0]._featureFilter.filter(new ws(this.zoom), u, r)) continue;\n const c = i ? i.evaluate(u, {}, r) : void 0,\n h = {\n id: a,\n properties: e.properties,\n type: e.type,\n sourceLayerIndex: l,\n index: o,\n geometry: t ? u.geometry : au(e, r, n),\n patterns: {},\n sortKey: c\n };\n s.push(h);\n }\n i && s.sort((t, e) => t.sortKey - e.sortKey);\n const {\n lineAtlas: a,\n featureIndex: o\n } = e,\n l = this.addConstantDashes(a);\n for (const n of s) {\n const {\n geometry: i,\n index: s,\n sourceLayerIndex: u\n } = n;\n if (l && this.addFeatureDashes(n, a), this.hasPattern) {\n const t = Ic(\"line\", this.layers, n, this.zoom, e);\n this.patternFeatures.push(t);\n } else this.addFeature(n, i, s, r, a.positions, e.availableImages);\n o.insert(t[s].feature, i, s, u, this.index);\n }\n }\n addConstantDashes(t) {\n let e = !1;\n for (const r of this.layers) {\n const n = r.paint.get(\"line-dasharray\").value,\n i = r.layout.get(\"line-cap\").value;\n if (\"constant\" !== n.kind || \"constant\" !== i.kind) e = !0;else {\n const e = i.value,\n r = n.value;\n if (!r) continue;\n t.addDash(r, e);\n }\n }\n return e;\n }\n addFeatureDashes(t, e) {\n const r = this.zoom;\n for (const n of this.layers) {\n const i = n.paint.get(\"line-dasharray\").value,\n s = n.layout.get(\"line-cap\").value;\n if (\"constant\" === i.kind && \"constant\" === s.kind) continue;\n let a, o;\n if (\"constant\" === i.kind) {\n if (a = i.value, !a) continue;\n } else a = i.evaluate({\n zoom: r\n }, t);\n o = \"constant\" === s.kind ? s.value : s.evaluate({\n zoom: r\n }, t), e.addDash(a, o), t.patterns[n.id] = e.getKey(a, o);\n }\n }\n update(t, e, r, n) {\n this.stateDependentLayers.length && this.programConfigurations.updatePaintArrays(t, e, this.stateDependentLayers, r, n);\n }\n addFeatures(t, e, r, n, i) {\n for (const t of this.patternFeatures) this.addFeature(t, t.geometry, t.index, e, r, n);\n }\n isEmpty() {\n return 0 === this.layoutVertexArray.length;\n }\n uploadPending() {\n return !this.uploaded || this.programConfigurations.needsUpload;\n }\n upload(t) {\n this.uploaded || (0 !== this.layoutVertexArray2.length && (this.layoutVertexBuffer2 = t.createVertexBuffer(this.layoutVertexArray2, Ah)), this.layoutVertexBuffer = t.createVertexBuffer(this.layoutVertexArray, wh), this.indexBuffer = t.createIndexBuffer(this.indexArray)), this.programConfigurations.upload(t), this.uploaded = !0;\n }\n destroy() {\n this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy());\n }\n lineFeatureClips(t) {\n if (t.properties && t.properties.hasOwnProperty(\"mapbox_clip_start\") && t.properties.hasOwnProperty(\"mapbox_clip_end\")) return {\n start: +t.properties.mapbox_clip_start,\n end: +t.properties.mapbox_clip_end\n };\n }\n addFeature(t, e, r, n, i, s) {\n const a = this.layers[0].layout,\n o = a.get(\"line-join\").evaluate(t, {}),\n l = a.get(\"line-cap\").evaluate(t, {}),\n u = a.get(\"line-miter-limit\"),\n c = a.get(\"line-round-limit\");\n this.lineClips = this.lineFeatureClips(t);\n for (const r of e) this.addLine(r, t, o, l, u, c);\n this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, t, r, i, s, n);\n }\n addLine(t, e, r, n, i, s) {\n if (this.distance = 0, this.scaledDistance = 0, this.totalDistance = 0, this.lineSoFar = 0, this.lineClips) {\n this.lineClipsArray.push(this.lineClips);\n for (let e = 0; e < t.length - 1; e++) this.totalDistance += t[e].dist(t[e + 1]);\n this.updateScaledDistance(), this.maxLineLength = Math.max(this.maxLineLength, this.totalDistance);\n }\n const a = \"Polygon\" === Sh[e.type];\n let o = t.length;\n for (; o >= 2 && t[o - 1].equals(t[o - 2]);) o--;\n let l = 0;\n for (; l < o - 1 && t[l].equals(t[l + 1]);) l++;\n if (o < (a ? 3 : 2)) return;\n \"bevel\" === r && (i = 1.05);\n const u = this.overscaling <= 16 ? 15 * ao / (512 * this.overscaling) : 0,\n c = this.segments.prepareSegment(10 * o, this.layoutVertexArray, this.indexArray);\n let h, p, d, f, y;\n this.e1 = this.e2 = -1, a && (h = t[o - 2], y = t[l].sub(h)._unit()._perp());\n for (let e = l; e < o; e++) {\n if (d = e === o - 1 ? a ? t[l + 1] : void 0 : t[e + 1], d && t[e].equals(d)) continue;\n y && (f = y), h && (p = h), h = t[e], y = d ? d.sub(h)._unit()._perp() : f, f = f || y;\n let m = f.add(y);\n 0 === m.x && 0 === m.y || m._unit();\n const g = f.x * y.x + f.y * y.y,\n x = m.x * y.x + m.y * y.y,\n v = 0 !== x ? 1 / x : 1 / 0,\n b = 2 * Math.sqrt(2 - 2 * x),\n w = x < kh && p && d,\n _ = f.x * y.y - f.y * y.x > 0;\n if (w && e > l) {\n const t = h.dist(p);\n if (t > 2 * u) {\n const e = h.sub(h.sub(p)._mult(u / t)._round());\n this.updateDistance(p, e), this.addCurrentVertex(e, f, 0, 0, c), p = e;\n }\n }\n const A = p && d;\n let S = A ? r : a ? \"butt\" : n;\n if (A && \"round\" === S && (v < s ? S = \"miter\" : v <= 2 && (S = \"fakeround\")), \"miter\" === S && v > i && (S = \"bevel\"), \"bevel\" === S && (v > 2 && (S = \"flipbevel\"), v < i && (S = \"miter\")), p && this.updateDistance(p, h), \"miter\" === S) m._mult(v), this.addCurrentVertex(h, m, 0, 0, c);else if (\"flipbevel\" === S) {\n if (v > 100) m = y.mult(-1);else {\n const t = v * f.add(y).mag() / f.sub(y).mag();\n m._perp()._mult(t * (_ ? -1 : 1));\n }\n this.addCurrentVertex(h, m, 0, 0, c), this.addCurrentVertex(h, m.mult(-1), 0, 0, c);\n } else if (\"bevel\" === S || \"fakeround\" === S) {\n const t = -Math.sqrt(v * v - 1),\n e = _ ? t : 0,\n r = _ ? 0 : t;\n if (p && this.addCurrentVertex(h, f, e, r, c), \"fakeround\" === S) {\n const t = Math.round(180 * b / Math.PI / 20);\n for (let e = 1; e < t; e++) {\n let r = e / t;\n if (.5 !== r) {\n const t = r - .5;\n r += r * t * (r - 1) * ((1.0904 + g * (g * (3.55645 - 1.43519 * g) - 3.2452)) * t * t + (.848013 + g * (.215638 * g - 1.06021)));\n }\n const n = y.sub(f)._mult(r)._add(f)._unit()._mult(_ ? -1 : 1);\n this.addHalfVertex(h, n.x, n.y, !1, _, 0, c);\n }\n }\n d && this.addCurrentVertex(h, y, -e, -r, c);\n } else if (\"butt\" === S) this.addCurrentVertex(h, m, 0, 0, c);else if (\"square\" === S) {\n const t = p ? 1 : -1;\n p || this.addCurrentVertex(h, m, t, t, c), this.addCurrentVertex(h, m, 0, 0, c), p && this.addCurrentVertex(h, m, t, t, c);\n } else \"round\" === S && (p && (this.addCurrentVertex(h, f, 0, 0, c), this.addCurrentVertex(h, f, 1, 1, c, !0)), d && (this.addCurrentVertex(h, y, -1, -1, c, !0), this.addCurrentVertex(h, y, 0, 0, c)));\n if (w && e < o - 1) {\n const t = h.dist(d);\n if (t > 2 * u) {\n const e = h.add(d.sub(h)._mult(u / t)._round());\n this.updateDistance(h, e), this.addCurrentVertex(e, y, 0, 0, c), h = e;\n }\n }\n }\n }\n addCurrentVertex(t, e, r, n, i, s = !1) {\n const a = e.y * n - e.x,\n o = -e.y - e.x * n;\n this.addHalfVertex(t, e.x + e.y * r, e.y - e.x * r, s, !1, r, i), this.addHalfVertex(t, a, o, s, !0, -n, i);\n }\n addHalfVertex({\n x: t,\n y: e\n }, r, n, i, s, a, o) {\n this.layoutVertexArray.emplaceBack((t << 1) + (i ? 1 : 0), (e << 1) + (s ? 1 : 0), Math.round(63 * r) + 128, Math.round(63 * n) + 128, 1 + (0 === a ? 0 : a < 0 ? -1 : 1), 0, this.lineSoFar), this.lineClips && this.layoutVertexArray2.emplaceBack(this.scaledDistance, this.lineClipsArray.length, this.lineClips.start, this.lineClips.end);\n const l = o.vertexLength++;\n this.e1 >= 0 && this.e2 >= 0 && (this.indexArray.emplaceBack(this.e1, this.e2, l), o.primitiveLength++), s ? this.e2 = l : this.e1 = l;\n }\n updateScaledDistance() {\n if (this.lineClips) {\n const t = this.totalDistance / (this.lineClips.end - this.lineClips.start);\n this.scaledDistance = this.distance / this.totalDistance, this.lineSoFar = t * this.lineClips.start + this.distance;\n } else this.lineSoFar = this.distance;\n }\n updateDistance(t, e) {\n this.distance += t.dist(e), this.updateScaledDistance();\n }\n }\n Ji(Ih, \"LineBucket\", {\n omit: [\"layers\", \"patternFeatures\"]\n });\n const Mh = new Ps({\n \"line-cap\": new Es(te.layout_line[\"line-cap\"]),\n \"line-join\": new Es(te.layout_line[\"line-join\"]),\n \"line-miter-limit\": new Bs(te.layout_line[\"line-miter-limit\"]),\n \"line-round-limit\": new Bs(te.layout_line[\"line-round-limit\"]),\n \"line-sort-key\": new Es(te.layout_line[\"line-sort-key\"])\n });\n var Th = {\n paint: new Ps({\n \"line-opacity\": new Es(te.paint_line[\"line-opacity\"]),\n \"line-color\": new Es(te.paint_line[\"line-color\"]),\n \"line-translate\": new Bs(te.paint_line[\"line-translate\"]),\n \"line-translate-anchor\": new Bs(te.paint_line[\"line-translate-anchor\"]),\n \"line-width\": new Es(te.paint_line[\"line-width\"]),\n \"line-gap-width\": new Es(te.paint_line[\"line-gap-width\"]),\n \"line-offset\": new Es(te.paint_line[\"line-offset\"]),\n \"line-blur\": new Es(te.paint_line[\"line-blur\"]),\n \"line-dasharray\": new Es(te.paint_line[\"line-dasharray\"]),\n \"line-pattern\": new Es(te.paint_line[\"line-pattern\"]),\n \"line-gradient\": new Cs(te.paint_line[\"line-gradient\"]),\n \"line-trim-offset\": new Bs(te.paint_line[\"line-trim-offset\"])\n }),\n layout: Mh\n };\n const zh = new class extends Es {\n possiblyEvaluate(t, e) {\n return e = new ws(Math.floor(e.zoom), {\n now: e.now,\n fadeDuration: e.fadeDuration,\n transition: e.transition\n }), super.possiblyEvaluate(t, e);\n }\n evaluate(t, e, r, n) {\n return e = C({}, e, {\n zoom: Math.floor(e.zoom)\n }), super.evaluate(t, e, r, n);\n }\n }(Th.paint.properties[\"line-width\"].specification);\n function Bh(t, e) {\n return e > 0 ? e + 2 * t : t;\n }\n zh.useIntegerZoom = !0;\n const Eh = Rs([{\n name: \"a_pos_offset\",\n components: 4,\n type: \"Int16\"\n }, {\n name: \"a_tex_size\",\n components: 4,\n type: \"Uint16\"\n }, {\n name: \"a_pixeloffset\",\n components: 4,\n type: \"Int16\"\n }], 4),\n Ch = Rs([{\n name: \"a_globe_anchor\",\n components: 3,\n type: \"Int16\"\n }, {\n name: \"a_globe_normal\",\n components: 3,\n type: \"Float32\"\n }], 4),\n Ph = Rs([{\n name: \"a_projected_pos\",\n components: 4,\n type: \"Float32\"\n }], 4);\n Rs([{\n name: \"a_fade_opacity\",\n components: 1,\n type: \"Uint32\"\n }], 4);\n const Dh = Rs([{\n name: \"a_placed\",\n components: 2,\n type: \"Uint8\"\n }, {\n name: \"a_shift\",\n components: 2,\n type: \"Float32\"\n }]),\n Vh = Rs([{\n name: \"a_size_scale\",\n components: 1,\n type: \"Float32\"\n }, {\n name: \"a_padding\",\n components: 2,\n type: \"Float32\"\n }]);\n Rs([{\n type: \"Int16\",\n name: \"projectedAnchorX\"\n }, {\n type: \"Int16\",\n name: \"projectedAnchorY\"\n }, {\n type: \"Int16\",\n name: \"projectedAnchorZ\"\n }, {\n type: \"Int16\",\n name: \"tileAnchorX\"\n }, {\n type: \"Int16\",\n name: \"tileAnchorY\"\n }, {\n type: \"Float32\",\n name: \"x1\"\n }, {\n type: \"Float32\",\n name: \"y1\"\n }, {\n type: \"Float32\",\n name: \"x2\"\n }, {\n type: \"Float32\",\n name: \"y2\"\n }, {\n type: \"Int16\",\n name: \"padding\"\n }, {\n type: \"Uint32\",\n name: \"featureIndex\"\n }, {\n type: \"Uint16\",\n name: \"sourceLayerIndex\"\n }, {\n type: \"Uint16\",\n name: \"bucketIndex\"\n }]);\n const Lh = Rs([{\n name: \"a_pos\",\n components: 3,\n type: \"Int16\"\n }, {\n name: \"a_anchor_pos\",\n components: 2,\n type: \"Int16\"\n }, {\n name: \"a_extrude\",\n components: 2,\n type: \"Int16\"\n }], 4),\n Fh = Rs([{\n name: \"a_pos_2f\",\n components: 2,\n type: \"Float32\"\n }, {\n name: \"a_radius\",\n components: 1,\n type: \"Float32\"\n }, {\n name: \"a_flags\",\n components: 2,\n type: \"Int16\"\n }], 4);\n Rs([{\n name: \"triangle\",\n components: 3,\n type: \"Uint16\"\n }]), Rs([{\n type: \"Int16\",\n name: \"projectedAnchorX\"\n }, {\n type: \"Int16\",\n name: \"projectedAnchorY\"\n }, {\n type: \"Int16\",\n name: \"projectedAnchorZ\"\n }, {\n type: \"Float32\",\n name: \"tileAnchorX\"\n }, {\n type: \"Float32\",\n name: \"tileAnchorY\"\n }, {\n type: \"Uint16\",\n name: \"glyphStartIndex\"\n }, {\n type: \"Uint16\",\n name: \"numGlyphs\"\n }, {\n type: \"Uint32\",\n name: \"vertexStartIndex\"\n }, {\n type: \"Uint32\",\n name: \"lineStartIndex\"\n }, {\n type: \"Uint32\",\n name: \"lineLength\"\n }, {\n type: \"Uint16\",\n name: \"segment\"\n }, {\n type: \"Uint16\",\n name: \"lowerSize\"\n }, {\n type: \"Uint16\",\n name: \"upperSize\"\n }, {\n type: \"Float32\",\n name: \"lineOffsetX\"\n }, {\n type: \"Float32\",\n name: \"lineOffsetY\"\n }, {\n type: \"Uint8\",\n name: \"writingMode\"\n }, {\n type: \"Uint8\",\n name: \"placedOrientation\"\n }, {\n type: \"Uint8\",\n name: \"hidden\"\n }, {\n type: \"Uint32\",\n name: \"crossTileID\"\n }, {\n type: \"Int16\",\n name: \"associatedIconIndex\"\n }, {\n type: \"Uint8\",\n name: \"flipState\"\n }]), Rs([{\n type: \"Int16\",\n name: \"projectedAnchorX\"\n }, {\n type: \"Int16\",\n name: \"projectedAnchorY\"\n }, {\n type: \"Int16\",\n name: \"projectedAnchorZ\"\n }, {\n type: \"Float32\",\n name: \"tileAnchorX\"\n }, {\n type: \"Float32\",\n name: \"tileAnchorY\"\n }, {\n type: \"Int16\",\n name: \"rightJustifiedTextSymbolIndex\"\n }, {\n type: \"Int16\",\n name: \"centerJustifiedTextSymbolIndex\"\n }, {\n type: \"Int16\",\n name: \"leftJustifiedTextSymbolIndex\"\n }, {\n type: \"Int16\",\n name: \"verticalPlacedTextSymbolIndex\"\n }, {\n type: \"Int16\",\n name: \"placedIconSymbolIndex\"\n }, {\n type: \"Int16\",\n name: \"verticalPlacedIconSymbolIndex\"\n }, {\n type: \"Uint16\",\n name: \"key\"\n }, {\n type: \"Uint16\",\n name: \"textBoxStartIndex\"\n }, {\n type: \"Uint16\",\n name: \"textBoxEndIndex\"\n }, {\n type: \"Uint16\",\n name: \"verticalTextBoxStartIndex\"\n }, {\n type: \"Uint16\",\n name: \"verticalTextBoxEndIndex\"\n }, {\n type: \"Uint16\",\n name: \"iconBoxStartIndex\"\n }, {\n type: \"Uint16\",\n name: \"iconBoxEndIndex\"\n }, {\n type: \"Uint16\",\n name: \"verticalIconBoxStartIndex\"\n }, {\n type: \"Uint16\",\n name: \"verticalIconBoxEndIndex\"\n }, {\n type: \"Uint16\",\n name: \"featureIndex\"\n }, {\n type: \"Uint16\",\n name: \"numHorizontalGlyphVertices\"\n }, {\n type: \"Uint16\",\n name: \"numVerticalGlyphVertices\"\n }, {\n type: \"Uint16\",\n name: \"numIconVertices\"\n }, {\n type: \"Uint16\",\n name: \"numVerticalIconVertices\"\n }, {\n type: \"Uint16\",\n name: \"useRuntimeCollisionCircles\"\n }, {\n type: \"Uint32\",\n name: \"crossTileID\"\n }, {\n type: \"Float32\",\n components: 2,\n name: \"textOffset\"\n }, {\n type: \"Float32\",\n name: \"collisionCircleDiameter\"\n }]), Rs([{\n type: \"Float32\",\n name: \"offsetX\"\n }]), Rs([{\n type: \"Int16\",\n name: \"x\"\n }, {\n type: \"Int16\",\n name: \"y\"\n }]);\n var Rh = 24;\n const Uh = 128;\n function $h(t, e) {\n const {\n expression: r\n } = e;\n if (\"constant\" === r.kind) return {\n kind: \"constant\",\n layoutSize: r.evaluate(new ws(t + 1))\n };\n if (\"source\" === r.kind) return {\n kind: \"source\"\n };\n {\n const {\n zoomStops: e,\n interpolationType: n\n } = r;\n let i = 0;\n for (; i < e.length && e[i] <= t;) i++;\n i = Math.max(0, i - 1);\n let s = i;\n for (; s < e.length && e[s] < t + 1;) s++;\n s = Math.min(e.length - 1, s);\n const a = e[i],\n o = e[s];\n return \"composite\" === r.kind ? {\n kind: \"composite\",\n minZoom: a,\n maxZoom: o,\n interpolationType: n\n } : {\n kind: \"camera\",\n minZoom: a,\n maxZoom: o,\n minSize: r.evaluate(new ws(a)),\n maxSize: r.evaluate(new ws(o)),\n interpolationType: n\n };\n }\n }\n function jh(t, {\n uSize: e,\n uSizeT: r\n }, {\n lowerSize: n,\n upperSize: i\n }) {\n return \"source\" === t.kind ? n / Uh : \"composite\" === t.kind ? Er(n / Uh, i / Uh, r) : e;\n }\n function Oh(t, e) {\n let r = 0,\n n = 0;\n if (\"constant\" === t.kind) n = t.layoutSize;else if (\"source\" !== t.kind) {\n const {\n interpolationType: i,\n minZoom: s,\n maxZoom: a\n } = t,\n o = i ? M(Qr.interpolationFactor(i, e, s, a), 0, 1) : 0;\n \"camera\" === t.kind ? n = Er(t.minSize, t.maxSize, o) : r = o;\n }\n return {\n uSizeT: r,\n uSize: n\n };\n }\n var qh = Object.freeze({\n __proto__: null,\n SIZE_PACK_FACTOR: Uh,\n evaluateSizeForFeature: jh,\n evaluateSizeForZoom: Oh,\n getSizeData: $h\n });\n function Nh(t, e, r) {\n return t.sections.forEach(t => {\n t.text = function (t, e, r) {\n const n = e.layout.get(\"text-transform\").evaluate(r, {});\n return \"uppercase\" === n ? t = t.toLocaleUpperCase() : \"lowercase\" === n && (t = t.toLocaleLowerCase()), bs.applyArabicShaping && (t = bs.applyArabicShaping(t)), t;\n }(t.text, e, r);\n }), t;\n }\n const Gh = {\n \"!\": \"︕\",\n \"#\": \"#\",\n $: \"$\",\n \"%\": \"%\",\n \"&\": \"&\",\n \"(\": \"︵\",\n \")\": \"︶\",\n \"*\": \"*\",\n \"+\": \"+\",\n \",\": \"︐\",\n \"-\": \"︲\",\n \".\": \"・\",\n \"/\": \"/\",\n \":\": \"︓\",\n \";\": \"︔\",\n \"<\": \"︿\",\n \"=\": \"=\",\n \">\": \"﹀\",\n \"?\": \"︖\",\n \"@\": \"@\",\n \"[\": \"﹇\",\n \"\\\\\": \"\\",\n \"]\": \"﹈\",\n \"^\": \"^\",\n _: \"︳\",\n \"`\": \"`\",\n \"{\": \"︷\",\n \"|\": \"―\",\n \"}\": \"︸\",\n \"~\": \"~\",\n \"¢\": \"¢\",\n \"£\": \"£\",\n \"¥\": \"¥\",\n \"¦\": \"¦\",\n \"¬\": \"¬\",\n \"¯\": \" ̄\",\n \"–\": \"︲\",\n \"—\": \"︱\",\n \"‘\": \"﹃\",\n \"’\": \"﹄\",\n \"“\": \"﹁\",\n \"”\": \"﹂\",\n \"…\": \"︙\",\n \"‧\": \"・\",\n \"₩\": \"₩\",\n \"、\": \"︑\",\n \"。\": \"︒\",\n \"〈\": \"︿\",\n \"〉\": \"﹀\",\n \"《\": \"︽\",\n \"》\": \"︾\",\n \"「\": \"﹁\",\n \"」\": \"﹂\",\n \"『\": \"﹃\",\n \"』\": \"﹄\",\n \"【\": \"︻\",\n \"】\": \"︼\",\n \"〔\": \"︹\",\n \"〕\": \"︺\",\n \"〖\": \"︗\",\n \"〗\": \"︘\",\n \"!\": \"︕\",\n \"(\": \"︵\",\n \")\": \"︶\",\n \",\": \"︐\",\n \"-\": \"︲\",\n \".\": \"・\",\n \":\": \"︓\",\n \";\": \"︔\",\n \"<\": \"︿\",\n \">\": \"﹀\",\n \"?\": \"︖\",\n \"[\": \"﹇\",\n \"]\": \"﹈\",\n \"_\": \"︳\",\n \"{\": \"︷\",\n \"|\": \"―\",\n \"}\": \"︸\",\n \"⦅\": \"︵\",\n \"⦆\": \"︶\",\n \"。\": \"︒\",\n \"「\": \"﹁\",\n \"」\": \"﹂\",\n \"←\": \"↑\",\n \"→\": \"↓\"\n };\n function Zh(t) {\n return \"︶\" === t || \"﹈\" === t || \"︸\" === t || \"﹄\" === t || \"﹂\" === t || \"︾\" === t || \"︼\" === t || \"︺\" === t || \"︘\" === t || \"﹀\" === t || \"︐\" === t || \"︓\" === t || \"︔\" === t || \"`\" === t || \" ̄\" === t || \"︑\" === t || \"︒\" === t;\n }\n function Kh(t) {\n return \"︵\" === t || \"﹇\" === t || \"︷\" === t || \"﹃\" === t || \"﹁\" === t || \"︽\" === t || \"︻\" === t || \"︹\" === t || \"︗\" === t || \"︿\" === t;\n }\n var Xh = Yh,\n Jh = function (t, e, r, n, i) {\n var s,\n a,\n o = 8 * i - n - 1,\n l = (1 << o) - 1,\n u = l >> 1,\n c = -7,\n h = r ? i - 1 : 0,\n p = r ? -1 : 1,\n d = t[e + h];\n for (h += p, s = d & (1 << -c) - 1, d >>= -c, c += o; c > 0; s = 256 * s + t[e + h], h += p, c -= 8);\n for (a = s & (1 << -c) - 1, s >>= -c, c += n; c > 0; a = 256 * a + t[e + h], h += p, c -= 8);\n if (0 === s) s = 1 - u;else {\n if (s === l) return a ? NaN : 1 / 0 * (d ? -1 : 1);\n a += Math.pow(2, n), s -= u;\n }\n return (d ? -1 : 1) * a * Math.pow(2, s - n);\n },\n Hh = function (t, e, r, n, i, s) {\n var a,\n o,\n l,\n u = 8 * s - i - 1,\n c = (1 << u) - 1,\n h = c >> 1,\n p = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0,\n d = n ? 0 : s - 1,\n f = n ? 1 : -1,\n y = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0;\n for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (o = isNaN(e) ? 1 : 0, a = c) : (a = Math.floor(Math.log(e) / Math.LN2), e * (l = Math.pow(2, -a)) < 1 && (a--, l *= 2), (e += a + h >= 1 ? p / l : p * Math.pow(2, 1 - h)) * l >= 2 && (a++, l /= 2), a + h >= c ? (o = 0, a = c) : a + h >= 1 ? (o = (e * l - 1) * Math.pow(2, i), a += h) : (o = e * Math.pow(2, h - 1) * Math.pow(2, i), a = 0)); i >= 8; t[r + d] = 255 & o, d += f, o /= 256, i -= 8);\n for (a = a << i | o, u += i; u > 0; t[r + d] = 255 & a, d += f, a /= 256, u -= 8);\n t[r + d - f] |= 128 * y;\n };\n /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\n function Yh(t) {\n this.buf = ArrayBuffer.isView && ArrayBuffer.isView(t) ? t : new Uint8Array(t || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;\n }\n Yh.Varint = 0, Yh.Fixed64 = 1, Yh.Bytes = 2, Yh.Fixed32 = 5;\n var Wh = 4294967296,\n Qh = 1 / Wh,\n tp = \"undefined\" == typeof TextDecoder ? null : new TextDecoder(\"utf8\");\n function ep(t) {\n return t.type === Yh.Bytes ? t.readVarint() + t.pos : t.pos + 1;\n }\n function rp(t, e, r) {\n return r ? 4294967296 * e + (t >>> 0) : 4294967296 * (e >>> 0) + (t >>> 0);\n }\n function np(t, e, r) {\n var n = e <= 16383 ? 1 : e <= 2097151 ? 2 : e <= 268435455 ? 3 : Math.floor(Math.log(e) / (7 * Math.LN2));\n r.realloc(n);\n for (var i = r.pos - 1; i >= t; i--) r.buf[i + n] = r.buf[i];\n }\n function ip(t, e) {\n for (var r = 0; r < t.length; r++) e.writeVarint(t[r]);\n }\n function sp(t, e) {\n for (var r = 0; r < t.length; r++) e.writeSVarint(t[r]);\n }\n function ap(t, e) {\n for (var r = 0; r < t.length; r++) e.writeFloat(t[r]);\n }\n function op(t, e) {\n for (var r = 0; r < t.length; r++) e.writeDouble(t[r]);\n }\n function lp(t, e) {\n for (var r = 0; r < t.length; r++) e.writeBoolean(t[r]);\n }\n function up(t, e) {\n for (var r = 0; r < t.length; r++) e.writeFixed32(t[r]);\n }\n function cp(t, e) {\n for (var r = 0; r < t.length; r++) e.writeSFixed32(t[r]);\n }\n function hp(t, e) {\n for (var r = 0; r < t.length; r++) e.writeFixed64(t[r]);\n }\n function pp(t, e) {\n for (var r = 0; r < t.length; r++) e.writeSFixed64(t[r]);\n }\n function dp(t, e) {\n return (t[e] | t[e + 1] << 8 | t[e + 2] << 16) + 16777216 * t[e + 3];\n }\n function fp(t, e, r) {\n t[r] = e, t[r + 1] = e >>> 8, t[r + 2] = e >>> 16, t[r + 3] = e >>> 24;\n }\n function yp(t, e) {\n return (t[e] | t[e + 1] << 8 | t[e + 2] << 16) + (t[e + 3] << 24);\n }\n Yh.prototype = {\n destroy: function () {\n this.buf = null;\n },\n readFields: function (t, e, r) {\n for (r = r || this.length; this.pos < r;) {\n var n = this.readVarint(),\n i = n >> 3,\n s = this.pos;\n this.type = 7 & n, t(i, e, this), this.pos === s && this.skip(n);\n }\n return e;\n },\n readMessage: function (t, e) {\n return this.readFields(t, e, this.readVarint() + this.pos);\n },\n readFixed32: function () {\n var t = dp(this.buf, this.pos);\n return this.pos += 4, t;\n },\n readSFixed32: function () {\n var t = yp(this.buf, this.pos);\n return this.pos += 4, t;\n },\n readFixed64: function () {\n var t = dp(this.buf, this.pos) + dp(this.buf, this.pos + 4) * Wh;\n return this.pos += 8, t;\n },\n readSFixed64: function () {\n var t = dp(this.buf, this.pos) + yp(this.buf, this.pos + 4) * Wh;\n return this.pos += 8, t;\n },\n readFloat: function () {\n var t = Jh(this.buf, this.pos, !0, 23, 4);\n return this.pos += 4, t;\n },\n readDouble: function () {\n var t = Jh(this.buf, this.pos, !0, 52, 8);\n return this.pos += 8, t;\n },\n readVarint: function (t) {\n var e,\n r,\n n = this.buf;\n return e = 127 & (r = n[this.pos++]), r < 128 ? e : (e |= (127 & (r = n[this.pos++])) << 7, r < 128 ? e : (e |= (127 & (r = n[this.pos++])) << 14, r < 128 ? e : (e |= (127 & (r = n[this.pos++])) << 21, r < 128 ? e : function (t, e, r) {\n var n,\n i,\n s = r.buf;\n if (n = (112 & (i = s[r.pos++])) >> 4, i < 128) return rp(t, n, e);\n if (n |= (127 & (i = s[r.pos++])) << 3, i < 128) return rp(t, n, e);\n if (n |= (127 & (i = s[r.pos++])) << 10, i < 128) return rp(t, n, e);\n if (n |= (127 & (i = s[r.pos++])) << 17, i < 128) return rp(t, n, e);\n if (n |= (127 & (i = s[r.pos++])) << 24, i < 128) return rp(t, n, e);\n if (n |= (1 & (i = s[r.pos++])) << 31, i < 128) return rp(t, n, e);\n throw new Error(\"Expected varint not more than 10 bytes\");\n }(e |= (15 & (r = n[this.pos])) << 28, t, this))));\n },\n readVarint64: function () {\n return this.readVarint(!0);\n },\n readSVarint: function () {\n var t = this.readVarint();\n return t % 2 == 1 ? (t + 1) / -2 : t / 2;\n },\n readBoolean: function () {\n return Boolean(this.readVarint());\n },\n readString: function () {\n var t = this.readVarint() + this.pos,\n e = this.pos;\n return this.pos = t, t - e >= 12 && tp ? function (t, e, r) {\n return tp.decode(t.subarray(e, r));\n }(this.buf, e, t) : function (t, e, r) {\n for (var n = \"\", i = e; i < r;) {\n var s,\n a,\n o,\n l = t[i],\n u = null,\n c = l > 239 ? 4 : l > 223 ? 3 : l > 191 ? 2 : 1;\n if (i + c > r) break;\n 1 === c ? l < 128 && (u = l) : 2 === c ? 128 == (192 & (s = t[i + 1])) && (u = (31 & l) << 6 | 63 & s) <= 127 && (u = null) : 3 === c ? (a = t[i + 2], 128 == (192 & (s = t[i + 1])) && 128 == (192 & a) && ((u = (15 & l) << 12 | (63 & s) << 6 | 63 & a) <= 2047 || u >= 55296 && u <= 57343) && (u = null)) : 4 === c && (a = t[i + 2], o = t[i + 3], 128 == (192 & (s = t[i + 1])) && 128 == (192 & a) && 128 == (192 & o) && ((u = (15 & l) << 18 | (63 & s) << 12 | (63 & a) << 6 | 63 & o) <= 65535 || u >= 1114112) && (u = null)), null === u ? (u = 65533, c = 1) : u > 65535 && (u -= 65536, n += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | 1023 & u), n += String.fromCharCode(u), i += c;\n }\n return n;\n }(this.buf, e, t);\n },\n readBytes: function () {\n var t = this.readVarint() + this.pos,\n e = this.buf.subarray(this.pos, t);\n return this.pos = t, e;\n },\n readPackedVarint: function (t, e) {\n if (this.type !== Yh.Bytes) return t.push(this.readVarint(e));\n var r = ep(this);\n for (t = t || []; this.pos < r;) t.push(this.readVarint(e));\n return t;\n },\n readPackedSVarint: function (t) {\n if (this.type !== Yh.Bytes) return t.push(this.readSVarint());\n var e = ep(this);\n for (t = t || []; this.pos < e;) t.push(this.readSVarint());\n return t;\n },\n readPackedBoolean: function (t) {\n if (this.type !== Yh.Bytes) return t.push(this.readBoolean());\n var e = ep(this);\n for (t = t || []; this.pos < e;) t.push(this.readBoolean());\n return t;\n },\n readPackedFloat: function (t) {\n if (this.type !== Yh.Bytes) return t.push(this.readFloat());\n var e = ep(this);\n for (t = t || []; this.pos < e;) t.push(this.readFloat());\n return t;\n },\n readPackedDouble: function (t) {\n if (this.type !== Yh.Bytes) return t.push(this.readDouble());\n var e = ep(this);\n for (t = t || []; this.pos < e;) t.push(this.readDouble());\n return t;\n },\n readPackedFixed32: function (t) {\n if (this.type !== Yh.Bytes) return t.push(this.readFixed32());\n var e = ep(this);\n for (t = t || []; this.pos < e;) t.push(this.readFixed32());\n return t;\n },\n readPackedSFixed32: function (t) {\n if (this.type !== Yh.Bytes) return t.push(this.readSFixed32());\n var e = ep(this);\n for (t = t || []; this.pos < e;) t.push(this.readSFixed32());\n return t;\n },\n readPackedFixed64: function (t) {\n if (this.type !== Yh.Bytes) return t.push(this.readFixed64());\n var e = ep(this);\n for (t = t || []; this.pos < e;) t.push(this.readFixed64());\n return t;\n },\n readPackedSFixed64: function (t) {\n if (this.type !== Yh.Bytes) return t.push(this.readSFixed64());\n var e = ep(this);\n for (t = t || []; this.pos < e;) t.push(this.readSFixed64());\n return t;\n },\n skip: function (t) {\n var e = 7 & t;\n if (e === Yh.Varint) for (; this.buf[this.pos++] > 127;);else if (e === Yh.Bytes) this.pos = this.readVarint() + this.pos;else if (e === Yh.Fixed32) this.pos += 4;else {\n if (e !== Yh.Fixed64) throw new Error(\"Unimplemented type: \" + e);\n this.pos += 8;\n }\n },\n writeTag: function (t, e) {\n this.writeVarint(t << 3 | e);\n },\n realloc: function (t) {\n for (var e = this.length || 16; e < this.pos + t;) e *= 2;\n if (e !== this.length) {\n var r = new Uint8Array(e);\n r.set(this.buf), this.buf = r, this.length = e;\n }\n },\n finish: function () {\n return this.length = this.pos, this.pos = 0, this.buf.subarray(0, this.length);\n },\n writeFixed32: function (t) {\n this.realloc(4), fp(this.buf, t, this.pos), this.pos += 4;\n },\n writeSFixed32: function (t) {\n this.realloc(4), fp(this.buf, t, this.pos), this.pos += 4;\n },\n writeFixed64: function (t) {\n this.realloc(8), fp(this.buf, -1 & t, this.pos), fp(this.buf, Math.floor(t * Qh), this.pos + 4), this.pos += 8;\n },\n writeSFixed64: function (t) {\n this.realloc(8), fp(this.buf, -1 & t, this.pos), fp(this.buf, Math.floor(t * Qh), this.pos + 4), this.pos += 8;\n },\n writeVarint: function (t) {\n (t = +t || 0) > 268435455 || t < 0 ? function (t, e) {\n var r, n;\n if (t >= 0 ? (r = t % 4294967296 | 0, n = t / 4294967296 | 0) : (n = ~(-t / 4294967296), 4294967295 ^ (r = ~(-t % 4294967296)) ? r = r + 1 | 0 : (r = 0, n = n + 1 | 0)), t >= 0x10000000000000000 || t < -0x10000000000000000) throw new Error(\"Given varint doesn't fit into 10 bytes\");\n e.realloc(10), function (t, e, r) {\n r.buf[r.pos++] = 127 & t | 128, t >>>= 7, r.buf[r.pos++] = 127 & t | 128, t >>>= 7, r.buf[r.pos++] = 127 & t | 128, t >>>= 7, r.buf[r.pos++] = 127 & t | 128, r.buf[r.pos] = 127 & (t >>>= 7);\n }(r, 0, e), function (t, e) {\n var r = (7 & t) << 4;\n e.buf[e.pos++] |= r | ((t >>>= 3) ? 128 : 0), t && (e.buf[e.pos++] = 127 & t | ((t >>>= 7) ? 128 : 0), t && (e.buf[e.pos++] = 127 & t | ((t >>>= 7) ? 128 : 0), t && (e.buf[e.pos++] = 127 & t | ((t >>>= 7) ? 128 : 0), t && (e.buf[e.pos++] = 127 & t | ((t >>>= 7) ? 128 : 0), t && (e.buf[e.pos++] = 127 & t)))));\n }(n, e);\n }(t, this) : (this.realloc(4), this.buf[this.pos++] = 127 & t | (t > 127 ? 128 : 0), t <= 127 || (this.buf[this.pos++] = 127 & (t >>>= 7) | (t > 127 ? 128 : 0), t <= 127 || (this.buf[this.pos++] = 127 & (t >>>= 7) | (t > 127 ? 128 : 0), t <= 127 || (this.buf[this.pos++] = t >>> 7 & 127))));\n },\n writeSVarint: function (t) {\n this.writeVarint(t < 0 ? 2 * -t - 1 : 2 * t);\n },\n writeBoolean: function (t) {\n this.writeVarint(Boolean(t));\n },\n writeString: function (t) {\n t = String(t), this.realloc(4 * t.length), this.pos++;\n var e = this.pos;\n this.pos = function (t, e, r) {\n for (var n, i, s = 0; s < e.length; s++) {\n if ((n = e.charCodeAt(s)) > 55295 && n < 57344) {\n if (!i) {\n n > 56319 || s + 1 === e.length ? (t[r++] = 239, t[r++] = 191, t[r++] = 189) : i = n;\n continue;\n }\n if (n < 56320) {\n t[r++] = 239, t[r++] = 191, t[r++] = 189, i = n;\n continue;\n }\n n = i - 55296 << 10 | n - 56320 | 65536, i = null;\n } else i && (t[r++] = 239, t[r++] = 191, t[r++] = 189, i = null);\n n < 128 ? t[r++] = n : (n < 2048 ? t[r++] = n >> 6 | 192 : (n < 65536 ? t[r++] = n >> 12 | 224 : (t[r++] = n >> 18 | 240, t[r++] = n >> 12 & 63 | 128), t[r++] = n >> 6 & 63 | 128), t[r++] = 63 & n | 128);\n }\n return r;\n }(this.buf, t, this.pos);\n var r = this.pos - e;\n r >= 128 && np(e, r, this), this.pos = e - 1, this.writeVarint(r), this.pos += r;\n },\n writeFloat: function (t) {\n this.realloc(4), Hh(this.buf, t, this.pos, !0, 23, 4), this.pos += 4;\n },\n writeDouble: function (t) {\n this.realloc(8), Hh(this.buf, t, this.pos, !0, 52, 8), this.pos += 8;\n },\n writeBytes: function (t) {\n var e = t.length;\n this.writeVarint(e), this.realloc(e);\n for (var r = 0; r < e; r++) this.buf[this.pos++] = t[r];\n },\n writeRawMessage: function (t, e) {\n this.pos++;\n var r = this.pos;\n t(e, this);\n var n = this.pos - r;\n n >= 128 && np(r, n, this), this.pos = r - 1, this.writeVarint(n), this.pos += n;\n },\n writeMessage: function (t, e, r) {\n this.writeTag(t, Yh.Bytes), this.writeRawMessage(e, r);\n },\n writePackedVarint: function (t, e) {\n e.length && this.writeMessage(t, ip, e);\n },\n writePackedSVarint: function (t, e) {\n e.length && this.writeMessage(t, sp, e);\n },\n writePackedBoolean: function (t, e) {\n e.length && this.writeMessage(t, lp, e);\n },\n writePackedFloat: function (t, e) {\n e.length && this.writeMessage(t, ap, e);\n },\n writePackedDouble: function (t, e) {\n e.length && this.writeMessage(t, op, e);\n },\n writePackedFixed32: function (t, e) {\n e.length && this.writeMessage(t, up, e);\n },\n writePackedSFixed32: function (t, e) {\n e.length && this.writeMessage(t, cp, e);\n },\n writePackedFixed64: function (t, e) {\n e.length && this.writeMessage(t, hp, e);\n },\n writePackedSFixed64: function (t, e) {\n e.length && this.writeMessage(t, pp, e);\n },\n writeBytesField: function (t, e) {\n this.writeTag(t, Yh.Bytes), this.writeBytes(e);\n },\n writeFixed32Field: function (t, e) {\n this.writeTag(t, Yh.Fixed32), this.writeFixed32(e);\n },\n writeSFixed32Field: function (t, e) {\n this.writeTag(t, Yh.Fixed32), this.writeSFixed32(e);\n },\n writeFixed64Field: function (t, e) {\n this.writeTag(t, Yh.Fixed64), this.writeFixed64(e);\n },\n writeSFixed64Field: function (t, e) {\n this.writeTag(t, Yh.Fixed64), this.writeSFixed64(e);\n },\n writeVarintField: function (t, e) {\n this.writeTag(t, Yh.Varint), this.writeVarint(e);\n },\n writeSVarintField: function (t, e) {\n this.writeTag(t, Yh.Varint), this.writeSVarint(e);\n },\n writeStringField: function (t, e) {\n this.writeTag(t, Yh.Bytes), this.writeString(e);\n },\n writeFloatField: function (t, e) {\n this.writeTag(t, Yh.Fixed32), this.writeFloat(e);\n },\n writeDoubleField: function (t, e) {\n this.writeTag(t, Yh.Fixed64), this.writeDouble(e);\n },\n writeBooleanField: function (t, e) {\n this.writeVarintField(t, Boolean(e));\n }\n };\n var mp = p(Xh);\n const gp = 3;\n function xp(t, e, r) {\n e.glyphs = [], 1 === t && r.readMessage(vp, e);\n }\n function vp(t, e, r) {\n if (3 === t) {\n const {\n id: t,\n bitmap: n,\n width: i,\n height: s,\n left: a,\n top: o,\n advance: l\n } = r.readMessage(bp, {});\n e.glyphs.push({\n id: t,\n bitmap: new Ru({\n width: i + 2 * gp,\n height: s + 2 * gp\n }, n),\n metrics: {\n width: i,\n height: s,\n left: a,\n top: o,\n advance: l\n }\n });\n } else 4 === t ? e.ascender = r.readSVarint() : 5 === t && (e.descender = r.readSVarint());\n }\n function bp(t, e, r) {\n 1 === t ? e.id = r.readVarint() : 2 === t ? e.bitmap = r.readBytes() : 3 === t ? e.width = r.readVarint() : 4 === t ? e.height = r.readVarint() : 5 === t ? e.left = r.readSVarint() : 6 === t ? e.top = r.readSVarint() : 7 === t && (e.advance = r.readVarint());\n }\n const wp = gp;\n function _p(t) {\n let e = 0,\n r = 0;\n for (const n of t) e += n.w * n.h, r = Math.max(r, n.w);\n t.sort((t, e) => e.h - t.h);\n const n = [{\n x: 0,\n y: 0,\n w: Math.max(Math.ceil(Math.sqrt(e / .95)), r),\n h: 1 / 0\n }];\n let i = 0,\n s = 0;\n for (const e of t) for (let t = n.length - 1; t >= 0; t--) {\n const r = n[t];\n if (!(e.w > r.w || e.h > r.h)) {\n if (e.x = r.x, e.y = r.y, s = Math.max(s, e.y + e.h), i = Math.max(i, e.x + e.w), e.w === r.w && e.h === r.h) {\n const e = n.pop();\n t < n.length && (n[t] = e);\n } else e.h === r.h ? (r.x += e.w, r.w -= e.w) : e.w === r.w ? (r.y += e.h, r.h -= e.h) : (n.push({\n x: r.x + e.w,\n y: r.y,\n w: r.w - e.w,\n h: e.h\n }), r.y += e.h, r.h -= e.h);\n break;\n }\n }\n return {\n w: i,\n h: s,\n fill: e / (i * s) || 0\n };\n }\n const Ap = 1;\n class Sp {\n constructor(t, {\n pixelRatio: e,\n version: r,\n stretchX: n,\n stretchY: i,\n content: s\n }) {\n this.paddedRect = t, this.pixelRatio = e, this.stretchX = n, this.stretchY = i, this.content = s, this.version = r;\n }\n get tl() {\n return [this.paddedRect.x + Ap, this.paddedRect.y + Ap];\n }\n get br() {\n return [this.paddedRect.x + this.paddedRect.w - Ap, this.paddedRect.y + this.paddedRect.h - Ap];\n }\n get displaySize() {\n return [(this.paddedRect.w - 2 * Ap) / this.pixelRatio, (this.paddedRect.h - 2 * Ap) / this.pixelRatio];\n }\n }\n class kp {\n constructor(t, e) {\n const r = {},\n n = {};\n this.haveRenderCallbacks = [];\n const i = [];\n this.addImages(t, r, i), this.addImages(e, n, i);\n const {\n w: s,\n h: a\n } = _p(i),\n o = new Uu({\n width: s || 1,\n height: a || 1\n });\n for (const e in t) {\n const n = t[e],\n i = r[e].paddedRect;\n Uu.copy(n.data, o, {\n x: 0,\n y: 0\n }, {\n x: i.x + Ap,\n y: i.y + Ap\n }, n.data);\n }\n for (const t in e) {\n const r = e[t],\n i = n[t].paddedRect,\n s = i.x + Ap,\n a = i.y + Ap,\n l = r.data.width,\n u = r.data.height;\n Uu.copy(r.data, o, {\n x: 0,\n y: 0\n }, {\n x: s,\n y: a\n }, r.data), Uu.copy(r.data, o, {\n x: 0,\n y: u - 1\n }, {\n x: s,\n y: a - 1\n }, {\n width: l,\n height: 1\n }), Uu.copy(r.data, o, {\n x: 0,\n y: 0\n }, {\n x: s,\n y: a + u\n }, {\n width: l,\n height: 1\n }), Uu.copy(r.data, o, {\n x: l - 1,\n y: 0\n }, {\n x: s - 1,\n y: a\n }, {\n width: 1,\n height: u\n }), Uu.copy(r.data, o, {\n x: 0,\n y: 0\n }, {\n x: s + l,\n y: a\n }, {\n width: 1,\n height: u\n });\n }\n this.image = o, this.iconPositions = r, this.patternPositions = n;\n }\n addImages(t, e, r) {\n for (const n in t) {\n const i = t[n],\n s = {\n x: 0,\n y: 0,\n w: i.data.width + 2 * Ap,\n h: i.data.height + 2 * Ap\n };\n r.push(s), e[n] = new Sp(s, i), i.hasRenderCallback && this.haveRenderCallbacks.push(n);\n }\n }\n patchUpdatedImages(t, e) {\n this.haveRenderCallbacks = this.haveRenderCallbacks.filter(e => t.hasImage(e)), t.dispatchRenderCallbacks(this.haveRenderCallbacks);\n for (const r in t.updatedImages) this.patchUpdatedImage(this.iconPositions[r], t.getImage(r), e), this.patchUpdatedImage(this.patternPositions[r], t.getImage(r), e);\n }\n patchUpdatedImage(t, e, r) {\n if (!t || !e) return;\n if (t.version === e.version) return;\n t.version = e.version;\n const [n, i] = t.tl;\n r.update(e.data, void 0, {\n x: n,\n y: i\n });\n }\n }\n Ji(Sp, \"ImagePosition\"), Ji(kp, \"ImageAtlas\");\n const Ip = {\n horizontal: 1,\n vertical: 2,\n horizontalOnly: 3\n },\n Mp = -17;\n class Tp {\n constructor() {\n this.scale = 1, this.fontStack = \"\", this.imageName = null;\n }\n static forText(t, e) {\n const r = new Tp();\n return r.scale = t || 1, r.fontStack = e, r;\n }\n static forImage(t) {\n const e = new Tp();\n return e.imageName = t, e;\n }\n }\n class zp {\n constructor() {\n this.text = \"\", this.sectionIndex = [], this.sections = [], this.imageSectionID = null;\n }\n static fromFeature(t, e) {\n const r = new zp();\n for (let n = 0; n < t.sections.length; n++) {\n const i = t.sections[n];\n i.image ? r.addImageSection(i) : r.addTextSection(i, e);\n }\n return r;\n }\n length() {\n return this.text.length;\n }\n getSection(t) {\n return this.sections[this.sectionIndex[t]];\n }\n getSections() {\n return this.sections;\n }\n getSectionIndex(t) {\n return this.sectionIndex[t];\n }\n getCharCode(t) {\n return this.text.charCodeAt(t);\n }\n verticalizePunctuation(t) {\n this.text = function (t, e) {\n let r = \"\";\n for (let n = 0; n < t.length; n++) {\n const i = t.charCodeAt(n + 1) || null,\n s = t.charCodeAt(n - 1) || null;\n r += !e && (i && ss(i) && !Gh[t[n + 1]] || s && ss(s) && !Gh[t[n - 1]]) || !Gh[t[n]] ? t[n] : Gh[t[n]];\n }\n return r;\n }(this.text, t);\n }\n trim() {\n let t = 0;\n for (let e = 0; e < this.text.length && Ep[this.text.charCodeAt(e)]; e++) t++;\n let e = this.text.length;\n for (let r = this.text.length - 1; r >= 0 && r >= t && Ep[this.text.charCodeAt(r)]; r--) e--;\n this.text = this.text.substring(t, e), this.sectionIndex = this.sectionIndex.slice(t, e);\n }\n substring(t, e) {\n const r = new zp();\n return r.text = this.text.substring(t, e), r.sectionIndex = this.sectionIndex.slice(t, e), r.sections = this.sections, r;\n }\n toString() {\n return this.text;\n }\n getMaxScale() {\n return this.sectionIndex.reduce((t, e) => Math.max(t, this.sections[e].scale), 0);\n }\n addTextSection(t, e) {\n this.text += t.text, this.sections.push(Tp.forText(t.scale, t.fontStack || e));\n const r = this.sections.length - 1;\n for (let e = 0; e < t.text.length; ++e) this.sectionIndex.push(r);\n }\n addImageSection(t) {\n const e = t.image ? t.image.name : \"\";\n if (0 === e.length) return void N(\"Can't add FormattedSection with an empty image.\");\n const r = this.getNextImageSectionCharCode();\n r ? (this.text += String.fromCharCode(r), this.sections.push(Tp.forImage(e)), this.sectionIndex.push(this.sections.length - 1)) : N(\"Reached maximum number of images 6401\");\n }\n getNextImageSectionCharCode() {\n return this.imageSectionID ? this.imageSectionID >= 63743 ? null : ++this.imageSectionID : (this.imageSectionID = 57344, this.imageSectionID);\n }\n }\n function Bp(t, e, r, n, i, s, a, o, l, u, c, h, p, d, f) {\n const y = zp.fromFeature(t, i);\n h === Ip.vertical && y.verticalizePunctuation(p);\n let m = [];\n const g = function (t, e, r, n, i, s) {\n if (!t) return [];\n const a = [],\n o = function (t, e, r, n, i, s) {\n let a = 0;\n for (let r = 0; r < t.length(); r++) {\n const o = t.getSection(r);\n a += Pp(t.getCharCode(r), o, n, i, e, s);\n }\n return a / Math.max(1, Math.ceil(a / r));\n }(t, e, r, n, i, s),\n l = t.text.indexOf(\"​\") >= 0;\n let u = 0;\n for (let r = 0; r < t.length(); r++) {\n const h = t.getSection(r),\n p = t.getCharCode(r);\n if (Ep[p] || (u += Pp(p, h, n, i, e, s)), r < t.length() - 1) {\n const e = !((c = p) < 11904 || !(ts[\"Bopomofo Extended\"](c) || ts.Bopomofo(c) || ts[\"CJK Compatibility Forms\"](c) || ts[\"CJK Compatibility Ideographs\"](c) || ts[\"CJK Compatibility\"](c) || ts[\"CJK Radicals Supplement\"](c) || ts[\"CJK Strokes\"](c) || ts[\"CJK Symbols and Punctuation\"](c) || ts[\"CJK Unified Ideographs Extension A\"](c) || ts[\"CJK Unified Ideographs\"](c) || ts[\"Enclosed CJK Letters and Months\"](c) || ts[\"Halfwidth and Fullwidth Forms\"](c) || ts.Hiragana(c) || ts[\"Ideographic Description Characters\"](c) || ts[\"Kangxi Radicals\"](c) || ts[\"Katakana Phonetic Extensions\"](c) || ts.Katakana(c) || ts[\"Vertical Forms\"](c) || ts[\"Yi Radicals\"](c) || ts[\"Yi Syllables\"](c)));\n (Cp[p] || e || h.imageName) && a.push(Lp(r + 1, u, o, a, Vp(p, t.getCharCode(r + 1), e && l), !1));\n }\n }\n var c;\n return Fp(Lp(t.length(), u, o, a, 0, !0));\n }(y, u, s, e, n, d),\n {\n processBidirectionalText: x,\n processStyledBidirectionalText: v\n } = bs;\n if (x && 1 === y.sections.length) {\n const t = x(y.toString(), g);\n for (const e of t) {\n const t = new zp();\n t.text = e, t.sections = y.sections;\n for (let r = 0; r < e.length; r++) t.sectionIndex.push(0);\n m.push(t);\n }\n } else if (v) {\n const t = v(y.text, y.sectionIndex, g);\n for (const e of t) {\n const t = new zp();\n t.text = e[0], t.sectionIndex = e[1], t.sections = y.sections, m.push(t);\n }\n } else m = function (t, e) {\n const r = [],\n n = t.text;\n let i = 0;\n for (const n of e) r.push(t.substring(i, n)), i = n;\n return i < n.length && r.push(t.substring(i, n.length)), r;\n }(y, g);\n const b = [],\n w = {\n positionedLines: b,\n text: y.toString(),\n top: c[1],\n bottom: c[1],\n left: c[0],\n right: c[0],\n writingMode: h,\n iconsInText: !1,\n verticalizable: !1,\n hasBaseline: !1\n };\n return function (t, e, r, n, i, s, a, o, l, u, c, h) {\n let p = 0,\n d = 0,\n f = 0;\n const y = \"right\" === o ? 1 : \"left\" === o ? 0 : .5;\n let m = !1;\n for (const t of i) {\n const r = t.getSections();\n for (const t of r) {\n if (t.imageName) continue;\n const r = e[t.fontStack];\n if (r && (m = void 0 !== r.ascender && void 0 !== r.descender, !m)) break;\n }\n if (!m) break;\n }\n let g = 0;\n for (const a of i) {\n a.trim();\n const i = a.getMaxScale(),\n o = (i - 1) * Rh,\n v = {\n positionedGlyphs: [],\n lineOffset: 0\n };\n t.positionedLines[g] = v;\n const b = v.positionedGlyphs;\n let w = 0;\n if (!a.length()) {\n d += s, ++g;\n continue;\n }\n let _ = 0,\n A = 0;\n for (let s = 0; s < a.length(); s++) {\n const o = a.getSection(s),\n f = a.getSectionIndex(s),\n y = a.getCharCode(s);\n let g = o.scale,\n v = null,\n S = null,\n k = null,\n I = Rh,\n M = 0;\n const T = !(l === Ip.horizontal || !c && !is(y) || c && (Ep[y] || (x = y, ts.Arabic(x) || ts[\"Arabic Supplement\"](x) || ts[\"Arabic Extended-A\"](x) || ts[\"Arabic Presentation Forms-A\"](x) || ts[\"Arabic Presentation Forms-B\"](x))));\n if (o.imageName) {\n const e = n[o.imageName];\n if (!e) continue;\n k = o.imageName, t.iconsInText = t.iconsInText || !0, S = e.paddedRect;\n const r = e.displaySize;\n g = g * Rh / h, v = {\n width: r[0],\n height: r[1],\n left: Ap,\n top: -wp,\n advance: T ? r[1] : r[0],\n localGlyph: !1\n }, M = m ? -v.height * g : Mp + i * Rh - r[1] * g, I = v.advance;\n const s = (T ? r[0] : r[1]) * g - Rh * i;\n s > 0 && s > w && (w = s);\n } else {\n const t = r[o.fontStack];\n if (!t) continue;\n t[y] && (S = t[y]);\n const n = e[o.fontStack];\n if (!n) continue;\n const s = n.glyphs[y];\n if (!s) continue;\n if (v = s.metrics, I = 8203 !== y ? Rh : 0, m) {\n const t = void 0 !== n.ascender ? Math.abs(n.ascender) : 0,\n e = void 0 !== n.descender ? Math.abs(n.descender) : 0,\n r = (t + e) * g;\n _ < r && (_ = r, A = (t - e) / 2 * g), M = -t * g;\n } else M = Mp + (i - g) * Rh;\n }\n T ? (t.verticalizable = !0, b.push({\n glyph: y,\n imageName: k,\n x: p,\n y: d + M,\n vertical: T,\n scale: g,\n localGlyph: v.localGlyph,\n fontStack: o.fontStack,\n sectionIndex: f,\n metrics: v,\n rect: S\n }), p += I * g + u) : (b.push({\n glyph: y,\n imageName: k,\n x: p,\n y: d + M,\n vertical: T,\n scale: g,\n localGlyph: v.localGlyph,\n fontStack: o.fontStack,\n sectionIndex: f,\n metrics: v,\n rect: S\n }), p += v.advance * g + u);\n }\n 0 !== b.length && (f = Math.max(p - u, f), m ? Up(b, y, w, A, s * i / 2) : Up(b, y, w, 0, s / 2)), p = 0;\n const S = s * i + w;\n v.lineOffset = Math.max(w, o), d += S, ++g;\n }\n var x;\n const v = d,\n {\n horizontalAlign: b,\n verticalAlign: w\n } = Rp(a);\n (function (t, e, r, n, i, s) {\n const a = (e - r) * i,\n o = -s * n;\n for (const e of t) for (const t of e.positionedGlyphs) t.x += a, t.y += o;\n })(t.positionedLines, y, b, w, f, v), t.top += -w * v, t.bottom = t.top + v, t.left += -b * f, t.right = t.left + f, t.hasBaseline = m;\n }(w, e, r, n, m, a, o, l, h, u, p, f), !function (t) {\n for (const e of t) if (0 !== e.positionedGlyphs.length) return !1;\n return !0;\n }(b) && w;\n }\n const Ep = {\n 9: !0,\n 10: !0,\n 11: !0,\n 12: !0,\n 13: !0,\n 32: !0\n },\n Cp = {\n 10: !0,\n 32: !0,\n 38: !0,\n 40: !0,\n 41: !0,\n 43: !0,\n 45: !0,\n 47: !0,\n 173: !0,\n 183: !0,\n 8203: !0,\n 8208: !0,\n 8211: !0,\n 8231: !0\n };\n function Pp(t, e, r, n, i, s) {\n if (e.imageName) {\n const t = n[e.imageName];\n return t ? t.displaySize[0] * e.scale * Rh / s + i : 0;\n }\n {\n const n = r[e.fontStack],\n s = n && n.glyphs[t];\n return s ? s.metrics.advance * e.scale + i : 0;\n }\n }\n function Dp(t, e, r, n) {\n const i = Math.pow(t - e, 2);\n return n ? t < e ? i / 2 : 2 * i : i + Math.abs(r) * r;\n }\n function Vp(t, e, r) {\n let n = 0;\n return 10 === t && (n -= 1e4), r && (n += 150), 40 !== t && 65288 !== t || (n += 50), 41 !== e && 65289 !== e || (n += 50), n;\n }\n function Lp(t, e, r, n, i, s) {\n let a = null,\n o = Dp(e, r, i, s);\n for (const t of n) {\n const n = Dp(e - t.x, r, i, s) + t.badness;\n n <= o && (a = t, o = n);\n }\n return {\n index: t,\n x: e,\n priorBreak: a,\n badness: o\n };\n }\n function Fp(t) {\n return t ? Fp(t.priorBreak).concat(t.index) : [];\n }\n function Rp(t) {\n let e = .5,\n r = .5;\n switch (t) {\n case \"right\":\n case \"top-right\":\n case \"bottom-right\":\n e = 1;\n break;\n case \"left\":\n case \"top-left\":\n case \"bottom-left\":\n e = 0;\n }\n switch (t) {\n case \"bottom\":\n case \"bottom-right\":\n case \"bottom-left\":\n r = 1;\n break;\n case \"top\":\n case \"top-right\":\n case \"top-left\":\n r = 0;\n }\n return {\n horizontalAlign: e,\n verticalAlign: r\n };\n }\n function Up(t, e, r, n, i) {\n if (!(e || r || n || i)) return;\n const s = t.length - 1,\n a = t[s],\n o = (a.x + a.metrics.advance * a.scale) * e;\n for (let e = 0; e <= s; e++) t[e].x -= o, t[e].y += r + n + i;\n }\n function $p(t, e, r) {\n const {\n horizontalAlign: n,\n verticalAlign: i\n } = Rp(r),\n s = e[0] - t.displaySize[0] * n,\n a = e[1] - t.displaySize[1] * i;\n return {\n image: t,\n top: a,\n bottom: a + t.displaySize[1],\n left: s,\n right: s + t.displaySize[0]\n };\n }\n function jp(t, e, r, n, i, s) {\n const a = t.image;\n let o;\n if (a.content) {\n const t = a.content,\n e = a.pixelRatio || 1;\n o = [t[0] / e, t[1] / e, a.displaySize[0] - t[2] / e, a.displaySize[1] - t[3] / e];\n }\n const l = e.left * s,\n u = e.right * s;\n let c, h, p, d;\n \"width\" === r || \"both\" === r ? (d = i[0] + l - n[3], h = i[0] + u + n[1]) : (d = i[0] + (l + u - a.displaySize[0]) / 2, h = d + a.displaySize[0]);\n const f = e.top * s,\n y = e.bottom * s;\n return \"height\" === r || \"both\" === r ? (c = i[1] + f - n[0], p = i[1] + y + n[2]) : (c = i[1] + (f + y - a.displaySize[1]) / 2, p = c + a.displaySize[1]), {\n image: a,\n top: c,\n right: h,\n bottom: p,\n left: d,\n collisionPadding: o\n };\n }\n class Op extends x {\n constructor(t, e, r, n, i) {\n super(t, e), this.angle = n, this.z = r, void 0 !== i && (this.segment = i);\n }\n clone() {\n return new Op(this.x, this.y, this.z, this.angle, this.segment);\n }\n }\n function qp(t, e, r, n, i) {\n if (void 0 === e.segment) return !0;\n let s = e,\n a = e.segment + 1,\n o = 0;\n for (; o > -r / 2;) {\n if (a--, a < 0) return !1;\n o -= t[a].dist(s), s = t[a];\n }\n o += t[a].dist(t[a + 1]), a++;\n const l = [];\n let u = 0;\n for (; o < r / 2;) {\n const e = t[a],\n r = t[a + 1];\n if (!r) return !1;\n let s = t[a - 1].angleTo(e) - e.angleTo(r);\n for (s = Math.abs((s + 3 * Math.PI) % (2 * Math.PI) - Math.PI), l.push({\n distance: o,\n angleDelta: s\n }), u += s; o - l[0].distance > n;) u -= l.shift().angleDelta;\n if (u > i) return !1;\n a++, o += e.dist(r);\n }\n return !0;\n }\n function Np(t) {\n let e = 0;\n for (let r = 0; r < t.length - 1; r++) e += t[r].dist(t[r + 1]);\n return e;\n }\n function Gp(t, e, r) {\n return t ? .6 * e * r : 0;\n }\n function Zp(t, e) {\n return Math.max(t ? t.right - t.left : 0, e ? e.right - e.left : 0);\n }\n function Kp(t, e, r, n, i, s) {\n const a = Gp(r, i, s),\n o = Zp(r, n) * s;\n let l = 0;\n const u = Np(t) / 2;\n for (let r = 0; r < t.length - 1; r++) {\n const n = t[r],\n i = t[r + 1],\n s = n.dist(i);\n if (l + s > u) {\n const c = (u - l) / s,\n h = Er(n.x, i.x, c),\n p = Er(n.y, i.y, c),\n d = new Op(h, p, 0, i.angleTo(n), r);\n return !a || qp(t, d, o, a, e) ? d : void 0;\n }\n l += s;\n }\n }\n function Xp(t, e, r, n, i, s, a, o, l) {\n const u = Gp(n, s, a),\n c = Zp(n, i),\n h = c * a,\n p = 0 === t[0].x || t[0].x === l || 0 === t[0].y || t[0].y === l;\n return e - h < e / 4 && (e = h + e / 4), Jp(t, p ? e / 2 * o % e : (c / 2 + 2 * s) * a * o % e, e, u, r, h, p, !1, l);\n }\n function Jp(t, e, r, n, i, s, a, o, l) {\n const u = s / 2,\n c = Np(t);\n let h = 0,\n p = e - r,\n d = [];\n for (let e = 0; e < t.length - 1; e++) {\n const a = t[e],\n o = t[e + 1],\n f = a.dist(o),\n y = o.angleTo(a);\n for (; p + r < h + f;) {\n p += r;\n const m = (p - h) / f,\n g = Er(a.x, o.x, m),\n x = Er(a.y, o.y, m);\n if (g >= 0 && g < l && x >= 0 && x < l && p - u >= 0 && p + u <= c) {\n const r = new Op(g, x, 0, y, e);\n r._round(), n && !qp(t, r, s, n, i) || d.push(r);\n }\n }\n h += f;\n }\n return o || d.length || a || (d = Jp(t, h / 2, r, n, i, s, a, !0, l)), d;\n }\n function Hp(t, e, r, n, i) {\n const s = [];\n for (let a = 0; a < t.length; a++) {\n const o = t[a];\n let l;\n for (let t = 0; t < o.length - 1; t++) {\n let a = o[t],\n u = o[t + 1];\n a.x < e && u.x < e || (a.x < e ? a = new x(e, a.y + (e - a.x) / (u.x - a.x) * (u.y - a.y))._round() : u.x < e && (u = new x(e, a.y + (e - a.x) / (u.x - a.x) * (u.y - a.y))._round()), a.y < r && u.y < r || (a.y < r ? a = new x(a.x + (r - a.y) / (u.y - a.y) * (u.x - a.x), r)._round() : u.y < r && (u = new x(a.x + (r - a.y) / (u.y - a.y) * (u.x - a.x), r)._round()), a.x >= n && u.x >= n || (a.x >= n ? a = new x(n, a.y + (n - a.x) / (u.x - a.x) * (u.y - a.y))._round() : u.x >= n && (u = new x(n, a.y + (n - a.x) / (u.x - a.x) * (u.y - a.y))._round()), a.y >= i && u.y >= i || (a.y >= i ? a = new x(a.x + (i - a.y) / (u.y - a.y) * (u.x - a.x), i)._round() : u.y >= i && (u = new x(a.x + (i - a.y) / (u.y - a.y) * (u.x - a.x), i)._round()), l && a.equals(l[l.length - 1]) || (l = [a], s.push(l)), l.push(u)))));\n }\n }\n return s;\n }\n Ji(Op, \"Anchor\");\n const Yp = 1e20;\n function Wp(t, e, r, n, i, s, a, o, l) {\n for (let u = e; u < e + n; u++) Qp(t, r * s + u, s, i, a, o, l);\n for (let u = r; u < r + i; u++) Qp(t, u * s + e, 1, n, a, o, l);\n }\n function Qp(t, e, r, n, i, s, a) {\n s[0] = 0, a[0] = -Yp, a[1] = Yp, i[0] = t[e];\n for (let o = 1, l = 0, u = 0; o < n; o++) {\n i[o] = t[e + o * r];\n const n = o * o;\n do {\n const t = s[l];\n u = (i[o] - i[t] + n - t * t) / (o - t) / 2;\n } while (u <= a[l] && --l > -1);\n l++, s[l] = o, a[l] = u, a[l + 1] = Yp;\n }\n for (let o = 0, l = 0; o < n; o++) {\n for (; a[l + 1] < o;) l++;\n const n = s[l],\n u = o - n;\n t[e + o * r] = i[n] + u * u;\n }\n }\n const td = 2,\n ed = {\n none: 0,\n ideographs: 1,\n all: 2\n };\n class rd {\n constructor(t, e, r) {\n this.requestManager = t, this.localGlyphMode = e, this.localFontFamily = r, this.entries = {}, this.localGlyphs = {\n 200: {},\n 400: {},\n 500: {},\n 900: {}\n };\n }\n setURL(t) {\n this.url = t;\n }\n getGlyphs(t, e) {\n const r = [];\n for (const e in t) for (const n of t[e]) r.push({\n stack: e,\n id: n\n });\n B(r, ({\n stack: t,\n id: e\n }, r) => {\n let n = this.entries[t];\n n || (n = this.entries[t] = {\n glyphs: {},\n requests: {},\n ranges: {},\n ascender: void 0,\n descender: void 0\n });\n let i = n.glyphs[e];\n if (void 0 !== i) return void r(null, {\n stack: t,\n id: e,\n glyph: i\n });\n if (i = this._tinySDF(n, t, e), i) return n.glyphs[e] = i, void r(null, {\n stack: t,\n id: e,\n glyph: i\n });\n const s = Math.floor(e / 256);\n if (256 * s > 65535) return void r(new Error(\"glyphs > 65535 not supported\"));\n if (n.ranges[s]) return void r(null, {\n stack: t,\n id: e,\n glyph: i\n });\n let a = n.requests[s];\n a || (a = n.requests[s] = [], rd.loadGlyphRange(t, s, this.url, this.requestManager, (t, e) => {\n if (e) {\n n.ascender = e.ascender, n.descender = e.descender;\n for (const t in e.glyphs) this._doesCharSupportLocalGlyph(+t) || (n.glyphs[+t] = e.glyphs[+t]);\n n.ranges[s] = !0;\n }\n for (const r of a) r(t, e);\n delete n.requests[s];\n })), a.push((n, i) => {\n n ? r(n) : i && r(null, {\n stack: t,\n id: e,\n glyph: i.glyphs[e] || null\n });\n });\n }, (t, r) => {\n if (t) e(t);else if (r) {\n const t = {};\n for (const {\n stack: e,\n id: n,\n glyph: i\n } of r) void 0 === t[e] && (t[e] = {}), void 0 === t[e].glyphs && (t[e].glyphs = {}), t[e].glyphs[n] = i && {\n id: i.id,\n bitmap: i.bitmap.clone(),\n metrics: i.metrics\n }, t[e].ascender = this.entries[e].ascender, t[e].descender = this.entries[e].descender;\n e(null, t);\n }\n });\n }\n _doesCharSupportLocalGlyph(t) {\n return this.localGlyphMode !== ed.none && (this.localGlyphMode === ed.all ? !!this.localFontFamily : !!this.localFontFamily && (ts[\"CJK Unified Ideographs\"](t) || ts[\"Hangul Syllables\"](t) || ts.Hiragana(t) || ts.Katakana(t) || ts[\"CJK Symbols and Punctuation\"](t)));\n }\n _tinySDF(t, e, r) {\n const n = this.localFontFamily;\n if (!n || !this._doesCharSupportLocalGlyph(r)) return;\n let i = t.tinySDF;\n if (!i) {\n let r = \"400\";\n /bold/i.test(e) ? r = \"900\" : /medium/i.test(e) ? r = \"500\" : /light/i.test(e) && (r = \"200\"), i = t.tinySDF = new rd.TinySDF({\n fontFamily: n,\n fontWeight: r,\n fontSize: 24 * td,\n buffer: 3 * td,\n radius: 8 * td\n }), i.fontWeight = r;\n }\n if (this.localGlyphs[i.fontWeight][r]) return this.localGlyphs[i.fontWeight][r];\n const s = String.fromCharCode(r),\n {\n data: a,\n width: o,\n height: l,\n glyphWidth: u,\n glyphHeight: c,\n glyphLeft: h,\n glyphTop: p,\n glyphAdvance: d\n } = i.draw(s);\n return this.localGlyphs[i.fontWeight][r] = {\n id: r,\n bitmap: new Ru({\n width: o,\n height: l\n }, a),\n metrics: {\n width: u / td,\n height: c / td,\n left: h / td,\n top: p / td - 27,\n advance: d / td,\n localGlyph: !0\n }\n };\n }\n }\n rd.loadGlyphRange = function (t, e, r, n, i) {\n const s = 256 * e,\n a = s + 255,\n o = n.transformRequest(n.normalizeGlyphsURL(r).replace(\"{fontstack}\", t).replace(\"{range}\", `${s}-${a}`), lt.Glyphs);\n pt(o, (t, e) => {\n if (t) i(t);else if (e) {\n const t = {},\n r = function (t) {\n return new mp(t).readFields(xp, {});\n }(e);\n for (const e of r.glyphs) t[e.id] = e;\n i(null, {\n glyphs: t,\n ascender: r.ascender,\n descender: r.descender\n });\n }\n });\n }, rd.TinySDF = class {\n constructor({\n fontSize: t = 24,\n buffer: e = 3,\n radius: r = 8,\n cutoff: n = .25,\n fontFamily: i = \"sans-serif\",\n fontWeight: s = \"normal\",\n fontStyle: a = \"normal\"\n } = {}) {\n this.buffer = e, this.cutoff = n, this.radius = r;\n const o = this.size = t + 4 * e,\n l = this._createCanvas(o),\n u = this.ctx = l.getContext(\"2d\", {\n willReadFrequently: !0\n });\n u.font = `${a} ${s} ${t}px ${i}`, u.textBaseline = \"alphabetic\", u.textAlign = \"left\", u.fillStyle = \"black\", this.gridOuter = new Float64Array(o * o), this.gridInner = new Float64Array(o * o), this.f = new Float64Array(o), this.z = new Float64Array(o + 1), this.v = new Uint16Array(o);\n }\n _createCanvas(t) {\n const e = document.createElement(\"canvas\");\n return e.width = e.height = t, e;\n }\n draw(t) {\n const {\n width: e,\n actualBoundingBoxAscent: r,\n actualBoundingBoxDescent: n,\n actualBoundingBoxLeft: i,\n actualBoundingBoxRight: s\n } = this.ctx.measureText(t),\n a = Math.ceil(r),\n o = Math.max(0, Math.min(this.size - this.buffer, Math.ceil(s - i))),\n l = Math.min(this.size - this.buffer, a + Math.ceil(n)),\n u = o + 2 * this.buffer,\n c = l + 2 * this.buffer,\n h = Math.max(u * c, 0),\n p = new Uint8ClampedArray(h),\n d = {\n data: p,\n width: u,\n height: c,\n glyphWidth: o,\n glyphHeight: l,\n glyphTop: a,\n glyphLeft: 0,\n glyphAdvance: e\n };\n if (0 === o || 0 === l) return d;\n const {\n ctx: f,\n buffer: y,\n gridInner: m,\n gridOuter: g\n } = this;\n f.clearRect(y, y, o, l), f.fillText(t, y, y + a);\n const x = f.getImageData(y, y, o, l);\n g.fill(Yp, 0, h), m.fill(0, 0, h);\n for (let t = 0; t < l; t++) for (let e = 0; e < o; e++) {\n const r = x.data[4 * (t * o + e) + 3] / 255;\n if (0 === r) continue;\n const n = (t + y) * u + e + y;\n if (1 === r) g[n] = 0, m[n] = Yp;else {\n const t = .5 - r;\n g[n] = t > 0 ? t * t : 0, m[n] = t < 0 ? t * t : 0;\n }\n }\n Wp(g, 0, 0, u, c, u, this.f, this.v, this.z), Wp(m, y, y, o, l, u, this.f, this.v, this.z);\n for (let t = 0; t < h; t++) {\n const e = Math.sqrt(g[t]) - Math.sqrt(m[t]);\n p[t] = Math.round(255 - 255 * (e / this.radius + this.cutoff));\n }\n return d;\n }\n };\n const nd = Ap;\n function id(t, e, r, n) {\n const i = [],\n s = t.image,\n a = s.pixelRatio,\n o = s.paddedRect.w - 2 * nd,\n l = s.paddedRect.h - 2 * nd,\n u = t.right - t.left,\n c = t.bottom - t.top,\n h = s.stretchX || [[0, o]],\n p = s.stretchY || [[0, l]],\n d = (t, e) => t + e[1] - e[0],\n f = h.reduce(d, 0),\n y = p.reduce(d, 0),\n m = o - f,\n g = l - y;\n let v = 0,\n b = f,\n w = 0,\n _ = y,\n A = 0,\n S = m,\n k = 0,\n I = g;\n if (s.content && n) {\n const t = s.content;\n v = sd(h, 0, t[0]), w = sd(p, 0, t[1]), b = sd(h, t[0], t[2]), _ = sd(p, t[1], t[3]), A = t[0] - v, k = t[1] - w, S = t[2] - t[0] - b, I = t[3] - t[1] - _;\n }\n const M = (n, i, o, l) => {\n const h = od(n.stretch - v, b, u, t.left),\n p = ld(n.fixed - A, S, n.stretch, f),\n d = od(i.stretch - w, _, c, t.top),\n m = ld(i.fixed - k, I, i.stretch, y),\n g = od(o.stretch - v, b, u, t.left),\n M = ld(o.fixed - A, S, o.stretch, f),\n T = od(l.stretch - w, _, c, t.top),\n z = ld(l.fixed - k, I, l.stretch, y),\n B = new x(h, d),\n E = new x(g, d),\n C = new x(g, T),\n P = new x(h, T),\n D = new x(p / a, m / a),\n V = new x(M / a, z / a),\n L = e * Math.PI / 180;\n if (L) {\n const t = Math.sin(L),\n e = Math.cos(L),\n r = [e, -t, t, e];\n B._matMult(r), E._matMult(r), P._matMult(r), C._matMult(r);\n }\n const F = n.stretch + n.fixed,\n R = i.stretch + i.fixed;\n return {\n tl: B,\n tr: E,\n bl: P,\n br: C,\n tex: {\n x: s.paddedRect.x + nd + F,\n y: s.paddedRect.y + nd + R,\n w: o.stretch + o.fixed - F,\n h: l.stretch + l.fixed - R\n },\n writingMode: void 0,\n glyphOffset: [0, 0],\n sectionIndex: 0,\n pixelOffsetTL: D,\n pixelOffsetBR: V,\n minFontScaleX: S / a / u,\n minFontScaleY: I / a / c,\n isSDF: r\n };\n };\n if (n && (s.stretchX || s.stretchY)) {\n const t = ad(h, m, f),\n e = ad(p, g, y);\n for (let r = 0; r < t.length - 1; r++) {\n const n = t[r],\n s = t[r + 1];\n for (let t = 0; t < e.length - 1; t++) i.push(M(n, e[t], s, e[t + 1]));\n }\n } else i.push(M({\n fixed: 0,\n stretch: -1\n }, {\n fixed: 0,\n stretch: -1\n }, {\n fixed: 0,\n stretch: o + 1\n }, {\n fixed: 0,\n stretch: l + 1\n }));\n return i;\n }\n function sd(t, e, r) {\n let n = 0;\n for (const i of t) n += Math.max(e, Math.min(r, i[1])) - Math.max(e, Math.min(r, i[0]));\n return n;\n }\n function ad(t, e, r) {\n const n = [{\n fixed: -nd,\n stretch: 0\n }];\n for (const [e, r] of t) {\n const t = n[n.length - 1];\n n.push({\n fixed: e - t.stretch,\n stretch: t.stretch\n }), n.push({\n fixed: e - t.stretch,\n stretch: t.stretch + (r - e)\n });\n }\n return n.push({\n fixed: e + nd,\n stretch: r\n }), n;\n }\n function od(t, e, r, n) {\n return t / e * r + n;\n }\n function ld(t, e, r, n) {\n return t - e * r / n;\n }\n function ud(t, e, r, n) {\n const i = e + t.positionedLines[n].lineOffset;\n return 0 === n ? r + i / 2 : r + (i + (e + t.positionedLines[n - 1].lineOffset)) / 2;\n }\n class cd {\n constructor(t = [], e = hd) {\n if (this.data = t, this.length = this.data.length, this.compare = e, this.length > 0) for (let t = (this.length >> 1) - 1; t >= 0; t--) this._down(t);\n }\n push(t) {\n this.data.push(t), this.length++, this._up(this.length - 1);\n }\n pop() {\n if (0 === this.length) return;\n const t = this.data[0],\n e = this.data.pop();\n return this.length--, this.length > 0 && (this.data[0] = e, this._down(0)), t;\n }\n peek() {\n return this.data[0];\n }\n _up(t) {\n const {\n data: e,\n compare: r\n } = this,\n n = e[t];\n for (; t > 0;) {\n const i = t - 1 >> 1,\n s = e[i];\n if (r(n, s) >= 0) break;\n e[t] = s, t = i;\n }\n e[t] = n;\n }\n _down(t) {\n const {\n data: e,\n compare: r\n } = this,\n n = this.length >> 1,\n i = e[t];\n for (; t < n;) {\n let n = 1 + (t << 1),\n s = e[n];\n const a = n + 1;\n if (a < this.length && r(e[a], s) < 0 && (n = a, s = e[a]), r(s, i) >= 0) break;\n e[t] = s, t = n;\n }\n e[t] = i;\n }\n }\n function hd(t, e) {\n return t < e ? -1 : t > e ? 1 : 0;\n }\n function pd(t, e = 1, r = !1) {\n let n = 1 / 0,\n i = 1 / 0,\n s = -1 / 0,\n a = -1 / 0;\n const o = t[0];\n for (let t = 0; t < o.length; t++) {\n const e = o[t];\n (!t || e.x < n) && (n = e.x), (!t || e.y < i) && (i = e.y), (!t || e.x > s) && (s = e.x), (!t || e.y > a) && (a = e.y);\n }\n const l = Math.min(s - n, a - i);\n let u = l / 2;\n const c = new cd([], dd);\n if (0 === l) return new x(n, i);\n for (let e = n; e < s; e += l) for (let r = i; r < a; r += l) c.push(new fd(e + u, r + u, u, t));\n let h = function (t) {\n let e = 0,\n r = 0,\n n = 0;\n const i = t[0];\n for (let t = 0, s = i.length, a = s - 1; t < s; a = t++) {\n const s = i[t],\n o = i[a],\n l = s.x * o.y - o.x * s.y;\n r += (s.x + o.x) * l, n += (s.y + o.y) * l, e += 3 * l;\n }\n return new fd(r / e, n / e, 0, t);\n }(t),\n p = c.length;\n for (; c.length;) {\n const n = c.pop();\n (n.d > h.d || !h.d) && (h = n, r && console.log(\"found best %d after %d probes\", Math.round(1e4 * n.d) / 1e4, p)), n.max - h.d <= e || (u = n.h / 2, c.push(new fd(n.p.x - u, n.p.y - u, u, t)), c.push(new fd(n.p.x + u, n.p.y - u, u, t)), c.push(new fd(n.p.x - u, n.p.y + u, u, t)), c.push(new fd(n.p.x + u, n.p.y + u, u, t)), p += 4);\n }\n return r && (console.log(`num probes: ${p}`), console.log(`best distance: ${h.d}`)), h.p;\n }\n function dd(t, e) {\n return e.max - t.max;\n }\n class fd {\n constructor(t, e, r, n) {\n this.p = new x(t, e), this.h = r, this.d = function (t, e) {\n let r = !1,\n n = 1 / 0;\n for (let i = 0; i < e.length; i++) {\n const s = e[i];\n for (let e = 0, i = s.length, a = i - 1; e < i; a = e++) {\n const i = s[e],\n o = s[a];\n i.y > t.y != o.y > t.y && t.x < (o.x - i.x) * (t.y - i.y) / (o.y - i.y) + i.x && (r = !r), n = Math.min(n, xu(t, i, o));\n }\n }\n return (r ? 1 : -1) * Math.sqrt(n);\n }(this.p, n), this.max = this.d + this.h * Math.SQRT2;\n }\n }\n const yd = 7,\n md = Number.POSITIVE_INFINITY,\n gd = Math.sqrt(2);\n function xd(t, [e, r]) {\n let n = 0,\n i = 0;\n if (r === md) {\n e < 0 && (e = 0);\n const r = e / gd;\n switch (t) {\n case \"top-right\":\n case \"top-left\":\n i = r - yd;\n break;\n case \"bottom-right\":\n case \"bottom-left\":\n i = -r + yd;\n break;\n case \"bottom\":\n i = -e + yd;\n break;\n case \"top\":\n i = e - yd;\n }\n switch (t) {\n case \"top-right\":\n case \"bottom-right\":\n n = -r;\n break;\n case \"top-left\":\n case \"bottom-left\":\n n = r;\n break;\n case \"left\":\n n = e;\n break;\n case \"right\":\n n = -e;\n }\n } else {\n switch (e = Math.abs(e), r = Math.abs(r), t) {\n case \"top-right\":\n case \"top-left\":\n case \"top\":\n i = r - yd;\n break;\n case \"bottom-right\":\n case \"bottom-left\":\n case \"bottom\":\n i = -r + yd;\n }\n switch (t) {\n case \"top-right\":\n case \"bottom-right\":\n case \"right\":\n n = -e;\n break;\n case \"top-left\":\n case \"bottom-left\":\n case \"left\":\n n = e;\n }\n }\n return [n, i];\n }\n function vd(t, e, r, n, i, s, a, o, l, u) {\n t.createArrays(), t.tilePixelRatio = ao / (512 * t.overscaling), t.compareText = {}, t.iconsNeedLinear = !1;\n const c = t.layers[0].layout,\n h = t.layers[0]._unevaluatedLayout._values,\n p = {};\n if (\"composite\" === t.textSizeData.kind) {\n const {\n minZoom: e,\n maxZoom: r\n } = t.textSizeData;\n p.compositeTextSizes = [h[\"text-size\"].possiblyEvaluate(new ws(e), o), h[\"text-size\"].possiblyEvaluate(new ws(r), o)];\n }\n if (\"composite\" === t.iconSizeData.kind) {\n const {\n minZoom: e,\n maxZoom: r\n } = t.iconSizeData;\n p.compositeIconSizes = [h[\"icon-size\"].possiblyEvaluate(new ws(e), o), h[\"icon-size\"].possiblyEvaluate(new ws(r), o)];\n }\n p.layoutTextSize = h[\"text-size\"].possiblyEvaluate(new ws(l + 1), o), p.layoutIconSize = h[\"icon-size\"].possiblyEvaluate(new ws(l + 1), o), p.textMaxSize = h[\"text-size\"].possiblyEvaluate(new ws(18), o);\n const d = \"map\" === c.get(\"text-rotation-alignment\") && \"point\" !== c.get(\"symbol-placement\"),\n f = c.get(\"text-size\");\n for (const s of t.features) {\n const l = c.get(\"text-font\").evaluate(s, {}, o).join(\",\"),\n h = f.evaluate(s, {}, o),\n y = p.layoutTextSize.evaluate(s, {}, o),\n m = (p.layoutIconSize.evaluate(s, {}, o), {\n horizontal: {},\n vertical: void 0\n }),\n g = s.text;\n let x,\n v = [0, 0];\n if (g) {\n const n = g.toString(),\n a = c.get(\"text-letter-spacing\").evaluate(s, {}, o) * Rh,\n u = c.get(\"text-line-height\").evaluate(s, {}, o) * Rh,\n p = rs(n) ? a : 0,\n f = c.get(\"text-anchor\").evaluate(s, {}, o),\n x = c.get(\"text-variable-anchor\");\n if (!x) {\n const t = c.get(\"text-radial-offset\").evaluate(s, {}, o);\n v = t ? xd(f, [t * Rh, md]) : c.get(\"text-offset\").evaluate(s, {}, o).map(t => t * Rh);\n }\n let b = d ? \"center\" : c.get(\"text-justify\").evaluate(s, {}, o);\n const w = \"point\" === c.get(\"symbol-placement\"),\n _ = w ? c.get(\"text-max-width\").evaluate(s, {}, o) * Rh : 1 / 0,\n A = s => {\n t.allowVerticalPlacement && es(n) && (m.vertical = Bp(g, e, r, i, l, _, u, f, s, p, v, Ip.vertical, !0, y, h));\n };\n if (!d && x) {\n const t = \"auto\" === b ? x.map(t => bd(t)) : [b];\n let n = !1;\n for (let s = 0; s < t.length; s++) {\n const a = t[s];\n if (!m.horizontal[a]) if (n) m.horizontal[a] = m.horizontal[0];else {\n const t = Bp(g, e, r, i, l, _, u, \"center\", a, p, v, Ip.horizontal, !1, y, h);\n t && (m.horizontal[a] = t, n = 1 === t.positionedLines.length);\n }\n }\n A(\"left\");\n } else {\n if (\"auto\" === b && (b = bd(f)), w || c.get(\"text-writing-mode\").indexOf(\"horizontal\") >= 0 || !es(n)) {\n const t = Bp(g, e, r, i, l, _, u, f, b, p, v, Ip.horizontal, !1, y, h);\n t && (m.horizontal[b] = t);\n }\n A(w ? \"left\" : b);\n }\n }\n let b = !1;\n if (s.icon && s.icon.name) {\n const e = n[s.icon.name];\n e && (x = $p(i[s.icon.name], c.get(\"icon-offset\").evaluate(s, {}, o), c.get(\"icon-anchor\").evaluate(s, {}, o)), b = e.sdf, void 0 === t.sdfIcons ? t.sdfIcons = e.sdf : t.sdfIcons !== e.sdf && N(\"Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer\"), (e.pixelRatio !== t.pixelRatio || 0 !== c.get(\"icon-rotate\").constantOr(1)) && (t.iconsNeedLinear = !0));\n }\n const w = kd(m.horizontal) || m.vertical;\n t.iconsInText || (t.iconsInText = !!w && w.iconsInText), (w || x) && wd(t, s, m, x, n, p, y, 0, v, b, a, o, u);\n }\n s && t.generateCollisionDebugBuffers(l, t.collisionBoxArray);\n }\n function bd(t) {\n switch (t) {\n case \"right\":\n case \"top-right\":\n case \"bottom-right\":\n return \"right\";\n case \"left\":\n case \"top-left\":\n case \"bottom-left\":\n return \"left\";\n }\n return \"center\";\n }\n function wd(t, e, r, n, i, s, a, o, l, u, c, h, p) {\n let d = s.textMaxSize.evaluate(e, {}, h);\n void 0 === d && (d = a);\n const f = t.layers[0].layout,\n y = f.get(\"icon-offset\").evaluate(e, {}, h),\n m = kd(r.horizontal) || r.vertical,\n g = \"globe\" === p.name,\n x = Rh,\n v = a / x,\n b = t.tilePixelRatio * d / x,\n _ = (B = t.overscaling, t.zoom > 18 && B > 2 && (B >>= 1), Math.max(ao / (512 * B), 1) * f.get(\"symbol-spacing\")),\n A = f.get(\"text-padding\") * t.tilePixelRatio,\n S = f.get(\"icon-padding\") * t.tilePixelRatio,\n k = w(f.get(\"text-max-angle\")),\n I = \"map\" === f.get(\"text-rotation-alignment\") && \"point\" !== f.get(\"symbol-placement\"),\n M = \"map\" === f.get(\"icon-rotation-alignment\") && \"point\" !== f.get(\"symbol-placement\"),\n T = f.get(\"symbol-placement\"),\n z = _ / 2;\n var B;\n const E = f.get(\"icon-text-fit\");\n let C;\n n && \"none\" !== E && (t.allowVerticalPlacement && r.vertical && (C = jp(n, r.vertical, E, f.get(\"icon-text-fit-padding\"), y, v)), m && (n = jp(n, m, E, f.get(\"icon-text-fit-padding\"), y, v)));\n const P = (a, o, d) => {\n if (o.x < 0 || o.x >= ao || o.y < 0 || o.y >= ao) return;\n let f = null;\n if (g) {\n const {\n x: t,\n y: e,\n z: r\n } = p.projectTilePoint(o.x, o.y, d);\n f = {\n anchor: new Op(t, e, r, 0, void 0),\n up: p.upVector(d, o.x, o.y)\n };\n }\n !function (t, e, r, n, i, s, a, o, l, u, c, h, p, d, f, y, m, g, x, v, b, w, _, A, S) {\n const k = t.addToLineVertexArray(e, n);\n let I,\n M,\n T,\n z,\n B,\n E,\n C,\n P = 0,\n D = 0,\n V = 0,\n L = 0,\n F = -1,\n R = -1;\n const U = {};\n let $ = Ba(\"\");\n const j = r ? r.anchor : e;\n let O = 0,\n q = 0;\n if (void 0 === l._unevaluatedLayout.getValue(\"text-radial-offset\") ? [O, q] = l.layout.get(\"text-offset\").evaluate(b, {}, S).map(t => t * Rh) : (O = l.layout.get(\"text-radial-offset\").evaluate(b, {}, S) * Rh, q = md), t.allowVerticalPlacement && i.vertical) {\n const t = i.vertical;\n if (f) E = Md(t), o && (C = Md(o));else {\n const r = l.layout.get(\"text-rotate\").evaluate(b, {}, S) + 90;\n T = Id(u, j, e, c, h, p, t, d, r, y), o && (z = Id(u, j, e, c, h, p, o, g, r));\n }\n }\n if (s) {\n const n = l.layout.get(\"icon-rotate\").evaluate(b, {}, S),\n i = \"none\" !== l.layout.get(\"icon-text-fit\"),\n a = id(s, n, _, i),\n d = o ? id(o, n, _, i) : void 0;\n M = Id(u, j, e, c, h, p, s, g, n), P = 4 * a.length;\n const f = t.iconSizeData;\n let y = null;\n \"source\" === f.kind ? (y = [Uh * l.layout.get(\"icon-size\").evaluate(b, {}, S)], y[0] > Ad && N(`${t.layerIds[0]}: Value for \"icon-size\" is >= ${_d}. Reduce your \"icon-size\".`)) : \"composite\" === f.kind && (y = [Uh * w.compositeIconSizes[0].evaluate(b, {}, S), Uh * w.compositeIconSizes[1].evaluate(b, {}, S)], (y[0] > Ad || y[1] > Ad) && N(`${t.layerIds[0]}: Value for \"icon-size\" is >= ${_d}. Reduce your \"icon-size\".`)), t.addSymbols(t.icon, a, y, v, x, b, !1, r, e, k.lineStartIndex, k.lineLength, -1, A, S), F = t.icon.placedSymbolArray.length - 1, d && (D = 4 * d.length, t.addSymbols(t.icon, d, y, v, x, b, Ip.vertical, r, e, k.lineStartIndex, k.lineLength, -1, A, S), R = t.icon.placedSymbolArray.length - 1);\n }\n for (const n in i.horizontal) {\n const s = i.horizontal[n];\n I || ($ = Ba(s.text), f ? B = Md(s) : I = Id(u, j, e, c, h, p, s, d, l.layout.get(\"text-rotate\").evaluate(b, {}, S), y));\n const o = 1 === s.positionedLines.length;\n if (V += Sd(t, r, e, s, a, l, f, b, y, k, i.vertical ? Ip.horizontal : Ip.horizontalOnly, o ? Object.keys(i.horizontal) : [n], U, F, w, A, S), o) break;\n }\n i.vertical && (L += Sd(t, r, e, i.vertical, a, l, f, b, y, k, Ip.vertical, [\"vertical\"], U, R, w, A, S));\n let G = -1;\n const Z = (t, e) => t ? Math.max(t, e) : e;\n G = Z(B, G), G = Z(E, G), G = Z(C, G);\n const K = G > -1 ? 1 : 0;\n t.glyphOffsetArray.length >= of.MAX_GLYPHS && N(\"Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907\"), void 0 !== b.sortKey && t.addToSortKeyRanges(t.symbolInstances.length, b.sortKey), t.symbolInstances.emplaceBack(j.x, j.y, j.z, e.x, e.y, U.right >= 0 ? U.right : -1, U.center >= 0 ? U.center : -1, U.left >= 0 ? U.left : -1, U.vertical >= 0 ? U.vertical : -1, F, R, $, void 0 !== I ? I : t.collisionBoxArray.length, void 0 !== I ? I + 1 : t.collisionBoxArray.length, void 0 !== T ? T : t.collisionBoxArray.length, void 0 !== T ? T + 1 : t.collisionBoxArray.length, void 0 !== M ? M : t.collisionBoxArray.length, void 0 !== M ? M + 1 : t.collisionBoxArray.length, z || t.collisionBoxArray.length, z ? z + 1 : t.collisionBoxArray.length, c, V, L, P, D, K, 0, O, q, G);\n }(t, o, f, a, r, n, i, C, t.layers[0], t.collisionBoxArray, e.index, e.sourceLayerIndex, t.index, A, I, l, 0, S, M, y, e, s, u, c, h);\n };\n if (\"line\" === T) for (const i of Hp(e.geometry, 0, 0, ao, ao)) {\n const e = Xp(i, _, k, r.vertical || m, n, x, b, t.overscaling, ao);\n for (const r of e) m && Td(t, m.text, z, r) || P(i, r, h);\n } else if (\"line-center\" === T) {\n for (const t of e.geometry) if (t.length > 1) {\n const e = Kp(t, k, r.vertical || m, n, x, b);\n e && P(t, e, h);\n }\n } else if (\"Polygon\" === e.type) for (const t of Ac(e.geometry, 0)) {\n const e = pd(t, 16);\n P(t[0], new Op(e.x, e.y, 0, 0, void 0), h);\n } else if (\"LineString\" === e.type) for (const t of e.geometry) P(t, new Op(t[0].x, t[0].y, 0, 0, void 0), h);else if (\"Point\" === e.type) for (const t of e.geometry) for (const e of t) P([e], new Op(e.x, e.y, 0, 0, void 0), h);\n }\n const _d = 255,\n Ad = _d * Uh;\n function Sd(t, e, r, n, i, s, a, o, l, u, c, h, p, d, f, y, m) {\n const g = function (t, e, r, n, i, s, a, o) {\n const l = [];\n if (0 === e.positionedLines.length) return l;\n const u = n.layout.get(\"text-rotate\").evaluate(s, {}) * Math.PI / 180,\n c = function (t) {\n const e = t[0],\n r = t[1],\n n = e * r;\n return n > 0 ? [e, -r] : n < 0 ? [-e, r] : 0 === e ? [r, e] : [r, -e];\n }(r);\n let h = Math.abs(e.top - e.bottom);\n for (const t of e.positionedLines) h -= t.lineOffset;\n const p = e.positionedLines.length,\n d = h / p;\n let f = e.top - r[1];\n for (let t = 0; t < p; ++t) {\n const n = e.positionedLines[t];\n f = ud(e, d, f, t);\n for (const t of n.positionedGlyphs) {\n if (!t.rect) continue;\n const n = t.rect || {};\n let s = wp + 1,\n h = !0,\n p = 1,\n d = 0;\n if (t.imageName) {\n const e = a[t.imageName];\n if (!e) continue;\n if (e.sdf) {\n N(\"SDF images are not supported in formatted text and will be ignored.\");\n continue;\n }\n h = !1, p = e.pixelRatio, s = Ap / p;\n }\n const y = (i || o) && t.vertical,\n m = t.metrics.advance * t.scale / 2,\n g = t.metrics,\n v = t.rect;\n if (null === v) continue;\n o && e.verticalizable && (d = t.imageName ? m - t.metrics.width * t.scale / 2 : 0);\n const b = i ? [t.x + m, t.y] : [0, 0];\n let w = [0, 0],\n _ = [0, 0],\n A = !1;\n i || (y ? (_ = [t.x + m + c[0], t.y + c[1] - d], A = !0) : w = [t.x + m + r[0], t.y + r[1] - d]);\n const S = v.w * t.scale / (p * (t.localGlyph ? td : 1)),\n k = v.h * t.scale / (p * (t.localGlyph ? td : 1));\n let I, M, T, z;\n if (y) {\n const e = t.y - f,\n r = new x(-m, m - e),\n n = -Math.PI / 2,\n i = new x(..._);\n I = new x(-m + w[0], w[1]), I._rotateAround(n, r)._add(i), I.x += -e + m, I.y -= (g.left - s) * t.scale;\n const a = t.imageName ? g.advance * t.scale : Rh * t.scale,\n o = String.fromCharCode(t.glyph);\n Zh(o) ? I.x += (1 - s) * t.scale : Kh(o) ? I.x += a - g.height * t.scale + (-s - 1) * t.scale : I.x += t.imageName || g.width + 2 * s === v.w && g.height + 2 * s === v.h ? (a - k) / 2 : (a - (g.height + 2 * s) * t.scale) / 2, M = new x(I.x, I.y - S), T = new x(I.x + k, I.y), z = new x(I.x + k, I.y - S);\n } else {\n const e = (g.left - s) * t.scale - m + w[0],\n r = (-g.top - s) * t.scale + w[1],\n n = e + S,\n i = r + k;\n I = new x(e, r), M = new x(n, r), T = new x(e, i), z = new x(n, i);\n }\n if (u) {\n let t;\n t = i ? new x(0, 0) : A ? new x(c[0], c[1]) : new x(r[0], r[1]), I._rotateAround(u, t), M._rotateAround(u, t), T._rotateAround(u, t), z._rotateAround(u, t);\n }\n const B = new x(0, 0),\n E = new x(0, 0);\n l.push({\n tl: I,\n tr: M,\n bl: T,\n br: z,\n tex: n,\n writingMode: e.writingMode,\n glyphOffset: b,\n sectionIndex: t.sectionIndex,\n isSDF: h,\n pixelOffsetTL: B,\n pixelOffsetBR: E,\n minFontScaleX: 0,\n minFontScaleY: 0\n });\n }\n }\n return l;\n }(0, n, l, s, a, o, i, t.allowVerticalPlacement),\n v = t.textSizeData;\n let b = null;\n \"source\" === v.kind ? (b = [Uh * s.layout.get(\"text-size\").evaluate(o, {}, m)], b[0] > Ad && N(`${t.layerIds[0]}: Value for \"text-size\" is >= ${_d}. Reduce your \"text-size\".`)) : \"composite\" === v.kind && (b = [Uh * f.compositeTextSizes[0].evaluate(o, {}, m), Uh * f.compositeTextSizes[1].evaluate(o, {}, m)], (b[0] > Ad || b[1] > Ad) && N(`${t.layerIds[0]}: Value for \"text-size\" is >= ${_d}. Reduce your \"text-size\".`)), t.addSymbols(t.text, g, b, l, a, o, c, e, r, u.lineStartIndex, u.lineLength, d, y, m);\n for (const e of h) p[e] = t.text.placedSymbolArray.length - 1;\n return 4 * g.length;\n }\n function kd(t) {\n for (const e in t) return t[e];\n return null;\n }\n function Id(t, e, r, n, i, s, a, o, l, u) {\n let c = a.top,\n h = a.bottom,\n p = a.left,\n d = a.right;\n const f = a.collisionPadding;\n if (f && (p -= f[0], c -= f[1], d += f[2], h += f[3]), l) {\n const t = new x(p, c),\n e = new x(d, c),\n r = new x(p, h),\n n = new x(d, h),\n i = w(l);\n let s = new x(0, 0);\n u && (s = new x(u[0], u[1])), t._rotateAround(i, s), e._rotateAround(i, s), r._rotateAround(i, s), n._rotateAround(i, s), p = Math.min(t.x, e.x, r.x, n.x), d = Math.max(t.x, e.x, r.x, n.x), c = Math.min(t.y, e.y, r.y, n.y), h = Math.max(t.y, e.y, r.y, n.y);\n }\n return t.emplaceBack(e.x, e.y, e.z, r.x, r.y, p, c, d, h, o, n, i, s), t.length - 1;\n }\n function Md(t) {\n t.collisionPadding && (t.top -= t.collisionPadding[1], t.bottom += t.collisionPadding[3]);\n const e = t.bottom - t.top;\n return e > 0 ? Math.max(10, e) : null;\n }\n function Td(t, e, r, n) {\n const i = t.compareText;\n if (e in i) {\n const t = i[e];\n for (let e = t.length - 1; e >= 0; e--) if (n.dist(t[e]) < r) return !0;\n } else i[e] = [];\n return i[e].push(n), !1;\n }\n function zd(t, e) {\n const r = t.fovAboveCenter,\n n = t.elevation ? t.elevation.getMinElevationBelowMSL() * e : 0,\n i = (t._camera.position[2] * t.worldSize - n) / Math.cos(t._pitch),\n s = Math.sin(r) * i / Math.sin(Math.max(Math.PI / 2 - t._pitch - r, .01)),\n a = Math.sin(t._pitch) * s + i;\n return Math.min(1.01 * a, i * (1 / t._horizonShift));\n }\n function Bd(t, e) {\n if (!e.isReprojectedInTileSpace) return {\n scale: 1 << t.z,\n x: t.x,\n y: t.y,\n x2: t.x + 1,\n y2: t.y + 1,\n projection: e\n };\n const r = Math.pow(2, -t.z),\n n = t.x * r,\n i = (t.x + 1) * r,\n s = t.y * r,\n a = (t.y + 1) * r,\n o = Kl(n),\n l = Kl(i),\n u = Xl(s),\n c = Xl(a),\n h = e.project(o, u),\n p = e.project(l, u),\n d = e.project(l, c),\n f = e.project(o, c);\n let y = Math.min(h.x, p.x, d.x, f.x),\n m = Math.min(h.y, p.y, d.y, f.y),\n g = Math.max(h.x, p.x, d.x, f.x),\n x = Math.max(h.y, p.y, d.y, f.y);\n const v = r / 16;\n function b(t, r, n, i, s, a) {\n const o = (n + s) / 2,\n l = (i + a) / 2,\n u = e.project(Kl(o), Xl(l)),\n c = Math.max(0, y - u.x, m - u.y, u.x - g, u.y - x);\n y = Math.min(y, u.x), g = Math.max(g, u.x), m = Math.min(m, u.y), x = Math.max(x, u.y), c > v && (b(t, u, n, i, o, l), b(u, r, o, l, s, a));\n }\n b(h, p, n, s, i, s), b(p, d, i, s, i, a), b(d, f, i, a, n, a), b(f, h, n, a, n, s), y -= v, m -= v, g += v, x += v;\n const w = 1 / Math.max(g - y, x - m);\n return {\n scale: w,\n x: y * w,\n y: m * w,\n x2: g * w,\n y2: x * w,\n projection: e\n };\n }\n const Ed = po(new Float32Array(16));\n class Cd {\n constructor(t) {\n this.spec = t, this.name = t.name, this.wrap = !1, this.requiresDraping = !1, this.supportsWorldCopies = !1, this.supportsTerrain = !1, this.supportsFog = !1, this.supportsFreeCamera = !1, this.zAxisUnit = \"meters\", this.isReprojectedInTileSpace = !0, this.unsupportedLayers = [\"custom\"], this.center = [0, 0], this.range = [3.5, 7];\n }\n project(t, e) {\n return {\n x: 0,\n y: 0,\n z: 0\n };\n }\n unproject(t, e) {\n return new Ol(0, 0);\n }\n projectTilePoint(t, e, r) {\n return {\n x: t,\n y: e,\n z: 0\n };\n }\n locationPoint(t, e, r = !0) {\n return t._coordinatePoint(t.locationCoordinate(e), r);\n }\n pixelsPerMeter(t, e) {\n return Zl(1, t) * e;\n }\n pixelSpaceConversion(t, e, r) {\n return 1;\n }\n farthestPixelDistance(t) {\n return zd(t, t.pixelsPerMeter);\n }\n pointCoordinate(t, e, r, n) {\n const i = t.horizonLineFromTop(!1),\n s = new x(e, Math.max(i, r));\n return t.rayIntersectionCoordinate(t.pointRayIntersection(s, n));\n }\n pointCoordinate3D(t, e, r) {\n const n = new x(e, r);\n if (t.elevation) return t.elevation.pointCoordinate(n);\n {\n const e = this.pointCoordinate(t, n.x, n.y, 0);\n return [e.x, e.y, e.z];\n }\n }\n isPointAboveHorizon(t, e) {\n if (t.elevation) return !this.pointCoordinate3D(t, e.x, e.y);\n const r = t.horizonLineFromTop();\n return e.y < r;\n }\n createInversionMatrix(t, e) {\n return Ed;\n }\n createTileMatrix(t, e, r) {\n let n, i, s;\n const a = r.canonical,\n o = po(new Float64Array(16));\n if (this.isReprojectedInTileSpace) {\n const l = Bd(a, this);\n n = 1, i = l.x + r.wrap * l.scale, s = l.y, go(o, o, [n / l.scale, n / l.scale, t.pixelsPerMeter / e]);\n } else n = e / t.zoomScale(a.z), i = (a.x + Math.pow(2, a.z) * r.wrap) * n, s = a.y * n;\n return mo(o, o, [i, s, 0]), go(o, o, [n / ao, n / ao, 1]), o;\n }\n upVector(t, e, r) {\n return [0, 0, 1];\n }\n upVectorScale(t, e, r) {\n return {\n metersToTile: 1\n };\n }\n }\n class Pd extends Cd {\n constructor(t) {\n super(t), this.range = [4, 7], this.center = t.center || [-96, 37.5];\n const [e, r] = this.parallels = t.parallels || [29.5, 45.5],\n n = Math.sin(w(e));\n this.n = (n + Math.sin(w(r))) / 2, this.c = 1 + n * (2 * this.n - n), this.r0 = Math.sqrt(this.c) / this.n;\n }\n project(t, e) {\n const {\n n: r,\n c: n,\n r0: i\n } = this,\n s = w(t - this.center[0]),\n a = w(e),\n o = Math.sqrt(n - 2 * r * Math.sin(a)) / r;\n return {\n x: o * Math.sin(s * r),\n y: o * Math.cos(s * r) - i,\n z: 0\n };\n }\n unproject(t, e) {\n const {\n n: r,\n c: n,\n r0: i\n } = this,\n s = i + e;\n let a = Math.atan2(t, Math.abs(s)) * Math.sign(s);\n s * r < 0 && (a -= Math.PI * Math.sign(t) * Math.sign(s));\n const o = w(this.center[0]) * r;\n a = z(a, -Math.PI - o, Math.PI - o);\n const l = M(_(a / r) + this.center[0], -180, 180),\n u = Math.asin(M((n - (t * t + s * s) * r * r) / (2 * r), -1, 1)),\n c = M(_(u), -Hl, Hl);\n return new Ol(l, c);\n }\n }\n const Dd = 1.340264,\n Vd = -.081106,\n Ld = 893e-6,\n Fd = .003796,\n Rd = Math.sqrt(3) / 2;\n class Ud extends Cd {\n project(t, e) {\n e = e / 180 * Math.PI, t = t / 180 * Math.PI;\n const r = Math.asin(Rd * Math.sin(e)),\n n = r * r,\n i = n * n * n;\n return {\n x: .5 * (t * Math.cos(r) / (Rd * (Dd + 3 * Vd * n + i * (7 * Ld + 9 * Fd * n))) / Math.PI + .5),\n y: 1 - .5 * (r * (Dd + Vd * n + i * (Ld + Fd * n)) / Math.PI + 1),\n z: 0\n };\n }\n unproject(t, e) {\n t = (2 * t - .5) * Math.PI;\n let r = e = (2 * (1 - e) - 1) * Math.PI,\n n = r * r,\n i = n * n * n;\n for (let t, s, a, o = 0; o < 12 && (s = r * (Dd + Vd * n + i * (Ld + Fd * n)) - e, a = Dd + 3 * Vd * n + i * (7 * Ld + 9 * Fd * n), t = s / a, r = M(r - t, -Math.PI / 3, Math.PI / 3), n = r * r, i = n * n * n, !(Math.abs(t) < 1e-12)); ++o);\n const s = Rd * t * (Dd + 3 * Vd * n + i * (7 * Ld + 9 * Fd * n)) / Math.cos(r),\n a = Math.asin(Math.sin(r) / Rd),\n o = M(180 * s / Math.PI, -180, 180),\n l = M(180 * a / Math.PI, -Hl, Hl);\n return new Ol(o, l);\n }\n }\n class $d extends Cd {\n constructor(t) {\n super(t), this.wrap = !0, this.supportsWorldCopies = !0;\n }\n project(t, e) {\n return {\n x: .5 + t / 360,\n y: .5 - e / 360,\n z: 0\n };\n }\n unproject(t, e) {\n const r = 360 * (t - .5),\n n = M(360 * (.5 - e), -Hl, Hl);\n return new Ol(r, n);\n }\n }\n const jd = Math.PI / 2;\n function Od(t) {\n return Math.tan((jd + t) / 2);\n }\n class qd extends Cd {\n constructor(t) {\n super(t), this.center = t.center || [0, 30];\n const [e, r] = this.parallels = t.parallels || [30, 30];\n let n = w(e),\n i = w(r);\n this.southernCenter = n + i < 0, this.southernCenter && (n = -n, i = -i);\n const s = Math.cos(n),\n a = Od(n);\n this.n = n === i ? Math.sin(n) : Math.log(s / Math.cos(i)) / Math.log(Od(i) / a), this.f = s * Math.pow(Od(n), this.n) / this.n;\n }\n project(t, e) {\n e = w(e), this.southernCenter && (e = -e), t = w(t - this.center[0]);\n const r = 1e-6,\n {\n n: n,\n f: i\n } = this;\n i > 0 ? e < -jd + r && (e = -jd + r) : e > jd - r && (e = jd - r);\n const s = i / Math.pow(Od(e), n);\n let a = s * Math.sin(n * t),\n o = i - s * Math.cos(n * t);\n return a = .5 * (a / Math.PI + .5), o = .5 * (o / Math.PI + .5), {\n x: a,\n y: this.southernCenter ? o : 1 - o,\n z: 0\n };\n }\n unproject(t, e) {\n t = (2 * t - .5) * Math.PI, this.southernCenter && (e = 1 - e), e = (2 * (1 - e) - .5) * Math.PI;\n const {\n n: r,\n f: n\n } = this,\n i = n - e,\n s = Math.sign(i),\n a = Math.sign(r) * Math.sqrt(t * t + i * i);\n let o = Math.atan2(t, Math.abs(i)) * s;\n i * r < 0 && (o -= Math.PI * Math.sign(t) * s);\n const l = M(_(o / r) + this.center[0], -180, 180),\n u = M(_(2 * Math.atan(Math.pow(n / a, 1 / r)) - jd), -Hl, Hl);\n return new Ol(l, this.southernCenter ? -u : u);\n }\n }\n class Nd extends Cd {\n constructor(t) {\n super(t), this.wrap = !0, this.supportsWorldCopies = !0, this.supportsTerrain = !0, this.supportsFog = !0, this.supportsFreeCamera = !0, this.isReprojectedInTileSpace = !1, this.unsupportedLayers = [], this.range = null;\n }\n project(t, e) {\n return {\n x: Nl(t),\n y: Gl(e),\n z: 0\n };\n }\n unproject(t, e) {\n const r = Kl(t),\n n = Xl(e);\n return new Ol(r, n);\n }\n }\n const Gd = w(Hl);\n class Zd extends Cd {\n project(t, e) {\n const r = (e = w(e)) * e,\n n = r * r;\n return {\n x: .5 * ((t = w(t)) * (.8707 - .131979 * r + n * (n * (.003971 * r - .001529 * n) - .013791)) / Math.PI + .5),\n y: 1 - .5 * (e * (1.007226 + r * (.015085 + n * (.028874 * r - .044475 - .005916 * n))) / Math.PI + 1),\n z: 0\n };\n }\n unproject(t, e) {\n t = (2 * t - .5) * Math.PI;\n let r = e = (2 * (1 - e) - 1) * Math.PI,\n n = 25,\n i = 0,\n s = r * r;\n do {\n s = r * r;\n const t = s * s;\n i = (r * (1.007226 + s * (.015085 + t * (.028874 * s - .044475 - .005916 * t))) - e) / (1.007226 + s * (.045255 + t * (.259866 * s - .311325 - .005916 * 11 * t))), r = M(r - i, -Gd, Gd);\n } while (Math.abs(i) > 1e-6 && --n > 0);\n s = r * r;\n const a = M(_(t / (.8707 + s * (s * (s * s * s * (.003971 - .001529 * s) - .013791) - .131979))), -180, 180),\n o = _(r);\n return new Ol(a, o);\n }\n }\n const Kd = w(Hl);\n class Xd extends Cd {\n project(t, e) {\n e = w(e), t = w(t);\n const r = Math.cos(e),\n n = 2 / Math.PI,\n i = Math.acos(r * Math.cos(t / 2)),\n s = Math.sin(i) / i,\n a = .5 * (t * n + 2 * r * Math.sin(t / 2) / s) || 0,\n o = .5 * (e + Math.sin(e) / s) || 0;\n return {\n x: .5 * (a / Math.PI + .5),\n y: 1 - .5 * (o / Math.PI + 1),\n z: 0\n };\n }\n unproject(t, e) {\n let r = t = (2 * t - .5) * Math.PI,\n n = e = (2 * (1 - e) - 1) * Math.PI,\n i = 25;\n const s = 1e-6;\n let a = 0,\n o = 0;\n do {\n const i = Math.cos(n),\n s = Math.sin(n),\n l = 2 * s * i,\n u = s * s,\n c = i * i,\n h = Math.cos(r / 2),\n p = Math.sin(r / 2),\n d = 2 * h * p,\n f = p * p,\n y = 1 - c * h * h,\n m = y ? 1 / y : 0,\n g = y ? Math.acos(i * h) * Math.sqrt(1 / y) : 0,\n x = .5 * (2 * g * i * p + 2 * r / Math.PI) - t,\n v = .5 * (g * s + n) - e,\n b = .5 * m * (c * f + g * i * h * u) + 1 / Math.PI,\n w = m * (d * l / 4 - g * s * p),\n _ = .125 * m * (l * p - g * s * c * d),\n A = .5 * m * (u * h + g * f * i) + .5,\n S = w * _ - A * b;\n a = (v * w - x * A) / S, o = (x * _ - v * b) / S, r = M(r - a, -Math.PI, Math.PI), n = M(n - o, -Kd, Kd);\n } while ((Math.abs(a) > s || Math.abs(o) > s) && --i > 0);\n return new Ol(_(r), _(n));\n }\n }\n class Jd extends Cd {\n constructor(t) {\n super(t), this.center = t.center || [0, 0], this.parallels = t.parallels || [0, 0], this.cosPhi = Math.max(.01, Math.cos(w(this.parallels[0]))), this.scale = 1 / (2 * Math.max(Math.PI * this.cosPhi, 1 / this.cosPhi)), this.wrap = !0, this.supportsWorldCopies = !0;\n }\n project(t, e) {\n const {\n scale: r,\n cosPhi: n\n } = this;\n return {\n x: w(t) * n * r + .5,\n y: -Math.sin(w(e)) / n * r + .5,\n z: 0\n };\n }\n unproject(t, e) {\n const {\n scale: r,\n cosPhi: n\n } = this,\n i = -(e - .5) / r,\n s = M(_((t - .5) / r) / n, -180, 180),\n a = Math.asin(M(i * n, -1, 1)),\n o = M(_(a), -Hl, Hl);\n return new Ol(s, o);\n }\n }\n class Hd extends Nd {\n constructor(t) {\n super(t), this.requiresDraping = !0, this.supportsWorldCopies = !1, this.supportsFog = !0, this.zAxisUnit = \"pixels\", this.unsupportedLayers = [\"debug\"], this.range = [3, 5];\n }\n projectTilePoint(t, e, r) {\n const n = Ml(t, e, r);\n return Fo(n, n, Bl(xl(r))), {\n x: n[0],\n y: n[1],\n z: n[2]\n };\n }\n locationPoint(t, e) {\n const r = Il(e.lat, e.lng),\n n = Do([], r),\n i = t.elevation ? t.elevation.getAtPointOrZero(t.locationCoordinate(e), t._centerAltitude) : t._centerAltitude;\n Po(r, r, n, Zl(1, 0) * ao * i);\n const s = po(new Float64Array(16));\n return yo(s, t.pixelMatrix, t.globeMatrix), Fo(r, r, s), new x(r[0], r[1]);\n }\n pixelsPerMeter(t, e) {\n return Zl(1, 0) * e;\n }\n pixelSpaceConversion(t, e, r) {\n const n = Zl(1, t) * e,\n i = Er(Zl(1, 45) * e, n, r);\n return this.pixelsPerMeter(t, e) / i;\n }\n createTileMatrix(t, e, r) {\n const n = El(xl(r.canonical));\n return yo(new Float64Array(16), t.globeMatrix, n);\n }\n createInversionMatrix(t, e) {\n const {\n center: r\n } = t,\n n = Bl(xl(e));\n return vo(n, n, w(r.lng)), xo(n, n, w(r.lat)), go(n, n, [t._pixelsPerMercatorPixel, t._pixelsPerMercatorPixel, 1]), Float32Array.from(n);\n }\n pointCoordinate(t, e, r, n) {\n return yl(t, e, r, !0) || new Wl(0, 0);\n }\n pointCoordinate3D(t, e, r) {\n const n = this.pointCoordinate(t, e, r, 0);\n return [n.x, n.y, n.z];\n }\n isPointAboveHorizon(t, e) {\n return !yl(t, e.x, e.y, !1);\n }\n farthestPixelDistance(t) {\n const e = function (t, e) {\n const r = t.cameraToCenterDistance,\n n = t._centerAltitude * e,\n i = t._camera,\n s = t._camera.forward(),\n a = Mo([], Co([], s, -r), [0, 0, n]),\n o = t.worldSize / (2 * Math.PI),\n l = [0, 0, -o],\n u = t.width / t.height,\n c = Math.tan(t.fovAboveCenter),\n h = Co([], i.up(), c),\n p = Co([], i.right(), c * u),\n d = Do([], Mo([], Mo([], s, h), p)),\n f = [];\n let y;\n if (new el(a, d).closestPointOnSphere(l, o, f)) {\n const e = Mo([], f, l),\n r = $o([], e, a);\n y = Math.cos(t.fovAboveCenter) * ko(r);\n } else {\n const t = $o([], a, l),\n e = $o([], l, a);\n Do(e, e);\n const r = ko(t) - o;\n y = Math.sqrt(r * (r + 2 * o));\n const n = Math.acos(y / (o + r)) - Math.acos(Vo(s, e));\n y *= Math.cos(n);\n }\n return 1.01 * y;\n }(t, this.pixelsPerMeter(t.center.lat, t.worldSize)),\n r = Pl(t.zoom);\n if (r > 0) {\n const n = zd(t, Zl(1, t.center.lat) * t.worldSize),\n i = t.worldSize / (2 * Math.PI),\n s = Math.max(t.width, t.height) / t.worldSize * Math.PI;\n return Er(e, n + i * (1 - Math.cos(s)), Math.pow(r, 10));\n }\n return e;\n }\n upVector(t, e, r) {\n return Ml(e, r, t, 1);\n }\n upVectorScale(t) {\n return {\n metersToTile: fl(Tl(xl(t)))\n };\n }\n }\n function Yd(t) {\n const e = t.parallels,\n r = !!e && Math.abs(e[0] + e[1]) < .01;\n switch (t.name) {\n case \"mercator\":\n return new Nd(t);\n case \"equirectangular\":\n return new $d(t);\n case \"naturalEarth\":\n return new Zd(t);\n case \"equalEarth\":\n return new Ud(t);\n case \"winkelTripel\":\n return new Xd(t);\n case \"albers\":\n return r ? new Jd(t) : new Pd(t);\n case \"lambertConformalConic\":\n return r ? new Jd(t) : new qd(t);\n case \"globe\":\n return new Hd(t);\n }\n throw new Error(`Invalid projection name: ${t.name}`);\n }\n const Wd = Kc.types,\n Qd = [{\n name: \"a_fade_opacity\",\n components: 1,\n type: \"Uint8\",\n offset: 0\n }];\n function tf(t, e, r, n, i, s, a, o, l, u, c, h, p) {\n const d = o ? Math.min(Ad, Math.round(o[0])) : 0,\n f = o ? Math.min(Ad, Math.round(o[1])) : 0;\n t.emplaceBack(e, r, Math.round(32 * n), Math.round(32 * i), s, a, (d << 1) + (l ? 1 : 0), f, 16 * u, 16 * c, 256 * h, 256 * p);\n }\n function ef(t, e, r, n, i, s, a) {\n t.emplaceBack(e, r, n, i, s, a);\n }\n function rf(t, e, r, n, i) {\n t.emplaceBack(e, r, n, i), t.emplaceBack(e, r, n, i), t.emplaceBack(e, r, n, i), t.emplaceBack(e, r, n, i);\n }\n function nf(t) {\n for (const e of t.sections) if (ls(e.text)) return !0;\n return !1;\n }\n class sf {\n constructor(t) {\n this.layoutVertexArray = new Xs(), this.indexArray = new ra(), this.programConfigurations = t, this.segments = new so(), this.dynamicLayoutVertexArray = new Ns(), this.opacityVertexArray = new Hs(), this.placedSymbolArray = new fa(), this.globeExtVertexArray = new Js();\n }\n isEmpty() {\n return 0 === this.layoutVertexArray.length && 0 === this.indexArray.length && 0 === this.dynamicLayoutVertexArray.length && 0 === this.opacityVertexArray.length;\n }\n upload(t, e, r, n) {\n this.isEmpty() || (r && (this.layoutVertexBuffer = t.createVertexBuffer(this.layoutVertexArray, Eh.members), this.indexBuffer = t.createIndexBuffer(this.indexArray, e), this.dynamicLayoutVertexBuffer = t.createVertexBuffer(this.dynamicLayoutVertexArray, Ph.members, !0), this.opacityVertexBuffer = t.createVertexBuffer(this.opacityVertexArray, Qd, !0), this.globeExtVertexArray.length > 0 && (this.globeExtVertexBuffer = t.createVertexBuffer(this.globeExtVertexArray, Ch.members, !0)), this.opacityVertexBuffer.itemSize = 1), (r || n) && this.programConfigurations.upload(t));\n }\n destroy() {\n this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.dynamicLayoutVertexBuffer.destroy(), this.opacityVertexBuffer.destroy(), this.globeExtVertexBuffer && this.globeExtVertexBuffer.destroy());\n }\n }\n Ji(sf, \"SymbolBuffers\");\n class af {\n constructor(t, e, r) {\n this.layoutVertexArray = new t(), this.layoutAttributes = e, this.indexArray = new r(), this.segments = new so(), this.collisionVertexArray = new ta(), this.collisionVertexArrayExt = new ea();\n }\n upload(t) {\n this.layoutVertexBuffer = t.createVertexBuffer(this.layoutVertexArray, this.layoutAttributes), this.indexBuffer = t.createIndexBuffer(this.indexArray), this.collisionVertexBuffer = t.createVertexBuffer(this.collisionVertexArray, Dh.members, !0), this.collisionVertexBufferExt = t.createVertexBuffer(this.collisionVertexArrayExt, Vh.members, !0);\n }\n destroy() {\n this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.segments.destroy(), this.collisionVertexBuffer.destroy(), this.collisionVertexBufferExt.destroy());\n }\n }\n Ji(af, \"CollisionBuffers\");\n class of {\n constructor(t) {\n this.collisionBoxArray = t.collisionBoxArray, this.zoom = t.zoom, this.overscaling = t.overscaling, this.layers = t.layers, this.layerIds = this.layers.map(t => t.id), this.index = t.index, this.pixelRatio = t.pixelRatio, this.sourceLayerIndex = t.sourceLayerIndex, this.hasPattern = !1, this.hasRTLText = !1, this.fullyClipped = !1, this.sortKeyRanges = [], this.collisionCircleArray = [], this.placementInvProjMatrix = po([]), this.placementViewportMatrix = po([]);\n const e = this.layers[0]._unevaluatedLayout._values;\n this.textSizeData = $h(this.zoom, e[\"text-size\"]), this.iconSizeData = $h(this.zoom, e[\"icon-size\"]);\n const r = this.layers[0].layout,\n n = r.get(\"symbol-sort-key\"),\n i = r.get(\"symbol-z-order\");\n this.canOverlap = r.get(\"text-allow-overlap\") || r.get(\"icon-allow-overlap\") || r.get(\"text-ignore-placement\") || r.get(\"icon-ignore-placement\"), this.sortFeaturesByKey = \"viewport-y\" !== i && void 0 !== n.constantOr(1), this.sortFeaturesByY = (\"viewport-y\" === i || \"auto\" === i && !this.sortFeaturesByKey) && this.canOverlap, this.writingModes = r.get(\"text-writing-mode\").map(t => Ip[t]), this.stateDependentLayerIds = this.layers.filter(t => t.isStateDependent()).map(t => t.id), this.sourceID = t.sourceID, this.projection = t.projection;\n }\n createArrays() {\n this.text = new sf(new Ja(this.layers, this.zoom, t => /^text/.test(t))), this.icon = new sf(new Ja(this.layers, this.zoom, t => /^icon/.test(t))), this.glyphOffsetArray = new ga(), this.lineVertexArray = new xa(), this.symbolInstances = new ma();\n }\n calculateGlyphDependencies(t, e, r, n, i) {\n for (let r = 0; r < t.length; r++) if (e[t.charCodeAt(r)] = !0, n && i) {\n const n = Gh[t.charAt(r)];\n n && (e[n.charCodeAt(0)] = !0);\n }\n }\n populate(t, e, r, n) {\n const i = this.layers[0],\n s = i.layout,\n a = \"globe\" === this.projection.name,\n o = s.get(\"text-font\"),\n l = s.get(\"text-field\"),\n u = s.get(\"icon-image\"),\n c = (\"constant\" !== l.value.kind || l.value.value instanceof De && !l.value.value.isEmpty() || l.value.value.toString().length > 0) && (\"constant\" !== o.value.kind || o.value.value.length > 0),\n h = \"constant\" !== u.value.kind || !!u.value.value || Object.keys(u.parameters).length > 0,\n p = s.get(\"symbol-sort-key\");\n if (this.features = [], !c && !h) return;\n const d = e.iconDependencies,\n f = e.glyphDependencies,\n y = e.availableImages,\n m = new ws(this.zoom);\n for (const {\n feature: e,\n id: l,\n index: u,\n sourceLayerIndex: g\n } of t) {\n const t = i._featureFilter.needGeometry,\n x = ou(e, t);\n if (!i._featureFilter.filter(m, x, r)) continue;\n if (t || (x.geometry = au(e, r, n)), a && 1 !== e.type && r.z <= 5) {\n const t = x.geometry,\n e = .98078528056,\n n = (t, n) => Vo(Ml(t.x, t.y, r, 1), Ml(n.x, n.y, r, 1)) < e;\n for (let e = 0; e < t.length; e++) t[e] = ru(t[e], n);\n }\n let v, b;\n if (c) {\n const t = i.getValueAndResolveTokens(\"text-field\", x, r, y),\n e = De.factory(t);\n nf(e) && (this.hasRTLText = !0), (!this.hasRTLText || \"unavailable\" === xs() || this.hasRTLText && bs.isParsed()) && (v = Nh(e, i, x));\n }\n if (h) {\n const t = i.getValueAndResolveTokens(\"icon-image\", x, r, y);\n b = t instanceof Ve ? t : Ve.fromString(t);\n }\n if (!v && !b) continue;\n const w = this.sortFeaturesByKey ? p.evaluate(x, {}, r) : void 0;\n if (this.features.push({\n id: l,\n text: v,\n icon: b,\n index: u,\n sourceLayerIndex: g,\n geometry: x.geometry,\n properties: e.properties,\n type: Wd[e.type],\n sortKey: w\n }), b && (d[b.name] = !0), v) {\n const t = o.evaluate(x, {}, r).join(\",\"),\n e = \"map\" === s.get(\"text-rotation-alignment\") && \"point\" !== s.get(\"symbol-placement\");\n this.allowVerticalPlacement = this.writingModes && this.writingModes.indexOf(Ip.vertical) >= 0;\n for (const r of v.sections) if (r.image) d[r.image.name] = !0;else {\n const n = es(v.toString()),\n i = r.fontStack || t,\n s = f[i] = f[i] || {};\n this.calculateGlyphDependencies(r.text, s, e, this.allowVerticalPlacement, n);\n }\n }\n }\n \"line\" === s.get(\"symbol-placement\") && (this.features = function (t) {\n const e = {},\n r = {},\n n = [];\n let i = 0;\n function s(e) {\n n.push(t[e]), i++;\n }\n function a(t, e, i) {\n const s = r[t];\n return delete r[t], r[e] = s, n[s].geometry[0].pop(), n[s].geometry[0] = n[s].geometry[0].concat(i[0]), s;\n }\n function o(t, r, i) {\n const s = e[r];\n return delete e[r], e[t] = s, n[s].geometry[0].shift(), n[s].geometry[0] = i[0].concat(n[s].geometry[0]), s;\n }\n function l(t, e, r) {\n const n = r ? e[0][e[0].length - 1] : e[0][0];\n return `${t}:${n.x}:${n.y}`;\n }\n for (let u = 0; u < t.length; u++) {\n const c = t[u],\n h = c.geometry,\n p = c.text ? c.text.toString() : null;\n if (!p) {\n s(u);\n continue;\n }\n const d = l(p, h),\n f = l(p, h, !0);\n if (d in r && f in e && r[d] !== e[f]) {\n const t = o(d, f, h),\n i = a(d, f, n[t].geometry);\n delete e[d], delete r[f], r[l(p, n[i].geometry, !0)] = i, n[t].geometry = null;\n } else d in r ? a(d, f, h) : f in e ? o(d, f, h) : (s(u), e[d] = i - 1, r[f] = i - 1);\n }\n return n.filter(t => t.geometry);\n }(this.features)), this.sortFeaturesByKey && this.features.sort((t, e) => t.sortKey - e.sortKey);\n }\n update(t, e, r, n) {\n this.stateDependentLayers.length && (this.text.programConfigurations.updatePaintArrays(t, e, this.layers, r, n), this.icon.programConfigurations.updatePaintArrays(t, e, this.layers, r, n));\n }\n isEmpty() {\n return 0 === this.symbolInstances.length && !this.hasRTLText;\n }\n uploadPending() {\n return !this.uploaded || this.text.programConfigurations.needsUpload || this.icon.programConfigurations.needsUpload;\n }\n upload(t) {\n !this.uploaded && this.hasDebugData() && (this.textCollisionBox.upload(t), this.iconCollisionBox.upload(t)), this.text.upload(t, this.sortFeaturesByY, !this.uploaded, this.text.programConfigurations.needsUpload), this.icon.upload(t, this.sortFeaturesByY, !this.uploaded, this.icon.programConfigurations.needsUpload), this.uploaded = !0;\n }\n destroyDebugData() {\n this.textCollisionBox.destroy(), this.iconCollisionBox.destroy();\n }\n getProjection() {\n return this.projectionInstance || (this.projectionInstance = Yd(this.projection)), this.projectionInstance;\n }\n destroy() {\n this.text.destroy(), this.icon.destroy(), this.hasDebugData() && this.destroyDebugData();\n }\n addToLineVertexArray(t, e) {\n const r = this.lineVertexArray.length;\n if (void 0 !== t.segment) for (const {\n x: t,\n y: r\n } of e) this.lineVertexArray.emplaceBack(t, r);\n return {\n lineStartIndex: r,\n lineLength: this.lineVertexArray.length - r\n };\n }\n addSymbols(t, e, r, n, i, s, a, o, l, u, c, h, p, d) {\n const f = t.indexArray,\n y = t.layoutVertexArray,\n m = t.globeExtVertexArray,\n g = t.segments.prepareSegment(4 * e.length, y, f, this.canOverlap ? s.sortKey : void 0),\n x = this.glyphOffsetArray.length,\n v = g.vertexLength,\n b = this.allowVerticalPlacement && a === Ip.vertical ? Math.PI / 2 : 0,\n w = s.text && s.text.sections;\n for (let n = 0; n < e.length; n++) {\n const {\n tl: i,\n tr: a,\n bl: u,\n br: c,\n tex: h,\n pixelOffsetTL: x,\n pixelOffsetBR: v,\n minFontScaleX: _,\n minFontScaleY: A,\n glyphOffset: S,\n isSDF: k,\n sectionIndex: I\n } = e[n],\n M = g.vertexLength,\n T = S[1];\n if (tf(y, l.x, l.y, i.x, T + i.y, h.x, h.y, r, k, x.x, x.y, _, A), tf(y, l.x, l.y, a.x, T + a.y, h.x + h.w, h.y, r, k, v.x, x.y, _, A), tf(y, l.x, l.y, u.x, T + u.y, h.x, h.y + h.h, r, k, x.x, v.y, _, A), tf(y, l.x, l.y, c.x, T + c.y, h.x + h.w, h.y + h.h, r, k, v.x, v.y, _, A), o) {\n const {\n x: e,\n y: r,\n z: n\n } = o.anchor,\n [i, s, a] = o.up;\n ef(m, e, r, n, i, s, a), ef(m, e, r, n, i, s, a), ef(m, e, r, n, i, s, a), ef(m, e, r, n, i, s, a), rf(t.dynamicLayoutVertexArray, e, r, n, b);\n } else rf(t.dynamicLayoutVertexArray, l.x, l.y, l.z, b);\n f.emplaceBack(M, M + 1, M + 2), f.emplaceBack(M + 1, M + 2, M + 3), g.vertexLength += 4, g.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(S[0]), n !== e.length - 1 && I === e[n + 1].sectionIndex || t.programConfigurations.populatePaintArrays(y.length, s, s.index, {}, p, d, w && w[I]);\n }\n const _ = o ? o.anchor : l;\n t.placedSymbolArray.emplaceBack(_.x, _.y, _.z, l.x, l.y, x, this.glyphOffsetArray.length - x, v, u, c, l.segment, r ? r[0] : 0, r ? r[1] : 0, n[0], n[1], a, 0, !1, 0, h, 0);\n }\n _commitLayoutVertex(t, e, r, n, i, s, a) {\n t.emplaceBack(e, r, n, i, s, Math.round(a.x), Math.round(a.y));\n }\n _addCollisionDebugVertices(t, e, r, n, i, s, a) {\n const o = r.segments.prepareSegment(4, r.layoutVertexArray, r.indexArray),\n l = o.vertexLength,\n u = a.tileAnchorX,\n c = a.tileAnchorY;\n for (let t = 0; t < 4; t++) r.collisionVertexArray.emplaceBack(0, 0, 0, 0);\n r.collisionVertexArrayExt.emplaceBack(e, -t.padding, -t.padding), r.collisionVertexArrayExt.emplaceBack(e, t.padding, -t.padding), r.collisionVertexArrayExt.emplaceBack(e, t.padding, t.padding), r.collisionVertexArrayExt.emplaceBack(e, -t.padding, t.padding), this._commitLayoutVertex(r.layoutVertexArray, n, i, s, u, c, new x(t.x1, t.y1)), this._commitLayoutVertex(r.layoutVertexArray, n, i, s, u, c, new x(t.x2, t.y1)), this._commitLayoutVertex(r.layoutVertexArray, n, i, s, u, c, new x(t.x2, t.y2)), this._commitLayoutVertex(r.layoutVertexArray, n, i, s, u, c, new x(t.x1, t.y2)), o.vertexLength += 4;\n const h = r.indexArray;\n h.emplaceBack(l, l + 1), h.emplaceBack(l + 1, l + 2), h.emplaceBack(l + 2, l + 3), h.emplaceBack(l + 3, l), o.primitiveLength += 4;\n }\n _addTextDebugCollisionBoxes(t, e, r, n, i, s) {\n for (let a = n; a < i; a++) {\n const n = r.get(a),\n i = this.getSymbolInstanceTextSize(t, s, e, a);\n this._addCollisionDebugVertices(n, i, this.textCollisionBox, n.projectedAnchorX, n.projectedAnchorY, n.projectedAnchorZ, s);\n }\n }\n _addIconDebugCollisionBoxes(t, e, r, n, i, s) {\n for (let a = n; a < i; a++) {\n const n = r.get(a),\n i = this.getSymbolInstanceIconSize(t, e, s.placedIconSymbolIndex);\n this._addCollisionDebugVertices(n, i, this.iconCollisionBox, n.projectedAnchorX, n.projectedAnchorY, n.projectedAnchorZ, s);\n }\n }\n generateCollisionDebugBuffers(t, e) {\n this.hasDebugData() && this.destroyDebugData(), this.textCollisionBox = new af(Ws, Lh.members, la), this.iconCollisionBox = new af(Ws, Lh.members, la);\n const r = Oh(this.iconSizeData, t),\n n = Oh(this.textSizeData, t);\n for (let i = 0; i < this.symbolInstances.length; i++) {\n const s = this.symbolInstances.get(i);\n this._addTextDebugCollisionBoxes(n, t, e, s.textBoxStartIndex, s.textBoxEndIndex, s), this._addTextDebugCollisionBoxes(n, t, e, s.verticalTextBoxStartIndex, s.verticalTextBoxEndIndex, s), this._addIconDebugCollisionBoxes(r, t, e, s.iconBoxStartIndex, s.iconBoxEndIndex, s), this._addIconDebugCollisionBoxes(r, t, e, s.verticalIconBoxStartIndex, s.verticalIconBoxEndIndex, s);\n }\n }\n getSymbolInstanceTextSize(t, e, r, n) {\n const i = this.text.placedSymbolArray.get(e.rightJustifiedTextSymbolIndex >= 0 ? e.rightJustifiedTextSymbolIndex : e.centerJustifiedTextSymbolIndex >= 0 ? e.centerJustifiedTextSymbolIndex : e.leftJustifiedTextSymbolIndex >= 0 ? e.leftJustifiedTextSymbolIndex : e.verticalPlacedTextSymbolIndex >= 0 ? e.verticalPlacedTextSymbolIndex : n),\n s = jh(this.textSizeData, t, i) / Rh;\n return this.tilePixelRatio * s;\n }\n getSymbolInstanceIconSize(t, e, r) {\n const n = this.icon.placedSymbolArray.get(r),\n i = jh(this.iconSizeData, t, n);\n return this.tilePixelRatio * i;\n }\n _commitDebugCollisionVertexUpdate(t, e, r) {\n t.emplaceBack(e, -r, -r), t.emplaceBack(e, r, -r), t.emplaceBack(e, r, r), t.emplaceBack(e, -r, r);\n }\n _updateTextDebugCollisionBoxes(t, e, r, n, i, s) {\n for (let a = n; a < i; a++) {\n const n = r.get(a),\n i = this.getSymbolInstanceTextSize(t, s, e, a);\n this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt, i, n.padding);\n }\n }\n _updateIconDebugCollisionBoxes(t, e, r, n, i, s) {\n for (let a = n; a < i; a++) {\n const n = r.get(a),\n i = this.getSymbolInstanceIconSize(t, e, s);\n this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt, i, n.padding);\n }\n }\n updateCollisionDebugBuffers(t, e) {\n if (!this.hasDebugData()) return;\n this.hasTextCollisionBoxData() && this.textCollisionBox.collisionVertexArrayExt.clear(), this.hasIconCollisionBoxData() && this.iconCollisionBox.collisionVertexArrayExt.clear();\n const r = Oh(this.iconSizeData, t),\n n = Oh(this.textSizeData, t);\n for (let i = 0; i < this.symbolInstances.length; i++) {\n const s = this.symbolInstances.get(i);\n this._updateTextDebugCollisionBoxes(n, t, e, s.textBoxStartIndex, s.textBoxEndIndex, s), this._updateTextDebugCollisionBoxes(n, t, e, s.verticalTextBoxStartIndex, s.verticalTextBoxEndIndex, s), this._updateIconDebugCollisionBoxes(r, t, e, s.iconBoxStartIndex, s.iconBoxEndIndex, s.placedIconSymbolIndex), this._updateIconDebugCollisionBoxes(r, t, e, s.verticalIconBoxStartIndex, s.verticalIconBoxEndIndex, s.placedIconSymbolIndex);\n }\n this.hasTextCollisionBoxData() && this.textCollisionBox.collisionVertexBufferExt && this.textCollisionBox.collisionVertexBufferExt.updateData(this.textCollisionBox.collisionVertexArrayExt), this.hasIconCollisionBoxData() && this.iconCollisionBox.collisionVertexBufferExt && this.iconCollisionBox.collisionVertexBufferExt.updateData(this.iconCollisionBox.collisionVertexArrayExt);\n }\n _deserializeCollisionBoxesForSymbol(t, e, r, n, i, s, a, o, l) {\n const u = {};\n if (e < r) {\n const {\n x1: r,\n y1: n,\n x2: i,\n y2: s,\n padding: a,\n projectedAnchorX: o,\n projectedAnchorY: l,\n projectedAnchorZ: c,\n tileAnchorX: h,\n tileAnchorY: p,\n featureIndex: d\n } = t.get(e);\n u.textBox = {\n x1: r,\n y1: n,\n x2: i,\n y2: s,\n padding: a,\n projectedAnchorX: o,\n projectedAnchorY: l,\n projectedAnchorZ: c,\n tileAnchorX: h,\n tileAnchorY: p\n }, u.textFeatureIndex = d;\n }\n if (n < i) {\n const {\n x1: e,\n y1: r,\n x2: i,\n y2: s,\n padding: a,\n projectedAnchorX: o,\n projectedAnchorY: l,\n projectedAnchorZ: c,\n tileAnchorX: h,\n tileAnchorY: p,\n featureIndex: d\n } = t.get(n);\n u.verticalTextBox = {\n x1: e,\n y1: r,\n x2: i,\n y2: s,\n padding: a,\n projectedAnchorX: o,\n projectedAnchorY: l,\n projectedAnchorZ: c,\n tileAnchorX: h,\n tileAnchorY: p\n }, u.verticalTextFeatureIndex = d;\n }\n if (s < a) {\n const {\n x1: e,\n y1: r,\n x2: n,\n y2: i,\n padding: a,\n projectedAnchorX: o,\n projectedAnchorY: l,\n projectedAnchorZ: c,\n tileAnchorX: h,\n tileAnchorY: p,\n featureIndex: d\n } = t.get(s);\n u.iconBox = {\n x1: e,\n y1: r,\n x2: n,\n y2: i,\n padding: a,\n projectedAnchorX: o,\n projectedAnchorY: l,\n projectedAnchorZ: c,\n tileAnchorX: h,\n tileAnchorY: p\n }, u.iconFeatureIndex = d;\n }\n if (o < l) {\n const {\n x1: e,\n y1: r,\n x2: n,\n y2: i,\n padding: s,\n projectedAnchorX: a,\n projectedAnchorY: l,\n projectedAnchorZ: c,\n tileAnchorX: h,\n tileAnchorY: p,\n featureIndex: d\n } = t.get(o);\n u.verticalIconBox = {\n x1: e,\n y1: r,\n x2: n,\n y2: i,\n padding: s,\n projectedAnchorX: a,\n projectedAnchorY: l,\n projectedAnchorZ: c,\n tileAnchorX: h,\n tileAnchorY: p\n }, u.verticalIconFeatureIndex = d;\n }\n return u;\n }\n deserializeCollisionBoxes(t) {\n this.collisionArrays = [];\n for (let e = 0; e < this.symbolInstances.length; e++) {\n const r = this.symbolInstances.get(e);\n this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t, r.textBoxStartIndex, r.textBoxEndIndex, r.verticalTextBoxStartIndex, r.verticalTextBoxEndIndex, r.iconBoxStartIndex, r.iconBoxEndIndex, r.verticalIconBoxStartIndex, r.verticalIconBoxEndIndex));\n }\n }\n hasTextData() {\n return this.text.segments.get().length > 0;\n }\n hasIconData() {\n return this.icon.segments.get().length > 0;\n }\n hasDebugData() {\n return this.textCollisionBox && this.iconCollisionBox;\n }\n hasTextCollisionBoxData() {\n return this.hasDebugData() && this.textCollisionBox.segments.get().length > 0;\n }\n hasIconCollisionBoxData() {\n return this.hasDebugData() && this.iconCollisionBox.segments.get().length > 0;\n }\n addIndicesForPlacedSymbol(t, e) {\n const r = t.placedSymbolArray.get(e),\n n = r.vertexStartIndex + 4 * r.numGlyphs;\n for (let e = r.vertexStartIndex; e < n; e += 4) t.indexArray.emplaceBack(e, e + 1, e + 2), t.indexArray.emplaceBack(e + 1, e + 2, e + 3);\n }\n getSortedSymbolIndexes(t) {\n if (this.sortedAngle === t && void 0 !== this.symbolInstanceIndexes) return this.symbolInstanceIndexes;\n const e = Math.sin(t),\n r = Math.cos(t),\n n = [],\n i = [],\n s = [];\n for (let t = 0; t < this.symbolInstances.length; ++t) {\n s.push(t);\n const a = this.symbolInstances.get(t);\n n.push(0 | Math.round(e * a.tileAnchorX + r * a.tileAnchorY)), i.push(a.featureIndex);\n }\n return s.sort((t, e) => n[t] - n[e] || i[e] - i[t]), s;\n }\n addToSortKeyRanges(t, e) {\n const r = this.sortKeyRanges[this.sortKeyRanges.length - 1];\n r && r.sortKey === e ? r.symbolInstanceEnd = t + 1 : this.sortKeyRanges.push({\n sortKey: e,\n symbolInstanceStart: t,\n symbolInstanceEnd: t + 1\n });\n }\n sortFeatures(t) {\n if (this.sortFeaturesByY && this.sortedAngle !== t && !(this.text.segments.get().length > 1 || this.icon.segments.get().length > 1)) {\n this.symbolInstanceIndexes = this.getSortedSymbolIndexes(t), this.sortedAngle = t, this.text.indexArray.clear(), this.icon.indexArray.clear(), this.featureSortOrder = [];\n for (const t of this.symbolInstanceIndexes) {\n const e = this.symbolInstances.get(t);\n this.featureSortOrder.push(e.featureIndex);\n const {\n rightJustifiedTextSymbolIndex: r,\n centerJustifiedTextSymbolIndex: n,\n leftJustifiedTextSymbolIndex: i,\n verticalPlacedTextSymbolIndex: s,\n placedIconSymbolIndex: a,\n verticalPlacedIconSymbolIndex: o\n } = e;\n r >= 0 && this.addIndicesForPlacedSymbol(this.text, r), n >= 0 && n !== r && this.addIndicesForPlacedSymbol(this.text, n), i >= 0 && i !== n && i !== r && this.addIndicesForPlacedSymbol(this.text, i), s >= 0 && this.addIndicesForPlacedSymbol(this.text, s), a >= 0 && this.addIndicesForPlacedSymbol(this.icon, a), o >= 0 && this.addIndicesForPlacedSymbol(this.icon, o);\n }\n this.text.indexBuffer && this.text.indexBuffer.updateData(this.text.indexArray), this.icon.indexBuffer && this.icon.indexBuffer.updateData(this.icon.indexArray);\n }\n }\n }\n Ji(of, \"SymbolBucket\", {\n omit: [\"layers\", \"collisionBoxArray\", \"features\", \"compareText\"]\n }), of.MAX_GLYPHS = 65535, of.addDynamicAttributes = rf;\n const lf = new Ps({\n \"symbol-placement\": new Bs(te.layout_symbol[\"symbol-placement\"]),\n \"symbol-spacing\": new Bs(te.layout_symbol[\"symbol-spacing\"]),\n \"symbol-avoid-edges\": new Bs(te.layout_symbol[\"symbol-avoid-edges\"]),\n \"symbol-sort-key\": new Es(te.layout_symbol[\"symbol-sort-key\"]),\n \"symbol-z-order\": new Bs(te.layout_symbol[\"symbol-z-order\"]),\n \"icon-allow-overlap\": new Bs(te.layout_symbol[\"icon-allow-overlap\"]),\n \"icon-ignore-placement\": new Bs(te.layout_symbol[\"icon-ignore-placement\"]),\n \"icon-optional\": new Bs(te.layout_symbol[\"icon-optional\"]),\n \"icon-rotation-alignment\": new Bs(te.layout_symbol[\"icon-rotation-alignment\"]),\n \"icon-size\": new Es(te.layout_symbol[\"icon-size\"]),\n \"icon-text-fit\": new Bs(te.layout_symbol[\"icon-text-fit\"]),\n \"icon-text-fit-padding\": new Bs(te.layout_symbol[\"icon-text-fit-padding\"]),\n \"icon-image\": new Es(te.layout_symbol[\"icon-image\"]),\n \"icon-rotate\": new Es(te.layout_symbol[\"icon-rotate\"]),\n \"icon-padding\": new Bs(te.layout_symbol[\"icon-padding\"]),\n \"icon-keep-upright\": new Bs(te.layout_symbol[\"icon-keep-upright\"]),\n \"icon-offset\": new Es(te.layout_symbol[\"icon-offset\"]),\n \"icon-anchor\": new Es(te.layout_symbol[\"icon-anchor\"]),\n \"icon-pitch-alignment\": new Bs(te.layout_symbol[\"icon-pitch-alignment\"]),\n \"text-pitch-alignment\": new Bs(te.layout_symbol[\"text-pitch-alignment\"]),\n \"text-rotation-alignment\": new Bs(te.layout_symbol[\"text-rotation-alignment\"]),\n \"text-field\": new Es(te.layout_symbol[\"text-field\"]),\n \"text-font\": new Es(te.layout_symbol[\"text-font\"]),\n \"text-size\": new Es(te.layout_symbol[\"text-size\"]),\n \"text-max-width\": new Es(te.layout_symbol[\"text-max-width\"]),\n \"text-line-height\": new Es(te.layout_symbol[\"text-line-height\"]),\n \"text-letter-spacing\": new Es(te.layout_symbol[\"text-letter-spacing\"]),\n \"text-justify\": new Es(te.layout_symbol[\"text-justify\"]),\n \"text-radial-offset\": new Es(te.layout_symbol[\"text-radial-offset\"]),\n \"text-variable-anchor\": new Bs(te.layout_symbol[\"text-variable-anchor\"]),\n \"text-anchor\": new Es(te.layout_symbol[\"text-anchor\"]),\n \"text-max-angle\": new Bs(te.layout_symbol[\"text-max-angle\"]),\n \"text-writing-mode\": new Bs(te.layout_symbol[\"text-writing-mode\"]),\n \"text-rotate\": new Es(te.layout_symbol[\"text-rotate\"]),\n \"text-padding\": new Bs(te.layout_symbol[\"text-padding\"]),\n \"text-keep-upright\": new Bs(te.layout_symbol[\"text-keep-upright\"]),\n \"text-transform\": new Es(te.layout_symbol[\"text-transform\"]),\n \"text-offset\": new Es(te.layout_symbol[\"text-offset\"]),\n \"text-allow-overlap\": new Bs(te.layout_symbol[\"text-allow-overlap\"]),\n \"text-ignore-placement\": new Bs(te.layout_symbol[\"text-ignore-placement\"]),\n \"text-optional\": new Bs(te.layout_symbol[\"text-optional\"])\n });\n var uf = {\n paint: new Ps({\n \"icon-opacity\": new Es(te.paint_symbol[\"icon-opacity\"]),\n \"icon-color\": new Es(te.paint_symbol[\"icon-color\"]),\n \"icon-halo-color\": new Es(te.paint_symbol[\"icon-halo-color\"]),\n \"icon-halo-width\": new Es(te.paint_symbol[\"icon-halo-width\"]),\n \"icon-halo-blur\": new Es(te.paint_symbol[\"icon-halo-blur\"]),\n \"icon-translate\": new Bs(te.paint_symbol[\"icon-translate\"]),\n \"icon-translate-anchor\": new Bs(te.paint_symbol[\"icon-translate-anchor\"]),\n \"text-opacity\": new Es(te.paint_symbol[\"text-opacity\"]),\n \"text-color\": new Es(te.paint_symbol[\"text-color\"], {\n runtimeType: pe,\n getOverride: t => t.textColor,\n hasOverride: t => !!t.textColor\n }),\n \"text-halo-color\": new Es(te.paint_symbol[\"text-halo-color\"]),\n \"text-halo-width\": new Es(te.paint_symbol[\"text-halo-width\"]),\n \"text-halo-blur\": new Es(te.paint_symbol[\"text-halo-blur\"]),\n \"text-translate\": new Bs(te.paint_symbol[\"text-translate\"]),\n \"text-translate-anchor\": new Bs(te.paint_symbol[\"text-translate-anchor\"])\n }),\n layout: lf\n };\n class cf {\n constructor(t) {\n this.type = t.property.overrides ? t.property.overrides.runtimeType : le, this.defaultValue = t;\n }\n evaluate(t) {\n if (t.formattedSection) {\n const e = this.defaultValue.property.overrides;\n if (e && e.hasOverride(t.formattedSection)) return e.getOverride(t.formattedSection);\n }\n return t.feature && t.featureState ? this.defaultValue.evaluate(t.feature, t.featureState) : this.defaultValue.property.specification.default;\n }\n eachChild(t) {\n this.defaultValue.isConstant() || t(this.defaultValue.value._styleExpression.expression);\n }\n outputDefined() {\n return !1;\n }\n serialize() {\n return null;\n }\n }\n Ji(cf, \"FormatSectionOverride\", {\n omit: [\"defaultValue\"]\n });\n class hf extends ro {\n constructor(t) {\n super(t, uf);\n }\n recalculate(t, e) {\n super.recalculate(t, e), \"auto\" === this.layout.get(\"icon-rotation-alignment\") && (this.layout._values[\"icon-rotation-alignment\"] = \"point\" !== this.layout.get(\"symbol-placement\") ? \"map\" : \"viewport\"), \"auto\" === this.layout.get(\"text-rotation-alignment\") && (this.layout._values[\"text-rotation-alignment\"] = \"point\" !== this.layout.get(\"symbol-placement\") ? \"map\" : \"viewport\"), \"auto\" === this.layout.get(\"text-pitch-alignment\") && (this.layout._values[\"text-pitch-alignment\"] = this.layout.get(\"text-rotation-alignment\")), \"auto\" === this.layout.get(\"icon-pitch-alignment\") && (this.layout._values[\"icon-pitch-alignment\"] = this.layout.get(\"icon-rotation-alignment\"));\n const r = this.layout.get(\"text-writing-mode\");\n if (r) {\n const t = [];\n for (const e of r) t.indexOf(e) < 0 && t.push(e);\n this.layout._values[\"text-writing-mode\"] = t;\n } else this.layout._values[\"text-writing-mode\"] = \"point\" === this.layout.get(\"symbol-placement\") ? [\"horizontal\"] : [\"horizontal\", \"vertical\"];\n this._setPaintOverrides();\n }\n getValueAndResolveTokens(t, e, r, n) {\n const i = this.layout.get(t).evaluate(e, {}, r, n),\n s = this._unevaluatedLayout._values[t];\n return s.isDataDriven() || Jn(s.value) || !i ? i : function (t, e) {\n return e.replace(/{([^{}]+)}/g, (e, r) => r in t ? String(t[r]) : \"\");\n }(e.properties, i);\n }\n createBucket(t) {\n return new of(t);\n }\n queryRadius() {\n return 0;\n }\n queryIntersectsFeature() {\n return !1;\n }\n _setPaintOverrides() {\n for (const t of uf.paint.overridableProperties) {\n if (!hf.hasPaintOverride(this.layout, t)) continue;\n const e = this.paint.get(t),\n r = new cf(e),\n n = new Xn(r, e.property.specification);\n let i = null;\n i = \"constant\" === e.value.kind || \"source\" === e.value.kind ? new Yn(\"source\", n) : new Wn(\"composite\", n, e.value.zoomStops, e.value._interpolationType), this.paint._values[t] = new Ts(e.property, i, e.parameters);\n }\n }\n _handleOverridablePaintPropertyUpdate(t, e, r) {\n return !(!this.layout || e.isDataDriven() || r.isDataDriven()) && hf.hasPaintOverride(this.layout, t);\n }\n static hasPaintOverride(t, e) {\n const r = t.get(\"text-field\"),\n n = uf.paint.properties[e];\n let i = !1;\n const s = t => {\n for (const e of t) if (n.overrides && n.overrides.hasOverride(e)) return void (i = !0);\n };\n if (\"constant\" === r.value.kind && r.value.value instanceof De) s(r.value.value.sections);else if (\"source\" === r.value.kind) {\n const t = e => {\n i || (e instanceof je && Re(e.value) === me ? s(e.value.sections) : e instanceof Ze ? s(e.sections) : e.eachChild(t));\n },\n e = r.value;\n e._styleExpression && t(e._styleExpression.expression);\n }\n return i;\n }\n getProgramConfiguration(t) {\n return new Xa(this, t);\n }\n }\n var pf = {\n paint: new Ps({\n \"background-color\": new Bs(te.paint_background[\"background-color\"]),\n \"background-pattern\": new Bs(te.paint_background[\"background-pattern\"]),\n \"background-opacity\": new Bs(te.paint_background[\"background-opacity\"])\n })\n },\n df = {\n paint: new Ps({\n \"raster-opacity\": new Bs(te.paint_raster[\"raster-opacity\"]),\n \"raster-hue-rotate\": new Bs(te.paint_raster[\"raster-hue-rotate\"]),\n \"raster-brightness-min\": new Bs(te.paint_raster[\"raster-brightness-min\"]),\n \"raster-brightness-max\": new Bs(te.paint_raster[\"raster-brightness-max\"]),\n \"raster-saturation\": new Bs(te.paint_raster[\"raster-saturation\"]),\n \"raster-contrast\": new Bs(te.paint_raster[\"raster-contrast\"]),\n \"raster-resampling\": new Bs(te.paint_raster[\"raster-resampling\"]),\n \"raster-fade-duration\": new Bs(te.paint_raster[\"raster-fade-duration\"])\n })\n };\n class ff extends ro {\n constructor(t) {\n super(t, {}), this.implementation = t;\n }\n is3D() {\n return \"3d\" === this.implementation.renderingMode;\n }\n hasOffscreenPass() {\n return void 0 !== this.implementation.prerender;\n }\n isLayerDraped() {\n return void 0 !== this.implementation.renderToTile;\n }\n shouldRedrape() {\n return !!this.implementation.shouldRerenderTiles && this.implementation.shouldRerenderTiles();\n }\n recalculate() {}\n updateTransitions() {}\n hasTransition() {\n return !1;\n }\n serialize() {}\n onAdd(t) {\n this.implementation.onAdd && this.implementation.onAdd(t, t.painter.context.gl);\n }\n onRemove(t) {\n this.implementation.onRemove && this.implementation.onRemove(t, t.painter.context.gl);\n }\n }\n var yf = {\n paint: new Ps({\n \"sky-type\": new Bs(te.paint_sky[\"sky-type\"]),\n \"sky-atmosphere-sun\": new Bs(te.paint_sky[\"sky-atmosphere-sun\"]),\n \"sky-atmosphere-sun-intensity\": new Bs(te.paint_sky[\"sky-atmosphere-sun-intensity\"]),\n \"sky-gradient-center\": new Bs(te.paint_sky[\"sky-gradient-center\"]),\n \"sky-gradient-radius\": new Bs(te.paint_sky[\"sky-gradient-radius\"]),\n \"sky-gradient\": new Cs(te.paint_sky[\"sky-gradient\"]),\n \"sky-atmosphere-halo-color\": new Bs(te.paint_sky[\"sky-atmosphere-halo-color\"]),\n \"sky-atmosphere-color\": new Bs(te.paint_sky[\"sky-atmosphere-color\"]),\n \"sky-opacity\": new Bs(te.paint_sky[\"sky-opacity\"])\n })\n };\n function mf(t, e, r) {\n const n = [0, 0, 1],\n i = Ko([]);\n return Jo(i, i, r ? -w(t) + Math.PI : w(t)), Xo(i, i, -w(e)), Ro(n, n, i), Do(n, n);\n }\n const gf = {\n circle: class extends ro {\n constructor(t) {\n super(t, Tu);\n }\n createBucket(t) {\n return new cu(t);\n }\n queryRadius(t) {\n const e = t;\n return Au(\"circle-radius\", this, e) + Au(\"circle-stroke-width\", this, e) + Su(this.paint.get(\"circle-translate\"));\n }\n queryIntersectsFeature(t, e, r, n, i, s, a, o) {\n const l = Iu(this.paint.get(\"circle-translate\"), this.paint.get(\"circle-translate-anchor\"), s.angle, t.pixelToTileUnitsFactor),\n u = this.paint.get(\"circle-radius\").evaluate(e, r) + this.paint.get(\"circle-stroke-width\").evaluate(e, r);\n return zu(t, n, s, a, o, \"map\" === this.paint.get(\"circle-pitch-alignment\"), \"map\" === this.paint.get(\"circle-pitch-scale\"), l, u);\n }\n getProgramIds() {\n return [\"circle\"];\n }\n getProgramConfiguration(t) {\n return new Xa(this, t);\n }\n },\n heatmap: class extends ro {\n createBucket(t) {\n return new Du(t);\n }\n constructor(t) {\n super(t, $u), this._updateColorRamp();\n }\n _handleSpecialPaintPropertyUpdate(t) {\n \"heatmap-color\" === t && this._updateColorRamp();\n }\n _updateColorRamp() {\n this.colorRamp = ju({\n expression: this._transitionablePaint._values[\"heatmap-color\"].value.expression,\n evaluationKey: \"heatmapDensity\",\n image: this.colorRamp\n }), this.colorRampTexture = null;\n }\n resize() {\n this.heatmapFbo && (this.heatmapFbo.destroy(), this.heatmapFbo = null);\n }\n queryRadius(t) {\n return Au(\"heatmap-radius\", this, t);\n }\n queryIntersectsFeature(t, e, r, n, i, s, a, o) {\n const l = this.paint.get(\"heatmap-radius\").evaluate(e, r);\n return zu(t, n, s, a, o, !0, !0, new x(0, 0), l);\n }\n hasOffscreenPass() {\n return 0 !== this.paint.get(\"heatmap-opacity\") && \"none\" !== this.visibility;\n }\n getProgramIds() {\n return [\"heatmap\", \"heatmapTexture\"];\n }\n getProgramConfiguration(t) {\n return new Xa(this, t);\n }\n },\n hillshade: class extends ro {\n constructor(t) {\n super(t, Ou);\n }\n hasOffscreenPass() {\n return 0 !== this.paint.get(\"hillshade-exaggeration\") && \"none\" !== this.visibility;\n }\n getProgramIds() {\n return [\"hillshade\", \"hillshadePrepare\"];\n }\n },\n fill: class extends ro {\n constructor(t) {\n super(t, zc);\n }\n getProgramIds() {\n const t = this.paint.get(\"fill-pattern\"),\n e = t && t.constantOr(1),\n r = [e ? \"fillPattern\" : \"fill\"];\n return this.paint.get(\"fill-antialias\") && r.push(e && !this.getPaintProperty(\"fill-outline-color\") ? \"fillOutlinePattern\" : \"fillOutline\"), r;\n }\n getProgramConfiguration(t) {\n return new Xa(this, t);\n }\n recalculate(t, e) {\n super.recalculate(t, e);\n const r = this.paint._values[\"fill-outline-color\"];\n \"constant\" === r.value.kind && void 0 === r.value.value && (this.paint._values[\"fill-outline-color\"] = this.paint._values[\"fill-color\"]);\n }\n createBucket(t) {\n return new Mc(t);\n }\n queryRadius() {\n return Su(this.paint.get(\"fill-translate\"));\n }\n queryIntersectsFeature(t, e, r, n, i, s) {\n return !t.queryGeometry.isAboveHorizon && du(ku(t.tilespaceGeometry, this.paint.get(\"fill-translate\"), this.paint.get(\"fill-translate-anchor\"), s.angle, t.pixelToTileUnitsFactor), n);\n }\n isTileClipped() {\n return !0;\n }\n },\n \"fill-extrusion\": class extends ro {\n constructor(t) {\n super(t, ch);\n }\n createBucket(t) {\n return new th(t);\n }\n queryRadius() {\n return Su(this.paint.get(\"fill-extrusion-translate\"));\n }\n is3D() {\n return !0;\n }\n getProgramIds() {\n return [this.paint.get(\"fill-extrusion-pattern\").constantOr(1) ? \"fillExtrusionPattern\" : \"fillExtrusion\"];\n }\n getProgramConfiguration(t) {\n return new Xa(this, t);\n }\n queryIntersectsFeature(t, e, r, n, i, s, a, o, l) {\n const u = Iu(this.paint.get(\"fill-extrusion-translate\"), this.paint.get(\"fill-extrusion-translate-anchor\"), s.angle, t.pixelToTileUnitsFactor),\n c = this.paint.get(\"fill-extrusion-height\").evaluate(e, r),\n h = this.paint.get(\"fill-extrusion-base\").evaluate(e, r),\n p = [0, 0],\n d = o && s.elevation,\n f = s.elevation ? s.elevation.exaggeration() : 1,\n y = t.tile.getBucket(this);\n if (d && y instanceof th) {\n const t = y.centroidVertexArray,\n e = l + 1;\n e < t.length && (p[0] = t.geta_centroid_pos0(e), p[1] = t.geta_centroid_pos1(e));\n }\n if (0 === p[0] && 1 === p[1]) return !1;\n \"globe\" === s.projection.name && (n = lh([n], [new x(0, 0), new x(ao, ao)], t.tileID.canonical).map(t => t.polygon).flat());\n const m = d ? o : null,\n [g, v] = function (t, e, r, n, i, s, a, o, l, u, c) {\n return \"globe\" === t.projection.name ? function (t, e, r, n, i, s, a, o, l, u, c) {\n const h = [],\n p = [],\n d = t.projection.upVectorScale(c, t.center.lat, t.worldSize).metersToTile,\n f = [0, 0, 0, 1],\n y = [0, 0, 0, 1],\n m = (t, e, r, n) => {\n t[0] = e, t[1] = r, t[2] = n, t[3] = 1;\n },\n g = oh();\n r > 0 && (r += g), n += g;\n for (const g of e) {\n const e = [],\n x = [];\n for (const h of g) {\n const p = h.x + i.x,\n g = h.y + i.y,\n v = t.projection.projectTilePoint(p, g, c),\n b = t.projection.upVector(c, h.x, h.y);\n let w = r,\n _ = n;\n if (a) {\n const t = vh(p, g, r, n, a, o, l, u);\n w += t.base, _ += t.top;\n }\n 0 !== r ? m(f, v.x + b[0] * d * w, v.y + b[1] * d * w, v.z + b[2] * d * w) : m(f, v.x, v.y, v.z), m(y, v.x + b[0] * d * _, v.y + b[1] * d * _, v.z + b[2] * d * _), Fo(f, f, s), Fo(y, y, s), e.push(new mh(f[0], f[1], f[2])), x.push(new mh(y[0], y[1], y[2]));\n }\n h.push(e), p.push(x);\n }\n return [h, p];\n }(t, e, r, n, i, s, a, o, l, u, c) : a ? function (t, e, r, n, i, s, a, o, l) {\n const u = [],\n c = [],\n h = [0, 0, 0, 1];\n for (const p of t) {\n const t = [],\n d = [];\n for (const u of p) {\n const c = u.x + n.x,\n p = u.y + n.y,\n f = vh(c, p, e, r, s, a, o, l);\n h[0] = c, h[1] = p, h[2] = f.base, h[3] = 1, Go(h, h, i), h[3] = Math.max(h[3], 1e-5);\n const y = new mh(h[0] / h[3], h[1] / h[3], h[2] / h[3]);\n h[0] = c, h[1] = p, h[2] = f.top, h[3] = 1, Go(h, h, i), h[3] = Math.max(h[3], 1e-5);\n const m = new mh(h[0] / h[3], h[1] / h[3], h[2] / h[3]);\n t.push(y), d.push(m);\n }\n u.push(t), c.push(d);\n }\n return [u, c];\n }(e, r, n, i, s, a, o, l, u) : function (t, e, r, n, i) {\n const s = [],\n a = [],\n o = i[8] * e,\n l = i[9] * e,\n u = i[10] * e,\n c = i[11] * e,\n h = i[8] * r,\n p = i[9] * r,\n d = i[10] * r,\n f = i[11] * r;\n for (const e of t) {\n const t = [],\n r = [];\n for (const s of e) {\n const e = s.x + n.x,\n a = s.y + n.y,\n y = i[0] * e + i[4] * a + i[12],\n m = i[1] * e + i[5] * a + i[13],\n g = i[2] * e + i[6] * a + i[14],\n x = i[3] * e + i[7] * a + i[15],\n v = y + o,\n b = m + l,\n w = g + u,\n _ = Math.max(x + c, 1e-5),\n A = y + h,\n S = m + p,\n k = g + d,\n I = Math.max(x + f, 1e-5);\n t.push(new mh(v / _, b / _, w / _)), r.push(new mh(A / I, S / I, k / I));\n }\n s.push(t), a.push(r);\n }\n return [s, a];\n }(e, r, n, i, s);\n }(s, n, h, c, u, a, m, p, f, s.center.lat, t.tileID.canonical),\n b = t.queryGeometry;\n return function (t, e, r) {\n let n = 1 / 0;\n du(r, e) && (n = xh(r, e[0]));\n for (let i = 0; i < e.length; i++) {\n const s = e[i],\n a = t[i];\n for (let t = 0; t < s.length - 1; t++) {\n const e = s[t],\n i = [e, s[t + 1], a[t + 1], a[t], e];\n hu(r, i) && (n = Math.min(n, xh(r, i)));\n }\n }\n return n !== 1 / 0 && n;\n }(g, v, b.isPointQuery() ? b.screenBounds : b.screenGeometry);\n }\n },\n line: class extends ro {\n constructor(t) {\n super(t, Th), this.gradientVersion = 0;\n }\n _handleSpecialPaintPropertyUpdate(t) {\n if (\"line-gradient\" === t) {\n const t = this._transitionablePaint._values[\"line-gradient\"].value.expression;\n this.stepInterpolant = t._styleExpression && t._styleExpression.expression instanceof Br, this.gradientVersion = (this.gradientVersion + 1) % Number.MAX_SAFE_INTEGER;\n }\n }\n gradientExpression() {\n return this._transitionablePaint._values[\"line-gradient\"].value.expression;\n }\n widthExpression() {\n return this._transitionablePaint._values[\"line-width\"].value.expression;\n }\n recalculate(t, e) {\n super.recalculate(t, e), this.paint._values[\"line-floorwidth\"] = zh.possiblyEvaluate(this._transitioningPaint._values[\"line-width\"].value, t);\n }\n createBucket(t) {\n return new Ih(t);\n }\n getProgramIds() {\n return [this.paint.get(\"line-pattern\").constantOr(1) ? \"linePattern\" : \"line\"];\n }\n getProgramConfiguration(t) {\n return new Xa(this, t);\n }\n queryRadius(t) {\n const e = t,\n r = Bh(Au(\"line-width\", this, e), Au(\"line-gap-width\", this, e)),\n n = Au(\"line-offset\", this, e);\n return r / 2 + Math.abs(n) + Su(this.paint.get(\"line-translate\"));\n }\n queryIntersectsFeature(t, e, r, n, i, s) {\n if (t.queryGeometry.isAboveHorizon) return !1;\n const a = ku(t.tilespaceGeometry, this.paint.get(\"line-translate\"), this.paint.get(\"line-translate-anchor\"), s.angle, t.pixelToTileUnitsFactor),\n o = t.pixelToTileUnitsFactor / 2 * Bh(this.paint.get(\"line-width\").evaluate(e, r), this.paint.get(\"line-gap-width\").evaluate(e, r)),\n l = this.paint.get(\"line-offset\").evaluate(e, r);\n return l && (n = function (t, e) {\n const r = [],\n n = new x(0, 0);\n for (let i = 0; i < t.length; i++) {\n const s = t[i],\n a = [];\n for (let t = 0; t < s.length; t++) {\n const r = s[t],\n i = s[t + 1],\n o = 0 === t ? n : r.sub(s[t - 1])._unit()._perp(),\n l = t === s.length - 1 ? n : i.sub(r)._unit()._perp(),\n u = o._add(l)._unit();\n u._mult(1 / (u.x * l.x + u.y * l.y)), a.push(u._mult(e)._add(r));\n }\n r.push(a);\n }\n return r;\n }(n, l * t.pixelToTileUnitsFactor)), function (t, e, r) {\n for (let n = 0; n < e.length; n++) {\n const i = e[n];\n if (t.length >= 3) for (let e = 0; e < i.length; e++) if (bu(t, i[e])) return !0;\n if (fu(t, i, r)) return !0;\n }\n return !1;\n }(a, n, o);\n }\n isTileClipped() {\n return !0;\n }\n },\n symbol: hf,\n background: class extends ro {\n constructor(t) {\n super(t, pf);\n }\n getProgramIds() {\n return [this.paint.get(\"background-pattern\") ? \"backgroundPattern\" : \"background\"];\n }\n },\n raster: class extends ro {\n constructor(t) {\n super(t, df);\n }\n getProgramIds() {\n return [\"raster\"];\n }\n },\n sky: class extends ro {\n constructor(t) {\n super(t, yf), this._updateColorRamp();\n }\n _handleSpecialPaintPropertyUpdate(t) {\n \"sky-gradient\" === t ? this._updateColorRamp() : \"sky-atmosphere-sun\" !== t && \"sky-atmosphere-halo-color\" !== t && \"sky-atmosphere-color\" !== t && \"sky-atmosphere-sun-intensity\" !== t || (this._skyboxInvalidated = !0);\n }\n _updateColorRamp() {\n this.colorRamp = ju({\n expression: this._transitionablePaint._values[\"sky-gradient\"].value.expression,\n evaluationKey: \"skyRadialProgress\"\n }), this.colorRampTexture && (this.colorRampTexture.destroy(), this.colorRampTexture = null);\n }\n needsSkyboxCapture(t) {\n if (this._skyboxInvalidated || !this.skyboxTexture || !this.skyboxGeometry) return !0;\n if (!this.paint.get(\"sky-atmosphere-sun\")) {\n const e = t.style.light.properties.get(\"position\");\n return this._lightPosition.azimuthal !== e.azimuthal || this._lightPosition.polar !== e.polar;\n }\n return !1;\n }\n getCenter(t, e) {\n if (\"atmosphere\" === this.paint.get(\"sky-type\")) {\n const r = this.paint.get(\"sky-atmosphere-sun\"),\n n = !r,\n i = t.style.light,\n s = i.properties.get(\"position\");\n return n && \"viewport\" === i.properties.get(\"anchor\") && N(\"The sun direction is attached to a light with viewport anchor, lighting may behave unexpectedly.\"), n ? mf(s.azimuthal, 90 - s.polar, e) : mf(r[0], 90 - r[1], e);\n }\n const r = this.paint.get(\"sky-gradient-center\");\n return mf(r[0], 90 - r[1], e);\n }\n is3D() {\n return !1;\n }\n isSky() {\n return !0;\n }\n markSkyboxValid(t) {\n this._skyboxInvalidated = !1, this._lightPosition = t.style.light.properties.get(\"position\");\n }\n hasOffscreenPass() {\n return !0;\n }\n getProgramIds() {\n const t = this.paint.get(\"sky-type\");\n return \"atmosphere\" === t ? [\"skyboxCapture\", \"skybox\"] : \"gradient\" === t ? [\"skyboxGradient\"] : null;\n }\n }\n };\n class xf {\n constructor(t, e, r, n) {\n this.context = t, this.format = r, this.texture = t.gl.createTexture(), this.update(e, n);\n }\n update(t, r, n) {\n const {\n width: i,\n height: s\n } = t,\n {\n context: a\n } = this,\n {\n gl: o\n } = a,\n {\n HTMLImageElement: l,\n HTMLCanvasElement: u,\n HTMLVideoElement: c,\n ImageData: h,\n ImageBitmap: p\n } = e;\n if (o.bindTexture(o.TEXTURE_2D, this.texture), a.pixelStoreUnpackFlipY.set(!1), a.pixelStoreUnpack.set(1), a.pixelStoreUnpackPremultiplyAlpha.set(this.format === o.RGBA && (!r || !1 !== r.premultiply)), n || this.size && this.size[0] === i && this.size[1] === s) {\n const {\n x: e,\n y: r\n } = n || {\n x: 0,\n y: 0\n };\n t instanceof l || t instanceof u || t instanceof c || t instanceof h || p && t instanceof p ? o.texSubImage2D(o.TEXTURE_2D, 0, e, r, o.RGBA, o.UNSIGNED_BYTE, t) : o.texSubImage2D(o.TEXTURE_2D, 0, e, r, i, s, o.RGBA, o.UNSIGNED_BYTE, t.data);\n } else this.size = [i, s], t instanceof l || t instanceof u || t instanceof c || t instanceof h || p && t instanceof p ? o.texImage2D(o.TEXTURE_2D, 0, this.format, this.format, o.UNSIGNED_BYTE, t) : o.texImage2D(o.TEXTURE_2D, 0, this.format, i, s, 0, this.format, o.UNSIGNED_BYTE, t.data);\n this.useMipmap = Boolean(r && r.useMipmap && this.isSizePowerOfTwo()), this.useMipmap && o.generateMipmap(o.TEXTURE_2D);\n }\n bind(t, e) {\n const {\n context: r\n } = this,\n {\n gl: n\n } = r;\n n.bindTexture(n.TEXTURE_2D, this.texture), t !== this.filter && (n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MAG_FILTER, t), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MIN_FILTER, this.useMipmap ? t === n.NEAREST ? n.NEAREST_MIPMAP_NEAREST : n.LINEAR_MIPMAP_NEAREST : t), this.filter = t), e !== this.wrap && (n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_S, e), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_T, e), this.wrap = e);\n }\n isSizePowerOfTwo() {\n return this.size[0] === this.size[1] && Math.log(this.size[0]) / Math.LN2 % 1 == 0;\n }\n destroy() {\n const {\n gl: t\n } = this.context;\n t.deleteTexture(this.texture), this.texture = null;\n }\n }\n class vf {\n constructor(t) {\n this._callback = t, this._triggered = !1, \"undefined\" != typeof MessageChannel && (this._channel = new MessageChannel(), this._channel.port2.onmessage = () => {\n this._triggered = !1, this._callback();\n });\n }\n trigger() {\n this._triggered || (this._triggered = !0, this._channel ? this._channel.port1.postMessage(!0) : setTimeout(() => {\n this._triggered = !1, this._callback();\n }, 0));\n }\n remove() {\n this._channel = void 0, this._callback = () => {};\n }\n }\n class bf {\n constructor() {\n this.tasks = {}, this.taskQueue = [], R([\"process\"], this), this.invoker = new vf(this.process), this.nextId = 0;\n }\n add(t, e) {\n const r = this.nextId++,\n n = function ({\n type: t,\n isSymbolTile: e,\n zoom: r\n }) {\n return r = r || 0, \"message\" === t ? 0 : \"maybePrepare\" !== t || e ? \"parseTile\" !== t || e ? \"parseTile\" === t && e ? 300 - r : \"maybePrepare\" === t && e ? 400 - r : 500 : 200 - r : 100 - r;\n }(e);\n if (0 === n) {\n K();\n try {\n t();\n } finally {}\n return {\n cancel: () => {}\n };\n }\n return this.tasks[r] = {\n fn: t,\n metadata: e,\n priority: n,\n id: r\n }, this.taskQueue.push(r), this.invoker.trigger(), {\n cancel: () => {\n delete this.tasks[r];\n }\n };\n }\n process() {\n K();\n try {\n if (this.taskQueue = this.taskQueue.filter(t => !!this.tasks[t]), !this.taskQueue.length) return;\n const t = this.pick();\n if (null === t) return;\n const e = this.tasks[t];\n if (delete this.tasks[t], this.taskQueue.length && this.invoker.trigger(), !e) return;\n e.fn();\n } finally {}\n }\n pick() {\n let t = null,\n e = 1 / 0;\n for (let r = 0; r < this.taskQueue.length; r++) {\n const n = this.tasks[this.taskQueue[r]];\n n.priority < e && (e = n.priority, t = r);\n }\n if (null === t) return null;\n const r = this.taskQueue[t];\n return this.taskQueue.splice(t, 1), r;\n }\n remove() {\n this.invoker.remove();\n }\n }\n class wf {\n constructor(t) {\n this._stringToNumber = {}, this._numberToString = [];\n for (let e = 0; e < t.length; e++) {\n const r = t[e];\n this._stringToNumber[r] = e, this._numberToString[e] = r;\n }\n }\n encode(t) {\n return this._stringToNumber[t];\n }\n decode(t) {\n return this._numberToString[t];\n }\n }\n const _f = [\"tile\", \"layer\", \"source\", \"sourceLayer\", \"state\"];\n class Af {\n constructor(t, e, r, n, i) {\n this.type = \"Feature\", this._vectorTileFeature = t, this._z = e, this._x = r, this._y = n, this.properties = t.properties, this.id = i;\n }\n get geometry() {\n return void 0 === this._geometry && (this._geometry = this._vectorTileFeature.toGeoJSON(this._x, this._y, this._z).geometry), this._geometry;\n }\n set geometry(t) {\n this._geometry = t;\n }\n toJSON() {\n const t = {\n type: \"Feature\",\n state: void 0,\n geometry: this.geometry,\n properties: this.properties\n };\n void 0 !== this.id && (t.id = this.id);\n for (const e of _f) void 0 !== this[e] && (t[e] = this[e]);\n return t;\n }\n }\n const Sf = 32,\n kf = 33,\n If = new Uint16Array(8184);\n for (let t = 0; t < 2046; t++) {\n let e = t + 2,\n r = 0,\n n = 0,\n i = 0,\n s = 0,\n a = 0,\n o = 0;\n for (1 & e ? i = s = a = Sf : r = n = o = Sf; (e >>= 1) > 1;) {\n const t = r + i >> 1,\n l = n + s >> 1;\n 1 & e ? (i = r, s = n, r = a, n = o) : (r = i, n = s, i = a, s = o), a = t, o = l;\n }\n const l = 4 * t;\n If[l + 0] = r, If[l + 1] = n, If[l + 2] = i, If[l + 3] = s;\n }\n const Mf = new Uint16Array(2178),\n Tf = new Uint8Array(1089),\n zf = new Uint16Array(1089);\n function Bf(t) {\n return 0 === t ? -.03125 : 32 === t ? .03125 : 0;\n }\n var Ef = Rs([{\n name: \"a_pos\",\n type: \"Int16\",\n components: 2\n }, {\n name: \"a_texture_pos\",\n type: \"Int16\",\n components: 2\n }]);\n const Cf = {\n type: 2,\n extent: ao,\n loadGeometry: () => [[new x(0, 0), new x(ao + 1, 0), new x(ao + 1, ao + 1), new x(0, ao + 1), new x(0, 0)]]\n };\n class Pf {\n constructor(t, e, r, n, i) {\n this.tileID = t, this.uid = D(), this.uses = 0, this.tileSize = e, this.tileZoom = r, this.buckets = {}, this.expirationTime = null, this.queryPadding = 0, this.hasSymbolBuckets = !1, this.hasRTLText = !1, this.dependencies = {}, this.isRaster = i, this.expiredRequestCount = 0, this.state = \"loading\", n && n.transform && (this.projection = n.transform.projection);\n }\n registerFadeDuration(t) {\n const e = t + this.timeAdded;\n e < Xt.now() || this.fadeEndTime && e < this.fadeEndTime || (this.fadeEndTime = e);\n }\n wasRequested() {\n return \"errored\" === this.state || \"loaded\" === this.state || \"reloading\" === this.state;\n }\n get tileTransform() {\n return this._tileTransform || (this._tileTransform = Bd(this.tileID.canonical, this.projection)), this._tileTransform;\n }\n loadVectorData(t, e, r) {\n if (this.unloadVectorData(), this.state = \"loaded\", t) {\n t.featureIndex && (this.latestFeatureIndex = t.featureIndex, t.rawTileData ? (this.latestRawTileData = t.rawTileData, this.latestFeatureIndex.rawTileData = t.rawTileData) : this.latestRawTileData && (this.latestFeatureIndex.rawTileData = this.latestRawTileData)), this.collisionBoxArray = t.collisionBoxArray, this.buckets = function (t, e) {\n const r = {};\n if (!e) return r;\n for (const n of t) {\n const t = n.layerIds.map(t => e.getLayer(t)).filter(Boolean);\n if (0 !== t.length) {\n n.layers = t, n.stateDependentLayerIds && (n.stateDependentLayers = n.stateDependentLayerIds.map(e => t.filter(t => t.id === e)[0]));\n for (const e of t) r[e.id] = n;\n }\n }\n return r;\n }(t.buckets, e.style), this.hasSymbolBuckets = !1;\n for (const t in this.buckets) {\n const e = this.buckets[t];\n if (e instanceof of) {\n if (this.hasSymbolBuckets = !0, !r) break;\n e.justReloaded = !0;\n }\n }\n if (this.hasRTLText = !1, this.hasSymbolBuckets) for (const t in this.buckets) {\n const e = this.buckets[t];\n if (e instanceof of && e.hasRTLText) {\n this.hasRTLText = !0, bs.isLoading() || bs.isLoaded() || \"deferred\" !== xs() || vs();\n break;\n }\n }\n this.queryPadding = 0;\n for (const t in this.buckets) {\n const r = this.buckets[t];\n this.queryPadding = Math.max(this.queryPadding, e.style.getLayer(t).queryRadius(r));\n }\n t.imageAtlas && (this.imageAtlas = t.imageAtlas), t.glyphAtlasImage && (this.glyphAtlasImage = t.glyphAtlasImage), t.lineAtlas && (this.lineAtlas = t.lineAtlas);\n } else this.collisionBoxArray = new pa();\n }\n unloadVectorData() {\n if (this.hasData()) {\n for (const t in this.buckets) this.buckets[t].destroy();\n this.buckets = {}, this.imageAtlas && (this.imageAtlas = null), this.lineAtlas && (this.lineAtlas = null), this.imageAtlasTexture && this.imageAtlasTexture.destroy(), this.glyphAtlasTexture && this.glyphAtlasTexture.destroy(), this.lineAtlasTexture && this.lineAtlasTexture.destroy(), this._tileBoundsBuffer && (this._tileBoundsBuffer.destroy(), this._tileBoundsIndexBuffer.destroy(), this._tileBoundsSegments.destroy(), this._tileBoundsBuffer = null), this._tileDebugBuffer && (this._tileDebugBuffer.destroy(), this._tileDebugSegments.destroy(), this._tileDebugBuffer = null), this._tileDebugIndexBuffer && (this._tileDebugIndexBuffer.destroy(), this._tileDebugIndexBuffer = null), this._globeTileDebugBorderBuffer && (this._globeTileDebugBorderBuffer.destroy(), this._globeTileDebugBorderBuffer = null), this._tileDebugTextBuffer && (this._tileDebugTextBuffer.destroy(), this._tileDebugTextSegments.destroy(), this._tileDebugTextIndexBuffer.destroy(), this._tileDebugTextBuffer = null), this._globeTileDebugTextBuffer && (this._globeTileDebugTextBuffer.destroy(), this._globeTileDebugTextBuffer = null), this.latestFeatureIndex = null, this.state = \"unloaded\";\n }\n }\n getBucket(t) {\n return this.buckets[t.id];\n }\n upload(t) {\n for (const e in this.buckets) {\n const r = this.buckets[e];\n r.uploadPending() && r.upload(t);\n }\n const e = t.gl;\n this.imageAtlas && !this.imageAtlas.uploaded && (this.imageAtlasTexture = new xf(t, this.imageAtlas.image, e.RGBA), this.imageAtlas.uploaded = !0), this.glyphAtlasImage && (this.glyphAtlasTexture = new xf(t, this.glyphAtlasImage, e.ALPHA), this.glyphAtlasImage = null), this.lineAtlas && !this.lineAtlas.uploaded && (this.lineAtlasTexture = new xf(t, this.lineAtlas.image, e.ALPHA), this.lineAtlas.uploaded = !0);\n }\n prepare(t) {\n this.imageAtlas && this.imageAtlas.patchUpdatedImages(t, this.imageAtlasTexture);\n }\n queryRenderedFeatures(t, e, r, n, i, s, a, o) {\n return this.latestFeatureIndex && this.latestFeatureIndex.rawTileData ? this.latestFeatureIndex.query({\n tileResult: n,\n pixelPosMatrix: a,\n transform: s,\n params: i,\n tileTransform: this.tileTransform\n }, t, e, r) : {};\n }\n querySourceFeatures(t, e) {\n const r = this.latestFeatureIndex;\n if (!r || !r.rawTileData) return;\n const n = r.loadVTLayers(),\n i = e ? e.sourceLayer : \"\",\n s = n._geojsonTileLayer || n[i];\n if (!s) return;\n const a = hi(e && e.filter),\n {\n z: o,\n x: l,\n y: u\n } = this.tileID.canonical,\n c = {\n z: o,\n x: l,\n y: u\n };\n for (let e = 0; e < s.length; e++) {\n const n = s.feature(e);\n if (a.needGeometry) {\n const t = ou(n, !0);\n if (!a.filter(new ws(this.tileID.overscaledZ), t, this.tileID.canonical)) continue;\n } else if (!a.filter(new ws(this.tileID.overscaledZ), n)) continue;\n const h = r.getId(n, i),\n p = new Af(n, o, l, u, h);\n p.tile = c, t.push(p);\n }\n }\n hasData() {\n return \"loaded\" === this.state || \"reloading\" === this.state || \"expired\" === this.state;\n }\n patternsLoaded() {\n return !!this.imageAtlas && !!Object.keys(this.imageAtlas.patternPositions).length;\n }\n setExpiryData(t) {\n const e = this.expirationTime;\n if (t.cacheControl) {\n const e = X(t.cacheControl);\n e[\"max-age\"] && (this.expirationTime = Date.now() + 1e3 * e[\"max-age\"]);\n } else t.expires && (this.expirationTime = new Date(t.expires).getTime());\n if (this.expirationTime) {\n const t = Date.now();\n let r = !1;\n if (this.expirationTime > t) r = !1;else if (e) {\n if (this.expirationTime < e) r = !0;else {\n const n = this.expirationTime - e;\n n ? this.expirationTime = t + Math.max(n, 3e4) : r = !0;\n }\n } else r = !0;\n r ? (this.expiredRequestCount++, this.state = \"expired\") : this.expiredRequestCount = 0;\n }\n }\n getExpiryTimeout() {\n if (this.expirationTime) return this.expiredRequestCount ? 1e3 * (1 << Math.min(this.expiredRequestCount - 1, 31)) : Math.min(this.expirationTime - new Date().getTime(), Math.pow(2, 31) - 1);\n }\n setFeatureState(t, e) {\n if (!this.latestFeatureIndex || !this.latestFeatureIndex.rawTileData || 0 === Object.keys(t).length || !e) return;\n const r = this.latestFeatureIndex.loadVTLayers(),\n n = e.style.listImages();\n for (const i in this.buckets) {\n if (!e.style.hasLayer(i)) continue;\n const s = this.buckets[i],\n a = s.layers[0].sourceLayer || \"_geojsonTileLayer\",\n o = r[a],\n l = t[a];\n if (!o || !l || 0 === Object.keys(l).length) continue;\n if (s.update(l, o, n, this.imageAtlas && this.imageAtlas.patternPositions || {}), s instanceof Ih || s instanceof Mc) {\n const t = e.style._getSourceCache(s.layers[0].source);\n e._terrain && e._terrain.enabled && t && s.programConfigurations.needsUpload && e._terrain._clearRenderCacheForTile(t.id, this.tileID);\n }\n const u = e && e.style && e.style.getLayer(i);\n u && (this.queryPadding = Math.max(this.queryPadding, u.queryRadius(s)));\n }\n }\n holdingForFade() {\n return void 0 !== this.symbolFadeHoldUntil;\n }\n symbolFadeFinished() {\n return !this.symbolFadeHoldUntil || this.symbolFadeHoldUntil < Xt.now();\n }\n clearFadeHold() {\n this.symbolFadeHoldUntil = void 0;\n }\n setHoldDuration(t) {\n this.symbolFadeHoldUntil = Xt.now() + t;\n }\n setTexture(t, e) {\n const r = e.context,\n n = r.gl;\n this.texture = this.texture || e.getTileTexture(t.width), this.texture ? this.texture.update(t, {\n useMipmap: !0\n }) : (this.texture = new xf(r, t, n.RGBA, {\n useMipmap: !0\n }), this.texture.bind(n.LINEAR, n.CLAMP_TO_EDGE));\n }\n setDependencies(t, e) {\n const r = {};\n for (const t of e) r[t] = !0;\n this.dependencies[t] = r;\n }\n hasDependency(t, e) {\n for (const r of t) {\n const t = this.dependencies[r];\n if (t) for (const r of e) if (t[r]) return !0;\n }\n return !1;\n }\n clearQueryDebugViz() {}\n _makeDebugTileBoundsBuffers(t, e) {\n if (!e || \"mercator\" === e.name || this._tileDebugBuffer) return;\n const r = au(Cf, this.tileID.canonical, this.tileTransform)[0],\n n = new $s(),\n i = new ua();\n for (let t = 0; t < r.length; t++) {\n const {\n x: e,\n y: s\n } = r[t];\n n.emplaceBack(e, s), i.emplaceBack(t);\n }\n i.emplaceBack(0), this._tileDebugIndexBuffer = t.createIndexBuffer(i), this._tileDebugBuffer = t.createVertexBuffer(n, tl.members), this._tileDebugSegments = so.simpleSegment(0, 0, n.length, i.length);\n }\n _makeTileBoundsBuffers(t, e) {\n if (this._tileBoundsBuffer || !e || \"mercator\" === e.name) return;\n const r = au(Cf, this.tileID.canonical, this.tileTransform)[0];\n let n, i;\n if (this.isRaster) {\n const t = function (t, e) {\n const r = Bd(t, e),\n n = Math.pow(2, t.z);\n for (let i = 0; i < kf; i++) for (let s = 0; s < kf; s++) {\n const a = Kl((t.x + (s + Bf(s)) / Sf) / n),\n o = Xl((t.y + (i + Bf(i)) / Sf) / n),\n l = e.project(a, o),\n u = i * kf + s;\n Mf[2 * u + 0] = Math.round((l.x * r.scale - r.x) * ao), Mf[2 * u + 1] = Math.round((l.y * r.scale - r.y) * ao);\n }\n Tf.fill(0), zf.fill(0);\n for (let t = 2045; t >= 0; t--) {\n const e = 4 * t,\n r = If[e + 0],\n n = If[e + 1],\n i = If[e + 2],\n s = If[e + 3],\n a = r + i >> 1,\n o = n + s >> 1,\n l = a + o - n,\n u = o + r - a,\n c = n * kf + r,\n h = s * kf + i,\n p = o * kf + a,\n d = Math.hypot((Mf[2 * c + 0] + Mf[2 * h + 0]) / 2 - Mf[2 * p + 0], (Mf[2 * c + 1] + Mf[2 * h + 1]) / 2 - Mf[2 * p + 1]) >= 16;\n Tf[p] = Tf[p] || (d ? 1 : 0), t < 1022 && (Tf[p] = Tf[p] || Tf[(n + u >> 1) * kf + (r + l >> 1)] || Tf[(s + u >> 1) * kf + (i + l >> 1)]);\n }\n const i = new Os(),\n s = new ra();\n let a = 0;\n function o(t, e) {\n const r = e * kf + t;\n return 0 === zf[r] && (i.emplaceBack(Mf[2 * r + 0], Mf[2 * r + 1], t * ao / Sf, e * ao / Sf), zf[r] = ++a), zf[r] - 1;\n }\n function l(t, e, r, n, i, a) {\n const u = t + r >> 1,\n c = e + n >> 1;\n if (Math.abs(t - i) + Math.abs(e - a) > 1 && Tf[c * kf + u]) l(i, a, t, e, u, c), l(r, n, i, a, u, c);else {\n const l = o(t, e),\n u = o(r, n),\n c = o(i, a);\n s.emplaceBack(l, u, c);\n }\n }\n return l(0, 0, Sf, Sf, Sf, 0), l(Sf, Sf, 0, 0, 0, Sf), {\n vertices: i,\n indices: s\n };\n }(this.tileID.canonical, e);\n n = t.vertices, i = t.indices;\n } else {\n n = new Os(), i = new ra();\n for (const {\n x: t,\n y: e\n } of r) n.emplaceBack(t, e, 0, 0);\n const t = xc(n.int16, void 0, 4);\n for (let e = 0; e < t.length; e += 3) i.emplaceBack(t[e], t[e + 1], t[e + 2]);\n }\n this._tileBoundsBuffer = t.createVertexBuffer(n, Ef.members), this._tileBoundsIndexBuffer = t.createIndexBuffer(i), this._tileBoundsSegments = so.simpleSegment(0, 0, n.length, i.length);\n }\n _makeGlobeTileDebugBuffers(t, e) {\n const r = e.projection;\n if (!r || \"globe\" !== r.name || e.freezeTileCoverage) return;\n const n = this.tileID.canonical,\n i = Bl(bl(n, e)),\n s = Pl(e.zoom);\n let a;\n s > 0 && (a = fo(new Float64Array(16), e.globeMatrix)), this._makeGlobeTileDebugBorderBuffer(t, n, e, i, a, s), this._makeGlobeTileDebugTextBuffer(t, n, e, i, a, s);\n }\n _globePoint(t, e, r, n, i, s, a) {\n let o = Ml(t, e, r);\n if (s) {\n const i = 1 << r.z,\n l = Nl(n.center.lng),\n u = Gl(n.center.lat),\n c = (r.x + .5) / i - l;\n let h = 0;\n c > .5 ? h = -1 : c < -.5 && (h = 1);\n let p = (t / ao + r.x) / i + h,\n d = (e / ao + r.y) / i;\n p = (p - l) * n._pixelsPerMercatorPixel + l, d = (d - u) * n._pixelsPerMercatorPixel + u;\n const f = [p * n.worldSize, d * n.worldSize, 0];\n Fo(f, f, s), o = vl(o, f, a);\n }\n return Fo(o, o, i);\n }\n _makeGlobeTileDebugBorderBuffer(t, e, r, n, i, s) {\n const a = new $s(),\n o = new ua(),\n l = new js(),\n u = (t, u, c, h, p) => {\n const d = (c - t) / (p - 1),\n f = (h - u) / (p - 1),\n y = a.length;\n for (let c = 0; c < p; c++) {\n const h = t + c * d,\n p = u + c * f;\n a.emplaceBack(h, p);\n const m = this._globePoint(h, p, e, r, n, i, s);\n l.emplaceBack(m[0], m[1], m[2]), o.emplaceBack(y + c);\n }\n },\n c = ao;\n u(0, 0, c, 0, 16), u(c, 0, c, c, 16), u(c, c, 0, c, 16), u(0, c, 0, 0, 16), this._tileDebugIndexBuffer = t.createIndexBuffer(o), this._tileDebugBuffer = t.createVertexBuffer(a, tl.members), this._globeTileDebugBorderBuffer = t.createVertexBuffer(l, Qo.members), this._tileDebugSegments = so.simpleSegment(0, 0, a.length, o.length);\n }\n _makeGlobeTileDebugTextBuffer(t, e, r, n, i, s) {\n const a = ao / 4,\n o = new $s(),\n l = new ra(),\n u = new js(),\n c = 25;\n l.reserve(32), o.reserve(c), u.reserve(c);\n const h = (t, e) => c * t + e;\n for (let t = 0; t < c; t++) {\n const l = t * a;\n for (let t = 0; t < c; t++) {\n const c = t * a;\n o.emplaceBack(c, l);\n const h = this._globePoint(c, l, e, r, n, i, s);\n u.emplaceBack(h[0], h[1], h[2]);\n }\n }\n for (let t = 0; t < 4; t++) for (let e = 0; e < 4; e++) {\n const r = h(t, e),\n n = h(t, e + 1),\n i = h(t + 1, e),\n s = h(t + 1, e + 1);\n l.emplaceBack(r, n, i), l.emplaceBack(i, n, s);\n }\n this._tileDebugTextIndexBuffer = t.createIndexBuffer(l), this._tileDebugTextBuffer = t.createVertexBuffer(o, tl.members), this._globeTileDebugTextBuffer = t.createVertexBuffer(u, Qo.members), this._tileDebugTextSegments = so.simpleSegment(0, 0, c, 32);\n }\n }\n class Df {\n constructor() {\n this.state = {}, this.stateChanges = {}, this.deletedStates = {};\n }\n updateState(t, e, r) {\n const n = String(e);\n if (this.stateChanges[t] = this.stateChanges[t] || {}, this.stateChanges[t][n] = this.stateChanges[t][n] || {}, C(this.stateChanges[t][n], r), null === this.deletedStates[t]) {\n this.deletedStates[t] = {};\n for (const e in this.state[t]) e !== n && (this.deletedStates[t][e] = null);\n } else if (this.deletedStates[t] && null === this.deletedStates[t][n]) {\n this.deletedStates[t][n] = {};\n for (const e in this.state[t][n]) r[e] || (this.deletedStates[t][n][e] = null);\n } else for (const e in r) this.deletedStates[t] && this.deletedStates[t][n] && null === this.deletedStates[t][n][e] && delete this.deletedStates[t][n][e];\n }\n removeFeatureState(t, e, r) {\n if (null === this.deletedStates[t]) return;\n const n = String(e);\n if (this.deletedStates[t] = this.deletedStates[t] || {}, r && void 0 !== e) null !== this.deletedStates[t][n] && (this.deletedStates[t][n] = this.deletedStates[t][n] || {}, this.deletedStates[t][n][r] = null);else if (void 0 !== e) {\n if (this.stateChanges[t] && this.stateChanges[t][n]) for (r in this.deletedStates[t][n] = {}, this.stateChanges[t][n]) this.deletedStates[t][n][r] = null;else this.deletedStates[t][n] = null;\n } else this.deletedStates[t] = null;\n }\n getState(t, e) {\n const r = String(e),\n n = C({}, (this.state[t] || {})[r], (this.stateChanges[t] || {})[r]);\n if (null === this.deletedStates[t]) return {};\n if (this.deletedStates[t]) {\n const r = this.deletedStates[t][e];\n if (null === r) return {};\n for (const t in r) delete n[t];\n }\n return n;\n }\n initializeTileState(t, e) {\n t.setFeatureState(this.state, e);\n }\n coalesceChanges(t, e) {\n const r = {};\n for (const t in this.stateChanges) {\n this.state[t] = this.state[t] || {};\n const e = {};\n for (const r in this.stateChanges[t]) this.state[t][r] || (this.state[t][r] = {}), C(this.state[t][r], this.stateChanges[t][r]), e[r] = this.state[t][r];\n r[t] = e;\n }\n for (const t in this.deletedStates) {\n this.state[t] = this.state[t] || {};\n const e = {};\n if (null === this.deletedStates[t]) for (const r in this.state[t]) e[r] = {}, this.state[t][r] = {};else for (const r in this.deletedStates[t]) {\n if (null === this.deletedStates[t][r]) this.state[t][r] = {};else if (this.state[t][r]) for (const e of Object.keys(this.deletedStates[t][r])) delete this.state[t][r][e];\n e[r] = this.state[t][r];\n }\n r[t] = r[t] || {}, C(r[t], e);\n }\n if (this.stateChanges = {}, this.deletedStates = {}, 0 !== Object.keys(r).length) for (const n in t) t[n].setFeatureState(r, e);\n }\n }\n class Vf {\n constructor(t) {\n this.size = t, this.minimums = [], this.maximums = [], this.leaves = [];\n }\n getElevation(t, e) {\n const r = this.toIdx(t, e);\n return {\n min: this.minimums[r],\n max: this.maximums[r]\n };\n }\n isLeaf(t, e) {\n return this.leaves[this.toIdx(t, e)];\n }\n toIdx(t, e) {\n return e * this.size + t;\n }\n }\n function Lf(t, e, r, n) {\n let i = 0,\n s = Number.MAX_VALUE;\n for (let a = 0; a < 3; a++) if (Math.abs(n[a]) < 1e-15) {\n if (r[a] < t[a] || r[a] > e[a]) return null;\n } else {\n const o = 1 / n[a];\n let l = (t[a] - r[a]) * o,\n u = (e[a] - r[a]) * o;\n if (l > u) {\n const t = l;\n l = u, u = t;\n }\n if (l > i && (i = l), u < s && (s = u), i > s) return null;\n }\n return i;\n }\n function Ff(t, e, r, n, i, s, a, o, l, u, c) {\n const h = n - t,\n p = i - e,\n d = s - r,\n f = a - t,\n y = o - e,\n m = l - r,\n g = c[1] * m - c[2] * y,\n x = c[2] * f - c[0] * m,\n v = c[0] * y - c[1] * f,\n b = h * g + p * x + d * v;\n if (Math.abs(b) < 1e-15) return null;\n const w = 1 / b,\n _ = u[0] - t,\n A = u[1] - e,\n S = u[2] - r,\n k = (_ * g + A * x + S * v) * w;\n if (k < 0 || k > 1) return null;\n const I = A * d - S * p,\n M = S * h - _ * d,\n T = _ * p - A * h,\n z = (c[0] * I + c[1] * M + c[2] * T) * w;\n return z < 0 || k + z > 1 ? null : (f * I + y * M + m * T) * w;\n }\n function Rf(t, e, r) {\n return (t - e) / (r - e);\n }\n function Uf(t, e, r, n, i, s, a, o, l) {\n const u = 1 << r,\n c = s - n,\n h = a - i,\n p = (t + 1) / u * c + n,\n d = (e + 0) / u * h + i,\n f = (e + 1) / u * h + i;\n o[0] = (t + 0) / u * c + n, o[1] = d, l[0] = p, l[1] = f;\n }\n class $f {\n constructor(t) {\n if (this.maximums = [], this.minimums = [], this.leaves = [], this.childOffsets = [], this.nodeCount = 0, this.dem = t, this._siblingOffset = [[0, 0], [1, 0], [0, 1], [1, 1]], !this.dem) return;\n const e = function (t) {\n const e = Math.ceil(Math.log2(t.dim / 8)),\n r = [];\n let n = Math.ceil(Math.pow(2, e));\n const i = 1 / n,\n s = (t, e, r, n, i) => {\n const s = n ? 1 : 0,\n a = (t + 1) * r - s,\n o = e * r,\n l = (e + 1) * r - s;\n i[0] = t * r, i[1] = o, i[2] = a, i[3] = l;\n };\n let a = new Vf(n);\n const o = [];\n for (let e = 0; e < n * n; e++) {\n s(e % n, Math.floor(e / n), i, !1, o);\n const r = Of(o[0], o[1], t),\n l = Of(o[2], o[1], t),\n u = Of(o[2], o[3], t),\n c = Of(o[0], o[3], t);\n a.minimums.push(Math.min(r, l, u, c)), a.maximums.push(Math.max(r, l, u, c)), a.leaves.push(1);\n }\n for (r.push(a), n /= 2; n >= 1; n /= 2) {\n const t = r[r.length - 1];\n a = new Vf(n);\n for (let e = 0; e < n * n; e++) {\n s(e % n, Math.floor(e / n), 2, !0, o);\n const r = t.getElevation(o[0], o[1]),\n i = t.getElevation(o[2], o[1]),\n l = t.getElevation(o[2], o[3]),\n u = t.getElevation(o[0], o[3]),\n c = t.isLeaf(o[0], o[1]),\n h = t.isLeaf(o[2], o[1]),\n p = t.isLeaf(o[2], o[3]),\n d = t.isLeaf(o[0], o[3]),\n f = Math.min(r.min, i.min, l.min, u.min),\n y = Math.max(r.max, i.max, l.max, u.max),\n m = c && h && p && d;\n a.maximums.push(y), a.minimums.push(f), a.leaves.push(y - f <= 5 && m ? 1 : 0);\n }\n r.push(a);\n }\n return r;\n }(this.dem),\n r = e.length - 1,\n n = e[r];\n this._addNode(n.minimums[0], n.maximums[0], n.leaves[0]), this._construct(e, 0, 0, r, 0);\n }\n raycastRoot(t, e, r, n, i, s, a = 1) {\n return Lf([t, e, -100], [r, n, this.maximums[0] * a], i, s);\n }\n raycast(t, e, r, n, i, s, a = 1) {\n if (!this.nodeCount) return null;\n const o = this.raycastRoot(t, e, r, n, i, s, a);\n if (null == o) return null;\n const l = [],\n u = [],\n c = [],\n h = [],\n p = [{\n idx: 0,\n t: o,\n nodex: 0,\n nodey: 0,\n depth: 0\n }];\n for (; p.length > 0;) {\n const {\n idx: o,\n t: d,\n nodex: f,\n nodey: y,\n depth: m\n } = p.pop();\n if (this.leaves[o]) {\n Uf(f, y, m, t, e, r, n, c, h);\n const o = 1 << m,\n l = (f + 0) / o,\n u = (f + 1) / o,\n p = (y + 0) / o,\n g = (y + 1) / o,\n x = Of(l, p, this.dem) * a,\n v = Of(u, p, this.dem) * a,\n b = Of(u, g, this.dem) * a,\n w = Of(l, g, this.dem) * a,\n _ = Ff(c[0], c[1], x, h[0], c[1], v, h[0], h[1], b, i, s),\n A = Ff(h[0], h[1], b, c[0], h[1], w, c[0], c[1], x, i, s),\n S = Math.min(null !== _ ? _ : Number.MAX_VALUE, null !== A ? A : Number.MAX_VALUE);\n if (S !== Number.MAX_VALUE) return S;\n {\n const t = Po([], i, s, d);\n if (jf(x, v, w, b, Rf(t[0], c[0], h[0]), Rf(t[1], c[1], h[1])) >= t[2]) return d;\n }\n continue;\n }\n let g = 0;\n for (let p = 0; p < this._siblingOffset.length; p++) {\n Uf((f << 1) + this._siblingOffset[p][0], (y << 1) + this._siblingOffset[p][1], m + 1, t, e, r, n, c, h), c[2] = -100, h[2] = this.maximums[this.childOffsets[o] + p] * a;\n const d = Lf(c, h, i, s);\n if (null != d) {\n const t = d;\n l[p] = t;\n let e = !1;\n for (let r = 0; r < g && !e; r++) t >= l[u[r]] && (u.splice(r, 0, p), e = !0);\n e || (u[g] = p), g++;\n }\n }\n for (let t = 0; t < g; t++) {\n const e = u[t];\n p.push({\n idx: this.childOffsets[o] + e,\n t: l[e],\n nodex: (f << 1) + this._siblingOffset[e][0],\n nodey: (y << 1) + this._siblingOffset[e][1],\n depth: m + 1\n });\n }\n }\n return null;\n }\n _addNode(t, e, r) {\n return this.minimums.push(t), this.maximums.push(e), this.leaves.push(r), this.childOffsets.push(0), this.nodeCount++;\n }\n _construct(t, e, r, n, i) {\n if (1 === t[n].isLeaf(e, r)) return;\n this.childOffsets[i] || (this.childOffsets[i] = this.nodeCount);\n const s = n - 1,\n a = t[s];\n let o = 0,\n l = 0;\n for (let t = 0; t < this._siblingOffset.length; t++) {\n const n = 2 * e + this._siblingOffset[t][0],\n i = 2 * r + this._siblingOffset[t][1],\n s = a.getElevation(n, i),\n u = a.isLeaf(n, i),\n c = this._addNode(s.min, s.max, u);\n u && (o |= 1 << t), l || (l = c);\n }\n for (let n = 0; n < this._siblingOffset.length; n++) o & 1 << n || this._construct(t, 2 * e + this._siblingOffset[n][0], 2 * r + this._siblingOffset[n][1], s, l + n);\n }\n }\n function jf(t, e, r, n, i, s) {\n return Er(Er(t, r, s), Er(e, n, s), i);\n }\n function Of(t, e, r) {\n const n = r.dim,\n i = M(t * n - .5, 0, n - 1),\n s = M(e * n - .5, 0, n - 1),\n a = Math.floor(i),\n o = Math.floor(s),\n l = Math.min(a + 1, n - 1),\n u = Math.min(o + 1, n - 1);\n return jf(r.get(a, o), r.get(l, o), r.get(a, u), r.get(l, u), i - a, s - o);\n }\n const qf = {\n mapbox: [6553.6, 25.6, .1, 1e4],\n terrarium: [256, 1, 1 / 256, 32768]\n };\n function Nf(t, e, r) {\n return (256 * t * 256 + 256 * e + r) / 10 - 1e4;\n }\n function Gf(t, e, r) {\n return 256 * t + e + r / 256 - 32768;\n }\n class Zf {\n get tree() {\n return this._tree || this._buildQuadTree(), this._tree;\n }\n constructor(t, e, r, n = !1, i = !1) {\n if (this.uid = t, e.height !== e.width) throw new RangeError(\"DEM tiles must be square\");\n if (r && \"mapbox\" !== r && \"terrarium\" !== r) return N(`\"${r}\" is not a valid encoding type. Valid types include \"mapbox\" and \"terrarium\".`);\n this.stride = e.height;\n const s = this.dim = e.height - 2,\n a = new Uint32Array(e.data.buffer);\n if (this.pixels = new Uint8Array(e.data.buffer), this.encoding = r || \"mapbox\", this.borderReady = n, !n) {\n for (let t = 0; t < s; t++) a[this._idx(-1, t)] = a[this._idx(0, t)], a[this._idx(s, t)] = a[this._idx(s - 1, t)], a[this._idx(t, -1)] = a[this._idx(t, 0)], a[this._idx(t, s)] = a[this._idx(t, s - 1)];\n a[this._idx(-1, -1)] = a[this._idx(0, 0)], a[this._idx(s, -1)] = a[this._idx(s - 1, 0)], a[this._idx(-1, s)] = a[this._idx(0, s - 1)], a[this._idx(s, s)] = a[this._idx(s - 1, s - 1)], i && this._buildQuadTree();\n }\n }\n _buildQuadTree() {\n this._tree = new $f(this);\n }\n get(t, e, r = !1) {\n r && (t = M(t, -1, this.dim), e = M(e, -1, this.dim));\n const n = 4 * this._idx(t, e);\n return (\"terrarium\" === this.encoding ? Gf : Nf)(this.pixels[n], this.pixels[n + 1], this.pixels[n + 2]);\n }\n static getUnpackVector(t) {\n return qf[t];\n }\n get unpackVector() {\n return qf[this.encoding];\n }\n _idx(t, e) {\n if (t < -1 || t >= this.dim + 1 || e < -1 || e >= this.dim + 1) throw new RangeError(\"out of range source coordinates for DEM data\");\n return (e + 1) * this.stride + (t + 1);\n }\n static pack(t, e) {\n const r = [0, 0, 0, 0],\n n = Zf.getUnpackVector(e);\n let i = Math.floor((t + n[3]) / n[2]);\n return r[2] = i % 256, i = Math.floor(i / 256), r[1] = i % 256, i = Math.floor(i / 256), r[0] = i, r;\n }\n getPixels() {\n return new Uu({\n width: this.stride,\n height: this.stride\n }, this.pixels);\n }\n backfillBorder(t, e, r) {\n if (this.dim !== t.dim) throw new Error(\"dem dimension mismatch\");\n let n = e * this.dim,\n i = e * this.dim + this.dim,\n s = r * this.dim,\n a = r * this.dim + this.dim;\n switch (e) {\n case -1:\n n = i - 1;\n break;\n case 1:\n i = n + 1;\n }\n switch (r) {\n case -1:\n s = a - 1;\n break;\n case 1:\n a = s + 1;\n }\n const o = -e * this.dim,\n l = -r * this.dim;\n for (let e = s; e < a; e++) for (let r = n; r < i; r++) {\n const n = 4 * this._idx(r, e),\n i = 4 * this._idx(r + o, e + l);\n this.pixels[n + 0] = t.pixels[i + 0], this.pixels[n + 1] = t.pixels[i + 1], this.pixels[n + 2] = t.pixels[i + 2], this.pixels[n + 3] = t.pixels[i + 3];\n }\n }\n onDeserialize() {\n this._tree && (this._tree.dem = this);\n }\n }\n Ji(Zf, \"DEMData\"), Ji($f, \"DemMinMaxQuadTree\", {\n omit: [\"dem\"]\n });\n class Kf {\n constructor(t, e) {\n this.max = t, this.onRemove = e, this.reset();\n }\n reset() {\n for (const t in this.data) for (const e of this.data[t]) e.timeout && clearTimeout(e.timeout), this.onRemove(e.value);\n return this.data = {}, this.order = [], this;\n }\n add(t, e, r) {\n const n = t.wrapped().key;\n void 0 === this.data[n] && (this.data[n] = []);\n const i = {\n value: e,\n timeout: void 0\n };\n if (void 0 !== r && (i.timeout = setTimeout(() => {\n this.remove(t, i);\n }, r)), this.data[n].push(i), this.order.push(n), this.order.length > this.max) {\n const t = this._getAndRemoveByKey(this.order[0]);\n t && this.onRemove(t);\n }\n return this;\n }\n has(t) {\n return t.wrapped().key in this.data;\n }\n getAndRemove(t) {\n return this.has(t) ? this._getAndRemoveByKey(t.wrapped().key) : null;\n }\n _getAndRemoveByKey(t) {\n const e = this.data[t].shift();\n return e.timeout && clearTimeout(e.timeout), 0 === this.data[t].length && delete this.data[t], this.order.splice(this.order.indexOf(t), 1), e.value;\n }\n getByKey(t) {\n const e = this.data[t];\n return e ? e[0].value : null;\n }\n get(t) {\n return this.has(t) ? this.data[t.wrapped().key][0].value : null;\n }\n remove(t, e) {\n if (!this.has(t)) return this;\n const r = t.wrapped().key,\n n = void 0 === e ? 0 : this.data[r].indexOf(e),\n i = this.data[r][n];\n return this.data[r].splice(n, 1), i.timeout && clearTimeout(i.timeout), 0 === this.data[r].length && delete this.data[r], this.onRemove(i.value), this.order.splice(this.order.indexOf(r), 1), this;\n }\n setMaxSize(t) {\n for (this.max = t; this.order.length > this.max;) {\n const t = this._getAndRemoveByKey(this.order[0]);\n t && this.onRemove(t);\n }\n return this;\n }\n filter(t) {\n const e = [];\n for (const r in this.data) for (const n of this.data[r]) t(n.value) || e.push(n);\n for (const t of e) this.remove(t.value.tileID, t);\n }\n }\n class Xf {\n constructor(t, e, r) {\n this.func = t, this.mask = e, this.range = r;\n }\n }\n Xf.ReadOnly = !1, Xf.ReadWrite = !0, Xf.disabled = new Xf(519, Xf.ReadOnly, [0, 1]);\n const Jf = 7680;\n class Hf {\n constructor(t, e, r, n, i, s) {\n this.test = t, this.ref = e, this.mask = r, this.fail = n, this.depthFail = i, this.pass = s;\n }\n }\n Hf.disabled = new Hf({\n func: 519,\n mask: 0\n }, 0, 0, Jf, Jf, Jf);\n class Yf {\n constructor(t, e, r) {\n this.blendFunction = t, this.blendColor = e, this.mask = r;\n }\n }\n Yf.Replace = [1, 0], Yf.disabled = new Yf(Yf.Replace, Ee.transparent, [!1, !1, !1, !1]), Yf.unblended = new Yf(Yf.Replace, Ee.transparent, [!0, !0, !0, !0]), Yf.alphaBlended = new Yf([1, 771], Ee.transparent, [!0, !0, !0, !0]);\n const Wf = 1029,\n Qf = 2305;\n class ty {\n constructor(t, e, r) {\n this.enable = t, this.mode = e, this.frontFace = r;\n }\n }\n ty.disabled = new ty(!1, Wf, Qf), ty.backCCW = new ty(!0, Wf, Qf), ty.backCW = new ty(!0, Wf, 2304), ty.frontCW = new ty(!0, 1028, 2304), ty.frontCCW = new ty(!0, 1028, Qf);\n class ey extends Qt {\n constructor(t, e, r) {\n super(), this.id = t, this._onlySymbols = r, e.on(\"data\", t => {\n \"source\" === t.dataType && \"metadata\" === t.sourceDataType && (this._sourceLoaded = !0), this._sourceLoaded && !this._paused && \"source\" === t.dataType && \"content\" === t.sourceDataType && (this.reload(), this.transform && this.update(this.transform));\n }), e.on(\"error\", () => {\n this._sourceErrored = !0;\n }), this._source = e, this._tiles = {}, this._cache = new Kf(0, this._unloadTile.bind(this)), this._timers = {}, this._cacheTimers = {}, this._minTileCacheSize = e.minTileCacheSize, this._maxTileCacheSize = e.maxTileCacheSize, this._loadedParentTiles = {}, this._coveredTiles = {}, this._state = new Df(), this._isRaster = \"raster\" === this._source.type || \"raster-dem\" === this._source.type || \"custom\" === this._source.type && \"raster\" === this._source._dataType;\n }\n onAdd(t) {\n this.map = t, this._minTileCacheSize = void 0 === this._minTileCacheSize && t ? t._minTileCacheSize : this._minTileCacheSize, this._maxTileCacheSize = void 0 === this._maxTileCacheSize && t ? t._maxTileCacheSize : this._maxTileCacheSize;\n }\n loaded() {\n if (this._sourceErrored) return !0;\n if (!this._sourceLoaded) return !1;\n if (!this._source.loaded()) return !1;\n for (const t in this._tiles) {\n const e = this._tiles[t];\n if (\"loaded\" !== e.state && \"errored\" !== e.state) return !1;\n }\n return !0;\n }\n getSource() {\n return this._source;\n }\n pause() {\n this._paused = !0;\n }\n resume() {\n if (!this._paused) return;\n const t = this._shouldReloadOnResume;\n this._paused = !1, this._shouldReloadOnResume = !1, t && this.reload(), this.transform && this.update(this.transform);\n }\n _loadTile(t, e) {\n return t.isSymbolTile = this._onlySymbols, this._source.loadTile(t, e);\n }\n _unloadTile(t) {\n if (this._source.unloadTile) return this._source.unloadTile(t, () => {});\n }\n _abortTile(t) {\n if (this._source.abortTile) return this._source.abortTile(t, () => {});\n }\n serialize() {\n return this._source.serialize();\n }\n prepare(t) {\n this._source.prepare && this._source.prepare(), this._state.coalesceChanges(this._tiles, this.map ? this.map.painter : null);\n for (const e in this._tiles) {\n const r = this._tiles[e];\n r.upload(t), r.prepare(this.map.style.imageManager);\n }\n }\n getIds() {\n return E(this._tiles).map(t => t.tileID).sort(ry).map(t => t.key);\n }\n getRenderableIds(t) {\n const e = [];\n for (const r in this._tiles) this._isIdRenderable(+r, t) && e.push(this._tiles[r]);\n return t ? e.sort((t, e) => {\n const r = t.tileID,\n n = e.tileID,\n i = new x(r.canonical.x, r.canonical.y)._rotate(this.transform.angle),\n s = new x(n.canonical.x, n.canonical.y)._rotate(this.transform.angle);\n return r.overscaledZ - n.overscaledZ || s.y - i.y || s.x - i.x;\n }).map(t => t.tileID.key) : e.map(t => t.tileID).sort(ry).map(t => t.key);\n }\n hasRenderableParent(t) {\n const e = this.findLoadedParent(t, 0);\n return !!e && this._isIdRenderable(e.tileID.key);\n }\n _isIdRenderable(t, e) {\n return this._tiles[t] && this._tiles[t].hasData() && !this._coveredTiles[t] && (e || !this._tiles[t].holdingForFade());\n }\n reload() {\n if (this._paused) this._shouldReloadOnResume = !0;else {\n this._cache.reset();\n for (const t in this._tiles) \"errored\" !== this._tiles[t].state && this._reloadTile(+t, \"reloading\");\n }\n }\n _reloadTile(t, e) {\n const r = this._tiles[t];\n r && (\"loading\" !== r.state && (r.state = e), this._loadTile(r, this._tileLoaded.bind(this, r, t, e)));\n }\n _tileLoaded(t, e, r, n) {\n if (n) {\n if (t.state = \"errored\", 404 !== n.status) this._source.fire(new Wt(n, {\n tile: t\n }));else if (\"raster-dem\" === this._source.type && this.usedForTerrain && this.map.painter.terrain) {\n const t = this.map.painter.terrain;\n this.update(this.transform, t.getScaledDemTileSize(), !0), t.resetTileLookupCache(this.id);\n } else this.update(this.transform);\n } else t.timeAdded = Xt.now(), \"expired\" === r && (t.refreshedUponExpiration = !0), this._setTileReloadTimer(e, t), \"raster-dem\" === this._source.type && t.dem && this._backfillDEM(t), this._state.initializeTileState(t, this.map ? this.map.painter : null), this._source.fire(new Yt(\"data\", {\n dataType: \"source\",\n tile: t,\n coord: t.tileID,\n sourceCacheId: this.id\n }));\n }\n _backfillDEM(t) {\n const e = this.getRenderableIds();\n for (let n = 0; n < e.length; n++) {\n const i = e[n];\n if (t.neighboringTiles && t.neighboringTiles[i]) {\n const e = this.getTileByID(i);\n r(t, e), r(e, t);\n }\n }\n function r(t, e) {\n if (!t.dem || t.dem.borderReady) return;\n t.needsHillshadePrepare = !0, t.needsDEMTextureUpload = !0;\n let r = e.tileID.canonical.x - t.tileID.canonical.x;\n const n = e.tileID.canonical.y - t.tileID.canonical.y,\n i = Math.pow(2, t.tileID.canonical.z),\n s = e.tileID.key;\n 0 === r && 0 === n || Math.abs(n) > 1 || (Math.abs(r) > 1 && (1 === Math.abs(r + i) ? r += i : 1 === Math.abs(r - i) && (r -= i)), e.dem && t.dem && (t.dem.backfillBorder(e.dem, r, n), t.neighboringTiles && t.neighboringTiles[s] && (t.neighboringTiles[s].backfilled = !0)));\n }\n }\n getTile(t) {\n return this.getTileByID(t.key);\n }\n getTileByID(t) {\n return this._tiles[t];\n }\n _retainLoadedChildren(t, e, r, n) {\n for (const i in this._tiles) {\n let s = this._tiles[i];\n if (n[i] || !s.hasData() || s.tileID.overscaledZ <= e || s.tileID.overscaledZ > r) continue;\n let a = s.tileID;\n for (; s && s.tileID.overscaledZ > e + 1;) {\n const t = s.tileID.scaledTo(s.tileID.overscaledZ - 1);\n s = this._tiles[t.key], s && s.hasData() && (a = t);\n }\n let o = a;\n for (; o.overscaledZ > e;) if (o = o.scaledTo(o.overscaledZ - 1), t[o.key]) {\n n[a.key] = a;\n break;\n }\n }\n }\n findLoadedParent(t, e) {\n if (t.key in this._loadedParentTiles) {\n const r = this._loadedParentTiles[t.key];\n return r && r.tileID.overscaledZ >= e ? r : null;\n }\n for (let r = t.overscaledZ - 1; r >= e; r--) {\n const e = t.scaledTo(r),\n n = this._getLoadedTile(e);\n if (n) return n;\n }\n }\n _getLoadedTile(t) {\n const e = this._tiles[t.key];\n return e && e.hasData() ? e : this._cache.getByKey(this._source.reparseOverscaled ? t.wrapped().key : t.canonical.key);\n }\n updateCacheSize(t, e) {\n e = e || this._source.tileSize;\n const r = Math.ceil(t.width / e) + 1,\n n = Math.ceil(t.height / e) + 1,\n i = Math.floor(r * n * 5),\n s = \"number\" == typeof this._minTileCacheSize ? Math.max(this._minTileCacheSize, i) : i,\n a = \"number\" == typeof this._maxTileCacheSize ? Math.min(this._maxTileCacheSize, s) : s;\n this._cache.setMaxSize(a);\n }\n handleWrapJump(t) {\n const e = Math.round((t - (void 0 === this._prevLng ? t : this._prevLng)) / 360);\n if (this._prevLng = t, e) {\n const t = {};\n for (const r in this._tiles) {\n const n = this._tiles[r];\n n.tileID = n.tileID.unwrapTo(n.tileID.wrap + e), t[n.tileID.key] = n;\n }\n this._tiles = t;\n for (const t in this._timers) clearTimeout(this._timers[t]), delete this._timers[t];\n for (const t in this._tiles) this._setTileReloadTimer(+t, this._tiles[t]);\n }\n }\n update(t, e, r) {\n if (this.transform = t, !this._sourceLoaded || this._paused || this.transform.freezeTileCoverage) return;\n if (this.usedForTerrain && !r) return;\n let n;\n this.updateCacheSize(t, e), \"globe\" !== this.transform.projection.name && this.handleWrapJump(this.transform.center.lng), this._coveredTiles = {}, this.used || this.usedForTerrain ? this._source.tileID ? n = t.getVisibleUnwrappedCoordinates(this._source.tileID).map(t => new fh(t.canonical.z, t.wrap, t.canonical.z, t.canonical.x, t.canonical.y)) : (n = t.coveringTiles({\n tileSize: e || this._source.tileSize,\n minzoom: this._source.minzoom,\n maxzoom: this._source.maxzoom,\n roundZoom: this._source.roundZoom && !r,\n reparseOverscaled: this._source.reparseOverscaled,\n isTerrainDEM: this.usedForTerrain\n }), this._source.hasTile && (n = n.filter(t => this._source.hasTile(t)))) : n = [];\n const i = this._updateRetainedTiles(n);\n if (ny(this._source.type) && 0 !== n.length) {\n const t = {},\n e = {},\n r = Object.keys(i);\n for (const n of r) {\n const r = i[n],\n s = this._tiles[n];\n if (!s || s.fadeEndTime && s.fadeEndTime <= Xt.now()) continue;\n const a = this.findLoadedParent(r, Math.max(r.overscaledZ - ey.maxOverzooming, this._source.minzoom));\n a && (this._addTile(a.tileID), t[a.tileID.key] = a.tileID), e[n] = r;\n }\n const s = n[n.length - 1].overscaledZ;\n for (const t in this._tiles) {\n const r = this._tiles[t];\n if (i[t] || !r.hasData()) continue;\n let n = r.tileID;\n for (; n.overscaledZ > s;) {\n n = n.scaledTo(n.overscaledZ - 1);\n const s = this._tiles[n.key];\n if (s && s.hasData() && e[n.key]) {\n i[t] = r.tileID;\n break;\n }\n }\n }\n for (const e in t) i[e] || (this._coveredTiles[e] = !0, i[e] = t[e]);\n }\n for (const t in i) this._tiles[t].clearFadeHold();\n const s = function (t, e) {\n const r = [];\n for (const n in t) n in e || r.push(n);\n return r;\n }(this._tiles, i);\n for (const t of s) {\n const e = this._tiles[t];\n e.hasSymbolBuckets && !e.holdingForFade() ? e.setHoldDuration(this.map._fadeDuration) : e.hasSymbolBuckets && !e.symbolFadeFinished() || this._removeTile(+t);\n }\n this._updateLoadedParentTileCache(), this._onlySymbols && this._source.afterUpdate && this._source.afterUpdate();\n }\n releaseSymbolFadeTiles() {\n for (const t in this._tiles) this._tiles[t].holdingForFade() && this._removeTile(+t);\n }\n _updateRetainedTiles(t) {\n const e = {};\n if (0 === t.length) return e;\n const r = {},\n n = t.reduce((t, e) => Math.min(t, e.overscaledZ), 1 / 0),\n i = t[0].overscaledZ,\n s = Math.max(i - ey.maxOverzooming, this._source.minzoom),\n a = Math.max(i + ey.maxUnderzooming, this._source.minzoom),\n o = {};\n for (const r of t) {\n const t = this._addTile(r);\n e[r.key] = r, t.hasData() || n < this._source.maxzoom && (o[r.key] = r);\n }\n this._retainLoadedChildren(o, n, a, e);\n for (const n of t) {\n let t = this._tiles[n.key];\n if (t.hasData()) continue;\n if (n.canonical.z >= this._source.maxzoom) {\n const t = n.children(this._source.maxzoom)[0],\n r = this.getTile(t);\n if (r && r.hasData()) {\n e[t.key] = t;\n continue;\n }\n } else {\n const t = n.children(this._source.maxzoom);\n if (e[t[0].key] && e[t[1].key] && e[t[2].key] && e[t[3].key]) continue;\n }\n let i = t.wasRequested();\n for (let a = n.overscaledZ - 1; a >= s; --a) {\n const s = n.scaledTo(a);\n if (r[s.key]) break;\n if (r[s.key] = !0, t = this.getTile(s), !t && i && (t = this._addTile(s)), t && (e[s.key] = s, i = t.wasRequested(), t.hasData())) break;\n }\n }\n return e;\n }\n _updateLoadedParentTileCache() {\n this._loadedParentTiles = {};\n for (const t in this._tiles) {\n const e = [];\n let r,\n n = this._tiles[t].tileID;\n for (; n.overscaledZ > 0;) {\n if (n.key in this._loadedParentTiles) {\n r = this._loadedParentTiles[n.key];\n break;\n }\n e.push(n.key);\n const t = n.scaledTo(n.overscaledZ - 1);\n if (r = this._getLoadedTile(t), r) break;\n n = t;\n }\n for (const t of e) this._loadedParentTiles[t] = r;\n }\n }\n _addTile(t) {\n let e = this._tiles[t.key];\n if (e) return e;\n e = this._cache.getAndRemove(t), e && (this._setTileReloadTimer(t.key, e), e.tileID = t, this._state.initializeTileState(e, this.map ? this.map.painter : null), this._cacheTimers[t.key] && (clearTimeout(this._cacheTimers[t.key]), delete this._cacheTimers[t.key], this._setTileReloadTimer(t.key, e)));\n const r = Boolean(e);\n if (!r) {\n const r = this.map ? this.map.painter : null;\n e = new Pf(t, this._source.tileSize * t.overscaleFactor(), this.transform.tileZoom, r, this._isRaster), this._loadTile(e, this._tileLoaded.bind(this, e, t.key, e.state));\n }\n return e ? (e.uses++, this._tiles[t.key] = e, r || this._source.fire(new Yt(\"dataloading\", {\n tile: e,\n coord: e.tileID,\n dataType: \"source\"\n })), e) : null;\n }\n _setTileReloadTimer(t, e) {\n t in this._timers && (clearTimeout(this._timers[t]), delete this._timers[t]);\n const r = e.getExpiryTimeout();\n r && (this._timers[t] = setTimeout(() => {\n this._reloadTile(t, \"expired\"), delete this._timers[t];\n }, r));\n }\n _removeTile(t) {\n const e = this._tiles[t];\n e && (e.uses--, delete this._tiles[t], this._timers[t] && (clearTimeout(this._timers[t]), delete this._timers[t]), e.uses > 0 || (e.hasData() && \"reloading\" !== e.state ? this._cache.add(e.tileID, e, e.getExpiryTimeout()) : (e.aborted = !0, this._abortTile(e), this._unloadTile(e))));\n }\n clearTiles() {\n this._shouldReloadOnResume = !1, this._paused = !1;\n for (const t in this._tiles) this._removeTile(+t);\n this._source._clear && this._source._clear(), this._cache.reset(), this.map && this.usedForTerrain && this.map.painter.terrain && this.map.painter.terrain.resetTileLookupCache(this.id);\n }\n tilesIn(t, e, r) {\n const n = [],\n i = this.transform;\n if (!i) return n;\n const s = \"globe\" === i.projection.name,\n a = Nl(i.center.lng);\n for (const o in this._tiles) {\n const l = this._tiles[o];\n if (r && l.clearQueryDebugViz(), l.holdingForFade()) continue;\n let u;\n if (s) {\n const t = l.tileID.canonical;\n if (0 === t.z) {\n const e = [Math.abs(M(a, ...iy(t, -1)) - a), Math.abs(M(a, ...iy(t, 1)) - a)];\n u = [0, 2 * e.indexOf(Math.min(...e)) - 1];\n } else {\n const e = [Math.abs(M(a, ...iy(t, -1)) - a), Math.abs(M(a, ...iy(t, 0)) - a), Math.abs(M(a, ...iy(t, 1)) - a)];\n u = [e.indexOf(Math.min(...e)) - 1];\n }\n } else u = [0];\n for (const r of u) {\n const s = t.containsTile(l, i, e, r);\n s && n.push(s);\n }\n }\n return n;\n }\n getVisibleCoordinates(t) {\n const e = this.getRenderableIds(t).map(t => this._tiles[t].tileID);\n for (const t of e) t.projMatrix = this.transform.calculateProjMatrix(t.toUnwrapped());\n return e;\n }\n hasTransition() {\n if (this._source.hasTransition()) return !0;\n if (ny(this._source.type)) for (const t in this._tiles) {\n const e = this._tiles[t];\n if (void 0 !== e.fadeEndTime && e.fadeEndTime >= Xt.now()) return !0;\n }\n return !1;\n }\n setFeatureState(t, e, r) {\n this._state.updateState(t = t || \"_geojsonTileLayer\", e, r);\n }\n removeFeatureState(t, e, r) {\n this._state.removeFeatureState(t = t || \"_geojsonTileLayer\", e, r);\n }\n getFeatureState(t, e) {\n return this._state.getState(t = t || \"_geojsonTileLayer\", e);\n }\n setDependencies(t, e, r) {\n const n = this._tiles[t];\n n && n.setDependencies(e, r);\n }\n reloadTilesForDependencies(t, e) {\n for (const r in this._tiles) this._tiles[r].hasDependency(t, e) && this._reloadTile(+r, \"reloading\");\n this._cache.filter(r => !r.hasDependency(t, e));\n }\n _preloadTiles(t, e) {\n if (!this._sourceLoaded) {\n const r = () => {\n this._sourceLoaded && (this._source.off(\"data\", r), this._preloadTiles(t, e));\n };\n return void this._source.on(\"data\", r);\n }\n const r = new Map(),\n n = Array.isArray(t) ? t : [t],\n i = this.map.painter.terrain,\n s = this.usedForTerrain && i ? i.getScaledDemTileSize() : this._source.tileSize;\n for (const t of n) {\n const e = t.coveringTiles({\n tileSize: s,\n minzoom: this._source.minzoom,\n maxzoom: this._source.maxzoom,\n roundZoom: this._source.roundZoom && !this.usedForTerrain,\n reparseOverscaled: this._source.reparseOverscaled,\n isTerrainDEM: this.usedForTerrain\n });\n for (const t of e) r.set(t.key, t);\n this.usedForTerrain && t.updateElevation(!1);\n }\n B(Array.from(r.values()), (t, e) => {\n const r = new Pf(t, this._source.tileSize * t.overscaleFactor(), this.transform.tileZoom, this.map.painter, this._isRaster);\n this._loadTile(r, t => {\n \"raster-dem\" === this._source.type && r.dem && this._backfillDEM(r), e(t, r);\n });\n }, e);\n }\n }\n function ry(t, e) {\n const r = Math.abs(2 * t.wrap) - +(t.wrap < 0),\n n = Math.abs(2 * e.wrap) - +(e.wrap < 0);\n return t.overscaledZ - e.overscaledZ || n - r || e.canonical.y - t.canonical.y || e.canonical.x - t.canonical.x;\n }\n function ny(t) {\n return \"raster\" === t || \"image\" === t || \"video\" === t || \"custom\" === t;\n }\n function iy(t, e) {\n const r = 1 << t.z;\n return [t.x / r + e, (t.x + 1) / r + e];\n }\n ey.maxOverzooming = 10, ey.maxUnderzooming = 3;\n class sy {\n constructor(t, e, r) {\n this._demTile = t, this._dem = this._demTile.dem, this._scale = e, this._offset = r;\n }\n static create(t, e, r) {\n const n = r || t.findDEMTileFor(e);\n if (!n || !n.dem) return;\n const i = n.dem,\n s = n.tileID,\n a = 1 << e.canonical.z - s.canonical.z;\n return new sy(n, n.tileSize / ao / a, [(e.canonical.x / a - s.canonical.x) * i.dim, (e.canonical.y / a - s.canonical.y) * i.dim]);\n }\n tileCoordToPixel(t, e) {\n const r = e * this._scale + this._offset[1],\n n = Math.floor(t * this._scale + this._offset[0]),\n i = Math.floor(r);\n return new x(n, i);\n }\n getElevationAt(t, e, r, n) {\n const i = t * this._scale + this._offset[0],\n s = e * this._scale + this._offset[1],\n a = Math.floor(i),\n o = Math.floor(s),\n l = this._dem;\n return n = !!n, r ? Er(Er(l.get(a, o, n), l.get(a, o + 1, n), s - o), Er(l.get(a + 1, o, n), l.get(a + 1, o + 1, n), s - o), i - a) : l.get(a, o, n);\n }\n getElevationAtPixel(t, e, r) {\n return this._dem.get(t, e, !!r);\n }\n getMeterToDEM(t) {\n return (1 << this._demTile.tileID.canonical.z) * Zl(1, t) * this._dem.stride;\n }\n }\n class ay {\n constructor(t, e) {\n this.tileID = t, this.x = t.canonical.x, this.y = t.canonical.y, this.z = t.canonical.z, this.grid = new Ki(ao, 16, 0), this.featureIndexArray = new ba(), this.promoteId = e;\n }\n insert(t, e, r, n, i, s = 0) {\n const a = this.featureIndexArray.length;\n this.featureIndexArray.emplaceBack(r, n, i, s);\n const o = this.grid;\n for (let t = 0; t < e.length; t++) {\n const r = e[t],\n n = [1 / 0, 1 / 0, -1 / 0, -1 / 0];\n for (let t = 0; t < r.length; t++) {\n const e = r[t];\n n[0] = Math.min(n[0], e.x), n[1] = Math.min(n[1], e.y), n[2] = Math.max(n[2], e.x), n[3] = Math.max(n[3], e.y);\n }\n n[0] < ao && n[1] < ao && n[2] >= 0 && n[3] >= 0 && o.insert(a, n[0], n[1], n[2], n[3]);\n }\n }\n loadVTLayers() {\n if (!this.vtLayers) {\n this.vtLayers = new Zc(new mp(this.rawTileData)).layers, this.sourceLayerCoder = new wf(this.vtLayers ? Object.keys(this.vtLayers).sort() : [\"_geojsonTileLayer\"]), this.vtFeatures = {};\n for (const t in this.vtLayers) this.vtFeatures[t] = [];\n }\n return this.vtLayers;\n }\n query(t, e, r, n) {\n this.loadVTLayers();\n const i = t.params || {},\n s = hi(i.filter),\n a = t.tileResult,\n o = t.transform,\n l = a.bufferedTilespaceBounds,\n u = this.grid.query(l.min.x, l.min.y, l.max.x, l.max.y, (t, e, r, n) => wu(a.bufferedTilespaceGeometry, t, e, r, n));\n u.sort(ly);\n let c = null;\n o.elevation && u.length > 0 && (c = sy.create(o.elevation, this.tileID));\n const h = {};\n let p;\n for (let o = 0; o < u.length; o++) {\n const l = u[o];\n if (l === p) continue;\n p = l;\n const d = this.featureIndexArray.get(l);\n let f = null;\n this.loadMatchingFeature(h, d, s, i.layers, i.availableImages, e, r, n, (e, r, n, i = 0) => (f || (f = au(e, this.tileID.canonical, t.tileTransform)), r.queryIntersectsFeature(a, e, n, f, this.z, t.transform, t.pixelPosMatrix, c, i)));\n }\n return h;\n }\n loadMatchingFeature(t, e, r, n, i, s, a, o, l) {\n const {\n featureIndex: u,\n bucketIndex: c,\n sourceLayerIndex: h,\n layoutVertexArrayOffset: p\n } = e,\n d = this.bucketLayerIDs[c];\n if (n && !function (t, e) {\n for (let r = 0; r < t.length; r++) if (e.indexOf(t[r]) >= 0) return !0;\n return !1;\n }(n, d)) return;\n const f = this.sourceLayerCoder.decode(h),\n y = this.vtLayers[f].feature(u);\n if (r.needGeometry) {\n const t = ou(y, !0);\n if (!r.filter(new ws(this.tileID.overscaledZ), t, this.tileID.canonical)) return;\n } else if (!r.filter(new ws(this.tileID.overscaledZ), y)) return;\n const m = this.getId(y, f);\n for (let e = 0; e < d.length; e++) {\n const r = d[e];\n if (n && n.indexOf(r) < 0) continue;\n const c = s[r];\n if (!c) continue;\n let h = {};\n void 0 !== m && o && (h = o.getState(c.sourceLayer || \"_geojsonTileLayer\", m));\n const f = C({}, a[r]);\n f.paint = oy(f.paint, c.paint, y, h, i), f.layout = oy(f.layout, c.layout, y, h, i);\n const g = !l || l(y, c, h, p);\n if (!g) continue;\n const x = new Af(y, this.z, this.x, this.y, m);\n x.layer = f;\n let v = t[r];\n void 0 === v && (v = t[r] = []), v.push({\n featureIndex: u,\n feature: x,\n intersectionZ: g\n });\n }\n }\n lookupSymbolFeatures(t, e, r, n, i, s, a, o) {\n const l = {};\n this.loadVTLayers();\n const u = hi(i);\n for (const i of t) this.loadMatchingFeature(l, {\n bucketIndex: r,\n sourceLayerIndex: n,\n featureIndex: i,\n layoutVertexArrayOffset: 0\n }, u, s, a, o, e);\n return l;\n }\n loadFeature(t) {\n const {\n featureIndex: e,\n sourceLayerIndex: r\n } = t;\n this.loadVTLayers();\n const n = this.sourceLayerCoder.decode(r),\n i = this.vtFeatures[n];\n if (i[e]) return i[e];\n const s = this.vtLayers[n].feature(e);\n return i[e] = s, s;\n }\n hasLayer(t) {\n for (const e of this.bucketLayerIDs) for (const r of e) if (t === r) return !0;\n return !1;\n }\n getId(t, e) {\n let r = t.id;\n if (this.promoteId) {\n const n = \"string\" == typeof this.promoteId ? this.promoteId : this.promoteId[e];\n null != n && (r = t.properties[n]), \"boolean\" == typeof r && (r = Number(r));\n }\n return r;\n }\n }\n function oy(t, e, r, n, i) {\n return $(t, (t, s) => {\n const a = e instanceof zs ? e.get(s) : null;\n return a && a.evaluate ? a.evaluate(r, n, i) : a;\n });\n }\n function ly(t, e) {\n return e - t;\n }\n Ji(ay, \"FeatureIndex\", {\n omit: [\"rawTileData\", \"sourceLayerCoder\"]\n });\n class uy {\n constructor(t, e) {\n this.width = t, this.height = e, this.nextRow = 0, this.image = new Ru({\n width: t,\n height: e\n }), this.positions = {}, this.uploaded = !1;\n }\n getDash(t, e) {\n const r = this.getKey(t, e);\n return this.positions[r];\n }\n trim() {\n const t = this.width,\n e = this.height = L(this.nextRow);\n this.image.resize({\n width: t,\n height: e\n });\n }\n getKey(t, e) {\n return t.join(\",\") + e;\n }\n getDashRanges(t, e, r) {\n const n = [];\n let i = t.length % 2 == 1 ? -t[t.length - 1] * r : 0,\n s = t[0] * r,\n a = !0;\n n.push({\n left: i,\n right: s,\n isDash: a,\n zeroLength: 0 === t[0]\n });\n let o = t[0];\n for (let e = 1; e < t.length; e++) {\n a = !a;\n const l = t[e];\n i = o * r, o += l, s = o * r, n.push({\n left: i,\n right: s,\n isDash: a,\n zeroLength: 0 === l\n });\n }\n return n;\n }\n addRoundDash(t, e, r) {\n const n = e / 2;\n for (let e = -r; e <= r; e++) {\n const i = this.width * (this.nextRow + r + e);\n let s = 0,\n a = t[s];\n for (let o = 0; o < this.width; o++) {\n o / a.right > 1 && (a = t[++s]);\n const l = Math.abs(o - a.left),\n u = Math.abs(o - a.right),\n c = Math.min(l, u);\n let h;\n const p = e / r * (n + 1);\n if (a.isDash) {\n const t = n - Math.abs(p);\n h = Math.sqrt(c * c + t * t);\n } else h = n - Math.sqrt(c * c + p * p);\n this.image.data[i + o] = Math.max(0, Math.min(255, h + 128));\n }\n }\n }\n addRegularDash(t, e) {\n for (let e = t.length - 1; e >= 0; --e) {\n const r = t[e],\n n = t[e + 1];\n r.zeroLength ? t.splice(e, 1) : n && n.isDash === r.isDash && (n.left = r.left, t.splice(e, 1));\n }\n const r = t[0],\n n = t[t.length - 1];\n r.isDash === n.isDash && (r.left = n.left - this.width, n.right = r.right + this.width);\n const i = this.width * this.nextRow;\n let s = 0,\n a = t[s];\n for (let r = 0; r < this.width; r++) {\n r / a.right > 1 && (a = t[++s]);\n const n = Math.abs(r - a.left),\n o = Math.abs(r - a.right),\n l = Math.min(n, o);\n this.image.data[i + r] = Math.max(0, Math.min(255, (a.isDash ? l : -l) + e + 128));\n }\n }\n addDash(t, e) {\n const r = this.getKey(t, e);\n if (this.positions[r]) return this.positions[r];\n const n = \"round\" === e,\n i = n ? 7 : 0,\n s = 2 * i + 1;\n if (this.nextRow + s > this.height) return N(\"LineAtlas out of space\"), null;\n 0 === t.length && t.push(1);\n let a = 0;\n for (let e = 0; e < t.length; e++) t[e] < 0 && (N(\"Negative value is found in line dasharray, replacing values with 0\"), t[e] = 0), a += t[e];\n if (0 !== a) {\n const r = this.width / a,\n s = this.getDashRanges(t, this.width, r);\n n ? this.addRoundDash(s, r, i) : this.addRegularDash(s, \"square\" === e ? .5 * r : 0);\n }\n const o = this.nextRow + i;\n this.nextRow += s;\n const l = {\n tl: [o, i],\n br: [a, 0]\n };\n return this.positions[r] = l, l;\n }\n }\n Ji(uy, \"LineAtlas\");\n const cy = 1 * td;\n class hy {\n constructor(t) {\n const e = {},\n r = [];\n for (const n in t) {\n const i = t[n],\n s = e[n] = {};\n for (const t in i.glyphs) {\n const e = i.glyphs[+t];\n if (!e || 0 === e.bitmap.width || 0 === e.bitmap.height) continue;\n const n = e.metrics.localGlyph ? cy : 1,\n a = {\n x: 0,\n y: 0,\n w: e.bitmap.width + 2 * n,\n h: e.bitmap.height + 2 * n\n };\n r.push(a), s[t] = a;\n }\n }\n const {\n w: n,\n h: i\n } = _p(r),\n s = new Ru({\n width: n || 1,\n height: i || 1\n });\n for (const r in t) {\n const n = t[r];\n for (const t in n.glyphs) {\n const i = n.glyphs[+t];\n if (!i || 0 === i.bitmap.width || 0 === i.bitmap.height) continue;\n const a = e[r][t],\n o = i.metrics.localGlyph ? cy : 1;\n Ru.copy(i.bitmap, s, {\n x: 0,\n y: 0\n }, {\n x: a.x + o,\n y: a.y + o\n }, i.bitmap);\n }\n }\n this.image = s, this.positions = e;\n }\n }\n Ji(hy, \"GlyphAtlas\");\n class py {\n constructor(t) {\n this.tileID = new fh(t.tileID.overscaledZ, t.tileID.wrap, t.tileID.canonical.z, t.tileID.canonical.x, t.tileID.canonical.y), this.tileZoom = t.tileZoom, this.uid = t.uid, this.zoom = t.zoom, this.canonical = t.tileID.canonical, this.pixelRatio = t.pixelRatio, this.tileSize = t.tileSize, this.source = t.source, this.overscaling = this.tileID.overscaleFactor(), this.showCollisionBoxes = t.showCollisionBoxes, this.collectResourceTiming = !!t.collectResourceTiming, this.returnDependencies = !!t.returnDependencies, this.promoteId = t.promoteId, this.enableTerrain = !!t.enableTerrain, this.isSymbolTile = t.isSymbolTile, this.tileTransform = Bd(t.tileID.canonical, t.projection), this.projection = t.projection;\n }\n parse(t, e, r, n, i) {\n this.status = \"parsing\", this.data = t, this.collisionBoxArray = new pa();\n const s = new wf(Object.keys(t.layers).sort()),\n a = new ay(this.tileID, this.promoteId);\n a.bucketLayerIDs = [];\n const o = {},\n l = new uy(256, 256),\n u = {\n featureIndex: a,\n iconDependencies: {},\n patternDependencies: {},\n glyphDependencies: {},\n lineAtlas: l,\n availableImages: r\n },\n c = e.familiesBySource[this.source];\n for (const e in c) {\n const n = t.layers[e];\n if (!n) continue;\n let i = !1,\n l = !1;\n for (const t of c[e]) \"symbol\" === t[0].type ? i = !0 : l = !0;\n if (!0 === this.isSymbolTile && !i) continue;\n if (!1 === this.isSymbolTile && !l) continue;\n 1 === n.version && N(`Vector tile source \"${this.source}\" layer \"${e}\" does not use vector tile spec v2 and therefore may have some rendering errors.`);\n const h = s.encode(e),\n p = [];\n for (let t = 0; t < n.length; t++) {\n const r = n.feature(t),\n i = a.getId(r, e);\n p.push({\n feature: r,\n id: i,\n index: t,\n sourceLayerIndex: h\n });\n }\n for (const t of c[e]) {\n const e = t[0];\n void 0 !== this.isSymbolTile && \"symbol\" === e.type !== this.isSymbolTile || e.minzoom && this.zoom < Math.floor(e.minzoom) || e.maxzoom && this.zoom >= e.maxzoom || \"none\" !== e.visibility && (dy(t, this.zoom, r), (o[e.id] = e.createBucket({\n index: a.bucketLayerIDs.length,\n layers: t,\n zoom: this.zoom,\n canonical: this.canonical,\n pixelRatio: this.pixelRatio,\n overscaling: this.overscaling,\n collisionBoxArray: this.collisionBoxArray,\n sourceLayerIndex: h,\n sourceID: this.source,\n enableTerrain: this.enableTerrain,\n projection: this.projection.spec,\n availableImages: r\n })).populate(p, u, this.tileID.canonical, this.tileTransform), a.bucketLayerIDs.push(t.map(t => t.id)));\n }\n }\n let h, p, d, f;\n l.trim();\n const y = {\n type: \"maybePrepare\",\n isSymbolTile: this.isSymbolTile,\n zoom: this.zoom\n },\n m = () => {\n if (h) return i(h);\n if (p && d && f) {\n const t = new hy(p),\n e = new kp(d, f);\n for (const n in o) {\n const i = o[n];\n i instanceof of ? (dy(i.layers, this.zoom, r), vd(i, p, t.positions, d, e.iconPositions, this.showCollisionBoxes, r, this.tileID.canonical, this.tileZoom, this.projection)) : i.hasPattern && (i instanceof Ih || i instanceof Mc || i instanceof th) && (dy(i.layers, this.zoom, r), i.addFeatures(u, this.tileID.canonical, e.patternPositions, r, this.tileTransform));\n }\n this.status = \"done\", i(null, {\n buckets: E(o).filter(t => !t.isEmpty()),\n featureIndex: a,\n collisionBoxArray: this.collisionBoxArray,\n glyphAtlasImage: t.image,\n lineAtlas: l,\n imageAtlas: e,\n glyphMap: this.returnDependencies ? p : null,\n iconMap: this.returnDependencies ? d : null,\n glyphPositions: this.returnDependencies ? t.positions : null\n });\n }\n },\n g = $(u.glyphDependencies, t => Object.keys(t).map(Number));\n Object.keys(g).length ? n.send(\"getGlyphs\", {\n uid: this.uid,\n stacks: g\n }, (t, e) => {\n h || (h = t, p = e, m());\n }, void 0, !1, y) : p = {};\n const x = Object.keys(u.iconDependencies);\n x.length ? n.send(\"getImages\", {\n icons: x,\n source: this.source,\n tileID: this.tileID,\n type: \"icons\"\n }, (t, e) => {\n h || (h = t, d = e, m());\n }, void 0, !1, y) : d = {};\n const v = Object.keys(u.patternDependencies);\n v.length ? n.send(\"getImages\", {\n icons: v,\n source: this.source,\n tileID: this.tileID,\n type: \"patterns\"\n }, (t, e) => {\n h || (h = t, f = e, m());\n }, void 0, !1, y) : f = {}, m();\n }\n }\n function dy(t, e, r) {\n const n = new ws(e);\n for (const e of t) e.recalculate(n, r);\n }\n class fy {\n constructor(t) {\n this.entries = {}, this.scheduler = t;\n }\n request(t, e, r, n) {\n const i = this.entries[t] = this.entries[t] || {\n callbacks: []\n };\n if (i.result) {\n const [t, r] = i.result;\n return this.scheduler ? this.scheduler.add(() => {\n n(t, r);\n }, e) : n(t, r), () => {};\n }\n return i.callbacks.push(n), i.cancel || (i.cancel = r((r, n) => {\n i.result = [r, n];\n for (const t of i.callbacks) this.scheduler ? this.scheduler.add(() => {\n t(r, n);\n }, e) : t(r, n);\n setTimeout(() => delete this.entries[t], 3e3);\n })), () => {\n i.result || (i.callbacks = i.callbacks.filter(t => t !== n), i.callbacks.length || (i.cancel(), delete this.entries[t]));\n };\n }\n }\n function yy(t, e, r) {\n const n = JSON.stringify(t.request);\n return t.data && (this.deduped.entries[n] = {\n result: [null, t.data]\n }), this.deduped.request(n, {\n type: \"parseTile\",\n isSymbolTile: t.isSymbolTile,\n zoom: t.tileZoom\n }, e => {\n const n = pt(t.request, (t, n, i, s) => {\n t ? e(t) : n && e(null, {\n vectorTile: r ? void 0 : new Zc(new mp(n)),\n rawData: n,\n cacheControl: i,\n expires: s\n });\n });\n return () => {\n n.cancel(), e();\n };\n }, e);\n }\n const my = [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array];\n class gy {\n static from(t) {\n if (!(t instanceof ArrayBuffer)) throw new Error(\"Data must be an instance of ArrayBuffer.\");\n const [e, r] = new Uint8Array(t, 0, 2);\n if (219 !== e) throw new Error(\"Data does not appear to be in a KDBush format.\");\n const n = r >> 4;\n if (1 !== n) throw new Error(`Got v${n} data when expected v1.`);\n const i = my[15 & r];\n if (!i) throw new Error(\"Unrecognized array type.\");\n const [s] = new Uint16Array(t, 2, 1),\n [a] = new Uint32Array(t, 4, 1);\n return new gy(a, s, i, t);\n }\n constructor(t, e = 64, r = Float64Array, n) {\n if (isNaN(t) || t < 0) throw new Error(`Unpexpected numItems value: ${t}.`);\n this.numItems = +t, this.nodeSize = Math.min(Math.max(+e, 2), 65535), this.ArrayType = r, this.IndexArrayType = t < 65536 ? Uint16Array : Uint32Array;\n const i = my.indexOf(this.ArrayType),\n s = 2 * t * this.ArrayType.BYTES_PER_ELEMENT,\n a = t * this.IndexArrayType.BYTES_PER_ELEMENT,\n o = (8 - a % 8) % 8;\n if (i < 0) throw new Error(`Unexpected typed array class: ${r}.`);\n n && n instanceof ArrayBuffer ? (this.data = n, this.ids = new this.IndexArrayType(this.data, 8, t), this.coords = new this.ArrayType(this.data, 8 + a + o, 2 * t), this._pos = 2 * t, this._finished = !0) : (this.data = new ArrayBuffer(8 + s + a + o), this.ids = new this.IndexArrayType(this.data, 8, t), this.coords = new this.ArrayType(this.data, 8 + a + o, 2 * t), this._pos = 0, this._finished = !1, new Uint8Array(this.data, 0, 2).set([219, 16 + i]), new Uint16Array(this.data, 2, 1)[0] = e, new Uint32Array(this.data, 4, 1)[0] = t);\n }\n add(t, e) {\n const r = this._pos >> 1;\n return this.ids[r] = r, this.coords[this._pos++] = t, this.coords[this._pos++] = e, r;\n }\n finish() {\n const t = this._pos >> 1;\n if (t !== this.numItems) throw new Error(`Added ${t} items when expected ${this.numItems}.`);\n return xy(this.ids, this.coords, this.nodeSize, 0, this.numItems - 1, 0), this._finished = !0, this;\n }\n range(t, e, r, n) {\n if (!this._finished) throw new Error(\"Data not yet indexed - call index.finish().\");\n const {\n ids: i,\n coords: s,\n nodeSize: a\n } = this,\n o = [0, i.length - 1, 0],\n l = [];\n for (; o.length;) {\n const u = o.pop() || 0,\n c = o.pop() || 0,\n h = o.pop() || 0;\n if (c - h <= a) {\n for (let a = h; a <= c; a++) {\n const o = s[2 * a],\n u = s[2 * a + 1];\n o >= t && o <= r && u >= e && u <= n && l.push(i[a]);\n }\n continue;\n }\n const p = h + c >> 1,\n d = s[2 * p],\n f = s[2 * p + 1];\n d >= t && d <= r && f >= e && f <= n && l.push(i[p]), (0 === u ? t <= d : e <= f) && (o.push(h), o.push(p - 1), o.push(1 - u)), (0 === u ? r >= d : n >= f) && (o.push(p + 1), o.push(c), o.push(1 - u));\n }\n return l;\n }\n within(t, e, r) {\n if (!this._finished) throw new Error(\"Data not yet indexed - call index.finish().\");\n const {\n ids: n,\n coords: i,\n nodeSize: s\n } = this,\n a = [0, n.length - 1, 0],\n o = [],\n l = r * r;\n for (; a.length;) {\n const u = a.pop() || 0,\n c = a.pop() || 0,\n h = a.pop() || 0;\n if (c - h <= s) {\n for (let r = h; r <= c; r++) _y(i[2 * r], i[2 * r + 1], t, e) <= l && o.push(n[r]);\n continue;\n }\n const p = h + c >> 1,\n d = i[2 * p],\n f = i[2 * p + 1];\n _y(d, f, t, e) <= l && o.push(n[p]), (0 === u ? t - r <= d : e - r <= f) && (a.push(h), a.push(p - 1), a.push(1 - u)), (0 === u ? t + r >= d : e + r >= f) && (a.push(p + 1), a.push(c), a.push(1 - u));\n }\n return o;\n }\n }\n function xy(t, e, r, n, i, s) {\n if (i - n <= r) return;\n const a = n + i >> 1;\n vy(t, e, a, n, i, s), xy(t, e, r, n, a - 1, 1 - s), xy(t, e, r, a + 1, i, 1 - s);\n }\n function vy(t, e, r, n, i, s) {\n for (; i > n;) {\n if (i - n > 600) {\n const a = i - n + 1,\n o = r - n + 1,\n l = Math.log(a),\n u = .5 * Math.exp(2 * l / 3),\n c = .5 * Math.sqrt(l * u * (a - u) / a) * (o - a / 2 < 0 ? -1 : 1);\n vy(t, e, r, Math.max(n, Math.floor(r - o * u / a + c)), Math.min(i, Math.floor(r + (a - o) * u / a + c)), s);\n }\n const a = e[2 * r + s];\n let o = n,\n l = i;\n for (by(t, e, n, r), e[2 * i + s] > a && by(t, e, n, i); o < l;) {\n for (by(t, e, o, l), o++, l--; e[2 * o + s] < a;) o++;\n for (; e[2 * l + s] > a;) l--;\n }\n e[2 * n + s] === a ? by(t, e, n, l) : (l++, by(t, e, l, i)), l <= r && (n = l + 1), r <= l && (i = l - 1);\n }\n }\n function by(t, e, r, n) {\n wy(t, r, n), wy(e, 2 * r, 2 * n), wy(e, 2 * r + 1, 2 * n + 1);\n }\n function wy(t, e, r) {\n const n = t[e];\n t[e] = t[r], t[r] = n;\n }\n function _y(t, e, r, n) {\n const i = t - r,\n s = e - n;\n return i * i + s * s;\n }\n t.ARRAY_TYPE = uo, t.AUTH_ERR_MSG = xt, t.Aabb = il, t.Actor = class {\n constructor(t, r, n) {\n this.target = t, this.parent = r, this.mapId = n, this.callbacks = {}, this.cancelCallbacks = {}, R([\"receive\"], this), this.target.addEventListener(\"message\", this.receive, !1), this.globalScope = K() ? t : e, this.scheduler = new bf();\n }\n send(t, e, r, n, i = !1, s) {\n const a = Math.round(1e18 * Math.random()).toString(36).substring(0, 10);\n r && (r.metadata = s, this.callbacks[a] = r);\n const o = H(this.globalScope) ? void 0 : [];\n return this.target.postMessage({\n id: a,\n type: t,\n hasCallback: !!r,\n targetMapId: n,\n mustQueue: i,\n sourceMapId: this.mapId,\n data: Wi(e, o)\n }, o), {\n cancel: () => {\n r && delete this.callbacks[a], this.target.postMessage({\n id: a,\n type: \"\",\n targetMapId: n,\n sourceMapId: this.mapId\n });\n }\n };\n }\n receive(t) {\n const e = t.data,\n r = e.id;\n if (r && (!e.targetMapId || this.mapId === e.targetMapId)) if (\"\" === e.type) {\n const t = this.cancelCallbacks[r];\n delete this.cancelCallbacks[r], t && t.cancel();\n } else if (e.mustQueue || K()) {\n const t = this.callbacks[r];\n this.cancelCallbacks[r] = this.scheduler.add(() => this.processTask(r, e), t && t.metadata || {\n type: \"message\"\n });\n } else this.processTask(r, e);\n }\n processTask(t, e) {\n if (\"\" === e.type) {\n const r = this.callbacks[t];\n delete this.callbacks[t], r && (e.error ? r(Qi(e.error)) : r(null, Qi(e.data)));\n } else {\n const r = H(this.globalScope) ? void 0 : [],\n n = e.hasCallback ? (e, n) => {\n delete this.cancelCallbacks[t], this.target.postMessage({\n id: t,\n type: \"\",\n sourceMapId: this.mapId,\n error: e ? Wi(e) : null,\n data: Wi(n, r)\n }, r);\n } : t => {},\n i = Qi(e.data);\n if (this.parent[e.type]) this.parent[e.type](e.sourceMapId, i, n);else if (this.parent.getWorkerSource) {\n const t = e.type.split(\".\");\n this.parent.getWorkerSource(e.sourceMapId, t[0], i.source)[t[1]](i, n);\n } else n(new Error(`Could not find function ${e.type}`));\n }\n }\n remove() {\n this.scheduler.remove(), this.target.removeEventListener(\"message\", this.receive, !1);\n }\n }, t.CanonicalTileID = ph, t.Color = Ee, t.ColorMode = Yf, t.CullFaceMode = ty, t.DEMData = Zf, t.DataConstantProperty = Bs, t.DedupedRequest = fy, t.DepthMode = Xf, t.EXTENT = ao, t.Elevation = class {\n isDataAvailableAtPoint(t) {\n const e = this._source();\n if (this.isUsingMockSource() || !e || t.y < 0 || t.y > 1) return !1;\n const r = e.getSource().maxzoom,\n n = 1 << r,\n i = Math.floor(t.x),\n s = Math.floor((t.x - i) * n),\n a = Math.floor(t.y * n),\n o = this.findDEMTileFor(new fh(r, i, r, s, a));\n return !(!o || !o.dem);\n }\n getAtPointOrZero(t, e = 0) {\n return this.getAtPoint(t, e) || 0;\n }\n getAtPoint(t, e, r = !0) {\n if (this.isUsingMockSource()) return null;\n null == e && (e = null);\n const n = this._source();\n if (!n) return e;\n if (t.y < 0 || t.y > 1) return e;\n const i = n.getSource().maxzoom,\n s = 1 << i,\n a = Math.floor(t.x),\n o = t.x - a,\n l = new fh(i, a, i, Math.floor(o * s), Math.floor(t.y * s)),\n u = this.findDEMTileFor(l);\n if (!u || !u.dem) return e;\n const c = u.dem,\n h = 1 << u.tileID.canonical.z,\n p = (o * h - u.tileID.canonical.x) * c.dim,\n d = (t.y * h - u.tileID.canonical.y) * c.dim,\n f = Math.floor(p),\n y = Math.floor(d);\n return (r ? this.exaggeration() : 1) * Er(Er(c.get(f, y), c.get(f, y + 1), d - y), Er(c.get(f + 1, y), c.get(f + 1, y + 1), d - y), p - f);\n }\n getAtTileOffset(t, e, r) {\n const n = 1 << t.canonical.z;\n return this.getAtPointOrZero(new Wl(t.wrap + (t.canonical.x + e / ao) / n, (t.canonical.y + r / ao) / n));\n }\n getAtTileOffsetFunc(t, e, r, n) {\n return i => {\n const s = this.getAtTileOffset(t, i.x, i.y),\n a = n.upVector(t.canonical, i.x, i.y);\n return Co(a, a, s * n.upVectorScale(t.canonical, e, r).metersToTile), a;\n };\n }\n getForTilePoints(t, e, r, n) {\n if (this.isUsingMockSource()) return !1;\n const i = sy.create(this, t, n);\n return !!i && (e.forEach(t => {\n t[2] = this.exaggeration() * i.getElevationAt(t[0], t[1], r);\n }), !0);\n }\n getMinMaxForTile(t) {\n if (this.isUsingMockSource()) return null;\n const e = this.findDEMTileFor(t);\n if (!e || !e.dem) return null;\n const r = e.dem.tree,\n n = e.tileID,\n i = 1 << t.canonical.z - n.canonical.z;\n let s = t.canonical.x / i - n.canonical.x,\n a = t.canonical.y / i - n.canonical.y,\n o = 0;\n for (let e = 0; e < t.canonical.z - n.canonical.z && !r.leaves[o]; e++) {\n s *= 2, a *= 2;\n const t = 2 * Math.floor(a) + Math.floor(s);\n o = r.childOffsets[o] + t, s %= 1, a %= 1;\n }\n return {\n min: this.exaggeration() * r.minimums[o],\n max: this.exaggeration() * r.maximums[o]\n };\n }\n getMinElevationBelowMSL() {\n throw new Error(\"Pure virtual method called.\");\n }\n raycast(t, e, r) {\n throw new Error(\"Pure virtual method called.\");\n }\n pointCoordinate(t) {\n throw new Error(\"Pure virtual method called.\");\n }\n _source() {\n throw new Error(\"Pure virtual method called.\");\n }\n isUsingMockSource() {\n throw new Error(\"Pure virtual method called.\");\n }\n exaggeration() {\n throw new Error(\"Pure virtual method called.\");\n }\n findDEMTileFor(t) {\n throw new Error(\"Pure virtual method called.\");\n }\n get visibleDemTiles() {\n throw new Error(\"Getter must be implemented in subclass.\");\n }\n }, t.ErrorEvent = Wt, t.EvaluationParameters = ws, t.Event = Yt, t.Evented = Qt, t.FillExtrusionBucket = th, t.Frustum = nl, t.FrustumCorners = rl, t.GLOBE_RADIUS = ol, t.GLOBE_SCALE_MATCH_LATITUDE = 45, t.GLOBE_ZOOM_THRESHOLD_MAX = al, t.GLOBE_ZOOM_THRESHOLD_MIN = sl, t.GlobeSharedBuffers = class {\n constructor(t) {\n this._createGrid(t), this._createPoles(t);\n }\n destroy() {\n this._poleIndexBuffer.destroy(), this._gridBuffer.destroy(), this._gridIndexBuffer.destroy(), this._poleNorthVertexBuffer.destroy(), this._poleSouthVertexBuffer.destroy();\n for (const t of this._poleSegments) t.destroy();\n for (const t of this._gridSegments) t.withSkirts.destroy(), t.withoutSkirts.destroy();\n if (this._wireframeIndexBuffer) {\n this._wireframeIndexBuffer.destroy();\n for (const t of this._wireframeSegments) t.destroy();\n }\n }\n _fillGridMeshWithLods(t, e) {\n const r = new $s(),\n n = new ra(),\n i = [],\n s = t + 1 + 2,\n a = e[0] + 1,\n o = e[0] + 1 + (1 + e.length),\n l = (t, e, r) => {\n let n = t === s - 1 ? t - 2 : 0 === t ? t : t - 1;\n return n += r ? 24575 : 0, [n, e];\n };\n for (let t = 0; t < s; ++t) r.emplaceBack(...l(t, 0, !0));\n for (let t = 0; t < a; ++t) for (let e = 0; e < s; ++e) r.emplaceBack(...l(e, t, (0 === e || e === s - 1) && !0));\n for (let t = 0; t < e.length; ++t) {\n const n = e[t];\n for (let t = 0; t < s; ++t) r.emplaceBack(...l(t, n, !0));\n }\n for (let t = 0; t < e.length; ++t) {\n const a = n.length,\n l = e[t] + 1 + 2,\n u = new ra();\n for (let r = 0; r < l - 1; r++) {\n const i = r === l - 2,\n a = i ? s * (o - e.length + t - r) : s;\n for (let t = 0; t < s - 1; t++) {\n const e = r * s + t;\n 0 === r || i || 0 === t || t === s - 2 ? (u.emplaceBack(e + 1, e, e + a), u.emplaceBack(e + a, e + a + 1, e + 1)) : (n.emplaceBack(e + 1, e, e + a), n.emplaceBack(e + a, e + a + 1, e + 1));\n }\n }\n const c = so.simpleSegment(0, a, r.length, n.length - a);\n for (let t = 0; t < u.uint16.length; t += 3) n.emplaceBack(u.uint16[t], u.uint16[t + 1], u.uint16[t + 2]);\n const h = so.simpleSegment(0, a, r.length, n.length - a);\n i.push({\n withoutSkirts: c,\n withSkirts: h\n });\n }\n return {\n vertices: r,\n indices: n,\n segments: i\n };\n }\n _createGrid(t) {\n const e = this._fillGridMeshWithLods(ul, cl);\n this._gridSegments = e.segments, this._gridBuffer = t.createVertexBuffer(e.vertices, tl.members), this._gridIndexBuffer = t.createIndexBuffer(e.indices, !0);\n }\n _createPoles(t) {\n const e = new ra();\n for (let t = 0; t <= ul; t++) e.emplaceBack(0, t + 1, t + 2);\n this._poleIndexBuffer = t.createIndexBuffer(e, !0);\n const r = new aa(),\n n = new aa();\n this._poleSegments = [];\n for (let t = 0, e = 0; t < sl; t++) {\n const i = 360 / (1 << t);\n r.emplaceBack(0, -ol, 0, .5, 0), n.emplaceBack(0, -ol, 0, .5, 1);\n for (let t = 0; t <= ul; t++) {\n const e = t / ul,\n s = Er(0, i, e),\n [a, o, l] = kl(Fl, Rl, s, ol);\n r.emplaceBack(a, o, l, e, 0), n.emplaceBack(a, o, l, e, 1);\n }\n this._poleSegments.push(so.simpleSegment(e, 0, 66, 64)), e += 66;\n }\n this._poleNorthVertexBuffer = t.createVertexBuffer(r, Wo, !1), this._poleSouthVertexBuffer = t.createVertexBuffer(n, Wo, !1);\n }\n getGridBuffers(t, e) {\n return [this._gridBuffer, this._gridIndexBuffer, e ? this._gridSegments[t].withSkirts : this._gridSegments[t].withoutSkirts];\n }\n getPoleBuffers(t) {\n return [this._poleNorthVertexBuffer, this._poleSouthVertexBuffer, this._poleIndexBuffer, this._poleSegments[t]];\n }\n getWirefameBuffers(t, e) {\n if (!this._wireframeSegments) {\n const e = new la(),\n r = ul,\n n = r + 1 + 2,\n i = 1;\n this._wireframeSegments = [];\n for (let t = 0, s = 0; t < cl.length; t++) {\n const a = cl[t];\n for (let t = i; t < a + i; t++) for (let s = i; s < r + i; s++) {\n const r = t * n + s;\n e.emplaceBack(r, r + 1), e.emplaceBack(r, r + n), e.emplaceBack(r, r + n + 1);\n }\n const o = a * r * 3;\n this._wireframeSegments.push(so.simpleSegment(0, s, (a + 1) * n, o)), s += o;\n }\n this._wireframeIndexBuffer = t.createIndexBuffer(e);\n }\n return [this._gridBuffer, this._wireframeIndexBuffer, this._wireframeSegments[e]];\n }\n }, t.GlyphManager = rd, t.ImagePosition = Sp, t.KDBush = gy, t.LivePerformanceUtils = $t, t.LngLat = Ol, t.LngLatBounds = oo, t.LocalGlyphMode = ed, t.MAX_MERCATOR_LATITUDE = Hl, t.MercatorCoordinate = Wl, t.ONE_EM = Rh, t.OverscaledTileID = fh, t.PerformanceMarkers = Ut, t.Point = x, t.Properties = Ps, t.RGBAImage = Uu, t.Ray = el, t.RequestManager = class {\n constructor(t, e, r) {\n this._transformRequestFn = t, this._customAccessToken = e, this._silenceAuthErrors = !!r, this._createSkuToken();\n }\n _createSkuToken() {\n const t = function () {\n let t = \"\";\n for (let e = 0; e < 10; e++) t += \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\"[Math.floor(62 * Math.random())];\n return {\n token: [\"1\", h, t].join(\"\"),\n tokenExpiresAt: Date.now() + 432e5\n };\n }();\n this._skuToken = t.token, this._skuTokenExpiresAt = t.tokenExpiresAt;\n }\n _isSkuTokenExpired() {\n return Date.now() > this._skuTokenExpiresAt;\n }\n transformRequest(t, e) {\n return this._transformRequestFn && this._transformRequestFn(t, e) || {\n url: t\n };\n }\n normalizeStyleURL(t, e) {\n if (!vt(t)) return t;\n const r = kt(t);\n return r.path = `/styles/v1${r.path}`, this._makeAPIURL(r, this._customAccessToken || e);\n }\n normalizeGlyphsURL(t, e) {\n if (!vt(t)) return t;\n const r = kt(t);\n return r.path = `/fonts/v1${r.path}`, this._makeAPIURL(r, this._customAccessToken || e);\n }\n normalizeSourceURL(t, e, r, n) {\n if (!vt(t)) return t;\n const i = kt(t);\n return i.path = `/v4/${i.authority}.json`, i.params.push(\"secure\"), r && i.params.push(`language=${r}`), n && i.params.push(`worldview=${n}`), this._makeAPIURL(i, this._customAccessToken || e);\n }\n normalizeSpriteURL(t, e, r, n) {\n const i = kt(t);\n return vt(t) ? (i.path = `/styles/v1${i.path}/sprite${e}${r}`, this._makeAPIURL(i, this._customAccessToken || n)) : (i.path += `${e}${r}`, It(i));\n }\n normalizeTileURL(t, e, r) {\n if (this._isSkuTokenExpired() && this._createSkuToken(), t && !vt(t)) return t;\n const n = kt(t);\n n.path = n.path.replace(/(\\.(png|jpg)\\d*)(?=$)/, `${e || r && \"raster\" !== n.authority && 512 === r ? \"@2x\" : \"\"}${s.supported ? \".webp\" : \"$1\"}`), \"raster\" === n.authority ? n.path = `/${i.RASTER_URL_PREFIX}${n.path}` : (n.path = n.path.replace(/^.+\\/v4\\//, \"/\"), n.path = `/${i.TILE_URL_VERSION}${n.path}`);\n const a = this._customAccessToken || function (t) {\n for (const e of t) {\n const t = e.match(/^access_token=(.*)$/);\n if (t) return t[1];\n }\n return null;\n }(n.params) || i.ACCESS_TOKEN;\n return i.REQUIRE_ACCESS_TOKEN && a && this._skuToken && n.params.push(`sku=${this._skuToken}`), this._makeAPIURL(n, a);\n }\n canonicalizeTileURL(t, e) {\n const r = kt(t);\n if (!r.path.match(/^(\\/v4\\/|\\/raster\\/v1\\/)/) || !r.path.match(/\\.[\\w]+$/)) return t;\n let n = \"mapbox://\";\n r.path.match(/^\\/raster\\/v1\\//) ? n += `raster/${r.path.replace(`/${i.RASTER_URL_PREFIX}/`, \"\")}` : n += `tiles/${r.path.replace(`/${i.TILE_URL_VERSION}/`, \"\")}`;\n let s = r.params;\n return e && (s = s.filter(t => !t.match(/^access_token=/))), s.length && (n += `?${s.join(\"&\")}`), n;\n }\n canonicalizeTileset(t, e) {\n const r = !!e && vt(e),\n n = [];\n for (const e of t.tiles || []) bt(e) ? n.push(this.canonicalizeTileURL(e, r)) : n.push(e);\n return n;\n }\n _makeAPIURL(t, e) {\n const r = \"See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes\",\n n = kt(i.API_URL);\n if (t.protocol = n.protocol, t.authority = n.authority, \"http\" === t.protocol) {\n const e = t.params.indexOf(\"secure\");\n e >= 0 && t.params.splice(e, 1);\n }\n if (\"/\" !== n.path && (t.path = `${n.path}${t.path}`), !i.REQUIRE_ACCESS_TOKEN) return It(t);\n if (e = e || i.ACCESS_TOKEN, !this._silenceAuthErrors) {\n if (!e) throw new Error(`An API access token is required to use Mapbox GL. ${r}`);\n if (\"s\" === e[0]) throw new Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${r}`);\n }\n return t.params = t.params.filter(t => -1 === t.indexOf(\"access_token\")), t.params.push(`access_token=${e || \"\"}`), It(t);\n }\n }, t.ResourceType = lt, t.SegmentVector = so, t.SourceCache = ey, t.StencilMode = Hf, t.StructArrayLayout1ui2 = ua, t.StructArrayLayout2f1f2i16 = Qs, t.StructArrayLayout2i4 = $s, t.StructArrayLayout2ui4 = la, t.StructArrayLayout3f12 = ea, t.StructArrayLayout3ui6 = ra, t.StructArrayLayout4i8 = Os, t.StructArrayLayout5f20 = aa, t.Texture = xf, t.Tile = Pf, t.Transitionable = Ss, t.Uniform1f = La, t.Uniform1i = class extends Va {\n constructor(t) {\n super(t), this.current = 0;\n }\n set(t, e, r) {\n this.fetchUniformLocation(t, e) && this.current !== r && (this.current = r, this.gl.uniform1i(this.location, r));\n }\n }, t.Uniform2f = class extends Va {\n constructor(t) {\n super(t), this.current = [0, 0];\n }\n set(t, e, r) {\n this.fetchUniformLocation(t, e) && (r[0] === this.current[0] && r[1] === this.current[1] || (this.current = r, this.gl.uniform2f(this.location, r[0], r[1])));\n }\n }, t.Uniform3f = class extends Va {\n constructor(t) {\n super(t), this.current = [0, 0, 0];\n }\n set(t, e, r) {\n this.fetchUniformLocation(t, e) && (r[0] === this.current[0] && r[1] === this.current[1] && r[2] === this.current[2] || (this.current = r, this.gl.uniform3f(this.location, r[0], r[1], r[2])));\n }\n }, t.Uniform4f = Fa, t.UniformColor = Ra, t.UniformMatrix2f = class extends Va {\n constructor(t) {\n super(t), this.current = ja;\n }\n set(t, e, r) {\n if (this.fetchUniformLocation(t, e)) for (let t = 0; t < 4; t++) if (r[t] !== this.current[t]) {\n this.current = r, this.gl.uniformMatrix2fv(this.location, !1, r);\n break;\n }\n }\n }, t.UniformMatrix3f = class extends Va {\n constructor(t) {\n super(t), this.current = $a;\n }\n set(t, e, r) {\n if (this.fetchUniformLocation(t, e)) for (let t = 0; t < 9; t++) if (r[t] !== this.current[t]) {\n this.current = r, this.gl.uniformMatrix3fv(this.location, !1, r);\n break;\n }\n }\n }, t.UniformMatrix4f = class extends Va {\n constructor(t) {\n super(t), this.current = Ua;\n }\n set(t, e, r) {\n if (this.fetchUniformLocation(t, e)) {\n if (r[12] !== this.current[12] || r[0] !== this.current[0]) return this.current = r, void this.gl.uniformMatrix4fv(this.location, !1, r);\n for (let t = 1; t < 16; t++) if (r[t] !== this.current[t]) {\n this.current = r, this.gl.uniformMatrix4fv(this.location, !1, r);\n break;\n }\n }\n }\n }, t.UnwrappedTileID = dh, t.ValidationError = ri, t.VectorTileFeature = Kc, t.VectorTileWorkerSource = class extends Qt {\n constructor(t, e, r, n, i) {\n super(), this.actor = t, this.layerIndex = e, this.availableImages = r, this.loadVectorData = i || yy, this.loading = {}, this.loaded = {}, this.deduped = new fy(t.scheduler), this.isSpriteLoaded = n, this.scheduler = t.scheduler;\n }\n loadTile(t, e) {\n const r = t.uid,\n n = t && t.request,\n i = n && n.collectResourceTiming,\n s = this.loading[r] = new py(t);\n s.abort = this.loadVectorData(t, (a, o) => {\n const l = !this.loading[r];\n if (delete this.loading[r], l || a || !o) return s.status = \"done\", l || (this.loaded[r] = s), e(a);\n const u = o.rawData,\n c = {};\n o.expires && (c.expires = o.expires), o.cacheControl && (c.cacheControl = o.cacheControl), s.vectorTile = o.vectorTile || new Zc(new mp(u));\n const h = () => {\n s.parse(s.vectorTile, this.layerIndex, this.availableImages, this.actor, (t, r) => {\n if (t || !r) return e(t);\n const s = {};\n if (i) {\n const t = qt(n);\n t.length > 0 && (s.resourceTiming = JSON.parse(JSON.stringify(t)));\n }\n e(null, C({\n rawTileData: u.slice(0)\n }, r, c, s));\n });\n };\n this.isSpriteLoaded ? h() : this.once(\"isSpriteLoaded\", () => {\n this.scheduler ? this.scheduler.add(h, {\n type: \"parseTile\",\n isSymbolTile: t.isSymbolTile,\n zoom: t.tileZoom\n }) : h();\n }), this.loaded = this.loaded || {}, this.loaded[r] = s;\n });\n }\n reloadTile(t, e) {\n const r = this.loaded,\n n = t.uid,\n i = this;\n if (r && r[n]) {\n const s = r[n];\n s.showCollisionBoxes = t.showCollisionBoxes, s.enableTerrain = !!t.enableTerrain, s.projection = t.projection, s.tileTransform = Bd(t.tileID.canonical, t.projection);\n const a = (t, r) => {\n const n = s.reloadCallback;\n n && (delete s.reloadCallback, s.parse(s.vectorTile, i.layerIndex, this.availableImages, i.actor, n)), e(t, r);\n };\n \"parsing\" === s.status ? s.reloadCallback = a : \"done\" === s.status && (s.vectorTile ? s.parse(s.vectorTile, this.layerIndex, this.availableImages, this.actor, a) : a());\n }\n }\n abortTile(t, e) {\n const r = t.uid,\n n = this.loading[r];\n n && (n.abort && n.abort(), delete this.loading[r]), e();\n }\n removeTile(t, e) {\n const r = this.loaded,\n n = t.uid;\n r && r[n] && delete r[n], e();\n }\n }, t.WritingMode = Ip, t.ZoomDependentExpression = Wn, t.add = Mo, t.addDynamicAttributes = rf, t.adjoint = function (t, e) {\n var r = e[0],\n n = e[1],\n i = e[2],\n s = e[3],\n a = e[4],\n o = e[5],\n l = e[6],\n u = e[7],\n c = e[8];\n return t[0] = a * c - o * u, t[1] = i * u - n * c, t[2] = n * o - i * a, t[3] = o * l - s * c, t[4] = r * c - i * l, t[5] = i * s - r * o, t[6] = s * u - a * l, t[7] = n * l - r * u, t[8] = r * a - n * s, t;\n }, t.asyncAll = B, t.bezier = k, t.bindAll = R, t.boundsAttributes = Ef, t.bufferConvexPolygon = function (t, e) {\n const r = [];\n for (let n = 0; n < t.length; n++) {\n const i = z(n - 1, -1, t.length - 1),\n s = z(n + 1, -1, t.length - 1),\n a = t[n],\n o = t[s],\n l = t[i].sub(a).unit(),\n u = o.sub(a).unit(),\n c = u.angleWithSep(l.x, l.y),\n h = l.add(u).unit().mult(-1 * e / Math.sin(c / 2));\n r.push(a.add(h));\n }\n return r;\n }, t.cacheEntryPossiblyAdded = function (t) {\n ot++, ot > et && (t.getActor().send(\"enforceCacheSizeLimit\", tt), ot = 0);\n }, t.calculateGlobeLabelMatrix = function (t, e) {\n const {\n x: r,\n y: n\n } = t.point,\n i = Cl(r, n, t.worldSize / t._pixelsPerMercatorPixel, 0, 0);\n return yo(i, i, El(xl(e)));\n }, t.calculateGlobeMatrix = function (t) {\n const {\n x: e,\n y: r\n } = t.point,\n {\n lng: n,\n lat: i\n } = t._center;\n return Cl(e, r, t.worldSize, n, i);\n }, t.calculateGlobeMercatorMatrix = function (t) {\n const e = t.pixelsPerMeter,\n r = e / Zl(1, t.center.lat),\n n = po(new Float64Array(16));\n return mo(n, n, [t.point.x, t.point.y, 0]), go(n, n, [r, r, e]), Float32Array.from(n);\n }, t.circumferenceAtLatitude = ql, t.clamp = M, t.clearTileCache = function (t) {\n if (!it()) return;\n const r = e.caches.delete(Q);\n t && r.catch(t).then(() => t());\n }, t.clipLine = Hp, t.clone = function (t) {\n var e = new uo(16);\n return e[0] = t[0], e[1] = t[1], e[2] = t[2], e[3] = t[3], e[4] = t[4], e[5] = t[5], e[6] = t[6], e[7] = t[7], e[8] = t[8], e[9] = t[9], e[10] = t[10], e[11] = t[11], e[12] = t[12], e[13] = t[13], e[14] = t[14], e[15] = t[15], e;\n }, t.clone$1 = O, t.collisionCircleLayout = Fh, t.config = i, t.conjugate = function (t, e) {\n return t[0] = -e[0], t[1] = -e[1], t[2] = -e[2], t[3] = e[3], t;\n }, t.create = function () {\n var t = new uo(16);\n return uo != Float32Array && (t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0), t[0] = 1, t[5] = 1, t[10] = 1, t[15] = 1, t;\n }, t.create$1 = co, t.createExpression = Hn, t.createLayout = Rs, t.createStyleLayer = function (t) {\n return \"custom\" === t.type ? new ff(t) : new gf[t.type](t);\n }, t.cross = Lo, t.degToRad = w, t.distance = function (t, e) {\n return Math.hypot(e[0] - t[0], e[1] - t[1], e[2] - t[2]);\n }, t.div = function (t, e, r) {\n return t[0] = e[0] / r[0], t[1] = e[1] / r[1], t[2] = e[2] / r[2], t;\n }, t.dot = Vo, t.earthRadius = Ul, t.ease = I, t.easeCubicInOut = S, t.ecefToLatLng = function ([t, e, r]) {\n const n = Math.hypot(t, e, r),\n i = Math.atan2(t, r),\n s = .5 * Math.PI - Math.acos(-e / n);\n return new Ol(_(i), _(s));\n }, t.emitValidationErrors = qi, t.endsWith = U, t.enforceCacheSizeLimit = function (t) {\n st(), rt && rt.then(e => {\n e.keys().then(r => {\n for (let n = 0; n < r.length - t; n++) e.delete(r[n]);\n });\n });\n }, t.evaluateSizeForFeature = jh, t.evaluateSizeForZoom = Oh, t.evaluateVariableOffset = xd, t.evented = gs, t.exactEquals = function (t, e) {\n return t[0] === e[0] && t[1] === e[1] && t[2] === e[2] && t[3] === e[3];\n }, t.exactEquals$1 = function (t, e) {\n return t[0] === e[0] && t[1] === e[1] && t[2] === e[2];\n }, t.exported = Xt, t.exported$1 = s, t.extend = C, t.extend$1 = ee, t.fillExtrusionHeightLift = oh, t.filterObject = j, t.fromMat4 = function (t, e) {\n return t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[4], t[4] = e[5], t[5] = e[6], t[6] = e[8], t[7] = e[9], t[8] = e[10], t;\n }, t.fromQuat = function (t, e) {\n var r = e[0],\n n = e[1],\n i = e[2],\n s = e[3],\n a = r + r,\n o = n + n,\n l = i + i,\n u = r * a,\n c = n * a,\n h = n * o,\n p = i * a,\n d = i * o,\n f = i * l,\n y = s * a,\n m = s * o,\n g = s * l;\n return t[0] = 1 - h - f, t[1] = c + g, t[2] = p - m, t[3] = 0, t[4] = c - g, t[5] = 1 - u - f, t[6] = d + y, t[7] = 0, t[8] = p + m, t[9] = d - y, t[10] = 1 - u - h, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, t;\n }, t.fromRotation = function (t, e) {\n var r = Math.sin(e),\n n = Math.cos(e);\n return t[0] = n, t[1] = r, t[2] = 0, t[3] = -r, t[4] = n, t[5] = 0, t[6] = 0, t[7] = 0, t[8] = 1, t;\n }, t.fromScaling = bo, t.furthestTileCorner = function (t) {\n const e = Math.round((t + 45 + 360) % 360 / 90) % 4;\n return A[e];\n }, t.getAABBPointSquareDist = function (t, e, r) {\n let n = 0;\n for (let i = 0; i < 2; ++i) {\n const s = r ? r[i] : 0;\n t[i] > s && (n += (t[i] - s) * (t[i] - s)), e[i] < s && (n += (s - e[i]) * (s - e[i]));\n }\n return n;\n }, t.getAnchorAlignment = Rp, t.getAnchorJustification = bd, t.getBounds = function (t) {\n let e = 1 / 0,\n r = 1 / 0,\n n = -1 / 0,\n i = -1 / 0;\n for (const s of t) e = Math.min(e, s.x), r = Math.min(r, s.y), n = Math.max(n, s.x), i = Math.max(i, s.y);\n return {\n min: new x(e, r),\n max: new x(n, i)\n };\n }, t.getColumn = W, t.getDefaultExportFromCjs = p, t.getGridMatrix = function (t, e, r, n) {\n const i = e.getNorth(),\n s = e.getSouth(),\n a = e.getWest(),\n o = e.getEast(),\n l = 1 << t.z,\n u = o - a,\n c = i - s,\n h = u / ul,\n p = -c / cl[r],\n d = [0, h, 0, p, 0, 0, i, a, 0];\n if (t.z > 0) {\n const t = 180 / n;\n ho(d, d, [t / u + 1, 0, 0, 0, t / c + 1, 0, -.5 * t / h, .5 * t / p, 1]);\n }\n return d[2] = l, d[5] = t.x, d[8] = t.y, d;\n }, t.getImage = gt, t.getJSON = function (t, e) {\n return ht(C(t, {\n type: \"json\"\n }), e);\n }, t.getLatitudinalLod = function (t) {\n const e = Hl - 5;\n t = M(t, -e, e) / e * 90;\n const r = Math.pow(Math.abs(Math.sin(w(t))), 3);\n return Math.round(r * (cl.length - 1));\n }, t.getMapSessionAPI = Ft, t.getPerformanceMeasurement = qt, t.getProjection = Yd, t.getRTLTextPluginStatus = xs, t.getReferrer = ct, t.getTilePoint = function (t, {\n x: e,\n y: r\n }, n = 0) {\n return new x(((e - n) * t.scale - t.x) * ao, (r * t.scale - t.y) * ao);\n }, t.getTileVec3 = function (t, e, r = 0) {\n return Io(((e.x - r) * t.scale - t.x) * ao, (e.y * t.scale - t.y) * ao, Jl(e.z, e.y));\n }, t.getVideo = function (t, r) {\n const n = e.document.createElement(\"video\");\n n.muted = !0, n.onloadstart = function () {\n r(null, n);\n };\n for (let r = 0; r < t.length; r++) {\n const i = e.document.createElement(\"source\");\n dt(t[r]) || (n.crossOrigin = \"Anonymous\"), i.src = t[r], n.appendChild(i);\n }\n return {\n cancel: () => {}\n };\n }, t.globeCenterToScreenPoint = function (t) {\n const e = [0, 0, 0],\n r = po(new Float64Array(16));\n return yo(r, t.pixelMatrix, t.globeMatrix), Fo(e, e, r), new x(e[0], e[1]);\n }, t.globeDenormalizeECEF = El, t.globeECEFOrigin = function (t, e) {\n const r = [0, 0, 0];\n return Fo(r, r, Bl(xl(e.canonical))), Fo(r, r, t), r;\n }, t.globeMetersToEcef = fl, t.globeNormalizeECEF = Bl, t.globePixelsToTileUnits = function (t, e) {\n return ao / (512 * Math.pow(2, t)) * Tl(xl(e));\n }, t.globePoleMatrixForTile = function (t, e, r) {\n const n = po(new Float64Array(16)),\n i = (e / (1 << t) - .5) * Math.PI * 2;\n return vo(n, r.globeMatrix, i), Float32Array.from(n);\n }, t.globeTileBounds = xl, t.globeTiltAtLngLat = Dl, t.globeToMercatorTransition = Pl, t.globeUseCustomAntiAliasing = function (t, e, r) {\n const n = Pl(r.zoom),\n i = t.style.map._antialias,\n s = !!e.extStandardDerivatives,\n a = e.extStandardDerivativesForceOff || t.terrain && t.terrain.exaggeration() > 0;\n return 0 === n && !i && !a && s;\n }, t.identity = po, t.identity$1 = Ko, t.invert = fo, t.isFullscreen = function () {\n return !!e.document.fullscreenElement || !!e.document.webkitFullscreenElement;\n }, t.isLngLatBehindGlobe = Vl, t.isMapAuthenticated = function (t) {\n return Rt.has(t);\n }, t.isMapboxURL = vt, t.isSafariWithAntialiasingBug = function (t) {\n const e = t.navigator ? t.navigator.userAgent : null;\n return !!H(t) && e && (e.match(\"Version/15.4\") || e.match(\"Version/15.5\") || e.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/));\n }, t.latFromMercatorY = Xl, t.latLngToECEF = Il, t.len = Oo, t.length = ko, t.length$1 = function (t) {\n return Math.hypot(t[0], t[1], t[2], t[3]);\n }, t.lngFromMercatorX = Kl, t.loadVectorTile = yy, t.makeRequest = ht, t.mapValue = function (t, e, r, n, i) {\n return M((t - e) / (r - e) * (i - n) + n, n, i);\n }, t.mercatorScale = Yl, t.mercatorXfromLng = Nl, t.mercatorYfromLat = Gl, t.mercatorZfromAltitude = Zl, t.mul = _o, t.mul$1 = jo, t.multiply = yo, t.multiply$1 = ho, t.multiply$2 = zo, t.nextPowerOfTwo = L, t.normalize = Do, t.normalize$1 = Ho, t.normalize$2 = No, t.number = Er, t.ortho = function (t, e, r, n, i, s, a) {\n var o = 1 / (e - r),\n l = 1 / (n - i),\n u = 1 / (s - a);\n return t[0] = -2 * o, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = -2 * l, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[10] = 2 * u, t[11] = 0, t[12] = (e + r) * o, t[13] = (i + n) * l, t[14] = (a + s) * u, t[15] = 1, t;\n }, t.pbf = Xh, t.perspective = function (t, e, r, n, i) {\n var s,\n a = 1 / Math.tan(e / 2);\n return t[0] = a / r, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = a, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[11] = -1, t[12] = 0, t[13] = 0, t[15] = 0, null != i && i !== 1 / 0 ? (t[10] = (i + n) * (s = 1 / (n - i)), t[14] = 2 * i * n * s) : (t[10] = -1, t[14] = -2 * n), t;\n }, t.pick = function (t, e) {\n const r = {};\n for (let n = 0; n < e.length; n++) {\n const i = e[n];\n i in t && (r[i] = t[i]);\n }\n return r;\n }, t.plugin = bs, t.pointGeometry = m, t.polesInViewport = function (t) {\n const e = po(new Float64Array(16));\n yo(e, t.pixelMatrix, t.globeMatrix);\n const r = [0, hl, 0],\n n = [0, pl, 0];\n return Fo(r, r, e), Fo(n, n, e), [r[0] > 0 && r[0] <= t.width && r[1] > 0 && r[1] <= t.height && !Vl(t, new Ol(t.center.lat, 90)), n[0] > 0 && n[0] <= t.width && n[1] > 0 && n[1] <= t.height && !Vl(t, new Ol(t.center.lat, -90))];\n }, t.polygonContainsPoint = bu, t.polygonIntersectsBox = wu, t.polygonIntersectsPolygon = hu, t.polygonizeBounds = function (t, e, r = 0, n = !0) {\n const i = new x(r, r),\n s = t.sub(i),\n a = e.add(i),\n o = [s, new x(a.x, s.y), a, new x(s.x, a.y)];\n return n && o.push(s.clone()), o;\n }, t.posAttributes = tl, t.postMapLoadEvent = Pt, t.postPerformanceEvent = Vt, t.postTurnstileEvent = Et, t.potpack = _p, t.prevPowerOfTwo = function (t) {\n return t <= 1 ? 1 : Math.pow(2, Math.floor(Math.log(t) / Math.LN2));\n }, t.radToDeg = _, t.refProperties = [\"type\", \"source\", \"source-layer\", \"minzoom\", \"maxzoom\", \"filter\", \"layout\"], t.registerForPluginStateChange = function (t) {\n return t({\n pluginStatus: ds,\n pluginURL: fs\n }), gs.on(\"pluginStateChange\", t), t;\n }, t.removeAuthState = function (t) {\n Rt.delete(t);\n }, t.renderColorRamp = ju, t.resample = tu, t.rotateX = xo, t.rotateX$1 = Xo, t.rotateY = vo, t.rotateY$1 = Jo, t.rotateZ = function (t, e, r) {\n var n = Math.sin(r),\n i = Math.cos(r),\n s = e[0],\n a = e[1],\n o = e[2],\n l = e[3],\n u = e[4],\n c = e[5],\n h = e[6],\n p = e[7];\n return e !== t && (t[8] = e[8], t[9] = e[9], t[10] = e[10], t[11] = e[11], t[12] = e[12], t[13] = e[13], t[14] = e[14], t[15] = e[15]), t[0] = s * i + u * n, t[1] = a * i + c * n, t[2] = o * i + h * n, t[3] = l * i + p * n, t[4] = u * i - s * n, t[5] = c * i - a * n, t[6] = h * i - o * n, t[7] = p * i - l * n, t;\n }, t.rotateZ$1 = function (t, e, r) {\n r *= .5;\n var n = e[0],\n i = e[1],\n s = e[2],\n a = e[3],\n o = Math.sin(r),\n l = Math.cos(r);\n return t[0] = n * l + i * o, t[1] = i * l - n * o, t[2] = s * l + a * o, t[3] = a * l - s * o, t;\n }, t.scale = go, t.scale$1 = qo, t.scale$2 = Co, t.scaleAndAdd = Po, t.set = function (t, e, r, n) {\n return t[0] = e, t[1] = r, t[2] = n, t;\n }, t.setCacheLimits = function (t, e) {\n tt = t, et = e;\n }, t.setColumn = function (t, e, r) {\n t[4 * e + 0] = r[0], t[4 * e + 1] = r[1], t[4 * e + 2] = r[2], t[4 * e + 3] = r[3];\n }, t.setRTLTextPlugin = function (t, e, r = !1) {\n if (ds === us || ds === cs || ds === hs) throw new Error(\"setRTLTextPlugin cannot be called multiple times.\");\n fs = Xt.resolveURL(t), ds = us, ps = e, ms(), r || vs();\n }, t.smoothstep = T, t.spec = te, t.squaredLength = function (t) {\n var e = t[0],\n r = t[1],\n n = t[2];\n return e * e + r * r + n * n;\n }, t.storeAuthState = function (t, e) {\n e ? Rt.add(t) : Rt.delete(t);\n }, t.sub = $o, t.subtract = To, t.symbolSize = qh, t.tileAABB = function (t, e, r, n, i, s, a, o, l) {\n if (\"globe\" === l.name) return _l(t, e, new ph(r, n, i));\n const u = Bd({\n z: r,\n x: n,\n y: i\n }, l);\n return new il([(s + u.x / u.scale) * e, e * (u.y / u.scale), a], [(s + u.x2 / u.scale) * e, e * (u.y2 / u.scale), o]);\n }, t.tileCornersToBounds = Al, t.tileTransform = Bd, t.transformMat3 = function (t, e, r) {\n var n = e[0],\n i = e[1],\n s = e[2];\n return t[0] = n * r[0] + i * r[3] + s * r[6], t[1] = n * r[1] + i * r[4] + s * r[7], t[2] = n * r[2] + i * r[5] + s * r[8], t;\n }, t.transformMat4 = Fo, t.transformMat4$1 = Go, t.transformQuat = Ro, t.transitionTileAABBinECEF = bl, t.translate = mo, t.transpose = function (t, e) {\n if (t === e) {\n var r = e[1],\n n = e[2],\n i = e[5];\n t[1] = e[3], t[2] = e[6], t[3] = r, t[5] = e[7], t[6] = n, t[7] = i;\n } else t[0] = e[0], t[1] = e[3], t[2] = e[6], t[3] = e[1], t[4] = e[4], t[5] = e[7], t[6] = e[2], t[7] = e[5], t[8] = e[8];\n return t;\n }, t.triggerPluginCompletionEvent = ys, t.uniqueId = D, t.updateGlobeVertexNormal = function (t, e, r, n, i) {\n const s = 5 * e + 2;\n t.float32[s + 0] = r, t.float32[s + 1] = n, t.float32[s + 2] = i;\n }, t.validateCustomStyleLayer = function (t) {\n const e = [],\n r = t.id;\n return void 0 === r && e.push({\n message: `layers.${r}: missing required property \"id\"`\n }), void 0 === t.render && e.push({\n message: `layers.${r}: missing required method \"render\"`\n }), t.renderingMode && \"2d\" !== t.renderingMode && \"3d\" !== t.renderingMode && e.push({\n message: `layers.${r}: property \"renderingMode\" must be either \"2d\" or \"3d\"`\n }), e;\n }, t.validateFilter = t => Oi(Ai(t)), t.validateFog = t => Oi(Vi(t)), t.validateLayer = t => Oi(Ti(t)), t.validateLight = t => Oi(Pi(t)), t.validateSource = t => Oi(Ei(t)), t.validateStyle = Ui, t.validateTerrain = t => Oi(Di(t)), t.values = E, t.vectorTile = Dc, t.version = r, t.warnOnce = N, t.window = e, t.wrap = z;\n });\n define([\"./shared\"], function (e) {\n \"use strict\";\n\n function t(e) {\n if (\"number\" == typeof e || \"boolean\" == typeof e || \"string\" == typeof e || null == e) return JSON.stringify(e);\n if (Array.isArray(e)) {\n let r = \"[\";\n for (const o of e) r += `${t(o)},`;\n return `${r}]`;\n }\n let r = \"{\";\n for (const o of Object.keys(e).sort()) r += `${o}:${t(e[o])},`;\n return `${r}}`;\n }\n function r(r) {\n let o = \"\";\n for (const i of e.refProperties) o += `/${t(r[i])}`;\n return o;\n }\n class o {\n constructor(e) {\n this.keyCache = {}, e && this.replace(e);\n }\n replace(e) {\n this._layerConfigs = {}, this._layers = {}, this.update(e, []);\n }\n update(t, o) {\n for (const r of t) this._layerConfigs[r.id] = r, (this._layers[r.id] = e.createStyleLayer(r)).compileFilter(), this.keyCache[r.id] && delete this.keyCache[r.id];\n for (const e of o) delete this.keyCache[e], delete this._layerConfigs[e], delete this._layers[e];\n this.familiesBySource = {};\n const i = function (e, t) {\n const o = {};\n for (let i = 0; i < e.length; i++) {\n const n = t && t[e[i].id] || r(e[i]);\n t && (t[e[i].id] = n);\n let s = o[n];\n s || (s = o[n] = []), s.push(e[i]);\n }\n const i = [];\n for (const e in o) i.push(o[e]);\n return i;\n }(e.values(this._layerConfigs), this.keyCache);\n for (const e of i) {\n const t = e.map(e => this._layers[e.id]),\n r = t[0];\n if (\"none\" === r.visibility) continue;\n const o = r.source || \"\";\n let i = this.familiesBySource[o];\n i || (i = this.familiesBySource[o] = {});\n const n = r.sourceLayer || \"_geojsonTileLayer\";\n let s = i[n];\n s || (s = i[n] = []), s.push(t);\n }\n }\n }\n class i {\n loadTile(t, r) {\n const {\n uid: o,\n encoding: i,\n rawImageData: n,\n padding: s,\n buildQuadTree: a\n } = t,\n l = e.window.ImageBitmap && n instanceof e.window.ImageBitmap ? this.getImageData(n, s) : n;\n r(null, new e.DEMData(o, l, i, s < 1, a));\n }\n getImageData(e, t) {\n this.offscreenCanvas && this.offscreenCanvasContext || (this.offscreenCanvas = new OffscreenCanvas(e.width, e.height), this.offscreenCanvasContext = this.offscreenCanvas.getContext(\"2d\", {\n willReadFrequently: !0\n })), this.offscreenCanvas.width = e.width, this.offscreenCanvas.height = e.height, this.offscreenCanvasContext.drawImage(e, 0, 0, e.width, e.height);\n const r = this.offscreenCanvasContext.getImageData(-t, -t, e.width + 2 * t, e.height + 2 * t);\n return this.offscreenCanvasContext.clearRect(0, 0, this.offscreenCanvas.width, this.offscreenCanvas.height), r;\n }\n }\n function n(e, t) {\n if (0 !== e.length) {\n s(e[0], t);\n for (var r = 1; r < e.length; r++) s(e[r], !t);\n }\n }\n function s(e, t) {\n for (var r = 0, o = 0, i = 0, n = e.length, s = n - 1; i < n; s = i++) {\n var a = (e[i][0] - e[s][0]) * (e[s][1] + e[i][1]),\n l = r + a;\n o += Math.abs(r) >= Math.abs(a) ? r - l + a : a - l + r, r = l;\n }\n r + o >= 0 != !!t && e.reverse();\n }\n var a = e.getDefaultExportFromCjs(function e(t, r) {\n var o,\n i = t && t.type;\n if (\"FeatureCollection\" === i) for (o = 0; o < t.features.length; o++) e(t.features[o], r);else if (\"GeometryCollection\" === i) for (o = 0; o < t.geometries.length; o++) e(t.geometries[o], r);else if (\"Feature\" === i) e(t.geometry, r);else if (\"Polygon\" === i) n(t.coordinates, r);else if (\"MultiPolygon\" === i) for (o = 0; o < t.coordinates.length; o++) n(t.coordinates[o], r);\n return t;\n });\n const l = e.VectorTileFeature.prototype.toGeoJSON;\n var u = {\n exports: {}\n },\n h = e.pointGeometry,\n c = e.vectorTile.VectorTileFeature,\n f = p;\n function p(e, t) {\n this.options = t || {}, this.features = e, this.length = e.length;\n }\n function g(e, t) {\n this.id = \"number\" == typeof e.id ? e.id : void 0, this.type = e.type, this.rawGeometry = 1 === e.type ? [e.geometry] : e.geometry, this.properties = e.tags, this.extent = t || 4096;\n }\n p.prototype.feature = function (e) {\n return new g(this.features[e], this.options.extent);\n }, g.prototype.loadGeometry = function () {\n var e = this.rawGeometry;\n this.geometry = [];\n for (var t = 0; t < e.length; t++) {\n for (var r = e[t], o = [], i = 0; i < r.length; i++) o.push(new h(r[i][0], r[i][1]));\n this.geometry.push(o);\n }\n return this.geometry;\n }, g.prototype.bbox = function () {\n this.geometry || this.loadGeometry();\n for (var e = this.geometry, t = 1 / 0, r = -1 / 0, o = 1 / 0, i = -1 / 0, n = 0; n < e.length; n++) for (var s = e[n], a = 0; a < s.length; a++) {\n var l = s[a];\n t = Math.min(t, l.x), r = Math.max(r, l.x), o = Math.min(o, l.y), i = Math.max(i, l.y);\n }\n return [t, o, r, i];\n }, g.prototype.toGeoJSON = c.prototype.toGeoJSON;\n var d = e.pbf,\n m = f;\n function y(e) {\n var t = new d();\n return function (e, t) {\n for (var r in e.layers) t.writeMessage(3, v, e.layers[r]);\n }(e, t), t.finish();\n }\n function v(e, t) {\n var r;\n t.writeVarintField(15, e.version || 1), t.writeStringField(1, e.name || \"\"), t.writeVarintField(5, e.extent || 4096);\n var o = {\n keys: [],\n values: [],\n keycache: {},\n valuecache: {}\n };\n for (r = 0; r < e.length; r++) o.feature = e.feature(r), t.writeMessage(2, x, o);\n var i = o.keys;\n for (r = 0; r < i.length; r++) t.writeStringField(3, i[r]);\n var n = o.values;\n for (r = 0; r < n.length; r++) t.writeMessage(4, b, n[r]);\n }\n function x(e, t) {\n var r = e.feature;\n void 0 !== r.id && t.writeVarintField(1, r.id), t.writeMessage(2, w, e), t.writeVarintField(3, r.type), t.writeMessage(4, P, r);\n }\n function w(e, t) {\n var r = e.feature,\n o = e.keys,\n i = e.values,\n n = e.keycache,\n s = e.valuecache;\n for (var a in r.properties) {\n var l = r.properties[a],\n u = n[a];\n if (null !== l) {\n void 0 === u && (o.push(a), n[a] = u = o.length - 1), t.writeVarint(u);\n var h = typeof l;\n \"string\" !== h && \"boolean\" !== h && \"number\" !== h && (l = JSON.stringify(l));\n var c = h + \":\" + l,\n f = s[c];\n void 0 === f && (i.push(l), s[c] = f = i.length - 1), t.writeVarint(f);\n }\n }\n }\n function S(e, t) {\n return (t << 3) + (7 & e);\n }\n function M(e) {\n return e << 1 ^ e >> 31;\n }\n function P(e, t) {\n for (var r = e.loadGeometry(), o = e.type, i = 0, n = 0, s = r.length, a = 0; a < s; a++) {\n var l = r[a],\n u = 1;\n 1 === o && (u = l.length), t.writeVarint(S(1, u));\n for (var h = 3 === o ? l.length - 1 : l.length, c = 0; c < h; c++) {\n 1 === c && 1 !== o && t.writeVarint(S(2, h - 1));\n var f = l[c].x - i,\n p = l[c].y - n;\n t.writeVarint(M(f)), t.writeVarint(M(p)), i += f, n += p;\n }\n 3 === o && t.writeVarint(S(7, 1));\n }\n }\n function b(e, t) {\n var r = typeof e;\n \"string\" === r ? t.writeStringField(1, e) : \"boolean\" === r ? t.writeBooleanField(7, e) : \"number\" === r && (e % 1 != 0 ? t.writeDoubleField(3, e) : e < 0 ? t.writeSVarintField(6, e) : t.writeVarintField(5, e));\n }\n u.exports = y, u.exports.fromVectorTileJs = y, u.exports.fromGeojsonVt = function (e, t) {\n t = t || {};\n var r = {};\n for (var o in e) r[o] = new m(e[o].features, t), r[o].name = o, r[o].version = t.version, r[o].extent = t.extent;\n return y({\n layers: r\n });\n }, u.exports.GeoJSONWrapper = m;\n var T = e.getDefaultExportFromCjs(u.exports);\n const k = {\n minZoom: 0,\n maxZoom: 16,\n minPoints: 2,\n radius: 40,\n extent: 512,\n nodeSize: 64,\n log: !1,\n generateId: !1,\n reduce: null,\n map: e => e\n },\n I = Math.fround || (_ = new Float32Array(1), e => (_[0] = +e, _[0]));\n var _;\n const C = 3,\n L = 5,\n O = 6;\n class E {\n constructor(e) {\n this.options = Object.assign(Object.create(k), e), this.trees = new Array(this.options.maxZoom + 1), this.stride = this.options.reduce ? 7 : 6, this.clusterProps = [];\n }\n load(e) {\n const {\n log: t,\n minZoom: r,\n maxZoom: o\n } = this.options;\n t && console.time(\"total time\");\n const i = `prepare ${e.length} points`;\n t && console.time(i), this.points = e;\n const n = [];\n for (let t = 0; t < e.length; t++) {\n const r = e[t];\n if (!r.geometry) continue;\n const [o, i] = r.geometry.coordinates,\n s = I(N(o)),\n a = I(Z(i));\n n.push(s, a, 1 / 0, t, -1, 1), this.options.reduce && n.push(0);\n }\n let s = this.trees[o + 1] = this._createTree(n);\n t && console.timeEnd(i);\n for (let e = o; e >= r; e--) {\n const r = +Date.now();\n s = this.trees[e] = this._createTree(this._cluster(s, e)), t && console.log(\"z%d: %d clusters in %dms\", e, s.numItems, +Date.now() - r);\n }\n return t && console.timeEnd(\"total time\"), this;\n }\n getClusters(e, t) {\n let r = ((e[0] + 180) % 360 + 360) % 360 - 180;\n const o = Math.max(-90, Math.min(90, e[1]));\n let i = 180 === e[2] ? 180 : ((e[2] + 180) % 360 + 360) % 360 - 180;\n const n = Math.max(-90, Math.min(90, e[3]));\n if (e[2] - e[0] >= 360) r = -180, i = 180;else if (r > i) {\n const e = this.getClusters([r, o, 180, n], t),\n s = this.getClusters([-180, o, i, n], t);\n return e.concat(s);\n }\n const s = this.trees[this._limitZoom(t)],\n a = s.range(N(r), Z(n), N(i), Z(o)),\n l = s.data,\n u = [];\n for (const e of a) {\n const t = this.stride * e;\n u.push(l[t + L] > 1 ? j(l, t, this.clusterProps) : this.points[l[t + C]]);\n }\n return u;\n }\n getChildren(e) {\n const t = this._getOriginId(e),\n r = this._getOriginZoom(e),\n o = \"No cluster with the specified id.\",\n i = this.trees[r];\n if (!i) throw new Error(o);\n const n = i.data;\n if (t * this.stride >= n.length) throw new Error(o);\n const s = this.options.radius / (this.options.extent * Math.pow(2, r - 1)),\n a = i.within(n[t * this.stride], n[t * this.stride + 1], s),\n l = [];\n for (const t of a) {\n const r = t * this.stride;\n n[r + 4] === e && l.push(n[r + L] > 1 ? j(n, r, this.clusterProps) : this.points[n[r + C]]);\n }\n if (0 === l.length) throw new Error(o);\n return l;\n }\n getLeaves(e, t, r) {\n const o = [];\n return this._appendLeaves(o, e, t = t || 10, r = r || 0, 0), o;\n }\n getTile(e, t, r) {\n const o = this.trees[this._limitZoom(e)],\n i = Math.pow(2, e),\n {\n extent: n,\n radius: s\n } = this.options,\n a = s / n,\n l = (r - a) / i,\n u = (r + 1 + a) / i,\n h = {\n features: []\n };\n return this._addTileFeatures(o.range((t - a) / i, l, (t + 1 + a) / i, u), o.data, t, r, i, h), 0 === t && this._addTileFeatures(o.range(1 - a / i, l, 1, u), o.data, i, r, i, h), t === i - 1 && this._addTileFeatures(o.range(0, l, a / i, u), o.data, -1, r, i, h), h.features.length ? h : null;\n }\n getClusterExpansionZoom(e) {\n let t = this._getOriginZoom(e) - 1;\n for (; t <= this.options.maxZoom;) {\n const r = this.getChildren(e);\n if (t++, 1 !== r.length) break;\n e = r[0].properties.cluster_id;\n }\n return t;\n }\n _appendLeaves(e, t, r, o, i) {\n const n = this.getChildren(t);\n for (const t of n) {\n const n = t.properties;\n if (n && n.cluster ? i + n.point_count <= o ? i += n.point_count : i = this._appendLeaves(e, n.cluster_id, r, o, i) : i < o ? i++ : e.push(t), e.length === r) break;\n }\n return i;\n }\n _createTree(t) {\n const r = new e.KDBush(t.length / this.stride | 0, this.options.nodeSize, Float32Array);\n for (let e = 0; e < t.length; e += this.stride) r.add(t[e], t[e + 1]);\n return r.finish(), r.data = t, r;\n }\n _addTileFeatures(e, t, r, o, i, n) {\n for (const s of e) {\n const e = s * this.stride,\n a = t[e + L] > 1;\n let l, u, h;\n if (a) l = F(t, e, this.clusterProps), u = t[e], h = t[e + 1];else {\n const r = this.points[t[e + C]];\n l = r.properties;\n const [o, i] = r.geometry.coordinates;\n u = N(o), h = Z(i);\n }\n const c = {\n type: 1,\n geometry: [[Math.round(this.options.extent * (u * i - r)), Math.round(this.options.extent * (h * i - o))]],\n tags: l\n };\n let f;\n f = a || this.options.generateId ? t[e + C] : this.points[t[e + C]].id, void 0 !== f && (c.id = f), n.features.push(c);\n }\n }\n _limitZoom(e) {\n return Math.max(this.options.minZoom, Math.min(Math.floor(+e), this.options.maxZoom + 1));\n }\n _cluster(e, t) {\n const {\n radius: r,\n extent: o,\n reduce: i,\n minPoints: n\n } = this.options,\n s = r / (o * Math.pow(2, t)),\n a = e.data,\n l = [],\n u = this.stride;\n for (let r = 0; r < a.length; r += u) {\n if (a[r + 2] <= t) continue;\n a[r + 2] = t;\n const o = a[r],\n h = a[r + 1],\n c = e.within(a[r], a[r + 1], s),\n f = a[r + L];\n let p = f;\n for (const e of c) {\n const r = e * u;\n a[r + 2] > t && (p += a[r + L]);\n }\n if (p > f && p >= n) {\n let e,\n n = o * f,\n s = h * f,\n g = -1;\n const d = ((r / u | 0) << 5) + (t + 1) + this.points.length;\n for (const o of c) {\n const l = o * u;\n if (a[l + 2] <= t) continue;\n a[l + 2] = t;\n const h = a[l + L];\n n += a[l] * h, s += a[l + 1] * h, a[l + 4] = d, i && (e || (e = this._map(a, r, !0), g = this.clusterProps.length, this.clusterProps.push(e)), i(e, this._map(a, l)));\n }\n a[r + 4] = d, l.push(n / p, s / p, 1 / 0, d, -1, p), i && l.push(g);\n } else {\n for (let e = 0; e < u; e++) l.push(a[r + e]);\n if (p > 1) for (const e of c) {\n const r = e * u;\n if (!(a[r + 2] <= t)) {\n a[r + 2] = t;\n for (let e = 0; e < u; e++) l.push(a[r + e]);\n }\n }\n }\n }\n return l;\n }\n _getOriginId(e) {\n return e - this.points.length >> 5;\n }\n _getOriginZoom(e) {\n return (e - this.points.length) % 32;\n }\n _map(e, t, r) {\n if (e[t + L] > 1) {\n const o = this.clusterProps[e[t + O]];\n return r ? Object.assign({}, o) : o;\n }\n const o = this.points[e[t + C]].properties,\n i = this.options.map(o);\n return r && i === o ? Object.assign({}, i) : i;\n }\n }\n function j(e, t, r) {\n return {\n type: \"Feature\",\n id: e[t + C],\n properties: F(e, t, r),\n geometry: {\n type: \"Point\",\n coordinates: [(o = e[t], 360 * (o - .5)), J(e[t + 1])]\n }\n };\n var o;\n }\n function F(e, t, r) {\n const o = e[t + L],\n i = o >= 1e4 ? `${Math.round(o / 1e3)}k` : o >= 1e3 ? Math.round(o / 100) / 10 + \"k\" : o,\n n = e[t + O],\n s = -1 === n ? {} : Object.assign({}, r[n]);\n return Object.assign(s, {\n cluster: !0,\n cluster_id: e[t + C],\n point_count: o,\n point_count_abbreviated: i\n });\n }\n function N(e) {\n return e / 360 + .5;\n }\n function Z(e) {\n const t = Math.sin(e * Math.PI / 180),\n r = .5 - .25 * Math.log((1 + t) / (1 - t)) / Math.PI;\n return r < 0 ? 0 : r > 1 ? 1 : r;\n }\n function J(e) {\n const t = (180 - 360 * e) * Math.PI / 180;\n return 360 * Math.atan(Math.exp(t)) / Math.PI - 90;\n }\n function z(e, t, r, o) {\n for (var i, n = o, s = r - t >> 1, a = r - t, l = e[t], u = e[t + 1], h = e[r], c = e[r + 1], f = t + 3; f < r; f += 3) {\n var p = G(e[f], e[f + 1], l, u, h, c);\n if (p > n) i = f, n = p;else if (p === n) {\n var g = Math.abs(f - s);\n g < a && (i = f, a = g);\n }\n }\n n > o && (i - t > 3 && z(e, t, i, o), e[i + 2] = n, r - i > 3 && z(e, i, r, o));\n }\n function G(e, t, r, o, i, n) {\n var s = i - r,\n a = n - o;\n if (0 !== s || 0 !== a) {\n var l = ((e - r) * s + (t - o) * a) / (s * s + a * a);\n l > 1 ? (r = i, o = n) : l > 0 && (r += s * l, o += a * l);\n }\n return (s = e - r) * s + (a = t - o) * a;\n }\n function W(e, t, r, o) {\n var i = {\n id: void 0 === e ? null : e,\n type: t,\n geometry: r,\n tags: o,\n minX: 1 / 0,\n minY: 1 / 0,\n maxX: -1 / 0,\n maxY: -1 / 0\n };\n return function (e) {\n var t = e.geometry,\n r = e.type;\n if (\"Point\" === r || \"MultiPoint\" === r || \"LineString\" === r) Y(e, t);else if (\"Polygon\" === r || \"MultiLineString\" === r) for (var o = 0; o < t.length; o++) Y(e, t[o]);else if (\"MultiPolygon\" === r) for (o = 0; o < t.length; o++) for (var i = 0; i < t[o].length; i++) Y(e, t[o][i]);\n }(i), i;\n }\n function Y(e, t) {\n for (var r = 0; r < t.length; r += 3) e.minX = Math.min(e.minX, t[r]), e.minY = Math.min(e.minY, t[r + 1]), e.maxX = Math.max(e.maxX, t[r]), e.maxY = Math.max(e.maxY, t[r + 1]);\n }\n function X(e, t, r, o) {\n if (t.geometry) {\n var i = t.geometry.coordinates,\n n = t.geometry.type,\n s = Math.pow(r.tolerance / ((1 << r.maxZoom) * r.extent), 2),\n a = [],\n l = t.id;\n if (r.promoteId ? l = t.properties[r.promoteId] : r.generateId && (l = o || 0), \"Point\" === n) V(i, a);else if (\"MultiPoint\" === n) for (var u = 0; u < i.length; u++) V(i[u], a);else if (\"LineString\" === n) D(i, a, s, !1);else if (\"MultiLineString\" === n) {\n if (r.lineMetrics) {\n for (u = 0; u < i.length; u++) D(i[u], a = [], s, !1), e.push(W(l, \"LineString\", a, t.properties));\n return;\n }\n $(i, a, s, !1);\n } else if (\"Polygon\" === n) $(i, a, s, !0);else {\n if (\"MultiPolygon\" !== n) {\n if (\"GeometryCollection\" === n) {\n for (u = 0; u < t.geometry.geometries.length; u++) X(e, {\n id: l,\n geometry: t.geometry.geometries[u],\n properties: t.properties\n }, r, o);\n return;\n }\n throw new Error(\"Input data is not a valid GeoJSON object.\");\n }\n for (u = 0; u < i.length; u++) {\n var h = [];\n $(i[u], h, s, !0), a.push(h);\n }\n }\n e.push(W(l, n, a, t.properties));\n }\n }\n function V(e, t) {\n t.push(A(e[0])), t.push(B(e[1])), t.push(0);\n }\n function D(e, t, r, o) {\n for (var i, n, s = 0, a = 0; a < e.length; a++) {\n var l = A(e[a][0]),\n u = B(e[a][1]);\n t.push(l), t.push(u), t.push(0), a > 0 && (s += o ? (i * u - l * n) / 2 : Math.sqrt(Math.pow(l - i, 2) + Math.pow(u - n, 2))), i = l, n = u;\n }\n var h = t.length - 3;\n t[2] = 1, z(t, 0, h, r), t[h + 2] = 1, t.size = Math.abs(s), t.start = 0, t.end = t.size;\n }\n function $(e, t, r, o) {\n for (var i = 0; i < e.length; i++) {\n var n = [];\n D(e[i], n, r, o), t.push(n);\n }\n }\n function A(e) {\n return e / 360 + .5;\n }\n function B(e) {\n var t = Math.sin(e * Math.PI / 180),\n r = .5 - .25 * Math.log((1 + t) / (1 - t)) / Math.PI;\n return r < 0 ? 0 : r > 1 ? 1 : r;\n }\n function R(e, t, r, o, i, n, s, a) {\n if (o /= t, n >= (r /= t) && s < o) return e;\n if (s < r || n >= o) return null;\n for (var l = [], u = 0; u < e.length; u++) {\n var h = e[u],\n c = h.geometry,\n f = h.type,\n p = 0 === i ? h.minX : h.minY,\n g = 0 === i ? h.maxX : h.maxY;\n if (p >= r && g < o) l.push(h);else if (!(g < r || p >= o)) {\n var d = [];\n if (\"Point\" === f || \"MultiPoint\" === f) q(c, d, r, o, i);else if (\"LineString\" === f) Q(c, d, r, o, i, !1, a.lineMetrics);else if (\"MultiLineString\" === f) K(c, d, r, o, i, !1);else if (\"Polygon\" === f) K(c, d, r, o, i, !0);else if (\"MultiPolygon\" === f) for (var m = 0; m < c.length; m++) {\n var y = [];\n K(c[m], y, r, o, i, !0), y.length && d.push(y);\n }\n if (d.length) {\n if (a.lineMetrics && \"LineString\" === f) {\n for (m = 0; m < d.length; m++) l.push(W(h.id, f, d[m], h.tags));\n continue;\n }\n \"LineString\" !== f && \"MultiLineString\" !== f || (1 === d.length ? (f = \"LineString\", d = d[0]) : f = \"MultiLineString\"), \"Point\" !== f && \"MultiPoint\" !== f || (f = 3 === d.length ? \"Point\" : \"MultiPoint\"), l.push(W(h.id, f, d, h.tags));\n }\n }\n }\n return l.length ? l : null;\n }\n function q(e, t, r, o, i) {\n for (var n = 0; n < e.length; n += 3) {\n var s = e[n + i];\n s >= r && s <= o && (t.push(e[n]), t.push(e[n + 1]), t.push(e[n + 2]));\n }\n }\n function Q(e, t, r, o, i, n, s) {\n for (var a, l, u = U(e), h = 0 === i ? ee : te, c = e.start, f = 0; f < e.length - 3; f += 3) {\n var p = e[f],\n g = e[f + 1],\n d = e[f + 2],\n m = e[f + 3],\n y = e[f + 4],\n v = 0 === i ? p : g,\n x = 0 === i ? m : y,\n w = !1;\n s && (a = Math.sqrt(Math.pow(p - m, 2) + Math.pow(g - y, 2))), v < r ? x > r && (l = h(u, p, g, m, y, r), s && (u.start = c + a * l)) : v > o ? x < o && (l = h(u, p, g, m, y, o), s && (u.start = c + a * l)) : H(u, p, g, d), x < r && v >= r && (l = h(u, p, g, m, y, r), w = !0), x > o && v <= o && (l = h(u, p, g, m, y, o), w = !0), !n && w && (s && (u.end = c + a * l), t.push(u), u = U(e)), s && (c += a);\n }\n var S = e.length - 3;\n p = e[S], g = e[S + 1], d = e[S + 2], (v = 0 === i ? p : g) >= r && v <= o && H(u, p, g, d), S = u.length - 3, n && S >= 3 && (u[S] !== u[0] || u[S + 1] !== u[1]) && H(u, u[0], u[1], u[2]), u.length && t.push(u);\n }\n function U(e) {\n var t = [];\n return t.size = e.size, t.start = e.start, t.end = e.end, t;\n }\n function K(e, t, r, o, i, n) {\n for (var s = 0; s < e.length; s++) Q(e[s], t, r, o, i, n, !1);\n }\n function H(e, t, r, o) {\n e.push(t), e.push(r), e.push(o);\n }\n function ee(e, t, r, o, i, n) {\n var s = (n - t) / (o - t);\n return e.push(n), e.push(r + (i - r) * s), e.push(1), s;\n }\n function te(e, t, r, o, i, n) {\n var s = (n - r) / (i - r);\n return e.push(t + (o - t) * s), e.push(n), e.push(1), s;\n }\n function re(e, t) {\n for (var r = [], o = 0; o < e.length; o++) {\n var i,\n n = e[o],\n s = n.type;\n if (\"Point\" === s || \"MultiPoint\" === s || \"LineString\" === s) i = oe(n.geometry, t);else if (\"MultiLineString\" === s || \"Polygon\" === s) {\n i = [];\n for (var a = 0; a < n.geometry.length; a++) i.push(oe(n.geometry[a], t));\n } else if (\"MultiPolygon\" === s) for (i = [], a = 0; a < n.geometry.length; a++) {\n for (var l = [], u = 0; u < n.geometry[a].length; u++) l.push(oe(n.geometry[a][u], t));\n i.push(l);\n }\n r.push(W(n.id, s, i, n.tags));\n }\n return r;\n }\n function oe(e, t) {\n var r = [];\n r.size = e.size, void 0 !== e.start && (r.start = e.start, r.end = e.end);\n for (var o = 0; o < e.length; o += 3) r.push(e[o] + t, e[o + 1], e[o + 2]);\n return r;\n }\n function ie(e, t) {\n if (e.transformed) return e;\n var r,\n o,\n i,\n n = 1 << e.z,\n s = e.x,\n a = e.y;\n for (r = 0; r < e.features.length; r++) {\n var l = e.features[r],\n u = l.geometry,\n h = l.type;\n if (l.geometry = [], 1 === h) for (o = 0; o < u.length; o += 2) l.geometry.push(ne(u[o], u[o + 1], t, n, s, a));else for (o = 0; o < u.length; o++) {\n var c = [];\n for (i = 0; i < u[o].length; i += 2) c.push(ne(u[o][i], u[o][i + 1], t, n, s, a));\n l.geometry.push(c);\n }\n }\n return e.transformed = !0, e;\n }\n function ne(e, t, r, o, i, n) {\n return [Math.round(r * (e * o - i)), Math.round(r * (t * o - n))];\n }\n function se(e, t, r, o, i) {\n for (var n = t === i.maxZoom ? 0 : i.tolerance / ((1 << t) * i.extent), s = {\n features: [],\n numPoints: 0,\n numSimplified: 0,\n numFeatures: 0,\n source: null,\n x: r,\n y: o,\n z: t,\n transformed: !1,\n minX: 2,\n minY: 1,\n maxX: -1,\n maxY: 0\n }, a = 0; a < e.length; a++) {\n s.numFeatures++, ae(s, e[a], n, i);\n var l = e[a].minX,\n u = e[a].minY,\n h = e[a].maxX,\n c = e[a].maxY;\n l < s.minX && (s.minX = l), u < s.minY && (s.minY = u), h > s.maxX && (s.maxX = h), c > s.maxY && (s.maxY = c);\n }\n return s;\n }\n function ae(e, t, r, o) {\n var i = t.geometry,\n n = t.type,\n s = [];\n if (\"Point\" === n || \"MultiPoint\" === n) for (var a = 0; a < i.length; a += 3) s.push(i[a]), s.push(i[a + 1]), e.numPoints++, e.numSimplified++;else if (\"LineString\" === n) le(s, i, e, r, !1, !1);else if (\"MultiLineString\" === n || \"Polygon\" === n) for (a = 0; a < i.length; a++) le(s, i[a], e, r, \"Polygon\" === n, 0 === a);else if (\"MultiPolygon\" === n) for (var l = 0; l < i.length; l++) {\n var u = i[l];\n for (a = 0; a < u.length; a++) le(s, u[a], e, r, !0, 0 === a);\n }\n if (s.length) {\n var h = t.tags || null;\n if (\"LineString\" === n && o.lineMetrics) {\n for (var c in h = {}, t.tags) h[c] = t.tags[c];\n h.mapbox_clip_start = i.start / i.size, h.mapbox_clip_end = i.end / i.size;\n }\n var f = {\n geometry: s,\n type: \"Polygon\" === n || \"MultiPolygon\" === n ? 3 : \"LineString\" === n || \"MultiLineString\" === n ? 2 : 1,\n tags: h\n };\n null !== t.id && (f.id = t.id), e.features.push(f);\n }\n }\n function le(e, t, r, o, i, n) {\n var s = o * o;\n if (o > 0 && t.size < (i ? s : o)) r.numPoints += t.length / 3;else {\n for (var a = [], l = 0; l < t.length; l += 3) (0 === o || t[l + 2] > s) && (r.numSimplified++, a.push(t[l]), a.push(t[l + 1])), r.numPoints++;\n i && function (e, t) {\n for (var r = 0, o = 0, i = e.length, n = i - 2; o < i; n = o, o += 2) r += (e[o] - e[n]) * (e[o + 1] + e[n + 1]);\n if (r > 0 === t) for (o = 0, i = e.length; o < i / 2; o += 2) {\n var s = e[o],\n a = e[o + 1];\n e[o] = e[i - 2 - o], e[o + 1] = e[i - 1 - o], e[i - 2 - o] = s, e[i - 1 - o] = a;\n }\n }(a, n), e.push(a);\n }\n }\n function ue(e, t) {\n var r = (t = this.options = function (e, t) {\n for (var r in t) e[r] = t[r];\n return e;\n }(Object.create(this.options), t)).debug;\n if (r && console.time(\"preprocess data\"), t.maxZoom < 0 || t.maxZoom > 24) throw new Error(\"maxZoom should be in the 0-24 range\");\n if (t.promoteId && t.generateId) throw new Error(\"promoteId and generateId cannot be used together.\");\n var o = function (e, t) {\n var r = [];\n if (\"FeatureCollection\" === e.type) for (var o = 0; o < e.features.length; o++) X(r, e.features[o], t, o);else X(r, \"Feature\" === e.type ? e : {\n geometry: e\n }, t);\n return r;\n }(e, t);\n this.tiles = {}, this.tileCoords = [], r && (console.timeEnd(\"preprocess data\"), console.log(\"index: maxZoom: %d, maxPoints: %d\", t.indexMaxZoom, t.indexMaxPoints), console.time(\"generate tiles\"), this.stats = {}, this.total = 0), o = function (e, t) {\n var r = t.buffer / t.extent,\n o = e,\n i = R(e, 1, -1 - r, r, 0, -1, 2, t),\n n = R(e, 1, 1 - r, 2 + r, 0, -1, 2, t);\n return (i || n) && (o = R(e, 1, -r, 1 + r, 0, -1, 2, t) || [], i && (o = re(i, 1).concat(o)), n && (o = o.concat(re(n, -1)))), o;\n }(o, t), o.length && this.splitTile(o, 0, 0, 0), r && (o.length && console.log(\"features: %d, points: %d\", this.tiles[0].numFeatures, this.tiles[0].numPoints), console.timeEnd(\"generate tiles\"), console.log(\"tiles generated:\", this.total, JSON.stringify(this.stats)));\n }\n function he(e, t, r) {\n return 32 * ((1 << e) * r + t) + e;\n }\n function ce(t, r) {\n const o = t.tileID.canonical;\n if (!this._geoJSONIndex) return r(null, null);\n const i = this._geoJSONIndex.getTile(o.z, o.x, o.y);\n if (!i) return r(null, null);\n const n = new class {\n constructor(t) {\n this.layers = {\n _geojsonTileLayer: this\n }, this.name = \"_geojsonTileLayer\", this.extent = e.EXTENT, this.length = t.length, this._features = t;\n }\n feature(t) {\n return new class {\n constructor(t) {\n this._feature = t, this.extent = e.EXTENT, this.type = t.type, this.properties = t.tags, \"id\" in t && !isNaN(t.id) && (this.id = parseInt(t.id, 10));\n }\n loadGeometry() {\n if (1 === this._feature.type) {\n const t = [];\n for (const r of this._feature.geometry) t.push([new e.Point(r[0], r[1])]);\n return t;\n }\n {\n const t = [];\n for (const r of this._feature.geometry) {\n const o = [];\n for (const t of r) o.push(new e.Point(t[0], t[1]));\n t.push(o);\n }\n return t;\n }\n }\n toGeoJSON(e, t, r) {\n return l.call(this, e, t, r);\n }\n }(this._features[t]);\n }\n }(i.features);\n let s = T(n);\n 0 === s.byteOffset && s.byteLength === s.buffer.byteLength || (s = new Uint8Array(s)), r(null, {\n vectorTile: n,\n rawData: s.buffer\n });\n }\n ue.prototype.options = {\n maxZoom: 14,\n indexMaxZoom: 5,\n indexMaxPoints: 1e5,\n tolerance: 3,\n extent: 4096,\n buffer: 64,\n lineMetrics: !1,\n promoteId: null,\n generateId: !1,\n debug: 0\n }, ue.prototype.splitTile = function (e, t, r, o, i, n, s) {\n for (var a = [e, t, r, o], l = this.options, u = l.debug; a.length;) {\n o = a.pop(), r = a.pop(), t = a.pop(), e = a.pop();\n var h = 1 << t,\n c = he(t, r, o),\n f = this.tiles[c];\n if (!f && (u > 1 && console.time(\"creation\"), f = this.tiles[c] = se(e, t, r, o, l), this.tileCoords.push({\n z: t,\n x: r,\n y: o\n }), u)) {\n u > 1 && (console.log(\"tile z%d-%d-%d (features: %d, points: %d, simplified: %d)\", t, r, o, f.numFeatures, f.numPoints, f.numSimplified), console.timeEnd(\"creation\"));\n var p = \"z\" + t;\n this.stats[p] = (this.stats[p] || 0) + 1, this.total++;\n }\n if (f.source = e, i) {\n if (t === l.maxZoom || t === i) continue;\n var g = 1 << i - t;\n if (r !== Math.floor(n / g) || o !== Math.floor(s / g)) continue;\n } else if (t === l.indexMaxZoom || f.numPoints <= l.indexMaxPoints) continue;\n if (f.source = null, 0 !== e.length) {\n u > 1 && console.time(\"clipping\");\n var d,\n m,\n y,\n v,\n x,\n w,\n S = .5 * l.buffer / l.extent,\n M = .5 - S,\n P = .5 + S,\n b = 1 + S;\n d = m = y = v = null, x = R(e, h, r - S, r + P, 0, f.minX, f.maxX, l), w = R(e, h, r + M, r + b, 0, f.minX, f.maxX, l), e = null, x && (d = R(x, h, o - S, o + P, 1, f.minY, f.maxY, l), m = R(x, h, o + M, o + b, 1, f.minY, f.maxY, l), x = null), w && (y = R(w, h, o - S, o + P, 1, f.minY, f.maxY, l), v = R(w, h, o + M, o + b, 1, f.minY, f.maxY, l), w = null), u > 1 && console.timeEnd(\"clipping\"), a.push(d || [], t + 1, 2 * r, 2 * o), a.push(m || [], t + 1, 2 * r, 2 * o + 1), a.push(y || [], t + 1, 2 * r + 1, 2 * o), a.push(v || [], t + 1, 2 * r + 1, 2 * o + 1);\n }\n }\n }, ue.prototype.getTile = function (e, t, r) {\n var o = this.options,\n i = o.extent,\n n = o.debug;\n if (e < 0 || e > 24) return null;\n var s = 1 << e,\n a = he(e, t = (t % s + s) % s, r);\n if (this.tiles[a]) return ie(this.tiles[a], i);\n n > 1 && console.log(\"drilling down to z%d-%d-%d\", e, t, r);\n for (var l, u = e, h = t, c = r; !l && u > 0;) u--, h = Math.floor(h / 2), c = Math.floor(c / 2), l = this.tiles[he(u, h, c)];\n return l && l.source ? (n > 1 && console.log(\"found parent tile z%d-%d-%d\", u, h, c), n > 1 && console.time(\"drilling down\"), this.splitTile(l.source, u, h, c, e, t, r), n > 1 && console.timeEnd(\"drilling down\"), this.tiles[a] ? ie(this.tiles[a], i) : null) : null;\n };\n class fe extends e.VectorTileWorkerSource {\n constructor(e, t, r, o, i) {\n super(e, t, r, o, ce), i && (this.loadGeoJSON = i);\n }\n loadData(t, r) {\n const o = t && t.request,\n i = o && o.collectResourceTiming;\n this.loadGeoJSON(t, (n, s) => {\n if (n || !s) return r(n);\n if (\"object\" != typeof s) return r(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));\n {\n a(s, !0);\n try {\n if (t.filter) {\n const r = e.createExpression(t.filter, {\n type: \"boolean\",\n \"property-type\": \"data-driven\",\n overridable: !1,\n transition: !1\n });\n if (\"error\" === r.result) throw new Error(r.value.map(e => `${e.key}: ${e.message}`).join(\", \"));\n const o = s.features.filter(e => r.value.evaluate({\n zoom: 0\n }, e));\n s = {\n type: \"FeatureCollection\",\n features: o\n };\n }\n this._geoJSONIndex = t.cluster ? new E(function ({\n superclusterOptions: t,\n clusterProperties: r\n }) {\n if (!r || !t) return t;\n const o = {},\n i = {},\n n = {\n accumulated: null,\n zoom: 0\n },\n s = {\n properties: null\n },\n a = Object.keys(r);\n for (const t of a) {\n const [n, s] = r[t],\n a = e.createExpression(s),\n l = e.createExpression(\"string\" == typeof n ? [n, [\"accumulated\"], [\"get\", t]] : n);\n o[t] = a.value, i[t] = l.value;\n }\n return t.map = e => {\n s.properties = e;\n const t = {};\n for (const e of a) t[e] = o[e].evaluate(n, s);\n return t;\n }, t.reduce = (e, t) => {\n s.properties = t;\n for (const t of a) n.accumulated = e[t], e[t] = i[t].evaluate(n, s);\n }, t;\n }(t)).load(s.features) : function (e, t) {\n return new ue(e, t);\n }(s, t.geojsonVtOptions);\n } catch (n) {\n return r(n);\n }\n this.loaded = {};\n const l = {};\n if (i) {\n const r = e.getPerformanceMeasurement(o);\n r && (l.resourceTiming = {}, l.resourceTiming[t.source] = JSON.parse(JSON.stringify(r)));\n }\n r(null, l);\n }\n });\n }\n reloadTile(e, t) {\n const r = this.loaded;\n return r && r[e.uid] ? super.reloadTile(e, t) : this.loadTile(e, t);\n }\n loadGeoJSON(t, r) {\n if (t.request) e.getJSON(t.request, r);else {\n if (\"string\" != typeof t.data) return r(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));\n try {\n return r(null, JSON.parse(t.data));\n } catch (e) {\n return r(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));\n }\n }\n }\n getClusterExpansionZoom(e, t) {\n try {\n t(null, this._geoJSONIndex.getClusterExpansionZoom(e.clusterId));\n } catch (e) {\n t(e);\n }\n }\n getClusterChildren(e, t) {\n try {\n t(null, this._geoJSONIndex.getChildren(e.clusterId));\n } catch (e) {\n t(e);\n }\n }\n getClusterLeaves(e, t) {\n try {\n t(null, this._geoJSONIndex.getLeaves(e.clusterId, e.limit, e.offset));\n } catch (e) {\n t(e);\n }\n }\n }\n class pe {\n constructor(t) {\n this.self = t, this.actor = new e.Actor(t, this), this.layerIndexes = {}, this.availableImages = {}, this.isSpriteLoaded = {}, this.projections = {}, this.defaultProjection = e.getProjection({\n name: \"mercator\"\n }), this.workerSourceTypes = {\n vector: e.VectorTileWorkerSource,\n geojson: fe\n }, this.workerSources = {}, this.demWorkerSources = {}, this.self.registerWorkerSource = (e, t) => {\n if (this.workerSourceTypes[e]) throw new Error(`Worker source with name \"${e}\" already registered.`);\n this.workerSourceTypes[e] = t;\n }, this.self.registerRTLTextPlugin = t => {\n if (e.plugin.isParsed()) throw new Error(\"RTL text plugin already registered.\");\n e.plugin.applyArabicShaping = t.applyArabicShaping, e.plugin.processBidirectionalText = t.processBidirectionalText, e.plugin.processStyledBidirectionalText = t.processStyledBidirectionalText;\n };\n }\n clearCaches(e, t, r) {\n delete this.layerIndexes[e], delete this.availableImages[e], delete this.workerSources[e], delete this.demWorkerSources[e], r();\n }\n checkIfReady(e, t, r) {\n r();\n }\n setReferrer(e, t) {\n this.referrer = t;\n }\n spriteLoaded(t, r) {\n this.isSpriteLoaded[t] = r;\n for (const o in this.workerSources[t]) {\n const i = this.workerSources[t][o];\n for (const t in i) i[t] instanceof e.VectorTileWorkerSource && (i[t].isSpriteLoaded = r, i[t].fire(new e.Event(\"isSpriteLoaded\")));\n }\n }\n setImages(e, t, r) {\n this.availableImages[e] = t;\n for (const r in this.workerSources[e]) {\n const o = this.workerSources[e][r];\n for (const e in o) o[e].availableImages = t;\n }\n r();\n }\n enableTerrain(e, t, r) {\n this.terrain = t, r();\n }\n setProjection(t, r) {\n this.projections[t] = e.getProjection(r);\n }\n setLayers(e, t, r) {\n this.getLayerIndex(e).replace(t), r();\n }\n updateLayers(e, t, r) {\n this.getLayerIndex(e).update(t.layers, t.removedIds), r();\n }\n loadTile(t, r, o) {\n const i = this.enableTerrain ? e.extend({\n enableTerrain: this.terrain\n }, r) : r;\n i.projection = this.projections[t] || this.defaultProjection, this.getWorkerSource(t, r.type, r.source).loadTile(i, o);\n }\n loadDEMTile(t, r, o) {\n const i = this.enableTerrain ? e.extend({\n buildQuadTree: this.terrain\n }, r) : r;\n this.getDEMWorkerSource(t, r.source).loadTile(i, o);\n }\n reloadTile(t, r, o) {\n const i = this.enableTerrain ? e.extend({\n enableTerrain: this.terrain\n }, r) : r;\n i.projection = this.projections[t] || this.defaultProjection, this.getWorkerSource(t, r.type, r.source).reloadTile(i, o);\n }\n abortTile(e, t, r) {\n this.getWorkerSource(e, t.type, t.source).abortTile(t, r);\n }\n removeTile(e, t, r) {\n this.getWorkerSource(e, t.type, t.source).removeTile(t, r);\n }\n removeSource(e, t, r) {\n if (!this.workerSources[e] || !this.workerSources[e][t.type] || !this.workerSources[e][t.type][t.source]) return;\n const o = this.workerSources[e][t.type][t.source];\n delete this.workerSources[e][t.type][t.source], void 0 !== o.removeSource ? o.removeSource(t, r) : r();\n }\n loadWorkerSource(e, t, r) {\n try {\n this.self.importScripts(t.url), r();\n } catch (e) {\n r(e.toString());\n }\n }\n syncRTLPluginState(t, r, o) {\n try {\n e.plugin.setState(r);\n const t = e.plugin.getPluginURL();\n if (e.plugin.isLoaded() && !e.plugin.isParsed() && null != t) {\n this.self.importScripts(t);\n const r = e.plugin.isParsed();\n o(r ? void 0 : new Error(`RTL Text Plugin failed to import scripts from ${t}`), r);\n }\n } catch (e) {\n o(e.toString());\n }\n }\n getAvailableImages(e) {\n let t = this.availableImages[e];\n return t || (t = []), t;\n }\n getLayerIndex(e) {\n let t = this.layerIndexes[e];\n return t || (t = this.layerIndexes[e] = new o()), t;\n }\n getWorkerSource(e, t, r) {\n if (this.workerSources[e] || (this.workerSources[e] = {}), this.workerSources[e][t] || (this.workerSources[e][t] = {}), !this.workerSources[e][t][r]) {\n const o = {\n send: (t, r, o, i, n, s) => {\n this.actor.send(t, r, o, e, n, s);\n },\n scheduler: this.actor.scheduler\n };\n this.workerSources[e][t][r] = new this.workerSourceTypes[t](o, this.getLayerIndex(e), this.getAvailableImages(e), this.isSpriteLoaded[e]);\n }\n return this.workerSources[e][t][r];\n }\n getDEMWorkerSource(e, t) {\n return this.demWorkerSources[e] || (this.demWorkerSources[e] = {}), this.demWorkerSources[e][t] || (this.demWorkerSources[e][t] = new i()), this.demWorkerSources[e][t];\n }\n enforceCacheSizeLimit(t, r) {\n e.enforceCacheSizeLimit(r);\n }\n getWorkerPerformanceMetrics(e, t, r) {\n r(void 0, void 0);\n }\n }\n return \"undefined\" != typeof WorkerGlobalScope && \"undefined\" != typeof self && self instanceof WorkerGlobalScope && (self.worker = new pe(self)), pe;\n });\n define([\"./shared\"], function (e) {\n \"use strict\";\n\n function t(e, i) {\n if (Array.isArray(e)) {\n if (!Array.isArray(i) || e.length !== i.length) return !1;\n for (let o = 0; o < e.length; o++) if (!t(e[o], i[o])) return !1;\n return !0;\n }\n if (\"object\" == typeof e && null !== e && null !== i) {\n if (\"object\" != typeof i) return !1;\n if (Object.keys(e).length !== Object.keys(i).length) return !1;\n for (const o in e) if (!t(e[o], i[o])) return !1;\n return !0;\n }\n return e === i;\n }\n var i = o;\n function o(e) {\n return !function (e) {\n return \"undefined\" == typeof window || \"undefined\" == typeof document ? \"not a browser\" : Array.prototype && Array.prototype.every && Array.prototype.filter && Array.prototype.forEach && Array.prototype.indexOf && Array.prototype.lastIndexOf && Array.prototype.map && Array.prototype.some && Array.prototype.reduce && Array.prototype.reduceRight && Array.isArray ? Function.prototype && Function.prototype.bind ? Object.keys && Object.create && Object.getPrototypeOf && Object.getOwnPropertyNames && Object.isSealed && Object.isFrozen && Object.isExtensible && Object.getOwnPropertyDescriptor && Object.defineProperty && Object.defineProperties && Object.seal && Object.freeze && Object.preventExtensions ? \"JSON\" in window && \"parse\" in JSON && \"stringify\" in JSON ? function () {\n if (!(\"Worker\" in window && \"Blob\" in window && \"URL\" in window)) return !1;\n var e,\n t,\n i = new Blob([\"\"], {\n type: \"text/javascript\"\n }),\n o = URL.createObjectURL(i);\n try {\n t = new Worker(o), e = !0;\n } catch (t) {\n e = !1;\n }\n return t && t.terminate(), URL.revokeObjectURL(o), e;\n }() ? \"Uint8ClampedArray\" in window ? ArrayBuffer.isView ? function () {\n var e = document.createElement(\"canvas\");\n e.width = e.height = 1;\n var t = e.getContext(\"2d\");\n if (!t) return !1;\n var i = t.getImageData(0, 0, 1, 1);\n return i && i.width === e.width;\n }() ? (void 0 === r[t = e && e.failIfMajorPerformanceCaveat] && (r[t] = function (e) {\n var t,\n i = function (e) {\n var t = document.createElement(\"canvas\"),\n i = Object.create(o.webGLContextAttributes);\n return i.failIfMajorPerformanceCaveat = e, t.getContext(\"webgl\", i) || t.getContext(\"experimental-webgl\", i);\n }(e);\n if (!i) return !1;\n try {\n t = i.createShader(i.VERTEX_SHADER);\n } catch (e) {\n return !1;\n }\n return !(!t || i.isContextLost()) && (i.shaderSource(t, \"void main() {}\"), i.compileShader(t), !0 === i.getShaderParameter(t, i.COMPILE_STATUS));\n }(t)), r[t] ? document.documentMode ? \"insufficient ECMAScript 6 support\" : void 0 : \"insufficient WebGL support\") : \"insufficient Canvas/getImageData support\" : \"insufficient ArrayBuffer support\" : \"insufficient Uint8ClampedArray support\" : \"insufficient worker support\" : \"insufficient JSON support\" : \"insufficient Object support\" : \"insufficient Function support\" : \"insufficent Array support\";\n var t;\n }(e);\n }\n var r = {};\n function n(t, i, o) {\n const r = e.window.document.createElement(t);\n return void 0 !== i && (r.className = i), o && o.appendChild(r), r;\n }\n function s(t, i, o) {\n const r = e.window.document.createElementNS(\"http://www.w3.org/2000/svg\", t);\n for (const e of Object.keys(i)) r.setAttributeNS(null, e, i[e]);\n return o && o.appendChild(r), r;\n }\n o.webGLContextAttributes = {\n antialias: !1,\n alpha: !0,\n stencil: !0,\n depth: !0\n };\n const a = e.window.document && e.window.document.documentElement.style,\n l = a && void 0 !== a.userSelect ? \"userSelect\" : \"WebkitUserSelect\";\n let c;\n function h() {\n a && l && (c = a[l], a[l] = \"none\");\n }\n function u() {\n a && l && (a[l] = c);\n }\n function _(t) {\n t.preventDefault(), t.stopPropagation(), e.window.removeEventListener(\"click\", _, !0);\n }\n function d() {\n e.window.addEventListener(\"click\", _, !0), e.window.setTimeout(() => {\n e.window.removeEventListener(\"click\", _, !0);\n }, 0);\n }\n function p(e, t) {\n const i = e.getBoundingClientRect();\n return g(e, i, t);\n }\n function m(e, t) {\n const i = e.getBoundingClientRect(),\n o = [];\n for (let r = 0; r < t.length; r++) o.push(g(e, i, t[r]));\n return o;\n }\n function f(t) {\n return void 0 !== e.window.InstallTrigger && 2 === t.button && t.ctrlKey && e.window.navigator.platform.toUpperCase().indexOf(\"MAC\") >= 0 ? 0 : t.button;\n }\n function g(t, i, o) {\n const r = t.offsetWidth === i.width ? 1 : t.offsetWidth / i.width;\n return new e.Point((o.clientX - i.left) * r, (o.clientY - i.top) * r);\n }\n function v(e, t) {\n var i = t[0],\n o = t[1],\n r = t[2],\n n = t[3],\n s = i * n - r * o;\n return s ? (e[0] = n * (s = 1 / s), e[1] = -o * s, e[2] = -r * s, e[3] = i * s, e) : null;\n }\n function x(e) {\n const {\n userImage: t\n } = e;\n return !!(t && t.render && t.render()) && (e.data.replace(new Uint8Array(t.data.buffer)), !0);\n }\n class y extends e.Evented {\n constructor() {\n super(), this.images = {}, this.updatedImages = {}, this.callbackDispatchedThisFrame = {}, this.loaded = !1, this.requestors = [], this.patterns = {}, this.atlasImage = new e.RGBAImage({\n width: 1,\n height: 1\n }), this.dirty = !0;\n }\n isLoaded() {\n return this.loaded;\n }\n setLoaded(e) {\n if (this.loaded !== e && (this.loaded = e, e)) {\n for (const {\n ids: e,\n callback: t\n } of this.requestors) this._notify(e, t);\n this.requestors = [];\n }\n }\n hasImage(e) {\n return !!this.getImage(e);\n }\n getImage(e) {\n return this.images[e];\n }\n addImage(e, t) {\n this._validate(e, t) && (this.images[e] = t);\n }\n _validate(t, i) {\n let o = !0;\n return this._validateStretch(i.stretchX, i.data && i.data.width) || (this.fire(new e.ErrorEvent(new Error(`Image \"${t}\" has invalid \"stretchX\" value`))), o = !1), this._validateStretch(i.stretchY, i.data && i.data.height) || (this.fire(new e.ErrorEvent(new Error(`Image \"${t}\" has invalid \"stretchY\" value`))), o = !1), this._validateContent(i.content, i) || (this.fire(new e.ErrorEvent(new Error(`Image \"${t}\" has invalid \"content\" value`))), o = !1), o;\n }\n _validateStretch(e, t) {\n if (!e) return !0;\n let i = 0;\n for (const o of e) {\n if (o[0] < i || o[1] < o[0] || t < o[1]) return !1;\n i = o[1];\n }\n return !0;\n }\n _validateContent(e, t) {\n return !(e && (4 !== e.length || e[0] < 0 || t.data.width < e[0] || e[1] < 0 || t.data.height < e[1] || e[2] < 0 || t.data.width < e[2] || e[3] < 0 || t.data.height < e[3] || e[2] < e[0] || e[3] < e[1]));\n }\n updateImage(e, t) {\n t.version = this.images[e].version + 1, this.images[e] = t, this.updatedImages[e] = !0;\n }\n removeImage(e) {\n const t = this.images[e];\n delete this.images[e], delete this.patterns[e], t.userImage && t.userImage.onRemove && t.userImage.onRemove();\n }\n listImages() {\n return Object.keys(this.images);\n }\n getImages(e, t) {\n let i = !0;\n if (!this.isLoaded()) for (const t of e) this.images[t] || (i = !1);\n this.isLoaded() || i ? this._notify(e, t) : this.requestors.push({\n ids: e,\n callback: t\n });\n }\n _notify(t, i) {\n const o = {};\n for (const i of t) {\n this.images[i] || this.fire(new e.Event(\"styleimagemissing\", {\n id: i\n }));\n const t = this.images[i];\n t ? o[i] = {\n data: t.data.clone(),\n pixelRatio: t.pixelRatio,\n sdf: t.sdf,\n version: t.version,\n stretchX: t.stretchX,\n stretchY: t.stretchY,\n content: t.content,\n hasRenderCallback: Boolean(t.userImage && t.userImage.render)\n } : e.warnOnce(`Image \"${i}\" could not be loaded. Please make sure you have added the image with map.addImage() or a \"sprite\" property in your style. You can provide missing images by listening for the \"styleimagemissing\" map event.`);\n }\n i(null, o);\n }\n getPixelSize() {\n const {\n width: e,\n height: t\n } = this.atlasImage;\n return {\n width: e,\n height: t\n };\n }\n getPattern(t) {\n const i = this.patterns[t],\n o = this.getImage(t);\n if (!o) return null;\n if (i && i.position.version === o.version) return i.position;\n if (i) i.position.version = o.version;else {\n const i = {\n w: o.data.width + 2,\n h: o.data.height + 2,\n x: 0,\n y: 0\n },\n r = new e.ImagePosition(i, o);\n this.patterns[t] = {\n bin: i,\n position: r\n };\n }\n return this._updatePatternAtlas(), this.patterns[t].position;\n }\n bind(t) {\n const i = t.gl;\n this.atlasTexture ? this.dirty && (this.atlasTexture.update(this.atlasImage), this.dirty = !1) : this.atlasTexture = new e.Texture(t, this.atlasImage, i.RGBA), this.atlasTexture && this.atlasTexture.bind(i.LINEAR, i.CLAMP_TO_EDGE);\n }\n _updatePatternAtlas() {\n const t = [];\n for (const e in this.patterns) t.push(this.patterns[e].bin);\n const {\n w: i,\n h: o\n } = e.potpack(t),\n r = this.atlasImage;\n r.resize({\n width: i || 1,\n height: o || 1\n });\n for (const t in this.patterns) {\n const {\n bin: i\n } = this.patterns[t],\n o = i.x + 1,\n n = i.y + 1,\n s = this.images[t].data,\n a = s.width,\n l = s.height;\n e.RGBAImage.copy(s, r, {\n x: 0,\n y: 0\n }, {\n x: o,\n y: n\n }, {\n width: a,\n height: l\n }), e.RGBAImage.copy(s, r, {\n x: 0,\n y: l - 1\n }, {\n x: o,\n y: n - 1\n }, {\n width: a,\n height: 1\n }), e.RGBAImage.copy(s, r, {\n x: 0,\n y: 0\n }, {\n x: o,\n y: n + l\n }, {\n width: a,\n height: 1\n }), e.RGBAImage.copy(s, r, {\n x: a - 1,\n y: 0\n }, {\n x: o - 1,\n y: n\n }, {\n width: 1,\n height: l\n }), e.RGBAImage.copy(s, r, {\n x: 0,\n y: 0\n }, {\n x: o + a,\n y: n\n }, {\n width: 1,\n height: l\n });\n }\n this.dirty = !0;\n }\n beginFrame() {\n this.callbackDispatchedThisFrame = {};\n }\n dispatchRenderCallbacks(e) {\n for (const t of e) {\n if (this.callbackDispatchedThisFrame[t]) continue;\n this.callbackDispatchedThisFrame[t] = !0;\n const e = this.images[t];\n x(e) && this.updateImage(t, e);\n }\n }\n }\n const b = new e.Properties({\n anchor: new e.DataConstantProperty(e.spec.light.anchor),\n position: new class {\n constructor() {\n this.specification = e.spec.light.position;\n }\n possiblyEvaluate(t, i) {\n return function ([t, i, o]) {\n const r = e.degToRad(i + 90),\n n = e.degToRad(o);\n return {\n x: t * Math.cos(r) * Math.sin(n),\n y: t * Math.sin(r) * Math.sin(n),\n z: t * Math.cos(n),\n azimuthal: i,\n polar: o\n };\n }(t.expression.evaluate(i));\n }\n interpolate(t, i, o) {\n return {\n x: e.number(t.x, i.x, o),\n y: e.number(t.y, i.y, o),\n z: e.number(t.z, i.z, o),\n azimuthal: e.number(t.azimuthal, i.azimuthal, o),\n polar: e.number(t.polar, i.polar, o)\n };\n }\n }(),\n color: new e.DataConstantProperty(e.spec.light.color),\n intensity: new e.DataConstantProperty(e.spec.light.intensity)\n });\n class w extends e.Evented {\n constructor(t) {\n super(), this._transitionable = new e.Transitionable(b), this.setLight(t), this._transitioning = this._transitionable.untransitioned();\n }\n getLight() {\n return this._transitionable.serialize();\n }\n setLight(t, i = {}) {\n if (!this._validate(e.validateLight, t, i)) for (const i in t) {\n const o = t[i];\n e.endsWith(i, \"-transition\") ? this._transitionable.setTransition(i.slice(0, -11), o) : this._transitionable.setValue(i, o);\n }\n }\n updateTransitions(e) {\n this._transitioning = this._transitionable.transitioned(e, this._transitioning);\n }\n hasTransition() {\n return this._transitioning.hasTransition();\n }\n recalculate(e) {\n this.properties = this._transitioning.possiblyEvaluate(e);\n }\n _validate(t, i, o) {\n return (!o || !1 !== o.validate) && e.emitValidationErrors(this, t.call(e.validateStyle, e.extend({\n value: i,\n style: {\n glyphs: !0,\n sprite: !0\n },\n styleSpec: e.spec\n })));\n }\n }\n const T = new e.Properties({\n source: new e.DataConstantProperty(e.spec.terrain.source),\n exaggeration: new e.DataConstantProperty(e.spec.terrain.exaggeration)\n });\n let E = class extends e.Evented {\n constructor(t, i) {\n super(), this._transitionable = new e.Transitionable(T), this.set(t), this._transitioning = this._transitionable.untransitioned(), this.drapeRenderMode = i;\n }\n get() {\n return this._transitionable.serialize();\n }\n set(t) {\n for (const i in t) {\n const o = t[i];\n e.endsWith(i, \"-transition\") ? this._transitionable.setTransition(i.slice(0, -11), o) : this._transitionable.setValue(i, o);\n }\n }\n updateTransitions(e) {\n this._transitioning = this._transitionable.transitioned(e, this._transitioning);\n }\n hasTransition() {\n return this._transitioning.hasTransition();\n }\n recalculate(e) {\n this.properties = this._transitioning.possiblyEvaluate(e);\n }\n };\n function C(t, i, o, r) {\n const n = e.smoothstep(45, 65, o),\n [s, a] = M(t, r),\n l = e.length(i);\n let c = 1 - Math.min(1, Math.exp((l - s) / (a - s) * -6));\n return c *= c * c, c = Math.min(1, 1.00747 * c), c * n * t.alpha;\n }\n function M(e, t) {\n const i = .5 / Math.tan(.5 * t);\n return [e.range[0] + i, e.range[1] + i];\n }\n const I = new e.Properties({\n range: new e.DataConstantProperty(e.spec.fog.range),\n color: new e.DataConstantProperty(e.spec.fog.color),\n \"high-color\": new e.DataConstantProperty(e.spec.fog[\"high-color\"]),\n \"space-color\": new e.DataConstantProperty(e.spec.fog[\"space-color\"]),\n \"horizon-blend\": new e.DataConstantProperty(e.spec.fog[\"horizon-blend\"]),\n \"star-intensity\": new e.DataConstantProperty(e.spec.fog[\"star-intensity\"])\n });\n class P extends e.Evented {\n constructor(t, i) {\n super(), this._transitionable = new e.Transitionable(I), this.set(t), this._transitioning = this._transitionable.untransitioned(), this._transform = i;\n }\n get state() {\n const t = this._transform,\n i = \"globe\" === t.projection.name,\n o = e.globeToMercatorTransition(t.zoom),\n r = this.properties.get(\"range\"),\n n = [.5, 3];\n return {\n range: i ? [e.number(n[0], r[0], o), e.number(n[1], r[1], o)] : r,\n horizonBlend: this.properties.get(\"horizon-blend\"),\n alpha: this.properties.get(\"color\").a\n };\n }\n get() {\n return this._transitionable.serialize();\n }\n set(t, i = {}) {\n if (!this._validate(e.validateFog, t, i)) {\n for (const i of Object.keys(e.spec.fog)) t && void 0 === t[i] && (t[i] = e.spec.fog[i].default);\n for (const i in t) {\n const o = t[i];\n e.endsWith(i, \"-transition\") ? this._transitionable.setTransition(i.slice(0, -11), o) : this._transitionable.setValue(i, o);\n }\n }\n }\n getOpacity(t) {\n if (!this._transform.projection.supportsFog) return 0;\n const i = this.properties && this.properties.get(\"color\") || 1;\n return (\"globe\" === this._transform.projection.name ? 1 : e.smoothstep(45, 65, t)) * i.a;\n }\n getOpacityAtLatLng(t, i) {\n return this._transform.projection.supportsFog ? function (t, i, o) {\n const r = e.MercatorCoordinate.fromLngLat(i),\n n = o.elevation ? o.elevation.getAtPointOrZero(r) : 0,\n s = [r.x, r.y, n];\n return e.transformMat4(s, s, o.mercatorFogMatrix), C(t, s, o.pitch, o._fov);\n }(this.state, t, i) : 0;\n }\n getFovAdjustedRange(e) {\n return this._transform.projection.supportsFog ? M(this.state, e) : [0, 1];\n }\n updateTransitions(e) {\n this._transitioning = this._transitionable.transitioned(e, this._transitioning);\n }\n hasTransition() {\n return this._transitioning.hasTransition();\n }\n recalculate(e) {\n this.properties = this._transitioning.possiblyEvaluate(e);\n }\n _validate(t, i, o) {\n return (!o || !1 !== o.validate) && e.emitValidationErrors(this, t.call(e.validateStyle, e.extend({\n value: i,\n style: {\n glyphs: !0,\n sprite: !0\n },\n styleSpec: e.spec\n })));\n }\n }\n class S {\n constructor(t, i) {\n this.workerPool = t, this.actors = [], this.currentActor = 0, this.id = e.uniqueId();\n const o = this.workerPool.acquire(this.id);\n for (let e = 0; e < o.length; e++) {\n const t = new S.Actor(o[e], i, this.id);\n t.name = `Worker ${e}`, this.actors.push(t);\n }\n this.ready = !1, this.broadcast(\"checkIfReady\", null, () => {\n this.ready = !0;\n });\n }\n broadcast(t, i, o) {\n e.asyncAll(this.actors, (e, o) => {\n e.send(t, i, o);\n }, o = o || function () {});\n }\n getActor() {\n return this.currentActor = (this.currentActor + 1) % this.actors.length, this.actors[this.currentActor];\n }\n remove() {\n this.actors.forEach(e => {\n e.remove();\n }), this.actors = [], this.workerPool.release(this.id);\n }\n }\n function D(t, i, o) {\n return i * (e.EXTENT / (t.tileSize * Math.pow(2, o - t.tileID.overscaledZ)));\n }\n S.Actor = e.Actor;\n class L {\n constructor(e, t, i, o) {\n this.screenBounds = e, this.cameraPoint = t, this._screenRaycastCache = {}, this._cameraRaycastCache = {}, this.isAboveHorizon = i, this.screenGeometry = this.bufferedScreenGeometry(0), this.screenGeometryMercator = this._bufferedScreenMercator(0, o);\n }\n static createFromScreenPoints(t, i) {\n let o, r;\n if (t instanceof e.Point || \"number\" == typeof t[0]) {\n const n = e.Point.convert(t);\n o = [n], r = i.isPointAboveHorizon(n);\n } else {\n const n = e.Point.convert(t[0]),\n s = e.Point.convert(t[1]);\n o = [n, s], r = e.polygonizeBounds(n, s).every(e => i.isPointAboveHorizon(e));\n }\n return new L(o, i.getCameraPoint(), r, i);\n }\n isPointQuery() {\n return 1 === this.screenBounds.length;\n }\n bufferedScreenGeometry(t) {\n return e.polygonizeBounds(this.screenBounds[0], 1 === this.screenBounds.length ? this.screenBounds[0] : this.screenBounds[1], t);\n }\n bufferedCameraGeometry(t) {\n const i = this.screenBounds[0],\n o = 1 === this.screenBounds.length ? this.screenBounds[0].add(new e.Point(1, 1)) : this.screenBounds[1],\n r = e.polygonizeBounds(i, o, 0, !1);\n return this.cameraPoint.y > o.y && (this.cameraPoint.x > i.x && this.cameraPoint.x < o.x ? r.splice(3, 0, this.cameraPoint) : this.cameraPoint.x >= o.x ? r[2] = this.cameraPoint : this.cameraPoint.x <= i.x && (r[3] = this.cameraPoint)), e.bufferConvexPolygon(r, t);\n }\n bufferedCameraGeometryGlobe(t) {\n const i = this.screenBounds[0],\n o = 1 === this.screenBounds.length ? this.screenBounds[0].add(new e.Point(1, 1)) : this.screenBounds[1],\n r = e.polygonizeBounds(i, o, t),\n n = this.cameraPoint.clone();\n switch (3 * ((n.y > i.y) + (n.y > o.y)) + ((n.x > i.x) + (n.x > o.x))) {\n case 0:\n r[0] = n, r[4] = n.clone();\n break;\n case 1:\n r.splice(1, 0, n);\n break;\n case 2:\n r[1] = n;\n break;\n case 3:\n r.splice(4, 0, n);\n break;\n case 5:\n r.splice(2, 0, n);\n break;\n case 6:\n r[3] = n;\n break;\n case 7:\n r.splice(3, 0, n);\n break;\n case 8:\n r[2] = n;\n }\n return r;\n }\n containsTile(t, i, o, r = 0) {\n const n = t.queryPadding / i._pixelsPerMercatorPixel + 1,\n s = o ? this._bufferedCameraMercator(n, i) : this._bufferedScreenMercator(n, i);\n let a = t.tileID.wrap + (s.unwrapped ? r : 0);\n const l = s.polygon.map(i => e.getTilePoint(t.tileTransform, i, a));\n if (!e.polygonIntersectsBox(l, 0, 0, e.EXTENT, e.EXTENT)) return;\n a = t.tileID.wrap + (this.screenGeometryMercator.unwrapped ? r : 0);\n const c = this.screenGeometryMercator.polygon.map(i => e.getTileVec3(t.tileTransform, i, a)),\n h = c.map(t => new e.Point(t[0], t[1])),\n u = i.getFreeCameraOptions().position || new e.MercatorCoordinate(0, 0, 0),\n _ = e.getTileVec3(t.tileTransform, u, a),\n d = c.map(t => {\n const i = e.sub(t, t, _);\n return e.normalize(i, i), new e.Ray(_, i);\n }),\n p = D(t, 1, i.zoom) * i._pixelsPerMercatorPixel;\n return {\n queryGeometry: this,\n tilespaceGeometry: h,\n tilespaceRays: d,\n bufferedTilespaceGeometry: l,\n bufferedTilespaceBounds: (m = e.getBounds(l), m.min.x = e.clamp(m.min.x, 0, e.EXTENT), m.min.y = e.clamp(m.min.y, 0, e.EXTENT), m.max.x = e.clamp(m.max.x, 0, e.EXTENT), m.max.y = e.clamp(m.max.y, 0, e.EXTENT), m),\n tile: t,\n tileID: t.tileID,\n pixelToTileUnitsFactor: p\n };\n var m;\n }\n _bufferedScreenMercator(e, t) {\n const i = R(e);\n if (this._screenRaycastCache[i]) return this._screenRaycastCache[i];\n {\n let o;\n return o = \"globe\" === t.projection.name ? this._projectAndResample(this.bufferedScreenGeometry(e), t) : {\n polygon: this.bufferedScreenGeometry(e).map(e => t.pointCoordinate3D(e)),\n unwrapped: !0\n }, this._screenRaycastCache[i] = o, o;\n }\n }\n _bufferedCameraMercator(e, t) {\n const i = R(e);\n if (this._cameraRaycastCache[i]) return this._cameraRaycastCache[i];\n {\n let o;\n return o = \"globe\" === t.projection.name ? this._projectAndResample(this.bufferedCameraGeometryGlobe(e), t) : {\n polygon: this.bufferedCameraGeometry(e).map(e => t.pointCoordinate3D(e)),\n unwrapped: !0\n }, this._cameraRaycastCache[i] = o, o;\n }\n }\n _projectAndResample(t, i) {\n const o = function (t, i) {\n const o = e.multiply([], i.pixelMatrix, i.globeMatrix),\n r = [0, -e.GLOBE_RADIUS, 0, 1],\n n = [0, e.GLOBE_RADIUS, 0, 1],\n s = [0, 0, 0, 1];\n e.transformMat4$1(r, r, o), e.transformMat4$1(n, n, o), e.transformMat4$1(s, s, o);\n const a = new e.Point(r[0] / r[3], r[1] / r[3]),\n l = new e.Point(n[0] / n[3], n[1] / n[3]),\n c = e.polygonContainsPoint(t, a) && r[3] < s[3],\n h = e.polygonContainsPoint(t, l) && n[3] < s[3];\n if (!c && !h) return null;\n const u = function (e, t, i) {\n for (let o = 1; o < e.length; o++) {\n const r = z(t.pointCoordinate3D(e[o - 1]).x),\n n = z(t.pointCoordinate3D(e[o]).x);\n if (i < 0) {\n if (r < n) return {\n idx: o,\n t: -r / (n - 1 - r)\n };\n } else if (n < r) return {\n idx: o,\n t: (1 - r) / (n + 1 - r)\n };\n }\n return null;\n }(t, i, c ? -1 : 1);\n if (!u) return null;\n const {\n idx: _,\n t: d\n } = u;\n let p = _ > 1 ? A(t.slice(0, _), i) : [],\n m = _ < t.length ? A(t.slice(_), i) : [];\n p = p.map(t => new e.Point(z(t.x), t.y)), m = m.map(t => new e.Point(z(t.x), t.y));\n const f = [...p];\n 0 === f.length && f.push(m[m.length - 1]);\n const g = e.number(f[f.length - 1].y, (0 === m.length ? p[0] : m[0]).y, d);\n let v;\n return v = c ? [new e.Point(0, g), new e.Point(0, 0), new e.Point(1, 0), new e.Point(1, g)] : [new e.Point(1, g), new e.Point(1, 1), new e.Point(0, 1), new e.Point(0, g)], f.push(...v), 0 === m.length ? f.push(p[0]) : f.push(...m), {\n polygon: f.map(t => new e.MercatorCoordinate(t.x, t.y)),\n unwrapped: !1\n };\n }(t, i);\n if (o) return o;\n const r = function (t, i) {\n let o = !1,\n r = -1 / 0,\n n = 0;\n for (let e = 0; e < t.length - 1; e++) t[e].x > r && (r = t[e].x, n = e);\n for (let e = 0; e < t.length - 1; e++) {\n const i = (n + e) % (t.length - 1),\n r = t[i],\n s = t[i + 1];\n Math.abs(r.x - s.x) > .5 && (r.x < s.x ? (r.x += 1, 0 === i && (t[t.length - 1].x += 1)) : (s.x += 1, i + 1 === t.length - 1 && (t[0].x += 1)), o = !0);\n }\n const s = e.mercatorXfromLng(i.center.lng);\n return o && s < Math.abs(s - 1) && t.forEach(e => {\n e.x -= 1;\n }), {\n polygon: t,\n unwrapped: o\n };\n }(A(t, i).map(t => new e.Point(z(t.x), t.y)), i);\n return {\n polygon: r.polygon.map(t => new e.MercatorCoordinate(t.x, t.y)),\n unwrapped: r.unwrapped\n };\n }\n }\n function A(t, i) {\n return e.resample(t, e => {\n const t = i.pointCoordinate3D(e);\n e.x = t.x, e.y = t.y;\n }, 1 / 256);\n }\n function z(e) {\n return e < 0 ? 1 + e % 1 : e % 1;\n }\n function R(e) {\n return 100 * e | 0;\n }\n function O(t, i, o, r, n) {\n const s = function (o, r) {\n if (o) return n(o);\n if (r) {\n t.url && r.tiles && t.tiles && delete t.tiles;\n const o = e.pick(e.extend(r, t), [\"tiles\", \"minzoom\", \"maxzoom\", \"attribution\", \"mapbox_logo\", \"bounds\", \"scheme\", \"tileSize\", \"encoding\"]);\n r.vector_layers && (o.vectorLayers = r.vector_layers, o.vectorLayerIds = o.vectorLayers.map(e => e.id)), o.tiles = i.canonicalizeTileset(o, t.url), n(null, o);\n }\n };\n return t.url ? e.getJSON(i.transformRequest(i.normalizeSourceURL(t.url, null, o, r), e.ResourceType.Source), s) : e.exported.frame(() => s(null, t));\n }\n class B {\n constructor(t, i, o) {\n this.bounds = e.LngLatBounds.convert(this.validateBounds(t)), this.minzoom = i || 0, this.maxzoom = o || 24;\n }\n validateBounds(e) {\n return Array.isArray(e) && 4 === e.length ? [Math.max(-180, e[0]), Math.max(-90, e[1]), Math.min(180, e[2]), Math.min(90, e[3])] : [-180, -90, 180, 90];\n }\n contains(t) {\n const i = Math.pow(2, t.z),\n o = Math.floor(e.mercatorXfromLng(this.bounds.getWest()) * i),\n r = Math.floor(e.mercatorYfromLat(this.bounds.getNorth()) * i),\n n = Math.ceil(e.mercatorXfromLng(this.bounds.getEast()) * i),\n s = Math.ceil(e.mercatorYfromLat(this.bounds.getSouth()) * i);\n return t.x >= o && t.x < n && t.y >= r && t.y < s;\n }\n }\n class k {\n constructor(e, t, i) {\n this.context = e;\n const o = e.gl;\n this.buffer = o.createBuffer(), this.dynamicDraw = Boolean(i), this.context.unbindVAO(), e.bindElementBuffer.set(this.buffer), o.bufferData(o.ELEMENT_ARRAY_BUFFER, t.arrayBuffer, this.dynamicDraw ? o.DYNAMIC_DRAW : o.STATIC_DRAW), this.dynamicDraw || t.destroy();\n }\n bind() {\n this.context.bindElementBuffer.set(this.buffer);\n }\n updateData(e) {\n const t = this.context.gl;\n this.context.unbindVAO(), this.bind(), t.bufferSubData(t.ELEMENT_ARRAY_BUFFER, 0, e.arrayBuffer);\n }\n destroy() {\n this.buffer && (this.context.gl.deleteBuffer(this.buffer), delete this.buffer);\n }\n }\n const F = {\n Int8: \"BYTE\",\n Uint8: \"UNSIGNED_BYTE\",\n Int16: \"SHORT\",\n Uint16: \"UNSIGNED_SHORT\",\n Int32: \"INT\",\n Uint32: \"UNSIGNED_INT\",\n Float32: \"FLOAT\"\n };\n class U {\n constructor(e, t, i, o) {\n this.length = t.length, this.attributes = i, this.itemSize = t.bytesPerElement, this.dynamicDraw = o, this.context = e;\n const r = e.gl;\n this.buffer = r.createBuffer(), e.bindVertexBuffer.set(this.buffer), r.bufferData(r.ARRAY_BUFFER, t.arrayBuffer, this.dynamicDraw ? r.DYNAMIC_DRAW : r.STATIC_DRAW), this.dynamicDraw || t.destroy();\n }\n bind() {\n this.context.bindVertexBuffer.set(this.buffer);\n }\n updateData(e) {\n const t = this.context.gl;\n this.bind(), t.bufferSubData(t.ARRAY_BUFFER, 0, e.arrayBuffer);\n }\n enableAttributes(e, t) {\n for (let i = 0; i < this.attributes.length; i++) {\n const o = t.attributes[this.attributes[i].name];\n void 0 !== o && e.enableVertexAttribArray(o);\n }\n }\n setVertexAttribPointers(e, t, i) {\n for (let o = 0; o < this.attributes.length; o++) {\n const r = this.attributes[o],\n n = t.attributes[r.name];\n void 0 !== n && e.vertexAttribPointer(n, r.components, e[F[r.type]], !1, this.itemSize, r.offset + this.itemSize * (i || 0));\n }\n }\n destroy() {\n this.buffer && (this.context.gl.deleteBuffer(this.buffer), delete this.buffer);\n }\n }\n class N {\n constructor(e) {\n this.gl = e.gl, this.default = this.getDefault(), this.current = this.default, this.dirty = !1;\n }\n get() {\n return this.current;\n }\n set(e) {}\n getDefault() {\n return this.default;\n }\n setDefault() {\n this.set(this.default);\n }\n }\n class j extends N {\n getDefault() {\n return e.Color.transparent;\n }\n set(e) {\n const t = this.current;\n (e.r !== t.r || e.g !== t.g || e.b !== t.b || e.a !== t.a || this.dirty) && (this.gl.clearColor(e.r, e.g, e.b, e.a), this.current = e, this.dirty = !1);\n }\n }\n class G extends N {\n getDefault() {\n return 1;\n }\n set(e) {\n (e !== this.current || this.dirty) && (this.gl.clearDepth(e), this.current = e, this.dirty = !1);\n }\n }\n class Z extends N {\n getDefault() {\n return 0;\n }\n set(e) {\n (e !== this.current || this.dirty) && (this.gl.clearStencil(e), this.current = e, this.dirty = !1);\n }\n }\n class V extends N {\n getDefault() {\n return [!0, !0, !0, !0];\n }\n set(e) {\n const t = this.current;\n (e[0] !== t[0] || e[1] !== t[1] || e[2] !== t[2] || e[3] !== t[3] || this.dirty) && (this.gl.colorMask(e[0], e[1], e[2], e[3]), this.current = e, this.dirty = !1);\n }\n }\n class W extends N {\n getDefault() {\n return !0;\n }\n set(e) {\n (e !== this.current || this.dirty) && (this.gl.depthMask(e), this.current = e, this.dirty = !1);\n }\n }\n class X extends N {\n getDefault() {\n return 255;\n }\n set(e) {\n (e !== this.current || this.dirty) && (this.gl.stencilMask(e), this.current = e, this.dirty = !1);\n }\n }\n class q extends N {\n getDefault() {\n return {\n func: this.gl.ALWAYS,\n ref: 0,\n mask: 255\n };\n }\n set(e) {\n const t = this.current;\n (e.func !== t.func || e.ref !== t.ref || e.mask !== t.mask || this.dirty) && (this.gl.stencilFunc(e.func, e.ref, e.mask), this.current = e, this.dirty = !1);\n }\n }\n class $ extends N {\n getDefault() {\n const e = this.gl;\n return [e.KEEP, e.KEEP, e.KEEP];\n }\n set(e) {\n const t = this.current;\n (e[0] !== t[0] || e[1] !== t[1] || e[2] !== t[2] || this.dirty) && (this.gl.stencilOp(e[0], e[1], e[2]), this.current = e, this.dirty = !1);\n }\n }\n class H extends N {\n getDefault() {\n return !1;\n }\n set(e) {\n if (e === this.current && !this.dirty) return;\n const t = this.gl;\n e ? t.enable(t.STENCIL_TEST) : t.disable(t.STENCIL_TEST), this.current = e, this.dirty = !1;\n }\n }\n class Y extends N {\n getDefault() {\n return [0, 1];\n }\n set(e) {\n const t = this.current;\n (e[0] !== t[0] || e[1] !== t[1] || this.dirty) && (this.gl.depthRange(e[0], e[1]), this.current = e, this.dirty = !1);\n }\n }\n class K extends N {\n getDefault() {\n return !1;\n }\n set(e) {\n if (e === this.current && !this.dirty) return;\n const t = this.gl;\n e ? t.enable(t.DEPTH_TEST) : t.disable(t.DEPTH_TEST), this.current = e, this.dirty = !1;\n }\n }\n class J extends N {\n getDefault() {\n return this.gl.LESS;\n }\n set(e) {\n (e !== this.current || this.dirty) && (this.gl.depthFunc(e), this.current = e, this.dirty = !1);\n }\n }\n class Q extends N {\n getDefault() {\n return !1;\n }\n set(e) {\n if (e === this.current && !this.dirty) return;\n const t = this.gl;\n e ? t.enable(t.BLEND) : t.disable(t.BLEND), this.current = e, this.dirty = !1;\n }\n }\n class ee extends N {\n getDefault() {\n const e = this.gl;\n return [e.ONE, e.ZERO];\n }\n set(e) {\n const t = this.current;\n (e[0] !== t[0] || e[1] !== t[1] || this.dirty) && (this.gl.blendFunc(e[0], e[1]), this.current = e, this.dirty = !1);\n }\n }\n class te extends N {\n getDefault() {\n return e.Color.transparent;\n }\n set(e) {\n const t = this.current;\n (e.r !== t.r || e.g !== t.g || e.b !== t.b || e.a !== t.a || this.dirty) && (this.gl.blendColor(e.r, e.g, e.b, e.a), this.current = e, this.dirty = !1);\n }\n }\n class ie extends N {\n getDefault() {\n return this.gl.FUNC_ADD;\n }\n set(e) {\n (e !== this.current || this.dirty) && (this.gl.blendEquation(e), this.current = e, this.dirty = !1);\n }\n }\n class oe extends N {\n getDefault() {\n return !1;\n }\n set(e) {\n if (e === this.current && !this.dirty) return;\n const t = this.gl;\n e ? t.enable(t.CULL_FACE) : t.disable(t.CULL_FACE), this.current = e, this.dirty = !1;\n }\n }\n class re extends N {\n getDefault() {\n return this.gl.BACK;\n }\n set(e) {\n (e !== this.current || this.dirty) && (this.gl.cullFace(e), this.current = e, this.dirty = !1);\n }\n }\n class ne extends N {\n getDefault() {\n return this.gl.CCW;\n }\n set(e) {\n (e !== this.current || this.dirty) && (this.gl.frontFace(e), this.current = e, this.dirty = !1);\n }\n }\n let se,\n ae = class extends N {\n getDefault() {\n return null;\n }\n set(e) {\n (e !== this.current || this.dirty) && (this.gl.useProgram(e), this.current = e, this.dirty = !1);\n }\n };\n class le extends N {\n getDefault() {\n return this.gl.TEXTURE0;\n }\n set(e) {\n (e !== this.current || this.dirty) && (this.gl.activeTexture(e), this.current = e, this.dirty = !1);\n }\n }\n class ce extends N {\n getDefault() {\n const e = this.gl;\n return [0, 0, e.drawingBufferWidth, e.drawingBufferHeight];\n }\n set(e) {\n const t = this.current;\n (e[0] !== t[0] || e[1] !== t[1] || e[2] !== t[2] || e[3] !== t[3] || this.dirty) && (this.gl.viewport(e[0], e[1], e[2], e[3]), this.current = e, this.dirty = !1);\n }\n }\n class he extends N {\n getDefault() {\n return null;\n }\n set(e) {\n if (e === this.current && !this.dirty) return;\n const t = this.gl;\n t.bindFramebuffer(t.FRAMEBUFFER, e), this.current = e, this.dirty = !1;\n }\n }\n class ue extends N {\n getDefault() {\n return null;\n }\n set(e) {\n if (e === this.current && !this.dirty) return;\n const t = this.gl;\n t.bindRenderbuffer(t.RENDERBUFFER, e), this.current = e, this.dirty = !1;\n }\n }\n class _e extends N {\n getDefault() {\n return null;\n }\n set(e) {\n if (e === this.current && !this.dirty) return;\n const t = this.gl;\n t.bindTexture(t.TEXTURE_2D, e), this.current = e, this.dirty = !1;\n }\n }\n class de extends N {\n getDefault() {\n return null;\n }\n set(e) {\n if (e === this.current && !this.dirty) return;\n const t = this.gl;\n t.bindBuffer(t.ARRAY_BUFFER, e), this.current = e, this.dirty = !1;\n }\n }\n class pe extends N {\n getDefault() {\n return null;\n }\n set(e) {\n const t = this.gl;\n t.bindBuffer(t.ELEMENT_ARRAY_BUFFER, e), this.current = e, this.dirty = !1;\n }\n }\n class me extends N {\n constructor(e) {\n super(e), this.vao = e.extVertexArrayObject;\n }\n getDefault() {\n return null;\n }\n set(e) {\n this.vao && (e !== this.current || this.dirty) && (this.vao.bindVertexArrayOES(e), this.current = e, this.dirty = !1);\n }\n }\n class fe extends N {\n getDefault() {\n return 4;\n }\n set(e) {\n if (e === this.current && !this.dirty) return;\n const t = this.gl;\n t.pixelStorei(t.UNPACK_ALIGNMENT, e), this.current = e, this.dirty = !1;\n }\n }\n class ge extends N {\n getDefault() {\n return !1;\n }\n set(e) {\n if (e === this.current && !this.dirty) return;\n const t = this.gl;\n t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL, e), this.current = e, this.dirty = !1;\n }\n }\n class ve extends N {\n getDefault() {\n return !1;\n }\n set(e) {\n if (e === this.current && !this.dirty) return;\n const t = this.gl;\n t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL, e), this.current = e, this.dirty = !1;\n }\n }\n class xe extends N {\n constructor(e, t) {\n super(e), this.context = e, this.parent = t;\n }\n getDefault() {\n return null;\n }\n }\n class ye extends xe {\n setDirty() {\n this.dirty = !0;\n }\n set(e) {\n if (e === this.current && !this.dirty) return;\n this.context.bindFramebuffer.set(this.parent);\n const t = this.gl;\n t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, e, 0), this.current = e, this.dirty = !1;\n }\n }\n class be extends xe {\n attachment() {\n return this.gl.DEPTH_ATTACHMENT;\n }\n set(e) {\n if (e === this.current && !this.dirty) return;\n this.context.bindFramebuffer.set(this.parent);\n const t = this.gl;\n t.framebufferRenderbuffer(t.FRAMEBUFFER, this.attachment(), t.RENDERBUFFER, e), this.current = e, this.dirty = !1;\n }\n }\n class we extends be {\n attachment() {\n return this.gl.DEPTH_STENCIL_ATTACHMENT;\n }\n }\n class Te {\n constructor(e, t, i, o) {\n this.context = e, this.width = t, this.height = i;\n const r = this.framebuffer = e.gl.createFramebuffer();\n this.colorAttachment = new ye(e, r), o && (this.depthAttachment = new be(e, r));\n }\n destroy() {\n const e = this.context.gl,\n t = this.colorAttachment.get();\n if (t && e.deleteTexture(t), this.depthAttachment) {\n const t = this.depthAttachment.get();\n t && e.deleteRenderbuffer(t);\n }\n e.deleteFramebuffer(this.framebuffer);\n }\n }\n class Ee {\n constructor(e, t = !1) {\n if (this.gl = e, this.isWebGL2 = t, this.extVertexArrayObject = this.gl.getExtension(\"OES_vertex_array_object\"), t) {\n const t = e;\n this.extVertexArrayObject = {\n createVertexArrayOES: t.createVertexArray.bind(e),\n deleteVertexArrayOES: t.deleteVertexArray.bind(e),\n bindVertexArrayOES: t.bindVertexArray.bind(e)\n };\n }\n this.clearColor = new j(this), this.clearDepth = new G(this), this.clearStencil = new Z(this), this.colorMask = new V(this), this.depthMask = new W(this), this.stencilMask = new X(this), this.stencilFunc = new q(this), this.stencilOp = new $(this), this.stencilTest = new H(this), this.depthRange = new Y(this), this.depthTest = new K(this), this.depthFunc = new J(this), this.blend = new Q(this), this.blendFunc = new ee(this), this.blendColor = new te(this), this.blendEquation = new ie(this), this.cullFace = new oe(this), this.cullFaceSide = new re(this), this.frontFace = new ne(this), this.program = new ae(this), this.activeTexture = new le(this), this.viewport = new ce(this), this.bindFramebuffer = new he(this), this.bindRenderbuffer = new ue(this), this.bindTexture = new _e(this), this.bindVertexBuffer = new de(this), this.bindElementBuffer = new pe(this), this.bindVertexArrayOES = this.extVertexArrayObject && new me(this), this.pixelStoreUnpack = new fe(this), this.pixelStoreUnpackPremultiplyAlpha = new ge(this), this.pixelStoreUnpackFlipY = new ve(this), this.extTextureFilterAnisotropic = e.getExtension(\"EXT_texture_filter_anisotropic\") || e.getExtension(\"MOZ_EXT_texture_filter_anisotropic\") || e.getExtension(\"WEBKIT_EXT_texture_filter_anisotropic\"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.extTextureFilterAnisotropicForceOff = !1, this.extStandardDerivativesForceOff = !1, this.extDebugRendererInfo = e.getExtension(\"WEBGL_debug_renderer_info\"), this.extDebugRendererInfo && (this.renderer = e.getParameter(this.extDebugRendererInfo.UNMASKED_RENDERER_WEBGL), this.vendor = e.getParameter(this.extDebugRendererInfo.UNMASKED_VENDOR_WEBGL)), t || (this.extTextureHalfFloat = e.getExtension(\"OES_texture_half_float\")), (t || this.extTextureHalfFloat && e.getExtension(\"OES_texture_half_float_linear\")) && (this.extRenderToTextureHalfFloat = e.getExtension(\"EXT_color_buffer_half_float\")), this.extStandardDerivatives = t || e.getExtension(\"OES_standard_derivatives\"), this.extTimerQuery = e.getExtension(\"EXT_disjoint_timer_query\"), this.maxTextureSize = e.getParameter(e.MAX_TEXTURE_SIZE);\n }\n setDefault() {\n this.unbindVAO(), this.clearColor.setDefault(), this.clearDepth.setDefault(), this.clearStencil.setDefault(), this.colorMask.setDefault(), this.depthMask.setDefault(), this.stencilMask.setDefault(), this.stencilFunc.setDefault(), this.stencilOp.setDefault(), this.stencilTest.setDefault(), this.depthRange.setDefault(), this.depthTest.setDefault(), this.depthFunc.setDefault(), this.blend.setDefault(), this.blendFunc.setDefault(), this.blendColor.setDefault(), this.blendEquation.setDefault(), this.cullFace.setDefault(), this.cullFaceSide.setDefault(), this.frontFace.setDefault(), this.program.setDefault(), this.activeTexture.setDefault(), this.bindFramebuffer.setDefault(), this.pixelStoreUnpack.setDefault(), this.pixelStoreUnpackPremultiplyAlpha.setDefault(), this.pixelStoreUnpackFlipY.setDefault();\n }\n setDirty() {\n this.clearColor.dirty = !0, this.clearDepth.dirty = !0, this.clearStencil.dirty = !0, this.colorMask.dirty = !0, this.depthMask.dirty = !0, this.stencilMask.dirty = !0, this.stencilFunc.dirty = !0, this.stencilOp.dirty = !0, this.stencilTest.dirty = !0, this.depthRange.dirty = !0, this.depthTest.dirty = !0, this.depthFunc.dirty = !0, this.blend.dirty = !0, this.blendFunc.dirty = !0, this.blendColor.dirty = !0, this.blendEquation.dirty = !0, this.cullFace.dirty = !0, this.cullFaceSide.dirty = !0, this.frontFace.dirty = !0, this.program.dirty = !0, this.activeTexture.dirty = !0, this.viewport.dirty = !0, this.bindFramebuffer.dirty = !0, this.bindRenderbuffer.dirty = !0, this.bindTexture.dirty = !0, this.bindVertexBuffer.dirty = !0, this.bindElementBuffer.dirty = !0, this.extVertexArrayObject && (this.bindVertexArrayOES.dirty = !0), this.pixelStoreUnpack.dirty = !0, this.pixelStoreUnpackPremultiplyAlpha.dirty = !0, this.pixelStoreUnpackFlipY.dirty = !0;\n }\n createIndexBuffer(e, t) {\n return new k(this, e, t);\n }\n createVertexBuffer(e, t, i) {\n return new U(this, e, t, i);\n }\n createRenderbuffer(e, t, i) {\n const o = this.gl,\n r = o.createRenderbuffer();\n return this.bindRenderbuffer.set(r), o.renderbufferStorage(o.RENDERBUFFER, e, t, i), this.bindRenderbuffer.set(null), r;\n }\n createFramebuffer(e, t, i) {\n return new Te(this, e, t, i);\n }\n clear({\n color: e,\n depth: t,\n stencil: i\n }) {\n const o = this.gl;\n let r = 0;\n e && (r |= o.COLOR_BUFFER_BIT, this.clearColor.set(e), this.colorMask.set([!0, !0, !0, !0])), void 0 !== t && (r |= o.DEPTH_BUFFER_BIT, this.depthRange.set([0, 1]), this.clearDepth.set(t), this.depthMask.set(!0)), void 0 !== i && (r |= o.STENCIL_BUFFER_BIT, this.clearStencil.set(i), this.stencilMask.set(255)), o.clear(r);\n }\n setCullFace(e) {\n !1 === e.enable ? this.cullFace.set(!1) : (this.cullFace.set(!0), this.cullFaceSide.set(e.mode), this.frontFace.set(e.frontFace));\n }\n setDepthMode(e) {\n e.func !== this.gl.ALWAYS || e.mask ? (this.depthTest.set(!0), this.depthFunc.set(e.func), this.depthMask.set(e.mask), this.depthRange.set(e.range)) : this.depthTest.set(!1);\n }\n setStencilMode(e) {\n e.test.func !== this.gl.ALWAYS || e.mask ? (this.stencilTest.set(!0), this.stencilMask.set(e.mask), this.stencilOp.set([e.fail, e.depthFail, e.pass]), this.stencilFunc.set({\n func: e.test.func,\n ref: e.ref,\n mask: e.test.mask\n })) : this.stencilTest.set(!1);\n }\n setColorMode(i) {\n t(i.blendFunction, e.ColorMode.Replace) ? this.blend.set(!1) : (this.blend.set(!0), this.blendFunc.set(i.blendFunction), this.blendColor.set(i.blendColor)), this.colorMask.set(i.mask);\n }\n unbindVAO() {\n this.extVertexArrayObject && this.bindVertexArrayOES.set(null);\n }\n }\n class Ce extends e.Evented {\n constructor(t, i, o, r) {\n if (super(), this.id = t, this.dispatcher = o, this.type = \"vector\", this.minzoom = 0, this.maxzoom = 22, this.scheme = \"xyz\", this.tileSize = 512, this.reparseOverscaled = !0, this.isTileClipped = !0, this._loaded = !1, e.extend(this, e.pick(i, [\"url\", \"scheme\", \"tileSize\", \"promoteId\"])), this._options = e.extend({\n type: \"vector\"\n }, i), this._collectResourceTiming = i.collectResourceTiming, 512 !== this.tileSize) throw new Error(\"vector tile sources must have a tileSize of 512\");\n this.setEventedParent(r), this._tileWorkers = {}, this._deduped = new e.DedupedRequest();\n }\n load(t) {\n this._loaded = !1, this.fire(new e.Event(\"dataloading\", {\n dataType: \"source\"\n }));\n const i = Array.isArray(this.map._language) ? this.map._language.join() : this.map._language,\n o = this.map._worldview;\n this._tileJSONRequest = O(this._options, this.map._requestManager, i, o, (r, n) => {\n this._tileJSONRequest = null, this._loaded = !0, r ? (i && console.warn(`Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: ${i}`), o && 2 !== o.length && console.warn(`Requested worldview strings must be a valid ISO alpha-2 code. Found: ${o}`), this.fire(new e.ErrorEvent(r))) : n && (e.extend(this, n), n.bounds && (this.tileBounds = new B(n.bounds, this.minzoom, this.maxzoom)), e.postTurnstileEvent(n.tiles, this.map._requestManager._customAccessToken), this.fire(new e.Event(\"data\", {\n dataType: \"source\",\n sourceDataType: \"metadata\"\n })), this.fire(new e.Event(\"data\", {\n dataType: \"source\",\n sourceDataType: \"content\"\n }))), t && t(r);\n });\n }\n loaded() {\n return this._loaded;\n }\n hasTile(e) {\n return !this.tileBounds || this.tileBounds.contains(e.canonical);\n }\n onAdd(e) {\n this.map = e, this.load();\n }\n reload() {\n this.cancelTileJSONRequest(), this.load(() => this.map.style._clearSource(this.id));\n }\n setTiles(e) {\n return this._options.tiles = e, this.reload(), this;\n }\n setUrl(e) {\n return this.url = e, this._options.url = e, this.reload(), this;\n }\n onRemove() {\n this.cancelTileJSONRequest();\n }\n serialize() {\n return e.extend({}, this._options);\n }\n loadTile(t, i) {\n const o = this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles, this.scheme)),\n r = {\n request: this.map._requestManager.transformRequest(o, e.ResourceType.Tile),\n data: void 0,\n uid: t.uid,\n tileID: t.tileID,\n tileZoom: t.tileZoom,\n zoom: t.tileID.overscaledZ,\n tileSize: this.tileSize * t.tileID.overscaleFactor(),\n type: this.type,\n source: this.id,\n pixelRatio: e.exported.devicePixelRatio,\n showCollisionBoxes: this.map.showCollisionBoxes,\n promoteId: this.promoteId,\n isSymbolTile: t.isSymbolTile\n };\n if (r.request.collectResourceTiming = this._collectResourceTiming, t.actor && \"expired\" !== t.state) \"loading\" === t.state ? t.reloadCallback = i : t.request = t.actor.send(\"reloadTile\", r, n.bind(this));else if (t.actor = this._tileWorkers[o] = this._tileWorkers[o] || this.dispatcher.getActor(), this.dispatcher.ready) t.request = t.actor.send(\"loadTile\", r, n.bind(this), void 0, !0);else {\n const i = e.loadVectorTile.call({\n deduped: this._deduped\n }, r, (e, i) => {\n e || !i ? n.call(this, e) : (r.data = {\n cacheControl: i.cacheControl,\n expires: i.expires,\n rawData: i.rawData.slice(0)\n }, t.actor && t.actor.send(\"loadTile\", r, n.bind(this), void 0, !0));\n }, !0);\n t.request = {\n cancel: i\n };\n }\n function n(o, r) {\n return delete t.request, t.aborted ? i(null) : o && 404 !== o.status ? i(o) : (r && r.resourceTiming && (t.resourceTiming = r.resourceTiming), this.map._refreshExpiredTiles && r && t.setExpiryData(r), t.loadVectorData(r, this.map.painter), e.cacheEntryPossiblyAdded(this.dispatcher), i(null), void (t.reloadCallback && (this.loadTile(t, t.reloadCallback), t.reloadCallback = null)));\n }\n }\n abortTile(e) {\n e.request && (e.request.cancel(), delete e.request), e.actor && e.actor.send(\"abortTile\", {\n uid: e.uid,\n type: this.type,\n source: this.id\n });\n }\n unloadTile(e) {\n e.unloadVectorData(), e.actor && e.actor.send(\"removeTile\", {\n uid: e.uid,\n type: this.type,\n source: this.id\n });\n }\n hasTransition() {\n return !1;\n }\n afterUpdate() {\n this._tileWorkers = {};\n }\n cancelTileJSONRequest() {\n this._tileJSONRequest && (this._tileJSONRequest.cancel(), this._tileJSONRequest = null);\n }\n }\n class Me extends e.Evented {\n constructor(t, i, o, r) {\n super(), this.id = t, this.dispatcher = o, this.setEventedParent(r), this.type = \"raster\", this.minzoom = 0, this.maxzoom = 22, this.roundZoom = !0, this.scheme = \"xyz\", this.tileSize = 512, this._loaded = !1, this._options = e.extend({\n type: \"raster\"\n }, i), e.extend(this, e.pick(i, [\"url\", \"scheme\", \"tileSize\"]));\n }\n load(t) {\n this._loaded = !1, this.fire(new e.Event(\"dataloading\", {\n dataType: \"source\"\n })), this._tileJSONRequest = O(this._options, this.map._requestManager, null, null, (i, o) => {\n this._tileJSONRequest = null, this._loaded = !0, i ? this.fire(new e.ErrorEvent(i)) : o && (e.extend(this, o), o.bounds && (this.tileBounds = new B(o.bounds, this.minzoom, this.maxzoom)), e.postTurnstileEvent(o.tiles), this.fire(new e.Event(\"data\", {\n dataType: \"source\",\n sourceDataType: \"metadata\"\n })), this.fire(new e.Event(\"data\", {\n dataType: \"source\",\n sourceDataType: \"content\"\n }))), t && t(i);\n });\n }\n loaded() {\n return this._loaded;\n }\n onAdd(e) {\n this.map = e, this.load();\n }\n reload() {\n this.cancelTileJSONRequest(), this.load(() => this.map.style._clearSource(this.id));\n }\n setTiles(e) {\n return this._options.tiles = e, this.reload(), this;\n }\n setUrl(e) {\n return this.url = e, this._options.url = e, this.reload(), this;\n }\n onRemove() {\n this.cancelTileJSONRequest();\n }\n serialize() {\n return e.extend({}, this._options);\n }\n hasTile(e) {\n return !this.tileBounds || this.tileBounds.contains(e.canonical);\n }\n loadTile(t, i) {\n const o = e.exported.devicePixelRatio >= 2,\n r = this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles, this.scheme), o, this.tileSize);\n t.request = e.getImage(this.map._requestManager.transformRequest(r, e.ResourceType.Tile), (o, r, n, s) => (delete t.request, t.aborted ? (t.state = \"unloaded\", i(null)) : o ? (t.state = \"errored\", i(o)) : r ? (this.map._refreshExpiredTiles && t.setExpiryData({\n cacheControl: n,\n expires: s\n }), t.setTexture(r, this.map.painter), t.state = \"loaded\", e.cacheEntryPossiblyAdded(this.dispatcher), void i(null)) : i(null)));\n }\n static loadTileData(e, t, i) {\n e.setTexture(t, i);\n }\n static unloadTileData(e, t) {\n e.texture && t.saveTileTexture(e.texture);\n }\n abortTile(e, t) {\n e.request && (e.request.cancel(), delete e.request), t();\n }\n unloadTile(e, t) {\n e.texture && this.map.painter.saveTileTexture(e.texture), t();\n }\n hasTransition() {\n return !1;\n }\n cancelTileJSONRequest() {\n this._tileJSONRequest && (this._tileJSONRequest.cancel(), this._tileJSONRequest = null);\n }\n }\n function Ie(t, i, o, r, n, s, a, l) {\n const c = [t, o, n, i, r, s, 1, 1, 1],\n h = [a, l, 1],\n u = e.adjoint([], c),\n [_, d, p] = e.transformMat3(h, h, e.transpose(u, u));\n return e.multiply$1(c, [_, 0, 0, 0, d, 0, 0, 0, p], c);\n }\n class Pe extends e.Evented {\n constructor(e, t, i, o) {\n super(), this.id = e, this.dispatcher = i, this.coordinates = t.coordinates, this.type = \"image\", this.minzoom = 0, this.maxzoom = 22, this.tileSize = 512, this.tiles = {}, this._loaded = !1, this.setEventedParent(o), this.options = t, this._dirty = !1;\n }\n load(t, i) {\n this._loaded = i || !1, this.fire(new e.Event(\"dataloading\", {\n dataType: \"source\"\n })), this.url = this.options.url, this._imageRequest = e.getImage(this.map._requestManager.transformRequest(this.url, e.ResourceType.Image), (i, o) => {\n if (this._imageRequest = null, this._loaded = !0, i) this.fire(new e.ErrorEvent(i));else if (o) {\n const {\n HTMLImageElement: i\n } = e.window;\n this.image = o instanceof i ? e.exported.getImageData(o) : o, this._dirty = !0, this.width = this.image.width, this.height = this.image.height, t && (this.coordinates = t), this._finishLoading();\n }\n });\n }\n loaded() {\n return this._loaded;\n }\n updateImage(e) {\n return this.image && e.url ? (this._imageRequest && e.url !== this.options.url && (this._imageRequest.cancel(), this._imageRequest = null), this.options.url = e.url, this.load(e.coordinates, this._loaded), this) : this;\n }\n _finishLoading() {\n this.map && (this.setCoordinates(this.coordinates), this.fire(new e.Event(\"data\", {\n dataType: \"source\",\n sourceDataType: \"metadata\"\n })));\n }\n onAdd(e) {\n this.map = e, this.load();\n }\n onRemove() {\n this._imageRequest && (this._imageRequest.cancel(), this._imageRequest = null), this.texture && this.texture.destroy();\n }\n setCoordinates(t) {\n this.coordinates = t, this._boundsArray = void 0;\n const i = t.map(e.MercatorCoordinate.fromLngLat);\n return this.tileID = function (t) {\n let i = 1 / 0,\n o = 1 / 0,\n r = -1 / 0,\n n = -1 / 0;\n for (const e of t) i = Math.min(i, e.x), o = Math.min(o, e.y), r = Math.max(r, e.x), n = Math.max(n, e.y);\n const s = Math.max(r - i, n - o),\n a = Math.max(0, Math.floor(-Math.log(s) / Math.LN2)),\n l = Math.pow(2, a);\n return new e.CanonicalTileID(a, Math.floor((i + r) / 2 * l), Math.floor((o + n) / 2 * l));\n }(i), this.minzoom = this.maxzoom = this.tileID.z, this.fire(new e.Event(\"data\", {\n dataType: \"source\",\n sourceDataType: \"content\"\n })), this;\n }\n _clear() {\n this._boundsArray = void 0;\n }\n _prepareData(t) {\n for (const e in this.tiles) {\n const t = this.tiles[e];\n \"loaded\" !== t.state && (t.state = \"loaded\", t.texture = this.texture);\n }\n if (this._boundsArray) return;\n const i = e.tileTransform(this.tileID, this.map.transform.projection),\n [o, r, n, s] = this.coordinates.map(t => {\n const o = i.projection.project(t[0], t[1]);\n return e.getTilePoint(i, o)._round();\n });\n this.perspectiveTransform = function (t, i, o, r, n, s, a, l, c, h) {\n const u = Ie(0, 0, t, 0, 0, i, t, i),\n _ = Ie(o, r, n, s, a, l, c, h);\n return e.multiply$1(_, e.adjoint(u, u), _), [_[6] / _[8] * t / e.EXTENT, _[7] / _[8] * i / e.EXTENT];\n }(this.width, this.height, o.x, o.y, r.x, r.y, s.x, s.y, n.x, n.y);\n const a = this._boundsArray = new e.StructArrayLayout4i8();\n a.emplaceBack(o.x, o.y, 0, 0), a.emplaceBack(r.x, r.y, e.EXTENT, 0), a.emplaceBack(s.x, s.y, 0, e.EXTENT), a.emplaceBack(n.x, n.y, e.EXTENT, e.EXTENT), this.boundsBuffer && this.boundsBuffer.destroy(), this.boundsBuffer = t.createVertexBuffer(a, e.boundsAttributes.members), this.boundsSegments = e.SegmentVector.simpleSegment(0, 0, 4, 2);\n }\n prepare() {\n if (0 === Object.keys(this.tiles).length || !this.image) return;\n const t = this.map.painter.context,\n i = t.gl;\n this._dirty && (this.texture ? this.texture.update(this.image) : (this.texture = new e.Texture(t, this.image, i.RGBA), this.texture.bind(i.LINEAR, i.CLAMP_TO_EDGE)), this._dirty = !1), this._prepareData(t);\n }\n loadTile(e, t) {\n this.tileID && this.tileID.equals(e.tileID.canonical) ? (this.tiles[String(e.tileID.wrap)] = e, e.buckets = {}, t(null)) : (e.state = \"errored\", t(null));\n }\n serialize() {\n return {\n type: \"image\",\n url: this.options.url,\n coordinates: this.coordinates\n };\n }\n hasTransition() {\n return !1;\n }\n }\n const Se = {\n vector: Ce,\n raster: Me,\n \"raster-dem\": class extends Me {\n constructor(t, i, o, r) {\n super(t, i, o, r), this.type = \"raster-dem\", this.maxzoom = 22, this._options = e.extend({\n type: \"raster-dem\"\n }, i), this.encoding = i.encoding || \"mapbox\";\n }\n loadTile(t, i) {\n const o = this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles, this.scheme), !1, this.tileSize);\n function r(e, o) {\n e && (t.state = \"errored\", i(e)), o && (t.dem = o, t.dem.onDeserialize(), t.needsHillshadePrepare = !0, t.needsDEMTextureUpload = !0, t.state = \"loaded\", i(null));\n }\n t.request = e.getImage(this.map._requestManager.transformRequest(o, e.ResourceType.Tile), function (o, n, s, a) {\n if (delete t.request, t.aborted) t.state = \"unloaded\", i(null);else if (o) t.state = \"errored\", i(o);else if (n) {\n this.map._refreshExpiredTiles && t.setExpiryData({\n cacheControl: s,\n expires: a\n });\n const i = e.window.ImageBitmap && n instanceof e.window.ImageBitmap && (null == se && (se = e.window.OffscreenCanvas && new e.window.OffscreenCanvas(1, 1).getContext(\"2d\") && \"function\" == typeof e.window.createImageBitmap), se),\n o = 1 - (n.width - e.prevPowerOfTwo(n.width)) / 2;\n o < 1 || t.neighboringTiles || (t.neighboringTiles = this._getNeighboringTiles(t.tileID));\n const l = i ? n : e.exported.getImageData(n, o),\n c = {\n uid: t.uid,\n coord: t.tileID,\n source: this.id,\n rawImageData: l,\n encoding: this.encoding,\n padding: o\n };\n t.actor && \"expired\" !== t.state || (t.actor = this.dispatcher.getActor(), t.actor.send(\"loadDEMTile\", c, r.bind(this), void 0, !0));\n }\n }.bind(this));\n }\n _getNeighboringTiles(t) {\n const i = t.canonical,\n o = Math.pow(2, i.z),\n r = (i.x - 1 + o) % o,\n n = 0 === i.x ? t.wrap - 1 : t.wrap,\n s = (i.x + 1 + o) % o,\n a = i.x + 1 === o ? t.wrap + 1 : t.wrap,\n l = {};\n return l[new e.OverscaledTileID(t.overscaledZ, n, i.z, r, i.y).key] = {\n backfilled: !1\n }, l[new e.OverscaledTileID(t.overscaledZ, a, i.z, s, i.y).key] = {\n backfilled: !1\n }, i.y > 0 && (l[new e.OverscaledTileID(t.overscaledZ, n, i.z, r, i.y - 1).key] = {\n backfilled: !1\n }, l[new e.OverscaledTileID(t.overscaledZ, t.wrap, i.z, i.x, i.y - 1).key] = {\n backfilled: !1\n }, l[new e.OverscaledTileID(t.overscaledZ, a, i.z, s, i.y - 1).key] = {\n backfilled: !1\n }), i.y + 1 < o && (l[new e.OverscaledTileID(t.overscaledZ, n, i.z, r, i.y + 1).key] = {\n backfilled: !1\n }, l[new e.OverscaledTileID(t.overscaledZ, t.wrap, i.z, i.x, i.y + 1).key] = {\n backfilled: !1\n }, l[new e.OverscaledTileID(t.overscaledZ, a, i.z, s, i.y + 1).key] = {\n backfilled: !1\n }), l;\n }\n unloadTile(e) {\n e.demTexture && this.map.painter.saveTileTexture(e.demTexture), e.fbo && (e.fbo.destroy(), delete e.fbo), e.dem && delete e.dem, delete e.neighboringTiles, e.state = \"unloaded\";\n }\n },\n geojson: class extends e.Evented {\n constructor(t, i, o, r) {\n super(), this.id = t, this.type = \"geojson\", this.minzoom = 0, this.maxzoom = 18, this.tileSize = 512, this.isTileClipped = !0, this.reparseOverscaled = !0, this._loaded = !1, this.actor = o.getActor(), this.setEventedParent(r), this._data = i.data, this._options = e.extend({}, i), this._collectResourceTiming = i.collectResourceTiming, void 0 !== i.maxzoom && (this.maxzoom = i.maxzoom), i.type && (this.type = i.type), i.attribution && (this.attribution = i.attribution), this.promoteId = i.promoteId;\n const n = e.EXTENT / this.tileSize;\n this.workerOptions = e.extend({\n source: this.id,\n cluster: i.cluster || !1,\n geojsonVtOptions: {\n buffer: (void 0 !== i.buffer ? i.buffer : 128) * n,\n tolerance: (void 0 !== i.tolerance ? i.tolerance : .375) * n,\n extent: e.EXTENT,\n maxZoom: this.maxzoom,\n lineMetrics: i.lineMetrics || !1,\n generateId: i.generateId || !1\n },\n superclusterOptions: {\n maxZoom: void 0 !== i.clusterMaxZoom ? i.clusterMaxZoom : this.maxzoom - 1,\n minPoints: Math.max(2, i.clusterMinPoints || 2),\n extent: e.EXTENT,\n radius: (void 0 !== i.clusterRadius ? i.clusterRadius : 50) * n,\n log: !1,\n generateId: i.generateId || !1\n },\n clusterProperties: i.clusterProperties,\n filter: i.filter\n }, i.workerOptions);\n }\n onAdd(e) {\n this.map = e, this.setData(this._data);\n }\n setData(e) {\n return this._data = e, this._updateWorkerData(), this;\n }\n getClusterExpansionZoom(e, t) {\n return this.actor.send(\"geojson.getClusterExpansionZoom\", {\n clusterId: e,\n source: this.id\n }, t), this;\n }\n getClusterChildren(e, t) {\n return this.actor.send(\"geojson.getClusterChildren\", {\n clusterId: e,\n source: this.id\n }, t), this;\n }\n getClusterLeaves(e, t, i, o) {\n return this.actor.send(\"geojson.getClusterLeaves\", {\n source: this.id,\n clusterId: e,\n limit: t,\n offset: i\n }, o), this;\n }\n _updateWorkerData() {\n if (this._pendingLoad) return void (this._coalesce = !0);\n this.fire(new e.Event(\"dataloading\", {\n dataType: \"source\"\n })), this._loaded = !1;\n const t = e.extend({}, this.workerOptions),\n i = this._data;\n \"string\" == typeof i ? (t.request = this.map._requestManager.transformRequest(e.exported.resolveURL(i), e.ResourceType.Source), t.request.collectResourceTiming = this._collectResourceTiming) : t.data = JSON.stringify(i), this._pendingLoad = this.actor.send(`${this.type}.loadData`, t, (t, i) => {\n if (this._loaded = !0, this._pendingLoad = null, t) this.fire(new e.ErrorEvent(t));else {\n const t = {\n dataType: \"source\",\n sourceDataType: this._metadataFired ? \"content\" : \"metadata\"\n };\n this._collectResourceTiming && i && i.resourceTiming && i.resourceTiming[this.id] && (t.resourceTiming = i.resourceTiming[this.id]), this.fire(new e.Event(\"data\", t)), this._metadataFired = !0;\n }\n this._coalesce && (this._updateWorkerData(), this._coalesce = !1);\n });\n }\n loaded() {\n return this._loaded;\n }\n loadTile(t, i) {\n const o = t.actor ? \"reloadTile\" : \"loadTile\";\n t.actor = this.actor, t.request = this.actor.send(o, {\n type: this.type,\n uid: t.uid,\n tileID: t.tileID,\n tileZoom: t.tileZoom,\n zoom: t.tileID.overscaledZ,\n maxZoom: this.maxzoom,\n tileSize: this.tileSize,\n source: this.id,\n pixelRatio: e.exported.devicePixelRatio,\n showCollisionBoxes: this.map.showCollisionBoxes,\n promoteId: this.promoteId\n }, (e, r) => (delete t.request, t.unloadVectorData(), t.aborted ? i(null) : e ? i(e) : (t.loadVectorData(r, this.map.painter, \"reloadTile\" === o), i(null))), void 0, \"loadTile\" === o);\n }\n abortTile(e) {\n e.request && (e.request.cancel(), delete e.request), e.aborted = !0;\n }\n unloadTile(e) {\n e.unloadVectorData(), this.actor.send(\"removeTile\", {\n uid: e.uid,\n type: this.type,\n source: this.id\n });\n }\n onRemove() {\n this._pendingLoad && this._pendingLoad.cancel();\n }\n serialize() {\n return e.extend({}, this._options, {\n type: this.type,\n data: this._data\n });\n }\n hasTransition() {\n return !1;\n }\n },\n video: class extends Pe {\n constructor(e, t, i, o) {\n super(e, t, i, o), this.roundZoom = !0, this.type = \"video\", this.options = t;\n }\n load() {\n this._loaded = !1;\n const t = this.options;\n this.urls = [];\n for (const i of t.urls) this.urls.push(this.map._requestManager.transformRequest(i, e.ResourceType.Source).url);\n e.getVideo(this.urls, (t, i) => {\n this._loaded = !0, t ? this.fire(new e.ErrorEvent(t)) : i && (this.video = i, this.video.loop = !0, this.video.setAttribute(\"playsinline\", \"\"), this.video.addEventListener(\"playing\", () => {\n this.map.triggerRepaint();\n }), this.map && this.video.play(), this._finishLoading());\n });\n }\n pause() {\n this.video && this.video.pause();\n }\n play() {\n this.video && this.video.play();\n }\n seek(t) {\n if (this.video) {\n const i = this.video.seekable;\n t < i.start(0) || t > i.end(0) ? this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${this.id}`, null, `Playback for this video can be set only between the ${i.start(0)} and ${i.end(0)}-second mark.`))) : this.video.currentTime = t;\n }\n }\n getVideo() {\n return this.video;\n }\n onAdd(e) {\n this.map || (this.map = e, this.load(), this.video && (this.video.play(), this.setCoordinates(this.coordinates)));\n }\n prepare() {\n if (0 === Object.keys(this.tiles).length || this.video.readyState < 2) return;\n const t = this.map.painter.context,\n i = t.gl;\n this.texture ? this.video.paused || (this.texture.bind(i.LINEAR, i.CLAMP_TO_EDGE), i.texSubImage2D(i.TEXTURE_2D, 0, 0, 0, i.RGBA, i.UNSIGNED_BYTE, this.video)) : (this.texture = new e.Texture(t, this.video, i.RGBA), this.texture.bind(i.LINEAR, i.CLAMP_TO_EDGE), this.width = this.video.videoWidth, this.height = this.video.videoHeight), this._prepareData(t);\n }\n serialize() {\n return {\n type: \"video\",\n urls: this.urls,\n coordinates: this.coordinates\n };\n }\n hasTransition() {\n return this.video && !this.video.paused;\n }\n },\n image: Pe,\n canvas: class extends Pe {\n constructor(t, i, o, r) {\n super(t, i, o, r), i.coordinates ? Array.isArray(i.coordinates) && 4 === i.coordinates.length && !i.coordinates.some(e => !Array.isArray(e) || 2 !== e.length || e.some(e => \"number\" != typeof e)) || this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`, null, '\"coordinates\" property must be an array of 4 longitude/latitude array pairs'))) : this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`, null, 'missing required property \"coordinates\"'))), i.animate && \"boolean\" != typeof i.animate && this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`, null, 'optional \"animate\" property must be a boolean value'))), i.canvas ? \"string\" == typeof i.canvas || i.canvas instanceof e.window.HTMLCanvasElement || this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`, null, '\"canvas\" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))) : this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`, null, 'missing required property \"canvas\"'))), this.options = i, this.animate = void 0 === i.animate || i.animate;\n }\n load() {\n this._loaded = !0, this.canvas || (this.canvas = this.options.canvas instanceof e.window.HTMLCanvasElement ? this.options.canvas : e.window.document.getElementById(this.options.canvas)), this.width = this.canvas.width, this.height = this.canvas.height, this._hasInvalidDimensions() ? this.fire(new e.ErrorEvent(new Error(\"Canvas dimensions cannot be less than or equal to zero.\"))) : (this.play = function () {\n this._playing = !0, this.map.triggerRepaint();\n }, this.pause = function () {\n this._playing && (this.prepare(), this._playing = !1);\n }, this._finishLoading());\n }\n getCanvas() {\n return this.canvas;\n }\n onAdd(e) {\n this.map = e, this.load(), this.canvas && this.animate && this.play();\n }\n onRemove() {\n this.pause();\n }\n prepare() {\n let t = !1;\n if (this.canvas.width !== this.width && (this.width = this.canvas.width, t = !0), this.canvas.height !== this.height && (this.height = this.canvas.height, t = !0), this._hasInvalidDimensions()) return;\n if (0 === Object.keys(this.tiles).length) return;\n const i = this.map.painter.context;\n this.texture ? (t || this._playing) && this.texture.update(this.canvas, {\n premultiply: !0\n }) : this.texture = new e.Texture(i, this.canvas, i.gl.RGBA, {\n premultiply: !0\n }), this._prepareData(i);\n }\n serialize() {\n return {\n type: \"canvas\",\n coordinates: this.coordinates\n };\n }\n hasTransition() {\n return this._playing;\n }\n _hasInvalidDimensions() {\n for (const e of [this.canvas.width, this.canvas.height]) if (isNaN(e) || e <= 0) return !0;\n return !1;\n }\n },\n custom: class extends e.Evented {\n constructor(t, i, o, r) {\n super(), this.id = t, this.type = \"custom\", this._dataType = \"raster\", this._dispatcher = o, this._implementation = i, this.setEventedParent(r), this.scheme = \"xyz\", this.minzoom = 0, this.maxzoom = 22, this.tileSize = 512, this._loaded = !1, this.roundZoom = !0, this._implementation || this.fire(new e.ErrorEvent(new Error(`Missing implementation for ${this.id} custom source`))), this._implementation.loadTile || this.fire(new e.ErrorEvent(new Error(`Missing loadTile implementation for ${this.id} custom source`))), this._implementation.bounds && (this.tileBounds = new B(this._implementation.bounds, this.minzoom, this.maxzoom)), i.update = this._update.bind(this), i.clearTiles = this._clearTiles.bind(this), i.coveringTiles = this._coveringTiles.bind(this), e.extend(this, e.pick(i, [\"dataType\", \"scheme\", \"minzoom\", \"maxzoom\", \"tileSize\", \"attribution\", \"minTileCacheSize\", \"maxTileCacheSize\"]));\n }\n serialize() {\n return e.pick(this, [\"type\", \"scheme\", \"minzoom\", \"maxzoom\", \"tileSize\", \"attribution\"]);\n }\n load() {\n this._loaded = !0, this.fire(new e.Event(\"data\", {\n dataType: \"source\",\n sourceDataType: \"metadata\"\n })), this.fire(new e.Event(\"data\", {\n dataType: \"source\",\n sourceDataType: \"content\"\n }));\n }\n loaded() {\n return this._loaded;\n }\n onAdd(t) {\n this._map = t, this._loaded = !1, this.fire(new e.Event(\"dataloading\", {\n dataType: \"source\"\n })), this._implementation.onAdd && this._implementation.onAdd(t), this.load();\n }\n onRemove(e) {\n this._implementation.onRemove && this._implementation.onRemove(e);\n }\n hasTile(e) {\n if (this._implementation.hasTile) {\n const {\n x: t,\n y: i,\n z: o\n } = e.canonical;\n return this._implementation.hasTile({\n x: t,\n y: i,\n z: o\n });\n }\n return !this.tileBounds || this.tileBounds.contains(e.canonical);\n }\n loadTile(t, i) {\n const {\n x: o,\n y: r,\n z: n\n } = t.tileID.canonical,\n s = new e.window.AbortController();\n t.request = Promise.resolve(this._implementation.loadTile({\n x: o,\n y: r,\n z: n\n }, {\n signal: s.signal\n })).then(function (o) {\n return delete t.request, t.aborted ? (t.state = \"unloaded\", i(null)) : void 0 === o ? (t.state = \"errored\", i(null)) : null === o ? (this.loadTileData(t, {\n width: this.tileSize,\n height: this.tileSize,\n data: null\n }), t.state = \"loaded\", i(null)) : function (t) {\n return t instanceof e.window.ImageData || t instanceof e.window.HTMLCanvasElement || t instanceof e.window.ImageBitmap || t instanceof e.window.HTMLImageElement;\n }(o) ? (this.loadTileData(t, o), t.state = \"loaded\", void i(null)) : (t.state = \"errored\", i(new Error(`Can't infer data type for ${this.id}, only raster data supported at the moment`)));\n }.bind(this)).catch(e => {\n 20 !== e.code && (t.state = \"errored\", i(e));\n }), t.request.cancel = () => s.abort();\n }\n loadTileData(e, t) {\n Me.loadTileData(e, t, this._map.painter);\n }\n unloadTileData(e) {\n Me.unloadTileData(e, this._map.painter);\n }\n unloadTile(e, t) {\n if (this.unloadTileData(e), this._implementation.unloadTile) {\n const {\n x: t,\n y: i,\n z: o\n } = e.tileID.canonical;\n this._implementation.unloadTile({\n x: t,\n y: i,\n z: o\n });\n }\n t();\n }\n abortTile(e, t) {\n e.request && e.request.cancel && (e.request.cancel(), delete e.request), t();\n }\n hasTransition() {\n return !1;\n }\n _coveringTiles() {\n return this._map.transform.coveringTiles({\n tileSize: this.tileSize,\n minzoom: this.minzoom,\n maxzoom: this.maxzoom,\n roundZoom: this.roundZoom\n }).map(e => ({\n x: e.canonical.x,\n y: e.canonical.y,\n z: e.canonical.z\n }));\n }\n _clearTiles() {\n this._map.style._clearSource(this.id);\n }\n _update() {\n this.fire(new e.Event(\"data\", {\n dataType: \"source\",\n sourceDataType: \"content\"\n }));\n }\n }\n },\n De = function (t, i, o, r) {\n const n = new Se[i.type](t, i, o, r);\n if (n.id !== t) throw new Error(`Expected Source id to be ${t} instead of ${n.id}`);\n return e.bindAll([\"load\", \"abort\", \"unload\", \"serialize\", \"prepare\"], n), n;\n };\n function Le(t, i) {\n const o = e.identity([]);\n return e.scale(o, o, [.5 * t.width, .5 * -t.height, 1]), e.translate(o, o, [1, -1, 0]), e.multiply(o, o, t.calculateProjMatrix(i.toUnwrapped())), Float32Array.from(o);\n }\n function Ae(e, t, i, o, r, n, s, a = !1) {\n const l = e.tilesIn(o, s, a);\n l.sort(Re);\n const c = [];\n for (const o of l) c.push({\n wrappedTileID: o.tile.tileID.wrapped().key,\n queryResults: o.tile.queryRenderedFeatures(t, i, e._state, o, r, n, Le(e.transform, o.tile.tileID), a)\n });\n const h = function (e) {\n const t = {},\n i = {};\n for (const o of e) {\n const e = o.queryResults,\n r = o.wrappedTileID,\n n = i[r] = i[r] || {};\n for (const i in e) {\n const o = e[i],\n r = n[i] = n[i] || {},\n s = t[i] = t[i] || [];\n for (const e of o) r[e.featureIndex] || (r[e.featureIndex] = !0, s.push(e));\n }\n }\n return t;\n }(c);\n for (const t in h) h[t].forEach(t => {\n const i = t.feature,\n o = i.layer;\n o && \"background\" !== o.type && \"sky\" !== o.type && (i.source = o.source, o[\"source-layer\"] && (i.sourceLayer = o[\"source-layer\"]), i.state = void 0 !== i.id ? e.getFeatureState(o[\"source-layer\"], i.id) : {});\n });\n return h;\n }\n function ze(e, t) {\n const i = e.getRenderableIds().map(t => e.getTileByID(t)),\n o = [],\n r = {};\n for (let e = 0; e < i.length; e++) {\n const n = i[e],\n s = n.tileID.canonical.key;\n r[s] || (r[s] = !0, n.querySourceFeatures(o, t));\n }\n return o;\n }\n function Re(e, t) {\n const i = e.tileID,\n o = t.tileID;\n return i.overscaledZ - o.overscaledZ || i.canonical.y - o.canonical.y || i.wrap - o.wrap || i.canonical.x - o.canonical.x;\n }\n function Oe() {\n return null != dn.workerClass ? new dn.workerClass() : new e.window.Worker(dn.workerUrl);\n }\n const Be = \"mapboxgl_preloaded_worker_pool\";\n class ke {\n constructor() {\n this.active = {};\n }\n acquire(e) {\n if (!this.workers) for (this.workers = []; this.workers.length < ke.workerCount;) this.workers.push(new Oe());\n return this.active[e] = !0, this.workers.slice();\n }\n release(e) {\n delete this.active[e], 0 === this.numActive() && (this.workers.forEach(e => {\n e.terminate();\n }), this.workers = null);\n }\n isPreloaded() {\n return !!this.active[Be];\n }\n numActive() {\n return Object.keys(this.active).length;\n }\n }\n let Fe;\n function Ue() {\n return Fe || (Fe = new ke()), Fe;\n }\n function Ne(t, i) {\n const o = {};\n for (const e in t) \"ref\" !== e && (o[e] = t[e]);\n return e.refProperties.forEach(e => {\n e in i && (o[e] = i[e]);\n }), o;\n }\n function je(e) {\n e = e.slice();\n const t = Object.create(null);\n for (let i = 0; i < e.length; i++) t[e[i].id] = e[i];\n for (let i = 0; i < e.length; i++) \"ref\" in e[i] && (e[i] = Ne(e[i], t[e[i].ref]));\n return e;\n }\n ke.workerCount = 2;\n const Ge = {\n setStyle: \"setStyle\",\n addLayer: \"addLayer\",\n removeLayer: \"removeLayer\",\n setPaintProperty: \"setPaintProperty\",\n setLayoutProperty: \"setLayoutProperty\",\n setFilter: \"setFilter\",\n addSource: \"addSource\",\n removeSource: \"removeSource\",\n setGeoJSONSourceData: \"setGeoJSONSourceData\",\n setLayerZoomRange: \"setLayerZoomRange\",\n setLayerProperty: \"setLayerProperty\",\n setCenter: \"setCenter\",\n setZoom: \"setZoom\",\n setBearing: \"setBearing\",\n setPitch: \"setPitch\",\n setSprite: \"setSprite\",\n setGlyphs: \"setGlyphs\",\n setTransition: \"setTransition\",\n setLight: \"setLight\",\n setTerrain: \"setTerrain\",\n setFog: \"setFog\",\n setProjection: \"setProjection\"\n };\n function Ze(e, t, i) {\n i.push({\n command: Ge.addSource,\n args: [e, t[e]]\n });\n }\n function Ve(e, t, i) {\n t.push({\n command: Ge.removeSource,\n args: [e]\n }), i[e] = !0;\n }\n function We(e, t, i, o) {\n Ve(e, i, o), Ze(e, t, i);\n }\n function Xe(e, i, o) {\n let r;\n for (r in e[o]) if (e[o].hasOwnProperty(r) && \"data\" !== r && !t(e[o][r], i[o][r])) return !1;\n for (r in i[o]) if (i[o].hasOwnProperty(r) && \"data\" !== r && !t(e[o][r], i[o][r])) return !1;\n return !0;\n }\n function qe(e, i, o, r, n, s) {\n let a;\n for (a in i = i || {}, e = e || {}) e.hasOwnProperty(a) && (t(e[a], i[a]) || o.push({\n command: s,\n args: [r, a, i[a], n]\n }));\n for (a in i) i.hasOwnProperty(a) && !e.hasOwnProperty(a) && (t(e[a], i[a]) || o.push({\n command: s,\n args: [r, a, i[a], n]\n }));\n }\n function $e(e) {\n return e.id;\n }\n function He(e, t) {\n return e[t.id] = t, e;\n }\n class Ye {\n constructor(e, t) {\n this.reset(e, t);\n }\n reset(e, t) {\n this.points = e || [], this._distances = [0];\n for (let e = 1; e < this.points.length; e++) this._distances[e] = this._distances[e - 1] + this.points[e].dist(this.points[e - 1]);\n this.length = this._distances[this._distances.length - 1], this.padding = Math.min(t || 0, .5 * this.length), this.paddedLength = this.length - 2 * this.padding;\n }\n lerp(t) {\n if (1 === this.points.length) return this.points[0];\n t = e.clamp(t, 0, 1);\n let i = 1,\n o = this._distances[i];\n const r = t * this.paddedLength + this.padding;\n for (; o < r && i < this._distances.length;) o = this._distances[++i];\n const n = i - 1,\n s = this._distances[n],\n a = o - s,\n l = a > 0 ? (r - s) / a : 0;\n return this.points[n].mult(1 - l).add(this.points[i].mult(l));\n }\n }\n class Ke {\n constructor(e, t, i) {\n const o = this.boxCells = [],\n r = this.circleCells = [];\n this.xCellCount = Math.ceil(e / i), this.yCellCount = Math.ceil(t / i);\n for (let e = 0; e < this.xCellCount * this.yCellCount; e++) o.push([]), r.push([]);\n this.circleKeys = [], this.boxKeys = [], this.bboxes = [], this.circles = [], this.width = e, this.height = t, this.xScale = this.xCellCount / e, this.yScale = this.yCellCount / t, this.boxUid = 0, this.circleUid = 0;\n }\n keysLength() {\n return this.boxKeys.length + this.circleKeys.length;\n }\n insert(e, t, i, o, r) {\n this._forEachCell(t, i, o, r, this._insertBoxCell, this.boxUid++), this.boxKeys.push(e), this.bboxes.push(t), this.bboxes.push(i), this.bboxes.push(o), this.bboxes.push(r);\n }\n insertCircle(e, t, i, o) {\n this._forEachCell(t - o, i - o, t + o, i + o, this._insertCircleCell, this.circleUid++), this.circleKeys.push(e), this.circles.push(t), this.circles.push(i), this.circles.push(o);\n }\n _insertBoxCell(e, t, i, o, r, n) {\n this.boxCells[r].push(n);\n }\n _insertCircleCell(e, t, i, o, r, n) {\n this.circleCells[r].push(n);\n }\n _query(e, t, i, o, r, n) {\n if (i < 0 || e > this.width || o < 0 || t > this.height) return !r && [];\n const s = [];\n if (e <= 0 && t <= 0 && this.width <= i && this.height <= o) {\n if (r) return !0;\n for (let e = 0; e < this.boxKeys.length; e++) s.push({\n key: this.boxKeys[e],\n x1: this.bboxes[4 * e],\n y1: this.bboxes[4 * e + 1],\n x2: this.bboxes[4 * e + 2],\n y2: this.bboxes[4 * e + 3]\n });\n for (let e = 0; e < this.circleKeys.length; e++) {\n const t = this.circles[3 * e],\n i = this.circles[3 * e + 1],\n o = this.circles[3 * e + 2];\n s.push({\n key: this.circleKeys[e],\n x1: t - o,\n y1: i - o,\n x2: t + o,\n y2: i + o\n });\n }\n return n ? s.filter(n) : s;\n }\n return this._forEachCell(e, t, i, o, this._queryCell, s, {\n hitTest: r,\n seenUids: {\n box: {},\n circle: {}\n }\n }, n), r ? s.length > 0 : s;\n }\n _queryCircle(e, t, i, o, r) {\n const n = e - i,\n s = e + i,\n a = t - i,\n l = t + i;\n if (s < 0 || n > this.width || l < 0 || a > this.height) return !o && [];\n const c = [];\n return this._forEachCell(n, a, s, l, this._queryCellCircle, c, {\n hitTest: o,\n circle: {\n x: e,\n y: t,\n radius: i\n },\n seenUids: {\n box: {},\n circle: {}\n }\n }, r), o ? c.length > 0 : c;\n }\n query(e, t, i, o, r) {\n return this._query(e, t, i, o, !1, r);\n }\n hitTest(e, t, i, o, r) {\n return this._query(e, t, i, o, !0, r);\n }\n hitTestCircle(e, t, i, o) {\n return this._queryCircle(e, t, i, !0, o);\n }\n _queryCell(e, t, i, o, r, n, s, a) {\n const l = s.seenUids,\n c = this.boxCells[r];\n if (null !== c) {\n const r = this.bboxes;\n for (const h of c) if (!l.box[h]) {\n l.box[h] = !0;\n const c = 4 * h;\n if (e <= r[c + 2] && t <= r[c + 3] && i >= r[c + 0] && o >= r[c + 1] && (!a || a(this.boxKeys[h]))) {\n if (s.hitTest) return n.push(!0), !0;\n n.push({\n key: this.boxKeys[h],\n x1: r[c],\n y1: r[c + 1],\n x2: r[c + 2],\n y2: r[c + 3]\n });\n }\n }\n }\n const h = this.circleCells[r];\n if (null !== h) {\n const r = this.circles;\n for (const c of h) if (!l.circle[c]) {\n l.circle[c] = !0;\n const h = 3 * c;\n if (this._circleAndRectCollide(r[h], r[h + 1], r[h + 2], e, t, i, o) && (!a || a(this.circleKeys[c]))) {\n if (s.hitTest) return n.push(!0), !0;\n {\n const e = r[h],\n t = r[h + 1],\n i = r[h + 2];\n n.push({\n key: this.circleKeys[c],\n x1: e - i,\n y1: t - i,\n x2: e + i,\n y2: t + i\n });\n }\n }\n }\n }\n }\n _queryCellCircle(e, t, i, o, r, n, s, a) {\n const l = s.circle,\n c = s.seenUids,\n h = this.boxCells[r];\n if (null !== h) {\n const e = this.bboxes;\n for (const t of h) if (!c.box[t]) {\n c.box[t] = !0;\n const i = 4 * t;\n if (this._circleAndRectCollide(l.x, l.y, l.radius, e[i + 0], e[i + 1], e[i + 2], e[i + 3]) && (!a || a(this.boxKeys[t]))) return n.push(!0), !0;\n }\n }\n const u = this.circleCells[r];\n if (null !== u) {\n const e = this.circles;\n for (const t of u) if (!c.circle[t]) {\n c.circle[t] = !0;\n const i = 3 * t;\n if (this._circlesCollide(e[i], e[i + 1], e[i + 2], l.x, l.y, l.radius) && (!a || a(this.circleKeys[t]))) return n.push(!0), !0;\n }\n }\n }\n _forEachCell(e, t, i, o, r, n, s, a) {\n const l = this._convertToXCellCoord(e),\n c = this._convertToYCellCoord(t),\n h = this._convertToXCellCoord(i),\n u = this._convertToYCellCoord(o);\n for (let _ = l; _ <= h; _++) for (let l = c; l <= u; l++) if (r.call(this, e, t, i, o, this.xCellCount * l + _, n, s, a)) return;\n }\n _convertToXCellCoord(e) {\n return Math.max(0, Math.min(this.xCellCount - 1, Math.floor(e * this.xScale)));\n }\n _convertToYCellCoord(e) {\n return Math.max(0, Math.min(this.yCellCount - 1, Math.floor(e * this.yScale)));\n }\n _circlesCollide(e, t, i, o, r, n) {\n const s = o - e,\n a = r - t,\n l = i + n;\n return l * l > s * s + a * a;\n }\n _circleAndRectCollide(e, t, i, o, r, n, s) {\n const a = (n - o) / 2,\n l = Math.abs(e - (o + a));\n if (l > a + i) return !1;\n const c = (s - r) / 2,\n h = Math.abs(t - (r + c));\n if (h > c + i) return !1;\n if (l <= a || h <= c) return !0;\n const u = l - a,\n _ = h - c;\n return u * u + _ * _ <= i * i;\n }\n }\n const Je = {\n unknown: 0,\n flipRequired: 1,\n flipNotRequired: 2\n },\n Qe = Math.tan(85 * Math.PI / 180);\n function et(t, i, o, r, n, s, a) {\n const l = e.create();\n if (o) {\n if (\"globe\" === s.name) {\n const t = e.calculateGlobeLabelMatrix(n, i);\n e.multiply(l, l, t);\n } else {\n const t = v([], a);\n l[0] = t[0], l[1] = t[1], l[4] = t[2], l[5] = t[3], r || e.rotateZ(l, l, n.angle);\n }\n } else e.multiply(l, n.labelPlaneMatrix, t);\n return l;\n }\n function tt(e, t, i, o, r, n, s) {\n const a = et(e, t, i, o, r, n, s);\n return \"globe\" === n.name && i || (a[2] = a[6] = a[10] = a[14] = 0), a;\n }\n function it(t, i, o, r, n, s, a) {\n if (o) {\n if (\"globe\" === s.name) {\n const l = et(t, i, o, r, n, s, a);\n return e.invert(l, l), e.multiply(l, t, l), l;\n }\n {\n const i = e.clone(t),\n o = e.identity([]);\n return o[0] = a[0], o[1] = a[1], o[4] = a[2], o[5] = a[3], e.multiply(i, i, o), r || e.rotateZ(i, i, -n.angle), i;\n }\n }\n return n.glCoordMatrix;\n }\n function ot(t, i, o, r) {\n const n = [t, i, o, 1];\n o ? e.transformMat4$1(n, n, r) : pt(n, n, r);\n const s = n[3];\n return n[0] /= s, n[1] /= s, n[2] /= s, n;\n }\n function rt(e, t) {\n return Math.min(.5 + e / t * .5, 1.5);\n }\n function nt(e, t) {\n const i = e[0] / e[3],\n o = e[1] / e[3];\n return i >= -t[0] && i <= t[0] && o >= -t[1] && o <= t[1];\n }\n function st(t, i, o, r, n, s, a, l, c, h) {\n const u = o.transform,\n _ = r ? t.textSizeData : t.iconSizeData,\n d = e.evaluateSizeForZoom(_, o.transform.zoom),\n p = \"globe\" === u.projection.name,\n m = [256 / o.width * 2 + 1, 256 / o.height * 2 + 1],\n f = r ? t.text.dynamicLayoutVertexArray : t.icon.dynamicLayoutVertexArray;\n f.clear();\n let g = null;\n p && (g = r ? t.text.globeExtVertexArray : t.icon.globeExtVertexArray);\n const v = t.lineVertexArray,\n x = r ? t.text.placedSymbolArray : t.icon.placedSymbolArray,\n y = o.transform.width / o.transform.height;\n let b,\n w = !1;\n for (let r = 0; r < x.length; r++) {\n const p = x.get(r),\n {\n numGlyphs: T,\n writingMode: E\n } = p;\n if (E !== e.WritingMode.vertical || w || b === e.WritingMode.horizontal || (w = !0), b = E, (p.hidden || E === e.WritingMode.vertical) && !w) {\n dt(T, f);\n continue;\n }\n w = !1;\n const C = new e.Point(p.tileAnchorX, p.tileAnchorY);\n let {\n x: M,\n y: I,\n z: P\n } = u.projection.projectTilePoint(C.x, C.y, h.canonical);\n if (c) {\n const [e, t, i] = c(C);\n M += e, I += t, P += i;\n }\n const S = [M, I, P, 1];\n if (e.transformMat4$1(S, S, i), !nt(S, m)) {\n dt(T, f);\n continue;\n }\n const D = rt(o.transform.cameraToCenterDistance, S[3]),\n L = e.evaluateSizeForFeature(_, d, p),\n A = a ? L / D : L * D,\n z = ot(M, I, P, n);\n if (z[3] <= 0) {\n dt(T, f);\n continue;\n }\n let R = {};\n const O = a ? null : c,\n B = ct(p, A, !1, l, i, n, s, t.glyphOffsetArray, v, f, g, z, C, R, y, O, u.projection, h, a);\n w = B.useVertical, O && B.needsFlipping && (R = {}), (B.notEnoughRoom || w || B.needsFlipping && ct(p, A, !0, l, i, n, s, t.glyphOffsetArray, v, f, g, z, C, R, y, O, u.projection, h, a).notEnoughRoom) && dt(T, f);\n }\n r ? (t.text.dynamicLayoutVertexBuffer.updateData(f), g && t.text.globeExtVertexBuffer.updateData(g)) : (t.icon.dynamicLayoutVertexBuffer.updateData(f), g && t.icon.globeExtVertexBuffer.updateData(g));\n }\n function at(e, t, i, o, r, n, s, a, l, c, h, u, _, d, p, m) {\n const {\n lineStartIndex: f,\n glyphStartIndex: g,\n segment: v\n } = a,\n x = g + a.numGlyphs,\n y = f + a.lineLength,\n b = t.getoffsetX(g),\n w = t.getoffsetX(x - 1),\n T = _t(e * b, i, o, r, n, s, v, f, y, l, c, h, u, _, !0, d, p, m);\n if (!T) return null;\n const E = _t(e * w, i, o, r, n, s, v, f, y, l, c, h, u, _, !0, d, p, m);\n return E ? {\n first: T,\n last: E\n } : null;\n }\n function lt(t, i, o, r) {\n return t === e.WritingMode.horizontal && Math.abs(r) > Math.abs(o) ? {\n useVertical: !0\n } : t === e.WritingMode.vertical ? r > 0 ? {\n needsFlipping: !0\n } : null : i !== Je.unknown && function (e, t) {\n return 0 === e || Math.abs(t / e) > Qe;\n }(o, r) ? i === Je.flipRequired ? {\n needsFlipping: !0\n } : null : o < 0 ? {\n needsFlipping: !0\n } : null;\n }\n function ct(t, i, o, r, n, s, a, l, c, h, u, _, d, p, m, f, g, v, x) {\n const y = i / 24,\n b = t.lineOffsetX * y,\n w = t.lineOffsetY * y,\n {\n lineStartIndex: T,\n glyphStartIndex: E,\n numGlyphs: C,\n segment: M,\n writingMode: I,\n flipState: P\n } = t,\n S = T + t.lineLength,\n D = t => {\n if (u) {\n const [i, o, r] = t.up,\n n = h.length;\n e.updateGlobeVertexNormal(u, n + 0, i, o, r), e.updateGlobeVertexNormal(u, n + 1, i, o, r), e.updateGlobeVertexNormal(u, n + 2, i, o, r), e.updateGlobeVertexNormal(u, n + 3, i, o, r);\n }\n const [i, o, r] = t.point;\n e.addDynamicAttributes(h, i, o, r, t.angle);\n };\n if (C > 1) {\n const e = at(y, l, b, w, o, _, d, t, c, s, p, f, !1, g, v, x);\n if (!e) return {\n notEnoughRoom: !0\n };\n if (r && !o) {\n let [i, o, r] = e.first.point,\n [n, s, l] = e.last.point;\n [i, o] = ot(i, o, r, a), [n, s] = ot(n, s, l, a);\n const c = lt(I, P, (n - i) * m, s - o);\n if (t.flipState = c && c.needsFlipping ? Je.flipRequired : Je.flipNotRequired, c) return c;\n }\n D(e.first);\n for (let e = E + 1; e < E + C - 1; e++) {\n const t = _t(y * l.getoffsetX(e), b, w, o, _, d, M, T, S, c, s, p, f, !1, !1, g, v, x);\n if (!t) return h.length -= 4 * (e - E), {\n notEnoughRoom: !0\n };\n D(t);\n }\n D(e.last);\n } else {\n if (r && !o) {\n const i = ot(d.x, d.y, 0, n),\n o = T + M + 1,\n r = new e.Point(c.getx(o), c.gety(o)),\n s = ot(r.x, r.y, 0, n),\n a = s[3] > 0 ? s : ut(d, r, i, 1, n, void 0, g, v.canonical),\n l = lt(I, P, (a[0] - i[0]) * m, a[1] - i[1]);\n if (t.flipState = l && l.needsFlipping ? Je.flipRequired : Je.flipNotRequired, l) return l;\n }\n const i = _t(y * l.getoffsetX(E), b, w, o, _, d, M, T, S, c, s, p, f, !1, !1, g, v, x);\n if (!i) return {\n notEnoughRoom: !0\n };\n D(i);\n }\n return {};\n }\n function ht(e, t, i, o, r) {\n const {\n x: n,\n y: s,\n z: a\n } = o.projectTilePoint(e.x, e.y, t);\n if (!r) return ot(n, s, a, i);\n const [l, c, h] = r(e);\n return ot(n + l, s + c, a + h, i);\n }\n function ut(t, i, o, r, n, s, a, l) {\n const c = ht(t.sub(i)._unit()._add(t), l, n, a, s);\n return e.sub(c, o, c), e.normalize(c, c), e.scaleAndAdd(c, o, c, r);\n }\n function _t(t, i, o, r, n, s, a, l, c, h, u, _, d, p, m, f, g, v) {\n const x = r ? t - i : t + i;\n let y = x > 0 ? 1 : -1,\n b = 0;\n r && (y *= -1, b = Math.PI), y < 0 && (b += Math.PI);\n let w = l + a + (y > 0 ? 0 : 1) | 0,\n T = n,\n E = n,\n C = 0,\n M = 0;\n const I = Math.abs(x),\n P = [],\n S = [];\n let D = s,\n L = D;\n const A = () => ut(L, D, E, I - C + 1, u, d, f, g.canonical);\n for (; C + M <= I;) {\n if (w += y, w < l || w >= c) return null;\n if (E = T, L = D, P.push(E), p && S.push(L), D = new e.Point(h.getx(w), h.gety(w)), T = _[w], !T) {\n const e = ht(D, g.canonical, u, f, d);\n T = e[3] > 0 ? _[w] = e : A();\n }\n C += M, M = e.distance(E, T);\n }\n m && d && (_[w] && (T = A(), M = e.distance(E, T)), _[w] = T);\n const z = (I - C) / M,\n R = D.sub(L)._mult(z)._add(L),\n O = e.sub([], T, E),\n B = e.scaleAndAdd([], E, O, z);\n let k = [0, 0, 1],\n F = O[0],\n U = O[1];\n if (v && (k = f.upVector(g.canonical, R.x, R.y), 0 !== k[0] || 0 !== k[1] || 1 !== k[2])) {\n const t = [k[2], 0, -k[0]],\n i = e.cross([], k, t);\n e.normalize(t, t), e.normalize(i, i), F = e.dot(O, t), U = e.dot(O, i);\n }\n if (o) {\n const t = e.cross([], k, O);\n e.normalize(t, t), e.scaleAndAdd(B, B, t, o * y);\n }\n const N = b + Math.atan2(U, F);\n return P.push(B), p && S.push(R), {\n point: B,\n angle: N,\n path: P,\n tilePath: S,\n up: k\n };\n }\n function dt(e, t) {\n const i = t.length,\n o = i + 4 * e;\n t.resize(o), t.float32.fill(-1 / 0, 4 * i, 4 * o);\n }\n function pt(e, t, i) {\n const o = t[0],\n r = t[1];\n return e[0] = i[0] * o + i[4] * r + i[12], e[1] = i[1] * o + i[5] * r + i[13], e[3] = i[3] * o + i[7] * r + i[15], e;\n }\n const mt = 100;\n class ft {\n constructor(e, t, i = new Ke(e.width + 200, e.height + 200, 25), o = new Ke(e.width + 200, e.height + 200, 25)) {\n this.transform = e, this.grid = i, this.ignoredGrid = o, this.pitchfactor = Math.cos(e._pitch) * e.cameraToCenterDistance, this.screenRightBoundary = e.width + mt, this.screenBottomBoundary = e.height + mt, this.gridRightBoundary = e.width + 200, this.gridBottomBoundary = e.height + 200, this.fogState = t;\n }\n placeCollisionBox(e, t, i, o, r, n, s, a) {\n let l = i.projectedAnchorX,\n c = i.projectedAnchorY,\n h = i.projectedAnchorZ;\n const u = i.elevation,\n _ = i.tileID,\n d = e.getProjection();\n if (u && _) {\n const [e, t, o] = d.upVector(_.canonical, i.tileAnchorX, i.tileAnchorY),\n r = d.upVectorScale(_.canonical, this.transform.center.lat, this.transform.worldSize).metersToTile;\n l += e * u * r, c += t * u * r, h += o * u * r;\n }\n const p = this.projectAndGetPerspectiveRatio(s, l, c, h, i.tileID, \"globe\" === d.name || !!u || this.transform.pitch > 0, d),\n m = n * p.perspectiveRatio,\n f = (i.x1 * t + o.x - i.padding) * m + p.point.x,\n g = (i.y1 * t + o.y - i.padding) * m + p.point.y,\n v = (i.x2 * t + o.x + i.padding) * m + p.point.x,\n x = (i.y2 * t + o.y + i.padding) * m + p.point.y,\n y = p.perspectiveRatio <= .55 || p.occluded;\n return !this.isInsideGrid(f, g, v, x) || !r && this.grid.hitTest(f, g, v, x, a) || y ? {\n box: [],\n offscreen: !1,\n occluded: p.occluded\n } : {\n box: [f, g, v, x],\n offscreen: this.isOffscreen(f, g, v, x),\n occluded: !1\n };\n }\n placeCollisionCircles(t, i, o, r, n, s, a, l, c, h, u, _, d, p, m) {\n const f = [],\n g = this.transform.elevation,\n v = t.getProjection(),\n x = g ? g.getAtTileOffsetFunc(m, this.transform.center.lat, this.transform.worldSize, v) : null,\n y = new e.Point(o.tileAnchorX, o.tileAnchorY);\n let {\n x: b,\n y: w,\n z: T\n } = v.projectTilePoint(y.x, y.y, m.canonical);\n if (x) {\n const [e, t, i] = x(y);\n b += e, w += t, T += i;\n }\n const E = \"globe\" === v.name,\n C = this.projectAndGetPerspectiveRatio(a, b, w, T, m, E || !!g || this.transform.pitch > 0, v),\n {\n perspectiveRatio: M\n } = C,\n I = (u ? s / M : s * M) / e.ONE_EM,\n P = ot(b, w, T, l),\n S = C.signedDistanceFromCamera > 0 ? at(I, n, o.lineOffsetX * I, o.lineOffsetY * I, !1, P, y, o, r, l, {}, g && !u ? x : null, u && !!g, v, m, u) : null;\n let D = !1,\n L = !1,\n A = !0;\n if (S && !C.occluded) {\n const t = .5 * d * M + p,\n o = new e.Point(-100, -100),\n r = new e.Point(this.screenRightBoundary, this.screenBottomBoundary),\n n = new Ye(),\n {\n first: s,\n last: a\n } = S,\n l = s.path.length;\n let u = [];\n for (let e = l - 1; e >= 1; e--) u.push(s.path[e]);\n for (let e = 1; e < a.path.length; e++) u.push(a.path[e]);\n const m = 2.5 * t;\n c && (u = u.map(([e, t, i], o) => (x && !E && (i = x(o < l - 1 ? s.tilePath[l - 1 - o] : a.tilePath[o - l + 2])[2]), ot(e, t, i, c))), u.some(e => e[3] <= 0) && (u = []));\n let g = [];\n if (u.length > 0) {\n let t = 1 / 0,\n i = -1 / 0,\n n = 1 / 0,\n s = -1 / 0;\n for (const e of u) t = Math.min(t, e[0]), n = Math.min(n, e[1]), i = Math.max(i, e[0]), s = Math.max(s, e[1]);\n i >= o.x && t <= r.x && s >= o.y && n <= r.y && (g = [u.map(t => new e.Point(t[0], t[1]))], (t < o.x || i > r.x || n < o.y || s > r.y) && (g = e.clipLine(g, o.x, o.y, r.x, r.y)));\n }\n for (const e of g) {\n n.reset(e, .25 * t);\n let o = 0;\n o = n.length <= .5 * t ? 1 : Math.ceil(n.paddedLength / m) + 1;\n for (let e = 0; e < o; e++) {\n const r = e / Math.max(o - 1, 1),\n s = n.lerp(r),\n a = s.x + mt,\n l = s.y + mt;\n f.push(a, l, t, 0);\n const c = a - t,\n u = l - t,\n d = a + t,\n p = l + t;\n if (A = A && this.isOffscreen(c, u, d, p), L = L || this.isInsideGrid(c, u, d, p), !i && this.grid.hitTestCircle(a, l, t, _) && (D = !0, !h)) return {\n circles: [],\n offscreen: !1,\n collisionDetected: D,\n occluded: !1\n };\n }\n }\n }\n return {\n circles: !h && D || !L ? [] : f,\n offscreen: A,\n collisionDetected: D,\n occluded: C.occluded\n };\n }\n queryRenderedSymbols(t) {\n if (0 === t.length || 0 === this.grid.keysLength() && 0 === this.ignoredGrid.keysLength()) return {};\n const i = [];\n let o = 1 / 0,\n r = 1 / 0,\n n = -1 / 0,\n s = -1 / 0;\n for (const a of t) {\n const t = new e.Point(a.x + mt, a.y + mt);\n o = Math.min(o, t.x), r = Math.min(r, t.y), n = Math.max(n, t.x), s = Math.max(s, t.y), i.push(t);\n }\n const a = this.grid.query(o, r, n, s).concat(this.ignoredGrid.query(o, r, n, s)),\n l = {},\n c = {};\n for (const t of a) {\n const o = t.key;\n if (void 0 === l[o.bucketInstanceId] && (l[o.bucketInstanceId] = {}), l[o.bucketInstanceId][o.featureIndex]) continue;\n const r = [new e.Point(t.x1, t.y1), new e.Point(t.x2, t.y1), new e.Point(t.x2, t.y2), new e.Point(t.x1, t.y2)];\n e.polygonIntersectsPolygon(i, r) && (l[o.bucketInstanceId][o.featureIndex] = !0, void 0 === c[o.bucketInstanceId] && (c[o.bucketInstanceId] = []), c[o.bucketInstanceId].push(o.featureIndex));\n }\n return c;\n }\n insertCollisionBox(e, t, i, o, r) {\n (t ? this.ignoredGrid : this.grid).insert({\n bucketInstanceId: i,\n featureIndex: o,\n collisionGroupID: r\n }, e[0], e[1], e[2], e[3]);\n }\n insertCollisionCircles(e, t, i, o, r) {\n const n = t ? this.ignoredGrid : this.grid,\n s = {\n bucketInstanceId: i,\n featureIndex: o,\n collisionGroupID: r\n };\n for (let t = 0; t < e.length; t += 4) n.insertCircle(s, e[t], e[t + 1], e[t + 2]);\n }\n projectAndGetPerspectiveRatio(t, i, o, r, n, s, a) {\n const l = [i, o, r, 1];\n let c = !1;\n if (r || this.transform.pitch > 0) {\n if (e.transformMat4$1(l, l, t), this.fogState && n && \"globe\" !== a.name) {\n const t = function (t, i, o, r, n, s) {\n const a = s.calculateFogTileMatrix(n),\n l = [i, o, r];\n return e.transformMat4(l, l, a), C(t, l, s.pitch, s._fov);\n }(this.fogState, i, o, r, n.toUnwrapped(), this.transform);\n c = t > .9;\n }\n } else pt(l, l, t);\n const h = l[3];\n return {\n point: new e.Point((l[0] / h + 1) / 2 * this.transform.width + mt, (-l[1] / h + 1) / 2 * this.transform.height + mt),\n perspectiveRatio: Math.min(.5 + this.transform.getCameraToCenterDistance(a) / h * .5, 1.5),\n signedDistanceFromCamera: h,\n occluded: s && l[2] > h || c\n };\n }\n isOffscreen(e, t, i, o) {\n return i < mt || e >= this.screenRightBoundary || o < mt || t > this.screenBottomBoundary;\n }\n isInsideGrid(e, t, i, o) {\n return i >= 0 && e < this.gridRightBoundary && o >= 0 && t < this.gridBottomBoundary;\n }\n getViewportMatrix() {\n const t = e.identity([]);\n return e.translate(t, t, [-100, -100, 0]), t;\n }\n }\n function gt(t, i, o) {\n const r = i.createTileMatrix(t, t.worldSize, o.toUnwrapped());\n return e.multiply(new Float32Array(16), t.projMatrix, r);\n }\n function vt(e, t, i) {\n if (t.projection.name === i.projection.name) return e.projMatrix;\n const o = i.clone();\n return o.setProjection(t.projection), gt(o, t.getProjection(), e);\n }\n function xt(e, t, i) {\n return t.name === i.projection.name ? e.projMatrix : gt(i, t, e);\n }\n class yt {\n constructor(e, t, i, o) {\n this.opacity = e ? Math.max(0, Math.min(1, e.opacity + (e.placed ? t : -t))) : o && i ? 1 : 0, this.placed = i;\n }\n isHidden() {\n return 0 === this.opacity && !this.placed;\n }\n }\n class bt {\n constructor(e, t, i, o, r, n = !1) {\n this.text = new yt(e ? e.text : null, t, i, r), this.icon = new yt(e ? e.icon : null, t, o, r), this.clipped = n;\n }\n isHidden() {\n return this.text.isHidden() && this.icon.isHidden();\n }\n }\n class wt {\n constructor(e, t, i, o = !1) {\n this.text = e, this.icon = t, this.skipFade = i, this.clipped = o;\n }\n }\n class Tt {\n constructor() {\n this.invProjMatrix = e.create(), this.viewportMatrix = e.create(), this.circles = [];\n }\n }\n class Et {\n constructor(e, t, i, o, r) {\n this.bucketInstanceId = e, this.featureIndex = t, this.sourceLayerIndex = i, this.bucketIndex = o, this.tileID = r;\n }\n }\n class Ct {\n constructor(e) {\n this.crossSourceCollisions = e, this.maxGroupID = 0, this.collisionGroups = {};\n }\n get(e) {\n if (this.crossSourceCollisions) return {\n ID: 0,\n predicate: null\n };\n if (!this.collisionGroups[e]) {\n const t = ++this.maxGroupID;\n this.collisionGroups[e] = {\n ID: t,\n predicate: e => e.collisionGroupID === t\n };\n }\n return this.collisionGroups[e];\n }\n }\n function Mt(t, i, o, r, n) {\n const {\n horizontalAlign: s,\n verticalAlign: a\n } = e.getAnchorAlignment(t),\n l = -(s - .5) * i,\n c = -(a - .5) * o,\n h = e.evaluateVariableOffset(t, r);\n return new e.Point(l + h[0] * n, c + h[1] * n);\n }\n function It(t, i, o, r, n) {\n const s = new e.Point(t, i);\n return o && s._rotate(r ? n : -n), s;\n }\n class Pt {\n constructor(e, t, i, o, r) {\n this.transform = e.clone(), this.projection = e.projection.name, this.collisionIndex = new ft(this.transform, r), this.placements = {}, this.opacities = {}, this.variableOffsets = {}, this.stale = !1, this.commitTime = 0, this.fadeDuration = t, this.retainedQueryData = {}, this.collisionGroups = new Ct(i), this.collisionCircleArrays = {}, this.prevPlacement = o, o && (o.prevPlacement = void 0), this.placedOrientations = {};\n }\n getBucketParts(t, i, o, r) {\n const n = o.getBucket(i),\n s = o.latestFeatureIndex;\n if (!n || !s || i.id !== n.layerIds[0]) return;\n const a = n.layers[0].layout,\n l = o.collisionBoxArray,\n c = Math.pow(2, this.transform.zoom - o.tileID.overscaledZ),\n h = o.tileSize / e.EXTENT,\n u = o.tileID.toUnwrapped();\n this.transform.setProjection(n.projection);\n const _ = (d = o.tileID, p = n.getProjection(), m = this.transform, p.name === this.projection ? m.calculateProjMatrix(d.toUnwrapped()) : gt(m, p, d));\n var d, p, m;\n const f = \"map\" === a.get(\"text-pitch-alignment\"),\n g = \"map\" === a.get(\"text-rotation-alignment\");\n i.compileFilter();\n const v = i.dynamicFilter(),\n x = i.dynamicFilterNeedsFeature(),\n y = this.transform.calculatePixelsToTileUnitsMatrix(o),\n b = tt(_, o.tileID.canonical, f, g, this.transform, n.getProjection(), y);\n let w = null;\n if (f) {\n const t = it(_, o.tileID.canonical, f, g, this.transform, n.getProjection(), y);\n w = e.multiply([], this.transform.labelPlaneMatrix, t);\n }\n let T = null;\n v && o.latestFeatureIndex && (T = {\n unwrappedTileID: u,\n dynamicFilter: v,\n dynamicFilterNeedsFeature: x,\n featureIndex: o.latestFeatureIndex\n }), this.retainedQueryData[n.bucketInstanceId] = new Et(n.bucketInstanceId, s, n.sourceLayerIndex, n.index, o.tileID);\n const E = {\n bucket: n,\n layout: a,\n posMatrix: _,\n textLabelPlaneMatrix: b,\n labelToScreenMatrix: w,\n clippingData: T,\n scale: c,\n textPixelRatio: h,\n holdingForFade: o.holdingForFade(),\n collisionBoxArray: l,\n partiallyEvaluatedTextSize: e.evaluateSizeForZoom(n.textSizeData, this.transform.zoom),\n partiallyEvaluatedIconSize: e.evaluateSizeForZoom(n.iconSizeData, this.transform.zoom),\n collisionGroup: this.collisionGroups.get(n.sourceID)\n };\n if (r) for (const e of n.sortKeyRanges) {\n const {\n sortKey: i,\n symbolInstanceStart: o,\n symbolInstanceEnd: r\n } = e;\n t.push({\n sortKey: i,\n symbolInstanceStart: o,\n symbolInstanceEnd: r,\n parameters: E\n });\n } else t.push({\n symbolInstanceStart: 0,\n symbolInstanceEnd: n.symbolInstances.length,\n parameters: E\n });\n }\n attemptAnchorPlacement(e, t, i, o, r, n, s, a, l, c, h, u, _, d, p, m, f, g) {\n const {\n textOffset0: v,\n textOffset1: x,\n crossTileID: y\n } = u,\n b = [v, x],\n w = Mt(e, i, o, b, r),\n T = this.collisionIndex.placeCollisionBox(d, r, t, It(w.x, w.y, n, s, this.transform.angle), h, a, l, c.predicate);\n if (m) {\n const e = d.getSymbolInstanceIconSize(g, this.transform.zoom, u.placedIconSymbolIndex);\n if (0 === this.collisionIndex.placeCollisionBox(d, e, m, It(w.x, w.y, n, s, this.transform.angle), h, a, l, c.predicate).box.length) return;\n }\n if (T.box.length > 0) {\n let t;\n return this.prevPlacement && this.prevPlacement.variableOffsets[y] && this.prevPlacement.placements[y] && this.prevPlacement.placements[y].text && (t = this.prevPlacement.variableOffsets[y].anchor), this.variableOffsets[y] = {\n textOffset: b,\n width: i,\n height: o,\n anchor: e,\n textScale: r,\n prevAnchor: t\n }, this.markUsedJustification(d, e, u, p), d.allowVerticalPlacement && (this.markUsedOrientation(d, p, u), this.placedOrientations[y] = p), {\n shift: w,\n placedGlyphBoxes: T\n };\n }\n }\n placeLayerBucketPart(t, i, o, r) {\n const {\n bucket: n,\n layout: s,\n posMatrix: a,\n textLabelPlaneMatrix: l,\n labelToScreenMatrix: c,\n clippingData: h,\n textPixelRatio: u,\n holdingForFade: _,\n collisionBoxArray: d,\n partiallyEvaluatedTextSize: p,\n partiallyEvaluatedIconSize: m,\n collisionGroup: f\n } = t.parameters,\n g = s.get(\"text-optional\"),\n v = s.get(\"icon-optional\"),\n x = s.get(\"text-allow-overlap\"),\n y = s.get(\"icon-allow-overlap\"),\n b = \"map\" === s.get(\"text-rotation-alignment\"),\n w = \"map\" === s.get(\"text-pitch-alignment\"),\n T = \"none\" !== s.get(\"icon-text-fit\"),\n E = \"viewport-y\" === s.get(\"symbol-z-order\");\n this.transform.setProjection(n.projection);\n let C = x && (y || !n.hasIconData() || v),\n M = y && (x || !n.hasTextData() || g);\n !n.collisionArrays && d && n.deserializeCollisionBoxes(d), o && r && n.updateCollisionDebugBuffers(this.transform.zoom, d);\n const I = (t, r, d) => {\n const {\n crossTileID: E,\n numVerticalGlyphVertices: I\n } = t;\n if (h) {\n const o = {\n zoom: this.transform.zoom,\n pitch: this.transform.pitch\n };\n let r = null;\n if (h.dynamicFilterNeedsFeature) {\n const e = this.retainedQueryData[n.bucketInstanceId];\n r = h.featureIndex.loadFeature({\n featureIndex: t.featureIndex,\n bucketIndex: e.bucketIndex,\n sourceLayerIndex: e.sourceLayerIndex,\n layoutVertexArrayOffset: 0\n });\n }\n if (!(0, h.dynamicFilter)(o, r, this.retainedQueryData[n.bucketInstanceId].tileID.canonical, new e.Point(t.tileAnchorX, t.tileAnchorY), this.transform.calculateDistanceTileData(h.unwrappedTileID))) return this.placements[E] = new wt(!1, !1, !1, !0), void i.add(E);\n }\n if (i.has(E)) return;\n if (_) return void (this.placements[E] = new wt(!1, !1, !1));\n let P = !1,\n S = !1,\n D = !0,\n L = !1,\n A = !1,\n z = null,\n R = {\n box: null,\n offscreen: null,\n occluded: null\n },\n O = {\n box: null,\n offscreen: null,\n occluded: null\n },\n B = null,\n k = null,\n F = null,\n U = 0,\n N = 0,\n j = 0;\n d.textFeatureIndex ? U = d.textFeatureIndex : t.useRuntimeCollisionCircles && (U = t.featureIndex), d.verticalTextFeatureIndex && (N = d.verticalTextFeatureIndex);\n const G = e => {\n e.tileID = this.retainedQueryData[n.bucketInstanceId].tileID;\n const t = this.transform.elevation;\n (t || e.elevation) && (e.elevation = t ? t.getAtTileOffset(e.tileID, e.tileAnchorX, e.tileAnchorY) : 0);\n },\n Z = d.textBox;\n if (Z) {\n G(Z);\n const i = i => {\n let o = e.WritingMode.horizontal;\n if (n.allowVerticalPlacement && !i && this.prevPlacement) {\n const e = this.prevPlacement.placedOrientations[E];\n e && (this.placedOrientations[E] = e, o = e, this.markUsedOrientation(n, o, t));\n }\n return o;\n },\n o = (t, i) => {\n if (n.allowVerticalPlacement && I > 0 && d.verticalTextBox) {\n for (const o of n.writingModes) if (o === e.WritingMode.vertical ? (R = i(), O = R) : R = t(), R && R.box && R.box.length) break;\n } else R = t();\n };\n if (s.get(\"text-variable-anchor\")) {\n let l = s.get(\"text-variable-anchor\");\n if (this.prevPlacement && this.prevPlacement.variableOffsets[E]) {\n const e = this.prevPlacement.variableOffsets[E];\n l.indexOf(e.anchor) > 0 && (l = l.filter(t => t !== e.anchor), l.unshift(e.anchor));\n }\n const c = (e, i, o) => {\n const s = n.getSymbolInstanceTextSize(p, t, this.transform.zoom, r),\n c = (e.x2 - e.x1) * s + 2 * e.padding,\n h = (e.y2 - e.y1) * s + 2 * e.padding,\n _ = T && !y ? i : null;\n _ && G(_);\n let d = {\n box: [],\n offscreen: !1,\n occluded: !1\n };\n const g = x ? 2 * l.length : l.length;\n for (let i = 0; i < g; ++i) {\n const g = this.attemptAnchorPlacement(l[i % l.length], e, c, h, s, b, w, u, a, f, i >= l.length, t, r, n, o, _, p, m);\n if (g && (d = g.placedGlyphBoxes, d && d.box && d.box.length)) {\n P = !0, z = g.shift;\n break;\n }\n }\n return d;\n };\n o(() => c(Z, d.iconBox, e.WritingMode.horizontal), () => {\n const t = d.verticalTextBox;\n return t && G(t), n.allowVerticalPlacement && !(R && R.box && R.box.length) && I > 0 && t ? c(t, d.verticalIconBox, e.WritingMode.vertical) : {\n box: null,\n offscreen: null,\n occluded: null\n };\n }), R && (P = R.box, D = R.offscreen, L = R.occluded);\n const h = i(!(!R || !R.box));\n if (!P && this.prevPlacement) {\n const e = this.prevPlacement.variableOffsets[E];\n e && (this.variableOffsets[E] = e, this.markUsedJustification(n, e.anchor, t, h));\n }\n } else {\n const s = (i, o) => {\n const s = n.getSymbolInstanceTextSize(p, t, this.transform.zoom, r),\n l = this.collisionIndex.placeCollisionBox(n, s, i, new e.Point(0, 0), x, u, a, f.predicate);\n return l && l.box && l.box.length && (this.markUsedOrientation(n, o, t), this.placedOrientations[E] = o), l;\n };\n o(() => s(Z, e.WritingMode.horizontal), () => {\n const t = d.verticalTextBox;\n return n.allowVerticalPlacement && I > 0 && t ? (G(t), s(t, e.WritingMode.vertical)) : {\n box: null,\n offscreen: null,\n occluded: null\n };\n }), i(!!(R && R.box && R.box.length));\n }\n }\n if (B = R, P = B && B.box && B.box.length > 0, D = B && B.offscreen, L = B && B.occluded, t.useRuntimeCollisionCircles) {\n const i = n.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex >= 0 ? t.centerJustifiedTextSymbolIndex : t.verticalPlacedTextSymbolIndex),\n r = e.evaluateSizeForFeature(n.textSizeData, p, i),\n h = s.get(\"text-padding\");\n k = this.collisionIndex.placeCollisionCircles(n, x, i, n.lineVertexArray, n.glyphOffsetArray, r, a, l, c, o, w, f.predicate, t.collisionCircleDiameter * r / e.ONE_EM, h, this.retainedQueryData[n.bucketInstanceId].tileID), P = x || k.circles.length > 0 && !k.collisionDetected, D = D && k.offscreen, L = k.occluded;\n }\n if (d.iconFeatureIndex && (j = d.iconFeatureIndex), d.iconBox) {\n const i = i => {\n G(i);\n const o = T && z ? It(z.x, z.y, b, w, this.transform.angle) : new e.Point(0, 0),\n r = n.getSymbolInstanceIconSize(m, this.transform.zoom, t.placedIconSymbolIndex);\n return this.collisionIndex.placeCollisionBox(n, r, i, o, y, u, a, f.predicate);\n };\n O && O.box && O.box.length && d.verticalIconBox ? (F = i(d.verticalIconBox), S = F.box.length > 0) : (F = i(d.iconBox), S = F.box.length > 0), D = D && F.offscreen, A = F.occluded;\n }\n const V = g || 0 === t.numHorizontalGlyphVertices && 0 === I,\n W = v || 0 === t.numIconVertices;\n if (V || W ? W ? V || (S = S && P) : P = S && P : S = P = S && P, P && B && B.box && this.collisionIndex.insertCollisionBox(B.box, s.get(\"text-ignore-placement\"), n.bucketInstanceId, O && O.box && N ? N : U, f.ID), S && F && this.collisionIndex.insertCollisionBox(F.box, s.get(\"icon-ignore-placement\"), n.bucketInstanceId, j, f.ID), k && (P && this.collisionIndex.insertCollisionCircles(k.circles, s.get(\"text-ignore-placement\"), n.bucketInstanceId, U, f.ID), o)) {\n const e = n.bucketInstanceId;\n let t = this.collisionCircleArrays[e];\n void 0 === t && (t = this.collisionCircleArrays[e] = new Tt());\n for (let e = 0; e < k.circles.length; e += 4) t.circles.push(k.circles[e + 0]), t.circles.push(k.circles[e + 1]), t.circles.push(k.circles[e + 2]), t.circles.push(k.collisionDetected ? 1 : 0);\n }\n const X = \"globe\" !== n.projection.name;\n C = C && (X || !L), M = M && (X || !A), this.placements[E] = new wt(P || C, S || M, D || n.justReloaded), i.add(E);\n };\n if (E) {\n const e = n.getSortedSymbolIndexes(this.transform.angle);\n for (let t = e.length - 1; t >= 0; --t) {\n const i = e[t];\n I(n.symbolInstances.get(i), i, n.collisionArrays[i]);\n }\n } else for (let e = t.symbolInstanceStart; e < t.symbolInstanceEnd; e++) I(n.symbolInstances.get(e), e, n.collisionArrays[e]);\n if (o && n.bucketInstanceId in this.collisionCircleArrays) {\n const t = this.collisionCircleArrays[n.bucketInstanceId];\n e.invert(t.invProjMatrix, a), t.viewportMatrix = this.collisionIndex.getViewportMatrix();\n }\n n.justReloaded = !1;\n }\n markUsedJustification(t, i, o, r) {\n const {\n leftJustifiedTextSymbolIndex: n,\n centerJustifiedTextSymbolIndex: s,\n rightJustifiedTextSymbolIndex: a,\n verticalPlacedTextSymbolIndex: l,\n crossTileID: c\n } = o,\n h = e.getAnchorJustification(i),\n u = r === e.WritingMode.vertical ? l : \"left\" === h ? n : \"center\" === h ? s : \"right\" === h ? a : -1;\n n >= 0 && (t.text.placedSymbolArray.get(n).crossTileID = u >= 0 && n !== u ? 0 : c), s >= 0 && (t.text.placedSymbolArray.get(s).crossTileID = u >= 0 && s !== u ? 0 : c), a >= 0 && (t.text.placedSymbolArray.get(a).crossTileID = u >= 0 && a !== u ? 0 : c), l >= 0 && (t.text.placedSymbolArray.get(l).crossTileID = u >= 0 && l !== u ? 0 : c);\n }\n markUsedOrientation(t, i, o) {\n const r = i === e.WritingMode.horizontal || i === e.WritingMode.horizontalOnly ? i : 0,\n n = i === e.WritingMode.vertical ? i : 0,\n {\n leftJustifiedTextSymbolIndex: s,\n centerJustifiedTextSymbolIndex: a,\n rightJustifiedTextSymbolIndex: l,\n verticalPlacedTextSymbolIndex: c\n } = o,\n h = t.text.placedSymbolArray;\n s >= 0 && (h.get(s).placedOrientation = r), a >= 0 && (h.get(a).placedOrientation = r), l >= 0 && (h.get(l).placedOrientation = r), c >= 0 && (h.get(c).placedOrientation = n);\n }\n commit(e) {\n this.commitTime = e, this.zoomAtLastRecencyCheck = this.transform.zoom;\n const t = this.prevPlacement;\n let i = !1;\n this.prevZoomAdjustment = t ? t.zoomAdjustment(this.transform.zoom) : 0;\n const o = t ? t.symbolFadeChange(e) : 1,\n r = t ? t.opacities : {},\n n = t ? t.variableOffsets : {},\n s = t ? t.placedOrientations : {};\n for (const e in this.placements) {\n const t = this.placements[e],\n n = r[e];\n n ? (this.opacities[e] = new bt(n, o, t.text, t.icon, null, t.clipped), i = i || t.text !== n.text.placed || t.icon !== n.icon.placed) : (this.opacities[e] = new bt(null, o, t.text, t.icon, t.skipFade, t.clipped), i = i || t.text || t.icon);\n }\n for (const e in r) {\n const t = r[e];\n if (!this.opacities[e]) {\n const r = new bt(t, o, !1, !1);\n r.isHidden() || (this.opacities[e] = r, i = i || t.text.placed || t.icon.placed);\n }\n }\n for (const e in n) this.variableOffsets[e] || !this.opacities[e] || this.opacities[e].isHidden() || (this.variableOffsets[e] = n[e]);\n for (const e in s) this.placedOrientations[e] || !this.opacities[e] || this.opacities[e].isHidden() || (this.placedOrientations[e] = s[e]);\n i ? this.lastPlacementChangeTime = e : \"number\" != typeof this.lastPlacementChangeTime && (this.lastPlacementChangeTime = t ? t.lastPlacementChangeTime : e);\n }\n updateLayerOpacities(e, t) {\n const i = new Set();\n for (const o of t) {\n const t = o.getBucket(e);\n t && o.latestFeatureIndex && e.id === t.layerIds[0] && this.updateBucketOpacities(t, i, o.collisionBoxArray);\n }\n }\n updateBucketOpacities(t, i, o) {\n t.hasTextData() && t.text.opacityVertexArray.clear(), t.hasIconData() && t.icon.opacityVertexArray.clear(), t.hasIconCollisionBoxData() && t.iconCollisionBox.collisionVertexArray.clear(), t.hasTextCollisionBoxData() && t.textCollisionBox.collisionVertexArray.clear();\n const r = t.layers[0].layout,\n n = !!t.layers[0].dynamicFilter(),\n s = new bt(null, 0, !1, !1, !0),\n a = r.get(\"text-allow-overlap\"),\n l = r.get(\"icon-allow-overlap\"),\n c = r.get(\"text-variable-anchor\"),\n h = \"map\" === r.get(\"text-rotation-alignment\"),\n u = \"map\" === r.get(\"text-pitch-alignment\"),\n _ = \"none\" !== r.get(\"icon-text-fit\"),\n d = new bt(null, 0, a && (l || !t.hasIconData() || r.get(\"icon-optional\")), l && (a || !t.hasTextData() || r.get(\"text-optional\")), !0);\n !t.collisionArrays && o && (t.hasIconCollisionBoxData() || t.hasTextCollisionBoxData()) && t.deserializeCollisionBoxes(o);\n const p = (e, t, i) => {\n for (let o = 0; o < t / 4; o++) e.opacityVertexArray.emplaceBack(i);\n };\n let m = 0;\n for (let o = 0; o < t.symbolInstances.length; o++) {\n const r = t.symbolInstances.get(o),\n {\n numHorizontalGlyphVertices: a,\n numVerticalGlyphVertices: l,\n crossTileID: f,\n numIconVertices: g\n } = r,\n v = i.has(f);\n let x = this.opacities[f];\n v ? x = s : x || (x = d, this.opacities[f] = x), i.add(f);\n const y = a > 0 || l > 0,\n b = g > 0,\n w = this.placedOrientations[f],\n T = w === e.WritingMode.vertical,\n E = w === e.WritingMode.horizontal || w === e.WritingMode.horizontalOnly;\n if (!y && !b || x.isHidden() || m++, y) {\n const e = kt(x.text);\n p(t.text, a, T ? Ft : e), p(t.text, l, E ? Ft : e);\n const i = x.text.isHidden(),\n {\n leftJustifiedTextSymbolIndex: o,\n centerJustifiedTextSymbolIndex: n,\n rightJustifiedTextSymbolIndex: s,\n verticalPlacedTextSymbolIndex: c\n } = r,\n h = t.text.placedSymbolArray,\n u = i || T ? 1 : 0;\n o >= 0 && (h.get(o).hidden = u), n >= 0 && (h.get(n).hidden = u), s >= 0 && (h.get(s).hidden = u), c >= 0 && (h.get(c).hidden = i || E ? 1 : 0);\n const _ = this.variableOffsets[f];\n _ && this.markUsedJustification(t, _.anchor, r, w);\n const d = this.placedOrientations[f];\n d && (this.markUsedJustification(t, \"left\", r, d), this.markUsedOrientation(t, d, r));\n }\n if (b) {\n const e = kt(x.icon),\n {\n placedIconSymbolIndex: i,\n verticalPlacedIconSymbolIndex: o\n } = r,\n n = t.icon.placedSymbolArray,\n s = x.icon.isHidden() ? 1 : 0;\n i >= 0 && (p(t.icon, g, T ? Ft : e), n.get(i).hidden = s), o >= 0 && (p(t.icon, r.numVerticalIconVertices, E ? Ft : e), n.get(o).hidden = s);\n }\n if (t.hasIconCollisionBoxData() || t.hasTextCollisionBoxData()) {\n const i = t.collisionArrays[o];\n if (i) {\n let o = new e.Point(0, 0),\n r = !0;\n if (i.textBox || i.verticalTextBox) {\n if (c) {\n const e = this.variableOffsets[f];\n e ? (o = Mt(e.anchor, e.width, e.height, e.textOffset, e.textScale), h && o._rotate(u ? this.transform.angle : -this.transform.angle)) : r = !1;\n }\n n && (r = !x.clipped), i.textBox && St(t.textCollisionBox.collisionVertexArray, x.text.placed, !r || T, o.x, o.y), i.verticalTextBox && St(t.textCollisionBox.collisionVertexArray, x.text.placed, !r || E, o.x, o.y);\n }\n const s = r && Boolean(!E && i.verticalIconBox);\n i.iconBox && St(t.iconCollisionBox.collisionVertexArray, x.icon.placed, s, _ ? o.x : 0, _ ? o.y : 0), i.verticalIconBox && St(t.iconCollisionBox.collisionVertexArray, x.icon.placed, !s, _ ? o.x : 0, _ ? o.y : 0);\n }\n }\n }\n if (t.fullyClipped = 0 === m, t.sortFeatures(this.transform.angle), this.retainedQueryData[t.bucketInstanceId] && (this.retainedQueryData[t.bucketInstanceId].featureSortOrder = t.featureSortOrder), t.hasTextData() && t.text.opacityVertexBuffer && t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray), t.hasIconData() && t.icon.opacityVertexBuffer && t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray), t.hasIconCollisionBoxData() && t.iconCollisionBox.collisionVertexBuffer && t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray), t.hasTextCollisionBoxData() && t.textCollisionBox.collisionVertexBuffer && t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray), t.bucketInstanceId in this.collisionCircleArrays) {\n const e = this.collisionCircleArrays[t.bucketInstanceId];\n t.placementInvProjMatrix = e.invProjMatrix, t.placementViewportMatrix = e.viewportMatrix, t.collisionCircleArray = e.circles, delete this.collisionCircleArrays[t.bucketInstanceId];\n }\n }\n symbolFadeChange(e) {\n return 0 === this.fadeDuration ? 1 : (e - this.commitTime) / this.fadeDuration + this.prevZoomAdjustment;\n }\n zoomAdjustment(e) {\n return Math.max(0, (this.transform.zoom - e) / 1.5);\n }\n hasTransitions(e) {\n return this.stale || e - this.lastPlacementChangeTime < this.fadeDuration;\n }\n stillRecent(e, t) {\n const i = this.zoomAtLastRecencyCheck === t ? 1 - this.zoomAdjustment(t) : 1;\n return this.zoomAtLastRecencyCheck = t, this.commitTime + this.fadeDuration * i > e;\n }\n setStale() {\n this.stale = !0;\n }\n }\n function St(e, t, i, o, r) {\n e.emplaceBack(t ? 1 : 0, i ? 1 : 0, o || 0, r || 0), e.emplaceBack(t ? 1 : 0, i ? 1 : 0, o || 0, r || 0), e.emplaceBack(t ? 1 : 0, i ? 1 : 0, o || 0, r || 0), e.emplaceBack(t ? 1 : 0, i ? 1 : 0, o || 0, r || 0);\n }\n const Dt = Math.pow(2, 25),\n Lt = Math.pow(2, 24),\n At = Math.pow(2, 17),\n zt = Math.pow(2, 16),\n Rt = Math.pow(2, 9),\n Ot = Math.pow(2, 8),\n Bt = Math.pow(2, 1);\n function kt(e) {\n if (0 === e.opacity && !e.placed) return 0;\n if (1 === e.opacity && e.placed) return 4294967295;\n const t = e.placed ? 1 : 0,\n i = Math.floor(127 * e.opacity);\n return i * Dt + t * Lt + i * At + t * zt + i * Rt + t * Ot + i * Bt + t;\n }\n const Ft = 0;\n class Ut {\n constructor(e) {\n this._sortAcrossTiles = \"viewport-y\" !== e.layout.get(\"symbol-z-order\") && void 0 !== e.layout.get(\"symbol-sort-key\").constantOr(1), this._currentTileIndex = 0, this._currentPartIndex = 0, this._seenCrossTileIDs = new Set(), this._bucketParts = [];\n }\n continuePlacement(e, t, i, o, r) {\n const n = this._bucketParts;\n for (; this._currentTileIndex < e.length;) if (t.getBucketParts(n, o, e[this._currentTileIndex], this._sortAcrossTiles), this._currentTileIndex++, r()) return !0;\n for (this._sortAcrossTiles && (this._sortAcrossTiles = !1, n.sort((e, t) => e.sortKey - t.sortKey)); this._currentPartIndex < n.length;) {\n const e = n[this._currentPartIndex];\n if (t.placeLayerBucketPart(e, this._seenCrossTileIDs, i, 0 === e.symbolInstanceStart), this._currentPartIndex++, r()) return !0;\n }\n return !1;\n }\n }\n class Nt {\n constructor(e, t, i, o, r, n, s, a) {\n this.placement = new Pt(e, r, n, s, a), this._currentPlacementIndex = t.length - 1, this._forceFullPlacement = i, this._showCollisionBoxes = o, this._done = !1;\n }\n isDone() {\n return this._done;\n }\n continuePlacement(t, i, o) {\n const r = e.exported.now(),\n n = () => {\n const t = e.exported.now() - r;\n return !this._forceFullPlacement && t > 2;\n };\n for (; this._currentPlacementIndex >= 0;) {\n const e = i[t[this._currentPlacementIndex]],\n r = this.placement.collisionIndex.transform.zoom;\n if (\"symbol\" === e.type && (!e.minzoom || e.minzoom <= r) && (!e.maxzoom || e.maxzoom > r)) {\n if (this._inProgressLayer || (this._inProgressLayer = new Ut(e)), this._inProgressLayer.continuePlacement(o[e.source], this.placement, this._showCollisionBoxes, e, n)) return;\n delete this._inProgressLayer;\n }\n this._currentPlacementIndex--;\n }\n this._done = !0;\n }\n commit(e) {\n return this.placement.commit(e), this.placement;\n }\n }\n const jt = 512 / e.EXTENT / 2;\n class Gt {\n constructor(t, i, o) {\n this.tileID = t, this.bucketInstanceId = o, this.index = new e.KDBush(i.length, 16, Int32Array), this.keys = [], this.crossTileIDs = [];\n const r = t.canonical.x * e.EXTENT,\n n = t.canonical.y * e.EXTENT;\n for (let e = 0; e < i.length; e++) {\n const {\n key: t,\n crossTileID: o,\n tileAnchorX: s,\n tileAnchorY: a\n } = i.get(e),\n l = Math.floor((r + s) * jt),\n c = Math.floor((n + a) * jt);\n this.index.add(l, c), this.keys.push(t), this.crossTileIDs.push(o);\n }\n this.index.finish();\n }\n findMatches(t, i, o) {\n const r = this.tileID.canonical.z < i.canonical.z ? 1 : Math.pow(2, this.tileID.canonical.z - i.canonical.z),\n n = jt / Math.pow(2, i.canonical.z - this.tileID.canonical.z),\n s = i.canonical.x * e.EXTENT,\n a = i.canonical.y * e.EXTENT;\n for (let e = 0; e < t.length; e++) {\n const i = t.get(e);\n if (i.crossTileID) continue;\n const {\n key: l,\n tileAnchorX: c,\n tileAnchorY: h\n } = i,\n u = Math.floor((s + c) * n),\n _ = Math.floor((a + h) * n),\n d = this.index.range(u - r, _ - r, u + r, _ + r);\n for (const e of d) {\n const t = this.crossTileIDs[e];\n if (this.keys[e] === l && !o.has(t)) {\n o.add(t), i.crossTileID = t;\n break;\n }\n }\n }\n }\n }\n class Zt {\n constructor() {\n this.maxCrossTileID = 0;\n }\n generate() {\n return ++this.maxCrossTileID;\n }\n }\n class Vt {\n constructor() {\n this.indexes = {}, this.usedCrossTileIDs = {}, this.lng = 0;\n }\n handleWrapJump(e) {\n const t = Math.round((e - this.lng) / 360);\n if (0 !== t) for (const e in this.indexes) {\n const i = this.indexes[e],\n o = {};\n for (const e in i) {\n const r = i[e];\n r.tileID = r.tileID.unwrapTo(r.tileID.wrap + t), o[r.tileID.key] = r;\n }\n this.indexes[e] = o;\n }\n this.lng = e;\n }\n addBucket(e, t, i) {\n if (this.indexes[e.overscaledZ] && this.indexes[e.overscaledZ][e.key]) {\n if (this.indexes[e.overscaledZ][e.key].bucketInstanceId === t.bucketInstanceId) return !1;\n this.removeBucketCrossTileIDs(e.overscaledZ, this.indexes[e.overscaledZ][e.key]);\n }\n for (let e = 0; e < t.symbolInstances.length; e++) t.symbolInstances.get(e).crossTileID = 0;\n this.usedCrossTileIDs[e.overscaledZ] || (this.usedCrossTileIDs[e.overscaledZ] = new Set());\n const o = this.usedCrossTileIDs[e.overscaledZ];\n for (const i in this.indexes) {\n const r = this.indexes[i];\n if (Number(i) > e.overscaledZ) for (const i in r) {\n const n = r[i];\n n.tileID.isChildOf(e) && n.findMatches(t.symbolInstances, e, o);\n } else {\n const n = r[e.scaledTo(Number(i)).key];\n n && n.findMatches(t.symbolInstances, e, o);\n }\n }\n for (let e = 0; e < t.symbolInstances.length; e++) {\n const r = t.symbolInstances.get(e);\n r.crossTileID || (r.crossTileID = i.generate(), o.add(r.crossTileID));\n }\n return void 0 === this.indexes[e.overscaledZ] && (this.indexes[e.overscaledZ] = {}), this.indexes[e.overscaledZ][e.key] = new Gt(e, t.symbolInstances, t.bucketInstanceId), !0;\n }\n removeBucketCrossTileIDs(e, t) {\n for (const i of t.crossTileIDs) this.usedCrossTileIDs[e].delete(i);\n }\n removeStaleBuckets(e) {\n let t = !1;\n for (const i in this.indexes) {\n const o = this.indexes[i];\n for (const r in o) e[o[r].bucketInstanceId] || (this.removeBucketCrossTileIDs(i, o[r]), delete o[r], t = !0);\n }\n return t;\n }\n }\n class Wt {\n constructor() {\n this.layerIndexes = {}, this.crossTileIDs = new Zt(), this.maxBucketInstanceId = 0, this.bucketsInCurrentPlacement = {};\n }\n addLayer(e, t, i, o) {\n let r = this.layerIndexes[e.id];\n void 0 === r && (r = this.layerIndexes[e.id] = new Vt());\n let n = !1;\n const s = {};\n \"globe\" !== o.name && r.handleWrapJump(i);\n for (const i of t) {\n const t = i.getBucket(e);\n t && e.id === t.layerIds[0] && (t.bucketInstanceId || (t.bucketInstanceId = ++this.maxBucketInstanceId), r.addBucket(i.tileID, t, this.crossTileIDs) && (n = !0), s[t.bucketInstanceId] = !0);\n }\n return r.removeStaleBuckets(s) && (n = !0), n;\n }\n pruneUnusedLayers(e) {\n const t = {};\n e.forEach(e => {\n t[e] = !0;\n });\n for (const e in this.layerIndexes) t[e] || delete this.layerIndexes[e];\n }\n }\n const Xt = (t, i) => e.emitValidationErrors(t, i && i.filter(e => \"source.canvas\" !== e.identifier)),\n qt = e.pick(Ge, [\"addLayer\", \"removeLayer\", \"setPaintProperty\", \"setLayoutProperty\", \"setFilter\", \"addSource\", \"removeSource\", \"setLayerZoomRange\", \"setLight\", \"setTransition\", \"setGeoJSONSourceData\", \"setTerrain\", \"setFog\", \"setProjection\"]),\n $t = e.pick(Ge, [\"setCenter\", \"setZoom\", \"setBearing\", \"setPitch\"]),\n Ht = {\n version: 8,\n layers: [],\n sources: {}\n },\n Yt = {\n fill: !0,\n line: !0,\n background: !0,\n hillshade: !0,\n raster: !0\n };\n class Kt extends e.Evented {\n constructor(t, i = {}) {\n super(), this.map = t, this.dispatcher = new S(Ue(), this), this.imageManager = new y(), this.imageManager.setEventedParent(this), this.glyphManager = new e.GlyphManager(t._requestManager, i.localFontFamily ? e.LocalGlyphMode.all : i.localIdeographFontFamily ? e.LocalGlyphMode.ideographs : e.LocalGlyphMode.none, i.localFontFamily || i.localIdeographFontFamily), this.crossTileSymbolIndex = new Wt(), this._layers = {}, this._num3DLayers = 0, this._numSymbolLayers = 0, this._numCircleLayers = 0, this._serializedLayers = {}, this._sourceCaches = {}, this._otherSourceCaches = {}, this._symbolSourceCaches = {}, this._loaded = !1, this._availableImages = [], this._order = [], this._drapedFirstOrder = [], this._markersNeedUpdate = !1, this._resetUpdates(), this.dispatcher.broadcast(\"setReferrer\", e.getReferrer());\n const o = this;\n this._rtlTextPluginCallback = Kt.registerForPluginStateChange(t => {\n o.dispatcher.broadcast(\"syncRTLPluginState\", {\n pluginStatus: t.pluginStatus,\n pluginURL: t.pluginURL\n }, (t, i) => {\n if (e.triggerPluginCompletionEvent(t), i && i.every(e => e)) for (const e in o._sourceCaches) {\n const t = o._sourceCaches[e],\n i = t.getSource().type;\n \"vector\" !== i && \"geojson\" !== i || t.reload();\n }\n });\n }), this.on(\"data\", e => {\n if (\"source\" !== e.dataType || \"metadata\" !== e.sourceDataType) return;\n const t = this.getSource(e.sourceId);\n if (t && t.vectorLayerIds) for (const e in this._layers) {\n const i = this._layers[e];\n i.source === t.id && this._validateLayer(i);\n }\n });\n }\n loadURL(t, i = {}) {\n this.fire(new e.Event(\"dataloading\", {\n dataType: \"style\"\n }));\n const o = \"boolean\" == typeof i.validate ? i.validate : !e.isMapboxURL(t);\n t = this.map._requestManager.normalizeStyleURL(t, i.accessToken);\n const r = this.map._requestManager.transformRequest(t, e.ResourceType.Style);\n this._request = e.getJSON(r, (t, i) => {\n this._request = null, t ? this.fire(new e.ErrorEvent(t)) : i && this._load(i, o);\n });\n }\n loadJSON(t, i = {}) {\n this.fire(new e.Event(\"dataloading\", {\n dataType: \"style\"\n })), this._request = e.exported.frame(() => {\n this._request = null, this._load(t, !1 !== i.validate);\n });\n }\n loadEmpty() {\n this.fire(new e.Event(\"dataloading\", {\n dataType: \"style\"\n })), this._load(Ht, !1);\n }\n _updateLayerCount(e, t) {\n const i = t ? 1 : -1;\n e.is3D() && (this._num3DLayers += i), \"circle\" === e.type && (this._numCircleLayers += i), \"symbol\" === e.type && (this._numSymbolLayers += i);\n }\n _load(t, i) {\n if (i && Xt(this, e.validateStyle(t))) return;\n this._loaded = !0, this.stylesheet = e.clone$1(t), this._updateMapProjection();\n for (const e in t.sources) this.addSource(e, t.sources[e], {\n validate: !1\n });\n this._changed = !1, t.sprite ? this._loadSprite(t.sprite) : (this.imageManager.setLoaded(!0), this.dispatcher.broadcast(\"spriteLoaded\", !0)), this.glyphManager.setURL(t.glyphs);\n const o = je(this.stylesheet.layers);\n this._order = o.map(e => e.id), this._layers = {}, this._serializedLayers = {};\n for (const t of o) {\n const i = e.createStyleLayer(t);\n i.setEventedParent(this, {\n layer: {\n id: i.id\n }\n }), this._layers[i.id] = i, this._serializedLayers[i.id] = i.serialize(), this._updateLayerCount(i, !0);\n }\n this.dispatcher.broadcast(\"setLayers\", this._serializeLayers(this._order)), this.light = new w(this.stylesheet.light), this.stylesheet.terrain && !this.terrainSetForDrapingOnly() && this._createTerrain(this.stylesheet.terrain, 1), this.stylesheet.fog && this._createFog(this.stylesheet.fog), this._updateDrapeFirstLayers(), this.fire(new e.Event(\"data\", {\n dataType: \"style\"\n })), this.fire(new e.Event(\"style.load\"));\n }\n terrainSetForDrapingOnly() {\n return !!this.terrain && 0 === this.terrain.drapeRenderMode;\n }\n setProjection(e) {\n e ? this.stylesheet.projection = e : delete this.stylesheet.projection, this._updateMapProjection();\n }\n applyProjectionUpdate() {\n this._loaded && (this.dispatcher.broadcast(\"setProjection\", this.map.transform.projectionOptions), this.map.transform.projection.requiresDraping ? this.getTerrain() || this.stylesheet.terrain || this.setTerrainForDraping() : this.terrainSetForDrapingOnly() && this.setTerrain(null));\n }\n _updateMapProjection() {\n this.map._useExplicitProjection ? this.applyProjectionUpdate() : this.map._prioritizeAndUpdateProjection(null, this.stylesheet.projection);\n }\n _loadSprite(t) {\n this._spriteRequest = function (t, i, o) {\n let r, n, s;\n const a = e.exported.devicePixelRatio > 1 ? \"@2x\" : \"\";\n let l = e.getJSON(i.transformRequest(i.normalizeSpriteURL(t, a, \".json\"), e.ResourceType.SpriteJSON), (e, t) => {\n l = null, s || (s = e, r = t, h());\n }),\n c = e.getImage(i.transformRequest(i.normalizeSpriteURL(t, a, \".png\"), e.ResourceType.SpriteImage), (e, t) => {\n c = null, s || (s = e, n = t, h());\n });\n function h() {\n if (s) o(s);else if (r && n) {\n const t = e.exported.getImageData(n),\n i = {};\n for (const o in r) {\n const {\n width: n,\n height: s,\n x: a,\n y: l,\n sdf: c,\n pixelRatio: h,\n stretchX: u,\n stretchY: _,\n content: d\n } = r[o],\n p = new e.RGBAImage({\n width: n,\n height: s\n });\n e.RGBAImage.copy(t, p, {\n x: a,\n y: l\n }, {\n x: 0,\n y: 0\n }, {\n width: n,\n height: s\n }), i[o] = {\n data: p,\n pixelRatio: h,\n sdf: c,\n stretchX: u,\n stretchY: _,\n content: d\n };\n }\n o(null, i);\n }\n }\n return {\n cancel() {\n l && (l.cancel(), l = null), c && (c.cancel(), c = null);\n }\n };\n }(t, this.map._requestManager, (t, i) => {\n if (this._spriteRequest = null, t) this.fire(new e.ErrorEvent(t));else if (i) for (const e in i) this.imageManager.addImage(e, i[e]);\n this.imageManager.setLoaded(!0), this._availableImages = this.imageManager.listImages(), this.dispatcher.broadcast(\"setImages\", this._availableImages), this.dispatcher.broadcast(\"spriteLoaded\", !0), this.fire(new e.Event(\"data\", {\n dataType: \"style\"\n }));\n });\n }\n _validateLayer(t) {\n const i = this.getSource(t.source);\n if (!i) return;\n const o = t.sourceLayer;\n o && (\"geojson\" === i.type || i.vectorLayerIds && -1 === i.vectorLayerIds.indexOf(o)) && this.fire(new e.ErrorEvent(new Error(`Source layer \"${o}\" does not exist on source \"${i.id}\" as specified by style layer \"${t.id}\"`)));\n }\n loaded() {\n if (!this._loaded) return !1;\n if (Object.keys(this._updatedSources).length) return !1;\n for (const e in this._sourceCaches) if (!this._sourceCaches[e].loaded()) return !1;\n return !!this.imageManager.isLoaded();\n }\n _serializeLayers(e) {\n const t = [];\n for (const i of e) {\n const e = this._layers[i];\n \"custom\" !== e.type && t.push(e.serialize());\n }\n return t;\n }\n hasTransitions() {\n if (this.light && this.light.hasTransition()) return !0;\n if (this.fog && this.fog.hasTransition()) return !0;\n for (const e in this._sourceCaches) if (this._sourceCaches[e].hasTransition()) return !0;\n for (const e in this._layers) if (this._layers[e].hasTransition()) return !0;\n return !1;\n }\n get order() {\n return this.map._optimizeForTerrain && this.terrain ? this._drapedFirstOrder : this._order;\n }\n isLayerDraped(e) {\n return !!this.terrain && (\"function\" == typeof e.isLayerDraped ? e.isLayerDraped() : Yt[e.type]);\n }\n _checkLoaded() {\n if (!this._loaded) throw new Error(\"Style is not done loading\");\n }\n update(t) {\n if (!this._loaded) return;\n const i = this._changed;\n if (this._changed) {\n const e = Object.keys(this._updatedLayers),\n i = Object.keys(this._removedLayers);\n (e.length || i.length) && this._updateWorkerLayers(e, i);\n for (const e in this._updatedSources) {\n const t = this._updatedSources[e];\n \"reload\" === t ? this._reloadSource(e) : \"clear\" === t && this._clearSource(e);\n }\n this._updateTilesForChangedImages();\n for (const e in this._updatedPaintProps) this._layers[e].updateTransitions(t);\n this.light.updateTransitions(t), this.fog && this.fog.updateTransitions(t), this._resetUpdates();\n }\n const o = {};\n for (const e in this._sourceCaches) {\n const t = this._sourceCaches[e];\n o[e] = t.used, t.used = !1;\n }\n for (const e of this._order) {\n const i = this._layers[e];\n if (i.recalculate(t, this._availableImages), !i.isHidden(t.zoom)) {\n const e = this._getLayerSourceCache(i);\n e && (e.used = !0);\n }\n const o = this.map.painter;\n if (o) {\n const e = i.getProgramIds();\n if (!e) continue;\n const r = i.getProgramConfiguration(t.zoom);\n for (const t of e) o.useProgram(t, r);\n }\n }\n for (const t in o) {\n const i = this._sourceCaches[t];\n o[t] !== i.used && i.getSource().fire(new e.Event(\"data\", {\n sourceDataType: \"visibility\",\n dataType: \"source\",\n sourceId: i.getSource().id\n }));\n }\n this.light.recalculate(t), this.terrain && this.terrain.recalculate(t), this.fog && this.fog.recalculate(t), this.z = t.zoom, this._markersNeedUpdate && (this._updateMarkersOpacity(), this._markersNeedUpdate = !1), i && this.fire(new e.Event(\"data\", {\n dataType: \"style\"\n }));\n }\n _updateTilesForChangedImages() {\n const e = Object.keys(this._changedImages);\n if (e.length) {\n for (const t in this._sourceCaches) this._sourceCaches[t].reloadTilesForDependencies([\"icons\", \"patterns\"], e);\n this._changedImages = {};\n }\n }\n _updateWorkerLayers(e, t) {\n this.dispatcher.broadcast(\"updateLayers\", {\n layers: this._serializeLayers(e),\n removedIds: t\n });\n }\n _resetUpdates() {\n this._changed = !1, this._updatedLayers = {}, this._removedLayers = {}, this._updatedSources = {}, this._updatedPaintProps = {}, this._changedImages = {};\n }\n setState(i) {\n if (this._checkLoaded(), Xt(this, e.validateStyle(i))) return !1;\n (i = e.clone$1(i)).layers = je(i.layers);\n const o = function (e, i) {\n if (!e) return [{\n command: Ge.setStyle,\n args: [i]\n }];\n let o = [];\n try {\n if (!t(e.version, i.version)) return [{\n command: Ge.setStyle,\n args: [i]\n }];\n t(e.center, i.center) || o.push({\n command: Ge.setCenter,\n args: [i.center]\n }), t(e.zoom, i.zoom) || o.push({\n command: Ge.setZoom,\n args: [i.zoom]\n }), t(e.bearing, i.bearing) || o.push({\n command: Ge.setBearing,\n args: [i.bearing]\n }), t(e.pitch, i.pitch) || o.push({\n command: Ge.setPitch,\n args: [i.pitch]\n }), t(e.sprite, i.sprite) || o.push({\n command: Ge.setSprite,\n args: [i.sprite]\n }), t(e.glyphs, i.glyphs) || o.push({\n command: Ge.setGlyphs,\n args: [i.glyphs]\n }), t(e.transition, i.transition) || o.push({\n command: Ge.setTransition,\n args: [i.transition]\n }), t(e.light, i.light) || o.push({\n command: Ge.setLight,\n args: [i.light]\n }), t(e.fog, i.fog) || o.push({\n command: Ge.setFog,\n args: [i.fog]\n }), t(e.projection, i.projection) || o.push({\n command: Ge.setProjection,\n args: [i.projection]\n });\n const r = {},\n n = [];\n !function (e, i, o, r) {\n let n;\n for (n in i = i || {}, e = e || {}) e.hasOwnProperty(n) && (i.hasOwnProperty(n) || Ve(n, o, r));\n for (n in i) {\n if (!i.hasOwnProperty(n)) continue;\n const s = i[n];\n e.hasOwnProperty(n) ? t(e[n], s) || (\"geojson\" === e[n].type && \"geojson\" === s.type && Xe(e, i, n) ? o.push({\n command: Ge.setGeoJSONSourceData,\n args: [n, s.data]\n }) : We(n, i, o, r)) : Ze(n, i, o);\n }\n }(e.sources, i.sources, n, r);\n const s = [];\n e.layers && e.layers.forEach(e => {\n e.source && r[e.source] ? o.push({\n command: Ge.removeLayer,\n args: [e.id]\n }) : s.push(e);\n });\n let a = e.terrain;\n a && r[a.source] && (o.push({\n command: Ge.setTerrain,\n args: [void 0]\n }), a = void 0), o = o.concat(n), t(a, i.terrain) || o.push({\n command: Ge.setTerrain,\n args: [i.terrain]\n }), function (e, i, o) {\n i = i || [];\n const r = (e = e || []).map($e),\n n = i.map($e),\n s = e.reduce(He, {}),\n a = i.reduce(He, {}),\n l = r.slice(),\n c = Object.create(null);\n let h, u, _, d, p, m, f;\n for (h = 0, u = 0; h < r.length; h++) _ = r[h], a.hasOwnProperty(_) ? u++ : (o.push({\n command: Ge.removeLayer,\n args: [_]\n }), l.splice(l.indexOf(_, u), 1));\n for (h = 0, u = 0; h < n.length; h++) _ = n[n.length - 1 - h], l[l.length - 1 - h] !== _ && (s.hasOwnProperty(_) ? (o.push({\n command: Ge.removeLayer,\n args: [_]\n }), l.splice(l.lastIndexOf(_, l.length - u), 1)) : u++, m = l[l.length - h], o.push({\n command: Ge.addLayer,\n args: [a[_], m]\n }), l.splice(l.length - h, 0, _), c[_] = !0);\n for (h = 0; h < n.length; h++) if (_ = n[h], d = s[_], p = a[_], !c[_] && !t(d, p)) if (t(d.source, p.source) && t(d[\"source-layer\"], p[\"source-layer\"]) && t(d.type, p.type)) {\n for (f in qe(d.layout, p.layout, o, _, null, Ge.setLayoutProperty), qe(d.paint, p.paint, o, _, null, Ge.setPaintProperty), t(d.filter, p.filter) || o.push({\n command: Ge.setFilter,\n args: [_, p.filter]\n }), t(d.minzoom, p.minzoom) && t(d.maxzoom, p.maxzoom) || o.push({\n command: Ge.setLayerZoomRange,\n args: [_, p.minzoom, p.maxzoom]\n }), d) d.hasOwnProperty(f) && \"layout\" !== f && \"paint\" !== f && \"filter\" !== f && \"metadata\" !== f && \"minzoom\" !== f && \"maxzoom\" !== f && (0 === f.indexOf(\"paint.\") ? qe(d[f], p[f], o, _, f.slice(6), Ge.setPaintProperty) : t(d[f], p[f]) || o.push({\n command: Ge.setLayerProperty,\n args: [_, f, p[f]]\n }));\n for (f in p) p.hasOwnProperty(f) && !d.hasOwnProperty(f) && \"layout\" !== f && \"paint\" !== f && \"filter\" !== f && \"metadata\" !== f && \"minzoom\" !== f && \"maxzoom\" !== f && (0 === f.indexOf(\"paint.\") ? qe(d[f], p[f], o, _, f.slice(6), Ge.setPaintProperty) : t(d[f], p[f]) || o.push({\n command: Ge.setLayerProperty,\n args: [_, f, p[f]]\n }));\n } else o.push({\n command: Ge.removeLayer,\n args: [_]\n }), m = l[l.lastIndexOf(_) + 1], o.push({\n command: Ge.addLayer,\n args: [p, m]\n });\n }(s, i.layers, o);\n } catch (e) {\n console.warn(\"Unable to compute style diff:\", e), o = [{\n command: Ge.setStyle,\n args: [i]\n }];\n }\n return o;\n }(this.serialize(), i).filter(e => !(e.command in $t));\n if (0 === o.length) return !1;\n const r = o.filter(e => !(e.command in qt));\n if (r.length > 0) throw new Error(`Unimplemented: ${r.map(e => e.command).join(\", \")}.`);\n return o.forEach(e => {\n \"setTransition\" !== e.command && \"setProjection\" !== e.command && this[e.command].apply(this, e.args);\n }), this.stylesheet = i, this._updateMapProjection(), !0;\n }\n addImage(t, i) {\n return this.getImage(t) ? this.fire(new e.ErrorEvent(new Error(\"An image with this name already exists.\"))) : (this.imageManager.addImage(t, i), this._afterImageUpdated(t), this);\n }\n updateImage(e, t) {\n this.imageManager.updateImage(e, t);\n }\n getImage(e) {\n return this.imageManager.getImage(e);\n }\n removeImage(t) {\n return this.getImage(t) ? (this.imageManager.removeImage(t), this._afterImageUpdated(t), this) : this.fire(new e.ErrorEvent(new Error(\"No image with this name exists.\")));\n }\n _afterImageUpdated(t) {\n this._availableImages = this.imageManager.listImages(), this._changedImages[t] = !0, this._changed = !0, this.dispatcher.broadcast(\"setImages\", this._availableImages), this.fire(new e.Event(\"data\", {\n dataType: \"style\"\n }));\n }\n listImages() {\n return this._checkLoaded(), this._availableImages.slice();\n }\n addSource(t, i, o = {}) {\n if (this._checkLoaded(), void 0 !== this.getSource(t)) throw new Error(\"There is already a source with this ID\");\n if (!i.type) throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(i).join(\", \")}.`);\n if ([\"vector\", \"raster\", \"geojson\", \"video\", \"image\"].indexOf(i.type) >= 0 && this._validate(e.validateSource, `sources.${t}`, i, null, o)) return;\n this.map && this.map._collectResourceTiming && (i.collectResourceTiming = !0);\n const r = De(t, i, this.dispatcher, this);\n r.setEventedParent(this, () => ({\n isSourceLoaded: this._isSourceCacheLoaded(t),\n source: r.serialize(),\n sourceId: t\n }));\n const n = i => {\n const o = (i ? \"symbol:\" : \"other:\") + t,\n n = this._sourceCaches[o] = new e.SourceCache(o, r, i);\n (i ? this._symbolSourceCaches : this._otherSourceCaches)[t] = n, n.style = this, n.onAdd(this.map);\n };\n n(!1), \"vector\" !== i.type && \"geojson\" !== i.type || n(!0), r.onAdd && r.onAdd(this.map), this._changed = !0;\n }\n removeSource(t) {\n this._checkLoaded();\n const i = this.getSource(t);\n if (!i) throw new Error(\"There is no source with this ID\");\n for (const i in this._layers) if (this._layers[i].source === t) return this.fire(new e.ErrorEvent(new Error(`Source \"${t}\" cannot be removed while layer \"${i}\" is using it.`)));\n if (this.terrain && this.terrain.get().source === t) return this.fire(new e.ErrorEvent(new Error(`Source \"${t}\" cannot be removed while terrain is using it.`)));\n const o = this._getSourceCaches(t);\n for (const t of o) delete this._sourceCaches[t.id], delete this._updatedSources[t.id], t.fire(new e.Event(\"data\", {\n sourceDataType: \"metadata\",\n dataType: \"source\",\n sourceId: t.getSource().id\n })), t.setEventedParent(null), t.clearTiles();\n return delete this._otherSourceCaches[t], delete this._symbolSourceCaches[t], i.setEventedParent(null), i.onRemove && i.onRemove(this.map), this._changed = !0, this;\n }\n setGeoJSONSourceData(e, t) {\n this._checkLoaded(), this.getSource(e).setData(t), this._changed = !0;\n }\n getSource(e) {\n const t = this._getSourceCache(e);\n return t && t.getSource();\n }\n _getSources() {\n const e = [];\n for (const t in this._otherSourceCaches) {\n const i = this._getSourceCache(t);\n i && e.push(i.getSource());\n }\n return e;\n }\n addLayer(t, i, o = {}) {\n this._checkLoaded();\n const r = t.id;\n if (this.getLayer(r)) return void this.fire(new e.ErrorEvent(new Error(`Layer with id \"${r}\" already exists on this map`)));\n let n;\n if (\"custom\" === t.type) {\n if (Xt(this, e.validateCustomStyleLayer(t))) return;\n n = e.createStyleLayer(t);\n } else {\n if (\"object\" == typeof t.source && (this.addSource(r, t.source), t = e.clone$1(t), t = e.extend(t, {\n source: r\n })), this._validate(e.validateLayer, `layers.${r}`, t, {\n arrayIndex: -1\n }, o)) return;\n n = e.createStyleLayer(t), this._validateLayer(n), n.setEventedParent(this, {\n layer: {\n id: r\n }\n }), this._serializedLayers[n.id] = n.serialize(), this._updateLayerCount(n, !0);\n }\n const s = i ? this._order.indexOf(i) : this._order.length;\n if (i && -1 === s) return void this.fire(new e.ErrorEvent(new Error(`Layer with id \"${i}\" does not exist on this map.`)));\n this._order.splice(s, 0, r), this._layerOrderChanged = !0, this._layers[r] = n;\n const a = this._getLayerSourceCache(n);\n if (this._removedLayers[r] && n.source && a && \"custom\" !== n.type) {\n const e = this._removedLayers[r];\n delete this._removedLayers[r], e.type !== n.type ? this._updatedSources[n.source] = \"clear\" : (this._updatedSources[n.source] = \"reload\", a.pause());\n }\n this._updateLayer(n), n.onAdd && n.onAdd(this.map), this._updateDrapeFirstLayers();\n }\n moveLayer(t, i) {\n if (this._checkLoaded(), this._changed = !0, !this._layers[t]) return void this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be moved.`)));\n if (t === i) return;\n const o = this._order.indexOf(t);\n this._order.splice(o, 1);\n const r = i ? this._order.indexOf(i) : this._order.length;\n i && -1 === r ? this.fire(new e.ErrorEvent(new Error(`Layer with id \"${i}\" does not exist on this map.`))) : (this._order.splice(r, 0, t), this._layerOrderChanged = !0, this._updateDrapeFirstLayers());\n }\n removeLayer(t) {\n this._checkLoaded();\n const i = this._layers[t];\n if (!i) return void this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be removed.`)));\n i.setEventedParent(null), this._updateLayerCount(i, !1);\n const o = this._order.indexOf(t);\n this._order.splice(o, 1), this._layerOrderChanged = !0, this._changed = !0, this._removedLayers[t] = i, delete this._layers[t], delete this._serializedLayers[t], delete this._updatedLayers[t], delete this._updatedPaintProps[t], i.onRemove && i.onRemove(this.map), this._updateDrapeFirstLayers();\n }\n getLayer(e) {\n return this._layers[e];\n }\n hasLayer(e) {\n return e in this._layers;\n }\n hasLayerType(e) {\n for (const t in this._layers) if (this._layers[t].type === e) return !0;\n return !1;\n }\n setLayerZoomRange(t, i, o) {\n this._checkLoaded();\n const r = this.getLayer(t);\n r ? r.minzoom === i && r.maxzoom === o || (null != i && (r.minzoom = i), null != o && (r.maxzoom = o), this._updateLayer(r)) : this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot have zoom extent.`)));\n }\n setFilter(i, o, r = {}) {\n this._checkLoaded();\n const n = this.getLayer(i);\n if (n) {\n if (!t(n.filter, o)) return null == o ? (n.filter = void 0, void this._updateLayer(n)) : void (this._validate(e.validateFilter, `layers.${n.id}.filter`, o, {\n layerType: n.type\n }, r) || (n.filter = e.clone$1(o), this._updateLayer(n)));\n } else this.fire(new e.ErrorEvent(new Error(`The layer '${i}' does not exist in the map's style and cannot be filtered.`)));\n }\n getFilter(t) {\n const i = this.getLayer(t);\n return i && e.clone$1(i.filter);\n }\n setLayoutProperty(i, o, r, n = {}) {\n this._checkLoaded();\n const s = this.getLayer(i);\n s ? t(s.getLayoutProperty(o), r) || (s.setLayoutProperty(o, r, n), this._updateLayer(s)) : this.fire(new e.ErrorEvent(new Error(`The layer '${i}' does not exist in the map's style and cannot be styled.`)));\n }\n getLayoutProperty(t, i) {\n const o = this.getLayer(t);\n if (o) return o.getLayoutProperty(i);\n this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style.`)));\n }\n setPaintProperty(i, o, r, n = {}) {\n this._checkLoaded();\n const s = this.getLayer(i);\n s ? t(s.getPaintProperty(o), r) || (s.setPaintProperty(o, r, n) && this._updateLayer(s), this._changed = !0, this._updatedPaintProps[i] = !0) : this.fire(new e.ErrorEvent(new Error(`The layer '${i}' does not exist in the map's style and cannot be styled.`)));\n }\n getPaintProperty(e, t) {\n const i = this.getLayer(e);\n return i && i.getPaintProperty(t);\n }\n setFeatureState(t, i) {\n this._checkLoaded();\n const o = t.source,\n r = t.sourceLayer,\n n = this.getSource(o);\n if (!n) return void this.fire(new e.ErrorEvent(new Error(`The source '${o}' does not exist in the map's style.`)));\n const s = n.type;\n if (\"geojson\" === s && r) return void this.fire(new e.ErrorEvent(new Error(\"GeoJSON sources cannot have a sourceLayer parameter.\")));\n if (\"vector\" === s && !r) return void this.fire(new e.ErrorEvent(new Error(\"The sourceLayer parameter must be provided for vector source types.\")));\n void 0 === t.id && this.fire(new e.ErrorEvent(new Error(\"The feature id parameter must be provided.\")));\n const a = this._getSourceCaches(o);\n for (const e of a) e.setFeatureState(r, t.id, i);\n }\n removeFeatureState(t, i) {\n this._checkLoaded();\n const o = t.source,\n r = this.getSource(o);\n if (!r) return void this.fire(new e.ErrorEvent(new Error(`The source '${o}' does not exist in the map's style.`)));\n const n = r.type,\n s = \"vector\" === n ? t.sourceLayer : void 0;\n if (\"vector\" === n && !s) return void this.fire(new e.ErrorEvent(new Error(\"The sourceLayer parameter must be provided for vector source types.\")));\n if (i && \"string\" != typeof t.id && \"number\" != typeof t.id) return void this.fire(new e.ErrorEvent(new Error(\"A feature id is required to remove its specific state property.\")));\n const a = this._getSourceCaches(o);\n for (const e of a) e.removeFeatureState(s, t.id, i);\n }\n getFeatureState(t) {\n this._checkLoaded();\n const i = t.source,\n o = t.sourceLayer,\n r = this.getSource(i);\n if (r) {\n if (\"vector\" !== r.type || o) return void 0 === t.id && this.fire(new e.ErrorEvent(new Error(\"The feature id parameter must be provided.\"))), this._getSourceCaches(i)[0].getFeatureState(o, t.id);\n this.fire(new e.ErrorEvent(new Error(\"The sourceLayer parameter must be provided for vector source types.\")));\n } else this.fire(new e.ErrorEvent(new Error(`The source '${i}' does not exist in the map's style.`)));\n }\n getTransition() {\n return e.extend({\n duration: 300,\n delay: 0\n }, this.stylesheet && this.stylesheet.transition);\n }\n serialize() {\n const t = {};\n for (const e in this._sourceCaches) {\n const i = this._sourceCaches[e].getSource();\n t[i.id] || (t[i.id] = i.serialize());\n }\n return e.filterObject({\n version: this.stylesheet.version,\n name: this.stylesheet.name,\n metadata: this.stylesheet.metadata,\n light: this.stylesheet.light,\n terrain: this.getTerrain() || void 0,\n fog: this.stylesheet.fog,\n center: this.stylesheet.center,\n zoom: this.stylesheet.zoom,\n bearing: this.stylesheet.bearing,\n pitch: this.stylesheet.pitch,\n sprite: this.stylesheet.sprite,\n glyphs: this.stylesheet.glyphs,\n transition: this.stylesheet.transition,\n projection: this.stylesheet.projection,\n sources: t,\n layers: this._serializeLayers(this._order)\n }, e => void 0 !== e);\n }\n _updateLayer(e) {\n this._updatedLayers[e.id] = !0;\n const t = this._getLayerSourceCache(e);\n e.source && !this._updatedSources[e.source] && t && \"raster\" !== t.getSource().type && (this._updatedSources[e.source] = \"reload\", t.pause()), this._changed = !0, e.invalidateCompiledFilter();\n }\n _flattenAndSortRenderedFeatures(e) {\n const t = e => \"fill-extrusion\" === this._layers[e].type,\n i = {},\n o = [];\n for (let r = this._order.length - 1; r >= 0; r--) {\n const n = this._order[r];\n if (t(n)) {\n i[n] = r;\n for (const t of e) {\n const e = t[n];\n if (e) for (const t of e) o.push(t);\n }\n }\n }\n o.sort((e, t) => t.intersectionZ - e.intersectionZ);\n const r = [];\n for (let n = this._order.length - 1; n >= 0; n--) {\n const s = this._order[n];\n if (t(s)) for (let e = o.length - 1; e >= 0; e--) {\n const t = o[e].feature;\n if (i[t.layer.id] < n) break;\n r.push(t), o.pop();\n } else for (const t of e) {\n const e = t[s];\n if (e) for (const t of e) r.push(t.feature);\n }\n }\n return r;\n }\n queryRenderedFeatures(t, i, o) {\n i && i.filter && this._validate(e.validateFilter, \"queryRenderedFeatures.filter\", i.filter, null, i);\n const r = {};\n if (i && i.layers) {\n if (!Array.isArray(i.layers)) return this.fire(new e.ErrorEvent(new Error(\"parameters.layers must be an Array.\"))), [];\n for (const t of i.layers) {\n const i = this._layers[t];\n if (!i) return this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be queried for features.`))), [];\n r[i.source] = !0;\n }\n }\n const n = [];\n i.availableImages = this._availableImages;\n const s = i && i.layers ? i.layers.some(e => {\n const t = this.getLayer(e);\n return t && t.is3D();\n }) : this.has3DLayers(),\n a = L.createFromScreenPoints(t, o);\n for (const e in this._sourceCaches) {\n const t = this._sourceCaches[e].getSource().id;\n i.layers && !r[t] || n.push(Ae(this._sourceCaches[e], this._layers, this._serializedLayers, a, i, o, s, !!this.map._showQueryGeometry));\n }\n return this.placement && n.push(function (e, t, i, o, r, n, s) {\n const a = {},\n l = n.queryRenderedSymbols(o),\n c = [];\n for (const e of Object.keys(l).map(Number)) c.push(s[e]);\n c.sort(Re);\n for (const i of c) {\n const o = i.featureIndex.lookupSymbolFeatures(l[i.bucketInstanceId], t, i.bucketIndex, i.sourceLayerIndex, r.filter, r.layers, r.availableImages, e);\n for (const e in o) {\n const t = a[e] = a[e] || [],\n r = o[e];\n r.sort((e, t) => {\n const o = i.featureSortOrder;\n if (o) {\n const i = o.indexOf(e.featureIndex);\n return o.indexOf(t.featureIndex) - i;\n }\n return t.featureIndex - e.featureIndex;\n });\n for (const e of r) t.push(e);\n }\n }\n for (const t in a) a[t].forEach(o => {\n const r = o.feature,\n n = i(e[t]);\n if (!n) return;\n const s = n.getFeatureState(r.layer[\"source-layer\"], r.id);\n r.source = r.layer.source, r.layer[\"source-layer\"] && (r.sourceLayer = r.layer[\"source-layer\"]), r.state = s;\n });\n return a;\n }(this._layers, this._serializedLayers, this._getLayerSourceCache.bind(this), a.screenGeometry, i, this.placement.collisionIndex, this.placement.retainedQueryData)), this._flattenAndSortRenderedFeatures(n);\n }\n querySourceFeatures(t, i) {\n i && i.filter && this._validate(e.validateFilter, \"querySourceFeatures.filter\", i.filter, null, i);\n const o = this._getSourceCaches(t);\n let r = [];\n for (const e of o) r = r.concat(ze(e, i));\n return r;\n }\n addSourceType(e, t, i) {\n return Kt.getSourceType(e) ? i(new Error(`A source type called \"${e}\" already exists.`)) : (Kt.setSourceType(e, t), t.workerSourceURL ? void this.dispatcher.broadcast(\"loadWorkerSource\", {\n name: e,\n url: t.workerSourceURL\n }, i) : i(null, null));\n }\n getLight() {\n return this.light.getLight();\n }\n setLight(e, i = {}) {\n this._checkLoaded();\n const o = this.light.getLight();\n let r = !1;\n for (const i in e) if (!t(e[i], o[i])) {\n r = !0;\n break;\n }\n if (!r) return;\n const n = this._setTransitionParameters({\n duration: 300,\n delay: 0\n });\n this.light.setLight(e, i), this.light.updateTransitions(n);\n }\n getTerrain() {\n return this.terrain && 1 === this.terrain.drapeRenderMode ? this.terrain.get() : null;\n }\n setTerrainForDraping() {\n this.setTerrain({\n source: \"\",\n exaggeration: 0\n }, 0);\n }\n setTerrain(i, o = 1) {\n if (this._checkLoaded(), !i) return delete this.terrain, delete this.stylesheet.terrain, this.dispatcher.broadcast(\"enableTerrain\", !1), this._force3DLayerUpdate(), void (this._markersNeedUpdate = !0);\n let r = i;\n if (1 === o) {\n if (\"object\" == typeof r.source) {\n const t = \"terrain-dem-src\";\n this.addSource(t, r.source), r = e.clone$1(r), r = e.extend(r, {\n source: t\n });\n }\n if (this._validate(e.validateTerrain, \"terrain\", r)) return;\n }\n if (!this.terrain || this.terrain && o !== this.terrain.drapeRenderMode) {\n if (!r) return;\n this._createTerrain(r, o);\n } else {\n const i = this.terrain,\n o = i.get();\n for (const t of Object.keys(e.spec.terrain)) !r.hasOwnProperty(t) && e.spec.terrain[t].default && (r[t] = e.spec.terrain[t].default);\n for (const e in r) if (!t(r[e], o[e])) {\n i.set(r), this.stylesheet.terrain = r;\n const e = this._setTransitionParameters({\n duration: 0\n });\n i.updateTransitions(e);\n break;\n }\n }\n this._updateDrapeFirstLayers(), this._markersNeedUpdate = !0;\n }\n _createFog(e) {\n const t = this.fog = new P(e, this.map.transform);\n this.stylesheet.fog = e;\n const i = this._setTransitionParameters({\n duration: 0\n });\n t.updateTransitions(i);\n }\n _updateMarkersOpacity() {\n 0 !== this.map._markers.length && this.map._requestDomTask(() => {\n for (const e of this.map._markers) e._evaluateOpacity();\n });\n }\n getFog() {\n return this.fog ? this.fog.get() : null;\n }\n setFog(e) {\n if (this._checkLoaded(), !e) return delete this.fog, delete this.stylesheet.fog, void (this._markersNeedUpdate = !0);\n if (this.fog) {\n const i = this.fog,\n o = i.get();\n 0 === Object.keys(e).length && i.set(e);\n for (const r in e) if (!t(e[r], o[r])) {\n i.set(e), this.stylesheet.fog = e;\n const t = this._setTransitionParameters({\n duration: 0\n });\n i.updateTransitions(t);\n break;\n }\n } else this._createFog(e);\n this._markersNeedUpdate = !0;\n }\n _setTransitionParameters(t) {\n return {\n now: e.exported.now(),\n transition: e.extend(t, this.stylesheet.transition)\n };\n }\n _updateDrapeFirstLayers() {\n if (!this.map._optimizeForTerrain || !this.terrain) return;\n const e = this._order.filter(e => this.isLayerDraped(this._layers[e])),\n t = this._order.filter(e => !this.isLayerDraped(this._layers[e]));\n this._drapedFirstOrder = [], this._drapedFirstOrder.push(...e), this._drapedFirstOrder.push(...t);\n }\n _createTerrain(e, t) {\n const i = this.terrain = new E(e, t);\n this.stylesheet.terrain = e, this.dispatcher.broadcast(\"enableTerrain\", !this.terrainSetForDrapingOnly()), this._force3DLayerUpdate();\n const o = this._setTransitionParameters({\n duration: 0\n });\n i.updateTransitions(o);\n }\n _force3DLayerUpdate() {\n for (const e in this._layers) {\n const t = this._layers[e];\n \"fill-extrusion\" === t.type && this._updateLayer(t);\n }\n }\n _forceSymbolLayerUpdate() {\n for (const e in this._layers) {\n const t = this._layers[e];\n \"symbol\" === t.type && this._updateLayer(t);\n }\n }\n _validate(t, i, o, r, n = {}) {\n return (!n || !1 !== n.validate) && Xt(this, t.call(e.validateStyle, e.extend({\n key: i,\n style: this.serialize(),\n value: o,\n styleSpec: e.spec\n }, r)));\n }\n _remove() {\n this._request && (this._request.cancel(), this._request = null), this._spriteRequest && (this._spriteRequest.cancel(), this._spriteRequest = null), e.evented.off(\"pluginStateChange\", this._rtlTextPluginCallback);\n for (const e in this._layers) this._layers[e].setEventedParent(null);\n for (const e in this._sourceCaches) this._sourceCaches[e].clearTiles(), this._sourceCaches[e].setEventedParent(null);\n this.imageManager.setEventedParent(null), this.setEventedParent(null), this.dispatcher.remove();\n }\n _clearSource(e) {\n const t = this._getSourceCaches(e);\n for (const e of t) e.clearTiles();\n }\n _reloadSource(e) {\n const t = this._getSourceCaches(e);\n for (const e of t) e.resume(), e.reload();\n }\n _reloadSources() {\n for (const e of this._getSources()) e.reload && e.reload();\n }\n _updateSources(e) {\n for (const t in this._sourceCaches) this._sourceCaches[t].update(e);\n }\n _generateCollisionBoxes() {\n for (const e in this._sourceCaches) {\n const t = this._sourceCaches[e];\n t.resume(), t.reload();\n }\n }\n _updatePlacement(t, i, o, r, n = !1) {\n let s = !1,\n a = !1;\n const l = {};\n for (const e of this._order) {\n const i = this._layers[e];\n if (\"symbol\" !== i.type) continue;\n if (!l[i.source]) {\n const e = this._getLayerSourceCache(i);\n if (!e) continue;\n l[i.source] = e.getRenderableIds(!0).map(t => e.getTileByID(t)).sort((e, t) => t.tileID.overscaledZ - e.tileID.overscaledZ || (e.tileID.isLessThan(t.tileID) ? -1 : 1));\n }\n const o = this.crossTileSymbolIndex.addLayer(i, l[i.source], t.center.lng, t.projection);\n s = s || o;\n }\n if (this.crossTileSymbolIndex.pruneUnusedLayers(this._order), n = n || this._layerOrderChanged || 0 === o, this._layerOrderChanged && this.fire(new e.Event(\"neworder\")), (n || !this.pauseablePlacement || this.pauseablePlacement.isDone() && !this.placement.stillRecent(e.exported.now(), t.zoom)) && (this.pauseablePlacement = new Nt(t, this._order, n, i, o, r, this.placement, this.fog && t.projection.supportsFog ? this.fog.state : null), this._layerOrderChanged = !1), this.pauseablePlacement.isDone() ? this.placement.setStale() : (this.pauseablePlacement.continuePlacement(this._order, this._layers, l), this.pauseablePlacement.isDone() && (this.placement = this.pauseablePlacement.commit(e.exported.now()), a = !0), s && this.pauseablePlacement.placement.setStale()), a || s) for (const e of this._order) {\n const t = this._layers[e];\n \"symbol\" === t.type && this.placement.updateLayerOpacities(t, l[t.source]);\n }\n return !this.pauseablePlacement.isDone() || this.placement.hasTransitions(e.exported.now());\n }\n _releaseSymbolFadeTiles() {\n for (const e in this._sourceCaches) this._sourceCaches[e].releaseSymbolFadeTiles();\n }\n getImages(e, t, i) {\n this.imageManager.getImages(t.icons, i), this._updateTilesForChangedImages();\n const o = e => {\n e && e.setDependencies(t.tileID.key, t.type, t.icons);\n };\n o(this._otherSourceCaches[t.source]), o(this._symbolSourceCaches[t.source]);\n }\n getGlyphs(e, t, i) {\n this.glyphManager.getGlyphs(t.stacks, i);\n }\n getResource(t, i, o) {\n return e.makeRequest(i, o);\n }\n _getSourceCache(e) {\n return this._otherSourceCaches[e];\n }\n _getLayerSourceCache(e) {\n return \"symbol\" === e.type ? this._symbolSourceCaches[e.source] : this._otherSourceCaches[e.source];\n }\n _getSourceCaches(e) {\n const t = [];\n return this._otherSourceCaches[e] && t.push(this._otherSourceCaches[e]), this._symbolSourceCaches[e] && t.push(this._symbolSourceCaches[e]), t;\n }\n _isSourceCacheLoaded(t) {\n const i = this._getSourceCaches(t);\n return 0 === i.length ? (this.fire(new e.ErrorEvent(new Error(`There is no source with ID '${t}'`))), !1) : i.every(e => e.loaded());\n }\n has3DLayers() {\n return this._num3DLayers > 0;\n }\n hasSymbolLayers() {\n return this._numSymbolLayers > 0;\n }\n hasCircleLayers() {\n return this._numCircleLayers > 0;\n }\n _clearWorkerCaches() {\n this.dispatcher.broadcast(\"clearCaches\");\n }\n destroy() {\n this._clearWorkerCaches(), this.terrainSetForDrapingOnly() && (delete this.terrain, delete this.stylesheet.terrain);\n }\n }\n Kt.getSourceType = function (e) {\n return Se[e];\n }, Kt.setSourceType = function (e, t) {\n Se[e] = t;\n }, Kt.registerForPluginStateChange = e.registerForPluginStateChange;\n var Jt = \"\\n#define EPSILON 0.0000001\\n#define PI 3.141592653589793\\n#define EXTENT 8192.0\\n#define HALF_PI PI/2.0\\n#define QUARTER_PI PI/4.0\\n#define RAD_TO_DEG 180.0/PI\\n#define DEG_TO_RAD PI/180.0\\n#define GLOBE_RADIUS EXTENT/PI/2.0\",\n Qt = \"attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}\",\n ei = \"\\n#define ELEVATION_SCALE 7.0\\n#define ELEVATION_OFFSET 450.0\\n#ifdef PROJECTION_GLOBE_VIEW\\nuniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(\\nmix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}\\n#else\\nvec3 elevationVector(vec2 pos) { return vec3(0,0,1); }\\n#endif\\nconst float skirtOffset=24575.0;vec3 decomposeToPosAndSkirt(vec2 posWithComposedSkirt)\\n{float skirt=float(posWithComposedSkirt.x >=skirtOffset);vec2 pos=posWithComposedSkirt-vec2(skirt*skirtOffset,0.0);return vec3(pos,skirt);}\\n#ifdef TERRAIN\\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;\\n#else\\nuniform sampler2D u_dem;uniform sampler2D u_dem_prev;\\n#endif\\nuniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {\\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem,pos).a;\\n#else\\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));\\n#ifdef TERRAIN_DEM_NEAREST_FILTER\\nreturn u_exaggeration*tl;\\n#endif\\nfloat tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\\n#endif\\n}float prevElevation(vec2 apos) {\\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem_prev,pos).a;\\n#else\\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\\n#endif\\n}\\n#ifdef TERRAIN_VERTEX_MORPHING\\nfloat elevation(vec2 apos) {\\n#ifdef ZERO_EXAGGERATION\\nreturn 0.0;\\n#endif\\nfloat nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\\n#else\\nfloat elevation(vec2 apos) {\\n#ifdef ZERO_EXAGGERATION\\nreturn 0.0;\\n#endif\\nreturn currentElevation(apos);}\\n#endif\\nhighp float unpack_depth(highp vec4 rgba_depth)\\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(\\nunpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))\\n);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {\\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\\nfloat tl=texture2D(u_dem,pos).a;float tr=texture2D(u_dem,pos+vec2(off.x,0.0)).a;float bl=texture2D(u_dem,pos+vec2(0.0,off.y)).a;float br=texture2D(u_dem,pos+off).a;\\n#else\\nvec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);\\n#endif\\nreturn vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}\\n#else\\nfloat elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }\\n#endif\",\n ti = \"#ifdef FOG\\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump mat4 u_fog_matrix;varying vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}\\n#endif\",\n ii = \"#ifdef FOG\\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump float u_fog_temporal_offset;varying vec3 v_fog_pos;uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform highp vec2 u_viewport;uniform float u_globe_transition;uniform int u_is_globe;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}float globe_glow_progress() {highp vec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float sdf=length(closest_point-u_globe_pos)/u_globe_radius;return sdf+PI*0.5;}float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos) {float depth=length(pos);float opacity;if (u_is_globe==1) {float glow_progress=globe_glow_progress();float t=mix(glow_progress,depth,u_globe_transition);opacity=fog_opacity(fog_range(t));} else {opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);}return mix(color,u_fog_color.rgb,opacity);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec3 fog_dither(vec3 color) {vec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\\n#endif\";\n let oi = {},\n ri = {};\n const ni = [];\n hi(Jt, ni), hi(ei, ni), hi(ti, ni), hi(ii, ni), oi = ui(\"\", ei), ri = ui(ii, ti);\n const si = ui(\"\\n#if __VERSION__ >=300\\n#define varying in\\n#define gl_FragColor glFragColor\\n#define texture2D texture\\n#define textureCube texture\\nout vec4 glFragColor;\\n#endif\\nhighp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}highp float unpack_depth(highp vec4 rgba_depth)\\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}highp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/255.0,1.0/255.0,1.0/255.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}\", \"\\n#if __VERSION__ >=300\\n#define attribute in\\n#define varying out\\n#define texture2D texture\\n#endif\\nfloat wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}\\n#ifdef PROJECTION_GLOBE_VIEW\\nvec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {\\n#ifndef PROJECTED_POS_ON_VIEWPORT\\nfloat tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;\\n#else\\nreturn vec3(0.0);\\n#endif\\n}vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {return mix(globe,mercator,t);}mat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}\\n#endif\\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(\\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered.\"),\n ai = Jt,\n li = \"\\n#ifdef GL_ES\\nprecision mediump float;\\n#else\\n\\n#if !defined(lowp)\\n#define lowp\\n#endif\\n\\n#if !defined(mediump)\\n#define mediump\\n#endif\\n\\n#if !defined(highp)\\n#define highp\\n#endif\\n\\n#endif\";\n var ci = {\n background: ui(\"uniform vec4 u_color;uniform float u_opacity;\\n#ifdef LIGHTING_3D_MODE\\nvarying vec4 v_color;\\n#endif\\nvoid main() {vec4 out_color;\\n#ifdef LIGHTING_3D_MODE\\nout_color=v_color;\\n#else\\nout_color=u_color;\\n#endif\\n#ifdef FOG\\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\\n#endif\\ngl_FragColor=out_color*u_opacity;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"attribute vec2 a_pos;uniform mat4 u_matrix;\\n#ifdef LIGHTING_3D_MODE\\nuniform vec4 u_color;varying vec4 v_color;\\n#endif\\nvoid main() {gl_Position=u_matrix*vec4(a_pos,0,1);\\n#ifdef LIGHTING_3D_MODE\\nv_color=apply_lighting(u_color);\\n#endif\\n#ifdef FOG\\nv_fog_pos=fog_position(a_pos);\\n#endif\\n}\"),\n backgroundPattern: ui(\"uniform vec2 u_pattern_tl;uniform vec2 u_pattern_br;uniform vec2 u_texsize;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos;void main() {vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(u_pattern_tl/u_texsize,u_pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\\n#ifdef LIGHTING_3D_MODE\\nout_color=apply_lighting(out_color);\\n#endif\\n#ifdef FOG\\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\\n#endif\\ngl_FragColor=out_color*u_opacity;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"uniform mat4 u_matrix;uniform vec2 u_pattern_size;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_pattern_size,u_tile_units_to_pixels,a_pos);\\n#ifdef FOG\\nv_fog_pos=fog_position(a_pos);\\n#endif\\n}\"),\n circle: ui(\"varying vec3 v_data;varying float v_visibility;\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define mediump float radius\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define highp vec4 stroke_color\\n#pragma mapbox: define mediump float stroke_width\\n#pragma mapbox: define lowp float stroke_opacity\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 color\\n#pragma mapbox: initialize mediump float radius\\n#pragma mapbox: initialize lowp float blur\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize highp vec4 stroke_color\\n#pragma mapbox: initialize mediump float stroke_width\\n#pragma mapbox: initialize lowp float stroke_opacity\\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\\nantialiased_blur,0.0,extrude_length-radius/(radius+stroke_width)\\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\\n#ifdef LIGHTING_3D_MODE\\nout_color=apply_lighting(out_color);\\n#endif\\n#ifdef FOG\\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\\n#endif\\ngl_FragColor=out_color*(v_visibility*opacity_t);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"#define NUM_VISIBILITY_RINGS 2\\n#define INV_SQRT2 0.70710678\\n#define ELEVATION_BIAS 0.0001\\n#define NUM_SAMPLES_PER_RING 16\\nuniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;\\n#ifdef PROJECTION_GLOBE_VIEW\\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\\n#endif\\nvarying vec3 v_data;varying float v_visibility;\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define mediump float radius\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define highp vec4 stroke_color\\n#pragma mapbox: define mediump float stroke_width\\n#pragma mapbox: define lowp float stroke_opacity\\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\\n#if defined(TERRAIN)\\nreturn elevation(pos)+ELEVATION_BIAS;\\n#else\\nreturn 0.0;\\n#endif\\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\\n#ifdef PITCH_WITH_MAP\\n#ifdef PROJECTION_GLOBE_VIEW\\nreturn u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );\\n#else\\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\\n#endif\\n#else\\nreturn projected_center+vec4(sample_offset,0,0);\\n#endif\\n}float get_sample_step() {\\n#ifdef PITCH_WITH_MAP\\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\\n#else\\nreturn PI/float(NUM_SAMPLES_PER_RING);\\n#endif\\n}void main(void) {\\n#pragma mapbox: initialize highp vec4 color\\n#pragma mapbox: initialize mediump float radius\\n#pragma mapbox: initialize lowp float blur\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize highp vec4 stroke_color\\n#pragma mapbox: initialize mediump float stroke_width\\n#pragma mapbox: initialize lowp float stroke_opacity\\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);vec4 world_center;mat3 surface_vectors;\\n#ifdef PROJECTION_GLOBE_VIEW\\nvec3 pos_normal_3=a_pos_normal_3/16384.0;surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);world_center=vec4(pos,1);\\n#else \\nsurface_vectors=mat3(1.0);float height=circle_elevation(circle_center);world_center=vec4(circle_center,height,1);\\n#endif\\nvec4 projected_center=u_matrix*world_center;float view_scale=0.0;\\n#ifdef PITCH_WITH_MAP\\n#ifdef SCALE_WITH_MAP\\nview_scale=1.0;\\n#else\\nview_scale=projected_center.w/u_camera_to_center_distance;\\n#endif\\n#else\\n#ifdef SCALE_WITH_MAP\\nview_scale=u_camera_to_center_distance;\\n#else\\nview_scale=projected_center.w;\\n#endif\\n#endif\\ngl_Position=project_vertex(extrude,world_center,projected_center,radius,stroke_width,view_scale,surface_vectors);float visibility=0.0;\\n#ifdef TERRAIN\\nfloat step=get_sample_step();vec4 occlusion_world_center;vec4 occlusion_projected_center;\\n#ifdef PITCH_WITH_MAP\\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);occlusion_world_center=vec4(circle_center,cantilevered_height,1);occlusion_projected_center=u_matrix*occlusion_world_center;\\n#else\\nocclusion_world_center=world_center;occlusion_projected_center=projected_center;\\n#endif\\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\\n#else\\nvisibility=1.0;\\n#endif\\n#ifdef PROJECTION_GLOBE_VIEW\\nvisibility=1.0;\\n#endif\\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);\\n#ifdef FOG\\nv_fog_pos=fog_position(world_center.xyz);\\n#endif\\n}\"),\n clippingMask: ui(\"void main() {gl_FragColor=vec4(1.0);}\", \"attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}\"),\n heatmap: ui(\"uniform highp float u_intensity;varying vec2 v_extrude;\\n#pragma mapbox: define highp float weight\\n#define GAUSS_COEF 0.3989422804014327\\nvoid main() {\\n#pragma mapbox: initialize highp float weight\\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\\n#ifdef FOG\\nif (u_is_globe==0) {gl_FragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);}\\n#endif\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;\\n#ifdef PROJECTION_GLOBE_VIEW\\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\\n#endif\\nvarying vec2 v_extrude;\\n#pragma mapbox: define highp float weight\\n#pragma mapbox: define mediump float radius\\nconst highp float ZERO=1.0/255.0/16.0;\\n#define GAUSS_COEF 0.3989422804014327\\nvoid main(void) {\\n#pragma mapbox: initialize highp float weight\\n#pragma mapbox: initialize mediump float radius\\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);vec3 pos;\\n#ifdef PROJECTION_GLOBE_VIEW\\nvec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\\n#else\\npos=vec3(tilePos+extrude,elevation(tilePos));\\n#endif\\ngl_Position=u_matrix*vec4(pos,1);\\n#ifdef FOG\\nv_fog_pos=fog_position(pos);\\n#endif\\n}\"),\n heatmapTexture: ui(\"uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(0.0);\\n#endif\\n}\", \"attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}\"),\n collisionBox: ui(\"varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}\", \"attribute vec3 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}\"),\n collisionCircle: ui(\"varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}\", \"attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}\"),\n debug: ui(\"uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}\", \"attribute vec2 a_pos;\\n#ifdef PROJECTION_GLOBE_VIEW\\nattribute vec3 a_pos_3;\\n#endif\\nvarying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;\\n#ifdef PROJECTION_GLOBE_VIEW\\ngl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1);\\n#else\\ngl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);\\n#endif\\n}\"),\n fill: ui(\"#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float opacity\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 color\\n#pragma mapbox: initialize lowp float opacity\\nvec4 out_color=color;\\n#ifdef LIGHTING_3D_MODE\\nout_color=apply_lighting(out_color);\\n#endif\\n#ifdef FOG\\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\\n#endif\\ngl_FragColor=out_color*opacity;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"attribute vec2 a_pos;uniform mat4 u_matrix;\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float opacity\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 color\\n#pragma mapbox: initialize lowp float opacity\\ngl_Position=u_matrix*vec4(a_pos,0,1);\\n#ifdef FOG\\nv_fog_pos=fog_position(a_pos);\\n#endif\\n}\"),\n fillOutline: ui(\"varying vec2 v_pos;\\n#pragma mapbox: define highp vec4 outline_color\\n#pragma mapbox: define lowp float opacity\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 outline_color\\n#pragma mapbox: initialize lowp float opacity\\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;\\n#ifdef LIGHTING_3D_MODE\\nout_color=apply_lighting(out_color);\\n#endif\\n#ifdef FOG\\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\\n#endif\\ngl_FragColor=out_color*(alpha*opacity);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\\n#pragma mapbox: define highp vec4 outline_color\\n#pragma mapbox: define lowp float opacity\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 outline_color\\n#pragma mapbox: initialize lowp float opacity\\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\\n#ifdef FOG\\nv_fog_pos=fog_position(a_pos);\\n#endif\\n}\"),\n fillOutlinePattern: ui(\"uniform vec2 u_texsize;uniform sampler2D u_image;varying vec2 v_pos;varying vec2 v_pos_world;\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp vec4 pattern\\nvoid main() {\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize mediump vec4 pattern\\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);float dist=length(v_pos_world-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=texture2D(u_image,pos);\\n#ifdef LIGHTING_3D_MODE\\nout_color=apply_lighting(out_color);\\n#endif\\n#ifdef FOG\\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\\n#endif\\ngl_FragColor=out_color*(alpha*opacity);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;varying vec2 v_pos_world;\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp vec4 pattern\\n#pragma mapbox: define lowp float pixel_ratio\\nvoid main() {\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize mediump vec4 pattern\\n#pragma mapbox: initialize lowp float pixel_ratio\\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);v_pos_world=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\\n#ifdef FOG\\nv_fog_pos=fog_position(a_pos);\\n#endif\\n}\"),\n fillPattern: ui(\"uniform vec2 u_texsize;uniform sampler2D u_image;varying vec2 v_pos;\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp vec4 pattern\\nvoid main() {\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize mediump vec4 pattern\\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\\n#ifdef LIGHTING_3D_MODE\\nout_color=apply_lighting(out_color);\\n#endif\\n#ifdef FOG\\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\\n#endif\\ngl_FragColor=out_color*opacity;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp vec4 pattern\\n#pragma mapbox: define lowp float pixel_ratio\\nvoid main() {\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize mediump vec4 pattern\\n#pragma mapbox: initialize lowp float pixel_ratio\\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);\\n#ifdef FOG\\nv_fog_pos=fog_position(a_pos);\\n#endif\\n}\"),\n fillExtrusion: ui(\"varying vec4 v_color;\\n#ifdef RENDER_SHADOWS\\nvarying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;\\n#endif\\n#ifdef FAUX_AO\\nuniform lowp vec2 u_ao;varying vec3 v_ao;\\n#endif\\n#ifdef ZERO_ROOF_RADIUS\\nvarying vec4 v_roof_color;\\n#endif\\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\\nvarying highp vec3 v_normal;\\n#endif\\nvoid main() {\\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\\nvec3 normal=v_normal;\\n#endif\\nfloat z;vec4 color;\\n#ifdef ZERO_ROOF_RADIUS\\nz=float(normal.z > 0.00001);color=mix(v_color,v_roof_color,z);\\n#else\\ncolor=v_color;\\n#endif\\n#ifdef FAUX_AO\\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;\\n#ifdef ZERO_ROOF_RADIUS\\nconcave*=(1.0-z);\\n#endif\\nfloat x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);color.rgb=color.rgb*shade;\\n#endif\\n#ifdef RENDER_SHADOWS\\n#ifdef ZERO_ROOF_RADIUS\\nnormal=mix(normal,vec3(0.0,0.0,1.0),z);\\n#endif\\ncolor.xyz=shadowed_color_normal(color.xyz,normalize(normal),v_pos_light_view_0,v_pos_light_view_1,v_depth);\\n#endif\\n#ifdef FOG\\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\\n#endif\\ngl_FragColor=color;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_edge_radius;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\\n#ifdef PROJECTION_GLOBE_VIEW\\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\\n#endif\\nvarying vec4 v_color;\\n#ifdef RENDER_SHADOWS\\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;\\n#endif\\n#ifdef ZERO_ROOF_RADIUS\\nvarying vec4 v_roof_color;\\n#endif\\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\\nvarying highp vec3 v_normal;\\n#endif\\n#ifdef FAUX_AO\\nuniform lowp vec2 u_ao;varying vec3 v_ao;\\n#endif\\n#pragma mapbox: define highp float base\\n#pragma mapbox: define highp float height\\n#pragma mapbox: define highp vec4 color\\nvoid main() {\\n#pragma mapbox: initialize highp float base\\n#pragma mapbox: initialize highp float height\\n#pragma mapbox: initialize highp vec4 color\\nvec4 pos_nx=floor(a_pos_normal_ed*0.5);vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));\\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\\nv_normal=normal;\\n#endif\\nbase=max(0.0,base);height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\\n#if defined(HAS_CENTROID) || defined(TERRAIN)\\ncentroid_pos=a_centroid_pos;\\n#endif\\nfloat ele=0.0;float h=0.0;float c_ele;vec3 pos;\\n#ifdef TERRAIN\\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);pos=vec3(pos_nx.xy,h);\\n#else\\nh=t > 0.0 ? height : base;pos=vec3(pos_nx.xy,h);\\n#endif\\n#ifdef PROJECTION_GLOBE_VIEW\\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*h);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\\n#endif\\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);\\n#ifdef RENDER_SHADOWS\\nv_pos_light_view_0=u_light_matrix_0*vec4(pos,1);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1);v_depth=gl_Position.w;\\n#endif\\nfloat NdotL=0.0;float colorvalue=0.0;\\n#ifdef LIGHTING_3D_MODE\\nNdotL=calculate_NdotL(normal);\\n#else\\ncolorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;NdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),NdotL);\\n#endif\\nif (normal.y !=0.0) {float r=0.84;\\n#ifndef LIGHTING_3D_MODE\\nr=mix(0.7,0.98,1.0-u_lightintensity);\\n#endif\\nNdotL*=(\\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}v_color=vec4(0.0,0.0,0.0,1.0);\\n#ifdef FAUX_AO\\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\\n#ifdef TERRAIN\\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\\n#endif\\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\\n#ifdef PROJECTION_GLOBE_VIEW\\ntop_height+=u_height_lift;\\n#endif\\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\\n#endif\\n#ifdef LIGHTING_3D_MODE\\nv_color=apply_lighting(color,NdotL);\\n#else\\nv_color.rgb+=clamp(color.rgb*NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));\\n#endif\\nv_color*=u_opacity;\\n#ifdef ZERO_ROOF_RADIUS\\nv_roof_color=vec4(0.0,0.0,0.0,1.0);\\n#ifdef LIGHTING_3D_MODE\\nv_roof_color=apply_lighting(color,calculate_NdotL(vec3(0.0,0.0,1.0)));\\n#else\\nfloat roofNdotL=clamp(u_lightpos.z,0.0,1.0);roofNdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),roofNdotL);v_roof_color.rgb+=clamp(color.rgb*roofNdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));\\n#endif\\nv_roof_color*=u_opacity;\\n#endif\\n#ifdef FOG\\nv_fog_pos=fog_position(pos);\\n#endif\\n}\"),\n fillExtrusionPattern: ui(\"uniform vec2 u_texsize;uniform sampler2D u_image;\\n#ifdef FAUX_AO\\nuniform lowp vec2 u_ao;varying vec3 v_ao;\\n#endif\\n#ifdef LIGHTING_3D_MODE\\nvarying float v_NdotL;\\n#endif\\nvarying vec2 v_pos;varying vec4 v_lighting;uniform lowp float u_opacity;\\n#pragma mapbox: define lowp float base\\n#pragma mapbox: define lowp float height\\n#pragma mapbox: define lowp vec4 pattern\\n#pragma mapbox: define lowp float pixel_ratio\\nvoid main() {\\n#pragma mapbox: initialize lowp float base\\n#pragma mapbox: initialize lowp float height\\n#pragma mapbox: initialize mediump vec4 pattern\\n#pragma mapbox: initialize lowp float pixel_ratio\\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\\n#ifdef LIGHTING_3D_MODE\\nout_color=apply_lighting(out_color,v_NdotL)*u_opacity;\\n#else\\nout_color=out_color*v_lighting;\\n#endif\\n#ifdef FAUX_AO\\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);out_color.rgb=out_color.rgb*shade;\\n#endif\\n#ifdef FOG\\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\\n#endif\\ngl_FragColor=out_color;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform float u_tile_units_to_pixels;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\\n#ifdef PROJECTION_GLOBE_VIEW\\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\\n#endif\\nvarying vec2 v_pos;varying vec4 v_lighting;\\n#ifdef FAUX_AO\\nuniform lowp vec2 u_ao;varying vec3 v_ao;\\n#endif\\n#ifdef LIGHTING_3D_MODE\\nvarying float v_NdotL;\\n#endif\\n#pragma mapbox: define lowp float base\\n#pragma mapbox: define lowp float height\\n#pragma mapbox: define lowp vec4 pattern\\n#pragma mapbox: define lowp float pixel_ratio\\nvoid main() {\\n#pragma mapbox: initialize lowp float base\\n#pragma mapbox: initialize lowp float height\\n#pragma mapbox: initialize mediump vec4 pattern\\n#pragma mapbox: initialize lowp float pixel_ratio\\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec4 pos_nx=floor(a_pos_normal_ed*0.5);mediump vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;mediump vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);\\n#if defined(HAS_CENTROID) || defined(TERRAIN)\\ncentroid_pos=a_centroid_pos;\\n#endif\\nfloat ele=0.0;float h=z;vec3 p;float c_ele;\\n#ifdef TERRAIN\\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);p=vec3(pos_nx.xy,h);\\n#else\\np=vec3(pos_nx.xy,z);\\n#endif\\n#ifdef PROJECTION_GLOBE_VIEW\\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\\n#endif\\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0\\n? pos_nx.xy\\n: vec2(edgedistance,z*u_height_factor);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float NdotL=0.0;\\n#ifdef LIGHTING_3D_MODE\\nNdotL=calculate_NdotL(normal);\\n#else\\nNdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),NdotL);\\n#endif\\nif (normal.y !=0.0) {float r=0.84;\\n#ifndef LIGHTING_3D_MODE\\nr=mix(0.7,0.98,1.0-u_lightintensity);\\n#endif\\nNdotL*=(\\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}\\n#ifdef FAUX_AO\\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\\n#ifdef TERRAIN\\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\\n#endif\\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\\n#ifdef PROJECTION_GLOBE_VIEW\\ntop_height+=u_height_lift;\\n#endif\\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\\n#endif\\n#ifdef LIGHTING_3D_MODE\\nv_NdotL=NdotL;\\n#else\\nv_lighting.rgb+=clamp(NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\\n#endif \\n#ifdef FOG\\nv_fog_pos=fog_position(p);\\n#endif\\n}\"),\n hillshadePrepare: ui(\"#ifdef GL_ES\\nprecision highp float;\\n#endif\\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord) {\\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\\nreturn texture2D(u_image,coord).a/4.0;\\n#else\\nvec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;\\n#endif\\n}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos+vec2(epsilon.x,0));float f=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float g=getElevation(v_pos+vec2(0,epsilon.y));float h=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\\n(c+e+e+h)-(a+d+d+f),(f+g+g+h)-(a+b+b+c)\\n)/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(\\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}\"),\n hillshade: ui(\"uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\\n#ifdef LIGHTING_3D_MODE\\ngl_FragColor=apply_lighting(gl_FragColor);\\n#endif\\n#ifdef FOG\\ngl_FragColor=fog_dither(fog_apply_premultiplied(gl_FragColor,v_fog_pos));\\n#endif\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;\\n#ifdef FOG\\nv_fog_pos=fog_position(a_pos);\\n#endif\\n}\"),\n line: ui(\"uniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;uniform highp vec2 u_trim_offset;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec4 v_uv;\\n#ifdef RENDER_LINE_DASH\\nuniform sampler2D u_dash_image;varying vec2 v_tex;\\n#endif\\n#ifdef RENDER_LINE_GRADIENT\\nuniform sampler2D u_gradient_image;\\n#endif\\nuniform float u_border_width;uniform vec4 u_border_color;float luminance(vec3 c) {return (c.r+c.r+c.b+c.g+c.g+c.g)*0.1667;}\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float floorwidth\\n#pragma mapbox: define lowp vec4 dash\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\nfloat linearstep(float edge0,float edge1,float x) {return clamp((x-edge0)/(edge1-edge0),0.0,1.0);}void main() {\\n#pragma mapbox: initialize highp vec4 color\\n#pragma mapbox: initialize lowp float floorwidth\\n#pragma mapbox: initialize lowp vec4 dash\\n#pragma mapbox: initialize lowp float blur\\n#pragma mapbox: initialize lowp float opacity\\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\\n#ifdef RENDER_LINE_DASH\\nfloat sdfdist=texture2D(u_dash_image,v_tex).a;float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/dash.z;alpha*=linearstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);\\n#endif\\nhighp vec4 out_color;\\n#ifdef RENDER_LINE_GRADIENT\\nout_color=texture2D(u_gradient_image,v_uv.xy);\\n#else\\nout_color=color;\\n#endif\\nfloat trimmed=1.0;\\n#ifdef RENDER_LINE_TRIM_OFFSET\\nhighp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {if (line_progress <=trim_end && line_progress >=trim_start) {out_color=vec4(0,0,0,0);trimmed=0.0;}}\\n#endif\\n#ifdef LIGHTING_3D_MODE\\nout_color=apply_lighting(out_color);\\n#endif\\n#ifdef FOG\\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\\n#endif\\n#ifdef RENDER_LINE_ALPHA_DISCARD\\nif (alpha < u_alpha_discard_threshold) {discard;}\\n#endif\\n#ifdef RENDER_LINE_BORDER\\nfloat edgeBlur=(u_border_width+1.0/u_device_pixel_ratio);float alpha2=clamp(min(dist-(v_width2.t-edgeBlur),v_width2.s-dist)/edgeBlur,0.0,1.0);if (alpha2 < 1.) {float smoothAlpha=smoothstep(0.6,1.0,alpha2);\\n#ifdef RENDER_LINE_BORDER_AUTO\\nfloat Y=(out_color.a > 0.01) ? luminance(out_color.rgb/out_color.a) : 1.;float adjustment=(Y > 0.) ? 0.5/Y : 0.45;if (out_color.a > 0.25 && Y < 0.25) {vec3 borderColor=(Y > 0.) ? out_color.rgb : vec3(1,1,1)*out_color.a;out_color.rgb=out_color.rgb+borderColor*(adjustment*(1.0-smoothAlpha));} else {out_color.rgb*=(0.6 +0.4*smoothAlpha);}\\n#else\\nout_color.rgb=mix(u_border_color.rgb*u_border_color.a*trimmed,out_color.rgb,smoothAlpha);\\n#endif\\n}\\n#endif\\ngl_FragColor=out_color*(alpha*opacity);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"\\n#define EXTRUDE_SCALE 0.015873016\\nattribute vec2 a_pos_normal;attribute vec4 a_data;\\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\\nattribute highp vec4 a_packed;\\n#endif\\n#ifdef RENDER_LINE_DASH\\nattribute float a_linesofar;\\n#endif\\nuniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec4 v_uv;\\n#ifdef RENDER_LINE_DASH\\nuniform vec2 u_texsize;uniform float u_tile_units_to_pixels;varying vec2 v_tex;\\n#endif\\n#ifdef RENDER_LINE_GRADIENT\\nuniform float u_image_height;\\n#endif\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float floorwidth\\n#pragma mapbox: define lowp vec4 dash\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define mediump float gapwidth\\n#pragma mapbox: define lowp float offset\\n#pragma mapbox: define mediump float width\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 color\\n#pragma mapbox: initialize lowp float floorwidth\\n#pragma mapbox: initialize lowp vec4 dash\\n#pragma mapbox: initialize lowp float blur\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize mediump float gapwidth\\n#pragma mapbox: initialize lowp float offset\\n#pragma mapbox: initialize mediump float width\\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\\n#ifndef RENDER_TO_TEXTURE\\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\\n#else\\nv_gamma_scale=1.0;\\n#endif\\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\\nfloat a_uv_x=a_packed[0];float a_split_index=a_packed[1];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3];\\n#ifdef RENDER_LINE_GRADIENT\\nhighp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec4(a_uv_x,a_split_index*texel_height-half_texel_height,a_clip_start,a_clip_end);\\n#else\\nv_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end);\\n#endif\\n#endif\\n#ifdef RENDER_LINE_DASH\\nfloat scale=dash.z==0.0 ? 0.0 : u_tile_units_to_pixels/dash.z;float height=dash.y;v_tex=vec2(a_linesofar*scale/floorwidth,(-normal.y*height+dash.x+0.5)/u_texsize.y);\\n#endif\\nv_width2=vec2(outset,inset);\\n#ifdef FOG\\nv_fog_pos=fog_position(pos);\\n#endif\\n}\"),\n linePattern: ui(\"uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_tile_units_to_pixels;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\\n#pragma mapbox: define lowp vec4 pattern\\n#pragma mapbox: define lowp float pixel_ratio\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\nvoid main() {\\n#pragma mapbox: initialize mediump vec4 pattern\\n#pragma mapbox: initialize lowp float pixel_ratio\\n#pragma mapbox: initialize lowp float blur\\n#pragma mapbox: initialize lowp float opacity\\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;vec2 pattern_size=vec2(display_size.x/u_tile_units_to_pixels,display_size.y);float aspect=display_size.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x=mod(v_linesofar/pattern_size.x*aspect,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos=mix(pattern_tl*texel_size-texel_size,pattern_br*texel_size+texel_size,vec2(x,y));vec4 color=texture2D(u_image,pos);\\n#ifdef LIGHTING_3D_MODE\\ncolor=apply_lighting(color);\\n#endif\\n#ifdef FOG\\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\\n#endif\\ngl_FragColor=color*(alpha*opacity);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"\\n#define scale 0.015873016\\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp float offset\\n#pragma mapbox: define mediump float gapwidth\\n#pragma mapbox: define mediump float width\\n#pragma mapbox: define lowp float floorwidth\\n#pragma mapbox: define lowp vec4 pattern\\n#pragma mapbox: define lowp float pixel_ratio\\nvoid main() {\\n#pragma mapbox: initialize lowp float blur\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize lowp float offset\\n#pragma mapbox: initialize mediump float gapwidth\\n#pragma mapbox: initialize mediump float width\\n#pragma mapbox: initialize lowp float floorwidth\\n#pragma mapbox: initialize mediump vec4 pattern\\n#pragma mapbox: initialize lowp float pixel_ratio\\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\\n#ifndef RENDER_TO_TEXTURE\\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\\n#else\\nv_gamma_scale=1.0;\\n#endif\\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;\\n#ifdef FOG\\nv_fog_pos=fog_position(pos);\\n#endif\\n}\"),\n raster: ui(\"uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(\\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);\\n#ifdef LIGHTING_3D_MODE\\nout_color=apply_lighting(out_color);\\n#endif\\n#ifdef FOG\\nout_color=fog_dither(fog_apply(out_color,v_fog_pos));\\n#endif\\ngl_FragColor=vec4(out_color*color.a,color.a);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {float w=1.0+dot(a_texture_pos,u_perspective_transform);gl_Position=u_matrix*vec4(a_pos*w,0,w);v_pos0=a_texture_pos/8192.0;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;\\n#ifdef FOG\\nv_fog_pos=fog_position(a_pos);\\n#endif\\n}\"),\n symbolIcon: ui(\"uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\\n#pragma mapbox: define lowp float opacity\\nvoid main() {\\n#pragma mapbox: initialize lowp float opacity\\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\\n#ifdef PROJECTION_GLOBE_VIEW\\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\\n#endif\\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform vec3 u_up_vector;\\n#ifdef PROJECTION_GLOBE_VIEW\\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\\n#endif\\nvarying vec2 v_tex;varying float v_fade_opacity;\\n#pragma mapbox: define lowp float opacity\\nvoid main() {\\n#pragma mapbox: initialize lowp float opacity\\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_min_font_scale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\\n#ifdef PROJECTION_GLOBE_VIEW\\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\\n#else\\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\\n#endif\\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\\ncamera_to_anchor_distance/u_camera_to_center_distance :\\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjected_point;\\n#ifdef PROJECTION_GLOBE_VIEW\\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetProjected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\\n#else\\noffsetProjected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\\n#endif\\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetProjected_point.xy/offsetProjected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\\n#ifdef PROJECTION_GLOBE_VIEW\\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\\n#else\\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\\n#endif\\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_min_font_scale,font_scale)+a_pxoffset/16.0);\\n#ifdef TERRAIN\\n#ifdef PITCH_WITH_MAP_TERRAIN\\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\\n#endif\\n#endif\\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\\n#ifdef PROJECTION_GLOBE_VIEW\\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\\n#else\\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\\n#endif\\nfloat projection_transition_fade=1.0;\\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\\n#endif\\nv_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;}\"),\n symbolSDF: ui(\"#define SDF_PX 8.0\\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\\n#pragma mapbox: define highp vec4 fill_color\\n#pragma mapbox: define highp vec4 halo_color\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp float halo_width\\n#pragma mapbox: define lowp float halo_blur\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 fill_color\\n#pragma mapbox: initialize highp vec4 halo_color\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize lowp float halo_width\\n#pragma mapbox: initialize lowp float halo_blur\\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\\n#ifdef PROJECTION_GLOBE_VIEW\\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\\n#endif\\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;\\n#ifdef PROJECTION_GLOBE_VIEW\\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\\n#endif\\nvarying vec2 v_data0;varying vec3 v_data1;\\n#pragma mapbox: define highp vec4 fill_color\\n#pragma mapbox: define highp vec4 halo_color\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp float halo_width\\n#pragma mapbox: define lowp float halo_blur\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 fill_color\\n#pragma mapbox: initialize highp vec4 halo_color\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize lowp float halo_width\\n#pragma mapbox: initialize lowp float halo_blur\\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\\n#ifdef PROJECTION_GLOBE_VIEW\\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\\n#else\\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\\n#endif\\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\\ncamera_to_anchor_distance/u_camera_to_center_distance :\\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetprojected_point;\\n#ifdef PROJECTION_GLOBE_VIEW\\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetprojected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\\n#else\\noffsetprojected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\\n#endif\\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\\n#ifdef PROJECTION_GLOBE_VIEW\\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\\n#else\\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\\n#endif\\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);\\n#ifdef TERRAIN\\n#ifdef PITCH_WITH_MAP_TERRAIN\\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\\n#endif\\n#endif\\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\\n#ifdef PROJECTION_GLOBE_VIEW\\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\\n#else\\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\\n#endif\\nfloat gamma_scale=gl_Position.w;float projection_transition_fade=1.0;\\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\\n#endif\\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade);}\"),\n symbolTextAndIcon: ui(\"#define SDF_PX 8.0\\n#define SDF 1.0\\n#define ICON 0.0\\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\\n#pragma mapbox: define highp vec4 fill_color\\n#pragma mapbox: define highp vec4 halo_color\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp float halo_width\\n#pragma mapbox: define lowp float halo_blur\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 fill_color\\n#pragma mapbox: initialize highp vec4 halo_color\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize lowp float halo_width\\n#pragma mapbox: initialize lowp float halo_blur\\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\\n#ifdef PROJECTION_GLOBE_VIEW\\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\\n#endif\\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform vec2 u_texsize_icon;\\n#ifdef PROJECTION_GLOBE_VIEW\\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\\n#endif\\nvarying vec4 v_data0;varying vec4 v_data1;\\n#pragma mapbox: define highp vec4 fill_color\\n#pragma mapbox: define highp vec4 halo_color\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp float halo_width\\n#pragma mapbox: define lowp float halo_blur\\nvoid main() {\\n#pragma mapbox: initialize highp vec4 fill_color\\n#pragma mapbox: initialize highp vec4 halo_color\\n#pragma mapbox: initialize lowp float opacity\\n#pragma mapbox: initialize lowp float halo_width\\n#pragma mapbox: initialize lowp float halo_blur\\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\\n#ifdef PROJECTION_GLOBE_VIEW\\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\\n#else\\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\\n#endif\\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\\ncamera_to_anchor_distance/u_camera_to_center_distance :\\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offset_projected_point=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offset_projected_point.xy/offset_projected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\\n#ifdef PROJECTION_GLOBE_VIEW\\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\\n#else\\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\\n#endif\\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*font_scale);\\n#ifdef TERRAIN\\n#ifdef PITCH_WITH_MAP_TERRAIN\\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\\n#endif\\n#endif\\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\\n#ifdef PROJECTION_GLOBE_VIEW\\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\\n#else\\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\\n#endif\\nfloat gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0;\\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\\n#endif\\nv_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade,is_sdf);}\"),\n terrainRaster: ui(\"uniform sampler2D u_image0;varying vec2 v_pos0;\\n#ifdef FOG\\nvarying float v_fog_opacity;\\n#endif\\n#ifdef RENDER_SHADOWS\\nvarying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\\n#endif\\nvoid main() {vec4 color=texture2D(u_image0,v_pos0);\\n#ifdef RENDER_SHADOWS\\ncolor.xyz=shadowed_color(color.xyz,v_pos_light_view_0,v_pos_light_view_1,v_depth);\\n#endif\\n#ifdef FOG\\n#ifdef ZERO_EXAGGERATION\\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\\n#else\\ncolor=fog_dither(fog_apply_from_vert(color,v_fog_opacity));\\n#endif\\n#endif\\ngl_FragColor=color;\\n#ifdef TERRAIN_WIREFRAME\\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\\n#endif\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"uniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;varying vec2 v_pos0;\\n#ifdef FOG\\nvarying float v_fog_opacity;\\n#endif\\n#ifdef RENDER_SHADOWS\\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\\n#endif\\nconst float wireframeOffset=0.00015;void main() {vec3 decomposedPosAndSkirt=decomposeToPosAndSkirt(a_pos);float skirt=decomposedPosAndSkirt.z;vec2 decodedPos=decomposedPosAndSkirt.xy;float elevation=elevation(decodedPos)-skirt*u_skirt_height;\\n#ifdef TERRAIN_WIREFRAME\\nelevation+=wireframeOffset;\\n#endif\\nv_pos0=decodedPos/8192.0;gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\\n#ifdef FOG\\n#ifdef ZERO_EXAGGERATION\\nv_fog_pos=fog_position(decodedPos);\\n#else\\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\\n#endif\\n#endif\\n#ifdef RENDER_SHADOWS\\nvec3 pos=vec3(decodedPos,elevation);v_pos_light_view_0=u_light_matrix_0*vec4(pos,1.);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1.);v_depth=gl_Position.w;\\n#endif\\n}\"),\n terrainDepth: ui(\"#ifdef GL_ES\\nprecision highp float;\\n#endif\\nvarying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}\", \"uniform mat4 u_matrix;attribute vec2 a_pos;varying float v_depth;void main() {float elevation=elevation(a_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}\"),\n skybox: ui(\"\\nvarying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;\\n#ifdef FOG\\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\\n#endif\\nsky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", Qt),\n skyboxGradient: ui(\"varying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5));\\n#ifdef FOG\\ncolor.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;\\n#endif\\ncolor*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", Qt),\n skyboxCapture: ui(\"\\nvarying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;\\n#ifdef GL_ES\\nprecision highp float;\\n#endif\\n#define BETA_R vec3(5.5e-6,13.0e-6,22.4e-6)\\n#define BETA_M vec3(21e-6,21e-6,21e-6)\\n#define MIE_G 0.76\\n#define DENSITY_HEIGHT_SCALE_R 8000.0\\n#define DENSITY_HEIGHT_SCALE_M 1200.0\\n#define PLANET_RADIUS 6360e3\\n#define ATMOSPHERE_RADIUS 6420e3\\n#define SAMPLE_STEPS 10\\n#define DENSITY_STEPS 4\\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}\", \"attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}\"),\n globeRaster: ui(\"uniform sampler2D u_image0;varying vec2 v_pos0;\\n#ifndef FOG\\nuniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform vec2 u_viewport;\\n#endif\\nvoid main() {vec4 color;\\n#ifdef CUSTOM_ANTIALIASING\\nvec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);vec3 dir=normalize(ray_dir);vec3 closest_point=dot(u_globe_pos,dir)*dir;float norm_dist_from_center=1.0-length(closest_point-u_globe_pos)/u_globe_radius;const float antialias_pixel=2.0;float antialias_factor=antialias_pixel*fwidth(norm_dist_from_center);float antialias=smoothstep(0.0,antialias_factor,norm_dist_from_center);vec4 raster=texture2D(u_image0,v_pos0);color=vec4(raster.rgb*antialias,raster.a*antialias);\\n#else\\ncolor=texture2D(u_image0,v_pos0);\\n#endif\\n#ifdef FOG\\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\\n#endif\\ngl_FragColor=color;\\n#ifdef TERRAIN_WIREFRAME\\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\\n#endif\\n#ifdef OVERDRAW_INSPECTOR\\ngl_FragColor=vec4(1.0);\\n#endif\\n}\", \"uniform mat4 u_proj_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;uniform mat3 u_grid_matrix;uniform float u_skirt_height;\\n#ifdef GLOBE_POLES\\nattribute vec3 a_globe_pos;attribute vec2 a_uv;\\n#else\\nattribute vec2 a_pos;\\n#endif\\nvarying vec2 v_pos0;const float wireframeOffset=1e3;float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(QUARTER_PI+lat/2.0*DEG_TO_RAD))))/360.0;}vec3 latLngToECEF(vec2 latLng) {latLng=DEG_TO_RAD*latLng;float cosLat=cos(latLng[0]);float sinLat=sin(latLng[0]);float cosLng=cos(latLng[1]);float sinLng=sin(latLng[1]);float sx=cosLat*sinLng*GLOBE_RADIUS;float sy=-sinLat*GLOBE_RADIUS;float sz=cosLat*cosLng*GLOBE_RADIUS;return vec3(sx,sy,sz);}void main() {\\n#ifdef GLOBE_POLES\\nvec3 globe_pos=a_globe_pos;vec2 uv=a_uv;\\n#else\\nfloat tiles=u_grid_matrix[0][2];float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];vec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=mercatorX*tiles-idx;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY);\\n#endif\\nv_pos0=uv;vec2 tile_pos=uv*EXTENT;vec3 globe_derived_up_vector=normalize(globe_pos)*u_tile_up_scale;\\n#ifdef GLOBE_POLES\\nvec3 up_vector=globe_derived_up_vector;\\n#else\\nvec3 up_vector=elevationVector(tile_pos);\\n#endif\\nfloat height=elevation(tile_pos);\\n#ifdef TERRAIN_WIREFRAME\\nheight+=wireframeOffset;\\n#endif\\nglobe_pos+=up_vector*height;\\n#ifndef GLOBE_POLES\\nglobe_pos-=globe_derived_up_vector*u_skirt_height*decomposed_pos_and_skirt.z;\\n#endif\\n#ifdef GLOBE_POLES\\nvec4 interpolated_pos=u_globe_matrix*vec4(globe_pos,1.0);\\n#else\\nvec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {merc_world_pos=vec4(merc_pos,height-u_skirt_height*decomposed_pos_and_skirt.z,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition),1.0);\\n#endif\\ngl_Position=u_proj_matrix*interpolated_pos;\\n#ifdef FOG\\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\\n#endif\\n}\"),\n globeAtmosphere: ui(\"uniform float u_transition;uniform highp float u_fadeout_range;uniform highp float u_temporal_offset;uniform vec3 u_start_color;uniform vec4 u_color;uniform vec4 u_space_color;uniform vec4 u_high_color;uniform float u_star_intensity;uniform float u_star_size;uniform float u_star_density;uniform float u_horizon_angle;uniform mat4 u_rotation_matrix;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;highp float random(highp vec3 p) {p=fract(p*vec3(23.2342,97.1231,91.2342));p+=dot(p.zxy,p.yxz+123.1234);return fract(p.x*p.y);}float stars(vec3 p,float scale,vec2 offset) {vec2 uv_scale=(u_viewport/u_star_size)*scale;vec3 position=vec3(p.xy*uv_scale+offset*u_viewport,p.z);vec3 q=fract(position)-0.5;vec3 id=floor(position);float random_visibility=step(random(id),u_star_density);float circle=smoothstep(0.5+u_star_intensity,0.5,length(q));return circle*random_visibility;}void main() {highp vec3 dir=normalize(v_ray_dir);float globe_pos_dot_dir;\\n#ifdef PROJECTION_GLOBE_VIEW\\nglobe_pos_dot_dir=dot(u_globe_pos,dir);highp vec3 closest_point_forward=abs(globe_pos_dot_dir)*dir;float norm_dist_from_center=length(closest_point_forward-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 0.98) {discard;return;}\\n#endif\\nhighp vec3 horizon_dir=normalize(v_horizon_dir);float horizon_angle_mercator=dir.y < horizon_dir.y ?\\n0.0 : max(acos(dot(dir,horizon_dir)),0.0);float horizon_angle;\\n#ifdef PROJECTION_GLOBE_VIEW\\nhighp vec3 closest_point=globe_pos_dot_dir*dir;float closest_point_to_center=length(closest_point-u_globe_pos);float theta=asin(clamp(closest_point_to_center/length(u_globe_pos),-1.0,1.0));horizon_angle=globe_pos_dot_dir < 0.0 ?\\nPI-theta-u_horizon_angle : theta-u_horizon_angle;float angle_t=pow(u_transition,10.0);horizon_angle=mix(horizon_angle,horizon_angle_mercator,angle_t);\\n#else\\nhorizon_angle=horizon_angle_mercator;\\n#endif\\nhorizon_angle/=PI;float t=exp(-horizon_angle/u_fadeout_range);float alpha_0=u_color.a;float alpha_1=u_high_color.a;float alpha_2=u_space_color.a;vec3 color_stop_0=u_color.rgb;vec3 color_stop_1=u_high_color.rgb;vec3 color_stop_2=u_space_color.rgb;vec3 c0=mix(color_stop_2,color_stop_1,alpha_1);vec3 c1=mix(c0,color_stop_0,alpha_0);vec3 c2=mix(c0,c1,t);vec3 c =mix(color_stop_2,c2,t);float a0=mix(alpha_2,1.0,alpha_1);float a1=mix(a0,1.0,alpha_0);float a2=mix(a0,a1,t);float a =mix(alpha_2,a2,t);vec2 uv=gl_FragCoord.xy/u_viewport-0.5;float aspect_ratio=u_viewport.x/u_viewport.y;vec4 uv_dir=vec4(normalize(vec3(uv.x*aspect_ratio,uv.y,1.0)),1.0);uv_dir=u_rotation_matrix*uv_dir;vec3 n=abs(uv_dir.xyz);vec2 uv_remap=(n.x > n.y && n.x > n.z) ? uv_dir.yz/uv_dir.x:\\n(n.y > n.x && n.y > n.z) ? uv_dir.zx/uv_dir.y:\\nuv_dir.xy/uv_dir.z;uv_remap.x/=aspect_ratio;vec3 D=vec3(uv_remap,1.0);highp float star_field=0.0;if (u_star_intensity > 0.0) {star_field+=stars(D,1.2,vec2(0.0,0.0));star_field+=stars(D,1.0,vec2(1.0,0.0));star_field+=stars(D,0.8,vec2(0.0,1.0));star_field+=stars(D,0.6,vec2(1.0,1.0));star_field*=(1.0-pow(t,0.25+(1.0-u_high_color.a)*0.75));c+=star_field*alpha_2;}c=dither(c,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=vec4(c,a);}\", \"attribute vec3 a_pos;attribute vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;uniform float u_horizon;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;void main() {v_ray_dir=mix(\\nmix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);v_horizon_dir=mix(\\nmix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}\")\n };\n function hi(e, t) {\n const i = e.replace(/\\s*\\/\\/[^\\n]*\\n/g, \"\\n\").split(\"\\n\");\n for (let e of i) if (e = e.trim(), \"#\" === e[0] && e.includes(\"if\") && !e.includes(\"endif\")) {\n e = e.replace(\"#\", \"\").replace(/ifdef|ifndef|elif|if/g, \"\").replace(/!|defined|\\(|\\)|\\|\\||&&/g, \"\").replace(/\\s+/g, \" \").trim();\n const i = e.split(\" \");\n for (const e of i) t.includes(e) || t.push(e);\n }\n }\n function ui(e, t) {\n const i = /#pragma mapbox: ([\\w]+) ([\\w]+) ([\\w]+) ([\\w]+)/g,\n o = t.match(/attribute (highp |mediump |lowp )?([\\w]+) ([\\w]+)/g),\n r = {},\n n = [...ni];\n return hi(e, n), hi(t, n), {\n fragmentSource: e = e.replace(i, (e, t, i, o, n) => (r[n] = !0, \"define\" === t ? `\\n#ifndef HAS_UNIFORM_u_${n}\\nvarying ${i} ${o} ${n};\\n#else\\nuniform ${i} ${o} u_${n};\\n#endif\\n` : `\\n#ifdef HAS_UNIFORM_u_${n}\\n ${i} ${o} ${n} = u_${n};\\n#endif\\n`)),\n vertexSource: t = t.replace(i, (e, t, i, o, n) => {\n const s = \"float\" === o ? \"vec2\" : \"vec4\",\n a = n.match(/color/) ? \"color\" : s;\n return r[n] ? \"define\" === t ? `\\n#ifndef HAS_UNIFORM_u_${n}\\nuniform lowp float u_${n}_t;\\nattribute ${i} ${s} a_${n};\\nvarying ${i} ${o} ${n};\\n#else\\nuniform ${i} ${o} u_${n};\\n#endif\\n` : \"vec4\" === a ? `\\n#ifndef HAS_UNIFORM_u_${n}\\n ${n} = a_${n};\\n#else\\n ${i} ${o} ${n} = u_${n};\\n#endif\\n` : `\\n#ifndef HAS_UNIFORM_u_${n}\\n ${n} = unpack_mix_${a}(a_${n}, u_${n}_t);\\n#else\\n ${i} ${o} ${n} = u_${n};\\n#endif\\n` : \"define\" === t ? `\\n#ifndef HAS_UNIFORM_u_${n}\\nuniform lowp float u_${n}_t;\\nattribute ${i} ${s} a_${n};\\n#else\\nuniform ${i} ${o} u_${n};\\n#endif\\n` : \"vec4\" === a ? `\\n#ifndef HAS_UNIFORM_u_${n}\\n ${i} ${o} ${n} = a_${n};\\n#else\\n ${i} ${o} ${n} = u_${n};\\n#endif\\n` : `\\n#ifndef HAS_UNIFORM_u_${n}\\n ${i} ${o} ${n} = unpack_mix_${a}(a_${n}, u_${n}_t);\\n#else\\n ${i} ${o} ${n} = u_${n};\\n#endif\\n`;\n }),\n staticAttributes: o,\n usedDefines: n\n };\n }\n class _i {\n constructor() {\n this.boundProgram = null, this.boundLayoutVertexBuffer = null, this.boundPaintVertexBuffers = [], this.boundIndexBuffer = null, this.boundVertexOffset = null, this.boundDynamicVertexBuffers = [], this.vao = null;\n }\n bind(e, t, i, o, r, n, s) {\n this.context = e;\n let a = this.boundPaintVertexBuffers.length !== o.length;\n for (let e = 0; !a && e < o.length; e++) this.boundPaintVertexBuffers[e] !== o[e] && (a = !0);\n let l = this.boundDynamicVertexBuffers.length !== s.length;\n for (let e = 0; !l && e < s.length; e++) this.boundDynamicVertexBuffers[e] !== s[e] && (l = !0);\n if (!e.extVertexArrayObject || !this.vao || this.boundProgram !== t || this.boundLayoutVertexBuffer !== i || a || l || this.boundIndexBuffer !== r || this.boundVertexOffset !== n) this.freshBind(t, i, o, r, n, s);else {\n e.bindVertexArrayOES.set(this.vao);\n for (const e of s) e && e.bind();\n r && r.dynamicDraw && r.bind();\n }\n }\n freshBind(e, t, i, o, r, n) {\n let s;\n const a = e.numAttributes,\n l = this.context,\n c = l.gl;\n if (l.extVertexArrayObject) this.vao && this.destroy(), this.vao = l.extVertexArrayObject.createVertexArrayOES(), l.bindVertexArrayOES.set(this.vao), s = 0, this.boundProgram = e, this.boundLayoutVertexBuffer = t, this.boundPaintVertexBuffers = i, this.boundIndexBuffer = o, this.boundVertexOffset = r, this.boundDynamicVertexBuffers = n;else {\n s = l.currentNumAttributes || 0;\n for (let e = a; e < s; e++) c.disableVertexAttribArray(e);\n }\n t.enableAttributes(c, e), t.bind(), t.setVertexAttribPointers(c, e, r);\n for (const t of i) t.enableAttributes(c, e), t.bind(), t.setVertexAttribPointers(c, e, r);\n for (const t of n) t && (t.enableAttributes(c, e), t.bind(), t.setVertexAttribPointers(c, e, r));\n o && o.bind(), l.currentNumAttributes = a;\n }\n destroy() {\n this.vao && (this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao), this.vao = null);\n }\n }\n function di(t, i) {\n const o = Math.pow(2, i.canonical.z),\n r = i.canonical.y;\n return [new e.MercatorCoordinate(0, r / o).toLngLat().lat, new e.MercatorCoordinate(0, (r + 1) / o).toLngLat().lat];\n }\n function pi(t, i, o, r, n, s, a) {\n const l = t.context,\n c = l.gl,\n h = o.fbo;\n if (!h) return;\n t.prepareDrawTile();\n const u = t.useProgram(\"hillshade\");\n l.activeTexture.set(c.TEXTURE0), c.bindTexture(c.TEXTURE_2D, h.colorAttachment.get());\n const _ = ((e, t, i, o) => {\n const r = i.paint.get(\"hillshade-shadow-color\"),\n n = i.paint.get(\"hillshade-highlight-color\"),\n s = i.paint.get(\"hillshade-accent-color\");\n let a = i.paint.get(\"hillshade-illumination-direction\") * (Math.PI / 180);\n \"viewport\" === i.paint.get(\"hillshade-illumination-anchor\") && (a -= e.transform.angle);\n const l = !e.options.moving;\n return {\n u_matrix: o || e.transform.calculateProjMatrix(t.tileID.toUnwrapped(), l),\n u_image: 0,\n u_latrange: di(0, t.tileID),\n u_light: [i.paint.get(\"hillshade-exaggeration\"), a],\n u_shadow: r,\n u_highlight: n,\n u_accent: s\n };\n })(t, o, r, t.terrain ? i.projMatrix : null);\n t.prepareDrawProgram(l, u, i.toUnwrapped());\n const {\n tileBoundsBuffer: d,\n tileBoundsIndexBuffer: p,\n tileBoundsSegments: m\n } = t.getTileBoundsBuffers(o);\n u.draw(l, c.TRIANGLES, n, s, a, e.CullFaceMode.disabled, _, r.id, d, p, m);\n }\n function mi(t, i, o) {\n if (!i.needsDEMTextureUpload) return;\n const r = t.context,\n n = r.gl;\n r.pixelStoreUnpackPremultiplyAlpha.set(!1), i.demTexture = i.demTexture || t.getTileTexture(o.stride);\n const s = o.getPixels();\n i.demTexture ? i.demTexture.update(s, {\n premultiply: !1\n }) : i.demTexture = new e.Texture(r, s, n.RGBA, {\n premultiply: !1\n }), i.needsDEMTextureUpload = !1;\n }\n function fi(t, i, o, r, n, s) {\n const a = t.context,\n l = a.gl;\n if (!i.dem) return;\n const c = i.dem;\n if (a.activeTexture.set(l.TEXTURE1), mi(t, i, c), !i.demTexture) return;\n i.demTexture.bind(l.NEAREST, l.CLAMP_TO_EDGE);\n const h = c.dim;\n a.activeTexture.set(l.TEXTURE0);\n let u = i.fbo;\n if (!u) {\n const t = new e.Texture(a, {\n width: h,\n height: h,\n data: null\n }, l.RGBA);\n t.bind(l.LINEAR, l.CLAMP_TO_EDGE), u = i.fbo = a.createFramebuffer(h, h, !0), u.colorAttachment.set(t.texture);\n }\n a.bindFramebuffer.set(u.framebuffer), a.viewport.set([0, 0, h, h]);\n const {\n tileBoundsBuffer: _,\n tileBoundsIndexBuffer: d,\n tileBoundsSegments: p\n } = t.getMercatorTileBoundsBuffers();\n t.useProgram(\"hillshadePrepare\").draw(a, l.TRIANGLES, r, n, s, e.CullFaceMode.disabled, ((t, i) => {\n const o = i.stride,\n r = e.create();\n return e.ortho(r, 0, e.EXTENT, -e.EXTENT, 0, 0, 1), e.translate(r, r, [0, -e.EXTENT, 0]), {\n u_matrix: r,\n u_image: 1,\n u_dimension: [o, o],\n u_zoom: t.overscaledZ,\n u_unpack: i.unpackVector\n };\n })(i.tileID, c), o.id, _, d, p), i.needsHillshadePrepare = !1;\n }\n const gi = t => ({\n u_matrix: new e.UniformMatrix4f(t),\n u_image0: new e.Uniform1i(t),\n u_skirt_height: new e.Uniform1f(t)\n }),\n vi = (e, t) => ({\n u_matrix: e,\n u_image0: 0,\n u_skirt_height: t\n }),\n xi = (e, t, i, o, r, n, s, a, l, c, h, u, _, d, p) => ({\n u_proj_matrix: Float32Array.from(e),\n u_globe_matrix: t,\n u_normalize_matrix: Float32Array.from(o),\n u_merc_matrix: i,\n u_zoom_transition: r,\n u_merc_center: n,\n u_image0: 0,\n u_frustum_tl: s,\n u_frustum_tr: a,\n u_frustum_br: l,\n u_frustum_bl: c,\n u_globe_pos: h,\n u_globe_radius: u,\n u_viewport: _,\n u_grid_matrix: p ? Float32Array.from(p) : new Float32Array(9),\n u_skirt_height: d\n });\n function yi(e, t) {\n return null != e && null != t && !(!e.hasData() || !t.hasData()) && null != e.demTexture && null != t.demTexture && e.tileID.key !== t.tileID.key;\n }\n const bi = new class {\n constructor() {\n this.operations = {};\n }\n newMorphing(e, t, i, o, r) {\n if (e in this.operations) {\n const t = this.operations[e];\n t.to.tileID.key !== i.tileID.key && (t.queued = i);\n } else this.operations[e] = {\n startTime: o,\n phase: 0,\n duration: r,\n from: t,\n to: i,\n queued: null\n };\n }\n getMorphValuesForProxy(e) {\n if (!(e in this.operations)) return null;\n const t = this.operations[e];\n return {\n from: t.from,\n to: t.to,\n phase: t.phase\n };\n }\n update(e) {\n for (const t in this.operations) {\n const i = this.operations[t];\n for (i.phase = (e - i.startTime) / i.duration; i.phase >= 1 || !this._validOp(i);) if (!this._nextOp(i, e)) {\n delete this.operations[t];\n break;\n }\n }\n }\n _nextOp(e, t) {\n return !!e.queued && (e.from = e.to, e.to = e.queued, e.queued = null, e.phase = 0, e.startTime = t, !0);\n }\n _validOp(e) {\n return e.from.hasData() && e.to.hasData();\n }\n }(),\n wi = {\n 0: null,\n 1: \"TERRAIN_VERTEX_MORPHING\",\n 2: \"TERRAIN_WIREFRAME\"\n };\n function Ti(e) {\n return 6 * Math.pow(1.5, 22 - e);\n }\n function Ei(e, t) {\n const i = 1 << e.z;\n return !t && (0 === e.x || e.x === i - 1) || 0 === e.y || e.y === i - 1;\n }\n const Ci = e => ({\n u_matrix: e\n });\n function Mi(t, i, o, r, n) {\n if (n > 0) {\n const s = e.exported.now(),\n a = (s - t.timeAdded) / n,\n l = i ? (s - i.timeAdded) / n : -1,\n c = o.getSource(),\n h = r.coveringZoomLevel({\n tileSize: c.tileSize,\n roundZoom: c.roundZoom\n }),\n u = !i || Math.abs(i.tileID.overscaledZ - h) > Math.abs(t.tileID.overscaledZ - h),\n _ = u && t.refreshedUponExpiration ? 1 : e.clamp(u ? a : 1 - l, 0, 1);\n return t.refreshedUponExpiration && a >= 1 && (t.refreshedUponExpiration = !1), i ? {\n opacity: 1,\n mix: 1 - _\n } : {\n opacity: _,\n mix: 0\n };\n }\n return {\n opacity: 1,\n mix: 0\n };\n }\n class Ii extends e.SourceCache {\n constructor(e) {\n const t = {\n type: \"raster-dem\",\n maxzoom: e.transform.maxZoom\n },\n i = new S(Ue(), null),\n o = De(\"mock-dem\", t, i, e.style);\n super(\"mock-dem\", o, !1), o.setEventedParent(this), this._sourceLoaded = !0;\n }\n _loadTile(e, t) {\n e.state = \"loaded\", t(null);\n }\n }\n class Pi extends e.SourceCache {\n constructor(e) {\n const t = De(\"proxy\", {\n type: \"geojson\",\n maxzoom: e.transform.maxZoom\n }, new S(Ue(), null), e.style);\n super(\"proxy\", t, !1), t.setEventedParent(this), this.map = this.getSource().map = e, this.used = this._sourceLoaded = !0, this.renderCache = [], this.renderCachePool = [], this.proxyCachedFBO = {};\n }\n update(t, i, o) {\n if (t.freezeTileCoverage) return;\n this.transform = t;\n const r = t.coveringTiles({\n tileSize: this._source.tileSize,\n minzoom: this._source.minzoom,\n maxzoom: this._source.maxzoom,\n roundZoom: this._source.roundZoom,\n reparseOverscaled: this._source.reparseOverscaled\n }).reduce((i, o) => {\n if (i[o.key] = \"\", !this._tiles[o.key]) {\n const i = new e.Tile(o, this._source.tileSize * o.overscaleFactor(), t.tileZoom);\n i.state = \"loaded\", this._tiles[o.key] = i;\n }\n return i;\n }, {});\n for (const e in this._tiles) e in r || (this.freeFBO(e), this._tiles[e].unloadVectorData(), delete this._tiles[e]);\n }\n freeFBO(e) {\n const t = this.proxyCachedFBO[e];\n if (void 0 !== t) {\n const i = Object.values(t);\n this.renderCachePool.push(...i), delete this.proxyCachedFBO[e];\n }\n }\n deallocRenderCache() {\n this.renderCache.forEach(e => e.fb.destroy()), this.renderCache = [], this.renderCachePool = [], this.proxyCachedFBO = {};\n }\n }\n class Si extends e.OverscaledTileID {\n constructor(e, t, i) {\n super(e.overscaledZ, e.wrap, e.canonical.z, e.canonical.x, e.canonical.y), this.proxyTileKey = t, this.projMatrix = i;\n }\n }\n class Di extends e.Elevation {\n constructor(t, i) {\n super(), this.painter = t, this.terrainTileForTile = {}, this.prevTerrainTileForTile = {};\n const [o, r, n] = function (t) {\n const i = new e.StructArrayLayout2i4(),\n o = new e.StructArrayLayout3ui6(),\n r = 131;\n i.reserve(17161), o.reserve(33800);\n const n = e.EXTENT / 128,\n s = e.EXTENT + n / 2,\n a = s + n;\n for (let t = -n; t < a; t += n) for (let o = -n; o < a; o += n) {\n const r = o < 0 || o > s || t < 0 || t > s ? 24575 : 0,\n n = e.clamp(Math.round(o), 0, e.EXTENT),\n a = e.clamp(Math.round(t), 0, e.EXTENT);\n i.emplaceBack(n + r, a);\n }\n const l = (e, t) => {\n const i = t * r + e;\n o.emplaceBack(i + 1, i, i + r), o.emplaceBack(i + r, i + r + 1, i + 1);\n };\n for (let e = 1; e < 129; e++) for (let t = 1; t < 129; t++) l(t, e);\n return [0, 129].forEach(e => {\n for (let t = 0; t < 130; t++) l(t, e), l(e, t);\n }), [i, o, 32768];\n }(),\n s = t.context;\n this.gridBuffer = s.createVertexBuffer(o, e.posAttributes.members), this.gridIndexBuffer = s.createIndexBuffer(r), this.gridSegments = e.SegmentVector.simpleSegment(0, 0, o.length, r.length), this.gridNoSkirtSegments = e.SegmentVector.simpleSegment(0, 0, o.length, n), this.proxyCoords = [], this.proxiedCoords = {}, this._visibleDemTiles = [], this._drapedRenderBatches = [], this._sourceTilesOverlap = {}, this.proxySourceCache = new Pi(i.map), this.orthoMatrix = e.create(), e.ortho(this.orthoMatrix, \"globe\" === this.painter.transform.projection.name ? .015 : 0, e.EXTENT, 0, e.EXTENT, 0, 1);\n const a = s.gl;\n this._overlapStencilMode = new e.StencilMode({\n func: a.GEQUAL,\n mask: 255\n }, 0, 255, a.KEEP, a.KEEP, a.REPLACE), this._previousZoom = t.transform.zoom, this.pool = [], this._findCoveringTileCache = {}, this._tilesDirty = {}, this.style = i, this._useVertexMorphing = !0, this._exaggeration = 1, this._mockSourceCache = new Ii(i.map);\n }\n set style(e) {\n e.on(\"data\", this._onStyleDataEvent.bind(this)), e.on(\"neworder\", this._checkRenderCacheEfficiency.bind(this)), this._style = e, this._checkRenderCacheEfficiency(), this._style.map.on(\"moveend\", () => {\n this._clearLineLayersFromRenderCache();\n });\n }\n update(t, i, o) {\n if (t && t.terrain) {\n this._style !== t && (this.style = t), this.enabled = !0;\n const r = t.terrain.properties;\n this.sourceCache = 0 === t.terrain.drapeRenderMode ? this._mockSourceCache : t._getSourceCache(r.get(\"source\")), this._exaggeration = r.get(\"exaggeration\");\n const n = () => {\n this.sourceCache.used && e.warnOnce(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source.\\nThis leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);\n const t = this.getScaledDemTileSize();\n this.sourceCache.update(i, t, !0), this.resetTileLookupCache(this.sourceCache.id);\n };\n this.sourceCache.usedForTerrain || (this.resetTileLookupCache(this.sourceCache.id), this.sourceCache.usedForTerrain = !0, n(), this._initializing = !0), n(), i.updateElevation(!0, o), this.resetTileLookupCache(this.proxySourceCache.id), this.proxySourceCache.update(i), this._emptyDEMTextureDirty = !0;\n } else this._disable();\n }\n resetTileLookupCache(e) {\n this._findCoveringTileCache[e] = {};\n }\n getScaledDemTileSize() {\n return this.sourceCache.getSource().tileSize / 128 * this.proxySourceCache.getSource().tileSize;\n }\n _checkRenderCacheEfficiency() {\n const t = this.renderCacheEfficiency(this._style);\n this._style.map._optimizeForTerrain || 100 !== t.efficiency && e.warnOnce(`Terrain render cache efficiency is not optimal (${t.efficiency}%) and performance\\n may be affected negatively, consider placing all background, fill and line layers before layer\\n with id '${t.firstUndrapedLayer}' or create a map using optimizeForTerrain: true option.`);\n }\n _onStyleDataEvent(e) {\n e.coord && \"source\" === e.dataType ? this._clearRenderCacheForTile(e.sourceCacheId, e.coord) : \"style\" === e.dataType && (this._invalidateRenderCache = !0);\n }\n _disable() {\n if (this.enabled && (this.enabled = !1, this._sharedDepthStencil = void 0, this.proxySourceCache.deallocRenderCache(), this._style)) for (const e in this._style._sourceCaches) this._style._sourceCaches[e].usedForTerrain = !1;\n }\n destroy() {\n this._disable(), this._emptyDEMTexture && this._emptyDEMTexture.destroy(), this._emptyDepthBufferTexture && this._emptyDepthBufferTexture.destroy(), this.pool.forEach(e => e.fb.destroy()), this.pool = [], this._depthFBO && (this._depthFBO.destroy(), this._depthFBO = void 0, this._depthTexture = void 0);\n }\n _source() {\n return this.enabled ? this.sourceCache : null;\n }\n isUsingMockSource() {\n return this.sourceCache === this._mockSourceCache;\n }\n exaggeration() {\n return this._exaggeration;\n }\n get visibleDemTiles() {\n return this._visibleDemTiles;\n }\n get drapeBufferSize() {\n const e = 2 * this.proxySourceCache.getSource().tileSize;\n return [e, e];\n }\n set useVertexMorphing(e) {\n this._useVertexMorphing = e;\n }\n updateTileBinding(t) {\n if (!this.enabled) return;\n this.prevTerrainTileForTile = this.terrainTileForTile;\n const i = this.proxySourceCache,\n o = this.painter.transform;\n this._initializing && (this._initializing = 0 === o._centerAltitude && -1 === this.getAtPointOrZero(e.MercatorCoordinate.fromLngLat(o.center), -1), this._emptyDEMTextureDirty = !this._initializing);\n const r = this.proxyCoords = i.getIds().map(e => {\n const t = i.getTileByID(e).tileID;\n return t.projMatrix = o.calculateProjMatrix(t.toUnwrapped()), t;\n });\n !function (t, i) {\n const o = i.transform.pointCoordinate(i.transform.getCameraPoint()),\n r = new e.Point(o.x, o.y);\n t.sort((t, i) => {\n if (i.overscaledZ - t.overscaledZ) return i.overscaledZ - t.overscaledZ;\n const o = new e.Point(t.canonical.x + (1 << t.canonical.z) * t.wrap, t.canonical.y),\n n = new e.Point(i.canonical.x + (1 << i.canonical.z) * i.wrap, i.canonical.y),\n s = r.mult(1 << t.canonical.z);\n return s.x -= .5, s.y -= .5, s.distSqr(o) - s.distSqr(n);\n });\n }(r, this.painter), this._previousZoom = o.zoom;\n const n = this.proxyToSource || {};\n this.proxyToSource = {}, r.forEach(e => {\n this.proxyToSource[e.key] = {};\n }), this.terrainTileForTile = {};\n const s = this._style._sourceCaches;\n for (const e in s) {\n const i = s[e];\n if (!i.used) continue;\n if (i !== this.sourceCache && this.resetTileLookupCache(i.id), this._setupProxiedCoordsForOrtho(i, t[e], n), i.usedForTerrain) continue;\n const o = t[e];\n i.getSource().reparseOverscaled && this._assignTerrainTiles(o);\n }\n this.proxiedCoords[i.id] = r.map(e => new Si(e, e.key, this.orthoMatrix)), this._assignTerrainTiles(r), this._prepareDEMTextures(), this._setupDrapedRenderBatches(), this._initFBOPool(), this._setupRenderCache(n), this.renderingToTexture = !1, this._updateTimestamp = e.exported.now();\n const a = {};\n this._visibleDemTiles = [];\n for (const e of this.proxyCoords) {\n const t = this.terrainTileForTile[e.key];\n if (!t) continue;\n const i = t.tileID.key;\n i in a || (this._visibleDemTiles.push(t), a[i] = i);\n }\n }\n _assignTerrainTiles(e) {\n this._initializing || e.forEach(e => {\n if (this.terrainTileForTile[e.key]) return;\n const t = this._findTileCoveringTileID(e, this.sourceCache);\n t && (this.terrainTileForTile[e.key] = t);\n });\n }\n _prepareDEMTextures() {\n const e = this.painter.context,\n t = e.gl;\n for (const i in this.terrainTileForTile) {\n const o = this.terrainTileForTile[i],\n r = o.dem;\n !r || o.demTexture && !o.needsDEMTextureUpload || (e.activeTexture.set(t.TEXTURE1), mi(this.painter, o, r));\n }\n }\n _prepareDemTileUniforms(e, t, i, o) {\n if (!t || null == t.demTexture) return !1;\n const r = e.tileID.canonical,\n n = Math.pow(2, t.tileID.canonical.z - r.z),\n s = o || \"\";\n return i[`u_dem_tl${s}`] = [r.x * n % 1, r.y * n % 1], i[`u_dem_scale${s}`] = n, !0;\n }\n get emptyDEMTexture() {\n return !this._emptyDEMTextureDirty && this._emptyDEMTexture ? this._emptyDEMTexture : this._updateEmptyDEMTexture();\n }\n get emptyDepthBufferTexture() {\n const t = this.painter.context,\n i = t.gl;\n if (!this._emptyDepthBufferTexture) {\n const o = new e.RGBAImage({\n width: 1,\n height: 1\n }, Uint8Array.of(255, 255, 255, 255));\n this._emptyDepthBufferTexture = new e.Texture(t, o, i.RGBA, {\n premultiply: !1\n });\n }\n return this._emptyDepthBufferTexture;\n }\n _getLoadedAreaMinimum() {\n let e = 0;\n const t = this._visibleDemTiles.reduce((t, i) => {\n if (!i.dem) return t;\n const o = i.dem.tree.minimums[0];\n return o > 0 && e++, t + o;\n }, 0);\n return e ? t / e : 0;\n }\n _updateEmptyDEMTexture() {\n const t = this.painter.context,\n i = t.gl;\n t.activeTexture.set(i.TEXTURE2);\n const o = this._getLoadedAreaMinimum(),\n r = new e.RGBAImage({\n width: 1,\n height: 1\n }, new Uint8Array(e.DEMData.pack(o, this.sourceCache.getSource().encoding)));\n this._emptyDEMTextureDirty = !1;\n let n = this._emptyDEMTexture;\n return n ? n.update(r, {\n premultiply: !1\n }) : n = this._emptyDEMTexture = new e.Texture(t, r, i.RGBA, {\n premultiply: !1\n }), n;\n }\n setupElevationDraw(t, i, o) {\n const r = this.painter.context,\n n = r.gl,\n s = (a = this.sourceCache.getSource().encoding, {\n u_dem: 2,\n u_dem_prev: 4,\n u_dem_unpack: e.DEMData.getUnpackVector(a),\n u_dem_tl: [0, 0],\n u_dem_tl_prev: [0, 0],\n u_dem_scale: 0,\n u_dem_scale_prev: 0,\n u_dem_size: 0,\n u_dem_lerp: 1,\n u_depth: 3,\n u_depth_size_inv: [0, 0],\n u_exaggeration: 0\n });\n var a;\n s.u_dem_size = this.sourceCache.getSource().tileSize, s.u_exaggeration = this.exaggeration();\n let l = null,\n c = null,\n h = 1;\n if (o && o.morphing && this._useVertexMorphing) {\n const e = o.morphing.srcDemTile,\n i = o.morphing.dstDemTile;\n h = o.morphing.phase, e && i && (this._prepareDemTileUniforms(t, e, s, \"_prev\") && (c = e), this._prepareDemTileUniforms(t, i, s) && (l = i));\n }\n if (c && l ? (r.activeTexture.set(n.TEXTURE2), l.demTexture.bind(n.NEAREST, n.CLAMP_TO_EDGE, n.NEAREST), r.activeTexture.set(n.TEXTURE4), c.demTexture.bind(n.NEAREST, n.CLAMP_TO_EDGE, n.NEAREST), s.u_dem_lerp = h) : (l = this.terrainTileForTile[t.tileID.key], r.activeTexture.set(n.TEXTURE2), (this._prepareDemTileUniforms(t, l, s) ? l.demTexture : this.emptyDEMTexture).bind(n.NEAREST, n.CLAMP_TO_EDGE)), r.activeTexture.set(n.TEXTURE3), o && o.useDepthForOcclusion ? (this._depthTexture && this._depthTexture.bind(n.NEAREST, n.CLAMP_TO_EDGE), this._depthFBO && (s.u_depth_size_inv = [1 / this._depthFBO.width, 1 / this._depthFBO.height])) : (this.emptyDepthBufferTexture.bind(n.NEAREST, n.CLAMP_TO_EDGE), s.u_depth_size_inv = [1, 1]), o && o.useMeterToDem && l) {\n const t = (1 << l.tileID.canonical.z) * e.mercatorZfromAltitude(1, this.painter.transform.center.lat) * this.sourceCache.getSource().tileSize;\n s.u_meter_to_dem = t;\n }\n if (o && o.labelPlaneMatrixInv && (s.u_label_plane_matrix_inv = o.labelPlaneMatrixInv), i.setTerrainUniformValues(r, s), \"globe\" === this.painter.transform.projection.name) {\n const e = this.globeUniformValues(this.painter.transform, t.tileID.canonical, o && o.useDenormalizedUpVectorScale);\n i.setGlobeUniformValues(r, e);\n }\n }\n globeUniformValues(t, i, o) {\n const r = t.projection;\n return {\n u_tile_tl_up: r.upVector(i, 0, 0),\n u_tile_tr_up: r.upVector(i, e.EXTENT, 0),\n u_tile_br_up: r.upVector(i, e.EXTENT, e.EXTENT),\n u_tile_bl_up: r.upVector(i, 0, e.EXTENT),\n u_tile_up_scale: o ? e.globeMetersToEcef(1) : r.upVectorScale(i, t.center.lat, t.worldSize).metersToTile\n };\n }\n renderToBackBuffer(t) {\n const i = this.painter,\n o = this.painter.context;\n 0 !== t.length && (o.bindFramebuffer.set(null), o.viewport.set([0, 0, i.width, i.height]), i.gpuTimingDeferredRenderStart(), this.renderingToTexture = !1, function (t, i, o, r, n) {\n if (\"globe\" === t.transform.projection.name) !function (t, i, o, r, n) {\n const s = t.context,\n a = s.gl;\n let l, c;\n const h = t.options.showTerrainWireframe ? 2 : 0,\n u = t.transform,\n _ = e.globeUseCustomAntiAliasing(t, s, u),\n d = (e, i) => {\n if (c === e) return;\n const o = [wi[e], \"PROJECTION_GLOBE_VIEW\"];\n _ && o.push(\"CUSTOM_ANTIALIASING\"), i && o.push(wi[h]), l = t.useProgram(\"globeRaster\", null, o), c = e;\n },\n p = t.colorModeForRenderPass(),\n m = new e.DepthMode(a.LEQUAL, e.DepthMode.ReadWrite, t.depthRangeFor3D);\n bi.update(n);\n const f = e.calculateGlobeMercatorMatrix(u),\n g = [e.mercatorXfromLng(u.center.lng), e.mercatorYfromLat(u.center.lat)],\n v = h ? [!1, !0] : [!1],\n x = t.globeSharedBuffers,\n y = [u.width * e.exported.devicePixelRatio, u.height * e.exported.devicePixelRatio],\n b = Float32Array.from(u.globeMatrix),\n w = {\n useDenormalizedUpVectorScale: !0\n };\n if (v.forEach(h => {\n const u = t.transform,\n _ = Ti(u.zoom) * i.exaggeration();\n c = -1;\n const v = h ? a.LINES : a.TRIANGLES;\n for (const c of r) {\n const r = o.getTile(c),\n T = e.StencilMode.disabled,\n E = i.prevTerrainTileForTile[c.key],\n C = i.terrainTileForTile[c.key];\n yi(E, C) && bi.newMorphing(c.key, E, C, n, 250), s.activeTexture.set(a.TEXTURE0), r.texture.bind(a.LINEAR, a.CLAMP_TO_EDGE);\n const M = bi.getMorphValuesForProxy(c.key),\n I = M ? 1 : 0;\n M && e.extend$1(w, {\n morphing: {\n srcDemTile: M.from,\n dstDemTile: M.to,\n phase: e.easeCubicInOut(M.phase)\n }\n });\n const P = e.tileCornersToBounds(c.canonical),\n S = e.getLatitudinalLod(P.getCenter().lat),\n D = e.getGridMatrix(c.canonical, P, S, u.worldSize / u._pixelsPerMercatorPixel),\n L = e.globeNormalizeECEF(e.globeTileBounds(c.canonical)),\n A = xi(u.projMatrix, b, f, L, e.globeToMercatorTransition(u.zoom), g, u.frustumCorners.TL, u.frustumCorners.TR, u.frustumCorners.BR, u.frustumCorners.BL, u.globeCenterInViewSpace, u.globeRadius, y, _, D);\n if (d(I, h), i.setupElevationDraw(r, l, w), t.prepareDrawProgram(s, l, c.toUnwrapped()), x) {\n const [i, o, r] = h ? x.getWirefameBuffers(t.context, S) : x.getGridBuffers(S, 0 !== _);\n l.draw(s, v, m, T, p, e.CullFaceMode.backCCW, A, \"globe_raster\", i, o, r);\n }\n }\n }), x) {\n const n = [\"GLOBE_POLES\", \"PROJECTION_GLOBE_VIEW\"];\n _ && n.push(\"CUSTOM_ANTIALIASING\"), l = t.useProgram(\"globeRaster\", null, n);\n for (const n of r) {\n const {\n x: r,\n y: c,\n z: h\n } = n.canonical,\n _ = 0 === c,\n d = c === (1 << h) - 1,\n [f, v, b, T] = x.getPoleBuffers(h);\n if (T && (_ || d)) {\n const c = o.getTile(n);\n s.activeTexture.set(a.TEXTURE0), c.texture.bind(a.LINEAR, a.CLAMP_TO_EDGE);\n let x = e.globePoleMatrixForTile(h, r, u);\n const E = e.globeNormalizeECEF(e.globeTileBounds(n.canonical)),\n C = (t, i) => t.draw(s, a.TRIANGLES, m, e.StencilMode.disabled, p, e.CullFaceMode.disabled, xi(u.projMatrix, x, x, E, 0, g, u.frustumCorners.TL, u.frustumCorners.TR, u.frustumCorners.BR, u.frustumCorners.BL, u.globeCenterInViewSpace, u.globeRadius, y, 0), \"globe_pole_raster\", i, b, T);\n i.setupElevationDraw(c, l, w), t.prepareDrawProgram(s, l, n.toUnwrapped()), _ && C(l, f), d && (x = e.scale(e.create(), x, [1, -1, 1]), C(l, v));\n }\n }\n }\n }(t, i, o, r, n);else {\n const s = t.context,\n a = s.gl;\n let l, c;\n const h = t.options.showTerrainWireframe ? 2 : 0,\n u = (e, i) => {\n if (c === e) return;\n const o = [wi[e]];\n i && o.push(wi[h]), l = t.useProgram(\"terrainRaster\", null, o), c = e;\n },\n _ = t.colorModeForRenderPass(),\n d = new e.DepthMode(a.LEQUAL, e.DepthMode.ReadWrite, t.depthRangeFor3D);\n bi.update(n);\n const p = t.transform,\n m = Ti(p.zoom) * i.exaggeration();\n (h ? [!1, !0] : [!1]).forEach(h => {\n c = -1;\n const f = h ? a.LINES : a.TRIANGLES,\n [g, v] = h ? i.getWirefameBuffer() : [i.gridIndexBuffer, i.gridSegments];\n for (const c of r) {\n const r = o.getTile(c),\n x = e.StencilMode.disabled,\n y = i.prevTerrainTileForTile[c.key],\n b = i.terrainTileForTile[c.key];\n yi(y, b) && bi.newMorphing(c.key, y, b, n, 250), s.activeTexture.set(a.TEXTURE0), r.texture.bind(a.LINEAR, a.CLAMP_TO_EDGE, a.LINEAR_MIPMAP_NEAREST);\n const w = bi.getMorphValuesForProxy(c.key),\n T = w ? 1 : 0;\n let E;\n w && (E = {\n morphing: {\n srcDemTile: w.from,\n dstDemTile: w.to,\n phase: e.easeCubicInOut(w.phase)\n }\n });\n const C = vi(c.projMatrix, Ei(c.canonical, p.renderWorldCopies) ? m / 10 : m);\n u(T, h), i.setupElevationDraw(r, l, E), t.prepareDrawProgram(s, l, c.toUnwrapped()), l.draw(s, f, d, x, _, e.CullFaceMode.backCCW, C, \"terrain_raster\", i.gridBuffer, g, v);\n }\n });\n }\n }(i, this, this.proxySourceCache, t, this._updateTimestamp), this.renderingToTexture = !0, i.gpuTimingDeferredRenderEnd(), t.splice(0, t.length));\n }\n renderBatch(t) {\n if (0 === this._drapedRenderBatches.length) return t + 1;\n this.renderingToTexture = !0;\n const i = this.painter,\n o = this.painter.context,\n r = this.proxySourceCache,\n n = this.proxiedCoords[r.id],\n s = this._drapedRenderBatches.shift(),\n a = [],\n l = i.style.order;\n let c = 0;\n for (const h of n) {\n const n = r.getTileByID(h.proxyTileKey),\n u = r.proxyCachedFBO[h.key] ? r.proxyCachedFBO[h.key][t] : void 0,\n _ = void 0 !== u ? r.renderCache[u] : this.pool[c++],\n d = void 0 !== u;\n if (n.texture = _.tex, d && !_.dirty) {\n a.push(n.tileID);\n continue;\n }\n let p;\n o.bindFramebuffer.set(_.fb.framebuffer), this.renderedToTile = !1, _.dirty && (o.clear({\n color: e.Color.transparent,\n stencil: 0\n }), _.dirty = !1);\n for (let e = s.start; e <= s.end; ++e) {\n const t = i.style._layers[l[e]];\n if (t.isHidden(i.transform.zoom)) continue;\n const r = i.style._getLayerSourceCache(t),\n n = r ? this.proxyToSource[h.key][r.id] : [h];\n if (!n) continue;\n const s = n;\n o.viewport.set([0, 0, _.fb.width, _.fb.height]), p !== (r ? r.id : null) && (this._setupStencil(_, n, t, r), p = r ? r.id : null), i.renderLayer(i, r, t, s);\n }\n this.renderedToTile ? (_.dirty = !0, a.push(n.tileID)) : d || --c, 5 === c && (c = 0, this.renderToBackBuffer(a));\n }\n return this.renderToBackBuffer(a), this.renderingToTexture = !1, o.bindFramebuffer.set(null), o.viewport.set([0, 0, i.width, i.height]), s.end + 1;\n }\n postRender() {}\n renderCacheEfficiency(e) {\n const t = e.order.length;\n if (0 === t) return {\n efficiency: 100\n };\n let i,\n o = 0,\n r = 0,\n n = !1;\n for (let s = 0; s < t; ++s) {\n const t = e._layers[e.order[s]];\n this._style.isLayerDraped(t) ? (n && ++o, ++r) : n || (n = !0, i = t.id);\n }\n return 0 === r ? {\n efficiency: 100\n } : {\n efficiency: 100 * (1 - o / r),\n firstUndrapedLayer: i\n };\n }\n getMinElevationBelowMSL() {\n let e = 0;\n return this._visibleDemTiles.filter(e => e.dem).forEach(t => {\n e = Math.min(e, t.dem.tree.minimums[0]);\n }), 0 === e ? e : (e - 30) * this._exaggeration;\n }\n raycast(e, t, i) {\n if (!this._visibleDemTiles) return null;\n const o = this._visibleDemTiles.filter(e => e.dem).map(o => {\n const r = o.tileID,\n n = 1 << r.overscaledZ,\n {\n x: s,\n y: a\n } = r.canonical,\n l = s / n,\n c = (s + 1) / n,\n h = a / n,\n u = (a + 1) / n;\n return {\n minx: l,\n miny: h,\n maxx: c,\n maxy: u,\n t: o.dem.tree.raycastRoot(l, h, c, u, e, t, i),\n tile: o\n };\n });\n o.sort((e, t) => (null !== e.t ? e.t : Number.MAX_VALUE) - (null !== t.t ? t.t : Number.MAX_VALUE));\n for (const r of o) {\n if (null == r.t) return null;\n const o = r.tile.dem.tree.raycast(r.minx, r.miny, r.maxx, r.maxy, e, t, i);\n if (null != o) return o;\n }\n return null;\n }\n _createFBO() {\n const t = this.painter.context,\n i = t.gl,\n o = this.drapeBufferSize;\n t.activeTexture.set(i.TEXTURE0);\n const r = new e.Texture(t, {\n width: o[0],\n height: o[1],\n data: null\n }, i.RGBA);\n r.bind(i.LINEAR, i.CLAMP_TO_EDGE);\n const n = t.createFramebuffer(o[0], o[1], !1);\n return n.colorAttachment.set(r.texture), n.depthAttachment = new we(t, n.framebuffer), void 0 === this._sharedDepthStencil ? (this._sharedDepthStencil = t.createRenderbuffer(t.gl.DEPTH_STENCIL, o[0], o[1]), this._stencilRef = 0, n.depthAttachment.set(this._sharedDepthStencil), t.clear({\n stencil: 0\n })) : n.depthAttachment.set(this._sharedDepthStencil), t.extTextureFilterAnisotropic && !t.extTextureFilterAnisotropicForceOff && i.texParameterf(i.TEXTURE_2D, t.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, t.extTextureFilterAnisotropicMax), {\n fb: n,\n tex: r,\n dirty: !1\n };\n }\n _initFBOPool() {\n for (; this.pool.length < Math.min(5, this.proxyCoords.length);) this.pool.push(this._createFBO());\n }\n _shouldDisableRenderCache() {\n if (this._style.light && this._style.light.hasTransition()) return !0;\n for (const e in this._style._sourceCaches) if (this._style._sourceCaches[e].hasTransition()) return !0;\n return this._style.order.some(e => {\n const t = this._style._layers[e],\n i = t.isHidden(this.painter.transform.zoom);\n return \"custom\" === t.type ? !i && t.shouldRedrape() : !i && t.hasTransition();\n });\n }\n _clearLineLayersFromRenderCache() {\n let t = !1;\n for (const e of this._style._getSources()) if (e instanceof Ce) {\n t = !0;\n break;\n }\n if (!t) return;\n const i = {};\n for (let t = 0; t < this._style.order.length; ++t) {\n const o = this._style._layers[this._style.order[t]],\n r = this._style._getLayerSourceCache(o);\n if (r && !i[r.id] && !o.isHidden(this.painter.transform.zoom) && \"line\" === o.type && o.widthExpression() instanceof e.ZoomDependentExpression) {\n i[r.id] = !0;\n for (const e of this.proxyCoords) {\n const t = this.proxyToSource[e.key][r.id];\n if (t) for (const e of t) this._clearRenderCacheForTile(r.id, e);\n }\n }\n }\n }\n _clearRasterLayersFromRenderCache() {\n let e = !1;\n for (const t in this._style._sourceCaches) if (this._style._sourceCaches[t]._source instanceof Me) {\n e = !0;\n break;\n }\n if (!e) return;\n const t = {};\n for (let e = 0; e < this._style.order.length; ++e) {\n const i = this._style._layers[this._style.order[e]],\n o = this._style._getLayerSourceCache(i);\n if (!o || t[o.id]) continue;\n if (i.isHidden(this.painter.transform.zoom) || \"raster\" !== i.type) continue;\n const r = i.paint.get(\"raster-fade-duration\");\n for (const e of this.proxyCoords) {\n const t = this.proxyToSource[e.key][o.id];\n if (t) for (const e of t) {\n const t = Mi(o.getTile(e), o.findLoadedParent(e, 0), o, this.painter.transform, r);\n (1 !== t.opacity || 0 !== t.mix) && this._clearRenderCacheForTile(o.id, e);\n }\n }\n }\n }\n _setupDrapedRenderBatches() {\n const e = this._style.order,\n t = e.length;\n if (0 === t) return;\n const i = [];\n let o,\n r = 0,\n n = this._style._layers[e[r]];\n for (; !this._style.isLayerDraped(n) && n.isHidden(this.painter.transform.zoom) && ++r < t;) n = this._style._layers[e[r]];\n for (; r < t; ++r) {\n const t = this._style._layers[e[r]];\n t.isHidden(this.painter.transform.zoom) || (this._style.isLayerDraped(t) ? void 0 === o && (o = r) : void 0 !== o && (i.push({\n start: o,\n end: r - 1\n }), o = void 0));\n }\n void 0 !== o && i.push({\n start: o,\n end: r - 1\n }), this._drapedRenderBatches = i;\n }\n _setupRenderCache(e) {\n const t = this.proxySourceCache;\n if (this._shouldDisableRenderCache() || this._invalidateRenderCache) {\n if (this._invalidateRenderCache = !1, t.renderCache.length > t.renderCachePool.length) {\n const e = Object.values(t.proxyCachedFBO);\n t.proxyCachedFBO = {};\n for (let i = 0; i < e.length; ++i) {\n const o = Object.values(e[i]);\n t.renderCachePool.push(...o);\n }\n }\n return;\n }\n this._clearRasterLayersFromRenderCache();\n const i = this.proxyCoords,\n o = this._tilesDirty;\n for (let r = i.length - 1; r >= 0; r--) {\n const n = i[r];\n if (t.getTileByID(n.key), void 0 !== t.proxyCachedFBO[n.key]) {\n const i = e[n.key],\n r = this.proxyToSource[n.key];\n let s = 0;\n for (const e in r) {\n const t = r[e],\n n = i[e];\n if (!n || n.length !== t.length || t.some((t, i) => t !== n[i] || o[e] && o[e].hasOwnProperty(t.key))) {\n s = -1;\n break;\n }\n ++s;\n }\n for (const e in t.proxyCachedFBO[n.key]) t.renderCache[t.proxyCachedFBO[n.key][e]].dirty = s < 0 || s !== Object.values(i).length;\n }\n }\n const r = [...this._drapedRenderBatches];\n r.sort((e, t) => t.end - t.start - (e.end - e.start));\n for (const e of r) for (const o of i) {\n if (t.proxyCachedFBO[o.key]) continue;\n let i = t.renderCachePool.pop();\n void 0 === i && t.renderCache.length < 50 && (i = t.renderCache.length, t.renderCache.push(this._createFBO())), void 0 !== i && (t.proxyCachedFBO[o.key] = {}, t.proxyCachedFBO[o.key][e.start] = i, t.renderCache[i].dirty = !0);\n }\n this._tilesDirty = {};\n }\n _setupStencil(e, t, i, o) {\n if (!o || !this._sourceTilesOverlap[o.id]) return void (this._overlapStencilType && (this._overlapStencilType = !1));\n const r = this.painter.context,\n n = r.gl;\n if (t.length <= 1) return void (this._overlapStencilType = !1);\n let s;\n if (i.isTileClipped()) s = t.length, this._overlapStencilMode.test = {\n func: n.EQUAL,\n mask: 255\n }, this._overlapStencilType = \"Clip\";else {\n if (!(t[0].overscaledZ > t[t.length - 1].overscaledZ)) return void (this._overlapStencilType = !1);\n s = 1, this._overlapStencilMode.test = {\n func: n.GREATER,\n mask: 255\n }, this._overlapStencilType = \"Mask\";\n }\n this._stencilRef + s > 255 && (r.clear({\n stencil: 0\n }), this._stencilRef = 0), this._stencilRef += s, this._overlapStencilMode.ref = this._stencilRef, i.isTileClipped() && this._renderTileClippingMasks(t, this._overlapStencilMode.ref);\n }\n clipOrMaskOverlapStencilType() {\n return \"Clip\" === this._overlapStencilType || \"Mask\" === this._overlapStencilType;\n }\n stencilModeForRTTOverlap(t) {\n return this.renderingToTexture && this._overlapStencilType ? (\"Clip\" === this._overlapStencilType && (this._overlapStencilMode.ref = this.painter._tileClippingMaskIDs[t.key]), this._overlapStencilMode) : e.StencilMode.disabled;\n }\n _renderTileClippingMasks(t, i) {\n const o = this.painter,\n r = this.painter.context,\n n = r.gl;\n o._tileClippingMaskIDs = {}, r.setColorMode(e.ColorMode.disabled), r.setDepthMode(e.DepthMode.disabled);\n const s = o.useProgram(\"clippingMask\");\n for (const a of t) {\n const t = o._tileClippingMaskIDs[a.key] = --i;\n s.draw(r, n.TRIANGLES, e.DepthMode.disabled, new e.StencilMode({\n func: n.ALWAYS,\n mask: 0\n }, t, 255, n.KEEP, n.KEEP, n.REPLACE), e.ColorMode.disabled, e.CullFaceMode.disabled, Ci(a.projMatrix), \"$clipping\", o.tileExtentBuffer, o.quadTriangleIndexBuffer, o.tileExtentSegments);\n }\n }\n pointCoordinate(t) {\n const i = this.painter.transform;\n if (t.x < 0 || t.x > i.width || t.y < 0 || t.y > i.height) return null;\n const o = [t.x, t.y, 1, 1];\n e.transformMat4$1(o, o, i.pixelMatrixInverse), e.scale$1(o, o, 1 / o[3]), o[0] /= i.worldSize, o[1] /= i.worldSize;\n const r = i._camera.position,\n n = e.mercatorZfromAltitude(1, i.center.lat),\n s = [r[0], r[1], r[2] / n, 0],\n a = e.subtract([], o.slice(0, 3), s);\n e.normalize(a, a);\n const l = this.raycast(s, a, this._exaggeration);\n return null !== l && l ? (e.scaleAndAdd(s, s, a, l), s[3] = s[2], s[2] *= n, s) : null;\n }\n drawDepth() {\n const t = this.painter,\n i = t.context,\n o = this.proxySourceCache,\n r = Math.ceil(t.width),\n n = Math.ceil(t.height);\n if (!this._depthFBO || this._depthFBO.width === r && this._depthFBO.height === n || (this._depthFBO.destroy(), this._depthFBO = void 0, this._depthTexture = void 0), !this._depthFBO) {\n const t = i.gl,\n o = i.createFramebuffer(r, n, !0);\n i.activeTexture.set(t.TEXTURE0);\n const s = new e.Texture(i, {\n width: r,\n height: n,\n data: null\n }, t.RGBA);\n s.bind(t.NEAREST, t.CLAMP_TO_EDGE), o.colorAttachment.set(s.texture);\n const a = i.createRenderbuffer(i.gl.DEPTH_COMPONENT16, r, n);\n o.depthAttachment.set(a), this._depthFBO = o, this._depthTexture = s;\n }\n i.bindFramebuffer.set(this._depthFBO.framebuffer), i.viewport.set([0, 0, r, n]), function (t, i, o, r) {\n if (\"globe\" === t.transform.projection.name) return;\n const n = t.context,\n s = n.gl;\n n.clear({\n depth: 1\n });\n const a = t.useProgram(\"terrainDepth\"),\n l = new e.DepthMode(s.LESS, e.DepthMode.ReadWrite, t.depthRangeFor3D);\n for (const t of r) {\n const r = o.getTile(t),\n c = vi(t.projMatrix, 0);\n i.setupElevationDraw(r, a), a.draw(n, s.TRIANGLES, l, e.StencilMode.disabled, e.ColorMode.unblended, e.CullFaceMode.backCCW, c, \"terrain_depth\", i.gridBuffer, i.gridIndexBuffer, i.gridNoSkirtSegments);\n }\n }(t, this, o, this.proxyCoords);\n }\n _setupProxiedCoordsForOrtho(e, t, i) {\n if (e.getSource() instanceof Pe) return this._setupProxiedCoordsForImageSource(e, t, i);\n this._findCoveringTileCache[e.id] = this._findCoveringTileCache[e.id] || {};\n const o = this.proxiedCoords[e.id] = [],\n r = this.proxyCoords;\n for (let t = 0; t < r.length; t++) {\n const n = r[t],\n s = this._findTileCoveringTileID(n, e);\n if (s) {\n const t = this._createProxiedId(n, s, i[n.key] && i[n.key][e.id]);\n o.push(t), this.proxyToSource[n.key][e.id] = [t];\n }\n }\n let n = !1;\n for (let r = 0; r < t.length; r++) {\n const s = e.getTile(t[r]);\n if (!s || !s.hasData()) continue;\n const a = this._findTileCoveringTileID(s.tileID, this.proxySourceCache);\n if (a && a.tileID.canonical.z !== s.tileID.canonical.z) {\n const t = this.proxyToSource[a.tileID.key][e.id],\n r = this._createProxiedId(a.tileID, s, i[a.tileID.key] && i[a.tileID.key][e.id]);\n t ? t.splice(t.length - 1, 0, r) : this.proxyToSource[a.tileID.key][e.id] = [r], o.push(r), n = !0;\n }\n }\n this._sourceTilesOverlap[e.id] = n;\n }\n _setupProxiedCoordsForImageSource(t, i, o) {\n if (!t.getSource().loaded()) return;\n const r = this.proxiedCoords[t.id] = [],\n n = this.proxyCoords,\n s = t.getSource(),\n a = new e.Point(s.tileID.x, s.tileID.y)._div(1 << s.tileID.z),\n l = s.coordinates.map(e.MercatorCoordinate.fromLngLat).reduce((e, t) => (e.min.x = Math.min(e.min.x, t.x - a.x), e.min.y = Math.min(e.min.y, t.y - a.y), e.max.x = Math.max(e.max.x, t.x - a.x), e.max.y = Math.max(e.max.y, t.y - a.y), e), {\n min: new e.Point(Number.MAX_VALUE, Number.MAX_VALUE),\n max: new e.Point(-Number.MAX_VALUE, -Number.MAX_VALUE)\n }),\n c = (t, i) => {\n const o = t.wrap + t.canonical.x / (1 << t.canonical.z),\n r = t.canonical.y / (1 << t.canonical.z),\n n = e.EXTENT / (1 << t.canonical.z),\n s = i.wrap + i.canonical.x / (1 << i.canonical.z),\n a = i.canonical.y / (1 << i.canonical.z);\n return o + n < s + l.min.x || o > s + l.max.x || r + n < a + l.min.y || r > a + l.max.y;\n };\n for (let e = 0; e < n.length; e++) {\n const s = n[e];\n for (let e = 0; e < i.length; e++) {\n const n = t.getTile(i[e]);\n if (!n || !n.hasData()) continue;\n if (c(s, n.tileID)) continue;\n const a = this._createProxiedId(s, n, o[s.key] && o[s.key][t.id]),\n l = this.proxyToSource[s.key][t.id];\n l ? l.push(a) : this.proxyToSource[s.key][t.id] = [a], r.push(a);\n }\n }\n }\n _createProxiedId(t, i, o) {\n let r = this.orthoMatrix;\n if (o) {\n const e = o.find(e => e.key === i.tileID.key);\n if (e) return e;\n }\n if (i.tileID.key !== t.key) {\n const o = t.canonical.z - i.tileID.canonical.z;\n let n, s, a;\n r = e.create();\n const l = i.tileID.wrap - t.wrap << t.overscaledZ;\n o > 0 ? (n = e.EXTENT >> o, s = n * ((i.tileID.canonical.x << o) - t.canonical.x + l), a = n * ((i.tileID.canonical.y << o) - t.canonical.y)) : (n = e.EXTENT << -o, s = e.EXTENT * (i.tileID.canonical.x - (t.canonical.x + l << -o)), a = e.EXTENT * (i.tileID.canonical.y - (t.canonical.y << -o))), e.ortho(r, 0, n, 0, n, 0, 1), e.translate(r, r, [s, a, 0]);\n }\n return new Si(i.tileID, t.key, r);\n }\n _findTileCoveringTileID(t, i) {\n let o = i.getTile(t);\n if (o && o.hasData()) return o;\n const r = this._findCoveringTileCache[i.id],\n n = r[t.key];\n if (o = n ? i.getTileByID(n) : null, o && o.hasData() || null === n) return o;\n let s = o ? o.tileID : t,\n a = s.overscaledZ;\n const l = i.getSource().minzoom,\n c = [];\n if (!n) {\n const r = i.getSource().maxzoom;\n if (t.canonical.z >= r) {\n const o = t.canonical.z - r;\n i.getSource().reparseOverscaled ? (a = Math.max(t.canonical.z + 2, i.transform.tileZoom), s = new e.OverscaledTileID(a, t.wrap, r, t.canonical.x >> o, t.canonical.y >> o)) : 0 !== o && (a = r, s = new e.OverscaledTileID(a, t.wrap, r, t.canonical.x >> o, t.canonical.y >> o));\n }\n s.key !== t.key && (c.push(s.key), o = i.getTile(s));\n }\n const h = e => {\n c.forEach(t => {\n r[t] = e;\n }), c.length = 0;\n };\n for (a -= 1; a >= l && (!o || !o.hasData()); a--) {\n o && h(o.tileID.key);\n const e = s.calculateScaledKey(a);\n if (o = i.getTileByID(e), o && o.hasData()) break;\n const t = r[e];\n if (null === t) break;\n void 0 === t ? c.push(e) : o = i.getTileByID(t);\n }\n return h(o ? o.tileID.key : null), o && o.hasData() ? o : null;\n }\n findDEMTileFor(e) {\n return this.enabled ? this._findTileCoveringTileID(e, this.sourceCache) : null;\n }\n prepareDrawTile() {\n this.renderedToTile = !0;\n }\n _clearRenderCacheForTile(e, t) {\n let i = this._tilesDirty[e];\n i || (i = this._tilesDirty[e] = {}), i[t.key] = !0;\n }\n getWirefameBuffer() {\n if (!this.wireframeSegments) {\n const t = function (t) {\n let i = 0;\n const o = new e.StructArrayLayout2ui4(),\n r = 131;\n for (let e = 1; e < 129; e++) {\n for (let t = 1; t < 129; t++) i = e * r + t, o.emplaceBack(i, i + 1), o.emplaceBack(i, i + r), o.emplaceBack(i + 1, i + r), 128 === e && o.emplaceBack(i + r, i + r + 1);\n o.emplaceBack(i + 1, i + 1 + r);\n }\n return o;\n }();\n this.wireframeIndexBuffer = this.painter.context.createIndexBuffer(t), this.wireframeSegments = e.SegmentVector.simpleSegment(0, 0, this.gridBuffer.length, t.length);\n }\n return [this.wireframeIndexBuffer, this.wireframeSegments];\n }\n }\n class Li {\n static cacheKey(e, t, i, o) {\n let r = `${t}${o ? o.cacheKey : \"\"}`;\n for (const t of i) e.usedDefines.includes(t) && (r += `/${t}`);\n return r;\n }\n constructor(t, i, o, r, n, s) {\n const a = t.gl;\n this.program = a.createProgram();\n const l = function (e) {\n const t = [];\n for (let i = 0; i < e.length; i++) {\n if (null === e[i]) continue;\n const o = e[i].split(\" \");\n t.push(o.pop());\n }\n return t;\n }(o.staticAttributes),\n c = r ? r.getBinderAttributes() : [],\n h = l.concat(c);\n let u = r ? r.defines() : [];\n u = u.concat(s.map(e => `#define ${e}`));\n const _ = t.isWebGL2 ? \"#version 300 es\\n\" : \"\",\n d = _ + u.concat(t.extStandardDerivatives && 0 === _.length ? \"#extension GL_OES_standard_derivatives : enable\\n\".concat(li) : li, li, ai, si.fragmentSource, ri.fragmentSource, o.fragmentSource).join(\"\\n\"),\n p = _ + u.concat(\"\\n#ifdef GL_ES\\nprecision highp float;\\n#else\\n\\n#if !defined(lowp)\\n#define lowp\\n#endif\\n\\n#if !defined(mediump)\\n#define mediump\\n#endif\\n\\n#if !defined(highp)\\n#define highp\\n#endif\\n\\n#endif\", ai, si.vertexSource, ri.vertexSource, oi.vertexSource, o.vertexSource).join(\"\\n\"),\n m = a.createShader(a.FRAGMENT_SHADER);\n if (a.isContextLost()) return void (this.failedToCreate = !0);\n a.shaderSource(m, d), a.compileShader(m), a.attachShader(this.program, m);\n const f = a.createShader(a.VERTEX_SHADER);\n if (a.isContextLost()) this.failedToCreate = !0;else {\n a.shaderSource(f, p), a.compileShader(f), a.attachShader(this.program, f), this.attributes = {}, this.numAttributes = h.length;\n for (let e = 0; e < this.numAttributes; e++) h[e] && (a.bindAttribLocation(this.program, e, h[e]), this.attributes[h[e]] = e);\n a.linkProgram(this.program), a.deleteShader(f), a.deleteShader(m), this.fixedUniforms = n(t), this.binderUniforms = r ? r.getUniforms(t) : [], s.includes(\"TERRAIN\") && (this.terrainUniforms = (t => ({\n u_dem: new e.Uniform1i(t),\n u_dem_prev: new e.Uniform1i(t),\n u_dem_unpack: new e.Uniform4f(t),\n u_dem_tl: new e.Uniform2f(t),\n u_dem_scale: new e.Uniform1f(t),\n u_dem_tl_prev: new e.Uniform2f(t),\n u_dem_scale_prev: new e.Uniform1f(t),\n u_dem_size: new e.Uniform1f(t),\n u_dem_lerp: new e.Uniform1f(t),\n u_exaggeration: new e.Uniform1f(t),\n u_depth: new e.Uniform1i(t),\n u_depth_size_inv: new e.Uniform2f(t),\n u_meter_to_dem: new e.Uniform1f(t),\n u_label_plane_matrix_inv: new e.UniformMatrix4f(t)\n }))(t)), s.includes(\"GLOBE\") && (this.globeUniforms = (t => ({\n u_tile_tl_up: new e.Uniform3f(t),\n u_tile_tr_up: new e.Uniform3f(t),\n u_tile_br_up: new e.Uniform3f(t),\n u_tile_bl_up: new e.Uniform3f(t),\n u_tile_up_scale: new e.Uniform1f(t)\n }))(t)), s.includes(\"FOG\") && (this.fogUniforms = (t => ({\n u_fog_matrix: new e.UniformMatrix4f(t),\n u_fog_range: new e.Uniform2f(t),\n u_fog_color: new e.Uniform4f(t),\n u_fog_horizon_blend: new e.Uniform1f(t),\n u_fog_temporal_offset: new e.Uniform1f(t),\n u_frustum_tl: new e.Uniform3f(t),\n u_frustum_tr: new e.Uniform3f(t),\n u_frustum_br: new e.Uniform3f(t),\n u_frustum_bl: new e.Uniform3f(t),\n u_globe_pos: new e.Uniform3f(t),\n u_globe_radius: new e.Uniform1f(t),\n u_globe_transition: new e.Uniform1f(t),\n u_is_globe: new e.Uniform1i(t),\n u_viewport: new e.Uniform2f(t)\n }))(t));\n }\n }\n setTerrainUniformValues(e, t) {\n if (!this.terrainUniforms) return;\n const i = this.terrainUniforms;\n if (!this.failedToCreate) {\n e.program.set(this.program);\n for (const e in t) i[e] && i[e].set(this.program, e, t[e]);\n }\n }\n setGlobeUniformValues(e, t) {\n if (!this.globeUniforms) return;\n const i = this.globeUniforms;\n if (!this.failedToCreate) {\n e.program.set(this.program);\n for (const e in t) i[e] && i[e].set(this.program, e, t[e]);\n }\n }\n setFogUniformValues(e, t) {\n if (!this.fogUniforms) return;\n const i = this.fogUniforms;\n if (!this.failedToCreate) {\n e.program.set(this.program);\n for (const e in t) i[e].set(this.program, e, t[e]);\n }\n }\n draw(e, t, i, o, r, n, s, a, l, c, h, u, _, d, p) {\n const m = e.gl;\n if (this.failedToCreate) return;\n e.program.set(this.program), e.setDepthMode(i), e.setStencilMode(o), e.setColorMode(r), e.setCullFace(n);\n for (const e of Object.keys(this.fixedUniforms)) this.fixedUniforms[e].set(this.program, e, s[e]);\n d && d.setUniforms(this.program, e, this.binderUniforms, u, {\n zoom: _\n });\n const f = {\n [m.LINES]: 2,\n [m.TRIANGLES]: 3,\n [m.LINE_STRIP]: 1\n }[t];\n for (const i of h.get()) {\n const o = i.vaos || (i.vaos = {});\n (o[a] || (o[a] = new _i())).bind(e, this, l, d ? d.getPaintVertexBuffers() : [], c, i.vertexOffset, p || []), m.drawElements(t, i.primitiveLength * f, m.UNSIGNED_SHORT, i.primitiveOffset * f * 2);\n }\n }\n }\n function Ai(e, t) {\n const i = Math.pow(2, t.tileID.overscaledZ),\n o = t.tileSize * Math.pow(2, e.transform.tileZoom) / i,\n r = o * (t.tileID.canonical.x + t.tileID.wrap * i),\n n = o * t.tileID.canonical.y;\n return {\n u_image: 0,\n u_texsize: t.imageAtlasTexture.size,\n u_tile_units_to_pixels: 1 / D(t, 1, e.transform.tileZoom),\n u_pixel_coord_upper: [r >> 16, n >> 16],\n u_pixel_coord_lower: [65535 & r, 65535 & n]\n };\n }\n const zi = e.create(),\n Ri = (t, i, o, r, n, s, a, l, c, h, u) => {\n const _ = i.style.light,\n d = _.properties.get(\"position\"),\n p = [d.x, d.y, d.z],\n m = e.create$1();\n \"viewport\" === _.properties.get(\"anchor\") && (e.fromRotation(m, -i.transform.angle), e.transformMat3(p, p, m));\n const f = _.properties.get(\"color\"),\n g = i.transform,\n v = {\n u_matrix: t,\n u_lightpos: p,\n u_lightintensity: _.properties.get(\"intensity\"),\n u_lightcolor: [f.r, f.g, f.b],\n u_vertical_gradient: +o,\n u_opacity: r,\n u_tile_id: [0, 0, 0],\n u_zoom_transition: 0,\n u_inv_rot_matrix: zi,\n u_merc_center: [0, 0],\n u_up_dir: [0, 0, 0],\n u_height_lift: 0,\n u_ao: n,\n u_edge_radius: s\n };\n return \"globe\" === g.projection.name && (v.u_tile_id = [a.canonical.x, a.canonical.y, 1 << a.canonical.z], v.u_zoom_transition = c, v.u_inv_rot_matrix = u, v.u_merc_center = h, v.u_up_dir = g.projection.upVector(new e.CanonicalTileID(0, 0, 0), h[0] * e.EXTENT, h[1] * e.EXTENT), v.u_height_lift = l), v;\n },\n Oi = (t, i, o, r, n, s, a, l, c, h, u, _) => {\n const d = Ri(t, i, o, r, n, s, a, c, h, u, _),\n p = {\n u_height_factor: -Math.pow(2, a.overscaledZ) / l.tileSize / 8\n };\n return e.extend(d, Ai(i, l), p);\n },\n Bi = e => ({\n u_matrix: e\n }),\n ki = (t, i, o) => e.extend(Bi(t), Ai(i, o)),\n Fi = (e, t) => ({\n u_matrix: e,\n u_world: t\n }),\n Ui = (t, i, o, r) => e.extend(ki(t, i, o), {\n u_world: r\n }),\n Ni = e.create(),\n ji = (t, i, o, r, n, s) => {\n const a = t.transform,\n l = \"globe\" === a.projection.name;\n let c;\n if (\"map\" === s.paint.get(\"circle-pitch-alignment\")) {\n if (l) {\n const t = e.globePixelsToTileUnits(a.zoom, i.canonical) * a._pixelsPerMercatorPixel;\n c = Float32Array.from([t, 0, 0, t]);\n } else c = a.calculatePixelsToTileUnitsMatrix(o);\n } else c = new Float32Array([a.pixelsToGLUnits[0], 0, 0, a.pixelsToGLUnits[1]]);\n const h = {\n u_camera_to_center_distance: a.cameraToCenterDistance,\n u_matrix: t.translatePosMatrix(i.projMatrix, o, s.paint.get(\"circle-translate\"), s.paint.get(\"circle-translate-anchor\")),\n u_device_pixel_ratio: e.exported.devicePixelRatio,\n u_extrude_scale: c,\n u_inv_rot_matrix: Ni,\n u_merc_center: [0, 0],\n u_tile_id: [0, 0, 0],\n u_zoom_transition: 0,\n u_up_dir: [0, 0, 0]\n };\n if (l) {\n h.u_inv_rot_matrix = r, h.u_merc_center = n, h.u_tile_id = [i.canonical.x, i.canonical.y, 1 << i.canonical.z], h.u_zoom_transition = e.globeToMercatorTransition(a.zoom);\n const t = n[0] * e.EXTENT,\n o = n[1] * e.EXTENT;\n h.u_up_dir = a.projection.upVector(new e.CanonicalTileID(0, 0, 0), t, o);\n }\n return h;\n },\n Gi = e => {\n const t = [];\n return \"map\" === e.paint.get(\"circle-pitch-alignment\") && t.push(\"PITCH_WITH_MAP\"), \"map\" === e.paint.get(\"circle-pitch-scale\") && t.push(\"SCALE_WITH_MAP\"), t;\n },\n Zi = (t, i, o, r) => {\n const n = e.EXTENT / o.tileSize;\n return {\n u_matrix: t,\n u_camera_to_center_distance: i.getCameraToCenterDistance(r),\n u_extrude_scale: [i.pixelsToGLUnits[0] / n, i.pixelsToGLUnits[1] / n]\n };\n },\n Vi = (e, t, i = 1) => ({\n u_matrix: e,\n u_color: t,\n u_overlay: 0,\n u_overlay_scale: i\n }),\n Wi = e.create(),\n Xi = (t, i, o, r, n, s, a) => {\n const l = t.transform,\n c = \"globe\" === l.projection.name,\n h = c ? e.globePixelsToTileUnits(l.zoom, i.canonical) * l._pixelsPerMercatorPixel : D(o, 1, s),\n u = {\n u_matrix: i.projMatrix,\n u_extrude_scale: h,\n u_intensity: a,\n u_inv_rot_matrix: Wi,\n u_merc_center: [0, 0],\n u_tile_id: [0, 0, 0],\n u_zoom_transition: 0,\n u_up_dir: [0, 0, 0]\n };\n if (c) {\n u.u_inv_rot_matrix = r, u.u_merc_center = n, u.u_tile_id = [i.canonical.x, i.canonical.y, 1 << i.canonical.z], u.u_zoom_transition = e.globeToMercatorTransition(l.zoom);\n const t = n[0] * e.EXTENT,\n o = n[1] * e.EXTENT;\n u.u_up_dir = l.projection.upVector(new e.CanonicalTileID(0, 0, 0), t, o);\n }\n return u;\n },\n qi = (e, t, i, o, r, n, s) => {\n const a = e.transform,\n l = a.calculatePixelsToTileUnitsMatrix(t);\n return {\n u_matrix: Yi(e, t, i, o),\n u_pixels_to_tile_units: l,\n u_device_pixel_ratio: n,\n u_units_to_pixels: [1 / a.pixelsToGLUnits[0], 1 / a.pixelsToGLUnits[1]],\n u_dash_image: 0,\n u_gradient_image: 1,\n u_image_height: r,\n u_texsize: Ki(i) ? t.lineAtlasTexture.size : [0, 0],\n u_tile_units_to_pixels: Hi(t, e.transform),\n u_alpha_discard_threshold: 0,\n u_trim_offset: s\n };\n },\n $i = (e, t, i, o, r) => {\n const n = e.transform;\n return {\n u_matrix: Yi(e, t, i, o),\n u_texsize: t.imageAtlasTexture.size,\n u_pixels_to_tile_units: n.calculatePixelsToTileUnitsMatrix(t),\n u_device_pixel_ratio: r,\n u_image: 0,\n u_tile_units_to_pixels: Hi(t, n),\n u_units_to_pixels: [1 / n.pixelsToGLUnits[0], 1 / n.pixelsToGLUnits[1]],\n u_alpha_discard_threshold: 0\n };\n };\n function Hi(e, t) {\n return 1 / D(e, 1, t.tileZoom);\n }\n function Yi(e, t, i, o) {\n return e.translatePosMatrix(o || t.tileID.projMatrix, t, i.paint.get(\"line-translate\"), i.paint.get(\"line-translate-anchor\"));\n }\n function Ki(e) {\n const t = e.paint.get(\"line-dasharray\").value;\n return t.value || \"constant\" !== t.kind;\n }\n const Ji = (e, t, i, o, r, n) => {\n return {\n u_matrix: e,\n u_tl_parent: t,\n u_scale_parent: i,\n u_fade_t: o.mix,\n u_opacity: o.opacity * r.paint.get(\"raster-opacity\"),\n u_image0: 0,\n u_image1: 1,\n u_brightness_low: r.paint.get(\"raster-brightness-min\"),\n u_brightness_high: r.paint.get(\"raster-brightness-max\"),\n u_saturation_factor: (a = r.paint.get(\"raster-saturation\"), a > 0 ? 1 - 1 / (1.001 - a) : -a),\n u_contrast_factor: (s = r.paint.get(\"raster-contrast\"), s > 0 ? 1 / (1 - s) : 1 + s),\n u_spin_weights: Qi(r.paint.get(\"raster-hue-rotate\")),\n u_perspective_transform: n\n };\n var s, a;\n };\n function Qi(e) {\n e *= Math.PI / 180;\n const t = Math.sin(e),\n i = Math.cos(e);\n return [(2 * i + 1) / 3, (-Math.sqrt(3) * t - i + 1) / 3, (Math.sqrt(3) * t - i + 1) / 3];\n }\n const eo = e.create(),\n to = (t, i, o, r, n, s, a, l, c, h, u, _, d, p, m, f) => {\n const g = n.transform,\n v = {\n u_is_size_zoom_constant: +(\"constant\" === t || \"source\" === t),\n u_is_size_feature_constant: +(\"constant\" === t || \"camera\" === t),\n u_size_t: i ? i.uSizeT : 0,\n u_size: i ? i.uSize : 0,\n u_camera_to_center_distance: g.cameraToCenterDistance,\n u_rotate_symbol: +o,\n u_aspect_ratio: g.width / g.height,\n u_fade_change: n.options.fadeDuration ? n.symbolFadeChange : 1,\n u_matrix: s,\n u_label_plane_matrix: a,\n u_coord_matrix: l,\n u_is_text: +c,\n u_pitch_with_map: +r,\n u_texsize: h,\n u_texture: 0,\n u_tile_id: [0, 0, 0],\n u_zoom_transition: 0,\n u_inv_rot_matrix: eo,\n u_merc_center: [0, 0],\n u_camera_forward: [0, 0, 0],\n u_ecef_origin: [0, 0, 0],\n u_tile_matrix: eo,\n u_up_vector: [0, -1, 0]\n };\n return \"globe\" === f.name && (v.u_tile_id = [u.canonical.x, u.canonical.y, 1 << u.canonical.z], v.u_zoom_transition = _, v.u_inv_rot_matrix = p, v.u_merc_center = d, v.u_camera_forward = g._camera.forward(), v.u_ecef_origin = e.globeECEFOrigin(g.globeMatrix, u.toUnwrapped()), v.u_tile_matrix = Float32Array.from(g.globeMatrix), v.u_up_vector = m), v;\n },\n io = (t, i, o, r, n, s, a, l, c, h, u, _, d, p, m, f, g) => e.extend(to(t, i, o, r, n, s, a, l, c, h, _, d, p, m, f, g), {\n u_gamma_scale: r ? n.transform.cameraToCenterDistance * Math.cos(n.terrain ? 0 : n.transform._pitch) : 1,\n u_device_pixel_ratio: e.exported.devicePixelRatio,\n u_is_halo: +u\n }),\n oo = (t, i, o, r, n, s, a, l, c, h, u, _, d, p, m, f) => e.extend(io(t, i, o, r, n, s, a, l, !0, c, !0, u, _, d, p, m, f), {\n u_texsize_icon: h,\n u_texture_icon: 1\n }),\n ro = (e, t, i) => ({\n u_matrix: e,\n u_opacity: t,\n u_color: i\n }),\n no = (t, i, o, r, n) => e.extend(function (e, t, i) {\n const o = t.imageManager.getPattern(e.toString()),\n {\n width: r,\n height: n\n } = t.imageManager.getPixelSize(),\n s = Math.pow(2, i.tileID.overscaledZ),\n a = i.tileSize * Math.pow(2, t.transform.tileZoom) / s,\n l = a * (i.tileID.canonical.x + i.tileID.wrap * s),\n c = a * i.tileID.canonical.y;\n return {\n u_image: 0,\n u_pattern_tl: o.tl,\n u_pattern_br: o.br,\n u_texsize: [r, n],\n u_pattern_size: o.displaySize,\n u_tile_units_to_pixels: 1 / D(i, 1, t.transform.tileZoom),\n u_pixel_coord_upper: [l >> 16, c >> 16],\n u_pixel_coord_lower: [65535 & l, 65535 & c]\n };\n }(r, o, n), {\n u_matrix: t,\n u_opacity: i\n }),\n so = {\n fillExtrusion: t => ({\n u_matrix: new e.UniformMatrix4f(t),\n u_lightpos: new e.Uniform3f(t),\n u_lightintensity: new e.Uniform1f(t),\n u_lightcolor: new e.Uniform3f(t),\n u_vertical_gradient: new e.Uniform1f(t),\n u_opacity: new e.Uniform1f(t),\n u_edge_radius: new e.Uniform1f(t),\n u_ao: new e.Uniform2f(t),\n u_tile_id: new e.Uniform3f(t),\n u_zoom_transition: new e.Uniform1f(t),\n u_inv_rot_matrix: new e.UniformMatrix4f(t),\n u_merc_center: new e.Uniform2f(t),\n u_up_dir: new e.Uniform3f(t),\n u_height_lift: new e.Uniform1f(t)\n }),\n fillExtrusionPattern: t => ({\n u_matrix: new e.UniformMatrix4f(t),\n u_lightpos: new e.Uniform3f(t),\n u_lightintensity: new e.Uniform1f(t),\n u_lightcolor: new e.Uniform3f(t),\n u_vertical_gradient: new e.Uniform1f(t),\n u_height_factor: new e.Uniform1f(t),\n u_edge_radius: new e.Uniform1f(t),\n u_ao: new e.Uniform2f(t),\n u_tile_id: new e.Uniform3f(t),\n u_zoom_transition: new e.Uniform1f(t),\n u_inv_rot_matrix: new e.UniformMatrix4f(t),\n u_merc_center: new e.Uniform2f(t),\n u_up_dir: new e.Uniform3f(t),\n u_height_lift: new e.Uniform1f(t),\n u_image: new e.Uniform1i(t),\n u_texsize: new e.Uniform2f(t),\n u_pixel_coord_upper: new e.Uniform2f(t),\n u_pixel_coord_lower: new e.Uniform2f(t),\n u_tile_units_to_pixels: new e.Uniform1f(t),\n u_opacity: new e.Uniform1f(t)\n }),\n fill: t => ({\n u_matrix: new e.UniformMatrix4f(t)\n }),\n fillPattern: t => ({\n u_matrix: new e.UniformMatrix4f(t),\n u_image: new e.Uniform1i(t),\n u_texsize: new e.Uniform2f(t),\n u_pixel_coord_upper: new e.Uniform2f(t),\n u_pixel_coord_lower: new e.Uniform2f(t),\n u_tile_units_to_pixels: new e.Uniform1f(t)\n }),\n fillOutline: t => ({\n u_matrix: new e.UniformMatrix4f(t),\n u_world: new e.Uniform2f(t)\n }),\n fillOutlinePattern: t => ({\n u_matrix: new e.UniformMatrix4f(t),\n u_world: new e.Uniform2f(t),\n u_image: new e.Uniform1i(t),\n u_texsize: new e.Uniform2f(t),\n u_pixel_coord_upper: new e.Uniform2f(t),\n u_pixel_coord_lower: new e.Uniform2f(t),\n u_tile_units_to_pixels: new e.Uniform1f(t)\n }),\n circle: t => ({\n u_camera_to_center_distance: new e.Uniform1f(t),\n u_extrude_scale: new e.UniformMatrix2f(t),\n u_device_pixel_ratio: new e.Uniform1f(t),\n u_matrix: new e.UniformMatrix4f(t),\n u_inv_rot_matrix: new e.UniformMatrix4f(t),\n u_merc_center: new e.Uniform2f(t),\n u_tile_id: new e.Uniform3f(t),\n u_zoom_transition: new e.Uniform1f(t),\n u_up_dir: new e.Uniform3f(t)\n }),\n collisionBox: t => ({\n u_matrix: new e.UniformMatrix4f(t),\n u_camera_to_center_distance: new e.Uniform1f(t),\n u_extrude_scale: new e.Uniform2f(t)\n }),\n collisionCircle: t => ({\n u_matrix: new e.UniformMatrix4f(t),\n u_inv_matrix: new e.UniformMatrix4f(t),\n u_camera_to_center_distance: new e.Uniform1f(t),\n u_viewport_size: new e.Uniform2f(t)\n }),\n debug: t => ({\n u_color: new e.UniformColor(t),\n u_matrix: new e.UniformMatrix4f(t),\n u_overlay: new e.Uniform1i(t),\n u_overlay_scale: new e.Uniform1f(t)\n }),\n clippingMask: t => ({\n u_matrix: new e.UniformMatrix4f(t)\n }),\n heatmap: t => ({\n u_extrude_scale: new e.Uniform1f(t),\n u_intensity: new e.Uniform1f(t),\n u_matrix: new e.UniformMatrix4f(t),\n u_inv_rot_matrix: new e.UniformMatrix4f(t),\n u_merc_center: new e.Uniform2f(t),\n u_tile_id: new e.Uniform3f(t),\n u_zoom_transition: new e.Uniform1f(t),\n u_up_dir: new e.Uniform3f(t)\n }),\n heatmapTexture: t => ({\n u_image: new e.Uniform1i(t),\n u_color_ramp: new e.Uniform1i(t),\n u_opacity: new e.Uniform1f(t)\n }),\n hillshade: t => ({\n u_matrix: new e.UniformMatrix4f(t),\n u_image: new e.Uniform1i(t),\n u_latrange: new e.Uniform2f(t),\n u_light: new e.Uniform2f(t),\n u_shadow: new e.UniformColor(t),\n u_highlight: new e.UniformColor(t),\n u_accent: new e.UniformColor(t)\n }),\n hillshadePrepare: t => ({\n u_matrix: new e.UniformMatrix4f(t),\n u_image: new e.Uniform1i(t),\n u_dimension: new e.Uniform2f(t),\n u_zoom: new e.Uniform1f(t),\n u_unpack: new e.Uniform4f(t)\n }),\n line: t => ({\n u_matrix: new e.UniformMatrix4f(t),\n u_pixels_to_tile_units: new e.UniformMatrix2f(t),\n u_device_pixel_ratio: new e.Uniform1f(t),\n u_units_to_pixels: new e.Uniform2f(t),\n u_dash_image: new e.Uniform1i(t),\n u_gradient_image: new e.Uniform1i(t),\n u_image_height: new e.Uniform1f(t),\n u_texsize: new e.Uniform2f(t),\n u_tile_units_to_pixels: new e.Uniform1f(t),\n u_alpha_discard_threshold: new e.Uniform1f(t),\n u_trim_offset: new e.Uniform2f(t)\n }),\n linePattern: t => ({\n u_matrix: new e.UniformMatrix4f(t),\n u_texsize: new e.Uniform2f(t),\n u_pixels_to_tile_units: new e.UniformMatrix2f(t),\n u_device_pixel_ratio: new e.Uniform1f(t),\n u_image: new e.Uniform1i(t),\n u_units_to_pixels: new e.Uniform2f(t),\n u_tile_units_to_pixels: new e.Uniform1f(t),\n u_alpha_discard_threshold: new e.Uniform1f(t)\n }),\n raster: t => ({\n u_matrix: new e.UniformMatrix4f(t),\n u_tl_parent: new e.Uniform2f(t),\n u_scale_parent: new e.Uniform1f(t),\n u_fade_t: new e.Uniform1f(t),\n u_opacity: new e.Uniform1f(t),\n u_image0: new e.Uniform1i(t),\n u_image1: new e.Uniform1i(t),\n u_brightness_low: new e.Uniform1f(t),\n u_brightness_high: new e.Uniform1f(t),\n u_saturation_factor: new e.Uniform1f(t),\n u_contrast_factor: new e.Uniform1f(t),\n u_spin_weights: new e.Uniform3f(t),\n u_perspective_transform: new e.Uniform2f(t)\n }),\n symbolIcon: t => ({\n u_is_size_zoom_constant: new e.Uniform1i(t),\n u_is_size_feature_constant: new e.Uniform1i(t),\n u_size_t: new e.Uniform1f(t),\n u_size: new e.Uniform1f(t),\n u_camera_to_center_distance: new e.Uniform1f(t),\n u_rotate_symbol: new e.Uniform1i(t),\n u_aspect_ratio: new e.Uniform1f(t),\n u_fade_change: new e.Uniform1f(t),\n u_matrix: new e.UniformMatrix4f(t),\n u_label_plane_matrix: new e.UniformMatrix4f(t),\n u_coord_matrix: new e.UniformMatrix4f(t),\n u_is_text: new e.Uniform1i(t),\n u_pitch_with_map: new e.Uniform1i(t),\n u_texsize: new e.Uniform2f(t),\n u_tile_id: new e.Uniform3f(t),\n u_zoom_transition: new e.Uniform1f(t),\n u_inv_rot_matrix: new e.UniformMatrix4f(t),\n u_merc_center: new e.Uniform2f(t),\n u_camera_forward: new e.Uniform3f(t),\n u_tile_matrix: new e.UniformMatrix4f(t),\n u_up_vector: new e.Uniform3f(t),\n u_ecef_origin: new e.Uniform3f(t),\n u_texture: new e.Uniform1i(t)\n }),\n symbolSDF: t => ({\n u_is_size_zoom_constant: new e.Uniform1i(t),\n u_is_size_feature_constant: new e.Uniform1i(t),\n u_size_t: new e.Uniform1f(t),\n u_size: new e.Uniform1f(t),\n u_camera_to_center_distance: new e.Uniform1f(t),\n u_rotate_symbol: new e.Uniform1i(t),\n u_aspect_ratio: new e.Uniform1f(t),\n u_fade_change: new e.Uniform1f(t),\n u_matrix: new e.UniformMatrix4f(t),\n u_label_plane_matrix: new e.UniformMatrix4f(t),\n u_coord_matrix: new e.UniformMatrix4f(t),\n u_is_text: new e.Uniform1i(t),\n u_pitch_with_map: new e.Uniform1i(t),\n u_texsize: new e.Uniform2f(t),\n u_texture: new e.Uniform1i(t),\n u_gamma_scale: new e.Uniform1f(t),\n u_device_pixel_ratio: new e.Uniform1f(t),\n u_tile_id: new e.Uniform3f(t),\n u_zoom_transition: new e.Uniform1f(t),\n u_inv_rot_matrix: new e.UniformMatrix4f(t),\n u_merc_center: new e.Uniform2f(t),\n u_camera_forward: new e.Uniform3f(t),\n u_tile_matrix: new e.UniformMatrix4f(t),\n u_up_vector: new e.Uniform3f(t),\n u_ecef_origin: new e.Uniform3f(t),\n u_is_halo: new e.Uniform1i(t)\n }),\n symbolTextAndIcon: t => ({\n u_is_size_zoom_constant: new e.Uniform1i(t),\n u_is_size_feature_constant: new e.Uniform1i(t),\n u_size_t: new e.Uniform1f(t),\n u_size: new e.Uniform1f(t),\n u_camera_to_center_distance: new e.Uniform1f(t),\n u_rotate_symbol: new e.Uniform1i(t),\n u_aspect_ratio: new e.Uniform1f(t),\n u_fade_change: new e.Uniform1f(t),\n u_matrix: new e.UniformMatrix4f(t),\n u_label_plane_matrix: new e.UniformMatrix4f(t),\n u_coord_matrix: new e.UniformMatrix4f(t),\n u_is_text: new e.Uniform1i(t),\n u_pitch_with_map: new e.Uniform1i(t),\n u_texsize: new e.Uniform2f(t),\n u_texsize_icon: new e.Uniform2f(t),\n u_texture: new e.Uniform1i(t),\n u_texture_icon: new e.Uniform1i(t),\n u_gamma_scale: new e.Uniform1f(t),\n u_device_pixel_ratio: new e.Uniform1f(t),\n u_is_halo: new e.Uniform1i(t)\n }),\n background: t => ({\n u_matrix: new e.UniformMatrix4f(t),\n u_opacity: new e.Uniform1f(t),\n u_color: new e.UniformColor(t)\n }),\n backgroundPattern: t => ({\n u_matrix: new e.UniformMatrix4f(t),\n u_opacity: new e.Uniform1f(t),\n u_image: new e.Uniform1i(t),\n u_pattern_tl: new e.Uniform2f(t),\n u_pattern_br: new e.Uniform2f(t),\n u_texsize: new e.Uniform2f(t),\n u_pattern_size: new e.Uniform2f(t),\n u_pixel_coord_upper: new e.Uniform2f(t),\n u_pixel_coord_lower: new e.Uniform2f(t),\n u_tile_units_to_pixels: new e.Uniform1f(t)\n }),\n terrainRaster: gi,\n terrainDepth: gi,\n skybox: t => ({\n u_matrix: new e.UniformMatrix4f(t),\n u_sun_direction: new e.Uniform3f(t),\n u_cubemap: new e.Uniform1i(t),\n u_opacity: new e.Uniform1f(t),\n u_temporal_offset: new e.Uniform1f(t)\n }),\n skyboxGradient: t => ({\n u_matrix: new e.UniformMatrix4f(t),\n u_color_ramp: new e.Uniform1i(t),\n u_center_direction: new e.Uniform3f(t),\n u_radius: new e.Uniform1f(t),\n u_opacity: new e.Uniform1f(t),\n u_temporal_offset: new e.Uniform1f(t)\n }),\n skyboxCapture: t => ({\n u_matrix_3f: new e.UniformMatrix3f(t),\n u_sun_direction: new e.Uniform3f(t),\n u_sun_intensity: new e.Uniform1f(t),\n u_color_tint_r: new e.Uniform4f(t),\n u_color_tint_m: new e.Uniform4f(t),\n u_luminance: new e.Uniform1f(t)\n }),\n globeRaster: t => ({\n u_proj_matrix: new e.UniformMatrix4f(t),\n u_globe_matrix: new e.UniformMatrix4f(t),\n u_normalize_matrix: new e.UniformMatrix4f(t),\n u_merc_matrix: new e.UniformMatrix4f(t),\n u_zoom_transition: new e.Uniform1f(t),\n u_merc_center: new e.Uniform2f(t),\n u_image0: new e.Uniform1i(t),\n u_grid_matrix: new e.UniformMatrix3f(t),\n u_skirt_height: new e.Uniform1f(t),\n u_frustum_tl: new e.Uniform3f(t),\n u_frustum_tr: new e.Uniform3f(t),\n u_frustum_br: new e.Uniform3f(t),\n u_frustum_bl: new e.Uniform3f(t),\n u_globe_pos: new e.Uniform3f(t),\n u_globe_radius: new e.Uniform1f(t),\n u_viewport: new e.Uniform2f(t)\n }),\n globeAtmosphere: t => ({\n u_frustum_tl: new e.Uniform3f(t),\n u_frustum_tr: new e.Uniform3f(t),\n u_frustum_br: new e.Uniform3f(t),\n u_frustum_bl: new e.Uniform3f(t),\n u_horizon: new e.Uniform1f(t),\n u_transition: new e.Uniform1f(t),\n u_fadeout_range: new e.Uniform1f(t),\n u_color: new e.Uniform4f(t),\n u_high_color: new e.Uniform4f(t),\n u_space_color: new e.Uniform4f(t),\n u_star_intensity: new e.Uniform1f(t),\n u_star_density: new e.Uniform1f(t),\n u_star_size: new e.Uniform1f(t),\n u_temporal_offset: new e.Uniform1f(t),\n u_horizon_angle: new e.Uniform1f(t),\n u_rotation_matrix: new e.UniformMatrix4f(t)\n })\n };\n let ao;\n function lo(t, i, o, r, n, s, a) {\n const l = t.context,\n c = l.gl,\n h = t.transform,\n u = t.useProgram(\"collisionBox\"),\n _ = [];\n let d = 0,\n p = 0;\n for (let m = 0; m < r.length; m++) {\n const f = r[m],\n g = i.getTile(f),\n v = g.getBucket(o);\n if (!v) continue;\n const x = vt(f, v, h);\n let y = x;\n 0 === n[0] && 0 === n[1] || (y = t.translatePosMatrix(x, g, n, s));\n const b = a ? v.textCollisionBox : v.iconCollisionBox,\n w = v.collisionCircleArray;\n if (w.length > 0) {\n const t = e.create(),\n i = y;\n e.mul(t, v.placementInvProjMatrix, h.glCoordMatrix), e.mul(t, t, v.placementViewportMatrix), _.push({\n circleArray: w,\n circleOffset: p,\n transform: i,\n invTransform: t,\n projection: v.getProjection()\n }), d += w.length / 4, p = d;\n }\n b && (t.terrain && t.terrain.setupElevationDraw(g, u), u.draw(l, c.LINES, e.DepthMode.disabled, e.StencilMode.disabled, t.colorModeForRenderPass(), e.CullFaceMode.disabled, Zi(y, h, g, v.getProjection()), o.id, b.layoutVertexBuffer, b.indexBuffer, b.segments, null, h.zoom, null, [b.collisionVertexBuffer, b.collisionVertexBufferExt]));\n }\n if (!a || !_.length) return;\n const m = t.useProgram(\"collisionCircle\"),\n f = new e.StructArrayLayout2f1f2i16();\n f.resize(4 * d), f._trim();\n let g = 0;\n for (const e of _) for (let t = 0; t < e.circleArray.length / 4; t++) {\n const i = 4 * t,\n o = e.circleArray[i + 0],\n r = e.circleArray[i + 1],\n n = e.circleArray[i + 2],\n s = e.circleArray[i + 3];\n f.emplace(g++, o, r, n, s, 0), f.emplace(g++, o, r, n, s, 1), f.emplace(g++, o, r, n, s, 2), f.emplace(g++, o, r, n, s, 3);\n }\n (!ao || ao.length < 2 * d) && (ao = function (t) {\n const i = 2 * t,\n o = new e.StructArrayLayout3ui6();\n o.resize(i), o._trim();\n for (let e = 0; e < i; e++) {\n const t = 6 * e;\n o.uint16[t + 0] = 4 * e + 0, o.uint16[t + 1] = 4 * e + 1, o.uint16[t + 2] = 4 * e + 2, o.uint16[t + 3] = 4 * e + 2, o.uint16[t + 4] = 4 * e + 3, o.uint16[t + 5] = 4 * e + 0;\n }\n return o;\n }(d));\n const v = l.createIndexBuffer(ao, !0),\n x = l.createVertexBuffer(f, e.collisionCircleLayout.members, !0);\n for (const i of _) {\n const r = {\n u_matrix: i.transform,\n u_inv_matrix: i.invTransform,\n u_camera_to_center_distance: (y = h).getCameraToCenterDistance(i.projection),\n u_viewport_size: [y.width, y.height]\n };\n m.draw(l, c.TRIANGLES, e.DepthMode.disabled, e.StencilMode.disabled, t.colorModeForRenderPass(), e.CullFaceMode.disabled, r, o.id, x, v, e.SegmentVector.simpleSegment(0, 2 * i.circleOffset, i.circleArray.length, i.circleArray.length / 2), null, h.zoom);\n }\n var y;\n x.destroy(), v.destroy();\n }\n const co = e.create();\n function ho({\n width: t,\n height: i,\n anchor: o,\n textOffset: r,\n textScale: n\n }, s) {\n const {\n horizontalAlign: a,\n verticalAlign: l\n } = e.getAnchorAlignment(o),\n c = -(a - .5) * t,\n h = -(l - .5) * i,\n u = e.evaluateVariableOffset(o, r);\n return new e.Point((c / n + u[0]) * s, (h / n + u[1]) * s);\n }\n function uo(t, i, o, r, n, s, a, l, c, h, u) {\n const _ = t.text.placedSymbolArray,\n d = t.text.dynamicLayoutVertexArray,\n p = t.icon.dynamicLayoutVertexArray,\n m = {},\n f = t.getProjection(),\n g = xt(l, f, s),\n v = s.elevation,\n x = f.upVectorScale(l.canonical, s.center.lat, s.worldSize).metersToTile;\n d.clear();\n for (let p = 0; p < _.length; p++) {\n const y = _.get(p),\n {\n tileAnchorX: b,\n tileAnchorY: w,\n numGlyphs: T\n } = y,\n E = y.hidden || !y.crossTileID || t.allowVerticalPlacement && !y.placedOrientation ? null : r[y.crossTileID];\n if (E) {\n let r = 0,\n _ = 0,\n p = 0;\n if (v) {\n const e = v ? v.getAtTileOffset(l, b, w) : 0,\n [t, i, o] = f.upVector(l.canonical, b, w);\n r = e * t * x, _ = e * i * x, p = e * o * x;\n }\n let [C, M, I, P] = ot(y.projectedAnchorX + r, y.projectedAnchorY + _, y.projectedAnchorZ + p, o ? g : a);\n const S = rt(s.getCameraToCenterDistance(f), P);\n let D = n.evaluateSizeForFeature(t.textSizeData, h, y) * S / e.ONE_EM;\n o && (D *= t.tilePixelRatio / c);\n const L = ho(E, D);\n o ? (({\n x: C,\n y: M,\n z: I\n } = f.projectTilePoint(b + L.x, w + L.y, l.canonical)), [C, M, I] = ot(C + r, M + _, I + p, a)) : (i && L._rotate(-s.angle), C += L.x, M += L.y, I = 0);\n const A = t.allowVerticalPlacement && y.placedOrientation === e.WritingMode.vertical ? Math.PI / 2 : 0;\n for (let t = 0; t < T; t++) e.addDynamicAttributes(d, C, M, I, A);\n u && y.associatedIconIndex >= 0 && (m[y.associatedIconIndex] = {\n x: C,\n y: M,\n z: I,\n angle: A\n });\n } else dt(T, d);\n }\n if (u) {\n p.clear();\n const i = t.icon.placedSymbolArray;\n for (let t = 0; t < i.length; t++) {\n const o = i.get(t),\n {\n numGlyphs: r\n } = o,\n n = m[t];\n if (o.hidden || !n) dt(r, p);else {\n const {\n x: t,\n y: i,\n z: o,\n angle: s\n } = n;\n for (let n = 0; n < r; n++) e.addDynamicAttributes(p, t, i, o, s);\n }\n }\n t.icon.dynamicLayoutVertexBuffer.updateData(p);\n }\n t.text.dynamicLayoutVertexBuffer.updateData(d);\n }\n function _o(e, t, i) {\n return i.iconsInText && t ? \"symbolTextAndIcon\" : e ? \"symbolSDF\" : \"symbolIcon\";\n }\n function po(t, i, o, r, n, s, a, l, c, h, u, _) {\n const d = t.context,\n p = d.gl,\n m = t.transform,\n f = \"map\" === l,\n g = \"map\" === c,\n v = f && \"point\" !== o.layout.get(\"symbol-placement\"),\n x = f && !g && !v,\n y = void 0 !== o.layout.get(\"symbol-sort-key\").constantOr(1);\n let b = !1;\n const w = t.depthModeForSublayer(0, e.DepthMode.ReadOnly),\n T = [e.mercatorXfromLng(m.center.lng), e.mercatorYfromLat(m.center.lat)],\n E = o.layout.get(\"text-variable-anchor\"),\n C = \"globe\" === m.projection.name,\n M = [],\n I = [0, -1, 0];\n let P = I;\n !C && !m.mercatorFromTransition || f || (P = function (t) {\n const i = t._camera.getWorldToCamera(t.worldSize, 1),\n o = e.multiply([], i, t.globeMatrix);\n e.invert(o, o);\n const r = [0, 0, 0],\n n = [0, 1, 0, 0];\n return e.transformMat4$1(n, n, o), r[0] = n[0], r[1] = n[1], r[2] = n[2], e.normalize(r, r), r;\n }(m));\n for (const l of r) {\n const r = i.getTile(l),\n c = r.getBucket(o);\n if (!c) continue;\n if (\"mercator\" === c.projection.name && C) continue;\n const u = n ? c.text : c.icon;\n if (!u || c.fullyClipped || !u.segments.get().length) continue;\n const _ = u.programConfigurations.get(o.id),\n d = n || c.sdfIcons,\n w = n ? c.textSizeData : c.iconSizeData,\n S = g || 0 !== m.pitch,\n D = e.evaluateSizeForZoom(w, m.zoom);\n let L,\n A,\n z,\n R,\n O = [0, 0],\n B = null;\n if (n) A = r.glyphAtlasTexture, z = p.LINEAR, L = r.glyphAtlasTexture.size, c.iconsInText && (O = r.imageAtlasTexture.size, B = r.imageAtlasTexture, R = S || t.options.rotating || t.options.zooming || \"composite\" === w.kind || \"camera\" === w.kind ? p.LINEAR : p.NEAREST);else {\n const e = 1 !== o.layout.get(\"icon-size\").constantOr(0) || c.iconsNeedLinear;\n A = r.imageAtlasTexture, z = d || t.options.rotating || t.options.zooming || e || S ? p.LINEAR : p.NEAREST, L = r.imageAtlasTexture.size;\n }\n const k = \"globe\" === c.projection.name,\n F = k ? P : I,\n U = k ? e.globeToMercatorTransition(m.zoom) : 0,\n N = xt(l, c.getProjection(), m),\n j = m.calculatePixelsToTileUnitsMatrix(r),\n G = et(N, r.tileID.canonical, g, f, m, c.getProjection(), j),\n Z = t.terrain && g && v ? e.invert(e.create(), G) : co,\n V = it(N, r.tileID.canonical, g, f, m, c.getProjection(), j),\n W = E && c.hasTextData(),\n X = \"none\" !== o.layout.get(\"icon-text-fit\") && W && c.hasIconData();\n if (v) {\n const e = m.elevation,\n i = e ? e.getAtTileOffsetFunc(l, m.center.lat, m.worldSize, c.getProjection()) : null,\n o = tt(N, r.tileID.canonical, g, f, m, c.getProjection(), j);\n st(c, N, t, n, o, V, g, h, i, l);\n }\n const q = v || n && E || X,\n $ = t.translatePosMatrix(N, r, s, a),\n H = q ? co : G,\n Y = t.translatePosMatrix(V, r, s, a, !0),\n K = c.getProjection().createInversionMatrix(m, l.canonical),\n J = [];\n t.terrainRenderModeElevated() && g && J.push(\"PITCH_WITH_MAP_TERRAIN\"), k && J.push(\"PROJECTION_GLOBE_VIEW\"), q && J.push(\"PROJECTED_POS_ON_VIEWPORT\");\n const Q = d && 0 !== o.paint.get(n ? \"text-halo-width\" : \"icon-halo-width\").constantOr(1);\n let ee;\n ee = d ? c.iconsInText ? oo(w.kind, D, x, g, t, $, H, Y, L, O, l, U, T, K, F, c.getProjection()) : io(w.kind, D, x, g, t, $, H, Y, n, L, !0, l, U, T, K, F, c.getProjection()) : to(w.kind, D, x, g, t, $, H, Y, n, L, l, U, T, K, F, c.getProjection());\n const te = {\n program: t.useProgram(_o(d, n, c), _, J),\n buffers: u,\n uniformValues: ee,\n atlasTexture: A,\n atlasTextureIcon: B,\n atlasInterpolation: z,\n atlasInterpolationIcon: R,\n isSDF: d,\n hasHalo: Q,\n tile: r,\n labelPlaneMatrixInv: Z\n };\n if (y && c.canOverlap) {\n b = !0;\n const t = u.segments.get();\n for (const i of t) M.push({\n segments: new e.SegmentVector([i]),\n sortKey: i.sortKey,\n state: te\n });\n } else M.push({\n segments: u.segments,\n sortKey: 0,\n state: te\n });\n }\n b && M.sort((e, t) => e.sortKey - t.sortKey);\n for (const e of M) {\n const i = e.state;\n if (t.terrain && t.terrain.setupElevationDraw(i.tile, i.program, {\n useDepthForOcclusion: !C,\n labelPlaneMatrixInv: i.labelPlaneMatrixInv\n }), d.activeTexture.set(p.TEXTURE0), i.atlasTexture.bind(i.atlasInterpolation, p.CLAMP_TO_EDGE), i.atlasTextureIcon && (d.activeTexture.set(p.TEXTURE1), i.atlasTextureIcon && i.atlasTextureIcon.bind(i.atlasInterpolationIcon, p.CLAMP_TO_EDGE)), i.isSDF) {\n const r = i.uniformValues;\n i.hasHalo && (r.u_is_halo = 1, mo(i.buffers, e.segments, o, t, i.program, w, u, _, r)), r.u_is_halo = 0;\n }\n mo(i.buffers, e.segments, o, t, i.program, w, u, _, i.uniformValues);\n }\n }\n function mo(t, i, o, r, n, s, a, l, c) {\n const h = r.context,\n u = [t.dynamicLayoutVertexBuffer, t.opacityVertexBuffer, t.globeExtVertexBuffer];\n n.draw(h, h.gl.TRIANGLES, s, a, l, e.CullFaceMode.disabled, c, o.id, t.layoutVertexBuffer, t.indexBuffer, i, o.paint, r.transform.zoom, t.programConfigurations.get(o.id), u);\n }\n function fo(t, i, o, r, n, s, a) {\n const l = t.context.gl,\n c = o.paint.get(\"fill-pattern\"),\n h = c && c.constantOr(1);\n let u, _, d, p, m;\n a ? (_ = h && !o.getPaintProperty(\"fill-outline-color\") ? \"fillOutlinePattern\" : \"fillOutline\", u = l.LINES) : (_ = h ? \"fillPattern\" : \"fill\", u = l.TRIANGLES);\n for (const f of r) {\n const r = i.getTile(f);\n if (h && !r.patternsLoaded()) continue;\n const g = r.getBucket(o);\n if (!g) continue;\n t.prepareDrawTile();\n const v = g.programConfigurations.get(o.id),\n x = t.useProgram(_, v);\n h && (t.context.activeTexture.set(l.TEXTURE0), r.imageAtlasTexture.bind(l.LINEAR, l.CLAMP_TO_EDGE), v.updatePaintBuffers());\n const y = c.constantOr(null);\n if (y && r.imageAtlas) {\n const e = r.imageAtlas.patternPositions[y.toString()];\n e && v.setConstantPatternPositions(e);\n }\n const b = t.translatePosMatrix(f.projMatrix, r, o.paint.get(\"fill-translate\"), o.paint.get(\"fill-translate-anchor\"));\n if (a) {\n p = g.indexBuffer2, m = g.segments2;\n const e = t.terrain && t.terrain.renderingToTexture ? t.terrain.drapeBufferSize : [l.drawingBufferWidth, l.drawingBufferHeight];\n d = \"fillOutlinePattern\" === _ && h ? Ui(b, t, r, e) : Fi(b, e);\n } else p = g.indexBuffer, m = g.segments, d = h ? ki(b, t, r) : Bi(b);\n t.prepareDrawProgram(t.context, x, f.toUnwrapped()), x.draw(t.context, u, n, t.stencilModeForClipping(f), s, e.CullFaceMode.disabled, d, o.id, g.layoutVertexBuffer, p, m, o.paint, t.transform.zoom, v);\n }\n }\n function go(t, i, o, r, n, s, a) {\n const l = t.context,\n c = l.gl,\n h = t.transform,\n u = o.paint.get(\"fill-extrusion-pattern\"),\n _ = u.constantOr(1),\n d = o.paint.get(\"fill-extrusion-opacity\"),\n p = [o.paint.get(\"fill-extrusion-ambient-occlusion-intensity\"), o.paint.get(\"fill-extrusion-ambient-occlusion-radius\")],\n m = o.layout.get(\"fill-extrusion-edge-radius\"),\n f = m > 0 && !o.paint.get(\"fill-extrusion-rounded-roof\"),\n g = f ? 0 : m,\n v = \"globe\" === h.projection.name ? e.fillExtrusionHeightLift() : 0,\n x = \"globe\" === h.projection.name,\n y = x ? e.globeToMercatorTransition(h.zoom) : 0,\n b = [e.mercatorXfromLng(h.center.lng), e.mercatorYfromLat(h.center.lat)],\n w = [];\n x && w.push(\"PROJECTION_GLOBE_VIEW\"), p[0] > 0 && w.push(\"FAUX_AO\"), f && w.push(\"ZERO_ROOF_RADIUS\");\n for (const m of r) {\n const r = i.getTile(m),\n f = r.getBucket(o);\n if (!f || f.projection.name !== h.projection.name) continue;\n const T = f.programConfigurations.get(o.id),\n E = t.useProgram(_ ? \"fillExtrusionPattern\" : \"fillExtrusion\", T, w);\n if (t.terrain) {\n const e = t.terrain;\n if (t.style.terrainSetForDrapingOnly()) e.setupElevationDraw(r, E, {\n useMeterToDem: !0\n });else {\n if (!f.enableTerrain) continue;\n if (e.setupElevationDraw(r, E, {\n useMeterToDem: !0\n }), vo(l, i, m, f, o, e), !f.centroidVertexBuffer) {\n const e = E.attributes.a_centroid_pos;\n void 0 !== e && c.vertexAttrib2f(e, 0, 0);\n }\n }\n }\n _ && (t.context.activeTexture.set(c.TEXTURE0), r.imageAtlasTexture.bind(c.LINEAR, c.CLAMP_TO_EDGE), T.updatePaintBuffers());\n const C = u.constantOr(null);\n if (C && r.imageAtlas) {\n const e = r.imageAtlas.patternPositions[C.toString()];\n e && T.setConstantPatternPositions(e);\n }\n const M = t.translatePosMatrix(m.projMatrix, r, o.paint.get(\"fill-extrusion-translate\"), o.paint.get(\"fill-extrusion-translate-anchor\")),\n I = h.projection.createInversionMatrix(h, m.canonical),\n P = o.paint.get(\"fill-extrusion-vertical-gradient\"),\n S = _ ? Oi(M, t, P, d, p, g, m, r, v, y, b, I) : Ri(M, t, P, d, p, g, m, v, y, b, I);\n t.prepareDrawProgram(l, E, m.toUnwrapped());\n const D = [];\n t.terrain && D.push(f.centroidVertexBuffer), x && D.push(f.layoutVertexExtBuffer), E.draw(l, l.gl.TRIANGLES, n, s, a, e.CullFaceMode.backCCW, S, o.id, f.layoutVertexBuffer, f.indexBuffer, f.segments, o.paint, t.transform.zoom, T, D);\n }\n }\n function vo(t, i, o, r, n, s) {\n const a = [t => {\n let i = t.canonical.x - 1,\n o = t.wrap;\n return i < 0 && (i = (1 << t.canonical.z) - 1, o--), new e.OverscaledTileID(t.overscaledZ, o, t.canonical.z, i, t.canonical.y);\n }, t => {\n let i = t.canonical.x + 1,\n o = t.wrap;\n return i === 1 << t.canonical.z && (i = 0, o++), new e.OverscaledTileID(t.overscaledZ, o, t.canonical.z, i, t.canonical.y);\n }, t => new e.OverscaledTileID(t.overscaledZ, t.wrap, t.canonical.z, t.canonical.x, (0 === t.canonical.y ? 1 << t.canonical.z : t.canonical.y) - 1), t => new e.OverscaledTileID(t.overscaledZ, t.wrap, t.canonical.z, t.canonical.x, t.canonical.y === (1 << t.canonical.z) - 1 ? 0 : t.canonical.y + 1)],\n l = e => {\n const t = i.getSource().minzoom,\n o = e => {\n const t = i.getTileByID(e);\n if (t && t.hasData()) return t.getBucket(n);\n },\n r = [0, -1, 1];\n for (const i of r) {\n if (e.overscaledZ + i < t) continue;\n const r = o(e.calculateScaledKey(e.overscaledZ + i));\n if (r) return r;\n }\n },\n c = [0, 0, 0],\n h = (t, i) => (c[0] = Math.min(t.min.y, i.min.y), c[1] = Math.max(t.max.y, i.max.y), c[2] = e.EXTENT - i.min.x > t.max.x ? i.min.x - e.EXTENT : t.max.x, c),\n u = (t, i) => (c[0] = Math.min(t.min.x, i.min.x), c[1] = Math.max(t.max.x, i.max.x), c[2] = e.EXTENT - i.min.y > t.max.y ? i.min.y - e.EXTENT : t.max.y, c),\n _ = [(e, t) => h(e, t), (e, t) => h(t, e), (e, t) => u(e, t), (e, t) => u(t, e)],\n d = new e.Point(0, 0);\n let p, m, f;\n const g = (t, i, r, n, a) => {\n const l = [[n ? r : t, n ? t : r, 0], [n ? r : i, n ? i : r, 0]],\n c = a < 0 ? e.EXTENT + a : a,\n h = [n ? c : (t + i) / 2, n ? (t + i) / 2 : c, 0];\n return 0 === r && a < 0 || 0 !== r && a > 0 ? s.getForTilePoints(f, [h], !0, m) : l.push(h), s.getForTilePoints(o, l, !0, p), Math.max(l[0][2], l[1][2], h[2]) / s.exaggeration();\n };\n for (let t = 0; t < 4; t++) {\n const i = (t < 2 ? 1 : 5) - t,\n n = r.borders[t];\n if (0 === n.length) continue;\n const c = f = a[t](o),\n h = l(c);\n if (!(h && h instanceof e.FillExtrusionBucket && h.enableTerrain)) continue;\n if (r.borderDoneWithNeighborZ[t] === h.canonical.z && h.borderDoneWithNeighborZ[i] === r.canonical.z) continue;\n if (m = s.findDEMTileFor(c), !m || !m.dem) continue;\n if (!p) {\n const e = s.findDEMTileFor(o);\n if (!e || !e.dem) return;\n p = e;\n }\n const u = h.borders[i];\n let v = 0;\n const x = h.borderDoneWithNeighborZ[i] !== r.canonical.z;\n if (r.canonical.z === h.canonical.z) {\n for (let o = 0; o < n.length; o++) {\n const s = r.featuresOnBorder[n[o]],\n a = s.borders[t];\n let l;\n for (; v < u.length && (l = h.featuresOnBorder[u[v]], !(l.borders[i][1] > a[0] + 3));) x && h.encodeCentroid(void 0, l, !1), v++;\n if (l && v < u.length) {\n const o = v;\n let n = 0;\n for (; !(l.borders[i][0] > a[1] - 3) && (n++, ++v !== u.length);) l = h.featuresOnBorder[u[v]];\n if (l = h.featuresOnBorder[u[o]], s.intersectsCount() > 1 || l.intersectsCount() > 1 || 1 !== n) {\n 1 !== n && (v = o), r.encodeCentroid(void 0, s, !1), x && h.encodeCentroid(void 0, l, !1);\n continue;\n }\n const c = _[t](s, l),\n p = t % 2 ? e.EXTENT - 1 : 0;\n d.x = g(c[0], Math.min(e.EXTENT - 1, c[1]), p, t < 2, c[2]), d.y = 0, r.encodeCentroid(d, s, !1), x && h.encodeCentroid(d, l, !1);\n } else r.encodeCentroid(void 0, s, !1);\n }\n r.borderDoneWithNeighborZ[t] = h.canonical.z, r.needsCentroidUpdate = !0, x && (h.borderDoneWithNeighborZ[i] = r.canonical.z, h.needsCentroidUpdate = !0);\n } else {\n for (const e of n) r.encodeCentroid(void 0, r.featuresOnBorder[e], !1);\n if (x) {\n for (const e of u) h.encodeCentroid(void 0, h.featuresOnBorder[e], !1);\n h.borderDoneWithNeighborZ[i] = r.canonical.z, h.needsCentroidUpdate = !0;\n }\n r.borderDoneWithNeighborZ[t] = h.canonical.z, r.needsCentroidUpdate = !0;\n }\n }\n (r.needsCentroidUpdate || !r.centroidVertexBuffer && 0 !== r.centroidVertexArray.length) && r.uploadCentroid(t);\n }\n const xo = new e.Color(1, 0, 0, 1),\n yo = new e.Color(0, 1, 0, 1),\n bo = new e.Color(0, 0, 1, 1),\n wo = new e.Color(1, 0, 1, 1),\n To = new e.Color(0, 1, 1, 1);\n function Eo(t, i, o) {\n const r = t.context,\n n = t.transform,\n s = r.gl,\n a = \"globe\" === n.projection.name,\n l = a ? [\"PROJECTION_GLOBE_VIEW\"] : null;\n let c = o.projMatrix;\n if (a && e.globeToMercatorTransition(n.zoom) > 0) {\n const t = e.transitionTileAABBinECEF(o.canonical, n),\n i = e.globeDenormalizeECEF(t);\n c = e.multiply(new Float32Array(16), n.globeMatrix, i), e.multiply(c, n.projMatrix, c);\n }\n const h = t.useProgram(\"debug\", null, l),\n u = i.getTileByID(o.key);\n t.terrain && t.terrain.setupElevationDraw(u, h);\n const _ = e.DepthMode.disabled,\n d = e.StencilMode.disabled,\n p = t.colorModeForRenderPass(),\n m = \"$debug\";\n r.activeTexture.set(s.TEXTURE0), t.emptyTexture.bind(s.LINEAR, s.CLAMP_TO_EDGE), a ? u._makeGlobeTileDebugBuffers(t.context, n) : u._makeDebugTileBoundsBuffers(t.context, n.projection);\n const f = u._tileDebugBuffer || t.debugBuffer,\n g = u._tileDebugIndexBuffer || t.debugIndexBuffer,\n v = u._tileDebugSegments || t.debugSegments;\n h.draw(r, s.LINE_STRIP, _, d, p, e.CullFaceMode.disabled, Vi(c, e.Color.red), m, f, g, v, null, null, null, [u._globeTileDebugBorderBuffer]);\n const x = u.latestRawTileData,\n y = Math.floor((x && x.byteLength || 0) / 1024),\n b = i.getTile(o).tileSize,\n w = 512 / Math.min(b, 512) * (o.overscaledZ / n.zoom) * .5;\n let T = o.canonical.toString();\n o.overscaledZ !== o.canonical.z && (T += ` => ${o.overscaledZ}`), T += ` ${y}kb`, function (e, t) {\n e.initDebugOverlayCanvas();\n const i = e.debugOverlayCanvas,\n o = e.context.gl,\n r = e.debugOverlayCanvas.getContext(\"2d\");\n r.clearRect(0, 0, i.width, i.height), r.shadowColor = \"white\", r.shadowBlur = 2, r.lineWidth = 1.5, r.strokeStyle = \"white\", r.textBaseline = \"top\", r.font = \"bold 36px Open Sans, sans-serif\", r.fillText(t, 5, 5), r.strokeText(t, 5, 5), e.debugOverlayTexture.update(i), e.debugOverlayTexture.bind(o.LINEAR, o.CLAMP_TO_EDGE);\n }(t, T);\n const E = u._tileDebugTextBuffer || t.debugBuffer,\n C = u._tileDebugTextIndexBuffer || t.quadTriangleIndexBuffer,\n M = u._tileDebugTextSegments || t.debugSegments;\n h.draw(r, s.TRIANGLES, _, d, e.ColorMode.alphaBlended, e.CullFaceMode.disabled, Vi(c, e.Color.transparent, w), m, E, C, M, null, null, null, [u._globeTileDebugTextBuffer]);\n }\n function Co(e, t, i, o) {\n Io(e, 0, t + i / 2, e.transform.width, i, o);\n }\n function Mo(e, t, i, o) {\n Io(e, t - i / 2, 0, i, e.transform.height, o);\n }\n function Io(t, i, o, r, n, s) {\n const a = t.context,\n l = a.gl;\n l.enable(l.SCISSOR_TEST), l.scissor(i * e.exported.devicePixelRatio, o * e.exported.devicePixelRatio, r * e.exported.devicePixelRatio, n * e.exported.devicePixelRatio), a.clear({\n color: s\n }), l.disable(l.SCISSOR_TEST);\n }\n const Po = e.createLayout([{\n name: \"a_pos_3f\",\n components: 3,\n type: \"Float32\"\n }]),\n {\n members: So\n } = Po;\n function Do(e, t, i, o) {\n e.emplaceBack(t, i, o);\n }\n class Lo {\n constructor(t) {\n this.vertexArray = new e.StructArrayLayout3f12(), this.indices = new e.StructArrayLayout3ui6(), Do(this.vertexArray, -1, -1, 1), Do(this.vertexArray, 1, -1, 1), Do(this.vertexArray, -1, 1, 1), Do(this.vertexArray, 1, 1, 1), Do(this.vertexArray, -1, -1, -1), Do(this.vertexArray, 1, -1, -1), Do(this.vertexArray, -1, 1, -1), Do(this.vertexArray, 1, 1, -1), this.indices.emplaceBack(5, 1, 3), this.indices.emplaceBack(3, 7, 5), this.indices.emplaceBack(6, 2, 0), this.indices.emplaceBack(0, 4, 6), this.indices.emplaceBack(2, 6, 7), this.indices.emplaceBack(7, 3, 2), this.indices.emplaceBack(5, 4, 0), this.indices.emplaceBack(0, 1, 5), this.indices.emplaceBack(0, 2, 3), this.indices.emplaceBack(3, 1, 0), this.indices.emplaceBack(7, 6, 4), this.indices.emplaceBack(4, 5, 7), this.vertexBuffer = t.createVertexBuffer(this.vertexArray, So), this.indexBuffer = t.createIndexBuffer(this.indices), this.segment = e.SegmentVector.simpleSegment(0, 0, 36, 12);\n }\n }\n function Ao(t, i, o, r, n, s) {\n const a = t.gl,\n l = i.paint.get(\"sky-atmosphere-color\"),\n c = i.paint.get(\"sky-atmosphere-halo-color\"),\n h = i.paint.get(\"sky-atmosphere-sun-intensity\"),\n u = ((e, t, i, o, r) => ({\n u_matrix_3f: e,\n u_sun_direction: t,\n u_sun_intensity: i,\n u_color_tint_r: [o.r, o.g, o.b, o.a],\n u_color_tint_m: [r.r, r.g, r.b, r.a],\n u_luminance: 5e-5\n }))(e.fromMat4(e.create$1(), r), n, h, l, c);\n a.framebufferTexture2D(a.FRAMEBUFFER, a.COLOR_ATTACHMENT0, a.TEXTURE_CUBE_MAP_POSITIVE_X + s, i.skyboxTexture, 0), o.draw(t, a.TRIANGLES, e.DepthMode.disabled, e.StencilMode.disabled, e.ColorMode.unblended, e.CullFaceMode.frontCW, u, \"skyboxCapture\", i.skyboxGeometry.vertexBuffer, i.skyboxGeometry.indexBuffer, i.skyboxGeometry.segment);\n }\n const zo = e.createLayout([{\n type: \"Float32\",\n name: \"a_pos\",\n components: 3\n }, {\n type: \"Float32\",\n name: \"a_uv\",\n components: 2\n }]);\n class Ro {\n constructor(t) {\n const i = new e.StructArrayLayout5f20();\n i.emplaceBack(-1, 1, 1, 0, 0), i.emplaceBack(1, 1, 1, 1, 0), i.emplaceBack(1, -1, 1, 1, 1), i.emplaceBack(-1, -1, 1, 0, 1);\n const o = new e.StructArrayLayout3ui6();\n o.emplaceBack(0, 1, 2), o.emplaceBack(2, 3, 0), this.vertexBuffer = t.createVertexBuffer(i, zo.members), this.indexBuffer = t.createIndexBuffer(o), this.segments = e.SegmentVector.simpleSegment(0, 0, 4, 2);\n }\n destroy() {\n this.vertexBuffer.destroy(), this.indexBuffer.destroy(), this.segments.destroy();\n }\n }\n const Oo = {\n symbol: function (t, i, o, r, n) {\n if (\"translucent\" !== t.renderPass) return;\n const s = e.StencilMode.disabled,\n a = t.colorModeForRenderPass();\n o.layout.get(\"text-variable-anchor\") && function (t, i, o, r, n, s, a) {\n const l = i.transform,\n c = \"map\" === n,\n h = \"map\" === s;\n for (const i of t) {\n const t = r.getTile(i),\n n = t.getBucket(o);\n if (!n || !n.text || !n.text.segments.get().length) continue;\n const s = e.evaluateSizeForZoom(n.textSizeData, l.zoom),\n u = xt(i, n.getProjection(), l),\n _ = l.calculatePixelsToTileUnitsMatrix(t),\n d = et(u, t.tileID.canonical, h, c, l, n.getProjection(), _),\n p = \"none\" !== o.layout.get(\"icon-text-fit\") && n.hasIconData();\n if (s) {\n const o = Math.pow(2, l.zoom - t.tileID.overscaledZ);\n uo(n, c, h, a, e.symbolSize, l, d, i, o, s, p);\n }\n }\n }(r, t, o, i, o.layout.get(\"text-rotation-alignment\"), o.layout.get(\"text-pitch-alignment\"), n), 0 !== o.paint.get(\"icon-opacity\").constantOr(1) && po(t, i, o, r, !1, o.paint.get(\"icon-translate\"), o.paint.get(\"icon-translate-anchor\"), o.layout.get(\"icon-rotation-alignment\"), o.layout.get(\"icon-pitch-alignment\"), o.layout.get(\"icon-keep-upright\"), s, a), 0 !== o.paint.get(\"text-opacity\").constantOr(1) && po(t, i, o, r, !0, o.paint.get(\"text-translate\"), o.paint.get(\"text-translate-anchor\"), o.layout.get(\"text-rotation-alignment\"), o.layout.get(\"text-pitch-alignment\"), o.layout.get(\"text-keep-upright\"), s, a), i.map.showCollisionBoxes && (lo(t, i, o, r, o.paint.get(\"text-translate\"), o.paint.get(\"text-translate-anchor\"), !0), lo(t, i, o, r, o.paint.get(\"icon-translate\"), o.paint.get(\"icon-translate-anchor\"), !1));\n },\n circle: function (t, i, o, r) {\n if (\"translucent\" !== t.renderPass) return;\n const n = o.paint.get(\"circle-opacity\"),\n s = o.paint.get(\"circle-stroke-width\"),\n a = o.paint.get(\"circle-stroke-opacity\"),\n l = void 0 !== o.layout.get(\"circle-sort-key\").constantOr(1);\n if (0 === n.constantOr(1) && (0 === s.constantOr(1) || 0 === a.constantOr(1))) return;\n const c = t.context,\n h = c.gl,\n u = t.transform,\n _ = t.depthModeForSublayer(0, e.DepthMode.ReadOnly),\n d = e.StencilMode.disabled,\n p = t.colorModeForRenderPass(),\n m = \"globe\" === u.projection.name,\n f = [e.mercatorXfromLng(u.center.lng), e.mercatorYfromLat(u.center.lat)],\n g = [];\n for (let n = 0; n < r.length; n++) {\n const s = r[n],\n a = i.getTile(s),\n c = a.getBucket(o);\n if (!c || c.projection.name !== u.projection.name) continue;\n const h = c.programConfigurations.get(o.id),\n _ = Gi(o);\n m && _.push(\"PROJECTION_GLOBE_VIEW\");\n const d = t.useProgram(\"circle\", h, _),\n p = c.layoutVertexBuffer,\n v = c.globeExtVertexBuffer,\n x = c.indexBuffer,\n y = u.projection.createInversionMatrix(u, s.canonical),\n b = {\n programConfiguration: h,\n program: d,\n layoutVertexBuffer: p,\n globeExtVertexBuffer: v,\n indexBuffer: x,\n uniformValues: ji(t, s, a, y, f, o),\n tile: a\n };\n if (l) {\n const t = c.segments.get();\n for (const i of t) g.push({\n segments: new e.SegmentVector([i]),\n sortKey: i.sortKey,\n state: b\n });\n } else g.push({\n segments: c.segments,\n sortKey: 0,\n state: b\n });\n }\n l && g.sort((e, t) => e.sortKey - t.sortKey);\n const v = {\n useDepthForOcclusion: !m\n };\n for (const i of g) {\n const {\n programConfiguration: r,\n program: n,\n layoutVertexBuffer: s,\n globeExtVertexBuffer: a,\n indexBuffer: l,\n uniformValues: m,\n tile: f\n } = i.state,\n g = i.segments;\n t.terrain && t.terrain.setupElevationDraw(f, n, v), t.prepareDrawProgram(c, n, f.tileID.toUnwrapped()), n.draw(c, h.TRIANGLES, _, d, p, e.CullFaceMode.disabled, m, o.id, s, l, g, o.paint, u.zoom, r, [a]);\n }\n },\n heatmap: function (t, i, o, r) {\n if (0 !== o.paint.get(\"heatmap-opacity\")) if (\"offscreen\" === t.renderPass) {\n const n = t.context,\n s = n.gl,\n a = e.StencilMode.disabled,\n l = new e.ColorMode([s.ONE, s.ONE], e.Color.transparent, [!0, !0, !0, !0]);\n !function (e, t, i, o) {\n const r = e.gl,\n n = t.width * o,\n s = t.height * o;\n e.activeTexture.set(r.TEXTURE1), e.viewport.set([0, 0, n, s]);\n let a = i.heatmapFbo;\n if (!a || a && (a.width !== n || a.height !== s)) {\n a && a.destroy();\n const t = r.createTexture();\n r.bindTexture(r.TEXTURE_2D, t), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_S, r.CLAMP_TO_EDGE), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_T, r.CLAMP_TO_EDGE), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_MIN_FILTER, r.LINEAR), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_MAG_FILTER, r.LINEAR), a = i.heatmapFbo = e.createFramebuffer(n, s, !1), function (e, t, i, o, r, n) {\n const s = e.gl;\n s.texImage2D(s.TEXTURE_2D, 0, e.isWebGL2 && e.extRenderToTextureHalfFloat ? s.RGBA16F : s.RGBA, r, n, 0, s.RGBA, e.extRenderToTextureHalfFloat ? e.isWebGL2 ? s.HALF_FLOAT : e.extTextureHalfFloat.HALF_FLOAT_OES : s.UNSIGNED_BYTE, null), o.colorAttachment.set(i);\n }(e, 0, t, a, n, s);\n } else r.bindTexture(r.TEXTURE_2D, a.colorAttachment.get()), e.bindFramebuffer.set(a.framebuffer);\n }(n, t, o, \"globe\" === t.transform.projection.name ? .5 : .25), n.clear({\n color: e.Color.transparent\n });\n const c = t.transform,\n h = \"globe\" === c.projection.name,\n u = h ? [\"PROJECTION_GLOBE_VIEW\"] : null,\n _ = h ? e.CullFaceMode.frontCCW : e.CullFaceMode.disabled,\n d = [e.mercatorXfromLng(c.center.lng), e.mercatorYfromLat(c.center.lat)];\n for (let p = 0; p < r.length; p++) {\n const m = r[p];\n if (i.hasRenderableParent(m)) continue;\n const f = i.getTile(m),\n g = f.getBucket(o);\n if (!g || g.projection.name !== c.projection.name) continue;\n const v = g.programConfigurations.get(o.id),\n x = t.useProgram(\"heatmap\", v, u),\n {\n zoom: y\n } = t.transform;\n t.terrain && t.terrain.setupElevationDraw(f, x), t.prepareDrawProgram(n, x, m.toUnwrapped());\n const b = c.projection.createInversionMatrix(c, m.canonical);\n x.draw(n, s.TRIANGLES, e.DepthMode.disabled, a, l, _, Xi(t, m, f, b, d, y, o.paint.get(\"heatmap-intensity\")), o.id, g.layoutVertexBuffer, g.indexBuffer, g.segments, o.paint, t.transform.zoom, v, h ? [g.globeExtVertexBuffer] : null);\n }\n n.viewport.set([0, 0, t.width, t.height]);\n } else \"translucent\" === t.renderPass && (t.context.setColorMode(t.colorModeForRenderPass()), function (t, i) {\n const o = t.context,\n r = o.gl,\n n = i.heatmapFbo;\n if (!n) return;\n o.activeTexture.set(r.TEXTURE0), r.bindTexture(r.TEXTURE_2D, n.colorAttachment.get()), o.activeTexture.set(r.TEXTURE1);\n let s = i.colorRampTexture;\n s || (s = i.colorRampTexture = new e.Texture(o, i.colorRamp, r.RGBA)), s.bind(r.LINEAR, r.CLAMP_TO_EDGE), t.useProgram(\"heatmapTexture\").draw(o, r.TRIANGLES, e.DepthMode.disabled, e.StencilMode.disabled, t.colorModeForRenderPass(), e.CullFaceMode.disabled, ((e, t, i, o) => ({\n u_image: 0,\n u_color_ramp: 1,\n u_opacity: t.paint.get(\"heatmap-opacity\")\n }))(0, i), i.id, t.viewportBuffer, t.quadTriangleIndexBuffer, t.viewportSegments, i.paint, t.transform.zoom);\n }(t, o));\n },\n line: function (t, i, o, r) {\n if (\"translucent\" !== t.renderPass) return;\n const n = o.paint.get(\"line-opacity\"),\n s = o.paint.get(\"line-width\");\n if (0 === n.constantOr(1) || 0 === s.constantOr(1)) return;\n const a = t.depthModeForSublayer(0, e.DepthMode.ReadOnly),\n l = t.colorModeForRenderPass(),\n c = t.terrain && t.terrain.renderingToTexture ? 1 : e.exported.devicePixelRatio,\n h = o.paint.get(\"line-dasharray\"),\n u = h.constantOr(1),\n _ = o.layout.get(\"line-cap\"),\n d = o.paint.get(\"line-pattern\"),\n p = d.constantOr(1),\n m = o.paint.get(\"line-gradient\"),\n f = p ? \"linePattern\" : \"line\",\n g = t.context,\n v = g.gl,\n x = (e => {\n const t = [];\n Ki(e) && t.push(\"RENDER_LINE_DASH\"), e.paint.get(\"line-gradient\") && t.push(\"RENDER_LINE_GRADIENT\");\n const i = e.paint.get(\"line-trim-offset\");\n 0 === i[0] && 0 === i[1] || t.push(\"RENDER_LINE_TRIM_OFFSET\");\n const o = e.paint.get(\"line-pattern\").constantOr(1),\n r = 1 !== e.paint.get(\"line-opacity\").constantOr(1);\n return !o && r && t.push(\"RENDER_LINE_ALPHA_DISCARD\"), t;\n })(o);\n let y = x.includes(\"RENDER_LINE_ALPHA_DISCARD\");\n t.terrain && t.terrain.clipOrMaskOverlapStencilType() && (y = !1);\n for (const n of r) {\n const r = i.getTile(n);\n if (p && !r.patternsLoaded()) continue;\n const s = r.getBucket(o);\n if (!s) continue;\n t.prepareDrawTile();\n const b = s.programConfigurations.get(o.id),\n w = t.useProgram(f, b, x),\n T = d.constantOr(null);\n if (T && r.imageAtlas) {\n const e = r.imageAtlas.patternPositions[T.toString()];\n e && b.setConstantPatternPositions(e);\n }\n const E = h.constantOr(null),\n C = _.constantOr(null);\n if (!p && E && C && r.lineAtlas) {\n const e = r.lineAtlas.getDash(E, C);\n e && b.setConstantPatternPositions(e);\n }\n let [M, I] = o.paint.get(\"line-trim-offset\");\n if (\"round\" === C || \"square\" === C) {\n const e = 1;\n M !== I && (0 === M && (M -= e), 1 === I && (I += e));\n }\n const P = t.terrain ? n.projMatrix : null,\n S = p ? $i(t, r, o, P, c) : qi(t, r, o, P, s.lineClipsArray.length, c, [M, I]);\n if (m) {\n const r = s.gradients[o.id];\n let a = r.texture;\n if (o.gradientVersion !== r.version) {\n let l = 256;\n if (o.stepInterpolant) {\n const o = i.getSource().maxzoom,\n r = n.canonical.z === o ? Math.ceil(1 << t.transform.maxZoom - n.canonical.z) : 1;\n l = e.clamp(e.nextPowerOfTwo(s.maxLineLength / e.EXTENT * 1024 * r), 256, g.maxTextureSize);\n }\n r.gradient = e.renderColorRamp({\n expression: o.gradientExpression(),\n evaluationKey: \"lineProgress\",\n resolution: l,\n image: r.gradient || void 0,\n clips: s.lineClipsArray\n }), r.texture ? r.texture.update(r.gradient) : r.texture = new e.Texture(g, r.gradient, v.RGBA), r.version = o.gradientVersion, a = r.texture;\n }\n g.activeTexture.set(v.TEXTURE1), a.bind(o.stepInterpolant ? v.NEAREST : v.LINEAR, v.CLAMP_TO_EDGE);\n }\n u && (g.activeTexture.set(v.TEXTURE0), r.lineAtlasTexture.bind(v.LINEAR, v.REPEAT), b.updatePaintBuffers()), p && (g.activeTexture.set(v.TEXTURE0), r.imageAtlasTexture.bind(v.LINEAR, v.CLAMP_TO_EDGE), b.updatePaintBuffers()), t.prepareDrawProgram(g, w, n.toUnwrapped());\n const D = i => {\n w.draw(g, v.TRIANGLES, a, i, l, e.CullFaceMode.disabled, S, o.id, s.layoutVertexBuffer, s.indexBuffer, s.segments, o.paint, t.transform.zoom, b, [s.layoutVertexBuffer2]);\n };\n if (y) {\n const i = t.stencilModeForClipping(n).ref;\n 0 === i && t.terrain && g.clear({\n stencil: 0\n });\n const o = {\n func: v.EQUAL,\n mask: 255\n };\n S.u_alpha_discard_threshold = .8, D(new e.StencilMode(o, i, 255, v.KEEP, v.KEEP, v.INVERT)), S.u_alpha_discard_threshold = 0, D(new e.StencilMode(o, i, 255, v.KEEP, v.KEEP, v.KEEP));\n } else D(t.stencilModeForClipping(n));\n }\n y && (t.resetStencilClippingMasks(), t.terrain && g.clear({\n stencil: 0\n }));\n },\n fill: function (t, i, o, r) {\n const n = o.paint.get(\"fill-color\"),\n s = o.paint.get(\"fill-opacity\");\n if (0 === s.constantOr(1)) return;\n const a = t.colorModeForRenderPass(),\n l = o.paint.get(\"fill-pattern\"),\n c = t.opaquePassEnabledForLayer() && !l.constantOr(1) && 1 === n.constantOr(e.Color.transparent).a && 1 === s.constantOr(0) ? \"opaque\" : \"translucent\";\n if (t.renderPass === c) {\n const n = t.depthModeForSublayer(1, \"opaque\" === t.renderPass ? e.DepthMode.ReadWrite : e.DepthMode.ReadOnly);\n fo(t, i, o, r, n, a, !1);\n }\n if (\"translucent\" === t.renderPass && o.paint.get(\"fill-antialias\")) {\n const n = t.depthModeForSublayer(o.getPaintProperty(\"fill-outline-color\") ? 2 : 0, e.DepthMode.ReadOnly);\n fo(t, i, o, r, n, a, !0);\n }\n },\n \"fill-extrusion\": function (t, i, o, r) {\n const n = o.paint.get(\"fill-extrusion-opacity\");\n if (0 !== n && \"translucent\" === t.renderPass) {\n const s = new e.DepthMode(t.context.gl.LEQUAL, e.DepthMode.ReadWrite, t.depthRangeFor3D);\n if (1 !== n || o.paint.get(\"fill-extrusion-pattern\").constantOr(1)) go(t, i, o, r, s, e.StencilMode.disabled, e.ColorMode.disabled), go(t, i, o, r, s, t.stencilModeFor3D(), t.colorModeForRenderPass()), t.resetStencilClippingMasks();else {\n const n = t.colorModeForRenderPass();\n go(t, i, o, r, s, e.StencilMode.disabled, n);\n }\n }\n },\n hillshade: function (t, i, o, r) {\n if (\"offscreen\" !== t.renderPass && \"translucent\" !== t.renderPass) return;\n const n = t.context,\n s = t.depthModeForSublayer(0, e.DepthMode.ReadOnly),\n a = t.colorModeForRenderPass(),\n l = t.terrain && t.terrain.renderingToTexture,\n [c, h] = \"translucent\" !== t.renderPass || l ? [{}, r] : t.stencilConfigForOverlap(r);\n for (const r of h) {\n const n = i.getTile(r);\n if (n.needsHillshadePrepare && \"offscreen\" === t.renderPass) fi(t, n, o, s, e.StencilMode.disabled, a);else if (\"translucent\" === t.renderPass) {\n const e = l && t.terrain ? t.terrain.stencilModeForRTTOverlap(r) : c[r.overscaledZ];\n pi(t, r, n, o, s, e, a);\n }\n }\n n.viewport.set([0, 0, t.width, t.height]), t.resetStencilClippingMasks();\n },\n raster: function (t, i, o, r, n, s) {\n if (\"translucent\" !== t.renderPass) return;\n if (0 === o.paint.get(\"raster-opacity\")) return;\n if (!r.length) return;\n const a = t.context,\n l = a.gl,\n c = i.getSource(),\n h = t.useProgram(\"raster\"),\n u = t.colorModeForRenderPass(),\n _ = t.terrain && t.terrain.renderingToTexture,\n [d, p] = c instanceof Pe || _ ? [{}, r] : t.stencilConfigForOverlap(r),\n m = p[p.length - 1].overscaledZ,\n f = !t.options.moving;\n for (const r of p) {\n const n = _ ? e.DepthMode.disabled : t.depthModeForSublayer(r.overscaledZ - m, 1 === o.paint.get(\"raster-opacity\") ? e.DepthMode.ReadWrite : e.DepthMode.ReadOnly, l.LESS),\n p = r.toUnwrapped(),\n g = i.getTile(r);\n if (_ && (!g || !g.hasData())) continue;\n const v = _ ? r.projMatrix : t.transform.calculateProjMatrix(p, f),\n x = t.terrain && _ ? t.terrain.stencilModeForRTTOverlap(r) : d[r.overscaledZ],\n y = s ? 0 : o.paint.get(\"raster-fade-duration\");\n g.registerFadeDuration(y);\n const b = i.findLoadedParent(r, 0),\n w = Mi(g, b, i, t.transform, y);\n let T, E;\n t.terrain && t.terrain.prepareDrawTile();\n const C = \"nearest\" === o.paint.get(\"raster-resampling\") ? l.NEAREST : l.LINEAR;\n a.activeTexture.set(l.TEXTURE0), g.texture.bind(C, l.CLAMP_TO_EDGE), a.activeTexture.set(l.TEXTURE1), b ? (b.texture.bind(C, l.CLAMP_TO_EDGE), T = Math.pow(2, b.tileID.overscaledZ - g.tileID.overscaledZ), E = [g.tileID.canonical.x * T % 1, g.tileID.canonical.y * T % 1]) : g.texture.bind(C, l.CLAMP_TO_EDGE), g.texture.useMipmap && a.extTextureFilterAnisotropic && t.transform.pitch > 20 && l.texParameterf(l.TEXTURE_2D, a.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, a.extTextureFilterAnisotropicMax);\n const M = Ji(v, E || [0, 0], T || 1, w, o, c instanceof Pe ? c.perspectiveTransform : [0, 0]);\n if (t.prepareDrawProgram(a, h, p), c instanceof Pe) c.boundsBuffer && c.boundsSegments && h.draw(a, l.TRIANGLES, n, e.StencilMode.disabled, u, e.CullFaceMode.disabled, M, o.id, c.boundsBuffer, t.quadTriangleIndexBuffer, c.boundsSegments);else {\n const {\n tileBoundsBuffer: i,\n tileBoundsIndexBuffer: r,\n tileBoundsSegments: s\n } = t.getTileBoundsBuffers(g);\n h.draw(a, l.TRIANGLES, n, x, u, e.CullFaceMode.disabled, M, o.id, i, r, s);\n }\n }\n t.resetStencilClippingMasks();\n },\n background: function (t, i, o, r) {\n const n = o.paint.get(\"background-color\"),\n s = o.paint.get(\"background-opacity\");\n if (0 === s) return;\n const a = t.context,\n l = a.gl,\n c = t.transform,\n h = c.tileSize,\n u = o.paint.get(\"background-pattern\");\n if (t.isPatternMissing(u)) return;\n const _ = !u && 1 === n.a && 1 === s && t.opaquePassEnabledForLayer() ? \"opaque\" : \"translucent\";\n if (t.renderPass !== _) return;\n const d = e.StencilMode.disabled,\n p = t.depthModeForSublayer(0, \"opaque\" === _ ? e.DepthMode.ReadWrite : e.DepthMode.ReadOnly),\n m = t.colorModeForRenderPass(),\n f = t.useProgram(u ? \"backgroundPattern\" : \"background\");\n let g,\n v = r;\n v || (g = t.getBackgroundTiles(), v = Object.values(g).map(e => e.tileID)), u && (a.activeTexture.set(l.TEXTURE0), t.imageManager.bind(t.context));\n for (const _ of v) {\n const v = _.toUnwrapped(),\n x = r ? _.projMatrix : t.transform.calculateProjMatrix(v);\n t.prepareDrawTile();\n const y = i ? i.getTile(_) : g ? g[_.key] : new e.Tile(_, h, c.zoom, t),\n b = u ? no(x, s, t, u, {\n tileID: _,\n tileSize: h\n }) : ro(x, s, n);\n t.prepareDrawProgram(a, f, v);\n const {\n tileBoundsBuffer: w,\n tileBoundsIndexBuffer: T,\n tileBoundsSegments: E\n } = t.getTileBoundsBuffers(y);\n f.draw(a, l.TRIANGLES, p, d, m, e.CullFaceMode.disabled, b, o.id, w, T, E);\n }\n },\n sky: function (t, i, o) {\n const r = t.transform,\n n = \"mercator\" === r.projection.name || \"globe\" === r.projection.name ? 1 : e.smoothstep(7, 8, r.zoom),\n s = o.paint.get(\"sky-opacity\") * n;\n if (0 === s) return;\n const a = t.context,\n l = o.paint.get(\"sky-type\"),\n c = new e.DepthMode(a.gl.LEQUAL, e.DepthMode.ReadOnly, [0, 1]),\n h = t.frameCounter / 1e3 % 1;\n \"atmosphere\" === l ? \"offscreen\" === t.renderPass ? o.needsSkyboxCapture(t) && (function (t, i, o, r) {\n const n = t.context,\n s = n.gl;\n let a = i.skyboxFbo;\n if (!a) {\n a = i.skyboxFbo = n.createFramebuffer(32, 32, !1), i.skyboxGeometry = new Lo(n), i.skyboxTexture = n.gl.createTexture(), s.bindTexture(s.TEXTURE_CUBE_MAP, i.skyboxTexture), s.texParameteri(s.TEXTURE_CUBE_MAP, s.TEXTURE_WRAP_S, s.CLAMP_TO_EDGE), s.texParameteri(s.TEXTURE_CUBE_MAP, s.TEXTURE_WRAP_T, s.CLAMP_TO_EDGE), s.texParameteri(s.TEXTURE_CUBE_MAP, s.TEXTURE_MIN_FILTER, s.LINEAR), s.texParameteri(s.TEXTURE_CUBE_MAP, s.TEXTURE_MAG_FILTER, s.LINEAR);\n for (let e = 0; e < 6; ++e) s.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + e, 0, s.RGBA, 32, 32, 0, s.RGBA, s.UNSIGNED_BYTE, null);\n }\n n.bindFramebuffer.set(a.framebuffer), n.viewport.set([0, 0, 32, 32]);\n const l = i.getCenter(t, !0),\n c = t.useProgram(\"skyboxCapture\"),\n h = new Float64Array(16);\n e.identity(h), e.rotateY(h, h, .5 * -Math.PI), Ao(n, i, c, h, l, 0), e.identity(h), e.rotateY(h, h, .5 * Math.PI), Ao(n, i, c, h, l, 1), e.identity(h), e.rotateX(h, h, .5 * -Math.PI), Ao(n, i, c, h, l, 2), e.identity(h), e.rotateX(h, h, .5 * Math.PI), Ao(n, i, c, h, l, 3), e.identity(h), Ao(n, i, c, h, l, 4), e.identity(h), e.rotateY(h, h, Math.PI), Ao(n, i, c, h, l, 5), n.viewport.set([0, 0, t.width, t.height]);\n }(t, o), o.markSkyboxValid(t)) : \"sky\" === t.renderPass && function (t, i, o, r, n) {\n const s = t.context,\n a = s.gl,\n l = t.transform,\n c = t.useProgram(\"skybox\");\n s.activeTexture.set(a.TEXTURE0), a.bindTexture(a.TEXTURE_CUBE_MAP, i.skyboxTexture);\n const h = ((e, t, i, o, r) => ({\n u_matrix: e,\n u_sun_direction: t,\n u_cubemap: 0,\n u_opacity: o,\n u_temporal_offset: r\n }))(l.skyboxMatrix, i.getCenter(t, !1), 0, r, n);\n t.prepareDrawProgram(s, c), c.draw(s, a.TRIANGLES, o, e.StencilMode.disabled, t.colorModeForRenderPass(), e.CullFaceMode.backCW, h, \"skybox\", i.skyboxGeometry.vertexBuffer, i.skyboxGeometry.indexBuffer, i.skyboxGeometry.segment);\n }(t, o, c, s, h) : \"gradient\" === l && \"sky\" === t.renderPass && function (t, i, o, r, n) {\n const s = t.context,\n a = s.gl,\n l = t.transform,\n c = t.useProgram(\"skyboxGradient\");\n i.skyboxGeometry || (i.skyboxGeometry = new Lo(s)), s.activeTexture.set(a.TEXTURE0);\n let h = i.colorRampTexture;\n h || (h = i.colorRampTexture = new e.Texture(s, i.colorRamp, a.RGBA)), h.bind(a.LINEAR, a.CLAMP_TO_EDGE);\n const u = ((t, i, o, r, n) => ({\n u_matrix: t,\n u_color_ramp: 0,\n u_center_direction: i,\n u_radius: e.degToRad(o),\n u_opacity: r,\n u_temporal_offset: n\n }))(l.skyboxMatrix, i.getCenter(t, !1), i.paint.get(\"sky-gradient-radius\"), r, n);\n t.prepareDrawProgram(s, c), c.draw(s, a.TRIANGLES, o, e.StencilMode.disabled, t.colorModeForRenderPass(), e.CullFaceMode.backCW, u, \"skyboxGradient\", i.skyboxGeometry.vertexBuffer, i.skyboxGeometry.indexBuffer, i.skyboxGeometry.segment);\n }(t, o, c, s, h);\n },\n debug: function (e, t, i) {\n for (let o = 0; o < i.length; o++) Eo(e, t, i[o]);\n },\n custom: function (t, i, o, r) {\n const n = t.context,\n s = o.implementation;\n if (!t.transform.projection.unsupportedLayers || !t.transform.projection.unsupportedLayers.includes(\"custom\") || t.terrain && (t.terrain.renderingToTexture || \"offscreen\" === t.renderPass) && o.isLayerDraped()) {\n if (\"offscreen\" === t.renderPass) {\n const i = s.prerender;\n if (i) {\n if (t.setCustomLayerDefaults(), n.setColorMode(t.colorModeForRenderPass()), \"globe\" === t.transform.projection.name) {\n const o = t.transform.pointMerc;\n i.call(s, n.gl, t.transform.customLayerMatrix(), t.transform.getProjection(), t.transform.globeToMercatorMatrix(), e.globeToMercatorTransition(t.transform.zoom), [o.x, o.y], t.transform.pixelsPerMeterRatio);\n } else i.call(s, n.gl, t.transform.customLayerMatrix());\n n.setDirty(), t.setBaseState();\n }\n } else if (\"translucent\" === t.renderPass) {\n if (t.terrain && t.terrain.renderingToTexture) {\n const i = s.renderToTile;\n if (i) {\n const o = r[0].canonical,\n a = new e.MercatorCoordinate(o.x + r[0].wrap * (1 << o.z), o.y, o.z);\n n.setDepthMode(e.DepthMode.disabled), n.setStencilMode(e.StencilMode.disabled), n.setColorMode(t.colorModeForRenderPass()), t.setCustomLayerDefaults(), i.call(s, n.gl, a), n.setDirty(), t.setBaseState();\n }\n return;\n }\n t.setCustomLayerDefaults(), n.setColorMode(t.colorModeForRenderPass()), n.setStencilMode(e.StencilMode.disabled);\n const i = \"3d\" === s.renderingMode ? new e.DepthMode(t.context.gl.LEQUAL, e.DepthMode.ReadWrite, t.depthRangeFor3D) : t.depthModeForSublayer(0, e.DepthMode.ReadOnly);\n if (n.setDepthMode(i), \"globe\" === t.transform.projection.name) {\n const i = t.transform.pointMerc;\n s.render(n.gl, t.transform.customLayerMatrix(), t.transform.getProjection(), t.transform.globeToMercatorMatrix(), e.globeToMercatorTransition(t.transform.zoom), [i.x, i.y], t.transform.pixelsPerMeterRatio);\n } else s.render(n.gl, t.transform.customLayerMatrix());\n n.setDirty(), t.setBaseState(), n.bindFramebuffer.set(null);\n }\n } else e.warnOnce(\"Custom layers are not yet supported with this projection. Use mercator or globe to enable usage of custom layers.\");\n }\n };\n class Bo {\n constructor(t, i, o = !1) {\n this.context = new Ee(t, o), this.transform = i, this._tileTextures = {}, this.frameCopies = [], this.loadTimeStamps = [], this.setup(), this.numSublayers = e.SourceCache.maxUnderzooming + e.SourceCache.maxOverzooming + 1, this.depthEpsilon = 1 / Math.pow(2, 16), this.deferredRenderGpuTimeQueries = [], this.gpuTimers = {}, this.frameCounter = 0, this._backgroundTiles = {};\n }\n updateTerrain(e, t) {\n const i = !!e && !!e.terrain && this.transform.projection.supportsTerrain;\n if (!(i || this._terrain && this._terrain.enabled)) return;\n this._terrain || (this._terrain = new Di(this, e));\n const o = this._terrain;\n this.transform.elevation = i ? o : null, o.update(e, this.transform, t);\n }\n _updateFog(e) {\n const t = e.fog;\n if (!t || \"globe\" === this.transform.projection.name || t.getOpacity(this.transform.pitch) < 1 || t.properties.get(\"horizon-blend\") < .03) return void (this.transform.fogCullDistSq = null);\n const [i, o] = t.getFovAdjustedRange(this.transform._fov);\n if (i > o) return void (this.transform.fogCullDistSq = null);\n const r = i + .78 * (o - i);\n this.transform.fogCullDistSq = r * r;\n }\n get terrain() {\n return this.transform._terrainEnabled() && this._terrain && this._terrain.enabled ? this._terrain : null;\n }\n resize(t, i) {\n if (this.width = t * e.exported.devicePixelRatio, this.height = i * e.exported.devicePixelRatio, this.context.viewport.set([0, 0, this.width, this.height]), this.style) for (const e of this.style.order) this.style._layers[e].resize();\n }\n setup() {\n const t = this.context,\n i = new e.StructArrayLayout2i4();\n i.emplaceBack(0, 0), i.emplaceBack(e.EXTENT, 0), i.emplaceBack(0, e.EXTENT), i.emplaceBack(e.EXTENT, e.EXTENT), this.tileExtentBuffer = t.createVertexBuffer(i, e.posAttributes.members), this.tileExtentSegments = e.SegmentVector.simpleSegment(0, 0, 4, 2);\n const o = new e.StructArrayLayout2i4();\n o.emplaceBack(0, 0), o.emplaceBack(e.EXTENT, 0), o.emplaceBack(0, e.EXTENT), o.emplaceBack(e.EXTENT, e.EXTENT), this.debugBuffer = t.createVertexBuffer(o, e.posAttributes.members), this.debugSegments = e.SegmentVector.simpleSegment(0, 0, 4, 5);\n const r = new e.StructArrayLayout2i4();\n r.emplaceBack(-1, -1), r.emplaceBack(1, -1), r.emplaceBack(-1, 1), r.emplaceBack(1, 1), this.viewportBuffer = t.createVertexBuffer(r, e.posAttributes.members), this.viewportSegments = e.SegmentVector.simpleSegment(0, 0, 4, 2);\n const n = new e.StructArrayLayout4i8();\n n.emplaceBack(0, 0, 0, 0), n.emplaceBack(e.EXTENT, 0, e.EXTENT, 0), n.emplaceBack(0, e.EXTENT, 0, e.EXTENT), n.emplaceBack(e.EXTENT, e.EXTENT, e.EXTENT, e.EXTENT), this.mercatorBoundsBuffer = t.createVertexBuffer(n, e.boundsAttributes.members), this.mercatorBoundsSegments = e.SegmentVector.simpleSegment(0, 0, 4, 2);\n const s = new e.StructArrayLayout3ui6();\n s.emplaceBack(0, 1, 2), s.emplaceBack(2, 1, 3), this.quadTriangleIndexBuffer = t.createIndexBuffer(s);\n const a = new e.StructArrayLayout1ui2();\n for (const e of [0, 1, 3, 2, 0]) a.emplaceBack(e);\n this.debugIndexBuffer = t.createIndexBuffer(a), this.emptyTexture = new e.Texture(t, new e.RGBAImage({\n width: 1,\n height: 1\n }, Uint8Array.of(0, 0, 0, 0)), t.gl.RGBA), this.identityMat = e.create();\n const l = this.context.gl;\n this.stencilClearMode = new e.StencilMode({\n func: l.ALWAYS,\n mask: 0\n }, 0, 255, l.ZERO, l.ZERO, l.ZERO), this.loadTimeStamps.push(e.window.performance.now()), this.atmosphereBuffer = new Ro(this.context);\n }\n getMercatorTileBoundsBuffers() {\n return {\n tileBoundsBuffer: this.mercatorBoundsBuffer,\n tileBoundsIndexBuffer: this.quadTriangleIndexBuffer,\n tileBoundsSegments: this.mercatorBoundsSegments\n };\n }\n getTileBoundsBuffers(e) {\n return e._makeTileBoundsBuffers(this.context, this.transform.projection), e._tileBoundsBuffer ? {\n tileBoundsBuffer: e._tileBoundsBuffer,\n tileBoundsIndexBuffer: e._tileBoundsIndexBuffer,\n tileBoundsSegments: e._tileBoundsSegments\n } : this.getMercatorTileBoundsBuffers();\n }\n clearStencil() {\n const t = this.context,\n i = t.gl;\n this.nextStencilID = 1, this.currentStencilSource = void 0, this._tileClippingMaskIDs = {}, this.useProgram(\"clippingMask\").draw(t, i.TRIANGLES, e.DepthMode.disabled, this.stencilClearMode, e.ColorMode.disabled, e.CullFaceMode.disabled, Ci(this.identityMat), \"$clipping\", this.viewportBuffer, this.quadTriangleIndexBuffer, this.viewportSegments);\n }\n resetStencilClippingMasks() {\n this.terrain || (this.currentStencilSource = void 0, this._tileClippingMaskIDs = {});\n }\n _renderTileClippingMasks(t, i, o) {\n if (!i || this.currentStencilSource === i.id || !t.isTileClipped() || !o || 0 === o.length) return;\n if (this._tileClippingMaskIDs && !this.terrain) {\n let e = !1;\n for (const t of o) if (void 0 === this._tileClippingMaskIDs[t.key]) {\n e = !0;\n break;\n }\n if (!e) return;\n }\n this.currentStencilSource = i.id;\n const r = this.context,\n n = r.gl;\n this.nextStencilID + o.length > 256 && this.clearStencil(), r.setColorMode(e.ColorMode.disabled), r.setDepthMode(e.DepthMode.disabled);\n const s = this.useProgram(\"clippingMask\");\n this._tileClippingMaskIDs = {};\n for (const t of o) {\n const o = i.getTile(t),\n a = this._tileClippingMaskIDs[t.key] = this.nextStencilID++,\n {\n tileBoundsBuffer: l,\n tileBoundsIndexBuffer: c,\n tileBoundsSegments: h\n } = this.getTileBoundsBuffers(o);\n s.draw(r, n.TRIANGLES, e.DepthMode.disabled, new e.StencilMode({\n func: n.ALWAYS,\n mask: 0\n }, a, 255, n.KEEP, n.KEEP, n.REPLACE), e.ColorMode.disabled, e.CullFaceMode.disabled, Ci(t.projMatrix), \"$clipping\", l, c, h);\n }\n }\n stencilModeFor3D() {\n this.currentStencilSource = void 0, this.nextStencilID + 1 > 256 && this.clearStencil();\n const t = this.nextStencilID++,\n i = this.context.gl;\n return new e.StencilMode({\n func: i.NOTEQUAL,\n mask: 255\n }, t, 255, i.KEEP, i.KEEP, i.REPLACE);\n }\n stencilModeForClipping(t) {\n if (this.terrain) return this.terrain.stencilModeForRTTOverlap(t);\n const i = this.context.gl;\n return new e.StencilMode({\n func: i.EQUAL,\n mask: 255\n }, this._tileClippingMaskIDs[t.key], 0, i.KEEP, i.KEEP, i.REPLACE);\n }\n stencilConfigForOverlap(t) {\n const i = this.context.gl,\n o = t.sort((e, t) => t.overscaledZ - e.overscaledZ),\n r = o[o.length - 1].overscaledZ,\n n = o[0].overscaledZ - r + 1;\n if (n > 1) {\n this.currentStencilSource = void 0, this.nextStencilID + n > 256 && this.clearStencil();\n const t = {};\n for (let o = 0; o < n; o++) t[o + r] = new e.StencilMode({\n func: i.GEQUAL,\n mask: 255\n }, o + this.nextStencilID, 255, i.KEEP, i.KEEP, i.REPLACE);\n return this.nextStencilID += n, [t, o];\n }\n return [{\n [r]: e.StencilMode.disabled\n }, o];\n }\n colorModeForRenderPass() {\n const t = this.context.gl;\n if (this._showOverdrawInspector) {\n const i = 1 / 8;\n return new e.ColorMode([t.CONSTANT_COLOR, t.ONE], new e.Color(i, i, i, 0), [!0, !0, !0, !0]);\n }\n return \"opaque\" === this.renderPass ? e.ColorMode.unblended : e.ColorMode.alphaBlended;\n }\n depthModeForSublayer(t, i, o) {\n if (!this.opaquePassEnabledForLayer()) return e.DepthMode.disabled;\n const r = 1 - ((1 + this.currentLayer) * this.numSublayers + t) * this.depthEpsilon;\n return new e.DepthMode(o || this.context.gl.LEQUAL, i, [r, r]);\n }\n opaquePassEnabledForLayer() {\n return this.currentLayer < this.opaquePassCutoff;\n }\n render(t, i) {\n this.style = t, this.options = i, this.imageManager = t.imageManager, this.glyphManager = t.glyphManager, this.symbolFadeChange = t.placement.symbolFadeChange(e.exported.now()), this.imageManager.beginFrame();\n const o = this.style.order,\n r = this.style._sourceCaches;\n for (const e in r) {\n const t = r[e];\n t.used && t.prepare(this.context);\n }\n const n = {},\n s = {},\n a = {};\n for (const e in r) {\n const t = r[e];\n n[e] = t.getVisibleCoordinates(), s[e] = n[e].slice().reverse(), a[e] = t.getVisibleCoordinates(!0).reverse();\n }\n this.opaquePassCutoff = 1 / 0;\n for (let e = 0; e < o.length; e++) if (this.style._layers[o[e]].is3D()) {\n this.opaquePassCutoff = e;\n break;\n }\n if (this.terrain && (this.terrain.updateTileBinding(a), this.opaquePassCutoff = 0), \"globe\" !== this.transform.projection.name || this.globeSharedBuffers || (this.globeSharedBuffers = new e.GlobeSharedBuffers(this.context)), !e.isMapAuthenticated(this.context.gl)) return;\n this.renderPass = \"offscreen\";\n for (const e of o) {\n const i = this.style._layers[e],\n o = t._getLayerSourceCache(i);\n if (!i.hasOffscreenPass() || i.isHidden(this.transform.zoom)) continue;\n const r = o ? s[o.id] : void 0;\n (\"custom\" === i.type || i.isSky() || r && r.length) && this.renderLayer(this, o, i, r);\n }\n this.depthRangeFor3D = [0, 1 - (t.order.length + 2) * this.numSublayers * this.depthEpsilon];\n const l = this.terrain;\n if (l && (this.style.hasSymbolLayers() || this.style.hasCircleLayers()) && l.drawDepth(), this.context.bindFramebuffer.set(null), this.context.viewport.set([0, 0, this.width, this.height]), this.context.clear({\n color: i.showOverdrawInspector ? e.Color.black : e.Color.transparent,\n depth: 1\n }), this.clearStencil(), this._showOverdrawInspector = i.showOverdrawInspector, this.renderPass = \"opaque\", !this.terrain) for (this.currentLayer = o.length - 1; this.currentLayer >= 0; this.currentLayer--) {\n const e = this.style._layers[o[this.currentLayer]],\n i = t._getLayerSourceCache(e);\n if (e.isSky()) continue;\n const r = i ? s[i.id] : void 0;\n this._renderTileClippingMasks(e, i, r), this.renderLayer(this, i, e, r);\n }\n if (this.style.fog && this.transform.projection.supportsFog && function (t, i) {\n const o = t.context,\n r = o.gl,\n n = t.transform,\n s = new e.DepthMode(r.LEQUAL, e.DepthMode.ReadOnly, [0, 1]),\n a = t.useProgram(\"globeAtmosphere\", null, \"globe\" === n.projection.name ? [\"PROJECTION_GLOBE_VIEW\", \"FOG\"] : [\"FOG\"]),\n l = e.globeToMercatorTransition(n.zoom),\n c = i.properties.get(\"color\").toArray01(),\n h = i.properties.get(\"high-color\").toArray01(),\n u = i.properties.get(\"space-color\").toArray01PremultipliedAlpha(),\n _ = e.identity$1([]);\n e.rotateY$1(_, _, -e.degToRad(n._center.lng)), e.rotateX$1(_, _, e.degToRad(n._center.lat)), e.rotateZ$1(_, _, n.angle), e.rotateX$1(_, _, -n._pitch);\n const d = e.fromQuat(new Float32Array(16), _),\n p = e.mapValue(i.properties.get(\"star-intensity\"), 0, 1, 0, .25),\n m = 5e-4,\n f = e.mapValue(i.properties.get(\"horizon-blend\"), 0, 1, m, .25),\n g = e.globeUseCustomAntiAliasing(t, o, n) && f === m ? n.worldSize / (2 * Math.PI * 1.025) - 1 : n.globeRadius,\n v = t.frameCounter / 1e3 % 1,\n x = e.length(n.globeCenterInViewSpace),\n y = Math.sqrt(Math.pow(x, 2) - Math.pow(g, 2)),\n b = Math.acos(y / x),\n w = ((t, i, o, r, n, s, a, l, c, h, u, _, d, p) => ({\n u_frustum_tl: t,\n u_frustum_tr: i,\n u_frustum_br: o,\n u_frustum_bl: r,\n u_horizon: n,\n u_transition: s,\n u_fadeout_range: a,\n u_color: l,\n u_high_color: c,\n u_space_color: h,\n u_star_intensity: u,\n u_star_size: 5 * e.exported.devicePixelRatio,\n u_star_density: 0,\n u_temporal_offset: _,\n u_horizon_angle: d,\n u_rotation_matrix: p\n }))(n.frustumCorners.TL, n.frustumCorners.TR, n.frustumCorners.BR, n.frustumCorners.BL, n.frustumCorners.horizon, l, f, c, h, u, p, v, b, d);\n t.prepareDrawProgram(o, a);\n const T = t.atmosphereBuffer;\n T && a.draw(o, r.TRIANGLES, s, e.StencilMode.disabled, e.ColorMode.alphaBlended, e.CullFaceMode.backCW, w, \"skybox\", T.vertexBuffer, T.indexBuffer, T.segments);\n }(this, this.style.fog), this.renderPass = \"sky\", (e.globeToMercatorTransition(this.transform.zoom) > 0 || \"globe\" !== this.transform.projection.name) && this.transform.isHorizonVisible()) for (this.currentLayer = 0; this.currentLayer < o.length; this.currentLayer++) {\n const e = this.style._layers[o[this.currentLayer]],\n i = t._getLayerSourceCache(e);\n e.isSky() && this.renderLayer(this, i, e, i ? s[i.id] : void 0);\n }\n for (this.renderPass = \"translucent\", this.currentLayer = 0; this.currentLayer < o.length;) {\n const e = this.style._layers[o[this.currentLayer]],\n i = t._getLayerSourceCache(e);\n if (e.isSky()) {\n ++this.currentLayer;\n continue;\n }\n if (this.terrain && this.style.isLayerDraped(e)) {\n if (e.isHidden(this.transform.zoom)) {\n ++this.currentLayer;\n continue;\n }\n this.currentLayer = this.terrain.renderBatch(this.currentLayer);\n continue;\n }\n const r = i ? (\"symbol\" === e.type ? a : s)[i.id] : void 0;\n this._renderTileClippingMasks(e, i, i ? n[i.id] : void 0), this.renderLayer(this, i, e, r), ++this.currentLayer;\n }\n if (this.terrain && this.terrain.postRender(), this.options.showTileBoundaries || this.options.showQueryGeometry || this.options.showTileAABBs) {\n let i = null;\n e.values(this.style._layers).forEach(e => {\n const o = t._getLayerSourceCache(e);\n o && !e.isHidden(this.transform.zoom) && (!i || i.getSource().maxzoom < o.getSource().maxzoom) && (i = o);\n }), i && this.options.showTileBoundaries && Oo.debug(this, i, i.getVisibleCoordinates());\n }\n this.options.showPadding && function (e) {\n const t = e.transform.padding;\n Co(e, e.transform.height - (t.top || 0), 3, xo), Co(e, t.bottom || 0, 3, yo), Mo(e, t.left || 0, 3, bo), Mo(e, e.transform.width - (t.right || 0), 3, wo);\n const i = e.transform.centerPoint;\n !function (e, t, i, o) {\n Io(e, t - 1, i - 10, 2, 20, o), Io(e, t - 10, i - 1, 20, 2, o);\n }(e, i.x, e.transform.height - i.y, To);\n }(this), this.context.setDefault(), this.frameCounter = (this.frameCounter + 1) % Number.MAX_SAFE_INTEGER, this.tileLoaded && this.options.speedIndexTiming && (this.loadTimeStamps.push(e.window.performance.now()), this.saveCanvasCopy());\n }\n renderLayer(e, t, i, o) {\n i.isHidden(this.transform.zoom) || (\"background\" === i.type || \"sky\" === i.type || \"custom\" === i.type || o && o.length) && (this.id = i.id, this.gpuTimingStart(i), (!e.transform.projection.unsupportedLayers || !e.transform.projection.unsupportedLayers.includes(i.type) || e.terrain && \"custom\" === i.type) && Oo[i.type](e, t, i, o, this.style.placement.variableOffsets, this.options.isInitialLoad), this.gpuTimingEnd());\n }\n gpuTimingStart(e) {\n if (!this.options.gpuTiming) return;\n const t = this.context.extTimerQuery;\n let i = this.gpuTimers[e.id];\n i || (i = this.gpuTimers[e.id] = {\n calls: 0,\n cpuTime: 0,\n query: t.createQueryEXT()\n }), i.calls++, t.beginQueryEXT(t.TIME_ELAPSED_EXT, i.query);\n }\n gpuTimingDeferredRenderStart() {\n if (this.options.gpuTimingDeferredRender) {\n const e = this.context.extTimerQuery,\n t = e.createQueryEXT();\n this.deferredRenderGpuTimeQueries.push(t), e.beginQueryEXT(e.TIME_ELAPSED_EXT, t);\n }\n }\n gpuTimingDeferredRenderEnd() {\n if (!this.options.gpuTimingDeferredRender) return;\n const e = this.context.extTimerQuery;\n e.endQueryEXT(e.TIME_ELAPSED_EXT);\n }\n gpuTimingEnd() {\n if (!this.options.gpuTiming) return;\n const e = this.context.extTimerQuery;\n e.endQueryEXT(e.TIME_ELAPSED_EXT);\n }\n collectGpuTimers() {\n const e = this.gpuTimers;\n return this.gpuTimers = {}, e;\n }\n collectDeferredRenderGpuQueries() {\n const e = this.deferredRenderGpuTimeQueries;\n return this.deferredRenderGpuTimeQueries = [], e;\n }\n queryGpuTimers(e) {\n const t = {};\n for (const i in e) {\n const o = e[i],\n r = this.context.extTimerQuery,\n n = r.getQueryObjectEXT(o.query, r.QUERY_RESULT_EXT) / 1e6;\n r.deleteQueryEXT(o.query), t[i] = n;\n }\n return t;\n }\n queryGpuTimeDeferredRender(e) {\n if (!this.options.gpuTimingDeferredRender) return 0;\n const t = this.context.extTimerQuery;\n let i = 0;\n for (const o of e) i += t.getQueryObjectEXT(o, t.QUERY_RESULT_EXT) / 1e6, t.deleteQueryEXT(o);\n return i;\n }\n translatePosMatrix(t, i, o, r, n) {\n if (!o[0] && !o[1]) return t;\n const s = n ? \"map\" === r ? this.transform.angle : 0 : \"viewport\" === r ? -this.transform.angle : 0;\n if (s) {\n const e = Math.sin(s),\n t = Math.cos(s);\n o = [o[0] * t - o[1] * e, o[0] * e + o[1] * t];\n }\n const a = [n ? o[0] : D(i, o[0], this.transform.zoom), n ? o[1] : D(i, o[1], this.transform.zoom), 0],\n l = new Float32Array(16);\n return e.translate(l, t, a), l;\n }\n saveTileTexture(e) {\n const t = this._tileTextures[e.size[0]];\n t ? t.push(e) : this._tileTextures[e.size[0]] = [e];\n }\n getTileTexture(e) {\n const t = this._tileTextures[e];\n return t && t.length > 0 ? t.pop() : null;\n }\n isPatternMissing(e) {\n return null === e || void 0 !== e && !this.imageManager.getPattern(e.toString());\n }\n terrainRenderModeElevated() {\n return this.style && !!this.style.getTerrain() && !!this.terrain && !this.terrain.renderingToTexture;\n }\n currentGlobalDefines() {\n const e = this.terrain && this.terrain.renderingToTexture,\n t = this.terrain && 0 === this.terrain.exaggeration(),\n i = this.style && this.style.fog,\n o = [];\n return this.terrainRenderModeElevated() && o.push(\"TERRAIN\"), \"globe\" === this.transform.projection.name && o.push(\"GLOBE\"), t && o.push(\"ZERO_EXAGGERATION\"), i && !e && 0 !== i.getOpacity(this.transform.pitch) && o.push(\"FOG\"), e && o.push(\"RENDER_TO_TEXTURE\"), this._showOverdrawInspector && o.push(\"OVERDRAW_INSPECTOR\"), o;\n }\n useProgram(e, t, i) {\n this.cache = this.cache || {};\n const o = i || [],\n r = this.currentGlobalDefines().concat(o),\n n = Li.cacheKey(ci[e], e, r, t);\n return this.cache[n] || (this.cache[n] = new Li(this.context, e, ci[e], t, so[e], r)), this.cache[n];\n }\n setCustomLayerDefaults() {\n this.context.unbindVAO(), this.context.cullFace.setDefault(), this.context.frontFace.setDefault(), this.context.cullFaceSide.setDefault(), this.context.activeTexture.setDefault(), this.context.pixelStoreUnpack.setDefault(), this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(), this.context.pixelStoreUnpackFlipY.setDefault();\n }\n setBaseState() {\n const e = this.context.gl;\n this.context.cullFace.set(!1), this.context.viewport.set([0, 0, this.width, this.height]), this.context.blendEquation.set(e.FUNC_ADD);\n }\n initDebugOverlayCanvas() {\n null == this.debugOverlayCanvas && (this.debugOverlayCanvas = e.window.document.createElement(\"canvas\"), this.debugOverlayCanvas.width = 512, this.debugOverlayCanvas.height = 512, this.debugOverlayTexture = new e.Texture(this.context, this.debugOverlayCanvas, this.context.gl.RGBA));\n }\n destroy() {\n this._terrain && this._terrain.destroy(), this.globeSharedBuffers && this.globeSharedBuffers.destroy(), this.emptyTexture.destroy(), this.debugOverlayTexture && this.debugOverlayTexture.destroy(), this.atmosphereBuffer && this.atmosphereBuffer.destroy();\n }\n prepareDrawTile() {\n this.terrain && this.terrain.prepareDrawTile();\n }\n prepareDrawProgram(t, i, o) {\n if (this.terrain && this.terrain.renderingToTexture) return;\n const r = this.style.fog;\n if (r) {\n const n = r.getOpacity(this.transform.pitch),\n s = ((t, i, o, r, n, s, a, l, c, h, u) => {\n const _ = t.transform,\n d = i.properties.get(\"color\").toArray01();\n d[3] = r;\n const p = t.frameCounter / 1e3 % 1;\n return {\n u_fog_matrix: o ? _.calculateFogTileMatrix(o) : t.identityMat,\n u_fog_range: i.getFovAdjustedRange(_._fov),\n u_fog_color: d,\n u_fog_horizon_blend: i.properties.get(\"horizon-blend\"),\n u_fog_temporal_offset: p,\n u_frustum_tl: n,\n u_frustum_tr: s,\n u_frustum_br: a,\n u_frustum_bl: l,\n u_globe_pos: c,\n u_globe_radius: h,\n u_viewport: u,\n u_globe_transition: e.globeToMercatorTransition(_.zoom),\n u_is_globe: +(\"globe\" === _.projection.name)\n };\n })(this, r, o, n, this.transform.frustumCorners.TL, this.transform.frustumCorners.TR, this.transform.frustumCorners.BR, this.transform.frustumCorners.BL, this.transform.globeCenterInViewSpace, this.transform.globeRadius, [this.transform.width * e.exported.devicePixelRatio, this.transform.height * e.exported.devicePixelRatio]);\n i.setFogUniformValues(t, s);\n }\n }\n setTileLoadedFlag(e) {\n this.tileLoaded = e;\n }\n saveCanvasCopy() {\n const e = this.canvasCopy();\n e && (this.frameCopies.push(e), this.tileLoaded = !1);\n }\n canvasCopy() {\n const e = this.context.gl,\n t = e.createTexture();\n return e.bindTexture(e.TEXTURE_2D, t), e.copyTexImage2D(e.TEXTURE_2D, 0, e.RGBA, 0, 0, e.drawingBufferWidth, e.drawingBufferHeight, 0), t;\n }\n getCanvasCopiesAndTimestamps() {\n return {\n canvasCopies: this.frameCopies,\n timeStamps: this.loadTimeStamps\n };\n }\n averageElevationNeedsEasing() {\n if (!this.transform._elevation) return !1;\n const e = this.style && this.style.fog;\n return !!e && 0 !== e.getOpacity(this.transform.pitch);\n }\n getBackgroundTiles() {\n const t = this._backgroundTiles,\n i = this._backgroundTiles = {},\n o = this.transform.coveringTiles({\n tileSize: 512\n });\n for (const r of o) i[r.key] = t[r.key] || new e.Tile(r, 512, this.transform.tileZoom, this);\n return i;\n }\n clearBackgroundTiles() {\n this._backgroundTiles = {};\n }\n }\n class ko {\n constructor(e = 0, t = 0, i = 0, o = 0) {\n if (isNaN(e) || e < 0 || isNaN(t) || t < 0 || isNaN(i) || i < 0 || isNaN(o) || o < 0) throw new Error(\"Invalid value for edge-insets, top, bottom, left and right must all be numbers\");\n this.top = e, this.bottom = t, this.left = i, this.right = o;\n }\n interpolate(t, i, o) {\n return null != i.top && null != t.top && (this.top = e.number(t.top, i.top, o)), null != i.bottom && null != t.bottom && (this.bottom = e.number(t.bottom, i.bottom, o)), null != i.left && null != t.left && (this.left = e.number(t.left, i.left, o)), null != i.right && null != t.right && (this.right = e.number(t.right, i.right, o)), this;\n }\n getCenter(t, i) {\n const o = e.clamp((this.left + t - this.right) / 2, 0, t),\n r = e.clamp((this.top + i - this.bottom) / 2, 0, i);\n return new e.Point(o, r);\n }\n equals(e) {\n return this.top === e.top && this.bottom === e.bottom && this.left === e.left && this.right === e.right;\n }\n clone() {\n return new ko(this.top, this.bottom, this.left, this.right);\n }\n toJSON() {\n return {\n top: this.top,\n bottom: this.bottom,\n left: this.left,\n right: this.right\n };\n }\n }\n function Fo(t, i) {\n const o = e.getColumn(t, 3);\n e.fromQuat(t, i), e.setColumn(t, 3, o);\n }\n function Uo(t, i) {\n const o = e.identity$1([]);\n return e.rotateZ$1(o, o, -i), e.rotateX$1(o, o, -t), o;\n }\n function No(t, i) {\n const o = [t[0], t[1], 0],\n r = [i[0], i[1], 0];\n if (e.length(o) >= 1e-15) {\n const t = e.normalize([], o);\n e.scale$2(r, t, e.dot(r, t)), i[0] = r[0], i[1] = r[1];\n }\n const n = e.cross([], i, t);\n if (e.len(n) < 1e-15) return null;\n const s = Math.atan2(-n[1], n[0]);\n return Uo(Math.atan2(Math.sqrt(t[0] * t[0] + t[1] * t[1]), -t[2]), s);\n }\n class jo {\n constructor(e, t) {\n this.position = e, this.orientation = t;\n }\n get position() {\n return this._position;\n }\n set position(t) {\n if (t) {\n const i = t instanceof e.MercatorCoordinate ? t : new e.MercatorCoordinate(t[0], t[1], t[2]);\n this._renderWorldCopies && (i.x = e.wrap(i.x, 0, 1)), this._position = i;\n } else this._position = null;\n }\n lookAtPoint(t, i) {\n if (this.orientation = null, !this.position) return;\n const o = this.position,\n r = this._elevation ? this._elevation.getAtPointOrZero(e.MercatorCoordinate.fromLngLat(t)) : 0,\n n = e.MercatorCoordinate.fromLngLat(t, r),\n s = [n.x - o.x, n.y - o.y, n.z - o.z];\n i || (i = [0, 0, 1]), i[2] = Math.abs(i[2]), this.orientation = No(s, i);\n }\n setPitchBearing(t, i) {\n this.orientation = Uo(e.degToRad(t), e.degToRad(-i));\n }\n }\n class Go {\n constructor(t, i) {\n this._transform = e.identity([]), this.orientation = i, this.position = t;\n }\n get mercatorPosition() {\n const t = this.position;\n return new e.MercatorCoordinate(t[0], t[1], t[2]);\n }\n get position() {\n const t = e.getColumn(this._transform, 3);\n return [t[0], t[1], t[2]];\n }\n set position(t) {\n var i;\n t && e.setColumn(this._transform, 3, [(i = t)[0], i[1], i[2], 1]);\n }\n get orientation() {\n return this._orientation;\n }\n set orientation(t) {\n this._orientation = t || e.identity$1([]), t && Fo(this._transform, this._orientation);\n }\n getPitchBearing() {\n const e = this.forward(),\n t = this.right();\n return {\n bearing: Math.atan2(-t[1], t[0]),\n pitch: Math.atan2(Math.sqrt(e[0] * e[0] + e[1] * e[1]), -e[2])\n };\n }\n setPitchBearing(e, t) {\n this._orientation = Uo(e, t), Fo(this._transform, this._orientation);\n }\n forward() {\n const t = e.getColumn(this._transform, 2);\n return [-t[0], -t[1], -t[2]];\n }\n up() {\n const t = e.getColumn(this._transform, 1);\n return [-t[0], -t[1], -t[2]];\n }\n right() {\n const t = e.getColumn(this._transform, 0);\n return [t[0], t[1], t[2]];\n }\n getCameraToWorld(t, i) {\n const o = new Float64Array(16);\n return e.invert(o, this.getWorldToCamera(t, i)), o;\n }\n getWorldToCameraPosition(t, i, o) {\n const r = this.position;\n e.scale$2(r, r, -t);\n const n = new Float64Array(16);\n return e.fromScaling(n, [o, o, o]), e.translate(n, n, r), n[10] *= i, n;\n }\n getWorldToCamera(t, i) {\n const o = new Float64Array(16),\n r = new Float64Array(4),\n n = this.position;\n return e.conjugate(r, this._orientation), e.scale$2(n, n, -t), e.fromQuat(o, r), e.translate(o, o, n), o[1] *= -1, o[5] *= -1, o[9] *= -1, o[13] *= -1, o[8] *= i, o[9] *= i, o[10] *= i, o[11] *= i, o;\n }\n getCameraToClipPerspective(t, i, o, r) {\n const n = new Float64Array(16);\n return e.perspective(n, t, i, o, r), n;\n }\n getDistanceToElevation(t, i = !1) {\n const o = 0 === t ? 0 : e.mercatorZfromAltitude(t, i ? e.latFromMercatorY(this.position[1]) : this.position[1]),\n r = this.forward();\n return (o - this.position[2]) / r[2];\n }\n clone() {\n return new Go([...this.position], [...this.orientation]);\n }\n }\n function Zo(t, i) {\n const o = Wo(t.projection, t.zoom, t.width, t.height),\n r = function (t, i, o, r, n) {\n const s = new e.LngLat(o.lng - 180 * Xo, o.lat),\n a = new e.LngLat(o.lng + 180 * Xo, o.lat),\n l = t.project(s.lng, s.lat),\n c = t.project(a.lng, a.lat),\n h = -Math.atan2(c.y - l.y, c.x - l.x),\n u = e.MercatorCoordinate.fromLngLat(o);\n u.y = e.clamp(u.y, -1 + Xo, 1 - Xo);\n const _ = u.toLngLat(),\n d = t.project(_.lng, _.lat),\n p = e.MercatorCoordinate.fromLngLat(_);\n p.x += Xo;\n const m = p.toLngLat(),\n f = t.project(m.lng, m.lat),\n g = $o(f.x - d.x, f.y - d.y, h),\n v = e.MercatorCoordinate.fromLngLat(_);\n v.y += Xo;\n const x = v.toLngLat(),\n y = t.project(x.lng, x.lat),\n b = $o(y.x - d.x, y.y - d.y, h),\n w = Math.abs(g.x) / Math.abs(b.y),\n T = e.identity([]);\n e.rotateZ(T, T, -h * (1 - (n ? 0 : r)));\n const E = e.identity([]);\n return e.scale(E, E, [1, 1 - (1 - w) * r, 1]), E[4] = -b.x / b.y * r, e.rotateZ(E, E, h), e.multiply(E, T, E), E;\n }(t.projection, 0, t.center, o, i),\n n = Vo(t);\n return e.scale(r, r, [n, n, 1]), r;\n }\n function Vo(t) {\n const i = t.projection,\n o = Wo(t.projection, t.zoom, t.width, t.height),\n r = qo(i, t.center),\n n = qo(i, e.LngLat.convert(i.center));\n return Math.pow(2, r * o + (1 - o) * n);\n }\n function Wo(t, i, o, r, n = 1 / 0) {\n const s = t.range;\n if (!s) return 0;\n const a = Math.min(n, Math.max(o, r)),\n l = Math.log(a / 1024) / Math.LN2;\n return e.smoothstep(s[0] + l, s[1] + l, i);\n }\n const Xo = 1 / 4e4;\n function qo(t, i) {\n const o = e.clamp(i.lat, -e.MAX_MERCATOR_LATITUDE, e.MAX_MERCATOR_LATITUDE),\n r = new e.LngLat(i.lng - 180 * Xo, o),\n n = new e.LngLat(i.lng + 180 * Xo, o),\n s = t.project(r.lng, o),\n a = t.project(n.lng, o),\n l = e.MercatorCoordinate.fromLngLat(r),\n c = e.MercatorCoordinate.fromLngLat(n),\n h = a.x - s.x,\n u = a.y - s.y,\n _ = c.x - l.x,\n d = c.y - l.y,\n p = Math.sqrt((_ * _ + d * d) / (h * h + u * u));\n return Math.log(p) / Math.LN2;\n }\n function $o(e, t, i) {\n const o = Math.cos(i),\n r = Math.sin(i);\n return {\n x: e * o - t * r,\n y: e * r + t * o\n };\n }\n class Ho {\n constructor(t, i, o, r, n, s, a) {\n this.tileSize = 512, this._renderWorldCopies = void 0 === n || n, this._minZoom = t || 0, this._maxZoom = i || 22, this._minPitch = null == o ? 0 : o, this._maxPitch = null == r ? 60 : r, this.setProjection(s), this.setMaxBounds(a), this.width = 0, this.height = 0, this._center = new e.LngLat(0, 0), this.zoom = 0, this.angle = 0, this._fov = .6435011087932844, this._pitch = 0, this._nearZ = 0, this._farZ = 0, this._unmodified = !0, this._edgeInsets = new ko(), this._projMatrixCache = {}, this._alignedProjMatrixCache = {}, this._fogTileMatrixCache = {}, this._distanceTileDataCache = {}, this._camera = new Go(), this._centerAltitude = 0, this._averageElevation = 0, this.cameraElevationReference = \"ground\", this._pixelsPerMercatorPixel = 1, this.globeRadius = 0, this.globeCenterInViewSpace = [0, 0, 0], this._horizonShift = .1;\n }\n clone() {\n const e = new Ho(this._minZoom, this._maxZoom, this._minPitch, this.maxPitch, this._renderWorldCopies, this.getProjection());\n return e._elevation = this._elevation, e._centerAltitude = this._centerAltitude, e._centerAltitudeValidForExaggeration = this._centerAltitudeValidForExaggeration, e.tileSize = this.tileSize, e.mercatorFromTransition = this.mercatorFromTransition, e.width = this.width, e.height = this.height, e.cameraElevationReference = this.cameraElevationReference, e._center = this._center, e._setZoom(this.zoom), e._seaLevelZoom = this._seaLevelZoom, e.angle = this.angle, e._fov = this._fov, e._pitch = this._pitch, e._nearZ = this._nearZ, e._farZ = this._farZ, e._averageElevation = this._averageElevation, e._unmodified = this._unmodified, e._edgeInsets = this._edgeInsets.clone(), e._camera = this._camera.clone(), e._calcMatrices(), e.freezeTileCoverage = this.freezeTileCoverage, e.frustumCorners = this.frustumCorners, e;\n }\n get elevation() {\n return this._elevation;\n }\n set elevation(e) {\n this._elevation !== e && (this._elevation = e, this._updateCameraOnTerrain(), this._calcMatrices());\n }\n updateElevation(e, t = !1) {\n const i = this._elevation && this._elevation.exaggeration() !== this._centerAltitudeValidForExaggeration;\n (null == this._seaLevelZoom || i) && this._updateCameraOnTerrain(), (e || i) && this._constrainCamera(t), this._calcMatrices();\n }\n getProjection() {\n return e.pick(this.projection, [\"name\", \"center\", \"parallels\"]);\n }\n setProjection(i) {\n this.projectionOptions = i || {\n name: \"mercator\"\n };\n const o = this.projection ? this.getProjection() : void 0;\n this.projection = e.getProjection(this.projectionOptions);\n const r = !t(o, this.getProjection());\n return r && this._calcMatrices(), this.mercatorFromTransition = !1, r;\n }\n setMercatorFromTransition() {\n const t = this.projection.name;\n this.mercatorFromTransition = !0, this.projectionOptions = {\n name: \"mercator\"\n }, this.projection = e.getProjection({\n name: \"mercator\"\n });\n const i = t !== this.projection.name;\n return i && this._calcMatrices(), i;\n }\n get minZoom() {\n return this._minZoom;\n }\n set minZoom(e) {\n this._minZoom !== e && (this._minZoom = e, this.zoom = Math.max(this.zoom, e));\n }\n get maxZoom() {\n return this._maxZoom;\n }\n set maxZoom(e) {\n this._maxZoom !== e && (this._maxZoom = e, this.zoom = Math.min(this.zoom, e));\n }\n get minPitch() {\n return this._minPitch;\n }\n set minPitch(e) {\n this._minPitch !== e && (this._minPitch = e, this.pitch = Math.max(this.pitch, e));\n }\n get maxPitch() {\n return this._maxPitch;\n }\n set maxPitch(e) {\n this._maxPitch !== e && (this._maxPitch = e, this.pitch = Math.min(this.pitch, e));\n }\n get renderWorldCopies() {\n return this._renderWorldCopies && !0 === this.projection.supportsWorldCopies;\n }\n set renderWorldCopies(e) {\n void 0 === e ? e = !0 : null === e && (e = !1), this._renderWorldCopies = e;\n }\n get worldSize() {\n return this.tileSize * this.scale;\n }\n get cameraWorldSizeForFog() {\n const e = Math.max(this._camera.getDistanceToElevation(this._averageElevation), Number.EPSILON);\n return this._worldSizeFromZoom(this._zoomFromMercatorZ(e));\n }\n get cameraWorldSize() {\n const e = Math.max(this._camera.getDistanceToElevation(this._averageElevation, !0), Number.EPSILON);\n return this._worldSizeFromZoom(this._zoomFromMercatorZ(e));\n }\n get pixelsPerMeter() {\n return this.projection.pixelsPerMeter(this.center.lat, this.worldSize);\n }\n get cameraPixelsPerMeter() {\n return e.mercatorZfromAltitude(this.center.lat, this.cameraWorldSizeForFog);\n }\n get centerOffset() {\n return this.centerPoint._sub(this.size._div(2));\n }\n get size() {\n return new e.Point(this.width, this.height);\n }\n get bearing() {\n return e.wrap(this.rotation, -180, 180);\n }\n set bearing(e) {\n this.rotation = e;\n }\n get rotation() {\n return -this.angle / Math.PI * 180;\n }\n set rotation(t) {\n const i = -t * Math.PI / 180;\n var o;\n this.angle !== i && (this._unmodified = !1, this.angle = i, this._calcMatrices(), this.rotationMatrix = (o = new e.ARRAY_TYPE(4), e.ARRAY_TYPE != Float32Array && (o[1] = 0, o[2] = 0), o[0] = 1, o[3] = 1, o), function (e, t, i) {\n var o = t[0],\n r = t[1],\n n = t[2],\n s = t[3],\n a = Math.sin(i),\n l = Math.cos(i);\n e[0] = o * l + n * a, e[1] = r * l + s * a, e[2] = o * -a + n * l, e[3] = r * -a + s * l;\n }(this.rotationMatrix, this.rotationMatrix, this.angle));\n }\n get pitch() {\n return this._pitch / Math.PI * 180;\n }\n set pitch(t) {\n const i = e.clamp(t, this.minPitch, this.maxPitch) / 180 * Math.PI;\n this._pitch !== i && (this._unmodified = !1, this._pitch = i, this._calcMatrices());\n }\n get aspect() {\n return this.width / this.height;\n }\n get fov() {\n return this._fov / Math.PI * 180;\n }\n get fovX() {\n return this._fov;\n }\n get fovY() {\n const e = 1 / Math.tan(.5 * this.fovX);\n return 2 * Math.atan(1 / this.aspect / e);\n }\n set fov(t) {\n t = Math.max(.01, Math.min(60, t)), this._fov !== t && (this._unmodified = !1, this._fov = e.degToRad(t), this._calcMatrices());\n }\n get averageElevation() {\n return this._averageElevation;\n }\n set averageElevation(e) {\n this._averageElevation = e, this._calcFogMatrices(), this._distanceTileDataCache = {};\n }\n get zoom() {\n return this._zoom;\n }\n set zoom(e) {\n const t = Math.min(Math.max(e, this.minZoom), this.maxZoom);\n this._zoom !== t && (this._unmodified = !1, this._setZoom(t), this._updateSeaLevelZoom(), this._constrain(), this._calcMatrices());\n }\n _setZoom(e) {\n this._zoom = e, this.scale = this.zoomScale(e), this.tileZoom = Math.floor(e), this.zoomFraction = e - this.tileZoom;\n }\n _updateCameraOnTerrain() {\n if (!this._elevation || !this._elevation.isDataAvailableAtPoint(this.locationCoordinate(this.center))) return this._centerAltitude = 0, this._seaLevelZoom = null, void (this._centerAltitudeValidForExaggeration = void 0);\n const e = this._elevation;\n this._centerAltitude = e.getAtPointOrZero(this.locationCoordinate(this.center)), this._centerAltitudeValidForExaggeration = e.exaggeration(), this._updateSeaLevelZoom();\n }\n _updateSeaLevelZoom() {\n void 0 !== this._centerAltitudeValidForExaggeration && (this._seaLevelZoom = this._zoomFromMercatorZ((this.pixelsPerMeter * this._centerAltitude + this.cameraToCenterDistance) / this.worldSize));\n }\n sampleAverageElevation() {\n if (!this._elevation) return 0;\n const t = this._elevation,\n i = [[.5, .2], [.3, .5], [.5, .5], [.7, .5], [.5, .8]],\n o = this.horizonLineFromTop();\n let r = 0,\n n = 0;\n for (let s = 0; s < i.length; s++) {\n const a = new e.Point(i[s][0] * this.width, o + i[s][1] * (this.height - o)),\n l = t.pointCoordinate(a);\n if (!l) continue;\n const c = 1 / Math.hypot(l[0] - this._camera.position[0], l[1] - this._camera.position[1]);\n r += l[3] * c, n += c;\n }\n return 0 === n ? NaN : r / n;\n }\n get center() {\n return this._center;\n }\n set center(e) {\n e.lat === this._center.lat && e.lng === this._center.lng || (this._unmodified = !1, this._center = e, this._terrainEnabled() && (\"ground\" === this.cameraElevationReference ? this._updateCameraOnTerrain() : this._updateZoomFromElevation()), this._constrain(), this._calcMatrices());\n }\n _updateZoomFromElevation() {\n if (null == this._seaLevelZoom || !this._elevation) return;\n const e = this._seaLevelZoom,\n t = this._elevation.getAtPointOrZero(this.locationCoordinate(this.center)),\n i = this.pixelsPerMeter / this.worldSize * t,\n o = this._mercatorZfromZoom(e),\n r = this._mercatorZfromZoom(this._maxZoom),\n n = Math.max(o - i, r);\n this._setZoom(this._zoomFromMercatorZ(n));\n }\n get padding() {\n return this._edgeInsets.toJSON();\n }\n set padding(e) {\n this._edgeInsets.equals(e) || (this._unmodified = !1, this._edgeInsets.interpolate(this._edgeInsets, e, 1), this._calcMatrices());\n }\n computeZoomRelativeTo(t) {\n const i = this.rayIntersectionCoordinate(this.pointRayIntersection(this.centerPoint, t.toAltitude()));\n let o;\n o = t.z < this._camera.position[2] ? [i.x, i.y, i.z] : [t.x, t.y, t.z];\n const r = e.length(e.sub([], this._camera.position, o));\n return e.clamp(this._zoomFromMercatorZ(r), this._minZoom, this._maxZoom);\n }\n setFreeCameraOptions(t) {\n if (!this.height) return;\n if (!t.position && !t.orientation) return;\n this._updateCameraState();\n let i = !1;\n if (t.orientation && !e.exactEquals(t.orientation, this._camera.orientation) && (i = this._setCameraOrientation(t.orientation)), t.position) {\n const o = [t.position.x, t.position.y, t.position.z];\n e.exactEquals$1(o, this._camera.position) || (this._setCameraPosition(o), i = !0);\n }\n i && (this._updateStateFromCamera(), this.recenterOnTerrain());\n }\n getFreeCameraOptions() {\n this._updateCameraState();\n const t = this._camera.position,\n i = new jo();\n return i.position = new e.MercatorCoordinate(t[0], t[1], t[2]), i.orientation = this._camera.orientation, i._elevation = this.elevation, i._renderWorldCopies = this.renderWorldCopies, i;\n }\n _setCameraOrientation(t) {\n if (!e.length$1(t)) return !1;\n e.normalize$1(t, t);\n const i = e.transformQuat([], [0, 0, -1], t),\n o = e.transformQuat([], [0, -1, 0], t);\n if (o[2] < 0) return !1;\n const r = No(i, o);\n return !!r && (this._camera.orientation = r, !0);\n }\n _setCameraPosition(t) {\n const i = this.zoomScale(this.minZoom) * this.tileSize,\n o = this.zoomScale(this.maxZoom) * this.tileSize,\n r = this.cameraToCenterDistance;\n t[2] = e.clamp(t[2], r / o, r / i), this._camera.position = t;\n }\n get centerPoint() {\n return this._edgeInsets.getCenter(this.width, this.height);\n }\n get fovAboveCenter() {\n return this._fov * (.5 + this.centerOffset.y / this.height);\n }\n isPaddingEqual(e) {\n return this._edgeInsets.equals(e);\n }\n interpolatePadding(e, t, i) {\n this._unmodified = !1, this._edgeInsets.interpolate(e, t, i), this._constrain(), this._calcMatrices();\n }\n coveringZoomLevel(e) {\n const t = (e.roundZoom ? Math.round : Math.floor)(this.zoom + this.scaleZoom(this.tileSize / e.tileSize));\n return Math.max(0, t);\n }\n getVisibleUnwrappedCoordinates(t) {\n const i = [new e.UnwrappedTileID(0, t)];\n if (this.renderWorldCopies) {\n const o = this.pointCoordinate(new e.Point(0, 0)),\n r = this.pointCoordinate(new e.Point(this.width, 0)),\n n = this.pointCoordinate(new e.Point(this.width, this.height)),\n s = this.pointCoordinate(new e.Point(0, this.height)),\n a = Math.floor(Math.min(o.x, r.x, n.x, s.x)),\n l = Math.floor(Math.max(o.x, r.x, n.x, s.x)),\n c = 1;\n for (let o = a - c; o <= l + c; o++) 0 !== o && i.push(new e.UnwrappedTileID(o, t));\n }\n return i;\n }\n coveringTiles(t) {\n let i = this.coveringZoomLevel(t);\n const o = i,\n r = this.elevation && !t.isTerrainDEM,\n n = \"mercator\" === this.projection.name;\n if (void 0 !== t.minzoom && i < t.minzoom) return [];\n void 0 !== t.maxzoom && i > t.maxzoom && (i = t.maxzoom);\n const s = this.locationCoordinate(this.center),\n a = this.center.lat,\n l = 1 << i,\n c = [l * s.x, l * s.y, 0],\n h = \"globe\" === this.projection.name,\n u = !h,\n _ = e.Frustum.fromInvProjectionMatrix(this.invProjMatrix, this.worldSize, i, u),\n d = h ? this._camera.mercatorPosition : this.pointCoordinate(this.getCameraPoint()),\n p = l * e.mercatorZfromAltitude(1, this.center.lat),\n m = this._camera.position[2] / e.mercatorZfromAltitude(1, this.center.lat),\n f = [l * d.x, l * d.y, m * (u ? 1 : p)],\n g = this.cameraToCenterDistance / t.tileSize * (t.roundZoom ? 1 : .502),\n v = this.pitch <= 60 && this._edgeInsets.top <= this._edgeInsets.bottom && !this._elevation && !this.projection.isReprojectedInTileSpace ? i : 0,\n x = t.isTerrainDEM && this._elevation ? 1e4 * this._elevation.exaggeration() : this._centerAltitude,\n y = t.isTerrainDEM ? -x : this._elevation ? this._elevation.getMinElevationBelowMSL() : 0,\n b = this.projection.isReprojectedInTileSpace ? Vo(this) : 1,\n w = t => {\n const i = 1 / 4e4,\n o = new e.MercatorCoordinate(t.x + i, t.y, t.z),\n r = new e.MercatorCoordinate(t.x, t.y + i, t.z),\n n = t.toLngLat(),\n s = o.toLngLat(),\n a = r.toLngLat(),\n l = this.locationCoordinate(n),\n c = this.locationCoordinate(s),\n h = this.locationCoordinate(a),\n u = Math.hypot(c.x - l.x, c.y - l.y),\n _ = Math.hypot(h.x - l.x, h.y - l.y);\n return Math.sqrt(u * _) * b / i;\n },\n T = t => {\n const i = x,\n o = y;\n return {\n aabb: e.tileAABB(this, l, 0, 0, 0, t, o, i, this.projection),\n zoom: 0,\n x: 0,\n y: 0,\n minZ: o,\n maxZ: i,\n wrap: t,\n fullyVisible: !1\n };\n },\n E = [];\n let C = [];\n const M = i,\n I = t.reparseOverscaled ? o : i,\n P = e => e * e,\n S = P((m - this._centerAltitude) * p),\n D = e => {\n if (!this._elevation || !e.tileID || !n) return;\n const t = this._elevation.getMinMaxForTile(e.tileID),\n i = e.aabb;\n t ? (i.min[2] = t.min, i.max[2] = t.max, i.center[2] = (i.min[2] + i.max[2]) / 2) : (e.shouldSplit = L(e), e.shouldSplit || (i.min[2] = i.max[2] = i.center[2] = this._centerAltitude));\n },\n L = t => {\n if (t.zoom < v) return !0;\n if (t.zoom === M) return !1;\n if (null != t.shouldSplit) return t.shouldSplit;\n const i = t.aabb.distanceX(f),\n n = t.aabb.distanceY(f);\n let s = S,\n l = 1;\n if (h) {\n s = P(t.aabb.distanceZ(f));\n const i = Math.pow(2, t.zoom),\n o = e.latFromMercatorY((t.y + 1) / i),\n r = e.latFromMercatorY(t.y / i),\n n = Math.min(Math.max(a, o), r),\n c = e.circumferenceAtLatitude(n) / e.circumferenceAtLatitude(a);\n if (l = n === a ? 1 / Math.max(1, this._mercatorScaleRatio - .3) : Math.min(1, c / this._mercatorScaleRatio), this.zoom <= e.GLOBE_ZOOM_THRESHOLD_MIN && t.zoom === M - 1 && c >= .9) return !0;\n } else if (r && (s = P(t.aabb.distanceZ(f) * p)), this.projection.isReprojectedInTileSpace && o <= 5) {\n const i = Math.pow(2, t.zoom),\n o = w(new e.MercatorCoordinate((t.x + .5) / i, (t.y + .5) / i));\n l = o > .85 ? 1 : o;\n }\n const c = i * i + n * n + s,\n u = P((1 << M - t.zoom) * g * l * ((e, t) => {\n if (t * P(.707) < e) return 1;\n const i = Math.sqrt(t / e);\n return i / (1.4144271570014144 + (Math.pow(1.1, i - 1.4144271570014144 + 1) - 1) / (1.1 - 1) - 1);\n })(Math.max(s, S), c));\n return c < u;\n };\n if (this.renderWorldCopies) for (let e = 1; e <= 3; e++) E.push(T(-e)), E.push(T(e));\n for (E.push(T(0)); E.length > 0;) {\n const o = E.pop(),\n s = o.x,\n a = o.y;\n let u = o.fullyVisible;\n if (!u) {\n const e = o.aabb.intersects(_);\n if (0 === e) continue;\n u = 2 === e;\n }\n if (o.zoom !== M && L(o)) for (let t = 0; t < 4; t++) {\n const i = (s << 1) + t % 2,\n c = (a << 1) + (t >> 1),\n _ = {\n aabb: n ? o.aabb.quadrant(t) : e.tileAABB(this, l, o.zoom + 1, i, c, o.wrap, o.minZ, o.maxZ, this.projection),\n zoom: o.zoom + 1,\n x: i,\n y: c,\n wrap: o.wrap,\n fullyVisible: u,\n tileID: void 0,\n shouldSplit: void 0,\n minZ: o.minZ,\n maxZ: o.maxZ\n };\n r && !h && (_.tileID = new e.OverscaledTileID(o.zoom + 1 === M ? I : o.zoom + 1, o.wrap, o.zoom + 1, i, c), D(_)), E.push(_);\n } else {\n const r = o.zoom === M ? I : o.zoom;\n if (t.minzoom && t.minzoom > r) continue;\n const n = c[0] - (.5 + s + (o.wrap << o.zoom)) * (1 << i - o.zoom),\n l = c[1] - .5 - a,\n h = o.tileID ? o.tileID : new e.OverscaledTileID(r, o.wrap, o.zoom, s, a);\n C.push({\n tileID: h,\n distanceSq: n * n + l * l\n });\n }\n }\n if (this.fogCullDistSq) {\n const i = this.fogCullDistSq,\n o = this.horizonLineFromTop();\n C = C.filter(r => {\n const n = [0, 0, 0, 1],\n s = [e.EXTENT, e.EXTENT, 0, 1],\n a = this.calculateFogTileMatrix(r.tileID.toUnwrapped());\n e.transformMat4$1(n, n, a), e.transformMat4$1(s, s, a);\n const l = e.getAABBPointSquareDist(n, s);\n if (0 === l) return !0;\n let c = !1;\n const h = this._elevation;\n if (h && l > i && 0 !== o) {\n const i = this.calculateProjMatrix(r.tileID.toUnwrapped());\n let n;\n t.isTerrainDEM || (n = h.getMinMaxForTile(r.tileID)), n || (n = {\n min: y,\n max: x\n });\n const s = e.furthestTileCorner(this.rotation),\n a = [s[0] * e.EXTENT, s[1] * e.EXTENT, n.max];\n e.transformMat4(a, a, i), c = (1 - a[1]) * this.height * .5 < o;\n }\n return l < i || c;\n });\n }\n return C.sort((e, t) => e.distanceSq - t.distanceSq).map(e => e.tileID);\n }\n resize(e, t) {\n this.width = e, this.height = t, this.pixelsToGLUnits = [2 / e, -2 / t], this._constrain(), this._calcMatrices();\n }\n get unmodified() {\n return this._unmodified;\n }\n zoomScale(e) {\n return Math.pow(2, e);\n }\n scaleZoom(e) {\n return Math.log(e) / Math.LN2;\n }\n project(t) {\n const i = e.clamp(t.lat, -e.MAX_MERCATOR_LATITUDE, e.MAX_MERCATOR_LATITUDE),\n o = this.projection.project(t.lng, i);\n return new e.Point(o.x * this.worldSize, o.y * this.worldSize);\n }\n unproject(e) {\n return this.projection.unproject(e.x / this.worldSize, e.y / this.worldSize);\n }\n get point() {\n return this.project(this.center);\n }\n get pointMerc() {\n return this.point._div(this.worldSize);\n }\n get pixelsPerMeterRatio() {\n return this.pixelsPerMeter / e.mercatorZfromAltitude(1, this.center.lat) / this.worldSize;\n }\n setLocationAtPoint(t, i) {\n let o, r;\n const n = this.centerPoint;\n if (\"globe\" === this.projection.name) {\n const e = this.worldSize;\n o = (i.x - n.x) / e, r = (i.y - n.y) / e;\n } else {\n const e = this.pointCoordinate(i),\n t = this.pointCoordinate(n);\n o = e.x - t.x, r = e.y - t.y;\n }\n const s = this.locationCoordinate(t);\n this.setLocation(new e.MercatorCoordinate(s.x - o, s.y - r));\n }\n setLocation(e) {\n this.center = this.coordinateLocation(e), this.projection.wrap && (this.center = this.center.wrap());\n }\n locationPoint(e) {\n return this.projection.locationPoint(this, e);\n }\n locationPoint3D(e) {\n return this.projection.locationPoint(this, e, !0);\n }\n pointLocation(e) {\n return this.coordinateLocation(this.pointCoordinate(e));\n }\n pointLocation3D(e) {\n return this.coordinateLocation(this.pointCoordinate3D(e));\n }\n locationCoordinate(t, i) {\n const o = i ? e.mercatorZfromAltitude(i, t.lat) : void 0,\n r = this.projection.project(t.lng, t.lat);\n return new e.MercatorCoordinate(r.x, r.y, o);\n }\n coordinateLocation(e) {\n return this.projection.unproject(e.x, e.y);\n }\n pointRayIntersection(t, i) {\n const o = null != i ? i : this._centerAltitude,\n r = [t.x, t.y, 0, 1],\n n = [t.x, t.y, 1, 1];\n e.transformMat4$1(r, r, this.pixelMatrixInverse), e.transformMat4$1(n, n, this.pixelMatrixInverse);\n const s = n[3];\n e.scale$1(r, r, 1 / r[3]), e.scale$1(n, n, 1 / s);\n const a = r[2],\n l = n[2];\n return {\n p0: r,\n p1: n,\n t: a === l ? 0 : (o - a) / (l - a)\n };\n }\n screenPointToMercatorRay(t) {\n const i = [t.x, t.y, 0, 1],\n o = [t.x, t.y, 1, 1];\n return e.transformMat4$1(i, i, this.pixelMatrixInverse), e.transformMat4$1(o, o, this.pixelMatrixInverse), e.scale$1(i, i, 1 / i[3]), e.scale$1(o, o, 1 / o[3]), i[2] = e.mercatorZfromAltitude(i[2], this._center.lat) * this.worldSize, o[2] = e.mercatorZfromAltitude(o[2], this._center.lat) * this.worldSize, e.scale$1(i, i, 1 / this.worldSize), e.scale$1(o, o, 1 / this.worldSize), new e.Ray([i[0], i[1], i[2]], e.normalize([], e.sub([], o, i)));\n }\n rayIntersectionCoordinate(t) {\n const {\n p0: i,\n p1: o,\n t: r\n } = t,\n n = e.mercatorZfromAltitude(i[2], this._center.lat),\n s = e.mercatorZfromAltitude(o[2], this._center.lat);\n return new e.MercatorCoordinate(e.number(i[0], o[0], r) / this.worldSize, e.number(i[1], o[1], r) / this.worldSize, e.number(n, s, r));\n }\n pointCoordinate(e, t = this._centerAltitude) {\n return this.projection.pointCoordinate(this, e.x, e.y, t);\n }\n pointCoordinate3D(t) {\n if (!this.elevation) return this.pointCoordinate(t);\n let i = this.projection.pointCoordinate3D(this, t.x, t.y);\n if (i) return new e.MercatorCoordinate(i[0], i[1], i[2]);\n let o = 0,\n r = this.horizonLineFromTop();\n if (t.y > r) return this.pointCoordinate(t);\n const n = .02 * r,\n s = t.clone();\n for (let t = 0; t < 10 && r - o > n; t++) {\n s.y = e.number(o, r, .66);\n const t = this.projection.pointCoordinate3D(this, s.x, s.y);\n t ? (r = s.y, i = t) : o = s.y;\n }\n return i ? new e.MercatorCoordinate(i[0], i[1], i[2]) : this.pointCoordinate(t);\n }\n isPointAboveHorizon(e) {\n return this.projection.isPointAboveHorizon(this, e);\n }\n isPointOnSurface(t) {\n if (t.y < 0 || t.y > this.height || t.x < 0 || t.x > this.width) return !1;\n if (this.elevation || this.zoom >= e.GLOBE_ZOOM_THRESHOLD_MAX) return !this.isPointAboveHorizon(t);\n const i = this.pointCoordinate(t);\n return i.y >= 0 && i.y <= 1;\n }\n _coordinatePoint(t, i) {\n const o = i && this.elevation ? this.elevation.getAtPointOrZero(t, this._centerAltitude) : this._centerAltitude,\n r = [t.x * this.worldSize, t.y * this.worldSize, o + t.toAltitude(), 1];\n return e.transformMat4$1(r, r, this.pixelMatrix), r[3] > 0 ? new e.Point(r[0] / r[3], r[1] / r[3]) : new e.Point(Number.MAX_VALUE, Number.MAX_VALUE);\n }\n _getBoundsNonRectangular() {\n const {\n top: t,\n left: i\n } = this._edgeInsets,\n o = this.height - this._edgeInsets.bottom,\n r = this.width - this._edgeInsets.right,\n n = this.pointLocation3D(new e.Point(i, t)),\n s = this.pointLocation3D(new e.Point(r, t)),\n a = this.pointLocation3D(new e.Point(r, o)),\n l = this.pointLocation3D(new e.Point(i, o));\n let c = Math.min(n.lng, s.lng, a.lng, l.lng),\n h = Math.max(n.lng, s.lng, a.lng, l.lng),\n u = Math.min(n.lat, s.lat, a.lat, l.lat),\n _ = Math.max(n.lat, s.lat, a.lat, l.lat);\n const d = Math.pow(2, -this.zoom) / 16 * 270,\n p = \"globe\" === this.projection.name ? 1 : 4,\n m = (t, i, o, r, n) => {\n const s = (t + o) / 2,\n a = (i + r) / 2,\n l = new e.Point(s, a),\n {\n lng: f,\n lat: g\n } = this.pointLocation3D(l),\n v = Math.max(0, c - f, u - g, f - h, g - _);\n c = Math.min(c, f), h = Math.max(h, f), u = Math.min(u, g), _ = Math.max(_, g), (n < p || v > d) && (m(t, i, s, a, n + 1), m(s, a, o, r, n + 1));\n };\n if (m(i, t, r, t, 1), m(r, t, r, o, 1), m(r, o, i, o, 1), m(i, o, i, t, 1), \"globe\" === this.projection.name) {\n const [t, i] = e.polesInViewport(this);\n t ? (_ = 90, h = 180, c = -180) : i && (u = -90, h = 180, c = -180);\n }\n return new e.LngLatBounds(new e.LngLat(c, u), new e.LngLat(h, _));\n }\n _getBoundsRectangular(t, i) {\n const {\n top: o,\n left: r\n } = this._edgeInsets,\n n = this.height - this._edgeInsets.bottom,\n s = this.width - this._edgeInsets.right,\n a = new e.Point(r, o),\n l = new e.Point(s, o),\n c = new e.Point(s, n),\n h = new e.Point(r, n);\n let u = this.pointCoordinate(a, t),\n _ = this.pointCoordinate(l, t);\n const d = this.pointCoordinate(c, i),\n p = this.pointCoordinate(h, i),\n m = (e, t) => (t.y - e.y) / (t.x - e.x);\n return u.y > 1 && _.y >= 0 ? u = new e.MercatorCoordinate((1 - p.y) / m(p, u) + p.x, 1) : u.y < 0 && _.y <= 1 && (u = new e.MercatorCoordinate(-p.y / m(p, u) + p.x, 0)), _.y > 1 && u.y >= 0 ? _ = new e.MercatorCoordinate((1 - d.y) / m(d, _) + d.x, 1) : _.y < 0 && u.y <= 1 && (_ = new e.MercatorCoordinate(-d.y / m(d, _) + d.x, 0)), new e.LngLatBounds().extend(this.coordinateLocation(u)).extend(this.coordinateLocation(_)).extend(this.coordinateLocation(p)).extend(this.coordinateLocation(d));\n }\n _getBoundsRectangularTerrain() {\n const e = this.elevation;\n if (!e.visibleDemTiles.length || e.isUsingMockSource()) return this._getBoundsRectangular(0, 0);\n const t = e.visibleDemTiles.reduce((e, t) => {\n if (t.dem) {\n const i = t.dem.tree;\n e.min = Math.min(e.min, i.minimums[0]), e.max = Math.max(e.max, i.maximums[0]);\n }\n return e;\n }, {\n min: Number.MAX_VALUE,\n max: 0\n });\n return this._getBoundsRectangular(t.min * e.exaggeration(), t.max * e.exaggeration());\n }\n getBounds() {\n return \"mercator\" === this.projection.name || \"equirectangular\" === this.projection.name ? this._terrainEnabled() ? this._getBoundsRectangularTerrain() : this._getBoundsRectangular(0, 0) : this._getBoundsNonRectangular();\n }\n horizonLineFromTop(e = !0) {\n const t = this.height / 2 / Math.tan(this._fov / 2) / Math.tan(Math.max(this._pitch, .1)) + this.centerOffset.y,\n i = this.height / 2 - t * (1 - this._horizonShift);\n return e ? Math.max(0, i) : i;\n }\n getMaxBounds() {\n return this.maxBounds;\n }\n setMaxBounds(t) {\n this.maxBounds = t, this.minLat = -e.MAX_MERCATOR_LATITUDE, this.maxLat = e.MAX_MERCATOR_LATITUDE, this.minLng = -180, this.maxLng = 180, t && (this.minLat = t.getSouth(), this.maxLat = t.getNorth(), this.minLng = t.getWest(), this.maxLng = t.getEast(), this.maxLng < this.minLng && (this.maxLng += 360)), this.worldMinX = e.mercatorXfromLng(this.minLng) * this.tileSize, this.worldMaxX = e.mercatorXfromLng(this.maxLng) * this.tileSize, this.worldMinY = e.mercatorYfromLat(this.maxLat) * this.tileSize, this.worldMaxY = e.mercatorYfromLat(this.minLat) * this.tileSize, this._constrain();\n }\n calculatePosMatrix(e, t) {\n return this.projection.createTileMatrix(this, t, e);\n }\n calculateDistanceTileData(t) {\n const i = t.key,\n o = this._distanceTileDataCache;\n if (o[i]) return o[i];\n const r = t.canonical,\n n = 1 / this.height,\n s = this.cameraWorldSize,\n a = s / this.zoomScale(r.z),\n l = (r.x + Math.pow(2, r.z) * t.wrap) * a,\n c = r.y * a,\n h = this.point;\n h.x *= s / this.worldSize, h.y *= s / this.worldSize;\n const u = this.angle,\n _ = Math.sin(-u),\n d = -Math.cos(-u);\n return o[i] = {\n bearing: [_, d],\n center: [(h.x - l) * n, (h.y - c) * n],\n scale: a / e.EXTENT * n\n }, o[i];\n }\n calculateFogTileMatrix(t) {\n const i = t.key,\n o = this._fogTileMatrixCache;\n if (o[i]) return o[i];\n const r = this.projection.createTileMatrix(this, this.cameraWorldSizeForFog, t);\n return e.multiply(r, this.worldToFogMatrix, r), o[i] = new Float32Array(r), o[i];\n }\n calculateProjMatrix(t, i = !1) {\n const o = t.key,\n r = i ? this._alignedProjMatrixCache : this._projMatrixCache;\n if (r[o]) return r[o];\n const n = this.calculatePosMatrix(t, this.worldSize);\n return e.multiply(n, this.projection.isReprojectedInTileSpace ? this.mercatorMatrix : i ? this.alignedProjMatrix : this.projMatrix, n), r[o] = new Float32Array(n), r[o];\n }\n calculatePixelsToTileUnitsMatrix(t) {\n const i = t.tileID.key,\n o = this._pixelsToTileUnitsCache;\n if (o[i]) return o[i];\n const r = function (t, i) {\n const {\n scale: o\n } = t.tileTransform,\n r = o * e.EXTENT / (t.tileSize * Math.pow(2, i.zoom - t.tileID.overscaledZ + t.tileID.canonical.z));\n return n = new Float32Array(4), l = (s = i.inverseAdjustmentMatrix)[1], c = s[2], h = s[3], _ = (a = [r, r])[1], n[0] = s[0] * (u = a[0]), n[1] = l * u, n[2] = c * _, n[3] = h * _, n;\n var n, s, a, l, c, h, u, _;\n }(t, this);\n return o[i] = r, o[i];\n }\n customLayerMatrix() {\n return this.mercatorMatrix.slice();\n }\n globeToMercatorMatrix() {\n if (\"globe\" === this.projection.name) {\n const t = 1 / this.worldSize,\n i = e.fromScaling([], [t, t, t]);\n return e.multiply(i, i, this.globeMatrix), i;\n }\n }\n recenterOnTerrain() {\n if (!this._elevation || \"globe\" === this.projection.name) return;\n const t = this._elevation;\n this._updateCameraState();\n const i = e.mercatorZfromAltitude(1, this._center.lat) * this.worldSize,\n o = this._computeCameraPosition(i),\n r = this._camera.forward(),\n n = e.mercatorZfromAltitude(1, this._center.lat);\n o[2] /= n, r[2] /= n, e.normalize(r, r);\n const s = t.raycast(o, r, t.exaggeration());\n if (s) {\n const t = e.scaleAndAdd([], o, r, s),\n i = new e.MercatorCoordinate(t[0], t[1], e.mercatorZfromAltitude(t[2], e.latFromMercatorY(t[1]))),\n a = (i.z + e.length([i.x - o[0], i.y - o[1], i.z - o[2] * n])) * this._pixelsPerMercatorPixel;\n this._seaLevelZoom = this._zoomFromMercatorZ(a), this._centerAltitude = i.toAltitude(), this._center = this.coordinateLocation(i), this._updateZoomFromElevation(), this._constrain(), this._calcMatrices();\n }\n }\n _constrainCamera(t = !1) {\n if (!this._elevation) return;\n const i = this._elevation,\n o = e.mercatorZfromAltitude(1, this._center.lat) * this.worldSize,\n r = this._computeCameraPosition(o),\n n = i.getAtPointOrZero(new e.MercatorCoordinate(...r)),\n s = this.pixelsPerMeter / this.worldSize * n,\n a = this._minimumHeightOverTerrain(),\n l = r[2] - s;\n if (l <= a) if (l < 0 || t) {\n const t = this.locationCoordinate(this._center, this._centerAltitude),\n i = [r[0], r[1], t.z - r[2]],\n o = e.length(i);\n i[2] -= (a - l) / this._pixelsPerMercatorPixel;\n const n = e.length(i);\n if (0 === n) return;\n e.scale$2(i, i, o / n * this._pixelsPerMercatorPixel), this._camera.position = [r[0], r[1], t.z * this._pixelsPerMercatorPixel - i[2]], this._updateStateFromCamera();\n } else this._isCameraConstrained = !0;\n }\n _constrain() {\n if (!this.center || !this.width || !this.height || this._constraining) return;\n this._constraining = !0;\n const t = \"globe\" === this.projection.name || this.mercatorFromTransition;\n if (this.projection.isReprojectedInTileSpace || t) {\n const i = this.center;\n return i.lat = e.clamp(i.lat, this.minLat, this.maxLat), (this.maxBounds || !this.renderWorldCopies && !t) && (i.lng = e.clamp(i.lng, this.minLng, this.maxLng)), this.center = i, void (this._constraining = !1);\n }\n const i = this._unmodified,\n {\n x: o,\n y: r\n } = this.point;\n let n = 0,\n s = o,\n a = r;\n const l = this.width / 2,\n c = this.height / 2,\n h = this.worldMinY * this.scale,\n u = this.worldMaxY * this.scale;\n if (r - c < h && (a = h + c), r + c > u && (a = u - c), u - h < this.height && (n = Math.max(n, this.height / (u - h)), a = (u + h) / 2), this.maxBounds || !this._renderWorldCopies || !this.projection.wrap) {\n const e = this.worldMinX * this.scale,\n t = this.worldMaxX * this.scale,\n i = this.worldSize / 2 - (e + t) / 2;\n s = (o + i + this.worldSize) % this.worldSize - i, s - l < e && (s = e + l), s + l > t && (s = t - l), t - e < this.width && (n = Math.max(n, this.width / (t - e)), s = (t + e) / 2);\n }\n s === o && a === r || (this.center = this.unproject(new e.Point(s, a))), n && (this.zoom += this.scaleZoom(n)), this._constrainCamera(), this._unmodified = i, this._constraining = !1;\n }\n _minZoomForBounds() {\n let e = Math.max(0, this.scaleZoom(this.height / (this.worldMaxY - this.worldMinY)));\n return this.maxBounds && (e = Math.max(e, this.scaleZoom(this.width / (this.worldMaxX - this.worldMinX)))), e;\n }\n _maxCameraBoundsDistance() {\n return this._mercatorZfromZoom(this._minZoomForBounds());\n }\n _calcMatrices() {\n if (!this.height) return;\n const t = this.centerOffset,\n i = this.pixelsPerMeter;\n \"globe\" === this.projection.name && (this._mercatorScaleRatio = e.mercatorZfromAltitude(1, this.center.lat) / e.mercatorZfromAltitude(1, e.GLOBE_SCALE_MATCH_LATITUDE));\n const o = Wo(this.projection, this.zoom, this.width, this.height, 1024);\n this._pixelsPerMercatorPixel = this.projection.pixelSpaceConversion(this.center.lat, this.worldSize, o), this.cameraToCenterDistance = .5 / Math.tan(.5 * this._fov) * this.height * this._pixelsPerMercatorPixel, this._updateCameraState(), this._farZ = this.projection.farthestPixelDistance(this), this._nearZ = this.height / 50;\n const r = \"meters\" === this.projection.zAxisUnit ? i : 1,\n n = this._camera.getWorldToCamera(this.worldSize, r),\n s = this._camera.getCameraToClipPerspective(this._fov, this.width / this.height, this._nearZ, this._farZ);\n s[8] = 2 * -t.x / this.width, s[9] = 2 * t.y / this.height;\n let a = e.mul([], s, n);\n if (this.projection.isReprojectedInTileSpace) {\n const t = this.locationCoordinate(this.center),\n i = e.identity([]);\n e.translate(i, i, [t.x * this.worldSize, t.y * this.worldSize, 0]), e.multiply(i, i, Zo(this)), e.translate(i, i, [-t.x * this.worldSize, -t.y * this.worldSize, 0]), e.multiply(a, a, i), this.inverseAdjustmentMatrix = function (e) {\n const t = Zo(e, !0);\n return v([], [t[0], t[1], t[4], t[5]]);\n }(this);\n } else this.inverseAdjustmentMatrix = [1, 0, 0, 1];\n this.mercatorMatrix = e.scale([], a, [this.worldSize, this.worldSize, this.worldSize / r, 1]), this.projMatrix = a, this.invProjMatrix = e.invert(new Float64Array(16), this.projMatrix);\n const l = e.invert([], s);\n this.frustumCorners = e.FrustumCorners.fromInvProjectionMatrix(l, this.horizonLineFromTop(), this.height);\n const c = new Float32Array(16);\n e.identity(c), e.scale(c, c, [1, -1, 1]), e.rotateX(c, c, this._pitch), e.rotateZ(c, c, this.angle);\n const h = e.perspective(new Float32Array(16), this._fov, this.width / this.height, this._nearZ, this._farZ),\n u = (Math.PI / 2 - this._pitch) * (this.height / this._fov) * this._horizonShift;\n h[8] = 2 * -t.x / this.width, h[9] = 2 * (t.y + u) / this.height, this.skyboxMatrix = e.multiply(c, h, c);\n const _ = this.point,\n d = _.x,\n p = _.y,\n m = this.width % 2 / 2,\n f = this.height % 2 / 2,\n g = Math.cos(this.angle),\n x = Math.sin(this.angle),\n y = d - Math.round(d) + g * m + x * f,\n b = p - Math.round(p) + g * f + x * m,\n w = new Float64Array(a);\n if (e.translate(w, w, [y > .5 ? y - 1 : y, b > .5 ? b - 1 : b, 0]), this.alignedProjMatrix = w, a = e.create(), e.scale(a, a, [this.width / 2, -this.height / 2, 1]), e.translate(a, a, [1, -1, 0]), this.labelPlaneMatrix = a, a = e.create(), e.scale(a, a, [1, -1, 1]), e.translate(a, a, [-1, -1, 0]), e.scale(a, a, [2 / this.width, 2 / this.height, 1]), this.glCoordMatrix = a, this.pixelMatrix = e.multiply(new Float64Array(16), this.labelPlaneMatrix, this.projMatrix), this._calcFogMatrices(), this._distanceTileDataCache = {}, a = e.invert(new Float64Array(16), this.pixelMatrix), !a) throw new Error(\"failed to invert matrix\");\n if (this.pixelMatrixInverse = a, \"globe\" === this.projection.name || this.mercatorFromTransition) {\n this.globeMatrix = e.calculateGlobeMatrix(this);\n const t = [this.globeMatrix[12], this.globeMatrix[13], this.globeMatrix[14]];\n this.globeCenterInViewSpace = e.transformMat4(t, t, n), this.globeRadius = this.worldSize / 2 / Math.PI - 1;\n } else this.globeMatrix = a;\n this._projMatrixCache = {}, this._alignedProjMatrixCache = {}, this._pixelsToTileUnitsCache = {};\n }\n _calcFogMatrices() {\n this._fogTileMatrixCache = {};\n const t = this.cameraWorldSizeForFog,\n i = this.cameraPixelsPerMeter,\n o = this._camera.position,\n r = 1 / this.height / this._pixelsPerMercatorPixel,\n n = [t, t, i];\n e.scale$2(n, n, r), e.scale$2(o, o, -1), e.multiply$2(o, o, n);\n const s = e.create();\n e.translate(s, s, o), e.scale(s, s, n), this.mercatorFogMatrix = s, this.worldToFogMatrix = this._camera.getWorldToCameraPosition(t, i, r);\n }\n _computeCameraPosition(e) {\n const t = (e = e || this.pixelsPerMeter) / this.pixelsPerMeter,\n i = this._camera.forward(),\n o = this.point,\n r = this._mercatorZfromZoom(this._seaLevelZoom ? this._seaLevelZoom : this._zoom) * t - e / this.worldSize * this._centerAltitude;\n return [o.x / this.worldSize - i[0] * r, o.y / this.worldSize - i[1] * r, e / this.worldSize * this._centerAltitude - i[2] * r];\n }\n _updateCameraState() {\n this.height && (this._camera.setPitchBearing(this._pitch, this.angle), this._camera.position = this._computeCameraPosition());\n }\n _translateCameraConstrained(t) {\n const i = this._maxCameraBoundsDistance() * Math.cos(this._pitch),\n o = this._camera.position[2],\n r = t[2];\n let n = 1;\n this.projection.wrap && (this.center = this.center.wrap()), r > 0 && (n = Math.min((i - o) / r, 1)), this._camera.position = e.scaleAndAdd([], this._camera.position, t, n), this._updateStateFromCamera();\n }\n _updateStateFromCamera() {\n const t = this._camera.position,\n i = this._camera.forward(),\n {\n pitch: o,\n bearing: r\n } = this._camera.getPitchBearing(),\n n = e.mercatorZfromAltitude(this._centerAltitude, this.center.lat) * this._pixelsPerMercatorPixel,\n s = this._mercatorZfromZoom(this._maxZoom) * Math.cos(e.degToRad(this._maxPitch)),\n a = Math.max((t[2] - n) / Math.cos(o), s),\n l = this._zoomFromMercatorZ(a);\n e.scaleAndAdd(t, t, i, a), this._pitch = e.clamp(o, e.degToRad(this.minPitch), e.degToRad(this.maxPitch)), this.angle = e.wrap(r, -Math.PI, Math.PI), this._setZoom(e.clamp(l, this._minZoom, this._maxZoom)), this._updateSeaLevelZoom(), this._center = this.coordinateLocation(new e.MercatorCoordinate(t[0], t[1], t[2])), this._unmodified = !1, this._constrain(), this._calcMatrices();\n }\n _worldSizeFromZoom(e) {\n return Math.pow(2, e) * this.tileSize;\n }\n _mercatorZfromZoom(e) {\n return this.cameraToCenterDistance / this._worldSizeFromZoom(e);\n }\n _minimumHeightOverTerrain() {\n const e = Math.min((null != this._seaLevelZoom ? this._seaLevelZoom : this._zoom) + 4, this._maxZoom);\n return this._mercatorZfromZoom(e);\n }\n _zoomFromMercatorZ(e) {\n return this.scaleZoom(this.cameraToCenterDistance / (e * this.tileSize));\n }\n zoomFromMercatorZAdjusted(t) {\n let i = 0,\n o = e.GLOBE_ZOOM_THRESHOLD_MAX,\n r = 0,\n n = 1 / 0;\n for (; o - i > 1e-6 && o > i;) {\n const e = i + .5 * (o - i),\n s = this.tileSize * Math.pow(2, e),\n a = this.getCameraToCenterDistance(this.projection, e, s),\n l = this.scaleZoom(a / (t * this.tileSize)),\n c = Math.abs(e - l);\n c < n && (n = c, r = e), e < l ? i = e : o = e;\n }\n return r;\n }\n _terrainEnabled() {\n return !(!this._elevation || !this.projection.supportsTerrain && (e.warnOnce(\"Terrain is not yet supported with alternate projections. Use mercator or globe to enable terrain.\"), 1));\n }\n anyCornerOffEdge(t, i) {\n const o = Math.min(t.x, i.x),\n r = Math.max(t.x, i.x),\n n = Math.min(t.y, i.y),\n s = Math.max(t.y, i.y);\n if (n < this.horizonLineFromTop(!1)) return !0;\n if (\"mercator\" !== this.projection.name) return !1;\n const a = [new e.Point(o, n), new e.Point(r, s), new e.Point(o, s), new e.Point(r, n)],\n l = this.renderWorldCopies ? -3 : 0,\n c = this.renderWorldCopies ? 4 : 1;\n for (const e of a) {\n const t = this.pointRayIntersection(e);\n if (t.t < 0) return !0;\n const i = this.rayIntersectionCoordinate(t);\n if (i.x < l || i.y < 0 || i.x > c || i.y > 1) return !0;\n }\n return !1;\n }\n isHorizonVisible() {\n return this.pitch + e.radToDeg(this.fovAboveCenter) > 88 || this.anyCornerOffEdge(new e.Point(0, 0), new e.Point(this.width, this.height));\n }\n zoomDeltaToMovement(t, i) {\n const o = e.length(e.sub([], this._camera.position, t)),\n r = this._zoomFromMercatorZ(o) + i;\n return o - this._mercatorZfromZoom(r);\n }\n getCameraPoint() {\n if (\"globe\" === this.projection.name) {\n const t = function ([t, i, o], r) {\n const n = [t, i, o, 1];\n e.transformMat4$1(n, n, r);\n const s = n[3] = Math.max(n[3], 1e-6);\n return n[0] /= s, n[1] /= s, n[2] /= s, n;\n }([this.globeMatrix[12], this.globeMatrix[13], this.globeMatrix[14]], this.pixelMatrix);\n return new e.Point(t[0], t[1]);\n }\n {\n const t = Math.tan(this._pitch) * (this.cameraToCenterDistance || 1);\n return this.centerPoint.add(new e.Point(0, t));\n }\n }\n getCameraToCenterDistance(e, t = this.zoom, i = this.worldSize) {\n const o = Wo(e, t, this.width, this.height, 1024),\n r = e.pixelSpaceConversion(this.center.lat, i, o);\n return .5 / Math.tan(.5 * this._fov) * this.height * r;\n }\n getWorldToCameraMatrix() {\n const t = this._camera.getWorldToCamera(this.worldSize, \"meters\" === this.projection.zAxisUnit ? this.pixelsPerMeter : 1);\n return \"globe\" === this.projection.name && e.multiply(t, t, this.globeMatrix), t;\n }\n }\n function Yo(e, t) {\n let i = !1,\n o = null;\n const r = () => {\n o = null, i && (e(), o = setTimeout(r, t), i = !1);\n };\n return () => (i = !0, o || r(), o);\n }\n class Ko {\n constructor(t) {\n this._hashName = t && encodeURIComponent(t), e.bindAll([\"_getCurrentHash\", \"_onHashChange\", \"_updateHash\"], this), this._updateHash = Yo(this._updateHashUnthrottled.bind(this), 300);\n }\n addTo(t) {\n return this._map = t, e.window.addEventListener(\"hashchange\", this._onHashChange, !1), t.on(\"moveend\", this._updateHash), this;\n }\n remove() {\n return this._map ? (this._map.off(\"moveend\", this._updateHash), e.window.removeEventListener(\"hashchange\", this._onHashChange, !1), clearTimeout(this._updateHash()), this._map = void 0, this) : this;\n }\n getHashString() {\n const t = this._map;\n if (!t) return \"\";\n const i = Jo(t);\n if (this._hashName) {\n const t = this._hashName;\n let o = !1;\n const r = e.window.location.hash.slice(1).split(\"&\").map(e => {\n const r = e.split(\"=\")[0];\n return r === t ? (o = !0, `${r}=${i}`) : e;\n }).filter(e => e);\n return o || r.push(`${t}=${i}`), `#${r.join(\"&\")}`;\n }\n return `#${i}`;\n }\n _getCurrentHash() {\n const t = e.window.location.hash.replace(\"#\", \"\");\n if (this._hashName) {\n let e;\n return t.split(\"&\").map(e => e.split(\"=\")).forEach(t => {\n t[0] === this._hashName && (e = t);\n }), (e && e[1] || \"\").split(\"/\");\n }\n return t.split(\"/\");\n }\n _onHashChange() {\n const e = this._map;\n if (!e) return !1;\n const t = this._getCurrentHash();\n if (t.length >= 3 && !t.some(e => isNaN(e))) {\n const i = e.dragRotate.isEnabled() && e.touchZoomRotate.isEnabled() ? +(t[3] || 0) : e.getBearing();\n return e.jumpTo({\n center: [+t[2], +t[1]],\n zoom: +t[0],\n bearing: i,\n pitch: +(t[4] || 0)\n }), !0;\n }\n return !1;\n }\n _updateHashUnthrottled() {\n const t = e.window.location.href.replace(/(#.+)?$/, this.getHashString());\n e.window.history.replaceState(e.window.history.state, null, t);\n }\n }\n function Jo(e, t) {\n const i = e.getCenter(),\n o = Math.round(100 * e.getZoom()) / 100,\n r = Math.ceil((o * Math.LN2 + Math.log(512 / 360 / .5)) / Math.LN10),\n n = Math.pow(10, r),\n s = Math.round(i.lng * n) / n,\n a = Math.round(i.lat * n) / n,\n l = e.getBearing(),\n c = e.getPitch();\n let h = t ? `/${s}/${a}/${o}` : `${o}/${a}/${s}`;\n return (l || c) && (h += \"/\" + Math.round(10 * l) / 10), c && (h += `/${Math.round(c)}`), h;\n }\n const Qo = {\n linearity: .3,\n easing: e.bezier(0, 0, .3, 1)\n },\n er = e.extend({\n deceleration: 2500,\n maxSpeed: 1400\n }, Qo),\n tr = e.extend({\n deceleration: 20,\n maxSpeed: 1400\n }, Qo),\n ir = e.extend({\n deceleration: 1e3,\n maxSpeed: 360\n }, Qo),\n or = e.extend({\n deceleration: 1e3,\n maxSpeed: 90\n }, Qo);\n class rr {\n constructor(e) {\n this._map = e, this.clear();\n }\n clear() {\n this._inertiaBuffer = [];\n }\n record(t) {\n this._drainInertiaBuffer(), this._inertiaBuffer.push({\n time: e.exported.now(),\n settings: t\n });\n }\n _drainInertiaBuffer() {\n const t = this._inertiaBuffer,\n i = e.exported.now();\n for (; t.length > 0 && i - t[0].time > 160;) t.shift();\n }\n _onMoveEnd(t) {\n if (this._map._prefersReducedMotion()) return;\n if (this._drainInertiaBuffer(), this._inertiaBuffer.length < 2) return;\n const i = {\n zoom: 0,\n bearing: 0,\n pitch: 0,\n pan: new e.Point(0, 0),\n pinchAround: void 0,\n around: void 0\n };\n for (const {\n settings: e\n } of this._inertiaBuffer) i.zoom += e.zoomDelta || 0, i.bearing += e.bearingDelta || 0, i.pitch += e.pitchDelta || 0, e.panDelta && i.pan._add(e.panDelta), e.around && (i.around = e.around), e.pinchAround && (i.pinchAround = e.pinchAround);\n const o = this._inertiaBuffer[this._inertiaBuffer.length - 1].time - this._inertiaBuffer[0].time,\n r = {};\n if (i.pan.mag()) {\n const n = sr(i.pan.mag(), o, e.extend({}, er, t || {}));\n r.offset = i.pan.mult(n.amount / i.pan.mag()), r.center = this._map.transform.center, nr(r, n);\n }\n if (i.zoom) {\n const e = sr(i.zoom, o, tr);\n r.zoom = this._map.transform.zoom + e.amount, nr(r, e);\n }\n if (i.bearing) {\n const t = sr(i.bearing, o, ir);\n r.bearing = this._map.transform.bearing + e.clamp(t.amount, -179, 179), nr(r, t);\n }\n if (i.pitch) {\n const e = sr(i.pitch, o, or);\n r.pitch = this._map.transform.pitch + e.amount, nr(r, e);\n }\n if (r.zoom || r.bearing) {\n const e = void 0 === i.pinchAround ? i.around : i.pinchAround;\n r.around = e ? this._map.unproject(e) : this._map.getCenter();\n }\n return this.clear(), r.noMoveStart = !0, r;\n }\n }\n function nr(e, t) {\n (!e.duration || e.duration < t.duration) && (e.duration = t.duration, e.easing = t.easing);\n }\n function sr(t, i, o) {\n const {\n maxSpeed: r,\n linearity: n,\n deceleration: s\n } = o,\n a = e.clamp(t * n / (i / 1e3), -r, r),\n l = Math.abs(a) / (s * n);\n return {\n easing: o.easing,\n duration: 1e3 * l,\n amount: a * (l / 2)\n };\n }\n class ar extends e.Event {\n preventDefault() {\n this._defaultPrevented = !0;\n }\n get defaultPrevented() {\n return this._defaultPrevented;\n }\n constructor(t, i, o, r = {}) {\n const n = p(i.getCanvasContainer(), o),\n s = i.unproject(n);\n super(t, e.extend({\n point: n,\n lngLat: s,\n originalEvent: o\n }, r)), this._defaultPrevented = !1, this.target = i;\n }\n }\n class lr extends e.Event {\n preventDefault() {\n this._defaultPrevented = !0;\n }\n get defaultPrevented() {\n return this._defaultPrevented;\n }\n constructor(t, i, o) {\n const r = \"touchend\" === t ? o.changedTouches : o.touches,\n n = m(i.getCanvasContainer(), r),\n s = n.map(e => i.unproject(e)),\n a = n.reduce((e, t, i, o) => e.add(t.div(o.length)), new e.Point(0, 0));\n super(t, {\n points: n,\n point: a,\n lngLats: s,\n lngLat: i.unproject(a),\n originalEvent: o\n }), this._defaultPrevented = !1;\n }\n }\n class cr extends e.Event {\n preventDefault() {\n this._defaultPrevented = !0;\n }\n get defaultPrevented() {\n return this._defaultPrevented;\n }\n constructor(e, t, i) {\n super(e, {\n originalEvent: i\n }), this._defaultPrevented = !1;\n }\n }\n class hr {\n constructor(e, t) {\n this._map = e, this._clickTolerance = t.clickTolerance;\n }\n reset() {\n this._mousedownPos = void 0;\n }\n wheel(e) {\n return this._firePreventable(new cr(e.type, this._map, e));\n }\n mousedown(e, t) {\n return this._mousedownPos = t, this._firePreventable(new ar(e.type, this._map, e));\n }\n mouseup(e) {\n this._map.fire(new ar(e.type, this._map, e));\n }\n preclick(t) {\n const i = e.extend({}, t);\n i.type = \"preclick\", this._map.fire(new ar(i.type, this._map, i));\n }\n click(e, t) {\n this._mousedownPos && this._mousedownPos.dist(t) >= this._clickTolerance || (this.preclick(e), this._map.fire(new ar(e.type, this._map, e)));\n }\n dblclick(e) {\n return this._firePreventable(new ar(e.type, this._map, e));\n }\n mouseover(e) {\n this._map.fire(new ar(e.type, this._map, e));\n }\n mouseout(e) {\n this._map.fire(new ar(e.type, this._map, e));\n }\n touchstart(e) {\n return this._firePreventable(new lr(e.type, this._map, e));\n }\n touchmove(e) {\n this._map.fire(new lr(e.type, this._map, e));\n }\n touchend(e) {\n this._map.fire(new lr(e.type, this._map, e));\n }\n touchcancel(e) {\n this._map.fire(new lr(e.type, this._map, e));\n }\n _firePreventable(e) {\n if (this._map.fire(e), e.defaultPrevented) return {};\n }\n isEnabled() {\n return !0;\n }\n isActive() {\n return !1;\n }\n enable() {}\n disable() {}\n }\n class ur {\n constructor(e) {\n this._map = e;\n }\n reset() {\n this._delayContextMenu = !1, this._contextMenuEvent = void 0;\n }\n mousemove(e) {\n this._map.fire(new ar(e.type, this._map, e));\n }\n mousedown() {\n this._delayContextMenu = !0;\n }\n mouseup() {\n this._delayContextMenu = !1, this._contextMenuEvent && (this._map.fire(new ar(\"contextmenu\", this._map, this._contextMenuEvent)), delete this._contextMenuEvent);\n }\n contextmenu(e) {\n this._delayContextMenu ? this._contextMenuEvent = e : this._map.fire(new ar(e.type, this._map, e)), this._map.listens(\"contextmenu\") && e.preventDefault();\n }\n isEnabled() {\n return !0;\n }\n isActive() {\n return !1;\n }\n enable() {}\n disable() {}\n }\n class _r {\n constructor(e, t) {\n this._map = e, this._el = e.getCanvasContainer(), this._container = e.getContainer(), this._clickTolerance = t.clickTolerance || 1;\n }\n isEnabled() {\n return !!this._enabled;\n }\n isActive() {\n return !!this._active;\n }\n enable() {\n this.isEnabled() || (this._enabled = !0);\n }\n disable() {\n this.isEnabled() && (this._enabled = !1);\n }\n mousedown(e, t) {\n this.isEnabled() && e.shiftKey && 0 === e.button && (h(), this._startPos = this._lastPos = t, this._active = !0);\n }\n mousemoveWindow(e, t) {\n if (!this._active) return;\n const i = t,\n o = this._startPos,\n r = this._lastPos;\n if (!o || !r || r.equals(i) || !this._box && i.dist(o) < this._clickTolerance) return;\n this._lastPos = i, this._box || (this._box = n(\"div\", \"mapboxgl-boxzoom\", this._container), this._container.classList.add(\"mapboxgl-crosshair\"), this._fireEvent(\"boxzoomstart\", e));\n const s = Math.min(o.x, i.x),\n a = Math.max(o.x, i.x),\n l = Math.min(o.y, i.y),\n c = Math.max(o.y, i.y);\n this._map._requestDomTask(() => {\n this._box && (this._box.style.transform = `translate(${s}px,${l}px)`, this._box.style.width = a - s + \"px\", this._box.style.height = c - l + \"px\");\n });\n }\n mouseupWindow(t, i) {\n if (!this._active) return;\n const o = this._startPos,\n r = i;\n if (o && 0 === t.button) {\n if (this.reset(), d(), o.x !== r.x || o.y !== r.y) return this._map.fire(new e.Event(\"boxzoomend\", {\n originalEvent: t\n })), {\n cameraAnimation: e => e.fitScreenCoordinates(o, r, this._map.getBearing(), {\n linear: !1\n })\n };\n this._fireEvent(\"boxzoomcancel\", t);\n }\n }\n keydown(e) {\n this._active && 27 === e.keyCode && (this.reset(), this._fireEvent(\"boxzoomcancel\", e));\n }\n blur() {\n this.reset();\n }\n reset() {\n this._active = !1, this._container.classList.remove(\"mapboxgl-crosshair\"), this._box && (this._box.remove(), this._box = null), u(), delete this._startPos, delete this._lastPos;\n }\n _fireEvent(t, i) {\n return this._map.fire(new e.Event(t, {\n originalEvent: i\n }));\n }\n }\n function dr(e, t) {\n const i = {};\n for (let o = 0; o < e.length; o++) i[e[o].identifier] = t[o];\n return i;\n }\n class pr {\n constructor(e) {\n this.reset(), this.numTouches = e.numTouches;\n }\n reset() {\n this.centroid = void 0, this.startTime = 0, this.touches = {}, this.aborted = !1;\n }\n touchstart(t, i, o) {\n (this.centroid || o.length > this.numTouches) && (this.aborted = !0), this.aborted || (0 === this.startTime && (this.startTime = t.timeStamp), o.length === this.numTouches && (this.centroid = function (t) {\n const i = new e.Point(0, 0);\n for (const e of t) i._add(e);\n return i.div(t.length);\n }(i), this.touches = dr(o, i)));\n }\n touchmove(e, t, i) {\n if (this.aborted || !this.centroid) return;\n const o = dr(i, t);\n for (const e in this.touches) {\n const t = o[e];\n (!t || t.dist(this.touches[e]) > 30) && (this.aborted = !0);\n }\n }\n touchend(e, t, i) {\n if ((!this.centroid || e.timeStamp - this.startTime > 500) && (this.aborted = !0), 0 === i.length) {\n const e = !this.aborted && this.centroid;\n if (this.reset(), e) return e;\n }\n }\n }\n class mr {\n constructor(e) {\n this.singleTap = new pr(e), this.numTaps = e.numTaps, this.reset();\n }\n reset() {\n this.lastTime = 1 / 0, this.lastTap = void 0, this.count = 0, this.singleTap.reset();\n }\n touchstart(e, t, i) {\n this.singleTap.touchstart(e, t, i);\n }\n touchmove(e, t, i) {\n this.singleTap.touchmove(e, t, i);\n }\n touchend(e, t, i) {\n const o = this.singleTap.touchend(e, t, i);\n if (o) {\n const t = e.timeStamp - this.lastTime < 500,\n i = !this.lastTap || this.lastTap.dist(o) < 30;\n if (t && i || this.reset(), this.count++, this.lastTime = e.timeStamp, this.lastTap = o, this.count === this.numTaps) return this.reset(), o;\n }\n }\n }\n class fr {\n constructor() {\n this._zoomIn = new mr({\n numTouches: 1,\n numTaps: 2\n }), this._zoomOut = new mr({\n numTouches: 2,\n numTaps: 1\n }), this.reset();\n }\n reset() {\n this._active = !1, this._zoomIn.reset(), this._zoomOut.reset();\n }\n touchstart(e, t, i) {\n this._zoomIn.touchstart(e, t, i), this._zoomOut.touchstart(e, t, i);\n }\n touchmove(e, t, i) {\n this._zoomIn.touchmove(e, t, i), this._zoomOut.touchmove(e, t, i);\n }\n touchend(e, t, i) {\n const o = this._zoomIn.touchend(e, t, i),\n r = this._zoomOut.touchend(e, t, i);\n return o ? (this._active = !0, e.preventDefault(), setTimeout(() => this.reset(), 0), {\n cameraAnimation: t => t.easeTo({\n duration: 300,\n zoom: t.getZoom() + 1,\n around: t.unproject(o)\n }, {\n originalEvent: e\n })\n }) : r ? (this._active = !0, e.preventDefault(), setTimeout(() => this.reset(), 0), {\n cameraAnimation: t => t.easeTo({\n duration: 300,\n zoom: t.getZoom() - 1,\n around: t.unproject(r)\n }, {\n originalEvent: e\n })\n }) : void 0;\n }\n touchcancel() {\n this.reset();\n }\n enable() {\n this._enabled = !0;\n }\n disable() {\n this._enabled = !1, this.reset();\n }\n isEnabled() {\n return this._enabled;\n }\n isActive() {\n return this._active;\n }\n }\n const gr = {\n 0: 1,\n 2: 2\n };\n class vr {\n constructor(e) {\n this.reset(), this._clickTolerance = e.clickTolerance || 1;\n }\n blur() {\n this.reset();\n }\n reset() {\n this._active = !1, this._moved = !1, this._lastPoint = void 0, this._eventButton = void 0;\n }\n _correctButton(e, t) {\n return !1;\n }\n _move(e, t) {\n return {};\n }\n mousedown(e, t) {\n if (this._lastPoint) return;\n const i = f(e);\n this._correctButton(e, i) && (this._lastPoint = t, this._eventButton = i);\n }\n mousemoveWindow(e, t) {\n const i = this._lastPoint;\n if (i) if (e.preventDefault(), null != this._eventButton && function (e, t) {\n const i = gr[t];\n return void 0 === e.buttons || (e.buttons & i) !== i;\n }(e, this._eventButton)) this.reset();else if (this._moved || !(t.dist(i) < this._clickTolerance)) return this._moved = !0, this._lastPoint = t, this._move(i, t);\n }\n mouseupWindow(e) {\n this._lastPoint && f(e) === this._eventButton && (this._moved && d(), this.reset());\n }\n enable() {\n this._enabled = !0;\n }\n disable() {\n this._enabled = !1, this.reset();\n }\n isEnabled() {\n return this._enabled;\n }\n isActive() {\n return this._active;\n }\n }\n class xr extends vr {\n mousedown(e, t) {\n super.mousedown(e, t), this._lastPoint && (this._active = !0);\n }\n _correctButton(e, t) {\n return 0 === t && !e.ctrlKey;\n }\n _move(e, t) {\n return {\n around: t,\n panDelta: t.sub(e)\n };\n }\n }\n class yr extends vr {\n _correctButton(e, t) {\n return 0 === t && e.ctrlKey || 2 === t;\n }\n _move(e, t) {\n const i = .8 * (t.x - e.x);\n if (i) return this._active = !0, {\n bearingDelta: i\n };\n }\n contextmenu(e) {\n e.preventDefault();\n }\n }\n class br extends vr {\n _correctButton(e, t) {\n return 0 === t && e.ctrlKey || 2 === t;\n }\n _move(e, t) {\n const i = -.5 * (t.y - e.y);\n if (i) return this._active = !0, {\n pitchDelta: i\n };\n }\n contextmenu(e) {\n e.preventDefault();\n }\n }\n class wr {\n constructor(t, i) {\n this._map = t, this._el = t.getCanvasContainer(), this._minTouches = 1, this._clickTolerance = i.clickTolerance || 1, this.reset(), e.bindAll([\"_addTouchPanBlocker\", \"_showTouchPanBlockerAlert\"], this);\n }\n reset() {\n this._active = !1, this._touches = {}, this._sum = new e.Point(0, 0);\n }\n touchstart(e, t, i) {\n return this._calculateTransform(e, t, i);\n }\n touchmove(t, i, o) {\n if (this._active && !(o.length < this._minTouches)) {\n if (this._map._cooperativeGestures && !this._map.isMoving()) {\n if (1 === o.length && !e.isFullscreen()) return void this._showTouchPanBlockerAlert();\n \"hidden\" !== this._alertContainer.style.visibility && (this._alertContainer.style.visibility = \"hidden\", clearTimeout(this._alertTimer));\n }\n return t.cancelable && t.preventDefault(), this._calculateTransform(t, i, o);\n }\n }\n touchend(e, t, i) {\n this._calculateTransform(e, t, i), this._active && i.length < this._minTouches && this.reset();\n }\n touchcancel() {\n this.reset();\n }\n _calculateTransform(t, i, o) {\n o.length > 0 && (this._active = !0);\n const r = dr(o, i),\n n = new e.Point(0, 0),\n s = new e.Point(0, 0);\n let a = 0;\n for (const e in r) {\n const t = r[e],\n i = this._touches[e];\n i && (n._add(t), s._add(t.sub(i)), a++, r[e] = t);\n }\n if (this._touches = r, a < this._minTouches || !s.mag()) return;\n const l = s.div(a);\n return this._sum._add(l), this._sum.mag() < this._clickTolerance ? void 0 : {\n around: n.div(a),\n panDelta: l\n };\n }\n enable() {\n this._enabled = !0, this._map._cooperativeGestures && (this._addTouchPanBlocker(), this._el.classList.add(\"mapboxgl-touch-pan-blocker-override\", \"mapboxgl-scrollable-page\"));\n }\n disable() {\n this._enabled = !1, this._map._cooperativeGestures && (clearTimeout(this._alertTimer), this._alertContainer.remove(), this._el.classList.remove(\"mapboxgl-touch-pan-blocker-override\", \"mapboxgl-scrollable-page\")), this.reset();\n }\n isEnabled() {\n return !!this._enabled;\n }\n isActive() {\n return !!this._active;\n }\n _addTouchPanBlocker() {\n this._map && !this._alertContainer && (this._alertContainer = n(\"div\", \"mapboxgl-touch-pan-blocker\", this._map._container), this._alertContainer.textContent = this._map._getUIString(\"TouchPanBlocker.Message\"), this._alertContainer.style.fontSize = `${Math.max(10, Math.min(24, Math.floor(.05 * this._el.clientWidth)))}px`);\n }\n _showTouchPanBlockerAlert() {\n this._alertContainer.style.visibility = \"visible\", this._alertContainer.classList.add(\"mapboxgl-touch-pan-blocker-show\"), this._alertContainer.setAttribute(\"role\", \"alert\"), clearTimeout(this._alertTimer), this._alertTimer = setTimeout(() => {\n this._alertContainer.classList.remove(\"mapboxgl-touch-pan-blocker-show\"), this._alertContainer.setAttribute(\"role\", \"null\");\n }, 500);\n }\n }\n class Tr {\n constructor() {\n this.reset();\n }\n reset() {\n this._active = !1, this._firstTwoTouches = void 0;\n }\n _start(e) {}\n _move(e, t, i) {\n return {};\n }\n touchstart(e, t, i) {\n this._firstTwoTouches || i.length < 2 || (this._firstTwoTouches = [i[0].identifier, i[1].identifier], this._start([t[0], t[1]]));\n }\n touchmove(e, t, i) {\n const o = this._firstTwoTouches;\n if (!o) return;\n e.preventDefault();\n const [r, n] = o,\n s = Er(i, t, r),\n a = Er(i, t, n);\n if (!s || !a) return;\n const l = this._aroundCenter ? null : s.add(a).div(2);\n return this._move([s, a], l, e);\n }\n touchend(e, t, i) {\n if (!this._firstTwoTouches) return;\n const [o, r] = this._firstTwoTouches,\n n = Er(i, t, o),\n s = Er(i, t, r);\n n && s || (this._active && d(), this.reset());\n }\n touchcancel() {\n this.reset();\n }\n enable(e) {\n this._enabled = !0, this._aroundCenter = !!e && \"center\" === e.around;\n }\n disable() {\n this._enabled = !1, this.reset();\n }\n isEnabled() {\n return this._enabled;\n }\n isActive() {\n return this._active;\n }\n }\n function Er(e, t, i) {\n for (let o = 0; o < e.length; o++) if (e[o].identifier === i) return t[o];\n }\n function Cr(e, t) {\n return Math.log(e / t) / Math.LN2;\n }\n class Mr extends Tr {\n reset() {\n super.reset(), this._distance = 0, this._startDistance = 0;\n }\n _start(e) {\n this._startDistance = this._distance = e[0].dist(e[1]);\n }\n _move(e, t) {\n const i = this._distance;\n if (this._distance = e[0].dist(e[1]), this._active || !(Math.abs(Cr(this._distance, this._startDistance)) < .1)) return this._active = !0, {\n zoomDelta: Cr(this._distance, i),\n pinchAround: t\n };\n }\n }\n function Ir(e, t) {\n return 180 * e.angleWith(t) / Math.PI;\n }\n class Pr extends Tr {\n reset() {\n super.reset(), this._minDiameter = 0, this._startVector = void 0, this._vector = void 0;\n }\n _start(e) {\n this._startVector = this._vector = e[0].sub(e[1]), this._minDiameter = e[0].dist(e[1]);\n }\n _move(e, t) {\n const i = this._vector;\n if (this._vector = e[0].sub(e[1]), i && (this._active || !this._isBelowThreshold(this._vector))) return this._active = !0, {\n bearingDelta: Ir(this._vector, i),\n pinchAround: t\n };\n }\n _isBelowThreshold(e) {\n this._minDiameter = Math.min(this._minDiameter, e.mag());\n const t = 25 / (Math.PI * this._minDiameter) * 360,\n i = this._startVector;\n if (!i) return !1;\n const o = Ir(e, i);\n return Math.abs(o) < t;\n }\n }\n function Sr(e) {\n return Math.abs(e.y) > Math.abs(e.x);\n }\n class Dr extends Tr {\n constructor(e) {\n super(), this._map = e;\n }\n reset() {\n super.reset(), this._valid = void 0, this._firstMove = void 0, this._lastPoints = void 0;\n }\n _start(e) {\n this._lastPoints = e, Sr(e[0].sub(e[1])) && (this._valid = !1);\n }\n _move(t, i, o) {\n const r = this._lastPoints;\n if (!r) return;\n const n = t[0].sub(r[0]),\n s = t[1].sub(r[1]);\n return this._map._cooperativeGestures && !e.isFullscreen() && o.touches.length < 3 || (this._valid = this.gestureBeginsVertically(n, s, o.timeStamp), !this._valid) ? void 0 : (this._lastPoints = t, this._active = !0, {\n pitchDelta: (n.y + s.y) / 2 * -.5\n });\n }\n gestureBeginsVertically(e, t, i) {\n if (void 0 !== this._valid) return this._valid;\n const o = e.mag() >= 2,\n r = t.mag() >= 2;\n if (!o && !r) return;\n if (!o || !r) return null == this._firstMove && (this._firstMove = i), i - this._firstMove < 100 && void 0;\n const n = e.y > 0 == t.y > 0;\n return Sr(e) && Sr(t) && n;\n }\n }\n const Lr = {\n panStep: 100,\n bearingStep: 15,\n pitchStep: 10\n };\n class Ar {\n constructor() {\n const e = Lr;\n this._panStep = e.panStep, this._bearingStep = e.bearingStep, this._pitchStep = e.pitchStep, this._rotationDisabled = !1;\n }\n blur() {\n this.reset();\n }\n reset() {\n this._active = !1;\n }\n keydown(e) {\n if (e.altKey || e.ctrlKey || e.metaKey) return;\n let t = 0,\n i = 0,\n o = 0,\n r = 0,\n n = 0;\n switch (e.keyCode) {\n case 61:\n case 107:\n case 171:\n case 187:\n t = 1;\n break;\n case 189:\n case 109:\n case 173:\n t = -1;\n break;\n case 37:\n e.shiftKey ? i = -1 : (e.preventDefault(), r = -1);\n break;\n case 39:\n e.shiftKey ? i = 1 : (e.preventDefault(), r = 1);\n break;\n case 38:\n e.shiftKey ? o = 1 : (e.preventDefault(), n = -1);\n break;\n case 40:\n e.shiftKey ? o = -1 : (e.preventDefault(), n = 1);\n break;\n default:\n return;\n }\n return this._rotationDisabled && (i = 0, o = 0), {\n cameraAnimation: s => {\n const a = s.getZoom();\n s.easeTo({\n duration: 300,\n easeId: \"keyboardHandler\",\n easing: zr,\n zoom: t ? Math.round(a) + t * (e.shiftKey ? 2 : 1) : a,\n bearing: s.getBearing() + i * this._bearingStep,\n pitch: s.getPitch() + o * this._pitchStep,\n offset: [-r * this._panStep, -n * this._panStep],\n center: s.getCenter()\n }, {\n originalEvent: e\n });\n }\n };\n }\n enable() {\n this._enabled = !0;\n }\n disable() {\n this._enabled = !1, this.reset();\n }\n isEnabled() {\n return this._enabled;\n }\n isActive() {\n return this._active;\n }\n disableRotation() {\n this._rotationDisabled = !0;\n }\n enableRotation() {\n this._rotationDisabled = !1;\n }\n }\n function zr(e) {\n return e * (2 - e);\n }\n const Rr = 4.000244140625;\n class Or {\n constructor(t, i) {\n this._map = t, this._el = t.getCanvasContainer(), this._handler = i, this._delta = 0, this._defaultZoomRate = .01, this._wheelZoomRate = .0022222222222222222, e.bindAll([\"_onTimeout\", \"_addScrollZoomBlocker\", \"_showBlockerAlert\"], this);\n }\n setZoomRate(e) {\n this._defaultZoomRate = e;\n }\n setWheelZoomRate(e) {\n this._wheelZoomRate = e;\n }\n isEnabled() {\n return !!this._enabled;\n }\n isActive() {\n return this._active || void 0 !== this._finishTimeout;\n }\n isZooming() {\n return !!this._zooming;\n }\n enable(e) {\n this.isEnabled() || (this._enabled = !0, this._aroundCenter = !!e && \"center\" === e.around, this._map._cooperativeGestures && this._addScrollZoomBlocker());\n }\n disable() {\n this.isEnabled() && (this._enabled = !1, this._map._cooperativeGestures && (clearTimeout(this._alertTimer), this._alertContainer.remove()));\n }\n wheel(t) {\n if (!this.isEnabled()) return;\n if (this._map._cooperativeGestures) {\n if (!(t.ctrlKey || t.metaKey || this.isZooming() || e.isFullscreen())) return void this._showBlockerAlert();\n \"hidden\" !== this._alertContainer.style.visibility && (this._alertContainer.style.visibility = \"hidden\", clearTimeout(this._alertTimer));\n }\n let i = t.deltaMode === e.window.WheelEvent.DOM_DELTA_LINE ? 40 * t.deltaY : t.deltaY;\n const o = e.exported.now(),\n r = o - (this._lastWheelEventTime || 0);\n this._lastWheelEventTime = o, 0 !== i && i % Rr == 0 ? this._type = \"wheel\" : 0 !== i && Math.abs(i) < 4 ? this._type = \"trackpad\" : r > 400 ? (this._type = null, this._lastValue = i, this._timeout = setTimeout(this._onTimeout, 40, t)) : this._type || (this._type = Math.abs(r * i) < 200 ? \"trackpad\" : \"wheel\", this._timeout && (clearTimeout(this._timeout), this._timeout = null, i += this._lastValue)), t.shiftKey && i && (i /= 4), this._type && (this._lastWheelEvent = t, this._delta -= i, this._active || this._start(t)), t.preventDefault();\n }\n _onTimeout(e) {\n this._type = \"wheel\", this._delta -= this._lastValue, this._active || this._start(e);\n }\n _start(e) {\n if (!this._delta) return;\n this._frameId && (this._frameId = null), this._active = !0, this.isZooming() || (this._zooming = !0), this._finishTimeout && (clearTimeout(this._finishTimeout), delete this._finishTimeout);\n const t = p(this._el, e);\n this._aroundPoint = this._aroundCenter ? this._map.transform.centerPoint : t, this._aroundCoord = this._map.transform.pointCoordinate3D(this._aroundPoint), this._targetZoom = void 0, this._frameId || (this._frameId = !0, this._handler._triggerRenderFrame());\n }\n renderFrame() {\n if (!this._frameId) return;\n if (this._frameId = null, !this.isActive()) return;\n const t = this._map.transform;\n \"wheel\" === this._type && t.projection.wrap && (t._center.lng >= 180 || t._center.lng <= -180) && (this._prevEase = null, this._easing = null, this._lastWheelEvent = null, this._lastWheelEventTime = 0);\n const i = () => t._terrainEnabled() && this._aroundCoord ? t.computeZoomRelativeTo(this._aroundCoord) : t.zoom;\n if (0 !== this._delta) {\n const e = \"wheel\" === this._type && Math.abs(this._delta) > Rr ? this._wheelZoomRate : this._defaultZoomRate;\n let o = 2 / (1 + Math.exp(-Math.abs(this._delta * e)));\n this._delta < 0 && 0 !== o && (o = 1 / o);\n const r = i(),\n n = Math.pow(2, r),\n s = \"number\" == typeof this._targetZoom ? t.zoomScale(this._targetZoom) : n;\n this._targetZoom = Math.min(t.maxZoom, Math.max(t.minZoom, t.scaleZoom(s * o))), \"wheel\" === this._type && (this._startZoom = r, this._easing = this._smoothOutEasing(200)), this._delta = 0;\n }\n const o = \"number\" == typeof this._targetZoom ? this._targetZoom : i(),\n r = this._startZoom,\n n = this._easing;\n let s,\n a = !1;\n if (\"wheel\" === this._type && r && n) {\n const t = Math.min((e.exported.now() - this._lastWheelEventTime) / 200, 1),\n i = n(t);\n s = e.number(r, o, i), t < 1 ? this._frameId || (this._frameId = !0) : a = !0;\n } else s = o, a = !0;\n return this._active = !0, a && (this._active = !1, this._finishTimeout = setTimeout(() => {\n this._zooming = !1, this._handler._triggerRenderFrame(), delete this._targetZoom, delete this._finishTimeout;\n }, 200)), {\n noInertia: !0,\n needsRenderFrame: !a,\n zoomDelta: s - i(),\n around: this._aroundPoint,\n aroundCoord: this._aroundCoord,\n originalEvent: this._lastWheelEvent\n };\n }\n _smoothOutEasing(t) {\n let i = e.ease;\n if (this._prevEase) {\n const t = this._prevEase,\n o = (e.exported.now() - t.start) / t.duration,\n r = t.easing(o + .01) - t.easing(o),\n n = .27 / Math.sqrt(r * r + 1e-4) * .01,\n s = Math.sqrt(.0729 - n * n);\n i = e.bezier(n, s, .25, 1);\n }\n return this._prevEase = {\n start: e.exported.now(),\n duration: t,\n easing: i\n }, i;\n }\n blur() {\n this.reset();\n }\n reset() {\n this._active = !1;\n }\n _addScrollZoomBlocker() {\n this._map && !this._alertContainer && (this._alertContainer = n(\"div\", \"mapboxgl-scroll-zoom-blocker\", this._map._container), this._alertContainer.textContent = /(Mac|iPad)/i.test(e.window.navigator.userAgent) ? this._map._getUIString(\"ScrollZoomBlocker.CmdMessage\") : this._map._getUIString(\"ScrollZoomBlocker.CtrlMessage\"), this._alertContainer.style.fontSize = `${Math.max(10, Math.min(24, Math.floor(.05 * this._el.clientWidth)))}px`);\n }\n _showBlockerAlert() {\n this._alertContainer.style.visibility = \"visible\", this._alertContainer.classList.add(\"mapboxgl-scroll-zoom-blocker-show\"), this._alertContainer.setAttribute(\"role\", \"alert\"), clearTimeout(this._alertTimer), this._alertTimer = setTimeout(() => {\n this._alertContainer.classList.remove(\"mapboxgl-scroll-zoom-blocker-show\"), this._alertContainer.setAttribute(\"role\", \"null\");\n }, 200);\n }\n }\n class Br {\n constructor(e, t) {\n this._clickZoom = e, this._tapZoom = t;\n }\n enable() {\n this._clickZoom.enable(), this._tapZoom.enable();\n }\n disable() {\n this._clickZoom.disable(), this._tapZoom.disable();\n }\n isEnabled() {\n return this._clickZoom.isEnabled() && this._tapZoom.isEnabled();\n }\n isActive() {\n return this._clickZoom.isActive() || this._tapZoom.isActive();\n }\n }\n class kr {\n constructor() {\n this.reset();\n }\n reset() {\n this._active = !1;\n }\n blur() {\n this.reset();\n }\n dblclick(e, t) {\n return e.preventDefault(), {\n cameraAnimation: i => {\n i.easeTo({\n duration: 300,\n zoom: i.getZoom() + (e.shiftKey ? -1 : 1),\n around: i.unproject(t)\n }, {\n originalEvent: e\n });\n }\n };\n }\n enable() {\n this._enabled = !0;\n }\n disable() {\n this._enabled = !1, this.reset();\n }\n isEnabled() {\n return this._enabled;\n }\n isActive() {\n return this._active;\n }\n }\n class Fr {\n constructor() {\n this._tap = new mr({\n numTouches: 1,\n numTaps: 1\n }), this.reset();\n }\n reset() {\n this._active = !1, this._swipePoint = void 0, this._swipeTouch = 0, this._tapTime = 0, this._tap.reset();\n }\n touchstart(e, t, i) {\n this._swipePoint || (this._tapTime && e.timeStamp - this._tapTime > 500 && this.reset(), this._tapTime ? i.length > 0 && (this._swipePoint = t[0], this._swipeTouch = i[0].identifier) : this._tap.touchstart(e, t, i));\n }\n touchmove(e, t, i) {\n if (this._tapTime) {\n if (this._swipePoint) {\n if (i[0].identifier !== this._swipeTouch) return;\n const o = t[0],\n r = o.y - this._swipePoint.y;\n return this._swipePoint = o, e.preventDefault(), this._active = !0, {\n zoomDelta: r / 128\n };\n }\n } else this._tap.touchmove(e, t, i);\n }\n touchend(e, t, i) {\n this._tapTime ? this._swipePoint && 0 === i.length && this.reset() : this._tap.touchend(e, t, i) && (this._tapTime = e.timeStamp);\n }\n touchcancel() {\n this.reset();\n }\n enable() {\n this._enabled = !0;\n }\n disable() {\n this._enabled = !1, this.reset();\n }\n isEnabled() {\n return this._enabled;\n }\n isActive() {\n return this._active;\n }\n }\n class Ur {\n constructor(e, t, i) {\n this._el = e, this._mousePan = t, this._touchPan = i;\n }\n enable(e) {\n this._inertiaOptions = e || {}, this._mousePan.enable(), this._touchPan.enable(), this._el.classList.add(\"mapboxgl-touch-drag-pan\");\n }\n disable() {\n this._mousePan.disable(), this._touchPan.disable(), this._el.classList.remove(\"mapboxgl-touch-drag-pan\");\n }\n isEnabled() {\n return this._mousePan.isEnabled() && this._touchPan.isEnabled();\n }\n isActive() {\n return this._mousePan.isActive() || this._touchPan.isActive();\n }\n }\n class Nr {\n constructor(e, t, i) {\n this._pitchWithRotate = e.pitchWithRotate, this._mouseRotate = t, this._mousePitch = i;\n }\n enable() {\n this._mouseRotate.enable(), this._pitchWithRotate && this._mousePitch.enable();\n }\n disable() {\n this._mouseRotate.disable(), this._mousePitch.disable();\n }\n isEnabled() {\n return this._mouseRotate.isEnabled() && (!this._pitchWithRotate || this._mousePitch.isEnabled());\n }\n isActive() {\n return this._mouseRotate.isActive() || this._mousePitch.isActive();\n }\n }\n class jr {\n constructor(e, t, i, o) {\n this._el = e, this._touchZoom = t, this._touchRotate = i, this._tapDragZoom = o, this._rotationDisabled = !1, this._enabled = !0;\n }\n enable(e) {\n this._touchZoom.enable(e), this._rotationDisabled || this._touchRotate.enable(e), this._tapDragZoom.enable(), this._el.classList.add(\"mapboxgl-touch-zoom-rotate\");\n }\n disable() {\n this._touchZoom.disable(), this._touchRotate.disable(), this._tapDragZoom.disable(), this._el.classList.remove(\"mapboxgl-touch-zoom-rotate\");\n }\n isEnabled() {\n return this._touchZoom.isEnabled() && (this._rotationDisabled || this._touchRotate.isEnabled()) && this._tapDragZoom.isEnabled();\n }\n isActive() {\n return this._touchZoom.isActive() || this._touchRotate.isActive() || this._tapDragZoom.isActive();\n }\n disableRotation() {\n this._rotationDisabled = !0, this._touchRotate.disable();\n }\n enableRotation() {\n this._rotationDisabled = !1, this._touchZoom.isEnabled() && this._touchRotate.enable();\n }\n }\n const Gr = e => e.zoom || e.drag || e.pitch || e.rotate;\n class Zr extends e.Event {}\n class Vr {\n constructor() {\n this.constants = [1, 1, .01], this.radius = 0;\n }\n setup(t, i) {\n const o = e.sub([], i, t);\n this.radius = e.length(o[2] < 0 ? e.div([], o, this.constants) : [o[0], o[1], 0]);\n }\n projectRay(t) {\n e.div(t, t, this.constants), e.normalize(t, t), e.mul$1(t, t, this.constants);\n const i = e.scale$2([], t, this.radius);\n if (i[2] > 0) {\n const t = e.scale$2([], [0, 0, 1], e.dot(i, [0, 0, 1])),\n o = e.scale$2([], e.normalize([], [i[0], i[1], 0]), this.radius),\n r = e.add([], i, e.scale$2([], e.sub([], e.add([], o, t), i), 2));\n i[0] = r[0], i[1] = r[1];\n }\n return i;\n }\n }\n function Wr(e) {\n return e.panDelta && e.panDelta.mag() || e.zoomDelta || e.bearingDelta || e.pitchDelta;\n }\n class Xr {\n constructor(t, i) {\n this._map = t, this._el = this._map.getCanvasContainer(), this._handlers = [], this._handlersById = {}, this._changes = [], this._inertia = new rr(t), this._bearingSnap = i.bearingSnap, this._previousActiveHandlers = {}, this._trackingEllipsoid = new Vr(), this._dragOrigin = null, this._eventsInProgress = {}, this._addDefaultHandlers(i), e.bindAll([\"handleEvent\", \"handleWindowEvent\"], this);\n const o = this._el;\n this._listeners = [[o, \"touchstart\", {\n passive: !0\n }], [o, \"touchmove\", {\n passive: !1\n }], [o, \"touchend\", void 0], [o, \"touchcancel\", void 0], [o, \"mousedown\", void 0], [o, \"mousemove\", void 0], [o, \"mouseup\", void 0], [e.window.document, \"mousemove\", {\n capture: !0\n }], [e.window.document, \"mouseup\", void 0], [o, \"mouseover\", void 0], [o, \"mouseout\", void 0], [o, \"dblclick\", void 0], [o, \"click\", void 0], [o, \"keydown\", {\n capture: !1\n }], [o, \"keyup\", void 0], [o, \"wheel\", {\n passive: !1\n }], [o, \"contextmenu\", void 0], [e.window, \"blur\", void 0]];\n for (const [t, i, o] of this._listeners) t.addEventListener(i, t === e.window.document ? this.handleWindowEvent : this.handleEvent, o);\n }\n destroy() {\n for (const [t, i, o] of this._listeners) t.removeEventListener(i, t === e.window.document ? this.handleWindowEvent : this.handleEvent, o);\n }\n _addDefaultHandlers(e) {\n const t = this._map,\n i = t.getCanvasContainer();\n this._add(\"mapEvent\", new hr(t, e));\n const o = t.boxZoom = new _r(t, e);\n this._add(\"boxZoom\", o);\n const r = new fr(),\n n = new kr();\n t.doubleClickZoom = new Br(n, r), this._add(\"tapZoom\", r), this._add(\"clickZoom\", n);\n const s = new Fr();\n this._add(\"tapDragZoom\", s);\n const a = t.touchPitch = new Dr(t);\n this._add(\"touchPitch\", a);\n const l = new yr(e),\n c = new br(e);\n t.dragRotate = new Nr(e, l, c), this._add(\"mouseRotate\", l, [\"mousePitch\"]), this._add(\"mousePitch\", c, [\"mouseRotate\"]);\n const h = new xr(e),\n u = new wr(t, e);\n t.dragPan = new Ur(i, h, u), this._add(\"mousePan\", h), this._add(\"touchPan\", u, [\"touchZoom\", \"touchRotate\"]);\n const _ = new Pr(),\n d = new Mr();\n t.touchZoomRotate = new jr(i, d, _, s), this._add(\"touchRotate\", _, [\"touchPan\", \"touchZoom\"]), this._add(\"touchZoom\", d, [\"touchPan\", \"touchRotate\"]), this._add(\"blockableMapEvent\", new ur(t));\n const p = t.scrollZoom = new Or(t, this);\n this._add(\"scrollZoom\", p, [\"mousePan\"]);\n const m = t.keyboard = new Ar();\n this._add(\"keyboard\", m);\n for (const i of [\"boxZoom\", \"doubleClickZoom\", \"tapDragZoom\", \"touchPitch\", \"dragRotate\", \"dragPan\", \"touchZoomRotate\", \"scrollZoom\", \"keyboard\"]) e.interactive && e[i] && t[i].enable(e[i]);\n }\n _add(e, t, i) {\n this._handlers.push({\n handlerName: e,\n handler: t,\n allowed: i\n }), this._handlersById[e] = t;\n }\n stop(e) {\n if (!this._updatingCamera) {\n for (const {\n handler: e\n } of this._handlers) e.reset();\n this._inertia.clear(), this._fireEvents({}, {}, e), this._changes = [];\n }\n }\n isActive() {\n for (const {\n handler: e\n } of this._handlers) if (e.isActive()) return !0;\n return !1;\n }\n isZooming() {\n return !!this._eventsInProgress.zoom || this._map.scrollZoom.isZooming();\n }\n isRotating() {\n return !!this._eventsInProgress.rotate;\n }\n isMoving() {\n return !!Gr(this._eventsInProgress) || this.isZooming();\n }\n _isDragging() {\n return !!this._eventsInProgress.drag;\n }\n _blockedByActive(e, t, i) {\n for (const o in e) if (o !== i && (!t || t.indexOf(o) < 0)) return !0;\n return !1;\n }\n handleWindowEvent(e) {\n this.handleEvent(e, `${e.type}Window`);\n }\n _getMapTouches(e) {\n const t = [];\n for (const i of e) this._el.contains(i.target) && t.push(i);\n return t;\n }\n handleEvent(e, t) {\n this._updatingCamera = !0;\n const i = \"renderFrame\" === e.type,\n o = i ? void 0 : e,\n r = {\n needsRenderFrame: !1\n },\n n = {},\n s = {},\n a = e.touches ? this._getMapTouches(e.touches) : void 0,\n l = a ? m(this._el, a) : i ? void 0 : p(this._el, e);\n for (const {\n handlerName: i,\n handler: c,\n allowed: h\n } of this._handlers) {\n if (!c.isEnabled()) continue;\n let u;\n this._blockedByActive(s, h, i) ? c.reset() : c[t || e.type] && (u = c[t || e.type](e, l, a), this.mergeHandlerResult(r, n, u, i, o), u && u.needsRenderFrame && this._triggerRenderFrame()), (u || c.isActive()) && (s[i] = c);\n }\n const c = {};\n for (const e in this._previousActiveHandlers) s[e] || (c[e] = o);\n this._previousActiveHandlers = s, (Object.keys(c).length || Wr(r)) && (this._changes.push([r, n, c]), this._triggerRenderFrame()), (Object.keys(s).length || Wr(r)) && this._map._stop(!0), this._updatingCamera = !1;\n const {\n cameraAnimation: h\n } = r;\n h && (this._inertia.clear(), this._fireEvents({}, {}, !0), this._changes = [], h(this._map));\n }\n mergeHandlerResult(t, i, o, r, n) {\n if (!o) return;\n e.extend(t, o);\n const s = {\n handlerName: r,\n originalEvent: o.originalEvent || n\n };\n void 0 !== o.zoomDelta && (i.zoom = s), void 0 !== o.panDelta && (i.drag = s), void 0 !== o.pitchDelta && (i.pitch = s), void 0 !== o.bearingDelta && (i.rotate = s);\n }\n _applyChanges() {\n const t = {},\n i = {},\n o = {};\n for (const [r, n, s] of this._changes) r.panDelta && (t.panDelta = (t.panDelta || new e.Point(0, 0))._add(r.panDelta)), r.zoomDelta && (t.zoomDelta = (t.zoomDelta || 0) + r.zoomDelta), r.bearingDelta && (t.bearingDelta = (t.bearingDelta || 0) + r.bearingDelta), r.pitchDelta && (t.pitchDelta = (t.pitchDelta || 0) + r.pitchDelta), void 0 !== r.around && (t.around = r.around), void 0 !== r.aroundCoord && (t.aroundCoord = r.aroundCoord), void 0 !== r.pinchAround && (t.pinchAround = r.pinchAround), r.noInertia && (t.noInertia = r.noInertia), e.extend(i, n), e.extend(o, s);\n this._updateMapTransform(t, i, o), this._changes = [];\n }\n _updateMapTransform(t, i, o) {\n const r = this._map,\n n = r.transform,\n s = e => [e.x, e.y, e.z];\n if ((e => {\n const t = this._eventsInProgress.drag;\n return t && !this._handlersById[t.handlerName].isActive();\n })() && !Wr(t)) {\n const e = n.zoom;\n n.cameraElevationReference = \"sea\", n.recenterOnTerrain(), n.cameraElevationReference = \"ground\", e !== n.zoom && this._map._update(!0);\n }\n if (n._isCameraConstrained && r._stop(!0), !Wr(t)) return void this._fireEvents(i, o, !0);\n let {\n panDelta: a,\n zoomDelta: l,\n bearingDelta: c,\n pitchDelta: h,\n around: u,\n aroundCoord: _,\n pinchAround: d\n } = t;\n n._isCameraConstrained && (l > 0 && (l = 0), n._isCameraConstrained = !1), void 0 !== d && (u = d), (l || (e => i[e] && !this._eventsInProgress[e])(\"drag\")) && u && (this._dragOrigin = s(n.pointCoordinate3D(u)), this._trackingEllipsoid.setup(n._camera.position, this._dragOrigin)), n.cameraElevationReference = \"sea\", r._stop(!0), u = u || r.transform.centerPoint, c && (n.bearing += c), h && (n.pitch += h), n._updateCameraState();\n const p = [0, 0, 0];\n if (a) if (\"mercator\" === n.projection.name) {\n const e = this._trackingEllipsoid.projectRay(n.screenPointToMercatorRay(u).dir),\n t = this._trackingEllipsoid.projectRay(n.screenPointToMercatorRay(u.sub(a)).dir);\n p[0] = t[0] - e[0], p[1] = t[1] - e[1];\n } else {\n const t = n.pointCoordinate(u);\n if (\"globe\" === n.projection.name) {\n a = a.rotate(-n.angle);\n const i = n._pixelsPerMercatorPixel / n.worldSize;\n p[0] = -a.x * e.mercatorScale(e.latFromMercatorY(t.y)) * i, p[1] = -a.y * e.mercatorScale(n.center.lat) * i;\n } else {\n const e = n.pointCoordinate(u.sub(a));\n t && e && (p[0] = e.x - t.x, p[1] = e.y - t.y);\n }\n }\n const m = n.zoom,\n f = [0, 0, 0];\n if (l) {\n const t = s(_ || n.pointCoordinate3D(u)),\n i = {\n dir: e.normalize([], e.sub([], t, n._camera.position))\n };\n if (i.dir[2] < 0) {\n const o = n.zoomDeltaToMovement(t, l);\n e.scale$2(f, i.dir, o);\n }\n }\n const g = e.add(p, p, f);\n n._translateCameraConstrained(g), l && Math.abs(n.zoom - m) > 1e-4 && n.recenterOnTerrain(), n.cameraElevationReference = \"ground\", this._map._update(), t.noInertia || this._inertia.record(t), this._fireEvents(i, o, !0);\n }\n _fireEvents(t, i, o) {\n const r = Gr(this._eventsInProgress),\n n = Gr(t),\n s = {};\n for (const e in t) {\n const {\n originalEvent: i\n } = t[e];\n this._eventsInProgress[e] || (s[`${e}start`] = i), this._eventsInProgress[e] = t[e];\n }\n !r && n && this._fireEvent(\"movestart\", n.originalEvent);\n for (const e in s) this._fireEvent(e, s[e]);\n n && this._fireEvent(\"move\", n.originalEvent);\n for (const e in t) {\n const {\n originalEvent: i\n } = t[e];\n this._fireEvent(e, i);\n }\n const a = {};\n let l;\n for (const e in this._eventsInProgress) {\n const {\n handlerName: t,\n originalEvent: o\n } = this._eventsInProgress[e];\n this._handlersById[t].isActive() || (delete this._eventsInProgress[e], l = i[t] || o, a[`${e}end`] = l);\n }\n for (const e in a) this._fireEvent(e, a[e]);\n const c = Gr(this._eventsInProgress);\n if (o && (r || n) && !c) {\n this._updatingCamera = !0;\n const t = this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),\n i = e => 0 !== e && -this._bearingSnap < e && e < this._bearingSnap;\n t ? (i(t.bearing || this._map.getBearing()) && (t.bearing = 0), this._map.easeTo(t, {\n originalEvent: l\n })) : (this._map.fire(new e.Event(\"moveend\", {\n originalEvent: l\n })), i(this._map.getBearing()) && this._map.resetNorth()), this._updatingCamera = !1;\n }\n }\n _fireEvent(t, i) {\n this._map.fire(new e.Event(t, i ? {\n originalEvent: i\n } : {}));\n }\n _requestFrame() {\n return this._map.triggerRepaint(), this._map._renderTaskQueue.add(e => {\n this._frameId = void 0, this.handleEvent(new Zr(\"renderFrame\", {\n timeStamp: e\n })), this._applyChanges();\n });\n }\n _triggerRenderFrame() {\n void 0 === this._frameId && (this._frameId = this._requestFrame());\n }\n }\n const qr = \"map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.\";\n class $r extends e.Evented {\n constructor(t, i) {\n super(), this._moving = !1, this._zooming = !1, this.transform = t, this._bearingSnap = i.bearingSnap, this._respectPrefersReducedMotion = !1 !== i.respectPrefersReducedMotion, e.bindAll([\"_renderFrameCallback\"], this);\n }\n getCenter() {\n return new e.LngLat(this.transform.center.lng, this.transform.center.lat);\n }\n setCenter(e, t) {\n return this.jumpTo({\n center: e\n }, t);\n }\n panBy(t, i, o) {\n return t = e.Point.convert(t).mult(-1), this.panTo(this.transform.center, e.extend({\n offset: t\n }, i), o);\n }\n panTo(t, i, o) {\n return this.easeTo(e.extend({\n center: t\n }, i), o);\n }\n getZoom() {\n return this.transform.zoom;\n }\n setZoom(e, t) {\n return this.jumpTo({\n zoom: e\n }, t), this;\n }\n zoomTo(t, i, o) {\n return this.easeTo(e.extend({\n zoom: t\n }, i), o);\n }\n zoomIn(e, t) {\n return this.zoomTo(this.getZoom() + 1, e, t), this;\n }\n zoomOut(e, t) {\n return this.zoomTo(this.getZoom() - 1, e, t), this;\n }\n getBearing() {\n return this.transform.bearing;\n }\n setBearing(e, t) {\n return this.jumpTo({\n bearing: e\n }, t), this;\n }\n getPadding() {\n return this.transform.padding;\n }\n setPadding(e, t) {\n return this.jumpTo({\n padding: e\n }, t), this;\n }\n rotateTo(t, i, o) {\n return this.easeTo(e.extend({\n bearing: t\n }, i), o);\n }\n resetNorth(t, i) {\n return this.rotateTo(0, e.extend({\n duration: 1e3\n }, t), i), this;\n }\n resetNorthPitch(t, i) {\n return this.easeTo(e.extend({\n bearing: 0,\n pitch: 0,\n duration: 1e3\n }, t), i), this;\n }\n snapToNorth(e, t) {\n return Math.abs(this.getBearing()) < this._bearingSnap ? this.resetNorth(e, t) : this;\n }\n getPitch() {\n return this.transform.pitch;\n }\n setPitch(e, t) {\n return this.jumpTo({\n pitch: e\n }, t), this;\n }\n cameraForBounds(t, i) {\n t = e.LngLatBounds.convert(t);\n const o = i && i.bearing || 0,\n r = i && i.pitch || 0,\n n = t.getNorthWest(),\n s = t.getSouthEast();\n return this._cameraForBounds(this.transform, n, s, o, r, i);\n }\n _extendCameraOptions(t) {\n const i = {\n top: 0,\n bottom: 0,\n right: 0,\n left: 0\n };\n if (\"number\" == typeof (t = e.extend({\n padding: i,\n offset: [0, 0],\n maxZoom: this.transform.maxZoom\n }, t)).padding) {\n const e = t.padding;\n t.padding = {\n top: e,\n bottom: e,\n right: e,\n left: e\n };\n }\n return t.padding = e.extend(i, t.padding), t;\n }\n _minimumAABBFrustumDistance(e, t) {\n const i = t.max[0] - t.min[0],\n o = t.max[1] - t.min[1];\n return i / o > e.aspect ? i / (2 * Math.tan(.5 * e.fovX) * e.aspect) : o / (2 * Math.tan(.5 * e.fovY) * e.aspect);\n }\n _cameraForBoundsOnGlobe(t, i, o, r, n, s) {\n const a = t.clone(),\n l = this._extendCameraOptions(s);\n a.bearing = r, a.pitch = n;\n const c = e.LngLat.convert(i),\n h = e.LngLat.convert(o),\n u = .5 * (c.lat + h.lat),\n _ = .5 * (c.lng + h.lng),\n d = e.latLngToECEF(u, _),\n p = e.normalize([], d),\n m = e.normalize([], e.cross([], p, [0, 1, 0])),\n f = e.cross([], m, p),\n g = [m[0], m[1], m[2], 0, f[0], f[1], f[2], 0, p[0], p[1], p[2], 0, 0, 0, 0, 1],\n v = [d, e.latLngToECEF(c.lat, c.lng), e.latLngToECEF(h.lat, c.lng), e.latLngToECEF(h.lat, h.lng), e.latLngToECEF(c.lat, h.lng), e.latLngToECEF(u, c.lng), e.latLngToECEF(u, h.lng), e.latLngToECEF(c.lat, _), e.latLngToECEF(h.lat, _)];\n let x = e.Aabb.fromPoints(v.map(t => [e.dot(m, t), e.dot(f, t), e.dot(p, t)]));\n const y = e.transformMat4([], x.center, g);\n 0 === e.squaredLength(y) && e.set(y, 0, 0, 1), e.normalize(y, y), e.scale$2(y, y, e.GLOBE_RADIUS), a.center = e.ecefToLatLng(y);\n const b = a.getWorldToCameraMatrix(),\n w = e.invert(new Float64Array(16), b);\n x = e.Aabb.applyTransform(x, e.multiply([], b, g)), e.transformMat4(y, y, b);\n const T = .5 * (x.max[2] - x.min[2]),\n E = this._minimumAABBFrustumDistance(a, x),\n C = e.scale$2([], [0, 0, 1], T),\n M = e.add(C, y, C),\n I = E + (0 === a.pitch ? 0 : e.distance(y, M)),\n P = a.globeCenterInViewSpace,\n S = e.sub([], y, [P[0], P[1], P[2]]);\n e.normalize(S, S), e.scale$2(S, S, I);\n const D = e.add([], y, S);\n e.transformMat4(D, D, w);\n const L = e.earthRadius / e.GLOBE_RADIUS,\n A = e.length(D),\n z = e.mercatorZfromAltitude(Math.max(A * L - e.earthRadius, Number.EPSILON), 0),\n R = Math.min(a.zoomFromMercatorZAdjusted(z), l.maxZoom);\n return R > .5 * (e.GLOBE_ZOOM_THRESHOLD_MIN + e.GLOBE_ZOOM_THRESHOLD_MAX) ? (a.setProjection({\n name: \"mercator\"\n }), a.zoom = R, this._cameraForBounds(a, i, o, r, n, s)) : {\n center: a.center,\n zoom: R,\n bearing: r,\n pitch: n\n };\n }\n queryTerrainElevation(t, i) {\n const o = this.transform.elevation;\n return o ? (i = e.extend({}, {\n exaggerated: !0\n }, i), o.getAtPoint(e.MercatorCoordinate.fromLngLat(t), null, i.exaggerated)) : null;\n }\n _cameraForBounds(t, i, o, r, n, s) {\n if (\"globe\" === t.projection.name) return this._cameraForBoundsOnGlobe(t, i, o, r, n, s);\n const a = t.clone(),\n l = this._extendCameraOptions(s),\n c = a.padding;\n a.bearing = r, a.pitch = n;\n const h = e.LngLat.convert(i),\n u = e.LngLat.convert(o),\n _ = new e.LngLat(h.lng, u.lat),\n d = new e.LngLat(u.lng, h.lat),\n p = a.project(h),\n m = a.project(u),\n f = this.queryTerrainElevation(h),\n g = this.queryTerrainElevation(u),\n v = this.queryTerrainElevation(_),\n x = this.queryTerrainElevation(d),\n y = [[p.x, p.y, Math.min(f || 0, g || 0, v || 0, x || 0)], [m.x, m.y, Math.max(f || 0, g || 0, v || 0, x || 0)]];\n let b = e.Aabb.fromPoints(y);\n const w = a.getWorldToCameraMatrix(),\n T = e.invert(new Float64Array(16), w);\n b = e.Aabb.applyTransform(b, w);\n const E = e.sub([], b.max, b.min),\n C = c.left || 0,\n M = c.right || 0,\n I = c.bottom || 0,\n P = c.top || 0,\n {\n left: S,\n right: D,\n top: L,\n bottom: A\n } = l.padding,\n z = .5 * (C + M),\n R = .5 * (P + I),\n O = Math.min(a.scaleZoom(a.scale * Math.min((a.width - (C + M + S + D)) / E[0], (a.height - (I + P + A + L)) / E[1])), l.maxZoom),\n B = a.scale / a.zoomScale(O);\n b = new e.Aabb([b.min[0] - (S + z) * B, b.min[1] - (A + R) * B, b.min[2]], [b.max[0] + (D + z) * B, b.max[1] + (L + R) * B, b.max[2]]);\n const k = .5 * E[2],\n F = this._minimumAABBFrustumDistance(a, b),\n U = [0, 0, 1, 0];\n e.transformMat4$1(U, U, w), e.normalize$2(U, U);\n const N = e.scale$2([], U, F + k),\n j = e.add([], b.center, N),\n G = (\"number\" == typeof l.offset.x && \"number\" == typeof l.offset.y ? new e.Point(l.offset.x, l.offset.y) : e.Point.convert(l.offset)).rotate(-e.degToRad(r));\n b.center[0] -= G.x * B, b.center[1] += G.y * B, e.transformMat4(b.center, b.center, T), e.transformMat4(j, j, T);\n const Z = [b.center[0], b.center[1], j[2] * a.pixelsPerMeter];\n e.scale$2(Z, Z, 1 / a.worldSize);\n const V = e.lngFromMercatorX(Z[0]),\n W = e.latFromMercatorY(Z[1]),\n X = Math.min(a._zoomFromMercatorZ(Z[2]), l.maxZoom),\n q = new e.LngLat(V, W);\n return a.mercatorFromTransition && X < .5 * (e.GLOBE_ZOOM_THRESHOLD_MIN + e.GLOBE_ZOOM_THRESHOLD_MAX) ? (a.setProjection({\n name: \"globe\"\n }), a.zoom = X, this._cameraForBounds(a, i, o, r, n, s)) : {\n center: q,\n zoom: X,\n bearing: r,\n pitch: n\n };\n }\n fitBounds(e, t, i) {\n const o = this.cameraForBounds(e, t);\n return this._fitInternal(o, t, i);\n }\n fitScreenCoordinates(t, i, o, r, n) {\n const s = e.Point.convert(t),\n a = e.Point.convert(i),\n l = new e.Point(Math.min(s.x, a.x), Math.min(s.y, a.y)),\n c = new e.Point(Math.max(s.x, a.x), Math.max(s.y, a.y));\n if (\"mercator\" === this.transform.projection.name && this.transform.anyCornerOffEdge(s, a)) return this;\n const h = this.transform.pointLocation3D(l),\n u = this.transform.pointLocation3D(c),\n _ = this.transform.pointLocation3D(new e.Point(l.x, c.y)),\n d = this.transform.pointLocation3D(new e.Point(c.x, l.y)),\n p = [Math.min(h.lng, u.lng, _.lng, d.lng), Math.min(h.lat, u.lat, _.lat, d.lat)],\n m = [Math.max(h.lng, u.lng, _.lng, d.lng), Math.max(h.lat, u.lat, _.lat, d.lat)],\n f = r && r.pitch ? r.pitch : this.getPitch(),\n g = this._cameraForBounds(this.transform, p, m, o, f, r);\n return this._fitInternal(g, r, n);\n }\n _fitInternal(t, i, o) {\n return t ? (delete (i = e.extend(t, i)).padding, i.linear ? this.easeTo(i, o) : this.flyTo(i, o)) : this;\n }\n jumpTo(t, i) {\n this.stop();\n const o = t.preloadOnly ? this.transform.clone() : this.transform;\n let r = !1,\n n = !1,\n s = !1;\n return \"zoom\" in t && o.zoom !== +t.zoom && (r = !0, o.zoom = +t.zoom), void 0 !== t.center && (o.center = e.LngLat.convert(t.center)), \"bearing\" in t && o.bearing !== +t.bearing && (n = !0, o.bearing = +t.bearing), \"pitch\" in t && o.pitch !== +t.pitch && (s = !0, o.pitch = +t.pitch), null == t.padding || o.isPaddingEqual(t.padding) || (o.padding = t.padding), t.preloadOnly ? (this._preloadTiles(o), this) : (this.fire(new e.Event(\"movestart\", i)).fire(new e.Event(\"move\", i)), r && this.fire(new e.Event(\"zoomstart\", i)).fire(new e.Event(\"zoom\", i)).fire(new e.Event(\"zoomend\", i)), n && this.fire(new e.Event(\"rotatestart\", i)).fire(new e.Event(\"rotate\", i)).fire(new e.Event(\"rotateend\", i)), s && this.fire(new e.Event(\"pitchstart\", i)).fire(new e.Event(\"pitch\", i)).fire(new e.Event(\"pitchend\", i)), this.fire(new e.Event(\"moveend\", i)));\n }\n getFreeCameraOptions() {\n return this.transform.projection.supportsFreeCamera || e.warnOnce(qr), this.transform.getFreeCameraOptions();\n }\n setFreeCameraOptions(t, i) {\n const o = this.transform;\n if (!o.projection.supportsFreeCamera) return e.warnOnce(qr), this;\n this.stop();\n const r = o.zoom,\n n = o.pitch,\n s = o.bearing;\n o.setFreeCameraOptions(t);\n const a = r !== o.zoom,\n l = n !== o.pitch,\n c = s !== o.bearing;\n return this.fire(new e.Event(\"movestart\", i)).fire(new e.Event(\"move\", i)), a && this.fire(new e.Event(\"zoomstart\", i)).fire(new e.Event(\"zoom\", i)).fire(new e.Event(\"zoomend\", i)), c && this.fire(new e.Event(\"rotatestart\", i)).fire(new e.Event(\"rotate\", i)).fire(new e.Event(\"rotateend\", i)), l && this.fire(new e.Event(\"pitchstart\", i)).fire(new e.Event(\"pitch\", i)).fire(new e.Event(\"pitchend\", i)), this.fire(new e.Event(\"moveend\", i)), this;\n }\n easeTo(t, i) {\n this._stop(!1, t.easeId), (!1 === (t = e.extend({\n offset: [0, 0],\n duration: 500,\n easing: e.ease\n }, t)).animate || this._prefersReducedMotion(t)) && (t.duration = 0);\n const o = this.transform,\n r = this.getZoom(),\n n = this.getBearing(),\n s = this.getPitch(),\n a = this.getPadding(),\n l = \"zoom\" in t ? +t.zoom : r,\n c = \"bearing\" in t ? this._normalizeBearing(t.bearing, n) : n,\n h = \"pitch\" in t ? +t.pitch : s,\n u = \"padding\" in t ? t.padding : o.padding,\n _ = e.Point.convert(t.offset);\n let d, p, m;\n if (\"globe\" === o.projection.name) {\n const i = e.MercatorCoordinate.fromLngLat(o.center),\n r = _.rotate(-o.angle);\n i.x += r.x / o.worldSize, i.y += r.y / o.worldSize;\n const n = i.toLngLat(),\n s = e.LngLat.convert(t.center || n);\n this._normalizeCenter(s), d = o.centerPoint.add(r), p = new e.Point(i.x, i.y).mult(o.worldSize), m = new e.Point(e.mercatorXfromLng(s.lng), e.mercatorYfromLat(s.lat)).mult(o.worldSize).sub(p);\n } else {\n d = o.centerPoint.add(_);\n const i = o.pointLocation(d),\n r = e.LngLat.convert(t.center || i);\n this._normalizeCenter(r), p = o.project(i), m = o.project(r).sub(p);\n }\n const f = o.zoomScale(l - r);\n let g, v;\n t.around && (g = e.LngLat.convert(t.around), v = o.locationPoint(g));\n const x = this._zooming || l !== r,\n y = this._rotating || n !== c,\n b = this._pitching || h !== s,\n w = !o.isPaddingEqual(u),\n T = o => T => {\n if (x && (o.zoom = e.number(r, l, T)), y && (o.bearing = e.number(n, c, T)), b && (o.pitch = e.number(s, h, T)), w && (o.interpolatePadding(a, u, T), d = o.centerPoint.add(_)), g) o.setLocationAtPoint(g, v);else {\n const e = o.zoomScale(o.zoom - r),\n t = l > r ? Math.min(2, f) : Math.max(.5, f),\n i = Math.pow(t, 1 - T),\n n = o.unproject(p.add(m.mult(T * i)).mult(e));\n o.setLocationAtPoint(o.renderWorldCopies ? n.wrap() : n, d);\n }\n return t.preloadOnly || this._fireMoveEvents(i), o;\n };\n if (t.preloadOnly) {\n const e = this._emulate(T, t.duration, o);\n return this._preloadTiles(e), this;\n }\n const E = {\n moving: this._moving,\n zooming: this._zooming,\n rotating: this._rotating,\n pitching: this._pitching\n };\n return this._zooming = x, this._rotating = y, this._pitching = b, this._padding = w, this._easeId = t.easeId, this._prepareEase(i, t.noMoveStart, E), this._ease(T(o), e => {\n o.recenterOnTerrain(), this._afterEase(i, e);\n }, t), this;\n }\n _prepareEase(t, i, o = {}) {\n this._moving = !0, this.transform.cameraElevationReference = \"sea\", i || o.moving || this.fire(new e.Event(\"movestart\", t)), this._zooming && !o.zooming && this.fire(new e.Event(\"zoomstart\", t)), this._rotating && !o.rotating && this.fire(new e.Event(\"rotatestart\", t)), this._pitching && !o.pitching && this.fire(new e.Event(\"pitchstart\", t));\n }\n _fireMoveEvents(t) {\n this.fire(new e.Event(\"move\", t)), this._zooming && this.fire(new e.Event(\"zoom\", t)), this._rotating && this.fire(new e.Event(\"rotate\", t)), this._pitching && this.fire(new e.Event(\"pitch\", t));\n }\n _afterEase(t, i) {\n if (this._easeId && i && this._easeId === i) return;\n this._easeId = void 0, this.transform.cameraElevationReference = \"ground\";\n const o = this._zooming,\n r = this._rotating,\n n = this._pitching;\n this._moving = !1, this._zooming = !1, this._rotating = !1, this._pitching = !1, this._padding = !1, o && this.fire(new e.Event(\"zoomend\", t)), r && this.fire(new e.Event(\"rotateend\", t)), n && this.fire(new e.Event(\"pitchend\", t)), this.fire(new e.Event(\"moveend\", t));\n }\n flyTo(t, i) {\n if (this._prefersReducedMotion(t)) {\n const o = e.pick(t, [\"center\", \"zoom\", \"bearing\", \"pitch\", \"around\"]);\n return this.jumpTo(o, i);\n }\n this.stop(), t = e.extend({\n offset: [0, 0],\n speed: 1.2,\n curve: 1.42,\n easing: e.ease\n }, t);\n const o = this.transform,\n r = this.getZoom(),\n n = this.getBearing(),\n s = this.getPitch(),\n a = this.getPadding(),\n l = \"zoom\" in t ? e.clamp(+t.zoom, o.minZoom, o.maxZoom) : r,\n c = \"bearing\" in t ? this._normalizeBearing(t.bearing, n) : n,\n h = \"pitch\" in t ? +t.pitch : s,\n u = \"padding\" in t ? t.padding : o.padding,\n _ = o.zoomScale(l - r),\n d = e.Point.convert(t.offset);\n let p = o.centerPoint.add(d);\n const m = o.pointLocation(p),\n f = e.LngLat.convert(t.center || m);\n this._normalizeCenter(f);\n const g = o.project(m),\n v = o.project(f).sub(g);\n let x = t.curve;\n const y = Math.max(o.width, o.height),\n b = y / _,\n w = v.mag();\n if (\"minZoom\" in t) {\n const i = e.clamp(Math.min(t.minZoom, r, l), o.minZoom, o.maxZoom),\n n = y / o.zoomScale(i - r);\n x = Math.sqrt(n / w * 2);\n }\n const T = x * x;\n function E(e) {\n const t = (b * b - y * y + (e ? -1 : 1) * T * T * w * w) / (2 * (e ? b : y) * T * w);\n return Math.log(Math.sqrt(t * t + 1) - t);\n }\n function C(e) {\n return (Math.exp(e) - Math.exp(-e)) / 2;\n }\n function M(e) {\n return (Math.exp(e) + Math.exp(-e)) / 2;\n }\n const I = E(0);\n let P = function (e) {\n return M(I) / M(I + x * e);\n },\n S = function (e) {\n return y * ((M(I) * (C(t = I + x * e) / M(t)) - C(I)) / T) / w;\n var t;\n },\n D = (E(1) - I) / x;\n if (Math.abs(w) < 1e-6 || !isFinite(D)) {\n if (Math.abs(y - b) < 1e-6) return this.easeTo(t, i);\n const e = b < y ? -1 : 1;\n D = Math.abs(Math.log(b / y)) / x, S = function () {\n return 0;\n }, P = function (t) {\n return Math.exp(e * x * t);\n };\n }\n t.duration = \"duration\" in t ? +t.duration : 1e3 * D / (\"screenSpeed\" in t ? +t.screenSpeed / x : +t.speed), t.maxDuration && t.duration > t.maxDuration && (t.duration = 0);\n const L = n !== c,\n A = h !== s,\n z = !o.isPaddingEqual(u),\n R = o => _ => {\n const m = _ * D,\n x = 1 / P(m);\n o.zoom = 1 === _ ? l : r + o.scaleZoom(x), L && (o.bearing = e.number(n, c, _)), A && (o.pitch = e.number(s, h, _)), z && (o.interpolatePadding(a, u, _), p = o.centerPoint.add(d));\n const y = 1 === _ ? f : o.unproject(g.add(v.mult(S(m))).mult(x));\n return o.setLocationAtPoint(o.renderWorldCopies ? y.wrap() : y, p), o._updateCameraOnTerrain(), t.preloadOnly || this._fireMoveEvents(i), o;\n };\n if (t.preloadOnly) {\n const e = this._emulate(R, t.duration, o);\n return this._preloadTiles(e), this;\n }\n return this._zooming = !0, this._rotating = L, this._pitching = A, this._padding = z, this._prepareEase(i, !1), this._ease(R(o), () => this._afterEase(i), t), this;\n }\n isEasing() {\n return !!this._easeFrameId;\n }\n stop() {\n return this._stop();\n }\n _stop(e, t) {\n if (this._easeFrameId && (this._cancelRenderFrame(this._easeFrameId), this._easeFrameId = void 0, this._onEaseFrame = void 0), this._onEaseEnd) {\n const e = this._onEaseEnd;\n this._onEaseEnd = void 0, e.call(this, t);\n }\n if (!e) {\n const e = this.handlers;\n e && e.stop(!1);\n }\n return this;\n }\n _ease(t, i, o) {\n !1 === o.animate || 0 === o.duration ? (t(1), i()) : (this._easeStart = e.exported.now(), this._easeOptions = o, this._onEaseFrame = t, this._onEaseEnd = i, this._easeFrameId = this._requestRenderFrame(this._renderFrameCallback));\n }\n _renderFrameCallback() {\n const t = Math.min((e.exported.now() - this._easeStart) / this._easeOptions.duration, 1),\n i = this._onEaseFrame;\n i && i(this._easeOptions.easing(t)), t < 1 ? this._easeFrameId = this._requestRenderFrame(this._renderFrameCallback) : this.stop();\n }\n _normalizeBearing(t, i) {\n t = e.wrap(t, -180, 180);\n const o = Math.abs(t - i);\n return Math.abs(t - 360 - i) < o && (t -= 360), Math.abs(t + 360 - i) < o && (t += 360), t;\n }\n _normalizeCenter(e) {\n const t = this.transform;\n if (!t.renderWorldCopies || t.maxBounds) return;\n const i = e.lng - t.center.lng;\n e.lng += i > 180 ? -360 : i < -180 ? 360 : 0;\n }\n _prefersReducedMotion(t) {\n return this._respectPrefersReducedMotion && e.exported.prefersReducedMotion && !(t && t.essential);\n }\n _emulate(e, t, i) {\n const o = Math.ceil(15 * t / 1e3),\n r = [],\n n = e(i.clone());\n for (let e = 0; e <= o; e++) {\n const t = n(e / o);\n r.push(t.clone());\n }\n return r;\n }\n }\n class Hr {\n constructor(t = {}) {\n this.options = t, e.bindAll([\"_toggleAttribution\", \"_updateEditLink\", \"_updateData\", \"_updateCompact\"], this);\n }\n getDefaultPosition() {\n return \"bottom-right\";\n }\n onAdd(e) {\n const t = this.options && this.options.compact;\n return this._map = e, this._container = n(\"div\", \"mapboxgl-ctrl mapboxgl-ctrl-attrib\"), this._compactButton = n(\"button\", \"mapboxgl-ctrl-attrib-button\", this._container), n(\"span\", \"mapboxgl-ctrl-icon\", this._compactButton).setAttribute(\"aria-hidden\", \"true\"), this._compactButton.type = \"button\", this._compactButton.addEventListener(\"click\", this._toggleAttribution), this._setElementTitle(this._compactButton, \"ToggleAttribution\"), this._innerContainer = n(\"div\", \"mapboxgl-ctrl-attrib-inner\", this._container), this._innerContainer.setAttribute(\"role\", \"list\"), t && this._container.classList.add(\"mapboxgl-compact\"), this._updateAttributions(), this._updateEditLink(), this._map.on(\"styledata\", this._updateData), this._map.on(\"sourcedata\", this._updateData), this._map.on(\"moveend\", this._updateEditLink), void 0 === t && (this._map.on(\"resize\", this._updateCompact), this._updateCompact()), this._container;\n }\n onRemove() {\n this._container.remove(), this._map.off(\"styledata\", this._updateData), this._map.off(\"sourcedata\", this._updateData), this._map.off(\"moveend\", this._updateEditLink), this._map.off(\"resize\", this._updateCompact), this._map = void 0, this._attribHTML = void 0;\n }\n _setElementTitle(e, t) {\n const i = this._map._getUIString(`AttributionControl.${t}`);\n e.setAttribute(\"aria-label\", i), e.removeAttribute(\"title\"), e.firstElementChild && e.firstElementChild.setAttribute(\"title\", i);\n }\n _toggleAttribution() {\n this._container.classList.contains(\"mapboxgl-compact-show\") ? (this._container.classList.remove(\"mapboxgl-compact-show\"), this._compactButton.setAttribute(\"aria-expanded\", \"false\")) : (this._container.classList.add(\"mapboxgl-compact-show\"), this._compactButton.setAttribute(\"aria-expanded\", \"true\"));\n }\n _updateEditLink() {\n let t = this._editLink;\n t || (t = this._editLink = this._container.querySelector(\".mapbox-improve-map\"));\n const i = [{\n key: \"owner\",\n value: this.styleOwner\n }, {\n key: \"id\",\n value: this.styleId\n }, {\n key: \"access_token\",\n value: this._map._requestManager._customAccessToken || e.config.ACCESS_TOKEN\n }];\n if (t) {\n const o = i.reduce((e, t, o) => (t.value && (e += `${t.key}=${t.value}${o < i.length - 1 ? \"&\" : \"\"}`), e), \"?\");\n t.href = `${e.config.FEEDBACK_URL}/${o}#${Jo(this._map, !0)}`, t.rel = \"noopener nofollow\", this._setElementTitle(t, \"MapFeedback\");\n }\n }\n _updateData(e) {\n !e || \"metadata\" !== e.sourceDataType && \"visibility\" !== e.sourceDataType && \"style\" !== e.dataType || (this._updateAttributions(), this._updateEditLink());\n }\n _updateAttributions() {\n if (!this._map.style) return;\n let e = [];\n if (this._map.style.stylesheet) {\n const e = this._map.style.stylesheet;\n this.styleOwner = e.owner, this.styleId = e.id;\n }\n const t = this._map.style._sourceCaches;\n for (const i in t) {\n const o = t[i];\n if (o.used) {\n const t = o.getSource();\n t.attribution && e.indexOf(t.attribution) < 0 && e.push(t.attribution);\n }\n }\n e.sort((e, t) => e.length - t.length), e = e.filter((t, i) => {\n for (let o = i + 1; o < e.length; o++) if (e[o].indexOf(t) >= 0) return !1;\n return !0;\n }), this.options.customAttribution && (Array.isArray(this.options.customAttribution) ? e = [...this.options.customAttribution, ...e] : e.unshift(this.options.customAttribution));\n const i = e.join(\" | \");\n i !== this._attribHTML && (this._attribHTML = i, e.length ? (this._innerContainer.innerHTML = i, this._container.classList.remove(\"mapboxgl-attrib-empty\")) : this._container.classList.add(\"mapboxgl-attrib-empty\"), this._editLink = null);\n }\n _updateCompact() {\n this._map.getCanvasContainer().offsetWidth <= 640 ? this._container.classList.add(\"mapboxgl-compact\") : this._container.classList.remove(\"mapboxgl-compact\", \"mapboxgl-compact-show\");\n }\n }\n class Yr {\n constructor() {\n e.bindAll([\"_updateLogo\", \"_updateCompact\"], this);\n }\n onAdd(e) {\n this._map = e, this._container = n(\"div\", \"mapboxgl-ctrl\");\n const t = n(\"a\", \"mapboxgl-ctrl-logo\");\n return t.target = \"_blank\", t.rel = \"noopener nofollow\", t.href = \"https://www.mapbox.com/\", t.setAttribute(\"aria-label\", this._map._getUIString(\"LogoControl.Title\")), t.setAttribute(\"rel\", \"noopener nofollow\"), this._container.appendChild(t), this._container.style.display = \"none\", this._map.on(\"sourcedata\", this._updateLogo), this._updateLogo(), this._map.on(\"resize\", this._updateCompact), this._updateCompact(), this._container;\n }\n onRemove() {\n this._container.remove(), this._map.off(\"sourcedata\", this._updateLogo), this._map.off(\"resize\", this._updateCompact);\n }\n getDefaultPosition() {\n return \"bottom-left\";\n }\n _updateLogo(e) {\n e && \"metadata\" !== e.sourceDataType || (this._container.style.display = this._logoRequired() ? \"block\" : \"none\");\n }\n _logoRequired() {\n if (!this._map.style) return !0;\n const e = this._map.style._sourceCaches;\n if (0 === Object.entries(e).length) return !0;\n for (const t in e) {\n const i = e[t].getSource();\n if (i.hasOwnProperty(\"mapbox_logo\") && !i.mapbox_logo) return !1;\n }\n return !0;\n }\n _updateCompact() {\n const e = this._container.children;\n if (e.length) {\n const t = e[0];\n this._map.getCanvasContainer().offsetWidth < 250 ? t.classList.add(\"mapboxgl-compact\") : t.classList.remove(\"mapboxgl-compact\");\n }\n }\n }\n class Kr {\n constructor() {\n this._queue = [], this._id = 0, this._cleared = !1, this._currentlyRunning = !1;\n }\n add(e) {\n const t = ++this._id;\n return this._queue.push({\n callback: e,\n id: t,\n cancelled: !1\n }), t;\n }\n remove(e) {\n const t = this._currentlyRunning,\n i = t ? this._queue.concat(t) : this._queue;\n for (const t of i) if (t.id === e) return void (t.cancelled = !0);\n }\n run(e = 0) {\n const t = this._currentlyRunning = this._queue;\n this._queue = [];\n for (const i of t) if (!i.cancelled && (i.callback(e), this._cleared)) break;\n this._cleared = !1, this._currentlyRunning = !1;\n }\n clear() {\n this._currentlyRunning && (this._cleared = !0), this._queue = [];\n }\n }\n function Jr(t, i, o) {\n if (t = new e.LngLat(t.lng, t.lat), i) {\n const r = new e.LngLat(t.lng - 360, t.lat),\n n = new e.LngLat(t.lng + 360, t.lat),\n s = 360 * Math.ceil(Math.abs(t.lng - o.center.lng) / 360),\n a = o.locationPoint(t).distSqr(i),\n l = i.x < 0 || i.y < 0 || i.x > o.width || i.y > o.height;\n o.locationPoint(r).distSqr(i) < a && (l || Math.abs(r.lng - o.center.lng) < s) ? t = r : o.locationPoint(n).distSqr(i) < a && (l || Math.abs(n.lng - o.center.lng) < s) && (t = n);\n }\n for (; Math.abs(t.lng - o.center.lng) > 180;) {\n const e = o.locationPoint(t);\n if (e.x >= 0 && e.y >= 0 && e.x <= o.width && e.y <= o.height) break;\n t.lng > o.center.lng ? t.lng -= 360 : t.lng += 360;\n }\n return t;\n }\n const Qr = {\n center: \"translate(-50%,-50%)\",\n top: \"translate(-50%,0)\",\n \"top-left\": \"translate(0,0)\",\n \"top-right\": \"translate(-100%,0)\",\n bottom: \"translate(-50%,-100%)\",\n \"bottom-left\": \"translate(0,-100%)\",\n \"bottom-right\": \"translate(-100%,-100%)\",\n left: \"translate(0,-50%)\",\n right: \"translate(-100%,-50%)\"\n };\n class en extends e.Evented {\n constructor(t, i) {\n if (super(), (t instanceof e.window.HTMLElement || i) && (t = e.extend({\n element: t\n }, i)), e.bindAll([\"_update\", \"_onMove\", \"_onUp\", \"_addDragHandler\", \"_onMapClick\", \"_onKeyPress\", \"_clearFadeTimer\"], this), this._anchor = t && t.anchor || \"center\", this._color = t && t.color || \"#3FB1CE\", this._scale = t && t.scale || 1, this._draggable = t && t.draggable || !1, this._clickTolerance = t && t.clickTolerance || 0, this._isDragging = !1, this._state = \"inactive\", this._rotation = t && t.rotation || 0, this._rotationAlignment = t && t.rotationAlignment || \"auto\", this._pitchAlignment = t && t.pitchAlignment && t.pitchAlignment || \"auto\", this._updateMoving = () => this._update(!0), this._occludedOpacity = t && t.occludedOpacity || .2, t && t.element) this._element = t.element, this._offset = e.Point.convert(t && t.offset || [0, 0]);else {\n this._defaultMarker = !0, this._element = n(\"div\");\n const i = 41,\n o = 27,\n r = s(\"svg\", {\n display: \"block\",\n height: i * this._scale + \"px\",\n width: o * this._scale + \"px\",\n viewBox: `0 0 ${o} ${i}`\n }, this._element),\n a = s(\"radialGradient\", {\n id: \"shadowGradient\"\n }, s(\"defs\", {}, r));\n s(\"stop\", {\n offset: \"10%\",\n \"stop-opacity\": .4\n }, a), s(\"stop\", {\n offset: \"100%\",\n \"stop-opacity\": .05\n }, a), s(\"ellipse\", {\n cx: 13.5,\n cy: 34.8,\n rx: 10.5,\n ry: 5.25,\n fill: \"url(#shadowGradient)\"\n }, r), s(\"path\", {\n fill: this._color,\n d: \"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z\"\n }, r), s(\"path\", {\n opacity: .25,\n d: \"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z\"\n }, r), s(\"circle\", {\n fill: \"white\",\n cx: 13.5,\n cy: 13.5,\n r: 5.5\n }, r), this._offset = e.Point.convert(t && t.offset || [0, -14]);\n }\n this._element.hasAttribute(\"aria-label\") || this._element.setAttribute(\"aria-label\", \"Map marker\"), this._element.classList.add(\"mapboxgl-marker\"), this._element.addEventListener(\"dragstart\", e => {\n e.preventDefault();\n }), this._element.addEventListener(\"mousedown\", e => {\n e.preventDefault();\n });\n const o = this._element.classList;\n for (const e in Qr) o.remove(`mapboxgl-marker-anchor-${e}`);\n o.add(`mapboxgl-marker-anchor-${this._anchor}`), this._popup = null;\n }\n addTo(e) {\n return e === this._map || (this.remove(), this._map = e, e.getCanvasContainer().appendChild(this._element), e.on(\"move\", this._updateMoving), e.on(\"moveend\", this._update), e.on(\"remove\", this._clearFadeTimer), e._addMarker(this), this.setDraggable(this._draggable), this._update(), e.on(\"click\", this._onMapClick)), this;\n }\n remove() {\n const e = this._map;\n return e && (e.off(\"click\", this._onMapClick), e.off(\"move\", this._updateMoving), e.off(\"moveend\", this._update), e.off(\"mousedown\", this._addDragHandler), e.off(\"touchstart\", this._addDragHandler), e.off(\"mouseup\", this._onUp), e.off(\"touchend\", this._onUp), e.off(\"mousemove\", this._onMove), e.off(\"touchmove\", this._onMove), e.off(\"remove\", this._clearFadeTimer), e._removeMarker(this), this._map = void 0), this._clearFadeTimer(), this._element.remove(), this._popup && this._popup.remove(), this;\n }\n getLngLat() {\n return this._lngLat;\n }\n setLngLat(t) {\n return this._lngLat = e.LngLat.convert(t), this._pos = null, this._popup && this._popup.setLngLat(this._lngLat), this._update(!0), this;\n }\n getElement() {\n return this._element;\n }\n setPopup(e) {\n if (this._popup && (this._popup.remove(), this._popup = null, this._element.removeAttribute(\"role\"), this._element.removeEventListener(\"keypress\", this._onKeyPress), this._originalTabIndex || this._element.removeAttribute(\"tabindex\")), e) {\n if (!(\"offset\" in e.options)) {\n const t = 38.1,\n i = 13.5,\n o = Math.sqrt(Math.pow(i, 2) / 2);\n e.options.offset = this._defaultMarker ? {\n top: [0, 0],\n \"top-left\": [0, 0],\n \"top-right\": [0, 0],\n bottom: [0, -t],\n \"bottom-left\": [o, -1 * (t - i + o)],\n \"bottom-right\": [-o, -1 * (t - i + o)],\n left: [i, -1 * (t - i)],\n right: [-i, -1 * (t - i)]\n } : this._offset;\n }\n this._popup = e, e._marker = this, this._lngLat && this._popup.setLngLat(this._lngLat), this._element.setAttribute(\"role\", \"button\"), this._originalTabIndex = this._element.getAttribute(\"tabindex\"), this._originalTabIndex || this._element.setAttribute(\"tabindex\", \"0\"), this._element.addEventListener(\"keypress\", this._onKeyPress), this._element.setAttribute(\"aria-expanded\", \"false\");\n }\n return this;\n }\n _onKeyPress(e) {\n const t = e.code,\n i = e.charCode || e.keyCode;\n \"Space\" !== t && \"Enter\" !== t && 32 !== i && 13 !== i || this.togglePopup();\n }\n _onMapClick(e) {\n const t = e.originalEvent.target,\n i = this._element;\n this._popup && (t === i || i.contains(t)) && this.togglePopup();\n }\n getPopup() {\n return this._popup;\n }\n togglePopup() {\n const e = this._popup;\n return e ? (e.isOpen() ? (e.remove(), this._element.setAttribute(\"aria-expanded\", \"false\")) : this._map && (e.addTo(this._map), this._element.setAttribute(\"aria-expanded\", \"true\")), this) : this;\n }\n _behindTerrain() {\n const e = this._map,\n t = this._pos;\n if (!e || !t) return !1;\n const i = e.unproject(t),\n o = e.getFreeCameraOptions();\n if (!o.position) return !1;\n const r = o.position.toLngLat();\n return r.distanceTo(i) < .9 * r.distanceTo(this._lngLat);\n }\n _evaluateOpacity() {\n const t = this._map;\n if (!t) return;\n const i = this._pos;\n if (!i || i.x < 0 || i.x > t.transform.width || i.y < 0 || i.y > t.transform.height) return void this._clearFadeTimer();\n const o = t.unproject(i);\n let r;\n t._showingGlobe() && e.isLngLatBehindGlobe(t.transform, this._lngLat) ? r = 0 : (r = 1 - t._queryFogOpacity(o), t.transform._terrainEnabled() && t.getTerrain() && this._behindTerrain() && (r *= this._occludedOpacity)), this._element.style.opacity = `${r}`, this._element.style.pointerEvents = r > 0 ? \"auto\" : \"none\", this._popup && this._popup._setOpacity(r), this._fadeTimer = null;\n }\n _clearFadeTimer() {\n this._fadeTimer && (clearTimeout(this._fadeTimer), this._fadeTimer = null);\n }\n _updateDOM() {\n const e = this._pos;\n if (!e || !this._map) return;\n const t = this._offset.mult(this._scale);\n this._element.style.transform = `\\n translate(${e.x}px,${e.y}px)\\n ${Qr[this._anchor]}\\n ${this._calculateXYTransform()} ${this._calculateZTransform()}\\n translate(${t.x}px,${t.y}px)\\n `;\n }\n _calculateXYTransform() {\n const t = this._pos,\n i = this._map,\n o = this.getPitchAlignment();\n if (!i || !t || \"map\" !== o) return \"\";\n if (!i._showingGlobe()) {\n const e = i.getPitch();\n return e ? `rotateX(${e}deg)` : \"\";\n }\n const r = e.radToDeg(e.globeTiltAtLngLat(i.transform, this._lngLat)),\n n = t.sub(e.globeCenterToScreenPoint(i.transform)),\n s = Math.abs(n.x) + Math.abs(n.y);\n if (0 === s) return \"\";\n const a = r / s;\n return `rotateX(${-n.y * a}deg) rotateY(${n.x * a}deg)`;\n }\n _calculateZTransform() {\n const t = this._pos,\n i = this._map;\n if (!i || !t) return \"\";\n let o = 0;\n const r = this.getRotationAlignment();\n if (\"map\" === r) {\n if (i._showingGlobe()) {\n const t = i.project(new e.LngLat(this._lngLat.lng, this._lngLat.lat + .001)),\n r = i.project(new e.LngLat(this._lngLat.lng, this._lngLat.lat - .001)).sub(t);\n o = e.radToDeg(Math.atan2(r.y, r.x)) - 90;\n } else o = -i.getBearing();\n } else if (\"horizon\" === r) {\n const r = e.smoothstep(4, 6, i.getZoom()),\n n = e.globeCenterToScreenPoint(i.transform);\n n.y += r * i.transform.height;\n const s = t.sub(n),\n a = e.radToDeg(Math.atan2(s.y, s.x));\n o = (a > 90 ? a - 270 : a + 90) * (1 - r);\n }\n return o += this._rotation, o ? `rotateZ(${o}deg)` : \"\";\n }\n _update(t) {\n e.window.cancelAnimationFrame(this._updateFrameId);\n const i = this._map;\n i && (i.transform.renderWorldCopies && (this._lngLat = Jr(this._lngLat, this._pos, i.transform)), this._pos = i.project(this._lngLat), !0 === t ? this._updateFrameId = e.window.requestAnimationFrame(() => {\n this._element && this._pos && this._anchor && (this._pos = this._pos.round(), this._updateDOM());\n }) : this._pos = this._pos.round(), i._requestDomTask(() => {\n this._map && (this._element && this._pos && this._anchor && this._updateDOM(), (i._showingGlobe() || i.getTerrain() || i.getFog()) && !this._fadeTimer && (this._fadeTimer = setTimeout(this._evaluateOpacity.bind(this), 60)));\n }));\n }\n getOffset() {\n return this._offset;\n }\n setOffset(t) {\n return this._offset = e.Point.convert(t), this._update(), this;\n }\n _onMove(t) {\n const i = this._map;\n if (!i) return;\n const o = this._pointerdownPos,\n r = this._positionDelta;\n if (o && r) {\n if (!this._isDragging) {\n const e = this._clickTolerance || i._clickTolerance;\n if (t.point.dist(o) < e) return;\n this._isDragging = !0;\n }\n this._pos = t.point.sub(r), this._lngLat = i.unproject(this._pos), this.setLngLat(this._lngLat), this._element.style.pointerEvents = \"none\", \"pending\" === this._state && (this._state = \"active\", this.fire(new e.Event(\"dragstart\"))), this.fire(new e.Event(\"drag\"));\n }\n }\n _onUp() {\n this._element.style.pointerEvents = \"auto\", this._positionDelta = null, this._pointerdownPos = null, this._isDragging = !1;\n const t = this._map;\n t && (t.off(\"mousemove\", this._onMove), t.off(\"touchmove\", this._onMove)), \"active\" === this._state && this.fire(new e.Event(\"dragend\")), this._state = \"inactive\";\n }\n _addDragHandler(e) {\n const t = this._map,\n i = this._pos;\n t && i && this._element.contains(e.originalEvent.target) && (e.preventDefault(), this._positionDelta = e.point.sub(i), this._pointerdownPos = e.point, this._state = \"pending\", t.on(\"mousemove\", this._onMove), t.on(\"touchmove\", this._onMove), t.once(\"mouseup\", this._onUp), t.once(\"touchend\", this._onUp));\n }\n setDraggable(e) {\n this._draggable = !!e;\n const t = this._map;\n return t && (e ? (t.on(\"mousedown\", this._addDragHandler), t.on(\"touchstart\", this._addDragHandler)) : (t.off(\"mousedown\", this._addDragHandler), t.off(\"touchstart\", this._addDragHandler))), this;\n }\n isDraggable() {\n return this._draggable;\n }\n setRotation(e) {\n return this._rotation = e || 0, this._update(), this;\n }\n getRotation() {\n return this._rotation;\n }\n setRotationAlignment(e) {\n return this._rotationAlignment = e || \"auto\", this._update(), this;\n }\n getRotationAlignment() {\n return \"auto\" === this._rotationAlignment || \"horizon\" === this._rotationAlignment && this._map && !this._map._showingGlobe() ? \"viewport\" : this._rotationAlignment;\n }\n setPitchAlignment(e) {\n return this._pitchAlignment = e || \"auto\", this._update(), this;\n }\n getPitchAlignment() {\n return \"auto\" === this._pitchAlignment ? this.getRotationAlignment() : this._pitchAlignment;\n }\n setOccludedOpacity(e) {\n return this._occludedOpacity = e || .2, this._update(), this;\n }\n getOccludedOpacity() {\n return this._occludedOpacity;\n }\n }\n const tn = {\n closeButton: !0,\n closeOnClick: !0,\n focusAfterOpen: !0,\n className: \"\",\n maxWidth: \"240px\"\n },\n on = [\"a[href]\", \"[tabindex]:not([tabindex='-1'])\", \"[contenteditable]:not([contenteditable='false'])\", \"button:not([disabled])\", \"input:not([disabled])\", \"select:not([disabled])\", \"textarea:not([disabled])\"].join(\", \");\n function rn(t = new e.Point(0, 0), i = \"bottom\") {\n if (\"number\" == typeof t) {\n const o = Math.round(Math.sqrt(.5 * Math.pow(t, 2)));\n switch (i) {\n case \"top\":\n return new e.Point(0, t);\n case \"top-left\":\n return new e.Point(o, o);\n case \"top-right\":\n return new e.Point(-o, o);\n case \"bottom\":\n return new e.Point(0, -t);\n case \"bottom-left\":\n return new e.Point(o, -o);\n case \"bottom-right\":\n return new e.Point(-o, -o);\n case \"left\":\n return new e.Point(t, 0);\n case \"right\":\n return new e.Point(-t, 0);\n }\n return new e.Point(0, 0);\n }\n return t instanceof e.Point || Array.isArray(t) ? e.Point.convert(t) : e.Point.convert(t[i] || [0, 0]);\n }\n class nn {\n constructor(e) {\n this.jumpTo(e);\n }\n getValue(t) {\n if (t <= this._startTime) return this._start;\n if (t >= this._endTime) return this._end;\n const i = e.easeCubicInOut((t - this._startTime) / (this._endTime - this._startTime));\n return this._start * (1 - i) + this._end * i;\n }\n isEasing(e) {\n return e >= this._startTime && e <= this._endTime;\n }\n jumpTo(e) {\n this._startTime = -1 / 0, this._endTime = -1 / 0, this._start = e, this._end = e;\n }\n easeTo(e, t, i) {\n this._start = this.getValue(t), this._end = e, this._startTime = t, this._endTime = t + i;\n }\n }\n const sn = {\n \"AttributionControl.ToggleAttribution\": \"Toggle attribution\",\n \"AttributionControl.MapFeedback\": \"Map feedback\",\n \"FullscreenControl.Enter\": \"Enter fullscreen\",\n \"FullscreenControl.Exit\": \"Exit fullscreen\",\n \"GeolocateControl.FindMyLocation\": \"Find my location\",\n \"GeolocateControl.LocationNotAvailable\": \"Location not available\",\n \"LogoControl.Title\": \"Mapbox logo\",\n \"Map.Title\": \"Map\",\n \"NavigationControl.ResetBearing\": \"Reset bearing to north\",\n \"NavigationControl.ZoomIn\": \"Zoom in\",\n \"NavigationControl.ZoomOut\": \"Zoom out\",\n \"ScrollZoomBlocker.CtrlMessage\": \"Use ctrl + scroll to zoom the map\",\n \"ScrollZoomBlocker.CmdMessage\": \"Use ⌘ + scroll to zoom the map\",\n \"TouchPanBlocker.Message\": \"Use two fingers to move the map\"\n },\n an = {\n center: [0, 0],\n zoom: 0,\n bearing: 0,\n pitch: 0,\n minZoom: -2,\n maxZoom: 22,\n minPitch: 0,\n maxPitch: 85,\n interactive: !0,\n scrollZoom: !0,\n boxZoom: !0,\n dragRotate: !0,\n dragPan: !0,\n keyboard: !0,\n doubleClickZoom: !0,\n touchZoomRotate: !0,\n touchPitch: !0,\n cooperativeGestures: !1,\n performanceMetricsCollection: !0,\n bearingSnap: 7,\n clickTolerance: 3,\n pitchWithRotate: !0,\n hash: !1,\n attributionControl: !0,\n failIfMajorPerformanceCaveat: !1,\n preserveDrawingBuffer: !1,\n trackResize: !0,\n optimizeForTerrain: !0,\n renderWorldCopies: !0,\n refreshExpiredTiles: !0,\n minTileCacheSize: null,\n maxTileCacheSize: null,\n localIdeographFontFamily: \"sans-serif\",\n localFontFamily: null,\n transformRequest: null,\n accessToken: null,\n fadeDuration: 300,\n respectPrefersReducedMotion: !0,\n crossSourceCollisions: !0\n },\n ln = {\n showCompass: !0,\n showZoom: !0,\n visualizePitch: !1\n };\n class cn {\n constructor(t, i, o = !1) {\n this._clickTolerance = 10, this.element = i, this.mouseRotate = new yr({\n clickTolerance: t.dragRotate._mouseRotate._clickTolerance\n }), this.map = t, o && (this.mousePitch = new br({\n clickTolerance: t.dragRotate._mousePitch._clickTolerance\n })), e.bindAll([\"mousedown\", \"mousemove\", \"mouseup\", \"touchstart\", \"touchmove\", \"touchend\", \"reset\"], this), i.addEventListener(\"mousedown\", this.mousedown), i.addEventListener(\"touchstart\", this.touchstart, {\n passive: !1\n }), i.addEventListener(\"touchmove\", this.touchmove), i.addEventListener(\"touchend\", this.touchend), i.addEventListener(\"touchcancel\", this.reset);\n }\n down(e, t) {\n this.mouseRotate.mousedown(e, t), this.mousePitch && this.mousePitch.mousedown(e, t), h();\n }\n move(e, t) {\n const i = this.map,\n o = this.mouseRotate.mousemoveWindow(e, t),\n r = o && o.bearingDelta;\n if (r && i.setBearing(i.getBearing() + r), this.mousePitch) {\n const o = this.mousePitch.mousemoveWindow(e, t),\n r = o && o.pitchDelta;\n r && i.setPitch(i.getPitch() + r);\n }\n }\n off() {\n const e = this.element;\n e.removeEventListener(\"mousedown\", this.mousedown), e.removeEventListener(\"touchstart\", this.touchstart, {\n passive: !1\n }), e.removeEventListener(\"touchmove\", this.touchmove), e.removeEventListener(\"touchend\", this.touchend), e.removeEventListener(\"touchcancel\", this.reset), this.offTemp();\n }\n offTemp() {\n u(), e.window.removeEventListener(\"mousemove\", this.mousemove), e.window.removeEventListener(\"mouseup\", this.mouseup);\n }\n mousedown(t) {\n this.down(e.extend({}, t, {\n ctrlKey: !0,\n preventDefault: () => t.preventDefault()\n }), p(this.element, t)), e.window.addEventListener(\"mousemove\", this.mousemove), e.window.addEventListener(\"mouseup\", this.mouseup);\n }\n mousemove(e) {\n this.move(e, p(this.element, e));\n }\n mouseup(e) {\n this.mouseRotate.mouseupWindow(e), this.mousePitch && this.mousePitch.mouseupWindow(e), this.offTemp();\n }\n touchstart(e) {\n 1 !== e.targetTouches.length ? this.reset() : (this._startPos = this._lastPos = m(this.element, e.targetTouches)[0], this.down({\n type: \"mousedown\",\n button: 0,\n ctrlKey: !0,\n preventDefault: () => e.preventDefault()\n }, this._startPos));\n }\n touchmove(e) {\n 1 !== e.targetTouches.length ? this.reset() : (this._lastPos = m(this.element, e.targetTouches)[0], this.move({\n preventDefault: () => e.preventDefault()\n }, this._lastPos));\n }\n touchend(e) {\n 0 === e.targetTouches.length && this._startPos && this._lastPos && this._startPos.dist(this._lastPos) < this._clickTolerance && this.element.click(), this.reset();\n }\n reset() {\n this.mouseRotate.reset(), this.mousePitch && this.mousePitch.reset(), delete this._startPos, delete this._lastPos, this.offTemp();\n }\n }\n const hn = {\n positionOptions: {\n enableHighAccuracy: !1,\n maximumAge: 0,\n timeout: 6e3\n },\n fitBoundsOptions: {\n maxZoom: 15\n },\n trackUserLocation: !1,\n showAccuracyCircle: !0,\n showUserLocation: !0,\n showUserHeading: !1\n },\n un = {\n maxWidth: 100,\n unit: \"metric\"\n },\n _n = {\n kilometer: \"km\",\n meter: \"m\",\n mile: \"mi\",\n foot: \"ft\",\n \"nautical-mile\": \"nm\"\n },\n dn = {\n version: e.version,\n supported: i,\n setRTLTextPlugin: e.setRTLTextPlugin,\n getRTLTextPluginStatus: e.getRTLTextPluginStatus,\n Map: class extends $r {\n constructor(t) {\n if (e.LivePerformanceUtils.mark(e.PerformanceMarkers.create), null != (t = e.extend({}, an, t)).minZoom && null != t.maxZoom && t.minZoom > t.maxZoom) throw new Error(\"maxZoom must be greater than or equal to minZoom\");\n if (null != t.minPitch && null != t.maxPitch && t.minPitch > t.maxPitch) throw new Error(\"maxPitch must be greater than or equal to minPitch\");\n if (null != t.minPitch && t.minPitch < 0) throw new Error(\"minPitch must be greater than or equal to 0\");\n if (null != t.maxPitch && t.maxPitch > 85) throw new Error(\"maxPitch must be less than or equal to 85\");\n if (t.antialias && e.isSafariWithAntialiasingBug(e.window) && (t.antialias = !1, e.warnOnce(\"Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609\")), super(new Ho(t.minZoom, t.maxZoom, t.minPitch, t.maxPitch, t.renderWorldCopies), t), this._interactive = t.interactive, this._minTileCacheSize = t.minTileCacheSize, this._maxTileCacheSize = t.maxTileCacheSize, this._failIfMajorPerformanceCaveat = t.failIfMajorPerformanceCaveat, this._preserveDrawingBuffer = t.preserveDrawingBuffer, this._antialias = t.antialias, this._useWebGL2 = t.useWebGL2, this._trackResize = t.trackResize, this._bearingSnap = t.bearingSnap, this._refreshExpiredTiles = t.refreshExpiredTiles, this._fadeDuration = t.fadeDuration, this._isInitialLoad = !0, this._crossSourceCollisions = t.crossSourceCollisions, this._collectResourceTiming = t.collectResourceTiming, this._optimizeForTerrain = t.optimizeForTerrain, this._language = this._parseLanguage(t.language), this._worldview = t.worldview, this._renderTaskQueue = new Kr(), this._domRenderTaskQueue = new Kr(), this._controls = [], this._markers = [], this._popups = [], this._mapId = e.uniqueId(), this._locale = e.extend({}, sn, t.locale), this._clickTolerance = t.clickTolerance, this._cooperativeGestures = t.cooperativeGestures, this._performanceMetricsCollection = t.performanceMetricsCollection, this._containerWidth = 0, this._containerHeight = 0, this._averageElevationLastSampledAt = -1 / 0, this._averageElevationExaggeration = 0, this._averageElevation = new nn(0), this._interactionRange = [1 / 0, -1 / 0], this._visibilityHidden = 0, this._useExplicitProjection = !1, this._requestManager = new e.RequestManager(t.transformRequest, t.accessToken, t.testMode), this._silenceAuthErrors = !!t.testMode, \"string\" == typeof t.container) {\n if (this._container = e.window.document.getElementById(t.container), !this._container) throw new Error(`Container '${t.container}' not found.`);\n } else {\n if (!(t.container instanceof e.window.HTMLElement)) throw new Error(\"Invalid type: 'container' must be a String or HTMLElement.\");\n this._container = t.container;\n }\n if (this._container.childNodes.length > 0 && e.warnOnce(\"The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead.\"), t.maxBounds && this.setMaxBounds(t.maxBounds), e.bindAll([\"_onWindowOnline\", \"_onWindowResize\", \"_onVisibilityChange\", \"_onMapScroll\", \"_contextLost\", \"_contextRestored\"], this), this._setupContainer(), this._setupPainter(), void 0 === this.painter) throw new Error(\"Failed to initialize WebGL.\");\n this.on(\"move\", () => this._update(!1)), this.on(\"moveend\", () => this._update(!1)), this.on(\"zoom\", () => this._update(!0)), void 0 !== e.window && (e.window.addEventListener(\"online\", this._onWindowOnline, !1), e.window.addEventListener(\"resize\", this._onWindowResize, !1), e.window.addEventListener(\"orientationchange\", this._onWindowResize, !1), e.window.addEventListener(\"webkitfullscreenchange\", this._onWindowResize, !1), e.window.addEventListener(\"visibilitychange\", this._onVisibilityChange, !1)), this.handlers = new Xr(this, t), this._localFontFamily = t.localFontFamily, this._localIdeographFontFamily = t.localIdeographFontFamily, t.style && this.setStyle(t.style, {\n localFontFamily: this._localFontFamily,\n localIdeographFontFamily: this._localIdeographFontFamily\n }), t.projection && this.setProjection(t.projection), this._hash = t.hash && new Ko(\"string\" == typeof t.hash && t.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({\n center: t.center,\n zoom: t.zoom,\n bearing: t.bearing,\n pitch: t.pitch\n }), t.bounds && (this.resize(), this.fitBounds(t.bounds, e.extend({}, t.fitBoundsOptions, {\n duration: 0\n })))), this.resize(), t.attributionControl && this.addControl(new Hr({\n customAttribution: t.customAttribution\n })), this._logoControl = new Yr(), this.addControl(this._logoControl, t.logoPosition), this.on(\"style.load\", () => {\n this.transform.unmodified && this.jumpTo(this.style.stylesheet);\n }), this.on(\"data\", t => {\n this._update(\"style\" === t.dataType), this.fire(new e.Event(`${t.dataType}data`, t));\n }), this.on(\"dataloading\", t => {\n this.fire(new e.Event(`${t.dataType}dataloading`, t));\n });\n }\n _getMapId() {\n return this._mapId;\n }\n addControl(t, i) {\n if (void 0 === i && (i = t.getDefaultPosition ? t.getDefaultPosition() : \"top-right\"), !t || !t.onAdd) return this.fire(new e.ErrorEvent(new Error(\"Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.\")));\n const o = t.onAdd(this);\n this._controls.push(t);\n const r = this._controlPositions[i];\n return -1 !== i.indexOf(\"bottom\") ? r.insertBefore(o, r.firstChild) : r.appendChild(o), this;\n }\n removeControl(t) {\n if (!t || !t.onRemove) return this.fire(new e.ErrorEvent(new Error(\"Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.\")));\n const i = this._controls.indexOf(t);\n return i > -1 && this._controls.splice(i, 1), t.onRemove(this), this;\n }\n hasControl(e) {\n return this._controls.indexOf(e) > -1;\n }\n getContainer() {\n return this._container;\n }\n getCanvasContainer() {\n return this._canvasContainer;\n }\n getCanvas() {\n return this._canvas;\n }\n resize(t) {\n if (this._updateContainerDimensions(), this._containerWidth === this.transform.width && this._containerHeight === this.transform.height) return this;\n this._resizeCanvas(this._containerWidth, this._containerHeight), this.transform.resize(this._containerWidth, this._containerHeight), this.painter.resize(Math.ceil(this._containerWidth), Math.ceil(this._containerHeight));\n const i = !this._moving;\n return i && this.fire(new e.Event(\"movestart\", t)).fire(new e.Event(\"move\", t)), this.fire(new e.Event(\"resize\", t)), i && this.fire(new e.Event(\"moveend\", t)), this;\n }\n getBounds() {\n return this.transform.getBounds();\n }\n getMaxBounds() {\n return this.transform.getMaxBounds() || null;\n }\n setMaxBounds(t) {\n return this.transform.setMaxBounds(e.LngLatBounds.convert(t)), this._update();\n }\n setMinZoom(t) {\n if ((t = null == t ? -2 : t) >= -2 && t <= this.transform.maxZoom) return this.transform.minZoom = t, this._update(), this.getZoom() < t ? this.setZoom(t) : this.fire(new e.Event(\"zoomstart\")).fire(new e.Event(\"zoom\")).fire(new e.Event(\"zoomend\")), this;\n throw new Error(\"minZoom must be between -2 and the current maxZoom, inclusive\");\n }\n getMinZoom() {\n return this.transform.minZoom;\n }\n setMaxZoom(t) {\n if ((t = null == t ? 22 : t) >= this.transform.minZoom) return this.transform.maxZoom = t, this._update(), this.getZoom() > t ? this.setZoom(t) : this.fire(new e.Event(\"zoomstart\")).fire(new e.Event(\"zoom\")).fire(new e.Event(\"zoomend\")), this;\n throw new Error(\"maxZoom must be greater than the current minZoom\");\n }\n getMaxZoom() {\n return this.transform.maxZoom;\n }\n setMinPitch(t) {\n if ((t = null == t ? 0 : t) < 0) throw new Error(\"minPitch must be greater than or equal to 0\");\n if (t >= 0 && t <= this.transform.maxPitch) return this.transform.minPitch = t, this._update(), this.getPitch() < t ? this.setPitch(t) : this.fire(new e.Event(\"pitchstart\")).fire(new e.Event(\"pitch\")).fire(new e.Event(\"pitchend\")), this;\n throw new Error(\"minPitch must be between 0 and the current maxPitch, inclusive\");\n }\n getMinPitch() {\n return this.transform.minPitch;\n }\n setMaxPitch(t) {\n if ((t = null == t ? 85 : t) > 85) throw new Error(\"maxPitch must be less than or equal to 85\");\n if (t >= this.transform.minPitch) return this.transform.maxPitch = t, this._update(), this.getPitch() > t ? this.setPitch(t) : this.fire(new e.Event(\"pitchstart\")).fire(new e.Event(\"pitch\")).fire(new e.Event(\"pitchend\")), this;\n throw new Error(\"maxPitch must be greater than or equal to minPitch\");\n }\n getMaxPitch() {\n return this.transform.maxPitch;\n }\n getRenderWorldCopies() {\n return this.transform.renderWorldCopies;\n }\n setRenderWorldCopies(e) {\n return this.transform.renderWorldCopies = e, this.transform.renderWorldCopies || this._forceMarkerAndPopupUpdate(!0), this._update();\n }\n getLanguage() {\n return this._language;\n }\n _parseLanguage(t) {\n return \"auto\" === t ? e.window.navigator.language : Array.isArray(t) ? 0 === t.length ? void 0 : t.map(t => \"auto\" === t ? e.window.navigator.language : t) : t;\n }\n setLanguage(e) {\n const t = this._parseLanguage(e);\n if (!this.style || t === this._language) return this;\n this._language = t, this.style._reloadSources();\n for (const e of this._controls) e._setLanguage && e._setLanguage(this._language);\n return this;\n }\n getWorldview() {\n return this._worldview;\n }\n setWorldview(e) {\n return this.style && e !== this._worldview ? (this._worldview = e, this.style._reloadSources(), this) : this;\n }\n getProjection() {\n return this.transform.mercatorFromTransition ? {\n name: \"globe\",\n center: [0, 0]\n } : this.transform.getProjection();\n }\n _showingGlobe() {\n return \"globe\" === this.transform.projection.name;\n }\n setProjection(e) {\n return this._lazyInitEmptyStyle(), e ? \"string\" == typeof e && (e = {\n name: e\n }) : e = null, this._useExplicitProjection = !!e, this._prioritizeAndUpdateProjection(e, this.style.stylesheet ? this.style.stylesheet.projection : null);\n }\n _updateProjectionTransition() {\n if (\"globe\" !== this.getProjection().name) return;\n const t = this.transform,\n i = t.projection.name;\n let o;\n \"globe\" === i && t.zoom >= e.GLOBE_ZOOM_THRESHOLD_MAX ? (t.setMercatorFromTransition(), o = !0) : \"mercator\" === i && t.zoom < e.GLOBE_ZOOM_THRESHOLD_MAX && (t.setProjection({\n name: \"globe\"\n }), o = !0), o && (this.style.applyProjectionUpdate(), this.style._forceSymbolLayerUpdate());\n }\n _prioritizeAndUpdateProjection(e, t) {\n return this._updateProjection(e || t || {\n name: \"mercator\"\n });\n }\n _updateProjection(t) {\n let i;\n if (i = \"globe\" === t.name && this.transform.zoom >= e.GLOBE_ZOOM_THRESHOLD_MAX ? this.transform.setMercatorFromTransition() : this.transform.setProjection(t), this.style.applyProjectionUpdate(), i) {\n this.painter.clearBackgroundTiles();\n for (const e in this.style._sourceCaches) this.style._sourceCaches[e].clearTiles();\n this._update(!0), this._forceMarkerAndPopupUpdate(!0);\n }\n return this;\n }\n project(t) {\n return this.transform.locationPoint3D(e.LngLat.convert(t));\n }\n unproject(t) {\n return this.transform.pointLocation3D(e.Point.convert(t));\n }\n isMoving() {\n return this._moving || this.handlers && this.handlers.isMoving() || !1;\n }\n isZooming() {\n return this._zooming || this.handlers && this.handlers.isZooming() || !1;\n }\n isRotating() {\n return this._rotating || this.handlers && this.handlers.isRotating() || !1;\n }\n _isDragging() {\n return this.handlers && this.handlers._isDragging() || !1;\n }\n _createDelegatedListener(e, t, i) {\n if (\"mouseenter\" === e || \"mouseover\" === e) {\n let o = !1;\n const r = r => {\n const n = t.filter(e => this.getLayer(e)),\n s = n.length ? this.queryRenderedFeatures(r.point, {\n layers: n\n }) : [];\n s.length ? o || (o = !0, i.call(this, new ar(e, this, r.originalEvent, {\n features: s\n }))) : o = !1;\n },\n n = () => {\n o = !1;\n };\n return {\n layers: new Set(t),\n listener: i,\n delegates: {\n mousemove: r,\n mouseout: n\n }\n };\n }\n if (\"mouseleave\" === e || \"mouseout\" === e) {\n let o = !1;\n const r = r => {\n const n = t.filter(e => this.getLayer(e));\n (n.length ? this.queryRenderedFeatures(r.point, {\n layers: n\n }) : []).length ? o = !0 : o && (o = !1, i.call(this, new ar(e, this, r.originalEvent)));\n },\n n = t => {\n o && (o = !1, i.call(this, new ar(e, this, t.originalEvent)));\n };\n return {\n layers: new Set(t),\n listener: i,\n delegates: {\n mousemove: r,\n mouseout: n\n }\n };\n }\n {\n const o = e => {\n const o = t.filter(e => this.getLayer(e)),\n r = o.length ? this.queryRenderedFeatures(e.point, {\n layers: o\n }) : [];\n r.length && (e.features = r, i.call(this, e), delete e.features);\n };\n return {\n layers: new Set(t),\n listener: i,\n delegates: {\n [e]: o\n }\n };\n }\n }\n on(e, t, i) {\n if (void 0 === i) return super.on(e, t);\n Array.isArray(t) || (t = [t]);\n const o = this._createDelegatedListener(e, t, i);\n this._delegatedListeners = this._delegatedListeners || {}, this._delegatedListeners[e] = this._delegatedListeners[e] || [], this._delegatedListeners[e].push(o);\n for (const e in o.delegates) this.on(e, o.delegates[e]);\n return this;\n }\n once(e, t, i) {\n if (void 0 === i) return super.once(e, t);\n Array.isArray(t) || (t = [t]);\n const o = this._createDelegatedListener(e, t, i);\n for (const e in o.delegates) this.once(e, o.delegates[e]);\n return this;\n }\n off(e, t, i) {\n if (void 0 === i) return super.off(e, t);\n t = new Set(Array.isArray(t) ? t : [t]);\n const o = (e, t) => {\n if (e.size !== t.size) return !1;\n for (const i of e) if (!t.has(i)) return !1;\n return !0;\n },\n r = this._delegatedListeners ? this._delegatedListeners[e] : void 0;\n return r && (e => {\n for (let r = 0; r < e.length; r++) {\n const n = e[r];\n if (n.listener === i && o(n.layers, t)) {\n for (const e in n.delegates) this.off(e, n.delegates[e]);\n return e.splice(r, 1), this;\n }\n }\n })(r), this;\n }\n queryRenderedFeatures(t, i) {\n return this.style ? (void 0 !== i || void 0 === t || t instanceof e.Point || Array.isArray(t) || (i = t, t = void 0), this.style.queryRenderedFeatures(t = t || [[0, 0], [this.transform.width, this.transform.height]], i = i || {}, this.transform)) : [];\n }\n querySourceFeatures(e, t) {\n return this.style.querySourceFeatures(e, t);\n }\n isPointOnSurface(t) {\n const {\n name: i\n } = this.transform.projection;\n return \"globe\" !== i && \"mercator\" !== i && e.warnOnce(`${i} projection does not support isPointOnSurface, this API may behave unexpectedly.`), this.transform.isPointOnSurface(e.Point.convert(t));\n }\n setStyle(t, i) {\n return !1 !== (i = e.extend({}, {\n localIdeographFontFamily: this._localIdeographFontFamily,\n localFontFamily: this._localFontFamily\n }, i)).diff && i.localIdeographFontFamily === this._localIdeographFontFamily && i.localFontFamily === this._localFontFamily && this.style && t ? (this._diffStyle(t, i), this) : (this._localIdeographFontFamily = i.localIdeographFontFamily, this._localFontFamily = i.localFontFamily, this._updateStyle(t, i));\n }\n _getUIString(e) {\n const t = this._locale[e];\n if (null == t) throw new Error(`Missing UI string '${e}'`);\n return t;\n }\n _updateStyle(e, t) {\n return this.style && (this.style.setEventedParent(null), this.style._remove(), this.style = void 0), e && (this.style = new Kt(this, t || {}), this.style.setEventedParent(this, {\n style: this.style\n }), \"string\" == typeof e ? this.style.loadURL(e) : this.style.loadJSON(e)), this._updateTerrain(), this;\n }\n _lazyInitEmptyStyle() {\n this.style || (this.style = new Kt(this, {}), this.style.setEventedParent(this, {\n style: this.style\n }), this.style.loadEmpty());\n }\n _diffStyle(t, i) {\n if (\"string\" == typeof t) {\n const o = this._requestManager.normalizeStyleURL(t),\n r = this._requestManager.transformRequest(o, e.ResourceType.Style);\n e.getJSON(r, (t, o) => {\n t ? this.fire(new e.ErrorEvent(t)) : o && this._updateDiff(o, i);\n });\n } else \"object\" == typeof t && this._updateDiff(t, i);\n }\n _updateDiff(t, i) {\n try {\n this.style.setState(t) && this._update(!0);\n } catch (o) {\n e.warnOnce(`Unable to perform style diff: ${o.message || o.error || o}. Rebuilding the style from scratch.`), this._updateStyle(t, i);\n }\n }\n getStyle() {\n if (this.style) return this.style.serialize();\n }\n isStyleLoaded() {\n return this.style ? this.style.loaded() : (e.warnOnce(\"There is no style added to the map.\"), !1);\n }\n addSource(e, t) {\n return this._lazyInitEmptyStyle(), this.style.addSource(e, t), this._update(!0);\n }\n isSourceLoaded(e) {\n return !!this.style && this.style._isSourceCacheLoaded(e);\n }\n areTilesLoaded() {\n const e = this.style && this.style._sourceCaches;\n for (const t in e) {\n const i = e[t]._tiles;\n for (const e in i) {\n const t = i[e];\n if (\"loaded\" !== t.state && \"errored\" !== t.state) return !1;\n }\n }\n return !0;\n }\n addSourceType(e, t, i) {\n this._lazyInitEmptyStyle(), this.style.addSourceType(e, t, i);\n }\n removeSource(e) {\n return this.style.removeSource(e), this._updateTerrain(), this._update(!0);\n }\n getSource(e) {\n return this.style.getSource(e);\n }\n addImage(t, i, {\n pixelRatio: o = 1,\n sdf: r = !1,\n stretchX: n,\n stretchY: s,\n content: a\n } = {}) {\n if (this._lazyInitEmptyStyle(), i instanceof e.window.HTMLImageElement || e.window.ImageBitmap && i instanceof e.window.ImageBitmap) {\n const {\n width: l,\n height: c,\n data: h\n } = e.exported.getImageData(i);\n this.style.addImage(t, {\n data: new e.RGBAImage({\n width: l,\n height: c\n }, h),\n pixelRatio: o,\n stretchX: n,\n stretchY: s,\n content: a,\n sdf: r,\n version: 0\n });\n } else if (void 0 === i.width || void 0 === i.height) this.fire(new e.ErrorEvent(new Error(\"Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`\")));else {\n const {\n width: l,\n height: c\n } = i,\n h = i;\n this.style.addImage(t, {\n data: new e.RGBAImage({\n width: l,\n height: c\n }, new Uint8Array(h.data)),\n pixelRatio: o,\n stretchX: n,\n stretchY: s,\n content: a,\n sdf: r,\n version: 0,\n userImage: h\n }), h.onAdd && h.onAdd(this, t);\n }\n }\n updateImage(t, i) {\n const o = this.style.getImage(t);\n if (!o) return void this.fire(new e.ErrorEvent(new Error(\"The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.\")));\n const r = i instanceof e.window.HTMLImageElement || e.window.ImageBitmap && i instanceof e.window.ImageBitmap ? e.exported.getImageData(i) : i,\n {\n width: n,\n height: s\n } = r;\n void 0 !== n && void 0 !== s ? n === o.data.width && s === o.data.height ? (o.data.replace(r.data, !(i instanceof e.window.HTMLImageElement || e.window.ImageBitmap && i instanceof e.window.ImageBitmap)), this.style.updateImage(t, o)) : this.fire(new e.ErrorEvent(new Error(`The width and height of the updated image (${n}, ${s})\\n must be that same as the previous version of the image\\n (${o.data.width}, ${o.data.height})`))) : this.fire(new e.ErrorEvent(new Error(\"Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`\")));\n }\n hasImage(t) {\n return t ? !!this.style.getImage(t) : (this.fire(new e.ErrorEvent(new Error(\"Missing required image id\"))), !1);\n }\n removeImage(e) {\n this.style.removeImage(e);\n }\n loadImage(t, i) {\n e.getImage(this._requestManager.transformRequest(t, e.ResourceType.Image), (t, o) => {\n i(t, o instanceof e.window.HTMLImageElement ? e.exported.getImageData(o) : o);\n });\n }\n listImages() {\n return this.style.listImages();\n }\n addLayer(e, t) {\n return this._lazyInitEmptyStyle(), this.style.addLayer(e, t), this._update(!0);\n }\n moveLayer(e, t) {\n return this.style.moveLayer(e, t), this._update(!0);\n }\n removeLayer(e) {\n return this.style.removeLayer(e), this._update(!0);\n }\n getLayer(e) {\n return this.style.getLayer(e);\n }\n setLayerZoomRange(e, t, i) {\n return this.style.setLayerZoomRange(e, t, i), this._update(!0);\n }\n setFilter(e, t, i = {}) {\n return this.style.setFilter(e, t, i), this._update(!0);\n }\n getFilter(e) {\n return this.style.getFilter(e);\n }\n setPaintProperty(e, t, i, o = {}) {\n return this.style.setPaintProperty(e, t, i, o), this._update(!0);\n }\n getPaintProperty(e, t) {\n return this.style.getPaintProperty(e, t);\n }\n setLayoutProperty(e, t, i, o = {}) {\n return this.style.setLayoutProperty(e, t, i, o), this._update(!0);\n }\n getLayoutProperty(e, t) {\n return this.style.getLayoutProperty(e, t);\n }\n setLight(e, t = {}) {\n return this._lazyInitEmptyStyle(), this.style.setLight(e, t), this._update(!0);\n }\n getLight() {\n return this.style.getLight();\n }\n setTerrain(e) {\n return this._lazyInitEmptyStyle(), !e && this.transform.projection.requiresDraping ? this.style.setTerrainForDraping() : this.style.setTerrain(e), this._averageElevationLastSampledAt = -1 / 0, this._update(!0);\n }\n getTerrain() {\n return this.style ? this.style.getTerrain() : null;\n }\n setFog(e) {\n return this._lazyInitEmptyStyle(), this.style.setFog(e), this._update(!0);\n }\n getFog() {\n return this.style ? this.style.getFog() : null;\n }\n _queryFogOpacity(t) {\n return this.style && this.style.fog ? this.style.fog.getOpacityAtLatLng(e.LngLat.convert(t), this.transform) : 0;\n }\n setFeatureState(e, t) {\n return this.style.setFeatureState(e, t), this._update();\n }\n removeFeatureState(e, t) {\n return this.style.removeFeatureState(e, t), this._update();\n }\n getFeatureState(e) {\n return this.style.getFeatureState(e);\n }\n _updateContainerDimensions() {\n if (!this._container) return;\n const t = this._container.getBoundingClientRect().width || 400,\n i = this._container.getBoundingClientRect().height || 300;\n let o,\n r,\n n,\n s = this._container;\n for (; s && (!r || !n);) {\n const t = e.window.getComputedStyle(s).transform;\n t && \"none\" !== t && (o = t.match(/matrix.*\\((.+)\\)/)[1].split(\", \"), o[0] && \"0\" !== o[0] && \"1\" !== o[0] && (r = o[0]), o[3] && \"0\" !== o[3] && \"1\" !== o[3] && (n = o[3])), s = s.parentElement;\n }\n this._containerWidth = r ? Math.abs(t / r) : t, this._containerHeight = n ? Math.abs(i / n) : i;\n }\n _detectMissingCSS() {\n \"rgb(250, 128, 114)\" !== e.window.getComputedStyle(this._missingCSSCanary).getPropertyValue(\"background-color\") && e.warnOnce(\"This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.\");\n }\n _setupContainer() {\n const e = this._container;\n e.classList.add(\"mapboxgl-map\"), (this._missingCSSCanary = n(\"div\", \"mapboxgl-canary\", e)).style.visibility = \"hidden\", this._detectMissingCSS();\n const t = this._canvasContainer = n(\"div\", \"mapboxgl-canvas-container\", e);\n this._interactive && t.classList.add(\"mapboxgl-interactive\"), this._canvas = n(\"canvas\", \"mapboxgl-canvas\", t), this._canvas.addEventListener(\"webglcontextlost\", this._contextLost, !1), this._canvas.addEventListener(\"webglcontextrestored\", this._contextRestored, !1), this._canvas.setAttribute(\"tabindex\", \"0\"), this._canvas.setAttribute(\"aria-label\", this._getUIString(\"Map.Title\")), this._canvas.setAttribute(\"role\", \"region\"), this._updateContainerDimensions(), this._resizeCanvas(this._containerWidth, this._containerHeight);\n const i = this._controlContainer = n(\"div\", \"mapboxgl-control-container\", e),\n o = this._controlPositions = {};\n [\"top-left\", \"top-right\", \"bottom-left\", \"bottom-right\"].forEach(e => {\n o[e] = n(\"div\", `mapboxgl-ctrl-${e}`, i);\n }), this._container.addEventListener(\"scroll\", this._onMapScroll, !1);\n }\n _resizeCanvas(t, i) {\n const o = e.exported.devicePixelRatio || 1;\n this._canvas.width = o * Math.ceil(t), this._canvas.height = o * Math.ceil(i), this._canvas.style.width = `${t}px`, this._canvas.style.height = `${i}px`;\n }\n _addMarker(e) {\n this._markers.push(e);\n }\n _removeMarker(e) {\n const t = this._markers.indexOf(e);\n -1 !== t && this._markers.splice(t, 1);\n }\n _addPopup(e) {\n this._popups.push(e);\n }\n _removePopup(e) {\n const t = this._popups.indexOf(e);\n -1 !== t && this._popups.splice(t, 1);\n }\n _setupPainter() {\n const t = e.extend({}, i.webGLContextAttributes, {\n failIfMajorPerformanceCaveat: this._failIfMajorPerformanceCaveat,\n preserveDrawingBuffer: this._preserveDrawingBuffer,\n antialias: this._antialias || !1\n }),\n o = this._useWebGL2 && this._canvas.getContext(\"webgl2\", t),\n r = o || this._canvas.getContext(\"webgl\", t) || this._canvas.getContext(\"experimental-webgl\", t);\n r ? (this._useWebGL2 && !o && e.warnOnce(\"Failed to create WebGL 2 context. Using WebGL 1.\"), e.storeAuthState(r, !0), this.painter = new Bo(r, this.transform, !!o), this.on(\"data\", e => {\n \"source\" === e.dataType && this.painter.setTileLoadedFlag(!0);\n }), e.exported$1.testSupport(r)) : this.fire(new e.ErrorEvent(new Error(\"Failed to initialize WebGL\")));\n }\n _contextLost(t) {\n t.preventDefault(), this._frame && (this._frame.cancel(), this._frame = null), this.fire(new e.Event(\"webglcontextlost\", {\n originalEvent: t\n }));\n }\n _contextRestored(t) {\n this._setupPainter(), this.resize(), this._update(), this.fire(new e.Event(\"webglcontextrestored\", {\n originalEvent: t\n }));\n }\n _onMapScroll(e) {\n if (e.target === this._container) return this._container.scrollTop = 0, this._container.scrollLeft = 0, !1;\n }\n loaded() {\n return !this._styleDirty && !this._sourcesDirty && !!this.style && this.style.loaded();\n }\n _update(e) {\n return this.style ? (this._styleDirty = this._styleDirty || e, this._sourcesDirty = !0, this.triggerRepaint(), this) : this;\n }\n _requestRenderFrame(e) {\n return this._update(), this._renderTaskQueue.add(e);\n }\n _cancelRenderFrame(e) {\n this._renderTaskQueue.remove(e);\n }\n _requestDomTask(e) {\n !this.loaded() || this.loaded() && !this.isMoving() ? e() : this._domRenderTaskQueue.add(e);\n }\n _render(t) {\n let i;\n const o = this.painter.context.extTimerQuery,\n r = e.exported.now();\n if (this.listens(\"gpu-timing-frame\") && (i = o.createQueryEXT(), o.beginQueryEXT(o.TIME_ELAPSED_EXT, i)), this.painter.context.setDirty(), this.painter.setBaseState(), (this.isMoving() || this.isRotating() || this.isZooming()) && (this._interactionRange[0] = Math.min(this._interactionRange[0], e.window.performance.now()), this._interactionRange[1] = Math.max(this._interactionRange[1], e.window.performance.now())), this._renderTaskQueue.run(t), this._domRenderTaskQueue.run(t), this._removed) return;\n this._updateProjectionTransition();\n const n = this._isInitialLoad ? 0 : this._fadeDuration;\n if (this.style && this._styleDirty) {\n this._styleDirty = !1;\n const t = this.transform.zoom,\n i = this.transform.pitch,\n o = e.exported.now(),\n r = new e.EvaluationParameters(t, {\n now: o,\n fadeDuration: n,\n pitch: i,\n transition: this.style.getTransition()\n });\n this.style.update(r);\n }\n this.style && this.style.fog && this.style.fog.hasTransition() && (this.style._markersNeedUpdate = !0, this._sourcesDirty = !0);\n let s = !1;\n if (this.style && this._sourcesDirty ? (this._sourcesDirty = !1, this.painter._updateFog(this.style), this._updateTerrain(), s = this._updateAverageElevation(r), this.style._updateSources(this.transform), this._forceMarkerAndPopupUpdate()) : s = this._updateAverageElevation(r), this._placementDirty = this.style && this.style._updatePlacement(this.painter.transform, this.showCollisionBoxes, n, this._crossSourceCollisions), this.style && this.painter.render(this.style, {\n showTileBoundaries: this.showTileBoundaries,\n showTerrainWireframe: this.showTerrainWireframe,\n showOverdrawInspector: this._showOverdrawInspector,\n showQueryGeometry: !!this._showQueryGeometry,\n showTileAABBs: this.showTileAABBs,\n rotating: this.isRotating(),\n zooming: this.isZooming(),\n moving: this.isMoving(),\n fadeDuration: n,\n isInitialLoad: this._isInitialLoad,\n showPadding: this.showPadding,\n gpuTiming: !!this.listens(\"gpu-timing-layer\"),\n gpuTimingDeferredRender: !!this.listens(\"gpu-timing-deferred-render\"),\n speedIndexTiming: this.speedIndexTiming\n }), this.fire(new e.Event(\"render\")), this.loaded() && !this._loaded && (this._loaded = !0, this.fire(new e.Event(\"load\"))), this.style && this.style.hasTransitions() && (this._styleDirty = !0), this.style && !this._placementDirty && this.style._releaseSymbolFadeTiles(), i) {\n const t = e.exported.now() - r;\n o.endQueryEXT(o.TIME_ELAPSED_EXT, i), setTimeout(() => {\n const n = o.getQueryObjectEXT(i, o.QUERY_RESULT_EXT) / 1e6;\n o.deleteQueryEXT(i), this.fire(new e.Event(\"gpu-timing-frame\", {\n cpuTime: t,\n gpuTime: n\n })), e.window.performance.mark(\"frame-gpu\", {\n startTime: r,\n detail: {\n gpuTime: n\n }\n });\n }, 50);\n }\n if (this.listens(\"gpu-timing-layer\")) {\n const t = this.painter.collectGpuTimers();\n setTimeout(() => {\n const i = this.painter.queryGpuTimers(t);\n this.fire(new e.Event(\"gpu-timing-layer\", {\n layerTimes: i\n }));\n }, 50);\n }\n if (this.listens(\"gpu-timing-deferred-render\")) {\n const t = this.painter.collectDeferredRenderGpuQueries();\n setTimeout(() => {\n const i = this.painter.queryGpuTimeDeferredRender(t);\n this.fire(new e.Event(\"gpu-timing-deferred-render\", {\n gpuTime: i\n }));\n }, 50);\n }\n const a = this._sourcesDirty || this._styleDirty || this._placementDirty || s;\n if (a || this._repaint) this.triggerRepaint();else {\n const t = !this.isMoving() && this.loaded();\n if (t && (s = this._updateAverageElevation(r, !0)), s) this.triggerRepaint();else if (this._triggerFrame(!1), t && (this.fire(new e.Event(\"idle\")), this._isInitialLoad = !1, this.speedIndexTiming)) {\n const t = this._calculateSpeedIndex();\n this.fire(new e.Event(\"speedindexcompleted\", {\n speedIndex: t\n })), this.speedIndexTiming = !1;\n }\n }\n !this._loaded || this._fullyLoaded || a || (this._fullyLoaded = !0, e.LivePerformanceUtils.mark(e.PerformanceMarkers.fullLoad), this._performanceMetricsCollection && e.postPerformanceEvent(this._requestManager._customAccessToken, {\n width: this.painter.width,\n height: this.painter.height,\n interactionRange: this._interactionRange,\n visibilityHidden: this._visibilityHidden,\n terrainEnabled: !!this.painter.style.getTerrain(),\n fogEnabled: !!this.painter.style.getFog(),\n projection: this.getProjection().name,\n zoom: this.transform.zoom,\n renderer: this.painter.context.renderer,\n vendor: this.painter.context.vendor\n }), this._authenticate());\n }\n _forceMarkerAndPopupUpdate(e) {\n for (const t of this._markers) e && !this.getRenderWorldCopies() && (t._lngLat = t._lngLat.wrap()), t._update();\n for (const t of this._popups) !e || this.getRenderWorldCopies() || t._trackPointer || (t._lngLat = t._lngLat.wrap()), t._update();\n }\n _updateAverageElevation(e, t = !1) {\n const i = e => (this.transform.averageElevation = e, this._update(!1), !0);\n if (!this.painter.averageElevationNeedsEasing()) return 0 !== this.transform.averageElevation && i(0);\n if ((t || e - this._averageElevationLastSampledAt > 500) && !this._averageElevation.isEasing(e)) {\n const t = this.transform.averageElevation;\n let o = this.transform.sampleAverageElevation(),\n r = !1;\n this.transform.elevation && (r = this.transform.elevation.exaggeration() !== this._averageElevationExaggeration, this._averageElevationExaggeration = this.transform.elevation.exaggeration()), isNaN(o) ? o = 0 : this._averageElevationLastSampledAt = e;\n const n = Math.abs(t - o);\n if (n > 1) {\n if (this._isInitialLoad || r) return this._averageElevation.jumpTo(o), i(o);\n this._averageElevation.easeTo(o, e, 300);\n } else if (n > 1e-4) return this._averageElevation.jumpTo(o), i(o);\n }\n return !!this._averageElevation.isEasing(e) && i(this._averageElevation.getValue(e));\n }\n _authenticate() {\n e.getMapSessionAPI(this._getMapId(), this._requestManager._skuToken, this._requestManager._customAccessToken, t => {\n if (t && (t.message === e.AUTH_ERR_MSG || 401 === t.status)) {\n const t = this.painter.context.gl;\n e.storeAuthState(t, !1), this._logoControl instanceof Yr && this._logoControl._updateLogo(), t && t.clear(t.DEPTH_BUFFER_BIT | t.COLOR_BUFFER_BIT | t.STENCIL_BUFFER_BIT), this._silenceAuthErrors || this.fire(new e.ErrorEvent(new Error(\"A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/\")));\n }\n }), e.postMapLoadEvent(this._getMapId(), this._requestManager._skuToken, this._requestManager._customAccessToken, () => {});\n }\n _updateTerrain() {\n const e = this._isDragging();\n this.painter.updateTerrain(this.style, e);\n }\n _calculateSpeedIndex() {\n const e = this.painter.canvasCopy(),\n t = this.painter.getCanvasCopiesAndTimestamps();\n t.timeStamps.push(performance.now());\n const i = this.painter.context.gl,\n o = i.createFramebuffer();\n function r(e) {\n i.framebufferTexture2D(i.FRAMEBUFFER, i.COLOR_ATTACHMENT0, i.TEXTURE_2D, e, 0);\n const t = new Uint8Array(i.drawingBufferWidth * i.drawingBufferHeight * 4);\n return i.readPixels(0, 0, i.drawingBufferWidth, i.drawingBufferHeight, i.RGBA, i.UNSIGNED_BYTE, t), t;\n }\n return i.bindFramebuffer(i.FRAMEBUFFER, o), this._canvasPixelComparison(r(e), t.canvasCopies.map(r), t.timeStamps);\n }\n _canvasPixelComparison(e, t, i) {\n let o = i[1] - i[0];\n const r = e.length / 4;\n for (let n = 0; n < t.length; n++) {\n const s = t[n];\n let a = 0;\n for (let t = 0; t < s.length; t += 4) s[t] === e[t] && s[t + 1] === e[t + 1] && s[t + 2] === e[t + 2] && s[t + 3] === e[t + 3] && (a += 1);\n o += (i[n + 2] - i[n + 1]) * (1 - a / r);\n }\n return o;\n }\n remove() {\n this._hash && this._hash.remove();\n for (const e of this._controls) e.onRemove(this);\n this._controls = [], this._frame && (this._frame.cancel(), this._frame = null), this._renderTaskQueue.clear(), this._domRenderTaskQueue.clear(), this.style && this.style.destroy(), this.painter.destroy(), this.handlers && this.handlers.destroy(), this.handlers = void 0, this.setStyle(null), void 0 !== e.window && (e.window.removeEventListener(\"resize\", this._onWindowResize, !1), e.window.removeEventListener(\"orientationchange\", this._onWindowResize, !1), e.window.removeEventListener(\"webkitfullscreenchange\", this._onWindowResize, !1), e.window.removeEventListener(\"online\", this._onWindowOnline, !1), e.window.removeEventListener(\"visibilitychange\", this._onVisibilityChange, !1));\n const t = this.painter.context.gl.getExtension(\"WEBGL_lose_context\");\n t && t.loseContext(), this._canvas.removeEventListener(\"webglcontextlost\", this._contextLost, !1), this._canvas.removeEventListener(\"webglcontextrestored\", this._contextRestored, !1), this._canvasContainer.remove(), this._controlContainer.remove(), this._missingCSSCanary.remove(), this._canvas = void 0, this._canvasContainer = void 0, this._controlContainer = void 0, this._missingCSSCanary = void 0, this._container.classList.remove(\"mapboxgl-map\"), this._container.removeEventListener(\"scroll\", this._onMapScroll, !1), e.removeAuthState(this.painter.context.gl), this._removed = !0, this.fire(new e.Event(\"remove\"));\n }\n triggerRepaint() {\n this._triggerFrame(!0);\n }\n _triggerFrame(t) {\n this._renderNextFrame = this._renderNextFrame || t, this.style && !this._frame && (this._frame = e.exported.frame(e => {\n const t = !!this._renderNextFrame;\n this._frame = null, this._renderNextFrame = null, t && this._render(e);\n }));\n }\n _preloadTiles(t) {\n const i = this.style ? Object.values(this.style._sourceCaches) : [];\n return e.asyncAll(i, (e, i) => e._preloadTiles(t, i), () => {\n this.triggerRepaint();\n }), this;\n }\n _onWindowOnline() {\n this._update();\n }\n _onWindowResize(e) {\n this._trackResize && this.resize({\n originalEvent: e\n })._update();\n }\n _onVisibilityChange() {\n \"hidden\" === e.window.document.visibilityState && this._visibilityHidden++;\n }\n get showTileBoundaries() {\n return !!this._showTileBoundaries;\n }\n set showTileBoundaries(e) {\n this._showTileBoundaries !== e && (this._showTileBoundaries = e, this._update());\n }\n get showTerrainWireframe() {\n return !!this._showTerrainWireframe;\n }\n set showTerrainWireframe(e) {\n this._showTerrainWireframe !== e && (this._showTerrainWireframe = e, this._update());\n }\n get speedIndexTiming() {\n return !!this._speedIndexTiming;\n }\n set speedIndexTiming(e) {\n this._speedIndexTiming !== e && (this._speedIndexTiming = e, this._update());\n }\n get showPadding() {\n return !!this._showPadding;\n }\n set showPadding(e) {\n this._showPadding !== e && (this._showPadding = e, this._update());\n }\n get showCollisionBoxes() {\n return !!this._showCollisionBoxes;\n }\n set showCollisionBoxes(e) {\n this._showCollisionBoxes !== e && (this._showCollisionBoxes = e, e ? this.style._generateCollisionBoxes() : this._update());\n }\n get showOverdrawInspector() {\n return !!this._showOverdrawInspector;\n }\n set showOverdrawInspector(e) {\n this._showOverdrawInspector !== e && (this._showOverdrawInspector = e, this._update());\n }\n get repaint() {\n return !!this._repaint;\n }\n set repaint(e) {\n this._repaint !== e && (this._repaint = e, this.triggerRepaint());\n }\n get vertices() {\n return !!this._vertices;\n }\n set vertices(e) {\n this._vertices = e, this._update();\n }\n get showTileAABBs() {\n return !!this._showTileAABBs;\n }\n set showTileAABBs(e) {\n this._showTileAABBs !== e && (this._showTileAABBs = e, e && this._update());\n }\n _setCacheLimits(t, i) {\n e.setCacheLimits(t, i);\n }\n get version() {\n return e.version;\n }\n },\n NavigationControl: class {\n constructor(t) {\n this.options = e.extend({}, ln, t), this._container = n(\"div\", \"mapboxgl-ctrl mapboxgl-ctrl-group\"), this._container.addEventListener(\"contextmenu\", e => e.preventDefault()), this.options.showZoom && (e.bindAll([\"_setButtonTitle\", \"_updateZoomButtons\"], this), this._zoomInButton = this._createButton(\"mapboxgl-ctrl-zoom-in\", e => {\n this._map && this._map.zoomIn({}, {\n originalEvent: e\n });\n }), n(\"span\", \"mapboxgl-ctrl-icon\", this._zoomInButton).setAttribute(\"aria-hidden\", \"true\"), this._zoomOutButton = this._createButton(\"mapboxgl-ctrl-zoom-out\", e => {\n this._map && this._map.zoomOut({}, {\n originalEvent: e\n });\n }), n(\"span\", \"mapboxgl-ctrl-icon\", this._zoomOutButton).setAttribute(\"aria-hidden\", \"true\")), this.options.showCompass && (e.bindAll([\"_rotateCompassArrow\"], this), this._compass = this._createButton(\"mapboxgl-ctrl-compass\", e => {\n const t = this._map;\n t && (this.options.visualizePitch ? t.resetNorthPitch({}, {\n originalEvent: e\n }) : t.resetNorth({}, {\n originalEvent: e\n }));\n }), this._compassIcon = n(\"span\", \"mapboxgl-ctrl-icon\", this._compass), this._compassIcon.setAttribute(\"aria-hidden\", \"true\"));\n }\n _updateZoomButtons() {\n const e = this._map;\n if (!e) return;\n const t = e.getZoom(),\n i = t === e.getMaxZoom(),\n o = t === e.getMinZoom();\n this._zoomInButton.disabled = i, this._zoomOutButton.disabled = o, this._zoomInButton.setAttribute(\"aria-disabled\", i.toString()), this._zoomOutButton.setAttribute(\"aria-disabled\", o.toString());\n }\n _rotateCompassArrow() {\n const e = this._map;\n if (!e) return;\n const t = this.options.visualizePitch ? `scale(${1 / Math.pow(Math.cos(e.transform.pitch * (Math.PI / 180)), .5)}) rotateX(${e.transform.pitch}deg) rotateZ(${e.transform.angle * (180 / Math.PI)}deg)` : `rotate(${e.transform.angle * (180 / Math.PI)}deg)`;\n e._requestDomTask(() => {\n this._compassIcon && (this._compassIcon.style.transform = t);\n });\n }\n onAdd(e) {\n return this._map = e, this.options.showZoom && (this._setButtonTitle(this._zoomInButton, \"ZoomIn\"), this._setButtonTitle(this._zoomOutButton, \"ZoomOut\"), e.on(\"zoom\", this._updateZoomButtons), this._updateZoomButtons()), this.options.showCompass && (this._setButtonTitle(this._compass, \"ResetBearing\"), this.options.visualizePitch && e.on(\"pitch\", this._rotateCompassArrow), e.on(\"rotate\", this._rotateCompassArrow), this._rotateCompassArrow(), this._handler = new cn(e, this._compass, this.options.visualizePitch)), this._container;\n }\n onRemove() {\n const e = this._map;\n e && (this._container.remove(), this.options.showZoom && e.off(\"zoom\", this._updateZoomButtons), this.options.showCompass && (this.options.visualizePitch && e.off(\"pitch\", this._rotateCompassArrow), e.off(\"rotate\", this._rotateCompassArrow), this._handler && this._handler.off(), this._handler = void 0), this._map = void 0);\n }\n _createButton(e, t) {\n const i = n(\"button\", e, this._container);\n return i.type = \"button\", i.addEventListener(\"click\", t), i;\n }\n _setButtonTitle(e, t) {\n if (!this._map) return;\n const i = this._map._getUIString(`NavigationControl.${t}`);\n e.setAttribute(\"aria-label\", i), e.firstElementChild && e.firstElementChild.setAttribute(\"title\", i);\n }\n },\n GeolocateControl: class extends e.Evented {\n constructor(t) {\n super(), this.options = e.extend({\n geolocation: e.window.navigator.geolocation\n }, hn, t), e.bindAll([\"_onSuccess\", \"_onError\", \"_onZoom\", \"_finish\", \"_setupUI\", \"_updateCamera\", \"_updateMarker\", \"_updateMarkerRotation\", \"_onDeviceOrientation\"], this), this._updateMarkerRotationThrottled = Yo(this._updateMarkerRotation, 20), this._numberOfWatches = 0;\n }\n onAdd(e) {\n return this._map = e, this._container = n(\"div\", \"mapboxgl-ctrl mapboxgl-ctrl-group\"), this._checkGeolocationSupport(this._setupUI), this._container;\n }\n onRemove() {\n void 0 !== this._geolocationWatchID && (this.options.geolocation.clearWatch(this._geolocationWatchID), this._geolocationWatchID = void 0), this.options.showUserLocation && this._userLocationDotMarker && this._userLocationDotMarker.remove(), this.options.showAccuracyCircle && this._accuracyCircleMarker && this._accuracyCircleMarker.remove(), this._container.remove(), this._map.off(\"zoom\", this._onZoom), this._map = void 0, this._numberOfWatches = 0, this._noTimeout = !1;\n }\n _checkGeolocationSupport(t) {\n const i = (e = !!this.options.geolocation) => {\n this._supportsGeolocation = e, t(e);\n };\n void 0 !== this._supportsGeolocation ? t(this._supportsGeolocation) : void 0 !== e.window.navigator.permissions ? e.window.navigator.permissions.query({\n name: \"geolocation\"\n }).then(e => i(\"denied\" !== e.state)).catch(() => i()) : i();\n }\n _isOutOfMapMaxBounds(e) {\n const t = this._map.getMaxBounds(),\n i = e.coords;\n return !!t && (i.longitude < t.getWest() || i.longitude > t.getEast() || i.latitude < t.getSouth() || i.latitude > t.getNorth());\n }\n _setErrorState() {\n switch (this._watchState) {\n case \"WAITING_ACTIVE\":\n this._watchState = \"ACTIVE_ERROR\", this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active\"), this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active-error\");\n break;\n case \"ACTIVE_LOCK\":\n this._watchState = \"ACTIVE_ERROR\", this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active\"), this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active-error\"), this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\");\n break;\n case \"BACKGROUND\":\n this._watchState = \"BACKGROUND_ERROR\", this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background\"), this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-background-error\"), this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\");\n }\n }\n _onSuccess(t) {\n if (this._map) {\n if (this._isOutOfMapMaxBounds(t)) return this._setErrorState(), this.fire(new e.Event(\"outofmaxbounds\", t)), this._updateMarker(), void this._finish();\n if (this.options.trackUserLocation) switch (this._lastKnownPosition = t, this._watchState) {\n case \"WAITING_ACTIVE\":\n case \"ACTIVE_LOCK\":\n case \"ACTIVE_ERROR\":\n this._watchState = \"ACTIVE_LOCK\", this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-waiting\"), this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active-error\"), this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active\");\n break;\n case \"BACKGROUND\":\n case \"BACKGROUND_ERROR\":\n this._watchState = \"BACKGROUND\", this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-waiting\"), this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background-error\"), this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-background\");\n }\n this.options.showUserLocation && \"OFF\" !== this._watchState && this._updateMarker(t), this.options.trackUserLocation && \"ACTIVE_LOCK\" !== this._watchState || this._updateCamera(t), this.options.showUserLocation && this._dotElement.classList.remove(\"mapboxgl-user-location-dot-stale\"), this.fire(new e.Event(\"geolocate\", t)), this._finish();\n }\n }\n _updateCamera(t) {\n const i = new e.LngLat(t.coords.longitude, t.coords.latitude),\n o = t.coords.accuracy,\n r = this._map.getBearing(),\n n = e.extend({\n bearing: r\n }, this.options.fitBoundsOptions);\n this._map.fitBounds(i.toBounds(o), n, {\n geolocateSource: !0\n });\n }\n _updateMarker(t) {\n if (t) {\n const i = new e.LngLat(t.coords.longitude, t.coords.latitude);\n this._accuracyCircleMarker.setLngLat(i).addTo(this._map), this._userLocationDotMarker.setLngLat(i).addTo(this._map), this._accuracy = t.coords.accuracy, this.options.showUserLocation && this.options.showAccuracyCircle && this._updateCircleRadius();\n } else this._userLocationDotMarker.remove(), this._accuracyCircleMarker.remove();\n }\n _updateCircleRadius() {\n const t = this._map.transform,\n i = e.mercatorZfromAltitude(1, t._center.lat) * t.worldSize,\n o = Math.ceil(2 * this._accuracy * i);\n this._circleElement.style.width = `${o}px`, this._circleElement.style.height = `${o}px`;\n }\n _onZoom() {\n this.options.showUserLocation && this.options.showAccuracyCircle && this._updateCircleRadius();\n }\n _updateMarkerRotation() {\n this._userLocationDotMarker && \"number\" == typeof this._heading ? (this._userLocationDotMarker.setRotation(this._heading), this._dotElement.classList.add(\"mapboxgl-user-location-show-heading\")) : (this._dotElement.classList.remove(\"mapboxgl-user-location-show-heading\"), this._userLocationDotMarker.setRotation(0));\n }\n _onError(t) {\n if (this._map) {\n if (this.options.trackUserLocation) if (1 === t.code) {\n this._watchState = \"OFF\", this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-waiting\"), this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active\"), this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active-error\"), this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background\"), this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background-error\"), this._geolocateButton.disabled = !0;\n const e = this._map._getUIString(\"GeolocateControl.LocationNotAvailable\");\n this._geolocateButton.setAttribute(\"aria-label\", e), this._geolocateButton.firstElementChild && this._geolocateButton.firstElementChild.setAttribute(\"title\", e), void 0 !== this._geolocationWatchID && this._clearWatch();\n } else {\n if (3 === t.code && this._noTimeout) return;\n this._setErrorState();\n }\n \"OFF\" !== this._watchState && this.options.showUserLocation && this._dotElement.classList.add(\"mapboxgl-user-location-dot-stale\"), this.fire(new e.Event(\"error\", t)), this._finish();\n }\n }\n _finish() {\n this._timeoutId && clearTimeout(this._timeoutId), this._timeoutId = void 0;\n }\n _setupUI(t) {\n if (void 0 !== this._map) {\n if (this._container.addEventListener(\"contextmenu\", e => e.preventDefault()), this._geolocateButton = n(\"button\", \"mapboxgl-ctrl-geolocate\", this._container), n(\"span\", \"mapboxgl-ctrl-icon\", this._geolocateButton).setAttribute(\"aria-hidden\", \"true\"), this._geolocateButton.type = \"button\", !1 === t) {\n e.warnOnce(\"Geolocation support is not available so the GeolocateControl will be disabled.\");\n const t = this._map._getUIString(\"GeolocateControl.LocationNotAvailable\");\n this._geolocateButton.disabled = !0, this._geolocateButton.setAttribute(\"aria-label\", t), this._geolocateButton.firstElementChild && this._geolocateButton.firstElementChild.setAttribute(\"title\", t);\n } else {\n const e = this._map._getUIString(\"GeolocateControl.FindMyLocation\");\n this._geolocateButton.setAttribute(\"aria-label\", e), this._geolocateButton.firstElementChild && this._geolocateButton.firstElementChild.setAttribute(\"title\", e);\n }\n this.options.trackUserLocation && (this._geolocateButton.setAttribute(\"aria-pressed\", \"false\"), this._watchState = \"OFF\"), this.options.showUserLocation && (this._dotElement = n(\"div\", \"mapboxgl-user-location\"), this._dotElement.appendChild(n(\"div\", \"mapboxgl-user-location-dot\")), this._dotElement.appendChild(n(\"div\", \"mapboxgl-user-location-heading\")), this._userLocationDotMarker = new en({\n element: this._dotElement,\n rotationAlignment: \"map\",\n pitchAlignment: \"map\"\n }), this._circleElement = n(\"div\", \"mapboxgl-user-location-accuracy-circle\"), this._accuracyCircleMarker = new en({\n element: this._circleElement,\n pitchAlignment: \"map\"\n }), this.options.trackUserLocation && (this._watchState = \"OFF\"), this._map.on(\"zoom\", this._onZoom)), this._geolocateButton.addEventListener(\"click\", this.trigger.bind(this)), this._setup = !0, this.options.trackUserLocation && this._map.on(\"movestart\", t => {\n t.geolocateSource || \"ACTIVE_LOCK\" !== this._watchState || t.originalEvent && \"resize\" === t.originalEvent.type || (this._watchState = \"BACKGROUND\", this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-background\"), this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active\"), this.fire(new e.Event(\"trackuserlocationend\")));\n });\n }\n }\n _onDeviceOrientation(e) {\n this._userLocationDotMarker && (e.webkitCompassHeading ? this._heading = e.webkitCompassHeading : !0 === e.absolute && (this._heading = -1 * e.alpha), this._updateMarkerRotationThrottled());\n }\n trigger() {\n if (!this._setup) return e.warnOnce(\"Geolocate control triggered before added to a map\"), !1;\n if (this.options.trackUserLocation) {\n switch (this._watchState) {\n case \"OFF\":\n this._watchState = \"WAITING_ACTIVE\", this.fire(new e.Event(\"trackuserlocationstart\"));\n break;\n case \"WAITING_ACTIVE\":\n case \"ACTIVE_LOCK\":\n case \"ACTIVE_ERROR\":\n case \"BACKGROUND_ERROR\":\n this._numberOfWatches--, this._noTimeout = !1, this._watchState = \"OFF\", this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-waiting\"), this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active\"), this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active-error\"), this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background\"), this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background-error\"), this.fire(new e.Event(\"trackuserlocationend\"));\n break;\n case \"BACKGROUND\":\n this._watchState = \"ACTIVE_LOCK\", this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background\"), this._lastKnownPosition && this._updateCamera(this._lastKnownPosition), this.fire(new e.Event(\"trackuserlocationstart\"));\n }\n switch (this._watchState) {\n case \"WAITING_ACTIVE\":\n this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\"), this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active\");\n break;\n case \"ACTIVE_LOCK\":\n this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active\");\n break;\n case \"ACTIVE_ERROR\":\n this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\"), this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active-error\");\n break;\n case \"BACKGROUND\":\n this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-background\");\n break;\n case \"BACKGROUND_ERROR\":\n this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\"), this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-background-error\");\n }\n if (\"OFF\" === this._watchState && void 0 !== this._geolocationWatchID) this._clearWatch();else if (void 0 === this._geolocationWatchID) {\n let e;\n this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\"), this._geolocateButton.setAttribute(\"aria-pressed\", \"true\"), this._numberOfWatches++, this._numberOfWatches > 1 ? (e = {\n maximumAge: 6e5,\n timeout: 0\n }, this._noTimeout = !0) : (e = this.options.positionOptions, this._noTimeout = !1), this._geolocationWatchID = this.options.geolocation.watchPosition(this._onSuccess, this._onError, e), this.options.showUserHeading && this._addDeviceOrientationListener();\n }\n } else this.options.geolocation.getCurrentPosition(this._onSuccess, this._onError, this.options.positionOptions), this._timeoutId = setTimeout(this._finish, 1e4);\n return !0;\n }\n _addDeviceOrientationListener() {\n const t = () => {\n e.window.addEventListener(\"ondeviceorientationabsolute\" in e.window ? \"deviceorientationabsolute\" : \"deviceorientation\", this._onDeviceOrientation);\n };\n void 0 !== e.window.DeviceMotionEvent && \"function\" == typeof e.window.DeviceMotionEvent.requestPermission ? DeviceOrientationEvent.requestPermission().then(e => {\n \"granted\" === e && t();\n }).catch(console.error) : t();\n }\n _clearWatch() {\n this.options.geolocation.clearWatch(this._geolocationWatchID), e.window.removeEventListener(\"deviceorientation\", this._onDeviceOrientation), e.window.removeEventListener(\"deviceorientationabsolute\", this._onDeviceOrientation), this._geolocationWatchID = void 0, this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-waiting\"), this._geolocateButton.setAttribute(\"aria-pressed\", \"false\"), this.options.showUserLocation && this._updateMarker(null);\n }\n },\n AttributionControl: Hr,\n ScaleControl: class {\n constructor(t) {\n this.options = e.extend({}, un, t), this._isNumberFormatSupported = function () {\n try {\n return new Intl.NumberFormat(\"en\", {\n style: \"unit\",\n unitDisplay: \"short\",\n unit: \"meter\"\n }), !0;\n } catch (e) {\n return !1;\n }\n }(), e.bindAll([\"_update\", \"_setScale\", \"setUnit\"], this);\n }\n getDefaultPosition() {\n return \"bottom-left\";\n }\n _update() {\n const e = this.options.maxWidth || 100,\n t = this._map,\n i = t._containerHeight / 2,\n o = t._containerWidth / 2 - e / 2,\n r = t.unproject([o, i]),\n n = t.unproject([o + e, i]),\n s = r.distanceTo(n);\n if (\"imperial\" === this.options.unit) {\n const t = 3.2808 * s;\n t > 5280 ? this._setScale(e, t / 5280, \"mile\") : this._setScale(e, t, \"foot\");\n } else \"nautical\" === this.options.unit ? this._setScale(e, s / 1852, \"nautical-mile\") : s >= 1e3 ? this._setScale(e, s / 1e3, \"kilometer\") : this._setScale(e, s, \"meter\");\n }\n _setScale(e, t, i) {\n this._map._requestDomTask(() => {\n const o = function (e) {\n const t = Math.pow(10, `${Math.floor(e)}`.length - 1);\n let i = e / t;\n return i = i >= 10 ? 10 : i >= 5 ? 5 : i >= 3 ? 3 : i >= 2 ? 2 : i >= 1 ? 1 : function (e) {\n const t = Math.pow(10, Math.ceil(-Math.log(e) / Math.LN10));\n return Math.round(e * t) / t;\n }(i), t * i;\n }(t),\n r = o / t;\n this._container.innerHTML = this._isNumberFormatSupported && \"nautical-mile\" !== i ? new Intl.NumberFormat(this._language, {\n style: \"unit\",\n unitDisplay: \"short\",\n unit: i\n }).format(o) : `${o} ${_n[i]}`, this._container.style.width = e * r + \"px\";\n });\n }\n onAdd(e) {\n return this._map = e, this._language = e.getLanguage(), this._container = n(\"div\", \"mapboxgl-ctrl mapboxgl-ctrl-scale\", e.getContainer()), this._container.dir = \"auto\", this._map.on(\"move\", this._update), this._update(), this._container;\n }\n onRemove() {\n this._container.remove(), this._map.off(\"move\", this._update), this._map = void 0;\n }\n _setLanguage(e) {\n this._language = e, this._update();\n }\n setUnit(e) {\n this.options.unit = e, this._update();\n }\n },\n FullscreenControl: class {\n constructor(t) {\n this._fullscreen = !1, t && t.container && (t.container instanceof e.window.HTMLElement ? this._container = t.container : e.warnOnce(\"Full screen control 'container' must be a DOM element.\")), e.bindAll([\"_onClickFullscreen\", \"_changeIcon\"], this), \"onfullscreenchange\" in e.window.document ? this._fullscreenchange = \"fullscreenchange\" : \"onwebkitfullscreenchange\" in e.window.document && (this._fullscreenchange = \"webkitfullscreenchange\");\n }\n onAdd(t) {\n return this._map = t, this._container || (this._container = this._map.getContainer()), this._controlContainer = n(\"div\", \"mapboxgl-ctrl mapboxgl-ctrl-group\"), this._checkFullscreenSupport() ? this._setupUI() : (this._controlContainer.style.display = \"none\", e.warnOnce(\"This device does not support fullscreen mode.\")), this._controlContainer;\n }\n onRemove() {\n this._controlContainer.remove(), this._map = null, e.window.document.removeEventListener(this._fullscreenchange, this._changeIcon);\n }\n _checkFullscreenSupport() {\n return !(!e.window.document.fullscreenEnabled && !e.window.document.webkitFullscreenEnabled);\n }\n _setupUI() {\n const t = this._fullscreenButton = n(\"button\", \"mapboxgl-ctrl-fullscreen\", this._controlContainer);\n n(\"span\", \"mapboxgl-ctrl-icon\", t).setAttribute(\"aria-hidden\", \"true\"), t.type = \"button\", this._updateTitle(), this._fullscreenButton.addEventListener(\"click\", this._onClickFullscreen), e.window.document.addEventListener(this._fullscreenchange, this._changeIcon);\n }\n _updateTitle() {\n const e = this._getTitle();\n this._fullscreenButton.setAttribute(\"aria-label\", e), this._fullscreenButton.firstElementChild && this._fullscreenButton.firstElementChild.setAttribute(\"title\", e);\n }\n _getTitle() {\n return this._map._getUIString(this._isFullscreen() ? \"FullscreenControl.Exit\" : \"FullscreenControl.Enter\");\n }\n _isFullscreen() {\n return this._fullscreen;\n }\n _changeIcon() {\n (e.window.document.fullscreenElement || e.window.document.webkitFullscreenElement) === this._container !== this._fullscreen && (this._fullscreen = !this._fullscreen, this._fullscreenButton.classList.toggle(\"mapboxgl-ctrl-shrink\"), this._fullscreenButton.classList.toggle(\"mapboxgl-ctrl-fullscreen\"), this._updateTitle());\n }\n _onClickFullscreen() {\n this._isFullscreen() ? e.window.document.exitFullscreen ? e.window.document.exitFullscreen() : e.window.document.webkitCancelFullScreen && e.window.document.webkitCancelFullScreen() : this._container.requestFullscreen ? this._container.requestFullscreen() : this._container.webkitRequestFullscreen && this._container.webkitRequestFullscreen();\n }\n },\n Popup: class extends e.Evented {\n constructor(t) {\n super(), this.options = e.extend(Object.create(tn), t), e.bindAll([\"_update\", \"_onClose\", \"remove\", \"_onMouseEvent\"], this), this._classList = new Set(t && t.className ? t.className.trim().split(/\\s+/) : []);\n }\n addTo(t) {\n return this._map && this.remove(), this._map = t, this.options.closeOnClick && t.on(\"preclick\", this._onClose), this.options.closeOnMove && t.on(\"move\", this._onClose), t.on(\"remove\", this.remove), this._update(), t._addPopup(this), this._focusFirstElement(), this._trackPointer ? (t.on(\"mousemove\", this._onMouseEvent), t.on(\"mouseup\", this._onMouseEvent), t._canvasContainer.classList.add(\"mapboxgl-track-pointer\")) : t.on(\"move\", this._update), this.fire(new e.Event(\"open\")), this;\n }\n isOpen() {\n return !!this._map;\n }\n remove() {\n this._content && this._content.remove(), this._container && (this._container.remove(), this._container = void 0);\n const t = this._map;\n return t && (t.off(\"move\", this._update), t.off(\"move\", this._onClose), t.off(\"preclick\", this._onClose), t.off(\"click\", this._onClose), t.off(\"remove\", this.remove), t.off(\"mousemove\", this._onMouseEvent), t.off(\"mouseup\", this._onMouseEvent), t.off(\"drag\", this._onMouseEvent), t._canvasContainer && t._canvasContainer.classList.remove(\"mapboxgl-track-pointer\"), t._removePopup(this), this._map = void 0), this.fire(new e.Event(\"close\")), this;\n }\n getLngLat() {\n return this._lngLat;\n }\n setLngLat(t) {\n this._lngLat = e.LngLat.convert(t), this._pos = null, this._trackPointer = !1, this._update();\n const i = this._map;\n return i && (i.on(\"move\", this._update), i.off(\"mousemove\", this._onMouseEvent), i._canvasContainer.classList.remove(\"mapboxgl-track-pointer\")), this;\n }\n trackPointer() {\n this._trackPointer = !0, this._pos = null, this._update();\n const e = this._map;\n return e && (e.off(\"move\", this._update), e.on(\"mousemove\", this._onMouseEvent), e.on(\"drag\", this._onMouseEvent), e._canvasContainer.classList.add(\"mapboxgl-track-pointer\")), this;\n }\n getElement() {\n return this._container;\n }\n setText(t) {\n return this.setDOMContent(e.window.document.createTextNode(t));\n }\n setHTML(t) {\n const i = e.window.document.createDocumentFragment(),\n o = e.window.document.createElement(\"body\");\n let r;\n for (o.innerHTML = t; r = o.firstChild, r;) i.appendChild(r);\n return this.setDOMContent(i);\n }\n getMaxWidth() {\n return this._container && this._container.style.maxWidth;\n }\n setMaxWidth(e) {\n return this.options.maxWidth = e, this._update(), this;\n }\n setDOMContent(e) {\n let t = this._content;\n if (t) for (; t.hasChildNodes();) t.firstChild && t.removeChild(t.firstChild);else t = this._content = n(\"div\", \"mapboxgl-popup-content\", this._container || void 0);\n if (t.appendChild(e), this.options.closeButton) {\n const e = this._closeButton = n(\"button\", \"mapboxgl-popup-close-button\", t);\n e.type = \"button\", e.setAttribute(\"aria-label\", \"Close popup\"), e.setAttribute(\"aria-hidden\", \"true\"), e.innerHTML = \"×\", e.addEventListener(\"click\", this._onClose);\n }\n return this._update(), this._focusFirstElement(), this;\n }\n addClassName(e) {\n return this._classList.add(e), this._updateClassList(), this;\n }\n removeClassName(e) {\n return this._classList.delete(e), this._updateClassList(), this;\n }\n setOffset(e) {\n return this.options.offset = e, this._update(), this;\n }\n toggleClassName(e) {\n let t;\n return this._classList.delete(e) ? t = !1 : (this._classList.add(e), t = !0), this._updateClassList(), t;\n }\n _onMouseEvent(e) {\n this._update(e.point);\n }\n _getAnchor(e) {\n if (this.options.anchor) return this.options.anchor;\n const t = this._map,\n i = this._container,\n o = this._pos;\n if (!t || !i || !o) return \"bottom\";\n const r = i.offsetWidth,\n n = i.offsetHeight,\n s = o.x < r / 2,\n a = o.x > t.transform.width - r / 2;\n if (o.y + e < n) return s ? \"top-left\" : a ? \"top-right\" : \"top\";\n if (o.y > t.transform.height - n) {\n if (s) return \"bottom-left\";\n if (a) return \"bottom-right\";\n }\n return s ? \"left\" : a ? \"right\" : \"bottom\";\n }\n _updateClassList() {\n const e = this._container;\n if (!e) return;\n const t = [...this._classList];\n t.push(\"mapboxgl-popup\"), this._anchor && t.push(`mapboxgl-popup-anchor-${this._anchor}`), this._trackPointer && t.push(\"mapboxgl-popup-track-pointer\"), e.className = t.join(\" \");\n }\n _update(t) {\n const i = this._map,\n o = this._content;\n if (!i || !this._lngLat && !this._trackPointer || !o) return;\n let r = this._container;\n if (r || (r = this._container = n(\"div\", \"mapboxgl-popup\", i.getContainer()), this._tip = n(\"div\", \"mapboxgl-popup-tip\", r), r.appendChild(o)), this.options.maxWidth && r.style.maxWidth !== this.options.maxWidth && (r.style.maxWidth = this.options.maxWidth), i.transform.renderWorldCopies && !this._trackPointer && (this._lngLat = Jr(this._lngLat, this._pos, i.transform)), !this._trackPointer || t) {\n const e = this._pos = this._trackPointer && t ? t : i.project(this._lngLat),\n o = rn(this.options.offset),\n r = this._anchor = this._getAnchor(o.y),\n n = rn(this.options.offset, r),\n s = e.add(n).round();\n i._requestDomTask(() => {\n this._container && r && (this._container.style.transform = `${Qr[r]} translate(${s.x}px,${s.y}px)`);\n });\n }\n if (!this._marker && i._showingGlobe()) {\n const t = e.isLngLatBehindGlobe(i.transform, this._lngLat) ? 0 : 1;\n this._setOpacity(t);\n }\n this._updateClassList();\n }\n _focusFirstElement() {\n if (!this.options.focusAfterOpen || !this._container) return;\n const e = this._container.querySelector(on);\n e && e.focus();\n }\n _onClose() {\n this.remove();\n }\n _setOpacity(e) {\n this._container && (this._container.style.opacity = `${e}`), this._content && (this._content.style.pointerEvents = e ? \"auto\" : \"none\");\n }\n },\n Marker: en,\n Style: Kt,\n LngLat: e.LngLat,\n LngLatBounds: e.LngLatBounds,\n Point: e.Point,\n MercatorCoordinate: e.MercatorCoordinate,\n FreeCameraOptions: jo,\n Evented: e.Evented,\n config: e.config,\n prewarm: function () {\n Ue().acquire(Be);\n },\n clearPrewarmedResources: function () {\n const e = Fe;\n e && (e.isPreloaded() && 1 === e.numActive() ? (e.release(Be), Fe = null) : console.warn(\"Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()\"));\n },\n get accessToken() {\n return e.config.ACCESS_TOKEN;\n },\n set accessToken(t) {\n e.config.ACCESS_TOKEN = t;\n },\n get baseApiUrl() {\n return e.config.API_URL;\n },\n set baseApiUrl(t) {\n e.config.API_URL = t;\n },\n get workerCount() {\n return ke.workerCount;\n },\n set workerCount(e) {\n ke.workerCount = e;\n },\n get maxParallelImageRequests() {\n return e.config.MAX_PARALLEL_IMAGE_REQUESTS;\n },\n set maxParallelImageRequests(t) {\n e.config.MAX_PARALLEL_IMAGE_REQUESTS = t;\n },\n clearStorage(t) {\n e.clearTileCache(t);\n },\n workerUrl: \"\",\n workerClass: null,\n setNow: e.exported.setNow,\n restoreNow: e.exported.restoreNow\n };\n return dn;\n });\n\n //\n // Our custom intro provides a specialized \"define()\" function, called by the\n // AMD modules below, that sets up the worker blob URL and then executes the\n // main module, storing its exported value as 'mapboxgl'\n\n var mapboxgl$1 = mapboxgl;\n return mapboxgl$1;\n});\n","!function (t, e) {\n \"object\" == typeof exports && \"undefined\" != typeof module ? module.exports = e() : \"function\" == typeof define && define.amd ? define(e) : (t = \"undefined\" != typeof globalThis ? globalThis : t || self).MapboxDraw = e();\n}(this, function () {\n \"use strict\";\n\n var t = function (t, e) {\n var n = {\n drag: [],\n click: [],\n mousemove: [],\n mousedown: [],\n mouseup: [],\n mouseout: [],\n keydown: [],\n keyup: [],\n touchstart: [],\n touchmove: [],\n touchend: [],\n tap: []\n },\n o = {\n on: function (t, e, o) {\n if (void 0 === n[t]) throw new Error(\"Invalid event type: \" + t);\n n[t].push({\n selector: e,\n fn: o\n });\n },\n render: function (t) {\n e.store.featureChanged(t);\n }\n },\n r = function (t, r) {\n for (var i = n[t], a = i.length; a--;) {\n var s = i[a];\n if (s.selector(r)) {\n s.fn.call(o, r) || e.store.render(), e.ui.updateMapClasses();\n break;\n }\n }\n };\n return t.start.call(o), {\n render: t.render,\n stop: function () {\n t.stop && t.stop();\n },\n trash: function () {\n t.trash && (t.trash(), e.store.render());\n },\n combineFeatures: function () {\n t.combineFeatures && t.combineFeatures();\n },\n uncombineFeatures: function () {\n t.uncombineFeatures && t.uncombineFeatures();\n },\n drag: function (t) {\n r(\"drag\", t);\n },\n click: function (t) {\n r(\"click\", t);\n },\n mousemove: function (t) {\n r(\"mousemove\", t);\n },\n mousedown: function (t) {\n r(\"mousedown\", t);\n },\n mouseup: function (t) {\n r(\"mouseup\", t);\n },\n mouseout: function (t) {\n r(\"mouseout\", t);\n },\n keydown: function (t) {\n r(\"keydown\", t);\n },\n keyup: function (t) {\n r(\"keyup\", t);\n },\n touchstart: function (t) {\n r(\"touchstart\", t);\n },\n touchmove: function (t) {\n r(\"touchmove\", t);\n },\n touchend: function (t) {\n r(\"touchend\", t);\n },\n tap: function (t) {\n r(\"tap\", t);\n }\n };\n };\n function e(t) {\n return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, \"default\") ? t.default : t;\n }\n function n(t) {\n if (t.__esModule) return t;\n var e = t.default;\n if (\"function\" == typeof e) {\n var n = function t() {\n if (this instanceof t) {\n var n = [null];\n n.push.apply(n, arguments);\n var o = Function.bind.apply(e, n);\n return new o();\n }\n return e.apply(this, arguments);\n };\n n.prototype = e.prototype;\n } else n = {};\n return Object.defineProperty(n, \"__esModule\", {\n value: !0\n }), Object.keys(t).forEach(function (e) {\n var o = Object.getOwnPropertyDescriptor(t, e);\n Object.defineProperty(n, e, o.get ? o : {\n enumerable: !0,\n get: function () {\n return t[e];\n }\n });\n }), n;\n }\n var o = {},\n r = {\n RADIUS: 6378137,\n FLATTENING: 1 / 298.257223563,\n POLAR_RADIUS: 6356752.3142\n },\n i = r;\n function a(t) {\n var e = 0;\n if (t && t.length > 0) {\n e += Math.abs(s(t[0]));\n for (var n = 1; n < t.length; n++) e -= Math.abs(s(t[n]));\n }\n return e;\n }\n function s(t) {\n var e,\n n,\n o,\n r,\n a,\n s,\n c = 0,\n l = t.length;\n if (l > 2) {\n for (s = 0; s < l; s++) s === l - 2 ? (o = l - 2, r = l - 1, a = 0) : s === l - 1 ? (o = l - 1, r = 0, a = 1) : (o = s, r = s + 1, a = s + 2), e = t[o], n = t[r], c += (u(t[a][0]) - u(e[0])) * Math.sin(u(n[1]));\n c = c * i.RADIUS * i.RADIUS / 2;\n }\n return c;\n }\n function u(t) {\n return t * Math.PI / 180;\n }\n o.geometry = function t(e) {\n var n,\n o = 0;\n switch (e.type) {\n case \"Polygon\":\n return a(e.coordinates);\n case \"MultiPolygon\":\n for (n = 0; n < e.coordinates.length; n++) o += a(e.coordinates[n]);\n return o;\n case \"Point\":\n case \"MultiPoint\":\n case \"LineString\":\n case \"MultiLineString\":\n return 0;\n case \"GeometryCollection\":\n for (n = 0; n < e.geometries.length; n++) o += t(e.geometries[n]);\n return o;\n }\n }, o.ring = s;\n var c = {\n CONTROL_BASE: \"mapboxgl-ctrl\",\n CONTROL_PREFIX: \"mapboxgl-ctrl-\",\n CONTROL_BUTTON: \"mapbox-gl-draw_ctrl-draw-btn\",\n CONTROL_BUTTON_LINE: \"mapbox-gl-draw_line\",\n CONTROL_BUTTON_POLYGON: \"mapbox-gl-draw_polygon\",\n CONTROL_BUTTON_POINT: \"mapbox-gl-draw_point\",\n CONTROL_BUTTON_TRASH: \"mapbox-gl-draw_trash\",\n CONTROL_BUTTON_COMBINE_FEATURES: \"mapbox-gl-draw_combine\",\n CONTROL_BUTTON_UNCOMBINE_FEATURES: \"mapbox-gl-draw_uncombine\",\n CONTROL_GROUP: \"mapboxgl-ctrl-group\",\n ATTRIBUTION: \"mapboxgl-ctrl-attrib\",\n ACTIVE_BUTTON: \"active\",\n BOX_SELECT: \"mapbox-gl-draw_boxselect\"\n },\n l = {\n HOT: \"mapbox-gl-draw-hot\",\n COLD: \"mapbox-gl-draw-cold\"\n },\n d = {\n ADD: \"add\",\n MOVE: \"move\",\n DRAG: \"drag\",\n POINTER: \"pointer\",\n NONE: \"none\"\n },\n p = {\n POLYGON: \"polygon\",\n LINE: \"line_string\",\n POINT: \"point\"\n },\n f = {\n FEATURE: \"Feature\",\n POLYGON: \"Polygon\",\n LINE_STRING: \"LineString\",\n POINT: \"Point\",\n FEATURE_COLLECTION: \"FeatureCollection\",\n MULTI_PREFIX: \"Multi\",\n MULTI_POINT: \"MultiPoint\",\n MULTI_LINE_STRING: \"MultiLineString\",\n MULTI_POLYGON: \"MultiPolygon\"\n },\n h = {\n DRAW_LINE_STRING: \"draw_line_string\",\n DRAW_POLYGON: \"draw_polygon\",\n DRAW_POINT: \"draw_point\",\n SIMPLE_SELECT: \"simple_select\",\n DIRECT_SELECT: \"direct_select\",\n STATIC: \"static\"\n },\n g = {\n CREATE: \"draw.create\",\n DELETE: \"draw.delete\",\n UPDATE: \"draw.update\",\n SELECTION_CHANGE: \"draw.selectionchange\",\n MODE_CHANGE: \"draw.modechange\",\n ACTIONABLE: \"draw.actionable\",\n RENDER: \"draw.render\",\n COMBINE_FEATURES: \"draw.combine\",\n UNCOMBINE_FEATURES: \"draw.uncombine\"\n },\n y = {\n MOVE: \"move\",\n CHANGE_COORDINATES: \"change_coordinates\"\n },\n v = {\n FEATURE: \"feature\",\n MIDPOINT: \"midpoint\",\n VERTEX: \"vertex\"\n },\n m = {\n ACTIVE: \"true\",\n INACTIVE: \"false\"\n },\n _ = [\"scrollZoom\", \"boxZoom\", \"dragRotate\", \"dragPan\", \"keyboard\", \"doubleClickZoom\", \"touchZoomRotate\"],\n b = -85,\n E = Object.freeze({\n __proto__: null,\n classes: c,\n sources: l,\n cursors: d,\n types: p,\n geojsonTypes: f,\n modes: h,\n events: g,\n updateActions: y,\n meta: v,\n activeStates: m,\n interactions: _,\n LAT_MIN: -90,\n LAT_RENDERED_MIN: b,\n LAT_MAX: 90,\n LAT_RENDERED_MAX: 85,\n LNG_MIN: -270,\n LNG_MAX: 270\n }),\n T = {\n Point: 0,\n LineString: 1,\n MultiLineString: 1,\n Polygon: 2\n };\n function C(t, e) {\n var n = T[t.geometry.type] - T[e.geometry.type];\n return 0 === n && t.geometry.type === f.POLYGON ? t.area - e.area : n;\n }\n function O(t) {\n return t.map(function (t) {\n return t.geometry.type === f.POLYGON && (t.area = o.geometry({\n type: f.FEATURE,\n property: {},\n geometry: t.geometry\n })), t;\n }).sort(C).map(function (t) {\n return delete t.area, t;\n });\n }\n function S(t, e) {\n return void 0 === e && (e = 0), [[t.point.x - e, t.point.y - e], [t.point.x + e, t.point.y + e]];\n }\n function I(t) {\n if (this._items = {}, this._nums = {}, this._length = t ? t.length : 0, t) for (var e = 0, n = t.length; e < n; e++) this.add(t[e]), void 0 !== t[e] && (\"string\" == typeof t[e] ? this._items[t[e]] = e : this._nums[t[e]] = e);\n }\n I.prototype.add = function (t) {\n return this.has(t) || (this._length++, \"string\" == typeof t ? this._items[t] = this._length : this._nums[t] = this._length), this;\n }, I.prototype.delete = function (t) {\n return !1 === this.has(t) || (this._length--, delete this._items[t], delete this._nums[t]), this;\n }, I.prototype.has = function (t) {\n return (\"string\" == typeof t || \"number\" == typeof t) && (void 0 !== this._items[t] || void 0 !== this._nums[t]);\n }, I.prototype.values = function () {\n var t = this,\n e = [];\n return Object.keys(this._items).forEach(function (n) {\n e.push({\n k: n,\n v: t._items[n]\n });\n }), Object.keys(this._nums).forEach(function (n) {\n e.push({\n k: JSON.parse(n),\n v: t._nums[n]\n });\n }), e.sort(function (t, e) {\n return t.v - e.v;\n }).map(function (t) {\n return t.k;\n });\n }, I.prototype.clear = function () {\n return this._length = 0, this._items = {}, this._nums = {}, this;\n };\n var x = [v.FEATURE, v.MIDPOINT, v.VERTEX],\n M = {\n click: function (t, e, n) {\n return L(t, e, n, n.options.clickBuffer);\n },\n touch: function (t, e, n) {\n return L(t, e, n, n.options.touchBuffer);\n }\n };\n function L(t, e, n, o) {\n if (null === n.map) return [];\n var r = t ? S(t, o) : e,\n i = {};\n n.options.styles && (i.layers = n.options.styles.map(function (t) {\n return t.id;\n }).filter(function (t) {\n return null != n.map.getLayer(t);\n }));\n var a = n.map.queryRenderedFeatures(r, i).filter(function (t) {\n return -1 !== x.indexOf(t.properties.meta);\n }),\n s = new I(),\n u = [];\n return a.forEach(function (t) {\n var e = t.properties.id;\n s.has(e) || (s.add(e), u.push(t));\n }), O(u);\n }\n function N(t, e) {\n var n = M.click(t, null, e),\n o = {\n mouse: d.NONE\n };\n return n[0] && (o.mouse = n[0].properties.active === m.ACTIVE ? d.MOVE : d.POINTER, o.feature = n[0].properties.meta), -1 !== e.events.currentModeName().indexOf(\"draw\") && (o.mouse = d.ADD), e.ui.queueMapClasses(o), e.ui.updateMapClasses(), n[0];\n }\n function A(t, e) {\n var n = t.x - e.x,\n o = t.y - e.y;\n return Math.sqrt(n * n + o * o);\n }\n function P(t, e, n) {\n void 0 === n && (n = {});\n var o = null != n.fineTolerance ? n.fineTolerance : 4,\n r = null != n.grossTolerance ? n.grossTolerance : 12,\n i = null != n.interval ? n.interval : 500;\n t.point = t.point || e.point, t.time = t.time || e.time;\n var a = A(t.point, e.point);\n return a < o || a < r && e.time - t.time < i;\n }\n function F(t, e, n) {\n void 0 === n && (n = {});\n var o = null != n.tolerance ? n.tolerance : 25,\n r = null != n.interval ? n.interval : 250;\n return t.point = t.point || e.point, t.time = t.time || e.time, A(t.point, e.point) < o && e.time - t.time < r;\n }\n var w = {\n exports: {}\n },\n R = w.exports = function (t, e) {\n if (e || (e = 16), void 0 === t && (t = 128), t <= 0) return \"0\";\n for (var n = Math.log(Math.pow(2, t)) / Math.log(e), o = 2; n === 1 / 0; o *= 2) n = Math.log(Math.pow(2, t / o)) / Math.log(e) * o;\n var r = n - Math.floor(n),\n i = \"\";\n for (o = 0; o < Math.floor(n); o++) {\n i = Math.floor(Math.random() * e).toString(e) + i;\n }\n if (r) {\n var a = Math.pow(e, r);\n i = Math.floor(Math.random() * a).toString(e) + i;\n }\n var s = parseInt(i, e);\n return s !== 1 / 0 && s >= Math.pow(2, t) ? R(t, e) : i;\n };\n R.rack = function (t, e, n) {\n var o = function (o) {\n var i = 0;\n do {\n if (i++ > 10) {\n if (!n) throw new Error(\"too many ID collisions, use more bits\");\n t += n;\n }\n var a = R(t, e);\n } while (Object.hasOwnProperty.call(r, a));\n return r[a] = o, a;\n },\n r = o.hats = {};\n return o.get = function (t) {\n return o.hats[t];\n }, o.set = function (t, e) {\n return o.hats[t] = e, o;\n }, o.bits = t || 128, o.base = e || 16, o;\n };\n var k = e(w.exports),\n D = function (t, e) {\n this.ctx = t, this.properties = e.properties || {}, this.coordinates = e.geometry.coordinates, this.id = e.id || k(), this.type = e.geometry.type;\n };\n D.prototype.changed = function () {\n this.ctx.store.featureChanged(this.id);\n }, D.prototype.incomingCoords = function (t) {\n this.setCoordinates(t);\n }, D.prototype.setCoordinates = function (t) {\n this.coordinates = t, this.changed();\n }, D.prototype.getCoordinates = function () {\n return JSON.parse(JSON.stringify(this.coordinates));\n }, D.prototype.setProperty = function (t, e) {\n this.properties[t] = e;\n }, D.prototype.toGeoJSON = function () {\n return JSON.parse(JSON.stringify({\n id: this.id,\n type: f.FEATURE,\n properties: this.properties,\n geometry: {\n coordinates: this.getCoordinates(),\n type: this.type\n }\n }));\n }, D.prototype.internal = function (t) {\n var e = {\n id: this.id,\n meta: v.FEATURE,\n \"meta:type\": this.type,\n active: m.INACTIVE,\n mode: t\n };\n if (this.ctx.options.userProperties) for (var n in this.properties) e[\"user_\" + n] = this.properties[n];\n return {\n type: f.FEATURE,\n properties: e,\n geometry: {\n coordinates: this.getCoordinates(),\n type: this.type\n }\n };\n };\n var U = function (t, e) {\n D.call(this, t, e);\n };\n (U.prototype = Object.create(D.prototype)).isValid = function () {\n return \"number\" == typeof this.coordinates[0] && \"number\" == typeof this.coordinates[1];\n }, U.prototype.updateCoordinate = function (t, e, n) {\n this.coordinates = 3 === arguments.length ? [e, n] : [t, e], this.changed();\n }, U.prototype.getCoordinate = function () {\n return this.getCoordinates();\n };\n var j = function (t, e) {\n D.call(this, t, e);\n };\n (j.prototype = Object.create(D.prototype)).isValid = function () {\n return this.coordinates.length > 1;\n }, j.prototype.addCoordinate = function (t, e, n) {\n this.changed();\n var o = parseInt(t, 10);\n this.coordinates.splice(o, 0, [e, n]);\n }, j.prototype.getCoordinate = function (t) {\n var e = parseInt(t, 10);\n return JSON.parse(JSON.stringify(this.coordinates[e]));\n }, j.prototype.removeCoordinate = function (t) {\n this.changed(), this.coordinates.splice(parseInt(t, 10), 1);\n }, j.prototype.updateCoordinate = function (t, e, n) {\n var o = parseInt(t, 10);\n this.coordinates[o] = [e, n], this.changed();\n };\n var V = function (t, e) {\n D.call(this, t, e), this.coordinates = this.coordinates.map(function (t) {\n return t.slice(0, -1);\n });\n };\n (V.prototype = Object.create(D.prototype)).isValid = function () {\n return 0 !== this.coordinates.length && this.coordinates.every(function (t) {\n return t.length > 2;\n });\n }, V.prototype.incomingCoords = function (t) {\n this.coordinates = t.map(function (t) {\n return t.slice(0, -1);\n }), this.changed();\n }, V.prototype.setCoordinates = function (t) {\n this.coordinates = t, this.changed();\n }, V.prototype.addCoordinate = function (t, e, n) {\n this.changed();\n var o = t.split(\".\").map(function (t) {\n return parseInt(t, 10);\n });\n this.coordinates[o[0]].splice(o[1], 0, [e, n]);\n }, V.prototype.removeCoordinate = function (t) {\n this.changed();\n var e = t.split(\".\").map(function (t) {\n return parseInt(t, 10);\n }),\n n = this.coordinates[e[0]];\n n && (n.splice(e[1], 1), n.length < 3 && this.coordinates.splice(e[0], 1));\n }, V.prototype.getCoordinate = function (t) {\n var e = t.split(\".\").map(function (t) {\n return parseInt(t, 10);\n }),\n n = this.coordinates[e[0]];\n return JSON.parse(JSON.stringify(n[e[1]]));\n }, V.prototype.getCoordinates = function () {\n return this.coordinates.map(function (t) {\n return t.concat([t[0]]);\n });\n }, V.prototype.updateCoordinate = function (t, e, n) {\n this.changed();\n var o = t.split(\".\"),\n r = parseInt(o[0], 10),\n i = parseInt(o[1], 10);\n void 0 === this.coordinates[r] && (this.coordinates[r] = []), this.coordinates[r][i] = [e, n];\n };\n var B = {\n MultiPoint: U,\n MultiLineString: j,\n MultiPolygon: V\n },\n G = function (t, e, n, o, r) {\n var i = n.split(\".\"),\n a = parseInt(i[0], 10),\n s = i[1] ? i.slice(1).join(\".\") : null;\n return t[a][e](s, o, r);\n },\n J = function (t, e) {\n if (D.call(this, t, e), delete this.coordinates, this.model = B[e.geometry.type], void 0 === this.model) throw new TypeError(e.geometry.type + \" is not a valid type\");\n this.features = this._coordinatesToFeatures(e.geometry.coordinates);\n };\n function z(t) {\n this.map = t.map, this.drawConfig = JSON.parse(JSON.stringify(t.options || {})), this._ctx = t;\n }\n (J.prototype = Object.create(D.prototype))._coordinatesToFeatures = function (t) {\n var e = this,\n n = this.model.bind(this);\n return t.map(function (t) {\n return new n(e.ctx, {\n id: k(),\n type: f.FEATURE,\n properties: {},\n geometry: {\n coordinates: t,\n type: e.type.replace(\"Multi\", \"\")\n }\n });\n });\n }, J.prototype.isValid = function () {\n return this.features.every(function (t) {\n return t.isValid();\n });\n }, J.prototype.setCoordinates = function (t) {\n this.features = this._coordinatesToFeatures(t), this.changed();\n }, J.prototype.getCoordinate = function (t) {\n return G(this.features, \"getCoordinate\", t);\n }, J.prototype.getCoordinates = function () {\n return JSON.parse(JSON.stringify(this.features.map(function (t) {\n return t.type === f.POLYGON ? t.getCoordinates() : t.coordinates;\n })));\n }, J.prototype.updateCoordinate = function (t, e, n) {\n G(this.features, \"updateCoordinate\", t, e, n), this.changed();\n }, J.prototype.addCoordinate = function (t, e, n) {\n G(this.features, \"addCoordinate\", t, e, n), this.changed();\n }, J.prototype.removeCoordinate = function (t) {\n G(this.features, \"removeCoordinate\", t), this.changed();\n }, J.prototype.getFeatures = function () {\n return this.features;\n }, z.prototype.setSelected = function (t) {\n return this._ctx.store.setSelected(t);\n }, z.prototype.setSelectedCoordinates = function (t) {\n var e = this;\n this._ctx.store.setSelectedCoordinates(t), t.reduce(function (t, n) {\n return void 0 === t[n.feature_id] && (t[n.feature_id] = !0, e._ctx.store.get(n.feature_id).changed()), t;\n }, {});\n }, z.prototype.getSelected = function () {\n return this._ctx.store.getSelected();\n }, z.prototype.getSelectedIds = function () {\n return this._ctx.store.getSelectedIds();\n }, z.prototype.isSelected = function (t) {\n return this._ctx.store.isSelected(t);\n }, z.prototype.getFeature = function (t) {\n return this._ctx.store.get(t);\n }, z.prototype.select = function (t) {\n return this._ctx.store.select(t);\n }, z.prototype.deselect = function (t) {\n return this._ctx.store.deselect(t);\n }, z.prototype.deleteFeature = function (t, e) {\n return void 0 === e && (e = {}), this._ctx.store.delete(t, e);\n }, z.prototype.addFeature = function (t) {\n return this._ctx.store.add(t);\n }, z.prototype.clearSelectedFeatures = function () {\n return this._ctx.store.clearSelected();\n }, z.prototype.clearSelectedCoordinates = function () {\n return this._ctx.store.clearSelectedCoordinates();\n }, z.prototype.setActionableState = function (t) {\n void 0 === t && (t = {});\n var e = {\n trash: t.trash || !1,\n combineFeatures: t.combineFeatures || !1,\n uncombineFeatures: t.uncombineFeatures || !1\n };\n return this._ctx.events.actionable(e);\n }, z.prototype.changeMode = function (t, e, n) {\n return void 0 === e && (e = {}), void 0 === n && (n = {}), this._ctx.events.changeMode(t, e, n);\n }, z.prototype.updateUIClasses = function (t) {\n return this._ctx.ui.queueMapClasses(t);\n }, z.prototype.activateUIButton = function (t) {\n return this._ctx.ui.setActiveButton(t);\n }, z.prototype.featuresAt = function (t, e, n) {\n if (void 0 === n && (n = \"click\"), \"click\" !== n && \"touch\" !== n) throw new Error(\"invalid buffer type\");\n return M[n](t, e, this._ctx);\n }, z.prototype.newFeature = function (t) {\n var e = t.geometry.type;\n return e === f.POINT ? new U(this._ctx, t) : e === f.LINE_STRING ? new j(this._ctx, t) : e === f.POLYGON ? new V(this._ctx, t) : new J(this._ctx, t);\n }, z.prototype.isInstanceOf = function (t, e) {\n if (t === f.POINT) return e instanceof U;\n if (t === f.LINE_STRING) return e instanceof j;\n if (t === f.POLYGON) return e instanceof V;\n if (\"MultiFeature\" === t) return e instanceof J;\n throw new Error(\"Unknown feature class: \" + t);\n }, z.prototype.doRender = function (t) {\n return this._ctx.store.featureChanged(t);\n }, z.prototype.onSetup = function () {}, z.prototype.onDrag = function () {}, z.prototype.onClick = function () {}, z.prototype.onMouseMove = function () {}, z.prototype.onMouseDown = function () {}, z.prototype.onMouseUp = function () {}, z.prototype.onMouseOut = function () {}, z.prototype.onKeyUp = function () {}, z.prototype.onKeyDown = function () {}, z.prototype.onTouchStart = function () {}, z.prototype.onTouchMove = function () {}, z.prototype.onTouchEnd = function () {}, z.prototype.onTap = function () {}, z.prototype.onStop = function () {}, z.prototype.onTrash = function () {}, z.prototype.onCombineFeature = function () {}, z.prototype.onUncombineFeature = function () {}, z.prototype.toDisplayFeatures = function () {\n throw new Error(\"You must overwrite toDisplayFeatures\");\n };\n var Y = {\n drag: \"onDrag\",\n click: \"onClick\",\n mousemove: \"onMouseMove\",\n mousedown: \"onMouseDown\",\n mouseup: \"onMouseUp\",\n mouseout: \"onMouseOut\",\n keyup: \"onKeyUp\",\n keydown: \"onKeyDown\",\n touchstart: \"onTouchStart\",\n touchmove: \"onTouchMove\",\n touchend: \"onTouchEnd\",\n tap: \"onTap\"\n },\n $ = Object.keys(Y);\n function q(t) {\n var e = Object.keys(t);\n return function (n, o) {\n void 0 === o && (o = {});\n var r = {},\n i = e.reduce(function (e, n) {\n return e[n] = t[n], e;\n }, new z(n));\n return {\n start: function () {\n var e = this;\n r = i.onSetup(o), $.forEach(function (n) {\n var o,\n a = Y[n],\n s = function () {\n return !1;\n };\n t[a] && (s = function () {\n return !0;\n }), e.on(n, s, (o = a, function (t) {\n return i[o](r, t);\n }));\n });\n },\n stop: function () {\n i.onStop(r);\n },\n trash: function () {\n i.onTrash(r);\n },\n combineFeatures: function () {\n i.onCombineFeatures(r);\n },\n uncombineFeatures: function () {\n i.onUncombineFeatures(r);\n },\n render: function (t, e) {\n i.toDisplayFeatures(r, t, e);\n }\n };\n };\n }\n function H(t) {\n return [].concat(t).filter(function (t) {\n return void 0 !== t;\n });\n }\n function X() {\n var t = this;\n if (!(t.ctx.map && void 0 !== t.ctx.map.getSource(l.HOT))) return u();\n var e = t.ctx.events.currentModeName();\n t.ctx.ui.queueMapClasses({\n mode: e\n });\n var n = [],\n o = [];\n t.isDirty ? o = t.getAllIds() : (n = t.getChangedIds().filter(function (e) {\n return void 0 !== t.get(e);\n }), o = t.sources.hot.filter(function (e) {\n return e.properties.id && -1 === n.indexOf(e.properties.id) && void 0 !== t.get(e.properties.id);\n }).map(function (t) {\n return t.properties.id;\n })), t.sources.hot = [];\n var r = t.sources.cold.length;\n t.sources.cold = t.isDirty ? [] : t.sources.cold.filter(function (t) {\n var e = t.properties.id || t.properties.parent;\n return -1 === n.indexOf(e);\n });\n var i = r !== t.sources.cold.length || o.length > 0;\n function a(n, o) {\n var r = t.get(n).internal(e);\n t.ctx.events.currentModeRender(r, function (e) {\n t.sources[o].push(e);\n });\n }\n if (n.forEach(function (t) {\n return a(t, \"hot\");\n }), o.forEach(function (t) {\n return a(t, \"cold\");\n }), i && t.ctx.map.getSource(l.COLD).setData({\n type: f.FEATURE_COLLECTION,\n features: t.sources.cold\n }), t.ctx.map.getSource(l.HOT).setData({\n type: f.FEATURE_COLLECTION,\n features: t.sources.hot\n }), t._emitSelectionChange && (t.ctx.map.fire(g.SELECTION_CHANGE, {\n features: t.getSelected().map(function (t) {\n return t.toGeoJSON();\n }),\n points: t.getSelectedCoordinates().map(function (t) {\n return {\n type: f.FEATURE,\n properties: {},\n geometry: {\n type: f.POINT,\n coordinates: t.coordinates\n }\n };\n })\n }), t._emitSelectionChange = !1), t._deletedFeaturesToEmit.length) {\n var s = t._deletedFeaturesToEmit.map(function (t) {\n return t.toGeoJSON();\n });\n t._deletedFeaturesToEmit = [], t.ctx.map.fire(g.DELETE, {\n features: s\n });\n }\n function u() {\n t.isDirty = !1, t.clearChangedIds();\n }\n u(), t.ctx.map.fire(g.RENDER, {});\n }\n function Z(t) {\n var e,\n n = this;\n this._features = {}, this._featureIds = new I(), this._selectedFeatureIds = new I(), this._selectedCoordinates = [], this._changedFeatureIds = new I(), this._deletedFeaturesToEmit = [], this._emitSelectionChange = !1, this._mapInitialConfig = {}, this.ctx = t, this.sources = {\n hot: [],\n cold: []\n }, this.render = function () {\n e || (e = requestAnimationFrame(function () {\n e = null, X.call(n);\n }));\n }, this.isDirty = !1;\n }\n function W(t, e) {\n var n = t._selectedCoordinates.filter(function (e) {\n return t._selectedFeatureIds.has(e.feature_id);\n });\n t._selectedCoordinates.length === n.length || e.silent || (t._emitSelectionChange = !0), t._selectedCoordinates = n;\n }\n Z.prototype.createRenderBatch = function () {\n var t = this,\n e = this.render,\n n = 0;\n return this.render = function () {\n n++;\n }, function () {\n t.render = e, n > 0 && t.render();\n };\n }, Z.prototype.setDirty = function () {\n return this.isDirty = !0, this;\n }, Z.prototype.featureChanged = function (t) {\n return this._changedFeatureIds.add(t), this;\n }, Z.prototype.getChangedIds = function () {\n return this._changedFeatureIds.values();\n }, Z.prototype.clearChangedIds = function () {\n return this._changedFeatureIds.clear(), this;\n }, Z.prototype.getAllIds = function () {\n return this._featureIds.values();\n }, Z.prototype.add = function (t) {\n return this.featureChanged(t.id), this._features[t.id] = t, this._featureIds.add(t.id), this;\n }, Z.prototype.delete = function (t, e) {\n var n = this;\n return void 0 === e && (e = {}), H(t).forEach(function (t) {\n n._featureIds.has(t) && (n._featureIds.delete(t), n._selectedFeatureIds.delete(t), e.silent || -1 === n._deletedFeaturesToEmit.indexOf(n._features[t]) && n._deletedFeaturesToEmit.push(n._features[t]), delete n._features[t], n.isDirty = !0);\n }), W(this, e), this;\n }, Z.prototype.get = function (t) {\n return this._features[t];\n }, Z.prototype.getAll = function () {\n var t = this;\n return Object.keys(this._features).map(function (e) {\n return t._features[e];\n });\n }, Z.prototype.select = function (t, e) {\n var n = this;\n return void 0 === e && (e = {}), H(t).forEach(function (t) {\n n._selectedFeatureIds.has(t) || (n._selectedFeatureIds.add(t), n._changedFeatureIds.add(t), e.silent || (n._emitSelectionChange = !0));\n }), this;\n }, Z.prototype.deselect = function (t, e) {\n var n = this;\n return void 0 === e && (e = {}), H(t).forEach(function (t) {\n n._selectedFeatureIds.has(t) && (n._selectedFeatureIds.delete(t), n._changedFeatureIds.add(t), e.silent || (n._emitSelectionChange = !0));\n }), W(this, e), this;\n }, Z.prototype.clearSelected = function (t) {\n return void 0 === t && (t = {}), this.deselect(this._selectedFeatureIds.values(), {\n silent: t.silent\n }), this;\n }, Z.prototype.setSelected = function (t, e) {\n var n = this;\n return void 0 === e && (e = {}), t = H(t), this.deselect(this._selectedFeatureIds.values().filter(function (e) {\n return -1 === t.indexOf(e);\n }), {\n silent: e.silent\n }), this.select(t.filter(function (t) {\n return !n._selectedFeatureIds.has(t);\n }), {\n silent: e.silent\n }), this;\n }, Z.prototype.setSelectedCoordinates = function (t) {\n return this._selectedCoordinates = t, this._emitSelectionChange = !0, this;\n }, Z.prototype.clearSelectedCoordinates = function () {\n return this._selectedCoordinates = [], this._emitSelectionChange = !0, this;\n }, Z.prototype.getSelectedIds = function () {\n return this._selectedFeatureIds.values();\n }, Z.prototype.getSelected = function () {\n var t = this;\n return this._selectedFeatureIds.values().map(function (e) {\n return t.get(e);\n });\n }, Z.prototype.getSelectedCoordinates = function () {\n var t = this;\n return this._selectedCoordinates.map(function (e) {\n return {\n coordinates: t.get(e.feature_id).getCoordinate(e.coord_path)\n };\n });\n }, Z.prototype.isSelected = function (t) {\n return this._selectedFeatureIds.has(t);\n }, Z.prototype.setFeatureProperty = function (t, e, n) {\n this.get(t).setProperty(e, n), this.featureChanged(t);\n }, Z.prototype.storeMapConfig = function () {\n var t = this;\n _.forEach(function (e) {\n t.ctx.map[e] && (t._mapInitialConfig[e] = t.ctx.map[e].isEnabled());\n });\n }, Z.prototype.restoreMapConfig = function () {\n var t = this;\n Object.keys(this._mapInitialConfig).forEach(function (e) {\n t._mapInitialConfig[e] ? t.ctx.map[e].enable() : t.ctx.map[e].disable();\n });\n }, Z.prototype.getInitialConfigValue = function (t) {\n return void 0 === this._mapInitialConfig[t] || this._mapInitialConfig[t];\n };\n var K = function () {\n for (var t = arguments, e = {}, n = 0; n < arguments.length; n++) {\n var o = t[n];\n for (var r in o) Q.call(o, r) && (e[r] = o[r]);\n }\n return e;\n },\n Q = Object.prototype.hasOwnProperty;\n var tt = e(K),\n et = [\"mode\", \"feature\", \"mouse\"];\n function nt(e) {\n var n = null,\n o = null,\n r = {\n onRemove: function () {\n return e.map.off(\"load\", r.connect), clearInterval(o), r.removeLayers(), e.store.restoreMapConfig(), e.ui.removeButtons(), e.events.removeEventListeners(), e.ui.clearMapClasses(), e.boxZoomInitial && e.map.boxZoom.enable(), e.map = null, e.container = null, e.store = null, n && n.parentNode && n.parentNode.removeChild(n), n = null, this;\n },\n connect: function () {\n e.map.off(\"load\", r.connect), clearInterval(o), r.addLayers(), e.store.storeMapConfig(), e.events.addEventListeners();\n },\n onAdd: function (i) {\n var a = i.fire;\n return i.fire = function (t, e) {\n var n = arguments;\n return 1 === a.length && 1 !== arguments.length && (n = [tt({}, {\n type: t\n }, e)]), a.apply(i, n);\n }, e.map = i, e.events = function (e) {\n var n = Object.keys(e.options.modes).reduce(function (t, n) {\n return t[n] = q(e.options.modes[n]), t;\n }, {}),\n o = {},\n r = {},\n i = {},\n a = null,\n s = null;\n i.drag = function (t, n) {\n n({\n point: t.point,\n time: new Date().getTime()\n }) ? (e.ui.queueMapClasses({\n mouse: d.DRAG\n }), s.drag(t)) : t.originalEvent.stopPropagation();\n }, i.mousedrag = function (t) {\n i.drag(t, function (t) {\n return !P(o, t);\n });\n }, i.touchdrag = function (t) {\n i.drag(t, function (t) {\n return !F(r, t);\n });\n }, i.mousemove = function (t) {\n if (1 === (void 0 !== t.originalEvent.buttons ? t.originalEvent.buttons : t.originalEvent.which)) return i.mousedrag(t);\n var n = N(t, e);\n t.featureTarget = n, s.mousemove(t);\n }, i.mousedown = function (t) {\n o = {\n time: new Date().getTime(),\n point: t.point\n };\n var n = N(t, e);\n t.featureTarget = n, s.mousedown(t);\n }, i.mouseup = function (t) {\n var n = N(t, e);\n t.featureTarget = n, P(o, {\n point: t.point,\n time: new Date().getTime()\n }) ? s.click(t) : s.mouseup(t);\n }, i.mouseout = function (t) {\n s.mouseout(t);\n }, i.touchstart = function (t) {\n if (e.options.touchEnabled) {\n r = {\n time: new Date().getTime(),\n point: t.point\n };\n var n = M.touch(t, null, e)[0];\n t.featureTarget = n, s.touchstart(t);\n }\n }, i.touchmove = function (t) {\n if (e.options.touchEnabled) return s.touchmove(t), i.touchdrag(t);\n }, i.touchend = function (t) {\n if (t.originalEvent.preventDefault(), e.options.touchEnabled) {\n var n = M.touch(t, null, e)[0];\n t.featureTarget = n, F(r, {\n time: new Date().getTime(),\n point: t.point\n }) ? s.tap(t) : s.touchend(t);\n }\n };\n var u = function (t) {\n return !(8 === t || 46 === t || t >= 48 && t <= 57);\n };\n function c(o, r, i) {\n void 0 === i && (i = {}), s.stop();\n var u = n[o];\n if (void 0 === u) throw new Error(o + \" is not valid\");\n a = o;\n var c = u(e, r);\n s = t(c, e), i.silent || e.map.fire(g.MODE_CHANGE, {\n mode: o\n }), e.store.setDirty(), e.store.render();\n }\n i.keydown = function (t) {\n (t.srcElement || t.target).classList.contains(\"mapboxgl-canvas\") && (8 !== t.keyCode && 46 !== t.keyCode || !e.options.controls.trash ? u(t.keyCode) ? s.keydown(t) : 49 === t.keyCode && e.options.controls.point ? c(h.DRAW_POINT) : 50 === t.keyCode && e.options.controls.line_string ? c(h.DRAW_LINE_STRING) : 51 === t.keyCode && e.options.controls.polygon && c(h.DRAW_POLYGON) : (t.preventDefault(), s.trash()));\n }, i.keyup = function (t) {\n u(t.keyCode) && s.keyup(t);\n }, i.zoomend = function () {\n e.store.changeZoom();\n }, i.data = function (t) {\n if (\"style\" === t.dataType) {\n var n = e.setup,\n o = e.map,\n r = e.options,\n i = e.store;\n r.styles.some(function (t) {\n return o.getLayer(t.id);\n }) || (n.addLayers(), i.setDirty(), i.render());\n }\n };\n var l = {\n trash: !1,\n combineFeatures: !1,\n uncombineFeatures: !1\n };\n return {\n start: function () {\n a = e.options.defaultMode, s = t(n[a](e), e);\n },\n changeMode: c,\n actionable: function (t) {\n var n = !1;\n Object.keys(t).forEach(function (e) {\n if (void 0 === l[e]) throw new Error(\"Invalid action type\");\n l[e] !== t[e] && (n = !0), l[e] = t[e];\n }), n && e.map.fire(g.ACTIONABLE, {\n actions: l\n });\n },\n currentModeName: function () {\n return a;\n },\n currentModeRender: function (t, e) {\n return s.render(t, e);\n },\n fire: function (t, e) {\n i[t] && i[t](e);\n },\n addEventListeners: function () {\n e.map.on(\"mousemove\", i.mousemove), e.map.on(\"mousedown\", i.mousedown), e.map.on(\"mouseup\", i.mouseup), e.map.on(\"data\", i.data), e.map.on(\"touchmove\", i.touchmove), e.map.on(\"touchstart\", i.touchstart), e.map.on(\"touchend\", i.touchend), e.container.addEventListener(\"mouseout\", i.mouseout), e.options.keybindings && (e.container.addEventListener(\"keydown\", i.keydown), e.container.addEventListener(\"keyup\", i.keyup));\n },\n removeEventListeners: function () {\n e.map.off(\"mousemove\", i.mousemove), e.map.off(\"mousedown\", i.mousedown), e.map.off(\"mouseup\", i.mouseup), e.map.off(\"data\", i.data), e.map.off(\"touchmove\", i.touchmove), e.map.off(\"touchstart\", i.touchstart), e.map.off(\"touchend\", i.touchend), e.container.removeEventListener(\"mouseout\", i.mouseout), e.options.keybindings && (e.container.removeEventListener(\"keydown\", i.keydown), e.container.removeEventListener(\"keyup\", i.keyup));\n },\n trash: function (t) {\n s.trash(t);\n },\n combineFeatures: function () {\n s.combineFeatures();\n },\n uncombineFeatures: function () {\n s.uncombineFeatures();\n },\n getMode: function () {\n return a;\n }\n };\n }(e), e.ui = function (t) {\n var e = {},\n n = null,\n o = {\n mode: null,\n feature: null,\n mouse: null\n },\n r = {\n mode: null,\n feature: null,\n mouse: null\n };\n function i(t) {\n r = tt(r, t);\n }\n function a() {\n var e, n;\n if (t.container) {\n var i = [],\n a = [];\n et.forEach(function (t) {\n r[t] !== o[t] && (i.push(t + \"-\" + o[t]), null !== r[t] && a.push(t + \"-\" + r[t]));\n }), i.length > 0 && (e = t.container.classList).remove.apply(e, i), a.length > 0 && (n = t.container.classList).add.apply(n, a), o = tt(o, r);\n }\n }\n function s(t, e) {\n void 0 === e && (e = {});\n var o = document.createElement(\"button\");\n return o.className = c.CONTROL_BUTTON + \" \" + e.className, o.setAttribute(\"title\", e.title), e.container.appendChild(o), o.addEventListener(\"click\", function (o) {\n if (o.preventDefault(), o.stopPropagation(), o.target === n) return u(), void e.onDeactivate();\n l(t), e.onActivate();\n }, !0), o;\n }\n function u() {\n n && (n.classList.remove(c.ACTIVE_BUTTON), n = null);\n }\n function l(t) {\n u();\n var o = e[t];\n o && o && \"trash\" !== t && (o.classList.add(c.ACTIVE_BUTTON), n = o);\n }\n return {\n setActiveButton: l,\n queueMapClasses: i,\n updateMapClasses: a,\n clearMapClasses: function () {\n i({\n mode: null,\n feature: null,\n mouse: null\n }), a();\n },\n addButtons: function () {\n var n = t.options.controls,\n o = document.createElement(\"div\");\n return o.className = c.CONTROL_GROUP + \" \" + c.CONTROL_BASE, n ? (n[p.LINE] && (e[p.LINE] = s(p.LINE, {\n container: o,\n className: c.CONTROL_BUTTON_LINE,\n title: \"LineString tool \" + (t.options.keybindings ? \"(l)\" : \"\"),\n onActivate: function () {\n return t.events.changeMode(h.DRAW_LINE_STRING);\n },\n onDeactivate: function () {\n return t.events.trash();\n }\n })), n[p.POLYGON] && (e[p.POLYGON] = s(p.POLYGON, {\n container: o,\n className: c.CONTROL_BUTTON_POLYGON,\n title: \"Polygon tool \" + (t.options.keybindings ? \"(p)\" : \"\"),\n onActivate: function () {\n return t.events.changeMode(h.DRAW_POLYGON);\n },\n onDeactivate: function () {\n return t.events.trash();\n }\n })), n[p.POINT] && (e[p.POINT] = s(p.POINT, {\n container: o,\n className: c.CONTROL_BUTTON_POINT,\n title: \"Marker tool \" + (t.options.keybindings ? \"(m)\" : \"\"),\n onActivate: function () {\n return t.events.changeMode(h.DRAW_POINT);\n },\n onDeactivate: function () {\n return t.events.trash();\n }\n })), n.trash && (e.trash = s(\"trash\", {\n container: o,\n className: c.CONTROL_BUTTON_TRASH,\n title: \"Delete\",\n onActivate: function () {\n t.events.trash();\n }\n })), n.combine_features && (e.combine_features = s(\"combineFeatures\", {\n container: o,\n className: c.CONTROL_BUTTON_COMBINE_FEATURES,\n title: \"Combine\",\n onActivate: function () {\n t.events.combineFeatures();\n }\n })), n.uncombine_features && (e.uncombine_features = s(\"uncombineFeatures\", {\n container: o,\n className: c.CONTROL_BUTTON_UNCOMBINE_FEATURES,\n title: \"Uncombine\",\n onActivate: function () {\n t.events.uncombineFeatures();\n }\n })), o) : o;\n },\n removeButtons: function () {\n Object.keys(e).forEach(function (t) {\n var n = e[t];\n n.parentNode && n.parentNode.removeChild(n), delete e[t];\n });\n }\n };\n }(e), e.container = i.getContainer(), e.store = new Z(e), n = e.ui.addButtons(), e.options.boxSelect && (e.boxZoomInitial = i.boxZoom.isEnabled(), i.boxZoom.disable(), i.dragPan.disable(), i.dragPan.enable()), i.loaded() ? r.connect() : (i.on(\"load\", r.connect), o = setInterval(function () {\n i.loaded() && r.connect();\n }, 16)), e.events.start(), n;\n },\n addLayers: function () {\n e.map.addSource(l.COLD, {\n data: {\n type: f.FEATURE_COLLECTION,\n features: []\n },\n type: \"geojson\"\n }), e.map.addSource(l.HOT, {\n data: {\n type: f.FEATURE_COLLECTION,\n features: []\n },\n type: \"geojson\"\n }), e.options.styles.forEach(function (t) {\n e.map.addLayer(t);\n }), e.store.setDirty(!0), e.store.render();\n },\n removeLayers: function () {\n e.options.styles.forEach(function (t) {\n e.map.getLayer(t.id) && e.map.removeLayer(t.id);\n }), e.map.getSource(l.COLD) && e.map.removeSource(l.COLD), e.map.getSource(l.HOT) && e.map.removeSource(l.HOT);\n }\n };\n return e.setup = r, r;\n }\n var ot = [{\n id: \"gl-draw-polygon-fill-inactive\",\n type: \"fill\",\n filter: [\"all\", [\"==\", \"active\", \"false\"], [\"==\", \"$type\", \"Polygon\"], [\"!=\", \"mode\", \"static\"]],\n paint: {\n \"fill-color\": \"#3bb2d0\",\n \"fill-outline-color\": \"#3bb2d0\",\n \"fill-opacity\": .1\n }\n }, {\n id: \"gl-draw-polygon-fill-active\",\n type: \"fill\",\n filter: [\"all\", [\"==\", \"active\", \"true\"], [\"==\", \"$type\", \"Polygon\"]],\n paint: {\n \"fill-color\": \"#fbb03b\",\n \"fill-outline-color\": \"#fbb03b\",\n \"fill-opacity\": .1\n }\n }, {\n id: \"gl-draw-polygon-midpoint\",\n type: \"circle\",\n filter: [\"all\", [\"==\", \"$type\", \"Point\"], [\"==\", \"meta\", \"midpoint\"]],\n paint: {\n \"circle-radius\": 3,\n \"circle-color\": \"#fbb03b\"\n }\n }, {\n id: \"gl-draw-polygon-stroke-inactive\",\n type: \"line\",\n filter: [\"all\", [\"==\", \"active\", \"false\"], [\"==\", \"$type\", \"Polygon\"], [\"!=\", \"mode\", \"static\"]],\n layout: {\n \"line-cap\": \"round\",\n \"line-join\": \"round\"\n },\n paint: {\n \"line-color\": \"#3bb2d0\",\n \"line-width\": 2\n }\n }, {\n id: \"gl-draw-polygon-stroke-active\",\n type: \"line\",\n filter: [\"all\", [\"==\", \"active\", \"true\"], [\"==\", \"$type\", \"Polygon\"]],\n layout: {\n \"line-cap\": \"round\",\n \"line-join\": \"round\"\n },\n paint: {\n \"line-color\": \"#fbb03b\",\n \"line-dasharray\": [.2, 2],\n \"line-width\": 2\n }\n }, {\n id: \"gl-draw-line-inactive\",\n type: \"line\",\n filter: [\"all\", [\"==\", \"active\", \"false\"], [\"==\", \"$type\", \"LineString\"], [\"!=\", \"mode\", \"static\"]],\n layout: {\n \"line-cap\": \"round\",\n \"line-join\": \"round\"\n },\n paint: {\n \"line-color\": \"#3bb2d0\",\n \"line-width\": 2\n }\n }, {\n id: \"gl-draw-line-active\",\n type: \"line\",\n filter: [\"all\", [\"==\", \"$type\", \"LineString\"], [\"==\", \"active\", \"true\"]],\n layout: {\n \"line-cap\": \"round\",\n \"line-join\": \"round\"\n },\n paint: {\n \"line-color\": \"#fbb03b\",\n \"line-dasharray\": [.2, 2],\n \"line-width\": 2\n }\n }, {\n id: \"gl-draw-polygon-and-line-vertex-stroke-inactive\",\n type: \"circle\",\n filter: [\"all\", [\"==\", \"meta\", \"vertex\"], [\"==\", \"$type\", \"Point\"], [\"!=\", \"mode\", \"static\"]],\n paint: {\n \"circle-radius\": 5,\n \"circle-color\": \"#fff\"\n }\n }, {\n id: \"gl-draw-polygon-and-line-vertex-inactive\",\n type: \"circle\",\n filter: [\"all\", [\"==\", \"meta\", \"vertex\"], [\"==\", \"$type\", \"Point\"], [\"!=\", \"mode\", \"static\"]],\n paint: {\n \"circle-radius\": 3,\n \"circle-color\": \"#fbb03b\"\n }\n }, {\n id: \"gl-draw-point-point-stroke-inactive\",\n type: \"circle\",\n filter: [\"all\", [\"==\", \"active\", \"false\"], [\"==\", \"$type\", \"Point\"], [\"==\", \"meta\", \"feature\"], [\"!=\", \"mode\", \"static\"]],\n paint: {\n \"circle-radius\": 5,\n \"circle-opacity\": 1,\n \"circle-color\": \"#fff\"\n }\n }, {\n id: \"gl-draw-point-inactive\",\n type: \"circle\",\n filter: [\"all\", [\"==\", \"active\", \"false\"], [\"==\", \"$type\", \"Point\"], [\"==\", \"meta\", \"feature\"], [\"!=\", \"mode\", \"static\"]],\n paint: {\n \"circle-radius\": 3,\n \"circle-color\": \"#3bb2d0\"\n }\n }, {\n id: \"gl-draw-point-stroke-active\",\n type: \"circle\",\n filter: [\"all\", [\"==\", \"$type\", \"Point\"], [\"==\", \"active\", \"true\"], [\"!=\", \"meta\", \"midpoint\"]],\n paint: {\n \"circle-radius\": 7,\n \"circle-color\": \"#fff\"\n }\n }, {\n id: \"gl-draw-point-active\",\n type: \"circle\",\n filter: [\"all\", [\"==\", \"$type\", \"Point\"], [\"!=\", \"meta\", \"midpoint\"], [\"==\", \"active\", \"true\"]],\n paint: {\n \"circle-radius\": 5,\n \"circle-color\": \"#fbb03b\"\n }\n }, {\n id: \"gl-draw-polygon-fill-static\",\n type: \"fill\",\n filter: [\"all\", [\"==\", \"mode\", \"static\"], [\"==\", \"$type\", \"Polygon\"]],\n paint: {\n \"fill-color\": \"#404040\",\n \"fill-outline-color\": \"#404040\",\n \"fill-opacity\": .1\n }\n }, {\n id: \"gl-draw-polygon-stroke-static\",\n type: \"line\",\n filter: [\"all\", [\"==\", \"mode\", \"static\"], [\"==\", \"$type\", \"Polygon\"]],\n layout: {\n \"line-cap\": \"round\",\n \"line-join\": \"round\"\n },\n paint: {\n \"line-color\": \"#404040\",\n \"line-width\": 2\n }\n }, {\n id: \"gl-draw-line-static\",\n type: \"line\",\n filter: [\"all\", [\"==\", \"mode\", \"static\"], [\"==\", \"$type\", \"LineString\"]],\n layout: {\n \"line-cap\": \"round\",\n \"line-join\": \"round\"\n },\n paint: {\n \"line-color\": \"#404040\",\n \"line-width\": 2\n }\n }, {\n id: \"gl-draw-point-static\",\n type: \"circle\",\n filter: [\"all\", [\"==\", \"mode\", \"static\"], [\"==\", \"$type\", \"Point\"]],\n paint: {\n \"circle-radius\": 5,\n \"circle-color\": \"#404040\"\n }\n }];\n function rt(t) {\n return function (e) {\n var n = e.featureTarget;\n return !!n && !!n.properties && n.properties.meta === t;\n };\n }\n function it(t) {\n return !!t.originalEvent && !!t.originalEvent.shiftKey && 0 === t.originalEvent.button;\n }\n function at(t) {\n return !!t.featureTarget && !!t.featureTarget.properties && t.featureTarget.properties.active === m.ACTIVE && t.featureTarget.properties.meta === v.FEATURE;\n }\n function st(t) {\n return !!t.featureTarget && !!t.featureTarget.properties && t.featureTarget.properties.active === m.INACTIVE && t.featureTarget.properties.meta === v.FEATURE;\n }\n function ut(t) {\n return void 0 === t.featureTarget;\n }\n function ct(t) {\n return !!t.featureTarget && !!t.featureTarget.properties && t.featureTarget.properties.meta === v.FEATURE;\n }\n function lt(t) {\n var e = t.featureTarget;\n return !!e && !!e.properties && e.properties.meta === v.VERTEX;\n }\n function dt(t) {\n return !!t.originalEvent && !0 === t.originalEvent.shiftKey;\n }\n function pt(t) {\n return 27 === t.keyCode;\n }\n function ft(t) {\n return 13 === t.keyCode;\n }\n var ht = Object.freeze({\n __proto__: null,\n isOfMetaType: rt,\n isShiftMousedown: it,\n isActiveFeature: at,\n isInactiveFeature: st,\n noTarget: ut,\n isFeature: ct,\n isVertex: lt,\n isShiftDown: dt,\n isEscapeKey: pt,\n isEnterKey: ft,\n isTrue: function () {\n return !0;\n }\n }),\n gt = yt;\n function yt(t, e) {\n this.x = t, this.y = e;\n }\n yt.prototype = {\n clone: function () {\n return new yt(this.x, this.y);\n },\n add: function (t) {\n return this.clone()._add(t);\n },\n sub: function (t) {\n return this.clone()._sub(t);\n },\n multByPoint: function (t) {\n return this.clone()._multByPoint(t);\n },\n divByPoint: function (t) {\n return this.clone()._divByPoint(t);\n },\n mult: function (t) {\n return this.clone()._mult(t);\n },\n div: function (t) {\n return this.clone()._div(t);\n },\n rotate: function (t) {\n return this.clone()._rotate(t);\n },\n rotateAround: function (t, e) {\n return this.clone()._rotateAround(t, e);\n },\n matMult: function (t) {\n return this.clone()._matMult(t);\n },\n unit: function () {\n return this.clone()._unit();\n },\n perp: function () {\n return this.clone()._perp();\n },\n round: function () {\n return this.clone()._round();\n },\n mag: function () {\n return Math.sqrt(this.x * this.x + this.y * this.y);\n },\n equals: function (t) {\n return this.x === t.x && this.y === t.y;\n },\n dist: function (t) {\n return Math.sqrt(this.distSqr(t));\n },\n distSqr: function (t) {\n var e = t.x - this.x,\n n = t.y - this.y;\n return e * e + n * n;\n },\n angle: function () {\n return Math.atan2(this.y, this.x);\n },\n angleTo: function (t) {\n return Math.atan2(this.y - t.y, this.x - t.x);\n },\n angleWith: function (t) {\n return this.angleWithSep(t.x, t.y);\n },\n angleWithSep: function (t, e) {\n return Math.atan2(this.x * e - this.y * t, this.x * t + this.y * e);\n },\n _matMult: function (t) {\n var e = t[0] * this.x + t[1] * this.y,\n n = t[2] * this.x + t[3] * this.y;\n return this.x = e, this.y = n, this;\n },\n _add: function (t) {\n return this.x += t.x, this.y += t.y, this;\n },\n _sub: function (t) {\n return this.x -= t.x, this.y -= t.y, this;\n },\n _mult: function (t) {\n return this.x *= t, this.y *= t, this;\n },\n _div: function (t) {\n return this.x /= t, this.y /= t, this;\n },\n _multByPoint: function (t) {\n return this.x *= t.x, this.y *= t.y, this;\n },\n _divByPoint: function (t) {\n return this.x /= t.x, this.y /= t.y, this;\n },\n _unit: function () {\n return this._div(this.mag()), this;\n },\n _perp: function () {\n var t = this.y;\n return this.y = this.x, this.x = -t, this;\n },\n _rotate: function (t) {\n var e = Math.cos(t),\n n = Math.sin(t),\n o = e * this.x - n * this.y,\n r = n * this.x + e * this.y;\n return this.x = o, this.y = r, this;\n },\n _rotateAround: function (t, e) {\n var n = Math.cos(t),\n o = Math.sin(t),\n r = e.x + n * (this.x - e.x) - o * (this.y - e.y),\n i = e.y + o * (this.x - e.x) + n * (this.y - e.y);\n return this.x = r, this.y = i, this;\n },\n _round: function () {\n return this.x = Math.round(this.x), this.y = Math.round(this.y), this;\n }\n }, yt.convert = function (t) {\n return t instanceof yt ? t : Array.isArray(t) ? new yt(t[0], t[1]) : t;\n };\n var vt = e(gt);\n function mt(t, e) {\n var n = e.getBoundingClientRect();\n return new vt(t.clientX - n.left - (e.clientLeft || 0), t.clientY - n.top - (e.clientTop || 0));\n }\n function _t(t, e, n, o) {\n return {\n type: f.FEATURE,\n properties: {\n meta: v.VERTEX,\n parent: t,\n coord_path: n,\n active: o ? m.ACTIVE : m.INACTIVE\n },\n geometry: {\n type: f.POINT,\n coordinates: e\n }\n };\n }\n function bt(t, e, n) {\n var o = e.geometry.coordinates,\n r = n.geometry.coordinates;\n if (o[1] > 85 || o[1] < b || r[1] > 85 || r[1] < b) return null;\n var i = {\n lng: (o[0] + r[0]) / 2,\n lat: (o[1] + r[1]) / 2\n };\n return {\n type: f.FEATURE,\n properties: {\n meta: v.MIDPOINT,\n parent: t,\n lng: i.lng,\n lat: i.lat,\n coord_path: n.properties.coord_path\n },\n geometry: {\n type: f.POINT,\n coordinates: [i.lng, i.lat]\n }\n };\n }\n function Et(t, e, n) {\n void 0 === e && (e = {}), void 0 === n && (n = null);\n var o,\n r = t.geometry,\n i = r.type,\n a = r.coordinates,\n s = t.properties && t.properties.id,\n u = [];\n function c(t, n) {\n var o = \"\",\n r = null;\n t.forEach(function (t, i) {\n var a = null != n ? n + \".\" + i : String(i),\n c = _t(s, t, a, l(a));\n if (e.midpoints && r) {\n var d = bt(s, r, c);\n d && u.push(d);\n }\n r = c;\n var p = JSON.stringify(t);\n o !== p && u.push(c), 0 === i && (o = p);\n });\n }\n function l(t) {\n return !!e.selectedPaths && -1 !== e.selectedPaths.indexOf(t);\n }\n return i === f.POINT ? u.push(_t(s, a, n, l(n))) : i === f.POLYGON ? a.forEach(function (t, e) {\n c(t, null !== n ? n + \".\" + e : String(e));\n }) : i === f.LINE_STRING ? c(a, n) : 0 === i.indexOf(f.MULTI_PREFIX) && (o = i.replace(f.MULTI_PREFIX, \"\"), a.forEach(function (n, r) {\n var i = {\n type: f.FEATURE,\n properties: t.properties,\n geometry: {\n type: o,\n coordinates: n\n }\n };\n u = u.concat(Et(i, e, r));\n })), u;\n }\n var Tt = {\n enable: function (t) {\n setTimeout(function () {\n t.map && t.map.doubleClickZoom && t._ctx && t._ctx.store && t._ctx.store.getInitialConfigValue && t._ctx.store.getInitialConfigValue(\"doubleClickZoom\") && t.map.doubleClickZoom.enable();\n }, 0);\n },\n disable: function (t) {\n setTimeout(function () {\n t.map && t.map.doubleClickZoom && t.map.doubleClickZoom.disable();\n }, 0);\n }\n },\n Ct = {\n exports: {}\n },\n Ot = function (t) {\n if (!t || !t.type) return null;\n var e = St[t.type];\n if (!e) return null;\n if (\"geometry\" === e) return {\n type: \"FeatureCollection\",\n features: [{\n type: \"Feature\",\n properties: {},\n geometry: t\n }]\n };\n if (\"feature\" === e) return {\n type: \"FeatureCollection\",\n features: [t]\n };\n if (\"featurecollection\" === e) return t;\n },\n St = {\n Point: \"geometry\",\n MultiPoint: \"geometry\",\n LineString: \"geometry\",\n MultiLineString: \"geometry\",\n Polygon: \"geometry\",\n MultiPolygon: \"geometry\",\n GeometryCollection: \"geometry\",\n Feature: \"feature\",\n FeatureCollection: \"featurecollection\"\n };\n var It = e(Ot);\n var xt = Object.freeze({\n __proto__: null,\n default: function t(e) {\n switch (e && e.type || null) {\n case \"FeatureCollection\":\n return e.features = e.features.reduce(function (e, n) {\n return e.concat(t(n));\n }, []), e;\n case \"Feature\":\n return e.geometry ? t(e.geometry).map(function (t) {\n var n = {\n type: \"Feature\",\n properties: JSON.parse(JSON.stringify(e.properties)),\n geometry: t\n };\n return void 0 !== e.id && (n.id = e.id), n;\n }) : [e];\n case \"MultiPoint\":\n return e.coordinates.map(function (t) {\n return {\n type: \"Point\",\n coordinates: t\n };\n });\n case \"MultiPolygon\":\n return e.coordinates.map(function (t) {\n return {\n type: \"Polygon\",\n coordinates: t\n };\n });\n case \"MultiLineString\":\n return e.coordinates.map(function (t) {\n return {\n type: \"LineString\",\n coordinates: t\n };\n });\n case \"GeometryCollection\":\n return e.geometries.map(t).reduce(function (t, e) {\n return t.concat(e);\n }, []);\n case \"Point\":\n case \"Polygon\":\n case \"LineString\":\n return [e];\n }\n }\n }),\n Mt = Ot,\n Lt = n(xt),\n Nt = function (t) {\n return function t(e) {\n if (Array.isArray(e) && e.length && \"number\" == typeof e[0]) return [e];\n return e.reduce(function (e, n) {\n return Array.isArray(n) && Array.isArray(n[0]) ? e.concat(t(n)) : (e.push(n), e);\n }, []);\n }(t);\n };\n Lt instanceof Function || (Lt = Lt.default);\n var At = {\n exports: {}\n },\n Pt = At.exports = function (t) {\n return new Ft(t);\n };\n function Ft(t) {\n this.value = t;\n }\n function wt(t, e, n) {\n var o = [],\n r = [],\n i = !0;\n return function t(a) {\n var s = n ? Rt(a) : a,\n u = {},\n c = !0,\n l = {\n node: s,\n node_: a,\n path: [].concat(o),\n parent: r[r.length - 1],\n parents: r,\n key: o.slice(-1)[0],\n isRoot: 0 === o.length,\n level: o.length,\n circular: null,\n update: function (t, e) {\n l.isRoot || (l.parent.node[l.key] = t), l.node = t, e && (c = !1);\n },\n delete: function (t) {\n delete l.parent.node[l.key], t && (c = !1);\n },\n remove: function (t) {\n Ut(l.parent.node) ? l.parent.node.splice(l.key, 1) : delete l.parent.node[l.key], t && (c = !1);\n },\n keys: null,\n before: function (t) {\n u.before = t;\n },\n after: function (t) {\n u.after = t;\n },\n pre: function (t) {\n u.pre = t;\n },\n post: function (t) {\n u.post = t;\n },\n stop: function () {\n i = !1;\n },\n block: function () {\n c = !1;\n }\n };\n if (!i) return l;\n function d() {\n if (\"object\" == typeof l.node && null !== l.node) {\n l.keys && l.node_ === l.node || (l.keys = kt(l.node)), l.isLeaf = 0 == l.keys.length;\n for (var t = 0; t < r.length; t++) if (r[t].node_ === a) {\n l.circular = r[t];\n break;\n }\n } else l.isLeaf = !0, l.keys = null;\n l.notLeaf = !l.isLeaf, l.notRoot = !l.isRoot;\n }\n d();\n var p = e.call(l, l.node);\n return void 0 !== p && l.update && l.update(p), u.before && u.before.call(l, l.node), c ? (\"object\" != typeof l.node || null === l.node || l.circular || (r.push(l), d(), jt(l.keys, function (e, r) {\n o.push(e), u.pre && u.pre.call(l, l.node[e], e);\n var i = t(l.node[e]);\n n && Vt.call(l.node, e) && (l.node[e] = i.node), i.isLast = r == l.keys.length - 1, i.isFirst = 0 == r, u.post && u.post.call(l, i), o.pop();\n }), r.pop()), u.after && u.after.call(l, l.node), l) : l;\n }(t).node;\n }\n function Rt(t) {\n if (\"object\" == typeof t && null !== t) {\n var e;\n if (Ut(t)) e = [];else if (\"[object Date]\" === Dt(t)) e = new Date(t.getTime ? t.getTime() : t);else if (function (t) {\n return \"[object RegExp]\" === Dt(t);\n }(t)) e = new RegExp(t);else if (function (t) {\n return \"[object Error]\" === Dt(t);\n }(t)) e = {\n message: t.message\n };else if (function (t) {\n return \"[object Boolean]\" === Dt(t);\n }(t)) e = new Boolean(t);else if (function (t) {\n return \"[object Number]\" === Dt(t);\n }(t)) e = new Number(t);else if (function (t) {\n return \"[object String]\" === Dt(t);\n }(t)) e = new String(t);else if (Object.create && Object.getPrototypeOf) e = Object.create(Object.getPrototypeOf(t));else if (t.constructor === Object) e = {};else {\n var n = t.constructor && t.constructor.prototype || t.__proto__ || {},\n o = function () {};\n o.prototype = n, e = new o();\n }\n return jt(kt(t), function (n) {\n e[n] = t[n];\n }), e;\n }\n return t;\n }\n Ft.prototype.get = function (t) {\n for (var e = this.value, n = 0; n < t.length; n++) {\n var o = t[n];\n if (!e || !Vt.call(e, o)) {\n e = void 0;\n break;\n }\n e = e[o];\n }\n return e;\n }, Ft.prototype.has = function (t) {\n for (var e = this.value, n = 0; n < t.length; n++) {\n var o = t[n];\n if (!e || !Vt.call(e, o)) return !1;\n e = e[o];\n }\n return !0;\n }, Ft.prototype.set = function (t, e) {\n for (var n = this.value, o = 0; o < t.length - 1; o++) {\n var r = t[o];\n Vt.call(n, r) || (n[r] = {}), n = n[r];\n }\n return n[t[o]] = e, e;\n }, Ft.prototype.map = function (t) {\n return wt(this.value, t, !0);\n }, Ft.prototype.forEach = function (t) {\n return this.value = wt(this.value, t, !1), this.value;\n }, Ft.prototype.reduce = function (t, e) {\n var n = 1 === arguments.length,\n o = n ? this.value : e;\n return this.forEach(function (e) {\n this.isRoot && n || (o = t.call(this, o, e));\n }), o;\n }, Ft.prototype.paths = function () {\n var t = [];\n return this.forEach(function (e) {\n t.push(this.path);\n }), t;\n }, Ft.prototype.nodes = function () {\n var t = [];\n return this.forEach(function (e) {\n t.push(this.node);\n }), t;\n }, Ft.prototype.clone = function () {\n var t = [],\n e = [];\n return function n(o) {\n for (var r = 0; r < t.length; r++) if (t[r] === o) return e[r];\n if (\"object\" == typeof o && null !== o) {\n var i = Rt(o);\n return t.push(o), e.push(i), jt(kt(o), function (t) {\n i[t] = n(o[t]);\n }), t.pop(), e.pop(), i;\n }\n return o;\n }(this.value);\n };\n var kt = Object.keys || function (t) {\n var e = [];\n for (var n in t) e.push(n);\n return e;\n };\n function Dt(t) {\n return Object.prototype.toString.call(t);\n }\n var Ut = Array.isArray || function (t) {\n return \"[object Array]\" === Object.prototype.toString.call(t);\n },\n jt = function (t, e) {\n if (t.forEach) return t.forEach(e);\n for (var n = 0; n < t.length; n++) e(t[n], n, t);\n };\n jt(kt(Ft.prototype), function (t) {\n Pt[t] = function (e) {\n var n = [].slice.call(arguments, 1),\n o = new Ft(e);\n return o[t].apply(o, n);\n };\n });\n var Vt = Object.hasOwnProperty || function (t, e) {\n return e in t;\n },\n Bt = At.exports,\n Gt = Jt;\n function Jt(t) {\n if (!(this instanceof Jt)) return new Jt(t);\n this._bbox = t || [1 / 0, 1 / 0, -1 / 0, -1 / 0], this._valid = !!t;\n }\n Jt.prototype.include = function (t) {\n return this._valid = !0, this._bbox[0] = Math.min(this._bbox[0], t[0]), this._bbox[1] = Math.min(this._bbox[1], t[1]), this._bbox[2] = Math.max(this._bbox[2], t[0]), this._bbox[3] = Math.max(this._bbox[3], t[1]), this;\n }, Jt.prototype.equals = function (t) {\n var e;\n return e = t instanceof Jt ? t.bbox() : t, this._bbox[0] == e[0] && this._bbox[1] == e[1] && this._bbox[2] == e[2] && this._bbox[3] == e[3];\n }, Jt.prototype.center = function (t) {\n return this._valid ? [(this._bbox[0] + this._bbox[2]) / 2, (this._bbox[1] + this._bbox[3]) / 2] : null;\n }, Jt.prototype.union = function (t) {\n var e;\n return this._valid = !0, e = t instanceof Jt ? t.bbox() : t, this._bbox[0] = Math.min(this._bbox[0], e[0]), this._bbox[1] = Math.min(this._bbox[1], e[1]), this._bbox[2] = Math.max(this._bbox[2], e[2]), this._bbox[3] = Math.max(this._bbox[3], e[3]), this;\n }, Jt.prototype.bbox = function () {\n return this._valid ? this._bbox : null;\n }, Jt.prototype.contains = function (t) {\n if (!t) return this._fastContains();\n if (!this._valid) return null;\n var e = t[0],\n n = t[1];\n return this._bbox[0] <= e && this._bbox[1] <= n && this._bbox[2] >= e && this._bbox[3] >= n;\n }, Jt.prototype.intersect = function (t) {\n return this._valid ? (e = t instanceof Jt ? t.bbox() : t, !(this._bbox[0] > e[2] || this._bbox[2] < e[0] || this._bbox[3] < e[1] || this._bbox[1] > e[3])) : null;\n var e;\n }, Jt.prototype._fastContains = function () {\n if (!this._valid) return new Function(\"return null;\");\n var t = \"return \" + this._bbox[0] + \"<= ll[0] &&\" + this._bbox[1] + \"<= ll[1] &&\" + this._bbox[2] + \">= ll[0] &&\" + this._bbox[3] + \">= ll[1]\";\n return new Function(\"ll\", t);\n }, Jt.prototype.polygon = function () {\n return this._valid ? {\n type: \"Polygon\",\n coordinates: [[[this._bbox[0], this._bbox[1]], [this._bbox[2], this._bbox[1]], [this._bbox[2], this._bbox[3]], [this._bbox[0], this._bbox[3]], [this._bbox[0], this._bbox[1]]]]\n } : null;\n };\n var zt = function (t) {\n if (!t) return [];\n var e = Lt(Mt(t)),\n n = [];\n return e.features.forEach(function (t) {\n t.geometry && (n = n.concat(Nt(t.geometry.coordinates)));\n }), n;\n },\n Yt = Bt,\n $t = Gt,\n qt = {\n features: [\"FeatureCollection\"],\n coordinates: [\"Point\", \"MultiPoint\", \"LineString\", \"MultiLineString\", \"Polygon\", \"MultiPolygon\"],\n geometry: [\"Feature\"],\n geometries: [\"GeometryCollection\"]\n },\n Ht = Object.keys(qt);\n function Xt(t) {\n for (var e = $t(), n = zt(t), o = 0; o < n.length; o++) e.include(n[o]);\n return e;\n }\n Ct.exports = function (t) {\n return Xt(t).bbox();\n }, Ct.exports.polygon = function (t) {\n return Xt(t).polygon();\n }, Ct.exports.bboxify = function (t) {\n return Yt(t).map(function (t) {\n t && Ht.some(function (e) {\n return !!t[e] && -1 !== qt[e].indexOf(t.type);\n }) && (t.bbox = Xt(t).bbox(), this.update(t));\n });\n };\n var Zt = e(Ct.exports),\n Wt = -90;\n function Kt(t, e) {\n var n = Wt,\n o = 90,\n r = Wt,\n i = 90,\n a = 270,\n s = -270;\n t.forEach(function (t) {\n var e = Zt(t),\n u = e[1],\n c = e[3],\n l = e[0],\n d = e[2];\n u > n && (n = u), c < o && (o = c), c > r && (r = c), u < i && (i = u), l < a && (a = l), d > s && (s = d);\n });\n var u = e;\n return n + u.lat > 85 && (u.lat = 85 - n), r + u.lat > 90 && (u.lat = 90 - r), o + u.lat < -85 && (u.lat = -85 - o), i + u.lat < Wt && (u.lat = Wt - i), a + u.lng <= -270 && (u.lng += 360 * Math.ceil(Math.abs(u.lng) / 360)), s + u.lng >= 270 && (u.lng -= 360 * Math.ceil(Math.abs(u.lng) / 360)), u;\n }\n function Qt(t, e) {\n var n = Kt(t.map(function (t) {\n return t.toGeoJSON();\n }), e);\n t.forEach(function (t) {\n var e,\n o = t.getCoordinates(),\n r = function (t) {\n var e = {\n lng: t[0] + n.lng,\n lat: t[1] + n.lat\n };\n return [e.lng, e.lat];\n },\n i = function (t) {\n return t.map(function (t) {\n return r(t);\n });\n };\n t.type === f.POINT ? e = r(o) : t.type === f.LINE_STRING || t.type === f.MULTI_POINT ? e = o.map(r) : t.type === f.POLYGON || t.type === f.MULTI_LINE_STRING ? e = o.map(i) : t.type === f.MULTI_POLYGON && (e = o.map(function (t) {\n return t.map(function (t) {\n return i(t);\n });\n })), t.incomingCoords(e);\n });\n }\n var te = {\n onSetup: function (t) {\n var e = this,\n n = {\n dragMoveLocation: null,\n boxSelectStartLocation: null,\n boxSelectElement: void 0,\n boxSelecting: !1,\n canBoxSelect: !1,\n dragMoving: !1,\n canDragMove: !1,\n initiallySelectedFeatureIds: t.featureIds || []\n };\n return this.setSelected(n.initiallySelectedFeatureIds.filter(function (t) {\n return void 0 !== e.getFeature(t);\n })), this.fireActionable(), this.setActionableState({\n combineFeatures: !0,\n uncombineFeatures: !0,\n trash: !0\n }), n;\n },\n fireUpdate: function () {\n this.map.fire(g.UPDATE, {\n action: y.MOVE,\n features: this.getSelected().map(function (t) {\n return t.toGeoJSON();\n })\n });\n },\n fireActionable: function () {\n var t = this,\n e = this.getSelected(),\n n = e.filter(function (e) {\n return t.isInstanceOf(\"MultiFeature\", e);\n }),\n o = !1;\n if (e.length > 1) {\n o = !0;\n var r = e[0].type.replace(\"Multi\", \"\");\n e.forEach(function (t) {\n t.type.replace(\"Multi\", \"\") !== r && (o = !1);\n });\n }\n var i = n.length > 0,\n a = e.length > 0;\n this.setActionableState({\n combineFeatures: o,\n uncombineFeatures: i,\n trash: a\n });\n },\n getUniqueIds: function (t) {\n return t.length ? t.map(function (t) {\n return t.properties.id;\n }).filter(function (t) {\n return void 0 !== t;\n }).reduce(function (t, e) {\n return t.add(e), t;\n }, new I()).values() : [];\n },\n stopExtendedInteractions: function (t) {\n t.boxSelectElement && (t.boxSelectElement.parentNode && t.boxSelectElement.parentNode.removeChild(t.boxSelectElement), t.boxSelectElement = null), this.map.dragPan.enable(), t.boxSelecting = !1, t.canBoxSelect = !1, t.dragMoving = !1, t.canDragMove = !1;\n },\n onStop: function () {\n Tt.enable(this);\n },\n onMouseMove: function (t, e) {\n return ct(e) && t.dragMoving && this.fireUpdate(), this.stopExtendedInteractions(t), !0;\n },\n onMouseOut: function (t) {\n return !t.dragMoving || this.fireUpdate();\n }\n };\n te.onTap = te.onClick = function (t, e) {\n return ut(e) ? this.clickAnywhere(t, e) : rt(v.VERTEX)(e) ? this.clickOnVertex(t, e) : ct(e) ? this.clickOnFeature(t, e) : void 0;\n }, te.clickAnywhere = function (t) {\n var e = this,\n n = this.getSelectedIds();\n n.length && (this.clearSelectedFeatures(), n.forEach(function (t) {\n return e.doRender(t);\n })), Tt.enable(this), this.stopExtendedInteractions(t);\n }, te.clickOnVertex = function (t, e) {\n this.changeMode(h.DIRECT_SELECT, {\n featureId: e.featureTarget.properties.parent,\n coordPath: e.featureTarget.properties.coord_path,\n startPos: e.lngLat\n }), this.updateUIClasses({\n mouse: d.MOVE\n });\n }, te.startOnActiveFeature = function (t, e) {\n this.stopExtendedInteractions(t), this.map.dragPan.disable(), this.doRender(e.featureTarget.properties.id), t.canDragMove = !0, t.dragMoveLocation = e.lngLat;\n }, te.clickOnFeature = function (t, e) {\n var n = this;\n Tt.disable(this), this.stopExtendedInteractions(t);\n var o = dt(e),\n r = this.getSelectedIds(),\n i = e.featureTarget.properties.id,\n a = this.isSelected(i);\n if (!o && a && this.getFeature(i).type !== f.POINT) return this.changeMode(h.DIRECT_SELECT, {\n featureId: i\n });\n a && o ? (this.deselect(i), this.updateUIClasses({\n mouse: d.POINTER\n }), 1 === r.length && Tt.enable(this)) : !a && o ? (this.select(i), this.updateUIClasses({\n mouse: d.MOVE\n })) : a || o || (r.forEach(function (t) {\n return n.doRender(t);\n }), this.setSelected(i), this.updateUIClasses({\n mouse: d.MOVE\n })), this.doRender(i);\n }, te.onMouseDown = function (t, e) {\n return at(e) ? this.startOnActiveFeature(t, e) : this.drawConfig.boxSelect && it(e) ? this.startBoxSelect(t, e) : void 0;\n }, te.startBoxSelect = function (t, e) {\n this.stopExtendedInteractions(t), this.map.dragPan.disable(), t.boxSelectStartLocation = mt(e.originalEvent, this.map.getContainer()), t.canBoxSelect = !0;\n }, te.onTouchStart = function (t, e) {\n if (at(e)) return this.startOnActiveFeature(t, e);\n }, te.onDrag = function (t, e) {\n return t.canDragMove ? this.dragMove(t, e) : this.drawConfig.boxSelect && t.canBoxSelect ? this.whileBoxSelect(t, e) : void 0;\n }, te.whileBoxSelect = function (t, e) {\n t.boxSelecting = !0, this.updateUIClasses({\n mouse: d.ADD\n }), t.boxSelectElement || (t.boxSelectElement = document.createElement(\"div\"), t.boxSelectElement.classList.add(c.BOX_SELECT), this.map.getContainer().appendChild(t.boxSelectElement));\n var n = mt(e.originalEvent, this.map.getContainer()),\n o = Math.min(t.boxSelectStartLocation.x, n.x),\n r = Math.max(t.boxSelectStartLocation.x, n.x),\n i = Math.min(t.boxSelectStartLocation.y, n.y),\n a = Math.max(t.boxSelectStartLocation.y, n.y),\n s = \"translate(\" + o + \"px, \" + i + \"px)\";\n t.boxSelectElement.style.transform = s, t.boxSelectElement.style.WebkitTransform = s, t.boxSelectElement.style.width = r - o + \"px\", t.boxSelectElement.style.height = a - i + \"px\";\n }, te.dragMove = function (t, e) {\n t.dragMoving = !0, e.originalEvent.stopPropagation();\n var n = {\n lng: e.lngLat.lng - t.dragMoveLocation.lng,\n lat: e.lngLat.lat - t.dragMoveLocation.lat\n };\n Qt(this.getSelected(), n), t.dragMoveLocation = e.lngLat;\n }, te.onTouchEnd = te.onMouseUp = function (t, e) {\n var n = this;\n if (t.dragMoving) this.fireUpdate();else if (t.boxSelecting) {\n var o = [t.boxSelectStartLocation, mt(e.originalEvent, this.map.getContainer())],\n r = this.featuresAt(null, o, \"click\"),\n i = this.getUniqueIds(r).filter(function (t) {\n return !n.isSelected(t);\n });\n i.length && (this.select(i), i.forEach(function (t) {\n return n.doRender(t);\n }), this.updateUIClasses({\n mouse: d.MOVE\n }));\n }\n this.stopExtendedInteractions(t);\n }, te.toDisplayFeatures = function (t, e, n) {\n e.properties.active = this.isSelected(e.properties.id) ? m.ACTIVE : m.INACTIVE, n(e), this.fireActionable(), e.properties.active === m.ACTIVE && e.geometry.type !== f.POINT && Et(e).forEach(n);\n }, te.onTrash = function () {\n this.deleteFeature(this.getSelectedIds()), this.fireActionable();\n }, te.onCombineFeatures = function () {\n var t = this.getSelected();\n if (!(0 === t.length || t.length < 2)) {\n for (var e = [], n = [], o = t[0].type.replace(\"Multi\", \"\"), r = 0; r < t.length; r++) {\n var i = t[r];\n if (i.type.replace(\"Multi\", \"\") !== o) return;\n i.type.includes(\"Multi\") ? i.getCoordinates().forEach(function (t) {\n e.push(t);\n }) : e.push(i.getCoordinates()), n.push(i.toGeoJSON());\n }\n if (n.length > 1) {\n var a = this.newFeature({\n type: f.FEATURE,\n properties: n[0].properties,\n geometry: {\n type: \"Multi\" + o,\n coordinates: e\n }\n });\n this.addFeature(a), this.deleteFeature(this.getSelectedIds(), {\n silent: !0\n }), this.setSelected([a.id]), this.map.fire(g.COMBINE_FEATURES, {\n createdFeatures: [a.toGeoJSON()],\n deletedFeatures: n\n });\n }\n this.fireActionable();\n }\n }, te.onUncombineFeatures = function () {\n var t = this,\n e = this.getSelected();\n if (0 !== e.length) {\n for (var n = [], o = [], r = function (r) {\n var i = e[r];\n t.isInstanceOf(\"MultiFeature\", i) && (i.getFeatures().forEach(function (e) {\n t.addFeature(e), e.properties = i.properties, n.push(e.toGeoJSON()), t.select([e.id]);\n }), t.deleteFeature(i.id, {\n silent: !0\n }), o.push(i.toGeoJSON()));\n }, i = 0; i < e.length; i++) r(i);\n n.length > 1 && this.map.fire(g.UNCOMBINE_FEATURES, {\n createdFeatures: n,\n deletedFeatures: o\n }), this.fireActionable();\n }\n };\n var ee = rt(v.VERTEX),\n ne = rt(v.MIDPOINT),\n oe = {\n fireUpdate: function () {\n this.map.fire(g.UPDATE, {\n action: y.CHANGE_COORDINATES,\n features: this.getSelected().map(function (t) {\n return t.toGeoJSON();\n })\n });\n },\n fireActionable: function (t) {\n this.setActionableState({\n combineFeatures: !1,\n uncombineFeatures: !1,\n trash: t.selectedCoordPaths.length > 0\n });\n },\n startDragging: function (t, e) {\n this.map.dragPan.disable(), t.canDragMove = !0, t.dragMoveLocation = e.lngLat;\n },\n stopDragging: function (t) {\n this.map.dragPan.enable(), t.dragMoving = !1, t.canDragMove = !1, t.dragMoveLocation = null;\n },\n onVertex: function (t, e) {\n this.startDragging(t, e);\n var n = e.featureTarget.properties,\n o = t.selectedCoordPaths.indexOf(n.coord_path);\n dt(e) || -1 !== o ? dt(e) && -1 === o && t.selectedCoordPaths.push(n.coord_path) : t.selectedCoordPaths = [n.coord_path];\n var r = this.pathsToCoordinates(t.featureId, t.selectedCoordPaths);\n this.setSelectedCoordinates(r);\n },\n onMidpoint: function (t, e) {\n this.startDragging(t, e);\n var n = e.featureTarget.properties;\n t.feature.addCoordinate(n.coord_path, n.lng, n.lat), this.fireUpdate(), t.selectedCoordPaths = [n.coord_path];\n },\n pathsToCoordinates: function (t, e) {\n return e.map(function (e) {\n return {\n feature_id: t,\n coord_path: e\n };\n });\n },\n onFeature: function (t, e) {\n 0 === t.selectedCoordPaths.length ? this.startDragging(t, e) : this.stopDragging(t);\n },\n dragFeature: function (t, e, n) {\n Qt(this.getSelected(), n), t.dragMoveLocation = e.lngLat;\n },\n dragVertex: function (t, e, n) {\n for (var o = t.selectedCoordPaths.map(function (e) {\n return t.feature.getCoordinate(e);\n }), r = Kt(o.map(function (t) {\n return {\n type: f.FEATURE,\n properties: {},\n geometry: {\n type: f.POINT,\n coordinates: t\n }\n };\n }), n), i = 0; i < o.length; i++) {\n var a = o[i];\n t.feature.updateCoordinate(t.selectedCoordPaths[i], a[0] + r.lng, a[1] + r.lat);\n }\n },\n clickNoTarget: function () {\n this.changeMode(h.SIMPLE_SELECT);\n },\n clickInactive: function () {\n this.changeMode(h.SIMPLE_SELECT);\n },\n clickActiveFeature: function (t) {\n t.selectedCoordPaths = [], this.clearSelectedCoordinates(), t.feature.changed();\n },\n onSetup: function (t) {\n var e = t.featureId,\n n = this.getFeature(e);\n if (!n) throw new Error(\"You must provide a featureId to enter direct_select mode\");\n if (n.type === f.POINT) throw new TypeError(\"direct_select mode doesn't handle point features\");\n var o = {\n featureId: e,\n feature: n,\n dragMoveLocation: t.startPos || null,\n dragMoving: !1,\n canDragMove: !1,\n selectedCoordPaths: t.coordPath ? [t.coordPath] : []\n };\n return this.setSelectedCoordinates(this.pathsToCoordinates(e, o.selectedCoordPaths)), this.setSelected(e), Tt.disable(this), this.setActionableState({\n trash: !0\n }), o;\n },\n onStop: function () {\n Tt.enable(this), this.clearSelectedCoordinates();\n },\n toDisplayFeatures: function (t, e, n) {\n t.featureId === e.properties.id ? (e.properties.active = m.ACTIVE, n(e), Et(e, {\n map: this.map,\n midpoints: !0,\n selectedPaths: t.selectedCoordPaths\n }).forEach(n)) : (e.properties.active = m.INACTIVE, n(e)), this.fireActionable(t);\n },\n onTrash: function (t) {\n t.selectedCoordPaths.sort(function (t, e) {\n return e.localeCompare(t, \"en\", {\n numeric: !0\n });\n }).forEach(function (e) {\n return t.feature.removeCoordinate(e);\n }), this.fireUpdate(), t.selectedCoordPaths = [], this.clearSelectedCoordinates(), this.fireActionable(t), !1 === t.feature.isValid() && (this.deleteFeature([t.featureId]), this.changeMode(h.SIMPLE_SELECT, {}));\n },\n onMouseMove: function (t, e) {\n var n = at(e),\n o = ee(e),\n r = ne(e),\n i = 0 === t.selectedCoordPaths.length;\n return n && i || o && !i ? this.updateUIClasses({\n mouse: d.MOVE\n }) : this.updateUIClasses({\n mouse: d.NONE\n }), (o || n || r) && t.dragMoving && this.fireUpdate(), this.stopDragging(t), !0;\n },\n onMouseOut: function (t) {\n return t.dragMoving && this.fireUpdate(), !0;\n }\n };\n oe.onTouchStart = oe.onMouseDown = function (t, e) {\n return ee(e) ? this.onVertex(t, e) : at(e) ? this.onFeature(t, e) : ne(e) ? this.onMidpoint(t, e) : void 0;\n }, oe.onDrag = function (t, e) {\n if (!0 === t.canDragMove) {\n t.dragMoving = !0, e.originalEvent.stopPropagation();\n var n = {\n lng: e.lngLat.lng - t.dragMoveLocation.lng,\n lat: e.lngLat.lat - t.dragMoveLocation.lat\n };\n t.selectedCoordPaths.length > 0 ? this.dragVertex(t, e, n) : this.dragFeature(t, e, n), t.dragMoveLocation = e.lngLat;\n }\n }, oe.onClick = function (t, e) {\n return ut(e) ? this.clickNoTarget(t, e) : at(e) ? this.clickActiveFeature(t, e) : st(e) ? this.clickInactive(t, e) : void this.stopDragging(t);\n }, oe.onTap = function (t, e) {\n return ut(e) ? this.clickNoTarget(t, e) : at(e) ? this.clickActiveFeature(t, e) : st(e) ? this.clickInactive(t, e) : void 0;\n }, oe.onTouchEnd = oe.onMouseUp = function (t) {\n t.dragMoving && this.fireUpdate(), this.stopDragging(t);\n };\n var re = {};\n function ie(t, e) {\n return !!t.lngLat && t.lngLat.lng === e[0] && t.lngLat.lat === e[1];\n }\n re.onSetup = function () {\n var t = this.newFeature({\n type: f.FEATURE,\n properties: {},\n geometry: {\n type: f.POINT,\n coordinates: []\n }\n });\n return this.addFeature(t), this.clearSelectedFeatures(), this.updateUIClasses({\n mouse: d.ADD\n }), this.activateUIButton(p.POINT), this.setActionableState({\n trash: !0\n }), {\n point: t\n };\n }, re.stopDrawingAndRemove = function (t) {\n this.deleteFeature([t.point.id], {\n silent: !0\n }), this.changeMode(h.SIMPLE_SELECT);\n }, re.onTap = re.onClick = function (t, e) {\n this.updateUIClasses({\n mouse: d.MOVE\n }), t.point.updateCoordinate(\"\", e.lngLat.lng, e.lngLat.lat), this.map.fire(g.CREATE, {\n features: [t.point.toGeoJSON()]\n }), this.changeMode(h.SIMPLE_SELECT, {\n featureIds: [t.point.id]\n });\n }, re.onStop = function (t) {\n this.activateUIButton(), t.point.getCoordinate().length || this.deleteFeature([t.point.id], {\n silent: !0\n });\n }, re.toDisplayFeatures = function (t, e, n) {\n var o = e.properties.id === t.point.id;\n if (e.properties.active = o ? m.ACTIVE : m.INACTIVE, !o) return n(e);\n }, re.onTrash = re.stopDrawingAndRemove, re.onKeyUp = function (t, e) {\n if (pt(e) || ft(e)) return this.stopDrawingAndRemove(t, e);\n };\n var ae = {\n onSetup: function () {\n var t = this.newFeature({\n type: f.FEATURE,\n properties: {},\n geometry: {\n type: f.POLYGON,\n coordinates: [[]]\n }\n });\n return this.addFeature(t), this.clearSelectedFeatures(), Tt.disable(this), this.updateUIClasses({\n mouse: d.ADD\n }), this.activateUIButton(p.POLYGON), this.setActionableState({\n trash: !0\n }), {\n polygon: t,\n currentVertexPosition: 0\n };\n },\n clickAnywhere: function (t, e) {\n if (t.currentVertexPosition > 0 && ie(e, t.polygon.coordinates[0][t.currentVertexPosition - 1])) return this.changeMode(h.SIMPLE_SELECT, {\n featureIds: [t.polygon.id]\n });\n this.updateUIClasses({\n mouse: d.ADD\n }), t.polygon.updateCoordinate(\"0.\" + t.currentVertexPosition, e.lngLat.lng, e.lngLat.lat), t.currentVertexPosition++, t.polygon.updateCoordinate(\"0.\" + t.currentVertexPosition, e.lngLat.lng, e.lngLat.lat);\n },\n clickOnVertex: function (t) {\n return this.changeMode(h.SIMPLE_SELECT, {\n featureIds: [t.polygon.id]\n });\n },\n onMouseMove: function (t, e) {\n t.polygon.updateCoordinate(\"0.\" + t.currentVertexPosition, e.lngLat.lng, e.lngLat.lat), lt(e) && this.updateUIClasses({\n mouse: d.POINTER\n });\n }\n };\n ae.onTap = ae.onClick = function (t, e) {\n return lt(e) ? this.clickOnVertex(t, e) : this.clickAnywhere(t, e);\n }, ae.onKeyUp = function (t, e) {\n pt(e) ? (this.deleteFeature([t.polygon.id], {\n silent: !0\n }), this.changeMode(h.SIMPLE_SELECT)) : ft(e) && this.changeMode(h.SIMPLE_SELECT, {\n featureIds: [t.polygon.id]\n });\n }, ae.onStop = function (t) {\n this.updateUIClasses({\n mouse: d.NONE\n }), Tt.enable(this), this.activateUIButton(), void 0 !== this.getFeature(t.polygon.id) && (t.polygon.removeCoordinate(\"0.\" + t.currentVertexPosition), t.polygon.isValid() ? this.map.fire(g.CREATE, {\n features: [t.polygon.toGeoJSON()]\n }) : (this.deleteFeature([t.polygon.id], {\n silent: !0\n }), this.changeMode(h.SIMPLE_SELECT, {}, {\n silent: !0\n })));\n }, ae.toDisplayFeatures = function (t, e, n) {\n var o = e.properties.id === t.polygon.id;\n if (e.properties.active = o ? m.ACTIVE : m.INACTIVE, !o) return n(e);\n if (0 !== e.geometry.coordinates.length) {\n var r = e.geometry.coordinates[0].length;\n if (!(r < 3)) {\n if (e.properties.meta = v.FEATURE, n(_t(t.polygon.id, e.geometry.coordinates[0][0], \"0.0\", !1)), r > 3) {\n var i = e.geometry.coordinates[0].length - 3;\n n(_t(t.polygon.id, e.geometry.coordinates[0][i], \"0.\" + i, !1));\n }\n if (r <= 4) {\n var a = [[e.geometry.coordinates[0][0][0], e.geometry.coordinates[0][0][1]], [e.geometry.coordinates[0][1][0], e.geometry.coordinates[0][1][1]]];\n if (n({\n type: f.FEATURE,\n properties: e.properties,\n geometry: {\n coordinates: a,\n type: f.LINE_STRING\n }\n }), 3 === r) return;\n }\n return n(e);\n }\n }\n }, ae.onTrash = function (t) {\n this.deleteFeature([t.polygon.id], {\n silent: !0\n }), this.changeMode(h.SIMPLE_SELECT);\n };\n var se = {\n onSetup: function (t) {\n var e,\n n,\n o = (t = t || {}).featureId,\n r = \"forward\";\n if (o) {\n if (!(e = this.getFeature(o))) throw new Error(\"Could not find a feature with the provided featureId\");\n var i = t.from;\n if (i && \"Feature\" === i.type && i.geometry && \"Point\" === i.geometry.type && (i = i.geometry), i && \"Point\" === i.type && i.coordinates && 2 === i.coordinates.length && (i = i.coordinates), !i || !Array.isArray(i)) throw new Error(\"Please use the `from` property to indicate which point to continue the line from\");\n var a = e.coordinates.length - 1;\n if (e.coordinates[a][0] === i[0] && e.coordinates[a][1] === i[1]) n = a + 1, e.addCoordinate.apply(e, [n].concat(e.coordinates[a]));else {\n if (e.coordinates[0][0] !== i[0] || e.coordinates[0][1] !== i[1]) throw new Error(\"`from` should match the point at either the start or the end of the provided LineString\");\n r = \"backwards\", n = 0, e.addCoordinate.apply(e, [n].concat(e.coordinates[0]));\n }\n } else e = this.newFeature({\n type: f.FEATURE,\n properties: {},\n geometry: {\n type: f.LINE_STRING,\n coordinates: []\n }\n }), n = 0, this.addFeature(e);\n return this.clearSelectedFeatures(), Tt.disable(this), this.updateUIClasses({\n mouse: d.ADD\n }), this.activateUIButton(p.LINE), this.setActionableState({\n trash: !0\n }), {\n line: e,\n currentVertexPosition: n,\n direction: r\n };\n },\n clickAnywhere: function (t, e) {\n if (t.currentVertexPosition > 0 && ie(e, t.line.coordinates[t.currentVertexPosition - 1]) || \"backwards\" === t.direction && ie(e, t.line.coordinates[t.currentVertexPosition + 1])) return this.changeMode(h.SIMPLE_SELECT, {\n featureIds: [t.line.id]\n });\n this.updateUIClasses({\n mouse: d.ADD\n }), t.line.updateCoordinate(t.currentVertexPosition, e.lngLat.lng, e.lngLat.lat), \"forward\" === t.direction ? (t.currentVertexPosition++, t.line.updateCoordinate(t.currentVertexPosition, e.lngLat.lng, e.lngLat.lat)) : t.line.addCoordinate(0, e.lngLat.lng, e.lngLat.lat);\n },\n clickOnVertex: function (t) {\n return this.changeMode(h.SIMPLE_SELECT, {\n featureIds: [t.line.id]\n });\n },\n onMouseMove: function (t, e) {\n t.line.updateCoordinate(t.currentVertexPosition, e.lngLat.lng, e.lngLat.lat), lt(e) && this.updateUIClasses({\n mouse: d.POINTER\n });\n }\n };\n se.onTap = se.onClick = function (t, e) {\n if (lt(e)) return this.clickOnVertex(t, e);\n this.clickAnywhere(t, e);\n }, se.onKeyUp = function (t, e) {\n ft(e) ? this.changeMode(h.SIMPLE_SELECT, {\n featureIds: [t.line.id]\n }) : pt(e) && (this.deleteFeature([t.line.id], {\n silent: !0\n }), this.changeMode(h.SIMPLE_SELECT));\n }, se.onStop = function (t) {\n Tt.enable(this), this.activateUIButton(), void 0 !== this.getFeature(t.line.id) && (t.line.removeCoordinate(\"\" + t.currentVertexPosition), t.line.isValid() ? this.map.fire(g.CREATE, {\n features: [t.line.toGeoJSON()]\n }) : (this.deleteFeature([t.line.id], {\n silent: !0\n }), this.changeMode(h.SIMPLE_SELECT, {}, {\n silent: !0\n })));\n }, se.onTrash = function (t) {\n this.deleteFeature([t.line.id], {\n silent: !0\n }), this.changeMode(h.SIMPLE_SELECT);\n }, se.toDisplayFeatures = function (t, e, n) {\n var o = e.properties.id === t.line.id;\n if (e.properties.active = o ? m.ACTIVE : m.INACTIVE, !o) return n(e);\n e.geometry.coordinates.length < 2 || (e.properties.meta = v.FEATURE, n(_t(t.line.id, e.geometry.coordinates[\"forward\" === t.direction ? e.geometry.coordinates.length - 2 : 1], \"\" + (\"forward\" === t.direction ? e.geometry.coordinates.length - 2 : 1), !1)), n(e));\n };\n var ue = {\n simple_select: te,\n direct_select: oe,\n draw_point: re,\n draw_polygon: ae,\n draw_line_string: se\n },\n ce = {\n defaultMode: h.SIMPLE_SELECT,\n keybindings: !0,\n touchEnabled: !0,\n clickBuffer: 2,\n touchBuffer: 25,\n boxSelect: !0,\n displayControlsDefault: !0,\n styles: ot,\n modes: ue,\n controls: {},\n userProperties: !1\n },\n le = {\n point: !0,\n line_string: !0,\n polygon: !0,\n trash: !0,\n combine_features: !0,\n uncombine_features: !0\n },\n de = {\n point: !1,\n line_string: !1,\n polygon: !1,\n trash: !1,\n combine_features: !1,\n uncombine_features: !1\n };\n function pe(t, e) {\n return t.map(function (t) {\n return t.source ? t : tt(t, {\n id: t.id + \".\" + e,\n source: \"hot\" === e ? l.HOT : l.COLD\n });\n });\n }\n var fe = {\n exports: {}\n };\n !function (t, e) {\n var n = \"__lodash_hash_undefined__\",\n o = 9007199254740991,\n r = \"[object Arguments]\",\n i = \"[object Array]\",\n a = \"[object Boolean]\",\n s = \"[object Date]\",\n u = \"[object Error]\",\n c = \"[object Function]\",\n l = \"[object Map]\",\n d = \"[object Number]\",\n p = \"[object Object]\",\n f = \"[object Promise]\",\n h = \"[object RegExp]\",\n g = \"[object Set]\",\n y = \"[object String]\",\n v = \"[object Symbol]\",\n m = \"[object WeakMap]\",\n _ = \"[object ArrayBuffer]\",\n b = \"[object DataView]\",\n E = /^\\[object .+?Constructor\\]$/,\n T = /^(?:0|[1-9]\\d*)$/,\n C = {};\n C[\"[object Float32Array]\"] = C[\"[object Float64Array]\"] = C[\"[object Int8Array]\"] = C[\"[object Int16Array]\"] = C[\"[object Int32Array]\"] = C[\"[object Uint8Array]\"] = C[\"[object Uint8ClampedArray]\"] = C[\"[object Uint16Array]\"] = C[\"[object Uint32Array]\"] = !0, C[r] = C[i] = C[_] = C[a] = C[b] = C[s] = C[u] = C[c] = C[l] = C[d] = C[p] = C[h] = C[g] = C[y] = C[m] = !1;\n var O = \"object\" == typeof global && global && global.Object === Object && global,\n S = \"object\" == typeof self && self && self.Object === Object && self,\n I = O || S || Function(\"return this\")(),\n x = e && !e.nodeType && e,\n M = x && t && !t.nodeType && t,\n L = M && M.exports === x,\n N = L && O.process,\n A = function () {\n try {\n return N && N.binding && N.binding(\"util\");\n } catch (t) {}\n }(),\n P = A && A.isTypedArray;\n function F(t, e) {\n for (var n = -1, o = null == t ? 0 : t.length; ++n < o;) if (e(t[n], n, t)) return !0;\n return !1;\n }\n function w(t) {\n var e = -1,\n n = Array(t.size);\n return t.forEach(function (t, o) {\n n[++e] = [o, t];\n }), n;\n }\n function R(t) {\n var e = -1,\n n = Array(t.size);\n return t.forEach(function (t) {\n n[++e] = t;\n }), n;\n }\n var k,\n D,\n U,\n j = Array.prototype,\n V = Function.prototype,\n B = Object.prototype,\n G = I[\"__core-js_shared__\"],\n J = V.toString,\n z = B.hasOwnProperty,\n Y = (k = /[^.]+$/.exec(G && G.keys && G.keys.IE_PROTO || \"\")) ? \"Symbol(src)_1.\" + k : \"\",\n $ = B.toString,\n q = RegExp(\"^\" + J.call(z).replace(/[\\\\^$.*+?()[\\]{}|]/g, \"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, \"$1.*?\") + \"$\"),\n H = L ? I.Buffer : void 0,\n X = I.Symbol,\n Z = I.Uint8Array,\n W = B.propertyIsEnumerable,\n K = j.splice,\n Q = X ? X.toStringTag : void 0,\n tt = Object.getOwnPropertySymbols,\n et = H ? H.isBuffer : void 0,\n nt = (D = Object.keys, U = Object, function (t) {\n return D(U(t));\n }),\n ot = At(I, \"DataView\"),\n rt = At(I, \"Map\"),\n it = At(I, \"Promise\"),\n at = At(I, \"Set\"),\n st = At(I, \"WeakMap\"),\n ut = At(Object, \"create\"),\n ct = Rt(ot),\n lt = Rt(rt),\n dt = Rt(it),\n pt = Rt(at),\n ft = Rt(st),\n ht = X ? X.prototype : void 0,\n gt = ht ? ht.valueOf : void 0;\n function yt(t) {\n var e = -1,\n n = null == t ? 0 : t.length;\n for (this.clear(); ++e < n;) {\n var o = t[e];\n this.set(o[0], o[1]);\n }\n }\n function vt(t) {\n var e = -1,\n n = null == t ? 0 : t.length;\n for (this.clear(); ++e < n;) {\n var o = t[e];\n this.set(o[0], o[1]);\n }\n }\n function mt(t) {\n var e = -1,\n n = null == t ? 0 : t.length;\n for (this.clear(); ++e < n;) {\n var o = t[e];\n this.set(o[0], o[1]);\n }\n }\n function _t(t) {\n var e = -1,\n n = null == t ? 0 : t.length;\n for (this.__data__ = new mt(); ++e < n;) this.add(t[e]);\n }\n function bt(t) {\n var e = this.__data__ = new vt(t);\n this.size = e.size;\n }\n function Et(t, e) {\n var n = Ut(t),\n o = !n && Dt(t),\n r = !n && !o && jt(t),\n i = !n && !o && !r && zt(t),\n a = n || o || r || i,\n s = a ? function (t, e) {\n for (var n = -1, o = Array(t); ++n < t;) o[n] = e(n);\n return o;\n }(t.length, String) : [],\n u = s.length;\n for (var c in t) !e && !z.call(t, c) || a && (\"length\" == c || r && (\"offset\" == c || \"parent\" == c) || i && (\"buffer\" == c || \"byteLength\" == c || \"byteOffset\" == c) || wt(c, u)) || s.push(c);\n return s;\n }\n function Tt(t, e) {\n for (var n = t.length; n--;) if (kt(t[n][0], e)) return n;\n return -1;\n }\n function Ct(t) {\n return null == t ? void 0 === t ? \"[object Undefined]\" : \"[object Null]\" : Q && Q in Object(t) ? function (t) {\n var e = z.call(t, Q),\n n = t[Q];\n try {\n t[Q] = void 0;\n var o = !0;\n } catch (t) {}\n var r = $.call(t);\n o && (e ? t[Q] = n : delete t[Q]);\n return r;\n }(t) : function (t) {\n return $.call(t);\n }(t);\n }\n function Ot(t) {\n return Jt(t) && Ct(t) == r;\n }\n function St(t, e, n, o, c) {\n return t === e || (null == t || null == e || !Jt(t) && !Jt(e) ? t != t && e != e : function (t, e, n, o, c, f) {\n var m = Ut(t),\n E = Ut(e),\n T = m ? i : Ft(t),\n C = E ? i : Ft(e),\n O = (T = T == r ? p : T) == p,\n S = (C = C == r ? p : C) == p,\n I = T == C;\n if (I && jt(t)) {\n if (!jt(e)) return !1;\n m = !0, O = !1;\n }\n if (I && !O) return f || (f = new bt()), m || zt(t) ? Mt(t, e, n, o, c, f) : function (t, e, n, o, r, i, c) {\n switch (n) {\n case b:\n if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset) return !1;\n t = t.buffer, e = e.buffer;\n case _:\n return !(t.byteLength != e.byteLength || !i(new Z(t), new Z(e)));\n case a:\n case s:\n case d:\n return kt(+t, +e);\n case u:\n return t.name == e.name && t.message == e.message;\n case h:\n case y:\n return t == e + \"\";\n case l:\n var p = w;\n case g:\n var f = 1 & o;\n if (p || (p = R), t.size != e.size && !f) return !1;\n var m = c.get(t);\n if (m) return m == e;\n o |= 2, c.set(t, e);\n var E = Mt(p(t), p(e), o, r, i, c);\n return c.delete(t), E;\n case v:\n if (gt) return gt.call(t) == gt.call(e);\n }\n return !1;\n }(t, e, T, n, o, c, f);\n if (!(1 & n)) {\n var x = O && z.call(t, \"__wrapped__\"),\n M = S && z.call(e, \"__wrapped__\");\n if (x || M) {\n var L = x ? t.value() : t,\n N = M ? e.value() : e;\n return f || (f = new bt()), c(L, N, n, o, f);\n }\n }\n if (!I) return !1;\n return f || (f = new bt()), function (t, e, n, o, r, i) {\n var a = 1 & n,\n s = Lt(t),\n u = s.length,\n c = Lt(e).length;\n if (u != c && !a) return !1;\n var l = u;\n for (; l--;) {\n var d = s[l];\n if (!(a ? d in e : z.call(e, d))) return !1;\n }\n var p = i.get(t);\n if (p && i.get(e)) return p == e;\n var f = !0;\n i.set(t, e), i.set(e, t);\n var h = a;\n for (; ++l < u;) {\n var g = t[d = s[l]],\n y = e[d];\n if (o) var v = a ? o(y, g, d, e, t, i) : o(g, y, d, t, e, i);\n if (!(void 0 === v ? g === y || r(g, y, n, o, i) : v)) {\n f = !1;\n break;\n }\n h || (h = \"constructor\" == d);\n }\n if (f && !h) {\n var m = t.constructor,\n _ = e.constructor;\n m == _ || !(\"constructor\" in t) || !(\"constructor\" in e) || \"function\" == typeof m && m instanceof m && \"function\" == typeof _ && _ instanceof _ || (f = !1);\n }\n return i.delete(t), i.delete(e), f;\n }(t, e, n, o, c, f);\n }(t, e, n, o, St, c));\n }\n function It(t) {\n return !(!Gt(t) || function (t) {\n return !!Y && Y in t;\n }(t)) && (Vt(t) ? q : E).test(Rt(t));\n }\n function xt(t) {\n if (n = (e = t) && e.constructor, o = \"function\" == typeof n && n.prototype || B, e !== o) return nt(t);\n var e,\n n,\n o,\n r = [];\n for (var i in Object(t)) z.call(t, i) && \"constructor\" != i && r.push(i);\n return r;\n }\n function Mt(t, e, n, o, r, i) {\n var a = 1 & n,\n s = t.length,\n u = e.length;\n if (s != u && !(a && u > s)) return !1;\n var c = i.get(t);\n if (c && i.get(e)) return c == e;\n var l = -1,\n d = !0,\n p = 2 & n ? new _t() : void 0;\n for (i.set(t, e), i.set(e, t); ++l < s;) {\n var f = t[l],\n h = e[l];\n if (o) var g = a ? o(h, f, l, e, t, i) : o(f, h, l, t, e, i);\n if (void 0 !== g) {\n if (g) continue;\n d = !1;\n break;\n }\n if (p) {\n if (!F(e, function (t, e) {\n if (a = e, !p.has(a) && (f === t || r(f, t, n, o, i))) return p.push(e);\n var a;\n })) {\n d = !1;\n break;\n }\n } else if (f !== h && !r(f, h, n, o, i)) {\n d = !1;\n break;\n }\n }\n return i.delete(t), i.delete(e), d;\n }\n function Lt(t) {\n return function (t, e, n) {\n var o = e(t);\n return Ut(t) ? o : function (t, e) {\n for (var n = -1, o = e.length, r = t.length; ++n < o;) t[r + n] = e[n];\n return t;\n }(o, n(t));\n }(t, Yt, Pt);\n }\n function Nt(t, e) {\n var n,\n o,\n r = t.__data__;\n return (\"string\" == (o = typeof (n = e)) || \"number\" == o || \"symbol\" == o || \"boolean\" == o ? \"__proto__\" !== n : null === n) ? r[\"string\" == typeof e ? \"string\" : \"hash\"] : r.map;\n }\n function At(t, e) {\n var n = function (t, e) {\n return null == t ? void 0 : t[e];\n }(t, e);\n return It(n) ? n : void 0;\n }\n yt.prototype.clear = function () {\n this.__data__ = ut ? ut(null) : {}, this.size = 0;\n }, yt.prototype.delete = function (t) {\n var e = this.has(t) && delete this.__data__[t];\n return this.size -= e ? 1 : 0, e;\n }, yt.prototype.get = function (t) {\n var e = this.__data__;\n if (ut) {\n var o = e[t];\n return o === n ? void 0 : o;\n }\n return z.call(e, t) ? e[t] : void 0;\n }, yt.prototype.has = function (t) {\n var e = this.__data__;\n return ut ? void 0 !== e[t] : z.call(e, t);\n }, yt.prototype.set = function (t, e) {\n var o = this.__data__;\n return this.size += this.has(t) ? 0 : 1, o[t] = ut && void 0 === e ? n : e, this;\n }, vt.prototype.clear = function () {\n this.__data__ = [], this.size = 0;\n }, vt.prototype.delete = function (t) {\n var e = this.__data__,\n n = Tt(e, t);\n return !(n < 0) && (n == e.length - 1 ? e.pop() : K.call(e, n, 1), --this.size, !0);\n }, vt.prototype.get = function (t) {\n var e = this.__data__,\n n = Tt(e, t);\n return n < 0 ? void 0 : e[n][1];\n }, vt.prototype.has = function (t) {\n return Tt(this.__data__, t) > -1;\n }, vt.prototype.set = function (t, e) {\n var n = this.__data__,\n o = Tt(n, t);\n return o < 0 ? (++this.size, n.push([t, e])) : n[o][1] = e, this;\n }, mt.prototype.clear = function () {\n this.size = 0, this.__data__ = {\n hash: new yt(),\n map: new (rt || vt)(),\n string: new yt()\n };\n }, mt.prototype.delete = function (t) {\n var e = Nt(this, t).delete(t);\n return this.size -= e ? 1 : 0, e;\n }, mt.prototype.get = function (t) {\n return Nt(this, t).get(t);\n }, mt.prototype.has = function (t) {\n return Nt(this, t).has(t);\n }, mt.prototype.set = function (t, e) {\n var n = Nt(this, t),\n o = n.size;\n return n.set(t, e), this.size += n.size == o ? 0 : 1, this;\n }, _t.prototype.add = _t.prototype.push = function (t) {\n return this.__data__.set(t, n), this;\n }, _t.prototype.has = function (t) {\n return this.__data__.has(t);\n }, bt.prototype.clear = function () {\n this.__data__ = new vt(), this.size = 0;\n }, bt.prototype.delete = function (t) {\n var e = this.__data__,\n n = e.delete(t);\n return this.size = e.size, n;\n }, bt.prototype.get = function (t) {\n return this.__data__.get(t);\n }, bt.prototype.has = function (t) {\n return this.__data__.has(t);\n }, bt.prototype.set = function (t, e) {\n var n = this.__data__;\n if (n instanceof vt) {\n var o = n.__data__;\n if (!rt || o.length < 199) return o.push([t, e]), this.size = ++n.size, this;\n n = this.__data__ = new mt(o);\n }\n return n.set(t, e), this.size = n.size, this;\n };\n var Pt = tt ? function (t) {\n return null == t ? [] : (t = Object(t), function (t, e) {\n for (var n = -1, o = null == t ? 0 : t.length, r = 0, i = []; ++n < o;) {\n var a = t[n];\n e(a, n, t) && (i[r++] = a);\n }\n return i;\n }(tt(t), function (e) {\n return W.call(t, e);\n }));\n } : function () {\n return [];\n },\n Ft = Ct;\n function wt(t, e) {\n return !!(e = null == e ? o : e) && (\"number\" == typeof t || T.test(t)) && t > -1 && t % 1 == 0 && t < e;\n }\n function Rt(t) {\n if (null != t) {\n try {\n return J.call(t);\n } catch (t) {}\n try {\n return t + \"\";\n } catch (t) {}\n }\n return \"\";\n }\n function kt(t, e) {\n return t === e || t != t && e != e;\n }\n (ot && Ft(new ot(new ArrayBuffer(1))) != b || rt && Ft(new rt()) != l || it && Ft(it.resolve()) != f || at && Ft(new at()) != g || st && Ft(new st()) != m) && (Ft = function (t) {\n var e = Ct(t),\n n = e == p ? t.constructor : void 0,\n o = n ? Rt(n) : \"\";\n if (o) switch (o) {\n case ct:\n return b;\n case lt:\n return l;\n case dt:\n return f;\n case pt:\n return g;\n case ft:\n return m;\n }\n return e;\n });\n var Dt = Ot(function () {\n return arguments;\n }()) ? Ot : function (t) {\n return Jt(t) && z.call(t, \"callee\") && !W.call(t, \"callee\");\n },\n Ut = Array.isArray;\n var jt = et || function () {\n return !1;\n };\n function Vt(t) {\n if (!Gt(t)) return !1;\n var e = Ct(t);\n return e == c || \"[object GeneratorFunction]\" == e || \"[object AsyncFunction]\" == e || \"[object Proxy]\" == e;\n }\n function Bt(t) {\n return \"number\" == typeof t && t > -1 && t % 1 == 0 && t <= o;\n }\n function Gt(t) {\n var e = typeof t;\n return null != t && (\"object\" == e || \"function\" == e);\n }\n function Jt(t) {\n return null != t && \"object\" == typeof t;\n }\n var zt = P ? function (t) {\n return function (e) {\n return t(e);\n };\n }(P) : function (t) {\n return Jt(t) && Bt(t.length) && !!C[Ct(t)];\n };\n function Yt(t) {\n return null != (e = t) && Bt(e.length) && !Vt(e) ? Et(t) : xt(t);\n var e;\n }\n t.exports = function (t, e) {\n return St(t, e);\n };\n }(fe, fe.exports);\n var he = e(fe.exports);\n function ge(t, e) {\n return t.length === e.length && JSON.stringify(t.map(function (t) {\n return t;\n }).sort()) === JSON.stringify(e.map(function (t) {\n return t;\n }).sort());\n }\n var ye = {\n Polygon: V,\n LineString: j,\n Point: U,\n MultiPolygon: J,\n MultiLineString: J,\n MultiPoint: J\n };\n var ve = Object.freeze({\n __proto__: null,\n CommonSelectors: ht,\n constrainFeatureMovement: Kt,\n createMidPoint: bt,\n createSupplementaryPoints: Et,\n createVertex: _t,\n doubleClickZoom: Tt,\n euclideanDistance: A,\n featuresAt: M,\n getFeatureAtAndSetCursors: N,\n isClick: P,\n isEventAtCoordinates: ie,\n isTap: F,\n mapEventToBoundingBox: S,\n ModeHandler: t,\n moveFeatures: Qt,\n sortFeatures: O,\n stringSetsAreEqual: ge,\n StringSet: I,\n theme: ot,\n toDenseArray: H\n }),\n me = function (t, e) {\n var n = {\n options: t = function (t) {\n void 0 === t && (t = {});\n var e = tt(t);\n return t.controls || (e.controls = {}), !1 === t.displayControlsDefault ? e.controls = tt(de, t.controls) : e.controls = tt(le, t.controls), (e = tt(ce, e)).styles = pe(e.styles, \"cold\").concat(pe(e.styles, \"hot\")), e;\n }(t)\n };\n e = function (t, e) {\n return e.modes = h, e.getFeatureIdsAt = function (e) {\n return M.click({\n point: e\n }, null, t).map(function (t) {\n return t.properties.id;\n });\n }, e.getSelectedIds = function () {\n return t.store.getSelectedIds();\n }, e.getSelected = function () {\n return {\n type: f.FEATURE_COLLECTION,\n features: t.store.getSelectedIds().map(function (e) {\n return t.store.get(e);\n }).map(function (t) {\n return t.toGeoJSON();\n })\n };\n }, e.getSelectedPoints = function () {\n return {\n type: f.FEATURE_COLLECTION,\n features: t.store.getSelectedCoordinates().map(function (t) {\n return {\n type: f.FEATURE,\n properties: {},\n geometry: {\n type: f.POINT,\n coordinates: t.coordinates\n }\n };\n })\n };\n }, e.set = function (n) {\n if (void 0 === n.type || n.type !== f.FEATURE_COLLECTION || !Array.isArray(n.features)) throw new Error(\"Invalid FeatureCollection\");\n var o = t.store.createRenderBatch(),\n r = t.store.getAllIds().slice(),\n i = e.add(n),\n a = new I(i);\n return (r = r.filter(function (t) {\n return !a.has(t);\n })).length && e.delete(r), o(), i;\n }, e.add = function (e) {\n var n = JSON.parse(JSON.stringify(It(e))).features.map(function (e) {\n if (e.id = e.id || k(), null === e.geometry) throw new Error(\"Invalid geometry: null\");\n if (void 0 === t.store.get(e.id) || t.store.get(e.id).type !== e.geometry.type) {\n var n = ye[e.geometry.type];\n if (void 0 === n) throw new Error(\"Invalid geometry type: \" + e.geometry.type + \".\");\n var o = new n(t, e);\n t.store.add(o);\n } else {\n var r = t.store.get(e.id);\n r.properties = e.properties, he(r.properties, e.properties) || t.store.featureChanged(r.id), he(r.getCoordinates(), e.geometry.coordinates) || r.incomingCoords(e.geometry.coordinates);\n }\n return e.id;\n });\n return t.store.render(), n;\n }, e.get = function (e) {\n var n = t.store.get(e);\n if (n) return n.toGeoJSON();\n }, e.getAll = function () {\n return {\n type: f.FEATURE_COLLECTION,\n features: t.store.getAll().map(function (t) {\n return t.toGeoJSON();\n })\n };\n }, e.delete = function (n) {\n return t.store.delete(n, {\n silent: !0\n }), e.getMode() !== h.DIRECT_SELECT || t.store.getSelectedIds().length ? t.store.render() : t.events.changeMode(h.SIMPLE_SELECT, void 0, {\n silent: !0\n }), e;\n }, e.deleteAll = function () {\n return t.store.delete(t.store.getAllIds(), {\n silent: !0\n }), e.getMode() === h.DIRECT_SELECT ? t.events.changeMode(h.SIMPLE_SELECT, void 0, {\n silent: !0\n }) : t.store.render(), e;\n }, e.changeMode = function (n, o) {\n return void 0 === o && (o = {}), n === h.SIMPLE_SELECT && e.getMode() === h.SIMPLE_SELECT ? (ge(o.featureIds || [], t.store.getSelectedIds()) || (t.store.setSelected(o.featureIds, {\n silent: !0\n }), t.store.render()), e) : (n === h.DIRECT_SELECT && e.getMode() === h.DIRECT_SELECT && o.featureId === t.store.getSelectedIds()[0] || t.events.changeMode(n, o, {\n silent: !0\n }), e);\n }, e.getMode = function () {\n return t.events.getMode();\n }, e.trash = function () {\n return t.events.trash({\n silent: !0\n }), e;\n }, e.combineFeatures = function () {\n return t.events.combineFeatures({\n silent: !0\n }), e;\n }, e.uncombineFeatures = function () {\n return t.events.uncombineFeatures({\n silent: !0\n }), e;\n }, e.setFeatureProperty = function (n, o, r) {\n return t.store.setFeatureProperty(n, o, r), e;\n }, e;\n }(n, e), n.api = e;\n var o = nt(n);\n return e.onAdd = o.onAdd, e.onRemove = o.onRemove, e.types = p, e.options = t, e;\n };\n function _e(t) {\n me(t, this);\n }\n return _e.modes = ue, _e.constants = E, _e.lib = ve, _e;\n});\n","var StaticMode = module.exports = {};\nStaticMode.onSetup = function () {\n this.setActionableState(); // default actionable state is false for all actions\n return {};\n};\nStaticMode.toDisplayFeatures = function (state, geojson, display) {\n display(geojson);\n};","module.exports = extend;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction extend() {\n var target = {};\n for (var i = 0; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n}","/*\n * Fuzzy\n * https://github.com/myork/fuzzy\n *\n * Copyright (c) 2012 Matt York\n * Licensed under the MIT license.\n */\n\n(function () {\n var root = this;\n var fuzzy = {};\n\n // Use in node or in browser\n if (typeof exports !== 'undefined') {\n module.exports = fuzzy;\n } else {\n root.fuzzy = fuzzy;\n }\n\n // Return all elements of `array` that have a fuzzy\n // match against `pattern`.\n fuzzy.simpleFilter = function (pattern, array) {\n return array.filter(function (str) {\n return fuzzy.test(pattern, str);\n });\n };\n\n // Does `pattern` fuzzy match `str`?\n fuzzy.test = function (pattern, str) {\n return fuzzy.match(pattern, str) !== null;\n };\n\n // If `pattern` matches `str`, wrap each matching character\n // in `opts.pre` and `opts.post`. If no match, return null\n fuzzy.match = function (pattern, str, opts) {\n opts = opts || {};\n var patternIdx = 0,\n result = [],\n len = str.length,\n totalScore = 0,\n currScore = 0\n // prefix\n ,\n pre = opts.pre || ''\n // suffix\n ,\n post = opts.post || ''\n // String to compare against. This might be a lowercase version of the\n // raw string\n ,\n compareString = opts.caseSensitive && str || str.toLowerCase(),\n ch;\n pattern = opts.caseSensitive && pattern || pattern.toLowerCase();\n\n // For each character in the string, either add it to the result\n // or wrap in template if it's the next string in the pattern\n for (var idx = 0; idx < len; idx++) {\n ch = str[idx];\n if (compareString[idx] === pattern[patternIdx]) {\n ch = pre + ch + post;\n patternIdx += 1;\n\n // consecutive characters should increase the score more than linearly\n currScore += 1 + currScore;\n } else {\n currScore = 0;\n }\n totalScore += currScore;\n result[result.length] = ch;\n }\n\n // return rendered string if we have a match for every char\n if (patternIdx === pattern.length) {\n // if the string is an exact match with pattern, totalScore should be maxed\n totalScore = compareString === pattern ? Infinity : totalScore;\n return {\n rendered: result.join(''),\n score: totalScore\n };\n }\n return null;\n };\n\n // The normal entry point. Filters `arr` for matches against `pattern`.\n // It returns an array with matching values of the type:\n //\n // [{\n // string: 'lah' // The rendered string\n // , index: 2 // The index of the element in `arr`\n // , original: 'blah' // The original element in `arr`\n // }]\n //\n // `opts` is an optional argument bag. Details:\n //\n // opts = {\n // // string to put before a matching character\n // pre: ''\n //\n // // string to put after matching character\n // , post: ''\n //\n // // Optional function. Input is an entry in the given arr`,\n // // output should be the string to test `pattern` against.\n // // In this example, if `arr = [{crying: 'koala'}]` we would return\n // // 'koala'.\n // , extract: function(arg) { return arg.crying; }\n // }\n fuzzy.filter = function (pattern, arr, opts) {\n if (!arr || arr.length === 0) {\n return [];\n }\n if (typeof pattern !== 'string') {\n return arr;\n }\n opts = opts || {};\n return arr.reduce(function (prev, element, idx, arr) {\n var str = element;\n if (opts.extract) {\n str = opts.extract(element);\n }\n var rendered = fuzzy.match(pattern, str, opts);\n if (rendered != null) {\n prev[prev.length] = {\n string: rendered.rendered,\n score: rendered.score,\n index: idx,\n original: element\n };\n }\n return prev;\n }, [])\n\n // Sort by score. Browsers are inconsistent wrt stable/unstable\n // sorting, so force stable by using the index in the case of tie.\n // See http://ofb.net/~sethml/is-sort-stable.html\n .sort(function (a, b) {\n var compare = b.score - a.score;\n if (compare) return compare;\n return a.index - b.index;\n });\n };\n})();","'use strict';\n\nvar List = function (component) {\n this.component = component;\n this.items = [];\n this.active = 0;\n this.wrapper = document.createElement('div');\n this.wrapper.className = 'suggestions-wrapper';\n this.element = document.createElement('ul');\n this.element.className = 'suggestions';\n this.wrapper.appendChild(this.element);\n\n // selectingListItem is set to true in the time between the mousedown and mouseup when clicking an item in the list\n // mousedown on a list item will cause the input to blur which normally hides the list, so this flag is used to keep\n // the list open until the mouseup\n this.selectingListItem = false;\n component.el.parentNode.insertBefore(this.wrapper, component.el.nextSibling);\n return this;\n};\nList.prototype.show = function () {\n this.element.style.display = 'block';\n};\nList.prototype.hide = function () {\n this.element.style.display = 'none';\n};\nList.prototype.add = function (item) {\n this.items.push(item);\n};\nList.prototype.clear = function () {\n this.items = [];\n this.active = 0;\n};\nList.prototype.isEmpty = function () {\n return !this.items.length;\n};\nList.prototype.isVisible = function () {\n return this.element.style.display === 'block';\n};\nList.prototype.draw = function () {\n this.element.innerHTML = '';\n if (this.items.length === 0) {\n this.hide();\n return;\n }\n for (var i = 0; i < this.items.length; i++) {\n this.drawItem(this.items[i], this.active === i);\n }\n this.show();\n};\nList.prototype.drawItem = function (item, active) {\n var li = document.createElement('li'),\n a = document.createElement('a');\n if (active) li.className += ' active';\n a.innerHTML = item.string;\n li.appendChild(a);\n this.element.appendChild(li);\n li.addEventListener('mousedown', function () {\n this.selectingListItem = true;\n }.bind(this));\n li.addEventListener('mouseup', function () {\n this.handleMouseUp.call(this, item);\n }.bind(this));\n};\nList.prototype.handleMouseUp = function (item) {\n this.selectingListItem = false;\n this.component.value(item.original);\n this.clear();\n this.draw();\n};\nList.prototype.move = function (index) {\n this.active = index;\n this.draw();\n};\nList.prototype.previous = function () {\n this.move(this.active === 0 ? this.items.length - 1 : this.active - 1);\n};\nList.prototype.next = function () {\n this.move(this.active === this.items.length - 1 ? 0 : this.active + 1);\n};\nList.prototype.drawError = function (msg) {\n var li = document.createElement('li');\n li.innerHTML = msg;\n this.element.appendChild(li);\n this.show();\n};\nmodule.exports = List;","'use strict';\n\nvar extend = require('xtend');\nvar fuzzy = require('fuzzy');\nvar List = require('./list');\nvar Suggestions = function (el, data, options) {\n options = options || {};\n this.options = extend({\n minLength: 2,\n limit: 5,\n filter: true,\n hideOnBlur: true\n }, options);\n this.el = el;\n this.data = data || [];\n this.list = new List(this);\n this.query = '';\n this.selected = null;\n this.list.draw();\n this.el.addEventListener('keyup', function (e) {\n this.handleKeyUp(e.keyCode);\n }.bind(this), false);\n this.el.addEventListener('keydown', function (e) {\n this.handleKeyDown(e);\n }.bind(this));\n this.el.addEventListener('focus', function () {\n this.handleFocus();\n }.bind(this));\n this.el.addEventListener('blur', function () {\n this.handleBlur();\n }.bind(this));\n this.el.addEventListener('paste', function (e) {\n this.handlePaste(e);\n }.bind(this));\n\n // use user-provided render function if given, otherwise just use the default\n this.render = this.options.render ? this.options.render.bind(this) : this.render.bind(this);\n this.getItemValue = this.options.getItemValue ? this.options.getItemValue.bind(this) : this.getItemValue.bind(this);\n return this;\n};\nSuggestions.prototype.handleKeyUp = function (keyCode) {\n // 40 - DOWN\n // 38 - UP\n // 27 - ESC\n // 13 - ENTER\n // 9 - TAB\n\n if (keyCode === 40 || keyCode === 38 || keyCode === 27 || keyCode === 13 || keyCode === 9) return;\n this.handleInputChange(this.el.value);\n};\nSuggestions.prototype.handleKeyDown = function (e) {\n switch (e.keyCode) {\n case 13: // ENTER\n case 9:\n // TAB\n if (!this.list.isEmpty()) {\n if (this.list.isVisible()) {\n e.preventDefault();\n }\n this.value(this.list.items[this.list.active].original);\n this.list.hide();\n }\n break;\n case 27:\n // ESC\n if (!this.list.isEmpty()) this.list.hide();\n break;\n case 38:\n // UP\n this.list.previous();\n break;\n case 40:\n // DOWN\n this.list.next();\n break;\n }\n};\nSuggestions.prototype.handleBlur = function () {\n if (!this.list.selectingListItem && this.options.hideOnBlur) {\n this.list.hide();\n }\n};\nSuggestions.prototype.handlePaste = function (e) {\n if (e.clipboardData) {\n this.handleInputChange(e.clipboardData.getData('Text'));\n } else {\n var self = this;\n setTimeout(function () {\n self.handleInputChange(e.target.value);\n }, 100);\n }\n};\nSuggestions.prototype.handleInputChange = function (query) {\n this.query = this.normalize(query);\n this.list.clear();\n if (this.query.length < this.options.minLength) {\n this.list.draw();\n return;\n }\n this.getCandidates(function (data) {\n for (var i = 0; i < data.length; i++) {\n this.list.add(data[i]);\n if (i === this.options.limit - 1) break;\n }\n this.list.draw();\n }.bind(this));\n};\nSuggestions.prototype.handleFocus = function () {\n if (!this.list.isEmpty()) this.list.show();\n this.list.selectingListItem = false;\n};\n\n/**\n * Update data previously passed\n *\n * @param {Array} revisedData\n */\nSuggestions.prototype.update = function (revisedData) {\n this.data = revisedData;\n this.handleKeyUp();\n};\n\n/**\n * Clears data\n */\nSuggestions.prototype.clear = function () {\n this.data = [];\n this.list.clear();\n};\n\n/**\n * Normalize the results list and input value for matching\n *\n * @param {String} value\n * @return {String}\n */\nSuggestions.prototype.normalize = function (value) {\n value = value.toLowerCase();\n return value;\n};\n\n/**\n * Evaluates whether an array item qualifies as a match with the current query\n *\n * @param {String} candidate a possible item from the array passed\n * @param {String} query the current query\n * @return {Boolean}\n */\nSuggestions.prototype.match = function (candidate, query) {\n return candidate.indexOf(query) > -1;\n};\nSuggestions.prototype.value = function (value) {\n this.selected = value;\n this.el.value = this.getItemValue(value);\n if (document.createEvent) {\n var e = document.createEvent('HTMLEvents');\n e.initEvent('change', true, false);\n this.el.dispatchEvent(e);\n } else {\n this.el.fireEvent('onchange');\n }\n};\nSuggestions.prototype.getCandidates = function (callback) {\n var options = {\n pre: '',\n post: '',\n extract: function (d) {\n return this.getItemValue(d);\n }.bind(this)\n };\n var results;\n if (this.options.filter) {\n results = fuzzy.filter(this.query, this.data, options);\n results = results.map(function (item) {\n return {\n original: item.original,\n string: this.render(item.original, item.string)\n };\n }.bind(this));\n } else {\n results = this.data.map(function (d) {\n var renderedString = this.render(d);\n return {\n original: d,\n string: renderedString\n };\n }.bind(this));\n }\n callback(results);\n};\n\n/**\n * For a given item in the data array, return what should be used as the candidate string\n *\n * @param {Object|String} item an item from the data array\n * @return {String} item\n */\nSuggestions.prototype.getItemValue = function (item) {\n return item;\n};\n\n/**\n * For a given item in the data array, return a string of html that should be rendered in the dropdown\n * @param {Object|String} item an item from the data array\n * @param {String} sourceFormatting a string that has pre-formatted html that should be passed directly through the render function \n * @return {String} html\n */\nSuggestions.prototype.render = function (item, sourceFormatting) {\n if (sourceFormatting) {\n // use existing formatting on the source string\n return sourceFormatting;\n }\n var boldString = item.original ? this.getItemValue(item.original) : this.getItemValue(item);\n var indexString = this.normalize(boldString);\n var indexOfQuery = indexString.lastIndexOf(this.query);\n while (indexOfQuery > -1) {\n var endIndexOfQuery = indexOfQuery + this.query.length;\n boldString = boldString.slice(0, indexOfQuery) + '' + boldString.slice(indexOfQuery, endIndexOfQuery) + '' + boldString.slice(endIndexOfQuery);\n indexOfQuery = indexString.slice(0, indexOfQuery).lastIndexOf(this.query);\n }\n return boldString;\n};\n\n/**\n * Render an custom error message in the suggestions list\n * @param {String} msg An html string to render as an error message\n */\nSuggestions.prototype.renderError = function (msg) {\n this.list.drawError(msg);\n};\nmodule.exports = Suggestions;","'use strict';\n\n/**\n * A typeahead component for inputs\n * @class Suggestions\n *\n * @param {HTMLInputElement} el A valid HTML input element\n * @param {Array} data An array of data used for results\n * @param {Object} options\n * @param {Number} [options.limit=5] Max number of results to display in the auto suggest list.\n * @param {Number} [options.minLength=2] Number of characters typed into an input to trigger suggestions.\n * @param {Boolean} [options.hideOnBlur=true] If `true`, hides the suggestions when focus is lost.\n * @return {Suggestions} `this`\n * @example\n * // in the browser\n * var input = document.querySelector('input');\n * var data = [\n * 'Roy Eldridge',\n * 'Roy Hargrove',\n * 'Rex Stewart'\n * ];\n *\n * new Suggestions(input, data);\n *\n * // with options\n * var input = document.querySelector('input');\n * var data = [{\n * name: 'Roy Eldridge',\n * year: 1911\n * }, {\n * name: 'Roy Hargrove',\n * year: 1969\n * }, {\n * name: 'Rex Stewart',\n * year: 1907\n * }];\n *\n * var typeahead = new Suggestions(input, data, {\n * filter: false, // Disable filtering\n * minLength: 3, // Number of characters typed into an input to trigger suggestions.\n * limit: 3, // Max number of results to display.\n * hideOnBlur: false // Don't hide results when input loses focus\n * });\n *\n * // As we're passing an object of an arrays as data, override\n * // `getItemValue` by specifying the specific property to search on.\n * typeahead.getItemValue = function(item) { return item.name };\n *\n * input.addEventListener('change', function() {\n * console.log(typeahead.selected); // Current selected item.\n * });\n *\n * // With browserify\n * var Suggestions = require('suggestions');\n *\n * new Suggestions(input, data);\n */\nvar Suggestions = require('./src/suggestions');\nmodule.exports = Suggestions;\nif (typeof window !== 'undefined') {\n window.Suggestions = Suggestions;\n}","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function () {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;\n }\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' || isObjectLike(value) && objectToString.call(value) == symbolTag;\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? other + '' : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;\n}\nmodule.exports = debounce;","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null;\nvar ReflectApply = R && typeof R.apply === 'function' ? R.apply : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n};\nvar ReflectOwnKeys;\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys;\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n};\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function () {\n return defaultMaxListeners;\n },\n set: function (arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\nEventEmitter.init = function () {\n if (this._events === undefined || this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined) return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = type === 'error';\n var events = this._events;\n if (events !== undefined) doError = doError && events.error === undefined;else if (!doError) return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0) er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n var handler = events[type];\n if (handler === undefined) return false;\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i) ReflectApply(listeners[i], this, args);\n }\n return true;\n};\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n checkListener(listener);\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type, listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] = prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' + existing.length + ' ' + String(type) + ' listeners ' + 'added. Use emitter.setMaxListeners() to ' + 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n return target;\n}\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\nEventEmitter.prototype.prependListener = function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n};\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0) return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\nfunction _onceWrap(target, type, listener) {\n var state = {\n fired: false,\n wrapFn: undefined,\n target: target,\n type: type,\n listener: listener\n };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\nEventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n};\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener = function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n checkListener(listener);\n events = this._events;\n if (events === undefined) return this;\n list = events[type];\n if (list === undefined) return this;\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0) this._events = Object.create(null);else {\n delete events[type];\n if (events.removeListener) this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n if (position < 0) return this;\n if (position === 0) list.shift();else {\n spliceOne(list, position);\n }\n if (list.length === 1) events[type] = list[0];\n if (events.removeListener !== undefined) this.emit('removeListener', type, originalListener || listener);\n }\n return this;\n};\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\nEventEmitter.prototype.removeAllListeners = function removeAllListeners(type) {\n var listeners, events, i;\n events = this._events;\n if (events === undefined) return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0) this._events = Object.create(null);else delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n listeners = events[type];\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n return this;\n};\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n if (events === undefined) return [];\n var evlistener = events[type];\n if (evlistener === undefined) return [];\n if (typeof evlistener === 'function') return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\nEventEmitter.listenerCount = function (emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n if (events !== undefined) {\n var evlistener = events[type];\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n return 0;\n}\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i) copy[i] = arr[i];\n return copy;\n}\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++) list[index] = list[index + 1];\n list.pop();\n}\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n }\n ;\n eventTargetAgnosticAddListener(emitter, name, resolver, {\n once: true\n });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, {\n once: true\n });\n }\n });\n}\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}","module.exports = {\n 'fr': {\n 'name': 'France',\n 'bbox': [[-4.59235, 41.380007], [9.560016, 51.148506]]\n },\n 'us': {\n 'name': 'United States',\n 'bbox': [[-171.791111, 18.91619], [-66.96466, 71.357764]]\n },\n 'ru': {\n 'name': 'Russia',\n 'bbox': [[19.66064, 41.151416], [190.10042, 81.2504]]\n },\n 'ca': {\n 'name': 'Canada',\n 'bbox': [[-140.99778, 41.675105], [-52.648099, 83.23324]]\n }\n};","'use strict';\n\n// Like https://github.com/thlorenz/lib/parse-link-header but without any\n// additional dependencies.\nfunction parseParam(param) {\n var parts = param.match(/\\s*(.+)\\s*=\\s*\"?([^\"]+)\"?/);\n if (!parts) return null;\n return {\n key: parts[1],\n value: parts[2]\n };\n}\nfunction parseLink(link) {\n var parts = link.match(/]*)>(.*)/);\n if (!parts) return null;\n var linkUrl = parts[1];\n var linkParams = parts[2].split(';');\n var rel = null;\n var parsedLinkParams = linkParams.reduce(function (result, param) {\n var parsed = parseParam(param);\n if (!parsed) return result;\n if (parsed.key === 'rel') {\n if (!rel) {\n rel = parsed.value;\n }\n return result;\n }\n result[parsed.key] = parsed.value;\n return result;\n }, {});\n if (!rel) return null;\n return {\n url: linkUrl,\n rel: rel,\n params: parsedLinkParams\n };\n}\n\n/**\n * Parse a Link header.\n *\n * @param {string} linkHeader\n * @returns {{\n * [string]: {\n * url: string,\n * params: { [string]: string }\n * }\n * }}\n */\nfunction parseLinkHeader(linkHeader) {\n if (!linkHeader) return {};\n return linkHeader.split(/,\\s*= 400) {\n var mapiError = new MapiError({\n request: request,\n body: xhr.response,\n statusCode: xhr.status\n });\n reject(mapiError);\n return;\n }\n resolve(xhr);\n };\n var body = request.body;\n\n // matching service needs to send a www-form-urlencoded request\n if (typeof body === 'string') {\n xhr.send(body);\n } else if (body) {\n xhr.send(JSON.stringify(body));\n } else if (file) {\n xhr.send(file);\n } else {\n xhr.send();\n }\n requestsUnderway[request.id] = xhr;\n }).then(function (xhr) {\n return createResponse(request, xhr);\n });\n}\n\n// The accessToken argument gives this function flexibility\n// for Mapbox's internal client.\nfunction createRequestXhr(request, accessToken) {\n var url = request.url(accessToken);\n var xhr = new window.XMLHttpRequest();\n xhr.open(request.method, url);\n Object.keys(request.headers).forEach(function (key) {\n xhr.setRequestHeader(key, request.headers[key]);\n });\n return xhr;\n}\nfunction browserSend(request) {\n return Promise.resolve().then(function () {\n var xhr = createRequestXhr(request, request.client.accessToken);\n return sendRequestXhr(request, xhr);\n });\n}\nmodule.exports = {\n browserAbort: browserAbort,\n sendRequestXhr: sendRequestXhr,\n browserSend: browserSend,\n createRequestXhr: createRequestXhr\n};","/*! http://mths.be/base64 v0.1.0 by @mathias | MIT license */\n;\n(function (root) {\n // Detect free variables `exports`.\n var freeExports = typeof exports == 'object' && exports;\n\n // Detect free variable `module`.\n var freeModule = typeof module == 'object' && module && module.exports == freeExports && module;\n\n // Detect free variable `global`, from Node.js or Browserified code, and use\n // it as `root`.\n var freeGlobal = typeof global == 'object' && global;\n if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {\n root = freeGlobal;\n }\n\n /*--------------------------------------------------------------------------*/\n\n var InvalidCharacterError = function (message) {\n this.message = message;\n };\n InvalidCharacterError.prototype = new Error();\n InvalidCharacterError.prototype.name = 'InvalidCharacterError';\n var error = function (message) {\n // Note: the error messages used throughout this file match those used by\n // the native `atob`/`btoa` implementation in Chromium.\n throw new InvalidCharacterError(message);\n };\n var TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n // http://whatwg.org/html/common-microsyntaxes.html#space-character\n var REGEX_SPACE_CHARACTERS = /[\\t\\n\\f\\r ]/g;\n\n // `decode` is designed to be fully compatible with `atob` as described in the\n // HTML Standard. http://whatwg.org/html/webappapis.html#dom-windowbase64-atob\n // The optimized base64-decoding algorithm used is based on @atk’s excellent\n // implementation. https://gist.github.com/atk/1020396\n var decode = function (input) {\n input = String(input).replace(REGEX_SPACE_CHARACTERS, '');\n var length = input.length;\n if (length % 4 == 0) {\n input = input.replace(/==?$/, '');\n length = input.length;\n }\n if (length % 4 == 1 ||\n // http://whatwg.org/C#alphanumeric-ascii-characters\n /[^+a-zA-Z0-9/]/.test(input)) {\n error('Invalid character: the string to be decoded is not correctly encoded.');\n }\n var bitCounter = 0;\n var bitStorage;\n var buffer;\n var output = '';\n var position = -1;\n while (++position < length) {\n buffer = TABLE.indexOf(input.charAt(position));\n bitStorage = bitCounter % 4 ? bitStorage * 64 + buffer : buffer;\n // Unless this is the first of a group of 4 characters…\n if (bitCounter++ % 4) {\n // …convert the first 8 bits to a single ASCII character.\n output += String.fromCharCode(0xFF & bitStorage >> (-2 * bitCounter & 6));\n }\n }\n return output;\n };\n\n // `encode` is designed to be fully compatible with `btoa` as described in the\n // HTML Standard: http://whatwg.org/html/webappapis.html#dom-windowbase64-btoa\n var encode = function (input) {\n input = String(input);\n if (/[^\\0-\\xFF]/.test(input)) {\n // Note: no need to special-case astral symbols here, as surrogates are\n // matched, and the input is supposed to only contain ASCII anyway.\n error('The string to be encoded contains characters outside of the ' + 'Latin1 range.');\n }\n var padding = input.length % 3;\n var output = '';\n var position = -1;\n var a;\n var b;\n var c;\n var d;\n var buffer;\n // Make sure any padding is handled outside of the loop.\n var length = input.length - padding;\n while (++position < length) {\n // Read three bytes, i.e. 24 bits.\n a = input.charCodeAt(position) << 16;\n b = input.charCodeAt(++position) << 8;\n c = input.charCodeAt(++position);\n buffer = a + b + c;\n // Turn the 24 bits into four chunks of 6 bits each, and append the\n // matching character for each of them to the output.\n output += TABLE.charAt(buffer >> 18 & 0x3F) + TABLE.charAt(buffer >> 12 & 0x3F) + TABLE.charAt(buffer >> 6 & 0x3F) + TABLE.charAt(buffer & 0x3F);\n }\n if (padding == 2) {\n a = input.charCodeAt(position) << 8;\n b = input.charCodeAt(++position);\n buffer = a + b;\n output += TABLE.charAt(buffer >> 10) + TABLE.charAt(buffer >> 4 & 0x3F) + TABLE.charAt(buffer << 2 & 0x3F) + '=';\n } else if (padding == 1) {\n buffer = input.charCodeAt(position);\n output += TABLE.charAt(buffer >> 2) + TABLE.charAt(buffer << 4 & 0x3F) + '==';\n }\n return output;\n };\n var base64 = {\n 'encode': encode,\n 'decode': decode,\n 'version': '0.1.0'\n };\n\n // Some AMD build optimizers, like r.js, check for specific condition patterns\n // like the following:\n if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {\n define(function () {\n return base64;\n });\n } else if (freeExports && !freeExports.nodeType) {\n if (freeModule) {\n // in Node.js or RingoJS v0.8.0+\n freeModule.exports = base64;\n } else {\n // in Narwhal or RingoJS v0.7.0-\n for (var key in base64) {\n base64.hasOwnProperty(key) && (freeExports[key] = base64[key]);\n }\n }\n } else {\n // in Rhino or a web browser\n root.base64 = base64;\n }\n})(this);","'use strict';\n\nvar base64 = require('base-64');\nvar tokenCache = {};\nfunction parseToken(token) {\n if (tokenCache[token]) {\n return tokenCache[token];\n }\n var parts = token.split('.');\n var usage = parts[0];\n var rawPayload = parts[1];\n if (!rawPayload) {\n throw new Error('Invalid token');\n }\n var parsedPayload = parsePaylod(rawPayload);\n var result = {\n usage: usage,\n user: parsedPayload.u\n };\n if (has(parsedPayload, 'a')) result.authorization = parsedPayload.a;\n if (has(parsedPayload, 'exp')) result.expires = parsedPayload.exp * 1000;\n if (has(parsedPayload, 'iat')) result.created = parsedPayload.iat * 1000;\n if (has(parsedPayload, 'scopes')) result.scopes = parsedPayload.scopes;\n if (has(parsedPayload, 'client')) result.client = parsedPayload.client;\n if (has(parsedPayload, 'll')) result.lastLogin = parsedPayload.ll;\n if (has(parsedPayload, 'iu')) result.impersonator = parsedPayload.iu;\n tokenCache[token] = result;\n return result;\n}\nfunction parsePaylod(rawPayload) {\n try {\n return JSON.parse(base64.decode(rawPayload));\n } catch (parseError) {\n throw new Error('Invalid token');\n }\n}\nfunction has(obj, key) {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\nmodule.exports = parseToken;","'use strict';\n\nvar has = Object.prototype.hasOwnProperty,\n prefix = '~';\n\n/**\n * Constructor to create a storage for our `EE` objects.\n * An `Events` instance is a plain object whose properties are event names.\n *\n * @constructor\n * @private\n */\nfunction Events() {}\n\n//\n// We try to not inherit from `Object.prototype`. In some engines creating an\n// instance in this way is faster than calling `Object.create(null)` directly.\n// If `Object.create(null)` is not supported we prefix the event names with a\n// character to make sure that the built-in object properties are not\n// overridden or used as an attack vector.\n//\nif (Object.create) {\n Events.prototype = Object.create(null);\n\n //\n // This hack is needed because the `__proto__` property is still inherited in\n // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.\n //\n if (!new Events().__proto__) prefix = false;\n}\n\n/**\n * Representation of a single event listener.\n *\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} [once=false] Specify if the listener is a one-time listener.\n * @constructor\n * @private\n */\nfunction EE(fn, context, once) {\n this.fn = fn;\n this.context = context;\n this.once = once || false;\n}\n\n/**\n * Add a listener for a given event.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} once Specify if the listener is a one-time listener.\n * @returns {EventEmitter}\n * @private\n */\nfunction addListener(emitter, event, fn, context, once) {\n if (typeof fn !== 'function') {\n throw new TypeError('The listener must be a function');\n }\n var listener = new EE(fn, context || emitter, once),\n evt = prefix ? prefix + event : event;\n if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);else emitter._events[evt] = [emitter._events[evt], listener];\n return emitter;\n}\n\n/**\n * Clear event by name.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} evt The Event name.\n * @private\n */\nfunction clearEvent(emitter, evt) {\n if (--emitter._eventsCount === 0) emitter._events = new Events();else delete emitter._events[evt];\n}\n\n/**\n * Minimal `EventEmitter` interface that is molded against the Node.js\n * `EventEmitter` interface.\n *\n * @constructor\n * @public\n */\nfunction EventEmitter() {\n this._events = new Events();\n this._eventsCount = 0;\n}\n\n/**\n * Return an array listing the events for which the emitter has registered\n * listeners.\n *\n * @returns {Array}\n * @public\n */\nEventEmitter.prototype.eventNames = function eventNames() {\n var names = [],\n events,\n name;\n if (this._eventsCount === 0) return names;\n for (name in events = this._events) {\n if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);\n }\n if (Object.getOwnPropertySymbols) {\n return names.concat(Object.getOwnPropertySymbols(events));\n }\n return names;\n};\n\n/**\n * Return the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Array} The registered listeners.\n * @public\n */\nEventEmitter.prototype.listeners = function listeners(event) {\n var evt = prefix ? prefix + event : event,\n handlers = this._events[evt];\n if (!handlers) return [];\n if (handlers.fn) return [handlers.fn];\n for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {\n ee[i] = handlers[i].fn;\n }\n return ee;\n};\n\n/**\n * Return the number of listeners listening to a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Number} The number of listeners.\n * @public\n */\nEventEmitter.prototype.listenerCount = function listenerCount(event) {\n var evt = prefix ? prefix + event : event,\n listeners = this._events[evt];\n if (!listeners) return 0;\n if (listeners.fn) return 1;\n return listeners.length;\n};\n\n/**\n * Calls each of the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Boolean} `true` if the event had listeners, else `false`.\n * @public\n */\nEventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {\n var evt = prefix ? prefix + event : event;\n if (!this._events[evt]) return false;\n var listeners = this._events[evt],\n len = arguments.length,\n args,\n i;\n if (listeners.fn) {\n if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);\n switch (len) {\n case 1:\n return listeners.fn.call(listeners.context), true;\n case 2:\n return listeners.fn.call(listeners.context, a1), true;\n case 3:\n return listeners.fn.call(listeners.context, a1, a2), true;\n case 4:\n return listeners.fn.call(listeners.context, a1, a2, a3), true;\n case 5:\n return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;\n case 6:\n return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;\n }\n for (i = 1, args = new Array(len - 1); i < len; i++) {\n args[i - 1] = arguments[i];\n }\n listeners.fn.apply(listeners.context, args);\n } else {\n var length = listeners.length,\n j;\n for (i = 0; i < length; i++) {\n if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);\n switch (len) {\n case 1:\n listeners[i].fn.call(listeners[i].context);\n break;\n case 2:\n listeners[i].fn.call(listeners[i].context, a1);\n break;\n case 3:\n listeners[i].fn.call(listeners[i].context, a1, a2);\n break;\n case 4:\n listeners[i].fn.call(listeners[i].context, a1, a2, a3);\n break;\n default:\n if (!args) for (j = 1, args = new Array(len - 1); j < len; j++) {\n args[j - 1] = arguments[j];\n }\n listeners[i].fn.apply(listeners[i].context, args);\n }\n }\n }\n return true;\n};\n\n/**\n * Add a listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.on = function on(event, fn, context) {\n return addListener(this, event, fn, context, false);\n};\n\n/**\n * Add a one-time listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.once = function once(event, fn, context) {\n return addListener(this, event, fn, context, true);\n};\n\n/**\n * Remove the listeners of a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn Only remove the listeners that match this function.\n * @param {*} context Only remove the listeners that have this context.\n * @param {Boolean} once Only remove one-time listeners.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {\n var evt = prefix ? prefix + event : event;\n if (!this._events[evt]) return this;\n if (!fn) {\n clearEvent(this, evt);\n return this;\n }\n var listeners = this._events[evt];\n if (listeners.fn) {\n if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) {\n clearEvent(this, evt);\n }\n } else {\n for (var i = 0, events = [], length = listeners.length; i < length; i++) {\n if (listeners[i].fn !== fn || once && !listeners[i].once || context && listeners[i].context !== context) {\n events.push(listeners[i]);\n }\n }\n\n //\n // Reset the array, or remove it completely if we have no more listeners.\n //\n if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;else clearEvent(this, evt);\n }\n return this;\n};\n\n/**\n * Remove all listeners, or those of the specified event.\n *\n * @param {(String|Symbol)} [event] The event name.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {\n var evt;\n if (event) {\n evt = prefix ? prefix + event : event;\n if (this._events[evt]) clearEvent(this, evt);\n } else {\n this._events = new Events();\n this._eventsCount = 0;\n }\n return this;\n};\n\n//\n// Alias methods names because people roll like that.\n//\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\nEventEmitter.prototype.addListener = EventEmitter.prototype.on;\n\n//\n// Expose the prefix.\n//\nEventEmitter.prefixed = prefix;\n\n//\n// Allow `EventEmitter` to be imported as module namespace.\n//\nEventEmitter.EventEmitter = EventEmitter;\n\n//\n// Expose the module.\n//\nif ('undefined' !== typeof module) {\n module.exports = EventEmitter;\n}","'use strict';\n\n// Encode each item of an array individually. The comma\n// delimiters should not themselves be encoded.\nfunction encodeArray(arrayValue) {\n return arrayValue.map(encodeURIComponent).join(',');\n}\nfunction encodeValue(value) {\n if (Array.isArray(value)) {\n return encodeArray(value);\n }\n return encodeURIComponent(String(value));\n}\n\n/**\n * Append a query parameter to a URL.\n *\n * @param {string} url\n * @param {string} key\n * @param {string|number|boolean|Array<*>>} [value] - Provide an array\n * if the value is a list and commas between values need to be\n * preserved, unencoded.\n * @returns {string} - Modified URL.\n */\nfunction appendQueryParam(url, key, value) {\n if (value === false || value === null) {\n return url;\n }\n var punctuation = /\\?/.test(url) ? '&' : '?';\n var query = encodeURIComponent(key);\n if (value !== undefined && value !== '' && value !== true) {\n query += '=' + encodeValue(value);\n }\n return '' + url + punctuation + query;\n}\n\n/**\n * Derive a query string from an object and append it\n * to a URL.\n *\n * @param {string} url\n * @param {Object} [queryObject] - Values should be primitives.\n * @returns {string} - Modified URL.\n */\nfunction appendQueryObject(url, queryObject) {\n if (!queryObject) {\n return url;\n }\n var result = url;\n Object.keys(queryObject).forEach(function (key) {\n var value = queryObject[key];\n if (value === undefined) {\n return;\n }\n if (Array.isArray(value)) {\n value = value.filter(function (v) {\n return v !== null && v !== undefined;\n }).join(',');\n }\n result = appendQueryParam(result, key, value);\n });\n return result;\n}\n\n/**\n * Prepend an origin to a URL. If the URL already has an\n * origin, do nothing.\n *\n * @param {string} url\n * @param {string} origin\n * @returns {string} - Modified URL.\n */\nfunction prependOrigin(url, origin) {\n if (!origin) {\n return url;\n }\n if (url.slice(0, 4) === 'http') {\n return url;\n }\n var delimiter = url[0] === '/' ? '' : '/';\n return '' + origin.replace(/\\/$/, '') + delimiter + url;\n}\n\n/**\n * Interpolate values into a route with express-style,\n * colon-prefixed route parameters.\n *\n * @param {string} route\n * @param {Object} [params] - Values should be primitives\n * or arrays of primitives. Provide an array if the value\n * is a list and commas between values need to be\n * preserved, unencoded.\n * @returns {string} - Modified URL.\n */\nfunction interpolateRouteParams(route, params) {\n if (!params) {\n return route;\n }\n return route.replace(/\\/:([a-zA-Z0-9]+)/g, function (_, paramId) {\n var value = params[paramId];\n if (value === undefined) {\n throw new Error('Unspecified route parameter ' + paramId);\n }\n var preppedValue = encodeValue(value);\n return '/' + preppedValue;\n });\n}\nmodule.exports = {\n appendQueryObject: appendQueryObject,\n appendQueryParam: appendQueryParam,\n prependOrigin: prependOrigin,\n interpolateRouteParams: interpolateRouteParams\n};","'use strict';\n\nvar parseToken = require('@mapbox/parse-mapbox-token');\nvar xtend = require('xtend');\nvar EventEmitter = require('eventemitter3');\nvar urlUtils = require('../helpers/url-utils');\nvar constants = require('../constants');\nvar requestId = 1;\n\n/**\n * A Mapbox API request.\n *\n * Note that creating a `MapiRequest` does *not* send the request automatically.\n * Use the request's `send` method to send it off and get a `Promise`.\n *\n * The `emitter` property is an `EventEmitter` that emits the following events:\n *\n * - `'response'` - Listeners will be called with a `MapiResponse`.\n * - `'error'` - Listeners will be called with a `MapiError`.\n * - `'downloadProgress'` - Listeners will be called with `ProgressEvents`.\n * - `'uploadProgress'` - Listeners will be called with `ProgressEvents`.\n * Upload events are only available when the request includes a file.\n *\n * @class MapiRequest\n * @property {EventEmitter} emitter - An event emitter. See above.\n * @property {MapiClient} client - This request's `MapiClient`.\n * @property {MapiResponse|null} response - If this request has been sent and received\n * a response, the response is available on this property.\n * @property {MapiError|Error|null} error - If this request has been sent and\n * received an error in response, the error is available on this property.\n * @property {boolean} aborted - If the request has been aborted\n * (via [`abort`](#abort)), this property will be `true`.\n * @property {boolean} sent - If the request has been sent, this property will\n * be `true`. You cannot send the same request twice, so if you need to create\n * a new request that is the equivalent of an existing one, use\n * [`clone`](#clone).\n * @property {string} path - The request's path, including colon-prefixed route\n * parameters.\n * @property {string} origin - The request's origin.\n * @property {string} method - The request's HTTP method.\n * @property {Object} query - A query object, which will be transformed into\n * a URL query string.\n * @property {Object} params - A route parameters object, whose values will\n * be interpolated the path.\n * @property {Object} headers - The request's headers.\n * @property {Object|string|null} body - Data to send with the request.\n * If the request has a body, it will also be sent with the header\n * `'Content-Type: application/json'`.\n * @property {Blob|ArrayBuffer|string|ReadStream} file - A file to\n * send with the request. The browser client accepts Blobs and ArrayBuffers;\n * the Node client accepts strings (filepaths) and ReadStreams.\n * @property {string} encoding - The encoding of the response.\n * @property {string} sendFileAs - The method to send the `file`. Options are\n * `data` (x-www-form-urlencoded) or `form` (multipart/form-data).\n */\n\n/**\n * @ignore\n * @param {MapiClient} client\n * @param {Object} options\n * @param {string} options.method\n * @param {string} options.path\n * @param {Object} [options.query={}]\n * @param {Object} [options.params={}]\n * @param {string} [options.origin]\n * @param {Object} [options.headers]\n * @param {Object} [options.body=null]\n * @param {Blob|ArrayBuffer|string|ReadStream} [options.file=null]\n * @param {string} [options.encoding=utf8]\n */\nfunction MapiRequest(client, options) {\n if (!client) {\n throw new Error('MapiRequest requires a client');\n }\n if (!options || !options.path || !options.method) {\n throw new Error('MapiRequest requires an options object with path and method properties');\n }\n var defaultHeaders = {};\n if (options.body) {\n defaultHeaders['content-type'] = 'application/json';\n }\n var headersWithDefaults = xtend(defaultHeaders, options.headers);\n\n // Disallows duplicate header names of mixed case,\n // e.g. Content-Type and content-type.\n var headers = Object.keys(headersWithDefaults).reduce(function (memo, name) {\n memo[name.toLowerCase()] = headersWithDefaults[name];\n return memo;\n }, {});\n this.id = requestId++;\n this._options = options;\n this.emitter = new EventEmitter();\n this.client = client;\n this.response = null;\n this.error = null;\n this.sent = false;\n this.aborted = false;\n this.path = options.path;\n this.method = options.method;\n this.origin = options.origin || client.origin;\n this.query = options.query || {};\n this.params = options.params || {};\n this.body = options.body || null;\n this.file = options.file || null;\n this.encoding = options.encoding || 'utf8';\n this.sendFileAs = options.sendFileAs || null;\n this.headers = headers;\n}\n\n/**\n * Get the URL of the request.\n *\n * @param {string} [accessToken] - By default, the access token of the request's\n * client is used.\n * @return {string}\n */\nMapiRequest.prototype.url = function url(accessToken) {\n var url = urlUtils.prependOrigin(this.path, this.origin);\n url = urlUtils.appendQueryObject(url, this.query);\n var routeParams = this.params;\n var actualAccessToken = accessToken == null ? this.client.accessToken : accessToken;\n if (actualAccessToken) {\n url = urlUtils.appendQueryParam(url, 'access_token', actualAccessToken);\n var accessTokenOwnerId = parseToken(actualAccessToken).user;\n routeParams = xtend({\n ownerId: accessTokenOwnerId\n }, routeParams);\n }\n url = urlUtils.interpolateRouteParams(url, routeParams);\n return url;\n};\n\n/**\n * Send the request. Returns a Promise that resolves with a `MapiResponse`.\n * You probably want to use `response.body`.\n *\n * `send` only retrieves the first page of paginated results. You can get\n * the next page by using the `MapiResponse`'s [`nextPage`](#nextpage)\n * function, or iterate through all pages using [`eachPage`](#eachpage)\n * instead of `send`.\n *\n * @returns {Promise}\n */\nMapiRequest.prototype.send = function send() {\n var self = this;\n if (self.sent) {\n throw new Error('This request has already been sent. Check the response and error properties. Create a new request with clone().');\n }\n self.sent = true;\n return self.client.sendRequest(self).then(function (response) {\n self.response = response;\n self.emitter.emit(constants.EVENT_RESPONSE, response);\n return response;\n }, function (error) {\n self.error = error;\n self.emitter.emit(constants.EVENT_ERROR, error);\n throw error;\n });\n};\n\n/**\n * Abort the request.\n *\n * Any pending `Promise` returned by [`send`](#send) will be rejected with\n * an error with `type: 'RequestAbortedError'`. If you've created a request\n * that might be aborted, you need to catch and handle such errors.\n *\n * This method will also abort any requests created while fetching subsequent\n * pages via [`eachPage`](#eachpage).\n *\n * If the request has not been sent or has already been aborted, nothing\n * will happen.\n */\nMapiRequest.prototype.abort = function abort() {\n if (this._nextPageRequest) {\n this._nextPageRequest.abort();\n delete this._nextPageRequest;\n }\n if (this.response || this.error || this.aborted) return;\n this.aborted = true;\n this.client.abortRequest(this);\n};\n\n/**\n * Invoke a callback for each page of a paginated API response.\n *\n * The callback should have the following signature:\n *\n * ```js\n * (\n * error: MapiError,\n * response: MapiResponse,\n * next: () => void\n * ) => void\n * ```\n *\n * **The next page will not be fetched until you've invoked the\n * `next` callback**, indicating that you're ready for it.\n *\n * @param {Function} callback\n */\nMapiRequest.prototype.eachPage = function eachPage(callback) {\n var self = this;\n function handleResponse(response) {\n function getNextPage() {\n delete self._nextPageRequest;\n var nextPageRequest = response.nextPage();\n if (nextPageRequest) {\n self._nextPageRequest = nextPageRequest;\n getPage(nextPageRequest);\n }\n }\n callback(null, response, getNextPage);\n }\n function handleError(error) {\n callback(error, null, function () {});\n }\n function getPage(request) {\n request.send().then(handleResponse, handleError);\n }\n getPage(this);\n};\n\n/**\n * Clone this request.\n *\n * Each request can only be sent *once*. So if you'd like to send the\n * same request again, clone it and send away.\n *\n * @returns {MapiRequest} - A new `MapiRequest` configured just like this one.\n */\nMapiRequest.prototype.clone = function clone() {\n return this._extend();\n};\n\n/**\n * @ignore\n */\nMapiRequest.prototype._extend = function _extend(options) {\n var extendedOptions = xtend(this._options, options);\n return new MapiRequest(this.client, extendedOptions);\n};\nmodule.exports = MapiRequest;","'use strict';\n\nvar parseToken = require('@mapbox/parse-mapbox-token');\nvar MapiRequest = require('./mapi-request');\nvar constants = require('../constants');\n\n/**\n * A low-level Mapbox API client. Use it to create service clients\n * that share the same configuration.\n *\n * Services and `MapiRequest`s use the underlying `MapiClient` to\n * determine how to create, send, and abort requests in a way\n * that is appropriate to the configuration and environment\n * (Node or the browser).\n *\n * @class MapiClient\n * @property {string} accessToken - The Mapbox access token assigned\n * to this client.\n * @property {string} [origin] - The origin\n * to use for API requests. Defaults to https://api.mapbox.com.\n */\n\nfunction MapiClient(options) {\n if (!options || !options.accessToken) {\n throw new Error('Cannot create a client without an access token');\n }\n // Try parsing the access token to determine right away if it's valid.\n parseToken(options.accessToken);\n this.accessToken = options.accessToken;\n this.origin = options.origin || constants.API_ORIGIN;\n}\nMapiClient.prototype.createRequest = function createRequest(requestOptions) {\n return new MapiRequest(this, requestOptions);\n};\nmodule.exports = MapiClient;","'use strict';\n\nvar browser = require('./browser-layer');\nvar MapiClient = require('../classes/mapi-client');\nfunction BrowserClient(options) {\n MapiClient.call(this, options);\n}\nBrowserClient.prototype = Object.create(MapiClient.prototype);\nBrowserClient.prototype.constructor = BrowserClient;\nBrowserClient.prototype.sendRequest = browser.browserSend;\nBrowserClient.prototype.abortRequest = browser.browserAbort;\n\n/**\n * Create a client for the browser.\n *\n * @param {Object} options\n * @param {string} options.accessToken\n * @param {string} [options.origin]\n * @returns {MapiClient}\n */\nfunction createBrowserClient(options) {\n return new BrowserClient(options);\n}\nmodule.exports = createBrowserClient;","'use strict';\n\nvar client = require('./lib/client');\nmodule.exports = client;","'use strict';\n\nvar toString = Object.prototype.toString;\nmodule.exports = function (x) {\n var prototype;\n return toString.call(x) === '[object Object]' && (prototype = Object.getPrototypeOf(x), prototype === null || prototype === Object.getPrototypeOf({}));\n};","'use strict';\n\n/**\n * Validators are functions which assert certain type.\n * They can return a string which can then be used\n * to display a helpful error message.\n * They can also return a function for a custom error message.\n */\nvar isPlainObject = require('is-plain-obj');\nvar xtend = require('xtend');\nvar DEFAULT_ERROR_PATH = 'value';\nvar NEWLINE_INDENT = '\\n ';\nvar v = {};\n\n/**\n * Runners\n *\n * Take root validators and run assertion\n */\nv.assert = function (rootValidator, options) {\n options = options || {};\n return function (value) {\n var message = validate(rootValidator, value);\n // all good\n if (!message) {\n return;\n }\n var errorMessage = processMessage(message, options);\n if (options.apiName) {\n errorMessage = options.apiName + ': ' + errorMessage;\n }\n throw new Error(errorMessage);\n };\n};\n\n/**\n * Higher Order Validators\n *\n * validators which take other validators as input\n * and output a new validator\n */\nv.shape = function shape(validatorObj) {\n var validators = objectEntries(validatorObj);\n return function shapeValidator(value) {\n var validationResult = validate(v.plainObject, value);\n if (validationResult) {\n return validationResult;\n }\n var key, validator;\n var errorMessages = [];\n for (var i = 0; i < validators.length; i++) {\n key = validators[i].key;\n validator = validators[i].value;\n validationResult = validate(validator, value[key]);\n if (validationResult) {\n // return [key].concat(validationResult);\n errorMessages.push([key].concat(validationResult));\n }\n }\n if (errorMessages.length < 2) {\n return errorMessages[0];\n }\n\n // enumerate all the error messages\n return function (options) {\n errorMessages = errorMessages.map(function (message) {\n var key = message[0];\n var renderedMessage = processMessage(message, options).split('\\n').join(NEWLINE_INDENT); // indents any inner nesting\n return '- ' + key + ': ' + renderedMessage;\n });\n var objectId = options.path.join('.');\n var ofPhrase = objectId === DEFAULT_ERROR_PATH ? '' : ' of ' + objectId;\n return 'The following properties' + ofPhrase + ' have invalid values:' + NEWLINE_INDENT + errorMessages.join(NEWLINE_INDENT);\n };\n };\n};\nv.strictShape = function strictShape(validatorObj) {\n var shapeValidator = v.shape(validatorObj);\n return function strictShapeValidator(value) {\n var shapeResult = shapeValidator(value);\n if (shapeResult) {\n return shapeResult;\n }\n var invalidKeys = Object.keys(value).reduce(function (memo, valueKey) {\n if (validatorObj[valueKey] === undefined) {\n memo.push(valueKey);\n }\n return memo;\n }, []);\n if (invalidKeys.length !== 0) {\n return function () {\n return 'The following keys are invalid: ' + invalidKeys.join(', ');\n };\n }\n };\n};\nv.arrayOf = function arrayOf(validator) {\n return createArrayValidator(validator);\n};\nv.tuple = function tuple() {\n var validators = Array.isArray(arguments[0]) ? arguments[0] : Array.prototype.slice.call(arguments);\n return createArrayValidator(validators);\n};\n\n// Currently array validation fails when the first invalid item is found.\nfunction createArrayValidator(validators) {\n var validatingTuple = Array.isArray(validators);\n var getValidator = function (index) {\n if (validatingTuple) {\n return validators[index];\n }\n return validators;\n };\n return function arrayValidator(value) {\n var validationResult = validate(v.plainArray, value);\n if (validationResult) {\n return validationResult;\n }\n if (validatingTuple && value.length !== validators.length) {\n return 'an array with ' + validators.length + ' items';\n }\n for (var i = 0; i < value.length; i++) {\n validationResult = validate(getValidator(i), value[i]);\n if (validationResult) {\n return [i].concat(validationResult);\n }\n }\n };\n}\nv.required = function required(validator) {\n function requiredValidator(value) {\n if (value == null) {\n return function (options) {\n return formatErrorMessage(options, isArrayCulprit(options.path) ? 'cannot be undefined/null.' : 'is required.');\n };\n }\n return validator.apply(this, arguments);\n }\n requiredValidator.__required = true;\n return requiredValidator;\n};\nv.oneOfType = function oneOfType() {\n var validators = Array.isArray(arguments[0]) ? arguments[0] : Array.prototype.slice.call(arguments);\n return function oneOfTypeValidator(value) {\n var messages = validators.map(function (validator) {\n return validate(validator, value);\n }).filter(Boolean);\n\n // If we don't have as many messages as no. of validators,\n // then at least one validator was ok with the value.\n if (messages.length !== validators.length) {\n return;\n }\n\n // check primitive type\n if (messages.every(function (message) {\n return message.length === 1 && typeof message[0] === 'string';\n })) {\n return orList(messages.map(function (m) {\n return m[0];\n }));\n }\n\n // Complex oneOfTypes like\n // `v.oneOftypes(v.shape({name: v.string})`, `v.shape({name: v.number}))`\n // are complex ¯\\_(ツ)_/¯. For the current scope only returning the longest message.\n return messages.reduce(function (max, arr) {\n return arr.length > max.length ? arr : max;\n });\n };\n};\n\n/**\n * Meta Validators\n * which take options as argument (not validators)\n * and return a new primitive validator\n */\nv.equal = function equal(compareWith) {\n return function equalValidator(value) {\n if (value !== compareWith) {\n return JSON.stringify(compareWith);\n }\n };\n};\nv.oneOf = function oneOf() {\n var options = Array.isArray(arguments[0]) ? arguments[0] : Array.prototype.slice.call(arguments);\n var validators = options.map(function (value) {\n return v.equal(value);\n });\n return v.oneOfType.apply(this, validators);\n};\nv.range = function range(compareWith) {\n var min = compareWith[0];\n var max = compareWith[1];\n return function rangeValidator(value) {\n var validationResult = validate(v.number, value);\n if (validationResult || value < min || value > max) {\n return 'number between ' + min + ' & ' + max + ' (inclusive)';\n }\n };\n};\n\n/**\n * Primitive validators\n *\n * simple validators which return a string or undefined\n */\nv.any = function any() {\n return;\n};\nv.boolean = function boolean(value) {\n if (typeof value !== 'boolean') {\n return 'boolean';\n }\n};\nv.number = function number(value) {\n if (typeof value !== 'number') {\n return 'number';\n }\n};\nv.plainArray = function plainArray(value) {\n if (!Array.isArray(value)) {\n return 'array';\n }\n};\nv.plainObject = function plainObject(value) {\n if (!isPlainObject(value)) {\n return 'object';\n }\n};\nv.string = function string(value) {\n if (typeof value !== 'string') {\n return 'string';\n }\n};\nv.func = function func(value) {\n if (typeof value !== 'function') {\n return 'function';\n }\n};\nfunction validate(validator, value) {\n // assertions are optional by default unless wrapped in v.require\n if (value == null && !validator.hasOwnProperty('__required')) {\n return;\n }\n var result = validator(value);\n if (result) {\n return Array.isArray(result) ? result : [result];\n }\n}\nfunction processMessage(message, options) {\n // message array follows the convention\n // [...path, result]\n // path is an array of object keys / array indices\n // result is output of the validator\n var len = message.length;\n var result = message[len - 1];\n var path = message.slice(0, len - 1);\n if (path.length === 0) {\n path = [DEFAULT_ERROR_PATH];\n }\n options = xtend(options, {\n path: path\n });\n return typeof result === 'function' ? result(options) // allows customization of result\n : formatErrorMessage(options, prettifyResult(result));\n}\nfunction orList(list) {\n if (list.length < 2) {\n return list[0];\n }\n if (list.length === 2) {\n return list.join(' or ');\n }\n return list.slice(0, -1).join(', ') + ', or ' + list.slice(-1);\n}\nfunction prettifyResult(result) {\n return 'must be ' + addArticle(result) + '.';\n}\nfunction addArticle(nounPhrase) {\n if (/^an? /.test(nounPhrase)) {\n return nounPhrase;\n }\n if (/^[aeiou]/i.test(nounPhrase)) {\n return 'an ' + nounPhrase;\n }\n if (/^[a-z]/i.test(nounPhrase)) {\n return 'a ' + nounPhrase;\n }\n return nounPhrase;\n}\nfunction formatErrorMessage(options, prettyResult) {\n var arrayCulprit = isArrayCulprit(options.path);\n var output = options.path.join('.') + ' ' + prettyResult;\n var prepend = arrayCulprit ? 'Item at position ' : '';\n return prepend + output;\n}\nfunction isArrayCulprit(path) {\n return typeof path[path.length - 1] == 'number' || typeof path[0] == 'number';\n}\nfunction objectEntries(obj) {\n return Object.keys(obj || {}).map(function (key) {\n return {\n key: key,\n value: obj[key]\n };\n });\n}\nv.validate = validate;\nv.processMessage = processMessage;\nmodule.exports = v;","'use strict';\n\nvar xtend = require('xtend');\nvar v = require('@mapbox/fusspot');\nfunction file(value) {\n // If we're in a browser so Blob is available, the file must be that.\n // In Node, however, it could be a filepath or a pipeable (Readable) stream.\n if (typeof window !== 'undefined') {\n if (value instanceof global.Blob || value instanceof global.ArrayBuffer) {\n return;\n }\n return 'Blob or ArrayBuffer';\n }\n if (typeof value === 'string' || value.pipe !== undefined) {\n return;\n }\n return 'Filename or Readable stream';\n}\nfunction assertShape(validatorObj, apiName) {\n return v.assert(v.strictShape(validatorObj), apiName);\n}\nfunction date(value) {\n var msg = 'date';\n if (typeof value === 'boolean') {\n return msg;\n }\n try {\n var date = new Date(value);\n if (date.getTime && isNaN(date.getTime())) {\n return msg;\n }\n } catch (e) {\n return msg;\n }\n}\nfunction coordinates(value) {\n return v.tuple(v.number, v.number)(value);\n}\nmodule.exports = xtend(v, {\n file: file,\n date: date,\n coordinates: coordinates,\n assertShape: assertShape\n});","'use strict';\n\n/**\n * Create a new object by picking properties off an existing object.\n * The second param can be overloaded as a callback for\n * more fine grained picking of properties.\n * @param {Object} source\n * @param {Array|function(string, Object):boolean} keys\n * @returns {Object}\n */\nfunction pick(source, keys) {\n var filter = function (key, val) {\n return keys.indexOf(key) !== -1 && val !== undefined;\n };\n if (typeof keys === 'function') {\n filter = keys;\n }\n return Object.keys(source).filter(function (key) {\n return filter(key, source[key]);\n }).reduce(function (result, key) {\n result[key] = source[key];\n return result;\n }, {});\n}\nmodule.exports = pick;","'use strict';\n\nfunction objectMap(obj, cb) {\n return Object.keys(obj).reduce(function (result, key) {\n result[key] = cb(key, obj[key]);\n return result;\n }, {});\n}\nmodule.exports = objectMap;","'use strict';\n\nvar objectMap = require('./object-map');\n\n/**\n * Stringify all the boolean values in an object, so true becomes \"true\".\n *\n * @param {Object} obj\n * @returns {Object}\n */\nfunction stringifyBoolean(obj) {\n return objectMap(obj, function (_, value) {\n return typeof value === 'boolean' ? JSON.stringify(value) : value;\n });\n}\nmodule.exports = stringifyBoolean;","'use strict';\n\nvar MapiClient = require('../../lib/classes/mapi-client');\n// This will create the environment-appropriate client.\nvar createClient = require('../../lib/client');\nfunction createServiceFactory(ServicePrototype) {\n return function (clientOrConfig) {\n var client;\n if (MapiClient.prototype.isPrototypeOf(clientOrConfig)) {\n client = clientOrConfig;\n } else {\n client = createClient(clientOrConfig);\n }\n var service = Object.create(ServicePrototype);\n service.client = client;\n return service;\n };\n}\nmodule.exports = createServiceFactory;","'use strict';\n\nvar xtend = require('xtend');\nvar v = require('./service-helpers/validator');\nvar pick = require('./service-helpers/pick');\nvar stringifyBooleans = require('./service-helpers/stringify-booleans');\nvar createServiceFactory = require('./service-helpers/create-service-factory');\n\n/**\n * Geocoding API service.\n *\n * Learn more about this service and its responses in\n * [the HTTP service documentation](https://docs.mapbox.com/api/search/#geocoding).\n */\nvar Geocoding = {};\nvar featureTypes = ['country', 'region', 'postcode', 'district', 'place', 'locality', 'neighborhood', 'address', 'poi', 'poi.landmark'];\n\n/**\n * Search for a place.\n *\n * See the [public documentation](https://docs.mapbox.com/api/search/#forward-geocoding).\n *\n * @param {Object} config\n * @param {string} config.query - A place name.\n * @param {'mapbox.places'|'mapbox.places-permanent'} [config.mode=\"mapbox.places\"] - Either `mapbox.places` for ephemeral geocoding, or `mapbox.places-permanent` for storing results and batch geocoding.\n * @param {Array} [config.countries] - Limits results to the specified countries.\n * Each item in the array should be an [ISO 3166 alpha 2 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).\n * @param {Coordinates|'ip'} [config.proximity] - Bias local results based on a provided coordinate location or a user's IP address.\n * @param {Array<'country'|'region'|'postcode'|'district'|'place'|'locality'|'neighborhood'|'address'|'poi'|'poi.landmark'>} [config.types] - Filter results by feature types.\n * @param {boolean} [config.autocomplete=true] - Return autocomplete results or not.\n * @param {BoundingBox} [config.bbox] - Limit results to a bounding box.\n * @param {number} [config.limit=5] - Limit the number of results returned.\n * @param {Array} [config.language] - Specify the language to use for response text and, for forward geocoding, query result weighting.\n * Options are [IETF language tags](https://en.wikipedia.org/wiki/IETF_language_tag) comprised of a mandatory\n * [ISO 639-1 language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) and optionally one or more IETF subtags for country or script.\n * @param {boolean} [config.routing=false] - Specify whether to request additional metadata about the recommended navigation destination. Only applicable for address features.\n * @param {boolean} [config.fuzzyMatch=true] - Specify whether the Geocoding API should attempt approximate, as well as exact, matching.\n * @param {String} [config.worldview=\"us\"] - Filter results to geographic features whose characteristics are defined differently by audiences belonging to various regional, cultural, or political groups.\n * @param {String} [config.session_token] - A unique session identifier generated by the client.\n * @return {MapiRequest}\n *\n * @example\n * geocodingClient.forwardGeocode({\n * query: 'Paris, France',\n * limit: 2\n * })\n * .send()\n * .then(response => {\n * const match = response.body;\n * });\n *\n * @example\n * // geocoding with proximity\n * geocodingClient.forwardGeocode({\n * query: 'Paris, France',\n * proximity: [-95.4431142, 33.6875431]\n * })\n * .send()\n * .then(response => {\n * const match = response.body;\n * });\n *\n * // geocoding with countries\n * geocodingClient.forwardGeocode({\n * query: 'Paris, France',\n * countries: ['fr']\n * })\n * .send()\n * .then(response => {\n * const match = response.body;\n * });\n *\n * // geocoding with bounding box\n * geocodingClient.forwardGeocode({\n * query: 'Paris, France',\n * bbox: [2.14, 48.72, 2.55, 48.96]\n * })\n * .send()\n * .then(response => {\n * const match = response.body;\n * });\n */\nGeocoding.forwardGeocode = function (config) {\n v.assertShape({\n query: v.required(v.string),\n mode: v.oneOf('mapbox.places', 'mapbox.places-permanent'),\n countries: v.arrayOf(v.string),\n proximity: v.oneOf(v.coordinates, 'ip'),\n types: v.arrayOf(v.oneOf(featureTypes)),\n autocomplete: v.boolean,\n bbox: v.arrayOf(v.number),\n limit: v.number,\n language: v.arrayOf(v.string),\n routing: v.boolean,\n fuzzyMatch: v.boolean,\n worldview: v.string,\n session_token: v.string\n })(config);\n config.mode = config.mode || 'mapbox.places';\n var query = stringifyBooleans(xtend({\n country: config.countries\n }, pick(config, ['proximity', 'types', 'autocomplete', 'bbox', 'limit', 'language', 'routing', 'fuzzyMatch', 'worldview', 'session_token'])));\n return this.client.createRequest({\n method: 'GET',\n path: '/geocoding/v5/:mode/:query.json',\n params: pick(config, ['mode', 'query']),\n query: query\n });\n};\n\n/**\n * Search for places near coordinates.\n *\n * See the [public documentation](https://docs.mapbox.com/api/search/#reverse-geocoding).\n *\n * @param {Object} config\n * @param {Coordinates} config.query - Coordinates at which features will be searched.\n * @param {'mapbox.places'|'mapbox.places-permanent'} [config.mode=\"mapbox.places\"] - Either `mapbox.places` for ephemeral geocoding, or `mapbox.places-permanent` for storing results and batch geocoding.\n * @param {Array} [config.countries] - Limits results to the specified countries.\n * Each item in the array should be an [ISO 3166 alpha 2 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).\n * @param {Array<'country'|'region'|'postcode'|'district'|'place'|'locality'|'neighborhood'|'address'|'poi'|'poi.landmark'>} [config.types] - Filter results by feature types.\n * @param {BoundingBox} [config.bbox] - Limit results to a bounding box.\n * @param {number} [config.limit=1] - Limit the number of results returned. If using this option, you must provide a single item for `types`.\n * @param {Array} [config.language] - Specify the language to use for response text and, for forward geocoding, query result weighting.\n * Options are [IETF language tags](https://en.wikipedia.org/wiki/IETF_language_tag) comprised of a mandatory\n * [ISO 639-1 language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) and optionally one or more IETF subtags for country or script.\n * @param {'distance'|'score'} [config.reverseMode='distance'] - Set the factors that are used to sort nearby results.\n * @param {boolean} [config.routing=false] - Specify whether to request additional metadata about the recommended navigation destination. Only applicable for address features.\n * @param {String} [config.worldview=\"us\"] - Filter results to geographic features whose characteristics are defined differently by audiences belonging to various regional, cultural, or political groups.\n * @param {String} [config.session_token] - A unique session identifier generated by the client.\n * @return {MapiRequest}\n *\n * @example\n * geocodingClient.reverseGeocode({\n * query: [-95.4431142, 33.6875431]\n * })\n * .send()\n * .then(response => {\n * // GeoJSON document with geocoding matches\n * const match = response.body;\n * });\n */\nGeocoding.reverseGeocode = function (config) {\n v.assertShape({\n query: v.required(v.coordinates),\n mode: v.oneOf('mapbox.places', 'mapbox.places-permanent'),\n countries: v.arrayOf(v.string),\n types: v.arrayOf(v.oneOf(featureTypes)),\n bbox: v.arrayOf(v.number),\n limit: v.number,\n language: v.arrayOf(v.string),\n reverseMode: v.oneOf('distance', 'score'),\n routing: v.boolean,\n worldview: v.string,\n session_token: v.string\n })(config);\n config.mode = config.mode || 'mapbox.places';\n var query = stringifyBooleans(xtend({\n country: config.countries\n }, pick(config, ['country', 'types', 'bbox', 'limit', 'language', 'reverseMode', 'routing', 'worldview', 'session_token'])));\n return this.client.createRequest({\n method: 'GET',\n path: '/geocoding/v5/:mode/:query.json',\n params: pick(config, ['mode', 'query']),\n query: query\n });\n};\nmodule.exports = createServiceFactory(Geocoding);","// This alphabet uses `A-Za-z0-9_-` symbols.\n// The order of characters is optimized for better gzip and brotli compression.\n// Same as in non-secure/index.js\nlet urlAlphabet = 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';\nexport { urlAlphabet };","// This file replaces `index.js` in bundlers like webpack or Rollup,\n// according to `browser` config in `package.json`.\n\nimport { urlAlphabet } from './url-alphabet/index.js';\nlet random = bytes => crypto.getRandomValues(new Uint8Array(bytes));\nlet customRandom = (alphabet, defaultSize, getRandom) => {\n // First, a bitmask is necessary to generate the ID. The bitmask makes bytes\n // values closer to the alphabet size. The bitmask calculates the closest\n // `2^31 - 1` number, which exceeds the alphabet size.\n // For example, the bitmask for the alphabet size 30 is 31 (00011111).\n // `Math.clz32` is not used, because it is not available in browsers.\n let mask = (2 << Math.log(alphabet.length - 1) / Math.LN2) - 1;\n // Though, the bitmask solution is not perfect since the bytes exceeding\n // the alphabet size are refused. Therefore, to reliably generate the ID,\n // the random bytes redundancy has to be satisfied.\n\n // Note: every hardware random generator call is performance expensive,\n // because the system call for entropy collection takes a lot of time.\n // So, to avoid additional system calls, extra bytes are requested in advance.\n\n // Next, a step determines how many random bytes to generate.\n // The number of random bytes gets decided upon the ID size, mask,\n // alphabet size, and magic number 1.6 (using 1.6 peaks at performance\n // according to benchmarks).\n\n // `-~f => Math.ceil(f)` if f is a float\n // `-~i => i + 1` if i is an integer\n let step = -~(1.6 * mask * defaultSize / alphabet.length);\n return (size = defaultSize) => {\n let id = '';\n while (true) {\n let bytes = getRandom(step);\n // A compact alternative for `for (var i = 0; i < step; i++)`.\n let j = step | 0;\n while (j--) {\n // Adding `|| ''` refuses a random byte that exceeds the alphabet size.\n id += alphabet[bytes[j] & mask] || '';\n if (id.length === size) return id;\n }\n }\n };\n};\nlet customAlphabet = (alphabet, size = 21) => customRandom(alphabet, size, random);\nlet nanoid = (size = 21) => crypto.getRandomValues(new Uint8Array(size)).reduce((id, byte) => {\n // It is incorrect to use bytes exceeding the alphabet size.\n // The following mask reduces the random byte in the 0-255 value\n // range to the 0-63 value range. Therefore, adding hacks, such\n // as empty string fallback or magic numbers, is unneccessary because\n // the bitmask trims bytes down to the alphabet size.\n byte &= 63;\n if (byte < 36) {\n // `0-9a-z`\n id += byte.toString(36);\n } else if (byte < 62) {\n // `A-Z`\n id += (byte - 26).toString(36).toUpperCase();\n } else if (byte > 62) {\n id += '-';\n } else {\n id += '_';\n }\n return id;\n}, '');\nexport { nanoid, customAlphabet, customRandom, urlAlphabet, random };","'use strict';\n\nvar nanoid = require('nanoid').nanoid;\n\n/**\n * Construct a new mapbox event client to send interaction events to the mapbox event service\n * @param {Object} options options with which to create the service\n * @param {String} options.accessToken the mapbox access token to make requests\n * @param {Number} [options.flushInterval=1000] the number of ms after which to flush the event queue\n * @param {Number} [options.maxQueueSize=100] the number of events to queue before flushing\n * @private\n */\nfunction MapboxEventManager(options) {\n this.origin = options.origin || 'https://api.mapbox.com';\n this.endpoint = 'events/v2';\n this.access_token = options.accessToken;\n this.version = '0.3.0';\n this.pluginSessionID = this.generateSessionID();\n this.sessionIncrementer = 0;\n this.userAgent = this.getUserAgent();\n this.options = options;\n this.send = this.send.bind(this);\n\n // parse global options to be sent with each request\n this.countries = options.countries ? options.countries.split(\",\") : null;\n this.types = options.types ? options.types.split(\",\") : null;\n this.bbox = options.bbox ? options.bbox : null;\n this.language = options.language ? options.language.split(\",\") : null;\n this.limit = options.limit ? +options.limit : null;\n this.locale = navigator.language || null;\n this.enableEventLogging = this.shouldEnableLogging(options);\n this.eventQueue = new Array();\n this.flushInterval = options.flushInterval || 1000;\n this.maxQueueSize = options.maxQueueSize || 100;\n this.timer = this.flushInterval ? setTimeout(this.flush.bind(this), this.flushInterval) : null;\n // keep some state to deduplicate requests if necessary\n this.lastSentInput = \"\";\n this.lastSentIndex = 0;\n}\nMapboxEventManager.prototype = {\n /**\n * Send a search.select event to the mapbox events service\n * This event marks the array index of the item selected by the user out of the array of possible options\n * @private\n * @param {Object} selected the geojson feature selected by the user\n * @param {Object} geocoder a mapbox-gl-geocoder instance\n * @returns {Promise}\n */\n select: function (selected, geocoder) {\n var payload = this.getEventPayload('search.select', geocoder, {\n selectedFeature: selected\n });\n if (!payload) return; // reject malformed event\n if (payload.resultIndex === this.lastSentIndex && payload.queryString === this.lastSentInput || payload.resultIndex == -1) {\n // don't log duplicate events if the user re-selected the same feature on the same search\n return;\n }\n this.lastSentIndex = payload.resultIndex;\n this.lastSentInput = payload.queryString;\n return this.push(payload);\n },\n /**\n * Send a search-start event to the mapbox events service\n * This turnstile event marks when a user starts a new search\n * @private\n * @param {Object} geocoder a mapbox-gl-geocoder instance\n * @returns {Promise}\n */\n start: function (geocoder) {\n var payload = this.getEventPayload('search.start', geocoder);\n if (!payload) return; // reject malformed event\n return this.push(payload);\n },\n /**\n * Send a search-keyevent event to the mapbox events service\n * This event records each keypress in sequence\n * @private\n * @param {Object} keyEvent the keydown event to log\n * @param {Object} geocoder a mapbox-gl-geocoder instance\n * \n */\n keyevent: function (keyEvent, geocoder) {\n //pass invalid event\n if (!keyEvent.key) return;\n // don't send events for keys that don't change the input\n // TAB, ESC, LEFT, RIGHT, ENTER, UP, DOWN\n if (keyEvent.metaKey || [9, 27, 37, 39, 13, 38, 40].indexOf(keyEvent.keyCode) !== -1) return;\n var payload = this.getEventPayload('search.keystroke', geocoder, {\n key: keyEvent.key\n });\n if (!payload) return; // reject malformed event\n return this.push(payload);\n },\n /**\n * Send an event to the events service\n *\n * The event is skipped if the instance is not enabled to send logging events\n *\n * @private\n * @param {Object} payload the http POST body of the event\n * @param {Function} [callback] a callback function to invoke when the send has completed\n * @returns {Promise}\n */\n send: function (payload, callback) {\n if (!this.enableEventLogging) {\n if (callback) return callback();\n return;\n }\n var options = this.getRequestOptions(payload);\n this.request(options, function (err) {\n if (err) return this.handleError(err, callback);\n if (callback) {\n return callback();\n }\n }.bind(this));\n },\n /**\n * Get http request options\n * @private\n * @param {*} payload\n */\n getRequestOptions: function (payload) {\n if (!Array.isArray(payload)) payload = [payload];\n var options = {\n // events must be sent with POST\n method: \"POST\",\n host: this.origin,\n path: this.endpoint + \"?access_token=\" + this.access_token,\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify(payload) //events are arrays\n };\n return options;\n },\n /**\n * Get the event payload to send to the events service\n * Most payload properties are shared across all events\n * @private\n * @param {String} event the name of the event to send to the events service. Valid options are 'search.start', 'search.select', 'search.feedback'.\n * @param {Object} geocoder a mapbox-gl-geocoder instance\n * @param {Object} eventArgs Additional arguments needed for certain event types\n * @param {Object} eventArgs.key The key pressed by the user\n * @param {Object} eventArgs.selectedFeature GeoJSON Feature selected by the user\n * @returns {Object} an event payload\n */\n getEventPayload: function (event, geocoder, eventArgs = {}) {\n // Make sure required arguments are present for certain event types\n if (event === 'search.select' && !eventArgs.selectedFeature || event === 'search.keystroke' && !eventArgs.key) {\n return null;\n }\n\n // Handle proximity, whether null, lat/lng coordinate object, or 'ip'\n var proximity;\n if (!geocoder.options.proximity) {\n proximity = null;\n } else if (typeof geocoder.options.proximity === 'object') {\n proximity = [geocoder.options.proximity.longitude, geocoder.options.proximity.latitude];\n } else if (geocoder.options.proximity === 'ip') {\n var ipProximityHeader = geocoder._headers ? geocoder._headers['ip-proximity'] : null;\n if (ipProximityHeader && typeof ipProximityHeader === 'string') {\n proximity = ipProximityHeader.split(',').map(parseFloat);\n } else {\n proximity = [999, 999]; // Alias for 'ip' in event logs\n }\n } else {\n proximity = geocoder.options.proximity;\n }\n var zoom = geocoder._map ? geocoder._map.getZoom() : undefined;\n var payload = {\n event: event,\n version: this.getEventSchemaVersion(event),\n created: +new Date(),\n sessionIdentifier: this.getSessionId(),\n country: this.countries,\n userAgent: this.userAgent,\n language: this.language,\n bbox: this.bbox,\n types: this.types,\n endpoint: 'mapbox.places',\n autocomplete: geocoder.options.autocomplete,\n fuzzyMatch: geocoder.options.fuzzyMatch,\n proximity: proximity,\n limit: geocoder.options.limit,\n routing: geocoder.options.routing,\n worldview: geocoder.options.worldview,\n mapZoom: zoom,\n keyboardLocale: this.locale\n };\n\n // get the text in the search bar\n if (event === \"search.select\") {\n payload.queryString = geocoder.inputString;\n } else if (event != \"search.select\" && geocoder._inputEl) {\n payload.queryString = geocoder._inputEl.value;\n } else {\n payload.queryString = geocoder.inputString;\n }\n\n // add additional properties for certain event types\n if (['search.keystroke', 'search.select'].includes(event)) {\n payload.path = 'geocoding/v5/mapbox.places';\n }\n if (event === 'search.keystroke' && eventArgs.key) {\n payload.lastAction = eventArgs.key;\n } else if (event === 'search.select' && eventArgs.selectedFeature) {\n var selected = eventArgs.selectedFeature;\n var resultIndex = this.getSelectedIndex(selected, geocoder);\n payload.resultIndex = resultIndex;\n payload.resultPlaceName = selected.place_name;\n payload.resultId = selected.id;\n if (selected.properties) {\n payload.resultMapboxId = selected.properties.mapbox_id;\n }\n if (geocoder._typeahead) {\n var results = geocoder._typeahead.data;\n if (results && results.length > 0) {\n payload.suggestionIds = this.getSuggestionIds(results);\n payload.suggestionNames = this.getSuggestionNames(results);\n payload.suggestionTypes = this.getSuggestionTypes(results);\n payload.suggestionSources = this.getSuggestionSources(results);\n }\n }\n }\n\n // Finally, validate that required properties are present for API compatibility\n if (!this.validatePayload(payload)) {\n return null;\n }\n return payload;\n },\n /**\n * Wraps the request function for easier testing\n * Make an http request and invoke a callback\n * @private\n * @param {Object} opts options describing the http request to be made\n * @param {Function} callback the callback to invoke when the http request is completed\n */\n request: function (opts, callback) {\n var xhttp = new XMLHttpRequest();\n xhttp.onreadystatechange = function () {\n if (this.readyState == 4) {\n if (this.status == 204) {\n //success\n return callback(null);\n } else {\n return callback(this.statusText);\n }\n }\n };\n xhttp.open(opts.method, opts.host + '/' + opts.path, true);\n for (var header in opts.headers) {\n var headerValue = opts.headers[header];\n xhttp.setRequestHeader(header, headerValue);\n }\n xhttp.send(opts.body);\n },\n /**\n * Handle an error that occurred while making a request\n * @param {Object} err an error instance to log\n * @private\n */\n handleError: function (err, callback) {\n if (callback) return callback(err);\n },\n /**\n * Generate a session ID to be returned with all of the searches made by this geocoder instance\n * ID is random and cannot be tracked across sessions\n * @private\n */\n generateSessionID: function () {\n return nanoid();\n },\n /**\n * Get the a unique session ID for the current plugin session and increment the session counter.\n *\n * @returns {String} The session ID\n */\n getSessionId: function () {\n return this.pluginSessionID + '.' + this.sessionIncrementer;\n },\n /**\n * Get a user agent string to send with the request to the events service\n * @private\n */\n getUserAgent: function () {\n return 'mapbox-gl-geocoder.' + this.version + \".\" + navigator.userAgent;\n },\n /**\n * Get the 0-based numeric index of the item that the user selected out of the list of options\n * @private\n * @param {Object} selected the geojson feature selected by the user\n * @param {Object} geocoder a Mapbox-GL-Geocoder instance\n * @returns {Number} the index of the selected result\n */\n getSelectedIndex: function (selected, geocoder) {\n if (!geocoder._typeahead) return;\n var results = geocoder._typeahead.data;\n var selectedID = selected.id;\n var resultIDs = results.map(function (feature) {\n return feature.id;\n });\n var selectedIdx = resultIDs.indexOf(selectedID);\n return selectedIdx;\n },\n getSuggestionIds: function (results) {\n return results.map(function (feature) {\n if (feature.properties) {\n return feature.properties.mapbox_id || '';\n }\n return feature.id || '';\n });\n },\n getSuggestionNames: function (results) {\n return results.map(function (feature) {\n return feature.place_name || '';\n });\n },\n getSuggestionTypes: function (results) {\n return results.map(function (feature) {\n if (feature.place_type && Array.isArray(feature.place_type)) {\n return feature.place_type[0] || '';\n }\n return '';\n });\n },\n getSuggestionSources: function (results) {\n return results.map(function (feature) {\n return feature._source || '';\n });\n },\n /**\n * Get the correct schema version for the event\n * @private\n * @param {String} event Name of the event\n * @returns \n */\n getEventSchemaVersion: function (event) {\n if (['search.keystroke', 'search.select'].includes(event)) {\n return '2.2';\n } else {\n return '2.0';\n }\n },\n /**\n * Checks if a payload has all the required properties for the event type\n * @private\n * @param {Object} payload \n * @returns \n */\n validatePayload: function (payload) {\n if (!payload || !payload.event) return false;\n var searchStartRequiredProps = ['event', 'created', 'sessionIdentifier', 'queryString'];\n var searchKeystrokeRequiredProps = ['event', 'created', 'sessionIdentifier', 'queryString', 'lastAction'];\n var searchSelectRequiredProps = ['event', 'created', 'sessionIdentifier', 'queryString', 'resultIndex', 'path', 'suggestionIds'];\n var event = payload.event;\n if (event === 'search.start') {\n return this.objectHasRequiredProps(payload, searchStartRequiredProps);\n } else if (event === 'search.keystroke') {\n return this.objectHasRequiredProps(payload, searchKeystrokeRequiredProps);\n } else if (event === 'search.select') {\n return this.objectHasRequiredProps(payload, searchSelectRequiredProps);\n }\n return true;\n },\n /**\n * Checks of an object has all the required properties\n * @private\n * @param {Object} obj \n * @param {Array} requiredProps \n * @returns \n */\n objectHasRequiredProps: function (obj, requiredProps) {\n return requiredProps.every(function (prop) {\n if (prop === 'queryString') {\n return typeof obj[prop] === 'string' && obj[prop].length > 0;\n }\n return obj[prop] !== undefined;\n });\n },\n /**\n * Check whether events should be logged\n * Clients using a localGeocoder or an origin other than mapbox should not have events logged\n * @private\n */\n shouldEnableLogging: function (options) {\n if (options.enableEventLogging === false) return false;\n if (options.origin && options.origin !== 'https://api.mapbox.com') return false;\n return true;\n },\n /**\n * Flush out the event queue by sending events to the events service\n * @private\n */\n flush: function () {\n if (this.eventQueue.length > 0) {\n this.send(this.eventQueue);\n this.eventQueue = new Array();\n }\n // //reset the timer\n if (this.timer) clearTimeout(this.timer);\n if (this.flushInterval) this.timer = setTimeout(this.flush.bind(this), this.flushInterval);\n },\n /**\n * Push event into the pending queue\n * @param {Object} evt the event to send to the events service\n * @param {Boolean} forceFlush indicates that the event queue should be flushed after adding this event regardless of size of the queue\n * @private\n */\n push: function (evt, forceFlush) {\n this.eventQueue.push(evt);\n if (this.eventQueue.length >= this.maxQueueSize || forceFlush) {\n this.flush();\n }\n },\n /**\n * Flush any remaining events from the queue before it is removed\n * @private\n */\n remove: function () {\n this.flush();\n }\n};\nmodule.exports = MapboxEventManager;","'use strict';\n\n/**\n * Localized values for the placeholder string\n * \n * @private\n */\nvar placeholder = {\n // list drawn from https://docs.mapbox.com/api/search/#language-coverage\n 'de': 'Suche',\n // german\n 'it': 'Ricerca',\n //italian\n 'en': 'Search',\n // english\n 'nl': 'Zoeken',\n //dutch\n 'fr': 'Chercher',\n //french\n 'ca': 'Cerca',\n //catalan\n 'he': 'לחפש',\n //hebrew\n 'ja': 'サーチ',\n //japanese\n 'lv': 'Meklēt',\n //latvian\n 'pt': 'Procurar',\n //portuguese \n 'sr': 'Претрага',\n //serbian\n 'zh': '搜索',\n //chinese-simplified\n 'cs': 'Vyhledávání',\n //czech\n 'hu': 'Keresés',\n //hungarian\n 'ka': 'ძიება',\n // georgian\n 'nb': 'Søke',\n //norwegian\n 'sk': 'Vyhľadávanie',\n //slovak\n 'th': 'ค้นหา',\n //thai\n 'fi': 'Hae',\n //finnish\n 'is': 'Leita',\n //icelandic\n 'ko': '수색',\n //korean\n 'pl': 'Szukaj',\n //polish\n 'sl': 'Iskanje',\n //slovenian\n 'fa': 'جستجو',\n //persian(aka farsi)\n 'ru': 'Поиск' //russian\n};\nmodule.exports = {\n placeholder: placeholder\n};","!function (root, name, make) {\n if (typeof module != 'undefined' && module.exports) module.exports = make();else root[name] = make();\n}(this, 'subtag', function () {\n var empty = '';\n var pattern = /^([a-zA-Z]{2,3})(?:[_-]+([a-zA-Z]{3})(?=$|[_-]+))?(?:[_-]+([a-zA-Z]{4})(?=$|[_-]+))?(?:[_-]+([a-zA-Z]{2}|[0-9]{3})(?=$|[_-]+))?/;\n function match(tag) {\n return tag.match(pattern) || [];\n }\n function split(tag) {\n return match(tag).filter(function (v, i) {\n return v && i;\n });\n }\n function api(tag) {\n tag = match(tag);\n return {\n language: tag[1] || empty,\n extlang: tag[2] || empty,\n script: tag[3] || empty,\n region: tag[4] || empty\n };\n }\n function expose(target, key, value) {\n Object.defineProperty(target, key, {\n value: value,\n enumerable: true\n });\n }\n function part(position, pattern, type) {\n function method(tag) {\n return match(tag)[position] || empty;\n }\n expose(method, 'pattern', pattern);\n expose(api, type, method);\n }\n part(1, /^[a-zA-Z]{2,3}$/, 'language');\n part(2, /^[a-zA-Z]{3}$/, 'extlang');\n part(3, /^[a-zA-Z]{4}$/, 'script');\n part(4, /^[a-zA-Z]{2}$|^[0-9]{3}$/, 'region');\n expose(api, 'split', split);\n return api;\n});","function Geolocation() {}\nGeolocation.prototype = {\n isSupport: function () {\n return Boolean(window.navigator.geolocation);\n },\n getCurrentPosition: function () {\n const positionOptions = {\n enableHighAccuracy: true\n };\n return new Promise(function (resolve, reject) {\n window.navigator.geolocation.getCurrentPosition(resolve, reject, positionOptions);\n });\n }\n};\nmodule.exports = Geolocation;","/**\n * This function transforms the feature from reverse geocoding to plain text with specified accuracy\n * @param {object} feature \n * @param {string} accuracy \n * @returns \n */\nfunction transformFeatureToGeolocationText(feature, accuracy) {\n const addrInfo = getAddressInfo(feature);\n const addressAccuracy = ['address', 'street', 'place', 'country'];\n var currentAccuracy;\n if (typeof accuracy === 'function') {\n return accuracy(addrInfo);\n }\n const accuracyIndex = addressAccuracy.indexOf(accuracy);\n if (accuracyIndex === -1) {\n currentAccuracy = addressAccuracy;\n } else {\n currentAccuracy = addressAccuracy.slice(accuracyIndex);\n }\n return currentAccuracy.reduce(function (acc, name) {\n if (!addrInfo[name]) {\n return acc;\n }\n if (acc !== '') {\n acc = acc + ', ';\n }\n return acc + addrInfo[name];\n }, '');\n}\n/**\n * This function transforms the feature from reverse geocoding to AddressInfo object\n * @param {object} feature \n * @returns {object}\n */\nfunction getAddressInfo(feature) {\n const houseNumber = feature.address || '';\n const street = feature.text || '';\n const placeName = feature.place_name || '';\n const address = placeName.split(',')[0];\n const addrInfo = {\n address: address,\n houseNumber: houseNumber,\n street: street,\n placeName: placeName\n };\n feature.context.forEach(function (context) {\n const layer = context.id.split('.')[0];\n addrInfo[layer] = context.text;\n });\n return addrInfo;\n}\nconst REVERSE_GEOCODE_COORD_RGX = /^[ ]*(-?\\d{1,3}(\\.\\d{0,256})?)[, ]+(-?\\d{1,3}(\\.\\d{0,256})?)[ ]*$/;\nmodule.exports = {\n transformFeatureToGeolocationText: transformFeatureToGeolocationText,\n getAddressInfo: getAddressInfo,\n REVERSE_GEOCODE_COORD_RGX: REVERSE_GEOCODE_COORD_RGX\n};","'use strict';\n\nvar Typeahead = require('suggestions');\nvar debounce = require('lodash.debounce');\nvar extend = require('xtend');\nvar EventEmitter = require('events').EventEmitter;\nvar exceptions = require('./exceptions');\nvar MapboxClient = require('@mapbox/mapbox-sdk');\nvar mbxGeocoder = require('@mapbox/mapbox-sdk/services/geocoding');\nvar MapboxEventManager = require('./events');\nvar localization = require('./localization');\nvar subtag = require('subtag');\nvar Geolocation = require('./geolocation');\nvar utils = require('./utils');\nconst GEOCODE_REQUEST_TYPE = {\n FORWARD: 0,\n LOCAL: 1,\n REVERSE: 2\n};\n\n/**\n * Don't include this as part of the options object when creating a new MapboxGeocoder instance.\n */\nfunction getFooterNode() {\n var div = document.createElement('div');\n div.className = 'mapboxgl-ctrl-geocoder--powered-by';\n div.innerHTML = 'Powered by Mapbox';\n return div;\n}\n\n/**\n * A geocoder component using the [Mapbox Geocoding API](https://docs.mapbox.com/api/search/#geocoding)\n * @class MapboxGeocoder\n * @param {Object} options\n * @param {String} options.accessToken Required.\n * @param {String} [options.origin=https://api.mapbox.com] Use to set a custom API origin.\n * @param {Object} [options.mapboxgl] A [mapbox-gl](https://github.com/mapbox/mapbox-gl-js) instance to use when creating [Markers](https://docs.mapbox.com/mapbox-gl-js/api/#marker). Required if `options.marker` is `true`.\n * @param {Number} [options.zoom=16] On geocoded result what zoom level should the map animate to when a `bbox` isn't found in the response. If a `bbox` is found the map will fit to the `bbox`.\n * @param {Boolean|Object} [options.flyTo=true] If `false`, animating the map to a selected result is disabled. If `true`, animating the map will use the default animation parameters. If an object, it will be passed as `options` to the map [`flyTo`](https://docs.mapbox.com/mapbox-gl-js/api/#map#flyto) or [`fitBounds`](https://docs.mapbox.com/mapbox-gl-js/api/#map#fitbounds) method providing control over the animation of the transition.\n * @param {String} [options.placeholder=Search] Override the default placeholder attribute value.\n * @param {Object|'ip'} [options.proximity] a geographical point given as an object with `latitude` and `longitude` properties, or the string 'ip' to use a user's IP address location. Search results closer to this point will be given higher priority.\n * @param {Boolean} [options.trackProximity=true] If `true`, the geocoder proximity will dynamically update based on the current map view or user's IP location, depending on zoom level.\n * @param {Boolean} [options.collapsed=false] If `true`, the geocoder control will collapse until hovered or in focus.\n * @param {Boolean} [options.clearAndBlurOnEsc=false] If `true`, the geocoder control will clear it's contents and blur when user presses the escape key.\n * @param {Boolean} [options.clearOnBlur=false] If `true`, the geocoder control will clear its value when the input blurs.\n * @param {Array} [options.bbox] a bounding box argument: this is\n * a bounding box given as an array in the format `[minX, minY, maxX, maxY]`.\n * Search results will be limited to the bounding box.\n * @param {string} [options.countries] a comma separated list of country codes to\n * limit results to specified country or countries.\n * @param {string} [options.types] a comma seperated list of types that filter\n * results to match those specified. See https://docs.mapbox.com/api/search/#data-types\n * for available types.\n * If reverseGeocode is enabled and no type is specified, the type defaults to POIs. Otherwise, if you configure more than one type, the first type will be used.\n * @param {Number} [options.minLength=2] Minimum number of characters to enter before results are shown.\n * @param {Number} [options.limit=5] Maximum number of results to show.\n * @param {string} [options.language] Specify the language to use for response text and query result weighting. Options are IETF language tags comprised of a mandatory ISO 639-1 language code and optionally one or more IETF subtags for country or script. More than one value can also be specified, separated by commas. Defaults to the browser's language settings.\n * @param {Function} [options.filter] A function which accepts a Feature in the [extended GeoJSON](https://docs.mapbox.com/api/search/geocoding-v5/#geocoding-response-object) format to filter out results from the Geocoding API response before they are included in the suggestions list. Return `true` to keep the item, `false` otherwise.\n * @param {Function} [options.localGeocoder] A function accepting the query string which performs local geocoding to supplement results from the Mapbox Geocoding API. Expected to return an Array of GeoJSON Features in the [extended GeoJSON](https://docs.mapbox.com/api/search/geocoding-v5/#geocoding-response-object) format.\n * @param {Function} [options.externalGeocoder] A function accepting the query string and current features list which performs geocoding to supplement results from the Mapbox Geocoding API. Expected to return a Promise which resolves to an Array of GeoJSON Features in the [extended GeoJSON](https://docs.mapbox.com/api/search/geocoding-v5/#geocoding-response-object) format.\n * @param {distance|score} [options.reverseMode=distance] - Set the factors that are used to sort nearby results.\n * @param {boolean} [options.reverseGeocode=false] If `true`, enable reverse geocoding mode. In reverse geocoding, search input is expected to be coordinates in the form `lat, lon`, with suggestions being the reverse geocodes.\n * @param {boolean} [options.flipCoordinates=false] If `true`, search input coordinates for reverse geocoding is expected to be in the form `lon, lat` instead of the default `lat, lon`.\n * @param {Boolean} [options.enableEventLogging=true] Allow Mapbox to collect anonymous usage statistics from the plugin.\n * @param {Boolean|Object} [options.marker=true] If `true`, a [Marker](https://docs.mapbox.com/mapbox-gl-js/api/#marker) will be added to the map at the location of the user-selected result using a default set of Marker options. If the value is an object, the marker will be constructed using these options. If `false`, no marker will be added to the map. Requires that `options.mapboxgl` also be set.\n * @param {Function} [options.render] A function that specifies how the results should be rendered in the dropdown menu. This function should accepts a single [extended GeoJSON](https://docs.mapbox.com/api/search/geocoding-v5/#geocoding-response-object) object as input and return a string. Any HTML in the returned string will be rendered.\n * @param {Function} [options.getItemValue] A function that specifies how the selected result should be rendered in the search bar. This function should accept a single [extended GeoJSON](https://docs.mapbox.com/api/search/geocoding-v5/#geocoding-response-object) object as input and return a string. HTML tags in the output string will not be rendered. Defaults to `(item) => item.place_name`.\n * @param {String} [options.mode=mapbox.places] A string specifying the geocoding [endpoint](https://docs.mapbox.com/api/search/#endpoints) to query. Options are `mapbox.places` and `mapbox.places-permanent`. The `mapbox.places-permanent` mode requires an enterprise license for permanent geocodes.\n * @param {Boolean} [options.localGeocoderOnly=false] If `true`, indicates that the `localGeocoder` results should be the only ones returned to the user. If `false`, indicates that the `localGeocoder` results should be combined with those from the Mapbox API with the `localGeocoder` results ranked higher.\n * @param {Boolean} [options.autocomplete=true] Specify whether to return autocomplete results or not. When autocomplete is enabled, results will be included that start with the requested string, rather than just responses that match it exactly.\n * @param {Boolean} [options.fuzzyMatch=true] Specify whether the Geocoding API should attempt approximate, as well as exact, matching when performing searches, or whether it should opt out of this behavior and only attempt exact matching.\n * @param {Boolean} [options.routing=false] Specify whether to request additional metadata about the recommended navigation destination corresponding to the feature or not. Only applicable for address features.\n * @param {String} [options.worldview=\"us\"] Filter results to geographic features whose characteristics are defined differently by audiences belonging to various regional, cultural, or political groups.\n * @param {Boolean} [options.enableGeolocation=false] If `true` enable user geolocation feature.\n * @param {('address'|'street'|'place'|'country')} [options.addressAccuracy=\"street\"] The accuracy for the geolocation feature with which we define the address line to fill. The browser API returns the user's position with accuracy, and sometimes we can get the neighbor's address. To prevent receiving an incorrect address, you can reduce the accuracy of the definition.\n * @example\n * var geocoder = new MapboxGeocoder({ accessToken: mapboxgl.accessToken });\n * map.addControl(geocoder);\n * @return {MapboxGeocoder} `this`\n *\n */\n\nfunction MapboxGeocoder(options) {\n this._eventEmitter = new EventEmitter();\n this.options = extend({}, this.options, options);\n this.inputString = '';\n this.fresh = true;\n this.lastSelected = null;\n this.geolocation = new Geolocation();\n}\nMapboxGeocoder.prototype = {\n options: {\n zoom: 16,\n flyTo: true,\n trackProximity: true,\n minLength: 2,\n reverseGeocode: false,\n flipCoordinates: false,\n limit: 5,\n origin: 'https://api.mapbox.com',\n enableEventLogging: true,\n marker: true,\n mapboxgl: null,\n collapsed: false,\n clearAndBlurOnEsc: false,\n clearOnBlur: false,\n enableGeolocation: false,\n addressAccuracy: 'street',\n getItemValue: function (item) {\n return item.place_name;\n },\n render: function (item) {\n var placeName = item.place_name.split(',');\n return '
' + placeName[0] + '
' + placeName.splice(1, placeName.length).join(',') + '
';\n }\n },\n _headers: {},\n /**\n * Add the geocoder to a container. The container can be either a `mapboxgl.Map`, an `HTMLElement` or a CSS selector string.\n *\n * If the container is a [`mapboxgl.Map`](https://docs.mapbox.com/mapbox-gl-js/api/map/), this function will behave identically to [`Map.addControl(geocoder)`](https://docs.mapbox.com/mapbox-gl-js/api/map/#map#addcontrol).\n * If the container is an instance of [`HTMLElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement), then the geocoder will be appended as a child of that [`HTMLElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement).\n * If the container is a [CSS selector string](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors), the geocoder will be appended to the element returned from the query.\n *\n * This function will throw an error if the container is none of the above.\n * It will also throw an error if the referenced HTML element cannot be found in the `document.body`.\n *\n * For example, if the HTML body contains the element `
`, the following script will append the geocoder to `#geocoder-container`:\n *\n * ```javascript\n * var geocoder = new MapboxGeocoder({ accessToken: mapboxgl.accessToken });\n * geocoder.addTo('#geocoder-container');\n * ```\n * @param {String|HTMLElement|mapboxgl.Map} container A reference to the container to which to add the geocoder\n */\n addTo: function (container) {\n function addToExistingContainer(geocoder, container) {\n if (!document.body.contains(container)) {\n throw new Error(\"Element provided to #addTo() exists, but is not in the DOM\");\n }\n const el = geocoder.onAdd(); //returns the input elements, which are then added to the requested html container\n container.appendChild(el);\n }\n\n // if the container is a map, add the control like normal\n if (container._controlContainer) {\n // it's a mapbox-gl map, add like normal\n container.addControl(this);\n }\n // if the container is an HTMLElement, then set the parent to be that element\n else if (container instanceof HTMLElement) {\n addToExistingContainer(this, container);\n }\n // if the container is a string, treat it as a CSS query\n else if (typeof container == 'string') {\n const parent = document.querySelectorAll(container);\n if (parent.length === 0) {\n throw new Error(\"Element \", container, \"not found.\");\n }\n if (parent.length > 1) {\n throw new Error(\"Geocoder can only be added to a single html element\");\n }\n addToExistingContainer(this, parent[0]);\n } else {\n throw new Error(\"Error: addTo must be a mapbox-gl-js map, an html element, or a CSS selector query for a single html element\");\n }\n },\n onAdd: function (map) {\n if (map && typeof map != 'string') {\n this._map = map;\n }\n this.setLanguage();\n if (!this.options.localGeocoderOnly) {\n this.geocoderService = mbxGeocoder(MapboxClient({\n accessToken: this.options.accessToken,\n origin: this.options.origin\n }));\n }\n if (this.options.localGeocoderOnly && !this.options.localGeocoder) {\n throw new Error(\"A localGeocoder function must be specified to use localGeocoderOnly mode\");\n }\n this.eventManager = new MapboxEventManager(this.options);\n this._onChange = this._onChange.bind(this);\n this._onKeyDown = this._onKeyDown.bind(this);\n this._onPaste = this._onPaste.bind(this);\n this._onBlur = this._onBlur.bind(this);\n this._showButton = this._showButton.bind(this);\n this._hideButton = this._hideButton.bind(this);\n this._onQueryResult = this._onQueryResult.bind(this);\n this.clear = this.clear.bind(this);\n this._updateProximity = this._updateProximity.bind(this);\n this._collapse = this._collapse.bind(this);\n this._unCollapse = this._unCollapse.bind(this);\n this._clear = this._clear.bind(this);\n this._clearOnBlur = this._clearOnBlur.bind(this);\n this._geolocateUser = this._geolocateUser.bind(this);\n var el = this.container = document.createElement('div');\n el.className = 'mapboxgl-ctrl-geocoder mapboxgl-ctrl';\n var searchIcon = this.createIcon('search', '');\n this._inputEl = document.createElement('input');\n this._inputEl.type = 'text';\n this._inputEl.className = 'mapboxgl-ctrl-geocoder--input';\n this.setPlaceholder();\n if (this.options.collapsed) {\n this._collapse();\n this.container.addEventListener('mouseenter', this._unCollapse);\n this.container.addEventListener('mouseleave', this._collapse);\n this._inputEl.addEventListener('focus', this._unCollapse);\n }\n if (this.options.collapsed || this.options.clearOnBlur) {\n this._inputEl.addEventListener('blur', this._onBlur);\n }\n this._inputEl.addEventListener('keydown', debounce(this._onKeyDown, 200));\n this._inputEl.addEventListener('paste', this._onPaste);\n this._inputEl.addEventListener('change', this._onChange);\n this.container.addEventListener('mouseenter', this._showButton);\n this.container.addEventListener('mouseleave', this._hideButton);\n this._inputEl.addEventListener('keyup', function (e) {\n this.eventManager.keyevent(e, this);\n }.bind(this));\n var actions = document.createElement('div');\n actions.classList.add('mapboxgl-ctrl-geocoder--pin-right');\n this._clearEl = document.createElement('button');\n this._clearEl.setAttribute('aria-label', 'Clear');\n this._clearEl.addEventListener('click', this.clear);\n this._clearEl.className = 'mapboxgl-ctrl-geocoder--button';\n var buttonIcon = this.createIcon('close', '');\n this._clearEl.appendChild(buttonIcon);\n this._loadingEl = this.createIcon('loading', '');\n actions.appendChild(this._clearEl);\n actions.appendChild(this._loadingEl);\n el.appendChild(searchIcon);\n el.appendChild(this._inputEl);\n el.appendChild(actions);\n if (this.options.enableGeolocation && this.geolocation.isSupport()) {\n this._geolocateEl = document.createElement('button');\n this._geolocateEl.setAttribute('aria-label', 'Geolocate');\n this._geolocateEl.addEventListener('click', this._geolocateUser);\n this._geolocateEl.className = 'mapboxgl-ctrl-geocoder--button';\n var geolocateIcon = this.createIcon('geolocate', '');\n this._geolocateEl.appendChild(geolocateIcon);\n actions.appendChild(this._geolocateEl);\n this._showGeolocateButton();\n }\n var typeahead = this._typeahead = new Typeahead(this._inputEl, [], {\n filter: false,\n minLength: this.options.minLength,\n limit: this.options.limit\n });\n this.setRenderFunction(this.options.render);\n typeahead.getItemValue = this.options.getItemValue;\n\n // Add support for footer.\n var parentDraw = typeahead.list.draw;\n var footerNode = this._footerNode = getFooterNode();\n typeahead.list.draw = function () {\n parentDraw.call(this);\n footerNode.addEventListener('mousedown', function () {\n this.selectingListItem = true;\n }.bind(this));\n footerNode.addEventListener('mouseup', function () {\n this.selectingListItem = false;\n }.bind(this));\n this.element.appendChild(footerNode);\n };\n this.mapMarker = null;\n this._handleMarker = this._handleMarker.bind(this);\n if (this._map) {\n if (this.options.trackProximity) {\n this._updateProximity();\n this._map.on('moveend', this._updateProximity);\n }\n this._mapboxgl = this.options.mapboxgl;\n if (!this._mapboxgl && this.options.marker) {\n // eslint-disable-next-line no-console\n console.error(\"No mapboxgl detected in options. Map markers are disabled. Please set options.mapboxgl.\");\n this.options.marker = false;\n }\n }\n return el;\n },\n _geolocateUser: function () {\n this._hideGeolocateButton();\n this._showLoadingIcon();\n this.geolocation.getCurrentPosition().then(function (geolocationPosition) {\n this._hideLoadingIcon();\n const geojson = {\n geometry: {\n type: 'Point',\n coordinates: [geolocationPosition.coords.longitude, geolocationPosition.coords.latitude]\n }\n };\n this._handleMarker(geojson);\n this._fly(geojson);\n this._typeahead.clear();\n this._typeahead.selected = true;\n this.lastSelected = JSON.stringify(geojson);\n this._showClearButton();\n this.fresh = false;\n const config = {\n limit: 1,\n language: [this.options.language],\n query: geojson.geometry.coordinates,\n types: [\"address\"]\n };\n if (this.options.localGeocoderOnly) {\n const text = geojson.geometry.coordinates[0] + ',' + geojson.geometry.coordinates[1];\n this._setInputValue(text);\n this._eventEmitter.emit('result', {\n result: geojson\n });\n } else {\n this.geocoderService.reverseGeocode(config).send().then(function (resp) {\n const feature = resp.body.features[0];\n if (feature) {\n const locationText = utils.transformFeatureToGeolocationText(feature, this.options.addressAccuracy);\n this._setInputValue(locationText);\n feature.user_coordinates = geojson.geometry.coordinates;\n this._eventEmitter.emit('result', {\n result: feature\n });\n } else {\n this._eventEmitter.emit('result', {\n result: {\n user_coordinates: geojson.geometry.coordinates\n }\n });\n }\n }.bind(this));\n }\n }.bind(this)).catch(function (error) {\n if (error.code === 1) {\n this._renderUserDeniedGeolocationError();\n } else {\n this._renderLocationError();\n }\n this._hideLoadingIcon();\n this._showGeolocateButton();\n this._hideAttribution();\n }.bind(this));\n },\n createIcon: function (name, path) {\n var icon = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n icon.setAttribute('class', 'mapboxgl-ctrl-geocoder--icon mapboxgl-ctrl-geocoder--icon-' + name);\n icon.setAttribute('viewBox', '0 0 18 18');\n icon.setAttribute('xml:space', 'preserve');\n icon.setAttribute('width', 18);\n icon.setAttribute('height', 18);\n icon.innerHTML = path;\n return icon;\n },\n onRemove: function () {\n this.container.parentNode.removeChild(this.container);\n if (this.options.trackProximity && this._map) {\n this._map.off('moveend', this._updateProximity);\n }\n this._removeMarker();\n this._map = null;\n return this;\n },\n _setInputValue: function (value) {\n this._inputEl.value = value;\n setTimeout(function () {\n this._inputEl.focus();\n this._inputEl.scrollLeft = 0;\n this._inputEl.setSelectionRange(0, 0);\n }.bind(this), 1);\n },\n _onPaste: function (e) {\n var value = (e.clipboardData || window.clipboardData).getData('text');\n if (value.length >= this.options.minLength) {\n this._geocode(value);\n }\n },\n _onKeyDown: function (e) {\n var ESC_KEY_CODE = 27,\n TAB_KEY_CODE = 9;\n if (e.keyCode === ESC_KEY_CODE && this.options.clearAndBlurOnEsc) {\n this._clear(e);\n return this._inputEl.blur();\n }\n\n // if target has shadowRoot, then get the actual active element inside the shadowRoot\n var target = e.target && e.target.shadowRoot ? e.target.shadowRoot.activeElement : e.target;\n var value = target ? target.value : '';\n if (!value) {\n this.fresh = true;\n // the user has removed all the text\n if (e.keyCode !== TAB_KEY_CODE) this.clear(e);\n this._showGeolocateButton();\n return this._hideClearButton();\n }\n this._hideGeolocateButton();\n\n // TAB, ESC, LEFT, RIGHT, ENTER, UP, DOWN\n if (e.metaKey || [TAB_KEY_CODE, ESC_KEY_CODE, 37, 39, 13, 38, 40].indexOf(e.keyCode) !== -1) return;\n if (target.value.length >= this.options.minLength) {\n this._geocode(target.value);\n }\n },\n _showButton: function () {\n if (this._typeahead.selected) this._showClearButton();\n },\n _hideButton: function () {\n if (this._typeahead.selected) this._hideClearButton();\n },\n _showClearButton: function () {\n this._clearEl.style.display = 'block';\n },\n _hideClearButton: function () {\n this._clearEl.style.display = 'none';\n },\n _showGeolocateButton: function () {\n if (this._geolocateEl && this.geolocation.isSupport()) {\n this._geolocateEl.style.display = 'block';\n }\n },\n _hideGeolocateButton: function () {\n if (this._geolocateEl) {\n this._geolocateEl.style.display = 'none';\n }\n },\n _showLoadingIcon: function () {\n this._loadingEl.style.display = 'block';\n },\n _hideLoadingIcon: function () {\n this._loadingEl.style.display = 'none';\n },\n _showAttribution: function () {\n this._footerNode.style.display = 'block';\n },\n _hideAttribution: function () {\n this._footerNode.style.display = 'none';\n },\n _onBlur: function (e) {\n if (this.options.clearOnBlur) {\n this._clearOnBlur(e);\n }\n if (this.options.collapsed) {\n this._collapse();\n }\n },\n _onChange: function () {\n var selected = this._typeahead.selected;\n if (selected && JSON.stringify(selected) !== this.lastSelected) {\n this._hideClearButton();\n if (this.options.flyTo) {\n this._fly(selected);\n }\n if (this.options.marker && this._mapboxgl) {\n this._handleMarker(selected);\n }\n\n // After selecting a feature, re-focus the textarea and set\n // cursor at start.\n this._inputEl.focus();\n this._inputEl.scrollLeft = 0;\n this._inputEl.setSelectionRange(0, 0);\n this.lastSelected = JSON.stringify(selected);\n this._eventEmitter.emit('result', {\n result: selected\n });\n this.eventManager.select(selected, this);\n }\n },\n _fly: function (selected) {\n var flyOptions;\n if (selected.properties && exceptions[selected.properties.short_code]) {\n // Certain geocoder search results return (and therefore zoom to fit)\n // an unexpectedly large bounding box: for example, both Russia and the\n // USA span both sides of -180/180, or France includes the island of\n // Reunion in the Indian Ocean. An incomplete list of these exceptions\n // at ./exceptions.json provides \"reasonable\" bounding boxes as a\n // short-term solution; this may be amended as necessary.\n flyOptions = extend({}, this.options.flyTo);\n if (this._map) {\n this._map.fitBounds(exceptions[selected.properties.short_code].bbox, flyOptions);\n }\n } else if (selected.bbox) {\n var bbox = selected.bbox;\n flyOptions = extend({}, this.options.flyTo);\n if (this._map) {\n this._map.fitBounds([[bbox[0], bbox[1]], [bbox[2], bbox[3]]], flyOptions);\n }\n } else {\n var defaultFlyOptions = {\n zoom: this.options.zoom\n };\n flyOptions = extend({}, defaultFlyOptions, this.options.flyTo);\n // ensure that center is not overriden by custom options\n if (selected.center) {\n flyOptions.center = selected.center;\n } else if (selected.geometry && selected.geometry.type && selected.geometry.type === 'Point' && selected.geometry.coordinates) {\n flyOptions.center = selected.geometry.coordinates;\n }\n if (this._map) {\n this._map.flyTo(flyOptions);\n }\n }\n },\n _requestType: function (options, search) {\n var type;\n if (options.localGeocoderOnly) {\n type = GEOCODE_REQUEST_TYPE.LOCAL;\n } else if (options.reverseGeocode && utils.REVERSE_GEOCODE_COORD_RGX.test(search)) {\n type = GEOCODE_REQUEST_TYPE.REVERSE;\n } else {\n type = GEOCODE_REQUEST_TYPE.FORWARD;\n }\n return type;\n },\n _setupConfig: function (requestType, search) {\n // Possible config properties to pass to client\n const keys = ['bbox', 'limit', 'proximity', 'countries', 'types', 'language', 'reverseMode', 'mode', 'autocomplete', 'fuzzyMatch', 'routing', 'worldview'];\n const spacesOrCommaRgx = /[\\s,]+/;\n var self = this;\n var config = keys.reduce(function (config, key) {\n // don't include undefined/null params, but allow boolean, among other, values\n if (self.options[key] === undefined || self.options[key] === null) {\n return config;\n }\n\n // countries, types, and language need to be passed in as arrays to client\n // https://github.com/mapbox/mapbox-sdk-js/blob/master/services/geocoding.js#L38-L47\n ['countries', 'types', 'language'].indexOf(key) > -1 ? config[key] = self.options[key].split(spacesOrCommaRgx) : config[key] = self.options[key];\n const isCoordKey = typeof self.options[key].longitude === 'number' && typeof self.options[key].latitude === 'number';\n if (key === 'proximity' && isCoordKey) {\n const lng = self.options[key].longitude;\n const lat = self.options[key].latitude;\n config[key] = [lng, lat];\n }\n return config;\n }, {});\n switch (requestType) {\n case GEOCODE_REQUEST_TYPE.REVERSE:\n {\n var coords = search.split(spacesOrCommaRgx).map(function (c) {\n return parseFloat(c, 10);\n });\n if (!self.options.flipCoordinates) {\n coords.reverse();\n }\n\n // client only accepts one type for reverseGeocode, so\n // use first config type if one, if not default to poi\n config.types ? [config.types[0]] : [\"poi\"];\n config = extend(config, {\n query: coords,\n limit: 1\n });\n\n // Remove config options not supported by the reverseGeocoder\n ['proximity', 'autocomplete', 'fuzzyMatch', 'bbox'].forEach(function (key) {\n if (key in config) {\n delete config[key];\n }\n });\n }\n break;\n case GEOCODE_REQUEST_TYPE.FORWARD:\n {\n // Ensure that any reverse geocoding looking request is cleaned up\n // to be processed as only a forward geocoding request by the server.\n const trimmedSearch = search.trim();\n const reverseGeocodeCoordRgx = /^(-?\\d{1,3}(\\.\\d{0,256})?)[, ]+(-?\\d{1,3}(\\.\\d{0,256})?)?$/;\n if (reverseGeocodeCoordRgx.test(trimmedSearch)) {\n search = search.replace(/,/g, ' ');\n }\n config = extend(config, {\n query: search\n });\n }\n break;\n }\n config.session_token = this.eventManager.getSessionId();\n return config;\n },\n _geocode: function (searchInput) {\n this.inputString = searchInput;\n this._showLoadingIcon();\n this._eventEmitter.emit('loading', {\n query: searchInput\n });\n const requestType = this._requestType(this.options, searchInput);\n const config = this._setupConfig(requestType, searchInput);\n var request;\n switch (requestType) {\n case GEOCODE_REQUEST_TYPE.LOCAL:\n request = Promise.resolve();\n break;\n case GEOCODE_REQUEST_TYPE.FORWARD:\n request = this.geocoderService.forwardGeocode(config).send();\n break;\n case GEOCODE_REQUEST_TYPE.REVERSE:\n request = this.geocoderService.reverseGeocode(config).send();\n break;\n }\n var localGeocoderRes = this.options.localGeocoder ? this.options.localGeocoder(searchInput) || [] : [];\n var externalGeocoderRes = [];\n var geocoderError = null;\n request.catch(function (error) {\n geocoderError = error;\n }.bind(this)).then(function (response) {\n this._hideLoadingIcon();\n var res = {};\n if (!response) {\n res = {\n type: 'FeatureCollection',\n features: []\n };\n } else if (response.statusCode == '200') {\n res = response.body;\n res.request = response.request;\n res.headers = response.headers;\n this._headers = response.headers;\n }\n res.config = config;\n if (this.fresh) {\n this.eventManager.start(this);\n this.fresh = false;\n }\n\n // Tag Mapbox as the source for Geocoding API results, to differentiate from local or external geocoder federated results\n if (res.features && res.features.length) {\n res.features.map(function (feature) {\n feature._source = 'mapbox';\n });\n }\n\n // supplement Mapbox Geocoding API results with locally populated results\n res.features = res.features ? localGeocoderRes.concat(res.features) : localGeocoderRes;\n if (this.options.externalGeocoder) {\n externalGeocoderRes = this.options.externalGeocoder(searchInput, res.features) || Promise.resolve([]);\n // supplement Mapbox Geocoding API results with features returned by a promise\n return externalGeocoderRes.then(function (features) {\n res.features = res.features ? features.concat(res.features) : features;\n return res;\n }, function () {\n // on error, display the original result\n return res;\n });\n }\n return res;\n }.bind(this)).then(function (res) {\n if (geocoderError) {\n throw geocoderError;\n }\n\n // apply results filter if provided\n if (this.options.filter && res.features.length) {\n res.features = res.features.filter(this.options.filter);\n }\n if (res.features.length) {\n this._showClearButton();\n this._hideGeolocateButton();\n this._showAttribution();\n this._eventEmitter.emit('results', res);\n this._typeahead.update(res.features);\n } else {\n this._hideClearButton();\n this._hideAttribution();\n this._typeahead.selected = null;\n this._renderNoResults();\n this._eventEmitter.emit('results', res);\n }\n }.bind(this)).catch(function (err) {\n this._hideLoadingIcon();\n this._hideAttribution();\n\n // in the event of an error in the Mapbox Geocoding API still display results from the localGeocoder\n if (localGeocoderRes.length && this.options.localGeocoder || externalGeocoderRes.length && this.options.externalGeocoder) {\n this._showClearButton();\n this._hideGeolocateButton();\n this._typeahead.update(localGeocoderRes);\n } else {\n this._hideClearButton();\n this._typeahead.selected = null;\n this._renderError();\n }\n this._eventEmitter.emit('results', {\n features: localGeocoderRes\n });\n this._eventEmitter.emit('error', {\n error: err\n });\n }.bind(this));\n return request;\n },\n /**\n * Shared logic for clearing input\n * @param {Event} [ev] the event that triggered the clear, if available\n * @private\n *\n */\n _clear: function (ev) {\n if (ev) ev.preventDefault();\n this._inputEl.value = '';\n this._typeahead.selected = null;\n this._typeahead.clear();\n this.eventManager.sessionIncrementer++;\n this._onChange();\n this._hideClearButton();\n this._showGeolocateButton();\n this._removeMarker();\n this.lastSelected = null;\n this._eventEmitter.emit('clear');\n this.fresh = true;\n },\n /**\n * Clear and then focus the input.\n * @param {Event} [ev] the event that triggered the clear, if available\n *\n */\n clear: function (ev) {\n this._clear(ev);\n this._inputEl.focus();\n },\n /**\n * Clear the input, without refocusing it. Used to implement clearOnBlur\n * constructor option.\n * @param {Event} [ev] the blur event\n * @private\n */\n _clearOnBlur: function (ev) {\n var ctx = this;\n\n /*\n * If relatedTarget is not found, assume user targeted the suggestions list.\n * In that case, do not clear on blur. There are other edge cases where\n * ev.relatedTarget could be null. Clicking on list always results in null\n * relatedtarget because of upstream behavior in `suggestions`.\n *\n * The ideal solution would be to check if ev.relatedTarget is a child of\n * the list. See issue #258 for details on why we can't do that yet.\n */\n if (ev.relatedTarget) {\n ctx._clear(ev);\n }\n },\n _onQueryResult: function (response) {\n var results = response.body;\n if (!results.features.length) return;\n var result = results.features[0];\n this._typeahead.selected = result;\n this._inputEl.value = result.place_name;\n this._onChange();\n },\n _updateProximity: function () {\n // proximity is designed for local scale, if the user is looking at the whole world,\n // it doesn't make sense to factor in the arbitrary centre of the map\n if (!this._map || !this.options.trackProximity) {\n return;\n }\n if (this._map.getZoom() > 9) {\n var center = this._map.getCenter().wrap();\n this.setProximity({\n longitude: center.lng,\n latitude: center.lat\n }, false);\n } else {\n this.setProximity(null, false);\n }\n },\n _collapse: function () {\n // do not collapse if input is in focus\n if (!this._inputEl.value && this._inputEl !== document.activeElement) this.container.classList.add('mapboxgl-ctrl-geocoder--collapsed');\n },\n _unCollapse: function () {\n this.container.classList.remove('mapboxgl-ctrl-geocoder--collapsed');\n },\n /**\n * Set & query the input\n * @param {string} searchInput location name or other search input\n * @returns {MapboxGeocoder} this\n */\n query: function (searchInput) {\n this._geocode(searchInput).then(this._onQueryResult);\n return this;\n },\n _renderError: function () {\n var errorMessage = \"
There was an error reaching the server
\";\n this._renderMessage(errorMessage);\n },\n _renderLocationError: function () {\n var errorMessage = \"
A location error has occurred
\";\n this._renderMessage(errorMessage);\n },\n _renderNoResults: function () {\n var errorMessage = \"
No results found
\";\n this._renderMessage(errorMessage);\n },\n _renderUserDeniedGeolocationError: function () {\n var errorMessage = \"
Geolocation permission denied
\";\n this._renderMessage(errorMessage);\n },\n _renderMessage: function (msg) {\n this._typeahead.update([]);\n this._typeahead.selected = null;\n this._typeahead.clear();\n this._typeahead.renderError(msg);\n },\n /**\n * Get the text to use as the search bar placeholder\n *\n * If placeholder is provided in options, then use options.placeholder\n * Otherwise, if language is provided in options, then use the localized string of the first language if available\n * Otherwise use the default\n *\n * @returns {String} the value to use as the search bar placeholder\n * @private\n */\n _getPlaceholderText: function () {\n if (this.options.placeholder) return this.options.placeholder;\n if (this.options.language) {\n var firstLanguage = this.options.language.split(\",\")[0];\n var language = subtag.language(firstLanguage);\n var localizedValue = localization.placeholder[language];\n if (localizedValue) return localizedValue;\n }\n return 'Search';\n },\n /**\n * Set input\n * @param {string} searchInput location name or other search input\n * @param {boolean} [showSuggestions=false] display suggestion on setInput call\n * @returns {MapboxGeocoder} this\n */\n setInput: function (searchInput, showSuggestions) {\n if (showSuggestions === undefined) {\n showSuggestions = false;\n }\n // Set input value to passed value and clear everything else.\n this._inputEl.value = searchInput;\n this._typeahead.selected = null;\n this._typeahead.clear();\n if (searchInput.length >= this.options.minLength) {\n showSuggestions ? this._geocode(searchInput) : this._onChange();\n }\n return this;\n },\n /**\n * Set proximity\n * @param {Object|'ip'} proximity The new `options.proximity` value. This is a geographical point given as an object with `latitude` and `longitude` properties or the string 'ip'.\n * @param {Boolean} disableTrackProximity If true, sets `trackProximity` to false. True by default to prevent `trackProximity` from unintentionally overriding an explicitly set proximity value.\n * @returns {MapboxGeocoder} this\n */\n setProximity: function (proximity, disableTrackProximity = true) {\n this.options.proximity = proximity;\n if (disableTrackProximity) {\n this.options.trackProximity = false;\n }\n return this;\n },\n /**\n * Get proximity\n * @returns {Object} The geocoder proximity\n */\n getProximity: function () {\n return this.options.proximity;\n },\n /**\n * Set the render function used in the results dropdown\n * @param {Function} fn The function to use as a render function. This function accepts a single [extended GeoJSON](https://docs.mapbox.com/api/search/geocoding-v5/#geocoding-response-object) object as input and returns a string.\n * @returns {MapboxGeocoder} this\n */\n setRenderFunction: function (fn) {\n if (fn && typeof fn == \"function\") {\n this._typeahead.render = fn;\n }\n return this;\n },\n /**\n * Get the function used to render the results dropdown\n *\n * @returns {Function} the render function\n */\n getRenderFunction: function () {\n return this._typeahead.render;\n },\n /**\n * Get the language to use in UI elements and when making search requests\n *\n * Look first at the explicitly set options otherwise use the browser's language settings\n * @param {String} language Specify the language to use for response text and query result weighting. Options are IETF language tags comprised of a mandatory ISO 639-1 language code and optionally one or more IETF subtags for country or script. More than one value can also be specified, separated by commas.\n * @returns {MapboxGeocoder} this\n */\n setLanguage: function (language) {\n var browserLocale = navigator.language || navigator.userLanguage || navigator.browserLanguage;\n this.options.language = language || this.options.language || browserLocale;\n return this;\n },\n /**\n * Get the language to use in UI elements and when making search requests\n * @returns {String} The language(s) used by the plugin, if any\n */\n getLanguage: function () {\n return this.options.language;\n },\n /**\n * Get the zoom level the map will move to when there is no bounding box on the selected result\n * @returns {Number} the map zoom\n */\n getZoom: function () {\n return this.options.zoom;\n },\n /**\n * Set the zoom level\n * @param {Number} zoom The zoom level that the map should animate to when a `bbox` isn't found in the response. If a `bbox` is found the map will fit to the `bbox`.\n * @returns {MapboxGeocoder} this\n */\n setZoom: function (zoom) {\n this.options.zoom = zoom;\n return this;\n },\n /**\n * Get the parameters used to fly to the selected response, if any\n * @returns {Boolean|Object} The `flyTo` option\n */\n getFlyTo: function () {\n return this.options.flyTo;\n },\n /**\n * Set the flyTo options\n * @param {Boolean|Object} flyTo If false, animating the map to a selected result is disabled. If true, animating the map will use the default animation parameters. If an object, it will be passed as `options` to the map [`flyTo`](https://docs.mapbox.com/mapbox-gl-js/api/#map#flyto) or [`fitBounds`](https://docs.mapbox.com/mapbox-gl-js/api/#map#fitbounds) method providing control over the animation of the transition.\n */\n setFlyTo: function (flyTo) {\n this.options.flyTo = flyTo;\n return this;\n },\n /**\n * Get the value of the placeholder string\n * @returns {String} The input element's placeholder value\n */\n getPlaceholder: function () {\n return this.options.placeholder;\n },\n /**\n * Set the value of the input element's placeholder\n * @param {String} placeholder the text to use as the input element's placeholder\n * @returns {MapboxGeocoder} this\n */\n setPlaceholder: function (placeholder) {\n this.options.placeholder = placeholder ? placeholder : this._getPlaceholderText();\n this._inputEl.placeholder = this.options.placeholder;\n this._inputEl.setAttribute('aria-label', this.options.placeholder);\n return this;\n },\n /**\n * Get the bounding box used by the plugin\n * @returns {Array} the bounding box, if any\n */\n getBbox: function () {\n return this.options.bbox;\n },\n /**\n * Set the bounding box to limit search results to\n * @param {Array} bbox a bounding box given as an array in the format [minX, minY, maxX, maxY].\n * @returns {MapboxGeocoder} this\n */\n setBbox: function (bbox) {\n this.options.bbox = bbox;\n return this;\n },\n /**\n * Get a list of the countries to limit search results to\n * @returns {String} a comma separated list of countries to limit to, if any\n */\n getCountries: function () {\n return this.options.countries;\n },\n /**\n * Set the countries to limit search results to\n * @param {String} countries a comma separated list of countries to limit to\n * @returns {MapboxGeocoder} this\n */\n setCountries: function (countries) {\n this.options.countries = countries;\n return this;\n },\n /**\n * Get a list of the types to limit search results to\n * @returns {String} a comma separated list of types to limit to\n */\n getTypes: function () {\n return this.options.types;\n },\n /**\n * Set the types to limit search results to\n * @param {String} countries a comma separated list of types to limit to\n * @returns {MapboxGeocoder} this\n */\n setTypes: function (types) {\n this.options.types = types;\n return this;\n },\n /**\n * Get the minimum number of characters typed to trigger results used in the plugin\n * @returns {Number} The minimum length in characters before a search is triggered\n */\n getMinLength: function () {\n return this.options.minLength;\n },\n /**\n * Set the minimum number of characters typed to trigger results used by the plugin\n * @param {Number} minLength the minimum length in characters\n * @returns {MapboxGeocoder} this\n */\n setMinLength: function (minLength) {\n this.options.minLength = minLength;\n if (this._typeahead) this._typeahead.options.minLength = minLength;\n return this;\n },\n /**\n * Get the limit value for the number of results to display used by the plugin\n * @returns {Number} The limit value for the number of results to display used by the plugin\n */\n getLimit: function () {\n return this.options.limit;\n },\n /**\n * Set the limit value for the number of results to display used by the plugin\n * @param {Number} limit the number of search results to return\n * @returns {MapboxGeocoder}\n */\n setLimit: function (limit) {\n this.options.limit = limit;\n if (this._typeahead) this._typeahead.options.limit = limit;\n return this;\n },\n /**\n * Get the filter function used by the plugin\n * @returns {Function} the filter function\n */\n getFilter: function () {\n return this.options.filter;\n },\n /**\n * Set the filter function used by the plugin.\n * @param {Function} filter A function which accepts a Feature in the [extended GeoJSON](https://docs.mapbox.com/api/search/geocoding-v5/#geocoding-response-object) format to filter out results from the Geocoding API response before they are included in the suggestions list. Return `true` to keep the item, `false` otherwise.\n * @returns {MapboxGeocoder} this\n */\n setFilter: function (filter) {\n this.options.filter = filter;\n return this;\n },\n /**\n * Set the geocoding endpoint used by the plugin.\n * @param {Function} origin A function which accepts an HTTPS URL to specify the endpoint to query results from.\n * @returns {MapboxGeocoder} this\n */\n setOrigin: function (origin) {\n this.options.origin = origin;\n this.geocoderService = mbxGeocoder(MapboxClient({\n accessToken: this.options.accessToken,\n origin: this.options.origin\n }));\n return this;\n },\n /**\n * Get the geocoding endpoint the plugin is currently set to\n * @returns {Function} the endpoint URL\n */\n getOrigin: function () {\n return this.options.origin;\n },\n /**\n * Set the accessToken option used for the geocoding request endpoint.\n * @param {String} accessToken value\n * @returns {MapboxGeocoder} this\n */\n setAccessToken: function (accessToken) {\n this.options.accessToken = accessToken;\n this.geocoderService = mbxGeocoder(MapboxClient({\n accessToken: this.options.accessToken,\n origin: this.options.origin\n }));\n return this;\n },\n /**\n * Set the autocomplete option used for geocoding requests\n * @param {Boolean} value The boolean value to set autocomplete to\n * @returns\n */\n setAutocomplete: function (value) {\n this.options.autocomplete = value;\n return this;\n },\n /**\n * Get the current autocomplete parameter value used for requests\n * @returns {Boolean} The autocomplete parameter value\n */\n getAutocomplete: function () {\n return this.options.autocomplete;\n },\n /**\n * Set the fuzzyMatch option used for approximate matching in geocoding requests\n * @param {Boolean} value The boolean value to set fuzzyMatch to\n * @returns\n */\n setFuzzyMatch: function (value) {\n this.options.fuzzyMatch = value;\n return this;\n },\n /**\n * Get the current fuzzyMatch parameter value used for requests\n * @returns {Boolean} The fuzzyMatch parameter value\n */\n getFuzzyMatch: function () {\n return this.options.fuzzyMatch;\n },\n /**\n * Set the routing parameter used to ask for routable point metadata in geocoding requests\n * @param {Boolean} value The boolean value to set routing to\n * @returns\n */\n setRouting: function (value) {\n this.options.routing = value;\n return this;\n },\n /**\n * Get the current routing parameter value used for requests\n * @returns {Boolean} The routing parameter value\n */\n getRouting: function () {\n return this.options.routing;\n },\n /**\n * Set the worldview parameter\n * @param {String} code The country code representing the worldview (e.g. \"us\" | \"cn\" | \"jp\", \"in\")\n * @returns\n */\n setWorldview: function (code) {\n this.options.worldview = code;\n return this;\n },\n /**\n * Get the current worldview parameter value used for requests\n * @returns {String} The worldview parameter value\n */\n getWorldview: function () {\n return this.options.worldview;\n },\n /**\n * Handle the placement of a result marking the selected result\n * @private\n * @param {Object} selected the selected geojson feature\n * @returns {MapboxGeocoder} this\n */\n _handleMarker: function (selected) {\n // clean up any old marker that might be present\n if (!this._map) {\n return;\n }\n this._removeMarker();\n var defaultMarkerOptions = {\n color: '#4668F2'\n };\n var markerOptions = extend({}, defaultMarkerOptions, this.options.marker);\n this.mapMarker = new this._mapboxgl.Marker(markerOptions);\n if (selected.center) {\n this.mapMarker.setLngLat(selected.center).addTo(this._map);\n } else if (selected.geometry && selected.geometry.type && selected.geometry.type === 'Point' && selected.geometry.coordinates) {\n this.mapMarker.setLngLat(selected.geometry.coordinates).addTo(this._map);\n }\n return this;\n },\n /**\n * Handle the removal of a result marker\n * @private\n */\n _removeMarker: function () {\n if (this.mapMarker) {\n this.mapMarker.remove();\n this.mapMarker = null;\n }\n },\n /**\n * Subscribe to events that happen within the plugin.\n * @param {String} type name of event. Available events and the data passed into their respective event objects are:\n *\n * - __clear__ `Emitted when the input is cleared`\n * - __loading__ `{ query } Emitted when the geocoder is looking up a query`\n * - __results__ `{ results } Fired when the geocoder returns a response`\n * - __result__ `{ result } Fired when input is set`\n * - __error__ `{ error } Error as string`\n * @param {Function} fn function that's called when the event is emitted.\n * @returns {MapboxGeocoder} this;\n */\n on: function (type, fn) {\n this._eventEmitter.on(type, fn);\n return this;\n },\n /**\n * Remove an event\n * @returns {MapboxGeocoder} this\n * @param {String} type Event name.\n * @param {Function} fn Function that should unsubscribe to the event emitted.\n */\n off: function (type, fn) {\n this._eventEmitter.removeListener(type, fn);\n this.eventManager.remove();\n return this;\n }\n};\nmodule.exports = MapboxGeocoder;","/**\n * @license Angular v18.2.13\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\n/**\n * The default equality function used for `signal` and `computed`, which uses referential equality.\n */\nfunction defaultEquals(a, b) {\n return Object.is(a, b);\n}\n\n/**\n * The currently active consumer `ReactiveNode`, if running code in a reactive context.\n *\n * Change this via `setActiveConsumer`.\n */\nlet activeConsumer = null;\nlet inNotificationPhase = false;\n/**\n * Global epoch counter. Incremented whenever a source signal is set.\n */\nlet epoch = 1;\n/**\n * Symbol used to tell `Signal`s apart from other functions.\n *\n * This can be used to auto-unwrap signals in various cases, or to auto-wrap non-signal values.\n */\nconst SIGNAL = /* @__PURE__ */Symbol('SIGNAL');\nfunction setActiveConsumer(consumer) {\n const prev = activeConsumer;\n activeConsumer = consumer;\n return prev;\n}\nfunction getActiveConsumer() {\n return activeConsumer;\n}\nfunction isInNotificationPhase() {\n return inNotificationPhase;\n}\nfunction isReactive(value) {\n return value[SIGNAL] !== undefined;\n}\nconst REACTIVE_NODE = {\n version: 0,\n lastCleanEpoch: 0,\n dirty: false,\n producerNode: undefined,\n producerLastReadVersion: undefined,\n producerIndexOfThis: undefined,\n nextProducerIndex: 0,\n liveConsumerNode: undefined,\n liveConsumerIndexOfThis: undefined,\n consumerAllowSignalWrites: false,\n consumerIsAlwaysLive: false,\n producerMustRecompute: () => false,\n producerRecomputeValue: () => {},\n consumerMarkedDirty: () => {},\n consumerOnSignalRead: () => {}\n};\n/**\n * Called by implementations when a producer's signal is read.\n */\nfunction producerAccessed(node) {\n if (inNotificationPhase) {\n throw new Error(typeof ngDevMode !== 'undefined' && ngDevMode ? `Assertion error: signal read during notification phase` : '');\n }\n if (activeConsumer === null) {\n // Accessed outside of a reactive context, so nothing to record.\n return;\n }\n activeConsumer.consumerOnSignalRead(node);\n // This producer is the `idx`th dependency of `activeConsumer`.\n const idx = activeConsumer.nextProducerIndex++;\n assertConsumerNode(activeConsumer);\n if (idx < activeConsumer.producerNode.length && activeConsumer.producerNode[idx] !== node) {\n // There's been a change in producers since the last execution of `activeConsumer`.\n // `activeConsumer.producerNode[idx]` holds a stale dependency which will be be removed and\n // replaced with `this`.\n //\n // If `activeConsumer` isn't live, then this is a no-op, since we can replace the producer in\n // `activeConsumer.producerNode` directly. However, if `activeConsumer` is live, then we need\n // to remove it from the stale producer's `liveConsumer`s.\n if (consumerIsLive(activeConsumer)) {\n const staleProducer = activeConsumer.producerNode[idx];\n producerRemoveLiveConsumerAtIndex(staleProducer, activeConsumer.producerIndexOfThis[idx]);\n // At this point, the only record of `staleProducer` is the reference at\n // `activeConsumer.producerNode[idx]` which will be overwritten below.\n }\n }\n if (activeConsumer.producerNode[idx] !== node) {\n // We're a new dependency of the consumer (at `idx`).\n activeConsumer.producerNode[idx] = node;\n // If the active consumer is live, then add it as a live consumer. If not, then use 0 as a\n // placeholder value.\n activeConsumer.producerIndexOfThis[idx] = consumerIsLive(activeConsumer) ? producerAddLiveConsumer(node, activeConsumer, idx) : 0;\n }\n activeConsumer.producerLastReadVersion[idx] = node.version;\n}\n/**\n * Increment the global epoch counter.\n *\n * Called by source producers (that is, not computeds) whenever their values change.\n */\nfunction producerIncrementEpoch() {\n epoch++;\n}\n/**\n * Ensure this producer's `version` is up-to-date.\n */\nfunction producerUpdateValueVersion(node) {\n if (consumerIsLive(node) && !node.dirty) {\n // A live consumer will be marked dirty by producers, so a clean state means that its version\n // is guaranteed to be up-to-date.\n return;\n }\n if (!node.dirty && node.lastCleanEpoch === epoch) {\n // Even non-live consumers can skip polling if they previously found themselves to be clean at\n // the current epoch, since their dependencies could not possibly have changed (such a change\n // would've increased the epoch).\n return;\n }\n if (!node.producerMustRecompute(node) && !consumerPollProducersForChange(node)) {\n // None of our producers report a change since the last time they were read, so no\n // recomputation of our value is necessary, and we can consider ourselves clean.\n node.dirty = false;\n node.lastCleanEpoch = epoch;\n return;\n }\n node.producerRecomputeValue(node);\n // After recomputing the value, we're no longer dirty.\n node.dirty = false;\n node.lastCleanEpoch = epoch;\n}\n/**\n * Propagate a dirty notification to live consumers of this producer.\n */\nfunction producerNotifyConsumers(node) {\n if (node.liveConsumerNode === undefined) {\n return;\n }\n // Prevent signal reads when we're updating the graph\n const prev = inNotificationPhase;\n inNotificationPhase = true;\n try {\n for (const consumer of node.liveConsumerNode) {\n if (!consumer.dirty) {\n consumerMarkDirty(consumer);\n }\n }\n } finally {\n inNotificationPhase = prev;\n }\n}\n/**\n * Whether this `ReactiveNode` in its producer capacity is currently allowed to initiate updates,\n * based on the current consumer context.\n */\nfunction producerUpdatesAllowed() {\n return activeConsumer?.consumerAllowSignalWrites !== false;\n}\nfunction consumerMarkDirty(node) {\n node.dirty = true;\n producerNotifyConsumers(node);\n node.consumerMarkedDirty?.(node);\n}\n/**\n * Prepare this consumer to run a computation in its reactive context.\n *\n * Must be called by subclasses which represent reactive computations, before those computations\n * begin.\n */\nfunction consumerBeforeComputation(node) {\n node && (node.nextProducerIndex = 0);\n return setActiveConsumer(node);\n}\n/**\n * Finalize this consumer's state after a reactive computation has run.\n *\n * Must be called by subclasses which represent reactive computations, after those computations\n * have finished.\n */\nfunction consumerAfterComputation(node, prevConsumer) {\n setActiveConsumer(prevConsumer);\n if (!node || node.producerNode === undefined || node.producerIndexOfThis === undefined || node.producerLastReadVersion === undefined) {\n return;\n }\n if (consumerIsLive(node)) {\n // For live consumers, we need to remove the producer -> consumer edge for any stale producers\n // which weren't dependencies after the recomputation.\n for (let i = node.nextProducerIndex; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Truncate the producer tracking arrays.\n // Perf note: this is essentially truncating the length to `node.nextProducerIndex`, but\n // benchmarking has shown that individual pop operations are faster.\n while (node.producerNode.length > node.nextProducerIndex) {\n node.producerNode.pop();\n node.producerLastReadVersion.pop();\n node.producerIndexOfThis.pop();\n }\n}\n/**\n * Determine whether this consumer has any dependencies which have changed since the last time\n * they were read.\n */\nfunction consumerPollProducersForChange(node) {\n assertConsumerNode(node);\n // Poll producers for change.\n for (let i = 0; i < node.producerNode.length; i++) {\n const producer = node.producerNode[i];\n const seenVersion = node.producerLastReadVersion[i];\n // First check the versions. A mismatch means that the producer's value is known to have\n // changed since the last time we read it.\n if (seenVersion !== producer.version) {\n return true;\n }\n // The producer's version is the same as the last time we read it, but it might itself be\n // stale. Force the producer to recompute its version (calculating a new value if necessary).\n producerUpdateValueVersion(producer);\n // Now when we do this check, `producer.version` is guaranteed to be up to date, so if the\n // versions still match then it has not changed since the last time we read it.\n if (seenVersion !== producer.version) {\n return true;\n }\n }\n return false;\n}\n/**\n * Disconnect this consumer from the graph.\n */\nfunction consumerDestroy(node) {\n assertConsumerNode(node);\n if (consumerIsLive(node)) {\n // Drop all connections from the graph to this node.\n for (let i = 0; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Truncate all the arrays to drop all connection from this node to the graph.\n node.producerNode.length = node.producerLastReadVersion.length = node.producerIndexOfThis.length = 0;\n if (node.liveConsumerNode) {\n node.liveConsumerNode.length = node.liveConsumerIndexOfThis.length = 0;\n }\n}\n/**\n * Add `consumer` as a live consumer of this node.\n *\n * Note that this operation is potentially transitive. If this node becomes live, then it becomes\n * a live consumer of all of its current producers.\n */\nfunction producerAddLiveConsumer(node, consumer, indexOfThis) {\n assertProducerNode(node);\n if (node.liveConsumerNode.length === 0 && isConsumerNode(node)) {\n // When going from 0 to 1 live consumers, we become a live consumer to our producers.\n for (let i = 0; i < node.producerNode.length; i++) {\n node.producerIndexOfThis[i] = producerAddLiveConsumer(node.producerNode[i], node, i);\n }\n }\n node.liveConsumerIndexOfThis.push(indexOfThis);\n return node.liveConsumerNode.push(consumer) - 1;\n}\n/**\n * Remove the live consumer at `idx`.\n */\nfunction producerRemoveLiveConsumerAtIndex(node, idx) {\n assertProducerNode(node);\n if (typeof ngDevMode !== 'undefined' && ngDevMode && idx >= node.liveConsumerNode.length) {\n throw new Error(`Assertion error: active consumer index ${idx} is out of bounds of ${node.liveConsumerNode.length} consumers)`);\n }\n if (node.liveConsumerNode.length === 1 && isConsumerNode(node)) {\n // When removing the last live consumer, we will no longer be live. We need to remove\n // ourselves from our producers' tracking (which may cause consumer-producers to lose\n // liveness as well).\n for (let i = 0; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Move the last value of `liveConsumers` into `idx`. Note that if there's only a single\n // live consumer, this is a no-op.\n const lastIdx = node.liveConsumerNode.length - 1;\n node.liveConsumerNode[idx] = node.liveConsumerNode[lastIdx];\n node.liveConsumerIndexOfThis[idx] = node.liveConsumerIndexOfThis[lastIdx];\n // Truncate the array.\n node.liveConsumerNode.length--;\n node.liveConsumerIndexOfThis.length--;\n // If the index is still valid, then we need to fix the index pointer from the producer to this\n // consumer, and update it from `lastIdx` to `idx` (accounting for the move above).\n if (idx < node.liveConsumerNode.length) {\n const idxProducer = node.liveConsumerIndexOfThis[idx];\n const consumer = node.liveConsumerNode[idx];\n assertConsumerNode(consumer);\n consumer.producerIndexOfThis[idxProducer] = idx;\n }\n}\nfunction consumerIsLive(node) {\n return node.consumerIsAlwaysLive || (node?.liveConsumerNode?.length ?? 0) > 0;\n}\nfunction assertConsumerNode(node) {\n node.producerNode ??= [];\n node.producerIndexOfThis ??= [];\n node.producerLastReadVersion ??= [];\n}\nfunction assertProducerNode(node) {\n node.liveConsumerNode ??= [];\n node.liveConsumerIndexOfThis ??= [];\n}\nfunction isConsumerNode(node) {\n return node.producerNode !== undefined;\n}\n\n/**\n * Create a computed signal which derives a reactive value from an expression.\n */\nfunction createComputed(computation) {\n const node = Object.create(COMPUTED_NODE);\n node.computation = computation;\n const computed = () => {\n // Check if the value needs updating before returning it.\n producerUpdateValueVersion(node);\n // Record that someone looked at this signal.\n producerAccessed(node);\n if (node.value === ERRORED) {\n throw node.error;\n }\n return node.value;\n };\n computed[SIGNAL] = node;\n return computed;\n}\n/**\n * A dedicated symbol used before a computed value has been calculated for the first time.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst UNSET = /* @__PURE__ */Symbol('UNSET');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * is in progress. Used to detect cycles in computation chains.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst COMPUTING = /* @__PURE__ */Symbol('COMPUTING');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * failed. The thrown error is cached until the computation gets dirty again.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst ERRORED = /* @__PURE__ */Symbol('ERRORED');\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst COMPUTED_NODE = /* @__PURE__ */(() => {\n return {\n ...REACTIVE_NODE,\n value: UNSET,\n dirty: true,\n error: null,\n equal: defaultEquals,\n producerMustRecompute(node) {\n // Force a recomputation if there's no current value, or if the current value is in the\n // process of being calculated (which should throw an error).\n return node.value === UNSET || node.value === COMPUTING;\n },\n producerRecomputeValue(node) {\n if (node.value === COMPUTING) {\n // Our computation somehow led to a cyclic read of itself.\n throw new Error('Detected cycle in computations.');\n }\n const oldValue = node.value;\n node.value = COMPUTING;\n const prevConsumer = consumerBeforeComputation(node);\n let newValue;\n try {\n newValue = node.computation();\n } catch (err) {\n newValue = ERRORED;\n node.error = err;\n } finally {\n consumerAfterComputation(node, prevConsumer);\n }\n if (oldValue !== UNSET && oldValue !== ERRORED && newValue !== ERRORED && node.equal(oldValue, newValue)) {\n // No change to `valueVersion` - old and new values are\n // semantically equivalent.\n node.value = oldValue;\n return;\n }\n node.value = newValue;\n node.version++;\n }\n };\n})();\nfunction defaultThrowError() {\n throw new Error();\n}\nlet throwInvalidWriteToSignalErrorFn = defaultThrowError;\nfunction throwInvalidWriteToSignalError() {\n throwInvalidWriteToSignalErrorFn();\n}\nfunction setThrowInvalidWriteToSignalError(fn) {\n throwInvalidWriteToSignalErrorFn = fn;\n}\n\n/**\n * If set, called after `WritableSignal`s are updated.\n *\n * This hook can be used to achieve various effects, such as running effects synchronously as part\n * of setting a signal.\n */\nlet postSignalSetFn = null;\n/**\n * Create a `Signal` that can be set or updated directly.\n */\nfunction createSignal(initialValue) {\n const node = Object.create(SIGNAL_NODE);\n node.value = initialValue;\n const getter = () => {\n producerAccessed(node);\n return node.value;\n };\n getter[SIGNAL] = node;\n return getter;\n}\nfunction setPostSignalSetFn(fn) {\n const prev = postSignalSetFn;\n postSignalSetFn = fn;\n return prev;\n}\nfunction signalGetFn() {\n producerAccessed(this);\n return this.value;\n}\nfunction signalSetFn(node, newValue) {\n if (!producerUpdatesAllowed()) {\n throwInvalidWriteToSignalError();\n }\n if (!node.equal(node.value, newValue)) {\n node.value = newValue;\n signalValueChanged(node);\n }\n}\nfunction signalUpdateFn(node, updater) {\n if (!producerUpdatesAllowed()) {\n throwInvalidWriteToSignalError();\n }\n signalSetFn(node, updater(node.value));\n}\nfunction runPostSignalSetFn() {\n postSignalSetFn?.();\n}\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst SIGNAL_NODE = /* @__PURE__ */(() => {\n return {\n ...REACTIVE_NODE,\n equal: defaultEquals,\n value: undefined\n };\n})();\nfunction signalValueChanged(node) {\n node.version++;\n producerIncrementEpoch();\n producerNotifyConsumers(node);\n postSignalSetFn?.();\n}\nfunction createWatch(fn, schedule, allowSignalWrites) {\n const node = Object.create(WATCH_NODE);\n if (allowSignalWrites) {\n node.consumerAllowSignalWrites = true;\n }\n node.fn = fn;\n node.schedule = schedule;\n const registerOnCleanup = cleanupFn => {\n node.cleanupFn = cleanupFn;\n };\n function isWatchNodeDestroyed(node) {\n return node.fn === null && node.schedule === null;\n }\n function destroyWatchNode(node) {\n if (!isWatchNodeDestroyed(node)) {\n consumerDestroy(node); // disconnect watcher from the reactive graph\n node.cleanupFn();\n // nullify references to the integration functions to mark node as destroyed\n node.fn = null;\n node.schedule = null;\n node.cleanupFn = NOOP_CLEANUP_FN;\n }\n }\n const run = () => {\n if (node.fn === null) {\n // trying to run a destroyed watch is noop\n return;\n }\n if (isInNotificationPhase()) {\n throw new Error(`Schedulers cannot synchronously execute watches while scheduling.`);\n }\n node.dirty = false;\n if (node.hasRun && !consumerPollProducersForChange(node)) {\n return;\n }\n node.hasRun = true;\n const prevConsumer = consumerBeforeComputation(node);\n try {\n node.cleanupFn();\n node.cleanupFn = NOOP_CLEANUP_FN;\n node.fn(registerOnCleanup);\n } finally {\n consumerAfterComputation(node, prevConsumer);\n }\n };\n node.ref = {\n notify: () => consumerMarkDirty(node),\n run,\n cleanup: () => node.cleanupFn(),\n destroy: () => destroyWatchNode(node),\n [SIGNAL]: node\n };\n return node.ref;\n}\nconst NOOP_CLEANUP_FN = () => {};\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst WATCH_NODE = /* @__PURE__ */(() => {\n return {\n ...REACTIVE_NODE,\n consumerIsAlwaysLive: true,\n consumerAllowSignalWrites: false,\n consumerMarkedDirty: node => {\n if (node.schedule !== null) {\n node.schedule(node.ref);\n }\n },\n hasRun: false,\n cleanupFn: NOOP_CLEANUP_FN\n };\n})();\nfunction setAlternateWeakRefImpl(impl) {\n // TODO: remove this function\n}\nexport { REACTIVE_NODE, SIGNAL, SIGNAL_NODE, consumerAfterComputation, consumerBeforeComputation, consumerDestroy, consumerMarkDirty, consumerPollProducersForChange, createComputed, createSignal, createWatch, defaultEquals, getActiveConsumer, isInNotificationPhase, isReactive, producerAccessed, producerIncrementEpoch, producerNotifyConsumers, producerUpdateValueVersion, producerUpdatesAllowed, runPostSignalSetFn, setActiveConsumer, setAlternateWeakRefImpl, setPostSignalSetFn, setThrowInvalidWriteToSignalError, signalSetFn, signalUpdateFn };\n","export function isFunction(value) {\n return typeof value === 'function';\n}\n","export function createErrorClass(createImpl) {\n const _super = instance => {\n Error.call(instance);\n instance.stack = new Error().stack;\n };\n const ctorFunc = createImpl(_super);\n ctorFunc.prototype = Object.create(Error.prototype);\n ctorFunc.prototype.constructor = ctorFunc;\n return ctorFunc;\n}\n","import { createErrorClass } from './createErrorClass';\nexport const UnsubscriptionError = createErrorClass(_super => function UnsubscriptionErrorImpl(errors) {\n _super(this);\n this.message = errors ? `${errors.length} errors occurred during unsubscription:\n${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\\n ')}` : '';\n this.name = 'UnsubscriptionError';\n this.errors = errors;\n});\n","export function arrRemove(arr, item) {\n if (arr) {\n const index = arr.indexOf(item);\n 0 <= index && arr.splice(index, 1);\n }\n}\n","import { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nimport { arrRemove } from './util/arrRemove';\nexport class Subscription {\n constructor(initialTeardown) {\n this.initialTeardown = initialTeardown;\n this.closed = false;\n this._parentage = null;\n this._finalizers = null;\n }\n unsubscribe() {\n let errors;\n if (!this.closed) {\n this.closed = true;\n const {\n _parentage\n } = this;\n if (_parentage) {\n this._parentage = null;\n if (Array.isArray(_parentage)) {\n for (const parent of _parentage) {\n parent.remove(this);\n }\n } else {\n _parentage.remove(this);\n }\n }\n const {\n initialTeardown: initialFinalizer\n } = this;\n if (isFunction(initialFinalizer)) {\n try {\n initialFinalizer();\n } catch (e) {\n errors = e instanceof UnsubscriptionError ? e.errors : [e];\n }\n }\n const {\n _finalizers\n } = this;\n if (_finalizers) {\n this._finalizers = null;\n for (const finalizer of _finalizers) {\n try {\n execFinalizer(finalizer);\n } catch (err) {\n errors = errors !== null && errors !== void 0 ? errors : [];\n if (err instanceof UnsubscriptionError) {\n errors = [...errors, ...err.errors];\n } else {\n errors.push(err);\n }\n }\n }\n }\n if (errors) {\n throw new UnsubscriptionError(errors);\n }\n }\n }\n add(teardown) {\n var _a;\n if (teardown && teardown !== this) {\n if (this.closed) {\n execFinalizer(teardown);\n } else {\n if (teardown instanceof Subscription) {\n if (teardown.closed || teardown._hasParent(this)) {\n return;\n }\n teardown._addParent(this);\n }\n (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);\n }\n }\n }\n _hasParent(parent) {\n const {\n _parentage\n } = this;\n return _parentage === parent || Array.isArray(_parentage) && _parentage.includes(parent);\n }\n _addParent(parent) {\n const {\n _parentage\n } = this;\n this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;\n }\n _removeParent(parent) {\n const {\n _parentage\n } = this;\n if (_parentage === parent) {\n this._parentage = null;\n } else if (Array.isArray(_parentage)) {\n arrRemove(_parentage, parent);\n }\n }\n remove(teardown) {\n const {\n _finalizers\n } = this;\n _finalizers && arrRemove(_finalizers, teardown);\n if (teardown instanceof Subscription) {\n teardown._removeParent(this);\n }\n }\n}\nSubscription.EMPTY = (() => {\n const empty = new Subscription();\n empty.closed = true;\n return empty;\n})();\nexport const EMPTY_SUBSCRIPTION = Subscription.EMPTY;\nexport function isSubscription(value) {\n return value instanceof Subscription || value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe);\n}\nfunction execFinalizer(finalizer) {\n if (isFunction(finalizer)) {\n finalizer();\n } else {\n finalizer.unsubscribe();\n }\n}\n","export const config = {\n onUnhandledError: null,\n onStoppedNotification: null,\n Promise: undefined,\n useDeprecatedSynchronousErrorHandling: false,\n useDeprecatedNextContext: false\n};\n","export const timeoutProvider = {\n setTimeout(handler, timeout, ...args) {\n const {\n delegate\n } = timeoutProvider;\n if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {\n return delegate.setTimeout(handler, timeout, ...args);\n }\n return setTimeout(handler, timeout, ...args);\n },\n clearTimeout(handle) {\n const {\n delegate\n } = timeoutProvider;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);\n },\n delegate: undefined\n};\n","import { config } from '../config';\nimport { timeoutProvider } from '../scheduler/timeoutProvider';\nexport function reportUnhandledError(err) {\n timeoutProvider.setTimeout(() => {\n const {\n onUnhandledError\n } = config;\n if (onUnhandledError) {\n onUnhandledError(err);\n } else {\n throw err;\n }\n });\n}\n","export function noop() {}\n","export const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined))();\nexport function errorNotification(error) {\n return createNotification('E', undefined, error);\n}\nexport function nextNotification(value) {\n return createNotification('N', value, undefined);\n}\nexport function createNotification(kind, value, error) {\n return {\n kind,\n value,\n error\n };\n}\n","import { config } from '../config';\nlet context = null;\nexport function errorContext(cb) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n const isRoot = !context;\n if (isRoot) {\n context = {\n errorThrown: false,\n error: null\n };\n }\n cb();\n if (isRoot) {\n const {\n errorThrown,\n error\n } = context;\n context = null;\n if (errorThrown) {\n throw error;\n }\n }\n } else {\n cb();\n }\n}\nexport function captureError(err) {\n if (config.useDeprecatedSynchronousErrorHandling && context) {\n context.errorThrown = true;\n context.error = err;\n }\n}\n","import { isFunction } from './util/isFunction';\nimport { isSubscription, Subscription } from './Subscription';\nimport { config } from './config';\nimport { reportUnhandledError } from './util/reportUnhandledError';\nimport { noop } from './util/noop';\nimport { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories';\nimport { timeoutProvider } from './scheduler/timeoutProvider';\nimport { captureError } from './util/errorContext';\nexport class Subscriber extends Subscription {\n constructor(destination) {\n super();\n this.isStopped = false;\n if (destination) {\n this.destination = destination;\n if (isSubscription(destination)) {\n destination.add(this);\n }\n } else {\n this.destination = EMPTY_OBSERVER;\n }\n }\n static create(next, error, complete) {\n return new SafeSubscriber(next, error, complete);\n }\n next(value) {\n if (this.isStopped) {\n handleStoppedNotification(nextNotification(value), this);\n } else {\n this._next(value);\n }\n }\n error(err) {\n if (this.isStopped) {\n handleStoppedNotification(errorNotification(err), this);\n } else {\n this.isStopped = true;\n this._error(err);\n }\n }\n complete() {\n if (this.isStopped) {\n handleStoppedNotification(COMPLETE_NOTIFICATION, this);\n } else {\n this.isStopped = true;\n this._complete();\n }\n }\n unsubscribe() {\n if (!this.closed) {\n this.isStopped = true;\n super.unsubscribe();\n this.destination = null;\n }\n }\n _next(value) {\n this.destination.next(value);\n }\n _error(err) {\n try {\n this.destination.error(err);\n } finally {\n this.unsubscribe();\n }\n }\n _complete() {\n try {\n this.destination.complete();\n } finally {\n this.unsubscribe();\n }\n }\n}\nconst _bind = Function.prototype.bind;\nfunction bind(fn, thisArg) {\n return _bind.call(fn, thisArg);\n}\nclass ConsumerObserver {\n constructor(partialObserver) {\n this.partialObserver = partialObserver;\n }\n next(value) {\n const {\n partialObserver\n } = this;\n if (partialObserver.next) {\n try {\n partialObserver.next(value);\n } catch (error) {\n handleUnhandledError(error);\n }\n }\n }\n error(err) {\n const {\n partialObserver\n } = this;\n if (partialObserver.error) {\n try {\n partialObserver.error(err);\n } catch (error) {\n handleUnhandledError(error);\n }\n } else {\n handleUnhandledError(err);\n }\n }\n complete() {\n const {\n partialObserver\n } = this;\n if (partialObserver.complete) {\n try {\n partialObserver.complete();\n } catch (error) {\n handleUnhandledError(error);\n }\n }\n }\n}\nexport class SafeSubscriber extends Subscriber {\n constructor(observerOrNext, error, complete) {\n super();\n let partialObserver;\n if (isFunction(observerOrNext) || !observerOrNext) {\n partialObserver = {\n next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,\n error: error !== null && error !== void 0 ? error : undefined,\n complete: complete !== null && complete !== void 0 ? complete : undefined\n };\n } else {\n let context;\n if (this && config.useDeprecatedNextContext) {\n context = Object.create(observerOrNext);\n context.unsubscribe = () => this.unsubscribe();\n partialObserver = {\n next: observerOrNext.next && bind(observerOrNext.next, context),\n error: observerOrNext.error && bind(observerOrNext.error, context),\n complete: observerOrNext.complete && bind(observerOrNext.complete, context)\n };\n } else {\n partialObserver = observerOrNext;\n }\n }\n this.destination = new ConsumerObserver(partialObserver);\n }\n}\nfunction handleUnhandledError(error) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n captureError(error);\n } else {\n reportUnhandledError(error);\n }\n}\nfunction defaultErrorHandler(err) {\n throw err;\n}\nfunction handleStoppedNotification(notification, subscriber) {\n const {\n onStoppedNotification\n } = config;\n onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));\n}\nexport const EMPTY_OBSERVER = {\n closed: true,\n next: noop,\n error: defaultErrorHandler,\n complete: noop\n};\n","export const observable = (() => typeof Symbol === 'function' && Symbol.observable || '@@observable')();\n","export function identity(x) {\n return x;\n}\n","import { identity } from './identity';\nexport function pipe(...fns) {\n return pipeFromArray(fns);\n}\nexport function pipeFromArray(fns) {\n if (fns.length === 0) {\n return identity;\n }\n if (fns.length === 1) {\n return fns[0];\n }\n return function piped(input) {\n return fns.reduce((prev, fn) => fn(prev), input);\n };\n}\n","import { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription } from './Subscription';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\nexport let Observable = /*#__PURE__*/(() => {\n class Observable {\n constructor(subscribe) {\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n lift(operator) {\n const observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n }\n subscribe(observerOrNext, error, complete) {\n const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n errorContext(() => {\n const {\n operator,\n source\n } = this;\n subscriber.add(operator ? operator.call(subscriber, source) : source ? this._subscribe(subscriber) : this._trySubscribe(subscriber));\n });\n return subscriber;\n }\n _trySubscribe(sink) {\n try {\n return this._subscribe(sink);\n } catch (err) {\n sink.error(err);\n }\n }\n forEach(next, promiseCtor) {\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor((resolve, reject) => {\n const subscriber = new SafeSubscriber({\n next: value => {\n try {\n next(value);\n } catch (err) {\n reject(err);\n subscriber.unsubscribe();\n }\n },\n error: reject,\n complete: resolve\n });\n this.subscribe(subscriber);\n });\n }\n _subscribe(subscriber) {\n var _a;\n return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);\n }\n [Symbol_observable]() {\n return this;\n }\n pipe(...operations) {\n return pipeFromArray(operations)(this);\n }\n toPromise(promiseCtor) {\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor((resolve, reject) => {\n let value;\n this.subscribe(x => value = x, err => reject(err), () => resolve(value));\n });\n }\n }\n Observable.create = subscribe => {\n return new Observable(subscribe);\n };\n return Observable;\n})();\nfunction getPromiseCtor(promiseCtor) {\n var _a;\n return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;\n}\nfunction isObserver(value) {\n return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\nfunction isSubscriber(value) {\n return value && value instanceof Subscriber || isObserver(value) && isSubscription(value);\n}\n","import { isFunction } from './isFunction';\nexport function hasLift(source) {\n return isFunction(source === null || source === void 0 ? void 0 : source.lift);\n}\nexport function operate(init) {\n return source => {\n if (hasLift(source)) {\n return source.lift(function (liftedSource) {\n try {\n return init(liftedSource, this);\n } catch (err) {\n this.error(err);\n }\n });\n }\n throw new TypeError('Unable to lift unknown Observable type');\n };\n}\n","import { Subscriber } from '../Subscriber';\nexport function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {\n return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);\n}\nexport class OperatorSubscriber extends Subscriber {\n constructor(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {\n super(destination);\n this.onFinalize = onFinalize;\n this.shouldUnsubscribe = shouldUnsubscribe;\n this._next = onNext ? function (value) {\n try {\n onNext(value);\n } catch (err) {\n destination.error(err);\n }\n } : super._next;\n this._error = onError ? function (err) {\n try {\n onError(err);\n } catch (err) {\n destination.error(err);\n } finally {\n this.unsubscribe();\n }\n } : super._error;\n this._complete = onComplete ? function () {\n try {\n onComplete();\n } catch (err) {\n destination.error(err);\n } finally {\n this.unsubscribe();\n }\n } : super._complete;\n }\n unsubscribe() {\n var _a;\n if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {\n const {\n closed\n } = this;\n super.unsubscribe();\n !closed && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));\n }\n }\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function refCount() {\n return operate((source, subscriber) => {\n let connection = null;\n source._refCount++;\n const refCounter = createOperatorSubscriber(subscriber, undefined, undefined, undefined, () => {\n if (!source || source._refCount <= 0 || 0 < --source._refCount) {\n connection = null;\n return;\n }\n const sharedConnection = source._connection;\n const conn = connection;\n connection = null;\n if (sharedConnection && (!conn || sharedConnection === conn)) {\n sharedConnection.unsubscribe();\n }\n subscriber.unsubscribe();\n });\n source.subscribe(refCounter);\n if (!refCounter.closed) {\n connection = source.connect();\n }\n });\n}\n","import { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { refCount as higherOrderRefCount } from '../operators/refCount';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { hasLift } from '../util/lift';\nexport class ConnectableObservable extends Observable {\n constructor(source, subjectFactory) {\n super();\n this.source = source;\n this.subjectFactory = subjectFactory;\n this._subject = null;\n this._refCount = 0;\n this._connection = null;\n if (hasLift(source)) {\n this.lift = source.lift;\n }\n }\n _subscribe(subscriber) {\n return this.getSubject().subscribe(subscriber);\n }\n getSubject() {\n const subject = this._subject;\n if (!subject || subject.isStopped) {\n this._subject = this.subjectFactory();\n }\n return this._subject;\n }\n _teardown() {\n this._refCount = 0;\n const {\n _connection\n } = this;\n this._subject = this._connection = null;\n _connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe();\n }\n connect() {\n let connection = this._connection;\n if (!connection) {\n connection = this._connection = new Subscription();\n const subject = this.getSubject();\n connection.add(this.source.subscribe(createOperatorSubscriber(subject, undefined, () => {\n this._teardown();\n subject.complete();\n }, err => {\n this._teardown();\n subject.error(err);\n }, () => this._teardown())));\n if (connection.closed) {\n this._connection = null;\n connection = Subscription.EMPTY;\n }\n }\n return connection;\n }\n refCount() {\n return higherOrderRefCount()(this);\n }\n}\n","import { createErrorClass } from './createErrorClass';\nexport const ObjectUnsubscribedError = createErrorClass(_super => function ObjectUnsubscribedErrorImpl() {\n _super(this);\n this.name = 'ObjectUnsubscribedError';\n this.message = 'object unsubscribed';\n});\n","import { Observable } from './Observable';\nimport { Subscription, EMPTY_SUBSCRIPTION } from './Subscription';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { arrRemove } from './util/arrRemove';\nimport { errorContext } from './util/errorContext';\nexport let Subject = /*#__PURE__*/(() => {\n class Subject extends Observable {\n constructor() {\n super();\n this.closed = false;\n this.currentObservers = null;\n this.observers = [];\n this.isStopped = false;\n this.hasError = false;\n this.thrownError = null;\n }\n lift(operator) {\n const subject = new AnonymousSubject(this, this);\n subject.operator = operator;\n return subject;\n }\n _throwIfClosed() {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n }\n next(value) {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n if (!this.currentObservers) {\n this.currentObservers = Array.from(this.observers);\n }\n for (const observer of this.currentObservers) {\n observer.next(value);\n }\n }\n });\n }\n error(err) {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n this.hasError = this.isStopped = true;\n this.thrownError = err;\n const {\n observers\n } = this;\n while (observers.length) {\n observers.shift().error(err);\n }\n }\n });\n }\n complete() {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n this.isStopped = true;\n const {\n observers\n } = this;\n while (observers.length) {\n observers.shift().complete();\n }\n }\n });\n }\n unsubscribe() {\n this.isStopped = this.closed = true;\n this.observers = this.currentObservers = null;\n }\n get observed() {\n var _a;\n return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;\n }\n _trySubscribe(subscriber) {\n this._throwIfClosed();\n return super._trySubscribe(subscriber);\n }\n _subscribe(subscriber) {\n this._throwIfClosed();\n this._checkFinalizedStatuses(subscriber);\n return this._innerSubscribe(subscriber);\n }\n _innerSubscribe(subscriber) {\n const {\n hasError,\n isStopped,\n observers\n } = this;\n if (hasError || isStopped) {\n return EMPTY_SUBSCRIPTION;\n }\n this.currentObservers = null;\n observers.push(subscriber);\n return new Subscription(() => {\n this.currentObservers = null;\n arrRemove(observers, subscriber);\n });\n }\n _checkFinalizedStatuses(subscriber) {\n const {\n hasError,\n thrownError,\n isStopped\n } = this;\n if (hasError) {\n subscriber.error(thrownError);\n } else if (isStopped) {\n subscriber.complete();\n }\n }\n asObservable() {\n const observable = new Observable();\n observable.source = this;\n return observable;\n }\n }\n Subject.create = (destination, source) => {\n return new AnonymousSubject(destination, source);\n };\n return Subject;\n})();\nexport class AnonymousSubject extends Subject {\n constructor(destination, source) {\n super();\n this.destination = destination;\n this.source = source;\n }\n next(value) {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);\n }\n error(err) {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);\n }\n complete() {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);\n }\n _subscribe(subscriber) {\n var _a, _b;\n return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;\n }\n}\n","import { Subject } from './Subject';\nexport class BehaviorSubject extends Subject {\n constructor(_value) {\n super();\n this._value = _value;\n }\n get value() {\n return this.getValue();\n }\n _subscribe(subscriber) {\n const subscription = super._subscribe(subscriber);\n !subscription.closed && subscriber.next(this._value);\n return subscription;\n }\n getValue() {\n const {\n hasError,\n thrownError,\n _value\n } = this;\n if (hasError) {\n throw thrownError;\n }\n this._throwIfClosed();\n return _value;\n }\n next(value) {\n super.next(this._value = value);\n }\n}\n","export const dateTimestampProvider = {\n now() {\n return (dateTimestampProvider.delegate || Date).now();\n },\n delegate: undefined\n};\n","import { Subject } from './Subject';\nimport { dateTimestampProvider } from './scheduler/dateTimestampProvider';\nexport class ReplaySubject extends Subject {\n constructor(_bufferSize = Infinity, _windowTime = Infinity, _timestampProvider = dateTimestampProvider) {\n super();\n this._bufferSize = _bufferSize;\n this._windowTime = _windowTime;\n this._timestampProvider = _timestampProvider;\n this._buffer = [];\n this._infiniteTimeWindow = true;\n this._infiniteTimeWindow = _windowTime === Infinity;\n this._bufferSize = Math.max(1, _bufferSize);\n this._windowTime = Math.max(1, _windowTime);\n }\n next(value) {\n const {\n isStopped,\n _buffer,\n _infiniteTimeWindow,\n _timestampProvider,\n _windowTime\n } = this;\n if (!isStopped) {\n _buffer.push(value);\n !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);\n }\n this._trimBuffer();\n super.next(value);\n }\n _subscribe(subscriber) {\n this._throwIfClosed();\n this._trimBuffer();\n const subscription = this._innerSubscribe(subscriber);\n const {\n _infiniteTimeWindow,\n _buffer\n } = this;\n const copy = _buffer.slice();\n for (let i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {\n subscriber.next(copy[i]);\n }\n this._checkFinalizedStatuses(subscriber);\n return subscription;\n }\n _trimBuffer() {\n const {\n _bufferSize,\n _timestampProvider,\n _buffer,\n _infiniteTimeWindow\n } = this;\n const adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;\n _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);\n if (!_infiniteTimeWindow) {\n const now = _timestampProvider.now();\n let last = 0;\n for (let i = 1; i < _buffer.length && _buffer[i] <= now; i += 2) {\n last = i;\n }\n last && _buffer.splice(0, last + 1);\n }\n }\n}\n","import { Subscription } from '../Subscription';\nexport class Action extends Subscription {\n constructor(scheduler, work) {\n super();\n }\n schedule(state, delay = 0) {\n return this;\n }\n}\n","export const intervalProvider = {\n setInterval(handler, timeout, ...args) {\n const {\n delegate\n } = intervalProvider;\n if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {\n return delegate.setInterval(handler, timeout, ...args);\n }\n return setInterval(handler, timeout, ...args);\n },\n clearInterval(handle) {\n const {\n delegate\n } = intervalProvider;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);\n },\n delegate: undefined\n};\n","import { Action } from './Action';\nimport { intervalProvider } from './intervalProvider';\nimport { arrRemove } from '../util/arrRemove';\nexport class AsyncAction extends Action {\n constructor(scheduler, work) {\n super(scheduler, work);\n this.scheduler = scheduler;\n this.work = work;\n this.pending = false;\n }\n schedule(state, delay = 0) {\n var _a;\n if (this.closed) {\n return this;\n }\n this.state = state;\n const id = this.id;\n const scheduler = this.scheduler;\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, delay);\n }\n this.pending = true;\n this.delay = delay;\n this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);\n return this;\n }\n requestAsyncId(scheduler, _id, delay = 0) {\n return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);\n }\n recycleAsyncId(_scheduler, id, delay = 0) {\n if (delay != null && this.delay === delay && this.pending === false) {\n return id;\n }\n if (id != null) {\n intervalProvider.clearInterval(id);\n }\n return undefined;\n }\n execute(state, delay) {\n if (this.closed) {\n return new Error('executing a cancelled action');\n }\n this.pending = false;\n const error = this._execute(state, delay);\n if (error) {\n return error;\n } else if (this.pending === false && this.id != null) {\n this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n }\n }\n _execute(state, _delay) {\n let errored = false;\n let errorValue;\n try {\n this.work(state);\n } catch (e) {\n errored = true;\n errorValue = e ? e : new Error('Scheduled action threw falsy error');\n }\n if (errored) {\n this.unsubscribe();\n return errorValue;\n }\n }\n unsubscribe() {\n if (!this.closed) {\n const {\n id,\n scheduler\n } = this;\n const {\n actions\n } = scheduler;\n this.work = this.state = this.scheduler = null;\n this.pending = false;\n arrRemove(actions, this);\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, null);\n }\n this.delay = null;\n super.unsubscribe();\n }\n }\n}\n","import { dateTimestampProvider } from './scheduler/dateTimestampProvider';\nexport class Scheduler {\n constructor(schedulerActionCtor, now = Scheduler.now) {\n this.schedulerActionCtor = schedulerActionCtor;\n this.now = now;\n }\n schedule(work, delay = 0, state) {\n return new this.schedulerActionCtor(this, work).schedule(state, delay);\n }\n}\nScheduler.now = dateTimestampProvider.now;\n","import { Scheduler } from '../Scheduler';\nexport class AsyncScheduler extends Scheduler {\n constructor(SchedulerAction, now = Scheduler.now) {\n super(SchedulerAction, now);\n this.actions = [];\n this._active = false;\n }\n flush(action) {\n const {\n actions\n } = this;\n if (this._active) {\n actions.push(action);\n return;\n }\n let error;\n this._active = true;\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (action = actions.shift());\n this._active = false;\n if (error) {\n while (action = actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n }\n}\n","import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\nexport const asyncScheduler = new AsyncScheduler(AsyncAction);\nexport const async = asyncScheduler;\n","import { Observable } from '../Observable';\nexport const EMPTY = new Observable(subscriber => subscriber.complete());\nexport function empty(scheduler) {\n return scheduler ? emptyScheduled(scheduler) : EMPTY;\n}\nfunction emptyScheduled(scheduler) {\n return new Observable(subscriber => scheduler.schedule(() => subscriber.complete()));\n}\n","import { isFunction } from './isFunction';\nexport function isScheduler(value) {\n return value && isFunction(value.schedule);\n}\n","import { isFunction } from './isFunction';\nimport { isScheduler } from './isScheduler';\nfunction last(arr) {\n return arr[arr.length - 1];\n}\nexport function popResultSelector(args) {\n return isFunction(last(args)) ? args.pop() : undefined;\n}\nexport function popScheduler(args) {\n return isScheduler(last(args)) ? args.pop() : undefined;\n}\nexport function popNumber(args, defaultValue) {\n return typeof last(args) === 'number' ? args.pop() : defaultValue;\n}\n","/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n};\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\nexport var __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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}\nexport function __param(paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n}\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) {\n if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\");\n return f;\n }\n var kind = contextIn.kind,\n key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _,\n done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) {\n if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\");\n extraInitializers.push(accept(f || null));\n };\n var result = (0, decorators[i])(kind === \"accessor\" ? {\n get: descriptor.get,\n set: descriptor.set\n } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n } else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n}\n;\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n}\n;\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n}\n;\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", {\n configurable: true,\n value: prefix ? \"\".concat(prefix, \" \", name) : name\n });\n}\n;\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nexport function __generator(thisArg, body) {\n var _ = {\n label: 0,\n sent: function () {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n },\n f,\n y,\n t,\n g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n return this;\n }), g;\n function verb(n) {\n return function (v) {\n return step([n, v]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nexport var __createBinding = Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = {\n enumerable: true,\n get: function () {\n return m[k];\n }\n };\n }\n Object.defineProperty(o, k2, desc);\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n};\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];\n return r;\n}\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []),\n i,\n q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () {\n return this;\n }, i;\n function awaitReturn(f) {\n return function (v) {\n return Promise.resolve(v).then(f, reject);\n };\n }\n function verb(n, f) {\n if (g[n]) {\n i[n] = function (v) {\n return new Promise(function (a, b) {\n q.push([n, v, a, b]) > 1 || resume(n, v);\n });\n };\n if (f) i[n] = f(i[n]);\n }\n }\n function resume(n, v) {\n try {\n step(g[n](v));\n } catch (e) {\n settle(q[0][3], e);\n }\n }\n function step(r) {\n r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);\n }\n function fulfill(value) {\n resume(\"next\", value);\n }\n function reject(value) {\n resume(\"throw\", value);\n }\n function settle(f, v) {\n if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);\n }\n}\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) {\n throw e;\n }), verb(\"return\"), i[Symbol.iterator] = function () {\n return this;\n }, i;\n function verb(n, f) {\n i[n] = o[n] ? function (v) {\n return (p = !p) ? {\n value: __await(o[n](v)),\n done: false\n } : f ? f(v) : v;\n } : f;\n }\n}\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator],\n i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () {\n return this;\n }, i);\n function verb(n) {\n i[n] = o[n] && function (v) {\n return new Promise(function (resolve, reject) {\n v = o[n](v), settle(resolve, reject, v.done, v.value);\n });\n };\n }\n function settle(resolve, reject, d, v) {\n Promise.resolve(v).then(function (v) {\n resolve({\n value: v,\n done: d\n });\n }, reject);\n }\n}\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) {\n Object.defineProperty(cooked, \"raw\", {\n value: raw\n });\n } else {\n cooked.raw = raw;\n }\n return cooked;\n}\n;\nvar __setModuleDefault = Object.create ? function (o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function (o, v) {\n o[\"default\"] = v;\n};\nvar ownKeys = function (o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\nexport function __importDefault(mod) {\n return mod && mod.__esModule ? mod : {\n default: mod\n };\n}\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n}\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || typeof receiver !== \"object\" && typeof receiver !== \"function\") throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function () {\n try {\n inner.call(this);\n } catch (e) {\n return Promise.reject(e);\n }\n };\n env.stack.push({\n value: value,\n dispose: dispose,\n async: async\n });\n } else if (async) {\n env.stack.push({\n async: true\n });\n }\n return value;\n}\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r,\n s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function (e) {\n fail(e);\n return next();\n });\n } else s |= 1;\n } catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : d + ext + \".\" + cm.toLowerCase() + \"js\";\n });\n }\n return path;\n}\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension\n};","export const isArrayLike = x => x && typeof x.length === 'number' && typeof x !== 'function';\n","import { isFunction } from \"./isFunction\";\nexport function isPromise(value) {\n return isFunction(value === null || value === void 0 ? void 0 : value.then);\n}\n","import { observable as Symbol_observable } from '../symbol/observable';\nimport { isFunction } from './isFunction';\nexport function isInteropObservable(input) {\n return isFunction(input[Symbol_observable]);\n}\n","import { isFunction } from './isFunction';\nexport function isAsyncIterable(obj) {\n return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);\n}\n","export function createInvalidObservableTypeError(input) {\n return new TypeError(`You provided ${input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`);\n}\n","export function getSymbolIterator() {\n if (typeof Symbol !== 'function' || !Symbol.iterator) {\n return '@@iterator';\n }\n return Symbol.iterator;\n}\nexport const iterator = getSymbolIterator();\n","import { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from './isFunction';\nexport function isIterable(input) {\n return isFunction(input === null || input === void 0 ? void 0 : input[Symbol_iterator]);\n}\n","import { __asyncGenerator, __await } from \"tslib\";\nimport { isFunction } from './isFunction';\nexport function readableStreamLikeToAsyncGenerator(readableStream) {\n return __asyncGenerator(this, arguments, function* readableStreamLikeToAsyncGenerator_1() {\n const reader = readableStream.getReader();\n try {\n while (true) {\n const {\n value,\n done\n } = yield __await(reader.read());\n if (done) {\n return yield __await(void 0);\n }\n yield yield __await(value);\n }\n } finally {\n reader.releaseLock();\n }\n });\n}\nexport function isReadableStreamLike(obj) {\n return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);\n}\n","import { __asyncValues, __awaiter } from \"tslib\";\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isPromise } from '../util/isPromise';\nimport { Observable } from '../Observable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isIterable } from '../util/isIterable';\nimport { isReadableStreamLike, readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nimport { isFunction } from '../util/isFunction';\nimport { reportUnhandledError } from '../util/reportUnhandledError';\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport function innerFrom(input) {\n if (input instanceof Observable) {\n return input;\n }\n if (input != null) {\n if (isInteropObservable(input)) {\n return fromInteropObservable(input);\n }\n if (isArrayLike(input)) {\n return fromArrayLike(input);\n }\n if (isPromise(input)) {\n return fromPromise(input);\n }\n if (isAsyncIterable(input)) {\n return fromAsyncIterable(input);\n }\n if (isIterable(input)) {\n return fromIterable(input);\n }\n if (isReadableStreamLike(input)) {\n return fromReadableStreamLike(input);\n }\n }\n throw createInvalidObservableTypeError(input);\n}\nexport function fromInteropObservable(obj) {\n return new Observable(subscriber => {\n const obs = obj[Symbol_observable]();\n if (isFunction(obs.subscribe)) {\n return obs.subscribe(subscriber);\n }\n throw new TypeError('Provided object does not correctly implement Symbol.observable');\n });\n}\nexport function fromArrayLike(array) {\n return new Observable(subscriber => {\n for (let i = 0; i < array.length && !subscriber.closed; i++) {\n subscriber.next(array[i]);\n }\n subscriber.complete();\n });\n}\nexport function fromPromise(promise) {\n return new Observable(subscriber => {\n promise.then(value => {\n if (!subscriber.closed) {\n subscriber.next(value);\n subscriber.complete();\n }\n }, err => subscriber.error(err)).then(null, reportUnhandledError);\n });\n}\nexport function fromIterable(iterable) {\n return new Observable(subscriber => {\n for (const value of iterable) {\n subscriber.next(value);\n if (subscriber.closed) {\n return;\n }\n }\n subscriber.complete();\n });\n}\nexport function fromAsyncIterable(asyncIterable) {\n return new Observable(subscriber => {\n process(asyncIterable, subscriber).catch(err => subscriber.error(err));\n });\n}\nexport function fromReadableStreamLike(readableStream) {\n return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));\n}\nfunction process(asyncIterable, subscriber) {\n var asyncIterable_1, asyncIterable_1_1;\n var e_1, _a;\n return __awaiter(this, void 0, void 0, function* () {\n try {\n for (asyncIterable_1 = __asyncValues(asyncIterable); asyncIterable_1_1 = yield asyncIterable_1.next(), !asyncIterable_1_1.done;) {\n const value = asyncIterable_1_1.value;\n subscriber.next(value);\n if (subscriber.closed) {\n return;\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)) yield _a.call(asyncIterable_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n subscriber.complete();\n });\n}\n","export function executeSchedule(parentSubscription, scheduler, work, delay = 0, repeat = false) {\n const scheduleSubscription = scheduler.schedule(function () {\n work();\n if (repeat) {\n parentSubscription.add(this.schedule(null, delay));\n } else {\n this.unsubscribe();\n }\n }, delay);\n parentSubscription.add(scheduleSubscription);\n if (!repeat) {\n return scheduleSubscription;\n }\n}\n","import { executeSchedule } from '../util/executeSchedule';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function observeOn(scheduler, delay = 0) {\n return operate((source, subscriber) => {\n source.subscribe(createOperatorSubscriber(subscriber, value => executeSchedule(subscriber, scheduler, () => subscriber.next(value), delay), () => executeSchedule(subscriber, scheduler, () => subscriber.complete(), delay), err => executeSchedule(subscriber, scheduler, () => subscriber.error(err), delay)));\n });\n}\n","import { operate } from '../util/lift';\nexport function subscribeOn(scheduler, delay = 0) {\n return operate((source, subscriber) => {\n subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay));\n });\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nexport function scheduleObservable(input, scheduler) {\n return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nexport function schedulePromise(input, scheduler) {\n return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n","import { Observable } from '../Observable';\nexport function scheduleArray(input, scheduler) {\n return new Observable(subscriber => {\n let i = 0;\n return scheduler.schedule(function () {\n if (i === input.length) {\n subscriber.complete();\n } else {\n subscriber.next(input[i++]);\n if (!subscriber.closed) {\n this.schedule();\n }\n }\n });\n });\n}\n","import { Observable } from '../Observable';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from '../util/isFunction';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function scheduleIterable(input, scheduler) {\n return new Observable(subscriber => {\n let iterator;\n executeSchedule(subscriber, scheduler, () => {\n iterator = input[Symbol_iterator]();\n executeSchedule(subscriber, scheduler, () => {\n let value;\n let done;\n try {\n ({\n value,\n done\n } = iterator.next());\n } catch (err) {\n subscriber.error(err);\n return;\n }\n if (done) {\n subscriber.complete();\n } else {\n subscriber.next(value);\n }\n }, 0, true);\n });\n return () => isFunction(iterator === null || iterator === void 0 ? void 0 : iterator.return) && iterator.return();\n });\n}\n","import { Observable } from '../Observable';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function scheduleAsyncIterable(input, scheduler) {\n if (!input) {\n throw new Error('Iterable cannot be null');\n }\n return new Observable(subscriber => {\n executeSchedule(subscriber, scheduler, () => {\n const iterator = input[Symbol.asyncIterator]();\n executeSchedule(subscriber, scheduler, () => {\n iterator.next().then(result => {\n if (result.done) {\n subscriber.complete();\n } else {\n subscriber.next(result.value);\n }\n });\n }, 0, true);\n });\n });\n}\n","import { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nexport function scheduleReadableStreamLike(input, scheduler) {\n return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler);\n}\n","import { scheduleObservable } from './scheduleObservable';\nimport { schedulePromise } from './schedulePromise';\nimport { scheduleArray } from './scheduleArray';\nimport { scheduleIterable } from './scheduleIterable';\nimport { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isPromise } from '../util/isPromise';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isIterable } from '../util/isIterable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isReadableStreamLike } from '../util/isReadableStreamLike';\nimport { scheduleReadableStreamLike } from './scheduleReadableStreamLike';\nexport function scheduled(input, scheduler) {\n if (input != null) {\n if (isInteropObservable(input)) {\n return scheduleObservable(input, scheduler);\n }\n if (isArrayLike(input)) {\n return scheduleArray(input, scheduler);\n }\n if (isPromise(input)) {\n return schedulePromise(input, scheduler);\n }\n if (isAsyncIterable(input)) {\n return scheduleAsyncIterable(input, scheduler);\n }\n if (isIterable(input)) {\n return scheduleIterable(input, scheduler);\n }\n if (isReadableStreamLike(input)) {\n return scheduleReadableStreamLike(input, scheduler);\n }\n }\n throw createInvalidObservableTypeError(input);\n}\n","import { scheduled } from '../scheduled/scheduled';\nimport { innerFrom } from './innerFrom';\nexport function from(input, scheduler) {\n return scheduler ? scheduled(input, scheduler) : innerFrom(input);\n}\n","import { popScheduler } from '../util/args';\nimport { from } from './from';\nexport function of(...args) {\n const scheduler = popScheduler(args);\n return from(args, scheduler);\n}\n","import { Observable } from '../Observable';\nimport { isFunction } from '../util/isFunction';\nexport function throwError(errorOrErrorFactory, scheduler) {\n const errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : () => errorOrErrorFactory;\n const init = subscriber => subscriber.error(errorFactory());\n return new Observable(scheduler ? subscriber => scheduler.schedule(init, 0, subscriber) : init);\n}\n","import { Observable } from '../Observable';\nimport { isFunction } from './isFunction';\nexport function isObservable(obj) {\n return !!obj && (obj instanceof Observable || isFunction(obj.lift) && isFunction(obj.subscribe));\n}\n","import { createErrorClass } from './createErrorClass';\nexport const EmptyError = createErrorClass(_super => function EmptyErrorImpl() {\n _super(this);\n this.name = 'EmptyError';\n this.message = 'no elements in sequence';\n});\n","export function isValidDate(value) {\n return value instanceof Date && !isNaN(value);\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function map(project, thisArg) {\n return operate((source, subscriber) => {\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n subscriber.next(project.call(thisArg, value, index++));\n }));\n });\n}\n","import { map } from \"../operators/map\";\nconst {\n isArray\n} = Array;\nfunction callOrApply(fn, args) {\n return isArray(args) ? fn(...args) : fn(args);\n}\nexport function mapOneOrManyArgs(fn) {\n return map(args => callOrApply(fn, args));\n}\n","const {\n isArray\n} = Array;\nconst {\n getPrototypeOf,\n prototype: objectProto,\n keys: getKeys\n} = Object;\nexport function argsArgArrayOrObject(args) {\n if (args.length === 1) {\n const first = args[0];\n if (isArray(first)) {\n return {\n args: first,\n keys: null\n };\n }\n if (isPOJO(first)) {\n const keys = getKeys(first);\n return {\n args: keys.map(key => first[key]),\n keys\n };\n }\n }\n return {\n args: args,\n keys: null\n };\n}\nfunction isPOJO(obj) {\n return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto;\n}\n","export function createObject(keys, values) {\n return keys.reduce((result, key, i) => (result[key] = values[i], result), {});\n}\n","import { Observable } from '../Observable';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { from } from './from';\nimport { identity } from '../util/identity';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { popResultSelector, popScheduler } from '../util/args';\nimport { createObject } from '../util/createObject';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function combineLatest(...args) {\n const scheduler = popScheduler(args);\n const resultSelector = popResultSelector(args);\n const {\n args: observables,\n keys\n } = argsArgArrayOrObject(args);\n if (observables.length === 0) {\n return from([], scheduler);\n }\n const result = new Observable(combineLatestInit(observables, scheduler, keys ? values => createObject(keys, values) : identity));\n return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result;\n}\nexport function combineLatestInit(observables, scheduler, valueTransform = identity) {\n return subscriber => {\n maybeSchedule(scheduler, () => {\n const {\n length\n } = observables;\n const values = new Array(length);\n let active = length;\n let remainingFirstValues = length;\n for (let i = 0; i < length; i++) {\n maybeSchedule(scheduler, () => {\n const source = from(observables[i], scheduler);\n let hasFirstValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n values[i] = value;\n if (!hasFirstValue) {\n hasFirstValue = true;\n remainingFirstValues--;\n }\n if (!remainingFirstValues) {\n subscriber.next(valueTransform(values.slice()));\n }\n }, () => {\n if (! --active) {\n subscriber.complete();\n }\n }));\n }, subscriber);\n }\n }, subscriber);\n };\n}\nfunction maybeSchedule(scheduler, execute, subscription) {\n if (scheduler) {\n executeSchedule(subscription, scheduler, execute);\n } else {\n execute();\n }\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { executeSchedule } from '../util/executeSchedule';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {\n const buffer = [];\n let active = 0;\n let index = 0;\n let isComplete = false;\n const checkComplete = () => {\n if (isComplete && !buffer.length && !active) {\n subscriber.complete();\n }\n };\n const outerNext = value => active < concurrent ? doInnerSub(value) : buffer.push(value);\n const doInnerSub = value => {\n expand && subscriber.next(value);\n active++;\n let innerComplete = false;\n innerFrom(project(value, index++)).subscribe(createOperatorSubscriber(subscriber, innerValue => {\n onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue);\n if (expand) {\n outerNext(innerValue);\n } else {\n subscriber.next(innerValue);\n }\n }, () => {\n innerComplete = true;\n }, undefined, () => {\n if (innerComplete) {\n try {\n active--;\n while (buffer.length && active < concurrent) {\n const bufferedValue = buffer.shift();\n if (innerSubScheduler) {\n executeSchedule(subscriber, innerSubScheduler, () => doInnerSub(bufferedValue));\n } else {\n doInnerSub(bufferedValue);\n }\n }\n checkComplete();\n } catch (err) {\n subscriber.error(err);\n }\n }\n }));\n };\n source.subscribe(createOperatorSubscriber(subscriber, outerNext, () => {\n isComplete = true;\n checkComplete();\n }));\n return () => {\n additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer();\n };\n}\n","import { map } from './map';\nimport { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { mergeInternals } from './mergeInternals';\nimport { isFunction } from '../util/isFunction';\nexport function mergeMap(project, resultSelector, concurrent = Infinity) {\n if (isFunction(resultSelector)) {\n return mergeMap((a, i) => map((b, ii) => resultSelector(a, b, i, ii))(innerFrom(project(a, i))), concurrent);\n } else if (typeof resultSelector === 'number') {\n concurrent = resultSelector;\n }\n return operate((source, subscriber) => mergeInternals(source, subscriber, project, concurrent));\n}\n","import { mergeMap } from './mergeMap';\nimport { identity } from '../util/identity';\nexport function mergeAll(concurrent = Infinity) {\n return mergeMap(identity, concurrent);\n}\n","import { mergeAll } from './mergeAll';\nexport function concatAll() {\n return mergeAll(1);\n}\n","import { concatAll } from '../operators/concatAll';\nimport { popScheduler } from '../util/args';\nimport { from } from './from';\nexport function concat(...args) {\n return concatAll()(from(args, popScheduler(args)));\n}\n","import { Observable } from '../Observable';\nimport { innerFrom } from './innerFrom';\nexport function defer(observableFactory) {\n return new Observable(subscriber => {\n innerFrom(observableFactory()).subscribe(subscriber);\n });\n}\n","import { Observable } from '../Observable';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { innerFrom } from './innerFrom';\nimport { popResultSelector } from '../util/args';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { createObject } from '../util/createObject';\nexport function forkJoin(...args) {\n const resultSelector = popResultSelector(args);\n const {\n args: sources,\n keys\n } = argsArgArrayOrObject(args);\n const result = new Observable(subscriber => {\n const {\n length\n } = sources;\n if (!length) {\n subscriber.complete();\n return;\n }\n const values = new Array(length);\n let remainingCompletions = length;\n let remainingEmissions = length;\n for (let sourceIndex = 0; sourceIndex < length; sourceIndex++) {\n let hasValue = false;\n innerFrom(sources[sourceIndex]).subscribe(createOperatorSubscriber(subscriber, value => {\n if (!hasValue) {\n hasValue = true;\n remainingEmissions--;\n }\n values[sourceIndex] = value;\n }, () => remainingCompletions--, undefined, () => {\n if (!remainingCompletions || !hasValue) {\n if (!remainingEmissions) {\n subscriber.next(keys ? createObject(keys, values) : values);\n }\n subscriber.complete();\n }\n }));\n }\n });\n return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result;\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { Observable } from '../Observable';\nimport { mergeMap } from '../operators/mergeMap';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isFunction } from '../util/isFunction';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nconst nodeEventEmitterMethods = ['addListener', 'removeListener'];\nconst eventTargetMethods = ['addEventListener', 'removeEventListener'];\nconst jqueryMethods = ['on', 'off'];\nexport function fromEvent(target, eventName, options, resultSelector) {\n if (isFunction(options)) {\n resultSelector = options;\n options = undefined;\n }\n if (resultSelector) {\n return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector));\n }\n const [add, remove] = isEventTarget(target) ? eventTargetMethods.map(methodName => handler => target[methodName](eventName, handler, options)) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [];\n if (!add) {\n if (isArrayLike(target)) {\n return mergeMap(subTarget => fromEvent(subTarget, eventName, options))(innerFrom(target));\n }\n }\n if (!add) {\n throw new TypeError('Invalid event target');\n }\n return new Observable(subscriber => {\n const handler = (...args) => subscriber.next(1 < args.length ? args : args[0]);\n add(handler);\n return () => remove(handler);\n });\n}\nfunction toCommonHandlerRegistry(target, eventName) {\n return methodName => handler => target[methodName](eventName, handler);\n}\nfunction isNodeStyleEventEmitter(target) {\n return isFunction(target.addListener) && isFunction(target.removeListener);\n}\nfunction isJQueryStyleEventEmitter(target) {\n return isFunction(target.on) && isFunction(target.off);\n}\nfunction isEventTarget(target) {\n return isFunction(target.addEventListener) && isFunction(target.removeEventListener);\n}\n","import { defer } from './defer';\nexport function iif(condition, trueResult, falseResult) {\n return defer(() => condition() ? trueResult : falseResult);\n}\n","import { Observable } from '../Observable';\nimport { async as asyncScheduler } from '../scheduler/async';\nimport { isScheduler } from '../util/isScheduler';\nimport { isValidDate } from '../util/isDate';\nexport function timer(dueTime = 0, intervalOrScheduler, scheduler = asyncScheduler) {\n let intervalDuration = -1;\n if (intervalOrScheduler != null) {\n if (isScheduler(intervalOrScheduler)) {\n scheduler = intervalOrScheduler;\n } else {\n intervalDuration = intervalOrScheduler;\n }\n }\n return new Observable(subscriber => {\n let due = isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime;\n if (due < 0) {\n due = 0;\n }\n let n = 0;\n return scheduler.schedule(function () {\n if (!subscriber.closed) {\n subscriber.next(n++);\n if (0 <= intervalDuration) {\n this.schedule(undefined, intervalDuration);\n } else {\n subscriber.complete();\n }\n }\n }, due);\n });\n}\n","import { asyncScheduler } from '../scheduler/async';\nimport { timer } from './timer';\nexport function interval(period = 0, scheduler = asyncScheduler) {\n if (period < 0) {\n period = 0;\n }\n return timer(period, period, scheduler);\n}\n","import { mergeAll } from '../operators/mergeAll';\nimport { innerFrom } from './innerFrom';\nimport { EMPTY } from './empty';\nimport { popNumber, popScheduler } from '../util/args';\nimport { from } from './from';\nexport function merge(...args) {\n const scheduler = popScheduler(args);\n const concurrent = popNumber(args, Infinity);\n const sources = args;\n return !sources.length ? EMPTY : sources.length === 1 ? innerFrom(sources[0]) : mergeAll(concurrent)(from(sources, scheduler));\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function filter(predicate, thisArg) {\n return operate((source, subscriber) => {\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => predicate.call(thisArg, value, index++) && subscriber.next(value)));\n });\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { operate } from '../util/lift';\nexport function catchError(selector) {\n return operate((source, subscriber) => {\n let innerSub = null;\n let syncUnsub = false;\n let handledResult;\n innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, undefined, err => {\n handledResult = innerFrom(selector(err, catchError(selector)(source)));\n if (innerSub) {\n innerSub.unsubscribe();\n innerSub = null;\n handledResult.subscribe(subscriber);\n } else {\n syncUnsub = true;\n }\n }));\n if (syncUnsub) {\n innerSub.unsubscribe();\n innerSub = null;\n handledResult.subscribe(subscriber);\n }\n });\n}\n","import { createOperatorSubscriber } from './OperatorSubscriber';\nexport function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {\n return (source, subscriber) => {\n let hasState = hasSeed;\n let state = seed;\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n const i = index++;\n state = hasState ? accumulator(state, value, i) : (hasState = true, value);\n emitOnNext && subscriber.next(state);\n }, emitBeforeComplete && (() => {\n hasState && subscriber.next(state);\n subscriber.complete();\n })));\n };\n}\n","import { mergeMap } from './mergeMap';\nimport { isFunction } from '../util/isFunction';\nexport function concatMap(project, resultSelector) {\n return isFunction(resultSelector) ? mergeMap(project, resultSelector, 1) : mergeMap(project, 1);\n}\n","import { asyncScheduler } from '../scheduler/async';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function debounceTime(dueTime, scheduler = asyncScheduler) {\n return operate((source, subscriber) => {\n let activeTask = null;\n let lastValue = null;\n let lastTime = null;\n const emit = () => {\n if (activeTask) {\n activeTask.unsubscribe();\n activeTask = null;\n const value = lastValue;\n lastValue = null;\n subscriber.next(value);\n }\n };\n function emitWhenIdle() {\n const targetTime = lastTime + dueTime;\n const now = scheduler.now();\n if (now < targetTime) {\n activeTask = this.schedule(undefined, targetTime - now);\n subscriber.add(activeTask);\n return;\n }\n emit();\n }\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n lastValue = value;\n lastTime = scheduler.now();\n if (!activeTask) {\n activeTask = scheduler.schedule(emitWhenIdle, dueTime);\n subscriber.add(activeTask);\n }\n }, () => {\n emit();\n subscriber.complete();\n }, undefined, () => {\n lastValue = activeTask = null;\n }));\n });\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function defaultIfEmpty(defaultValue) {\n return operate((source, subscriber) => {\n let hasValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n hasValue = true;\n subscriber.next(value);\n }, () => {\n if (!hasValue) {\n subscriber.next(defaultValue);\n }\n subscriber.complete();\n }));\n });\n}\n","import { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function take(count) {\n return count <= 0 ? () => EMPTY : operate((source, subscriber) => {\n let seen = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n if (++seen <= count) {\n subscriber.next(value);\n if (count <= seen) {\n subscriber.complete();\n }\n }\n }));\n });\n}\n","import { map } from './map';\nexport function mapTo(value) {\n return map(() => value);\n}\n","import { identity } from '../util/identity';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function distinctUntilChanged(comparator, keySelector = identity) {\n comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare;\n return operate((source, subscriber) => {\n let previousKey;\n let first = true;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n const currentKey = keySelector(value);\n if (first || !comparator(previousKey, currentKey)) {\n first = false;\n previousKey = currentKey;\n subscriber.next(value);\n }\n }));\n });\n}\nfunction defaultCompare(a, b) {\n return a === b;\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function throwIfEmpty(errorFactory = defaultErrorFactory) {\n return operate((source, subscriber) => {\n let hasValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n hasValue = true;\n subscriber.next(value);\n }, () => hasValue ? subscriber.complete() : subscriber.error(errorFactory())));\n });\n}\nfunction defaultErrorFactory() {\n return new EmptyError();\n}\n","import { operate } from '../util/lift';\nexport function finalize(callback) {\n return operate((source, subscriber) => {\n try {\n source.subscribe(subscriber);\n } finally {\n subscriber.add(callback);\n }\n });\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { take } from './take';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { identity } from '../util/identity';\nexport function first(predicate, defaultValue) {\n const hasDefaultValue = arguments.length >= 2;\n return source => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError()));\n}\n","import { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function takeLast(count) {\n return count <= 0 ? () => EMPTY : operate((source, subscriber) => {\n let buffer = [];\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n buffer.push(value);\n count < buffer.length && buffer.shift();\n }, () => {\n for (const value of buffer) {\n subscriber.next(value);\n }\n subscriber.complete();\n }, undefined, () => {\n buffer = null;\n }));\n });\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { takeLast } from './takeLast';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { identity } from '../util/identity';\nexport function last(predicate, defaultValue) {\n const hasDefaultValue = arguments.length >= 2;\n return source => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, takeLast(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError()));\n}\n","import { operate } from '../util/lift';\nimport { scanInternals } from './scanInternals';\nexport function scan(accumulator, seed) {\n return operate(scanInternals(accumulator, seed, arguments.length >= 2, true));\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { Subject } from '../Subject';\nimport { SafeSubscriber } from '../Subscriber';\nimport { operate } from '../util/lift';\nexport function share(options = {}) {\n const {\n connector = () => new Subject(),\n resetOnError = true,\n resetOnComplete = true,\n resetOnRefCountZero = true\n } = options;\n return wrapperSource => {\n let connection;\n let resetConnection;\n let subject;\n let refCount = 0;\n let hasCompleted = false;\n let hasErrored = false;\n const cancelReset = () => {\n resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe();\n resetConnection = undefined;\n };\n const reset = () => {\n cancelReset();\n connection = subject = undefined;\n hasCompleted = hasErrored = false;\n };\n const resetAndUnsubscribe = () => {\n const conn = connection;\n reset();\n conn === null || conn === void 0 ? void 0 : conn.unsubscribe();\n };\n return operate((source, subscriber) => {\n refCount++;\n if (!hasErrored && !hasCompleted) {\n cancelReset();\n }\n const dest = subject = subject !== null && subject !== void 0 ? subject : connector();\n subscriber.add(() => {\n refCount--;\n if (refCount === 0 && !hasErrored && !hasCompleted) {\n resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero);\n }\n });\n dest.subscribe(subscriber);\n if (!connection && refCount > 0) {\n connection = new SafeSubscriber({\n next: value => dest.next(value),\n error: err => {\n hasErrored = true;\n cancelReset();\n resetConnection = handleReset(reset, resetOnError, err);\n dest.error(err);\n },\n complete: () => {\n hasCompleted = true;\n cancelReset();\n resetConnection = handleReset(reset, resetOnComplete);\n dest.complete();\n }\n });\n innerFrom(source).subscribe(connection);\n }\n })(wrapperSource);\n };\n}\nfunction handleReset(reset, on, ...args) {\n if (on === true) {\n reset();\n return;\n }\n if (on === false) {\n return;\n }\n const onSubscriber = new SafeSubscriber({\n next: () => {\n onSubscriber.unsubscribe();\n reset();\n }\n });\n return innerFrom(on(...args)).subscribe(onSubscriber);\n}\n","import { ReplaySubject } from '../ReplaySubject';\nimport { share } from './share';\nexport function shareReplay(configOrBufferSize, windowTime, scheduler) {\n let bufferSize;\n let refCount = false;\n if (configOrBufferSize && typeof configOrBufferSize === 'object') {\n ({\n bufferSize = Infinity,\n windowTime = Infinity,\n refCount = false,\n scheduler\n } = configOrBufferSize);\n } else {\n bufferSize = configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity;\n }\n return share({\n connector: () => new ReplaySubject(bufferSize, windowTime, scheduler),\n resetOnError: true,\n resetOnComplete: false,\n resetOnRefCountZero: refCount\n });\n}\n","import { concat } from '../observable/concat';\nimport { popScheduler } from '../util/args';\nimport { operate } from '../util/lift';\nexport function startWith(...values) {\n const scheduler = popScheduler(values);\n return operate((source, subscriber) => {\n (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber);\n });\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function switchMap(project, resultSelector) {\n return operate((source, subscriber) => {\n let innerSubscriber = null;\n let index = 0;\n let isComplete = false;\n const checkComplete = () => isComplete && !innerSubscriber && subscriber.complete();\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe();\n let innerIndex = 0;\n const outerIndex = index++;\n innerFrom(project(value, outerIndex)).subscribe(innerSubscriber = createOperatorSubscriber(subscriber, innerValue => subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue), () => {\n innerSubscriber = null;\n checkComplete();\n }));\n }, () => {\n isComplete = true;\n checkComplete();\n }));\n });\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { noop } from '../util/noop';\nexport function takeUntil(notifier) {\n return operate((source, subscriber) => {\n innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, () => subscriber.complete(), noop));\n !subscriber.closed && source.subscribe(subscriber);\n });\n}\n","import { isFunction } from '../util/isFunction';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { identity } from '../util/identity';\nexport function tap(observerOrNext, error, complete) {\n const tapObserver = isFunction(observerOrNext) || error || complete ? {\n next: observerOrNext,\n error,\n complete\n } : observerOrNext;\n return tapObserver ? operate((source, subscriber) => {\n var _a;\n (_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n let isUnsub = true;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n var _a;\n (_a = tapObserver.next) === null || _a === void 0 ? void 0 : _a.call(tapObserver, value);\n subscriber.next(value);\n }, () => {\n var _a;\n isUnsub = false;\n (_a = tapObserver.complete) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n subscriber.complete();\n }, err => {\n var _a;\n isUnsub = false;\n (_a = tapObserver.error) === null || _a === void 0 ? void 0 : _a.call(tapObserver, err);\n subscriber.error(err);\n }, () => {\n var _a, _b;\n if (isUnsub) {\n (_a = tapObserver.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n }\n (_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver);\n }));\n }) : identity;\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nexport function throttle(durationSelector, config) {\n return operate((source, subscriber) => {\n const {\n leading = true,\n trailing = false\n } = config !== null && config !== void 0 ? config : {};\n let hasValue = false;\n let sendValue = null;\n let throttled = null;\n let isComplete = false;\n const endThrottling = () => {\n throttled === null || throttled === void 0 ? void 0 : throttled.unsubscribe();\n throttled = null;\n if (trailing) {\n send();\n isComplete && subscriber.complete();\n }\n };\n const cleanupThrottling = () => {\n throttled = null;\n isComplete && subscriber.complete();\n };\n const startThrottle = value => throttled = innerFrom(durationSelector(value)).subscribe(createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling));\n const send = () => {\n if (hasValue) {\n hasValue = false;\n const value = sendValue;\n sendValue = null;\n subscriber.next(value);\n !isComplete && startThrottle(value);\n }\n };\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n hasValue = true;\n sendValue = value;\n !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value));\n }, () => {\n isComplete = true;\n !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete();\n }));\n });\n}\n","import { asyncScheduler } from '../scheduler/async';\nimport { throttle } from './throttle';\nimport { timer } from '../observable/timer';\nexport function throttleTime(duration, scheduler = asyncScheduler, config) {\n const duration$ = timer(duration, scheduler);\n return throttle(() => duration$, config);\n}\n","/**\n * @license Angular v18.2.13\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { SIGNAL_NODE as SIGNAL_NODE$1, signalSetFn as signalSetFn$1, producerAccessed as producerAccessed$1, SIGNAL as SIGNAL$1, getActiveConsumer as getActiveConsumer$1, setActiveConsumer as setActiveConsumer$1, consumerDestroy as consumerDestroy$1, REACTIVE_NODE as REACTIVE_NODE$1, consumerBeforeComputation as consumerBeforeComputation$1, consumerAfterComputation as consumerAfterComputation$1, consumerPollProducersForChange as consumerPollProducersForChange$1, createSignal as createSignal$1, signalUpdateFn as signalUpdateFn$1, createComputed as createComputed$1, setThrowInvalidWriteToSignalError as setThrowInvalidWriteToSignalError$1, createWatch as createWatch$1 } from '@angular/core/primitives/signals';\nexport { SIGNAL as ɵSIGNAL } from '@angular/core/primitives/signals';\nimport { BehaviorSubject, Subject, Subscription } from 'rxjs';\nimport { map, first } from 'rxjs/operators';\nimport { Attribute as Attribute$1, EventContract, EventContractContainer, getAppScopedQueuedEventInfos, clearAppScopedEarlyEventContract, EventDispatcher, registerDispatcher, isEarlyEventType, isCaptureEventType } from '@angular/core/primitives/event-dispatch';\n\n/**\n * Base URL for the error details page.\n *\n * Keep this constant in sync across:\n * - packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.ts\n * - packages/core/src/error_details_base_url.ts\n */\nconst ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.dev/errors';\n/**\n * URL for the XSS security documentation.\n */\nconst XSS_SECURITY_URL = 'https://g.co/ng/security#xss';\n\n/**\n * Class that represents a runtime error.\n * Formats and outputs the error message in a consistent way.\n *\n * Example:\n * ```\n * throw new RuntimeError(\n * RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED,\n * ngDevMode && 'Injector has already been destroyed.');\n * ```\n *\n * Note: the `message` argument contains a descriptive error message as a string in development\n * mode (when the `ngDevMode` is defined). In production mode (after tree-shaking pass), the\n * `message` argument becomes `false`, thus we account for it in the typings and the runtime\n * logic.\n */\nclass RuntimeError extends Error {\n constructor(code, message) {\n super(formatRuntimeError(code, message));\n this.code = code;\n }\n}\n/**\n * Called to format a runtime error.\n * See additional info on the `message` argument type in the `RuntimeError` class description.\n */\nfunction formatRuntimeError(code, message) {\n // Error code might be a negative number, which is a special marker that instructs the logic to\n // generate a link to the error details page on angular.io.\n // We also prepend `0` to non-compile-time errors.\n const fullCode = `NG0${Math.abs(code)}`;\n let errorMessage = `${fullCode}${message ? ': ' + message : ''}`;\n if (ngDevMode && code < 0) {\n const addPeriodSeparator = !errorMessage.match(/[.,;!?\\n]$/);\n const separator = addPeriodSeparator ? '.' : '';\n errorMessage = `${errorMessage}${separator} Find more at ${ERROR_DETAILS_PAGE_BASE_URL}/${fullCode}`;\n }\n return errorMessage;\n}\nconst REQUIRED_UNSET_VALUE = /* @__PURE__ */Symbol('InputSignalNode#UNSET');\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst INPUT_SIGNAL_NODE = /* @__PURE__ */(() => {\n return {\n ...SIGNAL_NODE$1,\n transformFn: undefined,\n applyValueToInputSignal(node, value) {\n signalSetFn$1(node, value);\n }\n };\n})();\nconst ɵINPUT_SIGNAL_BRAND_READ_TYPE = /* @__PURE__ */Symbol();\nconst ɵINPUT_SIGNAL_BRAND_WRITE_TYPE = /* @__PURE__ */Symbol();\n/**\n * Creates an input signal.\n *\n * @param initialValue The initial value.\n * Can be set to {@link REQUIRED_UNSET_VALUE} for required inputs.\n * @param options Additional options for the input. e.g. a transform, or an alias.\n */\nfunction createInputSignal(initialValue, options) {\n const node = Object.create(INPUT_SIGNAL_NODE);\n node.value = initialValue;\n // Perf note: Always set `transformFn` here to ensure that `node` always\n // has the same v8 class shape, allowing monomorphic reads on input signals.\n node.transformFn = options?.transform;\n function inputValueFn() {\n // Record that someone looked at this signal.\n producerAccessed$1(node);\n if (node.value === REQUIRED_UNSET_VALUE) {\n throw new RuntimeError(-950 /* RuntimeErrorCode.REQUIRED_INPUT_NO_VALUE */, ngDevMode && 'Input is required but no value is available yet.');\n }\n return node.value;\n }\n inputValueFn[SIGNAL$1] = node;\n if (ngDevMode) {\n inputValueFn.toString = () => `[Input Signal: ${inputValueFn()}]`;\n }\n return inputValueFn;\n}\n\n/**\n * Convince closure compiler that the wrapped function has no side-effects.\n *\n * Closure compiler always assumes that `toString` has no side-effects. We use this quirk to\n * allow us to execute a function but have closure compiler mark the call as no-side-effects.\n * It is important that the return value for the `noSideEffects` function be assigned\n * to something which is retained otherwise the call to `noSideEffects` will be removed by closure\n * compiler.\n */\nfunction noSideEffects(fn) {\n return {\n toString: fn\n }.toString();\n}\nconst ANNOTATIONS = '__annotations__';\nconst PARAMETERS = '__parameters__';\nconst PROP_METADATA = '__prop__metadata__';\n/**\n * @suppress {globalThis}\n */\nfunction makeDecorator(name, props, parentClass, additionalProcessing, typeFn) {\n return noSideEffects(() => {\n const metaCtor = makeMetadataCtor(props);\n function DecoratorFactory(...args) {\n if (this instanceof DecoratorFactory) {\n metaCtor.call(this, ...args);\n return this;\n }\n const annotationInstance = new DecoratorFactory(...args);\n return function TypeDecorator(cls) {\n if (typeFn) typeFn(cls, ...args);\n // Use of Object.defineProperty is important since it creates non-enumerable property which\n // prevents the property is copied during subclassing.\n const annotations = cls.hasOwnProperty(ANNOTATIONS) ? cls[ANNOTATIONS] : Object.defineProperty(cls, ANNOTATIONS, {\n value: []\n })[ANNOTATIONS];\n annotations.push(annotationInstance);\n if (additionalProcessing) additionalProcessing(cls);\n return cls;\n };\n }\n if (parentClass) {\n DecoratorFactory.prototype = Object.create(parentClass.prototype);\n }\n DecoratorFactory.prototype.ngMetadataName = name;\n DecoratorFactory.annotationCls = DecoratorFactory;\n return DecoratorFactory;\n });\n}\nfunction makeMetadataCtor(props) {\n return function ctor(...args) {\n if (props) {\n const values = props(...args);\n for (const propName in values) {\n this[propName] = values[propName];\n }\n }\n };\n}\nfunction makeParamDecorator(name, props, parentClass) {\n return noSideEffects(() => {\n const metaCtor = makeMetadataCtor(props);\n function ParamDecoratorFactory(...args) {\n if (this instanceof ParamDecoratorFactory) {\n metaCtor.apply(this, args);\n return this;\n }\n const annotationInstance = new ParamDecoratorFactory(...args);\n ParamDecorator.annotation = annotationInstance;\n return ParamDecorator;\n function ParamDecorator(cls, unusedKey, index) {\n // Use of Object.defineProperty is important since it creates non-enumerable property which\n // prevents the property is copied during subclassing.\n const parameters = cls.hasOwnProperty(PARAMETERS) ? cls[PARAMETERS] : Object.defineProperty(cls, PARAMETERS, {\n value: []\n })[PARAMETERS];\n // there might be gaps if some in between parameters do not have annotations.\n // we pad with nulls.\n while (parameters.length <= index) {\n parameters.push(null);\n }\n (parameters[index] = parameters[index] || []).push(annotationInstance);\n return cls;\n }\n }\n if (parentClass) {\n ParamDecoratorFactory.prototype = Object.create(parentClass.prototype);\n }\n ParamDecoratorFactory.prototype.ngMetadataName = name;\n ParamDecoratorFactory.annotationCls = ParamDecoratorFactory;\n return ParamDecoratorFactory;\n });\n}\nfunction makePropDecorator(name, props, parentClass, additionalProcessing) {\n return noSideEffects(() => {\n const metaCtor = makeMetadataCtor(props);\n function PropDecoratorFactory(...args) {\n if (this instanceof PropDecoratorFactory) {\n metaCtor.apply(this, args);\n return this;\n }\n const decoratorInstance = new PropDecoratorFactory(...args);\n function PropDecorator(target, name) {\n // target is undefined with standard decorators. This case is not supported and will throw\n // if this decorator is used in JIT mode with standard decorators.\n if (target === undefined) {\n throw new Error('Standard Angular field decorators are not supported in JIT mode.');\n }\n const constructor = target.constructor;\n // Use of Object.defineProperty is important because it creates a non-enumerable property\n // which prevents the property from being copied during subclassing.\n const meta = constructor.hasOwnProperty(PROP_METADATA) ? constructor[PROP_METADATA] : Object.defineProperty(constructor, PROP_METADATA, {\n value: {}\n })[PROP_METADATA];\n meta[name] = meta.hasOwnProperty(name) && meta[name] || [];\n meta[name].unshift(decoratorInstance);\n if (additionalProcessing) additionalProcessing(target, name, ...args);\n }\n return PropDecorator;\n }\n if (parentClass) {\n PropDecoratorFactory.prototype = Object.create(parentClass.prototype);\n }\n PropDecoratorFactory.prototype.ngMetadataName = name;\n PropDecoratorFactory.annotationCls = PropDecoratorFactory;\n return PropDecoratorFactory;\n });\n}\nconst _global = globalThis;\nfunction ngDevModeResetPerfCounters() {\n const locationString = typeof location !== 'undefined' ? location.toString() : '';\n const newCounters = {\n namedConstructors: locationString.indexOf('ngDevMode=namedConstructors') != -1,\n firstCreatePass: 0,\n tNode: 0,\n tView: 0,\n rendererCreateTextNode: 0,\n rendererSetText: 0,\n rendererCreateElement: 0,\n rendererAddEventListener: 0,\n rendererSetAttribute: 0,\n rendererRemoveAttribute: 0,\n rendererSetProperty: 0,\n rendererSetClassName: 0,\n rendererAddClass: 0,\n rendererRemoveClass: 0,\n rendererSetStyle: 0,\n rendererRemoveStyle: 0,\n rendererDestroy: 0,\n rendererDestroyNode: 0,\n rendererMoveNode: 0,\n rendererRemoveNode: 0,\n rendererAppendChild: 0,\n rendererInsertBefore: 0,\n rendererCreateComment: 0,\n hydratedNodes: 0,\n hydratedComponents: 0,\n dehydratedViewsRemoved: 0,\n dehydratedViewsCleanupRuns: 0,\n componentsSkippedHydration: 0\n };\n // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.\n const allowNgDevModeTrue = locationString.indexOf('ngDevMode=false') === -1;\n if (!allowNgDevModeTrue) {\n _global['ngDevMode'] = false;\n } else {\n if (typeof _global['ngDevMode'] !== 'object') {\n _global['ngDevMode'] = {};\n }\n Object.assign(_global['ngDevMode'], newCounters);\n }\n return newCounters;\n}\n/**\n * This function checks to see if the `ngDevMode` has been set. If yes,\n * then we honor it, otherwise we default to dev mode with additional checks.\n *\n * The idea is that unless we are doing production build where we explicitly\n * set `ngDevMode == false` we should be helping the developer by providing\n * as much early warning and errors as possible.\n *\n * `ɵɵdefineComponent` is guaranteed to have been called before any component template functions\n * (and thus Ivy instructions), so a single initialization there is sufficient to ensure ngDevMode\n * is defined for the entire instruction set.\n *\n * When checking `ngDevMode` on toplevel, always init it before referencing it\n * (e.g. `((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode())`), otherwise you can\n * get a `ReferenceError` like in https://github.com/angular/angular/issues/31595.\n *\n * Details on possible values for `ngDevMode` can be found on its docstring.\n *\n * NOTE:\n * - changes to the `ngDevMode` name must be synced with `compiler-cli/src/tooling.ts`.\n */\nfunction initNgDevMode() {\n // The below checks are to ensure that calling `initNgDevMode` multiple times does not\n // reset the counters.\n // If the `ngDevMode` is not an object, then it means we have not created the perf counters\n // yet.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (typeof ngDevMode !== 'object' || Object.keys(ngDevMode).length === 0) {\n ngDevModeResetPerfCounters();\n }\n return typeof ngDevMode !== 'undefined' && !!ngDevMode;\n }\n return false;\n}\nfunction getClosureSafeProperty(objWithPropertyToExtract) {\n for (let key in objWithPropertyToExtract) {\n if (objWithPropertyToExtract[key] === getClosureSafeProperty) {\n return key;\n }\n }\n throw Error('Could not find renamed property on target object.');\n}\n/**\n * Sets properties on a target object from a source object, but only if\n * the property doesn't already exist on the target object.\n * @param target The target to set properties on\n * @param source The source of the property keys and values to set\n */\nfunction fillProperties(target, source) {\n for (const key in source) {\n if (source.hasOwnProperty(key) && !target.hasOwnProperty(key)) {\n target[key] = source[key];\n }\n }\n}\nfunction stringify(token) {\n if (typeof token === 'string') {\n return token;\n }\n if (Array.isArray(token)) {\n return '[' + token.map(stringify).join(', ') + ']';\n }\n if (token == null) {\n return '' + token;\n }\n if (token.overriddenName) {\n return `${token.overriddenName}`;\n }\n if (token.name) {\n return `${token.name}`;\n }\n const res = token.toString();\n if (res == null) {\n return '' + res;\n }\n const newLineIndex = res.indexOf('\\n');\n return newLineIndex === -1 ? res : res.substring(0, newLineIndex);\n}\n/**\n * Concatenates two strings with separator, allocating new strings only when necessary.\n *\n * @param before before string.\n * @param separator separator string.\n * @param after after string.\n * @returns concatenated string.\n */\nfunction concatStringsWithSpace(before, after) {\n return before == null || before === '' ? after === null ? '' : after : after == null || after === '' ? before : before + ' ' + after;\n}\n/**\n * Ellipses the string in the middle when longer than the max length\n *\n * @param string\n * @param maxLength of the output string\n * @returns ellipsed string with ... in the middle\n */\nfunction truncateMiddle(str, maxLength = 100) {\n if (!str || maxLength < 1 || str.length <= maxLength) return str;\n if (maxLength == 1) return str.substring(0, 1) + '...';\n const halfLimit = Math.round(maxLength / 2);\n return str.substring(0, halfLimit) + '...' + str.substring(str.length - halfLimit);\n}\nconst __forward_ref__ = /*#__PURE__*/getClosureSafeProperty({\n __forward_ref__: getClosureSafeProperty\n});\n/**\n * Allows to refer to references which are not yet defined.\n *\n * For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of\n * DI is declared, but not yet defined. It is also used when the `token` which we use when creating\n * a query is not yet defined.\n *\n * `forwardRef` is also used to break circularities in standalone components imports.\n *\n * @usageNotes\n * ### Circular dependency example\n * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}\n *\n * ### Circular standalone reference import example\n * ```ts\n * @Component({\n * standalone: true,\n * imports: [ChildComponent],\n * selector: 'app-parent',\n * template: ``,\n * })\n * export class ParentComponent {\n * @Input() hideParent: boolean;\n * }\n *\n *\n * @Component({\n * standalone: true,\n * imports: [CommonModule, forwardRef(() => ParentComponent)],\n * selector: 'app-child',\n * template: ``,\n * })\n * export class ChildComponent {\n * @Input() hideParent: boolean;\n * }\n * ```\n *\n * @publicApi\n */\nfunction forwardRef(forwardRefFn) {\n forwardRefFn.__forward_ref__ = forwardRef;\n forwardRefFn.toString = function () {\n return stringify(this());\n };\n return forwardRefFn;\n}\n/**\n * Lazily retrieves the reference value from a forwardRef.\n *\n * Acts as the identity function when given a non-forward-ref value.\n *\n * @usageNotes\n * ### Example\n *\n * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}\n *\n * @see {@link forwardRef}\n * @publicApi\n */\nfunction resolveForwardRef(type) {\n return isForwardRef(type) ? type() : type;\n}\n/** Checks whether a function is wrapped by a `forwardRef`. */\nfunction isForwardRef(fn) {\n return typeof fn === 'function' && fn.hasOwnProperty(__forward_ref__) && fn.__forward_ref__ === forwardRef;\n}\n\n// The functions in this file verify that the assumptions we are making\nfunction assertNumber(actual, msg) {\n if (!(typeof actual === 'number')) {\n throwError(msg, typeof actual, 'number', '===');\n }\n}\nfunction assertNumberInRange(actual, minInclusive, maxInclusive) {\n assertNumber(actual, 'Expected a number');\n assertLessThanOrEqual(actual, maxInclusive, 'Expected number to be less than or equal to');\n assertGreaterThanOrEqual(actual, minInclusive, 'Expected number to be greater than or equal to');\n}\nfunction assertString(actual, msg) {\n if (!(typeof actual === 'string')) {\n throwError(msg, actual === null ? 'null' : typeof actual, 'string', '===');\n }\n}\nfunction assertFunction(actual, msg) {\n if (!(typeof actual === 'function')) {\n throwError(msg, actual === null ? 'null' : typeof actual, 'function', '===');\n }\n}\nfunction assertEqual(actual, expected, msg) {\n if (!(actual == expected)) {\n throwError(msg, actual, expected, '==');\n }\n}\nfunction assertNotEqual(actual, expected, msg) {\n if (!(actual != expected)) {\n throwError(msg, actual, expected, '!=');\n }\n}\nfunction assertSame(actual, expected, msg) {\n if (!(actual === expected)) {\n throwError(msg, actual, expected, '===');\n }\n}\nfunction assertNotSame(actual, expected, msg) {\n if (!(actual !== expected)) {\n throwError(msg, actual, expected, '!==');\n }\n}\nfunction assertLessThan(actual, expected, msg) {\n if (!(actual < expected)) {\n throwError(msg, actual, expected, '<');\n }\n}\nfunction assertLessThanOrEqual(actual, expected, msg) {\n if (!(actual <= expected)) {\n throwError(msg, actual, expected, '<=');\n }\n}\nfunction assertGreaterThan(actual, expected, msg) {\n if (!(actual > expected)) {\n throwError(msg, actual, expected, '>');\n }\n}\nfunction assertGreaterThanOrEqual(actual, expected, msg) {\n if (!(actual >= expected)) {\n throwError(msg, actual, expected, '>=');\n }\n}\nfunction assertNotDefined(actual, msg) {\n if (actual != null) {\n throwError(msg, actual, null, '==');\n }\n}\nfunction assertDefined(actual, msg) {\n if (actual == null) {\n throwError(msg, actual, null, '!=');\n }\n}\nfunction throwError(msg, actual, expected, comparison) {\n throw new Error(`ASSERTION ERROR: ${msg}` + (comparison == null ? '' : ` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`));\n}\nfunction assertDomNode(node) {\n if (!(node instanceof Node)) {\n throwError(`The provided value must be an instance of a DOM Node but got ${stringify(node)}`);\n }\n}\nfunction assertElement(node) {\n if (!(node instanceof Element)) {\n throwError(`The provided value must be an element but got ${stringify(node)}`);\n }\n}\nfunction assertIndexInRange(arr, index) {\n assertDefined(arr, 'Array must be defined.');\n const maxLen = arr.length;\n if (index < 0 || index >= maxLen) {\n throwError(`Index expected to be less than ${maxLen} but got ${index}`);\n }\n}\nfunction assertOneOf(value, ...validValues) {\n if (validValues.indexOf(value) !== -1) return true;\n throwError(`Expected value to be one of ${JSON.stringify(validValues)} but was ${JSON.stringify(value)}.`);\n}\nfunction assertNotReactive(fn) {\n if (getActiveConsumer$1() !== null) {\n throwError(`${fn}() should never be called in a reactive context.`);\n }\n}\n\n/**\n * Construct an injectable definition which defines how a token will be constructed by the DI\n * system, and in which injectors (if any) it will be available.\n *\n * This should be assigned to a static `ɵprov` field on a type, which will then be an\n * `InjectableType`.\n *\n * Options:\n * * `providedIn` determines which injectors will include the injectable, by either associating it\n * with an `@NgModule` or other `InjectorType`, or by specifying that this injectable should be\n * provided in the `'root'` injector, which will be the application-level injector in most apps.\n * * `factory` gives the zero argument function which will create an instance of the injectable.\n * The factory can call [`inject`](api/core/inject) to access the `Injector` and request injection\n * of dependencies.\n *\n * @codeGenApi\n * @publicApi This instruction has been emitted by ViewEngine for some time and is deployed to npm.\n */\nfunction ɵɵdefineInjectable(opts) {\n return {\n token: opts.token,\n providedIn: opts.providedIn || null,\n factory: opts.factory,\n value: undefined\n };\n}\n/**\n * @deprecated in v8, delete after v10. This API should be used only by generated code, and that\n * code should now use ɵɵdefineInjectable instead.\n * @publicApi\n */\nconst defineInjectable = ɵɵdefineInjectable;\n/**\n * Construct an `InjectorDef` which configures an injector.\n *\n * This should be assigned to a static injector def (`ɵinj`) field on a type, which will then be an\n * `InjectorType`.\n *\n * Options:\n *\n * * `providers`: an optional array of providers to add to the injector. Each provider must\n * either have a factory or point to a type which has a `ɵprov` static property (the\n * type must be an `InjectableType`).\n * * `imports`: an optional array of imports of other `InjectorType`s or `InjectorTypeWithModule`s\n * whose providers will also be added to the injector. Locally provided types will override\n * providers from imports.\n *\n * @codeGenApi\n */\nfunction ɵɵdefineInjector(options) {\n return {\n providers: options.providers || [],\n imports: options.imports || []\n };\n}\n/**\n * Read the injectable def (`ɵprov`) for `type` in a way which is immune to accidentally reading\n * inherited value.\n *\n * @param type A type which may have its own (non-inherited) `ɵprov`.\n */\nfunction getInjectableDef(type) {\n return getOwnDefinition(type, NG_PROV_DEF) || getOwnDefinition(type, NG_INJECTABLE_DEF);\n}\nfunction isInjectable(type) {\n return getInjectableDef(type) !== null;\n}\n/**\n * Return definition only if it is defined directly on `type` and is not inherited from a base\n * class of `type`.\n */\nfunction getOwnDefinition(type, field) {\n return type.hasOwnProperty(field) ? type[field] : null;\n}\n/**\n * Read the injectable def (`ɵprov`) for `type` or read the `ɵprov` from one of its ancestors.\n *\n * @param type A type which may have `ɵprov`, via inheritance.\n *\n * @deprecated Will be removed in a future version of Angular, where an error will occur in the\n * scenario if we find the `ɵprov` on an ancestor only.\n */\nfunction getInheritedInjectableDef(type) {\n const def = type && (type[NG_PROV_DEF] || type[NG_INJECTABLE_DEF]);\n if (def) {\n ngDevMode && console.warn(`DEPRECATED: DI is instantiating a token \"${type.name}\" that inherits its @Injectable decorator but does not provide one itself.\\n` + `This will become an error in a future version of Angular. Please add @Injectable() to the \"${type.name}\" class.`);\n return def;\n } else {\n return null;\n }\n}\n/**\n * Read the injector def type in a way which is immune to accidentally reading inherited value.\n *\n * @param type type which may have an injector def (`ɵinj`)\n */\nfunction getInjectorDef(type) {\n return type && (type.hasOwnProperty(NG_INJ_DEF) || type.hasOwnProperty(NG_INJECTOR_DEF)) ? type[NG_INJ_DEF] : null;\n}\nconst NG_PROV_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵprov: getClosureSafeProperty\n});\nconst NG_INJ_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵinj: getClosureSafeProperty\n});\n// We need to keep these around so we can read off old defs if new defs are unavailable\nconst NG_INJECTABLE_DEF = /*#__PURE__*/getClosureSafeProperty({\n ngInjectableDef: getClosureSafeProperty\n});\nconst NG_INJECTOR_DEF = /*#__PURE__*/getClosureSafeProperty({\n ngInjectorDef: getClosureSafeProperty\n});\n\n/**\n * Creates a token that can be used in a DI Provider.\n *\n * Use an `InjectionToken` whenever the type you are injecting is not reified (does not have a\n * runtime representation) such as when injecting an interface, callable type, array or\n * parameterized type.\n *\n * `InjectionToken` is parameterized on `T` which is the type of object which will be returned by\n * the `Injector`. This provides an additional level of type safety.\n *\n *
\n *\n * **Important Note**: Ensure that you use the same instance of the `InjectionToken` in both the\n * provider and the injection call. Creating a new instance of `InjectionToken` in different places,\n * even with the same description, will be treated as different tokens by Angular's DI system,\n * leading to a `NullInjectorError`.\n *\n *
\n *\n * \n *\n * When creating an `InjectionToken`, you can optionally specify a factory function which returns\n * (possibly by creating) a default value of the parameterized type `T`. This sets up the\n * `InjectionToken` using this factory as a provider as if it was defined explicitly in the\n * application's root injector. If the factory function, which takes zero arguments, needs to inject\n * dependencies, it can do so using the [`inject`](api/core/inject) function.\n * As you can see in the Tree-shakable InjectionToken example below.\n *\n * Additionally, if a `factory` is specified you can also specify the `providedIn` option, which\n * overrides the above behavior and marks the token as belonging to a particular `@NgModule` (note:\n * this option is now deprecated). As mentioned above, `'root'` is the default value for\n * `providedIn`.\n *\n * The `providedIn: NgModule` and `providedIn: 'any'` options are deprecated.\n *\n * @usageNotes\n * ### Basic Examples\n *\n * ### Plain InjectionToken\n *\n * {@example core/di/ts/injector_spec.ts region='InjectionToken'}\n *\n * ### Tree-shakable InjectionToken\n *\n * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}\n *\n * @publicApi\n */\nclass InjectionToken {\n /**\n * @param _desc Description for the token,\n * used only for debugging purposes,\n * it should but does not need to be unique\n * @param options Options for the token's usage, as described above\n */\n constructor(_desc, options) {\n this._desc = _desc;\n /** @internal */\n this.ngMetadataName = 'InjectionToken';\n this.ɵprov = undefined;\n if (typeof options == 'number') {\n (typeof ngDevMode === 'undefined' || ngDevMode) && assertLessThan(options, 0, 'Only negative numbers are supported here');\n // This is a special hack to assign __NG_ELEMENT_ID__ to this instance.\n // See `InjectorMarkers`\n this.__NG_ELEMENT_ID__ = options;\n } else if (options !== undefined) {\n this.ɵprov = ɵɵdefineInjectable({\n token: this,\n providedIn: options.providedIn || 'root',\n factory: options.factory\n });\n }\n }\n /**\n * @internal\n */\n get multi() {\n return this;\n }\n toString() {\n return `InjectionToken ${this._desc}`;\n }\n}\nlet _injectorProfilerContext;\nfunction getInjectorProfilerContext() {\n !ngDevMode && throwError('getInjectorProfilerContext should never be called in production mode');\n return _injectorProfilerContext;\n}\nfunction setInjectorProfilerContext(context) {\n !ngDevMode && throwError('setInjectorProfilerContext should never be called in production mode');\n const previous = _injectorProfilerContext;\n _injectorProfilerContext = context;\n return previous;\n}\nlet injectorProfilerCallback = null;\n/**\n * Sets the callback function which will be invoked during certain DI events within the\n * runtime (for example: injecting services, creating injectable instances, configuring providers)\n *\n * Warning: this function is *INTERNAL* and should not be relied upon in application's code.\n * The contract of the function might be changed in any release and/or the function can be removed\n * completely.\n *\n * @param profiler function provided by the caller or null value to disable profiling.\n */\nconst setInjectorProfiler = injectorProfiler => {\n !ngDevMode && throwError('setInjectorProfiler should never be called in production mode');\n injectorProfilerCallback = injectorProfiler;\n};\n/**\n * Injector profiler function which emits on DI events executed by the runtime.\n *\n * @param event InjectorProfilerEvent corresponding to the DI event being emitted\n */\nfunction injectorProfiler(event) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n if (injectorProfilerCallback != null /* both `null` and `undefined` */) {\n injectorProfilerCallback(event);\n }\n}\n/**\n * Emits an InjectorProfilerEventType.ProviderConfigured to the injector profiler. The data in the\n * emitted event includes the raw provider, as well as the token that provider is providing.\n *\n * @param eventProvider A provider object\n */\nfunction emitProviderConfiguredEvent(eventProvider, isViewProvider = false) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n let token;\n // if the provider is a TypeProvider (typeof provider is function) then the token is the\n // provider itself\n if (typeof eventProvider === 'function') {\n token = eventProvider;\n }\n // if the provider is an injection token, then the token is the injection token.\n else if (eventProvider instanceof InjectionToken) {\n token = eventProvider;\n }\n // in all other cases we can access the token via the `provide` property of the provider\n else {\n token = resolveForwardRef(eventProvider.provide);\n }\n let provider = eventProvider;\n // Injection tokens may define their own default provider which gets attached to the token itself\n // as `ɵprov`. In this case, we want to emit the provider that is attached to the token, not the\n // token itself.\n if (eventProvider instanceof InjectionToken) {\n provider = eventProvider.ɵprov || eventProvider;\n }\n injectorProfiler({\n type: 2 /* InjectorProfilerEventType.ProviderConfigured */,\n context: getInjectorProfilerContext(),\n providerRecord: {\n token,\n provider,\n isViewProvider\n }\n });\n}\n/**\n * Emits an event to the injector profiler with the instance that was created. Note that\n * the injector associated with this emission can be accessed by using getDebugInjectContext()\n *\n * @param instance an object created by an injector\n */\nfunction emitInstanceCreatedByInjectorEvent(instance) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n injectorProfiler({\n type: 1 /* InjectorProfilerEventType.InstanceCreatedByInjector */,\n context: getInjectorProfilerContext(),\n instance: {\n value: instance\n }\n });\n}\n/**\n * @param token DI token associated with injected service\n * @param value the instance of the injected service (i.e the result of `inject(token)`)\n * @param flags the flags that the token was injected with\n */\nfunction emitInjectEvent(token, value, flags) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n injectorProfiler({\n type: 0 /* InjectorProfilerEventType.Inject */,\n context: getInjectorProfilerContext(),\n service: {\n token,\n value,\n flags\n }\n });\n}\nfunction runInInjectorProfilerContext(injector, token, callback) {\n !ngDevMode && throwError('runInInjectorProfilerContext should never be called in production mode');\n const prevInjectContext = setInjectorProfilerContext({\n injector,\n token\n });\n try {\n callback();\n } finally {\n setInjectorProfilerContext(prevInjectContext);\n }\n}\nfunction isEnvironmentProviders(value) {\n return value && !!value.ɵproviders;\n}\nconst NG_COMP_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵcmp: getClosureSafeProperty\n});\nconst NG_DIR_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵdir: getClosureSafeProperty\n});\nconst NG_PIPE_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵpipe: getClosureSafeProperty\n});\nconst NG_MOD_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵmod: getClosureSafeProperty\n});\nconst NG_FACTORY_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵfac: getClosureSafeProperty\n});\n/**\n * If a directive is diPublic, bloomAdd sets a property on the type with this constant as\n * the key and the directive's unique ID as the value. This allows us to map directives to their\n * bloom filter bit for DI.\n */\n// TODO(misko): This is wrong. The NG_ELEMENT_ID should never be minified.\nconst NG_ELEMENT_ID = /*#__PURE__*/getClosureSafeProperty({\n __NG_ELEMENT_ID__: getClosureSafeProperty\n});\n/**\n * The `NG_ENV_ID` field on a DI token indicates special processing in the `EnvironmentInjector`:\n * getting such tokens from the `EnvironmentInjector` will bypass the standard DI resolution\n * strategy and instead will return implementation produced by the `NG_ENV_ID` factory function.\n *\n * This particular retrieval of DI tokens is mostly done to eliminate circular dependencies and\n * improve tree-shaking.\n */\nconst NG_ENV_ID = /*#__PURE__*/getClosureSafeProperty({\n __NG_ENV_ID__: getClosureSafeProperty\n});\n\n/**\n * Used for stringify render output in Ivy.\n * Important! This function is very performance-sensitive and we should\n * be extra careful not to introduce megamorphic reads in it.\n * Check `core/test/render3/perf/render_stringify` for benchmarks and alternate implementations.\n */\nfunction renderStringify(value) {\n if (typeof value === 'string') return value;\n if (value == null) return '';\n // Use `String` so that it invokes the `toString` method of the value. Note that this\n // appears to be faster than calling `value.toString` (see `render_stringify` benchmark).\n return String(value);\n}\n/**\n * Used to stringify a value so that it can be displayed in an error message.\n *\n * Important! This function contains a megamorphic read and should only be\n * used for error messages.\n */\nfunction stringifyForError(value) {\n if (typeof value === 'function') return value.name || value.toString();\n if (typeof value === 'object' && value != null && typeof value.type === 'function') {\n return value.type.name || value.type.toString();\n }\n return renderStringify(value);\n}\n/**\n * Used to stringify a `Type` and including the file path and line number in which it is defined, if\n * possible, for better debugging experience.\n *\n * Important! This function contains a megamorphic read and should only be used for error messages.\n */\nfunction debugStringifyTypeForError(type) {\n // TODO(pmvald): Do some refactoring so that we can use getComponentDef here without creating\n // circular deps.\n let componentDef = type[NG_COMP_DEF] || null;\n if (componentDef !== null && componentDef.debugInfo) {\n return stringifyTypeFromDebugInfo(componentDef.debugInfo);\n }\n return stringifyForError(type);\n}\n// TODO(pmvald): Do some refactoring so that we can use the type ClassDebugInfo for the param\n// debugInfo here without creating circular deps.\nfunction stringifyTypeFromDebugInfo(debugInfo) {\n if (!debugInfo.filePath || !debugInfo.lineNumber) {\n return debugInfo.className;\n } else {\n return `${debugInfo.className} (at ${debugInfo.filePath}:${debugInfo.lineNumber})`;\n }\n}\n\n/** Called when directives inject each other (creating a circular dependency) */\nfunction throwCyclicDependencyError(token, path) {\n const depPath = path ? `. Dependency path: ${path.join(' > ')} > ${token}` : '';\n throw new RuntimeError(-200 /* RuntimeErrorCode.CYCLIC_DI_DEPENDENCY */, ngDevMode ? `Circular dependency in DI detected for ${token}${depPath}` : token);\n}\nfunction throwMixedMultiProviderError() {\n throw new Error(`Cannot mix multi providers and regular providers`);\n}\nfunction throwInvalidProviderError(ngModuleType, providers, provider) {\n if (ngModuleType && providers) {\n const providerDetail = providers.map(v => v == provider ? '?' + provider + '?' : '...');\n throw new Error(`Invalid provider for the NgModule '${stringify(ngModuleType)}' - only instances of Provider and Type are allowed, got: [${providerDetail.join(', ')}]`);\n } else if (isEnvironmentProviders(provider)) {\n if (provider.ɵfromNgModule) {\n throw new RuntimeError(207 /* RuntimeErrorCode.PROVIDER_IN_WRONG_CONTEXT */, `Invalid providers from 'importProvidersFrom' present in a non-environment injector. 'importProvidersFrom' can't be used for component providers.`);\n } else {\n throw new RuntimeError(207 /* RuntimeErrorCode.PROVIDER_IN_WRONG_CONTEXT */, `Invalid providers present in a non-environment injector. 'EnvironmentProviders' can't be used for component providers.`);\n }\n } else {\n throw new Error('Invalid provider');\n }\n}\n/** Throws an error when a token is not found in DI. */\nfunction throwProviderNotFoundError(token, injectorName) {\n const errorMessage = ngDevMode && `No provider for ${stringifyForError(token)} found${injectorName ? ` in ${injectorName}` : ''}`;\n throw new RuntimeError(-201 /* RuntimeErrorCode.PROVIDER_NOT_FOUND */, errorMessage);\n}\n\n/**\n * Injection flags for DI.\n *\n * @publicApi\n * @deprecated use an options object for [`inject`](api/core/inject) instead.\n */\nvar InjectFlags = /*#__PURE__*/function (InjectFlags) {\n // TODO(alxhub): make this 'const' (and remove `InternalInjectFlags` enum) when ngc no longer\n // writes exports of it into ngfactory files.\n /** Check self and check parent injector if needed */\n InjectFlags[InjectFlags[\"Default\"] = 0] = \"Default\";\n /**\n * Specifies that an injector should retrieve a dependency from any injector until reaching the\n * host element of the current component. (Only used with Element Injector)\n */\n InjectFlags[InjectFlags[\"Host\"] = 1] = \"Host\";\n /** Don't ascend to ancestors of the node requesting injection. */\n InjectFlags[InjectFlags[\"Self\"] = 2] = \"Self\";\n /** Skip the node that is requesting injection. */\n InjectFlags[InjectFlags[\"SkipSelf\"] = 4] = \"SkipSelf\";\n /** Inject `defaultValue` instead if token not found. */\n InjectFlags[InjectFlags[\"Optional\"] = 8] = \"Optional\";\n return InjectFlags;\n}(InjectFlags || {});\n/**\n * Current implementation of inject.\n *\n * By default, it is `injectInjectorOnly`, which makes it `Injector`-only aware. It can be changed\n * to `directiveInject`, which brings in the `NodeInjector` system of ivy. It is designed this\n * way for two reasons:\n * 1. `Injector` should not depend on ivy logic.\n * 2. To maintain tree shake-ability we don't want to bring in unnecessary code.\n */\nlet _injectImplementation;\nfunction getInjectImplementation() {\n return _injectImplementation;\n}\n/**\n * Sets the current inject implementation.\n */\nfunction setInjectImplementation(impl) {\n const previous = _injectImplementation;\n _injectImplementation = impl;\n return previous;\n}\n/**\n * Injects `root` tokens in limp mode.\n *\n * If no injector exists, we can still inject tree-shakable providers which have `providedIn` set to\n * `\"root\"`. This is known as the limp mode injection. In such case the value is stored in the\n * injectable definition.\n */\nfunction injectRootLimpMode(token, notFoundValue, flags) {\n const injectableDef = getInjectableDef(token);\n if (injectableDef && injectableDef.providedIn == 'root') {\n return injectableDef.value === undefined ? injectableDef.value = injectableDef.factory() : injectableDef.value;\n }\n if (flags & InjectFlags.Optional) return null;\n if (notFoundValue !== undefined) return notFoundValue;\n throwProviderNotFoundError(token, 'Injector');\n}\n/**\n * Assert that `_injectImplementation` is not `fn`.\n *\n * This is useful, to prevent infinite recursion.\n *\n * @param fn Function which it should not equal to\n */\nfunction assertInjectImplementationNotEqual(fn) {\n ngDevMode && assertNotEqual(_injectImplementation, fn, 'Calling ɵɵinject would cause infinite recursion');\n}\nconst _THROW_IF_NOT_FOUND = {};\nconst THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;\n/*\n * Name of a property (that we patch onto DI decorator), which is used as an annotation of which\n * InjectFlag this decorator represents. This allows to avoid direct references to the DI decorators\n * in the code, thus making them tree-shakable.\n */\nconst DI_DECORATOR_FLAG = '__NG_DI_FLAG__';\nconst NG_TEMP_TOKEN_PATH = 'ngTempTokenPath';\nconst NG_TOKEN_PATH = 'ngTokenPath';\nconst NEW_LINE = /\\n/gm;\nconst NO_NEW_LINE = 'ɵ';\nconst SOURCE = '__source';\n/**\n * Current injector value used by `inject`.\n * - `undefined`: it is an error to call `inject`\n * - `null`: `inject` can be called but there is no injector (limp-mode).\n * - Injector instance: Use the injector for resolution.\n */\nlet _currentInjector = undefined;\nfunction getCurrentInjector() {\n return _currentInjector;\n}\nfunction setCurrentInjector(injector) {\n const former = _currentInjector;\n _currentInjector = injector;\n return former;\n}\nfunction injectInjectorOnly(token, flags = InjectFlags.Default) {\n if (_currentInjector === undefined) {\n throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, ngDevMode && `inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with \\`runInInjectionContext\\`.`);\n } else if (_currentInjector === null) {\n return injectRootLimpMode(token, undefined, flags);\n } else {\n const value = _currentInjector.get(token, flags & InjectFlags.Optional ? null : undefined, flags);\n ngDevMode && emitInjectEvent(token, value, flags);\n return value;\n }\n}\nfunction ɵɵinject(token, flags = InjectFlags.Default) {\n return (getInjectImplementation() || injectInjectorOnly)(resolveForwardRef(token), flags);\n}\n/**\n * Throws an error indicating that a factory function could not be generated by the compiler for a\n * particular class.\n *\n * The name of the class is not mentioned here, but will be in the generated factory function name\n * and thus in the stack trace.\n *\n * @codeGenApi\n */\nfunction ɵɵinvalidFactoryDep(index) {\n throw new RuntimeError(202 /* RuntimeErrorCode.INVALID_FACTORY_DEPENDENCY */, ngDevMode && `This constructor is not compatible with Angular Dependency Injection because its dependency at index ${index} of the parameter list is invalid.\nThis can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.\n\nPlease check that 1) the type for the parameter at index ${index} is correct and 2) the correct Angular decorators are defined for this class and its ancestors.`);\n}\n/**\n * Injects a token from the currently active injector.\n * `inject` is only supported in an [injection context](guide/di/dependency-injection-context). It\n * can be used during:\n * - Construction (via the `constructor`) of a class being instantiated by the DI system, such\n * as an `@Injectable` or `@Component`.\n * - In the initializer for fields of such classes.\n * - In the factory function specified for `useFactory` of a `Provider` or an `@Injectable`.\n * - In the `factory` function specified for an `InjectionToken`.\n * - In a stackframe of a function call in a DI context\n *\n * @param token A token that represents a dependency that should be injected.\n * @param flags Optional flags that control how injection is executed.\n * The flags correspond to injection strategies that can be specified with\n * parameter decorators `@Host`, `@Self`, `@SkipSelf`, and `@Optional`.\n * @returns the injected value if operation is successful, `null` otherwise.\n * @throws if called outside of a supported context.\n *\n * @usageNotes\n * In practice the `inject()` calls are allowed in a constructor, a constructor parameter and a\n * field initializer:\n *\n * ```typescript\n * @Injectable({providedIn: 'root'})\n * export class Car {\n * radio: Radio|undefined;\n * // OK: field initializer\n * spareTyre = inject(Tyre);\n *\n * constructor() {\n * // OK: constructor body\n * this.radio = inject(Radio);\n * }\n * }\n * ```\n *\n * It is also legal to call `inject` from a provider's factory:\n *\n * ```typescript\n * providers: [\n * {provide: Car, useFactory: () => {\n * // OK: a class factory\n * const engine = inject(Engine);\n * return new Car(engine);\n * }}\n * ]\n * ```\n *\n * Calls to the `inject()` function outside of the class creation context will result in error. Most\n * notably, calls to `inject()` are disallowed after a class instance was created, in methods\n * (including lifecycle hooks):\n *\n * ```typescript\n * @Component({ ... })\n * export class CarComponent {\n * ngOnInit() {\n * // ERROR: too late, the component instance was already created\n * const engine = inject(Engine);\n * engine.start();\n * }\n * }\n * ```\n *\n * @publicApi\n */\nfunction inject(token, flags = InjectFlags.Default) {\n // The `as any` here _shouldn't_ be necessary, but without it JSCompiler\n // throws a disambiguation error due to the multiple signatures.\n return ɵɵinject(token, convertToBitFlags(flags));\n}\n// Converts object-based DI flags (`InjectOptions`) to bit flags (`InjectFlags`).\nfunction convertToBitFlags(flags) {\n if (typeof flags === 'undefined' || typeof flags === 'number') {\n return flags;\n }\n // While TypeScript doesn't accept it without a cast, bitwise OR with false-y values in\n // JavaScript is a no-op. We can use that for a very codesize-efficient conversion from\n // `InjectOptions` to `InjectFlags`.\n return 0 /* InternalInjectFlags.Default */ | (\n // comment to force a line break in the formatter\n flags.optional && 8 /* InternalInjectFlags.Optional */) | (flags.host && 1 /* InternalInjectFlags.Host */) | (flags.self && 2 /* InternalInjectFlags.Self */) | (flags.skipSelf && 4 /* InternalInjectFlags.SkipSelf */);\n}\nfunction injectArgs(types) {\n const args = [];\n for (let i = 0; i < types.length; i++) {\n const arg = resolveForwardRef(types[i]);\n if (Array.isArray(arg)) {\n if (arg.length === 0) {\n throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode && 'Arguments array must have arguments.');\n }\n let type = undefined;\n let flags = InjectFlags.Default;\n for (let j = 0; j < arg.length; j++) {\n const meta = arg[j];\n const flag = getInjectFlag(meta);\n if (typeof flag === 'number') {\n // Special case when we handle @Inject decorator.\n if (flag === -1 /* DecoratorFlags.Inject */) {\n type = meta.token;\n } else {\n flags |= flag;\n }\n } else {\n type = meta;\n }\n }\n args.push(ɵɵinject(type, flags));\n } else {\n args.push(ɵɵinject(arg));\n }\n }\n return args;\n}\n/**\n * Attaches a given InjectFlag to a given decorator using monkey-patching.\n * Since DI decorators can be used in providers `deps` array (when provider is configured using\n * `useFactory`) without initialization (e.g. `Host`) and as an instance (e.g. `new Host()`), we\n * attach the flag to make it available both as a static property and as a field on decorator\n * instance.\n *\n * @param decorator Provided DI decorator.\n * @param flag InjectFlag that should be applied.\n */\nfunction attachInjectFlag(decorator, flag) {\n decorator[DI_DECORATOR_FLAG] = flag;\n decorator.prototype[DI_DECORATOR_FLAG] = flag;\n return decorator;\n}\n/**\n * Reads monkey-patched property that contains InjectFlag attached to a decorator.\n *\n * @param token Token that may contain monkey-patched DI flags property.\n */\nfunction getInjectFlag(token) {\n return token[DI_DECORATOR_FLAG];\n}\nfunction catchInjectorError(e, token, injectorErrorName, source) {\n const tokenPath = e[NG_TEMP_TOKEN_PATH];\n if (token[SOURCE]) {\n tokenPath.unshift(token[SOURCE]);\n }\n e.message = formatError('\\n' + e.message, tokenPath, injectorErrorName, source);\n e[NG_TOKEN_PATH] = tokenPath;\n e[NG_TEMP_TOKEN_PATH] = null;\n throw e;\n}\nfunction formatError(text, obj, injectorErrorName, source = null) {\n text = text && text.charAt(0) === '\\n' && text.charAt(1) == NO_NEW_LINE ? text.slice(2) : text;\n let context = stringify(obj);\n if (Array.isArray(obj)) {\n context = obj.map(stringify).join(' -> ');\n } else if (typeof obj === 'object') {\n let parts = [];\n for (let key in obj) {\n if (obj.hasOwnProperty(key)) {\n let value = obj[key];\n parts.push(key + ':' + (typeof value === 'string' ? JSON.stringify(value) : stringify(value)));\n }\n }\n context = `{${parts.join(', ')}}`;\n }\n return `${injectorErrorName}${source ? '(' + source + ')' : ''}[${context}]: ${text.replace(NEW_LINE, '\\n ')}`;\n}\n\n/**\n * Inject decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Inject = /*#__PURE__*/attachInjectFlag(\n/*#__PURE__*/\n// Disable tslint because `DecoratorFlags` is a const enum which gets inlined.\nmakeParamDecorator('Inject', token => ({\n token\n})), -1 /* DecoratorFlags.Inject */);\n/**\n * Optional decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Optional =\n/*#__PURE__*/\n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag( /*#__PURE__*/makeParamDecorator('Optional'), 8 /* InternalInjectFlags.Optional */);\n/**\n * Self decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Self =\n/*#__PURE__*/\n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag( /*#__PURE__*/makeParamDecorator('Self'), 2 /* InternalInjectFlags.Self */);\n/**\n * `SkipSelf` decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst SkipSelf =\n/*#__PURE__*/\n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag( /*#__PURE__*/makeParamDecorator('SkipSelf'), 4 /* InternalInjectFlags.SkipSelf */);\n/**\n * Host decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Host =\n/*#__PURE__*/\n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag( /*#__PURE__*/makeParamDecorator('Host'), 1 /* InternalInjectFlags.Host */);\nfunction getFactoryDef(type, throwNotFound) {\n const hasFactoryDef = type.hasOwnProperty(NG_FACTORY_DEF);\n if (!hasFactoryDef && throwNotFound === true && ngDevMode) {\n throw new Error(`Type ${stringify(type)} does not have 'ɵfac' property.`);\n }\n return hasFactoryDef ? type[NG_FACTORY_DEF] : null;\n}\n\n/**\n * Determines if the contents of two arrays is identical\n *\n * @param a first array\n * @param b second array\n * @param identityAccessor Optional function for extracting stable object identity from a value in\n * the array.\n */\nfunction arrayEquals(a, b, identityAccessor) {\n if (a.length !== b.length) return false;\n for (let i = 0; i < a.length; i++) {\n let valueA = a[i];\n let valueB = b[i];\n if (identityAccessor) {\n valueA = identityAccessor(valueA);\n valueB = identityAccessor(valueB);\n }\n if (valueB !== valueA) {\n return false;\n }\n }\n return true;\n}\n/**\n * Flattens an array.\n */\nfunction flatten(list) {\n return list.flat(Number.POSITIVE_INFINITY);\n}\nfunction deepForEach(input, fn) {\n input.forEach(value => Array.isArray(value) ? deepForEach(value, fn) : fn(value));\n}\nfunction addToArray(arr, index, value) {\n // perf: array.push is faster than array.splice!\n if (index >= arr.length) {\n arr.push(value);\n } else {\n arr.splice(index, 0, value);\n }\n}\nfunction removeFromArray(arr, index) {\n // perf: array.pop is faster than array.splice!\n if (index >= arr.length - 1) {\n return arr.pop();\n } else {\n return arr.splice(index, 1)[0];\n }\n}\nfunction newArray(size, value) {\n const list = [];\n for (let i = 0; i < size; i++) {\n list.push(value);\n }\n return list;\n}\n/**\n * Remove item from array (Same as `Array.splice()` but faster.)\n *\n * `Array.splice()` is not as fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * https://jsperf.com/fast-array-splice (About 20x faster)\n *\n * @param array Array to splice\n * @param index Index of element in array to remove.\n * @param count Number of items to remove.\n */\nfunction arraySplice(array, index, count) {\n const length = array.length - count;\n while (index < length) {\n array[index] = array[index + count];\n index++;\n }\n while (count--) {\n array.pop(); // shrink the array\n }\n}\n/**\n * Same as `Array.splice(index, 0, value)` but faster.\n *\n * `Array.splice()` is not fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * @param array Array to splice.\n * @param index Index in array where the `value` should be added.\n * @param value Value to add to array.\n */\nfunction arrayInsert(array, index, value) {\n ngDevMode && assertLessThanOrEqual(index, array.length, \"Can't insert past array end.\");\n let end = array.length;\n while (end > index) {\n const previousEnd = end - 1;\n array[end] = array[previousEnd];\n end = previousEnd;\n }\n array[index] = value;\n}\n/**\n * Same as `Array.splice2(index, 0, value1, value2)` but faster.\n *\n * `Array.splice()` is not fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * @param array Array to splice.\n * @param index Index in array where the `value` should be added.\n * @param value1 Value to add to array.\n * @param value2 Value to add to array.\n */\nfunction arrayInsert2(array, index, value1, value2) {\n ngDevMode && assertLessThanOrEqual(index, array.length, \"Can't insert past array end.\");\n let end = array.length;\n if (end == index) {\n // inserting at the end.\n array.push(value1, value2);\n } else if (end === 1) {\n // corner case when we have less items in array than we have items to insert.\n array.push(value2, array[0]);\n array[0] = value1;\n } else {\n end--;\n array.push(array[end - 1], array[end]);\n while (end > index) {\n const previousEnd = end - 2;\n array[end] = array[previousEnd];\n end--;\n }\n array[index] = value1;\n array[index + 1] = value2;\n }\n}\n/**\n * Get an index of an `value` in a sorted `array`.\n *\n * NOTE:\n * - This uses binary search algorithm for fast removals.\n *\n * @param array A sorted array to binary search.\n * @param value The value to look for.\n * @returns index of the value.\n * - positive index if value found.\n * - negative index if value not found. (`~index` to get the value where it should have been\n * located)\n */\nfunction arrayIndexOfSorted(array, value) {\n return _arrayIndexOfSorted(array, value, 0);\n}\n/**\n * Set a `value` for a `key`.\n *\n * @param keyValueArray to modify.\n * @param key The key to locate or create.\n * @param value The value to set for a `key`.\n * @returns index (always even) of where the value vas set.\n */\nfunction keyValueArraySet(keyValueArray, key, value) {\n let index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it set it.\n keyValueArray[index | 1] = value;\n } else {\n index = ~index;\n arrayInsert2(keyValueArray, index, key, value);\n }\n return index;\n}\n/**\n * Retrieve a `value` for a `key` (on `undefined` if not found.)\n *\n * @param keyValueArray to search.\n * @param key The key to locate.\n * @return The `value` stored at the `key` location or `undefined if not found.\n */\nfunction keyValueArrayGet(keyValueArray, key) {\n const index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it retrieve it.\n return keyValueArray[index | 1];\n }\n return undefined;\n}\n/**\n * Retrieve a `key` index value in the array or `-1` if not found.\n *\n * @param keyValueArray to search.\n * @param key The key to locate.\n * @returns index of where the key is (or should have been.)\n * - positive (even) index if key found.\n * - negative index if key not found. (`~index` (even) to get the index where it should have\n * been inserted.)\n */\nfunction keyValueArrayIndexOf(keyValueArray, key) {\n return _arrayIndexOfSorted(keyValueArray, key, 1);\n}\n/**\n * Delete a `key` (and `value`) from the `KeyValueArray`.\n *\n * @param keyValueArray to modify.\n * @param key The key to locate or delete (if exist).\n * @returns index of where the key was (or should have been.)\n * - positive (even) index if key found and deleted.\n * - negative index if key not found. (`~index` (even) to get the index where it should have\n * been.)\n */\nfunction keyValueArrayDelete(keyValueArray, key) {\n const index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it remove it.\n arraySplice(keyValueArray, index, 2);\n }\n return index;\n}\n/**\n * INTERNAL: Get an index of an `value` in a sorted `array` by grouping search by `shift`.\n *\n * NOTE:\n * - This uses binary search algorithm for fast removals.\n *\n * @param array A sorted array to binary search.\n * @param value The value to look for.\n * @param shift grouping shift.\n * - `0` means look at every location\n * - `1` means only look at every other (even) location (the odd locations are to be ignored as\n * they are values.)\n * @returns index of the value.\n * - positive index if value found.\n * - negative index if value not found. (`~index` to get the value where it should have been\n * inserted)\n */\nfunction _arrayIndexOfSorted(array, value, shift) {\n ngDevMode && assertEqual(Array.isArray(array), true, 'Expecting an array');\n let start = 0;\n let end = array.length >> shift;\n while (end !== start) {\n const middle = start + (end - start >> 1); // find the middle.\n const current = array[middle << shift];\n if (value === current) {\n return middle << shift;\n } else if (current > value) {\n end = middle;\n } else {\n start = middle + 1; // We already searched middle so make it non-inclusive by adding 1\n }\n }\n return ~(end << shift);\n}\n\n/**\n * This file contains reuseable \"empty\" symbols that can be used as default return values\n * in different parts of the rendering code. Because the same symbols are returned, this\n * allows for identity checks against these values to be consistently used by the framework\n * code.\n */\nconst EMPTY_OBJ = {};\nconst EMPTY_ARRAY = [];\n// freezing the values prevents any code from accidentally inserting new values in\nif ((typeof ngDevMode === 'undefined' || ngDevMode) && /*#__PURE__*/initNgDevMode()) {\n // These property accesses can be ignored because ngDevMode will be set to false\n // when optimizing code and the whole if statement will be dropped.\n // tslint:disable-next-line:no-toplevel-property-access\n /*#__PURE__*/Object.freeze(EMPTY_OBJ);\n // tslint:disable-next-line:no-toplevel-property-access\n /*#__PURE__*/Object.freeze(EMPTY_ARRAY);\n}\n\n/**\n * A multi-provider token for initialization functions that will run upon construction of an\n * environment injector.\n *\n * Note: As opposed to the `APP_INITIALIZER` token, the `ENVIRONMENT_INITIALIZER` functions are not awaited,\n * hence they should not be `async`.\n *\n * @publicApi\n */\nconst ENVIRONMENT_INITIALIZER = /*#__PURE__*/new InjectionToken(ngDevMode ? 'ENVIRONMENT_INITIALIZER' : '');\n\n/**\n * An InjectionToken that gets the current `Injector` for `createInjector()`-style injectors.\n *\n * Requesting this token instead of `Injector` allows `StaticInjector` to be tree-shaken from a\n * project.\n *\n * @publicApi\n */\nconst INJECTOR$1 = /*#__PURE__*/new InjectionToken(ngDevMode ? 'INJECTOR' : '',\n// Disable tslint because this is const enum which gets inlined not top level prop access.\n// tslint:disable-next-line: no-toplevel-property-access\n-1 /* InjectorMarkers.Injector */);\nconst INJECTOR_DEF_TYPES = /*#__PURE__*/new InjectionToken(ngDevMode ? 'INJECTOR_DEF_TYPES' : '');\nclass NullInjector {\n get(token, notFoundValue = THROW_IF_NOT_FOUND) {\n if (notFoundValue === THROW_IF_NOT_FOUND) {\n const error = new Error(`NullInjectorError: No provider for ${stringify(token)}!`);\n error.name = 'NullInjectorError';\n throw error;\n }\n return notFoundValue;\n }\n}\n\n/**\n * The strategy that the default change detector uses to detect changes.\n * When set, takes effect the next time change detection is triggered.\n *\n * @see [Change detection usage](/api/core/ChangeDetectorRef?tab=usage-notes)\n * @see [Skipping component subtrees](/best-practices/skipping-subtrees)\n *\n * @publicApi\n */\nvar ChangeDetectionStrategy = /*#__PURE__*/function (ChangeDetectionStrategy) {\n /**\n * Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated\n * until reactivated by setting the strategy to `Default` (`CheckAlways`).\n * Change detection can still be explicitly invoked.\n * This strategy applies to all child directives and cannot be overridden.\n */\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"OnPush\"] = 0] = \"OnPush\";\n /**\n * Use the default `CheckAlways` strategy, in which change detection is automatic until\n * explicitly deactivated.\n */\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"Default\"] = 1] = \"Default\";\n return ChangeDetectionStrategy;\n}(ChangeDetectionStrategy || {});\n/**\n * Defines the CSS styles encapsulation policies for the {@link Component} decorator's\n * `encapsulation` option.\n *\n * See {@link Component#encapsulation encapsulation}.\n *\n * @usageNotes\n * ### Example\n *\n * {@example core/ts/metadata/encapsulation.ts region='longform'}\n *\n * @publicApi\n */\nvar ViewEncapsulation$1 = /*#__PURE__*/function (ViewEncapsulation) {\n // TODO: consider making `ViewEncapsulation` a `const enum` instead. See\n // https://github.com/angular/angular/issues/44119 for additional information.\n /**\n * Emulates a native Shadow DOM encapsulation behavior by adding a specific attribute to the\n * component's host element and applying the same attribute to all the CSS selectors provided\n * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls}.\n *\n * This is the default option.\n */\n ViewEncapsulation[ViewEncapsulation[\"Emulated\"] = 0] = \"Emulated\";\n // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.\n /**\n * Doesn't provide any sort of CSS style encapsulation, meaning that all the styles provided\n * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls} are applicable\n * to any HTML element of the application regardless of their host Component.\n */\n ViewEncapsulation[ViewEncapsulation[\"None\"] = 2] = \"None\";\n /**\n * Uses the browser's native Shadow DOM API to encapsulate CSS styles, meaning that it creates\n * a ShadowRoot for the component's host element which is then used to encapsulate\n * all the Component's styling.\n */\n ViewEncapsulation[ViewEncapsulation[\"ShadowDom\"] = 3] = \"ShadowDom\";\n return ViewEncapsulation;\n}(ViewEncapsulation$1 || {});\n/** Flags describing an input for a directive. */\nvar InputFlags = /*#__PURE__*/function (InputFlags) {\n InputFlags[InputFlags[\"None\"] = 0] = \"None\";\n InputFlags[InputFlags[\"SignalBased\"] = 1] = \"SignalBased\";\n InputFlags[InputFlags[\"HasDecoratorInputTransform\"] = 2] = \"HasDecoratorInputTransform\";\n return InputFlags;\n}(InputFlags || {});\n/**\n * Returns an index of `classToSearch` in `className` taking token boundaries into account.\n *\n * `classIndexOf('AB A', 'A', 0)` will be 3 (not 0 since `AB!==A`)\n *\n * @param className A string containing classes (whitespace separated)\n * @param classToSearch A class name to locate\n * @param startingIndex Starting location of search\n * @returns an index of the located class (or -1 if not found)\n */\nfunction classIndexOf(className, classToSearch, startingIndex) {\n ngDevMode && assertNotEqual(classToSearch, '', 'can not look for \"\" string.');\n let end = className.length;\n while (true) {\n const foundIndex = className.indexOf(classToSearch, startingIndex);\n if (foundIndex === -1) return foundIndex;\n if (foundIndex === 0 || className.charCodeAt(foundIndex - 1) <= 32 /* CharCode.SPACE */) {\n // Ensure that it has leading whitespace\n const length = classToSearch.length;\n if (foundIndex + length === end || className.charCodeAt(foundIndex + length) <= 32 /* CharCode.SPACE */) {\n // Ensure that it has trailing whitespace\n return foundIndex;\n }\n }\n // False positive, keep searching from where we left off.\n startingIndex = foundIndex + 1;\n }\n}\n\n/**\n * Assigns all attribute values to the provided element via the inferred renderer.\n *\n * This function accepts two forms of attribute entries:\n *\n * default: (key, value):\n * attrs = [key1, value1, key2, value2]\n *\n * namespaced: (NAMESPACE_MARKER, uri, name, value)\n * attrs = [NAMESPACE_MARKER, uri, name, value, NAMESPACE_MARKER, uri, name, value]\n *\n * The `attrs` array can contain a mix of both the default and namespaced entries.\n * The \"default\" values are set without a marker, but if the function comes across\n * a marker value then it will attempt to set a namespaced value. If the marker is\n * not of a namespaced value then the function will quit and return the index value\n * where it stopped during the iteration of the attrs array.\n *\n * See [AttributeMarker] to understand what the namespace marker value is.\n *\n * Note that this instruction does not support assigning style and class values to\n * an element. See `elementStart` and `elementHostAttrs` to learn how styling values\n * are applied to an element.\n * @param renderer The renderer to be used\n * @param native The element that the attributes will be assigned to\n * @param attrs The attribute array of values that will be assigned to the element\n * @returns the index value that was last accessed in the attributes array\n */\nfunction setUpAttributes(renderer, native, attrs) {\n let i = 0;\n while (i < attrs.length) {\n const value = attrs[i];\n if (typeof value === 'number') {\n // only namespaces are supported. Other value types (such as style/class\n // entries) are not supported in this function.\n if (value !== 0 /* AttributeMarker.NamespaceURI */) {\n break;\n }\n // we just landed on the marker value ... therefore\n // we should skip to the next entry\n i++;\n const namespaceURI = attrs[i++];\n const attrName = attrs[i++];\n const attrVal = attrs[i++];\n ngDevMode && ngDevMode.rendererSetAttribute++;\n renderer.setAttribute(native, attrName, attrVal, namespaceURI);\n } else {\n // attrName is string;\n const attrName = value;\n const attrVal = attrs[++i];\n // Standard attributes\n ngDevMode && ngDevMode.rendererSetAttribute++;\n if (isAnimationProp(attrName)) {\n renderer.setProperty(native, attrName, attrVal);\n } else {\n renderer.setAttribute(native, attrName, attrVal);\n }\n i++;\n }\n }\n // another piece of code may iterate over the same attributes array. Therefore\n // it may be helpful to return the exact spot where the attributes array exited\n // whether by running into an unsupported marker or if all the static values were\n // iterated over.\n return i;\n}\n/**\n * Test whether the given value is a marker that indicates that the following\n * attribute values in a `TAttributes` array are only the names of attributes,\n * and not name-value pairs.\n * @param marker The attribute marker to test.\n * @returns true if the marker is a \"name-only\" marker (e.g. `Bindings`, `Template` or `I18n`).\n */\nfunction isNameOnlyAttributeMarker(marker) {\n return marker === 3 /* AttributeMarker.Bindings */ || marker === 4 /* AttributeMarker.Template */ || marker === 6 /* AttributeMarker.I18n */;\n}\nfunction isAnimationProp(name) {\n // Perf note: accessing charCodeAt to check for the first character of a string is faster as\n // compared to accessing a character at index 0 (ex. name[0]). The main reason for this is that\n // charCodeAt doesn't allocate memory to return a substring.\n return name.charCodeAt(0) === 64 /* CharCode.AT_SIGN */;\n}\n/**\n * Merges `src` `TAttributes` into `dst` `TAttributes` removing any duplicates in the process.\n *\n * This merge function keeps the order of attrs same.\n *\n * @param dst Location of where the merged `TAttributes` should end up.\n * @param src `TAttributes` which should be appended to `dst`\n */\nfunction mergeHostAttrs(dst, src) {\n if (src === null || src.length === 0) {\n // do nothing\n } else if (dst === null || dst.length === 0) {\n // We have source, but dst is empty, just make a copy.\n dst = src.slice();\n } else {\n let srcMarker = -1 /* AttributeMarker.ImplicitAttributes */;\n for (let i = 0; i < src.length; i++) {\n const item = src[i];\n if (typeof item === 'number') {\n srcMarker = item;\n } else {\n if (srcMarker === 0 /* AttributeMarker.NamespaceURI */) {\n // Case where we need to consume `key1`, `key2`, `value` items.\n } else if (srcMarker === -1 /* AttributeMarker.ImplicitAttributes */ || srcMarker === 2 /* AttributeMarker.Styles */) {\n // Case where we have to consume `key1` and `value` only.\n mergeHostAttribute(dst, srcMarker, item, null, src[++i]);\n } else {\n // Case where we have to consume `key1` only.\n mergeHostAttribute(dst, srcMarker, item, null, null);\n }\n }\n }\n }\n return dst;\n}\n/**\n * Append `key`/`value` to existing `TAttributes` taking region marker and duplicates into account.\n *\n * @param dst `TAttributes` to append to.\n * @param marker Region where the `key`/`value` should be added.\n * @param key1 Key to add to `TAttributes`\n * @param key2 Key to add to `TAttributes` (in case of `AttributeMarker.NamespaceURI`)\n * @param value Value to add or to overwrite to `TAttributes` Only used if `marker` is not Class.\n */\nfunction mergeHostAttribute(dst, marker, key1, key2, value) {\n let i = 0;\n // Assume that new markers will be inserted at the end.\n let markerInsertPosition = dst.length;\n // scan until correct type.\n if (marker === -1 /* AttributeMarker.ImplicitAttributes */) {\n markerInsertPosition = -1;\n } else {\n while (i < dst.length) {\n const dstValue = dst[i++];\n if (typeof dstValue === 'number') {\n if (dstValue === marker) {\n markerInsertPosition = -1;\n break;\n } else if (dstValue > marker) {\n // We need to save this as we want the markers to be inserted in specific order.\n markerInsertPosition = i - 1;\n break;\n }\n }\n }\n }\n // search until you find place of insertion\n while (i < dst.length) {\n const item = dst[i];\n if (typeof item === 'number') {\n // since `i` started as the index after the marker, we did not find it if we are at the next\n // marker\n break;\n } else if (item === key1) {\n // We already have same token\n if (key2 === null) {\n if (value !== null) {\n dst[i + 1] = value;\n }\n return;\n } else if (key2 === dst[i + 1]) {\n dst[i + 2] = value;\n return;\n }\n }\n // Increment counter.\n i++;\n if (key2 !== null) i++;\n if (value !== null) i++;\n }\n // insert at location.\n if (markerInsertPosition !== -1) {\n dst.splice(markerInsertPosition, 0, marker);\n i = markerInsertPosition + 1;\n }\n dst.splice(i++, 0, key1);\n if (key2 !== null) {\n dst.splice(i++, 0, key2);\n }\n if (value !== null) {\n dst.splice(i++, 0, value);\n }\n}\nconst NG_TEMPLATE_SELECTOR = 'ng-template';\n/**\n * Search the `TAttributes` to see if it contains `cssClassToMatch` (case insensitive)\n *\n * @param tNode static data of the node to match\n * @param attrs `TAttributes` to search through.\n * @param cssClassToMatch class to match (lowercase)\n * @param isProjectionMode Whether or not class matching should look into the attribute `class` in\n * addition to the `AttributeMarker.Classes`.\n */\nfunction isCssClassMatching(tNode, attrs, cssClassToMatch, isProjectionMode) {\n ngDevMode && assertEqual(cssClassToMatch, cssClassToMatch.toLowerCase(), 'Class name expected to be lowercase.');\n let i = 0;\n if (isProjectionMode) {\n for (; i < attrs.length && typeof attrs[i] === 'string'; i += 2) {\n // Search for an implicit `class` attribute and check if its value matches `cssClassToMatch`.\n if (attrs[i] === 'class' && classIndexOf(attrs[i + 1].toLowerCase(), cssClassToMatch, 0) !== -1) {\n return true;\n }\n }\n } else if (isInlineTemplate(tNode)) {\n // Matching directives (i.e. when not matching for projection mode) should not consider the\n // class bindings that are present on inline templates, as those class bindings only target\n // the root node of the template, not the template itself.\n return false;\n }\n // Resume the search for classes after the `Classes` marker.\n i = attrs.indexOf(1 /* AttributeMarker.Classes */, i);\n if (i > -1) {\n // We found the classes section. Start searching for the class.\n let item;\n while (++i < attrs.length && typeof (item = attrs[i]) === 'string') {\n if (item.toLowerCase() === cssClassToMatch) {\n return true;\n }\n }\n }\n return false;\n}\n/**\n * Checks whether the `tNode` represents an inline template (e.g. `*ngFor`).\n *\n * @param tNode current TNode\n */\nfunction isInlineTemplate(tNode) {\n return tNode.type === 4 /* TNodeType.Container */ && tNode.value !== NG_TEMPLATE_SELECTOR;\n}\n/**\n * Function that checks whether a given tNode matches tag-based selector and has a valid type.\n *\n * Matching can be performed in 2 modes: projection mode (when we project nodes) and regular\n * directive matching mode:\n * - in the \"directive matching\" mode we do _not_ take TContainer's tagName into account if it is\n * different from NG_TEMPLATE_SELECTOR (value different from NG_TEMPLATE_SELECTOR indicates that a\n * tag name was extracted from * syntax so we would match the same directive twice);\n * - in the \"projection\" mode, we use a tag name potentially extracted from the * syntax processing\n * (applicable to TNodeType.Container only).\n */\nfunction hasTagAndTypeMatch(tNode, currentSelector, isProjectionMode) {\n const tagNameToCompare = tNode.type === 4 /* TNodeType.Container */ && !isProjectionMode ? NG_TEMPLATE_SELECTOR : tNode.value;\n return currentSelector === tagNameToCompare;\n}\n/**\n * A utility function to match an Ivy node static data against a simple CSS selector\n *\n * @param tNode static data of the node to match\n * @param selector The selector to try matching against the node.\n * @param isProjectionMode if `true` we are matching for content projection, otherwise we are doing\n * directive matching.\n * @returns true if node matches the selector.\n */\nfunction isNodeMatchingSelector(tNode, selector, isProjectionMode) {\n ngDevMode && assertDefined(selector[0], 'Selector should have a tag name');\n let mode = 4 /* SelectorFlags.ELEMENT */;\n const nodeAttrs = tNode.attrs;\n // Find the index of first attribute that has no value, only a name.\n const nameOnlyMarkerIdx = nodeAttrs !== null ? getNameOnlyMarkerIndex(nodeAttrs) : 0;\n // When processing \":not\" selectors, we skip to the next \":not\" if the\n // current one doesn't match\n let skipToNextSelector = false;\n for (let i = 0; i < selector.length; i++) {\n const current = selector[i];\n if (typeof current === 'number') {\n // If we finish processing a :not selector and it hasn't failed, return false\n if (!skipToNextSelector && !isPositive(mode) && !isPositive(current)) {\n return false;\n }\n // If we are skipping to the next :not() and this mode flag is positive,\n // it's a part of the current :not() selector, and we should keep skipping\n if (skipToNextSelector && isPositive(current)) continue;\n skipToNextSelector = false;\n mode = current | mode & 1 /* SelectorFlags.NOT */;\n continue;\n }\n if (skipToNextSelector) continue;\n if (mode & 4 /* SelectorFlags.ELEMENT */) {\n mode = 2 /* SelectorFlags.ATTRIBUTE */ | mode & 1 /* SelectorFlags.NOT */;\n if (current !== '' && !hasTagAndTypeMatch(tNode, current, isProjectionMode) || current === '' && selector.length === 1) {\n if (isPositive(mode)) return false;\n skipToNextSelector = true;\n }\n } else if (mode & 8 /* SelectorFlags.CLASS */) {\n if (nodeAttrs === null || !isCssClassMatching(tNode, nodeAttrs, current, isProjectionMode)) {\n if (isPositive(mode)) return false;\n skipToNextSelector = true;\n }\n } else {\n const selectorAttrValue = selector[++i];\n const attrIndexInNode = findAttrIndexInNode(current, nodeAttrs, isInlineTemplate(tNode), isProjectionMode);\n if (attrIndexInNode === -1) {\n if (isPositive(mode)) return false;\n skipToNextSelector = true;\n continue;\n }\n if (selectorAttrValue !== '') {\n let nodeAttrValue;\n if (attrIndexInNode > nameOnlyMarkerIdx) {\n nodeAttrValue = '';\n } else {\n ngDevMode && assertNotEqual(nodeAttrs[attrIndexInNode], 0 /* AttributeMarker.NamespaceURI */, 'We do not match directives on namespaced attributes');\n // we lowercase the attribute value to be able to match\n // selectors without case-sensitivity\n // (selectors are already in lowercase when generated)\n nodeAttrValue = nodeAttrs[attrIndexInNode + 1].toLowerCase();\n }\n if (mode & 2 /* SelectorFlags.ATTRIBUTE */ && selectorAttrValue !== nodeAttrValue) {\n if (isPositive(mode)) return false;\n skipToNextSelector = true;\n }\n }\n }\n }\n return isPositive(mode) || skipToNextSelector;\n}\nfunction isPositive(mode) {\n return (mode & 1 /* SelectorFlags.NOT */) === 0;\n}\n/**\n * Examines the attribute's definition array for a node to find the index of the\n * attribute that matches the given `name`.\n *\n * NOTE: This will not match namespaced attributes.\n *\n * Attribute matching depends upon `isInlineTemplate` and `isProjectionMode`.\n * The following table summarizes which types of attributes we attempt to match:\n *\n * ===========================================================================================================\n * Modes | Normal Attributes | Bindings Attributes | Template Attributes | I18n\n * Attributes\n * ===========================================================================================================\n * Inline + Projection | YES | YES | NO | YES\n * -----------------------------------------------------------------------------------------------------------\n * Inline + Directive | NO | NO | YES | NO\n * -----------------------------------------------------------------------------------------------------------\n * Non-inline + Projection | YES | YES | NO | YES\n * -----------------------------------------------------------------------------------------------------------\n * Non-inline + Directive | YES | YES | NO | YES\n * ===========================================================================================================\n *\n * @param name the name of the attribute to find\n * @param attrs the attribute array to examine\n * @param isInlineTemplate true if the node being matched is an inline template (e.g. `*ngFor`)\n * rather than a manually expanded template node (e.g ``).\n * @param isProjectionMode true if we are matching against content projection otherwise we are\n * matching against directives.\n */\nfunction findAttrIndexInNode(name, attrs, isInlineTemplate, isProjectionMode) {\n if (attrs === null) return -1;\n let i = 0;\n if (isProjectionMode || !isInlineTemplate) {\n let bindingsMode = false;\n while (i < attrs.length) {\n const maybeAttrName = attrs[i];\n if (maybeAttrName === name) {\n return i;\n } else if (maybeAttrName === 3 /* AttributeMarker.Bindings */ || maybeAttrName === 6 /* AttributeMarker.I18n */) {\n bindingsMode = true;\n } else if (maybeAttrName === 1 /* AttributeMarker.Classes */ || maybeAttrName === 2 /* AttributeMarker.Styles */) {\n let value = attrs[++i];\n // We should skip classes here because we have a separate mechanism for\n // matching classes in projection mode.\n while (typeof value === 'string') {\n value = attrs[++i];\n }\n continue;\n } else if (maybeAttrName === 4 /* AttributeMarker.Template */) {\n // We do not care about Template attributes in this scenario.\n break;\n } else if (maybeAttrName === 0 /* AttributeMarker.NamespaceURI */) {\n // Skip the whole namespaced attribute and value. This is by design.\n i += 4;\n continue;\n }\n // In binding mode there are only names, rather than name-value pairs.\n i += bindingsMode ? 1 : 2;\n }\n // We did not match the attribute\n return -1;\n } else {\n return matchTemplateAttribute(attrs, name);\n }\n}\nfunction isNodeMatchingSelectorList(tNode, selector, isProjectionMode = false) {\n for (let i = 0; i < selector.length; i++) {\n if (isNodeMatchingSelector(tNode, selector[i], isProjectionMode)) {\n return true;\n }\n }\n return false;\n}\nfunction getProjectAsAttrValue(tNode) {\n const nodeAttrs = tNode.attrs;\n if (nodeAttrs != null) {\n const ngProjectAsAttrIdx = nodeAttrs.indexOf(5 /* AttributeMarker.ProjectAs */);\n // only check for ngProjectAs in attribute names, don't accidentally match attribute's value\n // (attribute names are stored at even indexes)\n if ((ngProjectAsAttrIdx & 1) === 0) {\n return nodeAttrs[ngProjectAsAttrIdx + 1];\n }\n }\n return null;\n}\nfunction getNameOnlyMarkerIndex(nodeAttrs) {\n for (let i = 0; i < nodeAttrs.length; i++) {\n const nodeAttr = nodeAttrs[i];\n if (isNameOnlyAttributeMarker(nodeAttr)) {\n return i;\n }\n }\n return nodeAttrs.length;\n}\nfunction matchTemplateAttribute(attrs, name) {\n let i = attrs.indexOf(4 /* AttributeMarker.Template */);\n if (i > -1) {\n i++;\n while (i < attrs.length) {\n const attr = attrs[i];\n // Return in case we checked all template attrs and are switching to the next section in the\n // attrs array (that starts with a number that represents an attribute marker).\n if (typeof attr === 'number') return -1;\n if (attr === name) return i;\n i++;\n }\n }\n return -1;\n}\n/**\n * Checks whether a selector is inside a CssSelectorList\n * @param selector Selector to be checked.\n * @param list List in which to look for the selector.\n */\nfunction isSelectorInSelectorList(selector, list) {\n selectorListLoop: for (let i = 0; i < list.length; i++) {\n const currentSelectorInList = list[i];\n if (selector.length !== currentSelectorInList.length) {\n continue;\n }\n for (let j = 0; j < selector.length; j++) {\n if (selector[j] !== currentSelectorInList[j]) {\n continue selectorListLoop;\n }\n }\n return true;\n }\n return false;\n}\nfunction maybeWrapInNotSelector(isNegativeMode, chunk) {\n return isNegativeMode ? ':not(' + chunk.trim() + ')' : chunk;\n}\nfunction stringifyCSSSelector(selector) {\n let result = selector[0];\n let i = 1;\n let mode = 2 /* SelectorFlags.ATTRIBUTE */;\n let currentChunk = '';\n let isNegativeMode = false;\n while (i < selector.length) {\n let valueOrMarker = selector[i];\n if (typeof valueOrMarker === 'string') {\n if (mode & 2 /* SelectorFlags.ATTRIBUTE */) {\n const attrValue = selector[++i];\n currentChunk += '[' + valueOrMarker + (attrValue.length > 0 ? '=\"' + attrValue + '\"' : '') + ']';\n } else if (mode & 8 /* SelectorFlags.CLASS */) {\n currentChunk += '.' + valueOrMarker;\n } else if (mode & 4 /* SelectorFlags.ELEMENT */) {\n currentChunk += ' ' + valueOrMarker;\n }\n } else {\n //\n // Append current chunk to the final result in case we come across SelectorFlag, which\n // indicates that the previous section of a selector is over. We need to accumulate content\n // between flags to make sure we wrap the chunk later in :not() selector if needed, e.g.\n // ```\n // ['', Flags.CLASS, '.classA', Flags.CLASS | Flags.NOT, '.classB', '.classC']\n // ```\n // should be transformed to `.classA :not(.classB .classC)`.\n //\n // Note: for negative selector part, we accumulate content between flags until we find the\n // next negative flag. This is needed to support a case where `:not()` rule contains more than\n // one chunk, e.g. the following selector:\n // ```\n // ['', Flags.ELEMENT | Flags.NOT, 'p', Flags.CLASS, 'foo', Flags.CLASS | Flags.NOT, 'bar']\n // ```\n // should be stringified to `:not(p.foo) :not(.bar)`\n //\n if (currentChunk !== '' && !isPositive(valueOrMarker)) {\n result += maybeWrapInNotSelector(isNegativeMode, currentChunk);\n currentChunk = '';\n }\n mode = valueOrMarker;\n // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative\n // mode is maintained for remaining chunks of a selector.\n isNegativeMode = isNegativeMode || !isPositive(mode);\n }\n i++;\n }\n if (currentChunk !== '') {\n result += maybeWrapInNotSelector(isNegativeMode, currentChunk);\n }\n return result;\n}\n/**\n * Generates string representation of CSS selector in parsed form.\n *\n * ComponentDef and DirectiveDef are generated with the selector in parsed form to avoid doing\n * additional parsing at runtime (for example, for directive matching). However in some cases (for\n * example, while bootstrapping a component), a string version of the selector is required to query\n * for the host element on the page. This function takes the parsed form of a selector and returns\n * its string representation.\n *\n * @param selectorList selector in parsed form\n * @returns string representation of a given selector\n */\nfunction stringifyCSSSelectorList(selectorList) {\n return selectorList.map(stringifyCSSSelector).join(',');\n}\n/**\n * Extracts attributes and classes information from a given CSS selector.\n *\n * This function is used while creating a component dynamically. In this case, the host element\n * (that is created dynamically) should contain attributes and classes specified in component's CSS\n * selector.\n *\n * @param selector CSS selector in parsed form (in a form of array)\n * @returns object with `attrs` and `classes` fields that contain extracted information\n */\nfunction extractAttrsAndClassesFromSelector(selector) {\n const attrs = [];\n const classes = [];\n let i = 1;\n let mode = 2 /* SelectorFlags.ATTRIBUTE */;\n while (i < selector.length) {\n let valueOrMarker = selector[i];\n if (typeof valueOrMarker === 'string') {\n if (mode === 2 /* SelectorFlags.ATTRIBUTE */) {\n if (valueOrMarker !== '') {\n attrs.push(valueOrMarker, selector[++i]);\n }\n } else if (mode === 8 /* SelectorFlags.CLASS */) {\n classes.push(valueOrMarker);\n }\n } else {\n // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative\n // mode is maintained for remaining chunks of a selector. Since attributes and classes are\n // extracted only for \"positive\" part of the selector, we can stop here.\n if (!isPositive(mode)) break;\n mode = valueOrMarker;\n }\n i++;\n }\n return {\n attrs,\n classes\n };\n}\n\n/**\n * Create a component definition object.\n *\n *\n * # Example\n * ```\n * class MyComponent {\n * // Generated by Angular Template Compiler\n * // [Symbol] syntax will not be supported by TypeScript until v2.7\n * static ɵcmp = defineComponent({\n * ...\n * });\n * }\n * ```\n * @codeGenApi\n */\nfunction ɵɵdefineComponent(componentDefinition) {\n return noSideEffects(() => {\n // Initialize ngDevMode. This must be the first statement in ɵɵdefineComponent.\n // See the `initNgDevMode` docstring for more information.\n (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();\n const baseDef = getNgDirectiveDef(componentDefinition);\n const def = {\n ...baseDef,\n decls: componentDefinition.decls,\n vars: componentDefinition.vars,\n template: componentDefinition.template,\n consts: componentDefinition.consts || null,\n ngContentSelectors: componentDefinition.ngContentSelectors,\n onPush: componentDefinition.changeDetection === ChangeDetectionStrategy.OnPush,\n directiveDefs: null,\n // assigned in noSideEffects\n pipeDefs: null,\n // assigned in noSideEffects\n dependencies: baseDef.standalone && componentDefinition.dependencies || null,\n getStandaloneInjector: null,\n signals: componentDefinition.signals ?? false,\n data: componentDefinition.data || {},\n encapsulation: componentDefinition.encapsulation || ViewEncapsulation$1.Emulated,\n styles: componentDefinition.styles || EMPTY_ARRAY,\n _: null,\n schemas: componentDefinition.schemas || null,\n tView: null,\n id: ''\n };\n initFeatures(def);\n const dependencies = componentDefinition.dependencies;\n def.directiveDefs = extractDefListOrFactory(dependencies, /* pipeDef */false);\n def.pipeDefs = extractDefListOrFactory(dependencies, /* pipeDef */true);\n def.id = getComponentId(def);\n return def;\n });\n}\nfunction extractDirectiveDef(type) {\n return getComponentDef(type) || getDirectiveDef(type);\n}\nfunction nonNull(value) {\n return value !== null;\n}\n/**\n * @codeGenApi\n */\nfunction ɵɵdefineNgModule(def) {\n return noSideEffects(() => {\n const res = {\n type: def.type,\n bootstrap: def.bootstrap || EMPTY_ARRAY,\n declarations: def.declarations || EMPTY_ARRAY,\n imports: def.imports || EMPTY_ARRAY,\n exports: def.exports || EMPTY_ARRAY,\n transitiveCompileScopes: null,\n schemas: def.schemas || null,\n id: def.id || null\n };\n return res;\n });\n}\nfunction parseAndConvertBindingsForDefinition(obj, declaredInputs) {\n if (obj == null) return EMPTY_OBJ;\n const newLookup = {};\n for (const minifiedKey in obj) {\n if (obj.hasOwnProperty(minifiedKey)) {\n const value = obj[minifiedKey];\n let publicName;\n let declaredName;\n let inputFlags = InputFlags.None;\n if (Array.isArray(value)) {\n inputFlags = value[0];\n publicName = value[1];\n declaredName = value[2] ?? publicName; // declared name might not be set to save bytes.\n } else {\n publicName = value;\n declaredName = value;\n }\n // For inputs, capture the declared name, or if some flags are set.\n if (declaredInputs) {\n // Perf note: An array is only allocated for the input if there are flags.\n newLookup[publicName] = inputFlags !== InputFlags.None ? [minifiedKey, inputFlags] : minifiedKey;\n declaredInputs[publicName] = declaredName;\n } else {\n newLookup[publicName] = minifiedKey;\n }\n }\n }\n return newLookup;\n}\n/**\n * Create a directive definition object.\n *\n * # Example\n * ```ts\n * class MyDirective {\n * // Generated by Angular Template Compiler\n * // [Symbol] syntax will not be supported by TypeScript until v2.7\n * static ɵdir = ɵɵdefineDirective({\n * ...\n * });\n * }\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵdefineDirective(directiveDefinition) {\n return noSideEffects(() => {\n const def = getNgDirectiveDef(directiveDefinition);\n initFeatures(def);\n return def;\n });\n}\n/**\n * Create a pipe definition object.\n *\n * # Example\n * ```\n * class MyPipe implements PipeTransform {\n * // Generated by Angular Template Compiler\n * static ɵpipe = definePipe({\n * ...\n * });\n * }\n * ```\n * @param pipeDef Pipe definition generated by the compiler\n *\n * @codeGenApi\n */\nfunction ɵɵdefinePipe(pipeDef) {\n return {\n type: pipeDef.type,\n name: pipeDef.name,\n factory: null,\n pure: pipeDef.pure !== false,\n standalone: pipeDef.standalone === true,\n onDestroy: pipeDef.type.prototype.ngOnDestroy || null\n };\n}\n/**\n * The following getter methods retrieve the definition from the type. Currently the retrieval\n * honors inheritance, but in the future we may change the rule to require that definitions are\n * explicit. This would require some sort of migration strategy.\n */\nfunction getComponentDef(type) {\n return type[NG_COMP_DEF] || null;\n}\nfunction getDirectiveDef(type) {\n return type[NG_DIR_DEF] || null;\n}\nfunction getPipeDef$1(type) {\n return type[NG_PIPE_DEF] || null;\n}\n/**\n * Checks whether a given Component, Directive or Pipe is marked as standalone.\n * This will return false if passed anything other than a Component, Directive, or Pipe class\n * See [this guide](guide/components/importing) for additional information:\n *\n * @param type A reference to a Component, Directive or Pipe.\n * @publicApi\n */\nfunction isStandalone(type) {\n const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);\n return def !== null ? def.standalone : false;\n}\nfunction getNgModuleDef(type, throwNotFound) {\n const ngModuleDef = type[NG_MOD_DEF] || null;\n if (!ngModuleDef && throwNotFound === true) {\n throw new Error(`Type ${stringify(type)} does not have 'ɵmod' property.`);\n }\n return ngModuleDef;\n}\nfunction getNgDirectiveDef(directiveDefinition) {\n const declaredInputs = {};\n return {\n type: directiveDefinition.type,\n providersResolver: null,\n factory: null,\n hostBindings: directiveDefinition.hostBindings || null,\n hostVars: directiveDefinition.hostVars || 0,\n hostAttrs: directiveDefinition.hostAttrs || null,\n contentQueries: directiveDefinition.contentQueries || null,\n declaredInputs: declaredInputs,\n inputTransforms: null,\n inputConfig: directiveDefinition.inputs || EMPTY_OBJ,\n exportAs: directiveDefinition.exportAs || null,\n standalone: directiveDefinition.standalone === true,\n signals: directiveDefinition.signals === true,\n selectors: directiveDefinition.selectors || EMPTY_ARRAY,\n viewQuery: directiveDefinition.viewQuery || null,\n features: directiveDefinition.features || null,\n setInput: null,\n findHostDirectiveDefs: null,\n hostDirectives: null,\n inputs: parseAndConvertBindingsForDefinition(directiveDefinition.inputs, declaredInputs),\n outputs: parseAndConvertBindingsForDefinition(directiveDefinition.outputs),\n debugInfo: null\n };\n}\nfunction initFeatures(definition) {\n definition.features?.forEach(fn => fn(definition));\n}\nfunction extractDefListOrFactory(dependencies, pipeDef) {\n if (!dependencies) {\n return null;\n }\n const defExtractor = pipeDef ? getPipeDef$1 : extractDirectiveDef;\n return () => (typeof dependencies === 'function' ? dependencies() : dependencies).map(dep => defExtractor(dep)).filter(nonNull);\n}\n/**\n * A map that contains the generated component IDs and type.\n */\nconst GENERATED_COMP_IDS = /*#__PURE__*/new Map();\n/**\n * A method can returns a component ID from the component definition using a variant of DJB2 hash\n * algorithm.\n */\nfunction getComponentId(componentDef) {\n let hash = 0;\n // We cannot rely solely on the component selector as the same selector can be used in different\n // modules.\n //\n // `componentDef.style` is not used, due to it causing inconsistencies. Ex: when server\n // component styles has no sourcemaps and browsers do.\n //\n // Example:\n // https://github.com/angular/components/blob/d9f82c8f95309e77a6d82fd574c65871e91354c2/src/material/core/option/option.ts#L248\n // https://github.com/angular/components/blob/285f46dc2b4c5b127d356cb7c4714b221f03ce50/src/material/legacy-core/option/option.ts#L32\n const hashSelectors = [componentDef.selectors, componentDef.ngContentSelectors, componentDef.hostVars, componentDef.hostAttrs, componentDef.consts, componentDef.vars, componentDef.decls, componentDef.encapsulation, componentDef.standalone, componentDef.signals, componentDef.exportAs, JSON.stringify(componentDef.inputs), JSON.stringify(componentDef.outputs),\n // We cannot use 'componentDef.type.name' as the name of the symbol will change and will not\n // match in the server and browser bundles.\n Object.getOwnPropertyNames(componentDef.type.prototype), !!componentDef.contentQueries, !!componentDef.viewQuery].join('|');\n for (const char of hashSelectors) {\n hash = Math.imul(31, hash) + char.charCodeAt(0) << 0;\n }\n // Force positive number hash.\n // 2147483647 = equivalent of Integer.MAX_VALUE.\n hash += 2147483647 + 1;\n const compId = 'c' + hash;\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (GENERATED_COMP_IDS.has(compId)) {\n const previousCompDefType = GENERATED_COMP_IDS.get(compId);\n if (previousCompDefType !== componentDef.type) {\n console.warn(formatRuntimeError(-912 /* RuntimeErrorCode.COMPONENT_ID_COLLISION */, `Component ID generation collision detected. Components '${previousCompDefType.name}' and '${componentDef.type.name}' with selector '${stringifyCSSSelectorList(componentDef.selectors)}' generated the same component ID. To fix this, you can change the selector of one of those components or add an extra host attribute to force a different ID.`));\n }\n } else {\n GENERATED_COMP_IDS.set(compId, componentDef.type);\n }\n }\n return compId;\n}\n\n/**\n * Wrap an array of `Provider`s into `EnvironmentProviders`, preventing them from being accidentally\n * referenced in `@Component` in a component injector.\n */\nfunction makeEnvironmentProviders(providers) {\n return {\n ɵproviders: providers\n };\n}\n/**\n * Collects providers from all NgModules and standalone components, including transitively imported\n * ones.\n *\n * Providers extracted via `importProvidersFrom` are only usable in an application injector or\n * another environment injector (such as a route injector). They should not be used in component\n * providers.\n *\n * More information about standalone components can be found in [this\n * guide](guide/components/importing).\n *\n * @usageNotes\n * The results of the `importProvidersFrom` call can be used in the `bootstrapApplication` call:\n *\n * ```typescript\n * await bootstrapApplication(RootComponent, {\n * providers: [\n * importProvidersFrom(NgModuleOne, NgModuleTwo)\n * ]\n * });\n * ```\n *\n * You can also use the `importProvidersFrom` results in the `providers` field of a route, when a\n * standalone component is used:\n *\n * ```typescript\n * export const ROUTES: Route[] = [\n * {\n * path: 'foo',\n * providers: [\n * importProvidersFrom(NgModuleOne, NgModuleTwo)\n * ],\n * component: YourStandaloneComponent\n * }\n * ];\n * ```\n *\n * @returns Collected providers from the specified list of types.\n * @publicApi\n */\nfunction importProvidersFrom(...sources) {\n return {\n ɵproviders: internalImportProvidersFrom(true, sources),\n ɵfromNgModule: true\n };\n}\nfunction internalImportProvidersFrom(checkForStandaloneCmp, ...sources) {\n const providersOut = [];\n const dedup = new Set(); // already seen types\n let injectorTypesWithProviders;\n const collectProviders = provider => {\n providersOut.push(provider);\n };\n deepForEach(sources, source => {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && checkForStandaloneCmp) {\n const cmpDef = getComponentDef(source);\n if (cmpDef?.standalone) {\n throw new RuntimeError(800 /* RuntimeErrorCode.IMPORT_PROVIDERS_FROM_STANDALONE */, `Importing providers supports NgModule or ModuleWithProviders but got a standalone component \"${stringifyForError(source)}\"`);\n }\n }\n // Narrow `source` to access the internal type analogue for `ModuleWithProviders`.\n const internalSource = source;\n if (walkProviderTree(internalSource, collectProviders, [], dedup)) {\n injectorTypesWithProviders ||= [];\n injectorTypesWithProviders.push(internalSource);\n }\n });\n // Collect all providers from `ModuleWithProviders` types.\n if (injectorTypesWithProviders !== undefined) {\n processInjectorTypesWithProviders(injectorTypesWithProviders, collectProviders);\n }\n return providersOut;\n}\n/**\n * Collects all providers from the list of `ModuleWithProviders` and appends them to the provided\n * array.\n */\nfunction processInjectorTypesWithProviders(typesWithProviders, visitor) {\n for (let i = 0; i < typesWithProviders.length; i++) {\n const {\n ngModule,\n providers\n } = typesWithProviders[i];\n deepForEachProvider(providers, provider => {\n ngDevMode && validateProvider(provider, providers || EMPTY_ARRAY, ngModule);\n visitor(provider, ngModule);\n });\n }\n}\n/**\n * The logic visits an `InjectorType`, an `InjectorTypeWithProviders`, or a standalone\n * `ComponentType`, and all of its transitive providers and collects providers.\n *\n * If an `InjectorTypeWithProviders` that declares providers besides the type is specified,\n * the function will return \"true\" to indicate that the providers of the type definition need\n * to be processed. This allows us to process providers of injector types after all imports of\n * an injector definition are processed. (following View Engine semantics: see FW-1349)\n */\nfunction walkProviderTree(container, visitor, parents, dedup) {\n container = resolveForwardRef(container);\n if (!container) return false;\n // The actual type which had the definition. Usually `container`, but may be an unwrapped type\n // from `InjectorTypeWithProviders`.\n let defType = null;\n let injDef = getInjectorDef(container);\n const cmpDef = !injDef && getComponentDef(container);\n if (!injDef && !cmpDef) {\n // `container` is not an injector type or a component type. It might be:\n // * An `InjectorTypeWithProviders` that wraps an injector type.\n // * A standalone directive or pipe that got pulled in from a standalone component's\n // dependencies.\n // Try to unwrap it as an `InjectorTypeWithProviders` first.\n const ngModule = container.ngModule;\n injDef = getInjectorDef(ngModule);\n if (injDef) {\n defType = ngModule;\n } else {\n // Not a component or injector type, so ignore it.\n return false;\n }\n } else if (cmpDef && !cmpDef.standalone) {\n return false;\n } else {\n defType = container;\n }\n // Check for circular dependencies.\n if (ngDevMode && parents.indexOf(defType) !== -1) {\n const defName = stringify(defType);\n const path = parents.map(stringify);\n throwCyclicDependencyError(defName, path);\n }\n // Check for multiple imports of the same module\n const isDuplicate = dedup.has(defType);\n if (cmpDef) {\n if (isDuplicate) {\n // This component definition has already been processed.\n return false;\n }\n dedup.add(defType);\n if (cmpDef.dependencies) {\n const deps = typeof cmpDef.dependencies === 'function' ? cmpDef.dependencies() : cmpDef.dependencies;\n for (const dep of deps) {\n walkProviderTree(dep, visitor, parents, dedup);\n }\n }\n } else if (injDef) {\n // First, include providers from any imports.\n if (injDef.imports != null && !isDuplicate) {\n // Before processing defType's imports, add it to the set of parents. This way, if it ends\n // up deeply importing itself, this can be detected.\n ngDevMode && parents.push(defType);\n // Add it to the set of dedups. This way we can detect multiple imports of the same module\n dedup.add(defType);\n let importTypesWithProviders;\n try {\n deepForEach(injDef.imports, imported => {\n if (walkProviderTree(imported, visitor, parents, dedup)) {\n importTypesWithProviders ||= [];\n // If the processed import is an injector type with providers, we store it in the\n // list of import types with providers, so that we can process those afterwards.\n importTypesWithProviders.push(imported);\n }\n });\n } finally {\n // Remove it from the parents set when finished.\n ngDevMode && parents.pop();\n }\n // Imports which are declared with providers (TypeWithProviders) need to be processed\n // after all imported modules are processed. This is similar to how View Engine\n // processes/merges module imports in the metadata resolver. See: FW-1349.\n if (importTypesWithProviders !== undefined) {\n processInjectorTypesWithProviders(importTypesWithProviders, visitor);\n }\n }\n if (!isDuplicate) {\n // Track the InjectorType and add a provider for it.\n // It's important that this is done after the def's imports.\n const factory = getFactoryDef(defType) || (() => new defType());\n // Append extra providers to make more info available for consumers (to retrieve an injector\n // type), as well as internally (to calculate an injection scope correctly and eagerly\n // instantiate a `defType` when an injector is created).\n // Provider to create `defType` using its factory.\n visitor({\n provide: defType,\n useFactory: factory,\n deps: EMPTY_ARRAY\n }, defType);\n // Make this `defType` available to an internal logic that calculates injector scope.\n visitor({\n provide: INJECTOR_DEF_TYPES,\n useValue: defType,\n multi: true\n }, defType);\n // Provider to eagerly instantiate `defType` via `INJECTOR_INITIALIZER`.\n visitor({\n provide: ENVIRONMENT_INITIALIZER,\n useValue: () => ɵɵinject(defType),\n multi: true\n }, defType);\n }\n // Next, include providers listed on the definition itself.\n const defProviders = injDef.providers;\n if (defProviders != null && !isDuplicate) {\n const injectorType = container;\n deepForEachProvider(defProviders, provider => {\n ngDevMode && validateProvider(provider, defProviders, injectorType);\n visitor(provider, injectorType);\n });\n }\n } else {\n // Should not happen, but just in case.\n return false;\n }\n return defType !== container && container.providers !== undefined;\n}\nfunction validateProvider(provider, providers, containerType) {\n if (isTypeProvider(provider) || isValueProvider(provider) || isFactoryProvider(provider) || isExistingProvider(provider)) {\n return;\n }\n // Here we expect the provider to be a `useClass` provider (by elimination).\n const classRef = resolveForwardRef(provider && (provider.useClass || provider.provide));\n if (!classRef) {\n throwInvalidProviderError(containerType, providers, provider);\n }\n}\nfunction deepForEachProvider(providers, fn) {\n for (let provider of providers) {\n if (isEnvironmentProviders(provider)) {\n provider = provider.ɵproviders;\n }\n if (Array.isArray(provider)) {\n deepForEachProvider(provider, fn);\n } else {\n fn(provider);\n }\n }\n}\nconst USE_VALUE$1 = /*#__PURE__*/getClosureSafeProperty({\n provide: String,\n useValue: getClosureSafeProperty\n});\nfunction isValueProvider(value) {\n return value !== null && typeof value == 'object' && USE_VALUE$1 in value;\n}\nfunction isExistingProvider(value) {\n return !!(value && value.useExisting);\n}\nfunction isFactoryProvider(value) {\n return !!(value && value.useFactory);\n}\nfunction isTypeProvider(value) {\n return typeof value === 'function';\n}\nfunction isClassProvider(value) {\n return !!value.useClass;\n}\n\n/**\n * An internal token whose presence in an injector indicates that the injector should treat itself\n * as a root scoped injector when processing requests for unknown tokens which may indicate\n * they are provided in the root scope.\n */\nconst INJECTOR_SCOPE = /*#__PURE__*/new InjectionToken(ngDevMode ? 'Set Injector scope.' : '');\n\n/**\n * Marker which indicates that a value has not yet been created from the factory function.\n */\nconst NOT_YET = {};\n/**\n * Marker which indicates that the factory function for a token is in the process of being called.\n *\n * If the injector is asked to inject a token with its value set to CIRCULAR, that indicates\n * injection of a dependency has recursively attempted to inject the original token, and there is\n * a circular dependency among the providers.\n */\nconst CIRCULAR = {};\n/**\n * A lazily initialized NullInjector.\n */\nlet NULL_INJECTOR = undefined;\nfunction getNullInjector() {\n if (NULL_INJECTOR === undefined) {\n NULL_INJECTOR = new NullInjector();\n }\n return NULL_INJECTOR;\n}\n/**\n * An `Injector` that's part of the environment injector hierarchy, which exists outside of the\n * component tree.\n */\nclass EnvironmentInjector {}\nclass R3Injector extends EnvironmentInjector {\n /**\n * Flag indicating that this injector was previously destroyed.\n */\n get destroyed() {\n return this._destroyed;\n }\n constructor(providers, parent, source, scopes) {\n super();\n this.parent = parent;\n this.source = source;\n this.scopes = scopes;\n /**\n * Map of tokens to records which contain the instances of those tokens.\n * - `null` value implies that we don't have the record. Used by tree-shakable injectors\n * to prevent further searches.\n */\n this.records = new Map();\n /**\n * Set of values instantiated by this injector which contain `ngOnDestroy` lifecycle hooks.\n */\n this._ngOnDestroyHooks = new Set();\n this._onDestroyHooks = [];\n this._destroyed = false;\n // Start off by creating Records for every provider.\n forEachSingleProvider(providers, provider => this.processProvider(provider));\n // Make sure the INJECTOR token provides this injector.\n this.records.set(INJECTOR$1, makeRecord(undefined, this));\n // And `EnvironmentInjector` if the current injector is supposed to be env-scoped.\n if (scopes.has('environment')) {\n this.records.set(EnvironmentInjector, makeRecord(undefined, this));\n }\n // Detect whether this injector has the APP_ROOT_SCOPE token and thus should provide\n // any injectable scoped to APP_ROOT_SCOPE.\n const record = this.records.get(INJECTOR_SCOPE);\n if (record != null && typeof record.value === 'string') {\n this.scopes.add(record.value);\n }\n this.injectorDefTypes = new Set(this.get(INJECTOR_DEF_TYPES, EMPTY_ARRAY, InjectFlags.Self));\n }\n /**\n * Destroy the injector and release references to every instance or provider associated with it.\n *\n * Also calls the `OnDestroy` lifecycle hooks of every instance that was created for which a\n * hook was found.\n */\n destroy() {\n this.assertNotDestroyed();\n // Set destroyed = true first, in case lifecycle hooks re-enter destroy().\n this._destroyed = true;\n const prevConsumer = setActiveConsumer$1(null);\n try {\n // Call all the lifecycle hooks.\n for (const service of this._ngOnDestroyHooks) {\n service.ngOnDestroy();\n }\n const onDestroyHooks = this._onDestroyHooks;\n // Reset the _onDestroyHooks array before iterating over it to prevent hooks that unregister\n // themselves from mutating the array during iteration.\n this._onDestroyHooks = [];\n for (const hook of onDestroyHooks) {\n hook();\n }\n } finally {\n // Release all references.\n this.records.clear();\n this._ngOnDestroyHooks.clear();\n this.injectorDefTypes.clear();\n setActiveConsumer$1(prevConsumer);\n }\n }\n onDestroy(callback) {\n this.assertNotDestroyed();\n this._onDestroyHooks.push(callback);\n return () => this.removeOnDestroy(callback);\n }\n runInContext(fn) {\n this.assertNotDestroyed();\n const previousInjector = setCurrentInjector(this);\n const previousInjectImplementation = setInjectImplementation(undefined);\n let prevInjectContext;\n if (ngDevMode) {\n prevInjectContext = setInjectorProfilerContext({\n injector: this,\n token: null\n });\n }\n try {\n return fn();\n } finally {\n setCurrentInjector(previousInjector);\n setInjectImplementation(previousInjectImplementation);\n ngDevMode && setInjectorProfilerContext(prevInjectContext);\n }\n }\n get(token, notFoundValue = THROW_IF_NOT_FOUND, flags = InjectFlags.Default) {\n this.assertNotDestroyed();\n if (token.hasOwnProperty(NG_ENV_ID)) {\n return token[NG_ENV_ID](this);\n }\n flags = convertToBitFlags(flags);\n // Set the injection context.\n let prevInjectContext;\n if (ngDevMode) {\n prevInjectContext = setInjectorProfilerContext({\n injector: this,\n token: token\n });\n }\n const previousInjector = setCurrentInjector(this);\n const previousInjectImplementation = setInjectImplementation(undefined);\n try {\n // Check for the SkipSelf flag.\n if (!(flags & InjectFlags.SkipSelf)) {\n // SkipSelf isn't set, check if the record belongs to this injector.\n let record = this.records.get(token);\n if (record === undefined) {\n // No record, but maybe the token is scoped to this injector. Look for an injectable\n // def with a scope matching this injector.\n const def = couldBeInjectableType(token) && getInjectableDef(token);\n if (def && this.injectableDefInScope(def)) {\n // Found an injectable def and it's scoped to this injector. Pretend as if it was here\n // all along.\n if (ngDevMode) {\n runInInjectorProfilerContext(this, token, () => {\n emitProviderConfiguredEvent(token);\n });\n }\n record = makeRecord(injectableDefOrInjectorDefFactory(token), NOT_YET);\n } else {\n record = null;\n }\n this.records.set(token, record);\n }\n // If a record was found, get the instance for it and return it.\n if (record != null /* NOT null || undefined */) {\n return this.hydrate(token, record);\n }\n }\n // Select the next injector based on the Self flag - if self is set, the next injector is\n // the NullInjector, otherwise it's the parent.\n const nextInjector = !(flags & InjectFlags.Self) ? this.parent : getNullInjector();\n // Set the notFoundValue based on the Optional flag - if optional is set and notFoundValue\n // is undefined, the value is null, otherwise it's the notFoundValue.\n notFoundValue = flags & InjectFlags.Optional && notFoundValue === THROW_IF_NOT_FOUND ? null : notFoundValue;\n return nextInjector.get(token, notFoundValue);\n } catch (e) {\n if (e.name === 'NullInjectorError') {\n const path = e[NG_TEMP_TOKEN_PATH] = e[NG_TEMP_TOKEN_PATH] || [];\n path.unshift(stringify(token));\n if (previousInjector) {\n // We still have a parent injector, keep throwing\n throw e;\n } else {\n // Format & throw the final error message when we don't have any previous injector\n return catchInjectorError(e, token, 'R3InjectorError', this.source);\n }\n } else {\n throw e;\n }\n } finally {\n // Lastly, restore the previous injection context.\n setInjectImplementation(previousInjectImplementation);\n setCurrentInjector(previousInjector);\n ngDevMode && setInjectorProfilerContext(prevInjectContext);\n }\n }\n /** @internal */\n resolveInjectorInitializers() {\n const prevConsumer = setActiveConsumer$1(null);\n const previousInjector = setCurrentInjector(this);\n const previousInjectImplementation = setInjectImplementation(undefined);\n let prevInjectContext;\n if (ngDevMode) {\n prevInjectContext = setInjectorProfilerContext({\n injector: this,\n token: null\n });\n }\n try {\n const initializers = this.get(ENVIRONMENT_INITIALIZER, EMPTY_ARRAY, InjectFlags.Self);\n if (ngDevMode && !Array.isArray(initializers)) {\n throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `ENVIRONMENT_INITIALIZER` token value ' + `(expected an array, but got ${typeof initializers}). ` + 'Please check that the `ENVIRONMENT_INITIALIZER` token is configured as a ' + '`multi: true` provider.');\n }\n for (const initializer of initializers) {\n initializer();\n }\n } finally {\n setCurrentInjector(previousInjector);\n setInjectImplementation(previousInjectImplementation);\n ngDevMode && setInjectorProfilerContext(prevInjectContext);\n setActiveConsumer$1(prevConsumer);\n }\n }\n toString() {\n const tokens = [];\n const records = this.records;\n for (const token of records.keys()) {\n tokens.push(stringify(token));\n }\n return `R3Injector[${tokens.join(', ')}]`;\n }\n assertNotDestroyed() {\n if (this._destroyed) {\n throw new RuntimeError(205 /* RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED */, ngDevMode && 'Injector has already been destroyed.');\n }\n }\n /**\n * Process a `SingleProvider` and add it.\n */\n processProvider(provider) {\n // Determine the token from the provider. Either it's its own token, or has a {provide: ...}\n // property.\n provider = resolveForwardRef(provider);\n let token = isTypeProvider(provider) ? provider : resolveForwardRef(provider && provider.provide);\n // Construct a `Record` for the provider.\n const record = providerToRecord(provider);\n if (ngDevMode) {\n runInInjectorProfilerContext(this, token, () => {\n // Emit InjectorProfilerEventType.Create if provider is a value provider because\n // these are the only providers that do not go through the value hydration logic\n // where this event would normally be emitted from.\n if (isValueProvider(provider)) {\n emitInstanceCreatedByInjectorEvent(provider.useValue);\n }\n emitProviderConfiguredEvent(provider);\n });\n }\n if (!isTypeProvider(provider) && provider.multi === true) {\n // If the provider indicates that it's a multi-provider, process it specially.\n // First check whether it's been defined already.\n let multiRecord = this.records.get(token);\n if (multiRecord) {\n // It has. Throw a nice error if\n if (ngDevMode && multiRecord.multi === undefined) {\n throwMixedMultiProviderError();\n }\n } else {\n multiRecord = makeRecord(undefined, NOT_YET, true);\n multiRecord.factory = () => injectArgs(multiRecord.multi);\n this.records.set(token, multiRecord);\n }\n token = provider;\n multiRecord.multi.push(provider);\n } else {\n if (ngDevMode) {\n const existing = this.records.get(token);\n if (existing && existing.multi !== undefined) {\n throwMixedMultiProviderError();\n }\n }\n }\n this.records.set(token, record);\n }\n hydrate(token, record) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n if (ngDevMode && record.value === CIRCULAR) {\n throwCyclicDependencyError(stringify(token));\n } else if (record.value === NOT_YET) {\n record.value = CIRCULAR;\n if (ngDevMode) {\n runInInjectorProfilerContext(this, token, () => {\n record.value = record.factory();\n emitInstanceCreatedByInjectorEvent(record.value);\n });\n } else {\n record.value = record.factory();\n }\n }\n if (typeof record.value === 'object' && record.value && hasOnDestroy(record.value)) {\n this._ngOnDestroyHooks.add(record.value);\n }\n return record.value;\n } finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n injectableDefInScope(def) {\n if (!def.providedIn) {\n return false;\n }\n const providedIn = resolveForwardRef(def.providedIn);\n if (typeof providedIn === 'string') {\n return providedIn === 'any' || this.scopes.has(providedIn);\n } else {\n return this.injectorDefTypes.has(providedIn);\n }\n }\n removeOnDestroy(callback) {\n const destroyCBIdx = this._onDestroyHooks.indexOf(callback);\n if (destroyCBIdx !== -1) {\n this._onDestroyHooks.splice(destroyCBIdx, 1);\n }\n }\n}\nfunction injectableDefOrInjectorDefFactory(token) {\n // Most tokens will have an injectable def directly on them, which specifies a factory directly.\n const injectableDef = getInjectableDef(token);\n const factory = injectableDef !== null ? injectableDef.factory : getFactoryDef(token);\n if (factory !== null) {\n return factory;\n }\n // InjectionTokens should have an injectable def (ɵprov) and thus should be handled above.\n // If it's missing that, it's an error.\n if (token instanceof InjectionToken) {\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Token ${stringify(token)} is missing a ɵprov definition.`);\n }\n // Undecorated types can sometimes be created if they have no constructor arguments.\n if (token instanceof Function) {\n return getUndecoratedInjectableFactory(token);\n }\n // There was no way to resolve a factory for this token.\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && 'unreachable');\n}\nfunction getUndecoratedInjectableFactory(token) {\n // If the token has parameters then it has dependencies that we cannot resolve implicitly.\n const paramLength = token.length;\n if (paramLength > 0) {\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Can't resolve all parameters for ${stringify(token)}: (${newArray(paramLength, '?').join(', ')}).`);\n }\n // The constructor function appears to have no parameters.\n // This might be because it inherits from a super-class. In which case, use an injectable\n // def from an ancestor if there is one.\n // Otherwise this really is a simple class with no dependencies, so return a factory that\n // just instantiates the zero-arg constructor.\n const inheritedInjectableDef = getInheritedInjectableDef(token);\n if (inheritedInjectableDef !== null) {\n return () => inheritedInjectableDef.factory(token);\n } else {\n return () => new token();\n }\n}\nfunction providerToRecord(provider) {\n if (isValueProvider(provider)) {\n return makeRecord(undefined, provider.useValue);\n } else {\n const factory = providerToFactory(provider);\n return makeRecord(factory, NOT_YET);\n }\n}\n/**\n * Converts a `SingleProvider` into a factory function.\n *\n * @param provider provider to convert to factory\n */\nfunction providerToFactory(provider, ngModuleType, providers) {\n let factory = undefined;\n if (ngDevMode && isEnvironmentProviders(provider)) {\n throwInvalidProviderError(undefined, providers, provider);\n }\n if (isTypeProvider(provider)) {\n const unwrappedProvider = resolveForwardRef(provider);\n return getFactoryDef(unwrappedProvider) || injectableDefOrInjectorDefFactory(unwrappedProvider);\n } else {\n if (isValueProvider(provider)) {\n factory = () => resolveForwardRef(provider.useValue);\n } else if (isFactoryProvider(provider)) {\n factory = () => provider.useFactory(...injectArgs(provider.deps || []));\n } else if (isExistingProvider(provider)) {\n factory = () => ɵɵinject(resolveForwardRef(provider.useExisting));\n } else {\n const classRef = resolveForwardRef(provider && (provider.useClass || provider.provide));\n if (ngDevMode && !classRef) {\n throwInvalidProviderError(ngModuleType, providers, provider);\n }\n if (hasDeps(provider)) {\n factory = () => new classRef(...injectArgs(provider.deps));\n } else {\n return getFactoryDef(classRef) || injectableDefOrInjectorDefFactory(classRef);\n }\n }\n }\n return factory;\n}\nfunction makeRecord(factory, value, multi = false) {\n return {\n factory: factory,\n value: value,\n multi: multi ? [] : undefined\n };\n}\nfunction hasDeps(value) {\n return !!value.deps;\n}\nfunction hasOnDestroy(value) {\n return value !== null && typeof value === 'object' && typeof value.ngOnDestroy === 'function';\n}\nfunction couldBeInjectableType(value) {\n return typeof value === 'function' || typeof value === 'object' && value instanceof InjectionToken;\n}\nfunction forEachSingleProvider(providers, fn) {\n for (const provider of providers) {\n if (Array.isArray(provider)) {\n forEachSingleProvider(provider, fn);\n } else if (provider && isEnvironmentProviders(provider)) {\n forEachSingleProvider(provider.ɵproviders, fn);\n } else {\n fn(provider);\n }\n }\n}\n\n/**\n * Runs the given function in the [context](guide/di/dependency-injection-context) of the given\n * `Injector`.\n *\n * Within the function's stack frame, [`inject`](api/core/inject) can be used to inject dependencies\n * from the given `Injector`. Note that `inject` is only usable synchronously, and cannot be used in\n * any asynchronous callbacks or after any `await` points.\n *\n * @param injector the injector which will satisfy calls to [`inject`](api/core/inject) while `fn`\n * is executing\n * @param fn the closure to be run in the context of `injector`\n * @returns the return value of the function, if any\n * @publicApi\n */\nfunction runInInjectionContext(injector, fn) {\n if (injector instanceof R3Injector) {\n injector.assertNotDestroyed();\n }\n let prevInjectorProfilerContext;\n if (ngDevMode) {\n prevInjectorProfilerContext = setInjectorProfilerContext({\n injector,\n token: null\n });\n }\n const prevInjector = setCurrentInjector(injector);\n const previousInjectImplementation = setInjectImplementation(undefined);\n try {\n return fn();\n } finally {\n setCurrentInjector(prevInjector);\n ngDevMode && setInjectorProfilerContext(prevInjectorProfilerContext);\n setInjectImplementation(previousInjectImplementation);\n }\n}\n/**\n * Whether the current stack frame is inside an injection context.\n */\nfunction isInInjectionContext() {\n return getInjectImplementation() !== undefined || getCurrentInjector() != null;\n}\n/**\n * Asserts that the current stack frame is within an [injection\n * context](guide/di/dependency-injection-context) and has access to `inject`.\n *\n * @param debugFn a reference to the function making the assertion (used for the error message).\n *\n * @publicApi\n */\nfunction assertInInjectionContext(debugFn) {\n // Taking a `Function` instead of a string name here prevents the unminified name of the function\n // from being retained in the bundle regardless of minification.\n if (!isInInjectionContext()) {\n throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, ngDevMode && debugFn.name + '() can only be used within an injection context such as a constructor, a factory function, a field initializer, or a function used with `runInInjectionContext`');\n }\n}\nvar FactoryTarget = /*#__PURE__*/function (FactoryTarget) {\n FactoryTarget[FactoryTarget[\"Directive\"] = 0] = \"Directive\";\n FactoryTarget[FactoryTarget[\"Component\"] = 1] = \"Component\";\n FactoryTarget[FactoryTarget[\"Injectable\"] = 2] = \"Injectable\";\n FactoryTarget[FactoryTarget[\"Pipe\"] = 3] = \"Pipe\";\n FactoryTarget[FactoryTarget[\"NgModule\"] = 4] = \"NgModule\";\n return FactoryTarget;\n}(FactoryTarget || {});\nvar R3TemplateDependencyKind = /*#__PURE__*/function (R3TemplateDependencyKind) {\n R3TemplateDependencyKind[R3TemplateDependencyKind[\"Directive\"] = 0] = \"Directive\";\n R3TemplateDependencyKind[R3TemplateDependencyKind[\"Pipe\"] = 1] = \"Pipe\";\n R3TemplateDependencyKind[R3TemplateDependencyKind[\"NgModule\"] = 2] = \"NgModule\";\n return R3TemplateDependencyKind;\n}(R3TemplateDependencyKind || {});\nvar ViewEncapsulation = /*#__PURE__*/function (ViewEncapsulation) {\n ViewEncapsulation[ViewEncapsulation[\"Emulated\"] = 0] = \"Emulated\";\n // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.\n ViewEncapsulation[ViewEncapsulation[\"None\"] = 2] = \"None\";\n ViewEncapsulation[ViewEncapsulation[\"ShadowDom\"] = 3] = \"ShadowDom\";\n return ViewEncapsulation;\n}(ViewEncapsulation || {});\nfunction getCompilerFacade(request) {\n const globalNg = _global['ng'];\n if (globalNg && globalNg.ɵcompilerFacade) {\n return globalNg.ɵcompilerFacade;\n }\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // Log the type as an error so that a developer can easily navigate to the type from the\n // console.\n console.error(`JIT compilation failed for ${request.kind}`, request.type);\n let message = `The ${request.kind} '${request.type.name}' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available.\\n\\n`;\n if (request.usage === 1 /* JitCompilerUsage.PartialDeclaration */) {\n message += `The ${request.kind} is part of a library that has been partially compiled.\\n`;\n message += `However, the Angular Linker has not processed the library such that JIT compilation is used as fallback.\\n`;\n message += '\\n';\n message += `Ideally, the library is processed using the Angular Linker to become fully AOT compiled.\\n`;\n } else {\n message += `JIT compilation is discouraged for production use-cases! Consider using AOT mode instead.\\n`;\n }\n message += `Alternatively, the JIT compiler should be loaded by bootstrapping using '@angular/platform-browser-dynamic' or '@angular/platform-server',\\n`;\n message += `or manually provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.`;\n throw new Error(message);\n } else {\n throw new Error('JIT compiler unavailable');\n }\n}\n\n/**\n * A mapping of the @angular/core API surface used in generated expressions to the actual symbols.\n *\n * This should be kept up to date with the public exports of @angular/core.\n */\nconst angularCoreDiEnv = {\n 'ɵɵdefineInjectable': ɵɵdefineInjectable,\n 'ɵɵdefineInjector': ɵɵdefineInjector,\n 'ɵɵinject': ɵɵinject,\n 'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep,\n 'resolveForwardRef': resolveForwardRef\n};\n\n/**\n * @description\n *\n * Represents a type that a Component or other object is instances of.\n *\n * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is represented by\n * the `MyCustomComponent` constructor function.\n *\n * @publicApi\n */\nconst Type = Function;\nfunction isType(v) {\n return typeof v === 'function';\n}\n\n/*\n * #########################\n * Attention: These Regular expressions have to hold even if the code is minified!\n * ##########################\n */\n/**\n * Regular expression that detects pass-through constructors for ES5 output. This Regex\n * intends to capture the common delegation pattern emitted by TypeScript and Babel. Also\n * it intends to capture the pattern where existing constructors have been downleveled from\n * ES2015 to ES5 using TypeScript w/ downlevel iteration. e.g.\n *\n * ```\n * function MyClass() {\n * var _this = _super.apply(this, arguments) || this;\n * ```\n *\n * downleveled to ES5 with `downlevelIteration` for TypeScript < 4.2:\n * ```\n * function MyClass() {\n * var _this = _super.apply(this, __spread(arguments)) || this;\n * ```\n *\n * or downleveled to ES5 with `downlevelIteration` for TypeScript >= 4.2:\n * ```\n * function MyClass() {\n * var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this;\n * ```\n *\n * More details can be found in: https://github.com/angular/angular/issues/38453.\n */\nconst ES5_DELEGATE_CTOR = /^function\\s+\\S+\\(\\)\\s*{[\\s\\S]+\\.apply\\(this,\\s*(arguments|(?:[^()]+\\(\\[\\],)?[^()]+\\(arguments\\).*)\\)/;\n/** Regular expression that detects ES2015 classes which extend from other classes. */\nconst ES2015_INHERITED_CLASS = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{/;\n/**\n * Regular expression that detects ES2015 classes which extend from other classes and\n * have an explicit constructor defined.\n */\nconst ES2015_INHERITED_CLASS_WITH_CTOR = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{[\\s\\S]*constructor\\s*\\(/;\n/**\n * Regular expression that detects ES2015 classes which extend from other classes\n * and inherit a constructor.\n */\nconst ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{[\\s\\S]*constructor\\s*\\(\\)\\s*{[^}]*super\\(\\.\\.\\.arguments\\)/;\n/**\n * Determine whether a stringified type is a class which delegates its constructor\n * to its parent.\n *\n * This is not trivial since compiled code can actually contain a constructor function\n * even if the original source code did not. For instance, when the child class contains\n * an initialized instance property.\n */\nfunction isDelegateCtor(typeStr) {\n return ES5_DELEGATE_CTOR.test(typeStr) || ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR.test(typeStr) || ES2015_INHERITED_CLASS.test(typeStr) && !ES2015_INHERITED_CLASS_WITH_CTOR.test(typeStr);\n}\nclass ReflectionCapabilities {\n constructor(reflect) {\n this._reflect = reflect || _global['Reflect'];\n }\n factory(t) {\n return (...args) => new t(...args);\n }\n /** @internal */\n _zipTypesAndAnnotations(paramTypes, paramAnnotations) {\n let result;\n if (typeof paramTypes === 'undefined') {\n result = newArray(paramAnnotations.length);\n } else {\n result = newArray(paramTypes.length);\n }\n for (let i = 0; i < result.length; i++) {\n // TS outputs Object for parameters without types, while Traceur omits\n // the annotations. For now we preserve the Traceur behavior to aid\n // migration, but this can be revisited.\n if (typeof paramTypes === 'undefined') {\n result[i] = [];\n } else if (paramTypes[i] && paramTypes[i] != Object) {\n result[i] = [paramTypes[i]];\n } else {\n result[i] = [];\n }\n if (paramAnnotations && paramAnnotations[i] != null) {\n result[i] = result[i].concat(paramAnnotations[i]);\n }\n }\n return result;\n }\n _ownParameters(type, parentCtor) {\n const typeStr = type.toString();\n // If we have no decorators, we only have function.length as metadata.\n // In that case, to detect whether a child class declared an own constructor or not,\n // we need to look inside of that constructor to check whether it is\n // just calling the parent.\n // This also helps to work around for https://github.com/Microsoft/TypeScript/issues/12439\n // that sets 'design:paramtypes' to []\n // if a class inherits from another class but has no ctor declared itself.\n if (isDelegateCtor(typeStr)) {\n return null;\n }\n // Prefer the direct API.\n if (type.parameters && type.parameters !== parentCtor.parameters) {\n return type.parameters;\n }\n // API of tsickle for lowering decorators to properties on the class.\n const tsickleCtorParams = type.ctorParameters;\n if (tsickleCtorParams && tsickleCtorParams !== parentCtor.ctorParameters) {\n // Newer tsickle uses a function closure\n // Retain the non-function case for compatibility with older tsickle\n const ctorParameters = typeof tsickleCtorParams === 'function' ? tsickleCtorParams() : tsickleCtorParams;\n const paramTypes = ctorParameters.map(ctorParam => ctorParam && ctorParam.type);\n const paramAnnotations = ctorParameters.map(ctorParam => ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators));\n return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);\n }\n // API for metadata created by invoking the decorators.\n const paramAnnotations = type.hasOwnProperty(PARAMETERS) && type[PARAMETERS];\n const paramTypes = this._reflect && this._reflect.getOwnMetadata && this._reflect.getOwnMetadata('design:paramtypes', type);\n if (paramTypes || paramAnnotations) {\n return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);\n }\n // If a class has no decorators, at least create metadata\n // based on function.length.\n // Note: We know that this is a real constructor as we checked\n // the content of the constructor above.\n return newArray(type.length);\n }\n parameters(type) {\n // Note: only report metadata if we have at least one class decorator\n // to stay in sync with the static reflector.\n if (!isType(type)) {\n return [];\n }\n const parentCtor = getParentCtor(type);\n let parameters = this._ownParameters(type, parentCtor);\n if (!parameters && parentCtor !== Object) {\n parameters = this.parameters(parentCtor);\n }\n return parameters || [];\n }\n _ownAnnotations(typeOrFunc, parentCtor) {\n // Prefer the direct API.\n if (typeOrFunc.annotations && typeOrFunc.annotations !== parentCtor.annotations) {\n let annotations = typeOrFunc.annotations;\n if (typeof annotations === 'function' && annotations.annotations) {\n annotations = annotations.annotations;\n }\n return annotations;\n }\n // API of tsickle for lowering decorators to properties on the class.\n if (typeOrFunc.decorators && typeOrFunc.decorators !== parentCtor.decorators) {\n return convertTsickleDecoratorIntoMetadata(typeOrFunc.decorators);\n }\n // API for metadata created by invoking the decorators.\n if (typeOrFunc.hasOwnProperty(ANNOTATIONS)) {\n return typeOrFunc[ANNOTATIONS];\n }\n return null;\n }\n annotations(typeOrFunc) {\n if (!isType(typeOrFunc)) {\n return [];\n }\n const parentCtor = getParentCtor(typeOrFunc);\n const ownAnnotations = this._ownAnnotations(typeOrFunc, parentCtor) || [];\n const parentAnnotations = parentCtor !== Object ? this.annotations(parentCtor) : [];\n return parentAnnotations.concat(ownAnnotations);\n }\n _ownPropMetadata(typeOrFunc, parentCtor) {\n // Prefer the direct API.\n if (typeOrFunc.propMetadata && typeOrFunc.propMetadata !== parentCtor.propMetadata) {\n let propMetadata = typeOrFunc.propMetadata;\n if (typeof propMetadata === 'function' && propMetadata.propMetadata) {\n propMetadata = propMetadata.propMetadata;\n }\n return propMetadata;\n }\n // API of tsickle for lowering decorators to properties on the class.\n if (typeOrFunc.propDecorators && typeOrFunc.propDecorators !== parentCtor.propDecorators) {\n const propDecorators = typeOrFunc.propDecorators;\n const propMetadata = {};\n Object.keys(propDecorators).forEach(prop => {\n propMetadata[prop] = convertTsickleDecoratorIntoMetadata(propDecorators[prop]);\n });\n return propMetadata;\n }\n // API for metadata created by invoking the decorators.\n if (typeOrFunc.hasOwnProperty(PROP_METADATA)) {\n return typeOrFunc[PROP_METADATA];\n }\n return null;\n }\n propMetadata(typeOrFunc) {\n if (!isType(typeOrFunc)) {\n return {};\n }\n const parentCtor = getParentCtor(typeOrFunc);\n const propMetadata = {};\n if (parentCtor !== Object) {\n const parentPropMetadata = this.propMetadata(parentCtor);\n Object.keys(parentPropMetadata).forEach(propName => {\n propMetadata[propName] = parentPropMetadata[propName];\n });\n }\n const ownPropMetadata = this._ownPropMetadata(typeOrFunc, parentCtor);\n if (ownPropMetadata) {\n Object.keys(ownPropMetadata).forEach(propName => {\n const decorators = [];\n if (propMetadata.hasOwnProperty(propName)) {\n decorators.push(...propMetadata[propName]);\n }\n decorators.push(...ownPropMetadata[propName]);\n propMetadata[propName] = decorators;\n });\n }\n return propMetadata;\n }\n ownPropMetadata(typeOrFunc) {\n if (!isType(typeOrFunc)) {\n return {};\n }\n return this._ownPropMetadata(typeOrFunc, getParentCtor(typeOrFunc)) || {};\n }\n hasLifecycleHook(type, lcProperty) {\n return type instanceof Type && lcProperty in type.prototype;\n }\n}\nfunction convertTsickleDecoratorIntoMetadata(decoratorInvocations) {\n if (!decoratorInvocations) {\n return [];\n }\n return decoratorInvocations.map(decoratorInvocation => {\n const decoratorType = decoratorInvocation.type;\n const annotationCls = decoratorType.annotationCls;\n const annotationArgs = decoratorInvocation.args ? decoratorInvocation.args : [];\n return new annotationCls(...annotationArgs);\n });\n}\nfunction getParentCtor(ctor) {\n const parentProto = ctor.prototype ? Object.getPrototypeOf(ctor.prototype) : null;\n const parentCtor = parentProto ? parentProto.constructor : null;\n // Note: We always use `Object` as the null value\n // to simplify checking later on.\n return parentCtor || Object;\n}\n\n// Below are constants for LView indices to help us look up LView members\n// without having to remember the specific indices.\n// Uglify will inline these when minifying so there shouldn't be a cost.\nconst HOST = 0;\nconst TVIEW = 1;\n// Shared with LContainer\nconst FLAGS = 2;\nconst PARENT = 3;\nconst NEXT = 4;\nconst T_HOST = 5;\n// End shared with LContainer\nconst HYDRATION = 6;\nconst CLEANUP = 7;\nconst CONTEXT = 8;\nconst INJECTOR = 9;\nconst ENVIRONMENT = 10;\nconst RENDERER = 11;\nconst CHILD_HEAD = 12;\nconst CHILD_TAIL = 13;\n// FIXME(misko): Investigate if the three declarations aren't all same thing.\nconst DECLARATION_VIEW = 14;\nconst DECLARATION_COMPONENT_VIEW = 15;\nconst DECLARATION_LCONTAINER = 16;\nconst PREORDER_HOOK_FLAGS = 17;\nconst QUERIES = 18;\nconst ID = 19;\nconst EMBEDDED_VIEW_INJECTOR = 20;\nconst ON_DESTROY_HOOKS = 21;\nconst EFFECTS_TO_SCHEDULE = 22;\nconst REACTIVE_TEMPLATE_CONSUMER = 23;\n/**\n * Size of LView's header. Necessary to adjust for it when setting slots.\n *\n * IMPORTANT: `HEADER_OFFSET` should only be referred to the in the `ɵɵ*` instructions to translate\n * instruction index into `LView` index. All other indexes should be in the `LView` index space and\n * there should be no need to refer to `HEADER_OFFSET` anywhere else.\n */\nconst HEADER_OFFSET = 25;\n\n/**\n * Special location which allows easy identification of type. If we have an array which was\n * retrieved from the `LView` and that array has `true` at `TYPE` location, we know it is\n * `LContainer`.\n */\nconst TYPE = 1;\n/**\n * Below are constants for LContainer indices to help us look up LContainer members\n * without having to remember the specific indices.\n * Uglify will inline these when minifying so there shouldn't be a cost.\n */\n// FLAGS, PARENT, NEXT, and T_HOST are indices 2, 3, 4, and 5\n// As we already have these constants in LView, we don't need to re-create them.\nconst DEHYDRATED_VIEWS = 6;\nconst NATIVE = 7;\nconst VIEW_REFS = 8;\nconst MOVED_VIEWS = 9;\n/**\n * Size of LContainer's header. Represents the index after which all views in the\n * container will be inserted. We need to keep a record of current views so we know\n * which views are already in the DOM (and don't need to be re-added) and so we can\n * remove views from the DOM when they are no longer required.\n */\nconst CONTAINER_HEADER_OFFSET = 10;\n/** Flags associated with an LContainer (saved in LContainer[FLAGS]) */\nvar LContainerFlags = /*#__PURE__*/function (LContainerFlags) {\n LContainerFlags[LContainerFlags[\"None\"] = 0] = \"None\";\n /**\n * Flag to signify that this `LContainer` may have transplanted views which need to be change\n * detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.\n *\n * This flag, once set, is never unset for the `LContainer`.\n */\n LContainerFlags[LContainerFlags[\"HasTransplantedViews\"] = 2] = \"HasTransplantedViews\";\n return LContainerFlags;\n}(LContainerFlags || {});\n/**\n * True if `value` is `LView`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction isLView(value) {\n return Array.isArray(value) && typeof value[TYPE] === 'object';\n}\n/**\n * True if `value` is `LContainer`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction isLContainer(value) {\n return Array.isArray(value) && value[TYPE] === true;\n}\nfunction isContentQueryHost(tNode) {\n return (tNode.flags & 4 /* TNodeFlags.hasContentQuery */) !== 0;\n}\nfunction isComponentHost(tNode) {\n return tNode.componentOffset > -1;\n}\nfunction isDirectiveHost(tNode) {\n return (tNode.flags & 1 /* TNodeFlags.isDirectiveHost */) === 1 /* TNodeFlags.isDirectiveHost */;\n}\nfunction isComponentDef(def) {\n return !!def.template;\n}\nfunction isRootView(target) {\n return (target[FLAGS] & 512 /* LViewFlags.IsRoot */) !== 0;\n}\nfunction isProjectionTNode(tNode) {\n return (tNode.type & 16 /* TNodeType.Projection */) === 16 /* TNodeType.Projection */;\n}\nfunction hasI18n(lView) {\n return (lView[FLAGS] & 32 /* LViewFlags.HasI18n */) === 32 /* LViewFlags.HasI18n */;\n}\nfunction isDestroyed(lView) {\n return (lView[FLAGS] & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */;\n}\n\n// [Assert functions do not constraint type when they are guarded by a truthy\n// expression.](https://github.com/microsoft/TypeScript/issues/37295)\nfunction assertTNodeForLView(tNode, lView) {\n assertTNodeForTView(tNode, lView[TVIEW]);\n}\nfunction assertTNodeForTView(tNode, tView) {\n assertTNode(tNode);\n const tData = tView.data;\n for (let i = HEADER_OFFSET; i < tData.length; i++) {\n if (tData[i] === tNode) {\n return;\n }\n }\n throwError('This TNode does not belong to this TView.');\n}\nfunction assertTNode(tNode) {\n assertDefined(tNode, 'TNode must be defined');\n if (!(tNode && typeof tNode === 'object' && tNode.hasOwnProperty('directiveStylingLast'))) {\n throwError('Not of type TNode, got: ' + tNode);\n }\n}\nfunction assertTIcu(tIcu) {\n assertDefined(tIcu, 'Expected TIcu to be defined');\n if (!(typeof tIcu.currentCaseLViewIndex === 'number')) {\n throwError('Object is not of TIcu type.');\n }\n}\nfunction assertComponentType(actual, msg = \"Type passed in is not ComponentType, it does not have 'ɵcmp' property.\") {\n if (!getComponentDef(actual)) {\n throwError(msg);\n }\n}\nfunction assertNgModuleType(actual, msg = \"Type passed in is not NgModuleType, it does not have 'ɵmod' property.\") {\n if (!getNgModuleDef(actual)) {\n throwError(msg);\n }\n}\nfunction assertCurrentTNodeIsParent(isParent) {\n assertEqual(isParent, true, 'currentTNode should be a parent');\n}\nfunction assertHasParent(tNode) {\n assertDefined(tNode, 'currentTNode should exist!');\n assertDefined(tNode.parent, 'currentTNode should have a parent');\n}\nfunction assertLContainer(value) {\n assertDefined(value, 'LContainer must be defined');\n assertEqual(isLContainer(value), true, 'Expecting LContainer');\n}\nfunction assertLViewOrUndefined(value) {\n value && assertEqual(isLView(value), true, 'Expecting LView or undefined or null');\n}\nfunction assertLView(value) {\n assertDefined(value, 'LView must be defined');\n assertEqual(isLView(value), true, 'Expecting LView');\n}\nfunction assertFirstCreatePass(tView, errMessage) {\n assertEqual(tView.firstCreatePass, true, errMessage || 'Should only be called in first create pass.');\n}\nfunction assertFirstUpdatePass(tView, errMessage) {\n assertEqual(tView.firstUpdatePass, true, errMessage || 'Should only be called in first update pass.');\n}\n/**\n * This is a basic sanity check that an object is probably a directive def. DirectiveDef is\n * an interface, so we can't do a direct instanceof check.\n */\nfunction assertDirectiveDef(obj) {\n if (obj.type === undefined || obj.selectors == undefined || obj.inputs === undefined) {\n throwError(`Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.`);\n }\n}\nfunction assertIndexInDeclRange(tView, index) {\n assertBetween(HEADER_OFFSET, tView.bindingStartIndex, index);\n}\nfunction assertIndexInExpandoRange(lView, index) {\n const tView = lView[1];\n assertBetween(tView.expandoStartIndex, lView.length, index);\n}\nfunction assertBetween(lower, upper, index) {\n if (!(lower <= index && index < upper)) {\n throwError(`Index out of range (expecting ${lower} <= ${index} < ${upper})`);\n }\n}\nfunction assertProjectionSlots(lView, errMessage) {\n assertDefined(lView[DECLARATION_COMPONENT_VIEW], 'Component views should exist.');\n assertDefined(lView[DECLARATION_COMPONENT_VIEW][T_HOST].projection, errMessage || 'Components with projection nodes () must have projection slots defined.');\n}\nfunction assertParentView(lView, errMessage) {\n assertDefined(lView, errMessage || \"Component views should always have a parent view (component's host view)\");\n}\nfunction assertNoDuplicateDirectives(directives) {\n // The array needs at least two elements in order to have duplicates.\n if (directives.length < 2) {\n return;\n }\n const seenDirectives = new Set();\n for (const current of directives) {\n if (seenDirectives.has(current)) {\n throw new RuntimeError(309 /* RuntimeErrorCode.DUPLICATE_DIRECTIVE */, `Directive ${current.type.name} matches multiple times on the same element. ` + `Directives can only match an element once.`);\n }\n seenDirectives.add(current);\n }\n}\n/**\n * This is a basic sanity check that the `injectorIndex` seems to point to what looks like a\n * NodeInjector data structure.\n *\n * @param lView `LView` which should be checked.\n * @param injectorIndex index into the `LView` where the `NodeInjector` is expected.\n */\nfunction assertNodeInjector(lView, injectorIndex) {\n assertIndexInExpandoRange(lView, injectorIndex);\n assertIndexInExpandoRange(lView, injectorIndex + 8 /* NodeInjectorOffset.PARENT */);\n assertNumber(lView[injectorIndex + 0], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 1], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 2], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 3], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 4], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 5], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 6], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 7], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */], 'injectorIndex should point to parent injector');\n}\n\n/**\n * Represents a basic change from a previous to a new value for a single\n * property on a directive instance. Passed as a value in a\n * {@link SimpleChanges} object to the `ngOnChanges` hook.\n *\n * @see {@link OnChanges}\n *\n * @publicApi\n */\nclass SimpleChange {\n constructor(previousValue, currentValue, firstChange) {\n this.previousValue = previousValue;\n this.currentValue = currentValue;\n this.firstChange = firstChange;\n }\n /**\n * Check whether the new value is the first value assigned.\n */\n isFirstChange() {\n return this.firstChange;\n }\n}\nfunction applyValueToInputField(instance, inputSignalNode, privateName, value) {\n if (inputSignalNode !== null) {\n inputSignalNode.applyValueToInputSignal(inputSignalNode, value);\n } else {\n instance[privateName] = value;\n }\n}\n\n/**\n * The NgOnChangesFeature decorates a component with support for the ngOnChanges\n * lifecycle hook, so it should be included in any component that implements\n * that hook.\n *\n * If the component or directive uses inheritance, the NgOnChangesFeature MUST\n * be included as a feature AFTER {@link InheritDefinitionFeature}, otherwise\n * inherited properties will not be propagated to the ngOnChanges lifecycle\n * hook.\n *\n * Example usage:\n *\n * ```\n * static ɵcmp = defineComponent({\n * ...\n * inputs: {name: 'publicName'},\n * features: [NgOnChangesFeature]\n * });\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵNgOnChangesFeature() {\n return NgOnChangesFeatureImpl;\n}\nfunction NgOnChangesFeatureImpl(definition) {\n if (definition.type.prototype.ngOnChanges) {\n definition.setInput = ngOnChangesSetInput;\n }\n return rememberChangeHistoryAndInvokeOnChangesHook;\n}\n// This option ensures that the ngOnChanges lifecycle hook will be inherited\n// from superclasses (in InheritDefinitionFeature).\n/** @nocollapse */\n// tslint:disable-next-line:no-toplevel-property-access\nɵɵNgOnChangesFeature.ngInherit = true;\n/**\n * This is a synthetic lifecycle hook which gets inserted into `TView.preOrderHooks` to simulate\n * `ngOnChanges`.\n *\n * The hook reads the `NgSimpleChangesStore` data from the component instance and if changes are\n * found it invokes `ngOnChanges` on the component instance.\n *\n * @param this Component instance. Because this function gets inserted into `TView.preOrderHooks`,\n * it is guaranteed to be called with component instance.\n */\nfunction rememberChangeHistoryAndInvokeOnChangesHook() {\n const simpleChangesStore = getSimpleChangesStore(this);\n const current = simpleChangesStore?.current;\n if (current) {\n const previous = simpleChangesStore.previous;\n if (previous === EMPTY_OBJ) {\n simpleChangesStore.previous = current;\n } else {\n // New changes are copied to the previous store, so that we don't lose history for inputs\n // which were not changed this time\n for (let key in current) {\n previous[key] = current[key];\n }\n }\n simpleChangesStore.current = null;\n this.ngOnChanges(current);\n }\n}\nfunction ngOnChangesSetInput(instance, inputSignalNode, value, publicName, privateName) {\n const declaredName = this.declaredInputs[publicName];\n ngDevMode && assertString(declaredName, 'Name of input in ngOnChanges has to be a string');\n const simpleChangesStore = getSimpleChangesStore(instance) || setSimpleChangesStore(instance, {\n previous: EMPTY_OBJ,\n current: null\n });\n const current = simpleChangesStore.current || (simpleChangesStore.current = {});\n const previous = simpleChangesStore.previous;\n const previousChange = previous[declaredName];\n current[declaredName] = new SimpleChange(previousChange && previousChange.currentValue, value, previous === EMPTY_OBJ);\n applyValueToInputField(instance, inputSignalNode, privateName, value);\n}\nconst SIMPLE_CHANGES_STORE = '__ngSimpleChanges__';\nfunction getSimpleChangesStore(instance) {\n return instance[SIMPLE_CHANGES_STORE] || null;\n}\nfunction setSimpleChangesStore(instance, store) {\n return instance[SIMPLE_CHANGES_STORE] = store;\n}\nlet profilerCallback = null;\n/**\n * Sets the callback function which will be invoked before and after performing certain actions at\n * runtime (for example, before and after running change detection).\n *\n * Warning: this function is *INTERNAL* and should not be relied upon in application's code.\n * The contract of the function might be changed in any release and/or the function can be removed\n * completely.\n *\n * @param profiler function provided by the caller or null value to disable profiling.\n */\nconst setProfiler = profiler => {\n profilerCallback = profiler;\n};\n/**\n * Profiler function which wraps user code executed by the runtime.\n *\n * @param event ProfilerEvent corresponding to the execution context\n * @param instance component instance\n * @param hookOrListener lifecycle hook function or output listener. The value depends on the\n * execution context\n * @returns\n */\nconst profiler = function (event, instance, hookOrListener) {\n if (profilerCallback != null /* both `null` and `undefined` */) {\n profilerCallback(event, instance, hookOrListener);\n }\n};\nconst SVG_NAMESPACE = 'svg';\nconst MATH_ML_NAMESPACE = 'math';\n\n/**\n * For efficiency reasons we often put several different data types (`RNode`, `LView`, `LContainer`)\n * in same location in `LView`. This is because we don't want to pre-allocate space for it\n * because the storage is sparse. This file contains utilities for dealing with such data types.\n *\n * How do we know what is stored at a given location in `LView`.\n * - `Array.isArray(value) === false` => `RNode` (The normal storage value)\n * - `Array.isArray(value) === true` => then the `value[0]` represents the wrapped value.\n * - `typeof value[TYPE] === 'object'` => `LView`\n * - This happens when we have a component at a given location\n * - `typeof value[TYPE] === true` => `LContainer`\n * - This happens when we have `LContainer` binding at a given location.\n *\n *\n * NOTE: it is assumed that `Array.isArray` and `typeof` operations are very efficient.\n */\n/**\n * Returns `RNode`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction unwrapRNode(value) {\n while (Array.isArray(value)) {\n value = value[HOST];\n }\n return value;\n}\n/**\n * Returns `LView` or `null` if not found.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction unwrapLView(value) {\n while (Array.isArray(value)) {\n // This check is same as `isLView()` but we don't call at as we don't want to call\n // `Array.isArray()` twice and give JITer more work for inlining.\n if (typeof value[TYPE] === 'object') return value;\n value = value[HOST];\n }\n return null;\n}\n/**\n * Retrieves an element value from the provided `viewData`, by unwrapping\n * from any containers, component views, or style contexts.\n */\nfunction getNativeByIndex(index, lView) {\n ngDevMode && assertIndexInRange(lView, index);\n ngDevMode && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Expected to be past HEADER_OFFSET');\n return unwrapRNode(lView[index]);\n}\n/**\n * Retrieve an `RNode` for a given `TNode` and `LView`.\n *\n * This function guarantees in dev mode to retrieve a non-null `RNode`.\n *\n * @param tNode\n * @param lView\n */\nfunction getNativeByTNode(tNode, lView) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n ngDevMode && assertIndexInRange(lView, tNode.index);\n const node = unwrapRNode(lView[tNode.index]);\n return node;\n}\n/**\n * Retrieve an `RNode` or `null` for a given `TNode` and `LView`.\n *\n * Some `TNode`s don't have associated `RNode`s. For example `Projection`\n *\n * @param tNode\n * @param lView\n */\nfunction getNativeByTNodeOrNull(tNode, lView) {\n const index = tNode === null ? -1 : tNode.index;\n if (index !== -1) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n const node = unwrapRNode(lView[index]);\n return node;\n }\n return null;\n}\n// fixme(misko): The return Type should be `TNode|null`\nfunction getTNode(tView, index) {\n ngDevMode && assertGreaterThan(index, -1, 'wrong index for TNode');\n ngDevMode && assertLessThan(index, tView.data.length, 'wrong index for TNode');\n const tNode = tView.data[index];\n ngDevMode && tNode !== null && assertTNode(tNode);\n return tNode;\n}\n/** Retrieves a value from any `LView` or `TData`. */\nfunction load(view, index) {\n ngDevMode && assertIndexInRange(view, index);\n return view[index];\n}\nfunction getComponentLViewByIndex(nodeIndex, hostView) {\n // Could be an LView or an LContainer. If LContainer, unwrap to find LView.\n ngDevMode && assertIndexInRange(hostView, nodeIndex);\n const slotValue = hostView[nodeIndex];\n const lView = isLView(slotValue) ? slotValue : slotValue[HOST];\n return lView;\n}\n/** Checks whether a given view is in creation mode */\nfunction isCreationMode(view) {\n return (view[FLAGS] & 4 /* LViewFlags.CreationMode */) === 4 /* LViewFlags.CreationMode */;\n}\n/**\n * Returns a boolean for whether the view is attached to the change detection tree.\n *\n * Note: This determines whether a view should be checked, not whether it's inserted\n * into a container. For that, you'll want `viewAttachedToContainer` below.\n */\nfunction viewAttachedToChangeDetector(view) {\n return (view[FLAGS] & 128 /* LViewFlags.Attached */) === 128 /* LViewFlags.Attached */;\n}\n/** Returns a boolean for whether the view is attached to a container. */\nfunction viewAttachedToContainer(view) {\n return isLContainer(view[PARENT]);\n}\nfunction getConstant(consts, index) {\n if (index === null || index === undefined) return null;\n ngDevMode && assertIndexInRange(consts, index);\n return consts[index];\n}\n/**\n * Resets the pre-order hook flags of the view.\n * @param lView the LView on which the flags are reset\n */\nfunction resetPreOrderHookFlags(lView) {\n lView[PREORDER_HOOK_FLAGS] = 0;\n}\n/**\n * Adds the `RefreshView` flag from the lView and updates HAS_CHILD_VIEWS_TO_REFRESH flag of\n * parents.\n */\nfunction markViewForRefresh(lView) {\n if (lView[FLAGS] & 1024 /* LViewFlags.RefreshView */) {\n return;\n }\n lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n if (viewAttachedToChangeDetector(lView)) {\n markAncestorsForTraversal(lView);\n }\n}\n/**\n * Walks up the LView hierarchy.\n * @param nestingLevel Number of times to walk up in hierarchy.\n * @param currentView View from which to start the lookup.\n */\nfunction walkUpViews(nestingLevel, currentView) {\n while (nestingLevel > 0) {\n ngDevMode && assertDefined(currentView[DECLARATION_VIEW], 'Declaration view should be defined if nesting level is greater than 0.');\n currentView = currentView[DECLARATION_VIEW];\n nestingLevel--;\n }\n return currentView;\n}\nfunction requiresRefreshOrTraversal(lView) {\n return !!(lView[FLAGS] & (1024 /* LViewFlags.RefreshView */ | 8192 /* LViewFlags.HasChildViewsToRefresh */) || lView[REACTIVE_TEMPLATE_CONSUMER]?.dirty);\n}\n/**\n * Updates the `HasChildViewsToRefresh` flag on the parents of the `LView` as well as the\n * parents above.\n */\nfunction updateAncestorTraversalFlagsOnAttach(lView) {\n lView[ENVIRONMENT].changeDetectionScheduler?.notify(8 /* NotificationSource.ViewAttached */);\n if (lView[FLAGS] & 64 /* LViewFlags.Dirty */) {\n lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n }\n if (requiresRefreshOrTraversal(lView)) {\n markAncestorsForTraversal(lView);\n }\n}\n/**\n * Ensures views above the given `lView` are traversed during change detection even when they are\n * not dirty.\n *\n * This is done by setting the `HAS_CHILD_VIEWS_TO_REFRESH` flag up to the root, stopping when the\n * flag is already `true` or the `lView` is detached.\n */\nfunction markAncestorsForTraversal(lView) {\n lView[ENVIRONMENT].changeDetectionScheduler?.notify(0 /* NotificationSource.MarkAncestorsForTraversal */);\n let parent = getLViewParent(lView);\n while (parent !== null) {\n // We stop adding markers to the ancestors once we reach one that already has the marker. This\n // is to avoid needlessly traversing all the way to the root when the marker already exists.\n if (parent[FLAGS] & 8192 /* LViewFlags.HasChildViewsToRefresh */) {\n break;\n }\n parent[FLAGS] |= 8192 /* LViewFlags.HasChildViewsToRefresh */;\n if (!viewAttachedToChangeDetector(parent)) {\n break;\n }\n parent = getLViewParent(parent);\n }\n}\n/**\n * Stores a LView-specific destroy callback.\n */\nfunction storeLViewOnDestroy(lView, onDestroyCallback) {\n if ((lView[FLAGS] & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */) {\n throw new RuntimeError(911 /* RuntimeErrorCode.VIEW_ALREADY_DESTROYED */, ngDevMode && 'View has already been destroyed.');\n }\n if (lView[ON_DESTROY_HOOKS] === null) {\n lView[ON_DESTROY_HOOKS] = [];\n }\n lView[ON_DESTROY_HOOKS].push(onDestroyCallback);\n}\n/**\n * Removes previously registered LView-specific destroy callback.\n */\nfunction removeLViewOnDestroy(lView, onDestroyCallback) {\n if (lView[ON_DESTROY_HOOKS] === null) return;\n const destroyCBIdx = lView[ON_DESTROY_HOOKS].indexOf(onDestroyCallback);\n if (destroyCBIdx !== -1) {\n lView[ON_DESTROY_HOOKS].splice(destroyCBIdx, 1);\n }\n}\n/**\n * Gets the parent LView of the passed LView, if the PARENT is an LContainer, will get the parent of\n * that LContainer, which is an LView\n * @param lView the lView whose parent to get\n */\nfunction getLViewParent(lView) {\n ngDevMode && assertLView(lView);\n const parent = lView[PARENT];\n return isLContainer(parent) ? parent[PARENT] : parent;\n}\nconst instructionState = {\n lFrame: /*#__PURE__*/createLFrame(null),\n bindingsEnabled: true,\n skipHydrationRootTNode: null\n};\nvar CheckNoChangesMode = /*#__PURE__*/function (CheckNoChangesMode) {\n CheckNoChangesMode[CheckNoChangesMode[\"Off\"] = 0] = \"Off\";\n CheckNoChangesMode[CheckNoChangesMode[\"Exhaustive\"] = 1] = \"Exhaustive\";\n CheckNoChangesMode[CheckNoChangesMode[\"OnlyDirtyViews\"] = 2] = \"OnlyDirtyViews\";\n return CheckNoChangesMode;\n}(CheckNoChangesMode || {});\n/**\n * In this mode, any changes in bindings will throw an ExpressionChangedAfterChecked error.\n *\n * Necessary to support ChangeDetectorRef.checkNoChanges().\n *\n * The `checkNoChanges` function is invoked only in ngDevMode=true and verifies that no unintended\n * changes exist in the change detector or its children.\n */\nlet _checkNoChangesMode = 0; /* CheckNoChangesMode.Off */\n/**\n * Flag used to indicate that we are in the middle running change detection on a view\n *\n * @see detectChangesInViewWhileDirty\n */\nlet _isRefreshingViews = false;\n/**\n * Returns true if the instruction state stack is empty.\n *\n * Intended to be called from tests only (tree shaken otherwise).\n */\nfunction specOnlyIsInstructionStateEmpty() {\n return instructionState.lFrame.parent === null;\n}\nfunction getElementDepthCount() {\n return instructionState.lFrame.elementDepthCount;\n}\nfunction increaseElementDepthCount() {\n instructionState.lFrame.elementDepthCount++;\n}\nfunction decreaseElementDepthCount() {\n instructionState.lFrame.elementDepthCount--;\n}\nfunction getBindingsEnabled() {\n return instructionState.bindingsEnabled;\n}\n/**\n * Returns true if currently inside a skip hydration block.\n * @returns boolean\n */\nfunction isInSkipHydrationBlock$1() {\n return instructionState.skipHydrationRootTNode !== null;\n}\n/**\n * Returns true if this is the root TNode of the skip hydration block.\n * @param tNode the current TNode\n * @returns boolean\n */\nfunction isSkipHydrationRootTNode(tNode) {\n return instructionState.skipHydrationRootTNode === tNode;\n}\n/**\n * Enables directive matching on elements.\n *\n * * Example:\n * ```\n * \n * Should match component / directive.\n * \n *
\n * \n * \n * Should not match component / directive because we are in ngNonBindable.\n * \n * \n *
\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵenableBindings() {\n instructionState.bindingsEnabled = true;\n}\n/**\n * Sets a flag to specify that the TNode is in a skip hydration block.\n * @param tNode the current TNode\n */\nfunction enterSkipHydrationBlock(tNode) {\n instructionState.skipHydrationRootTNode = tNode;\n}\n/**\n * Disables directive matching on element.\n *\n * * Example:\n * ```\n * \n * Should match component / directive.\n * \n *
\n * \n * \n * Should not match component / directive because we are in ngNonBindable.\n * \n * \n *
\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵdisableBindings() {\n instructionState.bindingsEnabled = false;\n}\n/**\n * Clears the root skip hydration node when leaving a skip hydration block.\n */\nfunction leaveSkipHydrationBlock() {\n instructionState.skipHydrationRootTNode = null;\n}\n/**\n * Return the current `LView`.\n */\nfunction getLView() {\n return instructionState.lFrame.lView;\n}\n/**\n * Return the current `TView`.\n */\nfunction getTView() {\n return instructionState.lFrame.tView;\n}\n/**\n * Restores `contextViewData` to the given OpaqueViewState instance.\n *\n * Used in conjunction with the getCurrentView() instruction to save a snapshot\n * of the current view and restore it when listeners are invoked. This allows\n * walking the declaration view tree in listeners to get vars from parent views.\n *\n * @param viewToRestore The OpaqueViewState instance to restore.\n * @returns Context of the restored OpaqueViewState instance.\n *\n * @codeGenApi\n */\nfunction ɵɵrestoreView(viewToRestore) {\n instructionState.lFrame.contextLView = viewToRestore;\n return viewToRestore[CONTEXT];\n}\n/**\n * Clears the view set in `ɵɵrestoreView` from memory. Returns the passed in\n * value so that it can be used as a return value of an instruction.\n *\n * @codeGenApi\n */\nfunction ɵɵresetView(value) {\n instructionState.lFrame.contextLView = null;\n return value;\n}\nfunction getCurrentTNode() {\n let currentTNode = getCurrentTNodePlaceholderOk();\n while (currentTNode !== null && currentTNode.type === 64 /* TNodeType.Placeholder */) {\n currentTNode = currentTNode.parent;\n }\n return currentTNode;\n}\nfunction getCurrentTNodePlaceholderOk() {\n return instructionState.lFrame.currentTNode;\n}\nfunction getCurrentParentTNode() {\n const lFrame = instructionState.lFrame;\n const currentTNode = lFrame.currentTNode;\n return lFrame.isParent ? currentTNode : currentTNode.parent;\n}\nfunction setCurrentTNode(tNode, isParent) {\n ngDevMode && tNode && assertTNodeForTView(tNode, instructionState.lFrame.tView);\n const lFrame = instructionState.lFrame;\n lFrame.currentTNode = tNode;\n lFrame.isParent = isParent;\n}\nfunction isCurrentTNodeParent() {\n return instructionState.lFrame.isParent;\n}\nfunction setCurrentTNodeAsNotParent() {\n instructionState.lFrame.isParent = false;\n}\nfunction getContextLView() {\n const contextLView = instructionState.lFrame.contextLView;\n ngDevMode && assertDefined(contextLView, 'contextLView must be defined.');\n return contextLView;\n}\nfunction isInCheckNoChangesMode() {\n !ngDevMode && throwError('Must never be called in production mode');\n return _checkNoChangesMode !== CheckNoChangesMode.Off;\n}\nfunction isExhaustiveCheckNoChanges() {\n !ngDevMode && throwError('Must never be called in production mode');\n return _checkNoChangesMode === CheckNoChangesMode.Exhaustive;\n}\nfunction setIsInCheckNoChangesMode(mode) {\n !ngDevMode && throwError('Must never be called in production mode');\n _checkNoChangesMode = mode;\n}\nfunction isRefreshingViews() {\n return _isRefreshingViews;\n}\nfunction setIsRefreshingViews(mode) {\n _isRefreshingViews = mode;\n}\n// top level variables should not be exported for performance reasons (PERF_NOTES.md)\nfunction getBindingRoot() {\n const lFrame = instructionState.lFrame;\n let index = lFrame.bindingRootIndex;\n if (index === -1) {\n index = lFrame.bindingRootIndex = lFrame.tView.bindingStartIndex;\n }\n return index;\n}\nfunction getBindingIndex() {\n return instructionState.lFrame.bindingIndex;\n}\nfunction setBindingIndex(value) {\n return instructionState.lFrame.bindingIndex = value;\n}\nfunction nextBindingIndex() {\n return instructionState.lFrame.bindingIndex++;\n}\nfunction incrementBindingIndex(count) {\n const lFrame = instructionState.lFrame;\n const index = lFrame.bindingIndex;\n lFrame.bindingIndex = lFrame.bindingIndex + count;\n return index;\n}\nfunction isInI18nBlock() {\n return instructionState.lFrame.inI18n;\n}\nfunction setInI18nBlock(isInI18nBlock) {\n instructionState.lFrame.inI18n = isInI18nBlock;\n}\n/**\n * Set a new binding root index so that host template functions can execute.\n *\n * Bindings inside the host template are 0 index. But because we don't know ahead of time\n * how many host bindings we have we can't pre-compute them. For this reason they are all\n * 0 index and we just shift the root so that they match next available location in the LView.\n *\n * @param bindingRootIndex Root index for `hostBindings`\n * @param currentDirectiveIndex `TData[currentDirectiveIndex]` will point to the current directive\n * whose `hostBindings` are being processed.\n */\nfunction setBindingRootForHostBindings(bindingRootIndex, currentDirectiveIndex) {\n const lFrame = instructionState.lFrame;\n lFrame.bindingIndex = lFrame.bindingRootIndex = bindingRootIndex;\n setCurrentDirectiveIndex(currentDirectiveIndex);\n}\n/**\n * When host binding is executing this points to the directive index.\n * `TView.data[getCurrentDirectiveIndex()]` is `DirectiveDef`\n * `LView[getCurrentDirectiveIndex()]` is directive instance.\n */\nfunction getCurrentDirectiveIndex() {\n return instructionState.lFrame.currentDirectiveIndex;\n}\n/**\n * Sets an index of a directive whose `hostBindings` are being processed.\n *\n * @param currentDirectiveIndex `TData` index where current directive instance can be found.\n */\nfunction setCurrentDirectiveIndex(currentDirectiveIndex) {\n instructionState.lFrame.currentDirectiveIndex = currentDirectiveIndex;\n}\n/**\n * Retrieve the current `DirectiveDef` which is active when `hostBindings` instruction is being\n * executed.\n *\n * @param tData Current `TData` where the `DirectiveDef` will be looked up at.\n */\nfunction getCurrentDirectiveDef(tData) {\n const currentDirectiveIndex = instructionState.lFrame.currentDirectiveIndex;\n return currentDirectiveIndex === -1 ? null : tData[currentDirectiveIndex];\n}\nfunction getCurrentQueryIndex() {\n return instructionState.lFrame.currentQueryIndex;\n}\nfunction setCurrentQueryIndex(value) {\n instructionState.lFrame.currentQueryIndex = value;\n}\n/**\n * Returns a `TNode` of the location where the current `LView` is declared at.\n *\n * @param lView an `LView` that we want to find parent `TNode` for.\n */\nfunction getDeclarationTNode(lView) {\n const tView = lView[TVIEW];\n // Return the declaration parent for embedded views\n if (tView.type === 2 /* TViewType.Embedded */) {\n ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');\n return tView.declTNode;\n }\n // Components don't have `TView.declTNode` because each instance of component could be\n // inserted in different location, hence `TView.declTNode` is meaningless.\n // Falling back to `T_HOST` in case we cross component boundary.\n if (tView.type === 1 /* TViewType.Component */) {\n return lView[T_HOST];\n }\n // Remaining TNode type is `TViewType.Root` which doesn't have a parent TNode.\n return null;\n}\n/**\n * This is a light weight version of the `enterView` which is needed by the DI system.\n *\n * @param lView `LView` location of the DI context.\n * @param tNode `TNode` for DI context\n * @param flags DI context flags. if `SkipSelf` flag is set than we walk up the declaration\n * tree from `tNode` until we find parent declared `TElementNode`.\n * @returns `true` if we have successfully entered DI associated with `tNode` (or with declared\n * `TNode` if `flags` has `SkipSelf`). Failing to enter DI implies that no associated\n * `NodeInjector` can be found and we should instead use `ModuleInjector`.\n * - If `true` than this call must be fallowed by `leaveDI`\n * - If `false` than this call failed and we should NOT call `leaveDI`\n */\nfunction enterDI(lView, tNode, flags) {\n ngDevMode && assertLViewOrUndefined(lView);\n if (flags & InjectFlags.SkipSelf) {\n ngDevMode && assertTNodeForTView(tNode, lView[TVIEW]);\n let parentTNode = tNode;\n let parentLView = lView;\n while (true) {\n ngDevMode && assertDefined(parentTNode, 'Parent TNode should be defined');\n parentTNode = parentTNode.parent;\n if (parentTNode === null && !(flags & InjectFlags.Host)) {\n parentTNode = getDeclarationTNode(parentLView);\n if (parentTNode === null) break;\n // In this case, a parent exists and is definitely an element. So it will definitely\n // have an existing lView as the declaration view, which is why we can assume it's defined.\n ngDevMode && assertDefined(parentLView, 'Parent LView should be defined');\n parentLView = parentLView[DECLARATION_VIEW];\n // In Ivy there are Comment nodes that correspond to ngIf and NgFor embedded directives\n // We want to skip those and look only at Elements and ElementContainers to ensure\n // we're looking at true parent nodes, and not content or other types.\n if (parentTNode.type & (2 /* TNodeType.Element */ | 8 /* TNodeType.ElementContainer */)) {\n break;\n }\n } else {\n break;\n }\n }\n if (parentTNode === null) {\n // If we failed to find a parent TNode this means that we should use module injector.\n return false;\n } else {\n tNode = parentTNode;\n lView = parentLView;\n }\n }\n ngDevMode && assertTNodeForLView(tNode, lView);\n const lFrame = instructionState.lFrame = allocLFrame();\n lFrame.currentTNode = tNode;\n lFrame.lView = lView;\n return true;\n}\n/**\n * Swap the current lView with a new lView.\n *\n * For performance reasons we store the lView in the top level of the module.\n * This way we minimize the number of properties to read. Whenever a new view\n * is entered we have to store the lView for later, and when the view is\n * exited the state has to be restored\n *\n * @param newView New lView to become active\n * @returns the previously active lView;\n */\nfunction enterView(newView) {\n ngDevMode && assertNotEqual(newView[0], newView[1], '????');\n ngDevMode && assertLViewOrUndefined(newView);\n const newLFrame = allocLFrame();\n if (ngDevMode) {\n assertEqual(newLFrame.isParent, true, 'Expected clean LFrame');\n assertEqual(newLFrame.lView, null, 'Expected clean LFrame');\n assertEqual(newLFrame.tView, null, 'Expected clean LFrame');\n assertEqual(newLFrame.selectedIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.elementDepthCount, 0, 'Expected clean LFrame');\n assertEqual(newLFrame.currentDirectiveIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.currentNamespace, null, 'Expected clean LFrame');\n assertEqual(newLFrame.bindingRootIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.currentQueryIndex, 0, 'Expected clean LFrame');\n }\n const tView = newView[TVIEW];\n instructionState.lFrame = newLFrame;\n ngDevMode && tView.firstChild && assertTNodeForTView(tView.firstChild, tView);\n newLFrame.currentTNode = tView.firstChild;\n newLFrame.lView = newView;\n newLFrame.tView = tView;\n newLFrame.contextLView = newView;\n newLFrame.bindingIndex = tView.bindingStartIndex;\n newLFrame.inI18n = false;\n}\n/**\n * Allocates next free LFrame. This function tries to reuse the `LFrame`s to lower memory pressure.\n */\nfunction allocLFrame() {\n const currentLFrame = instructionState.lFrame;\n const childLFrame = currentLFrame === null ? null : currentLFrame.child;\n const newLFrame = childLFrame === null ? createLFrame(currentLFrame) : childLFrame;\n return newLFrame;\n}\nfunction createLFrame(parent) {\n const lFrame = {\n currentTNode: null,\n isParent: true,\n lView: null,\n tView: null,\n selectedIndex: -1,\n contextLView: null,\n elementDepthCount: 0,\n currentNamespace: null,\n currentDirectiveIndex: -1,\n bindingRootIndex: -1,\n bindingIndex: -1,\n currentQueryIndex: 0,\n parent: parent,\n child: null,\n inI18n: false\n };\n parent !== null && (parent.child = lFrame); // link the new LFrame for reuse.\n return lFrame;\n}\n/**\n * A lightweight version of leave which is used with DI.\n *\n * This function only resets `currentTNode` and `LView` as those are the only properties\n * used with DI (`enterDI()`).\n *\n * NOTE: This function is reexported as `leaveDI`. However `leaveDI` has return type of `void` where\n * as `leaveViewLight` has `LFrame`. This is so that `leaveViewLight` can be used in `leaveView`.\n */\nfunction leaveViewLight() {\n const oldLFrame = instructionState.lFrame;\n instructionState.lFrame = oldLFrame.parent;\n oldLFrame.currentTNode = null;\n oldLFrame.lView = null;\n return oldLFrame;\n}\n/**\n * This is a lightweight version of the `leaveView` which is needed by the DI system.\n *\n * NOTE: this function is an alias so that we can change the type of the function to have `void`\n * return type.\n */\nconst leaveDI = leaveViewLight;\n/**\n * Leave the current `LView`\n *\n * This pops the `LFrame` with the associated `LView` from the stack.\n *\n * IMPORTANT: We must zero out the `LFrame` values here otherwise they will be retained. This is\n * because for performance reasons we don't release `LFrame` but rather keep it for next use.\n */\nfunction leaveView() {\n const oldLFrame = leaveViewLight();\n oldLFrame.isParent = true;\n oldLFrame.tView = null;\n oldLFrame.selectedIndex = -1;\n oldLFrame.contextLView = null;\n oldLFrame.elementDepthCount = 0;\n oldLFrame.currentDirectiveIndex = -1;\n oldLFrame.currentNamespace = null;\n oldLFrame.bindingRootIndex = -1;\n oldLFrame.bindingIndex = -1;\n oldLFrame.currentQueryIndex = 0;\n}\nfunction nextContextImpl(level) {\n const contextLView = instructionState.lFrame.contextLView = walkUpViews(level, instructionState.lFrame.contextLView);\n return contextLView[CONTEXT];\n}\n/**\n * Gets the currently selected element index.\n *\n * Used with {@link property} instruction (and more in the future) to identify the index in the\n * current `LView` to act on.\n */\nfunction getSelectedIndex() {\n return instructionState.lFrame.selectedIndex;\n}\n/**\n * Sets the most recent index passed to {@link select}\n *\n * Used with {@link property} instruction (and more in the future) to identify the index in the\n * current `LView` to act on.\n *\n * (Note that if an \"exit function\" was set earlier (via `setElementExitFn()`) then that will be\n * run if and when the provided `index` value is different from the current selected index value.)\n */\nfunction setSelectedIndex(index) {\n ngDevMode && index !== -1 && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Index must be past HEADER_OFFSET (or -1).');\n ngDevMode && assertLessThan(index, instructionState.lFrame.lView.length, \"Can't set index passed end of LView\");\n instructionState.lFrame.selectedIndex = index;\n}\n/**\n * Gets the `tNode` that represents currently selected element.\n */\nfunction getSelectedTNode() {\n const lFrame = instructionState.lFrame;\n return getTNode(lFrame.tView, lFrame.selectedIndex);\n}\n/**\n * Sets the namespace used to create elements to `'http://www.w3.org/2000/svg'` in global state.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceSVG() {\n instructionState.lFrame.currentNamespace = SVG_NAMESPACE;\n}\n/**\n * Sets the namespace used to create elements to `'http://www.w3.org/1998/MathML/'` in global state.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceMathML() {\n instructionState.lFrame.currentNamespace = MATH_ML_NAMESPACE;\n}\n/**\n * Sets the namespace used to create elements to `null`, which forces element creation to use\n * `createElement` rather than `createElementNS`.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceHTML() {\n namespaceHTMLInternal();\n}\n/**\n * Sets the namespace used to create elements to `null`, which forces element creation to use\n * `createElement` rather than `createElementNS`.\n */\nfunction namespaceHTMLInternal() {\n instructionState.lFrame.currentNamespace = null;\n}\nfunction getNamespace$1() {\n return instructionState.lFrame.currentNamespace;\n}\nlet _wasLastNodeCreated = true;\n/**\n * Retrieves a global flag that indicates whether the most recent DOM node\n * was created or hydrated.\n */\nfunction wasLastNodeCreated() {\n return _wasLastNodeCreated;\n}\n/**\n * Sets a global flag to indicate whether the most recent DOM node\n * was created or hydrated.\n */\nfunction lastNodeWasCreated(flag) {\n _wasLastNodeCreated = flag;\n}\n\n/**\n * Adds all directive lifecycle hooks from the given `DirectiveDef` to the given `TView`.\n *\n * Must be run *only* on the first template pass.\n *\n * Sets up the pre-order hooks on the provided `tView`,\n * see {@link HookData} for details about the data structure.\n *\n * @param directiveIndex The index of the directive in LView\n * @param directiveDef The definition containing the hooks to setup in tView\n * @param tView The current TView\n */\nfunction registerPreOrderHooks(directiveIndex, directiveDef, tView) {\n ngDevMode && assertFirstCreatePass(tView);\n const {\n ngOnChanges,\n ngOnInit,\n ngDoCheck\n } = directiveDef.type.prototype;\n if (ngOnChanges) {\n const wrappedOnChanges = NgOnChangesFeatureImpl(directiveDef);\n (tView.preOrderHooks ??= []).push(directiveIndex, wrappedOnChanges);\n (tView.preOrderCheckHooks ??= []).push(directiveIndex, wrappedOnChanges);\n }\n if (ngOnInit) {\n (tView.preOrderHooks ??= []).push(0 - directiveIndex, ngOnInit);\n }\n if (ngDoCheck) {\n (tView.preOrderHooks ??= []).push(directiveIndex, ngDoCheck);\n (tView.preOrderCheckHooks ??= []).push(directiveIndex, ngDoCheck);\n }\n}\n/**\n *\n * Loops through the directives on the provided `tNode` and queues hooks to be\n * run that are not initialization hooks.\n *\n * Should be executed during `elementEnd()` and similar to\n * preserve hook execution order. Content, view, and destroy hooks for projected\n * components and directives must be called *before* their hosts.\n *\n * Sets up the content, view, and destroy hooks on the provided `tView`,\n * see {@link HookData} for details about the data structure.\n *\n * NOTE: This does not set up `onChanges`, `onInit` or `doCheck`, those are set up\n * separately at `elementStart`.\n *\n * @param tView The current TView\n * @param tNode The TNode whose directives are to be searched for hooks to queue\n */\nfunction registerPostOrderHooks(tView, tNode) {\n ngDevMode && assertFirstCreatePass(tView);\n // It's necessary to loop through the directives at elementEnd() (rather than processing in\n // directiveCreate) so we can preserve the current hook order. Content, view, and destroy\n // hooks for projected components and directives must be called *before* their hosts.\n for (let i = tNode.directiveStart, end = tNode.directiveEnd; i < end; i++) {\n const directiveDef = tView.data[i];\n ngDevMode && assertDefined(directiveDef, 'Expecting DirectiveDef');\n const lifecycleHooks = directiveDef.type.prototype;\n const {\n ngAfterContentInit,\n ngAfterContentChecked,\n ngAfterViewInit,\n ngAfterViewChecked,\n ngOnDestroy\n } = lifecycleHooks;\n if (ngAfterContentInit) {\n (tView.contentHooks ??= []).push(-i, ngAfterContentInit);\n }\n if (ngAfterContentChecked) {\n (tView.contentHooks ??= []).push(i, ngAfterContentChecked);\n (tView.contentCheckHooks ??= []).push(i, ngAfterContentChecked);\n }\n if (ngAfterViewInit) {\n (tView.viewHooks ??= []).push(-i, ngAfterViewInit);\n }\n if (ngAfterViewChecked) {\n (tView.viewHooks ??= []).push(i, ngAfterViewChecked);\n (tView.viewCheckHooks ??= []).push(i, ngAfterViewChecked);\n }\n if (ngOnDestroy != null) {\n (tView.destroyHooks ??= []).push(i, ngOnDestroy);\n }\n }\n}\n/**\n * Executing hooks requires complex logic as we need to deal with 2 constraints.\n *\n * 1. Init hooks (ngOnInit, ngAfterContentInit, ngAfterViewInit) must all be executed once and only\n * once, across many change detection cycles. This must be true even if some hooks throw, or if\n * some recursively trigger a change detection cycle.\n * To solve that, it is required to track the state of the execution of these init hooks.\n * This is done by storing and maintaining flags in the view: the {@link InitPhaseState},\n * and the index within that phase. They can be seen as a cursor in the following structure:\n * [[onInit1, onInit2], [afterContentInit1], [afterViewInit1, afterViewInit2, afterViewInit3]]\n * They are stored as flags in LView[FLAGS].\n *\n * 2. Pre-order hooks can be executed in batches, because of the select instruction.\n * To be able to pause and resume their execution, we also need some state about the hook's array\n * that is being processed:\n * - the index of the next hook to be executed\n * - the number of init hooks already found in the processed part of the array\n * They are stored as flags in LView[PREORDER_HOOK_FLAGS].\n */\n/**\n * Executes pre-order check hooks ( OnChanges, DoChanges) given a view where all the init hooks were\n * executed once. This is a light version of executeInitAndCheckPreOrderHooks where we can skip read\n * / write of the init-hooks related flags.\n * @param lView The LView where hooks are defined\n * @param hooks Hooks to be run\n * @param nodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction executeCheckHooks(lView, hooks, nodeIndex) {\n callHooks(lView, hooks, 3 /* InitPhaseState.InitPhaseCompleted */, nodeIndex);\n}\n/**\n * Executes post-order init and check hooks (one of AfterContentInit, AfterContentChecked,\n * AfterViewInit, AfterViewChecked) given a view where there are pending init hooks to be executed.\n * @param lView The LView where hooks are defined\n * @param hooks Hooks to be run\n * @param initPhase A phase for which hooks should be run\n * @param nodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction executeInitAndCheckHooks(lView, hooks, initPhase, nodeIndex) {\n ngDevMode && assertNotEqual(initPhase, 3 /* InitPhaseState.InitPhaseCompleted */, 'Init pre-order hooks should not be called more than once');\n if ((lView[FLAGS] & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {\n callHooks(lView, hooks, initPhase, nodeIndex);\n }\n}\nfunction incrementInitPhaseFlags(lView, initPhase) {\n ngDevMode && assertNotEqual(initPhase, 3 /* InitPhaseState.InitPhaseCompleted */, 'Init hooks phase should not be incremented after all init hooks have been run.');\n let flags = lView[FLAGS];\n if ((flags & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {\n flags &= 16383 /* LViewFlags.IndexWithinInitPhaseReset */;\n flags += 1 /* LViewFlags.InitPhaseStateIncrementer */;\n lView[FLAGS] = flags;\n }\n}\n/**\n * Calls lifecycle hooks with their contexts, skipping init hooks if it's not\n * the first LView pass\n *\n * @param currentView The current view\n * @param arr The array in which the hooks are found\n * @param initPhaseState the current state of the init phase\n * @param currentNodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction callHooks(currentView, arr, initPhase, currentNodeIndex) {\n ngDevMode && assertEqual(isInCheckNoChangesMode(), false, 'Hooks should never be run when in check no changes mode.');\n const startIndex = currentNodeIndex !== undefined ? currentView[PREORDER_HOOK_FLAGS] & 65535 /* PreOrderHookFlags.IndexOfTheNextPreOrderHookMaskMask */ : 0;\n const nodeIndexLimit = currentNodeIndex != null ? currentNodeIndex : -1;\n const max = arr.length - 1; // Stop the loop at length - 1, because we look for the hook at i + 1\n let lastNodeIndexFound = 0;\n for (let i = startIndex; i < max; i++) {\n const hook = arr[i + 1];\n if (typeof hook === 'number') {\n lastNodeIndexFound = arr[i];\n if (currentNodeIndex != null && lastNodeIndexFound >= currentNodeIndex) {\n break;\n }\n } else {\n const isInitHook = arr[i] < 0;\n if (isInitHook) {\n currentView[PREORDER_HOOK_FLAGS] += 65536 /* PreOrderHookFlags.NumberOfInitHooksCalledIncrementer */;\n }\n if (lastNodeIndexFound < nodeIndexLimit || nodeIndexLimit == -1) {\n callHook(currentView, initPhase, arr, i);\n currentView[PREORDER_HOOK_FLAGS] = (currentView[PREORDER_HOOK_FLAGS] & 4294901760 /* PreOrderHookFlags.NumberOfInitHooksCalledMask */) + i + 2;\n }\n i++;\n }\n }\n}\n/**\n * Executes a single lifecycle hook, making sure that:\n * - it is called in the non-reactive context;\n * - profiling data are registered.\n */\nfunction callHookInternal(directive, hook) {\n profiler(4 /* ProfilerEvent.LifecycleHookStart */, directive, hook);\n const prevConsumer = setActiveConsumer$1(null);\n try {\n hook.call(directive);\n } finally {\n setActiveConsumer$1(prevConsumer);\n profiler(5 /* ProfilerEvent.LifecycleHookEnd */, directive, hook);\n }\n}\n/**\n * Execute one hook against the current `LView`.\n *\n * @param currentView The current view\n * @param initPhaseState the current state of the init phase\n * @param arr The array in which the hooks are found\n * @param i The current index within the hook data array\n */\nfunction callHook(currentView, initPhase, arr, i) {\n const isInitHook = arr[i] < 0;\n const hook = arr[i + 1];\n const directiveIndex = isInitHook ? -arr[i] : arr[i];\n const directive = currentView[directiveIndex];\n if (isInitHook) {\n const indexWithintInitPhase = currentView[FLAGS] >> 14 /* LViewFlags.IndexWithinInitPhaseShift */;\n // The init phase state must be always checked here as it may have been recursively updated.\n if (indexWithintInitPhase < currentView[PREORDER_HOOK_FLAGS] >> 16 /* PreOrderHookFlags.NumberOfInitHooksCalledShift */ && (currentView[FLAGS] & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {\n currentView[FLAGS] += 16384 /* LViewFlags.IndexWithinInitPhaseIncrementer */;\n callHookInternal(directive, hook);\n }\n } else {\n callHookInternal(directive, hook);\n }\n}\nconst NO_PARENT_INJECTOR = -1;\n/**\n * Each injector is saved in 9 contiguous slots in `LView` and 9 contiguous slots in\n * `TView.data`. This allows us to store information about the current node's tokens (which\n * can be shared in `TView`) as well as the tokens of its ancestor nodes (which cannot be\n * shared, so they live in `LView`).\n *\n * Each of these slots (aside from the last slot) contains a bloom filter. This bloom filter\n * determines whether a directive is available on the associated node or not. This prevents us\n * from searching the directives array at this level unless it's probable the directive is in it.\n *\n * See: https://en.wikipedia.org/wiki/Bloom_filter for more about bloom filters.\n *\n * Because all injectors have been flattened into `LView` and `TViewData`, they cannot typed\n * using interfaces as they were previously. The start index of each `LInjector` and `TInjector`\n * will differ based on where it is flattened into the main array, so it's not possible to know\n * the indices ahead of time and save their types here. The interfaces are still included here\n * for documentation purposes.\n *\n * export interface LInjector extends Array {\n *\n * // Cumulative bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE)\n * [0]: number;\n *\n * // Cumulative bloom for directive IDs 32-63\n * [1]: number;\n *\n * // Cumulative bloom for directive IDs 64-95\n * [2]: number;\n *\n * // Cumulative bloom for directive IDs 96-127\n * [3]: number;\n *\n * // Cumulative bloom for directive IDs 128-159\n * [4]: number;\n *\n * // Cumulative bloom for directive IDs 160 - 191\n * [5]: number;\n *\n * // Cumulative bloom for directive IDs 192 - 223\n * [6]: number;\n *\n * // Cumulative bloom for directive IDs 224 - 255\n * [7]: number;\n *\n * // We need to store a reference to the injector's parent so DI can keep looking up\n * // the injector tree until it finds the dependency it's looking for.\n * [PARENT_INJECTOR]: number;\n * }\n *\n * export interface TInjector extends Array {\n *\n * // Shared node bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE)\n * [0]: number;\n *\n * // Shared node bloom for directive IDs 32-63\n * [1]: number;\n *\n * // Shared node bloom for directive IDs 64-95\n * [2]: number;\n *\n * // Shared node bloom for directive IDs 96-127\n * [3]: number;\n *\n * // Shared node bloom for directive IDs 128-159\n * [4]: number;\n *\n * // Shared node bloom for directive IDs 160 - 191\n * [5]: number;\n *\n * // Shared node bloom for directive IDs 192 - 223\n * [6]: number;\n *\n * // Shared node bloom for directive IDs 224 - 255\n * [7]: number;\n *\n * // Necessary to find directive indices for a particular node.\n * [TNODE]: TElementNode|TElementContainerNode|TContainerNode;\n * }\n */\n/**\n * Factory for creating instances of injectors in the NodeInjector.\n *\n * This factory is complicated by the fact that it can resolve `multi` factories as well.\n *\n * NOTE: Some of the fields are optional which means that this class has two hidden classes.\n * - One without `multi` support (most common)\n * - One with `multi` values, (rare).\n *\n * Since VMs can cache up to 4 inline hidden classes this is OK.\n *\n * - Single factory: Only `resolving` and `factory` is defined.\n * - `providers` factory: `componentProviders` is a number and `index = -1`.\n * - `viewProviders` factory: `componentProviders` is a number and `index` points to `providers`.\n */\nclass NodeInjectorFactory {\n constructor(\n /**\n * Factory to invoke in order to create a new instance.\n */\n factory,\n /**\n * Set to `true` if the token is declared in `viewProviders` (or if it is component).\n */\n isViewProvider, injectImplementation) {\n this.factory = factory;\n /**\n * Marker set to true during factory invocation to see if we get into recursive loop.\n * Recursive loop causes an error to be displayed.\n */\n this.resolving = false;\n ngDevMode && assertDefined(factory, 'Factory not specified');\n ngDevMode && assertEqual(typeof factory, 'function', 'Expected factory function.');\n this.canSeeViewProviders = isViewProvider;\n this.injectImpl = injectImplementation;\n }\n}\nfunction isFactory(obj) {\n return obj instanceof NodeInjectorFactory;\n}\n\n/**\n * Converts `TNodeType` into human readable text.\n * Make sure this matches with `TNodeType`\n */\nfunction toTNodeTypeAsString(tNodeType) {\n let text = '';\n tNodeType & 1 /* TNodeType.Text */ && (text += '|Text');\n tNodeType & 2 /* TNodeType.Element */ && (text += '|Element');\n tNodeType & 4 /* TNodeType.Container */ && (text += '|Container');\n tNodeType & 8 /* TNodeType.ElementContainer */ && (text += '|ElementContainer');\n tNodeType & 16 /* TNodeType.Projection */ && (text += '|Projection');\n tNodeType & 32 /* TNodeType.Icu */ && (text += '|IcuContainer');\n tNodeType & 64 /* TNodeType.Placeholder */ && (text += '|Placeholder');\n tNodeType & 128 /* TNodeType.LetDeclaration */ && (text += '|LetDeclaration');\n return text.length > 0 ? text.substring(1) : text;\n}\n/**\n * Helper function to detect if a given value matches a `TNode` shape.\n *\n * The logic uses the `insertBeforeIndex` and its possible values as\n * a way to differentiate a TNode shape from other types of objects\n * within the `TView.data`. This is not a perfect check, but it can\n * be a reasonable differentiator, since we control the shapes of objects\n * within `TView.data`.\n */\nfunction isTNodeShape(value) {\n return value != null && typeof value === 'object' && (value.insertBeforeIndex === null || typeof value.insertBeforeIndex === 'number' || Array.isArray(value.insertBeforeIndex));\n}\nfunction isLetDeclaration(tNode) {\n return !!(tNode.type & 128 /* TNodeType.LetDeclaration */);\n}\n/**\n * Returns `true` if the `TNode` has a directive which has `@Input()` for `class` binding.\n *\n * ```\n *
\n * ```\n * and\n * ```\n * @Directive({\n * })\n * class MyDirective {\n * @Input()\n * class: string;\n * }\n * ```\n *\n * In the above case it is necessary to write the reconciled styling information into the\n * directive's input.\n *\n * @param tNode\n */\nfunction hasClassInput(tNode) {\n return (tNode.flags & 8 /* TNodeFlags.hasClassInput */) !== 0;\n}\n/**\n * Returns `true` if the `TNode` has a directive which has `@Input()` for `style` binding.\n *\n * ```\n *
\n * ```\n * and\n * ```\n * @Directive({\n * })\n * class MyDirective {\n * @Input()\n * class: string;\n * }\n * ```\n *\n * In the above case it is necessary to write the reconciled styling information into the\n * directive's input.\n *\n * @param tNode\n */\nfunction hasStyleInput(tNode) {\n return (tNode.flags & 16 /* TNodeFlags.hasStyleInput */) !== 0;\n}\nfunction assertTNodeType(tNode, expectedTypes, message) {\n assertDefined(tNode, 'should be called with a TNode');\n if ((tNode.type & expectedTypes) === 0) {\n throwError(message || `Expected [${toTNodeTypeAsString(expectedTypes)}] but got ${toTNodeTypeAsString(tNode.type)}.`);\n }\n}\nfunction assertPureTNodeType(type) {\n if (!(type === 2 /* TNodeType.Element */ || type === 1 /* TNodeType.Text */ || type === 4 /* TNodeType.Container */ || type === 8 /* TNodeType.ElementContainer */ || type === 32 /* TNodeType.Icu */ || type === 16 /* TNodeType.Projection */ || type === 64 /* TNodeType.Placeholder */ || type === 128 /* TNodeType.LetDeclaration */)) {\n throwError(`Expected TNodeType to have only a single type selected, but got ${toTNodeTypeAsString(type)}.`);\n }\n}\n\n// This default value is when checking the hierarchy for a token.\n//\n// It means both:\n// - the token is not provided by the current injector,\n// - only the element injectors should be checked (ie do not check module injectors\n//\n// mod1\n// /\n// el1 mod2\n// \\ /\n// el2\n//\n// When requesting el2.injector.get(token), we should check in the following order and return the\n// first found value:\n// - el2.injector.get(token, default)\n// - el1.injector.get(token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) -> do not check the module\n// - mod2.injector.get(token, default)\nconst NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR = {};\n\n/**\n * Injector that looks up a value using a specific injector, before falling back to the module\n * injector. Used primarily when creating components or embedded views dynamically.\n */\nclass ChainedInjector {\n constructor(injector, parentInjector) {\n this.injector = injector;\n this.parentInjector = parentInjector;\n }\n get(token, notFoundValue, flags) {\n flags = convertToBitFlags(flags);\n const value = this.injector.get(token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, flags);\n if (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR || notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) {\n // Return the value from the root element injector when\n // - it provides it\n // (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)\n // - the module injector should not be checked\n // (notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)\n return value;\n }\n return this.parentInjector.get(token, notFoundValue, flags);\n }\n}\n\n/// Parent Injector Utils ///////////////////////////////////////////////////////////////\nfunction hasParentInjector(parentLocation) {\n return parentLocation !== NO_PARENT_INJECTOR;\n}\nfunction getParentInjectorIndex(parentLocation) {\n if (ngDevMode) {\n assertNumber(parentLocation, 'Number expected');\n assertNotEqual(parentLocation, -1, 'Not a valid state.');\n const parentInjectorIndex = parentLocation & 32767 /* RelativeInjectorLocationFlags.InjectorIndexMask */;\n assertGreaterThan(parentInjectorIndex, HEADER_OFFSET, 'Parent injector must be pointing past HEADER_OFFSET.');\n }\n return parentLocation & 32767 /* RelativeInjectorLocationFlags.InjectorIndexMask */;\n}\nfunction getParentInjectorViewOffset(parentLocation) {\n return parentLocation >> 16 /* RelativeInjectorLocationFlags.ViewOffsetShift */;\n}\n/**\n * Unwraps a parent injector location number to find the view offset from the current injector,\n * then walks up the declaration view tree until the view is found that contains the parent\n * injector.\n *\n * @param location The location of the parent injector, which contains the view offset\n * @param startView The LView instance from which to start walking up the view tree\n * @returns The LView instance that contains the parent injector\n */\nfunction getParentInjectorView(location, startView) {\n let viewOffset = getParentInjectorViewOffset(location);\n let parentView = startView;\n // For most cases, the parent injector can be found on the host node (e.g. for component\n // or container), but we must keep the loop here to support the rarer case of deeply nested\n // tags or inline views, where the parent injector might live many views\n // above the child injector.\n while (viewOffset > 0) {\n parentView = parentView[DECLARATION_VIEW];\n viewOffset--;\n }\n return parentView;\n}\n/**\n * Detects whether an injector is an instance of a `ChainedInjector`,\n * created based on the `OutletInjector`.\n */\nfunction isRouterOutletInjector(currentInjector) {\n return currentInjector instanceof ChainedInjector && typeof currentInjector.injector.__ngOutletInjector === 'function';\n}\n\n/**\n * Defines if the call to `inject` should include `viewProviders` in its resolution.\n *\n * This is set to true when we try to instantiate a component. This value is reset in\n * `getNodeInjectable` to a value which matches the declaration location of the token about to be\n * instantiated. This is done so that if we are injecting a token which was declared outside of\n * `viewProviders` we don't accidentally pull `viewProviders` in.\n *\n * Example:\n *\n * ```\n * @Injectable()\n * class MyService {\n * constructor(public value: String) {}\n * }\n *\n * @Component({\n * providers: [\n * MyService,\n * {provide: String, value: 'providers' }\n * ]\n * viewProviders: [\n * {provide: String, value: 'viewProviders'}\n * ]\n * })\n * class MyComponent {\n * constructor(myService: MyService, value: String) {\n * // We expect that Component can see into `viewProviders`.\n * expect(value).toEqual('viewProviders');\n * // `MyService` was not declared in `viewProviders` hence it can't see it.\n * expect(myService.value).toEqual('providers');\n * }\n * }\n *\n * ```\n */\nlet includeViewProviders = true;\nfunction setIncludeViewProviders(v) {\n const oldValue = includeViewProviders;\n includeViewProviders = v;\n return oldValue;\n}\n/**\n * The number of slots in each bloom filter (used by DI). The larger this number, the fewer\n * directives that will share slots, and thus, the fewer false positives when checking for\n * the existence of a directive.\n */\nconst BLOOM_SIZE = 256;\nconst BLOOM_MASK = BLOOM_SIZE - 1;\n/**\n * The number of bits that is represented by a single bloom bucket. JS bit operations are 32 bits,\n * so each bucket represents 32 distinct tokens which accounts for log2(32) = 5 bits of a bloom hash\n * number.\n */\nconst BLOOM_BUCKET_BITS = 5;\n/** Counter used to generate unique IDs for directives. */\nlet nextNgElementId = 0;\n/** Value used when something wasn't found by an injector. */\nconst NOT_FOUND = {};\n/**\n * Registers this directive as present in its node's injector by flipping the directive's\n * corresponding bit in the injector's bloom filter.\n *\n * @param injectorIndex The index of the node injector where this token should be registered\n * @param tView The TView for the injector's bloom filters\n * @param type The directive token to register\n */\nfunction bloomAdd(injectorIndex, tView, type) {\n ngDevMode && assertEqual(tView.firstCreatePass, true, 'expected firstCreatePass to be true');\n let id;\n if (typeof type === 'string') {\n id = type.charCodeAt(0) || 0;\n } else if (type.hasOwnProperty(NG_ELEMENT_ID)) {\n id = type[NG_ELEMENT_ID];\n }\n // Set a unique ID on the directive type, so if something tries to inject the directive,\n // we can easily retrieve the ID and hash it into the bloom bit that should be checked.\n if (id == null) {\n id = type[NG_ELEMENT_ID] = nextNgElementId++;\n }\n // We only have BLOOM_SIZE (256) slots in our bloom filter (8 buckets * 32 bits each),\n // so all unique IDs must be modulo-ed into a number from 0 - 255 to fit into the filter.\n const bloomHash = id & BLOOM_MASK;\n // Create a mask that targets the specific bit associated with the directive.\n // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding\n // to bit positions 0 - 31 in a 32 bit integer.\n const mask = 1 << bloomHash;\n // Each bloom bucket in `tData` represents `BLOOM_BUCKET_BITS` number of bits of `bloomHash`.\n // Any bits in `bloomHash` beyond `BLOOM_BUCKET_BITS` indicate the bucket offset that the mask\n // should be written to.\n tView.data[injectorIndex + (bloomHash >> BLOOM_BUCKET_BITS)] |= mask;\n}\n/**\n * Creates (or gets an existing) injector for a given element or container.\n *\n * @param tNode for which an injector should be retrieved / created.\n * @param lView View where the node is stored\n * @returns Node injector\n */\nfunction getOrCreateNodeInjectorForNode(tNode, lView) {\n const existingInjectorIndex = getInjectorIndex(tNode, lView);\n if (existingInjectorIndex !== -1) {\n return existingInjectorIndex;\n }\n const tView = lView[TVIEW];\n if (tView.firstCreatePass) {\n tNode.injectorIndex = lView.length;\n insertBloom(tView.data, tNode); // foundation for node bloom\n insertBloom(lView, null); // foundation for cumulative bloom\n insertBloom(tView.blueprint, null);\n }\n const parentLoc = getParentInjectorLocation(tNode, lView);\n const injectorIndex = tNode.injectorIndex;\n // If a parent injector can't be found, its location is set to -1.\n // In that case, we don't need to set up a cumulative bloom\n if (hasParentInjector(parentLoc)) {\n const parentIndex = getParentInjectorIndex(parentLoc);\n const parentLView = getParentInjectorView(parentLoc, lView);\n const parentData = parentLView[TVIEW].data;\n // Creates a cumulative bloom filter that merges the parent's bloom filter\n // and its own cumulative bloom (which contains tokens for all ancestors)\n for (let i = 0; i < 8 /* NodeInjectorOffset.BLOOM_SIZE */; i++) {\n lView[injectorIndex + i] = parentLView[parentIndex + i] | parentData[parentIndex + i];\n }\n }\n lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */] = parentLoc;\n return injectorIndex;\n}\nfunction insertBloom(arr, footer) {\n arr.push(0, 0, 0, 0, 0, 0, 0, 0, footer);\n}\nfunction getInjectorIndex(tNode, lView) {\n if (tNode.injectorIndex === -1 ||\n // If the injector index is the same as its parent's injector index, then the index has been\n // copied down from the parent node. No injector has been created yet on this node.\n tNode.parent && tNode.parent.injectorIndex === tNode.injectorIndex ||\n // After the first template pass, the injector index might exist but the parent values\n // might not have been calculated yet for this instance\n lView[tNode.injectorIndex + 8 /* NodeInjectorOffset.PARENT */] === null) {\n return -1;\n } else {\n ngDevMode && assertIndexInRange(lView, tNode.injectorIndex);\n return tNode.injectorIndex;\n }\n}\n/**\n * Finds the index of the parent injector, with a view offset if applicable. Used to set the\n * parent injector initially.\n *\n * @returns Returns a number that is the combination of the number of LViews that we have to go up\n * to find the LView containing the parent inject AND the index of the injector within that LView.\n */\nfunction getParentInjectorLocation(tNode, lView) {\n if (tNode.parent && tNode.parent.injectorIndex !== -1) {\n // If we have a parent `TNode` and there is an injector associated with it we are done, because\n // the parent injector is within the current `LView`.\n return tNode.parent.injectorIndex; // ViewOffset is 0\n }\n // When parent injector location is computed it may be outside of the current view. (ie it could\n // be pointing to a declared parent location). This variable stores number of declaration parents\n // we need to walk up in order to find the parent injector location.\n let declarationViewOffset = 0;\n let parentTNode = null;\n let lViewCursor = lView;\n // The parent injector is not in the current `LView`. We will have to walk the declared parent\n // `LView` hierarchy and look for it. If we walk of the top, that means that there is no parent\n // `NodeInjector`.\n while (lViewCursor !== null) {\n parentTNode = getTNodeFromLView(lViewCursor);\n if (parentTNode === null) {\n // If we have no parent, than we are done.\n return NO_PARENT_INJECTOR;\n }\n ngDevMode && parentTNode && assertTNodeForLView(parentTNode, lViewCursor[DECLARATION_VIEW]);\n // Every iteration of the loop requires that we go to the declared parent.\n declarationViewOffset++;\n lViewCursor = lViewCursor[DECLARATION_VIEW];\n if (parentTNode.injectorIndex !== -1) {\n // We found a NodeInjector which points to something.\n return parentTNode.injectorIndex | declarationViewOffset << 16 /* RelativeInjectorLocationFlags.ViewOffsetShift */;\n }\n }\n return NO_PARENT_INJECTOR;\n}\n/**\n * Makes a type or an injection token public to the DI system by adding it to an\n * injector's bloom filter.\n *\n * @param di The node injector in which a directive will be added\n * @param token The type or the injection token to be made public\n */\nfunction diPublicInInjector(injectorIndex, tView, token) {\n bloomAdd(injectorIndex, tView, token);\n}\n/**\n * Inject static attribute value into directive constructor.\n *\n * This method is used with `factory` functions which are generated as part of\n * `defineDirective` or `defineComponent`. The method retrieves the static value\n * of an attribute. (Dynamic attributes are not supported since they are not resolved\n * at the time of injection and can change over time.)\n *\n * # Example\n * Given:\n * ```\n * @Component(...)\n * class MyComponent {\n * constructor(@Attribute('title') title: string) { ... }\n * }\n * ```\n * When instantiated with\n * ```\n * \n * ```\n *\n * Then factory method generated is:\n * ```\n * MyComponent.ɵcmp = defineComponent({\n * factory: () => new MyComponent(injectAttribute('title'))\n * ...\n * })\n * ```\n *\n * @publicApi\n */\nfunction injectAttributeImpl(tNode, attrNameToInject) {\n ngDevMode && assertTNodeType(tNode, 12 /* TNodeType.AnyContainer */ | 3 /* TNodeType.AnyRNode */);\n ngDevMode && assertDefined(tNode, 'expecting tNode');\n if (attrNameToInject === 'class') {\n return tNode.classes;\n }\n if (attrNameToInject === 'style') {\n return tNode.styles;\n }\n const attrs = tNode.attrs;\n if (attrs) {\n const attrsLength = attrs.length;\n let i = 0;\n while (i < attrsLength) {\n const value = attrs[i];\n // If we hit a `Bindings` or `Template` marker then we are done.\n if (isNameOnlyAttributeMarker(value)) break;\n // Skip namespaced attributes\n if (value === 0 /* AttributeMarker.NamespaceURI */) {\n // we skip the next two values\n // as namespaced attributes looks like\n // [..., AttributeMarker.NamespaceURI, 'http://someuri.com/test', 'test:exist',\n // 'existValue', ...]\n i = i + 2;\n } else if (typeof value === 'number') {\n // Skip to the first value of the marked attribute.\n i++;\n while (i < attrsLength && typeof attrs[i] === 'string') {\n i++;\n }\n } else if (value === attrNameToInject) {\n return attrs[i + 1];\n } else {\n i = i + 2;\n }\n }\n }\n return null;\n}\nfunction notFoundValueOrThrow(notFoundValue, token, flags) {\n if (flags & InjectFlags.Optional || notFoundValue !== undefined) {\n return notFoundValue;\n } else {\n throwProviderNotFoundError(token, 'NodeInjector');\n }\n}\n/**\n * Returns the value associated to the given token from the ModuleInjector or throws exception\n *\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector or throws an exception\n */\nfunction lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue) {\n if (flags & InjectFlags.Optional && notFoundValue === undefined) {\n // This must be set or the NullInjector will throw for optional deps\n notFoundValue = null;\n }\n if ((flags & (InjectFlags.Self | InjectFlags.Host)) === 0) {\n const moduleInjector = lView[INJECTOR];\n // switch to `injectInjectorOnly` implementation for module injector, since module injector\n // should not have access to Component/Directive DI scope (that may happen through\n // `directiveInject` implementation)\n const previousInjectImplementation = setInjectImplementation(undefined);\n try {\n if (moduleInjector) {\n return moduleInjector.get(token, notFoundValue, flags & InjectFlags.Optional);\n } else {\n return injectRootLimpMode(token, notFoundValue, flags & InjectFlags.Optional);\n }\n } finally {\n setInjectImplementation(previousInjectImplementation);\n }\n }\n return notFoundValueOrThrow(notFoundValue, token, flags);\n}\n/**\n * Returns the value associated to the given token from the NodeInjectors => ModuleInjector.\n *\n * Look for the injector providing the token by walking up the node injector tree and then\n * the module injector tree.\n *\n * This function patches `token` with `__NG_ELEMENT_ID__` which contains the id for the bloom\n * filter. `-1` is reserved for injecting `Injector` (implemented by `NodeInjector`)\n *\n * @param tNode The Node where the search for the injector should start\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided\n */\nfunction getOrCreateInjectable(tNode, lView, token, flags = InjectFlags.Default, notFoundValue) {\n if (tNode !== null) {\n // If the view or any of its ancestors have an embedded\n // view injector, we have to look it up there first.\n if (lView[FLAGS] & 2048 /* LViewFlags.HasEmbeddedViewInjector */ &&\n // The token must be present on the current node injector when the `Self`\n // flag is set, so the lookup on embedded view injector(s) can be skipped.\n !(flags & InjectFlags.Self)) {\n const embeddedInjectorValue = lookupTokenUsingEmbeddedInjector(tNode, lView, token, flags, NOT_FOUND);\n if (embeddedInjectorValue !== NOT_FOUND) {\n return embeddedInjectorValue;\n }\n }\n // Otherwise try the node injector.\n const value = lookupTokenUsingNodeInjector(tNode, lView, token, flags, NOT_FOUND);\n if (value !== NOT_FOUND) {\n return value;\n }\n }\n // Finally, fall back to the module injector.\n return lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);\n}\n/**\n * Returns the value associated to the given token from the node injector.\n *\n * @param tNode The Node where the search for the injector should start\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided\n */\nfunction lookupTokenUsingNodeInjector(tNode, lView, token, flags, notFoundValue) {\n const bloomHash = bloomHashBitOrFactory(token);\n // If the ID stored here is a function, this is a special object like ElementRef or TemplateRef\n // so just call the factory function to create it.\n if (typeof bloomHash === 'function') {\n if (!enterDI(lView, tNode, flags)) {\n // Failed to enter DI, try module injector instead. If a token is injected with the @Host\n // flag, the module injector is not searched for that token in Ivy.\n return flags & InjectFlags.Host ? notFoundValueOrThrow(notFoundValue, token, flags) : lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);\n }\n try {\n let value;\n if (ngDevMode) {\n runInInjectorProfilerContext(new NodeInjector(getCurrentTNode(), getLView()), token, () => {\n value = bloomHash(flags);\n if (value != null) {\n emitInstanceCreatedByInjectorEvent(value);\n }\n });\n } else {\n value = bloomHash(flags);\n }\n if (value == null && !(flags & InjectFlags.Optional)) {\n throwProviderNotFoundError(token);\n } else {\n return value;\n }\n } finally {\n leaveDI();\n }\n } else if (typeof bloomHash === 'number') {\n // A reference to the previous injector TView that was found while climbing the element\n // injector tree. This is used to know if viewProviders can be accessed on the current\n // injector.\n let previousTView = null;\n let injectorIndex = getInjectorIndex(tNode, lView);\n let parentLocation = NO_PARENT_INJECTOR;\n let hostTElementNode = flags & InjectFlags.Host ? lView[DECLARATION_COMPONENT_VIEW][T_HOST] : null;\n // If we should skip this injector, or if there is no injector on this node, start by\n // searching the parent injector.\n if (injectorIndex === -1 || flags & InjectFlags.SkipSelf) {\n parentLocation = injectorIndex === -1 ? getParentInjectorLocation(tNode, lView) : lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */];\n if (parentLocation === NO_PARENT_INJECTOR || !shouldSearchParent(flags, false)) {\n injectorIndex = -1;\n } else {\n previousTView = lView[TVIEW];\n injectorIndex = getParentInjectorIndex(parentLocation);\n lView = getParentInjectorView(parentLocation, lView);\n }\n }\n // Traverse up the injector tree until we find a potential match or until we know there\n // *isn't* a match.\n while (injectorIndex !== -1) {\n ngDevMode && assertNodeInjector(lView, injectorIndex);\n // Check the current injector. If it matches, see if it contains token.\n const tView = lView[TVIEW];\n ngDevMode && assertTNodeForLView(tView.data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */], lView);\n if (bloomHasToken(bloomHash, injectorIndex, tView.data)) {\n // At this point, we have an injector which *may* contain the token, so we step through\n // the providers and directives associated with the injector's corresponding node to get\n // the instance.\n const instance = searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode);\n if (instance !== NOT_FOUND) {\n return instance;\n }\n }\n parentLocation = lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */];\n if (parentLocation !== NO_PARENT_INJECTOR && shouldSearchParent(flags, lView[TVIEW].data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */] === hostTElementNode) && bloomHasToken(bloomHash, injectorIndex, lView)) {\n // The def wasn't found anywhere on this node, so it was a false positive.\n // Traverse up the tree and continue searching.\n previousTView = tView;\n injectorIndex = getParentInjectorIndex(parentLocation);\n lView = getParentInjectorView(parentLocation, lView);\n } else {\n // If we should not search parent OR If the ancestor bloom filter value does not have the\n // bit corresponding to the directive we can give up on traversing up to find the specific\n // injector.\n injectorIndex = -1;\n }\n }\n }\n return notFoundValue;\n}\nfunction searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode) {\n const currentTView = lView[TVIEW];\n const tNode = currentTView.data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */];\n // First, we need to determine if view providers can be accessed by the starting element.\n // There are two possibilities\n const canAccessViewProviders = previousTView == null ?\n // 1) This is the first invocation `previousTView == null` which means that we are at the\n // `TNode` of where injector is starting to look. In such a case the only time we are allowed\n // to look into the ViewProviders is if:\n // - we are on a component\n // - AND the injector set `includeViewProviders` to true (implying that the token can see\n // ViewProviders because it is the Component or a Service which itself was declared in\n // ViewProviders)\n isComponentHost(tNode) && includeViewProviders :\n // 2) `previousTView != null` which means that we are now walking across the parent nodes.\n // In such a case we are only allowed to look into the ViewProviders if:\n // - We just crossed from child View to Parent View `previousTView != currentTView`\n // - AND the parent TNode is an Element.\n // This means that we just came from the Component's View and therefore are allowed to see\n // into the ViewProviders.\n previousTView != currentTView && (tNode.type & 3 /* TNodeType.AnyRNode */) !== 0;\n // This special case happens when there is a @host on the inject and when we are searching\n // on the host element node.\n const isHostSpecialCase = flags & InjectFlags.Host && hostTElementNode === tNode;\n const injectableIdx = locateDirectiveOrProvider(tNode, currentTView, token, canAccessViewProviders, isHostSpecialCase);\n if (injectableIdx !== null) {\n return getNodeInjectable(lView, currentTView, injectableIdx, tNode);\n } else {\n return NOT_FOUND;\n }\n}\n/**\n * Searches for the given token among the node's directives and providers.\n *\n * @param tNode TNode on which directives are present.\n * @param tView The tView we are currently processing\n * @param token Provider token or type of a directive to look for.\n * @param canAccessViewProviders Whether view providers should be considered.\n * @param isHostSpecialCase Whether the host special case applies.\n * @returns Index of a found directive or provider, or null when none found.\n */\nfunction locateDirectiveOrProvider(tNode, tView, token, canAccessViewProviders, isHostSpecialCase) {\n const nodeProviderIndexes = tNode.providerIndexes;\n const tInjectables = tView.data;\n const injectablesStart = nodeProviderIndexes & 1048575 /* TNodeProviderIndexes.ProvidersStartIndexMask */;\n const directivesStart = tNode.directiveStart;\n const directiveEnd = tNode.directiveEnd;\n const cptViewProvidersCount = nodeProviderIndexes >> 20 /* TNodeProviderIndexes.CptViewProvidersCountShift */;\n const startingIndex = canAccessViewProviders ? injectablesStart : injectablesStart + cptViewProvidersCount;\n // When the host special case applies, only the viewProviders and the component are visible\n const endIndex = isHostSpecialCase ? injectablesStart + cptViewProvidersCount : directiveEnd;\n for (let i = startingIndex; i < endIndex; i++) {\n const providerTokenOrDef = tInjectables[i];\n if (i < directivesStart && token === providerTokenOrDef || i >= directivesStart && providerTokenOrDef.type === token) {\n return i;\n }\n }\n if (isHostSpecialCase) {\n const dirDef = tInjectables[directivesStart];\n if (dirDef && isComponentDef(dirDef) && dirDef.type === token) {\n return directivesStart;\n }\n }\n return null;\n}\n/**\n * Retrieve or instantiate the injectable from the `LView` at particular `index`.\n *\n * This function checks to see if the value has already been instantiated and if so returns the\n * cached `injectable`. Otherwise if it detects that the value is still a factory it\n * instantiates the `injectable` and caches the value.\n */\nfunction getNodeInjectable(lView, tView, index, tNode) {\n let value = lView[index];\n const tData = tView.data;\n if (isFactory(value)) {\n const factory = value;\n if (factory.resolving) {\n throwCyclicDependencyError(stringifyForError(tData[index]));\n }\n const previousIncludeViewProviders = setIncludeViewProviders(factory.canSeeViewProviders);\n factory.resolving = true;\n let prevInjectContext;\n if (ngDevMode) {\n // tData indexes mirror the concrete instances in its corresponding LView.\n // lView[index] here is either the injectable instace itself or a factory,\n // therefore tData[index] is the constructor of that injectable or a\n // definition object that contains the constructor in a `.type` field.\n const token = tData[index].type || tData[index];\n const injector = new NodeInjector(tNode, lView);\n prevInjectContext = setInjectorProfilerContext({\n injector,\n token\n });\n }\n const previousInjectImplementation = factory.injectImpl ? setInjectImplementation(factory.injectImpl) : null;\n const success = enterDI(lView, tNode, InjectFlags.Default);\n ngDevMode && assertEqual(success, true, \"Because flags do not contain `SkipSelf' we expect this to always succeed.\");\n try {\n value = lView[index] = factory.factory(undefined, tData, lView, tNode);\n ngDevMode && emitInstanceCreatedByInjectorEvent(value);\n // This code path is hit for both directives and providers.\n // For perf reasons, we want to avoid searching for hooks on providers.\n // It does no harm to try (the hooks just won't exist), but the extra\n // checks are unnecessary and this is a hot path. So we check to see\n // if the index of the dependency is in the directive range for this\n // tNode. If it's not, we know it's a provider and skip hook registration.\n if (tView.firstCreatePass && index >= tNode.directiveStart) {\n ngDevMode && assertDirectiveDef(tData[index]);\n registerPreOrderHooks(index, tData[index], tView);\n }\n } finally {\n ngDevMode && setInjectorProfilerContext(prevInjectContext);\n previousInjectImplementation !== null && setInjectImplementation(previousInjectImplementation);\n setIncludeViewProviders(previousIncludeViewProviders);\n factory.resolving = false;\n leaveDI();\n }\n }\n return value;\n}\n/**\n * Returns the bit in an injector's bloom filter that should be used to determine whether or not\n * the directive might be provided by the injector.\n *\n * When a directive is public, it is added to the bloom filter and given a unique ID that can be\n * retrieved on the Type. When the directive isn't public or the token is not a directive `null`\n * is returned as the node injector can not possibly provide that token.\n *\n * @param token the injection token\n * @returns the matching bit to check in the bloom filter or `null` if the token is not known.\n * When the returned value is negative then it represents special values such as `Injector`.\n */\nfunction bloomHashBitOrFactory(token) {\n ngDevMode && assertDefined(token, 'token must be defined');\n if (typeof token === 'string') {\n return token.charCodeAt(0) || 0;\n }\n const tokenId =\n // First check with `hasOwnProperty` so we don't get an inherited ID.\n token.hasOwnProperty(NG_ELEMENT_ID) ? token[NG_ELEMENT_ID] : undefined;\n // Negative token IDs are used for special objects such as `Injector`\n if (typeof tokenId === 'number') {\n if (tokenId >= 0) {\n return tokenId & BLOOM_MASK;\n } else {\n ngDevMode && assertEqual(tokenId, -1 /* InjectorMarkers.Injector */, 'Expecting to get Special Injector Id');\n return createNodeInjector;\n }\n } else {\n return tokenId;\n }\n}\nfunction bloomHasToken(bloomHash, injectorIndex, injectorView) {\n // Create a mask that targets the specific bit associated with the directive we're looking for.\n // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding\n // to bit positions 0 - 31 in a 32 bit integer.\n const mask = 1 << bloomHash;\n // Each bloom bucket in `injectorView` represents `BLOOM_BUCKET_BITS` number of bits of\n // `bloomHash`. Any bits in `bloomHash` beyond `BLOOM_BUCKET_BITS` indicate the bucket offset\n // that should be used.\n const value = injectorView[injectorIndex + (bloomHash >> BLOOM_BUCKET_BITS)];\n // If the bloom filter value has the bit corresponding to the directive's bloomBit flipped on,\n // this injector is a potential match.\n return !!(value & mask);\n}\n/** Returns true if flags prevent parent injector from being searched for tokens */\nfunction shouldSearchParent(flags, isFirstHostTNode) {\n return !(flags & InjectFlags.Self) && !(flags & InjectFlags.Host && isFirstHostTNode);\n}\nfunction getNodeInjectorLView(nodeInjector) {\n return nodeInjector._lView;\n}\nfunction getNodeInjectorTNode(nodeInjector) {\n return nodeInjector._tNode;\n}\nclass NodeInjector {\n constructor(_tNode, _lView) {\n this._tNode = _tNode;\n this._lView = _lView;\n }\n get(token, notFoundValue, flags) {\n return getOrCreateInjectable(this._tNode, this._lView, token, convertToBitFlags(flags), notFoundValue);\n }\n}\n/** Creates a `NodeInjector` for the current node. */\nfunction createNodeInjector() {\n return new NodeInjector(getCurrentTNode(), getLView());\n}\n/**\n * @codeGenApi\n */\nfunction ɵɵgetInheritedFactory(type) {\n return noSideEffects(() => {\n const ownConstructor = type.prototype.constructor;\n const ownFactory = ownConstructor[NG_FACTORY_DEF] || getFactoryOf(ownConstructor);\n const objectPrototype = Object.prototype;\n let parent = Object.getPrototypeOf(type.prototype).constructor;\n // Go up the prototype until we hit `Object`.\n while (parent && parent !== objectPrototype) {\n const factory = parent[NG_FACTORY_DEF] || getFactoryOf(parent);\n // If we hit something that has a factory and the factory isn't the same as the type,\n // we've found the inherited factory. Note the check that the factory isn't the type's\n // own factory is redundant in most cases, but if the user has custom decorators on the\n // class, this lookup will start one level down in the prototype chain, causing us to\n // find the own factory first and potentially triggering an infinite loop downstream.\n if (factory && factory !== ownFactory) {\n return factory;\n }\n parent = Object.getPrototypeOf(parent);\n }\n // There is no factory defined. Either this was improper usage of inheritance\n // (no Angular decorator on the superclass) or there is no constructor at all\n // in the inheritance chain. Since the two cases cannot be distinguished, the\n // latter has to be assumed.\n return t => new t();\n });\n}\nfunction getFactoryOf(type) {\n if (isForwardRef(type)) {\n return () => {\n const factory = getFactoryOf(resolveForwardRef(type));\n return factory && factory();\n };\n }\n return getFactoryDef(type);\n}\n/**\n * Returns a value from the closest embedded or node injector.\n *\n * @param tNode The Node where the search for the injector should start\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided\n */\nfunction lookupTokenUsingEmbeddedInjector(tNode, lView, token, flags, notFoundValue) {\n let currentTNode = tNode;\n let currentLView = lView;\n // When an LView with an embedded view injector is inserted, it'll likely be interlaced with\n // nodes who may have injectors (e.g. node injector -> embedded view injector -> node injector).\n // Since the bloom filters for the node injectors have already been constructed and we don't\n // have a way of extracting the records from an injector, the only way to maintain the correct\n // hierarchy when resolving the value is to walk it node-by-node while attempting to resolve\n // the token at each level.\n while (currentTNode !== null && currentLView !== null && currentLView[FLAGS] & 2048 /* LViewFlags.HasEmbeddedViewInjector */ && !(currentLView[FLAGS] & 512 /* LViewFlags.IsRoot */)) {\n ngDevMode && assertTNodeForLView(currentTNode, currentLView);\n // Note that this lookup on the node injector is using the `Self` flag, because\n // we don't want the node injector to look at any parent injectors since we\n // may hit the embedded view injector first.\n const nodeInjectorValue = lookupTokenUsingNodeInjector(currentTNode, currentLView, token, flags | InjectFlags.Self, NOT_FOUND);\n if (nodeInjectorValue !== NOT_FOUND) {\n return nodeInjectorValue;\n }\n // Has an explicit type due to a TS bug: https://github.com/microsoft/TypeScript/issues/33191\n let parentTNode = currentTNode.parent;\n // `TNode.parent` includes the parent within the current view only. If it doesn't exist,\n // it means that we've hit the view boundary and we need to go up to the next view.\n if (!parentTNode) {\n // Before we go to the next LView, check if the token exists on the current embedded injector.\n const embeddedViewInjector = currentLView[EMBEDDED_VIEW_INJECTOR];\n if (embeddedViewInjector) {\n const embeddedViewInjectorValue = embeddedViewInjector.get(token, NOT_FOUND, flags);\n if (embeddedViewInjectorValue !== NOT_FOUND) {\n return embeddedViewInjectorValue;\n }\n }\n // Otherwise keep going up the tree.\n parentTNode = getTNodeFromLView(currentLView);\n currentLView = currentLView[DECLARATION_VIEW];\n }\n currentTNode = parentTNode;\n }\n return notFoundValue;\n}\n/** Gets the TNode associated with an LView inside of the declaration view. */\nfunction getTNodeFromLView(lView) {\n const tView = lView[TVIEW];\n const tViewType = tView.type;\n // The parent pointer differs based on `TView.type`.\n if (tViewType === 2 /* TViewType.Embedded */) {\n ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');\n return tView.declTNode;\n } else if (tViewType === 1 /* TViewType.Component */) {\n // Components don't have `TView.declTNode` because each instance of component could be\n // inserted in different location, hence `TView.declTNode` is meaningless.\n return lView[T_HOST];\n }\n return null;\n}\n\n/**\n * Facade for the attribute injection from DI.\n *\n * @codeGenApi\n */\nfunction ɵɵinjectAttribute(attrNameToInject) {\n return injectAttributeImpl(getCurrentTNode(), attrNameToInject);\n}\n\n/**\n * Attribute decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Attribute = /*#__PURE__*/makeParamDecorator('Attribute', attributeName => ({\n attributeName,\n __NG_ELEMENT_ID__: () => ɵɵinjectAttribute(attributeName)\n}));\nlet _reflect = null;\nfunction getReflect() {\n return _reflect = _reflect || new ReflectionCapabilities();\n}\nfunction reflectDependencies(type) {\n return convertDependencies(getReflect().parameters(type));\n}\nfunction convertDependencies(deps) {\n return deps.map(dep => reflectDependency(dep));\n}\nfunction reflectDependency(dep) {\n const meta = {\n token: null,\n attribute: null,\n host: false,\n optional: false,\n self: false,\n skipSelf: false\n };\n if (Array.isArray(dep) && dep.length > 0) {\n for (let j = 0; j < dep.length; j++) {\n const param = dep[j];\n if (param === undefined) {\n // param may be undefined if type of dep is not set by ngtsc\n continue;\n }\n const proto = Object.getPrototypeOf(param);\n if (param instanceof Optional || proto.ngMetadataName === 'Optional') {\n meta.optional = true;\n } else if (param instanceof SkipSelf || proto.ngMetadataName === 'SkipSelf') {\n meta.skipSelf = true;\n } else if (param instanceof Self || proto.ngMetadataName === 'Self') {\n meta.self = true;\n } else if (param instanceof Host || proto.ngMetadataName === 'Host') {\n meta.host = true;\n } else if (param instanceof Inject) {\n meta.token = param.token;\n } else if (param instanceof Attribute) {\n if (param.attributeName === undefined) {\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Attribute name must be defined.`);\n }\n meta.attribute = param.attributeName;\n } else {\n meta.token = param;\n }\n }\n } else if (dep === undefined || Array.isArray(dep) && dep.length === 0) {\n meta.token = null;\n } else {\n meta.token = dep;\n }\n return meta;\n}\n\n/**\n * Compile an Angular injectable according to its `Injectable` metadata, and patch the resulting\n * injectable def (`ɵprov`) onto the injectable type.\n */\nfunction compileInjectable(type, meta) {\n let ngInjectableDef = null;\n let ngFactoryDef = null;\n // if NG_PROV_DEF is already defined on this class then don't overwrite it\n if (!type.hasOwnProperty(NG_PROV_DEF)) {\n Object.defineProperty(type, NG_PROV_DEF, {\n get: () => {\n if (ngInjectableDef === null) {\n const compiler = getCompilerFacade({\n usage: 0 /* JitCompilerUsage.Decorator */,\n kind: 'injectable',\n type\n });\n ngInjectableDef = compiler.compileInjectable(angularCoreDiEnv, `ng:///${type.name}/ɵprov.js`, getInjectableMetadata(type, meta));\n }\n return ngInjectableDef;\n }\n });\n }\n // if NG_FACTORY_DEF is already defined on this class then don't overwrite it\n if (!type.hasOwnProperty(NG_FACTORY_DEF)) {\n Object.defineProperty(type, NG_FACTORY_DEF, {\n get: () => {\n if (ngFactoryDef === null) {\n const compiler = getCompilerFacade({\n usage: 0 /* JitCompilerUsage.Decorator */,\n kind: 'injectable',\n type\n });\n ngFactoryDef = compiler.compileFactory(angularCoreDiEnv, `ng:///${type.name}/ɵfac.js`, {\n name: type.name,\n type,\n typeArgumentCount: 0,\n // In JIT mode types are not available nor used.\n deps: reflectDependencies(type),\n target: compiler.FactoryTarget.Injectable\n });\n }\n return ngFactoryDef;\n },\n // Leave this configurable so that the factories from directives or pipes can take precedence.\n configurable: true\n });\n }\n}\nconst USE_VALUE = /*#__PURE__*/getClosureSafeProperty({\n provide: String,\n useValue: getClosureSafeProperty\n});\nfunction isUseClassProvider(meta) {\n return meta.useClass !== undefined;\n}\nfunction isUseValueProvider(meta) {\n return USE_VALUE in meta;\n}\nfunction isUseFactoryProvider(meta) {\n return meta.useFactory !== undefined;\n}\nfunction isUseExistingProvider(meta) {\n return meta.useExisting !== undefined;\n}\nfunction getInjectableMetadata(type, srcMeta) {\n // Allow the compilation of a class with a `@Injectable()` decorator without parameters\n const meta = srcMeta || {\n providedIn: null\n };\n const compilerMeta = {\n name: type.name,\n type: type,\n typeArgumentCount: 0,\n providedIn: meta.providedIn\n };\n if ((isUseClassProvider(meta) || isUseFactoryProvider(meta)) && meta.deps !== undefined) {\n compilerMeta.deps = convertDependencies(meta.deps);\n }\n // Check to see if the user explicitly provided a `useXxxx` property.\n if (isUseClassProvider(meta)) {\n compilerMeta.useClass = meta.useClass;\n } else if (isUseValueProvider(meta)) {\n compilerMeta.useValue = meta.useValue;\n } else if (isUseFactoryProvider(meta)) {\n compilerMeta.useFactory = meta.useFactory;\n } else if (isUseExistingProvider(meta)) {\n compilerMeta.useExisting = meta.useExisting;\n }\n return compilerMeta;\n}\n\n/**\n * Injectable decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Injectable = /*#__PURE__*/makeDecorator('Injectable', undefined, undefined, undefined, (type, meta) => compileInjectable(type, meta));\n\n/**\n * Create a new `Injector` which is configured using a `defType` of `InjectorType`s.\n */\nfunction createInjector(defType, parent = null, additionalProviders = null, name) {\n const injector = createInjectorWithoutInjectorInstances(defType, parent, additionalProviders, name);\n injector.resolveInjectorInitializers();\n return injector;\n}\n/**\n * Creates a new injector without eagerly resolving its injector types. Can be used in places\n * where resolving the injector types immediately can lead to an infinite loop. The injector types\n * should be resolved at a later point by calling `_resolveInjectorDefTypes`.\n */\nfunction createInjectorWithoutInjectorInstances(defType, parent = null, additionalProviders = null, name, scopes = new Set()) {\n const providers = [additionalProviders || EMPTY_ARRAY, importProvidersFrom(defType)];\n name = name || (typeof defType === 'object' ? undefined : stringify(defType));\n return new R3Injector(providers, parent || getNullInjector(), name || null, scopes);\n}\n\n/**\n * Concrete injectors implement this interface. Injectors are configured\n * with [providers](guide/di/dependency-injection-providers) that associate\n * dependencies of various types with [injection tokens](guide/di/dependency-injection-providers).\n *\n * @see [DI Providers](guide/di/dependency-injection-providers).\n * @see {@link StaticProvider}\n *\n * @usageNotes\n *\n * The following example creates a service injector instance.\n *\n * {@example core/di/ts/provider_spec.ts region='ConstructorProvider'}\n *\n * ### Usage example\n *\n * {@example core/di/ts/injector_spec.ts region='Injector'}\n *\n * `Injector` returns itself when given `Injector` as a token:\n *\n * {@example core/di/ts/injector_spec.ts region='injectInjector'}\n *\n * @publicApi\n */\nclass Injector {\n static {\n this.THROW_IF_NOT_FOUND = THROW_IF_NOT_FOUND;\n }\n static {\n this.NULL = /*#__PURE__*/new NullInjector();\n }\n static create(options, parent) {\n if (Array.isArray(options)) {\n return createInjector({\n name: ''\n }, parent, options, '');\n } else {\n const name = options.name ?? '';\n return createInjector({\n name\n }, options.parent, options.providers, name);\n }\n }\n /** @nocollapse */\n static {\n this.ɵprov = /*#__PURE__*/ɵɵdefineInjectable({\n token: Injector,\n providedIn: 'any',\n factory: () => ɵɵinject(INJECTOR$1)\n });\n }\n /**\n * @internal\n * @nocollapse\n */\n static {\n this.__NG_ELEMENT_ID__ = -1 /* InjectorMarkers.Injector */;\n }\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Creates a token that can be used to inject static attributes of the host node.\n *\n * @usageNotes\n * ### Injecting an attribute that is known to exist\n * ```typescript\n * @Directive()\n * class MyDir {\n * attr: string = inject(new HostAttributeToken('some-attr'));\n * }\n * ```\n *\n * ### Optionally injecting an attribute\n * ```typescript\n * @Directive()\n * class MyDir {\n * attr: string | null = inject(new HostAttributeToken('some-attr'), {optional: true});\n * }\n * ```\n * @publicApi\n */\nclass HostAttributeToken {\n constructor(attributeName) {\n this.attributeName = attributeName;\n /** @internal */\n this.__NG_ELEMENT_ID__ = () => ɵɵinjectAttribute(this.attributeName);\n }\n toString() {\n return `HostAttributeToken ${this.attributeName}`;\n }\n}\n\n/**\n * A token that can be used to inject the tag name of the host node.\n *\n * @usageNotes\n * ### Injecting a tag name that is known to exist\n * ```typescript\n * @Directive()\n * class MyDir {\n * tagName: string = inject(HOST_TAG_NAME);\n * }\n * ```\n *\n * ### Optionally injecting a tag name\n * ```typescript\n * @Directive()\n * class MyDir {\n * tagName: string | null = inject(HOST_TAG_NAME, {optional: true});\n * }\n * ```\n * @publicApi\n */\nconst HOST_TAG_NAME = /*#__PURE__*/new InjectionToken(ngDevMode ? 'HOST_TAG_NAME' : '');\n// HOST_TAG_NAME should be resolved at the current node, similar to e.g. ElementRef,\n// so we manually specify __NG_ELEMENT_ID__ here, instead of using a factory.\n// tslint:disable-next-line:no-toplevel-property-access\nHOST_TAG_NAME.__NG_ELEMENT_ID__ = flags => {\n const tNode = getCurrentTNode();\n if (tNode === null) {\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && 'HOST_TAG_NAME can only be injected in directives and components ' + 'during construction time (in a class constructor or as a class field initializer)');\n }\n if (tNode.type & 2 /* TNodeType.Element */) {\n return tNode.value;\n }\n if (flags & InjectFlags.Optional) {\n return null;\n }\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `HOST_TAG_NAME was used on ${getDevModeNodeName(tNode)} which doesn't have an underlying element in the DOM. ` + `This is invalid, and so the dependency should be marked as optional.`);\n};\nfunction getDevModeNodeName(tNode) {\n if (tNode.type & 8 /* TNodeType.ElementContainer */) {\n return 'an ';\n } else if (tNode.type & 4 /* TNodeType.Container */) {\n return 'an ';\n } else if (tNode.type & 128 /* TNodeType.LetDeclaration */) {\n return 'an @let declaration';\n } else {\n return 'a node';\n }\n}\n\n/**\n * @module\n * @description\n * The `di` module provides dependency injection container services.\n */\n\n/**\n * This file should not be necessary because node resolution should just default to `./di/index`!\n *\n * However it does not seem to work and it breaks:\n * - //packages/animations/browser/test:test_web_chromium-local\n * - //packages/compiler-cli/test:extract_i18n\n * - //packages/compiler-cli/test:ngc\n * - //packages/compiler-cli/test:perform_watch\n * - //packages/compiler-cli/test/diagnostics:check_types\n * - //packages/compiler-cli/test/transformers:test\n * - //packages/compiler/test:test\n * - //tools/public_api_guard:core_api\n *\n * Remove this file once the above is solved or wait until `ngc` is deleted and then it should be\n * safe to delete this file.\n */\n\nconst ERROR_ORIGINAL_ERROR = 'ngOriginalError';\nfunction wrappedError(message, originalError) {\n const msg = `${message} caused by: ${originalError instanceof Error ? originalError.message : originalError}`;\n const error = Error(msg);\n error[ERROR_ORIGINAL_ERROR] = originalError;\n return error;\n}\nfunction getOriginalError(error) {\n return error[ERROR_ORIGINAL_ERROR];\n}\nconst SCHEDULE_IN_ROOT_ZONE_DEFAULT = true;\n\n/**\n * `DestroyRef` lets you set callbacks to run for any cleanup or destruction behavior.\n * The scope of this destruction depends on where `DestroyRef` is injected. If `DestroyRef`\n * is injected in a component or directive, the callbacks run when that component or\n * directive is destroyed. Otherwise the callbacks run when a corresponding injector is destroyed.\n *\n * @publicApi\n */\nlet DestroyRef = /*#__PURE__*/(() => {\n class DestroyRef {\n /**\n * @internal\n * @nocollapse\n */\n static {\n this.__NG_ELEMENT_ID__ = injectDestroyRef;\n }\n /**\n * @internal\n * @nocollapse\n */\n static {\n this.__NG_ENV_ID__ = injector => injector;\n }\n }\n return DestroyRef;\n})();\nclass NodeInjectorDestroyRef extends DestroyRef {\n constructor(_lView) {\n super();\n this._lView = _lView;\n }\n onDestroy(callback) {\n storeLViewOnDestroy(this._lView, callback);\n return () => removeLViewOnDestroy(this._lView, callback);\n }\n}\nfunction injectDestroyRef() {\n return new NodeInjectorDestroyRef(getLView());\n}\n\n/**\n * Internal implementation of the pending tasks service.\n */\nlet PendingTasks = /*#__PURE__*/(() => {\n class PendingTasks {\n constructor() {\n this.taskId = 0;\n this.pendingTasks = new Set();\n this.hasPendingTasks = new BehaviorSubject(false);\n }\n get _hasPendingTasks() {\n return this.hasPendingTasks.value;\n }\n add() {\n if (!this._hasPendingTasks) {\n this.hasPendingTasks.next(true);\n }\n const taskId = this.taskId++;\n this.pendingTasks.add(taskId);\n return taskId;\n }\n remove(taskId) {\n this.pendingTasks.delete(taskId);\n if (this.pendingTasks.size === 0 && this._hasPendingTasks) {\n this.hasPendingTasks.next(false);\n }\n }\n ngOnDestroy() {\n this.pendingTasks.clear();\n if (this._hasPendingTasks) {\n this.hasPendingTasks.next(false);\n }\n }\n /** @nocollapse */\n static {\n this.ɵprov = ɵɵdefineInjectable({\n token: PendingTasks,\n providedIn: 'root',\n factory: () => new PendingTasks()\n });\n }\n }\n return PendingTasks;\n})();\n/**\n * Experimental service that keeps track of pending tasks contributing to the stableness of Angular\n * application. While several existing Angular services (ex.: `HttpClient`) will internally manage\n * tasks influencing stability, this API gives control over stability to library and application\n * developers for specific cases not covered by Angular internals.\n *\n * The concept of stability comes into play in several important scenarios:\n * - SSR process needs to wait for the application stability before serializing and sending rendered\n * HTML;\n * - tests might want to delay assertions until the application becomes stable;\n *\n * @usageNotes\n * ```typescript\n * const pendingTasks = inject(ExperimentalPendingTasks);\n * const taskCleanup = pendingTasks.add();\n * // do work that should block application's stability and then:\n * taskCleanup();\n * ```\n *\n * This API is experimental. Neither the shape, nor the underlying behavior is stable and can change\n * in patch versions. We will iterate on the exact API based on the feedback and our understanding\n * of the problem and solution space.\n *\n * @publicApi\n * @experimental\n */\nlet ExperimentalPendingTasks = /*#__PURE__*/(() => {\n class ExperimentalPendingTasks {\n constructor() {\n this.internalPendingTasks = inject(PendingTasks);\n }\n /**\n * Adds a new task that should block application's stability.\n * @returns A cleanup function that removes a task when called.\n */\n add() {\n const taskId = this.internalPendingTasks.add();\n return () => this.internalPendingTasks.remove(taskId);\n }\n /** @nocollapse */\n static {\n this.ɵprov = ɵɵdefineInjectable({\n token: ExperimentalPendingTasks,\n providedIn: 'root',\n factory: () => new ExperimentalPendingTasks()\n });\n }\n }\n return ExperimentalPendingTasks;\n})();\nclass EventEmitter_ extends Subject {\n constructor(isAsync = false) {\n super();\n this.destroyRef = undefined;\n this.pendingTasks = undefined;\n this.__isAsync = isAsync;\n // Attempt to retrieve a `DestroyRef` and `PendingTasks` optionally.\n // For backwards compatibility reasons, this cannot be required.\n if (isInInjectionContext()) {\n // `DestroyRef` is optional because it is not available in all contexts.\n // But it is useful to properly complete the `EventEmitter` if used with `outputToObservable`\n // when the component/directive is destroyed. (See `outputToObservable` for more details.)\n this.destroyRef = inject(DestroyRef, {\n optional: true\n }) ?? undefined;\n this.pendingTasks = inject(PendingTasks, {\n optional: true\n }) ?? undefined;\n }\n }\n emit(value) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n super.next(value);\n } finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n subscribe(observerOrNext, error, complete) {\n let nextFn = observerOrNext;\n let errorFn = error || (() => null);\n let completeFn = complete;\n if (observerOrNext && typeof observerOrNext === 'object') {\n const observer = observerOrNext;\n nextFn = observer.next?.bind(observer);\n errorFn = observer.error?.bind(observer);\n completeFn = observer.complete?.bind(observer);\n }\n if (this.__isAsync) {\n errorFn = this.wrapInTimeout(errorFn);\n if (nextFn) {\n nextFn = this.wrapInTimeout(nextFn);\n }\n if (completeFn) {\n completeFn = this.wrapInTimeout(completeFn);\n }\n }\n const sink = super.subscribe({\n next: nextFn,\n error: errorFn,\n complete: completeFn\n });\n if (observerOrNext instanceof Subscription) {\n observerOrNext.add(sink);\n }\n return sink;\n }\n wrapInTimeout(fn) {\n return value => {\n const taskId = this.pendingTasks?.add();\n setTimeout(() => {\n fn(value);\n if (taskId !== undefined) {\n this.pendingTasks?.remove(taskId);\n }\n });\n };\n }\n}\n/**\n * @publicApi\n */\nconst EventEmitter = EventEmitter_;\nfunction noop(...args) {\n // Do nothing.\n}\n\n/**\n * Gets a scheduling function that runs the callback after the first of setTimeout and\n * requestAnimationFrame resolves.\n *\n * - `requestAnimationFrame` ensures that change detection runs ahead of a browser repaint.\n * This ensures that the create and update passes of a change detection always happen\n * in the same frame.\n * - When the browser is resource-starved, `rAF` can execute _before_ a `setTimeout` because\n * rendering is a very high priority process. This means that `setTimeout` cannot guarantee\n * same-frame create and update pass, when `setTimeout` is used to schedule the update phase.\n * - While `rAF` gives us the desirable same-frame updates, it has two limitations that\n * prevent it from being used alone. First, it does not run in background tabs, which would\n * prevent Angular from initializing an application when opened in a new tab (for example).\n * Second, repeated calls to requestAnimationFrame will execute at the refresh rate of the\n * hardware (~16ms for a 60Hz display). This would cause significant slowdown of tests that\n * are written with several updates and asserts in the form of \"update; await stable; assert;\".\n * - Both `setTimeout` and `rAF` are able to \"coalesce\" several events from a single user\n * interaction into a single change detection. Importantly, this reduces view tree traversals when\n * compared to an alternative timing mechanism like `queueMicrotask`, where change detection would\n * then be interleaves between each event.\n *\n * By running change detection after the first of `setTimeout` and `rAF` to execute, we get the\n * best of both worlds.\n *\n * @returns a function to cancel the scheduled callback\n */\nfunction scheduleCallbackWithRafRace(callback) {\n let timeoutId;\n let animationFrameId;\n function cleanup() {\n callback = noop;\n try {\n if (animationFrameId !== undefined && typeof cancelAnimationFrame === 'function') {\n cancelAnimationFrame(animationFrameId);\n }\n if (timeoutId !== undefined) {\n clearTimeout(timeoutId);\n }\n } catch {\n // Clearing/canceling can fail in tests due to the timing of functions being patched and unpatched\n // Just ignore the errors - we protect ourselves from this issue by also making the callback a no-op.\n }\n }\n timeoutId = setTimeout(() => {\n callback();\n cleanup();\n });\n if (typeof requestAnimationFrame === 'function') {\n animationFrameId = requestAnimationFrame(() => {\n callback();\n cleanup();\n });\n }\n return () => cleanup();\n}\nfunction scheduleCallbackWithMicrotask(callback) {\n queueMicrotask(() => callback());\n return () => {\n callback = noop;\n };\n}\nclass AsyncStackTaggingZoneSpec {\n constructor(namePrefix, consoleAsyncStackTaggingImpl = console) {\n this.name = 'asyncStackTagging for ' + namePrefix;\n this.createTask = consoleAsyncStackTaggingImpl?.createTask ?? (() => null);\n }\n onScheduleTask(delegate, _current, target, task) {\n task.consoleTask = this.createTask(`Zone - ${task.source || task.type}`);\n return delegate.scheduleTask(target, task);\n }\n onInvokeTask(delegate, _currentZone, targetZone, task, applyThis, applyArgs) {\n let ret;\n if (task.consoleTask) {\n ret = task.consoleTask.run(() => delegate.invokeTask(targetZone, task, applyThis, applyArgs));\n } else {\n ret = delegate.invokeTask(targetZone, task, applyThis, applyArgs);\n }\n return ret;\n }\n}\nconst isAngularZoneProperty = 'isAngularZone';\nconst angularZoneInstanceIdProperty = isAngularZoneProperty + '_ID';\nlet ngZoneInstanceId = 0;\n/**\n * An injectable service for executing work inside or outside of the Angular zone.\n *\n * The most common use of this service is to optimize performance when starting a work consisting of\n * one or more asynchronous tasks that don't require UI updates or error handling to be handled by\n * Angular. Such tasks can be kicked off via {@link #runOutsideAngular} and if needed, these tasks\n * can reenter the Angular zone via {@link #run}.\n *\n * \n *\n * @usageNotes\n * ### Example\n *\n * ```\n * import {Component, NgZone} from '@angular/core';\n * import {NgIf} from '@angular/common';\n *\n * @Component({\n * selector: 'ng-zone-demo',\n * template: `\n *

Demo: NgZone

\n *\n *

Progress: {{progress}}%

\n *

= 100\">Done processing {{label}} of Angular zone!

\n *\n * \n * \n * `,\n * })\n * export class NgZoneDemo {\n * progress: number = 0;\n * label: string;\n *\n * constructor(private _ngZone: NgZone) {}\n *\n * // Loop inside the Angular zone\n * // so the UI DOES refresh after each setTimeout cycle\n * processWithinAngularZone() {\n * this.label = 'inside';\n * this.progress = 0;\n * this._increaseProgress(() => console.log('Inside Done!'));\n * }\n *\n * // Loop outside of the Angular zone\n * // so the UI DOES NOT refresh after each setTimeout cycle\n * processOutsideOfAngularZone() {\n * this.label = 'outside';\n * this.progress = 0;\n * this._ngZone.runOutsideAngular(() => {\n * this._increaseProgress(() => {\n * // reenter the Angular zone and display done\n * this._ngZone.run(() => { console.log('Outside Done!'); });\n * });\n * });\n * }\n *\n * _increaseProgress(doneCallback: () => void) {\n * this.progress += 1;\n * console.log(`Current progress: ${this.progress}%`);\n *\n * if (this.progress < 100) {\n * window.setTimeout(() => this._increaseProgress(doneCallback), 10);\n * } else {\n * doneCallback();\n * }\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass NgZone {\n constructor(options) {\n this.hasPendingMacrotasks = false;\n this.hasPendingMicrotasks = false;\n /**\n * Whether there are no outstanding microtasks or macrotasks.\n */\n this.isStable = true;\n /**\n * Notifies when code enters Angular Zone. This gets fired first on VM Turn.\n */\n this.onUnstable = new EventEmitter(false);\n /**\n * Notifies when there is no more microtasks enqueued in the current VM Turn.\n * This is a hint for Angular to do change detection, which may enqueue more microtasks.\n * For this reason this event can fire multiple times per VM Turn.\n */\n this.onMicrotaskEmpty = new EventEmitter(false);\n /**\n * Notifies when the last `onMicrotaskEmpty` has run and there are no more microtasks, which\n * implies we are about to relinquish VM turn.\n * This event gets called just once.\n */\n this.onStable = new EventEmitter(false);\n /**\n * Notifies that an error has been delivered.\n */\n this.onError = new EventEmitter(false);\n const {\n enableLongStackTrace = false,\n shouldCoalesceEventChangeDetection = false,\n shouldCoalesceRunChangeDetection = false,\n scheduleInRootZone = SCHEDULE_IN_ROOT_ZONE_DEFAULT\n } = options;\n if (typeof Zone == 'undefined') {\n throw new RuntimeError(908 /* RuntimeErrorCode.MISSING_ZONEJS */, ngDevMode && `In this configuration Angular requires Zone.js`);\n }\n Zone.assertZonePatched();\n const self = this;\n self._nesting = 0;\n self._outer = self._inner = Zone.current;\n // AsyncStackTaggingZoneSpec provides `linked stack traces` to show\n // where the async operation is scheduled. For more details, refer\n // to this article, https://developer.chrome.com/blog/devtools-better-angular-debugging/\n // And we only import this AsyncStackTaggingZoneSpec in development mode,\n // in the production mode, the AsyncStackTaggingZoneSpec will be tree shaken away.\n if (ngDevMode) {\n self._inner = self._inner.fork(new AsyncStackTaggingZoneSpec('Angular'));\n }\n if (Zone['TaskTrackingZoneSpec']) {\n self._inner = self._inner.fork(new Zone['TaskTrackingZoneSpec']());\n }\n if (enableLongStackTrace && Zone['longStackTraceZoneSpec']) {\n self._inner = self._inner.fork(Zone['longStackTraceZoneSpec']);\n }\n // if shouldCoalesceRunChangeDetection is true, all tasks including event tasks will be\n // coalesced, so shouldCoalesceEventChangeDetection option is not necessary and can be skipped.\n self.shouldCoalesceEventChangeDetection = !shouldCoalesceRunChangeDetection && shouldCoalesceEventChangeDetection;\n self.shouldCoalesceRunChangeDetection = shouldCoalesceRunChangeDetection;\n self.callbackScheduled = false;\n self.scheduleInRootZone = scheduleInRootZone;\n forkInnerZoneWithAngularBehavior(self);\n }\n /**\n This method checks whether the method call happens within an Angular Zone instance.\n */\n static isInAngularZone() {\n // Zone needs to be checked, because this method might be called even when NoopNgZone is used.\n return typeof Zone !== 'undefined' && Zone.current.get(isAngularZoneProperty) === true;\n }\n /**\n Assures that the method is called within the Angular Zone, otherwise throws an error.\n */\n static assertInAngularZone() {\n if (!NgZone.isInAngularZone()) {\n throw new RuntimeError(909 /* RuntimeErrorCode.UNEXPECTED_ZONE_STATE */, ngDevMode && 'Expected to be in Angular Zone, but it is not!');\n }\n }\n /**\n Assures that the method is called outside of the Angular Zone, otherwise throws an error.\n */\n static assertNotInAngularZone() {\n if (NgZone.isInAngularZone()) {\n throw new RuntimeError(909 /* RuntimeErrorCode.UNEXPECTED_ZONE_STATE */, ngDevMode && 'Expected to not be in Angular Zone, but it is!');\n }\n }\n /**\n * Executes the `fn` function synchronously within the Angular zone and returns value returned by\n * the function.\n *\n * Running functions via `run` allows you to reenter Angular zone from a task that was executed\n * outside of the Angular zone (typically started via {@link #runOutsideAngular}).\n *\n * Any future tasks or microtasks scheduled from within this function will continue executing from\n * within the Angular zone.\n *\n * If a synchronous error happens it will be rethrown and not reported via `onError`.\n */\n run(fn, applyThis, applyArgs) {\n return this._inner.run(fn, applyThis, applyArgs);\n }\n /**\n * Executes the `fn` function synchronously within the Angular zone as a task and returns value\n * returned by the function.\n *\n * Running functions via `run` allows you to reenter Angular zone from a task that was executed\n * outside of the Angular zone (typically started via {@link #runOutsideAngular}).\n *\n * Any future tasks or microtasks scheduled from within this function will continue executing from\n * within the Angular zone.\n *\n * If a synchronous error happens it will be rethrown and not reported via `onError`.\n */\n runTask(fn, applyThis, applyArgs, name) {\n const zone = this._inner;\n const task = zone.scheduleEventTask('NgZoneEvent: ' + name, fn, EMPTY_PAYLOAD, noop, noop);\n try {\n return zone.runTask(task, applyThis, applyArgs);\n } finally {\n zone.cancelTask(task);\n }\n }\n /**\n * Same as `run`, except that synchronous errors are caught and forwarded via `onError` and not\n * rethrown.\n */\n runGuarded(fn, applyThis, applyArgs) {\n return this._inner.runGuarded(fn, applyThis, applyArgs);\n }\n /**\n * Executes the `fn` function synchronously in Angular's parent zone and returns value returned by\n * the function.\n *\n * Running functions via {@link #runOutsideAngular} allows you to escape Angular's zone and do\n * work that\n * doesn't trigger Angular change-detection or is subject to Angular's error handling.\n *\n * Any future tasks or microtasks scheduled from within this function will continue executing from\n * outside of the Angular zone.\n *\n * Use {@link #run} to reenter the Angular zone and do work that updates the application model.\n */\n runOutsideAngular(fn) {\n return this._outer.run(fn);\n }\n}\nconst EMPTY_PAYLOAD = {};\nfunction checkStable(zone) {\n // TODO: @JiaLiPassion, should check zone.isCheckStableRunning to prevent\n // re-entry. The case is:\n //\n // @Component({...})\n // export class AppComponent {\n // constructor(private ngZone: NgZone) {\n // this.ngZone.onStable.subscribe(() => {\n // this.ngZone.run(() => console.log('stable'););\n // });\n // }\n //\n // The onStable subscriber run another function inside ngZone\n // which causes `checkStable()` re-entry.\n // But this fix causes some issues in g3, so this fix will be\n // launched in another PR.\n if (zone._nesting == 0 && !zone.hasPendingMicrotasks && !zone.isStable) {\n try {\n zone._nesting++;\n zone.onMicrotaskEmpty.emit(null);\n } finally {\n zone._nesting--;\n if (!zone.hasPendingMicrotasks) {\n try {\n zone.runOutsideAngular(() => zone.onStable.emit(null));\n } finally {\n zone.isStable = true;\n }\n }\n }\n }\n}\nfunction delayChangeDetectionForEvents(zone) {\n /**\n * We also need to check _nesting here\n * Consider the following case with shouldCoalesceRunChangeDetection = true\n *\n * ngZone.run(() => {});\n * ngZone.run(() => {});\n *\n * We want the two `ngZone.run()` only trigger one change detection\n * when shouldCoalesceRunChangeDetection is true.\n * And because in this case, change detection run in async way(requestAnimationFrame),\n * so we also need to check the _nesting here to prevent multiple\n * change detections.\n */\n if (zone.isCheckStableRunning || zone.callbackScheduled) {\n return;\n }\n zone.callbackScheduled = true;\n function scheduleCheckStable() {\n scheduleCallbackWithRafRace(() => {\n zone.callbackScheduled = false;\n updateMicroTaskStatus(zone);\n zone.isCheckStableRunning = true;\n checkStable(zone);\n zone.isCheckStableRunning = false;\n });\n }\n if (zone.scheduleInRootZone) {\n Zone.root.run(() => {\n scheduleCheckStable();\n });\n } else {\n zone._outer.run(() => {\n scheduleCheckStable();\n });\n }\n updateMicroTaskStatus(zone);\n}\nfunction forkInnerZoneWithAngularBehavior(zone) {\n const delayChangeDetectionForEventsDelegate = () => {\n delayChangeDetectionForEvents(zone);\n };\n const instanceId = ngZoneInstanceId++;\n zone._inner = zone._inner.fork({\n name: 'angular',\n properties: {\n [isAngularZoneProperty]: true,\n [angularZoneInstanceIdProperty]: instanceId,\n [angularZoneInstanceIdProperty + instanceId]: true\n },\n onInvokeTask: (delegate, current, target, task, applyThis, applyArgs) => {\n // Prevent triggering change detection when the flag is detected.\n if (shouldBeIgnoredByZone(applyArgs)) {\n return delegate.invokeTask(target, task, applyThis, applyArgs);\n }\n try {\n onEnter(zone);\n return delegate.invokeTask(target, task, applyThis, applyArgs);\n } finally {\n if (zone.shouldCoalesceEventChangeDetection && task.type === 'eventTask' || zone.shouldCoalesceRunChangeDetection) {\n delayChangeDetectionForEventsDelegate();\n }\n onLeave(zone);\n }\n },\n onInvoke: (delegate, current, target, callback, applyThis, applyArgs, source) => {\n try {\n onEnter(zone);\n return delegate.invoke(target, callback, applyThis, applyArgs, source);\n } finally {\n if (zone.shouldCoalesceRunChangeDetection &&\n // Do not delay change detection when the task is the scheduler's tick.\n // We need to synchronously trigger the stability logic so that the\n // zone-based scheduler can prevent a duplicate ApplicationRef.tick\n // by first checking if the scheduler tick is running. This does seem a bit roundabout,\n // but we _do_ still want to trigger all the correct events when we exit the zone.run\n // (`onMicrotaskEmpty` and `onStable` _should_ emit; developers can have code which\n // relies on these events happening after change detection runs).\n // Note: `zone.callbackScheduled` is already in delayChangeDetectionForEventsDelegate\n // but is added here as well to prevent reads of applyArgs when not necessary\n !zone.callbackScheduled && !isSchedulerTick(applyArgs)) {\n delayChangeDetectionForEventsDelegate();\n }\n onLeave(zone);\n }\n },\n onHasTask: (delegate, current, target, hasTaskState) => {\n delegate.hasTask(target, hasTaskState);\n if (current === target) {\n // We are only interested in hasTask events which originate from our zone\n // (A child hasTask event is not interesting to us)\n if (hasTaskState.change == 'microTask') {\n zone._hasPendingMicrotasks = hasTaskState.microTask;\n updateMicroTaskStatus(zone);\n checkStable(zone);\n } else if (hasTaskState.change == 'macroTask') {\n zone.hasPendingMacrotasks = hasTaskState.macroTask;\n }\n }\n },\n onHandleError: (delegate, current, target, error) => {\n delegate.handleError(target, error);\n zone.runOutsideAngular(() => zone.onError.emit(error));\n return false;\n }\n });\n}\nfunction updateMicroTaskStatus(zone) {\n if (zone._hasPendingMicrotasks || (zone.shouldCoalesceEventChangeDetection || zone.shouldCoalesceRunChangeDetection) && zone.callbackScheduled === true) {\n zone.hasPendingMicrotasks = true;\n } else {\n zone.hasPendingMicrotasks = false;\n }\n}\nfunction onEnter(zone) {\n zone._nesting++;\n if (zone.isStable) {\n zone.isStable = false;\n zone.onUnstable.emit(null);\n }\n}\nfunction onLeave(zone) {\n zone._nesting--;\n checkStable(zone);\n}\n/**\n * Provides a noop implementation of `NgZone` which does nothing. This zone requires explicit calls\n * to framework to perform rendering.\n */\nclass NoopNgZone {\n constructor() {\n this.hasPendingMicrotasks = false;\n this.hasPendingMacrotasks = false;\n this.isStable = true;\n this.onUnstable = new EventEmitter();\n this.onMicrotaskEmpty = new EventEmitter();\n this.onStable = new EventEmitter();\n this.onError = new EventEmitter();\n }\n run(fn, applyThis, applyArgs) {\n return fn.apply(applyThis, applyArgs);\n }\n runGuarded(fn, applyThis, applyArgs) {\n return fn.apply(applyThis, applyArgs);\n }\n runOutsideAngular(fn) {\n return fn();\n }\n runTask(fn, applyThis, applyArgs, name) {\n return fn.apply(applyThis, applyArgs);\n }\n}\nfunction shouldBeIgnoredByZone(applyArgs) {\n return hasApplyArgsData(applyArgs, '__ignore_ng_zone__');\n}\nfunction isSchedulerTick(applyArgs) {\n return hasApplyArgsData(applyArgs, '__scheduler_tick__');\n}\nfunction hasApplyArgsData(applyArgs, key) {\n if (!Array.isArray(applyArgs)) {\n return false;\n }\n // We should only ever get 1 arg passed through to invokeTask.\n // Short circuit here incase that behavior changes.\n if (applyArgs.length !== 1) {\n return false;\n }\n return applyArgs[0]?.data?.[key] === true;\n}\nfunction getNgZone(ngZoneToUse = 'zone.js', options) {\n if (ngZoneToUse === 'noop') {\n return new NoopNgZone();\n }\n if (ngZoneToUse === 'zone.js') {\n return new NgZone(options);\n }\n return ngZoneToUse;\n}\n\n// Public API for Zone\n\n/**\n * Provides a hook for centralized exception handling.\n *\n * The default implementation of `ErrorHandler` prints error messages to the `console`. To\n * intercept error handling, write a custom exception handler that replaces this default as\n * appropriate for your app.\n *\n * @usageNotes\n * ### Example\n *\n * ```\n * class MyErrorHandler implements ErrorHandler {\n * handleError(error) {\n * // do something with the exception\n * }\n * }\n *\n * @NgModule({\n * providers: [{provide: ErrorHandler, useClass: MyErrorHandler}]\n * })\n * class MyModule {}\n * ```\n *\n * @publicApi\n */\nclass ErrorHandler {\n constructor() {\n /**\n * @internal\n */\n this._console = console;\n }\n handleError(error) {\n const originalError = this._findOriginalError(error);\n this._console.error('ERROR', error);\n if (originalError) {\n this._console.error('ORIGINAL ERROR', originalError);\n }\n }\n /** @internal */\n _findOriginalError(error) {\n let e = error && getOriginalError(error);\n while (e && getOriginalError(e)) {\n e = getOriginalError(e);\n }\n return e || null;\n }\n}\n/**\n * `InjectionToken` used to configure how to call the `ErrorHandler`.\n *\n * `NgZone` is provided by default today so the default (and only) implementation for this\n * is calling `ErrorHandler.handleError` outside of the Angular zone.\n */\nconst INTERNAL_APPLICATION_ERROR_HANDLER = /*#__PURE__*/new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'internal error handler' : '', {\n providedIn: 'root',\n factory: () => {\n const zone = inject(NgZone);\n const userErrorHandler = inject(ErrorHandler);\n return e => zone.runOutsideAngular(() => userErrorHandler.handleError(e));\n }\n});\n\n/**\n * An `OutputEmitterRef` is created by the `output()` function and can be\n * used to emit values to consumers of your directive or component.\n *\n * Consumers of your directive/component can bind to the output and\n * subscribe to changes via the bound event syntax. For example:\n *\n * ```html\n * \n * ```\n *\n * @developerPreview\n */\nclass OutputEmitterRef {\n constructor() {\n this.destroyed = false;\n this.listeners = null;\n this.errorHandler = inject(ErrorHandler, {\n optional: true\n });\n /** @internal */\n this.destroyRef = inject(DestroyRef);\n // Clean-up all listeners and mark as destroyed upon destroy.\n this.destroyRef.onDestroy(() => {\n this.destroyed = true;\n this.listeners = null;\n });\n }\n subscribe(callback) {\n if (this.destroyed) {\n throw new RuntimeError(953 /* RuntimeErrorCode.OUTPUT_REF_DESTROYED */, ngDevMode && 'Unexpected subscription to destroyed `OutputRef`. ' + 'The owning directive/component is destroyed.');\n }\n (this.listeners ??= []).push(callback);\n return {\n unsubscribe: () => {\n const idx = this.listeners?.indexOf(callback);\n if (idx !== undefined && idx !== -1) {\n this.listeners?.splice(idx, 1);\n }\n }\n };\n }\n /** Emits a new value to the output. */\n emit(value) {\n if (this.destroyed) {\n throw new RuntimeError(953 /* RuntimeErrorCode.OUTPUT_REF_DESTROYED */, ngDevMode && 'Unexpected emit for destroyed `OutputRef`. ' + 'The owning directive/component is destroyed.');\n }\n if (this.listeners === null) {\n return;\n }\n const previousConsumer = setActiveConsumer$1(null);\n try {\n for (const listenerFn of this.listeners) {\n try {\n listenerFn(value);\n } catch (err) {\n this.errorHandler?.handleError(err);\n }\n }\n } finally {\n setActiveConsumer$1(previousConsumer);\n }\n }\n}\n/** Gets the owning `DestroyRef` for the given output. */\nfunction getOutputDestroyRef(ref) {\n return ref.destroyRef;\n}\n\n/**\n * The `output` function allows declaration of Angular outputs in\n * directives and components.\n *\n * You can use outputs to emit values to parent directives and component.\n * Parents can subscribe to changes via:\n *\n * - template event bindings. For example, `(myOutput)=\"doSomething($event)\"`\n * - programmatic subscription by using `OutputRef#subscribe`.\n *\n * @usageNotes\n *\n * To use `output()`, import the function from `@angular/core`.\n *\n * ```ts\n * import {output} from '@angular/core';\n * ```\n *\n * Inside your component, introduce a new class member and initialize\n * it with a call to `output`.\n *\n * ```ts\n * @Directive({\n * ...\n * })\n * export class MyDir {\n * nameChange = output(); // OutputEmitterRef\n * onClick = output(); // OutputEmitterRef\n * }\n * ```\n *\n * You can emit values to consumers of your directive, by using\n * the `emit` method from `OutputEmitterRef`.\n *\n * ```ts\n * updateName(newName: string): void {\n * this.nameChange.emit(newName);\n * }\n * ```\n *\n * @developerPreview\n * @initializerApiFunction {\"showTypesInSignaturePreview\": true}\n */\nfunction output(opts) {\n ngDevMode && assertInInjectionContext(output);\n return new OutputEmitterRef();\n}\nfunction inputFunction(initialValue, opts) {\n ngDevMode && assertInInjectionContext(input);\n return createInputSignal(initialValue, opts);\n}\nfunction inputRequiredFunction(opts) {\n ngDevMode && assertInInjectionContext(input);\n return createInputSignal(REQUIRED_UNSET_VALUE, opts);\n}\n/**\n * The `input` function allows declaration of Angular inputs in directives\n * and components.\n *\n * There are two variants of inputs that can be declared:\n *\n * 1. **Optional inputs** with an initial value.\n * 2. **Required inputs** that consumers need to set.\n *\n * By default, the `input` function will declare optional inputs that\n * always have an initial value. Required inputs can be declared\n * using the `input.required()` function.\n *\n * Inputs are signals. The values of an input are exposed as a `Signal`.\n * The signal always holds the latest value of the input that is bound\n * from the parent.\n *\n * @usageNotes\n * To use signal-based inputs, import `input` from `@angular/core`.\n *\n * ```\n * import {input} from '@angular/core`;\n * ```\n *\n * Inside your component, introduce a new class member and initialize\n * it with a call to `input` or `input.required`.\n *\n * ```ts\n * @Component({\n * ...\n * })\n * export class UserProfileComponent {\n * firstName = input(); // Signal\n * lastName = input.required(); // Signal\n * age = input(0) // Signal\n * }\n * ```\n *\n * Inside your component template, you can display values of the inputs\n * by calling the signal.\n *\n * ```html\n * {{firstName()}}\n * ```\n *\n * @developerPreview\n * @initializerApiFunction\n */\nconst input = /*#__PURE__*/(() => {\n // Note: This may be considered a side-effect, but nothing will depend on\n // this assignment, unless this `input` constant export is accessed. It's a\n // self-contained side effect that is local to the user facing`input` export.\n inputFunction.required = inputRequiredFunction;\n return inputFunction;\n})();\n\n/**\n * Creates an ElementRef from the most recent node.\n *\n * @returns The ElementRef instance to use\n */\nfunction injectElementRef() {\n return createElementRef(getCurrentTNode(), getLView());\n}\n/**\n * Creates an ElementRef given a node.\n *\n * @param tNode The node for which you'd like an ElementRef\n * @param lView The view to which the node belongs\n * @returns The ElementRef instance to use\n */\nfunction createElementRef(tNode, lView) {\n return new ElementRef(getNativeByTNode(tNode, lView));\n}\n/**\n * A wrapper around a native element inside of a View.\n *\n * An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM\n * element.\n *\n * @security Permitting direct access to the DOM can make your application more vulnerable to\n * XSS attacks. Carefully review any use of `ElementRef` in your code. For more detail, see the\n * [Security Guide](https://g.co/ng/security).\n *\n * @publicApi\n */\n// Note: We don't expose things like `Injector`, `ViewContainer`, ... here,\n// i.e. users have to ask for what they need. With that, we can build better analysis tools\n// and could do better codegen in the future.\nlet ElementRef = /*#__PURE__*/(() => {\n class ElementRef {\n constructor(nativeElement) {\n this.nativeElement = nativeElement;\n }\n /**\n * @internal\n * @nocollapse\n */\n static {\n this.__NG_ELEMENT_ID__ = injectElementRef;\n }\n }\n return ElementRef;\n})();\n/**\n * Unwraps `ElementRef` and return the `nativeElement`.\n *\n * @param value value to unwrap\n * @returns `nativeElement` if `ElementRef` otherwise returns value as is.\n */\nfunction unwrapElementRef(value) {\n return value instanceof ElementRef ? value.nativeElement : value;\n}\nfunction symbolIterator() {\n // @ts-expect-error accessing a private member\n return this._results[Symbol.iterator]();\n}\n/**\n * An unmodifiable list of items that Angular keeps up to date when the state\n * of the application changes.\n *\n * The type of object that {@link ViewChildren}, {@link ContentChildren}, and {@link QueryList}\n * provide.\n *\n * Implements an iterable interface, therefore it can be used in both ES6\n * javascript `for (var i of items)` loops as well as in Angular templates with\n * `*ngFor=\"let i of myList\"`.\n *\n * Changes can be observed by subscribing to the changes `Observable`.\n *\n * NOTE: In the future this class will implement an `Observable` interface.\n *\n * @usageNotes\n * ### Example\n * ```typescript\n * @Component({...})\n * class Container {\n * @ViewChildren(Item) items:QueryList;\n * }\n * ```\n *\n * @publicApi\n */\nclass QueryList {\n static {\n Symbol.iterator;\n }\n /**\n * Returns `Observable` of `QueryList` notifying the subscriber of changes.\n */\n get changes() {\n return this._changes ??= new EventEmitter();\n }\n /**\n * @param emitDistinctChangesOnly Whether `QueryList.changes` should fire only when actual change\n * has occurred. Or if it should fire when query is recomputed. (recomputing could resolve in\n * the same result)\n */\n constructor(_emitDistinctChangesOnly = false) {\n this._emitDistinctChangesOnly = _emitDistinctChangesOnly;\n this.dirty = true;\n this._onDirty = undefined;\n this._results = [];\n this._changesDetected = false;\n this._changes = undefined;\n this.length = 0;\n this.first = undefined;\n this.last = undefined;\n // This function should be declared on the prototype, but doing so there will cause the class\n // declaration to have side-effects and become not tree-shakable. For this reason we do it in\n // the constructor.\n // [Symbol.iterator](): Iterator { ... }\n const proto = QueryList.prototype;\n if (!proto[Symbol.iterator]) proto[Symbol.iterator] = symbolIterator;\n }\n /**\n * Returns the QueryList entry at `index`.\n */\n get(index) {\n return this._results[index];\n }\n /**\n * See\n * [Array.map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)\n */\n map(fn) {\n return this._results.map(fn);\n }\n filter(fn) {\n return this._results.filter(fn);\n }\n /**\n * See\n * [Array.find](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find)\n */\n find(fn) {\n return this._results.find(fn);\n }\n /**\n * See\n * [Array.reduce](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce)\n */\n reduce(fn, init) {\n return this._results.reduce(fn, init);\n }\n /**\n * See\n * [Array.forEach](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach)\n */\n forEach(fn) {\n this._results.forEach(fn);\n }\n /**\n * See\n * [Array.some](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some)\n */\n some(fn) {\n return this._results.some(fn);\n }\n /**\n * Returns a copy of the internal results list as an Array.\n */\n toArray() {\n return this._results.slice();\n }\n toString() {\n return this._results.toString();\n }\n /**\n * Updates the stored data of the query list, and resets the `dirty` flag to `false`, so that\n * on change detection, it will not notify of changes to the queries, unless a new change\n * occurs.\n *\n * @param resultsTree The query results to store\n * @param identityAccessor Optional function for extracting stable object identity from a value\n * in the array. This function is executed for each element of the query result list while\n * comparing current query list with the new one (provided as a first argument of the `reset`\n * function) to detect if the lists are different. If the function is not provided, elements\n * are compared as is (without any pre-processing).\n */\n reset(resultsTree, identityAccessor) {\n this.dirty = false;\n const newResultFlat = flatten(resultsTree);\n if (this._changesDetected = !arrayEquals(this._results, newResultFlat, identityAccessor)) {\n this._results = newResultFlat;\n this.length = newResultFlat.length;\n this.last = newResultFlat[this.length - 1];\n this.first = newResultFlat[0];\n }\n }\n /**\n * Triggers a change event by emitting on the `changes` {@link EventEmitter}.\n */\n notifyOnChanges() {\n if (this._changes !== undefined && (this._changesDetected || !this._emitDistinctChangesOnly)) this._changes.emit(this);\n }\n /** @internal */\n onDirty(cb) {\n this._onDirty = cb;\n }\n /** internal */\n setDirty() {\n this.dirty = true;\n this._onDirty?.();\n }\n /** internal */\n destroy() {\n if (this._changes !== undefined) {\n this._changes.complete();\n this._changes.unsubscribe();\n }\n }\n}\n\n/**\n * The name of an attribute that can be added to the hydration boundary node\n * (component host node) to disable hydration for the content within that boundary.\n */\nconst SKIP_HYDRATION_ATTR_NAME = 'ngSkipHydration';\n/** Lowercase name of the `ngSkipHydration` attribute used for case-insensitive comparisons. */\nconst SKIP_HYDRATION_ATTR_NAME_LOWER_CASE = 'ngskiphydration';\n/**\n * Helper function to check if a given TNode has the 'ngSkipHydration' attribute.\n */\nfunction hasSkipHydrationAttrOnTNode(tNode) {\n const attrs = tNode.mergedAttrs;\n if (attrs === null) return false;\n // only ever look at the attribute name and skip the values\n for (let i = 0; i < attrs.length; i += 2) {\n const value = attrs[i];\n // This is a marker, which means that the static attributes section is over,\n // so we can exit early.\n if (typeof value === 'number') return false;\n if (typeof value === 'string' && value.toLowerCase() === SKIP_HYDRATION_ATTR_NAME_LOWER_CASE) {\n return true;\n }\n }\n return false;\n}\n/**\n * Helper function to check if a given RElement has the 'ngSkipHydration' attribute.\n */\nfunction hasSkipHydrationAttrOnRElement(rNode) {\n return rNode.hasAttribute(SKIP_HYDRATION_ATTR_NAME);\n}\n/**\n * Checks whether a TNode has a flag to indicate that it's a part of\n * a skip hydration block.\n */\nfunction hasInSkipHydrationBlockFlag(tNode) {\n return (tNode.flags & 128 /* TNodeFlags.inSkipHydrationBlock */) === 128 /* TNodeFlags.inSkipHydrationBlock */;\n}\n/**\n * Helper function that determines if a given node is within a skip hydration block\n * by navigating up the TNode tree to see if any parent nodes have skip hydration\n * attribute.\n */\nfunction isInSkipHydrationBlock(tNode) {\n if (hasInSkipHydrationBlockFlag(tNode)) {\n return true;\n }\n let currentTNode = tNode.parent;\n while (currentTNode) {\n if (hasInSkipHydrationBlockFlag(tNode) || hasSkipHydrationAttrOnTNode(currentTNode)) {\n return true;\n }\n currentTNode = currentTNode.parent;\n }\n return false;\n}\n/**\n * Check if an i18n block is in a skip hydration section by looking at a parent TNode\n * to determine if this TNode is in a skip hydration section or the TNode has\n * the `ngSkipHydration` attribute.\n */\nfunction isI18nInSkipHydrationBlock(parentTNode) {\n return hasInSkipHydrationBlockFlag(parentTNode) || hasSkipHydrationAttrOnTNode(parentTNode) || isInSkipHydrationBlock(parentTNode);\n}\n\n// Keeps track of the currently-active LViews.\nconst TRACKED_LVIEWS = /*#__PURE__*/new Map();\n// Used for generating unique IDs for LViews.\nlet uniqueIdCounter = 0;\n/** Gets a unique ID that can be assigned to an LView. */\nfunction getUniqueLViewId() {\n return uniqueIdCounter++;\n}\n/** Starts tracking an LView. */\nfunction registerLView(lView) {\n ngDevMode && assertNumber(lView[ID], 'LView must have an ID in order to be registered');\n TRACKED_LVIEWS.set(lView[ID], lView);\n}\n/** Gets an LView by its unique ID. */\nfunction getLViewById(id) {\n ngDevMode && assertNumber(id, 'ID used for LView lookup must be a number');\n return TRACKED_LVIEWS.get(id) || null;\n}\n/** Stops tracking an LView. */\nfunction unregisterLView(lView) {\n ngDevMode && assertNumber(lView[ID], 'Cannot stop tracking an LView that does not have an ID');\n TRACKED_LVIEWS.delete(lView[ID]);\n}\n\n/**\n * The internal view context which is specific to a given DOM element, directive or\n * component instance. Each value in here (besides the LView and element node details)\n * can be present, null or undefined. If undefined then it implies the value has not been\n * looked up yet, otherwise, if null, then a lookup was executed and nothing was found.\n *\n * Each value will get filled when the respective value is examined within the getContext\n * function. The component, element and each directive instance will share the same instance\n * of the context.\n */\nclass LContext {\n /** Component's parent view data. */\n get lView() {\n return getLViewById(this.lViewId);\n }\n constructor(\n /**\n * ID of the component's parent view data.\n */\n lViewId,\n /**\n * The index instance of the node.\n */\n nodeIndex,\n /**\n * The instance of the DOM node that is attached to the lNode.\n */\n native) {\n this.lViewId = lViewId;\n this.nodeIndex = nodeIndex;\n this.native = native;\n }\n}\n\n/**\n * Returns the matching `LContext` data for a given DOM node, directive or component instance.\n *\n * This function will examine the provided DOM element, component, or directive instance\\'s\n * monkey-patched property to derive the `LContext` data. Once called then the monkey-patched\n * value will be that of the newly created `LContext`.\n *\n * If the monkey-patched value is the `LView` instance then the context value for that\n * target will be created and the monkey-patch reference will be updated. Therefore when this\n * function is called it may mutate the provided element\\'s, component\\'s or any of the associated\n * directive\\'s monkey-patch values.\n *\n * If the monkey-patch value is not detected then the code will walk up the DOM until an element\n * is found which contains a monkey-patch reference. When that occurs then the provided element\n * will be updated with a new context (which is then returned). If the monkey-patch value is not\n * detected for a component/directive instance then it will throw an error (all components and\n * directives should be automatically monkey-patched by ivy).\n *\n * @param target Component, Directive or DOM Node.\n */\nfunction getLContext(target) {\n let mpValue = readPatchedData(target);\n if (mpValue) {\n // only when it's an array is it considered an LView instance\n // ... otherwise it's an already constructed LContext instance\n if (isLView(mpValue)) {\n const lView = mpValue;\n let nodeIndex;\n let component = undefined;\n let directives = undefined;\n if (isComponentInstance(target)) {\n nodeIndex = findViaComponent(lView, target);\n if (nodeIndex == -1) {\n throw new Error('The provided component was not found in the application');\n }\n component = target;\n } else if (isDirectiveInstance(target)) {\n nodeIndex = findViaDirective(lView, target);\n if (nodeIndex == -1) {\n throw new Error('The provided directive was not found in the application');\n }\n directives = getDirectivesAtNodeIndex(nodeIndex, lView);\n } else {\n nodeIndex = findViaNativeElement(lView, target);\n if (nodeIndex == -1) {\n return null;\n }\n }\n // the goal is not to fill the entire context full of data because the lookups\n // are expensive. Instead, only the target data (the element, component, container, ICU\n // expression or directive details) are filled into the context. If called multiple times\n // with different target values then the missing target data will be filled in.\n const native = unwrapRNode(lView[nodeIndex]);\n const existingCtx = readPatchedData(native);\n const context = existingCtx && !Array.isArray(existingCtx) ? existingCtx : createLContext(lView, nodeIndex, native);\n // only when the component has been discovered then update the monkey-patch\n if (component && context.component === undefined) {\n context.component = component;\n attachPatchData(context.component, context);\n }\n // only when the directives have been discovered then update the monkey-patch\n if (directives && context.directives === undefined) {\n context.directives = directives;\n for (let i = 0; i < directives.length; i++) {\n attachPatchData(directives[i], context);\n }\n }\n attachPatchData(context.native, context);\n mpValue = context;\n }\n } else {\n const rElement = target;\n ngDevMode && assertDomNode(rElement);\n // if the context is not found then we need to traverse upwards up the DOM\n // to find the nearest element that has already been monkey patched with data\n let parent = rElement;\n while (parent = parent.parentNode) {\n const parentContext = readPatchedData(parent);\n if (parentContext) {\n const lView = Array.isArray(parentContext) ? parentContext : parentContext.lView;\n // the edge of the app was also reached here through another means\n // (maybe because the DOM was changed manually).\n if (!lView) {\n return null;\n }\n const index = findViaNativeElement(lView, rElement);\n if (index >= 0) {\n const native = unwrapRNode(lView[index]);\n const context = createLContext(lView, index, native);\n attachPatchData(native, context);\n mpValue = context;\n break;\n }\n }\n }\n }\n return mpValue || null;\n}\n/**\n * Creates an empty instance of a `LContext` context\n */\nfunction createLContext(lView, nodeIndex, native) {\n return new LContext(lView[ID], nodeIndex, native);\n}\n/**\n * Takes a component instance and returns the view for that component.\n *\n * @param componentInstance\n * @returns The component's view\n */\nfunction getComponentViewByInstance(componentInstance) {\n let patchedData = readPatchedData(componentInstance);\n let lView;\n if (isLView(patchedData)) {\n const contextLView = patchedData;\n const nodeIndex = findViaComponent(contextLView, componentInstance);\n lView = getComponentLViewByIndex(nodeIndex, contextLView);\n const context = createLContext(contextLView, nodeIndex, lView[HOST]);\n context.component = componentInstance;\n attachPatchData(componentInstance, context);\n attachPatchData(context.native, context);\n } else {\n const context = patchedData;\n const contextLView = context.lView;\n ngDevMode && assertLView(contextLView);\n lView = getComponentLViewByIndex(context.nodeIndex, contextLView);\n }\n return lView;\n}\n/**\n * This property will be monkey-patched on elements, components and directives.\n */\nconst MONKEY_PATCH_KEY_NAME = '__ngContext__';\nfunction attachLViewId(target, data) {\n target[MONKEY_PATCH_KEY_NAME] = data[ID];\n}\n/**\n * Returns the monkey-patch value data present on the target (which could be\n * a component, directive or a DOM node).\n */\nfunction readLView(target) {\n const data = readPatchedData(target);\n if (isLView(data)) {\n return data;\n }\n return data ? data.lView : null;\n}\n/**\n * Assigns the given data to the given target (which could be a component,\n * directive or DOM node instance) using monkey-patching.\n */\nfunction attachPatchData(target, data) {\n ngDevMode && assertDefined(target, 'Target expected');\n // Only attach the ID of the view in order to avoid memory leaks (see #41047). We only do this\n // for `LView`, because we have control over when an `LView` is created and destroyed, whereas\n // we can't know when to remove an `LContext`.\n if (isLView(data)) {\n target[MONKEY_PATCH_KEY_NAME] = data[ID];\n registerLView(data);\n } else {\n target[MONKEY_PATCH_KEY_NAME] = data;\n }\n}\n/**\n * Returns the monkey-patch value data present on the target (which could be\n * a component, directive or a DOM node).\n */\nfunction readPatchedData(target) {\n ngDevMode && assertDefined(target, 'Target expected');\n const data = target[MONKEY_PATCH_KEY_NAME];\n return typeof data === 'number' ? getLViewById(data) : data || null;\n}\nfunction readPatchedLView(target) {\n const value = readPatchedData(target);\n if (value) {\n return isLView(value) ? value : value.lView;\n }\n return null;\n}\nfunction isComponentInstance(instance) {\n return instance && instance.constructor && instance.constructor.ɵcmp;\n}\nfunction isDirectiveInstance(instance) {\n return instance && instance.constructor && instance.constructor.ɵdir;\n}\n/**\n * Locates the element within the given LView and returns the matching index\n */\nfunction findViaNativeElement(lView, target) {\n const tView = lView[TVIEW];\n for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {\n if (unwrapRNode(lView[i]) === target) {\n return i;\n }\n }\n return -1;\n}\n/**\n * Locates the next tNode (child, sibling or parent).\n */\nfunction traverseNextElement(tNode) {\n if (tNode.child) {\n return tNode.child;\n } else if (tNode.next) {\n return tNode.next;\n } else {\n // Let's take the following template:
text
\n // After checking the text node, we need to find the next parent that has a \"next\" TNode,\n // in this case the parent `div`, so that we can find the component.\n while (tNode.parent && !tNode.parent.next) {\n tNode = tNode.parent;\n }\n return tNode.parent && tNode.parent.next;\n }\n}\n/**\n * Locates the component within the given LView and returns the matching index\n */\nfunction findViaComponent(lView, componentInstance) {\n const componentIndices = lView[TVIEW].components;\n if (componentIndices) {\n for (let i = 0; i < componentIndices.length; i++) {\n const elementComponentIndex = componentIndices[i];\n const componentView = getComponentLViewByIndex(elementComponentIndex, lView);\n if (componentView[CONTEXT] === componentInstance) {\n return elementComponentIndex;\n }\n }\n } else {\n const rootComponentView = getComponentLViewByIndex(HEADER_OFFSET, lView);\n const rootComponent = rootComponentView[CONTEXT];\n if (rootComponent === componentInstance) {\n // we are dealing with the root element here therefore we know that the\n // element is the very first element after the HEADER data in the lView\n return HEADER_OFFSET;\n }\n }\n return -1;\n}\n/**\n * Locates the directive within the given LView and returns the matching index\n */\nfunction findViaDirective(lView, directiveInstance) {\n // if a directive is monkey patched then it will (by default)\n // have a reference to the LView of the current view. The\n // element bound to the directive being search lives somewhere\n // in the view data. We loop through the nodes and check their\n // list of directives for the instance.\n let tNode = lView[TVIEW].firstChild;\n while (tNode) {\n const directiveIndexStart = tNode.directiveStart;\n const directiveIndexEnd = tNode.directiveEnd;\n for (let i = directiveIndexStart; i < directiveIndexEnd; i++) {\n if (lView[i] === directiveInstance) {\n return tNode.index;\n }\n }\n tNode = traverseNextElement(tNode);\n }\n return -1;\n}\n/**\n * Returns a list of directives applied to a node at a specific index. The list includes\n * directives matched by selector and any host directives, but it excludes components.\n * Use `getComponentAtNodeIndex` to find the component applied to a node.\n *\n * @param nodeIndex The node index\n * @param lView The target view data\n */\nfunction getDirectivesAtNodeIndex(nodeIndex, lView) {\n const tNode = lView[TVIEW].data[nodeIndex];\n if (tNode.directiveStart === 0) return EMPTY_ARRAY;\n const results = [];\n for (let i = tNode.directiveStart; i < tNode.directiveEnd; i++) {\n const directiveInstance = lView[i];\n if (!isComponentInstance(directiveInstance)) {\n results.push(directiveInstance);\n }\n }\n return results;\n}\nfunction getComponentAtNodeIndex(nodeIndex, lView) {\n const tNode = lView[TVIEW].data[nodeIndex];\n const {\n directiveStart,\n componentOffset\n } = tNode;\n return componentOffset > -1 ? lView[directiveStart + componentOffset] : null;\n}\n/**\n * Returns a map of local references (local reference name => element or directive instance) that\n * exist on a given element.\n */\nfunction discoverLocalRefs(lView, nodeIndex) {\n const tNode = lView[TVIEW].data[nodeIndex];\n if (tNode && tNode.localNames) {\n const result = {};\n let localIndex = tNode.index + 1;\n for (let i = 0; i < tNode.localNames.length; i += 2) {\n result[tNode.localNames[i]] = lView[localIndex];\n localIndex++;\n }\n return result;\n }\n return null;\n}\n\n/**\n * Retrieve the root view from any component or `LView` by walking the parent `LView` until\n * reaching the root `LView`.\n *\n * @param componentOrLView any component or `LView`\n */\nfunction getRootView(componentOrLView) {\n ngDevMode && assertDefined(componentOrLView, 'component');\n let lView = isLView(componentOrLView) ? componentOrLView : readPatchedLView(componentOrLView);\n while (lView && !(lView[FLAGS] & 512 /* LViewFlags.IsRoot */)) {\n lView = getLViewParent(lView);\n }\n ngDevMode && assertLView(lView);\n return lView;\n}\n/**\n * Returns the context information associated with the application where the target is situated. It\n * does this by walking the parent views until it gets to the root view, then getting the context\n * off of that.\n *\n * @param viewOrComponent the `LView` or component to get the root context for.\n */\nfunction getRootContext(viewOrComponent) {\n const rootView = getRootView(viewOrComponent);\n ngDevMode && assertDefined(rootView[CONTEXT], 'Root view has no context. Perhaps it is disconnected?');\n return rootView[CONTEXT];\n}\n/**\n * Gets the first `LContainer` in the LView or `null` if none exists.\n */\nfunction getFirstLContainer(lView) {\n return getNearestLContainer(lView[CHILD_HEAD]);\n}\n/**\n * Gets the next `LContainer` that is a sibling of the given container.\n */\nfunction getNextLContainer(container) {\n return getNearestLContainer(container[NEXT]);\n}\nfunction getNearestLContainer(viewOrContainer) {\n while (viewOrContainer !== null && !isLContainer(viewOrContainer)) {\n viewOrContainer = viewOrContainer[NEXT];\n }\n return viewOrContainer;\n}\n\n/**\n * Retrieves the component instance associated with a given DOM element.\n *\n * @usageNotes\n * Given the following DOM structure:\n *\n * ```html\n * \n *
\n * \n *
\n *
\n * ```\n *\n * Calling `getComponent` on `` will return the instance of `ChildComponent`\n * associated with this DOM element.\n *\n * Calling the function on `` will return the `MyApp` instance.\n *\n *\n * @param element DOM element from which the component should be retrieved.\n * @returns Component instance associated with the element or `null` if there\n * is no component associated with it.\n *\n * @publicApi\n */\nfunction getComponent$1(element) {\n ngDevMode && assertDomElement(element);\n const context = getLContext(element);\n if (context === null) return null;\n if (context.component === undefined) {\n const lView = context.lView;\n if (lView === null) {\n return null;\n }\n context.component = getComponentAtNodeIndex(context.nodeIndex, lView);\n }\n return context.component;\n}\n/**\n * If inside an embedded view (e.g. `*ngIf` or `*ngFor`), retrieves the context of the embedded\n * view that the element is part of. Otherwise retrieves the instance of the component whose view\n * owns the element (in this case, the result is the same as calling `getOwningComponent`).\n *\n * @param element Element for which to get the surrounding component instance.\n * @returns Instance of the component that is around the element or null if the element isn't\n * inside any component.\n *\n * @publicApi\n */\nfunction getContext(element) {\n assertDomElement(element);\n const context = getLContext(element);\n const lView = context ? context.lView : null;\n return lView === null ? null : lView[CONTEXT];\n}\n/**\n * Retrieves the component instance whose view contains the DOM element.\n *\n * For example, if `` is used in the template of ``\n * (i.e. a `ViewChild` of ``), calling `getOwningComponent` on ``\n * would return ``.\n *\n * @param elementOrDir DOM element, component or directive instance\n * for which to retrieve the root components.\n * @returns Component instance whose view owns the DOM element or null if the element is not\n * part of a component view.\n *\n * @publicApi\n */\nfunction getOwningComponent(elementOrDir) {\n const context = getLContext(elementOrDir);\n let lView = context ? context.lView : null;\n if (lView === null) return null;\n let parent;\n while (lView[TVIEW].type === 2 /* TViewType.Embedded */ && (parent = getLViewParent(lView))) {\n lView = parent;\n }\n return lView[FLAGS] & 512 /* LViewFlags.IsRoot */ ? null : lView[CONTEXT];\n}\n/**\n * Retrieves all root components associated with a DOM element, directive or component instance.\n * Root components are those which have been bootstrapped by Angular.\n *\n * @param elementOrDir DOM element, component or directive instance\n * for which to retrieve the root components.\n * @returns Root components associated with the target object.\n *\n * @publicApi\n */\nfunction getRootComponents(elementOrDir) {\n const lView = readPatchedLView(elementOrDir);\n return lView !== null ? [getRootContext(lView)] : [];\n}\n/**\n * Retrieves an `Injector` associated with an element, component or directive instance.\n *\n * @param elementOrDir DOM element, component or directive instance for which to\n * retrieve the injector.\n * @returns Injector associated with the element, component or directive instance.\n *\n * @publicApi\n */\nfunction getInjector(elementOrDir) {\n const context = getLContext(elementOrDir);\n const lView = context ? context.lView : null;\n if (lView === null) return Injector.NULL;\n const tNode = lView[TVIEW].data[context.nodeIndex];\n return new NodeInjector(tNode, lView);\n}\n/**\n * Retrieve a set of injection tokens at a given DOM node.\n *\n * @param element Element for which the injection tokens should be retrieved.\n */\nfunction getInjectionTokens(element) {\n const context = getLContext(element);\n const lView = context ? context.lView : null;\n if (lView === null) return [];\n const tView = lView[TVIEW];\n const tNode = tView.data[context.nodeIndex];\n const providerTokens = [];\n const startIndex = tNode.providerIndexes & 1048575 /* TNodeProviderIndexes.ProvidersStartIndexMask */;\n const endIndex = tNode.directiveEnd;\n for (let i = startIndex; i < endIndex; i++) {\n let value = tView.data[i];\n if (isDirectiveDefHack(value)) {\n // The fact that we sometimes store Type and sometimes DirectiveDef in this location is a\n // design flaw. We should always store same type so that we can be monomorphic. The issue\n // is that for Components/Directives we store the def instead the type. The correct behavior\n // is that we should always be storing injectable type in this location.\n value = value.type;\n }\n providerTokens.push(value);\n }\n return providerTokens;\n}\n/**\n * Retrieves directive instances associated with a given DOM node. Does not include\n * component instances.\n *\n * @usageNotes\n * Given the following DOM structure:\n *\n * ```html\n * \n * \n * \n * \n * ```\n *\n * Calling `getDirectives` on `\n * ```\n * ```typescript\n * \n * ```\n */\nvar DropDownButton = /** @__PURE__ @class */function (_super) {\n __extends$1(DropDownButton, _super);\n /**\n * Constructor for creating the widget\n *\n * @param {DropDownButtonModel} options - Specifies dropdown button model\n * @param {string|HTMLButtonElement} element - Specifies element\n * @hidden\n */\n function DropDownButton(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.isPopupCreated = true;\n return _this;\n }\n DropDownButton.prototype.preRender = function () {\n /** */\n };\n /**\n * Get the properties to be maintained in the persisted state.\n *\n * @returns {string} - Persist data\n */\n DropDownButton.prototype.getPersistData = function () {\n return this.addOnPersist([]);\n };\n /**\n * To open/close DropDownButton popup based on current state of the DropDownButton.\n *\n * @returns {void}\n */\n DropDownButton.prototype.toggle = function () {\n if (this.canOpen()) {\n this.openPopUp();\n } else if (this.createPopupOnClick && !this.isPopupCreated) {\n this.createPopup();\n this.openPopUp();\n } else {\n this.closePopup();\n }\n };\n /**\n * Initialize the Component rendering\n *\n * @returns {void}\n * @private\n */\n DropDownButton.prototype.render = function () {\n this.initialize();\n if (!this.disabled) {\n this.wireEvents();\n }\n this.renderComplete();\n };\n /**\n * Adds a new item to the menu. By default, new item appends to the list as the last item,\n * but you can insert based on the text parameter.\n *\n * @param { ItemModel[] } items - Specifies an array of JSON data.\n * @param { string } text - Specifies the text to insert the newly added item in the menu.\n * @returns {void}.\n */\n DropDownButton.prototype.addItems = function (items, text) {\n var newItem;\n var idx = this.items.length;\n for (var j = 0, len = this.items.length; j < len; j++) {\n if (text === this.items[j].text) {\n idx = j;\n break;\n }\n }\n for (var i = items.length - 1; i >= 0; i--) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n newItem = new Item(this, 'items', items[i], true);\n this.items.splice(idx, 0, newItem);\n }\n if (!this.canOpen()) {\n this.createItems();\n }\n };\n /**\n * Removes the items from the menu.\n *\n * @param { string[] } items - Specifies an array of string to remove the items.\n * @param { string } isUniqueId - Set `true` if specified items is a collection of unique id.\n * @returns {void}.\n */\n DropDownButton.prototype.removeItems = function (items, isUniqueId) {\n var refresh = false;\n for (var i = 0, len = items.length; i < len; i++) {\n for (var j = 0, len_1 = this.items.length; j < len_1; j++) {\n if (items[i] === (isUniqueId ? this.items[j].id : this.items[j].text)) {\n this.items.splice(j, 1);\n refresh = true;\n break;\n }\n }\n }\n if (refresh && this.getULElement()) {\n this.createItems();\n }\n };\n DropDownButton.prototype.createPopup = function () {\n var _a;\n var div = this.createElement('div', {\n className: classNames.POPUP,\n id: this.element.id + '-popup'\n });\n document.body.appendChild(div);\n this.dropDown = new Popup(div, {\n relateTo: this.element,\n collision: {\n X: 'fit',\n Y: 'flip'\n },\n position: {\n X: 'left',\n Y: 'bottom'\n },\n targetType: 'relative',\n content: this.target ? this.getTargetElement() : '',\n enableRtl: this.enableRtl\n });\n this.dropDown.element.setAttribute('role', 'dialog');\n this.dropDown.element.setAttribute('aria-label', 'dropdown menu');\n if (!isNullOrUndefined(this.popupContent)) {\n this.popupContent.style.display = '';\n }\n if (this.dropDown.element.style.position === 'fixed') {\n this.dropDown.refreshPosition(this.element);\n }\n this.dropDown.hide();\n attributes(this.element, (_a = {}, _a['aria-haspopup'] = this.items.length || this.target ? 'true' : 'false', _a['aria-expanded'] = 'false', _a['type'] = 'button', _a));\n if (this.cssClass) {\n addClass([div], this.cssClass.replace(/\\s+/g, ' ').trim().split(' '));\n }\n this.isPopupCreated = true;\n };\n DropDownButton.prototype.getTargetElement = function () {\n if (this.createPopupOnClick && !this.isColorPicker() && !isNullOrUndefined(this.popupContent)) {\n return this.popupContent;\n }\n return typeof this.target === 'string' ? select(this.target) : this.target;\n };\n DropDownButton.prototype.createItems = function (appendItems) {\n var items = this.items;\n var showIcon = this.hasIcon(this.items, 'iconCss');\n var span;\n var item;\n var li;\n var eventArgs;\n var ul = this.getULElement();\n if (ul) {\n ul.innerHTML = '';\n } else {\n ul = this.createElement('ul', {\n attrs: {\n 'role': 'menu',\n 'tabindex': '0'\n }\n });\n }\n for (var i = 0; i < items.length; i++) {\n item = items[i];\n var tempItem = item.text;\n li = this.createElement('li', {\n innerHTML: item.url ? '' : tempItem,\n className: item.separator ? classNames.ITEM + ' ' + classNames.SEPARATOR : classNames.ITEM,\n attrs: item.separator ? {\n 'role': 'separator',\n 'tabindex': '-1',\n 'aria-label': 'separator',\n 'aria-hidden': 'true'\n } : {\n 'role': 'menuitem',\n 'tabindex': '-1',\n 'aria-label': tempItem\n },\n id: item.id ? item.id : getUniqueID('e-' + this.getModuleName() + '-item')\n });\n if (this.enableHtmlSanitizer) {\n li.textContent = item.url ? '' : tempItem;\n } else {\n li.innerHTML = item.url ? '' : tempItem;\n }\n if (item.url) {\n li.appendChild(this.createAnchor(item));\n li.classList.add('e-url');\n }\n if (item.iconCss) {\n span = this.createElement('span', {\n className: classNames.ICON + ' ' + item.iconCss\n });\n if (item.url) {\n li.childNodes[0].appendChild(span);\n } else {\n li.insertBefore(span, li.childNodes[0]);\n }\n } else {\n if (showIcon && !item.separator) {\n li.classList.add('e-blank-icon');\n }\n }\n var beforeDisabled = item.disabled;\n if (item.disabled) {\n li.classList.add('e-disabled');\n }\n eventArgs = {\n item: item,\n element: li\n };\n this.trigger('beforeItemRender', eventArgs);\n var afterDisabled = eventArgs.item.disabled;\n if (beforeDisabled !== afterDisabled) {\n if (eventArgs.item.disabled) {\n li.classList.add('e-disabled');\n } else {\n li.classList.remove('e-disabled');\n }\n }\n ul.appendChild(li);\n }\n if (appendItems) {\n this.getPopUpElement().appendChild(ul);\n }\n if (showIcon) {\n setBlankIconStyle(this.getPopUpElement());\n }\n };\n DropDownButton.prototype.hasIcon = function (items, field) {\n for (var i = 0, len = items.length; i < len; i++) {\n if (items[i][\"\" + field]) {\n return true;\n }\n }\n return false;\n };\n DropDownButton.prototype.createAnchor = function (item) {\n var tempItem = this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(item.text) : item.text;\n return this.createElement('a', {\n className: 'e-menu-text e-menu-url',\n innerHTML: tempItem,\n attrs: {\n 'href': item.url\n }\n });\n };\n DropDownButton.prototype.initialize = function () {\n this.button = new Button({\n iconCss: this.iconCss,\n iconPosition: this.iconPosition,\n cssClass: this.cssClass,\n content: this.content,\n disabled: this.disabled,\n enableRtl: this.enableRtl,\n enablePersistence: this.enablePersistence\n });\n this.button.createElement = this.createElement;\n this.button.appendTo(this.element);\n if (!this.element.id) {\n this.element.id = getUniqueID('e-' + this.getModuleName());\n }\n this.appendArrowSpan();\n this.setActiveElem([this.element]);\n this.element.setAttribute('tabindex', '0');\n this.element.setAttribute('aria-label', this.element.textContent ? this.element.textContent : 'dropdownbutton');\n if (this.target && !this.isColorPicker() && !this.createPopupOnClick || !this.createPopupOnClick) {\n this.createPopup();\n } else {\n this.isPopupCreated = false;\n if (this.target && !this.isColorPicker() && this.createPopupOnClick) {\n this.popupContent = this.getTargetElement();\n this.popupContent.style.display = 'none';\n }\n }\n };\n DropDownButton.prototype.isColorPicker = function () {\n if (!this.element) {\n return false;\n }\n var prevElem = this.element.previousSibling;\n if (prevElem && prevElem.classList && prevElem.classList.contains('e-split-colorpicker')) {\n return true;\n }\n return false;\n };\n DropDownButton.prototype.appendArrowSpan = function () {\n this.cssClass = isNullOrUndefined(this.cssClass) ? '' : this.cssClass;\n this.element.appendChild(this.createElement('span', {\n className: 'e-btn-icon e-icons ' + 'e-icon-' + (this.cssClass.indexOf(classNames.VERTICAL) > -1 ? 'bottom' : 'right') + ' e-caret'\n }));\n };\n DropDownButton.prototype.setActiveElem = function (elem) {\n this.activeElem = elem;\n };\n /**\n * Get component name.\n *\n * @returns {string} - Module Name\n * @private\n */\n DropDownButton.prototype.getModuleName = function () {\n return 'dropdown-btn';\n };\n DropDownButton.prototype.canOpen = function () {\n var val = false;\n if (this.isPopupCreated) {\n val = this.getPopUpElement().classList.contains('e-popup-close');\n }\n return val;\n };\n /**\n * Destroys the widget.\n *\n * @returns {void}\n */\n DropDownButton.prototype.destroy = function () {\n var _this = this;\n _super.prototype.destroy.call(this);\n if (this.getModuleName() === 'dropdown-btn') {\n var classList_1;\n if (this.element.querySelector('span.e-caret')) {\n detach(this.element.querySelector('span.e-caret'));\n }\n if (this.cssClass) {\n classList_1 = this.cssClass.split(' ');\n }\n this.button.destroy();\n if (classList_1) {\n removeClass([this.element], classList_1);\n }\n removeClass(this.activeElem, ['e-active']);\n var attrList = this.element.getAttribute('class') ? ['aria-haspopup', 'aria-expanded', 'aria-owns', 'type'] : ['aria-haspopup', 'aria-expanded', 'aria-owns', 'type', 'class'];\n attrList.forEach(function (key) {\n _this.element.removeAttribute(key);\n });\n this.popupUnWireEvents();\n this.destroyPopup();\n this.isPopupCreated = false;\n if (!this.disabled) {\n this.unWireEvents();\n }\n }\n };\n DropDownButton.prototype.destroyPopup = function () {\n if (this.isPopupCreated) {\n this.dropDown.destroy();\n if (this.getPopUpElement()) {\n var popupEle = document.getElementById(this.getPopUpElement().id);\n if (popupEle) {\n removeClass([popupEle], ['e-popup-open', 'e-popup-close']);\n detach(popupEle);\n }\n }\n EventHandler.remove(this.getPopUpElement(), 'click', this.clickHandler);\n EventHandler.remove(this.getPopUpElement(), 'keydown', this.keyBoardHandler);\n if (this.isPopupCreated && this.dropDown) {\n this.dropDown.element = null;\n this.dropDown = undefined;\n }\n }\n this.isPopupCreated = false;\n };\n DropDownButton.prototype.getPopUpElement = function () {\n var val = null;\n if (!this.dropDown && this.activeElem[0].classList.contains('e-split-btn')) {\n var dropDownBtn = getComponent(this.activeElem[1], 'dropdown-btn');\n if (dropDownBtn) {\n this.dropDown = dropDownBtn.dropDown;\n }\n }\n if (this.dropDown) {\n val = this.dropDown.element;\n }\n return val;\n };\n DropDownButton.prototype.getULElement = function () {\n var val = null;\n if (this.getPopUpElement()) {\n val = this.getPopUpElement().children[0];\n }\n return val;\n };\n DropDownButton.prototype.wireEvents = function () {\n this.delegateMousedownHandler = this.mousedownHandler.bind(this);\n if (!this.createPopupOnClick) {\n EventHandler.add(document, 'mousedown touchstart', this.delegateMousedownHandler, this);\n }\n EventHandler.add(this.element, 'click', this.clickHandler, this);\n EventHandler.add(this.element, 'keydown', this.keyBoardHandler, this);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n EventHandler.add(window, 'resize', this.windowResize, this);\n };\n DropDownButton.prototype.windowResize = function () {\n if (!this.canOpen() && this.dropDown) {\n this.dropDown.refreshPosition(this.element);\n }\n };\n DropDownButton.prototype.popupWireEvents = function () {\n if (!this.delegateMousedownHandler) {\n this.delegateMousedownHandler = this.mousedownHandler.bind(this);\n }\n var popupElement = this.getPopUpElement();\n if (this.createPopupOnClick) {\n EventHandler.add(document, 'mousedown touchstart', this.delegateMousedownHandler, this);\n }\n if (popupElement) {\n EventHandler.add(popupElement, 'click', this.clickHandler, this);\n EventHandler.add(popupElement, 'keydown', this.keyBoardHandler, this);\n if (this.closeActionEvents) {\n EventHandler.add(popupElement, this.closeActionEvents, this.focusoutHandler, this);\n }\n }\n this.rippleFn = rippleEffect(popupElement, {\n selector: '.' + classNames.ITEM\n });\n };\n DropDownButton.prototype.popupUnWireEvents = function () {\n var popupElement = this.getPopUpElement();\n if (this.createPopupOnClick) {\n EventHandler.remove(document, 'mousedown touchstart', this.delegateMousedownHandler);\n }\n if (popupElement && popupElement.parentElement) {\n EventHandler.remove(popupElement, 'click', this.clickHandler);\n EventHandler.remove(popupElement, 'keydown', this.keyBoardHandler);\n if (this.closeActionEvents) {\n EventHandler.remove(popupElement, this.closeActionEvents, this.focusoutHandler);\n }\n }\n if (isRippleEnabled && this.rippleFn) {\n this.rippleFn();\n }\n };\n /**\n * Handles the keyboard interactions.\n *\n * @param {KeyboardEventArgs} e - Specifies keyboard event args.\n * @returns {void}\n * @hidden\n */\n DropDownButton.prototype.keyBoardHandler = function (e) {\n if (e.target === this.element && (e.keyCode === 9 || !e.altKey && e.keyCode === 40 || e.keyCode === 38)) {\n return;\n }\n switch (e.keyCode) {\n case 38:\n case 40:\n if (e.altKey && (e.keyCode === 38 || e.keyCode === 40)) {\n this.keyEventHandler(e);\n } else {\n this.upDownKeyHandler(e);\n }\n break;\n case 9:\n case 13:\n case 27:\n case 32:\n this.keyEventHandler(e);\n break;\n }\n };\n DropDownButton.prototype.isSafari = function () {\n return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);\n };\n DropDownButton.prototype.upDownKeyHandler = function (e) {\n if (this.target && (e.keyCode === 38 || e.keyCode === 40)) {\n return;\n }\n e.preventDefault();\n upDownKeyHandler(this.getULElement(), e.keyCode);\n };\n DropDownButton.prototype.keyEventHandler = function (e) {\n if (this.target && (e.keyCode === 13 || e.keyCode === 9)) {\n return;\n }\n if (e.keyCode === 13 && this.activeElem[0].classList.contains('e-split-btn')) {\n this.triggerSelect(e);\n this.activeElem[0].focus();\n return;\n }\n if (e.target && e.target.className.indexOf('e-edit-template') > -1 && e.keyCode === 32) {\n return;\n }\n if (e.keyCode !== 9) {\n e.preventDefault();\n }\n if (e.keyCode === 27 || e.keyCode === 38 || e.keyCode === 9) {\n if (!this.canOpen()) {\n this.closePopup(e, this.element);\n }\n } else {\n this.clickHandler(e);\n }\n };\n DropDownButton.prototype.getLI = function (elem) {\n return elem.tagName === 'LI' ? elem : closest(elem, 'li');\n };\n DropDownButton.prototype.mousedownHandler = function (e) {\n var trgt = e.target;\n if (this.dropDown && !this.canOpen() && !(closest(trgt, '[id=\"' + this.getPopUpElement().id + '\"]') || closest(trgt, '[id=\"' + this.element.id + '\"]'))) {\n this.closePopup(e);\n }\n };\n DropDownButton.prototype.focusoutHandler = function (e) {\n if (this.isPopupCreated && !this.canOpen()) {\n var liTarget = e.relatedTarget || e.target;\n if (liTarget && liTarget.className.indexOf('e-item') > -1) {\n var li = this.getLI(liTarget);\n if (li) {\n var liIdx = Array.prototype.indexOf.call(this.getULElement().children, li);\n var item = this.items[liIdx];\n if (item) {\n var selectEventArgs = {\n element: li,\n item: item,\n event: e\n };\n this.trigger('select', selectEventArgs);\n }\n }\n }\n this.closePopup(e);\n }\n };\n DropDownButton.prototype.clickHandler = function (e) {\n var trgt = e.target;\n if (closest(trgt, '[id=\"' + this.element.id + '\"]')) {\n if (!this.createPopupOnClick || this.target && this.target !== '' && !this.isColorPicker() && !this.createPopupOnClick) {\n if (this.getPopUpElement().classList.contains('e-popup-close')) {\n this.openPopUp(e);\n } else {\n this.closePopup(e);\n }\n } else if (this.isPopupCreated) {\n this.closePopup(e, this.activeElem[0]);\n } else {\n this.createPopup();\n this.openPopUp(e);\n }\n } else {\n if (closest(trgt, '[id=\"' + this.getPopUpElement().id + '\"]')) {\n var li = this.getLI(e.target);\n if (li) {\n this.triggerSelect(e);\n this.closePopup(e, this.activeElem[0]);\n }\n }\n }\n };\n DropDownButton.prototype.triggerSelect = function (e) {\n var eventArgs;\n var liIdx;\n var item;\n var li = this.getLI(e.target);\n if (li) {\n liIdx = Array.prototype.indexOf.call(this.getULElement().children, li);\n item = this.items[liIdx];\n if (item) {\n eventArgs = {\n element: li,\n item: item,\n event: e\n };\n this.trigger('select', eventArgs);\n }\n }\n };\n DropDownButton.prototype.openPopUp = function (e) {\n var _this = this;\n if (e === void 0) {\n e = null;\n }\n var popupElem = this.getPopUpElement();\n if (!this.target) {\n this.createItems(true);\n } else {\n if (this.activeElem.length > 1) {\n var splitButton = getComponent(this.activeElem[0], 'split-btn');\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (splitButton.isReact && popupElem.childNodes.length < 1) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (splitButton.appendReactElement) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n splitButton.appendReactElement(this.getTargetElement(), this.getPopUpElement());\n }\n this.renderReactTemplates();\n }\n } else {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (this.isReact && popupElem.childNodes.length < 1) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (this.appendReactElement) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.appendReactElement(this.getTargetElement(), this.getPopUpElement());\n }\n this.renderReactTemplates();\n }\n }\n }\n var ul = this.getULElement();\n this.popupWireEvents();\n var beforeOpenArgs = {\n element: ul,\n items: this.items,\n event: e,\n cancel: false\n };\n this.trigger('beforeOpen', beforeOpenArgs, function (observedArgs) {\n if (!observedArgs.cancel) {\n var ul_1 = _this.getULElement();\n _this.dropDown.show(null, _this.element);\n addClass([_this.element], 'e-active');\n _this.element.setAttribute('aria-expanded', 'true');\n _this.element.setAttribute('aria-owns', _this.getPopUpElement().id);\n if (ul_1 && !_this.isSafari()) {\n ul_1.focus();\n }\n if (_this.enableRtl && ul_1.parentElement.style.left !== '0px') {\n var wrapperWidth = void 0;\n if (_this.element.parentElement && _this.element.parentElement.classList.contains('e-split-btn-wrapper')) {\n wrapperWidth = _this.element.parentElement.offsetWidth;\n } else {\n wrapperWidth = _this.element.offsetWidth;\n }\n var popupRect = ul_1.parentElement.offsetWidth - wrapperWidth;\n var popupLeft = parseFloat(ul_1.parentElement.style.left) - popupRect;\n if (popupLeft < 0) {\n popupLeft = 0;\n }\n ul_1.parentElement.style.left = popupLeft + 'px';\n }\n var openArgs = {\n element: ul_1,\n items: _this.items\n };\n _this.trigger('open', openArgs);\n if (ul_1 && _this.isSafari()) {\n ul_1.focus();\n }\n }\n });\n };\n DropDownButton.prototype.closePopup = function (e, focusEle) {\n var _this = this;\n if (e === void 0) {\n e = null;\n }\n var ul = this.getULElement();\n var beforeCloseArgs = {\n element: ul,\n items: this.items,\n event: e,\n cancel: false\n };\n this.trigger('beforeClose', beforeCloseArgs, function (observedArgs) {\n if (!observedArgs.cancel) {\n var popupElement = _this.getPopUpElement();\n if (popupElement) {\n EventHandler.remove(popupElement, 'keydown', _this.keyBoardHandler);\n }\n _this.popupUnWireEvents();\n var ul_2 = _this.getULElement();\n var selectedLi = void 0;\n if (ul_2) {\n selectedLi = ul_2.querySelector('.e-selected');\n }\n if (selectedLi) {\n selectedLi.classList.remove('e-selected');\n }\n _this.dropDown.hide();\n removeClass(_this.activeElem, 'e-active');\n _this.element.setAttribute('aria-expanded', 'false');\n _this.element.removeAttribute('aria-owns');\n if (focusEle) {\n focusEle.focus();\n }\n var closeArgs = {\n element: ul_2,\n items: _this.items\n };\n _this.trigger('close', closeArgs);\n if (!_this.target && ul_2) {\n detach(ul_2);\n }\n if (!_this.target || _this.isColorPicker() || _this.target && !_this.isColorPicker()) {\n if (_this.createPopupOnClick) {\n _this.destroyPopup();\n }\n }\n } else {\n if (ul) {\n ul.focus();\n }\n }\n });\n };\n DropDownButton.prototype.unWireEvents = function () {\n if (!this.createPopupOnClick) {\n EventHandler.remove(document, 'mousedown touchstart', this.delegateMousedownHandler);\n }\n EventHandler.remove(this.element, 'click', this.clickHandler);\n EventHandler.remove(this.element, 'keydown', this.keyBoardHandler);\n if (this.isPopupCreated) {\n EventHandler.remove(this.getPopUpElement(), 'click', this.clickHandler);\n EventHandler.remove(this.getPopUpElement(), 'keydown', this.keyBoardHandler);\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n EventHandler.remove(window, 'resize', this.windowResize);\n };\n /**\n * Called internally if any of the property value changed.\n *\n * @param {DropDownButtonModel} newProp - Specifies new properties\n * @param {DropDownButtonModel} oldProp - Specifies old properties\n * @returns {void}\n * @private\n */\n DropDownButton.prototype.onPropertyChanged = function (newProp, oldProp) {\n var btnModel = ['content', 'cssClass', 'iconCss', 'iconPosition', 'disabled', 'enableRtl'];\n this.button.setProperties(getModel(newProp, btnModel));\n var popupElement;\n if (this.isPopupCreated) {\n popupElement = this.getPopUpElement();\n this.dropDown.setProperties(getModel(newProp, ['enableRtl']));\n }\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'content':\n if (!this.element.querySelector('span.e-caret')) {\n this.appendArrowSpan();\n }\n break;\n case 'disabled':\n if (newProp.disabled) {\n this.unWireEvents();\n if (this.isPopupCreated && !this.canOpen()) {\n this.closePopup();\n }\n } else {\n this.wireEvents();\n }\n break;\n case 'cssClass':\n oldProp.cssClass = isNullOrUndefined(oldProp.cssClass) ? '' : oldProp.cssClass;\n if (newProp.cssClass.indexOf(classNames.VERTICAL) > -1 || oldProp.cssClass.indexOf(classNames.VERTICAL) > -1) {\n if (!this.element.querySelector('span.e-caret')) {\n this.appendArrowSpan();\n }\n var arrowSpan = this.element.querySelector('span.e-caret');\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n newProp.cssClass.indexOf(classNames.VERTICAL) > -1 ? classList(arrowSpan, ['e-icon-bottom'], ['e-icon-right']) : classList(arrowSpan, ['e-icon-right'], ['e-icon-bottom']);\n }\n if (this.isPopupCreated) {\n if (oldProp.cssClass) {\n removeClass([popupElement], oldProp.cssClass.split(' '));\n }\n if (newProp.cssClass) {\n addClass([popupElement], newProp.cssClass.replace(/\\s+/g, ' ').trim().split(' '));\n }\n }\n break;\n case 'target':\n this.dropDown.content = this.getTargetElement();\n this.dropDown.dataBind();\n break;\n case 'items':\n if (this.isPopupCreated && this.getULElement()) {\n this.createItems();\n }\n break;\n case 'createPopupOnClick':\n if (newProp.createPopupOnClick) {\n this.destroyPopup();\n } else {\n this.createPopup();\n }\n break;\n }\n }\n };\n /**\n * Sets the focus to DropDownButton\n * its native method\n *\n * @public\n * @returns {void}\n */\n DropDownButton.prototype.focusIn = function () {\n this.element.focus();\n };\n __decorate$1([Property('')], DropDownButton.prototype, \"content\", void 0);\n __decorate$1([Property('')], DropDownButton.prototype, \"cssClass\", void 0);\n __decorate$1([Property(false)], DropDownButton.prototype, \"disabled\", void 0);\n __decorate$1([Property('')], DropDownButton.prototype, \"iconCss\", void 0);\n __decorate$1([Property('Left')], DropDownButton.prototype, \"iconPosition\", void 0);\n __decorate$1([Property(true)], DropDownButton.prototype, \"enableHtmlSanitizer\", void 0);\n __decorate$1([Collection([], Item)], DropDownButton.prototype, \"items\", void 0);\n __decorate$1([Property(false)], DropDownButton.prototype, \"createPopupOnClick\", void 0);\n __decorate$1([Property('')], DropDownButton.prototype, \"target\", void 0);\n __decorate$1([Property('')], DropDownButton.prototype, \"closeActionEvents\", void 0);\n __decorate$1([Event()], DropDownButton.prototype, \"beforeItemRender\", void 0);\n __decorate$1([Event()], DropDownButton.prototype, \"beforeOpen\", void 0);\n __decorate$1([Event()], DropDownButton.prototype, \"beforeClose\", void 0);\n __decorate$1([Event()], DropDownButton.prototype, \"close\", void 0);\n __decorate$1([Event()], DropDownButton.prototype, \"open\", void 0);\n __decorate$1([Event()], DropDownButton.prototype, \"select\", void 0);\n __decorate$1([Event()], DropDownButton.prototype, \"created\", void 0);\n DropDownButton = __decorate$1([NotifyPropertyChanges], DropDownButton);\n return DropDownButton;\n}(Component);\nvar __extends$2 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 RTL = 'e-rtl';\nvar TAGNAME = 'EJS-SPLITBUTTON';\n/**\n * SplitButton component has primary and secondary button. Primary button is used to select\n * default action and secondary button is used to toggle contextual overlays for displaying list of\n * action items. It can contain both text and images.\n * ```html\n * \n * ```\n * ```typescript\n * \n * ```\n */\nvar SplitButton = /** @__PURE__ @class */function (_super) {\n __extends$2(SplitButton, _super);\n /**\n * Constructor for creating the widget\n *\n * @param {SplitButtonModel} options - Specifies the splitbutton model\n * @param {string|HTMLButtonElement} element - Specifies the element\n * @hidden\n */\n function SplitButton(options, element) {\n return _super.call(this, options, element) || this;\n }\n /**\n * Initialize Angular support.\n *\n * @private\n * @returns {void}\n */\n SplitButton.prototype.preRender = function () {\n var ele = this.element;\n if (ele.tagName === TAGNAME) {\n var ejInstance = getValue('ej2_instances', ele);\n var btn = this.createElement('button', {\n attrs: {\n 'type': 'button'\n }\n });\n var wrapper = this.createElement(TAGNAME, {\n className: 'e-' + this.getModuleName() + '-wrapper'\n });\n for (var idx = 0, len = ele.attributes.length; idx < len; idx++) {\n btn.setAttribute(ele.attributes[idx].nodeName, ele.attributes[idx].nodeValue);\n }\n ele.parentNode.insertBefore(wrapper, ele);\n detach(ele);\n ele = btn;\n wrapper.appendChild(ele);\n setValue('ej2_instances', ejInstance, ele);\n this.wrapper = wrapper;\n this.element = ele;\n }\n if (!this.element.id) {\n this.element.id = getUniqueID('e-' + this.getModuleName());\n }\n };\n /**\n * Initialize the Component rendering.\n *\n * @returns {void}\n * @private\n */\n SplitButton.prototype.render = function () {\n this.initWrapper();\n this.createPrimaryButton();\n this.renderControl();\n };\n SplitButton.prototype.renderControl = function () {\n this.createSecondaryButton();\n this.setActiveElem([this.element, this.secondaryBtnObj.element]);\n this.setAria();\n this.wireEvents();\n this.renderComplete();\n };\n /**\n * Adds a new item to the menu. By default, new item appends to the list as the last item,\n * but you can insert based on the text parameter.\n *\n * @param { ItemModel[] } items - Specifies an array of JSON data.\n * @param { string } text - Specifies the text to insert the newly added item in the menu.\n * @returns {void}.\n */\n SplitButton.prototype.addItems = function (items, text) {\n _super.prototype.addItems.call(this, items, text);\n this.secondaryBtnObj.items = this.items;\n };\n /**\n * Removes the items from the menu.\n *\n * @param { string[] } items - Specifies an array of string to remove the items.\n * @param { string } isUniqueId - Set `true` if specified items is a collection of unique id.\n * @returns {void}.\n */\n SplitButton.prototype.removeItems = function (items, isUniqueId) {\n _super.prototype.removeItems.call(this, items, isUniqueId);\n this.secondaryBtnObj.items = this.items;\n };\n SplitButton.prototype.initWrapper = function () {\n if (!this.wrapper) {\n this.wrapper = this.createElement('div', {\n className: 'e-' + this.getModuleName() + '-wrapper'\n });\n this.element.parentNode.insertBefore(this.wrapper, this.element);\n }\n this.element.classList.remove('e-' + this.getModuleName());\n if (this.enableRtl) {\n this.wrapper.classList.add(RTL);\n }\n if (this.cssClass) {\n addClass([this.wrapper], this.cssClass.replace(/\\s+/g, ' ').trim().split(' '));\n }\n };\n SplitButton.prototype.createPrimaryButton = function () {\n var btnModel = {\n cssClass: this.cssClass,\n enableRtl: this.enableRtl,\n iconCss: this.iconCss,\n iconPosition: this.iconPosition,\n content: this.content,\n disabled: this.disabled\n };\n this.primaryBtnObj = new Button(btnModel);\n this.primaryBtnObj.createElement = this.createElement;\n this.primaryBtnObj.appendTo(this.element);\n this.element.classList.add('e-' + this.getModuleName());\n this.element.type = 'button';\n this.wrapper.appendChild(this.element);\n };\n SplitButton.prototype.createSecondaryButton = function () {\n var _this = this;\n var btnElem = this.createElement('button', {\n className: 'e-icon-btn',\n attrs: {\n 'tabindex': '-1'\n },\n id: this.element.id + '_dropdownbtn'\n });\n this.wrapper.appendChild(btnElem);\n var dropDownBtnModel = {\n cssClass: this.cssClass,\n disabled: this.disabled,\n enableRtl: this.enableRtl,\n items: this.items,\n target: this.target,\n createPopupOnClick: this.createPopupOnClick\n };\n dropDownBtnModel.beforeItemRender = function (args) {\n if (_this.createPopupOnClick) {\n _this.secondaryBtnObj.dropDown.relateTo = _this.wrapper;\n _this.dropDown = _this.secondaryBtnObj.dropDown;\n }\n _this.trigger('beforeItemRender', args);\n };\n dropDownBtnModel.open = function (args) {\n _this.trigger('open', args);\n };\n dropDownBtnModel.close = function (args) {\n _this.trigger('close', args);\n };\n dropDownBtnModel.select = function (args) {\n _this.trigger('select', args);\n };\n dropDownBtnModel.beforeOpen = function (args) {\n if (_this.createPopupOnClick && _this.items.length === 0) {\n _this.secondaryBtnObj.dropDown.relateTo = _this.wrapper;\n _this.dropDown = _this.secondaryBtnObj.dropDown;\n }\n var callBackPromise = new Deferred();\n _this.trigger('beforeOpen', args, function (observedArgs) {\n callBackPromise.resolve(observedArgs);\n });\n return callBackPromise;\n };\n dropDownBtnModel.beforeClose = function (args) {\n var callBackPromise = new Deferred();\n _this.trigger('beforeClose', args, function (observedArgs) {\n callBackPromise.resolve(observedArgs);\n });\n return callBackPromise;\n };\n this.secondaryBtnObj = new DropDownButton(dropDownBtnModel);\n this.secondaryBtnObj.createElement = this.createElement;\n this.secondaryBtnObj.appendTo(btnElem);\n if (!this.createPopupOnClick) {\n this.secondaryBtnObj.dropDown.relateTo = this.wrapper;\n this.dropDown = this.secondaryBtnObj.dropDown;\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.isPopupCreated = this.secondaryBtnObj.isPopupCreated;\n this.secondaryBtnObj.activeElem = [this.element, this.secondaryBtnObj.element];\n this.secondaryBtnObj.element.querySelector('.e-btn-icon').classList.remove('e-icon-right');\n if (this.disabled) {\n this.wrapper.classList.add('e-splitbtn-disabled');\n }\n };\n SplitButton.prototype.setAria = function () {\n attributes(this.element, {\n 'aria-expanded': 'false',\n 'aria-haspopup': 'true',\n 'aria-label': this.element.textContent ? this.element.textContent + ' splitbutton' : 'splitbutton',\n 'aria-owns': this.element.id + '_dropdownbtn-popup'\n });\n };\n /**\n * Get component name.\n *\n * @returns {string} - Module Name\n * @private\n */\n SplitButton.prototype.getModuleName = function () {\n return 'split-btn';\n };\n /**\n * To open/close SplitButton popup based on current state of the SplitButton.\n *\n * @returns {void}\n */\n SplitButton.prototype.toggle = function () {\n this.secondaryBtnObj.toggle();\n };\n SplitButton.prototype.destroy = function () {\n var _this = this;\n var classList = [RTL];\n if (this.cssClass) {\n classList = classList.concat(this.cssClass.split(' '));\n }\n if (this.element) {\n var element = document.getElementById(this.element.id);\n if (element && element.parentElement === this.wrapper) {\n if (this.wrapper.tagName === TAGNAME) {\n this.wrapper.innerHTML = '';\n removeClass([this.wrapper], ['e-rtl', 'e-' + this.getModuleName() + '-wrapper']);\n removeClass([this.wrapper], this.cssClass.split(' '));\n } else {\n removeClass([this.element], classList);\n ['aria-label', 'aria-haspopup', 'aria-expanded', 'aria-owns', 'type'].forEach(function (key) {\n _this.element.removeAttribute(key);\n });\n this.wrapper.parentNode.insertBefore(this.element, this.wrapper);\n remove(this.wrapper);\n }\n this.unWireEvents();\n }\n }\n this.primaryBtnObj.destroy();\n this.secondaryBtnObj.destroy();\n _super.prototype.destroy.call(this);\n if (this.element && !this.element.getAttribute('class')) {\n this.element.removeAttribute('class');\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (this.refreshing && this.isAngular) {\n this.element = this.wrapper;\n ['e-control', 'e-split-btn', 'e-lib'].forEach(function (key) {\n _this.element.classList.add(key);\n });\n setValue('ej2_instances', [this], this.element);\n }\n this.wrapper = null;\n };\n SplitButton.prototype.wireEvents = function () {\n EventHandler.add(this.element, 'click', this.primaryBtnClickHandler, this);\n new KeyboardEvents(this.element, {\n keyAction: this.btnKeyBoardHandler.bind(this),\n keyConfigs: {\n altdownarrow: 'alt+downarrow',\n enter: 'enter'\n }\n });\n };\n SplitButton.prototype.unWireEvents = function () {\n EventHandler.remove(this.element, 'click', this.primaryBtnClickHandler);\n getInstance(this.element, KeyboardEvents).destroy();\n };\n SplitButton.prototype.primaryBtnClickHandler = function () {\n this.trigger('click', {\n element: this.element\n });\n };\n SplitButton.prototype.btnKeyBoardHandler = function (e) {\n switch (e.action) {\n case 'altdownarrow':\n this.clickHandler(e);\n break;\n case 'enter':\n this.clickHandler(e);\n if (this.getPopUpElement() && !this.getPopUpElement().classList.contains('e-popup-close')) {\n this.element.classList.remove('e-active');\n this.secondaryBtnObj.element.classList.add('e-active');\n } else {\n this.secondaryBtnObj.element.classList.remove('e-active');\n }\n break;\n }\n };\n /**\n * Called internally if any of the property value changed.\n *\n * @param {SplitButtonModel} newProp - Specifies new properties\n * @param {SplitButtonModel} oldProp - Specifies old properties\n * @returns {void}\n */\n SplitButton.prototype.onPropertyChanged = function (newProp, oldProp) {\n var model = ['content', 'iconCss', 'iconPosition', 'cssClass', 'disabled', 'enableRtl'];\n this.primaryBtnObj.setProperties(getModel(newProp, model));\n model = ['beforeOpen', 'beforeItemRender', 'select', 'open', 'close', 'cssClass', 'disabled', 'enableRtl', 'createPopupOnClick'];\n if (Object.keys(newProp).indexOf('items') > -1) {\n this.secondaryBtnObj.items = newProp.items;\n this.secondaryBtnObj.dataBind();\n }\n this.secondaryBtnObj.setProperties(getModel(newProp, model));\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'cssClass':\n if (oldProp.cssClass) {\n removeClass([this.wrapper], oldProp.cssClass.split(' '));\n }\n addClass([this.wrapper], newProp.cssClass.replace(/\\s+/g, ' ').trim().split(' '));\n break;\n case 'enableRtl':\n if (newProp.enableRtl) {\n addClass([this.wrapper], RTL);\n } else {\n removeClass([this.wrapper], RTL);\n }\n break;\n case 'disabled':\n if (newProp.disabled) {\n addClass([this.wrapper], 'e-splitbtn-disabled');\n } else {\n removeClass([this.wrapper], 'e-splitbtn-disabled');\n }\n }\n }\n };\n /**\n * Sets the focus to SplitButton\n * its native method\n *\n * @public\n * @returns {void}\n */\n SplitButton.prototype.focusIn = function () {\n this.element.focus();\n };\n __decorate$2([Property('')], SplitButton.prototype, \"content\", void 0);\n __decorate$2([Property('')], SplitButton.prototype, \"cssClass\", void 0);\n __decorate$2([Property(false)], SplitButton.prototype, \"disabled\", void 0);\n __decorate$2([Property('')], SplitButton.prototype, \"iconCss\", void 0);\n __decorate$2([Property('Left')], SplitButton.prototype, \"iconPosition\", void 0);\n __decorate$2([Property(false)], SplitButton.prototype, \"createPopupOnClick\", void 0);\n __decorate$2([Collection([], Item)], SplitButton.prototype, \"items\", void 0);\n __decorate$2([Property('')], SplitButton.prototype, \"target\", void 0);\n __decorate$2([Event()], SplitButton.prototype, \"beforeItemRender\", void 0);\n __decorate$2([Event()], SplitButton.prototype, \"beforeOpen\", void 0);\n __decorate$2([Event()], SplitButton.prototype, \"beforeClose\", void 0);\n __decorate$2([Event()], SplitButton.prototype, \"click\", void 0);\n __decorate$2([Event()], SplitButton.prototype, \"close\", void 0);\n __decorate$2([Event()], SplitButton.prototype, \"open\", void 0);\n __decorate$2([Event()], SplitButton.prototype, \"select\", void 0);\n __decorate$2([Event()], SplitButton.prototype, \"created\", void 0);\n SplitButton = __decorate$2([NotifyPropertyChanges], SplitButton);\n return SplitButton;\n}(DropDownButton);\n/**\n * Deferred is used to handle asynchronous operation.\n */\nvar Deferred = /** @__PURE__ @class */function () {\n function Deferred() {\n var _this = this;\n /**\n * Promise is an object that represents a value that may not be available yet, but will be resolved at some point in the future.\n */\n this.promise = new Promise(function (resolve, reject) {\n _this.resolve = resolve;\n _this.reject = reject;\n });\n /**\n * Defines the callback function triggers when the Deferred object is rejected.\n */\n this.catch = this.promise.catch.bind(this.promise);\n /**\n * Defines the callback function triggers when the Deferred object is resolved.\n */\n this.then = this.promise.then.bind(this.promise);\n }\n return Deferred;\n}();\n\n/**\n * Initialize ButtonGroup CSS component with specified properties.\n * ```html\n *
\n * \n * \n * \n *
\n * ```\n * ```typescript\n * createButtonGroup('#buttongroup', {\n * cssClass: 'e-outline',\n * buttons: [\n * { content: 'Day' },\n * { content: 'Week' },\n * { content: 'Work Week'}\n * ]\n * });\n * ```\n *\n * @param {string} selector\n * @param {CreateButtonGroupModel} options\n * @returns HTMLElement\n */\n/**\n * Creates button group.\n *\n * @param {string} selector - Specifies the selector.\n * @param {CreateButtonGroupModel} options - Specifies the button group model.\n * @param {Function} createElement - Specifies the element.\n * @returns {HTMLElement} - Button group element.\n */\nfunction createButtonGroup(selector, options, createElement$1) {\n if (options === void 0) {\n options = {};\n }\n var child;\n var btnElem;\n var nextChild;\n var btnModel;\n if (isNullOrUndefined(createElement$1)) {\n createElement$1 = createElement;\n }\n var wrapper = document.querySelector(selector);\n addClass([wrapper], ['e-btn-group', 'e-css']);\n wrapper.setAttribute('role', 'group');\n var childs = wrapper.children;\n options.buttons = options.buttons || [];\n for (var i = 0, j = 0; j < childs.length; i++, j++) {\n child = childs[j];\n btnModel = options.buttons[i];\n if (btnModel !== null) {\n if (child.tagName === 'BUTTON') {\n btnElem = child;\n } else {\n btnElem = createElement$1('label');\n nextChild = childs[j + 1];\n if (nextChild) {\n wrapper.insertBefore(btnElem, nextChild);\n } else {\n wrapper.appendChild(btnElem);\n }\n if (child.id) {\n btnElem.setAttribute('for', child.id);\n }\n if (btnModel && btnModel.disabled) {\n child.disabled = true;\n }\n j++;\n }\n if (options.cssClass && btnModel && !btnModel.cssClass) {\n btnModel.cssClass = options.cssClass;\n }\n new Button(btnModel || {}, btnElem);\n }\n }\n return wrapper;\n}\nvar __extends$3 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 HIDESPINNER = 'e-hide-spinner';\nvar PROGRESS = 'e-progress';\nvar PROGRESSACTIVE = 'e-progress-active';\nvar CONTENTCLS = 'e-btn-content';\n/**\n * Defines the spin settings.\n */\nvar SpinSettings = /** @__PURE__ @class */function (_super) {\n __extends$3(SpinSettings, _super);\n function SpinSettings() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$3([Property(null)], SpinSettings.prototype, \"template\", void 0);\n __decorate$3([Property(16)], SpinSettings.prototype, \"width\", void 0);\n __decorate$3([Property('Left')], SpinSettings.prototype, \"position\", void 0);\n return SpinSettings;\n}(ChildProperty);\n/**\n * Defines the animation settings.\n */\nvar AnimationSettings = /** @__PURE__ @class */function (_super) {\n __extends$3(AnimationSettings, _super);\n function AnimationSettings() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$3([Property(400)], AnimationSettings.prototype, \"duration\", void 0);\n __decorate$3([Property('None')], AnimationSettings.prototype, \"effect\", void 0);\n __decorate$3([Property('ease')], AnimationSettings.prototype, \"easing\", void 0);\n return AnimationSettings;\n}(ChildProperty);\n/**\n * The ProgressButton visualizes the progression of an operation to indicate the user\n * that a process is happening in the background with visual representation.\n * ```html\n * \n * ```\n * ```typescript\n * \n * ```\n */\nvar ProgressButton = /** @__PURE__ @class */function (_super) {\n __extends$3(ProgressButton, _super);\n /**\n * Constructor for creating the widget.\n *\n * @param {ProgressButtonModel} options - Specifies progress button model\n * @param {string|HTMLButtonElement} element - Specifies element\n */\n function ProgressButton(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.step = 1;\n return _this;\n }\n ProgressButton.prototype.preRender = function () {\n _super.prototype.preRender.call(this);\n };\n /**\n * Initialize the Component rendering\n *\n * @returns {void}\n * @private\n */\n ProgressButton.prototype.render = function () {\n _super.prototype.render.call(this);\n this.init();\n this.wireEvents();\n this.setAria();\n this.renderComplete();\n };\n /**\n * Starts the button progress at the specified percent.\n *\n * @param {number} percent - Starts the button progress at this percent.\n * @returns {void}\n */\n ProgressButton.prototype.start = function (percent) {\n this.isPaused = false;\n this.startProgress(percent ? percent : this.percent, this.progressTime);\n };\n /**\n * Stops the button progress.\n *\n * @returns {void}\n */\n ProgressButton.prototype.stop = function () {\n this.isPaused = true;\n cancelAnimationFrame(this.timerId);\n };\n /**\n * Complete the button progress.\n *\n * @returns {void}\n */\n ProgressButton.prototype.progressComplete = function () {\n this.isPaused = false;\n this.finishProgress();\n };\n /**\n * Get component name.\n *\n * @returns {string} - Module Name\n * @private\n */\n ProgressButton.prototype.getModuleName = function () {\n return 'progress-btn';\n };\n /**\n * Destroys the widget.\n *\n * @returns {void}\n */\n ProgressButton.prototype.destroy = function () {\n var _this = this;\n var classList = [HIDESPINNER, PROGRESSACTIVE, 'e-round-corner', 'e-' + _super.prototype.getModuleName.call(this)];\n if (this.spinSettings.position) {\n classList.push('e-spin-' + this.spinSettings.position.toLowerCase());\n }\n _super.prototype.destroy.call(this);\n this.unWireEvents();\n this.element.innerHTML = '';\n if (this.cssClass) {\n classList = classList.concat(this.cssClass.split(' '));\n }\n removeClass([this.element], classList);\n var css = this.element.getAttribute('class') ? ['aria-label', 'aria-valuemin', 'aria-valuemax', 'aria-valuenow'] : ['aria-label', 'aria-valuemin', 'aria-valuemax', 'aria-valuenow', 'class'];\n css.forEach(function (key) {\n _this.element.removeAttribute(key);\n });\n if (this.disabled) {\n this.element.removeAttribute('disabled');\n }\n };\n ProgressButton.prototype.init = function () {\n this.element.classList.add('e-' + _super.prototype.getModuleName.call(this));\n this.setContent();\n this.createSpinner();\n if (this.enableProgress) {\n this.createProgress();\n }\n };\n ProgressButton.prototype.createSpinner = function () {\n var spinner = this.createElement('span', {\n className: 'e-spinner'\n });\n this.setSpinPosition(spinner);\n createSpinner({\n target: spinner,\n width: this.spinSettings.width || 16,\n template: this.spinSettings.template\n }, this.createElement);\n };\n ProgressButton.prototype.getSpinner = function () {\n return this.element.getElementsByClassName('e-spinner')[0];\n };\n ProgressButton.prototype.getProgress = function () {\n return this.element.getElementsByClassName(PROGRESS)[0];\n };\n ProgressButton.prototype.setSpinPosition = function (ele) {\n var position = this.spinSettings.position || 'Left';\n if (position === 'Left' || position === 'Top') {\n this.element.insertBefore(ele, this.element.getElementsByClassName(CONTENTCLS)[0]);\n } else {\n this.element.appendChild(ele);\n }\n this.element.classList.add('e-spin-' + position.toLowerCase());\n };\n ProgressButton.prototype.createProgress = function () {\n this.element.appendChild(this.createElement('span', {\n className: PROGRESS\n }));\n };\n ProgressButton.prototype.setContent = function () {\n var cont;\n cont = this.element.innerHTML;\n if (this.enableHtmlSanitizer) {\n cont = SanitizeHtmlHelper.sanitize(this.element.innerHTML);\n }\n this.element.innerHTML = '';\n this.element.appendChild(this.createElement('span', {\n className: CONTENTCLS,\n innerHTML: cont\n }));\n };\n ProgressButton.prototype.clickHandler = function () {\n if (this.element.classList.contains(PROGRESSACTIVE)) {\n return;\n }\n this.startProgress();\n };\n ProgressButton.prototype.startProgress = function (percent, progressTime) {\n var clsList = this.element.classList;\n var isVertical = clsList.contains('e-vertical');\n clsList.add(PROGRESSACTIVE);\n if (!clsList.contains(HIDESPINNER)) {\n showSpinner(this.element.querySelector('.e-spinner'));\n }\n this.startAnimate(Date.now(), progressTime ? progressTime : 0, progressTime ? Date.now() - this.duration * 1 / 100 : Date.now(), percent ? percent : 0, 0, this.step, 0, isVertical);\n this.startContAnimate();\n };\n ProgressButton.prototype.startAnimate = function (timestamp, progressTime, prevTime, percent, prevPercent, step, prevProgressTime, isVertical) {\n var _this = this;\n try {\n var timeDiff = timestamp - prevTime;\n var stepTime = this.duration * step / 100;\n var timeDiffBuffer_1 = timeDiff ? timeDiff < stepTime ? timeDiff - stepTime : timeDiff % stepTime : 0;\n this.progressTime = progressTime = progressTime + timeDiff - timeDiffBuffer_1;\n prevTime = timestamp - timeDiffBuffer_1;\n percent = percent + (timeDiff - timeDiffBuffer_1) / this.duration * 100;\n prevPercent = (progressTime - prevProgressTime) % stepTime === 0 || percent === 100 ? percent : prevPercent;\n var args = {\n percent: prevPercent,\n currentDuration: progressTime,\n step: step\n };\n this.eIsVertical = isVertical;\n if (percent === 0) {\n this.trigger('begin', args, function (observedArgs) {\n _this.successCallback(observedArgs, percent, prevPercent, progressTime, prevProgressTime, timeDiffBuffer_1, prevTime);\n });\n } else if (percent === 100 || progressTime === this.duration) {\n this.trigger('end', args, function (observedArgs) {\n _this.successCallback(observedArgs, percent, prevPercent, progressTime, prevProgressTime, timeDiffBuffer_1, prevTime);\n });\n } else {\n this.trigger('progress', args, function (observedArgs) {\n _this.successCallback(observedArgs, percent, prevPercent, progressTime, prevProgressTime, timeDiffBuffer_1, prevTime);\n });\n }\n } catch (e) {\n cancelAnimationFrame(this.timerId);\n this.trigger('fail', e);\n }\n };\n ProgressButton.prototype.successCallback = function (args, perc, pPerc, prgTim, pPrgTim, timDif, pTim) {\n var _this = this;\n var percent = perc;\n var prevPercent = pPerc;\n var timeDiffBuffer = timDif;\n var progressTime = prgTim;\n var prevProgressTime = pPrgTim;\n var prevTime = pTim;\n var isVertical = this.eIsVertical;\n if (percent !== args.percent && args.percent !== prevPercent) {\n percent = args.percent;\n }\n this.percent = percent;\n this.step = args.step;\n if ((progressTime - prevProgressTime) % (this.duration * args.step / 100) === 0 || percent === 100) {\n this.timerId = requestAnimationFrame(function () {\n if (_this.enableProgress && _this.getProgress()) {\n _this.getProgress().style[isVertical ? 'height' : 'width'] = percent + '%';\n }\n _this.element.setAttribute('aria-valuenow', percent.toString());\n });\n prevPercent = percent;\n prevProgressTime = progressTime;\n }\n if (!this.isPaused) {\n if (progressTime < this.duration && percent < 100) {\n this.interval = window.setTimeout(function () {\n _this.startAnimate(Date.now(), progressTime, prevTime, percent, prevPercent, args.step, prevProgressTime, isVertical);\n }, this.duration / 100 - timeDiffBuffer);\n } else {\n this.interval = window.setTimeout(function () {\n _this.progressTime = _this.percent = 0;\n if (_this.enableProgress && _this.getProgress()) {\n _this.getProgress().style[isVertical ? 'height' : 'width'] = '0%';\n }\n _this.element.setAttribute('aria-valuenow', '0');\n _this.hideSpin();\n }, 100);\n }\n }\n };\n ProgressButton.prototype.startContAnimate = function () {\n var _this = this;\n var ele = this.element.getElementsByClassName(CONTENTCLS)[0];\n if (this.animationSettings.effect !== 'None') {\n new Animation({}).animate(ele, {\n duration: this.animationSettings.duration === 0 && animationMode === 'Enable' ? 400 : this.animationSettings.duration,\n name: 'Progress' + this.animationSettings.effect,\n timingFunction: this.animationSettings.easing,\n begin: function () {\n if (_this.spinSettings.position === 'Center') {\n _this.setSpinnerSize();\n }\n },\n end: function () {\n ele.classList.add('e-animate-end');\n }\n });\n } else if (this.spinSettings.position === 'Center') {\n this.setSpinnerSize();\n }\n };\n ProgressButton.prototype.finishProgress = function () {\n var clsList = this.element.classList;\n var isVertical = clsList.contains('e-vertical');\n clsList.add(PROGRESSACTIVE);\n var count = 100;\n for (var i = this.percent; i < count; i++) {\n i += 10;\n if (i > 100) {\n i = 100;\n }\n if (this.enableProgress && this.getProgress()) {\n this.getProgress().style[isVertical ? 'height' : 'width'] = this.percent < 100 ? i + '%' : '100%';\n }\n }\n this.element.setAttribute('aria-valuenow', '0');\n this.hideSpin();\n var args = {\n step: this.step,\n currentDuration: this.progressTime,\n percent: 100\n };\n clearTimeout(this.interval);\n this.trigger('end', args);\n this.progressTime = this.percent = 0;\n };\n ProgressButton.prototype.setSpinnerSize = function () {\n var ele = this.element.getElementsByClassName(CONTENTCLS)[0];\n var spinner = this.getSpinner();\n spinner.style.width = Math.max(spinner.offsetWidth, ele.offsetWidth) + 'px';\n spinner.style.height = Math.max(spinner.offsetHeight, ele.offsetHeight) + 'px';\n ele.classList.add('e-cont-animate');\n };\n ProgressButton.prototype.hideSpin = function () {\n var cont = this.element.getElementsByClassName(CONTENTCLS)[0];\n if (!this.element.classList.contains(HIDESPINNER)) {\n hideSpinner(this.element.querySelector('.e-spinner'));\n }\n this.element.classList.remove(PROGRESSACTIVE);\n if (this.animationSettings.effect !== 'None') {\n cont.classList.remove('e-animate-end');\n }\n if (this.spinSettings.position === 'Center') {\n var ele = this.getSpinner();\n cont.classList.remove('e-cont-animate');\n ele.style.width = 'auto';\n ele.style.height = 'auto';\n }\n };\n ProgressButton.prototype.setIconSpan = function () {\n var cont = this.element.getElementsByClassName(CONTENTCLS)[0];\n var iconSpan = this.element.getElementsByClassName('e-btn-icon')[0];\n if (cont.childNodes[0] && (this.iconPosition === 'Left' || this.iconPosition === 'Top')) {\n cont.insertBefore(iconSpan, cont.childNodes[0]);\n } else {\n cont.appendChild(iconSpan);\n }\n };\n ProgressButton.prototype.setAria = function () {\n attributes(this.element, {\n 'aria-label': this.element.textContent + ' progress'\n });\n };\n ProgressButton.prototype.wireEvents = function () {\n EventHandler.add(this.element, 'click', this.clickHandler, this);\n };\n ProgressButton.prototype.unWireEvents = function () {\n EventHandler.remove(this.element, 'click', this.clickHandler);\n };\n /**\n * Called internally if any of the property value changed.\n *\n * @param {ProgressButtonModel} newProp - Specifies new properties\n * @param {ProgressButtonModel} oldProp - Specifies old properties\n * @returns {void}\n * @private\n */\n ProgressButton.prototype.onPropertyChanged = function (newProp, oldProp) {\n var ele = this.element;\n var isSpinning = false;\n var clsList = this.element.querySelector('.e-spinner-pane').classList;\n if (clsList.contains('e-spin-show')) {\n isSpinning = true;\n }\n _super.prototype.onPropertyChanged.call(this, newProp, oldProp);\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'content':\n this.setContent();\n this.createSpinner();\n if (isSpinning) {\n showSpinner(this.element.querySelector('.e-spinner'));\n isSpinning = false;\n }\n if (this.enableProgress) {\n this.createProgress();\n }\n ele.setAttribute('aria-label', ele.textContent + ' progress');\n break;\n case 'iconCss':\n if (!oldProp.iconCss) {\n this.setIconSpan();\n }\n break;\n case 'iconPosition':\n this.setIconSpan();\n break;\n case 'enableProgress':\n if (newProp.enableProgress) {\n this.createProgress();\n } else {\n remove(this.getProgress());\n }\n break;\n case 'spinSettings':\n if (newProp.spinSettings.position) {\n ele.classList.remove('e-spin-' + oldProp.spinSettings.position.toLowerCase());\n this.setSpinPosition(this.getSpinner());\n }\n if (newProp.spinSettings.template || newProp.spinSettings.width) {\n ele.removeChild(this.getSpinner());\n this.createSpinner();\n }\n break;\n }\n }\n };\n /**\n * Sets the focus to ProgressButton\n * its native method\n *\n * @public\n * @returns {void}\n */\n ProgressButton.prototype.focusIn = function () {\n this.element.focus();\n };\n __decorate$3([Property(false)], ProgressButton.prototype, \"enableProgress\", void 0);\n __decorate$3([Property(2000)], ProgressButton.prototype, \"duration\", void 0);\n __decorate$3([Property('Left')], ProgressButton.prototype, \"iconPosition\", void 0);\n __decorate$3([Property('')], ProgressButton.prototype, \"iconCss\", void 0);\n __decorate$3([Property(false)], ProgressButton.prototype, \"disabled\", void 0);\n __decorate$3([Property(false)], ProgressButton.prototype, \"isPrimary\", void 0);\n __decorate$3([Property('')], ProgressButton.prototype, \"cssClass\", void 0);\n __decorate$3([Property('')], ProgressButton.prototype, \"content\", void 0);\n __decorate$3([Property(false)], ProgressButton.prototype, \"isToggle\", void 0);\n __decorate$3([Property(true)], ProgressButton.prototype, \"enableHtmlSanitizer\", void 0);\n __decorate$3([Complex({}, SpinSettings)], ProgressButton.prototype, \"spinSettings\", void 0);\n __decorate$3([Complex({}, AnimationSettings)], ProgressButton.prototype, \"animationSettings\", void 0);\n __decorate$3([Event()], ProgressButton.prototype, \"created\", void 0);\n __decorate$3([Event()], ProgressButton.prototype, \"begin\", void 0);\n __decorate$3([Event()], ProgressButton.prototype, \"progress\", void 0);\n __decorate$3([Event()], ProgressButton.prototype, \"end\", void 0);\n __decorate$3([Event()], ProgressButton.prototype, \"fail\", void 0);\n ProgressButton = __decorate$3([NotifyPropertyChanges], ProgressButton);\n return ProgressButton;\n}(Button);\nexport { AnimationSettings, Deferred, DropDownButton, Item, ProgressButton, SpinSettings, SplitButton, createButtonGroup, getModel, setBlankIconStyle, upDownKeyHandler };\n","import { isNullOrUndefined, createElement, addClass, attributes, removeClass, formatUnit, remove, detach, classList, closest, getValue, setValue, L10n, getUniqueID, Internationalization, EventHandler, Browser, merge, getNumericObject, Property, Event, NotifyPropertyChanges, Component, extend, ChildProperty, setStyleAttribute, SanitizeHtmlHelper, initializeCSPTemplate, Collection, Complex, onIntlChange, select, selectAll, Base, KeyboardEvents, Ajax, append, Animation, compile, rippleEffect, getInstance } from '@syncfusion/ej2-base';\nimport { Tooltip, getZindexPartial, createSpinner, showSpinner, hideSpinner, isCollide, Popup } from '@syncfusion/ej2-popups';\nimport { SplitButton, Deferred, getModel } from '@syncfusion/ej2-splitbuttons';\n\n/* eslint-disable valid-jsdoc, jsdoc/require-jsdoc, jsdoc/require-returns, jsdoc/require-param */\nvar CLASSNAMES = {\n RTL: 'e-rtl',\n DISABLE: 'e-disabled',\n INPUT: 'e-input',\n TEXTAREA: 'e-multi-line-input',\n INPUTGROUP: 'e-input-group',\n FLOATINPUT: 'e-float-input',\n FLOATLINE: 'e-float-line',\n FLOATTEXT: 'e-float-text',\n FLOATTEXTCONTENT: 'e-float-text-content',\n CLEARICON: 'e-clear-icon',\n CLEARICONHIDE: 'e-clear-icon-hide',\n LABELTOP: 'e-label-top',\n LABELBOTTOM: 'e-label-bottom',\n NOFLOATLABEL: 'e-no-float-label',\n INPUTCUSTOMTAG: 'e-input-custom-tag',\n FLOATCUSTOMTAG: 'e-float-custom-tag'\n};\n/**\n * Defines the constant attributes for the input element container.\n */\nvar containerAttributes = ['title', 'style', 'class'];\n/**\n * Defines the constant focus class for the input element.\n */\nvar TEXTBOX_FOCUS = 'e-input-focus';\n/**\n * Base for Input creation through util methods.\n */\n// eslint-disable-next-line @typescript-eslint/no-namespace\nvar Input;\n(function (Input) {\n var floatType;\n var isBindClearAction = true;\n /**\n * Create a wrapper to input element with multiple span elements and set the basic properties to input based components.\n * ```\n * E.g : Input.createInput({ element: element, floatLabelType : \"Auto\", properties: { placeholder: 'Search' } });\n * ```\n *\n */\n function createInput(args, internalCreateElement) {\n args.element.__eventHandlers = {};\n var makeElement = !isNullOrUndefined(internalCreateElement) ? internalCreateElement : createElement;\n var inputObject = {\n container: null,\n buttons: [],\n clearButton: null\n };\n floatType = args.floatLabelType;\n isBindClearAction = args.bindClearAction;\n if (isNullOrUndefined(args.floatLabelType) || args.floatLabelType === 'Never') {\n inputObject.container = createInputContainer(args, CLASSNAMES.INPUTGROUP, CLASSNAMES.INPUTCUSTOMTAG, 'span', makeElement);\n args.element.parentNode.insertBefore(inputObject.container, args.element);\n addClass([args.element], CLASSNAMES.INPUT);\n inputObject.container.appendChild(args.element);\n } else {\n createFloatingInput(args, inputObject, makeElement);\n }\n bindInitialEvent(args);\n if (!isNullOrUndefined(args.properties) && !isNullOrUndefined(args.properties.showClearButton) && args.properties.showClearButton) {\n setClearButton(args.properties.showClearButton, args.element, inputObject, true, makeElement);\n inputObject.clearButton.setAttribute('role', 'button');\n if (inputObject.container.classList.contains(CLASSNAMES.FLOATINPUT)) {\n addClass([inputObject.container], CLASSNAMES.INPUTGROUP);\n }\n }\n if (!isNullOrUndefined(args.buttons)) {\n for (var i = 0; i < args.buttons.length; i++) {\n inputObject.buttons.push(appendSpan(args.buttons[i], inputObject.container, makeElement));\n }\n }\n if (!isNullOrUndefined(args.element) && args.element.tagName === 'TEXTAREA') {\n addClass([inputObject.container], CLASSNAMES.TEXTAREA);\n }\n validateInputType(inputObject.container, args.element);\n inputObject = setPropertyValue(args, inputObject);\n createSpanElement(inputObject.container, makeElement);\n return inputObject;\n }\n Input.createInput = createInput;\n function bindFocusEventHandler(args) {\n var parent = getParentNode(args.element);\n if (parent.classList.contains('e-input-group') || parent.classList.contains('e-outline') || parent.classList.contains('e-filled')) {\n parent.classList.add('e-input-focus');\n }\n if (args.floatLabelType !== 'Never') {\n setTimeout(function () {\n Input.calculateWidth(args.element, parent);\n }, 80);\n }\n }\n function bindBlurEventHandler(args) {\n var parent = getParentNode(args.element);\n if (parent.classList.contains('e-input-group') || parent.classList.contains('e-outline') || parent.classList.contains('e-filled')) {\n parent.classList.remove('e-input-focus');\n }\n if (args.floatLabelType !== 'Never') {\n setTimeout(function () {\n Input.calculateWidth(args.element, parent);\n }, 80);\n }\n }\n function bindInputEventHandler(args) {\n checkInputValue(args.floatLabelType, args.element);\n }\n function bindInitialEvent(args) {\n checkInputValue(args.floatLabelType, args.element);\n var focusHandler = function () {\n return bindFocusEventHandler(args);\n };\n var blurHandler = function () {\n return bindBlurEventHandler(args);\n };\n var inputHandler = function () {\n return bindInputEventHandler(args);\n };\n args.element.addEventListener('focus', focusHandler);\n args.element.addEventListener('blur', blurHandler);\n args.element.addEventListener('input', inputHandler);\n args.element.__eventHandlers['inputFocusHandler'] = {\n focusHandler: focusHandler\n };\n args.element.__eventHandlers['inputBlurHandler'] = {\n blurHandler: blurHandler\n };\n args.element.__eventHandlers['inputHandler'] = {\n inputHandler: inputHandler\n };\n }\n Input.bindInitialEvent = bindInitialEvent;\n function unbindInitialEvent(args) {\n if (!isNullOrUndefined(args.element)) {\n if (!isNullOrUndefined(args.element.__eventHandlers)) {\n if (!isNullOrUndefined(args.element.__eventHandlers['inputFocusHandler']) && !isNullOrUndefined(args.element.__eventHandlers['inputBlurHandler']) && !isNullOrUndefined(args.element.__eventHandlers['inputHandler'])) {\n var focusHandler_1 = args.element.__eventHandlers['inputFocusHandler'].focusHandler;\n var blurHandler_1 = args.element.__eventHandlers['inputBlurHandler'].blurHandler;\n var inputHandler_1 = args.element.__eventHandlers['inputHandler'].inputHandler;\n args.element.removeEventListener('focus', focusHandler_1);\n args.element.removeEventListener('blur', blurHandler_1);\n args.element.removeEventListener('input', inputHandler_1);\n // Clean up stored bound functions\n delete args.element.__eventHandlers['inputFocusHandler'];\n delete args.element.__eventHandlers['inputBlurHandler'];\n delete args.element.__eventHandlers['inputHandler'];\n }\n }\n }\n }\n function checkInputValue(floatLabelType, inputElement) {\n var inputValue = inputElement.value;\n var inputParent = inputElement.parentElement;\n var grandParent = inputParent && inputParent.parentElement;\n if (inputValue !== '' && !isNullOrUndefined(inputValue)) {\n if (inputParent && inputParent.classList.contains('e-input-group')) {\n inputParent.classList.add('e-valid-input');\n } else if (grandParent && grandParent.classList.contains('e-input-group')) {\n grandParent.classList.add('e-valid-input');\n }\n } else if (floatLabelType !== 'Always') {\n if (inputParent && inputParent.classList.contains('e-input-group')) {\n inputParent.classList.remove('e-valid-input');\n } else if (grandParent && grandParent.classList.contains('e-input-group')) {\n grandParent.classList.remove('e-valid-input');\n }\n }\n }\n function _focusFn() {\n var label = getParentNode(this).getElementsByClassName('e-float-text')[0];\n if (!isNullOrUndefined(label)) {\n addClass([label], CLASSNAMES.LABELTOP);\n if (label.classList.contains(CLASSNAMES.LABELBOTTOM)) {\n removeClass([label], CLASSNAMES.LABELBOTTOM);\n }\n }\n }\n function _blurFn() {\n var parent = getParentNode(this);\n if (parent.getElementsByTagName('textarea')[0] ? parent.getElementsByTagName('textarea')[0].value === '' : parent.getElementsByTagName('input')[0].value === '') {\n var label = parent.getElementsByClassName('e-float-text')[0];\n if (!isNullOrUndefined(label)) {\n if (label.classList.contains(CLASSNAMES.LABELTOP)) {\n removeClass([label], CLASSNAMES.LABELTOP);\n }\n addClass([label], CLASSNAMES.LABELBOTTOM);\n }\n }\n }\n function wireFloatingEvents(element) {\n element.addEventListener('focus', _focusFn);\n element.addEventListener('blur', _blurFn);\n }\n Input.wireFloatingEvents = wireFloatingEvents;\n function unwireFloatingEvents(element) {\n if (!isNullOrUndefined(element)) {\n element.removeEventListener('focus', _focusFn);\n element.removeEventListener('blur', _blurFn);\n }\n }\n function inputEventHandler(args) {\n validateLabel(args.element, args.floatLabelType);\n }\n function blurEventHandler(args) {\n validateLabel(args.element, args.floatLabelType);\n }\n function createFloatingInput(args, inputObject, internalCreateElement) {\n var makeElement = !isNullOrUndefined(internalCreateElement) ? internalCreateElement : createElement;\n if (args.floatLabelType === 'Auto') {\n wireFloatingEvents(args.element);\n }\n if (isNullOrUndefined(inputObject.container)) {\n inputObject.container = createInputContainer(args, CLASSNAMES.FLOATINPUT, CLASSNAMES.FLOATCUSTOMTAG, 'div', makeElement);\n inputObject.container.classList.add(CLASSNAMES.INPUTGROUP);\n if (args.element.parentNode) {\n args.element.parentNode.insertBefore(inputObject.container, args.element);\n }\n } else {\n if (!isNullOrUndefined(args.customTag)) {\n inputObject.container.classList.add(CLASSNAMES.FLOATCUSTOMTAG);\n }\n inputObject.container.classList.add(CLASSNAMES.FLOATINPUT);\n }\n var floatLinelement = makeElement('span', {\n className: CLASSNAMES.FLOATLINE\n });\n var floatLabelElement = makeElement('label', {\n className: CLASSNAMES.FLOATTEXT\n });\n if (!isNullOrUndefined(args.element.id) && args.element.id !== '') {\n floatLabelElement.id = 'label_' + args.element.id.replace(/ /g, '_');\n attributes(args.element, {\n 'aria-labelledby': floatLabelElement.id\n });\n }\n if (!isNullOrUndefined(args.element.placeholder) && args.element.placeholder !== '') {\n floatLabelElement.innerText = encodePlaceHolder(args.element.placeholder);\n args.element.removeAttribute('placeholder');\n }\n if (!isNullOrUndefined(args.properties) && !isNullOrUndefined(args.properties.placeholder) && args.properties.placeholder !== '') {\n floatLabelElement.innerText = encodePlaceHolder(args.properties.placeholder);\n }\n if (!floatLabelElement.innerText) {\n inputObject.container.classList.add(CLASSNAMES.NOFLOATLABEL);\n }\n if (inputObject.container.classList.contains('e-float-icon-left')) {\n var inputWrap = inputObject.container.querySelector('.e-input-in-wrap');\n inputWrap.appendChild(args.element);\n inputWrap.appendChild(floatLinelement);\n inputWrap.appendChild(floatLabelElement);\n } else {\n inputObject.container.appendChild(args.element);\n inputObject.container.appendChild(floatLinelement);\n inputObject.container.appendChild(floatLabelElement);\n }\n updateLabelState(args.element.value, floatLabelElement);\n if (args.floatLabelType === 'Always') {\n if (floatLabelElement.classList.contains(CLASSNAMES.LABELBOTTOM)) {\n removeClass([floatLabelElement], CLASSNAMES.LABELBOTTOM);\n }\n addClass([floatLabelElement], CLASSNAMES.LABELTOP);\n }\n if (args.floatLabelType === 'Auto') {\n var inputFloatHandler = function () {\n return inputEventHandler(args);\n };\n var blurFloatHandler = function () {\n return blurEventHandler(args);\n };\n // Add event listeners using the defined functions\n args.element.addEventListener('input', inputFloatHandler);\n args.element.addEventListener('blur', blurFloatHandler);\n // Store the event handler functions to remove them later\n args.element.__eventHandlers['floatInputHandler'] = {\n inputFloatHandler: inputFloatHandler\n };\n args.element.__eventHandlers['floatBlurHandler'] = {\n blurFloatHandler: blurFloatHandler\n };\n } else {\n unWireFloatLabelEvents(args);\n }\n if (!isNullOrUndefined(args.element.getAttribute('id'))) {\n floatLabelElement.setAttribute('for', args.element.getAttribute('id'));\n }\n }\n function unWireFloatLabelEvents(args) {\n if (!isNullOrUndefined(args.element) && !isNullOrUndefined(args.element.__eventHandlers) && !isNullOrUndefined(args.element.__eventHandlers['floatInputHandler']) && !isNullOrUndefined(args.element.__eventHandlers['floatBlurHandler'])) {\n var inputFloatHandler = args.element.__eventHandlers['floatInputHandler'].inputFloatHandler;\n var blurFloatHandler = args.element.__eventHandlers['floatBlurHandler'].blurFloatHandler;\n // Remove the event listeners using the defined functions\n args.element.removeEventListener('input', inputFloatHandler);\n args.element.removeEventListener('blur', blurFloatHandler);\n // Clean up stored event handler functions\n delete args.element.__eventHandlers['floatInputHandler'];\n delete args.element.__eventHandlers['floatBlurHandler'];\n }\n }\n function checkFloatLabelType(type, container) {\n if (type === 'Always' && container.classList.contains('e-outline')) {\n container.classList.add('e-valid-input');\n }\n }\n function setPropertyValue(args, inputObject) {\n if (!isNullOrUndefined(args.properties)) {\n for (var _i = 0, _a = Object.keys(args.properties); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'cssClass':\n setCssClass(args.properties.cssClass, [inputObject.container]);\n checkFloatLabelType(args.floatLabelType, inputObject.container);\n break;\n case 'enabled':\n setEnabled(args.properties.enabled, args.element, args.floatLabelType, inputObject.container);\n break;\n case 'enableRtl':\n setEnableRtl(args.properties.enableRtl, [inputObject.container]);\n break;\n case 'placeholder':\n setPlaceholder(args.properties.placeholder, args.element);\n break;\n case 'readonly':\n setReadonly(args.properties.readonly, args.element);\n break;\n }\n }\n }\n return inputObject;\n }\n function updateIconState(value, button, readonly) {\n if (!isNullOrUndefined(button)) {\n if (value && !readonly) {\n removeClass([button], CLASSNAMES.CLEARICONHIDE);\n } else {\n addClass([button], CLASSNAMES.CLEARICONHIDE);\n }\n }\n }\n function updateLabelState(value, label, element) {\n if (element === void 0) {\n element = null;\n }\n if (value) {\n addClass([label], CLASSNAMES.LABELTOP);\n if (label.classList.contains(CLASSNAMES.LABELBOTTOM)) {\n removeClass([label], CLASSNAMES.LABELBOTTOM);\n }\n } else {\n var isNotFocused = element != null ? element !== document.activeElement : true;\n if (isNotFocused) {\n if (label.classList.contains(CLASSNAMES.LABELTOP)) {\n removeClass([label], CLASSNAMES.LABELTOP);\n }\n addClass([label], CLASSNAMES.LABELBOTTOM);\n }\n }\n }\n function getParentNode(element) {\n var parentNode = isNullOrUndefined(element.parentNode) ? element : element.parentNode;\n if (parentNode && parentNode.classList.contains('e-input-in-wrap')) {\n parentNode = parentNode.parentNode;\n }\n return parentNode;\n }\n /**\n * To create clear button.\n */\n function createClearButton(element, inputObject, initial, internalCreateElement) {\n var makeElement = !isNullOrUndefined(internalCreateElement) ? internalCreateElement : createElement;\n var button = makeElement('span', {\n className: CLASSNAMES.CLEARICON\n });\n var container = inputObject.container;\n if (!isNullOrUndefined(initial)) {\n container.appendChild(button);\n } else {\n var baseElement = inputObject.container.classList.contains(CLASSNAMES.FLOATINPUT) ? inputObject.container.querySelector('.' + CLASSNAMES.FLOATTEXT) : element;\n baseElement.insertAdjacentElement('afterend', button);\n }\n addClass([button], CLASSNAMES.CLEARICONHIDE);\n wireClearBtnEvents(element, button);\n button.setAttribute('aria-label', 'close');\n return button;\n }\n function clickHandler(event, element, button) {\n if (!(element.classList.contains(CLASSNAMES.DISABLE) || element.readOnly)) {\n event.preventDefault();\n if (element !== document.activeElement) {\n element.focus();\n }\n element.value = '';\n addClass([button], CLASSNAMES.CLEARICONHIDE);\n }\n }\n function inputHandler(element, button) {\n updateIconState(element.value, button);\n }\n function focusHandler(element, button) {\n updateIconState(element.value, button, element.readOnly);\n }\n function blurHandler(element, button) {\n setTimeout(function () {\n if (!isNullOrUndefined(button)) {\n addClass([button], CLASSNAMES.CLEARICONHIDE);\n button = !isNullOrUndefined(element) && element.classList.contains('e-combobox') ? null : button;\n }\n }, 200);\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n function wireClearBtnEvents(element, button, container) {\n if (isBindClearAction === undefined || isBindClearAction) {\n var clickHandlerEvent = function (e) {\n return clickHandler(e, element, button);\n };\n button.addEventListener('click', clickHandlerEvent);\n element.__eventHandlers['clearClickHandler'] = {\n clickHandlerEvent: clickHandlerEvent\n };\n }\n var inputHandlerEvent = function () {\n return inputHandler(element, button);\n };\n var focusHandlerEvent = function () {\n return focusHandler(element, button);\n };\n var blurHandlerEvent = function () {\n return blurHandler(element, button);\n };\n element.addEventListener('input', inputHandlerEvent);\n element.addEventListener('focus', focusHandlerEvent);\n element.addEventListener('blur', blurHandlerEvent);\n // Store the bound functions to remove them later\n element.__eventHandlers['clearInputHandler'] = {\n inputHandlerEvent: inputHandlerEvent\n };\n element.__eventHandlers['clearFocusHandler'] = {\n focusHandlerEvent: focusHandlerEvent\n };\n element.__eventHandlers['clearBlurHandler'] = {\n blurHandlerEvent: blurHandlerEvent\n };\n }\n Input.wireClearBtnEvents = wireClearBtnEvents;\n function unWireClearBtnEvents(element, button) {\n if (!isNullOrUndefined(element) && !isNullOrUndefined(element.__eventHandlers)) {\n if (!isNullOrUndefined(element.__eventHandlers['clearClickHandler'])) {\n var clickHandlerEvent = element.__eventHandlers['clearClickHandler'].clickHandlerEvent;\n if (isBindClearAction === undefined || isBindClearAction) {\n if (!isNullOrUndefined(button)) {\n button.removeEventListener('click', clickHandlerEvent);\n }\n }\n delete element.__eventHandlers['clearClickHandler'];\n }\n if (!isNullOrUndefined(element.__eventHandlers['clearInputHandler']) && !isNullOrUndefined(element.__eventHandlers['clearFocusHandler']) && !isNullOrUndefined(element.__eventHandlers['clearBlurHandler'])) {\n var inputHandlerEvent = element.__eventHandlers['clearInputHandler'].inputHandlerEvent;\n var focusHandlerEvent = element.__eventHandlers['clearFocusHandler'].focusHandlerEvent;\n var blurHandlerEvent = element.__eventHandlers['clearBlurHandler'].blurHandlerEvent;\n element.removeEventListener('input', inputHandlerEvent);\n element.removeEventListener('focus', focusHandlerEvent);\n element.removeEventListener('blur', blurHandlerEvent);\n // Clean up stored Event functions\n delete element.__eventHandlers['clearInputHandler'];\n delete element.__eventHandlers['clearFocusHandler'];\n delete element.__eventHandlers['clearBlurHandler'];\n }\n }\n }\n function destroy(args, button) {\n if (button === void 0) {\n button = null;\n }\n unbindInitialEvent(args);\n if (args.floatLabelType === 'Auto') {\n unWireFloatLabelEvents(args);\n }\n if (args.properties.showClearButton) {\n unWireClearBtnEvents(args.element, button);\n }\n if (!isNullOrUndefined(args.buttons)) {\n _internalRipple(false, null, args.buttons);\n }\n unwireFloatingEvents(args.element);\n if (!isNullOrUndefined(args.element)) {\n delete args.element.__eventHandlers;\n if (args.element.classList.contains(CLASSNAMES.INPUT)) {\n args.element.classList.remove(CLASSNAMES.INPUT);\n }\n }\n }\n Input.destroy = destroy;\n function validateLabel(element, floatLabelType) {\n var parent = getParentNode(element);\n if (parent.classList.contains(CLASSNAMES.FLOATINPUT) && floatLabelType === 'Auto') {\n var label = getParentNode(element).getElementsByClassName('e-float-text')[0];\n updateLabelState(element.value, label, element);\n }\n }\n /**\n * To create input box contianer.\n */\n function createInputContainer(args, className, tagClass, tag, internalCreateElement) {\n var makeElement = !isNullOrUndefined(internalCreateElement) ? internalCreateElement : createElement;\n var container;\n if (!isNullOrUndefined(args.customTag)) {\n container = makeElement(args.customTag, {\n className: className\n });\n container.classList.add(tagClass);\n } else {\n container = makeElement(tag, {\n className: className\n });\n }\n container.classList.add('e-control-wrapper');\n return container;\n }\n function encodePlaceHolder(placeholder) {\n var result = '';\n if (!isNullOrUndefined(placeholder) && placeholder !== '') {\n var spanEle = document.createElement('span');\n spanEle.innerHTML = '';\n var hiddenInput = spanEle.children[0];\n result = hiddenInput.placeholder;\n }\n return result;\n }\n /**\n * Sets the value to the input element.\n * ```\n * E.g : Input.setValue('content', element, \"Auto\", true );\n * ```\n *\n * @param {string} value - Specify the value of the input element.\n * @param {HTMLInputElement | HTMLTextAreaElement} element - The element on which the specified value is updated.\n * @param {string} floatLabelType - Specify the float label type of the input element.\n * @param {boolean} clearButton - Boolean value to specify whether the clear icon is enabled / disabled on the input.\n */\n function setValue(value, element, floatLabelType, clearButton) {\n element.value = value;\n if (floatLabelType !== 'Never') {\n calculateWidth(element, element.parentElement);\n }\n if (!isNullOrUndefined(floatLabelType) && floatLabelType === 'Auto') {\n validateLabel(element, floatLabelType);\n }\n if (!isNullOrUndefined(clearButton) && clearButton) {\n var parentElement = getParentNode(element);\n if (!isNullOrUndefined(parentElement)) {\n var button = parentElement.getElementsByClassName(CLASSNAMES.CLEARICON)[0];\n if (!isNullOrUndefined(button)) {\n if (element.value && !isNullOrUndefined(parentElement) && parentElement.classList.contains('e-input-focus')) {\n removeClass([button], CLASSNAMES.CLEARICONHIDE);\n } else {\n addClass([button], CLASSNAMES.CLEARICONHIDE);\n }\n }\n }\n }\n checkInputValue(floatLabelType, element);\n }\n Input.setValue = setValue;\n /**\n * Sets the single or multiple cssClass to wrapper of input element.\n * ```\n * E.g : Input.setCssClass('e-custom-class', [element]);\n * ```\n *\n * @param {string} cssClass - Css class names which are needed to add.\n * @param {Element[] | NodeList} elements - The elements which are needed to add / remove classes.\n * @param {string} oldClass\n * - Css class names which are needed to remove. If old classes are need to remove, can give this optional parameter.\n */\n function setCssClass(cssClass, elements, oldClass) {\n if (!isNullOrUndefined(oldClass) && oldClass !== '') {\n removeClass(elements, oldClass.split(' '));\n }\n if (!isNullOrUndefined(cssClass) && cssClass !== '') {\n addClass(elements, cssClass.split(' '));\n }\n }\n Input.setCssClass = setCssClass;\n /**\n * Set the width to the placeholder when it overflows on the button such as spinbutton, clearbutton, icon etc\n * ```\n * E.g : Input.calculateWidth(element, container);\n * ```\n *\n * @param {any} element - Input element which is need to add.\n * @param {HTMLElement} container - The parent element which is need to get the label span to calculate width\n */\n function calculateWidth(element, container, moduleName) {\n if (moduleName !== 'multiselect' && !_isElementVisible(element)) {\n return;\n }\n var elementWidth = moduleName === 'multiselect' ? element : element.clientWidth - parseInt(getComputedStyle(element, null).getPropertyValue('padding-left'), 10);\n if (!isNullOrUndefined(container) && !isNullOrUndefined(container.getElementsByClassName('e-float-text-content')[0])) {\n if (container.getElementsByClassName('e-float-text-content')[0].classList.contains('e-float-text-overflow')) {\n container.getElementsByClassName('e-float-text-content')[0].classList.remove('e-float-text-overflow');\n }\n if (elementWidth < container.getElementsByClassName('e-float-text-content')[0].clientWidth || elementWidth === container.getElementsByClassName('e-float-text-content')[0].clientWidth) {\n container.getElementsByClassName('e-float-text-content')[0].classList.add('e-float-text-overflow');\n }\n }\n }\n Input.calculateWidth = calculateWidth;\n /**\n * Set the width to the wrapper of input element.\n * ```\n * E.g : Input.setWidth('200px', container);\n * ```\n *\n * @param {number | string} width - Width value which is need to add.\n * @param {HTMLElement} container - The element on which the width is need to add.\n */\n function setWidth(width, container) {\n if (typeof width === 'number') {\n container.style.width = formatUnit(width);\n } else if (typeof width === 'string') {\n container.style.width = width.match(/px|%|em/) ? width : formatUnit(width);\n }\n calculateWidth(container.firstChild, container);\n }\n Input.setWidth = setWidth;\n /**\n * Set the placeholder attribute to the input element.\n * ```\n * E.g : Input.setPlaceholder('Search here', element);\n * ```\n *\n * @param {string} placeholder - Placeholder value which is need to add.\n * @param {HTMLInputElement | HTMLTextAreaElement} element - The element on which the placeholder is need to add.\n */\n function setPlaceholder(placeholder, element) {\n placeholder = encodePlaceHolder(placeholder);\n var parentElement = getParentNode(element);\n if (parentElement.classList.contains(CLASSNAMES.FLOATINPUT)) {\n if (!isNullOrUndefined(placeholder) && placeholder !== '') {\n var floatTextContent = parentElement.getElementsByClassName('e-float-text-content')[0];\n if (floatTextContent && floatTextContent.children[0]) {\n floatTextContent.children[0].textContent = placeholder;\n } else {\n parentElement.getElementsByClassName(CLASSNAMES.FLOATTEXT)[0].textContent = placeholder;\n }\n parentElement.classList.remove(CLASSNAMES.NOFLOATLABEL);\n element.removeAttribute('placeholder');\n } else {\n parentElement.classList.add(CLASSNAMES.NOFLOATLABEL);\n var floatTextContent = parentElement.getElementsByClassName('e-float-text-content')[0];\n if (floatTextContent) {\n floatTextContent.children[0].textContent = '';\n } else {\n parentElement.getElementsByClassName(CLASSNAMES.FLOATTEXT)[0].textContent = '';\n }\n }\n } else {\n if (!isNullOrUndefined(placeholder) && placeholder !== '') {\n attributes(element, {\n 'placeholder': placeholder\n });\n } else {\n element.removeAttribute('placeholder');\n }\n }\n }\n Input.setPlaceholder = setPlaceholder;\n /**\n * Set the read only attribute to the input element\n * ```\n * E.g : Input.setReadonly(true, element);\n * ```\n *\n * @param {boolean} isReadonly\n * - Boolean value to specify whether to set read only. Setting \"True\" value enables read only.\n * @param {HTMLInputElement | HTMLTextAreaElement} element\n * - The element which is need to enable read only.\n */\n function setReadonly(isReadonly, element, floatLabelType) {\n if (isReadonly) {\n attributes(element, {\n readonly: ''\n });\n } else {\n element.removeAttribute('readonly');\n }\n if (!isNullOrUndefined(floatLabelType)) {\n validateLabel(element, floatLabelType);\n }\n }\n Input.setReadonly = setReadonly;\n /**\n * Displays the element direction from right to left when its enabled.\n * ```\n * E.g : Input.setEnableRtl(true, [inputObj.container]);\n * ```\n *\n * @param {boolean} isRtl\n * - Boolean value to specify whether to set RTL. Setting \"True\" value enables the RTL mode.\n * @param {Element[] | NodeList} elements\n * - The elements that are needed to enable/disable RTL.\n */\n function setEnableRtl(isRtl, elements) {\n if (isRtl) {\n addClass(elements, CLASSNAMES.RTL);\n } else {\n removeClass(elements, CLASSNAMES.RTL);\n }\n }\n Input.setEnableRtl = setEnableRtl;\n /**\n * Enables or disables the given input element.\n * ```\n * E.g : Input.setEnabled(false, element);\n * ```\n *\n * @param {boolean} isEnable\n * - Boolean value to specify whether to enable or disable.\n * @param {HTMLInputElement | HTMLTextAreaElement} element\n * - Element to be enabled or disabled.\n */\n function setEnabled(isEnable, element, floatLabelType, inputContainer) {\n var disabledAttrs = {\n 'disabled': '',\n 'aria-disabled': 'true'\n };\n var considerWrapper = isNullOrUndefined(inputContainer) ? false : true;\n if (isEnable) {\n element.classList.remove(CLASSNAMES.DISABLE);\n removeAttributes(disabledAttrs, element);\n if (considerWrapper) {\n removeClass([inputContainer], CLASSNAMES.DISABLE);\n }\n } else {\n element.classList.add(CLASSNAMES.DISABLE);\n addAttributes(disabledAttrs, element);\n if (considerWrapper) {\n addClass([inputContainer], CLASSNAMES.DISABLE);\n }\n }\n if (!isNullOrUndefined(floatLabelType)) {\n validateLabel(element, floatLabelType);\n }\n }\n Input.setEnabled = setEnabled;\n function setClearButton(isClear, element, inputObject, initial, internalCreateElement) {\n var makeElement = !isNullOrUndefined(internalCreateElement) ? internalCreateElement : createElement;\n if (isClear) {\n inputObject.clearButton = createClearButton(element, inputObject, initial, makeElement);\n } else {\n remove(inputObject.clearButton);\n inputObject.clearButton = null;\n }\n }\n Input.setClearButton = setClearButton;\n /**\n * Removing the multiple attributes from the given element such as \"disabled\",\"id\" , etc.\n * ```\n * E.g : Input.removeAttributes({ 'disabled': 'disabled', 'aria-disabled': 'true' }, element);\n * ```\n *\n * @param {string} attrs\n * - Array of attributes which are need to removed from the element.\n * @param {HTMLInputElement | HTMLElement} element\n * - Element on which the attributes are needed to be removed.\n */\n function removeAttributes(attrs, element) {\n for (var _i = 0, _a = Object.keys(attrs); _i < _a.length; _i++) {\n var key = _a[_i];\n var parentElement = getParentNode(element);\n if (key === 'disabled') {\n element.classList.remove(CLASSNAMES.DISABLE);\n }\n if (key === 'disabled' && parentElement.classList.contains(CLASSNAMES.INPUTGROUP)) {\n parentElement.classList.remove(CLASSNAMES.DISABLE);\n }\n if (key === 'placeholder' && parentElement.classList.contains(CLASSNAMES.FLOATINPUT)) {\n parentElement.getElementsByClassName(CLASSNAMES.FLOATTEXT)[0].textContent = '';\n } else {\n element.removeAttribute(key);\n }\n }\n }\n Input.removeAttributes = removeAttributes;\n /**\n * Adding the multiple attributes to the given element such as \"disabled\",\"id\" , etc.\n * ```\n * E.g : Input.addAttributes({ 'id': 'inputpopup' }, element);\n * ```\n *\n * @param {string} attrs\n * - Array of attributes which is added to element.\n * @param {HTMLInputElement | HTMLElement} element\n * - Element on which the attributes are needed to be added.\n */\n function addAttributes(attrs, element) {\n for (var _i = 0, _a = Object.keys(attrs); _i < _a.length; _i++) {\n var key = _a[_i];\n var parentElement = getParentNode(element);\n if (key === 'disabled') {\n element.classList.add(CLASSNAMES.DISABLE);\n }\n if (key === 'disabled' && parentElement.classList.contains(CLASSNAMES.INPUTGROUP)) {\n parentElement.classList.add(CLASSNAMES.DISABLE);\n }\n if (key === 'placeholder' && parentElement.classList.contains(CLASSNAMES.FLOATINPUT)) {\n parentElement.getElementsByClassName(CLASSNAMES.FLOATTEXT)[0].textContent = attrs[\"\" + key];\n } else {\n element.setAttribute(key, attrs[\"\" + key]);\n }\n }\n }\n Input.addAttributes = addAttributes;\n function removeFloating(input) {\n var container = input.container;\n if (!isNullOrUndefined(container) && container.classList.contains(CLASSNAMES.FLOATINPUT)) {\n var inputEle = container.querySelector('textarea') ? container.querySelector('textarea') : container.querySelector('input');\n var placeholder = container.querySelector('.' + CLASSNAMES.FLOATTEXT).textContent;\n var clearButton = container.querySelector('.e-clear-icon') !== null;\n detach(container.querySelector('.' + CLASSNAMES.FLOATLINE));\n detach(container.querySelector('.' + CLASSNAMES.FLOATTEXT));\n classList(container, [CLASSNAMES.INPUTGROUP], [CLASSNAMES.FLOATINPUT]);\n unwireFloatingEvents(inputEle);\n attributes(inputEle, {\n 'placeholder': placeholder\n });\n inputEle.classList.add(CLASSNAMES.INPUT);\n if (!clearButton && inputEle.tagName === 'INPUT') {\n inputEle.removeAttribute('required');\n }\n }\n }\n Input.removeFloating = removeFloating;\n function addFloating(input, type, placeholder, internalCreateElement) {\n var makeElement = !isNullOrUndefined(internalCreateElement) ? internalCreateElement : createElement;\n var container = closest(input, '.' + CLASSNAMES.INPUTGROUP);\n floatType = type;\n var customTag = container.tagName;\n customTag = customTag !== 'DIV' && customTag !== 'SPAN' ? customTag : null;\n var args = {\n element: input,\n floatLabelType: type,\n customTag: customTag,\n properties: {\n placeholder: placeholder\n }\n };\n if (type !== 'Never') {\n var iconEle = container.querySelector('.e-clear-icon');\n var inputObj = {\n container: container\n };\n input.classList.remove(CLASSNAMES.INPUT);\n createFloatingInput(args, inputObj, makeElement);\n createSpanElement(inputObj.container, makeElement);\n calculateWidth(args.element, inputObj.container);\n var isPrependIcon = container.classList.contains('e-float-icon-left');\n if (isNullOrUndefined(iconEle)) {\n if (isPrependIcon) {\n var inputWrap = container.querySelector('.e-input-in-wrap');\n iconEle = inputWrap.querySelector('.e-input-group-icon');\n } else {\n iconEle = container.querySelector('.e-input-group-icon');\n }\n }\n if (isNullOrUndefined(iconEle)) {\n if (isPrependIcon) {\n iconEle = container.querySelector('.e-input-group-icon');\n }\n } else {\n var floatLine = container.querySelector('.' + CLASSNAMES.FLOATLINE);\n var floatText = container.querySelector('.' + CLASSNAMES.FLOATTEXT);\n var wrapper = isPrependIcon ? container.querySelector('.e-input-in-wrap') : container;\n wrapper.insertBefore(input, iconEle);\n wrapper.insertBefore(floatLine, iconEle);\n wrapper.insertBefore(floatText, iconEle);\n }\n } else {\n unWireFloatLabelEvents(args);\n }\n checkFloatLabelType(type, input.parentElement);\n }\n Input.addFloating = addFloating;\n /**\n * Create the span inside the label and add the label text into the span textcontent\n * ```\n * E.g : Input.createSpanElement(inputObject, makeElement);\n * ```\n *\n * @param {Element} inputObject\n * - Element which is need to get the label\n * @param {createElementParams} makeElement\n * - Element which is need to create the span\n */\n function createSpanElement(inputObject, makeElement) {\n if (inputObject.classList.contains('e-outline') && inputObject.getElementsByClassName('e-float-text')[0]) {\n var labelSpanElement = makeElement('span', {\n className: CLASSNAMES.FLOATTEXTCONTENT\n });\n labelSpanElement.innerHTML = inputObject.getElementsByClassName('e-float-text')[0].innerHTML;\n inputObject.getElementsByClassName('e-float-text')[0].innerHTML = '';\n inputObject.getElementsByClassName('e-float-text')[0].appendChild(labelSpanElement);\n }\n }\n Input.createSpanElement = createSpanElement;\n /**\n * Enable or Disable the ripple effect on the icons inside the Input. Ripple effect is only applicable for material theme.\n * ```\n * E.g : Input.setRipple(true, [inputObjects]);\n * ```\n *\n * @param {boolean} isRipple\n * - Boolean value to specify whether to enable the ripple effect.\n * @param {InputObject[]} inputObj\n * - Specify the collection of input objects.\n */\n function setRipple(isRipple, inputObj) {\n for (var i = 0; i < inputObj.length; i++) {\n _internalRipple(isRipple, inputObj[parseInt(i.toString(), 10)].container);\n }\n }\n Input.setRipple = setRipple;\n function _internalRipple(isRipple, container, button) {\n var argsButton = [];\n argsButton.push(button);\n var buttons = isNullOrUndefined(button) ? container.querySelectorAll('.e-input-group-icon') : argsButton;\n if (isRipple && buttons.length > 0) {\n for (var index = 0; index < buttons.length; index++) {\n buttons[parseInt(index.toString(), 10)].addEventListener('mousedown', _onMouseDownRipple, false);\n buttons[parseInt(index.toString(), 10)].addEventListener('mouseup', _onMouseUpRipple, false);\n }\n } else if (buttons.length > 0) {\n for (var index = 0; index < buttons.length; index++) {\n buttons[parseInt(index.toString(), 10)].removeEventListener('mousedown', _onMouseDownRipple, this);\n buttons[parseInt(index.toString(), 10)].removeEventListener('mouseup', _onMouseUpRipple, this);\n }\n }\n }\n function _onMouseRipple(container, button) {\n if (!container.classList.contains('e-disabled') && !container.querySelector('input').readOnly) {\n button.classList.add('e-input-btn-ripple');\n }\n }\n function _isElementVisible(element) {\n if (!element) {\n return false;\n }\n // Check if the element or any of its parents are hidden using display: none\n var currentElement = element;\n while (currentElement && currentElement !== document.body) {\n var style = window.getComputedStyle(currentElement);\n if (style.display === 'none') {\n return false;\n }\n currentElement = currentElement.parentElement;\n }\n // If none of the elements have display: none, the element is considered visible\n return true;\n }\n function _onMouseDownRipple() {\n var ele = this;\n var parentEle = this.parentElement;\n while (!parentEle.classList.contains('e-input-group')) {\n parentEle = parentEle.parentElement;\n }\n _onMouseRipple(parentEle, ele);\n }\n function _onMouseUpRipple() {\n var ele = this;\n setTimeout(function () {\n ele.classList.remove('e-input-btn-ripple');\n }, 500);\n }\n function createIconEle(iconClass, makeElement) {\n var button = makeElement('span', {\n className: iconClass\n });\n button.classList.add('e-input-group-icon');\n return button;\n }\n /**\n * Creates a new span element with the given icons added and append it in container element.\n * ```\n * E.g : Input.addIcon('append', 'e-icon-spin', inputObj.container, inputElement);\n * ```\n *\n * @param {string} position - Specify the icon placement on the input.Possible values are append and prepend.\n * @param {string | string[]} icons - Icon classes which are need to add to the span element which is going to created.\n * Span element acts as icon or button element for input.\n * @param {HTMLElement} container - The container on which created span element is going to append.\n * @param {HTMLElement} input - The inputElement on which created span element is going to prepend.\n */\n function addIcon(position, icons, container, input, internalCreate) {\n var result = typeof icons === 'string' ? icons.split(',') : icons;\n if (position.toLowerCase() === 'append') {\n for (var _i = 0, result_1 = result; _i < result_1.length; _i++) {\n var icon = result_1[_i];\n appendSpan(icon, container, internalCreate);\n }\n } else {\n for (var _a = 0, result_2 = result; _a < result_2.length; _a++) {\n var icon = result_2[_a];\n prependSpan(icon, container, input, internalCreate);\n }\n }\n if (container.getElementsByClassName('e-input-group-icon')[0] && container.getElementsByClassName('e-float-text-overflow')[0]) {\n container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');\n }\n }\n Input.addIcon = addIcon;\n /**\n * Creates a new span element with the given icons added and prepend it in input element.\n * ```\n * E.g : Input.prependSpan('e-icon-spin', inputObj.container, inputElement);\n * ```\n *\n * @param {string} iconClass - Icon classes which are need to add to the span element which is going to created.\n * Span element acts as icon or button element for input.\n * @param {HTMLElement} container - The container on which created span element is going to append.\n * @param {HTMLElement} inputElement - The inputElement on which created span element is going to prepend.\n */\n function prependSpan(iconClass, container, inputElement, internalCreateElement) {\n var makeElement = !isNullOrUndefined(internalCreateElement) ? internalCreateElement : createElement;\n var button = createIconEle(iconClass, makeElement);\n container.classList.add('e-float-icon-left');\n var innerWrapper = container.querySelector('.e-input-in-wrap');\n if (isNullOrUndefined(innerWrapper)) {\n innerWrapper = makeElement('span', {\n className: 'e-input-in-wrap'\n });\n inputElement.parentNode.insertBefore(innerWrapper, inputElement);\n var result = container.querySelectorAll(inputElement.tagName + ' ~ *');\n innerWrapper.appendChild(inputElement);\n for (var i = 0; i < result.length; i++) {\n var element = result[parseInt(i.toString(), 10)];\n var parentElement = innerWrapper.parentElement;\n if (!element.classList.contains('e-float-line') || !(parentElement && parentElement.classList.contains('e-filled')) && parentElement) {\n innerWrapper.appendChild(element);\n }\n }\n }\n innerWrapper.parentNode.insertBefore(button, innerWrapper);\n _internalRipple(true, container, button);\n return button;\n }\n Input.prependSpan = prependSpan;\n /**\n * Creates a new span element with the given icons added and append it in container element.\n * ```\n * E.g : Input.appendSpan('e-icon-spin', inputObj.container);\n * ```\n *\n * @param {string} iconClass - Icon classes which are need to add to the span element which is going to created.\n * Span element acts as icon or button element for input.\n * @param {HTMLElement} container - The container on which created span element is going to append.\n */\n function appendSpan(iconClass, container, internalCreateElement) {\n var makeElement = !isNullOrUndefined(internalCreateElement) ? internalCreateElement : createElement;\n var button = createIconEle(iconClass, makeElement);\n var wrap = container.classList.contains('e-float-icon-left') ? container.querySelector('.e-input-in-wrap') : container;\n wrap.appendChild(button);\n _internalRipple(true, container, button);\n return button;\n }\n Input.appendSpan = appendSpan;\n function validateInputType(containerElement, input) {\n if (input.type === 'hidden') {\n containerElement.classList.add('e-hidden');\n } else if (containerElement.classList.contains('e-hidden')) {\n containerElement.classList.remove('e-hidden');\n }\n }\n Input.validateInputType = validateInputType;\n function updateHTMLAttributesToElement(htmlAttributes, element) {\n if (!isNullOrUndefined(htmlAttributes)) {\n for (var _i = 0, _a = Object.keys(htmlAttributes); _i < _a.length; _i++) {\n var key = _a[_i];\n if (containerAttributes.indexOf(key) < 0) {\n element.setAttribute(key, htmlAttributes[\"\" + key]);\n }\n }\n }\n }\n Input.updateHTMLAttributesToElement = updateHTMLAttributesToElement;\n function updateCssClass(newClass, oldClass, container) {\n setCssClass(getInputValidClassList(newClass), [container], getInputValidClassList(oldClass));\n }\n Input.updateCssClass = updateCssClass;\n function getInputValidClassList(inputClassName) {\n var result = inputClassName;\n if (!isNullOrUndefined(inputClassName) && inputClassName !== '') {\n result = inputClassName.replace(/\\s+/g, ' ').trim();\n }\n return result;\n }\n Input.getInputValidClassList = getInputValidClassList;\n function updateHTMLAttributesToWrapper(htmlAttributes, container) {\n if (!isNullOrUndefined(htmlAttributes)) {\n for (var _i = 0, _a = Object.keys(htmlAttributes); _i < _a.length; _i++) {\n var key = _a[_i];\n if (containerAttributes.indexOf(key) > -1) {\n if (key === 'class') {\n var updatedClassValues = this.getInputValidClassList(htmlAttributes[\"\" + key]);\n if (updatedClassValues !== '') {\n addClass([container], updatedClassValues.split(' '));\n }\n } else if (key === 'style') {\n var setStyle = container.getAttribute(key);\n setStyle = !isNullOrUndefined(setStyle) ? setStyle + htmlAttributes[\"\" + key] : htmlAttributes[\"\" + key];\n container.setAttribute(key, setStyle);\n } else {\n container.setAttribute(key, htmlAttributes[\"\" + key]);\n }\n }\n }\n }\n }\n Input.updateHTMLAttributesToWrapper = updateHTMLAttributesToWrapper;\n function isBlank(inputString) {\n return !inputString || /^\\s*$/.test(inputString);\n }\n Input.isBlank = isBlank;\n})(Input || (Input = {}));\n/* eslint-enable valid-jsdoc, jsdoc/require-jsdoc, jsdoc/require-returns, jsdoc/require-param */\n\nvar __extends = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 ROOT = 'e-control-wrapper e-numeric';\nvar SPINICON = 'e-input-group-icon';\nvar SPINUP = 'e-spin-up';\nvar SPINDOWN = 'e-spin-down';\nvar ERROR = 'e-error';\nvar INCREMENT = 'increment';\nvar DECREMENT = 'decrement';\nvar INTREGEXP = new RegExp('^(-)?(\\\\d*)$');\nvar DECIMALSEPARATOR = '.';\nvar COMPONENT = 'e-numerictextbox';\nvar CONTROL = 'e-control';\nvar NUMERIC_FOCUS = 'e-input-focus';\nvar HIDDENELEMENT = 'e-numeric-hidden';\nvar wrapperAttributes = ['title', 'style', 'class'];\nvar selectionTimeOut = 0;\n/**\n * Represents the NumericTextBox component that allows the user to enter only numeric values.\n * ```html\n * \n * ```\n * ```typescript\n * \n * ```\n */\nvar NumericTextBox = /** @__PURE__ @class */function (_super) {\n __extends(NumericTextBox, _super);\n /**\n *\n * @param {NumericTextBoxModel} options - Specifies the NumericTextBox model.\n * @param {string | HTMLInputElement} element - Specifies the element to render as component.\n * @private\n */\n function NumericTextBox(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.preventChange = false;\n _this.isDynamicChange = false;\n _this.numericOptions = options;\n return _this;\n }\n NumericTextBox.prototype.preRender = function () {\n this.isPrevFocused = false;\n this.decimalSeparator = '.';\n // eslint-disable-next-line no-useless-escape\n this.intRegExp = new RegExp('/^(-)?(\\d*)$/');\n this.isCalled = false;\n var ejInstance = getValue('ej2_instances', this.element);\n this.cloneElement = this.element.cloneNode(true);\n removeClass([this.cloneElement], [CONTROL, COMPONENT, 'e-lib']);\n this.angularTagName = null;\n this.formEle = closest(this.element, 'form');\n if (this.element.tagName === 'EJS-NUMERICTEXTBOX') {\n this.angularTagName = this.element.tagName;\n var input = this.createElement('input');\n var index = 0;\n for (index; index < this.element.attributes.length; index++) {\n var attributeName = this.element.attributes[index].nodeName;\n if (attributeName !== 'id' && attributeName !== 'class') {\n input.setAttribute(this.element.attributes[index].nodeName, this.element.attributes[index].nodeValue);\n input.innerHTML = this.element.innerHTML;\n } else if (attributeName === 'class') {\n input.setAttribute(attributeName, this.element.className.split(' ').filter(function (item) {\n return item.indexOf('ng-') !== 0;\n }).join(' '));\n }\n }\n if (this.element.hasAttribute('name')) {\n this.element.removeAttribute('name');\n }\n this.element.classList.remove('e-control', 'e-numerictextbox');\n this.element.appendChild(input);\n this.element = input;\n setValue('ej2_instances', ejInstance, this.element);\n }\n attributes(this.element, {\n 'role': 'spinbutton',\n 'tabindex': '0',\n 'autocomplete': 'off'\n });\n var localeText = {\n incrementTitle: 'Increment value',\n decrementTitle: 'Decrement value',\n placeholder: this.placeholder\n };\n this.l10n = new L10n('numerictextbox', localeText, this.locale);\n if (this.l10n.getConstant('placeholder') !== '') {\n this.setProperties({\n placeholder: this.placeholder || this.l10n.getConstant('placeholder')\n }, true);\n }\n if (!this.element.hasAttribute('id')) {\n this.element.setAttribute('id', getUniqueID('numerictextbox'));\n }\n this.isValidState = true;\n this.inputStyle = null;\n this.inputName = null;\n this.cultureInfo = {};\n this.initCultureInfo();\n this.initCultureFunc();\n this.prevValue = this.value;\n this.updateHTMLAttrToElement();\n this.checkAttributes(false);\n if (this.formEle) {\n this.inputEleValue = this.value;\n }\n this.validateMinMax();\n this.validateStep();\n if (this.placeholder === null) {\n this.updatePlaceholder();\n }\n };\n /**\n * To Initialize the control rendering\n *\n * @returns {void}\n * @private\n */\n NumericTextBox.prototype.render = function () {\n if (this.element.tagName.toLowerCase() === 'input') {\n this.createWrapper();\n if (this.showSpinButton) {\n this.spinBtnCreation();\n }\n this.setElementWidth(this.width);\n if (!this.container.classList.contains('e-input-group')) {\n this.container.classList.add('e-input-group');\n }\n this.changeValue(this.value === null || isNaN(this.value) ? null : this.strictMode ? this.trimValue(this.value) : this.value);\n this.wireEvents();\n if (this.value !== null && !isNaN(this.value)) {\n if (this.decimals) {\n this.setProperties({\n value: this.roundNumber(this.value, this.decimals)\n }, true);\n }\n }\n if (this.element.getAttribute('value') || this.value) {\n this.element.setAttribute('value', this.element.value);\n this.hiddenInput.setAttribute('value', this.hiddenInput.value);\n }\n this.elementPrevValue = this.element.value;\n if (this.element.hasAttribute('data-val')) {\n this.element.setAttribute('data-val', 'false');\n }\n if (!this.element.hasAttribute('aria-labelledby') && !this.element.hasAttribute('placeholder') && !this.element.hasAttribute('aria-label')) {\n this.element.setAttribute('aria-label', 'numerictextbox');\n }\n if (!isNullOrUndefined(closest(this.element, 'fieldset')) && closest(this.element, 'fieldset').disabled) {\n this.enabled = false;\n }\n this.renderComplete();\n }\n };\n NumericTextBox.prototype.checkAttributes = function (isDynamic) {\n var attributes = isDynamic ? isNullOrUndefined(this.htmlAttributes) ? [] : Object.keys(this.htmlAttributes) : ['value', 'min', 'max', 'step', 'disabled', 'readonly', 'style', 'name', 'placeholder'];\n for (var _i = 0, attributes_1 = attributes; _i < attributes_1.length; _i++) {\n var prop = attributes_1[_i];\n if (!isNullOrUndefined(this.element.getAttribute(prop))) {\n switch (prop) {\n case 'disabled':\n if (isNullOrUndefined(this.numericOptions) || this.numericOptions['enabled'] === undefined || isDynamic) {\n var enabled = this.element.getAttribute(prop) === 'disabled' || this.element.getAttribute(prop) === '' || this.element.getAttribute(prop) === 'true' ? false : true;\n this.setProperties({\n enabled: enabled\n }, !isDynamic);\n }\n break;\n case 'readonly':\n if (isNullOrUndefined(this.numericOptions) || this.numericOptions['readonly'] === undefined || isDynamic) {\n var readonly = this.element.getAttribute(prop) === 'readonly' || this.element.getAttribute(prop) === '' || this.element.getAttribute(prop) === 'true' ? true : false;\n this.setProperties({\n readonly: readonly\n }, !isDynamic);\n }\n break;\n case 'placeholder':\n if (isNullOrUndefined(this.numericOptions) || this.numericOptions['placeholder'] === undefined || isDynamic) {\n this.setProperties({\n placeholder: this.element.placeholder\n }, !isDynamic);\n }\n break;\n case 'value':\n if (isNullOrUndefined(this.numericOptions) || this.numericOptions['value'] === undefined || isDynamic) {\n var setNumber = this.instance.getNumberParser({\n format: 'n'\n })(this.element.getAttribute(prop));\n this.setProperties(setValue(prop, setNumber, {}), !isDynamic);\n }\n break;\n case 'min':\n if (isNullOrUndefined(this.numericOptions) || this.numericOptions['min'] === undefined || isDynamic) {\n var minValue = this.instance.getNumberParser({\n format: 'n'\n })(this.element.getAttribute(prop));\n if (minValue !== null && !isNaN(minValue)) {\n this.setProperties(setValue(prop, minValue, {}), !isDynamic);\n }\n }\n break;\n case 'max':\n if (isNullOrUndefined(this.numericOptions) || this.numericOptions['max'] === undefined || isDynamic) {\n var maxValue = this.instance.getNumberParser({\n format: 'n'\n })(this.element.getAttribute(prop));\n if (maxValue !== null && !isNaN(maxValue)) {\n this.setProperties(setValue(prop, maxValue, {}), !isDynamic);\n }\n }\n break;\n case 'step':\n if (isNullOrUndefined(this.numericOptions) || this.numericOptions['step'] === undefined || isDynamic) {\n var stepValue = this.instance.getNumberParser({\n format: 'n'\n })(this.element.getAttribute(prop));\n if (stepValue !== null && !isNaN(stepValue)) {\n this.setProperties(setValue(prop, stepValue, {}), !isDynamic);\n }\n }\n break;\n case 'style':\n this.inputStyle = this.element.getAttribute(prop);\n break;\n case 'name':\n this.inputName = this.element.getAttribute(prop);\n break;\n default:\n {\n var value = this.instance.getNumberParser({\n format: 'n'\n })(this.element.getAttribute(prop));\n if (value !== null && !isNaN(value) || prop === 'value') {\n this.setProperties(setValue(prop, value, {}), true);\n }\n }\n break;\n }\n }\n }\n };\n NumericTextBox.prototype.updatePlaceholder = function () {\n this.setProperties({\n placeholder: this.l10n.getConstant('placeholder')\n }, true);\n };\n NumericTextBox.prototype.initCultureFunc = function () {\n this.instance = new Internationalization(this.locale);\n };\n NumericTextBox.prototype.initCultureInfo = function () {\n this.cultureInfo.format = this.format;\n if (getValue('currency', this) !== null) {\n setValue('currency', this.currency, this.cultureInfo);\n this.setProperties({\n currencyCode: this.currency\n }, true);\n }\n };\n /* Wrapper creation */\n NumericTextBox.prototype.createWrapper = function () {\n var updatedCssClassValue = this.cssClass;\n if (!isNullOrUndefined(this.cssClass) && this.cssClass !== '') {\n updatedCssClassValue = this.getNumericValidClassList(this.cssClass);\n }\n var inputObj = Input.createInput({\n element: this.element,\n floatLabelType: this.floatLabelType,\n properties: {\n readonly: this.readonly,\n placeholder: this.placeholder,\n cssClass: updatedCssClassValue,\n enableRtl: this.enableRtl,\n showClearButton: this.showClearButton,\n enabled: this.enabled\n }\n }, this.createElement);\n this.inputWrapper = inputObj;\n this.container = inputObj.container;\n this.container.setAttribute('class', ROOT + ' ' + this.container.getAttribute('class'));\n this.updateHTMLAttrToWrapper();\n if (this.readonly) {\n attributes(this.element, {\n 'aria-readonly': 'true'\n });\n }\n this.hiddenInput = this.createElement('input', {\n attrs: {\n type: 'text',\n 'validateHidden': 'true',\n 'aria-label': 'hidden',\n 'class': HIDDENELEMENT\n }\n });\n this.inputName = this.inputName !== null ? this.inputName : this.element.id;\n this.element.removeAttribute('name');\n if (this.isAngular && this.angularTagName === 'EJS-NUMERICTEXTBOX' && this.cloneElement.id.length > 0) {\n attributes(this.hiddenInput, {\n 'name': this.cloneElement.id\n });\n } else {\n attributes(this.hiddenInput, {\n 'name': this.inputName\n });\n }\n this.container.insertBefore(this.hiddenInput, this.container.childNodes[1]);\n this.updateDataAttribute(false);\n if (this.inputStyle !== null) {\n attributes(this.container, {\n 'style': this.inputStyle\n });\n }\n };\n NumericTextBox.prototype.updateDataAttribute = function (isDynamic) {\n var attr = {};\n if (!isDynamic) {\n for (var a = 0; a < this.element.attributes.length; a++) {\n attr[this.element.attributes[a].name] = this.element.getAttribute(this.element.attributes[a].name);\n }\n } else {\n attr = this.htmlAttributes;\n }\n for (var _i = 0, _a = Object.keys(attr); _i < _a.length; _i++) {\n var key = _a[_i];\n if (key.indexOf('data') === 0) {\n this.hiddenInput.setAttribute(key, attr[\"\" + key]);\n }\n }\n };\n NumericTextBox.prototype.updateHTMLAttrToElement = function () {\n if (!isNullOrUndefined(this.htmlAttributes)) {\n for (var _i = 0, _a = Object.keys(this.htmlAttributes); _i < _a.length; _i++) {\n var pro = _a[_i];\n if (wrapperAttributes.indexOf(pro) < 0) {\n this.element.setAttribute(pro, this.htmlAttributes[\"\" + pro]);\n }\n }\n }\n };\n NumericTextBox.prototype.updateCssClass = function (newClass, oldClass) {\n Input.setCssClass(this.getNumericValidClassList(newClass), [this.container], this.getNumericValidClassList(oldClass));\n };\n NumericTextBox.prototype.getNumericValidClassList = function (numericClassName) {\n var result = numericClassName;\n if (!isNullOrUndefined(numericClassName) && numericClassName !== '') {\n result = numericClassName.replace(/\\s+/g, ' ').trim();\n }\n return result;\n };\n NumericTextBox.prototype.updateHTMLAttrToWrapper = function () {\n if (!isNullOrUndefined(this.htmlAttributes)) {\n for (var _i = 0, _a = Object.keys(this.htmlAttributes); _i < _a.length; _i++) {\n var pro = _a[_i];\n if (wrapperAttributes.indexOf(pro) > -1) {\n if (pro === 'class') {\n var updatedClassValue = this.getNumericValidClassList(this.htmlAttributes[\"\" + pro]);\n if (updatedClassValue !== '') {\n addClass([this.container], updatedClassValue.split(' '));\n }\n } else if (pro === 'style') {\n var numericStyle = this.container.getAttribute(pro);\n numericStyle = !isNullOrUndefined(numericStyle) ? numericStyle + this.htmlAttributes[\"\" + pro] : this.htmlAttributes[\"\" + pro];\n this.container.setAttribute(pro, numericStyle);\n } else {\n this.container.setAttribute(pro, this.htmlAttributes[\"\" + pro]);\n }\n }\n }\n }\n };\n NumericTextBox.prototype.setElementWidth = function (width) {\n if (!isNullOrUndefined(width)) {\n if (typeof width === 'number') {\n this.container.style.width = formatUnit(width);\n } else if (typeof width === 'string') {\n this.container.style.width = width.match(/px|%|em/) ? width : formatUnit(width);\n }\n }\n };\n /* Spinner creation */\n NumericTextBox.prototype.spinBtnCreation = function () {\n this.spinDown = Input.appendSpan(SPINICON + ' ' + SPINDOWN, this.container, this.createElement);\n attributes(this.spinDown, {\n 'title': this.l10n.getConstant('decrementTitle')\n });\n this.spinUp = Input.appendSpan(SPINICON + ' ' + SPINUP, this.container, this.createElement);\n attributes(this.spinUp, {\n 'title': this.l10n.getConstant('incrementTitle')\n });\n this.wireSpinBtnEvents();\n };\n NumericTextBox.prototype.validateMinMax = function () {\n if (!(typeof this.min === 'number' && !isNaN(this.min))) {\n this.setProperties({\n min: -Number.MAX_VALUE\n }, true);\n }\n if (!(typeof this.max === 'number' && !isNaN(this.max))) {\n this.setProperties({\n max: Number.MAX_VALUE\n }, true);\n }\n if (this.decimals !== null) {\n if (this.min !== -Number.MAX_VALUE) {\n this.setProperties({\n min: this.instance.getNumberParser({\n format: 'n'\n })(this.formattedValue(this.decimals, this.min))\n }, true);\n }\n if (this.max !== Number.MAX_VALUE) {\n this.setProperties({\n max: this.instance.getNumberParser({\n format: 'n'\n })(this.formattedValue(this.decimals, this.max))\n }, true);\n }\n }\n this.setProperties({\n min: this.min > this.max ? this.max : this.min\n }, true);\n if (this.min !== -Number.MAX_VALUE) {\n attributes(this.element, {\n 'aria-valuemin': this.min.toString()\n });\n }\n if (this.max !== Number.MAX_VALUE) {\n attributes(this.element, {\n 'aria-valuemax': this.max.toString()\n });\n }\n };\n NumericTextBox.prototype.formattedValue = function (decimals, value) {\n return this.instance.getNumberFormat({\n maximumFractionDigits: decimals,\n minimumFractionDigits: decimals,\n useGrouping: false\n })(value);\n };\n NumericTextBox.prototype.validateStep = function () {\n if (this.decimals !== null) {\n this.setProperties({\n step: this.instance.getNumberParser({\n format: 'n'\n })(this.formattedValue(this.decimals, this.step))\n }, true);\n }\n };\n NumericTextBox.prototype.action = function (operation, event) {\n this.isInteract = true;\n var value = this.isFocused ? this.instance.getNumberParser({\n format: 'n'\n })(this.element.value) : this.value;\n this.changeValue(this.performAction(value, this.step, operation));\n this.raiseChangeEvent(event);\n };\n NumericTextBox.prototype.checkErrorClass = function () {\n if (this.isValidState) {\n removeClass([this.container], ERROR);\n } else {\n addClass([this.container], ERROR);\n }\n attributes(this.element, {\n 'aria-invalid': this.isValidState ? 'false' : 'true'\n });\n };\n NumericTextBox.prototype.bindClearEvent = function () {\n if (this.showClearButton) {\n EventHandler.add(this.inputWrapper.clearButton, 'mousedown touchstart', this.resetHandler, this);\n }\n };\n NumericTextBox.prototype.resetHandler = function (e) {\n e.preventDefault();\n if (!this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide') || this.inputWrapper.container.classList.contains('e-static-clear')) {\n this.clear(e);\n }\n this.isInteract = true;\n this.raiseChangeEvent(e);\n };\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n NumericTextBox.prototype.clear = function (event) {\n this.setProperties({\n value: null\n }, true);\n this.setElementValue('');\n this.hiddenInput.value = '';\n var formElement = closest(this.element, 'form');\n if (formElement) {\n var element = this.element.nextElementSibling;\n var keyupEvent = document.createEvent('KeyboardEvent');\n keyupEvent.initEvent('keyup', false, true);\n element.dispatchEvent(keyupEvent);\n }\n };\n NumericTextBox.prototype.resetFormHandler = function () {\n if (this.element.tagName === 'EJS-NUMERICTEXTBOX') {\n this.updateValue(null);\n } else {\n this.updateValue(this.inputEleValue);\n }\n };\n NumericTextBox.prototype.setSpinButton = function () {\n if (!isNullOrUndefined(this.spinDown)) {\n attributes(this.spinDown, {\n 'title': this.l10n.getConstant('decrementTitle'),\n 'aria-label': this.l10n.getConstant('decrementTitle')\n });\n }\n if (!isNullOrUndefined(this.spinUp)) {\n attributes(this.spinUp, {\n 'title': this.l10n.getConstant('incrementTitle'),\n 'aria-label': this.l10n.getConstant('incrementTitle')\n });\n }\n };\n NumericTextBox.prototype.wireEvents = function () {\n EventHandler.add(this.element, 'focus', this.focusHandler, this);\n EventHandler.add(this.element, 'blur', this.focusOutHandler, this);\n EventHandler.add(this.element, 'keydown', this.keyDownHandler, this);\n EventHandler.add(this.element, 'keyup', this.keyUpHandler, this);\n EventHandler.add(this.element, 'input', this.inputHandler, this);\n EventHandler.add(this.element, 'keypress', this.keyPressHandler, this);\n EventHandler.add(this.element, 'change', this.changeHandler, this);\n EventHandler.add(this.element, 'paste', this.pasteHandler, this);\n if (this.enabled) {\n this.bindClearEvent();\n if (this.formEle) {\n EventHandler.add(this.formEle, 'reset', this.resetFormHandler, this);\n }\n }\n };\n NumericTextBox.prototype.wireSpinBtnEvents = function () {\n /* bind spin button events */\n EventHandler.add(this.spinUp, Browser.touchStartEvent, this.mouseDownOnSpinner, this);\n EventHandler.add(this.spinDown, Browser.touchStartEvent, this.mouseDownOnSpinner, this);\n EventHandler.add(this.spinUp, Browser.touchEndEvent, this.mouseUpOnSpinner, this);\n EventHandler.add(this.spinDown, Browser.touchEndEvent, this.mouseUpOnSpinner, this);\n EventHandler.add(this.spinUp, Browser.touchMoveEvent, this.touchMoveOnSpinner, this);\n EventHandler.add(this.spinDown, Browser.touchMoveEvent, this.touchMoveOnSpinner, this);\n };\n NumericTextBox.prototype.unwireEvents = function () {\n EventHandler.remove(this.element, 'focus', this.focusHandler);\n EventHandler.remove(this.element, 'blur', this.focusOutHandler);\n EventHandler.remove(this.element, 'keyup', this.keyUpHandler);\n EventHandler.remove(this.element, 'input', this.inputHandler);\n EventHandler.remove(this.element, 'keydown', this.keyDownHandler);\n EventHandler.remove(this.element, 'keypress', this.keyPressHandler);\n EventHandler.remove(this.element, 'change', this.changeHandler);\n EventHandler.remove(this.element, 'paste', this.pasteHandler);\n if (this.formEle) {\n EventHandler.remove(this.formEle, 'reset', this.resetFormHandler);\n }\n };\n NumericTextBox.prototype.unwireSpinBtnEvents = function () {\n /* unbind spin button events */\n EventHandler.remove(this.spinUp, Browser.touchStartEvent, this.mouseDownOnSpinner);\n EventHandler.remove(this.spinDown, Browser.touchStartEvent, this.mouseDownOnSpinner);\n EventHandler.remove(this.spinUp, Browser.touchEndEvent, this.mouseUpOnSpinner);\n EventHandler.remove(this.spinDown, Browser.touchEndEvent, this.mouseUpOnSpinner);\n EventHandler.remove(this.spinUp, Browser.touchMoveEvent, this.touchMoveOnSpinner);\n EventHandler.remove(this.spinDown, Browser.touchMoveEvent, this.touchMoveOnSpinner);\n };\n NumericTextBox.prototype.changeHandler = function (event) {\n event.stopPropagation();\n if (!this.element.value.length) {\n this.setProperties({\n value: null\n }, true);\n }\n var parsedInput = this.instance.getNumberParser({\n format: 'n'\n })(this.element.value);\n this.updateValue(parsedInput, event);\n };\n NumericTextBox.prototype.raiseChangeEvent = function (event) {\n this.inputValue = isNullOrUndefined(this.inputValue) || isNaN(this.inputValue) ? null : this.inputValue;\n if (this.prevValue !== this.value || this.prevValue !== this.inputValue) {\n var eventArgs = {};\n this.changeEventArgs = {\n value: this.value,\n previousValue: this.prevValue,\n isInteracted: this.isInteract,\n isInteraction: this.isInteract,\n event: event\n };\n if (event) {\n this.changeEventArgs.event = event;\n }\n if (this.changeEventArgs.event === undefined) {\n this.changeEventArgs.isInteracted = false;\n this.changeEventArgs.isInteraction = false;\n }\n merge(eventArgs, this.changeEventArgs);\n this.prevValue = this.value;\n this.isInteract = false;\n this.elementPrevValue = this.element.value;\n this.preventChange = false;\n this.trigger('change', eventArgs);\n }\n };\n NumericTextBox.prototype.pasteHandler = function () {\n var _this = this;\n if (!this.enabled || this.readonly) {\n return;\n }\n var beforeUpdate = this.element.value;\n setTimeout(function () {\n if (!_this.numericRegex().test(_this.element.value)) {\n _this.setElementValue(beforeUpdate);\n }\n });\n };\n NumericTextBox.prototype.preventHandler = function () {\n var _this = this;\n var iOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);\n setTimeout(function () {\n if (_this.element.selectionStart > 0) {\n var currentPos = _this.element.selectionStart;\n var prevPos = _this.element.selectionStart - 1;\n var start = 0;\n var valArray = _this.element.value.split('');\n var numericObject = getNumericObject(_this.locale);\n var decimalSeparator = getValue('decimal', numericObject);\n var ignoreKeyCode = decimalSeparator.charCodeAt(0);\n if (_this.element.value[prevPos] === ' ' && _this.element.selectionStart > 0 && !iOS) {\n if (isNullOrUndefined(_this.prevVal)) {\n _this.element.value = _this.element.value.trim();\n } else if (prevPos !== 0) {\n _this.element.value = _this.prevVal;\n } else if (prevPos === 0) {\n _this.element.value = _this.element.value.trim();\n }\n _this.element.setSelectionRange(prevPos, prevPos);\n } else if (isNaN(parseFloat(_this.element.value[_this.element.selectionStart - 1])) && _this.element.value[_this.element.selectionStart - 1].charCodeAt(0) !== 45) {\n if (valArray.indexOf(_this.element.value[_this.element.selectionStart - 1]) !== valArray.lastIndexOf(_this.element.value[_this.element.selectionStart - 1]) && _this.element.value[_this.element.selectionStart - 1].charCodeAt(0) === ignoreKeyCode || _this.element.value[_this.element.selectionStart - 1].charCodeAt(0) !== ignoreKeyCode) {\n _this.element.value = _this.element.value.substring(0, prevPos) + _this.element.value.substring(currentPos, _this.element.value.length);\n _this.element.setSelectionRange(prevPos, prevPos);\n if (isNaN(parseFloat(_this.element.value[_this.element.selectionStart - 1])) && _this.element.selectionStart > 0 && _this.element.value.length) {\n _this.preventHandler();\n }\n }\n } else if (isNaN(parseFloat(_this.element.value[_this.element.selectionStart - 2])) && _this.element.selectionStart > 1 && _this.element.value[_this.element.selectionStart - 2].charCodeAt(0) !== 45) {\n if (valArray.indexOf(_this.element.value[_this.element.selectionStart - 2]) !== valArray.lastIndexOf(_this.element.value[_this.element.selectionStart - 2]) && _this.element.value[_this.element.selectionStart - 2].charCodeAt(0) === ignoreKeyCode || _this.element.value[_this.element.selectionStart - 2].charCodeAt(0) !== ignoreKeyCode) {\n _this.element.setSelectionRange(prevPos, prevPos);\n _this.nextEle = _this.element.value[_this.element.selectionStart];\n _this.cursorPosChanged = true;\n _this.preventHandler();\n }\n }\n if (_this.cursorPosChanged === true && _this.element.value[_this.element.selectionStart] === _this.nextEle && isNaN(parseFloat(_this.element.value[_this.element.selectionStart - 1]))) {\n _this.element.setSelectionRange(_this.element.selectionStart + 1, _this.element.selectionStart + 1);\n _this.cursorPosChanged = false;\n _this.nextEle = null;\n }\n if (_this.element.value.trim() === '') {\n _this.element.setSelectionRange(start, start);\n }\n if (_this.element.selectionStart > 0) {\n if (_this.element.value[_this.element.selectionStart - 1].charCodeAt(0) === 45 && _this.element.selectionStart > 1) {\n if (!isNullOrUndefined(_this.prevVal)) {\n _this.element.value = _this.prevVal;\n }\n _this.element.setSelectionRange(_this.element.selectionStart, _this.element.selectionStart);\n }\n if (_this.element.value[_this.element.selectionStart - 1] === decimalSeparator && _this.decimals === 0 && _this.validateDecimalOnType) {\n _this.element.value = _this.element.value.substring(0, prevPos) + _this.element.value.substring(currentPos, _this.element.value.length);\n }\n }\n _this.prevVal = _this.element.value;\n }\n });\n };\n NumericTextBox.prototype.keyUpHandler = function () {\n if (!this.enabled || this.readonly) {\n return;\n }\n var iOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);\n if (!iOS && Browser.isDevice) {\n this.preventHandler();\n }\n var parseValue = this.instance.getNumberParser({\n format: 'n'\n })(this.element.value);\n parseValue = parseValue === null || isNaN(parseValue) ? null : parseValue;\n this.hiddenInput.value = parseValue || parseValue === 0 ? parseValue.toString() : null;\n var formElement = closest(this.element, 'form');\n if (formElement) {\n var element = this.element.nextElementSibling;\n var keyupEvent = document.createEvent('KeyboardEvent');\n keyupEvent.initEvent('keyup', false, true);\n element.dispatchEvent(keyupEvent);\n }\n };\n NumericTextBox.prototype.inputHandler = function (event) {\n var numerictextboxObj = this;\n if (!this.enabled || this.readonly) {\n return;\n }\n var iOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);\n var fireFox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;\n if ((fireFox || iOS) && Browser.isDevice) {\n this.preventHandler();\n }\n /* istanbul ignore next */\n if (this.isAngular && this.element.value !== getValue('decimal', getNumericObject(this.locale)) && this.element.value !== getValue('minusSign', getNumericObject(this.locale))) {\n var parsedValue = this.instance.getNumberParser({\n format: 'n'\n })(this.element.value);\n parsedValue = isNaN(parsedValue) ? null : parsedValue;\n numerictextboxObj.localChange({\n value: parsedValue\n });\n this.preventChange = true;\n }\n if (this.isVue) {\n var current = this.instance.getNumberParser({\n format: 'n'\n })(this.element.value);\n var previous = this.instance.getNumberParser({\n format: 'n'\n })(this.elementPrevValue);\n //EJ2-54963-if type \".\" or \".0\" or \"-.0\" it converts to \"0\" automatically when binding v-model\n var nonZeroRegex = new RegExp('[^0-9]+$');\n if (nonZeroRegex.test(this.element.value) || (this.elementPrevValue.indexOf('.') !== -1 || this.elementPrevValue.indexOf('-') !== -1) && this.element.value[this.element.value.length - 1] === '0') {\n current = this.value;\n }\n var eventArgs = {\n event: event,\n value: current === null || isNaN(current) ? null : current,\n previousValue: previous === null || isNaN(previous) ? null : previous\n };\n this.preventChange = true;\n this.elementPrevValue = this.element.value;\n this.trigger('input', eventArgs);\n }\n };\n NumericTextBox.prototype.keyDownHandler = function (event) {\n if (!this.readonly) {\n switch (event.keyCode) {\n case 38:\n event.preventDefault();\n this.action(INCREMENT, event);\n break;\n case 40:\n event.preventDefault();\n this.action(DECREMENT, event);\n break;\n }\n }\n };\n NumericTextBox.prototype.performAction = function (value, step, operation) {\n if (value === null || isNaN(value)) {\n value = 0;\n }\n var updatedValue = operation === INCREMENT ? value + step : value - step;\n updatedValue = this.correctRounding(value, step, updatedValue);\n return this.strictMode ? this.trimValue(updatedValue) : updatedValue;\n };\n NumericTextBox.prototype.correctRounding = function (value, step, result) {\n var floatExp = new RegExp('[,.](.*)');\n var floatValue = floatExp.test(value.toString());\n var floatStep = floatExp.test(step.toString());\n if (floatValue || floatStep) {\n var valueCount = floatValue ? floatExp.exec(value.toString())[0].length : 0;\n var stepCount = floatStep ? floatExp.exec(step.toString())[0].length : 0;\n var max = Math.max(valueCount, stepCount);\n return value = this.roundValue(result, max);\n }\n return result;\n };\n NumericTextBox.prototype.roundValue = function (result, precision) {\n precision = precision || 0;\n var divide = Math.pow(10, precision);\n return result *= divide, result = Math.round(result) / divide;\n };\n NumericTextBox.prototype.updateValue = function (value, event) {\n if (event) {\n this.isInteract = true;\n }\n if (value !== null && !isNaN(value)) {\n if (this.decimals) {\n value = this.roundNumber(value, this.decimals);\n }\n }\n this.inputValue = value;\n this.changeValue(value === null || isNaN(value) ? null : this.strictMode ? this.trimValue(value) : value);\n /* istanbul ignore next */\n if (!this.isDynamicChange) {\n this.raiseChangeEvent(event);\n }\n };\n NumericTextBox.prototype.updateCurrency = function (prop, propVal) {\n setValue(prop, propVal, this.cultureInfo);\n this.updateValue(this.value);\n };\n NumericTextBox.prototype.changeValue = function (value) {\n if (!(value || value === 0)) {\n value = null;\n this.setProperties({\n value: value\n }, true);\n } else {\n var numberOfDecimals = this.getNumberOfDecimals(value);\n this.setProperties({\n value: this.roundNumber(value, numberOfDecimals)\n }, true);\n }\n this.modifyText();\n if (!this.strictMode) {\n this.validateState();\n }\n };\n NumericTextBox.prototype.modifyText = function () {\n if (this.value || this.value === 0) {\n var value = this.formatNumber();\n var elementValue = this.isFocused ? value : this.instance.getNumberFormat(this.cultureInfo)(this.value);\n this.setElementValue(elementValue);\n attributes(this.element, {\n 'aria-valuenow': value\n });\n this.hiddenInput.value = this.value.toString();\n if (this.value !== null && this.serverDecimalSeparator) {\n this.hiddenInput.value = this.hiddenInput.value.replace('.', this.serverDecimalSeparator);\n }\n } else {\n this.setElementValue('');\n this.element.removeAttribute('aria-valuenow');\n this.hiddenInput.value = null;\n }\n };\n NumericTextBox.prototype.setElementValue = function (val, element) {\n Input.setValue(val, element ? element : this.element, this.floatLabelType, this.showClearButton);\n };\n NumericTextBox.prototype.validateState = function () {\n this.isValidState = true;\n if (this.value || this.value === 0) {\n this.isValidState = !(this.value > this.max || this.value < this.min);\n }\n this.checkErrorClass();\n };\n NumericTextBox.prototype.getNumberOfDecimals = function (value) {\n var numberOfDecimals;\n // eslint-disable-next-line no-useless-escape\n var EXPREGEXP = new RegExp('[eE][\\-+]?([0-9]+)');\n var valueString = value.toString();\n if (EXPREGEXP.test(valueString)) {\n var result = EXPREGEXP.exec(valueString);\n if (!isNullOrUndefined(result)) {\n valueString = value.toFixed(Math.min(parseInt(result[1], 10), 20));\n }\n }\n var decimalPart = valueString.split('.')[1];\n numberOfDecimals = !decimalPart || !decimalPart.length ? 0 : decimalPart.length;\n if (this.decimals !== null) {\n numberOfDecimals = numberOfDecimals < this.decimals ? numberOfDecimals : this.decimals;\n }\n return numberOfDecimals;\n };\n NumericTextBox.prototype.formatNumber = function () {\n var numberOfDecimals = this.getNumberOfDecimals(this.value);\n return this.instance.getNumberFormat({\n maximumFractionDigits: numberOfDecimals,\n minimumFractionDigits: numberOfDecimals,\n useGrouping: false\n })(this.value);\n };\n NumericTextBox.prototype.trimValue = function (value) {\n if (value > this.max) {\n return this.max;\n }\n if (value < this.min) {\n return this.min;\n }\n return value;\n };\n NumericTextBox.prototype.roundNumber = function (value, precision) {\n var result = value;\n var decimals = precision || 0;\n var result1 = result.toString().split('e');\n result = Math.round(Number(result1[0] + 'e' + (result1[1] ? Number(result1[1]) + decimals : decimals)));\n var result2 = result.toString().split('e');\n result = Number(result2[0] + 'e' + (result2[1] ? Number(result2[1]) - decimals : -decimals));\n return Number(result.toFixed(decimals));\n };\n NumericTextBox.prototype.cancelEvent = function (event) {\n event.preventDefault();\n return false;\n };\n NumericTextBox.prototype.keyPressHandler = function (event) {\n if (!this.enabled || this.readonly) {\n return true;\n }\n if (!Browser.isDevice && Browser.info.version === '11.0' && event.keyCode === 13) {\n var parsedInput = this.instance.getNumberParser({\n format: 'n'\n })(this.element.value);\n this.updateValue(parsedInput, event);\n return true;\n }\n if (event.which === 0 || event.metaKey || event.ctrlKey || event.keyCode === 8 || event.keyCode === 13) {\n return true;\n }\n var currentChar = String.fromCharCode(event.which);\n var decimalSeparator = getValue('decimal', getNumericObject(this.locale));\n var isAlterNumPadDecimalChar = event.code === 'NumpadDecimal' && currentChar !== decimalSeparator;\n //EJ2-59813-replace the culture decimal separator value with numberpad decimal separator value when culture decimal separator and numberpad decimal separator are different\n if (isAlterNumPadDecimalChar) {\n currentChar = decimalSeparator;\n }\n var text = this.element.value;\n text = text.substring(0, this.element.selectionStart) + currentChar + text.substring(this.element.selectionEnd);\n if (!this.numericRegex().test(text)) {\n event.preventDefault();\n event.stopPropagation();\n return false;\n } else {\n //EJ2-59813-update the numberpad decimal separator and update the cursor position\n if (isAlterNumPadDecimalChar) {\n var start = this.element.selectionStart + 1;\n this.element.value = text;\n this.element.setSelectionRange(start, start);\n event.preventDefault();\n event.stopPropagation();\n }\n return true;\n }\n };\n NumericTextBox.prototype.numericRegex = function () {\n var numericObject = getNumericObject(this.locale);\n var decimalSeparator = getValue('decimal', numericObject);\n var fractionRule = '*';\n if (decimalSeparator === DECIMALSEPARATOR) {\n decimalSeparator = '\\\\' + decimalSeparator;\n }\n if (this.decimals === 0 && this.validateDecimalOnType) {\n return INTREGEXP;\n }\n if (this.decimals && this.validateDecimalOnType) {\n fractionRule = '{0,' + this.decimals + '}';\n }\n /* eslint-disable-next-line security/detect-non-literal-regexp */\n return new RegExp('^(-)?(((\\\\d+(' + decimalSeparator + '\\\\d' + fractionRule + ')?)|(' + decimalSeparator + '\\\\d' + fractionRule + ')))?$');\n };\n NumericTextBox.prototype.mouseWheel = function (event) {\n event.preventDefault();\n var delta;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n var rawEvent = event;\n if (rawEvent.wheelDelta) {\n delta = rawEvent.wheelDelta / 120;\n } else if (rawEvent.detail) {\n delta = -rawEvent.detail / 3;\n }\n if (delta > 0) {\n this.action(INCREMENT, event);\n } else if (delta < 0) {\n this.action(DECREMENT, event);\n }\n this.cancelEvent(event);\n };\n NumericTextBox.prototype.focusHandler = function (event) {\n var _this = this;\n clearTimeout(selectionTimeOut);\n this.focusEventArgs = {\n event: event,\n value: this.value,\n container: this.container\n };\n this.trigger('focus', this.focusEventArgs);\n if (!this.enabled || this.readonly) {\n return;\n }\n this.isFocused = true;\n this.prevValue = this.value;\n if (this.value || this.value === 0) {\n var formatValue_1 = this.formatNumber();\n this.setElementValue(formatValue_1);\n if (!this.isPrevFocused) {\n if (!Browser.isDevice && Browser.info.version === '11.0') {\n this.element.setSelectionRange(0, formatValue_1.length);\n } else {\n var delay = Browser.isDevice && Browser.isIos ? 600 : 0;\n selectionTimeOut = setTimeout(function () {\n _this.element.setSelectionRange(0, formatValue_1.length);\n }, delay);\n }\n }\n }\n if (!Browser.isDevice) {\n EventHandler.add(this.element, 'mousewheel DOMMouseScroll', this.mouseWheel, this);\n }\n };\n NumericTextBox.prototype.focusOutHandler = function (event) {\n var _this = this;\n this.blurEventArgs = {\n event: event,\n value: this.value,\n container: this.container\n };\n this.trigger('blur', this.blurEventArgs);\n if (!this.enabled || this.readonly) {\n return;\n }\n if (this.isPrevFocused) {\n event.preventDefault();\n if (Browser.isDevice) {\n var value_1 = this.element.value;\n this.element.focus();\n this.isPrevFocused = false;\n var ele_1 = this.element;\n setTimeout(function () {\n _this.setElementValue(value_1, ele_1);\n }, 200);\n }\n } else {\n this.isFocused = false;\n if (!this.element.value.length) {\n this.setProperties({\n value: null\n }, true);\n }\n var parsedInput = this.instance.getNumberParser({\n format: 'n'\n })(this.element.value);\n this.updateValue(parsedInput);\n if (!Browser.isDevice) {\n EventHandler.remove(this.element, 'mousewheel DOMMouseScroll', this.mouseWheel);\n }\n }\n var formElement = closest(this.element, 'form');\n if (formElement) {\n var element = this.element.nextElementSibling;\n var focusEvent = document.createEvent('FocusEvent');\n focusEvent.initEvent('focusout', false, true);\n element.dispatchEvent(focusEvent);\n }\n };\n NumericTextBox.prototype.mouseDownOnSpinner = function (event) {\n var _this = this;\n if (this.isFocused) {\n this.isPrevFocused = true;\n event.preventDefault();\n }\n if (!this.getElementData(event)) {\n return;\n }\n this.getElementData(event);\n var target = event.currentTarget;\n var action = target.classList.contains(SPINUP) ? INCREMENT : DECREMENT;\n EventHandler.add(target, 'mouseleave', this.mouseUpClick, this);\n this.timeOut = setInterval(function () {\n _this.isCalled = true;\n _this.action(action, event);\n }, 150);\n EventHandler.add(document, 'mouseup', this.mouseUpClick, this);\n };\n NumericTextBox.prototype.touchMoveOnSpinner = function (event) {\n var target;\n if (event.type === 'touchmove') {\n var touchEvent = event.touches;\n target = touchEvent.length && document.elementFromPoint(touchEvent[0].pageX, touchEvent[0].pageY);\n } else {\n target = document.elementFromPoint(event.clientX, event.clientY);\n }\n if (!target.classList.contains(SPINICON)) {\n clearInterval(this.timeOut);\n }\n };\n NumericTextBox.prototype.mouseUpOnSpinner = function (event) {\n this.prevValue = this.value;\n if (this.isPrevFocused) {\n this.element.focus();\n if (!Browser.isDevice) {\n this.isPrevFocused = false;\n }\n }\n if (!Browser.isDevice) {\n event.preventDefault();\n }\n if (!this.getElementData(event)) {\n return;\n }\n var target = event.currentTarget;\n var action = target.classList.contains(SPINUP) ? INCREMENT : DECREMENT;\n EventHandler.remove(target, 'mouseleave', this.mouseUpClick);\n if (!this.isCalled) {\n this.action(action, event);\n }\n this.isCalled = false;\n EventHandler.remove(document, 'mouseup', this.mouseUpClick);\n var formElement = closest(this.element, 'form');\n if (formElement) {\n var element = this.element.nextElementSibling;\n var keyupEvent = document.createEvent('KeyboardEvent');\n keyupEvent.initEvent('keyup', false, true);\n element.dispatchEvent(keyupEvent);\n }\n };\n NumericTextBox.prototype.getElementData = function (event) {\n if (event.which && event.which === 3 || event.button && event.button === 2 || !this.enabled || this.readonly) {\n return false;\n }\n clearInterval(this.timeOut);\n return true;\n };\n NumericTextBox.prototype.floatLabelTypeUpdate = function () {\n Input.removeFloating(this.inputWrapper);\n var hiddenInput = this.hiddenInput;\n this.hiddenInput.remove();\n Input.addFloating(this.element, this.floatLabelType, this.placeholder, this.createElement);\n this.container.insertBefore(hiddenInput, this.container.childNodes[1]);\n };\n NumericTextBox.prototype.mouseUpClick = function (event) {\n event.stopPropagation();\n clearInterval(this.timeOut);\n this.isCalled = false;\n if (this.spinUp) {\n EventHandler.remove(this.spinUp, 'mouseleave', this.mouseUpClick);\n }\n if (this.spinDown) {\n EventHandler.remove(this.spinDown, 'mouseleave', this.mouseUpClick);\n }\n };\n /**\n * Increments the NumericTextBox value with the specified step value.\n *\n * @param {number} step - Specifies the value used to increment the NumericTextBox value.\n * if its not given then numeric value will be incremented based on the step property value.\n * @returns {void}\n */\n NumericTextBox.prototype.increment = function (step) {\n if (step === void 0) {\n step = this.step;\n }\n this.isInteract = false;\n this.changeValue(this.performAction(this.value, step, INCREMENT));\n this.raiseChangeEvent();\n };\n /**\n * Decrements the NumericTextBox value with specified step value.\n *\n * @param {number} step - Specifies the value used to decrement the NumericTextBox value.\n * if its not given then numeric value will be decremented based on the step property value.\n * @returns {void}\n */\n NumericTextBox.prototype.decrement = function (step) {\n if (step === void 0) {\n step = this.step;\n }\n this.isInteract = false;\n this.changeValue(this.performAction(this.value, step, DECREMENT));\n this.raiseChangeEvent();\n };\n /**\n * Removes the component from the DOM and detaches all its related event handlers.\n * Also it maintains the initial input element from the DOM.\n *\n * @method destroy\n * @returns {void}\n */\n NumericTextBox.prototype.destroy = function () {\n this.unwireEvents();\n if (this.showClearButton) {\n this.clearButton = document.getElementsByClassName('e-clear-icon')[0];\n }\n detach(this.hiddenInput);\n if (this.showSpinButton) {\n this.unwireSpinBtnEvents();\n detach(this.spinUp);\n detach(this.spinDown);\n }\n var attrArray = ['aria-labelledby', 'role', 'autocomplete', 'aria-readonly', 'aria-disabled', 'autocapitalize', 'spellcheck', 'aria-autocomplete', 'tabindex', 'aria-valuemin', 'aria-valuemax', 'aria-valuenow', 'aria-invalid'];\n for (var i = 0; i < attrArray.length; i++) {\n this.element.removeAttribute(attrArray[i]);\n }\n this.element.classList.remove('e-input');\n this.container.insertAdjacentElement('afterend', this.element);\n detach(this.container);\n this.spinUp = null;\n this.spinDown = null;\n this.container = null;\n this.hiddenInput = null;\n this.changeEventArgs = null;\n this.blurEventArgs = null;\n this.focusEventArgs = null;\n this.inputWrapper = null;\n Input.destroy({\n element: this.element,\n floatLabelType: this.floatLabelType,\n properties: this.properties\n }, this.clearButton);\n _super.prototype.destroy.call(this);\n };\n /**\n * Returns the value of NumericTextBox with the format applied to the NumericTextBox.\n *\n * @returns {string} - Returns the formatted value of the NumericTextBox.\n */\n NumericTextBox.prototype.getText = function () {\n return this.element.value;\n };\n /**\n * Sets the focus to widget for interaction.\n *\n * @returns {void}\n */\n NumericTextBox.prototype.focusIn = function () {\n if (document.activeElement !== this.element && this.enabled) {\n this.element.focus();\n addClass([this.container], [NUMERIC_FOCUS]);\n }\n };\n /**\n * Remove the focus from widget, if the widget is in focus state.\n *\n * @returns {void}\n */\n NumericTextBox.prototype.focusOut = function () {\n if (document.activeElement === this.element && this.enabled) {\n this.element.blur();\n removeClass([this.container], [NUMERIC_FOCUS]);\n }\n };\n /**\n * Gets the properties to be maintained in the persisted state.\n *\n * @returns {string} - Returns the persisted data.\n */\n NumericTextBox.prototype.getPersistData = function () {\n var keyEntity = ['value'];\n return this.addOnPersist(keyEntity);\n };\n /**\n * Calls internally if any of the property value is changed.\n *\n * @param {NumericTextBoxModel} newProp - Returns the dynamic property value of the component.\n * @param {NumericTextBoxModel} oldProp - Returns the previous property value of the component.\n * @returns {void}\n * @private\n */\n NumericTextBox.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'width':\n this.setElementWidth(newProp.width);\n Input.calculateWidth(this.element, this.container);\n break;\n case 'cssClass':\n this.updateCssClass(newProp.cssClass, oldProp.cssClass);\n break;\n case 'enabled':\n Input.setEnabled(newProp.enabled, this.element);\n this.bindClearEvent();\n break;\n case 'enableRtl':\n Input.setEnableRtl(newProp.enableRtl, [this.container]);\n break;\n case 'readonly':\n Input.setReadonly(newProp.readonly, this.element);\n if (this.readonly) {\n attributes(this.element, {\n 'aria-readonly': 'true'\n });\n } else {\n this.element.removeAttribute('aria-readonly');\n }\n break;\n case 'htmlAttributes':\n this.updateHTMLAttrToElement();\n this.updateHTMLAttrToWrapper();\n this.updateDataAttribute(true);\n this.checkAttributes(true);\n Input.validateInputType(this.container, this.element);\n break;\n case 'placeholder':\n Input.setPlaceholder(newProp.placeholder, this.element);\n Input.calculateWidth(this.element, this.container);\n break;\n case 'step':\n this.step = newProp.step;\n this.validateStep();\n break;\n case 'showSpinButton':\n this.updateSpinButton(newProp);\n break;\n case 'showClearButton':\n this.updateClearButton(newProp);\n break;\n case 'floatLabelType':\n this.floatLabelType = newProp.floatLabelType;\n this.floatLabelTypeUpdate();\n break;\n case 'value':\n this.isDynamicChange = (this.isAngular || this.isVue) && this.preventChange;\n this.updateValue(newProp.value);\n if (this.isDynamicChange) {\n this.preventChange = false;\n this.isDynamicChange = false;\n }\n break;\n case 'min':\n case 'max':\n setValue(prop, getValue(prop, newProp), this);\n this.validateMinMax();\n this.updateValue(this.value);\n break;\n case 'strictMode':\n this.strictMode = newProp.strictMode;\n this.updateValue(this.value);\n this.validateState();\n break;\n case 'locale':\n this.initCultureFunc();\n this.l10n.setLocale(this.locale);\n this.setSpinButton();\n this.updatePlaceholder();\n Input.setPlaceholder(this.placeholder, this.element);\n this.updateValue(this.value);\n break;\n case 'currency':\n {\n var propVal = getValue(prop, newProp);\n this.setProperties({\n currencyCode: propVal\n }, true);\n this.updateCurrency(prop, propVal);\n }\n break;\n case 'currencyCode':\n {\n var propValue = getValue(prop, newProp);\n this.setProperties({\n currency: propValue\n }, true);\n this.updateCurrency('currency', propValue);\n }\n break;\n case 'format':\n setValue(prop, getValue(prop, newProp), this);\n this.initCultureInfo();\n this.updateValue(this.value);\n break;\n case 'decimals':\n this.decimals = newProp.decimals;\n this.updateValue(this.value);\n }\n }\n };\n NumericTextBox.prototype.updateClearButton = function (newProp) {\n Input.setClearButton(newProp.showClearButton, this.element, this.inputWrapper, undefined, this.createElement);\n this.bindClearEvent();\n };\n NumericTextBox.prototype.updateSpinButton = function (newProp) {\n if (newProp.showSpinButton) {\n this.spinBtnCreation();\n } else {\n detach(this.spinUp);\n detach(this.spinDown);\n }\n };\n /**\n * Gets the component name\n *\n * @returns {string} Returns the component name.\n * @private\n */\n NumericTextBox.prototype.getModuleName = function () {\n return 'numerictextbox';\n };\n __decorate([Property('')], NumericTextBox.prototype, \"cssClass\", void 0);\n __decorate([Property(null)], NumericTextBox.prototype, \"value\", void 0);\n __decorate([Property(-Number.MAX_VALUE)], NumericTextBox.prototype, \"min\", void 0);\n __decorate([Property(Number.MAX_VALUE)], NumericTextBox.prototype, \"max\", void 0);\n __decorate([Property(1)], NumericTextBox.prototype, \"step\", void 0);\n __decorate([Property(null)], NumericTextBox.prototype, \"width\", void 0);\n __decorate([Property(null)], NumericTextBox.prototype, \"placeholder\", void 0);\n __decorate([Property({})], NumericTextBox.prototype, \"htmlAttributes\", void 0);\n __decorate([Property(true)], NumericTextBox.prototype, \"showSpinButton\", void 0);\n __decorate([Property(false)], NumericTextBox.prototype, \"readonly\", void 0);\n __decorate([Property(true)], NumericTextBox.prototype, \"enabled\", void 0);\n __decorate([Property(false)], NumericTextBox.prototype, \"showClearButton\", void 0);\n __decorate([Property(false)], NumericTextBox.prototype, \"enablePersistence\", void 0);\n __decorate([Property('n2')], NumericTextBox.prototype, \"format\", void 0);\n __decorate([Property(null)], NumericTextBox.prototype, \"decimals\", void 0);\n __decorate([Property(null)], NumericTextBox.prototype, \"currency\", void 0);\n __decorate([Property(null)], NumericTextBox.prototype, \"currencyCode\", void 0);\n __decorate([Property(true)], NumericTextBox.prototype, \"strictMode\", void 0);\n __decorate([Property(false)], NumericTextBox.prototype, \"validateDecimalOnType\", void 0);\n __decorate([Property('Never')], NumericTextBox.prototype, \"floatLabelType\", void 0);\n __decorate([Event()], NumericTextBox.prototype, \"created\", void 0);\n __decorate([Event()], NumericTextBox.prototype, \"destroyed\", void 0);\n __decorate([Event()], NumericTextBox.prototype, \"change\", void 0);\n __decorate([Event()], NumericTextBox.prototype, \"focus\", void 0);\n __decorate([Event()], NumericTextBox.prototype, \"blur\", void 0);\n NumericTextBox = __decorate([NotifyPropertyChanges], NumericTextBox);\n return NumericTextBox;\n}(Component);\n\n/* eslint-disable valid-jsdoc, jsdoc/require-jsdoc, jsdoc/require-returns, jsdoc/require-param */\nvar ERROR$1 = 'e-error';\nvar INPUTGROUP = 'e-input-group';\nvar FLOATINPUT = 'e-float-input';\nvar UTILMASK = 'e-utility-mask';\nvar TOPLABEL = 'e-label-top';\nvar BOTTOMLABEL = 'e-label-bottom';\n/**\n * @hidden\n * Built-in masking elements collection.\n */\nvar regularExpressions = {\n '0': '[0-9]',\n '9': '[0-9 ]',\n '#': '[0-9 +-]',\n 'L': '[A-Za-z]',\n '?': '[A-Za-z ]',\n '&': '[^\\x7f ]+',\n 'C': '[^\\x7f]+',\n 'A': '[A-Za-z0-9]',\n 'a': '[A-Za-z0-9 ]'\n};\n/**\n * Generate required masking elements to the MaskedTextBox from user mask input.\n *\n * @hidden\n */\nfunction createMask() {\n attributes(this.element, {\n 'role': 'textbox',\n 'autocomplete': 'off',\n 'autocapitalize': 'off',\n 'spellcheck': 'false',\n 'aria-live': 'assertive'\n });\n if (this.mask) {\n var splitMask = this.mask.split(']');\n for (var i = 0; i < splitMask.length; i++) {\n if (splitMask[i][splitMask[i].length - 1] === '\\\\') {\n splitMask[i] = splitMask[i] + ']';\n var splitInnerMask = splitMask[i].split('[');\n for (var j = 0; j < splitInnerMask.length; j++) {\n if (splitInnerMask[j][splitInnerMask[j].length - 1] === '\\\\') {\n splitInnerMask[j] = splitInnerMask[j] + '[';\n }\n pushIntoRegExpCollec.call(this, splitInnerMask[j]);\n }\n } else {\n var splitInnerMask = splitMask[i].split('[');\n if (splitInnerMask.length > 1) {\n var chkSpace = false;\n for (var j = 0; j < splitInnerMask.length; j++) {\n if (splitInnerMask[j] === '\\\\') {\n this.customRegExpCollec.push('[');\n this.hiddenMask += splitInnerMask[j] + '[';\n } else if (splitInnerMask[j] === '') {\n chkSpace = true;\n } else if (splitInnerMask[j] !== '' && chkSpace || j === splitInnerMask.length - 1) {\n this.customRegExpCollec.push('[' + splitInnerMask[j] + ']');\n this.hiddenMask += this.promptChar;\n chkSpace = false;\n } else {\n pushIntoRegExpCollec.call(this, splitInnerMask[j]);\n }\n }\n } else {\n pushIntoRegExpCollec.call(this, splitInnerMask[0]);\n }\n }\n }\n this.escapeMaskValue = this.hiddenMask;\n this.promptMask = this.hiddenMask.replace(/[09?LCAa#&]/g, this.promptChar);\n if (!isNullOrUndefined(this.customCharacters)) {\n for (var i = 0; i < this.promptMask.length; i++) {\n if (!isNullOrUndefined(this.customCharacters[this.promptMask[i]])) {\n /* eslint-disable-next-line security/detect-non-literal-regexp */\n this.promptMask = this.promptMask.replace(new RegExp(this.promptMask[i], 'g'), this.promptChar);\n }\n }\n }\n var escapeNumber = 0;\n if (this.hiddenMask.match(new RegExp(/\\\\/))) {\n for (var i = 0; i < this.hiddenMask.length; i++) {\n var j = 0;\n if (i >= 1) {\n j = i;\n }\n escapeNumber = this.hiddenMask.length - this.promptMask.length;\n j = j - escapeNumber;\n if (i > 0 && this.hiddenMask[i - 1] !== '\\\\' && (this.hiddenMask[i] === '>' || this.hiddenMask[i] === '<' || this.hiddenMask[i] === '|')) {\n this.promptMask = this.promptMask.substring(0, j) + this.promptMask.substring(i + 1 - escapeNumber, this.promptMask.length);\n this.escapeMaskValue = this.escapeMaskValue.substring(0, j) + this.escapeMaskValue.substring(i + 1 - escapeNumber, this.escapeMaskValue.length);\n }\n if (this.hiddenMask[i] === '\\\\') {\n this.promptMask = this.promptMask.substring(0, j) + this.hiddenMask[i + 1] + this.promptMask.substring(i + 2 - escapeNumber, this.promptMask.length);\n this.escapeMaskValue = this.escapeMaskValue.substring(0, j) + this.escapeMaskValue[i + 1] + this.escapeMaskValue.substring(i + 2 - escapeNumber, this.escapeMaskValue.length);\n }\n }\n } else {\n this.promptMask = this.promptMask.replace(/[>|<]/g, '');\n this.escapeMaskValue = this.hiddenMask.replace(/[>|<]/g, '');\n }\n attributes(this.element, {\n 'aria-invalid': 'false'\n });\n }\n}\n/**\n * Apply mask ability with masking elements to the MaskedTextBox.\n *\n * @hidden\n */\nfunction applyMask() {\n setElementValue.call(this, this.promptMask);\n setMaskValue.call(this, this.value);\n}\n/**\n * To wire required events to the MaskedTextBox.\n *\n * @hidden\n */\nfunction wireEvents() {\n EventHandler.add(this.element, 'keydown', maskInputKeyDownHandler, this);\n EventHandler.add(this.element, 'keypress', maskInputKeyPressHandler, this);\n EventHandler.add(this.element, 'keyup', maskInputKeyUpHandler, this);\n EventHandler.add(this.element, 'input', maskInputHandler, this);\n EventHandler.add(this.element, 'focus', maskInputFocusHandler, this);\n EventHandler.add(this.element, 'blur', maskInputBlurHandler, this);\n EventHandler.add(this.element, 'paste', maskInputPasteHandler, this);\n EventHandler.add(this.element, 'cut', maskInputCutHandler, this);\n EventHandler.add(this.element, 'drop', maskInputDropHandler, this);\n EventHandler.add(this.element, 'mousedown', maskInputMouseDownHandler, this);\n EventHandler.add(this.element, 'mouseup', maskInputMouseUpHandler, this);\n if (this.enabled) {\n bindClearEvent.call(this);\n if (this.formElement) {\n EventHandler.add(this.formElement, 'reset', resetFormHandler, this);\n }\n }\n}\n/**\n * To unwire events attached to the MaskedTextBox.\n *\n * @hidden\n */\nfunction unwireEvents() {\n EventHandler.remove(this.element, 'keydown', maskInputKeyDownHandler);\n EventHandler.remove(this.element, 'keypress', maskInputKeyPressHandler);\n EventHandler.remove(this.element, 'keyup', maskInputKeyUpHandler);\n EventHandler.remove(this.element, 'input', maskInputHandler);\n EventHandler.remove(this.element, 'focus', maskInputFocusHandler);\n EventHandler.remove(this.element, 'blur', maskInputBlurHandler);\n EventHandler.remove(this.element, 'paste', maskInputPasteHandler);\n EventHandler.remove(this.element, 'cut', maskInputCutHandler);\n EventHandler.remove(this.element, 'drop', maskInputDropHandler);\n EventHandler.remove(this.element, 'mousedown', maskInputMouseDownHandler);\n EventHandler.remove(this.element, 'mouseup', maskInputMouseUpHandler);\n if (this.formElement) {\n EventHandler.remove(this.formElement, 'reset', resetFormHandler);\n }\n}\n/**\n * To bind required events to the MaskedTextBox clearButton.\n *\n * @hidden\n */\nfunction bindClearEvent() {\n if (this.showClearButton) {\n EventHandler.add(this.inputObj.clearButton, 'mousedown touchstart', resetHandler, this);\n }\n}\nfunction resetHandler(e) {\n e.preventDefault();\n if (!this.inputObj.clearButton.classList.contains('e-clear-icon-hide') || this.inputObj.container.classList.contains('e-static-clear')) {\n clear.call(this, e);\n this.value = '';\n }\n}\nfunction clear(event) {\n var value = this.element.value;\n setElementValue.call(this, this.promptMask);\n this.redoCollec.unshift({\n value: this.promptMask,\n startIndex: this.element.selectionStart,\n endIndex: this.element.selectionEnd\n });\n triggerMaskChangeEvent.call(this, event, value);\n this.element.setSelectionRange(0, 0);\n}\nfunction resetFormHandler() {\n if (this.element.tagName === 'EJS-MASKEDTEXTBOX') {\n setElementValue.call(this, this.promptMask);\n } else {\n this.value = this.initInputValue;\n }\n}\n/**\n * To get masked value from the MaskedTextBox.\n *\n * @hidden\n */\nfunction unstrippedValue(element) {\n return element.value;\n}\n/**\n * To extract raw value from the MaskedTextBox.\n *\n * @hidden\n */\nfunction strippedValue(element, maskValues) {\n var value = '';\n var k = 0;\n var checkMask = false;\n var maskValue = !isNullOrUndefined(maskValues) ? maskValues : !isNullOrUndefined(element) && !isNullOrUndefined(this) ? element.value : maskValues;\n if (maskValue !== this.promptMask) {\n for (var i = 0; i < this.customRegExpCollec.length; i++) {\n if (checkMask) {\n checkMask = false;\n }\n if (this.customRegExpCollec[k] === '>' || this.customRegExpCollec[k] === '<' || this.customRegExpCollec[k] === '|' || this.customRegExpCollec[k] === '\\\\') {\n --i;\n checkMask = true;\n }\n if (!checkMask) {\n if (maskValue[i] !== this.promptChar && !isNullOrUndefined(this.customRegExpCollec[k]) && (this._callPasteHandler || !isNullOrUndefined(this.regExpCollec[this.customRegExpCollec[k]]) && !this.maskedRegExp.includes(this.customRegExpCollec[k]) || this.customRegExpCollec[k].length > 2 && this.customRegExpCollec[k][0] === '[' && this.customRegExpCollec[k][this.customRegExpCollec[k].length - 1] === ']' || !isNullOrUndefined(this.customCharacters) && !isNullOrUndefined(this.customCharacters[this.customRegExpCollec[k]])) && maskValue !== '') {\n value += maskValue[i];\n }\n }\n ++k;\n }\n }\n if (this.mask === null || this.mask === '' && this.value !== undefined) {\n value = maskValue;\n }\n return value;\n}\nfunction pushIntoRegExpCollec(value) {\n for (var k = 0; k < value.length; k++) {\n this.hiddenMask += value[k];\n if (value[k] !== '\\\\') {\n this.customRegExpCollec.push(value[k]);\n } else if (value[k] === '\\\\' && !isNullOrUndefined(this.regExpCollec[value[k + 1]])) {\n this.maskedRegExp.push(value[k + 1]);\n }\n }\n}\nfunction maskInputMouseDownHandler() {\n this.isClicked = true;\n}\nfunction maskInputMouseUpHandler() {\n this.isClicked = false;\n}\nfunction maskInputFocusHandler(event) {\n var _this = this;\n var inputElement = this.element;\n var startIndex = 0;\n var modelValue = strippedValue.call(this, inputElement);\n var toAllowForward = false;\n var toAllowBackward = false;\n var eventArgs = {\n selectionStart: inputElement.selectionStart,\n event: event,\n value: this.value,\n maskedValue: inputElement.value,\n container: !isNullOrUndefined(this.inputObj) ? this.inputObj.container : this.inputObj,\n selectionEnd: inputElement.selectionEnd\n };\n if (!this.isClicked) {\n triggerFocus.call(this, eventArgs, inputElement);\n }\n if (this.mask) {\n if (!(!(modelValue === null || modelValue === '') || this.floatLabelType === 'Always' || this.placeholder === null || this.placeholder === '')) {\n inputElement.value = this.promptMask;\n }\n setTimeout(function () {\n if (inputElement.selectionStart === _this.promptMask.length || inputElement.value[inputElement.selectionStart] === _this.promptChar) {\n toAllowForward = true;\n } else {\n for (var i = inputElement.selectionStart; i < _this.promptMask.length; i++) {\n if (inputElement.value[i] !== _this.promptChar) {\n if (inputElement.value[i] !== _this.promptMask[i]) {\n toAllowForward = false;\n break;\n }\n } else {\n toAllowForward = true;\n break;\n }\n }\n }\n });\n setTimeout(function () {\n var backSelectionStart = inputElement.selectionStart - 1;\n if (backSelectionStart === _this.promptMask.length - 1 || inputElement.value[backSelectionStart] === _this.promptChar) {\n toAllowBackward = true;\n } else {\n for (var i = backSelectionStart; i >= 0; i--) {\n if (inputElement.value[i] !== _this.promptChar) {\n if (inputElement.value[i] !== _this.promptMask[i]) {\n toAllowBackward = false;\n break;\n }\n } else {\n toAllowBackward = true;\n break;\n }\n }\n }\n });\n if (this.isClicked || this.floatLabelType !== 'Always' && (modelValue === null || modelValue === '') && this.placeholder !== null && this.placeholder !== '') {\n for (startIndex = 0; startIndex < this.promptMask.length; startIndex++) {\n if (inputElement.value[startIndex] === this.promptChar) {\n setTimeout(function () {\n if (toAllowForward || toAllowBackward) {\n inputElement.selectionEnd = startIndex;\n inputElement.selectionStart = startIndex;\n }\n eventArgs = {\n selectionStart: inputElement.selectionStart,\n event: event,\n value: _this.value,\n maskedValue: inputElement.value,\n container: !isNullOrUndefined(_this.inputObj) ? _this.inputObj.container : _this.inputObj,\n selectionEnd: inputElement.selectionEnd\n };\n triggerFocus.call(_this, eventArgs, inputElement);\n }, 110);\n break;\n }\n }\n if (isNullOrUndefined(inputElement.value.match(escapeRegExp(this.promptChar)))) {\n eventArgs = {\n selectionStart: inputElement.selectionStart,\n event: event,\n value: this.value,\n maskedValue: inputElement.value,\n container: !isNullOrUndefined(this.inputObj) ? this.inputObj.container : this.inputObj,\n selectionEnd: inputElement.selectionEnd\n };\n triggerFocus.call(this, eventArgs, inputElement);\n }\n this.isClicked = false;\n }\n }\n}\nfunction triggerFocus(eventArgs, inputElement) {\n this.trigger('focus', eventArgs, function (eventArgs) {\n inputElement.selectionStart = eventArgs.selectionStart;\n inputElement.selectionEnd = eventArgs.selectionEnd;\n });\n}\nfunction escapeRegExp(text) {\n return !isNullOrUndefined(text) ? text.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&') : text;\n}\nfunction maskInputBlurHandler(event) {\n this.blurEventArgs = {\n event: event,\n value: this.value,\n maskedValue: this.element.value,\n container: !isNullOrUndefined(this.inputObj) ? this.inputObj.container : this.inputObj\n };\n this.trigger('blur', this.blurEventArgs);\n if (this.mask) {\n this.isFocus = false;\n if (this.placeholder && this.element.value === this.promptMask && this.floatLabelType !== 'Always') {\n setElementValue.call(this, '');\n var labelElement = this.element.parentNode.querySelector('.e-float-text');\n if (this.floatLabelType === 'Auto' && !isNullOrUndefined(labelElement) && labelElement.classList.contains(TOPLABEL)) {\n removeClass([labelElement], TOPLABEL);\n }\n }\n }\n}\nfunction maskInputPasteHandler(event) {\n var _this = this;\n if (this.mask && !this.readonly) {\n var sIndex_1 = this.element.selectionStart;\n var eIndex_1 = this.element.selectionEnd;\n var oldValue_1 = this.element.value;\n setElementValue.call(this, '');\n this._callPasteHandler = true;\n setTimeout(function () {\n var value = _this.element.value.replace(/ /g, '');\n if (_this.redoCollec.length > 0 && _this.redoCollec[0].value === _this.element.value) {\n value = strippedValue.call(_this, _this.element);\n }\n setElementValue.call(_this, oldValue_1);\n _this.element.selectionStart = sIndex_1;\n _this.element.selectionEnd = eIndex_1;\n var i = 0;\n _this.maskKeyPress = true;\n do {\n validateValue.call(_this, value[i], false, null);\n ++i;\n } while (i < value.length);\n _this.maskKeyPress = false;\n _this._callPasteHandler = false;\n if (_this.element.value === oldValue_1) {\n var i_1 = 0;\n _this.maskKeyPress = true;\n do {\n validateValue.call(_this, value[i_1], false, null);\n ++i_1;\n } while (i_1 < value.length);\n _this.maskKeyPress = false;\n } else {\n triggerMaskChangeEvent.call(_this, event, oldValue_1);\n }\n }, 1);\n }\n}\nfunction maskInputCutHandler(event) {\n var _this = this;\n if (this.mask && !this.readonly) {\n var preValue_1 = this.element.value;\n var sIndex_2 = this.element.selectionStart;\n var eIndex = this.element.selectionEnd;\n this.undoCollec.push({\n value: this.element.value,\n startIndex: this.element.selectionStart,\n endIndex: this.element.selectionEnd\n });\n var value_1 = this.element.value.substring(0, sIndex_2) + this.promptMask.substring(sIndex_2, eIndex) + this.element.value.substring(eIndex);\n setTimeout(function () {\n setElementValue.call(_this, value_1);\n _this.element.selectionStart = _this.element.selectionEnd = sIndex_2;\n if (_this.element.value !== preValue_1) {\n triggerMaskChangeEvent.call(_this, event, null);\n }\n }, 0);\n }\n}\nfunction maskInputDropHandler(event) {\n event.preventDefault();\n}\nfunction maskInputHandler(event) {\n if (Browser.isIE === true && this.element.value === '' && this.floatLabelType === 'Never') {\n return;\n }\n var eventArgs = {\n ctrlKey: false,\n keyCode: 229\n };\n extend(event, eventArgs);\n if (this.mask) {\n if (this.element.value === '') {\n this.redoCollec.unshift({\n value: this.promptMask,\n startIndex: this.element.selectionStart,\n endIndex: this.element.selectionEnd\n });\n }\n if (this.element.value.length === 1) {\n this.element.value = this.element.value + this.promptMask;\n this.element.setSelectionRange(1, 1);\n }\n if (!this._callPasteHandler) {\n removeMaskInputValues.call(this, event);\n }\n if (this.element.value.length > this.promptMask.length) {\n var startIndex = this.element.selectionStart;\n var addedValues = this.element.value.length - this.promptMask.length;\n var value = this.element.value.substring(startIndex - addedValues, startIndex);\n this.maskKeyPress = false;\n var i = 0;\n do {\n validateValue.call(this, value[i], event.ctrlKey, event);\n ++i;\n } while (i < value.length);\n if (this.element.value !== this.preEleVal) {\n triggerMaskChangeEvent.call(this, event, null);\n }\n }\n var val = strippedValue.call(this, this.element);\n this.prevValue = val;\n this.value = val;\n if (val === '') {\n setElementValue.call(this, this.promptMask);\n this.element.setSelectionRange(0, 0);\n }\n }\n}\nfunction maskInputKeyDownHandler(event) {\n if (this.mask && !this.readonly) {\n if (event.keyCode !== 229) {\n if (event.ctrlKey && (event.keyCode === 89 || event.keyCode === 90)) {\n event.preventDefault();\n }\n removeMaskInputValues.call(this, event);\n }\n var startValue = this.element.value;\n if (event.ctrlKey && (event.keyCode === 89 || event.keyCode === 90)) {\n var collec = void 0;\n if (event.keyCode === 90 && this.undoCollec.length > 0 && startValue !== this.undoCollec[this.undoCollec.length - 1].value) {\n collec = this.undoCollec[this.undoCollec.length - 1];\n this.redoCollec.unshift({\n value: this.element.value,\n startIndex: this.element.selectionStart,\n endIndex: this.element.selectionEnd\n });\n setElementValue.call(this, collec.value);\n this.element.selectionStart = collec.startIndex;\n this.element.selectionEnd = collec.endIndex;\n this.undoCollec.splice(this.undoCollec.length - 1, 1);\n } else if (event.keyCode === 89 && this.redoCollec.length > 0 && startValue !== this.redoCollec[0].value) {\n collec = this.redoCollec[0];\n this.undoCollec.push({\n value: this.element.value,\n startIndex: this.element.selectionStart,\n endIndex: this.element.selectionEnd\n });\n setElementValue.call(this, collec.value);\n this.element.selectionStart = collec.startIndex;\n this.element.selectionEnd = collec.endIndex;\n this.redoCollec.splice(0, 1);\n }\n }\n }\n}\nfunction mobileRemoveFunction() {\n var collec;\n var sIndex = this.element.selectionStart;\n var eIndex = this.element.selectionEnd;\n if (this.redoCollec.length > 0) {\n collec = this.redoCollec[0];\n setElementValue.call(this, collec.value);\n if (collec.startIndex - sIndex === 1) {\n this.element.selectionStart = collec.startIndex;\n this.element.selectionEnd = collec.endIndex;\n } else {\n this.element.selectionStart = sIndex + 1;\n this.element.selectionEnd = eIndex + 1;\n }\n } else {\n setElementValue.call(this, this.promptMask);\n this.element.selectionStart = this.element.selectionEnd = sIndex;\n }\n}\nfunction autoFillMaskInputValues(isRemove, oldEventVal, event) {\n if (event.type === 'input') {\n isRemove = false;\n oldEventVal = this.element.value;\n setElementValue.call(this, this.promptMask);\n setMaskValue.call(this, oldEventVal);\n }\n return isRemove;\n}\nfunction removeMaskInputValues(event) {\n var isRemove = false;\n var oldEventVal;\n var isDeleted = false;\n if (this.element.value.length < this.promptMask.length) {\n isRemove = true;\n oldEventVal = this.element.value;\n isRemove = autoFillMaskInputValues.call(this, isRemove, oldEventVal, event);\n mobileRemoveFunction.call(this);\n }\n if (this.element.value.length >= this.promptMask.length && event.type === 'input') {\n isRemove = autoFillMaskInputValues.call(this, isRemove, oldEventVal, event);\n }\n var initStartIndex = this.element.selectionStart;\n var initEndIndex = this.element.selectionEnd;\n var startIndex = this.element.selectionStart;\n var endIndex = this.element.selectionEnd;\n var maskValue = this.hiddenMask.replace(/[>|\\\\<]/g, '');\n var curMask = maskValue[startIndex - 1];\n var deleteEndIndex = this.element.selectionEnd;\n if (isRemove || event.keyCode === 8 || event.keyCode === 46) {\n this.undoCollec.push({\n value: this.element.value,\n startIndex: this.element.selectionStart,\n endIndex: endIndex\n });\n var multipleDel = false;\n var preValue = this.element.value;\n if (startIndex > 0 || (event.keyCode === 8 || event.keyCode === 46) && startIndex < this.element.value.length && this.element.selectionEnd - startIndex !== this.element.value.length) {\n var index = startIndex;\n if (startIndex !== endIndex) {\n startIndex = endIndex;\n if (event.keyCode === 46) {\n multipleDel = true;\n }\n } else if (event.keyCode === 46) {\n ++index;\n } else {\n --index;\n }\n for (var k = startIndex; event.keyCode === 8 || isRemove || multipleDel ? k > index : k < index; event.keyCode === 8 || isRemove || multipleDel ? k-- : k++) {\n for (var i = startIndex; event.keyCode === 8 || isRemove || multipleDel ? i > 0 : i < this.element.value.length; event.keyCode === 8 || isRemove || multipleDel ? i-- : i++) {\n var sIndex = void 0;\n if ((event.keyCode === 8 || multipleDel) && (initStartIndex !== initEndIndex && initStartIndex !== startIndex || initStartIndex === initEndIndex) || isRemove) {\n curMask = maskValue[i - 1];\n sIndex = startIndex - 1;\n } else {\n curMask = maskValue[i];\n sIndex = startIndex;\n ++startIndex;\n }\n var oldValue = this.element.value[sIndex];\n if (isNullOrUndefined(this.regExpCollec[\"\" + curMask]) && !isNullOrUndefined(this.customCharacters) && isNullOrUndefined(this.customCharacters[\"\" + curMask]) && this.hiddenMask[sIndex] !== this.promptChar && this.customRegExpCollec[sIndex][0] !== '[' && this.customRegExpCollec[sIndex][this.customRegExpCollec[sIndex].length - 1] !== ']' || this.promptMask[sIndex] !== this.promptChar && isNullOrUndefined(this.customCharacters)) {\n this.element.selectionStart = this.element.selectionEnd = sIndex;\n event.preventDefault();\n if (event.keyCode === 46 && !multipleDel) {\n ++this.element.selectionStart;\n }\n } else {\n var value = this.element.value;\n var prompt_1 = this.promptChar;\n var elementValue = value.substring(0, sIndex) + prompt_1 + value.substring(startIndex, value.length);\n setElementValue.call(this, elementValue);\n event.preventDefault();\n if (event.keyCode === 46 && !multipleDel) {\n sIndex++;\n }\n this.element.selectionStart = this.element.selectionEnd = sIndex;\n isDeleted = true;\n }\n startIndex = this.element.selectionStart;\n if (!isDeleted && event.keyCode === 8 || multipleDel || !isDeleted && !(event.keyCode === 46)) {\n sIndex = startIndex - 1;\n } else {\n sIndex = startIndex;\n isDeleted = false;\n }\n oldValue = this.element.value[sIndex];\n if (initStartIndex !== initEndIndex && this.element.selectionStart === initStartIndex || this.promptMask[sIndex] === this.promptChar || oldValue !== this.promptMask[sIndex] && this.promptMask[sIndex] !== this.promptChar && !isNullOrUndefined(this.customCharacters)) {\n break;\n }\n }\n }\n }\n if (event.keyCode === 46 && multipleDel && isDeleted) {\n this.element.selectionStart = this.element.selectionEnd = deleteEndIndex;\n }\n if (this.element.selectionStart === 0 && this.element.selectionEnd === this.element.value.length) {\n setElementValue.call(this, this.promptMask);\n event.preventDefault();\n this.element.selectionStart = this.element.selectionEnd = startIndex;\n }\n this.redoCollec.unshift({\n value: this.element.value,\n startIndex: this.element.selectionStart,\n endIndex: this.element.selectionEnd\n });\n if (this.element.value !== preValue) {\n triggerMaskChangeEvent.call(this, event, oldEventVal);\n }\n }\n}\nfunction maskInputKeyPressHandler(event) {\n if (this.mask && !this.readonly) {\n var oldValue = this.element.value;\n if (!(event.ctrlKey || event.metaKey) || (event.ctrlKey || event.metaKey) && event.code !== 'KeyA' && event.code !== 'KeyY' && event.code !== 'KeyZ' && event.code !== 'KeyX' && event.code !== 'KeyC' && event.code !== 'KeyV') {\n this.maskKeyPress = true;\n var key = event.key;\n if (key === 'Spacebar') {\n key = String.fromCharCode(event.keyCode);\n }\n if (!key) {\n this.isIosInvalid = true;\n validateValue.call(this, String.fromCharCode(event.keyCode), event.ctrlKey, event);\n event.preventDefault();\n this.isIosInvalid = false;\n } else if (key && key.length === 1) {\n validateValue.call(this, key, event.ctrlKey, event);\n event.preventDefault();\n }\n if (event.keyCode === 32 && key === ' ' && this.promptChar === ' ') {\n this.element.selectionStart = this.element.selectionEnd = this.element.selectionStart - key.length;\n }\n }\n if (this.element.value !== oldValue) {\n triggerMaskChangeEvent.call(this, event, oldValue);\n }\n }\n}\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction triggerMaskChangeEvent(event, oldValue) {\n var prevOnChange = this.isProtectedOnChange;\n if (!isNullOrUndefined(this.changeEventArgs) && !this.isInitial) {\n var eventArgs = {};\n this.changeEventArgs = {\n value: this.element.value,\n maskedValue: this.element.value,\n isInteraction: false,\n isInteracted: false\n };\n if (this.mask) {\n this.changeEventArgs.value = strippedValue.call(this, this.element);\n }\n if (!isNullOrUndefined(event)) {\n this.changeEventArgs.isInteracted = true;\n this.changeEventArgs.isInteraction = true;\n this.changeEventArgs.event = event;\n }\n this.isProtectedOnChange = true;\n this.value = this.changeEventArgs.value;\n this.isProtectedOnChange = prevOnChange;\n merge(eventArgs, this.changeEventArgs);\n /* istanbul ignore next */\n if (this.isAngular && this.preventChange) {\n this.preventChange = false;\n } else {\n this.trigger('change', eventArgs);\n }\n }\n this.preEleVal = this.element.value;\n this.prevValue = strippedValue.call(this, this.element);\n}\nfunction maskInputKeyUpHandler(event) {\n if (this.mask && !this.readonly) {\n var collec = void 0;\n if (!this.maskKeyPress && event.keyCode === 229) {\n var oldEventVal = void 0;\n if (this.element.value.length === 1) {\n this.element.value = this.element.value + this.promptMask;\n this.element.setSelectionRange(1, 1);\n }\n if (this.element.value.length > this.promptMask.length) {\n var startIndex = this.element.selectionStart;\n var addedValues = this.element.value.length - this.promptMask.length;\n var val_1 = this.element.value.substring(startIndex - addedValues, startIndex);\n if (this.undoCollec.length > 0) {\n collec = this.undoCollec[this.undoCollec.length - 1];\n var startIndex_1 = this.element.selectionStart;\n oldEventVal = collec.value;\n var oldVal = collec.value.substring(startIndex_1 - addedValues, startIndex_1);\n collec = this.redoCollec[0];\n val_1 = val_1.trim();\n var isSpace = Browser.isAndroid && val_1 === '';\n if (!isSpace && oldVal !== val_1 && collec.value.substring(startIndex_1 - addedValues, startIndex_1) !== val_1) {\n validateValue.call(this, val_1, event.ctrlKey, event);\n } else if (isSpace) {\n preventUnsupportedValues.call(this, event, startIndex_1 - 1, this.element.selectionEnd - 1, val_1, event.ctrlKey, false);\n }\n } else {\n oldEventVal = this.promptMask;\n validateValue.call(this, val_1, event.ctrlKey, event);\n }\n this.maskKeyPress = false;\n triggerMaskChangeEvent.call(this, event, oldEventVal);\n }\n } else {\n removeMaskError.call(this);\n }\n var val = strippedValue.call(this, this.element);\n if (!(this.element.selectionStart === 0 && this.promptMask === this.element.value && val === '') || val === '' && this.value !== val) {\n this.prevValue = val;\n this.value = val;\n }\n } else {\n triggerMaskChangeEvent.call(this, event);\n }\n if (this.element.selectionStart === 0 && this.element.selectionEnd === 0) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n var temp_1 = this.element;\n setTimeout(function () {\n temp_1.setSelectionRange(0, 0);\n }, 0);\n }\n}\nfunction mobileSwipeCheck(key) {\n if (key.length > 1 && this.promptMask.length + key.length < this.element.value.length) {\n var elementValue = this.redoCollec[0].value.substring(0, this.redoCollec[0].startIndex) + key + this.redoCollec[0].value.substring(this.redoCollec[0].startIndex, this.redoCollec[0].value.length);\n setElementValue.call(this, elementValue);\n this.element.selectionStart = this.element.selectionEnd = this.redoCollec[0].startIndex + key.length;\n }\n this.element.selectionStart = this.element.selectionStart - key.length;\n this.element.selectionEnd = this.element.selectionEnd - key.length;\n}\nfunction mobileValidation(key) {\n if (!this.maskKeyPress) {\n mobileSwipeCheck.call(this, key);\n }\n}\nfunction validateValue(key, isCtrlKey, event) {\n mobileValidation.call(this, key);\n if (isNullOrUndefined(this) || isNullOrUndefined(key)) {\n return;\n }\n var startIndex = this.element.selectionStart;\n var initStartIndex = startIndex;\n var curMask;\n var allowText = false;\n var value = this.element.value;\n var eventOldVal;\n var prevSupport = false;\n var isEqualVal = false;\n for (var k = 0; k < key.length; k++) {\n var keyValue = key[k];\n startIndex = this.element.selectionStart;\n if (!this.maskKeyPress && initStartIndex === startIndex) {\n startIndex = startIndex + k;\n }\n if (!this.maskKeyPress || startIndex < this.promptMask.length) {\n for (var i = startIndex; i < this.promptMask.length; i++) {\n var maskValue = this.escapeMaskValue;\n curMask = maskValue[startIndex];\n if (this.hiddenMask[startIndex] === '\\\\' && this.hiddenMask[startIndex + 1] === key) {\n isEqualVal = true;\n }\n if (isNullOrUndefined(this.regExpCollec[\"\" + curMask]) && (isNullOrUndefined(this.customCharacters) || !isNullOrUndefined(this.customCharacters) && isNullOrUndefined(this.customCharacters[\"\" + curMask])) && this.hiddenMask[startIndex] !== this.promptChar && this.customRegExpCollec[startIndex][0] !== '[' && this.customRegExpCollec[startIndex][this.customRegExpCollec[startIndex].length - 1] !== ']' || this.promptMask[startIndex] !== this.promptChar && isNullOrUndefined(this.customCharacters) || this.promptChar === curMask && this.escapeMaskValue === this.mask) {\n this.element.selectionStart = this.element.selectionEnd = startIndex + 1;\n startIndex = this.element.selectionStart;\n curMask = this.hiddenMask[startIndex];\n }\n }\n if (!isNullOrUndefined(this.customCharacters) && !isNullOrUndefined(this.customCharacters[\"\" + curMask])) {\n var customValStr = this.customCharacters[\"\" + curMask];\n var customValArr = customValStr.split(',');\n for (var i = 0; i < customValArr.length; i++) {\n /* eslint-disable-next-line security/detect-non-literal-regexp */\n if (keyValue.match(new RegExp('[' + customValArr[i] + ']'))) {\n allowText = true;\n break;\n }\n }\n /* eslint-disable-next-line security/detect-non-literal-regexp */\n } else if (!isNullOrUndefined(this.regExpCollec[\"\" + curMask]) && keyValue.match(new RegExp(this.regExpCollec[\"\" + curMask])) && this.promptMask[startIndex] === this.promptChar) {\n allowText = true;\n } else if (this.promptMask[startIndex] === this.promptChar && this.customRegExpCollec[startIndex][0] === '[' && this.customRegExpCollec[startIndex][this.customRegExpCollec[startIndex].length - 1] === ']'\n /* eslint-disable-next-line security/detect-non-literal-regexp */ && keyValue.match(new RegExp(this.customRegExpCollec[startIndex]))) {\n allowText = true;\n }\n if ((!this.maskKeyPress || startIndex < this.hiddenMask.length) && allowText) {\n if (k === 0) {\n if (this.maskKeyPress) {\n this.undoCollec.push({\n value: value,\n startIndex: startIndex,\n endIndex: startIndex\n });\n } else {\n var sIndex = this.element.selectionStart;\n var eIndex = this.element.selectionEnd;\n if (this.redoCollec.length > 0) {\n eventOldVal = this.redoCollec[0].value;\n setElementValue.call(this, eventOldVal);\n this.undoCollec.push(this.redoCollec[0]);\n } else {\n this.undoCollec.push({\n value: this.promptMask,\n startIndex: startIndex,\n endIndex: startIndex\n });\n eventOldVal = this.promptMask;\n setElementValue.call(this, eventOldVal);\n }\n this.element.selectionStart = sIndex;\n this.element.selectionEnd = eIndex;\n }\n }\n startIndex = this.element.selectionStart;\n applySupportedValues.call(this, event, startIndex, keyValue, eventOldVal, isEqualVal);\n prevSupport = true;\n if (k === key.length - 1) {\n this.redoCollec.unshift({\n value: this.element.value,\n startIndex: this.element.selectionStart,\n endIndex: this.element.selectionEnd\n });\n }\n allowText = false;\n } else {\n startIndex = this.element.selectionStart;\n preventUnsupportedValues.call(this, event, startIndex, initStartIndex, key, isCtrlKey, prevSupport);\n }\n if (k === key.length - 1 && !allowText) {\n if (!Browser.isAndroid || Browser.isAndroid && startIndex < this.promptMask.length) {\n this.redoCollec.unshift({\n value: this.element.value,\n startIndex: this.element.selectionStart,\n endIndex: this.element.selectionEnd\n });\n }\n }\n } else {\n if (key.length === 1 && !isCtrlKey && !isNullOrUndefined(event)) {\n addMaskErrorClass.call(this);\n }\n }\n }\n}\nfunction applySupportedValues(event, startIndex, keyValue, eventOldVal, isEqualVal) {\n if (this.hiddenMask.length > this.promptMask.length) {\n keyValue = changeToLowerUpperCase.call(this, keyValue, this.element.value);\n }\n if (!isEqualVal) {\n var value = this.element.value;\n var elementValue = value.substring(0, startIndex) + keyValue + value.substring(startIndex + 1, value.length);\n setElementValue.call(this, elementValue);\n this.element.selectionStart = this.element.selectionEnd = startIndex + 1;\n }\n}\nfunction preventUnsupportedValues(event, sIdx, idx, key, ctrl, chkSupport) {\n if (!this.maskKeyPress) {\n var value = this.element.value;\n if (sIdx >= this.promptMask.length) {\n setElementValue.call(this, value.substring(0, sIdx));\n } else {\n if (idx === sIdx) {\n setElementValue.call(this, value.substring(0, sIdx) + value.substring(sIdx + 1, value.length));\n } else {\n if (this.promptMask.length === this.element.value.length) {\n setElementValue.call(this, value.substring(0, sIdx) + value.substring(sIdx, value.length));\n } else {\n setElementValue.call(this, value.substring(0, idx) + value.substring(idx + 1, value.length));\n }\n }\n this.element.selectionStart = this.element.selectionEnd = chkSupport || this.element.value[idx] !== this.promptChar ? sIdx : idx;\n }\n addMaskErrorClass.call(this);\n }\n if (key.length === 1 && !ctrl && !isNullOrUndefined(event)) {\n addMaskErrorClass.call(this);\n }\n}\nfunction addMaskErrorClass() {\n var _this = this;\n var parentElement = this.element.parentNode;\n var timer = 200;\n if (parentElement.classList.contains(INPUTGROUP) || parentElement.classList.contains(FLOATINPUT)) {\n addClass([parentElement], ERROR$1);\n } else {\n addClass([this.element], ERROR$1);\n }\n if (this.isIosInvalid === true) {\n timer = 400;\n }\n attributes(this.element, {\n 'aria-invalid': 'true'\n });\n setTimeout(function () {\n if (!_this.maskKeyPress) {\n removeMaskError.call(_this);\n }\n }, timer);\n}\nfunction removeMaskError() {\n var parentElement = this.element.parentNode;\n if (!isNullOrUndefined(parentElement)) {\n removeClass([parentElement], ERROR$1);\n }\n removeClass([this.element], ERROR$1);\n attributes(this.element, {\n 'aria-invalid': 'false'\n });\n}\n/**\n * Validates user input using masking elements '<' , '>' and '|'.\n *\n * @hidden\n */\nfunction changeToLowerUpperCase(key, value) {\n var promptMask;\n var i;\n var curVal = value;\n var caseCount = 0;\n for (i = 0; i < this.hiddenMask.length; i++) {\n if (this.hiddenMask[i] === '\\\\') {\n promptMask = curVal.substring(0, i) + '\\\\' + curVal.substring(i, curVal.length);\n }\n if (this.hiddenMask[i] === '>' || this.hiddenMask[i] === '<' || this.hiddenMask[i] === '|') {\n if (this.hiddenMask[i] !== curVal[i]) {\n promptMask = curVal.substring(0, i) + this.hiddenMask[i] + curVal.substring(i, curVal.length);\n }\n ++caseCount;\n }\n if (promptMask) {\n if (promptMask[i] === this.promptChar && i > this.element.selectionStart || this.element.value.indexOf(this.promptChar) < 0 && this.element.selectionStart + caseCount === i) {\n caseCount = 0;\n break;\n }\n curVal = promptMask;\n }\n }\n while (i >= 0 && promptMask) {\n if (i === 0 || promptMask[i - 1] !== '\\\\') {\n if (promptMask[i] === '>') {\n key = key.toUpperCase();\n break;\n } else if (promptMask[i] === '<') {\n key = key.toLowerCase();\n break;\n } else if (promptMask[i] === '|') {\n break;\n }\n }\n --i;\n }\n return key;\n}\n/**\n * To set updated values in the MaskedTextBox.\n *\n * @hidden\n */\nfunction setMaskValue(val) {\n if (this.mask && val !== undefined && (this.prevValue === undefined || this.prevValue !== val)) {\n this.maskKeyPress = true;\n setElementValue.call(this, this.promptMask);\n if (val !== '' && !(val === null && this.floatLabelType === 'Never' && this.placeholder)) {\n this.element.selectionStart = 0;\n this.element.selectionEnd = 0;\n }\n if (val !== null) {\n for (var i = 0; i < val.length; i++) {\n validateValue.call(this, val[i], false, null);\n }\n }\n var newVal = strippedValue.call(this, this.element);\n this.prevValue = newVal;\n this.value = newVal;\n triggerMaskChangeEvent.call(this, null, null);\n this.maskKeyPress = false;\n var labelElement = this.element.parentNode.querySelector('.e-float-text');\n if (this.element.value === this.promptMask && this.floatLabelType === 'Auto' && this.placeholder && !isNullOrUndefined(labelElement) && labelElement.classList.contains(TOPLABEL) && !this.isFocus) {\n removeClass([labelElement], TOPLABEL);\n addClass([labelElement], BOTTOMLABEL);\n setElementValue.call(this, '');\n }\n }\n if (this.mask === null || this.mask === '' && this.value !== undefined) {\n setElementValue.call(this, this.value);\n }\n}\n/**\n * To set updated values in the input element.\n *\n * @hidden\n */\nfunction setElementValue(val, element) {\n if (!this.isFocus && this.floatLabelType === 'Auto' && this.placeholder && isNullOrUndefined(this.value)) {\n val = '';\n }\n var value = strippedValue.call(this, element ? element : this.element, val);\n if (value === null || value === '') {\n Input.setValue(val, element ? element : this.element, this.floatLabelType, false);\n if (this.showClearButton) {\n this.inputObj.clearButton.classList.add('e-clear-icon-hide');\n }\n } else {\n Input.setValue(val, element ? element : this.element, this.floatLabelType, this.showClearButton);\n }\n}\n/**\n * Provide mask support to input textbox through utility method.\n *\n * @hidden\n */\nfunction maskInput(args) {\n var inputEle = getMaskInput(args);\n applyMask.call(inputEle);\n var val = strippedValue.call(this, this.element);\n this.prevValue = val;\n this.value = val;\n if (args.mask) {\n unwireEvents.call(inputEle);\n wireEvents.call(inputEle);\n }\n}\nfunction getMaskInput(args) {\n addClass([args.element], UTILMASK);\n var inputEle = {\n element: args.element,\n mask: args.mask,\n promptMask: '',\n hiddenMask: '',\n escapeMaskValue: '',\n promptChar: args.promptChar ? args.promptChar.length > 1 ? args.promptChar = args.promptChar[0] : args.promptChar : '_',\n value: args.value ? args.value : null,\n regExpCollec: regularExpressions,\n customRegExpCollec: [],\n customCharacters: args.customCharacters,\n undoCollec: [],\n redoCollec: [],\n maskKeyPress: false,\n prevValue: ''\n };\n createMask.call(inputEle);\n return inputEle;\n}\n/**\n * Gets raw value of the textbox which has been masked through utility method.\n *\n * @hidden\n */\nfunction getVal(args) {\n return strippedValue.call(getUtilMaskEle(args), args.element);\n}\n/**\n * Gets masked value of the textbox which has been masked through utility method.\n *\n * @hidden\n */\nfunction getMaskedVal(args) {\n return unstrippedValue.call(getUtilMaskEle(args), args.element);\n}\nfunction getUtilMaskEle(args) {\n var inputEle;\n if (!isNullOrUndefined(args) && args.element.classList.contains(UTILMASK)) {\n inputEle = getMaskInput(args);\n }\n return inputEle;\n}\n/**\n * Arguments to perform undo and redo functionalities.\n *\n * @hidden\n */\nvar MaskUndo = /** @__PURE__ @class */function () {\n function MaskUndo() {}\n return MaskUndo;\n}();\n/* eslint-enable valid-jsdoc, jsdoc/require-jsdoc, jsdoc/require-returns, jsdoc/require-param */\n\nvar __extends$1 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 ROOT$1 = 'e-control-wrapper e-mask';\nvar INPUT = 'e-input';\nvar COMPONENT$1 = 'e-maskedtextbox';\nvar CONTROL$1 = 'e-control';\nvar MASKINPUT_FOCUS = 'e-input-focus';\nvar wrapperAttr = ['title', 'style', 'class'];\n/**\n * The MaskedTextBox allows the user to enter the valid input only based on the provided mask.\n * ```html\n * \n * ```\n * ```typescript\n * \n * ```\n */\nvar MaskedTextBox = /** @__PURE__ @class */function (_super) {\n __extends$1(MaskedTextBox, _super);\n /**\n *\n * @param {MaskedTextBoxModel} options - Specifies the MaskedTextBox model.\n * @param {string | HTMLElement | HTMLInputElement} element - Specifies the element to render as component.\n * @private\n */\n function MaskedTextBox(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.initInputValue = '';\n _this.preventChange = false;\n _this.isClicked = false;\n _this.maskOptions = options;\n return _this;\n }\n /**\n * Gets the component name.\n *\n * @returns {string} Returns the component name.\n * @private\n */\n MaskedTextBox.prototype.getModuleName = function () {\n return 'maskedtextbox';\n };\n /**\n * Initializes the event handler\n *\n * @returns {void}\n * @private\n */\n MaskedTextBox.prototype.preRender = function () {\n this.promptMask = '';\n this.hiddenMask = '';\n this.escapeMaskValue = '';\n this.regExpCollec = regularExpressions;\n this.customRegExpCollec = [];\n this.maskedRegExp = [];\n this.undoCollec = [];\n this.redoCollec = [];\n this.changeEventArgs = {};\n this.focusEventArgs = {};\n this.blurEventArgs = {};\n this.maskKeyPress = false;\n this.isFocus = false;\n this.isInitial = false;\n this.isIosInvalid = false;\n var ejInstance = getValue('ej2_instances', this.element);\n this.cloneElement = this.element.cloneNode(true);\n removeClass([this.cloneElement], [CONTROL$1, COMPONENT$1, 'e-lib']);\n this.angularTagName = null;\n this.formElement = closest(this.element, 'form');\n if (this.element.tagName === 'EJS-MASKEDTEXTBOX') {\n this.angularTagName = this.element.tagName;\n var input = this.createElement('input');\n for (var i = 0; i < this.element.attributes.length; i++) {\n input.setAttribute(this.element.attributes[i].nodeName, this.element.attributes[i].nodeValue);\n input.innerHTML = this.element.innerHTML;\n }\n if (this.element.hasAttribute('id')) {\n this.element.removeAttribute('id');\n }\n if (this.element.hasAttribute('name')) {\n this.element.removeAttribute('name');\n }\n this.element.classList.remove('e-control', 'e-maskedtextbox');\n this.element.classList.add('e-mask-container');\n this.element.appendChild(input);\n this.element = input;\n setValue('ej2_instances', ejInstance, this.element);\n }\n this.updateHTMLAttrToElement();\n this.checkHtmlAttributes(false);\n if (this.formElement) {\n this.initInputValue = this.value;\n }\n };\n /* eslint-disable valid-jsdoc, jsdoc/require-returns-description */\n /**\n * Gets the properties to be maintained in the persisted state.\n *\n * @returns {string}\n */\n MaskedTextBox.prototype.getPersistData = function () {\n var keyEntity = ['value'];\n return this.addOnPersist(keyEntity);\n };\n /**\n * Initializes the component rendering.\n *\n * @returns {void}\n * @private\n */\n MaskedTextBox.prototype.render = function () {\n if (this.element.tagName.toLowerCase() === 'input') {\n if (this.floatLabelType === 'Never') {\n addClass([this.element], INPUT);\n }\n this.createWrapper();\n this.updateHTMLAttrToWrapper();\n if (this.element.name === '') {\n this.element.setAttribute('name', this.element.id);\n }\n this.isInitial = true;\n this.resetMaskedTextBox();\n this.isInitial = false;\n this.setMaskPlaceholder(true, false);\n this.setWidth(this.width);\n this.preEleVal = this.element.value;\n if (!Browser.isDevice && (Browser.info.version === '11.0' || Browser.info.name === 'edge')) {\n this.element.blur();\n }\n if (Browser.isDevice && Browser.isIos) {\n this.element.blur();\n }\n if (this.element.getAttribute('value') || this.value) {\n this.element.setAttribute('value', this.element.value);\n }\n if (!isNullOrUndefined(closest(this.element, 'fieldset')) && closest(this.element, 'fieldset').disabled) {\n this.enabled = false;\n }\n if (!this.element.hasAttribute('aria-labelledby') && !this.element.hasAttribute('placeholder') && !this.element.hasAttribute('aria-label')) {\n this.element.setAttribute('aria-label', 'maskedtextbox');\n }\n this.renderComplete();\n }\n };\n MaskedTextBox.prototype.updateHTMLAttrToElement = function () {\n if (!isNullOrUndefined(this.htmlAttributes)) {\n for (var _i = 0, _a = Object.keys(this.htmlAttributes); _i < _a.length; _i++) {\n var key = _a[_i];\n if (wrapperAttr.indexOf(key) < 0) {\n this.element.setAttribute(key, this.htmlAttributes[\"\" + key]);\n }\n }\n }\n };\n MaskedTextBox.prototype.updateCssClass = function (newClass, oldClass) {\n Input.setCssClass(this.getValidClassList(newClass), [this.inputObj.container], this.getValidClassList(oldClass));\n };\n MaskedTextBox.prototype.getValidClassList = function (maskClassName) {\n var result = maskClassName;\n if (!isNullOrUndefined(maskClassName) && maskClassName !== '') {\n result = maskClassName.replace(/\\s+/g, ' ').trim();\n }\n return result;\n };\n MaskedTextBox.prototype.updateHTMLAttrToWrapper = function () {\n if (!isNullOrUndefined(this.htmlAttributes)) {\n for (var _i = 0, _a = Object.keys(this.htmlAttributes); _i < _a.length; _i++) {\n var key = _a[_i];\n if (wrapperAttr.indexOf(key) > -1) {\n if (key === 'class') {\n var updatedClassValues = this.htmlAttributes[\"\" + key].replace(/\\s+/g, ' ').trim();\n if (updatedClassValues !== '') {\n addClass([this.inputObj.container], updatedClassValues.split(' '));\n }\n } else if (key === 'style') {\n var maskStyle = this.inputObj.container.getAttribute(key);\n maskStyle = !isNullOrUndefined(maskStyle) ? maskStyle + this.htmlAttributes[\"\" + key] : this.htmlAttributes[\"\" + key];\n this.inputObj.container.setAttribute(key, maskStyle);\n } else {\n this.inputObj.container.setAttribute(key, this.htmlAttributes[\"\" + key]);\n }\n }\n }\n }\n };\n MaskedTextBox.prototype.resetMaskedTextBox = function () {\n this.promptMask = '';\n this.hiddenMask = '';\n this.escapeMaskValue = '';\n this.customRegExpCollec = [];\n this.undoCollec = [];\n this.redoCollec = [];\n if (this.promptChar && this.promptChar.length > 1) {\n this.promptChar = this.promptChar[0];\n }\n createMask.call(this);\n applyMask.call(this);\n if (this.mask === null || this.mask === '' && this.value !== undefined) {\n setElementValue.call(this, this.value);\n }\n var val = strippedValue.call(this, this.element);\n this.prevValue = val;\n this.value = val;\n if (!this.isInitial) {\n unwireEvents.call(this);\n }\n wireEvents.call(this);\n };\n MaskedTextBox.prototype.setMaskPlaceholder = function (setVal, dynamicPlaceholder) {\n if (dynamicPlaceholder || this.placeholder) {\n Input.setPlaceholder(this.placeholder, this.element);\n if (this.element.value === this.promptMask && setVal && this.floatLabelType !== 'Always' || this.element.value === this.promptMask && this.floatLabelType === 'Never') {\n setElementValue.call(this, '');\n }\n }\n };\n MaskedTextBox.prototype.setWidth = function (width) {\n if (!isNullOrUndefined(width)) {\n if (typeof width === 'number') {\n this.inputObj.container.style.width = formatUnit(width);\n this.element.style.width = formatUnit(width);\n } else if (typeof width === 'string') {\n var elementWidth = width.match(/px|%|em/) ? width : formatUnit(width);\n this.inputObj.container.style.width = elementWidth;\n this.element.style.width = elementWidth;\n }\n }\n };\n MaskedTextBox.prototype.checkHtmlAttributes = function (isDynamic) {\n var attributes = isDynamic ? isNullOrUndefined(this.htmlAttributes) ? [] : Object.keys(this.htmlAttributes) : ['placeholder', 'disabled', 'value', 'readonly'];\n for (var _i = 0, attributes_1 = attributes; _i < attributes_1.length; _i++) {\n var key = attributes_1[_i];\n if (!isNullOrUndefined(this.element.getAttribute(key))) {\n switch (key) {\n case 'placeholder':\n if (isNullOrUndefined(this.maskOptions) || this.maskOptions['placeholder'] === undefined || isDynamic) {\n this.setProperties({\n placeholder: this.element.placeholder\n }, !isDynamic);\n }\n break;\n case 'disabled':\n if (isNullOrUndefined(this.maskOptions) || this.maskOptions['enabled'] === undefined || isDynamic) {\n var isEnabled = this.element.getAttribute(key) === 'disabled' || this.element.getAttribute(key) === '' || this.element.getAttribute(key) === 'true' ? false : true;\n this.setProperties({\n enabled: isEnabled\n }, !isDynamic);\n }\n break;\n case 'value':\n if (isNullOrUndefined(this.maskOptions) || this.maskOptions['value'] === undefined || isDynamic) {\n this.setProperties({\n value: this.element.value\n }, !isDynamic);\n }\n break;\n case 'readonly':\n if (isNullOrUndefined(this.maskOptions) || this.maskOptions['readonly'] === undefined || isDynamic) {\n var isReadonly = this.element.getAttribute(key) === 'readonly' || this.element.getAttribute(key) === '' || this.element.getAttribute(key) === 'true' ? true : false;\n this.setProperties({\n readonly: isReadonly\n }, !isDynamic);\n }\n break;\n }\n }\n }\n };\n MaskedTextBox.prototype.createWrapper = function () {\n var updatedCssClassValues = this.cssClass;\n if (!isNullOrUndefined(this.cssClass) && this.cssClass !== '') {\n updatedCssClassValues = this.getValidClassList(this.cssClass);\n }\n this.inputObj = Input.createInput({\n element: this.element,\n floatLabelType: this.floatLabelType,\n properties: {\n enableRtl: this.enableRtl,\n cssClass: updatedCssClassValues,\n enabled: this.enabled,\n readonly: this.readonly,\n placeholder: this.placeholder,\n showClearButton: this.showClearButton\n }\n }, this.createElement);\n this.inputObj.container.setAttribute('class', ROOT$1 + ' ' + this.inputObj.container.getAttribute('class'));\n };\n /**\n * Calls internally if any of the property value is changed.\n *\n * @param {MaskedTextBoxModel} newProp - Returns the dynamic property value of the component.\n * @param {MaskedTextBoxModel} oldProp - Returns the previous property value of the component.\n * @returns {void}\n * @hidden\n */\n MaskedTextBox.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'value':\n setMaskValue.call(this, this.value);\n if (this.placeholder && !this.isFocus) {\n this.setMaskPlaceholder(false, false);\n }\n if (this.value === '' && oldProp.value != null) {\n this.element.selectionStart = 0;\n this.element.selectionEnd = 0;\n }\n break;\n case 'placeholder':\n this.setMaskPlaceholder(true, true);\n break;\n case 'width':\n this.setWidth(newProp.width);\n Input.calculateWidth(this.element, this.inputObj.container);\n break;\n case 'cssClass':\n this.updateCssClass(newProp.cssClass, oldProp.cssClass);\n break;\n case 'enabled':\n Input.setEnabled(newProp.enabled, this.element, this.floatLabelType, this.inputObj.container);\n break;\n case 'readonly':\n Input.setReadonly(newProp.readonly, this.element);\n break;\n case 'enableRtl':\n Input.setEnableRtl(newProp.enableRtl, [this.inputObj.container]);\n break;\n case 'customCharacters':\n this.customCharacters = newProp.customCharacters;\n this.resetMaskedTextBox();\n break;\n case 'showClearButton':\n Input.setClearButton(newProp.showClearButton, this.element, this.inputObj, undefined, this.createElement);\n bindClearEvent.call(this);\n break;\n case 'floatLabelType':\n this.floatLabelType = newProp.floatLabelType;\n Input.removeFloating(this.inputObj);\n Input.addFloating(this.element, this.floatLabelType, this.placeholder, this.createElement);\n break;\n case 'htmlAttributes':\n this.updateHTMLAttrToElement();\n this.updateHTMLAttrToWrapper();\n this.checkHtmlAttributes(true);\n break;\n case 'mask':\n {\n var strippedValue_1 = this.value;\n this.mask = newProp.mask;\n this.maskedRegExp = [];\n this.updateValue(strippedValue_1);\n }\n break;\n case 'promptChar':\n {\n if (newProp.promptChar.length > 1) {\n newProp.promptChar = newProp.promptChar[0];\n }\n if (newProp.promptChar) {\n this.promptChar = newProp.promptChar;\n } else {\n this.promptChar = '_';\n }\n /* eslint-disable-next-line security/detect-non-literal-regexp */\n var value = this.element.value.replace(new RegExp('[' + oldProp.promptChar + ']', 'g'), this.promptChar);\n if (this.promptMask === this.element.value) {\n /* eslint-disable-next-line security/detect-non-literal-regexp */\n value = this.promptMask.replace(new RegExp('[' + oldProp.promptChar + ']', 'g'), this.promptChar);\n }\n /* eslint-disable-next-line security/detect-non-literal-regexp */\n this.promptMask = this.promptMask.replace(new RegExp('[' + oldProp.promptChar + ']', 'g'), this.promptChar);\n this.undoCollec = this.redoCollec = [];\n setElementValue.call(this, value);\n break;\n }\n }\n }\n this.preventChange = this.isAngular && this.preventChange ? !this.preventChange : this.preventChange;\n };\n MaskedTextBox.prototype.updateValue = function (strippedVal) {\n this.resetMaskedTextBox();\n setMaskValue.call(this, strippedVal);\n };\n /**\n * Gets the value of the MaskedTextBox with the masked format.\n * By using `value` property, you can get the raw value of maskedtextbox without literals and prompt characters.\n *\n * @returns {string} Returns the value with the masked format.\n */\n MaskedTextBox.prototype.getMaskedValue = function () {\n return unstrippedValue.call(this, this.element);\n };\n /**\n * Sets the focus to widget for interaction.\n *\n * @returns {void}\n */\n MaskedTextBox.prototype.focusIn = function () {\n if (document.activeElement !== this.element && this.enabled) {\n this.isFocus = true;\n this.element.focus();\n addClass([this.inputObj.container], [MASKINPUT_FOCUS]);\n }\n };\n /**\n * Remove the focus from widget, if the widget is in focus state.\n *\n * @returns {void}\n */\n MaskedTextBox.prototype.focusOut = function () {\n if (document.activeElement === this.element && this.enabled) {\n this.isFocus = false;\n this.element.blur();\n removeClass([this.inputObj.container], [MASKINPUT_FOCUS]);\n }\n };\n /**\n * Removes the component from the DOM and detaches all its related event handlers.\n * Also it maintains the initial input element from the DOM.\n *\n * @method destroy\n * @returns {void}\n */\n MaskedTextBox.prototype.destroy = function () {\n unwireEvents.call(this);\n if (this.showClearButton) {\n this.clearButton = document.getElementsByClassName('e-clear-icon')[0];\n }\n var attrArray = ['aria-labelledby', 'role', 'autocomplete', 'aria-readonly', 'aria-disabled', 'autocapitalize', 'spellcheck', 'aria-autocomplete', 'aria-live', 'aria-invalid'];\n for (var i = 0; i < attrArray.length; i++) {\n this.element.removeAttribute(attrArray[i]);\n }\n this.element.classList.remove('e-input');\n if (this.inputObj) {\n this.inputObj.container.insertAdjacentElement('afterend', this.element);\n detach(this.inputObj.container);\n }\n this.blurEventArgs = null;\n Input.destroy({\n element: this.element,\n floatLabelType: this.floatLabelType,\n properties: this.properties\n }, this.clearButton);\n this.changeEventArgs = null;\n this.inputObj = null;\n _super.prototype.destroy.call(this);\n };\n __decorate$1([Property(null)], MaskedTextBox.prototype, \"cssClass\", void 0);\n __decorate$1([Property(null)], MaskedTextBox.prototype, \"width\", void 0);\n __decorate$1([Property(null)], MaskedTextBox.prototype, \"placeholder\", void 0);\n __decorate$1([Property('Never')], MaskedTextBox.prototype, \"floatLabelType\", void 0);\n __decorate$1([Property({})], MaskedTextBox.prototype, \"htmlAttributes\", void 0);\n __decorate$1([Property(true)], MaskedTextBox.prototype, \"enabled\", void 0);\n __decorate$1([Property(false)], MaskedTextBox.prototype, \"readonly\", void 0);\n __decorate$1([Property(false)], MaskedTextBox.prototype, \"showClearButton\", void 0);\n __decorate$1([Property(false)], MaskedTextBox.prototype, \"enablePersistence\", void 0);\n __decorate$1([Property(null)], MaskedTextBox.prototype, \"mask\", void 0);\n __decorate$1([Property('_')], MaskedTextBox.prototype, \"promptChar\", void 0);\n __decorate$1([Property(null)], MaskedTextBox.prototype, \"value\", void 0);\n __decorate$1([Property(null)], MaskedTextBox.prototype, \"customCharacters\", void 0);\n __decorate$1([Event()], MaskedTextBox.prototype, \"created\", void 0);\n __decorate$1([Event()], MaskedTextBox.prototype, \"destroyed\", void 0);\n __decorate$1([Event()], MaskedTextBox.prototype, \"change\", void 0);\n __decorate$1([Event()], MaskedTextBox.prototype, \"focus\", void 0);\n __decorate$1([Event()], MaskedTextBox.prototype, \"blur\", void 0);\n MaskedTextBox = __decorate$1([NotifyPropertyChanges], MaskedTextBox);\n return MaskedTextBox;\n}(Component);\nvar __extends$2 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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};\n/**\n * Configures the ticks data of the Slider.\n */\nvar TicksData = /** @__PURE__ @class */function (_super) {\n __extends$2(TicksData, _super);\n function TicksData() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$2([Property('None')], TicksData.prototype, \"placement\", void 0);\n __decorate$2([Property(10)], TicksData.prototype, \"largeStep\", void 0);\n __decorate$2([Property(1)], TicksData.prototype, \"smallStep\", void 0);\n __decorate$2([Property(false)], TicksData.prototype, \"showSmallTicks\", void 0);\n __decorate$2([Property(null)], TicksData.prototype, \"format\", void 0);\n return TicksData;\n}(ChildProperty);\n/**\n * It illustrates the color track data in slider.\n * {% codeBlock src='slider/colorrange/index.md' %}{% endcodeBlock %}\n */\nvar ColorRangeData = /** @__PURE__ @class */function (_super) {\n __extends$2(ColorRangeData, _super);\n function ColorRangeData() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$2([Property(null)], ColorRangeData.prototype, \"color\", void 0);\n __decorate$2([Property(null)], ColorRangeData.prototype, \"start\", void 0);\n __decorate$2([Property(null)], ColorRangeData.prototype, \"end\", void 0);\n return ColorRangeData;\n}(ChildProperty);\n/**\n * It illustrates the limit data in slider.\n * {% codeBlock src='slider/limits/index.md' %}{% endcodeBlock %}\n */\nvar LimitData = /** @__PURE__ @class */function (_super) {\n __extends$2(LimitData, _super);\n function LimitData() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$2([Property(false)], LimitData.prototype, \"enabled\", void 0);\n __decorate$2([Property(null)], LimitData.prototype, \"minStart\", void 0);\n __decorate$2([Property(null)], LimitData.prototype, \"minEnd\", void 0);\n __decorate$2([Property(null)], LimitData.prototype, \"maxStart\", void 0);\n __decorate$2([Property(null)], LimitData.prototype, \"maxEnd\", void 0);\n __decorate$2([Property(false)], LimitData.prototype, \"startHandleFixed\", void 0);\n __decorate$2([Property(false)], LimitData.prototype, \"endHandleFixed\", void 0);\n return LimitData;\n}(ChildProperty);\n/**\n * It illustrates the tooltip data in slider.\n */\nvar TooltipData = /** @__PURE__ @class */function (_super) {\n __extends$2(TooltipData, _super);\n function TooltipData() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$2([Property('')], TooltipData.prototype, \"cssClass\", void 0);\n __decorate$2([Property('Before')], TooltipData.prototype, \"placement\", void 0);\n __decorate$2([Property('Focus')], TooltipData.prototype, \"showOn\", void 0);\n __decorate$2([Property(false)], TooltipData.prototype, \"isVisible\", void 0);\n __decorate$2([Property(null)], TooltipData.prototype, \"format\", void 0);\n return TooltipData;\n}(ChildProperty);\nvar bootstrapTooltipOffset = 6;\nvar bootstrap4TooltipOffset = 3;\nvar classNames = {\n root: 'e-slider',\n rtl: 'e-rtl',\n sliderHiddenInput: 'e-slider-input',\n controlWrapper: 'e-control-wrapper',\n sliderHandle: 'e-handle',\n rangeBar: 'e-range',\n sliderButton: 'e-slider-button',\n firstButton: 'e-first-button',\n secondButton: 'e-second-button',\n scale: 'e-scale',\n tick: 'e-tick',\n large: 'e-large',\n tickValue: 'e-tick-value',\n sliderTooltip: 'e-slider-tooltip',\n sliderHover: 'e-slider-hover',\n sliderFirstHandle: 'e-handle-first',\n sliderSecondHandle: 'e-handle-second',\n sliderDisabled: 'e-disabled',\n sliderContainer: 'e-slider-container',\n horizontalTooltipBefore: 'e-slider-horizontal-before',\n horizontalTooltipAfter: 'e-slider-horizontal-after',\n verticalTooltipBefore: 'e-slider-vertical-before',\n verticalTooltipAfter: 'e-slider-vertical-after',\n materialTooltip: 'e-material-tooltip',\n materialTooltipOpen: 'e-material-tooltip-open',\n materialTooltipActive: 'e-tooltip-active',\n materialSlider: 'e-material-slider',\n sliderTrack: 'e-slider-track',\n sliderHorizantalColor: 'e-slider-horizantal-color',\n sliderVerticalColor: 'e-slider-vertical-color',\n sliderHandleFocused: 'e-handle-focused',\n verticalSlider: 'e-vertical',\n horizontalSlider: 'e-horizontal',\n sliderHandleStart: 'e-handle-start',\n sliderTooltipStart: 'e-material-tooltip-start',\n sliderTabHandle: 'e-tab-handle',\n sliderButtonIcon: 'e-button-icon',\n sliderSmallSize: 'e-small-size',\n sliderTickPosition: 'e-tick-pos',\n sliderFirstTick: 'e-first-tick',\n sliderLastTick: 'e-last-tick',\n sliderButtonClass: 'e-slider-btn',\n sliderTooltipWrapper: 'e-tooltip-wrap',\n sliderTabTrack: 'e-tab-track',\n sliderTabRange: 'e-tab-range',\n sliderActiveHandle: 'e-handle-active',\n sliderMaterialHandle: 'e-material-handle',\n sliderMaterialRange: 'e-material-range',\n sliderMaterialDefault: 'e-material-default',\n materialTooltipShow: 'e-material-tooltip-show',\n materialTooltipHide: 'e-material-tooltip-hide',\n readonly: 'e-read-only',\n limits: 'e-limits',\n limitBarDefault: 'e-limit-bar',\n limitBarFirst: 'e-limit-first',\n limitBarSecond: 'e-limit-second',\n dragHorizontal: 'e-drag-horizontal',\n dragVertical: 'e-drag-vertical'\n};\n/**\n * The Slider component allows the user to select a value or range\n * of values in-between a min and max range, by dragging the handle over the slider bar.\n * ```html\n *
\n * ```\n * ```typescript\n * \n * ```\n */\nvar Slider = /** @__PURE__ @class */function (_super) {\n __extends$2(Slider, _super);\n function Slider(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.horDir = 'left';\n _this.verDir = 'bottom';\n _this.transition = {\n handle: 'left .4s cubic-bezier(.25, .8, .25, 1), right .4s cubic-bezier(.25, .8, .25, 1), ' + 'top .4s cubic-bezier(.25, .8, .25, 1) , bottom .4s cubic-bezier(.25, .8, .25, 1)',\n rangeBar: 'all .4s cubic-bezier(.25, .8, .25, 1)'\n };\n _this.transitionOnMaterialTooltip = {\n handle: 'left 1ms ease-out, right 1ms ease-out, bottom 1ms ease-out, top 1ms ease-out',\n rangeBar: 'left 1ms ease-out, right 1ms ease-out, bottom 1ms ease-out, width 1ms ease-out, height 1ms ease-out'\n };\n _this.scaleTransform = 'transform .4s cubic-bezier(.25, .8, .25, 1)';\n _this.customAriaText = null;\n _this.drag = true;\n _this.isDragComplete = false;\n _this.initialTooltip = true;\n return _this;\n }\n Slider.prototype.preRender = function () {\n var localeText = {\n incrementTitle: 'Increase',\n decrementTitle: 'Decrease'\n };\n this.l10n = new L10n('slider', localeText, this.locale);\n this.isElementFocused = false;\n this.tickElementCollection = [];\n this.tooltipFormatInfo = {};\n this.ticksFormatInfo = {};\n this.initCultureInfo();\n this.initCultureFunc();\n this.formChecker();\n };\n Slider.prototype.formChecker = function () {\n var formElement = closest(this.element, 'form');\n if (formElement) {\n this.isForm = true;\n // this condition needs to be checked, if the slider is going to be refreshed by `refresh()`\n // then we need to revert the slider `value` back to `formResetValue` to preserve the initial value\n if (!isNullOrUndefined(this.formResetValue)) {\n this.setProperties({\n 'value': this.formResetValue\n }, true);\n }\n this.formResetValue = this.value;\n if (this.type === 'Range' && (isNullOrUndefined(this.formResetValue) || typeof this.formResetValue !== 'object')) {\n this.formResetValue = [parseFloat(formatUnit(this.min)), parseFloat(formatUnit(this.max))];\n } else if (isNullOrUndefined(this.formResetValue)) {\n this.formResetValue = parseFloat(formatUnit(this.min));\n }\n this.formElement = formElement;\n } else {\n this.isForm = false;\n }\n };\n Slider.prototype.initCultureFunc = function () {\n this.internationalization = new Internationalization(this.locale);\n };\n Slider.prototype.initCultureInfo = function () {\n this.tooltipFormatInfo.format = !isNullOrUndefined(this.tooltip.format) ? this.tooltip.format : null;\n this.ticksFormatInfo.format = !isNullOrUndefined(this.ticks.format) ? this.ticks.format : null;\n };\n Slider.prototype.formatString = function (value, formatInfo) {\n var formatValue = null;\n var formatString = null;\n if (value || value === 0) {\n formatValue = this.formatNumber(value);\n var numberOfDecimals = this.numberOfDecimals(value);\n formatString = this.internationalization.getNumberFormat(formatInfo)(this.makeRoundNumber(value, numberOfDecimals));\n }\n return {\n elementVal: formatValue,\n formatString: formatString\n };\n };\n Slider.prototype.formatNumber = function (value) {\n var numberOfDecimals = this.numberOfDecimals(value);\n return this.internationalization.getNumberFormat({\n maximumFractionDigits: numberOfDecimals,\n minimumFractionDigits: numberOfDecimals,\n useGrouping: false\n })(value);\n };\n Slider.prototype.numberOfDecimals = function (value) {\n var decimalPart = value.toString().split('.')[1];\n var numberOfDecimals = !decimalPart || !decimalPart.length ? 0 : decimalPart.length;\n return numberOfDecimals;\n };\n Slider.prototype.makeRoundNumber = function (value, precision) {\n var decimals = precision || 0;\n return Number(value.toFixed(decimals));\n };\n Slider.prototype.fractionalToInteger = function (value) {\n value = this.numberOfDecimals(value) === 0 ? Number(value).toFixed(this.noOfDecimals) : value;\n var tens = 1;\n for (var i = 0; i < this.noOfDecimals; i++) {\n tens *= 10;\n }\n value = Number((value * tens).toFixed(0));\n return value;\n };\n /**\n * To Initialize the control rendering\n *\n * @returns {void}\n * @private\n */\n Slider.prototype.render = function () {\n var _this = this;\n this.initialize();\n this.initRender();\n this.wireEvents();\n this.setZindex();\n this.renderComplete();\n if (this.element.tagName === 'EJS-SLIDER') {\n if (this.getTheme(this.sliderContainer) === 'none') {\n setTimeout(function () {\n _this.refresh();\n }, 0);\n }\n }\n };\n Slider.prototype.initialize = function () {\n addClass([this.element], classNames.root);\n this.setCSSClass();\n };\n Slider.prototype.setElementWidth = function (width) {\n if (!isNullOrUndefined(width) && !isNullOrUndefined(this.sliderContainer)) {\n if (typeof width === 'number') {\n this.sliderContainer.style.width = formatUnit(width);\n } else if (typeof width === 'string') {\n this.sliderContainer.style.width = width.match(/px|%|em/) ? width : formatUnit(width);\n }\n }\n };\n Slider.prototype.setCSSClass = function (oldCSSClass) {\n if (oldCSSClass) {\n removeClass([this.element], oldCSSClass.split(' '));\n }\n if (this.cssClass) {\n addClass([this.element], this.cssClass.split(' '));\n }\n };\n Slider.prototype.setEnabled = function () {\n if (!this.enabled) {\n addClass([this.sliderContainer], [classNames.sliderDisabled]);\n if (this.tooltip.isVisible && this.tooltipElement && this.tooltip.showOn === 'Always') {\n this.tooltipElement.classList.add(classNames.sliderDisabled);\n }\n this.unwireEvents();\n } else {\n removeClass([this.sliderContainer], [classNames.sliderDisabled]);\n if (this.tooltip.isVisible && this.tooltipElement && this.tooltip.showOn === 'Always') {\n this.tooltipElement.classList.remove(classNames.sliderDisabled);\n }\n this.wireEvents();\n }\n };\n Slider.prototype.getTheme = function (container) {\n var theme = window.getComputedStyle(container, ':after').getPropertyValue('content');\n return theme.replace(/['\"]+/g, '');\n };\n /**\n * Initialize the rendering\n *\n * @returns {void}\n * @private\n */\n Slider.prototype.initRender = function () {\n this.sliderContainer = this.createElement('div', {\n className: classNames.sliderContainer + ' ' + classNames.controlWrapper\n });\n this.element.parentNode.insertBefore(this.sliderContainer, this.element);\n this.sliderContainer.appendChild(this.element);\n this.sliderTrack = this.createElement('div', {\n className: classNames.sliderTrack\n });\n this.element.appendChild(this.sliderTrack);\n this.setElementWidth(this.width);\n this.element.tabIndex = -1;\n this.getThemeInitialization();\n this.setHandler();\n this.createRangeBar();\n if (this.limits.enabled) {\n this.createLimitBar();\n }\n this.setOrientClass();\n this.hiddenInput = this.createElement('input', {\n attrs: {\n type: 'hidden',\n value: isNullOrUndefined(this.value) ? isNullOrUndefined(this.min) ? '0' : this.min.toString() : this.value.toString(),\n name: this.element.getAttribute('name') || this.element.getAttribute('id') || '_' + (Math.random() * 1000).toFixed(0) + 'slider',\n class: classNames.sliderHiddenInput\n }\n });\n this.hiddenInput.tabIndex = -1;\n this.sliderContainer.appendChild(this.hiddenInput);\n if (this.showButtons) {\n this.setButtons();\n }\n this.setEnableRTL();\n if (this.type === 'Range') {\n this.rangeValueUpdate();\n } else {\n this.value = isNullOrUndefined(this.value) ? isNullOrUndefined(this.min) ? 0 : parseFloat(formatUnit(this.min.toString())) : this.value;\n }\n this.previousVal = this.type !== 'Range' ? this.checkHandleValue(parseFloat(formatUnit(this.value.toString()))) : [this.checkHandleValue(parseFloat(formatUnit(this.value[0].toString()))), this.checkHandleValue(parseFloat(formatUnit(this.value[1].toString())))];\n this.previousChanged = this.previousVal;\n if (!isNullOrUndefined(this.element.hasAttribute('name'))) {\n this.element.removeAttribute('name');\n }\n this.setValue();\n if (this.limits.enabled) {\n this.setLimitBar();\n }\n if (this.ticks.placement !== 'None') {\n this.renderScale();\n }\n if (this.tooltip.isVisible) {\n this.renderTooltip();\n }\n if (!this.enabled) {\n addClass([this.sliderContainer], [classNames.sliderDisabled]);\n } else {\n removeClass([this.sliderContainer], [classNames.sliderDisabled]);\n }\n if (this.readonly) {\n addClass([this.sliderContainer], [classNames.readonly]);\n } else {\n removeClass([this.sliderContainer], [classNames.readonly]);\n }\n };\n Slider.prototype.getThemeInitialization = function () {\n this.isMaterial = this.getTheme(this.sliderContainer) === 'material' || this.getTheme(this.sliderContainer) === 'material-dark';\n this.isMaterial3 = this.getTheme(this.sliderContainer) === 'Material3' || this.getTheme(this.sliderContainer) === 'Material3-dark';\n this.isBootstrap = this.getTheme(this.sliderContainer) === 'bootstrap' || this.getTheme(this.sliderContainer) === 'bootstrap-dark';\n this.isBootstrap4 = this.getTheme(this.sliderContainer) === 'bootstrap4';\n this.isTailwind = this.getTheme(this.sliderContainer) === 'tailwind' || this.getTheme(this.sliderContainer) === 'tailwind-dark';\n this.isBootstrap5 = this.getTheme(this.sliderContainer) === 'bootstrap5';\n this.isFluent = this.getTheme(this.sliderContainer) === 'FluentUI';\n this.isFluent2 = this.getTheme(this.sliderContainer) === 'fluent2';\n this.isBootstrap5Dot3 = this.getTheme(this.sliderContainer) === 'bootstrap5.3';\n this.isMaterialTooltip = (this.isMaterial || this.isMaterial3) && this.type !== 'Range' && this.tooltip.isVisible;\n };\n Slider.prototype.createRangeBar = function () {\n if (this.type !== 'Default') {\n this.rangeBar = this.createElement('div', {\n attrs: {\n class: classNames.rangeBar\n }\n });\n this.element.appendChild(this.rangeBar);\n if (this.drag && this.type === 'Range') {\n if (this.orientation === 'Horizontal') {\n this.rangeBar.classList.add(classNames.dragHorizontal);\n } else {\n this.rangeBar.classList.add(classNames.dragVertical);\n }\n }\n }\n };\n Slider.prototype.createLimitBar = function () {\n var firstElementClassName = this.type !== 'Range' ? classNames.limitBarDefault : classNames.limitBarFirst;\n firstElementClassName += ' ' + classNames.limits;\n this.limitBarFirst = this.createElement('div', {\n attrs: {\n class: firstElementClassName\n }\n });\n this.element.appendChild(this.limitBarFirst);\n if (this.type === 'Range') {\n this.limitBarSecond = this.createElement('div', {\n attrs: {\n class: classNames.limitBarSecond + ' ' + classNames.limits\n }\n });\n this.element.appendChild(this.limitBarSecond);\n }\n };\n Slider.prototype.setOrientClass = function () {\n if (this.orientation !== 'Vertical') {\n this.sliderContainer.classList.remove(classNames.verticalSlider);\n this.sliderContainer.classList.add(classNames.horizontalSlider);\n this.firstHandle.setAttribute('aria-orientation', 'horizontal');\n if (this.type === 'Range') {\n this.secondHandle.setAttribute('aria-orientation', 'horizontal');\n }\n } else {\n this.sliderContainer.classList.remove(classNames.horizontalSlider);\n this.sliderContainer.classList.add(classNames.verticalSlider);\n this.firstHandle.setAttribute('aria-orientation', 'vertical');\n if (this.type === 'Range') {\n this.secondHandle.setAttribute('aria-orientation', 'vertical');\n }\n }\n };\n Slider.prototype.setAriaAttributes = function (element) {\n var _this = this;\n var min = this.min;\n var max = this.max;\n if (!isNullOrUndefined(this.customValues) && this.customValues.length > 0) {\n min = this.customValues[0];\n max = this.customValues[this.customValues.length - 1];\n }\n if (this.type !== 'Range') {\n attributes(element, {\n 'aria-valuemin': isNullOrUndefined(min) ? '0' : min.toString(),\n 'aria-valuemax': isNullOrUndefined(max) ? '100' : max.toString()\n });\n } else {\n var range = !isNullOrUndefined(this.customValues) && this.customValues.length > 0 ? [[min.toString(), this.customValues[this.value[1]].toString()], [this.customValues[this.value[0]].toString(), max.toString()]] : [[min.toString(), this.value[1].toString()], [this.value[0].toString(), max.toString()]];\n range.forEach(function (range, index) {\n var element = index === 0 ? _this.firstHandle : _this.secondHandle;\n if (element) {\n attributes(element, {\n 'aria-valuemin': range[0],\n 'aria-valuemax': range[1]\n });\n }\n });\n }\n };\n Slider.prototype.createSecondHandle = function () {\n this.secondHandle = this.createElement('div', {\n attrs: {\n class: classNames.sliderHandle,\n 'role': 'slider',\n tabIndex: '0',\n 'aria-label': 'slider'\n }\n });\n this.secondHandle.classList.add(classNames.sliderSecondHandle);\n this.element.appendChild(this.secondHandle);\n };\n Slider.prototype.createFirstHandle = function () {\n this.firstHandle = this.createElement('div', {\n attrs: {\n class: classNames.sliderHandle,\n 'role': 'slider',\n tabIndex: '0',\n 'aria-label': 'slider'\n }\n });\n this.firstHandle.classList.add(classNames.sliderFirstHandle);\n this.element.appendChild(this.firstHandle);\n if (this.isMaterialTooltip) {\n this.materialHandle = this.createElement('div', {\n attrs: {\n class: classNames.sliderHandle + ' ' + classNames.sliderMaterialHandle\n }\n });\n this.element.appendChild(this.materialHandle);\n }\n };\n Slider.prototype.wireFirstHandleEvt = function (destroy) {\n if (!destroy) {\n EventHandler.add(this.firstHandle, 'mousedown touchstart', this.handleFocus, this);\n EventHandler.add(this.firstHandle, 'transitionend', this.transitionEnd, this);\n EventHandler.add(this.firstHandle, 'mouseenter touchenter', this.handleOver, this);\n EventHandler.add(this.firstHandle, 'mouseleave touchend', this.handleLeave, this);\n } else {\n EventHandler.remove(this.firstHandle, 'mousedown touchstart', this.handleFocus);\n EventHandler.remove(this.firstHandle, 'transitionend', this.transitionEnd);\n EventHandler.remove(this.firstHandle, 'mouseenter touchenter', this.handleOver);\n EventHandler.remove(this.firstHandle, 'mouseleave touchend', this.handleLeave);\n }\n };\n Slider.prototype.wireSecondHandleEvt = function (destroy) {\n if (!destroy) {\n EventHandler.add(this.secondHandle, 'mousedown touchstart', this.handleFocus, this);\n EventHandler.add(this.secondHandle, 'transitionend', this.transitionEnd, this);\n EventHandler.add(this.secondHandle, 'mouseenter touchenter', this.handleOver, this);\n EventHandler.add(this.secondHandle, 'mouseleave touchend', this.handleLeave, this);\n } else {\n EventHandler.remove(this.secondHandle, 'mousedown touchstart', this.handleFocus);\n EventHandler.remove(this.secondHandle, 'transitionend', this.transitionEnd);\n EventHandler.remove(this.secondHandle, 'mouseenter touchenter', this.handleOver);\n EventHandler.remove(this.secondHandle, 'mouseleave touchend', this.handleLeave);\n }\n };\n Slider.prototype.handleStart = function () {\n if (this.type !== 'Range') {\n this.firstHandle.classList[this.handlePos1 === 0 ? 'add' : 'remove'](classNames.sliderHandleStart);\n if (this.isMaterialTooltip) {\n this.materialHandle.classList[this.handlePos1 === 0 ? 'add' : 'remove'](classNames.sliderHandleStart);\n if (this.tooltipElement) {\n this.tooltipElement.classList[this.handlePos1 === 0 ? 'add' : 'remove'](classNames.sliderTooltipStart);\n }\n }\n }\n };\n Slider.prototype.transitionEnd = function (e) {\n if (e.propertyName !== 'transform') {\n this.handleStart();\n if (!this.enableAnimation) {\n this.getHandle().style.transition = 'none';\n }\n if (this.type !== 'Default') {\n this.rangeBar.style.transition = 'none';\n }\n if ((this.isMaterial || this.isMaterial3) && this.tooltip.isVisible && this.type === 'Default') {\n this.tooltipElement.style.transition = this.transition.handle;\n }\n this.tooltipToggle(this.getHandle());\n this.closeTooltip();\n }\n };\n Slider.prototype.handleFocusOut = function () {\n if (this.firstHandle.classList.contains(classNames.sliderHandleFocused)) {\n this.firstHandle.classList.remove(classNames.sliderHandleFocused);\n }\n if (this.type === 'Range') {\n if (this.secondHandle.classList.contains(classNames.sliderHandleFocused)) {\n this.secondHandle.classList.remove(classNames.sliderHandleFocused);\n }\n }\n };\n Slider.prototype.handleFocus = function (e) {\n this.focusSliderElement();\n this.sliderBarClick(e);\n if (e.currentTarget === this.firstHandle) {\n this.firstHandle.classList.add(classNames.sliderHandleFocused);\n this.firstHandle.classList.add(classNames.sliderTabHandle);\n } else {\n this.secondHandle.classList.add(classNames.sliderHandleFocused);\n this.secondHandle.classList.add(classNames.sliderTabHandle);\n }\n EventHandler.add(document, 'mousemove touchmove', this.sliderBarMove, this);\n EventHandler.add(document, 'mouseup touchend', this.sliderBarUp, this);\n };\n Slider.prototype.handleOver = function (e) {\n if (this.tooltip.isVisible && this.tooltip.showOn === 'Hover') {\n this.tooltipToggle(e.currentTarget);\n }\n if (this.type === 'Default') {\n this.tooltipToggle(this.getHandle());\n }\n };\n Slider.prototype.handleLeave = function (e) {\n if (this.tooltip.isVisible && this.tooltip.showOn === 'Hover' && !e.currentTarget.classList.contains(classNames.sliderHandleFocused) && !e.currentTarget.classList.contains(classNames.sliderTabHandle)) {\n this.closeTooltip();\n }\n };\n Slider.prototype.setHandler = function () {\n this.createFirstHandle();\n if (this.type === 'Range') {\n this.createSecondHandle();\n }\n };\n Slider.prototype.setEnableRTL = function () {\n if (this.enableRtl && this.orientation !== 'Vertical') {\n addClass([this.sliderContainer], classNames.rtl);\n } else {\n removeClass([this.sliderContainer], classNames.rtl);\n }\n var preDir = this.orientation !== 'Vertical' ? this.horDir : this.verDir;\n if (this.enableRtl) {\n this.horDir = 'right';\n this.verDir = 'bottom';\n } else {\n this.horDir = 'left';\n this.verDir = 'bottom';\n }\n var currDir = this.orientation !== 'Vertical' ? this.horDir : this.verDir;\n if (preDir !== currDir) {\n if (this.orientation === 'Horizontal') {\n setStyleAttribute(this.firstHandle, {\n 'right': '',\n 'left': 'auto'\n });\n if (this.type === 'Range') {\n setStyleAttribute(this.secondHandle, {\n 'top': '',\n 'left': 'auto'\n });\n }\n }\n }\n this.setBarColor();\n };\n Slider.prototype.tooltipValue = function () {\n var _this = this;\n var text;\n var args = {\n value: this.value,\n text: ''\n };\n if (this.initialTooltip) {\n this.initialTooltip = false;\n this.setTooltipContent();\n args.text = text = typeof this.tooltipObj.content === 'function' ? this.tooltipObj.content() : this.tooltipObj.content;\n this.trigger('tooltipChange', args, function (observedArgs) {\n _this.addTooltipClass(observedArgs.text);\n if (text !== observedArgs.text) {\n _this.customAriaText = observedArgs.text;\n if (_this.enableHtmlSanitizer) {\n observedArgs.text = SanitizeHtmlHelper.sanitize(observedArgs.text.toString());\n } else {\n observedArgs.text = observedArgs.text.toString();\n }\n var contentTemp = function () {\n return observedArgs.text;\n };\n _this.tooltipObj.content = initializeCSPTemplate(contentTemp);\n _this.setAriaAttrValue(_this.firstHandle);\n if (_this.type === 'Range') {\n _this.setAriaAttrValue(_this.secondHandle);\n }\n }\n });\n if (this.isMaterialTooltip) {\n this.setPreviousVal('change', this.value);\n }\n }\n };\n Slider.prototype.setTooltipContent = function () {\n var content = this.formatContent(this.tooltipFormatInfo, false);\n var contentTemp = function () {\n return content;\n };\n this.tooltipObj.content = initializeCSPTemplate(contentTemp);\n };\n Slider.prototype.formatContent = function (formatInfo, ariaContent) {\n var content = '';\n var handle1 = this.handleVal1;\n var handle2 = this.handleVal2;\n if (!isNullOrUndefined(this.customValues) && this.customValues.length > 0) {\n handle1 = this.customValues[this.handleVal1];\n handle2 = this.customValues[this.handleVal2];\n }\n if (!ariaContent) {\n if (this.type === 'Range') {\n if (this.enableRtl && this.orientation !== 'Vertical') {\n content = !isNullOrUndefined(formatInfo.format) ? this.formatString(handle2, formatInfo).formatString + ' - ' + this.formatString(handle1, formatInfo).formatString : handle2.toString() + ' - ' + handle1.toString();\n } else {\n content = !isNullOrUndefined(formatInfo.format) ? this.formatString(handle1, formatInfo).formatString + ' - ' + this.formatString(handle2, formatInfo).formatString : handle1.toString() + ' - ' + handle2.toString();\n }\n } else {\n if (!isNullOrUndefined(handle1)) {\n content = !isNullOrUndefined(formatInfo.format) ? this.formatString(handle1, formatInfo).formatString : handle1.toString();\n }\n }\n return content;\n } else {\n if (this.type === 'Range') {\n if (this.enableRtl && this.orientation !== 'Vertical') {\n content = !isNullOrUndefined(this.tooltip) && !isNullOrUndefined(this.tooltip.format) ? this.formatString(handle2, formatInfo).elementVal + ' - ' + this.formatString(handle1, formatInfo).elementVal : handle2.toString() + ' - ' + handle1.toString();\n } else {\n content = !isNullOrUndefined(this.tooltip) && !isNullOrUndefined(this.tooltip.format) ? this.formatString(handle1, formatInfo).elementVal + ' - ' + this.formatString(handle2, formatInfo).elementVal : handle1.toString() + ' - ' + handle2.toString();\n }\n } else {\n if (!isNullOrUndefined(handle1)) {\n content = !isNullOrUndefined(this.tooltip) && !isNullOrUndefined(this.tooltip.format) ? this.formatString(handle1, formatInfo).elementVal : handle1.toString();\n }\n }\n return content;\n }\n };\n Slider.prototype.addTooltipClass = function (content) {\n if (this.isMaterialTooltip) {\n var count = content.toString().length;\n if (!this.tooltipElement) {\n var cssClass = count > 4 ? classNames.sliderMaterialRange : classNames.sliderMaterialDefault;\n this.tooltipObj.cssClass = classNames.sliderTooltip + ' ' + cssClass;\n } else {\n var cssClass = count > 4 ? {\n oldCss: classNames.sliderMaterialDefault,\n newCss: classNames.sliderMaterialRange\n } : {\n oldCss: classNames.sliderMaterialRange,\n newCss: classNames.sliderMaterialDefault\n };\n this.tooltipElement.classList.remove(cssClass.oldCss);\n if (!this.tooltipElement.classList.contains(cssClass.newCss)) {\n this.tooltipElement.classList.add(cssClass.newCss);\n this.tooltipElement.style.transform = count > 4 ? 'scale(1)' : this.getTooltipTransformProperties(this.previousTooltipClass).rotate;\n }\n }\n }\n };\n Slider.prototype.tooltipPlacement = function () {\n return this.orientation === 'Horizontal' ? this.tooltip.placement === 'Before' ? 'TopCenter' : 'BottomCenter' : this.tooltip.placement === 'Before' ? 'LeftCenter' : 'RightCenter';\n };\n Slider.prototype.tooltipBeforeOpen = function (args) {\n this.tooltipElement = args.element;\n if (this.tooltip.cssClass) {\n addClass([this.tooltipElement], this.tooltip.cssClass.split(' ').filter(function (css) {\n return css;\n }));\n }\n args.target.removeAttribute('aria-describedby');\n if (this.isMaterialTooltip) {\n this.tooltipElement.firstElementChild.classList.add(classNames.materialTooltipHide);\n this.handleStart();\n this.setTooltipTransform();\n }\n };\n Slider.prototype.tooltipCollision = function (position) {\n if (this.isBootstrap || this.isBootstrap4 || (this.isMaterial || this.isMaterial3) && !this.isMaterialTooltip) {\n var tooltipOffsetValue = this.isBootstrap4 ? bootstrap4TooltipOffset : bootstrapTooltipOffset;\n switch (position) {\n case 'TopCenter':\n this.tooltipObj.setProperties({\n 'offsetY': -tooltipOffsetValue\n }, false);\n break;\n case 'BottomCenter':\n this.tooltipObj.setProperties({\n 'offsetY': tooltipOffsetValue\n }, false);\n break;\n case 'LeftCenter':\n this.tooltipObj.setProperties({\n 'offsetX': -tooltipOffsetValue\n }, false);\n break;\n case 'RightCenter':\n this.tooltipObj.setProperties({\n 'offsetX': tooltipOffsetValue\n }, false);\n break;\n }\n }\n };\n Slider.prototype.materialTooltipEventCallBack = function (event) {\n this.sliderBarClick(event);\n EventHandler.add(document, 'mousemove touchmove', this.sliderBarMove, this);\n EventHandler.add(document, 'mouseup touchend', this.sliderBarUp, this);\n };\n Slider.prototype.wireMaterialTooltipEvent = function (destroy) {\n if (this.isMaterialTooltip) {\n if (!destroy) {\n EventHandler.add(this.tooltipElement, 'mousedown touchstart', this.materialTooltipEventCallBack, this);\n } else {\n EventHandler.remove(this.tooltipElement, 'mousedown touchstart', this.materialTooltipEventCallBack);\n }\n }\n };\n Slider.prototype.tooltipPositionCalculation = function (position) {\n var cssClass;\n switch (position) {\n case 'TopCenter':\n cssClass = classNames.horizontalTooltipBefore;\n break;\n case 'BottomCenter':\n cssClass = classNames.horizontalTooltipAfter;\n break;\n case 'LeftCenter':\n cssClass = classNames.verticalTooltipBefore;\n break;\n case 'RightCenter':\n cssClass = classNames.verticalTooltipAfter;\n break;\n }\n return cssClass;\n };\n Slider.prototype.getTooltipTransformProperties = function (className) {\n var transformProperties;\n if (this.tooltipElement) {\n var position = this.orientation === 'Horizontal' ? this.tooltipElement.clientHeight + 14 - this.tooltipElement.clientHeight / 2 : this.tooltipElement.clientWidth + 14 - this.tooltipElement.clientWidth / 2;\n transformProperties = this.orientation === 'Horizontal' ? className === classNames.horizontalTooltipBefore ? {\n rotate: 'rotate(45deg)',\n translate: \"translateY(\" + position + \"px)\"\n } : {\n rotate: 'rotate(225deg)',\n translate: \"translateY(\" + -position + \"px)\"\n } : className === classNames.verticalTooltipBefore ? {\n rotate: 'rotate(-45deg)',\n translate: \"translateX(\" + position + \"px)\"\n } : {\n rotate: 'rotate(-225deg)',\n translate: \"translateX(\" + -position + \"px)\"\n };\n }\n return transformProperties;\n };\n Slider.prototype.openMaterialTooltip = function () {\n var _this = this;\n if (this.isMaterialTooltip) {\n this.refreshTooltip(this.firstHandle);\n var tooltipContentElement = this.tooltipElement.firstElementChild;\n tooltipContentElement.classList.remove(classNames.materialTooltipHide);\n tooltipContentElement.classList.add(classNames.materialTooltipShow);\n this.firstHandle.style.cursor = 'default';\n this.tooltipElement.style.transition = this.scaleTransform;\n this.tooltipElement.classList.add(classNames.materialTooltipOpen);\n this.materialHandle.style.transform = 'scale(0)';\n if (tooltipContentElement.innerText.length > 4) {\n this.tooltipElement.style.transform = 'scale(1)';\n } else {\n this.tooltipElement.style.transform = this.getTooltipTransformProperties(this.previousTooltipClass).rotate;\n }\n if (this.type === 'Default') {\n setTimeout(function () {\n if (_this.tooltipElement) {\n _this.tooltipElement.style.transition = _this.transition.handle;\n }\n }, 2500);\n } else {\n setTimeout(function () {\n if (_this.tooltipElement) {\n _this.tooltipElement.style.transition = 'none';\n }\n }, 2500);\n }\n }\n };\n Slider.prototype.closeMaterialTooltip = function () {\n var _this = this;\n if (this.isMaterialTooltip) {\n var tooltipContentElement = this.tooltipElement.firstElementChild;\n this.tooltipElement.style.transition = this.scaleTransform;\n tooltipContentElement.classList.remove(classNames.materialTooltipShow);\n tooltipContentElement.classList.add(classNames.materialTooltipHide);\n this.firstHandle.style.cursor = '-webkit-grab';\n this.firstHandle.style.cursor = 'grab';\n if (this.materialHandle) {\n this.materialHandle.style.transform = 'scale(1)';\n }\n this.tooltipElement.classList.remove(classNames.materialTooltipOpen);\n this.setTooltipTransform();\n this.tooltipTarget = undefined;\n setTimeout(function () {\n if (_this.tooltipElement) {\n _this.tooltipElement.style.transition = 'none';\n }\n }, 2500);\n }\n };\n Slider.prototype.checkTooltipPosition = function (args) {\n var tooltipClass = this.tooltipPositionCalculation(args.collidedPosition);\n if (this.tooltipCollidedPosition === undefined || this.tooltipCollidedPosition !== args.collidedPosition || !args.element.classList.contains(tooltipClass)) {\n if (this.isMaterialTooltip) {\n if (tooltipClass !== undefined) {\n args.element.classList.remove(this.previousTooltipClass);\n args.element.classList.add(tooltipClass);\n this.previousTooltipClass = tooltipClass;\n }\n if (args.element.style.transform && args.element.classList.contains(classNames.materialTooltipOpen) && args.element.firstElementChild.innerText.length <= 4) {\n args.element.style.transform = this.getTooltipTransformProperties(this.previousTooltipClass).rotate;\n }\n }\n this.tooltipCollidedPosition = args.collidedPosition;\n }\n if (this.isMaterialTooltip && this.tooltipElement && this.tooltipElement.style.transform.indexOf('translate') !== -1) {\n this.setTooltipTransform();\n }\n };\n Slider.prototype.setTooltipTransform = function () {\n var transformProperties = this.getTooltipTransformProperties(this.previousTooltipClass);\n if (isNullOrUndefined(this.tooltipElement)) {\n return;\n }\n if (this.tooltipElement.firstElementChild.innerText.length > 4) {\n this.tooltipElement.style.transform = transformProperties.translate + \" scale(0.01)\";\n } else {\n this.tooltipElement.style.transform = transformProperties.translate + \" \" + transformProperties.rotate + \" scale(0.01)\";\n }\n };\n Slider.prototype.renderTooltip = function () {\n this.tooltipObj = new Tooltip({\n showTipPointer: this.isBootstrap || this.isMaterial || this.isMaterial3 || this.isBootstrap4 || this.isTailwind || this.isBootstrap5 || this.isFluent || this.isFluent2 || this.isBootstrap5Dot3,\n cssClass: classNames.sliderTooltip,\n height: this.isMaterial || this.isMaterial3 ? 30 : 'auto',\n animation: {\n open: {\n effect: 'None'\n },\n close: {\n effect: 'FadeOut',\n duration: 500\n }\n },\n opensOn: 'Custom',\n beforeOpen: this.tooltipBeforeOpen.bind(this),\n beforeCollision: this.checkTooltipPosition.bind(this),\n beforeClose: this.tooltipBeforeClose.bind(this),\n enableHtmlSanitizer: this.enableHtmlSanitizer\n });\n this.tooltipObj.appendTo(this.firstHandle);\n this.initializeTooltipProps();\n };\n Slider.prototype.initializeTooltipProps = function () {\n var tooltipShowOn = this.tooltip.showOn === 'Auto' ? 'Hover' : this.tooltip.showOn;\n this.setProperties({\n tooltip: {\n showOn: tooltipShowOn\n }\n }, true);\n this.tooltipObj.position = this.tooltipPlacement();\n this.tooltipCollision(this.tooltipObj.position);\n [this.firstHandle, this.rangeBar, this.secondHandle].forEach(function (handle) {\n if (!isNullOrUndefined(handle)) {\n handle.style.transition = 'none';\n }\n });\n if (this.isMaterialTooltip) {\n this.sliderContainer.classList.add(classNames.materialSlider);\n this.tooltipValue();\n this.tooltipObj.animation.close.effect = 'None';\n this.tooltipObj.open(this.firstHandle);\n }\n };\n Slider.prototype.tooltipBeforeClose = function () {\n this.tooltipElement = undefined;\n this.tooltipCollidedPosition = undefined;\n };\n Slider.prototype.setButtons = function () {\n this.firstBtn = this.createElement('div', {\n className: classNames.sliderButton + ' ' + classNames.firstButton\n });\n this.firstBtn.appendChild(this.createElement('span', {\n className: classNames.sliderButtonIcon\n }));\n if (this.isTailwind) {\n this.firstBtn.querySelector('span').classList.add('e-icons');\n }\n this.firstBtn.tabIndex = -1;\n this.secondBtn = this.createElement('div', {\n className: classNames.sliderButton + ' ' + classNames.secondButton\n });\n this.secondBtn.appendChild(this.createElement('span', {\n className: classNames.sliderButtonIcon\n }));\n if (this.isTailwind) {\n this.secondBtn.querySelector('span').classList.add('e-icons');\n }\n this.secondBtn.tabIndex = -1;\n this.sliderContainer.classList.add(classNames.sliderButtonClass);\n this.sliderContainer.appendChild(this.firstBtn);\n this.sliderContainer.appendChild(this.secondBtn);\n this.sliderContainer.appendChild(this.element);\n this.buttonTitle();\n };\n Slider.prototype.buttonTitle = function () {\n var enabledRTL = this.enableRtl && this.orientation !== 'Vertical';\n this.l10n.setLocale(this.locale);\n var decrementTitle = this.l10n.getConstant('decrementTitle');\n var incrementTitle = this.l10n.getConstant('incrementTitle');\n attributes(enabledRTL ? this.secondBtn : this.firstBtn, {\n 'aria-label': decrementTitle,\n title: decrementTitle\n });\n attributes(enabledRTL ? this.firstBtn : this.secondBtn, {\n 'aria-label': incrementTitle,\n title: incrementTitle\n });\n };\n Slider.prototype.buttonFocusOut = function () {\n if (this.isMaterial || this.isMaterial3) {\n this.getHandle().classList.remove('e-large-thumb-size');\n }\n };\n Slider.prototype.repeatButton = function (args) {\n var hVal = this.handleValueUpdate();\n var enabledRTL = this.enableRtl && this.orientation !== 'Vertical';\n var value;\n if (args.target.parentElement.classList.contains(classNames.firstButton) || args.target.classList.contains(classNames.firstButton)) {\n if (enabledRTL) {\n value = this.add(hVal, parseFloat(this.step.toString()), true);\n } else {\n value = this.add(hVal, parseFloat(this.step.toString()), false);\n }\n } else if (args.target.parentElement.classList.contains(classNames.secondButton) || args.target.classList.contains(classNames.secondButton)) {\n if (enabledRTL) {\n value = this.add(hVal, parseFloat(this.step.toString()), false);\n } else {\n value = this.add(hVal, parseFloat(this.step.toString()), true);\n }\n }\n if (this.limits.enabled) {\n value = this.getLimitCorrectedValues(value);\n }\n if (value >= this.min && value <= this.max) {\n this.changeHandleValue(value);\n this.tooltipToggle(this.getHandle());\n }\n };\n Slider.prototype.repeatHandlerMouse = function (args) {\n args.preventDefault();\n if (args.type === 'mousedown' || args.type === 'touchstart') {\n this.buttonClick(args);\n this.repeatInterval = setInterval(this.repeatButton.bind(this), 180, args);\n }\n };\n Slider.prototype.materialChange = function () {\n if (!this.getHandle().classList.contains('e-large-thumb-size')) {\n this.getHandle().classList.add('e-large-thumb-size');\n }\n };\n Slider.prototype.focusHandle = function () {\n if (!this.getHandle().classList.contains(classNames.sliderTabHandle)) {\n this.getHandle().classList.add(classNames.sliderTabHandle);\n }\n };\n Slider.prototype.repeatHandlerUp = function (e) {\n this.changeEvent('changed', e);\n this.closeTooltip();\n clearInterval(this.repeatInterval);\n this.getHandle().focus();\n };\n Slider.prototype.customTickCounter = function (bigNum) {\n var tickCount = 4;\n if (!isNullOrUndefined(this.customValues) && this.customValues.length > 0) {\n if (bigNum > 4) {\n tickCount = 3;\n }\n if (bigNum > 7) {\n tickCount = 2;\n }\n if (bigNum > 14) {\n tickCount = 1;\n }\n if (bigNum > 28) {\n tickCount = 0;\n }\n }\n return tickCount;\n };\n Slider.prototype.renderScale = function () {\n var orien = this.orientation === 'Vertical' ? 'v' : 'h';\n this.noOfDecimals = this.numberOfDecimals(this.step);\n this.ul = this.createElement('ul', {\n className: classNames.scale + ' ' + 'e-' + orien + '-scale ' + classNames.tick + '-' + this.ticks.placement.toLowerCase(),\n attrs: {\n role: 'presentation',\n 'aria-hidden': 'true'\n }\n });\n this.ul.style.zIndex = '-1';\n if (Browser.isAndroid && orien === 'h') {\n this.ul.classList.add(classNames.sliderTickPosition);\n }\n var smallStep = this.ticks.smallStep;\n if (!this.ticks.showSmallTicks) {\n if (this.ticks.largeStep > 0) {\n smallStep = this.ticks.largeStep;\n } else {\n smallStep = parseFloat(formatUnit(this.max)) - parseFloat(formatUnit(this.min));\n }\n } else if (smallStep <= 0) {\n smallStep = parseFloat(formatUnit(this.step));\n }\n var min = this.fractionalToInteger(this.min);\n var max = this.fractionalToInteger(this.max);\n var steps = this.fractionalToInteger(smallStep);\n var bigNum = !isNullOrUndefined(this.customValues) && this.customValues.length > 0 && this.customValues.length - 1;\n var customStep = this.customTickCounter(bigNum);\n var count = !isNullOrUndefined(this.customValues) && this.customValues.length > 0 ? bigNum * customStep + bigNum : Math.abs((max - min) / steps);\n this.element.appendChild(this.ul);\n var li;\n var start = parseFloat(this.min.toString());\n if (orien === 'v') {\n start = parseFloat(this.max.toString());\n }\n var left = 0;\n var islargeTick;\n var tickWidth = 100 / count;\n if (tickWidth === Infinity) {\n tickWidth = 5;\n }\n for (var i = 0, y = !isNullOrUndefined(this.customValues) && this.customValues.length > 0 ? this.customValues.length - 1 : 0, k = 0; i <= count; i++) {\n li = this.createElement('li', {\n attrs: {\n class: classNames.tick,\n role: 'presentation',\n 'aria-hidden': 'true'\n }\n });\n if (!isNullOrUndefined(this.customValues) && this.customValues.length > 0) {\n islargeTick = i % (customStep + 1) === 0;\n if (islargeTick) {\n if (orien === 'h') {\n start = this.customValues[k];\n k++;\n } else {\n start = this.customValues[y];\n y--;\n }\n li.setAttribute('title', start.toString());\n }\n } else {\n li.setAttribute('title', start.toString());\n if (this.numberOfDecimals(this.max) === 0 && this.numberOfDecimals(this.min) === 0 && this.numberOfDecimals(this.step) === 0) {\n if (orien === 'h') {\n islargeTick = (start - parseFloat(this.min.toString())) % this.ticks.largeStep === 0 ? true : false;\n } else {\n islargeTick = Math.abs(start - parseFloat(this.max.toString())) % this.ticks.largeStep === 0 ? true : false;\n }\n } else {\n var largestep = this.fractionalToInteger(this.ticks.largeStep);\n var startValue = this.fractionalToInteger(start);\n if (orien === 'h') {\n islargeTick = (startValue - min) % largestep === 0 ? true : false;\n } else {\n islargeTick = Math.abs(startValue - parseFloat(max.toString())) % largestep === 0 ? true : false;\n }\n }\n }\n if (islargeTick) {\n li.classList.add(classNames.large);\n }\n if (orien === 'h') {\n li.style.width = tickWidth + '%';\n } else {\n li.style.height = tickWidth + '%';\n }\n var repeat = islargeTick ? this.ticks.placement === 'Both' ? 2 : 1 : 0;\n if (islargeTick) {\n for (var j = 0; j < repeat; j++) {\n this.createTick(li, start);\n }\n } else if (isNullOrUndefined(this.customValues)) {\n this.formatTicksValue(li, start);\n }\n this.ul.appendChild(li);\n this.tickElementCollection.push(li);\n var decimalPoints = void 0;\n if (isNullOrUndefined(this.customValues)) {\n if (this.numberOfDecimals(smallStep) > this.numberOfDecimals(start)) {\n decimalPoints = this.numberOfDecimals(smallStep);\n } else {\n decimalPoints = this.numberOfDecimals(start);\n }\n if (orien === 'h') {\n start = this.makeRoundNumber(start + smallStep, decimalPoints);\n } else {\n if (this.min > this.max) {\n start = this.makeRoundNumber(start + smallStep, decimalPoints);\n } else {\n start = this.makeRoundNumber(start - smallStep, decimalPoints);\n }\n }\n left = this.makeRoundNumber(left + smallStep, decimalPoints);\n }\n }\n this.ticksAlignment(orien, tickWidth);\n };\n Slider.prototype.ticksAlignment = function (orien, tickWidth, triggerEvent) {\n if (triggerEvent === void 0) {\n triggerEvent = true;\n }\n this.firstChild = this.ul.firstElementChild;\n this.lastChild = this.ul.lastElementChild;\n this.firstChild.classList.add(classNames.sliderFirstTick);\n this.lastChild.classList.add(classNames.sliderLastTick);\n this.sliderContainer.classList.add(classNames.scale + '-' + this.ticks.placement.toLowerCase());\n if (orien === 'h') {\n this.firstChild.style.width = tickWidth / 2 + '%';\n this.lastChild.style.width = tickWidth / 2 + '%';\n } else {\n this.firstChild.style.height = tickWidth / 2 + '%';\n this.lastChild.style.height = tickWidth / 2 + '%';\n }\n var eventArgs = {\n ticksWrapper: this.ul,\n tickElements: this.tickElementCollection\n };\n if (triggerEvent) {\n this.trigger('renderedTicks', eventArgs);\n }\n this.scaleAlignment();\n };\n Slider.prototype.createTick = function (li, start) {\n var span = this.createElement('span', {\n className: classNames.tickValue + ' ' + classNames.tick + '-' + this.ticks.placement.toLowerCase(),\n attrs: {\n role: 'presentation',\n 'aria-hidden': 'true'\n }\n });\n li.appendChild(span);\n if (isNullOrUndefined(this.customValues)) {\n this.formatTicksValue(li, start, span);\n } else {\n if (this.enableHtmlSanitizer) {\n span.innerHTML = SanitizeHtmlHelper.sanitize(start.toString());\n } else {\n span.innerHTML = start.toString();\n }\n }\n };\n Slider.prototype.formatTicksValue = function (li, start, spanElement) {\n var _this = this;\n var tickText = this.formatNumber(start);\n var text = !isNullOrUndefined(this.ticks) && !isNullOrUndefined(this.ticks.format) ? this.formatString(start, this.ticksFormatInfo).formatString : tickText;\n var eventArgs = {\n value: start,\n text: text,\n tickElement: li\n };\n this.trigger('renderingTicks', eventArgs, function (observedArgs) {\n li.setAttribute('title', observedArgs.text.toString());\n if (spanElement) {\n if (_this.enableHtmlSanitizer) {\n spanElement.innerHTML = SanitizeHtmlHelper.sanitize(observedArgs.text.toString());\n } else {\n spanElement.innerHTML = observedArgs.text.toString();\n }\n }\n });\n };\n Slider.prototype.scaleAlignment = function () {\n this.tickValuePosition();\n if (this.orientation === 'Vertical') {\n if (this.element.getBoundingClientRect().width <= 15) {\n this.sliderContainer.classList.add(classNames.sliderSmallSize);\n } else {\n this.sliderContainer.classList.remove(classNames.sliderSmallSize);\n }\n } else {\n if (this.element.getBoundingClientRect().height <= 15) {\n this.sliderContainer.classList.add(classNames.sliderSmallSize);\n } else {\n this.sliderContainer.classList.remove(classNames.sliderSmallSize);\n }\n }\n };\n Slider.prototype.tickValuePosition = function () {\n this.firstChild = this.element.querySelector('ul').children[0];\n var first = this.firstChild.getBoundingClientRect();\n var firstChild;\n var otherChild;\n var smallStep = this.ticks.smallStep;\n var count = Math.abs(parseFloat(formatUnit(this.max)) - parseFloat(formatUnit(this.min))) / smallStep;\n if (this.firstChild.children.length > 0) {\n firstChild = this.firstChild.children[0].getBoundingClientRect();\n }\n var tickElements = [this.sliderContainer.querySelectorAll('.' + classNames.tick + '.' + classNames.large + ' .' + classNames.tickValue)];\n var other;\n if (this.ticks.placement === 'Both') {\n other = [].slice.call(tickElements[0], 2);\n } else {\n other = [].slice.call(tickElements[0], 1);\n }\n var tickWidth = this.orientation === 'Vertical' ? first.height * 2 : first.width * 2;\n for (var i = 0; i < this.firstChild.children.length; i++) {\n if (this.orientation === 'Vertical') {\n this.firstChild.children[i].style.top = -(firstChild.height / 2) + 'px';\n } else {\n if (!this.enableRtl) {\n this.firstChild.children[i].style.left = -(firstChild.width / 2) + 'px';\n } else {\n this.firstChild.children[i].style.left = (tickWidth - this.firstChild.children[i].getBoundingClientRect().width) / 2 + 'px';\n }\n }\n }\n for (var i = 0; i < other.length; i++) {\n otherChild = other[i].getBoundingClientRect();\n if (this.orientation === 'Vertical') {\n setStyleAttribute(other[i], {\n top: (tickWidth - otherChild.height) / 2 + 'px'\n });\n } else {\n setStyleAttribute(other[i], {\n left: (tickWidth - otherChild.width) / 2 + 'px'\n });\n }\n }\n if (this.enableRtl && this.lastChild.children.length && count !== 0) {\n this.lastChild.children[0].style.left = -(this.lastChild.getBoundingClientRect().width / 2) + 'px';\n if (this.ticks.placement === 'Both') {\n this.lastChild.children[1].style.left = -(this.lastChild.getBoundingClientRect().width / 2) + 'px';\n }\n }\n if (count === 0) {\n if (this.orientation === 'Horizontal') {\n if (!this.enableRtl) {\n this.firstChild.classList.remove(classNames.sliderLastTick);\n this.firstChild.style.left = this.firstHandle.style.left;\n } else {\n this.firstChild.classList.remove(classNames.sliderLastTick);\n this.firstChild.style.right = this.firstHandle.style.right;\n this.firstChild.children[0].style.left = this.firstChild.getBoundingClientRect().width / 2 + 2 + 'px';\n if (this.ticks.placement === 'Both') {\n this.firstChild.children[1].style.left = this.firstChild.getBoundingClientRect().width / 2 + 2 + 'px';\n }\n }\n }\n if (this.orientation === 'Vertical') {\n this.firstChild.classList.remove(classNames.sliderLastTick);\n }\n }\n };\n Slider.prototype.setAriaAttrValue = function (element) {\n var ariaValueText;\n var isTickFormatted = !isNullOrUndefined(this.ticks) && !isNullOrUndefined(this.ticks.format) ? true : false;\n var text = !isTickFormatted ? this.formatContent(this.ticksFormatInfo, false) : this.formatContent(this.tooltipFormatInfo, false);\n var valuenow = isTickFormatted ? this.formatContent(this.ticksFormatInfo, true) : this.formatContent(this.tooltipFormatInfo, true);\n text = !this.customAriaText ? text : this.customAriaText;\n if (text.split(' - ').length === 2) {\n ariaValueText = text.split(' - ');\n } else {\n ariaValueText = [text, text];\n }\n this.setAriaAttributes(element);\n if (this.type !== 'Range') {\n attributes(element, {\n 'aria-valuenow': valuenow,\n 'aria-valuetext': text\n });\n } else {\n if (!this.enableRtl) {\n if (element === this.firstHandle) {\n attributes(element, {\n 'aria-valuenow': valuenow.split(' - ')[0],\n 'aria-valuetext': ariaValueText[0]\n });\n } else {\n attributes(element, {\n 'aria-valuenow': valuenow.split(' - ')[1],\n 'aria-valuetext': ariaValueText[1]\n });\n }\n } else {\n if (element === this.firstHandle) {\n attributes(element, {\n 'aria-valuenow': valuenow.split(' - ')[1],\n 'aria-valuetext': ariaValueText[1]\n });\n } else {\n attributes(element, {\n 'aria-valuenow': valuenow.split(' - ')[0],\n 'aria-valuetext': ariaValueText[0]\n });\n }\n }\n }\n };\n Slider.prototype.handleValueUpdate = function () {\n var hVal;\n if (this.type === 'Range') {\n if (this.activeHandle === 1) {\n hVal = this.handleVal1;\n } else {\n hVal = this.handleVal2;\n }\n } else {\n hVal = this.handleVal1;\n }\n return hVal;\n };\n Slider.prototype.getLimitCorrectedValues = function (value) {\n if (this.type === 'MinRange' || this.type === 'Default') {\n value = this.getLimitValueAndPosition(value, this.limits.minStart, this.limits.minEnd)[0];\n } else {\n if (this.activeHandle === 1) {\n value = this.getLimitValueAndPosition(value, this.limits.minStart, this.limits.minEnd)[0];\n } else {\n value = this.getLimitValueAndPosition(value, this.limits.maxStart, this.limits.maxEnd)[0];\n }\n }\n return value;\n };\n Slider.prototype.focusSliderElement = function () {\n if (!this.isElementFocused) {\n this.element.focus();\n this.isElementFocused = true;\n }\n };\n Slider.prototype.buttonClick = function (args) {\n this.focusSliderElement();\n var value;\n var enabledRTL = this.enableRtl && this.orientation !== 'Vertical';\n var hVal = this.handleValueUpdate();\n if (args.keyCode === 40 || args.keyCode === 37 || args.currentTarget.classList.contains(classNames.firstButton)) {\n if (enabledRTL) {\n value = this.add(hVal, parseFloat(this.step.toString()), true);\n } else {\n value = this.add(hVal, parseFloat(this.step.toString()), false);\n }\n } else if (args.keyCode === 38 || args.keyCode === 39 || args.currentTarget.classList.contains(classNames.secondButton)) {\n if (enabledRTL) {\n value = this.add(hVal, parseFloat(this.step.toString()), false);\n } else {\n value = this.add(hVal, parseFloat(this.step.toString()), true);\n }\n } else if (args.keyCode === 33 || args.currentTarget.classList.contains(classNames.firstButton)) {\n if (enabledRTL) {\n value = this.add(hVal, parseFloat(this.ticks.largeStep.toString()), false);\n } else {\n value = this.add(hVal, parseFloat(this.ticks.largeStep.toString()), true);\n }\n } else if (args.keyCode === 34 || args.currentTarget.classList.contains(classNames.secondButton)) {\n if (enabledRTL) {\n value = this.add(hVal, parseFloat(this.ticks.largeStep.toString()), true);\n } else {\n value = this.add(hVal, parseFloat(this.ticks.largeStep.toString()), false);\n }\n } else if (args.keyCode === 36) {\n value = parseFloat(this.min < this.max ? this.min.toString() : this.max.toString());\n } else if (args.keyCode === 35) {\n value = parseFloat(this.min < this.max ? this.max.toString() : this.min.toString());\n }\n if (this.limits.enabled) {\n value = this.getLimitCorrectedValues(value);\n }\n this.changeHandleValue(value);\n if ((this.isMaterial || this.isMaterial3) && !this.tooltip.isVisible && !this.getHandle().classList.contains(classNames.sliderTabHandle)) {\n this.materialChange();\n }\n this.tooltipToggle(this.getHandle());\n this.getHandle().focus();\n this.focusHandle();\n if (args.currentTarget.classList.contains(classNames.firstButton)) {\n EventHandler.add(this.firstBtn, 'mouseup touchend', this.buttonUp, this);\n }\n if (args.currentTarget.classList.contains(classNames.secondButton)) {\n EventHandler.add(this.secondBtn, 'mouseup touchend', this.buttonUp, this);\n }\n };\n Slider.prototype.tooltipToggle = function (target) {\n if (this.isMaterialTooltip) {\n if (!this.tooltipElement.classList.contains(classNames.materialTooltipOpen)) {\n this.openMaterialTooltip();\n } else {\n this.refreshTooltip(this.firstHandle);\n }\n } else {\n if (!this.tooltipElement) {\n this.openTooltip(target);\n } else {\n this.refreshTooltip(target);\n }\n }\n };\n Slider.prototype.buttonUp = function (args) {\n if (args.currentTarget.classList.contains(classNames.firstButton)) {\n EventHandler.remove(this.firstBtn, 'mouseup touchend', this.buttonUp);\n }\n if (args.currentTarget.classList.contains(classNames.secondButton)) {\n EventHandler.remove(this.secondBtn, 'mouseup touchend', this.buttonUp);\n }\n };\n Slider.prototype.setRangeBar = function () {\n if (this.orientation === 'Horizontal' && !isNullOrUndefined(this.rangeBar)) {\n if (this.type === 'MinRange') {\n if (this.enableRtl) {\n this.rangeBar.style.right = '0px';\n } else {\n this.rangeBar.style.left = '0px';\n }\n setStyleAttribute(this.rangeBar, {\n 'width': isNullOrUndefined(this.handlePos1) ? 0 : this.handlePos1 + 'px'\n });\n } else {\n if (this.enableRtl) {\n this.rangeBar.style.right = this.handlePos1 + 'px';\n } else {\n this.rangeBar.style.left = this.handlePos1 + 'px';\n }\n setStyleAttribute(this.rangeBar, {\n 'width': this.handlePos2 - this.handlePos1 + 'px'\n });\n }\n } else if (!isNullOrUndefined(this.rangeBar)) {\n if (this.type === 'MinRange') {\n this.rangeBar.style.bottom = this.min > this.max ? this.handlePos1 + 'px' : '0px';\n setStyleAttribute(this.rangeBar, {\n 'height': isNullOrUndefined(this.handlePos1) ? 0 : this.min > this.max ? this.element.clientHeight - this.handlePos1 + 'px' : this.handlePos1 + 'px'\n });\n } else {\n this.rangeBar.style.bottom = this.min > this.max ? this.handlePos2 + 'px' : this.handlePos1 + 'px';\n setStyleAttribute(this.rangeBar, {\n 'height': this.min > this.max ? this.handlePos1 - this.handlePos2 + 'px' : this.handlePos2 - this.handlePos1 + 'px'\n });\n }\n }\n };\n Slider.prototype.checkValidValueAndPos = function (value) {\n value = this.checkHandleValue(value);\n value = this.checkHandlePosition(value);\n return value;\n };\n Slider.prototype.setLimitBarPositions = function (fromMinPostion, fromMaxpostion, toMinPostion, toMaxpostion) {\n if (this.orientation === 'Horizontal') {\n if (!this.enableRtl) {\n this.limitBarFirst.style.left = fromMinPostion + 'px';\n this.limitBarFirst.style.width = fromMaxpostion - fromMinPostion + 'px';\n } else {\n this.limitBarFirst.style.right = fromMinPostion + 'px';\n this.limitBarFirst.style.width = fromMaxpostion - fromMinPostion + 'px';\n }\n } else {\n this.limitBarFirst.style.bottom = (this.min < this.max ? fromMinPostion : fromMaxpostion) + 'px';\n this.limitBarFirst.style.height = (this.min < this.max ? fromMaxpostion - fromMinPostion : fromMinPostion - fromMaxpostion) + 'px';\n }\n if (this.type === 'Range') {\n if (this.orientation === 'Horizontal') {\n if (!this.enableRtl) {\n this.limitBarSecond.style.left = toMinPostion + 'px';\n this.limitBarSecond.style.width = toMaxpostion - toMinPostion + 'px';\n } else {\n this.limitBarSecond.style.right = toMinPostion + 'px';\n this.limitBarSecond.style.width = toMaxpostion - toMinPostion + 'px';\n }\n } else {\n this.limitBarSecond.style.bottom = (this.min < this.max ? toMinPostion : toMaxpostion) + 'px';\n this.limitBarSecond.style.height = (this.min < this.max ? toMaxpostion - toMinPostion : toMinPostion - toMaxpostion) + 'px';\n }\n }\n };\n Slider.prototype.setLimitBar = function () {\n if (this.type === 'Default' || this.type === 'MinRange') {\n var fromPosition = this.getLimitValueAndPosition(this.limits.minStart, this.limits.minStart, this.limits.minEnd, true)[0];\n fromPosition = this.checkValidValueAndPos(fromPosition);\n var toPosition = this.getLimitValueAndPosition(this.limits.minEnd, this.limits.minStart, this.limits.minEnd, true)[0];\n toPosition = this.checkValidValueAndPos(toPosition);\n this.setLimitBarPositions(fromPosition, toPosition);\n } else if (this.type === 'Range') {\n var fromMinPostion = this.getLimitValueAndPosition(this.limits.minStart, this.limits.minStart, this.limits.minEnd, true)[0];\n fromMinPostion = this.checkValidValueAndPos(fromMinPostion);\n var fromMaxpostion = this.getLimitValueAndPosition(this.limits.minEnd, this.limits.minStart, this.limits.minEnd, true)[0];\n fromMaxpostion = this.checkValidValueAndPos(fromMaxpostion);\n var toMinPostion = this.getLimitValueAndPosition(this.limits.maxStart, this.limits.maxStart, this.limits.maxEnd, true)[0];\n toMinPostion = this.checkValidValueAndPos(toMinPostion);\n var toMaxpostion = this.getLimitValueAndPosition(this.limits.maxEnd, this.limits.maxStart, this.limits.maxEnd, true)[0];\n toMaxpostion = this.checkValidValueAndPos(toMaxpostion);\n this.setLimitBarPositions(fromMinPostion, fromMaxpostion, toMinPostion, toMaxpostion);\n }\n };\n Slider.prototype.getLimitValueAndPosition = function (currentValue, minValue, maxValue, limitBar) {\n if (isNullOrUndefined(minValue)) {\n minValue = this.min < this.max ? this.min : this.max;\n if (isNullOrUndefined(currentValue) && limitBar) {\n currentValue = minValue;\n }\n }\n if (isNullOrUndefined(maxValue)) {\n maxValue = this.min < this.max ? this.max : this.min;\n if (isNullOrUndefined(currentValue) && limitBar) {\n currentValue = maxValue;\n }\n }\n if (currentValue < minValue) {\n currentValue = minValue;\n }\n if (currentValue > maxValue) {\n currentValue = maxValue;\n }\n return [currentValue, this.checkHandlePosition(currentValue)];\n };\n Slider.prototype.setValue = function () {\n if (!isNullOrUndefined(this.customValues) && this.customValues.length > 0) {\n this.min = 0;\n this.max = this.customValues.length - 1;\n this.setBarColor();\n }\n this.setAriaAttributes(this.firstHandle);\n this.handleVal1 = isNullOrUndefined(this.value) ? this.checkHandleValue(parseFloat(this.min.toString())) : this.checkHandleValue(parseFloat(this.value.toString()));\n this.handlePos1 = this.checkHandlePosition(this.handleVal1);\n this.preHandlePos1 = this.handlePos1;\n if (isNullOrUndefined(this.activeHandle)) {\n this.activeHandle = this.type === 'Range' ? 2 : 1;\n }\n if (this.type === 'Default' || this.type === 'MinRange') {\n if (this.limits.enabled) {\n var values = this.getLimitValueAndPosition(this.handleVal1, this.limits.minStart, this.limits.minEnd);\n this.handleVal1 = values[0];\n this.handlePos1 = values[1];\n this.preHandlePos1 = this.handlePos1;\n }\n this.setHandlePosition(null);\n this.handleStart();\n this.value = this.handleVal1;\n this.setAriaAttrValue(this.firstHandle);\n this.changeEvent('changed', null);\n } else {\n this.validateRangeValue();\n }\n if (this.type !== 'Default') {\n this.setRangeBar();\n }\n if (this.limits.enabled) {\n this.setLimitBar();\n }\n };\n Slider.prototype.rangeValueUpdate = function () {\n if (this.value === null || typeof this.value !== 'object') {\n this.value = [parseFloat(formatUnit(this.min)), parseFloat(formatUnit(this.max))];\n }\n };\n Slider.prototype.validateRangeValue = function () {\n this.rangeValueUpdate();\n this.setRangeValue();\n };\n Slider.prototype.modifyZindex = function () {\n if (this.type === 'Range' && !isNullOrUndefined(this.firstHandle) && !isNullOrUndefined(this.secondHandle)) {\n if (this.activeHandle === 1) {\n this.firstHandle.style.zIndex = this.zIndex + 4 + '';\n this.secondHandle.style.zIndex = this.zIndex + 3 + '';\n } else {\n this.firstHandle.style.zIndex = this.zIndex + 3 + '';\n this.secondHandle.style.zIndex = this.zIndex + 4 + '';\n }\n } else if (this.isMaterialTooltip && this.tooltipElement) {\n this.tooltipElement.style.zIndex = getZindexPartial(this.element) + '';\n }\n };\n Slider.prototype.setHandlePosition = function (event) {\n var _this = this;\n var handle;\n var pos = this.activeHandle === 1 ? this.handlePos1 : this.handlePos2;\n if (this.isMaterialTooltip) {\n handle = [this.firstHandle, this.materialHandle];\n } else {\n handle = [this.getHandle()];\n }\n this.handleStart();\n handle.forEach(function (handle) {\n if (isNullOrUndefined(handle)) {\n return;\n }\n if (_this.orientation === 'Horizontal') {\n if (_this.enableRtl) {\n handle.style.right = pos + \"px\";\n } else {\n handle.style.left = pos + \"px\";\n }\n } else {\n handle.style.bottom = pos + \"px\";\n }\n });\n this.changeEvent('change', event);\n };\n Slider.prototype.getHandle = function () {\n return this.activeHandle === 1 ? this.firstHandle : this.secondHandle;\n };\n Slider.prototype.setRangeValue = function () {\n this.updateRangeValue();\n this.activeHandle = 1;\n this.setHandlePosition(null);\n this.activeHandle = 2;\n this.setHandlePosition(null);\n this.activeHandle = 1;\n };\n Slider.prototype.changeEvent = function (eventName, e) {\n var previous = eventName === 'change' ? this.previousVal : this.previousChanged;\n if (this.type !== 'Range') {\n this.setProperties({\n 'value': this.handleVal1\n }, true);\n if (previous !== this.value && (!this.isMaterialTooltip || !this.initialTooltip)) {\n this.trigger(eventName, this.changeEventArgs(eventName, e));\n this.initialTooltip = true;\n this.setPreviousVal(eventName, this.value);\n }\n this.setAriaAttrValue(this.firstHandle);\n } else {\n var value = this.value = [this.handleVal1, this.handleVal2];\n this.setProperties({\n 'value': value\n }, true);\n if (previous.length === this.value.length && this.value[0] !== previous[0] || this.value[1] !== previous[1]) {\n this.initialTooltip = false;\n this.trigger(eventName, this.changeEventArgs(eventName, e));\n this.initialTooltip = true;\n this.setPreviousVal(eventName, this.value);\n }\n this.setAriaAttrValue(this.getHandle());\n }\n this.hiddenInput.value = this.value.toString();\n };\n Slider.prototype.changeEventArgs = function (eventName, e) {\n var eventArgs;\n if (this.tooltip.isVisible && this.tooltipObj && this.initialTooltip) {\n this.tooltipValue();\n eventArgs = {\n value: this.value,\n previousValue: eventName === 'change' ? this.previousVal : this.previousChanged,\n action: eventName,\n text: typeof this.tooltipObj.content === 'function' ? this.tooltipObj.content() : this.tooltipObj.content,\n isInteracted: isNullOrUndefined(e) ? false : true\n };\n } else {\n eventArgs = {\n value: this.value,\n previousValue: eventName === 'change' ? this.previousVal : this.previousChanged,\n action: eventName,\n text: isNullOrUndefined(this.ticksFormatInfo.format) ? this.value.toString() : this.type !== 'Range' ? this.formatString(this.value, this.ticksFormatInfo).formatString : this.formatString(this.value[0], this.ticksFormatInfo).formatString + ' - ' + this.formatString(this.value[1], this.ticksFormatInfo).formatString,\n isInteracted: isNullOrUndefined(e) ? false : true\n };\n }\n return eventArgs;\n };\n Slider.prototype.setPreviousVal = function (eventName, value) {\n if (eventName === 'change') {\n this.previousVal = value;\n } else {\n this.previousChanged = value;\n }\n };\n Slider.prototype.updateRangeValue = function () {\n var values = this.value.toString().split(',').map(Number);\n if (this.enableRtl && this.orientation !== 'Vertical' || this.rtl) {\n this.value = [values[1], values[0]];\n } else {\n this.value = [values[0], values[1]];\n }\n if (this.enableRtl && this.orientation !== 'Vertical') {\n this.handleVal1 = this.checkHandleValue(this.value[1]);\n this.handleVal2 = this.checkHandleValue(this.value[0]);\n } else {\n this.handleVal1 = this.checkHandleValue(this.value[0]);\n this.handleVal2 = this.checkHandleValue(this.value[1]);\n }\n this.handlePos1 = this.checkHandlePosition(this.handleVal1);\n this.handlePos2 = this.checkHandlePosition(this.handleVal2);\n if (this.min < this.max && this.handlePos1 > this.handlePos2) {\n this.handlePos1 = this.handlePos2;\n this.handleVal1 = this.handleVal2;\n }\n if (this.min > this.max && this.handlePos1 < this.handlePos2) {\n this.handlePos2 = this.handlePos1;\n this.handleVal2 = this.handleVal1;\n }\n this.preHandlePos1 = this.handlePos1;\n this.preHandlePos2 = this.handlePos2;\n if (this.limits.enabled) {\n this.activeHandle = 1;\n var values_1 = this.getLimitValueAndPosition(this.handleVal1, this.limits.minStart, this.limits.minEnd);\n this.handleVal1 = values_1[0];\n this.handlePos1 = values_1[1];\n this.preHandlePos1 = this.handlePos1;\n this.activeHandle = 2;\n values_1 = this.getLimitValueAndPosition(this.handleVal2, this.limits.maxStart, this.limits.maxEnd);\n this.handleVal2 = values_1[0];\n this.handlePos2 = values_1[1];\n this.preHandlePos2 = this.handlePos2;\n }\n };\n Slider.prototype.checkHandlePosition = function (value) {\n var pos;\n value = 100 * (value - parseFloat(formatUnit(this.min))) / (parseFloat(formatUnit(this.max)) - parseFloat(formatUnit(this.min)));\n if (this.orientation === 'Horizontal') {\n pos = this.element.getBoundingClientRect().width * (value / 100);\n } else {\n pos = this.element.getBoundingClientRect().height * (value / 100);\n }\n if (parseFloat(formatUnit(this.max)) === parseFloat(formatUnit(this.min))) {\n if (this.orientation === 'Horizontal') {\n pos = this.element.getBoundingClientRect().width;\n } else {\n pos = this.element.getBoundingClientRect().height;\n }\n }\n return pos;\n };\n Slider.prototype.checkHandleValue = function (value) {\n if (this.min === this.max) {\n return parseFloat(formatUnit(this.max));\n }\n var handle = this.tempStartEnd();\n if (value < handle.start) {\n value = handle.start;\n } else if (value > handle.end) {\n value = handle.end;\n }\n return value;\n };\n /**\n * It is used to reposition slider.\n *\n * @returns {void}\n */\n Slider.prototype.reposition = function () {\n var _this = this;\n if (!isNullOrUndefined(this.firstHandle)) {\n this.firstHandle.style.transition = 'none';\n }\n if (this.type !== 'Default' && !isNullOrUndefined(this.rangeBar)) {\n this.rangeBar.style.transition = 'none';\n }\n if (this.type === 'Range' && !isNullOrUndefined(this.secondHandle)) {\n this.secondHandle.style.transition = 'none';\n }\n this.handlePos1 = this.checkHandlePosition(this.handleVal1);\n if (this.handleVal2) {\n this.handlePos2 = this.checkHandlePosition(this.handleVal2);\n }\n if (this.orientation === 'Horizontal') {\n if (this.enableRtl) {\n this.firstHandle.style.right = this.handlePos1 + \"px\";\n } else {\n this.firstHandle.style.left = this.handlePos1 + \"px\";\n }\n if (this.isMaterialTooltip && !isNullOrUndefined(this.materialHandle)) {\n if (this.enableRtl) {\n this.materialHandle.style.right = this.handlePos1 + \"px\";\n } else {\n this.materialHandle.style.left = this.handlePos1 + \"px\";\n }\n }\n if (this.type === 'MinRange' && !isNullOrUndefined(this.rangeBar)) {\n if (this.enableRtl) {\n this.rangeBar.style.right = '0px';\n } else {\n this.rangeBar.style.left = '0px';\n }\n setStyleAttribute(this.rangeBar, {\n 'width': isNullOrUndefined(this.handlePos1) ? 0 : this.handlePos1 + 'px'\n });\n } else if (this.type === 'Range' && !isNullOrUndefined(this.secondHandle) && !isNullOrUndefined(this.rangeBar)) {\n if (this.enableRtl) {\n this.secondHandle.style.right = this.handlePos2 + \"px\";\n this.rangeBar.style.right = this.handlePos1 + 'px';\n } else {\n this.secondHandle.style.left = this.handlePos2 + \"px\";\n this.rangeBar.style.left = this.handlePos1 + 'px';\n }\n setStyleAttribute(this.rangeBar, {\n 'width': this.handlePos2 - this.handlePos1 + 'px'\n });\n }\n } else {\n this.firstHandle.style.bottom = this.handlePos1 + \"px\";\n if (this.isMaterialTooltip) {\n this.materialHandle.style.bottom = this.handlePos1 + \"px\";\n }\n if (this.type === 'MinRange') {\n this.rangeBar.style.bottom = this.min > this.max ? this.handlePos1 + 'px' : '0px';\n setStyleAttribute(this.rangeBar, {\n 'height': isNullOrUndefined(this.handlePos1) ? 0 : this.min > this.max ? this.element.clientHeight - this.handlePos1 + 'px' : this.handlePos1 + 'px'\n });\n } else if (this.type === 'Range') {\n this.secondHandle.style.bottom = this.handlePos2 + \"px\";\n this.rangeBar.style.bottom = this.min > this.max ? this.handlePos2 + 'px' : this.handlePos1 + 'px';\n setStyleAttribute(this.rangeBar, {\n 'height': this.min > this.max ? this.handlePos1 - this.handlePos2 + 'px' : this.handlePos2 - this.handlePos1 + 'px'\n });\n }\n }\n if (this.limits.enabled) {\n this.setLimitBar();\n }\n if (this.ticks.placement !== 'None' && this.ul) {\n this.removeElement(this.ul);\n this.ul = undefined;\n this.renderScale();\n }\n this.handleStart();\n if (!this.tooltip.isVisible) {\n setTimeout(function () {\n if (!isNullOrUndefined(_this.firstHandle)) {\n _this.firstHandle.style.transition = _this.scaleTransform;\n }\n if (_this.type === 'Range' && !isNullOrUndefined(_this.secondHandle)) {\n _this.secondHandle.style.transition = _this.scaleTransform;\n }\n });\n }\n this.refreshTooltip(this.tooltipTarget);\n this.setBarColor();\n };\n Slider.prototype.changeHandleValue = function (value) {\n var position = null;\n if (this.activeHandle === 1) {\n if (!(this.limits.enabled && this.limits.startHandleFixed)) {\n this.handleVal1 = this.checkHandleValue(value);\n this.handlePos1 = this.checkHandlePosition(this.handleVal1);\n if (this.type === 'Range' && (this.handlePos1 > this.handlePos2 && this.min < this.max || this.handlePos1 < this.handlePos2 && this.min > this.max)) {\n this.handlePos1 = this.handlePos2;\n this.handleVal1 = this.handleVal2;\n }\n if (this.handlePos1 !== this.preHandlePos1) {\n position = this.preHandlePos1 = this.handlePos1;\n }\n }\n this.modifyZindex();\n } else {\n if (!(this.limits.enabled && this.limits.endHandleFixed)) {\n this.handleVal2 = this.checkHandleValue(value);\n this.handlePos2 = this.checkHandlePosition(this.handleVal2);\n if (this.type === 'Range' && (this.handlePos2 < this.handlePos1 && this.min < this.max || this.handlePos2 > this.handlePos1 && this.min > this.max)) {\n this.handlePos2 = this.handlePos1;\n this.handleVal2 = this.handleVal1;\n }\n if (this.handlePos2 !== this.preHandlePos2) {\n position = this.preHandlePos2 = this.handlePos2;\n }\n }\n this.modifyZindex();\n }\n if (position !== null) {\n if (this.type !== 'Default') {\n this.setRangeBar();\n }\n this.setHandlePosition(null);\n }\n };\n Slider.prototype.tempStartEnd = function () {\n if (this.min > this.max) {\n return {\n start: this.max,\n end: this.min\n };\n } else {\n return {\n start: this.min,\n end: this.max\n };\n }\n };\n Slider.prototype.xyToPosition = function (position) {\n var pos;\n if (this.min === this.max) {\n return 100;\n }\n if (this.orientation === 'Horizontal') {\n var left = position.x - this.element.getBoundingClientRect().left;\n var num = this.element.offsetWidth / 100;\n this.val = left / num;\n } else {\n var top_1 = position.y - this.element.getBoundingClientRect().top;\n var num = this.element.offsetHeight / 100;\n this.val = 100 - top_1 / num;\n }\n var val = this.stepValueCalculation(this.val);\n if (val < 0) {\n val = 0;\n } else if (val > 100) {\n val = 100;\n }\n if (this.enableRtl && this.orientation !== 'Vertical') {\n val = 100 - val;\n }\n if (this.orientation === 'Horizontal') {\n pos = this.element.getBoundingClientRect().width * (val / 100);\n } else {\n pos = this.element.getBoundingClientRect().height * (val / 100);\n }\n return pos;\n };\n Slider.prototype.stepValueCalculation = function (value) {\n if (this.step === 0) {\n this.step = 1;\n }\n var percentStep = parseFloat(formatUnit(this.step)) / ((parseFloat(formatUnit(this.max)) - parseFloat(formatUnit(this.min))) / 100);\n var remain = value % Math.abs(percentStep);\n if (remain !== 0) {\n if (percentStep / 2 > remain) {\n value -= remain;\n } else {\n value += Math.abs(percentStep) - remain;\n }\n }\n return value;\n };\n Slider.prototype.add = function (a, b, addition) {\n var x = Math.pow(10, 3);\n var val;\n if (addition) {\n val = (Math.round(a * x) + Math.round(b * x)) / x;\n } else {\n val = (Math.round(a * x) - Math.round(b * x)) / x;\n }\n return val;\n };\n Slider.prototype.positionToValue = function (pos) {\n var val;\n var diff = parseFloat(formatUnit(this.max)) - parseFloat(formatUnit(this.min));\n if (this.orientation === 'Horizontal') {\n val = pos / this.element.getBoundingClientRect().width * diff;\n } else {\n val = pos / this.element.getBoundingClientRect().height * diff;\n }\n var total = this.add(val, parseFloat(this.min.toString()), true);\n return total;\n };\n Slider.prototype.sliderBarClick = function (evt) {\n evt.preventDefault();\n var pos;\n if (evt.type === 'mousedown' || evt.type === 'mouseup' || evt.type === 'click') {\n pos = {\n x: evt.clientX,\n y: evt.clientY\n };\n } else if (evt.type === 'touchend' || evt.type === 'touchstart') {\n pos = {\n x: evt.changedTouches[0].clientX,\n y: evt.changedTouches[0].clientY\n };\n }\n var handlepos = this.xyToPosition(pos);\n var handleVal = this.positionToValue(handlepos);\n if (this.type === 'Range' && (this.min < this.max && this.handlePos2 - handlepos < handlepos - this.handlePos1 || this.min > this.max && this.handlePos1 - handlepos > handlepos - this.handlePos2)) {\n this.activeHandle = 2;\n if (!(this.limits.enabled && this.limits.endHandleFixed)) {\n if (this.limits.enabled) {\n var value = this.getLimitValueAndPosition(handleVal, this.limits.maxStart, this.limits.maxEnd);\n handleVal = value[0];\n handlepos = value[1];\n }\n this.secondHandle.classList.add(classNames.sliderActiveHandle);\n this.handlePos2 = this.preHandlePos2 = handlepos;\n this.handleVal2 = handleVal;\n }\n this.modifyZindex();\n this.secondHandle.focus();\n } else {\n this.activeHandle = 1;\n if (!(this.limits.enabled && this.limits.startHandleFixed)) {\n if (this.limits.enabled) {\n var value = this.getLimitValueAndPosition(handleVal, this.limits.minStart, this.limits.minEnd);\n handleVal = value[0];\n handlepos = value[1];\n }\n this.firstHandle.classList.add(classNames.sliderActiveHandle);\n this.handlePos1 = this.preHandlePos1 = handlepos;\n this.handleVal1 = handleVal;\n }\n this.modifyZindex();\n this.firstHandle.focus();\n }\n if (this.isMaterialTooltip) {\n this.tooltipElement.classList.add(classNames.materialTooltipActive);\n }\n var focusedElement = this.element.querySelector('.' + classNames.sliderTabHandle);\n if (focusedElement && this.getHandle() !== focusedElement) {\n focusedElement.classList.remove(classNames.sliderTabHandle);\n }\n var handle = this.activeHandle === 1 ? this.firstHandle : this.secondHandle;\n var behindElement;\n if ((evt.type === 'click' || evt.type === 'mousedown') && evt.target === handle) {\n var eventX = evt.clientX,\n eventY = evt.clientY;\n behindElement = document.elementFromPoint(eventX, eventY);\n }\n if (!this.checkRepeatedValue(handleVal)) {\n return;\n }\n var transition = (this.isMaterial || this.isMaterial3) && this.tooltip.isVisible ? this.transitionOnMaterialTooltip : this.transition;\n this.getHandle().style.transition = transition.handle;\n if (this.type !== 'Default') {\n this.rangeBar.style.transition = transition.rangeBar;\n }\n this.setHandlePosition(evt);\n if (this.isMaterialTooltip) {\n this.initialTooltip = false;\n }\n if (evt.target !== handle) {\n this.changeEvent('changed', evt);\n }\n if (this.type !== 'Default') {\n this.setRangeBar();\n }\n };\n Slider.prototype.handleValueAdjust = function (handleValue, assignValue, handleNumber) {\n if (handleNumber === 1) {\n this.handleVal1 = assignValue;\n this.handleVal2 = this.handleVal1 + this.minDiff;\n } else if (handleNumber === 2) {\n this.handleVal2 = assignValue;\n this.handleVal1 = this.handleVal2 - this.minDiff;\n }\n this.handlePos1 = this.checkHandlePosition(this.handleVal1);\n this.handlePos2 = this.checkHandlePosition(this.handleVal2);\n };\n Slider.prototype.dragRangeBarMove = function (event) {\n var _a, _b;\n if (event.type !== 'touchmove') {\n event.preventDefault();\n }\n this.rangeBarDragged = true;\n var pos;\n this.rangeBar.style.transition = 'none';\n this.firstHandle.style.transition = 'none';\n this.secondHandle.style.transition = 'none';\n var xPostion;\n var yPostion;\n if (event.type === 'mousemove') {\n _a = [event.clientX, event.clientY], xPostion = _a[0], yPostion = _a[1];\n } else {\n _b = [event.changedTouches[0].clientX, event.changedTouches[0].clientY], xPostion = _b[0], yPostion = _b[1];\n }\n if (!(this.limits.enabled && this.limits.startHandleFixed) && !(this.limits.enabled && this.limits.endHandleFixed)) {\n if (!this.enableRtl) {\n pos = {\n x: xPostion - this.firstPartRemain,\n y: yPostion + this.secondPartRemain\n };\n } else {\n pos = {\n x: xPostion + this.secondPartRemain,\n y: yPostion + this.secondPartRemain\n };\n }\n if (this.min > this.max) {\n this.handlePos2 = this.xyToPosition(pos);\n this.handleVal2 = this.positionToValue(this.handlePos2);\n } else {\n this.handlePos1 = this.xyToPosition(pos);\n this.handleVal1 = this.positionToValue(this.handlePos1);\n }\n if (!this.enableRtl) {\n pos = {\n x: xPostion + this.secondPartRemain,\n y: yPostion - this.firstPartRemain\n };\n } else {\n pos = {\n x: xPostion - this.firstPartRemain,\n y: yPostion - this.firstPartRemain\n };\n }\n if (this.min > this.max) {\n this.handlePos1 = this.xyToPosition(pos);\n this.handleVal1 = this.positionToValue(this.handlePos1);\n } else {\n this.handlePos2 = this.xyToPosition(pos);\n this.handleVal2 = this.positionToValue(this.handlePos2);\n }\n if (this.limits.enabled) {\n var value = this.getLimitValueAndPosition(this.handleVal1, this.limits.minStart, this.limits.minEnd);\n this.handleVal1 = value[0];\n this.handlePos1 = value[1];\n if (this.handleVal1 === this.limits.minEnd) {\n this.handleValueAdjust(this.handleVal1, this.limits.minEnd, 1);\n }\n if (this.handleVal1 === this.limits.minStart) {\n this.handleValueAdjust(this.handleVal1, this.limits.minStart, 1);\n }\n value = this.getLimitValueAndPosition(this.handleVal2, this.limits.maxStart, this.limits.maxEnd);\n this.handleVal2 = value[0];\n this.handlePos2 = value[1];\n if (this.handleVal2 === this.limits.maxStart) {\n this.handleValueAdjust(this.handleVal2, this.limits.maxStart, 2);\n }\n if (this.handleVal2 === this.limits.maxEnd) {\n this.handleValueAdjust(this.handleVal2, this.limits.maxEnd, 2);\n }\n }\n if (this.handleVal2 === (this.min > this.max ? this.min : this.max)) {\n this.handleValueAdjust(this.handleVal2, this.min > this.max ? this.min : this.max, 2);\n }\n if (this.handleVal1 === (this.min > this.max ? this.max : this.min)) {\n this.handleValueAdjust(this.handleVal1, this.min > this.max ? this.max : this.min, 1);\n }\n }\n this.activeHandle = 1;\n this.setHandlePosition(event);\n this.activeHandle = 2;\n this.setHandlePosition(event);\n this.tooltipToggle(this.rangeBar);\n this.setRangeBar();\n };\n Slider.prototype.sliderBarUp = function (event) {\n this.changeEvent('changed', event);\n this.handleFocusOut();\n this.firstHandle.classList.remove(classNames.sliderActiveHandle);\n if (this.type === 'Range') {\n this.initialTooltip = false;\n this.secondHandle.classList.remove(classNames.sliderActiveHandle);\n }\n this.closeTooltip();\n if (this.isMaterial || this.isMaterial3) {\n this.getHandle().classList.remove('e-large-thumb-size');\n if (this.isMaterialTooltip) {\n this.tooltipElement.classList.remove(classNames.materialTooltipActive);\n }\n }\n EventHandler.remove(document, 'mousemove touchmove', this.sliderBarMove);\n EventHandler.remove(document, 'mouseup touchend', this.sliderBarUp);\n };\n Slider.prototype.sliderBarMove = function (evt) {\n if (evt.type !== 'touchmove') {\n evt.preventDefault();\n }\n var pos;\n if (evt.type === 'mousemove') {\n pos = {\n x: evt.clientX,\n y: evt.clientY\n };\n } else {\n pos = {\n x: evt.changedTouches[0].clientX,\n y: evt.changedTouches[0].clientY\n };\n }\n var handlepos = this.xyToPosition(pos);\n var handleVal = this.positionToValue(handlepos);\n handlepos = Math.round(handlepos);\n if (this.type !== 'Range' && this.activeHandle === 1) {\n if (!(this.limits.enabled && this.limits.startHandleFixed)) {\n if (this.limits.enabled) {\n var valueAndPostion = this.getLimitValueAndPosition(handleVal, this.limits.minStart, this.limits.minEnd);\n handlepos = valueAndPostion[1];\n handleVal = valueAndPostion[0];\n }\n this.handlePos1 = handlepos;\n this.handleVal1 = handleVal;\n }\n this.firstHandle.classList.add(classNames.sliderActiveHandle);\n }\n if (this.type === 'Range') {\n if (this.activeHandle === 1) {\n this.firstHandle.classList.add(classNames.sliderActiveHandle);\n if (!(this.limits.enabled && this.limits.startHandleFixed)) {\n if (this.min < this.max && handlepos > this.handlePos2 || this.min > this.max && handlepos < this.handlePos2) {\n handlepos = this.handlePos2;\n handleVal = this.handleVal2;\n }\n if (handlepos !== this.preHandlePos1) {\n if (this.limits.enabled) {\n var value = this.getLimitValueAndPosition(handleVal, this.limits.minStart, this.limits.minEnd);\n handleVal = value[0];\n handlepos = value[1];\n }\n this.handlePos1 = this.preHandlePos1 = handlepos;\n this.handleVal1 = handleVal;\n this.activeHandle = 1;\n }\n }\n } else if (this.activeHandle === 2) {\n this.secondHandle.classList.add(classNames.sliderActiveHandle);\n if (!(this.limits.enabled && this.limits.endHandleFixed)) {\n if (this.min < this.max && handlepos < this.handlePos1 || this.min > this.max && handlepos > this.handlePos1) {\n handlepos = this.handlePos1;\n handleVal = this.handleVal1;\n }\n if (handlepos !== this.preHandlePos2) {\n if (this.limits.enabled) {\n var value = this.getLimitValueAndPosition(handleVal, this.limits.maxStart, this.limits.maxEnd);\n handleVal = value[0];\n handlepos = value[1];\n }\n this.handlePos2 = this.preHandlePos2 = handlepos;\n this.handleVal2 = handleVal;\n this.activeHandle = 2;\n }\n }\n }\n }\n if (!this.checkRepeatedValue(handleVal)) {\n return;\n }\n this.getHandle().style.transition = this.scaleTransform;\n if (this.type !== 'Default') {\n this.rangeBar.style.transition = 'none';\n }\n this.setHandlePosition(evt);\n if ((this.isMaterial || this.isMaterial3) && !this.tooltip.isVisible && !this.getHandle().classList.contains(classNames.sliderTabHandle)) {\n this.materialChange();\n }\n this.tooltipToggle(this.getHandle());\n if (this.type !== 'Default') {\n this.setRangeBar();\n }\n };\n Slider.prototype.dragRangeBarUp = function (event) {\n if (!this.rangeBarDragged) {\n this.focusSliderElement();\n this.sliderBarClick(event);\n } else {\n this.isDragComplete = true;\n }\n this.changeEvent('changed', event);\n this.closeTooltip();\n EventHandler.remove(document, 'mousemove touchmove', this.dragRangeBarMove);\n EventHandler.remove(document, 'mouseup touchend', this.dragRangeBarUp);\n this.rangeBarDragged = false;\n };\n Slider.prototype.checkRepeatedValue = function (currentValue) {\n if (this.type === 'Range') {\n var previousVal = this.enableRtl && this.orientation !== 'Vertical' ? this.activeHandle === 1 ? this.previousVal[1] : this.previousVal[0] : this.activeHandle === 1 ? this.previousVal[0] : this.previousVal[1];\n if (currentValue === previousVal) {\n return 0;\n }\n } else {\n if (currentValue === this.previousVal) {\n return 0;\n }\n }\n return 1;\n };\n Slider.prototype.refreshTooltip = function (target) {\n if (this.tooltip.isVisible && this.tooltipObj) {\n this.tooltipValue();\n if (target) {\n this.tooltipObj.refresh(target);\n this.tooltipTarget = target;\n }\n }\n };\n Slider.prototype.openTooltip = function (target) {\n if (this.tooltip.isVisible && this.tooltipObj && !this.isMaterialTooltip) {\n this.tooltipValue();\n this.tooltipObj.open(target);\n this.tooltipTarget = target;\n }\n };\n Slider.prototype.closeTooltip = function () {\n if (this.tooltip.isVisible && this.tooltipObj && this.tooltip.showOn !== 'Always' && !this.isMaterialTooltip) {\n this.tooltipValue();\n this.tooltipObj.close();\n this.tooltipTarget = undefined;\n }\n };\n Slider.prototype.keyDown = function (event) {\n switch (event.keyCode) {\n case 37:\n case 38:\n case 39:\n case 40:\n case 33:\n case 34:\n case 36:\n case 35:\n event.preventDefault();\n this.buttonClick(event);\n break;\n }\n };\n Slider.prototype.wireButtonEvt = function (destroy) {\n if (!destroy) {\n EventHandler.add(this.firstBtn, 'mouseleave touchleave', this.buttonFocusOut, this);\n EventHandler.add(this.secondBtn, 'mouseleave touchleave', this.buttonFocusOut, this);\n EventHandler.add(this.firstBtn, 'mousedown touchstart', this.repeatHandlerMouse, this);\n EventHandler.add(this.firstBtn, 'mouseup mouseleave touchup touchend', this.repeatHandlerUp, this);\n EventHandler.add(this.secondBtn, 'mousedown touchstart', this.repeatHandlerMouse, this);\n EventHandler.add(this.secondBtn, 'mouseup mouseleave touchup touchend', this.repeatHandlerUp, this);\n EventHandler.add(this.firstBtn, 'focusout', this.sliderFocusOut, this);\n EventHandler.add(this.secondBtn, 'focusout', this.sliderFocusOut, this);\n } else {\n EventHandler.remove(this.firstBtn, 'mouseleave touchleave', this.buttonFocusOut);\n EventHandler.remove(this.secondBtn, 'mouseleave touchleave', this.buttonFocusOut);\n EventHandler.remove(this.firstBtn, 'mousedown touchstart', this.repeatHandlerMouse);\n EventHandler.remove(this.firstBtn, 'mouseup mouseleave touchup touchend', this.repeatHandlerUp);\n EventHandler.remove(this.secondBtn, 'mousedown touchstart', this.repeatHandlerMouse);\n EventHandler.remove(this.secondBtn, 'mouseup mouseleave touchup touchend', this.repeatHandlerUp);\n EventHandler.remove(this.firstBtn, 'focusout', this.sliderFocusOut);\n EventHandler.remove(this.secondBtn, 'focusout', this.sliderFocusOut);\n }\n };\n Slider.prototype.rangeBarMousedown = function (event) {\n var _a, _b;\n event.preventDefault();\n this.focusSliderElement();\n if (this.type === 'Range' && this.drag && event.target === this.rangeBar) {\n var xPostion = void 0;\n var yPostion = void 0;\n if (event.type === 'mousedown') {\n _a = [event.clientX, event.clientY], xPostion = _a[0], yPostion = _a[1];\n } else if (event.type === 'touchstart') {\n _b = [event.changedTouches[0].clientX, event.changedTouches[0].clientY], xPostion = _b[0], yPostion = _b[1];\n }\n if (this.orientation === 'Horizontal') {\n this.firstPartRemain = xPostion - this.rangeBar.getBoundingClientRect().left;\n this.secondPartRemain = this.rangeBar.getBoundingClientRect().right - xPostion;\n } else {\n this.firstPartRemain = yPostion - this.rangeBar.getBoundingClientRect().top;\n this.secondPartRemain = this.rangeBar.getBoundingClientRect().bottom - yPostion;\n }\n this.minDiff = this.handleVal2 - this.handleVal1;\n this.tooltipToggle(this.rangeBar);\n var focusedElement = this.element.querySelector('.' + classNames.sliderTabHandle);\n if (focusedElement) {\n focusedElement.classList.remove(classNames.sliderTabHandle);\n }\n EventHandler.add(document, 'mousemove touchmove', this.dragRangeBarMove, this);\n EventHandler.add(document, 'mouseup touchend', this.dragRangeBarUp, this);\n }\n };\n Slider.prototype.elementClick = function (event) {\n if (this.isDragComplete) {\n this.isDragComplete = false;\n return;\n }\n event.preventDefault();\n this.focusSliderElement();\n this.sliderBarClick(event);\n this.focusHandle();\n };\n Slider.prototype.wireEvents = function () {\n this.onresize = this.reposition.bind(this);\n window.addEventListener('resize', this.onresize);\n if (this.enabled && !this.readonly) {\n EventHandler.add(this.element, 'click', this.elementClick, this);\n if (this.type === 'Range' && this.drag) {\n EventHandler.add(this.rangeBar, 'mousedown touchstart', this.rangeBarMousedown, this);\n }\n EventHandler.add(this.sliderContainer, 'keydown', this.keyDown, this);\n EventHandler.add(this.sliderContainer, 'keyup', this.keyUp, this);\n EventHandler.add(this.element, 'focusout', this.sliderFocusOut, this);\n EventHandler.add(this.sliderContainer, 'mouseover mouseout touchstart touchend', this.hover, this);\n this.wireFirstHandleEvt(false);\n if (this.type === 'Range') {\n this.wireSecondHandleEvt(false);\n }\n if (this.showButtons) {\n this.wireButtonEvt(false);\n }\n this.wireMaterialTooltipEvent(false);\n if (this.isForm) {\n EventHandler.add(this.formElement, 'reset', this.formResetHandler, this);\n }\n }\n };\n Slider.prototype.unwireEvents = function () {\n EventHandler.remove(this.element, 'click', this.elementClick);\n if (this.type === 'Range' && this.drag) {\n EventHandler.remove(this.rangeBar, 'mousedown touchstart', this.rangeBarMousedown);\n }\n EventHandler.remove(this.sliderContainer, 'keydown', this.keyDown);\n EventHandler.remove(this.sliderContainer, 'keyup', this.keyUp);\n EventHandler.remove(this.element, 'focusout', this.sliderFocusOut);\n EventHandler.remove(this.sliderContainer, 'mouseover mouseout touchstart touchend', this.hover);\n this.wireFirstHandleEvt(true);\n if (this.type === 'Range') {\n this.wireSecondHandleEvt(true);\n }\n if (this.showButtons) {\n this.wireButtonEvt(true);\n }\n this.wireMaterialTooltipEvent(true);\n EventHandler.remove(this.element, 'reset', this.formResetHandler);\n };\n Slider.prototype.formResetHandler = function () {\n this.setProperties({\n 'value': this.formResetValue\n }, true);\n this.setValue();\n };\n Slider.prototype.keyUp = function (event) {\n if (event.keyCode === 9 && event.target.classList.contains(classNames.sliderHandle)) {\n this.focusSliderElement();\n if (!event.target.classList.contains(classNames.sliderTabHandle)) {\n if (this.element.querySelector('.' + classNames.sliderTabHandle)) {\n this.element.querySelector('.' + classNames.sliderTabHandle).classList.remove(classNames.sliderTabHandle);\n }\n event.target.classList.add(classNames.sliderTabHandle);\n var parentElement = event.target.parentElement;\n if (parentElement === this.element) {\n parentElement.querySelector('.' + classNames.sliderTrack).classList.add(classNames.sliderTabTrack);\n if (this.type === 'Range' || this.type === 'MinRange') {\n parentElement.querySelector('.' + classNames.rangeBar).classList.add(classNames.sliderTabRange);\n }\n }\n if (this.type === 'Range') {\n var previousSibling = event.target.previousSibling;\n if (previousSibling && previousSibling.classList.contains(classNames.sliderHandle)) {\n this.activeHandle = 2;\n } else {\n this.activeHandle = 1;\n }\n }\n this.getHandle().focus();\n this.tooltipToggle(this.getHandle());\n }\n }\n this.closeTooltip();\n this.changeEvent('changed', event);\n };\n Slider.prototype.hover = function (event) {\n if (!isNullOrUndefined(event)) {\n if (event.type === 'mouseover' || event.type === 'touchmove' || event.type === 'mousemove' || event.type === 'pointermove' || event.type === 'touchstart') {\n this.sliderContainer.classList.add(classNames.sliderHover);\n } else {\n this.sliderContainer.classList.remove(classNames.sliderHover);\n var curTarget = event.currentTarget;\n if (this.tooltip.isVisible && this.tooltip.showOn !== 'Always' && this.tooltipObj && this.isMaterialTooltip && !curTarget.classList.contains(classNames.sliderHandleFocused) && !curTarget.classList.contains(classNames.sliderTabHandle)) {\n this.closeMaterialTooltip();\n }\n }\n }\n };\n Slider.prototype.sliderFocusOut = function (event) {\n if (event.relatedTarget !== this.secondHandle && event.relatedTarget !== this.firstHandle && event.relatedTarget !== this.element && event.relatedTarget !== this.firstBtn && event.relatedTarget !== this.secondBtn) {\n this.closeMaterialTooltip();\n this.closeTooltip();\n if (this.element.querySelector('.' + classNames.sliderTabHandle)) {\n this.element.querySelector('.' + classNames.sliderTabHandle).classList.remove(classNames.sliderTabHandle);\n }\n if (this.element.querySelector('.' + classNames.sliderTabTrack)) {\n this.element.querySelector('.' + classNames.sliderTabTrack).classList.remove(classNames.sliderTabTrack);\n if ((this.type === 'Range' || this.type === 'MinRange') && this.element.querySelector('.' + classNames.sliderTabRange)) {\n this.element.querySelector('.' + classNames.sliderTabRange).classList.remove(classNames.sliderTabRange);\n }\n }\n this.hiddenInput.focus();\n this.hiddenInput.blur();\n this.isElementFocused = false;\n }\n };\n Slider.prototype.removeElement = function (element) {\n if (element.parentNode) {\n element.parentNode.removeChild(element);\n }\n };\n Slider.prototype.changeSliderType = function (type, args) {\n if (this.isMaterialTooltip && this.materialHandle) {\n this.sliderContainer.classList.remove(classNames.materialSlider);\n this.removeElement(this.materialHandle);\n this.materialHandle = undefined;\n }\n this.removeElement(this.firstHandle);\n this.firstHandle = undefined;\n if (type !== 'Default') {\n if (type === 'Range') {\n this.removeElement(this.secondHandle);\n this.secondHandle = undefined;\n }\n this.removeElement(this.rangeBar);\n this.rangeBar = undefined;\n }\n if (this.tooltip.isVisible && !isNullOrUndefined(this.tooltipObj)) {\n this.tooltipObj.destroy();\n this.tooltipElement = undefined;\n this.tooltipCollidedPosition = undefined;\n }\n if (this.limits.enabled) {\n if (type === 'MinRange' || type === 'Default') {\n if (!isNullOrUndefined(this.limitBarFirst)) {\n this.removeElement(this.limitBarFirst);\n this.limitBarFirst = undefined;\n }\n } else {\n if (!isNullOrUndefined(this.limitBarSecond)) {\n this.removeElement(this.limitBarSecond);\n this.limitBarSecond = undefined;\n }\n }\n }\n this.activeHandle = 1;\n this.getThemeInitialization();\n if (this.type === 'Range') {\n this.rangeValueUpdate();\n }\n this.createRangeBar();\n if (this.limits.enabled) {\n this.createLimitBar();\n }\n this.setHandler();\n this.setOrientClass();\n this.wireFirstHandleEvt(!this.enabled);\n if (this.type === 'Range') {\n this.wireSecondHandleEvt(!this.enabled);\n }\n this.setValue();\n if (this.tooltip.isVisible) {\n this.renderTooltip();\n this.wireMaterialTooltipEvent(false);\n }\n this.setBarColor();\n if (args !== 'tooltip') {\n this.updateConfig();\n }\n if (this.readonly) {\n this.sliderContainer.classList.remove(classNames.readonly);\n this.setReadOnly();\n }\n };\n Slider.prototype.changeRtl = function () {\n if (!this.enableRtl && this.type === 'Range') {\n this.value = [this.handleVal2, this.handleVal1];\n }\n this.updateConfig();\n if (this.tooltip.isVisible) {\n this.tooltipObj.refresh(this.firstHandle);\n }\n if (this.showButtons) {\n var enabledRTL = this.enableRtl && this.orientation !== 'Vertical';\n attributes(enabledRTL ? this.secondBtn : this.firstBtn, {\n 'aria-label': 'Decrease',\n title: 'Decrease'\n });\n attributes(enabledRTL ? this.firstBtn : this.secondBtn, {\n 'aria-label': 'Increase',\n title: 'Increase'\n });\n }\n };\n Slider.prototype.changeOrientation = function () {\n this.changeSliderType(this.type, 'null');\n };\n Slider.prototype.updateConfig = function () {\n this.setEnableRTL();\n this.setValue();\n if (this.tooltip.isVisible) {\n this.refreshTooltip(this.tooltipTarget);\n }\n if (this.ticks.placement !== 'None') {\n if (this.ul) {\n this.removeElement(this.ul);\n this.ul = undefined;\n this.renderScale();\n }\n }\n this.limitsPropertyChange();\n };\n Slider.prototype.limitsPropertyChange = function () {\n if (this.limits.enabled) {\n if (isNullOrUndefined(this.limitBarFirst) && this.type !== 'Range') {\n this.createLimitBar();\n }\n if (isNullOrUndefined(this.limitBarFirst) && isNullOrUndefined(this.limitBarSecond) && this.type === 'Range') {\n this.createLimitBar();\n }\n this.setLimitBar();\n this.setValue();\n } else {\n if (!isNullOrUndefined(this.limitBarFirst)) {\n detach(this.limitBarFirst);\n }\n if (!isNullOrUndefined(this.limitBarSecond)) {\n detach(this.limitBarSecond);\n }\n }\n };\n /**\n * Get the properties to be maintained in the persisted state.\n *\n * @returns {string} - Returns the string\n * @private\n */\n Slider.prototype.getPersistData = function () {\n var keyEntity = ['value'];\n return this.addOnPersist(keyEntity);\n };\n /**\n * Removes the component from the DOM and detaches all its related event handlers.\n * Also it removes the attributes and classes.\n *\n * @method destroy\n * @returns {void}\n */\n Slider.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n this.unwireEvents();\n window.removeEventListener('resize', this.onresize);\n removeClass([this.sliderContainer], [classNames.sliderDisabled]);\n this.firstHandle.removeAttribute('aria-orientation');\n if (this.type === 'Range') {\n this.secondHandle.removeAttribute('aria-orientation');\n }\n if (this.sliderContainer.parentNode) {\n this.sliderContainer.parentNode.insertBefore(this.element, this.sliderContainer);\n }\n detach(this.sliderContainer);\n if (this.tooltip.isVisible) {\n this.tooltipObj.destroy();\n }\n this.element.innerHTML = '';\n this.hiddenInput = null;\n this.sliderContainer = null;\n this.sliderTrack = null;\n this.rangeBar = null;\n this.firstHandle = null;\n this.secondHandle = null;\n this.tickElementCollection = null;\n this.ul = null;\n this.firstBtn = null;\n this.secondBtn = null;\n this.materialHandle = null;\n this.tooltipObj = null;\n this.tooltipTarget = null;\n this.limitBarFirst = null;\n this.limitBarSecond = null;\n this.firstChild = null;\n this.lastChild = null;\n this.tooltipElement = null;\n };\n /**\n * Calls internally if any of the property value is changed.\n *\n * @param {SliderModel} newProp - Specifies the new properties\n * @param {SliderModel} oldProp - Specifies the old properties\n * @returns {void}\n * @private\n */\n Slider.prototype.onPropertyChanged = function (newProp, oldProp) {\n var _this = this;\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'cssClass':\n this.setCSSClass(oldProp.cssClass);\n break;\n case 'value':\n if (newProp && oldProp) {\n var value = isNullOrUndefined(newProp.value) ? this.type === 'Range' ? [this.min, this.max] : this.min : newProp.value;\n this.setProperties({\n 'value': value\n }, true);\n if (!isNullOrUndefined(oldProp.value) && oldProp.value.toString() !== value.toString()) {\n this.setValue();\n this.refreshTooltip(this.tooltipTarget);\n if (this.type === 'Range') {\n if (isNullOrUndefined(newProp.value) || oldProp.value[1] === value[1]) {\n this.activeHandle = 1;\n } else {\n this.activeHandle = 2;\n }\n }\n }\n }\n break;\n case 'min':\n case 'step':\n case 'max':\n this.setMinMaxValue();\n break;\n case 'tooltip':\n if (!isNullOrUndefined(newProp.tooltip) && !isNullOrUndefined(oldProp.tooltip)) {\n this.initialTooltip = true;\n this.setTooltip(prop);\n if (!this.showButtons) {\n this.wireEvents();\n }\n }\n break;\n case 'type':\n if (!isNullOrUndefined(oldProp) && Object.keys(oldProp).length && !isNullOrUndefined(oldProp.type)) {\n this.changeSliderType(oldProp.type, prop);\n this.setZindex();\n }\n break;\n case 'enableRtl':\n if (oldProp.enableRtl !== newProp.enableRtl && this.orientation !== 'Vertical') {\n this.rtl = oldProp.enableRtl;\n this.changeRtl();\n }\n break;\n case 'limits':\n this.limitsPropertyChange();\n break;\n case 'orientation':\n this.changeOrientation();\n break;\n case 'ticks':\n if (!isNullOrUndefined(this.sliderContainer.querySelector('.' + classNames.scale))) {\n detach(this.ul);\n Array.prototype.forEach.call(this.sliderContainer.classList, function (className) {\n if (className.match(/e-scale-/)) {\n _this.sliderContainer.classList.remove(className);\n }\n });\n }\n if (this.ticks.placement !== 'None') {\n this.renderScale();\n this.setZindex();\n }\n break;\n case 'locale':\n if (this.showButtons) {\n this.buttonTitle();\n }\n break;\n case 'showButtons':\n if (newProp.showButtons) {\n this.setButtons();\n this.reposition();\n if (this.enabled && !this.readonly) {\n this.wireButtonEvt(false);\n }\n } else {\n if (this.firstBtn && this.secondBtn) {\n this.sliderContainer.removeChild(this.firstBtn);\n this.sliderContainer.removeChild(this.secondBtn);\n this.sliderContainer.classList.remove(classNames.sliderButtonClass);\n this.firstBtn = undefined;\n this.secondBtn = undefined;\n this.reposition();\n }\n }\n break;\n case 'enabled':\n this.setEnabled();\n break;\n case 'readonly':\n this.setReadOnly();\n break;\n case 'customValues':\n this.setValue();\n this.reposition();\n break;\n case 'colorRange':\n this.reposition();\n break;\n case 'width':\n this.setElementWidth(newProp.width);\n this.setMinMaxValue();\n if (this.limits) {\n this.limitsPropertyChange();\n }\n break;\n }\n }\n };\n Slider.prototype.setReadOnly = function () {\n if (this.readonly) {\n this.unwireEvents();\n this.sliderContainer.classList.add(classNames.readonly);\n } else {\n this.wireEvents();\n this.sliderContainer.classList.remove(classNames.readonly);\n }\n };\n Slider.prototype.setMinMaxValue = function () {\n var _this = this;\n this.setValue();\n this.refreshTooltip(this.tooltipTarget);\n if (!isNullOrUndefined(this.sliderContainer.querySelector('.' + classNames.scale))) {\n if (this.ul) {\n detach(this.ul);\n Array.prototype.forEach.call(this.sliderContainer.classList, function (className) {\n if (className.match(/e-scale-/)) {\n _this.sliderContainer.classList.remove(className);\n }\n });\n }\n }\n if (this.ticks.placement !== 'None') {\n this.renderScale();\n this.setZindex();\n }\n };\n Slider.prototype.setZindex = function () {\n this.zIndex = 6;\n if (!isNullOrUndefined(this.ticks) && this.ticks.placement !== 'None' && !isNullOrUndefined(this.ul) && !isNullOrUndefined(this.element)) {\n this.ul.style.zIndex = this.zIndex + -7 + '';\n this.element.style.zIndex = this.zIndex + 2 + '';\n }\n if (!this.isMaterial && !this.isMaterial3 && !isNullOrUndefined(this.ticks) && this.ticks.placement === 'Both') {\n this.element.style.zIndex = this.zIndex + 2 + '';\n }\n if (!isNullOrUndefined(this.firstHandle)) {\n this.firstHandle.style.zIndex = this.zIndex + 3 + '';\n }\n if (this.type === 'Range' && !isNullOrUndefined(this.secondHandle)) {\n this.secondHandle.style.zIndex = this.zIndex + 4 + '';\n }\n };\n Slider.prototype.setTooltip = function (args) {\n this.changeSliderType(this.type, args);\n };\n Slider.prototype.setBarColor = function () {\n var trackPosition;\n var trackClassName;\n var child = this.sliderTrack.lastElementChild;\n while (child) {\n this.sliderTrack.removeChild(child);\n child = this.sliderTrack.lastElementChild;\n }\n for (var i = 0; i < this.colorRange.length; i++) {\n if (!isNullOrUndefined(this.colorRange[i].start) && !isNullOrUndefined(this.colorRange[i].end)) {\n if (this.colorRange[i].end > this.colorRange[i].start) {\n if (this.colorRange[i].start < this.min) {\n this.colorRange[i].start = this.min;\n }\n if (this.colorRange[i].end > this.max) {\n this.colorRange[i].end = this.max;\n }\n var startingPosition = this.checkHandlePosition(this.colorRange[i].start);\n var endPosition = this.checkHandlePosition(this.colorRange[i].end);\n var trackContainer = this.createElement('div');\n trackContainer.style.backgroundColor = this.colorRange[i].color;\n trackContainer.style.border = '1px solid ' + this.colorRange[i].color;\n if (this.orientation === 'Horizontal') {\n trackClassName = classNames.sliderHorizantalColor;\n if (this.enableRtl) {\n if (isNullOrUndefined(this.customValues)) {\n trackPosition = this.checkHandlePosition(this.max) - this.checkHandlePosition(this.colorRange[i].end);\n } else {\n trackPosition = this.checkHandlePosition(this.customValues.length - this.colorRange[i].end - 1);\n }\n } else {\n trackPosition = this.checkHandlePosition(this.colorRange[i].start);\n }\n trackContainer.style.width = endPosition - startingPosition + 'px';\n trackContainer.style.left = trackPosition + 'px';\n } else {\n trackClassName = classNames.sliderVerticalColor;\n trackPosition = this.checkHandlePosition(this.colorRange[i].start);\n trackContainer.style.height = endPosition - startingPosition + 'px';\n trackContainer.style.bottom = trackPosition + 'px';\n }\n trackContainer.classList.add(trackClassName);\n this.sliderTrack.appendChild(trackContainer);\n }\n }\n }\n };\n /**\n * Gets the component name\n *\n * @returns {string} - Returns the string\n * @private\n */\n Slider.prototype.getModuleName = function () {\n return 'slider';\n };\n __decorate$2([Property(null)], Slider.prototype, \"value\", void 0);\n __decorate$2([Property(null)], Slider.prototype, \"customValues\", void 0);\n __decorate$2([Property(1)], Slider.prototype, \"step\", void 0);\n __decorate$2([Property(null)], Slider.prototype, \"width\", void 0);\n __decorate$2([Property(0)], Slider.prototype, \"min\", void 0);\n __decorate$2([Property(100)], Slider.prototype, \"max\", void 0);\n __decorate$2([Property(false)], Slider.prototype, \"readonly\", void 0);\n __decorate$2([Property('Default')], Slider.prototype, \"type\", void 0);\n __decorate$2([Collection([{}], ColorRangeData)], Slider.prototype, \"colorRange\", void 0);\n __decorate$2([Complex({}, TicksData)], Slider.prototype, \"ticks\", void 0);\n __decorate$2([Complex({}, LimitData)], Slider.prototype, \"limits\", void 0);\n __decorate$2([Property(true)], Slider.prototype, \"enabled\", void 0);\n __decorate$2([Complex({}, TooltipData)], Slider.prototype, \"tooltip\", void 0);\n __decorate$2([Property(false)], Slider.prototype, \"showButtons\", void 0);\n __decorate$2([Property(true)], Slider.prototype, \"enableAnimation\", void 0);\n __decorate$2([Property('Horizontal')], Slider.prototype, \"orientation\", void 0);\n __decorate$2([Property('')], Slider.prototype, \"cssClass\", void 0);\n __decorate$2([Property(true)], Slider.prototype, \"enableHtmlSanitizer\", void 0);\n __decorate$2([Event()], Slider.prototype, \"created\", void 0);\n __decorate$2([Event()], Slider.prototype, \"change\", void 0);\n __decorate$2([Event()], Slider.prototype, \"changed\", void 0);\n __decorate$2([Event()], Slider.prototype, \"renderingTicks\", void 0);\n __decorate$2([Event()], Slider.prototype, \"renderedTicks\", void 0);\n __decorate$2([Event()], Slider.prototype, \"tooltipChange\", void 0);\n Slider = __decorate$2([NotifyPropertyChanges], Slider);\n return Slider;\n}(Component);\nvar __extends$3 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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};\n/**\n * global declarations\n */\nvar regex = {\n /* eslint-disable no-useless-escape */\n EMAIL: new RegExp('^[A-Za-z0-9._%+-]{1,}@[A-Za-z0-9._%+-]{1,}([.]{1}[a-zA-Z0-9]{2,}' + '|[.]{1}[a-zA-Z0-9]{2,4}[.]{1}[a-zA-Z0-9]{2,4})$'),\n /* eslint-disable-next-line security/detect-unsafe-regex */\n URL: /^(?:http(s)?:\\/\\/)?[\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\._~:/?#[\\]@!\\$&'\\(\\)\\*\\+,;=.]+$/m,\n DATE_ISO: new RegExp('^([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$'),\n DIGITS: new RegExp('^[0-9]*$'),\n PHONE: new RegExp('^[+]?[0-9]{9,13}$'),\n CREDITCARD: new RegExp('^\\\\d{13,16}$')\n /* eslint-enable no-useless-escape */\n};\n/**\n * ErrorOption values\n *\n * @private\n */\nvar ErrorOption = /*#__PURE__*/function (ErrorOption) {\n /**\n * Defines the error message.\n */\n ErrorOption[ErrorOption[\"Message\"] = 0] = \"Message\";\n /**\n * Defines the error element type.\n */\n ErrorOption[ErrorOption[\"Label\"] = 1] = \"Label\";\n return ErrorOption;\n}(ErrorOption || {});\n/**\n * FormValidator class enables you to validate the form fields based on your defined rules\n * ```html\n *
\n * \n * \n *
\n * \n * ```\n */\nvar FormValidator = /** @__PURE__ @class */function (_super) {\n __extends$3(FormValidator, _super);\n /**\n * Initializes the FormValidator.\n *\n * @param {string | HTMLFormElement} element - Specifies the element to render as component.\n * @param {FormValidatorModel} options - Specifies the FormValidator model.\n * @private\n */\n function FormValidator(element, options) {\n var _this = _super.call(this, options, element) || this;\n _this.validated = [];\n _this.errorRules = [];\n _this.allowSubmit = false;\n _this.required = 'required';\n _this.infoElement = null;\n _this.inputElement = null;\n _this.selectQuery = 'input:not([type=reset]):not([type=button]), select, textarea';\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n _this.localyMessage = {};\n /**\n * Specifies the default messages for validation rules.\n *\n * @default { List of validation message }\n */\n _this.defaultMessages = {\n required: 'This field is required.',\n email: 'Please enter a valid email address.',\n url: 'Please enter a valid URL.',\n date: 'Please enter a valid date.',\n dateIso: 'Please enter a valid date ( ISO ).',\n creditcard: 'Please enter valid card number',\n number: 'Please enter a valid number.',\n digits: 'Please enter only digits.',\n maxLength: 'Please enter no more than {0} characters.',\n minLength: 'Please enter at least {0} characters.',\n rangeLength: 'Please enter a value between {0} and {1} characters long.',\n range: 'Please enter a value between {0} and {1}.',\n max: 'Please enter a value less than or equal to {0}.',\n min: 'Please enter a value greater than or equal to {0}.',\n regex: 'Please enter a correct value.',\n tel: 'Please enter a valid phone number.',\n pattern: 'Please enter a correct pattern value.',\n equalTo: 'Please enter the valid match text'\n };\n if (typeof _this.rules === 'undefined') {\n _this.rules = {};\n }\n _this.l10n = new L10n('formValidator', _this.defaultMessages, _this.locale);\n if (_this.locale) {\n _this.localeFunc();\n }\n onIntlChange.on('notifyExternalChange', _this.afterLocalization, _this);\n element = typeof element === 'string' ? select(element, document) : element;\n // Set novalidate to prevent default HTML5 form validation\n if (_this.element != null) {\n _this.element.setAttribute('novalidate', '');\n _this.inputElements = selectAll(_this.selectQuery, _this.element);\n _this.createHTML5Rules();\n _this.wireEvents();\n } else {\n return undefined;\n }\n return _this;\n }\n FormValidator_1 = FormValidator;\n /* eslint-enable @typescript-eslint/no-explicit-any */\n /**\n * Add validation rules to the corresponding input element based on `name` attribute.\n *\n * @param {string} name `name` of form field.\n * @param {Object} rules Validation rules for the corresponding element.\n * @returns {void}\n */\n FormValidator.prototype.addRules = function (name, rules) {\n if (name) {\n // eslint-disable-next-line no-prototype-builtins\n if (this.rules.hasOwnProperty(name)) {\n extend(this.rules[\"\" + name], rules, {});\n } else {\n this.rules[\"\" + name] = rules;\n }\n }\n };\n /**\n * Remove validation to the corresponding field based on name attribute.\n * When no parameter is passed, remove all the validations in the form.\n *\n * @param {string} name Input name attribute value.\n * @param {string[]} rules List of validation rules need to be remove from the corresponding element.\n * @returns {void}\n */\n FormValidator.prototype.removeRules = function (name, rules) {\n if (!name && !rules) {\n this.rules = {};\n } else if (this.rules[\"\" + name] && !rules) {\n delete this.rules[\"\" + name];\n } else if (!isNullOrUndefined(this.rules[\"\" + name] && rules)) {\n for (var i = 0; i < rules.length; i++) {\n delete this.rules[\"\" + name][rules[parseInt(i.toString(), 10)]];\n }\n } else {\n return;\n }\n };\n /**\n * Validate the current form values using defined rules.\n * Returns `true` when the form is valid otherwise `false`\n *\n * @param {string} selected - Optional parameter to validate specified element.\n * @returns {boolean} - Returns form validation status.\n */\n FormValidator.prototype.validate = function (selected) {\n var rules = Object.keys(this.rules);\n if (selected && rules.length) {\n this.validateRules(selected);\n //filter the selected element it don't have any valid input element\n return rules.indexOf(selected) !== -1 && this.errorRules.filter(function (data) {\n return data.name === selected;\n }).length === 0;\n } else {\n this.errorRules = [];\n for (var _i = 0, rules_1 = rules; _i < rules_1.length; _i++) {\n var name_1 = rules_1[_i];\n this.validateRules(name_1);\n }\n return this.errorRules.length === 0;\n }\n };\n /**\n * Reset the value of all the fields in form.\n *\n * @returns {void}\n */\n FormValidator.prototype.reset = function () {\n this.element.reset();\n this.clearForm();\n };\n /**\n * Get input element by name.\n *\n * @param {string} name - Input element name attribute value.\n * @returns {HTMLInputElement} - Returns the input element.\n */\n FormValidator.prototype.getInputElement = function (name) {\n this.inputElement = select('[name=\"' + name + '\"]', this.element);\n return this.inputElement;\n };\n /**\n * Destroy the form validator object and error elements.\n *\n * @returns {void}\n */\n FormValidator.prototype.destroy = function () {\n this.reset();\n this.unwireEvents();\n this.rules = {};\n var elements = selectAll('.' + this.errorClass + ', .' + this.validClass, this.element);\n for (var _i = 0, elements_1 = elements; _i < elements_1.length; _i++) {\n var element = elements_1[_i];\n detach(element);\n }\n _super.prototype.destroy.call(this);\n this.infoElement = null;\n onIntlChange.off('notifyExternalChange', this.afterLocalization);\n };\n /**\n * @param {FormValidatorModel} newProp - Returns the dynamic property value of the component.\n * @param {FormValidatorModel} oldProp - Returns the previous property value of the component.\n * @returns {void}\n * @private\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n FormValidator.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'locale':\n this.localeFunc();\n break;\n }\n }\n };\n /**\n * @private\n * @returns {void}\n */\n FormValidator.prototype.localeFunc = function () {\n for (var _i = 0, _a = Object.keys(this.defaultMessages); _i < _a.length; _i++) {\n var key = _a[_i];\n this.l10n.setLocale(this.locale);\n var value = this.l10n.getConstant(key);\n this.localyMessage[\"\" + key] = value;\n }\n };\n /**\n * @private\n * @returns {string} - Returns the component name.\n */\n FormValidator.prototype.getModuleName = function () {\n return 'formvalidator';\n };\n /**\n * @param {any} args - Specifies the culture name.\n * @returns {void}\n * @private\n */\n FormValidator.prototype.afterLocalization = function (args) {\n this.locale = args.locale;\n this.localeFunc();\n };\n /**\n * Allows you to refresh the form validator base events to the elements inside the form.\n *\n * @returns {void}\n */\n FormValidator.prototype.refresh = function () {\n this.unwireEvents();\n this.inputElements = selectAll(this.selectQuery, this.element);\n this.wireEvents();\n };\n FormValidator.prototype.clearForm = function () {\n this.errorRules = [];\n this.validated = [];\n var elements = selectAll(this.selectQuery, this.element);\n for (var _i = 0, elements_2 = elements; _i < elements_2.length; _i++) {\n var element = elements_2[_i];\n var input = element;\n input.removeAttribute('aria-invalid');\n var inputParent = input.parentElement;\n var grandParent = inputParent.parentElement;\n if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper') || input.classList.contains('e-input') && inputParent.classList.contains('e-input-group')) {\n inputParent.classList.remove(this.errorClass);\n } else if (grandParent != null && (grandParent.classList.contains('e-control-wrapper') || grandParent.classList.contains('e-wrapper'))) {\n grandParent.classList.remove(this.errorClass);\n } else {\n input.classList.remove(this.errorClass);\n }\n if (input.name.length > 0) {\n this.getInputElement(input.name);\n this.getErrorElement(input.name);\n this.hideMessage(input.name);\n }\n if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper') || input.classList.contains('e-input') && inputParent.classList.contains('e-input-group')) {\n inputParent.classList.remove(this.validClass);\n } else if (grandParent != null && (grandParent.classList.contains('e-control-wrapper') || grandParent.classList.contains('e-wrapper'))) {\n grandParent.classList.remove(this.validClass);\n } else {\n input.classList.remove(this.validClass);\n }\n }\n };\n FormValidator.prototype.createHTML5Rules = function () {\n var defRules = ['required', 'validateHidden', 'regex', 'rangeLength', 'maxLength', 'minLength', 'dateIso', 'digits', 'pattern', 'data-val-required', 'type', 'data-validation', 'min', 'max', 'range', 'equalTo', 'data-val-minlength-min', 'data-val-equalto-other', 'data-val-maxlength-max', 'data-val-range-min', 'data-val-regex-pattern', 'data-val-length-max', 'data-val-creditcard', 'data-val-phone'];\n var acceptedTypes = ['hidden', 'email', 'url', 'date', 'number', 'tel'];\n for (var _i = 0, _a = this.inputElements; _i < _a.length; _i++) {\n var input = _a[_i];\n // Default attribute rules\n var allRule = {};\n for (var _b = 0, defRules_1 = defRules; _b < defRules_1.length; _b++) {\n var rule = defRules_1[_b];\n if (input.getAttribute(rule) !== null) {\n switch (rule) {\n case 'required':\n this.defRule(input, allRule, rule, input.required);\n break;\n case 'data-validation':\n rule = input.getAttribute(rule);\n this.defRule(input, allRule, rule, true);\n break;\n case 'type':\n if (acceptedTypes.indexOf(input.type) !== -1) {\n this.defRule(input, allRule, input.type, true);\n }\n break;\n case 'rangeLength':\n case 'range':\n this.defRule(input, allRule, rule, JSON.parse(input.getAttribute(rule)));\n break;\n case 'equalTo':\n {\n var id = input.getAttribute(rule);\n this.defRule(input, allRule, rule, id);\n }\n break;\n default:\n if (input.getAttribute('data-val') === 'true') {\n this.annotationRule(input, allRule, rule, input.getAttribute(rule));\n } else {\n this.defRule(input, allRule, rule, input.getAttribute(rule));\n }\n }\n }\n }\n //adding pattern type validation\n if (Object.keys(allRule).length !== 0) {\n this.addRules(input.name, allRule);\n }\n }\n };\n FormValidator.prototype.annotationRule = function (input, ruleCon, ruleName, value) {\n var annotationRule = ruleName.split('-');\n var rulesList = ['required', 'creditcard', 'phone', 'maxlength', 'minlength', 'range', 'regex', 'equalto'];\n var ruleFirstName = annotationRule[annotationRule.length - 1];\n var ruleSecondName = annotationRule[annotationRule.length - 2];\n if (rulesList.indexOf(ruleFirstName) !== -1) {\n switch (ruleFirstName) {\n case 'required':\n this.defRule(input, ruleCon, 'required', value);\n break;\n case 'creditcard':\n this.defRule(input, ruleCon, 'creditcard', value);\n break;\n case 'phone':\n this.defRule(input, ruleCon, 'tel', value);\n break;\n }\n } else if (rulesList.indexOf(ruleSecondName) !== -1) {\n switch (ruleSecondName) {\n case 'maxlength':\n this.defRule(input, ruleCon, 'maxLength', value);\n break;\n case 'minlength':\n this.defRule(input, ruleCon, 'minLength', value);\n break;\n case 'range':\n {\n var minvalue = input.getAttribute('data-val-range-min');\n var maxvalue = input.getAttribute('data-val-range-max');\n this.defRule(input, ruleCon, 'range', [minvalue, maxvalue]);\n }\n break;\n case 'equalto':\n {\n var id = input.getAttribute(ruleName).split('.');\n this.defRule(input, ruleCon, 'equalTo', id[id.length - 1]);\n }\n break;\n case 'regex':\n this.defRule(input, ruleCon, 'regex', value);\n break;\n }\n }\n };\n FormValidator.prototype.defRule = function (input, ruleCon, ruleName, value) {\n var message = input.getAttribute('data-' + ruleName + '-message');\n var annotationMessage = input.getAttribute('data-val-' + ruleName);\n var customMessage;\n if (this.rules[input.name] && ruleName !== 'validateHidden' && ruleName !== 'hidden') {\n this.getInputElement(input.name);\n customMessage = this.getErrorMessage(this.rules[input.name][\"\" + ruleName], ruleName);\n }\n if (message) {\n value = [value, message];\n } else if (annotationMessage) {\n value = [value, annotationMessage];\n } else if (customMessage) {\n value = [value, customMessage];\n }\n ruleCon[\"\" + ruleName] = value;\n };\n // Wire events to the form elements\n FormValidator.prototype.wireEvents = function () {\n for (var _i = 0, _a = this.inputElements; _i < _a.length; _i++) {\n var input = _a[_i];\n if (FormValidator_1.isCheckable(input)) {\n EventHandler.add(input, 'click', this.clickHandler, this);\n } else if (input.tagName === 'SELECT') {\n EventHandler.add(input, 'change', this.changeHandler, this);\n } else {\n EventHandler.add(input, 'focusout', this.focusOutHandler, this);\n EventHandler.add(input, 'keyup', this.keyUpHandler, this);\n }\n }\n EventHandler.add(this.element, 'submit', this.submitHandler, this);\n EventHandler.add(this.element, 'reset', this.resetHandler, this);\n };\n // UnWire events to the form elements\n FormValidator.prototype.unwireEvents = function () {\n for (var _i = 0, _a = this.inputElements; _i < _a.length; _i++) {\n var input = _a[_i];\n EventHandler.clearEvents(input);\n }\n EventHandler.remove(this.element, 'submit', this.submitHandler);\n EventHandler.remove(this.element, 'reset', this.resetHandler);\n };\n // Handle input element focusout event\n FormValidator.prototype.focusOutHandler = function (e) {\n this.trigger('focusout', e);\n //FormValidator.triggerCallback(this.focusout, e);\n var element = e.target;\n if (this.rules[element.name]) {\n if (this.rules[element.name][this.required] || element.value.length > 0) {\n this.validate(element.name);\n } else if (this.validated.indexOf(element.name) === -1) {\n this.validated.push(element.name);\n }\n }\n };\n // Handle input element keyup event\n FormValidator.prototype.keyUpHandler = function (e) {\n this.trigger('keyup', e);\n var element = e.target;\n // List of keys need to prevent while validation\n var excludeKeys = [16, 17, 18, 20, 35, 36, 37, 38, 39, 40, 45, 144, 225];\n if (e.which === 9 && (!this.rules[element.name] || this.rules[element.name] && !this.rules[element.name][this.required])) {\n return;\n }\n if (this.validated.indexOf(element.name) !== -1 && this.rules[element.name] && excludeKeys.indexOf(e.which) === -1) {\n this.validate(element.name);\n }\n };\n // Handle input click event\n FormValidator.prototype.clickHandler = function (e) {\n this.trigger('click', e);\n var element = e.target;\n // If element type is not submit allow validation\n if (element.type !== 'submit') {\n this.validate(element.name);\n } else if (element.getAttribute('formnovalidate') !== null) {\n // Prevent form validation, if submit button has formnovalidate attribute\n this.allowSubmit = true;\n }\n };\n // Handle input change event\n FormValidator.prototype.changeHandler = function (e) {\n this.trigger('change', e);\n var element = e.target;\n this.validate(element.name);\n };\n // Handle form submit event\n FormValidator.prototype.submitHandler = function (e) {\n this.trigger('submit', e);\n //FormValidator.triggerCallback(this.submit, e);\n // Prevent form submit if validation failed\n if (!this.allowSubmit && !this.validate()) {\n e.preventDefault();\n } else {\n this.allowSubmit = false;\n }\n };\n // Handle form reset\n FormValidator.prototype.resetHandler = function () {\n this.clearForm();\n };\n // Validate each rule based on input element name\n FormValidator.prototype.validateRules = function (name) {\n if (!this.rules[\"\" + name]) {\n return;\n }\n var rules = Object.keys(this.rules[\"\" + name]);\n var hiddenType = false;\n var validateHiddenType = false;\n var vhPos = rules.indexOf('validateHidden');\n var hPos = rules.indexOf('hidden');\n this.getInputElement(name);\n if (hPos !== -1) {\n hiddenType = true;\n }\n if (vhPos !== -1) {\n validateHiddenType = true;\n }\n if (!hiddenType || hiddenType && validateHiddenType) {\n if (vhPos !== -1) {\n rules.splice(vhPos, 1);\n }\n if (hPos !== -1) {\n rules.splice(hPos - 1, 1);\n }\n this.getErrorElement(name);\n for (var _i = 0, rules_2 = rules; _i < rules_2.length; _i++) {\n var rule = rules_2[_i];\n var errorMessage = this.getErrorMessage(this.rules[\"\" + name][\"\" + rule], rule);\n var errorRule = {\n name: name,\n message: errorMessage\n };\n var eventArgs = {\n inputName: name,\n element: this.inputElement,\n message: errorMessage\n };\n if (!this.isValid(name, rule) && !this.inputElement.classList.contains(this.ignore)) {\n this.removeErrorRules(name);\n this.errorRules.push(errorRule);\n // Set aria attributes to invalid elements\n this.inputElement.setAttribute('aria-invalid', 'true');\n this.inputElement.setAttribute('aria-describedby', this.inputElement.id + '-info');\n var inputParent = this.inputElement.parentElement;\n var grandParent = inputParent.parentElement;\n if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper') || this.inputElement.classList.contains('e-input') && inputParent.classList.contains('e-input-group')) {\n inputParent.classList.add(this.errorClass);\n inputParent.classList.remove(this.validClass);\n } else if (grandParent != null && (grandParent.classList.contains('e-control-wrapper') || grandParent.classList.contains('e-wrapper'))) {\n grandParent.classList.add(this.errorClass);\n grandParent.classList.remove(this.validClass);\n } else {\n this.inputElement.classList.add(this.errorClass);\n this.inputElement.classList.remove(this.validClass);\n }\n if (!this.infoElement) {\n this.createErrorElement(name, errorRule.message, this.inputElement);\n } else {\n this.showMessage(errorRule);\n }\n eventArgs.errorElement = this.infoElement;\n eventArgs.status = 'failure';\n if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper') || this.inputElement.classList.contains('e-input') && inputParent.classList.contains('e-input-group')) {\n inputParent.classList.add(this.errorClass);\n inputParent.classList.remove(this.validClass);\n } else if (grandParent != null && (grandParent.classList.contains('e-control-wrapper') || grandParent.classList.contains('e-wrapper'))) {\n grandParent.classList.add(this.errorClass);\n grandParent.classList.remove(this.validClass);\n } else {\n this.inputElement.classList.add(this.errorClass);\n this.inputElement.classList.remove(this.validClass);\n }\n this.optionalValidationStatus(name, eventArgs);\n this.trigger('validationComplete', eventArgs);\n // Set aria-required to required rule elements\n if (rule === 'required') {\n this.inputElement.setAttribute('aria-required', 'true');\n }\n break;\n } else {\n this.hideMessage(name);\n eventArgs.status = 'success';\n this.trigger('validationComplete', eventArgs);\n }\n }\n } else {\n return;\n }\n };\n // Update the optional validation status\n FormValidator.prototype.optionalValidationStatus = function (name, refer) {\n if (!this.rules[\"\" + name][this.required] && !this.inputElement.value.length && !isNullOrUndefined(this.infoElement)) {\n this.infoElement.innerHTML = this.inputElement.value;\n this.infoElement.setAttribute('aria-invalid', 'false');\n refer.status = '';\n this.hideMessage(name);\n }\n };\n // Check the input element whether it's value satisfy the validation rule or not\n FormValidator.prototype.isValid = function (name, rule) {\n var params = this.rules[\"\" + name][\"\" + rule];\n var param = params instanceof Array && typeof params[1] === 'string' ? params[0] : params;\n var currentRule = this.rules[\"\" + name][\"\" + rule];\n var dateFormat = (rule === 'min' || rule === 'max') && this.rules['' + name].date && typeof this.rules['' + name].date === 'string' ? this.rules['' + name].date : null;\n var args = {\n value: this.inputElement.value,\n param: param,\n element: this.inputElement,\n formElement: this.element,\n format: dateFormat\n };\n this.trigger('validationBegin', args);\n if (!args.param && rule === 'required') {\n return true;\n }\n if (currentRule && typeof currentRule[0] === 'function') {\n var fn = currentRule[0];\n return fn.call(this, {\n element: this.inputElement,\n value: this.inputElement.value\n });\n } else if (FormValidator_1.isCheckable(this.inputElement)) {\n if (rule !== 'required') {\n return true;\n }\n return selectAll('input[name=\"' + name + '\"]:checked', this.element).length > 0;\n } else {\n return FormValidator_1.checkValidator[\"\" + rule](args);\n }\n };\n // Return default error message or custom error message\n FormValidator.prototype.getErrorMessage = function (ruleValue, rule) {\n var message = this.inputElement.getAttribute('data-' + rule + '-message') ? this.inputElement.getAttribute('data-' + rule + '-message') : ruleValue instanceof Array && typeof ruleValue[1] === 'string' ? ruleValue[1] : Object.keys(this.localyMessage).length !== 0 ? this.localyMessage[\"\" + rule] : this.defaultMessages[\"\" + rule];\n var formats = message.match(/{(\\d)}/g);\n if (!isNullOrUndefined(formats)) {\n for (var i = 0; i < formats.length; i++) {\n var value = ruleValue instanceof Array ? ruleValue[parseInt(i.toString(), 10)] : ruleValue;\n message = message.replace(formats[parseInt(i.toString(), 10)], value);\n }\n }\n return message;\n };\n // Create error element based on name and error message\n FormValidator.prototype.createErrorElement = function (name, message, input) {\n var errorElement = createElement(this.errorElement, {\n className: this.errorClass,\n innerHTML: message,\n attrs: {\n for: name\n }\n });\n // Create message design if errorOption is message\n if (this.errorOption === ErrorOption.Message) {\n errorElement.classList.remove(this.errorClass);\n errorElement.classList.add('e-message');\n errorElement = createElement(this.errorContainer, {\n className: this.errorClass,\n innerHTML: errorElement.outerHTML\n });\n }\n errorElement.id = this.inputElement.name + '-info';\n // Append error message into MVC error message element\n if (this.element.querySelector('[data-valmsg-for=\"' + input.id + '\"]')) {\n this.element.querySelector('[data-valmsg-for=\"' + input.id + '\"]').appendChild(errorElement);\n } else if (input.hasAttribute('data-msg-containerid') === true) {\n // Append error message into custom div element\n var containerId = input.getAttribute('data-msg-containerid');\n var divElement = select('#' + containerId, this.element);\n divElement.appendChild(errorElement);\n } else if (this.customPlacement != null) {\n // Call custom placement function if customPlacement is not null\n this.customPlacement.call(this, this.inputElement, errorElement);\n } else {\n var inputParent = this.inputElement.parentElement;\n var grandParent = inputParent.parentElement;\n if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper')) {\n grandParent.insertBefore(errorElement, inputParent.nextSibling);\n } else if (grandParent.classList.contains('e-control-wrapper') || grandParent.classList.contains('e-wrapper')) {\n grandParent.parentElement.insertBefore(errorElement, grandParent.nextSibling);\n } else {\n inputParent.insertBefore(errorElement, this.inputElement.nextSibling);\n }\n }\n errorElement.style.display = 'block';\n this.getErrorElement(name);\n this.validated.push(name);\n this.checkRequired(name);\n };\n // Get error element by name\n FormValidator.prototype.getErrorElement = function (name) {\n this.infoElement = select(this.errorElement + '.' + this.errorClass, this.inputElement.parentElement);\n if (!this.infoElement) {\n this.infoElement = select(this.errorElement + '.' + this.errorClass + '[for=\"' + name + '\"]', this.element);\n }\n return this.infoElement;\n };\n // Remove existing rule from errorRules object\n FormValidator.prototype.removeErrorRules = function (name) {\n for (var i = 0; i < this.errorRules.length; i++) {\n var rule = this.errorRules[parseInt(i.toString(), 10)];\n if (rule.name === name) {\n this.errorRules.splice(i, 1);\n }\n }\n };\n // Show error message to the input element\n FormValidator.prototype.showMessage = function (errorRule) {\n this.infoElement.style.display = 'block';\n this.infoElement.innerHTML = errorRule.message;\n this.checkRequired(errorRule.name);\n };\n // Hide error message based on input name\n FormValidator.prototype.hideMessage = function (name) {\n if (this.infoElement) {\n this.infoElement.style.display = 'none';\n this.removeErrorRules(name);\n var inputParent = this.inputElement.parentElement;\n var grandParent = inputParent.parentElement;\n if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper') || this.inputElement.classList.contains('e-input') && inputParent.classList.contains('e-input-group')) {\n inputParent.classList.add(this.validClass);\n inputParent.classList.remove(this.errorClass);\n } else if (grandParent != null && (grandParent.classList.contains('e-control-wrapper') || grandParent.classList.contains('e-wrapper'))) {\n grandParent.classList.add(this.validClass);\n grandParent.classList.remove(this.errorClass);\n } else {\n this.inputElement.classList.add(this.validClass);\n this.inputElement.classList.remove(this.errorClass);\n }\n this.inputElement.setAttribute('aria-invalid', 'false');\n }\n };\n // Check whether the input element have required rule and its value is not empty\n FormValidator.prototype.checkRequired = function (name) {\n if (!this.rules[\"\" + name][this.required] && !this.inputElement.value.length && !isNullOrUndefined(this.infoElement)) {\n this.infoElement.innerHTML = this.inputElement.value;\n this.infoElement.setAttribute('aria-invalid', 'false');\n this.hideMessage(name);\n }\n };\n // Return boolean result if the input have checkable or submit types\n FormValidator.isCheckable = function (input) {\n var inputType = input.getAttribute('type');\n return inputType && (inputType === 'checkbox' || inputType === 'radio' || inputType === 'submit');\n };\n var FormValidator_1;\n // List of function to validate the rules\n FormValidator.checkValidator = {\n required: function (option) {\n return !isNaN(Date.parse(option.value)) ? !isNaN(new Date(option.value).getTime()) : option.value.toString().length > 0;\n },\n email: function (option) {\n return regex.EMAIL.test(option.value);\n },\n url: function (option) {\n return regex.URL.test(option.value);\n },\n dateIso: function (option) {\n return regex.DATE_ISO.test(option.value);\n },\n tel: function (option) {\n return regex.PHONE.test(option.value);\n },\n creditcard: function (option) {\n return regex.CREDITCARD.test(option.value);\n },\n number: function (option) {\n return !isNaN(Number(option.value)) && option.value.indexOf(' ') === -1;\n },\n digits: function (option) {\n return regex.DIGITS.test(option.value);\n },\n maxLength: function (option) {\n return option.value.length <= Number(option.param);\n },\n minLength: function (option) {\n return option.value.length >= Number(option.param);\n },\n rangeLength: function (option) {\n var param = option.param;\n return option.value.length >= param[0] && option.value.length <= param[1];\n },\n range: function (option) {\n var param = option.param;\n return !isNaN(Number(option.value)) && Number(option.value) >= param[0] && Number(option.value) <= param[1];\n },\n date: function (option) {\n if (!isNullOrUndefined(option.param) && typeof option.param === 'string' && option.param !== '') {\n var globalize = new Internationalization();\n var dateOptions = {\n format: option.param.toString(),\n type: 'dateTime',\n skeleton: 'yMd'\n };\n var dateValue = globalize.parseDate(option.value, dateOptions);\n return !isNullOrUndefined(dateValue) && dateValue instanceof Date && !isNaN(+dateValue);\n } else {\n return !isNaN(new Date(option.value).getTime());\n }\n },\n max: function (option) {\n if (!isNaN(Number(option.value))) {\n // Maximum rule validation for number\n return +option.value <= +option.param;\n }\n // Maximum rule validation for date\n if (option.format && option.format !== '') {\n var globalize = new Internationalization();\n var dateOptions = {\n format: option.format.toString(),\n type: 'dateTime',\n skeleton: 'yMd'\n };\n var dateValue = globalize.parseDate(option.value, dateOptions);\n var maxValue = typeof option.param === 'string' ? globalize.parseDate(JSON.parse(JSON.stringify(option.param)), dateOptions) : option.param;\n return new Date(dateValue).getTime() <= new Date(maxValue).getTime();\n } else {\n return new Date(option.value).getTime() <= new Date(JSON.parse(JSON.stringify(option.param))).getTime();\n }\n },\n min: function (option) {\n if (!isNaN(Number(option.value))) {\n // Minimum rule validation for number\n return +option.value >= +option.param;\n } else if (option.value.indexOf(',') !== -1) {\n var uNum = option.value.replace(/,/g, '');\n return parseFloat(uNum) >= Number(option.param); // Convert option.param to a number\n } else {\n // Minimum rule validation for date\n if (option.format && option.format !== '') {\n var globalize = new Internationalization();\n var dateOptions = {\n format: option.format.toString(),\n type: 'dateTime',\n skeleton: 'yMd'\n };\n var dateValue = globalize.parseDate(option.value, dateOptions);\n var minValue = typeof option.param === 'string' ? globalize.parseDate(JSON.parse(JSON.stringify(option.param)), dateOptions) : option.param;\n return new Date(dateValue).getTime() >= new Date(minValue).getTime();\n } else {\n return new Date(option.value).getTime() >= new Date(JSON.parse(JSON.stringify(option.param))).getTime();\n }\n }\n },\n regex: function (option) {\n /* eslint-disable-next-line security/detect-non-literal-regexp */\n return new RegExp(option.param).test(option.value);\n },\n equalTo: function (option) {\n var compareTo = option.formElement.querySelector('#' + option.param);\n option.param = compareTo.value;\n return option.param === option.value;\n }\n };\n __decorate$3([Property('')], FormValidator.prototype, \"locale\", void 0);\n __decorate$3([Property('e-hidden')], FormValidator.prototype, \"ignore\", void 0);\n __decorate$3([Property()], FormValidator.prototype, \"rules\", void 0);\n __decorate$3([Property('e-error')], FormValidator.prototype, \"errorClass\", void 0);\n __decorate$3([Property('e-valid')], FormValidator.prototype, \"validClass\", void 0);\n __decorate$3([Property('label')], FormValidator.prototype, \"errorElement\", void 0);\n __decorate$3([Property('div')], FormValidator.prototype, \"errorContainer\", void 0);\n __decorate$3([Property(ErrorOption.Label)], FormValidator.prototype, \"errorOption\", void 0);\n __decorate$3([Event()], FormValidator.prototype, \"focusout\", void 0);\n __decorate$3([Event()], FormValidator.prototype, \"keyup\", void 0);\n __decorate$3([Event()], FormValidator.prototype, \"click\", void 0);\n __decorate$3([Event()], FormValidator.prototype, \"change\", void 0);\n __decorate$3([Event()], FormValidator.prototype, \"submit\", void 0);\n __decorate$3([Event()], FormValidator.prototype, \"validationBegin\", void 0);\n __decorate$3([Event()], FormValidator.prototype, \"validationComplete\", void 0);\n __decorate$3([Event()], FormValidator.prototype, \"customPlacement\", void 0);\n FormValidator = FormValidator_1 = __decorate$3([NotifyPropertyChanges], FormValidator);\n return FormValidator;\n}(Base);\nvar __extends$4 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 CONTROL_WRAPPER = 'e-upload e-control-wrapper';\nvar INPUT_WRAPPER = 'e-file-select';\nvar DROP_AREA = 'e-file-drop';\nvar DROP_WRAPPER = 'e-file-select-wrap';\nvar LIST_PARENT = 'e-upload-files';\nvar FILE = 'e-upload-file-list';\nvar STATUS = 'e-file-status';\nvar ACTION_BUTTONS = 'e-upload-actions';\nvar UPLOAD_BUTTONS = 'e-file-upload-btn e-css e-btn e-flat e-primary';\nvar CLEAR_BUTTONS = 'e-file-clear-btn e-css e-btn e-flat';\nvar FILE_NAME = 'e-file-name';\nvar FILE_TYPE = 'e-file-type';\nvar FILE_SIZE = 'e-file-size';\nvar REMOVE_ICON = 'e-file-remove-btn';\nvar DELETE_ICON = 'e-file-delete-btn';\nvar SPINNER_PANE = 'e-spinner-pane';\nvar ABORT_ICON = 'e-file-abort-btn';\nvar RETRY_ICON = 'e-file-reload-btn';\nvar DRAG_HOVER = 'e-upload-drag-hover';\nvar PROGRESS_WRAPPER = 'e-upload-progress-wrap';\nvar PROGRESSBAR = 'e-upload-progress-bar';\nvar PROGRESSBAR_TEXT = 'e-progress-bar-text';\nvar UPLOAD_INPROGRESS = 'e-upload-progress';\nvar UPLOAD_SUCCESS = 'e-upload-success';\nvar UPLOAD_FAILED = 'e-upload-fails';\nvar TEXT_CONTAINER = 'e-file-container';\nvar VALIDATION_FAILS = 'e-validation-fails';\nvar RTL = 'e-rtl';\nvar DISABLED = 'e-disabled';\nvar RTL_CONTAINER = 'e-rtl-container';\nvar ICON_FOCUSED = 'e-clear-icon-focus';\nvar PROGRESS_INNER_WRAPPER = 'e-progress-inner-wrap';\nvar PAUSE_UPLOAD = 'e-file-pause-btn';\nvar RESUME_UPLOAD = 'e-file-play-btn';\nvar RESTRICT_RETRY = 'e-restrict-retry';\nvar wrapperAttr$1 = ['title', 'style', 'class'];\nvar FORM_UPLOAD = 'e-form-upload';\nvar HIDDEN_INPUT = 'e-hidden-file-input';\nvar INVALID_FILE = 'e-file-invalid';\nvar INFORMATION = 'e-file-information';\nvar FilesProp = /** @__PURE__ @class */function (_super) {\n __extends$4(FilesProp, _super);\n function FilesProp() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$4([Property('')], FilesProp.prototype, \"name\", void 0);\n __decorate$4([Property(null)], FilesProp.prototype, \"size\", void 0);\n __decorate$4([Property('')], FilesProp.prototype, \"type\", void 0);\n return FilesProp;\n}(ChildProperty);\nvar ButtonsProps = /** @__PURE__ @class */function (_super) {\n __extends$4(ButtonsProps, _super);\n function ButtonsProps() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$4([Property('Browse...')], ButtonsProps.prototype, \"browse\", void 0);\n __decorate$4([Property('Upload')], ButtonsProps.prototype, \"upload\", void 0);\n __decorate$4([Property('Clear')], ButtonsProps.prototype, \"clear\", void 0);\n return ButtonsProps;\n}(ChildProperty);\nvar AsyncSettings = /** @__PURE__ @class */function (_super) {\n __extends$4(AsyncSettings, _super);\n function AsyncSettings() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$4([Property('')], AsyncSettings.prototype, \"saveUrl\", void 0);\n __decorate$4([Property('')], AsyncSettings.prototype, \"removeUrl\", void 0);\n __decorate$4([Property(0)], AsyncSettings.prototype, \"chunkSize\", void 0);\n __decorate$4([Property(3)], AsyncSettings.prototype, \"retryCount\", void 0);\n __decorate$4([Property(500)], AsyncSettings.prototype, \"retryAfterDelay\", void 0);\n return AsyncSettings;\n}(ChildProperty);\n/**\n * The uploader component allows to upload images, documents, and other files from local to server.\n * ```html\n * \n * ```\n * ```typescript\n * \n * ```\n */\nvar Uploader = /** @__PURE__ @class */function (_super) {\n __extends$4(Uploader, _super);\n /**\n * Triggers when change the Uploader value.\n *\n * @param {UploaderModel} options - Specifies the Uploader model.\n * @param {string | HTMLInputElement} element - Specifies the element to render as component.\n * @private\n */\n function Uploader(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.initialAttr = {\n accept: null,\n multiple: false,\n disabled: false\n };\n _this.uploadedFilesData = [];\n _this.base64String = [];\n _this.isForm = false;\n _this.allTypes = false;\n _this.pausedData = [];\n _this.uploadMetaData = [];\n _this.tabIndex = '0';\n _this.btnTabIndex = '0';\n _this.disableKeyboardNavigation = false;\n _this.count = -1;\n _this.actionCompleteCount = 0;\n _this.flag = true;\n _this.selectedFiles = [];\n _this.uploaderName = 'UploadFiles';\n _this.fileStreams = [];\n _this.newFileRef = 0;\n _this.isFirstFileOnSelection = false;\n _this.dragCounter = 0;\n /**\n * Get the file item(li) which are shown in file list.\n *\n * @private\n */\n _this.fileList = [];\n /**\n * Get the data of files which are shown in file list.\n *\n * @private\n */\n _this.filesData = [];\n _this.uploaderOptions = options;\n return _this;\n }\n /**\n * Calls internally if any of the property value is changed.\n *\n * @param {UploaderModel} newProp - Returns the dynamic property value of the component.\n * @param {UploaderModel} oldProp - Returns the previous property value of the component.\n * @returns {void}\n * @private\n */\n Uploader.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'allowedExtensions':\n this.setExtensions(this.allowedExtensions);\n this.clearAll();\n break;\n case 'enabled':\n this.setControlStatus();\n break;\n case 'multiple':\n this.setMultipleSelection();\n break;\n case 'enableRtl':\n this.setRTL();\n this.reRenderFileList();\n break;\n case 'buttons':\n this.buttons.browse = isNullOrUndefined(this.buttons.browse) ? '' : this.buttons.browse;\n this.buttons.clear = isNullOrUndefined(this.buttons.clear) ? '' : this.buttons.clear;\n this.buttons.upload = isNullOrUndefined(this.buttons.upload) ? '' : this.buttons.upload;\n this.renderButtonTemplates();\n break;\n case 'dropArea':\n this.unBindDropEvents();\n this.updateDropArea();\n break;\n case 'htmlAttributes':\n this.updateHTMLAttrToElement();\n this.updateHTMLAttrToWrapper();\n this.checkHTMLAttributes(true);\n break;\n case 'files':\n this.renderPreLoadFiles();\n break;\n case 'directoryUpload':\n this.updateDirectoryAttributes();\n break;\n case 'template':\n if (this.isReact) {\n this.reRenderFileList();\n } else {\n this.clearAll();\n }\n break;\n case 'minFileSize':\n case 'maxFileSize':\n case 'autoUpload':\n this.clearAll();\n break;\n case 'sequentialUpload':\n this.clearAll();\n break;\n case 'locale':\n this.l10n.setLocale(this.locale);\n this.setLocalizedTexts();\n this.preLocaleObj = getValue('currentLocale', this.l10n);\n break;\n case 'cssClass':\n this.setCSSClass(oldProp.cssClass);\n break;\n }\n }\n };\n Uploader.prototype.setLocalizedTexts = function () {\n if (isNullOrUndefined(this.template)) {\n if (typeof this.buttons.browse === 'string') {\n this.browseButton.innerText = this.buttons.browse === 'Browse...' ? this.localizedTexts('Browse') : this.buttons.browse;\n this.browseButton.setAttribute('title', this.browseButton.innerText);\n if (this.uploadWrapper && !isNullOrUndefined(this.uploadWrapper.querySelector('.' + DROP_AREA))) {\n this.uploadWrapper.querySelector('.' + DROP_AREA).innerHTML = this.localizedTexts('dropFilesHint');\n }\n }\n this.updateFileList();\n }\n };\n Uploader.prototype.getKeyValue = function (val) {\n var keyValue;\n for (var _i = 0, _a = Object.keys(this.preLocaleObj); _i < _a.length; _i++) {\n var key = _a[_i];\n if (this.preLocaleObj[\"\" + key] === val) {\n keyValue = key;\n }\n }\n return keyValue;\n };\n Uploader.prototype.updateFileList = function () {\n var element;\n /* istanbul ignore next */\n if (this.fileList.length > 0 && !isNullOrUndefined(this.uploadWrapper.querySelector('.' + LIST_PARENT))) {\n for (var i = 0; i < this.fileList.length; i++) {\n element = this.fileList[i].querySelector('.e-file-status');\n element.innerHTML = this.localizedTexts(this.getKeyValue(this.filesData[i].status));\n this.filesData[i].status = this.localizedTexts(this.getKeyValue(this.filesData[i].status));\n if (this.fileList[i].classList.contains(UPLOAD_SUCCESS)) {\n this.fileList[i].querySelector('.e-icons').setAttribute('title', this.localizedTexts('delete'));\n }\n if (this.fileList[i].querySelector('.e-file-play-btn')) {\n this.fileList[i].querySelector('.e-icons').setAttribute('title', this.localizedTexts('resume'));\n }\n if (this.fileList[i].querySelector('.e-file-remove-btn')) {\n this.fileList[i].querySelector('.e-icons').setAttribute('title', this.localizedTexts('remove'));\n }\n if (this.fileList[i].querySelector('.e-file-reload-btn')) {\n this.fileList[i].querySelector('.e-icons').setAttribute('title', this.localizedTexts('retry'));\n }\n if (!this.autoUpload) {\n this.uploadButton.innerText = this.buttons.upload === 'Upload' ? this.localizedTexts('Upload') : this.buttons.upload;\n this.uploadButton.setAttribute('title', this.localizedTexts('Upload'));\n this.clearButton.innerText = this.buttons.clear === 'Clear' ? this.localizedTexts('Clear') : this.buttons.clear;\n this.clearButton.setAttribute('title', this.localizedTexts('Clear'));\n }\n }\n }\n };\n Uploader.prototype.reRenderFileList = function () {\n if (this.listParent) {\n detach(this.listParent);\n this.listParent = null;\n this.fileList = [];\n this.internalCreateFileList(this.filesData);\n if (this.actionButtons) {\n this.removeActionButtons();\n this.renderActionButtons();\n this.checkActionButtonStatus();\n }\n }\n };\n Uploader.prototype.preRender = function () {\n this.localeText = {\n Browse: 'Browse...',\n Clear: 'Clear',\n Upload: 'Upload',\n invalidFileName: 'File Name is not allowed',\n dropFilesHint: 'Or drop files here',\n invalidMaxFileSize: 'File size is too large',\n invalidMinFileSize: 'File size is too small',\n invalidFileType: 'File type is not allowed',\n uploadFailedMessage: 'File failed to upload',\n uploadSuccessMessage: 'File uploaded successfully',\n removedSuccessMessage: 'File removed successfully',\n removedFailedMessage: 'Unable to remove file',\n inProgress: 'Uploading',\n readyToUploadMessage: 'Ready to upload',\n abort: 'Abort',\n remove: 'Remove',\n cancel: 'Cancel',\n delete: 'Delete file',\n pauseUpload: 'File upload paused',\n pause: 'Pause',\n resume: 'Resume',\n retry: 'Retry',\n fileUploadCancel: 'File upload canceled',\n invalidFileSelection: 'Invalid files selected',\n totalFiles: 'Total files',\n size: 'Size'\n };\n this.l10n = new L10n('uploader', this.localeText, this.locale);\n this.preLocaleObj = getValue('currentLocale', this.l10n);\n this.formRendered();\n this.updateHTMLAttrToElement();\n this.checkHTMLAttributes(false);\n var ejInstance = getValue('ej2_instances', this.element);\n /* istanbul ignore next */\n if (this.element.tagName === 'EJS-UPLOADER') {\n var inputElement = this.createElement('input', {\n attrs: {\n type: 'file'\n }\n });\n var index = 0;\n for (index; index < this.element.attributes.length; index++) {\n if (this.element.attributes[index].nodeName !== 'id') {\n inputElement.setAttribute(this.element.attributes[index].nodeName, this.element.attributes[index].nodeValue);\n } else if (this.element.attributes[index].nodeName === 'id') {\n inputElement.setAttribute(this.element.attributes[index].nodeName, getUniqueID('uploader'));\n }\n inputElement.innerHTML = this.element.innerHTML;\n }\n if (!inputElement.hasAttribute('name')) {\n inputElement.setAttribute('name', 'UploadFiles');\n }\n this.element.appendChild(inputElement);\n this.element = inputElement;\n setValue('ej2_instances', ejInstance, this.element);\n }\n /* istanbul ignore next */\n if (ejInstance[0].isPureReactComponent) {\n if (!isNullOrUndefined(ejInstance[0].props.name)) {\n this.element.setAttribute('name', ejInstance[0].props.name);\n } else if (!isNullOrUndefined(ejInstance[0].props.id) && isNullOrUndefined(ejInstance[0].props.name)) {\n this.element.setAttribute('name', ejInstance[0].props.id);\n } else {\n this.element.setAttribute('name', 'UploadFiles');\n }\n }\n if (isNullOrUndefined(this.element.getAttribute('name'))) {\n this.element.setAttribute('name', this.element.getAttribute('id'));\n }\n if (!this.element.hasAttribute('type')) {\n this.element.setAttribute('type', 'file');\n }\n this.updateDirectoryAttributes();\n this.keyConfigs = {\n enter: 'enter'\n };\n if (this.element.hasAttribute('tabindex')) {\n this.tabIndex = this.element.getAttribute('tabindex');\n }\n this.browserName = Browser.info.name;\n this.uploaderName = this.element.getAttribute('name');\n };\n Uploader.prototype.formRendered = function () {\n var parentEle = closest(this.element, 'form');\n if (!isNullOrUndefined(parentEle)) {\n for (; parentEle && parentEle !== document.documentElement; parentEle = parentEle.parentElement) {\n if (parentEle.tagName === 'FORM') {\n this.isForm = true;\n this.formElement = parentEle;\n parentEle.setAttribute('enctype', 'multipart/form-data');\n parentEle.setAttribute('encoding', 'multipart/form-data');\n }\n }\n }\n };\n Uploader.prototype.getPersistData = function () {\n return this.addOnPersist(['filesData']);\n };\n /**\n * Return the module name of the component.\n *\n * @returns {string} Returns the component name.\n */\n Uploader.prototype.getModuleName = function () {\n return 'uploader';\n };\n Uploader.prototype.updateDirectoryAttributes = function () {\n if (this.directoryUpload) {\n this.element.setAttribute('directory', 'true');\n this.element.setAttribute('webkitdirectory', 'true');\n } else {\n this.element.removeAttribute('directory');\n this.element.removeAttribute('webkitdirectory');\n }\n };\n /**\n * To Initialize the control rendering\n *\n * @private\n * @returns {void}\n */\n Uploader.prototype.render = function () {\n this.renderBrowseButton();\n this.initializeUpload();\n this.updateHTMLAttrToWrapper();\n this.wireEvents();\n this.setMultipleSelection();\n this.setExtensions(this.allowedExtensions);\n this.setRTL();\n this.renderPreLoadFiles();\n this.setControlStatus();\n this.setCSSClass();\n };\n Uploader.prototype.renderBrowseButton = function () {\n this.browseButton = this.createElement('button', {\n className: 'e-css e-btn',\n attrs: {\n 'type': 'button'\n }\n });\n this.browseButton.setAttribute('tabindex', this.tabIndex);\n if (typeof this.buttons.browse === 'string') {\n this.browseButton.textContent = this.buttons.browse === 'Browse...' ? this.localizedTexts('Browse') : this.buttons.browse;\n this.browseButton.setAttribute('title', this.browseButton.innerText);\n } else {\n this.browseButton.appendChild(this.buttons.browse);\n }\n this.element.setAttribute('aria-label', 'Uploader');\n };\n Uploader.prototype.renderActionButtons = function () {\n this.element.setAttribute('tabindex', '-1');\n this.actionButtons = this.createElement('div', {\n className: ACTION_BUTTONS\n });\n this.uploadButton = this.createElement('button', {\n className: UPLOAD_BUTTONS,\n attrs: {\n 'type': 'button',\n 'tabindex': this.btnTabIndex,\n 'aria-label': this.localizedTexts('Upload')\n }\n });\n this.clearButton = this.createElement('button', {\n className: CLEAR_BUTTONS,\n attrs: {\n 'type': 'button',\n 'tabindex': this.btnTabIndex,\n 'aria-label': this.localizedTexts('Clear')\n }\n });\n this.actionButtons.appendChild(this.clearButton);\n this.actionButtons.appendChild(this.uploadButton);\n this.renderButtonTemplates();\n this.uploadWrapper.appendChild(this.actionButtons);\n this.browseButton.blur();\n if (!this.isPreloadFiles) {\n this.uploadButton.focus();\n }\n this.wireActionButtonEvents();\n };\n /* istanbul ignore next */\n Uploader.prototype.serverActionButtonsEventBind = function (element) {\n if (element && !this.isForm) {\n this.browseButton.blur();\n this.actionButtons = element;\n this.uploadButton = this.actionButtons.querySelector('.e-file-upload-btn');\n this.clearButton = this.actionButtons.querySelector('.e-file-clear-btn');\n this.uploadButton.focus();\n this.unwireActionButtonEvents();\n this.wireActionButtonEvents();\n this.checkActionButtonStatus();\n }\n };\n Uploader.prototype.wireActionButtonEvents = function () {\n EventHandler.add(this.uploadButton, 'click', this.uploadButtonClick, this);\n EventHandler.add(this.clearButton, 'click', this.clearButtonClick, this);\n };\n Uploader.prototype.unwireActionButtonEvents = function () {\n EventHandler.remove(this.uploadButton, 'click', this.uploadButtonClick);\n EventHandler.remove(this.clearButton, 'click', this.clearButtonClick);\n };\n Uploader.prototype.removeActionButtons = function () {\n if (this.actionButtons) {\n this.unwireActionButtonEvents();\n detach(this.actionButtons);\n this.actionButtons = null;\n }\n };\n Uploader.prototype.renderButtonTemplates = function () {\n if (typeof this.buttons.browse === 'string') {\n this.browseButton.textContent = this.buttons.browse === 'Browse...' ? this.localizedTexts('Browse') : this.buttons.browse;\n this.browseButton.setAttribute('title', this.browseButton.textContent);\n } else {\n this.browseButton.innerHTML = '';\n this.browseButton.appendChild(this.buttons.browse);\n }\n if (this.uploadButton) {\n var uploadText = isNullOrUndefined(this.buttons.upload) ? 'Upload' : this.buttons.upload;\n this.buttons.upload = uploadText;\n if (typeof this.buttons.upload === 'string') {\n this.uploadButton.textContent = this.buttons.upload === 'Upload' ? this.localizedTexts('Upload') : this.buttons.upload;\n this.uploadButton.setAttribute('title', this.uploadButton.textContent);\n } else {\n this.uploadButton.innerHTML = '';\n this.uploadButton.appendChild(this.buttons.upload);\n }\n }\n if (this.clearButton) {\n var clearText = isNullOrUndefined(this.buttons.clear) ? 'Clear' : this.buttons.clear;\n this.buttons.clear = clearText;\n if (typeof this.buttons.clear === 'string') {\n this.clearButton.textContent = this.buttons.clear === 'Clear' ? this.localizedTexts('Clear') : this.buttons.clear;\n this.clearButton.setAttribute('title', this.clearButton.textContent);\n } else {\n this.clearButton.innerHTML = '';\n this.clearButton.appendChild(this.buttons.clear);\n }\n }\n };\n Uploader.prototype.initializeUpload = function () {\n this.element.setAttribute('tabindex', '-1');\n var inputWrapper = this.createElement('span', {\n className: INPUT_WRAPPER\n });\n this.element.parentElement.insertBefore(inputWrapper, this.element);\n this.dropAreaWrapper = this.createElement('div', {\n className: DROP_WRAPPER\n });\n this.element.parentElement.insertBefore(this.dropAreaWrapper, this.element);\n inputWrapper.appendChild(this.element);\n this.dropAreaWrapper.appendChild(this.browseButton);\n this.dropAreaWrapper.appendChild(inputWrapper);\n this.uploadWrapper = this.createElement('div', {\n className: CONTROL_WRAPPER\n });\n this.dropAreaWrapper.parentElement.insertBefore(this.uploadWrapper, this.dropAreaWrapper);\n this.uploadWrapper.appendChild(this.dropAreaWrapper);\n this.setDropArea();\n };\n Uploader.prototype.renderPreLoadFiles = function () {\n if (this.files.length) {\n if (this.enablePersistence && this.filesData.length) {\n this.internalCreateFileList(this.filesData);\n return;\n }\n if (isNullOrUndefined(this.files[0].size)) {\n return;\n }\n this.isPreloadFiles = true;\n var files = [].slice.call(this.files);\n var filesData = [];\n if (!this.multiple) {\n this.clearData();\n files = [files[0]];\n }\n for (var _i = 0, files_1 = files; _i < files_1.length; _i++) {\n var data = files_1[_i];\n var fileData = {\n name: data.name + '.' + data.type.split('.')[data.type.split('.').length - 1],\n rawFile: '',\n size: data.size,\n status: this.localizedTexts('uploadSuccessMessage'),\n type: data.type,\n validationMessages: {\n minSize: '',\n maxSize: ''\n },\n statusCode: '2'\n };\n filesData.push(fileData);\n this.filesData.push(fileData);\n }\n this.internalCreateFileList(filesData);\n if (!this.autoUpload && this.listParent && !this.actionButtons && (!this.isForm || this.allowUpload()) && this.showFileList) {\n this.renderActionButtons();\n }\n this.checkActionButtonStatus();\n if (this.sequentialUpload) {\n this.count = this.filesData.length - 1;\n }\n this.isPreloadFiles = false;\n }\n };\n Uploader.prototype.checkActionButtonStatus = function () {\n if (this.actionButtons) {\n var length_1 = this.uploadWrapper.querySelectorAll('.' + VALIDATION_FAILS).length + this.uploadWrapper.querySelectorAll('.e-upload-fails:not(.e-upload-progress)').length + this.uploadWrapper.querySelectorAll('span.' + UPLOAD_SUCCESS).length + this.uploadWrapper.querySelectorAll('span.' + UPLOAD_INPROGRESS).length;\n if (length_1 > 0 && length_1 === this.uploadWrapper.querySelectorAll('li').length) {\n this.uploadButton.setAttribute('disabled', 'disabled');\n } else {\n this.uploadButton.removeAttribute('disabled');\n }\n }\n };\n Uploader.prototype.setDropArea = function () {\n var dropTextArea = this.dropAreaWrapper.querySelector('.e-file-drop');\n if (this.dropArea) {\n this.dropZoneElement = typeof this.dropArea !== 'string' ? this.dropArea : select(this.dropArea, document);\n var element = this.element;\n var enableDropText = false;\n while (element.parentNode) {\n element = element.parentNode;\n if (element === this.dropZoneElement) {\n enableDropText = true;\n if (!dropTextArea) {\n this.createDropTextHint();\n } else {\n dropTextArea.innerHTML = this.localizedTexts('dropFilesHint');\n }\n }\n }\n if (!enableDropText && dropTextArea) {\n remove(dropTextArea);\n }\n } else if (!isNullOrUndefined(this.uploaderOptions) && this.uploaderOptions.dropArea === undefined) {\n this.createDropTextHint();\n this.dropZoneElement = this.uploadWrapper;\n this.setProperties({\n dropArea: this.uploadWrapper\n }, true);\n }\n this.bindDropEvents();\n };\n Uploader.prototype.updateDropArea = function () {\n if (this.dropArea) {\n this.setDropArea();\n } else {\n this.dropZoneElement = null;\n var dropTextArea = this.dropAreaWrapper.querySelector('.e-file-drop');\n if (dropTextArea) {\n remove(dropTextArea);\n }\n }\n };\n Uploader.prototype.createDropTextHint = function () {\n var fileDropArea = this.createElement('span', {\n className: DROP_AREA\n });\n fileDropArea.innerHTML = this.localizedTexts('dropFilesHint');\n this.dropAreaWrapper.appendChild(fileDropArea);\n };\n Uploader.prototype.updateHTMLAttrToElement = function () {\n if (!isNullOrUndefined(this.htmlAttributes)) {\n for (var _i = 0, _a = Object.keys(this.htmlAttributes); _i < _a.length; _i++) {\n var pro = _a[_i];\n if (wrapperAttr$1.indexOf(pro) < 0) {\n this.element.setAttribute(pro, this.htmlAttributes[\"\" + pro]);\n }\n }\n }\n };\n Uploader.prototype.updateHTMLAttrToWrapper = function () {\n if (!isNullOrUndefined(this.htmlAttributes)) {\n for (var _i = 0, _a = Object.keys(this.htmlAttributes); _i < _a.length; _i++) {\n var pro = _a[_i];\n if (wrapperAttr$1.indexOf(pro) > -1) {\n if (pro === 'class') {\n var updatedClassValues = this.htmlAttributes[\"\" + pro].replace(/\\s+/g, ' ').trim();\n if (updatedClassValues !== '') {\n addClass([this.uploadWrapper], updatedClassValues.split(' '));\n }\n } else if (pro === 'style') {\n var uploadStyle = this.uploadWrapper.getAttribute(pro);\n uploadStyle = !isNullOrUndefined(uploadStyle) ? uploadStyle + this.htmlAttributes[\"\" + pro] : this.htmlAttributes[\"\" + pro];\n this.uploadWrapper.setAttribute(pro, uploadStyle);\n } else {\n this.uploadWrapper.setAttribute(pro, this.htmlAttributes[\"\" + pro]);\n }\n }\n }\n }\n };\n Uploader.prototype.setMultipleSelection = function () {\n if (this.multiple && !this.element.hasAttribute('multiple')) {\n var newAttr = document.createAttribute('multiple');\n newAttr.value = 'multiple';\n this.element.setAttributeNode(newAttr);\n } else if (!this.multiple) {\n this.element.removeAttribute('multiple');\n }\n };\n Uploader.prototype.checkAutoUpload = function (fileData) {\n if (this.autoUpload) {\n if (this.sequentialUpload) {\n /* istanbul ignore next */\n this.sequenceUpload(fileData);\n } else {\n this.upload(fileData);\n }\n this.removeActionButtons();\n } else if (!this.actionButtons) {\n this.renderActionButtons();\n }\n this.checkActionButtonStatus();\n };\n Uploader.prototype.sequenceUpload = function (fileData) {\n if (this.filesData.length - fileData.length === 0 || this.filesData[this.filesData.length - fileData.length - 1].statusCode !== '1') {\n if (this.multiple || this.count < 0) {\n ++this.count;\n }\n var isFileListCreated = this.showFileList ? false : true;\n if (typeof this.filesData[this.count] === 'object') {\n this.isFirstFileOnSelection = false;\n this.upload(this.filesData[this.count], isFileListCreated);\n if (this.filesData[this.count].statusCode === '0') {\n this.sequenceUpload(fileData);\n }\n } else {\n --this.count;\n }\n }\n };\n Uploader.prototype.setCSSClass = function (oldCSSClass) {\n var updatedOldCssClass = oldCSSClass;\n if (!isNullOrUndefined(oldCSSClass)) {\n updatedOldCssClass = oldCSSClass.replace(/\\s+/g, ' ').trim();\n }\n if (!isNullOrUndefined(oldCSSClass) && updatedOldCssClass !== '') {\n removeClass([this.uploadWrapper], updatedOldCssClass.split(' '));\n }\n var updatedCssClassValue = this.cssClass;\n if (!isNullOrUndefined(this.cssClass) && this.cssClass !== '') {\n updatedCssClassValue = this.cssClass.replace(/\\s+/g, ' ').trim();\n }\n if (!isNullOrUndefined(this.cssClass) && updatedCssClassValue !== '') {\n addClass([this.uploadWrapper], updatedCssClassValue.split(updatedCssClassValue.indexOf(',') > -1 ? ',' : ' '));\n }\n };\n Uploader.prototype.wireEvents = function () {\n EventHandler.add(this.browseButton, 'click', this.browseButtonClick, this);\n EventHandler.add(this.element, 'change', this.onSelectFiles, this);\n EventHandler.add(document, 'click', this.removeFocus, this);\n this.keyboardModule = new KeyboardEvents(this.uploadWrapper, {\n keyAction: this.keyActionHandler.bind(this),\n keyConfigs: this.keyConfigs,\n eventName: 'keydown'\n });\n if (this.isForm) {\n EventHandler.add(this.formElement, 'reset', this.resetForm, this);\n }\n };\n Uploader.prototype.unWireEvents = function () {\n EventHandler.remove(this.browseButton, 'click', this.browseButtonClick);\n EventHandler.remove(this.element, 'change', this.onSelectFiles);\n EventHandler.remove(document, 'click', this.removeFocus);\n if (this.isForm) {\n EventHandler.remove(this.formElement, 'reset', this.resetForm);\n }\n if (this.keyboardModule) {\n this.keyboardModule.destroy();\n }\n };\n Uploader.prototype.resetForm = function () {\n this.clearAll();\n };\n Uploader.prototype.keyActionHandler = function (e) {\n var targetElement = e.target;\n switch (e.action) {\n case 'enter':\n if (e.target === this.clearButton) {\n this.clearButtonClick();\n } else if (e.target === this.uploadButton) {\n this.uploadButtonClick();\n } else if (e.target === this.browseButton) {\n this.browseButtonClick();\n } else if (targetElement.classList.contains(PAUSE_UPLOAD)) {\n var metaData = this.getCurrentMetaData(null, e);\n metaData.file.statusCode = '4';\n metaData.file.status = this.localizedTexts('pauseUpload');\n this.abortUpload(metaData, false);\n } else if (targetElement.classList.contains(RESUME_UPLOAD)) {\n this.resumeUpload(this.getCurrentMetaData(null, e), e);\n } else if (targetElement.classList.contains(RETRY_ICON)) {\n var metaData = this.getCurrentMetaData(null, e);\n if (!isNullOrUndefined(metaData)) {\n metaData.file.statusCode = '1';\n metaData.file.status = this.localizedTexts('readyToUploadMessage');\n this.chunkUpload(metaData.file);\n } else {\n var target = e.target.parentElement;\n var fileData = this.filesData[this.fileList.indexOf(target)];\n this.retry(fileData);\n }\n } else {\n this.removeFiles(e);\n if (!targetElement.classList.contains(ABORT_ICON)) {\n this.browseButton.focus();\n }\n }\n e.preventDefault();\n e.stopPropagation();\n break;\n }\n };\n Uploader.prototype.getCurrentMetaData = function (fileInfo, e) {\n var fileData;\n var targetMetaData;\n if (isNullOrUndefined(fileInfo)) {\n var target = e.target.parentElement;\n fileData = this.filesData[this.fileList.indexOf(target)];\n } else {\n fileData = fileInfo;\n }\n for (var i = 0; i < this.uploadMetaData.length; i++) {\n if (this.uploadMetaData[i].file.name === fileData.name) {\n targetMetaData = this.uploadMetaData[i];\n }\n }\n return targetMetaData;\n };\n Uploader.prototype.removeFocus = function () {\n if (this.uploadWrapper && this.listParent && this.listParent.querySelector('.' + ICON_FOCUSED)) {\n document.activeElement.blur();\n this.listParent.querySelector('.' + ICON_FOCUSED).classList.remove(ICON_FOCUSED);\n }\n };\n Uploader.prototype.browseButtonClick = function () {\n this.element.click();\n };\n Uploader.prototype.uploadButtonClick = function () {\n if (this.sequentialUpload) {\n this.sequenceUpload(this.filesData);\n } else {\n this.upload(this.filesData);\n }\n };\n Uploader.prototype.clearButtonClick = function () {\n this.clearAll();\n /* istanbul ignore next */\n if (this.sequentialUpload) {\n this.count = -1;\n }\n this.actionCompleteCount = 0;\n };\n Uploader.prototype.bindDropEvents = function () {\n if (this.dropZoneElement) {\n EventHandler.add(this.dropZoneElement, 'drop', this.dropElement, this);\n EventHandler.add(this.dropZoneElement, 'dragover', this.dragHover, this);\n EventHandler.add(this.dropZoneElement, 'dragleave', this.onDragLeave, this);\n EventHandler.add(this.dropZoneElement, 'paste', this.onPasteFile, this);\n EventHandler.add(this.dropZoneElement, 'dragenter', this.onDragEnter, this);\n }\n };\n Uploader.prototype.unBindDropEvents = function () {\n if (this.dropZoneElement) {\n EventHandler.remove(this.dropZoneElement, 'drop', this.dropElement);\n EventHandler.remove(this.dropZoneElement, 'dragover', this.dragHover);\n EventHandler.remove(this.dropZoneElement, 'dragleave', this.onDragLeave);\n EventHandler.remove(this.dropZoneElement, 'dragenter', this.onDragEnter);\n }\n };\n Uploader.prototype.onDragEnter = function (e) {\n if (!this.enabled) {\n return;\n }\n this.dropZoneElement.classList.add(DRAG_HOVER);\n this.dragCounter = this.dragCounter + 1;\n e.preventDefault();\n e.stopPropagation();\n };\n Uploader.prototype.onDragLeave = function () {\n if (!this.enabled) {\n return;\n }\n this.dragCounter = this.dragCounter - 1;\n if (!this.dragCounter) {\n this.dropZoneElement.classList.remove(DRAG_HOVER);\n }\n };\n Uploader.prototype.dragHover = function (e) {\n if (!this.enabled) {\n return;\n }\n if (this.dropEffect !== 'Default') {\n e.dataTransfer.dropEffect = this.dropEffect.toLowerCase();\n }\n e.preventDefault();\n e.stopPropagation();\n };\n /* istanbul ignore next */\n Uploader.prototype.dropElement = function (e) {\n this.dragCounter = 0;\n this.dropZoneElement.classList.remove(DRAG_HOVER);\n this.onSelectFiles(e);\n e.preventDefault();\n e.stopPropagation();\n };\n /* istanbul ignore next */\n Uploader.prototype.onPasteFile = function (event) {\n var item = event.clipboardData.items;\n if (event.type === 'paste' && this.browserName !== 'msie' && this.browserName !== 'edge' && this.browserName !== 'safari') {\n this.element.files = event.clipboardData.files;\n }\n if (item.length !== 1 && !this.multiple) {\n return;\n }\n for (var file = 0; file < item.length; file++) {\n var pasteFile = [].slice.call(item)[file];\n if (pasteFile.kind === 'file' || pasteFile.type.match('^image/')) {\n this.renderSelectedFiles(event, [pasteFile.getAsFile()], false, true);\n }\n }\n };\n Uploader.prototype.getSelectedFiles = function (index) {\n var data = [];\n var liElement = this.fileList[index];\n var allFiles = this.getFilesData();\n var nameElements = +liElement.getAttribute('data-files-count');\n var startIndex = 0;\n for (var i = 0; i < index; i++) {\n startIndex += +this.fileList[i].getAttribute('data-files-count');\n }\n for (var j = startIndex; j < startIndex + nameElements; j++) {\n data.push(allFiles[j]);\n }\n return data;\n };\n Uploader.prototype.removeFiles = function (args) {\n if (!this.enabled) {\n return;\n }\n var selectedElement = args.target.parentElement;\n var index = this.fileList.indexOf(selectedElement);\n var liElement = this.fileList[index];\n var formUpload = this.isFormUpload();\n var fileData = formUpload ? this.getSelectedFiles(index) : this.getFilesInArray(this.filesData[index]);\n if (isNullOrUndefined(fileData)) {\n return;\n }\n if (args.target.classList.contains(ABORT_ICON) && !formUpload) {\n fileData[0].statusCode = '5';\n if (!isNullOrUndefined(liElement)) {\n var spinnerTarget = liElement.querySelector('.' + ABORT_ICON);\n createSpinner({\n target: spinnerTarget,\n width: '20px'\n });\n showSpinner(spinnerTarget);\n }\n if (this.sequentialUpload) {\n /* istanbul ignore next */\n this.uploadSequential();\n }\n if (!liElement.classList.contains(RESTRICT_RETRY)) {\n this.checkActionComplete(true);\n }\n } else if (!closest(args.target, '.' + SPINNER_PANE)) {\n this.remove(fileData, false, false, true, args);\n }\n if (this.isForm && liElement && liElement.classList.contains(INVALID_FILE)) {\n this.element.value = '';\n }\n this.checkActionButtonStatus();\n };\n Uploader.prototype.removeFilesData = function (file, customTemplate) {\n var index;\n if (customTemplate) {\n if (!this.showFileList) {\n index = this.filesData.indexOf(file);\n this.filesData.splice(index, 1);\n }\n return;\n }\n var selectedElement = this.getLiElement(file);\n if (isNullOrUndefined(selectedElement)) {\n return;\n }\n this.element.value = '';\n detach(selectedElement);\n index = this.fileList.indexOf(selectedElement);\n this.fileList.splice(index, 1);\n this.filesData.splice(index, 1);\n if (this.fileList.length === 0 && !isNullOrUndefined(this.listParent)) {\n detach(this.listParent);\n this.listParent = null;\n this.removeActionButtons();\n }\n if (this.sequentialUpload) {\n /* istanbul ignore next */\n if (index <= this.count) {\n --this.count;\n }\n }\n };\n Uploader.prototype.removeUploadedFile = function (file, eventArgs, removeDirectly, custom) {\n var _this = this;\n var selectedFiles = file;\n var ajax = new Ajax(this.asyncSettings.removeUrl, 'POST', true, null);\n ajax.emitError = false;\n var formData = new FormData();\n ajax.beforeSend = function (e) {\n eventArgs.currentRequest = ajax.httpRequest;\n if (!removeDirectly) {\n _this.trigger('removing', eventArgs, function (eventArgs) {\n if (eventArgs.cancel) {\n e.cancel = true;\n } else {\n _this.removingEventCallback(eventArgs, formData, selectedFiles, file);\n }\n });\n } else {\n _this.removingEventCallback(eventArgs, formData, selectedFiles, file);\n }\n };\n ajax.onLoad = function (e) {\n _this.removeCompleted(e, selectedFiles, custom);\n return {};\n };\n /* istanbul ignore next */\n ajax.onError = function (e) {\n _this.removeFailed(e, selectedFiles, custom);\n return {};\n };\n ajax.send(formData);\n };\n Uploader.prototype.removingEventCallback = function (eventArgs, formData, selectedFiles, file) {\n /* istanbul ignore next */\n var name = this.element.getAttribute('name');\n var liElement = this.getLiElement(file);\n if (!isNullOrUndefined(liElement) && (!isNullOrUndefined(liElement.querySelector('.' + DELETE_ICON)) || !isNullOrUndefined(liElement.querySelector('.' + REMOVE_ICON)))) {\n var spinnerTarget = liElement.querySelector('.' + DELETE_ICON) ? liElement.querySelector('.' + DELETE_ICON) : liElement.querySelector('.' + REMOVE_ICON);\n createSpinner({\n target: spinnerTarget,\n width: '20px'\n });\n showSpinner(spinnerTarget);\n }\n if (eventArgs.postRawFile && !isNullOrUndefined(selectedFiles.rawFile) && selectedFiles.rawFile !== '') {\n formData.append(name, selectedFiles.rawFile, selectedFiles.name);\n } else {\n formData.append(name, selectedFiles.name);\n }\n this.updateFormData(formData, eventArgs.customFormData);\n };\n /* istanbul ignore next */\n Uploader.prototype.updateFormData = function (formData, customData) {\n if (customData.length > 0 && customData[0]) {\n var _loop_1 = function (i) {\n var data = customData[i];\n // eslint-disable-next-line @typescript-eslint/tslint/config\n var value = Object.keys(data).map(function (e) {\n return data[\"\" + e];\n });\n formData.append(Object.keys(data)[0], value);\n };\n for (var i = 0; i < customData.length; i++) {\n _loop_1(i);\n }\n }\n };\n /* istanbul ignore next */\n Uploader.prototype.updateCustomheader = function (request, currentRequest) {\n if (currentRequest.length > 0 && currentRequest[0]) {\n var _loop_2 = function (i) {\n var data = currentRequest[i];\n // eslint-disable-next-line @typescript-eslint/tslint/config\n var value = Object.keys(data).map(function (e) {\n return data[\"\" + e];\n });\n request.setRequestHeader(Object.keys(data)[0], value);\n };\n for (var i = 0; i < currentRequest.length; i++) {\n _loop_2(i);\n }\n }\n };\n Uploader.prototype.removeCompleted = function (e, files, customTemplate) {\n var response = e && e.currentTarget ? this.getResponse(e) : null;\n var status = e.target;\n if (status.readyState === 4 && status.status >= 200 && status.status <= 299) {\n var args = {\n e: e,\n response: response,\n operation: 'remove',\n file: this.updateStatus(files, this.localizedTexts('removedSuccessMessage'), '2')\n };\n this.trigger('success', args);\n this.removeFilesData(files, customTemplate);\n var index = this.uploadedFilesData.indexOf(files);\n this.uploadedFilesData.splice(index, 1);\n this.trigger('change', {\n files: this.uploadedFilesData\n });\n } else {\n this.removeFailed(e, files, customTemplate);\n }\n };\n Uploader.prototype.removeFailed = function (e, files, customTemplate) {\n var response = e && e.currentTarget ? this.getResponse(e) : null;\n var args = {\n e: e,\n response: response,\n operation: 'remove',\n file: this.updateStatus(files, this.localizedTexts('removedFailedMessage'), '0')\n };\n if (!customTemplate) {\n var index = this.filesData.indexOf(files);\n var rootElement = this.fileList[index];\n if (rootElement) {\n rootElement.classList.remove(UPLOAD_SUCCESS);\n rootElement.classList.add(UPLOAD_FAILED);\n var statusElement = rootElement.querySelector('.' + STATUS);\n if (statusElement) {\n statusElement.classList.remove(UPLOAD_SUCCESS);\n statusElement.classList.add(UPLOAD_FAILED);\n }\n }\n this.checkActionButtonStatus();\n }\n this.trigger('failure', args);\n var liElement = this.getLiElement(files);\n /* istanbul ignore next */\n if (!isNullOrUndefined(liElement) && !isNullOrUndefined(liElement.querySelector('.' + DELETE_ICON))) {\n var spinnerTarget = liElement.querySelector('.' + DELETE_ICON);\n hideSpinner(spinnerTarget);\n detach(liElement.querySelector('.e-spinner-pane'));\n }\n };\n /* istanbul ignore next */\n Uploader.prototype.getFilesFromFolder = function (event) {\n this.filesEntries = [];\n var items = this.multiple ? event.dataTransfer.items : [event.dataTransfer.items[0]];\n var validDirectoryUpload = this.checkDirectoryUpload(items);\n if (!validDirectoryUpload) {\n return;\n }\n var _loop_3 = function (i) {\n var item = items[i].webkitGetAsEntry();\n if (item.isFile) {\n var files_2 = [];\n item.file(function (fileObj) {\n var path = item.fullPath;\n files_2.push({\n 'path': path,\n 'file': fileObj\n });\n });\n this_1.renderSelectedFiles(event, files_2, true);\n } else if (item.isDirectory) {\n this_1.traverseFileTree(item, event);\n }\n };\n var this_1 = this;\n for (var i = 0; i < items.length; i++) {\n _loop_3(i);\n }\n };\n /* istanbul ignore next */\n Uploader.prototype.checkDirectoryUpload = function (items) {\n for (var i = 0; items && i < items.length; i++) {\n var item = items[i].webkitGetAsEntry();\n if (item.isDirectory) {\n return true;\n }\n }\n return false;\n };\n /* istanbul ignore next */\n Uploader.prototype.traverseFileTree = function (item, event) {\n if (item.isFile) {\n this.filesEntries.push(item);\n } else if (item.isDirectory) {\n var directoryReader = item.createReader();\n this.readFileFromDirectory(directoryReader, event);\n }\n };\n /* istanbul ignore next */\n Uploader.prototype.readFileFromDirectory = function (directoryReader, event) {\n var _this = this;\n directoryReader.readEntries(function (entries) {\n for (var i = 0; i < entries.length; i++) {\n _this.traverseFileTree(entries[i], event);\n }\n _this.pushFilesEntries(event);\n if (entries.length) {\n _this.readFileFromDirectory(directoryReader);\n }\n });\n };\n Uploader.prototype.pushFilesEntries = function (event) {\n var _this = this;\n var files = [];\n var _loop_4 = function (i) {\n this_2.filesEntries[i].file(function (fileObj) {\n if (_this.filesEntries.length) {\n var path = _this.filesEntries[i].fullPath;\n files.push({\n 'path': path,\n 'file': fileObj\n });\n if (i === _this.filesEntries.length - 1) {\n _this.filesEntries = [];\n _this.renderSelectedFiles(event, files, true);\n }\n }\n });\n };\n var this_2 = this;\n for (var i = 0; i < this.filesEntries.length; i++) {\n _loop_4(i);\n }\n };\n Uploader.prototype.onSelectFiles = function (args) {\n if (!this.enabled) {\n return;\n }\n var targetFiles;\n /* istanbul ignore next */\n if (args.type === 'drop') {\n if (this.directoryUpload) {\n this.getFilesFromFolder(args);\n } else {\n var files = this.sortFilesList = args.dataTransfer.files;\n if (this.browserName !== 'msie' && this.browserName !== 'edge' && this.browserName !== 'safari') {\n this.element.files = files;\n }\n if (files.length > 0) {\n targetFiles = this.multiple ? this.sortFileList(files) : [files[0]];\n this.renderSelectedFiles(args, targetFiles);\n }\n }\n } else {\n targetFiles = [].slice.call(args.target.files);\n this.renderSelectedFiles(args, targetFiles);\n }\n if (this.isAngular || this.isReact) {\n args.stopPropagation();\n }\n };\n /* istanbul ignore next */\n Uploader.prototype.getBase64 = function (file) {\n return new Promise(function (resolve, reject) {\n var fileReader = new FileReader();\n fileReader.readAsDataURL(file);\n fileReader.onload = function () {\n return resolve(fileReader.result);\n };\n fileReader.onerror = function (error) {\n return reject(error);\n };\n });\n };\n /* istanbul ignore next */\n /* tslint:ignore */\n Uploader.prototype.renderSelectedFiles = function (args, targetFiles, directory, paste) {\n var _this = this;\n this.base64String = [];\n var eventArgs = {\n event: args,\n cancel: false,\n filesData: [],\n isModified: false,\n modifiedFilesData: [],\n progressInterval: '',\n isCanceled: false,\n currentRequest: null,\n customFormData: null\n };\n /* istanbul ignore next */\n if (targetFiles.length < 1) {\n eventArgs.isCanceled = true;\n this.trigger('selected', eventArgs);\n return;\n }\n this.flag = true;\n var fileData = [];\n if (!this.multiple) {\n this.clearData(true);\n this.actionCompleteCount = 0;\n targetFiles = [targetFiles[0]];\n }\n for (var i = 0; i < targetFiles.length; i++) {\n var file = directory ? targetFiles[i].file : targetFiles[i];\n this.updateInitialFileDetails(args, targetFiles, file, i, fileData, directory, paste);\n }\n eventArgs.filesData = fileData;\n if (this.allowedExtensions.indexOf('*') > -1) {\n this.allTypes = true;\n }\n if (this.enableHtmlSanitizer) {\n for (var i = 0; i < fileData.length; i++) {\n var sanitizeFile = SanitizeHtmlHelper.beforeSanitize();\n var sanitizeFileName = SanitizeHtmlHelper.serializeValue(sanitizeFile, fileData[parseInt(i.toString(), 10)].name);\n var currentFileName = fileData[parseInt(i.toString(), 10)].name;\n var isUTF8 = false;\n for (var i_1 = 0; i_1 < currentFileName.length; i_1++) {\n if (currentFileName.charCodeAt(i_1) > 127) {\n isUTF8 = true;\n break;\n }\n }\n var htmlTagRegex = /<([a-z][a-z0-9]*)\\b[^>]*>(.*?)<\\/\\1>/i;\n var hasHTMLString = htmlTagRegex.test(currentFileName);\n if (sanitizeFileName !== fileData[parseInt(i.toString(), 10)].name && !(isUTF8 && !hasHTMLString)) {\n var encodedFileName = targetFiles[parseInt(i.toString(), 10)].name.replace(/[\\u00A0-\\u9999<>\\\\&]/g, function (i) {\n return '&#' + i.charCodeAt(0) + ';';\n });\n fileData[parseInt(i.toString(), 10)].name = encodedFileName;\n fileData[parseInt(i.toString(), 10)].status = this.localizedTexts('invalidFileName');\n fileData[parseInt(i.toString(), 10)].statusCode = '0';\n }\n }\n }\n if (!this.allTypes) {\n fileData = this.checkExtension(fileData);\n }\n this.trigger('selected', eventArgs, function (eventArgs) {\n _this._internalRenderSelect(eventArgs, fileData);\n });\n };\n Uploader.prototype.updateInitialFileDetails = function (args, targetFiles, file, i, fileData, directory, paste) {\n var fileName = directory ? targetFiles[i].path.substring(1, targetFiles[i].path.length) : paste ? getUniqueID(file.name.substring(0, file.name.lastIndexOf('.'))) + '.' + this.getFileType(file.name) : this.directoryUpload ? targetFiles[i].webkitRelativePath : file.name;\n var fileDetails = {\n name: fileName,\n rawFile: file,\n size: file.size,\n status: this.localizedTexts('readyToUploadMessage'),\n type: this.getFileType(file.name),\n validationMessages: this.validatedFileSize(file.size),\n statusCode: '1',\n id: getUniqueID(file.name.substring(0, file.name.lastIndexOf('.'))) + '.' + this.getFileType(file.name)\n };\n /* istanbul ignore next */\n if (paste) {\n fileDetails.fileSource = 'paste';\n }\n fileDetails.status = fileDetails.validationMessages.minSize !== '' ? this.localizedTexts('invalidMinFileSize') : fileDetails.validationMessages.maxSize !== '' ? this.localizedTexts('invalidMaxFileSize') : fileDetails.status;\n if (fileDetails.validationMessages.minSize !== '' || fileDetails.validationMessages.maxSize !== '') {\n fileDetails.statusCode = '0';\n this.checkActionComplete(true);\n }\n fileData.push(fileDetails);\n };\n Uploader.prototype._internalRenderSelect = function (eventArgs, fileData) {\n if (!eventArgs.cancel) {\n /* istanbul ignore next */\n this.selectedFiles = this.selectedFiles.concat(fileData);\n this.btnTabIndex = this.disableKeyboardNavigation ? '-1' : '0';\n if (this.showFileList) {\n if (eventArgs.isModified && eventArgs.modifiedFilesData.length > 0) {\n for (var j = 0; j < eventArgs.modifiedFilesData.length; j++) {\n for (var k = 0; k < fileData.length; k++) {\n if (eventArgs.modifiedFilesData[j].id === fileData[k].id) {\n eventArgs.modifiedFilesData[j].rawFile = fileData[k].rawFile;\n }\n }\n }\n var dataFiles = this.allTypes ? eventArgs.modifiedFilesData : this.checkExtension(eventArgs.modifiedFilesData);\n this.updateSortedFileList(dataFiles);\n this.filesData = this.filesData.concat(dataFiles);\n if (!this.isForm || this.allowUpload()) {\n this.checkAutoUpload(dataFiles);\n }\n } else {\n this.internalCreateFileList(fileData);\n if (this.autoUpload && this.sequenceUpload && this.sequentialUpload && this.filesData.length > 0 && this.filesData[this.filesData.length - 1].statusCode !== '2' && this.filesData[this.filesData.length - 1].statusCode !== '0') {\n this.filesData = this.filesData.concat(fileData);\n return;\n }\n this.filesData = this.filesData.concat(fileData);\n if (!this.isForm || this.allowUpload()) {\n this.checkAutoUpload(fileData);\n }\n }\n if (!isNullOrUndefined(eventArgs.progressInterval) && eventArgs.progressInterval !== '') {\n this.progressInterval = eventArgs.progressInterval;\n }\n } else {\n this.filesData = this.filesData.concat(fileData);\n if (this.autoUpload) {\n this.upload(this.filesData, true);\n }\n }\n this.raiseActionComplete();\n this.isFirstFileOnSelection = true;\n }\n };\n Uploader.prototype.allowUpload = function () {\n var allowFormUpload = false;\n if (this.isForm && !isNullOrUndefined(this.asyncSettings.saveUrl) && this.asyncSettings.saveUrl !== '') {\n allowFormUpload = true;\n }\n return allowFormUpload;\n };\n Uploader.prototype.isFormUpload = function () {\n var isFormUpload = false;\n if (this.isForm && (isNullOrUndefined(this.asyncSettings.saveUrl) || this.asyncSettings.saveUrl === '') && (isNullOrUndefined(this.asyncSettings.removeUrl) || this.asyncSettings.removeUrl === '')) {\n isFormUpload = true;\n }\n return isFormUpload;\n };\n Uploader.prototype.clearData = function (singleUpload) {\n if (!isNullOrUndefined(this.listParent)) {\n detach(this.listParent);\n this.listParent = null;\n }\n if (this.browserName !== 'msie' && !singleUpload) {\n this.element.value = '';\n }\n this.fileList = [];\n this.filesData = [];\n this.removeActionButtons();\n };\n Uploader.prototype.updateSortedFileList = function (filesData) {\n var previousListClone = this.createElement('div', {\n id: 'clonewrapper'\n });\n var added = -1;\n if (this.listParent) {\n for (var i = 0; i < this.listParent.querySelectorAll('li').length; i++) {\n var liElement = this.listParent.querySelectorAll('li')[i];\n previousListClone.appendChild(liElement.cloneNode(true));\n }\n this.removeActionButtons();\n var oldList = [].slice.call(previousListClone.childNodes);\n this.createParentUL();\n for (var index = 0; index < filesData.length; index++) {\n for (var j = 0; j < this.filesData.length; j++) {\n if (this.filesData[j].name === filesData[index].name) {\n this.listParent.appendChild(oldList[j]);\n EventHandler.add(oldList[j].querySelector('.e-icons'), 'click', this.removeFiles, this);\n this.fileList.push(oldList[j]);\n added = index;\n }\n }\n if (added !== index) {\n this.internalCreateFileList([filesData[index]]);\n }\n }\n } else {\n this.internalCreateFileList(filesData);\n }\n };\n Uploader.prototype.isBlank = function (str) {\n return !str || /^\\s*$/.test(str);\n };\n Uploader.prototype.checkExtension = function (files) {\n var dropFiles = files;\n if (!this.isBlank(this.allowedExtensions)) {\n var allowedExtensions = [];\n var extensions = this.allowedExtensions.split(',');\n for (var _i = 0, extensions_1 = extensions; _i < extensions_1.length; _i++) {\n var extension = extensions_1[_i];\n allowedExtensions.push(extension.trim().toLocaleLowerCase());\n }\n for (var i = 0; i < files.length; i++) {\n var checkFileType = files[i].type.indexOf('.') !== -1 ? files[i].type.replace('.', '') : files[i].type;\n if (allowedExtensions.indexOf(('.' + checkFileType).toLocaleLowerCase()) === -1) {\n files[i].status = this.localizedTexts('invalidFileType');\n files[i].statusCode = '0';\n }\n }\n }\n return dropFiles;\n };\n Uploader.prototype.validatedFileSize = function (fileSize) {\n var minSizeError = '';\n var maxSizeError = '';\n if (fileSize < this.minFileSize) {\n minSizeError = this.localizedTexts('invalidMinFileSize');\n } else if (fileSize > this.maxFileSize) {\n maxSizeError = this.localizedTexts('invalidMaxFileSize');\n } else {\n minSizeError = '';\n maxSizeError = '';\n }\n var errorMessage = {\n minSize: minSizeError,\n maxSize: maxSizeError\n };\n return errorMessage;\n };\n Uploader.prototype.isPreLoadFile = function (fileData) {\n var isPreload = false;\n for (var i = 0; i < this.files.length; i++) {\n if (this.files[i].name === fileData.name.slice(0, fileData.name.lastIndexOf('.')) && this.files[i].type === fileData.type) {\n isPreload = true;\n }\n }\n return isPreload;\n };\n Uploader.prototype.createCustomfileList = function (fileData) {\n this.createParentUL();\n for (var _i = 0, fileData_1 = fileData; _i < fileData_1.length; _i++) {\n var listItem = fileData_1[_i];\n var listElement = this.createElement('li', {\n className: FILE,\n attrs: {\n 'data-file-name': listItem.name\n }\n });\n this.uploadTemplateFn = this.templateComplier(this.template);\n var liTempCompiler = this.uploadTemplateFn(listItem, this, 'template', this.element.id + 'Template', this.isStringTemplate, null, listElement);\n if (liTempCompiler) {\n var fromElements = [].slice.call(liTempCompiler);\n append(fromElements, listElement);\n }\n var index = fileData.indexOf(listItem);\n var eventArgs = {\n element: listElement,\n fileInfo: listItem,\n index: index,\n isPreload: this.isPreLoadFile(listItem)\n };\n var eventsArgs = {\n element: listElement,\n fileInfo: listItem,\n index: index,\n isPreload: this.isPreLoadFile(listItem)\n };\n this.trigger('rendering', eventArgs);\n this.trigger('fileListRendering', eventsArgs);\n this.listParent.appendChild(listElement);\n this.fileList.push(listElement);\n }\n this.renderReactTemplates();\n };\n Uploader.prototype.createParentUL = function () {\n if (isNullOrUndefined(this.listParent)) {\n this.listParent = this.createElement('ul', {\n className: LIST_PARENT\n });\n this.uploadWrapper.appendChild(this.listParent);\n }\n };\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n Uploader.prototype.formFileList = function (fileData, files) {\n var fileList = this.createElement('li', {\n className: FILE\n });\n fileList.setAttribute('data-files-count', fileData.length + '');\n var fileContainer = this.createElement('span', {\n className: TEXT_CONTAINER\n });\n var statusMessage;\n for (var _i = 0, fileData_2 = fileData; _i < fileData_2.length; _i++) {\n var listItem = fileData_2[_i];\n var fileNameEle = this.createElement('span', {\n className: FILE_NAME\n });\n fileNameEle.innerHTML = this.getFileNameOnly(listItem.name);\n var fileTypeEle = this.createElement('span', {\n className: FILE_TYPE\n });\n var fileType = this.getFileType(listItem.name);\n fileTypeEle.innerHTML = '.' + fileType;\n if (!fileType) {\n fileTypeEle.classList.add('e-hidden');\n }\n if (!this.enableRtl) {\n fileContainer.appendChild(fileNameEle);\n fileContainer.appendChild(fileTypeEle);\n } else {\n var rtlContainer = this.createElement('span', {\n className: RTL_CONTAINER\n });\n rtlContainer.appendChild(fileTypeEle);\n rtlContainer.appendChild(fileNameEle);\n fileContainer.appendChild(rtlContainer);\n }\n this.truncateName(fileNameEle);\n statusMessage = this.formValidateFileInfo(listItem, fileList);\n }\n fileList.appendChild(fileContainer);\n this.setListToFileInfo(fileData, fileList);\n var index = this.listParent.querySelectorAll('li').length;\n var infoEle = this.createElement('span');\n if (fileList.classList.contains(INVALID_FILE)) {\n infoEle.classList.add(STATUS);\n infoEle.classList.add(INVALID_FILE);\n infoEle.innerText = fileData.length > 1 ? this.localizedTexts('invalidFileSelection') : statusMessage;\n } else {\n infoEle.classList.add(fileData.length > 1 ? INFORMATION : FILE_SIZE);\n infoEle.innerText = fileData.length > 1 ? this.localizedTexts('totalFiles') + ': ' + fileData.length + ' , ' + this.localizedTexts('size') + ': ' + this.bytesToSize(this.getFileSize(fileData)) : this.bytesToSize(fileData[0].size);\n this.createFormInput(fileData);\n }\n fileContainer.appendChild(infoEle);\n if (isNullOrUndefined(fileList.querySelector('.e-icons'))) {\n var iconElement = this.createElement('span', {\n className: 'e-icons',\n attrs: {\n 'tabindex': this.btnTabIndex\n }\n });\n /* istanbul ignore next */\n if (this.browserName === 'msie') {\n iconElement.classList.add('e-msie');\n }\n iconElement.setAttribute('title', this.localizedTexts('remove'));\n fileList.appendChild(fileContainer);\n fileList.appendChild(iconElement);\n EventHandler.add(iconElement, 'click', this.removeFiles, this);\n iconElement.classList.add(REMOVE_ICON);\n }\n var eventArgs = {\n element: fileList,\n fileInfo: this.mergeFileInfo(fileData, fileList),\n index: index,\n isPreload: this.isPreLoadFile(this.mergeFileInfo(fileData, fileList))\n };\n var eventsArgs = {\n element: fileList,\n fileInfo: this.mergeFileInfo(fileData, fileList),\n index: index,\n isPreload: this.isPreLoadFile(this.mergeFileInfo(fileData, fileList))\n };\n this.trigger('rendering', eventArgs);\n this.trigger('fileListRendering', eventsArgs);\n this.listParent.appendChild(fileList);\n this.fileList.push(fileList);\n };\n Uploader.prototype.formValidateFileInfo = function (listItem, fileList) {\n var statusMessage = listItem.status;\n var validationMessages = this.validatedFileSize(listItem.size);\n if (validationMessages.minSize !== '' || validationMessages.maxSize !== '') {\n this.addInvalidClass(fileList);\n statusMessage = validationMessages.minSize !== '' ? this.localizedTexts('invalidMinFileSize') : validationMessages.maxSize !== '' ? this.localizedTexts('invalidMaxFileSize') : statusMessage;\n }\n var typeValidationMessage = this.checkExtension(this.getFilesInArray(listItem))[0].status;\n if (typeValidationMessage === this.localizedTexts('invalidFileType')) {\n this.addInvalidClass(fileList);\n statusMessage = typeValidationMessage;\n }\n return statusMessage;\n };\n Uploader.prototype.addInvalidClass = function (fileList) {\n fileList.classList.add(INVALID_FILE);\n };\n Uploader.prototype.createFormInput = function (fileData) {\n if (this.browserName !== 'safari') {\n var inputElement = this.element.cloneNode(true);\n inputElement.classList.add(HIDDEN_INPUT);\n for (var _i = 0, fileData_3 = fileData; _i < fileData_3.length; _i++) {\n var listItem = fileData_3[_i];\n listItem.input = inputElement;\n }\n inputElement.setAttribute('id', getUniqueID('hiddenUploader'));\n inputElement.setAttribute('name', this.uploaderName);\n this.uploadWrapper.querySelector('.' + INPUT_WRAPPER).appendChild(inputElement);\n if (this.browserName !== 'msie' && this.browserName !== 'edge') {\n this.element.value = '';\n }\n }\n };\n Uploader.prototype.getFileSize = function (fileData) {\n var fileSize = 0;\n for (var _i = 0, fileData_4 = fileData; _i < fileData_4.length; _i++) {\n var file = fileData_4[_i];\n fileSize += file.size;\n }\n return fileSize;\n };\n Uploader.prototype.mergeFileInfo = function (fileData, fileList) {\n var result = {\n name: '',\n rawFile: '',\n size: 0,\n status: '',\n type: '',\n validationMessages: {\n minSize: '',\n maxSize: ''\n },\n statusCode: '1',\n list: fileList\n };\n var fileNames = [];\n var type = '';\n for (var _i = 0, fileData_5 = fileData; _i < fileData_5.length; _i++) {\n var listItem = fileData_5[_i];\n fileNames.push(listItem.name);\n type = listItem.type;\n }\n result.name = fileNames.join(', ');\n result.size = this.getFileSize(fileData);\n result.type = type;\n result.status = this.statusForFormUpload(fileData, fileList);\n return result;\n };\n Uploader.prototype.statusForFormUpload = function (fileData, fileList) {\n var isValid = true;\n var statusMessage;\n for (var _i = 0, fileData_6 = fileData; _i < fileData_6.length; _i++) {\n var listItem = fileData_6[_i];\n statusMessage = listItem.status;\n var validationMessages = this.validatedFileSize(listItem.size);\n if (validationMessages.minSize !== '' || validationMessages.maxSize !== '') {\n isValid = false;\n statusMessage = validationMessages.minSize !== '' ? this.localizedTexts('invalidMinFileSize') : validationMessages.maxSize !== '' ? this.localizedTexts('invalidMaxFileSize') : statusMessage;\n }\n var typeValidationMessage = this.checkExtension(this.getFilesInArray(listItem))[0].status;\n if (typeValidationMessage === this.localizedTexts('invalidFileType')) {\n isValid = false;\n statusMessage = typeValidationMessage;\n }\n }\n if (!isValid) {\n fileList.classList.add(INVALID_FILE);\n statusMessage = fileData.length > 1 ? this.localizedTexts('invalidFileSelection') : statusMessage;\n } else {\n statusMessage = this.localizedTexts('totalFiles') + ': ' + fileData.length + ' , ' + this.localizedTexts('size') + ': ' + this.bytesToSize(this.getFileSize(fileData));\n }\n return statusMessage;\n };\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n Uploader.prototype.formCustomFileList = function (fileData, files) {\n this.createParentUL();\n var fileList = this.createElement('li', {\n className: FILE\n });\n fileList.setAttribute('data-files-count', fileData.length + '');\n this.setListToFileInfo(fileData, fileList);\n var result = this.mergeFileInfo(fileData, fileList);\n fileList.setAttribute('data-file-name', result.name);\n this.uploadTemplateFn = this.templateComplier(this.template);\n var liTempCompiler = this.uploadTemplateFn(result, this, 'template', this.element.id + 'Template', this.isStringTemplate, null, fileList);\n if (liTempCompiler) {\n var fromElements = [].slice.call(liTempCompiler);\n append(fromElements, fileList);\n }\n var index = this.listParent.querySelectorAll('li').length;\n if (!fileList.classList.contains(INVALID_FILE)) {\n this.createFormInput(fileData);\n }\n var eventArgs = {\n element: fileList,\n fileInfo: result,\n index: index,\n isPreload: this.isPreLoadFile(result)\n };\n var eventsArgs = {\n element: fileList,\n fileInfo: result,\n index: index,\n isPreload: this.isPreLoadFile(result)\n };\n this.trigger('rendering', eventArgs);\n this.trigger('fileListRendering', eventsArgs);\n this.listParent.appendChild(fileList);\n this.fileList.push(fileList);\n this.renderReactTemplates();\n };\n /**\n * Create the file list for specified files data.\n *\n * @param { FileInfo[] } fileData - Specifies the files data for file list creation.\n * @returns {void}\n */\n Uploader.prototype.createFileList = function (fileData) {\n this.filesData = this.filesData && this.filesData.length > 0 ? this.filesData.concat(fileData) : fileData;\n this.internalCreateFileList(fileData);\n };\n Uploader.prototype.internalCreateFileList = function (fileData) {\n this.createParentUL();\n if (this.template !== '' && !isNullOrUndefined(this.template)) {\n if (this.isFormUpload()) {\n this.uploadWrapper.classList.add(FORM_UPLOAD);\n this.formCustomFileList(fileData, this.element.files);\n } else {\n this.createCustomfileList(fileData);\n }\n } else if (this.isFormUpload()) {\n this.uploadWrapper.classList.add(FORM_UPLOAD);\n this.formFileList(fileData, this.element.files);\n } else {\n for (var _i = 0, fileData_7 = fileData; _i < fileData_7.length; _i++) {\n var listItem = fileData_7[_i];\n var liElement = this.createElement('li', {\n className: FILE,\n attrs: {\n 'data-file-name': listItem.name,\n 'data-files-count': '1'\n }\n });\n var textContainer = this.createElement('span', {\n className: TEXT_CONTAINER\n });\n var textElement = this.createElement('span', {\n className: FILE_NAME,\n attrs: {\n 'title': listItem.name\n }\n });\n textElement.innerHTML = this.getFileNameOnly(listItem.name);\n var fileExtension = this.createElement('span', {\n className: FILE_TYPE\n });\n var fileType = this.getFileType(listItem.name);\n fileExtension.innerHTML = '.' + fileType;\n if (!fileType) {\n fileExtension.classList.add('e-hidden');\n }\n if (!this.enableRtl) {\n textContainer.appendChild(textElement);\n textContainer.appendChild(fileExtension);\n } else {\n var rtlContainer = this.createElement('span', {\n className: RTL_CONTAINER\n });\n rtlContainer.appendChild(fileExtension);\n rtlContainer.appendChild(textElement);\n textContainer.appendChild(rtlContainer);\n }\n var fileSize = this.createElement('span', {\n className: FILE_SIZE\n });\n fileSize.innerHTML = this.bytesToSize(listItem.size);\n textContainer.appendChild(fileSize);\n var statusElement = this.createElement('span', {\n className: STATUS\n });\n textContainer.appendChild(statusElement);\n statusElement.innerHTML = listItem.status;\n liElement.appendChild(textContainer);\n var iconElement = this.createElement('span', {\n className: ' e-icons',\n attrs: {\n 'tabindex': this.btnTabIndex\n }\n });\n /* istanbul ignore next */\n if (this.browserName === 'msie') {\n iconElement.classList.add('e-msie');\n }\n iconElement.setAttribute('title', this.localizedTexts('remove'));\n liElement.appendChild(iconElement);\n EventHandler.add(iconElement, 'click', this.removeFiles, this);\n if (listItem.statusCode === '2') {\n statusElement.classList.add(UPLOAD_SUCCESS);\n iconElement.classList.add(DELETE_ICON);\n iconElement.setAttribute('title', this.localizedTexts('delete'));\n iconElement.setAttribute('aria-label', this.localizedTexts('delete'));\n } else if (listItem.statusCode !== '1') {\n statusElement.classList.remove(UPLOAD_SUCCESS);\n statusElement.classList.add(VALIDATION_FAILS);\n }\n if (this.autoUpload && listItem.statusCode === '1' && this.asyncSettings.saveUrl !== '') {\n statusElement.innerHTML = '';\n }\n if (!iconElement.classList.contains(DELETE_ICON)) {\n iconElement.classList.add(REMOVE_ICON);\n iconElement.setAttribute('aria-label', this.localizedTexts('remove'));\n }\n var index = fileData.indexOf(listItem);\n var eventArgs = {\n element: liElement,\n fileInfo: listItem,\n index: index,\n isPreload: this.isPreLoadFile(listItem)\n };\n var eventsArgs = {\n element: liElement,\n fileInfo: listItem,\n index: index,\n isPreload: this.isPreLoadFile(listItem)\n };\n this.trigger('rendering', eventArgs);\n this.trigger('fileListRendering', eventsArgs);\n this.listParent.appendChild(liElement);\n this.fileList.push(liElement);\n this.truncateName(textElement);\n var preventActionComplete = this.flag;\n if (this.isPreLoadFile(listItem)) {\n this.flag = false;\n this.checkActionComplete(true);\n this.flag = preventActionComplete;\n }\n }\n }\n };\n Uploader.prototype.getSlicedName = function (nameElement) {\n var text = nameElement.textContent;\n nameElement.dataset.tail = text.slice(text.length - 10);\n };\n Uploader.prototype.setListToFileInfo = function (fileData, fileList) {\n for (var _i = 0, fileData_8 = fileData; _i < fileData_8.length; _i++) {\n var listItem = fileData_8[_i];\n listItem.list = fileList;\n }\n };\n Uploader.prototype.truncateName = function (name) {\n var nameElement = name;\n if (this.browserName !== 'edge' && nameElement.offsetWidth < nameElement.scrollWidth) {\n this.getSlicedName(nameElement);\n /* istanbul ignore next */\n } else if (nameElement.offsetWidth + 1 < nameElement.scrollWidth) {\n this.getSlicedName(nameElement);\n }\n };\n Uploader.prototype.getFileType = function (name) {\n var extension;\n var index = name.lastIndexOf('.');\n if (index >= 0) {\n extension = name.substring(index + 1);\n }\n return extension ? extension : '';\n };\n Uploader.prototype.getFileNameOnly = function (name) {\n var type = this.getFileType(name);\n var names = name.split('.' + type);\n return type = names[0];\n };\n Uploader.prototype.setInitialAttributes = function () {\n if (this.initialAttr.accept) {\n this.element.setAttribute('accept', this.initialAttr.accept);\n }\n if (this.initialAttr.disabled) {\n this.element.setAttribute('disabled', 'disabled');\n }\n if (this.initialAttr.multiple) {\n var newAttr = document.createAttribute('multiple');\n this.element.setAttributeNode(newAttr);\n }\n };\n Uploader.prototype.filterfileList = function (files) {\n var filterFiles = [];\n var li;\n for (var i = 0; i < files.length; i++) {\n li = this.getLiElement(files[i]);\n if (!isNullOrUndefined(li) && !li.classList.contains(UPLOAD_SUCCESS)) {\n filterFiles.push(files[i]);\n } else if (!this.showFileList && files[i].status !== 'File uploaded successfully') {\n filterFiles.push(files[i]);\n }\n }\n return filterFiles;\n };\n Uploader.prototype.updateStatus = function (files, status, statusCode, updateLiStatus) {\n if (updateLiStatus === void 0) {\n updateLiStatus = true;\n }\n if (!(status === '' || isNullOrUndefined(status)) && !(statusCode === '' || isNullOrUndefined(statusCode))) {\n files.status = status;\n files.statusCode = statusCode;\n }\n if (updateLiStatus) {\n var li = this.getLiElement(files);\n if (!isNullOrUndefined(li)) {\n if (!isNullOrUndefined(li.querySelector('.' + STATUS)) && !(status === '' || isNullOrUndefined(status))) {\n li.querySelector('.' + STATUS).textContent = status;\n }\n }\n }\n return files;\n };\n Uploader.prototype.getLiElement = function (files) {\n var index;\n for (var i = 0; i < this.filesData.length; i++) {\n if (!isNullOrUndefined(files) && (!isNullOrUndefined(this.filesData[i].id) && !isNullOrUndefined(files.id) ? this.filesData[i].name === files.name && this.filesData[i].id === files.id : this.filesData[i].name === files.name)) {\n index = i;\n }\n }\n return this.fileList[index];\n };\n Uploader.prototype.createProgressBar = function (liElement) {\n var progressbarWrapper = this.createElement('span', {\n className: PROGRESS_WRAPPER\n });\n var progressBar = this.createElement('progressbar', {\n className: PROGRESSBAR,\n attrs: {\n value: '0',\n max: '100'\n }\n });\n var progressbarInnerWrapper = this.createElement('span', {\n className: PROGRESS_INNER_WRAPPER\n });\n progressBar.setAttribute('style', 'width: 0%');\n var progressbarText = this.createElement('span', {\n className: PROGRESSBAR_TEXT\n });\n progressbarText.textContent = '0%';\n progressbarInnerWrapper.appendChild(progressBar);\n progressbarWrapper.appendChild(progressbarInnerWrapper);\n progressbarWrapper.appendChild(progressbarText);\n liElement.querySelector('.' + TEXT_CONTAINER).appendChild(progressbarWrapper);\n };\n /* istanbul ignore next */\n Uploader.prototype.updateProgressbar = function (e, li) {\n if (!isNaN(Math.round(e.loaded / e.total * 100)) && !isNullOrUndefined(li.querySelector('.' + PROGRESSBAR))) {\n if (!isNullOrUndefined(this.progressInterval) && this.progressInterval !== '') {\n var value = Math.round(e.loaded / e.total * 100) % parseInt(this.progressInterval, 10);\n if (value === 0 || value === 100) {\n this.changeProgressValue(li, Math.round(e.loaded / e.total * 100).toString() + '%');\n }\n } else {\n this.changeProgressValue(li, Math.round(e.loaded / e.total * 100).toString() + '%');\n }\n }\n };\n Uploader.prototype.changeProgressValue = function (li, progressValue) {\n li.querySelector('.' + PROGRESSBAR).setAttribute('style', 'width:' + progressValue);\n li.querySelector('.' + PROGRESSBAR_TEXT).textContent = progressValue;\n };\n Uploader.prototype.uploadInProgress = function (e, files, customUI, request) {\n var li = this.getLiElement(files);\n if (isNullOrUndefined(li) && !customUI) {\n return;\n }\n if (!isNullOrUndefined(li)) {\n /* istanbul ignore next */\n if (files.statusCode === '5') {\n this.cancelUploadingFile(files, e, request, li);\n }\n if (!(li.querySelectorAll('.' + PROGRESS_WRAPPER).length > 0) && li.querySelector('.' + STATUS)) {\n li.querySelector('.' + STATUS).classList.add(UPLOAD_INPROGRESS);\n this.createProgressBar(li);\n this.updateProgressBarClasses(li, UPLOAD_INPROGRESS);\n li.querySelector('.' + STATUS).classList.remove(UPLOAD_FAILED);\n }\n this.updateProgressbar(e, li);\n var iconEle = li.querySelector('.' + REMOVE_ICON);\n if (!isNullOrUndefined(iconEle)) {\n iconEle.classList.add(ABORT_ICON, UPLOAD_INPROGRESS);\n iconEle.setAttribute('title', this.localizedTexts('abort'));\n iconEle.classList.remove(REMOVE_ICON);\n }\n } else {\n this.cancelUploadingFile(files, e, request);\n }\n var args = {\n e: e,\n operation: 'upload',\n file: this.updateStatus(files, this.localizedTexts('inProgress'), '3')\n };\n this.trigger('progress', args);\n };\n /* istanbul ignore next */\n Uploader.prototype.cancelUploadingFile = function (files, e, request, li) {\n var _this = this;\n if (files.statusCode === '5') {\n var eventArgs = {\n event: e,\n fileData: files,\n cancel: false,\n customFormData: [],\n currentRequest: null\n };\n this.trigger('canceling', eventArgs, function (eventArgs) {\n if (eventArgs.cancel) {\n files.statusCode = '3';\n if (!isNullOrUndefined(li)) {\n var spinnerTarget = li.querySelector('.' + ABORT_ICON);\n if (!isNullOrUndefined(spinnerTarget)) {\n hideSpinner(spinnerTarget);\n detach(li.querySelector('.e-spinner-pane'));\n }\n }\n } else {\n request.emitError = false;\n request.httpRequest.abort();\n var formData = new FormData();\n if (files.statusCode === '5') {\n var name_1 = _this.element.getAttribute('name');\n formData.append(name_1, files.name);\n formData.append('cancel-uploading', files.name);\n _this.updateFormData(formData, eventArgs.customFormData);\n var ajax_1 = new Ajax(_this.asyncSettings.removeUrl, 'POST', true, null);\n ajax_1.emitError = false;\n ajax_1.beforeSend = function (e) {\n if (eventArgs.currentRequest) {\n _this.updateCustomheader(ajax_1.httpRequest, eventArgs.currentRequest);\n }\n };\n ajax_1.onLoad = function (e) {\n _this.removecanceledFile(e, files);\n return {};\n };\n ajax_1.send(formData);\n }\n }\n });\n }\n };\n Uploader.prototype.removecanceledFile = function (e, file) {\n var liElement = this.getLiElement(file);\n if (isNullOrUndefined(liElement) || liElement.querySelector('.' + RETRY_ICON) || isNullOrUndefined(liElement.querySelector('.' + ABORT_ICON))) {\n return;\n }\n this.updateStatus(file, this.localizedTexts('fileUploadCancel'), '5');\n this.renderFailureState(e, file, liElement);\n var spinnerTarget = liElement.querySelector('.' + REMOVE_ICON);\n if (!isNullOrUndefined(liElement)) {\n hideSpinner(spinnerTarget);\n if (!isNullOrUndefined(liElement.querySelector('.e-spinner-pane'))) {\n detach(liElement.querySelector('.e-spinner-pane'));\n }\n }\n var requestResponse = e && e.currentTarget ? this.getResponse(e) : null;\n var args = {\n event: e,\n response: requestResponse,\n operation: 'cancel',\n file: file\n };\n this.trigger('success', args);\n };\n Uploader.prototype.renderFailureState = function (e, file, liElement) {\n var _this = this;\n this.updateProgressBarClasses(liElement, UPLOAD_FAILED);\n this.removeProgressbar(liElement, 'failure');\n if (!isNullOrUndefined(liElement.querySelector('.e-file-status'))) {\n liElement.querySelector('.e-file-status').classList.add(UPLOAD_FAILED);\n }\n var deleteIcon = liElement.querySelector('.' + ABORT_ICON);\n if (isNullOrUndefined(deleteIcon)) {\n return;\n }\n deleteIcon.classList.remove(ABORT_ICON, UPLOAD_INPROGRESS);\n deleteIcon.classList.add(REMOVE_ICON);\n deleteIcon.setAttribute('title', this.localizedTexts('remove'));\n this.pauseButton = this.createElement('span', {\n className: 'e-icons e-file-reload-btn',\n attrs: {\n 'tabindex': this.btnTabIndex\n }\n });\n deleteIcon.parentElement.insertBefore(this.pauseButton, deleteIcon);\n this.pauseButton.setAttribute('title', this.localizedTexts('retry'));\n this.pauseButton.setAttribute('aria-label', this.localizedTexts('retry'));\n var retryElement = liElement.querySelector('.' + RETRY_ICON);\n /* istanbul ignore next */\n retryElement.addEventListener('click', function (e) {\n _this.reloadcanceledFile(e, file, liElement, false);\n }, false);\n };\n Uploader.prototype.reloadcanceledFile = function (e, file, liElement, custom) {\n file.statusCode = '1';\n file.status = this.localizedTexts('readyToUploadMessage');\n if (!custom) {\n if (!isNullOrUndefined(liElement.querySelector('.' + STATUS))) {\n liElement.querySelector('.' + STATUS).classList.remove(UPLOAD_FAILED);\n }\n if (!isNullOrUndefined(liElement.querySelector('.' + RETRY_ICON))) {\n detach(liElement.querySelector('.' + RETRY_ICON));\n }\n this.pauseButton = null;\n }\n /* istanbul ignore next */\n if (!isNullOrUndefined(liElement)) {\n liElement.classList.add(RESTRICT_RETRY);\n }\n this.upload([file]);\n };\n /* istanbul ignore next */\n Uploader.prototype.uploadComplete = function (e, file, customUI) {\n var status = e.target;\n if (status.readyState === 4 && status.status >= 200 && status.status <= 299) {\n var li = this.getLiElement(file);\n if (isNullOrUndefined(li) && (!customUI || isNullOrUndefined(customUI)) && this.showFileList) {\n return;\n }\n if (!isNullOrUndefined(li)) {\n this.updateProgressBarClasses(li, UPLOAD_SUCCESS);\n this.removeProgressbar(li, 'success');\n var iconEle = li.querySelector('.' + ABORT_ICON);\n if (!isNullOrUndefined(iconEle)) {\n iconEle.classList.add(DELETE_ICON);\n iconEle.setAttribute('title', this.localizedTexts('delete'));\n iconEle.setAttribute('aria-label', this.localizedTexts('delete'));\n iconEle.classList.remove(ABORT_ICON);\n iconEle.classList.remove(UPLOAD_INPROGRESS);\n }\n }\n this.raiseSuccessEvent(e, file);\n } else {\n this.uploadFailed(e, file);\n }\n };\n Uploader.prototype.getResponse = function (e) {\n var target = e.currentTarget;\n var response = {\n readyState: target.readyState,\n statusCode: target.status,\n statusText: target.statusText,\n headers: target.getAllResponseHeaders(),\n withCredentials: target.withCredentials\n };\n return response;\n };\n Uploader.prototype.raiseSuccessEvent = function (e, file) {\n var _this = this;\n var response = e && e.currentTarget ? this.getResponse(e) : null;\n var statusMessage = this.localizedTexts('uploadSuccessMessage');\n var args = {\n e: e,\n response: response,\n operation: 'upload',\n file: this.updateStatus(file, statusMessage, '2', false),\n statusText: statusMessage\n };\n var liElement = this.getLiElement(file);\n if (!isNullOrUndefined(liElement)) {\n var spinnerEle = liElement.querySelector('.' + SPINNER_PANE);\n if (!isNullOrUndefined(spinnerEle)) {\n hideSpinner(liElement);\n detach(spinnerEle);\n }\n }\n this.trigger('success', args, function (args) {\n _this.updateStatus(file, args.statusText, '2');\n if (_this.multiple) {\n _this.uploadedFilesData.push(file);\n } else {\n _this.uploadedFilesData = [file];\n }\n _this.trigger('change', {\n file: _this.uploadedFilesData\n });\n _this.checkActionButtonStatus();\n if (_this.fileList.length > 0) {\n if (!_this.getLiElement(file).classList.contains(RESTRICT_RETRY)) {\n _this.uploadSequential();\n _this.checkActionComplete(true);\n } else {\n /* istanbul ignore next */\n _this.getLiElement(file).classList.remove(RESTRICT_RETRY);\n }\n } else if (!_this.showFileList) {\n _this.checkActionComplete(true);\n }\n });\n };\n Uploader.prototype.uploadFailed = function (e, file) {\n var _this = this;\n var li = this.getLiElement(file);\n var response = e && e.currentTarget ? this.getResponse(e) : null;\n var statusMessage = this.localizedTexts('uploadFailedMessage');\n var args = {\n e: e,\n response: response,\n operation: 'upload',\n file: this.updateStatus(file, statusMessage, '0', false),\n statusText: statusMessage\n };\n if (!isNullOrUndefined(li)) {\n this.renderFailureState(e, file, li);\n }\n this.trigger('failure', args, function (args) {\n _this.updateStatus(file, args.statusText, '0');\n _this.checkActionButtonStatus();\n _this.uploadSequential();\n _this.checkActionComplete(true);\n });\n };\n Uploader.prototype.uploadSequential = function () {\n if (this.sequentialUpload) {\n if (this.autoUpload) {\n /* istanbul ignore next */\n this.checkAutoUpload(this.filesData);\n } else {\n this.uploadButtonClick();\n }\n }\n };\n Uploader.prototype.checkActionComplete = function (increment) {\n if (increment) {\n ++this.actionCompleteCount;\n } else {\n --this.actionCompleteCount;\n }\n this.raiseActionComplete();\n };\n Uploader.prototype.raiseActionComplete = function () {\n if (this.filesData.length === this.actionCompleteCount && this.flag) {\n this.flag = false;\n var eventArgs = {\n fileData: []\n };\n eventArgs.fileData = this.getSelectedFileStatus(this.selectedFiles);\n this.trigger('actionComplete', eventArgs);\n }\n };\n Uploader.prototype.getSelectedFileStatus = function (selectedFiles) {\n var matchFiles = [];\n var matchFilesIndex = 0;\n for (var selectFileIndex = 0; selectFileIndex < selectedFiles.length; selectFileIndex++) {\n var selectedFileData = selectedFiles[selectFileIndex];\n for (var fileDataIndex = 0; fileDataIndex < this.filesData.length; fileDataIndex++) {\n if (this.filesData[fileDataIndex].name === selectedFileData.name && this.filesData[fileDataIndex].status === selectedFileData.status) {\n matchFiles[matchFilesIndex] = this.filesData[fileDataIndex];\n ++matchFilesIndex;\n break;\n }\n }\n }\n return matchFiles;\n };\n Uploader.prototype.updateProgressBarClasses = function (li, className) {\n var progressBar = li.querySelector('.' + PROGRESSBAR);\n if (!isNullOrUndefined(progressBar)) {\n progressBar.classList.add(className);\n }\n };\n Uploader.prototype.removeProgressbar = function (li, callType) {\n var _this = this;\n if (!isNullOrUndefined(li.querySelector('.' + PROGRESS_WRAPPER))) {\n this.progressAnimation = new Animation({\n duration: 1250\n });\n this.progressAnimation.animate(li.querySelector('.' + PROGRESS_WRAPPER), {\n name: 'FadeOut'\n });\n this.progressAnimation.animate(li.querySelector('.' + PROGRESSBAR_TEXT), {\n name: 'FadeOut'\n });\n setTimeout(function () {\n _this.animateProgressBar(li, callType);\n }, 750);\n }\n };\n /* istanbul ignore next */\n Uploader.prototype.animateProgressBar = function (li, callType) {\n if (callType === 'success') {\n li.classList.add(UPLOAD_SUCCESS);\n if (!isNullOrUndefined(li.querySelector('.' + STATUS))) {\n li.querySelector('.' + STATUS).classList.remove(UPLOAD_INPROGRESS);\n this.progressAnimation.animate(li.querySelector('.' + STATUS), {\n name: 'FadeIn'\n });\n li.querySelector('.' + STATUS).classList.add(UPLOAD_SUCCESS);\n }\n } else {\n if (!isNullOrUndefined(li.querySelector('.' + STATUS))) {\n li.querySelector('.' + STATUS).classList.remove(UPLOAD_INPROGRESS);\n this.progressAnimation.animate(li.querySelector('.' + STATUS), {\n name: 'FadeIn'\n });\n li.querySelector('.' + STATUS).classList.add(UPLOAD_FAILED);\n }\n }\n if (li.querySelector('.' + PROGRESS_WRAPPER)) {\n detach(li.querySelector('.' + PROGRESS_WRAPPER));\n }\n };\n Uploader.prototype.setExtensions = function (extensions) {\n if (extensions !== '' && !isNullOrUndefined(extensions)) {\n this.element.setAttribute('accept', extensions);\n } else {\n this.element.removeAttribute('accept');\n }\n };\n Uploader.prototype.templateComplier = function (uploadTemplate) {\n if (uploadTemplate) {\n try {\n if (typeof uploadTemplate !== 'function' && selectAll(uploadTemplate, document).length) {\n return compile(select(uploadTemplate, document).innerHTML.trim());\n } else {\n return compile(uploadTemplate);\n }\n } catch (exception) {\n return compile(uploadTemplate);\n }\n }\n return undefined;\n };\n Uploader.prototype.setRTL = function () {\n if (this.enableRtl) {\n addClass([this.uploadWrapper], RTL);\n } else {\n removeClass([this.uploadWrapper], RTL);\n }\n };\n Uploader.prototype.localizedTexts = function (localeText) {\n this.l10n.setLocale(this.locale);\n return this.l10n.getConstant(localeText);\n };\n Uploader.prototype.setControlStatus = function () {\n if (!this.enabled) {\n this.uploadWrapper.classList.add(DISABLED);\n this.element.setAttribute('disabled', 'disabled');\n this.browseButton.setAttribute('disabled', 'disabled');\n if (!isNullOrUndefined(this.clearButton)) {\n this.clearButton.setAttribute('disabled', 'disabled');\n }\n if (!isNullOrUndefined(this.uploadButton)) {\n this.uploadButton.setAttribute('disabled', 'disabled');\n }\n } else {\n if (this.uploadWrapper.classList.contains(DISABLED)) {\n this.uploadWrapper.classList.remove(DISABLED);\n }\n if (!isNullOrUndefined(this.browseButton) && this.element.hasAttribute('disabled')) {\n this.element.removeAttribute('disabled');\n this.browseButton.removeAttribute('disabled');\n }\n if (!isNullOrUndefined(this.clearButton) && this.clearButton.hasAttribute('disabled')) {\n this.clearButton.removeAttribute('disabled');\n }\n if (!isNullOrUndefined(this.uploadButton) && this.uploadButton.hasAttribute('disabled')) {\n this.uploadButton.hasAttribute('disabled');\n }\n }\n };\n Uploader.prototype.checkHTMLAttributes = function (isDynamic) {\n var attributes = isDynamic ? isNullOrUndefined(this.htmlAttributes) ? [] : Object.keys(this.htmlAttributes) : ['accept', 'multiple', 'disabled'];\n for (var _i = 0, attributes_1 = attributes; _i < attributes_1.length; _i++) {\n var prop = attributes_1[_i];\n if (!isNullOrUndefined(this.element.getAttribute(prop))) {\n switch (prop) {\n case 'accept':\n if (isNullOrUndefined(this.uploaderOptions) || this.uploaderOptions['allowedExtensions'] === undefined || isDynamic) {\n this.setProperties({\n allowedExtensions: this.element.getAttribute('accept')\n }, !isDynamic);\n this.initialAttr.accept = this.allowedExtensions;\n }\n break;\n case 'multiple':\n if (isNullOrUndefined(this.uploaderOptions) || this.uploaderOptions['multiple'] === undefined || isDynamic) {\n var isMutiple = this.element.getAttribute(prop) === 'multiple' || this.element.getAttribute(prop) === '' || this.element.getAttribute(prop) === 'true' ? true : false;\n this.setProperties({\n multiple: isMutiple\n }, !isDynamic);\n this.initialAttr.multiple = true;\n }\n break;\n case 'disabled':\n if (isNullOrUndefined(this.uploaderOptions) || this.uploaderOptions['enabled'] === undefined || isDynamic) {\n var isDisabled = this.element.getAttribute(prop) === 'disabled' || this.element.getAttribute(prop) === '' || this.element.getAttribute(prop) === 'true' ? false : true;\n this.setProperties({\n enabled: isDisabled\n }, !isDynamic);\n this.initialAttr.disabled = true;\n }\n }\n }\n }\n };\n Uploader.prototype.chunkUpload = function (file, custom, fileIndex) {\n var start = 0;\n var end = Math.min(this.asyncSettings.chunkSize, file.size);\n var index = 0;\n var blob = file.rawFile.slice(start, end);\n var metaData = {\n chunkIndex: index,\n blob: blob,\n file: file,\n start: start,\n end: end,\n retryCount: 0,\n request: null\n };\n this.sendRequest(file, metaData, custom, fileIndex);\n };\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n Uploader.prototype.sendRequest = function (file, metaData, custom, fileIndex) {\n var _this = this;\n var formData = new FormData();\n var blob = file.rawFile.slice(metaData.start, metaData.end);\n formData.append(this.uploaderName, blob, file.name);\n formData.append('chunk-index', metaData.chunkIndex.toString());\n formData.append('chunkIndex', metaData.chunkIndex.toString());\n var totalChunk = Math.max(Math.ceil(file.size / this.asyncSettings.chunkSize), 1);\n formData.append('total-chunk', totalChunk.toString());\n formData.append('totalChunk', totalChunk.toString());\n var ajax = new Ajax({\n url: this.asyncSettings.saveUrl,\n type: 'POST',\n async: true,\n contentType: null\n });\n ajax.emitError = false;\n ajax.onLoad = function (e) {\n _this.chunkUploadComplete(e, metaData, custom);\n return {};\n };\n ajax.onUploadProgress = function (e) {\n _this.chunkUploadInProgress(e, metaData, custom);\n return {};\n };\n var eventArgs = {\n fileData: file,\n customFormData: [],\n cancel: false,\n chunkSize: this.asyncSettings.chunkSize === 0 ? null : this.asyncSettings.chunkSize\n };\n ajax.beforeSend = function (e) {\n eventArgs.currentRequest = ajax.httpRequest;\n eventArgs.currentChunkIndex = metaData.chunkIndex;\n if (eventArgs.currentChunkIndex === 0) {\n // This event is currently not required but to avoid breaking changes for previous customer, we have included.\n _this.trigger('uploading', eventArgs, function (eventArgs) {\n _this.uploadingEventCallback(formData, eventArgs, e, file);\n });\n } else {\n _this.trigger('chunkUploading', eventArgs, function (eventArgs) {\n _this.uploadingEventCallback(formData, eventArgs, e, file);\n });\n }\n };\n /* istanbul ignore next */\n ajax.onError = function (e) {\n _this.chunkUploadFailed(e, metaData, custom);\n return {};\n };\n ajax.send(formData);\n metaData.request = ajax;\n };\n Uploader.prototype.uploadingEventCallback = function (formData, eventArgs, e, file) {\n if (eventArgs.cancel) {\n this.eventCancelByArgs(e, eventArgs, file);\n } else {\n this.updateFormData(formData, eventArgs.customFormData);\n }\n };\n Uploader.prototype.eventCancelByArgs = function (e, eventArgs, file) {\n var _this = this;\n e.cancel = true;\n if (eventArgs.fileData.statusCode === '5') {\n return;\n }\n eventArgs.fileData.statusCode = '5';\n eventArgs.fileData.status = this.localizedTexts('fileUploadCancel');\n var liElement = this.getLiElement(eventArgs.fileData);\n if (liElement) {\n if (!isNullOrUndefined(liElement.querySelector('.' + STATUS))) {\n liElement.querySelector('.' + STATUS).innerHTML = this.localizedTexts('fileUploadCancel');\n liElement.querySelector('.' + STATUS).classList.add(UPLOAD_FAILED);\n }\n this.pauseButton = this.createElement('span', {\n className: 'e-icons e-file-reload-btn',\n attrs: {\n 'tabindex': this.btnTabIndex\n }\n });\n var removeIcon = liElement.querySelector('.' + REMOVE_ICON);\n if (removeIcon) {\n removeIcon.parentElement.insertBefore(this.pauseButton, removeIcon);\n }\n this.pauseButton.setAttribute('title', this.localizedTexts('retry'));\n /* istanbul ignore next */\n this.pauseButton.addEventListener('click', function (e) {\n _this.reloadcanceledFile(e, file, liElement);\n }, false);\n this.checkActionButtonStatus();\n }\n };\n Uploader.prototype.checkChunkUpload = function () {\n return this.asyncSettings.chunkSize <= 0 || isNullOrUndefined(this.asyncSettings.chunkSize) ? false : true;\n };\n Uploader.prototype.chunkUploadComplete = function (e, metaData, custom) {\n var _this = this;\n var response = e.target;\n var liElement;\n if (response.readyState === 4 && response.status >= 200 && response.status < 300) {\n var requestResponse = e && e.currentTarget ? this.getResponse(e) : null;\n var totalChunk = Math.max(Math.ceil(metaData.file.size / this.asyncSettings.chunkSize), 1);\n var eventArgs = {\n event: e,\n file: metaData.file,\n chunkIndex: metaData.chunkIndex,\n totalChunk: totalChunk,\n chunkSize: this.asyncSettings.chunkSize,\n response: requestResponse\n };\n this.trigger('chunkSuccess', eventArgs);\n if (isNullOrUndefined(custom) || !custom) {\n liElement = this.getLiElement(metaData.file);\n }\n this.updateMetaData(metaData);\n if (metaData.end === metaData.file.size) {\n metaData.file.statusCode = '3';\n }\n if (metaData.file.statusCode === '5') {\n var eventArgs_1 = {\n event: e,\n fileData: metaData.file,\n cancel: false,\n customFormData: []\n };\n this.trigger('canceling', eventArgs_1, function (eventArgs) {\n /* istanbul ignore next */\n if (eventArgs.cancel) {\n metaData.file.statusCode = '3';\n var spinnerTarget = liElement.querySelector('.' + ABORT_ICON);\n if (!isNullOrUndefined(liElement) && !isNullOrUndefined(spinnerTarget)) {\n hideSpinner(spinnerTarget);\n detach(liElement.querySelector('.e-spinner-pane'));\n }\n _this.sendNextRequest(metaData);\n } else {\n metaData.request.emitError = false;\n response.abort();\n var formData = new FormData();\n var name_2 = _this.element.getAttribute('name');\n formData.append(name_2, metaData.file.name);\n formData.append('cancel-uploading', metaData.file.name);\n formData.append('cancelUploading', metaData.file.name);\n _this.updateFormData(formData, eventArgs.customFormData);\n var ajax = new Ajax(_this.asyncSettings.removeUrl, 'POST', true, null);\n ajax.emitError = false;\n ajax.onLoad = function (e) {\n _this.removeChunkFile(e, metaData, custom);\n return {};\n };\n ajax.send(formData);\n }\n });\n } else {\n if (totalChunk - 1 === metaData.chunkIndex && totalChunk > metaData.chunkIndex) {\n var index = this.pausedData.indexOf(metaData);\n if (index >= 0) {\n this.pausedData.splice(index, 1);\n }\n if (isNullOrUndefined(this.template) && (isNullOrUndefined(custom) || !custom) && liElement) {\n if (liElement && !isNullOrUndefined(liElement.querySelector('.' + PAUSE_UPLOAD))) {\n detach(liElement.querySelector('.' + PAUSE_UPLOAD));\n }\n this.removeChunkProgressBar(metaData);\n }\n this.raiseSuccessEvent(e, metaData.file);\n return;\n }\n if (metaData.file.statusCode !== '4') {\n this.sendNextRequest(metaData);\n }\n }\n } else {\n this.chunkUploadFailed(e, metaData);\n }\n };\n Uploader.prototype.sendNextRequest = function (metaData) {\n metaData.start = metaData.end;\n metaData.end += this.asyncSettings.chunkSize;\n metaData.end = Math.min(metaData.end, metaData.file.size);\n metaData.chunkIndex += 1;\n this.sendRequest(metaData.file, metaData);\n };\n Uploader.prototype.removeChunkFile = function (e, metaData, custom) {\n if (isNullOrUndefined(this.template) && isNullOrUndefined(custom) && !custom) {\n var liElement = this.getLiElement(metaData.file);\n var deleteIcon = liElement.querySelector('.' + ABORT_ICON);\n var spinnerTarget = deleteIcon;\n this.updateStatus(metaData.file, this.localizedTexts('fileUploadCancel'), '5');\n this.updateProgressBarClasses(liElement, UPLOAD_FAILED);\n this.removeProgressbar(liElement, 'failure');\n if (deleteIcon) {\n deleteIcon.classList.remove(ABORT_ICON);\n deleteIcon.classList.add(REMOVE_ICON);\n deleteIcon.setAttribute('title', this.localizedTexts('remove'));\n }\n var pauseIcon = liElement.querySelector('.' + PAUSE_UPLOAD);\n if (pauseIcon) {\n pauseIcon.classList.add(RETRY_ICON);\n pauseIcon.classList.remove(PAUSE_UPLOAD);\n pauseIcon.setAttribute('title', this.localizedTexts('retry'));\n }\n if (!isNullOrUndefined(liElement) && !isNullOrUndefined(deleteIcon) && !isNullOrUndefined(liElement.querySelector('.e-spinner-pane'))) {\n hideSpinner(spinnerTarget);\n detach(liElement.querySelector('.e-spinner-pane'));\n }\n }\n };\n Uploader.prototype.pauseUpload = function (metaData, e, custom) {\n metaData.file.statusCode = '4';\n metaData.file.status = this.localizedTexts('pause');\n this.updateMetaData(metaData);\n var eventArgs = {\n event: e ? e : null,\n file: metaData.file,\n chunkIndex: metaData.chunkIndex,\n chunkCount: Math.round(metaData.file.size / this.asyncSettings.chunkSize),\n chunkSize: this.asyncSettings.chunkSize\n };\n this.abortUpload(metaData, custom, eventArgs);\n };\n Uploader.prototype.abortUpload = function (metaData, custom, eventArgs) {\n if (metaData.file.statusCode !== '4') {\n metaData.request.emitError = false;\n metaData.request.httpRequest.abort();\n }\n var liElement = this.getLiElement(metaData.file);\n if (isNullOrUndefined(this.template) && (isNullOrUndefined(custom) || !custom)) {\n var targetElement = liElement.querySelector('.' + PAUSE_UPLOAD);\n targetElement.classList.remove(PAUSE_UPLOAD);\n targetElement.classList.add(RESUME_UPLOAD);\n targetElement.setAttribute('title', this.localizedTexts('resume'));\n targetElement.nextElementSibling.classList.add(REMOVE_ICON);\n targetElement.nextElementSibling.classList.remove(ABORT_ICON);\n targetElement.nextElementSibling.setAttribute('title', this.localizedTexts('remove'));\n }\n for (var i = 0; i < this.pausedData.length; i++) {\n if (this.pausedData[i].file.name === metaData.file.name) {\n this.pausedData.splice(i, 1);\n }\n }\n this.pausedData.push(metaData);\n this.trigger('pausing', eventArgs);\n };\n Uploader.prototype.resumeUpload = function (metaData, e, custom) {\n var liElement = this.getLiElement(metaData.file);\n var targetElement;\n if (!isNullOrUndefined(liElement)) {\n targetElement = liElement.querySelector('.' + RESUME_UPLOAD);\n }\n if (!isNullOrUndefined(targetElement) && (isNullOrUndefined(custom) || !custom)) {\n targetElement.classList.remove(RESUME_UPLOAD);\n targetElement.classList.add(PAUSE_UPLOAD);\n targetElement.setAttribute('title', this.localizedTexts('pause'));\n targetElement.nextElementSibling.classList.remove(REMOVE_ICON);\n targetElement.nextElementSibling.classList.add(ABORT_ICON);\n targetElement.nextElementSibling.setAttribute('title', this.localizedTexts('abort'));\n }\n metaData.file.status = this.localizedTexts('inProgress');\n metaData.file.statusCode = '3';\n this.updateMetaData(metaData);\n var eventArgs = {\n event: e ? e : null,\n file: metaData.file,\n chunkIndex: metaData.chunkIndex,\n chunkCount: Math.round(metaData.file.size / this.asyncSettings.chunkSize),\n chunkSize: this.asyncSettings.chunkSize\n };\n this.trigger('resuming', eventArgs);\n for (var i = 0; i < this.pausedData.length; i++) {\n if (this.pausedData[i].end === this.pausedData[i].file.size) {\n this.chunkUploadComplete(e, metaData, custom);\n } else {\n if (this.pausedData[i].file.name === metaData.file.name) {\n this.pausedData[i].start = this.pausedData[i].end;\n this.pausedData[i].end = this.pausedData[i].end + this.asyncSettings.chunkSize;\n this.pausedData[i].end = Math.min(this.pausedData[i].end, this.pausedData[i].file.size);\n this.pausedData[i].chunkIndex = this.pausedData[i].chunkIndex + 1;\n this.sendRequest(this.pausedData[i].file, this.pausedData[i], custom);\n }\n }\n }\n };\n Uploader.prototype.updateMetaData = function (metaData) {\n if (this.uploadMetaData.indexOf(metaData) === -1) {\n this.uploadMetaData.push(metaData);\n } else {\n this.uploadMetaData.splice(this.uploadMetaData.indexOf(metaData), 1);\n this.uploadMetaData.push(metaData);\n }\n };\n Uploader.prototype.removeChunkProgressBar = function (metaData) {\n var liElement = this.getLiElement(metaData.file);\n if (!isNullOrUndefined(liElement)) {\n this.updateProgressBarClasses(liElement, UPLOAD_SUCCESS);\n this.removeProgressbar(liElement, 'success');\n var cancelButton = liElement.querySelector('.' + ABORT_ICON);\n if (!isNullOrUndefined(cancelButton)) {\n cancelButton.classList.add(DELETE_ICON);\n cancelButton.setAttribute('title', this.localizedTexts('delete'));\n cancelButton.classList.remove(ABORT_ICON, UPLOAD_INPROGRESS);\n }\n }\n };\n Uploader.prototype.chunkUploadFailed = function (e, metaData, custom) {\n var _this = this;\n var chunkCount = Math.max(Math.ceil(metaData.file.size / this.asyncSettings.chunkSize), 1);\n var liElement;\n if (isNullOrUndefined(this.template) && (isNullOrUndefined(custom) || !custom)) {\n liElement = this.getLiElement(metaData.file);\n }\n var requestResponse = e && e.currentTarget ? this.getResponse(e) : null;\n var eventArgs = {\n event: e,\n file: metaData.file,\n chunkIndex: metaData.chunkIndex,\n totalChunk: chunkCount,\n chunkSize: this.asyncSettings.chunkSize,\n cancel: false,\n response: requestResponse\n };\n this.trigger('chunkFailure', eventArgs, function (eventArgs) {\n // To prevent triggering of failure event\n if (!eventArgs.cancel) {\n if (metaData.retryCount < _this.asyncSettings.retryCount) {\n setTimeout(function () {\n _this.retryRequest(liElement, metaData, custom);\n }, _this.asyncSettings.retryAfterDelay);\n } else {\n if (!isNullOrUndefined(liElement)) {\n var pauseButton = liElement.querySelector('.' + PAUSE_UPLOAD) ? liElement.querySelector('.' + PAUSE_UPLOAD) : liElement.querySelector('.' + RESUME_UPLOAD);\n if (!isNullOrUndefined(pauseButton)) {\n pauseButton.classList.add(RETRY_ICON);\n pauseButton.classList.remove(PAUSE_UPLOAD, RESUME_UPLOAD);\n }\n _this.updateProgressBarClasses(liElement, UPLOAD_FAILED);\n _this.removeProgressbar(liElement, 'failure');\n liElement.querySelector('.e-icons').classList.remove(UPLOAD_INPROGRESS);\n var iconElement = liElement.querySelector('.' + ABORT_ICON) ? liElement.querySelector('.' + ABORT_ICON) : liElement.querySelector('.' + REMOVE_ICON);\n iconElement.classList.remove(ABORT_ICON);\n if (!isNullOrUndefined(liElement.querySelector('.' + PAUSE_UPLOAD))) {\n detach(liElement.querySelector('.' + PAUSE_UPLOAD));\n }\n if (metaData.start > 0) {\n iconElement.classList.add(DELETE_ICON);\n iconElement.setAttribute('title', _this.localizedTexts('delete'));\n } else {\n iconElement.classList.add(REMOVE_ICON);\n iconElement.setAttribute('title', _this.localizedTexts('remove'));\n }\n }\n metaData.retryCount = 0;\n var file_1 = metaData.file;\n var failureMessage = _this.localizedTexts('uploadFailedMessage');\n var args = {\n e: e,\n response: requestResponse,\n operation: 'upload',\n file: _this.updateStatus(file_1, failureMessage, '0', false),\n statusText: failureMessage\n };\n _this.trigger('failure', args, function (args) {\n _this.updateStatus(file_1, args.statusText, '0');\n _this.uploadSequential();\n _this.checkActionComplete(true);\n });\n }\n }\n });\n };\n Uploader.prototype.retryRequest = function (liElement, metaData, custom) {\n if (isNullOrUndefined(this.template) && (isNullOrUndefined(custom) || !custom) && liElement) {\n this.updateProgressBarClasses(liElement, UPLOAD_FAILED);\n }\n metaData.retryCount += 1;\n this.sendRequest(metaData.file, metaData);\n };\n Uploader.prototype.checkPausePlayAction = function (e) {\n var targetElement = e.target;\n var selectedElement = e.target.parentElement;\n var index = this.fileList.indexOf(selectedElement);\n var fileData = this.filesData[index];\n var metaData = this.getCurrentMetaData(fileData);\n if (targetElement.classList.contains(PAUSE_UPLOAD)) {\n /* istanbul ignore next */\n this.pauseUpload(metaData, e);\n } else if (targetElement.classList.contains(RESUME_UPLOAD)) {\n /* istanbul ignore next */\n this.resumeUpload(metaData, e);\n } else if (targetElement.classList.contains(RETRY_ICON)) {\n if (metaData.file.status === this.localizedTexts('fileUploadCancel')) {\n this.retryUpload(metaData, false);\n } else {\n this.retryUpload(metaData, true);\n }\n }\n };\n Uploader.prototype.retryUpload = function (metaData, fromcanceledStage) {\n if (fromcanceledStage) {\n metaData.end = metaData.end + this.asyncSettings.chunkSize;\n metaData.start = metaData.start + this.asyncSettings.chunkSize;\n this.sendRequest(metaData.file, metaData);\n } else {\n metaData.file.statusCode = '1';\n metaData.file.status = this.localizedTexts('readyToUploadMessage');\n this.chunkUpload(metaData.file);\n }\n /* istanbul ignore next */\n this.getLiElement(metaData.file).classList.add(RESTRICT_RETRY);\n };\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n Uploader.prototype.chunkUploadInProgress = function (e, metaData, custom) {\n var _this = this;\n if (metaData.file.statusCode === '4') {\n return;\n }\n if (metaData.file.statusCode !== '4' && metaData.file.statusCode !== '5') {\n metaData.file.statusCode = '3';\n metaData.file.status = this.localizedTexts('inProgress');\n }\n this.updateMetaData(metaData);\n var liElement = this.getLiElement(metaData.file);\n if (isNullOrUndefined(liElement)) {\n return;\n }\n var retryElement = liElement.querySelector('.' + RETRY_ICON);\n if (!isNullOrUndefined(retryElement)) {\n retryElement.classList.add(PAUSE_UPLOAD);\n retryElement.setAttribute('title', this.localizedTexts('pause'));\n retryElement.classList.remove(RETRY_ICON);\n }\n if (!isNullOrUndefined(liElement)) {\n if (!(liElement.querySelectorAll('.' + PROGRESS_WRAPPER).length > 0)) {\n var statusElement = liElement.querySelector('.' + STATUS);\n if (isNullOrUndefined(this.template)) {\n statusElement.classList.add(UPLOAD_INPROGRESS);\n statusElement.classList.remove(UPLOAD_FAILED);\n this.createProgressBar(liElement);\n this.updateProgressBarClasses(liElement, UPLOAD_INPROGRESS);\n }\n var clearIcon = liElement.querySelector('.' + REMOVE_ICON) ? liElement.querySelector('.' + REMOVE_ICON) : liElement.querySelector('.' + DELETE_ICON);\n if (!isNullOrUndefined(clearIcon)) {\n clearIcon.classList.add(ABORT_ICON);\n clearIcon.setAttribute('title', this.localizedTexts('abort'));\n clearIcon.classList.remove(REMOVE_ICON);\n }\n }\n if (!isNaN(Math.round(e.loaded / e.total * 100)) && isNullOrUndefined(this.template) && metaData.file.statusCode !== '4') {\n var progressVal = void 0;\n var totalChunks = Math.ceil(metaData.file.size / this.asyncSettings.chunkSize) - 1;\n if (this.asyncSettings.chunkSize && totalChunks) {\n progressVal = Math.round(metaData.chunkIndex / totalChunks * 100);\n this.changeProgressValue(liElement, progressVal.toString() + '%');\n }\n }\n if (metaData.chunkIndex === 0) {\n this.checkActionButtonStatus();\n }\n }\n if (isNullOrUndefined(liElement.querySelector('.' + PAUSE_UPLOAD)) && isNullOrUndefined(this.template) && isNullOrUndefined(liElement.querySelector('.' + DELETE_ICON))) {\n this.pauseButton = this.createElement('span', {\n className: 'e-icons e-file-pause-btn',\n attrs: {\n 'tabindex': this.btnTabIndex\n }\n });\n if (this.browserName === 'msie') {\n this.pauseButton.classList.add('e-msie');\n }\n var abortIcon = liElement.querySelector('.' + ABORT_ICON);\n abortIcon.parentElement.insertBefore(this.pauseButton, abortIcon);\n this.pauseButton.setAttribute('title', this.localizedTexts('pause'));\n this.pauseButton.addEventListener('click', function (e) {\n _this.checkPausePlayAction(e);\n }, false);\n }\n };\n /**\n * It is used to convert bytes value into kilobytes or megabytes depending on the size based\n * on [binary prefix](https://en.wikipedia.org/wiki/Binary_prefix).\n *\n * @param { number } bytes - Specifies the file size in bytes.\n * @returns {string} - Returns the file size.\n */\n Uploader.prototype.bytesToSize = function (bytes) {\n var i = -1;\n if (!bytes) {\n return '0.0 KB';\n }\n do {\n bytes = bytes / 1024;\n i++;\n } while (bytes > 99);\n if (i >= 2) {\n bytes = bytes * 1024;\n i = 1;\n }\n return Math.max(bytes, 0).toFixed(1) + ' ' + ['KB', 'MB'][i];\n };\n /**\n * Allows you to sort the file data alphabetically based on its file name clearly.\n *\n * @param { FileList } filesData - specifies the files data for upload.\n * @returns {File[]}\n */\n /* istanbul ignore next */\n Uploader.prototype.sortFileList = function (filesData) {\n filesData = filesData ? filesData : this.sortFilesList;\n var files = filesData;\n var fileNames = [];\n for (var i = 0; i < files.length; i++) {\n fileNames.push(files[i].name);\n }\n var sortedFileNames = fileNames.sort();\n var sortedFilesData = [];\n for (var _i = 0, sortedFileNames_1 = sortedFileNames; _i < sortedFileNames_1.length; _i++) {\n var name_3 = sortedFileNames_1[_i];\n for (var i = 0; i < files.length; i++) {\n if (name_3 === files[i].name) {\n sortedFilesData.push(files[i]);\n }\n }\n }\n return sortedFilesData;\n };\n /**\n * Removes the component from the DOM and detaches all its related event handlers. Also it removes the attributes and classes.\n *\n * @method destroy\n * @returns {void}\n */\n Uploader.prototype.destroy = function () {\n this.element.value = null;\n this.clearTemplate();\n this.clearAll();\n this.unWireEvents();\n this.unBindDropEvents();\n if (this.multiple) {\n this.element.removeAttribute('multiple');\n }\n if (!this.enabled) {\n this.element.removeAttribute('disabled');\n }\n this.element.removeAttribute('accept');\n this.setInitialAttributes();\n var attributes = ['aria-label', 'directory', 'webkitdirectory', 'tabindex'];\n for (var _i = 0, attributes_2 = attributes; _i < attributes_2.length; _i++) {\n var key = attributes_2[_i];\n this.element.removeAttribute(key);\n }\n if (!isNullOrUndefined(this.uploadWrapper)) {\n this.uploadWrapper.parentElement.appendChild(this.element);\n detach(this.uploadWrapper);\n }\n this.uploadWrapper = null;\n this.uploadWrapper = null;\n this.browseButton = null;\n this.dropAreaWrapper = null;\n this.dropZoneElement = null;\n this.dropArea = null;\n this.keyboardModule = null;\n this.clearButton = null;\n this.uploadButton = null;\n _super.prototype.destroy.call(this);\n };\n /**\n * Allows you to call the upload process manually by calling save URL action.\n * To process the selected files (added in upload queue), pass an empty argument otherwise\n * upload the specific file based on its argument.\n *\n * @param { FileInfo | FileInfo[] } files - Specifies the files data for upload.\n * @param {boolean} custom - Specifies whether the uploader is rendered with custom file list.\n * @returns {void}\n */\n Uploader.prototype.upload = function (files, custom) {\n var _this = this;\n files = files ? files : this.filesData;\n if (this.sequentialUpload && (this.isFirstFileOnSelection || custom)) {\n this.sequenceUpload(files);\n } else {\n var uploadFiles_1 = this.getFilesInArray(files);\n var eventArgs = {\n customFormData: [],\n currentRequest: null,\n cancel: false\n };\n this.trigger('beforeUpload', eventArgs, function (eventArgs) {\n if (!eventArgs.cancel) {\n _this.uploadFiles(uploadFiles_1, custom);\n }\n });\n }\n };\n Uploader.prototype.getFilesInArray = function (files) {\n var uploadFiles = [];\n if (files instanceof Array) {\n uploadFiles = files;\n } else {\n uploadFiles.push(files);\n }\n return uploadFiles;\n };\n /* istanbul ignore next */\n Uploader.prototype.serverReadFileBase64 = function (fileIndex, position, totalCount) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n var file = _this.fileStreams[fileIndex].rawFile;\n try {\n var reader = new FileReader();\n reader.onload = function (args) {\n return function () {\n try {\n var contents = args.result;\n var data = contents ? contents.split(';base64,')[1] : null;\n resolve(data);\n } catch (e) {\n reject(e);\n }\n };\n }(reader);\n reader.readAsDataURL(file.slice(position, position + totalCount));\n } catch (e) {\n reject(e);\n }\n });\n };\n /* eslint-disable @typescript-eslint/no-unused-vars */\n /* istanbul ignore next */\n Uploader.prototype.uploadFileCount = function (ele) {\n /* eslint-enable @typescript-eslint/no-unused-vars */\n var files = this.filesData;\n if (!files || files.length === 0) {\n return -1;\n }\n var result = files.length;\n return result;\n };\n /* eslint-disable @typescript-eslint/no-unused-vars */\n /* istanbul ignore next */\n Uploader.prototype.getFileRead = function (index, ele) {\n /* eslint-enable @typescript-eslint/no-unused-vars */\n var files = this.filesData;\n if (!files || files.length === 0) {\n return -1;\n }\n var file = files[index];\n var fileCount = this.newFileRef++;\n this.fileStreams[fileCount] = file;\n return fileCount;\n };\n Uploader.prototype.uploadFiles = function (files, custom) {\n var selectedFiles = [];\n if (this.asyncSettings.saveUrl === '' || isNullOrUndefined(this.asyncSettings.saveUrl)) {\n return;\n }\n if (!custom || isNullOrUndefined(custom)) {\n if (!this.multiple) {\n var file = [];\n file.push(files[0]);\n selectedFiles = this.filterfileList(file);\n } else {\n selectedFiles = this.filterfileList(files);\n }\n } else {\n selectedFiles = files;\n }\n for (var i = 0; i < selectedFiles.length; i++) {\n this.uploadFilesRequest(selectedFiles, i, custom);\n }\n };\n Uploader.prototype.uploadFilesRequest = function (selectedFiles, i, custom) {\n var _this = this;\n var chunkEnabled = this.checkChunkUpload();\n var ajax = new Ajax(this.asyncSettings.saveUrl, 'POST', true, null);\n ajax.emitError = false;\n var eventArgs = {\n fileData: selectedFiles[i],\n customFormData: [],\n cancel: false\n };\n var formData = new FormData();\n ajax.beforeSend = function (e) {\n eventArgs.currentRequest = ajax.httpRequest;\n _this.trigger('uploading', eventArgs, function (eventArgs) {\n /* istanbul ignore next */\n if (eventArgs.cancel) {\n _this.eventCancelByArgs(e, eventArgs, selectedFiles[i]);\n }\n _this.updateFormData(formData, eventArgs.customFormData);\n });\n };\n if (selectedFiles[i].statusCode === '1') {\n var name_4 = this.element.getAttribute('name');\n formData.append(name_4, selectedFiles[i].rawFile, selectedFiles[i].name);\n if (chunkEnabled && selectedFiles[i].size > this.asyncSettings.chunkSize) {\n this.chunkUpload(selectedFiles[i], custom, i);\n } else {\n ajax.onLoad = function (e) {\n if (eventArgs.cancel) {\n return {};\n } else {\n _this.uploadComplete(e, selectedFiles[i], custom);\n return {};\n }\n };\n ajax.onUploadProgress = function (e) {\n if (eventArgs.cancel) {\n return {};\n } else {\n _this.uploadInProgress(e, selectedFiles[i], custom, ajax);\n return {};\n }\n };\n /* istanbul ignore next */\n ajax.onError = function (e) {\n _this.uploadFailed(e, selectedFiles[i]);\n return {};\n };\n ajax.send(formData);\n }\n }\n };\n Uploader.prototype.spliceFiles = function (liIndex) {\n var liElement = this.fileList[liIndex];\n var allFiles = this.getFilesData();\n var nameElements = +liElement.getAttribute('data-files-count');\n var startIndex = 0;\n for (var i = 0; i < liIndex; i++) {\n startIndex += +this.fileList[i].getAttribute('data-files-count');\n }\n var endIndex = startIndex + nameElements - 1;\n for (var j = endIndex; j >= startIndex; j--) {\n allFiles.splice(j, 1);\n }\n };\n /* eslint-disable valid-jsdoc, jsdoc/require-param */\n /**\n * Remove the uploaded file from server manually by calling the remove URL action.\n * If you pass an empty argument to this method, the complete file list can be cleared,\n * otherwise remove the specific file based on its argument (“file_data”).\n *\n * @param { FileInfo | FileInfo[] } fileData - specifies the files data to remove from file list/server.\n * @param { boolean } customTemplate - Set true if the component rendering with customize template.\n * @param { boolean } removeDirectly - Set true if files remove without removing event.\n * @param { boolean } postRawFile - Set false, to post file name only to the remove action.\n * @returns {void}\n */\n Uploader.prototype.remove = function (fileData, customTemplate, removeDirectly, postRawFile, args) {\n var _this = this;\n if (isNullOrUndefined(postRawFile)) {\n postRawFile = true;\n }\n var eventArgs = {\n event: args,\n cancel: false,\n filesData: [],\n customFormData: [],\n postRawFile: postRawFile,\n currentRequest: null\n };\n var beforeEventArgs = {\n cancel: false,\n customFormData: [],\n currentRequest: null\n };\n this.trigger('beforeRemove', beforeEventArgs, function (beforeEventArgs) {\n if (!beforeEventArgs.cancel) {\n if (_this.isFormUpload()) {\n eventArgs.filesData = fileData;\n _this.trigger('removing', eventArgs, function (eventArgs) {\n if (!eventArgs.cancel) {\n var removingFiles = _this.getFilesInArray(fileData);\n var isLiRemoved = false;\n var liIndex = void 0;\n for (var _i = 0, removingFiles_1 = removingFiles; _i < removingFiles_1.length; _i++) {\n var data = removingFiles_1[_i];\n if (!isLiRemoved) {\n liIndex = _this.fileList.indexOf(data.list);\n }\n if (liIndex > -1) {\n var inputElement = !isNullOrUndefined(data.input) ? data.input : null;\n if (inputElement) {\n detach(inputElement);\n }\n _this.spliceFiles(liIndex);\n detach(_this.fileList[liIndex]);\n _this.fileList.splice(liIndex, 1);\n isLiRemoved = true;\n liIndex = -1;\n }\n }\n }\n });\n } else if (_this.isForm && (isNullOrUndefined(_this.asyncSettings.removeUrl) || _this.asyncSettings.removeUrl === '')) {\n eventArgs.filesData = _this.getFilesData();\n _this.trigger('removing', eventArgs, function (eventArgs) {\n if (!eventArgs.cancel) {\n _this.clearAll();\n }\n });\n } else {\n var removeFiles = [];\n fileData = !isNullOrUndefined(fileData) ? fileData : _this.filesData;\n if (fileData instanceof Array) {\n removeFiles = fileData;\n } else {\n removeFiles.push(fileData);\n }\n eventArgs.filesData = removeFiles;\n var removeUrl = _this.asyncSettings.removeUrl;\n var validUrl = removeUrl === '' || isNullOrUndefined(removeUrl) ? false : true;\n var _loop_5 = function (files) {\n var fileUploadedIndex = _this.uploadedFilesData.indexOf(files);\n if ((files.statusCode === '2' || files.statusCode === '4' || files.statusCode === '0' && fileUploadedIndex !== -1) && validUrl) {\n _this.removeUploadedFile(files, eventArgs, removeDirectly, customTemplate);\n } else {\n if (!removeDirectly) {\n _this.trigger('removing', eventArgs, function (eventArgs) {\n if (!eventArgs.cancel) {\n _this.removeFilesData(files, customTemplate);\n }\n });\n } else {\n _this.removeFilesData(files, customTemplate);\n }\n }\n if (args && !args.target.classList.contains(REMOVE_ICON)) {\n _this.checkActionComplete(false);\n }\n };\n for (var _i = 0, removeFiles_1 = removeFiles; _i < removeFiles_1.length; _i++) {\n var files = removeFiles_1[_i];\n _loop_5(files);\n }\n }\n }\n });\n };\n /* eslint-enable valid-jsdoc, jsdoc/require-param */\n /**\n * Clear all the file entries from list that can be uploaded files or added in upload queue.\n *\n * @returns {void}\n */\n Uploader.prototype.clearAll = function () {\n var _this = this;\n if (isNullOrUndefined(this.listParent)) {\n if (this.browserName !== 'msie') {\n this.element.value = '';\n }\n this.filesData = [];\n return;\n }\n var eventArgs = {\n cancel: false,\n filesData: this.filesData\n };\n this.trigger('clearing', eventArgs, function (eventArgs) {\n if (!eventArgs.cancel) {\n _this.clearData();\n _this.actionCompleteCount = 0;\n _this.count = -1;\n }\n });\n };\n /* eslint-disable valid-jsdoc, jsdoc/require-returns-description */\n /**\n * Get the data of files which are shown in file list.\n *\n * @param { number } index - specifies the file list item(li) index.\n * @returns {FileInfo[]}\n */\n Uploader.prototype.getFilesData = function (index) {\n if (isNullOrUndefined(index)) {\n return this.filesData;\n } else {\n return this.getSelectedFiles(index);\n }\n };\n /* eslint-enable valid-jsdoc, jsdoc/require-returns-description */\n /**\n * Pauses the in-progress chunked upload based on the file data.\n *\n * @param { FileInfo | FileInfo[] } fileData - specifies the files data to pause from uploading.\n * @param { boolean } custom - Set true if used custom UI.\n * @returns {void}\n */\n Uploader.prototype.pause = function (fileData, custom) {\n fileData = fileData ? fileData : this.filesData;\n var fileDataFiles = this.getFilesInArray(fileData);\n this.pauseUploading(fileDataFiles, custom);\n };\n Uploader.prototype.pauseUploading = function (fileData, custom) {\n var files = this.getFiles(fileData);\n for (var i = 0; i < files.length; i++) {\n if (files[i].statusCode === '3') {\n this.pauseUpload(this.getCurrentMetaData(files[i], null), null, custom);\n }\n }\n };\n Uploader.prototype.getFiles = function (fileData) {\n var files = [];\n if (!isNullOrUndefined(fileData) && !(fileData instanceof Array)) {\n files.push(fileData);\n } else {\n files = fileData;\n }\n return files;\n };\n /**\n * Resumes the chunked upload that is previously paused based on the file data.\n *\n * @param { FileInfo | FileInfo[] } fileData - specifies the files data to resume the paused file.\n * @param { boolean } custom - Set true if used custom UI.\n * @returns {void}\n */\n Uploader.prototype.resume = function (fileData, custom) {\n fileData = fileData ? fileData : this.filesData;\n var fileDataFiles = this.getFilesInArray(fileData);\n this.resumeFiles(fileDataFiles, custom);\n };\n Uploader.prototype.resumeFiles = function (fileData, custom) {\n var files = this.getFiles(fileData);\n for (var i = 0; i < files.length; i++) {\n if (files[i].statusCode === '4') {\n this.resumeUpload(this.getCurrentMetaData(files[i], null), null, custom);\n }\n }\n };\n /**\n * Retries the canceled or failed file upload based on the file data.\n *\n * @param { FileInfo | FileInfo[] } fileData - specifies the files data to retry the canceled or failed file.\n * @param { boolean } fromcanceledStage - Set true to retry from canceled stage and set false to retry from initial stage.\n * @param {boolean} custom -Specifies whether the uploader is rendered with custom file list.\n * @returns {void}\n */\n Uploader.prototype.retry = function (fileData, fromcanceledStage, custom) {\n fileData = fileData ? fileData : this.filesData;\n var fileDataFiles = this.getFilesInArray(fileData);\n if (this.sequentialUpload && this.isFirstFileOnSelection) {\n this.isFirstFileOnSelection = false;\n }\n this.retryFailedFiles(fileDataFiles, fromcanceledStage, custom);\n };\n Uploader.prototype.retryFailedFiles = function (fileData, fromcanceledStage, custom) {\n var files = this.getFiles(fileData);\n for (var i = 0; i < files.length; i++) {\n if (files[i].statusCode === '5' || files[i].statusCode === '0') {\n if (this.asyncSettings.chunkSize > 0 && this.getCurrentMetaData(files[i], null)) {\n this.retryUpload(this.getCurrentMetaData(files[i], null), fromcanceledStage);\n } else {\n var liElement = void 0;\n if (!custom) {\n liElement = this.fileList[this.filesData.indexOf(files[i])];\n }\n this.reloadcanceledFile(null, files[i], liElement, custom);\n }\n }\n }\n };\n /**\n * Stops the in-progress chunked upload based on the file data.\n * When the file upload is canceled, the partially uploaded file is removed from server.\n *\n * @param { FileInfo | FileInfo[] } fileData - specifies the files data to cancel the progressing file.\n * @returns {void}\n */\n Uploader.prototype.cancel = function (fileData) {\n fileData = fileData ? fileData : this.filesData;\n var cancelingFiles = this.getFilesInArray(fileData);\n this.cancelUpload(cancelingFiles);\n };\n Uploader.prototype.cancelUpload = function (fileData) {\n var files = this.getFiles(fileData);\n if (this.asyncSettings.chunkSize > 0) {\n for (var i = 0; i < files.length; i++) {\n if (files[i].statusCode === '3') {\n var metaData = this.getCurrentMetaData(files[i], null);\n metaData.file.statusCode = '5';\n metaData.file.status = this.localizedTexts('fileUploadCancel');\n this.updateMetaData(metaData);\n this.showHideUploadSpinner(files[i]);\n }\n }\n } else {\n for (var i = 0; i < files.length; i++) {\n if (files[i].statusCode === '3') {\n files[i].statusCode = '5';\n files[i].status = this.localizedTexts('fileUploadCancel');\n this.showHideUploadSpinner(files[i]);\n }\n }\n }\n };\n Uploader.prototype.showHideUploadSpinner = function (files) {\n var liElement = this.getLiElement(files);\n if (!isNullOrUndefined(liElement) && isNullOrUndefined(this.template)) {\n var spinnerTarget = liElement.querySelector('.' + ABORT_ICON);\n createSpinner({\n target: spinnerTarget,\n width: '20px'\n });\n showSpinner(spinnerTarget);\n }\n };\n __decorate$4([Complex({\n saveUrl: '',\n removeUrl: ''\n }, AsyncSettings)], Uploader.prototype, \"asyncSettings\", void 0);\n __decorate$4([Property(false)], Uploader.prototype, \"sequentialUpload\", void 0);\n __decorate$4([Property({})], Uploader.prototype, \"htmlAttributes\", void 0);\n __decorate$4([Property('')], Uploader.prototype, \"cssClass\", void 0);\n __decorate$4([Property(true)], Uploader.prototype, \"enabled\", void 0);\n __decorate$4([Property(null)], Uploader.prototype, \"template\", void 0);\n __decorate$4([Property(true)], Uploader.prototype, \"multiple\", void 0);\n __decorate$4([Property(true)], Uploader.prototype, \"autoUpload\", void 0);\n __decorate$4([Property(true)], Uploader.prototype, \"enableHtmlSanitizer\", void 0);\n __decorate$4([Complex({}, ButtonsProps)], Uploader.prototype, \"buttons\", void 0);\n __decorate$4([Property('')], Uploader.prototype, \"allowedExtensions\", void 0);\n __decorate$4([Property(0)], Uploader.prototype, \"minFileSize\", void 0);\n __decorate$4([Property(30000000)], Uploader.prototype, \"maxFileSize\", void 0);\n __decorate$4([Property(null)], Uploader.prototype, \"dropArea\", void 0);\n __decorate$4([Collection([{}], FilesProp)], Uploader.prototype, \"files\", void 0);\n __decorate$4([Property(true)], Uploader.prototype, \"showFileList\", void 0);\n __decorate$4([Property(false)], Uploader.prototype, \"directoryUpload\", void 0);\n __decorate$4([Property('Default')], Uploader.prototype, \"dropEffect\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"created\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"actionComplete\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"rendering\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"beforeUpload\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"fileListRendering\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"selected\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"uploading\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"success\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"failure\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"removing\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"beforeRemove\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"clearing\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"progress\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"change\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"chunkSuccess\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"chunkFailure\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"chunkUploading\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"canceling\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"pausing\", void 0);\n __decorate$4([Event()], Uploader.prototype, \"resuming\", void 0);\n Uploader = __decorate$4([NotifyPropertyChanges], Uploader);\n return Uploader;\n}(Component);\n/* eslint-enable @typescript-eslint/no-explicit-any */\n\nvar __extends$5 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 APPLY = 'e-apply';\nvar CANCEL = 'e-cancel';\nvar CURRENT = 'e-current';\nvar CONTAINER = 'e-container';\nvar CTRLBTN = 'e-ctrl-btn';\nvar CTRLSWITCH = 'e-switch-ctrl-btn';\nvar DISABLED$1 = 'e-disabled';\nvar FORMATSWITCH = 'e-value-switch-btn';\nvar HANDLER = 'e-handler';\nvar HEX = 'e-hex';\nvar HIDEHEX = 'e-hide-hex-value';\nvar HIDEOPACITY = 'e-hide-opacity';\nvar HIDERGBA = 'e-hide-switchable-value';\nvar HIDEVALUE = 'e-hide-value';\nvar HIDEVALUESWITCH = 'e-hide-valueswitcher';\nvar HSVAREA = 'e-hsv-color';\nvar HSVCONTAINER = 'e-hsv-container';\nvar INPUTWRAPPER = 'e-selected-value';\nvar MODESWITCH = 'e-mode-switch-btn';\nvar NOCOLOR = 'e-nocolor-item';\nvar OPACITY = 'e-opacity-value';\nvar PALETTES = 'e-palette';\nvar PALETTECONTENT = 'e-color-palette';\nvar PICKERCONTENT = 'e-color-picker';\nvar PREVIEW = 'e-preview-container';\nvar PREVIOUS = 'e-previous';\nvar RTL$1 = 'e-rtl';\nvar SHOWVALUE = 'e-show-value';\nvar SELECT = 'e-selected';\nvar SPLITPREVIEW = 'e-split-preview';\nvar TILE = 'e-tile';\nvar presets = {\n default: ['#000000', '#f44336', '#e91e63', '#9c27b0', '#673ab7', '#2196f3', '#03a9f4', '#00bcd4', '#009688', '#ffeb3b', '#ffffff', '#ffebee', '#fce4ec', '#f3e5f5', '#ede7f6', '#e3f2fd', '#e1f5fe', '#e0f7fa', '#e0f2f1', '#fffde7', '#f2f2f2', '#ffcdd2', '#f8bbd0', '#e1bee7', '#d1c4e9', '#bbdefb', '#b3e5fc', '#b2ebf2', '#b2dfdb', '#fff9c4', '#e6e6e6', '#ef9a9a', '#f48fb1', '#ce93d8', '#b39ddb', '#90caf9', '#81d4fa', '#80deea', '#80cbc4', '#fff59d', '#cccccc', '#e57373', '#f06292', '#ba68c8', '#9575cd', '#64b5f6', '#4fc3f7', '#4dd0e1', '#4db6ac', '#fff176', '#b3b3b3', '#ef5350', '#ec407a', '#ab47bc', '#7e57c2', '#42a5f5', '#29b6f6', '#26c6da', '#26a69a', '#ffee58', '#999999', '#e53935', '#d81b60', '#8e24aa', '#5e35b1', '#1e88e5', '#039be5', '#00acc1', '#00897b', '#fdd835', '#808080', '#d32f2f', '#c2185b', '#7b1fa2', '#512da8', '#1976d2', '#0288d1', '#0097a7', '#00796b', '#fbc02d', '#666666', '#c62828', '#ad1457', '#6a1b9a', '#4527a0', '#1565c0', '#0277bd', '#00838f', '#00695c', '#f9a825', '#4d4d4d', '#b71c1c', '#880e4f', '#4a148c', '#311b92', '#0d47a1', '#01579b', '#006064', '#004d40', '#f57f17']\n};\n/**\n * ColorPicker component is a user interface to select and adjust color values. It provides supports for various\n * color specification like Red Green Blue, Hue Saturation Value and Hex codes.\n * ```html\n * \n * ```\n * ```typescript\n * \n * ```\n */\nvar ColorPicker = /** @__PURE__ @class */function (_super) {\n __extends$5(ColorPicker, _super);\n function ColorPicker(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.recentColors = [];\n return _this;\n }\n ColorPicker.prototype.preRender = function () {\n var ele = this.element;\n this.formElement = closest(this.element, 'form');\n if (this.formElement) {\n EventHandler.add(this.formElement, 'reset', this.formResetHandler, this);\n }\n var localeText = {\n Apply: 'Apply',\n Cancel: 'Cancel',\n ModeSwitcher: 'Switch Mode',\n RecentColors: 'Recent colors'\n };\n this.l10n = new L10n('colorpicker', localeText, this.locale);\n if (ele.getAttribute('ejs-for') && !ele.getAttribute('name')) {\n ele.setAttribute('name', ele.id);\n }\n };\n /**\n * To Initialize the component rendering\n *\n * @private\n * @returns {void}\n */\n ColorPicker.prototype.render = function () {\n this.initWrapper();\n if (this.inline) {\n this.createWidget();\n } else {\n this.createSplitBtn();\n }\n if (!this.enableOpacity) {\n addClass([this.container.parentElement], HIDEOPACITY);\n }\n this.renderComplete();\n };\n ColorPicker.prototype.initWrapper = function () {\n var wrapper = this.createElement('div', {\n className: 'e-' + this.getModuleName() + '-wrapper'\n });\n this.element.parentNode.insertBefore(wrapper, this.element);\n wrapper.appendChild(this.element);\n attributes(this.element, {\n 'tabindex': '-1',\n 'spellcheck': 'false',\n 'aria-label': 'colorpicker'\n });\n this.container = this.createElement('div', {\n className: CONTAINER\n });\n this.getWrapper().appendChild(this.container);\n var value = this.value ? this.roundValue(this.value).toLowerCase() : '#008000ff';\n if (this.noColor && this.mode === 'Palette' && this.value === '') {\n value = '';\n }\n var slicedValue = value.slice(0, 7);\n if (isNullOrUndefined(this.initialInputValue)) {\n this.initialInputValue = slicedValue;\n }\n this.element.value = slicedValue;\n if (this.enableOpacity) {\n this.setProperties({\n 'value': value\n }, true);\n } else {\n this.setProperties({\n 'value': slicedValue\n }, true);\n }\n if (this.enableRtl) {\n wrapper.classList.add(RTL$1);\n }\n if (this.cssClass) {\n addClass([wrapper], this.cssClass.replace(/\\s+/g, ' ').trim().split(' '));\n }\n this.tileRipple = rippleEffect(this.container, {\n selector: '.' + TILE\n });\n this.ctrlBtnRipple = rippleEffect(this.container, {\n selector: '.e-btn'\n });\n };\n ColorPicker.prototype.getWrapper = function () {\n return this.element.parentElement;\n };\n ColorPicker.prototype.createWidget = function () {\n if (this.mode === 'Palette') {\n this.createPalette();\n if (!this.inline) {\n this.firstPaletteFocus();\n }\n } else {\n this.createPicker();\n if (!this.inline) {\n this.getDragHandler().focus();\n }\n }\n this.isRgb = true;\n this.createInput();\n this.createCtrlBtn();\n if (!this.disabled) {\n this.wireEvents();\n }\n if (this.inline && this.disabled) {\n this.toggleDisabled(true);\n }\n if (Browser.isDevice) {\n this.refreshPopupPos();\n }\n };\n ColorPicker.prototype.createSplitBtn = function () {\n var _this = this;\n var splitButton = this.createElement('button', {\n className: 'e-split-colorpicker'\n });\n this.getWrapper().appendChild(splitButton);\n this.splitBtn = new SplitButton({\n iconCss: 'e-selected-color',\n target: this.container,\n disabled: this.disabled,\n enableRtl: this.enableRtl,\n createPopupOnClick: this.createPopupOnClick,\n open: this.onOpen.bind(this),\n click: function () {\n var ev = new MouseEvent('click', {\n bubbles: true,\n cancelable: false\n });\n _this.trigger('change', {\n currentValue: {\n hex: _this.value.slice(0, 7),\n rgba: _this.convertToRgbString(_this.hexToRgb(_this.value))\n },\n previousValue: {\n hex: null,\n rgba: null\n },\n value: _this.value,\n event: ev\n });\n }\n });\n this.splitBtn.createElement = this.createElement;\n this.splitBtn.appendTo(splitButton);\n this.splitBtn.element.setAttribute('aria-label', 'colorpicker');\n var preview = this.createElement('span', {\n className: SPLITPREVIEW\n });\n select('.e-selected-color', splitButton).appendChild(preview);\n preview.style.backgroundColor = this.convertToRgbString(this.hexToRgb(this.value));\n var popupEle = this.getPopupEle();\n addClass([popupEle], 'e-colorpicker-popup');\n if (this.cssClass) {\n addClass([popupEle], this.cssClass.replace(/\\s+/g, ' ').trim().split(' '));\n }\n if (Browser.isDevice && !this.createPopupOnClick) {\n var popupInst = this.getPopupInst();\n popupInst.relateTo = document.body;\n popupInst.position = {\n X: 'center',\n Y: 'center'\n };\n popupInst.targetType = 'container';\n popupInst.collision = {\n X: 'fit',\n Y: 'fit'\n };\n popupInst.offsetY = 4;\n popupEle.style.zIndex = getZindexPartial(this.splitBtn.element).toString();\n }\n this.bindCallBackEvent();\n };\n ColorPicker.prototype.onOpen = function () {\n this.trigger('open', {\n element: this.container\n });\n if (!Browser.isDevice) {\n var popupInst = this.getPopupInst();\n var collision = isCollide(popupInst.element);\n if (collision.length > 0) {\n popupInst.collision = {\n X: 'flip',\n Y: 'fit'\n };\n popupInst.position = {\n X: 'right',\n Y: 'bottom'\n };\n popupInst.targetType = 'container';\n }\n }\n };\n ColorPicker.prototype.getPopupInst = function () {\n return getInstance(this.getPopupEle(), Popup);\n };\n ColorPicker.prototype.bindCallBackEvent = function () {\n var _this = this;\n this.splitBtn.beforeOpen = function (args) {\n var callBackPromise = new Deferred();\n _this.trigger('beforeOpen', args, function (observeOpenArgs) {\n if (!observeOpenArgs.cancel) {\n var popupEle = _this.getPopupEle();\n popupEle.style.top = formatUnit(0 + pageYOffset);\n popupEle.style.left = formatUnit(0 + pageXOffset);\n popupEle.style.display = 'block';\n _this.createWidget();\n popupEle.style.display = '';\n if (Browser.isDevice) {\n if (_this.createPopupOnClick) {\n var popupInst = _this.getPopupInst();\n popupInst.relateTo = document.body;\n popupInst.position = {\n X: 'center',\n Y: 'center'\n };\n popupInst.targetType = 'container';\n popupInst.collision = {\n X: 'fit',\n Y: 'fit'\n };\n popupInst.offsetY = 4;\n popupEle.style.zIndex = getZindexPartial(_this.splitBtn.element).toString();\n }\n _this.modal = _this.createElement('div');\n _this.modal.className = 'e-' + _this.getModuleName() + ' e-modal';\n _this.modal.style.display = 'none';\n document.body.insertBefore(_this.modal, popupEle);\n document.body.className += ' e-colorpicker-overflow';\n _this.modal.style.display = 'block';\n _this.modal.style.zIndex = (Number(popupEle.style.zIndex) - 1).toString();\n }\n }\n args.cancel = observeOpenArgs.cancel;\n callBackPromise.resolve(observeOpenArgs);\n });\n return callBackPromise;\n };\n this.splitBtn.beforeClose = function (args) {\n var callBackPromise = new Deferred();\n if (!isNullOrUndefined(args.event)) {\n var beforeCloseArgs = {\n element: _this.container,\n event: args.event,\n cancel: false\n };\n _this.trigger('beforeClose', beforeCloseArgs, function (observedCloseArgs) {\n if (Browser.isDevice && args.event.target === _this.modal) {\n observedCloseArgs.cancel = true;\n }\n if (!observedCloseArgs.cancel) {\n _this.onPopupClose();\n }\n args.cancel = observedCloseArgs.cancel;\n callBackPromise.resolve(observedCloseArgs);\n });\n } else {\n callBackPromise.resolve(args);\n }\n return callBackPromise;\n };\n };\n ColorPicker.prototype.onPopupClose = function () {\n this.unWireEvents();\n this.destroyOtherComp();\n this.container.style.width = '';\n select('.' + SPLITPREVIEW, this.splitBtn.element).style.backgroundColor = this.convertToRgbString(this.hexToRgb(this.value));\n this.container.innerHTML = '';\n removeClass([this.container], [PICKERCONTENT, PALETTECONTENT]);\n if (Browser.isDevice && this.modal) {\n removeClass([document.body], 'e-colorpicker-overflow');\n this.modal.style.display = 'none';\n this.modal.outerHTML = '';\n this.modal = null;\n }\n };\n ColorPicker.prototype.createPalette = function () {\n classList(this.container, [PALETTECONTENT], [PICKERCONTENT]);\n if (this.presetColors) {\n var paletteGroup = this.createElement('div', {\n className: 'e-custom-palette'\n });\n this.appendElement(paletteGroup);\n var keys = Object.keys(this.presetColors);\n if (keys.length === 1) {\n this.appendPalette(this.presetColors[keys[0]], keys[0], paletteGroup);\n } else {\n for (var i = 0, len = keys.length; i < len; i++) {\n this.appendPalette(this.presetColors[keys[i]], keys[i], paletteGroup);\n }\n }\n if (selectAll('.e-row', paletteGroup).length > 10) {\n addClass([paletteGroup], 'e-palette-group');\n }\n } else {\n this.appendPalette(presets.default, 'default');\n }\n if (this.mode === 'Palette' && !this.modeSwitcher && this.noColor) {\n this.setNoColor();\n }\n if (this.showRecentColors && this.recentColors && this.recentColors.length > 0) {\n this.renderRecentColor();\n }\n var width = parseInt(getComputedStyle(this.container).borderBottomWidth, 10);\n this.container.style.width = formatUnit(this.container.children[0].offsetWidth + width + width);\n this.rgb = this.hexToRgb(this.roundValue(this.value));\n this.hsv = this.rgbToHsv.apply(this, this.rgb);\n };\n ColorPicker.prototype.renderRecentColor = function () {\n var _this = this;\n var recentClrWpr = this.container.querySelector('.e-clr-pal-rec-wpr');\n if (recentClrWpr) {\n detach(recentClrWpr);\n }\n var recentColorWrapper = this.createElement('div', {\n className: 'e-clr-pal-rec-wpr'\n });\n var refEle = this.container.querySelector('.e-switch-ctrl-btn');\n if (refEle) {\n this.container.insertBefore(recentColorWrapper, refEle);\n } else {\n this.container.appendChild(recentColorWrapper);\n }\n var recentClrSpan = this.createElement('label', {\n className: 'e-recent-clr-span'\n });\n recentClrSpan.textContent = this.l10n.getConstant('RecentColors');\n recentColorWrapper.appendChild(recentClrSpan);\n if (this.recentColors.length > 0) {\n this.recentColors = this.recentColors.filter(function (item, index) {\n return _this.recentColors.indexOf(item) === index;\n });\n while (this.recentColors.length > 10) {\n this.recentColors.pop();\n }\n this.appendPalette(this.recentColors, 'recent-color', recentColorWrapper);\n }\n };\n ColorPicker.prototype.firstPaletteFocus = function () {\n if (!select('.' + SELECT, this.container.children[0])) {\n selectAll('.' + PALETTES, this.container)[0].focus();\n }\n };\n ColorPicker.prototype.appendPalette = function (colors, key, refEle) {\n var palette = this.createElement('div', {\n className: PALETTES,\n attrs: {\n 'tabindex': '0',\n 'role': 'grid'\n }\n });\n if (key === 'recent-color') {\n palette.classList.add('e-recent-palette');\n }\n if (refEle) {\n refEle.appendChild(palette);\n } else {\n this.appendElement(palette);\n }\n var row;\n var tile;\n var roundedColor;\n for (var i = 0, len = colors.length; i < len; i++) {\n if (i === 0 || i % this.columns === 0) {\n row = this.createElement('div', {\n className: 'e-row',\n attrs: {\n 'role': 'row'\n }\n });\n palette.appendChild(row);\n }\n roundedColor = this.roundValue(colors[i]).toLowerCase();\n tile = this.createElement('span', {\n className: TILE,\n attrs: {\n 'role': 'gridcell',\n 'aria-label': roundedColor,\n 'aria-selected': 'false'\n }\n });\n this.trigger('beforeTileRender', {\n element: tile,\n presetName: key,\n value: colors[i]\n });\n row.appendChild(tile);\n if (this.value === roundedColor && key !== 'recent-color') {\n this.addTileSelection(tile);\n palette.focus();\n }\n tile.style.backgroundColor = this.convertToRgbString(this.hexToRgb(roundedColor));\n }\n };\n ColorPicker.prototype.setNoColor = function () {\n var noColorEle = this.container.querySelector('.e-row').children[0];\n noColorEle.classList.add(NOCOLOR);\n if (!this.value) {\n noColorEle.classList.add(SELECT);\n closest(noColorEle, '.' + PALETTES).focus();\n }\n ['aria-selected', 'aria-label'].forEach(function (attr) {\n noColorEle.removeAttribute(attr);\n });\n noColorEle.style.backgroundColor = '';\n };\n ColorPicker.prototype.appendElement = function (ele, insertPos) {\n if (insertPos === void 0) {\n insertPos = 0;\n }\n var refEle = this.container.children[insertPos];\n if (refEle) {\n this.container.insertBefore(ele, refEle);\n } else {\n this.container.appendChild(ele);\n }\n };\n ColorPicker.prototype.addTileSelection = function (ele) {\n if (ele) {\n ele.classList.add(SELECT);\n ele.setAttribute('aria-selected', 'true');\n }\n };\n ColorPicker.prototype.createPicker = function () {\n classList(this.container, [PICKERCONTENT], [PALETTECONTENT]);\n var hsvContainer = this.createElement('div', {\n className: HSVCONTAINER\n });\n this.appendElement(hsvContainer);\n hsvContainer.appendChild(this.createElement('div', {\n className: HSVAREA\n }));\n var dragHandler = this.createElement('span', {\n className: HANDLER,\n attrs: {\n 'tabindex': '0'\n }\n });\n hsvContainer.appendChild(dragHandler);\n if (this.value === null || this.value === '') {\n this.value = '#008000ff';\n }\n this.rgb = this.hexToRgb(this.value);\n this.hsv = this.rgbToHsv.apply(this, this.rgb);\n this.setHsvContainerBg();\n this.setHandlerPosition();\n this.createSlider();\n this.createDragTooltip();\n };\n ColorPicker.prototype.setHsvContainerBg = function (h) {\n if (h === void 0) {\n h = this.hsv[0];\n }\n this.getHsvContainer().style.backgroundColor = this.convertToRgbString(this.hsvToRgb(h, 100, 100, 1));\n };\n ColorPicker.prototype.getHsvContainer = function () {\n return select('.' + HSVCONTAINER, this.container);\n };\n ColorPicker.prototype.setHandlerPosition = function () {\n var dragHandler = this.getDragHandler();\n var hsvArea = select('.' + HSVAREA, this.container);\n if (this.enableRtl) {\n dragHandler.style.left = formatUnit((hsvArea.offsetWidth - dragHandler.offsetWidth / 2.5) * Math.abs(100 - this.hsv[1]) / 100);\n } else {\n dragHandler.style.left = formatUnit((hsvArea.offsetWidth - dragHandler.offsetWidth / 2.5) * this.hsv[1] / 100);\n }\n dragHandler.style.top = formatUnit((hsvArea.offsetHeight - dragHandler.offsetHeight / 2.5) * (100 - this.hsv[2]) / 100);\n };\n ColorPicker.prototype.createSlider = function () {\n var sliderPreviewWrapper = this.createElement('div', {\n className: 'e-slider-preview'\n });\n this.appendElement(sliderPreviewWrapper, 1);\n this.createPreview(sliderPreviewWrapper);\n var sliderWrapper = this.createElement('div', {\n className: 'e-colorpicker-slider'\n });\n sliderPreviewWrapper.insertBefore(sliderWrapper, sliderPreviewWrapper.children[0]);\n var slider = this.createElement('div', {\n className: 'e-hue-slider'\n });\n sliderWrapper.appendChild(slider);\n this.hueSlider = new Slider({\n value: this.hsv[0],\n min: 0,\n max: 359,\n enableRtl: this.enableRtl,\n enabled: !this.disabled,\n change: this.hueChange.bind(this)\n });\n this.hueSlider.createElement = this.createElement;\n this.hueSlider.appendTo(slider);\n if (this.enableOpacity) {\n slider = this.createElement('div', {\n className: 'e-opacity-slider'\n });\n sliderWrapper.appendChild(slider);\n this.createOpacitySlider(slider);\n }\n };\n ColorPicker.prototype.createOpacitySlider = function (slider) {\n this.opacitySlider = new Slider({\n value: this.rgb[3] * 100,\n min: 0,\n max: 100,\n enableRtl: this.enableRtl,\n enabled: !this.disabled,\n change: this.opacityChange.bind(this)\n });\n this.opacitySlider.createElement = this.createElement;\n this.opacitySlider.appendTo(slider);\n var opacityBgTrack = this.createElement('div', {\n className: 'e-opacity-empty-track'\n });\n slider.appendChild(opacityBgTrack);\n this.updateOpacitySliderBg();\n };\n ColorPicker.prototype.updateOpacitySliderBg = function () {\n var direction = this.enableRtl ? 'to left' : 'to right';\n var opacityEle = select('.e-opacity-empty-track', this.opacitySlider.element);\n if (opacityEle) {\n opacityEle.style.background = 'linear-gradient(' + direction + ', rgba(' + this.rgb.slice(0, 3) + ', 0) 0%, ' + this.convertToRgbString(this.rgb.slice(0, 3)) + ' 100%)';\n }\n };\n ColorPicker.prototype.hueChange = function (args) {\n this.hsv[0] = args.value;\n this.setHsvContainerBg();\n this.convertToOtherFormat();\n };\n ColorPicker.prototype.opacityChange = function (args) {\n var value = args.value;\n var pValue = this.rgbToHex(this.rgb);\n this.hsv[3] = value / 100;\n this.rgb[3] = value / 100;\n var cValue = this.rgbToHex(this.rgb);\n this.updateOpacityInput(value);\n var rgb = this.convertToRgbString(this.rgb);\n this.updatePreview(rgb);\n this.triggerEvent(cValue, pValue, rgb);\n };\n ColorPicker.prototype.updateOpacityInput = function (value) {\n if (this.enableOpacity && !this.getWrapper().classList.contains(HIDEVALUE)) {\n var opacityTextBoxInst = getInstance(select('.' + OPACITY, this.container), NumericTextBox);\n opacityTextBoxInst.value = value;\n opacityTextBoxInst.dataBind();\n }\n };\n ColorPicker.prototype.createPreview = function (parentEle) {\n var previewContainer = this.createElement('div', {\n className: PREVIEW\n });\n parentEle.appendChild(previewContainer);\n var preview = this.createElement('span', {\n className: 'e-preview ' + CURRENT\n });\n previewContainer.appendChild(preview);\n var colorValue = this.convertToRgbString(this.rgb);\n preview.style.backgroundColor = colorValue;\n preview = this.createElement('span', {\n className: 'e-preview ' + PREVIOUS\n });\n previewContainer.appendChild(preview);\n preview.style.backgroundColor = colorValue;\n };\n ColorPicker.prototype.isPicker = function () {\n return !this.container.classList.contains(PALETTECONTENT);\n };\n ColorPicker.prototype.getPopupEle = function () {\n return this.container.parentElement;\n };\n ColorPicker.prototype.createNumericInput = function (element, value, label, max) {\n var _this = this;\n var numericInput = new NumericTextBox({\n value: value,\n placeholder: label,\n min: 0,\n max: max,\n format: '###.##',\n showSpinButton: false,\n floatLabelType: 'Always',\n enableRtl: this.enableRtl,\n enabled: !this.disabled,\n readonly: this.isPicker() ? false : true,\n change: function (args) {\n if (args.event) {\n _this.inputHandler(args.event);\n }\n }\n });\n numericInput.createElement = this.createElement;\n numericInput.appendTo(element);\n };\n ColorPicker.prototype.createInput = function () {\n var isPicker = this.isPicker();\n var wrapper = this.getWrapper();\n if (isPicker && !wrapper.classList.contains(HIDEVALUE) || !isPicker && wrapper.classList.contains(SHOWVALUE)) {\n var inputWrap = this.createElement('div', {\n className: INPUTWRAPPER\n });\n if (isPicker) {\n this.appendElement(inputWrap, 2);\n } else {\n this.appendElement(inputWrap, 1);\n }\n var container = this.createElement('div', {\n className: 'e-input-container'\n });\n inputWrap.appendChild(container);\n if (!wrapper.classList.contains(HIDEVALUESWITCH)) {\n this.appendValueSwitchBtn(inputWrap);\n }\n if (!wrapper.classList.contains(HIDEHEX)) {\n var hexInput = this.createElement('input', {\n className: HEX,\n attrs: {\n 'maxlength': '7',\n 'spellcheck': 'false',\n 'aria-label': 'HEX'\n }\n });\n container.appendChild(hexInput);\n Input.createInput({\n element: hexInput,\n floatLabelType: 'Always',\n properties: {\n placeholder: 'HEX',\n enableRtl: this.enableRtl,\n enabled: !this.disabled,\n readonly: this.isPicker() ? false : true\n }\n }, this.createElement);\n Input.setValue(this.value.slice(0, 7), hexInput);\n hexInput.addEventListener('input', this.inputHandler.bind(this));\n }\n if (!wrapper.classList.contains(HIDERGBA)) {\n var label = void 0;\n var value = void 0;\n if (this.isRgb) {\n label = 'RGB';\n value = this.rgb;\n } else {\n label = 'HSV';\n value = this.hsv;\n }\n var clsName = ['rh', 'gs', 'bv'];\n for (var i = 0; i < 3; i++) {\n this.createNumericInput(container.appendChild(this.createElement('input', {\n className: 'e-' + clsName[i] + '-value'\n })), value[i], label[i], 255);\n }\n if (this.enableOpacity) {\n this.appendOpacityValue(container);\n }\n }\n }\n };\n ColorPicker.prototype.appendOpacityValue = function (container) {\n this.createNumericInput(container.appendChild(this.createElement('input', {\n className: OPACITY\n })), this.rgb[3] * 100, 'A', 100);\n };\n ColorPicker.prototype.appendValueSwitchBtn = function (targetEle) {\n var valueSwitchBtn = this.createElement('button', {\n className: 'e-icons e-css e-btn e-flat e-icon-btn ' + FORMATSWITCH,\n attrs: {\n 'title': 'Toggle format'\n }\n });\n targetEle.appendChild(valueSwitchBtn);\n if (this.isPicker() && !this.getWrapper().classList.contains(HIDERGBA)) {\n valueSwitchBtn.addEventListener('click', this.formatSwitchHandler.bind(this));\n }\n };\n ColorPicker.prototype.createCtrlBtn = function () {\n if (this.modeSwitcher || this.showButtons) {\n this.l10n.setLocale(this.locale);\n var btnWrapper = this.createElement('div', {\n className: CTRLSWITCH\n });\n this.container.appendChild(btnWrapper);\n if (this.showButtons) {\n var controlBtnWrapper = this.createElement('div', {\n className: CTRLBTN\n });\n btnWrapper.appendChild(controlBtnWrapper);\n var apply = this.l10n.getConstant('Apply');\n controlBtnWrapper.appendChild(this.createElement('button', {\n innerHTML: apply,\n className: 'e-btn e-css e-flat e-primary e-small ' + APPLY,\n attrs: {\n 'title': apply\n }\n }));\n var cancel = this.l10n.getConstant('Cancel');\n controlBtnWrapper.appendChild(this.createElement('button', {\n innerHTML: cancel,\n className: 'e-btn e-css e-flat e-small ' + CANCEL,\n attrs: {\n 'title': cancel\n }\n }));\n }\n if (this.modeSwitcher) {\n this.appendModeSwitchBtn();\n }\n }\n };\n ColorPicker.prototype.appendModeSwitchBtn = function () {\n var modeSwitcher = this.createElement('button', {\n className: 'e-icons e-btn e-flat e-icon-btn ' + MODESWITCH,\n attrs: {\n title: this.l10n.getConstant('ModeSwitcher')\n }\n });\n select('.' + CTRLSWITCH, this.container).insertBefore(modeSwitcher, select('.' + CTRLBTN, this.container));\n };\n ColorPicker.prototype.createDragTooltip = function () {\n var _this = this;\n var tooltip = new Tooltip({\n opensOn: 'Custom',\n showTipPointer: false,\n cssClass: 'e-color-picker-tooltip',\n htmlAttributes: {\n title: 'tooltip'\n },\n beforeOpen: function (args) {\n _this.tooltipEle = args.element;\n },\n animation: {\n open: {\n effect: 'None'\n },\n close: {\n effect: 'None'\n }\n }\n });\n tooltip.createElement = this.createElement;\n tooltip.appendTo(this.container);\n tooltip.open(this.container);\n this.tooltipEle.style.zIndex = getZindexPartial(this.tooltipEle).toString();\n this.tooltipEle.setAttribute('aria-label', 'colorpicker-tooltip');\n select('.e-tip-content', this.tooltipEle).appendChild(this.createElement('div', {\n className: 'e-tip-transparent'\n }));\n };\n ColorPicker.prototype.getTooltipInst = function () {\n return getInstance(this.container, Tooltip);\n };\n ColorPicker.prototype.setTooltipOffset = function (value) {\n this.getTooltipInst().offsetY = value;\n };\n ColorPicker.prototype.toggleDisabled = function (enable) {\n if (enable) {\n this.getWrapper().classList.add(DISABLED$1);\n } else {\n this.getWrapper().classList.remove(DISABLED$1);\n }\n if (this.showButtons) {\n [].slice.call(selectAll('.e-btn', this.container)).forEach(function (ele) {\n if (enable) {\n attributes(ele, {\n 'disabled': ''\n });\n } else {\n ele.removeAttribute('disabled');\n }\n });\n }\n };\n ColorPicker.prototype.convertToRgbString = function (rgb) {\n return rgb.length ? rgb.length === 4 ? 'rgba(' + rgb.join() + ')' : 'rgb(' + rgb.join() + ')' : '';\n };\n ColorPicker.prototype.convertToHsvString = function (hsv) {\n return hsv.length === 4 ? 'hsva(' + hsv.join() + ')' : 'hsv(' + hsv.join() + ')';\n };\n ColorPicker.prototype.updateHsv = function () {\n this.hsv[1] = this.hsv[1] > 100 ? 100 : this.hsv[1];\n this.hsv[2] = this.hsv[2] > 100 ? 100 : this.hsv[2];\n this.setHandlerPosition();\n };\n ColorPicker.prototype.convertToOtherFormat = function (isKey, e) {\n if (isKey === void 0) {\n isKey = false;\n }\n var pValue = this.rgbToHex(this.rgb);\n this.rgb = this.hsvToRgb.apply(this, this.hsv);\n var cValue = this.rgbToHex(this.rgb);\n var rgba = this.convertToRgbString(this.rgb);\n this.updatePreview(rgba);\n this.updateInput(cValue);\n this.triggerEvent(cValue, pValue, rgba, isKey, e);\n };\n ColorPicker.prototype.updateInput = function (value) {\n var wrapper = this.getWrapper();\n if (!wrapper.classList.contains(HIDEVALUE)) {\n if (!wrapper.classList.contains(HIDEHEX)) {\n Input.setValue(value.substr(0, 7), select('.' + HEX, this.container));\n }\n if (!wrapper.classList.contains(HIDERGBA)) {\n if (this.isRgb) {\n this.updateValue(this.rgb, false);\n } else {\n this.updateValue(this.hsv, false);\n }\n }\n }\n };\n ColorPicker.prototype.updatePreview = function (value) {\n if (this.enableOpacity) {\n this.updateOpacitySliderBg();\n }\n select('.e-tip-transparent', this.tooltipEle).style.backgroundColor = value;\n select('.' + PREVIEW + ' .' + CURRENT, this.container).style.backgroundColor = value;\n select('.' + PREVIEW + ' .' + PREVIOUS, this.container).style.backgroundColor = this.convertToRgbString(this.hexToRgb(this.value));\n };\n ColorPicker.prototype.getDragHandler = function () {\n return select('.' + HANDLER, this.container);\n };\n ColorPicker.prototype.removeTileSelection = function () {\n var selectedEle = [].slice.call(selectAll('.' + SELECT, this.container));\n selectedEle.forEach(function (ele) {\n ele.classList.remove(SELECT);\n ele.setAttribute('aria-selected', 'false');\n });\n };\n ColorPicker.prototype.convertRgbToNumberArray = function (value) {\n return value.slice(value.indexOf('(') + 1, value.indexOf(')')).split(',').map(function (n, i) {\n return i !== 3 ? parseInt(n, 10) : parseFloat(n);\n });\n };\n /**\n * To get color value in specified type.\n *\n * @param {string} value - Specify the color value.\n * @param {string} type - Specify the type to which the specified color needs to be converted.\n * @method getValue\n * @returns {string} - Color value\n */\n ColorPicker.prototype.getValue = function (value, type) {\n if (!value) {\n value = this.value;\n }\n type = !type ? 'hex' : type.toLowerCase();\n if (value[0] === 'r') {\n var cValue = this.convertRgbToNumberArray(value);\n if (type === 'hex' || type === 'hexa') {\n var hex = this.rgbToHex(cValue);\n return type === 'hex' ? hex.slice(0, 7) : hex;\n } else {\n if (type === 'hsv') {\n return this.convertToHsvString(this.rgbToHsv.apply(this, cValue.slice(0, 3)));\n } else {\n if (type === 'hsva') {\n return this.convertToHsvString(this.rgbToHsv.apply(this, cValue));\n } else {\n return 'null';\n }\n }\n }\n } else {\n if (value[0] === 'h') {\n var cValue = this.hsvToRgb.apply(this, this.convertRgbToNumberArray(value));\n if (type === 'rgba') {\n return this.convertToRgbString(cValue);\n } else {\n if (type === 'hex' || type === 'hexa') {\n var hex = this.rgbToHex(cValue);\n return type === 'hex' ? hex.slice(0, 7) : hex;\n } else {\n if (type === 'rgb') {\n return this.convertToRgbString(cValue.slice(0, 3));\n } else {\n return 'null';\n }\n }\n }\n } else {\n value = this.roundValue(value);\n var rgb = this.hexToRgb(value);\n if (type === 'rgb' || type === 'hsv') {\n rgb = rgb.slice(0, 3);\n }\n if (type === 'rgba' || type === 'rgb') {\n return this.convertToRgbString(rgb);\n } else {\n if (type === 'hsva' || type === 'hsv') {\n return this.convertToHsvString(this.rgbToHsv.apply(this, rgb));\n } else {\n if (type === 'hex') {\n return value.slice(0, 7);\n } else {\n if (type === 'a') {\n return rgb[3].toString();\n } else {\n return 'null';\n }\n }\n }\n }\n }\n }\n };\n /**\n * To show/hide ColorPicker popup based on current state of the SplitButton.\n *\n * @method toggle\n * @returns {void}\n */\n ColorPicker.prototype.toggle = function () {\n if (this.container.parentElement.classList.contains('e-popup-close')) {\n this.splitBtn.toggle();\n } else {\n this.closePopup(null);\n }\n };\n /**\n * Get component name.\n *\n * @returns {string} - Module Name\n * @private\n */\n ColorPicker.prototype.getModuleName = function () {\n return 'colorpicker';\n };\n /**\n * Gets the properties to be maintained in the persisted state.\n *\n * @returns {string} - Persist data\n */\n ColorPicker.prototype.getPersistData = function () {\n return this.addOnPersist(['value']);\n };\n ColorPicker.prototype.wireEvents = function () {\n if (this.isPicker()) {\n var dragHandler = this.getDragHandler();\n EventHandler.add(dragHandler, 'keydown', this.pickerKeyDown, this);\n var ctrlBtn = select('.' + CTRLBTN, this.container);\n if (ctrlBtn) {\n EventHandler.add(ctrlBtn, 'keydown', this.ctrlBtnKeyDown, this);\n }\n EventHandler.add(this.getHsvContainer(), 'mousedown touchstart', this.handlerDown, this);\n if (this.modeSwitcher || this.showButtons) {\n this.addCtrlSwitchEvent();\n }\n EventHandler.add(select('.' + PREVIOUS, this.container), 'click', this.previewHandler, this);\n } else {\n EventHandler.add(this.container, 'click', this.paletteClickHandler, this);\n EventHandler.add(this.container, 'keydown', this.paletteKeyDown, this);\n }\n };\n ColorPicker.prototype.formResetHandler = function () {\n this.value = this.initialInputValue;\n attributes(this.element, {\n 'value': this.initialInputValue\n });\n };\n ColorPicker.prototype.addCtrlSwitchEvent = function () {\n var ctrlSwitchBtn = select('.' + CTRLSWITCH, this.container);\n if (ctrlSwitchBtn) {\n EventHandler.add(ctrlSwitchBtn, 'click', this.btnClickHandler, this);\n }\n };\n ColorPicker.prototype.ctrlBtnKeyDown = function (e) {\n if (e.keyCode === 13) {\n var applyBtn = select('.' + APPLY, this.container);\n if (applyBtn) {\n var cValue = this.rgbToHex(this.rgb);\n this.triggerChangeEvent(cValue);\n }\n this.splitBtn.element.focus();\n }\n };\n ColorPicker.prototype.pickerKeyDown = function (e) {\n switch (e.keyCode) {\n case 39:\n this.handlerDragPosition(1, this.enableRtl ? -1 : 1, e);\n break;\n case 37:\n this.handlerDragPosition(1, this.enableRtl ? 1 : -1, e);\n break;\n case 38:\n this.handlerDragPosition(2, 1, e);\n break;\n case 40:\n this.handlerDragPosition(2, -1, e);\n break;\n case 13:\n {\n e.preventDefault();\n var cValue = this.rgbToHex(this.rgb);\n this.enterKeyHandler(cValue);\n }\n }\n };\n ColorPicker.prototype.enterKeyHandler = function (value) {\n this.triggerChangeEvent(value);\n if (!this.inline) {\n this.splitBtn.element.focus();\n }\n };\n ColorPicker.prototype.closePopup = function (e) {\n var _this = this;\n var beforeCloseArgs = {\n element: this.container,\n event: e,\n cancel: false\n };\n this.trigger('beforeClose', beforeCloseArgs, function (observedcloseArgs) {\n if (!observedcloseArgs.cancel) {\n _this.splitBtn.toggle();\n _this.onPopupClose();\n }\n });\n };\n ColorPicker.prototype.triggerChangeEvent = function (value, e) {\n var hex = value.slice(0, 7);\n this.trigger('change', {\n currentValue: {\n hex: hex,\n rgba: this.convertToRgbString(this.rgb)\n },\n event: e,\n previousValue: {\n hex: this.value.slice(0, 7),\n rgba: this.convertToRgbString(this.hexToRgb(this.value))\n },\n value: this.enableOpacity ? value : hex\n });\n if (this.showRecentColors) {\n this.recentColors.unshift(hex);\n if (this.inline) {\n this.renderRecentColor();\n }\n }\n if (this.enableOpacity) {\n this.setProperties({\n 'value': value\n }, true);\n } else {\n this.setProperties({\n 'value': hex\n }, true);\n }\n this.element.value = hex ? hex : '#000000';\n };\n ColorPicker.prototype.handlerDragPosition = function (prob, value, e) {\n e.preventDefault();\n this.hsv[prob] += value * (e.ctrlKey ? 1 : 3);\n if (this.hsv[prob] < 0) {\n this.hsv[prob] = 0;\n }\n this.updateHsv();\n this.convertToOtherFormat(true, e);\n };\n ColorPicker.prototype.handlerDown = function (e) {\n e.preventDefault();\n if (e.type === 'mousedown') {\n this.clientX = Math.abs(e.pageX - pageXOffset);\n this.clientY = Math.abs(e.pageY - pageYOffset);\n this.setTooltipOffset(8);\n } else {\n this.clientX = Math.abs(e.changedTouches[0].pageX - pageXOffset);\n this.clientY = Math.abs(e.changedTouches[0].pageY - pageYOffset);\n this.setTooltipOffset(-8);\n }\n this.setHsv(this.clientX, this.clientY);\n this.getDragHandler().style.transition = 'left .4s cubic-bezier(.25, .8, .25, 1), top .4s cubic-bezier(.25, .8, .25, 1)';\n this.updateHsv();\n this.convertToOtherFormat(false, e);\n this.getDragHandler().focus();\n EventHandler.add(document, 'mousemove touchmove', this.handlerMove, this);\n EventHandler.add(document, 'mouseup touchend', this.handlerEnd, this);\n };\n ColorPicker.prototype.handlerMove = function (e) {\n if (e.type !== 'touchmove') {\n e.preventDefault();\n }\n var x;\n var y;\n if (e.type === 'mousemove') {\n x = Math.abs(e.pageX - pageXOffset);\n y = Math.abs(e.pageY - pageYOffset);\n } else {\n x = Math.abs(e.changedTouches[0].pageX - pageXOffset);\n y = Math.abs(e.changedTouches[0].pageY - pageYOffset);\n }\n this.setHsv(x, y);\n var dragHandler = this.getDragHandler();\n this.updateHsv();\n this.convertToOtherFormat(false, e);\n this.getTooltipInst().refresh(dragHandler);\n if (!this.tooltipEle.style.transform) {\n if (Math.abs(this.clientX - x) > 8 || Math.abs(this.clientY - y) > 8) {\n select('.' + HSVAREA, this.container).style.cursor = 'pointer';\n dragHandler.style.transition = 'none';\n if (!this.inline) {\n this.tooltipEle.style.zIndex = (parseInt(this.getPopupEle().style.zIndex, 10) + 1).toString();\n }\n this.tooltipEle.style.transform = 'rotate(45deg)';\n dragHandler.classList.add('e-hide-handler');\n }\n }\n };\n ColorPicker.prototype.setHsv = function (clientX, clientY) {\n var ele = select('.' + HSVAREA, this.container);\n var position = ele.getBoundingClientRect();\n if (this.enableRtl) {\n clientX = clientX > position.right ? 0 : Math.abs(clientX - position.right);\n } else {\n clientX = clientX > position.left ? Math.abs(clientX - position.left) : 0;\n }\n clientY = clientY > position.top ? Math.abs(clientY - position.top) : 0;\n this.hsv[2] = Math.round(Number(100 * (ele.offsetHeight - Math.max(0, Math.min(ele.offsetHeight, clientY - ele.offsetTop))) / ele.offsetHeight) * 10) / 10;\n this.hsv[1] = Math.round(Number(100 * Math.max(0, Math.min(ele.offsetWidth, clientX - ele.offsetLeft)) / ele.offsetWidth) * 10) / 10;\n };\n ColorPicker.prototype.handlerEnd = function (e) {\n if (e.type !== 'touchend') {\n e.preventDefault();\n }\n EventHandler.remove(document, 'mousemove touchmove', this.handlerMove);\n EventHandler.remove(document, 'mouseup touchend', this.handlerEnd);\n var dragHandler = this.getDragHandler();\n select('.' + HSVAREA, this.container).style.cursor = '';\n if (this.tooltipEle.style.transform) {\n this.tooltipEle.style.transform = '';\n dragHandler.classList.remove('e-hide-handler');\n }\n if (!this.inline && !this.showButtons) {\n this.closePopup(e);\n }\n };\n ColorPicker.prototype.btnClickHandler = function (e) {\n var target = e.target;\n if (closest(target, '.' + MODESWITCH)) {\n e.stopPropagation();\n this.switchToPalette();\n } else {\n if (target.classList.contains(APPLY) || target.classList.contains(CANCEL)) {\n this.ctrlBtnClick(target, e);\n }\n }\n };\n ColorPicker.prototype.switchToPalette = function () {\n this.trigger('beforeModeSwitch', {\n element: this.container,\n mode: 'Palette'\n });\n this.unWireEvents();\n this.destroyOtherComp();\n detach(select('.e-slider-preview', this.container));\n if (!this.getWrapper().classList.contains(HIDEVALUE)) {\n remove(select('.' + INPUTWRAPPER, this.container));\n }\n detach(this.getHsvContainer());\n this.createPalette();\n this.firstPaletteFocus();\n this.createInput();\n this.refreshPopupPos();\n //for image editor popup position refreshing\n if (this.element.parentElement && this.element.parentElement.parentElement && this.element.parentElement.parentElement.classList.contains('e-ie-ddb-popup')) {\n this.refreshImageEditorPopupPos();\n }\n this.wireEvents();\n this.trigger('onModeSwitch', {\n element: this.container,\n mode: 'Palette'\n });\n };\n //for image editor popup position refreshing\n ColorPicker.prototype.refreshImageEditorPopupPos = function () {\n if (Browser.isDevice) {\n var popupEle = this.getPopupEle();\n popupEle.style.left = formatUnit(0 + pageXOffset);\n popupEle.style.top = formatUnit(0 + pageYOffset);\n var btnElem = document.querySelector(\"#\" + this.element.parentElement.parentElement.id.split('-popup')[0]);\n if (btnElem) {\n //eslint-disable-next-line @typescript-eslint/no-explicit-any\n popupEle.parentElement.ej2_instances[0].refreshPosition(btnElem);\n }\n }\n };\n ColorPicker.prototype.refreshPopupPos = function () {\n if (!this.inline) {\n var popupEle = this.getPopupEle();\n popupEle.style.left = formatUnit(0 + pageXOffset);\n popupEle.style.top = formatUnit(0 + pageYOffset);\n this.getPopupInst().refreshPosition(this.splitBtn.element.parentElement);\n }\n };\n ColorPicker.prototype.formatSwitchHandler = function () {\n if (this.isRgb) {\n this.updateValue(this.hsv, true, 3, [360, 100, 100]);\n this.isRgb = false;\n } else {\n this.updateValue(this.rgb, true, 2);\n this.isRgb = true;\n }\n };\n ColorPicker.prototype.updateValue = function (value, format, idx, max) {\n var clsName = ['e-rh-value', 'e-gs-value', 'e-bv-value'];\n var inst;\n for (var i = 0, len = clsName.length; i < len; i++) {\n inst = getInstance(select('.' + clsName[i], this.container), NumericTextBox);\n inst.value = Math.round(value[i]);\n if (format) {\n inst.placeholder = clsName[i].substr(idx, 1).toUpperCase();\n inst.max = max ? max[i] : 255;\n }\n inst.dataBind();\n }\n };\n ColorPicker.prototype.previewHandler = function (e) {\n var target = e.target;\n var pValue = this.rgbToHex(this.rgb);\n this.rgb = this.convertRgbToNumberArray(target.style.backgroundColor);\n if (!this.rgb[3]) {\n this.rgb[3] = 1;\n }\n var cValue = this.rgbToHex(this.rgb);\n var hsv = this.rgbToHsv.apply(this, this.rgb);\n if (hsv[0] !== this.hsv[0]) {\n this.hueSlider.setProperties({\n 'value': hsv[0]\n }, true);\n this.hueSlider.refresh();\n }\n this.setHsvContainerBg(hsv[0]);\n if (this.enableOpacity && hsv[3] !== this.hsv[3]) {\n this.opacitySlider.setProperties({\n 'value': hsv[3] * 100\n }, true);\n this.opacitySlider.refresh();\n this.updateOpacitySliderBg();\n }\n this.hsv = hsv;\n this.setHandlerPosition();\n this.updateInput(cValue);\n select('.' + PREVIEW + ' .' + CURRENT, this.container).style.backgroundColor = this.convertToRgbString(this.rgb);\n this.triggerEvent(cValue, pValue, this.convertToRgbString(this.rgb), false, e);\n };\n ColorPicker.prototype.paletteClickHandler = function (e) {\n e.preventDefault();\n var target = e.target;\n if (target.classList.contains(TILE)) {\n this.removeTileSelection();\n this.addTileSelection(target);\n if (target.classList.contains(NOCOLOR)) {\n this.noColorTile();\n } else {\n var cValue = target.getAttribute('aria-label');\n var pValue = this.rgbToHex(this.rgb);\n this.rgb = this.hexToRgb(this.roundValue(cValue));\n this.hsv = this.rgbToHsv.apply(this, this.rgb);\n if (this.getWrapper().classList.contains(SHOWVALUE)) {\n this.updateInput(cValue);\n }\n this.triggerEvent(cValue, pValue, this.convertToRgbString(this.rgb), false, e);\n }\n if (!this.inline && !this.showButtons) {\n this.closePopup(e);\n }\n } else {\n if (closest(target, '.' + MODESWITCH)) {\n this.switchToPicker();\n } else {\n if (target.classList.contains(APPLY) || target.classList.contains(CANCEL)) {\n this.ctrlBtnClick(target, e);\n } else {\n if (this.getWrapper().classList.contains(SHOWVALUE) && closest(target, '.' + FORMATSWITCH)) {\n this.formatSwitchHandler();\n }\n }\n }\n }\n };\n ColorPicker.prototype.noColorTile = function (isKey) {\n if (isKey === void 0) {\n isKey = false;\n }\n var pValue = this.rgbToHex(this.rgb);\n this.rgb = [];\n this.hsv = [];\n this.triggerEvent('', pValue, '', isKey);\n };\n ColorPicker.prototype.switchToPicker = function () {\n var wrapper = this.getWrapper();\n this.trigger('beforeModeSwitch', {\n element: this.container,\n mode: 'Picker'\n });\n this.unWireEvents();\n [].slice.call(selectAll('.' + PALETTES, this.container)).forEach(function (ele) {\n detach(ele);\n });\n if (this.container.querySelector('.e-clr-pal-rec-wpr')) {\n detach(this.container.querySelector('.e-clr-pal-rec-wpr'));\n }\n if (wrapper.classList.contains(SHOWVALUE)) {\n detach(select('.' + INPUTWRAPPER, this.container));\n }\n this.container.style.width = '';\n var grpEle = select('.e-custom-palette', this.container);\n if (this.presetColors) {\n remove(grpEle);\n }\n this.createPicker();\n this.getDragHandler().focus();\n this.createInput();\n this.refreshPopupPos();\n //for image editor popup position refreshing\n if (this.element.parentElement && this.element.parentElement.parentElement && this.element.parentElement.parentElement.classList.contains('e-ie-ddb-popup')) {\n this.refreshImageEditorPopupPos();\n }\n this.wireEvents();\n this.trigger('onModeSwitch', {\n element: this.container,\n mode: 'Picker'\n });\n };\n ColorPicker.prototype.ctrlBtnClick = function (ele, e) {\n if (ele.classList.contains(APPLY)) {\n var cValue = this.rgbToHex(this.rgb);\n this.triggerChangeEvent(cValue, e);\n }\n if (!this.inline) {\n this.closePopup(e);\n this.splitBtn.element.focus();\n } else if (ele.classList.contains(CANCEL)) {\n var beforeCloseArgs = {\n element: this.container,\n event: e,\n cancel: false\n };\n this.trigger('beforeClose', beforeCloseArgs);\n }\n };\n ColorPicker.prototype.paletteKeyDown = function (e) {\n var target = e.target;\n if (!target.classList.contains(PALETTES)) {\n return;\n }\n var selectedEle;\n var idx;\n var tiles = [].slice.call(selectAll('.' + TILE, target));\n var prevSelectedEle = tiles.filter(function (tile) {\n return tile.classList.contains('e-selected');\n }).pop();\n switch (!e.altKey && e.keyCode) {\n case 39:\n e.preventDefault();\n selectedEle = prevSelectedEle ? tiles[this.tilePosition(tiles, prevSelectedEle, this.enableRtl ? -1 : 1)] : tiles[this.enableRtl ? tiles.length - 1 : 0];\n this.keySelectionChanges(selectedEle);\n break;\n case 37:\n e.preventDefault();\n selectedEle = prevSelectedEle ? tiles[this.tilePosition(tiles, prevSelectedEle, this.enableRtl ? 1 : -1)] : tiles[this.enableRtl ? 0 : tiles.length - 1];\n this.keySelectionChanges(selectedEle);\n break;\n case 38:\n e.preventDefault();\n idx = prevSelectedEle ? this.tilePosition(tiles, prevSelectedEle, -this.columns) : 0;\n selectedEle = tiles[idx] ? tiles[idx] : tiles[idx - this.columns];\n this.keySelectionChanges(selectedEle);\n break;\n case 40:\n e.preventDefault();\n idx = prevSelectedEle ? this.tilePosition(tiles, prevSelectedEle, this.columns) : tiles.length - 1;\n if (tiles[idx]) {\n selectedEle = tiles[idx];\n } else {\n idx %= tiles.length;\n idx += tiles[tiles.length - 1].parentElement.childElementCount;\n selectedEle = tiles[idx];\n }\n this.keySelectionChanges(selectedEle);\n break;\n case 13:\n e.preventDefault();\n if (prevSelectedEle) {\n var cValue = prevSelectedEle.getAttribute('aria-label');\n this.enterKeyHandler(cValue ? cValue : '');\n }\n break;\n }\n };\n ColorPicker.prototype.keySelectionChanges = function (newEle) {\n this.removeTileSelection();\n this.addTileSelection(newEle);\n if (newEle.classList.contains(NOCOLOR)) {\n this.noColorTile(true);\n } else {\n var cValue = newEle.getAttribute('aria-label');\n var pValue = this.rgbToHex(this.rgb);\n this.rgb = this.hexToRgb(cValue);\n this.hsv = this.rgbToHsv.apply(this, this.rgb);\n if (this.getWrapper().classList.contains(SHOWVALUE)) {\n this.updateInput(cValue);\n }\n this.triggerEvent(cValue, pValue, this.convertToRgbString(this.rgb), true);\n }\n };\n ColorPicker.prototype.tilePosition = function (items, element, cIdx) {\n items = Array.prototype.slice.call(items);\n var n = items.length;\n var emptyCount = this.columns - items[n - 1].parentElement.childElementCount;\n var idx = items.indexOf(element);\n idx += cIdx;\n if (idx < 0) {\n idx += n + emptyCount;\n } else {\n idx %= n + emptyCount;\n }\n return idx;\n };\n ColorPicker.prototype.inputHandler = function (e) {\n var target = e.target;\n if (!target.value.length) {\n return;\n }\n var hsv;\n var pValue;\n var label = select('.e-float-text', target.parentElement).textContent;\n switch (label) {\n case 'HEX':\n {\n var value = '';\n if (target.value[0] === '#' && target.value.length !== 5 || target.value[0] !== '#' && target.value.length !== 4) {\n value = this.roundValue(target.value);\n }\n if (value.length === 9) {\n pValue = this.rgbToHex(this.rgb);\n this.rgb = this.hexToRgb(value + value.substr(-2));\n this.inputValueChange(this.rgbToHsv.apply(this, this.rgb), pValue, target.value, e);\n } else {\n return;\n }\n break;\n }\n case 'R':\n if (this.rgb[0] !== Number(target.value)) {\n pValue = this.rgbToHex(this.rgb);\n this.rgb[0] = Number(target.value);\n hsv = this.rgbToHsv.apply(this, this.rgb);\n this.inputValueChange(hsv, pValue, null, e);\n }\n break;\n case 'G':\n if (this.rgb[1] !== Number(target.value)) {\n pValue = this.rgbToHex(this.rgb);\n this.rgb[1] = Number(target.value);\n hsv = this.rgbToHsv.apply(this, this.rgb);\n this.inputValueChange(hsv, pValue, null, e);\n }\n break;\n case 'B':\n if (this.rgb[2] !== Number(target.value)) {\n pValue = this.rgbToHex(this.rgb);\n this.rgb[2] = Number(target.value);\n hsv = this.rgbToHsv.apply(this, this.rgb);\n this.inputValueChange(hsv, pValue, null, e);\n }\n break;\n case 'H':\n this.hueSlider.value = Number(target.value);\n break;\n case 'S':\n if (this.hsv[1] !== Number(target.value)) {\n this.hsv[1] = Number(target.value);\n this.updateHsv();\n this.convertToOtherFormat(false, e);\n }\n break;\n case 'V':\n if (this.hsv[2] !== Number(target.value)) {\n this.hsv[2] = Number(target.value);\n this.updateHsv();\n this.convertToOtherFormat(false, e);\n }\n break;\n case 'A':\n this.opacitySlider.value = Number(target.value);\n break;\n }\n };\n ColorPicker.prototype.inputValueChange = function (hsv, pValue, value, e) {\n if (hsv[0] !== this.hsv[0]) {\n this.hueSlider.setProperties({\n 'value': hsv[0]\n }, true);\n this.hueSlider.refresh();\n this.setHsvContainerBg(hsv[0]);\n }\n this.hsv = hsv;\n var cValue = this.rgbToHex(this.rgb);\n this.setHandlerPosition();\n this.updateInput(value ? value : cValue);\n var rgba = this.convertToRgbString(this.rgb);\n this.updatePreview(rgba);\n this.triggerEvent(cValue, pValue, rgba, false, e);\n };\n ColorPicker.prototype.triggerEvent = function (cValue, pValue, rgba, isKey, e) {\n if (isKey === void 0) {\n isKey = false;\n }\n var hex = cValue.slice(0, 7);\n if (isNullOrUndefined(e)) {\n e = new MouseEvent('click', {\n bubbles: true,\n cancelable: false\n });\n }\n if (!this.showButtons && !isKey) {\n this.trigger('change', {\n currentValue: {\n hex: hex,\n rgba: rgba\n },\n event: e,\n previousValue: {\n hex: this.value.slice(0, 7),\n rgba: this.convertToRgbString(this.hexToRgb(this.value))\n },\n value: cValue\n });\n if (this.showRecentColors) {\n this.recentColors.unshift(hex);\n if (this.inline) {\n this.renderRecentColor();\n }\n }\n if (this.enableOpacity) {\n this.setProperties({\n 'value': cValue\n }, true);\n } else {\n this.setProperties({\n 'value': hex\n }, true);\n }\n this.element.value = hex ? hex : '#000000';\n } else {\n this.trigger('select', {\n currentValue: {\n hex: hex,\n rgba: rgba\n },\n event: e,\n previousValue: {\n hex: pValue.slice(0, 7),\n rgba: this.convertToRgbString(this.hexToRgb(pValue))\n }\n });\n }\n };\n /**\n * Removes the component from the DOM and detaches all its related event handlers.\n * Also it maintains the initial input element from the DOM.\n *\n * @method destroy\n * @returns {void}\n */\n ColorPicker.prototype.destroy = function () {\n var _this = this;\n var wrapper = this.getWrapper();\n _super.prototype.destroy.call(this);\n ['tabindex', 'spellcheck'].forEach(function (attr) {\n _this.element.removeAttribute(attr);\n });\n if (this.inline) {\n this.unWireEvents();\n this.destroyOtherComp();\n } else {\n if (this.isPopupOpen()) {\n this.unWireEvents();\n this.destroyOtherComp();\n }\n this.splitBtn.destroy();\n this.splitBtn = null;\n }\n this.tileRipple();\n this.tileRipple = null;\n this.ctrlBtnRipple();\n this.ctrlBtnRipple = null;\n if (this.element.nextElementSibling) {\n detach(this.element.nextElementSibling);\n }\n if (wrapper) {\n wrapper.parentElement.insertBefore(this.element, wrapper);\n detach(wrapper);\n }\n this.container = null;\n if (this.formElement) {\n EventHandler.remove(this.formElement, 'reset', this.formResetHandler);\n }\n };\n ColorPicker.prototype.destroyOtherComp = function () {\n if (this.isPicker()) {\n var popup = closest(this.hueSlider.element, '.e-color-picker');\n var numericElemColl = popup.querySelectorAll('.e-numerictextbox');\n for (var i = 0; i < numericElemColl.length; i++) {\n getInstance(numericElemColl[i], NumericTextBox).destroy();\n }\n this.hueSlider.destroy();\n if (this.enableOpacity) {\n this.opacitySlider.destroy();\n this.opacitySlider = null;\n }\n this.hueSlider = null;\n var tooltipInst = this.getTooltipInst();\n tooltipInst.close();\n tooltipInst.destroy();\n this.tooltipEle = null;\n }\n };\n ColorPicker.prototype.isPopupOpen = function () {\n return this.getPopupEle().classList.contains('e-popup-open');\n };\n ColorPicker.prototype.unWireEvents = function () {\n if (this.isPicker()) {\n var dragHandler = this.getDragHandler();\n EventHandler.remove(dragHandler, 'keydown', this.pickerKeyDown);\n var ctrlBtn = select('.' + CTRLBTN, this.container);\n if (ctrlBtn) {\n EventHandler.remove(ctrlBtn, 'keydown', this.ctrlBtnKeyDown);\n }\n EventHandler.remove(this.getHsvContainer(), 'mousedown touchstart', this.handlerDown);\n if (this.modeSwitcher || this.showButtons) {\n EventHandler.remove(select('.' + CTRLSWITCH, this.container), 'click', this.btnClickHandler);\n }\n EventHandler.remove(select('.' + PREVIOUS, this.container), 'click', this.previewHandler);\n } else {\n EventHandler.remove(this.container, 'click', this.paletteClickHandler);\n EventHandler.remove(this.container, 'keydown', this.paletteKeyDown);\n }\n };\n ColorPicker.prototype.roundValue = function (value) {\n if (!value) {\n return '';\n }\n if (value[0] !== '#') {\n value = '#' + value;\n }\n var len = value.length;\n if (len === 4) {\n value += 'f';\n len = 5;\n }\n if (len === 5) {\n var tempValue = '';\n for (var i = 1, len_1 = value.length; i < len_1; i++) {\n tempValue += value.charAt(i) + value.charAt(i);\n }\n value = '#' + tempValue;\n len = 9;\n }\n if (len === 7) {\n value += 'ff';\n }\n return value;\n };\n ColorPicker.prototype.hexToRgb = function (hex) {\n if (!hex) {\n return [];\n }\n hex = hex.trim();\n if (hex.length !== 9) {\n hex = this.roundValue(hex);\n }\n var opacity = Number((parseInt(hex.slice(-2), 16) / 255).toFixed(2));\n hex = hex.slice(1, 7);\n var bigInt = parseInt(hex, 16);\n var h = [];\n h.push(bigInt >> 16 & 255);\n h.push(bigInt >> 8 & 255);\n h.push(bigInt & 255);\n h.push(opacity);\n return h;\n };\n ColorPicker.prototype.rgbToHsv = function (r, g, b, opacity) {\n if (this.rgb && !this.rgb.length) {\n return [];\n }\n r /= 255;\n g /= 255;\n b /= 255;\n var max = Math.max(r, g, b);\n var min = Math.min(r, g, b);\n var h;\n var v = max;\n var d = max - min;\n var s = max === 0 ? 0 : d / max;\n if (max === min) {\n h = 0;\n } else {\n switch (max) {\n case r:\n h = (g - b) / d + (g < b ? 6 : 0);\n break;\n case g:\n h = (b - r) / d + 2;\n break;\n case b:\n h = (r - g) / d + 4;\n break;\n }\n h /= 6;\n }\n var hsv = [Math.round(h * 360), Math.round(s * 1000) / 10, Math.round(v * 1000) / 10];\n if (!isNullOrUndefined(opacity)) {\n hsv.push(opacity);\n }\n return hsv;\n };\n ColorPicker.prototype.hsvToRgb = function (h, s, v, opacity) {\n var r;\n var g;\n var b;\n s /= 100;\n v /= 100;\n if (s === 0) {\n r = g = b = v;\n return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255), opacity];\n }\n h /= 60;\n var i = Math.floor(h);\n var f = h - i;\n var p = v * (1 - s);\n var q = v * (1 - s * f);\n var t = v * (1 - s * (1 - f));\n switch (i) {\n case 0:\n r = v;\n g = t;\n b = p;\n break;\n case 1:\n r = q;\n g = v;\n b = p;\n break;\n case 2:\n r = p;\n g = v;\n b = t;\n break;\n case 3:\n r = p;\n g = q;\n b = v;\n break;\n case 4:\n r = t;\n g = p;\n b = v;\n break;\n default:\n r = v;\n g = p;\n b = q;\n }\n var rgb = [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)];\n if (!isNullOrUndefined(opacity)) {\n rgb.push(opacity);\n }\n return rgb;\n };\n ColorPicker.prototype.rgbToHex = function (rgb) {\n return rgb.length ? '#' + this.hex(rgb[0]) + this.hex(rgb[1]) + this.hex(rgb[2]) + (!isNullOrUndefined(rgb[3]) ? rgb[3] !== 0 ? (Math.round(rgb[3] * 255) + 0x10000).toString(16).substr(-2) : '00' : '') : '';\n };\n ColorPicker.prototype.hex = function (x) {\n return ('0' + x.toString(16)).slice(-2);\n };\n ColorPicker.prototype.changeModeSwitcherProp = function (prop) {\n var ctrlSwitchWrapper = select('.' + CTRLSWITCH, this.container);\n if (prop) {\n if (ctrlSwitchWrapper) {\n this.appendModeSwitchBtn();\n } else {\n this.createCtrlBtn();\n if (this.isPicker() && !this.disabled) {\n this.addCtrlSwitchEvent();\n }\n }\n } else {\n if (ctrlSwitchWrapper) {\n if (this.showButtons) {\n detach(select('.' + MODESWITCH, ctrlSwitchWrapper));\n } else {\n remove(ctrlSwitchWrapper);\n }\n }\n }\n };\n ColorPicker.prototype.changeShowBtnProps = function (prop) {\n var ctrlBtnWrapper = select('.' + CTRLSWITCH, this.container);\n if (prop) {\n if (ctrlBtnWrapper) {\n remove(ctrlBtnWrapper);\n }\n this.createCtrlBtn();\n if (this.isPicker() && !this.disabled) {\n this.addCtrlSwitchEvent();\n }\n } else {\n if (this.modeSwitcher) {\n detach(select('.' + CTRLBTN, ctrlBtnWrapper));\n } else {\n remove(ctrlBtnWrapper);\n }\n }\n };\n ColorPicker.prototype.changeValueProp = function (newProp) {\n if (this.isPicker()) {\n this.rgb = this.hexToRgb(newProp);\n this.hsv = this.rgbToHsv.apply(this, this.rgb);\n this.setHandlerPosition();\n detach(closest(this.hueSlider.element, '.e-slider-preview'));\n this.createSlider();\n this.setHsvContainerBg();\n this.updateInput(newProp);\n if (this.rgb.length === 4) {\n this.updateOpacityInput(this.rgb[3] * 100);\n }\n } else {\n this.removeTileSelection();\n var ele = this.container.querySelector('span[aria-label=\"' + this.roundValue(newProp) + '\"]');\n if (ele) {\n this.addTileSelection(ele);\n }\n }\n };\n ColorPicker.prototype.setInputEleProps = function () {\n remove(select('.' + INPUTWRAPPER, this.container));\n this.createInput();\n };\n ColorPicker.prototype.changeDisabledProp = function (newProp) {\n if (this.isPicker()) {\n this.hueSlider.enabled = !newProp;\n this.opacitySlider.enabled = !newProp;\n this.setInputEleProps();\n }\n if (newProp) {\n this.toggleDisabled(true);\n this.unWireEvents();\n } else {\n this.toggleDisabled(false);\n this.wireEvents();\n }\n };\n ColorPicker.prototype.changeCssClassProps = function (newProp, oldProp) {\n var wrapper = this.getWrapper();\n var popupWrapper = this.getPopupEle();\n if (oldProp) {\n removeClass([wrapper, popupWrapper], oldProp.split(' '));\n }\n if (newProp) {\n addClass([wrapper, popupWrapper], newProp.replace(/\\s+/g, ' ').trim().split(' '));\n }\n };\n ColorPicker.prototype.changeRtlProps = function (newProp) {\n if (newProp) {\n addClass([this.getWrapper()], 'e-rtl');\n } else {\n removeClass([this.getWrapper()], 'e-rtl');\n }\n };\n ColorPicker.prototype.changePaletteProps = function () {\n detach(this.container.children[0]);\n this.container.style.width = '';\n this.createPalette();\n };\n ColorPicker.prototype.changeOpacityProps = function (newProp) {\n var wrapper = this.getWrapper();\n if (newProp) {\n removeClass([this.container.parentElement], HIDEOPACITY);\n this.createOpacitySlider(select('.e-colorpicker-slider', this.container).appendChild(this.createElement('div', {\n className: 'e-opacity-slider'\n })));\n if (!wrapper.classList.contains(HIDEVALUE) && !wrapper.classList.contains(HIDERGBA)) {\n this.appendOpacityValue(select('.e-input-container', this.container));\n }\n } else {\n addClass([this.container.parentElement], HIDEOPACITY);\n this.opacitySlider.destroy();\n remove(this.opacitySlider.element);\n this.opacitySlider = null;\n if (!wrapper.classList.contains(HIDEVALUE) && !wrapper.classList.contains(HIDERGBA)) {\n remove(select('.' + OPACITY, this.container).parentElement);\n }\n }\n };\n /**\n * Called internally if any of the property value changed.\n *\n * @param {ColorPickerModel} newProp - Specifies new properties\n * @param {ColorPickerModel} oldProp - Specifies old properties\n * @returns {void}\n * @private\n */\n ColorPicker.prototype.onPropertyChanged = function (newProp, oldProp) {\n var _this = this;\n if (!isNullOrUndefined(newProp.value)) {\n var value = this.roundValue(newProp.value);\n if (value.length === 9) {\n this.element.value = this.roundValue(value).slice(0, 7);\n var preview = this.splitBtn && select('.' + SPLITPREVIEW, this.splitBtn.element);\n if (preview) {\n preview.style.backgroundColor = this.convertToRgbString(this.hexToRgb(newProp.value));\n }\n } else if (this.noColor && this.mode === 'Palette' && this.value === '') {\n var preview = this.splitBtn && select('.' + SPLITPREVIEW, this.splitBtn.element);\n preview.style.backgroundColor = '';\n } else {\n this.value = oldProp.value;\n }\n }\n if (!this.inline && isNullOrUndefined(newProp.inline)) {\n var otherCompModel = ['disabled', 'enableRtl'];\n this.splitBtn.setProperties(getModel(newProp, otherCompModel));\n if (!this.isPopupOpen()) {\n this.changeCssClassProps(newProp.cssClass, oldProp.cssClass);\n this.changeRtlProps(newProp.enableRtl);\n return;\n }\n }\n var _loop_1 = function (prop) {\n switch (prop) {\n case 'inline':\n if (newProp.inline) {\n this_1.getWrapper().appendChild(this_1.container);\n this_1.splitBtn.destroy();\n detach(this_1.element.nextElementSibling);\n if (!this_1.container.children.length) {\n this_1.createWidget();\n }\n } else {\n this_1.destroyOtherComp();\n this_1.unWireEvents();\n this_1.container.innerHTML = '';\n this_1.createSplitBtn();\n }\n break;\n case 'cssClass':\n {\n this_1.changeCssClassProps(newProp.cssClass, oldProp.cssClass);\n var props = newProp.cssClass.split(' ').concat(oldProp.cssClass.split(' '));\n props = props.reduce(function (a, b) {\n if (a.indexOf(b) < 0) {\n a.push(b);\n }\n return a;\n }, []);\n var count_1 = 0;\n props.forEach(function (cls) {\n if (count_1 === 0 && (cls === HIDEVALUE || cls === HIDEVALUESWITCH || cls === SHOWVALUE || cls === HIDEHEX || cls === HIDERGBA)) {\n var inputWrap = select('.' + INPUTWRAPPER, _this.container);\n if (inputWrap) {\n remove(select('.' + INPUTWRAPPER, _this.container));\n }\n _this.createInput();\n count_1++;\n }\n });\n break;\n }\n case 'enableRtl':\n if (this_1.isPicker()) {\n this_1.hueSlider.enableRtl = newProp.enableRtl;\n if (this_1.enableOpacity) {\n this_1.opacitySlider.enableRtl = newProp.enableRtl;\n }\n this_1.setInputEleProps();\n }\n this_1.changeRtlProps(newProp.enableRtl);\n break;\n case 'disabled':\n this_1.changeDisabledProp(newProp.disabled);\n break;\n case 'value':\n if (this_1.value !== oldProp.value) {\n this_1.changeValueProp(newProp.value);\n }\n break;\n case 'showButtons':\n this_1.changeShowBtnProps(newProp.showButtons);\n break;\n case 'mode':\n if (newProp.mode === 'Picker') {\n this_1.switchToPicker();\n } else {\n this_1.switchToPalette();\n }\n break;\n case 'modeSwitcher':\n this_1.changeModeSwitcherProp(newProp.modeSwitcher);\n break;\n case 'columns':\n case 'presetColors':\n if (!this_1.isPicker()) {\n this_1.changePaletteProps();\n }\n break;\n case 'noColor':\n if (newProp.noColor) {\n if (this_1.mode === 'Palette' && !this_1.modeSwitcher) {\n this_1.setNoColor();\n }\n } else {\n this_1.changePaletteProps();\n }\n break;\n case 'enableOpacity':\n this_1.changeOpacityProps(newProp.enableOpacity);\n break;\n case 'showRecentColors':\n if (!newProp.showRecentColors) {\n var recentClrWpr = this_1.container.querySelector('.e-clr-pal-rec-wpr');\n if (recentClrWpr) {\n detach(recentClrWpr);\n }\n }\n this_1.recentColors = [];\n break;\n }\n };\n var this_1 = this;\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n _loop_1(prop);\n }\n };\n /**\n * Sets the focus to Colorpicker\n * its native method\n *\n * @public\n * @returns {void}\n */\n ColorPicker.prototype.focusIn = function () {\n this.element.parentElement.focus();\n };\n __decorate$5([Property('#008000ff')], ColorPicker.prototype, \"value\", void 0);\n __decorate$5([Property('')], ColorPicker.prototype, \"cssClass\", void 0);\n __decorate$5([Property(false)], ColorPicker.prototype, \"disabled\", void 0);\n __decorate$5([Property('Picker')], ColorPicker.prototype, \"mode\", void 0);\n __decorate$5([Property(true)], ColorPicker.prototype, \"modeSwitcher\", void 0);\n __decorate$5([Property(null)], ColorPicker.prototype, \"presetColors\", void 0);\n __decorate$5([Property(true)], ColorPicker.prototype, \"showButtons\", void 0);\n __decorate$5([Property(10)], ColorPicker.prototype, \"columns\", void 0);\n __decorate$5([Property(false)], ColorPicker.prototype, \"inline\", void 0);\n __decorate$5([Property(false)], ColorPicker.prototype, \"noColor\", void 0);\n __decorate$5([Property(false)], ColorPicker.prototype, \"enablePersistence\", void 0);\n __decorate$5([Property(true)], ColorPicker.prototype, \"enableOpacity\", void 0);\n __decorate$5([Property(false)], ColorPicker.prototype, \"createPopupOnClick\", void 0);\n __decorate$5([Property(false)], ColorPicker.prototype, \"showRecentColors\", void 0);\n __decorate$5([Event()], ColorPicker.prototype, \"select\", void 0);\n __decorate$5([Event()], ColorPicker.prototype, \"change\", void 0);\n __decorate$5([Event()], ColorPicker.prototype, \"beforeTileRender\", void 0);\n __decorate$5([Event()], ColorPicker.prototype, \"beforeOpen\", void 0);\n __decorate$5([Event()], ColorPicker.prototype, \"open\", void 0);\n __decorate$5([Event()], ColorPicker.prototype, \"beforeClose\", void 0);\n __decorate$5([Event()], ColorPicker.prototype, \"beforeModeSwitch\", void 0);\n __decorate$5([Event()], ColorPicker.prototype, \"onModeSwitch\", void 0);\n __decorate$5([Event()], ColorPicker.prototype, \"created\", void 0);\n ColorPicker = __decorate$5([NotifyPropertyChanges], ColorPicker);\n return ColorPicker;\n}(Component);\nvar __extends$6 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 HIDE_CLEAR = 'e-clear-icon-hide';\n/**\n * Represents the TextBox component that allows the user to enter the values based on it's type.\n * ```html\n * \n * ```\n * ```typescript\n * \n * ```\n */\nvar TextBox = /** @__PURE__ @class */function (_super) {\n __extends$6(TextBox, _super);\n /**\n *\n * @param {TextBoxModel} options - Specifies the TextBox model.\n * @param {string | HTMLInputElement | HTMLTextAreaElement} element - Specifies the element to render as component.\n * @private\n */\n function TextBox(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.previousValue = null;\n _this.isHiddenInput = false;\n _this.isForm = false;\n _this.inputPreviousValue = null;\n _this.textboxOptions = options;\n return _this;\n }\n /**\n * Calls internally if any of the property value is changed.\n *\n * @param {TextBoxModel} newProp - Returns the dynamic property value of the component.\n * @param {TextBoxModel} oldProp - Returns the previous property value of the component.\n * @returns {void}\n * @private\n */\n TextBox.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'floatLabelType':\n Input.removeFloating(this.textboxWrapper);\n Input.addFloating(this.respectiveElement, this.floatLabelType, this.placeholder);\n break;\n case 'enabled':\n Input.setEnabled(this.enabled, this.respectiveElement, this.floatLabelType, this.textboxWrapper.container);\n this.bindClearEvent();\n break;\n case 'width':\n Input.setWidth(newProp.width, this.textboxWrapper.container);\n break;\n case 'value':\n {\n var prevOnChange = this.isProtectedOnChange;\n this.isProtectedOnChange = true;\n if (!Input.isBlank(this.value)) {\n this.value = this.value.toString();\n }\n this.isProtectedOnChange = prevOnChange;\n Input.setValue(this.value, this.respectiveElement, this.floatLabelType, this.showClearButton);\n if (this.isHiddenInput) {\n this.element.value = this.respectiveElement.value;\n }\n this.inputPreviousValue = this.respectiveElement.value;\n /* istanbul ignore next */\n if ((this.isAngular || this.isVue) && this.preventChange === true) {\n this.previousValue = this.isAngular ? this.value : this.previousValue;\n this.preventChange = false;\n } else if (isNullOrUndefined(this.isAngular) || !this.isAngular || this.isAngular && !this.preventChange || this.isAngular && isNullOrUndefined(this.preventChange)) {\n this.raiseChangeEvent();\n }\n }\n break;\n case 'htmlAttributes':\n {\n this.updateHTMLAttributesToElement();\n this.updateHTMLAttributesToWrapper();\n this.checkAttributes(true);\n if (this.multiline && !isNullOrUndefined(this.textarea)) {\n Input.validateInputType(this.textboxWrapper.container, this.textarea);\n } else {\n Input.validateInputType(this.textboxWrapper.container, this.element);\n }\n }\n break;\n case 'readonly':\n Input.setReadonly(this.readonly, this.respectiveElement);\n break;\n case 'type':\n if (this.respectiveElement.tagName !== 'TEXTAREA') {\n this.respectiveElement.setAttribute('type', this.type);\n Input.validateInputType(this.textboxWrapper.container, this.element);\n this.raiseChangeEvent();\n }\n break;\n case 'showClearButton':\n Input.setClearButton(this.showClearButton, this.respectiveElement, this.textboxWrapper);\n this.bindClearEvent();\n break;\n case 'enableRtl':\n Input.setEnableRtl(this.enableRtl, [this.textboxWrapper.container]);\n break;\n case 'placeholder':\n Input.setPlaceholder(this.placeholder, this.respectiveElement);\n Input.calculateWidth(this.respectiveElement, this.textboxWrapper.container);\n break;\n case 'autocomplete':\n if (this.autocomplete !== 'on' && this.autocomplete !== '') {\n this.respectiveElement.autocomplete = this.autocomplete;\n } else {\n this.removeAttributes(['autocomplete']);\n }\n break;\n case 'cssClass':\n Input.updateCssClass(newProp.cssClass, oldProp.cssClass, this.textboxWrapper.container);\n break;\n case 'locale':\n this.globalize = new Internationalization(this.locale);\n this.l10n.setLocale(this.locale);\n this.setProperties({\n placeholder: this.l10n.getConstant('placeholder')\n }, true);\n Input.setPlaceholder(this.placeholder, this.respectiveElement);\n break;\n }\n }\n };\n /**\n * Gets the component name\n *\n * @returns {string} Returns the component name.\n * @private\n */\n TextBox.prototype.getModuleName = function () {\n return 'textbox';\n };\n TextBox.prototype.preRender = function () {\n this.cloneElement = this.element.cloneNode(true);\n this.formElement = closest(this.element, 'form');\n if (!isNullOrUndefined(this.formElement)) {\n this.isForm = true;\n }\n /* istanbul ignore next */\n if (this.element.tagName === 'EJS-TEXTBOX') {\n var ejInstance = getValue('ej2_instances', this.element);\n var inputElement = this.multiline ? this.createElement('textarea') : this.createElement('input');\n var index = 0;\n for (index; index < this.element.attributes.length; index++) {\n var attributeName = this.element.attributes[index].nodeName;\n if (attributeName !== 'id' && attributeName !== 'class') {\n inputElement.setAttribute(attributeName, this.element.attributes[index].nodeValue);\n inputElement.innerHTML = this.element.innerHTML;\n if (attributeName === 'name') {\n this.element.removeAttribute('name');\n }\n } else if (attributeName === 'class') {\n inputElement.setAttribute(attributeName, this.element.className.split(' ').filter(function (item) {\n return item.indexOf('ng-') !== 0;\n }).join(' '));\n }\n }\n this.element.appendChild(inputElement);\n this.element = inputElement;\n setValue('ej2_instances', ejInstance, this.element);\n }\n this.updateHTMLAttributesToElement();\n this.checkAttributes(false);\n if ((isNullOrUndefined(this.textboxOptions) || this.textboxOptions['value'] === undefined) && this.element.value !== '') {\n this.setProperties({\n value: this.element.value\n }, true);\n }\n if (this.element.tagName !== 'TEXTAREA') {\n this.element.setAttribute('type', this.type);\n }\n if (this.type === 'text' || this.element.tagName === 'INPUT' && this.multiline && this.isReact) {\n this.element.setAttribute('role', 'textbox');\n }\n this.globalize = new Internationalization(this.locale);\n var localeText = {\n placeholder: this.placeholder\n };\n this.l10n = new L10n('textbox', localeText, this.locale);\n if (this.l10n.getConstant('placeholder') !== '') {\n this.setProperties({\n placeholder: this.placeholder || this.l10n.getConstant('placeholder')\n }, true);\n }\n if (!this.element.hasAttribute('id')) {\n this.element.setAttribute('id', getUniqueID('textbox'));\n }\n if (!this.element.hasAttribute('name')) {\n this.element.setAttribute('name', this.element.getAttribute('id'));\n }\n if (this.element.tagName === 'INPUT' && this.multiline) {\n this.isHiddenInput = true;\n this.textarea = this.createElement('textarea');\n this.element.parentNode.insertBefore(this.textarea, this.element);\n this.element.setAttribute('type', 'hidden');\n this.textarea.setAttribute('name', this.element.getAttribute('name'));\n this.element.removeAttribute('name');\n this.textarea.setAttribute('role', this.element.getAttribute('role'));\n this.element.removeAttribute('role');\n this.textarea.setAttribute('id', getUniqueID('textarea'));\n var apiAttributes = ['placeholder', 'disabled', 'value', 'readonly', 'type', 'autocomplete'];\n for (var index = 0; index < this.element.attributes.length; index++) {\n var attributeName = this.element.attributes[index].nodeName;\n if (this.element.hasAttribute(attributeName) && containerAttributes.indexOf(attributeName) < 0 && !(attributeName === 'id' || attributeName === 'type' || attributeName === 'e-mappinguid')) {\n // e-mappinguid attribute is handled for Grid component.\n this.textarea.setAttribute(attributeName, this.element.attributes[index].nodeValue);\n if (apiAttributes.indexOf(attributeName) < 0) {\n this.element.removeAttribute(attributeName);\n index--;\n }\n }\n }\n }\n };\n TextBox.prototype.checkAttributes = function (isDynamic) {\n var attrs = isDynamic ? isNullOrUndefined(this.htmlAttributes) ? [] : Object.keys(this.htmlAttributes) : ['placeholder', 'disabled', 'value', 'readonly', 'type', 'autocomplete'];\n for (var _i = 0, attrs_1 = attrs; _i < attrs_1.length; _i++) {\n var key = attrs_1[_i];\n if (!isNullOrUndefined(this.element.getAttribute(key))) {\n switch (key) {\n case 'disabled':\n if (isNullOrUndefined(this.textboxOptions) || this.textboxOptions['enabled'] === undefined || isDynamic) {\n var enabled = this.element.getAttribute(key) === 'disabled' || this.element.getAttribute(key) === '' || this.element.getAttribute(key) === 'true' ? false : true;\n this.setProperties({\n enabled: enabled\n }, !isDynamic);\n }\n break;\n case 'readonly':\n if (isNullOrUndefined(this.textboxOptions) || this.textboxOptions['readonly'] === undefined || isDynamic) {\n var readonly = this.element.getAttribute(key) === 'readonly' || this.element.getAttribute(key) === '' || this.element.getAttribute(key) === 'true' ? true : false;\n this.setProperties({\n readonly: readonly\n }, !isDynamic);\n }\n break;\n case 'placeholder':\n if (isNullOrUndefined(this.textboxOptions) || this.textboxOptions['placeholder'] === undefined || isDynamic) {\n this.setProperties({\n placeholder: this.element.placeholder\n }, !isDynamic);\n }\n break;\n case 'autocomplete':\n if (isNullOrUndefined(this.textboxOptions) || this.textboxOptions['autocomplete'] === undefined || isDynamic) {\n var autoCompleteTxt = this.element.autocomplete === 'off' ? 'off' : 'on';\n this.setProperties({\n autocomplete: autoCompleteTxt\n }, !isDynamic);\n }\n break;\n case 'value':\n if ((isNullOrUndefined(this.textboxOptions) || this.textboxOptions['value'] === undefined || isDynamic) && this.element.value !== '') {\n this.setProperties({\n value: this.element.value\n }, !isDynamic);\n }\n break;\n case 'type':\n if (isNullOrUndefined(this.textboxOptions) || this.textboxOptions['type'] === undefined || isDynamic) {\n this.setProperties({\n type: this.element.type\n }, !isDynamic);\n }\n break;\n }\n }\n }\n };\n /**\n * To Initialize the control rendering\n *\n * @returns {void}\n * @private\n */\n TextBox.prototype.render = function () {\n var updatedCssClassValue = this.cssClass;\n if (!isNullOrUndefined(this.cssClass) && this.cssClass !== '') {\n updatedCssClassValue = Input.getInputValidClassList(this.cssClass);\n }\n this.respectiveElement = this.isHiddenInput ? this.textarea : this.element;\n this.textboxWrapper = Input.createInput({\n element: this.respectiveElement,\n floatLabelType: this.floatLabelType,\n properties: {\n enabled: this.enabled,\n enableRtl: this.enableRtl,\n cssClass: updatedCssClassValue,\n readonly: this.readonly,\n placeholder: this.placeholder,\n showClearButton: this.showClearButton\n }\n });\n this.updateHTMLAttributesToWrapper();\n if (this.isHiddenInput) {\n this.respectiveElement.parentNode.insertBefore(this.element, this.respectiveElement);\n }\n this.wireEvents();\n if (!isNullOrUndefined(this.value)) {\n Input.setValue(this.value, this.respectiveElement, this.floatLabelType, this.showClearButton);\n if (this.isHiddenInput) {\n this.element.value = this.respectiveElement.value;\n }\n }\n if (!isNullOrUndefined(this.value)) {\n this.initialValue = this.value;\n this.setInitialValue();\n }\n if (this.autocomplete !== 'on' && this.autocomplete !== '') {\n this.respectiveElement.autocomplete = this.autocomplete;\n } else if (!isNullOrUndefined(this.textboxOptions) && this.textboxOptions['autocomplete'] !== undefined) {\n this.removeAttributes(['autocomplete']);\n }\n this.previousValue = this.value;\n this.inputPreviousValue = this.value;\n this.respectiveElement.defaultValue = this.respectiveElement.value;\n Input.setWidth(this.width, this.textboxWrapper.container);\n if (!isNullOrUndefined(closest(this.element, 'fieldset')) && closest(this.element, 'fieldset').disabled) {\n this.enabled = false;\n }\n if (!this.element.hasAttribute('aria-labelledby') && !this.element.hasAttribute('placeholder') && !this.element.hasAttribute('aria-label')) {\n this.element.setAttribute('aria-label', 'textbox');\n }\n this.renderComplete();\n };\n TextBox.prototype.updateHTMLAttributesToWrapper = function () {\n Input.updateHTMLAttributesToWrapper(this.htmlAttributes, this.textboxWrapper.container);\n };\n TextBox.prototype.updateHTMLAttributesToElement = function () {\n Input.updateHTMLAttributesToElement(this.htmlAttributes, this.respectiveElement ? this.respectiveElement : this.multiline && !isNullOrUndefined(this.textarea) ? this.textarea : this.element);\n };\n TextBox.prototype.setInitialValue = function () {\n if (!this.isAngular) {\n this.respectiveElement.setAttribute('value', this.initialValue);\n }\n };\n TextBox.prototype.wireEvents = function () {\n EventHandler.add(this.respectiveElement, 'focus', this.focusHandler, this);\n EventHandler.add(this.respectiveElement, 'blur', this.focusOutHandler, this);\n EventHandler.add(this.respectiveElement, 'keydown', this.keydownHandler, this);\n EventHandler.add(this.respectiveElement, 'input', this.inputHandler, this);\n EventHandler.add(this.respectiveElement, 'change', this.changeHandler, this);\n if (this.isForm) {\n EventHandler.add(this.formElement, 'reset', this.resetForm, this);\n }\n this.bindClearEvent();\n if (!isNullOrUndefined(this.textboxWrapper.container.querySelector('.e-float-text')) && this.floatLabelType === 'Auto' && this.textboxWrapper.container.classList.contains('e-autofill') && this.textboxWrapper.container.classList.contains('e-outline')) {\n EventHandler.add(this.textboxWrapper.container.querySelector('.e-float-text'), 'animationstart', this.animationHandler, this);\n }\n };\n TextBox.prototype.animationHandler = function () {\n this.textboxWrapper.container.classList.add('e-valid-input');\n var label = this.textboxWrapper.container.querySelector('.e-float-text');\n if (!isNullOrUndefined(label)) {\n label.classList.add('e-label-top');\n if (label.classList.contains('e-label-bottom')) {\n label.classList.remove('e-label-bottom');\n }\n }\n };\n TextBox.prototype.resetValue = function (value) {\n var prevOnChange = this.isProtectedOnChange;\n this.isProtectedOnChange = true;\n this.value = value;\n if (value == null && this.textboxWrapper.container.classList.contains('e-valid-input')) {\n this.textboxWrapper.container.classList.remove('e-valid-input');\n }\n this.isProtectedOnChange = prevOnChange;\n };\n TextBox.prototype.resetForm = function () {\n if (this.isAngular) {\n this.resetValue('');\n } else {\n this.resetValue(this.initialValue);\n }\n if (!isNullOrUndefined(this.textboxWrapper)) {\n var label = this.textboxWrapper.container.querySelector('.e-float-text');\n if (!isNullOrUndefined(label) && this.floatLabelType !== 'Always') {\n if (isNullOrUndefined(this.initialValue) || this.initialValue === '') {\n label.classList.add('e-label-bottom');\n label.classList.remove('e-label-top');\n } else if (this.initialValue !== '') {\n label.classList.add('e-label-top');\n label.classList.remove('e-label-bottom');\n }\n }\n }\n };\n TextBox.prototype.focusHandler = function (args) {\n var eventArgs = {\n container: this.textboxWrapper.container,\n event: args,\n value: this.value\n };\n this.trigger('focus', eventArgs);\n };\n TextBox.prototype.focusOutHandler = function (args) {\n if (!(this.previousValue === null && this.value === null && this.respectiveElement.value === '') && this.previousValue !== this.value) {\n this.raiseChangeEvent(args, true);\n }\n var eventArgs = {\n container: this.textboxWrapper.container,\n event: args,\n value: this.value\n };\n this.trigger('blur', eventArgs);\n };\n TextBox.prototype.keydownHandler = function (args) {\n if ((args.keyCode === 13 || args.keyCode === 9) && !((this.previousValue === null || this.previousValue === '') && (this.value === null || this.value === '') && this.respectiveElement.value === '')) {\n this.setProperties({\n value: this.respectiveElement.value\n }, true);\n }\n };\n TextBox.prototype.inputHandler = function (args) {\n var textboxObj = this;\n var eventArgs = {\n event: args,\n value: this.respectiveElement.value,\n previousValue: this.inputPreviousValue,\n container: this.textboxWrapper.container\n };\n this.inputPreviousValue = this.respectiveElement.value;\n /* istanbul ignore next */\n if (this.isAngular) {\n textboxObj.localChange({\n value: this.respectiveElement.value\n });\n this.preventChange = true;\n }\n if (this.isVue) {\n this.preventChange = true;\n }\n this.trigger('input', eventArgs);\n args.stopPropagation();\n };\n TextBox.prototype.changeHandler = function (args) {\n this.setProperties({\n value: this.respectiveElement.value\n }, true);\n if (this.previousValue !== this.value) {\n this.raiseChangeEvent(args, true);\n }\n args.stopPropagation();\n };\n TextBox.prototype.raiseChangeEvent = function (event, interaction) {\n var eventArgs = {\n event: event,\n value: this.value,\n previousValue: this.previousValue,\n container: this.textboxWrapper.container,\n isInteraction: interaction ? interaction : false,\n isInteracted: interaction ? interaction : false\n };\n this.preventChange = false;\n this.trigger('change', eventArgs);\n this.previousValue = this.value;\n //EJ2CORE-738:For this task we update the textarea value to the input when input tag with multiline is present\n if (this.element.tagName === 'INPUT' && this.multiline && Browser.info.name === 'mozilla') {\n this.element.value = this.respectiveElement.value;\n }\n };\n TextBox.prototype.bindClearEvent = function () {\n if (this.showClearButton) {\n if (this.enabled) {\n EventHandler.add(this.textboxWrapper.clearButton, 'mousedown touchstart', this.resetInputHandler, this);\n } else {\n EventHandler.remove(this.textboxWrapper.clearButton, 'mousedown touchstart', this.resetInputHandler);\n }\n }\n };\n TextBox.prototype.resetInputHandler = function (event) {\n event.preventDefault();\n if (!this.textboxWrapper.clearButton.classList.contains(HIDE_CLEAR) || this.textboxWrapper.container.classList.contains('e-static-clear')) {\n Input.setValue('', this.respectiveElement, this.floatLabelType, this.showClearButton);\n if (this.isHiddenInput) {\n this.element.value = this.respectiveElement.value;\n }\n this.setProperties({\n value: this.respectiveElement.value\n }, true);\n var eventArgs = {\n event: event,\n value: this.respectiveElement.value,\n previousValue: this.inputPreviousValue,\n container: this.textboxWrapper.container\n };\n this.trigger('input', eventArgs);\n this.inputPreviousValue = this.respectiveElement.value;\n this.raiseChangeEvent(event, true);\n if (closest(this.element, 'form')) {\n var element = this.element;\n var keyupEvent = document.createEvent('KeyboardEvent');\n keyupEvent.initEvent('keyup', false, true);\n element.dispatchEvent(keyupEvent);\n }\n }\n };\n TextBox.prototype.unWireEvents = function () {\n EventHandler.remove(this.respectiveElement, 'focus', this.focusHandler);\n EventHandler.remove(this.respectiveElement, 'blur', this.focusOutHandler);\n EventHandler.remove(this.respectiveElement, 'keydown', this.keydownHandler);\n EventHandler.remove(this.respectiveElement, 'input', this.inputHandler);\n EventHandler.remove(this.respectiveElement, 'change', this.changeHandler);\n if (this.isForm) {\n EventHandler.remove(this.formElement, 'reset', this.resetForm);\n }\n if (!isNullOrUndefined(this.textboxWrapper.container.querySelector('.e-float-text')) && this.floatLabelType === 'Auto' && this.textboxWrapper.container.classList.contains('e-outline') && this.textboxWrapper.container.classList.contains('e-autofill')) {\n EventHandler.remove(this.textboxWrapper.container.querySelector('.e-float-text'), 'animationstart', this.animationHandler);\n }\n };\n /**\n * Removes the component from the DOM and detaches all its related event handlers.\n * Also, it maintains the initial TextBox element from the DOM.\n *\n * @method destroy\n * @returns {void}\n */\n TextBox.prototype.destroy = function () {\n this.unWireEvents();\n if (this.showClearButton) {\n this.clearButton = document.getElementsByClassName('e-clear-icon')[0];\n }\n if (this.element.tagName === 'INPUT' && this.multiline) {\n detach(this.textboxWrapper.container.getElementsByTagName('textarea')[0]);\n this.respectiveElement = this.element;\n this.element.removeAttribute('type');\n }\n this.respectiveElement.value = this.respectiveElement.defaultValue;\n this.respectiveElement.classList.remove('e-input');\n this.removeAttributes(['aria-disabled', 'aria-readonly', 'aria-labelledby']);\n if (!isNullOrUndefined(this.textboxWrapper)) {\n this.textboxWrapper.container.insertAdjacentElement('afterend', this.respectiveElement);\n detach(this.textboxWrapper.container);\n }\n this.textboxWrapper = null;\n Input.destroy({\n element: this.respectiveElement,\n floatLabelType: this.floatLabelType,\n properties: this.properties\n }, this.clearButton);\n _super.prototype.destroy.call(this);\n };\n /**\n * Adding the icons to the TextBox component.\n *\n * @param { string } position - Specify the icon placement on the TextBox. Possible values are append and prepend.\n * @param { string | string[] } icons - Icon classes which are need to add to the span element which is going to created.\n * Span element acts as icon or button element for TextBox.\n * @returns {void}\n */\n TextBox.prototype.addIcon = function (position, icons) {\n Input.addIcon(position, icons, this.textboxWrapper.container, this.respectiveElement, this.createElement);\n };\n /**\n * Gets the properties to be maintained in the persisted state.\n *\n * @returns {string} Returns the persisted data.\n */\n TextBox.prototype.getPersistData = function () {\n var keyEntity = ['value'];\n return this.addOnPersist(keyEntity);\n };\n /**\n * Adding the multiple attributes as key-value pair to the TextBox element.\n *\n * @param {string} attributes - Specifies the attributes to be add to TextBox element.\n * @returns {void}\n */\n TextBox.prototype.addAttributes = function (attributes) {\n for (var _i = 0, _a = Object.keys(attributes); _i < _a.length; _i++) {\n var key = _a[_i];\n if (key === 'disabled') {\n this.setProperties({\n enabled: false\n }, true);\n Input.setEnabled(this.enabled, this.respectiveElement, this.floatLabelType, this.textboxWrapper.container);\n } else if (key === 'readonly') {\n this.setProperties({\n readonly: true\n }, true);\n Input.setReadonly(this.readonly, this.respectiveElement);\n } else if (key === 'class') {\n this.respectiveElement.classList.add(attributes[\"\" + key]);\n } else if (key === 'placeholder') {\n this.setProperties({\n placeholder: attributes[\"\" + key]\n }, true);\n Input.setPlaceholder(this.placeholder, this.respectiveElement);\n } else if (key === 'rows' && this.respectiveElement.tagName === 'TEXTAREA') {\n this.respectiveElement.setAttribute(key, attributes[\"\" + key]);\n } else {\n this.respectiveElement.setAttribute(key, attributes[\"\" + key]);\n }\n }\n };\n /**\n * Removing the multiple attributes as key-value pair to the TextBox element.\n *\n * @param { string[] } attributes - Specifies the attributes name to be removed from TextBox element.\n * @returns {void}\n */\n TextBox.prototype.removeAttributes = function (attributes) {\n for (var _i = 0, attributes_1 = attributes; _i < attributes_1.length; _i++) {\n var key = attributes_1[_i];\n if (key === 'disabled') {\n this.setProperties({\n enabled: true\n }, true);\n Input.setEnabled(this.enabled, this.respectiveElement, this.floatLabelType, this.textboxWrapper.container);\n } else if (key === 'readonly') {\n this.setProperties({\n readonly: false\n }, true);\n Input.setReadonly(this.readonly, this.respectiveElement);\n } else if (key === 'placeholder') {\n this.setProperties({\n placeholder: null\n }, true);\n Input.setPlaceholder(this.placeholder, this.respectiveElement);\n } else {\n this.respectiveElement.removeAttribute(key);\n }\n }\n };\n /**\n * Sets the focus to widget for interaction.\n *\n * @returns {void}\n */\n TextBox.prototype.focusIn = function () {\n if (document.activeElement !== this.respectiveElement && this.enabled) {\n this.respectiveElement.focus();\n if (this.textboxWrapper.container.classList.contains('e-input-group') || this.textboxWrapper.container.classList.contains('e-outline') || this.textboxWrapper.container.classList.contains('e-filled')) {\n addClass([this.textboxWrapper.container], [TEXTBOX_FOCUS]);\n }\n }\n };\n /**\n * Remove the focus from widget, if the widget is in focus state.\n *\n * @returns {void}\n */\n TextBox.prototype.focusOut = function () {\n if (document.activeElement === this.respectiveElement && this.enabled) {\n this.respectiveElement.blur();\n if (this.textboxWrapper.container.classList.contains('e-input-group') || this.textboxWrapper.container.classList.contains('e-outline') || this.textboxWrapper.container.classList.contains('e-filled')) {\n removeClass([this.textboxWrapper.container], [TEXTBOX_FOCUS]);\n }\n }\n };\n __decorate$6([Property('text')], TextBox.prototype, \"type\", void 0);\n __decorate$6([Property(false)], TextBox.prototype, \"readonly\", void 0);\n __decorate$6([Property(null)], TextBox.prototype, \"value\", void 0);\n __decorate$6([Property('Never')], TextBox.prototype, \"floatLabelType\", void 0);\n __decorate$6([Property('')], TextBox.prototype, \"cssClass\", void 0);\n __decorate$6([Property(null)], TextBox.prototype, \"placeholder\", void 0);\n __decorate$6([Property('on')], TextBox.prototype, \"autocomplete\", void 0);\n __decorate$6([Property({})], TextBox.prototype, \"htmlAttributes\", void 0);\n __decorate$6([Property(false)], TextBox.prototype, \"multiline\", void 0);\n __decorate$6([Property(true)], TextBox.prototype, \"enabled\", void 0);\n __decorate$6([Property(false)], TextBox.prototype, \"showClearButton\", void 0);\n __decorate$6([Property(false)], TextBox.prototype, \"enablePersistence\", void 0);\n __decorate$6([Property(null)], TextBox.prototype, \"width\", void 0);\n __decorate$6([Event()], TextBox.prototype, \"created\", void 0);\n __decorate$6([Event()], TextBox.prototype, \"destroyed\", void 0);\n __decorate$6([Event()], TextBox.prototype, \"change\", void 0);\n __decorate$6([Event()], TextBox.prototype, \"blur\", void 0);\n __decorate$6([Event()], TextBox.prototype, \"focus\", void 0);\n __decorate$6([Event()], TextBox.prototype, \"input\", void 0);\n TextBox = __decorate$6([NotifyPropertyChanges], TextBox);\n return TextBox;\n}(Component);\nvar __extends$7 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 HIDE_CLEAR$1 = 'e-clear-icon-hide';\nvar AUTO_WIDTH = 'e-auto-width';\nvar RESIZE_X = 'e-resize-x';\nvar RESIZE_Y = 'e-resize-y';\nvar RESIZE_XY = 'e-resize-xy';\nvar RESIZE_NONE = 'e-resize-none';\nvar TextArea = /** @__PURE__ @class */function (_super) {\n __extends$7(TextArea, _super);\n function TextArea(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.previousValue = null;\n _this.isForm = false;\n _this.inputPreviousValue = null;\n _this.textareaOptions = options;\n return _this;\n }\n /**\n * Calls internally if any of the property value is changed.\n *\n * @param {TextAreaModel} newProp - Returns the dynamic property value of the component.\n * @param {TextAreaModel} oldProp - Returns the previous property value of the component.\n * @returns {void}\n * @private\n */\n TextArea.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'floatLabelType':\n Input.removeFloating(this.textareaWrapper);\n Input.addFloating(this.element, this.floatLabelType, this.placeholder);\n if (this.floatLabelType === 'Never') {\n this.element.removeAttribute('aria-labelledby');\n }\n break;\n case 'enabled':\n Input.setEnabled(this.enabled, this.element, this.floatLabelType, this.textareaWrapper.container);\n this.bindClearEvent();\n if (!this.enabled && this.resizeMode !== 'None') {\n this.element.classList.remove(this.getCurrentResizeClass(this.resizeMode));\n this.element.classList.add(RESIZE_NONE);\n } else {\n this.element.classList.add(this.getCurrentResizeClass(this.resizeMode));\n }\n break;\n case 'width':\n if (this.resizeMode !== 'None' && this.resizeMode !== 'Vertical') {\n this.setElementWidth(newProp.width);\n this.textareaWrapper.container.classList.add(AUTO_WIDTH);\n } else {\n if (this.textareaWrapper.container.classList.contains(AUTO_WIDTH)) {\n this.textareaWrapper.container.classList.remove(AUTO_WIDTH);\n }\n Input.setWidth(newProp.width, this.textareaWrapper.container);\n }\n break;\n case 'value':\n {\n var prevOnChange = this.isProtectedOnChange;\n this.isProtectedOnChange = true;\n if (!Input.isBlank(this.value)) {\n this.value = this.value.toString();\n }\n this.isProtectedOnChange = prevOnChange;\n Input.setValue(this.value, this.element, this.floatLabelType, this.showClearButton);\n this.inputPreviousValue = this.element.value;\n /* istanbul ignore next */\n if ((this.isAngular || this.isVue) && this.preventChange === true) {\n this.previousValue = this.isAngular ? this.value : this.previousValue;\n this.preventChange = false;\n } else if (isNullOrUndefined(this.isAngular) || !this.isAngular || this.isAngular && !this.preventChange || this.isAngular && isNullOrUndefined(this.preventChange)) {\n this.raiseChangeEvent();\n }\n }\n break;\n case 'htmlAttributes':\n {\n this.updateHTMLAttributesToElement();\n this.updateHTMLAttributesToWrapper();\n this.checkAttributes(true);\n Input.validateInputType(this.textareaWrapper.container, this.element);\n }\n break;\n case 'readonly':\n Input.setReadonly(this.readonly, this.element);\n if (this.readonly) {\n this.element.setAttribute('aria-readonly', 'true');\n } else {\n this.element.removeAttribute('aria-readonly');\n }\n break;\n case 'showClearButton':\n Input.setClearButton(this.showClearButton, this.element, this.textareaWrapper);\n this.bindClearEvent();\n break;\n case 'enableRtl':\n Input.setEnableRtl(this.enableRtl, [this.textareaWrapper.container]);\n break;\n case 'placeholder':\n Input.setPlaceholder(this.placeholder, this.element);\n Input.calculateWidth(this.element, this.textareaWrapper.container);\n break;\n case 'cssClass':\n Input.updateCssClass(newProp.cssClass, oldProp.cssClass, this.textareaWrapper.container);\n break;\n case 'locale':\n this.globalize = new Internationalization(this.locale);\n this.l10n.setLocale(this.locale);\n this.setProperties({\n placeholder: this.l10n.getConstant('placeholder')\n }, true);\n Input.setPlaceholder(this.placeholder, this.element);\n break;\n case 'rows':\n if (this.rows) {\n this.element.setAttribute('rows', this.rows.toString());\n }\n break;\n case 'cols':\n if (this.cols) {\n this.element.setAttribute('cols', this.cols.toString());\n if (this.width == null) {\n this.textareaWrapper.container.classList.add(AUTO_WIDTH);\n }\n }\n break;\n case 'maxLength':\n if (this.maxLength) {\n this.element.setAttribute('maxlength', this.maxLength.toString());\n }\n break;\n case 'resizeMode':\n if (this.enabled) {\n if (this.element.classList.contains(this.getCurrentResizeClass(oldProp.resizeMode))) {\n this.element.classList.remove(this.getCurrentResizeClass(oldProp.resizeMode));\n }\n this.element.classList.add(this.getCurrentResizeClass(this.resizeMode));\n if (this.element.style.width && (this.resizeMode === 'None' || this.resizeMode === 'Vertical')) {\n Input.setWidth(this.element.style.width, this.textareaWrapper.container);\n } else {\n var currentWidth = this.element.offsetWidth;\n this.element.style.width = currentWidth + 'px';\n if (this.textareaWrapper.container.style.width) {\n this.textareaWrapper.container.style.width = '';\n }\n }\n this.setWrapperWidth();\n }\n break;\n }\n }\n };\n TextArea.prototype.preRender = function () {\n this.formElement = closest(this.element, 'form');\n if (!isNullOrUndefined(this.formElement)) {\n this.isForm = true;\n }\n /* istanbul ignore next */\n if (this.element.tagName === 'EJS-TEXTAREA' || this.element.tagName === 'EJS-SMARTTEXTAREA') {\n var ejInstance = getValue('ej2_instances', this.element);\n var inputElement = this.createElement('textarea');\n var index = 0;\n for (index; index < this.element.attributes.length; index++) {\n var attributeName = this.element.attributes[index].nodeName;\n if (attributeName !== 'id' && attributeName !== 'class') {\n inputElement.setAttribute(attributeName, this.element.attributes[index].nodeValue);\n inputElement.innerHTML = this.element.innerHTML;\n if (attributeName === 'name') {\n this.element.removeAttribute('name');\n }\n } else if (attributeName === 'class') {\n inputElement.setAttribute(attributeName, this.element.className.split(' ').filter(function (item) {\n return item.indexOf('ng-') !== 0;\n }).join(' '));\n }\n }\n this.element.appendChild(inputElement);\n this.element = inputElement;\n setValue('ej2_instances', ejInstance, this.element);\n }\n this.updateHTMLAttributesToElement();\n this.checkAttributes(false);\n if ((isNullOrUndefined(this.textareaOptions) || this.textareaOptions['value'] === undefined) && this.element.value !== '') {\n this.setProperties({\n value: this.element.value\n }, true);\n }\n this.globalize = new Internationalization(this.locale);\n var localeText = {\n placeholder: this.placeholder\n };\n this.l10n = new L10n('textarea', localeText, this.locale);\n if (this.l10n.getConstant('placeholder') !== '') {\n this.setProperties({\n placeholder: this.placeholder || this.l10n.getConstant('placeholder')\n }, true);\n }\n if (!this.element.hasAttribute('id')) {\n this.element.setAttribute('id', getUniqueID('textbox'));\n }\n if (!this.element.hasAttribute('name')) {\n this.element.setAttribute('name', this.element.getAttribute('id'));\n }\n if (this.rows) {\n this.element.setAttribute('rows', this.rows.toString());\n }\n if (this.cols) {\n this.element.setAttribute('cols', this.cols.toString());\n }\n if (this.maxLength) {\n this.element.setAttribute('maxlength', this.maxLength.toString());\n }\n if (!this.element.style.resize && this.enabled) {\n this.element.classList.add(this.getCurrentResizeClass(this.resizeMode));\n }\n if (this.enabled) {\n this.element.setAttribute('aria-multiline', 'true');\n }\n };\n /**\n * To Initialize the control rendering\n *\n * @returns {void}\n * @private\n */\n TextArea.prototype.render = function () {\n var updatedCssClassValue = this.cssClass;\n if (!isNullOrUndefined(this.cssClass) && this.cssClass !== '') {\n updatedCssClassValue = Input.getInputValidClassList(this.cssClass);\n }\n this.textareaWrapper = Input.createInput({\n element: this.element,\n floatLabelType: this.floatLabelType,\n properties: {\n enabled: this.enabled,\n enableRtl: this.enableRtl,\n cssClass: updatedCssClassValue,\n readonly: this.readonly,\n placeholder: this.placeholder,\n showClearButton: this.showClearButton\n }\n });\n this.updateHTMLAttributesToWrapper();\n this.wireEvents();\n if (!isNullOrUndefined(this.value)) {\n Input.setValue(this.value, this.element, this.floatLabelType, this.showClearButton);\n }\n if (!isNullOrUndefined(this.value)) {\n this.initialValue = this.value;\n if (!this.isAngular) {\n this.element.setAttribute('value', this.initialValue);\n }\n }\n this.previousValue = this.value;\n this.inputPreviousValue = this.value;\n this.element.defaultValue = this.element.value;\n Input.setWidth(this.width, this.textareaWrapper.container);\n this.setWrapperWidth();\n this.renderComplete();\n };\n TextArea.prototype.getModuleName = function () {\n return 'textarea';\n };\n /**\n * Gets the properties to be maintained in the persisted state.\n *\n * @returns {string} - Returns the string value.\n */\n TextArea.prototype.getPersistData = function () {\n var keyEntity = ['value'];\n return this.addOnPersist(keyEntity);\n };\n TextArea.prototype.checkAttributes = function (isDynamic) {\n var attrs = isDynamic ? isNullOrUndefined(this.htmlAttributes) ? [] : Object.keys(this.htmlAttributes) : ['placeholder', 'disabled', 'value', 'readonly'];\n for (var _i = 0, attrs_1 = attrs; _i < attrs_1.length; _i++) {\n var key = attrs_1[_i];\n if (!isNullOrUndefined(this.element.getAttribute(key))) {\n switch (key) {\n case 'disabled':\n if (isNullOrUndefined(this.textareaOptions) || this.textareaOptions['enabled'] === undefined || isDynamic) {\n var enabled = this.element.getAttribute(key) === 'disabled' || this.element.getAttribute(key) === '' || this.element.getAttribute(key) === 'true' ? false : true;\n this.setProperties({\n enabled: enabled\n }, !isDynamic);\n }\n break;\n case 'readonly':\n if (isNullOrUndefined(this.textareaOptions) || this.textareaOptions['readonly'] === undefined || isDynamic) {\n var readonly = this.element.getAttribute(key) === 'readonly' || this.element.getAttribute(key) === '' || this.element.getAttribute(key) === 'true' ? true : false;\n this.setProperties({\n readonly: readonly\n }, !isDynamic);\n }\n break;\n case 'placeholder':\n if (isNullOrUndefined(this.textareaOptions) || this.textareaOptions['placeholder'] === undefined || isDynamic) {\n this.setProperties({\n placeholder: this.element.placeholder\n }, !isDynamic);\n }\n break;\n case 'value':\n if ((isNullOrUndefined(this.textareaOptions) || this.textareaOptions['value'] === undefined || isDynamic) && this.element.value !== '') {\n this.setProperties({\n value: this.element.value\n }, !isDynamic);\n }\n break;\n }\n }\n }\n };\n TextArea.prototype.wireEvents = function () {\n EventHandler.add(this.element, 'focus', this.focusHandler, this);\n EventHandler.add(this.element, 'blur', this.focusOutHandler, this);\n EventHandler.add(this.element, 'keydown', this.keydownHandler, this);\n EventHandler.add(this.element, 'input', this.inputHandler, this);\n EventHandler.add(this.element, 'change', this.changeHandler, this);\n if (this.isForm) {\n EventHandler.add(this.formElement, 'reset', this.resetForm, this);\n }\n this.bindClearEvent();\n };\n TextArea.prototype.unWireEvents = function () {\n EventHandler.remove(this.element, 'focus', this.focusHandler);\n EventHandler.remove(this.element, 'blur', this.focusOutHandler);\n EventHandler.remove(this.element, 'keydown', this.keydownHandler);\n EventHandler.remove(this.element, 'input', this.inputHandler);\n EventHandler.remove(this.element, 'change', this.changeHandler);\n if (this.isForm) {\n EventHandler.remove(this.formElement, 'reset', this.resetForm);\n }\n };\n /**\n * Removes the component from the DOM and detaches all its related event handlers.\n * Also, it maintains the initial TextArea element from the DOM.\n *\n * @method destroy\n * @returns {void}\n */\n TextArea.prototype.destroy = function () {\n this.unWireEvents();\n if (this.showClearButton) {\n this.clearButton = document.getElementsByClassName('e-clear-icon')[0];\n }\n this.element.value = this.element.defaultValue;\n this.element.classList.remove('e-input', RESIZE_X, RESIZE_Y, RESIZE_XY, RESIZE_NONE);\n this.removeAttributes(['aria-disabled', 'aria-readonly', 'aria-labelledby', 'aria-multiline']);\n if (!isNullOrUndefined(this.textareaWrapper)) {\n this.textareaWrapper.container.insertAdjacentElement('afterend', this.element);\n detach(this.textareaWrapper.container);\n }\n this.textareaWrapper = null;\n Input.destroy({\n element: this.element,\n floatLabelType: this.floatLabelType,\n properties: this.properties\n }, this.clearButton);\n this.formElement = null;\n _super.prototype.destroy.call(this);\n };\n TextArea.prototype.focusHandler = function (args) {\n var eventArgs = {\n container: this.textareaWrapper.container,\n event: args,\n value: this.value\n };\n this.trigger('focus', eventArgs);\n };\n TextArea.prototype.focusOutHandler = function (args) {\n if (!(this.previousValue === null && this.value === null) && this.previousValue !== this.value) {\n this.raiseChangeEvent(args, true);\n }\n var eventArgs = {\n container: this.textareaWrapper.container,\n event: args,\n value: this.value\n };\n this.trigger('blur', eventArgs);\n };\n TextArea.prototype.keydownHandler = function (args) {\n if ((args.keyCode === 13 || args.keyCode === 9) && !((this.previousValue === null || this.previousValue === '') && (this.value === null || this.value === '') && this.element.value === '')) {\n this.setProperties({\n value: this.element.value\n }, true);\n }\n };\n TextArea.prototype.inputHandler = function (args) {\n var textareaObj = this;\n var eventArgs = {\n event: args,\n value: this.element.value,\n previousValue: this.inputPreviousValue,\n container: this.textareaWrapper.container\n };\n this.inputPreviousValue = this.element.value;\n /* istanbul ignore next */\n if (this.isAngular) {\n textareaObj.localChange({\n value: this.element.value\n });\n this.preventChange = true;\n }\n if (this.isVue) {\n this.preventChange = true;\n }\n this.trigger('input', eventArgs);\n args.stopPropagation();\n };\n TextArea.prototype.changeHandler = function (args) {\n this.setProperties({\n value: this.element.value\n }, true);\n if (this.previousValue !== this.value) {\n this.raiseChangeEvent(args, true);\n }\n args.stopPropagation();\n };\n TextArea.prototype.raiseChangeEvent = function (event, interaction) {\n var eventArgs = {\n event: event,\n value: this.value,\n previousValue: this.previousValue,\n container: this.textareaWrapper.container,\n isInteraction: interaction ? interaction : false,\n isInteracted: interaction ? interaction : false\n };\n this.preventChange = false;\n this.trigger('change', eventArgs);\n this.previousValue = this.value;\n };\n TextArea.prototype.updateHTMLAttributesToWrapper = function () {\n Input.updateHTMLAttributesToWrapper(this.htmlAttributes, this.textareaWrapper.container);\n };\n TextArea.prototype.updateHTMLAttributesToElement = function () {\n Input.updateHTMLAttributesToElement(this.htmlAttributes, this.element);\n };\n TextArea.prototype.bindClearEvent = function () {\n if (this.showClearButton) {\n if (this.enabled) {\n EventHandler.add(this.textareaWrapper.clearButton, 'mousedown touchstart', this.resetInputHandler, this);\n } else {\n EventHandler.remove(this.textareaWrapper.clearButton, 'mousedown touchstart', this.resetInputHandler);\n }\n }\n };\n TextArea.prototype.resetInputHandler = function (event) {\n event.preventDefault();\n if (!this.textareaWrapper.clearButton.classList.contains(HIDE_CLEAR$1) || this.textareaWrapper.container.classList.contains('e-static-clear')) {\n Input.setValue('', this.element, this.floatLabelType, this.showClearButton);\n this.setProperties({\n value: this.element.value\n }, true);\n }\n var eventArgs = {\n event: event,\n value: this.element.value,\n previousValue: this.inputPreviousValue,\n container: this.textareaWrapper.container\n };\n this.trigger('input', eventArgs);\n this.inputPreviousValue = this.element.value;\n this.raiseChangeEvent(event, true);\n if (closest(this.element, 'form')) {\n var element = this.element;\n var keyupEvent = document.createEvent('KeyboardEvent');\n keyupEvent.initEvent('keyup', false, true);\n element.dispatchEvent(keyupEvent);\n }\n };\n /**\n * Adding the multiple attributes as key-value pair to the TextArea element.\n *\n * @param {string} attributes - Specifies the attributes to be add to TextArea element.\n * @returns {void}\n */\n TextArea.prototype.addAttributes = function (attributes) {\n for (var _i = 0, _a = Object.keys(attributes); _i < _a.length; _i++) {\n var key = _a[_i];\n if (key === 'disabled') {\n this.setProperties({\n enabled: false\n }, true);\n Input.setEnabled(this.enabled, this.element, this.floatLabelType, this.textareaWrapper.container);\n } else if (key === 'readonly') {\n this.setProperties({\n readonly: true\n }, true);\n Input.setReadonly(this.readonly, this.element);\n } else if (key === 'class') {\n this.element.classList.add(attributes[\"\" + key]);\n } else if (key === 'placeholder') {\n this.setProperties({\n placeholder: attributes[\"\" + key]\n }, true);\n Input.setPlaceholder(this.placeholder, this.element);\n } else {\n this.element.setAttribute(key, attributes[\"\" + key]);\n }\n }\n };\n /**\n * Removing the multiple attributes as key-value pair to the TextArea element.\n *\n * @param { string[] } attributes - Specifies the attributes name to be removed from TextArea element.\n * @returns {void}\n */\n TextArea.prototype.removeAttributes = function (attributes) {\n for (var _i = 0, attributes_1 = attributes; _i < attributes_1.length; _i++) {\n var key = attributes_1[_i];\n if (key === 'disabled') {\n this.setProperties({\n enabled: true\n }, true);\n Input.setEnabled(this.enabled, this.element, this.floatLabelType, this.textareaWrapper.container);\n } else if (key === 'readonly') {\n this.setProperties({\n readonly: false\n }, true);\n Input.setReadonly(this.readonly, this.element);\n } else if (key === 'placeholder') {\n this.setProperties({\n placeholder: null\n }, true);\n Input.setPlaceholder(this.placeholder, this.element);\n } else {\n this.element.removeAttribute(key);\n }\n }\n };\n /**\n * Sets the focus to widget for interaction.\n *\n * @returns {void}\n */\n TextArea.prototype.focusIn = function () {\n if (document.activeElement !== this.element && this.enabled) {\n this.element.focus();\n if (this.textareaWrapper.container.classList.contains('e-input-group') || this.textareaWrapper.container.classList.contains('e-outline') || this.textareaWrapper.container.classList.contains('e-filled')) {\n addClass([this.textareaWrapper.container], [TEXTBOX_FOCUS]);\n }\n }\n };\n /**\n * Remove the focus from widget, if the widget is in focus state.\n *\n * @returns {void}\n */\n TextArea.prototype.focusOut = function () {\n if (document.activeElement === this.element && this.enabled) {\n this.element.blur();\n if (this.textareaWrapper.container.classList.contains('e-input-group') || this.textareaWrapper.container.classList.contains('e-outline') || this.textareaWrapper.container.classList.contains('e-filled')) {\n removeClass([this.textareaWrapper.container], [TEXTBOX_FOCUS]);\n }\n }\n };\n /**\n * Sets up the width for the textarea wrapper.\n *\n * @returns {void}\n */\n TextArea.prototype.setWrapperWidth = function () {\n if (this.enabled && (this.resizeMode !== 'None' && this.resizeMode !== 'Vertical' || this.cols || this.element.getAttribute('cols'))) {\n if (this.resizeMode !== 'None' && this.resizeMode !== 'Vertical') {\n if (this.textareaWrapper.container.style.width) {\n this.setElementWidth(this.textareaWrapper.container.style.width);\n this.textareaWrapper.container.style.width = '';\n this.textareaWrapper.container.classList.add(AUTO_WIDTH);\n }\n }\n this.textareaWrapper.container.classList.add(AUTO_WIDTH);\n } else {\n if (this.textareaWrapper.container.classList.contains(AUTO_WIDTH)) {\n this.textareaWrapper.container.classList.remove(AUTO_WIDTH);\n }\n }\n };\n TextArea.prototype.resetForm = function () {\n if (this.isAngular) {\n this.resetValue('');\n } else {\n this.resetValue(this.initialValue);\n }\n if (!isNullOrUndefined(this.textareaWrapper)) {\n var label = this.textareaWrapper.container.querySelector('.e-float-text');\n if (!isNullOrUndefined(label) && this.floatLabelType !== 'Always') {\n if (isNullOrUndefined(this.initialValue) || this.initialValue === '') {\n label.classList.add('e-label-bottom');\n label.classList.remove('e-label-top');\n } else if (this.initialValue !== '') {\n label.classList.add('e-label-top');\n label.classList.remove('e-label-bottom');\n }\n }\n }\n };\n TextArea.prototype.resetValue = function (value) {\n var prevOnChange = this.isProtectedOnChange;\n this.isProtectedOnChange = true;\n this.value = value;\n if (value == null && this.textareaWrapper.container.classList.contains('e-valid-input')) {\n this.textareaWrapper.container.classList.remove('e-valid-input');\n }\n this.isProtectedOnChange = prevOnChange;\n };\n TextArea.prototype.setElementWidth = function (width) {\n if (typeof width === 'number') {\n this.element.style.width = formatUnit(width);\n } else if (typeof width === 'string') {\n this.element.style.width = width.match(/px|%|em/) ? width : formatUnit(width);\n }\n };\n TextArea.prototype.getCurrentResizeClass = function (resizeMode) {\n return resizeMode === 'None' ? RESIZE_NONE : resizeMode === 'Both' ? RESIZE_XY : resizeMode === 'Horizontal' ? RESIZE_X : RESIZE_Y;\n };\n __decorate$7([Property(false)], TextArea.prototype, \"readonly\", void 0);\n __decorate$7([Property(null)], TextArea.prototype, \"value\", void 0);\n __decorate$7([Property('Never')], TextArea.prototype, \"floatLabelType\", void 0);\n __decorate$7([Property('')], TextArea.prototype, \"cssClass\", void 0);\n __decorate$7([Property(null)], TextArea.prototype, \"placeholder\", void 0);\n __decorate$7([Property({})], TextArea.prototype, \"htmlAttributes\", void 0);\n __decorate$7([Property(true)], TextArea.prototype, \"enabled\", void 0);\n __decorate$7([Property(false)], TextArea.prototype, \"showClearButton\", void 0);\n __decorate$7([Property(false)], TextArea.prototype, \"enablePersistence\", void 0);\n __decorate$7([Property(null)], TextArea.prototype, \"width\", void 0);\n __decorate$7([Property('Both')], TextArea.prototype, \"resizeMode\", void 0);\n __decorate$7([Property(null)], TextArea.prototype, \"maxLength\", void 0);\n __decorate$7([Property(null)], TextArea.prototype, \"cols\", void 0);\n __decorate$7([Property(null)], TextArea.prototype, \"rows\", void 0);\n __decorate$7([Event()], TextArea.prototype, \"created\", void 0);\n __decorate$7([Event()], TextArea.prototype, \"destroyed\", void 0);\n __decorate$7([Event()], TextArea.prototype, \"change\", void 0);\n __decorate$7([Event()], TextArea.prototype, \"blur\", void 0);\n __decorate$7([Event()], TextArea.prototype, \"focus\", void 0);\n __decorate$7([Event()], TextArea.prototype, \"input\", void 0);\n TextArea = __decorate$7([NotifyPropertyChanges], TextArea);\n return TextArea;\n}(Component);\nvar CaretPositionHelper = /** @__PURE__ @class */function () {\n function CaretPositionHelper() {}\n CaretPositionHelper.createStyledDiv = function (target, htmlContent) {\n var div = document.createElement('div');\n var styles = {\n position: 'absolute',\n left: -9999,\n top: 0,\n zIndex: -2000\n };\n this.properties.forEach(function (prop) {\n styles[\"\" + prop] = getComputedStyle(target)[prop];\n });\n Object.keys(styles).forEach(function (key) {\n div.style[\"\" + key] = styles[\"\" + key];\n });\n var scrollbarWidth = target.offsetWidth - target.clientWidth;\n div.style.width = target.clientWidth + scrollbarWidth + 'px';\n div.innerHTML = htmlContent;\n if (target && target.parentNode) {\n target.parentNode.insertBefore(div, target.nextSibling);\n }\n return div;\n };\n CaretPositionHelper.createCaretMarker = function (target, htmlContent) {\n var div = this.createStyledDiv(target, htmlContent);\n var marker = div.ownerDocument.getElementById('caret-position-marker');\n var position = {\n left: marker.offsetLeft,\n top: marker.offsetTop,\n height: marker.offsetHeight\n };\n if (div && div.parentNode) {\n div.parentNode.removeChild(div);\n }\n return position;\n };\n CaretPositionHelper.escapeHtml = function (value) {\n return value.replace(/<|>|`|\"|&/g, '?').replace(/\\r\\n|\\r|\\n/g, '
');\n };\n CaretPositionHelper.getCaretPosition = function (target) {\n var position = target.selectionStart || 0;\n var textBeforeCaret = target.value.slice(0, position);\n var textAfterCaret = target.value.slice(position);\n var content = \"\" + this.escapeHtml(textBeforeCaret) + \"\";\n content += '|';\n content += \"\" + this.escapeHtml(textAfterCaret) + \"\";\n var rect = this.createCaretMarker(target, content);\n rect.pos = position;\n return rect;\n };\n CaretPositionHelper.adjustScrollToCaretPosition = function (element) {\n var caretPosition = this.getCaretPosition(element);\n var lineHeight = parseFloat(window.getComputedStyle(element).lineHeight);\n if (caretPosition.top > element.clientHeight + element.scrollTop - lineHeight) {\n element.scrollTop = caretPosition.top - element.clientHeight + lineHeight;\n }\n };\n CaretPositionHelper.getTextAreaPosition = function (element) {\n var computedStyle = window.getComputedStyle(element);\n var position = this.getCaretPosition(element);\n return {\n top: position.top + parseFloat(computedStyle.borderTopWidth) + element.offsetTop - element.scrollTop,\n left: position.left + parseFloat(computedStyle.borderLeftWidth) + element.offsetLeft - element.scrollLeft - 0.25,\n height: position.height,\n elemStyle: computedStyle\n };\n };\n CaretPositionHelper.insertCharacter = function (element, text) {\n var start = element.selectionStart;\n var end = element.selectionEnd;\n element.value = element.value.substring(0, start) + text + element.value.substring(end);\n start += text.length;\n element.setSelectionRange(start, start);\n };\n CaretPositionHelper.properties = ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopStyle', 'borderRightStyle', 'borderBottomStyle', 'borderLeftStyle', 'borderTopWidth', 'boxSizing', 'fontFamily', 'fontSize', 'fontWeight', 'height', 'letterSpacing', 'lineHeight', 'marginBottom', 'marginLeft', 'marginRight', 'marginTop', 'outlineWidth', 'overflow', 'overflowX', 'overflowY', 'paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop', 'textAlign', 'textOverflow', 'textTransform', 'whiteSpace', 'wordBreak', 'wordWrap', 'width'];\n return CaretPositionHelper;\n}();\nvar __extends$8 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : new P(function (resolve) {\n resolve(result.value);\n }).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = undefined && undefined.__generator || function (thisArg, body) {\n var _ = {\n label: 0,\n sent: function () {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n },\n f,\n y,\n t,\n g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n return this;\n }), g;\n function verb(n) {\n return function (v) {\n return step([n, v]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n};\nvar ChatMessageRole = /*#__PURE__*/function (ChatMessageRole) {\n ChatMessageRole[\"System\"] = \"system\";\n ChatMessageRole[\"User\"] = \"user\";\n ChatMessageRole[\"Assistant\"] = \"assistant\";\n return ChatMessageRole;\n}(ChatMessageRole || {});\nvar SmartTextArea = /** @__PURE__ @class */function (_super) {\n __extends$8(SmartTextArea, _super);\n /**\n * Constructor for creating the widget\n *\n * @private\n * @param {SmartTextArea} options - Specifies Smart text area model\n * @param {string | HTMLTextAreaElement} element - Specifies target element\n */\n function SmartTextArea(options, element) {\n return _super.call(this, options, element) || this;\n }\n SmartTextArea.prototype.render = function () {\n _super.prototype.render.call(this);\n if (!(this.element instanceof HTMLTextAreaElement)) {\n return;\n }\n this.textArea = this.element;\n var smartTextArea = createElement('smart-textarea');\n smartTextArea.classList.add('e-smart-textarea');\n this.textArea.after(smartTextArea);\n if (this.showSuggestionOnPopup !== 'None') {\n var suggestionState = this.showSuggestionOnPopup === 'Enable' ? 'false' : 'true';\n this.textArea.setAttribute('data-inline-suggestions', suggestionState);\n }\n this.suggestionDisplay = this.shouldShowInlineSuggestions(this.textArea) ? new InlineSuggestion(smartTextArea, this.textArea) : new ContextSuggestion(smartTextArea, this.textArea);\n };\n SmartTextArea.prototype.wireEvents = function () {\n var _this = this;\n _super.prototype.wireEvents.call(this);\n EventHandler.add(this.element, 'keyup', this.handleKeyUp, this);\n EventHandler.add(this.element, 'keydown', this.handleKeyDown, this);\n EventHandler.add(this.element, 'mousedown', this.removeExistingOrPendingSuggestion, this);\n EventHandler.add(this.element, 'focusout', this.removeExistingOrPendingSuggestion, this);\n this.element.addEventListener('scroll', function () {\n return _this.suggestionDisplay.reject();\n }, {\n passive: true\n });\n };\n SmartTextArea.prototype.unWireEvents = function () {\n var _this = this;\n _super.prototype.unWireEvents.call(this);\n EventHandler.remove(this.element, 'keyup', this.handleKeyUp);\n EventHandler.remove(this.element, 'keydown', this.handleKeyDown);\n EventHandler.remove(this.element, 'mousedown', this.removeExistingOrPendingSuggestion);\n EventHandler.remove(this.element, 'focusout', this.removeExistingOrPendingSuggestion);\n this.element.removeEventListener('scroll', function () {\n return _this.suggestionDisplay.reject();\n });\n };\n SmartTextArea.prototype.keydownHandler = function () {\n // Overridden to prevent default behavior\n };\n SmartTextArea.prototype.shouldShowInlineSuggestions = function (textArea) {\n var inlineSuggestions = textArea.getAttribute('data-inline-suggestions');\n if (inlineSuggestions) {\n return inlineSuggestions.toLowerCase() === 'true';\n }\n return !('ontouchstart' in window);\n };\n SmartTextArea.prototype.handleKeyDown = function (event) {\n switch (event.key) {\n case 'Tab':\n if (this.suggestionDisplay.isShowing()) {\n this.suggestionDisplay.accept();\n event.preventDefault();\n }\n break;\n case 'Alt':\n case 'Control':\n case 'Shift':\n case 'Command':\n break;\n default:\n if (this.suggestionDisplay.isShowing() && this.suggestionDisplay.currentSuggestion.startsWith(event.key)) {\n CaretPositionHelper.insertCharacter(this.textArea, event.key);\n event.preventDefault();\n this.suggestionDisplay.show(this.suggestionDisplay.currentSuggestion.substring(event.key.length));\n CaretPositionHelper.adjustScrollToCaretPosition(this.textArea);\n } else {\n this.removeExistingOrPendingSuggestion();\n }\n break;\n }\n };\n SmartTextArea.prototype.handleKeyUp = function () {\n var _this = this;\n if (!this.suggestionDisplay.isShowing()) {\n clearTimeout(this.typingDebounceTimeout);\n this.typingDebounceTimeout = setTimeout(function () {\n return _this.handleTypingPaused();\n }, 350);\n }\n };\n SmartTextArea.prototype.handleTypingPaused = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (document.activeElement !== this.textArea) {\n return [2 /*return*/];\n }\n if (!(this.textArea.selectionStart === this.textArea.selectionEnd && (this.textArea.selectionStart === this.textArea.value.length || this.textArea.value[this.textArea.selectionStart] === '\\n'))) return [3 /*break*/, 2];\n return [4 /*yield*/, this.requestSuggestionAsync()];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2:\n return [2 /*return*/];\n }\n });\n });\n };\n SmartTextArea.prototype.removeExistingOrPendingSuggestion = function () {\n clearTimeout(this.typingDebounceTimeout);\n if (this.pendingSuggestionAbort) {\n this.pendingSuggestionAbort.abort();\n this.pendingSuggestionAbort = null;\n }\n this.suggestionDisplay.reject();\n };\n SmartTextArea.prototype.createSuggestionPrompt = function (textBefore, textAfter) {\n var stringBuilder = 'Predict what text the user in the given ROLE would insert at the cursor position indicated by ^^^.\\nOnly give predictions for which you have' + ' an EXTREMELY high confidence that the user would insert that EXACT text.\\nDo not make up new information. If you are not sure, ' + 'just reply with NO_PREDICTION.\\n\\nRULES:\\n1. Reply with OK:, then in square brackets the predicted text, then END_INSERTION, and no other output.\\n2. ' + 'When a specific value or quantity cannot be inferred and would need to be provided, use the word NEED_INFO.\\n3. ' + 'If there is not enough information to predict any words that the user would type next, just reply with the word NO_PREDICTION.' + '\\n4. NEVER invent new information. If you can not be sure what the user is about to type, ALWAYS stop the prediction with END_INSERTION.';\n var userPhrases = this.UserPhrases;\n if (userPhrases && userPhrases.length > 0) {\n stringBuilder += '\\nAlways try to use variations on the following phrases as part of the predictions:\\n';\n for (var _i = 0, userPhrases_1 = userPhrases; _i < userPhrases_1.length; _i++) {\n var phrase = userPhrases_1[_i];\n stringBuilder += \"- \" + phrase + \"\\n\";\n }\n }\n var chatMessageList = [{\n role: ChatMessageRole.System,\n content: stringBuilder\n }, {\n role: ChatMessageRole.User,\n content: 'ROLE: Family member sending a text\\nUSER_TEXT: Hey, it is a nice day - the weather is ^^^'\n }, {\n role: ChatMessageRole.Assistant,\n content: 'OK:[great!]END_INSERTION'\n }, {\n role: ChatMessageRole.User,\n content: 'ROLE: Customer service assistant\\nUSER_TEXT: You can find more information on^^^\\n\\nAlternatively, phone us.'\n }, {\n role: ChatMessageRole.Assistant,\n content: 'OK:[ our website at NEED_INFO]END_INSERTION'\n }, {\n role: ChatMessageRole.User,\n content: 'ROLE: Casual\\nUSER_TEXT: Oh I see!\\n\\nWell sure thing, we can'\n }, {\n role: ChatMessageRole.Assistant,\n content: 'OK:[ help you out with that!]END_INSERTION'\n }, {\n role: ChatMessageRole.User,\n content: 'ROLE: Storyteller\\nUSER_TEXT: Sir Digby Chicken Caesar, also know^^^'\n }, {\n role: ChatMessageRole.Assistant,\n content: 'OK:[n as NEED_INFO]END_INSERTION'\n }, {\n role: ChatMessageRole.User,\n content: 'ROLE: Customer support agent\\nUSER_TEXT: Goodbye for now.^^^'\n }, {\n role: ChatMessageRole.Assistant,\n content: 'NO_PREDICTION END_INSERTION'\n }, {\n role: ChatMessageRole.User,\n content: 'ROLE: Pirate\\nUSER_TEXT: Have you found^^^'\n }, {\n role: ChatMessageRole.Assistant,\n content: 'OK:[ the treasure, me hearties?]END_INSERTION'\n }, {\n role: ChatMessageRole.User,\n content: \"ROLE: \" + this.userRole + \"\\nUSER_TEXT: \" + textBefore + \"^^^\" + textAfter\n }];\n return {\n messages: chatMessageList,\n temperature: 0.0,\n maxTokens: 400,\n stopSequences: ['END_INSERTION', 'NEED_INFO'],\n frequencyPenalty: 0.0,\n presencePenalty: 0.0\n };\n };\n SmartTextArea.prototype.requestSuggestionAsync = function () {\n return __awaiter(this, void 0, void 0, function () {\n var requestDetails, suggestionData, chatConfig, insertSuggestion, response;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (this.pendingSuggestionAbort) {\n this.pendingSuggestionAbort.abort();\n return [2 /*return*/];\n }\n this.pendingSuggestionAbort = new AbortController();\n requestDetails = {\n textAreaValue: this.textArea.value,\n cursorPosition: this.textArea.selectionStart\n };\n suggestionData = {\n textBefore: requestDetails.textAreaValue.substring(0, requestDetails.cursorPosition),\n textAfter: requestDetails.textAreaValue.substring(requestDetails.cursorPosition)\n };\n chatConfig = this.createSuggestionPrompt(suggestionData.textBefore, suggestionData.textAfter);\n if (!(typeof this.aiSuggestionHandler === 'function')) return [3 /*break*/, 2];\n return [4 /*yield*/, this.aiSuggestionHandler(chatConfig)];\n case 1:\n response = _a.sent();\n insertSuggestion = this.validateSuggestion(response, suggestionData.textBefore);\n _a.label = 2;\n case 2:\n if (insertSuggestion && requestDetails.textAreaValue === this.textArea.value && requestDetails.cursorPosition === this.textArea.selectionStart) {\n if (!insertSuggestion.endsWith(' ')) {\n insertSuggestion += ' ';\n }\n this.suggestionDisplay.show(insertSuggestion);\n }\n return [2 /*return*/];\n }\n });\n });\n };\n SmartTextArea.prototype.validateSuggestion = function (response, textBefore) {\n var suggestion;\n if (typeof response !== 'string' || response.length <= 5 || response.indexOf('OK:[') !== 0) {\n return '';\n }\n var endIndex = this.indexOfAny(response, ['.', '?', '!']);\n if (endIndex > 0 && response.length > endIndex + 1 && response[endIndex + 1] === ' ') {\n response = response.substring(0, endIndex + 1);\n }\n suggestion = response.substring(4).replace(/[\\]\\s]+$/, '');\n if (textBefore.length > 0 && textBefore[textBefore.length - 1] === ' ') {\n suggestion = suggestion.replace(/^\\s+/, '');\n }\n return suggestion;\n };\n SmartTextArea.prototype.indexOfAny = function (str, chars) {\n for (var i = 0; i < str.length; i++) {\n if (chars.indexOf(str[\"\" + i]) !== -1) {\n return i;\n }\n }\n return -1;\n };\n SmartTextArea.prototype.getModuleName = function () {\n return 'smarttextarea';\n };\n SmartTextArea.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n this.textArea = null;\n this.suggestionDisplay = null;\n this.typingDebounceTimeout = null;\n };\n __decorate$8([Property('')], SmartTextArea.prototype, \"userRole\", void 0);\n __decorate$8([Property([])], SmartTextArea.prototype, \"UserPhrases\", void 0);\n __decorate$8([Property()], SmartTextArea.prototype, \"aiSuggestionHandler\", void 0);\n __decorate$8([Property('None')], SmartTextArea.prototype, \"showSuggestionOnPopup\", void 0);\n return SmartTextArea;\n}(TextArea);\nvar InlineSuggestion = /** @__PURE__ @class */function () {\n function InlineSuggestion(smartTextArea, textArea) {\n this.owner = smartTextArea;\n this.textArea = textArea;\n this.latestSuggestionText = '';\n this.suggestionStartPos = null;\n this.suggestionEndPos = null;\n this.virtualCaret = null;\n this.originalValueProperty = this.getOriginalValueProperty(textArea, 'value');\n }\n Object.defineProperty(InlineSuggestion.prototype, \"value\", {\n get: function () {\n var value = this.originalValueProperty.get.call(this.textArea);\n return this.isShowing() ? value.substring(0, this.suggestionStartPos) + value.substring(this.suggestionEndPos) : value;\n },\n set: function (newValue) {\n this.originalValueProperty.set.call(this.textArea, newValue);\n },\n enumerable: true,\n configurable: true\n });\n InlineSuggestion.prototype.getOriginalValueProperty = function (obj, property) {\n while (obj) {\n var descriptor = Object.getOwnPropertyDescriptor(obj, property);\n if (descriptor) {\n return descriptor;\n }\n obj = Object.getPrototypeOf(obj);\n }\n throw new Error(\"Property \" + property + \" not found on object or its prototype chain\");\n };\n Object.defineProperty(InlineSuggestion.prototype, \"valueIncludingSuggestion\", {\n get: function () {\n return this.originalValueProperty.get.call(this.textArea);\n },\n set: function (newValue) {\n this.originalValueProperty.set.call(this.textArea, newValue);\n },\n enumerable: true,\n configurable: true\n });\n InlineSuggestion.prototype.isShowing = function () {\n return this.suggestionStartPos !== null;\n };\n InlineSuggestion.prototype.show = function (suggestionText) {\n this.latestSuggestionText = suggestionText;\n this.suggestionStartPos = this.textArea.selectionStart;\n this.suggestionEndPos = this.suggestionStartPos + suggestionText.length;\n this.textArea.setAttribute('data-suggestion-visible', '');\n this.valueIncludingSuggestion = this.valueIncludingSuggestion.substring(0, this.suggestionStartPos) + suggestionText + this.valueIncludingSuggestion.substring(this.suggestionStartPos);\n this.textArea.setSelectionRange(this.suggestionStartPos, this.suggestionEndPos);\n if (!this.virtualCaret) {\n this.virtualCaret = new VirtualCaret(this.owner, this.textArea);\n }\n this.virtualCaret.show();\n };\n Object.defineProperty(InlineSuggestion.prototype, \"currentSuggestion\", {\n get: function () {\n return this.latestSuggestionText;\n },\n enumerable: true,\n configurable: true\n });\n InlineSuggestion.prototype.accept = function () {\n this.textArea.setSelectionRange(this.suggestionEndPos, this.suggestionEndPos);\n this.suggestionStartPos = null;\n this.suggestionEndPos = null;\n if (this.virtualCaret) {\n this.virtualCaret.hide();\n }\n this.textArea.removeAttribute('data-suggestion-visible');\n CaretPositionHelper.adjustScrollToCaretPosition(this.textArea);\n };\n InlineSuggestion.prototype.reject = function () {\n if (!this.isShowing()) {\n return;\n }\n var selectionStart = this.textArea.selectionStart;\n var selectionEnd = this.textArea.selectionEnd;\n this.valueIncludingSuggestion = this.valueIncludingSuggestion.substring(0, this.suggestionStartPos) + this.valueIncludingSuggestion.substring(this.suggestionEndPos);\n if (this.suggestionStartPos === selectionStart && this.suggestionEndPos === selectionEnd) {\n this.textArea.setSelectionRange(selectionStart, selectionStart);\n }\n this.suggestionStartPos = null;\n this.suggestionEndPos = null;\n this.textArea.removeAttribute('data-suggestion-visible');\n if (this.virtualCaret) {\n this.virtualCaret.hide();\n }\n };\n return InlineSuggestion;\n}();\nvar ContextSuggestion = /** @__PURE__ @class */function () {\n function ContextSuggestion(container, textArea) {\n var _this = this;\n this.latestSuggestionText = '';\n this.showing = false;\n this.textArea = textArea;\n this.suggestionElement = document.createElement('div');\n this.suggestionElement.classList.add('smart-textarea-suggestion-overlay');\n this.suggestionElement.addEventListener('mousedown', function (event) {\n return _this.handleSuggestionClicked(event);\n });\n this.suggestionElement.addEventListener('touchend', function (event) {\n return _this.handleSuggestionClicked(event);\n });\n this.suggestionPrefixElement = document.createElement('span');\n this.suggestionTextElement = document.createElement('span');\n this.suggestionElement.appendChild(this.suggestionPrefixElement);\n this.suggestionElement.appendChild(this.suggestionTextElement);\n this.suggestionPrefixElement.style.opacity = '0.3';\n var computedStyle = window.getComputedStyle(this.textArea);\n this.suggestionElement.style.font = computedStyle.font;\n this.suggestionElement.style.marginTop = 1.4 * parseFloat(computedStyle.fontSize) + \"px\";\n container.appendChild(this.suggestionElement);\n }\n Object.defineProperty(ContextSuggestion.prototype, \"currentSuggestion\", {\n get: function () {\n return this.latestSuggestionText;\n },\n enumerable: true,\n configurable: true\n });\n ContextSuggestion.prototype.show = function (suggestionText) {\n this.latestSuggestionText = suggestionText;\n this.suggestionPrefixElement.textContent = suggestionText[0] !== ' ' ? this.getPrefixText(this.textArea, 20) : '';\n this.suggestionTextElement.textContent = suggestionText;\n var position = CaretPositionHelper.getTextAreaPosition(this.textArea);\n var style = this.suggestionElement.style;\n style.minWidth = null;\n this.suggestionElement.classList.add('smart-textarea-suggestion-overlay-visible');\n style.zIndex = this.textArea.style.zIndex + 1;\n style.top = position.top + \"px\";\n var leftPosition = position.left - this.suggestionPrefixElement.offsetWidth;\n if (!style.left || Math.abs(parseFloat(style.left) - leftPosition) > 10) {\n style.left = leftPosition + \"px\";\n }\n this.showing = true;\n var computedStyle = window.getComputedStyle(this.suggestionElement);\n var lineHeight = parseFloat(computedStyle.lineHeight);\n var paddingTop = parseFloat(computedStyle.paddingTop);\n var paddingBottom = parseFloat(computedStyle.paddingBottom);\n var lines = Math.round((this.suggestionElement.offsetHeight - paddingTop - paddingBottom) / lineHeight);\n if (lines > 2) {\n var elementWidth = this.suggestionElement.offsetWidth;\n style.minWidth = \"calc(min(70vw, \" + lines * elementWidth / 2 + \"px))\";\n }\n var rect = this.suggestionElement.getBoundingClientRect();\n if (rect.right > document.body.clientWidth - 20) {\n style.left = \"calc(\" + (parseFloat(style.left) - (rect.right - document.body.clientWidth)) + \"px - 2rem)\";\n }\n };\n ContextSuggestion.prototype.accept = function () {\n if (this.showing) {\n CaretPositionHelper.insertCharacter(this.textArea, this.currentSuggestion);\n CaretPositionHelper.adjustScrollToCaretPosition(this.textArea);\n this.hide();\n }\n };\n ContextSuggestion.prototype.reject = function () {\n this.hide();\n };\n ContextSuggestion.prototype.hide = function () {\n if (this.showing) {\n this.showing = false;\n this.suggestionElement.classList.remove('smart-textarea-suggestion-overlay-visible');\n }\n };\n ContextSuggestion.prototype.isShowing = function () {\n return this.showing;\n };\n ContextSuggestion.prototype.handleSuggestionClicked = function (event) {\n event.preventDefault();\n event.stopImmediatePropagation();\n this.accept();\n };\n ContextSuggestion.prototype.getPrefixText = function (textArea, maxLength) {\n var value = textArea.value;\n var selectionStart = textArea.selectionStart;\n for (var i = selectionStart - 1; i > selectionStart - maxLength; i--) {\n if (i < 0 || /\\s/.test(value[\"\" + i])) {\n return value.substring(i + 1, selectionStart);\n }\n }\n return '';\n };\n return ContextSuggestion;\n}();\nvar VirtualCaret = /** @__PURE__ @class */function () {\n function VirtualCaret(smartTextArea, textArea) {\n this.textArea = textArea;\n this.caretDiv = document.createElement('div');\n this.caretDiv.classList.add('smart-textarea-caret');\n smartTextArea.appendChild(this.caretDiv);\n }\n VirtualCaret.prototype.show = function () {\n var textAreaPosition = CaretPositionHelper.getTextAreaPosition(this.textArea);\n var caretStyle = this.caretDiv.style;\n caretStyle.display = 'block';\n caretStyle.top = textAreaPosition.top + 'px';\n caretStyle.left = textAreaPosition.left + 'px';\n caretStyle.height = textAreaPosition.height + 'px';\n caretStyle.zIndex = this.textArea.style.zIndex;\n caretStyle.backgroundColor = textAreaPosition.elemStyle.caretColor;\n };\n VirtualCaret.prototype.hide = function () {\n this.caretDiv.style.display = 'none';\n };\n return VirtualCaret;\n}();\nvar __extends$9 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar SignatureBase = /** @__PURE__ @class */function (_super) {\n __extends$9(SignatureBase, _super);\n function SignatureBase() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n /* minDistance(distance between the two point) was calaculated for smoothness.*/\n _this.minDistance = 5;\n _this.previous = 0;\n /* interval handles for the smoothness in the mouse move event.*/\n _this.interval = 30;\n _this.timeout = null;\n _this.isSignatureEmpty = true;\n _this.backgroundLoaded = null;\n _this.isBlazor = false;\n _this.isResponsive = false;\n _this.signPointsColl = [];\n _this.signRatioPointsColl = [];\n _this.canRedraw = true;\n return _this;\n }\n /**\n * To Initialize the component rendering\n *\n * @private\n * @param {HTMLCanvasElement} element - Specifies the canvas element.\n * @param {BlazorDotnetObject} dotnetRef - Specifies for blazor client to server communication.\n * @returns {void}\n */\n SignatureBase.prototype.initialize = function (element, dotnetRef) {\n this.clearArray = [];\n this.element = element;\n this.canvasContext = this.element.getContext('2d');\n this.canvasContext.canvas.tabIndex = -1;\n if (dotnetRef) {\n this.dotnetRef = dotnetRef;\n this.isBlazor = true;\n if (this.signatureValue) {\n this.loadPersistedSignature();\n }\n }\n this.setHTMLProperties();\n if (isNullOrUndefined(this.signatureValue)) {\n this.updateSnapCollection(true);\n }\n this.wireEvents();\n if (!this.isBlazor) {\n this.trigger('created', null);\n }\n };\n SignatureBase.prototype.wireEvents = function () {\n if (isNullOrUndefined(this.pointColl) && !this.isReadOnly && !this.disabled) {\n EventHandler.add(this.canvasContext.canvas, 'mousedown touchstart', this.mouseDownHandler, this);\n EventHandler.add(this.canvasContext.canvas, 'keydown', this.keyboardHandler, this);\n window.addEventListener('resize', this.resizeHandler.bind(this));\n } else if (this.pointColl) {\n EventHandler.add(this.canvasContext.canvas, 'mousemove touchmove', this.mouseMoveHandler, this);\n EventHandler.add(this.canvasContext.canvas, 'mouseup touchend', this.mouseUpHandler, this);\n EventHandler.add(document, 'mouseup', this.mouseUpHandler, this);\n }\n };\n SignatureBase.prototype.unwireEvents = function (type) {\n if (type === 'mouseup' || type === 'touchend') {\n EventHandler.remove(this.canvasContext.canvas, 'mousemove touchmove', this.mouseMoveHandler);\n EventHandler.remove(this.canvasContext.canvas, 'mouseup touchend', this.mouseUpHandler);\n EventHandler.remove(document, 'mouseup', this.mouseUpHandler);\n } else {\n EventHandler.remove(this.canvasContext.canvas, 'mousedown touchstart', this.mouseDownHandler);\n EventHandler.remove(this.canvasContext.canvas, 'keydown', this.keyboardHandler);\n window.removeEventListener('resize', this.resizeHandler);\n }\n };\n SignatureBase.prototype.setHTMLProperties = function () {\n // eslint-disable-next-line max-len\n if (this.element.height === 150 && this.element.width === 300 && this.element.offsetHeight !== 0 && this.element.offsetWidth !== 0) {\n this.element.height = this.element.offsetHeight;\n this.element.width = this.element.offsetWidth;\n this.isResponsive = true;\n } else if ((this.element.height !== this.element.offsetHeight - 1 || this.element.width !== this.element.offsetWidth - 1) && this.element.offsetHeight !== 0 && this.element.offsetWidth !== 0) {\n this.element.height = this.element.offsetHeight;\n this.element.width = this.element.offsetWidth;\n }\n this.canvasContext.fillStyle = this.strokeColor;\n this.tempCanvas = this.createElement('canvas', {\n className: 'e-' + this.getModuleName() + '-temp'\n });\n this.tempContext = this.tempCanvas.getContext('2d');\n this.tempCanvas.width = this.element.width;\n this.tempCanvas.height = this.element.height;\n if (this.backgroundImage) {\n this.canvasContext.canvas.style.backgroundImage = 'url(' + this.backgroundImage + ')';\n this.canvasContext.canvas.style.backgroundRepeat = 'no-repeat';\n if (this.saveWithBackground) {\n this.setBackgroundImage(this.backgroundImage, 'temp');\n }\n } else if (this.backgroundColor) {\n this.canvasContext.canvas.style.backgroundColor = this.backgroundColor;\n }\n };\n SignatureBase.prototype.mouseDownHandler = function (e) {\n if (e.buttons === 1 || e.buttons === 2 || e.type === 'touchstart') {\n if (e.type === 'touchstart') {\n e.preventDefault();\n e.stopPropagation();\n }\n this.beginStroke(e);\n this.wireEvents();\n }\n };\n SignatureBase.prototype.mouseMoveHandler = function (e) {\n if (e.buttons === 1 || e.buttons === 2 || e.type === 'touchmove') {\n if (e.type === 'touchmove') {\n e.preventDefault();\n e.stopPropagation();\n }\n if (this.interval) {\n this.updateStrokeWithThrottle(e);\n } else {\n this.updateStroke(e);\n }\n }\n };\n SignatureBase.prototype.mouseUpHandler = function (e) {\n var args = {\n actionName: 'strokeUpdate'\n };\n if (e.type === 'touchstart') {\n e.preventDefault();\n e.stopPropagation();\n }\n this.endDraw();\n this.updateSnapCollection();\n this.unwireEvents(e.type);\n if (!this.isBlazor) {\n this.trigger('change', args);\n } else {\n this.dotnetRef.invokeMethodAsync('TriggerEventAsync', 'mouseUp');\n }\n this.signatureValue = this.snapColl[this.incStep];\n for (var i = 0; i < this.signPointsColl.length; i++) {\n this.signRatioPointsColl.push({\n x: this.signPointsColl[i].x / this.canvasContext.canvas.width,\n y: this.signPointsColl[i].y / this.canvasContext.canvas.height\n });\n }\n this.signPointsColl = [];\n };\n SignatureBase.prototype.keyboardHandler = function (e) {\n var _this = this;\n var args = {\n fileName: 'Signature',\n type: 'Png',\n cancel: false\n };\n switch (e.key) {\n case 'Delete':\n this.clear();\n break;\n case e.ctrlKey && 's':\n if (!this.isBlazor) {\n this.trigger('beforeSave', args, function (observableSaveArgs) {\n if (!args.cancel) {\n _this.save(observableSaveArgs.type, observableSaveArgs.fileName);\n }\n });\n } else {\n this.dotnetRef.invokeMethodAsync('TriggerEventAsync', 'beforeSave');\n }\n e.preventDefault();\n e.stopImmediatePropagation();\n break;\n case e.ctrlKey && 'z':\n this.undo();\n break;\n case e.ctrlKey && 'y':\n this.redo();\n break;\n }\n };\n SignatureBase.prototype.resizeHandler = function () {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var proxy = this;\n if (this.isResponsive && this.canRedraw) {\n this.canvasContext.canvas.width = this.element.offsetWidth;\n this.canvasContext.canvas.height = this.element.offsetHeight;\n this.canvasContext.scale(1, 1);\n var pointSize = (this.minStrokeWidth + this.maxStrokeWidth) / 2;\n for (var i = 0; i < this.signRatioPointsColl.length; i++) {\n this.arcDraw(this.signRatioPointsColl[i].x * this.canvasContext.canvas.width, this.signRatioPointsColl[i].y * this.canvasContext.canvas.height, pointSize);\n }\n this.signPointsColl = [];\n this.canvasContext.closePath();\n this.canvasContext.fill();\n } else {\n var restoreImg_1 = new Image();\n restoreImg_1.src = this.snapColl[this.incStep];\n restoreImg_1.onload = function () {\n proxy.canvasContext.clearRect(0, 0, proxy.element.width, proxy.element.height);\n proxy.canvasContext.drawImage(restoreImg_1, 0, 0, proxy.element.width, proxy.element.height);\n };\n }\n };\n SignatureBase.prototype.beginStroke = function (e) {\n this.internalRefresh();\n this.updateStroke(e);\n };\n SignatureBase.prototype.updateStroke = function (e) {\n var point = this.createPoint(e);\n this.addPoint(point);\n };\n SignatureBase.prototype.updateStrokeWithThrottle = function (args) {\n var now = Date.now();\n var remaining = this.interval - (now - this.previous);\n this.storedArgs = args;\n if (remaining <= 0 || remaining > this.interval) {\n if (this.timeout) {\n clearTimeout(this.timeout);\n this.timeout = null;\n }\n this.previous = now;\n this.updateStroke(this.storedArgs);\n if (!this.timeout) {\n this.storedArgs = null;\n }\n } else if (!this.timeout) {\n this.timeout = window.setTimeout(this.delay.bind(this), remaining);\n }\n };\n SignatureBase.prototype.delay = function () {\n this.previous = Date.now();\n this.timeout = null;\n this.updateStroke(this.storedArgs);\n if (!this.timeout) {\n this.storedArgs = null;\n }\n };\n SignatureBase.prototype.createPoint = function (e) {\n var rect = this.canvasContext.canvas.getBoundingClientRect();\n if (e.type === 'mousedown' || e.type === 'mousemove') {\n return this.point(e.clientX - rect.left, e.clientY - rect.top, new Date().getTime());\n } else {\n return this.point(e.touches[0].clientX - rect.left, e.touches[0].clientY - rect.top, new Date().getTime());\n }\n };\n /* Returns the current point corrdinates(x, y) and time.*/\n SignatureBase.prototype.point = function (pointX, pointY, time) {\n this.pointX = pointX;\n this.pointY = pointY;\n this.time = time || new Date().getTime();\n return {\n x: this.pointX,\n y: this.pointY,\n time: this.time\n };\n };\n SignatureBase.prototype.addPoint = function (point) {\n var points = this.pointColl;\n var controlPoint1;\n var controlPoint2;\n var lastPoint = points.length > 0 && points[points.length - 1];\n var isLastPointTooClose = lastPoint ? this.distanceTo(lastPoint) <= this.minDistance : false;\n if (!lastPoint || !(lastPoint && isLastPointTooClose)) {\n points.push(point);\n if (points.length > 2) {\n if (points.length === 3) {\n points.unshift(points[0]);\n }\n controlPoint1 = this.calculateCurveControlPoints(points[0], points[1], points[2]).controlPoint2;\n controlPoint2 = this.calculateCurveControlPoints(points[1], points[2], points[3]).controlPoint1;\n this.startPoint = points[1];\n this.controlPoint1 = controlPoint1;\n this.controlPoint2 = controlPoint2;\n this.endPoint = points[2];\n this.startDraw();\n points.shift();\n }\n }\n };\n SignatureBase.prototype.startDraw = function () {\n var velocity;\n velocity = this.pointVelocityCalc(this.startPoint);\n velocity = this.velocity * velocity + (1 - this.velocity) * this.lastVelocity;\n var newWidth = Math.max(this.maxStrokeWidth / (velocity + 1), this.minStrokeWidth);\n this.curveDraw(this.lastWidth, newWidth);\n this.lastVelocity = velocity;\n this.lastWidth = newWidth;\n };\n SignatureBase.prototype.endDraw = function () {\n if (isNullOrUndefined(this.pointColl)) {\n return;\n }\n var canDrawCurve = this.pointColl.length > 2;\n var point = this.pointColl[0];\n if (!canDrawCurve && point) {\n this.strokeDraw(point);\n }\n };\n /* Calculate the Bezier (x, y) coordinate of the curve. */\n SignatureBase.prototype.curveDraw = function (startWidth, endWidth) {\n var context = this.canvasContext;\n var width;\n var i;\n var t1;\n var t2;\n var t3;\n var u1;\n var u2;\n var u3;\n var x;\n var y;\n var widthValue = endWidth - startWidth;\n var bezierLength = this.bezierLengthCalc();\n var drawSteps = Math.ceil(bezierLength) * 2;\n context.beginPath();\n for (i = 0; i < drawSteps; i++) {\n t1 = i / drawSteps;\n t2 = t1 * t1;\n t3 = t2 * t1;\n u1 = 1 - t1;\n u2 = u1 * u1;\n u3 = u2 * u1;\n x = u3 * this.startPoint.x;\n x += 3 * u2 * t1 * this.controlPoint1.x;\n x += 3 * u1 * t2 * this.controlPoint2.x;\n x += t3 * this.endPoint.x;\n y = u3 * this.startPoint.y;\n y += 3 * u2 * t1 * this.controlPoint1.y;\n y += 3 * u1 * t2 * this.controlPoint2.y;\n y += t3 * this.endPoint.y;\n width = Math.min(startWidth + t3 * widthValue, this.maxStrokeWidth);\n this.arcDraw(x, y, width);\n }\n context.closePath();\n context.fill();\n this.isSignatureEmpty = false;\n };\n SignatureBase.prototype.strokeDraw = function (point) {\n var context = this.canvasContext;\n var pointSize = (this.minStrokeWidth + this.maxStrokeWidth) / 2;\n context.beginPath();\n this.arcDraw(point.x, point.y, pointSize);\n context.closePath();\n context.fill();\n this.isSignatureEmpty = false;\n };\n SignatureBase.prototype.arcDraw = function (x, y, size) {\n this.signPointsColl.push({\n x: x,\n y: y\n });\n var context = this.canvasContext;\n context.moveTo(x, y);\n context.arc(x, y, size, 0, 2 * Math.PI, false);\n };\n /* Utility functions for Bezier algorithm*/\n SignatureBase.prototype.calculateCurveControlPoints = function (p1, p2, p3) {\n var dx1 = p1.x - p2.x;\n var dy1 = p1.y - p2.y;\n var dx2 = p2.x - p3.x;\n var dy2 = p2.y - p3.y;\n var m1 = {\n x: (p1.x + p2.x) / 2.0,\n y: (p1.y + p2.y) / 2.0\n };\n var m2 = {\n x: (p2.x + p3.x) / 2.0,\n y: (p2.y + p3.y) / 2.0\n };\n var l1 = Math.sqrt(dx1 * dx1 + dy1 * dy1);\n var l2 = Math.sqrt(dx2 * dx2 + dy2 * dy2);\n var dxm = m1.x - m2.x;\n var dym = m1.y - m2.y;\n var k = l2 / (l1 + l2);\n var cm = {\n x: m2.x + dxm * k,\n y: m2.y + dym * k\n };\n var tx = p2.x - cm.x;\n var ty = p2.y - cm.y;\n return {\n controlPoint1: this.point(m1.x + tx, m1.y + ty, 0),\n controlPoint2: this.point(m2.x + tx, m2.y + ty, 0)\n };\n };\n /* Returns approximated bezier length of the curuve.*/\n SignatureBase.prototype.bezierLengthCalc = function () {\n var steps = 10;\n var length = 0;\n var i;\n var t;\n var pointx1;\n var pointy1;\n var pointx2;\n var pointy2;\n var pointx3;\n var pointy3;\n for (i = 0; i <= steps; i++) {\n t = i / steps;\n pointx1 = this.bezierPointCalc(t, this.startPoint.x, this.controlPoint1.x, this.controlPoint2.x, this.endPoint.x);\n pointy1 = this.bezierPointCalc(t, this.startPoint.y, this.controlPoint1.y, this.controlPoint2.y, this.endPoint.y);\n if (i > 0) {\n pointx3 = pointx1 - pointx2;\n pointy3 = pointy1 - pointy2;\n length += Math.sqrt(pointx3 * pointx3 + pointy3 * pointy3);\n }\n pointx2 = pointx1;\n pointy2 = pointy1;\n }\n return length;\n };\n /* Calculate parametric value of x or y given t and the\n four point(startpoint, controlpoint1, controlpoint2, endpoint) coordinates of a cubic bezier curve.*/\n SignatureBase.prototype.bezierPointCalc = function (t, startpoint, cp1, cp2, endpoint) {\n return startpoint * (1.0 - t) * (1.0 - t) * (1.0 - t) + 3.0 * cp1 * (1.0 - t) * (1.0 - t) * t + 3.0 * cp2 * (1.0 - t) * t * t + endpoint * t * t * t;\n };\n /* Velocity between the current point and last point.*/\n SignatureBase.prototype.pointVelocityCalc = function (startPoint) {\n return this.time !== startPoint.time ? this.distanceTo(startPoint) / (this.time - startPoint.time) : 0;\n };\n /* Distance between the current point and last point.*/\n SignatureBase.prototype.distanceTo = function (start) {\n return Math.sqrt(Math.pow(this.pointX - start.x, 2) + Math.pow(this.pointY - start.y, 2));\n };\n SignatureBase.prototype.isRead = function (isRead) {\n if (isRead) {\n EventHandler.remove(this.canvasContext.canvas, 'mousedown touchstart', this.mouseDownHandler);\n } else if (!this.disabled) {\n EventHandler.add(this.canvasContext.canvas, 'mousedown touchstart', this.mouseDownHandler, this);\n }\n };\n SignatureBase.prototype.enableOrDisable = function (isDisable) {\n this.disabled = isDisable;\n if (isDisable) {\n this.canvasContext.canvas.style.filter = 'opacity(0.5)';\n this.isRead(true);\n } else {\n this.canvasContext.canvas.style.filter = '';\n this.isRead(false);\n }\n };\n SignatureBase.prototype.updateSnapCollection = function (isClear) {\n if (isNullOrUndefined(this.incStep)) {\n this.incStep = -1;\n this.incStep++;\n this.snapColl = [];\n this.clearArray = [];\n } else {\n this.incStep++;\n }\n if (this.incStep < this.snapColl.length) {\n this.snapColl.length = this.incStep;\n }\n if (this.incStep > 0) {\n var canvasNew = this.createElement('canvas', {\n className: 'e-' + this.getModuleName() + '-wrapper'\n });\n var canvasContextNew = canvasNew.getContext('2d');\n canvasNew.width = this.canvasContext.canvas.width;\n canvasNew.height = this.canvasContext.canvas.height;\n canvasContextNew.drawImage(this.canvasContext.canvas, 0, 0, canvasNew.width, canvasNew.height);\n this.snapColl.push(canvasNew.toDataURL());\n } else {\n this.snapColl.push(this.canvasContext.canvas.toDataURL());\n }\n if (isClear) {\n this.clearArray.push(this.incStep);\n }\n };\n SignatureBase.prototype.setBackgroundImage = function (imageSrc, type) {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var proxy = this;\n var imageObj = new Image();\n imageObj.crossOrigin = 'anonymous';\n imageObj.src = imageSrc;\n if (type === 'temp') {\n imageObj.onload = function () {\n proxy.tempContext.globalCompositeOperation = 'source-over';\n proxy.tempContext.drawImage(imageObj, 0, 0, proxy.element.width, proxy.element.height);\n };\n } else {\n imageObj.onload = function () {\n proxy.canvasContext.globalCompositeOperation = 'source-over';\n proxy.canvasContext.drawImage(imageObj, 0, 0, proxy.element.width, proxy.element.height);\n proxy.updateSnapCollection();\n proxy.saveBackground(true);\n };\n this.canvasContext.clearRect(0, 0, this.canvasContext.canvas.width, this.canvasContext.canvas.height);\n }\n };\n SignatureBase.prototype.setBackgroundColor = function (color) {\n var canvasEle = this.canvasContext;\n canvasEle.strokeStyle = color;\n var i;\n var j;\n for (i = 1; i <= canvasEle.canvas.width; i++) {\n for (j = 1; j <= canvasEle.canvas.height; j++) {\n canvasEle.strokeRect(0, 0, i, j);\n }\n }\n this.updateSnapCollection();\n };\n SignatureBase.prototype.loadPersistedSignature = function () {\n if (isNullOrUndefined(this.signatureValue)) {\n return;\n }\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var proxy = this;\n var lastImage = new Image();\n lastImage.src = this.signatureValue;\n lastImage.onload = function () {\n proxy.canvasContext.clearRect(0, 0, proxy.element.width, proxy.element.height);\n proxy.canvasContext.drawImage(lastImage, 0, 0);\n proxy.updateSnapCollection();\n };\n this.isSignatureEmpty = false;\n };\n /**\n * To get the signature as Blob.\n *\n * @param {string} url - specify the url/base 64 string to get blob of the signature.\n * @returns {Blob}.\n */\n SignatureBase.prototype.getBlob = function (url) {\n var arr = url.split(',');\n var type = arr[0].match(/:(.*?);/)[1];\n var bstr = atob(arr[1]);\n var n = bstr.length;\n var u8arr = new Uint8Array(n);\n while (n--) {\n u8arr[n] = bstr.charCodeAt(n);\n }\n return new Blob([u8arr], {\n type: type\n });\n };\n SignatureBase.prototype.download = function (blob, fileName) {\n var blobUrl = URL.createObjectURL(blob);\n var a = document.createElement('a');\n a.href = blobUrl;\n a.target = '_parent';\n a.download = fileName;\n (document.body || document.documentElement).appendChild(a);\n a.click();\n a.parentNode.removeChild(a);\n };\n SignatureBase.prototype.internalRefresh = function () {\n this.pointColl = [];\n this.lastVelocity = 0;\n this.lastWidth = (this.minStrokeWidth + this.maxStrokeWidth) / 2;\n };\n /**\n * To refresh the signature.\n *\n * @returns {void}.\n */\n SignatureBase.prototype.refresh = function () {\n this.isResponsive = false;\n this.setHTMLProperties();\n this.resizeHandler();\n this.internalRefresh();\n };\n /**\n * Erases all the signature strokes signed by user.\n *\n * @returns {void}.\n */\n SignatureBase.prototype.clear = function () {\n var args = {\n actionName: 'clear'\n };\n this.canvasContext.clearRect(0, 0, this.canvasContext.canvas.width, this.canvasContext.canvas.height);\n this.tempContext.clearRect(0, 0, this.tempContext.canvas.width, this.tempContext.canvas.height);\n if (this.saveWithBackground && this.backgroundImage) {\n this.setBackgroundImage(this.backgroundImage, 'temp');\n }\n this.internalRefresh();\n this.signRatioPointsColl = [];\n this.updateSnapCollection(true);\n this.isSignatureEmpty = this.canRedraw = true;\n if (!this.isBlazor) {\n this.trigger('change', args);\n } else {\n this.dotnetRef.invokeMethodAsync('TriggerEventAsync', 'Clear');\n }\n };\n /**\n * Undo the last user action.\n *\n * @returns {void}.\n */\n SignatureBase.prototype.undo = function () {\n var args = {\n actionName: 'undo'\n };\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var proxy = this;\n if (this.incStep > 0) {\n this.incStep--;\n var undoImg_1 = new Image();\n undoImg_1.src = this.snapColl[this.incStep];\n undoImg_1.onload = function () {\n proxy.canvasContext.clearRect(0, 0, proxy.element.width, proxy.element.height);\n proxy.canvasContext.drawImage(undoImg_1, 0, 0, proxy.element.width, proxy.element.height);\n };\n }\n this.isClear();\n if (!this.isBlazor) {\n this.trigger('change', args);\n } else {\n this.dotnetRef.invokeMethodAsync('TriggerEventAsync', 'Undo');\n }\n };\n /**\n * Redo the last user action.\n *\n * @returns {void}.\n */\n SignatureBase.prototype.redo = function () {\n var args = {\n actionName: 'redo'\n };\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var proxy = this;\n if (this.incStep < this.snapColl.length - 1) {\n this.incStep++;\n var redoImg_1 = new Image();\n redoImg_1.src = this.snapColl[this.incStep];\n redoImg_1.onload = function () {\n proxy.canvasContext.clearRect(0, 0, proxy.element.width, proxy.element.height);\n proxy.canvasContext.drawImage(redoImg_1, 0, 0, proxy.element.width, proxy.element.height);\n };\n }\n this.isClear();\n if (!this.isBlazor) {\n this.trigger('change', args);\n } else {\n this.dotnetRef.invokeMethodAsync('TriggerEventAsync', 'Redo');\n }\n };\n SignatureBase.prototype.isClear = function () {\n if (this.clearArray) {\n var empty = false;\n for (var i = 0; i < this.clearArray.length; i++) {\n if (this.clearArray[i] === this.incStep) {\n this.isSignatureEmpty = true;\n empty = true;\n }\n }\n if (!empty) {\n this.isSignatureEmpty = false;\n }\n }\n };\n /**\n * To check whether the signature is empty or not.\n *\n * @returns {boolean}.\n */\n SignatureBase.prototype.isEmpty = function () {\n return this.isSignatureEmpty;\n };\n /**\n * To check whether the undo collection is empty or not.\n *\n * @returns {boolean}.\n */\n SignatureBase.prototype.canUndo = function () {\n return this.incStep > 0;\n };\n /**\n * To check whether the redo collection is empty or not.\n *\n * @returns {boolean}.\n */\n SignatureBase.prototype.canRedo = function () {\n return this.incStep < this.snapColl.length - 1;\n };\n /**\n * To draw the signature based on the given text, with the font family and font size.\n *\n * @param {string} text - specify text to be drawn as signature.\n * @param {string} fontFamily - specify font family of a signature.\n * @param {number} fontSize - specify font size of a signature.\n * @param {number} x- Specifies the x-coordinate to start the text of a signature. Default to the center point of the image if it not specified.\n * @param {number} y - Specifies the y-coordinate to start the text of a signature. Default to the center point of the image if it not specified.\n *\n * @returns {void}.\n */\n SignatureBase.prototype.draw = function (text, fontFamily, fontSize, x, y) {\n var args = {\n actionName: 'draw-text'\n };\n this.canvasContext.clearRect(0, 0, this.canvasContext.canvas.width, this.canvasContext.canvas.height);\n fontFamily = fontFamily || 'Arial';\n fontSize = fontSize || 30;\n this.canvasContext.font = fontSize + 'px ' + fontFamily;\n var startX = this.element.width / 2;\n var startY = this.element.height / 2;\n if (isNullOrUndefined(x) && isNullOrUndefined(y)) {\n this.canvasContext.textAlign = 'center';\n this.canvasContext.textBaseline = 'middle';\n } else {\n startX = isNullOrUndefined(x) ? startX : x;\n startY = isNullOrUndefined(y) ? startY + fontSize / 2 : y + fontSize / 2;\n }\n this.canvasContext.fillText(text, startX, startY);\n this.updateSnapCollection();\n this.isSignatureEmpty = false;\n this.trigger('change', args);\n };\n /**\n * To load the signature with the given base 64 string, height and width.\n *\n * @param {string} signature - specify the url/base 64 string to be drawn as signature.\n * @param {number} width - specify the width of the loaded signature image.\n * @param {number} height - specify the height of the loaded signature image.\n * @returns {void}.\n */\n SignatureBase.prototype.load = function (signature, width, height) {\n height = height || this.element.height;\n width = width || this.element.width;\n this.canvasContext.clearRect(0, 0, this.canvasContext.canvas.width, this.canvasContext.canvas.height);\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var proxy = this;\n var bitmapImage = new Image();\n bitmapImage.src = signature;\n if (signature.slice(0, 4) !== 'data') {\n bitmapImage.crossOrigin = 'anonymous';\n }\n bitmapImage.onload = function () {\n Promise.all([createImageBitmap(bitmapImage, 0, 0, width, height)]).then(function (results) {\n var tempCanvas = document.createElement('canvas');\n tempCanvas.width = width;\n tempCanvas.height = height;\n tempCanvas.getContext('2d').drawImage(results[0], 0, 0);\n if (signature.slice(0, 4) !== 'data') {\n proxy.canvasContext.globalCompositeOperation = 'source-over';\n }\n proxy.canvasContext.drawImage(tempCanvas, 0, 0, width, height, 0, 0, proxy.element.width, proxy.element.height);\n proxy.updateSnapCollection();\n });\n };\n this.isSignatureEmpty = this.canRedraw = false;\n };\n SignatureBase.prototype.saveBackground = function (savebg) {\n var imageSrc;\n if (savebg && this.backgroundImage) {\n imageSrc = this.snapColl[this.incStep - 1];\n } else {\n imageSrc = this.snapColl[this.incStep];\n }\n if (!savebg) {\n this.canvasContext.clearRect(0, 0, this.canvasContext.canvas.width, this.canvasContext.canvas.height);\n if (this.backgroundImage) {\n this.setBackgroundImage(this.backgroundImage);\n } else if (this.backgroundColor) {\n this.setBackgroundColor(this.backgroundColor);\n savebg = true;\n }\n }\n if (savebg) {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var proxy_1 = this;\n var imageObj_1 = new Image();\n imageObj_1.crossOrigin = 'anonymous';\n imageObj_1.src = imageSrc;\n imageObj_1.onload = function () {\n proxy_1.backgroundLoaded = true;\n proxy_1.canvasContext.globalCompositeOperation = 'source-over';\n proxy_1.canvasContext.drawImage(imageObj_1, 0, 0, proxy_1.element.width, proxy_1.element.height);\n proxy_1.save(proxy_1.fileType, proxy_1.fileName);\n };\n }\n };\n /**\n * To save the signature with the given file type and file name.\n *\n * @param {SignatureFileType} type - specify type of the file to be saved a signature.\n * @param {string} fileName - specify name of the file to be saved a signature.\n *\n * @returns {void}.\n */\n SignatureBase.prototype.save = function (type, fileName) {\n if (this.saveWithBackground && this.backgroundLoaded == null && (this.backgroundImage || this.backgroundColor)) {\n this.backgroundLoaded = false;\n this.fileType = type;\n this.fileName = fileName;\n this.saveBackground(false);\n } else if (type === 'Svg') {\n fileName = fileName || 'Signature';\n this.toSVG(fileName, this.canvasContext.canvas.toDataURL('image/png'));\n } else if (type === 'Jpeg') {\n fileName = fileName || 'Signature';\n if (!this.saveWithBackground || this.saveWithBackground && !(this.backgroundImage || this.backgroundColor)) {\n this.toJPEG(fileName);\n } else {\n var dataURL = this.canvasContext.canvas.toDataURL('image/jpeg');\n this.download(this.getBlob(dataURL), fileName + '.' + 'jpeg');\n }\n } else {\n fileName = fileName || 'Signature';\n var dataURL = this.canvasContext.canvas.toDataURL('image/png');\n this.download(this.getBlob(dataURL), fileName + '.' + 'png');\n }\n if (this.saveWithBackground && this.backgroundLoaded) {\n this.resetSnap();\n }\n };\n SignatureBase.prototype.resetSnap = function () {\n this.canvasContext.clearRect(0, 0, this.canvasContext.canvas.width, this.canvasContext.canvas.height);\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var proxy = this;\n var restoreObj = new Image();\n restoreObj.src = this.snapColl[this.incStep - 1];\n restoreObj.onload = function () {\n proxy.canvasContext.drawImage(restoreObj, 0, 0, proxy.element.width, proxy.element.height);\n proxy.updateSnapCollection();\n };\n this.backgroundLoaded = null;\n this.snapColl.pop();\n this.incStep--;\n this.snapColl.pop();\n this.incStep--;\n };\n SignatureBase.prototype.toJPEG = function (fileName) {\n var _this = this;\n var imageSrc = this.snapColl[this.incStep];\n this.setBackgroundColor('#ffffff');\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var proxy = this;\n var imageObj = new Image();\n imageObj.crossOrigin = 'anonymous';\n imageObj.src = imageSrc;\n imageObj.onload = function () {\n proxy.canvasContext.globalCompositeOperation = 'source-over';\n proxy.canvasContext.drawImage(imageObj, 0, 0, proxy.element.width, proxy.element.height);\n var dataURL = proxy.canvasContext.canvas.toDataURL('image/jpeg');\n proxy.download(proxy.getBlob(dataURL), fileName + '.' + 'jpeg');\n proxy.canvasContext.clearRect(0, 0, proxy.canvasContext.canvas.width, proxy.canvasContext.canvas.height);\n _this.resizeHandler();\n };\n this.snapColl.pop();\n this.incStep--;\n };\n SignatureBase.prototype.toSVG = function (fileName, dataUrl) {\n var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n svg.setAttribute('width', this.canvasContext.canvas.width.toString());\n svg.setAttribute('height', this.canvasContext.canvas.height.toString());\n var XLinkNS = 'http://www.w3.org/1999/xlink';\n var img = document.createElementNS('http://www.w3.org/2000/svg', 'image');\n img.setAttributeNS(null, 'height', this.canvasContext.canvas.height.toString());\n img.setAttributeNS(null, 'width', this.canvasContext.canvas.width.toString());\n img.setAttributeNS(XLinkNS, 'xlink:href', dataUrl);\n svg.appendChild(img);\n var prefix = 'data:image/svg+xml;base64,';\n var header = '';\n var footer = '';\n var body = svg.innerHTML;\n var data = header + body + footer;\n var svgDataUrl = prefix + btoa(data);\n if (fileName == null) {\n return svgDataUrl;\n } else {\n this.download(this.getBlob(svgDataUrl), fileName + '.' + 'svg');\n return null;\n }\n };\n /**\n * To save the signature as Blob.\n *\n * @returns {Blob}.\n */\n SignatureBase.prototype.saveAsBlob = function () {\n return this.getBlob(this.canvasContext.canvas.toDataURL('image/png'));\n };\n /**\n * To get the signature as Base 64.\n *\n * @private\n * @param {SignatureFileType} type - Specifies the type of the image format.\n * @returns {string}.\n */\n SignatureBase.prototype.getSignature = function (type) {\n if (this.saveWithBackground && this.backgroundColor && !this.backgroundImage) {\n this.tempContext.fillStyle = this.backgroundColor;\n this.tempContext.fillRect(0, 0, this.canvasContext.canvas.width, this.canvasContext.canvas.height);\n } else if (!this.backgroundColor && !this.backgroundImage && type === 'Jpeg') {\n this.tempContext.fillStyle = '#fff';\n this.tempContext.fillRect(0, 0, this.canvasContext.canvas.width, this.canvasContext.canvas.height);\n }\n this.tempContext.drawImage(this.element, 0, 0);\n if (type === 'Jpeg') {\n return this.tempCanvas.toDataURL('image/jpeg');\n } else if (type === 'Svg') {\n return this.toSVG(null, this.tempCanvas.toDataURL('image/png'));\n } else {\n return this.tempCanvas.toDataURL('image/png');\n }\n };\n /**\n * Get component name.\n *\n * @returns {string} - Module Name\n * @private\n */\n SignatureBase.prototype.getModuleName = function () {\n return 'signature';\n };\n /**\n * To get the properties to be maintained in the persisted state.\n *\n * @returns {string} - Persist data\n */\n SignatureBase.prototype.getPersistData = function () {\n this.signatureValue = this.snapColl[this.incStep];\n return this.addOnPersist(['signatureValue']);\n };\n /**\n * Removes the component from the DOM and detaches all its related event handlers.\n * Also it maintains the initial input element from the DOM.\n *\n * @method destroy\n * @returns {void}\n */\n SignatureBase.prototype.destroy = function () {\n if (this.getModuleName() !== 'image-editor') {\n this.unwireEvents(null);\n removeClass([this.element], 'e-' + this.getModuleName());\n this.element.removeAttribute('tabindex');\n this.pointColl = null;\n }\n _super.prototype.destroy.call(this);\n };\n /**\n * Modified onPropertyChanged method for both blazor and EJ2 signature component.\n *\n * @private\n * @param {string} key - Specifies the property, which changed.\n * @param {string} value - Specifies the property value changed.\n * @returns {void}\n */\n SignatureBase.prototype.propertyChanged = function (key, value) {\n var canvasNew = this.canvasContext;\n switch (key) {\n case 'backgroundColor':\n canvasNew.canvas.style.backgroundColor = value;\n this.backgroundColor = value;\n break;\n case 'backgroundImage':\n canvasNew.canvas.style.backgroundImage = 'url(' + value + ')';\n this.backgroundImage = value;\n if (this.saveWithBackground) {\n this.setBackgroundImage(this.backgroundImage, 'temp');\n }\n break;\n case 'strokeColor':\n canvasNew.fillStyle = value;\n this.strokeColor = value;\n break;\n case 'saveWithBackground':\n this.saveWithBackground = value;\n break;\n case 'maxStrokeWidth':\n this.maxStrokeWidth = value;\n break;\n case 'minStrokeWidth':\n this.minStrokeWidth = value;\n break;\n case 'velocity':\n this.velocity = value;\n break;\n case 'isReadOnly':\n this.isRead(value);\n break;\n case 'disabled':\n this.enableOrDisable(value);\n break;\n }\n };\n return SignatureBase;\n}(Component);\nvar __extends$a = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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};\n/**\n * The Signature component allows user to draw smooth signatures as vector outline of strokes using variable width bezier curve interpolation.\n * It allows to save signature as image.\n * You can use your finger, pen, or mouse on a tablet, touchscreen, etc., to draw your own signature on this Signature component.\n * Signature component is a user interface to draw the Signature or Text.\n * It provides supports for various Background color, Stroke color and Background Image.\n * ```html\n * \n * ```\n * ```typescript\n * \n * ```\n */\nvar Signature = /** @__PURE__ @class */function (_super) {\n __extends$a(Signature, _super);\n /**\n * Constructor for creating the widget.\n *\n * @param {SignatureModel} options - Specifies the Signature model.\n * @param {string | HTMLCanvasElement} element - Specifies the element.\n * @private\n */\n function Signature(options, element) {\n return _super.call(this, options, element) || this;\n }\n Signature.prototype.preRender = function () {\n // pre render code snippets\n };\n /**\n * To Initialize the component rendering\n *\n * @private\n * @returns {void}\n */\n Signature.prototype.render = function () {\n this.initialize();\n };\n Signature.prototype.initialize = function () {\n this.element.setAttribute('role', 'img');\n this.element.setAttribute('aria-label', 'signature');\n addClass([this.element], 'e-' + this.getModuleName());\n _super.prototype.initialize.call(this, this.element);\n if (this.enablePersistence) {\n this.loadPersistedSignature();\n }\n };\n /**\n * To get component name.\n *\n * @returns {string} - Module Name\n * @private\n */\n Signature.prototype.getModuleName = function () {\n return _super.prototype.getModuleName.call(this);\n };\n /**\n * To get the properties to be maintained in the persisted state.\n *\n * @returns {string} - Persist data\n */\n Signature.prototype.getPersistData = function () {\n return _super.prototype.getPersistData.call(this);\n };\n /**\n * Called internally if any of the property value changed.\n *\n * @param {SignatureModel} newProp - Specifies new properties\n * @param {SignatureModel} oldProp - Specifies old properties\n * @returns {void}\n * @private\n */\n Signature.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'backgroundColor':\n _super.prototype.propertyChanged.call(this, prop, newProp.backgroundColor);\n break;\n case 'backgroundImage':\n _super.prototype.propertyChanged.call(this, prop, newProp.backgroundImage);\n break;\n case 'strokeColor':\n if (newProp.strokeColor !== oldProp.strokeColor) {\n _super.prototype.propertyChanged.call(this, prop, newProp.strokeColor);\n }\n break;\n case 'maxStrokeWidth':\n if (newProp.maxStrokeWidth !== oldProp.maxStrokeWidth) {\n _super.prototype.propertyChanged.call(this, prop, newProp.maxStrokeWidth);\n }\n break;\n case 'minStrokeWidth':\n if (newProp.minStrokeWidth !== oldProp.minStrokeWidth) {\n _super.prototype.propertyChanged.call(this, prop, newProp.minStrokeWidth);\n }\n break;\n case 'velocity':\n if (newProp.velocity !== oldProp.velocity) {\n _super.prototype.propertyChanged.call(this, prop, newProp.velocity);\n }\n break;\n case 'saveWithBackground':\n _super.prototype.propertyChanged.call(this, prop, newProp.saveWithBackground);\n break;\n case 'isReadOnly':\n _super.prototype.propertyChanged.call(this, prop, newProp.isReadOnly);\n break;\n case 'disabled':\n _super.prototype.propertyChanged.call(this, prop, newProp.disabled);\n break;\n }\n }\n };\n __decorate$9([Property('')], Signature.prototype, \"backgroundColor\", void 0);\n __decorate$9([Property('')], Signature.prototype, \"backgroundImage\", void 0);\n __decorate$9([Property(false)], Signature.prototype, \"disabled\", void 0);\n __decorate$9([Property(false)], Signature.prototype, \"isReadOnly\", void 0);\n __decorate$9([Property(true)], Signature.prototype, \"saveWithBackground\", void 0);\n __decorate$9([Property('#000000')], Signature.prototype, \"strokeColor\", void 0);\n __decorate$9([Property(0.5)], Signature.prototype, \"minStrokeWidth\", void 0);\n __decorate$9([Property(2)], Signature.prototype, \"maxStrokeWidth\", void 0);\n __decorate$9([Property(0.7)], Signature.prototype, \"velocity\", void 0);\n __decorate$9([Property('en-US')], Signature.prototype, \"locale\", void 0);\n __decorate$9([Property(false)], Signature.prototype, \"enableRtl\", void 0);\n __decorate$9([Property(false)], Signature.prototype, \"enablePersistence\", void 0);\n __decorate$9([Event()], Signature.prototype, \"beforeSave\", void 0);\n __decorate$9([Event()], Signature.prototype, \"change\", void 0);\n __decorate$9([Event()], Signature.prototype, \"created\", void 0);\n Signature = __decorate$9([NotifyPropertyChanges], Signature);\n return Signature;\n}(SignatureBase);\nvar __extends$b = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 ICONCSS = 'e-rating-icon e-icons e-star-filled';\nvar ITEMLIST = 'e-rating-item-list';\nvar ITEMCONTAINER = 'e-rating-item-container';\nvar SELECTED = 'e-rating-selected';\nvar INTERMEDIATE = 'e-rating-intermediate';\nvar LABEL = 'e-rating-label';\nvar RESET = 'e-icons e-reset';\nvar HIDDEN = 'e-rating-hidden';\nvar DISABLED$2 = 'e-disabled';\nvar READONLY = 'e-rating-readonly';\nvar RTL$2 = 'e-rtl';\nvar ANIMATION = 'e-rating-animation';\nvar FULLTEMPLATE = 'e-rating-full';\nvar EMPTYTEMPLATE = 'e-rating-empty';\nvar SELECTEDVALUE = 'e-selected-value';\nvar RATINGVALUE = '--rating-value';\n/**\n * Defines where to position the label in rating\n */\nvar LabelPosition = /*#__PURE__*/function (LabelPosition) {\n /**\n * The label is positioned at the top center of the rating component.\n */\n LabelPosition[\"Top\"] = \"Top\";\n /**\n * The label is positioned at the bottom center of the rating component.\n */\n LabelPosition[\"Bottom\"] = \"Bottom\";\n /**\n * The label is positioned at the left side of the rating component.\n */\n LabelPosition[\"Left\"] = \"Left\";\n /**\n * The label is positioned at the right side of the rating component.\n */\n LabelPosition[\"Right\"] = \"Right\";\n return LabelPosition;\n}(LabelPosition || {});\n/**\n * Defines the precision type of the rating.\n * It is used to component the granularity of the rating, allowing users to provide ratings with varying levels of precision.\n */\nvar PrecisionType = /*#__PURE__*/function (PrecisionType) {\n /**\n * The rating is increased in whole number increments.\n */\n PrecisionType[\"Full\"] = \"Full\";\n /**\n * The rating is increased in increments of 0.5 (half).\n */\n PrecisionType[\"Half\"] = \"Half\";\n /**\n * The rating is increased in increments of 0.25 (quarter).\n */\n PrecisionType[\"Quarter\"] = \"Quarter\";\n /**\n * The rating is increased in increments of 0.1.\n */\n PrecisionType[\"Exact\"] = \"Exact\";\n return PrecisionType;\n}(PrecisionType || {});\n/**\n * The Rating component allows the user to rate something by clicking on a set of symbols on a numeric scale.\n * This allows users to provide feedback or ratings for products, services, or content.\n *\n * ```html\n * \n * ```\n * ```typescript\n * \n * ```\n */\nvar Rating = /** @__PURE__ @class */function (_super) {\n __extends$b(Rating, _super);\n /**\n * Constructor for creating the widget\n *\n * @param {RatingModel} options - Specifies the rating model\n * @param {string|HTMLButtonElement} element - Specifies the target element\n */\n function Rating(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.itemElements = [];\n return _this;\n }\n Rating.prototype.preRender = function () {\n if (!this.element.id) {\n this.element.id = getUniqueID('e-' + this.getModuleName());\n }\n this.keyConfigs = {\n downarrow: 'downarrow',\n leftarrow: 'leftarrow',\n rightarrow: 'rightarrow',\n uparrow: 'uparrow',\n space: 'space'\n };\n this.tooltipOpen = false;\n this.isTouchSelected = false;\n };\n Rating.prototype.render = function () {\n this.initialize();\n this.updateMinValue();\n this.updateTemplateFunction();\n this.triggerChange(null, this.value, false);\n this.renderItems();\n this.displayLabel();\n };\n Rating.prototype.initialize = function () {\n this.wrapper = this.createElement('div', {\n className: 'e-' + this.getModuleName() + '-container '\n });\n this.element.parentNode.insertBefore(this.wrapper, this.element);\n this.wrapper.appendChild(this.element);\n if (this.element.getAttribute('name') == null) {\n this.element.setAttribute('name', this.element.id);\n }\n attributes(this.element, {\n 'aria-label': 'rating'\n });\n this.renderItemList();\n this.updateReset();\n if (this.readOnly) {\n this.wrapper.classList.add(READONLY);\n }\n if (!this.visible) {\n this.wrapper.classList.add(HIDDEN);\n }\n if (this.enableRtl) {\n this.wrapper.classList.add(RTL$2);\n }\n if (this.enableAnimation) {\n this.wrapper.classList.add(ANIMATION);\n }\n if (this.cssClass) {\n addClass([this.wrapper], this.cssClass.split(' '));\n }\n this.updateTooltip();\n this.wireKeyboardEvent();\n this.updateDisabled();\n };\n Rating.prototype.updateDisabled = function () {\n this.wrapper.classList[this.disabled ? 'add' : 'remove'](DISABLED$2);\n attributes(this.ratingItemList, {\n 'tabindex': this.disabled ? '-1' : '0'\n });\n this.updateResetButton();\n };\n Rating.prototype.updateResetButton = function () {\n if (this.allowReset) {\n var isDisabled = this.value <= this.min || this.disabled;\n this.resetElement.classList[isDisabled ? 'add' : 'remove'](DISABLED$2);\n attributes(this.resetElement, {\n 'tabindex': isDisabled ? '-1' : '0',\n 'aria-hidden': isDisabled.toString()\n });\n }\n };\n Rating.prototype.renderItemList = function () {\n var _this = this;\n this.ratingItemList = this.createElement('div', {\n className: ITEMLIST,\n id: this.element.id + '_item-list'\n });\n attributes(this.ratingItemList, {\n 'aria-label': 'rating',\n 'role': 'slider'\n });\n this.wrapper.appendChild(this.ratingItemList);\n EventHandler.add(this.ratingItemList, 'touchmove', function (e) {\n return _this.touchMoveHandler(e);\n }, this);\n EventHandler.add(this.ratingItemList, Browser.touchEndEvent, this.touchEndHandler, this);\n };\n Rating.prototype.touchMoveHandler = function (e) {\n if (!this.isTouchSelected) {\n this.wrapper.classList.add('e-rating-touch');\n this.isTouchSelected = true;\n }\n this.wrapper.classList.add('e-touch-select');\n var rect = this.ratingItemList.getBoundingClientRect();\n var x = e.touches[0].clientX - rect.x;\n var currValue = x / rect.width * this.itemsCount;\n currValue = this.enableRtl ? this.itemsCount - currValue : currValue;\n currValue = currValue < this.min ? this.min : currValue > this.itemsCount ? this.itemsCount : currValue;\n currValue = this.validateValue(currValue);\n var element = currValue === 0 ? null : this.itemElements[parseInt((Math.ceil(currValue) - 1).toString(), 10)];\n if (currValue === this.currentValue) {\n if (this.showTooltip && element) {\n this.openRatingTooltip(element, false);\n }\n return;\n }\n var previousValue = this.currentValue;\n this.triggerChange(e, currValue);\n this.updateCurrentValue(currValue);\n if (this.showTooltip) {\n if (element) {\n if (Math.ceil(currValue) !== Math.ceil(previousValue)) {\n this.closeRatingTooltip();\n }\n this.openRatingTooltip(element, true);\n } else {\n this.closeRatingTooltip();\n }\n }\n };\n Rating.prototype.touchEndHandler = function () {\n this.closeRatingTooltip();\n this.wrapper.classList.remove('e-touch-select');\n };\n Rating.prototype.updateTemplateFunction = function () {\n this.emptyTemplateFunction = this.emptyTemplate ? this.getTemplateString(this.emptyTemplate) : null;\n this.fullTemplateFunction = this.fullTemplate ? this.getTemplateString(this.fullTemplate) : null;\n };\n Rating.prototype.renderItems = function () {\n var _this = this;\n for (var i = 0; i < this.itemsCount; i++) {\n var ratingItemContainer = this.createElement('span', {\n className: ITEMCONTAINER\n });\n var spanItem = this.createElement('span', {\n className: 'e-rating-item'\n });\n var ratingValue = this.getRatingValue(this.value, i);\n this.renderItemContent(spanItem, ratingValue, i, false);\n ratingItemContainer.appendChild(spanItem);\n this.wireItemsEvents(ratingItemContainer, i + 1);\n this.itemElements.push(ratingItemContainer);\n var eventArgs = {\n element: ratingItemContainer,\n value: i + 1\n };\n this.trigger('beforeItemRender', eventArgs, function (args) {\n _this.ratingItemList.appendChild(args.element);\n });\n }\n attributes(this.ratingItemList, {\n 'aria-valuemax': this.itemsCount.toString()\n });\n this.updateItemValue(false);\n };\n Rating.prototype.renderItemContent = function (spanEle, val, index, isrerender) {\n if (isrerender) {\n this.removeItemContent(spanEle);\n }\n if (this.fullTemplate && val === 1) {\n spanEle.classList.add(FULLTEMPLATE);\n append(this.fullTemplateFunction({\n index: index,\n ratingValue: val\n }, this, 'ratingFullTemplate', this.element.id + 'fullTemplate', this.isStringTemplate), spanEle);\n } else if (this.emptyTemplate) {\n spanEle.classList.add(EMPTYTEMPLATE);\n append(this.emptyTemplateFunction({\n index: index,\n ratingValue: val\n }, this, 'ratingEmptyTemplate', this.element.id + 'emptyTemplate', this.isStringTemplate), spanEle);\n } else {\n addClass([spanEle], ICONCSS.split(' '));\n }\n };\n Rating.prototype.removeItemContent = function (spanEle) {\n spanEle.classList.remove(FULLTEMPLATE, EMPTYTEMPLATE);\n removeClass([spanEle], ICONCSS.split(' '));\n if (spanEle.firstChild) {\n spanEle.innerHTML = '';\n }\n };\n Rating.prototype.updateTooltip = function () {\n if (this.showTooltip) {\n this.tooltipObj = new Tooltip({\n target: '.e-rating-item-container',\n windowCollision: true,\n opensOn: 'Custom',\n cssClass: this.cssClass ? 'e-rating-tooltip ' + this.cssClass : 'e-rating-tooltip'\n });\n this.tooltipObj.appendTo(this.ratingItemList);\n } else {\n if (!isNullOrUndefined(this.tooltipObj)) {\n this.tooltipObj.destroy();\n this.tooltipObj = null;\n }\n }\n };\n Rating.prototype.updateMinValue = function () {\n this.setProperties({\n min: this.validateValue(this.min)\n }, true);\n if (this.min > 0 && this.value < this.min) {\n this.triggerChange(null, this.min, false);\n }\n attributes(this.ratingItemList, {\n 'aria-valuemin': this.min.toString()\n });\n };\n Rating.prototype.validateValue = function (currentValue) {\n if (currentValue > this.itemsCount) {\n currentValue = this.itemsCount;\n } else if (currentValue < 0) {\n currentValue = 0;\n } else {\n currentValue = this.precision === PrecisionType.Full || this.enableSingleSelection ? Math.round(currentValue) : this.precision === PrecisionType.Half ? Math.round(currentValue * 2) / 2 : this.precision === PrecisionType.Quarter ? Math.round(currentValue * 4) / 4 : Math.round(currentValue * 10) / 10;\n }\n return currentValue;\n };\n Rating.prototype.getRatingValue = function (value, i) {\n return this.enableSingleSelection ? value > i && value <= i + 1 ? 1 : 0 : value >= i + 1 ? 1 : value < i ? 0 : value - i;\n };\n Rating.prototype.updateItemValue = function (isUpdate) {\n if (isUpdate === void 0) {\n isUpdate = true;\n }\n if (isUpdate && this.isReact) {\n this.clearTemplate(['ratingEmptyTemplate', 'ratingFullTemplate']);\n }\n for (var i = 0; i < this.itemsCount; i++) {\n var itemElement = this.itemElements[parseInt(i.toString(), 10)];\n itemElement.classList.remove(SELECTED, INTERMEDIATE, SELECTEDVALUE);\n var ratingValue = this.getRatingValue(this.currentValue, i);\n if (ratingValue === 1) {\n itemElement.classList.add(SELECTED);\n } else if (ratingValue > 0) {\n itemElement.classList.add(INTERMEDIATE);\n } else if (this.precision === PrecisionType.Full && i + 1 <= this.value && !this.enableSingleSelection) {\n itemElement.classList.add(SELECTEDVALUE);\n }\n if (isUpdate) {\n this.updateItemContent(ratingValue, i);\n }\n itemElement.style.setProperty(RATINGVALUE, ratingValue * 100 + '%');\n itemElement.classList[this.value === 0 && i === 0 || this.value === i + 1 || ratingValue > 0 && ratingValue < 1 ? 'add' : 'remove']('e-rating-focus');\n }\n if (isUpdate) {\n this.renderReactTemplates();\n }\n this.updateResetButton();\n attributes(this.ratingItemList, {\n 'aria-valuenow': this.currentValue.toString()\n });\n attributes(this.element, {\n 'value': this.value.toString()\n });\n };\n Rating.prototype.updateItemContent = function (ratingValue, index) {\n if (!this.fullTemplate && !this.emptyTemplate) {\n return;\n }\n var spanEle = this.itemElements[parseInt(index.toString(), 10)].querySelector('.e-rating-item');\n if (this.fullTemplate && ratingValue === 1) {\n if (!this.isReact && spanEle.classList.contains(FULLTEMPLATE)) {\n return;\n }\n this.removeItemContent(spanEle);\n spanEle.classList.add(FULLTEMPLATE);\n append(this.fullTemplateFunction({\n ratingValue: ratingValue,\n index: index\n }, this, 'ratingFullTemplate', this.element.id + 'fullTemplate' + index, this.isStringTemplate), spanEle);\n } else if (this.emptyTemplate) {\n if (!this.isReact && spanEle.classList.contains(EMPTYTEMPLATE)) {\n return;\n }\n this.removeItemContent(spanEle);\n spanEle.classList.add(EMPTYTEMPLATE);\n append(this.emptyTemplateFunction({\n ratingValue: ratingValue,\n index: index\n }, this, 'ratingEmptyTemplate', this.element.id + 'emptyTemplate' + index, this.isStringTemplate), spanEle);\n } else {\n this.removeItemContent(spanEle);\n addClass([spanEle], ICONCSS.split(' '));\n }\n };\n Rating.prototype.updateTooltipContent = function (isChange) {\n var _this = this;\n if (this.showTooltip) {\n if (this.isReact) {\n this.clearTemplate(['ratingTooltipTemplate']);\n }\n var content_1;\n if (this.tooltipTemplate) {\n content_1 = this.createElement('span', {\n className: 'e-rating-tooltip-content'\n });\n var templateFunction = this.getTemplateString(this.tooltipTemplate);\n append(templateFunction({\n value: this.currentValue\n }, this, 'ratingTooltipTemplate', this.element.id + 'tooltipTemplate', this.isStringTemplate), content_1);\n this.tooltipObj.setProperties({\n content: content_1\n }, isChange);\n if (this.isAngular) {\n setTimeout(function () {\n var ratingSpan = _this.ratingItemList.querySelectorAll('.' + ITEMCONTAINER + '.' + SELECTED);\n _this.tooltipObj.refresh(ratingSpan[ratingSpan.length - 1]);\n });\n }\n } else {\n content_1 = this.currentValue.toString();\n this.tooltipObj.setProperties({\n content: initializeCSPTemplate(function () {\n return content_1;\n })\n }, isChange);\n }\n this.renderReactTemplates();\n }\n };\n Rating.prototype.getTemplateString = function (template) {\n var stringContent = '';\n try {\n if (typeof template !== 'function') {\n var tempEle = select(template);\n if (tempEle) {\n //Return innerHTML incase of jsrenderer script else outerHTML\n stringContent = tempEle.tagName === 'SCRIPT' ? tempEle.innerHTML : tempEle.outerHTML;\n } else {\n stringContent = template;\n }\n } else {\n stringContent = template;\n }\n } catch (e) {\n stringContent = template;\n }\n return compile(stringContent);\n };\n Rating.prototype.displayLabel = function () {\n if (this.showLabel) {\n this.spanLabel = this.createElement('span', {\n className: LABEL\n });\n this.updateLabel();\n this.updateLabelPosition();\n } else {\n if (this.wrapper.contains(this.spanLabel)) {\n remove(this.spanLabel);\n this.spanLabel = null;\n }\n }\n };\n Rating.prototype.updateLabel = function () {\n if (this.showLabel) {\n if (this.labelTemplate) {\n if (this.isReact) {\n this.clearTemplate(['ratingLabelTemplate']);\n }\n if (this.spanLabel.firstChild) {\n this.spanLabel.innerHTML = '';\n }\n var templateFunction = this.getTemplateString(this.labelTemplate);\n append(templateFunction({\n value: this.currentValue\n }, this, 'ratingLabelTemplate', this.element.id + 'labelTemplate', this.isStringTemplate), this.spanLabel);\n this.renderReactTemplates();\n } else {\n this.spanLabel.textContent = this.currentValue + ' / ' + this.itemsCount;\n }\n }\n };\n Rating.prototype.updateReset = function () {\n if (this.allowReset) {\n this.resetElement = this.createElement('span', {\n className: RESET,\n attrs: {\n 'aria-label': 'resetbutton',\n 'role': 'button'\n }\n });\n this.updateResetButton();\n EventHandler.add(this.resetElement, 'click', this.resetClicked, this);\n this.wrapper.insertBefore(this.resetElement, this.ratingItemList);\n } else {\n if (this.wrapper.contains(this.resetElement)) {\n remove(this.resetElement);\n this.resetElement = null;\n }\n }\n };\n Rating.prototype.updateLabelPosition = function () {\n this.clearLabelPosition();\n this.spanLabel.classList.add('e-label-' + this.labelPosition.toLowerCase());\n if (this.labelPosition === 'Left' || this.labelPosition === 'Top') {\n this.wrapper.firstChild.after(this.spanLabel);\n } else {\n this.wrapper.appendChild(this.spanLabel);\n }\n };\n Rating.prototype.clearLabelPosition = function () {\n var removeCss = this.spanLabel.classList.value.match(/(e-label-[top|bottom|right|left]+)/g);\n if (removeCss) {\n removeClass([this.spanLabel], removeCss);\n }\n };\n Rating.prototype.wireItemsEvents = function (itemElement, index) {\n var _this = this;\n EventHandler.add(itemElement, 'click', function (e) {\n return _this.clickHandler(e);\n }, this);\n EventHandler.add(itemElement, 'mousemove', function (e) {\n return _this.mouseMoveHandler(index, e);\n }, this);\n EventHandler.add(itemElement, 'mouseleave', this.mouseLeaveHandler, this);\n };\n Rating.prototype.clickHandler = function (e) {\n this.currentValue = this.min > 0 && this.currentValue < this.min ? this.min : this.currentValue;\n this.triggerChange(e, this.currentValue);\n this.updateItemValue();\n this.updateLabel();\n this.updateResetButton();\n };\n Rating.prototype.updateValueChange = function (e, val, isInteracted) {\n if (isInteracted === void 0) {\n isInteracted = true;\n }\n this.triggerChange(e, val, isInteracted);\n this.updateItemValue();\n this.updateLabel();\n };\n Rating.prototype.triggerChange = function (e, val, isInteracted) {\n if (isInteracted === void 0) {\n isInteracted = true;\n }\n val = this.validateValue(val);\n this.currentValue = val;\n if (this.currentValue === this.value) {\n return;\n }\n var eventArgs = {\n event: e,\n isInteracted: isInteracted,\n value: val,\n previousValue: this.value\n };\n this.setProperties({\n value: val\n }, true);\n this.trigger('valueChanged', eventArgs);\n };\n Rating.prototype.mouseMoveHandler = function (index, e) {\n if (this.isTouchSelected) {\n this.wrapper.classList.remove('e-rating-touch');\n this.isTouchSelected = false;\n }\n var currValue = this.calculateCurrentValue(index, e);\n currValue = this.validateValue(currValue);\n var element = this.itemElements[parseInt((index - 1).toString(), 10)];\n if (currValue === this.currentValue) {\n this.openRatingTooltip(element, false);\n return;\n }\n this.updateCurrentValue(currValue);\n this.openRatingTooltip(element, true);\n var eventArgs = {\n element: element,\n event: e,\n value: currValue\n };\n this.trigger('onItemHover', eventArgs);\n };\n Rating.prototype.openRatingTooltip = function (element, isChange) {\n if (this.showTooltip) {\n if (!this.tooltipOpen) {\n this.updateTooltipContent(false);\n this.tooltipObj.open(element);\n this.tooltipOpen = true;\n } else if (isChange) {\n this.updateTooltipContent(true);\n this.tooltipObj.refresh(element);\n }\n }\n };\n Rating.prototype.closeRatingTooltip = function () {\n if (this.tooltipOpen) {\n this.tooltipObj.close();\n this.tooltipOpen = false;\n }\n };\n Rating.prototype.updateCurrentValue = function (currValue) {\n this.currentValue = currValue;\n this.updateItemValue();\n this.updateLabel();\n };\n Rating.prototype.mouseLeaveHandler = function () {\n this.closeRatingTooltip();\n this.updateCurrentValue(this.value);\n };\n Rating.prototype.calculateCurrentValue = function (index, args) {\n var currentValue = index;\n if (!(this.enableSingleSelection || this.precision === PrecisionType.Full)) {\n currentValue = args.offsetX / this.itemElements[index - 1].clientWidth;\n currentValue = this.enableRtl ? 1 - currentValue : currentValue;\n if (this.precision === PrecisionType.Quarter) {\n currentValue = currentValue <= 0.25 ? 0.25 : currentValue <= 0.5 ? 0.5 : currentValue < 0.75 ? 0.75 : 1.0;\n } else if (this.precision === PrecisionType.Half) {\n currentValue = currentValue <= 0.5 ? 0.5 : 1;\n }\n currentValue = currentValue + index - 1;\n }\n return currentValue;\n };\n /**\n * Reset’s the value to minimum.\n *\n * {% codeBlock src='rating/reset/index.md' %}{% endcodeBlock %}\n *\n * @returns {void}\n */\n Rating.prototype.reset = function () {\n this.resetClicked(null, false);\n };\n Rating.prototype.resetClicked = function (e, isInteracted) {\n if (isInteracted === void 0) {\n isInteracted = true;\n }\n this.updateValueChange(e, this.min, isInteracted);\n this.updateResetButton();\n };\n Rating.prototype.wireKeyboardEvent = function () {\n this.keyboardModuleRating = new KeyboardEvents(this.wrapper, {\n keyAction: this.keyActionHandler.bind(this),\n keyConfigs: this.keyConfigs,\n eventName: 'keydown'\n });\n };\n Rating.prototype.keyActionHandler = function (e) {\n e.preventDefault();\n if (this.disabled || this.readOnly) {\n return;\n }\n if (e.target.classList.contains(ITEMLIST)) {\n switch (e.action) {\n case 'uparrow':\n this.handleNavigation(e, true);\n break;\n case 'downarrow':\n this.handleNavigation(e, false);\n break;\n case 'leftarrow':\n this.handleNavigation(e, this.enableRtl);\n break;\n case 'rightarrow':\n this.handleNavigation(e, !this.enableRtl);\n break;\n }\n }\n if (this.allowReset && e.target.classList.contains('e-reset')) {\n switch (e.action) {\n case 'space':\n this.resetClicked(e);\n break;\n }\n }\n };\n Rating.prototype.handleNavigation = function (e, isIncrease) {\n if (!isIncrease && this.value > this.min || isIncrease && this.value < this.itemsCount) {\n var currentValue = this.precision === PrecisionType.Full || this.enableSingleSelection ? 1 : this.precision === PrecisionType.Half ? 0.5 : this.precision === PrecisionType.Quarter ? 0.25 : Math.round(0.1 * 10) / 10;\n currentValue = isIncrease ? this.value + currentValue : this.value - currentValue;\n this.updateValueChange(e, currentValue);\n this.updateResetButton();\n }\n };\n Rating.prototype.updateContent = function () {\n if (this.isReact) {\n this.clearTemplate(['ratingEmptyTemplate', 'ratingFullTemplate']);\n }\n for (var i = 0; i < this.itemsCount; i++) {\n var itemElement = this.itemElements[parseInt(i.toString(), 10)].firstElementChild;\n this.renderItemContent(itemElement, this.getRatingValue(this.value, i), i, true);\n }\n };\n /**\n * To get component name.\n *\n * @returns {string} - Module Name\n * @private\n */\n Rating.prototype.getModuleName = function () {\n return 'rating';\n };\n /**\n * To get the properties to be maintained in the persisted state.\n *\n * @returns {string} - Persist data\n */\n Rating.prototype.getPersistData = function () {\n return this.addOnPersist([]);\n };\n Rating.prototype.removeItemElements = function () {\n for (var i = 0; i < this.itemElements.length; i++) {\n remove(this.itemElements[parseInt(i.toString(), 10)]);\n }\n this.itemElements = [];\n };\n /**\n * Destroys the Rating instance.\n *\n * @returns {void}\n */\n Rating.prototype.destroy = function () {\n var _this = this;\n _super.prototype.destroy.call(this);\n // unwires the events and detach the li elements\n this.removeItemElements();\n this.clearTemplate();\n if (this.spanLabel) {\n remove(this.spanLabel);\n this.spanLabel = null;\n }\n if (this.resetElement) {\n remove(this.resetElement);\n this.resetElement = null;\n }\n if (this.showTooltip) {\n this.tooltipObj.destroy();\n this.tooltipObj = null;\n }\n remove(this.ratingItemList);\n this.ratingItemList = null;\n this.wrapper.parentNode.insertBefore(this.element, this.wrapper);\n remove(this.wrapper);\n this.wrapper = null;\n this.keyboardModuleRating.destroy();\n this.keyboardModuleRating = null;\n ['value', 'aria-label', 'name'].forEach(function (attr) {\n _this.element.removeAttribute(attr);\n });\n };\n /**\n * Called internally if any of the property value changed.\n *\n * @param {RatingModel} newProp - Specifies new properties\n * @param {RatingModel} oldProp - Specifies old properties\n * @returns {void}\n * @private\n */\n Rating.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'value':\n this.updateValueChange(null, this.value > this.min ? this.value : this.min, false);\n break;\n case 'min':\n this.updateMinValue();\n this.updateItemValue();\n this.updateLabel();\n break;\n case 'showLabel':\n this.displayLabel();\n break;\n case 'visible':\n this.wrapper.classList[!this.visible ? 'add' : 'remove'](HIDDEN);\n break;\n case 'disabled':\n this.updateDisabled();\n break;\n case 'readOnly':\n this.wrapper.classList[this.readOnly ? 'add' : 'remove'](READONLY);\n break;\n case 'allowReset':\n this.updateReset();\n break;\n case 'enableRtl':\n this.wrapper.classList[this.enableRtl ? 'add' : 'remove'](RTL$2);\n break;\n case 'cssClass':\n if (oldProp.cssClass) {\n removeClass([this.wrapper], oldProp.cssClass.split(' '));\n }\n if (newProp.cssClass) {\n addClass([this.wrapper], newProp.cssClass.split(' '));\n }\n if (this.tooltipObj) {\n this.tooltipObj.setProperties({\n cssClass: this.cssClass ? 'e-rating-tooltip ' + this.cssClass : 'e-rating-tooltip'\n });\n }\n break;\n case 'labelPosition':\n this.updateLabelPosition();\n break;\n case 'showTooltip':\n this.updateTooltip();\n break;\n case 'precision':\n this.updateMinValue();\n this.triggerChange(null, this.value, false);\n this.updateItemValue();\n this.updateLabel();\n break;\n case 'enableSingleSelection':\n //To validate the value against single selection and update the items, label + trigger change event if value changed\n this.updateValueChange(null, this.currentValue, false);\n break;\n case 'enableAnimation':\n this.wrapper.classList[this.enableAnimation ? 'add' : 'remove'](ANIMATION);\n break;\n case 'emptyTemplate':\n case 'fullTemplate':\n this.updateTemplateFunction();\n this.updateContent();\n break;\n case 'labelTemplate':\n this.updateLabel();\n break;\n case 'itemsCount':\n this.removeItemElements();\n this.renderItems();\n this.updateLabel();\n break;\n }\n }\n };\n __decorate$a([Property(false)], Rating.prototype, \"allowReset\", void 0);\n __decorate$a([Property('')], Rating.prototype, \"cssClass\", void 0);\n __decorate$a([Property(false)], Rating.prototype, \"disabled\", void 0);\n __decorate$a([Property('')], Rating.prototype, \"emptyTemplate\", void 0);\n __decorate$a([Property(true)], Rating.prototype, \"enableAnimation\", void 0);\n __decorate$a([Property(false)], Rating.prototype, \"enableSingleSelection\", void 0);\n __decorate$a([Property('')], Rating.prototype, \"fullTemplate\", void 0);\n __decorate$a([Property(5)], Rating.prototype, \"itemsCount\", void 0);\n __decorate$a([Property(LabelPosition.Right)], Rating.prototype, \"labelPosition\", void 0);\n __decorate$a([Property('')], Rating.prototype, \"labelTemplate\", void 0);\n __decorate$a([Property(0.0)], Rating.prototype, \"min\", void 0);\n __decorate$a([Property(PrecisionType.Full)], Rating.prototype, \"precision\", void 0);\n __decorate$a([Property(false)], Rating.prototype, \"readOnly\", void 0);\n __decorate$a([Property(false)], Rating.prototype, \"showLabel\", void 0);\n __decorate$a([Property(true)], Rating.prototype, \"showTooltip\", void 0);\n __decorate$a([Property('')], Rating.prototype, \"tooltipTemplate\", void 0);\n __decorate$a([Property(0.0)], Rating.prototype, \"value\", void 0);\n __decorate$a([Property(true)], Rating.prototype, \"visible\", void 0);\n __decorate$a([Event()], Rating.prototype, \"beforeItemRender\", void 0);\n __decorate$a([Event()], Rating.prototype, \"created\", void 0);\n __decorate$a([Event()], Rating.prototype, \"onItemHover\", void 0);\n __decorate$a([Event()], Rating.prototype, \"valueChanged\", void 0);\n Rating = __decorate$a([NotifyPropertyChanges], Rating);\n return Rating;\n}(Component);\nvar __extends$c = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 INPUTFIELD = 'e-otp-input-field';\nvar RTL$3 = 'e-rtl';\n/**\n * Specifies the type of input for the Otp (One-Time Password) input component.\n */\nvar OtpInputType = /*#__PURE__*/function (OtpInputType) {\n /**\n * Specifies the type of input to be number for the Otp input.\n */\n OtpInputType[\"Number\"] = \"number\";\n /**\n * Specifies the type of input to be text for the Otp input.\n */\n OtpInputType[\"Text\"] = \"text\";\n /**\n * Specifies the type of input to be password for the Otp input.\n */\n OtpInputType[\"Password\"] = \"password\";\n return OtpInputType;\n}(OtpInputType || {});\n/**\n * Specifies the style variant for the Otp (One-Time Password) input component.\n */\nvar OtpInputStyle = /*#__PURE__*/function (OtpInputStyle) {\n /**\n * Specifies the style of the Otp input to be outlined.\n */\n OtpInputStyle[\"Outlined\"] = \"outlined\";\n /**\n * Specifies the style of the Otp input to be underlined.\n */\n OtpInputStyle[\"Underlined\"] = \"underlined\";\n /**\n * Specifies the style of the Otp input to be filled.\n */\n OtpInputStyle[\"Filled\"] = \"filled\";\n return OtpInputStyle;\n}(OtpInputStyle || {});\n/**\n * Enum for the case transformation options for OTP input text.\n *\n * @readonly\n * @enum {string}\n */\nvar TextTransform = /*#__PURE__*/function (TextTransform) {\n /**\n * No case transformation. The input text remains unchanged.\n */\n TextTransform[\"None\"] = \"none\";\n /**\n * Convert the input text to uppercase.\n */\n TextTransform[\"Uppercase\"] = \"uppercase\";\n /**\n * Convert the input text to lowercase.\n */\n TextTransform[\"Lowercase\"] = \"lowercase\";\n return TextTransform;\n}(TextTransform || {});\n/**\n * Represents the Otp component that allows the user to enter the otp values.\n * ```html\n *
\n * ```\n * ```typescript\n * \n * ```\n */\nvar OtpInput = /** @__PURE__ @class */function (_super) {\n __extends$c(OtpInput, _super);\n function OtpInput(options, element) {\n var _this = _super.call(this, options, element) || this;\n /* Private variables */\n _this.inputs = [];\n _this.previousValue = '';\n _this.separatorElements = [];\n _this.shouldFireFocus = true;\n _this.shouldFireBlur = true;\n _this.isFocusInCalled = false;\n _this.isFocusOutCalled = false;\n _this.handleWheelEvent = function (e) {\n e.preventDefault();\n };\n return _this;\n }\n OtpInput.prototype.preRender = function () {\n if (!this.element.id) {\n this.element.id = getUniqueID('e-' + this.getModuleName());\n }\n };\n OtpInput.prototype.render = function () {\n this.initialize();\n };\n OtpInput.prototype.initialize = function () {\n attributes(this.element, {\n 'role': 'group'\n });\n this.renderInputs();\n this.renderSeparator(1, this.inputs.length);\n this.addPlaceHolder();\n this.updateCssClass(this.cssClass);\n this.updateVariantClass();\n this.updateAriaLabel(this.ariaLabels);\n this.setElementAttributes(this.htmlAttributes, this.element);\n if (this.enableRtl) {\n this.element.classList.add(RTL$3);\n }\n this.previousValue = this.value.toString();\n if (this.autoFocus) {\n this.focusIn();\n }\n };\n OtpInput.prototype.renderInputs = function () {\n this.hiddenInputEle = this.createElement('input', {\n id: 'otpInput_hidden',\n attrs: {\n name: this.element.id,\n type: 'hidden',\n value: this.type === 'number' ? this.value.toString().replace(/\\D/g, '') : this.value.toString(),\n autoComplete: 'off'\n }\n });\n this.element.appendChild(this.hiddenInputEle);\n for (var i = 0; i < this.length; i++) {\n this.createOtpInput(i);\n }\n };\n OtpInput.prototype.createOtpInput = function (index) {\n var valueContainer = this.getDefaultValue();\n var inputValue = '';\n if (valueContainer) {\n if (this.type === 'number') {\n var valueAtIndex = valueContainer[parseInt(index.toString(), 10)];\n if (!isNaN(Number(valueAtIndex))) {\n inputValue = valueAtIndex;\n }\n } else {\n inputValue = valueContainer[parseInt(index.toString(), 10)] || '';\n }\n }\n var inputEle = this.createElement('input', {\n id: this.element.id + \"-\" + (index + 1),\n className: INPUTFIELD + ' ' + 'e-input',\n attrs: {\n maxlength: '1',\n type: this.type,\n inputmode: 'inputmode' in this.htmlAttributes ? this.htmlAttributes['inputmode'] : this.type === 'number' ? 'numeric' : 'text'\n }\n });\n if (this.disabled) {\n inputEle.setAttribute('disabled', 'disabled');\n }\n this.element.appendChild(inputEle);\n this.inputs.push(inputEle);\n if (inputValue) {\n inputEle.value = inputValue;\n }\n this.wireEvents(inputEle, index);\n };\n OtpInput.prototype.renderSeparator = function (index, length) {\n if (this.separator.length > 0) {\n for (var i = index; i < length; i++) {\n var separatorElement = this.createElement('span', {\n className: 'e-otp-separator'\n });\n separatorElement.textContent = this.separator;\n this.separatorElements.push(separatorElement);\n this.element.insertBefore(separatorElement, this.inputs[parseInt(i.toString(), 10)]);\n }\n }\n };\n OtpInput.prototype.updateSeparatorValue = function () {\n if (this.separator === '') {\n for (var i = 0; i < this.separatorElements.length; i++) {\n remove(this.separatorElements[parseInt(i.toString(), 10)]);\n }\n this.separatorElements = [];\n return;\n }\n for (var i = 0; i < this.separatorElements.length; i++) {\n this.separatorElements[parseInt(i.toString(), 10)].textContent = this.separator;\n }\n };\n OtpInput.prototype.addPlaceHolder = function () {\n for (var i = 0; i < this.inputs.length; i++) {\n this.setElementAttributes({\n 'placeholder': this.placeholder.length === 1 || this.placeholder.length === 0 ? this.placeholder : this.placeholder.charAt(i)\n }, this.inputs[parseInt(i.toString(), 10)]);\n }\n };\n OtpInput.prototype.updateInputType = function (inputType) {\n var _this = this;\n this.inputs.forEach(function (input) {\n input.type = inputType;\n input.setAttribute('inputmode', 'inputmode' in _this.htmlAttributes ? _this.htmlAttributes['inputmode'] : inputType === 'number' ? 'numeric' : 'text');\n });\n };\n OtpInput.prototype.getDefaultValue = function () {\n var extractedValue = typeof this.value === 'number' ? this.value.toString() : this.value;\n if (this.textTransform) {\n extractedValue = this.getTransformedText(extractedValue);\n }\n // To remove the white space if present.\n var value = extractedValue.replace(/\\s/g, '');\n if (value.length > 0) {\n return value.split('');\n }\n return undefined;\n };\n OtpInput.prototype.getTransformedText = function (transformingText) {\n var transformedText = this.textTransform.toLowerCase() === TextTransform.Lowercase ? transformingText.toLowerCase() : this.textTransform.toLowerCase() === TextTransform.Uppercase ? transformingText.toUpperCase() : transformingText;\n return transformedText;\n };\n OtpInput.prototype.handleInputChange = function (index, event) {\n var currentInputElement = this.inputs[parseInt(index.toString(), 10)];\n if (currentInputElement && index < this.length - 1 && currentInputElement.value.length > 0) {\n var nextInputElement = this.inputs[parseInt(index.toString(), 10) + 1];\n this.shouldFireFocus = this.shouldFireBlur = false;\n nextInputElement.focus();\n if (nextInputElement && nextInputElement.value.length > 0) {\n nextInputElement.select();\n }\n }\n var target = event.target;\n if (target.value.length > 1) {\n target.value = target.value.slice(0, 1);\n }\n if (this.textTransform) {\n target.value = this.getTransformedText(target.value);\n }\n this.triggerInputEvent(index, event);\n this.triggerValuechanged(event, true);\n };\n OtpInput.prototype.handleKeyAction = function (index, event) {\n if (event.key.length > 1 && !(index === 0 && event.key === 'Backspace' || index === this.length - 1 && event.key === 'Delete')) {\n this.shouldFireFocus = this.shouldFireBlur = false;\n }\n var currentInputElement = this.inputs[parseInt(index.toString(), 10)];\n var previousInputElement = this.inputs[parseInt(index.toString(), 10) - 1];\n var nextInputElement = this.inputs[parseInt(index.toString(), 10) + 1];\n if (event.key === 'Delete') {\n var value = '';\n if (currentInputElement.value.length > 0) {\n value = currentInputElement.value;\n currentInputElement.value = '';\n } else {\n if (index !== this.inputs.length - 1) {\n value = nextInputElement.value;\n nextInputElement.value = '';\n nextInputElement.focus();\n }\n }\n if (value.length > 0) {\n this.triggerInputEvent(index, event);\n }\n } else if (event.key === 'Backspace') {\n if (index !== 0 && currentInputElement.value.length === 0) {\n var previousValue = previousInputElement.value;\n previousInputElement.value = '';\n previousInputElement.focus();\n if (previousValue.length > 0) {\n this.triggerInputEvent(index, event);\n }\n }\n } else if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {\n if (event.key === 'ArrowLeft') {\n if (index > 0) {\n previousInputElement.focus();\n previousInputElement.select();\n }\n } else {\n if (index < this.inputs.length - 1) {\n nextInputElement.focus();\n nextInputElement.select();\n }\n }\n event.preventDefault();\n } else if (event.key === 'ArrowUp' || event.key === 'ArrowDown') {\n event.preventDefault();\n } else {\n if (event.key !== 'Tab' && !event.shiftKey && !event.ctrlKey) {\n if (this.type === 'number' && /\\D/.test(event.key.toLocaleLowerCase())) {\n event.preventDefault();\n }\n }\n }\n };\n OtpInput.prototype.handleSelection = function (index) {\n var currentInputElement = this.inputs[parseInt(index.toString(), 10)];\n if (currentInputElement.value) {\n currentInputElement.select();\n }\n };\n OtpInput.prototype.handleFocus = function (index, event) {\n addClass([this.inputs[parseInt(index.toString(), 10)]], 'e-otp-input-focus');\n if (this.shouldFireFocus) {\n var eventArgs = {\n element: this.element,\n event: event,\n index: index,\n isInteracted: this.isFocusInCalled ? false : true,\n value: this.value\n };\n this.trigger('focus', eventArgs);\n }\n this.shouldFireFocus = true;\n };\n OtpInput.prototype.handleBlur = function (index, event) {\n removeClass([this.inputs[parseInt(index.toString(), 10)]], 'e-otp-input-focus');\n if (this.shouldFireBlur) {\n var eventArgs = {\n element: this.element,\n event: event,\n value: this.value,\n index: index,\n isInteracted: this.isFocusOutCalled ? false : true\n };\n this.trigger('blur', eventArgs);\n }\n this.shouldFireBlur = true;\n };\n OtpInput.prototype.handlePaste = function (index, event) {\n var clipboardData = event.clipboardData;\n if (clipboardData) {\n var pastedText = clipboardData.getData('text');\n var pastedValues = pastedText.split('');\n var pastedValueIndex = 0;\n for (var i = index; i < this.inputs.length; i++) {\n if (pastedValues.length > 0 && pastedValues[parseInt(pastedValueIndex.toString(), 10)]) {\n this.inputs[parseInt(i.toString(), 10)].value = pastedValues[parseInt(pastedValueIndex.toString(), 10)];\n pastedValueIndex++;\n this.updateValueProperty();\n }\n }\n this.focusIn();\n this.triggerValuechanged(event, true);\n }\n };\n OtpInput.prototype.triggerInputEvent = function (index, event) {\n var previousValue = this.value.toString();\n this.updateValueProperty();\n var inputEventArgs = {\n element: this.element,\n event: event,\n previousValue: previousValue,\n value: this.value.toString(),\n index: index\n };\n this.trigger('input', inputEventArgs);\n };\n OtpInput.prototype.triggerValuechanged = function (event, isInteracted) {\n if (this.length === this.value.toString().length) {\n if (this.previousValue !== this.value) {\n var eventArgs = {\n element: this.element,\n event: event,\n isInteracted: isInteracted ? isInteracted : false,\n previousValue: this.previousValue,\n value: this.value\n };\n this.trigger('valueChanged', eventArgs);\n this.previousValue = this.value.toString();\n }\n }\n };\n OtpInput.prototype.wireEvents = function (inputEle, index) {\n EventHandler.add(inputEle, 'focus', this.handleFocus.bind(this, index), this);\n EventHandler.add(inputEle, 'blur', this.handleBlur.bind(this, index), this);\n EventHandler.add(inputEle, 'input', this.handleInputChange.bind(this, index), this);\n EventHandler.add(inputEle, 'keydown', this.handleKeyAction.bind(this, index), this);\n EventHandler.add(inputEle, 'click', this.handleSelection.bind(this, index), this);\n EventHandler.add(inputEle, 'paste', this.handlePaste.bind(this, index), this);\n EventHandler.add(inputEle, 'wheel', this.handleWheelEvent, this);\n };\n OtpInput.prototype.unWireEvents = function () {\n for (var i = 0; i < this.inputs.length; i++) {\n var currentInputElement = this.inputs[parseInt(i.toString(), 10)];\n EventHandler.remove(currentInputElement, 'focus', this.handleFocus.bind(this, i));\n EventHandler.remove(currentInputElement, 'blur', this.handleBlur.bind(this, i));\n EventHandler.remove(currentInputElement, 'input', this.handleInputChange.bind(this, i));\n EventHandler.remove(currentInputElement, 'keydown', this.handleKeyAction.bind(this, i));\n EventHandler.remove(currentInputElement, 'click', this.handleSelection.bind(this, i));\n EventHandler.remove(currentInputElement, 'paste', this.handlePaste.bind(this, i));\n EventHandler.remove(currentInputElement, 'wheel', this.handleWheelEvent);\n }\n };\n OtpInput.prototype.updateValueProperty = function () {\n var value = '';\n this.inputs.forEach(function (input) {\n value += input.value;\n });\n var prevOnChange = this.isProtectedOnChange;\n this.isProtectedOnChange = true;\n this.value = typeof this.value === 'number' ? parseInt(value, 10) : value;\n this.isProtectedOnChange = prevOnChange;\n this.hiddenInputEle.value = this.value.toString();\n };\n OtpInput.prototype.updateInputValue = function (previousValue) {\n var stringifiedValue = this.value.toString();\n if (this.textTransform) {\n stringifiedValue = this.getTransformedText(stringifiedValue);\n }\n for (var i = 0; i < this.inputs.length; i++) {\n var isValueChanged = previousValue.toString().charAt(i) !== stringifiedValue.charAt(i);\n if (isValueChanged) {\n this.inputs[parseInt(i.toString(), 10)].value = stringifiedValue.charAt(i);\n this.hiddenInputEle.value = stringifiedValue;\n }\n }\n this.focusIn();\n };\n OtpInput.prototype.updateCssClass = function (addCss, removeCss) {\n if (removeCss === void 0) {\n removeCss = '';\n }\n var _a, _b;\n var cssClasses;\n if (removeCss) {\n cssClasses = removeCss.trim().split(' ');\n (_a = this.element.classList).remove.apply(_a, cssClasses);\n }\n if (addCss) {\n cssClasses = addCss.trim().split(' ');\n (_b = this.element.classList).add.apply(_b, cssClasses);\n }\n };\n OtpInput.prototype.updateVariantClass = function () {\n var variantClass = this.stylingMode.toLocaleLowerCase();\n variantClass = variantClass === 'outlined' ? 'outline' : variantClass;\n if (variantClass === 'underlined' || variantClass === 'filled' || variantClass === 'outline') {\n removeClass([this.element], ['e-underlined', 'e-filled', 'e-outline']);\n addClass([this.element], \"e-\" + variantClass);\n }\n };\n OtpInput.prototype.updateAriaLabel = function (customAriaLabel) {\n this.inputs.forEach(function (input, index) {\n var defaultLabel = \"Enter Otp Character \" + (index + 1);\n var ariaLabel = customAriaLabel && customAriaLabel.length > 0 ? customAriaLabel[parseInt(index.toString(), 10)] || defaultLabel : defaultLabel;\n input.setAttribute('aria-label', ariaLabel);\n });\n };\n OtpInput.prototype.updateDisabledState = function () {\n var _this = this;\n this.inputs.forEach(function (input) {\n if (_this.disabled) {\n input.setAttribute('disabled', 'disabled');\n } else {\n input.removeAttribute('disabled');\n }\n });\n };\n OtpInput.prototype.setElementAttributes = function (htmlAttributes, element) {\n if (!isNullOrUndefined(htmlAttributes)) {\n for (var key in htmlAttributes) {\n if (key === 'class') {\n var elementClass = htmlAttributes['class'].replace(/\\s+/g, ' ').trim();\n if (elementClass) {\n addClass([element], elementClass.split(' '));\n }\n } else if (key === 'inputmode') {\n this.setInputMode(htmlAttributes[\"\" + key]);\n } else if (key === 'name' && this.element.id === element.id) {\n this.hiddenInputEle.setAttribute(key, htmlAttributes[\"\" + key]);\n } else {\n element.setAttribute(key, htmlAttributes[\"\" + key]);\n }\n }\n }\n };\n OtpInput.prototype.setInputMode = function (inputModeValue) {\n for (var i = 0; i < this.inputs.length; i++) {\n this.inputs[parseInt(i.toString(), 10)].setAttribute('inputmode', inputModeValue);\n }\n };\n OtpInput.prototype.handleLengthChange = function (currentValue, previousValue) {\n var isLengthAdded = currentValue - previousValue > 0;\n if (isLengthAdded) {\n for (var i = previousValue; i < currentValue; i++) {\n this.createOtpInput(i);\n }\n this.renderSeparator(previousValue, currentValue);\n this.addPlaceHolder();\n this.updateAriaLabel(this.ariaLabels);\n } else {\n if (currentValue >= 0 && this.inputs.length > 0) {\n for (var i = currentValue; i < this.inputs.length; i++) {\n remove(this.inputs[parseInt(i.toString(), 10)]);\n }\n this.inputs.splice(currentValue);\n if (this.separatorElements.length > 0) {\n // separator should be completely removed when length is 0 or 1;\n var index = currentValue === 0 ? 0 : currentValue - 1;\n for (var i = index; i < this.separatorElements.length; i++) {\n remove(this.separatorElements[parseInt(i.toString(), 10)]);\n }\n this.separatorElements.splice(index);\n }\n }\n }\n };\n /**\n * To get component name.\n *\n * @returns {string} - Module Name\n * @private\n */\n OtpInput.prototype.getModuleName = function () {\n return 'otpinput';\n };\n /**\n * To get the properties to be maintained in the persisted state.\n *\n * @returns {string} - Persist data\n */\n OtpInput.prototype.getPersistData = function () {\n return this.addOnPersist([]);\n };\n /**\n * Destroy the Otp input.\n *\n * @returns {void}\n */\n OtpInput.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n this.unWireEvents();\n for (var i = 0; i < this.inputs.length; i++) {\n remove(this.inputs[parseInt(i.toString(), 10)]);\n }\n for (var i = 0; i < this.separatorElements.length; i++) {\n remove(this.separatorElements[parseInt(i.toString(), 10)]);\n }\n remove(this.hiddenInputEle);\n removeClass([this.element], ['e-underlined', 'e-filled', 'e-outline', 'e-rtl']);\n if (this.cssClass) {\n removeClass([this.element], this.cssClass.trim().split(' '));\n }\n this.element.removeAttribute('role');\n this.inputs = [];\n this.separatorElements = [];\n this.hiddenInputEle = null;\n };\n /**\n * Sets the focus to the Otp input for interaction.\n *\n * @returns {void}\n */\n OtpInput.prototype.focusIn = function () {\n this.isFocusInCalled = true;\n var focusIndex = this.inputs.length - 1;\n for (var index = 0; index < this.inputs.length; index++) {\n if (!(this.inputs[parseInt(index.toString(), 10)].value.length > 0)) {\n focusIndex = index;\n break;\n }\n }\n this.inputs[parseInt(focusIndex.toString(), 10)].focus();\n this.isFocusInCalled = false;\n };\n /**\n * Remove the focus from Otp input, if it is in focus state.\n *\n * @returns {void}\n */\n OtpInput.prototype.focusOut = function () {\n this.isFocusOutCalled = true;\n this.inputs.forEach(function (input) {\n input.blur();\n });\n this.isFocusOutCalled = false;\n };\n /**\n * Called internally if any of the property value changed.\n *\n * @param {OtpInputModel} newProp - Specifies new properties\n * @param {OtpInputModel} oldProp - Specifies old properties\n * @returns {void}\n * @private\n */\n OtpInput.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'textTransform':\n this.updateInputValue(this.value);\n break;\n case 'value':\n this.updateInputValue(oldProp.value);\n this.triggerValuechanged();\n break;\n case 'placeholder':\n this.addPlaceHolder();\n break;\n case 'disabled':\n this.updateDisabledState();\n break;\n case 'cssClass':\n this.updateCssClass(newProp.cssClass, oldProp.cssClass);\n break;\n case 'separator':\n if (oldProp.separator === '') {\n this.renderSeparator(1, this.inputs.length);\n } else {\n this.updateSeparatorValue();\n }\n break;\n case 'htmlAttributes':\n this.setElementAttributes(newProp.htmlAttributes, this.element);\n break;\n case 'type':\n this.updateInputType(newProp.type);\n break;\n case 'stylingMode':\n this.updateVariantClass();\n break;\n case 'ariaLabels':\n this.updateAriaLabel(newProp.ariaLabels);\n break;\n case 'length':\n this.handleLengthChange(newProp.length, oldProp.length);\n break;\n case 'enableRtl':\n this.element.classList[this.enableRtl ? 'add' : 'remove'](RTL$3);\n break;\n case 'autoFocus':\n if (this.autoFocus) {\n this.focusIn();\n }\n break;\n }\n }\n };\n __decorate$b([Property(4)], OtpInput.prototype, \"length\", void 0);\n __decorate$b([Property('')], OtpInput.prototype, \"value\", void 0);\n __decorate$b([Property(OtpInputType.Number)], OtpInput.prototype, \"type\", void 0);\n __decorate$b([Property('')], OtpInput.prototype, \"separator\", void 0);\n __decorate$b([Property('')], OtpInput.prototype, \"placeholder\", void 0);\n __decorate$b([Property(OtpInputStyle.Outlined)], OtpInput.prototype, \"stylingMode\", void 0);\n __decorate$b([Property(false)], OtpInput.prototype, \"disabled\", void 0);\n __decorate$b([Property('')], OtpInput.prototype, \"cssClass\", void 0);\n __decorate$b([Property(false)], OtpInput.prototype, \"autoFocus\", void 0);\n __decorate$b([Property(TextTransform.None)], OtpInput.prototype, \"textTransform\", void 0);\n __decorate$b([Property({})], OtpInput.prototype, \"htmlAttributes\", void 0);\n __decorate$b([Property([])], OtpInput.prototype, \"ariaLabels\", void 0);\n __decorate$b([Event()], OtpInput.prototype, \"created\", void 0);\n __decorate$b([Event()], OtpInput.prototype, \"valueChanged\", void 0);\n __decorate$b([Event()], OtpInput.prototype, \"focus\", void 0);\n __decorate$b([Event()], OtpInput.prototype, \"blur\", void 0);\n __decorate$b([Event()], OtpInput.prototype, \"input\", void 0);\n OtpInput = __decorate$b([NotifyPropertyChanges], OtpInput);\n return OtpInput;\n}(Component);\nexport { AsyncSettings, ButtonsProps, ChatMessageRole, ColorPicker, ColorRangeData, ErrorOption, FilesProp, FormValidator, Input, LabelPosition, LimitData, MaskUndo, MaskedTextBox, NumericTextBox, OtpInput, OtpInputStyle, OtpInputType, PrecisionType, Rating, Signature, SignatureBase, Slider, SmartTextArea, TEXTBOX_FOCUS, TextArea, TextBox, TextTransform, TicksData, TooltipData, Uploader, applyMask, bindClearEvent, containerAttributes, createMask, escapeRegExp, getMaskedVal, getVal, maskInput, maskInputBlurHandler, maskInputDropHandler, maskInputFocusHandler, maskInputMouseDownHandler, maskInputMouseUpHandler, mobileRemoveFunction, regex, regularExpressions, setElementValue, setMaskValue, strippedValue, triggerFocus, unstrippedValue, unwireEvents, wireEvents };\n","import { Browser, getUniqueID, Touch, EventHandler, isNullOrUndefined, selectAll, detach, classList, Property, NotifyPropertyChanges, Component, createElement, removeClass, select, ChildProperty, Collection, Animation, getValue, setValue, append, addClass, isBlazor, rippleEffect, KeyboardEvents, closest, getInstance, isVisible, SanitizeHtmlHelper, Event, Complex, formatUnit, setStyleAttribute, attributes, compile, isRippleEnabled, animationMode, remove, getRandomId, L10n, Draggable, isUndefined, getElement, Droppable, matches, extend, merge, initializeCSPTemplate } from '@syncfusion/ej2-base';\nimport { ListBase } from '@syncfusion/ej2-lists';\nimport { getScrollableParent, Popup, getZindexPartial, fit, isCollide, calculatePosition, createSpinner, showSpinner, hideSpinner, Tooltip } from '@syncfusion/ej2-popups';\nimport { Button, createCheckBox, rippleMouseHandler } from '@syncfusion/ej2-buttons';\nimport { DataManager, Query } from '@syncfusion/ej2-data';\nimport { Input } from '@syncfusion/ej2-inputs';\nvar __extends = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 CLS_ROOT = 'e-hscroll';\nvar CLS_RTL = 'e-rtl';\nvar CLS_DISABLE = 'e-overlay';\nvar CLS_HSCROLLBAR = 'e-hscroll-bar';\nvar CLS_HSCROLLCON = 'e-hscroll-content';\nvar CLS_NAVARROW = 'e-nav-arrow';\nvar CLS_NAVRIGHTARROW = 'e-nav-right-arrow';\nvar CLS_NAVLEFTARROW = 'e-nav-left-arrow';\nvar CLS_HSCROLLNAV = 'e-scroll-nav';\nvar CLS_HSCROLLNAVRIGHT = 'e-scroll-right-nav';\nvar CLS_HSCROLLNAVLEFT = 'e-scroll-left-nav';\nvar CLS_DEVICE = 'e-scroll-device';\nvar CLS_OVERLAY = 'e-scroll-overlay';\nvar CLS_RIGHTOVERLAY = 'e-scroll-right-overlay';\nvar CLS_LEFTOVERLAY = 'e-scroll-left-overlay';\nvar OVERLAY_MAXWID = 40;\n/**\n * HScroll module is introduces horizontal scroller when content exceeds the current viewing area.\n * It can be useful for the components like Toolbar, Tab which needs horizontal scrolling alone.\n * Hidden content can be view by touch moving or icon click.\n * ```html\n *
\n * \n * ```\n */\nvar HScroll = /** @__PURE__ @class */function (_super) {\n __extends(HScroll, _super);\n /**\n * Initializes a new instance of the HScroll class.\n *\n * @param {HScrollModel} options - Specifies HScroll model properties as options.\n * @param {string | HTMLElement} element - Specifies the element for which horizontal scrolling applies.\n */\n function HScroll(options, element) {\n return _super.call(this, options, element) || this;\n }\n /**\n * Initialize the event handler\n *\n * @private\n * @returns {void}\n */\n HScroll.prototype.preRender = function () {\n this.browser = Browser.info.name;\n this.browserCheck = this.browser === 'mozilla';\n this.isDevice = Browser.isDevice;\n this.customStep = true;\n var element = this.element;\n this.ieCheck = this.browser === 'edge' || this.browser === 'msie';\n this.initialize();\n if (element.id === '') {\n element.id = getUniqueID('hscroll');\n this.uniqueId = true;\n }\n element.style.display = 'block';\n if (this.enableRtl) {\n element.classList.add(CLS_RTL);\n }\n };\n /**\n * To Initialize the horizontal scroll rendering\n *\n * @private\n * @returns {void}\n */\n HScroll.prototype.render = function () {\n this.touchModule = new Touch(this.element, {\n scroll: this.touchHandler.bind(this),\n swipe: this.swipeHandler.bind(this)\n });\n EventHandler.add(this.scrollEle, 'scroll', this.scrollHandler, this);\n if (!this.isDevice) {\n this.createNavIcon(this.element);\n } else {\n this.element.classList.add(CLS_DEVICE);\n this.createOverlay(this.element);\n }\n this.setScrollState();\n };\n HScroll.prototype.setScrollState = function () {\n if (isNullOrUndefined(this.scrollStep) || this.scrollStep < 0) {\n this.scrollStep = this.scrollEle.offsetWidth;\n this.customStep = false;\n } else {\n this.customStep = true;\n }\n };\n HScroll.prototype.initialize = function () {\n var scrollEle = this.createElement('div', {\n className: CLS_HSCROLLCON\n });\n var scrollDiv = this.createElement('div', {\n className: CLS_HSCROLLBAR\n });\n scrollDiv.setAttribute('tabindex', '-1');\n var ele = this.element;\n var innerEle = [].slice.call(ele.children);\n for (var _i = 0, innerEle_1 = innerEle; _i < innerEle_1.length; _i++) {\n var ele_1 = innerEle_1[_i];\n scrollEle.appendChild(ele_1);\n }\n scrollDiv.appendChild(scrollEle);\n ele.appendChild(scrollDiv);\n scrollDiv.style.overflowX = 'hidden';\n this.scrollEle = scrollDiv;\n this.scrollItems = scrollEle;\n };\n HScroll.prototype.getPersistData = function () {\n var keyEntity = ['scrollStep'];\n return this.addOnPersist(keyEntity);\n };\n /**\n * Returns the current module name.\n *\n * @returns {string} - It returns the current module name.\n * @private\n */\n HScroll.prototype.getModuleName = function () {\n return 'hScroll';\n };\n /**\n * Removes the control from the DOM and also removes all its related events.\n *\n * @returns {void}\n */\n HScroll.prototype.destroy = function () {\n var ele = this.element;\n ele.style.display = '';\n ele.classList.remove(CLS_ROOT);\n ele.classList.remove(CLS_DEVICE);\n ele.classList.remove(CLS_RTL);\n var nav = selectAll('.e-' + ele.id + '_nav.' + CLS_HSCROLLNAV, ele);\n var overlay = selectAll('.' + CLS_OVERLAY, ele);\n [].slice.call(overlay).forEach(function (ele) {\n detach(ele);\n });\n for (var _i = 0, _a = [].slice.call(this.scrollItems.children); _i < _a.length; _i++) {\n var elem = _a[_i];\n ele.appendChild(elem);\n }\n if (this.uniqueId) {\n this.element.removeAttribute('id');\n }\n detach(this.scrollEle);\n if (nav.length > 0) {\n detach(nav[0]);\n if (!isNullOrUndefined(nav[1])) {\n detach(nav[1]);\n }\n }\n EventHandler.remove(this.scrollEle, 'scroll', this.scrollHandler);\n this.touchModule.destroy();\n this.touchModule = null;\n _super.prototype.destroy.call(this);\n };\n /**\n * Specifies the value to disable/enable the HScroll component.\n * When set to `true` , the component will be disabled.\n *\n * @param {boolean} value - Based on this Boolean value, HScroll will be enabled (false) or disabled (true).\n * @returns {void}.\n */\n HScroll.prototype.disable = function (value) {\n var navEles = selectAll('.e-scroll-nav:not(.' + CLS_DISABLE + ')', this.element);\n if (value) {\n this.element.classList.add(CLS_DISABLE);\n } else {\n this.element.classList.remove(CLS_DISABLE);\n }\n [].slice.call(navEles).forEach(function (el) {\n el.setAttribute('tabindex', !value ? '0' : '-1');\n });\n };\n HScroll.prototype.createOverlay = function (element) {\n var id = element.id.concat('_nav');\n var rightOverlayEle = this.createElement('div', {\n className: CLS_OVERLAY + ' ' + CLS_RIGHTOVERLAY\n });\n var clsRight = 'e-' + element.id.concat('_nav ' + CLS_HSCROLLNAV + ' ' + CLS_HSCROLLNAVRIGHT);\n var rightEle = this.createElement('div', {\n id: id.concat('_right'),\n className: clsRight\n });\n var navItem = this.createElement('div', {\n className: CLS_NAVRIGHTARROW + ' ' + CLS_NAVARROW + ' e-icons'\n });\n rightEle.appendChild(navItem);\n var leftEle = this.createElement('div', {\n className: CLS_OVERLAY + ' ' + CLS_LEFTOVERLAY\n });\n if (this.ieCheck) {\n rightEle.classList.add('e-ie-align');\n }\n element.appendChild(rightOverlayEle);\n element.appendChild(rightEle);\n element.insertBefore(leftEle, element.firstChild);\n this.eventBinding([rightEle]);\n };\n HScroll.prototype.createNavIcon = function (element) {\n var id = element.id.concat('_nav');\n var clsRight = 'e-' + element.id.concat('_nav ' + CLS_HSCROLLNAV + ' ' + CLS_HSCROLLNAVRIGHT);\n var rightAttributes = {\n 'role': 'button',\n 'id': id.concat('_right'),\n 'aria-label': 'Scroll right'\n };\n var nav = this.createElement('div', {\n className: clsRight,\n attrs: rightAttributes\n });\n nav.setAttribute('aria-disabled', 'false');\n var navItem = this.createElement('div', {\n className: CLS_NAVRIGHTARROW + ' ' + CLS_NAVARROW + ' e-icons'\n });\n var clsLeft = 'e-' + element.id.concat('_nav ' + CLS_HSCROLLNAV + ' ' + CLS_HSCROLLNAVLEFT);\n var leftAttributes = {\n 'role': 'button',\n 'id': id.concat('_left'),\n 'aria-label': 'Scroll left'\n };\n var navEle = this.createElement('div', {\n className: clsLeft + ' ' + CLS_DISABLE,\n attrs: leftAttributes\n });\n navEle.setAttribute('aria-disabled', 'true');\n var navLeftItem = this.createElement('div', {\n className: CLS_NAVLEFTARROW + ' ' + CLS_NAVARROW + ' e-icons'\n });\n navEle.appendChild(navLeftItem);\n nav.appendChild(navItem);\n element.appendChild(nav);\n element.insertBefore(navEle, element.firstChild);\n if (this.ieCheck) {\n nav.classList.add('e-ie-align');\n navEle.classList.add('e-ie-align');\n }\n this.eventBinding([nav, navEle]);\n };\n HScroll.prototype.onKeyPress = function (e) {\n var _this = this;\n if (e.key === 'Enter') {\n var timeoutFun_1 = function () {\n _this.keyTimeout = true;\n _this.eleScrolling(10, e.target, true);\n };\n this.keyTimer = window.setTimeout(function () {\n timeoutFun_1();\n }, 100);\n }\n };\n HScroll.prototype.onKeyUp = function (e) {\n if (e.key !== 'Enter') {\n return;\n }\n if (this.keyTimeout) {\n this.keyTimeout = false;\n } else {\n e.target.click();\n }\n clearTimeout(this.keyTimer);\n };\n HScroll.prototype.eventBinding = function (ele) {\n var _this = this;\n [].slice.call(ele).forEach(function (el) {\n new Touch(el, {\n tapHold: _this.tabHoldHandler.bind(_this),\n tapHoldThreshold: 500\n });\n el.addEventListener('keydown', _this.onKeyPress.bind(_this));\n el.addEventListener('keyup', _this.onKeyUp.bind(_this));\n el.addEventListener('mouseup', _this.repeatScroll.bind(_this));\n el.addEventListener('touchend', _this.repeatScroll.bind(_this));\n el.addEventListener('contextmenu', function (e) {\n e.preventDefault();\n });\n EventHandler.add(el, 'click', _this.clickEventHandler, _this);\n });\n };\n HScroll.prototype.repeatScroll = function () {\n clearInterval(this.timeout);\n };\n HScroll.prototype.tabHoldHandler = function (e) {\n var _this = this;\n var trgt = e.originalEvent.target;\n trgt = this.contains(trgt, CLS_HSCROLLNAV) ? trgt.firstElementChild : trgt;\n var scrollDis = 10;\n var timeoutFun = function () {\n _this.eleScrolling(scrollDis, trgt, true);\n };\n this.timeout = window.setInterval(function () {\n timeoutFun();\n }, 50);\n };\n HScroll.prototype.contains = function (ele, className) {\n return ele.classList.contains(className);\n };\n HScroll.prototype.eleScrolling = function (scrollDis, trgt, isContinuous) {\n var rootEle = this.element;\n var classList = trgt.classList;\n if (classList.contains(CLS_HSCROLLNAV)) {\n classList = trgt.querySelector('.' + CLS_NAVARROW).classList;\n }\n if (this.contains(rootEle, CLS_RTL) && this.browserCheck) {\n scrollDis = -scrollDis;\n }\n if (!this.contains(rootEle, CLS_RTL) || this.browserCheck || this.ieCheck) {\n if (classList.contains(CLS_NAVRIGHTARROW)) {\n this.frameScrollRequest(scrollDis, 'add', isContinuous);\n } else {\n this.frameScrollRequest(scrollDis, '', isContinuous);\n }\n } else {\n if (classList.contains(CLS_NAVLEFTARROW)) {\n this.frameScrollRequest(scrollDis, 'add', isContinuous);\n } else {\n this.frameScrollRequest(scrollDis, '', isContinuous);\n }\n }\n };\n HScroll.prototype.clickEventHandler = function (e) {\n this.eleScrolling(this.scrollStep, e.target, false);\n };\n HScroll.prototype.swipeHandler = function (e) {\n var swipeEle = this.scrollEle;\n var distance;\n if (e.velocity <= 1) {\n distance = e.distanceX / (e.velocity * 10);\n } else {\n distance = e.distanceX / e.velocity;\n }\n var start = 0.5;\n var animate = function () {\n var step = Math.sin(start);\n if (step <= 0) {\n window.cancelAnimationFrame(step);\n } else {\n if (e.swipeDirection === 'Left') {\n swipeEle.scrollLeft += distance * step;\n } else if (e.swipeDirection === 'Right') {\n swipeEle.scrollLeft -= distance * step;\n }\n start -= 0.5;\n window.requestAnimationFrame(animate);\n }\n };\n animate();\n };\n HScroll.prototype.scrollUpdating = function (scrollVal, action) {\n if (action === 'add') {\n this.scrollEle.scrollLeft += scrollVal;\n } else {\n this.scrollEle.scrollLeft -= scrollVal;\n }\n if (this.enableRtl && this.scrollEle.scrollLeft > 0) {\n this.scrollEle.scrollLeft = 0;\n }\n };\n HScroll.prototype.frameScrollRequest = function (scrollVal, action, isContinuous) {\n var _this = this;\n var step = 10;\n if (isContinuous) {\n this.scrollUpdating(scrollVal, action);\n return;\n }\n if (!this.customStep) {\n [].slice.call(selectAll('.' + CLS_OVERLAY, this.element)).forEach(function (el) {\n scrollVal -= el.offsetWidth;\n });\n }\n var animate = function () {\n var scrollValue;\n var scrollStep;\n if (_this.contains(_this.element, CLS_RTL) && _this.browserCheck) {\n scrollValue = -scrollVal;\n scrollStep = -step;\n } else {\n scrollValue = scrollVal;\n scrollStep = step;\n }\n if (scrollValue < step) {\n window.cancelAnimationFrame(scrollStep);\n } else {\n _this.scrollUpdating(scrollStep, action);\n scrollVal -= scrollStep;\n window.requestAnimationFrame(animate);\n }\n };\n animate();\n };\n HScroll.prototype.touchHandler = function (e) {\n var ele = this.scrollEle;\n var distance = e.distanceX;\n if (this.ieCheck && this.contains(this.element, CLS_RTL)) {\n distance = -distance;\n }\n if (e.scrollDirection === 'Left') {\n ele.scrollLeft = ele.scrollLeft + distance;\n } else if (e.scrollDirection === 'Right') {\n ele.scrollLeft = ele.scrollLeft - distance;\n }\n };\n HScroll.prototype.arrowDisabling = function (addDisable, removeDisable) {\n if (this.isDevice) {\n var arrowEle = isNullOrUndefined(addDisable) ? removeDisable : addDisable;\n var arrowIcon = arrowEle.querySelector('.' + CLS_NAVARROW);\n if (isNullOrUndefined(addDisable)) {\n classList(arrowIcon, [CLS_NAVRIGHTARROW], [CLS_NAVLEFTARROW]);\n } else {\n classList(arrowIcon, [CLS_NAVLEFTARROW], [CLS_NAVRIGHTARROW]);\n }\n } else if (addDisable && removeDisable) {\n addDisable.classList.add(CLS_DISABLE);\n addDisable.setAttribute('aria-disabled', 'true');\n addDisable.removeAttribute('tabindex');\n removeDisable.classList.remove(CLS_DISABLE);\n removeDisable.setAttribute('aria-disabled', 'false');\n removeDisable.setAttribute('tabindex', '0');\n }\n this.repeatScroll();\n };\n HScroll.prototype.scrollHandler = function (e) {\n var target = e.target;\n var width = target.offsetWidth;\n var rootEle = this.element;\n var navLeftEle = this.element.querySelector('.' + CLS_HSCROLLNAVLEFT);\n var navRightEle = this.element.querySelector('.' + CLS_HSCROLLNAVRIGHT);\n var leftOverlay = this.element.querySelector('.' + CLS_LEFTOVERLAY);\n var rightOverlay = this.element.querySelector('.' + CLS_RIGHTOVERLAY);\n var scrollLeft = target.scrollLeft;\n if (scrollLeft <= 0) {\n scrollLeft = -scrollLeft;\n }\n if (this.isDevice) {\n if (this.enableRtl && !(this.browserCheck || this.ieCheck)) {\n leftOverlay = this.element.querySelector('.' + CLS_RIGHTOVERLAY);\n rightOverlay = this.element.querySelector('.' + CLS_LEFTOVERLAY);\n }\n if (scrollLeft < OVERLAY_MAXWID) {\n leftOverlay.style.width = scrollLeft + 'px';\n } else {\n leftOverlay.style.width = '40px';\n }\n if (target.scrollWidth - Math.ceil(width + scrollLeft) < OVERLAY_MAXWID) {\n rightOverlay.style.width = target.scrollWidth - Math.ceil(width + scrollLeft) + 'px';\n } else {\n rightOverlay.style.width = '40px';\n }\n }\n if (scrollLeft === 0) {\n this.arrowDisabling(navLeftEle, navRightEle);\n } else if (Math.ceil(width + scrollLeft + .1) >= target.scrollWidth) {\n this.arrowDisabling(navRightEle, navLeftEle);\n } else {\n var disEle = this.element.querySelector('.' + CLS_HSCROLLNAV + '.' + CLS_DISABLE);\n if (disEle) {\n disEle.classList.remove(CLS_DISABLE);\n disEle.setAttribute('aria-disabled', 'false');\n disEle.setAttribute('tabindex', '0');\n }\n }\n };\n /**\n * Gets called when the model property changes.The data that describes the old and new values of property that changed.\n *\n * @param {HScrollModel} newProp - It contains the new value of data.\n * @param {HScrollModel} oldProp - It contains the old value of data.\n * @returns {void}\n * @private\n */\n HScroll.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'scrollStep':\n this.setScrollState();\n break;\n case 'enableRtl':\n newProp.enableRtl ? this.element.classList.add(CLS_RTL) : this.element.classList.remove(CLS_RTL);\n break;\n }\n }\n };\n __decorate([Property(null)], HScroll.prototype, \"scrollStep\", void 0);\n HScroll = __decorate([NotifyPropertyChanges], HScroll);\n return HScroll;\n}(Component);\nvar __extends$1 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 CLS_ROOT$1 = 'e-vscroll';\nvar CLS_RTL$1 = 'e-rtl';\nvar CLS_DISABLE$1 = 'e-overlay';\nvar CLS_VSCROLLBAR = 'e-vscroll-bar';\nvar CLS_VSCROLLCON = 'e-vscroll-content';\nvar CLS_NAVARROW$1 = 'e-nav-arrow';\nvar CLS_NAVUPARROW = 'e-nav-up-arrow';\nvar CLS_NAVDOWNARROW = 'e-nav-down-arrow';\nvar CLS_VSCROLLNAV = 'e-scroll-nav';\nvar CLS_VSCROLLNAVUP = 'e-scroll-up-nav';\nvar CLS_VSCROLLNAVDOWN = 'e-scroll-down-nav';\nvar CLS_DEVICE$1 = 'e-scroll-device';\nvar CLS_OVERLAY$1 = 'e-scroll-overlay';\nvar CLS_UPOVERLAY = 'e-scroll-up-overlay';\nvar CLS_DOWNOVERLAY = 'e-scroll-down-overlay';\nvar OVERLAY_MAXWID$1 = 40;\n/**\n * VScroll module is introduces vertical scroller when content exceeds the current viewing area.\n * It can be useful for the components like Toolbar, Tab which needs vertical scrolling alone.\n * Hidden content can be view by touch moving or icon click.\n * ```html\n *
\n * \n * ```\n */\nvar VScroll = /** @__PURE__ @class */function (_super) {\n __extends$1(VScroll, _super);\n /**\n * Initializes a new instance of the VScroll class.\n *\n * @param {VScrollModel} options - Specifies VScroll model properties as options.\n * @param {string | HTMLElement} element - Specifies the element for which vertical scrolling applies.\n */\n function VScroll(options, element) {\n return _super.call(this, options, element) || this;\n }\n /**\n * Initialize the event handler\n *\n * @private\n * @returns {void}\n */\n VScroll.prototype.preRender = function () {\n this.browser = Browser.info.name;\n this.browserCheck = this.browser === 'mozilla';\n this.isDevice = Browser.isDevice;\n this.customStep = true;\n var ele = this.element;\n this.ieCheck = this.browser === 'edge' || this.browser === 'msie';\n this.initialize();\n if (ele.id === '') {\n ele.id = getUniqueID('vscroll');\n this.uniqueId = true;\n }\n ele.style.display = 'block';\n if (this.enableRtl) {\n ele.classList.add(CLS_RTL$1);\n }\n };\n /**\n * To Initialize the vertical scroll rendering\n *\n * @private\n * @returns {void}\n */\n VScroll.prototype.render = function () {\n this.touchModule = new Touch(this.element, {\n scroll: this.touchHandler.bind(this),\n swipe: this.swipeHandler.bind(this)\n });\n EventHandler.add(this.scrollEle, 'scroll', this.scrollEventHandler, this);\n if (!this.isDevice) {\n this.createNavIcon(this.element);\n } else {\n this.element.classList.add(CLS_DEVICE$1);\n this.createOverlayElement(this.element);\n }\n this.setScrollState();\n EventHandler.add(this.element, 'wheel', this.wheelEventHandler, this);\n };\n VScroll.prototype.setScrollState = function () {\n if (isNullOrUndefined(this.scrollStep) || this.scrollStep < 0) {\n this.scrollStep = this.scrollEle.offsetHeight;\n this.customStep = false;\n } else {\n this.customStep = true;\n }\n };\n VScroll.prototype.initialize = function () {\n var scrollCnt = createElement('div', {\n className: CLS_VSCROLLCON\n });\n var scrollBar = createElement('div', {\n className: CLS_VSCROLLBAR\n });\n scrollBar.setAttribute('tabindex', '-1');\n var ele = this.element;\n var innerEle = [].slice.call(ele.children);\n for (var _i = 0, innerEle_1 = innerEle; _i < innerEle_1.length; _i++) {\n var ele_1 = innerEle_1[_i];\n scrollCnt.appendChild(ele_1);\n }\n scrollBar.appendChild(scrollCnt);\n ele.appendChild(scrollBar);\n scrollBar.style.overflow = 'hidden';\n this.scrollEle = scrollBar;\n this.scrollItems = scrollCnt;\n };\n VScroll.prototype.getPersistData = function () {\n var keyEntity = ['scrollStep'];\n return this.addOnPersist(keyEntity);\n };\n /**\n * Returns the current module name.\n *\n * @returns {string} - It returns the current module name.\n * @private\n */\n VScroll.prototype.getModuleName = function () {\n return 'vScroll';\n };\n /**\n * Removes the control from the DOM and also removes all its related events.\n *\n * @returns {void}\n */\n VScroll.prototype.destroy = function () {\n var el = this.element;\n el.style.display = '';\n removeClass([this.element], [CLS_ROOT$1, CLS_DEVICE$1, CLS_RTL$1]);\n var navs = selectAll('.e-' + el.id + '_nav.' + CLS_VSCROLLNAV, el);\n var overlays = selectAll('.' + CLS_OVERLAY$1, el);\n [].slice.call(overlays).forEach(function (ele) {\n detach(ele);\n });\n for (var _i = 0, _a = [].slice.call(this.scrollItems.children); _i < _a.length; _i++) {\n var elem = _a[_i];\n el.appendChild(elem);\n }\n if (this.uniqueId) {\n this.element.removeAttribute('id');\n }\n detach(this.scrollEle);\n if (navs.length > 0) {\n detach(navs[0]);\n if (!isNullOrUndefined(navs[1])) {\n detach(navs[1]);\n }\n }\n EventHandler.remove(this.scrollEle, 'scroll', this.scrollEventHandler);\n this.touchModule.destroy();\n this.touchModule = null;\n _super.prototype.destroy.call(this);\n };\n /**\n * Specifies the value to disable/enable the VScroll component.\n * When set to `true` , the component will be disabled.\n *\n * @param {boolean} value - Based on this Boolean value, VScroll will be enabled (false) or disabled (true).\n * @returns {void}.\n */\n VScroll.prototype.disable = function (value) {\n var navEle = selectAll('.e-scroll-nav:not(.' + CLS_DISABLE$1 + ')', this.element);\n if (value) {\n this.element.classList.add(CLS_DISABLE$1);\n } else {\n this.element.classList.remove(CLS_DISABLE$1);\n }\n [].slice.call(navEle).forEach(function (el) {\n el.setAttribute('tabindex', !value ? '0' : '-1');\n });\n };\n VScroll.prototype.createOverlayElement = function (element) {\n var id = element.id.concat('_nav');\n var downOverlayEle = createElement('div', {\n className: CLS_OVERLAY$1 + ' ' + CLS_DOWNOVERLAY\n });\n var clsDown = 'e-' + element.id.concat('_nav ' + CLS_VSCROLLNAV + ' ' + CLS_VSCROLLNAVDOWN);\n var downEle = createElement('div', {\n id: id.concat('down'),\n className: clsDown\n });\n var navItem = createElement('div', {\n className: CLS_NAVDOWNARROW + ' ' + CLS_NAVARROW$1 + ' e-icons'\n });\n downEle.appendChild(navItem);\n var upEle = createElement('div', {\n className: CLS_OVERLAY$1 + ' ' + CLS_UPOVERLAY\n });\n if (this.ieCheck) {\n downEle.classList.add('e-ie-align');\n }\n element.appendChild(downOverlayEle);\n element.appendChild(downEle);\n element.insertBefore(upEle, element.firstChild);\n this.eventBinding([downEle]);\n };\n VScroll.prototype.createNavIcon = function (element) {\n var id = element.id.concat('_nav');\n var clsDown = 'e-' + element.id.concat('_nav ' + CLS_VSCROLLNAV + ' ' + CLS_VSCROLLNAVDOWN);\n var nav = createElement('div', {\n id: id.concat('_down'),\n className: clsDown\n });\n nav.setAttribute('aria-disabled', 'false');\n var navItem = createElement('div', {\n className: CLS_NAVDOWNARROW + ' ' + CLS_NAVARROW$1 + ' e-icons'\n });\n var clsUp = 'e-' + element.id.concat('_nav ' + CLS_VSCROLLNAV + ' ' + CLS_VSCROLLNAVUP);\n var navElement = createElement('div', {\n id: id.concat('_up'),\n className: clsUp + ' ' + CLS_DISABLE$1\n });\n navElement.setAttribute('aria-disabled', 'true');\n var navUpItem = createElement('div', {\n className: CLS_NAVUPARROW + ' ' + CLS_NAVARROW$1 + ' e-icons'\n });\n navElement.appendChild(navUpItem);\n nav.appendChild(navItem);\n nav.setAttribute('tabindex', '0');\n element.appendChild(nav);\n element.insertBefore(navElement, element.firstChild);\n if (this.ieCheck) {\n nav.classList.add('e-ie-align');\n navElement.classList.add('e-ie-align');\n }\n this.eventBinding([nav, navElement]);\n };\n VScroll.prototype.onKeyPress = function (ev) {\n var _this = this;\n if (ev.key === 'Enter') {\n var timeoutFun_1 = function () {\n _this.keyTimeout = true;\n _this.eleScrolling(10, ev.target, true);\n };\n this.keyTimer = window.setTimeout(function () {\n timeoutFun_1();\n }, 100);\n }\n };\n VScroll.prototype.onKeyUp = function (ev) {\n if (ev.key !== 'Enter') {\n return;\n }\n if (this.keyTimeout) {\n this.keyTimeout = false;\n } else {\n ev.target.click();\n }\n clearTimeout(this.keyTimer);\n };\n VScroll.prototype.eventBinding = function (element) {\n var _this = this;\n [].slice.call(element).forEach(function (ele) {\n new Touch(ele, {\n tapHold: _this.tabHoldHandler.bind(_this),\n tapHoldThreshold: 500\n });\n ele.addEventListener('keydown', _this.onKeyPress.bind(_this));\n ele.addEventListener('keyup', _this.onKeyUp.bind(_this));\n ele.addEventListener('mouseup', _this.repeatScroll.bind(_this));\n ele.addEventListener('touchend', _this.repeatScroll.bind(_this));\n ele.addEventListener('contextmenu', function (e) {\n e.preventDefault();\n });\n EventHandler.add(ele, 'click', _this.clickEventHandler, _this);\n });\n };\n VScroll.prototype.repeatScroll = function () {\n clearInterval(this.timeout);\n };\n VScroll.prototype.tabHoldHandler = function (ev) {\n var _this = this;\n var trgt = ev.originalEvent.target;\n trgt = this.contains(trgt, CLS_VSCROLLNAV) ? trgt.firstElementChild : trgt;\n var scrollDistance = 10;\n var timeoutFun = function () {\n _this.eleScrolling(scrollDistance, trgt, true);\n };\n this.timeout = window.setInterval(function () {\n timeoutFun();\n }, 50);\n };\n VScroll.prototype.contains = function (element, className) {\n return element.classList.contains(className);\n };\n VScroll.prototype.eleScrolling = function (scrollDis, trgt, isContinuous) {\n var classList = trgt.classList;\n if (classList.contains(CLS_VSCROLLNAV)) {\n classList = trgt.querySelector('.' + CLS_NAVARROW$1).classList;\n }\n if (classList.contains(CLS_NAVDOWNARROW)) {\n this.frameScrollRequest(scrollDis, 'add', isContinuous);\n } else if (classList.contains(CLS_NAVUPARROW)) {\n this.frameScrollRequest(scrollDis, '', isContinuous);\n }\n };\n VScroll.prototype.clickEventHandler = function (event) {\n this.eleScrolling(this.scrollStep, event.target, false);\n };\n VScroll.prototype.wheelEventHandler = function (e) {\n e.preventDefault();\n this.frameScrollRequest(this.scrollStep, e.deltaY > 0 ? 'add' : '', false);\n };\n VScroll.prototype.swipeHandler = function (e) {\n var swipeElement = this.scrollEle;\n var distance;\n if (e.velocity <= 1) {\n distance = e.distanceY / (e.velocity * 10);\n } else {\n distance = e.distanceY / e.velocity;\n }\n var start = 0.5;\n var animate = function () {\n var step = Math.sin(start);\n if (step <= 0) {\n window.cancelAnimationFrame(step);\n } else {\n if (e.swipeDirection === 'Up') {\n swipeElement.scrollTop += distance * step;\n } else if (e.swipeDirection === 'Down') {\n swipeElement.scrollTop -= distance * step;\n }\n start -= 0.02;\n window.requestAnimationFrame(animate);\n }\n };\n animate();\n };\n VScroll.prototype.scrollUpdating = function (scrollVal, action) {\n if (action === 'add') {\n this.scrollEle.scrollTop += scrollVal;\n } else {\n this.scrollEle.scrollTop -= scrollVal;\n }\n };\n VScroll.prototype.frameScrollRequest = function (scrollValue, action, isContinuous) {\n var _this = this;\n var step = 10;\n if (isContinuous) {\n this.scrollUpdating(scrollValue, action);\n return;\n }\n if (!this.customStep) {\n [].slice.call(selectAll('.' + CLS_OVERLAY$1, this.element)).forEach(function (el) {\n scrollValue -= el.offsetHeight;\n });\n }\n var animate = function () {\n if (scrollValue < step) {\n window.cancelAnimationFrame(step);\n } else {\n _this.scrollUpdating(step, action);\n scrollValue -= step;\n window.requestAnimationFrame(animate);\n }\n };\n animate();\n };\n VScroll.prototype.touchHandler = function (e) {\n var el = this.scrollEle;\n var distance = e.distanceY;\n if (e.scrollDirection === 'Up') {\n el.scrollTop = el.scrollTop + distance;\n } else if (e.scrollDirection === 'Down') {\n el.scrollTop = el.scrollTop - distance;\n }\n };\n VScroll.prototype.arrowDisabling = function (addDisableCls, removeDisableCls) {\n if (this.isDevice) {\n var arrowEle = isNullOrUndefined(addDisableCls) ? removeDisableCls : addDisableCls;\n var arrowIcon = arrowEle.querySelector('.' + CLS_NAVARROW$1);\n if (isNullOrUndefined(addDisableCls)) {\n classList(arrowIcon, [CLS_NAVDOWNARROW], [CLS_NAVUPARROW]);\n } else {\n classList(arrowIcon, [CLS_NAVUPARROW], [CLS_NAVDOWNARROW]);\n }\n } else {\n addDisableCls.classList.add(CLS_DISABLE$1);\n addDisableCls.setAttribute('aria-disabled', 'true');\n addDisableCls.removeAttribute('tabindex');\n removeDisableCls.classList.remove(CLS_DISABLE$1);\n removeDisableCls.setAttribute('aria-disabled', 'false');\n removeDisableCls.setAttribute('tabindex', '0');\n }\n this.repeatScroll();\n };\n VScroll.prototype.scrollEventHandler = function (e) {\n var target = e.target;\n var height = target.offsetHeight;\n var navUpEle = this.element.querySelector('.' + CLS_VSCROLLNAVUP);\n var navDownEle = this.element.querySelector('.' + CLS_VSCROLLNAVDOWN);\n var upOverlay = this.element.querySelector('.' + CLS_UPOVERLAY);\n var downOverlay = this.element.querySelector('.' + CLS_DOWNOVERLAY);\n var scrollTop = target.scrollTop;\n if (scrollTop <= 0) {\n scrollTop = -scrollTop;\n }\n if (this.isDevice) {\n if (scrollTop < OVERLAY_MAXWID$1) {\n upOverlay.style.height = scrollTop + 'px';\n } else {\n upOverlay.style.height = '40px';\n }\n if (target.scrollHeight - Math.ceil(height + scrollTop) < OVERLAY_MAXWID$1) {\n downOverlay.style.height = target.scrollHeight - Math.ceil(height + scrollTop) + 'px';\n } else {\n downOverlay.style.height = '40px';\n }\n }\n if (scrollTop === 0) {\n this.arrowDisabling(navUpEle, navDownEle);\n } else if (Math.ceil(height + scrollTop + .1) >= target.scrollHeight) {\n this.arrowDisabling(navDownEle, navUpEle);\n } else {\n var disEle = this.element.querySelector('.' + CLS_VSCROLLNAV + '.' + CLS_DISABLE$1);\n if (disEle) {\n disEle.classList.remove(CLS_DISABLE$1);\n disEle.setAttribute('aria-disabled', 'false');\n disEle.setAttribute('tabindex', '0');\n }\n }\n };\n /**\n * Gets called when the model property changes.The data that describes the old and new values of property that changed.\n *\n * @param {VScrollModel} newProp - It contains the new value of data.\n * @param {VScrollModel} oldProp - It contains the old value of data.\n * @returns {void}\n * @private\n */\n VScroll.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'scrollStep':\n this.setScrollState();\n break;\n case 'enableRtl':\n if (newProp.enableRtl) {\n this.element.classList.add(CLS_RTL$1);\n } else {\n this.element.classList.remove(CLS_RTL$1);\n }\n break;\n }\n }\n };\n __decorate$1([Property(null)], VScroll.prototype, \"scrollStep\", void 0);\n VScroll = __decorate$1([NotifyPropertyChanges], VScroll);\n return VScroll;\n}(Component);\n\n/**\n * Used to add scroll in menu.\n *\n * @param {createElementType} createElement - Specifies the create element model\n * @param {HTMLElement} container - Specifies the element container\n * @param {HTMLElement} content - Specifies the content element\n * @param {string} scrollType - Specifies the scroll type\n * @param {boolean} enableRtl - Specifies the enable RTL property\n * @param {boolean} offset - Specifies the offset value\n * @returns {HTMLElement} - Element\n * @hidden\n */\nfunction addScrolling(createElement, container, content, scrollType, enableRtl, offset) {\n var containerOffset;\n var contentOffset;\n var parentElem = container.parentElement;\n if (scrollType === 'vscroll') {\n containerOffset = offset || container.getBoundingClientRect().height;\n contentOffset = content.getBoundingClientRect().height;\n } else {\n containerOffset = container.getBoundingClientRect().width;\n contentOffset = content.getBoundingClientRect().width;\n }\n if (containerOffset < contentOffset) {\n return createScrollbar(createElement, container, content, scrollType, enableRtl, offset);\n } else if (parentElem) {\n var width = parentElem.getBoundingClientRect().width;\n if (width < containerOffset && scrollType === 'hscroll') {\n contentOffset = width;\n container.style.maxWidth = width + 'px';\n return createScrollbar(createElement, container, content, scrollType, enableRtl, offset);\n }\n return content;\n } else {\n return content;\n }\n}\n/**\n * Used to create scroll bar in menu.\n *\n * @param {createElementType} createElement - Specifies the create element model\n * @param {HTMLElement} container - Specifies the element container\n * @param {HTMLElement} content - Specifies the content element\n * @param {string} scrollType - Specifies the scroll type\n * @param {boolean} enableRtl - Specifies the enable RTL property\n * @param {boolean} offset - Specifies the offset value\n * @returns {HTMLElement} - Element\n * @hidden\n */\nfunction createScrollbar(createElement, container, content, scrollType, enableRtl, offset) {\n var scrollEle = createElement('div', {\n className: 'e-menu-' + scrollType\n });\n container.appendChild(scrollEle);\n scrollEle.appendChild(content);\n if (offset) {\n scrollEle.style.overflow = 'hidden';\n scrollEle.style.height = offset + 'px';\n } else {\n scrollEle.style.maxHeight = container.style.maxHeight;\n container.style.overflow = 'hidden';\n }\n var scrollObj;\n if (scrollType === 'vscroll') {\n scrollObj = new VScroll({\n enableRtl: enableRtl\n }, scrollEle);\n scrollObj.scrollStep = select('.e-' + scrollType + '-bar', container).offsetHeight / 2;\n } else {\n scrollObj = new HScroll({\n enableRtl: enableRtl\n }, scrollEle);\n scrollObj.scrollStep = select('.e-' + scrollType + '-bar', container).offsetWidth;\n }\n return scrollEle;\n}\n/**\n * Used to destroy the scroll option.\n *\n * @param {VScroll | HScroll} scrollObj - Specifies the scroller object\n * @param {Element} element - Specifies the element\n * @param {HTMLElement} skipEle - Specifies the skip element\n * @returns {void}\n * @hidden\n */\nfunction destroyScroll(scrollObj, element, skipEle) {\n if (scrollObj) {\n var menu = select('.e-menu-parent', element);\n if (menu) {\n if (!skipEle || skipEle === menu) {\n scrollObj.destroy();\n element.parentElement.appendChild(menu);\n detach(element);\n }\n } else {\n scrollObj.destroy();\n detach(element);\n }\n }\n}\nvar __extends$2 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 ENTER = 'enter';\nvar ESCAPE = 'escape';\nvar FOCUSED = 'e-focused';\nvar HEADER = 'e-menu-header';\nvar SELECTED = 'e-selected';\nvar SEPARATOR = 'e-separator';\nvar UPARROW = 'uparrow';\nvar DOWNARROW = 'downarrow';\nvar LEFTARROW = 'leftarrow';\nvar RIGHTARROW = 'rightarrow';\nvar HOME = 'home';\nvar END = 'end';\nvar TAB = 'tab';\nvar CARET = 'e-caret';\nvar ITEM = 'e-menu-item';\nvar DISABLED = 'e-disabled';\nvar HIDE = 'e-menu-hide';\nvar ICONS = 'e-icons';\nvar RTL = 'e-rtl';\nvar POPUP = 'e-menu-popup';\nvar TEMPLATE_PROPERTY = 'Template';\n/**\n * Configures the field options of the Menu.\n */\nvar FieldSettings = /** @__PURE__ @class */function (_super) {\n __extends$2(FieldSettings, _super);\n function FieldSettings() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$2([Property('id')], FieldSettings.prototype, \"itemId\", void 0);\n __decorate$2([Property('parentId')], FieldSettings.prototype, \"parentId\", void 0);\n __decorate$2([Property('text')], FieldSettings.prototype, \"text\", void 0);\n __decorate$2([Property('iconCss')], FieldSettings.prototype, \"iconCss\", void 0);\n __decorate$2([Property('url')], FieldSettings.prototype, \"url\", void 0);\n __decorate$2([Property('separator')], FieldSettings.prototype, \"separator\", void 0);\n __decorate$2([Property('items')], FieldSettings.prototype, \"children\", void 0);\n return FieldSettings;\n}(ChildProperty);\n/**\n * Specifies menu items.\n */\nvar MenuItem = /** @__PURE__ @class */function (_super) {\n __extends$2(MenuItem, _super);\n function MenuItem() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$2([Property(null)], MenuItem.prototype, \"iconCss\", void 0);\n __decorate$2([Property('')], MenuItem.prototype, \"id\", void 0);\n __decorate$2([Property(false)], MenuItem.prototype, \"separator\", void 0);\n __decorate$2([Collection([], MenuItem)], MenuItem.prototype, \"items\", void 0);\n __decorate$2([Property('')], MenuItem.prototype, \"text\", void 0);\n __decorate$2([Property('')], MenuItem.prototype, \"url\", void 0);\n return MenuItem;\n}(ChildProperty);\n/**\n * Animation configuration settings.\n */\nvar MenuAnimationSettings = /** @__PURE__ @class */function (_super) {\n __extends$2(MenuAnimationSettings, _super);\n function MenuAnimationSettings() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$2([Property('SlideDown')], MenuAnimationSettings.prototype, \"effect\", void 0);\n __decorate$2([Property(400)], MenuAnimationSettings.prototype, \"duration\", void 0);\n __decorate$2([Property('ease')], MenuAnimationSettings.prototype, \"easing\", void 0);\n return MenuAnimationSettings;\n}(ChildProperty);\n/**\n * Base class for Menu and ContextMenu components.\n *\n * @private\n */\nvar MenuBase = /** @__PURE__ @class */function (_super) {\n __extends$2(MenuBase, _super);\n /**\n * Constructor for creating the widget.\n *\n * @private\n * @param {MenuBaseModel} options - Specifies the menu base model\n * @param {string | HTMLUListElement} element - Specifies the element\n */\n function MenuBase(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.navIdx = [];\n _this.animation = new Animation({});\n _this.isTapHold = false;\n _this.tempItem = [];\n _this.showSubMenuOn = 'Auto';\n _this.isAnimationNone = false;\n return _this;\n }\n /**\n * Initialized third party configuration settings.\n *\n * @private\n * @returns {void}\n */\n MenuBase.prototype.preRender = function () {\n if (!this.isMenu) {\n var ul = void 0;\n if (this.element.tagName === 'EJS-CONTEXTMENU') {\n ul = this.createElement('ul', {\n id: getUniqueID(this.getModuleName()),\n className: 'e-control e-lib e-' + this.getModuleName()\n });\n var ejInst = getValue('ej2_instances', this.element);\n removeClass([this.element], ['e-control', 'e-lib', 'e-' + this.getModuleName()]);\n this.clonedElement = this.element;\n this.element = ul;\n setValue('ej2_instances', ejInst, this.element);\n } else {\n ul = this.createElement('ul', {\n id: getUniqueID(this.getModuleName())\n });\n append([].slice.call(this.element.cloneNode(true).children), ul);\n var refEle = this.element.nextElementSibling;\n if (refEle) {\n this.element.parentElement.insertBefore(ul, refEle);\n } else {\n this.element.parentElement.appendChild(ul);\n }\n this.clonedElement = ul;\n }\n this.clonedElement.style.display = 'none';\n }\n if (this.element.tagName === 'EJS-MENU') {\n var ele = this.element;\n var ejInstance = getValue('ej2_instances', ele);\n var ul = this.createElement('ul');\n var wrapper = this.createElement('EJS-MENU', {\n className: 'e-' + this.getModuleName() + '-wrapper'\n });\n for (var idx = 0, len = ele.attributes.length; idx < len; idx++) {\n ul.setAttribute(ele.attributes[idx].nodeName, ele.attributes[idx].nodeValue);\n }\n ele.parentNode.insertBefore(wrapper, ele);\n detach(ele);\n ele = ul;\n wrapper.appendChild(ele);\n setValue('ej2_instances', ejInstance, ele);\n this.clonedElement = wrapper;\n this.element = ele;\n if (!this.element.id) {\n this.element.id = getUniqueID(this.getModuleName());\n }\n }\n };\n /**\n * Initialize the control rendering.\n *\n * @private\n * @returns {void}\n */\n MenuBase.prototype.render = function () {\n var _this = this;\n this.initialize();\n this.renderItems();\n this.wireEvents();\n this.renderComplete();\n var wrapper = this.getWrapper();\n // eslint-disable-next-line\n if (this.template && this.enableScrolling && (this.isReact || this.isAngular)) {\n requestAnimationFrame(function () {\n addScrolling(_this.createElement, wrapper, _this.element, 'hscroll', _this.enableRtl);\n });\n }\n };\n MenuBase.prototype.initialize = function () {\n var wrapper = this.getWrapper();\n if (!wrapper) {\n wrapper = this.createElement('div', {\n className: 'e-' + this.getModuleName() + '-wrapper'\n });\n if (this.isMenu) {\n this.element.parentElement.insertBefore(wrapper, this.element);\n } else {\n document.body.appendChild(wrapper);\n }\n }\n if (this.cssClass) {\n addClass([wrapper], this.cssClass.replace(/\\s+/g, ' ').trim().split(' '));\n }\n if (this.enableRtl) {\n wrapper.classList.add(RTL);\n }\n wrapper.appendChild(this.element);\n if (this.isMenu && this.hamburgerMode) {\n if (!this.target) {\n this.createHeaderContainer(wrapper);\n }\n }\n this.defaultOption = this.showItemOnClick;\n };\n MenuBase.prototype.renderItems = function () {\n if (!this.items.length) {\n var items = ListBase.createJsonFromElement(this.element, {\n fields: {\n child: 'items'\n }\n });\n this.setProperties({\n items: items\n }, true);\n if (isBlazor() && !this.isMenu) {\n this.element = this.removeChildElement(this.element);\n } else {\n this.element.innerHTML = '';\n }\n }\n var ul = this.createItems(this.items);\n append(Array.prototype.slice.call(ul.children), this.element);\n this.element.classList.add('e-menu-parent');\n if (this.isMenu) {\n if (!this.hamburgerMode && this.element.classList.contains('e-vertical')) {\n this.setBlankIconStyle(this.element);\n }\n if (this.enableScrolling) {\n var wrapper = this.getWrapper();\n if (this.element.classList.contains('e-vertical')) {\n addScrolling(this.createElement, wrapper, this.element, 'vscroll', this.enableRtl);\n } else {\n addScrolling(this.createElement, wrapper, this.element, 'hscroll', this.enableRtl);\n }\n }\n } else {\n this.element.parentElement.setAttribute('role', 'dialog');\n this.element.parentElement.setAttribute('aria-label', 'context menu');\n }\n };\n MenuBase.prototype.wireEvents = function () {\n var wrapper = this.getWrapper();\n if (this.target) {\n var target = void 0;\n var targetElems = selectAll(this.target);\n for (var i = 0, len = targetElems.length; i < len; i++) {\n target = targetElems[i];\n if (this.isMenu) {\n EventHandler.add(target, 'click', this.menuHeaderClickHandler, this);\n } else {\n if (Browser.isIos) {\n new Touch(target, {\n tapHold: this.touchHandler.bind(this)\n });\n } else {\n EventHandler.add(target, 'contextmenu', this.cmenuHandler, this);\n }\n }\n }\n this.targetElement = target;\n if (!this.isMenu) {\n EventHandler.add(this.targetElement, 'scroll', this.scrollHandler, this);\n for (var _i = 0, _a = getScrollableParent(this.targetElement); _i < _a.length; _i++) {\n var parent_1 = _a[_i];\n EventHandler.add(parent_1, 'scroll', this.scrollHandler, this);\n }\n }\n }\n if (!Browser.isDevice) {\n this.delegateMoverHandler = this.moverHandler.bind(this);\n this.delegateMouseDownHandler = this.mouseDownHandler.bind(this);\n EventHandler.add(this.isMenu ? document : wrapper, 'mouseover', this.delegateMoverHandler, this);\n EventHandler.add(document, 'mousedown', this.delegateMouseDownHandler, this);\n }\n this.delegateClickHandler = this.clickHandler.bind(this);\n EventHandler.add(document, 'click', this.delegateClickHandler, this);\n this.wireKeyboardEvent(wrapper);\n this.rippleFn = rippleEffect(wrapper, {\n selector: '.' + ITEM\n });\n };\n MenuBase.prototype.wireKeyboardEvent = function (element) {\n var keyConfigs = {\n downarrow: DOWNARROW,\n uparrow: UPARROW,\n enter: ENTER,\n leftarrow: LEFTARROW,\n rightarrow: RIGHTARROW,\n escape: ESCAPE\n };\n if (this.isMenu) {\n keyConfigs.home = HOME;\n keyConfigs.end = END;\n keyConfigs.tab = TAB;\n }\n new KeyboardEvents(element, {\n keyAction: this.keyBoardHandler.bind(this),\n keyConfigs: keyConfigs\n });\n };\n MenuBase.prototype.mouseDownHandler = function (e) {\n if (closest(e.target, '.e-' + this.getModuleName() + '-wrapper') !== this.getWrapper() && !closest(e.target, '.e-' + this.getModuleName() + '-popup')) {\n this.closeMenu(this.isMenu ? null : this.navIdx.length, e);\n }\n };\n MenuBase.prototype.keyHandler = function (e) {\n if (e.keyCode === 38 || e.keyCode === 40) {\n if (e.target && (e.target.classList.contains('e-contextmenu') || e.target.classList.contains('e-menu-item'))) {\n e.preventDefault();\n }\n }\n };\n MenuBase.prototype.keyBoardHandler = function (e) {\n var actionName = '';\n var trgt = e.target;\n var actionNeeded = this.isMenu && !this.hamburgerMode && !this.element.classList.contains('e-vertical') && this.navIdx.length < 1;\n e.preventDefault();\n if (this.enableScrolling && e.keyCode === 13 && trgt.classList.contains('e-scroll-nav')) {\n this.removeLIStateByClass([FOCUSED, SELECTED], [closest(trgt, '.e-' + this.getModuleName() + '-wrapper')]);\n }\n if (actionNeeded) {\n switch (e.action) {\n case RIGHTARROW:\n actionName = RIGHTARROW;\n e.action = DOWNARROW;\n break;\n case LEFTARROW:\n actionName = LEFTARROW;\n e.action = UPARROW;\n break;\n case DOWNARROW:\n actionName = DOWNARROW;\n e.action = RIGHTARROW;\n break;\n case UPARROW:\n actionName = UPARROW;\n e.action = '';\n break;\n }\n } else if (this.enableRtl) {\n switch (e.action) {\n case LEFTARROW:\n actionNeeded = true;\n actionName = LEFTARROW;\n e.action = RIGHTARROW;\n break;\n case RIGHTARROW:\n actionNeeded = true;\n actionName = RIGHTARROW;\n e.action = LEFTARROW;\n break;\n }\n }\n switch (e.action) {\n case DOWNARROW:\n case UPARROW:\n case END:\n case HOME:\n case TAB:\n this.upDownKeyHandler(e);\n break;\n case RIGHTARROW:\n this.rightEnterKeyHandler(e);\n break;\n case LEFTARROW:\n this.leftEscKeyHandler(e);\n break;\n case ENTER:\n if (this.hamburgerMode && trgt.tagName === 'SPAN' && trgt.classList.contains('e-menu-icon')) {\n this.menuHeaderClickHandler(e);\n } else {\n this.rightEnterKeyHandler(e);\n }\n break;\n case ESCAPE:\n this.leftEscKeyHandler(e);\n break;\n }\n if (actionNeeded) {\n e.action = actionName;\n }\n };\n MenuBase.prototype.upDownKeyHandler = function (e) {\n var cul = this.getUlByNavIdx();\n var defaultIdx = e.action === DOWNARROW || e.action === HOME || e.action === TAB ? 0 : cul.childElementCount - 1;\n var fliIdx = defaultIdx;\n var fli = this.getLIByClass(cul, FOCUSED);\n if (fli) {\n if (e.action !== END && e.action !== HOME) {\n fliIdx = this.getIdx(cul, fli);\n }\n fli.classList.remove(FOCUSED);\n if (e.action !== END && e.action !== HOME) {\n if (e.action === DOWNARROW) {\n fliIdx++;\n } else {\n fliIdx--;\n }\n if (fliIdx === (e.action === DOWNARROW ? cul.childElementCount : -1)) {\n fliIdx = defaultIdx;\n }\n }\n }\n var cli = cul.children[fliIdx];\n fliIdx = this.isValidLI(cli, fliIdx, e.action);\n cul.children[fliIdx].classList.add(FOCUSED);\n cul.children[fliIdx].focus();\n };\n MenuBase.prototype.isValidLI = function (cli, index, action) {\n var cul = this.getUlByNavIdx();\n var defaultIdx = action === DOWNARROW || action === HOME || action === TAB ? 0 : cul.childElementCount - 1;\n if (cli.classList.contains(SEPARATOR) || cli.classList.contains(DISABLED) || cli.classList.contains(HIDE)) {\n if (action === DOWNARROW && index === cul.childElementCount - 1) {\n index = defaultIdx;\n } else if (action === UPARROW && index === 0) {\n index = defaultIdx;\n } else if (action === DOWNARROW || action === RIGHTARROW) {\n index++;\n } else if (action === 'tab' && cli.classList.contains(SEPARATOR)) {\n index++;\n } else {\n index--;\n }\n }\n cli = cul.children[index];\n if (cli && (cli.classList.contains(SEPARATOR) || cli.classList.contains(DISABLED) || cli.classList.contains(HIDE))) {\n index = this.isValidLI(cli, index, action);\n }\n return index;\n };\n MenuBase.prototype.getUlByNavIdx = function (navIdxLen) {\n var _this = this;\n if (navIdxLen === void 0) {\n navIdxLen = this.navIdx.length;\n }\n if (this.isMenu) {\n var popup = [this.getWrapper()].concat([].slice.call(selectAll('.' + POPUP)))[navIdxLen];\n var popups_1 = [];\n var allPopup = selectAll('.' + POPUP);\n allPopup.forEach(function (elem) {\n if (_this.element.id === elem.id.split('-')[2] || elem.id.split('-')[2] + '-' + elem.id.split('-')[3]) {\n popups_1.push(elem);\n }\n });\n popup = [this.getWrapper()].concat([].slice.call(popups_1))[navIdxLen];\n return isNullOrUndefined(popup) ? null : select('.e-menu-parent', popup);\n } else {\n if (!document.body.contains(this.element) && navIdxLen === 0) {\n return null;\n }\n return this.getWrapper().children[navIdxLen];\n }\n };\n MenuBase.prototype.rightEnterKeyHandler = function (e) {\n var eventArgs;\n var cul = this.getUlByNavIdx();\n var fli = this.getLIByClass(cul, FOCUSED);\n if (fli) {\n var fliIdx = this.getIdx(cul, fli);\n var navIdx = this.navIdx.concat(fliIdx);\n var item = this.getItem(navIdx);\n if (item.items.length) {\n this.navIdx.push(fliIdx);\n this.keyType = 'right';\n this.action = e.action;\n this.openMenu(fli, item, -1, -1, e);\n } else {\n if (e.action === ENTER) {\n if (this.isMenu && this.navIdx.length === 0) {\n this.removeLIStateByClass([SELECTED], [this.getWrapper()]);\n } else {\n fli.classList.remove(FOCUSED);\n }\n fli.classList.add(SELECTED);\n eventArgs = {\n element: fli,\n item: item,\n event: e\n };\n this.trigger('select', eventArgs);\n var aEle = fli.querySelector('.e-menu-url');\n if (item.url && aEle) {\n switch (aEle.getAttribute('target')) {\n case '_blank':\n window.open(item.url, '_blank');\n break;\n case '_parent':\n window.parent.location.href = item.url;\n break;\n default:\n window.location.href = item.url;\n }\n }\n this.closeMenu(null, e);\n var sli = this.getLIByClass(this.getUlByNavIdx(), SELECTED);\n if (sli) {\n sli.classList.add(FOCUSED);\n sli.focus();\n }\n }\n }\n }\n };\n MenuBase.prototype.leftEscKeyHandler = function (e) {\n if (this.navIdx.length) {\n this.keyType = 'left';\n this.closeMenu(this.navIdx.length, e);\n } else {\n if (e.action === ESCAPE) {\n this.closeMenu(null, e);\n }\n }\n };\n MenuBase.prototype.scrollHandler = function (e) {\n this.closeMenu(null, e);\n };\n MenuBase.prototype.touchHandler = function (e) {\n this.isTapHold = true;\n this.cmenuHandler(e.originalEvent);\n };\n MenuBase.prototype.cmenuHandler = function (e) {\n e.preventDefault();\n this.currentTarget = e.target;\n this.isCMenu = true;\n this.pageX = e.changedTouches ? e.changedTouches[0].pageX + 1 : e.pageX + 1;\n this.pageY = e.changedTouches ? e.changedTouches[0].pageY + 1 : e.pageY + 1;\n this.closeMenu(null, e);\n if (this.isCMenu) {\n if (this.canOpen(e.target)) {\n this.openMenu(null, null, this.pageY, this.pageX, e);\n }\n this.isCMenu = false;\n }\n };\n // eslint:disable-next-line:max-func-body-length\n MenuBase.prototype.closeMenu = function (ulIndex, e, isIterated) {\n var _this = this;\n if (ulIndex === void 0) {\n ulIndex = 0;\n }\n if (e === void 0) {\n e = null;\n }\n if (this.isMenuVisible()) {\n var sli = void 0;\n var item_1;\n var wrapper_1 = this.getWrapper();\n var beforeCloseArgs = void 0;\n var items_1;\n var popups = this.getPopups();\n var isClose = false;\n var cnt = this.isMenu ? popups.length + 1 : wrapper_1.childElementCount;\n var ul_1 = this.isMenu && cnt !== 1 ? select('.e-ul', popups[cnt - 2]) : selectAll('.e-menu-parent', wrapper_1)[cnt - 1];\n if (this.isMenu && ul_1.classList.contains('e-menu')) {\n sli = this.getLIByClass(ul_1, SELECTED);\n if (sli) {\n sli.classList.remove(SELECTED);\n }\n isClose = true;\n }\n if (!isClose) {\n var liElem_1 = e && e.target && this.getLI(e.target);\n if (liElem_1) {\n this.cli = liElem_1;\n } else {\n this.cli = ul_1.children[0];\n }\n item_1 = this.navIdx.length ? this.getItem(this.navIdx) : null;\n items_1 = item_1 ? item_1.items : this.items;\n beforeCloseArgs = {\n element: ul_1,\n parentItem: item_1,\n items: items_1,\n event: e,\n cancel: false,\n isFocused: true\n };\n this.trigger('beforeClose', beforeCloseArgs, function (observedCloseArgs) {\n var popupEle;\n var closeArgs;\n var popupId = '';\n var popupObj;\n var isOpen = !observedCloseArgs.cancel;\n if (isOpen || _this.isCMenu) {\n if (_this.isMenu) {\n popupEle = closest(ul_1, '.' + POPUP);\n if (_this.hamburgerMode) {\n popupEle.parentElement.style.minHeight = '';\n closest(ul_1, '.e-menu-item').setAttribute('aria-expanded', 'false');\n }\n _this.unWireKeyboardEvent(popupEle);\n destroyScroll(getInstance(popupEle.children[0], VScroll), popupEle.children[0]);\n popupObj = getInstance(popupEle, Popup);\n popupObj.hide();\n popupId = popupEle.id;\n popupObj.destroy();\n detach(popupEle);\n } else {\n _this.isContextMenuClosed = false;\n _this.toggleAnimation(ul_1, false);\n }\n closeArgs = {\n element: ul_1,\n parentItem: item_1,\n items: items_1\n };\n _this.trigger('onClose', closeArgs);\n _this.navIdx.pop();\n if (_this.navIdx.length === 0 && e && e.type === 'keyup') {\n _this.showSubMenu = false;\n }\n if (!_this.isMenu) {\n EventHandler.remove(ul_1, 'keydown', _this.keyHandler);\n if (_this.keyType === 'right') {\n _this.keyType = '';\n }\n }\n }\n _this.updateReactTemplate();\n var trgtliId;\n var closedLi;\n var trgtLi;\n var trgtpopUp = _this.getWrapper() && _this.getUlByNavIdx();\n if (_this.isCMenu) {\n if (_this.canOpen(e.target)) {\n _this.openMenu(null, null, _this.pageY, _this.pageX, e);\n }\n _this.isCMenu = false;\n }\n if (_this.isMenu && trgtpopUp && popupId.length) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n var regExp = RegExp;\n trgtliId = new regExp('(.*)-ej2menu-' + _this.element.id + '-popup').exec(popupId)[1];\n closedLi = trgtpopUp.querySelector('[id=\"' + trgtliId + '\"]');\n trgtLi = liElem_1 && trgtpopUp.querySelector('[id=\"' + liElem_1.id + '\"]');\n } else if (trgtpopUp) {\n closedLi = trgtpopUp.querySelector('.e-menu-item.e-selected');\n trgtLi = liElem_1 && trgtpopUp.querySelector('[id=\"' + liElem_1.id + '\"]');\n }\n var submenus = liElem_1 && liElem_1.querySelectorAll('.e-menu-item');\n if (isOpen && _this.hamburgerMode && ulIndex && !submenus.length) {\n _this.afterCloseMenu(e);\n } else if (isOpen && !_this.hamburgerMode && closedLi && !trgtLi && _this.keyType !== 'left' && (_this.navIdx.length || !_this.isMenu && _this.navIdx.length === 0)) {\n var ele = e && (e.target.classList.contains('e-vscroll') || e.target.classList.contains('e-scroll-nav')) ? closest(e.target, '.e-menu-wrapper') : null;\n if (ele) {\n ele = ele.querySelector('.e-menu-item');\n if (_this.showItemOnClick || ele && _this.getIndex(ele.id, true).length <= _this.navIdx.length) {\n _this.closeMenu(_this.navIdx[_this.navIdx.length - 1], e, true);\n }\n } else {\n if (!(e && e.target.classList.contains('e-nav-arrow'))) {\n _this.closeMenu(_this.navIdx[_this.navIdx.length - 1], e);\n }\n }\n } else if (isOpen && !isIterated && !ulIndex && (_this.hamburgerMode && _this.navIdx.length || _this.navIdx.length === 1 && liElem_1 && trgtpopUp !== liElem_1.parentElement)) {\n _this.closeMenu(null, e);\n } else if (isOpen && isNullOrUndefined(ulIndex) && _this.navIdx.length) {\n _this.closeMenu(null, e);\n } else if (isOpen && !_this.isMenu && !ulIndex && _this.navIdx.length === 0 && !_this.isMenusClosed && !_this.isCmenuHover) {\n _this.isMenusClosed = true;\n _this.closeMenu(0, e);\n } else if (isOpen && _this.isMenu && e && e.target && _this.navIdx.length !== 0 && closest(e.target, '.e-menu-parent.e-control')) {\n _this.closeMenu(0, e);\n } else if (isOpen && !_this.isMenu && selectAll('.e-menu-parent', wrapper_1)[ulIndex - 1] && e.which === 3) {\n _this.closeMenu(null, e);\n } else {\n if (isOpen && (_this.keyType === 'right' || _this.keyType === 'click')) {\n _this.afterCloseMenu(e);\n } else {\n var cul = _this.getUlByNavIdx();\n var sli_1 = _this.getLIByClass(cul, SELECTED);\n if (sli_1) {\n sli_1.setAttribute('aria-expanded', 'false');\n sli_1.classList.remove(SELECTED);\n if (observedCloseArgs.isFocused && liElem_1 || _this.keyType === 'left') {\n sli_1.classList.add(FOCUSED);\n if (!e.target || !e.target.classList.contains('e-edit-template')) {\n sli_1.focus();\n }\n }\n }\n if (!isOpen && _this.hamburgerMode && liElem_1 && liElem_1.getAttribute('aria-expanded') === 'false' && liElem_1.getAttribute('aria-haspopup') === 'true') {\n if (closest(liElem_1, '.e-menu-parent.e-control')) {\n _this.navIdx = [];\n } else {\n _this.navIdx.pop();\n }\n _this.navIdx.push(_this.cliIdx);\n var item_2 = _this.getItem(_this.navIdx);\n liElem_1.setAttribute('aria-expanded', 'true');\n _this.openMenu(liElem_1, item_2, -1, -1, e);\n }\n }\n if (_this.navIdx.length < 1) {\n if (_this.showSubMenuOn === 'Hover' || _this.showSubMenuOn === 'Click') {\n _this.showItemOnClick = _this.defaultOption;\n _this.showSubMenuOn = 'Auto';\n }\n }\n }\n _this.removeStateWrapper();\n });\n }\n }\n };\n MenuBase.prototype.updateReactTemplate = function () {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (this.isReact && this.template && this.navIdx.length === 0) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n var portals = void 0;\n if (this.portals) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n portals = this.portals.splice(0, this.items.length);\n }\n this.clearTemplate(['template']);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.portals = portals;\n this.renderReactTemplates();\n }\n };\n MenuBase.prototype.getMenuItemModel = function (item, level) {\n if (isNullOrUndefined(item)) {\n return null;\n }\n if (isNullOrUndefined(level)) {\n level = 0;\n }\n var fields = this.getFields(level);\n return {\n text: item[fields.text],\n id: item[fields.id],\n items: item[fields.child],\n separator: item[fields.separator],\n iconCss: item[fields.iconCss],\n url: item[fields.url]\n };\n };\n MenuBase.prototype.getPopups = function () {\n var _this = this;\n var popups = [];\n [].slice.call(document.querySelectorAll('.' + POPUP)).forEach(function (elem) {\n if (!isNullOrUndefined(elem.querySelector('.' + ITEM)) && _this.getIndex(elem.querySelector('.' + ITEM).id, true).length) {\n popups.push(elem);\n }\n });\n return popups;\n };\n MenuBase.prototype.isMenuVisible = function () {\n return this.navIdx.length > 0 || this.element.classList.contains('e-contextmenu') && isVisible(this.element).valueOf();\n };\n MenuBase.prototype.canOpen = function (target) {\n var canOpen = true;\n if (this.filter) {\n canOpen = false;\n var filter = this.filter.split(' ');\n for (var i = 0, len = filter.length; i < len; i++) {\n if (closest(target, '.' + filter[i])) {\n canOpen = true;\n break;\n }\n }\n }\n return canOpen;\n };\n MenuBase.prototype.openMenu = function (li, item, top, left, e, target) {\n var _this = this;\n if (top === void 0) {\n top = 0;\n }\n if (left === void 0) {\n left = 0;\n }\n if (e === void 0) {\n e = null;\n }\n if (target === void 0) {\n target = this.targetElement;\n }\n var wrapper = this.getWrapper();\n this.lItem = li;\n var elemId = this.element.id !== '' ? this.element.id : 'menu';\n this.isMenusClosed = false;\n if (isNullOrUndefined(top)) {\n top = -1;\n }\n if (isNullOrUndefined(left)) {\n left = -1;\n }\n if (li) {\n this.uList = this.createItems(item[this.getField('children', this.navIdx.length - 1)]);\n if (!this.isMenu && Browser.isDevice) {\n wrapper.lastChild.style.display = 'none';\n var data = {\n text: item[this.getField('text')].toString(),\n iconCss: ICONS + ' e-previous'\n };\n var hdata = new MenuItem(this.items[0], 'items', data, true);\n var hli = this.createItems([hdata]).children[0];\n hli.classList.add(HEADER);\n this.uList.insertBefore(hli, this.uList.children[0]);\n }\n if (this.isMenu) {\n this.popupWrapper = this.createElement('div', {\n className: 'e-' + this.getModuleName() + '-wrapper ' + POPUP,\n id: li.id + '-ej2menu-' + elemId + '-popup'\n });\n if (this.hamburgerMode) {\n top = li.offsetHeight;\n li.appendChild(this.popupWrapper);\n } else {\n document.body.appendChild(this.popupWrapper);\n }\n this.isNestedOrVertical = this.element.classList.contains('e-vertical') || this.navIdx.length !== 1;\n this.popupObj = this.generatePopup(this.popupWrapper, this.uList, li, this.isNestedOrVertical);\n if (this.template) {\n this.renderReactTemplates();\n }\n if (this.hamburgerMode) {\n this.calculateIndentSize(this.uList, li);\n } else {\n if (this.cssClass) {\n addClass([this.popupWrapper], this.cssClass.replace(/\\s+/g, ' ').trim().split(' '));\n }\n this.popupObj.hide();\n }\n if (!this.hamburgerMode && !this.showItemOnClick && this.hoverDelay) {\n window.clearInterval(this.timer);\n this.timer = window.setTimeout(function () {\n _this.triggerBeforeOpen(li, _this.uList, item, e, 0, 0, 'menu');\n }, this.hoverDelay);\n } else {\n this.triggerBeforeOpen(li, this.uList, item, e, 0, 0, 'menu');\n }\n } else {\n this.uList.style.zIndex = this.element.style.zIndex;\n wrapper.appendChild(this.uList);\n if (!this.showItemOnClick && this.hoverDelay) {\n window.clearInterval(this.timer);\n this.timer = window.setTimeout(function () {\n _this.triggerBeforeOpen(li, _this.uList, item, e, top, left, 'none');\n }, this.hoverDelay);\n } else {\n this.triggerBeforeOpen(li, this.uList, item, e, top, left, 'none');\n }\n }\n } else {\n this.uList = this.element;\n this.uList.style.zIndex = getZindexPartial(target ? target : this.element).toString();\n if (isNullOrUndefined(e)) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n var ev = document.createEvent('MouseEvents');\n ev.initEvent('click', true, false);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n var targetEvent = this.copyObject(ev, {});\n targetEvent.target = targetEvent.srcElement = target;\n targetEvent.currentTarget = target;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.triggerBeforeOpen(li, this.uList, item, targetEvent, top, left, 'none');\n } else {\n this.triggerBeforeOpen(li, this.uList, item, e, top, left, 'none');\n }\n }\n };\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n MenuBase.prototype.copyObject = function (source, destination) {\n // eslint-disable-next-line guard-for-in\n for (var prop in source) {\n destination[\"\" + prop] = source[\"\" + prop];\n }\n return destination;\n };\n MenuBase.prototype.calculateIndentSize = function (ul, li) {\n var liStyle = getComputedStyle(li);\n var liIndent = parseInt(liStyle.textIndent, 10);\n if (this.navIdx.length < 2 && !li.classList.contains('e-blankicon')) {\n liIndent *= 2;\n } else {\n liIndent += liIndent / 4;\n }\n ul.style.textIndent = liIndent + 'px';\n var blankIconElem = ul.querySelectorAll('.e-blankicon');\n if (blankIconElem && blankIconElem.length) {\n var menuIconElem = ul.querySelector('.e-menu-icon');\n var menuIconElemStyle = getComputedStyle(menuIconElem);\n var blankIconIndent = parseInt(menuIconElemStyle.marginRight, 10) + menuIconElem.offsetWidth + liIndent;\n for (var i = 0; i < blankIconElem.length; i++) {\n blankIconElem[i].style.textIndent = blankIconIndent + 'px';\n }\n }\n };\n MenuBase.prototype.generatePopup = function (popupWrapper, ul, li, isNestedOrVertical) {\n var _this = this;\n var popupObj = new Popup(popupWrapper, {\n actionOnScroll: this.hamburgerMode ? 'none' : 'reposition',\n relateTo: li,\n collision: this.hamburgerMode ? {\n X: 'none',\n Y: 'none'\n } : {\n X: isNestedOrVertical || this.enableRtl ? 'none' : 'flip',\n Y: 'fit'\n },\n position: isNestedOrVertical && !this.hamburgerMode ? {\n X: 'right',\n Y: 'top'\n } : {\n X: 'left',\n Y: 'bottom'\n },\n targetType: 'relative',\n enableRtl: this.enableRtl,\n content: ul,\n open: function () {\n var scrollEle = select('.e-menu-vscroll', popupObj.element);\n if (scrollEle) {\n scrollEle.style.height = 'inherit';\n scrollEle.style.maxHeight = '';\n }\n var ul = select('.e-ul', popupObj.element);\n popupObj.element.style.maxHeight = '';\n ul.focus();\n _this.triggerOpen(ul);\n }\n });\n return popupObj;\n };\n MenuBase.prototype.createHeaderContainer = function (wrapper) {\n wrapper = wrapper || this.getWrapper();\n var spanElem = this.createElement('span', {\n className: 'e-' + this.getModuleName() + '-header'\n });\n var tempTitle = this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(this.title) : this.title;\n var spanTitle = this.createElement('span', {\n className: 'e-' + this.getModuleName() + '-title',\n innerHTML: tempTitle\n });\n var spanIcon = this.createElement('span', {\n className: 'e-icons e-' + this.getModuleName() + '-icon',\n attrs: {\n 'tabindex': '0'\n }\n });\n spanElem.appendChild(spanTitle);\n spanElem.appendChild(spanIcon);\n wrapper.insertBefore(spanElem, this.element);\n };\n MenuBase.prototype.openHamburgerMenu = function (e) {\n if (this.hamburgerMode) {\n this.triggerBeforeOpen(null, this.element, null, e, 0, 0, 'hamburger');\n }\n };\n MenuBase.prototype.closeHamburgerMenu = function (e) {\n var _this = this;\n var beforeCloseArgs = {\n element: this.element,\n parentItem: null,\n event: e,\n items: this.items,\n cancel: false\n };\n this.trigger('beforeClose', beforeCloseArgs, function (observedHamburgerCloseArgs) {\n if (!observedHamburgerCloseArgs.cancel) {\n _this.closeMenu(null, e);\n _this.element.classList.add('e-hide-menu');\n _this.trigger('onClose', {\n element: _this.element,\n parentItem: null,\n items: _this.items\n });\n }\n });\n };\n MenuBase.prototype.callFit = function (element, x, y, top, left) {\n return fit(element, null, {\n X: x,\n Y: y\n }, {\n top: top,\n left: left\n });\n };\n MenuBase.prototype.triggerBeforeOpen = function (li, ul, item, e, top, left, type) {\n var _this = this;\n var items = li ? item[this.getField('children', this.navIdx.length - 1)] : this.items;\n var eventArgs = {\n element: ul,\n items: items,\n parentItem: item,\n event: e,\n cancel: false,\n top: top,\n left: left,\n showSubMenuOn: 'Auto'\n };\n var menuType = type;\n this.trigger('beforeOpen', eventArgs, function (observedOpenArgs) {\n switch (menuType) {\n case 'menu':\n if (!_this.hamburgerMode) {\n if (observedOpenArgs.showSubMenuOn !== 'Auto') {\n _this.showItemOnClick = !_this.defaultOption;\n _this.showSubMenuOn = observedOpenArgs.showSubMenuOn;\n }\n _this.top = observedOpenArgs.top;\n _this.left = observedOpenArgs.left;\n }\n _this.popupWrapper.style.display = 'block';\n if (!_this.hamburgerMode) {\n _this.popupWrapper.style.maxHeight = _this.popupWrapper.getBoundingClientRect().height + 'px';\n if (_this.enableScrolling) {\n addScrolling(_this.createElement, _this.popupWrapper, _this.uList, 'vscroll', _this.enableRtl);\n }\n _this.checkScrollOffset(e);\n }\n if (!_this.hamburgerMode && !_this.left && !_this.top) {\n _this.popupObj.refreshPosition(_this.lItem, true);\n _this.left = parseInt(_this.popupWrapper.style.left, 10);\n _this.top = parseInt(_this.popupWrapper.style.top, 10);\n if (_this.enableRtl) {\n _this.left = _this.isNestedOrVertical ? _this.left - _this.popupWrapper.offsetWidth - _this.lItem.parentElement.offsetWidth + 2 : _this.left - _this.popupWrapper.offsetWidth + _this.lItem.offsetWidth;\n }\n // eslint-disable-next-line\n if (_this.template && (_this.isReact || _this.isAngular)) {\n requestAnimationFrame(function () {\n _this.collision();\n _this.popupWrapper.style.display = '';\n });\n } else {\n _this.collision();\n _this.popupWrapper.style.display = '';\n }\n } else {\n _this.popupObj.collision = {\n X: 'none',\n Y: 'none'\n };\n _this.popupWrapper.style.display = '';\n }\n break;\n case 'none':\n _this.top = observedOpenArgs.top;\n _this.left = observedOpenArgs.left;\n _this.isContextMenuClosed = true;\n break;\n case 'hamburger':\n if (!observedOpenArgs.cancel) {\n _this.element.classList.remove('e-hide-menu');\n _this.triggerOpen(_this.element);\n }\n break;\n }\n if (menuType !== 'hamburger') {\n if (observedOpenArgs.cancel) {\n if (_this.isMenu) {\n _this.popupObj.destroy();\n detach(_this.popupWrapper);\n } else if (ul.className.indexOf('e-ul') > -1) {\n detach(ul);\n }\n _this.navIdx.pop();\n } else {\n if (_this.isMenu) {\n if (_this.hamburgerMode) {\n _this.popupWrapper.style.top = _this.top + 'px';\n _this.popupWrapper.style.left = 0 + 'px';\n _this.toggleAnimation(_this.popupWrapper);\n } else {\n _this.setBlankIconStyle(_this.popupWrapper);\n _this.wireKeyboardEvent(_this.popupWrapper);\n rippleEffect(_this.popupWrapper, {\n selector: '.' + ITEM\n });\n _this.popupWrapper.style.left = _this.left + 'px';\n _this.popupWrapper.style.top = _this.top + 'px';\n var animationOptions = _this.animationSettings.effect !== 'None' ? {\n name: _this.animationSettings.effect,\n duration: _this.animationSettings.duration,\n timingFunction: _this.animationSettings.easing\n } : null;\n _this.popupObj.show(animationOptions, _this.lItem);\n }\n } else {\n _this.setBlankIconStyle(_this.uList);\n _this.setPosition(_this.lItem, _this.uList, _this.top, _this.left);\n _this.toggleAnimation(_this.uList);\n }\n }\n }\n if (_this.keyType === 'right') {\n var cul = _this.getUlByNavIdx();\n li.classList.remove(FOCUSED);\n if (_this.isMenu && _this.navIdx.length === 1) {\n _this.removeLIStateByClass([SELECTED], [_this.getWrapper()]);\n }\n li.classList.add(SELECTED);\n if (_this.action === ENTER) {\n var eventArgs_1 = {\n element: li,\n item: item,\n event: e\n };\n _this.trigger('select', eventArgs_1);\n }\n li.focus();\n cul = _this.getUlByNavIdx();\n var index = _this.isValidLI(cul.children[0], 0, _this.action);\n cul.children[index].classList.add(FOCUSED);\n cul.children[index].focus();\n }\n });\n };\n MenuBase.prototype.collision = function () {\n var collide;\n collide = isCollide(this.popupWrapper, null, this.left, this.top);\n if ((this.isNestedOrVertical || this.enableRtl) && (collide.indexOf('right') > -1 || collide.indexOf('left') > -1)) {\n this.popupObj.collision.X = 'none';\n var offWidth = closest(this.lItem, '.e-' + this.getModuleName() + '-wrapper').offsetWidth;\n this.left = this.enableRtl ? calculatePosition(this.lItem, this.isNestedOrVertical ? 'right' : 'left', 'top').left : this.left - this.popupWrapper.offsetWidth - offWidth + 2;\n }\n collide = isCollide(this.popupWrapper, null, this.left, this.top);\n if (collide.indexOf('left') > -1 || collide.indexOf('right') > -1) {\n this.left = this.callFit(this.popupWrapper, true, false, this.top, this.left).left;\n }\n this.popupWrapper.style.left = this.left + 'px';\n };\n MenuBase.prototype.setBlankIconStyle = function (menu) {\n var blankIconList = [].slice.call(menu.getElementsByClassName('e-blankicon'));\n if (!blankIconList.length) {\n return;\n }\n var iconLi = menu.querySelector('.e-menu-item:not(.e-blankicon):not(.e-separator)');\n if (!iconLi) {\n return;\n }\n var icon = iconLi.querySelector('.e-menu-icon');\n if (!icon) {\n return;\n }\n var cssProp = this.enableRtl ? {\n padding: 'paddingRight',\n margin: 'marginLeft'\n } : {\n padding: 'paddingLeft',\n margin: 'marginRight'\n };\n var iconCssProps = getComputedStyle(icon);\n var iconSize = parseInt(iconCssProps.fontSize, 10);\n if (!!parseInt(iconCssProps.width, 10) && parseInt(iconCssProps.width, 10) > iconSize) {\n iconSize = parseInt(iconCssProps.width, 10);\n }\n // eslint:disable\n var size = iconSize + parseInt(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n iconCssProps[cssProp.margin], 10) + parseInt(getComputedStyle(iconLi)[cssProp.padding], 10) + \"px\";\n blankIconList.forEach(function (li) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n li.style[cssProp.padding] = size;\n });\n // eslint:enable\n };\n MenuBase.prototype.checkScrollOffset = function (e) {\n var wrapper = this.getWrapper();\n if (wrapper.children[0].classList.contains('e-menu-hscroll') && this.navIdx.length === 1) {\n var trgt = isNullOrUndefined(e) ? this.element : closest(e.target, '.' + ITEM);\n var offsetEle = select('.e-hscroll-bar', wrapper);\n if (offsetEle.scrollLeft > trgt.offsetLeft) {\n offsetEle.scrollLeft -= offsetEle.scrollLeft - trgt.offsetLeft;\n }\n var offsetLeft = offsetEle.scrollLeft + offsetEle.offsetWidth;\n var offsetRight = trgt.offsetLeft + trgt.offsetWidth;\n if (offsetLeft < offsetRight) {\n offsetEle.scrollLeft += offsetRight - offsetLeft;\n }\n }\n };\n MenuBase.prototype.setPosition = function (li, ul, top, left) {\n var px = 'px';\n this.toggleVisiblity(ul);\n if (ul === this.element || left > -1 && top > -1) {\n var collide = isCollide(ul, null, left, top);\n if (collide.indexOf('right') > -1) {\n left = left - ul.offsetWidth;\n }\n if (collide.indexOf('bottom') > -1) {\n var offset = this.callFit(ul, false, true, top, left);\n top = offset.top - 20;\n if (top < 0) {\n var newTop = pageYOffset + document.documentElement.clientHeight - ul.getBoundingClientRect().height;\n if (newTop > -1) {\n top = newTop;\n }\n }\n }\n collide = isCollide(ul, null, left, top);\n if (collide.indexOf('left') > -1) {\n var offset = this.callFit(ul, true, false, top, left);\n left = offset.left;\n }\n } else {\n if (Browser.isDevice) {\n top = Number(this.element.style.top.replace(px, ''));\n left = Number(this.element.style.left.replace(px, ''));\n } else {\n var x = this.enableRtl ? 'left' : 'right';\n var offset = calculatePosition(li, x, 'top');\n top = offset.top;\n left = offset.left;\n var collide = isCollide(ul, null, this.enableRtl ? left - ul.offsetWidth : left, top);\n var xCollision = collide.indexOf('left') > -1 || collide.indexOf('right') > -1;\n if (xCollision) {\n offset = calculatePosition(li, this.enableRtl ? 'right' : 'left', 'top');\n left = offset.left;\n }\n if (this.enableRtl || xCollision) {\n left = this.enableRtl && xCollision ? left : left - ul.offsetWidth;\n }\n if (collide.indexOf('bottom') > -1) {\n offset = this.callFit(ul, false, true, top, left);\n top = offset.top;\n }\n }\n }\n this.toggleVisiblity(ul, false);\n ul.style.top = top + px;\n ul.style.left = left + px;\n };\n MenuBase.prototype.toggleVisiblity = function (ul, isVisible) {\n if (isVisible === void 0) {\n isVisible = true;\n }\n ul.style.visibility = isVisible ? 'hidden' : '';\n ul.style.display = isVisible ? 'block' : 'none';\n };\n MenuBase.prototype.createItems = function (items) {\n var _this = this;\n var level = this.navIdx ? this.navIdx.length : 0;\n var fields = this.getFields(level);\n var showIcon = this.hasField(items, this.getField('iconCss', level));\n var listBaseOptions = {\n showIcon: showIcon,\n moduleName: 'menu',\n fields: fields,\n template: this.template,\n itemNavigable: true,\n itemCreating: function (args) {\n if (!args.curData[args.fields[fields.id]]) {\n args.curData[args.fields[fields.id]] = getUniqueID('menuitem');\n }\n if (isNullOrUndefined(args.curData.htmlAttributes)) {\n args.curData.htmlAttributes = {};\n }\n if (Browser.isIE) {\n args.curData.htmlAttributes.role = 'menuitem';\n args.curData.htmlAttributes.tabindex = '-1';\n } else {\n Object.assign(args.curData.htmlAttributes, {\n role: 'menuitem',\n tabindex: '-1'\n });\n }\n if (_this.isMenu && !args.curData[_this.getField('separator', level)]) {\n args.curData.htmlAttributes['aria-label'] = args.curData[args.fields.text] ? args.curData[args.fields.text] : args.curData[args.fields.id];\n }\n if (args.curData[args.fields[fields.iconCss]] === '') {\n args.curData[args.fields[fields.iconCss]] = null;\n }\n },\n itemCreated: function (args) {\n if (args.curData[_this.getField('separator', level)]) {\n args.item.classList.add(SEPARATOR);\n args.item.setAttribute('role', 'separator');\n }\n if (showIcon && !args.curData[args.fields.iconCss] && !args.curData[_this.getField('separator', level)]) {\n args.item.classList.add('e-blankicon');\n }\n if (args.curData[args.fields.child] && args.curData[args.fields.child].length) {\n var span = _this.createElement('span', {\n className: ICONS + ' ' + CARET\n });\n args.item.appendChild(span);\n args.item.setAttribute('aria-haspopup', 'true');\n args.item.setAttribute('aria-expanded', 'false');\n args.item.classList.add('e-menu-caret-icon');\n }\n if (_this.isMenu && _this.template) {\n args.item.setAttribute('id', args.curData[args.fields.id].toString());\n args.item.removeAttribute('data-uid');\n if (args.item.classList.contains('e-level-1')) {\n args.item.classList.remove('e-level-1');\n }\n if (args.item.classList.contains('e-has-child')) {\n args.item.classList.remove('e-has-child');\n }\n args.item.removeAttribute('aria-level');\n }\n var eventArgs = {\n item: args.curData,\n element: args.item\n };\n _this.trigger('beforeItemRender', eventArgs);\n }\n };\n this.setProperties({\n 'items': this.items\n }, true);\n if (this.isMenu) {\n listBaseOptions.templateID = this.element.id + TEMPLATE_PROPERTY;\n }\n var ul = ListBase.createList(this.createElement, items, listBaseOptions, !this.template, this);\n ul.setAttribute('tabindex', '0');\n if (this.isMenu) {\n ul.setAttribute('role', 'menu');\n } else {\n ul.setAttribute('role', 'menubar');\n }\n return ul;\n };\n MenuBase.prototype.moverHandler = function (e) {\n var trgt = e.target;\n this.liTrgt = trgt;\n if (!this.isMenu) {\n this.isCmenuHover = true;\n }\n var cli = this.getLI(trgt);\n var wrapper = cli ? closest(cli, '.e-' + this.getModuleName() + '-wrapper') : this.getWrapper();\n var hdrWrapper = this.getWrapper();\n var regex = new RegExp('-ej2menu-(.*)-popup');\n var ulId;\n var isDifferentElem = false;\n if (!wrapper) {\n return;\n }\n if (wrapper.id !== '') {\n ulId = regex.exec(wrapper.id)[1];\n } else {\n ulId = wrapper.querySelector('ul').id;\n }\n if (ulId !== this.element.id) {\n this.removeLIStateByClass([FOCUSED, SELECTED], [this.getWrapper()]);\n if (this.navIdx.length) {\n isDifferentElem = true;\n } else {\n return;\n }\n }\n if (cli && closest(cli, '.e-' + this.getModuleName() + '-wrapper') && !isDifferentElem) {\n this.removeLIStateByClass([FOCUSED], this.isMenu ? [wrapper].concat(this.getPopups()) : [wrapper]);\n this.removeLIStateByClass([FOCUSED], this.isMenu ? [hdrWrapper].concat(this.getPopups()) : [hdrWrapper]);\n cli.classList.add(FOCUSED);\n if (!this.showItemOnClick) {\n this.clickHandler(e);\n }\n } else if (this.isMenu && this.showItemOnClick && !isDifferentElem) {\n this.removeLIStateByClass([FOCUSED], [wrapper].concat(this.getPopups()));\n }\n if (this.isMenu) {\n if (!this.showItemOnClick && trgt.parentElement !== wrapper && !closest(trgt, '.e-' + this.getModuleName() + '-popup') && (!cli || cli && !this.getIndex(cli.id, true).length) && this.showSubMenuOn !== 'Hover') {\n this.removeLIStateByClass([FOCUSED], [wrapper]);\n if (this.navIdx.length) {\n this.isClosed = true;\n this.closeMenu(null, e);\n }\n } else if (isDifferentElem && !this.showItemOnClick) {\n if (this.navIdx.length) {\n this.isClosed = true;\n this.closeMenu(null, e);\n }\n }\n if (!this.isClosed) {\n this.removeStateWrapper();\n }\n this.isClosed = false;\n }\n if (!this.isMenu) {\n this.isCmenuHover = false;\n }\n };\n MenuBase.prototype.removeStateWrapper = function () {\n if (this.liTrgt) {\n var wrapper = closest(this.liTrgt, '.e-menu-vscroll');\n if (this.liTrgt.tagName === 'DIV' && wrapper) {\n this.removeLIStateByClass([FOCUSED, SELECTED], [wrapper]);\n }\n }\n };\n MenuBase.prototype.removeLIStateByClass = function (classList, element) {\n var li;\n var _loop_1 = function (i) {\n classList.forEach(function (className) {\n li = select('.' + className, element[i]);\n if (li) {\n li.classList.remove(className);\n }\n });\n };\n for (var i = 0; i < element.length; i++) {\n _loop_1(i);\n }\n };\n MenuBase.prototype.getField = function (propName, level) {\n if (level === void 0) {\n level = 0;\n }\n var fieldName = this.fields[\"\" + propName];\n return typeof fieldName === 'string' ? fieldName : !fieldName[level] ? fieldName[fieldName.length - 1].toString() : fieldName[level].toString();\n };\n MenuBase.prototype.getFields = function (level) {\n if (level === void 0) {\n level = 0;\n }\n return {\n id: this.getField('itemId', level),\n iconCss: this.getField('iconCss', level),\n text: this.getField('text', level),\n url: this.getField('url', level),\n child: this.getField('children', level),\n separator: this.getField('separator', level)\n };\n };\n MenuBase.prototype.hasField = function (items, field) {\n for (var i = 0, len = items.length; i < len; i++) {\n if (items[i][\"\" + field]) {\n return true;\n }\n }\n return false;\n };\n MenuBase.prototype.menuHeaderClickHandler = function (e) {\n var menuWrapper = closest(e.target, '.e-menu-wrapper');\n if (menuWrapper && menuWrapper.querySelector('ul.e-menu-parent').id !== this.element.id) {\n return;\n }\n if (this.element.className.indexOf('e-hide-menu') > -1) {\n this.openHamburgerMenu(e);\n } else {\n this.closeHamburgerMenu(e);\n }\n };\n MenuBase.prototype.clickHandler = function (e) {\n this.isTapHold = this.isTapHold ? false : this.isTapHold;\n var wrapper = this.getWrapper();\n var trgt = e.target;\n var cli = this.cli = this.getLI(trgt);\n var regex = new RegExp('-ej2menu-(.*)-popup');\n var cliWrapper = cli ? closest(cli, '.e-' + this.getModuleName() + '-wrapper') : null;\n var isInstLI = cli && cliWrapper && (this.isMenu ? this.getIndex(cli.id, true).length > 0 : wrapper.firstElementChild.id === cliWrapper.firstElementChild.id);\n if (Browser.isDevice && this.isMenu) {\n this.removeLIStateByClass([FOCUSED], [wrapper].concat(this.getPopups()));\n this.mouseDownHandler(e);\n }\n if (cli && cliWrapper && this.isMenu) {\n var cliWrapperId = cliWrapper.id ? regex.exec(cliWrapper.id)[1] : cliWrapper.querySelector('.e-menu-parent').id;\n if (this.element.id !== cliWrapperId) {\n return;\n }\n }\n if (isInstLI && e.type === 'click' && !cli.classList.contains(HEADER)) {\n this.setLISelected(cli);\n var navIdx = this.getIndex(cli.id, true);\n var item = this.getItem(navIdx);\n var eventArgs = {\n element: cli,\n item: item,\n event: e\n };\n this.trigger('select', eventArgs);\n }\n if (isInstLI && (e.type === 'mouseover' || Browser.isDevice || this.showItemOnClick)) {\n var ul = void 0;\n if (cli.classList.contains(HEADER)) {\n ul = wrapper.children[this.navIdx.length - 1];\n this.toggleAnimation(ul);\n var sli = this.getLIByClass(ul, SELECTED);\n if (sli) {\n sli.classList.remove(SELECTED);\n }\n detach(cli.parentNode);\n this.navIdx.pop();\n } else {\n if (!cli.classList.contains(SEPARATOR)) {\n this.showSubMenu = true;\n var cul = cli.parentNode;\n if (isNullOrUndefined(cul)) {\n return;\n }\n this.cliIdx = this.getIdx(cul, cli);\n if (this.isMenu || !Browser.isDevice) {\n var culIdx = this.isMenu ? Array.prototype.indexOf.call([wrapper].concat(this.getPopups()), closest(cul, '.' + 'e-' + this.getModuleName() + '-wrapper')) : this.getIdx(wrapper, cul);\n if (this.navIdx[culIdx] === this.cliIdx) {\n this.showSubMenu = false;\n }\n if (culIdx !== this.navIdx.length && (e.type !== 'mouseover' || this.showSubMenu)) {\n var sli = this.getLIByClass(cul, SELECTED);\n if (sli) {\n sli.classList.remove(SELECTED);\n }\n this.isClosed = true;\n this.keyType = 'click';\n if (this.showItemOnClick) {\n this.setLISelected(cli);\n if (!this.isMenu) {\n this.isCmenuHover = true;\n }\n }\n this.closeMenu(culIdx + 1, e);\n if (this.showItemOnClick) {\n this.setLISelected(cli);\n if (!this.isMenu) {\n this.isCmenuHover = false;\n }\n }\n }\n }\n if (!this.isClosed) {\n this.afterCloseMenu(e);\n }\n this.isClosed = false;\n }\n }\n } else {\n if (this.isMenu && trgt.tagName === 'DIV' && this.navIdx.length && closest(trgt, '.e-menu-vscroll')) {\n var popupEle = closest(trgt, '.' + POPUP);\n var cIdx = Array.prototype.indexOf.call(this.getPopups(), popupEle) + 1;\n if (cIdx < this.navIdx.length) {\n this.closeMenu(cIdx + 1, e);\n if (popupEle) {\n this.removeLIStateByClass([FOCUSED, SELECTED], [popupEle]);\n }\n }\n } else if (this.isMenu && this.hamburgerMode && trgt.tagName === 'SPAN' && trgt.classList.contains('e-menu-icon')) {\n this.menuHeaderClickHandler(e);\n } else {\n if (trgt.tagName !== 'UL' || (this.isMenu ? trgt.parentElement.classList.contains('e-menu-wrapper') && !this.getIndex(trgt.querySelector('.' + ITEM).id, true).length : trgt.parentElement !== wrapper)) {\n if (!cli) {\n this.removeLIStateByClass([SELECTED], [wrapper]);\n }\n if (!this.isAnimationNone && !cli || cli && !cli.querySelector('.' + CARET)) {\n if (navigator.platform.toUpperCase().indexOf('MAC') < 0 || navigator.platform.toUpperCase().indexOf('MAC') >= 0 && !e.ctrlKey) {\n this.closeMenu(null, e);\n }\n }\n }\n }\n }\n };\n MenuBase.prototype.afterCloseMenu = function (e) {\n if (isNullOrUndefined(e)) {\n return;\n }\n var isHeader;\n if (this.showSubMenu) {\n if (this.showItemOnClick && this.navIdx.length === 0) {\n isHeader = closest(e.target, '.e-menu-parent.e-control');\n } else {\n isHeader = closest(this.element, '.e-menu-parent.e-control');\n }\n var idx = this.navIdx.concat(this.cliIdx);\n var item = this.getItem(idx);\n if (item && item[this.getField('children', idx.length - 1)] && item[this.getField('children', idx.length - 1)].length) {\n if (e.type === 'mouseover' || Browser.isDevice && this.isMenu) {\n this.setLISelected(this.cli);\n }\n if (!this.hamburgerMode && isHeader || this.hamburgerMode && this.cli.getAttribute('aria-expanded') === 'false') {\n this.cli.setAttribute('aria-expanded', 'true');\n this.navIdx.push(this.cliIdx);\n this.openMenu(this.cli, item, null, null, e);\n }\n } else {\n if (e.type !== 'mouseover') {\n this.closeMenu(null, e);\n }\n }\n if (!isHeader) {\n var cul = this.getUlByNavIdx();\n var sli = this.getLIByClass(cul, SELECTED);\n if (sli) {\n sli.setAttribute('aria-expanded', 'false');\n sli.classList.remove(SELECTED);\n }\n }\n }\n this.keyType = '';\n };\n MenuBase.prototype.setLISelected = function (li) {\n var sli = this.getLIByClass(li.parentElement, SELECTED);\n if (sli) {\n sli.classList.remove(SELECTED);\n }\n if (!this.isMenu) {\n li.classList.remove(FOCUSED);\n }\n li.classList.add(SELECTED);\n };\n MenuBase.prototype.getLIByClass = function (ul, classname) {\n if (ul && ul.children) {\n for (var i = 0, len = ul.children.length; i < len; i++) {\n if (ul.children[i].classList.contains(classname)) {\n return ul.children[i];\n }\n }\n }\n return null;\n };\n /**\n * This method is used to get the index of the menu item in the Menu based on the argument.\n *\n * @param {MenuItem | string} item - item be passed to get the index | id to be passed to get the item index.\n * @param {boolean} isUniqueId - Set `true` if it is a unique id.\n * @returns {void}\n */\n MenuBase.prototype.getItemIndex = function (item, isUniqueId) {\n var idx;\n if (typeof item === 'string') {\n idx = item;\n } else {\n idx = item.id;\n }\n var isText = isUniqueId === false ? false : true;\n var navIdx = this.getIndex(idx, isText);\n return navIdx;\n };\n /**\n * This method is used to set the menu item in the Menu based on the argument.\n *\n * @param {MenuItem} item - item need to be updated.\n * @param {string} id - id / text to be passed to update the item.\n * @param {boolean} isUniqueId - Set `true` if it is a unique id.\n * @returns {void}\n */\n MenuBase.prototype.setItem = function (item, id, isUniqueId) {\n var idx;\n if (isUniqueId) {\n idx = id ? id : item.id;\n } else {\n idx = id ? id : item.text;\n }\n var navIdx = this.getIndex(idx, isUniqueId);\n var newItem = this.getItem(navIdx);\n Object.assign(newItem, item);\n };\n MenuBase.prototype.getItem = function (navIdx) {\n navIdx = navIdx.slice();\n var idx = navIdx.pop();\n var items = this.getItems(navIdx);\n return items[idx];\n };\n MenuBase.prototype.getItems = function (navIdx) {\n var items = this.items;\n for (var i = 0; i < navIdx.length; i++) {\n items = items[navIdx[i]][this.getField('children', i)];\n }\n return items;\n };\n MenuBase.prototype.setItems = function (newItems, navIdx) {\n var items = this.getItems(navIdx);\n items.splice(0, items.length);\n for (var i = 0; i < newItems.length; i++) {\n items.splice(i, 0, newItems[i]);\n }\n };\n MenuBase.prototype.getIdx = function (ul, li, skipHdr) {\n if (skipHdr === void 0) {\n skipHdr = true;\n }\n var idx = Array.prototype.indexOf.call(ul.children, li);\n if (skipHdr && ul.children[0].classList.contains(HEADER)) {\n idx--;\n }\n return idx;\n };\n MenuBase.prototype.getLI = function (elem) {\n if (elem.tagName === 'LI' && elem.classList.contains('e-menu-item')) {\n return elem;\n }\n return closest(elem, 'li.e-menu-item');\n };\n MenuBase.prototype.updateItemsByNavIdx = function () {\n var items = this.items;\n var count = 0;\n for (var index = 0; index < this.navIdx.length; index++) {\n items = items[index].items;\n if (!items) {\n break;\n }\n count++;\n var ul = this.getUlByNavIdx(count);\n if (!ul) {\n break;\n }\n this.updateItem(ul, items);\n }\n };\n MenuBase.prototype.removeChildElement = function (elem) {\n while (elem.firstElementChild) {\n elem.removeChild(elem.firstElementChild);\n }\n return elem;\n };\n /**\n * Called internally if any of the property value changed.\n *\n * @private\n * @param {MenuBaseModel} newProp - Specifies the new properties\n * @param {MenuBaseModel} oldProp - Specifies the old properties\n * @returns {void}\n */\n MenuBase.prototype.onPropertyChanged = function (newProp, oldProp) {\n var _this = this;\n var wrapper = this.getWrapper();\n var _loop_2 = function (prop) {\n switch (prop) {\n case 'cssClass':\n if (oldProp.cssClass) {\n removeClass([wrapper], oldProp.cssClass.split(' '));\n }\n if (newProp.cssClass) {\n addClass([wrapper], newProp.cssClass.replace(/\\s+/g, ' ').trim().split(' '));\n }\n break;\n case 'enableRtl':\n if (this_1.enableRtl) {\n wrapper.classList.add(RTL);\n } else {\n wrapper.classList.remove(RTL);\n }\n break;\n case 'showItemOnClick':\n this_1.unWireEvents();\n this_1.showItemOnClick = newProp.showItemOnClick;\n this_1.wireEvents();\n break;\n case 'enableScrolling':\n if (newProp.enableScrolling) {\n var ul_2;\n if (this_1.element.classList.contains('e-vertical')) {\n addScrolling(this_1.createElement, wrapper, this_1.element, 'vscroll', this_1.enableRtl);\n } else {\n addScrolling(this_1.createElement, wrapper, this_1.element, 'hscroll', this_1.enableRtl);\n }\n this_1.getPopups().forEach(function (wrapper) {\n ul_2 = select('.e-ul', wrapper);\n addScrolling(_this.createElement, wrapper, ul_2, 'vscroll', _this.enableRtl);\n });\n } else {\n var ul_3 = wrapper.children[0];\n if (this_1.element.classList.contains('e-vertical')) {\n destroyScroll(getInstance(ul_3, VScroll), ul_3);\n } else {\n destroyScroll(getInstance(ul_3, HScroll), ul_3);\n }\n wrapper.style.overflow = '';\n wrapper.appendChild(this_1.element);\n this_1.getPopups().forEach(function (wrapper) {\n ul_3 = wrapper.children[0];\n destroyScroll(getInstance(ul_3, VScroll), ul_3);\n wrapper.style.overflow = '';\n });\n }\n break;\n case 'items':\n {\n var idx = void 0;\n var navIdx = void 0;\n var item = void 0;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (this_1.isReact && this_1.template) {\n this_1.clearTemplate(['template']);\n }\n if (!Object.keys(oldProp.items).length) {\n this_1.updateItem(this_1.element, this_1.items);\n if (this_1.enableScrolling && this_1.element.parentElement.classList.contains('e-custom-scroll')) {\n if (this_1.element.classList.contains('e-vertical')) {\n addScrolling(this_1.createElement, wrapper, this_1.element, 'vscroll', this_1.enableRtl);\n } else {\n addScrolling(this_1.createElement, wrapper, this_1.element, 'hscroll', this_1.enableRtl);\n }\n }\n if (!this_1.hamburgerMode) {\n for (var i = 1, count = wrapper.childElementCount; i < count; i++) {\n detach(wrapper.lastElementChild);\n }\n }\n this_1.navIdx = [];\n } else {\n var keys = Object.keys(newProp.items);\n for (var i = 0; i < keys.length; i++) {\n navIdx = this_1.getChangedItemIndex(newProp, [], Number(keys[i]));\n if (navIdx.length <= this_1.getWrapper().children.length) {\n idx = navIdx.pop();\n item = this_1.getItems(navIdx);\n this_1.insertAfter([item[idx]], item[idx].text);\n this_1.removeItem(item, navIdx, idx);\n this_1.setItems(item, navIdx);\n }\n navIdx.length = 0;\n }\n }\n break;\n }\n }\n };\n var this_1 = this;\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n _loop_2(prop);\n }\n };\n MenuBase.prototype.updateItem = function (ul, items) {\n if (isBlazor() && !this.isMenu) {\n ul = this.removeChildElement(ul);\n } else {\n if (this.enableScrolling) {\n var wrapper1 = this.getWrapper();\n var ul1 = wrapper1.children[0];\n if (this.element.classList.contains('e-vertical')) {\n destroyScroll(getInstance(ul1, VScroll), ul1);\n } else {\n destroyScroll(getInstance(ul1, HScroll), ul1);\n }\n }\n ul.innerHTML = '';\n }\n var lis = [].slice.call(this.createItems(items).children);\n lis.forEach(function (li) {\n ul.appendChild(li);\n });\n };\n MenuBase.prototype.getChangedItemIndex = function (newProp, index, idx) {\n index.push(idx);\n var key = Object.keys(newProp.items[idx]).pop();\n if (key === 'items') {\n var item = newProp.items[idx];\n var popStr = Object.keys(item.items).pop();\n if (popStr) {\n this.getChangedItemIndex(item, index, Number(popStr));\n }\n } else {\n if (key === 'isParentArray' && index.length > 1) {\n index.pop();\n }\n }\n return index;\n };\n MenuBase.prototype.removeItem = function (item, navIdx, idx) {\n item.splice(idx, 1);\n var uls = this.getWrapper().children;\n if (navIdx.length < uls.length) {\n detach(uls[navIdx.length].children[idx]);\n }\n };\n /**\n * Used to unwire the bind events.\n *\n * @private\n * @param {string} targetSelctor - Specifies the target selector\n * @returns {void}\n */\n MenuBase.prototype.unWireEvents = function (targetSelctor) {\n if (targetSelctor === void 0) {\n targetSelctor = this.target;\n }\n var wrapper = this.getWrapper();\n if (targetSelctor) {\n var target = void 0;\n var touchModule = void 0;\n var targetElems = selectAll(targetSelctor);\n for (var i = 0, len = targetElems.length; i < len; i++) {\n target = targetElems[i];\n if (this.isMenu) {\n EventHandler.remove(target, 'click', this.menuHeaderClickHandler);\n } else {\n if (Browser.isIos) {\n touchModule = getInstance(target, Touch);\n if (touchModule) {\n touchModule.destroy();\n }\n } else {\n EventHandler.remove(target, 'contextmenu', this.cmenuHandler);\n }\n }\n }\n if (!this.isMenu) {\n EventHandler.remove(this.targetElement, 'scroll', this.scrollHandler);\n for (var _i = 0, _a = getScrollableParent(this.targetElement); _i < _a.length; _i++) {\n var parent_2 = _a[_i];\n EventHandler.remove(parent_2, 'scroll', this.scrollHandler);\n }\n }\n }\n if (!Browser.isDevice) {\n EventHandler.remove(this.isMenu ? document : wrapper, 'mouseover', this.delegateMoverHandler);\n EventHandler.remove(document, 'mousedown', this.delegateMouseDownHandler);\n }\n EventHandler.remove(document, 'click', this.delegateClickHandler);\n this.unWireKeyboardEvent(wrapper);\n this.rippleFn();\n };\n MenuBase.prototype.unWireKeyboardEvent = function (element) {\n var keyboardModule = getInstance(element, KeyboardEvents);\n if (keyboardModule) {\n keyboardModule.destroy();\n }\n };\n MenuBase.prototype.toggleAnimation = function (ul, isMenuOpen) {\n var _this = this;\n if (isMenuOpen === void 0) {\n isMenuOpen = true;\n }\n var pUlHeight;\n var pElement;\n if (this.animationSettings.effect === 'None' || !isMenuOpen) {\n if (this.hamburgerMode && ul) {\n ul.style.top = '0px';\n }\n this.isAnimationNone = this.animationSettings.effect === 'None';\n this.end(ul, isMenuOpen);\n } else {\n this.animation.animate(ul, {\n name: this.animationSettings.effect,\n duration: this.animationSettings.duration,\n timingFunction: this.animationSettings.easing,\n begin: function (options) {\n if (_this.hamburgerMode) {\n pElement = options.element.parentElement;\n options.element.style.position = 'absolute';\n if (pElement) {\n pUlHeight = pElement.offsetHeight;\n }\n options.element.style.maxHeight = options.element.offsetHeight + 'px';\n if (pElement) {\n pElement.style.maxHeight = '';\n }\n } else {\n options.element.style.display = 'block';\n options.element.style.maxHeight = options.element.getBoundingClientRect().height + 'px';\n }\n },\n progress: function (options) {\n if (_this.hamburgerMode && pElement) {\n pElement.style.minHeight = pUlHeight + options.element.offsetHeight + 'px';\n }\n },\n end: function (options) {\n if (_this.hamburgerMode) {\n options.element.style.position = '';\n options.element.style.maxHeight = '';\n if (pElement) {\n pElement.style.minHeight = '';\n }\n options.element.style.top = 0 + 'px';\n options.element.children[0].focus();\n _this.triggerOpen(options.element.children[0]);\n } else {\n _this.end(options.element, isMenuOpen);\n }\n }\n });\n }\n };\n MenuBase.prototype.triggerOpen = function (ul) {\n var item = this.navIdx.length ? this.getItem(this.navIdx) : null;\n var eventArgs = {\n element: ul,\n parentItem: item,\n items: item ? item.items : this.items\n };\n this.trigger('onOpen', eventArgs);\n if (!this.isMenu) {\n EventHandler.add(ul, 'keydown', this.keyHandler, this);\n }\n };\n MenuBase.prototype.end = function (ul, isMenuOpen) {\n if (isMenuOpen && (this.isMenu || !this.isMenu && this.isContextMenuClosed)) {\n if (this.isMenu || !Browser.isDevice) {\n ul.style.display = 'block';\n }\n ul.style.maxHeight = '';\n this.triggerOpen(ul);\n if (ul.querySelector('.' + FOCUSED)) {\n ul.querySelector('.' + FOCUSED).focus();\n } else {\n var ele = this.getWrapper().children[this.getIdx(this.getWrapper(), ul) - 1];\n if (this.currentTarget) {\n if (!(this.currentTarget.classList.contains('e-numerictextbox') || this.currentTarget.classList.contains('e-textbox') || this.currentTarget.tagName === 'INPUT')) {\n if (ele) {\n ele.querySelector('.' + SELECTED).focus();\n } else {\n this.element.focus();\n }\n }\n } else {\n if (ele) {\n ele.querySelector('.' + SELECTED).focus();\n } else {\n this.element.focus();\n }\n }\n }\n } else {\n if (ul === this.element) {\n var fli = this.getLIByClass(this.element, FOCUSED);\n if (fli) {\n fli.classList.remove(FOCUSED);\n }\n var sli = this.getLIByClass(this.element, SELECTED);\n if (sli) {\n sli.classList.remove(SELECTED);\n }\n ul.style.display = 'none';\n this.isAnimationNone = false;\n } else {\n detach(ul);\n }\n }\n };\n /**\n * Get the properties to be maintained in the persisted state.\n *\n * @returns {string} - Persist data\n */\n MenuBase.prototype.getPersistData = function () {\n return '';\n };\n /**\n * Get wrapper element.\n *\n * @returns {Element} - Wrapper element\n * @private\n */\n MenuBase.prototype.getWrapper = function () {\n return closest(this.element, '.e-' + this.getModuleName() + '-wrapper');\n };\n MenuBase.prototype.getIndex = function (data, isUniqueId, items, nIndex, isCallBack, level) {\n if (items === void 0) {\n items = this.items;\n }\n if (nIndex === void 0) {\n nIndex = [];\n }\n if (isCallBack === void 0) {\n isCallBack = false;\n }\n if (level === void 0) {\n level = 0;\n }\n var item;\n level = isCallBack ? level + 1 : 0;\n for (var i = 0, len = items.length; i < len; i++) {\n item = items[i];\n if ((isUniqueId ? item[this.getField('itemId', level)] : item[this.getField('text', level)]) === data) {\n nIndex.push(i);\n break;\n } else if (item[this.getField('children', level)] && item[this.getField('children', level)].length) {\n nIndex = this.getIndex(data, isUniqueId, item[this.getField('children', level)], nIndex, true, level);\n if (nIndex[nIndex.length - 1] === -1) {\n if (i !== len - 1) {\n nIndex.pop();\n }\n } else {\n nIndex.unshift(i);\n break;\n }\n } else {\n if (i === len - 1) {\n nIndex.push(-1);\n }\n }\n }\n return !isCallBack && nIndex[0] === -1 ? [] : nIndex;\n };\n /**\n * This method is used to enable or disable the menu items in the Menu based on the items and enable argument.\n *\n * @param {string[]} items - Text items that needs to be enabled/disabled.\n * @param {boolean} enable - Set `true`/`false` to enable/disable the list items.\n * @param {boolean} isUniqueId - Set `true` if it is a unique id.\n * @returns {void}\n */\n MenuBase.prototype.enableItems = function (items, enable, isUniqueId) {\n if (enable === void 0) {\n enable = true;\n }\n var ul;\n var idx;\n var navIdx;\n var disabled = DISABLED;\n var skipItem;\n for (var i = 0; i < items.length; i++) {\n navIdx = this.getIndex(items[i], isUniqueId);\n if (this.navIdx.length) {\n if (navIdx.length !== 1) {\n skipItem = false;\n for (var i_1 = 0, len = navIdx.length - 1; i_1 < len; i_1++) {\n if (navIdx[i_1] !== this.navIdx[i_1]) {\n skipItem = true;\n break;\n }\n }\n if (skipItem) {\n continue;\n }\n }\n } else {\n if (navIdx.length !== 1) {\n continue;\n }\n }\n idx = navIdx.pop();\n ul = this.getUlByNavIdx(navIdx.length);\n if (ul && !isNullOrUndefined(idx)) {\n if (enable) {\n if (this.isMenu) {\n ul.children[idx].classList.remove(disabled);\n ul.children[idx].removeAttribute('aria-disabled');\n } else {\n if (Browser.isDevice && !ul.classList.contains('e-contextmenu')) {\n ul.children[idx + 1].classList.remove(disabled);\n } else {\n ul.children[idx].classList.remove(disabled);\n }\n }\n } else {\n if (this.isMenu) {\n ul.children[idx].classList.add(disabled);\n ul.children[idx].setAttribute('aria-disabled', 'true');\n } else {\n if (Browser.isDevice && !ul.classList.contains('e-contextmenu')) {\n ul.children[idx + 1].classList.add(disabled);\n } else {\n ul.children[idx].classList.add(disabled);\n }\n }\n }\n }\n }\n };\n /**\n * This method is used to show the menu items in the Menu based on the items text.\n *\n * @param {string[]} items - Text items that needs to be shown.\n * @param {boolean} isUniqueId - Set `true` if it is a unique id.\n * @returns {void}\n */\n MenuBase.prototype.showItems = function (items, isUniqueId) {\n this.showHideItems(items, false, isUniqueId);\n };\n /**\n * This method is used to hide the menu items in the Menu based on the items text.\n *\n * @param {string[]} items - Text items that needs to be hidden.\n * @param {boolean} isUniqueId - Set `true` if it is a unique id.\n * @returns {void}\n */\n MenuBase.prototype.hideItems = function (items, isUniqueId) {\n this.showHideItems(items, true, isUniqueId);\n };\n MenuBase.prototype.showHideItems = function (items, ishide, isUniqueId) {\n var ul;\n var index;\n var navIdx;\n var item;\n for (var i = 0; i < items.length; i++) {\n navIdx = this.getIndex(items[i], isUniqueId);\n index = navIdx.pop();\n ul = this.getUlByNavIdx(navIdx.length);\n item = this.getItems(navIdx);\n if (ul) {\n var validUl = isUniqueId ? ul.children[index].id : item[index].text.toString();\n if (ishide && validUl === items[i]) {\n ul.children[index].classList.add(HIDE);\n } else if (!ishide && validUl === items[i]) {\n ul.children[index].classList.remove(HIDE);\n }\n }\n }\n };\n /**\n * It is used to remove the menu items from the Menu based on the items text.\n *\n * @param {string[]} items Text items that needs to be removed.\n * @param {boolean} isUniqueId - Set `true` if it is a unique id.\n * @returns {void}\n */\n MenuBase.prototype.removeItems = function (items, isUniqueId) {\n var idx;\n var navIdx;\n var iitems;\n for (var i = 0; i < items.length; i++) {\n navIdx = this.getIndex(items[i], isUniqueId);\n idx = navIdx.pop();\n iitems = this.getItems(navIdx);\n if (!isNullOrUndefined(idx)) {\n this.removeItem(iitems, navIdx, idx);\n }\n }\n };\n /**\n * It is used to insert the menu items after the specified menu item text.\n *\n * @param {MenuItemModel[]} items - Items that needs to be inserted.\n * @param {string} text - Text item after that the element to be inserted.\n * @param {boolean} isUniqueId - Set `true` if it is a unique id.\n * @returns {void}\n */\n MenuBase.prototype.insertAfter = function (items, text, isUniqueId) {\n this.insertItems(items, text, isUniqueId);\n };\n /**\n * It is used to insert the menu items before the specified menu item text.\n *\n * @param {MenuItemModel[]} items - Items that needs to be inserted.\n * @param {string} text - Text item before that the element to be inserted.\n * @param {boolean} isUniqueId - Set `true` if it is a unique id.\n * @returns {void}\n */\n MenuBase.prototype.insertBefore = function (items, text, isUniqueId) {\n this.insertItems(items, text, isUniqueId, false);\n };\n MenuBase.prototype.insertItems = function (items, text, isUniqueId, isAfter) {\n if (isAfter === void 0) {\n isAfter = true;\n }\n var li;\n var idx;\n var navIdx;\n var iitems;\n var menuitem;\n for (var i = 0; i < items.length; i++) {\n navIdx = this.getIndex(text, isUniqueId);\n idx = navIdx.pop();\n iitems = this.getItems(navIdx);\n menuitem = new MenuItem(iitems[0], 'items', items[i], true);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n menuitem.parentObj = iitems[0].parentObj;\n iitems.splice(isAfter ? idx + 1 : idx, 0, menuitem);\n var uls = this.isMenu ? [this.getWrapper()].concat(this.getPopups()) : [].slice.call(this.getWrapper().children);\n if (!isNullOrUndefined(idx) && navIdx.length < uls.length) {\n idx = isAfter ? idx + 1 : idx;\n li = this.createItems(iitems).children[idx];\n var ul = this.isMenu ? select('.e-menu-parent', uls[navIdx.length]) : uls[navIdx.length];\n ul.insertBefore(li, ul.children[idx]);\n }\n }\n };\n MenuBase.prototype.removeAttributes = function () {\n var _this = this;\n ['top', 'left', 'display', 'z-index'].forEach(function (key) {\n _this.element.style.removeProperty(key);\n });\n ['role', 'tabindex', 'class', 'style'].forEach(function (key) {\n if (key === 'class' && _this.element.classList.contains('e-menu-parent')) {\n _this.element.classList.remove('e-menu-parent');\n }\n if (['class', 'style'].indexOf(key) === -1 || !_this.element.getAttribute(key)) {\n _this.element.removeAttribute(key);\n }\n if (_this.isMenu && key === 'class' && _this.element.classList.contains('e-vertical')) {\n _this.element.classList.remove('e-vertical');\n }\n });\n };\n /**\n * Destroys the widget.\n *\n * @returns {void}\n */\n MenuBase.prototype.destroy = function () {\n var wrapper = this.getWrapper();\n if (wrapper) {\n this.unWireEvents();\n if (!this.isMenu) {\n this.clonedElement.style.display = '';\n if (this.clonedElement.tagName === 'EJS-CONTEXTMENU') {\n addClass([this.clonedElement], ['e-control', 'e-lib', 'e-' + this.getModuleName()]);\n this.element = this.clonedElement;\n } else {\n if (this.refreshing && this.clonedElement.childElementCount && this.clonedElement.children[0].tagName === 'LI') {\n this.setProperties({\n 'items': []\n }, true);\n }\n if (document.getElementById(this.clonedElement.id)) {\n var refEle = this.clonedElement.nextElementSibling;\n if (refEle && refEle !== wrapper) {\n this.clonedElement.parentElement.insertBefore(this.element, refEle);\n } else {\n this.clonedElement.parentElement.appendChild(this.element);\n }\n if (isBlazor() && !this.isMenu) {\n this.element = this.removeChildElement(this.element);\n } else {\n this.element.innerHTML = '';\n }\n append([].slice.call(this.clonedElement.children), this.element);\n detach(this.clonedElement);\n this.removeAttributes();\n }\n }\n this.clonedElement = null;\n } else {\n this.closeMenu();\n if (isBlazor() && !this.isMenu) {\n this.element = this.removeChildElement(this.element);\n } else {\n this.element.innerHTML = '';\n }\n this.removeAttributes();\n wrapper.parentNode.insertBefore(this.element, wrapper);\n this.clonedElement = null;\n }\n detach(wrapper);\n _super.prototype.destroy.call(this);\n if (this.template) {\n this.clearTemplate(['template']);\n }\n }\n this.rippleFn = null;\n };\n __decorate$2([Event()], MenuBase.prototype, \"beforeItemRender\", void 0);\n __decorate$2([Event()], MenuBase.prototype, \"beforeOpen\", void 0);\n __decorate$2([Event()], MenuBase.prototype, \"onOpen\", void 0);\n __decorate$2([Event()], MenuBase.prototype, \"beforeClose\", void 0);\n __decorate$2([Event()], MenuBase.prototype, \"onClose\", void 0);\n __decorate$2([Event()], MenuBase.prototype, \"select\", void 0);\n __decorate$2([Event()], MenuBase.prototype, \"created\", void 0);\n __decorate$2([Property('')], MenuBase.prototype, \"cssClass\", void 0);\n __decorate$2([Property(0)], MenuBase.prototype, \"hoverDelay\", void 0);\n __decorate$2([Property(false)], MenuBase.prototype, \"showItemOnClick\", void 0);\n __decorate$2([Property('')], MenuBase.prototype, \"target\", void 0);\n __decorate$2([Property('')], MenuBase.prototype, \"filter\", void 0);\n __decorate$2([Property(null)], MenuBase.prototype, \"template\", void 0);\n __decorate$2([Property(false)], MenuBase.prototype, \"enableScrolling\", void 0);\n __decorate$2([Property(true)], MenuBase.prototype, \"enableHtmlSanitizer\", void 0);\n __decorate$2([Complex({\n itemId: 'id',\n text: 'text',\n parentId: 'parentId',\n iconCss: 'iconCss',\n url: 'url',\n separator: 'separator',\n children: 'items'\n }, FieldSettings)], MenuBase.prototype, \"fields\", void 0);\n __decorate$2([Collection([], MenuItem)], MenuBase.prototype, \"items\", void 0);\n __decorate$2([Complex({\n duration: 400,\n easing: 'ease',\n effect: 'SlideDown'\n }, MenuAnimationSettings)], MenuBase.prototype, \"animationSettings\", void 0);\n MenuBase = __decorate$2([NotifyPropertyChanges], MenuBase);\n return MenuBase;\n}(Component);\nvar __extends$3 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 CLS_VERTICAL = 'e-vertical';\nvar CLS_ITEMS = 'e-toolbar-items';\nvar CLS_ITEM = 'e-toolbar-item';\nvar CLS_RTL$2 = 'e-rtl';\nvar CLS_SEPARATOR = 'e-separator';\nvar CLS_POPUPICON = 'e-popup-up-icon';\nvar CLS_POPUPDOWN = 'e-popup-down-icon';\nvar CLS_POPUPOPEN = 'e-popup-open';\nvar CLS_TEMPLATE = 'e-template';\nvar CLS_DISABLE$2 = 'e-overlay';\nvar CLS_POPUPTEXT = 'e-toolbar-text';\nvar CLS_TBARTEXT = 'e-popup-text';\nvar CLS_TBAROVERFLOW = 'e-overflow-show';\nvar CLS_POPOVERFLOW = 'e-overflow-hide';\nvar CLS_TBARBTN = 'e-tbar-btn';\nvar CLS_TBARNAV = 'e-hor-nav';\nvar CLS_TBARSCRLNAV = 'e-scroll-nav';\nvar CLS_TBARRIGHT = 'e-toolbar-right';\nvar CLS_TBARLEFT = 'e-toolbar-left';\nvar CLS_TBARCENTER = 'e-toolbar-center';\nvar CLS_TBARPOS = 'e-tbar-pos';\nvar CLS_HSCROLLCNT = 'e-hscroll-content';\nvar CLS_VSCROLLCNT = 'e-vscroll-content';\nvar CLS_HSCROLLBAR$1 = 'e-hscroll-bar';\nvar CLS_POPUPNAV = 'e-hor-nav';\nvar CLS_POPUPCLASS = 'e-toolbar-pop';\nvar CLS_POPUP = 'e-toolbar-popup';\nvar CLS_TBARBTNTEXT = 'e-tbar-btn-text';\nvar CLS_TBARNAVACT = 'e-nav-active';\nvar CLS_TBARIGNORE = 'e-ignore';\nvar CLS_POPPRI = 'e-popup-alone';\nvar CLS_HIDDEN = 'e-hidden';\nvar CLS_MULTIROW = 'e-toolbar-multirow';\nvar CLS_MULTIROWPOS = 'e-multirow-pos';\nvar CLS_MULTIROW_SEPARATOR = 'e-multirow-separator';\nvar CLS_EXTENDABLE_SEPARATOR = 'e-extended-separator';\nvar CLS_EXTEANDABLE_TOOLBAR = 'e-extended-toolbar';\nvar CLS_EXTENDABLECLASS = 'e-toolbar-extended';\nvar CLS_EXTENDPOPUP = 'e-expended-nav';\nvar CLS_EXTENDEDPOPOPEN = 'e-tbar-extended';\n/**\n * An item object that is used to configure Toolbar commands.\n */\nvar Item = /** @__PURE__ @class */function (_super) {\n __extends$3(Item, _super);\n function Item() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$3([Property('')], Item.prototype, \"id\", void 0);\n __decorate$3([Property('')], Item.prototype, \"text\", void 0);\n __decorate$3([Property('auto')], Item.prototype, \"width\", void 0);\n __decorate$3([Property('')], Item.prototype, \"cssClass\", void 0);\n __decorate$3([Property(false)], Item.prototype, \"showAlwaysInPopup\", void 0);\n __decorate$3([Property(false)], Item.prototype, \"disabled\", void 0);\n __decorate$3([Property('')], Item.prototype, \"prefixIcon\", void 0);\n __decorate$3([Property('')], Item.prototype, \"suffixIcon\", void 0);\n __decorate$3([Property(true)], Item.prototype, \"visible\", void 0);\n __decorate$3([Property('None')], Item.prototype, \"overflow\", void 0);\n __decorate$3([Property('')], Item.prototype, \"template\", void 0);\n __decorate$3([Property('Button')], Item.prototype, \"type\", void 0);\n __decorate$3([Property('Both')], Item.prototype, \"showTextOn\", void 0);\n __decorate$3([Property(null)], Item.prototype, \"htmlAttributes\", void 0);\n __decorate$3([Property('')], Item.prototype, \"tooltipText\", void 0);\n __decorate$3([Property('Left')], Item.prototype, \"align\", void 0);\n __decorate$3([Event()], Item.prototype, \"click\", void 0);\n __decorate$3([Property(-1)], Item.prototype, \"tabIndex\", void 0);\n return Item;\n}(ChildProperty);\n/**\n * The Toolbar control contains a group of commands that are aligned horizontally.\n * ```html\n *
\n * \n * ```\n */\nvar Toolbar = /** @__PURE__ @class */function (_super) {\n __extends$3(Toolbar, _super);\n /**\n * Initializes a new instance of the Toolbar class.\n *\n * @param {ToolbarModel} options - Specifies Toolbar model properties as options.\n * @param { string | HTMLElement} element - Specifies the element that is rendered as a Toolbar.\n */\n function Toolbar(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.resizeContext = _this.resize.bind(_this);\n _this.orientationChangeContext = _this.orientationChange.bind(_this);\n /**\n * Contains the keyboard configuration of the Toolbar.\n */\n _this.keyConfigs = {\n moveLeft: 'leftarrow',\n moveRight: 'rightarrow',\n moveUp: 'uparrow',\n moveDown: 'downarrow',\n popupOpen: 'enter',\n popupClose: 'escape',\n tab: 'tab',\n home: 'home',\n end: 'end'\n };\n return _this;\n }\n /**\n * Removes the control from the DOM and also removes all its related events.\n *\n * @returns {void}.\n */\n Toolbar.prototype.destroy = function () {\n var _this = this;\n if (this.isReact || this.isAngular) {\n this.clearTemplate();\n }\n var btnItems = this.element.querySelectorAll('.e-control.e-btn');\n [].slice.call(btnItems).forEach(function (el) {\n if (!isNullOrUndefined(el) && !isNullOrUndefined(el.ej2_instances) && !isNullOrUndefined(el.ej2_instances[0]) && !el.ej2_instances[0].isDestroyed) {\n el.ej2_instances[0].destroy();\n }\n });\n this.unwireEvents();\n this.tempId.forEach(function (ele) {\n if (!isNullOrUndefined(_this.element.querySelector(ele))) {\n document.body.appendChild(_this.element.querySelector(ele)).style.display = 'none';\n }\n });\n this.destroyItems();\n while (this.element.lastElementChild) {\n this.element.removeChild(this.element.lastElementChild);\n }\n if (this.trgtEle) {\n this.element.appendChild(this.ctrlTem);\n this.trgtEle = null;\n this.ctrlTem = null;\n }\n if (this.popObj) {\n this.popObj.destroy();\n detach(this.popObj.element);\n }\n if (this.activeEle) {\n this.activeEle = null;\n }\n this.popObj = null;\n this.tbarAlign = null;\n this.tbarItemsCol = [];\n this.remove(this.element, 'e-toolpop');\n if (this.cssClass) {\n removeClass([this.element], this.cssClass.split(' '));\n }\n this.element.removeAttribute('style');\n ['aria-disabled', 'aria-orientation', 'role'].forEach(function (attrb) {\n return _this.element.removeAttribute(attrb);\n });\n _super.prototype.destroy.call(this);\n };\n /**\n * Initialize the event handler\n *\n * @private\n * @returns {void}\n */\n Toolbar.prototype.preRender = function () {\n var eventArgs = {\n enableCollision: this.enableCollision,\n scrollStep: this.scrollStep\n };\n this.trigger('beforeCreate', eventArgs);\n this.enableCollision = eventArgs.enableCollision;\n this.scrollStep = eventArgs.scrollStep;\n this.scrollModule = null;\n this.popObj = null;\n this.tempId = [];\n this.tbarItemsCol = this.items;\n this.isVertical = this.element.classList.contains(CLS_VERTICAL) ? true : false;\n this.isExtendedOpen = false;\n this.popupPriCount = 0;\n if (this.enableRtl) {\n this.add(this.element, CLS_RTL$2);\n }\n };\n Toolbar.prototype.wireEvents = function () {\n EventHandler.add(this.element, 'click', this.clickHandler, this);\n window.addEventListener('resize', this.resizeContext);\n window.addEventListener('orientationchange', this.orientationChangeContext);\n if (this.allowKeyboard) {\n this.wireKeyboardEvent();\n }\n };\n Toolbar.prototype.wireKeyboardEvent = function () {\n this.keyModule = new KeyboardEvents(this.element, {\n keyAction: this.keyActionHandler.bind(this),\n keyConfigs: this.keyConfigs\n });\n EventHandler.add(this.element, 'keydown', this.docKeyDown, this);\n this.updateTabIndex('0');\n };\n Toolbar.prototype.updateTabIndex = function (tabIndex) {\n var ele = this.element.querySelector('.' + CLS_ITEM + ':not(.' + CLS_DISABLE$2 + ' ):not(.' + CLS_SEPARATOR + ' ):not(.' + CLS_HIDDEN + ' )');\n if (!isNullOrUndefined(ele) && !isNullOrUndefined(ele.firstElementChild)) {\n var dataTabIndex = ele.firstElementChild.getAttribute('data-tabindex');\n if (dataTabIndex && dataTabIndex === '-1' && ele.firstElementChild.tagName !== 'INPUT') {\n ele.firstElementChild.setAttribute('tabindex', tabIndex);\n }\n }\n };\n Toolbar.prototype.unwireKeyboardEvent = function () {\n if (this.keyModule) {\n EventHandler.remove(this.element, 'keydown', this.docKeyDown);\n this.keyModule.destroy();\n this.keyModule = null;\n }\n };\n Toolbar.prototype.docKeyDown = function (e) {\n if (e.target.tagName === 'INPUT') {\n return;\n }\n var popCheck = !isNullOrUndefined(this.popObj) && isVisible(this.popObj.element) && this.overflowMode !== 'Extended';\n if (e.keyCode === 9 && e.target.classList.contains('e-hor-nav') === true && popCheck) {\n this.popObj.hide({\n name: 'FadeOut',\n duration: 100\n });\n }\n var keyCheck = e.keyCode === 40 || e.keyCode === 38 || e.keyCode === 35 || e.keyCode === 36;\n if (keyCheck) {\n e.preventDefault();\n }\n };\n Toolbar.prototype.unwireEvents = function () {\n EventHandler.remove(this.element, 'click', this.clickHandler);\n this.destroyScroll();\n this.unwireKeyboardEvent();\n window.removeEventListener('resize', this.resizeContext);\n window.removeEventListener('orientationchange', this.orientationChangeContext);\n document.removeEventListener('scroll', this.clickEvent);\n document.removeEventListener('click', this.scrollEvent);\n this.scrollEvent = null;\n this.clickEvent = null;\n };\n Toolbar.prototype.clearProperty = function () {\n this.tbarEle = [];\n this.tbarAlgEle = {\n lefts: [],\n centers: [],\n rights: []\n };\n };\n Toolbar.prototype.docEvent = function (e) {\n var popEle = closest(e.target, '.e-popup');\n if (this.popObj && isVisible(this.popObj.element) && !popEle && this.overflowMode === 'Popup') {\n this.popObj.hide({\n name: 'FadeOut',\n duration: 100\n });\n }\n };\n Toolbar.prototype.destroyScroll = function () {\n if (this.scrollModule) {\n if (this.tbarAlign) {\n this.add(this.scrollModule.element, CLS_TBARPOS);\n }\n this.scrollModule.destroy();\n this.scrollModule = null;\n }\n };\n Toolbar.prototype.destroyItems = function () {\n if (this.element) {\n [].slice.call(this.element.querySelectorAll('.' + CLS_ITEM)).forEach(function (el) {\n detach(el);\n });\n }\n if (this.tbarAlign) {\n var tbarItems = this.element.querySelector('.' + CLS_ITEMS);\n [].slice.call(tbarItems.children).forEach(function (el) {\n detach(el);\n });\n this.tbarAlign = false;\n this.remove(tbarItems, CLS_TBARPOS);\n }\n this.clearProperty();\n };\n Toolbar.prototype.destroyMode = function () {\n if (this.scrollModule) {\n this.remove(this.scrollModule.element, CLS_RTL$2);\n this.destroyScroll();\n }\n this.remove(this.element, CLS_EXTENDEDPOPOPEN);\n this.remove(this.element, CLS_EXTEANDABLE_TOOLBAR);\n var tempEle = this.element.querySelector('.e-toolbar-multirow');\n if (tempEle) {\n this.remove(tempEle, CLS_MULTIROW);\n }\n if (this.popObj) {\n this.popupRefresh(this.popObj.element, true);\n }\n };\n Toolbar.prototype.add = function (ele, val) {\n ele.classList.add(val);\n };\n Toolbar.prototype.remove = function (ele, val) {\n ele.classList.remove(val);\n };\n Toolbar.prototype.elementFocus = function (ele) {\n var fChild = ele.firstElementChild;\n if (fChild) {\n fChild.focus();\n this.activeEleSwitch(ele);\n } else {\n ele.focus();\n }\n };\n Toolbar.prototype.clstElement = function (tbrNavChk, trgt) {\n var clst;\n if (tbrNavChk && this.popObj && isVisible(this.popObj.element)) {\n clst = this.popObj.element.querySelector('.' + CLS_ITEM);\n } else if (this.element === trgt || tbrNavChk) {\n clst = this.element.querySelector('.' + CLS_ITEM + ':not(.' + CLS_DISABLE$2 + ' ):not(.' + CLS_SEPARATOR + ' ):not(.' + CLS_HIDDEN + ' )');\n } else {\n clst = closest(trgt, '.' + CLS_ITEM);\n }\n return clst;\n };\n Toolbar.prototype.keyHandling = function (clst, e, trgt, navChk, scrollChk) {\n var popObj = this.popObj;\n var rootEle = this.element;\n var popAnimate = {\n name: 'FadeOut',\n duration: 100\n };\n var value = e.action === 'moveUp' ? 'previous' : 'next';\n var ele;\n var nodes;\n switch (e.action) {\n case 'moveRight':\n if (this.isVertical) {\n return;\n }\n if (rootEle === trgt) {\n this.elementFocus(clst);\n } else if (!navChk) {\n this.eleFocus(clst, 'next');\n }\n break;\n case 'moveLeft':\n if (this.isVertical) {\n return;\n }\n if (!navChk) {\n this.eleFocus(clst, 'previous');\n }\n break;\n case 'home':\n case 'end':\n if (clst) {\n var popupCheck = closest(clst, '.e-popup');\n var extendedPopup = this.element.querySelector('.' + CLS_EXTENDABLECLASS);\n if (this.overflowMode === 'Extended' && extendedPopup && extendedPopup.classList.contains('e-popup-open')) {\n popupCheck = e.action === 'end' ? extendedPopup : null;\n }\n if (popupCheck) {\n if (isVisible(this.popObj.element)) {\n nodes = [].slice.call(popupCheck.children);\n if (e.action === 'home') {\n ele = this.focusFirstVisibleEle(nodes);\n } else {\n ele = this.focusLastVisibleEle(nodes);\n }\n }\n } else {\n nodes = this.element.querySelectorAll('.' + CLS_ITEMS + ' .' + CLS_ITEM + ':not(.' + CLS_SEPARATOR + ')');\n if (e.action === 'home') {\n ele = this.focusFirstVisibleEle(nodes);\n } else {\n ele = this.focusLastVisibleEle(nodes);\n }\n }\n if (ele) {\n this.elementFocus(ele);\n }\n }\n break;\n case 'moveUp':\n case 'moveDown':\n if (!this.isVertical) {\n if (popObj && closest(trgt, '.e-popup')) {\n var popEle = popObj.element;\n var popFrstEle = popEle.firstElementChild;\n if (value === 'previous' && popFrstEle === clst) {\n popEle.lastElementChild.firstChild.focus();\n } else if (value === 'next' && popEle.lastElementChild === clst) {\n popFrstEle.firstChild.focus();\n } else {\n this.eleFocus(clst, value);\n }\n } else if (e.action === 'moveDown' && popObj && isVisible(popObj.element)) {\n this.elementFocus(clst);\n }\n } else {\n if (e.action === 'moveUp') {\n this.eleFocus(clst, 'previous');\n } else {\n this.eleFocus(clst, 'next');\n }\n }\n break;\n case 'tab':\n if (!scrollChk && !navChk) {\n var ele_1 = clst.firstElementChild;\n if (rootEle === trgt) {\n if (this.activeEle) {\n this.activeEle.focus();\n } else {\n this.activeEleRemove(ele_1);\n ele_1.focus();\n }\n }\n }\n break;\n case 'popupClose':\n if (popObj && this.overflowMode !== 'Extended') {\n popObj.hide(popAnimate);\n }\n break;\n case 'popupOpen':\n if (!navChk) {\n return;\n }\n if (popObj && !isVisible(popObj.element)) {\n popObj.element.style.top = rootEle.offsetHeight + 'px';\n popObj.show({\n name: 'FadeIn',\n duration: 100\n });\n } else {\n popObj.hide(popAnimate);\n }\n break;\n }\n };\n Toolbar.prototype.keyActionHandler = function (e) {\n var trgt = e.target;\n if (trgt.tagName === 'INPUT' || trgt.tagName === 'TEXTAREA' || this.element.classList.contains(CLS_DISABLE$2)) {\n return;\n }\n e.preventDefault();\n var tbrNavChk = trgt.classList.contains(CLS_TBARNAV);\n var tbarScrollChk = trgt.classList.contains(CLS_TBARSCRLNAV);\n var clst = this.clstElement(tbrNavChk, trgt);\n if (clst || tbarScrollChk) {\n this.keyHandling(clst, e, trgt, tbrNavChk, tbarScrollChk);\n }\n };\n /**\n * Specifies the value to disable/enable the Toolbar component.\n * When set to `true`, the component will be disabled.\n *\n * @param {boolean} value - Based on this Boolean value, Toolbar will be enabled (false) or disabled (true).\n * @returns {void}.\n */\n Toolbar.prototype.disable = function (value) {\n var rootEle = this.element;\n if (value) {\n rootEle.classList.add(CLS_DISABLE$2);\n } else {\n rootEle.classList.remove(CLS_DISABLE$2);\n }\n if (this.activeEle) {\n this.activeEle.setAttribute('tabindex', this.activeEle.getAttribute('data-tabindex'));\n }\n if (this.scrollModule) {\n this.scrollModule.disable(value);\n }\n if (this.popObj) {\n if (isVisible(this.popObj.element) && this.overflowMode !== 'Extended') {\n this.popObj.hide();\n }\n rootEle.querySelector('#' + rootEle.id + '_nav').setAttribute('tabindex', !value ? '0' : '-1');\n }\n };\n Toolbar.prototype.eleContains = function (el) {\n return el.classList.contains(CLS_SEPARATOR) || el.classList.contains(CLS_DISABLE$2) || el.getAttribute('disabled') || el.classList.contains(CLS_HIDDEN) || !isVisible(el) || !el.classList.contains(CLS_ITEM);\n };\n Toolbar.prototype.focusFirstVisibleEle = function (nodes) {\n var element;\n var index = 0;\n while (index < nodes.length) {\n var ele = nodes[parseInt(index.toString(), 10)];\n if (!ele.classList.contains(CLS_HIDDEN) && !ele.classList.contains(CLS_DISABLE$2)) {\n return ele;\n }\n index++;\n }\n return element;\n };\n Toolbar.prototype.focusLastVisibleEle = function (nodes) {\n var element;\n var index = nodes.length - 1;\n while (index >= 0) {\n var ele = nodes[parseInt(index.toString(), 10)];\n if (!ele.classList.contains(CLS_HIDDEN) && !ele.classList.contains(CLS_DISABLE$2)) {\n return ele;\n }\n index--;\n }\n return element;\n };\n Toolbar.prototype.eleFocus = function (closest, pos) {\n var sib = Object(closest)[pos + 'ElementSibling'];\n if (sib) {\n var skipEle = this.eleContains(sib);\n if (skipEle) {\n this.eleFocus(sib, pos);\n return;\n }\n this.elementFocus(sib);\n } else if (this.tbarAlign) {\n var elem = Object(closest.parentElement)[pos + 'ElementSibling'];\n if (!isNullOrUndefined(elem) && elem.children.length === 0) {\n elem = Object(elem)[pos + 'ElementSibling'];\n }\n if (!isNullOrUndefined(elem) && elem.children.length > 0) {\n if (pos === 'next') {\n var el = elem.querySelector('.' + CLS_ITEM);\n if (this.eleContains(el)) {\n this.eleFocus(el, pos);\n } else {\n el.firstElementChild.focus();\n this.activeEleSwitch(el);\n }\n } else {\n var el = elem.lastElementChild;\n if (this.eleContains(el)) {\n this.eleFocus(el, pos);\n } else {\n this.elementFocus(el);\n }\n }\n }\n } else if (!isNullOrUndefined(closest)) {\n var tbrItems = this.element.querySelectorAll('.' + CLS_ITEMS + ' .' + CLS_ITEM + ':not(.' + CLS_SEPARATOR + ')' + ':not(.' + CLS_DISABLE$2 + ')' + ':not(.' + CLS_HIDDEN + ')');\n if (pos === 'next' && tbrItems) {\n this.elementFocus(tbrItems[0]);\n } else if (pos === 'previous' && tbrItems) {\n this.elementFocus(tbrItems[tbrItems.length - 1]);\n }\n }\n };\n Toolbar.prototype.clickHandler = function (e) {\n var _this = this;\n var trgt = e.target;\n var ele = this.element;\n var isPopupElement = !isNullOrUndefined(closest(trgt, '.' + CLS_POPUPCLASS));\n var clsList = trgt.classList;\n var popupNav = closest(trgt, '.' + CLS_TBARNAV);\n if (!popupNav) {\n popupNav = trgt;\n }\n if (!ele.children[0].classList.contains('e-hscroll') && !ele.children[0].classList.contains('e-vscroll') && clsList.contains(CLS_TBARNAV)) {\n clsList = trgt.querySelector('.e-icons').classList;\n }\n if (clsList.contains(CLS_POPUPICON) || clsList.contains(CLS_POPUPDOWN)) {\n this.popupClickHandler(ele, popupNav, CLS_RTL$2);\n }\n var itemObj;\n var clst = closest(e.target, '.' + CLS_ITEM);\n if ((isNullOrUndefined(clst) || clst.classList.contains(CLS_DISABLE$2)) && !popupNav.classList.contains(CLS_TBARNAV)) {\n return;\n }\n if (clst) {\n var tempItem = this.items[this.tbarEle.indexOf(clst)];\n itemObj = tempItem;\n }\n var eventArgs = {\n originalEvent: e,\n item: itemObj\n };\n var isClickBinded = itemObj && !isNullOrUndefined(itemObj.click) && typeof itemObj.click == 'object' ? !isNullOrUndefined(itemObj.click.observers) && itemObj.click.observers.length > 0 : !isNullOrUndefined(itemObj) && !isNullOrUndefined(itemObj.click);\n if (isClickBinded) {\n this.trigger('items[' + this.tbarEle.indexOf(clst) + '].click', eventArgs);\n }\n if (!eventArgs.cancel) {\n this.trigger('clicked', eventArgs, function (clickedArgs) {\n if (!isNullOrUndefined(_this.popObj) && isPopupElement && !clickedArgs.cancel && _this.overflowMode === 'Popup' && clickedArgs.item && clickedArgs.item.type !== 'Input') {\n _this.popObj.hide({\n name: 'FadeOut',\n duration: 100\n });\n }\n });\n }\n };\n Toolbar.prototype.popupClickHandler = function (ele, popupNav, CLS_RTL) {\n var popObj = this.popObj;\n if (isVisible(popObj.element)) {\n popupNav.classList.remove(CLS_TBARNAVACT);\n popObj.hide({\n name: 'FadeOut',\n duration: 100\n });\n } else {\n if (ele.classList.contains(CLS_RTL)) {\n popObj.enableRtl = true;\n popObj.position = {\n X: 'left',\n Y: 'top'\n };\n }\n if (popObj.offsetX === 0 && !ele.classList.contains(CLS_RTL)) {\n popObj.enableRtl = false;\n popObj.position = {\n X: 'right',\n Y: 'top'\n };\n }\n if (this.overflowMode === 'Extended') {\n popObj.element.style.minHeight = '0px';\n popObj.width = this.getToolbarPopupWidth(this.element);\n }\n popObj.dataBind();\n popObj.refreshPosition();\n popObj.element.style.top = this.getElementOffsetY() + 'px';\n popupNav.classList.add(CLS_TBARNAVACT);\n popObj.show({\n name: 'FadeIn',\n duration: 100\n });\n }\n };\n Toolbar.prototype.getToolbarPopupWidth = function (ele) {\n var eleStyles = window.getComputedStyle(ele);\n return parseFloat(eleStyles.width) + parseFloat(eleStyles.borderRightWidth) * 2;\n };\n /**\n * To Initialize the control rendering\n *\n * @private\n * @returns {void}\n */\n Toolbar.prototype.render = function () {\n var _this = this;\n this.initialize();\n this.renderControl();\n this.wireEvents();\n this.clickEvent = this.docEvent.bind(this);\n this.scrollEvent = this.docEvent.bind(this);\n this.renderComplete();\n if (this.isReact && this.portals && this.portals.length > 0) {\n this.renderReactTemplates(function () {\n _this.refreshOverflow();\n });\n }\n };\n Toolbar.prototype.initialize = function () {\n var width = formatUnit(this.width);\n var height = formatUnit(this.height);\n if (Browser.info.name !== 'msie' || this.height !== 'auto' || this.overflowMode === 'MultiRow') {\n setStyleAttribute(this.element, {\n 'height': height\n });\n }\n setStyleAttribute(this.element, {\n 'width': width\n });\n var ariaAttr = {\n 'role': 'toolbar',\n 'aria-disabled': 'false',\n 'aria-orientation': !this.isVertical ? 'horizontal' : 'vertical'\n };\n attributes(this.element, ariaAttr);\n if (this.cssClass) {\n addClass([this.element], this.cssClass.split(' '));\n }\n };\n Toolbar.prototype.renderControl = function () {\n var ele = this.element;\n this.trgtEle = ele.children.length > 0 ? ele.querySelector('div') : null;\n this.tbarAlgEle = {\n lefts: [],\n centers: [],\n rights: []\n };\n this.renderItems();\n this.renderLayout();\n };\n Toolbar.prototype.renderLayout = function () {\n this.renderOverflowMode();\n if (this.tbarAlign) {\n this.itemPositioning();\n }\n if (this.popObj && this.popObj.element.childElementCount > 1 && this.checkPopupRefresh(this.element, this.popObj.element)) {\n this.popupRefresh(this.popObj.element, false);\n }\n this.separator();\n };\n Toolbar.prototype.itemsAlign = function (items, itemEleDom) {\n var innerItem;\n var innerPos;\n if (!this.tbarEle) {\n this.tbarEle = [];\n }\n for (var i = 0; i < items.length; i++) {\n innerItem = this.renderSubComponent(items[parseInt(i.toString(), 10)], i);\n if (this.tbarEle.indexOf(innerItem) === -1) {\n this.tbarEle.push(innerItem);\n }\n if (!this.tbarAlign) {\n this.tbarItemAlign(items[parseInt(i.toString(), 10)], itemEleDom, i);\n }\n innerPos = itemEleDom.querySelector('.e-toolbar-' + items[parseInt(i.toString(), 10)].align.toLowerCase());\n if (innerPos) {\n if (!(items[parseInt(i.toString(), 10)].showAlwaysInPopup && items[parseInt(i.toString(), 10)].overflow !== 'Show')) {\n this.tbarAlgEle[(items[parseInt(i.toString(), 10)].align + 's').toLowerCase()].push(innerItem);\n }\n innerPos.appendChild(innerItem);\n } else {\n itemEleDom.appendChild(innerItem);\n }\n }\n if (this.isReact) {\n var portals = 'portals';\n this.notify('render-react-toolbar-template', this[\"\" + portals]);\n this.renderReactTemplates();\n }\n };\n /**\n * @hidden\n * @returns {void}\n */\n Toolbar.prototype.changeOrientation = function () {\n var ele = this.element;\n if (this.isVertical) {\n ele.classList.remove(CLS_VERTICAL);\n this.isVertical = false;\n if (this.height === 'auto' || this.height === '100%') {\n ele.style.height = this.height;\n }\n ele.setAttribute('aria-orientation', 'horizontal');\n } else {\n ele.classList.add(CLS_VERTICAL);\n this.isVertical = true;\n ele.setAttribute('aria-orientation', 'vertical');\n setStyleAttribute(this.element, {\n 'height': formatUnit(this.height),\n 'width': formatUnit(this.width)\n });\n }\n this.destroyMode();\n this.refreshOverflow();\n };\n Toolbar.prototype.initScroll = function (element, innerItems) {\n if (!this.scrollModule && this.checkOverflow(element, innerItems[0])) {\n if (this.tbarAlign) {\n this.element.querySelector('.' + CLS_ITEMS + ' .' + CLS_TBARCENTER).removeAttribute('style');\n }\n if (this.isVertical) {\n this.scrollModule = new VScroll({\n scrollStep: this.scrollStep,\n enableRtl: this.enableRtl\n }, innerItems[0]);\n } else {\n this.scrollModule = new HScroll({\n scrollStep: this.scrollStep,\n enableRtl: this.enableRtl\n }, innerItems[0]);\n }\n if (this.cssClass) {\n addClass([innerItems[0]], this.cssClass.split(' '));\n }\n var scrollEle = this.scrollModule.element.querySelector('.' + CLS_HSCROLLBAR$1 + ', .' + 'e-vscroll-bar');\n if (scrollEle) {\n scrollEle.removeAttribute('tabindex');\n }\n this.remove(this.scrollModule.element, CLS_TBARPOS);\n setStyleAttribute(this.element, {\n overflow: 'hidden'\n });\n }\n };\n Toolbar.prototype.itemWidthCal = function (items) {\n var _this = this;\n var width = 0;\n var style;\n [].slice.call(selectAll('.' + CLS_ITEM, items)).forEach(function (el) {\n if (isVisible(el)) {\n style = window.getComputedStyle(el);\n width += _this.isVertical ? el.offsetHeight : el.offsetWidth;\n width += parseFloat(_this.isVertical ? style.marginTop : style.marginRight);\n width += parseFloat(_this.isVertical ? style.marginBottom : style.marginLeft);\n }\n });\n return width;\n };\n Toolbar.prototype.getScrollCntEle = function (innerItem) {\n var trgClass = this.isVertical ? '.e-vscroll-content' : '.e-hscroll-content';\n return innerItem.querySelector(trgClass);\n };\n Toolbar.prototype.checkOverflow = function (element, innerItem) {\n if (isNullOrUndefined(element) || isNullOrUndefined(innerItem) || !isVisible(element)) {\n return false;\n }\n var eleWidth = this.isVertical ? element.offsetHeight : element.offsetWidth;\n var itemWidth = this.isVertical ? innerItem.offsetHeight : innerItem.offsetWidth;\n if (this.tbarAlign || this.scrollModule || eleWidth === itemWidth) {\n itemWidth = this.itemWidthCal(this.scrollModule ? this.getScrollCntEle(innerItem) : innerItem);\n }\n var popNav = element.querySelector('.' + CLS_TBARNAV);\n var scrollNav = element.querySelector('.' + CLS_TBARSCRLNAV);\n var navEleWidth = 0;\n if (popNav) {\n navEleWidth = this.isVertical ? popNav.offsetHeight : popNav.offsetWidth;\n } else if (scrollNav) {\n navEleWidth = this.isVertical ? scrollNav.offsetHeight * 2 : scrollNav.offsetWidth * 2;\n }\n if (itemWidth > eleWidth - navEleWidth) {\n return true;\n } else {\n return false;\n }\n };\n /**\n * Refresh the whole Toolbar component without re-rendering.\n * - It is used to manually refresh the Toolbar overflow modes such as scrollable, popup, multi row, and extended.\n * - It will refresh the Toolbar component after loading items dynamically.\n *\n * @returns {void}.\n */\n Toolbar.prototype.refreshOverflow = function () {\n this.resize();\n };\n Toolbar.prototype.toolbarAlign = function (innerItems) {\n if (this.tbarAlign) {\n this.add(innerItems, CLS_TBARPOS);\n this.itemPositioning();\n }\n };\n Toolbar.prototype.renderOverflowMode = function () {\n var ele = this.element;\n var innerItems = ele.querySelector('.' + CLS_ITEMS);\n var priorityCheck = this.popupPriCount > 0;\n if (ele && ele.children.length > 0) {\n this.offsetWid = ele.offsetWidth;\n this.remove(this.element, 'e-toolpop');\n if (Browser.info.name === 'msie' && this.height === 'auto') {\n ele.style.height = '';\n }\n switch (this.overflowMode) {\n case 'Scrollable':\n if (isNullOrUndefined(this.scrollModule)) {\n this.initScroll(ele, [].slice.call(ele.getElementsByClassName(CLS_ITEMS)));\n }\n break;\n case 'Popup':\n this.add(this.element, 'e-toolpop');\n if (this.tbarAlign) {\n this.removePositioning();\n }\n if (this.checkOverflow(ele, innerItems) || priorityCheck) {\n this.setOverflowAttributes(ele);\n }\n this.toolbarAlign(innerItems);\n break;\n case 'MultiRow':\n this.add(innerItems, CLS_MULTIROW);\n if (this.checkOverflow(ele, innerItems) && this.tbarAlign) {\n this.removePositioning();\n this.add(innerItems, CLS_MULTIROWPOS);\n }\n if (ele.style.overflow === 'hidden') {\n ele.style.overflow = '';\n }\n if (Browser.info.name === 'msie' || ele.style.height !== 'auto') {\n ele.style.height = 'auto';\n }\n break;\n case 'Extended':\n this.add(this.element, CLS_EXTEANDABLE_TOOLBAR);\n if (this.checkOverflow(ele, innerItems) || priorityCheck) {\n if (this.tbarAlign) {\n this.removePositioning();\n }\n this.setOverflowAttributes(ele);\n }\n this.toolbarAlign(innerItems);\n }\n }\n };\n Toolbar.prototype.setOverflowAttributes = function (ele) {\n this.createPopupEle(ele, [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, ele)));\n var ariaAttr = {\n 'tabindex': '0',\n 'role': 'button',\n 'aria-haspopup': 'true',\n 'aria-label': 'overflow'\n };\n attributes(this.element.querySelector('.' + CLS_TBARNAV), ariaAttr);\n };\n Toolbar.prototype.separator = function () {\n var element = this.element;\n var eleItem = [].slice.call(element.querySelectorAll('.' + CLS_SEPARATOR));\n var multiVar = element.querySelector('.' + CLS_MULTIROW_SEPARATOR);\n var extendVar = element.querySelector('.' + CLS_EXTENDABLE_SEPARATOR);\n var eleInlineItem = this.overflowMode === 'MultiRow' ? multiVar : extendVar;\n if (eleInlineItem !== null) {\n if (this.overflowMode === 'MultiRow') {\n eleInlineItem.classList.remove(CLS_MULTIROW_SEPARATOR);\n } else if (this.overflowMode === 'Extended') {\n eleInlineItem.classList.remove(CLS_EXTENDABLE_SEPARATOR);\n }\n }\n for (var i = 0; i <= eleItem.length - 1; i++) {\n if (eleItem[parseInt(i.toString(), 10)].offsetLeft < 30 && eleItem[parseInt(i.toString(), 10)].offsetLeft !== 0) {\n if (this.overflowMode === 'MultiRow') {\n eleItem[parseInt(i.toString(), 10)].classList.add(CLS_MULTIROW_SEPARATOR);\n } else if (this.overflowMode === 'Extended') {\n eleItem[parseInt(i.toString(), 10)].classList.add(CLS_EXTENDABLE_SEPARATOR);\n }\n }\n }\n };\n Toolbar.prototype.createPopupEle = function (ele, innerEle) {\n var innerNav = ele.querySelector('.' + CLS_TBARNAV);\n var vertical = this.isVertical;\n if (!innerNav) {\n this.createPopupIcon(ele);\n }\n innerNav = ele.querySelector('.' + CLS_TBARNAV);\n var innerNavDom = vertical ? innerNav.offsetHeight : innerNav.offsetWidth;\n var eleWidth = (vertical ? ele.offsetHeight : ele.offsetWidth) - innerNavDom;\n this.element.classList.remove('e-rtl');\n setStyleAttribute(this.element, {\n direction: 'initial'\n });\n this.checkPriority(ele, innerEle, eleWidth, true);\n if (this.enableRtl) {\n this.element.classList.add('e-rtl');\n }\n this.element.style.removeProperty('direction');\n this.createPopup();\n };\n Toolbar.prototype.pushingPoppedEle = function (tbarObj, popupPri, ele, eleHeight, sepHeight) {\n var element = tbarObj.element;\n var poppedEle = [].slice.call(selectAll('.' + CLS_POPUP, element.querySelector('.' + CLS_ITEMS)));\n var nodes = selectAll('.' + CLS_TBAROVERFLOW, ele);\n var nodeIndex = 0;\n var nodePri = 0;\n poppedEle.forEach(function (el, index) {\n nodes = selectAll('.' + CLS_TBAROVERFLOW, ele);\n if (el.classList.contains(CLS_TBAROVERFLOW) && nodes.length > 0) {\n if (tbarObj.tbResize && nodes.length > index) {\n ele.insertBefore(el, nodes[parseInt(index.toString(), 10)]);\n ++nodePri;\n } else {\n ele.insertBefore(el, ele.children[nodes.length]);\n ++nodePri;\n }\n } else if (el.classList.contains(CLS_TBAROVERFLOW)) {\n ele.insertBefore(el, ele.firstChild);\n ++nodePri;\n } else if (tbarObj.tbResize && el.classList.contains(CLS_POPOVERFLOW) && ele.children.length > 0 && nodes.length === 0) {\n ele.insertBefore(el, ele.firstChild);\n ++nodePri;\n } else if (el.classList.contains(CLS_POPOVERFLOW)) {\n popupPri.push(el);\n } else if (tbarObj.tbResize) {\n ele.insertBefore(el, ele.childNodes[nodeIndex + nodePri]);\n ++nodeIndex;\n } else {\n ele.appendChild(el);\n }\n if (el.classList.contains(CLS_SEPARATOR)) {\n setStyleAttribute(el, {\n display: '',\n height: sepHeight + 'px'\n });\n } else {\n setStyleAttribute(el, {\n display: '',\n height: eleHeight + 'px'\n });\n }\n });\n popupPri.forEach(function (el) {\n ele.appendChild(el);\n });\n var tbarEle = selectAll('.' + CLS_ITEM, element.querySelector('.' + CLS_ITEMS));\n for (var i = tbarEle.length - 1; i >= 0; i--) {\n var tbarElement = tbarEle[parseInt(i.toString(), 10)];\n if (tbarElement.classList.contains(CLS_SEPARATOR) && this.overflowMode !== 'Extended') {\n setStyleAttribute(tbarElement, {\n display: 'none'\n });\n } else {\n break;\n }\n }\n };\n Toolbar.prototype.createPopup = function () {\n var element = this.element;\n var sepHeight;\n var sepItem;\n if (this.overflowMode === 'Extended') {\n sepItem = element.querySelector('.' + CLS_SEPARATOR);\n sepHeight = element.style.height === 'auto' || element.style.height === '' ? null : sepItem && sepItem.offsetHeight;\n }\n var eleItem = element.querySelector('.' + CLS_ITEM + ':not(.' + CLS_SEPARATOR + '):not(.' + CLS_POPUP + ')');\n var eleHeight = element.style.height === 'auto' || element.style.height === '' ? null : eleItem && eleItem.offsetHeight;\n var ele;\n var popupPri = [];\n if (select('#' + element.id + '_popup.' + CLS_POPUPCLASS, element)) {\n ele = select('#' + element.id + '_popup.' + CLS_POPUPCLASS, element);\n } else {\n var extendEle = this.createElement('div', {\n id: element.id + '_popup',\n className: CLS_POPUPCLASS + ' ' + CLS_EXTENDABLECLASS\n });\n var popupEle = this.createElement('div', {\n id: element.id + '_popup',\n className: CLS_POPUPCLASS\n });\n ele = this.overflowMode === 'Extended' ? extendEle : popupEle;\n }\n this.pushingPoppedEle(this, popupPri, ele, eleHeight, sepHeight);\n this.popupInit(element, ele);\n };\n Toolbar.prototype.getElementOffsetY = function () {\n return this.overflowMode === 'Extended' && window.getComputedStyle(this.element).getPropertyValue('box-sizing') === 'border-box' ? this.element.clientHeight : this.element.offsetHeight;\n };\n Toolbar.prototype.popupInit = function (element, ele) {\n if (!this.popObj) {\n element.appendChild(ele);\n if (this.cssClass) {\n addClass([ele], this.cssClass.split(' '));\n }\n setStyleAttribute(this.element, {\n overflow: ''\n });\n var popup = new Popup(null, {\n relateTo: this.element,\n offsetY: this.isVertical ? 0 : this.getElementOffsetY(),\n enableRtl: this.enableRtl,\n open: this.popupOpen.bind(this),\n close: this.popupClose.bind(this),\n collision: {\n Y: this.enableCollision ? 'flip' : 'none'\n },\n position: this.enableRtl ? {\n X: 'left',\n Y: 'top'\n } : {\n X: 'right',\n Y: 'top'\n }\n });\n if (this.overflowMode === 'Extended') {\n popup.width = this.getToolbarPopupWidth(this.element);\n popup.offsetX = 0;\n }\n popup.appendTo(ele);\n document.addEventListener('scroll', this.clickEvent);\n document.addEventListener('click', this.scrollEvent);\n if (this.overflowMode !== 'Extended') {\n popup.element.style.maxHeight = popup.element.offsetHeight + 'px';\n }\n if (this.isVertical) {\n popup.element.style.visibility = 'hidden';\n }\n if (this.isExtendedOpen) {\n var popupNav = this.element.querySelector('.' + CLS_TBARNAV);\n popupNav.classList.add(CLS_TBARNAVACT);\n classList(popupNav.firstElementChild, [CLS_POPUPICON], [CLS_POPUPDOWN]);\n this.element.querySelector('.' + CLS_EXTENDABLECLASS).classList.add(CLS_POPUPOPEN);\n } else {\n popup.hide();\n }\n this.popObj = popup;\n } else if (this.overflowMode !== 'Extended') {\n var popupEle = this.popObj.element;\n setStyleAttribute(popupEle, {\n maxHeight: '',\n display: 'block'\n });\n setStyleAttribute(popupEle, {\n maxHeight: popupEle.offsetHeight + 'px',\n display: ''\n });\n }\n };\n Toolbar.prototype.tbarPopupHandler = function (isOpen) {\n if (this.overflowMode === 'Extended') {\n if (isOpen) {\n this.add(this.element, CLS_EXTENDEDPOPOPEN);\n } else {\n this.remove(this.element, CLS_EXTENDEDPOPOPEN);\n }\n }\n };\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n Toolbar.prototype.popupOpen = function (e) {\n var popObj = this.popObj;\n if (!this.isVertical) {\n popObj.offsetY = this.getElementOffsetY();\n popObj.dataBind();\n }\n var popupEle = this.popObj.element;\n var toolEle = this.popObj.element.parentElement;\n var popupNav = toolEle.querySelector('.' + CLS_TBARNAV);\n popupNav.setAttribute('aria-expanded', 'true');\n if (this.overflowMode === 'Extended') {\n popObj.element.style.minHeight = '';\n } else {\n setStyleAttribute(popObj.element, {\n height: 'auto',\n maxHeight: ''\n });\n popObj.element.style.maxHeight = popObj.element.offsetHeight + 'px';\n }\n var popupElePos = popupEle.offsetTop + popupEle.offsetHeight + calculatePosition(toolEle).top;\n var popIcon = popupNav.firstElementChild;\n popupNav.classList.add(CLS_TBARNAVACT);\n classList(popIcon, [CLS_POPUPICON], [CLS_POPUPDOWN]);\n this.tbarPopupHandler(true);\n var scrollVal = isNullOrUndefined(window.scrollY) ? 0 : window.scrollY;\n if (!this.isVertical && window.innerHeight + scrollVal < popupElePos && this.element.offsetTop < popupEle.offsetHeight) {\n var overflowHeight = popupEle.offsetHeight - (popupElePos - window.innerHeight - scrollVal + 5);\n popObj.height = overflowHeight + 'px';\n for (var i = 0; i <= popupEle.childElementCount; i++) {\n var ele = popupEle.children[parseInt(i.toString(), 10)];\n if (ele.offsetTop + ele.offsetHeight > overflowHeight) {\n overflowHeight = ele.offsetTop;\n break;\n }\n }\n if (this.overflowMode !== 'Extended') {\n setStyleAttribute(popObj.element, {\n maxHeight: overflowHeight + 'px'\n });\n }\n } else if (this.isVertical && this.overflowMode !== 'Extended') {\n var tbEleData = this.element.getBoundingClientRect();\n setStyleAttribute(popObj.element, {\n maxHeight: tbEleData.top + this.element.offsetHeight + 'px',\n bottom: 0,\n visibility: ''\n });\n }\n if (popObj) {\n var popupOffset = popupEle.getBoundingClientRect();\n if (popupOffset.right > document.documentElement.clientWidth && popupOffset.width > toolEle.getBoundingClientRect().width) {\n popObj.collision = {\n Y: 'none'\n };\n popObj.dataBind();\n }\n popObj.refreshPosition();\n }\n };\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n Toolbar.prototype.popupClose = function (e) {\n var element = this.element;\n var popupNav = element.querySelector('.' + CLS_TBARNAV);\n popupNav.setAttribute('aria-expanded', 'false');\n var popIcon = popupNav.firstElementChild;\n popupNav.classList.remove(CLS_TBARNAVACT);\n classList(popIcon, [CLS_POPUPDOWN], [CLS_POPUPICON]);\n this.tbarPopupHandler(false);\n };\n Toolbar.prototype.checkPriority = function (ele, inEle, eleWidth, pre) {\n var popPriority = this.popupPriCount > 0;\n var len = inEle.length;\n var eleWid = eleWidth;\n var eleOffset;\n var checkoffset;\n var sepCheck = 0;\n var itemCount = 0;\n var itemPopCount = 0;\n var checkClass = function (ele, val) {\n var rVal = false;\n val.forEach(function (cls) {\n if (ele.classList.contains(cls)) {\n rVal = true;\n }\n });\n return rVal;\n };\n for (var i = len - 1; i >= 0; i--) {\n var mrgn = void 0;\n var compuStyle = window.getComputedStyle(inEle[parseInt(i.toString(), 10)]);\n if (this.isVertical) {\n mrgn = parseFloat(compuStyle.marginTop);\n mrgn += parseFloat(compuStyle.marginBottom);\n } else {\n mrgn = parseFloat(compuStyle.marginRight);\n mrgn += parseFloat(compuStyle.marginLeft);\n }\n var fstEleCheck = inEle[parseInt(i.toString(), 10)] === this.tbarEle[0];\n if (fstEleCheck) {\n this.tbarEleMrgn = mrgn;\n }\n eleOffset = this.isVertical ? inEle[parseInt(i.toString(), 10)].offsetHeight : inEle[parseInt(i.toString(), 10)].offsetWidth;\n var eleWid_1 = fstEleCheck ? eleOffset + mrgn : eleOffset;\n if (checkClass(inEle[parseInt(i.toString(), 10)], [CLS_POPPRI]) && popPriority) {\n inEle[parseInt(i.toString(), 10)].classList.add(CLS_POPUP);\n if (this.isVertical) {\n setStyleAttribute(inEle[parseInt(i.toString(), 10)], {\n display: 'none',\n minHeight: eleWid_1 + 'px'\n });\n } else {\n setStyleAttribute(inEle[parseInt(i.toString(), 10)], {\n display: 'none',\n minWidth: eleWid_1 + 'px'\n });\n }\n itemPopCount++;\n }\n if (this.isVertical) {\n checkoffset = inEle[parseInt(i.toString(), 10)].offsetTop + inEle[parseInt(i.toString(), 10)].offsetHeight + mrgn > eleWidth;\n } else {\n checkoffset = inEle[parseInt(i.toString(), 10)].offsetLeft + inEle[parseInt(i.toString(), 10)].offsetWidth + mrgn > eleWidth;\n }\n if (checkoffset) {\n if (inEle[parseInt(i.toString(), 10)].classList.contains(CLS_SEPARATOR)) {\n if (this.overflowMode === 'Extended') {\n var sepEle = inEle[parseInt(i.toString(), 10)];\n if (checkClass(sepEle, [CLS_SEPARATOR, CLS_TBARIGNORE])) {\n inEle[parseInt(i.toString(), 10)].classList.add(CLS_POPUP);\n itemPopCount++;\n }\n itemCount++;\n } else if (this.overflowMode === 'Popup') {\n if (sepCheck > 0 && itemCount === itemPopCount) {\n var sepEle = inEle[i + itemCount + (sepCheck - 1)];\n if (checkClass(sepEle, [CLS_SEPARATOR, CLS_TBARIGNORE])) {\n setStyleAttribute(sepEle, {\n display: 'none'\n });\n }\n }\n sepCheck++;\n itemCount = 0;\n itemPopCount = 0;\n }\n } else {\n itemCount++;\n }\n if (inEle[parseInt(i.toString(), 10)].classList.contains(CLS_TBAROVERFLOW) && pre) {\n eleWidth -= (this.isVertical ? inEle[parseInt(i.toString(), 10)].offsetHeight : inEle[parseInt(i.toString(), 10)].offsetWidth) + mrgn;\n } else if (!checkClass(inEle[parseInt(i.toString(), 10)], [CLS_SEPARATOR, CLS_TBARIGNORE])) {\n inEle[parseInt(i.toString(), 10)].classList.add(CLS_POPUP);\n if (this.isVertical) {\n setStyleAttribute(inEle[parseInt(i.toString(), 10)], {\n display: 'none',\n minHeight: eleWid_1 + 'px'\n });\n } else {\n setStyleAttribute(inEle[parseInt(i.toString(), 10)], {\n display: 'none',\n minWidth: eleWid_1 + 'px'\n });\n }\n itemPopCount++;\n } else {\n eleWidth -= (this.isVertical ? inEle[parseInt(i.toString(), 10)].offsetHeight : inEle[parseInt(i.toString(), 10)].offsetWidth) + mrgn;\n }\n }\n }\n if (pre) {\n var popedEle = selectAll('.' + CLS_ITEM + ':not(.' + CLS_POPUP + ')', this.element);\n this.checkPriority(ele, popedEle, eleWid, false);\n }\n };\n Toolbar.prototype.createPopupIcon = function (element) {\n var id = element.id.concat('_nav');\n var className = 'e-' + element.id.concat('_nav ' + CLS_POPUPNAV);\n className = this.overflowMode === 'Extended' ? className + ' ' + CLS_EXTENDPOPUP : className;\n var nav = this.createElement('div', {\n id: id,\n className: className\n });\n if (Browser.info.name === 'msie' || Browser.info.name === 'edge') {\n nav.classList.add('e-ie-align');\n }\n var navItem = this.createElement('div', {\n className: CLS_POPUPDOWN + ' e-icons'\n });\n nav.appendChild(navItem);\n nav.setAttribute('tabindex', '0');\n nav.setAttribute('role', 'button');\n element.appendChild(nav);\n };\n // eslint-disable-next-line max-len\n Toolbar.prototype.tbarPriRef = function (inEle, indx, sepPri, el, des, elWid, wid, ig, eleStyles) {\n var ignoreCount = ig;\n var popEle = this.popObj.element;\n var query = '.' + CLS_ITEM + ':not(.' + CLS_SEPARATOR + '):not(.' + CLS_TBAROVERFLOW + ')';\n var priEleCnt = selectAll('.' + CLS_POPUP + ':not(.' + CLS_TBAROVERFLOW + ')', popEle).length;\n var checkClass = function (ele, val) {\n return ele.classList.contains(val);\n };\n if (selectAll(query, inEle).length === 0) {\n var eleSep = inEle.children[indx - (indx - sepPri) - 1];\n var ignoreCheck = !isNullOrUndefined(eleSep) && checkClass(eleSep, CLS_TBARIGNORE);\n if (!isNullOrUndefined(eleSep) && checkClass(eleSep, CLS_SEPARATOR) && !isVisible(eleSep) || ignoreCheck) {\n eleSep.style.display = 'unset';\n var eleSepWidth = eleSep.offsetWidth + parseFloat(window.getComputedStyle(eleSep).marginRight) * 2;\n var prevSep = eleSep.previousElementSibling;\n if (elWid + eleSepWidth < wid || des) {\n inEle.insertBefore(el, inEle.children[indx + ignoreCount - (indx - sepPri)]);\n if (!isNullOrUndefined(prevSep)) {\n prevSep.style.display = '';\n }\n } else {\n setStyleAttribute(el, eleStyles);\n if (prevSep.classList.contains(CLS_SEPARATOR)) {\n prevSep.style.display = 'none';\n }\n }\n eleSep.style.display = '';\n } else {\n inEle.insertBefore(el, inEle.children[indx + ignoreCount - (indx - sepPri)]);\n }\n } else {\n inEle.insertBefore(el, inEle.children[indx + ignoreCount - priEleCnt]);\n }\n };\n Toolbar.prototype.popupRefresh = function (popupEle, destroy) {\n var _this = this;\n var ele = this.element;\n var isVer = this.isVertical;\n var innerEle = ele.querySelector('.' + CLS_ITEMS);\n var popNav = ele.querySelector('.' + CLS_TBARNAV);\n if (isNullOrUndefined(popNav)) {\n return;\n }\n innerEle.removeAttribute('style');\n popupEle.style.display = 'block';\n var dimension;\n if (isVer) {\n dimension = ele.offsetHeight - (popNav.offsetHeight + innerEle.offsetHeight);\n } else {\n dimension = ele.offsetWidth - (popNav.offsetWidth + innerEle.offsetWidth);\n }\n var popupEleWidth = 0;\n [].slice.call(popupEle.children).forEach(function (el) {\n popupEleWidth += _this.popupEleWidth(el);\n setStyleAttribute(el, {\n 'position': ''\n });\n });\n if (dimension + (isVer ? popNav.offsetHeight : popNav.offsetWidth) > popupEleWidth && this.popupPriCount === 0) {\n destroy = true;\n }\n this.popupEleRefresh(dimension, popupEle, destroy);\n popupEle.style.display = '';\n if (popupEle.children.length === 0 && popNav && this.popObj) {\n detach(popNav);\n popNav = null;\n this.popObj.destroy();\n detach(this.popObj.element);\n this.popObj = null;\n }\n };\n Toolbar.prototype.ignoreEleFetch = function (index, innerEle) {\n var ignoreEle = [].slice.call(innerEle.querySelectorAll('.' + CLS_TBARIGNORE));\n var ignoreInx = [];\n var count = 0;\n if (ignoreEle.length > 0) {\n ignoreEle.forEach(function (ele) {\n ignoreInx.push([].slice.call(innerEle.children).indexOf(ele));\n });\n } else {\n return 0;\n }\n ignoreInx.forEach(function (val) {\n if (val <= index) {\n count++;\n }\n });\n return count;\n };\n Toolbar.prototype.checkPopupRefresh = function (root, popEle) {\n popEle.style.display = 'block';\n var elWid = this.popupEleWidth(popEle.firstElementChild);\n popEle.firstElementChild.style.removeProperty('Position');\n var tbarWidth = root.offsetWidth - root.querySelector('.' + CLS_TBARNAV).offsetWidth;\n var tbarItemsWid = root.querySelector('.' + CLS_ITEMS).offsetWidth;\n popEle.style.removeProperty('display');\n if (tbarWidth > elWid + tbarItemsWid) {\n return true;\n }\n return false;\n };\n Toolbar.prototype.popupEleWidth = function (el) {\n el.style.position = 'absolute';\n var elWidth = this.isVertical ? el.offsetHeight : el.offsetWidth;\n var btnText = el.querySelector('.' + CLS_TBARBTNTEXT);\n if (el.classList.contains('e-tbtn-align') || el.classList.contains(CLS_TBARTEXT)) {\n var btn = el.children[0];\n if (!isNullOrUndefined(btnText) && el.classList.contains(CLS_TBARTEXT)) {\n btnText.style.display = 'none';\n } else if (!isNullOrUndefined(btnText) && el.classList.contains(CLS_POPUPTEXT)) {\n btnText.style.display = 'block';\n }\n btn.style.minWidth = '0%';\n elWidth = parseFloat(!this.isVertical ? el.style.minWidth : el.style.minHeight);\n btn.style.minWidth = '';\n btn.style.minHeight = '';\n if (!isNullOrUndefined(btnText)) {\n btnText.style.display = '';\n }\n }\n return elWidth;\n };\n Toolbar.prototype.popupEleRefresh = function (width, popupEle, destroy) {\n var popPriority = this.popupPriCount > 0;\n var eleSplice = this.tbarEle;\n var priEleCnt;\n var index;\n var innerEle = this.element.querySelector('.' + CLS_ITEMS);\n var ignoreCount = 0;\n var _loop_1 = function (el) {\n if (el.classList.contains(CLS_POPPRI) && popPriority && !destroy) {\n return \"continue\";\n }\n var elWidth = this_1.popupEleWidth(el);\n if (el === this_1.tbarEle[0]) {\n elWidth += this_1.tbarEleMrgn;\n }\n el.style.position = '';\n if (elWidth < width || destroy) {\n var inlineStyles = {\n minWidth: el.style.minWidth,\n height: el.style.height,\n minHeight: el.style.minHeight\n };\n setStyleAttribute(el, {\n minWidth: '',\n height: '',\n minHeight: ''\n });\n if (!el.classList.contains(CLS_POPOVERFLOW)) {\n el.classList.remove(CLS_POPUP);\n }\n index = this_1.tbarEle.indexOf(el);\n if (this_1.tbarAlign) {\n var pos = this_1.items[parseInt(index.toString(), 10)].align;\n index = this_1.tbarAlgEle[(pos + 's').toLowerCase()].indexOf(el);\n eleSplice = this_1.tbarAlgEle[(pos + 's').toLowerCase()];\n innerEle = this_1.element.querySelector('.' + CLS_ITEMS + ' .' + 'e-toolbar-' + pos.toLowerCase());\n }\n var sepBeforePri_1 = 0;\n if (this_1.overflowMode !== 'Extended') {\n eleSplice.slice(0, index).forEach(function (el) {\n if (el.classList.contains(CLS_TBAROVERFLOW) || el.classList.contains(CLS_SEPARATOR)) {\n if (el.classList.contains(CLS_SEPARATOR)) {\n el.style.display = '';\n width -= el.offsetWidth;\n }\n sepBeforePri_1++;\n }\n });\n }\n ignoreCount = this_1.ignoreEleFetch(index, innerEle);\n if (el.classList.contains(CLS_TBAROVERFLOW)) {\n this_1.tbarPriRef(innerEle, index, sepBeforePri_1, el, destroy, elWidth, width, ignoreCount, inlineStyles);\n width -= el.offsetWidth;\n } else if (index === 0) {\n innerEle.insertBefore(el, innerEle.firstChild);\n width -= el.offsetWidth;\n } else {\n priEleCnt = selectAll('.' + CLS_TBAROVERFLOW, this_1.popObj.element).length;\n innerEle.insertBefore(el, innerEle.children[index + ignoreCount - priEleCnt]);\n width -= el.offsetWidth;\n }\n el.style.height = '';\n } else {\n return \"break\";\n }\n };\n var this_1 = this;\n for (var _i = 0, _a = [].slice.call(popupEle.children); _i < _a.length; _i++) {\n var el = _a[_i];\n var state_1 = _loop_1(el);\n if (state_1 === \"break\") break;\n }\n var checkOverflow = this.checkOverflow(this.element, this.element.getElementsByClassName(CLS_ITEMS)[0]);\n if (checkOverflow && !destroy) {\n this.renderOverflowMode();\n }\n };\n Toolbar.prototype.removePositioning = function () {\n var item = this.element.querySelector('.' + CLS_ITEMS);\n if (isNullOrUndefined(item) || !item.classList.contains(CLS_TBARPOS)) {\n return;\n }\n this.remove(item, CLS_TBARPOS);\n var innerItem = [].slice.call(item.childNodes);\n innerItem[1].removeAttribute('style');\n innerItem[2].removeAttribute('style');\n };\n Toolbar.prototype.refreshPositioning = function () {\n var item = this.element.querySelector('.' + CLS_ITEMS);\n this.add(item, CLS_TBARPOS);\n this.itemPositioning();\n };\n Toolbar.prototype.itemPositioning = function () {\n var item = this.element.querySelector('.' + CLS_ITEMS);\n var margin;\n if (isNullOrUndefined(item) || !item.classList.contains(CLS_TBARPOS)) {\n return;\n }\n var popupNav = this.element.querySelector('.' + CLS_TBARNAV);\n var innerItem;\n if (this.scrollModule) {\n var trgClass = this.isVertical ? CLS_VSCROLLCNT : CLS_HSCROLLCNT;\n innerItem = [].slice.call(item.querySelector('.' + trgClass).children);\n } else {\n innerItem = [].slice.call(item.childNodes);\n }\n if (this.isVertical) {\n margin = innerItem[0].offsetHeight + innerItem[2].offsetHeight;\n } else {\n margin = innerItem[0].offsetWidth + innerItem[2].offsetWidth;\n }\n var tbarWid = this.isVertical ? this.element.offsetHeight : this.element.offsetWidth;\n if (popupNav) {\n tbarWid -= this.isVertical ? popupNav.offsetHeight : popupNav.offsetWidth;\n var popWid = (this.isVertical ? popupNav.offsetHeight : popupNav.offsetWidth) + 'px';\n innerItem[2].removeAttribute('style');\n if (this.isVertical) {\n if (this.enableRtl) {\n innerItem[2].style.top = popWid;\n } else {\n innerItem[2].style.bottom = popWid;\n }\n } else {\n if (this.enableRtl) {\n innerItem[2].style.left = popWid;\n } else {\n innerItem[2].style.right = popWid;\n }\n }\n }\n if (tbarWid <= margin) {\n return;\n }\n var value = (tbarWid - margin - (!this.isVertical ? innerItem[1].offsetWidth : innerItem[1].offsetHeight)) / 2;\n innerItem[1].removeAttribute('style');\n var mrgn = (!this.isVertical ? innerItem[0].offsetWidth : innerItem[0].offsetHeight) + value + 'px';\n if (this.isVertical) {\n if (this.enableRtl) {\n innerItem[1].style.marginBottom = mrgn;\n } else {\n innerItem[1].style.marginTop = mrgn;\n }\n } else {\n if (this.enableRtl) {\n innerItem[1].style.marginRight = mrgn;\n } else {\n innerItem[1].style.marginLeft = mrgn;\n }\n }\n };\n Toolbar.prototype.tbarItemAlign = function (item, itemEle, pos) {\n var _this = this;\n if (item.showAlwaysInPopup && item.overflow !== 'Show') {\n return;\n }\n var alignDiv = [];\n alignDiv.push(this.createElement('div', {\n className: CLS_TBARLEFT\n }));\n alignDiv.push(this.createElement('div', {\n className: CLS_TBARCENTER\n }));\n alignDiv.push(this.createElement('div', {\n className: CLS_TBARRIGHT\n }));\n if (pos === 0 && item.align !== 'Left') {\n alignDiv.forEach(function (ele) {\n itemEle.appendChild(ele);\n });\n this.tbarAlign = true;\n this.add(itemEle, CLS_TBARPOS);\n } else if (item.align !== 'Left') {\n var alignEle = itemEle.childNodes;\n var leftAlign_1 = alignDiv[0];\n [].slice.call(alignEle).forEach(function (el) {\n _this.tbarAlgEle.lefts.push(el);\n leftAlign_1.appendChild(el);\n });\n itemEle.appendChild(leftAlign_1);\n itemEle.appendChild(alignDiv[1]);\n itemEle.appendChild(alignDiv[2]);\n this.tbarAlign = true;\n this.add(itemEle, CLS_TBARPOS);\n }\n };\n Toolbar.prototype.ctrlTemplate = function () {\n var _this = this;\n this.ctrlTem = this.trgtEle.cloneNode(true);\n this.add(this.trgtEle, CLS_ITEMS);\n this.tbarEle = [];\n var innerEle = [].slice.call(this.trgtEle.children);\n innerEle.forEach(function (ele) {\n if (ele.tagName === 'DIV') {\n _this.tbarEle.push(ele);\n if (!isNullOrUndefined(ele.firstElementChild)) {\n ele.firstElementChild.setAttribute('aria-disabled', 'false');\n }\n _this.add(ele, CLS_ITEM);\n }\n });\n };\n Toolbar.prototype.renderItems = function () {\n var ele = this.element;\n var items = this.items;\n if (this.trgtEle != null) {\n this.ctrlTemplate();\n } else if (ele && items.length > 0) {\n var itemEleDom = void 0;\n if (ele && ele.children.length > 0) {\n itemEleDom = ele.querySelector('.' + CLS_ITEMS);\n }\n if (!itemEleDom) {\n itemEleDom = this.createElement('div', {\n className: CLS_ITEMS\n });\n }\n this.itemsAlign(items, itemEleDom);\n ele.appendChild(itemEleDom);\n }\n };\n Toolbar.prototype.setAttr = function (attr, element) {\n var key = Object.keys(attr);\n var keyVal;\n for (var i = 0; i < key.length; i++) {\n keyVal = key[parseInt(i.toString(), 10)];\n if (keyVal === 'class') {\n this.add(element, attr[\"\" + keyVal]);\n } else {\n element.setAttribute(keyVal, attr[\"\" + keyVal]);\n }\n }\n };\n /**\n * Enables or disables the specified Toolbar item.\n *\n * @param {number|HTMLElement|NodeList} items - DOM element or an array of items to be enabled or disabled.\n * @param {boolean} isEnable - Boolean value that determines whether the command should be enabled or disabled.\n * By default, `isEnable` is set to true.\n * @returns {void}.\n */\n Toolbar.prototype.enableItems = function (items, isEnable) {\n var elements = items;\n var len = elements.length;\n var ele;\n if (isNullOrUndefined(isEnable)) {\n isEnable = true;\n }\n var enable = function (isEnable, ele) {\n if (isEnable) {\n ele.classList.remove(CLS_DISABLE$2);\n if (!isNullOrUndefined(ele.firstElementChild)) {\n ele.firstElementChild.setAttribute('aria-disabled', 'false');\n }\n } else {\n ele.classList.add(CLS_DISABLE$2);\n if (!isNullOrUndefined(ele.firstElementChild)) {\n ele.firstElementChild.setAttribute('aria-disabled', 'true');\n }\n }\n };\n if (!isNullOrUndefined(len) && len >= 1) {\n for (var a = 0, element = [].slice.call(elements); a < len; a++) {\n var itemElement = element[parseInt(a.toString(), 10)];\n if (typeof itemElement === 'number') {\n ele = this.getElementByIndex(itemElement);\n if (isNullOrUndefined(ele)) {\n return;\n } else {\n elements[parseInt(a.toString(), 10)] = ele;\n }\n } else {\n ele = itemElement;\n }\n enable(isEnable, ele);\n }\n if (isEnable) {\n removeClass(elements, CLS_DISABLE$2);\n } else {\n addClass(elements, CLS_DISABLE$2);\n }\n } else {\n if (typeof elements === 'number') {\n ele = this.getElementByIndex(elements);\n if (isNullOrUndefined(ele)) {\n return;\n }\n } else {\n ele = items;\n }\n enable(isEnable, ele);\n }\n };\n Toolbar.prototype.getElementByIndex = function (index) {\n if (this.tbarEle[parseInt(index.toString(), 10)]) {\n return this.tbarEle[parseInt(index.toString(), 10)];\n }\n return null;\n };\n /**\n * Adds new items to the Toolbar that accepts an array as Toolbar items.\n *\n * @param {ItemModel[]} items - DOM element or an array of items to be added to the Toolbar.\n * @param {number} index - Number value that determines where the command is to be added. By default, index is 0.\n * @returns {void}.\n */\n Toolbar.prototype.addItems = function (items, index) {\n var innerItems;\n this.extendedOpen();\n var itemsDiv = this.element.querySelector('.' + CLS_ITEMS);\n if (isNullOrUndefined(itemsDiv)) {\n this.itemsRerender(items);\n return;\n }\n var innerEle;\n var itemAgn = 'Left';\n if (isNullOrUndefined(index)) {\n index = 0;\n }\n items.forEach(function (e) {\n if (!isNullOrUndefined(e.align) && e.align !== 'Left' && itemAgn === 'Left') {\n itemAgn = e.align;\n }\n });\n for (var _i = 0, items_1 = items; _i < items_1.length; _i++) {\n var item = items_1[_i];\n if (isNullOrUndefined(item.type)) {\n item.type = 'Button';\n }\n innerItems = selectAll('.' + CLS_ITEM, this.element);\n item.align = itemAgn;\n innerEle = this.renderSubComponent(item, index);\n if (this.tbarEle.length >= index && innerItems.length >= 0) {\n if (isNullOrUndefined(this.scrollModule)) {\n this.destroyMode();\n }\n var algIndex = item.align[0] === 'L' ? 0 : item.align[0] === 'C' ? 1 : 2;\n var ele = void 0;\n if (!this.tbarAlign && itemAgn !== 'Left') {\n this.tbarItemAlign(item, itemsDiv, 1);\n this.tbarAlign = true;\n ele = closest(innerItems[0], '.' + CLS_ITEMS).children[parseInt(algIndex.toString(), 10)];\n ele.appendChild(innerEle);\n this.tbarAlgEle[(item.align + 's').toLowerCase()].push(innerEle);\n this.refreshPositioning();\n } else if (this.tbarAlign) {\n ele = closest(innerItems[0], '.' + CLS_ITEMS).children[parseInt(algIndex.toString(), 10)];\n ele.insertBefore(innerEle, ele.children[parseInt(index.toString(), 10)]);\n this.tbarAlgEle[(item.align + 's').toLowerCase()].splice(index, 0, innerEle);\n this.refreshPositioning();\n } else if (innerItems.length === 0) {\n innerItems = selectAll('.' + CLS_ITEMS, this.element);\n innerItems[0].appendChild(innerEle);\n } else {\n innerItems[0].parentNode.insertBefore(innerEle, innerItems[parseInt(index.toString(), 10)]);\n }\n this.items.splice(index, 0, item);\n if (item.template) {\n this.tbarEle.splice(this.tbarEle.length - 1, 1);\n }\n this.tbarEle.splice(index, 0, innerEle);\n index++;\n this.offsetWid = itemsDiv.offsetWidth;\n }\n }\n itemsDiv.style.width = '';\n this.renderOverflowMode();\n if (this.isReact) {\n this.renderReactTemplates();\n }\n };\n /**\n * Removes the items from the Toolbar. Acceptable arguments are index of item/HTMLElement/node list.\n *\n * @param {number|HTMLElement|NodeList|HTMLElement[]} args\n * Index or DOM element or an Array of item which is to be removed from the Toolbar.\n * @returns {void}.\n */\n Toolbar.prototype.removeItems = function (args) {\n var elements = args;\n var index;\n var innerItems = [].slice.call(selectAll('.' + CLS_ITEM, this.element));\n if (typeof elements === 'number') {\n index = parseInt(args.toString(), 10);\n this.removeItemByIndex(index, innerItems);\n } else {\n if (elements && elements.length > 1) {\n for (var _i = 0, _a = [].slice.call(elements); _i < _a.length; _i++) {\n var ele = _a[_i];\n index = this.tbarEle.indexOf(ele);\n this.removeItemByIndex(index, innerItems);\n innerItems = selectAll('.' + CLS_ITEM, this.element);\n }\n } else {\n var ele = elements && elements.length && elements.length === 1 ? elements[0] : args;\n index = innerItems.indexOf(ele);\n this.removeItemByIndex(index, innerItems);\n }\n }\n this.resize();\n };\n Toolbar.prototype.removeItemByIndex = function (index, innerItems) {\n if (this.tbarEle[parseInt(index.toString(), 10)] && innerItems[parseInt(index.toString(), 10)]) {\n var eleIdx = this.tbarEle.indexOf(innerItems[parseInt(index.toString(), 10)]);\n if (this.tbarAlign) {\n var indexAgn = this.tbarAlgEle[(this.items[parseInt(eleIdx.toString(), 10)].align + 's').toLowerCase()].indexOf(this.tbarEle[parseInt(eleIdx.toString(), 10)]);\n this.tbarAlgEle[(this.items[parseInt(eleIdx.toString(), 10)].align + 's').toLowerCase()].splice(parseInt(indexAgn.toString(), 10), 1);\n }\n if (this.isReact) {\n this.clearToolbarTemplate(innerItems[parseInt(index.toString(), 10)]);\n }\n var btnItem = innerItems[parseInt(index.toString(), 10)].querySelector('.e-control.e-btn');\n if (!isNullOrUndefined(btnItem) && !isNullOrUndefined(btnItem.ej2_instances[0]) && !btnItem.ej2_instances[0].isDestroyed) {\n btnItem.ej2_instances[0].destroy();\n }\n detach(innerItems[parseInt(index.toString(), 10)]);\n this.items.splice(eleIdx, 1);\n this.tbarEle.splice(eleIdx, 1);\n }\n };\n Toolbar.prototype.templateRender = function (templateProp, innerEle, item, index) {\n var itemType = item.type;\n var eleObj = templateProp;\n var isComponent;\n if (typeof templateProp === 'object') {\n isComponent = typeof eleObj.appendTo === 'function';\n }\n if (typeof templateProp === 'string' || !isComponent) {\n var templateFn = void 0;\n var val = templateProp;\n var regEx = new RegExp(/<(?=.*? .*?\\/ ?>|br|hr|input|!--|wbr)[a-z]+.*?>|<([a-z]+).*?<\\/\\1>/i);\n val = typeof templateProp === 'string' ? templateProp.trim() : templateProp;\n try {\n if (typeof templateProp === 'object' && !isNullOrUndefined(templateProp.tagName)) {\n innerEle.appendChild(templateProp);\n } else if (typeof templateProp === 'string' && regEx.test(val)) {\n innerEle.innerHTML = val;\n } else if (document.querySelectorAll(val).length) {\n var ele = document.querySelector(val);\n var tempStr = ele.outerHTML.trim();\n innerEle.appendChild(ele);\n ele.style.display = '';\n if (!isNullOrUndefined(tempStr)) {\n this.tempId.push(val);\n }\n } else {\n templateFn = compile(val);\n }\n } catch (e) {\n templateFn = compile(val);\n }\n var tempArray = void 0;\n if (!isNullOrUndefined(templateFn)) {\n var toolbarTemplateID = this.element.id + index + '_template';\n tempArray = templateFn({}, this, 'template', toolbarTemplateID, this.isStringTemplate, undefined, undefined, this.root);\n }\n if (!isNullOrUndefined(tempArray) && tempArray.length > 0) {\n [].slice.call(tempArray).forEach(function (ele) {\n if (!isNullOrUndefined(ele.tagName)) {\n ele.style.display = '';\n }\n innerEle.appendChild(ele);\n });\n }\n } else if (itemType === 'Input') {\n var ele = this.createElement('input');\n if (item.id) {\n ele.id = item.id;\n } else {\n ele.id = getUniqueID('tbr-ipt');\n }\n innerEle.appendChild(ele);\n eleObj.appendTo(ele);\n }\n this.add(innerEle, CLS_TEMPLATE);\n var firstChild = innerEle.firstElementChild;\n if (!isNullOrUndefined(firstChild)) {\n firstChild.setAttribute('tabindex', isNullOrUndefined(firstChild.getAttribute('tabIndex')) ? '-1' : this.getDataTabindex(firstChild));\n firstChild.setAttribute('data-tabindex', isNullOrUndefined(firstChild.getAttribute('tabIndex')) ? '-1' : this.getDataTabindex(firstChild));\n }\n this.tbarEle.push(innerEle);\n };\n Toolbar.prototype.buttonRendering = function (item, innerEle) {\n var dom = this.createElement('button', {\n className: CLS_TBARBTN\n });\n dom.setAttribute('type', 'button');\n var textStr = item.text;\n var iconCss;\n var iconPos;\n if (item.id) {\n dom.id = item.id;\n } else {\n dom.id = getUniqueID('e-tbr-btn');\n }\n var btnTxt = this.createElement('span', {\n className: 'e-tbar-btn-text'\n });\n if (textStr) {\n btnTxt.innerHTML = this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(textStr) : textStr;\n dom.appendChild(btnTxt);\n dom.classList.add('e-tbtn-txt');\n } else {\n this.add(innerEle, 'e-tbtn-align');\n }\n if (item.prefixIcon || item.suffixIcon) {\n if (item.prefixIcon && item.suffixIcon || item.prefixIcon) {\n iconCss = item.prefixIcon + ' e-icons';\n iconPos = 'Left';\n } else {\n iconCss = item.suffixIcon + ' e-icons';\n iconPos = 'Right';\n }\n }\n var btnObj = new Button({\n iconCss: iconCss,\n iconPosition: iconPos\n });\n btnObj.createElement = this.createElement;\n btnObj.appendTo(dom);\n if (item.width) {\n setStyleAttribute(dom, {\n 'width': formatUnit(item.width)\n });\n }\n return dom;\n };\n Toolbar.prototype.renderSubComponent = function (item, index) {\n var dom;\n var innerEle = this.createElement('div', {\n className: CLS_ITEM\n });\n var tempDom = this.createElement('div', {\n innerHTML: this.enableHtmlSanitizer && !isNullOrUndefined(item.tooltipText) ? SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText\n });\n if (!this.tbarEle) {\n this.tbarEle = [];\n }\n if (item.htmlAttributes) {\n this.setAttr(item.htmlAttributes, innerEle);\n }\n if (item.tooltipText) {\n innerEle.setAttribute('title', tempDom.textContent);\n }\n if (item.cssClass) {\n innerEle.className = innerEle.className + ' ' + item.cssClass;\n }\n if (item.template) {\n this.templateRender(item.template, innerEle, item, index);\n } else {\n switch (item.type) {\n case 'Button':\n dom = this.buttonRendering(item, innerEle);\n dom.setAttribute('tabindex', isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString());\n dom.setAttribute('data-tabindex', isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString());\n dom.setAttribute('aria-label', item.text || item.tooltipText);\n dom.setAttribute('aria-disabled', 'false');\n innerEle.appendChild(dom);\n innerEle.addEventListener('click', this.itemClick.bind(this));\n break;\n case 'Separator':\n this.add(innerEle, CLS_SEPARATOR);\n break;\n }\n }\n if (item.showTextOn) {\n var sTxt = item.showTextOn;\n if (sTxt === 'Toolbar') {\n this.add(innerEle, CLS_POPUPTEXT);\n this.add(innerEle, 'e-tbtn-align');\n } else if (sTxt === 'Overflow') {\n this.add(innerEle, CLS_TBARTEXT);\n }\n }\n if (item.overflow) {\n var overflow = item.overflow;\n if (overflow === 'Show') {\n this.add(innerEle, CLS_TBAROVERFLOW);\n } else if (overflow === 'Hide') {\n if (!innerEle.classList.contains(CLS_SEPARATOR)) {\n this.add(innerEle, CLS_POPOVERFLOW);\n }\n }\n }\n if (item.overflow !== 'Show' && item.showAlwaysInPopup && !innerEle.classList.contains(CLS_SEPARATOR)) {\n this.add(innerEle, CLS_POPPRI);\n this.popupPriCount++;\n }\n if (item.disabled) {\n this.add(innerEle, CLS_DISABLE$2);\n }\n if (item.visible === false) {\n this.add(innerEle, CLS_HIDDEN);\n }\n return innerEle;\n };\n Toolbar.prototype.getDataTabindex = function (ele) {\n return isNullOrUndefined(ele.getAttribute('data-tabindex')) ? '-1' : ele.getAttribute('data-tabindex');\n };\n Toolbar.prototype.itemClick = function (e) {\n this.activeEleSwitch(e.currentTarget);\n };\n Toolbar.prototype.activeEleSwitch = function (ele) {\n this.activeEleRemove(ele.firstElementChild);\n this.activeEle.focus();\n };\n Toolbar.prototype.activeEleRemove = function (curEle) {\n var previousEle = this.element.querySelector('.' + CLS_ITEM + ':not(.' + CLS_DISABLE$2 + ' ):not(.' + CLS_SEPARATOR + ' ):not(.' + CLS_HIDDEN + ' )');\n if (!isNullOrUndefined(this.activeEle)) {\n this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));\n if (previousEle) {\n previousEle.removeAttribute('tabindex');\n }\n previousEle = this.activeEle;\n }\n this.activeEle = curEle;\n if (this.getDataTabindex(this.activeEle) === '-1') {\n if (isNullOrUndefined(this.trgtEle) && !curEle.parentElement.classList.contains(CLS_TEMPLATE)) {\n if (!isNullOrUndefined(this.element.querySelector('.e-hor-nav')) && this.element.querySelector('.e-hor-nav').classList.contains('e-nav-active')) {\n this.updateTabIndex('0');\n var tabindexValue = this.getDataTabindex(previousEle) === '-1' ? '0' : this.getDataTabindex(previousEle);\n previousEle.setAttribute('tabindex', tabindexValue);\n } else {\n this.updateTabIndex('-1');\n }\n curEle.removeAttribute('tabindex');\n } else {\n var tabIndex = parseInt(this.getDataTabindex(this.activeEle), 10) + 1;\n this.activeEle.setAttribute('tabindex', tabIndex.toString());\n }\n }\n };\n Toolbar.prototype.getPersistData = function () {\n return this.addOnPersist([]);\n };\n /**\n * Returns the current module name.\n *\n * @returns {string} - Returns the module name as string.\n * @private\n */\n Toolbar.prototype.getModuleName = function () {\n return 'toolbar';\n };\n Toolbar.prototype.itemsRerender = function (newProp) {\n this.items = this.tbarItemsCol;\n if (this.isReact || this.isAngular) {\n this.clearTemplate();\n }\n this.destroyMode();\n this.destroyItems();\n this.items = newProp;\n this.tbarItemsCol = this.items;\n this.renderItems();\n this.renderOverflowMode();\n if (this.isReact) {\n this.renderReactTemplates();\n }\n };\n Toolbar.prototype.resize = function () {\n var ele = this.element;\n this.tbResize = true;\n if (this.tbarAlign) {\n this.itemPositioning();\n }\n if (this.popObj && this.overflowMode === 'Popup') {\n this.popObj.hide();\n }\n var checkOverflow = this.checkOverflow(ele, ele.getElementsByClassName(CLS_ITEMS)[0]);\n if (!checkOverflow) {\n this.destroyScroll();\n var multirowele = ele.querySelector('.' + CLS_ITEMS);\n if (!isNullOrUndefined(multirowele)) {\n this.remove(multirowele, CLS_MULTIROWPOS);\n if (this.tbarAlign) {\n this.add(multirowele, CLS_TBARPOS);\n }\n }\n }\n if (checkOverflow && this.scrollModule && this.offsetWid === ele.offsetWidth) {\n return;\n }\n if (this.offsetWid > ele.offsetWidth || checkOverflow) {\n this.renderOverflowMode();\n }\n if (this.popObj) {\n if (this.overflowMode === 'Extended') {\n this.popObj.width = this.getToolbarPopupWidth(this.element);\n }\n if (this.tbarAlign) {\n this.removePositioning();\n }\n this.popupRefresh(this.popObj.element, false);\n if (this.tbarAlign) {\n this.refreshPositioning();\n }\n }\n if (this.element.querySelector('.' + CLS_HSCROLLBAR$1)) {\n this.scrollStep = this.element.querySelector('.' + CLS_HSCROLLBAR$1).offsetWidth;\n }\n this.offsetWid = ele.offsetWidth;\n this.tbResize = false;\n this.separator();\n };\n Toolbar.prototype.orientationChange = function () {\n var _this = this;\n setTimeout(function () {\n _this.resize();\n }, 500);\n };\n Toolbar.prototype.extendedOpen = function () {\n var sib = this.element.querySelector('.' + CLS_EXTENDABLECLASS);\n if (this.overflowMode === 'Extended' && sib) {\n this.isExtendedOpen = sib.classList.contains(CLS_POPUPOPEN);\n }\n };\n Toolbar.prototype.updateHideEleTabIndex = function (ele, isHidden, isElement, eleIndex, innerItems) {\n if (isElement) {\n eleIndex = innerItems.indexOf(ele);\n }\n var nextEle = innerItems[++eleIndex];\n while (nextEle) {\n var skipEle = this.eleContains(nextEle);\n if (!skipEle) {\n var dataTabIndex = nextEle.firstElementChild.getAttribute('data-tabindex');\n if (isHidden && dataTabIndex === '-1') {\n nextEle.firstElementChild.setAttribute('tabindex', '0');\n } else if (dataTabIndex !== nextEle.firstElementChild.getAttribute('tabindex')) {\n nextEle.firstElementChild.setAttribute('tabindex', dataTabIndex);\n }\n break;\n }\n nextEle = innerItems[++eleIndex];\n }\n };\n Toolbar.prototype.clearToolbarTemplate = function (templateEle) {\n if (this.registeredTemplate && this.registeredTemplate[\"\" + 'template']) {\n var registeredTemplates = this.registeredTemplate;\n for (var index = 0; index < registeredTemplates[\"\" + 'template'].length; index++) {\n var registeredItem = registeredTemplates[\"\" + 'template'][parseInt(index.toString(), 10)].rootNodes[0];\n var closestItem = closest(registeredItem, '.' + CLS_ITEM);\n if (!isNullOrUndefined(closestItem) && closestItem === templateEle) {\n this.clearTemplate(['template'], [registeredTemplates[\"\" + 'template'][parseInt(index.toString(), 10)]]);\n break;\n }\n }\n } else if (this.portals && this.portals.length > 0) {\n var portals = this.portals;\n for (var index = 0; index < portals.length; index++) {\n var portalItem = portals[parseInt(index.toString(), 10)];\n var closestItem = closest(portalItem.containerInfo, '.' + CLS_ITEM);\n if (!isNullOrUndefined(closestItem) && closestItem === templateEle) {\n this.clearTemplate(['template'], index);\n break;\n }\n }\n }\n };\n /**\n * Gets called when the model property changes.The data that describes the old and new values of the property that changed.\n *\n * @param {ToolbarModel} newProp - It contains new value of the data.\n * @param {ToolbarModel} oldProp - It contains old value of the data.\n * @returns {void}\n * @private\n */\n Toolbar.prototype.onPropertyChanged = function (newProp, oldProp) {\n var tEle = this.element;\n this.extendedOpen();\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'items':\n if (!(newProp.items instanceof Array && oldProp.items instanceof Array)) {\n var changedProb = Object.keys(newProp.items);\n for (var i = 0; i < changedProb.length; i++) {\n var index = parseInt(Object.keys(newProp.items)[parseInt(i.toString(), 10)], 10);\n var property = Object.keys(newProp.items[parseInt(index.toString(), 10)])[0];\n var newProperty = Object(newProp.items[parseInt(index.toString(), 10)])[\"\" + property];\n if (this.tbarAlign || property === 'align') {\n this.refresh();\n this.trigger('created');\n break;\n }\n var popupPriCheck = property === 'showAlwaysInPopup' && !newProperty;\n var booleanCheck = property === 'overflow' && this.popupPriCount !== 0;\n if (popupPriCheck || this.items[parseInt(index.toString(), 10)].showAlwaysInPopup && booleanCheck) {\n --this.popupPriCount;\n }\n if (isNullOrUndefined(this.scrollModule)) {\n this.destroyMode();\n }\n var itemCol = [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, tEle));\n if (this.isReact && this.items[parseInt(index.toString(), 10)].template) {\n this.clearToolbarTemplate(itemCol[parseInt(index.toString(), 10)]);\n }\n detach(itemCol[parseInt(index.toString(), 10)]);\n this.tbarEle.splice(index, 1);\n this.addItems([this.items[parseInt(index.toString(), 10)]], index);\n this.items.splice(index, 1);\n if (this.items[parseInt(index.toString(), 10)].template) {\n this.tbarEle.splice(this.items.length, 1);\n }\n }\n } else {\n this.itemsRerender(newProp.items);\n }\n break;\n case 'width':\n setStyleAttribute(tEle, {\n 'width': formatUnit(newProp.width)\n });\n this.refreshOverflow();\n break;\n case 'height':\n setStyleAttribute(this.element, {\n 'height': formatUnit(newProp.height)\n });\n break;\n case 'overflowMode':\n this.destroyMode();\n this.renderOverflowMode();\n if (this.enableRtl) {\n this.add(tEle, CLS_RTL$2);\n }\n this.refreshOverflow();\n break;\n case 'enableRtl':\n if (newProp.enableRtl) {\n this.add(tEle, CLS_RTL$2);\n } else {\n this.remove(tEle, CLS_RTL$2);\n }\n if (!isNullOrUndefined(this.scrollModule)) {\n if (newProp.enableRtl) {\n this.add(this.scrollModule.element, CLS_RTL$2);\n } else {\n this.remove(this.scrollModule.element, CLS_RTL$2);\n }\n }\n if (!isNullOrUndefined(this.popObj)) {\n if (newProp.enableRtl) {\n this.add(this.popObj.element, CLS_RTL$2);\n } else {\n this.remove(this.popObj.element, CLS_RTL$2);\n }\n }\n if (this.tbarAlign) {\n this.itemPositioning();\n }\n break;\n case 'scrollStep':\n if (this.scrollModule) {\n this.scrollModule.scrollStep = this.scrollStep;\n }\n break;\n case 'enableCollision':\n if (this.popObj) {\n this.popObj.collision = {\n Y: this.enableCollision ? 'flip' : 'none'\n };\n }\n break;\n case 'cssClass':\n if (oldProp.cssClass) {\n removeClass([this.element], oldProp.cssClass.split(' '));\n }\n if (newProp.cssClass) {\n addClass([this.element], newProp.cssClass.split(' '));\n }\n break;\n case 'allowKeyboard':\n this.unwireKeyboardEvent();\n if (newProp.allowKeyboard) {\n this.wireKeyboardEvent();\n }\n break;\n }\n }\n };\n /**\n * Shows or hides the Toolbar item that is in the specified index.\n *\n * @param {number | HTMLElement} index - Index value of target item or DOM element of items to be hidden or shown.\n * @param {boolean} value - Based on this Boolean value, item will be hide (true) or show (false). By default, value is false.\n * @returns {void}.\n */\n Toolbar.prototype.hideItem = function (index, value) {\n var isElement = typeof index === 'object' ? true : false;\n var eleIndex = index;\n var ele;\n if (!isElement && isNullOrUndefined(eleIndex)) {\n return;\n }\n var innerItems = [].slice.call(selectAll('.' + CLS_ITEM, this.element));\n if (isElement) {\n ele = index;\n } else if (this.tbarEle[parseInt(eleIndex.toString(), 10)]) {\n var innerItems_1 = [].slice.call(selectAll('.' + CLS_ITEM, this.element));\n ele = innerItems_1[parseInt(eleIndex.toString(), 10)];\n }\n if (ele) {\n if (value) {\n ele.classList.add(CLS_HIDDEN);\n if (!ele.classList.contains(CLS_SEPARATOR)) {\n if (isNullOrUndefined(ele.firstElementChild.getAttribute('tabindex')) || ele.firstElementChild.getAttribute('tabindex') !== '-1') {\n this.updateHideEleTabIndex(ele, value, isElement, eleIndex, innerItems);\n }\n }\n } else {\n ele.classList.remove(CLS_HIDDEN);\n if (!ele.classList.contains(CLS_SEPARATOR)) {\n this.updateHideEleTabIndex(ele, value, isElement, eleIndex, innerItems);\n }\n }\n this.refreshOverflow();\n }\n };\n __decorate$3([Collection([], Item)], Toolbar.prototype, \"items\", void 0);\n __decorate$3([Property('auto')], Toolbar.prototype, \"width\", void 0);\n __decorate$3([Property('auto')], Toolbar.prototype, \"height\", void 0);\n __decorate$3([Property('')], Toolbar.prototype, \"cssClass\", void 0);\n __decorate$3([Property('Scrollable')], Toolbar.prototype, \"overflowMode\", void 0);\n __decorate$3([Property()], Toolbar.prototype, \"scrollStep\", void 0);\n __decorate$3([Property(true)], Toolbar.prototype, \"enableCollision\", void 0);\n __decorate$3([Property(true)], Toolbar.prototype, \"enableHtmlSanitizer\", void 0);\n __decorate$3([Property(true)], Toolbar.prototype, \"allowKeyboard\", void 0);\n __decorate$3([Event()], Toolbar.prototype, \"clicked\", void 0);\n __decorate$3([Event()], Toolbar.prototype, \"created\", void 0);\n __decorate$3([Event()], Toolbar.prototype, \"destroyed\", void 0);\n __decorate$3([Event()], Toolbar.prototype, \"beforeCreate\", void 0);\n Toolbar = __decorate$3([NotifyPropertyChanges], Toolbar);\n return Toolbar;\n}(Component);\nvar __extends$4 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 CLS_ACRDN_ROOT = 'e-acrdn-root';\nvar CLS_ROOT$2 = 'e-accordion';\nvar CLS_ITEM$1 = 'e-acrdn-item';\nvar CLS_ITEMFOCUS = 'e-item-focus';\nvar CLS_ITEMHIDE = 'e-hide';\nvar CLS_HEADER = 'e-acrdn-header';\nvar CLS_HEADERICN = 'e-acrdn-header-icon';\nvar CLS_HEADERCTN = 'e-acrdn-header-content';\nvar CLS_CONTENT = 'e-acrdn-panel';\nvar CLS_CTENT = 'e-acrdn-content';\nvar CLS_TOOGLEICN = 'e-toggle-icon';\nvar CLS_COLLAPSEICN = 'e-tgl-collapse-icon e-icons';\nvar CLS_EXPANDICN = 'e-expand-icon';\nvar CLS_RTL$3 = 'e-rtl';\nvar CLS_CTNHIDE = 'e-content-hide';\nvar CLS_SLCT = 'e-select';\nvar CLS_SLCTED = 'e-selected';\nvar CLS_ACTIVE = 'e-active';\nvar CLS_ANIMATE = 'e-animate';\nvar CLS_DISABLE$3 = 'e-overlay';\nvar CLS_TOGANIMATE = 'e-toggle-animation';\nvar CLS_NEST = 'e-nested';\nvar CLS_EXPANDSTATE = 'e-expand-state';\nvar CLS_CONTAINER = 'e-accordion-container';\n/**\n * Objects used for configuring the Accordion expanding item action properties.\n */\nvar AccordionActionSettings = /** @__PURE__ @class */function (_super) {\n __extends$4(AccordionActionSettings, _super);\n function AccordionActionSettings() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$4([Property('SlideDown')], AccordionActionSettings.prototype, \"effect\", void 0);\n __decorate$4([Property(400)], AccordionActionSettings.prototype, \"duration\", void 0);\n __decorate$4([Property('linear')], AccordionActionSettings.prototype, \"easing\", void 0);\n return AccordionActionSettings;\n}(ChildProperty);\n/**\n * Objects used for configuring the Accordion animation properties.\n */\nvar AccordionAnimationSettings = /** @__PURE__ @class */function (_super) {\n __extends$4(AccordionAnimationSettings, _super);\n function AccordionAnimationSettings() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$4([Complex({\n effect: 'SlideUp',\n duration: 400,\n easing: 'linear'\n }, AccordionActionSettings)], AccordionAnimationSettings.prototype, \"collapse\", void 0);\n __decorate$4([Complex({\n effect: 'SlideDown',\n duration: 400,\n easing: 'linear'\n }, AccordionActionSettings)], AccordionAnimationSettings.prototype, \"expand\", void 0);\n return AccordionAnimationSettings;\n}(ChildProperty);\n/**\n * An item object that is used to configure Accordion items.\n */\nvar AccordionItem = /** @__PURE__ @class */function (_super) {\n __extends$4(AccordionItem, _super);\n function AccordionItem() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$4([Property(null)], AccordionItem.prototype, \"content\", void 0);\n __decorate$4([Property(null)], AccordionItem.prototype, \"header\", void 0);\n __decorate$4([Property(null)], AccordionItem.prototype, \"cssClass\", void 0);\n __decorate$4([Property(null)], AccordionItem.prototype, \"iconCss\", void 0);\n __decorate$4([Property(false)], AccordionItem.prototype, \"expanded\", void 0);\n __decorate$4([Property(true)], AccordionItem.prototype, \"visible\", void 0);\n __decorate$4([Property(false)], AccordionItem.prototype, \"disabled\", void 0);\n __decorate$4([Property()], AccordionItem.prototype, \"id\", void 0);\n return AccordionItem;\n}(ChildProperty);\n/**\n * The Accordion is a vertically collapsible content panel that displays one or more panels at a time within the available space.\n * ```html\n *
\n * \n * ```\n */\nvar Accordion = /** @__PURE__ @class */function (_super) {\n __extends$4(Accordion, _super);\n /**\n * Initializes a new instance of the Accordion class.\n *\n * @param {AccordionModel} options - Specifies Accordion model properties as options.\n * @param {string | HTMLElement} element - Specifies the element that is rendered as an Accordion.\n */\n function Accordion(options, element) {\n var _this = _super.call(this, options, element) || this;\n /**\n * Contains the keyboard configuration of the Accordion.\n */\n _this.keyConfigs = {\n moveUp: 'uparrow',\n moveDown: 'downarrow',\n enter: 'enter',\n space: 'space',\n home: 'home',\n end: 'end'\n };\n return _this;\n }\n /**\n * Removes the control from the DOM and also removes all its related events.\n *\n * @returns {void}\n */\n Accordion.prototype.destroy = function () {\n if (this.isReact || this.isAngular || this.isVue) {\n this.clearTemplate();\n }\n var ele = this.element;\n _super.prototype.destroy.call(this);\n this.unWireEvents();\n this.isDestroy = true;\n this.restoreContent(null);\n [].slice.call(ele.children).forEach(function (el) {\n ele.removeChild(el);\n });\n if (this.trgtEle) {\n this.trgtEle = null;\n while (this.ctrlTem.firstElementChild) {\n ele.appendChild(this.ctrlTem.firstElementChild);\n }\n this.ctrlTem = null;\n }\n ele.classList.remove(CLS_ACRDN_ROOT);\n ele.removeAttribute('style');\n this.element.removeAttribute('data-ripple');\n if (!this.isNested && isRippleEnabled) {\n this.removeRippleEffect();\n }\n };\n Accordion.prototype.preRender = function () {\n var nested = closest(this.element, '.' + CLS_CONTENT);\n this.isNested = false;\n this.templateEle = [];\n if (!this.isDestroy) {\n this.isDestroy = false;\n }\n if (nested && nested.firstElementChild && nested.firstElementChild.firstElementChild) {\n if (nested.firstElementChild.firstElementChild.classList.contains(CLS_ROOT$2)) {\n nested.classList.add(CLS_NEST);\n this.isNested = true;\n }\n } else {\n this.element.classList.add(CLS_ACRDN_ROOT);\n }\n if (this.enableRtl) {\n this.add(this.element, CLS_RTL$3);\n }\n };\n Accordion.prototype.add = function (ele, val) {\n ele.classList.add(val);\n };\n Accordion.prototype.remove = function (ele, val) {\n ele.classList.remove(val);\n };\n /**\n * To initialize the control rendering\n *\n * @private\n * @returns {void}\n */\n Accordion.prototype.render = function () {\n this.initializeHeaderTemplate();\n this.initializeItemTemplate();\n this.initialize();\n this.renderControl();\n this.wireEvents();\n this.renderComplete();\n };\n Accordion.prototype.initialize = function () {\n var width = formatUnit(this.width);\n var height = formatUnit(this.height);\n setStyleAttribute(this.element, {\n 'width': width,\n 'height': height\n });\n if (isNullOrUndefined(this.initExpand)) {\n this.initExpand = [];\n }\n if (!isNullOrUndefined(this.expandedIndices) && this.expandedIndices.length > 0) {\n this.initExpand = this.expandedIndices;\n }\n };\n Accordion.prototype.renderControl = function () {\n this.trgtEle = this.element.children.length > 0 ? select('div', this.element) : null;\n this.renderItems();\n this.initItemExpand();\n };\n Accordion.prototype.wireFocusEvents = function () {\n var acrdItem = [].slice.call(this.element.querySelectorAll('.' + CLS_ITEM$1));\n for (var _i = 0, acrdItem_1 = acrdItem; _i < acrdItem_1.length; _i++) {\n var item = acrdItem_1[_i];\n var headerEle = item.querySelector('.' + CLS_HEADER);\n if (item.childElementCount > 0 && headerEle) {\n EventHandler.clearEvents(headerEle);\n EventHandler.add(headerEle, 'focus', this.focusIn, this);\n EventHandler.add(headerEle, 'blur', this.focusOut, this);\n }\n }\n };\n Accordion.prototype.unWireEvents = function () {\n EventHandler.remove(this.element, 'click', this.clickHandler);\n if (!isNullOrUndefined(this.keyModule)) {\n this.keyModule.destroy();\n }\n };\n Accordion.prototype.wireEvents = function () {\n EventHandler.add(this.element, 'click', this.clickHandler, this);\n if (!this.isNested && !this.isDestroy) {\n this.removeRippleEffect = rippleEffect(this.element, {\n selector: '.' + CLS_HEADER\n });\n }\n if (!this.isNested) {\n this.keyModule = new KeyboardEvents(this.element, {\n keyAction: this.keyActionHandler.bind(this),\n keyConfigs: this.keyConfigs,\n eventName: 'keydown'\n });\n }\n };\n Accordion.prototype.templateParser = function (template) {\n if (template) {\n try {\n if (typeof template !== 'function' && document.querySelectorAll(template).length) {\n return compile(document.querySelector(template).innerHTML.trim());\n } else {\n return compile(template);\n }\n } catch (error) {\n return compile(template);\n }\n }\n return undefined;\n };\n Accordion.prototype.initializeHeaderTemplate = function () {\n if (this.headerTemplate) {\n this.headerTemplateFn = this.templateParser(this.headerTemplate);\n }\n };\n Accordion.prototype.initializeItemTemplate = function () {\n if (this.itemTemplate) {\n this.itemTemplateFn = this.templateParser(this.itemTemplate);\n }\n };\n Accordion.prototype.getHeaderTemplate = function () {\n return this.headerTemplateFn;\n };\n Accordion.prototype.getItemTemplate = function () {\n return this.itemTemplateFn;\n };\n Accordion.prototype.focusIn = function (e) {\n e.target.parentElement.classList.add(CLS_ITEMFOCUS);\n };\n Accordion.prototype.focusOut = function (e) {\n e.target.parentElement.classList.remove(CLS_ITEMFOCUS);\n };\n Accordion.prototype.ctrlTemplate = function () {\n this.ctrlTem = this.element.cloneNode(true);\n var innerEles;\n var rootEle = select('.' + CLS_CONTAINER, this.element);\n if (rootEle) {\n innerEles = rootEle.children;\n } else {\n innerEles = this.element.children;\n }\n var items = [];\n [].slice.call(innerEles).forEach(function (el) {\n items.push({\n header: el.childElementCount > 0 && el.children[0] ? el.children[0] : '',\n content: el.childElementCount > 1 && el.children[1] ? el.children[1] : ''\n });\n el.parentNode.removeChild(el);\n });\n if (rootEle) {\n this.element.removeChild(rootEle);\n }\n this.setProperties({\n items: items\n }, true);\n };\n Accordion.prototype.toggleIconGenerate = function () {\n var tglIcon = this.createElement('div', {\n className: CLS_TOOGLEICN\n });\n var hdrColIcon = this.createElement('span', {\n className: CLS_COLLAPSEICN\n });\n tglIcon.appendChild(hdrColIcon);\n return tglIcon;\n };\n Accordion.prototype.initItemExpand = function () {\n var len = this.initExpand.length;\n if (len === 0) {\n return;\n }\n if (this.expandMode === 'Single') {\n this.expandItem(true, this.initExpand[len - 1]);\n } else {\n for (var i = 0; i < len; i++) {\n this.expandItem(true, this.initExpand[parseInt(i.toString(), 10)]);\n }\n }\n if (this.isReact) {\n this.renderReactTemplates();\n }\n };\n Accordion.prototype.renderItems = function () {\n var _this = this;\n var ele = this.element;\n var innerItem;\n var innerDataSourceItem;\n if (!isNullOrUndefined(this.trgtEle)) {\n this.ctrlTemplate();\n }\n if (!isNullOrUndefined(this.dataSource) && this.dataSource.length > 0) {\n this.dataSource.forEach(function (item, index) {\n innerDataSourceItem = _this.renderInnerItem(item, index);\n ele.appendChild(innerDataSourceItem);\n if (innerDataSourceItem.childElementCount > 0) {\n EventHandler.add(innerDataSourceItem.querySelector('.' + CLS_HEADER), 'focus', _this.focusIn, _this);\n EventHandler.add(innerDataSourceItem.querySelector('.' + CLS_HEADER), 'blur', _this.focusOut, _this);\n }\n });\n } else {\n var items = this.items;\n if (ele && items.length > 0) {\n items.forEach(function (item, index) {\n innerItem = _this.renderInnerItem(item, index);\n ele.appendChild(innerItem);\n if (innerItem.childElementCount > 0) {\n EventHandler.add(innerItem.querySelector('.' + CLS_HEADER), 'focus', _this.focusIn, _this);\n EventHandler.add(innerItem.querySelector('.' + CLS_HEADER), 'blur', _this.focusOut, _this);\n }\n });\n }\n }\n if (this.isReact) {\n this.renderReactTemplates();\n }\n };\n Accordion.prototype.clickHandler = function (e) {\n var trgt = e.target;\n var items = this.getItems();\n var eventArgs = {};\n var tglIcon;\n var acrdEle = closest(trgt, '.' + CLS_ROOT$2);\n if (acrdEle !== this.element) {\n return;\n }\n trgt.classList.add('e-target');\n var acrdnItem = closest(trgt, '.' + CLS_ITEM$1);\n var acrdnHdr = closest(trgt, '.' + CLS_HEADER);\n var acrdnCtn = closest(trgt, '.' + CLS_CONTENT);\n if (acrdnItem && (isNullOrUndefined(acrdnHdr) || isNullOrUndefined(acrdnCtn))) {\n acrdnHdr = acrdnItem.children[0];\n acrdnCtn = acrdnItem.children[1];\n }\n if (acrdnHdr) {\n tglIcon = select('.' + CLS_TOOGLEICN, acrdnHdr);\n }\n var acrdnCtnItem;\n if (acrdnHdr) {\n acrdnCtnItem = closest(acrdnHdr, '.' + CLS_ITEM$1);\n } else if (acrdnCtn) {\n acrdnCtnItem = closest(acrdnCtn, '.' + CLS_ITEM$1);\n }\n var index = this.getIndexByItem(acrdnItem);\n if (acrdnCtnItem) {\n eventArgs.item = items[this.getIndexByItem(acrdnCtnItem)];\n }\n eventArgs.originalEvent = e;\n var ctnCheck = !isNullOrUndefined(tglIcon) && acrdnItem.childElementCount <= 1;\n if (ctnCheck && (isNullOrUndefined(acrdnCtn) || !isNullOrUndefined(select('.' + CLS_HEADER + ' .' + CLS_TOOGLEICN, acrdnCtnItem)))) {\n acrdnItem.appendChild(this.contentRendering(index));\n this.ariaAttrUpdate(acrdnItem);\n this.afterContentRender(trgt, eventArgs, acrdnItem, acrdnHdr, acrdnCtn, acrdnCtnItem);\n } else {\n this.afterContentRender(trgt, eventArgs, acrdnItem, acrdnHdr, acrdnCtn, acrdnCtnItem);\n }\n if (this.isReact) {\n this.renderReactTemplates();\n }\n };\n Accordion.prototype.afterContentRender = function (trgt, eventArgs, acrdnItem, acrdnHdr, acrdnCtn, acrdnCtnItem) {\n var _this = this;\n var acrdActive = [];\n this.trigger('clicked', eventArgs);\n var cntclkCheck = acrdnCtn && !isNullOrUndefined(select('.e-target', acrdnCtn));\n var inlineAcrdnSel = '.' + CLS_CONTENT + ' .' + CLS_ROOT$2;\n var inlineEleAcrdn = acrdnCtn && !isNullOrUndefined(select('.' + CLS_ROOT$2, acrdnCtn)) && isNullOrUndefined(closest(trgt, inlineAcrdnSel));\n var nestContCheck = acrdnCtn && isNullOrUndefined(select('.' + CLS_ROOT$2, acrdnCtn)) || !(closest(trgt, '.' + CLS_ROOT$2) === this.element);\n cntclkCheck = cntclkCheck && (inlineEleAcrdn || nestContCheck);\n trgt.classList.remove('e-target');\n if (trgt.classList.contains(CLS_CONTENT) || trgt.classList.contains(CLS_CTENT) || cntclkCheck) {\n return;\n }\n var acrdcontainer = this.element.querySelector('.' + CLS_CONTAINER);\n var acrdnchild = acrdcontainer ? acrdcontainer.children : this.element.children;\n [].slice.call(acrdnchild).forEach(function (el) {\n if (el.classList.contains(CLS_ACTIVE)) {\n acrdActive.push(el);\n }\n });\n var acrdAniEle = [].slice.call(this.element.querySelectorAll('.' + CLS_ITEM$1 + ' [' + CLS_ANIMATE + ']'));\n if (acrdAniEle.length > 0) {\n for (var _i = 0, acrdAniEle_1 = acrdAniEle; _i < acrdAniEle_1.length; _i++) {\n var el = acrdAniEle_1[_i];\n acrdActive.push(el.parentElement);\n }\n }\n var sameContentCheck = acrdActive.indexOf(acrdnCtnItem) !== -1 && acrdnCtn.getAttribute('e-animate') === 'true';\n var sameHeader = false;\n if (!isNullOrUndefined(acrdnItem) && !isNullOrUndefined(acrdnHdr)) {\n var acrdnCtn_1 = select('.' + CLS_CONTENT, acrdnItem);\n var acrdnRoot = closest(acrdnItem, '.' + CLS_ACRDN_ROOT);\n var expandState = acrdnRoot.querySelector('.' + CLS_EXPANDSTATE);\n if (isNullOrUndefined(acrdnCtn_1)) {\n return;\n }\n sameHeader = expandState === acrdnItem;\n if (isVisible(acrdnCtn_1) && (!sameContentCheck || acrdnCtnItem.classList.contains(CLS_SLCTED))) {\n this.collapse(acrdnCtn_1);\n } else {\n if (acrdActive.length > 0 && this.expandMode === 'Single' && !sameContentCheck) {\n acrdActive.forEach(function (el) {\n _this.collapse(select('.' + CLS_CONTENT, el));\n el.classList.remove(CLS_EXPANDSTATE);\n });\n }\n this.expand(acrdnCtn_1);\n }\n if (!isNullOrUndefined(expandState) && !sameHeader) {\n expandState.classList.remove(CLS_EXPANDSTATE);\n }\n }\n };\n Accordion.prototype.eleMoveFocus = function (action, root, trgt) {\n var clst;\n var clstItem = closest(trgt, '.' + CLS_ITEM$1);\n if (trgt === root) {\n clst = (action === 'moveUp' ? trgt.lastElementChild : trgt).querySelector('.' + CLS_HEADER);\n } else if (trgt.classList.contains(CLS_HEADER)) {\n clstItem = action === 'moveUp' ? clstItem.previousElementSibling : clstItem.nextElementSibling;\n if (clstItem) {\n clst = select('.' + CLS_HEADER, clstItem);\n }\n }\n if (clst) {\n clst.focus();\n }\n };\n Accordion.prototype.keyActionHandler = function (e) {\n var trgt = e.target;\n var header = closest(e.target, CLS_HEADER);\n if (isNullOrUndefined(header) && !trgt.classList.contains(CLS_ROOT$2) && !trgt.classList.contains(CLS_HEADER)) {\n return;\n }\n var clst;\n var root = this.element;\n var content;\n switch (e.action) {\n case 'moveUp':\n this.eleMoveFocus(e.action, root, trgt);\n break;\n case 'moveDown':\n this.eleMoveFocus(e.action, root, trgt);\n break;\n case 'space':\n case 'enter':\n content = trgt.nextElementSibling;\n if (!isNullOrUndefined(content) && content.classList.contains(CLS_CONTENT)) {\n if (content.getAttribute('e-animate') !== 'true') {\n trgt.click();\n }\n } else {\n trgt.click();\n }\n e.preventDefault();\n break;\n case 'home':\n case 'end':\n clst = e.action === 'home' ? root.firstElementChild.children[0] : root.lastElementChild.children[0];\n clst.focus();\n e.preventDefault();\n break;\n }\n };\n Accordion.prototype.headerEleGenerate = function () {\n var header = this.createElement('div', {\n className: CLS_HEADER,\n id: getUniqueID('acrdn_header')\n });\n var ariaAttr = {\n 'tabindex': '0',\n 'role': 'button',\n 'aria-disabled': 'false',\n 'aria-expanded': 'false'\n };\n attributes(header, ariaAttr);\n return header;\n };\n Accordion.prototype.renderInnerItem = function (item, index) {\n var innerEle = this.createElement('div', {\n className: CLS_ITEM$1,\n id: item.id || getUniqueID('acrdn_item')\n });\n if (this.headerTemplate) {\n var ctnEle = this.headerEleGenerate();\n var hdrEle = this.createElement('div', {\n className: CLS_HEADERCTN\n });\n ctnEle.appendChild(hdrEle);\n append(this.getHeaderTemplate()(item, this, 'headerTemplate', this.element.id + '_headerTemplate', false), hdrEle);\n innerEle.appendChild(ctnEle);\n ctnEle.appendChild(this.toggleIconGenerate());\n this.add(innerEle, CLS_SLCT);\n return innerEle;\n }\n if (item.header && this.angularnativeCondiCheck(item, 'header')) {\n var header = item.header;\n if (this.enableHtmlSanitizer && typeof item.header === 'string') {\n header = SanitizeHtmlHelper.sanitize(item.header);\n }\n var ctnEle = this.headerEleGenerate();\n var hdrEle = this.createElement('div', {\n className: CLS_HEADERCTN\n });\n ctnEle.appendChild(hdrEle);\n ctnEle.appendChild(this.fetchElement(hdrEle, header, index));\n innerEle.appendChild(ctnEle);\n }\n var hdr = select('.' + CLS_HEADER, innerEle);\n if (item.expanded && !isNullOrUndefined(index) && !this.enablePersistence) {\n if (this.initExpand.indexOf(index) === -1) {\n this.initExpand.push(index);\n }\n }\n if (item.cssClass) {\n addClass([innerEle], item.cssClass.split(' '));\n }\n if (item.disabled) {\n addClass([innerEle], CLS_DISABLE$3);\n }\n if (item.visible === false) {\n addClass([innerEle], CLS_ITEMHIDE);\n }\n if (item.iconCss) {\n var hdrIcnEle = this.createElement('div', {\n className: CLS_HEADERICN\n });\n var icon = this.createElement('span', {\n className: item.iconCss + ' e-icons'\n });\n hdrIcnEle.appendChild(icon);\n if (isNullOrUndefined(hdr)) {\n hdr = this.headerEleGenerate();\n hdr.appendChild(hdrIcnEle);\n innerEle.appendChild(hdr);\n } else {\n hdr.insertBefore(hdrIcnEle, hdr.childNodes[0]);\n }\n }\n if (item.content && this.angularnativeCondiCheck(item, 'content')) {\n var hdrIcon = this.toggleIconGenerate();\n if (isNullOrUndefined(hdr)) {\n hdr = this.headerEleGenerate();\n innerEle.appendChild(hdr);\n }\n hdr.appendChild(hdrIcon);\n this.add(innerEle, CLS_SLCT);\n }\n return innerEle;\n };\n Accordion.prototype.angularnativeCondiCheck = function (item, prop) {\n var property = prop === 'content' ? item.content : item.header;\n var content = property;\n if (this.isAngular && !isNullOrUndefined(content.elementRef)) {\n var data = content.elementRef.nativeElement.data;\n if (isNullOrUndefined(data) || data === '' || data.indexOf('bindings=') === -1) {\n return true;\n }\n var parseddata = JSON.parse(content.elementRef.nativeElement.data.replace('bindings=', ''));\n if (!isNullOrUndefined(parseddata) && parseddata['ng-reflect-ng-if'] === 'false') {\n return false;\n } else {\n return true;\n }\n } else {\n return true;\n }\n };\n Accordion.prototype.fetchElement = function (ele, value, index) {\n var templateFn;\n var temString;\n try {\n if (document.querySelectorAll(value).length && value !== 'Button') {\n var eleVal = document.querySelector(value);\n temString = eleVal.outerHTML.trim();\n ele.appendChild(eleVal);\n eleVal.style.display = '';\n } else {\n templateFn = compile(value);\n }\n } catch (e) {\n if (typeof value === 'string') {\n ele.innerHTML = this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(value) : value;\n } else if (value instanceof HTMLElement) {\n ele.appendChild(value);\n if (this.trgtEle) {\n ele.firstElementChild.style.display = '';\n }\n } else {\n templateFn = compile(value);\n }\n }\n var tempArray;\n if (!isNullOrUndefined(templateFn)) {\n if (this.isReact) {\n this.renderReactTemplates();\n }\n var templateProps = void 0;\n var templateName = void 0;\n if (ele.classList.contains(CLS_HEADERCTN)) {\n templateProps = this.element.id + index + '_header';\n templateName = 'header';\n } else if (ele.classList.contains(CLS_CTENT)) {\n templateProps = this.element.id + index + '_content';\n templateName = 'content';\n }\n tempArray = templateFn({}, this, templateName, templateProps, this.isStringTemplate);\n }\n if (!isNullOrUndefined(tempArray) && tempArray.length > 0 && !(isNullOrUndefined(tempArray[0].tagName) && tempArray.length === 1)) {\n [].slice.call(tempArray).forEach(function (el) {\n if (!isNullOrUndefined(el.tagName)) {\n el.style.display = '';\n }\n ele.appendChild(el);\n });\n } else if (ele.childElementCount === 0) {\n ele.innerHTML = this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(value) : value;\n }\n if (!isNullOrUndefined(temString)) {\n if (this.templateEle.indexOf(value) === -1) {\n this.templateEle.push(value);\n }\n }\n return ele;\n };\n Accordion.prototype.ariaAttrUpdate = function (itemEle) {\n var header = select('.' + CLS_HEADER, itemEle);\n var content = select('.' + CLS_CONTENT, itemEle);\n header.setAttribute('aria-controls', content.id);\n content.setAttribute('aria-labelledby', header.id);\n content.setAttribute('role', 'region');\n };\n Accordion.prototype.contentRendering = function (index) {\n var itemcnt = this.createElement('div', {\n className: CLS_CONTENT + ' ' + CLS_CTNHIDE,\n id: getUniqueID('acrdn_panel')\n });\n attributes(itemcnt, {\n 'aria-hidden': 'true'\n });\n var ctn = this.createElement('div', {\n className: CLS_CTENT\n });\n if (!isNullOrUndefined(this.dataSource) && this.dataSource.length > 0) {\n if (this.isReact) {\n this.renderReactTemplates();\n }\n append(this.getItemTemplate()(this.dataSource[parseInt(index.toString(), 10)], this, 'itemTemplate', this.element.id + '_itemTemplate', false), ctn);\n itemcnt.appendChild(ctn);\n } else {\n var content = this.items[parseInt(index.toString(), 10)].content;\n if (this.enableHtmlSanitizer && typeof content === 'string') {\n content = SanitizeHtmlHelper.sanitize(content);\n }\n itemcnt.appendChild(this.fetchElement(ctn, content, index));\n }\n return itemcnt;\n };\n Accordion.prototype.expand = function (trgt) {\n var _this = this;\n var items = this.getItems();\n var trgtItemEle = closest(trgt, '.' + CLS_ITEM$1);\n if (isNullOrUndefined(trgt) || isVisible(trgt) && trgt.getAttribute('e-animate') !== 'true' || trgtItemEle.classList.contains(CLS_DISABLE$3)) {\n return;\n }\n var acrdnRoot = closest(trgtItemEle, '.' + CLS_ACRDN_ROOT);\n var expandState = acrdnRoot.querySelector('.' + CLS_EXPANDSTATE);\n var animation = {\n name: this.animation.expand.effect,\n duration: this.animation.expand.duration,\n timingFunction: this.animation.expand.easing\n };\n var icon = select('.' + CLS_TOOGLEICN, trgtItemEle).firstElementChild;\n var eventArgs = {\n element: trgtItemEle,\n item: items[this.getIndexByItem(trgtItemEle)],\n index: this.getIndexByItem(trgtItemEle),\n content: trgtItemEle.querySelector('.' + CLS_CONTENT),\n isExpanded: true\n };\n this.trigger('expanding', eventArgs, function (expandArgs) {\n if (!expandArgs.cancel) {\n icon.classList.add(CLS_TOGANIMATE);\n _this.expandedItemsPush(trgtItemEle);\n if (!isNullOrUndefined(expandState)) {\n expandState.classList.remove(CLS_EXPANDSTATE);\n }\n trgtItemEle.classList.add(CLS_EXPANDSTATE);\n if (animation.name === 'None' && animationMode !== 'Enable' || animationMode === 'Disable') {\n _this.expandProgress('begin', icon, trgt, trgtItemEle, expandArgs);\n _this.expandProgress('end', icon, trgt, trgtItemEle, expandArgs);\n } else {\n _this.expandAnimation(animation.name, icon, trgt, trgtItemEle, animation, expandArgs);\n }\n }\n });\n };\n Accordion.prototype.expandAnimation = function (ef, icn, trgt, trgtItemEle, animate, args) {\n var _this = this;\n if (ef === 'None' && animationMode === 'Enable') {\n ef = 'SlideDown';\n animate.name = 'SlideDown';\n }\n var height;\n this.lastActiveItemId = trgtItemEle.id;\n if (ef === 'SlideDown') {\n animate.begin = function () {\n _this.expandProgress('begin', icn, trgt, trgtItemEle, args);\n trgt.style.position = 'absolute';\n height = trgtItemEle.offsetHeight;\n trgt.style.maxHeight = trgt.offsetHeight + 'px';\n trgtItemEle.style.maxHeight = '';\n };\n animate.progress = function () {\n trgtItemEle.style.minHeight = height + trgt.offsetHeight + 'px';\n };\n animate.end = function () {\n setStyleAttribute(trgt, {\n 'position': '',\n 'maxHeight': ''\n });\n trgtItemEle.style.minHeight = '';\n _this.expandProgress('end', icn, trgt, trgtItemEle, args);\n };\n } else {\n animate.begin = function () {\n _this.expandProgress('begin', icn, trgt, trgtItemEle, args);\n };\n animate.end = function () {\n _this.expandProgress('end', icn, trgt, trgtItemEle, args);\n };\n }\n new Animation(animate).animate(trgt);\n };\n Accordion.prototype.expandProgress = function (progress, icon, trgt, trgtItemEle, eventArgs) {\n this.remove(trgt, CLS_CTNHIDE);\n this.add(trgtItemEle, CLS_SLCTED);\n this.add(icon, CLS_EXPANDICN);\n if (progress === 'end') {\n this.add(trgtItemEle, CLS_ACTIVE);\n trgt.setAttribute('aria-hidden', 'false');\n attributes(trgt.previousElementSibling, {\n 'aria-expanded': 'true'\n });\n icon.classList.remove(CLS_TOGANIMATE);\n this.trigger('expanded', eventArgs);\n }\n };\n Accordion.prototype.expandedItemsPush = function (item) {\n var index = this.getIndexByItem(item);\n if (this.expandedIndices.indexOf(index) === -1) {\n var temp = [].slice.call(this.expandedIndices);\n temp.push(index);\n this.setProperties({\n expandedIndices: temp\n }, true);\n }\n };\n Accordion.prototype.getIndexByItem = function (item) {\n var itemEle = this.getItemElements();\n return [].slice.call(itemEle).indexOf(item);\n };\n Accordion.prototype.getItemElements = function () {\n var itemEle = [];\n var itemCollection = this.element.children;\n [].slice.call(itemCollection).forEach(function (el) {\n if (el.classList.contains(CLS_ITEM$1)) {\n itemEle.push(el);\n }\n });\n return itemEle;\n };\n Accordion.prototype.expandedItemsPop = function (item) {\n var index = this.getIndexByItem(item);\n var temp = [].slice.call(this.expandedIndices);\n temp.splice(temp.indexOf(index), 1);\n this.setProperties({\n expandedIndices: temp\n }, true);\n };\n Accordion.prototype.collapse = function (trgt) {\n var _this = this;\n var items = this.getItems();\n var trgtItemEle = closest(trgt, '.' + CLS_ITEM$1);\n if (isNullOrUndefined(trgt) || !isVisible(trgt) || trgtItemEle.classList.contains(CLS_DISABLE$3)) {\n return;\n }\n var animation = {\n name: this.animation.collapse.effect,\n duration: this.animation.collapse.duration,\n timingFunction: this.animation.collapse.easing\n };\n var icon = select('.' + CLS_TOOGLEICN, trgtItemEle).firstElementChild;\n var eventArgs = {\n element: trgtItemEle,\n item: items[this.getIndexByItem(trgtItemEle)],\n index: this.getIndexByItem(trgtItemEle),\n content: trgtItemEle.querySelector('.' + CLS_CONTENT),\n isExpanded: false\n };\n this.trigger('expanding', eventArgs, function (expandArgs) {\n if (!expandArgs.cancel) {\n _this.expandedItemsPop(trgtItemEle);\n trgtItemEle.classList.remove(CLS_EXPANDSTATE);\n icon.classList.add(CLS_TOGANIMATE);\n if (animation.name === 'None' && animationMode !== 'Enable' || animationMode === 'Disable') {\n _this.collapseProgress('begin', icon, trgt, trgtItemEle, expandArgs);\n _this.collapseProgress('end', icon, trgt, trgtItemEle, expandArgs);\n } else {\n _this.collapseAnimation(animation.name, trgt, trgtItemEle, icon, animation, expandArgs);\n }\n }\n });\n };\n Accordion.prototype.collapseAnimation = function (ef, trgt, trgtItEl, icn, animate, args) {\n var _this = this;\n if (ef === 'None' && animationMode === 'Enable') {\n ef = 'SlideUp';\n animate.name = 'SlideUp';\n }\n var height;\n var trgtHeight;\n var itemHeight;\n var remain;\n this.lastActiveItemId = trgtItEl.id;\n if (ef === 'SlideUp') {\n animate.begin = function () {\n itemHeight = trgtItEl.offsetHeight;\n trgtItEl.style.minHeight = itemHeight + 'px';\n trgt.style.position = 'absolute';\n height = trgtItEl.offsetHeight;\n trgtHeight = trgt.offsetHeight;\n trgt.style.maxHeight = trgtHeight + 'px';\n _this.collapseProgress('begin', icn, trgt, trgtItEl, args);\n };\n animate.progress = function () {\n remain = height - (trgtHeight - trgt.offsetHeight);\n if (remain < itemHeight) {\n trgtItEl.style.minHeight = remain + 'px';\n }\n };\n animate.end = function () {\n trgt.style.display = 'none';\n _this.collapseProgress('end', icn, trgt, trgtItEl, args);\n trgtItEl.style.minHeight = '';\n setStyleAttribute(trgt, {\n 'position': '',\n 'maxHeight': '',\n 'display': ''\n });\n };\n } else {\n animate.begin = function () {\n _this.collapseProgress('begin', icn, trgt, trgtItEl, args);\n };\n animate.end = function () {\n _this.collapseProgress('end', icn, trgt, trgtItEl, args);\n };\n }\n new Animation(animate).animate(trgt);\n };\n Accordion.prototype.collapseProgress = function (progress, icon, trgt, trgtItemEle, eventArgs) {\n this.remove(icon, CLS_EXPANDICN);\n this.remove(trgtItemEle, CLS_SLCTED);\n if (progress === 'end') {\n this.add(trgt, CLS_CTNHIDE);\n icon.classList.remove(CLS_TOGANIMATE);\n this.remove(trgtItemEle, CLS_ACTIVE);\n trgt.setAttribute('aria-hidden', 'true');\n attributes(trgt.previousElementSibling, {\n 'aria-expanded': 'false'\n });\n this.trigger('expanded', eventArgs);\n }\n };\n /**\n * Returns the current module name.\n *\n * @returns {string} - It returns the current module name.\n * @private\n */\n Accordion.prototype.getModuleName = function () {\n return 'accordion';\n };\n Accordion.prototype.getItems = function () {\n var items;\n if (this.itemTemplate && this.headerTemplate) {\n items = this.dataSource;\n } else {\n items = this.items;\n }\n return items;\n };\n /**\n * Adds new item to the Accordion with the specified index of the Accordion.\n *\n * @param {AccordionItemModel | AccordionItemModel[] | Object | Object[]} item - Item array that is to be added to the Accordion.\n * @param {number} index - Number value that determines where the item should be added.\n * By default, item is added at the last index if the index is not specified.\n * @returns {void}\n */\n Accordion.prototype.addItem = function (item, index) {\n var _this = this;\n var ele = this.element;\n var itemEle = this.getItemElements();\n var items = this.getItems();\n if (isNullOrUndefined(index)) {\n index = items.length;\n }\n if (ele.childElementCount >= index) {\n var addItems = item instanceof Array ? item : [item];\n addItems.forEach(function (addItem, i) {\n var itemIndex = index + i;\n items.splice(itemIndex, 0, addItem);\n var innerItemEle = _this.renderInnerItem(addItem, itemIndex);\n if (ele.childElementCount === itemIndex) {\n ele.appendChild(innerItemEle);\n } else {\n ele.insertBefore(innerItemEle, itemEle[parseInt(itemIndex.toString(), 10)]);\n }\n EventHandler.add(innerItemEle.querySelector('.' + CLS_HEADER), 'focus', _this.focusIn, _this);\n EventHandler.add(innerItemEle.querySelector('.' + CLS_HEADER), 'blur', _this.focusOut, _this);\n _this.expandedIndices = [];\n _this.expandedItemRefresh();\n if (addItem && addItem.expanded) {\n _this.expandItem(true, itemIndex);\n }\n });\n }\n if (this.isReact) {\n this.renderReactTemplates();\n }\n };\n Accordion.prototype.expandedItemRefresh = function () {\n var _this = this;\n var itemEle = this.getItemElements();\n [].slice.call(itemEle).forEach(function (el) {\n if (el.classList.contains(CLS_SLCTED)) {\n _this.expandedItemsPush(el);\n }\n });\n };\n /**\n * Dynamically removes item from Accordion.\n *\n * @param {number} index - Number value that determines which item should be removed.\n * @returns {void}.\n */\n Accordion.prototype.removeItem = function (index) {\n if (this.isReact || this.isAngular) {\n var item = selectAll('.' + CLS_ITEM$1, this.element)[parseInt(index.toString(), 10)];\n var header = select('.' + CLS_HEADERCTN, item);\n var content = select('.' + CLS_CTENT, item);\n this.clearAccordionTemplate(header, this.dataSource.length > 0 ? 'headerTemplate' : 'header', CLS_HEADERCTN);\n this.clearAccordionTemplate(content, this.dataSource.length > 0 ? 'itemTemplate' : 'content', CLS_CTENT);\n }\n var itemEle = this.getItemElements();\n var ele = itemEle[parseInt(index.toString(), 10)];\n var items = this.getItems();\n if (isNullOrUndefined(ele)) {\n return;\n }\n this.restoreContent(index);\n detach(ele);\n items.splice(index, 1);\n this.expandedIndices = [];\n this.expandedItemRefresh();\n };\n /**\n * Sets focus to the specified index item header in Accordion.\n *\n * @param {number} index - Number value that determines which item should be focused.\n * @returns {void}.\n */\n Accordion.prototype.select = function (index) {\n var itemEle = this.getItemElements();\n var ele = itemEle[parseInt(index.toString(), 10)];\n if (isNullOrUndefined(ele) || isNullOrUndefined(select('.' + CLS_HEADER, ele))) {\n return;\n }\n ele.children[0].focus();\n };\n /**\n * Shows or hides the specified item from Accordion.\n *\n * @param {number} index - Number value that determines which item should be hidden/shown.\n * @param {boolean} isHidden - Boolean value that determines the action either hide (true) or show (false). Default value is false.\n * If the `isHidden` value is false, the item is shown or else item it is hidden.\n * @returns {void}.\n */\n Accordion.prototype.hideItem = function (index, isHidden) {\n var itemEle = this.getItemElements();\n var ele = itemEle[parseInt(index.toString(), 10)];\n if (isNullOrUndefined(ele)) {\n return;\n }\n if (isNullOrUndefined(isHidden)) {\n isHidden = true;\n }\n if (isHidden) {\n this.add(ele, CLS_ITEMHIDE);\n } else {\n this.remove(ele, CLS_ITEMHIDE);\n }\n };\n /**\n * Enables/Disables the specified Accordion item.\n *\n * @param {number} index - Number value that determines which item should be enabled/disabled.\n * @param {boolean} isEnable - Boolean value that determines the action as enable (true) or disable (false).\n * If the `isEnable` value is true, the item is enabled or else it is disabled.\n * @returns {void}.\n */\n Accordion.prototype.enableItem = function (index, isEnable) {\n var itemEle = this.getItemElements();\n var ele = itemEle[parseInt(index.toString(), 10)];\n if (isNullOrUndefined(ele)) {\n return;\n }\n var eleHeader = ele.firstElementChild;\n if (isEnable) {\n this.remove(ele, CLS_DISABLE$3);\n attributes(eleHeader, {\n 'tabindex': '0',\n 'aria-disabled': 'false'\n });\n eleHeader.focus();\n } else {\n if (ele.classList.contains(CLS_ACTIVE)) {\n this.expandItem(false, index);\n this.eleMoveFocus('movedown', this.element, eleHeader);\n }\n this.add(ele, CLS_DISABLE$3);\n eleHeader.setAttribute('aria-disabled', 'true');\n eleHeader.removeAttribute('tabindex');\n }\n };\n /**\n * Expands/Collapses the specified Accordion item.\n *\n * @param {boolean} isExpand - Boolean value that determines the action as expand or collapse.\n * @param {number} index - Number value that determines which item should be expanded/collapsed.`index` is optional parameter.\n * Without Specifying index, based on the `isExpand` value all Accordion item can be expanded or collapsed.\n * @returns {void}.\n */\n Accordion.prototype.expandItem = function (isExpand, index) {\n var _this = this;\n var itemEle = this.getItemElements();\n if (isNullOrUndefined(index)) {\n if (this.expandMode === 'Single' && isExpand) {\n var ele = itemEle[itemEle.length - 1];\n this.itemExpand(isExpand, ele, this.getIndexByItem(ele));\n } else {\n var item = select('#' + this.lastActiveItemId, this.element);\n [].slice.call(itemEle).forEach(function (el) {\n _this.itemExpand(isExpand, el, _this.getIndexByItem(el));\n el.classList.remove(CLS_EXPANDSTATE);\n });\n var expandedItem = select('.' + CLS_EXPANDSTATE, this.element);\n if (expandedItem) {\n expandedItem.classList.remove(CLS_EXPANDSTATE);\n }\n if (item) {\n item.classList.add(CLS_EXPANDSTATE);\n }\n }\n } else {\n var ele = itemEle[parseInt(index.toString(), 10)];\n if (isNullOrUndefined(ele) || !ele.classList.contains(CLS_SLCT) || ele.classList.contains(CLS_ACTIVE) && isExpand) {\n return;\n } else {\n if (this.expandMode === 'Single') {\n this.expandItem(false);\n }\n this.itemExpand(isExpand, ele, index);\n }\n }\n };\n Accordion.prototype.itemExpand = function (isExpand, ele, index) {\n var ctn = ele.children[1];\n if (ele.classList.contains(CLS_DISABLE$3)) {\n return;\n }\n if (isNullOrUndefined(ctn) && isExpand) {\n ctn = this.contentRendering(index);\n ele.appendChild(ctn);\n this.ariaAttrUpdate(ele);\n this.expand(ctn);\n } else if (!isNullOrUndefined(ctn)) {\n if (isExpand) {\n this.expand(ctn);\n } else {\n this.collapse(ctn);\n }\n }\n if (this.isReact) {\n this.renderReactTemplates();\n }\n };\n Accordion.prototype.destroyItems = function () {\n this.restoreContent(null);\n if (this.isReact || this.isAngular || this.isVue) {\n this.clearTemplate();\n }\n [].slice.call(this.element.querySelectorAll('.' + CLS_ITEM$1)).forEach(function (el) {\n detach(el);\n });\n };\n Accordion.prototype.restoreContent = function (index) {\n var ctnElePos;\n if (isNullOrUndefined(index)) {\n ctnElePos = this.element;\n } else {\n ctnElePos = this.element.querySelectorAll('.' + CLS_ITEM$1)[parseInt(index.toString(), 10)];\n }\n this.templateEle.forEach(function (eleStr) {\n if (!isNullOrUndefined(ctnElePos.querySelector(eleStr))) {\n document.body.appendChild(ctnElePos.querySelector(eleStr)).style.display = 'none';\n }\n });\n };\n Accordion.prototype.updateItem = function (item, index) {\n if (!isNullOrUndefined(item)) {\n var items = this.getItems();\n var itemObj = items[parseInt(index.toString(), 10)];\n items.splice(index, 1);\n this.restoreContent(index);\n var header = select('.' + CLS_HEADERCTN, item);\n var content = select('.' + CLS_CTENT, item);\n if (this.isReact || this.isAngular) {\n this.clearAccordionTemplate(header, 'header', CLS_HEADERCTN);\n this.clearAccordionTemplate(content, 'content', CLS_CTENT);\n }\n detach(item);\n this.addItem(itemObj, index);\n }\n };\n Accordion.prototype.setTemplate = function (template, toElement, index) {\n this.fetchElement(toElement, template, index);\n if (this.isReact) {\n this.renderReactTemplates();\n }\n };\n Accordion.prototype.clearAccordionTemplate = function (templateEle, templateName, className) {\n if (this.registeredTemplate && this.registeredTemplate[\"\" + templateName]) {\n var registeredTemplates = this.registeredTemplate;\n for (var index = 0; index < registeredTemplates[\"\" + templateName].length; index++) {\n var registeredItem = registeredTemplates[\"\" + templateName][parseInt(index.toString(), 10)].rootNodes[0];\n var closestItem = closest(registeredItem, '.' + className);\n if (!isNullOrUndefined(closestItem) && closestItem === templateEle || isNullOrUndefined(registeredItem.parentNode)) {\n this.clearTemplate([templateName], [registeredTemplates[\"\" + templateName][parseInt(index.toString(), 10)]]);\n break;\n }\n }\n } else if (this.portals && this.portals.length > 0) {\n var portals = this.portals;\n for (var index = 0; index < portals.length; index++) {\n var portalItem = portals[parseInt(index.toString(), 10)];\n var closestItem = closest(portalItem.containerInfo, '.' + className);\n if (!isNullOrUndefined(closestItem) && closestItem === templateEle) {\n this.clearTemplate([templateName], index);\n break;\n }\n }\n }\n };\n Accordion.prototype.getPersistData = function () {\n var keyEntity = ['expandedIndices'];\n return this.addOnPersist(keyEntity);\n };\n /**\n * Gets called when the model property changes.The data that describes the old and new values of the property that changed.\n *\n * @param {AccordionModel} newProp - It contains the new value of data.\n * @param {AccordionModel} oldProp - It contains the old value of data.\n * @returns {void}\n * @private\n */\n Accordion.prototype.onPropertyChanged = function (newProp, oldProp) {\n var acrdn = this.element;\n var isRefresh = false;\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'items':\n if (!(newProp.items instanceof Array && oldProp.items instanceof Array)) {\n var changedProp = Object.keys(newProp.items);\n for (var j = 0; j < changedProp.length; j++) {\n var index = parseInt(Object.keys(newProp.items)[parseInt(j.toString(), 10)], 10);\n var property = Object.keys(newProp.items[parseInt(index.toString(), 10)]);\n for (var k = 0; k < property.length; k++) {\n var item = selectAll('.' + CLS_ITEM$1, this.element)[parseInt(index.toString(), 10)];\n var oldVal = Object(oldProp.items[parseInt(index.toString(), 10)])[\"\" + property[parseInt(k.toString(), 10)]];\n var newVal = Object(newProp.items[parseInt(index.toString(), 10)])[\"\" + property[parseInt(k.toString(), 10)]];\n var temp = property[parseInt(k.toString(), 10)];\n var content = select('.' + CLS_CTENT, item);\n if (temp === 'header' || temp === 'iconCss' || temp === 'expanded' || temp === 'content' && oldVal === '') {\n this.updateItem(item, index);\n }\n if (property[parseInt(k.toString(), 10)] === 'cssClass' && !isNullOrUndefined(item)) {\n if (oldVal) {\n removeClass([item], oldVal.split(' '));\n }\n if (newVal) {\n addClass([item], newVal.split(' '));\n }\n }\n if (property[parseInt(k.toString(), 10)] === 'visible' && !isNullOrUndefined(item)) {\n if (Object(newProp.items[parseInt(index.toString(), 10)])[\"\" + property[parseInt(k.toString(), 10)]] === false) {\n item.classList.add(CLS_ITEMHIDE);\n } else {\n item.classList.remove(CLS_ITEMHIDE);\n }\n }\n if (property[parseInt(k.toString(), 10)] === 'disabled' && !isNullOrUndefined(item)) {\n this.enableItem(index, !newVal);\n }\n if (property.indexOf('header') < 0 && property[parseInt(k.toString(), 10)] === 'content' && !isNullOrUndefined(item) && item.children.length === 2) {\n if (typeof newVal === 'function') {\n if (this.isAngular || this.isReact) {\n this.clearAccordionTemplate(content, property[parseInt(k.toString(), 10)], CLS_CTENT);\n }\n var activeContent = item.querySelector('.' + CLS_CTENT);\n activeContent.innerHTML = '';\n this.setTemplate(newVal, activeContent, index);\n } else {\n if (item.classList.contains(CLS_SLCTED)) {\n this.expandItem(false, index);\n }\n detach(item.querySelector('.' + CLS_CONTENT));\n }\n }\n }\n }\n } else {\n isRefresh = true;\n }\n break;\n case 'dataSource':\n case 'expandedIndices':\n if (this.expandedIndices === null) {\n this.expandedIndices = [];\n }\n isRefresh = true;\n break;\n case 'headerTemplate':\n this.initializeHeaderTemplate();\n isRefresh = true;\n break;\n case 'itemTemplate':\n this.initializeItemTemplate();\n isRefresh = true;\n break;\n case 'enableRtl':\n if (newProp.enableRtl) {\n this.add(acrdn, CLS_RTL$3);\n } else {\n this.remove(acrdn, CLS_RTL$3);\n }\n break;\n case 'height':\n setStyleAttribute(this.element, {\n 'height': formatUnit(newProp.height)\n });\n break;\n case 'width':\n setStyleAttribute(this.element, {\n 'width': formatUnit(newProp.width)\n });\n break;\n case 'expandMode':\n if (newProp.expandMode === 'Single' && !isNullOrUndefined(this.expandedIndices) && this.expandedIndices.length > 1) {\n this.expandItem(false);\n }\n break;\n }\n }\n if (isRefresh) {\n this.initExpand = [];\n if (!isNullOrUndefined(this.expandedIndices) && this.expandedIndices.length > 0) {\n this.initExpand = this.expandedIndices;\n }\n this.destroyItems();\n this.renderItems();\n this.initItemExpand();\n }\n };\n __decorate$4([Collection([], AccordionItem)], Accordion.prototype, \"items\", void 0);\n __decorate$4([Property([])], Accordion.prototype, \"dataSource\", void 0);\n __decorate$4([Property()], Accordion.prototype, \"itemTemplate\", void 0);\n __decorate$4([Property()], Accordion.prototype, \"headerTemplate\", void 0);\n __decorate$4([Property('100%')], Accordion.prototype, \"width\", void 0);\n __decorate$4([Property('auto')], Accordion.prototype, \"height\", void 0);\n __decorate$4([Property([])], Accordion.prototype, \"expandedIndices\", void 0);\n __decorate$4([Property('Multiple')], Accordion.prototype, \"expandMode\", void 0);\n __decorate$4([Property(true)], Accordion.prototype, \"enableHtmlSanitizer\", void 0);\n __decorate$4([Complex({}, AccordionAnimationSettings)], Accordion.prototype, \"animation\", void 0);\n __decorate$4([Event()], Accordion.prototype, \"clicked\", void 0);\n __decorate$4([Event()], Accordion.prototype, \"expanding\", void 0);\n __decorate$4([Event()], Accordion.prototype, \"expanded\", void 0);\n __decorate$4([Event()], Accordion.prototype, \"created\", void 0);\n __decorate$4([Event()], Accordion.prototype, \"destroyed\", void 0);\n Accordion = __decorate$4([NotifyPropertyChanges], Accordion);\n return Accordion;\n}(Component);\nvar __extends$5 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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};\n/**\n * The ContextMenu is a graphical user interface that appears on the user right click/touch hold operation.\n * ```html\n *
\n *
    \n * ```\n * ```typescript\n * \n * ```\n */\nvar ContextMenu = /** @__PURE__ @class */function (_super) {\n __extends$5(ContextMenu, _super);\n /**\n * Constructor for creating the widget.\n *\n * @private\n * @param {ContextMenuModel} options - Specifies the context menu model\n * @param {string} element - Specifies the element\n */\n function ContextMenu(options, element) {\n return _super.call(this, options, element) || this;\n }\n /**\n * For internal use only - prerender processing.\n *\n * @private\n * @returns {void}\n */\n ContextMenu.prototype.preRender = function () {\n this.isMenu = false;\n this.element.id = this.element.id || getUniqueID('ej2-contextmenu');\n _super.prototype.preRender.call(this);\n };\n ContextMenu.prototype.initialize = function () {\n _super.prototype.initialize.call(this);\n attributes(this.element, {\n 'role': 'menubar',\n 'tabindex': '0'\n });\n this.element.style.zIndex = getZindexPartial(this.element).toString();\n };\n /**\n * This method is used to open the ContextMenu in specified position.\n *\n * @param {number} top - To specify ContextMenu vertical positioning.\n * @param {number} left - To specify ContextMenu horizontal positioning.\n * @param {HTMLElement} target - To calculate z-index for ContextMenu based upon the specified target.\n * @function open\n * @returns {void}\n */\n ContextMenu.prototype.open = function (top, left, target) {\n _super.prototype.openMenu.call(this, null, null, top, left, null, target);\n };\n /**\n * Closes the ContextMenu if it is opened.\n *\n * @function close\n * @returns {void}\n */\n ContextMenu.prototype.close = function () {\n _super.prototype.closeMenu.call(this);\n };\n /**\n * Called internally if any of the property value changed.\n *\n * @private\n * @param {ContextMenuModel} newProp - Specifies new properties\n * @param {ContextMenuModel} oldProp - Specifies old properties\n * @returns {void}\n */\n ContextMenu.prototype.onPropertyChanged = function (newProp, oldProp) {\n _super.prototype.onPropertyChanged.call(this, newProp, oldProp);\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'filter':\n this.close();\n this.filter = newProp.filter;\n break;\n case 'target':\n this.unWireEvents(oldProp.target);\n this.wireEvents();\n break;\n }\n }\n };\n /**\n * Get module name.\n *\n * @returns {string} - Module Name\n * @private\n */\n ContextMenu.prototype.getModuleName = function () {\n return 'contextmenu';\n };\n __decorate$5([Property('')], ContextMenu.prototype, \"target\", void 0);\n __decorate$5([Property('')], ContextMenu.prototype, \"filter\", void 0);\n __decorate$5([Collection([], MenuItem)], ContextMenu.prototype, \"items\", void 0);\n ContextMenu = __decorate$5([NotifyPropertyChanges], ContextMenu);\n return ContextMenu;\n}(MenuBase);\nvar __extends$6 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 VMENU = 'e-vertical';\nvar SCROLLABLE = 'e-scrollable';\nvar HAMBURGER = 'e-hamburger';\n/**\n * The Menu is a graphical user interface that serve as navigation headers for your application or site.\n * ```html\n * \n * ```\n * ```typescript\n * \n * ```\n */\nvar Menu = /** @__PURE__ @class */function (_super) {\n __extends$6(Menu, _super);\n /**\n * Constructor for creating the component.\n *\n * @private\n * @param {MenuModel} options - Specifies the menu model\n * @param {string} element - Specifies the element\n */\n function Menu(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.tempItems = [];\n return _this;\n }\n /**\n * Get module name.\n *\n * @private\n * @returns {string} - Module Name\n */\n Menu.prototype.getModuleName = function () {\n return 'menu';\n };\n /**\n * For internal use only - prerender processing.\n *\n * @private\n * @returns {void}\n */\n Menu.prototype.preRender = function () {\n this.isMenu = true;\n this.element.id = this.element.id || getUniqueID('ej2-menu');\n if (this.template) {\n try {\n if (typeof this.template !== 'function' && document.querySelectorAll(this.template).length) {\n this.template = document.querySelector(this.template).innerHTML.trim();\n this.clearChanges();\n }\n } catch (e) {\n /* action on catch */\n }\n this.updateMenuItems(this.items);\n } else {\n this.updateMenuItems(this.items);\n }\n _super.prototype.preRender.call(this);\n };\n Menu.prototype.initialize = function () {\n _super.prototype.initialize.call(this);\n attributes(this.element, {\n 'role': 'menubar',\n 'tabindex': '0'\n });\n if (this.orientation === 'Vertical') {\n this.element.classList.add(VMENU);\n if (this.hamburgerMode && !this.target) {\n this.element.previousElementSibling.classList.add(VMENU);\n }\n this.element.setAttribute('aria-orientation', 'vertical');\n } else {\n if (Browser.isDevice && !this.enableScrolling) {\n this.element.parentElement.classList.add(SCROLLABLE);\n }\n }\n if (this.hamburgerMode) {\n this.element.parentElement.classList.add(HAMBURGER);\n if (this.orientation === 'Horizontal') {\n this.element.classList.add('e-hide-menu');\n }\n }\n };\n Menu.prototype.updateMenuItems = function (items) {\n this.tempItems = items;\n this.items = [];\n this.tempItems.map(this.createMenuItems, this);\n this.setProperties({\n items: this.items\n }, true);\n this.tempItems = [];\n };\n /**\n * Called internally if any of the property value changed.\n *\n * @private\n * @param {MenuModel} newProp - Specifies the new properties.\n * @param {MenuModel} oldProp - Specifies the old properties.\n * @returns {void}\n */\n Menu.prototype.onPropertyChanged = function (newProp, oldProp) {\n var _this = this;\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'orientation':\n if (newProp.orientation === 'Vertical') {\n this.element.classList.add(VMENU);\n if (this.hamburgerMode) {\n if (!this.target) {\n this.element.previousElementSibling.classList.add(VMENU);\n }\n this.element.classList.remove('e-hide-menu');\n }\n this.element.setAttribute('aria-orientation', 'vertical');\n } else {\n this.element.classList.remove(VMENU);\n if (this.hamburgerMode) {\n if (!this.target) {\n this.element.previousElementSibling.classList.remove(VMENU);\n }\n this.element.classList.add('e-hide-menu');\n }\n this.element.removeAttribute('aria-orientation');\n }\n break;\n case 'items':\n if (!Object.keys(oldProp.items).length) {\n this.updateMenuItems(newProp.items);\n }\n break;\n case 'hamburgerMode':\n if (!this.element.previousElementSibling) {\n _super.prototype.createHeaderContainer.call(this);\n }\n if (newProp.hamburgerMode) {\n this.element.parentElement.classList.add(HAMBURGER);\n [].slice.call(this.element.getElementsByClassName('e-blankicon')).forEach(function (li) {\n li.style[_this.enableRtl ? 'paddingRight' : 'paddingLeft'] = '';\n });\n } else {\n this.element.parentElement.classList.remove(HAMBURGER);\n if (this.orientation === 'Vertical') {\n this.setBlankIconStyle(this.element);\n }\n }\n if (this.orientation === 'Vertical') {\n if (!this.target) {\n this.element.previousElementSibling.classList.add(VMENU);\n }\n this.element.classList.remove('e-hide-menu');\n } else {\n if (this.target) {\n this.element.previousElementSibling.classList.add(VMENU);\n } else {\n this.element.previousElementSibling.classList.remove(VMENU);\n }\n this.element.classList[newProp.hamburgerMode ? 'add' : 'remove']('e-hide-menu');\n }\n break;\n case 'title':\n if (this.hamburgerMode && this.element.previousElementSibling) {\n newProp.title = this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(newProp.title) : newProp.title;\n this.element.previousElementSibling.querySelector('.e-menu-title').innerHTML = newProp.title;\n }\n break;\n case 'target':\n if (this.hamburgerMode) {\n this.unWireEvents(oldProp.target);\n this.wireEvents();\n if (this.orientation === 'Horizontal') {\n if (!newProp.target) {\n if (!this.element.previousElementSibling) {\n _super.prototype.createHeaderContainer.call(this);\n }\n this.element.previousElementSibling.classList.remove(VMENU);\n } else {\n this.element.previousElementSibling.classList.add(VMENU);\n }\n this.element.classList.add('e-hide-menu');\n }\n }\n break;\n }\n }\n _super.prototype.onPropertyChanged.call(this, newProp, oldProp);\n };\n Menu.prototype.createMenuItems = function (item) {\n var idx;\n var i;\n var items = this.items;\n var pIdField = this.getField('parentId');\n if (item[\"\" + pIdField]) {\n idx = this.getIndex(item[\"\" + pIdField].toString(), true);\n for (i = 0; i < idx.length; i++) {\n if (!items[idx[i]].items) {\n items[idx[i]].items = [];\n }\n items = items[idx[i]].items;\n }\n items.push(item);\n } else {\n this.items.push(item);\n }\n };\n /**\n * This method is used to open the Menu in hamburger mode.\n *\n * @function open\n * @returns {void}\n */\n Menu.prototype.open = function () {\n _super.prototype.openHamburgerMenu.call(this);\n };\n /**\n * Closes the Menu if it is opened in hamburger mode.\n *\n * @function close\n * @returns {void}\n */\n Menu.prototype.close = function () {\n _super.prototype.closeHamburgerMenu.call(this);\n };\n __decorate$6([Property('Horizontal')], Menu.prototype, \"orientation\", void 0);\n __decorate$6([Property('')], Menu.prototype, \"target\", void 0);\n __decorate$6([Property(null)], Menu.prototype, \"template\", void 0);\n __decorate$6([Property(false)], Menu.prototype, \"enableScrolling\", void 0);\n __decorate$6([Property(false)], Menu.prototype, \"hamburgerMode\", void 0);\n __decorate$6([Property('Menu')], Menu.prototype, \"title\", void 0);\n __decorate$6([Property(true)], Menu.prototype, \"enableHtmlSanitizer\", void 0);\n __decorate$6([Complex({\n itemId: 'id',\n text: 'text',\n parentId: 'parentId',\n iconCss: 'iconCss',\n url: 'url',\n separator: 'separator',\n children: 'items'\n }, FieldSettings)], Menu.prototype, \"fields\", void 0);\n Menu = __decorate$6([NotifyPropertyChanges], Menu);\n return Menu;\n}(MenuBase);\nvar __extends$7 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 CLS_TAB = 'e-tab';\nvar CLS_HEADER$1 = 'e-tab-header';\nvar CLS_BLA_TEM = 'blazor-template';\nvar CLS_CONTENT$1 = 'e-content';\nvar CLS_NEST$1 = 'e-nested';\nvar CLS_ITEMS$1 = 'e-items';\nvar CLS_ITEM$2 = 'e-item';\nvar CLS_TEMPLATE$1 = 'e-template';\nvar CLS_RTL$4 = 'e-rtl';\nvar CLS_ACTIVE$1 = 'e-active';\nvar CLS_DISABLE$4 = 'e-disable';\nvar CLS_HIDDEN$1 = 'e-hidden';\nvar CLS_FOCUS = 'e-focused';\nvar CLS_ICONS = 'e-icons';\nvar CLS_ICON = 'e-icon';\nvar CLS_ICON_TAB = 'e-icon-tab';\nvar CLS_ICON_CLOSE = 'e-close-icon';\nvar CLS_CLOSE_SHOW = 'e-close-show';\nvar CLS_TEXT = 'e-tab-text';\nvar CLS_INDICATOR = 'e-indicator';\nvar CLS_WRAP = 'e-tab-wrap';\nvar CLS_TEXT_WRAP = 'e-text-wrap';\nvar CLS_TAB_ICON = 'e-tab-icon';\nvar CLS_TB_ITEMS = 'e-toolbar-items';\nvar CLS_TB_ITEM = 'e-toolbar-item';\nvar CLS_TB_POP = 'e-toolbar-pop';\nvar CLS_TB_POPUP = 'e-toolbar-popup';\nvar CLS_HOR_NAV = 'e-hor-nav';\nvar CLS_POPUP_OPEN = 'e-popup-open';\nvar CLS_POPUP_CLOSE = 'e-popup-close';\nvar CLS_PROGRESS = 'e-progress';\nvar CLS_IGNORE = 'e-ignore';\nvar CLS_OVERLAY$2 = 'e-overlay';\nvar CLS_HSCRCNT = 'e-hscroll-content';\nvar CLS_VSCRCNT = 'e-vscroll-content';\nvar CLS_VTAB = 'e-vertical-tab';\nvar CLS_VERTICAL$1 = 'e-vertical';\nvar CLS_VLEFT = 'e-vertical-left';\nvar CLS_VRIGHT = 'e-vertical-right';\nvar CLS_HBOTTOM = 'e-horizontal-bottom';\nvar CLS_FILL = 'e-fill-mode';\nvar TABITEMPREFIX = 'tabitem_';\nvar CLS_REORDER_ACTIVE_ITEM = 'e-reorder-active-item';\n/**\n * Objects used for configuring the Tab selecting item action properties.\n */\nvar TabActionSettings = /** @__PURE__ @class */function (_super) {\n __extends$7(TabActionSettings, _super);\n function TabActionSettings() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$7([Property('SlideLeftIn')], TabActionSettings.prototype, \"effect\", void 0);\n __decorate$7([Property(600)], TabActionSettings.prototype, \"duration\", void 0);\n __decorate$7([Property('ease')], TabActionSettings.prototype, \"easing\", void 0);\n return TabActionSettings;\n}(ChildProperty);\n/**\n * Objects used for configuring the Tab animation properties.\n */\nvar TabAnimationSettings = /** @__PURE__ @class */function (_super) {\n __extends$7(TabAnimationSettings, _super);\n function TabAnimationSettings() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$7([Complex({\n effect: 'SlideLeftIn',\n duration: 600,\n easing: 'ease'\n }, TabActionSettings)], TabAnimationSettings.prototype, \"previous\", void 0);\n __decorate$7([Complex({\n effect: 'SlideRightIn',\n duration: 600,\n easing: 'ease'\n }, TabActionSettings)], TabAnimationSettings.prototype, \"next\", void 0);\n return TabAnimationSettings;\n}(ChildProperty);\n/**\n * Objects used for configuring the Tab item header properties.\n */\nvar Header = /** @__PURE__ @class */function (_super) {\n __extends$7(Header, _super);\n function Header() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$7([Property('')], Header.prototype, \"text\", void 0);\n __decorate$7([Property('')], Header.prototype, \"iconCss\", void 0);\n __decorate$7([Property('left')], Header.prototype, \"iconPosition\", void 0);\n return Header;\n}(ChildProperty);\n/**\n * An array of object that is used to configure the Tab.\n */\nvar TabItem = /** @__PURE__ @class */function (_super) {\n __extends$7(TabItem, _super);\n function TabItem() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$7([Complex({}, Header)], TabItem.prototype, \"header\", void 0);\n __decorate$7([Property(null)], TabItem.prototype, \"headerTemplate\", void 0);\n __decorate$7([Property('')], TabItem.prototype, \"content\", void 0);\n __decorate$7([Property('')], TabItem.prototype, \"cssClass\", void 0);\n __decorate$7([Property(false)], TabItem.prototype, \"disabled\", void 0);\n __decorate$7([Property(true)], TabItem.prototype, \"visible\", void 0);\n __decorate$7([Property()], TabItem.prototype, \"id\", void 0);\n __decorate$7([Property(-1)], TabItem.prototype, \"tabIndex\", void 0);\n return TabItem;\n}(ChildProperty);\n/**\n * Tab is a content panel to show multiple contents in a single space, one at a time.\n * Each Tab item has an associated content, that will be displayed based on the active Tab header item.\n * ```html\n *
    \n * \n * ```\n */\nvar Tab = /** @__PURE__ @class */function (_super) {\n __extends$7(Tab, _super);\n /**\n * Initializes a new instance of the Tab class.\n *\n * @param {TabModel} options - Specifies Tab model properties as options.\n * @param {string | HTMLElement} element - Specifies the element that is rendered as a Tab.\n */\n function Tab(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.show = {};\n _this.hide = {};\n _this.maxHeight = 0;\n _this.title = 'Close';\n _this.isInteracted = false;\n _this.lastIndex = 0;\n _this.isAdd = false;\n _this.isIconAlone = false;\n _this.draggableItems = [];\n _this.resizeContext = _this.refreshActiveTabBorder.bind(_this);\n /**\n * Contains the keyboard configuration of the Tab.\n */\n _this.keyConfigs = {\n tab: 'tab',\n home: 'home',\n end: 'end',\n enter: 'enter',\n space: 'space',\n delete: 'delete',\n moveLeft: 'leftarrow',\n moveRight: 'rightarrow',\n moveUp: 'uparrow',\n moveDown: 'downarrow'\n };\n return _this;\n }\n /**\n * Removes the component from the DOM and detaches all its related event handlers, attributes and classes.\n *\n * @returns {void}\n */\n Tab.prototype.destroy = function () {\n if (this.isReact || this.isAngular) {\n this.clearTemplate();\n }\n if (!isNullOrUndefined(this.tbObj)) {\n this.tbObj.destroy();\n this.tbObj = null;\n }\n this.unWireEvents();\n this.element.removeAttribute('aria-disabled');\n this.expTemplateContent();\n if (!this.isTemplate) {\n while (this.element.firstElementChild) {\n remove(this.element.firstElementChild);\n }\n } else {\n var cntEle = select('.' + CLS_TAB + ' > .' + CLS_CONTENT$1, this.element);\n this.element.classList.remove(CLS_TEMPLATE$1);\n if (!isNullOrUndefined(cntEle)) {\n cntEle.innerHTML = this.cnt;\n }\n }\n if (this.btnCls) {\n this.btnCls = null;\n }\n this.hdrEle = null;\n this.cntEle = null;\n this.tbItems = null;\n this.tbItem = null;\n this.tbPop = null;\n this.prevItem = null;\n this.popEle = null;\n this.bdrLine = null;\n this.content = null;\n this.dragItem = null;\n this.cloneElement = null;\n this.draggingItems = [];\n if (this.draggableItems && this.draggableItems.length > 0) {\n for (var i = 0; i < this.draggableItems.length; i++) {\n this.draggableItems[i].destroy();\n this.draggableItems[i] = null;\n }\n this.draggableItems = [];\n }\n _super.prototype.destroy.call(this);\n this.trigger('destroyed');\n };\n /**\n * Refresh the tab component\n *\n * @returns {void}\n */\n Tab.prototype.refresh = function () {\n if (this.isReact) {\n this.clearTemplate();\n }\n _super.prototype.refresh.call(this);\n if (this.isReact) {\n this.renderReactTemplates();\n }\n };\n /**\n * Initialize component\n *\n * @private\n * @returns {void}\n */\n Tab.prototype.preRender = function () {\n var nested = closest(this.element, '.' + CLS_CONTENT$1);\n this.prevIndex = 0;\n this.isNested = false;\n this.isPopup = false;\n this.initRender = true;\n this.isSwiped = false;\n this.itemIndexArray = [];\n this.templateEle = [];\n if (this.allowDragAndDrop) {\n this.dragArea = !isNullOrUndefined(this.dragArea) ? this.dragArea : '#' + this.element.id + ' ' + ('.' + CLS_HEADER$1);\n }\n if (!isNullOrUndefined(nested)) {\n nested.parentElement.classList.add(CLS_NEST$1);\n this.isNested = true;\n }\n var name = Browser.info.name;\n var css = name === 'msie' ? 'e-ie' : name === 'edge' ? 'e-edge' : name === 'safari' ? 'e-safari' : '';\n setStyleAttribute(this.element, {\n 'width': formatUnit(this.width),\n 'height': formatUnit(this.height)\n });\n this.setCssClass(this.element, this.cssClass, true);\n attributes(this.element, {\n 'aria-disabled': 'false'\n });\n this.setCssClass(this.element, css, true);\n this.updatePopAnimationConfig();\n };\n /**\n * Initialize the component rendering\n *\n * @private\n * @returns {void}\n */\n Tab.prototype.render = function () {\n var _this = this;\n this.btnCls = this.createElement('span', {\n className: CLS_ICONS + ' ' + CLS_ICON_CLOSE,\n attrs: {\n title: this.title\n }\n });\n this.tabId = this.element.id.length > 0 ? '-' + this.element.id : getRandomId();\n this.renderContainer();\n this.wireEvents();\n this.initRender = false;\n if (this.isReact && this.portals && this.portals.length > 0) {\n this.renderReactTemplates(function () {\n if (!isNullOrUndefined(_this.tbObj)) {\n _this.tbObj.refreshOverflow();\n }\n _this.refreshActiveBorder();\n });\n }\n };\n Tab.prototype.renderContainer = function () {\n var ele = this.element;\n this.items.forEach(function (item, index) {\n if (isNullOrUndefined(item.id) && !isNullOrUndefined(item.setProperties)) {\n item.setProperties({\n id: TABITEMPREFIX + index.toString()\n }, true);\n }\n });\n if (this.items.length > 0 && ele.children.length === 0) {\n ele.appendChild(this.createElement('div', {\n className: CLS_CONTENT$1\n }));\n this.setOrientation(this.headerPlacement, this.createElement('div', {\n className: CLS_HEADER$1\n }));\n this.isTemplate = false;\n } else if (this.element.children.length > 0) {\n this.isTemplate = true;\n ele.classList.add(CLS_TEMPLATE$1);\n var header = ele.querySelector('.' + CLS_HEADER$1);\n if (header && this.headerPlacement === 'Bottom') {\n this.setOrientation(this.headerPlacement, header);\n }\n }\n if (!isNullOrUndefined(select('.' + CLS_HEADER$1, this.element)) && !isNullOrUndefined(select('.' + CLS_CONTENT$1, this.element))) {\n this.renderHeader();\n this.tbItems = select('.' + CLS_HEADER$1 + ' .' + CLS_TB_ITEMS, this.element);\n if (!isNullOrUndefined(this.tbItems)) {\n rippleEffect(this.tbItems, {\n selector: '.e-tab-wrap'\n });\n }\n this.renderContent();\n if (selectAll('.' + CLS_TB_ITEM, this.element).length > 0) {\n this.tbItems = select('.' + CLS_HEADER$1 + ' .' + CLS_TB_ITEMS, this.element);\n this.bdrLine = this.createElement('div', {\n className: CLS_INDICATOR + ' ' + CLS_HIDDEN$1 + ' ' + CLS_IGNORE\n });\n var scrCnt = select('.' + this.scrCntClass, this.tbItems);\n if (!isNullOrUndefined(scrCnt)) {\n scrCnt.insertBefore(this.bdrLine, scrCnt.firstChild);\n } else {\n this.tbItems.insertBefore(this.bdrLine, this.tbItems.firstChild);\n }\n this.setContentHeight(true);\n this.select(this.selectedItem);\n }\n this.setRTL(this.enableRtl);\n }\n };\n Tab.prototype.renderHeader = function () {\n var _this = this;\n var hdrPlace = this.headerPlacement;\n var tabItems = [];\n this.hdrEle = this.getTabHeader();\n this.addVerticalClass();\n if (!this.isTemplate) {\n tabItems = this.parseObject(this.items, 0);\n } else {\n if (this.element.children.length > 1 && this.element.children[1].classList.contains(CLS_HEADER$1)) {\n this.setProperties({\n headerPlacement: 'Bottom'\n }, true);\n }\n var count = this.hdrEle.children.length;\n var hdrItems = [];\n for (var i = 0; i < count; i++) {\n hdrItems.push(this.hdrEle.children.item(i));\n }\n if (count > 0) {\n var tabItems_1 = this.createElement('div', {\n className: CLS_ITEMS$1\n });\n this.hdrEle.appendChild(tabItems_1);\n hdrItems.forEach(function (item, index) {\n _this.lastIndex = index;\n var attr = {\n className: CLS_ITEM$2,\n id: CLS_ITEM$2 + _this.tabId + '_' + index\n };\n var txt = _this.createElement('span', {\n className: CLS_TEXT,\n attrs: {\n 'role': 'presentation'\n }\n }).outerHTML;\n var cont = _this.createElement('div', {\n className: CLS_TEXT_WRAP,\n innerHTML: txt + _this.btnCls.outerHTML\n }).outerHTML;\n var wrap = _this.createElement('div', {\n className: CLS_WRAP,\n innerHTML: cont,\n attrs: {\n role: 'tab',\n tabIndex: '-1',\n 'aria-selected': 'false',\n 'aria-controls': CLS_CONTENT$1 + _this.tabId + '_' + index,\n 'aria-disabled': 'false'\n }\n });\n wrap.querySelector('.' + CLS_TEXT).appendChild(item);\n tabItems_1.appendChild(_this.createElement('div', attr));\n selectAll('.' + CLS_ITEM$2, tabItems_1)[index].appendChild(wrap);\n });\n }\n }\n this.tbObj = new Toolbar({\n width: hdrPlace === 'Left' || hdrPlace === 'Right' ? 'auto' : '100%',\n height: hdrPlace === 'Left' || hdrPlace === 'Right' ? '100%' : 'auto',\n overflowMode: this.overflowMode,\n items: tabItems.length !== 0 ? tabItems : [],\n clicked: this.clickHandler.bind(this),\n scrollStep: this.scrollStep,\n enableHtmlSanitizer: this.enableHtmlSanitizer,\n cssClass: this.cssClass\n });\n this.tbObj.isStringTemplate = true;\n this.tbObj.createElement = this.createElement;\n this.tbObj.appendTo(this.hdrEle);\n attributes(this.hdrEle, {\n role: 'tablist'\n });\n if (!isNullOrUndefined(this.element.getAttribute('aria-label'))) {\n this.hdrEle.setAttribute('aria-label', this.element.getAttribute('aria-label'));\n this.element.removeAttribute('aria-label');\n } else if (!isNullOrUndefined(this.element.getAttribute('aria-labelledby'))) {\n this.hdrEle.setAttribute('aria-labelledby', this.element.getAttribute('aria-labelledby'));\n this.element.removeAttribute('aria-labelledby');\n }\n this.setCloseButton(this.showCloseButton);\n var toolbarHeader = this.tbObj.element.querySelector('.' + CLS_TB_ITEMS);\n if (!isNullOrUndefined(toolbarHeader)) {\n if (isNullOrUndefined(toolbarHeader.id) || toolbarHeader.id === '') {\n toolbarHeader.id = this.element.id + '_' + 'tab_header_items';\n }\n }\n };\n Tab.prototype.renderContent = function () {\n this.cntEle = select('.' + CLS_CONTENT$1, this.element);\n var hdrItem = selectAll('.' + CLS_TB_ITEM, this.element);\n if (this.isTemplate) {\n this.cnt = this.cntEle.children.length > 0 ? this.cntEle.innerHTML : '';\n var contents = this.cntEle.children;\n for (var i = 0; i < hdrItem.length; i++) {\n if (contents.length - 1 >= i) {\n addClass([contents.item(i)], CLS_ITEM$2);\n attributes(contents.item(i), {\n 'role': 'tabpanel',\n 'aria-labelledby': CLS_ITEM$2 + this.tabId + '_' + i\n });\n contents.item(i).id = CLS_CONTENT$1 + this.tabId + '_' + i;\n }\n }\n }\n };\n Tab.prototype.reRenderItems = function () {\n this.renderContainer();\n if (!isNullOrUndefined(this.cntEle)) {\n this.touchModule = new Touch(this.cntEle, {\n swipe: this.swipeHandler.bind(this)\n });\n }\n };\n Tab.prototype.parseObject = function (items, index) {\n var _this = this;\n var tbItems = Array.prototype.slice.call(selectAll('.e-tab-header .' + CLS_TB_ITEM, this.element));\n var maxId = this.lastIndex;\n if (!this.isReplace && tbItems.length > 0) {\n maxId = this.getMaxIndicesFromItems(tbItems);\n }\n var tItems = [];\n var txtWrapEle;\n var spliceArray = [];\n items.forEach(function (item, i) {\n var pos = isNullOrUndefined(item.header) || isNullOrUndefined(item.header.iconPosition) ? '' : item.header.iconPosition;\n var css = isNullOrUndefined(item.header) || isNullOrUndefined(item.header.iconCss) ? '' : item.header.iconCss;\n if (isNullOrUndefined(item.headerTemplate) && (isNullOrUndefined(item.header) || isNullOrUndefined(item.header.text) || item.header.text.length === 0 && css === '')) {\n spliceArray.push(i);\n return;\n }\n var txt = item.headerTemplate || item.header.text;\n if (typeof txt === 'string' && _this.enableHtmlSanitizer) {\n txt = SanitizeHtmlHelper.sanitize(txt);\n }\n var itemIndex;\n if (_this.isReplace && !isNullOrUndefined(_this.tbId) && _this.tbId !== '') {\n itemIndex = parseInt(_this.tbId.substring(_this.tbId.lastIndexOf('_') + 1), 10);\n _this.tbId = '';\n } else {\n itemIndex = index + i;\n }\n _this.lastIndex = tbItems.length === 0 ? i : _this.isReplace ? itemIndex : maxId + 1 + i;\n var disabled = item.disabled ? ' ' + CLS_DISABLE$4 + ' ' + CLS_OVERLAY$2 : '';\n var hidden = item.visible === false ? ' ' + CLS_HIDDEN$1 : '';\n txtWrapEle = _this.createElement('div', {\n className: CLS_TEXT,\n attrs: {\n 'role': 'presentation'\n }\n });\n var tHtml = txt instanceof Object ? txt.outerHTML : txt;\n var txtEmpty = !isNullOrUndefined(tHtml) && tHtml !== '';\n if (!isNullOrUndefined(txt.tagName)) {\n txtWrapEle.appendChild(txt);\n } else {\n _this.headerTextCompile(txtWrapEle, txt, i);\n }\n var tEle;\n var icon = _this.createElement('span', {\n className: CLS_ICONS + ' ' + CLS_TAB_ICON + ' ' + CLS_ICON + '-' + pos + ' ' + css\n });\n var tCont = _this.createElement('div', {\n className: CLS_TEXT_WRAP\n });\n tCont.appendChild(txtWrapEle);\n if (txt !== '' && txt !== undefined && css !== '') {\n if (pos === 'left' || pos === 'top') {\n tCont.insertBefore(icon, tCont.firstElementChild);\n } else {\n tCont.appendChild(icon);\n }\n tEle = txtWrapEle;\n _this.isIconAlone = false;\n } else {\n tEle = css === '' ? txtWrapEle : icon;\n if (tEle === icon) {\n detach(txtWrapEle);\n tCont.appendChild(icon);\n _this.isIconAlone = true;\n }\n }\n var tabIndex = isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString();\n var wrapAttrs = item.disabled ? {\n role: 'tab',\n 'aria-disabled': 'true'\n } : {\n tabIndex: tabIndex,\n 'data-tabindex': tabIndex,\n role: 'tab',\n 'aria-selected': 'false',\n 'aria-disabled': 'false'\n };\n tCont.appendChild(_this.btnCls.cloneNode(true));\n var wrap = _this.createElement('div', {\n className: CLS_WRAP,\n attrs: wrapAttrs\n });\n wrap.appendChild(tCont);\n if (_this.itemIndexArray instanceof Array) {\n _this.itemIndexArray.splice(index + i, 0, CLS_ITEM$2 + _this.tabId + '_' + _this.lastIndex);\n }\n var attrObj = {\n id: CLS_ITEM$2 + _this.tabId + '_' + _this.lastIndex,\n 'data-id': item.id\n };\n var tItem = {\n htmlAttributes: attrObj,\n template: wrap\n };\n tItem.cssClass = (item.cssClass !== undefined ? item.cssClass : ' ') + ' ' + disabled + ' ' + hidden + ' ' + (css !== '' ? 'e-i' + pos : '') + ' ' + (!txtEmpty ? CLS_ICON : '');\n if (pos === 'top' || pos === 'bottom') {\n _this.element.classList.add('e-vertical-icon');\n }\n tItems.push(tItem);\n i++;\n });\n if (!this.isAdd) {\n spliceArray.forEach(function (spliceItemIndex) {\n _this.items.splice(spliceItemIndex, 1);\n });\n }\n if (this.isIconAlone) {\n this.element.classList.add(CLS_ICON_TAB);\n } else {\n this.element.classList.remove(CLS_ICON_TAB);\n }\n return tItems;\n };\n Tab.prototype.removeActiveClass = function () {\n var tabHeader = this.getTabHeader();\n if (tabHeader) {\n var tabItems = selectAll('.' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1, tabHeader);\n [].slice.call(tabItems).forEach(function (node) {\n return node.classList.remove(CLS_ACTIVE$1);\n });\n [].slice.call(tabItems).forEach(function (node) {\n return node.firstElementChild.setAttribute('aria-selected', 'false');\n });\n }\n };\n Tab.prototype.checkPopupOverflow = function (ele) {\n this.tbPop = select('.' + CLS_TB_POP, this.element);\n var popIcon = select('.e-hor-nav', this.element);\n var tbrItems = select('.' + CLS_TB_ITEMS, this.element);\n var lastChild = tbrItems.lastChild;\n var isOverflow = false;\n if (!this.isVertical() && (this.enableRtl && popIcon.offsetLeft + popIcon.offsetWidth > tbrItems.offsetLeft || !this.enableRtl && popIcon.offsetLeft < tbrItems.offsetWidth)) {\n isOverflow = true;\n } else if (this.isVertical() && popIcon.offsetTop < lastChild.offsetTop + lastChild.offsetHeight) {\n isOverflow = true;\n }\n if (isOverflow) {\n ele.classList.add(CLS_TB_POPUP);\n this.tbPop.insertBefore(ele, selectAll('.' + CLS_TB_POPUP, this.tbPop)[0]);\n }\n return true;\n };\n Tab.prototype.popupHandler = function (target) {\n var ripEle = target.querySelector('.e-ripple-element');\n if (!isNullOrUndefined(ripEle)) {\n ripEle.outerHTML = '';\n target.querySelector('.' + CLS_WRAP).classList.remove('e-ripple');\n }\n this.tbItem = selectAll('.' + CLS_TB_ITEMS + ' .' + CLS_TB_ITEM, this.hdrEle);\n var lastChild = this.tbItem[this.tbItem.length - 1];\n if (this.tbItem.length !== 0) {\n target.classList.remove(CLS_TB_POPUP);\n target.removeAttribute('style');\n this.tbItems.appendChild(target);\n this.actEleId = target.id;\n if (this.checkPopupOverflow(lastChild)) {\n var prevEle = this.tbItems.lastChild.previousElementSibling;\n this.checkPopupOverflow(prevEle);\n }\n this.isPopup = true;\n }\n return selectAll('.' + CLS_TB_ITEM, this.tbItems).length - 1;\n };\n Tab.prototype.setCloseButton = function (val) {\n var trg = select('.' + CLS_HEADER$1, this.element);\n if (val === true) {\n trg.classList.add(CLS_CLOSE_SHOW);\n } else {\n trg.classList.remove(CLS_CLOSE_SHOW);\n }\n this.tbObj.refreshOverflow();\n this.refreshActiveTabBorder();\n };\n Tab.prototype.prevCtnAnimation = function (prev, current) {\n var animation;\n var checkRTL = this.enableRtl || this.element.classList.contains(CLS_RTL$4);\n if (this.isPopup || prev <= current) {\n if (this.animation.previous.effect === 'SlideLeftIn') {\n animation = {\n name: 'SlideLeftOut',\n duration: this.animation.previous.duration,\n timingFunction: this.animation.previous.easing\n };\n } else {\n animation = null;\n }\n } else {\n if (this.animation.next.effect === 'SlideRightIn') {\n animation = {\n name: 'SlideRightOut',\n duration: this.animation.next.duration,\n timingFunction: this.animation.next.easing\n };\n } else {\n animation = null;\n }\n }\n return animation;\n };\n Tab.prototype.triggerPrevAnimation = function (oldCnt, prevIndex) {\n var _this = this;\n var animateObj = this.prevCtnAnimation(prevIndex, this.selectedItem);\n if (!isNullOrUndefined(animateObj)) {\n animateObj.begin = function () {\n setStyleAttribute(oldCnt, {\n 'position': 'absolute'\n });\n oldCnt.classList.add(CLS_PROGRESS);\n oldCnt.classList.add('e-view');\n };\n animateObj.end = function () {\n oldCnt.style.display = 'none';\n oldCnt.classList.remove(CLS_ACTIVE$1);\n oldCnt.classList.remove(CLS_PROGRESS);\n oldCnt.classList.remove('e-view');\n setStyleAttribute(oldCnt, {\n 'display': '',\n 'position': ''\n });\n if (oldCnt.childNodes.length === 0 && !_this.isTemplate) {\n detach(oldCnt);\n }\n };\n new Animation(animateObj).animate(oldCnt);\n } else {\n oldCnt.classList.remove(CLS_ACTIVE$1);\n }\n };\n Tab.prototype.triggerAnimation = function (id, value) {\n var _this = this;\n var prevIndex = this.prevIndex;\n var oldCnt;\n var itemCollection = [].slice.call(this.element.querySelector('.' + CLS_CONTENT$1).children);\n itemCollection.forEach(function (item) {\n if (item.id === _this.prevActiveEle) {\n oldCnt = item;\n }\n });\n var prevEle = this.tbItem[prevIndex];\n var newCnt = this.getTrgContent(this.cntEle, this.extIndex(id));\n if (isNullOrUndefined(oldCnt) && !isNullOrUndefined(prevEle)) {\n var idNo = this.extIndex(prevEle.id);\n oldCnt = this.getTrgContent(this.cntEle, idNo);\n }\n if (!isNullOrUndefined(newCnt)) {\n this.prevActiveEle = newCnt.id;\n }\n var isPrevent = isNullOrUndefined(this.animation) || isNullOrUndefined(this.animation.next.effect) || isNullOrUndefined(this.animation.previous.effect) || this.animation.previous.effect === 'None' || this.animation.next.effect === 'None';\n if (this.initRender || value === false || isPrevent) {\n if (oldCnt && oldCnt !== newCnt) {\n oldCnt.classList.remove(CLS_ACTIVE$1);\n }\n return;\n }\n var cnt = select('.' + CLS_CONTENT$1, this.element);\n var animateObj;\n if (this.prevIndex > this.selectedItem && !this.isPopup) {\n var openEff = this.animation.previous.effect;\n animateObj = {\n name: openEff === 'None' ? '' : openEff !== 'SlideLeftIn' ? openEff : 'SlideLeftIn',\n duration: this.animation.previous.duration === 0 && animationMode === 'Enable' ? 600 : this.animation.previous.duration,\n timingFunction: this.animation.previous.easing\n };\n } else if (this.isPopup || this.prevIndex < this.selectedItem || this.prevIndex === this.selectedItem) {\n var clsEff = this.animation.next.effect;\n animateObj = {\n name: clsEff === 'None' ? '' : clsEff !== 'SlideRightIn' ? clsEff : 'SlideRightIn',\n duration: this.animation.next.duration === 0 && animationMode === 'Enable' ? 600 : this.animation.next.duration,\n timingFunction: this.animation.next.easing\n };\n }\n animateObj.progress = function () {\n cnt.classList.add(CLS_PROGRESS);\n _this.setActiveBorder();\n };\n animateObj.end = function () {\n cnt.classList.remove(CLS_PROGRESS);\n newCnt.classList.add(CLS_ACTIVE$1);\n };\n if (!this.initRender && !isNullOrUndefined(oldCnt)) {\n this.triggerPrevAnimation(oldCnt, prevIndex);\n }\n this.isPopup = false;\n if (animateObj.name === '') {\n newCnt.classList.add(CLS_ACTIVE$1);\n } else {\n new Animation(animateObj).animate(newCnt);\n }\n };\n Tab.prototype.keyPressed = function (trg) {\n var trgParent = closest(trg, '.' + CLS_HEADER$1 + ' .' + CLS_TB_ITEM);\n var trgIndex = this.getEleIndex(trgParent);\n if (!isNullOrUndefined(this.popEle) && trg.classList.contains('e-hor-nav')) {\n this.popEle.classList.contains(CLS_POPUP_OPEN) ? this.popObj.hide(this.hide) : this.popObj.show(this.show);\n } else if (trg.classList.contains('e-scroll-nav')) {\n trg.click();\n } else {\n if (!isNullOrUndefined(trgParent) && trgParent.classList.contains(CLS_ACTIVE$1) === false) {\n this.selectTab(trgIndex, null, true);\n if (!isNullOrUndefined(this.popEle)) {\n this.popObj.hide(this.hide);\n }\n }\n }\n };\n Tab.prototype.getTabHeader = function () {\n if (isNullOrUndefined(this.element)) {\n return undefined;\n }\n var headers = [].slice.call(this.element.children).filter(function (e) {\n return e.classList.contains(CLS_HEADER$1);\n });\n if (headers.length > 0) {\n return headers[0];\n } else {\n var wrap = [].slice.call(this.element.children).filter(function (e) {\n return !e.classList.contains(CLS_BLA_TEM);\n })[0];\n if (!wrap) {\n return undefined;\n }\n return [].slice.call(wrap.children).filter(function (e) {\n return e.classList.contains(CLS_HEADER$1);\n })[0];\n }\n };\n Tab.prototype.getEleIndex = function (item) {\n return Array.prototype.indexOf.call(selectAll('.' + CLS_TB_ITEM, this.getTabHeader()), item);\n };\n Tab.prototype.extIndex = function (id) {\n return id.replace(CLS_ITEM$2 + this.tabId + '_', '');\n };\n Tab.prototype.getMaxIndicesFromItems = function (tbItems) {\n var _this = this;\n var idList = [];\n tbItems.forEach(function (item) {\n idList.push(_this.getIndexFromEle(item.id));\n });\n return Math.max.apply(Math, idList);\n };\n Tab.prototype.expTemplateContent = function () {\n var _this = this;\n this.templateEle.forEach(function (eleStr) {\n if (!isNullOrUndefined(_this.element.querySelector(eleStr))) {\n document.body.appendChild(_this.element.querySelector(eleStr)).style.display = 'none';\n }\n });\n };\n Tab.prototype.templateCompile = function (ele, cnt, index) {\n var tempEle = this.createElement('div');\n this.compileElement(tempEle, cnt, 'content', index);\n if (tempEle.childNodes.length !== 0) {\n ele.appendChild(tempEle);\n }\n if (this.isReact) {\n this.renderReactTemplates();\n }\n };\n Tab.prototype.compileElement = function (ele, val, prop, index) {\n var templateFn;\n if (typeof val === 'string') {\n val = val.trim();\n if (this.isVue) {\n templateFn = compile(this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(val) : val);\n } else {\n ele.innerHTML = this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(val) : val;\n }\n } else {\n templateFn = compile(val);\n }\n var templateFUN;\n if (!isNullOrUndefined(templateFn)) {\n templateFUN = templateFn({}, this, prop);\n }\n if (!isNullOrUndefined(templateFn) && templateFUN.length > 0) {\n [].slice.call(templateFUN).forEach(function (el) {\n ele.appendChild(el);\n });\n }\n };\n Tab.prototype.headerTextCompile = function (element, text, index) {\n this.compileElement(element, text, 'headerTemplate', index);\n };\n Tab.prototype.getContent = function (ele, cnt, callType, index) {\n var eleStr;\n cnt = isNullOrUndefined(cnt) ? '' : cnt;\n if (typeof cnt === 'string' || isNullOrUndefined(cnt.innerHTML)) {\n if (typeof cnt === 'string' && this.enableHtmlSanitizer) {\n cnt = SanitizeHtmlHelper.sanitize(cnt);\n }\n if (cnt[0] === '.' || cnt[0] === '#') {\n if (document.querySelectorAll(cnt).length) {\n var eleVal = document.querySelector(cnt);\n eleStr = eleVal.outerHTML.trim();\n if (callType === 'clone') {\n ele.appendChild(eleVal.cloneNode(true));\n } else {\n ele.appendChild(eleVal);\n eleVal.style.display = '';\n }\n } else {\n this.templateCompile(ele, cnt, index);\n }\n } else {\n this.templateCompile(ele, cnt, index);\n }\n } else {\n ele.appendChild(cnt);\n }\n if (!isNullOrUndefined(eleStr)) {\n if (this.templateEle.indexOf(cnt.toString()) === -1) {\n this.templateEle.push(cnt.toString());\n }\n }\n };\n Tab.prototype.getTrgContent = function (cntEle, no) {\n var ele;\n if (this.element.classList.contains(CLS_NEST$1)) {\n ele = select('.' + CLS_NEST$1 + '> .' + CLS_CONTENT$1 + ' > #' + CLS_CONTENT$1 + this.tabId + '_' + no, this.element);\n } else {\n ele = this.findEle(cntEle.children, CLS_CONTENT$1 + this.tabId + '_' + no);\n }\n return ele;\n };\n Tab.prototype.findEle = function (items, key) {\n var ele;\n for (var i = 0; i < items.length; i++) {\n if (items[i].id === key) {\n ele = items[i];\n break;\n }\n }\n return ele;\n };\n Tab.prototype.isVertical = function () {\n var isVertical = this.headerPlacement === 'Left' || this.headerPlacement === 'Right' ? true : false;\n this.scrCntClass = isVertical ? CLS_VSCRCNT : CLS_HSCRCNT;\n return isVertical;\n };\n Tab.prototype.addVerticalClass = function () {\n if (this.isVertical()) {\n var tbPos = this.headerPlacement === 'Left' ? CLS_VLEFT : CLS_VRIGHT;\n addClass([this.hdrEle], [CLS_VERTICAL$1, tbPos]);\n if (!this.element.classList.contains(CLS_NEST$1)) {\n addClass([this.element], [CLS_VTAB, tbPos]);\n } else {\n addClass([this.hdrEle], [CLS_VTAB, tbPos]);\n }\n }\n if (this.headerPlacement === 'Bottom') {\n addClass([this.hdrEle], [CLS_HBOTTOM]);\n }\n };\n Tab.prototype.updatePopAnimationConfig = function () {\n this.show = {\n name: this.isVertical() ? 'FadeIn' : 'SlideDown',\n duration: 100\n };\n this.hide = {\n name: this.isVertical() ? 'FadeOut' : 'SlideUp',\n duration: 100\n };\n };\n Tab.prototype.changeOrientation = function (place) {\n this.setOrientation(place, this.hdrEle);\n var activeTab = this.hdrEle.querySelector('.' + CLS_ACTIVE$1);\n var isVertical = this.hdrEle.classList.contains(CLS_VERTICAL$1) ? true : false;\n removeClass([this.element], [CLS_VTAB]);\n removeClass([this.hdrEle], [CLS_VERTICAL$1, CLS_VLEFT, CLS_VRIGHT]);\n if (isVertical !== this.isVertical()) {\n this.changeToolbarOrientation();\n if (!isNullOrUndefined(activeTab) && activeTab.classList.contains(CLS_TB_POPUP)) {\n this.popupHandler(activeTab);\n }\n }\n this.addVerticalClass();\n this.setActiveBorder();\n this.focusItem();\n };\n Tab.prototype.focusItem = function () {\n var curActItem = select(' #' + CLS_ITEM$2 + this.tabId + '_' + this.selectedItem, this.hdrEle);\n if (!isNullOrUndefined(curActItem)) {\n curActItem.firstElementChild.focus();\n }\n };\n Tab.prototype.changeToolbarOrientation = function () {\n this.tbObj.setProperties({\n height: this.isVertical() ? '100%' : 'auto',\n width: this.isVertical() ? 'auto' : '100%'\n }, true);\n this.tbObj.changeOrientation();\n this.updatePopAnimationConfig();\n };\n Tab.prototype.setOrientation = function (place, ele) {\n var headerPos = Array.prototype.indexOf.call(this.element.children, ele);\n var contentPos = Array.prototype.indexOf.call(this.element.children, this.element.querySelector('.' + CLS_CONTENT$1));\n if (place === 'Bottom' && contentPos > headerPos) {\n this.element.appendChild(ele);\n } else {\n removeClass([ele], [CLS_HBOTTOM]);\n this.element.insertBefore(ele, select('.' + CLS_CONTENT$1, this.element));\n }\n };\n Tab.prototype.setCssClass = function (ele, cls, val) {\n if (cls === '' || isNullOrUndefined(cls)) {\n return;\n }\n var list = cls.split(' ');\n for (var i = 0; i < list.length; i++) {\n if (val) {\n ele.classList.add(list[i]);\n } else {\n ele.classList.remove(list[i]);\n }\n }\n };\n Tab.prototype.setContentHeight = function (val) {\n if (this.element.classList.contains(CLS_FILL)) {\n removeClass([this.element], [CLS_FILL]);\n }\n if (isNullOrUndefined(this.cntEle)) {\n return;\n }\n var hdrEle = this.getTabHeader();\n if (this.heightAdjustMode === 'None') {\n if (this.height === 'auto') {\n return;\n } else {\n if (!this.isVertical()) {\n setStyleAttribute(this.cntEle, {\n 'height': this.element.clientHeight - hdrEle.offsetHeight + 'px'\n });\n }\n }\n } else if (this.heightAdjustMode === 'Fill') {\n addClass([this.element], [CLS_FILL]);\n setStyleAttribute(this.element, {\n 'height': '100%'\n });\n this.cntEle.style.height = 'calc(100% - ' + this.hdrEle.offsetHeight + 'px)';\n } else if (this.heightAdjustMode === 'Auto') {\n if (this.isTemplate === true) {\n var cnt = selectAll('.' + CLS_CONTENT$1 + ' > .' + CLS_ITEM$2, this.element);\n for (var i = 0; i < cnt.length; i++) {\n cnt[i].setAttribute('style', 'display:block; visibility: visible');\n this.maxHeight = Math.max(this.maxHeight, this.getHeight(cnt[i]));\n cnt[i].style.removeProperty('display');\n cnt[i].style.removeProperty('visibility');\n }\n } else {\n this.cntEle = select('.' + CLS_CONTENT$1, this.element);\n if (val === true) {\n this.cntEle.appendChild(this.createElement('div', {\n id: CLS_CONTENT$1 + this.tabId + '_' + 0,\n className: CLS_ITEM$2 + ' ' + CLS_ACTIVE$1,\n attrs: {\n 'role': 'tabpanel',\n 'aria-labelledby': CLS_ITEM$2 + this.tabId + '_' + 0\n }\n }));\n }\n var ele = this.cntEle.children.item(0);\n for (var i = 0; i < this.items.length; i++) {\n this.getContent(ele, this.items[i].content, 'clone', i);\n this.maxHeight = Math.max(this.maxHeight, this.getHeight(ele));\n while (ele.firstChild) {\n ele.removeChild(ele.firstChild);\n }\n }\n if (this.isReact || this.isAngular || this.isVue) {\n this.clearTemplate(['content']);\n }\n this.templateEle = [];\n this.getContent(ele, this.items[0].content, 'render', 0);\n if (this.prevIndex !== this.selectedItem) {\n ele.classList.remove(CLS_ACTIVE$1);\n }\n }\n setStyleAttribute(this.cntEle, {\n 'height': this.maxHeight + 'px'\n });\n } else {\n setStyleAttribute(this.cntEle, {\n 'height': 'auto'\n });\n }\n };\n Tab.prototype.getHeight = function (ele) {\n var cs = window.getComputedStyle(ele);\n return ele.offsetHeight + parseFloat(cs.getPropertyValue('padding-top')) + parseFloat(cs.getPropertyValue('padding-bottom')) + parseFloat(cs.getPropertyValue('margin-top')) + parseFloat(cs.getPropertyValue('margin-bottom'));\n };\n Tab.prototype.setActiveBorder = function () {\n var trgHdrEle = this.getTabHeader();\n var trg = select('.' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1, trgHdrEle);\n if (isNullOrUndefined(trg)) {\n return;\n }\n if (!this.reorderActiveTab) {\n if (trg.classList.contains(CLS_TB_POPUP) && !this.bdrLine.classList.contains(CLS_HIDDEN$1)) {\n this.bdrLine.classList.add(CLS_HIDDEN$1);\n }\n if (trgHdrEle && !trgHdrEle.classList.contains(CLS_REORDER_ACTIVE_ITEM)) {\n trgHdrEle.classList.add(CLS_REORDER_ACTIVE_ITEM);\n }\n } else if (trgHdrEle) {\n trgHdrEle.classList.remove(CLS_REORDER_ACTIVE_ITEM);\n }\n var root = closest(trg, '.' + CLS_TAB);\n if (this.element !== root) {\n return;\n }\n this.tbItems = select('.' + CLS_TB_ITEMS, trgHdrEle);\n var bar = select('.' + CLS_INDICATOR, trgHdrEle);\n var scrollCnt = select('.' + CLS_TB_ITEMS + ' .' + this.scrCntClass, trgHdrEle);\n if (this.isVertical()) {\n setStyleAttribute(bar, {\n 'left': '',\n 'right': ''\n });\n var tbHeight = isNullOrUndefined(scrollCnt) ? this.tbItems.offsetHeight : scrollCnt.offsetHeight;\n if (tbHeight !== 0) {\n setStyleAttribute(bar, {\n 'top': trg.offsetTop + 'px',\n 'height': trg.offsetHeight + 'px'\n });\n } else {\n setStyleAttribute(bar, {\n 'top': 0,\n 'height': 0\n });\n }\n } else {\n if (this.overflowMode === 'MultiRow') {\n var top_1 = this.headerPlacement === 'Bottom' ? trg.offsetTop : trg.offsetHeight + trg.offsetTop;\n setStyleAttribute(bar, {\n 'top': top_1 + 'px',\n 'height': ''\n });\n } else {\n setStyleAttribute(bar, {\n 'top': '',\n 'height': ''\n });\n }\n var tbWidth = isNullOrUndefined(scrollCnt) ? this.tbItems.offsetWidth : scrollCnt.offsetWidth;\n if (tbWidth !== 0) {\n setStyleAttribute(bar, {\n 'left': trg.offsetLeft + 'px',\n 'right': tbWidth - (trg.offsetLeft + trg.offsetWidth) + 'px'\n });\n } else {\n setStyleAttribute(bar, {\n 'left': 'auto',\n 'right': 'auto'\n });\n }\n }\n if (!isNullOrUndefined(this.bdrLine) && !trg.classList.contains(CLS_TB_POPUP)) {\n this.bdrLine.classList.remove(CLS_HIDDEN$1);\n }\n };\n Tab.prototype.setActive = function (value, skipDataBind, isInteracted) {\n if (skipDataBind === void 0) {\n skipDataBind = false;\n }\n if (isInteracted === void 0) {\n isInteracted = false;\n }\n this.tbItem = selectAll('.' + CLS_TB_ITEM, this.getTabHeader());\n var trg = this.tbItem[value];\n if (value < 0 || isNaN(value) || this.tbItem.length === 0 || !isNullOrUndefined(trg) && trg.classList.contains(CLS_DISABLE$4)) {\n return;\n }\n if (value >= 0 && !skipDataBind) {\n this.allowServerDataBinding = false;\n this.setProperties({\n selectedItem: value\n }, true);\n this.allowServerDataBinding = true;\n if (!this.initRender) {\n this.serverDataBind();\n }\n }\n if (trg.classList.contains(CLS_ACTIVE$1)) {\n this.setActiveBorder();\n return;\n }\n if (!this.isTemplate) {\n attributes(trg.firstElementChild, {\n 'aria-controls': CLS_CONTENT$1 + this.tabId + '_' + value\n });\n }\n var id = trg.id;\n this.removeActiveClass();\n trg.classList.add(CLS_ACTIVE$1);\n trg.firstElementChild.setAttribute('aria-selected', 'true');\n var no = Number(this.extIndex(id));\n if (isNullOrUndefined(this.prevActiveEle)) {\n this.prevActiveEle = CLS_CONTENT$1 + this.tabId + '_' + no;\n }\n if (this.isTemplate) {\n if (select('.' + CLS_CONTENT$1, this.element).children.length > 0) {\n var trg_1 = this.findEle(select('.' + CLS_CONTENT$1, this.element).children, CLS_CONTENT$1 + this.tabId + '_' + no);\n if (!isNullOrUndefined(trg_1)) {\n trg_1.classList.add(CLS_ACTIVE$1);\n }\n this.triggerAnimation(id, this.enableAnimation);\n }\n } else {\n this.cntEle = select('.' + CLS_TAB + ' > .' + CLS_CONTENT$1, this.element);\n var item = this.getTrgContent(this.cntEle, this.extIndex(id));\n if (isNullOrUndefined(item)) {\n this.cntEle.appendChild(this.createElement('div', {\n id: CLS_CONTENT$1 + this.tabId + '_' + this.extIndex(id),\n className: CLS_ITEM$2 + ' ' + CLS_ACTIVE$1,\n attrs: {\n role: 'tabpanel',\n 'aria-labelledby': CLS_ITEM$2 + this.tabId + '_' + this.extIndex(id)\n }\n }));\n var eleTrg = this.getTrgContent(this.cntEle, this.extIndex(id));\n var itemIndex = Array.prototype.indexOf.call(this.itemIndexArray, id);\n this.getContent(eleTrg, this.items[itemIndex].content, 'render', itemIndex);\n } else {\n item.classList.add(CLS_ACTIVE$1);\n }\n this.triggerAnimation(id, this.enableAnimation);\n }\n this.setActiveBorder();\n this.refreshItemVisibility(trg);\n if (!this.initRender && !skipDataBind) {\n var eventArg = {\n previousItem: this.prevItem,\n previousIndex: this.prevIndex,\n selectedItem: trg,\n selectedIndex: value,\n selectedContent: select('#' + CLS_CONTENT$1 + this.tabId + '_' + this.selectingID, this.content),\n isSwiped: this.isSwiped,\n isInteracted: isInteracted,\n preventFocus: false\n };\n this.trigger('selected', eventArg, function (selectEventArgs) {\n if (!selectEventArgs.preventFocus) {\n trg.firstElementChild.focus();\n }\n });\n }\n };\n Tab.prototype.setItems = function (items) {\n this.isReplace = true;\n this.tbItems = select('.' + CLS_TB_ITEMS, this.getTabHeader());\n this.tbObj.items = this.parseObject(items, 0);\n this.tbObj.dataBind();\n this.isReplace = false;\n };\n Tab.prototype.setRTL = function (value) {\n this.tbObj.enableRtl = value;\n this.tbObj.dataBind();\n this.setCssClass(this.element, CLS_RTL$4, value);\n this.refreshActiveBorder();\n };\n Tab.prototype.refreshActiveBorder = function () {\n if (!isNullOrUndefined(this.bdrLine)) {\n this.bdrLine.classList.add(CLS_HIDDEN$1);\n }\n this.setActiveBorder();\n };\n Tab.prototype.showPopup = function (config) {\n var tbPop = select('.e-popup.e-toolbar-pop', this.hdrEle);\n if (tbPop && tbPop.classList.contains('e-popup-close')) {\n var tbPopObj = tbPop && tbPop.ej2_instances[0];\n tbPopObj.position.X = this.headerPlacement === 'Left' || this.element.classList.contains(CLS_RTL$4) ? 'left' : 'right';\n tbPopObj.dataBind();\n tbPopObj.show(config);\n }\n };\n Tab.prototype.bindDraggable = function () {\n var _this = this;\n if (this.allowDragAndDrop) {\n var tabHeader = this.element.querySelector('.' + CLS_HEADER$1);\n if (tabHeader) {\n var items = Array.prototype.slice.call(tabHeader.querySelectorAll('.' + CLS_TB_ITEM));\n items.forEach(function (element) {\n _this.initializeDrag(element);\n });\n }\n }\n };\n Tab.prototype.wireEvents = function () {\n this.bindDraggable();\n window.addEventListener('resize', this.resizeContext);\n EventHandler.add(this.element, 'mouseover', this.hoverHandler, this);\n EventHandler.add(this.element, 'keydown', this.spaceKeyDown, this);\n if (!isNullOrUndefined(this.cntEle)) {\n this.touchModule = new Touch(this.cntEle, {\n swipe: this.swipeHandler.bind(this)\n });\n }\n this.keyModule = new KeyboardEvents(this.element, {\n keyAction: this.keyHandler.bind(this),\n keyConfigs: this.keyConfigs\n });\n this.tabKeyModule = new KeyboardEvents(this.element, {\n keyAction: this.keyHandler.bind(this),\n keyConfigs: {\n openPopup: 'shift+f10',\n tab: 'tab',\n shiftTab: 'shift+tab'\n },\n eventName: 'keydown'\n });\n };\n Tab.prototype.unWireEvents = function () {\n if (!isNullOrUndefined(this.keyModule)) {\n this.keyModule.destroy();\n }\n if (!isNullOrUndefined(this.tabKeyModule)) {\n this.tabKeyModule.destroy();\n }\n if (!isNullOrUndefined(this.cntEle) && !isNullOrUndefined(this.touchModule)) {\n this.touchModule.destroy();\n this.touchModule = null;\n }\n window.removeEventListener('resize', this.resizeContext);\n EventHandler.remove(this.element, 'mouseover', this.hoverHandler);\n EventHandler.remove(this.element, 'keydown', this.spaceKeyDown);\n this.element.classList.remove(CLS_RTL$4);\n this.element.classList.remove(CLS_FOCUS);\n };\n Tab.prototype.clickHandler = function (args) {\n this.element.classList.remove(CLS_FOCUS);\n var trg = args.originalEvent.target;\n var trgParent = closest(trg, '.' + CLS_TB_ITEM);\n var trgIndex = this.getEleIndex(trgParent);\n if (trg.classList.contains(CLS_ICON_CLOSE)) {\n this.removeTab(trgIndex);\n } else if (this.isVertical() && closest(trg, '.' + CLS_HOR_NAV)) {\n this.showPopup(this.show);\n } else {\n this.isPopup = false;\n if (!isNullOrUndefined(trgParent) && trgIndex !== this.selectedItem) {\n this.selectTab(trgIndex, args.originalEvent, true);\n }\n }\n };\n Tab.prototype.swipeHandler = function (e) {\n if (e.velocity < 3 && isNullOrUndefined(e.originalEvent.changedTouches)) {\n return;\n }\n if (this.isNested) {\n this.element.setAttribute('data-swipe', 'true');\n }\n var nestedTab = this.element.querySelector('[data-swipe=\"true\"]');\n if (nestedTab) {\n nestedTab.removeAttribute('data-swipe');\n return;\n }\n this.isSwiped = true;\n if (e.swipeDirection === 'Right' && this.selectedItem !== 0) {\n for (var k = this.selectedItem - 1; k >= 0; k--) {\n if (!this.tbItem[k].classList.contains(CLS_HIDDEN$1)) {\n this.selectTab(k, null, true);\n break;\n }\n }\n } else if (e.swipeDirection === 'Left' && this.selectedItem !== selectAll('.' + CLS_TB_ITEM, this.element).length - 1) {\n for (var i = this.selectedItem + 1; i < this.tbItem.length; i++) {\n if (!this.tbItem[i].classList.contains(CLS_HIDDEN$1)) {\n this.selectTab(i, null, true);\n break;\n }\n }\n }\n this.isSwiped = false;\n };\n Tab.prototype.spaceKeyDown = function (e) {\n if (e.keyCode === 32 && e.which === 32 || e.keyCode === 35 && e.which === 35) {\n var clstHead = closest(e.target, '.' + CLS_HEADER$1);\n if (!isNullOrUndefined(clstHead)) {\n e.preventDefault();\n }\n }\n };\n Tab.prototype.keyHandler = function (e) {\n if (this.element.classList.contains(CLS_DISABLE$4)) {\n return;\n }\n this.element.classList.add(CLS_FOCUS);\n var trg = e.target;\n var tabHeader = this.getTabHeader();\n var actEle = select('.' + CLS_ACTIVE$1, tabHeader);\n this.popEle = select('.' + CLS_TB_POP, tabHeader);\n if (!isNullOrUndefined(this.popEle)) {\n this.popObj = this.popEle.ej2_instances[0];\n }\n var item = closest(document.activeElement, '.' + CLS_TB_ITEM);\n var trgParent = closest(trg, '.' + CLS_TB_ITEM);\n switch (e.action) {\n case 'space':\n case 'enter':\n if (trg.parentElement.classList.contains(CLS_DISABLE$4)) {\n return;\n }\n if (e.action === 'enter' && trg.classList.contains('e-hor-nav')) {\n this.showPopup(this.show);\n break;\n }\n this.keyPressed(trg);\n break;\n case 'tab':\n case 'shiftTab':\n if (trg.classList.contains(CLS_WRAP) && closest(trg, '.' + CLS_TB_ITEM).classList.contains(CLS_ACTIVE$1) === false) {\n trg.setAttribute('tabindex', trg.getAttribute('data-tabindex'));\n }\n if (this.popObj && isVisible(this.popObj.element)) {\n this.popObj.hide(this.hide);\n }\n if (!isNullOrUndefined(actEle) && actEle.children.item(0).getAttribute('tabindex') === '-1') {\n actEle.children.item(0).setAttribute('tabindex', '0');\n }\n break;\n case 'moveLeft':\n case 'moveRight':\n if (!isNullOrUndefined(item)) {\n this.refreshItemVisibility(item);\n }\n break;\n case 'openPopup':\n e.preventDefault();\n if (!isNullOrUndefined(this.popEle) && this.popEle.classList.contains(CLS_POPUP_CLOSE)) {\n this.popObj.show(this.show);\n }\n break;\n case 'delete':\n if (this.showCloseButton === true && !isNullOrUndefined(trgParent)) {\n var nxtSib = trgParent.nextSibling;\n if (!isNullOrUndefined(nxtSib) && nxtSib.classList.contains(CLS_TB_ITEM)) {\n nxtSib.firstElementChild.focus();\n }\n this.removeTab(this.getEleIndex(trgParent));\n }\n this.setActiveBorder();\n break;\n }\n };\n Tab.prototype.refreshItemVisibility = function (target) {\n var scrCnt = select('.' + this.scrCntClass, this.tbItems);\n if (!this.isVertical() && !isNullOrUndefined(scrCnt)) {\n var scrBar = select('.e-hscroll-bar', this.tbItems);\n var scrStart = scrBar.scrollLeft;\n var scrEnd = scrStart + scrBar.offsetWidth;\n var eleStart = target.offsetLeft;\n var eleWidth = target.offsetWidth;\n var eleEnd = target.offsetLeft + target.offsetWidth;\n if (scrStart < eleStart && scrEnd < eleEnd) {\n var eleViewRange = scrEnd - eleStart;\n scrBar.scrollLeft = scrStart + (eleWidth - eleViewRange);\n } else {\n if (scrStart > eleStart && scrEnd > eleEnd) {\n var eleViewRange = eleEnd - scrStart;\n scrBar.scrollLeft = scrStart - (eleWidth - eleViewRange);\n }\n }\n } else {\n return;\n }\n };\n Tab.prototype.getIndexFromEle = function (id) {\n return parseInt(id.substring(id.lastIndexOf('_') + 1), 10);\n };\n Tab.prototype.hoverHandler = function (e) {\n var trg = e.target;\n if (!isNullOrUndefined(trg.classList) && trg.classList.contains(CLS_ICON_CLOSE)) {\n trg.setAttribute('title', new L10n('tab', {\n closeButtonTitle: this.title\n }, this.locale).getConstant('closeButtonTitle'));\n }\n };\n Tab.prototype.evalOnPropertyChangeItems = function (newProp, oldProp) {\n var _this = this;\n if (!(newProp.items instanceof Array && oldProp.items instanceof Array)) {\n var changedProp = Object.keys(newProp.items);\n for (var i = 0; i < changedProp.length; i++) {\n var index = parseInt(Object.keys(newProp.items)[i], 10);\n var properties = Object.keys(newProp.items[index]);\n for (var j = 0; j < properties.length; j++) {\n var oldVal = Object(oldProp.items[index])[properties[j]];\n var newVal = Object(newProp.items[index])[properties[j]];\n var hdr = this.element.querySelectorAll('.' + CLS_TB_ITEM)[index];\n var itemIndex = void 0;\n if (hdr && !isNullOrUndefined(hdr.id) && hdr.id !== '') {\n itemIndex = this.getIndexFromEle(hdr.id);\n } else {\n itemIndex = index;\n }\n var hdrItem = select('.' + CLS_TB_ITEMS + ' #' + CLS_ITEM$2 + this.tabId + '_' + itemIndex, this.element);\n var cntItem = select('.' + CLS_CONTENT$1 + ' #' + CLS_CONTENT$1 + this.tabId + '_' + itemIndex, this.element);\n if (properties[j] === 'header' || properties[j] === 'headerTemplate') {\n var icon = isNullOrUndefined(this.items[index].header) || isNullOrUndefined(this.items[index].header.iconCss) ? '' : this.items[index].header.iconCss;\n var textVal = this.items[index].headerTemplate || this.items[index].header.text;\n if (properties[j] === 'headerTemplate') {\n this.clearTabTemplate(hdrItem, properties[j], CLS_TB_ITEM);\n }\n if (textVal === '' && icon === '') {\n this.removeTab(index);\n } else {\n this.tbId = hdr.id;\n var arr = [];\n arr.push(this.items[index]);\n this.items.splice(index, 1);\n this.itemIndexArray.splice(index, 1);\n this.tbObj.items.splice(index, 1);\n var isHiddenEle = hdrItem.classList.contains(CLS_HIDDEN$1);\n detach(hdrItem);\n this.isReplace = true;\n this.addTab(arr, index);\n if (isHiddenEle) {\n this.hideTab(index);\n }\n this.isReplace = false;\n }\n }\n if (properties[j] === 'content' && !isNullOrUndefined(cntItem)) {\n var strVal = typeof newVal === 'string' || isNullOrUndefined(newVal.innerHTML);\n if (strVal && (newVal[0] === '.' || newVal[0] === '#') && newVal.length) {\n var eleVal = document.querySelector(newVal);\n cntItem.appendChild(eleVal);\n eleVal.style.display = '';\n } else if (newVal === '' && oldVal[0] === '#') {\n document.body.appendChild(this.element.querySelector(oldVal)).style.display = 'none';\n cntItem.innerHTML = newVal;\n } else if (this.isAngular || this.isReact) {\n this.clearTabTemplate(cntItem, properties[j], CLS_ITEM$2);\n cntItem.innerHTML = '';\n this.templateCompile(cntItem, newVal, index);\n } else if (typeof newVal !== 'function') {\n cntItem.innerHTML = newVal;\n }\n }\n if (properties[j] === 'cssClass') {\n if (!isNullOrUndefined(hdrItem)) {\n hdrItem.classList.remove(oldVal);\n hdrItem.classList.add(newVal);\n }\n if (!isNullOrUndefined(cntItem)) {\n cntItem.classList.remove(oldVal);\n cntItem.classList.add(newVal);\n }\n }\n if (properties[j] === 'disabled') {\n this.enableTab(index, newVal === true ? false : true);\n }\n if (properties[j] === 'visible') {\n this.hideTab(index, newVal === true ? false : true);\n }\n }\n }\n if (this.isReact && this.portals && this.portals.length > 0) {\n this.renderReactTemplates(function () {\n _this.refreshActiveTabBorder();\n });\n }\n } else {\n this.lastIndex = 0;\n if (isNullOrUndefined(this.tbObj)) {\n this.reRenderItems();\n } else {\n if (this.isReact || this.isAngular) {\n this.clearTemplate();\n }\n this.setItems(newProp.items);\n if (this.templateEle.length > 0) {\n this.expTemplateContent();\n }\n this.templateEle = [];\n var selectElement = select('.' + CLS_TAB + ' > .' + CLS_CONTENT$1, this.element);\n while (selectElement.firstElementChild) {\n detach(selectElement.firstElementChild);\n }\n this.select(this.selectedItem);\n this.draggableItems = [];\n this.bindDraggable();\n }\n }\n };\n Tab.prototype.clearTabTemplate = function (templateEle, templateName, className) {\n if (!this.clearTemplates) {\n return;\n }\n if (this.registeredTemplate && this.registeredTemplate[templateName]) {\n var registeredTemplates = this.registeredTemplate;\n for (var index = 0; index < registeredTemplates[templateName].length; index++) {\n var registeredItem = registeredTemplates[templateName][index].rootNodes[0];\n var closestItem = closest(registeredItem, '.' + className);\n if (!isNullOrUndefined(closestItem) && closestItem === templateEle) {\n this.clearTemplate([templateName], [registeredTemplates[templateName][index]]);\n break;\n }\n }\n } else if (this.portals && this.portals.length > 0) {\n var portals = this.portals;\n for (var index = 0; index < portals.length; index++) {\n var portalItem = portals[index];\n var closestItem = closest(portalItem.containerInfo, '.' + className);\n if (!isNullOrUndefined(closestItem) && closestItem === templateEle) {\n this.clearTemplate([templateName], index);\n break;\n }\n }\n }\n };\n Tab.prototype.initializeDrag = function (target) {\n var _this = this;\n var dragObj = new Draggable(target, {\n dragArea: this.dragArea,\n dragTarget: '.' + CLS_TB_ITEM,\n clone: true,\n helper: this.helper.bind(this),\n dragStart: this.itemDragStart.bind(this),\n drag: function (e) {\n var dragIndex = _this.getEleIndex(_this.dragItem);\n var dropIndex;\n var dropItem;\n var dragArgs = {\n draggedItem: _this.dragItem,\n event: e.event,\n target: e.target,\n droppedItem: e.target.closest('.' + CLS_TB_ITEM),\n clonedElement: _this.cloneElement,\n index: dragIndex\n };\n if (!isNullOrUndefined(e.target.closest('.' + CLS_TAB)) && !e.target.closest('.' + CLS_TAB).isEqualNode(_this.element) && _this.dragArea !== '.' + CLS_HEADER$1) {\n _this.trigger('dragging', dragArgs);\n } else {\n if (!e.target.closest(_this.dragArea) && _this.overflowMode !== 'Popup') {\n document.body.style.cursor = 'not-allowed';\n addClass([_this.cloneElement], CLS_HIDDEN$1);\n if (_this.dragItem.classList.contains(CLS_HIDDEN$1)) {\n removeClass([_this.dragItem], CLS_HIDDEN$1);\n }\n _this.dragItem.querySelector('.' + CLS_WRAP).style.visibility = 'visible';\n } else {\n document.body.style.cursor = '';\n _this.dragItem.querySelector('.' + CLS_WRAP).style.visibility = 'hidden';\n if (_this.cloneElement.classList.contains(CLS_HIDDEN$1)) {\n removeClass([_this.cloneElement], CLS_HIDDEN$1);\n }\n }\n if (_this.overflowMode === 'Scrollable' && !isNullOrUndefined(_this.element.querySelector('.e-hscroll'))) {\n var scrollRightNavEle = _this.element.querySelector('.e-scroll-right-nav');\n var scrollLeftNavEle = _this.element.querySelector('.e-scroll-left-nav');\n var hscrollBar = _this.element.querySelector('.e-hscroll-bar');\n if (!isNullOrUndefined(scrollRightNavEle) && Math.abs(scrollRightNavEle.offsetWidth / 2 + scrollRightNavEle.offsetLeft) > _this.cloneElement.offsetLeft + _this.cloneElement.offsetWidth) {\n hscrollBar.scrollLeft -= 10;\n }\n if (!isNullOrUndefined(scrollLeftNavEle) && Math.abs(scrollLeftNavEle.offsetLeft + scrollLeftNavEle.offsetWidth - _this.cloneElement.offsetLeft) > scrollLeftNavEle.offsetWidth / 2) {\n hscrollBar.scrollLeft += 10;\n }\n }\n _this.cloneElement.style.pointerEvents = 'none';\n dropItem = closest(e.target, '.' + CLS_TB_ITEM + '.e-draggable');\n var scrollContentWidth = 0;\n if (_this.overflowMode === 'Scrollable' && !isNullOrUndefined(_this.element.querySelector('.e-hscroll'))) {\n scrollContentWidth = _this.element.querySelector('.e-hscroll-content').offsetWidth;\n }\n if (dropItem != null && !dropItem.isSameNode(_this.dragItem) && dropItem.closest('.' + CLS_TAB).isSameNode(_this.dragItem.closest('.' + CLS_TAB))) {\n dropIndex = _this.getEleIndex(dropItem);\n if (dropIndex < dragIndex && Math.abs(dropItem.offsetLeft + dropItem.offsetWidth - _this.cloneElement.offsetLeft) > dropItem.offsetWidth / 2) {\n _this.dragAction(dropItem, dragIndex, dropIndex);\n }\n if (dropIndex > dragIndex && Math.abs(dropItem.offsetWidth / 2) + dropItem.offsetLeft - scrollContentWidth < _this.cloneElement.offsetLeft + _this.cloneElement.offsetWidth) {\n _this.dragAction(dropItem, dragIndex, dropIndex);\n }\n }\n _this.droppedIndex = _this.getEleIndex(_this.dragItem);\n _this.trigger('dragging', dragArgs);\n }\n },\n dragStop: this.itemDragStop.bind(this)\n });\n this.draggableItems.push(dragObj);\n };\n Tab.prototype.helper = function (e) {\n this.cloneElement = this.createElement('div');\n if (e.element) {\n this.cloneElement = e.element.cloneNode(true);\n addClass([this.cloneElement], 'e-tab-clone-element');\n if (this.element.querySelector('.' + CLS_HEADER$1).classList.contains(CLS_CLOSE_SHOW)) {\n addClass([this.cloneElement], CLS_CLOSE_SHOW);\n }\n removeClass([this.cloneElement.querySelector('.' + CLS_WRAP)], 'e-ripple');\n if (!isNullOrUndefined(this.cloneElement.querySelector('.e-ripple-element'))) {\n remove(this.cloneElement.querySelector('.e-ripple-element'));\n }\n document.body.appendChild(this.cloneElement);\n }\n return this.cloneElement;\n };\n Tab.prototype.itemDragStart = function (e) {\n var _this = this;\n this.draggingItems = this.items.map(function (x) {\n return x;\n });\n this.dragItem = e.element;\n var dragArgs = {\n draggedItem: e.element,\n event: e.event,\n target: e.target,\n droppedItem: null,\n index: this.getEleIndex(this.dragItem),\n clonedElement: this.cloneElement,\n cancel: false\n };\n this.trigger('onDragStart', dragArgs, function (tabItemDragArgs) {\n if (tabItemDragArgs.cancel) {\n var dragObj = e.element.ej2_instances[0];\n if (!isNullOrUndefined(dragObj)) {\n dragObj.intDestroy(e.event);\n }\n detach(_this.cloneElement);\n } else {\n _this.removeActiveClass();\n addClass([_this.tbItems.querySelector('.' + CLS_INDICATOR)], CLS_HIDDEN$1);\n _this.dragItem.querySelector('.' + CLS_WRAP).style.visibility = 'hidden';\n }\n });\n };\n Tab.prototype.dragAction = function (dropItem, dragsIndex, dropIndex) {\n if (this.items.length > 0) {\n var item = this.draggingItems[dragsIndex];\n this.draggingItems.splice(dragsIndex, 1);\n this.draggingItems.splice(dropIndex, 0, item);\n }\n if (this.overflowMode === 'MultiRow') {\n dropItem.parentNode.insertBefore(this.dragItem, dropItem.nextElementSibling);\n }\n if (dragsIndex > dropIndex) {\n if (!this.dragItem.parentElement.isSameNode(dropItem.parentElement)) {\n if (this.overflowMode === 'Extended') {\n if (dropItem.isSameNode(dropItem.parentElement.lastChild)) {\n var popupContainer = this.dragItem.parentNode;\n dropItem.parentNode.insertBefore(this.dragItem, dropItem);\n popupContainer.insertBefore(dropItem.parentElement.lastChild, popupContainer.childNodes[0]);\n } else {\n this.dragItem.parentNode.insertBefore(dropItem.parentElement.lastChild, this.dragItem.parentElement.childNodes[0]);\n dropItem.parentNode.insertBefore(this.dragItem, dropItem);\n }\n } else {\n var lastEle = dropItem.parentElement.lastChild;\n if (dropItem.isSameNode(lastEle)) {\n var popupContainer = this.dragItem.parentNode;\n dropItem.parentNode.insertBefore(this.dragItem, dropItem);\n popupContainer.insertBefore(lastEle, popupContainer.childNodes[0]);\n } else {\n this.dragItem.parentNode.insertBefore(dropItem.parentElement.lastChild, this.dragItem.parentElement.childNodes[0]);\n dropItem.parentNode.insertBefore(this.dragItem, dropItem);\n }\n }\n } else {\n this.dragItem.parentNode.insertBefore(this.dragItem, dropItem);\n }\n }\n if (dragsIndex < dropIndex) {\n if (!this.dragItem.parentElement.isSameNode(dropItem.parentElement)) {\n if (this.overflowMode === 'Extended') {\n this.dragItem.parentElement.appendChild(dropItem.parentElement.firstElementChild);\n dropItem.parentNode.insertBefore(this.dragItem, dropItem.nextSibling);\n } else {\n this.dragItem.parentNode.insertBefore(dropItem.parentElement.lastChild, this.dragItem.parentElement.childNodes[0]);\n dropItem.parentNode.insertBefore(this.dragItem, dropItem);\n }\n } else {\n this.dragItem.parentNode.insertBefore(this.dragItem, dropItem.nextElementSibling);\n }\n }\n };\n Tab.prototype.itemDragStop = function (e) {\n var _this = this;\n detach(this.cloneElement);\n this.cloneElement = null;\n this.dragItem.querySelector('.' + CLS_WRAP).style.visibility = 'visible';\n document.body.style.cursor = '';\n var dragStopArgs = {\n draggedItem: this.dragItem,\n event: e.event,\n target: e.target,\n droppedItem: this.tbItem[this.droppedIndex],\n clonedElement: null,\n index: this.droppedIndex,\n cancel: false\n };\n this.trigger('dragged', dragStopArgs, function (tabItemDropArgs) {\n if (tabItemDropArgs.cancel) {\n _this.refresh();\n } else {\n if (_this.items.length > 0 && _this.draggingItems.length > 0) {\n _this.items = _this.draggingItems;\n _this.selectedItem = _this.droppedIndex;\n _this.refresh();\n } else {\n _this.dragItem.querySelector('.' + CLS_WRAP).style.visibility = '';\n removeClass([_this.tbItems.querySelector('.' + CLS_INDICATOR)], CLS_HIDDEN$1);\n _this.selectTab(_this.droppedIndex, null, true);\n }\n }\n });\n this.dragItem = null;\n };\n /**\n * Enables or disables the specified Tab item. On passing value as `false`, the item will be disabled.\n *\n * @param {number} index - Index value of target Tab item.\n * @param {boolean} value - Boolean value that determines whether the command should be enabled or disabled.\n * By default, isEnable is true.\n * @returns {void}.\n */\n Tab.prototype.enableTab = function (index, value) {\n var tbItems = selectAll('.' + CLS_TB_ITEM, this.element)[index];\n if (isNullOrUndefined(tbItems)) {\n return;\n }\n if (value === true) {\n tbItems.classList.remove(CLS_DISABLE$4, CLS_OVERLAY$2);\n tbItems.firstElementChild.setAttribute('tabindex', tbItems.firstElementChild.getAttribute('data-tabindex'));\n } else {\n tbItems.classList.add(CLS_DISABLE$4, CLS_OVERLAY$2);\n tbItems.firstElementChild.removeAttribute('tabindex');\n if (tbItems.classList.contains(CLS_ACTIVE$1)) {\n this.select(index + 1);\n }\n }\n if (!isNullOrUndefined(this.items[index])) {\n this.items[index].disabled = !value;\n this.dataBind();\n }\n tbItems.firstElementChild.setAttribute('aria-disabled', value === true ? 'false' : 'true');\n };\n /**\n * Adds new items to the Tab that accepts an array as Tab items.\n *\n * @param {TabItemModel[]} items - An array of item that is added to the Tab.\n * @param {number} index - Number value that determines where the items to be added. By default, index is 0.\n * @returns {void}.\n */\n Tab.prototype.addTab = function (items, index) {\n var _this = this;\n var addArgs = {\n addedItems: items,\n cancel: false\n };\n if (!this.isReplace) {\n this.trigger('adding', addArgs, function (tabAddingArgs) {\n if (!tabAddingArgs.cancel) {\n _this.addingTabContent(items, index);\n }\n });\n } else {\n this.addingTabContent(items, index);\n }\n if (this.isReact) {\n this.renderReactTemplates();\n }\n };\n Tab.prototype.addingTabContent = function (items, index) {\n var _this = this;\n var lastEleIndex = 0;\n this.hdrEle = select('.' + CLS_HEADER$1, this.element);\n if (isNullOrUndefined(this.hdrEle)) {\n this.items = items;\n this.reRenderItems();\n this.bindDraggable();\n } else {\n var tbItems = Array.from(selectAll('.e-tab-header .' + CLS_TB_ITEM, this.element));\n var itemsCount = tbItems.length;\n if (itemsCount !== 0) {\n lastEleIndex = this.getMaxIndicesFromItems(tbItems) + 1;\n }\n if (isNullOrUndefined(index)) {\n index = itemsCount - 1;\n }\n if (itemsCount < index || index < 0 || isNaN(index)) {\n return;\n }\n if (itemsCount === 0 && !isNullOrUndefined(this.hdrEle)) {\n this.hdrEle.style.display = '';\n }\n if (!isNullOrUndefined(this.bdrLine)) {\n this.bdrLine.classList.add(CLS_HIDDEN$1);\n }\n this.tbItems = select('.' + CLS_TB_ITEMS, this.getTabHeader());\n this.isAdd = true;\n var tabItems_2 = this.parseObject(items, index);\n this.isAdd = false;\n var i_1 = 0;\n var textValue_1;\n items.forEach(function (item, place) {\n textValue_1 = item.headerTemplate || item.header.text;\n if (!(isNullOrUndefined(item.headerTemplate || item.header) || isNullOrUndefined(textValue_1) || textValue_1.length === 0 && !isNullOrUndefined(item.header) && isNullOrUndefined(item.header.iconCss))) {\n if (tabItems_2[place]) {\n if (isNullOrUndefined(item.id)) {\n item.id = CLS_ITEM$2 + _this.tabId + '_' + TABITEMPREFIX + (lastEleIndex + place).toString();\n }\n tabItems_2[place].htmlAttributes['data-id'] = item.id;\n }\n _this.items.splice(index + i_1, 0, item);\n i_1++;\n }\n if (_this.isTemplate && !isNullOrUndefined(item.header) && !isNullOrUndefined(item.header.text)) {\n var no = lastEleIndex + place;\n var ele = _this.createElement('div', {\n id: CLS_CONTENT$1 + _this.tabId + '_' + no,\n className: CLS_ITEM$2,\n attrs: {\n role: 'tabpanel',\n 'aria-labelledby': CLS_ITEM$2 + '_' + no\n }\n });\n _this.cntEle.insertBefore(ele, _this.cntEle.children[index + place]);\n var eleTrg = _this.getTrgContent(_this.cntEle, no.toString());\n _this.getContent(eleTrg, item.content, 'render', index);\n }\n });\n this.tbObj.addItems(tabItems_2, index);\n if (!this.isReplace) {\n this.trigger('added', {\n addedItems: items\n });\n }\n if (this.selectedItem === index) {\n this.select(index);\n } else {\n this.setActiveBorder();\n this.tbItem = selectAll('.' + CLS_TB_ITEM, this.getTabHeader());\n }\n this.bindDraggable();\n }\n };\n /**\n * Removes the items in the Tab from the specified index.\n *\n * @param {number} index - Index of target item that is going to be removed.\n * @returns {void}.\n */\n Tab.prototype.removeTab = function (index) {\n var _this = this;\n var trg = selectAll('.' + CLS_TB_ITEM, this.element)[index];\n if (isNullOrUndefined(trg)) {\n return;\n }\n var removeArgs = {\n removedItem: trg,\n removedIndex: index,\n cancel: false\n };\n this.trigger('removing', removeArgs, function (tabRemovingArgs) {\n if (!tabRemovingArgs.cancel) {\n var header = select('#' + CLS_ITEM$2 + _this.tabId + '_' + _this.extIndex(trg.id), select('.' + CLS_TB_ITEMS, _this.element));\n if (!isNullOrUndefined(header)) {\n _this.clearTabTemplate(header, 'headerTemplate', CLS_TB_ITEM);\n }\n _this.tbObj.removeItems(index);\n if (_this.allowDragAndDrop && index !== Array.prototype.indexOf.call(_this.itemIndexArray, trg.id)) {\n index = Array.prototype.indexOf.call(_this.itemIndexArray, trg.id);\n }\n var targetEleIndex = _this.itemIndexArray.indexOf(trg.id);\n _this.items.splice(targetEleIndex, 1);\n _this.itemIndexArray.splice(targetEleIndex, 1);\n _this.refreshActiveBorder();\n var cntTrg = select('#' + CLS_CONTENT$1 + _this.tabId + '_' + _this.extIndex(trg.id), select('.' + CLS_CONTENT$1, _this.element));\n if (!isNullOrUndefined(cntTrg)) {\n _this.clearTabTemplate(cntTrg, 'content', CLS_ITEM$2);\n detach(cntTrg);\n }\n _this.trigger('removed', tabRemovingArgs);\n if (_this.draggableItems && _this.draggableItems.length > 0) {\n _this.draggableItems[index].destroy();\n _this.draggableItems[index] = null;\n _this.draggableItems.splice(index, 1);\n }\n if (trg.classList.contains(CLS_ACTIVE$1)) {\n index = index > selectAll('.' + CLS_TB_ITEM + ':not(.' + CLS_TB_POPUP + ')', _this.element).length - 1 ? index - 1 : index;\n _this.enableAnimation = false;\n _this.selectedItem = index;\n _this.select(index);\n } else if (index !== _this.selectedItem) {\n if (index < _this.selectedItem) {\n index = _this.itemIndexArray.indexOf(_this.tbItem[_this.selectedItem].id);\n _this.setProperties({\n selectedItem: index > -1 ? index : _this.selectedItem\n }, true);\n _this.prevIndex = _this.selectedItem;\n }\n _this.tbItem = selectAll('.' + CLS_TB_ITEM, _this.getTabHeader());\n }\n if (selectAll('.' + CLS_TB_ITEM, _this.element).length === 0) {\n _this.hdrEle.style.display = 'none';\n }\n _this.enableAnimation = true;\n }\n });\n };\n /**\n * Shows or hides the Tab that is in the specified index.\n *\n * @param {number} index - Index value of target item.\n * @param {boolean} value - Based on this Boolean value, item will be hide (false) or show (true). By default, value is true.\n * @returns {void}.\n */\n Tab.prototype.hideTab = function (index, value) {\n var items;\n var item = selectAll('.' + CLS_TB_ITEM, this.element)[index];\n if (isNullOrUndefined(item)) {\n return;\n }\n if (isNullOrUndefined(value)) {\n value = true;\n }\n this.bdrLine.classList.add(CLS_HIDDEN$1);\n if (value === true) {\n item.classList.add(CLS_HIDDEN$1);\n items = selectAll('.' + CLS_TB_ITEM + ':not(.' + CLS_HIDDEN$1 + ')', this.tbItems);\n if (items.length !== 0 && item.classList.contains(CLS_ACTIVE$1)) {\n if (index !== 0) {\n for (var i = index - 1; i >= 0; i--) {\n if (!this.tbItem[i].classList.contains(CLS_HIDDEN$1)) {\n this.select(i);\n break;\n } else if (i === 0) {\n for (var k = index + 1; k < this.tbItem.length; k++) {\n if (!this.tbItem[k].classList.contains(CLS_HIDDEN$1)) {\n this.select(k);\n break;\n }\n }\n }\n }\n } else {\n for (var k = index + 1; k < this.tbItem.length; k++) {\n if (!this.tbItem[k].classList.contains(CLS_HIDDEN$1)) {\n this.select(k);\n break;\n }\n }\n }\n } else if (items.length === 0) {\n this.element.classList.add(CLS_HIDDEN$1);\n }\n } else {\n this.element.classList.remove(CLS_HIDDEN$1);\n items = selectAll('.' + CLS_TB_ITEM + ':not(.' + CLS_HIDDEN$1 + ')', this.tbItems);\n item.classList.remove(CLS_HIDDEN$1);\n if (items.length === 0) {\n this.select(index);\n }\n }\n this.setActiveBorder();\n if (!isNullOrUndefined(item.firstElementChild)) {\n item.firstElementChild.setAttribute('aria-hidden', '' + value);\n }\n if (this.overflowMode === 'Popup' && this.tbObj) {\n this.tbObj.refreshOverflow();\n }\n };\n Tab.prototype.selectTab = function (args, event, isInteracted) {\n if (event === void 0) {\n event = null;\n }\n if (isInteracted === void 0) {\n isInteracted = false;\n }\n this.isInteracted = isInteracted;\n this.select(args, event);\n };\n /**\n * Specifies the index or HTMLElement to select an item from the Tab.\n *\n * @param {number | HTMLElement} args - Index or DOM element is used for selecting an item from the Tab.\n * @param {Event} event - An event which takes place in DOM.\n * @returns {void}\n */\n Tab.prototype.select = function (args, event) {\n var _this = this;\n var tabHeader = this.getTabHeader();\n this.tbItems = select('.' + CLS_TB_ITEMS, tabHeader);\n this.tbItem = selectAll('.' + CLS_TB_ITEM, tabHeader);\n this.content = select('.' + CLS_CONTENT$1, this.element);\n this.prevItem = this.tbItem[this.prevIndex];\n if (isNullOrUndefined(this.selectedItem) || this.selectedItem < 0 || this.tbItem.length <= this.selectedItem || isNaN(this.selectedItem)) {\n this.selectedItem = 0;\n } else {\n this.selectedID = this.extIndex(this.tbItem[this.selectedItem].id);\n }\n var trg = this.tbItem[args];\n if (isNullOrUndefined(trg)) {\n this.selectedID = '0';\n } else {\n this.selectingID = this.extIndex(trg.id);\n }\n if (!isNullOrUndefined(this.prevItem) && !this.prevItem.classList.contains(CLS_DISABLE$4)) {\n this.prevItem.children.item(0).setAttribute('tabindex', this.prevItem.firstElementChild.getAttribute('tabindex'));\n }\n var eventArg = {\n event: event,\n previousItem: this.prevItem,\n previousIndex: this.prevIndex,\n selectedItem: this.tbItem[this.selectedItem],\n selectedIndex: this.selectedItem,\n selectedContent: !isNullOrUndefined(this.content) ? select('#' + CLS_CONTENT$1 + this.tabId + '_' + this.selectedID, this.content) : null,\n selectingItem: trg,\n selectingIndex: args,\n selectingContent: !isNullOrUndefined(this.content) ? select('#' + CLS_CONTENT$1 + this.tabId + '_' + this.selectingID, this.content) : null,\n isSwiped: this.isSwiped,\n isInteracted: this.isInteracted,\n cancel: false\n };\n if (!this.initRender) {\n this.trigger('selecting', eventArg, function (selectArgs) {\n if (!selectArgs.cancel) {\n _this.selectingContent(args, _this.isInteracted);\n }\n });\n } else {\n this.selectingContent(args, this.isInteracted);\n }\n this.isInteracted = false;\n };\n Tab.prototype.selectingContent = function (args, isInteracted) {\n if (typeof args === 'number') {\n if (!isNullOrUndefined(this.tbItem[args]) && (this.tbItem[args].classList.contains(CLS_DISABLE$4) || this.tbItem[args].classList.contains(CLS_HIDDEN$1))) {\n for (var i = args + 1; i < this.items.length; i++) {\n if (this.items[i].disabled === false && this.items[i].visible === true) {\n args = i;\n break;\n } else {\n args = 0;\n }\n }\n }\n if (this.tbItem.length > args && args >= 0 && !isNaN(args)) {\n this.prevIndex = this.selectedItem;\n this.prevItem = this.tbItem[this.prevIndex];\n if (this.tbItem[args].classList.contains(CLS_TB_POPUP) && this.reorderActiveTab) {\n this.setActive(this.popupHandler(this.tbItem[args]), null, isInteracted);\n if (!isNullOrUndefined(this.items) && this.items.length > 0 && this.allowDragAndDrop) {\n this.tbItem = selectAll('.' + CLS_TB_ITEMS + ' .' + CLS_TB_ITEM, this.hdrEle);\n var item = this.items[args];\n this.items.splice(args, 1);\n this.items.splice(this.tbItem.length - 1, 0, item);\n var itemId = this.itemIndexArray[args];\n this.itemIndexArray.splice(args, 1);\n this.itemIndexArray.splice(this.tbItem.length - 1, 0, itemId);\n }\n } else {\n this.setActive(args, null, isInteracted);\n }\n } else {\n this.setActive(0, null, isInteracted);\n }\n } else if (args instanceof HTMLElement) {\n this.setActive(this.getEleIndex(args), null, isInteracted);\n }\n };\n /**\n * Gets the item index from the Tab.\n *\n * @param {string} tabItemId - Item ID is used for getting index from the Tab.\n * @returns {number} - It returns item index.\n */\n Tab.prototype.getItemIndex = function (tabItemId) {\n var tabIndex;\n for (var i = 0; i < this.tbItem.length; i++) {\n var value = this.tbItem[i].getAttribute('data-id');\n if (tabItemId === value) {\n tabIndex = i;\n break;\n }\n }\n return tabIndex;\n };\n /**\n * Specifies the value to disable/enable the Tab component.\n * When set to `true`, the component will be disabled.\n *\n * @param {boolean} value - Based on this Boolean value, Tab will be enabled (false) or disabled (true).\n * @returns {void}.\n */\n Tab.prototype.disable = function (value) {\n this.setCssClass(this.element, CLS_DISABLE$4, value);\n this.element.setAttribute('aria-disabled', '' + value);\n };\n /**\n * Get the properties to be maintained in the persisted state.\n *\n * @returns {string} - It returns the persisted state.\n */\n Tab.prototype.getPersistData = function () {\n return this.addOnPersist(['selectedItem', 'actEleId']);\n };\n /**\n * Returns the current module name.\n *\n * @returns {string} - It returns the current module name.\n * @private\n */\n Tab.prototype.getModuleName = function () {\n return 'tab';\n };\n /**\n * Gets called when the model property changes.The data that describes the old and new values of the property that changed.\n *\n * @param {TabModel} newProp - It contains the new value of data.\n * @param {TabModel} oldProp - It contains the old value of data.\n * @returns {void}\n * @private\n */\n Tab.prototype.onPropertyChanged = function (newProp, oldProp) {\n var _this = this;\n var sortedKeys = Object.keys(newProp).sort(function (a, b) {\n if (a === 'items') return -1;\n if (b === 'items') return 1;\n return 0;\n });\n for (var _i = 0, sortedKeys_1 = sortedKeys; _i < sortedKeys_1.length; _i++) {\n var prop = sortedKeys_1[_i];\n switch (prop) {\n case 'width':\n setStyleAttribute(this.element, {\n width: formatUnit(newProp.width)\n });\n break;\n case 'height':\n setStyleAttribute(this.element, {\n height: formatUnit(newProp.height)\n });\n this.setContentHeight(false);\n break;\n case 'cssClass':\n var headerEle = this.element.querySelector('.' + CLS_HEADER$1);\n if (oldProp.cssClass !== '' && !isNullOrUndefined(oldProp.cssClass)) {\n this.setCssClass(this.element, oldProp.cssClass, false);\n this.setCssClass(this.element, newProp.cssClass, true);\n if (!isNullOrUndefined(headerEle)) {\n this.setCssClass(headerEle, oldProp.cssClass, false);\n this.setCssClass(headerEle, newProp.cssClass, true);\n }\n } else {\n this.setCssClass(this.element, newProp.cssClass, true);\n if (!isNullOrUndefined(headerEle)) {\n this.setCssClass(headerEle, newProp.cssClass, true);\n }\n }\n break;\n case 'items':\n this.evalOnPropertyChangeItems(newProp, oldProp);\n break;\n case 'showCloseButton':\n this.setCloseButton(newProp.showCloseButton);\n break;\n case 'reorderActiveTab':\n this.refreshActiveTabBorder();\n break;\n case 'selectedItem':\n this.selectedItem = oldProp.selectedItem;\n this.select(newProp.selectedItem);\n break;\n case 'headerPlacement':\n this.changeOrientation(newProp.headerPlacement);\n break;\n case 'enableRtl':\n this.setRTL(newProp.enableRtl);\n break;\n case 'overflowMode':\n this.tbObj.overflowMode = newProp.overflowMode;\n this.tbObj.dataBind();\n this.refreshActiveTabBorder();\n break;\n case 'heightAdjustMode':\n this.setContentHeight(false);\n this.select(this.selectedItem);\n break;\n case 'scrollStep':\n if (this.tbObj) {\n this.tbObj.scrollStep = this.scrollStep;\n }\n break;\n case 'allowDragAndDrop':\n this.bindDraggable();\n break;\n case 'dragArea':\n if (this.allowDragAndDrop) {\n this.draggableItems.forEach(function (item) {\n item.dragArea = _this.dragArea;\n });\n this.refresh();\n }\n break;\n }\n }\n };\n /**\n * To refresh the active tab contents.\n *\n * @returns {void}\n */\n Tab.prototype.refreshActiveTab = function () {\n if (this.isReact && this.isTemplate) {\n this.clearTemplate();\n }\n if (!this.isTemplate) {\n if (this.element.querySelector('.' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1)) {\n detach(this.element.querySelector('.' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1).children[0]);\n detach(this.element.querySelector('.' + CLS_CONTENT$1).querySelector('.' + CLS_ACTIVE$1).children[0]);\n var item = this.items[this.selectedItem];\n var pos = isNullOrUndefined(item.header) || isNullOrUndefined(item.header.iconPosition) ? '' : item.header.iconPosition;\n var css = isNullOrUndefined(item.header) || isNullOrUndefined(item.header.iconCss) ? '' : item.header.iconCss;\n var text = item.headerTemplate || item.header.text;\n var txtWrap = this.createElement('div', {\n className: CLS_TEXT,\n attrs: {\n 'role': 'presentation'\n }\n });\n if (!isNullOrUndefined(text.tagName)) {\n txtWrap.appendChild(text);\n } else {\n this.headerTextCompile(txtWrap, text, this.selectedItem);\n }\n var tEle = void 0;\n var icon = this.createElement('span', {\n className: CLS_ICONS + ' ' + CLS_TAB_ICON + ' ' + CLS_ICON + '-' + pos + ' ' + css\n });\n var tConts = this.createElement('div', {\n className: CLS_TEXT_WRAP\n });\n tConts.appendChild(txtWrap);\n if (text !== '' && text !== undefined && css !== '') {\n if (pos === 'left' || pos === 'top') {\n tConts.insertBefore(icon, tConts.firstElementChild);\n } else {\n tConts.appendChild(icon);\n }\n tEle = txtWrap;\n this.isIconAlone = false;\n } else {\n tEle = css === '' ? txtWrap : icon;\n if (tEle === icon) {\n detach(txtWrap);\n tConts.appendChild(icon);\n this.isIconAlone = true;\n }\n }\n var tabIndex = isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString();\n var wrapAtt = item.disabled ? {} : {\n tabIndex: tabIndex,\n 'data-tabindex': tabIndex,\n role: 'tab',\n 'aria-selected': 'true',\n 'aria-disabled': 'false'\n };\n tConts.appendChild(this.btnCls.cloneNode(true));\n var wraper = this.createElement('div', {\n className: CLS_WRAP,\n attrs: wrapAtt\n });\n wraper.appendChild(tConts);\n if (pos === 'top' || pos === 'bottom') {\n this.element.classList.add('e-vertical-icon');\n }\n this.element.querySelector('.' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1).appendChild(wraper);\n var crElem = this.createElement('div');\n var cnt = item.content;\n var eleStr = void 0;\n if (typeof cnt === 'string' || isNullOrUndefined(cnt.innerHTML)) {\n if (typeof cnt === 'string' && this.enableHtmlSanitizer) {\n cnt = SanitizeHtmlHelper.sanitize(cnt);\n }\n if (cnt[0] === '.' || cnt[0] === '#') {\n if (document.querySelectorAll(cnt).length) {\n var eleVal = document.querySelector(cnt);\n eleStr = eleVal.outerHTML.trim();\n crElem.appendChild(eleVal);\n eleVal.style.display = '';\n } else {\n this.compileElement(crElem, cnt, 'content', this.selectedItem);\n }\n } else {\n this.compileElement(crElem, cnt, 'content', this.selectedItem);\n }\n } else {\n crElem.appendChild(cnt);\n }\n if (!isNullOrUndefined(eleStr)) {\n if (this.templateEle.indexOf(cnt.toString()) === -1) {\n this.templateEle.push(cnt.toString());\n }\n }\n this.element.querySelector('.' + CLS_ITEM$2 + '.' + CLS_ACTIVE$1).appendChild(crElem);\n }\n } else {\n var tabItems = this.element.querySelector('.' + CLS_TB_ITEMS);\n var element = this.element.querySelector('.' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1);\n var index = this.getIndexFromEle(element.id);\n var header = element.innerText;\n var detachContent = this.element.querySelector('.' + CLS_CONTENT$1).querySelector('.' + CLS_ACTIVE$1).children[0];\n var mainContents = detachContent.innerHTML;\n detach(element);\n detach(detachContent);\n var attr = {\n className: CLS_TB_ITEM + ' ' + CLS_TEMPLATE$1 + ' ' + CLS_ACTIVE$1,\n id: CLS_ITEM$2 + this.tabId + '_' + index\n };\n var txtString = this.createElement('span', {\n className: CLS_TEXT,\n innerHTML: header,\n attrs: {\n 'role': 'presentation'\n }\n }).outerHTML;\n var conte = this.createElement('div', {\n className: CLS_TEXT_WRAP,\n innerHTML: txtString + this.btnCls.outerHTML\n }).outerHTML;\n var tabIndex = element.firstElementChild.getAttribute('data-tabindex');\n var wrap = this.createElement('div', {\n className: CLS_WRAP,\n innerHTML: conte,\n attrs: {\n tabIndex: tabIndex,\n 'data-tabindex': tabIndex,\n role: 'tab',\n 'aria-controls': CLS_CONTENT$1 + this.tabId + '_' + index,\n 'aria-selected': 'true',\n 'aria-disabled': 'false'\n }\n });\n tabItems.insertBefore(this.createElement('div', attr), tabItems.children[index + 1]);\n this.element.querySelector('.' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1).appendChild(wrap);\n var crElem = this.createElement('div', {\n innerHTML: mainContents\n });\n this.element.querySelector('.' + CLS_CONTENT$1).querySelector('.' + CLS_ACTIVE$1).appendChild(crElem);\n }\n if (this.isReact) {\n this.renderReactTemplates();\n }\n };\n /**\n * To refresh the active tab indicator.\n *\n * @returns {void}\n */\n Tab.prototype.refreshActiveTabBorder = function () {\n var activeEle = select('.' + CLS_TB_ITEM + '.' + CLS_TB_POPUP + '.' + CLS_ACTIVE$1, this.element);\n if (!isNullOrUndefined(activeEle) && this.reorderActiveTab) {\n this.select(this.getEleIndex(activeEle));\n }\n this.refreshActiveBorder();\n };\n __decorate$7([Collection([], TabItem)], Tab.prototype, \"items\", void 0);\n __decorate$7([Property('100%')], Tab.prototype, \"width\", void 0);\n __decorate$7([Property('auto')], Tab.prototype, \"height\", void 0);\n __decorate$7([Property('')], Tab.prototype, \"cssClass\", void 0);\n __decorate$7([Property(0)], Tab.prototype, \"selectedItem\", void 0);\n __decorate$7([Property('Top')], Tab.prototype, \"headerPlacement\", void 0);\n __decorate$7([Property('Content')], Tab.prototype, \"heightAdjustMode\", void 0);\n __decorate$7([Property('Scrollable')], Tab.prototype, \"overflowMode\", void 0);\n __decorate$7([Property('Dynamic')], Tab.prototype, \"loadOn\", void 0);\n __decorate$7([Property(false)], Tab.prototype, \"enablePersistence\", void 0);\n __decorate$7([Property(true)], Tab.prototype, \"enableHtmlSanitizer\", void 0);\n __decorate$7([Property(false)], Tab.prototype, \"showCloseButton\", void 0);\n __decorate$7([Property(true)], Tab.prototype, \"reorderActiveTab\", void 0);\n __decorate$7([Property()], Tab.prototype, \"scrollStep\", void 0);\n __decorate$7([Property()], Tab.prototype, \"dragArea\", void 0);\n __decorate$7([Property(false)], Tab.prototype, \"allowDragAndDrop\", void 0);\n __decorate$7([Property(true)], Tab.prototype, \"clearTemplates\", void 0);\n __decorate$7([Complex({}, TabAnimationSettings)], Tab.prototype, \"animation\", void 0);\n __decorate$7([Event()], Tab.prototype, \"created\", void 0);\n __decorate$7([Event()], Tab.prototype, \"adding\", void 0);\n __decorate$7([Event()], Tab.prototype, \"added\", void 0);\n __decorate$7([Event()], Tab.prototype, \"selecting\", void 0);\n __decorate$7([Event()], Tab.prototype, \"selected\", void 0);\n __decorate$7([Event()], Tab.prototype, \"removing\", void 0);\n __decorate$7([Event()], Tab.prototype, \"removed\", void 0);\n __decorate$7([Event()], Tab.prototype, \"onDragStart\", void 0);\n __decorate$7([Event()], Tab.prototype, \"dragging\", void 0);\n __decorate$7([Event()], Tab.prototype, \"dragged\", void 0);\n __decorate$7([Event()], Tab.prototype, \"destroyed\", void 0);\n Tab = __decorate$7([NotifyPropertyChanges], Tab);\n return Tab;\n}(Component);\nvar __extends$8 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 ROOT = 'e-treeview';\nvar CONTROL = 'e-control';\nvar COLLAPSIBLE = 'e-icon-collapsible';\nvar EXPANDABLE = 'e-icon-expandable';\nvar LISTITEM = 'e-list-item';\nvar LISTTEXT = 'e-list-text';\nvar LISTWRAP = 'e-text-wrap';\nvar IELISTWRAP = 'e-ie-wrap';\nvar PARENTITEM = 'e-list-parent';\nvar HOVER = 'e-hover';\nvar ACTIVE = 'e-active';\nvar LOAD = 'e-icons-spinner';\nvar PROCESS = 'e-process';\nvar ICON = 'e-icons';\nvar TEXTWRAP = 'e-text-content';\nvar INPUT = 'e-input';\nvar INPUTGROUP = 'e-input-group';\nvar TREEINPUT = 'e-tree-input';\nvar EDITING = 'e-editing';\nvar RTL$1 = 'e-rtl';\nvar INTERACTION = 'e-interaction';\nvar DRAGITEM = 'e-drag-item';\nvar DROPPABLE = 'e-droppable';\nvar DRAGGING = 'e-dragging';\nvar SIBLING = 'e-sibling';\nvar DROPIN = 'e-drop-in';\nvar DROPNEXT = 'e-drop-next';\nvar DROPOUT = 'e-drop-out';\nvar NODROP = 'e-no-drop';\nvar FULLROWWRAP = 'e-fullrow-wrap';\nvar FULLROW = 'e-fullrow';\nvar SELECTED$1 = 'e-selected';\nvar EXPANDED = 'e-expanded';\nvar NODECOLLAPSED = 'e-node-collapsed';\nvar DISABLE = 'e-disable';\nvar DROPCOUNT = 'e-drop-count';\nvar CHECK = 'e-check';\nvar INDETERMINATE = 'e-stop';\nvar CHECKBOXWRAP = 'e-treeview-checkbox';\nvar CHECKBOXFRAME = 'e-frame';\nvar CHECKBOXRIPPLE = 'e-ripple-container';\nvar RIPPLE = 'e-ripple';\nvar RIPPLEELMENT = 'e-ripple-element';\nvar FOCUS = 'e-node-focus';\nvar IMAGE = 'e-list-img';\nvar BIGGER = 'e-bigger';\nvar SMALL = 'e-small';\nvar CHILD = 'e-has-child';\nvar ITEM_ANIMATION_ACTIVE = 'e-animation-active';\nvar DISABLED$1 = 'e-disabled';\nvar PREVENTSELECT = 'e-prevent';\nvar treeAriaAttr = {\n treeRole: 'group',\n itemRole: 'treeitem',\n listRole: 'group',\n itemText: '',\n wrapperRole: ''\n};\n/**\n * Configures the fields to bind to the properties of node in the TreeView component.\n */\nvar FieldsSettings = /** @__PURE__ @class */function (_super) {\n __extends$8(FieldsSettings, _super);\n function FieldsSettings() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$8([Property('child')], FieldsSettings.prototype, \"child\", void 0);\n __decorate$8([Property([])], FieldsSettings.prototype, \"dataSource\", void 0);\n __decorate$8([Property('expanded')], FieldsSettings.prototype, \"expanded\", void 0);\n __decorate$8([Property('hasChildren')], FieldsSettings.prototype, \"hasChildren\", void 0);\n __decorate$8([Property('htmlAttributes')], FieldsSettings.prototype, \"htmlAttributes\", void 0);\n __decorate$8([Property('iconCss')], FieldsSettings.prototype, \"iconCss\", void 0);\n __decorate$8([Property('id')], FieldsSettings.prototype, \"id\", void 0);\n __decorate$8([Property('imageUrl')], FieldsSettings.prototype, \"imageUrl\", void 0);\n __decorate$8([Property('isChecked')], FieldsSettings.prototype, \"isChecked\", void 0);\n __decorate$8([Property('parentID')], FieldsSettings.prototype, \"parentID\", void 0);\n __decorate$8([Property(null)], FieldsSettings.prototype, \"query\", void 0);\n __decorate$8([Property('selectable')], FieldsSettings.prototype, \"selectable\", void 0);\n __decorate$8([Property('selected')], FieldsSettings.prototype, \"selected\", void 0);\n __decorate$8([Property(null)], FieldsSettings.prototype, \"tableName\", void 0);\n __decorate$8([Property('text')], FieldsSettings.prototype, \"text\", void 0);\n __decorate$8([Property('tooltip')], FieldsSettings.prototype, \"tooltip\", void 0);\n __decorate$8([Property('navigateUrl')], FieldsSettings.prototype, \"navigateUrl\", void 0);\n return FieldsSettings;\n}(ChildProperty);\n/**\n * Configures animation settings for the TreeView component.\n */\nvar ActionSettings = /** @__PURE__ @class */function (_super) {\n __extends$8(ActionSettings, _super);\n function ActionSettings() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$8([Property('SlideDown')], ActionSettings.prototype, \"effect\", void 0);\n __decorate$8([Property(400)], ActionSettings.prototype, \"duration\", void 0);\n __decorate$8([Property('linear')], ActionSettings.prototype, \"easing\", void 0);\n return ActionSettings;\n}(ChildProperty);\n/**\n * Configures the animation settings for expanding and collapsing nodes in TreeView.\n */\nvar NodeAnimationSettings = /** @__PURE__ @class */function (_super) {\n __extends$8(NodeAnimationSettings, _super);\n function NodeAnimationSettings() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$8([Complex({\n effect: 'SlideUp',\n duration: 400,\n easing: 'linear'\n }, ActionSettings)], NodeAnimationSettings.prototype, \"collapse\", void 0);\n __decorate$8([Complex({\n effect: 'SlideDown',\n duration: 400,\n easing: 'linear'\n }, ActionSettings)], NodeAnimationSettings.prototype, \"expand\", void 0);\n return NodeAnimationSettings;\n}(ChildProperty);\n/**\n * The TreeView component is used to represent hierarchical data in a tree like structure with advanced\n * functions to perform edit, drag and drop, selection with check-box, and more.\n * ```html\n *
    \n * ```\n * ```typescript\n * let treeObj: TreeView = new TreeView();\n * treeObj.appendTo('#tree');\n * ```\n */\nvar TreeView = /** @__PURE__ @class */function (_super) {\n __extends$8(TreeView, _super);\n function TreeView(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.isRefreshed = false;\n _this.preventExpand = false;\n _this.checkedElement = [];\n _this.disableNode = [];\n _this.validArr = [];\n _this.validNodes = [];\n _this.expandChildren = [];\n _this.isFieldChange = false;\n _this.changeDataSource = false;\n _this.hasTemplate = false;\n _this.isFirstRender = false;\n // Specifies whether the node is dropped or not\n _this.isNodeDropped = false;\n _this.isInteracted = false;\n _this.isRightClick = false;\n _this.mouseDownStatus = false;\n _this.isDropIn = false;\n _this.OldCheckedData = [];\n return _this;\n }\n TreeView_1 = TreeView;\n /**\n * Get component name.\n *\n * @returns {string} - returns module name.\n * @private\n */\n TreeView.prototype.getModuleName = function () {\n return 'treeview';\n };\n /**\n * Initialize the event handler\n *\n * @returns {void}\n */\n TreeView.prototype.preRender = function () {\n var _this = this;\n this.checkActionNodes = [];\n this.parentNodeCheck = [];\n this.dragStartAction = false;\n this.isAnimate = false;\n this.keyConfigs = {\n escape: 'escape',\n end: 'end',\n enter: 'enter',\n f2: 'f2',\n home: 'home',\n moveDown: 'downarrow',\n moveLeft: 'leftarrow',\n moveRight: 'rightarrow',\n moveUp: 'uparrow',\n ctrlDown: 'ctrl+downarrow',\n ctrlUp: 'ctrl+uparrow',\n ctrlEnter: 'ctrl+enter',\n ctrlHome: 'ctrl+home',\n ctrlEnd: 'ctrl+end',\n ctrlA: 'ctrl+A',\n shiftDown: 'shift+downarrow',\n shiftUp: 'shift+uparrow',\n shiftEnter: 'shift+enter',\n shiftHome: 'shift+home',\n shiftEnd: 'shift+end',\n csDown: 'ctrl+shift+downarrow',\n csUp: 'ctrl+shift+uparrow',\n csEnter: 'ctrl+shift+enter',\n csHome: 'ctrl+shift+home',\n csEnd: 'ctrl+shift+end',\n space: 'space',\n shiftSpace: 'shift+space',\n ctrlSpace: 'ctrl+space'\n };\n this.listBaseOption = {\n expandCollapse: true,\n showIcon: true,\n expandIconClass: EXPANDABLE,\n ariaAttributes: treeAriaAttr,\n expandIconPosition: 'Left',\n itemCreated: function (e) {\n _this.beforeNodeCreate(e);\n },\n enableHtmlSanitizer: this.enableHtmlSanitizer,\n itemNavigable: this.fullRowNavigable\n };\n this.updateListProp(this.fields);\n this.aniObj = new Animation({});\n this.treeList = [];\n this.isLoaded = false;\n this.isInitalExpand = false;\n this.expandChildren = [];\n this.index = 0;\n this.setTouchClass();\n this.DDTTreeData = JSON.parse(JSON.stringify(this.fields.dataSource));\n if (isNullOrUndefined(this.selectedNodes)) {\n this.setProperties({\n selectedNodes: []\n }, true);\n }\n if (isNullOrUndefined(this.checkedNodes)) {\n this.setProperties({\n checkedNodes: []\n }, true);\n }\n if (isNullOrUndefined(this.expandedNodes)) {\n this.setProperties({\n expandedNodes: []\n }, true);\n } else {\n this.isInitalExpand = true;\n }\n };\n /**\n * Get the properties to be maintained in the persisted state.\n *\n * @returns {string} - returns the persisted data\n * @hidden\n */\n TreeView.prototype.getPersistData = function () {\n var keyEntity = ['selectedNodes', 'checkedNodes', 'expandedNodes'];\n return this.addOnPersist(keyEntity);\n };\n /**\n * To Initialize the control rendering\n *\n * @private\n * @returns {void}\n */\n TreeView.prototype.render = function () {\n this.initialRender = true;\n this.initialize();\n this.setDataBinding(false);\n this.setDisabledMode();\n this.setExpandOnType();\n if (!this.disabled) {\n this.setRipple();\n }\n this.wireEditingEvents(this.allowEditing);\n this.setDragAndDrop(this.allowDragAndDrop);\n if (!this.disabled) {\n this.wireEvents();\n }\n this.initialRender = false;\n this.renderComplete();\n };\n TreeView.prototype.initialize = function () {\n this.element.setAttribute('role', 'tree');\n this.element.setAttribute('aria-activedescendant', this.element.id + '_active');\n this.setCssClass(null, this.cssClass);\n this.setEnableRtl();\n this.setFullRow(this.fullRowSelect);\n this.setTextWrap();\n this.nodeTemplateFn = this.templateComplier(this.nodeTemplate);\n };\n TreeView.prototype.setDisabledMode = function () {\n if (this.disabled) {\n this.element.classList.add(DISABLED$1);\n this.element.setAttribute('aria-disabled', 'true');\n } else {\n this.element.classList.remove(DISABLED$1);\n this.element.setAttribute('aria-disabled', 'false');\n }\n };\n TreeView.prototype.setEnableRtl = function () {\n (this.enableRtl ? addClass : removeClass)([this.element], RTL$1);\n };\n TreeView.prototype.setRipple = function () {\n var tempStr = '.' + FULLROW + ',.' + TEXTWRAP;\n var rippleModel = {\n selector: tempStr,\n ignore: '.' + TEXTWRAP + ' > .' + ICON + ',.' + INPUTGROUP + ',.' + INPUT + ', .' + CHECKBOXWRAP\n };\n this.rippleFn = rippleEffect(this.element, rippleModel);\n var iconModel = {\n selector: '.' + TEXTWRAP + ' > .' + ICON,\n isCenterRipple: true\n };\n this.rippleIconFn = rippleEffect(this.element, iconModel);\n };\n TreeView.prototype.setFullRow = function (isEnabled) {\n (isEnabled ? addClass : removeClass)([this.element], FULLROWWRAP);\n };\n TreeView.prototype.setMultiSelect = function (isEnabled) {\n if (isEnabled) {\n this.element.setAttribute('aria-multiselectable', 'true');\n } else {\n this.element.setAttribute('aria-multiselectable', 'false');\n }\n };\n TreeView.prototype.templateComplier = function (template) {\n if (template) {\n this.hasTemplate = true;\n this.element.classList.add(INTERACTION);\n try {\n if (typeof template !== 'function' && document.querySelectorAll(template).length) {\n return compile(document.querySelector(template).innerHTML.trim());\n } else {\n return compile(template);\n }\n } catch (e) {\n return compile(template);\n }\n }\n this.element.classList.remove(INTERACTION);\n return undefined;\n };\n TreeView.prototype.setDataBinding = function (changeDataSource) {\n var _this = this;\n this.treeList.push('false');\n if (this.fields.dataSource instanceof DataManager) {\n this.isOffline = this.fields.dataSource.dataSource.offline;\n if (this.fields.dataSource.ready) {\n this.fields.dataSource.ready.then(function (e) {\n _this.isOffline = _this.fields.dataSource.dataSource.offline;\n if (_this.fields.dataSource instanceof DataManager && _this.isOffline) {\n _this.treeList.pop();\n _this.treeData = e.result;\n _this.isNumberTypeId = _this.getType();\n _this.setRootData();\n _this.renderItems(true);\n if (_this.treeList.length === 0 && !_this.isLoaded) {\n _this.finalize();\n }\n }\n }).catch(function (e) {\n _this.trigger('actionFailure', {\n error: e\n });\n });\n } else {\n this.fields.dataSource.executeQuery(this.getQuery(this.fields)).then(function (e) {\n _this.treeList.pop();\n _this.treeData = e.result;\n _this.isNumberTypeId = _this.getType();\n _this.setRootData();\n if (changeDataSource) {\n _this.changeDataSource = true;\n }\n _this.renderItems(true);\n _this.changeDataSource = false;\n if (_this.treeList.length === 0 && !_this.isLoaded) {\n _this.finalize();\n }\n }).catch(function (e) {\n _this.trigger('actionFailure', {\n error: e\n });\n });\n }\n } else {\n this.treeList.pop();\n if (isNullOrUndefined(this.fields.dataSource)) {\n this.rootData = this.treeData = [];\n } else {\n this.treeData = JSON.parse(JSON.stringify(this.fields.dataSource));\n this.setRootData();\n }\n this.isNumberTypeId = this.getType();\n this.renderItems(false);\n }\n if (this.treeList.length === 0 && !this.isLoaded) {\n this.finalize();\n }\n };\n TreeView.prototype.getQuery = function (mapper, value) {\n if (value === void 0) {\n value = null;\n }\n var columns = [];\n var query;\n if (!mapper.query) {\n query = new Query();\n var prop = this.getActualProperties(mapper);\n for (var _i = 0, _a = Object.keys(prop); _i < _a.length; _i++) {\n var col = _a[_i];\n if (col !== 'dataSource' && col !== 'tableName' && col !== 'child' && !!mapper[\"\" + col] && col !== 'url' && columns.indexOf(mapper[\"\" + col]) === -1) {\n columns.push(mapper[\"\" + col]);\n }\n }\n query.select(columns);\n if (Object.prototype.hasOwnProperty.call(prop, 'tableName')) {\n query.from(mapper.tableName);\n }\n } else {\n query = mapper.query.clone();\n }\n ListBase.addSorting(this.sortOrder, mapper.text, query);\n if (!isNullOrUndefined(value) && !isNullOrUndefined(mapper.parentID)) {\n query.where(mapper.parentID, 'equal', this.isNumberTypeId ? parseFloat(value) : value);\n }\n return query;\n };\n TreeView.prototype.getType = function () {\n return this.treeData[0] ? typeof getValue(this.fields.id, this.treeData[0]) === 'number' ? true : false : false;\n };\n TreeView.prototype.setRootData = function () {\n this.dataType = this.getDataType(this.treeData, this.fields);\n if (this.dataType === 1) {\n this.groupedData = this.getGroupedData(this.treeData, this.fields.parentID);\n var rootItems = this.getChildNodes(this.treeData, undefined, true);\n if (isNullOrUndefined(rootItems)) {\n this.rootData = [];\n } else {\n this.rootData = rootItems;\n }\n } else {\n this.rootData = this.treeData;\n }\n };\n TreeView.prototype.isChildObject = function () {\n if (typeof this.fields.child === 'object') {\n return true;\n } else {\n return false;\n }\n };\n TreeView.prototype.renderItems = function (isSorted) {\n this.listBaseOption.ariaAttributes.level = 1;\n var sortedData = this.getSortedData(this.rootData);\n this.ulElement = ListBase.createList(this.createElement, isSorted ? this.rootData : sortedData, this.listBaseOption);\n this.element.appendChild(this.ulElement);\n var rootNodes = this.ulElement.querySelectorAll('.e-list-item');\n if (this.loadOnDemand === false) {\n var i = 0;\n while (i < rootNodes.length) {\n this.renderChildNodes(rootNodes[parseInt(i.toString(), 10)], true, null, true);\n i++;\n }\n }\n var parentEle = selectAll('.' + PARENTITEM, this.element);\n if (parentEle.length === 1 && rootNodes && rootNodes.length !== 0 || this.loadOnDemand) {\n this.finalizeNode(this.element);\n }\n this.parentNodeCheck = [];\n this.parentCheckData = [];\n this.updateCheckedStateFromDS();\n if (this.autoCheck && this.showCheckBox && !this.isLoaded) {\n this.updateParentCheckState();\n }\n };\n /**\n * Update the checkedNodes from datasource at initial rendering\n *\n * @returns {void}\n */\n TreeView.prototype.updateCheckedStateFromDS = function () {\n this.validNodes = [];\n if (this.treeData && this.showCheckBox) {\n if (this.dataType === 1) {\n var mapper = this.fields;\n var resultData = new DataManager(this.treeData).executeLocal(new Query().where(mapper.isChecked, 'equal', true, false));\n for (var i = 0; i < resultData.length; i++) {\n var resultId = resultData[parseInt(i.toString(), 10)][this.fields.id] ? resultData[parseInt(i.toString(), 10)][this.fields.id].toString() : null;\n if (this.checkedNodes.indexOf(resultId) === -1 && !this.isLoaded) {\n this.checkDisabledState(resultId, resultData[i]);\n }\n if (resultData[parseInt(i.toString(), 10)][this.fields.hasChildren]) {\n var id = resultData[parseInt(i.toString(), 10)][this.fields.id];\n var childData = new DataManager(this.treeData).executeLocal(new Query().where(mapper.parentID, 'equal', id, false));\n for (var child = 0; child < childData.length; child++) {\n var childId = childData[parseInt(child.toString(), 10)][this.fields.id] ? childData[parseInt(child.toString(), 10)][this.fields.id].toString() : null;\n if (this.checkedNodes.indexOf(childId) === -1 && this.autoCheck) {\n this.checkDisabledState(childId, childData[child]);\n }\n }\n }\n }\n for (var i = 0; i < this.checkedNodes.length; i++) {\n var mapper_1 = this.fields;\n var checkState = new DataManager(this.treeData).executeLocal(new Query().where(mapper_1.id, 'equal', this.checkedNodes[parseInt(i.toString(), 10)], true));\n if (checkState[0] && this.autoCheck) {\n this.getCheckedNodeDetails(mapper_1, checkState);\n this.checkIndeterminateState(checkState[0]);\n }\n if (checkState.length > 0) {\n var checkedId = checkState[0][this.fields.id] ? checkState[0][this.fields.id].toString() : null;\n if (this.checkedNodes.indexOf(checkedId) > -1 && this.validNodes.indexOf(checkedId) === -1) {\n this.validNodes.push(checkedId);\n }\n }\n var checkedData = new DataManager(this.treeData).executeLocal(new Query().where(mapper_1.parentID, 'equal', this.checkedNodes[parseInt(i.toString(), 10)], true));\n for (var index = 0; index < checkedData.length; index++) {\n var checkedId = checkedData[parseInt(index.toString(), 10)][this.fields.id] ? checkedData[parseInt(index.toString(), 10)][this.fields.id].toString() : null;\n if (this.checkedNodes.indexOf(checkedId) === -1 && this.autoCheck) {\n this.checkDisabledState(checkedId, checkedData[index]);\n }\n if (this.checkedNodes.indexOf(checkedId) > -1 && this.validNodes.indexOf(checkedId) === -1) {\n this.validNodes.push(checkedId);\n }\n }\n }\n } else if (this.dataType === 2 || this.fields.dataSource instanceof DataManager && this.isOffline) {\n for (var index = 0; index < this.treeData.length; index++) {\n var fieldId = this.treeData[parseInt(index.toString(), 10)][this.fields.id] ? this.treeData[parseInt(index.toString(), 10)][this.fields.id].toString() : '';\n if (this.treeData[parseInt(index.toString(), 10)][this.fields.isChecked] && !this.isLoaded && this.checkedNodes.indexOf(fieldId) === -1) {\n this.checkDisabledState(fieldId, this.treeData[index]);\n }\n if (this.checkedNodes.indexOf(fieldId) > -1 && this.validNodes.indexOf(fieldId) === -1) {\n this.validNodes.push(fieldId);\n }\n var childItems = getValue(this.fields.child.toString(), this.treeData[parseInt(index.toString(), 10)]);\n if (childItems) {\n this.updateChildCheckState(childItems, this.treeData[parseInt(index.toString(), 10)]);\n }\n }\n this.validNodes = this.enablePersistence ? this.checkedNodes : this.validNodes;\n }\n this.setProperties({\n checkedNodes: this.validNodes\n }, true);\n }\n };\n /**\n * To check whether the list data has sub child and to change the parent check state accordingly\n *\n * @param {FieldsSettingsModel} mapper - The mapper object containing field settings.\n * @param {Object[]} checkNodes - The array of checked nodes.\n * @returns {void}\n * @private\n */\n TreeView.prototype.getCheckedNodeDetails = function (mapper, checkNodes) {\n var id = checkNodes[0][this.fields.parentID] ? checkNodes[0][this.fields.parentID].toString() : null;\n var count = 0;\n var element = this.element.querySelector('[data-uid=\"' + checkNodes[0][this.fields.id] + '\"]');\n var parentEle = this.element.querySelector('[data-uid=\"' + checkNodes[0][this.fields.parentID] + '\"]');\n if (!element && !parentEle) {\n if (this.parentNodeCheck.indexOf(id) === -1) {\n this.parentNodeCheck.push(id);\n }\n var childNodes = this.getChildNodes(this.treeData, id);\n for (var i = 0; i < childNodes.length; i++) {\n var childId = childNodes[parseInt(i.toString(), 10)][this.fields.id] ? childNodes[parseInt(i.toString(), 10)][this.fields.id].toString() : null;\n if (this.checkedNodes.indexOf(childId) !== -1) {\n count++;\n }\n if (count === childNodes.length && this.checkedNodes.indexOf(id) === -1) {\n this.checkDisabledState(id);\n }\n }\n var preElement = new DataManager(this.treeData).executeLocal(new Query().where(mapper.id, 'equal', id, true));\n this.getCheckedNodeDetails(mapper, preElement);\n } else if (parentEle) {\n var check = select('.' + CHECK, parentEle);\n if (!check) {\n this.changeState(parentEle, 'indeterminate', null, true, true);\n }\n }\n };\n /**\n * Update the checkedNodes and parent state when all the child Nodes are in checkedstate at initial rendering\n *\n * @returns {void}\n * @private\n */\n TreeView.prototype.updateParentCheckState = function () {\n var indeterminate = selectAll('.' + INDETERMINATE, this.element);\n var childCheckedElement;\n var data = this.treeData;\n if (this.element.classList.contains('e-filtering')) {\n data = this.DDTTreeData;\n }\n for (var i = 0; i < indeterminate.length; i++) {\n var node = closest(indeterminate[parseInt(i.toString(), 10)], '.' + LISTITEM);\n var nodeId = node.getAttribute('data-uid').toString();\n var OldCheckedNodes = void 0;\n if (this.element.classList.contains('e-filtering')) {\n OldCheckedNodes = new DataManager(this.OldCheckedData).executeLocal(new Query().where('parentID', 'equal', nodeId, true));\n }\n if (this.dataType === 1) {\n childCheckedElement = new DataManager(data).executeLocal(new Query().where(this.fields.parentID, 'equal', nodeId, true));\n } else {\n childCheckedElement = this.getChildNodes(data, nodeId);\n }\n var count = 0;\n if (childCheckedElement) {\n var _loop_1 = function (j) {\n var childId = childCheckedElement[parseInt(j.toString(), 10)][this_1.fields.id].toString();\n if (this_1.checkedNodes.indexOf(childId) !== -1) {\n count++;\n } else if (this_1.element.classList.contains('e-filtering') && OldCheckedNodes.findIndex(function (e) {\n return e['id'] === childId;\n }) !== -1) {\n count++;\n }\n };\n var this_1 = this;\n for (var j = 0; j < childCheckedElement.length; j++) {\n _loop_1(j);\n }\n if (count === childCheckedElement.length) {\n var nodeCheck = node.getAttribute('data-uid');\n if (this.checkedNodes.indexOf(nodeCheck) === -1) {\n this.checkDisabledState(nodeCheck);\n }\n this.changeState(node, 'check', null, true, true);\n } else if (count === 0 && this.checkedNodes.length === 0) {\n this.changeState(node, 'uncheck', null, true, true);\n }\n }\n var parentElement = closest(node, '.' + PARENTITEM);\n if (!isNullOrUndefined(parentElement)) {\n this.ensureParentCheckState(closest(parentElement, '.' + LISTITEM));\n }\n }\n };\n /**\n * Change the parent to indeterminate state whenever the child is in checked state which is not rendered in DOM\n *\n * @param {Object} data - The data object to check for indeterminate state.\n * @returns {void}\n * @private\n */\n TreeView.prototype.checkIndeterminateState = function (data) {\n var element;\n if (this.dataType === 1) {\n element = this.element.querySelector('[data-uid=\"' + data[this.fields.parentID] + '\"]');\n } else {\n element = this.element.querySelector('[data-uid=\"' + data[this.fields.id] + '\"]');\n }\n if (element) {\n var ariaChecked = element.getAttribute('aria-checked');\n if (ariaChecked !== 'true') {\n this.changeState(element, 'indeterminate', null, true, true);\n }\n } else if (this.dataType === 2) {\n if (this.parentNodeCheck.indexOf(data[this.fields.id].toString()) === -1) {\n this.parentNodeCheck.push(data[this.fields.id].toString());\n }\n }\n };\n /**\n * Update the checkedNodes for child and subchild from datasource (hierarchical datasource) at initial rendering\n *\n * @param {Object[]} childItems - The array of child items to update the checked state.\n * @param {Object} treeData - The tree data object containing field values.\n * @returns {void}\n * @private\n */\n TreeView.prototype.updateChildCheckState = function (childItems, treeData) {\n var count = 0;\n var checkedParent = treeData[this.fields.id] ? treeData[this.fields.id].toString() : '';\n for (var index = 0; index < childItems.length; index++) {\n var checkedChild = childItems[parseInt(index.toString(), 10)][this.fields.id] ? childItems[parseInt(index.toString(), 10)][this.fields.id].toString() : '';\n if (childItems[parseInt(index.toString(), 10)][this.fields.isChecked] && !this.isLoaded && this.checkedNodes.indexOf(checkedChild) === -1) {\n this.checkDisabledState(checkedChild, childItems[index]);\n }\n if (this.checkedNodes.indexOf(checkedParent) !== -1 && this.checkedNodes.indexOf(checkedChild) === -1 && this.autoCheck) {\n this.checkDisabledState(checkedChild, childItems[index]);\n }\n if (this.checkedNodes.indexOf(checkedChild) !== -1 && this.autoCheck) {\n count++;\n }\n if (this.checkedNodes.indexOf(checkedChild) > -1 && this.validNodes.indexOf(checkedChild) === -1) {\n this.validNodes.push(checkedChild);\n }\n var subChildItems = getValue(this.fields.child.toString(), childItems[parseInt(index.toString(), 10)]);\n if (subChildItems && subChildItems.length) {\n if (this.parentCheckData.indexOf(treeData) === -1) {\n this.parentCheckData.push(treeData);\n }\n this.updateChildCheckState(subChildItems, childItems[parseInt(index.toString(), 10)]);\n }\n if (count === childItems.length && this.autoCheck && this.checkedNodes.indexOf(checkedParent) === -1) {\n this.checkDisabledState(checkedParent, treeData);\n }\n }\n if (count !== 0 && this.autoCheck) {\n this.checkIndeterminateState(treeData);\n for (var len = 0; len < this.parentCheckData.length; len++) {\n if (treeData !== this.parentCheckData[parseInt(len.toString(), 10)] && this.parentCheckData[parseInt(len.toString(), 10)]) {\n this.checkIndeterminateState(this.parentCheckData[parseInt(len.toString(), 10)]);\n }\n }\n }\n this.parentCheckData = [];\n };\n TreeView.prototype.beforeNodeCreate = function (e) {\n if (this.showCheckBox) {\n var checkboxEle = createCheckBox(this.createElement, true, {\n cssClass: this.touchClass\n });\n checkboxEle.classList.add(CHECKBOXWRAP);\n var icon = select('div.' + ICON, e.item);\n var id = e.item.getAttribute('data-uid');\n e.item.childNodes[0].insertBefore(checkboxEle, e.item.childNodes[0].childNodes[isNullOrUndefined(icon) ? 0 : 1]);\n var checkValue = getValue(e.fields.isChecked, e.curData);\n if (this.checkedNodes.indexOf(id) > -1) {\n select('.' + CHECKBOXFRAME, checkboxEle).classList.add(CHECK);\n e.item.setAttribute('aria-checked', 'true');\n this.addCheck(e.item);\n } else if (!isNullOrUndefined(checkValue) && checkValue.toString() === 'true') {\n select('.' + CHECKBOXFRAME, checkboxEle).classList.add(CHECK);\n e.item.setAttribute('aria-checked', 'true');\n this.addCheck(e.item);\n } else {\n e.item.setAttribute('aria-checked', 'false');\n }\n var frame = select('.' + CHECKBOXFRAME, checkboxEle);\n EventHandler.add(frame, 'mousedown', this.frameMouseHandler, this);\n EventHandler.add(frame, 'mouseup', this.frameMouseHandler, this);\n }\n if (this.fullRowSelect) {\n this.createFullRow(e.item);\n }\n if (this.allowMultiSelection && !e.item.classList.contains(SELECTED$1)) {\n e.item.setAttribute('aria-selected', 'false');\n }\n var fields = e.fields;\n this.addActionClass(e, fields.selected, SELECTED$1);\n this.addActionClass(e, fields.expanded, EXPANDED);\n e.item.setAttribute('tabindex', '-1');\n EventHandler.add(e.item, 'focus', this.focusIn, this);\n if (!isNullOrUndefined(this.nodeTemplateFn)) {\n var textEle = e.item.querySelector('.' + LISTTEXT);\n var dataId = e.item.getAttribute('data-uid');\n textEle.innerHTML = '';\n this.renderNodeTemplate(e.curData, textEle, dataId);\n }\n var eventArgs = {\n node: e.item,\n nodeData: e.curData,\n text: e.text\n };\n if (!this.isRefreshed) {\n this.trigger('drawNode', eventArgs);\n if (e.curData[this.fields.selectable] === false && !this.showCheckBox) {\n e.item.classList.add(PREVENTSELECT);\n e.item.firstElementChild.setAttribute('style', 'cursor: not-allowed');\n }\n }\n };\n TreeView.prototype.frameMouseHandler = function (e) {\n var rippleSpan = select('.' + CHECKBOXRIPPLE, e.target.parentElement);\n rippleMouseHandler(e, rippleSpan);\n };\n TreeView.prototype.addActionClass = function (e, action, cssClass) {\n var data = e.curData;\n var actionValue = getValue(action, data);\n if (!isNullOrUndefined(actionValue) && actionValue.toString() !== 'false') {\n e.item.classList.add(cssClass);\n }\n };\n TreeView.prototype.getDataType = function (ds, mapper) {\n if (this.fields.dataSource instanceof DataManager) {\n for (var i = 0; i < ds.length; i++) {\n if (this.isOffline) {\n if (typeof mapper.child === 'string' && isNullOrUndefined(getValue(mapper.child, ds[parseInt(i.toString(), 10)])) && !isNullOrUndefined(getValue(mapper.parentID, ds[parseInt(i.toString(), 10)]))) {\n return 1;\n }\n } else if (typeof mapper.child === 'string' && isNullOrUndefined(getValue(mapper.child, ds[parseInt(i.toString(), 10)]))) {\n return 1;\n }\n }\n return 2;\n }\n for (var i = 0, len = ds.length; i < len; i++) {\n if (typeof mapper.child === 'string' && (!isNullOrUndefined(getValue(mapper.child, ds[parseInt(i.toString(), 10)])) || Object.prototype.hasOwnProperty.call(ds[parseInt(i.toString(), 10)], mapper.child))) {\n return 2;\n }\n if (this.isChildObject()) {\n return 2;\n }\n if (!isNullOrUndefined(getValue(mapper.parentID, ds[parseInt(i.toString(), 10)])) || !isNullOrUndefined(getValue(mapper.hasChildren, ds[parseInt(i.toString(), 10)]))) {\n return 1;\n }\n }\n return 1;\n };\n TreeView.prototype.getGroupedData = function (dataSource, groupBy) {\n var cusQuery = new Query().group(groupBy);\n var ds = ListBase.getDataSource(dataSource, cusQuery);\n var grpItem = [];\n for (var j = 0; j < ds.length; j++) {\n var itemObj = ds[parseInt(j.toString(), 10)].items;\n grpItem.push(itemObj);\n }\n return grpItem;\n };\n TreeView.prototype.getSortedData = function (list) {\n if (list && this.sortOrder !== 'None') {\n list = ListBase.getDataSource(list, ListBase.addSorting(this.sortOrder, this.fields.text));\n }\n return list;\n };\n TreeView.prototype.finalizeNode = function (element, isFromExpandAll, expandChild) {\n var _this = this;\n if (!isFromExpandAll) {\n this.updateAttributes(element);\n }\n if (!expandChild) {\n var eNodes = selectAll('.' + EXPANDED, element);\n if (!this.loadOnDemand && this.fields.dataSource instanceof DataManager) {\n this.isInitalExpand = this.treeData.filter(function (e) {\n return e[_this.fields.expanded] === true;\n }).length > 0 ? true : this.isInitalExpand;\n }\n if (!this.isInitalExpand) {\n for (var i = 0; i < eNodes.length; i++) {\n this.renderChildNodes(eNodes[parseInt(i.toString(), 10)]);\n }\n }\n removeClass(eNodes, EXPANDED);\n }\n if (!isFromExpandAll) {\n this.updateList();\n }\n if (this.isLoaded) {\n this.updateCheckedProp();\n }\n };\n TreeView.prototype.updateAttributes = function (element) {\n var iNodes = selectAll('.' + IMAGE, element);\n for (var k = 0; k < iNodes.length; k++) {\n iNodes[parseInt(k.toString(), 10)].setAttribute('alt', IMAGE);\n }\n if (this.isLoaded) {\n var sNodes = selectAll('.' + SELECTED$1, element);\n for (var i = 0; i < sNodes.length; i++) {\n this.selectNode(sNodes[parseInt(i.toString(), 10)], null);\n break;\n }\n removeClass(sNodes, SELECTED$1);\n }\n var cNodes = selectAll('.' + LISTITEM + ':not(.' + EXPANDED + ')', element);\n for (var j = 0; j < cNodes.length; j++) {\n var icon = select('div.' + ICON, cNodes[parseInt(j.toString(), 10)]);\n if (icon && icon.classList.contains(EXPANDABLE)) {\n this.disableExpandAttr(cNodes[parseInt(j.toString(), 10)]);\n }\n }\n };\n TreeView.prototype.updateCheckedProp = function () {\n if (this.showCheckBox) {\n var nodes = [].concat([], this.checkedNodes);\n this.setProperties({\n checkedNodes: nodes\n }, true);\n }\n };\n TreeView.prototype.ensureIndeterminate = function () {\n if (this.autoCheck) {\n var liElement = selectAll('li', this.element);\n var ulElement = void 0;\n for (var i = 0; i < liElement.length; i++) {\n if (liElement[parseInt(i.toString(), 10)].classList.contains(LISTITEM)) {\n ulElement = select('.' + PARENTITEM, liElement[parseInt(i.toString(), 10)]);\n if (ulElement) {\n this.ensureParentCheckState(liElement[parseInt(i.toString(), 10)]);\n } else {\n this.ensureChildCheckState(liElement[parseInt(i.toString(), 10)]);\n }\n }\n }\n } else {\n var indeterminate = selectAll('.' + INDETERMINATE, this.element);\n for (var i = 0; i < indeterminate.length; i++) {\n indeterminate[parseInt(i.toString(), 10)].classList.remove(INDETERMINATE);\n }\n }\n };\n TreeView.prototype.ensureParentCheckState = function (element) {\n if (!isNullOrUndefined(element)) {\n if (element.classList.contains(ROOT)) {\n return;\n }\n var ulElement = element;\n if (element.classList.contains(LISTITEM)) {\n ulElement = select('.' + PARENTITEM, element);\n }\n var checkedNodes = selectAll('.' + CHECKBOXWRAP + ' .' + CHECK, ulElement);\n var indeterminateNodes = selectAll('.' + INDETERMINATE, ulElement);\n var nodes = selectAll(this.checkDisabledChildren ? '.' + LISTITEM : '.' + LISTITEM + ':not(.' + DISABLE + ')', ulElement);\n var checkBoxEle = element.getElementsByClassName(CHECKBOXWRAP)[0];\n var count = nodes.length;\n var checkedCount = checkedNodes.length;\n var dataUid_1 = element.getAttribute('data-uid');\n if (this.element.classList.contains('e-filtering')) {\n var oldCheckedNodes = new DataManager(this.OldCheckedData).executeLocal(new Query().where('parentID', 'equal', dataUid_1, true));\n checkedCount = oldCheckedNodes.length;\n var parentNode = new DataManager(this.OldCheckedData).executeLocal(new Query().where('hasChildren', 'equal', true, true));\n if (parentNode.length > 0 && this.OldCheckedData.some(function (oldNode) {\n return oldNode.id === dataUid_1;\n })) {\n checkedCount = parentNode.length;\n }\n var childItems = [];\n if (this.dataType === 1) {\n childItems = new DataManager(this.DDTTreeData).executeLocal(new Query().where(this.fields.parentID, 'equal', dataUid_1, true));\n } else {\n childItems = this.getChildNodes(this.DDTTreeData, dataUid_1);\n }\n count = childItems.length;\n }\n if (count === 0 && checkedCount === 0) {\n return;\n } else if (count === checkedCount) {\n this.changeState(checkBoxEle, 'check', null, true, true);\n } else if (checkedCount > 0 || indeterminateNodes.length > 0) {\n this.changeState(checkBoxEle, 'indeterminate', null, true, true);\n } else if (checkedCount === 0) {\n this.changeState(checkBoxEle, 'uncheck', null, true, true);\n }\n var parentUL = closest(element, '.' + PARENTITEM);\n if (!isNullOrUndefined(parentUL)) {\n var currentParent = closest(parentUL, '.' + LISTITEM);\n this.ensureParentCheckState(currentParent);\n }\n }\n };\n TreeView.prototype.ensureChildCheckState = function (element, e, isFromExpandAll) {\n if (!isNullOrUndefined(element)) {\n var childElement = select('.' + PARENTITEM, element);\n var checkBoxes = void 0;\n if (!isNullOrUndefined(childElement)) {\n checkBoxes = selectAll('.' + CHECKBOXWRAP, childElement);\n var isChecked = element.getElementsByClassName(CHECKBOXFRAME)[0].classList.contains(CHECK);\n var parentCheck = element.getElementsByClassName(CHECKBOXFRAME)[0].classList.contains(INDETERMINATE);\n var childCheck = childElement.querySelectorAll('li');\n var checkedState = void 0;\n for (var index = 0; index < checkBoxes.length; index++) {\n var childId = childCheck[parseInt(index.toString(), 10)].getAttribute('data-uid');\n if (!isNullOrUndefined(this.currentLoadData) && !isNullOrUndefined(getValue(this.fields.isChecked, this.currentLoadData[parseInt(index.toString(), 10)]))) {\n checkedState = getValue(this.fields.isChecked, this.currentLoadData[parseInt(index.toString(), 10)]) ? 'check' : 'uncheck';\n if (this.ele !== -1) {\n checkedState = isChecked ? 'check' : 'uncheck';\n }\n if (checkedState === 'uncheck' && !isUndefined(this.parentNodeCheck) && this.autoCheck && this.parentNodeCheck.indexOf(childId) !== -1) {\n this.parentNodeCheck.splice(this.parentNodeCheck.indexOf(childId), 1);\n checkedState = 'indeterminate';\n }\n } else {\n var isNodeChecked = checkBoxes[parseInt(index.toString(), 10)].getElementsByClassName(CHECKBOXFRAME)[0].classList.contains(CHECK);\n if (isChecked) {\n checkedState = 'check';\n } else if (isNodeChecked && !this.isLoaded) {\n checkedState = 'check';\n } else if (this.checkedNodes.indexOf(childId) !== -1 && this.isLoaded && (parentCheck || isChecked)) {\n checkedState = 'check';\n } else if (childCheck[parseInt(index.toString(), 10)].classList.contains(CHILD) && !isUndefined(this.parentNodeCheck) && this.autoCheck && (isChecked || parentCheck) && this.parentNodeCheck.indexOf(childId) !== -1) {\n checkedState = 'indeterminate';\n this.parentNodeCheck.splice(this.parentNodeCheck.indexOf(childId), 1);\n } else if (this.dataType === 1 && !isUndefined(this.parentNodeCheck) && this.autoCheck && (isChecked || parentCheck) && this.parentNodeCheck.indexOf(childId) !== -1) {\n checkedState = 'indeterminate';\n this.parentNodeCheck.splice(this.parentNodeCheck.indexOf(childId), 1);\n } else {\n checkedState = 'uncheck';\n }\n }\n this.changeState(checkBoxes[parseInt(index.toString(), 10)], checkedState, e, true, true);\n }\n }\n if (this.autoCheck && this.isLoaded && !isFromExpandAll) {\n this.updateParentCheckState();\n }\n }\n };\n TreeView.prototype.doCheckBoxAction = function (nodes, doCheck) {\n if (!isNullOrUndefined(nodes)) {\n nodes.reverse();\n for (var len = nodes.length - 1; len >= 0; len--) {\n var liEle = this.getElement(nodes[parseInt(len.toString(), 10)]);\n if (isNullOrUndefined(liEle)) {\n var node = nodes[len - nodes.length] ? nodes[len - nodes.length].toString() : nodes[parseInt(len.toString(), 10)] ? nodes[parseInt(len.toString(), 10)].toString() : null;\n if (node !== '' && doCheck && node) {\n this.setValidCheckedNode(node);\n this.dynamicCheckState(node, doCheck);\n } else if (this.checkedNodes.indexOf(node) !== -1 && node !== '' && !doCheck) {\n this.checkedNodes.splice(this.checkedNodes.indexOf(node), 1);\n var childItems = this.getChildNodes(this.treeData, node);\n if (childItems) {\n for (var i = 0; i < childItems.length; i++) {\n var id = childItems[parseInt(i.toString(), 10)][this.fields.id] ? childItems[parseInt(i.toString(), 10)][this.fields.id].toString() : null;\n if (this.checkedNodes.indexOf(id) !== -1) {\n this.checkedNodes.splice(this.checkedNodes.indexOf(id), 1);\n var ele = this.element.querySelector('[data-uid=\"' + id + '\"]');\n if (ele) {\n this.changeState(ele, 'uncheck', null);\n }\n }\n }\n if (this.parentNodeCheck.indexOf(node) !== -1) {\n this.parentNodeCheck.splice(this.parentNodeCheck.indexOf(node), 1);\n }\n }\n if (node) {\n this.dynamicCheckState(node, doCheck);\n }\n this.updateField(this.treeData, this.fields, node, 'isChecked', null);\n }\n continue;\n }\n var checkBox = select('.' + PARENTITEM + ' .' + CHECKBOXWRAP, liEle);\n this.validateCheckNode(checkBox, !doCheck, liEle, null);\n }\n } else {\n var checkBoxes = selectAll('.' + CHECKBOXWRAP, this.element);\n if (this.loadOnDemand) {\n for (var index = 0; index < checkBoxes.length; index++) {\n this.updateFieldChecked(checkBoxes[parseInt(index.toString(), 10)], doCheck);\n this.changeState(checkBoxes[parseInt(index.toString(), 10)], doCheck ? 'check' : 'uncheck', null, null, null, doCheck);\n }\n } else {\n for (var index = 0; index < checkBoxes.length; index++) {\n this.updateFieldChecked(checkBoxes[parseInt(index.toString(), 10)], doCheck);\n this.changeState(checkBoxes[parseInt(index.toString(), 10)], doCheck ? 'check' : 'uncheck');\n }\n }\n }\n if (nodes) {\n for (var j = 0; j < nodes.length - 1; j++) {\n var node = nodes[parseInt(j.toString(), 10)] ? nodes[parseInt(j.toString(), 10)].toString() : '';\n if (!doCheck) {\n this.updateField(this.treeData, this.fields, node, 'isChecked', null);\n }\n }\n }\n if (this.autoCheck) {\n this.updateParentCheckState();\n }\n };\n TreeView.prototype.updateFieldChecked = function (checkbox, doCheck) {\n var currLi = closest(checkbox, '.' + LISTITEM);\n var id = currLi.getAttribute('data-uid');\n var nodeDetails = this.getNodeData(currLi);\n if (nodeDetails.isChecked === 'true' && !doCheck) {\n this.updateField(this.treeData, this.fields, id, 'isChecked', null);\n }\n };\n /**\n * Changes the parent and child check state while changing the checkedNodes via setmodel\n *\n * @param {string} node - The unique identifier of the node.\n * @param {boolean} doCheck - A boolean value indicating whether to check or uncheck the node.\n * @returns {void}\n * @private\n */\n TreeView.prototype.dynamicCheckState = function (node, doCheck) {\n if (this.dataType === 1) {\n var count = 0;\n var resultId = new DataManager(this.treeData).executeLocal(new Query().where(this.fields.id, 'equal', node, true));\n if (resultId[0]) {\n var id = resultId[0][this.fields.id] ? resultId[0][this.fields.id].toString() : null;\n var parent_1 = resultId[0][this.fields.parentID] ? resultId[0][this.fields.parentID].toString() : null;\n var parentElement = this.element.querySelector('[data-uid=\"' + parent_1 + '\"]');\n var element = this.element.querySelector('[data-uid=\"' + id + '\"]');\n var childNodes = this.getChildNodes(this.treeData, parent_1);\n if (childNodes) {\n for (var i = 0; i < childNodes.length; i++) {\n var childId = childNodes[parseInt(i.toString(), 10)][this.fields.id] ? childNodes[parseInt(i.toString(), 10)][this.fields.id].toString() : null;\n if (this.checkedNodes.indexOf(childId) !== -1) {\n count++;\n }\n }\n }\n if (this.checkedNodes.indexOf(node) !== -1 && parentElement && id === node && this.autoCheck) {\n this.changeState(parentElement, 'indeterminate', null);\n } else if (this.checkedNodes.indexOf(node) === -1 && element && id === node && !doCheck) {\n this.changeState(element, 'uncheck', null);\n } else if (this.checkedNodes.indexOf(node) !== -1 && element && id === node && doCheck) {\n this.changeState(element, 'check', null);\n } else if (this.checkedNodes.indexOf(node) === -1 && !element && parentElement && id === node && this.autoCheck && count !== 0) {\n this.changeState(parentElement, 'indeterminate', null);\n } else if (this.checkedNodes.indexOf(node) === -1 && !element && parentElement && id === node && this.autoCheck && count === 0) {\n this.changeState(parentElement, 'uncheck', null);\n } else if (!element && !parentElement && id === node && this.autoCheck) {\n this.updateIndeterminate(node, doCheck);\n }\n }\n } else if (this.dataType === 2 || this.fields.dataSource instanceof DataManager && this.isOffline) {\n var id = void 0;\n var parentElement = void 0;\n var check = void 0;\n for (var i = 0; i < this.treeData.length; i++) {\n id = this.treeData[parseInt(i.toString(), 10)][this.fields.id] ? this.treeData[parseInt(i.toString(), 10)][this.fields.id].toString() : '';\n parentElement = this.element.querySelector('[data-uid=\"' + id + '\"]');\n check = parentElement ? select('.' + CHECK, parentElement) : null;\n if (this.checkedNodes.indexOf(id) === -1 && parentElement && check && !doCheck) {\n this.changeState(parentElement, 'uncheck', null);\n }\n var subChild = getValue(this.fields.child.toString(), this.treeData[parseInt(i.toString(), 10)]);\n if (subChild) {\n this.updateChildIndeterminate(subChild, id, node, doCheck, id);\n }\n }\n }\n };\n /**\n * updates the parent and child check state while changing the checkedNodes via setmodel for listData\n *\n * @param {string} node - The unique identifier of the node.\n * @param {boolean} doCheck - A boolean value indicating whether to check or uncheck the node.\n * @returns {void}\n * @private\n */\n TreeView.prototype.updateIndeterminate = function (node, doCheck) {\n var indeterminateData = this.getTreeData(node);\n var count = 0;\n var parent;\n if (this.dataType === 1) {\n parent = indeterminateData[0][this.fields.parentID] ? indeterminateData[0][this.fields.parentID].toString() : null;\n }\n var childNodes = this.getChildNodes(this.treeData, parent);\n if (childNodes) {\n for (var i = 0; i < childNodes.length; i++) {\n var childId = childNodes[parseInt(i.toString(), 10)][this.fields.id] ? childNodes[parseInt(i.toString(), 10)][this.fields.id].toString() : null;\n if (this.checkedNodes.indexOf(childId) !== -1) {\n count++;\n }\n }\n }\n var parentElement = this.element.querySelector('[data-uid=\"' + parent + '\"]');\n if (parentElement && doCheck) {\n this.changeState(parentElement, 'indeterminate', null);\n } else if (!doCheck && parentElement && this.parentNodeCheck.indexOf(parent) === -1 && count !== 0) {\n this.changeState(parentElement, 'indeterminate', null);\n } else if (!doCheck && parentElement && this.parentNodeCheck.indexOf(parent) === -1 && count === 0) {\n this.changeState(parentElement, 'uncheck', null);\n } else if (!parentElement) {\n if (!doCheck && this.checkedNodes.indexOf(parent) === -1 && this.parentNodeCheck.indexOf(parent) !== -1) {\n this.parentNodeCheck.splice(this.parentNodeCheck.indexOf(parent), 1);\n } else if (doCheck && this.checkedNodes.indexOf(parent) === -1 && this.parentNodeCheck.indexOf(parent) === -1) {\n this.parentNodeCheck.push(parent);\n } else if (!doCheck && this.checkedNodes.indexOf(parent) !== -1 && this.parentNodeCheck.indexOf(parent) === -1 && count !== 0) {\n this.parentNodeCheck.push(parent);\n }\n this.updateIndeterminate(parent, doCheck);\n if (this.checkedNodes.indexOf(parent) !== -1 && !doCheck) {\n this.checkedNodes.splice(this.checkedNodes.indexOf(parent), 1);\n }\n }\n };\n /**\n * updates the parent and child check state while changing the checkedNodes via setmodel for hierarchical data\n *\n * @param {Object[]} subChild - Array of child nodes\n * @param {string} parent - Parent identifier\n * @param {string} node - Current node identifier\n * @param {boolean} doCheck - Boolean indicating whether to perform a check\n * @param {string} [child] - Optional child identifier\n * @returns {void}\n * @private\n */\n TreeView.prototype.updateChildIndeterminate = function (subChild, parent, node, doCheck, child) {\n var count = 0;\n for (var j = 0; j < subChild.length; j++) {\n var subId = subChild[parseInt(j.toString(), 10)][this.fields.id] ? subChild[parseInt(j.toString(), 10)][this.fields.id].toString() : '';\n if (this.checkedNodes.indexOf(subId) !== -1) {\n count++;\n }\n var parentElement = this.element.querySelector('[data-uid=\"' + parent + '\"]');\n var indeterminate = parentElement ? select('.' + INDETERMINATE, parentElement) : null;\n var check = parentElement ? select('.' + CHECK, parentElement) : null;\n var element = this.element.querySelector('[data-uid=\"' + subId + '\"]');\n var childElementCheck = element ? select('.' + CHECK, element) : null;\n if (this.checkedNodes.indexOf(node) !== -1 && parentElement && subId === node && this.autoCheck) {\n this.changeState(parentElement, 'indeterminate', null);\n } else if (this.checkedNodes.indexOf(node) === -1 && parentElement && !element && subId === node && !doCheck) {\n if (this.autoCheck) {\n this.changeState(parentElement, 'uncheck', null);\n } else {\n if (count !== 0) {\n this.changeState(parentElement, 'indeterminate', null);\n } else {\n this.changeState(parentElement, 'uncheck', null);\n }\n }\n } else if (this.checkedNodes.indexOf(node) === -1 && element && subId === node && !doCheck) {\n this.changeState(element, 'uncheck', null);\n } else if (this.checkedNodes.indexOf(node) === -1 && indeterminate && subId === node && this.autoCheck && count === 0 && !doCheck) {\n indeterminate.classList.remove(INDETERMINATE);\n } else if (this.checkedNodes.indexOf(node) === -1 && !element && check && subId === node && count === 0) {\n this.changeState(parentElement, 'uncheck', null);\n } else if (this.checkedNodes.indexOf(subId) === -1 && element && childElementCheck && count === 0) {\n this.changeState(element, 'uncheck', null);\n } else if (!element && !parentElement && subId === node || this.parentNodeCheck.indexOf(parent) !== -1 && this.autoCheck) {\n var childElement = this.element.querySelector('[data-uid=\"' + child + '\"]');\n if (doCheck && count !== 0) {\n this.changeState(childElement, 'indeterminate', null);\n } else if (doCheck && count === subChild.length && this.checkedNodes.indexOf(parent) === -1) {\n this.checkDisabledState(parent);\n } else if (!doCheck && count === 0 && this.parentNodeCheck.indexOf(parent) !== -1) {\n this.parentNodeCheck.splice(this.parentNodeCheck.indexOf(parent));\n }\n if (this.parentNodeCheck.indexOf(parent) === -1) {\n this.parentNodeCheck.push(parent);\n }\n }\n var innerChild = getValue(this.fields.child.toString(), subChild[parseInt(j.toString(), 10)]);\n if (innerChild) {\n this.updateChildIndeterminate(innerChild, subId, node, doCheck, child);\n }\n }\n };\n TreeView.prototype.changeState = function (wrapper, state, e, isPrevent, isAdd, doCheck) {\n var _this = this;\n var eventArgs;\n var currLi = closest(wrapper, '.' + LISTITEM);\n if (!this.checkDisabledChildren && currLi && (currLi.classList.contains(DISABLE) || this.disableNode && this.disableNode.indexOf(currLi.getAttribute('data-uid')) !== -1)) {\n return;\n }\n if (wrapper === currLi) {\n wrapper = select('.' + CHECKBOXWRAP, currLi);\n }\n if (!isPrevent) {\n this.checkActionNodes = [];\n eventArgs = this.getCheckEvent(currLi, state, e);\n this.trigger('nodeChecking', eventArgs, function (observedArgs) {\n if (!observedArgs.cancel) {\n _this.nodeCheckAction(wrapper, state, currLi, observedArgs, e, isPrevent, isAdd, doCheck);\n }\n });\n } else {\n this.nodeCheckAction(wrapper, state, currLi, eventArgs, e, isPrevent, isAdd, doCheck);\n }\n };\n TreeView.prototype.nodeCheckAction = function (wrapper, state, currLi, eventArgs, e, isPrevent, isAdd, doCheck) {\n var ariaState;\n var frameSpan = wrapper.getElementsByClassName(CHECKBOXFRAME)[0];\n if (state === 'check' && !frameSpan.classList.contains(CHECK)) {\n frameSpan.classList.remove(INDETERMINATE);\n frameSpan.classList.add(CHECK);\n this.addCheck(currLi);\n ariaState = 'true';\n } else if (state === 'uncheck' && (frameSpan.classList.contains(CHECK) || frameSpan.classList.contains(INDETERMINATE))) {\n removeClass([frameSpan], [CHECK, INDETERMINATE]);\n this.removeCheck(currLi);\n ariaState = 'false';\n } else if (state === 'indeterminate' && this.autoCheck) {\n frameSpan.classList.remove(CHECK);\n frameSpan.classList.add(INDETERMINATE);\n this.removeCheck(currLi);\n ariaState = 'mixed';\n }\n ariaState = state === 'check' ? 'true' : state === 'uncheck' ? 'false' : ariaState;\n if (!isNullOrUndefined(ariaState)) {\n currLi.setAttribute('aria-checked', ariaState);\n }\n if (isAdd) {\n var data = [].concat([], this.checkActionNodes);\n eventArgs = this.getCheckEvent(currLi, state, e);\n if (isUndefined(isPrevent)) {\n eventArgs.data = data;\n }\n }\n if (doCheck !== undefined) {\n this.ensureStateChange(currLi, doCheck);\n }\n if (!isPrevent) {\n if (!isNullOrUndefined(ariaState)) {\n currLi.setAttribute('aria-checked', ariaState);\n eventArgs.data[0].checked = ariaState;\n this.trigger('nodeChecked', eventArgs);\n this.checkActionNodes = [];\n }\n }\n };\n TreeView.prototype.addCheck = function (liEle) {\n var id = liEle.getAttribute('data-uid');\n if (!isNullOrUndefined(id) && this.checkedNodes.indexOf(id) === -1) {\n this.checkDisabledState(id);\n }\n };\n TreeView.prototype.removeCheck = function (liEle) {\n var index = this.checkedNodes.indexOf(liEle.getAttribute('data-uid'));\n if (index > -1) {\n this.checkedNodes.splice(index, 1);\n }\n };\n TreeView.prototype.getCheckEvent = function (currLi, action, e) {\n this.checkActionNodes.push(this.getNodeData(currLi));\n var nodeData = this.checkActionNodes;\n return {\n action: action,\n cancel: false,\n isInteracted: isNullOrUndefined(e) ? false : true,\n node: currLi,\n data: nodeData\n };\n };\n TreeView.prototype.finalize = function () {\n var firstUl = select('.' + PARENTITEM, this.element);\n if (!isNullOrUndefined(firstUl)) {\n firstUl.setAttribute('role', treeAriaAttr.treeRole);\n this.setMultiSelect(this.allowMultiSelection);\n var firstNode = select('.' + LISTITEM, this.element);\n if (firstNode) {\n firstNode.setAttribute('tabindex', '0');\n this.updateIdAttr(null, firstNode);\n }\n if (this.allowTextWrap) {\n this.updateWrap();\n }\n this.renderReactTemplates();\n this.hasPid = this.rootData[0] ? Object.prototype.hasOwnProperty.call(this.rootData[0], this.fields.parentID) : false;\n this.doExpandAction();\n }\n };\n TreeView.prototype.setTextWrap = function () {\n (this.allowTextWrap ? addClass : removeClass)([this.element], LISTWRAP);\n if (Browser.isIE) {\n (this.allowTextWrap ? addClass : removeClass)([this.element], IELISTWRAP);\n }\n };\n TreeView.prototype.updateWrap = function (ulEle) {\n if (!this.fullRowSelect) {\n return;\n }\n var liEle = ulEle ? selectAll('.' + LISTITEM, ulEle) : this.liList;\n var length = liEle.length;\n for (var i = 0; i < length; i++) {\n this.calculateWrap(liEle[parseInt(i.toString(), 10)]);\n }\n };\n TreeView.prototype.calculateWrap = function (liEle) {\n var element = select('.' + FULLROW, liEle);\n if (element && element.nextElementSibling) {\n element.style.height = this.allowTextWrap ? element.nextElementSibling.offsetHeight + 'px' : '';\n }\n };\n TreeView.prototype.doExpandAction = function () {\n var _this = this;\n var eUids = this.expandedNodes;\n if (!this.loadOnDemand && this.fields.dataSource instanceof DataManager) {\n this.isInitalExpand = this.treeData.filter(function (e) {\n return e[_this.fields.expanded] === true;\n }).length > 0 ? true : this.isInitalExpand;\n }\n if (this.isInitalExpand && eUids.length > 0) {\n this.setProperties({\n expandedNodes: []\n }, true);\n if (this.fields.dataSource instanceof DataManager) {\n this.expandGivenNodes(eUids);\n } else {\n for (var i = 0; i < eUids.length; i++) {\n var eNode = select('[data-uid=\"' + eUids[parseInt(i.toString(), 10)] + '\"]', this.element);\n if (!isNullOrUndefined(eNode)) {\n var icon = select('.' + EXPANDABLE, select('.' + TEXTWRAP, eNode));\n if (!isNullOrUndefined(icon)) {\n this.expandAction(eNode, icon, null);\n }\n } else {\n if (eUids[parseInt(i.toString(), 10)] && this.expandChildren.indexOf(eUids[parseInt(i.toString(), 10)]) === -1) {\n this.expandChildren.push(eUids[parseInt(i.toString(), 10)].toString());\n }\n continue;\n }\n }\n this.afterFinalized();\n }\n } else {\n this.afterFinalized();\n }\n };\n TreeView.prototype.expandGivenNodes = function (arr) {\n var _this = this;\n this.expandCallback(arr[this.index], function () {\n _this.index++;\n if (_this.index < arr.length) {\n _this.expandGivenNodes(arr);\n } else {\n _this.afterFinalized();\n }\n });\n if (this.index > 0) {\n this.index = 0;\n }\n };\n TreeView.prototype.expandCallback = function (eUid, callback) {\n var eNode = select('[data-uid=\"' + eUid + '\"]', this.element);\n if (!isNullOrUndefined(eNode)) {\n var icon = select('.' + EXPANDABLE, select('.' + TEXTWRAP, eNode));\n if (!isNullOrUndefined(icon)) {\n this.expandAction(eNode, icon, null, false, callback);\n }\n callback();\n } else {\n callback();\n }\n };\n TreeView.prototype.afterFinalized = function () {\n this.doSelectionAction();\n this.updateCheckedProp();\n this.isAnimate = true;\n this.isInitalExpand = false;\n if ((!this.isLoaded || this.isFieldChange) && !this.isNodeDropped) {\n var eventArgs = {\n data: this.treeData\n };\n this.trigger('dataBound', eventArgs);\n }\n this.isLoaded = true;\n this.isNodeDropped = false;\n };\n TreeView.prototype.doSelectionAction = function () {\n var sNodes = selectAll('.' + SELECTED$1, this.element);\n var sUids = this.selectedNodes;\n if (sUids.length > 0) {\n this.setProperties({\n selectedNodes: []\n }, true);\n for (var i = 0; i < sUids.length; i++) {\n var sNode = select('[data-uid=\"' + sUids[parseInt(i.toString(), 10)] + '\"]', this.element);\n if (sNode && !sNode.classList.contains('e-active')) {\n this.selectNode(sNode, null, true);\n } else {\n this.selectedNodes.push(sUids[parseInt(i.toString(), 10)]);\n }\n if (!this.allowMultiSelection) {\n break;\n }\n }\n } else {\n this.selectGivenNodes(sNodes);\n }\n removeClass(sNodes, SELECTED$1);\n };\n TreeView.prototype.selectGivenNodes = function (sNodes) {\n for (var i = 0; i < sNodes.length; i++) {\n if (!sNodes[parseInt(i.toString(), 10)].classList.contains('e-disable')) {\n this.selectNode(sNodes[parseInt(i.toString(), 10)], null, true);\n }\n if (!this.allowMultiSelection) {\n break;\n }\n }\n };\n TreeView.prototype.clickHandler = function (event) {\n var target = Browser.isDevice && event.originalEvent.changedTouches && !Browser.isIos ? document.elementFromPoint(event.originalEvent.changedTouches[0].clientX, event.originalEvent.changedTouches[0].clientY) : event.originalEvent.target;\n EventHandler.remove(this.element, 'contextmenu', this.preventContextMenu);\n if (!target || this.dragStartAction) {\n return;\n } else {\n var classList = target.classList;\n var li = closest(target, '.' + LISTITEM);\n if (!li || li.classList.contains(PREVENTSELECT) && !(classList.contains(EXPANDABLE) || classList.contains(COLLAPSIBLE))) {\n return;\n } else if (event.originalEvent.which !== 3) {\n var rippleElement = select('.' + RIPPLEELMENT, li);\n var rippleIcons = select('.' + ICON, li);\n this.removeHover();\n this.setFocusElement(li);\n if (this.showCheckBox && !li.classList.contains('e-disable')) {\n var checkWrapper = closest(target, '.' + CHECKBOXWRAP);\n if (!isNullOrUndefined(checkWrapper)) {\n var checkElement = select('.' + CHECKBOXFRAME, checkWrapper);\n this.validateCheckNode(checkWrapper, checkElement.classList.contains(CHECK), li, event.originalEvent);\n this.triggerClickEvent(event.originalEvent, li);\n return;\n }\n }\n if (classList.contains(EXPANDABLE)) {\n this.expandAction(li, target, event);\n } else if (classList.contains(COLLAPSIBLE)) {\n this.collapseNode(li, target, event);\n } else if (rippleElement && rippleIcons) {\n if (rippleIcons.classList.contains(RIPPLE) && rippleIcons.classList.contains(EXPANDABLE)) {\n this.expandAction(li, rippleIcons, event);\n } else if (rippleIcons.classList.contains(RIPPLE) && rippleIcons.classList.contains(COLLAPSIBLE)) {\n this.collapseNode(li, rippleIcons, event);\n } else if (!classList.contains(PARENTITEM) && !classList.contains(LISTITEM)) {\n this.toggleSelect(li, event.originalEvent, false);\n }\n } else {\n if (!classList.contains(PARENTITEM) && !classList.contains(LISTITEM)) {\n this.toggleSelect(li, event.originalEvent, false);\n }\n }\n }\n if (event.originalEvent.which === 3) {\n this.isRightClick = true;\n }\n this.triggerClickEvent(event.originalEvent, li);\n }\n };\n TreeView.prototype.nodeCheckedEvent = function (wrapper, isCheck, e) {\n var eventArgs = this.getCheckEvent(wrapper, isCheck ? 'uncheck' : 'check', e);\n eventArgs.data = eventArgs.data.splice(0, eventArgs.data.length - 1);\n this.trigger('nodeChecked', eventArgs);\n };\n TreeView.prototype.updateOldCheckedData = function (data) {\n var dataManager = new DataManager(data);\n var childItems = dataManager.executeLocal(new Query().where('isChecked', 'equal', 'true', true));\n var uncheckedItems = dataManager.executeLocal(new Query().where('isChecked', 'equal', 'false', true));\n if (uncheckedItems.length > 0) {\n var index = this.OldCheckedData.findIndex(function (e) {\n return e['id'] === uncheckedItems[0]['id'];\n });\n if (index !== -1) {\n this.OldCheckedData.splice(index, 1);\n return;\n }\n }\n if (childItems.length > 0) {\n var index = this.OldCheckedData.findIndex(function (e) {\n return e['id'] === childItems[0]['id'];\n });\n if (index === -1) {\n this.OldCheckedData.push(childItems[0]);\n return;\n }\n }\n };\n TreeView.prototype.triggerClickEvent = function (e, li) {\n var eventArgs = {\n event: e,\n node: li\n };\n this.trigger('nodeClicked', eventArgs);\n };\n TreeView.prototype.expandNode = function (currLi, icon, loaded) {\n var _this = this;\n this.renderReactTemplates();\n if (icon.classList.contains(LOAD)) {\n this.hideSpinner(icon);\n }\n if (!this.initialRender) {\n icon.classList.add('interaction');\n }\n if (loaded !== true || loaded === true && currLi.classList.contains('e-expanded')) {\n if (this.preventExpand !== true) {\n removeClass([icon], EXPANDABLE);\n addClass([icon], COLLAPSIBLE);\n var start_1 = 0;\n var end_1 = 0;\n var ul_1 = select('.' + PARENTITEM, currLi);\n var liEle_1 = currLi;\n if (this.isAnimate && !this.isRefreshed) {\n this.setHeight(liEle_1, ul_1);\n var activeElement_1 = select('.' + LISTITEM + '.' + ACTIVE, currLi);\n this.aniObj.animate(ul_1, {\n name: this.animation.expand.effect,\n duration: this.animation.expand.duration === 0 && animationMode === 'Enable' ? 400 : this.animation.expand.duration,\n timingFunction: this.animation.expand.easing,\n begin: function () {\n liEle_1.style.overflow = 'hidden';\n if (!isNullOrUndefined(activeElement_1) && activeElement_1 instanceof HTMLElement) {\n activeElement_1.classList.add(ITEM_ANIMATION_ACTIVE);\n }\n start_1 = liEle_1.offsetHeight;\n end_1 = select('.' + TEXTWRAP, currLi).offsetHeight;\n },\n progress: function (args) {\n args.element.style.display = 'block';\n _this.animateHeight(args, start_1, end_1);\n },\n end: function (args) {\n args.element.style.display = 'block';\n if (!isNullOrUndefined(activeElement_1) && activeElement_1 instanceof HTMLElement) {\n activeElement_1.classList.remove(ITEM_ANIMATION_ACTIVE);\n }\n _this.expandedNode(liEle_1, ul_1, icon);\n }\n });\n } else {\n this.expandedNode(liEle_1, ul_1, icon);\n }\n }\n } else {\n var ul = select('.' + PARENTITEM, currLi);\n ul.style.display = 'none';\n if (this.fields.dataSource instanceof DataManager === true) {\n this.preventExpand = false;\n }\n }\n if (this.initialRender) {\n icon.classList.add('interaction');\n }\n };\n TreeView.prototype.expandedNode = function (currLi, ul, icon) {\n ul.style.display = 'block';\n currLi.style.display = 'block';\n currLi.style.overflow = '';\n currLi.style.height = '';\n removeClass([icon], PROCESS);\n this.addExpand(currLi);\n if (this.allowTextWrap && this.isLoaded && this.isFirstRender) {\n this.updateWrap(currLi);\n this.isFirstRender = false;\n }\n if (this.isLoaded && this.expandArgs && !this.isRefreshed) {\n this.expandArgs = this.getExpandEvent(currLi, null);\n this.expandArgs.isInteracted = this.isInteracted;\n this.trigger('nodeExpanded', this.expandArgs);\n }\n };\n TreeView.prototype.addExpand = function (liEle) {\n liEle.setAttribute('aria-expanded', 'true');\n removeClass([liEle], NODECOLLAPSED);\n var id = liEle.getAttribute('data-uid');\n if (!isNullOrUndefined(id) && this.expandedNodes.indexOf(id) === -1) {\n this.expandedNodes.push(id);\n }\n };\n TreeView.prototype.collapseNode = function (currLi, icon, e) {\n var _this = this;\n if (icon.classList.contains(PROCESS)) {\n return;\n } else {\n addClass([icon], PROCESS);\n }\n var colArgs;\n if (this.isLoaded) {\n colArgs = this.getExpandEvent(currLi, e);\n this.isInteracted = colArgs.isInteracted;\n this.trigger('nodeCollapsing', colArgs, function (observedArgs) {\n if (observedArgs.cancel) {\n removeClass([icon], PROCESS);\n } else {\n _this.nodeCollapseAction(currLi, icon, observedArgs);\n }\n });\n } else {\n this.nodeCollapseAction(currLi, icon, colArgs);\n }\n };\n TreeView.prototype.nodeCollapseAction = function (currLi, icon, colArgs) {\n var _this = this;\n removeClass([icon], COLLAPSIBLE);\n addClass([icon], EXPANDABLE);\n var start = 0;\n var end = 0;\n var ul = select('.' + PARENTITEM, currLi);\n var liEle = currLi;\n var activeElement = select('.' + LISTITEM + '.' + ACTIVE, currLi);\n if (this.isAnimate) {\n this.aniObj.animate(ul, {\n name: this.animation.collapse.effect,\n duration: this.animation.collapse.duration === 0 && animationMode === 'Enable' ? 400 : this.animation.collapse.duration,\n timingFunction: this.animation.collapse.easing,\n begin: function () {\n liEle.style.overflow = 'hidden';\n if (!isNullOrUndefined(activeElement) && activeElement instanceof HTMLElement) {\n activeElement.classList.add(ITEM_ANIMATION_ACTIVE);\n }\n start = select('.' + TEXTWRAP, currLi).offsetHeight;\n end = liEle.offsetHeight;\n },\n progress: function (args) {\n _this.animateHeight(args, start, end);\n },\n end: function (args) {\n args.element.style.display = 'none';\n if (!isNullOrUndefined(activeElement) && activeElement instanceof HTMLElement) {\n activeElement.classList.remove(ITEM_ANIMATION_ACTIVE);\n }\n _this.collapsedNode(liEle, ul, icon, colArgs);\n }\n });\n } else {\n this.collapsedNode(liEle, ul, icon, colArgs);\n }\n };\n TreeView.prototype.collapsedNode = function (liEle, ul, icon, colArgs) {\n ul.style.display = 'none';\n liEle.style.overflow = '';\n liEle.style.height = '';\n removeClass([icon], PROCESS);\n this.removeExpand(liEle);\n if (this.isLoaded) {\n colArgs = this.getExpandEvent(liEle, null);\n colArgs.isInteracted = this.isInteracted;\n this.trigger('nodeCollapsed', colArgs);\n }\n };\n TreeView.prototype.removeExpand = function (liEle, toRemove) {\n if (toRemove) {\n liEle.removeAttribute('aria-expanded');\n } else {\n this.disableExpandAttr(liEle);\n }\n var index = this.expandedNodes.indexOf(liEle.getAttribute('data-uid'));\n if (index > -1) {\n this.expandedNodes.splice(index, 1);\n }\n };\n TreeView.prototype.disableExpandAttr = function (liEle) {\n liEle.setAttribute('aria-expanded', 'false');\n addClass([liEle], NODECOLLAPSED);\n };\n TreeView.prototype.setHeight = function (currLi, ul) {\n ul.style.display = 'block';\n ul.style.visibility = 'hidden';\n currLi.style.height = currLi.offsetHeight + 'px';\n ul.style.display = 'none';\n ul.style.visibility = '';\n };\n TreeView.prototype.animateHeight = function (args, start, end) {\n var remaining = (args.duration - args.timeStamp) / args.duration;\n var currentHeight = (end - start) * remaining + start;\n args.element.parentElement.style.height = currentHeight + 'px';\n };\n TreeView.prototype.renderChildNodes = function (parentLi, expandChild, callback, loaded, isFromExpandAll) {\n var _this = this;\n var eicon = select('div.' + ICON, parentLi);\n if (isNullOrUndefined(eicon)) {\n return;\n }\n this.showSpinner(eicon);\n var childItems;\n if (this.fields.dataSource instanceof DataManager) {\n var level = this.parents(parentLi, '.' + PARENTITEM).length;\n var mapper_2 = this.getChildFields(this.fields, level, 1);\n if (isNullOrUndefined(mapper_2) || isNullOrUndefined(mapper_2.dataSource)) {\n detach(eicon);\n this.removeExpand(parentLi, true);\n return;\n }\n this.treeList.push('false');\n if (this.fields.dataSource instanceof DataManager && this.isOffline) {\n this.treeList.pop();\n childItems = this.getChildNodes(this.treeData, parentLi.getAttribute('data-uid'));\n this.loadChild(childItems, mapper_2, eicon, parentLi, expandChild, callback, loaded);\n } else {\n mapper_2.dataSource.executeQuery(this.getQuery(mapper_2, parentLi.getAttribute('data-uid'))).then(function (e) {\n _this.treeList.pop();\n childItems = e.result;\n if (_this.dataType === 1) {\n _this.dataType = 2;\n }\n _this.loadChild(childItems, mapper_2, eicon, parentLi, expandChild, callback, loaded);\n }).catch(function (e) {\n _this.trigger('actionFailure', {\n error: e\n });\n });\n }\n } else {\n childItems = this.getChildNodes(this.treeData, parentLi.getAttribute('data-uid'), false, parseFloat(parentLi.getAttribute('aria-level')) + 1);\n this.currentLoadData = this.getSortedData(childItems);\n if (isNullOrUndefined(childItems) || childItems.length === 0) {\n detach(eicon);\n if (eicon.classList.contains(LOAD)) {\n this.hideSpinner(eicon);\n }\n this.removeExpand(parentLi, true);\n return;\n } else {\n this.listBaseOption.ariaAttributes.level = parseFloat(parentLi.getAttribute('aria-level')) + 1;\n parentLi.appendChild(ListBase.createList(this.createElement, this.currentLoadData, this.listBaseOption));\n this.expandNode(parentLi, eicon, loaded);\n this.setSelectionForChildNodes(childItems);\n this.ensureCheckNode(parentLi, isFromExpandAll);\n this.finalizeNode(parentLi, isFromExpandAll, expandChild);\n this.disableTreeNodes(childItems);\n this.renderSubChild(parentLi, expandChild, loaded, isFromExpandAll);\n }\n }\n };\n TreeView.prototype.loadChild = function (childItems, mapper, eicon, parentLi, expandChild, callback, loaded) {\n this.currentLoadData = childItems;\n if (isNullOrUndefined(childItems) || childItems.length === 0) {\n detach(eicon);\n this.removeExpand(parentLi, true);\n } else {\n this.updateListProp(mapper);\n if (this.fields.dataSource instanceof DataManager && !this.isOffline) {\n var id = parentLi.getAttribute('data-uid');\n var nodeData = this.getNodeObject(id);\n setValue('child', childItems, nodeData);\n }\n this.listBaseOption.ariaAttributes.level = parseFloat(parentLi.getAttribute('aria-level')) + 1;\n parentLi.appendChild(ListBase.createList(this.createElement, childItems, this.listBaseOption));\n this.expandNode(parentLi, eicon, loaded);\n this.setSelectionForChildNodes(childItems);\n this.ensureCheckNode(parentLi);\n this.finalizeNode(parentLi);\n this.disableTreeNodes(childItems);\n this.renderSubChild(parentLi, expandChild, loaded);\n }\n if (callback) {\n callback();\n }\n if (expandChild) {\n this.expandedNodes.push(parentLi.getAttribute('data-uid'));\n }\n if (this.treeList.length === 0 && !this.isLoaded) {\n this.finalize();\n }\n };\n TreeView.prototype.disableTreeNodes = function (childItems) {\n if (isNullOrUndefined(this.disableNode) || this.disableNode.length === 0) {\n return;\n }\n var i = 0;\n while (i < childItems.length) {\n var id = childItems[parseInt(i.toString(), 10)][this.fields.id] ? childItems[parseInt(i.toString(), 10)][this.fields.id].toString() : null;\n if (this.disableNode !== undefined && this.disableNode.indexOf(id) !== -1) {\n this.doDisableAction([id]);\n }\n i++;\n }\n };\n /**\n * Sets the child Item in selectedState while rendering the child node\n *\n * @param {Object[]} nodes - Array of nodes\n * @returns {void}\n */\n TreeView.prototype.setSelectionForChildNodes = function (nodes) {\n if (isNullOrUndefined(this.selectedNodes) || this.selectedNodes.length === 0) {\n return;\n }\n var i;\n for (i = 0; i < nodes.length; i++) {\n var id = nodes[parseInt(i.toString(), 10)][this.fields.id] ? nodes[parseInt(i.toString(), 10)][this.fields.id].toString() : null;\n if (this.selectedNodes !== undefined && this.selectedNodes.indexOf(id) !== -1) {\n this.doSelectionAction();\n }\n }\n };\n TreeView.prototype.ensureCheckNode = function (element, isFromExpandAll) {\n if (this.showCheckBox) {\n this.ele = this.checkedElement ? this.checkedElement.indexOf(element.getAttribute('data-uid')) : null;\n if (this.autoCheck) {\n this.ensureChildCheckState(element, null, isFromExpandAll);\n if (isFromExpandAll ? select('.' + CHECK, this.element) || select('.' + INDETERMINATE, this.element) : true) {\n this.ensureParentCheckState(element);\n }\n }\n }\n this.currentLoadData = null;\n };\n TreeView.prototype.getFields = function (mapper, nodeLevel, dataLevel) {\n if (nodeLevel === dataLevel) {\n return mapper;\n } else {\n return this.getFields(this.getChildMapper(mapper), nodeLevel, dataLevel + 1);\n }\n };\n TreeView.prototype.getChildFields = function (mapper, nodeLevel, dataLevel) {\n if (nodeLevel === dataLevel) {\n return this.getChildMapper(mapper);\n } else {\n return this.getChildFields(this.getChildMapper(mapper), nodeLevel, dataLevel + 1);\n }\n };\n TreeView.prototype.getChildMapper = function (mapper) {\n return typeof mapper.child === 'string' || isNullOrUndefined(mapper.child) ? mapper : mapper.child;\n };\n TreeView.prototype.getChildNodes = function (obj, parentId, isRoot, level) {\n var _this = this;\n if (isRoot === void 0) {\n isRoot = false;\n }\n var childNodes;\n if (isNullOrUndefined(obj)) {\n return childNodes;\n }\n if (this.dataType === 1) {\n return this.getChildGroup(this.groupedData, parentId, isRoot);\n }\n if (typeof this.fields.child === 'string') {\n return this.findChildNodes(obj, this.fields.id, parentId) || this.findNestedChildNodes(obj, parentId, level) || [];\n }\n if (this.isChildObject()) {\n var tempField = !isNullOrUndefined(level) ? this.fields : this.fields.child;\n var i = 1;\n while (i < level) {\n if (!isNullOrUndefined(tempField.child)) {\n tempField = tempField.child;\n } else {\n break;\n }\n i++;\n }\n this.updateListProp(tempField);\n var index = obj.findIndex(function (data) {\n return getValue(_this.fields.id, data) && getValue(_this.fields.id, data).toString() === parentId;\n });\n if (index !== -1) {\n return getValue('child', obj[parseInt(index.toString(), 10)]);\n }\n if (index === -1) {\n for (var i_1 = 0, objlen = obj.length; i_1 < objlen; i_1++) {\n var tempArray = getValue('child', obj[parseInt(i_1.toString(), 10)]);\n var childIndex = !isNullOrUndefined(tempArray) ? tempArray.findIndex(function (data) {\n return getValue(_this.fields.child.id, data) && getValue(_this.fields.child.id, data).toString() === parentId;\n }) : -1;\n if (childIndex !== -1) {\n return getValue('child', tempArray[parseInt(childIndex.toString(), 10)]);\n } else if (!isNullOrUndefined(tempArray)) {\n childNodes = this.getChildNodes(tempArray, parentId, false, level);\n if (childNodes !== undefined) {\n break;\n }\n }\n }\n }\n }\n return childNodes;\n };\n TreeView.prototype.findChildNodes = function (items, idField, parentId) {\n var index = items.findIndex(function (data) {\n var value = getValue(idField, data);\n return value && value.toString() === parentId;\n });\n if (index !== -1) {\n return getValue(this.fields.child, items[index]);\n }\n return null;\n };\n TreeView.prototype.findNestedChildNodes = function (items, parentId, level) {\n for (var _i = 0, items_1 = items; _i < items_1.length; _i++) {\n var item = items_1[_i];\n var tempArray = getValue(this.fields.child, item);\n if (!isNullOrUndefined(tempArray)) {\n var childNodes = this.findChildNodes(tempArray, this.fields.id, parentId);\n if (childNodes) {\n return childNodes;\n }\n var nestedChildNodes = this.getChildNodes(tempArray, parentId, false, level);\n if (nestedChildNodes && nestedChildNodes.length > 0) {\n return nestedChildNodes;\n }\n }\n }\n return undefined;\n };\n TreeView.prototype.getChildGroup = function (data, parentId, isRoot) {\n var childNodes;\n if (isNullOrUndefined(data)) {\n return childNodes;\n }\n for (var i = 0, objlen = data.length; i < objlen; i++) {\n if (!isNullOrUndefined(data[parseInt(i.toString(), 10)][0]) && !isNullOrUndefined(getValue(this.fields.parentID, data[parseInt(i.toString(), 10)][0]))) {\n if (getValue(this.fields.parentID, data[parseInt(i.toString(), 10)][0]).toString() === parentId) {\n return data[parseInt(i.toString(), 10)];\n }\n } else if (isRoot) {\n return data[parseInt(i.toString(), 10)];\n } else {\n return [];\n }\n }\n return childNodes;\n };\n TreeView.prototype.renderSubChild = function (element, expandChild, loaded, isFromExpandAll) {\n if (expandChild) {\n var cIcons = selectAll('.' + EXPANDABLE, element);\n for (var i = 0, len = cIcons.length; i < len; i++) {\n var icon = cIcons[parseInt(i.toString(), 10)];\n if (element.querySelector('.e-icons') !== cIcons[parseInt(i.toString(), 10)]) {\n var curLi = closest(icon, '.' + LISTITEM);\n this.expandArgs = this.getExpandEvent(curLi, null);\n if (loaded !== true) {\n this.trigger('nodeExpanding', this.expandArgs);\n }\n this.renderChildNodes(curLi, expandChild, null, loaded, isFromExpandAll);\n }\n }\n }\n };\n TreeView.prototype.toggleSelect = function (li, e, multiSelect) {\n if (!li.classList.contains('e-disable')) {\n if (this.allowMultiSelection && (e && e.ctrlKey || multiSelect) && this.isActive(li)) {\n this.unselectNode(li, e);\n } else {\n this.selectNode(li, e, multiSelect);\n }\n }\n };\n TreeView.prototype.isActive = function (li) {\n return li.classList.contains(ACTIVE) ? true : false;\n };\n TreeView.prototype.selectNode = function (li, e, multiSelect) {\n var _this = this;\n if (isNullOrUndefined(li) || !this.allowMultiSelection && this.isActive(li) && !isNullOrUndefined(e)) {\n this.setFocusElement(li);\n return;\n }\n var eventArgs;\n if (this.isLoaded) {\n eventArgs = this.getSelectEvent(li, 'select', e);\n this.trigger('nodeSelecting', eventArgs, function (observedArgs) {\n if (!observedArgs.cancel && !observedArgs.node.classList.contains(PREVENTSELECT)) {\n _this.nodeSelectAction(li, e, observedArgs, multiSelect);\n }\n });\n } else {\n this.nodeSelectAction(li, e, eventArgs, multiSelect);\n }\n };\n TreeView.prototype.nodeSelectAction = function (li, e, eventArgs, multiSelect) {\n if (!this.allowMultiSelection || !multiSelect && (!e || e && !(e.ctrlKey || e.metaKey))) {\n this.removeSelectAll();\n }\n if (this.allowMultiSelection && e && e.shiftKey) {\n if (!this.startNode) {\n this.startNode = li;\n }\n var startIndex = this.liList.indexOf(this.startNode);\n var endIndex = this.liList.indexOf(li);\n if (startIndex > endIndex) {\n var temp = startIndex;\n startIndex = endIndex;\n endIndex = temp;\n }\n for (var i = startIndex; i <= endIndex; i++) {\n var currNode = this.liList[parseInt(i.toString(), 10)];\n if (isVisible(currNode) && !currNode.classList.contains('e-disable')) {\n this.addSelect(currNode);\n }\n }\n } else {\n this.startNode = li;\n this.addSelect(li);\n }\n if (this.isLoaded) {\n eventArgs.nodeData = this.getNodeData(li);\n this.trigger('nodeSelected', eventArgs);\n this.isRightClick = false;\n }\n this.isRightClick = false;\n };\n TreeView.prototype.unselectNode = function (li, e) {\n var _this = this;\n var eventArgs;\n if (this.isLoaded) {\n eventArgs = this.getSelectEvent(li, 'un-select', e);\n this.trigger('nodeSelecting', eventArgs, function (observedArgs) {\n if (!observedArgs.cancel) {\n _this.nodeUnselectAction(li, observedArgs);\n }\n });\n } else {\n this.nodeUnselectAction(li, eventArgs);\n }\n };\n TreeView.prototype.nodeUnselectAction = function (li, eventArgs) {\n this.removeSelect(li);\n this.setFocusElement(li);\n if (this.isLoaded) {\n eventArgs.nodeData = this.getNodeData(li);\n this.trigger('nodeSelected', eventArgs);\n }\n };\n TreeView.prototype.setFocusElement = function (li) {\n if (!isNullOrUndefined(li)) {\n var focusedNode = this.getFocusedNode();\n if (focusedNode) {\n removeClass([focusedNode], FOCUS);\n focusedNode.setAttribute('tabindex', '-1');\n }\n addClass([li], FOCUS);\n li.setAttribute('tabindex', '0');\n EventHandler.add(li, 'blur', this.focusOut, this);\n this.updateIdAttr(focusedNode, li);\n }\n };\n TreeView.prototype.addSelect = function (liEle) {\n liEle.setAttribute('aria-selected', 'true');\n addClass([liEle], ACTIVE);\n var id = liEle.getAttribute('data-uid');\n if (!isNullOrUndefined(id) && this.selectedNodes.indexOf(id) === -1) {\n this.selectedNodes.push(id);\n }\n };\n TreeView.prototype.removeSelect = function (liEle) {\n if (this.allowMultiSelection) {\n liEle.setAttribute('aria-selected', 'false');\n } else {\n liEle.removeAttribute('aria-selected');\n }\n removeClass([liEle], ACTIVE);\n var index = this.selectedNodes.indexOf(liEle.getAttribute('data-uid'));\n if (index > -1) {\n this.selectedNodes.splice(index, 1);\n }\n };\n TreeView.prototype.removeSelectAll = function () {\n var selectedLI = this.element.querySelectorAll('.' + ACTIVE);\n for (var _i = 0, selectedLI_1 = selectedLI; _i < selectedLI_1.length; _i++) {\n var ele = selectedLI_1[_i];\n if (this.allowMultiSelection) {\n ele.setAttribute('aria-selected', 'false');\n } else {\n ele.removeAttribute('aria-selected');\n }\n }\n removeClass(selectedLI, ACTIVE);\n this.setProperties({\n selectedNodes: []\n }, true);\n };\n TreeView.prototype.getSelectEvent = function (currLi, action, e) {\n var nodeData = this.getNodeData(currLi);\n return {\n action: action,\n cancel: false,\n isInteracted: isNullOrUndefined(e) ? false : true,\n node: currLi,\n nodeData: nodeData\n };\n };\n TreeView.prototype.setExpandOnType = function () {\n this.expandOnType = this.expandOn === 'Auto' ? Browser.isDevice ? 'Click' : 'DblClick' : this.expandOn;\n };\n TreeView.prototype.expandHandler = function (e) {\n var target = e.originalEvent.target;\n if (!target || target.classList.contains(INPUT) || target.classList.contains(ROOT) || target.classList.contains(PARENTITEM) || target.classList.contains(LISTITEM) || target.classList.contains(ICON) || this.showCheckBox && closest(target, '.' + CHECKBOXWRAP)) {\n return;\n } else {\n this.expandCollapseAction(closest(target, '.' + LISTITEM), e);\n }\n };\n TreeView.prototype.expandCollapseAction = function (currLi, e) {\n var icon = select('div.' + ICON, currLi);\n if (!icon || icon.classList.contains(PROCESS)) {\n return;\n } else {\n var classList = icon.classList;\n if (classList.contains(EXPANDABLE)) {\n this.expandAction(currLi, icon, e);\n } else if (classList.contains(COLLAPSIBLE)) {\n this.collapseNode(currLi, icon, e);\n }\n }\n };\n TreeView.prototype.expandAction = function (currLi, icon, e, expandChild, callback, isFromExpandAll) {\n var _this = this;\n if (icon.classList.contains(PROCESS)) {\n return;\n } else {\n addClass([icon], PROCESS);\n }\n if (this.isLoaded && !this.isRefreshed) {\n this.expandArgs = this.getExpandEvent(currLi, e);\n this.isInteracted = this.expandArgs.isInteracted;\n this.trigger('nodeExpanding', this.expandArgs, function (observedArgs) {\n if (observedArgs.cancel) {\n removeClass([icon], PROCESS);\n } else {\n _this.nodeExpandAction(currLi, icon, expandChild, callback, isFromExpandAll);\n }\n });\n } else {\n this.nodeExpandAction(currLi, icon, expandChild, callback, isFromExpandAll);\n }\n };\n TreeView.prototype.nodeExpandAction = function (currLi, icon, expandChild, callback, isFromExpandAll) {\n var ul = select('.' + PARENTITEM, currLi);\n if (ul && ul.nodeName === 'UL') {\n this.expandNode(currLi, icon);\n } else {\n this.isFirstRender = true;\n this.renderChildNodes(currLi, expandChild, callback, null, isFromExpandAll);\n var liEles = selectAll('.' + LISTITEM, currLi);\n for (var i = 0; i < liEles.length; i++) {\n var id = this.getId(liEles[parseInt(i.toString(), 10)]);\n if (this.expandChildren.indexOf(id) !== -1 && this.expandChildren !== undefined) {\n var icon_1 = select('.' + EXPANDABLE, select('.' + TEXTWRAP, liEles[parseInt(i.toString(), 10)]));\n if (!isNullOrUndefined(icon_1)) {\n this.expandAction(liEles[parseInt(i.toString(), 10)], icon_1, null);\n }\n this.expandChildren.splice(this.expandChildren.indexOf(id), 1);\n }\n }\n }\n };\n TreeView.prototype.keyActionHandler = function (e) {\n var _this = this;\n var target = e.target;\n var focusedNode = this.getFocusedNode();\n if (target && target.classList.contains(INPUT)) {\n var inpEle = target;\n if (e.action === 'enter') {\n inpEle.blur();\n } else if (e.action === 'escape') {\n inpEle.value = this.oldText;\n inpEle.blur();\n }\n return;\n }\n e.preventDefault();\n var eventArgs = {\n cancel: false,\n event: e,\n node: focusedNode\n };\n this.trigger('keyPress', eventArgs, function (observedArgs) {\n if (!observedArgs.cancel) {\n switch (e.action) {\n case 'space':\n if (_this.showCheckBox) {\n _this.checkNode(e);\n } else {\n _this.toggleSelect(focusedNode, e);\n }\n break;\n case 'moveRight':\n _this.openNode(_this.enableRtl ? false : true, e);\n break;\n case 'moveLeft':\n _this.openNode(_this.enableRtl ? true : false, e);\n break;\n case 'shiftDown':\n _this.shiftKeySelect(true, e);\n break;\n case 'moveDown':\n case 'ctrlDown':\n case 'csDown':\n _this.navigateNode(true);\n break;\n case 'shiftUp':\n _this.shiftKeySelect(false, e);\n break;\n case 'moveUp':\n case 'ctrlUp':\n case 'csUp':\n _this.navigateNode(false);\n break;\n case 'home':\n case 'shiftHome':\n case 'ctrlHome':\n case 'csHome':\n _this.navigateRootNode(true);\n break;\n case 'end':\n case 'shiftEnd':\n case 'ctrlEnd':\n case 'csEnd':\n _this.navigateRootNode(false);\n break;\n case 'enter':\n case 'ctrlEnter':\n case 'shiftEnter':\n case 'csEnter':\n case 'shiftSpace':\n case 'ctrlSpace':\n _this.toggleSelect(focusedNode, e);\n break;\n case 'f2':\n if (_this.allowEditing && !focusedNode.classList.contains('e-disable')) {\n _this.createTextbox(focusedNode);\n }\n break;\n case 'ctrlA':\n if (_this.allowMultiSelection) {\n var sNodes = selectAll('.' + LISTITEM + ':not(.' + ACTIVE + ')', _this.element);\n _this.selectGivenNodes(sNodes);\n }\n break;\n }\n }\n });\n };\n TreeView.prototype.navigateToFocus = function (isUp) {\n var focusNode = this.getFocusedNode().querySelector('.' + TEXTWRAP);\n var pos = focusNode.getBoundingClientRect();\n var parent = this.getScrollParent(this.element);\n if (!isNullOrUndefined(parent)) {\n var parentPos = parent.getBoundingClientRect();\n if (pos.bottom > parentPos.bottom) {\n parent.scrollTop += pos.bottom - parentPos.bottom;\n } else if (pos.top < parentPos.top) {\n parent.scrollTop -= parentPos.top - pos.top;\n }\n }\n var isVisible = this.isVisibleInViewport(focusNode);\n if (!isVisible) {\n focusNode.scrollIntoView(isUp);\n }\n };\n TreeView.prototype.isVisibleInViewport = function (txtWrap) {\n var pos = txtWrap.getBoundingClientRect();\n return pos.top >= 0 && pos.left >= 0 && pos.bottom <= (window.innerHeight || document.documentElement.clientHeight) && pos.right <= (window.innerWidth || document.documentElement.clientWidth);\n };\n TreeView.prototype.getScrollParent = function (node) {\n if (isNullOrUndefined(node)) {\n return null;\n }\n return node.scrollHeight > node.clientHeight ? node : this.getScrollParent(node.parentElement);\n };\n TreeView.prototype.shiftKeySelect = function (isTowards, e) {\n if (this.allowMultiSelection) {\n var focusedNode = this.getFocusedNode();\n var nextNode = isTowards ? this.getNextNode(focusedNode) : this.getPrevNode(focusedNode);\n this.removeHover();\n this.setFocusElement(nextNode);\n this.toggleSelect(nextNode, e, false);\n this.navigateToFocus(!isTowards);\n } else {\n this.navigateNode(isTowards);\n }\n };\n TreeView.prototype.checkNode = function (e) {\n var focusedNode = this.getFocusedNode();\n var checkWrap = select('.' + CHECKBOXWRAP, focusedNode);\n var isChecked = select(' .' + CHECKBOXFRAME, checkWrap).classList.contains(CHECK);\n if (!focusedNode.classList.contains('e-disable')) {\n if (focusedNode.getElementsByClassName('e-checkbox-disabled').length === 0) {\n this.validateCheckNode(checkWrap, isChecked, focusedNode, e);\n }\n }\n };\n TreeView.prototype.validateCheckNode = function (checkWrap, isCheck, li, e) {\n var _this = this;\n var currLi = closest(checkWrap, '.' + LISTITEM);\n this.checkActionNodes = [];\n var ariaState = !isCheck ? 'true' : 'false';\n if (!isNullOrUndefined(ariaState)) {\n currLi.setAttribute('aria-checked', ariaState);\n }\n var eventArgs = this.getCheckEvent(currLi, isCheck ? 'uncheck' : 'check', e);\n this.trigger('nodeChecking', eventArgs, function (observedArgs) {\n if (!observedArgs.cancel) {\n _this.nodeCheckingAction(checkWrap, isCheck, li, observedArgs, e);\n }\n });\n };\n TreeView.prototype.nodeCheckingAction = function (checkWrap, isCheck, li, eventArgs, e) {\n if (this.checkedElement.indexOf(li.getAttribute('data-uid')) === -1) {\n this.checkedElement.push(li.getAttribute('data-uid'));\n if (this.autoCheck) {\n var child = this.getChildNodes(this.treeData, li.getAttribute('data-uid'));\n if (child !== null) {\n this.allCheckNode(child, this.checkedElement, null, null, false);\n } else {\n child = null;\n }\n }\n }\n this.changeState(checkWrap, isCheck ? 'uncheck' : 'check', e, true);\n if (this.autoCheck) {\n this.ensureChildCheckState(li);\n this.updateOldCheckedData([this.getNodeData(li)]);\n this.ensureParentCheckState(closest(closest(li, '.' + PARENTITEM), '.' + LISTITEM));\n var doCheck = void 0;\n if (eventArgs.action === 'check') {\n doCheck = true;\n } else if (eventArgs.action === 'uncheck') {\n doCheck = false;\n }\n this.ensureStateChange(li, doCheck);\n }\n this.nodeCheckedEvent(checkWrap, isCheck, e);\n };\n /**\n * Update checkedNodes when UI interaction happens before the child node renders in DOM\n *\n * @param {Element} li - The list item element\n * @param {boolean} [doCheck] - Optional parameter to specify whether to perform a check\n * @returns {void}\n */\n TreeView.prototype.ensureStateChange = function (li, doCheck) {\n var childElement = select('.' + PARENTITEM, li);\n var parentIndex = li.getAttribute('data-uid');\n var mapper = this.fields;\n if (this.dataType === 1 && this.autoCheck) {\n var resultData = new DataManager(this.treeData).executeLocal(new Query().where(mapper.parentID, 'equal', parentIndex, true));\n for (var i = 0; i < resultData.length; i++) {\n var resultId = resultData[parseInt(i.toString(), 10)][this.fields.id] ? resultData[parseInt(i.toString(), 10)][this.fields.id].toString() : null;\n var isCheck = resultData[parseInt(i.toString(), 10)][this.fields.isChecked] ? resultData[parseInt(i.toString(), 10)][this.fields.isChecked].toString() : null;\n if (this.checkedNodes.indexOf(parentIndex) !== -1 && this.checkedNodes.indexOf(resultId) === -1) {\n this.checkDisabledState(resultId, resultData[i]);\n var childItems = this.getChildNodes(this.treeData, resultId);\n this.getChildItems(childItems, doCheck);\n if (this.parentNodeCheck.indexOf(resultId) !== -1) {\n this.parentNodeCheck.splice(this.parentNodeCheck.indexOf(resultId), 1);\n }\n } else if (this.checkedNodes.indexOf(parentIndex) === -1 && childElement === null && this.checkedNodes.indexOf(resultId) !== -1) {\n this.checkedNodes.splice(this.checkedNodes.indexOf(resultId), 1);\n if (isCheck === 'true') {\n this.updateField(this.treeData, this.fields, resultId, 'isChecked', null);\n }\n if (this.checkedNodes.indexOf(parentIndex) === -1 && childElement === null || this.parentNodeCheck.indexOf(resultId) !== -1) {\n var childNodes = this.getChildNodes(this.treeData, resultId);\n this.getChildItems(childNodes, doCheck);\n if (this.parentNodeCheck.indexOf(resultId) !== -1) {\n this.parentNodeCheck.splice(this.parentNodeCheck.indexOf(resultId), 1);\n }\n }\n } else {\n var childItems = this.getChildNodes(this.treeData, resultId);\n this.getChildItems(childItems, doCheck);\n }\n }\n } else if (this.dataType === 1 && !this.autoCheck) {\n if (!doCheck) {\n var checkedData = new DataManager(this.treeData).executeLocal(new Query().where(mapper.isChecked, 'equal', true, false));\n for (var i = 0; i < checkedData.length; i++) {\n var id = checkedData[parseInt(i.toString(), 10)][this.fields.id] ? checkedData[parseInt(i.toString(), 10)][this.fields.id].toString() : null;\n if (this.checkedNodes.indexOf(id) !== -1) {\n this.checkedNodes.splice(this.checkedNodes.indexOf(id), 1);\n }\n this.updateField(this.treeData, this.fields, id, 'isChecked', null);\n }\n this.checkedNodes = [];\n } else {\n for (var i = 0; i < this.treeData.length; i++) {\n var checkedId = this.treeData[parseInt(i.toString(), 10)][this.fields.id] ? this.treeData[parseInt(i.toString(), 10)][this.fields.id].toString() : null;\n if (this.checkedNodes.indexOf(checkedId) === -1) {\n this.checkDisabledState(checkedId, this.treeData[i]);\n }\n }\n }\n } else {\n var childItems = this.getChildNodes(this.treeData, parentIndex);\n if (childItems) {\n this.childStateChange(childItems, parentIndex, childElement, doCheck);\n }\n }\n };\n TreeView.prototype.checkDisabledState = function (resultId, currentItem) {\n var requiresUpdate = this.checkDisabledChildren;\n if (!requiresUpdate) {\n var shouldPreventUpdate = true;\n if (this.loadOnDemand && this.fields.htmlAttributes) {\n currentItem = isNullOrUndefined(currentItem) ? currentItem : this.getNodeObject(resultId);\n if (!isNullOrUndefined(currentItem)) {\n var htmlAttributes = currentItem[this.fields.htmlAttributes];\n if (htmlAttributes && !isNullOrUndefined(htmlAttributes.class) && htmlAttributes.class.indexOf(DISABLE) !== -1) {\n shouldPreventUpdate = false;\n }\n }\n }\n var liElement = select(\"[data-uid=\\\"\" + resultId + \"\\\"]\", this.element);\n requiresUpdate = liElement ? !liElement.classList.contains(DISABLE) : this.disableNode.indexOf(resultId) === -1 && shouldPreventUpdate;\n }\n if (requiresUpdate) {\n this.checkedNodes.push(resultId);\n }\n };\n TreeView.prototype.getChildItems = function (childItems, doCheck) {\n for (var i = 0; i < childItems.length; i++) {\n var childId = childItems[parseInt(i.toString(), 10)][this.fields.id] ? childItems[parseInt(i.toString(), 10)][this.fields.id].toString() : null;\n var childIsCheck = childItems[parseInt(i.toString(), 10)][this.fields.isChecked] ? childItems[parseInt(i.toString(), 10)][this.fields.isChecked].toString() : null;\n if (this.checkedNodes.indexOf(childId) !== -1 && !doCheck) {\n this.checkedNodes.splice(this.checkedNodes.indexOf(childId), 1);\n }\n if (this.checkedNodes.indexOf(childId) === -1 && doCheck) {\n this.checkDisabledState(childId, childItems[i]);\n }\n if (childIsCheck === 'true' && !doCheck) {\n this.updateField(this.treeData, this.fields, childId, 'isChecked', null);\n }\n var subChildItems = this.getChildNodes(this.treeData, childId);\n if (subChildItems.length > 0) {\n this.getChildItems(subChildItems, doCheck);\n }\n }\n };\n /**\n * Update checkedNodes when UI interaction happens before the child node renders in DOM for hierarchical DS\n *\n * @param {Object[]} childItems - Array of child items\n * @param {string} parent - Parent identifier\n * @param {Element} childElement - Child DOM element\n * @param {boolean} [doCheck] - Optional parameter to specify whether to perform a check\n * @returns {void}\n */\n TreeView.prototype.childStateChange = function (childItems, parent, childElement, doCheck) {\n for (var i = 0; i < childItems.length; i++) {\n var checkedChild = childItems[parseInt(i.toString(), 10)][this.fields.id] ? childItems[parseInt(i.toString(), 10)][this.fields.id].toString() : '';\n var isCheck = childItems[parseInt(i.toString(), 10)][this.fields.isChecked] ? childItems[parseInt(i.toString(), 10)][this.fields.isChecked].toString() : null;\n if (this.autoCheck) {\n if (this.checkedNodes.indexOf(parent) !== -1 && this.checkedNodes.indexOf(checkedChild) === -1) {\n this.checkDisabledState(checkedChild, childItems[i]);\n if (this.parentNodeCheck.indexOf(checkedChild) !== -1) {\n this.parentNodeCheck.splice(this.parentNodeCheck.indexOf(checkedChild), 1);\n }\n } else if (this.checkedNodes.indexOf(parent) === -1 && this.checkedNodes.indexOf(checkedChild) !== -1 && !doCheck) {\n this.checkedNodes.splice(this.checkedNodes.indexOf(checkedChild), 1);\n if (isCheck === 'true') {\n this.updateField(this.treeData, this.fields, checkedChild, 'isChecked', null);\n }\n }\n } else if (!this.autoCheck) {\n if (!doCheck) {\n if (this.checkedNodes.indexOf(checkedChild) !== -1) {\n this.checkedNodes.splice(this.checkedNodes.indexOf(checkedChild), 1);\n }\n this.updateField(this.treeData, this.fields, checkedChild, 'isChecked', null);\n this.checkedNodes = [];\n } else {\n if (this.checkedNodes.indexOf(checkedChild) === -1) {\n this.checkDisabledState(checkedChild, childItems[i]);\n }\n }\n }\n var subChild = this.getChildNodes([childItems[parseInt(i.toString(), 10)]], checkedChild);\n if (subChild) {\n this.childStateChange(subChild, parent, childElement, doCheck);\n }\n }\n };\n //This method can be used to get all child nodes of a parent by passing the children of a parent along with 'validateCheck' set to false\n TreeView.prototype.allCheckNode = function (child, newCheck, checked, childCheck, validateCheck) {\n if (child) {\n for (var length_1 = 0; length_1 < child.length; length_1++) {\n var childId = getValue(this.fields.id, child[parseInt(length_1.toString(), 10)]);\n var check = this.element.querySelector('[data-uid=\"' + childId + '\"]');\n //Validates isChecked case while no UI interaction has been performed on the node or it's parent\n if (validateCheck !== false && this.checkedElement.indexOf(childId.toString()) === -1) {\n if (check === null && !isNullOrUndefined(child[parseInt(length_1.toString(), 10)][this.fields.isChecked]) && newCheck.indexOf(childId.toString()) === -1 || childCheck === 0 || checked === 2) {\n if (child[parseInt(length_1.toString(), 10)][this.fields.isChecked] !== false || checked === 2) {\n newCheck.push(childId.toString());\n } else {\n childCheck = null;\n }\n childCheck = child[parseInt(length_1.toString(), 10)][this.fields.isChecked] !== false || checked === 2 ? 0 : null;\n }\n }\n //Pushes child checked node done thro' UI interaction\n if (newCheck.indexOf(childId.toString()) === -1 && isNullOrUndefined(checked)) {\n newCheck.push(childId.toString());\n }\n var hierChildId = getValue(this.fields.child.toString(), child[parseInt(length_1.toString(), 10)]);\n //Gets if any next level children are available for child nodes\n if (getValue(this.fields.hasChildren, child[parseInt(length_1.toString(), 10)]) === true || hierChildId) {\n var id = getValue(this.fields.id, child[parseInt(length_1.toString(), 10)]);\n var childId_1 = void 0;\n if (this.dataType === 1) {\n childId_1 = this.getChildNodes(this.treeData, id.toString());\n } else {\n childId_1 = hierChildId;\n }\n if (childId_1) {\n if (isNullOrUndefined(validateCheck)) {\n this.allCheckNode(childId_1, newCheck, checked, childCheck);\n } else {\n this.allCheckNode(childId_1, newCheck, checked, childCheck, validateCheck);\n }\n childCheck = null;\n }\n }\n childCheck = null;\n }\n }\n };\n TreeView.prototype.openNode = function (toBeOpened, e) {\n var focusedNode = this.getFocusedNode();\n var icon = select('div.' + ICON, focusedNode);\n if (toBeOpened) {\n if (!icon) {\n return;\n } else if (icon.classList.contains(EXPANDABLE)) {\n this.expandAction(focusedNode, icon, e);\n } else {\n this.focusNextNode(focusedNode, true);\n }\n } else {\n if (icon && icon.classList.contains(COLLAPSIBLE)) {\n this.collapseNode(focusedNode, icon, e);\n } else {\n var parentLi = closest(closest(focusedNode, '.' + PARENTITEM), '.' + LISTITEM);\n if (!parentLi) {\n return;\n } else {\n if (!parentLi.classList.contains('e-disable')) {\n this.setFocus(focusedNode, parentLi);\n this.navigateToFocus(true);\n }\n }\n }\n }\n };\n TreeView.prototype.navigateNode = function (isTowards) {\n var focusedNode = this.getFocusedNode();\n this.focusNextNode(focusedNode, isTowards);\n };\n TreeView.prototype.navigateRootNode = function (isBackwards) {\n var focusedNode = this.getFocusedNode();\n var rootNode = isBackwards ? this.getRootNode() : this.getEndNode();\n if (!rootNode.classList.contains('e-disable')) {\n this.setFocus(focusedNode, rootNode);\n this.navigateToFocus(isBackwards);\n }\n };\n TreeView.prototype.getFocusedNode = function () {\n var selectedItem;\n var fNode = select('.' + LISTITEM + '[tabindex=\"0\"]', this.element);\n if (isNullOrUndefined(fNode)) {\n selectedItem = select('.' + LISTITEM, this.element);\n }\n return isNullOrUndefined(fNode) ? isNullOrUndefined(selectedItem) ? this.element.firstElementChild : selectedItem : fNode;\n };\n TreeView.prototype.focusNextNode = function (li, isTowards) {\n var nextNode = isTowards ? this.getNextNode(li) : this.getPrevNode(li);\n this.setFocus(li, nextNode);\n this.navigateToFocus(!isTowards);\n if (nextNode.classList.contains('e-disable')) {\n var lastChild = nextNode.lastChild;\n if (nextNode.previousSibling == null && nextNode.classList.contains('e-level-1')) {\n this.focusNextNode(nextNode, true);\n } else if (nextNode.nextSibling == null && nextNode.classList.contains('e-node-collapsed')) {\n this.focusNextNode(nextNode, false);\n } else if (nextNode.nextSibling == null && lastChild.classList.contains(TEXTWRAP)) {\n this.focusNextNode(nextNode, false);\n } else {\n this.focusNextNode(nextNode, isTowards);\n }\n }\n };\n TreeView.prototype.getNextNode = function (li) {\n var index = this.liList.indexOf(li);\n var nextNode;\n do {\n index++;\n nextNode = this.liList[parseInt(index.toString(), 10)];\n if (isNullOrUndefined(nextNode)) {\n return li;\n }\n } while (!isVisible(nextNode));\n return nextNode;\n };\n TreeView.prototype.getPrevNode = function (li) {\n var index = this.liList.indexOf(li);\n var prevNode;\n do {\n index--;\n prevNode = this.liList[parseInt(index.toString(), 10)];\n if (isNullOrUndefined(prevNode)) {\n return li;\n }\n } while (!isVisible(prevNode));\n return prevNode;\n };\n TreeView.prototype.getRootNode = function () {\n var index = 0;\n var rootNode;\n do {\n rootNode = this.liList[parseInt(index.toString(), 10)];\n index++;\n } while (!isVisible(rootNode));\n return rootNode;\n };\n TreeView.prototype.getEndNode = function () {\n var index = this.liList.length - 1;\n var endNode;\n do {\n endNode = this.liList[parseInt(index.toString(), 10)];\n index--;\n } while (!isVisible(endNode));\n return endNode;\n };\n TreeView.prototype.setFocus = function (preNode, nextNode) {\n removeClass([preNode], FOCUS);\n preNode.setAttribute('tabindex', '-1');\n if (!nextNode.classList.contains('e-disable')) {\n addClass([nextNode], FOCUS);\n nextNode.setAttribute('tabindex', '0');\n nextNode.focus();\n EventHandler.add(nextNode, 'blur', this.focusOut, this);\n this.updateIdAttr(preNode, nextNode);\n }\n };\n TreeView.prototype.updateIdAttr = function (preNode, nextNode) {\n this.element.removeAttribute('aria-activedescendant');\n if (preNode) {\n preNode.removeAttribute('id');\n }\n nextNode.setAttribute('id', this.element.id + '_active');\n this.element.setAttribute('aria-activedescendant', this.element.id + '_active');\n };\n TreeView.prototype.focusIn = function () {\n if (!this.mouseDownStatus) {\n var focusedElement = this.getFocusedNode();\n if (focusedElement.classList.contains('e-disable')) {\n focusedElement.setAttribute('tabindex', '-1');\n this.navigateNode(true);\n } else {\n focusedElement.setAttribute('tabindex', '0');\n addClass([focusedElement], FOCUS);\n EventHandler.add(focusedElement, 'blur', this.focusOut, this);\n }\n this.mouseDownStatus = false;\n }\n };\n TreeView.prototype.focusOut = function (event) {\n var focusedElement = this.getFocusedNode();\n if (event.target === focusedElement) {\n removeClass([focusedElement], FOCUS);\n EventHandler.remove(focusedElement, 'blur', this.focusOut);\n }\n };\n TreeView.prototype.onMouseOver = function (e) {\n if (Browser.isDevice) {\n return;\n }\n var target = e.target;\n var classList = target.classList;\n var currentLi = closest(target, '.' + LISTITEM);\n if (!currentLi || classList.contains(PARENTITEM) || classList.contains(LISTITEM)) {\n this.removeHover();\n return;\n } else {\n if (currentLi && !currentLi.classList.contains('e-disable')) {\n this.setHover(currentLi);\n }\n }\n };\n TreeView.prototype.setHover = function (li) {\n if (!li.classList.contains(HOVER) && !li.classList.contains(PREVENTSELECT)) {\n this.removeHover();\n addClass([li], HOVER);\n }\n };\n TreeView.prototype.onMouseLeave = function () {\n this.removeHover();\n };\n TreeView.prototype.removeHover = function () {\n var hoveredNode = selectAll('.' + HOVER, this.element);\n if (hoveredNode && hoveredNode.length) {\n removeClass(hoveredNode, HOVER);\n }\n };\n TreeView.prototype.getNodeData = function (currLi, fromDS) {\n if (!isNullOrUndefined(currLi) && currLi.classList.contains(LISTITEM) && !isNullOrUndefined(closest(currLi, '.' + CONTROL)) && closest(currLi, '.' + CONTROL).classList.contains(ROOT)) {\n var id = currLi.getAttribute('data-uid');\n var text = this.getText(currLi, fromDS);\n var pNode = closest(currLi.parentNode, '.' + LISTITEM);\n var pid = pNode ? pNode.getAttribute('data-uid') : null;\n var selected = currLi.classList.contains(ACTIVE);\n var selectable = currLi.classList.contains(PREVENTSELECT) ? false : true;\n var expanded = currLi.getAttribute('aria-expanded') === 'true' ? true : false;\n var hasChildren = currLi.getAttribute('aria-expanded') !== null ? true : (select('.' + EXPANDABLE, currLi) || select('.' + COLLAPSIBLE, currLi)) != null ? true : false;\n var checked = null;\n var checkboxElement = select('.' + CHECKBOXWRAP, currLi);\n if (this.showCheckBox && checkboxElement) {\n checked = currLi.getAttribute('aria-checked');\n }\n return {\n id: id,\n text: text,\n parentID: pid,\n selected: selected,\n selectable: selectable,\n expanded: expanded,\n isChecked: checked,\n hasChildren: hasChildren\n };\n }\n return {\n id: '',\n text: '',\n parentID: '',\n selected: false,\n expanded: false,\n isChecked: '',\n hasChildren: false\n };\n };\n TreeView.prototype.getText = function (currLi, fromDS) {\n if (fromDS) {\n var nodeData = this.getNodeObject(currLi.getAttribute('data-uid'));\n var level = parseFloat(currLi.getAttribute('aria-level'));\n var nodeFields = this.getFields(this.fields, level, 1);\n return getValue(nodeFields.text, nodeData);\n }\n return select('.' + LISTTEXT, currLi).textContent;\n };\n TreeView.prototype.getExpandEvent = function (currLi, e) {\n var nodeData = this.getNodeData(currLi);\n return {\n cancel: false,\n isInteracted: isNullOrUndefined(e) ? false : true,\n node: currLi,\n nodeData: nodeData,\n event: e\n };\n };\n TreeView.prototype.renderNodeTemplate = function (data, textEle, dataId) {\n var tempArr = this.nodeTemplateFn(data, this, 'nodeTemplate' + dataId, this.element.id + 'nodeTemplate', this.isStringTemplate, undefined, textEle, this.root);\n if (tempArr) {\n tempArr = Array.prototype.slice.call(tempArr);\n append(tempArr, textEle);\n }\n };\n TreeView.prototype.destroyTemplate = function (liEle) {\n this.clearTemplate(['nodeTemplate' + liEle.getAttribute('data-uid')]);\n };\n TreeView.prototype.reRenderNodes = function () {\n this.updateListProp(this.fields);\n if (Browser.isIE) {\n this.ulElement = this.element.querySelector('.e-list-parent.e-ul');\n this.ulElement.parentElement.removeChild(this.ulElement);\n } else {\n this.element.innerHTML = '';\n }\n if (!isNullOrUndefined(this.nodeTemplateFn)) {\n this.clearTemplate();\n }\n this.setTouchClass();\n this.setProperties({\n selectedNodes: [],\n checkedNodes: [],\n expandedNodes: []\n }, true);\n this.checkedElement = [];\n this.isLoaded = false;\n this.setDataBinding(true);\n };\n TreeView.prototype.setCssClass = function (oldClass, newClass) {\n if (!isNullOrUndefined(oldClass) && oldClass !== '') {\n removeClass([this.element], oldClass.split(' '));\n }\n if (!isNullOrUndefined(newClass) && newClass !== '') {\n addClass([this.element], newClass.split(' '));\n }\n };\n TreeView.prototype.editingHandler = function (e) {\n var target = e.target;\n if (!target || target.classList.contains(ROOT) || target.classList.contains(PARENTITEM) || target.classList.contains(LISTITEM) || target.classList.contains(ICON) || target.classList.contains(INPUT) || target.classList.contains(INPUTGROUP)) {\n return;\n } else {\n var liEle = closest(target, '.' + LISTITEM);\n this.createTextbox(liEle);\n }\n };\n TreeView.prototype.createTextbox = function (liEle) {\n var _this = this;\n var oldInpEle = select('.' + TREEINPUT, this.element);\n if (oldInpEle) {\n oldInpEle.blur();\n }\n var textEle = select('.' + LISTTEXT, liEle);\n this.updateOldText(liEle);\n var innerEle = this.createElement('input', {\n className: TREEINPUT,\n attrs: {\n value: this.oldText\n }\n });\n var eventArgs = this.getEditEvent(liEle, null, innerEle.outerHTML);\n this.trigger('nodeEditing', eventArgs, function (observedArgs) {\n if (!observedArgs.cancel) {\n var inpWidth = textEle.offsetWidth + 5;\n var style_1 = 'width:' + inpWidth + 'px';\n addClass([liEle], EDITING);\n if (!isNullOrUndefined(_this.nodeTemplateFn)) {\n _this.destroyTemplate(liEle);\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (_this.isReact) {\n setTimeout(function () {\n _this.renderTextBox(eventArgs, textEle, style_1);\n }, 5);\n } else {\n _this.renderTextBox(eventArgs, textEle, style_1);\n }\n }\n });\n };\n TreeView.prototype.renderTextBox = function (eventArgs, textEle, style) {\n textEle.innerHTML = eventArgs.innerHtml;\n var inpEle = select('.' + TREEINPUT, textEle);\n this.inputObj = Input.createInput({\n element: inpEle,\n properties: {\n enableRtl: this.enableRtl\n }\n }, this.createElement);\n this.inputObj.container.setAttribute('style', style);\n inpEle.focus();\n var inputEle = inpEle;\n inputEle.setSelectionRange(0, inputEle.value.length);\n this.wireInputEvents(inpEle);\n };\n TreeView.prototype.updateOldText = function (liEle) {\n var id = liEle.getAttribute('data-uid');\n this.editData = this.getNodeObject(id);\n var level = parseFloat(liEle.getAttribute('aria-level'));\n this.editFields = this.getFields(this.fields, level, 1);\n this.oldText = getValue(this.editFields.text, this.editData);\n };\n TreeView.prototype.inputFocusOut = function (e) {\n if (!select('.' + TREEINPUT, this.element)) {\n return;\n }\n var target = e.target;\n var newText = target.value;\n var txtEle = closest(target, '.' + LISTTEXT);\n var liEle = closest(target, '.' + LISTITEM);\n detach(this.inputObj.container);\n Input.destroy({\n element: target,\n properties: this.properties\n });\n if (this.fields.dataSource instanceof DataManager && !this.isOffline) {\n this.crudOperation('update', null, liEle, newText, null, null, true);\n } else {\n this.appendNewText(liEle, txtEle, newText, true);\n }\n EventHandler.remove(target, 'blur', this.inputFocusOut);\n this.inputObj = null;\n detach(target);\n target = null;\n };\n TreeView.prototype.appendNewText = function (liEle, txtEle, newText, isInput) {\n var _this = this;\n var eventArgs = this.getEditEvent(liEle, newText, null);\n this.trigger('nodeEdited', eventArgs, function (observedArgs) {\n newText = observedArgs.cancel ? observedArgs.oldText : observedArgs.newText;\n _this.updateText(liEle, txtEle, newText, isInput);\n if (observedArgs.oldText !== newText) {\n _this.triggerEvent('nodeEdited', [_this.getNode(liEle)]);\n }\n });\n };\n TreeView.prototype.updateText = function (liEle, txtEle, newText, isInput) {\n var newData = setValue(this.editFields.text, newText, this.editData);\n if (!isNullOrUndefined(this.nodeTemplateFn)) {\n txtEle.innerText = '';\n var dataId = liEle.getAttribute('data-uid');\n this.renderNodeTemplate(newData, txtEle, dataId);\n this.renderReactTemplates();\n } else {\n if (this.enableHtmlSanitizer) {\n txtEle.innerText = SanitizeHtmlHelper.sanitize(newText);\n } else {\n txtEle.innerHTML = newText;\n }\n }\n if (isInput) {\n removeClass([liEle], EDITING);\n liEle.focus();\n EventHandler.add(liEle, 'blur', this.focusOut, this);\n addClass([liEle], FOCUS);\n }\n if (this.allowTextWrap) {\n this.calculateWrap(liEle);\n }\n };\n TreeView.prototype.getElement = function (ele) {\n if (isNullOrUndefined(ele)) {\n return null;\n } else if (typeof ele === 'string') {\n return this.element.querySelector('[data-uid=\"' + ele + '\"]');\n } else if (typeof ele === 'object') {\n return getElement(ele);\n } else {\n return null;\n }\n };\n TreeView.prototype.getId = function (ele) {\n if (isNullOrUndefined(ele)) {\n return null;\n } else if (typeof ele === 'string') {\n return ele;\n } else if (typeof ele === 'object') {\n return getElement(ele).getAttribute('data-uid');\n } else {\n return null;\n }\n };\n TreeView.prototype.getEditEvent = function (liEle, newText, inpEle) {\n var data = this.getNodeData(liEle);\n return {\n cancel: false,\n newText: newText,\n node: liEle,\n nodeData: data,\n oldText: this.oldText,\n innerHtml: inpEle\n };\n };\n TreeView.prototype.getNodeObject = function (id) {\n var childNodes;\n if (isNullOrUndefined(id)) {\n return childNodes;\n } else if (this.dataType === 1) {\n for (var i = 0, objlen = this.treeData.length; i < objlen; i++) {\n var dataId = getValue(this.fields.id, this.treeData[parseInt(i.toString(), 10)]);\n if (!isNullOrUndefined(this.treeData[parseInt(i.toString(), 10)]) && !isNullOrUndefined(dataId) && dataId.toString() === id) {\n return this.treeData[parseInt(i.toString(), 10)];\n }\n }\n } else {\n return this.getChildNodeObject(this.treeData, this.fields, id);\n }\n return childNodes;\n };\n TreeView.prototype.getChildNodeObject = function (obj, mapper, id) {\n var newList;\n if (isNullOrUndefined(obj)) {\n return newList;\n }\n for (var i = 0, objlen = obj.length; i < objlen; i++) {\n var dataId = getValue(mapper.id, obj[parseInt(i.toString(), 10)]);\n if (obj[parseInt(i.toString(), 10)] && dataId && dataId.toString() === id) {\n return obj[parseInt(i.toString(), 10)];\n } else if (typeof mapper.child === 'string' && !isNullOrUndefined(getValue(mapper.child, obj[parseInt(i.toString(), 10)]))) {\n var childData = getValue(mapper.child, obj[parseInt(i.toString(), 10)]);\n newList = this.getChildNodeObject(childData, this.getChildMapper(mapper), id);\n if (newList !== undefined) {\n break;\n }\n } else if (this.fields.dataSource instanceof DataManager && !isNullOrUndefined(getValue('child', obj[parseInt(i.toString(), 10)]))) {\n var child = 'child';\n newList = this.getChildNodeObject(getValue(child, obj[parseInt(i.toString(), 10)]), this.getChildMapper(mapper), id);\n if (newList !== undefined) {\n break;\n }\n } else if (this.isChildObject()) {\n var children = 'child';\n var childData = getValue(children, obj[parseInt(i.toString(), 10)]);\n newList = this.getChildNodeObject(childData, this.getChildMapper(mapper), id);\n if (newList !== undefined) {\n break;\n }\n }\n }\n return newList;\n };\n TreeView.prototype.setDragAndDrop = function (toBind) {\n if (toBind && !this.disabled) {\n this.initializeDrag();\n } else {\n this.destroyDrag();\n }\n };\n TreeView.prototype.initializeDrag = function () {\n var _this = this;\n var virtualEle;\n this.dragObj = new Draggable(this.element, {\n enableTailMode: true,\n enableAutoScroll: true,\n dragArea: this.dragArea,\n dragTarget: '.' + TEXTWRAP,\n enableTapHold: true,\n tapHoldThreshold: 100,\n helper: function (e) {\n _this.dragTarget = e.sender.target;\n var dragRoot = closest(_this.dragTarget, '.' + ROOT);\n var dragWrap = closest(_this.dragTarget, '.' + TEXTWRAP);\n _this.dragLi = closest(_this.dragTarget, '.' + LISTITEM);\n if (_this.fullRowSelect && !dragWrap && _this.dragTarget.classList.contains(FULLROW)) {\n dragWrap = _this.dragTarget.nextElementSibling;\n }\n if (!_this.dragTarget || !e.element.isSameNode(dragRoot) || !dragWrap || _this.dragTarget.classList.contains(ROOT) || _this.dragTarget.classList.contains(PARENTITEM) || _this.dragTarget.classList.contains(LISTITEM) || _this.dragLi.classList.contains('e-disable')) {\n return false;\n }\n var cloneEle = dragWrap.cloneNode(true);\n if (isNullOrUndefined(select('div.' + ICON, cloneEle))) {\n var icon = _this.createElement('div', {\n className: ICON + ' ' + EXPANDABLE\n });\n cloneEle.insertBefore(icon, cloneEle.children[0]);\n }\n var cssClass = DRAGITEM + ' ' + ROOT + ' ' + _this.cssClass + ' ' + (_this.enableRtl ? RTL$1 : '');\n virtualEle = _this.createElement('div', {\n className: cssClass\n });\n virtualEle.appendChild(cloneEle);\n var nLen = _this.selectedNodes.length;\n if (nLen > 1 && _this.allowMultiSelection && _this.dragLi.classList.contains(ACTIVE)) {\n var cNode = _this.createElement('span', {\n className: DROPCOUNT,\n innerHTML: '' + nLen\n });\n virtualEle.appendChild(cNode);\n }\n document.body.appendChild(virtualEle);\n document.body.style.cursor = '';\n _this.dragData = _this.getNodeData(_this.dragLi);\n return virtualEle;\n },\n dragStart: function (e) {\n addClass([_this.element], DRAGGING);\n var listItem = closest(e.target, '.e-list-item');\n var level;\n if (listItem) {\n level = parseInt(listItem.getAttribute('aria-level'), 10);\n }\n var eventArgs = _this.getDragEvent(e.event, _this, null, e.target, null, virtualEle, level);\n if (eventArgs.draggedNode.classList.contains(EDITING)) {\n _this.dragObj.intDestroy(e.event);\n _this.dragCancelAction(virtualEle);\n } else {\n _this.trigger('nodeDragStart', eventArgs, function (observedArgs) {\n if (observedArgs.cancel) {\n _this.dragObj.intDestroy(e.event);\n _this.dragCancelAction(virtualEle);\n } else {\n _this.dragStartAction = true;\n }\n });\n }\n },\n drag: function (e) {\n _this.dragObj.setProperties({\n cursorAt: {\n top: !isNullOrUndefined(e.event.targetTouches) || Browser.isDevice ? 60 : -20\n }\n });\n _this.dragAction(e, virtualEle);\n },\n dragStop: function (e) {\n removeClass([_this.element], DRAGGING);\n if (!e.target.classList.contains('e-sibling')) {\n _this.removeVirtualEle();\n }\n var dropTarget = e.target;\n var preventTargetExpand = false;\n var dropRoot = closest(dropTarget, '.' + DROPPABLE);\n if (!dropTarget || !dropRoot) {\n detach(e.helper);\n document.body.style.cursor = '';\n }\n var listItem = closest(dropTarget, '.e-list-item');\n var level;\n if (listItem) {\n level = parseInt(listItem.getAttribute('aria-level'), 10);\n }\n var eventArgs = _this.getDragEvent(e.event, _this, dropTarget, dropTarget, null, e.helper, level);\n eventArgs.preventTargetExpand = preventTargetExpand;\n _this.trigger('nodeDragStop', eventArgs, function (observedArgs) {\n _this.dragParent = observedArgs.draggedParentNode;\n _this.preventExpand = observedArgs.preventTargetExpand;\n if (observedArgs.cancel) {\n if (e.helper.parentNode) {\n detach(e.helper);\n }\n document.body.style.cursor = '';\n if (dropTarget.classList.contains('e-sibling')) {\n _this.removeVirtualEle();\n }\n }\n _this.dragStartAction = false;\n });\n }\n });\n this.dropObj = new Droppable(this.element, {\n out: function (e) {\n if (!isNullOrUndefined(e) && !e.target.classList.contains(SIBLING) && _this.dropObj.dragData.default && _this.dropObj.dragData.default.helper.classList.contains(ROOT)) {\n document.body.style.cursor = 'not-allowed';\n }\n },\n over: function () {\n document.body.style.cursor = '';\n },\n drop: function (e) {\n _this.dropAction(e);\n _this.removeVirtualEle();\n }\n });\n };\n TreeView.prototype.dragCancelAction = function (virtualEle) {\n detach(virtualEle);\n removeClass([this.element], DRAGGING);\n this.dragStartAction = false;\n };\n TreeView.prototype.getOffsetX = function (event, target) {\n var touchList = event.changedTouches;\n if (touchList && touchList.length > 0) {\n return touchList[0].clientX - target.getBoundingClientRect().left;\n } else {\n return event.offsetX;\n }\n };\n TreeView.prototype.getOffsetY = function (event, target) {\n var touchList = event.changedTouches;\n if (touchList && touchList.length > 0) {\n return touchList[0].clientY - target.getBoundingClientRect().top;\n } else {\n return event.offsetY;\n }\n };\n TreeView.prototype.dragAction = function (e, virtualEle) {\n var dropRoot = closest(e.target, '.' + DROPPABLE);\n var dropWrap = closest(e.target, '.' + TEXTWRAP);\n var icon = select('div.' + ICON, virtualEle);\n removeClass([icon], [DROPIN, DROPNEXT, DROPOUT, NODROP]);\n this.isDropIn = false;\n this.removeVirtualEle();\n document.body.style.cursor = '';\n var classList = e.target.classList;\n var event = e.event;\n var offsetY = this.getOffsetY(event, e.target);\n var offsetX = this.getOffsetX(event, e.target);\n if (this.fullRowSelect && !dropWrap && !isNullOrUndefined(classList) && classList.contains(FULLROW)) {\n dropWrap = e.target.nextElementSibling;\n }\n if (dropRoot) {\n var dropLi = closest(e.target, '.' + LISTITEM);\n var checkWrapper = closest(e.target, '.' + CHECKBOXWRAP);\n var collapse = closest(e.target, '.' + COLLAPSIBLE);\n var expand = closest(e.target, '.' + EXPANDABLE);\n if (!dropRoot.classList.contains(ROOT) || dropWrap && !dropLi.isSameNode(this.dragLi) && !this.isDescendant(this.dragLi, dropLi)) {\n if (this.hasTemplate && dropLi) {\n var templateTarget = select(this.fullRowSelect ? '.' + FULLROW : '.' + TEXTWRAP, dropLi);\n if (e && !expand && !collapse && offsetY < 7 && !checkWrapper || expand && offsetY < 5 || collapse && offsetX < 3) {\n var index = this.fullRowSelect ? 1 : 0;\n this.appendIndicator(dropLi, icon, index);\n } else if (e && !expand && !collapse && !checkWrapper && templateTarget && offsetY > templateTarget.offsetHeight - 10 || expand && offsetY > 19 || collapse && offsetX > 19) {\n var index = this.fullRowSelect ? 2 : 1;\n this.appendIndicator(dropLi, icon, index);\n } else {\n addClass([icon], DROPIN);\n this.isDropIn = true;\n }\n } else {\n if (dropLi && e && !expand && !collapse && offsetY < 7 && !checkWrapper || expand && offsetY < 5 || collapse && offsetX < 3) {\n var index = this.fullRowSelect ? 1 : 0;\n this.appendIndicator(dropLi, icon, index);\n } else if (dropLi && e && !expand && !collapse && e.target.offsetHeight > 0 && offsetY > e.target.offsetHeight - 10 && !checkWrapper || expand && offsetY > 19 || collapse && offsetX > 19) {\n var index = this.fullRowSelect ? 2 : 1;\n this.appendIndicator(dropLi, icon, index);\n } else {\n addClass([icon], DROPIN);\n this.isDropIn = true;\n }\n }\n } else if (e.target.nodeName === 'LI' && !dropLi.isSameNode(this.dragLi) && !this.isDescendant(this.dragLi, dropLi)) {\n addClass([icon], DROPNEXT);\n this.renderVirtualEle(e);\n } else if (e.target.classList.contains(SIBLING)) {\n addClass([icon], DROPNEXT);\n } else {\n addClass([icon], DROPOUT);\n }\n } else {\n addClass([icon], NODROP);\n document.body.style.cursor = 'not-allowed';\n }\n var listItem = closest(e.target, '.e-list-item');\n var level;\n if (listItem) {\n level = parseInt(listItem.getAttribute('aria-level'), 10);\n }\n var eventArgs = this.getDragEvent(e.event, this, e.target, e.target, null, virtualEle, level);\n if (eventArgs.dropIndicator) {\n removeClass([icon], eventArgs.dropIndicator);\n }\n this.trigger('nodeDragging', eventArgs);\n if (eventArgs.dropIndicator) {\n addClass([icon], eventArgs.dropIndicator);\n }\n };\n TreeView.prototype.appendIndicator = function (dropLi, icon, index) {\n addClass([icon], DROPNEXT);\n var virEle = this.createElement('div', {\n className: SIBLING\n });\n dropLi.insertBefore(virEle, dropLi.children[parseInt(index.toString(), 10)]);\n };\n TreeView.prototype.dropAction = function (e) {\n var event = e.event;\n var offsetY = this.getOffsetY(event, e.target);\n var dropTarget = e.target;\n var dragObj;\n var level;\n var drop = false;\n var nodeData = [];\n var liArray = [];\n var dragInstance = e.dragData.draggable;\n for (var i = 0; i < dragInstance.ej2_instances.length; i++) {\n if (dragInstance.ej2_instances[parseInt(i.toString(), 10)] instanceof TreeView_1) {\n dragObj = dragInstance.ej2_instances[parseInt(i.toString(), 10)];\n break;\n }\n }\n if (dragObj && dragObj.dragTarget) {\n var dragTarget = dragObj.dragTarget;\n var dragLi = closest(dragTarget, '.' + LISTITEM);\n var dropLi = closest(dropTarget, '.' + LISTITEM);\n liArray.push(dragLi);\n if (dropLi == null && dropTarget.classList.contains(ROOT)) {\n dropLi = dropTarget.firstElementChild;\n }\n detach(e.droppedElement);\n document.body.style.cursor = '';\n if (!dropLi || dropLi.isSameNode(dragLi) || this.isDescendant(dragLi, dropLi)) {\n if (this.fields.dataSource instanceof DataManager === false) {\n this.preventExpand = false;\n }\n return;\n }\n if (dragObj.allowMultiSelection && dragLi.classList.contains(ACTIVE)) {\n var sNodes = selectAll('.' + ACTIVE, dragObj.element);\n liArray = sNodes;\n if (e.target.offsetHeight <= 33 && offsetY > e.target.offsetHeight - 10 && offsetY > 6) {\n for (var i = sNodes.length - 1; i >= 0; i--) {\n if (dropLi.isSameNode(sNodes[parseInt(i.toString(), 10)]) || this.isDescendant(sNodes[parseInt(i.toString(), 10)], dropLi)) {\n continue;\n }\n this.appendNode(dropTarget, sNodes[parseInt(i.toString(), 10)], dropLi, e, dragObj, offsetY);\n }\n } else {\n for (var i = 0; i < sNodes.length; i++) {\n if (dropLi.isSameNode(sNodes[parseInt(i.toString(), 10)]) || this.isDescendant(sNodes[parseInt(i.toString(), 10)], dropLi)) {\n continue;\n }\n this.appendNode(dropTarget, sNodes[parseInt(i.toString(), 10)], dropLi, e, dragObj, offsetY);\n }\n }\n } else {\n this.appendNode(dropTarget, dragLi, dropLi, e, dragObj, offsetY);\n }\n level = parseInt(dragLi.getAttribute('aria-level'), 10);\n drop = true;\n }\n if (this.fields.dataSource instanceof DataManager === false) {\n this.preventExpand = false;\n }\n for (var i = 0; i < liArray.length; i++) {\n nodeData.push(this.getNode(liArray[parseInt(i.toString(), 10)]));\n }\n this.trigger('nodeDropped', this.getDragEvent(e.event, dragObj, dropTarget, e.target, e.dragData.draggedElement, null, level, drop));\n if (dragObj.element.id !== this.element.id) {\n dragObj.triggerEvent('nodeDropped', nodeData);\n this.isNodeDropped = true;\n this.fields.dataSource = this.treeData;\n }\n this.triggerEvent('nodeDropped', nodeData);\n };\n TreeView.prototype.appendNode = function (dropTarget, dragLi, dropLi, e, dragObj, offsetY) {\n var checkWrapper = closest(dropTarget, '.' + CHECKBOXWRAP);\n var collapse = closest(e.target, '.' + COLLAPSIBLE);\n var expand = closest(e.target, '.' + EXPANDABLE);\n if (!dragLi.classList.contains('e-disable') && !checkWrapper && (expand && e.event.offsetY < 5 || collapse && e.event.offsetX < 3 || expand && e.event.offsetY > 19 || collapse && e.event.offsetX > 19 || !expand && !collapse)) {\n if (dropTarget.nodeName === 'LI') {\n this.dropAsSiblingNode(dragLi, dropLi, e, dragObj);\n } else if (dropTarget.firstElementChild && dropTarget.classList.contains(ROOT)) {\n if (dropTarget.firstElementChild.nodeName === 'UL') {\n this.dropAsSiblingNode(dragLi, dropLi, e, dragObj);\n }\n } else if (dropTarget.classList.contains('e-icon-collapsible') || dropTarget.classList.contains('e-icon-expandable')) {\n this.dropAsSiblingNode(dragLi, dropLi, e, dragObj);\n } else {\n this.dropAsChildNode(dragLi, dropLi, dragObj, null, e, offsetY, null, dropTarget);\n }\n } else {\n this.dropAsChildNode(dragLi, dropLi, dragObj, null, e, offsetY, true, dropTarget);\n }\n if (this.showCheckBox) {\n this.ensureIndeterminate();\n }\n };\n TreeView.prototype.dropAsSiblingNode = function (dragLi, dropLi, e, dragObj) {\n var dropUl = closest(dropLi, '.' + PARENTITEM);\n var dragParentUl = closest(dragLi, '.' + PARENTITEM);\n var dragParentLi = closest(dragParentUl, '.' + LISTITEM);\n var pre;\n if (e.target.offsetHeight > 0 && e.event.offsetY > e.target.offsetHeight - 2) {\n pre = false;\n } else if (e.event.offsetY < 2) {\n pre = true;\n } else if (e.target.classList.contains('e-icon-expandable') || e.target.classList.contains('e-icon-collapsible')) {\n if (e.event.offsetY < 5 || e.event.offsetX < 3) {\n pre = true;\n } else if (e.event.offsetY > 15 || e.event.offsetX > 17) {\n pre = false;\n }\n }\n if (e.target.classList.contains('e-icon-expandable') || e.target.classList.contains('e-icon-collapsible')) {\n var target = e.target.closest('li');\n dropUl.insertBefore(dragLi, pre ? target : target.nextElementSibling);\n } else {\n dropUl.insertBefore(dragLi, pre ? e.target : e.target.nextElementSibling);\n }\n this.moveData(dragLi, dropLi, dropUl, pre, dragObj);\n this.updateElement(dragParentUl, dragParentLi);\n this.updateAriaLevel(dragLi);\n if (dragObj.element.id === this.element.id) {\n this.updateList();\n } else {\n dragObj.updateInstance();\n this.updateInstance();\n }\n };\n TreeView.prototype.dropAsChildNode = function (dragLi, dropLi, dragObj, index, e, pos, isCheck, dropTarget) {\n var dragParentUl = closest(dragLi, '.' + PARENTITEM);\n var dragParentLi = closest(dragParentUl, '.' + LISTITEM);\n var dropParentUl = closest(dropLi, '.' + PARENTITEM);\n var templateTarget;\n if (e && e.target) {\n templateTarget = select(this.fullRowSelect ? '.' + FULLROW : '.' + TEXTWRAP, dropLi);\n }\n if (e && (pos < 7 && !dropTarget.classList.contains('e-sibling') || dropTarget.classList.contains('e-sibling') && !dropLi.lastChild.classList.contains('e-sibling')) && !isCheck) {\n dropParentUl.insertBefore(dragLi, dropLi);\n this.moveData(dragLi, dropLi, dropParentUl, true, dragObj);\n } else if (e && e.target.offsetHeight > 0 && pos > e.target.offsetHeight - 10 && !isCheck && !this.hasTemplate) {\n dropParentUl.insertBefore(dragLi, dropLi.nextElementSibling);\n this.moveData(dragLi, dropLi, dropParentUl, false, dragObj);\n } else if (this.hasTemplate && templateTarget && pos > templateTarget.offsetHeight - 10 && !isCheck) {\n dropParentUl.insertBefore(dragLi, dropLi.nextElementSibling);\n this.moveData(dragLi, dropLi, dropParentUl, false, dragObj);\n } else {\n var dropUl = this.expandParent(dropLi);\n var childLi = !isNullOrUndefined(index) ? dropUl.childNodes[parseInt(index.toString(), 10)] : null;\n dropUl.insertBefore(dragLi, childLi);\n this.moveData(dragLi, childLi, dropUl, true, dragObj);\n }\n this.updateElement(dragParentUl, dragParentLi);\n this.updateAriaLevel(dragLi);\n if (dragObj.element.id === this.element.id) {\n this.updateList();\n } else {\n dragObj.updateInstance();\n this.updateInstance();\n }\n };\n TreeView.prototype.moveData = function (dragLi, dropLi, dropUl, pre, dragObj) {\n var dropParentLi = closest(dropUl, '.' + LISTITEM);\n var id = this.getId(dragLi);\n var removedData = dragObj.updateChildField(dragObj.treeData, dragObj.fields, id, null, null, true);\n var refId = this.getId(dropLi);\n var index = this.getDataPos(this.treeData, this.fields, refId);\n var parentId = this.getId(dropParentLi);\n if (this.dataType === 1) {\n this.updateField(this.treeData, this.fields, parentId, 'hasChildren', true);\n var pos = isNullOrUndefined(index) ? this.treeData.length : pre ? index : index + 1;\n if (isNullOrUndefined(parentId) && !this.hasPid) {\n delete removedData[0][this.fields.parentID];\n } else {\n var currPid = this.isNumberTypeId ? parseFloat(parentId) : parentId;\n setValue(this.fields.parentID, currPid, removedData[0]);\n }\n this.treeData.splice(pos, 0, removedData[0]);\n if (dragObj.element.id !== this.element.id) {\n var childData = dragObj.removeChildNodes(id);\n pos++;\n for (var i = 0, len = childData.length; i < len; i++) {\n this.treeData.splice(pos, 0, childData[parseInt(i.toString(), 10)]);\n pos++;\n }\n dragObj.groupedData = dragObj.getGroupedData(dragObj.treeData, dragObj.fields.parentID);\n }\n this.groupedData = this.getGroupedData(this.treeData, this.fields.parentID);\n } else {\n this.addChildData(this.treeData, this.fields, parentId, removedData, pre ? index : index + 1);\n }\n };\n TreeView.prototype.expandParent = function (dropLi) {\n var dropIcon = select('div.' + ICON, dropLi);\n if (dropIcon && dropIcon.classList.contains(EXPANDABLE) && this.preventExpand !== true) {\n this.expandAction(dropLi, dropIcon, null);\n }\n var dropUl = select('.' + PARENTITEM, dropLi);\n if (this.preventExpand === true && !dropUl && dropIcon) {\n this.renderChildNodes(dropLi);\n }\n dropUl = select('.' + PARENTITEM, dropLi);\n if (!isNullOrUndefined(dropUl) && this.preventExpand === true) {\n dropUl.style.display = 'none';\n }\n if (!isNullOrUndefined(dropUl) && this.preventExpand === false) {\n dropUl.style.display = 'block';\n }\n if (isNullOrUndefined(dropUl) && this.preventExpand === true) {\n if (isNullOrUndefined(dropIcon)) {\n ListBase.generateIcon(this.createElement, dropLi, EXPANDABLE, this.listBaseOption);\n }\n var icon = select('div.' + ICON, dropLi);\n if (icon) {\n icon.classList.add('e-icon-expandable');\n }\n dropUl = ListBase.generateUL(this.createElement, [], null, this.listBaseOption);\n dropLi.appendChild(dropUl);\n if (icon) {\n removeClass([icon], COLLAPSIBLE);\n } else {\n ListBase.generateIcon(this.createElement, dropLi, EXPANDABLE, this.listBaseOption);\n }\n dropLi.setAttribute('aria-expanded', 'false');\n dropUl.style.display = 'none';\n }\n if (isNullOrUndefined(dropUl)) {\n var args = this.expandArgs;\n if (isNullOrUndefined(args) || args && args.name !== 'nodeExpanding') {\n this.trigger('nodeExpanding', this.getExpandEvent(dropLi, null));\n }\n if (isNullOrUndefined(dropIcon)) {\n ListBase.generateIcon(this.createElement, dropLi, COLLAPSIBLE, this.listBaseOption);\n }\n var icon = select('div.' + ICON, dropLi);\n if (icon) {\n removeClass([icon], EXPANDABLE);\n } else {\n ListBase.generateIcon(this.createElement, dropLi, COLLAPSIBLE, this.listBaseOption);\n icon = select('div.' + ICON, dropLi);\n removeClass([icon], EXPANDABLE);\n }\n dropUl = ListBase.generateUL(this.createElement, [], null, this.listBaseOption);\n dropLi.appendChild(dropUl);\n this.addExpand(dropLi);\n this.trigger('nodeExpanded', this.getExpandEvent(dropLi, null));\n }\n return dropUl;\n };\n TreeView.prototype.updateElement = function (dragParentUl, dragParentLi) {\n if (dragParentLi && dragParentUl.childElementCount === 0) {\n var dragIcon = select('div.' + ICON, dragParentLi);\n detach(dragParentUl);\n detach(dragIcon);\n var parentId = this.getId(dragParentLi);\n this.updateField(this.treeData, this.fields, parentId, 'hasChildren', false);\n this.removeExpand(dragParentLi, true);\n }\n };\n TreeView.prototype.updateAriaLevel = function (dragLi) {\n var level = this.parents(dragLi, '.' + PARENTITEM).length;\n dragLi.setAttribute('aria-level', '' + level);\n this.updateChildAriaLevel(select('.' + PARENTITEM, dragLi), level + 1);\n };\n TreeView.prototype.updateChildAriaLevel = function (element, level) {\n if (!isNullOrUndefined(element)) {\n var cNodes = element.childNodes;\n for (var i = 0, len = cNodes.length; i < len; i++) {\n var liEle = cNodes[parseInt(i.toString(), 10)];\n liEle.setAttribute('aria-level', '' + level);\n this.updateChildAriaLevel(select('.' + PARENTITEM, liEle), level + 1);\n }\n }\n };\n TreeView.prototype.renderVirtualEle = function (e) {\n var pre;\n var event = e.event;\n var offsetY = this.getOffsetY(event, e.target);\n if (offsetY > e.target.offsetHeight - 2) {\n pre = false;\n } else if (offsetY < 2) {\n pre = true;\n }\n var virEle = this.createElement('div', {\n className: SIBLING\n });\n var index = this.fullRowSelect ? pre ? 1 : 2 : pre ? 0 : 1;\n e.target.insertBefore(virEle, e.target.children[parseInt(index.toString(), 10)]);\n };\n TreeView.prototype.removeVirtualEle = function () {\n var sibEle = select('.' + SIBLING);\n if (sibEle) {\n detach(sibEle);\n }\n };\n TreeView.prototype.destroyDrag = function () {\n if (this.dragObj && this.dropObj) {\n this.dragObj.destroy();\n this.dropObj.destroy();\n }\n };\n TreeView.prototype.getDragEvent = function (event, obj, dropTarget, target, dragNode, cloneEle, level, drop) {\n var dropLi = dropTarget ? closest(dropTarget, '.' + LISTITEM) : null;\n var dropData = dropLi ? this.getNodeData(dropLi) : null;\n var draggedNode = obj ? obj.dragLi : dragNode;\n var draggedNodeData = obj ? obj.dragData : null;\n var newParent = dropTarget ? this.parents(dropTarget, '.' + LISTITEM) : null;\n var dragLiParent = obj.dragLi.parentElement;\n var dragParent = obj.dragLi ? closest(dragLiParent, '.' + LISTITEM) : null;\n var targetParent = null;\n var indexValue = null;\n var iconCss = [DROPNEXT, DROPIN, DROPOUT, NODROP];\n var iconClass = null;\n var node = drop === true ? draggedNode : dropLi;\n var index = node ? closest(node, '.e-list-parent') : null;\n var i = 0;\n var position = null;\n dragParent = obj.dragLi && dragParent === null ? closest(dragLiParent, '.' + ROOT) : dragParent;\n dragParent = drop === true ? this.dragParent : dragParent;\n if (cloneEle) {\n while (i < 4) {\n if (select('.' + ICON, cloneEle).classList.contains(iconCss[parseInt(i.toString(), 10)])) {\n iconClass = iconCss[parseInt(i.toString(), 10)];\n break;\n }\n i++;\n }\n }\n if (index) {\n var dropTar = 0;\n for (i = 0; i < index.childElementCount; i++) {\n dropTar = drop !== true && index.children[parseInt(i.toString(), 10)] === draggedNode && dropLi !== draggedNode ? ++dropTar : dropTar;\n if (drop !== true && index.children[parseInt(i.toString(), 10)].classList.contains('e-hover')) {\n indexValue = event.offsetY >= 23 ? i + 1 : i;\n break;\n } else if (index.children[parseInt(i.toString(), 10)] === node) {\n indexValue = event.offsetY >= 23 ? i : i;\n break;\n }\n }\n indexValue = dropTar !== 0 ? --indexValue : indexValue;\n position = this.isDropIn ? 'Inside' : event.offsetY < 7 ? 'Before' : 'After';\n }\n if (dropTarget) {\n if (newParent.length === 0) {\n targetParent = null;\n } else if (dropTarget.classList.contains(LISTITEM)) {\n targetParent = newParent[0];\n } else {\n targetParent = newParent[1];\n }\n }\n if (dropLi === draggedNode) {\n targetParent = dropLi;\n }\n if (dropTarget && target.offsetHeight <= 33 && event.offsetY < target.offsetHeight - 10 && event.offsetY > 6) {\n targetParent = dropLi;\n if (drop !== true) {\n level = ++level;\n var parent_2 = targetParent ? select('.e-list-parent', targetParent) : null;\n indexValue = parent_2 ? parent_2.children.length : 0;\n if (!(this.fields.dataSource instanceof DataManager) && parent_2 === null && targetParent) {\n var parent_3 = targetParent.hasAttribute('data-uid') ? this.getChildNodes(this.fields.dataSource, targetParent.getAttribute('data-uid').toString()) : null;\n indexValue = parent_3 ? parent_3.length : 0;\n }\n }\n }\n return {\n cancel: false,\n clonedNode: cloneEle,\n event: event,\n draggedNode: draggedNode,\n draggedNodeData: draggedNodeData,\n droppedNode: dropLi,\n droppedNodeData: dropData,\n dropIndex: indexValue,\n dropLevel: level,\n draggedParentNode: dragParent,\n dropTarget: targetParent,\n dropIndicator: iconClass,\n target: target,\n position: position\n };\n };\n TreeView.prototype.addFullRow = function (toAdd) {\n var len = this.liList.length;\n if (toAdd) {\n for (var i = 0; i < len; i++) {\n this.createFullRow(this.liList[parseInt(i.toString(), 10)]);\n }\n } else {\n for (var i = 0; i < len; i++) {\n var rowDiv = select('.' + FULLROW, this.liList[parseInt(i.toString(), 10)]);\n detach(rowDiv);\n }\n }\n };\n TreeView.prototype.createFullRow = function (item) {\n var rowDiv = this.createElement('div', {\n className: FULLROW\n });\n item.insertBefore(rowDiv, item.childNodes[0]);\n };\n TreeView.prototype.addMultiSelect = function (toAdd) {\n if (toAdd) {\n var liEles = selectAll('.' + LISTITEM + ':not([aria-selected=\"true\"])', this.element);\n for (var _i = 0, liEles_1 = liEles; _i < liEles_1.length; _i++) {\n var ele = liEles_1[_i];\n ele.setAttribute('aria-selected', 'false');\n }\n } else {\n var liEles = selectAll('.' + LISTITEM + '[aria-selected=\"false\"]', this.element);\n for (var _a = 0, liEles_2 = liEles; _a < liEles_2.length; _a++) {\n var ele = liEles_2[_a];\n ele.removeAttribute('aria-selected');\n }\n }\n };\n TreeView.prototype.collapseByLevel = function (element, level, excludeHiddenNodes, currentLevel) {\n currentLevel = isNullOrUndefined(currentLevel) ? 1 : currentLevel;\n if (level > 0 && !isNullOrUndefined(element)) {\n var cNodes = this.getVisibleNodes(excludeHiddenNodes, element.childNodes);\n for (var i = 0, len = cNodes.length; i < len; i++) {\n var liEle = cNodes[parseInt(i.toString(), 10)];\n var icon = select('.' + COLLAPSIBLE, select('.' + TEXTWRAP, liEle));\n if (currentLevel >= level && !isNullOrUndefined(icon)) {\n this.collapseNode(liEle, icon, null);\n }\n this.collapseByLevel(select('.' + PARENTITEM, liEle), level, excludeHiddenNodes, currentLevel + 1);\n }\n }\n };\n TreeView.prototype.collapseAllNodes = function (excludeHiddenNodes) {\n var cIcons = this.getVisibleNodes(excludeHiddenNodes, selectAll('.' + COLLAPSIBLE, this.element));\n for (var i = 0, len = cIcons.length; i < len; i++) {\n var icon = cIcons[parseInt(i.toString(), 10)];\n var liEle = closest(icon, '.' + LISTITEM);\n this.collapseNode(liEle, icon, null);\n }\n };\n TreeView.prototype.expandByLevel = function (element, level, excludeHiddenNodes) {\n if (level > 0 && !isNullOrUndefined(element)) {\n var eNodes = this.getVisibleNodes(excludeHiddenNodes, element.childNodes);\n for (var i = 0, len = eNodes.length; i < len; i++) {\n var liEle = eNodes[parseInt(i.toString(), 10)];\n var icon = select('.' + EXPANDABLE, select('.' + TEXTWRAP, liEle));\n if (!isNullOrUndefined(icon)) {\n this.expandAction(liEle, icon, null);\n }\n this.expandByLevel(select('.' + PARENTITEM, liEle), level - 1, excludeHiddenNodes);\n }\n }\n };\n TreeView.prototype.expandAllNodes = function (excludeHiddenNodes) {\n var eIcons = this.getVisibleNodes(excludeHiddenNodes, selectAll('.' + EXPANDABLE, this.element));\n for (var _i = 0, eIcons_1 = eIcons; _i < eIcons_1.length; _i++) {\n var icon = eIcons_1[_i];\n var liEle = closest(icon, '.' + LISTITEM);\n this.expandAction(liEle, icon, null, true, null, true);\n }\n };\n TreeView.prototype.getVisibleNodes = function (excludeHiddenNodes, nodes) {\n var vNodes = Array.prototype.slice.call(nodes);\n if (excludeHiddenNodes) {\n for (var i = 0; i < vNodes.length; i++) {\n if (!isVisible(vNodes[parseInt(i.toString(), 10)])) {\n vNodes.splice(i, 1);\n i--;\n }\n }\n }\n return vNodes;\n };\n TreeView.prototype.removeNode = function (node) {\n var dragParentUl = closest(node, '.' + PARENTITEM);\n var dragParentLi = closest(dragParentUl, '.' + LISTITEM);\n if (!isNullOrUndefined(this.nodeTemplateFn)) {\n this.destroyTemplate(node);\n }\n detach(node);\n this.updateElement(dragParentUl, dragParentLi);\n this.removeData(node);\n };\n TreeView.prototype.updateInstance = function () {\n this.updateList();\n this.updateSelectedNodes();\n this.updateExpandedNodes();\n };\n TreeView.prototype.updateList = function () {\n this.liList = Array.prototype.slice.call(selectAll('.' + LISTITEM, this.element));\n };\n TreeView.prototype.updateSelectedNodes = function () {\n this.setProperties({\n selectedNodes: []\n }, true);\n var sNodes = selectAll('.' + ACTIVE, this.element);\n this.selectGivenNodes(sNodes);\n };\n TreeView.prototype.updateExpandedNodes = function () {\n this.setProperties({\n expandedNodes: []\n }, true);\n var eNodes = selectAll('[aria-expanded=\"true\"]', this.element);\n for (var i = 0, len = eNodes.length; i < len; i++) {\n this.addExpand(eNodes[parseInt(i.toString(), 10)]);\n }\n };\n TreeView.prototype.removeData = function (node) {\n if (this.dataType === 1) {\n var dm = new DataManager(this.treeData);\n var id = this.getId(node);\n var data = {};\n var newId = this.isNumberTypeId ? parseFloat(id) : id;\n data[this.fields.id] = newId;\n dm.remove(this.fields.id, data);\n this.removeChildNodes(id);\n } else {\n var id = this.getId(node);\n this.updateChildField(this.treeData, this.fields, id, null, null, true);\n }\n };\n TreeView.prototype.removeChildNodes = function (parentId) {\n var cNodes = this.getChildGroup(this.groupedData, parentId, false);\n var childData = [];\n if (cNodes) {\n for (var i = 0, len = cNodes.length; i < len; i++) {\n var dm = new DataManager(this.treeData);\n var id = getValue(this.fields.id, cNodes[parseInt(i.toString(), 10)]).toString();\n var data = {};\n var currId = this.isNumberTypeId ? parseFloat(id) : id;\n data[this.fields.id] = currId;\n var nodeData = dm.remove(this.fields.id, data);\n childData.push(nodeData[0]);\n this.removeChildNodes(id);\n }\n }\n return childData;\n };\n TreeView.prototype.doGivenAction = function (nodes, selector, toExpand) {\n for (var i = 0, len = nodes.length; i < len; i++) {\n var liEle = this.getElement(nodes[parseInt(i.toString(), 10)]);\n if (isNullOrUndefined(liEle)) {\n continue;\n }\n var icon = select('.' + selector, select('.' + TEXTWRAP, liEle));\n if (!isNullOrUndefined(icon)) {\n if (toExpand) {\n this.expandAction(liEle, icon, null);\n } else {\n this.collapseNode(liEle, icon, null);\n }\n }\n }\n };\n TreeView.prototype.addGivenNodes = function (nodes, dropLi, index, isRemote, dropEle) {\n if (nodes.length === 0) {\n return;\n }\n var sNodes = this.getSortedData(nodes);\n var level = dropLi ? parseFloat(dropLi.getAttribute('aria-level')) + 1 : 1;\n if (isRemote) {\n this.updateMapper(level);\n }\n var li = ListBase.createListItemFromJson(this.createElement, sNodes, this.listBaseOption, level);\n var id = this.getId(dropLi);\n var dropIcon1;\n if (!isNullOrUndefined(dropLi)) {\n dropIcon1 = select('div.' + ICON, dropLi);\n }\n if (this.dataType === 1 && dropIcon1 && dropIcon1.classList.contains(EXPANDABLE) && !isNullOrUndefined(this.element.offsetParent) && !this.element.offsetParent.parentElement.classList.contains('e-filemanager')) {\n this.preventExpand = true;\n }\n if (this.dataType !== 1) {\n this.addChildData(this.treeData, this.fields, id, nodes, index);\n this.isFirstRender = false;\n }\n var dropUl;\n if (!dropEle) {\n dropUl = dropLi ? this.expandParent(dropLi) : select('.' + PARENTITEM, this.element);\n } else {\n dropUl = dropEle;\n }\n var refNode = !isNullOrUndefined(index) ? dropUl.childNodes[parseInt(index.toString(), 10)] : null;\n if (!this.isFirstRender || this.dataType === 1) {\n var args = this.expandArgs;\n if (refNode || this.sortOrder === 'None') {\n for (var i = 0; i < li.length; i++) {\n dropUl.insertBefore(li[parseInt(i.toString(), 10)], refNode);\n }\n if (this.dataType === 1 && !isNullOrUndefined(dropLi) && !isNullOrUndefined(this.element.offsetParent) && !this.element.offsetParent.parentElement.classList.contains('e-filemanager')) {\n this.preventExpand = false;\n var dropIcon = select('div.' + ICON, dropLi);\n if (dropIcon && dropIcon.classList.contains(EXPANDABLE) && (isNullOrUndefined(args) || args.name !== 'nodeExpanding')) {\n this.expandAction(dropLi, dropIcon, null);\n }\n }\n }\n if (!refNode && (this.sortOrder === 'Ascending' || this.sortOrder === 'Descending')) {\n if (dropUl.childNodes.length === 0) {\n for (var i = 0; i < li.length; i++) {\n dropUl.insertBefore(li[parseInt(i.toString(), 10)], refNode);\n }\n if (this.dataType === 1 && !isNullOrUndefined(dropLi) && !isNullOrUndefined(this.element.offsetParent) && !this.element.offsetParent.parentElement.classList.contains('e-filemanager')) {\n this.preventExpand = false;\n var dropIcon = select('div.' + ICON, dropLi);\n if (dropIcon && dropIcon.classList.contains(EXPANDABLE) && (isNullOrUndefined(args) || args.name !== 'nodeExpanding')) {\n this.expandAction(dropLi, dropIcon, null);\n }\n }\n } else {\n var cNodes = dropUl.childNodes;\n for (var i = 0; i < li.length; i++) {\n for (var j = 0; j < cNodes.length; j++) {\n var returnValue = this.sortOrder === 'Ascending' ? cNodes[parseInt(j.toString(), 10)].textContent.toUpperCase() > li[parseInt(i.toString(), 10)].innerText.toUpperCase() : cNodes[parseInt(j.toString(), 10)].textContent.toUpperCase() < li[parseInt(i.toString(), 10)].innerText.toUpperCase();\n if (returnValue) {\n dropUl.insertBefore(li[parseInt(i.toString(), 10)], cNodes[parseInt(j.toString(), 10)]);\n break;\n }\n dropUl.insertBefore(li[parseInt(i.toString(), 10)], cNodes[cNodes.length]);\n }\n }\n }\n }\n }\n if (this.dataType === 1) {\n this.updateField(this.treeData, this.fields, id, 'hasChildren', true);\n var refId = this.getId(refNode);\n var pos = isNullOrUndefined(refId) ? this.treeData.length : this.getDataPos(this.treeData, this.fields, refId);\n for (var j = 0; j < nodes.length; j++) {\n if (!isNullOrUndefined(id)) {\n var currId = this.isNumberTypeId ? parseFloat(id) : id;\n setValue(this.fields.parentID, currId, nodes[parseInt(j.toString(), 10)]);\n }\n this.treeData.splice(pos, 0, nodes[parseInt(j.toString(), 10)]);\n pos++;\n }\n }\n this.finalizeNode(dropUl);\n };\n TreeView.prototype.updateMapper = function (level) {\n var mapper = level === 1 ? this.fields : this.getChildFields(this.fields, level - 1, 1);\n this.updateListProp(mapper);\n };\n TreeView.prototype.updateListProp = function (mapper) {\n var prop = this.getActualProperties(mapper);\n this.listBaseOption.fields = prop;\n this.listBaseOption.fields.url = Object.prototype.hasOwnProperty.call(prop, 'navigateUrl') ? prop.navigateUrl : 'navigateUrl';\n };\n TreeView.prototype.getDataPos = function (obj, mapper, id) {\n var pos = null;\n for (var i = 0, objlen = obj.length; i < objlen; i++) {\n var nodeId = getValue(mapper.id, obj[parseInt(i.toString(), 10)]);\n if (obj[parseInt(i.toString(), 10)] && nodeId && nodeId.toString() === id) {\n return i;\n } else if (typeof mapper.child === 'string' && !isNullOrUndefined(getValue(mapper.child, obj[parseInt(i.toString(), 10)]))) {\n var data = getValue(mapper.child, obj[parseInt(i.toString(), 10)]);\n pos = this.getDataPos(data, this.getChildMapper(mapper), id);\n if (pos !== null) {\n break;\n }\n } else if (this.fields.dataSource instanceof DataManager && !isNullOrUndefined(getValue('child', obj[parseInt(i.toString(), 10)]))) {\n var items = getValue('child', obj[parseInt(i.toString(), 10)]);\n pos = this.getDataPos(items, this.getChildMapper(mapper), id);\n if (pos !== null) {\n break;\n }\n }\n }\n return pos;\n };\n TreeView.prototype.addChildData = function (obj, mapper, id, data, index) {\n var updated;\n if (isNullOrUndefined(id)) {\n index = isNullOrUndefined(index) ? obj.length : index;\n for (var k = 0, len = data.length; k < len; k++) {\n obj.splice(index, 0, data[parseInt(k.toString(), 10)]);\n index++;\n }\n return updated;\n }\n for (var i = 0, objlen = obj.length; i < objlen; i++) {\n var nodeId = getValue(mapper.id, obj[parseInt(i.toString(), 10)]);\n if (obj[parseInt(i.toString(), 10)] && nodeId && nodeId.toString() === id) {\n if (typeof mapper.child === 'string' && Object.prototype.hasOwnProperty.call(obj[parseInt(i.toString(), 10)], mapper.child) && obj[parseInt(i.toString(), 10)][mapper.child] !== null || this.fields.dataSource instanceof DataManager && Object.prototype.hasOwnProperty.call(obj[parseInt(i.toString(), 10)], 'child')) {\n var key = typeof mapper.child === 'string' ? mapper.child : 'child';\n var childData = getValue(key, obj[parseInt(i.toString(), 10)]);\n if (isNullOrUndefined(childData)) {\n childData = [];\n }\n index = isNullOrUndefined(index) ? childData.length : index;\n for (var k = 0, len = data.length; k < len; k++) {\n childData.splice(index, 0, data[parseInt(k.toString(), 10)]);\n index++;\n }\n } else {\n var key = typeof mapper.child === 'string' ? mapper.child : 'child';\n obj[parseInt(i.toString(), 10)][\"\" + key] = data;\n }\n return true;\n } else if (typeof mapper.child === 'string' && !isNullOrUndefined(getValue(mapper.child, obj[parseInt(i.toString(), 10)]))) {\n var childObj = getValue(mapper.child, obj[parseInt(i.toString(), 10)]);\n updated = this.addChildData(childObj, this.getChildMapper(mapper), id, data, index);\n if (updated !== undefined) {\n break;\n }\n } else if (this.fields.dataSource instanceof DataManager && !isNullOrUndefined(getValue('child', obj[parseInt(i.toString(), 10)]))) {\n var childData = getValue('child', obj[parseInt(i.toString(), 10)]);\n updated = this.addChildData(childData, this.getChildMapper(mapper), id, data, index);\n if (updated !== undefined) {\n break;\n }\n }\n }\n return updated;\n };\n TreeView.prototype.doDisableAction = function (nodes) {\n var validNodes = this.nodeType(nodes);\n var validID = this.checkValidId(validNodes);\n this.validArr = [];\n for (var i = 0, len = validID.length; i < len; i++) {\n var id = validID[parseInt(i.toString(), 10)][this.fields.id].toString();\n if (id && this.disableNode.indexOf(id) === -1) {\n this.disableNode.push(id);\n }\n var liEle = this.getElement(id);\n if (liEle) {\n liEle.setAttribute('aria-disabled', 'true');\n addClass([liEle], DISABLE);\n }\n }\n };\n TreeView.prototype.doEnableAction = function (nodes) {\n var strNodes = this.nodeType(nodes);\n for (var i = 0, len = strNodes.length; i < len; i++) {\n var liEle = this.getElement(strNodes[parseInt(i.toString(), 10)]);\n var id = strNodes[parseInt(i.toString(), 10)];\n if (id && this.disableNode.indexOf(id) !== -1) {\n this.disableNode.splice(this.disableNode.indexOf(id), 1);\n }\n if (liEle) {\n liEle.removeAttribute('aria-disabled');\n removeClass([liEle], DISABLE);\n }\n }\n };\n TreeView.prototype.nodeType = function (nodes) {\n var validID = [];\n for (var i = 0, len = nodes.length; i < len; i++) {\n var id = void 0;\n if (typeof nodes[parseInt(i.toString(), 10)] == 'string') {\n id = nodes[parseInt(i.toString(), 10)] ? nodes[parseInt(i.toString(), 10)].toString() : null;\n } else if (typeof nodes[parseInt(i.toString(), 10)] === 'object') {\n id = nodes[parseInt(i.toString(), 10)] ? nodes[parseInt(i.toString(), 10)].getAttribute('data-uid').toString() : null;\n }\n if (validID.indexOf(id) === -1) {\n validID.push(id);\n }\n }\n return validID;\n };\n TreeView.prototype.checkValidId = function (node) {\n var _this = this;\n if (this.dataType === 1) {\n this.validArr = this.treeData.filter(function (data) {\n return node.indexOf(data[_this.fields.id] ? data[_this.fields.id].toString() : null) !== -1;\n });\n } else if (this.dataType === 2) {\n for (var k = 0; k < this.treeData.length; k++) {\n var id = this.treeData[parseInt(k.toString(), 10)][this.fields.id] ? this.treeData[parseInt(k.toString(), 10)][this.fields.id].toString() : null;\n if (node.indexOf(id) !== -1) {\n this.validArr.push(this.treeData[parseInt(k.toString(), 10)]);\n }\n var childItems = getValue(this.fields.child.toString(), this.treeData[parseInt(k.toString(), 10)]);\n if (childItems) {\n this.filterNestedChild(childItems, node);\n }\n }\n }\n return this.validArr;\n };\n TreeView.prototype.filterNestedChild = function (treeData, nodes) {\n for (var k = 0; k < treeData.length; k++) {\n var id = treeData[parseInt(k.toString(), 10)][this.fields.id] ? treeData[parseInt(k.toString(), 10)][this.fields.id].toString() : null;\n if (nodes.indexOf(id) !== -1) {\n this.validArr.push(treeData[parseInt(k.toString(), 10)]);\n }\n var childItems = getValue(this.fields.child.toString(), treeData[parseInt(k.toString(), 10)]);\n if (childItems) {\n this.filterNestedChild(childItems, nodes);\n }\n }\n };\n TreeView.prototype.setTouchClass = function () {\n var ele = closest(this.element, '.' + BIGGER);\n this.touchClass = isNullOrUndefined(ele) ? '' : SMALL;\n };\n TreeView.prototype.updatePersistProp = function () {\n this.removeField(this.treeData, this.fields, ['selected', 'expanded']);\n var sleNodes = this.selectedNodes;\n for (var l = 0, slelen = sleNodes.length; l < slelen; l++) {\n this.updateField(this.treeData, this.fields, sleNodes[parseInt(l.toString(), 10)], 'selected', true);\n }\n var enodes = this.expandedNodes;\n for (var k = 0, nodelen = enodes.length; k < nodelen; k++) {\n this.updateField(this.treeData, this.fields, enodes[parseInt(k.toString(), 10)], 'expanded', true);\n }\n if (this.showCheckBox) {\n this.removeField(this.treeData, this.fields, ['isChecked']);\n var cnodes = this.checkedNodes;\n for (var m = 0, nodelen = cnodes.length; m < nodelen; m++) {\n this.updateField(this.treeData, this.fields, cnodes[parseInt(m.toString(), 10)], 'isChecked', true);\n }\n }\n };\n TreeView.prototype.removeField = function (obj, mapper, names) {\n if (isNullOrUndefined(obj) || isNullOrUndefined(mapper)) {\n return;\n }\n for (var i = 0, objlen = obj.length; i < objlen; i++) {\n for (var j = 0; j < names.length; j++) {\n var field = this.getMapperProp(mapper, names[parseInt(j.toString(), 10)]);\n if (!isNullOrUndefined(obj[parseInt(i.toString(), 10)][\"\" + field])) {\n delete obj[parseInt(i.toString(), 10)][\"\" + field];\n }\n }\n if (typeof mapper.child === 'string' && !isNullOrUndefined(getValue(mapper.child, obj[parseInt(i.toString(), 10)]))) {\n this.removeField(getValue(mapper.child, obj[parseInt(i.toString(), 10)]), this.getChildMapper(mapper), names);\n } else if (this.fields.dataSource instanceof DataManager && !isNullOrUndefined(getValue('child', obj[parseInt(i.toString(), 10)]))) {\n this.removeField(getValue('child', obj[parseInt(i.toString(), 10)]), this.getChildMapper(mapper), names);\n }\n }\n };\n TreeView.prototype.getMapperProp = function (mapper, fieldName) {\n switch (fieldName) {\n case 'selected':\n return !isNullOrUndefined(mapper.selected) ? mapper.selected : 'selected';\n case 'expanded':\n return !isNullOrUndefined(mapper.expanded) ? mapper.expanded : 'expanded';\n case 'isChecked':\n return !isNullOrUndefined(mapper.isChecked) ? mapper.isChecked : 'isChecked';\n case 'hasChildren':\n return !isNullOrUndefined(mapper.hasChildren) ? mapper.hasChildren : 'hasChildren';\n default:\n return fieldName;\n }\n };\n TreeView.prototype.updateField = function (obj, mapper, id, key, value) {\n if (isNullOrUndefined(id)) {\n return;\n } else if (this.dataType === 1) {\n var newId = this.isNumberTypeId ? parseFloat(id) : id;\n var resultData = new DataManager(this.treeData).executeLocal(new Query().where(mapper.id, 'equal', newId, false));\n setValue(this.getMapperProp(mapper, key), value, resultData[0]);\n } else {\n this.updateChildField(obj, mapper, id, key, value);\n }\n };\n TreeView.prototype.updateChildField = function (obj, mapper, id, key, value, remove) {\n var removedData;\n if (isNullOrUndefined(obj)) {\n return removedData;\n }\n for (var i = 0, objlen = obj.length; i < objlen; i++) {\n var nodeId = getValue(mapper.id, obj[parseInt(i.toString(), 10)]);\n if (obj[parseInt(i.toString(), 10)] && !isNullOrUndefined(nodeId) && nodeId.toString() === id) {\n if (remove) {\n removedData = obj.splice(i, 1);\n } else {\n setValue(this.getMapperProp(mapper, key), value, obj[parseInt(i.toString(), 10)]);\n removedData = [];\n }\n return removedData;\n } else if (typeof mapper.child === 'string' && !isNullOrUndefined(getValue(mapper.child, obj[parseInt(i.toString(), 10)]))) {\n var childData = getValue(mapper.child, obj[parseInt(i.toString(), 10)]);\n removedData = this.updateChildField(childData, this.getChildMapper(mapper), id, key, value, remove);\n if (removedData !== undefined) {\n break;\n }\n } else if (this.fields.dataSource instanceof DataManager && !isNullOrUndefined(getValue('child', obj[parseInt(i.toString(), 10)]))) {\n var childItems = getValue('child', obj[parseInt(i.toString(), 10)]);\n removedData = this.updateChildField(childItems, this.getChildMapper(mapper), id, key, value, remove);\n if (removedData !== undefined) {\n break;\n }\n }\n }\n return removedData;\n };\n TreeView.prototype.triggerEvent = function (action, node) {\n this.renderReactTemplates();\n if (action === 'addNodes') {\n var nodeData = [];\n for (var i = 0; i < node.length; i++) {\n nodeData.push(this.getNode(this.getElement(isNullOrUndefined(node[parseInt(i.toString(), 10)][this.fields.id]) ? getValue(this.fields.id, node[parseInt(i.toString(), 10)]).toString() : null)));\n }\n node = nodeData;\n }\n var eventArgs = {\n data: this.treeData,\n action: action,\n nodeData: node\n };\n this.trigger('dataSourceChanged', eventArgs);\n };\n TreeView.prototype.wireInputEvents = function (inpEle) {\n EventHandler.add(inpEle, 'blur', this.inputFocusOut, this);\n };\n TreeView.prototype.wireEditingEvents = function (toBind) {\n var _this = this;\n if (toBind && !this.disabled) {\n this.touchEditObj = new Touch(this.element, {\n tap: function (e) {\n if (_this.isDoubleTapped(e) && e.tapCount === 2) {\n e.originalEvent.preventDefault();\n _this.editingHandler(e.originalEvent);\n }\n }\n });\n } else {\n if (this.touchEditObj) {\n this.touchEditObj.destroy();\n }\n }\n };\n TreeView.prototype.wireClickEvent = function (toBind) {\n var _this = this;\n if (toBind) {\n this.touchClickObj = new Touch(this.element, {\n tap: function (e) {\n _this.clickHandler(e);\n }\n });\n } else {\n if (this.touchClickObj) {\n this.touchClickObj.destroy();\n }\n }\n };\n TreeView.prototype.wireExpandOnEvent = function (toBind) {\n var _this = this;\n if (toBind) {\n this.touchExpandObj = new Touch(this.element, {\n tap: function (e) {\n if ((_this.expandOnType === 'Click' || _this.expandOnType === 'DblClick' && _this.isDoubleTapped(e) && e.tapCount === 2) && e.originalEvent.which !== 3) {\n _this.expandHandler(e);\n }\n }\n });\n } else {\n if (this.touchExpandObj) {\n this.touchExpandObj.destroy();\n }\n }\n };\n TreeView.prototype.mouseDownHandler = function (e) {\n this.mouseDownStatus = true;\n if (e.shiftKey || e.ctrlKey) {\n e.preventDefault();\n }\n if (e.ctrlKey && this.allowMultiSelection) {\n EventHandler.add(this.element, 'contextmenu', this.preventContextMenu, this);\n }\n };\n TreeView.prototype.preventContextMenu = function (e) {\n e.preventDefault();\n };\n TreeView.prototype.wireEvents = function () {\n EventHandler.add(this.element, 'mousedown', this.mouseDownHandler, this);\n this.wireClickEvent(true);\n if (this.expandOnType !== 'None') {\n this.wireExpandOnEvent(true);\n }\n EventHandler.add(this.element, 'mouseover', this.onMouseOver, this);\n EventHandler.add(this.element, 'mouseout', this.onMouseLeave, this);\n this.keyboardModule = new KeyboardEvents(this.element, {\n keyAction: this.keyActionHandler.bind(this),\n keyConfigs: this.keyConfigs,\n eventName: 'keydown'\n });\n };\n TreeView.prototype.unWireEvents = function () {\n EventHandler.remove(this.element, 'mousedown', this.mouseDownHandler);\n this.wireClickEvent(false);\n this.wireExpandOnEvent(false);\n EventHandler.remove(this.element, 'mouseover', this.onMouseOver);\n EventHandler.remove(this.element, 'mouseout', this.onMouseLeave);\n if (!this.disabled) {\n this.keyboardModule.destroy();\n }\n };\n TreeView.prototype.parents = function (element, selector) {\n var matched = [];\n var el = element.parentNode;\n while (!isNullOrUndefined(el)) {\n if (matches(el, selector)) {\n matched.push(el);\n }\n el = el.parentNode;\n }\n return matched;\n };\n TreeView.prototype.isDoubleTapped = function (e) {\n var target = e.originalEvent.target;\n var secondTap;\n if (target && e.tapCount) {\n if (e.tapCount === 1) {\n this.firstTap = closest(target, '.' + LISTITEM);\n } else if (e.tapCount === 2) {\n secondTap = closest(target, '.' + LISTITEM);\n }\n }\n return this.firstTap === secondTap;\n };\n TreeView.prototype.isDescendant = function (parent, child) {\n var node = child.parentNode;\n while (!isNullOrUndefined(node)) {\n if (node === parent) {\n return true;\n }\n node = node.parentNode;\n }\n return false;\n };\n TreeView.prototype.showSpinner = function (element) {\n addClass([element], LOAD);\n createSpinner({\n target: element,\n width: Browser.isDevice ? 16 : 14\n }, this.createElement);\n showSpinner(element);\n };\n TreeView.prototype.hideSpinner = function (element) {\n hideSpinner(element);\n element.innerHTML = '';\n removeClass([element], LOAD);\n };\n TreeView.prototype.setCheckedNodes = function (nodes) {\n nodes = JSON.parse(JSON.stringify(nodes));\n this.uncheckAll(this.checkedNodes);\n this.setIndeterminate(nodes);\n if (nodes.length > 0) {\n this.checkAll(nodes);\n }\n };\n /**\n * Checks whether the checkedNodes entered are valid and sets the valid checkedNodes while changing via setmodel\n *\n * @param {string} node - The unique identifier of the node.\n * @returns {void}\n * @private\n */\n TreeView.prototype.setValidCheckedNode = function (node) {\n if (this.dataType === 1) {\n var mapper = this.fields;\n var resultData = new DataManager(this.treeData).executeLocal(new Query().where(mapper.id, 'equal', node, true));\n if (resultData[0]) {\n this.setChildCheckState(resultData, node, resultData[0]);\n if (this.autoCheck) {\n var parent_4 = resultData[0][this.fields.parentID] ? resultData[0][this.fields.parentID].toString() : null;\n var childNodes = this.getChildNodes(this.treeData, parent_4);\n var count = 0;\n for (var len = 0; len < childNodes.length; len++) {\n var childId = childNodes[parseInt(len.toString(), 10)][this.fields.id].toString();\n if (this.checkedNodes.indexOf(childId) !== -1) {\n count++;\n }\n }\n if (count === childNodes.length && this.checkedNodes.indexOf(parent_4) === -1 && parent_4) {\n this.checkDisabledState(parent_4);\n }\n }\n }\n } else if (this.dataType === 2) {\n for (var a = 0; a < this.treeData.length; a++) {\n var index = this.treeData[parseInt(a.toString(), 10)][this.fields.id] ? this.treeData[parseInt(a.toString(), 10)][this.fields.id].toString() : '';\n if (index === node && this.checkedNodes.indexOf(node) === -1) {\n this.checkDisabledState(node);\n break;\n }\n var childItems = getValue(this.fields.child.toString(), this.treeData[parseInt(a.toString(), 10)]);\n if (childItems) {\n this.setChildCheckState(childItems, node, this.treeData[parseInt(a.toString(), 10)]);\n }\n }\n }\n };\n /**\n * Checks whether the checkedNodes entered are valid and sets the valid checkedNodes while changing via setmodel(for hierarchical DS)\n *\n * @param {Object[]} childItems - The child items to check.\n * @param {string} node - The node to set the check state for.\n * @param {Object} [treeData] - The optional tree data.\n * @returns {void}\n * @private\n */\n TreeView.prototype.setChildCheckState = function (childItems, node, treeData) {\n var checkedParent;\n var count = 0;\n if (this.dataType === 1) {\n if (treeData) {\n checkedParent = treeData[this.fields.id] ? treeData[this.fields.id].toString() : null;\n }\n for (var index = 0; index < childItems.length; index++) {\n var checkNode = childItems[parseInt(index.toString(), 10)][this.fields.id] ? childItems[parseInt(index.toString(), 10)][this.fields.id].toString() : null;\n if (treeData && checkedParent && this.autoCheck) {\n if (this.checkedNodes.indexOf(checkedParent) !== -1 && this.checkedNodes.indexOf(checkNode) === -1) {\n this.checkDisabledState(checkNode, childItems[index]);\n }\n }\n if (checkNode === node && this.checkedNodes.indexOf(node) === -1) {\n this.checkDisabledState(node);\n }\n var subChildItems = this.getChildNodes(this.treeData, checkNode);\n if (subChildItems) {\n this.setChildCheckState(subChildItems, node, treeData);\n }\n }\n } else {\n if (treeData) {\n checkedParent = treeData[this.fields.id] ? treeData[this.fields.id].toString() : '';\n }\n for (var index = 0; index < childItems.length; index++) {\n var checkedChild = childItems[parseInt(index.toString(), 10)][this.fields.id] ? childItems[parseInt(index.toString(), 10)][this.fields.id].toString() : '';\n if (treeData && checkedParent && this.autoCheck) {\n if (this.checkedNodes.indexOf(checkedParent) !== -1 && this.checkedNodes.indexOf(checkedChild) === -1) {\n this.checkDisabledState(checkedChild, childItems[index]);\n }\n }\n if (checkedChild === node && this.checkedNodes.indexOf(node) === -1) {\n this.checkDisabledState(node);\n }\n var subChildItems = getValue(this.fields.child.toString(), childItems[parseInt(index.toString(), 10)]);\n if (subChildItems) {\n this.setChildCheckState(subChildItems, node, childItems[parseInt(index.toString(), 10)]);\n }\n if (this.checkedNodes.indexOf(checkedChild) !== -1 && this.autoCheck) {\n count++;\n }\n if (count === childItems.length && this.checkedNodes.indexOf(checkedParent) === -1 && this.autoCheck) {\n this.checkDisabledState(checkedParent, treeData);\n }\n }\n }\n };\n TreeView.prototype.setIndeterminate = function (nodes) {\n for (var i = 0; i < nodes.length; i++) {\n this.setValidCheckedNode(nodes[parseInt(i.toString(), 10)]);\n }\n };\n TreeView.prototype.updatePosition = function (id, newData, isRefreshChild, childValue) {\n if (this.dataType === 1) {\n var pos = this.getDataPos(this.treeData, this.fields, id);\n this.treeData.splice(pos, 1, newData);\n if (isRefreshChild) {\n this.removeChildNodes(id);\n for (var j = 0; j < childValue.length; j++) {\n this.treeData.splice(pos, 0, childValue[parseInt(j.toString(), 10)]);\n pos++;\n }\n }\n this.groupedData = this.getGroupedData(this.treeData, this.fields.parentID);\n } else {\n this.updateChildPosition(this.treeData, this.fields, id, [newData], undefined);\n }\n };\n TreeView.prototype.updateChildPosition = function (treeData, mapper, currID, newData, index) {\n var found;\n for (var i = 0, objlen = treeData.length; i < objlen; i++) {\n var nodeId = getValue(mapper.id, treeData[parseInt(i.toString(), 10)]);\n if (treeData[parseInt(i.toString(), 10)] && nodeId && nodeId.toString() === currID) {\n treeData[parseInt(i.toString(), 10)] = newData[0];\n return true;\n } else if (typeof mapper.child === 'string' && !isNullOrUndefined(getValue(mapper.child, treeData[parseInt(i.toString(), 10)]))) {\n var childObj = getValue(mapper.child, treeData[parseInt(i.toString(), 10)]);\n found = this.updateChildPosition(childObj, this.getChildMapper(mapper), currID, newData, index);\n if (found !== undefined) {\n break;\n }\n } else if (this.fields.dataSource instanceof DataManager && !isNullOrUndefined(getValue('child', treeData[parseInt(i.toString(), 10)]))) {\n var childData = getValue('child', treeData[parseInt(i.toString(), 10)]);\n found = this.updateChildPosition(childData, this.getChildMapper(mapper), currID, newData, index);\n if (found !== undefined) {\n break;\n }\n }\n }\n return found;\n };\n TreeView.prototype.dynamicState = function () {\n this.setDragAndDrop(this.allowDragAndDrop);\n this.wireEditingEvents(this.allowEditing);\n if (!this.disabled) {\n this.wireEvents();\n this.setRipple();\n } else {\n this.unWireEvents();\n this.rippleFn();\n this.rippleIconFn();\n }\n };\n TreeView.prototype.crudOperation = function (operation, nodes, target, newText, newNode, index, prevent) {\n var _this = this;\n var data = this.fields.dataSource;\n var matchedArr = [];\n var query = this.getQuery(this.fields);\n var key = this.fields.id;\n var crud;\n var changes = {\n addedRecords: [],\n deletedRecords: [],\n changedRecords: []\n };\n var nodesID = [];\n if (nodes) {\n nodesID = this.nodeType(nodes);\n } else if (target) {\n if (typeof target == 'string') {\n nodesID[0] = target.toString();\n } else if (typeof target === 'object') {\n nodesID[0] = target.getAttribute('data-uid').toString();\n }\n }\n for (var i = 0, len = nodesID.length; i < len; i++) {\n var liEle = this.getElement(nodesID[parseInt(i.toString(), 10)]);\n if (isNullOrUndefined(liEle)) {\n continue;\n }\n var removedData = this.getNodeObject(nodesID[parseInt(i.toString(), 10)]);\n matchedArr.push(removedData);\n }\n switch (operation) {\n case 'delete':\n if (nodes.length === 1) {\n crud = data.remove(key, matchedArr[0], query.fromTable, query);\n } else {\n changes.deletedRecords = matchedArr;\n crud = data.saveChanges(changes, key, query.fromTable, query);\n }\n crud.then(function () {\n return _this.deleteSuccess(nodesID);\n }).catch(function (e) {\n return _this.dmFailure(e);\n });\n break;\n case 'update':\n matchedArr[0][this.fields.text] = newText;\n crud = data.update(key, matchedArr[0], query.fromTable, query);\n crud.then(function () {\n return _this.editSucess(target, newText, prevent);\n }).catch(function (e) {\n return _this.dmFailure(e, target, prevent);\n });\n break;\n case 'insert':\n if (newNode.length === 1) {\n crud = data.insert(newNode[0], query.fromTable, query);\n } else {\n var arr = [];\n for (var i = 0, len = newNode.length; i < len; i++) {\n arr.push(newNode[parseInt(i.toString(), 10)]);\n }\n changes.addedRecords = arr;\n crud = data.saveChanges(changes, key, query.fromTable, query);\n }\n crud.then(function () {\n var dropLi = _this.getElement(target);\n _this.addSuccess(newNode, dropLi, index);\n _this.preventExpand = false;\n }).catch(function (e) {\n return _this.dmFailure(e);\n });\n break;\n }\n };\n TreeView.prototype.deleteSuccess = function (nodes) {\n var nodeData = [];\n for (var i = 0, len = nodes.length; i < len; i++) {\n var liEle = this.getElement(nodes[parseInt(i.toString(), 10)]);\n nodeData.push(this.getNode(liEle));\n if (isNullOrUndefined(liEle)) {\n continue;\n }\n this.removeNode(liEle);\n }\n this.updateInstance();\n if (this.dataType === 1) {\n this.groupedData = this.getGroupedData(this.treeData, this.fields.parentID);\n }\n this.triggerEvent('removeNode', nodeData);\n };\n TreeView.prototype.editSucess = function (target, newText, prevent) {\n var liEle = this.getElement(target);\n var txtEle = select('.' + LISTTEXT, liEle);\n this.appendNewText(liEle, txtEle, newText, prevent);\n };\n TreeView.prototype.addSuccess = function (nodes, dropLi, index) {\n var _this = this;\n var dropUl;\n var icon = dropLi ? dropLi.querySelector('.' + ICON) : null;\n if (dropLi && icon && icon.classList.contains(EXPANDABLE) && dropLi.querySelector('.' + PARENTITEM) === null) {\n this.renderChildNodes(dropLi, null, function () {\n dropUl = dropLi.querySelector('.' + PARENTITEM);\n _this.addGivenNodes(nodes, dropLi, index, true, dropUl);\n _this.triggerEvent('addNodes', nodes);\n });\n } else {\n this.addGivenNodes(nodes, dropLi, index, true);\n this.triggerEvent('addNodes', nodes);\n }\n };\n TreeView.prototype.dmFailure = function (e, target, prevent) {\n if (target) {\n this.updatePreviousText(target, prevent);\n }\n this.trigger('actionFailure', {\n error: e\n });\n };\n TreeView.prototype.updatePreviousText = function (target, prevent) {\n var liEle = this.getElement(target);\n var txtEle = select('.' + LISTTEXT, liEle);\n this.updateText(liEle, txtEle, this.oldText, prevent);\n };\n TreeView.prototype.getHierarchicalParentId = function (node, data, parentsID) {\n var _this = this;\n var index = data.findIndex(function (data) {\n return data[_this.fields.id] && data[_this.fields.id].toString() === node;\n });\n if (index === -1) {\n for (var i = 0; i < data.length; i++) {\n var childItems = getValue(this.fields.child.toString(), data[parseInt(i.toString(), 10)]);\n if (!isNullOrUndefined(childItems)) {\n index = childItems.findIndex(function (data) {\n return data[_this.fields.id] && data[_this.fields.id].toString() === node;\n });\n if (index === -1) {\n this.getHierarchicalParentId(node, childItems, parentsID);\n } else {\n parentsID.push(data[parseInt(i.toString(), 10)][this.fields.id].toString());\n this.getHierarchicalParentId(data[parseInt(i.toString(), 10)][this.fields.id].toString(), this.treeData, parentsID);\n break;\n }\n }\n }\n }\n return parentsID;\n };\n /**\n * Called internally if any of the property value changed.\n *\n * @param {TreeViewModel} newProp - The new property value.\n * @param {TreeViewModel} oldProp - The old property value.\n * @returns {void}\n * @private\n */\n TreeView.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'allowDragAndDrop':\n this.setDragAndDrop(this.allowDragAndDrop);\n break;\n case 'dragArea':\n if (this.allowDragAndDrop) {\n this.dragObj.dragArea = this.dragArea;\n }\n break;\n case 'allowEditing':\n this.wireEditingEvents(this.allowEditing);\n break;\n case 'allowMultiSelection':\n if (this.selectedNodes.length > 1) {\n var sNode = this.getElement(this.selectedNodes[0]);\n this.isLoaded = false;\n this.removeSelectAll();\n this.selectNode(sNode, null);\n this.isLoaded = true;\n }\n this.setMultiSelect(this.allowMultiSelection);\n this.addMultiSelect(this.allowMultiSelection);\n break;\n case 'allowTextWrap':\n this.setTextWrap();\n this.updateWrap();\n break;\n case 'checkedNodes':\n if (this.showCheckBox) {\n this.checkedNodes = oldProp.checkedNodes;\n this.setCheckedNodes(newProp.checkedNodes);\n }\n break;\n case 'autoCheck':\n if (this.showCheckBox) {\n this.autoCheck = newProp.autoCheck;\n this.ensureIndeterminate();\n }\n break;\n case 'cssClass':\n this.setCssClass(oldProp.cssClass, newProp.cssClass);\n break;\n case 'enableRtl':\n this.setEnableRtl();\n break;\n case 'expandedNodes':\n this.isAnimate = false;\n this.setProperties({\n expandedNodes: []\n }, true);\n this.collapseAll();\n this.isInitalExpand = true;\n this.setProperties({\n expandedNodes: isNullOrUndefined(newProp.expandedNodes) ? [] : newProp.expandedNodes\n }, true);\n this.doExpandAction();\n this.isInitalExpand = false;\n this.isAnimate = true;\n break;\n case 'expandOn':\n this.wireExpandOnEvent(false);\n this.setExpandOnType();\n if (this.expandOnType !== 'None' && !this.disabled) {\n this.wireExpandOnEvent(true);\n }\n break;\n case 'disabled':\n this.setDisabledMode();\n this.dynamicState();\n break;\n case 'fields':\n this.isAnimate = false;\n this.isFieldChange = true;\n this.initialRender = true;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (!this.isReact || this.isReact && !(this.fields.dataSource instanceof DataManager)) {\n if (!this.element.classList.contains('e-filtering')) {\n this.DDTTreeData = JSON.parse(JSON.stringify(this.fields.dataSource));\n }\n this.reRenderNodes();\n }\n this.initialRender = false;\n this.isAnimate = true;\n this.isFieldChange = false;\n break;\n case 'fullRowSelect':\n this.setFullRow(this.fullRowSelect);\n this.addFullRow(this.fullRowSelect);\n if (this.allowTextWrap) {\n this.setTextWrap();\n this.updateWrap();\n }\n break;\n case 'loadOnDemand':\n if (this.loadOnDemand === false && !this.onLoaded) {\n var nodes = this.element.querySelectorAll('li');\n var i = 0;\n while (i < nodes.length) {\n if (nodes[parseInt(i.toString(), 10)].getAttribute('aria-expanded') !== 'true') {\n this.renderChildNodes(nodes[parseInt(i.toString(), 10)], true, null, true);\n }\n i++;\n }\n this.onLoaded = true;\n }\n break;\n case 'nodeTemplate':\n this.hasTemplate = false;\n this.nodeTemplateFn = this.templateComplier(this.nodeTemplate);\n this.reRenderNodes();\n break;\n case 'selectedNodes':\n this.removeSelectAll();\n this.setProperties({\n selectedNodes: newProp.selectedNodes\n }, true);\n this.doSelectionAction();\n break;\n case 'showCheckBox':\n case 'checkDisabledChildren':\n this.reRenderNodes();\n break;\n case 'sortOrder':\n this.reRenderNodes();\n break;\n case 'fullRowNavigable':\n this.setProperties({\n fullRowNavigable: newProp.fullRowNavigable\n }, true);\n this.listBaseOption.itemNavigable = newProp.fullRowNavigable;\n this.reRenderNodes();\n break;\n }\n }\n };\n /**\n * Removes the component from the DOM and detaches all its related event handlers. It also removes the attributes and classes.\n *\n * @returns {void}\n */\n TreeView.prototype.destroy = function () {\n this.clearTemplate();\n this.element.removeAttribute('aria-activedescendant');\n this.unWireEvents();\n this.wireEditingEvents(false);\n if (!this.disabled) {\n this.rippleFn();\n this.rippleIconFn();\n }\n this.setCssClass(this.cssClass, null);\n this.setDragAndDrop(false);\n this.setFullRow(false);\n if (this.ulElement && this.ulElement.parentElement) {\n this.ulElement.parentElement.removeChild(this.ulElement);\n }\n this.ulElement = null;\n this.liList = null;\n this.startNode = null;\n this.firstTap = null;\n this.expandArgs = null;\n this.dragLi = null;\n this.dragTarget = null;\n this.dragParent = null;\n this.dragObj = null;\n this.dropObj = null;\n this.inputObj = null;\n this.touchEditObj = null;\n this.touchExpandObj = null;\n this.touchClickObj = null;\n _super.prototype.destroy.call(this);\n };\n /**\n * Adds the collection of TreeView nodes based on target and index position. If target node is not specified,\n * then the nodes are added as children of the given parentID or in the root level of TreeView.\n *\n * @param { object } nodes - Specifies the array of JSON data that has to be added.\n * @param { string | Element } target - Specifies ID of TreeView node/TreeView node as target element.\n * @param { number } index - Specifies the index to place the newly added nodes in the target element.\n * @param { boolean } preventTargetExpand - If set to true, the target parent node will be prevented from auto expanding.\n * @returns {void}\n */\n TreeView.prototype.addNodes = function (nodes, target, index, preventTargetExpand) {\n if (isNullOrUndefined(nodes)) {\n return;\n }\n nodes = JSON.parse(JSON.stringify(nodes));\n var dropLi = this.getElement(target);\n this.preventExpand = preventTargetExpand;\n if (this.fields.dataSource instanceof DataManager) {\n if (!this.isOffline) {\n this.crudOperation('insert', null, target, null, nodes, index, this.preventExpand);\n } else {\n this.addSuccess(nodes, dropLi, index);\n }\n } else if (this.dataType === 2) {\n this.addGivenNodes(nodes, dropLi, index);\n } else {\n if (dropLi) {\n this.addGivenNodes(nodes, dropLi, index);\n } else {\n nodes = this.getSortedData(nodes);\n for (var i = 0; i < nodes.length; i++) {\n var pid = getValue(this.fields.parentID, nodes[parseInt(i.toString(), 10)]);\n dropLi = pid ? this.getElement(pid.toString()) : pid;\n this.addGivenNodes([nodes[parseInt(i.toString(), 10)]], dropLi, index);\n }\n }\n this.groupedData = this.getGroupedData(this.treeData, this.fields.parentID);\n }\n this.updateCheckedStateFromDS();\n if (this.showCheckBox && dropLi) {\n this.ensureParentCheckState(dropLi);\n }\n if (this.fields.dataSource instanceof DataManager === false) {\n this.preventExpand = false;\n this.triggerEvent('addNodes', nodes);\n }\n };\n /**\n * Editing can also be enabled by using the `beginEdit` property, instead of clicking on the\n * TreeView node. On passing the node ID or element through this property, the edit textBox\n * will be created for the particular node thus allowing us to edit it.\n *\n * @param {string | Element} node - Specifies ID of TreeView node/TreeView node.\n * @returns {void}\n */\n TreeView.prototype.beginEdit = function (node) {\n var ele = this.getElement(node);\n if (isNullOrUndefined(ele) || this.disabled) {\n return;\n }\n this.createTextbox(ele);\n };\n /**\n * Checks all the unchecked nodes. You can also check specific nodes by passing array of unchecked nodes\n * as argument to this method.\n *\n * @param {string[] | Element[]} nodes - Specifies the array of TreeView nodes ID/array of TreeView node.\n * @returns {void}\n */\n TreeView.prototype.checkAll = function (nodes) {\n if (this.showCheckBox) {\n this.doCheckBoxAction(nodes, true);\n }\n };\n /**\n * Collapses all the expanded TreeView nodes. You can collapse specific nodes by passing array of nodes as argument to this method.\n * You can also collapse all the nodes excluding the hidden nodes by setting **excludeHiddenNodes** to true. If you want to collapse\n * a specific level of nodes, set **level** as argument to collapseAll method.\n *\n * @param {string[] | Element[]} nodes - Specifies the array of TreeView nodes ID/ array of TreeView node.\n * @param {number} level - TreeView nodes will collapse up to the given level.\n * @param {boolean} excludeHiddenNodes - Whether or not to exclude hidden nodes of TreeView when collapsing all nodes.\n * @returns {void}\n */\n TreeView.prototype.collapseAll = function (nodes, level, excludeHiddenNodes) {\n if (!isNullOrUndefined(nodes)) {\n this.doGivenAction(nodes, COLLAPSIBLE, false);\n } else {\n if (level > 0) {\n this.collapseByLevel(select('.' + PARENTITEM, this.element), level, excludeHiddenNodes);\n } else {\n this.collapseAllNodes(excludeHiddenNodes);\n }\n }\n };\n /**\n * Disables the collection of nodes by passing the ID of nodes or node elements in the array.\n *\n * @param {string[] | Element[]} nodes - Specifies the array of TreeView nodes ID/array of TreeView nodes.\n * @returns {void}\n */\n TreeView.prototype.disableNodes = function (nodes) {\n if (!isNullOrUndefined(nodes)) {\n this.doDisableAction(nodes);\n }\n };\n /**\n * Enables the collection of disabled nodes by passing the ID of nodes or node elements in the array.\n *\n * @param {string[] | Element[]} nodes - Specifies the array of TreeView nodes ID/array of TreeView nodes.\n * @returns {void}\n */\n TreeView.prototype.enableNodes = function (nodes) {\n if (!isNullOrUndefined(nodes)) {\n this.doEnableAction(nodes);\n }\n };\n /**\n * Ensures visibility of the TreeView node by using node ID or node element.\n * When many TreeView nodes are present and we need to find a particular node, `ensureVisible` property\n * helps bring the node to visibility by expanding the TreeView and scrolling to the specific node.\n *\n * @param {string | Element} node - Specifies ID of TreeView node/TreeView nodes.\n * @returns {void}\n */\n TreeView.prototype.ensureVisible = function (node) {\n var parentsId = [];\n if (this.dataType === 1) {\n var nodeData = this.getTreeData(node);\n while (nodeData.length !== 0 && !isNullOrUndefined(nodeData[0][this.fields.parentID])) {\n parentsId.push(nodeData[0][this.fields.parentID].toString());\n nodeData = this.getTreeData(nodeData[0][this.fields.parentID].toString());\n }\n } else if (this.dataType === 2) {\n parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId);\n }\n this.expandAll(parentsId.reverse());\n var liEle = this.getElement(node);\n if (!isNullOrUndefined(liEle)) {\n if (typeof node == 'object') {\n var parents = this.parents(liEle, '.' + LISTITEM);\n this.expandAll(parents);\n }\n setTimeout(function () {\n liEle.scrollIntoView({\n behavior: 'smooth'\n });\n }, 450);\n }\n };\n /**\n * Expands all the collapsed TreeView nodes. You can expand the specific nodes by passing the array of collapsed nodes\n * as argument to this method. You can also expand all the collapsed nodes by excluding the hidden nodes by setting\n * **excludeHiddenNodes** to true to this method. To expand a specific level of nodes, set **level** as argument to expandAll method.\n *\n * @param {string[] | Element[]} nodes - Specifies the array of TreeView nodes ID/array of TreeView nodes.\n * @param {number} level - TreeView nodes will expand up to the given level.\n * @param {boolean} excludeHiddenNodes - Whether or not to exclude hidden nodes when expanding all nodes.\n * @param {boolean} preventAnimation - Prevent the expand animation when expanding all nodes.\n * @returns {void}\n */\n TreeView.prototype.expandAll = function (nodes, level, excludeHiddenNodes, preventAnimation) {\n this.isAnimate = !preventAnimation;\n if (!isNullOrUndefined(nodes)) {\n this.doGivenAction(nodes, EXPANDABLE, true);\n } else {\n if (level > 0) {\n this.expandByLevel(select('.' + PARENTITEM, this.element), level, excludeHiddenNodes);\n } else {\n this.expandAllNodes(excludeHiddenNodes);\n if (!this.loadOnDemand) {\n this.updateAttributes(this.element);\n this.updateList();\n }\n }\n }\n this.isAnimate = true;\n };\n /**\n * Gets all the checked nodes including child, whether it is loaded or not.\n *\n * @returns {string[]} - An array of strings representing the unique identifiers of checked nodes.\n */\n TreeView.prototype.getAllCheckedNodes = function () {\n var checkNodes = this.checkedNodes;\n return checkNodes;\n };\n /**\n * Gets all the disabled nodes including child, whether it is loaded or not.\n *\n * @returns {string[]} An array of strings representing the unique identifiers of disabled nodes.\n */\n TreeView.prototype.getDisabledNodes = function () {\n var disabledNodes = this.disableNode;\n return disabledNodes;\n };\n /**\n * Gets the node's data such as id, text, parentID, selected, isChecked, and expanded by passing the node element or it's ID.\n *\n * @param {string | Element} node - Specifies ID of TreeView node/TreeView node.\n * @returns {Object} - The data associated with the specified node.\n */\n TreeView.prototype.getNode = function (node) {\n var ele = this.getElement(node);\n return this.getNodeData(ele, true);\n };\n /**\n * To get the updated data source of TreeView after performing some operation like drag and drop, node editing,\n * node selecting/unSelecting, node expanding/collapsing, node checking/unChecking, adding and removing node.\n * * If you pass the ID of TreeView node as arguments for this method then it will return the updated data source\n * of the corresponding node otherwise it will return the entire updated data source of TreeView.\n * * The updated data source also contains custom attributes if you specified in data source.\n *\n * @param {string | Element} node - Specifies ID of TreeView node/TreeView node.\n * @isGenericType true\n * @returns {Object} - The tree data associated with the specified node or element.\n */\n TreeView.prototype.getTreeData = function (node) {\n var id = this.getId(node);\n this.updatePersistProp();\n if (isNullOrUndefined(id)) {\n return this.treeData;\n } else {\n var data = this.getNodeObject(id);\n return isNullOrUndefined(data) ? [] : [data];\n }\n };\n /**\n * Moves the collection of nodes within the same TreeView based on target or its index position.\n *\n * @param {string[] | Element[]} sourceNodes - Specifies the array of TreeView nodes ID/array of TreeView node.\n * @param {string | Element} target - Specifies ID of TreeView node/TreeView node as target element.\n * @param {number} index - Specifies the index to place the moved nodes in the target element.\n * @param { boolean } preventTargetExpand - If set to true, the target parent node will be prevented from auto expanding.\n * @returns {void}\n */\n TreeView.prototype.moveNodes = function (sourceNodes, target, index, preventTargetExpand) {\n var dropLi = this.getElement(target);\n var nodeData = [];\n if (isNullOrUndefined(dropLi)) {\n return;\n }\n for (var i = 0; i < sourceNodes.length; i++) {\n var dragLi = this.getElement(sourceNodes[parseInt(i.toString(), 10)]);\n nodeData.push(this.getNode(dragLi));\n if (isNullOrUndefined(dragLi) || dropLi.isSameNode(dragLi) || this.isDescendant(dragLi, dropLi)) {\n continue;\n }\n this.preventExpand = preventTargetExpand;\n this.dropAsChildNode(dragLi, dropLi, this, index, null, null, null, dropLi);\n }\n if (this.fields.dataSource instanceof DataManager === false) {\n this.preventExpand = false;\n }\n this.triggerEvent('moveNodes', nodeData);\n };\n /**\n * Refreshes a particular node of the TreeView.\n *\n * @param {string | Element} target - Specifies the ID of TreeView node or TreeView node as target element.\n * @param {Object[]} newData - Specifies the new data of TreeView node.\n * @returns {void}\n */\n TreeView.prototype.refreshNode = function (target, newData) {\n if (isNullOrUndefined(target) || isNullOrUndefined(newData)) {\n return;\n }\n var isRefreshChild = false;\n if (this.dataType === 1 && newData.length > 1) {\n isRefreshChild = true;\n } else if (this.dataType === 2 && newData.length === 1) {\n var updatedChildValue = getValue(this.fields.child.toString(), newData[0]);\n if (!isNullOrUndefined(updatedChildValue)) {\n isRefreshChild = true;\n }\n }\n var liEle = this.getElement(target);\n var id = liEle ? liEle.getAttribute('data-uid') : target ? target.toString() : null;\n this.refreshData = this.getNodeObject(id);\n newData = JSON.parse(JSON.stringify(newData));\n var newNodeData;\n var parentData;\n if (this.dataType === 1 && isRefreshChild) {\n for (var k = 0; k < newData.length; k++) {\n if (isNullOrUndefined(newData[parseInt(k.toString(), 10)][this.fields.parentID])) {\n parentData = newData[parseInt(k.toString(), 10)];\n newData.splice(k, 1);\n break;\n }\n }\n newNodeData = extend({}, this.refreshData, parentData);\n } else {\n newNodeData = extend({}, this.refreshData, newData[0]);\n }\n if (isNullOrUndefined(liEle)) {\n this.updatePosition(id, newNodeData, isRefreshChild, newData);\n return;\n }\n this.isRefreshed = true;\n var level = parseFloat(liEle.getAttribute('aria-level'));\n var newliEle = ListBase.createListItemFromJson(this.createElement, [newNodeData], this.listBaseOption, level);\n var ul = select('.' + PARENTITEM, liEle);\n var childItems = getValue(this.fields.child.toString(), newNodeData);\n if (isRefreshChild && ul || isRefreshChild && !isNullOrUndefined(childItems)) {\n var parentEle = liEle.parentElement;\n var index = Array.prototype.indexOf.call(parentEle.childNodes, liEle);\n remove(liEle);\n parentEle.insertBefore(newliEle[0], parentEle.childNodes[parseInt(index.toString(), 10)]);\n this.updatePosition(id, newNodeData, isRefreshChild, newData);\n if (isRefreshChild && ul) {\n this.expandAll([id]);\n }\n } else {\n var txtEle = select('.' + TEXTWRAP, liEle);\n var newTextEle = select('.' + TEXTWRAP, newliEle[0]);\n var icon = select('div.' + ICON, txtEle);\n var newIcon = select('div.' + ICON, newTextEle);\n if (icon && newIcon) {\n if (newIcon.classList.contains(EXPANDABLE) && icon.classList.contains(COLLAPSIBLE)) {\n removeClass([newIcon], EXPANDABLE);\n addClass([newIcon], COLLAPSIBLE);\n } else if (newIcon.classList.contains(COLLAPSIBLE) && icon.classList.contains(EXPANDABLE)) {\n removeClass([newIcon], COLLAPSIBLE);\n addClass([newIcon], EXPANDABLE);\n } else if (icon.classList.contains('interaction')) {\n addClass([newIcon], 'interaction');\n }\n }\n remove(txtEle);\n var fullEle = select('.' + FULLROW, liEle);\n fullEle.parentNode.insertBefore(newTextEle, fullEle.nextSibling);\n this.updatePosition(id, newNodeData, isRefreshChild, newData);\n }\n liEle = this.getElement(target);\n if (newNodeData[this.fields.tooltip]) {\n liEle.setAttribute('title', newNodeData[this.fields.tooltip]);\n }\n if (Object.prototype.hasOwnProperty.call(newNodeData, this.fields.htmlAttributes) && newNodeData[this.fields.htmlAttributes]) {\n var attr = {};\n merge(attr, newNodeData[this.fields.htmlAttributes]);\n if (attr.class) {\n addClass([liEle], attr.class.split(' '));\n delete attr.class;\n } else {\n attributes(liEle, attr);\n }\n }\n if (this.selectedNodes.indexOf(id) !== -1) {\n liEle.setAttribute('aria-selected', 'true');\n addClass([liEle], ACTIVE);\n }\n this.isRefreshed = false;\n this.triggerEvent('refreshNode', [this.getNode(liEle)]);\n };\n /**\n * Removes the collection of TreeView nodes by passing the array of node details as argument to this method.\n *\n * @param {string[] | Element[]} nodes - Specifies the array of TreeView nodes ID/array of TreeView node.\n * @returns {void}\n */\n TreeView.prototype.removeNodes = function (nodes) {\n if (!isNullOrUndefined(nodes)) {\n if (this.fields.dataSource instanceof DataManager && !this.isOffline) {\n this.crudOperation('delete', nodes);\n } else {\n this.deleteSuccess(nodes);\n }\n }\n };\n /**\n * Replaces the text of the TreeView node with the given text.\n *\n * @param {string | Element} target - Specifies ID of TreeView node/TreeView node as target element.\n * @param {string} newText - Specifies the new text of TreeView node.\n * @returns {void}\n */\n TreeView.prototype.updateNode = function (target, newText) {\n var _this = this;\n if (isNullOrUndefined(target) || isNullOrUndefined(newText) || !this.allowEditing) {\n return;\n }\n var liEle = this.getElement(target);\n if (isNullOrUndefined(liEle)) {\n return;\n }\n var txtEle = select('.' + LISTTEXT, liEle);\n this.updateOldText(liEle);\n var eventArgs = this.getEditEvent(liEle, null, null);\n this.trigger('nodeEditing', eventArgs, function (observedArgs) {\n if (!observedArgs.cancel) {\n if (_this.fields.dataSource instanceof DataManager && !_this.isOffline) {\n _this.crudOperation('update', null, target, newText, null, null, false);\n } else {\n _this.appendNewText(liEle, txtEle, newText, false);\n }\n }\n });\n };\n /**\n * Unchecks all the checked nodes. You can also uncheck the specific nodes by passing array of checked nodes\n * as argument to this method.\n *\n * @param {string[] | Element[]} nodes - Specifies the array of TreeView nodes ID/array of TreeView node.\n * @returns {void}\n */\n TreeView.prototype.uncheckAll = function (nodes) {\n if (this.showCheckBox) {\n this.doCheckBoxAction(nodes, false);\n }\n };\n var TreeView_1;\n __decorate$8([Property(false)], TreeView.prototype, \"allowDragAndDrop\", void 0);\n __decorate$8([Property(false)], TreeView.prototype, \"allowEditing\", void 0);\n __decorate$8([Property(false)], TreeView.prototype, \"allowMultiSelection\", void 0);\n __decorate$8([Property(false)], TreeView.prototype, \"allowTextWrap\", void 0);\n __decorate$8([Complex({}, NodeAnimationSettings)], TreeView.prototype, \"animation\", void 0);\n __decorate$8([Property()], TreeView.prototype, \"checkedNodes\", void 0);\n __decorate$8([Property(true)], TreeView.prototype, \"checkDisabledChildren\", void 0);\n __decorate$8([Property('')], TreeView.prototype, \"cssClass\", void 0);\n __decorate$8([Property(false)], TreeView.prototype, \"disabled\", void 0);\n __decorate$8([Property(null)], TreeView.prototype, \"dragArea\", void 0);\n __decorate$8([Property(true)], TreeView.prototype, \"enableHtmlSanitizer\", void 0);\n __decorate$8([Property(false)], TreeView.prototype, \"enablePersistence\", void 0);\n __decorate$8([Property()], TreeView.prototype, \"expandedNodes\", void 0);\n __decorate$8([Property('Auto')], TreeView.prototype, \"expandOn\", void 0);\n __decorate$8([Complex({}, FieldsSettings)], TreeView.prototype, \"fields\", void 0);\n __decorate$8([Property(true)], TreeView.prototype, \"fullRowSelect\", void 0);\n __decorate$8([Property(true)], TreeView.prototype, \"loadOnDemand\", void 0);\n __decorate$8([Property()], TreeView.prototype, \"locale\", void 0);\n __decorate$8([Property()], TreeView.prototype, \"nodeTemplate\", void 0);\n __decorate$8([Property()], TreeView.prototype, \"selectedNodes\", void 0);\n __decorate$8([Property('None')], TreeView.prototype, \"sortOrder\", void 0);\n __decorate$8([Property(false)], TreeView.prototype, \"showCheckBox\", void 0);\n __decorate$8([Property(true)], TreeView.prototype, \"autoCheck\", void 0);\n __decorate$8([Property(false)], TreeView.prototype, \"fullRowNavigable\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"actionFailure\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"created\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"dataBound\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"dataSourceChanged\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"drawNode\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"destroyed\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"keyPress\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"nodeChecked\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"nodeChecking\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"nodeClicked\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"nodeCollapsed\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"nodeCollapsing\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"nodeDragging\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"nodeDragStart\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"nodeDragStop\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"nodeDropped\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"nodeEdited\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"nodeEditing\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"nodeExpanded\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"nodeExpanding\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"nodeSelected\", void 0);\n __decorate$8([Event()], TreeView.prototype, \"nodeSelecting\", void 0);\n TreeView = TreeView_1 = __decorate$8([NotifyPropertyChanges], TreeView);\n return TreeView;\n}(Component);\nvar __extends$9 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 CONTROL$1 = 'e-control';\nvar ROOT$1 = 'e-sidebar';\nvar DOCKER = 'e-dock';\nvar CLOSE = 'e-close';\nvar OPEN = 'e-open';\nvar TRASITION = 'e-transition';\nvar DEFAULTBACKDROP = 'e-sidebar-overlay';\nvar RTL$2 = 'e-rtl';\nvar RIGHT = 'e-right';\nvar LEFT = 'e-left';\nvar OVER = 'e-over';\nvar PUSH = 'e-push';\nvar SLIDE = 'e-slide';\nvar VISIBILITY = 'e-visibility';\nvar DISPLAY = 'e-sidebar-display';\nvar MAINCONTENTANIMATION = 'e-content-animation';\nvar DISABLEANIMATION = 'e-disable-animation';\nvar CONTEXT = 'e-sidebar-context';\nvar SIDEBARABSOLUTE = 'e-sidebar-absolute';\n/**\n * Sidebar is an expandable or collapsible\n * component that typically act as a side container to place the primary or secondary content alongside of the main content.\n * ```html\n * \n * ```\n * ```typescript\n * \n * ```\n */\nvar Sidebar = /** @__PURE__ @class */function (_super) {\n __extends$9(Sidebar, _super);\n function Sidebar(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.documentClickContext = _this.documentclickHandler.bind(_this);\n return _this;\n }\n Sidebar.prototype.preRender = function () {\n this.setWidth();\n };\n Sidebar.prototype.render = function () {\n this.initialize();\n this.wireEvents();\n this.renderComplete();\n };\n Sidebar.prototype.initialize = function () {\n this.setTarget();\n this.addClass();\n this.setZindex();\n if (this.enableDock) {\n this.setDock();\n }\n if (this.isOpen) {\n this.show();\n this.firstRender = true;\n } else {\n this.setMediaQuery();\n }\n this.checkType(true);\n this.setType(this.type);\n this.setCloseOnDocumentClick();\n this.setEnableRTL();\n if (Browser.isDevice) {\n this.windowWidth = window.innerWidth;\n }\n };\n Sidebar.prototype.setEnableRTL = function () {\n (this.enableRtl ? addClass : removeClass)([this.element], RTL$2);\n };\n Sidebar.prototype.setTarget = function () {\n this.targetEle = this.element.nextElementSibling;\n this.sidebarEleCopy = this.element.cloneNode(true);\n if (typeof this.target === 'string') {\n this.setProperties({\n target: document.querySelector(this.target)\n }, true);\n }\n if (this.target) {\n this.target.insertBefore(this.element, this.target.children[0]);\n addClass([this.element], SIDEBARABSOLUTE);\n addClass([this.target], CONTEXT);\n this.targetEle = this.getTargetElement();\n }\n };\n Sidebar.prototype.getTargetElement = function () {\n var siblingElement = this.element.nextElementSibling;\n while (!isNullOrUndefined(siblingElement)) {\n if (!siblingElement.classList.contains(ROOT$1)) {\n break;\n }\n siblingElement = siblingElement.nextElementSibling;\n }\n return siblingElement;\n };\n Sidebar.prototype.setCloseOnDocumentClick = function () {\n if (this.closeOnDocumentClick) {\n document.addEventListener('mousedown', this.documentClickContext);\n document.addEventListener('touchstart', this.documentClickContext);\n } else {\n document.removeEventListener('mousedown', this.documentClickContext);\n document.removeEventListener('touchstart', this.documentClickContext);\n }\n };\n Sidebar.prototype.setWidth = function () {\n if (this.enableDock && this.position === 'Left') {\n setStyleAttribute(this.element, {\n 'width': this.setDimension(this.dockSize)\n });\n } else if (this.enableDock && this.position === 'Right') {\n setStyleAttribute(this.element, {\n 'width': this.setDimension(this.dockSize)\n });\n } else if (!this.enableDock) {\n setStyleAttribute(this.element, {\n 'width': this.setDimension(this.width)\n });\n }\n };\n Sidebar.prototype.setDimension = function (width) {\n if (typeof width === 'number') {\n width = formatUnit(width);\n } else if (typeof width === 'string') {\n width = width.match(/px|%|em/) ? width : formatUnit(width);\n } else {\n width = '100%';\n }\n return width;\n };\n Sidebar.prototype.setZindex = function () {\n setStyleAttribute(this.element, {\n 'z-index': '' + this.zIndex\n });\n };\n Sidebar.prototype.addClass = function () {\n if (this.element.tagName === 'EJS-SIDEBAR') {\n addClass([this.element], DISPLAY);\n }\n var classELement = document.querySelector('.e-main-content');\n if (!isNullOrUndefined(classELement || this.targetEle)) {\n addClass([classELement || this.targetEle], [MAINCONTENTANIMATION]);\n }\n this.tabIndex = this.element.hasAttribute('tabindex') ? this.element.getAttribute('tabindex') : null;\n if (!this.enableDock && this.type !== 'Auto') {\n addClass([this.element], [VISIBILITY]);\n }\n removeClass([this.element], [OPEN, CLOSE, RIGHT, LEFT, SLIDE, PUSH, OVER]);\n this.element.classList.add(ROOT$1);\n addClass([this.element], this.position === 'Right' ? RIGHT : LEFT);\n if (this.enableDock) {\n addClass([this.element], DOCKER);\n }\n if (!isNullOrUndefined(this.tabIndex)) {\n this.element.setAttribute('tabindex', this.tabIndex);\n }\n if (this.type === 'Auto' && !Browser.isDevice) {\n this.show();\n } else if (!this.isOpen) {\n addClass([this.element], [CLOSE, DISABLEANIMATION]);\n }\n };\n Sidebar.prototype.checkType = function (val) {\n if (!(this.type === 'Push' || this.type === 'Over' || this.type === 'Slide')) {\n this.type = 'Auto';\n } else {\n if (!this.element.classList.contains(CLOSE) && !val) {\n this.hide();\n }\n }\n };\n Sidebar.prototype.transitionEnd = function (e) {\n this.setDock();\n if (!isNullOrUndefined(e) && !this.firstRender) {\n this.triggerChange();\n }\n this.firstRender = false;\n EventHandler.remove(this.element, 'transitionend', this.transitionEnd);\n };\n Sidebar.prototype.destroyBackDrop = function () {\n var sibling = document.querySelector('.e-main-content') || this.targetEle;\n if (this.target && this.showBackdrop && sibling && !isNullOrUndefined(this.defaultBackdropDiv)) {\n removeClass([this.defaultBackdropDiv], DEFAULTBACKDROP);\n } else if (this.showBackdrop && this.modal) {\n this.modal.style.display = 'none';\n this.modal.outerHTML = '';\n this.modal = null;\n }\n };\n /**\n * Hide the Sidebar component, if it is in an open state.\n *\n * @param {Event} e - The event triggering the hide action.\n * @returns {void}\n *\n */\n Sidebar.prototype.hide = function (e) {\n var _this = this;\n var closeArguments = {\n model: this,\n element: this.element,\n cancel: false,\n isInteracted: !isNullOrUndefined(e),\n event: e || null\n };\n this.trigger('close', closeArguments, function (observedcloseArgs) {\n if (!observedcloseArgs.cancel) {\n if (_this.element.classList.contains(CLOSE)) {\n return;\n }\n if (_this.element.classList.contains(OPEN) && !_this.animate) {\n _this.triggerChange();\n }\n addClass([_this.element], CLOSE);\n removeClass([_this.element], OPEN);\n setStyleAttribute(_this.element, {\n 'width': formatUnit(_this.enableDock ? _this.dockSize : _this.width)\n });\n _this.setType(_this.type);\n var sibling = document.querySelector('.e-main-content') || _this.targetEle;\n if (!_this.enableDock && sibling) {\n sibling.style.transform = 'translateX(' + 0 + 'px)';\n sibling.style[_this.position === 'Left' ? 'marginLeft' : 'marginRight'] = '0px';\n }\n _this.destroyBackDrop();\n _this.setAnimation();\n if (_this.type === 'Slide') {\n document.body.classList.remove('e-sidebar-overflow');\n }\n _this.setProperties({\n isOpen: false\n }, true);\n if (_this.enableDock) {\n setTimeout(function () {\n return _this.setTimeOut();\n }, 50);\n }\n EventHandler.add(_this.element, 'transitionend', _this.transitionEnd, _this);\n }\n });\n };\n Sidebar.prototype.setTimeOut = function () {\n var sibling = document.querySelector('.e-main-content') || this.targetEle;\n var elementWidth = this.element.getBoundingClientRect().width;\n if (this.element.classList.contains(OPEN) && sibling && !(this.type === 'Over' && this.enableDock)) {\n if (this.position === 'Left') {\n sibling.style.marginLeft = this.setDimension(this.width === 'auto' ? elementWidth : this.width);\n } else {\n sibling.style.marginRight = this.setDimension(this.width === 'auto' ? elementWidth : this.width);\n }\n } else if (this.element.classList.contains(CLOSE) && sibling) {\n if (this.position === 'Left') {\n sibling.style.marginLeft = this.setDimension(this.dockSize === 'auto' ? elementWidth : this.dockSize);\n } else {\n sibling.style.marginRight = this.setDimension(this.dockSize === 'auto' ? elementWidth : this.dockSize);\n }\n }\n };\n /**\n * Shows the Sidebar component, if it is in closed state.\n *\n * @param {Event} e - The optional event triggering the show action.\n * @returns {void}\n */\n Sidebar.prototype.show = function (e) {\n var _this = this;\n var openArguments = {\n model: this,\n element: this.element,\n cancel: false,\n isInteracted: !isNullOrUndefined(e),\n event: e || null\n };\n this.trigger('open', openArguments, function (observedopenArgs) {\n if (!observedopenArgs.cancel) {\n removeClass([_this.element], [VISIBILITY, DISABLEANIMATION]);\n if (_this.element.classList.contains(OPEN)) {\n return;\n }\n if (_this.element.classList.contains(CLOSE) && !_this.animate) {\n _this.triggerChange();\n }\n addClass([_this.element], [OPEN, TRASITION]);\n setStyleAttribute(_this.element, {\n 'transform': ''\n });\n removeClass([_this.element], CLOSE);\n setStyleAttribute(_this.element, {\n 'width': formatUnit(_this.width)\n });\n _this.setType(_this.type);\n _this.createBackDrop();\n _this.setAnimation();\n if (_this.type === 'Slide') {\n document.body.classList.add('e-sidebar-overflow');\n }\n _this.setProperties({\n isOpen: true\n }, true);\n EventHandler.add(_this.element, 'transitionend', _this.transitionEnd, _this);\n }\n });\n };\n Sidebar.prototype.setAnimation = function () {\n if (this.animate) {\n removeClass([this.element], DISABLEANIMATION);\n } else {\n addClass([this.element], DISABLEANIMATION);\n }\n };\n Sidebar.prototype.triggerChange = function () {\n var changeArguments = {\n name: 'change',\n element: this.element\n };\n this.trigger('change', changeArguments);\n };\n Sidebar.prototype.setDock = function () {\n if (this.enableDock && this.position === 'Left' && !this.getState()) {\n setStyleAttribute(this.element, {\n 'transform': 'translateX(' + -100 + '%) translateX(' + this.setDimension(this.dockSize) + ')'\n });\n } else if (this.enableDock && this.position === 'Right' && !this.getState()) {\n setStyleAttribute(this.element, {\n 'transform': 'translateX(' + 100 + '%) translateX(' + '-' + this.setDimension(this.dockSize) + ')'\n });\n }\n if (this.element.classList.contains(CLOSE) && this.enableDock) {\n setStyleAttribute(this.element, {\n 'width': this.setDimension(this.dockSize)\n });\n }\n };\n Sidebar.prototype.createBackDrop = function () {\n if (this.target && this.showBackdrop && this.getState()) {\n var targetString = this.target;\n var sibling = document.querySelector('.e-main-content') || this.targetEle;\n this.defaultBackdropDiv = this.createElement('div');\n addClass([this.defaultBackdropDiv], DEFAULTBACKDROP);\n setStyleAttribute(this.defaultBackdropDiv, {\n height: targetString.style.height\n });\n sibling.appendChild(this.defaultBackdropDiv);\n } else if (this.showBackdrop && !this.modal && this.getState()) {\n this.modal = this.createElement('div');\n this.modal.className = DEFAULTBACKDROP;\n this.modal.style.display = 'block';\n document.body.appendChild(this.modal);\n }\n };\n Sidebar.prototype.getPersistData = function () {\n return this.addOnPersist(['type', 'position', 'isOpen']);\n };\n /**\n * Returns the current module name.\n *\n * @returns {string} - returns module name.\n * @private\n *\n */\n Sidebar.prototype.getModuleName = function () {\n return 'sidebar';\n };\n /**\n * Shows or hides the Sidebar based on the current state.\n *\n * @returns {void}\n */\n Sidebar.prototype.toggle = function () {\n if (this.element.classList.contains(OPEN)) {\n this.hide();\n } else {\n this.show();\n }\n };\n Sidebar.prototype.getState = function () {\n return this.element.classList.contains(OPEN) ? true : false;\n };\n Sidebar.prototype.setMediaQuery = function () {\n if (this.mediaQuery) {\n var media = false;\n if (typeof this.mediaQuery === 'string') {\n media = window.matchMedia(this.mediaQuery).matches;\n } else {\n media = this.mediaQuery.matches;\n }\n if (media && this.windowWidth !== window.innerWidth) {\n this.show();\n } else if (this.getState() && this.windowWidth !== window.innerWidth) {\n this.hide();\n }\n }\n };\n Sidebar.prototype.resize = function () {\n if (this.type === 'Auto') {\n if (Browser.isDevice) {\n addClass([this.element], OVER);\n } else {\n addClass([this.element], PUSH);\n }\n }\n this.setMediaQuery();\n if (Browser.isDevice) {\n this.windowWidth = window.innerWidth;\n }\n };\n Sidebar.prototype.documentclickHandler = function (e) {\n if (closest(e.target, '.' + CONTROL$1 + '' + '.' + ROOT$1)) {\n return;\n }\n this.hide(e);\n };\n Sidebar.prototype.enableGestureHandler = function (args) {\n if (!this.isOpen && this.position === 'Left' && args.swipeDirection === 'Right' && args.startX <= 20 && args.distanceX >= 50 && args.velocity >= 0.5) {\n this.show();\n } else if (this.isOpen && this.position === 'Left' && args.swipeDirection === 'Left') {\n this.hide(args.originalEvent);\n } else if (this.isOpen && this.position === 'Right' && args.swipeDirection === 'Right') {\n this.hide(args.originalEvent);\n } else if (!this.isOpen && this.position === 'Right' && args.swipeDirection === 'Left' && window.innerWidth - args.startX <= 20 && args.distanceX >= 50 && args.velocity >= 0.5) {\n this.show();\n }\n };\n Sidebar.prototype.setEnableGestures = function () {\n if (this.enableGestures) {\n this.mainContentEle = new Touch(document.body, {\n swipe: this.enableGestureHandler.bind(this)\n });\n this.sidebarEle = new Touch(this.element, {\n swipe: this.enableGestureHandler.bind(this)\n });\n } else {\n if (this.mainContentEle && this.sidebarEle) {\n this.mainContentEle.destroy();\n this.sidebarEle.destroy();\n }\n }\n };\n Sidebar.prototype.wireEvents = function () {\n this.setEnableGestures();\n EventHandler.add(window, 'resize', this.resize, this);\n };\n Sidebar.prototype.unWireEvents = function () {\n EventHandler.remove(window, 'resize', this.resize);\n EventHandler.remove(document, 'mousedown touchstart', this.documentclickHandler);\n if (this.mainContentEle) {\n this.mainContentEle.destroy();\n }\n if (this.sidebarEle) {\n this.sidebarEle.destroy();\n }\n };\n /**\n * Called internally if any of the property value changed.\n *\n * @param {SidebarModel} newProp - specifies newProp value.\n * @param {SidebarModel} oldProp - specifies oldProp value.\n * @returns {void}\n * @private\n *\n */\n Sidebar.prototype.onPropertyChanged = function (newProp, oldProp) {\n var sibling = document.querySelector('.e-main-content') || this.targetEle;\n var isRendered = this.isServerRendered;\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'isOpen':\n if (this.isOpen) {\n this.show();\n } else {\n this.hide();\n }\n break;\n case 'width':\n this.setWidth();\n if (!this.getState()) {\n this.setDock();\n }\n break;\n case 'animate':\n this.setAnimation();\n break;\n case 'type':\n this.checkType(false);\n removeClass([this.element], [VISIBILITY]);\n this.addClass();\n addClass([this.element], this.type === 'Auto' ? Browser.isDevice ? ['e-over'] : ['e-push'] : ['e-' + this.type.toLowerCase()]);\n break;\n case 'position':\n this.element.style.transform = '';\n this.setDock();\n if (sibling) {\n sibling.style[this.position === 'Left' ? 'marginRight' : 'marginLeft'] = '0px';\n }\n if (this.position === 'Right') {\n removeClass([this.element], LEFT);\n addClass([this.element], RIGHT);\n } else {\n removeClass([this.element], RIGHT);\n addClass([this.element], LEFT);\n }\n this.setType(this.type);\n break;\n case 'showBackdrop':\n if (this.showBackdrop) {\n this.createBackDrop();\n } else {\n if (this.modal) {\n this.modal.style.display = 'none';\n this.modal.outerHTML = '';\n this.modal = null;\n }\n }\n break;\n case 'target':\n if (typeof this.target === 'string') {\n this.setProperties({\n target: document.querySelector(this.target)\n }, true);\n }\n if (isNullOrUndefined(this.target)) {\n removeClass([this.element], SIDEBARABSOLUTE);\n removeClass([oldProp.target], CONTEXT);\n setStyleAttribute(sibling, {\n 'margin-left': 0,\n 'margin-right': 0\n });\n document.body.insertAdjacentElement('afterbegin', this.element);\n }\n this.isServerRendered = false;\n _super.prototype.refresh.call(this);\n this.isServerRendered = isRendered;\n break;\n case 'closeOnDocumentClick':\n this.setCloseOnDocumentClick();\n break;\n case 'enableDock':\n if (!this.getState()) {\n this.setDock();\n }\n break;\n case 'zIndex':\n this.setZindex();\n break;\n case 'mediaQuery':\n this.setMediaQuery();\n break;\n case 'enableGestures':\n this.setEnableGestures();\n break;\n case 'enableRtl':\n this.setEnableRTL();\n break;\n }\n }\n };\n Sidebar.prototype.setType = function (type) {\n var elementWidth = this.element.getBoundingClientRect().width;\n this.setZindex();\n var sibling = document.querySelector('.e-main-content') || this.targetEle;\n if (sibling) {\n sibling.style.transform = 'translateX(' + 0 + 'px)';\n if (!Browser.isDevice && this.type !== 'Auto' && !(this.type === 'Over' && this.enableDock)) {\n sibling.style[this.position === 'Left' ? 'marginLeft' : 'marginRight'] = '0px';\n }\n }\n var margin = this.position === 'Left' ? elementWidth + 'px' : elementWidth + 'px';\n var eleWidth = this.position === 'Left' ? elementWidth : -elementWidth;\n removeClass([this.element], [PUSH, OVER, SLIDE]);\n switch (type) {\n case 'Push':\n addClass([this.element], [PUSH]);\n if (sibling && (this.enableDock || this.element.classList.contains(OPEN))) {\n sibling.style[this.position === 'Left' ? 'marginLeft' : 'marginRight'] = margin;\n }\n break;\n case 'Slide':\n addClass([this.element], [SLIDE]);\n if (sibling && (this.enableDock || this.element.classList.contains(OPEN))) {\n sibling.style.transform = 'translateX(' + eleWidth + 'px)';\n }\n break;\n case 'Over':\n addClass([this.element], [OVER]);\n if (this.enableDock && (this.element.classList.contains(CLOSE) || this.isOpen)) {\n if (sibling) {\n sibling.style[this.position === 'Left' ? 'marginLeft' : 'marginRight'] = this.setDimension(this.dockSize);\n }\n }\n break;\n case 'Auto':\n addClass([this.element], [TRASITION]);\n if (Browser.isDevice) {\n if (sibling && this.enableDock && !this.getState()) {\n sibling.style[this.position === 'Left' ? 'marginLeft' : 'marginRight'] = margin;\n addClass([this.element], PUSH);\n } else {\n addClass([this.element], OVER);\n }\n } else {\n addClass([this.element], PUSH);\n if (sibling && (this.enableDock || this.element.classList.contains(OPEN))) {\n sibling.style[this.position === 'Left' ? 'marginLeft' : 'marginRight'] = margin;\n }\n }\n this.createBackDrop();\n }\n };\n /**\n * Removes the control from the DOM and detaches all its related event handlers. Also it removes the attributes and classes.\n *\n * @returns {void}\n *\n */\n Sidebar.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n if (this.target) {\n removeClass([this.target], CONTEXT);\n }\n this.destroyBackDrop();\n if (this.element) {\n removeClass([this.element], [OPEN, CLOSE, PUSH, SLIDE, OVER, LEFT, RIGHT, TRASITION, DISABLEANIMATION]);\n removeClass([this.element], SIDEBARABSOLUTE);\n this.element.style.width = '';\n this.element.style.zIndex = '';\n this.element.style.transform = '';\n if (!isNullOrUndefined(this.sidebarEleCopy.getAttribute('tabindex'))) {\n this.element.setAttribute('tabindex', this.tabIndex);\n } else {\n this.element.removeAttribute('tabindex');\n }\n }\n this.windowWidth = null;\n var sibling = document.querySelector('.e-main-content') || this.targetEle;\n if (!isNullOrUndefined(sibling)) {\n sibling.style.margin = '';\n sibling.style.transform = '';\n }\n this.unWireEvents();\n };\n __decorate$9([Property('auto')], Sidebar.prototype, \"dockSize\", void 0);\n __decorate$9([Property(null)], Sidebar.prototype, \"mediaQuery\", void 0);\n __decorate$9([Property(false)], Sidebar.prototype, \"enableDock\", void 0);\n __decorate$9([Property('en-US')], Sidebar.prototype, \"locale\", void 0);\n __decorate$9([Property(false)], Sidebar.prototype, \"enablePersistence\", void 0);\n __decorate$9([Property(true)], Sidebar.prototype, \"enableGestures\", void 0);\n __decorate$9([Property(false)], Sidebar.prototype, \"isOpen\", void 0);\n __decorate$9([Property(false)], Sidebar.prototype, \"enableRtl\", void 0);\n __decorate$9([Property(true)], Sidebar.prototype, \"animate\", void 0);\n __decorate$9([Property('auto')], Sidebar.prototype, \"height\", void 0);\n __decorate$9([Property(false)], Sidebar.prototype, \"closeOnDocumentClick\", void 0);\n __decorate$9([Property('Left')], Sidebar.prototype, \"position\", void 0);\n __decorate$9([Property(null)], Sidebar.prototype, \"target\", void 0);\n __decorate$9([Property(false)], Sidebar.prototype, \"showBackdrop\", void 0);\n __decorate$9([Property('Auto')], Sidebar.prototype, \"type\", void 0);\n __decorate$9([Property('auto')], Sidebar.prototype, \"width\", void 0);\n __decorate$9([Property(1000)], Sidebar.prototype, \"zIndex\", void 0);\n __decorate$9([Event()], Sidebar.prototype, \"created\", void 0);\n __decorate$9([Event()], Sidebar.prototype, \"close\", void 0);\n __decorate$9([Event()], Sidebar.prototype, \"open\", void 0);\n __decorate$9([Event()], Sidebar.prototype, \"change\", void 0);\n __decorate$9([Event()], Sidebar.prototype, \"destroyed\", void 0);\n Sidebar = __decorate$9([NotifyPropertyChanges], Sidebar);\n return Sidebar;\n}(Component);\nvar __extends$a = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 ICONRIGHT = 'e-icon-right';\nvar ITEMTEXTCLASS = 'e-breadcrumb-text';\nvar ICONCLASS = 'e-breadcrumb-icon';\nvar MENUCLASS = 'e-breadcrumb-menu';\nvar ITEMCLASS = 'e-breadcrumb-item';\nvar POPUPCLASS = 'e-breadcrumb-popup';\nvar WRAPMODECLASS = 'e-breadcrumb-wrap-mode';\nvar SCROLLMODECLASS = 'e-breadcrumb-scroll-mode';\nvar TABINDEX = 'tabindex';\nvar DISABLEDCLASS = 'e-disabled';\nvar ARIADISABLED = 'aria-disabled';\nvar DOT = '.';\n/**\n * Defines the Breadcrumb overflow modes.\n */\nvar BreadcrumbOverflowMode = /*#__PURE__*/function (BreadcrumbOverflowMode) {\n /**\n * Hidden mode shows the maximum number of items possible in the container space and hides the remaining items.\n * Clicking on a previous item will make the hidden item visible.\n */\n BreadcrumbOverflowMode[\"Hidden\"] = \"Hidden\";\n /**\n * Collapsed mode shows the first and last Breadcrumb items and hides the remaining items with a collapsed icon.\n * When the collapsed icon is clicked, all items become visible and navigable.\n */\n BreadcrumbOverflowMode[\"Collapsed\"] = \"Collapsed\";\n /**\n * Menu mode shows the number of Breadcrumb items that can be accommodated within the container space and creates a submenu with the remaining items.\n */\n BreadcrumbOverflowMode[\"Menu\"] = \"Menu\";\n /**\n * Wrap mode wraps the items to multiple lines when the Breadcrumb’s width exceeds the container space.\n */\n BreadcrumbOverflowMode[\"Wrap\"] = \"Wrap\";\n /**\n * Scroll mode shows an HTML scroll bar when the Breadcrumb’s width exceeds the container space.\n */\n BreadcrumbOverflowMode[\"Scroll\"] = \"Scroll\";\n /**\n * None mode shows all the items in a single line.\n */\n BreadcrumbOverflowMode[\"None\"] = \"None\";\n return BreadcrumbOverflowMode;\n}(BreadcrumbOverflowMode || {});\nvar BreadcrumbItem = /** @__PURE__ @class */function (_super) {\n __extends$a(BreadcrumbItem, _super);\n function BreadcrumbItem() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$a([Property('')], BreadcrumbItem.prototype, \"text\", void 0);\n __decorate$a([Property('')], BreadcrumbItem.prototype, \"id\", void 0);\n __decorate$a([Property('')], BreadcrumbItem.prototype, \"url\", void 0);\n __decorate$a([Property(null)], BreadcrumbItem.prototype, \"iconCss\", void 0);\n __decorate$a([Property(false)], BreadcrumbItem.prototype, \"disabled\", void 0);\n return BreadcrumbItem;\n}(ChildProperty);\n/**\n * Breadcrumb is a graphical user interface that helps to identify or highlight the current location within a hierarchical structure of websites.\n * The aim is to make the user aware of their current position in a hierarchy of website links.\n * ```html\n * \n * ```\n * ```typescript\n * \n * ```\n */\nvar Breadcrumb = /** @__PURE__ @class */function (_super) {\n __extends$a(Breadcrumb, _super);\n /**\n * Constructor for creating the widget.\n *\n * @private\n * @param {BreadcrumbModel} options - Specifies the Breadcrumb model.\n * @param {string | HTMLElement} element - Specifies the element.\n */\n function Breadcrumb(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.isPopupCreated = false;\n return _this;\n }\n /**\n * @private\n * @returns {void}\n */\n Breadcrumb.prototype.preRender = function () {\n // pre render code\n };\n /**\n * Initialize the control rendering.\n *\n * @private\n * @returns {void}\n */\n Breadcrumb.prototype.render = function () {\n this.initialize();\n this.renderItems(this.items);\n this.wireEvents();\n };\n Breadcrumb.prototype.initialize = function () {\n this._maxItems = this.maxItems;\n if (isNullOrUndefined(this.element.getAttribute('aria-label'))) {\n this.element.setAttribute('aria-label', 'breadcrumb');\n }\n if (this.cssClass) {\n addClass([this.element], this.cssClass.replace(/\\s+/g, ' ').trim().split(' '));\n }\n if (this.enableRtl) {\n this.element.classList.add('e-rtl');\n }\n if (this.disabled) {\n this.element.classList.add(DISABLEDCLASS);\n this.element.setAttribute(ARIADISABLED, 'true');\n }\n if (this.overflowMode === 'Wrap') {\n this.element.classList.add(WRAPMODECLASS);\n } else if (this.overflowMode === 'Scroll') {\n this.element.classList.add(SCROLLMODECLASS);\n }\n this.initItems();\n this.initPvtProps();\n };\n Breadcrumb.prototype.initPvtProps = function () {\n if (this.overflowMode === 'Hidden' && this._maxItems > 0) {\n this.endIndex = this.getEndIndex();\n this.startIndex = this.endIndex + 1 - (this._maxItems - 1);\n }\n if (this.overflowMode === 'Menu') {\n if (this._maxItems >= 0) {\n this.startIndex = this._maxItems > 1 ? 1 : 0;\n this.endIndex = this.getEndIndex();\n this.popupUl = this.createElement('ul', {\n attrs: {\n TABINDEX: '0',\n 'role': 'menu'\n }\n });\n } else {\n this.startIndex = this.endIndex = null;\n }\n }\n };\n Breadcrumb.prototype.getEndIndex = function () {\n var _this = this;\n var endIndex;\n if (this.activeItem) {\n this.items.forEach(function (item, idx) {\n if (item.url === _this.activeItem || item.text === _this.activeItem) {\n endIndex = idx;\n }\n });\n } else {\n endIndex = this.items.length - 1;\n }\n return endIndex;\n };\n Breadcrumb.prototype.initItems = function () {\n if (!this.items.length) {\n var baseUri = void 0;\n var uri = void 0;\n var items = [];\n if (this.url) {\n var url = new URL(this.url, window.location.origin);\n baseUri = url.origin + '/';\n uri = url.href.split(baseUri)[1].split('/');\n } else {\n baseUri = window.location.origin + '/';\n uri = window.location.href.split(baseUri)[1].split('/');\n }\n items.push({\n iconCss: 'e-icons e-home',\n url: baseUri\n });\n for (var i = 0; i < uri.length; i++) {\n if (uri[i]) {\n items.push({\n text: uri[i],\n url: baseUri + uri[i]\n });\n baseUri += uri[i] + '/';\n }\n }\n this.setProperties({\n items: items\n }, true);\n }\n };\n Breadcrumb.prototype.renderItems = function (items) {\n var _this = this;\n var item;\n var isSingleLevel;\n var isIconRight = this.element.classList.contains(ICONRIGHT);\n var itemsLength = items.length;\n if (itemsLength) {\n var isActiveItem = void 0;\n var isLastItem = void 0;\n var isLastItemInPopup_1;\n var j_1 = 0;\n var wrapDiv = void 0;\n var len = itemsLength * 2 - 1;\n var isItemCancelled_1 = false;\n var ol = this.createElement('ol', {\n className: this.overflowMode === 'Wrap' ? 'e-breadcrumb-wrapped-ol' : ''\n });\n var firstOl = this.createElement('ol', {\n className: this.overflowMode === 'Wrap' ? 'e-breadcrumb-first-ol' : ''\n });\n var showIcon = this.hasField(items, 'iconCss');\n var isCollasped = this.overflowMode === 'Collapsed' && this._maxItems > 0 && itemsLength > this._maxItems && !this.isExpanded;\n var isDefaultOverflowMode_1 = this.overflowMode === 'Hidden' && this._maxItems > 0;\n if (this.overflowMode === 'Menu' && this.popupUl) {\n this.popupUl.innerHTML = '';\n }\n var listBaseOptions = {\n moduleName: this.getModuleName(),\n showIcon: showIcon,\n itemNavigable: true,\n itemCreated: function (args) {\n var isLastItem = args.curData.isLastItem;\n if (isLastItem && args.item.children.length && !_this.itemTemplate) {\n delete args.curData.isLastItem;\n if (!isLastItemInPopup_1 && !_this.enableActiveItemNavigation) {\n args.item.innerHTML = _this.createElement('span', {\n className: ITEMTEXTCLASS,\n innerHTML: args.item.children[0].innerHTML\n }).outerHTML;\n }\n }\n if (args.curData.iconCss && !args.curData.text && !_this.itemTemplate) {\n args.item.classList.add('e-icon-item');\n }\n if (isDefaultOverflowMode_1) {\n args.item.setAttribute('item-index', j_1.toString());\n }\n var eventArgs = {\n item: extend({}, args.curData.properties ? args.curData.properties : args.curData),\n element: args.item,\n cancel: false\n };\n _this.trigger('beforeItemRender', eventArgs);\n isItemCancelled_1 = eventArgs.cancel;\n var containsRightIcon = isIconRight || eventArgs.element.classList.contains(ICONRIGHT);\n if (containsRightIcon && args.curData.iconCss && !_this.itemTemplate) {\n args.item.querySelector('.e-anchor-wrap').appendChild(args.item.querySelector(DOT + ICONCLASS));\n }\n if (eventArgs.item.disabled) {\n args.item.setAttribute(ARIADISABLED, 'true');\n args.item.classList.add(DISABLEDCLASS);\n }\n if (eventArgs.item.id) {\n args.item.setAttribute('id', eventArgs.item.id);\n }\n if ((eventArgs.item.disabled || _this.disabled) && args.item.children.length && !_this.itemTemplate) {\n args.item.children[0].setAttribute(TABINDEX, '-1');\n }\n if (args.curData.isEmptyUrl) {\n args.item.children[0].removeAttribute('href');\n if ((!isLastItem || isLastItem && _this.enableActiveItemNavigation) && !(eventArgs.item.disabled || _this.disabled)) {\n args.item.children[0].setAttribute(TABINDEX, '0');\n EventHandler.add(args.item.children[0], 'keydown', _this.keyDownHandler, _this);\n }\n }\n args.item.removeAttribute('role');\n if (isLastItem) {\n args.item.setAttribute('data-active-item', '');\n }\n if (!_this.itemTemplate) {\n _this.beforeItemRenderChanges(args.curData, eventArgs.item, args.item, containsRightIcon);\n }\n }\n };\n for (var i = 0; i < len; i % 2 && j_1++, i++) {\n isActiveItem = this.activeItem && (this.activeItem === items[j_1].url || this.activeItem === items[j_1].text);\n if (isCollasped && i > 1 && i < len - 2) {\n continue;\n } else if (isDefaultOverflowMode_1 && (j_1 < this.startIndex || j_1 > this.endIndex) && (i % 2 ? j_1 !== this.startIndex - 1 : true) && j_1 !== 0) {\n continue;\n }\n if (i % 2) {\n // separator item\n wrapDiv = this.createElement('div', {\n className: 'e-breadcrumb-item-wrapper'\n });\n if (this.separatorTemplate && this.separatorTemplate === '/' || isNullOrUndefined(this.separatorTemplate)) {\n listBaseOptions.template = initializeCSPTemplate(function () {\n return '/';\n });\n } else {\n listBaseOptions.template = this.separatorTemplate;\n }\n listBaseOptions.itemClass = 'e-breadcrumb-separator';\n isSingleLevel = false;\n item = [{\n previousItem: items[j_1],\n nextItem: items[j_1 + 1]\n }];\n } else {\n // list item\n listBaseOptions.itemClass = '';\n if (this.itemTemplate) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n listBaseOptions.template = this.itemTemplate;\n isSingleLevel = false;\n } else {\n isSingleLevel = true;\n }\n item = [extend({}, items[j_1].properties ? items[j_1].properties : items[j_1])];\n if (!item[0].url && !this.itemTemplate) {\n item = [extend({}, item[0], {\n isEmptyUrl: true,\n url: '#'\n })];\n }\n isLastItem = (isDefaultOverflowMode_1 || this.overflowMode === 'Menu') && j_1 === this.endIndex;\n if ((i === len - 1 || isLastItem) && !this.itemTemplate || isActiveItem) {\n item[0].isLastItem = true;\n }\n }\n var parent_1 = ol;\n var lastPopupItemIdx = this.startIndex + this.endIndex - this._maxItems;\n if (this.overflowMode === 'Menu' && (j_1 >= this.startIndex && j_1 <= lastPopupItemIdx && (i % 2 ? !(j_1 === lastPopupItemIdx) : true) && this.endIndex >= this._maxItems && this._maxItems > 0 || this._maxItems === 0)) {\n if (i % 2) {\n continue;\n } else {\n parent_1 = this.popupUl;\n if (isLastItem) {\n isLastItemInPopup_1 = true;\n }\n }\n } else if (this.overflowMode === 'Wrap') {\n if (i === 0) {\n parent_1 = firstOl;\n } else {\n parent_1 = wrapDiv;\n }\n }\n var li = ListBase.createList(this.createElement, item, listBaseOptions, isSingleLevel, this).childNodes;\n if (!isItemCancelled_1) {\n append(li, parent_1);\n } else if (isDefaultOverflowMode_1 || isCollasped || this.overflowMode === 'Menu' || this.overflowMode === 'Wrap') {\n items.splice(j_1, 1);\n this.initPvtProps();\n return this.reRenderItems();\n } else if (i === len - 1 || isLastItem) {\n remove(parent_1.lastElementChild);\n }\n if (this.overflowMode === 'Wrap' && i !== 0 && i % 2 === 0) {\n ol.appendChild(wrapDiv);\n }\n if (isCollasped && i === 1) {\n var li_1 = this.createElement('li', {\n className: 'e-icons e-breadcrumb-collapsed',\n attrs: {\n TABINDEX: '0'\n }\n });\n EventHandler.add(li_1, 'keyup', this.expandHandler, this);\n ol.appendChild(li_1);\n }\n if (this.overflowMode === 'Menu' && this.startIndex === i && this.endIndex >= this._maxItems && this._maxItems >= 0) {\n var menu = this.getMenuElement();\n EventHandler.add(menu, 'keyup', this.keyDownHandler, this);\n ol.appendChild(menu);\n }\n if (isActiveItem || isLastItem) {\n break;\n }\n if (isItemCancelled_1) {\n i++;\n }\n }\n if (this.isReact) {\n this.renderReactTemplates();\n setTimeout(function () {\n _this.calculateMaxItems();\n }, 5);\n }\n if (this.overflowMode === 'Wrap') {\n this.element.appendChild(firstOl);\n }\n this.element.appendChild(ol);\n if (!this.isReact) {\n this.calculateMaxItems();\n }\n }\n };\n Breadcrumb.prototype.calculateMaxItems = function () {\n if (this.overflowMode === 'Hidden' || this.overflowMode === 'Collapsed' || this.overflowMode === 'Menu') {\n var maxItems = void 0;\n var width = this.element.offsetWidth;\n var liElems = [].slice.call(this.element.children[0].children).reverse();\n var liWidth = this.overflowMode === 'Menu' ? 0 : liElems[liElems.length - 1].offsetWidth + (liElems[liElems.length - 2] ? liElems[liElems.length - 2].offsetWidth : 0);\n if (this.overflowMode === 'Menu') {\n var menuEle = this.getMenuElement();\n this.element.appendChild(menuEle);\n liWidth += menuEle.offsetWidth;\n remove(menuEle);\n }\n for (var i = 0; i < liElems.length - 2; i++) {\n if (liWidth > width) {\n maxItems = Math.ceil((i - 1) / 2) + (this.overflowMode === 'Menu' && i <= 2 ? 0 : 1);\n if ((this.maxItems > maxItems && !(this.maxItems > -1 && maxItems === -1) || this.maxItems === -1) && this._maxItems !== maxItems) {\n this._maxItems = maxItems;\n this.initPvtProps();\n return this.reRenderItems();\n } else {\n break;\n }\n } else {\n if (this.overflowMode === 'Menu' && i === 2) {\n liWidth += liElems[liElems.length - 1].offsetWidth + liElems[liElems.length - 2].offsetWidth;\n if (liWidth > width) {\n this._maxItems = 1;\n this.initPvtProps();\n return this.reRenderItems();\n }\n }\n if (!(this.overflowMode === 'Menu' && liElems[i].classList.contains(MENUCLASS))) {\n liWidth += liElems[i].offsetWidth;\n }\n }\n }\n } else if ((this.overflowMode === 'Wrap' || this.overflowMode === 'Scroll') && this._maxItems > 0) {\n var width = 0;\n var liElems = this.element.querySelectorAll(DOT + ITEMCLASS);\n if (liElems.length > this._maxItems + this._maxItems - 1) {\n for (var i = this.overflowMode === 'Wrap' ? 1 : 0; i < this._maxItems + this._maxItems - 1; i++) {\n width += liElems[i].offsetWidth;\n }\n width = width + 5 + parseInt(getComputedStyle(this.element.children[0]).paddingLeft, 10) * 2;\n if (this.overflowMode === 'Wrap') {\n this.element.querySelector('.e-breadcrumb-wrapped-ol').style.width = width + 'px';\n } else {\n this.element.style.width = width + 'px';\n }\n }\n }\n };\n Breadcrumb.prototype.hasField = function (items, field) {\n for (var i = 0, len = items.length; i < len; i++) {\n if (items[i][\"\" + field]) {\n return true;\n }\n }\n return false;\n };\n Breadcrumb.prototype.getMenuElement = function () {\n return this.createElement('li', {\n className: 'e-icons e-breadcrumb-menu',\n attrs: {\n TABINDEX: '0'\n }\n });\n };\n Breadcrumb.prototype.beforeItemRenderChanges = function (prevItem, currItem, elem, isRightIcon) {\n var wrapElem = elem.querySelector('.e-anchor-wrap');\n if (wrapElem) {\n wrapElem.parentElement.setAttribute('aria-label', 'home');\n }\n if (currItem.text !== prevItem.text && wrapElem) {\n wrapElem.childNodes.forEach(function (child) {\n if (child.nodeType === Node.TEXT_NODE) {\n child.textContent = currItem.text;\n }\n });\n }\n if (currItem.iconCss !== prevItem.iconCss && wrapElem) {\n // wrapElem - for checking it is item not a separator\n var iconElem = elem.querySelector(DOT + ICONCLASS);\n if (iconElem) {\n if (currItem.iconCss) {\n removeClass([iconElem], prevItem.iconCss.split(' '));\n addClass([iconElem], currItem.iconCss.split(' '));\n } else {\n remove(iconElem);\n }\n } else if (currItem.iconCss) {\n var iconElem_1 = this.createElement('span', {\n className: ICONCLASS + ' ' + currItem.iconCss\n });\n if (isRightIcon) {\n append([iconElem_1], wrapElem);\n } else {\n wrapElem.insertBefore(iconElem_1, wrapElem.childNodes[0]);\n }\n }\n }\n if (currItem.url !== prevItem.url && this.enableNavigation) {\n var anchor = elem.querySelector('a.' + ITEMTEXTCLASS);\n if (anchor) {\n if (currItem.url) {\n anchor.setAttribute('href', currItem.url);\n } else {\n anchor.removeAttribute('href');\n }\n }\n }\n };\n Breadcrumb.prototype.reRenderItems = function () {\n if (this.overflowMode === 'Menu' && this.popupObj && this.popupObj.element.classList.contains('e-popup-open') && this.popupObj.element.querySelector('.e-edit-template')) {\n this.popupObj.hide();\n this.popupObj.destroy();\n this.isPopupCreated = false;\n detach(this.popupObj.element);\n }\n this.element.innerHTML = '';\n this.renderItems(this.items);\n };\n Breadcrumb.prototype.clickHandler = function (e) {\n var li = closest(e.target, DOT + ITEMCLASS + ':not(.e-breadcrumb-separator)');\n if (!this.enableNavigation) {\n e.preventDefault();\n }\n if (li && (closest(e.target, DOT + ITEMTEXTCLASS) || this.itemTemplate)) {\n var idx = void 0;\n if (this.overflowMode === 'Wrap') {\n idx = [].slice.call(this.element.querySelectorAll(DOT + ITEMCLASS)).indexOf(li);\n } else {\n idx = [].slice.call(li.parentElement.children).indexOf(li);\n }\n if (this.overflowMode === 'Menu') {\n if (closest(e.target, DOT + POPUPCLASS)) {\n idx += this.startIndex;\n this.endIndex = idx;\n if (e.type === 'keydown') {\n this.documentClickHandler(e);\n }\n } else if (this.element.querySelector(DOT + MENUCLASS)) {\n if (idx > [].slice.call(this.element.children[0].children).indexOf(this.element.querySelector(DOT + MENUCLASS))) {\n idx += this.popupUl.childElementCount * 2 - 2;\n idx = Math.floor(idx / 2);\n this.endIndex = idx;\n } else {\n this.startIndex = this.endIndex = idx;\n }\n } else {\n idx = Math.floor(idx / 2);\n this.startIndex = this.endIndex = idx;\n }\n } else {\n idx = Math.floor(idx / 2);\n }\n if (this.overflowMode === 'Hidden' && this._maxItems > 0 && this.endIndex !== 0) {\n idx = parseInt(li.getAttribute('item-index'), 10);\n if (this.startIndex > 1) {\n this.startIndex -= this.endIndex - idx;\n }\n this.endIndex = idx;\n }\n var itemClickArgs = {\n element: li,\n item: this.items[idx],\n event: e,\n cancel: false\n };\n this.trigger('itemClick', itemClickArgs);\n if (itemClickArgs.cancel) {\n return;\n }\n if (this.items[idx]) {\n this.activeItem = this.items[idx].url || this.items[idx].text;\n }\n this.dataBind();\n }\n if (e.target.classList.contains('e-breadcrumb-collapsed')) {\n this.isExpanded = true;\n this.reRenderItems();\n }\n if (e.target.classList.contains(MENUCLASS) && !this.isPopupCreated) {\n this.renderPopup();\n }\n };\n Breadcrumb.prototype.renderPopup = function () {\n var _this = this;\n var wrapper = this.createElement('div', {\n className: POPUPCLASS + ' ' + this.cssClass + (this.enableRtl ? ' e-rtl' : '')\n });\n document.body.appendChild(wrapper);\n this.isPopupCreated = true;\n this.popupObj = new Popup(wrapper, {\n content: this.popupUl,\n relateTo: this.element.querySelector(DOT + MENUCLASS),\n enableRtl: this.enableRtl,\n position: {\n X: 'left',\n Y: 'bottom'\n },\n collision: {\n X: 'fit',\n Y: 'flip'\n },\n open: function () {\n if (_this.popupUl) {\n _this.popupUl.focus();\n }\n }\n });\n this.popupWireEvents();\n this.popupObj.show();\n };\n Breadcrumb.prototype.documentClickHandler = function (e) {\n if (this.overflowMode === 'Menu' && this.popupObj && this.popupObj.element.classList.contains('e-popup-open') && !closest(e.target, DOT + MENUCLASS) && !closest(e.target, DOT + 'e-edit-template')) {\n this.popupObj.hide();\n this.popupObj.destroy();\n this.isPopupCreated = false;\n detach(this.popupObj.element);\n }\n };\n Breadcrumb.prototype.resize = function () {\n this._maxItems = this.maxItems;\n this.initPvtProps();\n this.reRenderItems();\n };\n Breadcrumb.prototype.expandHandler = function (e) {\n if (e.key === 'Enter') {\n this.isExpanded = true;\n this.reRenderItems();\n }\n };\n Breadcrumb.prototype.keyDownHandler = function (e) {\n if (e.key === 'Enter') {\n this.clickHandler(e);\n }\n };\n Breadcrumb.prototype.popupKeyDownHandler = function (e) {\n if (e.key === 'Escape') {\n this.documentClickHandler(e);\n }\n };\n /**\n * Called internally if any of the property value changed.\n *\n * @private\n * @param {BreadcrumbModel} newProp - Specifies the new properties.\n * @param {BreadcrumbModel} oldProp - Specifies the old properties.\n * @returns {void}\n */\n Breadcrumb.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'items':\n case 'enableActiveItemNavigation':\n this.reRenderItems();\n break;\n case 'activeItem':\n this._maxItems = this.maxItems;\n this.initPvtProps();\n this.reRenderItems();\n break;\n case 'overflowMode':\n case 'maxItems':\n this._maxItems = this.maxItems;\n this.initPvtProps();\n this.reRenderItems();\n if (oldProp.overflowMode === 'Wrap') {\n this.element.classList.remove(WRAPMODECLASS);\n } else if (newProp.overflowMode === 'Wrap') {\n this.element.classList.add(WRAPMODECLASS);\n }\n if (oldProp.overflowMode === 'Scroll') {\n this.element.classList.remove(SCROLLMODECLASS);\n } else if (newProp.overflowMode === 'Scroll') {\n this.element.classList.add(SCROLLMODECLASS);\n }\n break;\n case 'url':\n this.initItems();\n this.reRenderItems();\n break;\n case 'cssClass':\n if (oldProp.cssClass) {\n removeClass([this.element], oldProp.cssClass.split(' '));\n }\n if (newProp.cssClass) {\n addClass([this.element], newProp.cssClass.replace(/\\s+/g, ' ').trim().split(' '));\n }\n if (oldProp.cssClass && oldProp.cssClass.indexOf(ICONRIGHT) > -1 && !(newProp.cssClass && newProp.cssClass.indexOf(ICONRIGHT) > -1) || !(oldProp.cssClass && oldProp.cssClass.indexOf(ICONRIGHT) > -1) && newProp.cssClass && newProp.cssClass.indexOf(ICONRIGHT) > -1) {\n this.reRenderItems();\n }\n break;\n case 'enableRtl':\n this.element.classList.toggle('e-rtl');\n break;\n case 'disabled':\n this.element.classList.toggle(DISABLEDCLASS);\n this.element.setAttribute(ARIADISABLED, newProp.disabled + '');\n break;\n }\n }\n };\n Breadcrumb.prototype.wireEvents = function () {\n this.delegateClickHanlder = this.documentClickHandler.bind(this);\n EventHandler.add(document, 'click', this.delegateClickHanlder, this);\n EventHandler.add(this.element, 'click', this.clickHandler, this);\n window.addEventListener('resize', this.resize.bind(this));\n };\n Breadcrumb.prototype.popupWireEvents = function () {\n EventHandler.add(this.popupObj.element, 'click', this.clickHandler, this);\n EventHandler.add(this.popupObj.element, 'keydown', this.popupKeyDownHandler, this);\n };\n Breadcrumb.prototype.unWireEvents = function () {\n EventHandler.remove(document, 'click', this.delegateClickHanlder);\n EventHandler.remove(this.element, 'click', this.clickHandler);\n window.removeEventListener('resize', this.resize.bind(this));\n if (this.popupObj) {\n EventHandler.remove(this.popupObj.element, 'click', this.clickHandler);\n EventHandler.remove(this.popupObj.element, 'keydown', this.popupKeyDownHandler);\n }\n };\n /**\n * Get the properties to be maintained in the persisted state.\n *\n * @returns {string} - Persist data\n */\n Breadcrumb.prototype.getPersistData = function () {\n return this.addOnPersist(['activeItem']);\n };\n /**\n * Get module name.\n *\n * @private\n * @returns {string} - Module Name\n */\n Breadcrumb.prototype.getModuleName = function () {\n return 'breadcrumb';\n };\n /**\n * Destroys the widget.\n *\n * @returns {void}\n */\n Breadcrumb.prototype.destroy = function () {\n var _this = this;\n var classes = [];\n var attributes = ['aria-label'];\n if (this.cssClass) {\n classes.concat(this.cssClass.split(' '));\n }\n if (this.enableRtl) {\n classes.push('e-rtl');\n }\n if (this.disabled) {\n classes.push(DISABLEDCLASS);\n attributes.push(ARIADISABLED);\n }\n if (this.overflowMode === 'Wrap') {\n classes.push(WRAPMODECLASS);\n } else if (this.overflowMode === 'Scroll') {\n classes.push(SCROLLMODECLASS);\n }\n this.unWireEvents();\n this.element.innerHTML = '';\n removeClass([this.element], classes);\n attributes.forEach(function (attribute) {\n _this.element.removeAttribute(attribute);\n });\n _super.prototype.destroy.call(this);\n };\n __decorate$a([Property('')], Breadcrumb.prototype, \"url\", void 0);\n __decorate$a([Collection([], BreadcrumbItem)], Breadcrumb.prototype, \"items\", void 0);\n __decorate$a([Property('')], Breadcrumb.prototype, \"activeItem\", void 0);\n __decorate$a([Property(-1)], Breadcrumb.prototype, \"maxItems\", void 0);\n __decorate$a([Property('Menu')], Breadcrumb.prototype, \"overflowMode\", void 0);\n __decorate$a([Property('')], Breadcrumb.prototype, \"cssClass\", void 0);\n __decorate$a([Property(null)], Breadcrumb.prototype, \"itemTemplate\", void 0);\n __decorate$a([Property('/')], Breadcrumb.prototype, \"separatorTemplate\", void 0);\n __decorate$a([Property(true)], Breadcrumb.prototype, \"enableNavigation\", void 0);\n __decorate$a([Property(false)], Breadcrumb.prototype, \"enableActiveItemNavigation\", void 0);\n __decorate$a([Property(false)], Breadcrumb.prototype, \"disabled\", void 0);\n __decorate$a([Property('')], Breadcrumb.prototype, \"locale\", void 0);\n __decorate$a([Event()], Breadcrumb.prototype, \"beforeItemRender\", void 0);\n __decorate$a([Event()], Breadcrumb.prototype, \"itemClick\", void 0);\n __decorate$a([Event()], Breadcrumb.prototype, \"created\", void 0);\n Breadcrumb = __decorate$a([NotifyPropertyChanges], Breadcrumb);\n return Breadcrumb;\n}(Component);\nvar __extends$b = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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};\n// Constant variables\nvar CLS_CAROUSEL = 'e-carousel';\nvar CLS_ACTIVE$2 = 'e-active';\nvar CLS_RTL$5 = 'e-rtl';\nvar CLS_PARTIAL = 'e-partial';\nvar CLS_SWIPE = 'e-swipe';\nvar CLS_SLIDE_CONTAINER = 'e-carousel-slide-container';\nvar CLS_ITEMS$2 = 'e-carousel-items';\nvar CLS_CLONED = 'e-cloned';\nvar CLS_ITEM$3 = 'e-carousel-item';\nvar CLS_PREVIOUS = 'e-previous';\nvar CLS_NEXT = 'e-next';\nvar CLS_PREV_ICON = 'e-previous-icon';\nvar CLS_NEXT_ICON = 'e-next-icon';\nvar CLS_NAVIGATORS = 'e-carousel-navigators';\nvar CLS_INDICATORS = 'e-carousel-indicators';\nvar CLS_INDICATOR_BARS = 'e-indicator-bars';\nvar CLS_INDICATOR_BAR = 'e-indicator-bar';\nvar CLS_INDICATOR$1 = 'e-indicator';\nvar CLS_ICON$1 = 'e-icons';\nvar CLS_PLAY_PAUSE = 'e-play-pause';\nvar CLS_PLAY_ICON = 'e-play-icon';\nvar CLS_PAUSE_ICON = 'e-pause-icon';\nvar CLS_PREV_BUTTON = 'e-previous-button';\nvar CLS_NEXT_BUTTON = 'e-next-button';\nvar CLS_PLAY_BUTTON = 'e-play-button';\nvar CLS_FLAT = 'e-flat';\nvar CLS_ROUND = 'e-round';\nvar CLS_HOVER_ARROWS = 'e-hover-arrows';\nvar CLS_HOVER = 'e-carousel-hover';\nvar CLS_TEMPLATE$2 = 'e-template';\nvar CLS_SLIDE_ANIMATION = 'e-carousel-slide-animation';\nvar CLS_FADE_ANIMATION = 'e-carousel-fade-animation';\nvar CLS_CUSTOM_ANIMATION = 'e-carousel-custom-animation';\nvar CLS_ANIMATION_NONE = 'e-carousel-animation-none';\nvar CLS_PREV_SLIDE = 'e-prev';\nvar CLS_NEXT_SLIDE = 'e-next';\nvar CLS_TRANSITION_START = 'e-transition-start';\nvar CLS_TRANSITION_END = 'e-transition-end';\n/**\n * Specifies the action (touch & mouse) which enables the slide swiping action in carousel.\n * * Touch - Enables or disables the swiping action in touch interaction.\n * * Mouse - Enables or disables the swiping action in mouse interaction.\n *\n * @aspNumberEnum\n */\nvar CarouselSwipeMode = /*#__PURE__*/function (CarouselSwipeMode) {\n /** Enables or disables the swiping action in touch interaction. */\n CarouselSwipeMode[CarouselSwipeMode[\"Touch\"] = 1] = \"Touch\";\n /** Enables or disables the swiping action in mouse interaction. */\n CarouselSwipeMode[CarouselSwipeMode[\"Mouse\"] = 2] = \"Mouse\";\n return CarouselSwipeMode;\n}(CarouselSwipeMode || {});\n/** Specifies the carousel individual item. */\nvar CarouselItem = /** @__PURE__ @class */function (_super) {\n __extends$b(CarouselItem, _super);\n function CarouselItem() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$b([Property()], CarouselItem.prototype, \"cssClass\", void 0);\n __decorate$b([Property()], CarouselItem.prototype, \"interval\", void 0);\n __decorate$b([Property()], CarouselItem.prototype, \"template\", void 0);\n __decorate$b([Property()], CarouselItem.prototype, \"htmlAttributes\", void 0);\n return CarouselItem;\n}(ChildProperty);\nvar Carousel = /** @__PURE__ @class */function (_super) {\n __extends$b(Carousel, _super);\n /**\n * Constructor for creating the Carousel widget\n *\n * @param {CarouselModel} options Accepts the carousel model properties to initiate the rendering\n * @param {string | HTMLElement} element Accepts the DOM element reference\n */\n function Carousel(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.isSwipe = false;\n return _this;\n }\n Carousel.prototype.getModuleName = function () {\n return CLS_CAROUSEL.replace('e-', '');\n };\n Carousel.prototype.getPersistData = function () {\n return this.addOnPersist(['selectedIndex']);\n };\n Carousel.prototype.preRender = function () {\n this.keyConfigs = {\n home: 'home',\n end: 'end',\n space: 'space',\n moveLeft: 'leftarrow',\n moveRight: 'rightarrow',\n moveUp: 'uparrow',\n moveDown: 'downarrow'\n };\n var defaultLocale = {\n nextSlide: 'Next slide',\n of: 'of',\n pauseSlideTransition: 'Pause slide transition',\n playSlideTransition: 'Play slide transition',\n previousSlide: 'Previous slide',\n slide: 'Slide',\n slideShow: 'Slide show'\n };\n this.localeObj = new L10n(this.getModuleName(), defaultLocale, this.locale);\n };\n Carousel.prototype.render = function () {\n this.initialize();\n this.renderSlides();\n this.renderNavigators();\n this.renderPlayButton();\n this.renderIndicators();\n this.applyAnimation();\n this.wireEvents();\n };\n Carousel.prototype.onPropertyChanged = function (newProp, oldProp) {\n var target;\n var rtlElement;\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'animationEffect':\n this.applyAnimation();\n break;\n case 'cssClass':\n classList(this.element, [newProp.cssClass], [oldProp.cssClass]);\n break;\n case 'selectedIndex':\n this.setActiveSlide(this.selectedIndex, oldProp.selectedIndex > this.selectedIndex ? 'Previous' : 'Next');\n this.autoSlide();\n break;\n case 'htmlAttributes':\n if (!isNullOrUndefined(this.htmlAttributes)) {\n this.setHtmlAttributes(this.htmlAttributes, this.element);\n }\n break;\n case 'enableTouchSwipe':\n if (!this.enableTouchSwipe && this.touchModule) {\n this.touchModule.destroy();\n }\n if (this.element.querySelector(\".\" + CLS_ITEMS$2)) {\n this.renderTouchActions();\n }\n break;\n case 'loop':\n if (this.loop && isNullOrUndefined(this.autoSlideInterval)) {\n this.applySlideInterval();\n }\n this.handleNavigatorsActions(this.selectedIndex);\n if (this.partialVisible || !(this.swipeMode === (~CarouselSwipeMode.Touch & ~CarouselSwipeMode.Mouse))) {\n this.reRenderSlides();\n }\n break;\n case 'enableRtl':\n rtlElement = [].slice.call(this.element.querySelectorAll(\".\" + CLS_PREV_BUTTON + \",\\n .\" + CLS_NEXT_BUTTON + \", .\" + CLS_PLAY_BUTTON));\n rtlElement.push(this.element);\n if (this.enableRtl) {\n addClass(rtlElement, CLS_RTL$5);\n } else {\n removeClass(rtlElement, CLS_RTL$5);\n }\n if (this.partialVisible || !(this.swipeMode === (~CarouselSwipeMode.Touch & ~CarouselSwipeMode.Mouse))) {\n var cloneCount = this.loop ? this.getNumOfItems() : 0;\n var slideWidth = this.itemsContainer.firstElementChild.clientWidth;\n this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + cloneCount);\n }\n break;\n case 'buttonsVisibility':\n target = this.element.querySelector(\".\" + CLS_NAVIGATORS);\n if (target) {\n switch (this.buttonsVisibility) {\n case 'Hidden':\n this.resetTemplates(['previousButtonTemplate', 'nextButtonTemplate']);\n remove(target);\n break;\n case 'VisibleOnHover':\n addClass([].slice.call(target.childNodes), CLS_HOVER_ARROWS);\n break;\n case 'Visible':\n removeClass([].slice.call(target.childNodes), CLS_HOVER_ARROWS);\n break;\n }\n } else {\n this.renderNavigators();\n this.renderPlayButton();\n }\n break;\n case 'width':\n setStyleAttribute(this.element, {\n 'width': formatUnit(this.width)\n });\n break;\n case 'height':\n setStyleAttribute(this.element, {\n 'height': formatUnit(this.height)\n });\n break;\n case 'autoPlay':\n if (this.showPlayButton && isNullOrUndefined(this.playButtonTemplate)) {\n this.playButtonClickHandler(null, true);\n }\n this.autoSlide();\n break;\n case 'interval':\n this.autoSlide();\n break;\n case 'showIndicators':\n case 'indicatorsType':\n target = this.element.querySelector(\".\" + CLS_INDICATORS);\n if (target) {\n this.resetTemplates(['indicatorsTemplate']);\n remove(target);\n }\n this.renderIndicators();\n break;\n case 'showPlayButton':\n target = this.element.querySelector(\".\" + CLS_PLAY_PAUSE);\n if (!this.showPlayButton && target) {\n remove(target);\n this.resetTemplates(['playButtonTemplate']);\n }\n this.renderPlayButton();\n break;\n case 'items':\n case 'dataSource':\n {\n var selectedData = prop === 'dataSource' ? this.dataSource : this.items;\n if (!isNullOrUndefined(selectedData) && selectedData.length > 0 && this.selectedIndex >= selectedData.length) {\n this.setActiveSlide(selectedData.length - 1, 'Previous');\n this.autoSlide();\n }\n this.reRenderSlides();\n this.reRenderIndicators();\n break;\n }\n case 'partialVisible':\n if (this.partialVisible) {\n addClass([this.element], CLS_PARTIAL);\n } else {\n removeClass([this.element], CLS_PARTIAL);\n }\n this.reRenderSlides();\n break;\n case 'swipeMode':\n EventHandler.remove(this.element, 'mousedown touchstart', this.swipeStart);\n EventHandler.remove(this.element, 'mousemove touchmove', this.swiping);\n EventHandler.remove(this.element, 'mouseup touchend', this.swipStop);\n this.swipeModehandlers();\n this.reRenderSlides();\n break;\n }\n }\n };\n Carousel.prototype.reRenderSlides = function () {\n var target = this.element.querySelector(\".\" + CLS_ITEMS$2);\n if (target) {\n this.resetTemplates(['itemTemplate']);\n remove(target);\n }\n this.renderSlides();\n };\n Carousel.prototype.reRenderIndicators = function () {\n var target = this.element.querySelector(\".\" + CLS_INDICATORS);\n if (target) {\n this.resetTemplates(['indicatorsTemplate']);\n remove(target);\n }\n this.renderIndicators();\n };\n Carousel.prototype.initialize = function () {\n var carouselClasses = [];\n carouselClasses.push(CLS_CAROUSEL);\n if (this.cssClass) {\n carouselClasses.push(this.cssClass);\n }\n if (this.enableRtl) {\n carouselClasses.push(CLS_RTL$5);\n }\n if (this.partialVisible) {\n carouselClasses.push(CLS_PARTIAL);\n }\n if (!(this.swipeMode === (~CarouselSwipeMode.Touch & ~CarouselSwipeMode.Mouse))) {\n carouselClasses.push(CLS_SWIPE);\n }\n addClass([this.element], carouselClasses);\n setStyleAttribute(this.element, {\n 'width': formatUnit(this.width),\n 'height': formatUnit(this.height)\n });\n attributes(this.element, {\n 'role': 'group',\n 'aria-roledescription': 'carousel',\n 'aria-label': this.localeObj.getConstant('slideShow')\n });\n if (!isNullOrUndefined(this.htmlAttributes)) {\n this.setHtmlAttributes(this.htmlAttributes, this.element);\n }\n };\n Carousel.prototype.renderSlides = function () {\n var _this = this;\n var slideContainer = this.element.querySelector('.' + CLS_SLIDE_CONTAINER);\n if (!slideContainer) {\n slideContainer = this.createElement('div', {\n className: CLS_SLIDE_CONTAINER,\n attrs: {\n 'tabindex': '0',\n 'role': 'tabpanel'\n }\n });\n this.element.appendChild(slideContainer);\n }\n this.itemsContainer = this.createElement('div', {\n className: CLS_ITEMS$2,\n attrs: {\n 'aria-live': this.autoPlay ? 'off' : 'polite'\n }\n });\n slideContainer.appendChild(this.itemsContainer);\n var numOfItems = this.getNumOfItems();\n if (numOfItems > 0 && this.loop) {\n if (this.items.length > 0) {\n this.items.slice(-numOfItems).forEach(function (item, index) {\n _this.renderSlide(item, item.template, index, _this.itemsContainer, true);\n });\n } else if (!isNullOrUndefined(this.dataSource) && this.dataSource.length > 0) {\n this.dataSource.slice(-numOfItems).forEach(function (item, index) {\n _this.renderSlide(item, _this.itemTemplate, index, _this.itemsContainer, true);\n });\n }\n }\n if (this.items.length > 0) {\n this.slideItems = this.items;\n this.items.forEach(function (item, index) {\n _this.renderSlide(item, item.template, index, _this.itemsContainer);\n });\n } else if (!isNullOrUndefined(this.dataSource) && this.dataSource.length > 0) {\n this.slideItems = this.dataSource;\n this.dataSource.forEach(function (item, index) {\n _this.renderSlide(item, _this.itemTemplate, index, _this.itemsContainer);\n });\n }\n if (numOfItems > 0 && this.loop) {\n if (this.items.length > 0) {\n this.items.slice(0, numOfItems).forEach(function (item, index) {\n _this.renderSlide(item, item.template, index, _this.itemsContainer, true);\n });\n } else if (!isNullOrUndefined(this.dataSource) && this.dataSource.length > 0) {\n this.dataSource.slice(0, numOfItems).forEach(function (item, index) {\n _this.renderSlide(item, _this.itemTemplate, index, _this.itemsContainer, true);\n });\n }\n }\n this.renderTemplates();\n this.itemsContainer.style.setProperty('--carousel-items-count', \"\" + this.itemsContainer.children.length);\n var slideWidth = isNullOrUndefined(this.itemsContainer.firstElementChild) ? 0 : this.itemsContainer.firstElementChild.clientWidth;\n this.itemsContainer.style.transitionProperty = 'none';\n var cloneCount = this.loop ? numOfItems : 0;\n this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + cloneCount);\n this.autoSlide();\n this.renderTouchActions();\n this.renderKeyboardActions();\n };\n Carousel.prototype.getTranslateX = function (slideWidth, count) {\n if (count === void 0) {\n count = 1;\n }\n return this.enableRtl ? \"translateX(\" + slideWidth * count + \"px)\" : \"translateX(\" + -slideWidth * count + \"px)\";\n };\n Carousel.prototype.renderSlide = function (item, itemTemplate, index, container, isClone) {\n if (isClone === void 0) {\n isClone = false;\n }\n var itemEle = this.createElement('div', {\n id: getUniqueID('carousel_item'),\n className: CLS_ITEM$3 + \" \" + (item.cssClass ? item.cssClass : '') + \" \" + (this.selectedIndex === index && !isClone ? CLS_ACTIVE$2 : ''),\n attrs: {\n 'aria-hidden': this.selectedIndex === index && !isClone ? 'false' : 'true',\n 'data-index': index.toString(),\n 'role': 'group',\n 'aria-roledescription': 'slide'\n }\n });\n if (isClone) {\n itemEle.classList.add(CLS_CLONED);\n }\n if (!isNullOrUndefined(item.htmlAttributes)) {\n this.setHtmlAttributes(item.htmlAttributes, itemEle);\n }\n var templateId = this.element.id + '_template';\n var template = this.templateParser(itemTemplate)(item, this, 'itemTemplate', templateId, false);\n append(template, itemEle);\n container.appendChild(itemEle);\n };\n Carousel.prototype.renderNavigators = function () {\n if (this.buttonsVisibility === 'Hidden') {\n return;\n }\n var navigators = this.createElement('div', {\n className: CLS_NAVIGATORS\n });\n var itemsContainer = this.element.querySelector(\".\" + CLS_SLIDE_CONTAINER);\n itemsContainer.insertAdjacentElement('afterend', navigators);\n if (!isNullOrUndefined(this.slideItems) && this.slideItems.length > 1) {\n this.renderNavigatorButton('Previous');\n this.renderNavigatorButton('Next');\n }\n this.renderTemplates();\n };\n Carousel.prototype.renderNavigatorButton = function (direction) {\n var buttonContainer = this.createElement('div', {\n className: (direction === 'Previous' ? CLS_PREVIOUS : CLS_NEXT) + ' ' + (this.buttonsVisibility === 'VisibleOnHover' ? CLS_HOVER_ARROWS : '')\n });\n if (direction === 'Previous' && this.previousButtonTemplate) {\n addClass([buttonContainer], CLS_TEMPLATE$2);\n var templateId = this.element.id + '_previousButtonTemplate';\n var template = this.templateParser(this.previousButtonTemplate)({\n type: 'Previous'\n }, this, 'previousButtonTemplate', templateId, false);\n append(template, buttonContainer);\n } else if (direction === 'Next' && this.nextButtonTemplate) {\n addClass([buttonContainer], CLS_TEMPLATE$2);\n var templateId = this.element.id + '_nextButtonTemplate';\n var template = this.templateParser(this.nextButtonTemplate)({\n type: 'Next'\n }, this, 'nextButtonTemplate', templateId, false);\n append(template, buttonContainer);\n } else {\n var button = this.createElement('button', {\n attrs: {\n 'aria-label': this.localeObj.getConstant(direction === 'Previous' ? 'previousSlide' : 'nextSlide'),\n 'type': 'button'\n }\n });\n var buttonObj = new Button({\n cssClass: CLS_FLAT + ' ' + CLS_ROUND + ' ' + (direction === 'Previous' ? CLS_PREV_BUTTON : CLS_NEXT_BUTTON),\n iconCss: CLS_ICON$1 + ' ' + (direction === 'Previous' ? CLS_PREV_ICON : CLS_NEXT_ICON),\n enableRtl: this.enableRtl,\n disabled: !this.loop && this.selectedIndex === (direction === 'Previous' ? 0 : this.slideItems.length - 1)\n });\n buttonObj.appendTo(button);\n buttonContainer.appendChild(button);\n }\n this.element.querySelector('.' + CLS_NAVIGATORS).appendChild(buttonContainer);\n EventHandler.add(buttonContainer, 'click', this.navigatorClickHandler, this);\n };\n Carousel.prototype.renderPlayButton = function () {\n if (isNullOrUndefined(this.slideItems) || this.buttonsVisibility === 'Hidden' || !this.showPlayButton || this.slideItems.length <= 1) {\n return;\n }\n var playPauseWrap = this.createElement('div', {\n className: CLS_PLAY_PAUSE + ' ' + (this.buttonsVisibility === 'VisibleOnHover' ? CLS_HOVER_ARROWS : '')\n });\n if (this.playButtonTemplate) {\n addClass([playPauseWrap], CLS_TEMPLATE$2);\n var templateId = this.element.id + '_playButtonTemplate';\n var template = this.templateParser(this.playButtonTemplate)({}, this, 'playButtonTemplate', templateId, false);\n append(template, playPauseWrap);\n } else {\n var playButton = this.createElement('button', {\n attrs: {\n 'aria-label': this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition'),\n 'type': 'button'\n }\n });\n var isLastSlide = this.selectedIndex === this.slideItems.length - 1 && !this.loop;\n var buttonObj = new Button({\n cssClass: CLS_FLAT + ' ' + CLS_ROUND + ' ' + CLS_PLAY_BUTTON,\n iconCss: CLS_ICON$1 + ' ' + (this.autoPlay && !isLastSlide ? CLS_PAUSE_ICON : CLS_PLAY_ICON),\n isToggle: true,\n enableRtl: this.enableRtl\n });\n if (isLastSlide) {\n this.setProperties({\n autoPlay: false\n }, true);\n playButton.setAttribute('aria-label', this.localeObj.getConstant('playSlideTransition'));\n this.itemsContainer.setAttribute('aria-live', 'polite');\n }\n buttonObj.appendTo(playButton);\n playPauseWrap.appendChild(playButton);\n }\n var navigators = this.element.querySelector(\".\" + CLS_NAVIGATORS);\n navigators.insertBefore(playPauseWrap, navigators.lastElementChild);\n this.renderTemplates();\n EventHandler.add(playPauseWrap, 'click', this.playButtonClickHandler, this);\n };\n Carousel.prototype.renderIndicators = function () {\n var _this = this;\n if (!this.showIndicators || isNullOrUndefined(this.indicatorsType)) {\n return;\n }\n var indicatorClass = 'e-default';\n if (!this.indicatorsTemplate) {\n indicatorClass = \"e-\" + this.indicatorsType.toLowerCase();\n }\n var indicatorWrap = this.createElement('div', {\n className: CLS_INDICATORS + \" \" + indicatorClass\n });\n var indicatorBars = this.createElement('div', {\n className: CLS_INDICATOR_BARS\n });\n indicatorWrap.appendChild(indicatorBars);\n var progress;\n if (this.slideItems) {\n switch (this.indicatorsType) {\n case 'Fraction':\n if (this.indicatorsTemplate) {\n this.renderIndicatorTemplate(indicatorBars, this.selectedIndex + 1);\n } else {\n indicatorBars.innerText = this.selectedIndex + 1 + \" / \" + this.slideItems.length;\n }\n break;\n case 'Progress':\n if (this.indicatorsTemplate) {\n this.renderIndicatorTemplate(indicatorBars, this.selectedIndex + 1);\n } else {\n progress = this.createElement('div', {\n className: CLS_INDICATOR_BAR\n });\n progress.style.setProperty('--carousel-items-current', \"\" + (this.selectedIndex + 1));\n progress.style.setProperty('--carousel-items-count', \"\" + this.slideItems.length);\n indicatorBars.appendChild(progress);\n }\n break;\n case 'Default':\n case 'Dynamic':\n this.slideItems.forEach(function (item, index) {\n var indicatorBar = _this.createElement('div', {\n className: CLS_INDICATOR_BAR + ' ' + (_this.selectedIndex === index ? CLS_ACTIVE$2 : _this.selectedIndex - 1 === index ? CLS_PREV_SLIDE : _this.selectedIndex + 1 === index ? CLS_NEXT_SLIDE : ''),\n attrs: {\n 'data-index': index.toString(),\n 'aria-current': _this.selectedIndex === index ? 'true' : 'false'\n }\n });\n indicatorBar.style.setProperty('--carousel-items-current', \"\" + _this.selectedIndex);\n if (_this.indicatorsTemplate) {\n _this.renderIndicatorTemplate(indicatorBar, index);\n } else if (_this.indicatorsType === 'Default') {\n var indicator = _this.createElement('button', {\n className: CLS_INDICATOR$1,\n attrs: {\n 'type': 'button',\n 'aria-label': _this.localeObj.getConstant('slide') + ' ' + (index + 1) + ' ' + _this.localeObj.getConstant('of') + ' ' + _this.slideItems.length\n }\n });\n indicatorBar.appendChild(indicator);\n indicator.appendChild(_this.createElement('div', {}));\n var buttonObj = new Button({\n cssClass: 'e-flat e-small'\n });\n buttonObj.appendTo(indicator);\n }\n indicatorBars.appendChild(indicatorBar);\n if (_this.indicatorsType === 'Default') {\n EventHandler.add(indicatorBar, 'click', _this.indicatorClickHandler, _this);\n }\n });\n break;\n }\n }\n this.element.appendChild(indicatorWrap);\n };\n Carousel.prototype.renderIndicatorTemplate = function (indicatorBar, index) {\n if (index === void 0) {\n index = 0;\n }\n addClass([indicatorBar], CLS_TEMPLATE$2);\n var templateId = this.element.id + '_indicatorsTemplate';\n var template = this.templateParser(this.indicatorsTemplate)({\n index: index,\n selectedIndex: this.selectedIndex\n }, this, 'indicatorsTemplate', templateId, false);\n append(template, indicatorBar);\n };\n Carousel.prototype.renderKeyboardActions = function () {\n this.keyModule = new KeyboardEvents(this.element, {\n keyAction: this.keyHandler.bind(this),\n keyConfigs: this.keyConfigs\n });\n };\n Carousel.prototype.renderTouchActions = function () {\n if (!this.enableTouchSwipe) {\n return;\n }\n this.touchModule = new Touch(this.element, {\n swipe: this.swipeHandler.bind(this)\n });\n };\n Carousel.prototype.applyAnimation = function () {\n removeClass([this.element], [CLS_CUSTOM_ANIMATION, CLS_FADE_ANIMATION, CLS_SLIDE_ANIMATION, CLS_ANIMATION_NONE]);\n switch (this.animationEffect) {\n case 'Slide':\n addClass([this.element], CLS_SLIDE_ANIMATION);\n break;\n case 'Fade':\n addClass([this.element], CLS_FADE_ANIMATION);\n break;\n case 'None':\n addClass([this.element], CLS_ANIMATION_NONE);\n break;\n case 'Custom':\n addClass([this.element], CLS_CUSTOM_ANIMATION);\n break;\n }\n };\n Carousel.prototype.autoSlide = function () {\n if (isNullOrUndefined(this.slideItems) || this.slideItems.length <= 1) {\n return;\n }\n this.resetSlideInterval();\n this.applySlideInterval();\n };\n Carousel.prototype.autoSlideChange = function () {\n var activeSlide = this.element.querySelector(\".\" + CLS_ACTIVE$2);\n if (isNullOrUndefined(activeSlide)) {\n return;\n }\n var activeIndex = parseInt(activeSlide.dataset.index, 10);\n if (!this.loop && activeIndex === this.slideItems.length - 1) {\n this.resetSlideInterval();\n } else {\n var index = (activeIndex + 1) % this.slideItems.length;\n if (!this.element.classList.contains(CLS_HOVER)) {\n this.setActiveSlide(index, 'Next');\n }\n this.autoSlide();\n }\n };\n Carousel.prototype.applySlideInterval = function () {\n var _this = this;\n if (!this.autoPlay || this.element.classList.contains(CLS_HOVER)) {\n return;\n }\n var itemInterval = this.interval;\n if (this.items.length > 0 && !isNullOrUndefined(this.items[this.selectedIndex || 0].interval)) {\n itemInterval = this.items[this.selectedIndex || 0].interval;\n }\n this.autoSlideInterval = setInterval(function () {\n return _this.autoSlideChange();\n }, itemInterval);\n };\n Carousel.prototype.resetSlideInterval = function () {\n clearInterval(this.autoSlideInterval);\n this.autoSlideInterval = null;\n };\n Carousel.prototype.getSlideIndex = function (direction) {\n var currentIndex = this.selectedIndex || 0;\n if (direction === 'Previous') {\n currentIndex--;\n if (currentIndex < 0) {\n currentIndex = this.slideItems.length - 1;\n }\n } else {\n currentIndex++;\n if (currentIndex === this.slideItems.length) {\n currentIndex = 0;\n }\n }\n return currentIndex;\n };\n Carousel.prototype.setActiveSlide = function (currentIndex, direction, isSwiped) {\n var _this = this;\n if (isSwiped === void 0) {\n isSwiped = false;\n }\n if (this.element.querySelectorAll(\".\" + CLS_ITEM$3 + \".\" + CLS_PREV_SLIDE + \",.\" + CLS_ITEM$3 + \".\" + CLS_NEXT_SLIDE).length > 0) {\n return;\n }\n currentIndex = isNullOrUndefined(currentIndex) ? 0 : currentIndex;\n var allSlides = [].slice.call(this.element.querySelectorAll(\".\" + CLS_ITEM$3 + \":not(.e-cloned)\"));\n var activeSlide = this.element.querySelector(\".\" + CLS_ITEM$3 + \".\" + CLS_ACTIVE$2);\n if (isNullOrUndefined(activeSlide) && this.showIndicators) {\n var activeIndicator = this.element.querySelector(\".\" + CLS_INDICATOR_BAR + \".\" + CLS_ACTIVE$2);\n var activeIndex_1 = parseInt(activeIndicator.dataset.index, 10);\n addClass([allSlides[parseInt(activeIndex_1.toString(), 10)]], CLS_ACTIVE$2);\n return;\n } else if (isNullOrUndefined(activeSlide)) {\n addClass([allSlides[parseInt(currentIndex.toString(), 10)]], CLS_ACTIVE$2);\n return;\n }\n var activeIndex = parseInt(activeSlide.dataset.index, 10);\n var currentSlide = allSlides[parseInt(currentIndex.toString(), 10)];\n var eventArgs = {\n currentIndex: activeIndex,\n nextIndex: currentIndex,\n currentSlide: activeSlide,\n nextSlide: currentSlide,\n slideDirection: direction,\n isSwiped: isSwiped,\n cancel: false\n };\n this.trigger('slideChanging', eventArgs, function (args) {\n if (args.cancel) {\n return;\n }\n _this.setProperties({\n selectedIndex: currentIndex\n }, true);\n attributes(args.currentSlide, {\n 'aria-hidden': 'true'\n });\n attributes(args.nextSlide, {\n 'aria-hidden': 'false'\n });\n _this.refreshIndicators(activeIndex, currentIndex);\n _this.slideChangedEventArgs = {\n currentIndex: args.nextIndex,\n previousIndex: args.currentIndex,\n currentSlide: args.nextSlide,\n previousSlide: args.currentSlide,\n slideDirection: direction,\n isSwiped: isSwiped\n };\n var slideWidth = allSlides[parseInt(currentIndex.toString(), 10)].clientWidth;\n var numOfItems = _this.getNumOfItems();\n if (!_this.isSwipe) {\n _this.itemsContainer.style.transitionDuration = '0.6s';\n }\n _this.isSwipe = false;\n if (_this.animationEffect === 'Fade') {\n _this.itemsContainer.classList.add('e-fade-in-out');\n } else {\n _this.itemsContainer.style.transitionProperty = 'transform';\n }\n if (_this.loop) {\n if (_this.slideChangedEventArgs.currentIndex === 0 && _this.slideChangedEventArgs.slideDirection === 'Next') {\n _this.itemsContainer.style.transform = _this.getTranslateX(slideWidth, allSlides.length + numOfItems);\n } else if (_this.slideChangedEventArgs.currentIndex === _this.slideItems.length - 1 && _this.slideChangedEventArgs.slideDirection === 'Previous') {\n _this.itemsContainer.style.transform = _this.partialVisible ? _this.getTranslateX(slideWidth) : 'translateX(0px)';\n } else {\n _this.itemsContainer.style.transform = _this.getTranslateX(slideWidth, currentIndex + numOfItems);\n }\n } else {\n _this.itemsContainer.style.transform = _this.getTranslateX(slideWidth, currentIndex);\n }\n if (_this.animationEffect === 'Slide') {\n if (direction === 'Previous') {\n addClass([args.nextSlide], CLS_PREV_SLIDE);\n args.nextSlide.setAttribute('data-slide-height', args.nextSlide.offsetHeight.toString());\n addClass([args.currentSlide, args.nextSlide], CLS_TRANSITION_END);\n } else {\n addClass([args.nextSlide], CLS_NEXT_SLIDE);\n args.nextSlide.setAttribute('data-slide-height', args.nextSlide.offsetHeight.toString());\n addClass([args.currentSlide, args.nextSlide], CLS_TRANSITION_START);\n }\n } else if (_this.animationEffect === 'Fade') {\n removeClass([args.currentSlide], CLS_ACTIVE$2);\n addClass([args.nextSlide], CLS_ACTIVE$2);\n } else if (_this.animationEffect === 'Custom') {\n if (direction === 'Previous') {\n addClass([args.nextSlide], CLS_NEXT_SLIDE);\n addClass([args.currentSlide], CLS_PREV_SLIDE);\n } else {\n addClass([args.currentSlide], CLS_PREV_SLIDE);\n addClass([args.nextSlide], CLS_NEXT_SLIDE);\n }\n } else {\n _this.onTransitionEnd();\n }\n _this.handleNavigatorsActions(currentIndex);\n });\n };\n Carousel.prototype.onTransitionEnd = function () {\n var _this = this;\n removeClass(this.element.querySelectorAll(\".\" + CLS_ITEMS$2), 'e-fade-in-out');\n var numOfItems = this.getNumOfItems();\n if (this.slideChangedEventArgs) {\n this.itemsContainer.style.transitionProperty = 'none';\n if (this.loop && (this.slideChangedEventArgs.currentIndex === 0 && this.slideChangedEventArgs.slideDirection === 'Next' || this.slideChangedEventArgs.currentIndex === this.slideItems.length - 1 && this.slideChangedEventArgs.slideDirection === 'Previous')) {\n var slideWidth = this.slideChangedEventArgs.currentSlide.clientWidth;\n this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.slideChangedEventArgs.currentIndex + numOfItems);\n }\n addClass([this.slideChangedEventArgs.currentSlide], CLS_ACTIVE$2);\n removeClass([this.slideChangedEventArgs.previousSlide], CLS_ACTIVE$2);\n this.trigger('slideChanged', this.slideChangedEventArgs, function () {\n removeClass(_this.element.querySelectorAll(\".\" + CLS_ITEM$3), [CLS_PREV_SLIDE, CLS_NEXT_SLIDE, CLS_TRANSITION_START, CLS_TRANSITION_END]);\n _this.slideChangedEventArgs = null;\n });\n }\n };\n Carousel.prototype.refreshIndicators = function (activeIndex, currentIndex) {\n var _this = this;\n var slideIndicator = this.element.querySelector(\".\" + CLS_INDICATOR_BARS);\n if (isNullOrUndefined(slideIndicator)) {\n return;\n }\n var indicators = [].slice.call(slideIndicator.childNodes);\n switch (this.indicatorsType) {\n case 'Default':\n case 'Dynamic':\n attributes(indicators[parseInt(activeIndex.toString(), 10)], {\n 'aria-current': 'false'\n });\n attributes(indicators[parseInt(currentIndex.toString(), 10)], {\n 'aria-current': 'true'\n });\n removeClass(indicators, [CLS_ACTIVE$2, CLS_PREV_SLIDE, CLS_NEXT_SLIDE]);\n addClass([indicators[parseInt(currentIndex.toString(), 10)]], CLS_ACTIVE$2);\n if (indicators[currentIndex - 1]) {\n addClass([indicators[currentIndex - 1]], CLS_PREV_SLIDE);\n }\n if (indicators[currentIndex + 1]) {\n addClass([indicators[currentIndex + 1]], CLS_NEXT_SLIDE);\n }\n indicators.forEach(function (item) {\n return item.style.setProperty('--carousel-items-current', \"\" + _this.selectedIndex);\n });\n break;\n case 'Fraction':\n if (this.indicatorsTemplate) {\n if (slideIndicator.children.length > 0) {\n slideIndicator.removeChild(slideIndicator.firstElementChild);\n }\n this.renderIndicatorTemplate(slideIndicator, currentIndex + 1);\n } else {\n slideIndicator.innerText = this.selectedIndex + 1 + \" / \" + this.slideItems.length;\n }\n break;\n case 'Progress':\n if (this.indicatorsTemplate) {\n if (slideIndicator.children.length > 0) {\n slideIndicator.removeChild(slideIndicator.firstElementChild);\n }\n this.renderIndicatorTemplate(slideIndicator, currentIndex + 1);\n } else {\n slideIndicator.firstElementChild.style.setProperty('--carousel-items-current', \"\" + (this.selectedIndex + 1));\n }\n break;\n }\n };\n Carousel.prototype.setHtmlAttributes = function (attribute, element) {\n var keys = Object.keys(attribute);\n for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {\n var key = keys_1[_i];\n if (key === 'class') {\n addClass([element], attribute[\"\" + key]);\n } else {\n element.setAttribute(key, attribute[\"\" + key]);\n }\n }\n };\n Carousel.prototype.templateParser = function (template) {\n if (template) {\n try {\n if (typeof template !== 'function' && document.querySelectorAll(template).length) {\n return compile(document.querySelector(template).innerHTML.trim());\n } else {\n return compile(template);\n }\n } catch (error) {\n return compile(template);\n }\n }\n return undefined;\n };\n Carousel.prototype.getNavigatorState = function (target, isPrevious) {\n var button = target.querySelector(\".\" + (isPrevious ? CLS_PREV_BUTTON : CLS_NEXT_BUTTON));\n if (button) {\n var buttonObj = getInstance(button, Button);\n return buttonObj.disabled;\n }\n return false;\n };\n Carousel.prototype.navigatorClickHandler = function (e) {\n var target = e.currentTarget;\n var isDisabled = this.getNavigatorState(target, target.classList.contains(CLS_PREVIOUS));\n if (isDisabled) {\n return;\n }\n var direction = target.classList.contains(CLS_PREVIOUS) ? 'Previous' : 'Next';\n this.setActiveSlide(this.getSlideIndex(direction), direction);\n this.autoSlide();\n };\n Carousel.prototype.indicatorClickHandler = function (e) {\n var target = closest(e.target, \".\" + CLS_INDICATOR_BAR);\n var index = parseInt(target.dataset.index, 10);\n if (this.selectedIndex !== index) {\n this.setActiveSlide(index, this.selectedIndex > index ? 'Previous' : 'Next');\n this.autoSlide();\n }\n };\n Carousel.prototype.playButtonClickHandler = function (e, isPropertyChange) {\n if (isPropertyChange === void 0) {\n isPropertyChange = false;\n }\n var playButton = this.element.querySelector(\".\" + CLS_PLAY_BUTTON);\n if (playButton) {\n var buttonObj = getInstance(playButton, Button);\n if (!isPropertyChange) {\n this.setProperties({\n autoPlay: !this.autoPlay\n }, true);\n }\n playButton.setAttribute('aria-label', this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition'));\n buttonObj.iconCss = CLS_ICON$1 + ' ' + (this.autoPlay ? CLS_PAUSE_ICON : CLS_PLAY_ICON);\n buttonObj.dataBind();\n this.itemsContainer.setAttribute('aria-live', this.autoPlay ? 'off' : 'polite');\n if (this.autoPlay && !this.loop && this.selectedIndex === this.slideItems.length - 1) {\n this.setActiveSlide(0, 'Next');\n }\n this.autoSlide();\n }\n };\n Carousel.prototype.keyHandler = function (e) {\n var direction;\n var slideIndex;\n var isSlideTransition = false;\n var target = e.target;\n e.preventDefault();\n switch (e.action) {\n case 'space':\n if (this.showIndicators && target.classList.contains(CLS_INDICATOR$1)) {\n target.click();\n } else if (target.classList.contains(CLS_CAROUSEL) || target.classList.contains(CLS_PLAY_BUTTON)) {\n this.playButtonClickHandler(e);\n } else if (target.classList.contains(CLS_NEXT_BUTTON)) {\n this.next();\n } else if (target.classList.contains(CLS_PREV_BUTTON)) {\n this.prev();\n }\n break;\n case 'end':\n slideIndex = this.slideItems.length - 1;\n direction = 'Next';\n isSlideTransition = true;\n break;\n case 'home':\n slideIndex = 0;\n direction = 'Previous';\n isSlideTransition = true;\n break;\n case 'moveUp':\n case 'moveLeft':\n case 'moveDown':\n case 'moveRight':\n if (this.showIndicators && isNullOrUndefined(this.indicatorsTemplate)) {\n this.element.focus();\n }\n direction = e.action === 'moveUp' || e.action === 'moveLeft' ? 'Previous' : 'Next';\n slideIndex = this.getSlideIndex(direction);\n isSlideTransition = !this.isSuspendSlideTransition(slideIndex, direction);\n break;\n }\n if (isSlideTransition) {\n this.setActiveSlide(slideIndex, direction);\n this.autoSlide();\n isSlideTransition = false;\n }\n };\n Carousel.prototype.swipeHandler = function (e) {\n if (this.element.classList.contains(CLS_HOVER) || isNullOrUndefined(this.slideItems) || this.slideItems.length <= 1) {\n return;\n }\n var direction = e.swipeDirection === 'Right' ? 'Previous' : 'Next';\n var slideIndex = this.getSlideIndex(direction);\n if (!this.isSuspendSlideTransition(slideIndex, direction)) {\n this.setActiveSlide(slideIndex, direction, true);\n this.autoSlide();\n }\n };\n Carousel.prototype.isSuspendSlideTransition = function (index, direction) {\n return !this.loop && (direction === 'Next' && index === 0 || direction === 'Previous' && index === this.slideItems.length - 1);\n };\n Carousel.prototype.handleNavigatorsActions = function (index) {\n if (this.buttonsVisibility === 'Hidden') {\n return;\n }\n if (this.showPlayButton) {\n var playButton = this.element.querySelector(\".\" + CLS_PLAY_BUTTON);\n var isLastSlide = this.selectedIndex === this.slideItems.length - 1 && !this.loop;\n var isButtonUpdate = isNullOrUndefined(this.playButtonTemplate) && playButton && isLastSlide;\n if (isNullOrUndefined(this.playButtonTemplate) && playButton && !isLastSlide) {\n isButtonUpdate = !playButton.classList.contains(CLS_ACTIVE$2);\n }\n if (isButtonUpdate) {\n this.setProperties({\n autoPlay: !isLastSlide\n }, true);\n playButton.setAttribute('aria-label', this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition'));\n this.itemsContainer.setAttribute('aria-live', this.autoPlay ? 'off' : 'polite');\n var buttonObj = getInstance(playButton, Button);\n buttonObj.iconCss = CLS_ICON$1 + ' ' + (this.autoPlay ? CLS_PAUSE_ICON : CLS_PLAY_ICON);\n buttonObj.dataBind();\n }\n }\n var prevButton = this.element.querySelector(\".\" + CLS_PREV_BUTTON);\n if (prevButton && isNullOrUndefined(this.previousButtonTemplate)) {\n var buttonObj = getInstance(prevButton, Button);\n buttonObj.disabled = !this.loop && index === 0;\n buttonObj.dataBind();\n }\n var nextButton = this.element.querySelector(\".\" + CLS_NEXT_BUTTON);\n if (nextButton && isNullOrUndefined(this.nextButtonTemplate)) {\n var buttonObj = getInstance(nextButton, Button);\n buttonObj.disabled = !this.loop && index === this.slideItems.length - 1;\n buttonObj.dataBind();\n }\n };\n Carousel.prototype.onHoverActions = function (e) {\n var navigator = this.element.querySelector(\".\" + CLS_NAVIGATORS);\n switch (e.type) {\n case 'mouseenter':\n if (this.buttonsVisibility === 'VisibleOnHover' && navigator) {\n removeClass([].slice.call(navigator.childNodes), CLS_HOVER_ARROWS);\n }\n if (this.pauseOnHover) {\n addClass([this.element], CLS_HOVER);\n }\n break;\n case 'mouseleave':\n if (this.buttonsVisibility === 'VisibleOnHover' && navigator) {\n addClass([].slice.call(navigator.childNodes), CLS_HOVER_ARROWS);\n }\n removeClass([this.element], CLS_HOVER);\n break;\n }\n this.autoSlide();\n };\n Carousel.prototype.onFocusActions = function (e) {\n switch (e.type) {\n case 'focusin':\n addClass([this.element], CLS_HOVER);\n break;\n case 'focusout':\n removeClass([this.element], CLS_HOVER);\n break;\n }\n this.autoSlide();\n };\n Carousel.prototype.destroyButtons = function () {\n var buttonCollections = [].slice.call(this.element.querySelectorAll('.e-control.e-btn'));\n for (var _i = 0, buttonCollections_1 = buttonCollections; _i < buttonCollections_1.length; _i++) {\n var button = buttonCollections_1[_i];\n var instance = getInstance(button, Button);\n if (instance) {\n instance.destroy();\n }\n }\n };\n Carousel.prototype.getNumOfItems = function () {\n return this.partialVisible ? 2 : 1;\n };\n Carousel.prototype.getTranslateValue = function (element) {\n var style = getComputedStyle(element);\n return window.WebKitCSSMatrix ? new WebKitCSSMatrix(style.webkitTransform).m41 : 0;\n };\n Carousel.prototype.swipeStart = function (e) {\n if (!this.timeStampStart) {\n this.timeStampStart = Date.now();\n }\n this.isSwipe = false;\n this.itemsContainer.classList.add('e-swipe-start');\n this.prevPageX = e.touches ? e.touches[0].pageX : e.pageX;\n this.initialTranslate = this.getTranslateValue(this.itemsContainer);\n };\n Carousel.prototype.swiping = function (e) {\n if (!this.itemsContainer.classList.contains('e-swipe-start')) {\n return;\n }\n e.preventDefault();\n var pageX = e.touches ? e.touches[0].pageX : e.pageX;\n var positionDiff = this.prevPageX - pageX;\n if (!this.loop && (this.enableRtl && (this.selectedIndex === 0 && positionDiff > 0 || this.selectedIndex === this.itemsContainer.childElementCount - 1 && positionDiff < 0) || !this.enableRtl && (this.selectedIndex === 0 && positionDiff < 0 || this.selectedIndex === this.itemsContainer.childElementCount - 1 && positionDiff > 0))) {\n return;\n }\n this.itemsContainer.style.transform = \"translateX(\" + (this.initialTranslate + (this.enableRtl ? positionDiff : -positionDiff)) + \"px)\";\n };\n Carousel.prototype.swipStop = function () {\n this.isSwipe = true;\n var time = Date.now() - this.timeStampStart;\n var distanceX = this.getTranslateValue(this.itemsContainer) - this.initialTranslate;\n distanceX = distanceX < 0 ? distanceX * -1 : distanceX;\n if (this.isSwipe) {\n var offsetDist = distanceX * (Browser.isDevice ? 6 : 1.66);\n this.itemsContainer.style.transitionDuration = (Browser.isDevice ? distanceX : offsetDist) / time / 10 + 's';\n }\n var slideWidth = this.itemsContainer.firstElementChild.clientWidth;\n var threshold = slideWidth / 2;\n this.itemsContainer.classList.remove('e-swipe-start');\n var value = this.getTranslateValue(this.itemsContainer);\n if (value - this.initialTranslate < -threshold) {\n this.swipeNavigation(!this.enableRtl);\n } else if (value - this.initialTranslate > threshold) {\n this.swipeNavigation(this.enableRtl);\n } else {\n this.itemsContainer.style.transform = \"translateX(\" + this.initialTranslate + \"px)\";\n if (this.animationEffect === 'Fade') {\n this.itemsContainer.classList.add('e-fade-in-out');\n }\n }\n };\n Carousel.prototype.swipeNavigation = function (isRtl) {\n if (isRtl) {\n this.next();\n } else {\n this.prev();\n }\n };\n Carousel.prototype.swipeModehandlers = function () {\n if ((this.swipeMode & CarouselSwipeMode.Touch) === CarouselSwipeMode.Touch) {\n EventHandler.add(this.itemsContainer, 'touchstart', this.swipeStart, this);\n EventHandler.add(this.itemsContainer, 'touchmove', this.swiping, this);\n EventHandler.add(this.itemsContainer, 'touchend', this.swipStop, this);\n }\n if ((this.swipeMode & CarouselSwipeMode.Mouse) === CarouselSwipeMode.Mouse) {\n EventHandler.add(this.itemsContainer, 'mousedown', this.swipeStart, this);\n EventHandler.add(this.itemsContainer, 'mousemove', this.swiping, this);\n EventHandler.add(this.itemsContainer, 'mouseup', this.swipStop, this);\n }\n if (this.swipeMode === 0 && (this.swipeMode & CarouselSwipeMode.Mouse & CarouselSwipeMode.Touch) === (CarouselSwipeMode.Mouse & CarouselSwipeMode.Touch)) {\n EventHandler.add(this.itemsContainer, 'mousedown touchstart', this.swipeStart, this);\n EventHandler.add(this.itemsContainer, 'mousemove touchmove', this.swiping, this);\n EventHandler.add(this.itemsContainer, 'mouseup touchend', this.swipStop, this);\n }\n };\n Carousel.prototype.resizeHandler = function () {\n if (this.itemsContainer && this.itemsContainer.firstElementChild) {\n var numOfItems = this.getNumOfItems();\n var slideWidth = this.itemsContainer.firstElementChild.clientWidth;\n if (this.loop) {\n this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + numOfItems);\n } else {\n this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex);\n }\n }\n };\n Carousel.prototype.wireEvents = function () {\n if (!(this.animationEffect === 'Custom')) {\n this.swipeModehandlers();\n }\n EventHandler.add(this.element, 'focusin focusout', this.onFocusActions, this);\n EventHandler.add(this.element, 'mouseenter mouseleave', this.onHoverActions, this);\n EventHandler.add(this.element.firstElementChild, 'animationend', this.onTransitionEnd, this);\n EventHandler.add(this.element.firstElementChild, 'transitionend', this.onTransitionEnd, this);\n EventHandler.add(window, 'resize', this.resizeHandler, this);\n };\n Carousel.prototype.unWireEvents = function () {\n var _this = this;\n var indicators = [].slice.call(this.element.querySelectorAll(\".\" + CLS_INDICATOR_BAR));\n indicators.forEach(function (indicator) {\n EventHandler.remove(indicator, 'click', _this.indicatorClickHandler);\n });\n var navigators = [].slice.call(this.element.querySelectorAll(\".\" + CLS_PREVIOUS + \",.\" + CLS_NEXT));\n navigators.forEach(function (navigator) {\n EventHandler.remove(navigator, 'click', _this.navigatorClickHandler);\n });\n var playIcon = this.element.querySelector(\".\" + CLS_PLAY_PAUSE);\n if (playIcon) {\n EventHandler.remove(playIcon, 'click', this.playButtonClickHandler);\n }\n EventHandler.remove(this.element.firstElementChild, 'animationend', this.onTransitionEnd);\n EventHandler.remove(this.element.firstElementChild, 'transitionend', this.onTransitionEnd);\n EventHandler.clearEvents(this.element);\n EventHandler.clearEvents(this.itemsContainer);\n EventHandler.remove(window, 'resize', this.resizeHandler);\n };\n /**\n * Method to transit from the current slide to the previous slide.\n *\n * @returns {void}\n */\n Carousel.prototype.prev = function () {\n if (!this.loop && this.selectedIndex === 0) {\n return;\n }\n var index = this.selectedIndex === 0 ? this.slideItems.length - 1 : this.selectedIndex - 1;\n this.setActiveSlide(index, 'Previous');\n this.autoSlide();\n };\n /**\n * Method to transit from the current slide to the next slide.\n *\n * @returns {void}\n */\n Carousel.prototype.next = function () {\n if (!this.loop && this.selectedIndex === this.slideItems.length - 1) {\n return;\n }\n var index = this.selectedIndex === this.slideItems.length - 1 ? 0 : this.selectedIndex + 1;\n this.setActiveSlide(index, 'Next');\n this.autoSlide();\n };\n /**\n * Method to play the slides programmatically.\n *\n * @returns {void}\n */\n Carousel.prototype.play = function () {\n var playIcon = this.element.querySelector(\".\" + CLS_PLAY_ICON);\n if (this.showPlayButton && playIcon) {\n classList(playIcon, [CLS_PAUSE_ICON], [CLS_PLAY_ICON]);\n var playButton = this.element.querySelector(\".\" + CLS_PLAY_BUTTON);\n playButton.setAttribute('aria-label', this.localeObj.getConstant('pauseSlideTransition'));\n }\n this.setProperties({\n autoPlay: true\n }, true);\n this.itemsContainer.setAttribute('aria-live', 'off');\n this.applySlideInterval();\n };\n /**\n * Method to pause the slides programmatically.\n *\n * @returns {void}\n */\n Carousel.prototype.pause = function () {\n var pauseIcon = this.element.querySelector(\".\" + CLS_PAUSE_ICON);\n if (this.showPlayButton && pauseIcon) {\n var playButton = this.element.querySelector(\".\" + CLS_PLAY_BUTTON);\n playButton.setAttribute('aria-label', this.localeObj.getConstant('playSlideTransition'));\n classList(pauseIcon, [CLS_PLAY_ICON], [CLS_PAUSE_ICON]);\n }\n this.setProperties({\n autoPlay: false\n }, true);\n this.itemsContainer.setAttribute('aria-live', 'off');\n this.resetSlideInterval();\n };\n /**\n * Method to render react and angular templates\n *\n * @returns {void}\n * @private\n */\n Carousel.prototype.renderTemplates = function () {\n if (this.isAngular || this.isReact) {\n this.renderReactTemplates();\n }\n };\n /**\n * Method to reset react and angular templates\n *\n * @param {string[]} templates Accepts the template ID\n * @returns {void}\n * @private\n */\n Carousel.prototype.resetTemplates = function (templates) {\n if (this.isAngular || this.isReact) {\n this.clearTemplate(templates);\n }\n };\n /**\n * Method for destroy the carousel component.\n *\n * @returns {void}\n */\n Carousel.prototype.destroy = function () {\n var _this = this;\n this.resetTemplates();\n if (this.touchModule) {\n this.touchModule.destroy();\n this.touchModule = null;\n }\n this.keyModule.destroy();\n this.keyModule = null;\n this.resetSlideInterval();\n this.destroyButtons();\n this.unWireEvents();\n [].slice.call(this.element.children).forEach(function (ele) {\n _this.element.removeChild(ele);\n });\n removeClass([this.element], [CLS_CAROUSEL, this.cssClass, CLS_RTL$5, CLS_SWIPE]);\n ['role', 'style'].forEach(function (attr) {\n _this.element.removeAttribute(attr);\n });\n this.itemsContainer = null;\n _super.prototype.destroy.call(this);\n };\n __decorate$b([Collection([], CarouselItem)], Carousel.prototype, \"items\", void 0);\n __decorate$b([Property('Slide')], Carousel.prototype, \"animationEffect\", void 0);\n __decorate$b([Property()], Carousel.prototype, \"previousButtonTemplate\", void 0);\n __decorate$b([Property()], Carousel.prototype, \"nextButtonTemplate\", void 0);\n __decorate$b([Property()], Carousel.prototype, \"indicatorsTemplate\", void 0);\n __decorate$b([Property()], Carousel.prototype, \"playButtonTemplate\", void 0);\n __decorate$b([Property()], Carousel.prototype, \"cssClass\", void 0);\n __decorate$b([Property([])], Carousel.prototype, \"dataSource\", void 0);\n __decorate$b([Property()], Carousel.prototype, \"itemTemplate\", void 0);\n __decorate$b([Property(0)], Carousel.prototype, \"selectedIndex\", void 0);\n __decorate$b([Property('100%')], Carousel.prototype, \"width\", void 0);\n __decorate$b([Property('100%')], Carousel.prototype, \"height\", void 0);\n __decorate$b([Property(5000)], Carousel.prototype, \"interval\", void 0);\n __decorate$b([Property(true)], Carousel.prototype, \"autoPlay\", void 0);\n __decorate$b([Property(true)], Carousel.prototype, \"pauseOnHover\", void 0);\n __decorate$b([Property(true)], Carousel.prototype, \"loop\", void 0);\n __decorate$b([Property(false)], Carousel.prototype, \"showPlayButton\", void 0);\n __decorate$b([Property(true)], Carousel.prototype, \"enableTouchSwipe\", void 0);\n __decorate$b([Property(true)], Carousel.prototype, \"showIndicators\", void 0);\n __decorate$b([Property('Default')], Carousel.prototype, \"indicatorsType\", void 0);\n __decorate$b([Property('Visible')], Carousel.prototype, \"buttonsVisibility\", void 0);\n __decorate$b([Property(false)], Carousel.prototype, \"partialVisible\", void 0);\n __decorate$b([Property(CarouselSwipeMode.Touch)], Carousel.prototype, \"swipeMode\", void 0);\n __decorate$b([Property()], Carousel.prototype, \"htmlAttributes\", void 0);\n __decorate$b([Event()], Carousel.prototype, \"slideChanging\", void 0);\n __decorate$b([Event()], Carousel.prototype, \"slideChanged\", void 0);\n Carousel = __decorate$b([NotifyPropertyChanges], Carousel);\n return Carousel;\n}(Component);\nvar __extends$c = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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};\n// Constant variables\nvar CLS_APPBAR = 'e-appbar';\nvar CLS_HORIZONTAL_BOTTOM = 'e-horizontal-bottom';\nvar CLS_STICKY = 'e-sticky';\nvar CLS_PROMINENT = 'e-prominent';\nvar CLS_DENSE = 'e-dense';\nvar CLS_RTL$6 = 'e-rtl';\nvar CLS_LIGHT = 'e-light';\nvar CLS_DARK = 'e-dark';\nvar CLS_PRIMARY = 'e-primary';\nvar CLS_INHERIT = 'e-inherit';\n/**\n * The AppBar displays the information and actions related to the current application screen. It is used to show branding, screen titles, navigation, and actions.\n * Support to inherit colors from AppBar provided to Button, DropDownButton, Menu and TextBox.\n * Set CssClass property with e-inherit CSS class to inherit the background and color from AppBar.\n */\nvar AppBar = /** @__PURE__ @class */function (_super) {\n __extends$c(AppBar, _super);\n /**\n * Constructor for creating the AppBar widget\n *\n * @param {AppBarModel} options Accepts the AppBar model properties to initiate the rendering\n * @param {string | HTMLElement} element Accepts the DOM element reference\n */\n function AppBar(options, element) {\n return _super.call(this, options, element) || this;\n }\n /**\n * Removes the control from the DOM and also removes all its related events.\n *\n * @returns {void}\n */\n AppBar.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n this.element.classList.remove(CLS_APPBAR);\n this.element.removeAttribute('style');\n this.element.removeAttribute('role');\n };\n AppBar.prototype.getModuleName = function () {\n return 'appbar';\n };\n AppBar.prototype.getPersistData = function () {\n return this.addOnPersist([]);\n };\n AppBar.prototype.preRender = function () {\n // pre render code\n };\n AppBar.prototype.render = function () {\n this.element.classList.add(CLS_APPBAR);\n if (this.element.tagName !== 'HEADER') {\n this.element.setAttribute('role', 'banner');\n }\n if (this.cssClass) {\n addClass([this.element], this.cssClass.split(' '));\n }\n if (this.position === 'Bottom') {\n this.element.classList.add(CLS_HORIZONTAL_BOTTOM);\n }\n if (this.isSticky) {\n this.element.classList.add(CLS_STICKY);\n }\n if (this.enableRtl) {\n this.element.classList.add(CLS_RTL$6);\n }\n this.setHeightMode();\n this.setColorMode();\n if (!isNullOrUndefined(this.htmlAttributes)) {\n this.setHtmlAttributes(this.htmlAttributes, this.element);\n }\n };\n AppBar.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'mode':\n removeClass([this.element], [CLS_DENSE, CLS_PROMINENT]);\n this.setHeightMode();\n break;\n case 'position':\n if (this.position === 'Bottom') {\n addClass([this.element], CLS_HORIZONTAL_BOTTOM);\n } else {\n removeClass([this.element], CLS_HORIZONTAL_BOTTOM);\n }\n break;\n case 'cssClass':\n if (oldProp.cssClass) {\n removeClass([this.element], oldProp.cssClass.split(' '));\n }\n if (newProp.cssClass) {\n addClass([this.element], newProp.cssClass.split(' '));\n }\n break;\n case 'isSticky':\n if (this.isSticky) {\n addClass([this.element], CLS_STICKY);\n } else {\n removeClass([this.element], CLS_STICKY);\n }\n break;\n case 'htmlAttributes':\n if (!isNullOrUndefined(this.htmlAttributes)) {\n if (!isNullOrUndefined(oldProp.htmlAttributes)) {\n var keys = Object.keys(oldProp.htmlAttributes);\n for (var _b = 0, keys_1 = keys; _b < keys_1.length; _b++) {\n var key = keys_1[_b];\n if (key === 'class') {\n removeClass([this.element], oldProp.htmlAttributes[\"\" + key]);\n } else {\n this.element.removeAttribute(key);\n }\n }\n }\n this.setHtmlAttributes(newProp.htmlAttributes, this.element);\n }\n break;\n case 'colorMode':\n removeClass([this.element], [CLS_DARK, CLS_PRIMARY, CLS_INHERIT, CLS_LIGHT]);\n this.setColorMode();\n break;\n case 'enableRtl':\n if (this.enableRtl) {\n addClass([this.element], CLS_RTL$6);\n } else {\n removeClass([this.element], CLS_RTL$6);\n }\n break;\n }\n }\n };\n AppBar.prototype.setHtmlAttributes = function (attribute, element) {\n var keys = Object.keys(attribute);\n for (var _i = 0, keys_2 = keys; _i < keys_2.length; _i++) {\n var key = keys_2[_i];\n if (key === 'class') {\n addClass([element], attribute[\"\" + key]);\n } else {\n element.setAttribute(key, attribute[\"\" + key]);\n }\n }\n };\n AppBar.prototype.setHeightMode = function () {\n if (this.mode === 'Prominent') {\n this.element.classList.add(CLS_PROMINENT);\n } else if (this.mode === 'Dense') {\n this.element.classList.add(CLS_DENSE);\n }\n };\n AppBar.prototype.setColorMode = function () {\n switch (this.colorMode) {\n case 'Light':\n this.element.classList.add(CLS_LIGHT);\n break;\n case 'Dark':\n this.element.classList.add(CLS_DARK);\n break;\n case 'Primary':\n this.element.classList.add(CLS_PRIMARY);\n break;\n case 'Inherit':\n this.element.classList.add(CLS_INHERIT);\n break;\n }\n };\n __decorate$c([Property('Regular')], AppBar.prototype, \"mode\", void 0);\n __decorate$c([Property('Top')], AppBar.prototype, \"position\", void 0);\n __decorate$c([Property()], AppBar.prototype, \"cssClass\", void 0);\n __decorate$c([Property(false)], AppBar.prototype, \"isSticky\", void 0);\n __decorate$c([Property()], AppBar.prototype, \"htmlAttributes\", void 0);\n __decorate$c([Property('Light')], AppBar.prototype, \"colorMode\", void 0);\n __decorate$c([Event()], AppBar.prototype, \"created\", void 0);\n __decorate$c([Event()], AppBar.prototype, \"destroyed\", void 0);\n AppBar = __decorate$c([NotifyPropertyChanges], AppBar);\n return AppBar;\n}(Component);\nvar __extends$d = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 PROGRESSVALUE = '--progress-value';\n/**\n * Defines the status of the step.\n */\nvar StepStatus = /*#__PURE__*/function (StepStatus) {\n /**\n * Shows the status of the step is not started.\n */\n StepStatus[\"NotStarted\"] = \"NotStarted\";\n /**\n * Shows the step is in progress.\n */\n StepStatus[\"InProgress\"] = \"InProgress\";\n /**\n * Shows the status of the step is completed.\n */\n StepStatus[\"Completed\"] = \"Completed\";\n return StepStatus;\n}(StepStatus || {});\n/**\n * Specifies the steps of the Stepper.\n */\nvar Step = /** @__PURE__ @class */function (_super) {\n __extends$d(Step, _super);\n function Step() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$d([Property('')], Step.prototype, \"cssClass\", void 0);\n __decorate$d([Property(false)], Step.prototype, \"disabled\", void 0);\n __decorate$d([Property('')], Step.prototype, \"iconCss\", void 0);\n __decorate$d([Property(null)], Step.prototype, \"isValid\", void 0);\n __decorate$d([Property('')], Step.prototype, \"label\", void 0);\n __decorate$d([Property(false)], Step.prototype, \"optional\", void 0);\n __decorate$d([Property(StepStatus.NotStarted)], Step.prototype, \"status\", void 0);\n __decorate$d([Property('')], Step.prototype, \"text\", void 0);\n return Step;\n}(ChildProperty);\n/**\n * Defines the orientation type of the Stepper.\n */\nvar StepperOrientation = /*#__PURE__*/function (StepperOrientation) {\n /**\n * Steps are displayed horizontally.\n */\n StepperOrientation[\"Horizontal\"] = \"Horizontal\";\n /**\n * Steps are displayed vertically.\n */\n StepperOrientation[\"Vertical\"] = \"Vertical\";\n return StepperOrientation;\n}(StepperOrientation || {});\n/**\n * StepperBase component act as base class to the stepper component.\n */\nvar StepperBase = /** @__PURE__ @class */function (_super) {\n __extends$d(StepperBase, _super);\n /**\n * * Constructor for Base class\n *\n * @param {StepperBaseModel} options - Specifies the Base model.\n * @param {string | HTMLElement} element - Specifies the element to render as component.\n * @private\n */\n function StepperBase(options, element) {\n return _super.call(this, options, element) || this;\n }\n /**\n * This method is abstract member of the Component.\n *\n * @private\n * @returns {void}\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n StepperBase.prototype.preRender = function () {};\n /**\n * This method is abstract member of the Component.\n *\n * @private\n * @returns {string} - It returns the current module name.\n */\n StepperBase.prototype.getModuleName = function () {\n return 'stepperBase';\n };\n /**\n * This method is abstract member of the Component.\n *\n * @private\n * @returns {string} - It returns the persisted data.\n */\n StepperBase.prototype.getPersistData = function () {\n return this.addOnPersist([]);\n };\n /**\n * This method is abstract member of the Component.\n *\n * @private\n * @returns {void}\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n StepperBase.prototype.render = function () {};\n StepperBase.prototype.updateOrientaion = function (wrapper) {\n if (wrapper.classList.contains('e-horizontal') || wrapper.classList.contains('e-vertical')) {\n wrapper.classList.remove('e-horizontal', 'e-vertical');\n }\n if (!isNullOrUndefined(this.orientation)) {\n wrapper.classList.add('e-' + this.orientation.toLocaleLowerCase());\n }\n };\n StepperBase.prototype.renderProgressBar = function (wrapper) {\n this.progressStep = this.createElement('div', {\n className: 'e-stepper-progressbar'\n });\n this.progressbar = this.createElement('div', {\n className: 'e-progressbar-value'\n });\n this.progressStep.appendChild(this.progressbar);\n wrapper.prepend(this.progressStep);\n this.progressbar.style.setProperty(PROGRESSVALUE, 0 + '%');\n var beforeLabel = wrapper.querySelector('li').querySelector('.e-step-label-container');\n if (wrapper.classList.contains('e-vertical')) {\n if (wrapper.classList.contains('e-label-bottom') || wrapper.classList.contains('e-label-top')) {\n var stepsContainer = wrapper.querySelector('.e-stepper-steps');\n this.progressStep.style.setProperty('--progress-position', stepsContainer.offsetWidth / 2 + 'px');\n } else {\n this.progressStep.style.setProperty('--progress-position', this.progressBarPosition / 2 - 1 + 'px');\n }\n }\n if (beforeLabel && beforeLabel.classList.contains('e-label-before')) {\n this.progressStep.style.setProperty('--progress-position', this.progressBarPosition - 1 + 5 + 'px');\n }\n if (wrapper.classList.contains('e-horizontal')) {\n this.setProgressPosition(wrapper);\n }\n };\n StepperBase.prototype.setProgressPosition = function (wrapper, isResize) {\n var stepItemContainer = wrapper.querySelector('.e-step-container');\n var stepItemEle = stepItemContainer.firstElementChild;\n if (isResize !== true) {\n var topPos = 0;\n if (wrapper.classList.contains('e-label-before')) {\n topPos = stepItemContainer.offsetParent.offsetHeight - stepItemEle.offsetHeight / 2 - 1;\n } else {\n topPos = stepItemEle.offsetHeight / 2;\n }\n this.progressStep.style.setProperty('--progress-top-position', topPos + 'px');\n }\n var lastEle = wrapper.querySelector('.e-stepper-steps').lastChild.firstChild;\n if (wrapper.classList.contains('e-rtl')) {\n var leftPost = stepItemEle.offsetLeft + stepItemEle.offsetWidth - wrapper.querySelector('.e-stepper-steps').offsetWidth;\n this.progressStep.style.setProperty('--progress-left-position', Math.abs(leftPost) + 'px');\n this.progressStep.style.setProperty('--progress-bar-width', Math.abs(lastEle.offsetLeft - stepItemEle.offsetLeft) + 'px');\n } else {\n this.progressStep.style.setProperty('--progress-left-position', stepItemEle.offsetLeft + 1 + 'px');\n this.progressStep.style.setProperty('--progress-bar-width', lastEle.offsetWidth + lastEle.offsetLeft - 2 - (stepItemEle.offsetLeft + 2) + 'px');\n }\n };\n /**\n * This method is abstract member of the Component.\n *\n * @param {StepperBaseModel} newProp - Specifies new properties\n * @param {StepperBaseModel} oldProp - Specifies old properties\n * @private\n * @returns {void}\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars\n StepperBase.prototype.onPropertyChanged = function (newProp, oldProp) {};\n __decorate$d([Collection([], Step)], StepperBase.prototype, \"steps\", void 0);\n __decorate$d([Property('')], StepperBase.prototype, \"cssClass\", void 0);\n __decorate$d([Property(false)], StepperBase.prototype, \"readOnly\", void 0);\n __decorate$d([Property(StepperOrientation.Horizontal)], StepperBase.prototype, \"orientation\", void 0);\n __decorate$d([Event()], StepperBase.prototype, \"created\", void 0);\n StepperBase = __decorate$d([NotifyPropertyChanges], StepperBase);\n return StepperBase;\n}(Component);\nvar __extends$e = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 ITEMCONTAINER = 'e-step-container';\nvar ITEMLIST = 'e-stepper-steps';\nvar ICONCSS = 'e-indicator';\nvar TEXTCSS = 'e-step-text-container';\nvar STEPLABEL = 'e-step-label-container';\nvar OPTIONAL = 'e-step-label-optional';\nvar SELECTED$2 = 'e-step-selected';\nvar INPROGRESS = 'e-step-inprogress';\nvar NOTSTARTED = 'e-step-notstarted';\nvar FOCUS$1 = 'e-step-focus';\nvar COMPLETED = 'e-step-completed';\nvar DISABLED$2 = 'e-step-disabled';\nvar READONLY = 'e-stepper-readonly';\nvar PROGRESSVALUE$1 = '--progress-value';\nvar RTL$3 = 'e-rtl';\nvar TEMPLATE = 'e-step-template';\nvar LABELAFTER = 'e-label-after';\nvar LABELBEFORE = 'e-label-before';\nvar VERTICALSTEP = 'e-vertical';\nvar HORIZSTEP = 'e-horizontal';\nvar STEPICON = 'e-step-item';\nvar STEPTEXT = 'e-step-text';\nvar TEXT = 'e-text';\nvar STEPSLABEL = 'e-step-label';\nvar LABEL = 'e-label';\nvar STEPINDICATOR = 'e-step-type-indicator';\nvar LABELINDICATOR = 'e-step-type-label';\nvar INDICATORICON = 'e-step-indicator';\nvar STEPPERTOOLTIP = 'e-stepper-tooltip';\nvar STEPPERIPROGRESSTIP = 'e-step-inprogress-tip';\nvar LINEARSTEP = 'e-linear';\nvar PREVSTEP = 'e-previous';\nvar NEXTSTEP = 'e-next';\n/**\n * Defines the step progress animation of the Stepper.\n */\nvar StepperAnimationSettings = /** @__PURE__ @class */function (_super) {\n __extends$e(StepperAnimationSettings, _super);\n function StepperAnimationSettings() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate$e([Property(true)], StepperAnimationSettings.prototype, \"enable\", void 0);\n __decorate$e([Property(2000)], StepperAnimationSettings.prototype, \"duration\", void 0);\n __decorate$e([Property(0)], StepperAnimationSettings.prototype, \"delay\", void 0);\n return StepperAnimationSettings;\n}(ChildProperty);\n/**\n * Defines the label position in the Stepper.\n */\nvar StepLabelPosition = /*#__PURE__*/function (StepLabelPosition) {\n /**\n * Displays the label on top position regardless of the Stepper's orientation.\n */\n StepLabelPosition[\"Top\"] = \"Top\";\n /**\n * Displays the label on bottom position regardless of the Stepper's orientation.\n */\n StepLabelPosition[\"Bottom\"] = \"Bottom\";\n /**\n * Displays the label on left side regardless of the Stepper's orientation.\n */\n StepLabelPosition[\"Start\"] = \"Start\";\n /**\n * Displays the label on right side regardless of the Stepper's orientation.\n */\n StepLabelPosition[\"End\"] = \"End\";\n return StepLabelPosition;\n}(StepLabelPosition || {});\n/**\n * Defines whether steps are display with only indicator, only labels or combination of both.\n */\nvar StepType = /*#__PURE__*/function (StepType) {\n /**\n * Steps are shown indicator with label defined.\n */\n StepType[\"Default\"] = \"Default\";\n /**\n * Steps are shown with only label.\n */\n StepType[\"Label\"] = \"Label\";\n /**\n * Steps are shown with only indicator.\n */\n StepType[\"Indicator\"] = \"Indicator\";\n return StepType;\n}(StepType || {});\n/**\n * The Stepper component visualizes several steps and indicates the current progress by highlighting already completed steps.\n *\n * ```html\n * \n * ```\n * ```typescript\n * \n * ```\n */\nvar Stepper = /** @__PURE__ @class */function (_super) {\n __extends$e(Stepper, _super);\n /**\n * * Constructor for creating the Stepper component.\n *\n * @param {StepperModel} options - Specifies the Stepper model.\n * @param {string | HTMLElement} element - Specifies the element to render as component.\n * @private\n */\n function Stepper(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.stepperItemElements = [];\n return _this;\n }\n Stepper.prototype.preRender = function () {\n if (!this.element.id) {\n this.element.id = getUniqueID('e-' + this.getModuleName());\n }\n var localeText = {\n optional: 'Optional'\n };\n this.l10n = new L10n('stepper', localeText, this.locale);\n this.keyConfigs = {\n downarrow: 'downarrow',\n leftarrow: 'leftarrow',\n rightarrow: 'rightarrow',\n uparrow: 'uparrow',\n space: 'space',\n enter: 'enter',\n home: 'home',\n end: 'end',\n tab: 'tab',\n shiftTab: 'shift+tab',\n escape: 'escape'\n };\n this.tooltipOpen = false;\n };\n /**\n * To get component name.\n *\n * @returns {string} - It returns the current module name.\n * @private\n */\n Stepper.prototype.getModuleName = function () {\n return 'stepper';\n };\n Stepper.prototype.render = function () {\n this.initialize();\n this.navigationHandler(this.activeStep, null, false);\n this.updateStepperStatus(true);\n };\n Stepper.prototype.initialize = function () {\n var _this = this;\n this.element.setAttribute('aria-label', this.element.id);\n this.updatePosition();\n this.stepperItemList = this.createElement('ol', {\n className: ITEMLIST\n });\n this.updateOrientaion(this.element);\n this.updateStepType();\n this.element.appendChild(this.stepperItemList);\n if (this.cssClass) {\n addClass([this.element], this.cssClass.trim().split(' '));\n }\n if (this.readOnly) {\n this.element.classList.add(READONLY);\n }\n if (this.enableRtl) {\n this.element.classList.add(RTL$3);\n }\n this.wireEvents();\n this.updateTemplateFunction();\n this.renderItems();\n if (this.steps.length > 0) {\n if (this.steps.length > 1) {\n if (this.isAngular && this.template) {\n setTimeout(function () {\n _this.renderProgressBar(_this.element);\n });\n } else {\n this.renderProgressBar(this.element);\n }\n }\n this.checkValidStep();\n this.updateAnimation();\n this.updateTooltip();\n this.wireKeyboardEvent();\n }\n };\n Stepper.prototype.updatePosition = function () {\n this.progressBarPosition = this.beforeLabelWidth = this.textEleWidth = 0;\n };\n Stepper.prototype.renderDefault = function (index) {\n return !this.steps[parseInt(index.toString(), 10)].iconCss && !this.steps[parseInt(index.toString(), 10)].text && !this.steps[parseInt(index.toString(), 10)].label ? true : false;\n };\n Stepper.prototype.updateAnimation = function () {\n var progressEle = this.element.querySelector('.e-progressbar-value');\n if (this.animation.enable) {\n if (this.animation.duration >= 0) {\n if (progressEle) {\n progressEle.style.setProperty('--duration', this.animation.duration + 'ms');\n }\n }\n if (this.animation.delay >= 0) {\n if (progressEle) {\n progressEle.style.setProperty('--delay', this.animation.delay + 'ms');\n }\n }\n } else {\n if (progressEle) {\n progressEle.style.setProperty('--delay', 0 + 'ms');\n progressEle.style.setProperty('--duration', 0 + 'ms');\n }\n }\n };\n Stepper.prototype.updateStepType = function () {\n if (!isNullOrUndefined(this.stepType) && (this.stepType.toLowerCase() === 'indicator' || this.stepType.toLowerCase() === 'label' || this.stepType.toLowerCase() === 'default')) {\n if (this.stepType.toLowerCase() !== 'default') {\n this.element.classList.add('e-step-type-' + this.stepType.toLowerCase());\n }\n if ((this.stepType.toLowerCase() === 'indicator' || 'label') && this.labelContainer) {\n this.clearLabelPosition();\n }\n }\n };\n Stepper.prototype.wireEvents = function () {\n EventHandler.add(window, 'resize', this.updateResize, this);\n EventHandler.add(window, 'click', this.updateStepFocus, this);\n };\n Stepper.prototype.unWireEvents = function () {\n EventHandler.remove(window, 'resize', this.updateResize);\n EventHandler.remove(window, 'click', this.updateStepFocus);\n };\n Stepper.prototype.updateResize = function () {\n if (this.stepperItemList && this.progressbar && this.element.classList.contains(HORIZSTEP)) {\n this.setProgressPosition(this.element, true);\n }\n this.navigateToStep(this.activeStep, null, null, false, false);\n };\n Stepper.prototype.updateStepFocus = function () {\n if (this.isKeyNavFocus) {\n this.isKeyNavFocus = false;\n var isFocus = this.element.querySelector('.' + FOCUS$1);\n if (isFocus) {\n isFocus.classList.remove(FOCUS$1);\n this.element.classList.remove('e-steps-focus');\n }\n }\n };\n Stepper.prototype.updateStepperStatus = function (isInitial) {\n for (var index = 0; index < this.steps.length; index++) {\n var item = this.steps[parseInt(index.toString(), 10)];\n var status_1 = item.status.toLowerCase();\n if (isInitial && this.activeStep === 0 && index === 0) {\n var prevOnChange = this.isProtectedOnChange;\n this.isProtectedOnChange = true;\n item.status = StepStatus.InProgress;\n this.isProtectedOnChange = prevOnChange;\n }\n if (item && status_1 !== 'notstarted' && index === this.activeStep) {\n for (var i = 0; i < this.steps.length; i++) {\n var itemElement = this.stepperItemElements[parseInt(i.toString(), 10)];\n itemElement.classList.remove(SELECTED$2, INPROGRESS, COMPLETED, NOTSTARTED);\n var prevOnChange = this.isProtectedOnChange;\n this.isProtectedOnChange = true;\n if (status_1 === 'completed') {\n this.updateStatusClass(i, index, itemElement);\n } else {\n this.updateStatusClass(i, index, itemElement, true);\n }\n this.isProtectedOnChange = prevOnChange;\n }\n } else if (item && status_1 !== 'notstarted' && index !== this.activeStep) {\n this.navigationHandler(this.activeStep, null, true);\n }\n }\n };\n Stepper.prototype.updateStatusClass = function (currentStep, index, ele, isInprogress) {\n var stepItem = this.steps[parseInt(currentStep.toString(), 10)];\n if (currentStep < index) {\n ele.classList.add(COMPLETED);\n stepItem.status = StepStatus.Completed;\n } else if (currentStep === index) {\n ele.classList.add(isInprogress ? INPROGRESS : COMPLETED, SELECTED$2);\n } else {\n ele.classList.add(NOTSTARTED);\n }\n };\n Stepper.prototype.renderItems = function () {\n var _this = this;\n for (var index = 0; index < this.steps.length; index++) {\n this.stepperItemContainer = this.createElement('li', {\n className: ITEMCONTAINER\n });\n this.stepperItemContainer.classList[index === 0 ? 'add' : 'remove'](SELECTED$2, INPROGRESS);\n this.stepperItemContainer.classList[index !== 0 ? 'add' : 'remove'](NOTSTARTED);\n if (this.element.classList.contains(HORIZSTEP)) {\n this.stepperItemContainer.style.setProperty('--max-width', 100 / this.steps.length + '%');\n }\n var stepSpan = this.createElement('span', {\n className: 'e-step'\n });\n var item = this.steps[parseInt(index.toString(), 10)];\n var isItemLabel = item.label ? true : false;\n var isItemText = item.text ? true : false;\n if (this.renderDefault(index) && (isNullOrUndefined(this.template) || this.template === '')) {\n var isIndicator = !this.element.classList.contains('e-step-type-default') && this.stepType.toLowerCase() === 'indicator' ? true : false;\n if (isIndicator) {\n stepSpan.classList.add('e-icons', INDICATORICON);\n }\n if (!isIndicator && item.isValid == null) {\n stepSpan.classList.add('e-step-content');\n stepSpan.innerHTML = (index + 1).toString();\n }\n this.stepperItemContainer.appendChild(stepSpan);\n } else if (isNullOrUndefined(this.template) || this.template === '') {\n var isRender = true;\n if ((item.iconCss || !item.iconCss && isItemText && isItemLabel) && (!isItemText && !isItemLabel || !this.element.classList.contains(LABELINDICATOR))) {\n if (item.iconCss) {\n var itemIcon = item.iconCss.trim().split(' ');\n stepSpan.classList.add(ICONCSS);\n for (var i = 0; i < itemIcon.length; i++) {\n stepSpan.classList.add(itemIcon[parseInt(i.toString(), 10)]);\n }\n this.stepperItemContainer.classList.add(STEPICON);\n } else if (!item.iconCss && isItemText && isItemLabel) {\n stepSpan.classList.add(ICONCSS);\n stepSpan.innerHTML = item.text;\n this.stepperItemContainer.classList.add(STEPICON);\n }\n this.stepperItemContainer.appendChild(stepSpan);\n if (this.element.classList.contains(HORIZSTEP) && (this.labelPosition.toLowerCase() === 'start' || this.labelPosition.toLowerCase() === 'end') && isItemLabel || this.element.classList.contains(VERTICALSTEP) && (this.labelPosition.toLowerCase() === 'top' || this.labelPosition.toLowerCase() === 'bottom') && isItemLabel) {\n this.element.classList.add('e-label-' + this.labelPosition.toLowerCase());\n var textSpan = this.createElement('span', {\n className: TEXTCSS + ' ' + TEXT\n });\n textSpan.innerText = item.label;\n this.stepperItemContainer.appendChild(textSpan);\n this.stepperItemContainer.classList.add(STEPTEXT);\n isRender = false;\n }\n }\n if (isItemText && (!item.iconCss || !this.element.classList.contains(STEPINDICATOR)) && isRender && !(item.iconCss && isItemLabel)) {\n if (!item.iconCss && this.element.classList.contains(STEPINDICATOR) || (!item.iconCss || this.element.classList.contains(LABELINDICATOR)) && !isItemLabel) {\n if (!item.iconCss && !isItemLabel) {\n this.element.classList.add('e-step-type-indicator');\n }\n this.checkValidState(item, stepSpan);\n isItemLabel = null;\n } else {\n var textSpan = this.createElement('span', {\n className: TEXT\n });\n if (!isItemLabel) {\n textSpan.innerText = item.text;\n textSpan.classList.add(TEXTCSS);\n this.stepperItemContainer.appendChild(textSpan);\n this.stepperItemContainer.classList.add(STEPTEXT);\n }\n if (isItemLabel && this.element.classList.contains(LABELINDICATOR)) {\n textSpan.innerText = item.label;\n }\n isItemText = item.label ? false : true;\n }\n }\n if (isItemLabel && (!item.iconCss || !this.element.classList.contains(STEPINDICATOR)) && isRender) {\n if (!item.iconCss && !isItemText && this.element.classList.contains(STEPINDICATOR)) {\n this.checkValidState(item, stepSpan, true);\n } else if (!(this.element.classList.contains(LABELINDICATOR) && isItemText) || this.element.classList.contains(LABELINDICATOR) && isItemLabel) {\n this.labelContainer = this.createElement('span', {\n className: STEPLABEL\n });\n var labelSpan = this.createElement('span', {\n className: LABEL\n });\n labelSpan.innerText = item.label;\n this.labelContainer.appendChild(labelSpan);\n this.stepperItemContainer.classList.add(STEPSLABEL);\n this.updateLabelPosition();\n if (!item.iconCss && !isItemText && !this.stepperItemContainer.classList.contains(STEPICON) || this.element.classList.contains(LABELINDICATOR)) {\n this.stepperItemContainer.classList.add('e-step-label-only');\n if (item.isValid !== null) {\n var iconSpan = this.createElement('span', {\n className: 'e-step-validation-icon e-icons'\n });\n this.labelContainer.appendChild(iconSpan);\n }\n }\n }\n }\n }\n if (item.optional) {\n var optionalSpan = this.createElement('span', {\n className: OPTIONAL\n });\n this.l10n.setLocale(this.locale);\n var optionalContent = this.l10n.getConstant('optional');\n optionalSpan.innerText = optionalContent;\n if (isItemLabel && this.labelContainer && (this.element.classList.contains(LABELAFTER) && !this.stepperItemContainer.classList.contains('e-step-label-only') || this.element.classList.contains(HORIZSTEP) && this.element.classList.contains(LABELBEFORE) && !this.stepperItemContainer.classList.contains('e-step-label-only')) || this.element.classList.contains(VERTICALSTEP) && this.element.classList.contains(LABELBEFORE)) {\n this.labelContainer.appendChild(optionalSpan);\n } else {\n this.stepperItemContainer.appendChild(optionalSpan);\n }\n if (item.isValid !== null) {\n this.stepperItemContainer.classList.add(item.isValid ? 'e-step-valid' : 'e-step-error');\n }\n }\n if (item.cssClass) {\n addClass([this.stepperItemContainer], item.cssClass.trim().split(' '));\n }\n if (item.disabled) {\n this.stepperItemContainer.classList[item.disabled ? 'add' : 'remove'](DISABLED$2);\n attributes(this.stepperItemContainer, {\n 'tabindex': '-1',\n 'aria-disabled': 'true'\n });\n }\n if (item.isValid !== null) {\n if (item.isValid) {\n this.stepperItemContainer.classList.add('e-step-valid');\n } else {\n this.stepperItemContainer.classList.add('e-step-error');\n }\n }\n this.renderItemContent(index, false);\n if (this.stepperItemContainer.classList.contains(INPROGRESS)) {\n attributes(this.stepperItemContainer, {\n 'tabindex': '0',\n 'aria-current': 'true'\n });\n } else {\n attributes(this.stepperItemContainer, {\n 'tabindex': '-1'\n });\n }\n this.wireItemsEvents(this.stepperItemContainer, index);\n this.stepperItemElements.push(this.stepperItemContainer);\n var eventArgs = {\n element: this.stepperItemContainer,\n index: index\n };\n this.trigger('beforeStepRender', eventArgs, function (args) {\n _this.stepperItemList.appendChild(args.element);\n });\n if (this.isAngular && this.template) {\n setTimeout(function () {\n _this.calculateProgressBarPosition();\n });\n } else {\n this.calculateProgressBarPosition();\n }\n }\n if (this.element.classList.contains(VERTICALSTEP)) {\n if (this.element.classList.contains(LABELBEFORE)) {\n var listItems = this.stepperItemList.querySelectorAll('.' + LABEL);\n for (var i = 0; i < listItems.length; i++) {\n var labelEle = listItems[parseInt(i.toString(), 10)];\n labelEle.style.setProperty('--label-width', this.beforeLabelWidth + 5 + 'px');\n }\n }\n }\n };\n Stepper.prototype.calculateProgressBarPosition = function () {\n var isBeforeLabel = this.element.classList.contains(LABELBEFORE) ? true : false;\n var isStepVertical = this.element.classList.contains(VERTICALSTEP) ? true : false;\n if (isStepVertical) {\n var iconOnly = this.stepperItemContainer.classList.contains(STEPICON) && !this.stepperItemContainer.classList.contains(STEPTEXT) && !this.stepperItemContainer.classList.contains(STEPSLABEL) ? true : false;\n var textEle = this.stepperItemContainer.querySelector('.' + TEXTCSS);\n if (textEle) {\n this.textEleWidth = this.textEleWidth < textEle.offsetWidth ? textEle.offsetWidth : this.textEleWidth;\n }\n if (isBeforeLabel) {\n var itemWidth = void 0;\n var labelWidth = this.stepperItemContainer.querySelector('.' + LABEL).offsetWidth + 15;\n if (this.beforeLabelWidth < labelWidth) {\n this.beforeLabelWidth = labelWidth;\n }\n if (this.element.querySelector('ol').lastChild.querySelector('.' + ICONCSS)) {\n itemWidth = this.beforeLabelWidth + this.stepperItemContainer.querySelector('.' + ICONCSS).offsetWidth / 2;\n } else if (this.stepperItemContainer.querySelector('.' + TEXTCSS)) {\n itemWidth = this.beforeLabelWidth + this.stepperItemContainer.querySelector('.' + TEXTCSS).offsetWidth / 2;\n }\n if (this.progressBarPosition < itemWidth) {\n this.progressBarPosition = itemWidth;\n }\n } else if (this.progressBarPosition < (iconOnly ? this.stepperItemContainer.offsetWidth : this.element.querySelector('ol').lastChild.firstChild.offsetWidth)) {\n this.progressBarPosition = iconOnly ? this.stepperItemContainer.offsetWidth : this.element.querySelector('ol').lastChild.firstChild.offsetWidth;\n }\n }\n };\n Stepper.prototype.checkValidState = function (item, stepSpan, isLabel) {\n if (item.isValid == null) {\n stepSpan.classList.add('e-step-content');\n if (isLabel) {\n stepSpan.innerHTML = item.label;\n } else {\n stepSpan.innerHTML = item.label ? item.label : item.text;\n }\n this.stepperItemContainer.appendChild(stepSpan);\n } else {\n stepSpan.classList.add(ICONCSS);\n this.stepperItemContainer.appendChild(stepSpan);\n this.stepperItemContainer.classList.add(STEPICON);\n }\n };\n Stepper.prototype.updateCurrentLabel = function () {\n var currentLabelPos;\n if (this.element.classList.contains(HORIZSTEP)) {\n currentLabelPos = this.labelPosition.toLowerCase() === 'top' ? 'before' : this.labelPosition.toLowerCase() === 'bottom' ? 'after' : this.labelPosition.toLowerCase();\n } else {\n currentLabelPos = this.labelPosition.toLowerCase() === 'start' ? 'before' : this.labelPosition.toLowerCase() === 'end' ? 'after' : this.labelPosition.toLowerCase();\n }\n return currentLabelPos;\n };\n Stepper.prototype.updateLabelPosition = function () {\n this.clearLabelPosition();\n this.labelContainer.classList.add('e-label-' + this.updateCurrentLabel());\n if (this.labelPosition.toLowerCase() === 'start' && this.orientation.toLowerCase() === 'vertical') {\n if (this.stepperItemContainer.firstChild) {\n this.stepperItemContainer.firstChild.before(this.labelContainer);\n } else {\n this.stepperItemContainer.appendChild(this.labelContainer);\n }\n } else {\n this.stepperItemContainer.appendChild(this.labelContainer);\n }\n this.element.classList.add('e-label-' + this.updateCurrentLabel());\n };\n Stepper.prototype.clearLabelPosition = function () {\n var removeCss = this.labelContainer.classList.value.match(/(e-label-[after|before]+)/g);\n if (removeCss) {\n removeClass([this.labelContainer], removeCss);\n removeClass([this.element], removeCss);\n }\n };\n Stepper.prototype.checkValidStep = function () {\n for (var index = 0; index < this.steps.length; index++) {\n var item = this.steps[parseInt(index.toString(), 10)];\n var itemElement = this.stepperItemElements[parseInt(index.toString(), 10)];\n if (item.isValid !== null) {\n var indicatorEle = void 0;\n var iconEle = void 0;\n if (this.element.classList.contains(STEPINDICATOR) && !item.iconCss) {\n indicatorEle = itemElement.querySelector('.' + ICONCSS);\n } else {\n iconEle = itemElement.querySelector('.' + ICONCSS);\n }\n if (!indicatorEle && this.element.classList.contains(STEPINDICATOR) && this.renderDefault(index)) {\n indicatorEle = itemElement.querySelector('.' + INDICATORICON);\n }\n var textLabelIcon = itemElement.querySelector('.e-step-validation-icon');\n var itemIcon = item.iconCss.trim().split(' ');\n var validStep = itemElement.classList.contains('e-step-valid');\n if (indicatorEle) {\n indicatorEle.classList.remove(INDICATORICON);\n if (indicatorEle.innerHTML !== '') {\n indicatorEle.innerHTML = '';\n }\n indicatorEle.classList.add('e-icons', validStep ? 'e-check' : 'e-circle-info', ICONCSS);\n }\n if (this.renderDefault(index) && !this.element.classList.contains(STEPINDICATOR)) {\n var stepSpan = itemElement.querySelector('.e-step');\n stepSpan.classList.add('e-icons', validStep ? 'e-check' : 'e-circle-info', ICONCSS);\n }\n if (iconEle) {\n if (iconEle.innerHTML !== '') {\n iconEle.innerHTML = '';\n } else if (itemIcon.length > 0) {\n for (var i = 0; i < itemIcon.length; i++) {\n iconEle.classList.remove(itemIcon[parseInt(i.toString(), 10)]);\n }\n }\n iconEle.classList.add('e-icons', validStep ? 'e-check' : 'e-circle-info');\n }\n if (textLabelIcon) {\n textLabelIcon.classList.add(validStep ? 'e-circle-check' : 'e-circle-info');\n if (this.element.classList.contains(VERTICALSTEP)) {\n var labelEle = itemElement.querySelector('.' + LABEL);\n var textEle = itemElement.querySelector('.' + TEXT);\n var itemWidth = textEle ? textEle.offsetWidth + textEle.getBoundingClientRect().left : labelEle.offsetWidth + labelEle.getBoundingClientRect().left;\n var validationIcon = itemElement.querySelector('.e-step-validation-icon');\n validationIcon.style.setProperty('--icon-position', itemWidth + 20 + 'px');\n }\n }\n }\n }\n };\n Stepper.prototype.updateTooltip = function () {\n if (this.showTooltip) {\n this.tooltipObj = new Tooltip({\n target: '.e-step-container',\n windowCollision: true,\n opensOn: 'Custom',\n cssClass: this.cssClass ? STEPPERTOOLTIP + ' ' + this.cssClass : STEPPERTOOLTIP,\n position: 'TopCenter'\n });\n this.tooltipObj.appendTo(this.stepperItemList);\n } else {\n if (!isNullOrUndefined(this.tooltipObj)) {\n this.tooltipObj.destroy();\n this.tooltipObj = null;\n }\n }\n };\n Stepper.prototype.wireItemsEvents = function (itemElement, index) {\n var _this = this;\n EventHandler.add(itemElement, 'click', function (e) {\n if (_this.linear) {\n var linearModeValue = index - _this.activeStep;\n if (Math.abs(linearModeValue) === 1) {\n _this.stepClickHandler(index, e, itemElement);\n }\n } else {\n _this.stepClickHandler(index, e, itemElement);\n }\n }, this);\n EventHandler.add(itemElement, 'mouseover', function () {\n return _this.openStepperTooltip(index);\n }, this);\n EventHandler.add(itemElement, 'mouseleave', function () {\n return _this.closeStepperTooltip();\n }, this);\n };\n Stepper.prototype.openStepperTooltip = function (index) {\n var currentStep = this.steps[parseInt(index.toString(), 10)];\n if (this.showTooltip && (currentStep.label || currentStep.text)) {\n if (!this.tooltipOpen) {\n this.updateTooltipContent(index);\n this.tooltipObj.open(this.stepperItemElements[parseInt(index.toString(), 10)]);\n if (this.stepType.toLocaleLowerCase() !== 'label' && (this.stepType.toLocaleLowerCase() === 'indicator' || currentStep.label !== '' && currentStep.iconCss !== '' || currentStep.label === null && currentStep.iconCss === '' && currentStep.text !== '')) {\n var tooltipPopupClass = currentStep.status.toLowerCase() === 'inprogress' ? STEPPERTOOLTIP + \" \" + STEPPERIPROGRESSTIP + \" \" + (this.cssClass ? this.cssClass : '') : STEPPERTOOLTIP + \" \" + (this.cssClass ? this.cssClass : '');\n this.tooltipObj.setProperties({\n cssClass: tooltipPopupClass.trim()\n });\n }\n this.tooltipOpen = true;\n }\n }\n };\n Stepper.prototype.closeStepperTooltip = function () {\n if (this.tooltipOpen) {\n this.tooltipObj.close();\n this.tooltipOpen = false;\n }\n };\n Stepper.prototype.updateTooltipContent = function (index) {\n if (this.showTooltip) {\n if (this.isReact) {\n this.clearTemplate(['stepperTooltipTemplate']);\n }\n var content = void 0;\n var currentStep = this.steps[parseInt(index.toString(), 10)];\n if (this.tooltipTemplate) {\n content = this.createElement('span', {\n className: 'e-stepper-tooltip-content'\n });\n var templateFunction = this.getTemplateFunction(this.tooltipTemplate);\n append(templateFunction({\n value: currentStep\n }, this, 'stepperTooltipTemplate', this.element.id + 'tooltipTemplate', this.isStringTemplate), content);\n this.tooltipObj.setProperties({\n content: content\n }, true);\n } else {\n var content_1 = currentStep.label ? currentStep.label : currentStep.text;\n this.tooltipObj.setProperties({\n content: initializeCSPTemplate(function () {\n return content_1;\n })\n }, true);\n }\n this.renderReactTemplates();\n }\n };\n Stepper.prototype.stepClickHandler = function (index, e, itemElement) {\n var clickEventArgs = {\n element: itemElement,\n event: e,\n previousStep: this.activeStep,\n activeStep: index\n };\n this.trigger('stepClick', clickEventArgs);\n this.navigateToStep(index, e, itemElement, true);\n };\n Stepper.prototype.updateTemplateFunction = function () {\n this.templateFunction = this.template ? this.getTemplateFunction(this.template) : null;\n };\n Stepper.prototype.renderItemContent = function (index, isrerender) {\n var listItems = this.stepperItemList.querySelectorAll('li');\n if (isrerender) {\n this.removeItemContent(listItems[parseInt(index.toString(), 10)]);\n }\n if (this.template) {\n if (isrerender) {\n listItems[parseInt(index.toString(), 10)].classList.add(TEMPLATE);\n } else {\n this.stepperItemContainer.classList.add(TEMPLATE);\n }\n var item = this.steps[parseInt(index.toString(), 10)];\n append(this.templateFunction({\n step: item,\n currentStep: index\n }, this, 'stepperTemplate', this.element.id + '_stepperTemplate', this.isStringTemplate), isrerender ? listItems[parseInt(index.toString(), 10)] : this.stepperItemContainer);\n }\n this.renderReactTemplates();\n };\n Stepper.prototype.removeItemContent = function (ele) {\n ele.classList.remove(TEMPLATE);\n var firstChild = ele.firstElementChild;\n for (var i = 0; i < ele.childElementCount; i++) {\n firstChild.remove();\n }\n };\n Stepper.prototype.updateContent = function () {\n if (this.isReact) {\n this.clearTemplate(['stepperTemplate']);\n }\n for (var i = 0; i < this.steps.length; i++) {\n this.renderItemContent(i, true);\n }\n };\n /**\n * Gets template content based on the template property value.\n *\n * @param {string | Function} template - Template property value.\n * @returns {Function} - Return template function.\n * @hidden\n */\n Stepper.prototype.getTemplateFunction = function (template) {\n if (typeof template === 'string') {\n var content = '';\n try {\n var tempEle = select(template);\n if (tempEle) {\n //Return innerHTML incase of jsrenderer script else outerHTML\n content = tempEle.tagName === 'SCRIPT' ? tempEle.innerHTML : tempEle.outerHTML;\n } else {\n content = template;\n }\n } catch (e) {\n content = template;\n }\n return compile(content);\n } else {\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n return compile(template);\n }\n };\n Stepper.prototype.navigateToStep = function (index, e, itemElement, isInteracted, isUpdated) {\n var _this = this;\n var eventArgs = {\n element: itemElement,\n event: e,\n isInteracted: isInteracted,\n previousStep: this.activeStep,\n activeStep: index,\n cancel: false\n };\n if (isUpdated !== false) {\n var previousStep_1 = this.activeStep;\n this.trigger('stepChanging', eventArgs, function (args) {\n if (args.cancel) {\n return;\n }\n _this.navigationHandler(index);\n var eventArgs = {\n element: itemElement,\n event: e,\n isInteracted: isInteracted,\n previousStep: previousStep_1,\n activeStep: _this.activeStep\n };\n _this.trigger('stepChanged', eventArgs);\n });\n } else {\n this.navigationHandler(index);\n }\n };\n Stepper.prototype.navigationHandler = function (index, stepStatus, isUpdated) {\n index = index >= this.steps.length - 1 ? this.steps.length - 1 : index;\n var Itemslength = this.stepperItemElements.length;\n if (index >= 0 && index < Itemslength - 1) {\n index = this.stepperItemElements[parseInt(index.toString(), 10)].classList.contains(DISABLED$2) ? this.activeStep : index;\n }\n var prevOnChange = this.isProtectedOnChange;\n this.isProtectedOnChange = true;\n this.activeStep = parseInt(index.toString(), 10);\n this.isProtectedOnChange = prevOnChange;\n for (var i = 0; i < this.steps.length; i++) {\n var itemElement = this.stepperItemElements[parseInt(i.toString(), 10)];\n var item = this.steps[parseInt(i.toString(), 10)];\n itemElement.classList.remove(SELECTED$2, INPROGRESS, COMPLETED, NOTSTARTED);\n if (i === this.activeStep) {\n itemElement.classList.add(SELECTED$2);\n }\n if (this.activeStep >= 0 && this.progressbar) {\n if (this.element.classList.contains(HORIZSTEP)) {\n if ((this.element.classList.contains(LABELBEFORE) || this.element.classList.contains(LABELAFTER)) && !this.element.classList.contains(STEPINDICATOR) && this.stepperItemElements[parseInt(this.activeStep.toString(), 10)].classList.contains(STEPICON)) {\n var progressPos = this.element.querySelector('.e-stepper-progressbar');\n var selectedEle = this.stepperItemElements[parseInt(this.activeStep.toString(), 10)].firstChild;\n var value = this.activeStep === 0 ? 0 : (selectedEle.offsetLeft - progressPos.offsetLeft + selectedEle.offsetWidth / 2) / progressPos.offsetWidth * 100;\n if (this.element.classList.contains(RTL$3)) {\n value = (progressPos.getBoundingClientRect().right - selectedEle.getBoundingClientRect().right + selectedEle.offsetWidth / 2) / progressPos.offsetWidth * 100;\n this.progressbar.style.setProperty(PROGRESSVALUE$1, value + '%');\n } else {\n this.progressbar.style.setProperty(PROGRESSVALUE$1, value + '%');\n }\n } else {\n var totalLiWidth = 0;\n var activeLiWidth = 0;\n for (var j = 0; j < this.stepperItemElements.length; j++) {\n totalLiWidth = totalLiWidth + this.stepperItemElements[parseInt(j.toString(), 10)].offsetWidth;\n if (j <= this.activeStep) {\n if (j < this.activeStep) {\n activeLiWidth = activeLiWidth + this.stepperItemElements[parseInt(j.toString(), 10)].offsetWidth;\n } else if (j === this.activeStep && j !== 0) {\n activeLiWidth = activeLiWidth + this.stepperItemElements[parseInt(j.toString(), 10)].offsetWidth / 2;\n }\n }\n }\n var spaceWidth = (this.stepperItemList.offsetWidth - totalLiWidth) / (this.stepperItemElements.length - 1);\n var progressValue = (activeLiWidth + spaceWidth * this.activeStep) / this.stepperItemList.offsetWidth * 100;\n this.progressbar.style.setProperty(PROGRESSVALUE$1, progressValue + '%');\n }\n } else {\n this.progressbar.style.setProperty(PROGRESSVALUE$1, 100 / (this.steps.length - 1) * index + '%');\n }\n } else if (this.activeStep < 0 && this.progressbar) {\n this.progressbar.style.setProperty(PROGRESSVALUE$1, 0 + '%');\n }\n if (i === this.activeStep) {\n itemElement.classList.add(INPROGRESS);\n } else if (this.activeStep > 0 && i < this.activeStep) {\n itemElement.classList.add(COMPLETED);\n } else {\n itemElement.classList.add(NOTSTARTED);\n }\n if (itemElement.classList.contains(INPROGRESS)) {\n attributes(itemElement, {\n 'tabindex': '0',\n 'aria-current': 'true'\n });\n } else {\n attributes(itemElement, {\n 'tabindex': '-1',\n 'aria-current': 'false'\n });\n }\n var prevOnChange_1 = this.isProtectedOnChange;\n this.isProtectedOnChange = true;\n if (isUpdated !== false) {\n if (i < this.activeStep || this.steps.length - 1 === this.activeStep && item.status.toLowerCase() === 'completed') {\n item.status = StepStatus.Completed;\n } else if (i === this.activeStep) {\n item.status = StepStatus.InProgress;\n } else if (i > this.activeStep) {\n item.status = StepStatus.NotStarted;\n }\n if (stepStatus && this.activeStep === i) {\n item.status = stepStatus;\n }\n if (item.status.toLowerCase() === 'completed') {\n itemElement.classList.remove(SELECTED$2, INPROGRESS, NOTSTARTED);\n itemElement.classList.add(COMPLETED);\n }\n if (item.status.toLowerCase() === 'notstarted') {\n itemElement.classList.remove(SELECTED$2, INPROGRESS, COMPLETED);\n itemElement.classList.add(NOTSTARTED);\n }\n }\n this.isProtectedOnChange = prevOnChange_1;\n if (this.renderDefault(i) && this.element.classList.contains(STEPINDICATOR) && !itemElement.classList.contains('e-step-valid') && !itemElement.classList.contains('e-step-error')) {\n if (itemElement.classList.contains(COMPLETED)) {\n itemElement.firstChild.classList.remove('e-icons', 'e-step-indicator');\n itemElement.firstChild.classList.add(ICONCSS, 'e-icons', 'e-check');\n } else if (itemElement.classList.contains(INPROGRESS) || itemElement.classList.contains(NOTSTARTED)) {\n itemElement.firstChild.classList.remove(ICONCSS, 'e-icons', 'e-check');\n itemElement.firstChild.classList.add('e-icons', 'e-step-indicator');\n }\n }\n }\n this.updateStepInteractions();\n };\n Stepper.prototype.updateStepInteractions = function () {\n var _this = this;\n this.element.classList.toggle(LINEARSTEP, this.linear);\n this.stepperItemElements.forEach(function (step, index) {\n var isPreviousStep = index === _this.activeStep - 1;\n var isNextStep = index === _this.activeStep + 1;\n step.classList.toggle(PREVSTEP, isPreviousStep);\n step.classList.toggle(NEXTSTEP, isNextStep);\n });\n };\n Stepper.prototype.removeItemElements = function () {\n for (var i = 0; i < this.stepperItemElements.length; i++) {\n remove(this.stepperItemElements[parseInt(i.toString(), 10)]);\n }\n this.stepperItemElements = [];\n };\n /**\n * Move to next step from current step in Stepper.\n *\n * @returns {void}\n */\n Stepper.prototype.nextStep = function () {\n if (this.activeStep !== this.steps.length - 1) {\n this.navigateToStep(this.activeStep + 1, null, null, false);\n }\n };\n /**\n * Move to previous step from current step in Stepper.\n *\n * @returns {void}\n */\n Stepper.prototype.previousStep = function () {\n if (this.activeStep > 0) {\n this.navigateToStep(this.activeStep - 1, null, null, false);\n }\n };\n /**\n * Reset the state of the Stepper and move to the first step.\n *\n * @returns {void}\n */\n Stepper.prototype.reset = function () {\n if (this.activeStep === 0) {\n this.updateStepInteractions();\n } else {\n var isDisabled = this.stepperItemElements[0].classList.contains(DISABLED$2) ? true : false;\n this.navigateToStep(isDisabled ? -1 : 0, null, null, false);\n }\n };\n /**\n * Refreshes the position of the progress bar programmatically when the dimensions of the parent container are changed.\n *\n * @returns {void}\n */\n Stepper.prototype.refreshProgressbar = function () {\n if (this.stepperItemList && this.progressbar) {\n this.setProgressPosition(this.element);\n }\n this.navigateToStep(this.activeStep, null, null, false, false);\n };\n Stepper.prototype.updateElementClassArray = function () {\n var classArray = [RTL$3, READONLY, 'e-steps-focus', LABELAFTER, LABELBEFORE, 'e-label-top', 'e-label-bottom', 'e-label-start', 'e-label-end', STEPINDICATOR, LABELINDICATOR, VERTICALSTEP, HORIZSTEP, LINEARSTEP];\n removeClass([this.element], classArray);\n };\n /**\n * Destroy the stepper control.\n *\n * @returns {void}\n */\n Stepper.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n this.unWireEvents();\n // unwires the events and detach the li elements\n this.removeItemElements();\n this.clearTemplate();\n if (this.stepperItemList) {\n remove(this.stepperItemList);\n }\n this.stepperItemList = null;\n if (this.progressStep) {\n remove(this.progressStep);\n }\n this.progressStep = null;\n this.progressbar = null;\n this.progressBarPosition = null;\n this.stepperItemContainer = null;\n this.textContainer = null;\n this.labelContainer = null;\n this.updateElementClassArray();\n this.element.removeAttribute('aria-label');\n if (this.showTooltip) {\n this.tooltipObj.destroy();\n this.tooltipObj = null;\n }\n if (this.keyboardModuleStepper) {\n this.keyboardModuleStepper.destroy();\n }\n this.keyboardModuleStepper = null;\n };\n Stepper.prototype.wireKeyboardEvent = function () {\n this.keyboardModuleStepper = new KeyboardEvents(this.element, {\n keyAction: this.keyActionHandler.bind(this),\n keyConfigs: this.keyConfigs,\n eventName: 'keydown'\n });\n };\n Stepper.prototype.keyActionHandler = function (e) {\n if (this.readOnly) {\n return;\n }\n switch (e.action) {\n case 'uparrow':\n case 'downarrow':\n case 'leftarrow':\n case 'rightarrow':\n case 'tab':\n case 'shiftTab':\n this.handleNavigation(this.enableRtl && this.element.classList.contains(HORIZSTEP) ? e.action === 'leftarrow' || e.action === 'tab' || e.action === 'uparrow' : e.action === 'rightarrow' || e.action === 'tab' || e.action === 'downarrow', e);\n break;\n case 'space':\n case 'enter':\n case 'escape':\n this.handleNavigation(null, e);\n break;\n case 'home':\n case 'end':\n this.handleNavigation(null, e, this.enableRtl);\n break;\n }\n };\n Stepper.prototype.handleNavigation = function (isNextStep, e, isRTL) {\n this.isKeyNavFocus = true;\n this.element.classList.add('e-steps-focus');\n var focusedEle = this.element.querySelector('.' + FOCUS$1);\n if (!focusedEle) {\n focusedEle = this.element.querySelector('.' + SELECTED$2);\n }\n var stepItems = Array.prototype.slice.call(this.stepperItemList.children);\n var index = stepItems.indexOf(focusedEle);\n if (e.action === 'tab' || e.action === 'shiftTab' || e.action === 'downarrow' || e.action === 'uparrow' || e.action === 'space' || e.action === 'home' || e.action === 'end') {\n if (e.action === 'tab' && index === stepItems.length - 1 || e.action === 'shiftTab' && index === 0) {\n if (focusedEle.classList.contains(FOCUS$1)) {\n this.updateStepFocus();\n return;\n }\n } else {\n e.preventDefault();\n }\n }\n if (e.action === 'escape') {\n stepItems[parseInt(index.toString(), 10)].classList.remove(FOCUS$1);\n this.element.classList.remove('e-steps-focus');\n }\n if (!(e.action === 'space' || e.action === 'enter')) {\n var prevIndex = index;\n index = isNextStep ? index + 1 : index - 1;\n while (index >= 0 && index < stepItems.length && stepItems[parseInt(index.toString(), 10)].classList.contains(DISABLED$2)) {\n index = isNextStep ? index + 1 : index - 1;\n }\n index = index < 0 ? 0 : index > stepItems.length - 1 ? stepItems.length - 1 : index;\n if (stepItems[parseInt(prevIndex.toString(), 10)].classList.contains(FOCUS$1)) {\n stepItems[parseInt(prevIndex.toString(), 10)].classList.remove(FOCUS$1);\n }\n if (e.action === 'home' || e.action === 'end') {\n if (e.action === 'home') {\n index = isRTL ? stepItems.length - 1 : 0;\n } else {\n index = isRTL ? 0 : stepItems.length - 1;\n }\n }\n if (index >= 0 && index < stepItems.length) {\n stepItems[parseInt(index.toString(), 10)].classList.add(FOCUS$1);\n }\n } else if (e.action === 'space' || e.action === 'enter') {\n var isupdateFocus = false;\n if (this.linear) {\n var linearModeValue = this.activeStep - index;\n if (Math.abs(linearModeValue) === 1) {\n this.navigateToStep(index, null, null, true);\n isupdateFocus = true;\n }\n } else {\n this.navigateToStep(index, null, null, true);\n isupdateFocus = true;\n }\n if (isupdateFocus) {\n this.updateStepFocus();\n this.stepperItemElements[index].focus();\n }\n }\n };\n Stepper.prototype.renderStepperItems = function (isUpdate, isStepType) {\n this.updateElementClassArray();\n this.removeItemElements();\n this.element.querySelector('.e-stepper-progressbar').remove();\n if (isUpdate) {\n this.updatePosition();\n }\n if (isStepType) {\n this.updateStepType();\n }\n if (this.readOnly && !this.element.classList.contains(READONLY)) {\n this.element.classList.add(READONLY);\n }\n if (this.enableRtl && !this.element.classList.contains(RTL$3)) {\n this.element.classList.add(RTL$3);\n }\n this.updateOrientaion(this.element);\n this.renderItems();\n this.renderProgressBar(this.element);\n this.checkValidStep();\n this.updateAnimation();\n this.navigateToStep(this.activeStep, null, this.stepperItemElements[this.activeStep], true);\n };\n /**\n * Called internally if any of the property value changed.\n *\n * @param {StepperModel} newProp - Specifies new properties\n * @param {StepperModel} oldProp - Specifies old properties\n * @returns {void}\n * @private\n */\n Stepper.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'steps':\n {\n if (!(newProp.steps instanceof Array && oldProp.steps instanceof Array)) {\n var stepCounts = Object.keys(newProp.steps);\n for (var i = 0; i < stepCounts.length; i++) {\n var index = parseInt(Object.keys(newProp.steps)[i], 10);\n var changedPropsCount = Object.keys(newProp.steps[index]).length;\n for (var j = 0; j < changedPropsCount; j++) {\n var property = Object.keys(newProp.steps[index])[j];\n if (property === 'status') {\n if (this.activeStep === index) {\n this.navigationHandler(index, newProp.steps[index].status);\n } else {\n this.steps[index].status = oldProp.steps[index].status;\n }\n } else {\n this.removeItemElements();\n this.renderItems();\n this.updateStepperStatus();\n }\n this.checkValidStep();\n }\n }\n } else {\n this.renderStepperItems(true, true);\n }\n break;\n }\n case 'orientation':\n this.updateOrientaion(this.element);\n this.renderStepperItems(true);\n break;\n case 'activeStep':\n this.activeStep = newProp.activeStep > this.steps.length - 1 || newProp.activeStep < -1 ? oldProp.activeStep : this.activeStep;\n if (this.activeStep >= 0 && this.stepperItemElements[parseInt(this.activeStep.toString(), 10)].classList.contains(DISABLED$2)) {\n this.activeStep = oldProp.activeStep;\n }\n if (this.linear) {\n var linearModeValue = oldProp.activeStep - this.activeStep;\n if (Math.abs(linearModeValue) === 1) {\n this.navigateToStep(this.activeStep, null, null, true);\n }\n } else {\n this.navigateToStep(this.activeStep, null, this.stepperItemElements[this.activeStep], true);\n }\n break;\n case 'enableRtl':\n this.element.classList[this.enableRtl ? 'add' : 'remove'](RTL$3);\n break;\n case 'readOnly':\n this.element.classList[this.readOnly ? 'add' : 'remove'](READONLY);\n break;\n case 'cssClass':\n if (oldProp.cssClass) {\n removeClass([this.element], oldProp.cssClass.trim().split(' '));\n }\n if (newProp.cssClass) {\n addClass([this.element], newProp.cssClass.trim().split(' '));\n }\n if (this.tooltipObj) {\n this.tooltipObj.setProperties({\n cssClass: this.cssClass ? STEPPERTOOLTIP + ' ' + this.cssClass : STEPPERTOOLTIP\n });\n }\n break;\n case 'labelPosition':\n this.renderStepperItems(true);\n break;\n case 'showTooltip':\n this.updateTooltip();\n break;\n case 'stepType':\n this.renderStepperItems(true, true);\n break;\n case 'template':\n this.updateTemplateFunction();\n this.updateContent();\n break;\n case 'animation':\n this.updateAnimation();\n break;\n case 'linear':\n this.updateStepInteractions();\n break;\n }\n }\n };\n __decorate$e([Property(0)], Stepper.prototype, \"activeStep\", void 0);\n __decorate$e([Complex({}, StepperAnimationSettings)], Stepper.prototype, \"animation\", void 0);\n __decorate$e([Property(false)], Stepper.prototype, \"linear\", void 0);\n __decorate$e([Property(false)], Stepper.prototype, \"showTooltip\", void 0);\n __decorate$e([Property('')], Stepper.prototype, \"template\", void 0);\n __decorate$e([Property('')], Stepper.prototype, \"tooltipTemplate\", void 0);\n __decorate$e([Property(StepLabelPosition.Bottom)], Stepper.prototype, \"labelPosition\", void 0);\n __decorate$e([Property(StepType.Default)], Stepper.prototype, \"stepType\", void 0);\n __decorate$e([Event()], Stepper.prototype, \"stepChanged\", void 0);\n __decorate$e([Event()], Stepper.prototype, \"stepChanging\", void 0);\n __decorate$e([Event()], Stepper.prototype, \"stepClick\", void 0);\n __decorate$e([Event()], Stepper.prototype, \"beforeStepRender\", void 0);\n Stepper = __decorate$e([NotifyPropertyChanges], Stepper);\n return Stepper;\n}(StepperBase);\nexport { Accordion, AccordionActionSettings, AccordionAnimationSettings, AccordionItem, ActionSettings, AppBar, Breadcrumb, BreadcrumbItem, BreadcrumbOverflowMode, Carousel, CarouselItem, CarouselSwipeMode, ContextMenu, FieldSettings, FieldsSettings, HScroll, Header, Item, Menu, MenuAnimationSettings, MenuItem, NodeAnimationSettings, Sidebar, Step, StepLabelPosition, StepStatus, StepType, Stepper, StepperAnimationSettings, StepperBase, StepperOrientation, Tab, TabActionSettings, TabAnimationSettings, TabItem, Toolbar, TreeView, VScroll, addScrolling, destroyScroll };\n","import { __decorate } from 'tslib';\nimport * as i0 from '@angular/core';\nimport { Directive, ContentChild, ContentChildren, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';\nimport { ComplexBase, setValue, Template, ArrayBase, ComponentBase, ComponentMixins } from '@syncfusion/ej2-angular-base';\nimport { Accordion, Toolbar, ContextMenu, Breadcrumb, Carousel, Tab, TreeView, Sidebar, Menu, AppBar, Stepper } from '@syncfusion/ej2-navigations';\nconst _c0 = [\"header\"];\nconst _c1 = [\"content\"];\nconst _c2 = [\"headerTemplate\"];\nconst _c3 = [\"itemTemplate\"];\nconst _c4 = [[[\"div\"]]];\nconst _c5 = [\"div\"];\nconst _c6 = [\"template\"];\nconst _c7 = [\"separatorTemplate\"];\nconst _c8 = [\"indicatorsTemplate\"];\nconst _c9 = [\"nextButtonTemplate\"];\nconst _c10 = [\"previousButtonTemplate\"];\nconst _c11 = [\"playButtonTemplate\"];\nconst _c12 = [\"headerText\"];\nconst _c13 = [\"nodeTemplate\"];\nconst _c14 = [\"*\"];\nconst _c15 = [\"tooltipTemplate\"];\nconst _c16 = [[[\"nav\"]]];\nconst _c17 = [\"nav\"];\nexport * from '@syncfusion/ej2-navigations';\nimport { CommonModule } from '@angular/common';\nlet input$6 = ['content', 'cssClass', 'disabled', 'expanded', 'header', 'iconCss', 'id', 'visible'];\nlet outputs$h = [];\n/**\n * 'e-accordionitem' directive represent a item of the Angular Accordion.\n * It must be contained in a Accordion component(`ejs-accordion`).\n * ```html\n * \n * \n * \n * \n * \n * \n * ```\n */\nlet AccordionItemDirective = /*#__PURE__*/(() => {\n class AccordionItemDirective extends ComplexBase {\n constructor(viewContainerRef) {\n super();\n this.viewContainerRef = viewContainerRef;\n setValue('currentInstance', this, this.viewContainerRef);\n this.registerEvents(outputs$h);\n this.directivePropList = input$6;\n }\n }\n AccordionItemDirective.ɵfac = function AccordionItemDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || AccordionItemDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n };\n AccordionItemDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: AccordionItemDirective,\n selectors: [[\"e-accordionitem\"]],\n contentQueries: function AccordionItemDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, _c0, 5);\n i0.ɵɵcontentQuery(dirIndex, _c1, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.header = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);\n }\n },\n inputs: {\n content: \"content\",\n cssClass: \"cssClass\",\n disabled: \"disabled\",\n expanded: \"expanded\",\n header: \"header\",\n iconCss: \"iconCss\",\n id: \"id\",\n visible: \"visible\"\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n __decorate([Template()], AccordionItemDirective.prototype, \"header\", void 0);\n __decorate([Template()], AccordionItemDirective.prototype, \"content\", void 0);\n return AccordionItemDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * AccordionItem Array Directive\n * @private\n */\nlet AccordionItemsDirective = /*#__PURE__*/(() => {\n class AccordionItemsDirective extends ArrayBase {\n constructor() {\n super('items');\n }\n }\n AccordionItemsDirective.ɵfac = function AccordionItemsDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || AccordionItemsDirective)();\n };\n AccordionItemsDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: AccordionItemsDirective,\n selectors: [[\"e-accordionitems\"]],\n contentQueries: function AccordionItemsDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, AccordionItemDirective, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.children = _t);\n }\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return AccordionItemsDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs$a = ['animation', 'dataSource', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'expandMode', 'expandedIndices', 'headerTemplate', 'height', 'itemTemplate', 'items', 'locale', 'width'];\nconst outputs$g = ['clicked', 'created', 'destroyed', 'expanded', 'expanding', 'expandedIndicesChange'];\nconst twoWays$a = ['expandedIndices'];\n/**\n * Represents the Angular Accordion Component.\n * ```html\n * \n * ```\n */\nlet AccordionComponent = /*#__PURE__*/(() => {\n let AccordionComponent = class AccordionComponent extends Accordion {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.tags = ['items'];\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$g);\n this.addTwoWay.call(this, twoWays$a);\n setValue('currentInstance', this, this.viewContainerRef);\n this.containerContext = new ComponentBase();\n }\n ngOnInit() {\n this.containerContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.containerContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.containerContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.tagObjects[0].instance = this.childItems;\n this.containerContext.ngAfterContentChecked(this);\n }\n };\n AccordionComponent.ɵfac = function AccordionComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || AccordionComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n AccordionComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: AccordionComponent,\n selectors: [[\"ejs-accordion\"]],\n contentQueries: function AccordionComponent_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, _c2, 5);\n i0.ɵɵcontentQuery(dirIndex, _c3, 5);\n i0.ɵɵcontentQuery(dirIndex, AccordionItemsDirective, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerTemplate = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemTemplate = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childItems = _t.first);\n }\n },\n inputs: {\n animation: \"animation\",\n dataSource: \"dataSource\",\n enableHtmlSanitizer: \"enableHtmlSanitizer\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n expandMode: \"expandMode\",\n expandedIndices: \"expandedIndices\",\n headerTemplate: \"headerTemplate\",\n height: \"height\",\n itemTemplate: \"itemTemplate\",\n items: \"items\",\n locale: \"locale\",\n width: \"width\"\n },\n outputs: {\n clicked: \"clicked\",\n created: \"created\",\n destroyed: \"destroyed\",\n expanded: \"expanded\",\n expanding: \"expanding\",\n expandedIndicesChange: \"expandedIndicesChange\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n ngContentSelectors: _c5,\n decls: 1,\n vars: 0,\n template: function AccordionComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef(_c4);\n i0.ɵɵprojection(0);\n }\n },\n encapsulation: 2,\n changeDetection: 0\n });\n __decorate([Template()], AccordionComponent.prototype, \"headerTemplate\", void 0);\n __decorate([Template()], AccordionComponent.prototype, \"itemTemplate\", void 0);\n AccordionComponent = __decorate([ComponentMixins([ComponentBase])], AccordionComponent);\n return AccordionComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Accordion component.\n */\nlet AccordionModule = /*#__PURE__*/(() => {\n class AccordionModule {}\n AccordionModule.ɵfac = function AccordionModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || AccordionModule)();\n };\n AccordionModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: AccordionModule\n });\n AccordionModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return AccordionModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Accordion component with providers.\n */\nlet AccordionAllModule = /*#__PURE__*/(() => {\n class AccordionAllModule {}\n AccordionAllModule.ɵfac = function AccordionAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || AccordionAllModule)();\n };\n AccordionAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: AccordionAllModule\n });\n AccordionAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, AccordionModule], AccordionModule]\n });\n return AccordionAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet input$5 = ['align', 'cssClass', 'disabled', 'htmlAttributes', 'id', 'overflow', 'prefixIcon', 'showAlwaysInPopup', 'showTextOn', 'suffixIcon', 'tabIndex', 'template', 'text', 'tooltipText', 'type', 'visible', 'width'];\nlet outputs$f = ['click'];\n/**\n * 'e-item' directive represent a item of the Angular Toolbar.\n * It must be contained in a Toolbar component(`ejs-toolbar`).\n * ```html\n * \n * \n * \n * \n * \n * \n * ```\n */\nlet ItemDirective = /*#__PURE__*/(() => {\n class ItemDirective extends ComplexBase {\n constructor(viewContainerRef) {\n super();\n this.viewContainerRef = viewContainerRef;\n setValue('currentInstance', this, this.viewContainerRef);\n this.registerEvents(outputs$f);\n this.directivePropList = input$5;\n }\n }\n ItemDirective.ɵfac = function ItemDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ItemDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n };\n ItemDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: ItemDirective,\n selectors: [[\"e-item\"]],\n contentQueries: function ItemDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, _c6, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.template = _t.first);\n }\n },\n inputs: {\n align: \"align\",\n cssClass: \"cssClass\",\n disabled: \"disabled\",\n htmlAttributes: \"htmlAttributes\",\n id: \"id\",\n overflow: \"overflow\",\n prefixIcon: \"prefixIcon\",\n showAlwaysInPopup: \"showAlwaysInPopup\",\n showTextOn: \"showTextOn\",\n suffixIcon: \"suffixIcon\",\n tabIndex: \"tabIndex\",\n template: \"template\",\n text: \"text\",\n tooltipText: \"tooltipText\",\n type: \"type\",\n visible: \"visible\",\n width: \"width\"\n },\n outputs: {\n click: \"click\"\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n __decorate([Template()], ItemDirective.prototype, \"template\", void 0);\n return ItemDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Item Array Directive\n * @private\n */\nlet ItemsDirective = /*#__PURE__*/(() => {\n class ItemsDirective extends ArrayBase {\n constructor() {\n super('items');\n }\n }\n ItemsDirective.ɵfac = function ItemsDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ItemsDirective)();\n };\n ItemsDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: ItemsDirective,\n selectors: [[\"e-items\"]],\n contentQueries: function ItemsDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, ItemDirective, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.children = _t);\n }\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return ItemsDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs$9 = ['allowKeyboard', 'cssClass', 'enableCollision', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'height', 'items', 'locale', 'overflowMode', 'scrollStep', 'width'];\nconst outputs$e = ['beforeCreate', 'clicked', 'created', 'destroyed'];\nconst twoWays$9 = [''];\n/**\n * Represents the Angular Toolbar Component.\n * ```html\n * \n * ```\n */\nlet ToolbarComponent = /*#__PURE__*/(() => {\n let ToolbarComponent = class ToolbarComponent extends Toolbar {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.tags = ['items'];\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$e);\n this.addTwoWay.call(this, twoWays$9);\n setValue('currentInstance', this, this.viewContainerRef);\n this.containerContext = new ComponentBase();\n }\n ngOnInit() {\n this.containerContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.containerContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.containerContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.tagObjects[0].instance = this.childItems;\n this.containerContext.ngAfterContentChecked(this);\n }\n };\n ToolbarComponent.ɵfac = function ToolbarComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ToolbarComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n ToolbarComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: ToolbarComponent,\n selectors: [[\"ejs-toolbar\"]],\n contentQueries: function ToolbarComponent_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, ItemsDirective, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childItems = _t.first);\n }\n },\n inputs: {\n allowKeyboard: \"allowKeyboard\",\n cssClass: \"cssClass\",\n enableCollision: \"enableCollision\",\n enableHtmlSanitizer: \"enableHtmlSanitizer\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n height: \"height\",\n items: \"items\",\n locale: \"locale\",\n overflowMode: \"overflowMode\",\n scrollStep: \"scrollStep\",\n width: \"width\"\n },\n outputs: {\n beforeCreate: \"beforeCreate\",\n clicked: \"clicked\",\n created: \"created\",\n destroyed: \"destroyed\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n ngContentSelectors: _c5,\n decls: 1,\n vars: 0,\n template: function ToolbarComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef(_c4);\n i0.ɵɵprojection(0);\n }\n },\n encapsulation: 2,\n changeDetection: 0\n });\n ToolbarComponent = __decorate([ComponentMixins([ComponentBase])], ToolbarComponent);\n return ToolbarComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Toolbar component.\n */\nlet ToolbarModule = /*#__PURE__*/(() => {\n class ToolbarModule {}\n ToolbarModule.ɵfac = function ToolbarModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ToolbarModule)();\n };\n ToolbarModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: ToolbarModule\n });\n ToolbarModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return ToolbarModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Toolbar component with providers.\n */\nlet ToolbarAllModule = /*#__PURE__*/(() => {\n class ToolbarAllModule {}\n ToolbarAllModule.ɵfac = function ToolbarAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ToolbarAllModule)();\n };\n ToolbarAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: ToolbarAllModule\n });\n ToolbarAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, ToolbarModule], ToolbarModule]\n });\n return ToolbarAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs$8 = ['animationSettings', 'cssClass', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enableScrolling', 'fields', 'filter', 'hoverDelay', 'items', 'locale', 'showItemOnClick', 'target', 'template'];\nconst outputs$d = ['beforeClose', 'beforeItemRender', 'beforeOpen', 'created', 'onClose', 'onOpen', 'select'];\nconst twoWays$8 = [''];\n/**\n * Represents the EJ2 Angular ContextMenu Component.\n * ```html\n *
    Right click / Touch hold to open the ContextMenu
    \n * \n * ```\n */\nlet ContextMenuComponent = /*#__PURE__*/(() => {\n let ContextMenuComponent = class ContextMenuComponent extends ContextMenu {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$d);\n this.addTwoWay.call(this, twoWays$8);\n setValue('currentInstance', this, this.viewContainerRef);\n this.context = new ComponentBase();\n }\n ngOnInit() {\n this.context.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.context.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.context.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.context.ngAfterContentChecked(this);\n }\n };\n ContextMenuComponent.ɵfac = function ContextMenuComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ContextMenuComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n ContextMenuComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: ContextMenuComponent,\n selectors: [[\"ejs-contextmenu\"]],\n inputs: {\n animationSettings: \"animationSettings\",\n cssClass: \"cssClass\",\n enableHtmlSanitizer: \"enableHtmlSanitizer\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n enableScrolling: \"enableScrolling\",\n fields: \"fields\",\n filter: \"filter\",\n hoverDelay: \"hoverDelay\",\n items: \"items\",\n locale: \"locale\",\n showItemOnClick: \"showItemOnClick\",\n target: \"target\",\n template: \"template\"\n },\n outputs: {\n beforeClose: \"beforeClose\",\n beforeItemRender: \"beforeItemRender\",\n beforeOpen: \"beforeOpen\",\n created: \"created\",\n onClose: \"onClose\",\n onOpen: \"onOpen\",\n select: \"select\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n decls: 0,\n vars: 0,\n template: function ContextMenuComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n });\n ContextMenuComponent = __decorate([ComponentMixins([ComponentBase])], ContextMenuComponent);\n return ContextMenuComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the ContextMenu component.\n */\nlet ContextMenuModule = /*#__PURE__*/(() => {\n class ContextMenuModule {}\n ContextMenuModule.ɵfac = function ContextMenuModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ContextMenuModule)();\n };\n ContextMenuModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: ContextMenuModule\n });\n ContextMenuModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return ContextMenuModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the ContextMenu component with providers.\n */\nlet ContextMenuAllModule = /*#__PURE__*/(() => {\n class ContextMenuAllModule {}\n ContextMenuAllModule.ɵfac = function ContextMenuAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ContextMenuAllModule)();\n };\n ContextMenuAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: ContextMenuAllModule\n });\n ContextMenuAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, ContextMenuModule], ContextMenuModule]\n });\n return ContextMenuAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet input$4 = ['disabled', 'iconCss', 'id', 'text', 'url'];\nlet outputs$c = [];\n/**\n * `e-breadcrumb-item` directive represent a item of the Angular Breadcrumb.\n * It must be contained in a Breadcrumb component(`ejs-breadcrumb`).\n * ```html\n * \n * \n * \n * \n * \n * \n * ```\n */\nlet BreadcrumbItemDirective = /*#__PURE__*/(() => {\n class BreadcrumbItemDirective extends ComplexBase {\n constructor(viewContainerRef) {\n super();\n this.viewContainerRef = viewContainerRef;\n setValue('currentInstance', this, this.viewContainerRef);\n this.registerEvents(outputs$c);\n this.directivePropList = input$4;\n }\n }\n BreadcrumbItemDirective.ɵfac = function BreadcrumbItemDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || BreadcrumbItemDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n };\n BreadcrumbItemDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: BreadcrumbItemDirective,\n selectors: [[\"e-breadcrumb-item\"]],\n inputs: {\n disabled: \"disabled\",\n iconCss: \"iconCss\",\n id: \"id\",\n text: \"text\",\n url: \"url\"\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return BreadcrumbItemDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * BreadcrumbItem Array Directive\n * @private\n */\nlet BreadcrumbItemsDirective = /*#__PURE__*/(() => {\n class BreadcrumbItemsDirective extends ArrayBase {\n constructor() {\n super('items');\n }\n }\n BreadcrumbItemsDirective.ɵfac = function BreadcrumbItemsDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || BreadcrumbItemsDirective)();\n };\n BreadcrumbItemsDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: BreadcrumbItemsDirective,\n selectors: [[\"e-breadcrumb-items\"]],\n contentQueries: function BreadcrumbItemsDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, BreadcrumbItemDirective, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.children = _t);\n }\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return BreadcrumbItemsDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs$7 = ['activeItem', 'cssClass', 'disabled', 'enableActiveItemNavigation', 'enableNavigation', 'enablePersistence', 'enableRtl', 'itemTemplate', 'items', 'locale', 'maxItems', 'overflowMode', 'separatorTemplate', 'url'];\nconst outputs$b = ['beforeItemRender', 'created', 'itemClick', 'activeItemChange'];\nconst twoWays$7 = ['activeItem'];\n/**\n * Represents the EJ2 Angular Breadcrumb Component.\n * ```html\n * \n * ```\n */\nlet BreadcrumbComponent = /*#__PURE__*/(() => {\n let BreadcrumbComponent = class BreadcrumbComponent extends Breadcrumb {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.tags = ['items'];\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$b);\n this.addTwoWay.call(this, twoWays$7);\n setValue('currentInstance', this, this.viewContainerRef);\n this.context = new ComponentBase();\n }\n ngOnInit() {\n this.context.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.context.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.context.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.tagObjects[0].instance = this.childItems;\n this.context.ngAfterContentChecked(this);\n }\n };\n BreadcrumbComponent.ɵfac = function BreadcrumbComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || BreadcrumbComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n BreadcrumbComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: BreadcrumbComponent,\n selectors: [[\"ejs-breadcrumb\"]],\n contentQueries: function BreadcrumbComponent_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, _c7, 5);\n i0.ɵɵcontentQuery(dirIndex, _c3, 5);\n i0.ɵɵcontentQuery(dirIndex, BreadcrumbItemsDirective, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.separatorTemplate = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemTemplate = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childItems = _t.first);\n }\n },\n inputs: {\n activeItem: \"activeItem\",\n cssClass: \"cssClass\",\n disabled: \"disabled\",\n enableActiveItemNavigation: \"enableActiveItemNavigation\",\n enableNavigation: \"enableNavigation\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n itemTemplate: \"itemTemplate\",\n items: \"items\",\n locale: \"locale\",\n maxItems: \"maxItems\",\n overflowMode: \"overflowMode\",\n separatorTemplate: \"separatorTemplate\",\n url: \"url\"\n },\n outputs: {\n beforeItemRender: \"beforeItemRender\",\n created: \"created\",\n itemClick: \"itemClick\",\n activeItemChange: \"activeItemChange\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n decls: 0,\n vars: 0,\n template: function BreadcrumbComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n });\n __decorate([Template()], BreadcrumbComponent.prototype, \"separatorTemplate\", void 0);\n __decorate([Template()], BreadcrumbComponent.prototype, \"itemTemplate\", void 0);\n BreadcrumbComponent = __decorate([ComponentMixins([ComponentBase])], BreadcrumbComponent);\n return BreadcrumbComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Breadcrumb component.\n */\nlet BreadcrumbModule = /*#__PURE__*/(() => {\n class BreadcrumbModule {}\n BreadcrumbModule.ɵfac = function BreadcrumbModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || BreadcrumbModule)();\n };\n BreadcrumbModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: BreadcrumbModule\n });\n BreadcrumbModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return BreadcrumbModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Breadcrumb component with providers.\n */\nlet BreadcrumbAllModule = /*#__PURE__*/(() => {\n class BreadcrumbAllModule {}\n BreadcrumbAllModule.ɵfac = function BreadcrumbAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || BreadcrumbAllModule)();\n };\n BreadcrumbAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: BreadcrumbAllModule\n });\n BreadcrumbAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, BreadcrumbModule], BreadcrumbModule]\n });\n return BreadcrumbAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet input$3 = ['cssClass', 'htmlAttributes', 'interval', 'template'];\nlet outputs$a = [];\n/**\n * `e-carousel-item` directive represent a item of the Angular Carousel.\n * It must be contained in a Carousel component(`ejs-carousel`).\n * ```html\n * \n * \n * \n * \n * \n * \n * ```\n */\nlet CarouselItemDirective = /*#__PURE__*/(() => {\n class CarouselItemDirective extends ComplexBase {\n constructor(viewContainerRef) {\n super();\n this.viewContainerRef = viewContainerRef;\n setValue('currentInstance', this, this.viewContainerRef);\n this.registerEvents(outputs$a);\n this.directivePropList = input$3;\n }\n }\n CarouselItemDirective.ɵfac = function CarouselItemDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || CarouselItemDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n };\n CarouselItemDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CarouselItemDirective,\n selectors: [[\"e-carousel-item\"]],\n contentQueries: function CarouselItemDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, _c6, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.template = _t.first);\n }\n },\n inputs: {\n cssClass: \"cssClass\",\n htmlAttributes: \"htmlAttributes\",\n interval: \"interval\",\n template: \"template\"\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n __decorate([Template()], CarouselItemDirective.prototype, \"template\", void 0);\n return CarouselItemDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * CarouselItem Array Directive\n * @private\n */\nlet CarouselItemsDirective = /*#__PURE__*/(() => {\n class CarouselItemsDirective extends ArrayBase {\n constructor() {\n super('items');\n }\n }\n CarouselItemsDirective.ɵfac = function CarouselItemsDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || CarouselItemsDirective)();\n };\n CarouselItemsDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CarouselItemsDirective,\n selectors: [[\"e-carousel-items\"]],\n contentQueries: function CarouselItemsDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, CarouselItemDirective, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.children = _t);\n }\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return CarouselItemsDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs$6 = ['animationEffect', 'autoPlay', 'buttonsVisibility', 'cssClass', 'dataSource', 'enablePersistence', 'enableRtl', 'enableTouchSwipe', 'height', 'htmlAttributes', 'indicatorsTemplate', 'indicatorsType', 'interval', 'itemTemplate', 'items', 'locale', 'loop', 'nextButtonTemplate', 'partialVisible', 'pauseOnHover', 'playButtonTemplate', 'previousButtonTemplate', 'selectedIndex', 'showIndicators', 'showPlayButton', 'swipeMode', 'width'];\nconst outputs$9 = ['slideChanged', 'slideChanging', 'selectedIndexChange'];\nconst twoWays$6 = ['selectedIndex'];\n/**\n * Represents the EJ2 Angular Carousel Component.\n * ```html\n * \n * ```\n */\nlet CarouselComponent = /*#__PURE__*/(() => {\n let CarouselComponent = class CarouselComponent extends Carousel {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.tags = ['items'];\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$9);\n this.addTwoWay.call(this, twoWays$6);\n setValue('currentInstance', this, this.viewContainerRef);\n this.context = new ComponentBase();\n }\n ngOnInit() {\n this.context.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.context.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.context.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.tagObjects[0].instance = this.childItems;\n this.context.ngAfterContentChecked(this);\n }\n };\n CarouselComponent.ɵfac = function CarouselComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || CarouselComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n CarouselComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: CarouselComponent,\n selectors: [[\"ejs-carousel\"]],\n contentQueries: function CarouselComponent_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, _c8, 5);\n i0.ɵɵcontentQuery(dirIndex, _c9, 5);\n i0.ɵɵcontentQuery(dirIndex, _c10, 5);\n i0.ɵɵcontentQuery(dirIndex, _c11, 5);\n i0.ɵɵcontentQuery(dirIndex, _c3, 5);\n i0.ɵɵcontentQuery(dirIndex, CarouselItemsDirective, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.indicatorsTemplate = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.nextButtonTemplate = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.previousButtonTemplate = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.playButtonTemplate = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemTemplate = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childItems = _t.first);\n }\n },\n inputs: {\n animationEffect: \"animationEffect\",\n autoPlay: \"autoPlay\",\n buttonsVisibility: \"buttonsVisibility\",\n cssClass: \"cssClass\",\n dataSource: \"dataSource\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n enableTouchSwipe: \"enableTouchSwipe\",\n height: \"height\",\n htmlAttributes: \"htmlAttributes\",\n indicatorsTemplate: \"indicatorsTemplate\",\n indicatorsType: \"indicatorsType\",\n interval: \"interval\",\n itemTemplate: \"itemTemplate\",\n items: \"items\",\n locale: \"locale\",\n loop: \"loop\",\n nextButtonTemplate: \"nextButtonTemplate\",\n partialVisible: \"partialVisible\",\n pauseOnHover: \"pauseOnHover\",\n playButtonTemplate: \"playButtonTemplate\",\n previousButtonTemplate: \"previousButtonTemplate\",\n selectedIndex: \"selectedIndex\",\n showIndicators: \"showIndicators\",\n showPlayButton: \"showPlayButton\",\n swipeMode: \"swipeMode\",\n width: \"width\"\n },\n outputs: {\n slideChanged: \"slideChanged\",\n slideChanging: \"slideChanging\",\n selectedIndexChange: \"selectedIndexChange\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n decls: 0,\n vars: 0,\n template: function CarouselComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n });\n __decorate([Template()], CarouselComponent.prototype, \"indicatorsTemplate\", void 0);\n __decorate([Template()], CarouselComponent.prototype, \"nextButtonTemplate\", void 0);\n __decorate([Template()], CarouselComponent.prototype, \"previousButtonTemplate\", void 0);\n __decorate([Template()], CarouselComponent.prototype, \"playButtonTemplate\", void 0);\n __decorate([Template()], CarouselComponent.prototype, \"itemTemplate\", void 0);\n CarouselComponent = __decorate([ComponentMixins([ComponentBase])], CarouselComponent);\n return CarouselComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Carousel component.\n */\nlet CarouselModule = /*#__PURE__*/(() => {\n class CarouselModule {}\n CarouselModule.ɵfac = function CarouselModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || CarouselModule)();\n };\n CarouselModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: CarouselModule\n });\n CarouselModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return CarouselModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Carousel component with providers.\n */\nlet CarouselAllModule = /*#__PURE__*/(() => {\n class CarouselAllModule {}\n CarouselAllModule.ɵfac = function CarouselAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || CarouselAllModule)();\n };\n CarouselAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: CarouselAllModule\n });\n CarouselAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, CarouselModule], CarouselModule]\n });\n return CarouselAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet input$2 = ['content', 'cssClass', 'disabled', 'header', 'headerTemplate', 'id', 'tabIndex', 'visible'];\nlet outputs$8 = [];\n/**\n * 'e-tabitem' directive represent a item of the Angular Tab.\n * It must be contained in a Tab component(`ejs-tab`).\n * ```html\n * \n * \n * \n * \n * \n * \n * ```\n */\nlet TabItemDirective = /*#__PURE__*/(() => {\n class TabItemDirective extends ComplexBase {\n constructor(viewContainerRef) {\n super();\n this.viewContainerRef = viewContainerRef;\n setValue('currentInstance', this, this.viewContainerRef);\n this.registerEvents(outputs$8);\n this.directivePropList = input$2;\n }\n }\n TabItemDirective.ɵfac = function TabItemDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TabItemDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n };\n TabItemDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: TabItemDirective,\n selectors: [[\"e-tabitem\"]],\n contentQueries: function TabItemDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, _c1, 5);\n i0.ɵɵcontentQuery(dirIndex, _c12, 5);\n i0.ɵɵcontentQuery(dirIndex, _c2, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.header_text = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerTemplate = _t.first);\n }\n },\n inputs: {\n content: \"content\",\n cssClass: \"cssClass\",\n disabled: \"disabled\",\n header: \"header\",\n headerTemplate: \"headerTemplate\",\n id: \"id\",\n tabIndex: \"tabIndex\",\n visible: \"visible\"\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n __decorate([Template()], TabItemDirective.prototype, \"content\", void 0);\n __decorate([Template()], TabItemDirective.prototype, \"header_text\", void 0);\n __decorate([Template()], TabItemDirective.prototype, \"headerTemplate\", void 0);\n return TabItemDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * TabItem Array Directive\n * @private\n */\nlet TabItemsDirective = /*#__PURE__*/(() => {\n class TabItemsDirective extends ArrayBase {\n constructor() {\n super('items');\n }\n }\n TabItemsDirective.ɵfac = function TabItemsDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TabItemsDirective)();\n };\n TabItemsDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: TabItemsDirective,\n selectors: [[\"e-tabitems\"]],\n contentQueries: function TabItemsDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, TabItemDirective, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.children = _t);\n }\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return TabItemsDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs$5 = ['allowDragAndDrop', 'animation', 'clearTemplates', 'cssClass', 'dragArea', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'headerPlacement', 'height', 'heightAdjustMode', 'items', 'loadOn', 'locale', 'overflowMode', 'reorderActiveTab', 'scrollStep', 'selectedItem', 'showCloseButton', 'width'];\nconst outputs$7 = ['added', 'adding', 'created', 'destroyed', 'dragged', 'dragging', 'onDragStart', 'removed', 'removing', 'selected', 'selecting'];\nconst twoWays$5 = [''];\n/**\n * Represents the Angular Tab Component.\n * ```html\n * \n * ```\n */\nlet TabComponent = /*#__PURE__*/(() => {\n let TabComponent = class TabComponent extends Tab {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.tags = ['items'];\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$7);\n this.addTwoWay.call(this, twoWays$5);\n setValue('currentInstance', this, this.viewContainerRef);\n this.containerContext = new ComponentBase();\n }\n ngOnInit() {\n this.containerContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.containerContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.containerContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.tagObjects[0].instance = this.childItems;\n this.containerContext.ngAfterContentChecked(this);\n }\n };\n TabComponent.ɵfac = function TabComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TabComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n TabComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TabComponent,\n selectors: [[\"ejs-tab\"]],\n contentQueries: function TabComponent_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, TabItemsDirective, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childItems = _t.first);\n }\n },\n inputs: {\n allowDragAndDrop: \"allowDragAndDrop\",\n animation: \"animation\",\n clearTemplates: \"clearTemplates\",\n cssClass: \"cssClass\",\n dragArea: \"dragArea\",\n enableHtmlSanitizer: \"enableHtmlSanitizer\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n headerPlacement: \"headerPlacement\",\n height: \"height\",\n heightAdjustMode: \"heightAdjustMode\",\n items: \"items\",\n loadOn: \"loadOn\",\n locale: \"locale\",\n overflowMode: \"overflowMode\",\n reorderActiveTab: \"reorderActiveTab\",\n scrollStep: \"scrollStep\",\n selectedItem: \"selectedItem\",\n showCloseButton: \"showCloseButton\",\n width: \"width\"\n },\n outputs: {\n added: \"added\",\n adding: \"adding\",\n created: \"created\",\n destroyed: \"destroyed\",\n dragged: \"dragged\",\n dragging: \"dragging\",\n onDragStart: \"onDragStart\",\n removed: \"removed\",\n removing: \"removing\",\n selected: \"selected\",\n selecting: \"selecting\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n ngContentSelectors: _c5,\n decls: 1,\n vars: 0,\n template: function TabComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef(_c4);\n i0.ɵɵprojection(0);\n }\n },\n encapsulation: 2,\n changeDetection: 0\n });\n TabComponent = __decorate([ComponentMixins([ComponentBase])], TabComponent);\n return TabComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Tab component.\n */\nlet TabModule = /*#__PURE__*/(() => {\n class TabModule {}\n TabModule.ɵfac = function TabModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TabModule)();\n };\n TabModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TabModule\n });\n TabModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return TabModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Tab component with providers.\n */\nlet TabAllModule = /*#__PURE__*/(() => {\n class TabAllModule {}\n TabAllModule.ɵfac = function TabAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TabAllModule)();\n };\n TabAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TabAllModule\n });\n TabAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, TabModule], TabModule]\n });\n return TabAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs$4 = ['allowDragAndDrop', 'allowEditing', 'allowMultiSelection', 'allowTextWrap', 'animation', 'autoCheck', 'checkDisabledChildren', 'checkedNodes', 'cssClass', 'disabled', 'dragArea', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'expandOn', 'expandedNodes', 'fields', 'fullRowNavigable', 'fullRowSelect', 'loadOnDemand', 'locale', 'nodeTemplate', 'selectedNodes', 'showCheckBox', 'sortOrder'];\nconst outputs$6 = ['actionFailure', 'created', 'dataBound', 'dataSourceChanged', 'destroyed', 'drawNode', 'keyPress', 'nodeChecked', 'nodeChecking', 'nodeClicked', 'nodeCollapsed', 'nodeCollapsing', 'nodeDragStart', 'nodeDragStop', 'nodeDragging', 'nodeDropped', 'nodeEdited', 'nodeEditing', 'nodeExpanded', 'nodeExpanding', 'nodeSelected', 'nodeSelecting'];\nconst twoWays$4 = [''];\n/**\n * TreeView component is used to represent the hierarchical data in tree like structure with advanced functions to perform edit, drag and drop, selection with check-box and more.\n * ```html\n * \n * ```\n */\nlet TreeViewComponent = /*#__PURE__*/(() => {\n let TreeViewComponent = class TreeViewComponent extends TreeView {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$6);\n this.addTwoWay.call(this, twoWays$4);\n setValue('currentInstance', this, this.viewContainerRef);\n this.context = new ComponentBase();\n }\n ngOnInit() {\n this.context.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.context.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.context.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.context.ngAfterContentChecked(this);\n }\n };\n TreeViewComponent.ɵfac = function TreeViewComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TreeViewComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n TreeViewComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TreeViewComponent,\n selectors: [[\"ejs-treeview\"]],\n contentQueries: function TreeViewComponent_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, _c13, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.nodeTemplate = _t.first);\n }\n },\n inputs: {\n allowDragAndDrop: \"allowDragAndDrop\",\n allowEditing: \"allowEditing\",\n allowMultiSelection: \"allowMultiSelection\",\n allowTextWrap: \"allowTextWrap\",\n animation: \"animation\",\n autoCheck: \"autoCheck\",\n checkDisabledChildren: \"checkDisabledChildren\",\n checkedNodes: \"checkedNodes\",\n cssClass: \"cssClass\",\n disabled: \"disabled\",\n dragArea: \"dragArea\",\n enableHtmlSanitizer: \"enableHtmlSanitizer\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n expandOn: \"expandOn\",\n expandedNodes: \"expandedNodes\",\n fields: \"fields\",\n fullRowNavigable: \"fullRowNavigable\",\n fullRowSelect: \"fullRowSelect\",\n loadOnDemand: \"loadOnDemand\",\n locale: \"locale\",\n nodeTemplate: \"nodeTemplate\",\n selectedNodes: \"selectedNodes\",\n showCheckBox: \"showCheckBox\",\n sortOrder: \"sortOrder\"\n },\n outputs: {\n actionFailure: \"actionFailure\",\n created: \"created\",\n dataBound: \"dataBound\",\n dataSourceChanged: \"dataSourceChanged\",\n destroyed: \"destroyed\",\n drawNode: \"drawNode\",\n keyPress: \"keyPress\",\n nodeChecked: \"nodeChecked\",\n nodeChecking: \"nodeChecking\",\n nodeClicked: \"nodeClicked\",\n nodeCollapsed: \"nodeCollapsed\",\n nodeCollapsing: \"nodeCollapsing\",\n nodeDragStart: \"nodeDragStart\",\n nodeDragStop: \"nodeDragStop\",\n nodeDragging: \"nodeDragging\",\n nodeDropped: \"nodeDropped\",\n nodeEdited: \"nodeEdited\",\n nodeEditing: \"nodeEditing\",\n nodeExpanded: \"nodeExpanded\",\n nodeExpanding: \"nodeExpanding\",\n nodeSelected: \"nodeSelected\",\n nodeSelecting: \"nodeSelecting\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n decls: 0,\n vars: 0,\n template: function TreeViewComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n });\n __decorate([Template()], TreeViewComponent.prototype, \"nodeTemplate\", void 0);\n TreeViewComponent = __decorate([ComponentMixins([ComponentBase])], TreeViewComponent);\n return TreeViewComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the TreeView component.\n */\nlet TreeViewModule = /*#__PURE__*/(() => {\n class TreeViewModule {}\n TreeViewModule.ɵfac = function TreeViewModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TreeViewModule)();\n };\n TreeViewModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TreeViewModule\n });\n TreeViewModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return TreeViewModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the TreeView component with providers.\n */\nlet TreeViewAllModule = /*#__PURE__*/(() => {\n class TreeViewAllModule {}\n TreeViewAllModule.ɵfac = function TreeViewAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TreeViewAllModule)();\n };\n TreeViewAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TreeViewAllModule\n });\n TreeViewAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, TreeViewModule], TreeViewModule]\n });\n return TreeViewAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs$3 = ['animate', 'closeOnDocumentClick', 'dockSize', 'enableDock', 'enableGestures', 'enablePersistence', 'enableRtl', 'height', 'isOpen', 'locale', 'mediaQuery', 'position', 'showBackdrop', 'target', 'type', 'width', 'zIndex'];\nconst outputs$5 = ['change', 'close', 'created', 'destroyed', 'open', 'isOpenChange'];\nconst twoWays$3 = ['isOpen'];\n/**\n * Represents the Essential JS 2 Angular Sidebar Component.\n * ```html\n * \n * ```\n */\nlet SidebarComponent = /*#__PURE__*/(() => {\n let SidebarComponent = class SidebarComponent extends Sidebar {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$5);\n this.addTwoWay.call(this, twoWays$3);\n setValue('currentInstance', this, this.viewContainerRef);\n this.containerContext = new ComponentBase();\n }\n ngOnInit() {\n this.containerContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.containerContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.containerContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.containerContext.ngAfterContentChecked(this);\n }\n };\n SidebarComponent.ɵfac = function SidebarComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SidebarComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n SidebarComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: SidebarComponent,\n selectors: [[\"ejs-sidebar\"]],\n inputs: {\n animate: \"animate\",\n closeOnDocumentClick: \"closeOnDocumentClick\",\n dockSize: \"dockSize\",\n enableDock: \"enableDock\",\n enableGestures: \"enableGestures\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n height: \"height\",\n isOpen: \"isOpen\",\n locale: \"locale\",\n mediaQuery: \"mediaQuery\",\n position: \"position\",\n showBackdrop: \"showBackdrop\",\n target: \"target\",\n type: \"type\",\n width: \"width\",\n zIndex: \"zIndex\"\n },\n outputs: {\n change: \"change\",\n close: \"close\",\n created: \"created\",\n destroyed: \"destroyed\",\n open: \"open\",\n isOpenChange: \"isOpenChange\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n ngContentSelectors: _c14,\n decls: 1,\n vars: 0,\n template: function SidebarComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵprojection(0);\n }\n },\n encapsulation: 2,\n changeDetection: 0\n });\n SidebarComponent = __decorate([ComponentMixins([ComponentBase])], SidebarComponent);\n return SidebarComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Sidebar component.\n */\nlet SidebarModule = /*#__PURE__*/(() => {\n class SidebarModule {}\n SidebarModule.ɵfac = function SidebarModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SidebarModule)();\n };\n SidebarModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: SidebarModule\n });\n SidebarModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return SidebarModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Sidebar component with providers.\n */\nlet SidebarAllModule = /*#__PURE__*/(() => {\n class SidebarAllModule {}\n SidebarAllModule.ɵfac = function SidebarAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SidebarAllModule)();\n };\n SidebarAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: SidebarAllModule\n });\n SidebarAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, SidebarModule], SidebarModule]\n });\n return SidebarAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet input$1 = ['iconCss', 'id', 'items', 'separator', 'text', 'url'];\nlet outputs$4 = [];\nlet MenuItemDirective = /*#__PURE__*/(() => {\n class MenuItemDirective extends ComplexBase {\n constructor(viewContainerRef) {\n super();\n this.viewContainerRef = viewContainerRef;\n setValue('currentInstance', this, this.viewContainerRef);\n this.registerEvents(outputs$4);\n this.directivePropList = input$1;\n }\n }\n MenuItemDirective.ɵfac = function MenuItemDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || MenuItemDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n };\n MenuItemDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: MenuItemDirective,\n selectors: [[\"e-menu-item\"]],\n inputs: {\n iconCss: \"iconCss\",\n id: \"id\",\n items: \"items\",\n separator: \"separator\",\n text: \"text\",\n url: \"url\"\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return MenuItemDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * MenuItem Array Directive\n * @private\n */\nlet MenuItemsDirective = /*#__PURE__*/(() => {\n class MenuItemsDirective extends ArrayBase {\n constructor() {\n super('items');\n }\n }\n MenuItemsDirective.ɵfac = function MenuItemsDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || MenuItemsDirective)();\n };\n MenuItemsDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: MenuItemsDirective,\n selectors: [[\"e-menu-items\"]],\n contentQueries: function MenuItemsDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, MenuItemDirective, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.children = _t);\n }\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return MenuItemsDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs$2 = ['animationSettings', 'cssClass', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enableScrolling', 'fields', 'filter', 'hamburgerMode', 'hoverDelay', 'items', 'locale', 'orientation', 'showItemOnClick', 'target', 'template', 'title'];\nconst outputs$3 = ['beforeClose', 'beforeItemRender', 'beforeOpen', 'created', 'onClose', 'onOpen', 'select'];\nconst twoWays$2 = [''];\n/**\n * Represents the EJ2 Angular Menu Component.\n * ```html\n * \n * ```\n */\nlet MenuComponent = /*#__PURE__*/(() => {\n let MenuComponent = class MenuComponent extends Menu {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.tags = ['items'];\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$3);\n this.addTwoWay.call(this, twoWays$2);\n setValue('currentInstance', this, this.viewContainerRef);\n this.context = new ComponentBase();\n }\n ngOnInit() {\n this.context.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.context.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.context.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.tagObjects[0].instance = this.childItems;\n this.context.ngAfterContentChecked(this);\n }\n };\n MenuComponent.ɵfac = function MenuComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || MenuComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n MenuComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MenuComponent,\n selectors: [[\"ejs-menu\"]],\n contentQueries: function MenuComponent_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, _c6, 5);\n i0.ɵɵcontentQuery(dirIndex, MenuItemsDirective, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.template = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childItems = _t.first);\n }\n },\n inputs: {\n animationSettings: \"animationSettings\",\n cssClass: \"cssClass\",\n enableHtmlSanitizer: \"enableHtmlSanitizer\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n enableScrolling: \"enableScrolling\",\n fields: \"fields\",\n filter: \"filter\",\n hamburgerMode: \"hamburgerMode\",\n hoverDelay: \"hoverDelay\",\n items: \"items\",\n locale: \"locale\",\n orientation: \"orientation\",\n showItemOnClick: \"showItemOnClick\",\n target: \"target\",\n template: \"template\",\n title: \"title\"\n },\n outputs: {\n beforeClose: \"beforeClose\",\n beforeItemRender: \"beforeItemRender\",\n beforeOpen: \"beforeOpen\",\n created: \"created\",\n onClose: \"onClose\",\n onOpen: \"onOpen\",\n select: \"select\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n decls: 0,\n vars: 0,\n template: function MenuComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n });\n __decorate([Template()], MenuComponent.prototype, \"template\", void 0);\n MenuComponent = __decorate([ComponentMixins([ComponentBase])], MenuComponent);\n return MenuComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Menu component.\n */\nlet MenuModule = /*#__PURE__*/(() => {\n class MenuModule {}\n MenuModule.ɵfac = function MenuModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || MenuModule)();\n };\n MenuModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: MenuModule\n });\n MenuModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return MenuModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Menu component with providers.\n */\nlet MenuAllModule = /*#__PURE__*/(() => {\n class MenuAllModule {}\n MenuAllModule.ɵfac = function MenuAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || MenuAllModule)();\n };\n MenuAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: MenuAllModule\n });\n MenuAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, MenuModule], MenuModule]\n });\n return MenuAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs$1 = ['colorMode', 'cssClass', 'enablePersistence', 'enableRtl', 'htmlAttributes', 'isSticky', 'locale', 'mode', 'position'];\nconst outputs$2 = ['created', 'destroyed'];\nconst twoWays$1 = [''];\n/**\n * Represents the Essential JS 2 Angular AppBar Component.\n * ```html\n * \n * ```\n */\nlet AppBarComponent = /*#__PURE__*/(() => {\n let AppBarComponent = class AppBarComponent extends AppBar {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$2);\n this.addTwoWay.call(this, twoWays$1);\n setValue('currentInstance', this, this.viewContainerRef);\n this.containerContext = new ComponentBase();\n }\n ngOnInit() {\n this.containerContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.containerContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.containerContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.containerContext.ngAfterContentChecked(this);\n }\n };\n AppBarComponent.ɵfac = function AppBarComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || AppBarComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n AppBarComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: AppBarComponent,\n selectors: [[\"ejs-appbar\"]],\n inputs: {\n colorMode: \"colorMode\",\n cssClass: \"cssClass\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n htmlAttributes: \"htmlAttributes\",\n isSticky: \"isSticky\",\n locale: \"locale\",\n mode: \"mode\",\n position: \"position\"\n },\n outputs: {\n created: \"created\",\n destroyed: \"destroyed\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n ngContentSelectors: _c14,\n decls: 1,\n vars: 0,\n template: function AppBarComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵprojection(0);\n }\n },\n encapsulation: 2,\n changeDetection: 0\n });\n AppBarComponent = __decorate([ComponentMixins([ComponentBase])], AppBarComponent);\n return AppBarComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the AppBar component.\n */\nlet AppBarModule = /*#__PURE__*/(() => {\n class AppBarModule {}\n AppBarModule.ɵfac = function AppBarModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || AppBarModule)();\n };\n AppBarModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: AppBarModule\n });\n AppBarModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return AppBarModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the AppBar component with providers.\n */\nlet AppBarAllModule = /*#__PURE__*/(() => {\n class AppBarAllModule {}\n AppBarAllModule.ɵfac = function AppBarAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || AppBarAllModule)();\n };\n AppBarAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: AppBarAllModule\n });\n AppBarAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, AppBarModule], AppBarModule]\n });\n return AppBarAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet input = ['cssClass', 'disabled', 'iconCss', 'isValid', 'label', 'optional', 'status', 'text'];\nlet outputs$1 = [];\n/**\n * 'e-step' directive represents a step of the Angular Stepper.\n * It must be contained in a Stepper component(`ejs-stepper`).\n * ```html\n * \n * \n * \n * \n * \n * \n * ```\n */\nlet StepDirective = /*#__PURE__*/(() => {\n class StepDirective extends ComplexBase {\n constructor(viewContainerRef) {\n super();\n this.viewContainerRef = viewContainerRef;\n setValue('currentInstance', this, this.viewContainerRef);\n this.registerEvents(outputs$1);\n this.directivePropList = input;\n }\n }\n StepDirective.ɵfac = function StepDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || StepDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n };\n StepDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: StepDirective,\n selectors: [[\"e-step\"]],\n inputs: {\n cssClass: \"cssClass\",\n disabled: \"disabled\",\n iconCss: \"iconCss\",\n isValid: \"isValid\",\n label: \"label\",\n optional: \"optional\",\n status: \"status\",\n text: \"text\"\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return StepDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Step Array Directive\n * @private\n */\nlet StepsDirective = /*#__PURE__*/(() => {\n class StepsDirective extends ArrayBase {\n constructor() {\n super('steps');\n }\n }\n StepsDirective.ɵfac = function StepsDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || StepsDirective)();\n };\n StepsDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: StepsDirective,\n selectors: [[\"e-steps\"]],\n contentQueries: function StepsDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, StepDirective, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.children = _t);\n }\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return StepsDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs = ['activeStep', 'animation', 'cssClass', 'enablePersistence', 'enableRtl', 'labelPosition', 'linear', 'locale', 'orientation', 'readOnly', 'showTooltip', 'stepType', 'steps', 'template', 'tooltipTemplate'];\nconst outputs = ['beforeStepRender', 'created', 'stepChanged', 'stepChanging', 'stepClick', 'activeStepChange'];\nconst twoWays = ['activeStep'];\n/**\n * Represents the EJ2 Angular Stepper Component.\n * ```html\n * \n * ```\n */\nlet StepperComponent = /*#__PURE__*/(() => {\n let StepperComponent = class StepperComponent extends Stepper {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.tags = ['steps'];\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs);\n this.addTwoWay.call(this, twoWays);\n setValue('currentInstance', this, this.viewContainerRef);\n this.containerContext = new ComponentBase();\n }\n ngOnInit() {\n this.containerContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.containerContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.containerContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.tagObjects[0].instance = this.childSteps;\n this.containerContext.ngAfterContentChecked(this);\n }\n };\n StepperComponent.ɵfac = function StepperComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || StepperComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n StepperComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: StepperComponent,\n selectors: [[\"ejs-stepper\"]],\n contentQueries: function StepperComponent_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, _c6, 5);\n i0.ɵɵcontentQuery(dirIndex, _c15, 5);\n i0.ɵɵcontentQuery(dirIndex, StepsDirective, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.template = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tooltipTemplate = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childSteps = _t.first);\n }\n },\n inputs: {\n activeStep: \"activeStep\",\n animation: \"animation\",\n cssClass: \"cssClass\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n labelPosition: \"labelPosition\",\n linear: \"linear\",\n locale: \"locale\",\n orientation: \"orientation\",\n readOnly: \"readOnly\",\n showTooltip: \"showTooltip\",\n stepType: \"stepType\",\n steps: \"steps\",\n template: \"template\",\n tooltipTemplate: \"tooltipTemplate\"\n },\n outputs: {\n beforeStepRender: \"beforeStepRender\",\n created: \"created\",\n stepChanged: \"stepChanged\",\n stepChanging: \"stepChanging\",\n stepClick: \"stepClick\",\n activeStepChange: \"activeStepChange\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n ngContentSelectors: _c17,\n decls: 1,\n vars: 0,\n template: function StepperComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef(_c16);\n i0.ɵɵprojection(0);\n }\n },\n encapsulation: 2,\n changeDetection: 0\n });\n __decorate([Template()], StepperComponent.prototype, \"template\", void 0);\n __decorate([Template()], StepperComponent.prototype, \"tooltipTemplate\", void 0);\n StepperComponent = __decorate([ComponentMixins([ComponentBase])], StepperComponent);\n return StepperComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Stepper component.\n */\nlet StepperModule = /*#__PURE__*/(() => {\n class StepperModule {}\n StepperModule.ɵfac = function StepperModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || StepperModule)();\n };\n StepperModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: StepperModule\n });\n StepperModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return StepperModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Stepper component with providers.\n */\nlet StepperAllModule = /*#__PURE__*/(() => {\n class StepperAllModule {}\n StepperAllModule.ɵfac = function StepperAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || StepperAllModule)();\n };\n StepperAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: StepperAllModule\n });\n StepperAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, StepperModule], StepperModule]\n });\n return StepperAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AccordionAllModule, AccordionComponent, AccordionItemDirective, AccordionItemsDirective, AccordionModule, AppBarAllModule, AppBarComponent, AppBarModule, BreadcrumbAllModule, BreadcrumbComponent, BreadcrumbItemDirective, BreadcrumbItemsDirective, BreadcrumbModule, CarouselAllModule, CarouselComponent, CarouselItemDirective, CarouselItemsDirective, CarouselModule, ContextMenuAllModule, ContextMenuComponent, ContextMenuModule, ItemDirective, ItemsDirective, MenuAllModule, MenuComponent, MenuItemDirective, MenuItemsDirective, MenuModule, SidebarAllModule, SidebarComponent, SidebarModule, StepDirective, StepperAllModule, StepperComponent, StepperModule, StepsDirective, TabAllModule, TabComponent, TabItemDirective, TabItemsDirective, TabModule, ToolbarAllModule, ToolbarComponent, ToolbarModule, TreeViewAllModule, TreeViewComponent, TreeViewModule };\n","import * as i0 from '@angular/core';\nimport { Injectable, EventEmitter, PLATFORM_ID, Optional, Inject, NgModule } from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\nimport { Subscription, fromEvent, merge } from 'rxjs';\nimport { filter, throttleTime } from 'rxjs/operators';\n\n/*\n * A class for managing an interrupt from an interrupt source.\n */\nclass Interrupt {\n constructor(source, options) {\n this.source = source;\n if (source.initialize) {\n source.initialize(options);\n }\n }\n /*\n * Subscribes to the interrupt using the specified function.\n * @param fn - The subscription function.\n */\n subscribe(fn) {\n this.sub = this.source.onInterrupt.subscribe(fn);\n }\n /*\n * Unsubscribes the interrupt.\n */\n unsubscribe() {\n this.sub.unsubscribe();\n this.sub = null;\n }\n /*\n * Keeps the subscription but resumes interrupt events.\n */\n resume() {\n this.source.attach();\n }\n /*\n * Keeps the subscription but pauses interrupt events.\n */\n pause() {\n this.source.detach();\n }\n}\n\n/*\n * Represents a base class for types that provide expiry detection for the Idle service.\n */\nclass IdleExpiry {\n constructor() {\n this.idValue = new Date();\n this.idlingValue = false;\n }\n /*\n * Gets or sets a unique ID for the window\n * @param id - The id.\n * @return The current id.\n */\n id(value) {\n if (value !== void 0) {\n if (!value) {\n throw new Error('A value must be specified for the ID.');\n }\n this.idValue = value;\n }\n return this.idValue;\n }\n /*\n * Gets or sets the idling value.\n * @param value - The value to set.\n * @return The idling value.\n */\n idling(value) {\n if (value !== void 0) {\n this.idlingValue = value;\n }\n return this.idlingValue;\n }\n /*\n * Returns the current Date.\n * @return The current Date.\n */\n now() {\n /* istanbul ignore next */\n return new Date();\n }\n /*\n * Returns whether or not it is expired.\n * @return True if expired; otherwise, false.\n */\n isExpired() {\n const expiry = this.last();\n return expiry != null && expiry <= this.now();\n }\n}\n\n/*\n * Represents an alternative storage for browser that doesn't support localstorage. (i.e. Safari in\n * private mode)\n * @implements Storage\n */\nclass AlternativeStorage {\n constructor() {\n this.storageMap = {};\n }\n /*\n * Returns an integer representing the number of data items stored in the storageMap object.\n */\n get length() {\n return Object.keys(this.storageMap).length;\n }\n /*\n * Remove all keys out of the storage.\n */\n clear() {\n this.storageMap = {};\n }\n /*\n * Return the key's value\n *\n * @param key - name of the key to retrieve the value of.\n * @return The key's value\n */\n getItem(key) {\n if (typeof this.storageMap[key] !== 'undefined') {\n return this.storageMap[key];\n }\n return null;\n }\n /*\n * Return the nth key in the storage\n *\n * @param index - the number of the key you want to get the name of.\n * @return The name of the key.\n */\n key(index) {\n return Object.keys(this.storageMap)[index] || null;\n }\n /*\n * Remove a key from the storage.\n *\n * @param key - the name of the key you want to remove.\n */\n removeItem(key) {\n this.storageMap[key] = undefined;\n }\n /*\n * Add a key to the storage, or update a key's value if it already exists.\n *\n * @param key - the name of the key.\n * @param value - the value you want to give to the key.\n */\n setItem(key, value) {\n this.storageMap[key] = value;\n }\n}\n\n/*\n * Represents a localStorage store.\n */\nlet LocalStorage = /*#__PURE__*/(() => {\n class LocalStorage {\n constructor() {\n this.storage = this.getStorage();\n }\n /*\n * Safari, in Private Browsing Mode, looks like it supports localStorage but all calls to setItem\n * throw QuotaExceededError. We're going to detect this and just silently drop any calls to\n * setItem\n * to avoid the entire page breaking, without having to do a check at each usage of Storage.\n */\n getStorage() {\n try {\n const storage = localStorage;\n storage.setItem('ng2IdleStorage', '');\n storage.removeItem('ng2IdleStorage');\n return storage;\n } catch (err) {\n return new AlternativeStorage();\n }\n }\n /*\n * Gets an item in the storage.\n *\n * @param value - The value to get.\n * @return The current value.\n */\n getItem(key) {\n return this.storage.getItem('ng2Idle.' + key);\n }\n /*\n * Removes an item in the storage.\n *\n * @param value - The value to remove.\n */\n removeItem(key) {\n this.storage.removeItem('ng2Idle.' + key);\n }\n /*\n * Sets an item in the storage.\n *\n * @param key - The key to set the value.\n * @param value - The value to set to the key.\n */\n setItem(key, data) {\n this.storage.setItem('ng2Idle.' + key, data);\n }\n /*\n * Represents the storage, commonly use for testing purposes.\n *\n * @param key - The key to set the value.\n * @param value - The value to set to the key.\n */\n _wrapped() {\n return this.storage;\n }\n static {\n this.ɵfac = function LocalStorage_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || LocalStorage)();\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: LocalStorage,\n factory: LocalStorage.ɵfac\n });\n }\n }\n return LocalStorage;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/*\n * Represents a localStorage store of expiry values.\n * @extends IdleExpiry\n */\nlet LocalStorageExpiry = /*#__PURE__*/(() => {\n class LocalStorageExpiry extends IdleExpiry {\n constructor(localStorage) {\n super();\n this.localStorage = localStorage;\n this.idleName = 'main';\n }\n /*\n * Gets or sets the last expiry date in localStorage.\n * If localStorage doesn't work correctly (i.e. Safari in private mode), we store the expiry value in memory.\n * @param value - The expiry value to set; omit to only return the value.\n * @return The current expiry value.\n */\n last(value) {\n if (value !== void 0) {\n this.setExpiry(value);\n }\n return this.getExpiry();\n }\n idling(value) {\n if (value !== void 0) {\n this.setIdling(value);\n }\n return this.getIdling();\n }\n /*\n * Gets the idle name.\n * @return The name of the idle.\n */\n getIdleName() {\n return this.idleName;\n }\n /*\n * Sets the idle name.\n * @param The name of the idle.\n */\n setIdleName(key) {\n if (key) {\n this.idleName = key;\n }\n }\n getExpiry() {\n const expiry = this.localStorage.getItem(this.idleName + '.expiry');\n if (expiry) {\n return new Date(parseInt(expiry, 10));\n } else {\n return null;\n }\n }\n setExpiry(value) {\n if (value) {\n this.localStorage.setItem(this.idleName + '.expiry', value.getTime().toString());\n } else {\n this.localStorage.removeItem(this.idleName + '.expiry');\n }\n }\n getIdling() {\n const idling = this.localStorage.getItem(this.idleName + '.idling');\n if (idling) {\n return idling === 'true';\n } else {\n return false;\n }\n }\n setIdling(value) {\n if (value) {\n this.localStorage.setItem(this.idleName + '.idling', value.toString());\n } else {\n this.localStorage.setItem(this.idleName + '.idling', 'false');\n }\n }\n static {\n this.ɵfac = function LocalStorageExpiry_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || LocalStorageExpiry)(i0.ɵɵinject(LocalStorage));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: LocalStorageExpiry,\n factory: LocalStorageExpiry.ɵfac\n });\n }\n }\n return LocalStorageExpiry;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nclass KeepaliveSvc {}\n\n/*\n * Indicates the desired auto resume behavior.\n */\nvar AutoResume = /*#__PURE__*/function (AutoResume) {\n /*\n * Auto resume functionality will be disabled.\n */\n AutoResume[AutoResume[\"disabled\"] = 0] = \"disabled\";\n /*\n * Can resume automatically even if they are idle.\n */\n AutoResume[AutoResume[\"idle\"] = 1] = \"idle\";\n /*\n * Can only resume automatically if they are not yet idle.\n */\n AutoResume[AutoResume[\"notIdle\"] = 2] = \"notIdle\";\n return AutoResume;\n}(AutoResume || {});\n/**\n * A service for detecting and responding to user idleness.\n */\nlet Idle = /*#__PURE__*/(() => {\n class Idle {\n constructor(expiry, zone, keepaliveSvc, platformId) {\n this.expiry = expiry;\n this.zone = zone;\n this.platformId = platformId;\n this.idle = 20 * 60; // in seconds\n this.timeoutVal = 30; // in seconds\n this.autoResume = AutoResume.idle;\n this.interrupts = new Array();\n this.running = false;\n this.keepaliveEnabled = false;\n this.onIdleStart = new EventEmitter();\n this.onIdleEnd = new EventEmitter();\n this.onTimeoutWarning = new EventEmitter();\n this.onTimeout = new EventEmitter();\n this.onInterrupt = new EventEmitter();\n if (keepaliveSvc) {\n this.keepaliveSvc = keepaliveSvc;\n this.keepaliveEnabled = true;\n }\n this.setIdling(false);\n }\n /*\n * Sets the idle name for localStorage.\n * Important to set if multiple instances of Idle with LocalStorageExpiry\n * @param The name of the idle.\n */\n setIdleName(key) {\n if (this.expiry instanceof LocalStorageExpiry) {\n this.expiry.setIdleName(key);\n } else {\n throw new Error('Cannot set expiry key name because no LocalStorageExpiry has been provided.');\n }\n }\n /*\n * Returns whether or not keepalive integration is enabled.\n * @return True if integration is enabled; otherwise, false.\n */\n getKeepaliveEnabled() {\n return this.keepaliveEnabled;\n }\n /*\n * Sets and returns whether or not keepalive integration is enabled.\n * @param True if the integration is enabled; otherwise, false.\n * @return The current value.\n */\n setKeepaliveEnabled(value) {\n if (!this.keepaliveSvc) {\n throw new Error('Cannot enable keepalive integration because no KeepaliveSvc has been provided.');\n }\n return this.keepaliveEnabled = value;\n }\n /*\n * Returns the current timeout value.\n * @return The timeout value in seconds.\n */\n getTimeout() {\n return this.timeoutVal;\n }\n /*\n * Sets the timeout value.\n * @param seconds - The timeout value in seconds. 0 or false to disable timeout feature.\n * @return The current value. If disabled, the value will be 0.\n */\n setTimeout(seconds) {\n if (seconds === false) {\n this.timeoutVal = 0;\n } else if (typeof seconds === 'number' && seconds >= 0) {\n this.timeoutVal = seconds;\n } else {\n throw new Error(\"'seconds' can only be 'false' or a positive number.\");\n }\n return this.timeoutVal;\n }\n /*\n * Returns the current idle value.\n * @return The idle value in seconds.\n */\n getIdle() {\n return this.idle;\n }\n /*\n * Sets the idle value.\n * @param seconds - The idle value in seconds.\n * @return The idle value in seconds.\n */\n setIdle(seconds) {\n if (seconds <= 0) {\n throw new Error(\"'seconds' must be greater zero\");\n }\n return this.idle = seconds;\n }\n /*\n * Returns the current autoresume value.\n * @return The current value.\n */\n getAutoResume() {\n return this.autoResume;\n }\n setAutoResume(value) {\n return this.autoResume = value;\n }\n /*\n * Sets interrupts from the specified sources.\n * @param sources - Interrupt sources.\n * @return The resulting interrupts.\n */\n setInterrupts(sources) {\n this.clearInterrupts();\n const self = this;\n for (const source of sources) {\n const options = {\n platformId: this.platformId\n };\n const sub = new Interrupt(source, options);\n sub.subscribe(args => {\n self.interrupt(args.force, args.innerArgs);\n });\n this.interrupts.push(sub);\n }\n return this.interrupts;\n }\n /*\n * Returns the current interrupts.\n * @return The current interrupts.\n */\n getInterrupts() {\n return this.interrupts;\n }\n /*\n * Pauses, unsubscribes, and clears the current interrupt subscriptions.\n */\n clearInterrupts() {\n for (const sub of this.interrupts) {\n sub.pause();\n sub.unsubscribe();\n }\n this.interrupts.length = 0;\n }\n /*\n * Returns whether or not the service is running i.e. watching for idleness.\n * @return True if service is watching; otherwise, false.\n */\n isRunning() {\n return this.running;\n }\n /*\n * Returns whether or not the user is considered idle.\n * @return True if the user is in the idle state; otherwise, false.\n */\n isIdling() {\n return this.idling;\n }\n /*\n * Starts watching for inactivity.\n */\n watch(skipExpiry) {\n this.safeClearInterval('idleHandle');\n this.safeClearInterval('timeoutHandle');\n const timeout = !this.timeoutVal ? 0 : this.timeoutVal;\n if (!skipExpiry) {\n const value = new Date(this.expiry.now().getTime() + (this.idle + timeout) * 1000);\n this.expiry.last(value);\n }\n if (this.idling) {\n this.toggleState();\n }\n if (!this.running) {\n this.startKeepalive();\n this.toggleInterrupts(true);\n }\n this.running = true;\n const watchFn = () => {\n this.zone.run(() => {\n const diff = this.getExpiryDiff(timeout);\n if (diff > 0) {\n this.safeClearInterval('idleHandle');\n this.setIdleIntervalOutsideOfZone(watchFn, 1000);\n } else {\n this.toggleState();\n }\n });\n };\n this.setIdleIntervalOutsideOfZone(watchFn, 1000);\n }\n /*\n * Allows protractor tests to call waitForAngular without hanging\n */\n setIdleIntervalOutsideOfZone(watchFn, frequency) {\n this.zone.runOutsideAngular(() => {\n this.idleHandle = setInterval(watchFn, frequency);\n });\n }\n /*\n * Stops watching for inactivity.\n */\n stop() {\n this.stopKeepalive();\n this.toggleInterrupts(false);\n this.safeClearInterval('idleHandle');\n this.safeClearInterval('timeoutHandle');\n this.setIdling(false);\n this.running = false;\n this.expiry.last(null);\n }\n /*\n * Forces a timeout event and state.\n */\n timeout() {\n this.stopKeepalive();\n this.toggleInterrupts(false);\n this.safeClearInterval('idleHandle');\n this.safeClearInterval('timeoutHandle');\n this.setIdling(true);\n this.running = false;\n this.countdown = 0;\n this.onTimeout.emit(null);\n }\n /*\n * Signals that user activity has occurred.\n * @param force - Forces watch to be called, unless they are timed out.\n * @param eventArgs - Optional source event arguments.\n */\n interrupt(force, eventArgs) {\n if (!this.running) {\n return;\n }\n if (this.timeoutVal && this.expiry.isExpired()) {\n this.timeout();\n return;\n }\n this.onInterrupt.emit(eventArgs);\n if (force === true || this.autoResume === AutoResume.idle || this.autoResume === AutoResume.notIdle && !this.expiry.idling()) {\n this.watch(force);\n }\n }\n setIdling(value) {\n this.idling = value;\n this.expiry.idling(value);\n }\n toggleState() {\n this.setIdling(!this.idling);\n if (this.idling) {\n this.onIdleStart.emit(null);\n this.stopKeepalive();\n if (this.timeoutVal > 0) {\n this.countdown = this.timeoutVal;\n this.doCountdown();\n this.setTimeoutIntervalOutsideZone(() => {\n this.doCountdownInZone();\n }, 1000);\n }\n } else {\n this.toggleInterrupts(true);\n this.onIdleEnd.emit(null);\n this.startKeepalive();\n }\n this.safeClearInterval('idleHandle');\n }\n setTimeoutIntervalOutsideZone(intervalFn, frequency) {\n this.zone.runOutsideAngular(() => {\n this.timeoutHandle = setInterval(() => {\n intervalFn();\n }, frequency);\n });\n }\n toggleInterrupts(resume) {\n for (const interrupt of this.interrupts) {\n if (resume) {\n interrupt.resume();\n } else {\n interrupt.pause();\n }\n }\n }\n getExpiryDiff(timeout) {\n const now = this.expiry.now();\n const last = this.expiry.last() || now;\n return last.getTime() - now.getTime() - timeout * 1000;\n }\n doCountdownInZone() {\n this.zone.run(() => {\n this.doCountdown();\n });\n }\n doCountdown() {\n const diff = this.getExpiryDiff(this.timeoutVal);\n if (diff > 0) {\n this.safeClearInterval('timeoutHandle');\n this.interrupt(true);\n return;\n }\n if (!this.idling) {\n return;\n }\n if (this.countdown <= 0) {\n this.timeout();\n return;\n }\n this.onTimeoutWarning.emit(this.countdown);\n const countdownMs = (this.timeoutVal - 1) * 1000 + diff;\n this.countdown = Math.round(countdownMs / 1000);\n }\n safeClearInterval(handleName) {\n const handle = this[handleName];\n if (handle !== null && typeof handle !== 'undefined') {\n clearInterval(this[handleName]);\n this[handleName] = null;\n }\n }\n startKeepalive() {\n if (!this.keepaliveSvc || !this.keepaliveEnabled) {\n return;\n }\n if (this.running) {\n this.keepaliveSvc.ping();\n }\n this.keepaliveSvc.start();\n }\n stopKeepalive() {\n if (!this.keepaliveSvc || !this.keepaliveEnabled) {\n return;\n }\n this.keepaliveSvc.stop();\n }\n /*\n * Called by Angular when destroying the instance.\n */\n ngOnDestroy() {\n this.stop();\n this.clearInterrupts();\n }\n static {\n this.ɵfac = function Idle_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || Idle)(i0.ɵɵinject(IdleExpiry), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(KeepaliveSvc, 8), i0.ɵɵinject(PLATFORM_ID, 8));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: Idle,\n factory: Idle.ɵfac\n });\n }\n }\n return Idle;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/*\n * A class for expressing arguments to interrupt events.\n */\nclass InterruptArgs {\n constructor(source, innerArgs, force = false) {\n this.source = source;\n this.innerArgs = innerArgs;\n this.force = force;\n }\n}\n\n/*\n * A base for classes that act as a source for interrupts.\n */\nclass InterruptSource {\n constructor(attachFn, detachFn) {\n this.attachFn = attachFn;\n this.detachFn = detachFn;\n this.isAttached = false;\n this.onInterrupt = new EventEmitter();\n }\n /*\n * Attaches to the specified events on the specified source.\n */\n attach() {\n // If the current zone is the 'angular' zone (a.k.a. NgZone) then re-enter this method in its parent zone\n // The parent zone is usually the '' zone but it can also be 'long-stack-trace-zone' in debug mode\n // In tests, the current zone is typically a 'ProxyZone' created by async/fakeAsync (from @angular/core/testing)\n if (Zone.current.get('isAngularZone') === true) {\n Zone.current.parent.run(() => this.attach());\n return;\n }\n if (!this.isAttached && this.attachFn) {\n this.attachFn(this);\n }\n this.isAttached = true;\n }\n /*\n * Detaches from the specified events on the specified source.\n */\n detach() {\n if (this.isAttached && this.detachFn) {\n this.detachFn(this);\n }\n this.isAttached = false;\n }\n}\nconst defaultThrottleDelay = 500;\n/*\n * An interrupt source on an EventTarget object, such as a Window or HTMLElement.\n */\nclass EventTargetInterruptSource extends InterruptSource {\n constructor(target, events, opts) {\n super(null, null);\n this.target = target;\n this.events = events;\n this.opts = opts;\n this.eventSubscription = new Subscription();\n if (typeof this.opts === 'number') {\n this.opts = {\n throttleDelay: this.opts,\n passive: false\n };\n }\n this.opts = this.opts || {\n passive: false,\n throttleDelay: defaultThrottleDelay\n };\n if (this.opts.throttleDelay === undefined || this.opts.throttleDelay === null) {\n this.opts.throttleDelay = defaultThrottleDelay;\n }\n this.throttleDelay = this.opts.throttleDelay;\n this.passive = !!this.opts.passive;\n }\n initialize(options) {\n if (options?.platformId && isPlatformServer(options.platformId)) {\n return;\n }\n const eventTarget = typeof this.target === 'function' ? this.target() : this.target;\n const opts = this.passive ? {\n passive: true\n } : null;\n const fromEvents = this.events.split(' ').map(eventName => fromEvent(eventTarget, eventName, opts));\n this.eventSrc = merge(...fromEvents);\n this.eventSrc = this.eventSrc.pipe(filter(innerArgs => !this.filterEvent(innerArgs)));\n if (this.throttleDelay > 0) {\n this.eventSrc = this.eventSrc.pipe(throttleTime(this.throttleDelay));\n }\n const handler = innerArgs => this.onInterrupt.emit(new InterruptArgs(this, innerArgs));\n this.attachFn = () => this.eventSubscription = this.eventSrc.subscribe(handler);\n this.detachFn = () => this.eventSubscription.unsubscribe();\n }\n /*\n * Checks to see if the event should be filtered. Always returns false unless overriden.\n * @param event - The original event object.\n * @return True if the event should be filtered (don't cause an interrupt); otherwise, false.\n */\n filterEvent(event) {\n return false;\n }\n /**\n * Returns the current options being used.\n * @return The current option values.\n */\n get options() {\n return {\n passive: this.passive,\n throttleDelay: this.throttleDelay\n };\n }\n}\n\n/*\n * An interrupt source that uses events on the document element (html tag).\n */\nclass DocumentInterruptSource extends EventTargetInterruptSource {\n constructor(events, options) {\n super(() => document.documentElement, events, options);\n }\n /*\n * Checks to see if the event should be filtered.\n * @param event - The original event object.\n * @return True if the event should be filtered (don't cause an interrupt); otherwise, false.\n */\n filterEvent(event) {\n // some browser bad input hacks\n if (event.type === 'mousemove' && (\n // fix for Chrome destop notifications\n event.originalEvent && event.originalEvent.movementX === 0 && event.originalEvent.movementY === 0 ||\n // fix for webkit fake mousemove\n event.movementX !== void 0 && !event.movementX || !event.movementY)) {\n return true;\n }\n return false;\n }\n}\n\n/*\n * An interrupt source on the Window object.\n */\nclass WindowInterruptSource extends EventTargetInterruptSource {\n constructor(events, options) {\n super(() => window, events, options);\n }\n}\n\n/*\n * An interrupt source on the storage event of Window.\n */\nclass StorageInterruptSource extends WindowInterruptSource {\n constructor(options = 500) {\n super('storage', options);\n }\n /*\n * Checks to see if the event should be filtered.\n * @param event - The original event object.\n * @return True if the event should be filtered (don't cause an interrupt); otherwise, false.\n */\n filterEvent(event) {\n if (event.key && event.key.indexOf('ng2Idle.') >= 0 && event.key.indexOf('.expiry') >= 0) {\n return false;\n }\n return true;\n }\n}\n\n/*\n * Represents a simple in-memory store of expiry values.\n * @extends IdleExpiry\n */\nclass SimpleExpiry extends IdleExpiry {\n constructor() {\n super();\n this.lastValue = null;\n }\n /*\n * Gets or sets the last expiry date.\n * @param value - The expiry value to set; omit to only return the value.\n * @return The current expiry value.\n */\n last(value) {\n if (value !== void 0) {\n this.lastValue = value;\n }\n return this.lastValue;\n }\n}\nlet NgIdleModule = /*#__PURE__*/(() => {\n class NgIdleModule {\n static forRoot() {\n return {\n ngModule: NgIdleModule,\n providers: [LocalStorageExpiry, {\n provide: IdleExpiry,\n useExisting: LocalStorageExpiry\n }, Idle]\n };\n }\n static {\n this.ɵfac = function NgIdleModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || NgIdleModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: NgIdleModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [LocalStorage]\n });\n }\n }\n return NgIdleModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction createDefaultInterruptSources(options) {\n return [new DocumentInterruptSource('mousemove keydown DOMMouseScroll mousewheel mousedown touchstart touchmove scroll', options), new StorageInterruptSource(options)];\n}\nconst DEFAULT_INTERRUPTSOURCES = createDefaultInterruptSources();\n\n/*\n * Public API Surface of core\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AutoResume, DEFAULT_INTERRUPTSOURCES, DocumentInterruptSource, EventTargetInterruptSource, Idle, IdleExpiry, InterruptArgs, InterruptSource, KeepaliveSvc, LocalStorage, LocalStorageExpiry, NgIdleModule, SimpleExpiry, StorageInterruptSource, WindowInterruptSource, createDefaultInterruptSources };\n","export const homePageName = 'home';\r\nexport const adminPageName = 'administration';\r\nexport const configurationAdministrationPageName = 'configuration-administration';\r\nexport const setPasswordPageName = 'set-password';\r\nexport const forgotPasswordPageName = 'forgot-password';\r\nexport const confirmEmailPageName = 'confirm-email';\r\nexport const changePasswordPageName = 'change-password';\r\nexport const editProfilePageName = 'edit-profile';\r\nexport const loginPageName = 'login';\r\nexport const parkPageName = 'parking';\r\nexport const parkingPageName = 'parking';\r\nexport const userManagementPageName = 'user-management';\r\nexport const userEditPageName = 'user-edit';\r\nexport const clientAdministrationPageName = 'client-administration';\r\nexport const companyAdministrationPageName = 'company-administration';\r\nexport const parkerAdministrationPageName = 'parker-administration';\r\nexport const tagsAdministrationPageName = 'tags-administration';\r\nexport const onBoardingWizardPageName = 'onboarding-wizard';\r\nexport const tagMasterPageName = 'tag-master';\r\n\r\nexport const parkingRangerSessionsPageName = 'parking-ranger-sessions';\r\nexport const zoneDamagePageName = 'zone-damage';\r\nexport const deviceInteractionPageName = 'device-interaction';\r\nexport const parkingCardPageName = 'parking-cards';\r\nexport const reportsPageName = 'reports';\r\nexport const savedReportsPageName = 'saved-reports';\r\nexport const tagsPerParkerPageName = 'tags-per-parker';\r\nexport const parkingManagementPageName = 'parking-management';\r\nexport const parkerRegistrationsPageName = 'parker-registrations';\r\nexport const falseRecordingsPageName = 'false-recordings';\r\nexport const parkerTurnoverPageName = 'parker-turnover';\r\nexport const parkerExtractPageName = 'parker-extract';\r\nexport const iamReportWithTagInformationPageName = 'iam-report-with-tag-information';\r\nexport const deviceStatusPageName = 'device-status';\r\nexport const parkerPerTariffPageName = 'parker-per-tariff';\r\nexport const parkerUtilizationPageName = 'parker-utilization';\r\nexport const linkParkerToUserPageName = 'link-parker-to-user';\r\nexport const automaticParkingPageName = 'automatic-parking';\r\nexport const paymentPageName = 'payment';\r\nexport const userExtractPageName = 'user-extract';\r\n","import * as pages from './page-names';\r\n\r\nexport const homeRoute = '/' + pages.homePageName;\r\nexport const changePasswordRoute = '/' + pages.changePasswordPageName;\r\nexport const forgotPasswordRoute = '/' + pages.forgotPasswordPageName;\r\nexport const editProfileRoute = '/' + pages.editProfilePageName;\r\nexport const loginRoute = '/' + pages.loginPageName;\r\nexport const userEditRoute = '/' + pages.userEditPageName;\r\n\r\nexport const adminRoute = '/' + pages.adminPageName;\r\nexport const clientAdministrationRoute = adminRoute + '/' + pages.clientAdministrationPageName;\r\nexport const userManagementRoute = adminRoute + '/' + pages.userManagementPageName;\r\nexport const configurationAdministrationRoute = adminRoute + '/' + pages.configurationAdministrationPageName;\r\nexport const companyAdministrationRoute = adminRoute + '/' + pages.companyAdministrationPageName;\r\nexport const parkerAdministrationRoute = adminRoute + '/' + pages.parkerAdministrationPageName;\r\nexport const tagsAdministrationRoute = adminRoute + '/' + pages.tagsAdministrationPageName;\r\nexport const onBoardingWizardRoute = adminRoute + '/' + pages.onBoardingWizardPageName;\r\nexport const tagMasterRoute = adminRoute + '/' + pages.tagMasterPageName;\r\n\r\nexport const parkRoute = '/' + pages.parkPageName;\r\nexport const parkingRoute = parkRoute + '/' + pages.parkingPageName;\r\nexport const automaticParkingRoute = parkRoute + '/' + pages.automaticParkingPageName;\r\nexport const parkerRegistrationRoute = parkRoute + '/' + pages.parkerRegistrationsPageName;\r\nexport const parkingRangerSessionsRoute = parkRoute + '/' + pages.parkingRangerSessionsPageName;\r\nexport const zoneDamageRoute = parkRoute + '/' + pages.zoneDamagePageName;\r\nexport const deviceInteractionRoute = parkRoute + '/' + pages.deviceInteractionPageName;\r\nexport const parkingCardRoute = parkRoute + '/' + pages.parkingCardPageName;\r\n\r\nexport const reportsRoute = '/' + pages.reportsPageName;\r\nexport const savedReportsRoute = '/' + pages.reportsPageName + '/' + pages.savedReportsPageName;\r\nexport const tagsPerParkerRoute = '/' + pages.reportsPageName + '/' + pages.tagsPerParkerPageName;\r\nexport const parkerRegistrationsRoute = '/' + pages.reportsPageName + '/' + pages.parkerRegistrationsPageName;\r\nexport const falseRecordingsRoute = '/' + pages.reportsPageName + '/' + pages.falseRecordingsPageName;\r\nexport const parkerTurnoverRoute = '/' + pages.reportsPageName + '/' + pages.parkerTurnoverPageName;\r\nexport const parkerExtractRoute = '/' + pages.reportsPageName + '/' + pages.parkerExtractPageName;\r\n// export const iamReportWithTagInformationRoute = '/' + pages.reportsPageName + '/' + pages.iamReportWithTagInformationPageName;\r\nexport const deviceStatusRoute = '/' + pages.reportsPageName + '/' + pages.deviceStatusPageName;\r\n// export const parkerPerTariffRoute = '/' + pages.reportsPageName + '/' + pages.parkerPerTariffPageName;\r\n// export const parkerUtilizationRoute = '/' + pages.reportsPageName + '/' + pages.parkerUtilizationPageName;\r\nexport const automaticParkingReportRoute = '/' + pages.reportsPageName + '/' + pages.automaticParkingPageName;\r\nexport const paymentReportRoute = '/' + pages.reportsPageName + '/' + pages.paymentPageName;\r\nexport const userExtractRoute = '/' + pages.reportsPageName + '/' + pages.userExtractPageName;\r\n","import * as i0 from '@angular/core';\nimport { Directive, ContentChildren, Component, ChangeDetectionStrategy, ContentChild, NgModule } from '@angular/core';\nimport { ComplexBase, setValue, ArrayBase, ComponentBase, Template, ComponentMixins } from '@syncfusion/ej2-angular-base';\nimport { __decorate } from 'tslib';\nimport { Dialog, Tooltip } from '@syncfusion/ej2-popups';\nconst _c0 = [\"footerTemplate\"];\nconst _c1 = [\"header\"];\nconst _c2 = [\"content\"];\nconst _c3 = [\"*\"];\nexport * from '@syncfusion/ej2-popups';\nimport { CommonModule } from '@angular/common';\nlet input = ['buttonModel', 'isFlat', 'type'];\nlet outputs$2 = ['click'];\n/**\n * 'e-button' directive represent a button of angular dialog\n * It must be contained in a Dialog component(`ej-dialog`).\n * ```html\n * \n * \n * \n * \n * \n * \n * ```\n */\nlet DialogButtonDirective = /*#__PURE__*/(() => {\n class DialogButtonDirective extends ComplexBase {\n constructor(viewContainerRef) {\n super();\n this.viewContainerRef = viewContainerRef;\n setValue('currentInstance', this, this.viewContainerRef);\n this.registerEvents(outputs$2);\n this.directivePropList = input;\n }\n }\n DialogButtonDirective.ɵfac = function DialogButtonDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || DialogButtonDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n };\n DialogButtonDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: DialogButtonDirective,\n selectors: [[\"e-dialogbutton\"]],\n inputs: {\n buttonModel: \"buttonModel\",\n isFlat: \"isFlat\",\n type: \"type\"\n },\n outputs: {\n click: \"click\"\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return DialogButtonDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * DialogButton Array Directive\n * @private\n */\nlet ButtonsDirective = /*#__PURE__*/(() => {\n class ButtonsDirective extends ArrayBase {\n constructor() {\n super('buttons');\n }\n }\n ButtonsDirective.ɵfac = function ButtonsDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ButtonsDirective)();\n };\n ButtonsDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: ButtonsDirective,\n selectors: [[\"e-buttons\"]],\n contentQueries: function ButtonsDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, DialogButtonDirective, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.children = _t);\n }\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return ButtonsDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs$1 = ['allowDragging', 'animationSettings', 'buttons', 'closeOnEscape', 'content', 'cssClass', 'enableHtmlSanitizer', 'enablePersistence', 'enableResize', 'enableRtl', 'footerTemplate', 'header', 'height', 'isModal', 'locale', 'minHeight', 'position', 'resizeHandles', 'showCloseIcon', 'target', 'visible', 'width', 'zIndex'];\nconst outputs$1 = ['beforeClose', 'beforeOpen', 'beforeSanitizeHtml', 'close', 'created', 'destroyed', 'drag', 'dragStart', 'dragStop', 'open', 'overlayClick', 'resizeStart', 'resizeStop', 'resizing', 'visibleChange'];\nconst twoWays$1 = ['visible'];\n/**\n * Represents the Angular Dialog Component\n * ```html\n * \n * ```\n */\nlet DialogComponent = /*#__PURE__*/(() => {\n let DialogComponent = class DialogComponent extends Dialog {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.tags = ['buttons'];\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$1);\n this.addTwoWay.call(this, twoWays$1);\n setValue('currentInstance', this, this.viewContainerRef);\n this.containerContext = new ComponentBase();\n }\n ngOnInit() {\n this.containerContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.containerContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.containerContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.tagObjects[0].instance = this.childButtons;\n this.containerContext.ngAfterContentChecked(this);\n }\n };\n DialogComponent.ɵfac = function DialogComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || DialogComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n DialogComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: DialogComponent,\n selectors: [[\"ejs-dialog\"]],\n contentQueries: function DialogComponent_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, _c0, 5);\n i0.ɵɵcontentQuery(dirIndex, _c1, 5);\n i0.ɵɵcontentQuery(dirIndex, _c2, 5);\n i0.ɵɵcontentQuery(dirIndex, ButtonsDirective, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerTemplate = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.header = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childButtons = _t.first);\n }\n },\n inputs: {\n allowDragging: \"allowDragging\",\n animationSettings: \"animationSettings\",\n buttons: \"buttons\",\n closeOnEscape: \"closeOnEscape\",\n content: \"content\",\n cssClass: \"cssClass\",\n enableHtmlSanitizer: \"enableHtmlSanitizer\",\n enablePersistence: \"enablePersistence\",\n enableResize: \"enableResize\",\n enableRtl: \"enableRtl\",\n footerTemplate: \"footerTemplate\",\n header: \"header\",\n height: \"height\",\n isModal: \"isModal\",\n locale: \"locale\",\n minHeight: \"minHeight\",\n position: \"position\",\n resizeHandles: \"resizeHandles\",\n showCloseIcon: \"showCloseIcon\",\n target: \"target\",\n visible: \"visible\",\n width: \"width\",\n zIndex: \"zIndex\"\n },\n outputs: {\n beforeClose: \"beforeClose\",\n beforeOpen: \"beforeOpen\",\n beforeSanitizeHtml: \"beforeSanitizeHtml\",\n close: \"close\",\n created: \"created\",\n destroyed: \"destroyed\",\n drag: \"drag\",\n dragStart: \"dragStart\",\n dragStop: \"dragStop\",\n open: \"open\",\n overlayClick: \"overlayClick\",\n resizeStart: \"resizeStart\",\n resizeStop: \"resizeStop\",\n resizing: \"resizing\",\n visibleChange: \"visibleChange\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n ngContentSelectors: _c3,\n decls: 1,\n vars: 0,\n template: function DialogComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵprojection(0);\n }\n },\n encapsulation: 2,\n changeDetection: 0\n });\n __decorate([Template()], DialogComponent.prototype, \"footerTemplate\", void 0);\n __decorate([Template()], DialogComponent.prototype, \"header\", void 0);\n __decorate([Template()], DialogComponent.prototype, \"content\", void 0);\n DialogComponent = __decorate([ComponentMixins([ComponentBase])], DialogComponent);\n return DialogComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Dialog component.\n */\nlet DialogModule = /*#__PURE__*/(() => {\n class DialogModule {}\n DialogModule.ɵfac = function DialogModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || DialogModule)();\n };\n DialogModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: DialogModule\n });\n DialogModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return DialogModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Dialog component with providers.\n */\nlet DialogAllModule = /*#__PURE__*/(() => {\n class DialogAllModule {}\n DialogAllModule.ɵfac = function DialogAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || DialogAllModule)();\n };\n DialogAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: DialogAllModule\n });\n DialogAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, DialogModule], DialogModule]\n });\n return DialogAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs = ['animation', 'closeDelay', 'container', 'content', 'cssClass', 'enableHtmlParse', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'height', 'htmlAttributes', 'isSticky', 'locale', 'mouseTrail', 'offsetX', 'offsetY', 'openDelay', 'opensOn', 'position', 'showTipPointer', 'target', 'tipPointerPosition', 'width', 'windowCollision'];\nconst outputs = ['afterClose', 'afterOpen', 'beforeClose', 'beforeCollision', 'beforeOpen', 'beforeRender', 'created', 'destroyed'];\nconst twoWays = [''];\n/**\n * Represents the Angular Tooltip component that displays a piece of information about the target element on mouse hover.\n * ```html\n * Show Tooltip\n * ```\n */\nlet TooltipComponent = /*#__PURE__*/(() => {\n let TooltipComponent = class TooltipComponent extends Tooltip {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs);\n this.addTwoWay.call(this, twoWays);\n setValue('currentInstance', this, this.viewContainerRef);\n this.containerContext = new ComponentBase();\n }\n ngOnInit() {\n this.containerContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.containerContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.containerContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.containerContext.ngAfterContentChecked(this);\n }\n };\n TooltipComponent.ɵfac = function TooltipComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TooltipComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n TooltipComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TooltipComponent,\n selectors: [[\"ejs-tooltip\"]],\n contentQueries: function TooltipComponent_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, _c2, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);\n }\n },\n inputs: {\n animation: \"animation\",\n closeDelay: \"closeDelay\",\n container: \"container\",\n content: \"content\",\n cssClass: \"cssClass\",\n enableHtmlParse: \"enableHtmlParse\",\n enableHtmlSanitizer: \"enableHtmlSanitizer\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n height: \"height\",\n htmlAttributes: \"htmlAttributes\",\n isSticky: \"isSticky\",\n locale: \"locale\",\n mouseTrail: \"mouseTrail\",\n offsetX: \"offsetX\",\n offsetY: \"offsetY\",\n openDelay: \"openDelay\",\n opensOn: \"opensOn\",\n position: \"position\",\n showTipPointer: \"showTipPointer\",\n target: \"target\",\n tipPointerPosition: \"tipPointerPosition\",\n width: \"width\",\n windowCollision: \"windowCollision\"\n },\n outputs: {\n afterClose: \"afterClose\",\n afterOpen: \"afterOpen\",\n beforeClose: \"beforeClose\",\n beforeCollision: \"beforeCollision\",\n beforeOpen: \"beforeOpen\",\n beforeRender: \"beforeRender\",\n created: \"created\",\n destroyed: \"destroyed\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n ngContentSelectors: _c3,\n decls: 1,\n vars: 0,\n template: function TooltipComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵprojection(0);\n }\n },\n encapsulation: 2,\n changeDetection: 0\n });\n __decorate([Template()], TooltipComponent.prototype, \"content\", void 0);\n TooltipComponent = __decorate([ComponentMixins([ComponentBase])], TooltipComponent);\n return TooltipComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Tooltip component.\n */\nlet TooltipModule = /*#__PURE__*/(() => {\n class TooltipModule {}\n TooltipModule.ɵfac = function TooltipModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TooltipModule)();\n };\n TooltipModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TooltipModule\n });\n TooltipModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return TooltipModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Tooltip component with providers.\n */\nlet TooltipAllModule = /*#__PURE__*/(() => {\n class TooltipAllModule {}\n TooltipAllModule.ɵfac = function TooltipAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TooltipAllModule)();\n };\n TooltipAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TooltipAllModule\n });\n TooltipAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, TooltipModule], TooltipModule]\n });\n return TooltipAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ButtonsDirective, DialogAllModule, DialogButtonDirective, DialogComponent, DialogModule, TooltipAllModule, TooltipComponent, TooltipModule };\n","import * as i0 from '@angular/core';\nimport { Injectable, EventEmitter, InjectionToken, Inject, Directive, Input, Pipe, NgModule } from '@angular/core';\nimport { of, isObservable, forkJoin, concat, defer } from 'rxjs';\nimport { take, shareReplay, map, concatMap, switchMap } from 'rxjs/operators';\nclass TranslateLoader {}\n/**\n * This loader is just a placeholder that does nothing, in case you don't need a loader at all\n */\nlet TranslateFakeLoader = /*#__PURE__*/(() => {\n class TranslateFakeLoader extends TranslateLoader {\n getTranslation(lang) {\n return of({});\n }\n static ɵfac = /* @__PURE__ */(() => {\n let ɵTranslateFakeLoader_BaseFactory;\n return function TranslateFakeLoader_Factory(__ngFactoryType__) {\n return (ɵTranslateFakeLoader_BaseFactory || (ɵTranslateFakeLoader_BaseFactory = i0.ɵɵgetInheritedFactory(TranslateFakeLoader)))(__ngFactoryType__ || TranslateFakeLoader);\n };\n })();\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: TranslateFakeLoader,\n factory: TranslateFakeLoader.ɵfac\n });\n }\n return TranslateFakeLoader;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nclass MissingTranslationHandler {}\n/**\n * This handler is just a placeholder that does nothing, in case you don't need a missing translation handler at all\n */\nlet FakeMissingTranslationHandler = /*#__PURE__*/(() => {\n class FakeMissingTranslationHandler {\n handle(params) {\n return params.key;\n }\n static ɵfac = function FakeMissingTranslationHandler_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || FakeMissingTranslationHandler)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: FakeMissingTranslationHandler,\n factory: FakeMissingTranslationHandler.ɵfac\n });\n }\n return FakeMissingTranslationHandler;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/* tslint:disable */\n/**\n * Determines if two objects or two values are equivalent.\n *\n * Two objects or values are considered equivalent if at least one of the following is true:\n *\n * * Both objects or values pass `===` comparison.\n * * Both objects or values are of the same type and all of their properties are equal by\n * comparing them with `equals`.\n *\n * @param o1 Object or value to compare.\n * @param o2 Object or value to compare.\n * @returns true if arguments are equal.\n */\nfunction equals(o1, o2) {\n if (o1 === o2) return true;\n if (o1 === null || o2 === null) return false;\n if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN\n let t1 = typeof o1,\n t2 = typeof o2,\n length,\n key,\n keySet;\n if (t1 == t2 && t1 == 'object') {\n if (Array.isArray(o1)) {\n if (!Array.isArray(o2)) return false;\n if ((length = o1.length) == o2.length) {\n for (key = 0; key < length; key++) {\n if (!equals(o1[key], o2[key])) return false;\n }\n return true;\n }\n } else {\n if (Array.isArray(o2)) {\n return false;\n }\n keySet = Object.create(null);\n for (key in o1) {\n if (!equals(o1[key], o2[key])) {\n return false;\n }\n keySet[key] = true;\n }\n for (key in o2) {\n if (!(key in keySet) && typeof o2[key] !== 'undefined') {\n return false;\n }\n }\n return true;\n }\n }\n return false;\n}\n/* tslint:enable */\nfunction isDefined(value) {\n return typeof value !== 'undefined' && value !== null;\n}\nfunction isObject(item) {\n return item && typeof item === 'object' && !Array.isArray(item);\n}\nfunction mergeDeep(target, source) {\n let output = Object.assign({}, target);\n if (isObject(target) && isObject(source)) {\n Object.keys(source).forEach(key => {\n if (isObject(source[key])) {\n if (!(key in target)) {\n Object.assign(output, {\n [key]: source[key]\n });\n } else {\n output[key] = mergeDeep(target[key], source[key]);\n }\n } else {\n Object.assign(output, {\n [key]: source[key]\n });\n }\n });\n }\n return output;\n}\nclass TranslateParser {}\nlet TranslateDefaultParser = /*#__PURE__*/(() => {\n class TranslateDefaultParser extends TranslateParser {\n templateMatcher = /{{\\s?([^{}\\s]*)\\s?}}/g;\n interpolate(expr, params) {\n let result;\n if (typeof expr === 'string') {\n result = this.interpolateString(expr, params);\n } else if (typeof expr === 'function') {\n result = this.interpolateFunction(expr, params);\n } else {\n // this should not happen, but an unrelated TranslateService test depends on it\n result = expr;\n }\n return result;\n }\n getValue(target, key) {\n let keys = typeof key === 'string' ? key.split('.') : [key];\n key = '';\n do {\n key += keys.shift();\n if (isDefined(target) && isDefined(target[key]) && (typeof target[key] === 'object' || !keys.length)) {\n target = target[key];\n key = '';\n } else if (!keys.length) {\n target = undefined;\n } else {\n key += '.';\n }\n } while (keys.length);\n return target;\n }\n interpolateFunction(fn, params) {\n return fn(params);\n }\n interpolateString(expr, params) {\n if (!params) {\n return expr;\n }\n return expr.replace(this.templateMatcher, (substring, b) => {\n let r = this.getValue(params, b);\n return isDefined(r) ? r : substring;\n });\n }\n static ɵfac = /* @__PURE__ */(() => {\n let ɵTranslateDefaultParser_BaseFactory;\n return function TranslateDefaultParser_Factory(__ngFactoryType__) {\n return (ɵTranslateDefaultParser_BaseFactory || (ɵTranslateDefaultParser_BaseFactory = i0.ɵɵgetInheritedFactory(TranslateDefaultParser)))(__ngFactoryType__ || TranslateDefaultParser);\n };\n })();\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: TranslateDefaultParser,\n factory: TranslateDefaultParser.ɵfac\n });\n }\n return TranslateDefaultParser;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nclass TranslateCompiler {}\n/**\n * This compiler is just a placeholder that does nothing, in case you don't need a compiler at all\n */\nlet TranslateFakeCompiler = /*#__PURE__*/(() => {\n class TranslateFakeCompiler extends TranslateCompiler {\n compile(value, lang) {\n return value;\n }\n compileTranslations(translations, lang) {\n return translations;\n }\n static ɵfac = /* @__PURE__ */(() => {\n let ɵTranslateFakeCompiler_BaseFactory;\n return function TranslateFakeCompiler_Factory(__ngFactoryType__) {\n return (ɵTranslateFakeCompiler_BaseFactory || (ɵTranslateFakeCompiler_BaseFactory = i0.ɵɵgetInheritedFactory(TranslateFakeCompiler)))(__ngFactoryType__ || TranslateFakeCompiler);\n };\n })();\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: TranslateFakeCompiler,\n factory: TranslateFakeCompiler.ɵfac\n });\n }\n return TranslateFakeCompiler;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nclass TranslateStore {\n /**\n * The default lang to fallback when translations are missing on the current lang\n */\n defaultLang;\n /**\n * The lang currently used\n */\n currentLang = this.defaultLang;\n /**\n * a list of translations per lang\n */\n translations = {};\n /**\n * an array of langs\n */\n langs = [];\n /**\n * An EventEmitter to listen to translation change events\n * onTranslationChange.subscribe((params: TranslationChangeEvent) => {\n * // do something\n * });\n */\n onTranslationChange = new EventEmitter();\n /**\n * An EventEmitter to listen to lang change events\n * onLangChange.subscribe((params: LangChangeEvent) => {\n * // do something\n * });\n */\n onLangChange = new EventEmitter();\n /**\n * An EventEmitter to listen to default lang change events\n * onDefaultLangChange.subscribe((params: DefaultLangChangeEvent) => {\n * // do something\n * });\n */\n onDefaultLangChange = new EventEmitter();\n}\nconst USE_STORE = new InjectionToken('USE_STORE');\nconst USE_DEFAULT_LANG = new InjectionToken('USE_DEFAULT_LANG');\nconst DEFAULT_LANGUAGE = new InjectionToken('DEFAULT_LANGUAGE');\nconst USE_EXTEND = new InjectionToken('USE_EXTEND');\nlet TranslateService = /*#__PURE__*/(() => {\n class TranslateService {\n store;\n currentLoader;\n compiler;\n parser;\n missingTranslationHandler;\n useDefaultLang;\n isolate;\n extend;\n loadingTranslations;\n pending = false;\n _onTranslationChange = new EventEmitter();\n _onLangChange = new EventEmitter();\n _onDefaultLangChange = new EventEmitter();\n _defaultLang;\n _currentLang;\n _langs = [];\n _translations = {};\n _translationRequests = {};\n /**\n * An EventEmitter to listen to translation change events\n * onTranslationChange.subscribe((params: TranslationChangeEvent) => {\n * // do something\n * });\n */\n get onTranslationChange() {\n return this.isolate ? this._onTranslationChange : this.store.onTranslationChange;\n }\n /**\n * An EventEmitter to listen to lang change events\n * onLangChange.subscribe((params: LangChangeEvent) => {\n * // do something\n * });\n */\n get onLangChange() {\n return this.isolate ? this._onLangChange : this.store.onLangChange;\n }\n /**\n * An EventEmitter to listen to default lang change events\n * onDefaultLangChange.subscribe((params: DefaultLangChangeEvent) => {\n * // do something\n * });\n */\n get onDefaultLangChange() {\n return this.isolate ? this._onDefaultLangChange : this.store.onDefaultLangChange;\n }\n /**\n * The default lang to fallback when translations are missing on the current lang\n */\n get defaultLang() {\n return this.isolate ? this._defaultLang : this.store.defaultLang;\n }\n set defaultLang(defaultLang) {\n if (this.isolate) {\n this._defaultLang = defaultLang;\n } else {\n this.store.defaultLang = defaultLang;\n }\n }\n /**\n * The lang currently used\n */\n get currentLang() {\n return this.isolate ? this._currentLang : this.store.currentLang;\n }\n set currentLang(currentLang) {\n if (this.isolate) {\n this._currentLang = currentLang;\n } else {\n this.store.currentLang = currentLang;\n }\n }\n /**\n * an array of langs\n */\n get langs() {\n return this.isolate ? this._langs : this.store.langs;\n }\n set langs(langs) {\n if (this.isolate) {\n this._langs = langs;\n } else {\n this.store.langs = langs;\n }\n }\n /**\n * a list of translations per lang\n */\n get translations() {\n return this.isolate ? this._translations : this.store.translations;\n }\n set translations(translations) {\n if (this.isolate) {\n this._translations = translations;\n } else {\n this.store.translations = translations;\n }\n }\n /**\n *\n * @param store an instance of the store (that is supposed to be unique)\n * @param currentLoader An instance of the loader currently used\n * @param compiler An instance of the compiler currently used\n * @param parser An instance of the parser currently used\n * @param missingTranslationHandler A handler for missing translations.\n * @param useDefaultLang whether we should use default language translation when current language translation is missing.\n * @param isolate whether this service should use the store or not\n * @param extend To make a child module extend (and use) translations from parent modules.\n * @param defaultLanguage Set the default language using configuration\n */\n constructor(store, currentLoader, compiler, parser, missingTranslationHandler, useDefaultLang = true, isolate = false, extend = false, defaultLanguage) {\n this.store = store;\n this.currentLoader = currentLoader;\n this.compiler = compiler;\n this.parser = parser;\n this.missingTranslationHandler = missingTranslationHandler;\n this.useDefaultLang = useDefaultLang;\n this.isolate = isolate;\n this.extend = extend;\n /** set the default language from configuration */\n if (defaultLanguage) {\n this.setDefaultLang(defaultLanguage);\n }\n }\n /**\n * Sets the default language to use as a fallback\n */\n setDefaultLang(lang) {\n if (lang === this.defaultLang) {\n return;\n }\n let pending = this.retrieveTranslations(lang);\n if (typeof pending !== \"undefined\") {\n // on init set the defaultLang immediately\n if (this.defaultLang == null) {\n this.defaultLang = lang;\n }\n pending.pipe(take(1)).subscribe(res => {\n this.changeDefaultLang(lang);\n });\n } else {\n // we already have this language\n this.changeDefaultLang(lang);\n }\n }\n /**\n * Gets the default language used\n */\n getDefaultLang() {\n return this.defaultLang;\n }\n /**\n * Changes the lang currently used\n */\n use(lang) {\n // don't change the language if the language given is already selected\n if (lang === this.currentLang) {\n return of(this.translations[lang]);\n }\n let pending = this.retrieveTranslations(lang);\n if (typeof pending !== \"undefined\") {\n // on init set the currentLang immediately\n if (!this.currentLang) {\n this.currentLang = lang;\n }\n pending.pipe(take(1)).subscribe(res => {\n this.changeLang(lang);\n });\n return pending;\n } else {\n // we have this language, return an Observable\n this.changeLang(lang);\n return of(this.translations[lang]);\n }\n }\n /**\n * Retrieves the given translations\n */\n retrieveTranslations(lang) {\n let pending;\n // if this language is unavailable or extend is true, ask for it\n if (typeof this.translations[lang] === \"undefined\" || this.extend) {\n this._translationRequests[lang] = this._translationRequests[lang] || this.getTranslation(lang);\n pending = this._translationRequests[lang];\n }\n return pending;\n }\n /**\n * Gets an object of translations for a given language with the current loader\n * and passes it through the compiler\n */\n getTranslation(lang) {\n this.pending = true;\n const loadingTranslations = this.currentLoader.getTranslation(lang).pipe(shareReplay(1), take(1));\n this.loadingTranslations = loadingTranslations.pipe(map(res => this.compiler.compileTranslations(res, lang)), shareReplay(1), take(1));\n this.loadingTranslations.subscribe({\n next: res => {\n this.translations[lang] = this.extend && this.translations[lang] ? {\n ...res,\n ...this.translations[lang]\n } : res;\n this.updateLangs();\n this.pending = false;\n },\n error: err => {\n this.pending = false;\n }\n });\n return loadingTranslations;\n }\n /**\n * Manually sets an object of translations for a given language\n * after passing it through the compiler\n */\n setTranslation(lang, translations, shouldMerge = false) {\n translations = this.compiler.compileTranslations(translations, lang);\n if ((shouldMerge || this.extend) && this.translations[lang]) {\n this.translations[lang] = mergeDeep(this.translations[lang], translations);\n } else {\n this.translations[lang] = translations;\n }\n this.updateLangs();\n this.onTranslationChange.emit({\n lang: lang,\n translations: this.translations[lang]\n });\n }\n /**\n * Returns an array of currently available langs\n */\n getLangs() {\n return this.langs;\n }\n /**\n * Add available langs\n */\n addLangs(langs) {\n langs.forEach(lang => {\n if (this.langs.indexOf(lang) === -1) {\n this.langs.push(lang);\n }\n });\n }\n /**\n * Update the list of available langs\n */\n updateLangs() {\n this.addLangs(Object.keys(this.translations));\n }\n /**\n * Returns the parsed result of the translations\n */\n getParsedResult(translations, key, interpolateParams) {\n let res;\n if (key instanceof Array) {\n let result = {},\n observables = false;\n for (let k of key) {\n result[k] = this.getParsedResult(translations, k, interpolateParams);\n if (isObservable(result[k])) {\n observables = true;\n }\n }\n if (observables) {\n const sources = key.map(k => isObservable(result[k]) ? result[k] : of(result[k]));\n return forkJoin(sources).pipe(map(arr => {\n let obj = {};\n arr.forEach((value, index) => {\n obj[key[index]] = value;\n });\n return obj;\n }));\n }\n return result;\n }\n if (translations) {\n res = this.parser.interpolate(this.parser.getValue(translations, key), interpolateParams);\n }\n if (typeof res === \"undefined\" && this.defaultLang != null && this.defaultLang !== this.currentLang && this.useDefaultLang) {\n res = this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang], key), interpolateParams);\n }\n if (typeof res === \"undefined\") {\n let params = {\n key,\n translateService: this\n };\n if (typeof interpolateParams !== 'undefined') {\n params.interpolateParams = interpolateParams;\n }\n res = this.missingTranslationHandler.handle(params);\n }\n return typeof res !== \"undefined\" ? res : key;\n }\n /**\n * Gets the translated value of a key (or an array of keys)\n * @returns the translated key, or an object of translated keys\n */\n get(key, interpolateParams) {\n if (!isDefined(key) || !key.length) {\n throw new Error(`Parameter \"key\" required`);\n }\n // check if we are loading a new translation to use\n if (this.pending) {\n return this.loadingTranslations.pipe(concatMap(res => {\n res = this.getParsedResult(res, key, interpolateParams);\n return isObservable(res) ? res : of(res);\n }));\n } else {\n let res = this.getParsedResult(this.translations[this.currentLang], key, interpolateParams);\n return isObservable(res) ? res : of(res);\n }\n }\n /**\n * Returns a stream of translated values of a key (or an array of keys) which updates\n * whenever the translation changes.\n * @returns A stream of the translated key, or an object of translated keys\n */\n getStreamOnTranslationChange(key, interpolateParams) {\n if (!isDefined(key) || !key.length) {\n throw new Error(`Parameter \"key\" required`);\n }\n return concat(defer(() => this.get(key, interpolateParams)), this.onTranslationChange.pipe(switchMap(event => {\n const res = this.getParsedResult(event.translations, key, interpolateParams);\n if (typeof res.subscribe === 'function') {\n return res;\n } else {\n return of(res);\n }\n })));\n }\n /**\n * Returns a stream of translated values of a key (or an array of keys) which updates\n * whenever the language changes.\n * @returns A stream of the translated key, or an object of translated keys\n */\n stream(key, interpolateParams) {\n if (!isDefined(key) || !key.length) {\n throw new Error(`Parameter \"key\" required`);\n }\n return concat(defer(() => this.get(key, interpolateParams)), this.onLangChange.pipe(switchMap(event => {\n const res = this.getParsedResult(event.translations, key, interpolateParams);\n return isObservable(res) ? res : of(res);\n })));\n }\n /**\n * Returns a translation instantly from the internal state of loaded translation.\n * All rules regarding the current language, the preferred language of even fallback languages will be used except any promise handling.\n */\n instant(key, interpolateParams) {\n if (!isDefined(key) || !key.length) {\n throw new Error(`Parameter \"key\" required`);\n }\n let res = this.getParsedResult(this.translations[this.currentLang], key, interpolateParams);\n if (isObservable(res)) {\n if (key instanceof Array) {\n let obj = {};\n key.forEach((value, index) => {\n obj[key[index]] = key[index];\n });\n return obj;\n }\n return key;\n } else {\n return res;\n }\n }\n /**\n * Sets the translated value of a key, after compiling it\n */\n set(key, value, lang = this.currentLang) {\n this.translations[lang][key] = this.compiler.compile(value, lang);\n this.updateLangs();\n this.onTranslationChange.emit({\n lang: lang,\n translations: this.translations[lang]\n });\n }\n /**\n * Changes the current lang\n */\n changeLang(lang) {\n this.currentLang = lang;\n this.onLangChange.emit({\n lang: lang,\n translations: this.translations[lang]\n });\n // if there is no default lang, use the one that we just set\n if (this.defaultLang == null) {\n this.changeDefaultLang(lang);\n }\n }\n /**\n * Changes the default lang\n */\n changeDefaultLang(lang) {\n this.defaultLang = lang;\n this.onDefaultLangChange.emit({\n lang: lang,\n translations: this.translations[lang]\n });\n }\n /**\n * Allows to reload the lang file from the file\n */\n reloadLang(lang) {\n this.resetLang(lang);\n return this.getTranslation(lang);\n }\n /**\n * Deletes inner translation\n */\n resetLang(lang) {\n this._translationRequests[lang] = undefined;\n this.translations[lang] = undefined;\n }\n /**\n * Returns the language code name from the browser, e.g. \"de\"\n */\n getBrowserLang() {\n if (typeof window === 'undefined' || typeof window.navigator === 'undefined') {\n return undefined;\n }\n let browserLang = window.navigator.languages ? window.navigator.languages[0] : null;\n browserLang = browserLang || window.navigator.language || window.navigator.browserLanguage || window.navigator.userLanguage;\n if (typeof browserLang === 'undefined') {\n return undefined;\n }\n if (browserLang.indexOf('-') !== -1) {\n browserLang = browserLang.split('-')[0];\n }\n if (browserLang.indexOf('_') !== -1) {\n browserLang = browserLang.split('_')[0];\n }\n return browserLang;\n }\n /**\n * Returns the culture language code name from the browser, e.g. \"de-DE\"\n */\n getBrowserCultureLang() {\n if (typeof window === 'undefined' || typeof window.navigator === 'undefined') {\n return undefined;\n }\n let browserCultureLang = window.navigator.languages ? window.navigator.languages[0] : null;\n browserCultureLang = browserCultureLang || window.navigator.language || window.navigator.browserLanguage || window.navigator.userLanguage;\n return browserCultureLang;\n }\n static ɵfac = function TranslateService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TranslateService)(i0.ɵɵinject(TranslateStore), i0.ɵɵinject(TranslateLoader), i0.ɵɵinject(TranslateCompiler), i0.ɵɵinject(TranslateParser), i0.ɵɵinject(MissingTranslationHandler), i0.ɵɵinject(USE_DEFAULT_LANG), i0.ɵɵinject(USE_STORE), i0.ɵɵinject(USE_EXTEND), i0.ɵɵinject(DEFAULT_LANGUAGE));\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: TranslateService,\n factory: TranslateService.ɵfac\n });\n }\n return TranslateService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TranslateDirective = /*#__PURE__*/(() => {\n class TranslateDirective {\n translateService;\n element;\n _ref;\n key;\n lastParams;\n currentParams;\n onLangChangeSub;\n onDefaultLangChangeSub;\n onTranslationChangeSub;\n set translate(key) {\n if (key) {\n this.key = key;\n this.checkNodes();\n }\n }\n set translateParams(params) {\n if (!equals(this.currentParams, params)) {\n this.currentParams = params;\n this.checkNodes(true);\n }\n }\n constructor(translateService, element, _ref) {\n this.translateService = translateService;\n this.element = element;\n this._ref = _ref;\n // subscribe to onTranslationChange event, in case the translations of the current lang change\n if (!this.onTranslationChangeSub) {\n this.onTranslationChangeSub = this.translateService.onTranslationChange.subscribe(event => {\n if (event.lang === this.translateService.currentLang) {\n this.checkNodes(true, event.translations);\n }\n });\n }\n // subscribe to onLangChange event, in case the language changes\n if (!this.onLangChangeSub) {\n this.onLangChangeSub = this.translateService.onLangChange.subscribe(event => {\n this.checkNodes(true, event.translations);\n });\n }\n // subscribe to onDefaultLangChange event, in case the default language changes\n if (!this.onDefaultLangChangeSub) {\n this.onDefaultLangChangeSub = this.translateService.onDefaultLangChange.subscribe(event => {\n this.checkNodes(true);\n });\n }\n }\n ngAfterViewChecked() {\n this.checkNodes();\n }\n checkNodes(forceUpdate = false, translations) {\n let nodes = this.element.nativeElement.childNodes;\n // if the element is empty\n if (!nodes.length) {\n // we add the key as content\n this.setContent(this.element.nativeElement, this.key);\n nodes = this.element.nativeElement.childNodes;\n }\n for (let i = 0; i < nodes.length; ++i) {\n let node = nodes[i];\n if (node.nodeType === 3) {\n // node type 3 is a text node\n let key;\n if (forceUpdate) {\n node.lastKey = null;\n }\n if (isDefined(node.lookupKey)) {\n key = node.lookupKey;\n } else if (this.key) {\n key = this.key;\n } else {\n let content = this.getContent(node);\n let trimmedContent = content.trim();\n if (trimmedContent.length) {\n node.lookupKey = trimmedContent;\n // we want to use the content as a key, not the translation value\n if (content !== node.currentValue) {\n key = trimmedContent;\n // the content was changed from the user, we'll use it as a reference if needed\n node.originalContent = content || node.originalContent;\n } else if (node.originalContent) {\n // the content seems ok, but the lang has changed\n // the current content is the translation, not the key, use the last real content as key\n key = node.originalContent.trim();\n } else if (content !== node.currentValue) {\n // we want to use the content as a key, not the translation value\n key = trimmedContent;\n // the content was changed from the user, we'll use it as a reference if needed\n node.originalContent = content || node.originalContent;\n }\n }\n }\n this.updateValue(key, node, translations);\n }\n }\n }\n updateValue(key, node, translations) {\n if (key) {\n if (node.lastKey === key && this.lastParams === this.currentParams) {\n return;\n }\n this.lastParams = this.currentParams;\n let onTranslation = res => {\n if (res !== key) {\n node.lastKey = key;\n }\n if (!node.originalContent) {\n node.originalContent = this.getContent(node);\n }\n node.currentValue = isDefined(res) ? res : node.originalContent || key;\n // we replace in the original content to preserve spaces that we might have trimmed\n this.setContent(node, this.key ? node.currentValue : node.originalContent.replace(key, node.currentValue));\n this._ref.markForCheck();\n };\n if (isDefined(translations)) {\n let res = this.translateService.getParsedResult(translations, key, this.currentParams);\n if (isObservable(res)) {\n res.subscribe({\n next: onTranslation\n });\n } else {\n onTranslation(res);\n }\n } else {\n this.translateService.get(key, this.currentParams).subscribe(onTranslation);\n }\n }\n }\n getContent(node) {\n return isDefined(node.textContent) ? node.textContent : node.data;\n }\n setContent(node, content) {\n if (isDefined(node.textContent)) {\n node.textContent = content;\n } else {\n node.data = content;\n }\n }\n ngOnDestroy() {\n if (this.onLangChangeSub) {\n this.onLangChangeSub.unsubscribe();\n }\n if (this.onDefaultLangChangeSub) {\n this.onDefaultLangChangeSub.unsubscribe();\n }\n if (this.onTranslationChangeSub) {\n this.onTranslationChangeSub.unsubscribe();\n }\n }\n static ɵfac = function TranslateDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TranslateDirective)(i0.ɵɵdirectiveInject(TranslateService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: TranslateDirective,\n selectors: [[\"\", \"translate\", \"\"], [\"\", \"ngx-translate\", \"\"]],\n inputs: {\n translate: \"translate\",\n translateParams: \"translateParams\"\n }\n });\n }\n return TranslateDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TranslatePipe = /*#__PURE__*/(() => {\n class TranslatePipe {\n translate;\n _ref;\n value = '';\n lastKey = null;\n lastParams = [];\n onTranslationChange;\n onLangChange;\n onDefaultLangChange;\n constructor(translate, _ref) {\n this.translate = translate;\n this._ref = _ref;\n }\n updateValue(key, interpolateParams, translations) {\n let onTranslation = res => {\n this.value = res !== undefined ? res : key;\n this.lastKey = key;\n this._ref.markForCheck();\n };\n if (translations) {\n let res = this.translate.getParsedResult(translations, key, interpolateParams);\n if (isObservable(res.subscribe)) {\n res.subscribe(onTranslation);\n } else {\n onTranslation(res);\n }\n }\n this.translate.get(key, interpolateParams).subscribe(onTranslation);\n }\n transform(query, ...args) {\n if (!query || !query.length) {\n return query;\n }\n // if we ask another time for the same key, return the last value\n if (equals(query, this.lastKey) && equals(args, this.lastParams)) {\n return this.value;\n }\n let interpolateParams = undefined;\n if (isDefined(args[0]) && args.length) {\n if (typeof args[0] === 'string' && args[0].length) {\n // we accept objects written in the template such as {n:1}, {'n':1}, {n:'v'}\n // which is why we might need to change it to real JSON objects such as {\"n\":1} or {\"n\":\"v\"}\n let validArgs = args[0].replace(/(\\')?([a-zA-Z0-9_]+)(\\')?(\\s)?:/g, '\"$2\":').replace(/:(\\s)?(\\')(.*?)(\\')/g, ':\"$3\"');\n try {\n interpolateParams = JSON.parse(validArgs);\n } catch (e) {\n throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${args[0]}`);\n }\n } else if (typeof args[0] === 'object' && !Array.isArray(args[0])) {\n interpolateParams = args[0];\n }\n }\n // store the query, in case it changes\n this.lastKey = query;\n // store the params, in case they change\n this.lastParams = args;\n // set the value\n this.updateValue(query, interpolateParams);\n // if there is a subscription to onLangChange, clean it\n this._dispose();\n // subscribe to onTranslationChange event, in case the translations change\n if (!this.onTranslationChange) {\n this.onTranslationChange = this.translate.onTranslationChange.subscribe(event => {\n if (this.lastKey && event.lang === this.translate.currentLang) {\n this.lastKey = null;\n this.updateValue(query, interpolateParams, event.translations);\n }\n });\n }\n // subscribe to onLangChange event, in case the language changes\n if (!this.onLangChange) {\n this.onLangChange = this.translate.onLangChange.subscribe(event => {\n if (this.lastKey) {\n this.lastKey = null; // we want to make sure it doesn't return the same value until it's been updated\n this.updateValue(query, interpolateParams, event.translations);\n }\n });\n }\n // subscribe to onDefaultLangChange event, in case the default language changes\n if (!this.onDefaultLangChange) {\n this.onDefaultLangChange = this.translate.onDefaultLangChange.subscribe(() => {\n if (this.lastKey) {\n this.lastKey = null; // we want to make sure it doesn't return the same value until it's been updated\n this.updateValue(query, interpolateParams);\n }\n });\n }\n return this.value;\n }\n /**\n * Clean any existing subscription to change events\n */\n _dispose() {\n if (typeof this.onTranslationChange !== 'undefined') {\n this.onTranslationChange.unsubscribe();\n this.onTranslationChange = undefined;\n }\n if (typeof this.onLangChange !== 'undefined') {\n this.onLangChange.unsubscribe();\n this.onLangChange = undefined;\n }\n if (typeof this.onDefaultLangChange !== 'undefined') {\n this.onDefaultLangChange.unsubscribe();\n this.onDefaultLangChange = undefined;\n }\n }\n ngOnDestroy() {\n this._dispose();\n }\n static ɵfac = function TranslatePipe_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TranslatePipe)(i0.ɵɵdirectiveInject(TranslateService, 16), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef, 16));\n };\n static ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n name: \"translate\",\n type: TranslatePipe,\n pure: false\n });\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: TranslatePipe,\n factory: TranslatePipe.ɵfac\n });\n }\n return TranslatePipe;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TranslateModule = /*#__PURE__*/(() => {\n class TranslateModule {\n /**\n * Use this method in your root module to provide the TranslateService\n */\n static forRoot(config = {}) {\n return {\n ngModule: TranslateModule,\n providers: [config.loader || {\n provide: TranslateLoader,\n useClass: TranslateFakeLoader\n }, config.compiler || {\n provide: TranslateCompiler,\n useClass: TranslateFakeCompiler\n }, config.parser || {\n provide: TranslateParser,\n useClass: TranslateDefaultParser\n }, config.missingTranslationHandler || {\n provide: MissingTranslationHandler,\n useClass: FakeMissingTranslationHandler\n }, TranslateStore, {\n provide: USE_STORE,\n useValue: config.isolate\n }, {\n provide: USE_DEFAULT_LANG,\n useValue: config.useDefaultLang\n }, {\n provide: USE_EXTEND,\n useValue: config.extend\n }, {\n provide: DEFAULT_LANGUAGE,\n useValue: config.defaultLanguage\n }, TranslateService]\n };\n }\n /**\n * Use this method in your other (non root) modules to import the directive/pipe\n */\n static forChild(config = {}) {\n return {\n ngModule: TranslateModule,\n providers: [config.loader || {\n provide: TranslateLoader,\n useClass: TranslateFakeLoader\n }, config.compiler || {\n provide: TranslateCompiler,\n useClass: TranslateFakeCompiler\n }, config.parser || {\n provide: TranslateParser,\n useClass: TranslateDefaultParser\n }, config.missingTranslationHandler || {\n provide: MissingTranslationHandler,\n useClass: FakeMissingTranslationHandler\n }, {\n provide: USE_STORE,\n useValue: config.isolate\n }, {\n provide: USE_DEFAULT_LANG,\n useValue: config.useDefaultLang\n }, {\n provide: USE_EXTEND,\n useValue: config.extend\n }, {\n provide: DEFAULT_LANGUAGE,\n useValue: config.defaultLanguage\n }, TranslateService]\n };\n }\n static ɵfac = function TranslateModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TranslateModule)();\n };\n static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TranslateModule\n });\n static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n }\n return TranslateModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { DEFAULT_LANGUAGE, FakeMissingTranslationHandler, MissingTranslationHandler, TranslateCompiler, TranslateDefaultParser, TranslateDirective, TranslateFakeCompiler, TranslateFakeLoader, TranslateLoader, TranslateModule, TranslateParser, TranslatePipe, TranslateService, TranslateStore, USE_DEFAULT_LANG, USE_EXTEND, USE_STORE };\n","import { Subject, Subscription } from 'rxjs';\r\nimport { Injectable } from '@angular/core';\r\n\r\nexport class ModalDialog {\r\n public title: string;\r\n public message: string;\r\n public showFooter: boolean;\r\n public onOkSubject = new Subject();\r\n public onCancelSubject = new Subject();\r\n\r\n constructor(title: string, message: string, showFooter: boolean = false) {\r\n this.title = title;\r\n this.message = message;\r\n this.showFooter = showFooter;\r\n }\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ModalService {\r\n public dialogSubject = new Subject();\r\n\r\n private dialogStack: ModalDialog[] = [];\r\n private subscription = new Subscription();\r\n\r\n constructor() {\r\n }\r\n\r\n public showMessageDialog(title: string, message: string): ModalDialog {\r\n const dialog = new ModalDialog(title, message);\r\n return this.showDialog(dialog);\r\n }\r\n\r\n public showOkCancelDialog(title: string, message: string): ModalDialog {\r\n const dialog = new ModalDialog(title, message, true);\r\n return this.showDialog(dialog);\r\n }\r\n\r\n public closeDialog(dialog: ModalDialog) {\r\n const dlgIndex = this.dialogStack.findIndex((dlg) => dlg === dialog);\r\n if (dlgIndex < 0) {\r\n return;\r\n }\r\n this.dialogStack.splice(dlgIndex, 1);\r\n if (dlgIndex === 0 && !this.dialogStack.length) {\r\n this.dialogSubject.next(null);\r\n }\r\n if (this.dialogStack.length > 0) {\r\n this.dialogSubject.next(this.dialogStack[0]);\r\n }\r\n }\r\n\r\n private showDialog(dialog: ModalDialog): ModalDialog {\r\n if (dialog) {\r\n this.dialogStack.unshift(dialog);\r\n }\r\n this.triggerModal(dialog);\r\n return dialog;\r\n }\r\n\r\n private triggerModal(dialog: ModalDialog) {\r\n if (dialog) {\r\n this.subscription.add(dialog.onCancelSubject.subscribe(() => this.removeActiveDialog()));\r\n this.subscription.add(dialog.onOkSubject.subscribe(() => this.removeActiveDialog()));\r\n }\r\n this.dialogSubject.next(dialog);\r\n }\r\n\r\n private removeActiveDialog() {\r\n this.subscription.unsubscribe();\r\n this.subscription = new Subscription();\r\n this.dialogStack.splice(0, 1);\r\n }\r\n}\r\n","import { ModalDialog, ModalService } from './modal.service';\r\nimport { ChangeDetectorRef, Component, OnInit, ViewChild } from '@angular/core';\r\nimport { DialogComponent as SyncfusionDialogComponent, DialogModule } from '@syncfusion/ej2-angular-popups';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgClass, NgIf } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-modal',\r\n templateUrl: './modal.component.html',\r\n styleUrls: ['./modal.component.scss'],\r\n standalone: true,\r\n imports: [\r\n DialogModule,\r\n NgClass,\r\n NgIf,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class ModalComponent implements OnInit {\r\n\r\n @ViewChild('dialog') dialog: SyncfusionDialogComponent;\r\n\r\n public modalDialog: ModalDialog;\r\n\r\n constructor(public modalService: ModalService,\r\n private cdr: ChangeDetectorRef) {\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.modalService.dialogSubject.subscribe((modalDialog) => {\r\n const actualDialog = this.modalDialog;\r\n this.modalDialog = modalDialog;\r\n if (!modalDialog) {\r\n this.modalDialog = null;\r\n this.hideDialog();\r\n } else {\r\n this.modalDialog = modalDialog;\r\n this.showDialog();\r\n if (actualDialog) {\r\n this.cdr.detectChanges();\r\n }\r\n }\r\n });\r\n }\r\n\r\n public okClicked(): void {\r\n this.hideDialog();\r\n this.modalDialog.onOkSubject.next();\r\n }\r\n\r\n public cancelClicked(): void {\r\n this.hideDialog();\r\n this.modalDialog.onCancelSubject.next();\r\n }\r\n\r\n public onClose(eventArgs): void {\r\n if (eventArgs.isInteracted) {\r\n this.modalDialog.onCancelSubject.next();\r\n }\r\n }\r\n\r\n private hideDialog(): void {\r\n this.dialog.hide();\r\n this.dialog.zIndex = 1000;\r\n }\r\n\r\n private showDialog(): void {\r\n this.dialog.zIndex = 200000;\r\n this.dialog.show();\r\n }\r\n}\r\n","\r\n \r\n {{modalDialog?.title | translate}}\r\n \r\n\r\n \r\n
    \r\n
    \r\n
    \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n","import { Property, ChildProperty, Complex, setStyleAttribute, isNullOrUndefined, detach, Browser, extend, getUniqueID, Touch, closest, isUndefined, classList, formatUnit, SanitizeHtmlHelper, compile, initializeCSPTemplate, isBlazor, animationMode, Animation, attributes, L10n, EventHandler, removeClass, Collection, Event, NotifyPropertyChanges, Component, createElement, append, addClass } from '@syncfusion/ej2-base';\nimport { Button } from '@syncfusion/ej2-buttons';\nimport { getZindexPartial } from '@syncfusion/ej2-popups';\nvar __extends = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 ROOT = 'e-toast';\nvar CONTAINER = 'e-toast-container';\nvar TITLE = 'e-toast-title';\nvar WIDTHFULL = 'e-toast-full-width';\nvar CONTENT = 'e-toast-content';\nvar MESSAGE = 'e-toast-message';\nvar ICON = 'e-toast-icon';\nvar PROGRESS = 'e-toast-progress';\nvar ACTIOBUTTONS = 'e-toast-actions';\nvar CLOSEBTN = 'e-toast-close-icon';\nvar RTL = 'e-rtl';\nvar TOAST_BLAZOR_HIDDEN = 'e-blazor-toast-hidden';\n/**\n * An object that is used to configure the Toast X Y positions.\n */\nvar ToastPosition = /** @__PURE__ @class */function (_super) {\n __extends(ToastPosition, _super);\n function ToastPosition() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate([Property('Left')], ToastPosition.prototype, \"X\", void 0);\n __decorate([Property('Top')], ToastPosition.prototype, \"Y\", void 0);\n return ToastPosition;\n}(ChildProperty);\n/**\n * An object that is used to configure the action button model properties and event.\n */\nvar ButtonModelProps = /** @__PURE__ @class */function (_super) {\n __extends(ButtonModelProps, _super);\n function ButtonModelProps() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate([Property(null)], ButtonModelProps.prototype, \"model\", void 0);\n __decorate([Property(null)], ButtonModelProps.prototype, \"click\", void 0);\n return ButtonModelProps;\n}(ChildProperty);\n/**\n * An object that is used to configure the animation object of Toast.\n */\nvar ToastAnimations = /** @__PURE__ @class */function (_super) {\n __extends(ToastAnimations, _super);\n function ToastAnimations() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate([Property('FadeIn')], ToastAnimations.prototype, \"effect\", void 0);\n __decorate([Property(600)], ToastAnimations.prototype, \"duration\", void 0);\n __decorate([Property('ease')], ToastAnimations.prototype, \"easing\", void 0);\n return ToastAnimations;\n}(ChildProperty);\n/**\n * An object that is used to configure the show/hide animation settings of Toast.\n */\nvar ToastAnimationSettings = /** @__PURE__ @class */function (_super) {\n __extends(ToastAnimationSettings, _super);\n function ToastAnimationSettings() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate([Complex({\n effect: 'FadeIn',\n duration: 600,\n easing: 'ease'\n }, ToastAnimations)], ToastAnimationSettings.prototype, \"show\", void 0);\n __decorate([Complex({\n effect: 'FadeOut',\n duration: 600,\n easing: 'ease'\n }, ToastAnimations)], ToastAnimationSettings.prototype, \"hide\", void 0);\n return ToastAnimationSettings;\n}(ChildProperty);\n/**\n * The Toast is a notification pop-up that showing on desired position which can provide an information to the user.\n * ```html\n *
    \n * \n * ```\n */\nvar Toast = /** @__PURE__ @class */function (_super) {\n __extends(Toast, _super);\n /**\n * Initializes a new instance of the Toast class.\n *\n * @param {ToastModel} options - Specifies Toast model properties as options.\n * @param {HTMLElement} element - Specifies the element that is rendered as a Toast.\n */\n function Toast(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.toastCollection = [];\n _this.needsID = true;\n return _this;\n }\n /**\n * Gets the Component module name.\n *\n * @returns {string} - returns the string\n * @private\n */\n Toast.prototype.getModuleName = function () {\n return 'toast';\n };\n /**\n * Gets the persisted state properties of the Component.\n *\n * @returns {string} - returns the string\n */\n Toast.prototype.getPersistData = function () {\n return this.addOnPersist([]);\n };\n /**\n * Removes the component from the DOM and detaches all its related event handlers, attributes and classes.\n *\n * @returns {void}\n */\n Toast.prototype.destroy = function () {\n this.hide('All');\n this.element.classList.remove(CONTAINER);\n setStyleAttribute(this.element, {\n 'position': '',\n 'z-index': ''\n });\n if (!isNullOrUndefined(this.refElement) && !isNullOrUndefined(this.refElement.parentElement)) {\n this.refElement.parentElement.insertBefore(this.element, this.refElement);\n detach(this.refElement);\n this.refElement = undefined;\n }\n if (!this.isBlazorServer()) {\n _super.prototype.destroy.call(this);\n }\n };\n /**\n * Initialize the event handler\n *\n * @returns {void}\n * @private\n */\n Toast.prototype.preRender = function () {\n //There is no event handler\n this.isDevice = Browser.isDevice;\n if (this.width === '300px') {\n this.width = this.isDevice && screen.width < 768 ? '100%' : '300px';\n }\n if (isNullOrUndefined(this.target)) {\n this.target = document.body;\n }\n if (this.enableRtl && !this.isBlazorServer()) {\n this.element.classList.add(RTL);\n }\n };\n /**\n * Initialize the component rendering\n *\n * @returns {void}\n * @private\n */\n Toast.prototype.render = function () {\n this.progressObj = [];\n this.intervalId = [];\n this.contentTemplate = null;\n this.toastTemplate = null;\n this.renderComplete();\n this.initRenderClass = this.element.className;\n };\n /**\n * To show Toast element on a document with the relative position.\n *\n * @param {ToastModel} toastObj - To show Toast element on screen.\n * @returns {void}\n * @deprecated\n */\n Toast.prototype.show = function (toastObj) {\n var collectionObj;\n if (!isNullOrUndefined(toastObj)) {\n this.templateChanges(toastObj);\n collectionObj = JSON.parse(JSON.stringify(toastObj));\n extend(this, this, toastObj);\n }\n if (isNullOrUndefined(this.toastContainer)) {\n this.toastContainer = this.getContainer();\n var target = typeof this.target === 'string' ? document.querySelector(this.target) : typeof this.target === 'object' ? this.target : document.body;\n if (isNullOrUndefined(target)) {\n return;\n }\n if (target.tagName === 'BODY') {\n this.toastContainer.style.position = 'fixed';\n } else {\n this.toastContainer.style.position = 'absolute';\n target.style.position = 'relative';\n }\n this.setPositioning(this.position);\n target.appendChild(this.toastContainer);\n }\n if (this.isBlazorServer() && this.element.classList.contains('e-control')) {\n this.isToastModel(toastObj);\n return;\n }\n this.toastEle = this.createElement('div', {\n className: ROOT,\n id: getUniqueID('toast')\n });\n this.setWidthHeight();\n this.setCSSClass(this.cssClass);\n if (isNullOrUndefined(this.template) || this.template === '') {\n this.personalizeToast();\n } else {\n this.templateRendering();\n }\n this.setProgress();\n this.setCloseButton();\n this.setAria();\n this.appendToTarget(toastObj);\n if (this.isDevice && screen.width < 768) {\n new Touch(this.toastEle, {\n swipe: this.swipeHandler.bind(this)\n });\n }\n if (!isNullOrUndefined(collectionObj)) {\n extend(collectionObj, {\n element: [this.toastEle]\n }, true);\n this.toastCollection.push(collectionObj);\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (this.isReact) {\n this.renderReactTemplates();\n }\n };\n /**\n * @param {string} id - specifies the id\n * @param {ToastModel} toastObj - specifies the model\n * @returns {void}\n * @hidden\n * @deprecated\n * This method applicable for blazor alone.\n */\n Toast.prototype.showToast = function (id, toastObj) {\n this.toastEle = this.element.querySelector('#' + id);\n this.show(toastObj);\n };\n Toast.prototype.isToastModel = function (toastObj) {\n this.toastContainer = this.element;\n this.setPositioning(this.position);\n var proxy = this;\n if (!isNullOrUndefined(proxy.element.lastElementChild)) {\n this.setProgress();\n }\n this.setAria();\n this.appendToTarget(toastObj);\n };\n Toast.prototype.swipeHandler = function (e) {\n var toastEle = closest(e.originalEvent.target, '.' + ROOT + ':not(.' + CONTAINER + ')');\n var hideAnimation = this.animation.hide.effect;\n if (!isNullOrUndefined(toastEle)) {\n if (e.swipeDirection === 'Right') {\n this.animation.hide.effect = 'SlideRightOut';\n this.hideToast('swipe', toastEle);\n } else if (e.swipeDirection === 'Left') {\n this.animation.hide.effect = 'SlideLeftOut';\n this.hideToast('swipe', toastEle);\n }\n this.animation.hide.effect = hideAnimation;\n }\n };\n Toast.prototype.templateChanges = function (toastObj) {\n if (!isUndefined(toastObj.content) && !isNullOrUndefined(this.contentTemplate) && this.content !== toastObj.content) {\n this.clearContentTemplate();\n }\n if (!isUndefined(toastObj.template) && !isNullOrUndefined(this.toastTemplate) && this.template !== toastObj.template) {\n this.clearToastTemplate();\n }\n };\n Toast.prototype.setCSSClass = function (cssClass) {\n if (cssClass) {\n var split = cssClass.indexOf(',') !== -1 ? ',' : ' ';\n classList(this.toastEle, cssClass.split(split), []);\n if (this.toastContainer) {\n classList(this.toastContainer, cssClass.split(split), []);\n }\n }\n };\n Toast.prototype.setWidthHeight = function () {\n if (this.width === '300px') {\n this.toastEle.style.width = formatUnit(this.width);\n } else if (this.width === '100%') {\n this.toastContainer.classList.add(WIDTHFULL);\n } else {\n this.toastEle.style.width = formatUnit(this.width);\n this.toastContainer.classList.remove(WIDTHFULL);\n }\n this.toastEle.style.height = formatUnit(this.height);\n };\n Toast.prototype.templateRendering = function () {\n this.fetchEle(this.toastEle, this.template, 'template');\n };\n /**\n * @param {string} value - specifies the string value.\n * @returns {string} - returns the string\n * @hidden\n */\n Toast.prototype.sanitizeHelper = function (value) {\n if (this.enableHtmlSanitizer) {\n var item = SanitizeHtmlHelper.beforeSanitize();\n var beforeEvent = {\n cancel: false,\n helper: null\n };\n extend(item, item, beforeEvent);\n this.trigger('beforeSanitizeHtml', item);\n if (item.cancel && !isNullOrUndefined(item.helper)) {\n value = item.helper(value);\n } else if (!item.cancel) {\n value = SanitizeHtmlHelper.serializeValue(item, value);\n }\n }\n return value;\n };\n /**\n * To Hide Toast element on a document.\n * To Hide all toast element when passing 'All'.\n *\n * @param {HTMLElement} element - To Hide Toast element on screen.\n * @returns {void}\n */\n Toast.prototype.hide = function (element) {\n this.hideToast('', element);\n };\n Toast.prototype.hideToast = function (interactionType, element) {\n if (isNullOrUndefined(this.toastContainer) || this.toastContainer.childElementCount === 0) {\n return;\n }\n if (typeof element === 'string' && element === 'All') {\n for (var i = 0; i < this.toastContainer.childElementCount; i++) {\n this.destroyToast(this.toastContainer.children[i], interactionType);\n }\n return;\n }\n if (isNullOrUndefined(element)) {\n element = this.newestOnTop ? this.toastContainer.lastElementChild : this.toastContainer.firstElementChild;\n }\n this.destroyToast(element, interactionType);\n };\n Toast.prototype.fetchEle = function (ele, value, prob) {\n value = typeof value === 'string' ? this.sanitizeHelper(value) : value;\n var templateFn;\n var tempVar;\n var tmpArray;\n var templateProps;\n if (ele.classList.contains(TITLE)) {\n templateProps = this.element.id + 'title';\n } else if (ele.classList.contains(CONTENT)) {\n templateProps = this.element.id + 'content';\n } else {\n templateProps = this.element.id + 'template';\n }\n if (prob === 'content') {\n tempVar = this.contentTemplate;\n } else {\n tempVar = this.toastTemplate;\n }\n if (!isNullOrUndefined(tempVar)) {\n ele.appendChild(tempVar.cloneNode(true));\n return ele;\n }\n try {\n if (typeof value !== 'function' && document.querySelectorAll(value).length > 0) {\n var elem = null;\n if (prob !== 'title') {\n elem = document.querySelector(value);\n ele.appendChild(elem);\n elem.style.display = '';\n }\n var clo = isNullOrUndefined(elem) ? tempVar : elem.cloneNode(true);\n if (prob === 'content') {\n this.contentTemplate = clo;\n } else {\n this.toastTemplate = clo;\n }\n } else {\n templateFn = compile(value);\n }\n } catch (e) {\n templateFn = typeof value == 'object' ? compile(value) : compile(initializeCSPTemplate(function () {\n return value;\n }));\n }\n if (!isNullOrUndefined(templateFn)) {\n if (!this.isBlazorServer()) {\n tmpArray = templateFn({}, this, prob, null, true);\n } else {\n var isString = true;\n tmpArray = templateFn({}, this, prob, templateProps, isString);\n }\n }\n if (!isNullOrUndefined(tmpArray) && tmpArray.length > 0 && !(isNullOrUndefined(tmpArray[0].tagName) && tmpArray.length === 1)) {\n [].slice.call(tmpArray).forEach(function (el) {\n if (!isNullOrUndefined(el.tagName)) {\n el.style.display = '';\n }\n ele.appendChild(el);\n });\n } else if (typeof value !== 'function' && ele.childElementCount === 0) {\n ele.innerHTML = value;\n }\n return ele;\n };\n Toast.prototype.clearProgress = function (intervalId) {\n if (!isNullOrUndefined(this.intervalId[intervalId])) {\n clearInterval(this.intervalId[intervalId]);\n delete this.intervalId[intervalId];\n }\n if (!isNullOrUndefined(this.progressObj[intervalId])) {\n clearInterval(this.progressObj[intervalId].intervalId);\n delete this.progressObj[intervalId];\n }\n };\n Toast.prototype.removeToastContainer = function (isClosed) {\n if (isClosed && this.toastContainer.classList.contains('e-toast-util')) {\n detach(this.toastContainer);\n }\n };\n Toast.prototype.clearContainerPos = function (isClosed) {\n var _this = this;\n if (this.isBlazorServer()) {\n this.toastContainer = null;\n return;\n }\n if (this.customPosition) {\n setStyleAttribute(this.toastContainer, {\n 'left': '',\n 'top': ''\n });\n this.removeToastContainer(isClosed);\n this.toastContainer = null;\n this.customPosition = false;\n } else {\n [ROOT + '-top-left', ROOT + '-top-right', ROOT + '-bottom-left', ROOT + '-bottom-right', ROOT + '-bottom-center', ROOT + '-top-center', ROOT + '-full-width'].forEach(function (pos) {\n if (!isNullOrUndefined(_this.toastContainer) && _this.toastContainer.classList.contains(pos)) {\n _this.toastContainer.classList.remove(pos);\n }\n });\n this.removeToastContainer(isClosed);\n this.toastContainer = null;\n }\n if (!isNullOrUndefined(this.contentTemplate)) {\n this.clearContentTemplate();\n }\n if (!isNullOrUndefined(this.toastTemplate)) {\n this.clearToastTemplate();\n }\n };\n Toast.prototype.clearContentTemplate = function () {\n this.contentTemplate.style.display = 'none';\n document.body.appendChild(this.contentTemplate);\n this.contentTemplate = null;\n };\n Toast.prototype.clearToastTemplate = function () {\n this.toastTemplate.style.display = 'none';\n document.body.appendChild(this.toastTemplate);\n this.toastTemplate = null;\n };\n Toast.prototype.isBlazorServer = function () {\n return isBlazor() && this.isServerRendered;\n };\n Toast.prototype.destroyToast = function (toastEle, interactionType) {\n var _this = this;\n var toastObj;\n for (var i = 0; i < this.toastCollection.length; i++) {\n if (this.toastCollection[i].element[0] === toastEle) {\n toastObj = this.toastCollection[i];\n this.toastCollection.splice(i, 1);\n }\n }\n var toastBeforeClose = {\n options: this,\n cancel: false,\n type: interactionType,\n element: toastEle,\n toastContainer: this.toastContainer\n };\n var hideAnimate = this.animation.hide;\n var animate = {\n duration: hideAnimate.duration,\n name: hideAnimate.effect === 'None' && animationMode === 'Enable' ? 'FadeOut' : hideAnimate.effect,\n timingFunction: hideAnimate.easing\n };\n var intervalId = parseInt(toastEle.id.split('toast_')[1], 10);\n var toastClose = this.isBlazorServer() ? {\n options: toastObj,\n toastContainer: this.toastContainer\n } : {\n options: toastObj,\n toastContainer: this.toastContainer,\n toastObj: this\n };\n this.trigger('beforeClose', toastBeforeClose, function (toastBeforeCloseArgs) {\n if (!toastBeforeCloseArgs.cancel) {\n if (!isNullOrUndefined(_this.progressObj[intervalId]) && !isNullOrUndefined(toastEle.querySelector('.' + PROGRESS))) {\n _this.progressObj[intervalId].progressEle.style.width = '0%';\n }\n animate.end = function () {\n _this.clearProgress(intervalId);\n if (!_this.isBlazorServer() || isNullOrUndefined(toastObj)) {\n detach(toastEle);\n }\n _this.trigger('close', toastClose);\n if (_this.toastContainer.childElementCount === 0) {\n _this.clearContainerPos(true);\n }\n hideAnimate = null;\n animate = null;\n };\n new Animation(animate).animate(toastEle);\n }\n });\n };\n Toast.prototype.personalizeToast = function () {\n this.setIcon();\n this.setTitle();\n this.setContent();\n this.actionButtons();\n };\n Toast.prototype.setAria = function () {\n attributes(this.toastEle, {\n 'role': 'alert'\n });\n };\n Toast.prototype.setPositioning = function (pos) {\n if (this.isBlazorServer()) {\n return;\n }\n if (!isNaN(parseFloat(pos.X)) || !isNaN(parseFloat(pos.Y))) {\n this.customPosition = true;\n setStyleAttribute(this.toastContainer, {\n 'left': formatUnit(pos.X),\n 'top': formatUnit(pos.Y)\n });\n } else {\n this.toastContainer.classList.add(ROOT + '-' + pos.Y.toString().toLowerCase() + '-' + pos.X.toString().toLowerCase());\n }\n };\n Toast.prototype.setCloseButton = function () {\n if (!this.showCloseButton) {\n return;\n }\n var localeText = {\n close: 'Close'\n };\n this.l10n = new L10n('toast', localeText, this.locale);\n this.l10n.setLocale(this.locale);\n var closeIconTitle = this.l10n.getConstant('close');\n var closeBtn = this.createElement('div', {\n className: CLOSEBTN + ' e-icons ',\n attrs: {\n tabindex: '0',\n 'aria-label': closeIconTitle,\n 'role': 'button'\n }\n });\n this.toastEle.classList.add('e-toast-header-close-icon');\n this.toastEle.appendChild(closeBtn);\n };\n Toast.prototype.setProgress = function () {\n if (this.timeOut > 0) {\n var id = parseInt(this.toastEle.id.split('toast_')[1], 10);\n this.intervalId[id] = window.setTimeout(this.destroyToast.bind(this, this.toastEle), this.timeOut);\n this.progressObj[id] = {\n hideEta: null,\n intervalId: null,\n maxHideTime: null,\n element: null,\n timeOutId: null,\n progressEle: null\n };\n this.progressObj[id].maxHideTime = parseFloat(this.timeOut + '');\n this.progressObj[id].hideEta = new Date().getTime() + this.progressObj[id].maxHideTime;\n this.progressObj[id].element = this.toastEle;\n if (this.extendedTimeout > 0) {\n EventHandler.add(this.toastEle, 'mouseover', this.toastHoverAction.bind(this, id));\n EventHandler.add(this.toastEle, 'mouseleave', this.delayedToastProgress.bind(this, id));\n this.progressObj[id].timeOutId = this.intervalId[id];\n }\n if (this.showProgressBar) {\n this.progressBarEle = this.createElement('div', {\n className: PROGRESS\n });\n this.toastEle.insertBefore(this.progressBarEle, this.toastEle.children[0]);\n this.progressObj[id].intervalId = setInterval(this.updateProgressBar.bind(this, this.progressObj[id]), 10);\n this.progressObj[id].progressEle = this.progressBarEle;\n }\n }\n };\n Toast.prototype.toastHoverAction = function (id) {\n clearTimeout(this.progressObj[id].timeOutId);\n clearInterval(this.progressObj[id].intervalId);\n this.progressObj[id].hideEta = 0;\n var toastEle = this.progressObj[id].element;\n if (!isNullOrUndefined(toastEle.querySelector('.' + PROGRESS))) {\n this.progressObj[id].progressEle.style.width = '0%';\n }\n };\n Toast.prototype.delayedToastProgress = function (id) {\n var progress = this.progressObj[id];\n var toastEle = progress.element;\n progress.timeOutId = window.setTimeout(this.destroyToast.bind(this, toastEle), this.extendedTimeout);\n progress.maxHideTime = parseFloat(this.extendedTimeout + '');\n progress.hideEta = new Date().getTime() + progress.maxHideTime;\n if (!isNullOrUndefined(toastEle.querySelector('.' + PROGRESS))) {\n progress.intervalId = setInterval(this.updateProgressBar.bind(this, progress), 10);\n }\n };\n Toast.prototype.updateProgressBar = function (progressObj) {\n var percentage = (progressObj.hideEta - new Date().getTime()) / progressObj.maxHideTime * 100;\n percentage = this.progressDirection === 'Ltr' ? 100 - percentage : percentage;\n progressObj.progressEle.style.width = percentage + '%';\n };\n Toast.prototype.setIcon = function () {\n if (isNullOrUndefined(this.icon) || this.icon.length === 0) {\n return;\n }\n var iconEle = this.createElement('div', {\n className: ICON + ' e-icons ' + this.icon\n });\n this.toastEle.classList.add('e-toast-header-icon');\n this.toastEle.appendChild(iconEle);\n };\n Toast.prototype.setTitle = function () {\n if (isNullOrUndefined(this.title)) {\n return;\n }\n var titleEle = this.createElement('div', {\n className: TITLE\n });\n titleEle = this.fetchEle(titleEle, this.title, 'title');\n var msgContainer = this.createElement('div', {\n className: MESSAGE\n });\n msgContainer.appendChild(titleEle);\n this.toastEle.appendChild(msgContainer);\n };\n Toast.prototype.setContent = function () {\n var contentEle = this.createElement('div', {\n className: CONTENT\n });\n var ele = this.element;\n if (isNullOrUndefined(this.content) || this.content === '') {\n var isContent = this.element.innerHTML.replace(/\\s/g, '') !== '';\n if ((ele.children.length > 0 || isContent) && !(ele.firstElementChild && ele.firstElementChild.classList.contains(ROOT))) {\n this.innerEle = document.createDocumentFragment();\n var tempEle_1 = this.createElement('div');\n while (ele.childNodes.length !== 0) {\n this.innerEle.appendChild(this.element.childNodes[0]);\n }\n contentEle.appendChild(this.innerEle);\n [].slice.call(contentEle.children).forEach(function (ele) {\n tempEle_1.appendChild(ele.cloneNode(true));\n });\n this.content = tempEle_1;\n this.appendMessageContainer(contentEle);\n }\n } else {\n if (typeof this.content === 'object' && !isNullOrUndefined(this.content.tagName)) {\n contentEle.appendChild(this.content);\n this.content = this.content.cloneNode(true);\n this.appendMessageContainer(contentEle);\n } else {\n contentEle = this.fetchEle(contentEle, this.content, 'content');\n this.appendMessageContainer(contentEle);\n }\n }\n };\n Toast.prototype.appendMessageContainer = function (element) {\n if (this.toastEle.querySelectorAll('.' + MESSAGE).length > 0) {\n this.toastEle.querySelector('.' + MESSAGE).appendChild(element);\n } else {\n var msgContainer = this.createElement('div', {\n className: MESSAGE\n });\n msgContainer.appendChild(element);\n this.toastEle.appendChild(msgContainer);\n }\n };\n Toast.prototype.actionButtons = function () {\n var _this = this;\n var actionBtnContainer = this.createElement('div', {\n className: ACTIOBUTTONS\n });\n [].slice.call(this.buttons).forEach(function (actionBtn) {\n if (isNullOrUndefined(actionBtn.model)) {\n return;\n }\n var btnDom = _this.createElement('button');\n btnDom.setAttribute('type', 'button');\n if (isNullOrUndefined(actionBtn.model.cssClass) || actionBtn.model.cssClass.length === 0) {\n actionBtn.model.cssClass = 'e-primary' + ' ' + _this.cssClass;\n }\n btnDom.classList.add('e-small');\n new Button(actionBtn.model, btnDom);\n if (!isNullOrUndefined(actionBtn.click) && typeof actionBtn.click === 'function') {\n EventHandler.add(btnDom, 'click', actionBtn.click);\n }\n actionBtnContainer.appendChild(btnDom);\n });\n if (actionBtnContainer.childElementCount > 0) {\n this.appendMessageContainer(actionBtnContainer);\n }\n };\n Toast.prototype.appendToTarget = function (toastObj) {\n var _this = this;\n var toastBeforeOpen = this.isBlazorServer() ? {\n options: toastObj,\n element: this.toastEle,\n cancel: false\n } : {\n options: toastObj,\n toastObj: this,\n element: this.toastEle,\n cancel: false\n };\n this.trigger('beforeOpen', toastBeforeOpen, function (toastBeforeOpenArgs) {\n if (!toastBeforeOpenArgs.cancel) {\n if (!_this.isBlazorServer()) {\n _this.toastEle.style.display = 'none';\n }\n if (_this.newestOnTop && _this.toastContainer.childElementCount !== 0) {\n _this.toastContainer.insertBefore(_this.toastEle, _this.toastContainer.children[0]);\n } else if (!_this.isBlazorServer()) {\n _this.toastContainer.appendChild(_this.toastEle);\n }\n removeClass([_this.toastEle], TOAST_BLAZOR_HIDDEN);\n EventHandler.add(_this.toastEle, 'click', _this.clickHandler, _this);\n EventHandler.add(_this.toastEle, 'keydown', _this.keyDownHandler, _this);\n _this.toastContainer.style.zIndex = getZindexPartial(_this.toastContainer) + '';\n _this.displayToast(_this.toastEle, toastObj);\n } else if (_this.isBlazorServer()) {\n var intervalId = parseInt(_this.toastEle.id.split('toast_')[1], 10);\n _this.clearProgress(intervalId);\n detach(_this.toastEle);\n if (_this.toastContainer.childElementCount === 0) {\n _this.clearContainerPos();\n }\n }\n });\n };\n Toast.prototype.clickHandler = function (e) {\n var _this = this;\n if (!this.isBlazorServer()) {\n e.stopPropagation();\n }\n var target = e.target;\n var toastEle = closest(target, '.' + ROOT);\n var clickArgs = this.isBlazorServer() ? {\n element: toastEle,\n cancel: false,\n clickToClose: false,\n originalEvent: e\n } : {\n element: toastEle,\n cancel: false,\n clickToClose: false,\n originalEvent: e,\n toastObj: this\n };\n var isCloseIcon = target.classList.contains(CLOSEBTN);\n this.trigger('click', clickArgs, function (toastClickArgs) {\n if (isCloseIcon && !toastClickArgs.cancel || toastClickArgs.clickToClose) {\n _this.destroyToast(toastEle, 'click');\n }\n });\n };\n Toast.prototype.keyDownHandler = function (e) {\n if (e.target.classList.contains(CLOSEBTN) && (e.keyCode === 13 || e.keyCode === 32)) {\n var target = e.target;\n var toastEle = closest(target, '.' + ROOT);\n this.destroyToast(toastEle, 'key');\n }\n };\n Toast.prototype.displayToast = function (toastEle, toastObj) {\n var _this = this;\n var showAnimate = this.animation.show;\n var animate = {\n duration: showAnimate.duration,\n name: showAnimate.effect === 'None' && animationMode === 'Enable' ? 'FadeIn' : showAnimate.effect,\n timingFunction: showAnimate.easing\n };\n var toastOpen = this.isBlazorServer() ? {\n options: toastObj,\n element: this.toastEle\n } : {\n options: toastObj,\n toastObj: this,\n element: this.toastEle\n };\n animate.begin = function () {\n toastEle.style.display = '';\n };\n animate.end = function () {\n _this.trigger('open', toastOpen);\n };\n new Animation(animate).animate(toastEle);\n };\n Toast.prototype.getContainer = function () {\n this.element.classList.add(CONTAINER);\n return this.element;\n };\n /**\n * Called internally if any of the property value changed.\n *\n * @param {ToastModel} newProp - specifies the new property\n * @param {ToastModel} oldProp - specifies the old property\n * @returns {void}\n * @private\n */\n // eslint-disable-next-line\n Toast.prototype.onPropertyChanged = function (newProp, oldProp) {\n var container = this.element;\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'enableRtl':\n if (newProp.enableRtl) {\n container.classList.add(RTL);\n } else {\n container.classList.remove(RTL);\n }\n break;\n }\n }\n };\n __decorate([Property('300px')], Toast.prototype, \"width\", void 0);\n __decorate([Property('auto')], Toast.prototype, \"height\", void 0);\n __decorate([Property(null)], Toast.prototype, \"title\", void 0);\n __decorate([Property(null)], Toast.prototype, \"content\", void 0);\n __decorate([Property(true)], Toast.prototype, \"enableHtmlSanitizer\", void 0);\n __decorate([Property(null)], Toast.prototype, \"icon\", void 0);\n __decorate([Property(null)], Toast.prototype, \"cssClass\", void 0);\n __decorate([Property(null)], Toast.prototype, \"template\", void 0);\n __decorate([Property(true)], Toast.prototype, \"newestOnTop\", void 0);\n __decorate([Property(false)], Toast.prototype, \"showCloseButton\", void 0);\n __decorate([Property(false)], Toast.prototype, \"showProgressBar\", void 0);\n __decorate([Property(5000)], Toast.prototype, \"timeOut\", void 0);\n __decorate([Property('Rtl')], Toast.prototype, \"progressDirection\", void 0);\n __decorate([Property(1000)], Toast.prototype, \"extendedTimeout\", void 0);\n __decorate([Complex({}, ToastAnimationSettings)], Toast.prototype, \"animation\", void 0);\n __decorate([Complex({}, ToastPosition)], Toast.prototype, \"position\", void 0);\n __decorate([Collection([{}], ButtonModelProps)], Toast.prototype, \"buttons\", void 0);\n __decorate([Property(null)], Toast.prototype, \"target\", void 0);\n __decorate([Event()], Toast.prototype, \"created\", void 0);\n __decorate([Event()], Toast.prototype, \"beforeSanitizeHtml\", void 0);\n __decorate([Event()], Toast.prototype, \"destroyed\", void 0);\n __decorate([Event()], Toast.prototype, \"open\", void 0);\n __decorate([Event()], Toast.prototype, \"beforeOpen\", void 0);\n __decorate([Event()], Toast.prototype, \"beforeClose\", void 0);\n __decorate([Event()], Toast.prototype, \"close\", void 0);\n __decorate([Event()], Toast.prototype, \"click\", void 0);\n Toast = __decorate([NotifyPropertyChanges], Toast);\n return Toast;\n}(Component);\n/**\n * Base for creating Toast through utility method.\n */\n// eslint-disable-next-line\nvar ToastUtility;\n(function (ToastUtility) {\n /**\n * To display a simple toast using the 'ToastUtility' with 'ToastModal' or\n * as string with toast content, type, timeOut.\n * ```\n * Eg : ToastUtility.show('Toast Content Message', 'Information', 7000);\n *\n * ```\n */\n /* istanbul ignore next */\n /**\n *\n * @param { ToastModel | string } content - Specifies the toast modal or the content of the Toast.\n * @param {string} type - Specifies the type of toast.\n * @param { number } timeOut - Specifies the timeOut of the toast.\n * @returns {Toast} - returns the element\n */\n function show(content, type, timeOut) {\n var toastContainerElement;\n if (document.querySelector('.' + CONTAINER)) {\n toastContainerElement = document.querySelector('.' + CONTAINER);\n } else {\n toastContainerElement = createElement('div', {\n 'className': ROOT + ' ' + CONTAINER + ' e-toast-util'\n });\n document.body.appendChild(toastContainerElement);\n }\n var untilToastsModel;\n if (typeof content === 'string') {\n var cssClass = void 0;\n var icon = void 0;\n if (!isNullOrUndefined(type)) {\n switch (type) {\n case 'Warning':\n cssClass = 'e-toast-warning';\n icon = 'e-toast-warning-icon';\n break;\n case 'Success':\n cssClass = 'e-toast-success';\n icon = 'e-toast-success-icon';\n break;\n case 'Error':\n cssClass = 'e-toast-danger';\n icon = 'e-toast-error-icon';\n break;\n case 'Information':\n cssClass = 'e-toast-info';\n icon = 'e-toast-info-icon';\n break;\n }\n } else {\n cssClass = '';\n icon = '';\n }\n untilToastsModel = {\n content: content,\n cssClass: cssClass,\n icon: icon,\n timeOut: !isNullOrUndefined(timeOut) ? timeOut : 5000\n };\n } else {\n untilToastsModel = content;\n }\n var toastObj = new Toast(untilToastsModel);\n toastObj.appendTo(toastContainerElement);\n toastObj.show();\n return toastObj;\n }\n ToastUtility.show = show;\n})(ToastUtility || (ToastUtility = {}));\nvar __extends$1 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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};\n/**\n * Specifies the type of severity to display the message with distinctive icons and colors.\n */\nvar Severity = /*#__PURE__*/function (Severity) {\n /**\n * The message is displayed with icons and colors to denote it as a normal message.\n */\n Severity[\"Normal\"] = \"Normal\";\n /**\n * The message is displayed with icons and colors to denote it as a success message.\n */\n Severity[\"Success\"] = \"Success\";\n /**\n * The message is displayed with icons and colors to denote it as information.\n */\n Severity[\"Info\"] = \"Info\";\n /**\n * The message is displayed with icons and colors to denote it as a warning message.\n */\n Severity[\"Warning\"] = \"Warning\";\n /**\n * The message is displayed with icons and colors to denote it as an error message.\n */\n Severity[\"Error\"] = \"Error\";\n return Severity;\n}(Severity || {});\n/**\n * Specifies the predefined appearance variants for the component to display.\n */\nvar Variant = /*#__PURE__*/function (Variant) {\n /**\n * Denotes the severity is differentiated using text color and light background color.\n */\n Variant[\"Text\"] = \"Text\";\n /**\n * Denotes the severity is differentiated using text color and border without background.\n */\n Variant[\"Outlined\"] = \"Outlined\";\n /**\n * Denotes the severity is differentiated using text color and dark background color.\n */\n Variant[\"Filled\"] = \"Filled\";\n return Variant;\n}(Variant || {});\nvar MSG_ICON = 'e-msg-icon';\nvar MSG_CLOSE_ICON = 'e-msg-close-icon';\nvar MSG_CONTENT = 'e-msg-content';\nvar MSG_CONTENT_CENTER = 'e-content-center';\nvar RTL$1 = 'e-rtl';\nvar SUCCESS = 'e-success';\nvar WARNING = 'e-warning';\nvar INFO = 'e-info';\nvar ERROR = 'e-error';\nvar OUTLINED = 'e-outlined';\nvar FILLED = 'e-filled';\nvar HIDE = 'e-hidden';\n/**\n * The Message component displays messages with severity by differentiating icons and colors to denote the importance and context of the message to the end user.\n * ```html\n *
    \n * \n * ```\n *\n */\nvar Message = /** @__PURE__ @class */function (_super) {\n __extends$1(Message, _super);\n /**\n * Constructor for creating the Message component widget.\n *\n * @param {MessageModel}options - Specifies the Message component interface.\n * @param {HTMLElement}element - Specifies the target element.\n */\n function Message(options, element) {\n var _this = _super.call(this, options, element) || this;\n _this.initialRender = true;\n return _this;\n }\n /**\n * Gets the Message component module name.\n *\n * @returns {string} - Returns the string.\n * @private\n */\n Message.prototype.getModuleName = function () {\n return 'message';\n };\n /**\n * Get the persisted state properties of the Message component.\n *\n * @returns {string} - Returns the string.\n */\n Message.prototype.getPersistData = function () {\n return this.addOnPersist([]);\n };\n /**\n * Method to initialize the variables for the Message component.\n *\n * @returns {void}\n * @private\n */\n Message.prototype.preRender = function () {\n var localeText = {\n close: 'Close'\n };\n this.l10n = new L10n('message', localeText, this.locale);\n };\n /**\n * Method to initialize the Message component rendering.\n *\n * @returns {void}\n * @private\n */\n Message.prototype.render = function () {\n this.innerContent = this.element.innerHTML;\n this.element.innerHTML = '';\n this.msgElement = this.createElement('div', {\n className: 'e-msg-content-wrap'\n });\n this.initialize();\n this.wireEvents();\n this.renderComplete();\n this.renderReactTemplates();\n this.initialRender = false;\n };\n Message.prototype.initialize = function () {\n this.element.setAttribute('role', 'alert');\n this.setCssClass();\n this.setIcon();\n this.setContent();\n this.setCloseIcon();\n this.setSeverity();\n this.setVariant();\n this.setVisible();\n if (this.enableRtl) {\n this.element.classList.add(RTL$1);\n }\n };\n Message.prototype.setIcon = function () {\n if (this.showIcon) {\n this.iconElement = this.createElement('span', {\n className: MSG_ICON\n });\n if (this.element.classList.contains(MSG_CONTENT_CENTER)) {\n this.msgElement.appendChild(this.iconElement);\n } else {\n this.element.appendChild(this.iconElement);\n }\n }\n };\n Message.prototype.setCloseIcon = function () {\n if (this.showCloseIcon) {\n this.closeIcon = this.createElement('button', {\n attrs: {\n type: 'button',\n class: MSG_CLOSE_ICON\n }\n });\n this.element.appendChild(this.closeIcon);\n this.setTitle();\n }\n };\n Message.prototype.setTitle = function () {\n this.l10n.setLocale(this.locale);\n var closeIconTitle = this.l10n.getConstant('close');\n this.closeIcon.setAttribute('title', closeIconTitle);\n this.closeIcon.setAttribute('aria-label', closeIconTitle);\n };\n Message.prototype.setContent = function () {\n this.txtElement = this.createElement('div', {\n className: MSG_CONTENT\n });\n if (this.element.classList.contains(MSG_CONTENT_CENTER)) {\n this.msgElement.appendChild(this.txtElement);\n this.element.appendChild(this.msgElement);\n } else {\n this.element.appendChild(this.txtElement);\n }\n this.setTemplate();\n };\n Message.prototype.setTemplate = function () {\n var templateFn;\n if (isNullOrUndefined(this.content) || this.content === '') {\n this.txtElement.innerHTML = this.innerContent;\n } else if (!isNullOrUndefined(this.content) && this.content !== '') {\n if (typeof this.content === 'string' || typeof this.content !== 'string') {\n // eslint-disable-next-line\n if (this.isVue || typeof this.content !== 'string') {\n templateFn = compile(this.content);\n if (!isNullOrUndefined(templateFn)) {\n var tempArr = templateFn({}, this, 'content', this.element.id + 'content', true);\n if (tempArr) {\n tempArr = Array.prototype.slice.call(tempArr);\n append(tempArr, this.txtElement);\n this.renderReactTemplates();\n }\n }\n } else {\n this.txtElement.innerHTML = this.content;\n }\n }\n }\n };\n Message.prototype.setSeverity = function () {\n var classList = [SUCCESS, WARNING, INFO, ERROR];\n removeClass([this.element], classList);\n if (this.severity === 'Success') {\n addClass([this.element], SUCCESS);\n } else if (this.severity === 'Warning') {\n addClass([this.element], WARNING);\n } else if (this.severity === 'Error') {\n addClass([this.element], ERROR);\n } else if (this.severity === 'Info') {\n addClass([this.element], INFO);\n }\n };\n Message.prototype.setVariant = function () {\n var classList = [FILLED, OUTLINED];\n removeClass([this.element], classList);\n if (this.variant === 'Outlined') {\n addClass([this.element], OUTLINED);\n } else if (this.variant === 'Filled') {\n addClass([this.element], FILLED);\n }\n };\n Message.prototype.setCssClass = function (oldCssClass) {\n if (oldCssClass) {\n removeClass([this.element], oldCssClass.split(' '));\n }\n if (this.cssClass) {\n addClass([this.element], this.cssClass.split(' '));\n }\n };\n Message.prototype.setVisible = function () {\n if (!this.visible) {\n addClass([this.element], HIDE);\n if (!this.initialRender) {\n this.trigger('closed', {\n event: event,\n isInteracted: false,\n element: this.element\n });\n }\n } else {\n removeClass([this.element], HIDE);\n }\n };\n Message.prototype.clickHandler = function (event) {\n this.closeMessage(event);\n };\n Message.prototype.keyboardHandler = function (event) {\n if (event.keyCode === 32 || event.keyCode === 13) {\n this.closeMessage(event);\n }\n };\n Message.prototype.closeMessage = function (event) {\n addClass([this.element], HIDE);\n this.setProperties({\n visible: false\n }, true);\n var eventArgs = {\n event: event,\n isInteracted: true,\n element: this.element\n };\n this.trigger('closed', eventArgs);\n };\n Message.prototype.wireEvents = function () {\n if (this.showCloseIcon) {\n EventHandler.add(this.closeIcon, 'click', this.clickHandler, this);\n EventHandler.add(this.closeIcon, 'keydown', this.keyboardHandler, this);\n }\n };\n Message.prototype.unWireEvents = function () {\n if (this.showCloseIcon) {\n EventHandler.remove(this.closeIcon, 'click', this.clickHandler);\n EventHandler.remove(this.closeIcon, 'keydown', this.keyboardHandler);\n }\n };\n /**\n * Method to handle the dynamic changes of the Message component properties.\n *\n * @param {MessageModel} newProp - Specifies the new property.\n * @param {MessageModel} oldProp - Specifies the old property.\n * @returns {void}\n * @private\n */\n Message.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'cssClass':\n this.setCssClass(oldProp.cssClass);\n break;\n case 'content':\n this.txtElement.innerHTML = '';\n this.setTemplate();\n break;\n case 'enableRtl':\n if (!this.enableRtl) {\n this.element.classList.remove(RTL$1);\n } else {\n this.element.classList.add(RTL$1);\n }\n break;\n case 'locale':\n if (this.showCloseIcon) {\n this.setTitle();\n }\n break;\n case 'showIcon':\n if (!this.showIcon && this.element.getElementsByClassName(MSG_ICON).length > 0) {\n detach(this.iconElement);\n }\n if (this.showIcon) {\n this.iconElement = this.createElement('span', {\n className: MSG_ICON\n });\n this.element.insertBefore(this.iconElement, this.txtElement);\n }\n break;\n case 'showCloseIcon':\n if (!this.showCloseIcon && !isNullOrUndefined(this.closeIcon)) {\n this.unWireEvents();\n detach(this.closeIcon);\n } else {\n this.setCloseIcon();\n this.wireEvents();\n }\n break;\n case 'severity':\n this.setSeverity();\n break;\n case 'variant':\n this.setVariant();\n break;\n case 'visible':\n this.setVisible();\n break;\n }\n }\n };\n /**\n * Method to destroy the Message component. It removes the component from the DOM and detaches all its bound events. It also removes the attributes and classes of the component.\n *\n * @returns {void}\n */\n Message.prototype.destroy = function () {\n var cssClass = isNullOrUndefined(this.cssClass) ? [''] : this.cssClass.split(' ');\n var className = [SUCCESS, WARNING, INFO, ERROR, RTL$1, HIDE, OUTLINED, FILLED];\n var classList = cssClass.length === 1 && cssClass[0] === '' ? className : className.concat(cssClass);\n removeClass([this.element], classList);\n this.element.removeAttribute('role');\n this.unWireEvents();\n if (!isNullOrUndefined(this.iconElement)) {\n detach(this.iconElement);\n }\n detach(this.txtElement);\n if (!isNullOrUndefined(this.closeIcon)) {\n detach(this.closeIcon);\n }\n _super.prototype.destroy.call(this);\n };\n __decorate$1([Property(null)], Message.prototype, \"content\", void 0);\n __decorate$1([Property('')], Message.prototype, \"cssClass\", void 0);\n __decorate$1([Property(true)], Message.prototype, \"showIcon\", void 0);\n __decorate$1([Property(false)], Message.prototype, \"showCloseIcon\", void 0);\n __decorate$1([Property('Normal')], Message.prototype, \"severity\", void 0);\n __decorate$1([Property('Text')], Message.prototype, \"variant\", void 0);\n __decorate$1([Property(true)], Message.prototype, \"visible\", void 0);\n __decorate$1([Event()], Message.prototype, \"created\", void 0);\n __decorate$1([Event()], Message.prototype, \"destroyed\", void 0);\n __decorate$1([Event()], Message.prototype, \"closed\", void 0);\n Message = __decorate$1([NotifyPropertyChanges], Message);\n return Message;\n}(Component);\nvar __extends$2 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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 cssClassName = {\n TEXTSHAPE: 'e-skeleton-text',\n CIRCLESHAPE: 'e-skeleton-circle',\n SQUARESHAPE: 'e-skeleton-square',\n RECTANGLESHAPE: 'e-skeleton-rectangle',\n WAVEEFFECT: 'e-shimmer-wave',\n PULSEEFFECT: 'e-shimmer-pulse',\n FADEEFFECT: 'e-shimmer-fade',\n VISIBLENONE: 'e-visible-none'\n};\n/**\n * Defines the shape of Skeleton.\n */\nvar SkeletonType = /*#__PURE__*/function (SkeletonType) {\n /**\n * Defines the skeleton shape as text.\n */\n SkeletonType[\"Text\"] = \"Text\";\n /**\n * Defines the skeleton shape as circle.\n */\n SkeletonType[\"Circle\"] = \"Circle\";\n /**\n * Defines the skeleton shape as square.\n */\n SkeletonType[\"Square\"] = \"Square\";\n /**\n * Defines the skeleton shape as rectangle.\n */\n SkeletonType[\"Rectangle\"] = \"Rectangle\";\n return SkeletonType;\n}(SkeletonType || {});\n/**\n * Defines the animation effect of Skeleton.\n */\nvar ShimmerEffect = /*#__PURE__*/function (ShimmerEffect) {\n /**\n * Defines the animation as shimmer wave effect.\n */\n ShimmerEffect[\"Wave\"] = \"Wave\";\n /**\n * Defines the animation as fade effect.\n */\n ShimmerEffect[\"Fade\"] = \"Fade\";\n /**\n * Defines the animation as pulse effect.\n */\n ShimmerEffect[\"Pulse\"] = \"Pulse\";\n /**\n * Defines the animation as no effect.\n */\n ShimmerEffect[\"None\"] = \"None\";\n return ShimmerEffect;\n}(ShimmerEffect || {});\n/**\n * The Shimmer is a placeholder that animates a shimmer effect to let users know that the page’s content is loading at the moment.\n * In other terms, it simulates the layout of page content while loading the actual content.\n * ```html\n *
    \n * ```\n * ```typescript\n * \n * ```\n */\nvar Skeleton = /** @__PURE__ @class */function (_super) {\n __extends$2(Skeleton, _super);\n /**\n * Constructor for creating Skeleton component.\n *\n * @param {SkeletonModel} options - Defines the model of Skeleton class.\n * @param {HTMLElement} element - Defines the target HTML element.\n */\n function Skeleton(options, element) {\n return _super.call(this, options, element) || this;\n }\n /**\n * Get component module name.\n *\n * @returns {string} - Module name\n * @private\n */\n Skeleton.prototype.getModuleName = function () {\n return 'skeleton';\n };\n Skeleton.prototype.getPersistData = function () {\n return this.addOnPersist([]);\n };\n Skeleton.prototype.preRender = function () {\n if (!this.element.id) {\n this.element.id = getUniqueID('e-' + this.getModuleName());\n }\n this.updateCssClass();\n attributes(this.element, {\n role: 'alert',\n 'aria-busy': 'true',\n 'aria-live': 'polite',\n 'aria-label': this.label\n });\n };\n /**\n * Method for initialize the component rendering.\n *\n * @returns {void}\n * @private\n */\n Skeleton.prototype.render = function () {\n this.initialize();\n };\n Skeleton.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'width':\n case 'height':\n this.updateDimension();\n break;\n case 'shape':\n this.updateShape();\n break;\n case 'shimmerEffect':\n this.updateEffect();\n break;\n case 'visible':\n this.updateVisibility();\n break;\n case 'label':\n this.element.setAttribute('aria-label', this.label);\n break;\n case 'cssClass':\n if (oldProp.cssClass) {\n removeClass([this.element], oldProp.cssClass.split(' '));\n }\n this.updateCssClass();\n break;\n }\n }\n };\n /**\n * Method to destroys the Skeleton component.\n *\n * @returns {void}\n */\n Skeleton.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n var attrs = ['role', 'aria-live', 'aria-busy', 'aria-label'];\n var cssClass = [];\n if (this.cssClass) {\n cssClass = cssClass.concat(this.cssClass.split(' '));\n }\n for (var i = 0; i < attrs.length; i++) {\n this.element.removeAttribute(attrs[parseInt(i.toString(), 10)]);\n }\n cssClass = cssClass.concat(this.element.classList.value.match(/(e-skeleton-[^\\s]+)/g) || []);\n cssClass = cssClass.concat(this.element.classList.value.match(/(e-shimmer-[^\\s]+)/g) || []);\n removeClass([this.element], cssClass);\n };\n Skeleton.prototype.initialize = function () {\n this.updateShape();\n this.updateEffect();\n this.updateVisibility();\n };\n Skeleton.prototype.updateShape = function () {\n if (!isNullOrUndefined(this.shape)) {\n var shapeCss = cssClassName[this.shape.toUpperCase() + 'SHAPE'];\n var removeCss = this.element.classList.value.match(/(e-skeleton-[^\\s]+)/g) || [];\n this.updateDimension();\n if (removeCss) {\n removeClass([this.element], removeCss);\n }\n addClass([this.element], [shapeCss]);\n }\n };\n Skeleton.prototype.updateDimension = function () {\n var width = !this.width && ['Text', 'Rectangle'].indexOf(this.shape) > -1 ? '100%' : formatUnit(this.width);\n var height = ['Circle', 'Square'].indexOf(this.shape) > -1 ? width : formatUnit(this.height);\n this.element.style.width = width;\n this.element.style.height = height;\n };\n Skeleton.prototype.updateEffect = function () {\n var removeCss = this.element.classList.value.match(/(e-shimmer-[^\\s]+)/g) || [];\n if (removeCss) {\n removeClass([this.element], removeCss);\n }\n if (!isNullOrUndefined(this.shimmerEffect)) {\n addClass([this.element], [cssClassName[this.shimmerEffect.toUpperCase() + 'EFFECT']]);\n }\n };\n Skeleton.prototype.updateVisibility = function () {\n this.element.classList[this.visible ? 'remove' : 'add'](cssClassName.VISIBLENONE);\n };\n Skeleton.prototype.updateCssClass = function () {\n if (this.cssClass) {\n addClass([this.element], this.cssClass.split(' '));\n }\n };\n __decorate$2([Property('')], Skeleton.prototype, \"width\", void 0);\n __decorate$2([Property('')], Skeleton.prototype, \"height\", void 0);\n __decorate$2([Property(true)], Skeleton.prototype, \"visible\", void 0);\n __decorate$2([Property('Text')], Skeleton.prototype, \"shape\", void 0);\n __decorate$2([Property('Wave')], Skeleton.prototype, \"shimmerEffect\", void 0);\n __decorate$2([Property('Loading...')], Skeleton.prototype, \"label\", void 0);\n __decorate$2([Property('')], Skeleton.prototype, \"cssClass\", void 0);\n Skeleton = __decorate$2([NotifyPropertyChanges], Skeleton);\n return Skeleton;\n}(Component);\nexport { ButtonModelProps, Message, Severity, ShimmerEffect, Skeleton, SkeletonType, Toast, ToastAnimationSettings, ToastAnimations, ToastPosition, ToastUtility, Variant };\n","import * as i0 from '@angular/core';\nimport { Directive, ContentChildren, Component, ChangeDetectionStrategy, ContentChild, NgModule } from '@angular/core';\nimport { ComplexBase, setValue, ArrayBase, ComponentBase, Template, ComponentMixins } from '@syncfusion/ej2-angular-base';\nimport { __decorate } from 'tslib';\nimport { Toast, Message, Skeleton } from '@syncfusion/ej2-notifications';\nconst _c0 = [\"title\"];\nconst _c1 = [\"content\"];\nconst _c2 = [\"template\"];\nconst _c3 = [\"*\"];\nexport * from '@syncfusion/ej2-notifications';\nimport { CommonModule } from '@angular/common';\nlet input = ['model'];\nlet outputs$3 = ['click'];\n/**\n * 'e-button' directive represent a button of angular toast\n * It must be contained in a Toast component(`ejs-toast`).\n * ```html\n * \n * \n * \n * \n * \n * \n * ```\n */\nlet ButtonModelPropDirective = /*#__PURE__*/(() => {\n class ButtonModelPropDirective extends ComplexBase {\n constructor(viewContainerRef) {\n super();\n this.viewContainerRef = viewContainerRef;\n setValue('currentInstance', this, this.viewContainerRef);\n this.registerEvents(outputs$3);\n this.directivePropList = input;\n }\n }\n ButtonModelPropDirective.ɵfac = function ButtonModelPropDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ButtonModelPropDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n };\n ButtonModelPropDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: ButtonModelPropDirective,\n selectors: [[\"e-buttonmodelprop\"]],\n inputs: {\n model: \"model\"\n },\n outputs: {\n click: \"click\"\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return ButtonModelPropDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * ButtonModelProp Array Directive\n * @private\n */\nlet ButtonModelPropsDirective = /*#__PURE__*/(() => {\n class ButtonModelPropsDirective extends ArrayBase {\n constructor() {\n super('buttons');\n }\n }\n ButtonModelPropsDirective.ɵfac = function ButtonModelPropsDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ButtonModelPropsDirective)();\n };\n ButtonModelPropsDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: ButtonModelPropsDirective,\n selectors: [[\"e-buttonmodelprops\"]],\n contentQueries: function ButtonModelPropsDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, ButtonModelPropDirective, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.children = _t);\n }\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return ButtonModelPropsDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs$2 = ['animation', 'buttons', 'content', 'cssClass', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'extendedTimeout', 'height', 'icon', 'locale', 'newestOnTop', 'position', 'progressDirection', 'showCloseButton', 'showProgressBar', 'target', 'template', 'timeOut', 'title', 'width'];\nconst outputs$2 = ['beforeClose', 'beforeOpen', 'beforeSanitizeHtml', 'click', 'close', 'created', 'destroyed', 'open'];\nconst twoWays$2 = [''];\n/**\n * Represents the Angular Toast Component\n * ```html\n * \n * ```\n */\nlet ToastComponent = /*#__PURE__*/(() => {\n let ToastComponent = class ToastComponent extends Toast {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.tags = ['buttons'];\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$2);\n this.addTwoWay.call(this, twoWays$2);\n setValue('currentInstance', this, this.viewContainerRef);\n this.containerContext = new ComponentBase();\n }\n ngOnInit() {\n this.containerContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.containerContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.containerContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.tagObjects[0].instance = this.childButtons;\n this.containerContext.ngAfterContentChecked(this);\n }\n };\n ToastComponent.ɵfac = function ToastComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ToastComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n ToastComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: ToastComponent,\n selectors: [[\"ejs-toast\"]],\n contentQueries: function ToastComponent_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, _c0, 5);\n i0.ɵɵcontentQuery(dirIndex, _c1, 5);\n i0.ɵɵcontentQuery(dirIndex, _c2, 5);\n i0.ɵɵcontentQuery(dirIndex, ButtonModelPropsDirective, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.title = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.template = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childButtons = _t.first);\n }\n },\n inputs: {\n animation: \"animation\",\n buttons: \"buttons\",\n content: \"content\",\n cssClass: \"cssClass\",\n enableHtmlSanitizer: \"enableHtmlSanitizer\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n extendedTimeout: \"extendedTimeout\",\n height: \"height\",\n icon: \"icon\",\n locale: \"locale\",\n newestOnTop: \"newestOnTop\",\n position: \"position\",\n progressDirection: \"progressDirection\",\n showCloseButton: \"showCloseButton\",\n showProgressBar: \"showProgressBar\",\n target: \"target\",\n template: \"template\",\n timeOut: \"timeOut\",\n title: \"title\",\n width: \"width\"\n },\n outputs: {\n beforeClose: \"beforeClose\",\n beforeOpen: \"beforeOpen\",\n beforeSanitizeHtml: \"beforeSanitizeHtml\",\n click: \"click\",\n close: \"close\",\n created: \"created\",\n destroyed: \"destroyed\",\n open: \"open\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n ngContentSelectors: _c3,\n decls: 1,\n vars: 0,\n template: function ToastComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵprojection(0);\n }\n },\n encapsulation: 2,\n changeDetection: 0\n });\n __decorate([Template()], ToastComponent.prototype, \"title\", void 0);\n __decorate([Template()], ToastComponent.prototype, \"content\", void 0);\n __decorate([Template()], ToastComponent.prototype, \"template\", void 0);\n ToastComponent = __decorate([ComponentMixins([ComponentBase])], ToastComponent);\n return ToastComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Toast component.\n */\nlet ToastModule = /*#__PURE__*/(() => {\n class ToastModule {}\n ToastModule.ɵfac = function ToastModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ToastModule)();\n };\n ToastModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: ToastModule\n });\n ToastModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return ToastModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Toast component with providers.\n */\nlet ToastAllModule = /*#__PURE__*/(() => {\n class ToastAllModule {}\n ToastAllModule.ɵfac = function ToastAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ToastAllModule)();\n };\n ToastAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: ToastAllModule\n });\n ToastAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, ToastModule], ToastModule]\n });\n return ToastAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs$1 = ['content', 'cssClass', 'enablePersistence', 'enableRtl', 'locale', 'severity', 'showCloseIcon', 'showIcon', 'variant', 'visible'];\nconst outputs$1 = ['closed', 'created', 'destroyed'];\nconst twoWays$1 = [''];\n/**\n * The Angular Message component displays messages with severity by differentiating icons and colors to denote the importance and context of the message to the end user.\n * ```html\n * \n * ```\n */\nlet MessageComponent = /*#__PURE__*/(() => {\n let MessageComponent = class MessageComponent extends Message {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$1);\n this.addTwoWay.call(this, twoWays$1);\n setValue('currentInstance', this, this.viewContainerRef);\n this.containerContext = new ComponentBase();\n }\n ngOnInit() {\n this.containerContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.containerContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.containerContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.containerContext.ngAfterContentChecked(this);\n }\n };\n MessageComponent.ɵfac = function MessageComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || MessageComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n MessageComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MessageComponent,\n selectors: [[\"ejs-message\"]],\n contentQueries: function MessageComponent_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, _c1, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);\n }\n },\n inputs: {\n content: \"content\",\n cssClass: \"cssClass\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n locale: \"locale\",\n severity: \"severity\",\n showCloseIcon: \"showCloseIcon\",\n showIcon: \"showIcon\",\n variant: \"variant\",\n visible: \"visible\"\n },\n outputs: {\n closed: \"closed\",\n created: \"created\",\n destroyed: \"destroyed\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n ngContentSelectors: _c3,\n decls: 1,\n vars: 0,\n template: function MessageComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵprojection(0);\n }\n },\n encapsulation: 2,\n changeDetection: 0\n });\n __decorate([Template()], MessageComponent.prototype, \"content\", void 0);\n MessageComponent = __decorate([ComponentMixins([ComponentBase])], MessageComponent);\n return MessageComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Message component.\n */\nlet MessageModule = /*#__PURE__*/(() => {\n class MessageModule {}\n MessageModule.ɵfac = function MessageModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || MessageModule)();\n };\n MessageModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: MessageModule\n });\n MessageModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return MessageModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Message component with providers.\n */\nlet MessageAllModule = /*#__PURE__*/(() => {\n class MessageAllModule {}\n MessageAllModule.ɵfac = function MessageAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || MessageAllModule)();\n };\n MessageAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: MessageAllModule\n });\n MessageAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, MessageModule], MessageModule]\n });\n return MessageAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs = ['cssClass', 'enablePersistence', 'enableRtl', 'height', 'label', 'locale', 'shape', 'shimmerEffect', 'visible', 'width'];\nconst outputs = [];\nconst twoWays = [''];\n/**\n * Represents the Angular Skeleton component\n * ```html\n * \n * ```\n */\nlet SkeletonComponent = /*#__PURE__*/(() => {\n let SkeletonComponent = class SkeletonComponent extends Skeleton {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs);\n this.addTwoWay.call(this, twoWays);\n setValue('currentInstance', this, this.viewContainerRef);\n this.context = new ComponentBase();\n }\n ngOnInit() {\n this.context.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.context.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.context.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.context.ngAfterContentChecked(this);\n }\n };\n SkeletonComponent.ɵfac = function SkeletonComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SkeletonComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n SkeletonComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: SkeletonComponent,\n selectors: [[\"ejs-skeleton\"]],\n inputs: {\n cssClass: \"cssClass\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n height: \"height\",\n label: \"label\",\n locale: \"locale\",\n shape: \"shape\",\n shimmerEffect: \"shimmerEffect\",\n visible: \"visible\",\n width: \"width\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n decls: 0,\n vars: 0,\n template: function SkeletonComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n });\n SkeletonComponent = __decorate([ComponentMixins([ComponentBase])], SkeletonComponent);\n return SkeletonComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Skeleton component.\n */\nlet SkeletonModule = /*#__PURE__*/(() => {\n class SkeletonModule {}\n SkeletonModule.ɵfac = function SkeletonModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SkeletonModule)();\n };\n SkeletonModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: SkeletonModule\n });\n SkeletonModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return SkeletonModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Skeleton component with providers.\n */\nlet SkeletonAllModule = /*#__PURE__*/(() => {\n class SkeletonAllModule {}\n SkeletonAllModule.ɵfac = function SkeletonAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SkeletonAllModule)();\n };\n SkeletonAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: SkeletonAllModule\n });\n SkeletonAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, SkeletonModule], SkeletonModule]\n });\n return SkeletonAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ButtonModelPropDirective, ButtonModelPropsDirective, MessageAllModule, MessageComponent, MessageModule, SkeletonAllModule, SkeletonComponent, SkeletonModule, ToastAllModule, ToastComponent, ToastModule };\n","// these aren't really private, but nor are they really useful to document\n\n/**\n * @private\n */\nclass LuxonError extends Error {}\n\n/**\n * @private\n */\nexport class InvalidDateTimeError extends LuxonError {\n constructor(reason) {\n super(`Invalid DateTime: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidIntervalError extends LuxonError {\n constructor(reason) {\n super(`Invalid Interval: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidDurationError extends LuxonError {\n constructor(reason) {\n super(`Invalid Duration: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class ConflictingSpecificationError extends LuxonError {}\n\n/**\n * @private\n */\nexport class InvalidUnitError extends LuxonError {\n constructor(unit) {\n super(`Invalid unit ${unit}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidArgumentError extends LuxonError {}\n\n/**\n * @private\n */\nexport class ZoneIsAbstractError extends LuxonError {\n constructor() {\n super(\"Zone is an abstract class\");\n }\n}","/**\n * @private\n */\n\nconst n = \"numeric\",\n s = \"short\",\n l = \"long\";\nexport const DATE_SHORT = {\n year: n,\n month: n,\n day: n\n};\nexport const DATE_MED = {\n year: n,\n month: s,\n day: n\n};\nexport const DATE_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s\n};\nexport const DATE_FULL = {\n year: n,\n month: l,\n day: n\n};\nexport const DATE_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l\n};\nexport const TIME_SIMPLE = {\n hour: n,\n minute: n\n};\nexport const TIME_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n\n};\nexport const TIME_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s\n};\nexport const TIME_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l\n};\nexport const TIME_24_SIMPLE = {\n hour: n,\n minute: n,\n hourCycle: \"h23\"\n};\nexport const TIME_24_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\"\n};\nexport const TIME_24_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n timeZoneName: s\n};\nexport const TIME_24_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n timeZoneName: l\n};\nexport const DATETIME_SHORT = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n\n};\nexport const DATETIME_SHORT_WITH_SECONDS = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n,\n second: n\n};\nexport const DATETIME_MED = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n\n};\nexport const DATETIME_MED_WITH_SECONDS = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n,\n second: n\n};\nexport const DATETIME_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s,\n hour: n,\n minute: n\n};\nexport const DATETIME_FULL = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n timeZoneName: s\n};\nexport const DATETIME_FULL_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s\n};\nexport const DATETIME_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n timeZoneName: l\n};\nexport const DATETIME_HUGE_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l\n};","import { ZoneIsAbstractError } from \"./errors.js\";\n\n/**\n * @interface\n */\nclass Zone {\n /**\n * The type of zone\n * @abstract\n * @type {string}\n */\n get type() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * The name of this zone.\n * @abstract\n * @type {string}\n */\n get name() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * The IANA name of this zone.\n * Defaults to `name` if not overwritten by a subclass.\n * @abstract\n * @type {string}\n */\n get ianaName() {\n return this.name;\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year.\n * @abstract\n * @type {boolean}\n */\n get isUniversal() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns the offset's common name (such as EST) at the specified timestamp\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the name\n * @param {Object} opts - Options to affect the format\n * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.\n * @param {string} opts.locale - What locale to return the offset name in.\n * @return {string}\n */\n offsetName(ts, opts) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns the offset's value as a string\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\n formatOffset(ts, format) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to compute the offset\n * @return {number}\n */\n offset(ts) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return whether this Zone is equal to another zone\n * @abstract\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return whether this Zone is valid.\n * @abstract\n * @type {boolean}\n */\n get isValid() {\n throw new ZoneIsAbstractError();\n }\n}\nexport { Zone as default };","import { formatOffset, parseZoneInfo } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\nlet singleton = null;\n\n/**\n * Represents the local zone for this JavaScript environment.\n * @implements {Zone}\n */\nclass SystemZone extends Zone {\n /**\n * Get a singleton instance of the local zone\n * @return {SystemZone}\n */\n static get instance() {\n if (singleton === null) {\n singleton = new SystemZone();\n }\n return singleton;\n }\n\n /** @override **/\n get type() {\n return \"system\";\n }\n\n /** @override **/\n get name() {\n return new Intl.DateTimeFormat().resolvedOptions().timeZone;\n }\n\n /** @override **/\n get isUniversal() {\n return false;\n }\n\n /** @override **/\n offsetName(ts, {\n format,\n locale\n }) {\n return parseZoneInfo(ts, format, locale);\n }\n\n /** @override **/\n formatOffset(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n\n /** @override **/\n offset(ts) {\n return -new Date(ts).getTimezoneOffset();\n }\n\n /** @override **/\n equals(otherZone) {\n return otherZone.type === \"system\";\n }\n\n /** @override **/\n get isValid() {\n return true;\n }\n}\nexport { SystemZone as default };","import { formatOffset, parseZoneInfo, isUndefined, objToLocalTS } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\nlet dtfCache = {};\nfunction makeDTF(zone) {\n if (!dtfCache[zone]) {\n dtfCache[zone] = new Intl.DateTimeFormat(\"en-US\", {\n hour12: false,\n timeZone: zone,\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\",\n era: \"short\"\n });\n }\n return dtfCache[zone];\n}\nconst typeToPos = {\n year: 0,\n month: 1,\n day: 2,\n era: 3,\n hour: 4,\n minute: 5,\n second: 6\n};\nfunction hackyOffset(dtf, date) {\n const formatted = dtf.format(date).replace(/\\u200E/g, \"\"),\n parsed = /(\\d+)\\/(\\d+)\\/(\\d+) (AD|BC),? (\\d+):(\\d+):(\\d+)/.exec(formatted),\n [, fMonth, fDay, fYear, fadOrBc, fHour, fMinute, fSecond] = parsed;\n return [fYear, fMonth, fDay, fadOrBc, fHour, fMinute, fSecond];\n}\nfunction partsOffset(dtf, date) {\n const formatted = dtf.formatToParts(date);\n const filled = [];\n for (let i = 0; i < formatted.length; i++) {\n const {\n type,\n value\n } = formatted[i];\n const pos = typeToPos[type];\n if (type === \"era\") {\n filled[pos] = value;\n } else if (!isUndefined(pos)) {\n filled[pos] = parseInt(value, 10);\n }\n }\n return filled;\n}\nlet ianaZoneCache = {};\n/**\n * A zone identified by an IANA identifier, like America/New_York\n * @implements {Zone}\n */\nclass IANAZone extends Zone {\n /**\n * @param {string} name - Zone name\n * @return {IANAZone}\n */\n static create(name) {\n if (!ianaZoneCache[name]) {\n ianaZoneCache[name] = new IANAZone(name);\n }\n return ianaZoneCache[name];\n }\n\n /**\n * Reset local caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n static resetCache() {\n ianaZoneCache = {};\n dtfCache = {};\n }\n\n /**\n * Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.\n * @param {string} s - The string to check validity on\n * @example IANAZone.isValidSpecifier(\"America/New_York\") //=> true\n * @example IANAZone.isValidSpecifier(\"Sport~~blorp\") //=> false\n * @deprecated For backward compatibility, this forwards to isValidZone, better use `isValidZone()` directly instead.\n * @return {boolean}\n */\n static isValidSpecifier(s) {\n return this.isValidZone(s);\n }\n\n /**\n * Returns whether the provided string identifies a real zone\n * @param {string} zone - The string to check\n * @example IANAZone.isValidZone(\"America/New_York\") //=> true\n * @example IANAZone.isValidZone(\"Fantasia/Castle\") //=> false\n * @example IANAZone.isValidZone(\"Sport~~blorp\") //=> false\n * @return {boolean}\n */\n static isValidZone(zone) {\n if (!zone) {\n return false;\n }\n try {\n new Intl.DateTimeFormat(\"en-US\", {\n timeZone: zone\n }).format();\n return true;\n } catch (e) {\n return false;\n }\n }\n constructor(name) {\n super();\n /** @private **/\n this.zoneName = name;\n /** @private **/\n this.valid = IANAZone.isValidZone(name);\n }\n\n /**\n * The type of zone. `iana` for all instances of `IANAZone`.\n * @override\n * @type {string}\n */\n get type() {\n return \"iana\";\n }\n\n /**\n * The name of this zone (i.e. the IANA zone name).\n * @override\n * @type {string}\n */\n get name() {\n return this.zoneName;\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year:\n * Always returns false for all IANA zones.\n * @override\n * @type {boolean}\n */\n get isUniversal() {\n return false;\n }\n\n /**\n * Returns the offset's common name (such as EST) at the specified timestamp\n * @override\n * @param {number} ts - Epoch milliseconds for which to get the name\n * @param {Object} opts - Options to affect the format\n * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.\n * @param {string} opts.locale - What locale to return the offset name in.\n * @return {string}\n */\n offsetName(ts, {\n format,\n locale\n }) {\n return parseZoneInfo(ts, format, locale, this.name);\n }\n\n /**\n * Returns the offset's value as a string\n * @override\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\n formatOffset(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n * @override\n * @param {number} ts - Epoch milliseconds for which to compute the offset\n * @return {number}\n */\n offset(ts) {\n const date = new Date(ts);\n if (isNaN(date)) return NaN;\n const dtf = makeDTF(this.name);\n let [year, month, day, adOrBc, hour, minute, second] = dtf.formatToParts ? partsOffset(dtf, date) : hackyOffset(dtf, date);\n if (adOrBc === \"BC\") {\n year = -Math.abs(year) + 1;\n }\n\n // because we're using hour12 and https://bugs.chromium.org/p/chromium/issues/detail?id=1025564&can=2&q=%2224%3A00%22%20datetimeformat\n const adjustedHour = hour === 24 ? 0 : hour;\n const asUTC = objToLocalTS({\n year,\n month,\n day,\n hour: adjustedHour,\n minute,\n second,\n millisecond: 0\n });\n let asTS = +date;\n const over = asTS % 1000;\n asTS -= over >= 0 ? over : 1000 + over;\n return (asUTC - asTS) / (60 * 1000);\n }\n\n /**\n * Return whether this Zone is equal to another zone\n * @override\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n return otherZone.type === \"iana\" && otherZone.name === this.name;\n }\n\n /**\n * Return whether this Zone is valid.\n * @override\n * @type {boolean}\n */\n get isValid() {\n return this.valid;\n }\n}\nexport { IANAZone as default };","import { hasLocaleWeekInfo, hasRelative, padStart, roundTo, validateWeekSettings } from \"./util.js\";\nimport * as English from \"./english.js\";\nimport Settings from \"../settings.js\";\nimport DateTime from \"../datetime.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\n\n// todo - remap caching\n\nlet intlLFCache = {};\nfunction getCachedLF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let dtf = intlLFCache[key];\n if (!dtf) {\n dtf = new Intl.ListFormat(locString, opts);\n intlLFCache[key] = dtf;\n }\n return dtf;\n}\nlet intlDTCache = {};\nfunction getCachedDTF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let dtf = intlDTCache[key];\n if (!dtf) {\n dtf = new Intl.DateTimeFormat(locString, opts);\n intlDTCache[key] = dtf;\n }\n return dtf;\n}\nlet intlNumCache = {};\nfunction getCachedINF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let inf = intlNumCache[key];\n if (!inf) {\n inf = new Intl.NumberFormat(locString, opts);\n intlNumCache[key] = inf;\n }\n return inf;\n}\nlet intlRelCache = {};\nfunction getCachedRTF(locString, opts = {}) {\n const {\n base,\n ...cacheKeyOpts\n } = opts; // exclude `base` from the options\n const key = JSON.stringify([locString, cacheKeyOpts]);\n let inf = intlRelCache[key];\n if (!inf) {\n inf = new Intl.RelativeTimeFormat(locString, opts);\n intlRelCache[key] = inf;\n }\n return inf;\n}\nlet sysLocaleCache = null;\nfunction systemLocale() {\n if (sysLocaleCache) {\n return sysLocaleCache;\n } else {\n sysLocaleCache = new Intl.DateTimeFormat().resolvedOptions().locale;\n return sysLocaleCache;\n }\n}\nlet weekInfoCache = {};\nfunction getCachedWeekInfo(locString) {\n let data = weekInfoCache[locString];\n if (!data) {\n const locale = new Intl.Locale(locString);\n // browsers currently implement this as a property, but spec says it should be a getter function\n data = \"getWeekInfo\" in locale ? locale.getWeekInfo() : locale.weekInfo;\n weekInfoCache[locString] = data;\n }\n return data;\n}\nfunction parseLocaleString(localeStr) {\n // I really want to avoid writing a BCP 47 parser\n // see, e.g. https://github.com/wooorm/bcp-47\n // Instead, we'll do this:\n\n // a) if the string has no -u extensions, just leave it alone\n // b) if it does, use Intl to resolve everything\n // c) if Intl fails, try again without the -u\n\n // private subtags and unicode subtags have ordering requirements,\n // and we're not properly parsing this, so just strip out the\n // private ones if they exist.\n const xIndex = localeStr.indexOf(\"-x-\");\n if (xIndex !== -1) {\n localeStr = localeStr.substring(0, xIndex);\n }\n const uIndex = localeStr.indexOf(\"-u-\");\n if (uIndex === -1) {\n return [localeStr];\n } else {\n let options;\n let selectedStr;\n try {\n options = getCachedDTF(localeStr).resolvedOptions();\n selectedStr = localeStr;\n } catch (e) {\n const smaller = localeStr.substring(0, uIndex);\n options = getCachedDTF(smaller).resolvedOptions();\n selectedStr = smaller;\n }\n const {\n numberingSystem,\n calendar\n } = options;\n return [selectedStr, numberingSystem, calendar];\n }\n}\nfunction intlConfigString(localeStr, numberingSystem, outputCalendar) {\n if (outputCalendar || numberingSystem) {\n if (!localeStr.includes(\"-u-\")) {\n localeStr += \"-u\";\n }\n if (outputCalendar) {\n localeStr += `-ca-${outputCalendar}`;\n }\n if (numberingSystem) {\n localeStr += `-nu-${numberingSystem}`;\n }\n return localeStr;\n } else {\n return localeStr;\n }\n}\nfunction mapMonths(f) {\n const ms = [];\n for (let i = 1; i <= 12; i++) {\n const dt = DateTime.utc(2009, i, 1);\n ms.push(f(dt));\n }\n return ms;\n}\nfunction mapWeekdays(f) {\n const ms = [];\n for (let i = 1; i <= 7; i++) {\n const dt = DateTime.utc(2016, 11, 13 + i);\n ms.push(f(dt));\n }\n return ms;\n}\nfunction listStuff(loc, length, englishFn, intlFn) {\n const mode = loc.listingMode();\n if (mode === \"error\") {\n return null;\n } else if (mode === \"en\") {\n return englishFn(length);\n } else {\n return intlFn(length);\n }\n}\nfunction supportsFastNumbers(loc) {\n if (loc.numberingSystem && loc.numberingSystem !== \"latn\") {\n return false;\n } else {\n return loc.numberingSystem === \"latn\" || !loc.locale || loc.locale.startsWith(\"en\") || new Intl.DateTimeFormat(loc.intl).resolvedOptions().numberingSystem === \"latn\";\n }\n}\n\n/**\n * @private\n */\n\nclass PolyNumberFormatter {\n constructor(intl, forceSimple, opts) {\n this.padTo = opts.padTo || 0;\n this.floor = opts.floor || false;\n const {\n padTo,\n floor,\n ...otherOpts\n } = opts;\n if (!forceSimple || Object.keys(otherOpts).length > 0) {\n const intlOpts = {\n useGrouping: false,\n ...opts\n };\n if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;\n this.inf = getCachedINF(intl, intlOpts);\n }\n }\n format(i) {\n if (this.inf) {\n const fixed = this.floor ? Math.floor(i) : i;\n return this.inf.format(fixed);\n } else {\n // to match the browser's numberformatter defaults\n const fixed = this.floor ? Math.floor(i) : roundTo(i, 3);\n return padStart(fixed, this.padTo);\n }\n }\n}\n\n/**\n * @private\n */\n\nclass PolyDateFormatter {\n constructor(dt, intl, opts) {\n this.opts = opts;\n this.originalZone = undefined;\n let z = undefined;\n if (this.opts.timeZone) {\n // Don't apply any workarounds if a timeZone is explicitly provided in opts\n this.dt = dt;\n } else if (dt.zone.type === \"fixed\") {\n // UTC-8 or Etc/UTC-8 are not part of tzdata, only Etc/GMT+8 and the like.\n // That is why fixed-offset TZ is set to that unless it is:\n // 1. Representing offset 0 when UTC is used to maintain previous behavior and does not become GMT.\n // 2. Unsupported by the browser:\n // - some do not support Etc/\n // - < Etc/GMT-14, > Etc/GMT+12, and 30-minute or 45-minute offsets are not part of tzdata\n const gmtOffset = -1 * (dt.offset / 60);\n const offsetZ = gmtOffset >= 0 ? `Etc/GMT+${gmtOffset}` : `Etc/GMT${gmtOffset}`;\n if (dt.offset !== 0 && IANAZone.create(offsetZ).valid) {\n z = offsetZ;\n this.dt = dt;\n } else {\n // Not all fixed-offset zones like Etc/+4:30 are present in tzdata so\n // we manually apply the offset and substitute the zone as needed.\n z = \"UTC\";\n this.dt = dt.offset === 0 ? dt : dt.setZone(\"UTC\").plus({\n minutes: dt.offset\n });\n this.originalZone = dt.zone;\n }\n } else if (dt.zone.type === \"system\") {\n this.dt = dt;\n } else if (dt.zone.type === \"iana\") {\n this.dt = dt;\n z = dt.zone.name;\n } else {\n // Custom zones can have any offset / offsetName so we just manually\n // apply the offset and substitute the zone as needed.\n z = \"UTC\";\n this.dt = dt.setZone(\"UTC\").plus({\n minutes: dt.offset\n });\n this.originalZone = dt.zone;\n }\n const intlOpts = {\n ...this.opts\n };\n intlOpts.timeZone = intlOpts.timeZone || z;\n this.dtf = getCachedDTF(intl, intlOpts);\n }\n format() {\n if (this.originalZone) {\n // If we have to substitute in the actual zone name, we have to use\n // formatToParts so that the timezone can be replaced.\n return this.formatToParts().map(({\n value\n }) => value).join(\"\");\n }\n return this.dtf.format(this.dt.toJSDate());\n }\n formatToParts() {\n const parts = this.dtf.formatToParts(this.dt.toJSDate());\n if (this.originalZone) {\n return parts.map(part => {\n if (part.type === \"timeZoneName\") {\n const offsetName = this.originalZone.offsetName(this.dt.ts, {\n locale: this.dt.locale,\n format: this.opts.timeZoneName\n });\n return {\n ...part,\n value: offsetName\n };\n } else {\n return part;\n }\n });\n }\n return parts;\n }\n resolvedOptions() {\n return this.dtf.resolvedOptions();\n }\n}\n\n/**\n * @private\n */\nclass PolyRelFormatter {\n constructor(intl, isEnglish, opts) {\n this.opts = {\n style: \"long\",\n ...opts\n };\n if (!isEnglish && hasRelative()) {\n this.rtf = getCachedRTF(intl, opts);\n }\n }\n format(count, unit) {\n if (this.rtf) {\n return this.rtf.format(count, unit);\n } else {\n return English.formatRelativeTime(unit, count, this.opts.numeric, this.opts.style !== \"long\");\n }\n }\n formatToParts(count, unit) {\n if (this.rtf) {\n return this.rtf.formatToParts(count, unit);\n } else {\n return [];\n }\n }\n}\nconst fallbackWeekSettings = {\n firstDay: 1,\n minimalDays: 4,\n weekend: [6, 7]\n};\n\n/**\n * @private\n */\n\nclass Locale {\n static fromOpts(opts) {\n return Locale.create(opts.locale, opts.numberingSystem, opts.outputCalendar, opts.weekSettings, opts.defaultToEN);\n }\n static create(locale, numberingSystem, outputCalendar, weekSettings, defaultToEN = false) {\n const specifiedLocale = locale || Settings.defaultLocale;\n // the system locale is useful for human-readable strings but annoying for parsing/formatting known formats\n const localeR = specifiedLocale || (defaultToEN ? \"en-US\" : systemLocale());\n const numberingSystemR = numberingSystem || Settings.defaultNumberingSystem;\n const outputCalendarR = outputCalendar || Settings.defaultOutputCalendar;\n const weekSettingsR = validateWeekSettings(weekSettings) || Settings.defaultWeekSettings;\n return new Locale(localeR, numberingSystemR, outputCalendarR, weekSettingsR, specifiedLocale);\n }\n static resetCache() {\n sysLocaleCache = null;\n intlDTCache = {};\n intlNumCache = {};\n intlRelCache = {};\n }\n static fromObject({\n locale,\n numberingSystem,\n outputCalendar,\n weekSettings\n } = {}) {\n return Locale.create(locale, numberingSystem, outputCalendar, weekSettings);\n }\n constructor(locale, numbering, outputCalendar, weekSettings, specifiedLocale) {\n const [parsedLocale, parsedNumberingSystem, parsedOutputCalendar] = parseLocaleString(locale);\n this.locale = parsedLocale;\n this.numberingSystem = numbering || parsedNumberingSystem || null;\n this.outputCalendar = outputCalendar || parsedOutputCalendar || null;\n this.weekSettings = weekSettings;\n this.intl = intlConfigString(this.locale, this.numberingSystem, this.outputCalendar);\n this.weekdaysCache = {\n format: {},\n standalone: {}\n };\n this.monthsCache = {\n format: {},\n standalone: {}\n };\n this.meridiemCache = null;\n this.eraCache = {};\n this.specifiedLocale = specifiedLocale;\n this.fastNumbersCached = null;\n }\n get fastNumbers() {\n if (this.fastNumbersCached == null) {\n this.fastNumbersCached = supportsFastNumbers(this);\n }\n return this.fastNumbersCached;\n }\n listingMode() {\n const isActuallyEn = this.isEnglish();\n const hasNoWeirdness = (this.numberingSystem === null || this.numberingSystem === \"latn\") && (this.outputCalendar === null || this.outputCalendar === \"gregory\");\n return isActuallyEn && hasNoWeirdness ? \"en\" : \"intl\";\n }\n clone(alts) {\n if (!alts || Object.getOwnPropertyNames(alts).length === 0) {\n return this;\n } else {\n return Locale.create(alts.locale || this.specifiedLocale, alts.numberingSystem || this.numberingSystem, alts.outputCalendar || this.outputCalendar, validateWeekSettings(alts.weekSettings) || this.weekSettings, alts.defaultToEN || false);\n }\n }\n redefaultToEN(alts = {}) {\n return this.clone({\n ...alts,\n defaultToEN: true\n });\n }\n redefaultToSystem(alts = {}) {\n return this.clone({\n ...alts,\n defaultToEN: false\n });\n }\n months(length, format = false) {\n return listStuff(this, length, English.months, () => {\n const intl = format ? {\n month: length,\n day: \"numeric\"\n } : {\n month: length\n },\n formatStr = format ? \"format\" : \"standalone\";\n if (!this.monthsCache[formatStr][length]) {\n this.monthsCache[formatStr][length] = mapMonths(dt => this.extract(dt, intl, \"month\"));\n }\n return this.monthsCache[formatStr][length];\n });\n }\n weekdays(length, format = false) {\n return listStuff(this, length, English.weekdays, () => {\n const intl = format ? {\n weekday: length,\n year: \"numeric\",\n month: \"long\",\n day: \"numeric\"\n } : {\n weekday: length\n },\n formatStr = format ? \"format\" : \"standalone\";\n if (!this.weekdaysCache[formatStr][length]) {\n this.weekdaysCache[formatStr][length] = mapWeekdays(dt => this.extract(dt, intl, \"weekday\"));\n }\n return this.weekdaysCache[formatStr][length];\n });\n }\n meridiems() {\n return listStuff(this, undefined, () => English.meridiems, () => {\n // In theory there could be aribitrary day periods. We're gonna assume there are exactly two\n // for AM and PM. This is probably wrong, but it's makes parsing way easier.\n if (!this.meridiemCache) {\n const intl = {\n hour: \"numeric\",\n hourCycle: \"h12\"\n };\n this.meridiemCache = [DateTime.utc(2016, 11, 13, 9), DateTime.utc(2016, 11, 13, 19)].map(dt => this.extract(dt, intl, \"dayperiod\"));\n }\n return this.meridiemCache;\n });\n }\n eras(length) {\n return listStuff(this, length, English.eras, () => {\n const intl = {\n era: length\n };\n\n // This is problematic. Different calendars are going to define eras totally differently. What I need is the minimum set of dates\n // to definitely enumerate them.\n if (!this.eraCache[length]) {\n this.eraCache[length] = [DateTime.utc(-40, 1, 1), DateTime.utc(2017, 1, 1)].map(dt => this.extract(dt, intl, \"era\"));\n }\n return this.eraCache[length];\n });\n }\n extract(dt, intlOpts, field) {\n const df = this.dtFormatter(dt, intlOpts),\n results = df.formatToParts(),\n matching = results.find(m => m.type.toLowerCase() === field);\n return matching ? matching.value : null;\n }\n numberFormatter(opts = {}) {\n // this forcesimple option is never used (the only caller short-circuits on it, but it seems safer to leave)\n // (in contrast, the rest of the condition is used heavily)\n return new PolyNumberFormatter(this.intl, opts.forceSimple || this.fastNumbers, opts);\n }\n dtFormatter(dt, intlOpts = {}) {\n return new PolyDateFormatter(dt, this.intl, intlOpts);\n }\n relFormatter(opts = {}) {\n return new PolyRelFormatter(this.intl, this.isEnglish(), opts);\n }\n listFormatter(opts = {}) {\n return getCachedLF(this.intl, opts);\n }\n isEnglish() {\n return this.locale === \"en\" || this.locale.toLowerCase() === \"en-us\" || new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith(\"en-us\");\n }\n getWeekSettings() {\n if (this.weekSettings) {\n return this.weekSettings;\n } else if (!hasLocaleWeekInfo()) {\n return fallbackWeekSettings;\n } else {\n return getCachedWeekInfo(this.locale);\n }\n }\n getStartOfWeek() {\n return this.getWeekSettings().firstDay;\n }\n getMinDaysInFirstWeek() {\n return this.getWeekSettings().minimalDays;\n }\n getWeekendDays() {\n return this.getWeekSettings().weekend;\n }\n equals(other) {\n return this.locale === other.locale && this.numberingSystem === other.numberingSystem && this.outputCalendar === other.outputCalendar;\n }\n toString() {\n return `Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`;\n }\n}\nexport { Locale as default };","import { formatOffset, signedOffset } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\nlet singleton = null;\n\n/**\n * A zone with a fixed offset (meaning no DST)\n * @implements {Zone}\n */\nclass FixedOffsetZone extends Zone {\n /**\n * Get a singleton instance of UTC\n * @return {FixedOffsetZone}\n */\n static get utcInstance() {\n if (singleton === null) {\n singleton = new FixedOffsetZone(0);\n }\n return singleton;\n }\n\n /**\n * Get an instance with a specified offset\n * @param {number} offset - The offset in minutes\n * @return {FixedOffsetZone}\n */\n static instance(offset) {\n return offset === 0 ? FixedOffsetZone.utcInstance : new FixedOffsetZone(offset);\n }\n\n /**\n * Get an instance of FixedOffsetZone from a UTC offset string, like \"UTC+6\"\n * @param {string} s - The offset string to parse\n * @example FixedOffsetZone.parseSpecifier(\"UTC+6\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC+06\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC-6:00\")\n * @return {FixedOffsetZone}\n */\n static parseSpecifier(s) {\n if (s) {\n const r = s.match(/^utc(?:([+-]\\d{1,2})(?::(\\d{2}))?)?$/i);\n if (r) {\n return new FixedOffsetZone(signedOffset(r[1], r[2]));\n }\n }\n return null;\n }\n constructor(offset) {\n super();\n /** @private **/\n this.fixed = offset;\n }\n\n /**\n * The type of zone. `fixed` for all instances of `FixedOffsetZone`.\n * @override\n * @type {string}\n */\n get type() {\n return \"fixed\";\n }\n\n /**\n * The name of this zone.\n * All fixed zones' names always start with \"UTC\" (plus optional offset)\n * @override\n * @type {string}\n */\n get name() {\n return this.fixed === 0 ? \"UTC\" : `UTC${formatOffset(this.fixed, \"narrow\")}`;\n }\n\n /**\n * The IANA name of this zone, i.e. `Etc/UTC` or `Etc/GMT+/-nn`\n *\n * @override\n * @type {string}\n */\n get ianaName() {\n if (this.fixed === 0) {\n return \"Etc/UTC\";\n } else {\n return `Etc/GMT${formatOffset(-this.fixed, \"narrow\")}`;\n }\n }\n\n /**\n * Returns the offset's common name at the specified timestamp.\n *\n * For fixed offset zones this equals to the zone name.\n * @override\n */\n offsetName() {\n return this.name;\n }\n\n /**\n * Returns the offset's value as a string\n * @override\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\n formatOffset(ts, format) {\n return formatOffset(this.fixed, format);\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year:\n * Always returns true for all fixed offset zones.\n * @override\n * @type {boolean}\n */\n get isUniversal() {\n return true;\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n *\n * For fixed offset zones, this is constant and does not depend on a timestamp.\n * @override\n * @return {number}\n */\n offset() {\n return this.fixed;\n }\n\n /**\n * Return whether this Zone is equal to another zone (i.e. also fixed and same offset)\n * @override\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n return otherZone.type === \"fixed\" && otherZone.fixed === this.fixed;\n }\n\n /**\n * Return whether this Zone is valid:\n * All fixed offset zones are valid.\n * @override\n * @type {boolean}\n */\n get isValid() {\n return true;\n }\n}\nexport { FixedOffsetZone as default };","import Zone from \"../zone.js\";\n\n/**\n * A zone that failed to parse. You should never need to instantiate this.\n * @implements {Zone}\n */\nclass InvalidZone extends Zone {\n constructor(zoneName) {\n super();\n /** @private */\n this.zoneName = zoneName;\n }\n\n /** @override **/\n get type() {\n return \"invalid\";\n }\n\n /** @override **/\n get name() {\n return this.zoneName;\n }\n\n /** @override **/\n get isUniversal() {\n return false;\n }\n\n /** @override **/\n offsetName() {\n return null;\n }\n\n /** @override **/\n formatOffset() {\n return \"\";\n }\n\n /** @override **/\n offset() {\n return NaN;\n }\n\n /** @override **/\n equals() {\n return false;\n }\n\n /** @override **/\n get isValid() {\n return false;\n }\n}\nexport { InvalidZone as default };","/**\n * @private\n */\n\nimport Zone from \"../zone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport InvalidZone from \"../zones/invalidZone.js\";\nimport { isUndefined, isString, isNumber } from \"./util.js\";\nimport SystemZone from \"../zones/systemZone.js\";\nexport function normalizeZone(input, defaultZone) {\n let offset;\n if (isUndefined(input) || input === null) {\n return defaultZone;\n } else if (input instanceof Zone) {\n return input;\n } else if (isString(input)) {\n const lowered = input.toLowerCase();\n if (lowered === \"default\") return defaultZone;else if (lowered === \"local\" || lowered === \"system\") return SystemZone.instance;else if (lowered === \"utc\" || lowered === \"gmt\") return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(lowered) || IANAZone.create(input);\n } else if (isNumber(input)) {\n return FixedOffsetZone.instance(input);\n } else if (typeof input === \"object\" && \"offset\" in input && typeof input.offset === \"function\") {\n // This is dumb, but the instanceof check above doesn't seem to really work\n // so we're duck checking it\n return input;\n } else {\n return new InvalidZone(input);\n }\n}","const numberingSystems = {\n arab: \"[\\u0660-\\u0669]\",\n arabext: \"[\\u06F0-\\u06F9]\",\n bali: \"[\\u1B50-\\u1B59]\",\n beng: \"[\\u09E6-\\u09EF]\",\n deva: \"[\\u0966-\\u096F]\",\n fullwide: \"[\\uFF10-\\uFF19]\",\n gujr: \"[\\u0AE6-\\u0AEF]\",\n hanidec: \"[〇|一|二|三|四|五|六|七|八|九]\",\n khmr: \"[\\u17E0-\\u17E9]\",\n knda: \"[\\u0CE6-\\u0CEF]\",\n laoo: \"[\\u0ED0-\\u0ED9]\",\n limb: \"[\\u1946-\\u194F]\",\n mlym: \"[\\u0D66-\\u0D6F]\",\n mong: \"[\\u1810-\\u1819]\",\n mymr: \"[\\u1040-\\u1049]\",\n orya: \"[\\u0B66-\\u0B6F]\",\n tamldec: \"[\\u0BE6-\\u0BEF]\",\n telu: \"[\\u0C66-\\u0C6F]\",\n thai: \"[\\u0E50-\\u0E59]\",\n tibt: \"[\\u0F20-\\u0F29]\",\n latn: \"\\\\d\"\n};\nconst numberingSystemsUTF16 = {\n arab: [1632, 1641],\n arabext: [1776, 1785],\n bali: [6992, 7001],\n beng: [2534, 2543],\n deva: [2406, 2415],\n fullwide: [65296, 65303],\n gujr: [2790, 2799],\n khmr: [6112, 6121],\n knda: [3302, 3311],\n laoo: [3792, 3801],\n limb: [6470, 6479],\n mlym: [3430, 3439],\n mong: [6160, 6169],\n mymr: [4160, 4169],\n orya: [2918, 2927],\n tamldec: [3046, 3055],\n telu: [3174, 3183],\n thai: [3664, 3673],\n tibt: [3872, 3881]\n};\nconst hanidecChars = numberingSystems.hanidec.replace(/[\\[|\\]]/g, \"\").split(\"\");\nexport function parseDigits(str) {\n let value = parseInt(str, 10);\n if (isNaN(value)) {\n value = \"\";\n for (let i = 0; i < str.length; i++) {\n const code = str.charCodeAt(i);\n if (str[i].search(numberingSystems.hanidec) !== -1) {\n value += hanidecChars.indexOf(str[i]);\n } else {\n for (const key in numberingSystemsUTF16) {\n const [min, max] = numberingSystemsUTF16[key];\n if (code >= min && code <= max) {\n value += code - min;\n }\n }\n }\n }\n return parseInt(value, 10);\n } else {\n return value;\n }\n}\n\n// cache of {numberingSystem: {append: regex}}\nlet digitRegexCache = {};\nexport function resetDigitRegexCache() {\n digitRegexCache = {};\n}\nexport function digitRegex({\n numberingSystem\n}, append = \"\") {\n const ns = numberingSystem || \"latn\";\n if (!digitRegexCache[ns]) {\n digitRegexCache[ns] = {};\n }\n if (!digitRegexCache[ns][append]) {\n digitRegexCache[ns][append] = new RegExp(`${numberingSystems[ns]}${append}`);\n }\n return digitRegexCache[ns][append];\n}","import SystemZone from \"./zones/systemZone.js\";\nimport IANAZone from \"./zones/IANAZone.js\";\nimport Locale from \"./impl/locale.js\";\nimport DateTime from \"./datetime.js\";\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\nimport { validateWeekSettings } from \"./impl/util.js\";\nimport { resetDigitRegexCache } from \"./impl/digits.js\";\nlet now = () => Date.now(),\n defaultZone = \"system\",\n defaultLocale = null,\n defaultNumberingSystem = null,\n defaultOutputCalendar = null,\n twoDigitCutoffYear = 60,\n throwOnInvalid,\n defaultWeekSettings = null;\n\n/**\n * Settings contains static getters and setters that control Luxon's overall behavior. Luxon is a simple library with few options, but the ones it does have live here.\n */\nclass Settings {\n /**\n * Get the callback for returning the current timestamp.\n * @type {function}\n */\n static get now() {\n return now;\n }\n\n /**\n * Set the callback for returning the current timestamp.\n * The function should return a number, which will be interpreted as an Epoch millisecond count\n * @type {function}\n * @example Settings.now = () => Date.now() + 3000 // pretend it is 3 seconds in the future\n * @example Settings.now = () => 0 // always pretend it's Jan 1, 1970 at midnight in UTC time\n */\n static set now(n) {\n now = n;\n }\n\n /**\n * Set the default time zone to create DateTimes in. Does not affect existing instances.\n * Use the value \"system\" to reset this value to the system's time zone.\n * @type {string}\n */\n static set defaultZone(zone) {\n defaultZone = zone;\n }\n\n /**\n * Get the default time zone object currently used to create DateTimes. Does not affect existing instances.\n * The default value is the system's time zone (the one set on the machine that runs this code).\n * @type {Zone}\n */\n static get defaultZone() {\n return normalizeZone(defaultZone, SystemZone.instance);\n }\n\n /**\n * Get the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultLocale() {\n return defaultLocale;\n }\n\n /**\n * Set the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultLocale(locale) {\n defaultLocale = locale;\n }\n\n /**\n * Get the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultNumberingSystem() {\n return defaultNumberingSystem;\n }\n\n /**\n * Set the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultNumberingSystem(numberingSystem) {\n defaultNumberingSystem = numberingSystem;\n }\n\n /**\n * Get the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultOutputCalendar() {\n return defaultOutputCalendar;\n }\n\n /**\n * Set the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultOutputCalendar(outputCalendar) {\n defaultOutputCalendar = outputCalendar;\n }\n\n /**\n * @typedef {Object} WeekSettings\n * @property {number} firstDay\n * @property {number} minimalDays\n * @property {number[]} weekend\n */\n\n /**\n * @return {WeekSettings|null}\n */\n static get defaultWeekSettings() {\n return defaultWeekSettings;\n }\n\n /**\n * Allows overriding the default locale week settings, i.e. the start of the week, the weekend and\n * how many days are required in the first week of a year.\n * Does not affect existing instances.\n *\n * @param {WeekSettings|null} weekSettings\n */\n static set defaultWeekSettings(weekSettings) {\n defaultWeekSettings = validateWeekSettings(weekSettings);\n }\n\n /**\n * Get the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.\n * @type {number}\n */\n static get twoDigitCutoffYear() {\n return twoDigitCutoffYear;\n }\n\n /**\n * Set the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.\n * @type {number}\n * @example Settings.twoDigitCutoffYear = 0 // all 'yy' are interpreted as 20th century\n * @example Settings.twoDigitCutoffYear = 99 // all 'yy' are interpreted as 21st century\n * @example Settings.twoDigitCutoffYear = 50 // '49' -> 2049; '50' -> 1950\n * @example Settings.twoDigitCutoffYear = 1950 // interpreted as 50\n * @example Settings.twoDigitCutoffYear = 2050 // ALSO interpreted as 50\n */\n static set twoDigitCutoffYear(cutoffYear) {\n twoDigitCutoffYear = cutoffYear % 100;\n }\n\n /**\n * Get whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */\n static get throwOnInvalid() {\n return throwOnInvalid;\n }\n\n /**\n * Set whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */\n static set throwOnInvalid(t) {\n throwOnInvalid = t;\n }\n\n /**\n * Reset Luxon's global caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n static resetCaches() {\n Locale.resetCache();\n IANAZone.resetCache();\n DateTime.resetCache();\n resetDigitRegexCache();\n }\n}\nexport { Settings as default };","class Invalid {\n constructor(reason, explanation) {\n this.reason = reason;\n this.explanation = explanation;\n }\n toMessage() {\n if (this.explanation) {\n return `${this.reason}: ${this.explanation}`;\n } else {\n return this.reason;\n }\n }\n}\nexport { Invalid as default };","import { integerBetween, isLeapYear, timeObject, daysInYear, daysInMonth, weeksInWeekYear, isInteger, isUndefined } from \"./util.js\";\nimport Invalid from \"./invalid.js\";\nimport { ConflictingSpecificationError } from \"../errors.js\";\nconst nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],\n leapLadder = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];\nfunction unitOutOfRange(unit, value) {\n return new Invalid(\"unit out of range\", `you specified ${value} (of type ${typeof value}) as a ${unit}, which is invalid`);\n}\nexport function dayOfWeek(year, month, day) {\n const d = new Date(Date.UTC(year, month - 1, day));\n if (year < 100 && year >= 0) {\n d.setUTCFullYear(d.getUTCFullYear() - 1900);\n }\n const js = d.getUTCDay();\n return js === 0 ? 7 : js;\n}\nfunction computeOrdinal(year, month, day) {\n return day + (isLeapYear(year) ? leapLadder : nonLeapLadder)[month - 1];\n}\nfunction uncomputeOrdinal(year, ordinal) {\n const table = isLeapYear(year) ? leapLadder : nonLeapLadder,\n month0 = table.findIndex(i => i < ordinal),\n day = ordinal - table[month0];\n return {\n month: month0 + 1,\n day\n };\n}\nexport function isoWeekdayToLocal(isoWeekday, startOfWeek) {\n return (isoWeekday - startOfWeek + 7) % 7 + 1;\n}\n\n/**\n * @private\n */\n\nexport function gregorianToWeek(gregObj, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const {\n year,\n month,\n day\n } = gregObj,\n ordinal = computeOrdinal(year, month, day),\n weekday = isoWeekdayToLocal(dayOfWeek(year, month, day), startOfWeek);\n let weekNumber = Math.floor((ordinal - weekday + 14 - minDaysInFirstWeek) / 7),\n weekYear;\n if (weekNumber < 1) {\n weekYear = year - 1;\n weekNumber = weeksInWeekYear(weekYear, minDaysInFirstWeek, startOfWeek);\n } else if (weekNumber > weeksInWeekYear(year, minDaysInFirstWeek, startOfWeek)) {\n weekYear = year + 1;\n weekNumber = 1;\n } else {\n weekYear = year;\n }\n return {\n weekYear,\n weekNumber,\n weekday,\n ...timeObject(gregObj)\n };\n}\nexport function weekToGregorian(weekData, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const {\n weekYear,\n weekNumber,\n weekday\n } = weekData,\n weekdayOfJan4 = isoWeekdayToLocal(dayOfWeek(weekYear, 1, minDaysInFirstWeek), startOfWeek),\n yearInDays = daysInYear(weekYear);\n let ordinal = weekNumber * 7 + weekday - weekdayOfJan4 - 7 + minDaysInFirstWeek,\n year;\n if (ordinal < 1) {\n year = weekYear - 1;\n ordinal += daysInYear(year);\n } else if (ordinal > yearInDays) {\n year = weekYear + 1;\n ordinal -= daysInYear(weekYear);\n } else {\n year = weekYear;\n }\n const {\n month,\n day\n } = uncomputeOrdinal(year, ordinal);\n return {\n year,\n month,\n day,\n ...timeObject(weekData)\n };\n}\nexport function gregorianToOrdinal(gregData) {\n const {\n year,\n month,\n day\n } = gregData;\n const ordinal = computeOrdinal(year, month, day);\n return {\n year,\n ordinal,\n ...timeObject(gregData)\n };\n}\nexport function ordinalToGregorian(ordinalData) {\n const {\n year,\n ordinal\n } = ordinalData;\n const {\n month,\n day\n } = uncomputeOrdinal(year, ordinal);\n return {\n year,\n month,\n day,\n ...timeObject(ordinalData)\n };\n}\n\n/**\n * Check if local week units like localWeekday are used in obj.\n * If so, validates that they are not mixed with ISO week units and then copies them to the normal week unit properties.\n * Modifies obj in-place!\n * @param obj the object values\n */\nexport function usesLocalWeekValues(obj, loc) {\n const hasLocaleWeekData = !isUndefined(obj.localWeekday) || !isUndefined(obj.localWeekNumber) || !isUndefined(obj.localWeekYear);\n if (hasLocaleWeekData) {\n const hasIsoWeekData = !isUndefined(obj.weekday) || !isUndefined(obj.weekNumber) || !isUndefined(obj.weekYear);\n if (hasIsoWeekData) {\n throw new ConflictingSpecificationError(\"Cannot mix locale-based week fields with ISO-based week fields\");\n }\n if (!isUndefined(obj.localWeekday)) obj.weekday = obj.localWeekday;\n if (!isUndefined(obj.localWeekNumber)) obj.weekNumber = obj.localWeekNumber;\n if (!isUndefined(obj.localWeekYear)) obj.weekYear = obj.localWeekYear;\n delete obj.localWeekday;\n delete obj.localWeekNumber;\n delete obj.localWeekYear;\n return {\n minDaysInFirstWeek: loc.getMinDaysInFirstWeek(),\n startOfWeek: loc.getStartOfWeek()\n };\n } else {\n return {\n minDaysInFirstWeek: 4,\n startOfWeek: 1\n };\n }\n}\nexport function hasInvalidWeekData(obj, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const validYear = isInteger(obj.weekYear),\n validWeek = integerBetween(obj.weekNumber, 1, weeksInWeekYear(obj.weekYear, minDaysInFirstWeek, startOfWeek)),\n validWeekday = integerBetween(obj.weekday, 1, 7);\n if (!validYear) {\n return unitOutOfRange(\"weekYear\", obj.weekYear);\n } else if (!validWeek) {\n return unitOutOfRange(\"week\", obj.weekNumber);\n } else if (!validWeekday) {\n return unitOutOfRange(\"weekday\", obj.weekday);\n } else return false;\n}\nexport function hasInvalidOrdinalData(obj) {\n const validYear = isInteger(obj.year),\n validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year));\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validOrdinal) {\n return unitOutOfRange(\"ordinal\", obj.ordinal);\n } else return false;\n}\nexport function hasInvalidGregorianData(obj) {\n const validYear = isInteger(obj.year),\n validMonth = integerBetween(obj.month, 1, 12),\n validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month));\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validMonth) {\n return unitOutOfRange(\"month\", obj.month);\n } else if (!validDay) {\n return unitOutOfRange(\"day\", obj.day);\n } else return false;\n}\nexport function hasInvalidTimeData(obj) {\n const {\n hour,\n minute,\n second,\n millisecond\n } = obj;\n const validHour = integerBetween(hour, 0, 23) || hour === 24 && minute === 0 && second === 0 && millisecond === 0,\n validMinute = integerBetween(minute, 0, 59),\n validSecond = integerBetween(second, 0, 59),\n validMillisecond = integerBetween(millisecond, 0, 999);\n if (!validHour) {\n return unitOutOfRange(\"hour\", hour);\n } else if (!validMinute) {\n return unitOutOfRange(\"minute\", minute);\n } else if (!validSecond) {\n return unitOutOfRange(\"second\", second);\n } else if (!validMillisecond) {\n return unitOutOfRange(\"millisecond\", millisecond);\n } else return false;\n}","/*\n This is just a junk drawer, containing anything used across multiple classes.\n Because Luxon is small(ish), this should stay small and we won't worry about splitting\n it up into, say, parsingUtil.js and basicUtil.js and so on. But they are divided up by feature area.\n*/\n\nimport { InvalidArgumentError } from \"../errors.js\";\nimport Settings from \"../settings.js\";\nimport { dayOfWeek, isoWeekdayToLocal } from \"./conversions.js\";\n\n/**\n * @private\n */\n\n// TYPES\n\nexport function isUndefined(o) {\n return typeof o === \"undefined\";\n}\nexport function isNumber(o) {\n return typeof o === \"number\";\n}\nexport function isInteger(o) {\n return typeof o === \"number\" && o % 1 === 0;\n}\nexport function isString(o) {\n return typeof o === \"string\";\n}\nexport function isDate(o) {\n return Object.prototype.toString.call(o) === \"[object Date]\";\n}\n\n// CAPABILITIES\n\nexport function hasRelative() {\n try {\n return typeof Intl !== \"undefined\" && !!Intl.RelativeTimeFormat;\n } catch (e) {\n return false;\n }\n}\nexport function hasLocaleWeekInfo() {\n try {\n return typeof Intl !== \"undefined\" && !!Intl.Locale && (\"weekInfo\" in Intl.Locale.prototype || \"getWeekInfo\" in Intl.Locale.prototype);\n } catch (e) {\n return false;\n }\n}\n\n// OBJECTS AND ARRAYS\n\nexport function maybeArray(thing) {\n return Array.isArray(thing) ? thing : [thing];\n}\nexport function bestBy(arr, by, compare) {\n if (arr.length === 0) {\n return undefined;\n }\n return arr.reduce((best, next) => {\n const pair = [by(next), next];\n if (!best) {\n return pair;\n } else if (compare(best[0], pair[0]) === best[0]) {\n return best;\n } else {\n return pair;\n }\n }, null)[1];\n}\nexport function pick(obj, keys) {\n return keys.reduce((a, k) => {\n a[k] = obj[k];\n return a;\n }, {});\n}\nexport function hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\nexport function validateWeekSettings(settings) {\n if (settings == null) {\n return null;\n } else if (typeof settings !== \"object\") {\n throw new InvalidArgumentError(\"Week settings must be an object\");\n } else {\n if (!integerBetween(settings.firstDay, 1, 7) || !integerBetween(settings.minimalDays, 1, 7) || !Array.isArray(settings.weekend) || settings.weekend.some(v => !integerBetween(v, 1, 7))) {\n throw new InvalidArgumentError(\"Invalid week settings\");\n }\n return {\n firstDay: settings.firstDay,\n minimalDays: settings.minimalDays,\n weekend: Array.from(settings.weekend)\n };\n }\n}\n\n// NUMBERS AND STRINGS\n\nexport function integerBetween(thing, bottom, top) {\n return isInteger(thing) && thing >= bottom && thing <= top;\n}\n\n// x % n but takes the sign of n instead of x\nexport function floorMod(x, n) {\n return x - n * Math.floor(x / n);\n}\nexport function padStart(input, n = 2) {\n const isNeg = input < 0;\n let padded;\n if (isNeg) {\n padded = \"-\" + (\"\" + -input).padStart(n, \"0\");\n } else {\n padded = (\"\" + input).padStart(n, \"0\");\n }\n return padded;\n}\nexport function parseInteger(string) {\n if (isUndefined(string) || string === null || string === \"\") {\n return undefined;\n } else {\n return parseInt(string, 10);\n }\n}\nexport function parseFloating(string) {\n if (isUndefined(string) || string === null || string === \"\") {\n return undefined;\n } else {\n return parseFloat(string);\n }\n}\nexport function parseMillis(fraction) {\n // Return undefined (instead of 0) in these cases, where fraction is not set\n if (isUndefined(fraction) || fraction === null || fraction === \"\") {\n return undefined;\n } else {\n const f = parseFloat(\"0.\" + fraction) * 1000;\n return Math.floor(f);\n }\n}\nexport function roundTo(number, digits, towardZero = false) {\n const factor = 10 ** digits,\n rounder = towardZero ? Math.trunc : Math.round;\n return rounder(number * factor) / factor;\n}\n\n// DATE BASICS\n\nexport function isLeapYear(year) {\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\nexport function daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n}\nexport function daysInMonth(year, month) {\n const modMonth = floorMod(month - 1, 12) + 1,\n modYear = year + (month - modMonth) / 12;\n if (modMonth === 2) {\n return isLeapYear(modYear) ? 29 : 28;\n } else {\n return [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][modMonth - 1];\n }\n}\n\n// convert a calendar object to a local timestamp (epoch, but with the offset baked in)\nexport function objToLocalTS(obj) {\n let d = Date.UTC(obj.year, obj.month - 1, obj.day, obj.hour, obj.minute, obj.second, obj.millisecond);\n\n // for legacy reasons, years between 0 and 99 are interpreted as 19XX; revert that\n if (obj.year < 100 && obj.year >= 0) {\n d = new Date(d);\n // set the month and day again, this is necessary because year 2000 is a leap year, but year 100 is not\n // so if obj.year is in 99, but obj.day makes it roll over into year 100,\n // the calculations done by Date.UTC are using year 2000 - which is incorrect\n d.setUTCFullYear(obj.year, obj.month - 1, obj.day);\n }\n return +d;\n}\n\n// adapted from moment.js: https://github.com/moment/moment/blob/000ac1800e620f770f4eb31b5ae908f6167b0ab2/src/lib/units/week-calendar-utils.js\nfunction firstWeekOffset(year, minDaysInFirstWeek, startOfWeek) {\n const fwdlw = isoWeekdayToLocal(dayOfWeek(year, 1, minDaysInFirstWeek), startOfWeek);\n return -fwdlw + minDaysInFirstWeek - 1;\n}\nexport function weeksInWeekYear(weekYear, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const weekOffset = firstWeekOffset(weekYear, minDaysInFirstWeek, startOfWeek);\n const weekOffsetNext = firstWeekOffset(weekYear + 1, minDaysInFirstWeek, startOfWeek);\n return (daysInYear(weekYear) - weekOffset + weekOffsetNext) / 7;\n}\nexport function untruncateYear(year) {\n if (year > 99) {\n return year;\n } else return year > Settings.twoDigitCutoffYear ? 1900 + year : 2000 + year;\n}\n\n// PARSING\n\nexport function parseZoneInfo(ts, offsetFormat, locale, timeZone = null) {\n const date = new Date(ts),\n intlOpts = {\n hourCycle: \"h23\",\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\"\n };\n if (timeZone) {\n intlOpts.timeZone = timeZone;\n }\n const modified = {\n timeZoneName: offsetFormat,\n ...intlOpts\n };\n const parsed = new Intl.DateTimeFormat(locale, modified).formatToParts(date).find(m => m.type.toLowerCase() === \"timezonename\");\n return parsed ? parsed.value : null;\n}\n\n// signedOffset('-5', '30') -> -330\nexport function signedOffset(offHourStr, offMinuteStr) {\n let offHour = parseInt(offHourStr, 10);\n\n // don't || this because we want to preserve -0\n if (Number.isNaN(offHour)) {\n offHour = 0;\n }\n const offMin = parseInt(offMinuteStr, 10) || 0,\n offMinSigned = offHour < 0 || Object.is(offHour, -0) ? -offMin : offMin;\n return offHour * 60 + offMinSigned;\n}\n\n// COERCION\n\nexport function asNumber(value) {\n const numericValue = Number(value);\n if (typeof value === \"boolean\" || value === \"\" || Number.isNaN(numericValue)) throw new InvalidArgumentError(`Invalid unit value ${value}`);\n return numericValue;\n}\nexport function normalizeObject(obj, normalizer) {\n const normalized = {};\n for (const u in obj) {\n if (hasOwnProperty(obj, u)) {\n const v = obj[u];\n if (v === undefined || v === null) continue;\n normalized[normalizer(u)] = asNumber(v);\n }\n }\n return normalized;\n}\n\n/**\n * Returns the offset's value as a string\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\nexport function formatOffset(offset, format) {\n const hours = Math.trunc(Math.abs(offset / 60)),\n minutes = Math.trunc(Math.abs(offset % 60)),\n sign = offset >= 0 ? \"+\" : \"-\";\n switch (format) {\n case \"short\":\n return `${sign}${padStart(hours, 2)}:${padStart(minutes, 2)}`;\n case \"narrow\":\n return `${sign}${hours}${minutes > 0 ? `:${minutes}` : \"\"}`;\n case \"techie\":\n return `${sign}${padStart(hours, 2)}${padStart(minutes, 2)}`;\n default:\n throw new RangeError(`Value format ${format} is out of range for property format`);\n }\n}\nexport function timeObject(obj) {\n return pick(obj, [\"hour\", \"minute\", \"second\", \"millisecond\"]);\n}","import * as Formats from \"./formats.js\";\nimport { pick } from \"./util.js\";\nfunction stringify(obj) {\n return JSON.stringify(obj, Object.keys(obj).sort());\n}\n\n/**\n * @private\n */\n\nexport const monthsLong = [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"];\nexport const monthsShort = [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"];\nexport const monthsNarrow = [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"];\nexport function months(length) {\n switch (length) {\n case \"narrow\":\n return [...monthsNarrow];\n case \"short\":\n return [...monthsShort];\n case \"long\":\n return [...monthsLong];\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\"];\n case \"2-digit\":\n return [\"01\", \"02\", \"03\", \"04\", \"05\", \"06\", \"07\", \"08\", \"09\", \"10\", \"11\", \"12\"];\n default:\n return null;\n }\n}\nexport const weekdaysLong = [\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"];\nexport const weekdaysShort = [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\nexport const weekdaysNarrow = [\"M\", \"T\", \"W\", \"T\", \"F\", \"S\", \"S\"];\nexport function weekdays(length) {\n switch (length) {\n case \"narrow\":\n return [...weekdaysNarrow];\n case \"short\":\n return [...weekdaysShort];\n case \"long\":\n return [...weekdaysLong];\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\"];\n default:\n return null;\n }\n}\nexport const meridiems = [\"AM\", \"PM\"];\nexport const erasLong = [\"Before Christ\", \"Anno Domini\"];\nexport const erasShort = [\"BC\", \"AD\"];\nexport const erasNarrow = [\"B\", \"A\"];\nexport function eras(length) {\n switch (length) {\n case \"narrow\":\n return [...erasNarrow];\n case \"short\":\n return [...erasShort];\n case \"long\":\n return [...erasLong];\n default:\n return null;\n }\n}\nexport function meridiemForDateTime(dt) {\n return meridiems[dt.hour < 12 ? 0 : 1];\n}\nexport function weekdayForDateTime(dt, length) {\n return weekdays(length)[dt.weekday - 1];\n}\nexport function monthForDateTime(dt, length) {\n return months(length)[dt.month - 1];\n}\nexport function eraForDateTime(dt, length) {\n return eras(length)[dt.year < 0 ? 0 : 1];\n}\nexport function formatRelativeTime(unit, count, numeric = \"always\", narrow = false) {\n const units = {\n years: [\"year\", \"yr.\"],\n quarters: [\"quarter\", \"qtr.\"],\n months: [\"month\", \"mo.\"],\n weeks: [\"week\", \"wk.\"],\n days: [\"day\", \"day\", \"days\"],\n hours: [\"hour\", \"hr.\"],\n minutes: [\"minute\", \"min.\"],\n seconds: [\"second\", \"sec.\"]\n };\n const lastable = [\"hours\", \"minutes\", \"seconds\"].indexOf(unit) === -1;\n if (numeric === \"auto\" && lastable) {\n const isDay = unit === \"days\";\n switch (count) {\n case 1:\n return isDay ? \"tomorrow\" : `next ${units[unit][0]}`;\n case -1:\n return isDay ? \"yesterday\" : `last ${units[unit][0]}`;\n case 0:\n return isDay ? \"today\" : `this ${units[unit][0]}`;\n default: // fall through\n }\n }\n const isInPast = Object.is(count, -0) || count < 0,\n fmtValue = Math.abs(count),\n singular = fmtValue === 1,\n lilUnits = units[unit],\n fmtUnit = narrow ? singular ? lilUnits[1] : lilUnits[2] || lilUnits[1] : singular ? units[unit][0] : unit;\n return isInPast ? `${fmtValue} ${fmtUnit} ago` : `in ${fmtValue} ${fmtUnit}`;\n}\nexport function formatString(knownFormat) {\n // these all have the offsets removed because we don't have access to them\n // without all the intl stuff this is backfilling\n const filtered = pick(knownFormat, [\"weekday\", \"era\", \"year\", \"month\", \"day\", \"hour\", \"minute\", \"second\", \"timeZoneName\", \"hourCycle\"]),\n key = stringify(filtered),\n dateTimeHuge = \"EEEE, LLLL d, yyyy, h:mm a\";\n switch (key) {\n case stringify(Formats.DATE_SHORT):\n return \"M/d/yyyy\";\n case stringify(Formats.DATE_MED):\n return \"LLL d, yyyy\";\n case stringify(Formats.DATE_MED_WITH_WEEKDAY):\n return \"EEE, LLL d, yyyy\";\n case stringify(Formats.DATE_FULL):\n return \"LLLL d, yyyy\";\n case stringify(Formats.DATE_HUGE):\n return \"EEEE, LLLL d, yyyy\";\n case stringify(Formats.TIME_SIMPLE):\n return \"h:mm a\";\n case stringify(Formats.TIME_WITH_SECONDS):\n return \"h:mm:ss a\";\n case stringify(Formats.TIME_WITH_SHORT_OFFSET):\n return \"h:mm a\";\n case stringify(Formats.TIME_WITH_LONG_OFFSET):\n return \"h:mm a\";\n case stringify(Formats.TIME_24_SIMPLE):\n return \"HH:mm\";\n case stringify(Formats.TIME_24_WITH_SECONDS):\n return \"HH:mm:ss\";\n case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):\n return \"HH:mm\";\n case stringify(Formats.TIME_24_WITH_LONG_OFFSET):\n return \"HH:mm\";\n case stringify(Formats.DATETIME_SHORT):\n return \"M/d/yyyy, h:mm a\";\n case stringify(Formats.DATETIME_MED):\n return \"LLL d, yyyy, h:mm a\";\n case stringify(Formats.DATETIME_FULL):\n return \"LLLL d, yyyy, h:mm a\";\n case stringify(Formats.DATETIME_HUGE):\n return dateTimeHuge;\n case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):\n return \"M/d/yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_MED_WITH_SECONDS):\n return \"LLL d, yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):\n return \"EEE, d LLL yyyy, h:mm a\";\n case stringify(Formats.DATETIME_FULL_WITH_SECONDS):\n return \"LLLL d, yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):\n return \"EEEE, LLLL d, yyyy, h:mm:ss a\";\n default:\n return dateTimeHuge;\n }\n}","import * as English from \"./english.js\";\nimport * as Formats from \"./formats.js\";\nimport { padStart } from \"./util.js\";\nfunction stringifyTokens(splits, tokenToString) {\n let s = \"\";\n for (const token of splits) {\n if (token.literal) {\n s += token.val;\n } else {\n s += tokenToString(token.val);\n }\n }\n return s;\n}\nconst macroTokenToFormatOpts = {\n D: Formats.DATE_SHORT,\n DD: Formats.DATE_MED,\n DDD: Formats.DATE_FULL,\n DDDD: Formats.DATE_HUGE,\n t: Formats.TIME_SIMPLE,\n tt: Formats.TIME_WITH_SECONDS,\n ttt: Formats.TIME_WITH_SHORT_OFFSET,\n tttt: Formats.TIME_WITH_LONG_OFFSET,\n T: Formats.TIME_24_SIMPLE,\n TT: Formats.TIME_24_WITH_SECONDS,\n TTT: Formats.TIME_24_WITH_SHORT_OFFSET,\n TTTT: Formats.TIME_24_WITH_LONG_OFFSET,\n f: Formats.DATETIME_SHORT,\n ff: Formats.DATETIME_MED,\n fff: Formats.DATETIME_FULL,\n ffff: Formats.DATETIME_HUGE,\n F: Formats.DATETIME_SHORT_WITH_SECONDS,\n FF: Formats.DATETIME_MED_WITH_SECONDS,\n FFF: Formats.DATETIME_FULL_WITH_SECONDS,\n FFFF: Formats.DATETIME_HUGE_WITH_SECONDS\n};\n\n/**\n * @private\n */\n\nclass Formatter {\n static create(locale, opts = {}) {\n return new Formatter(locale, opts);\n }\n static parseFormat(fmt) {\n // white-space is always considered a literal in user-provided formats\n // the \" \" token has a special meaning (see unitForToken)\n\n let current = null,\n currentFull = \"\",\n bracketed = false;\n const splits = [];\n for (let i = 0; i < fmt.length; i++) {\n const c = fmt.charAt(i);\n if (c === \"'\") {\n if (currentFull.length > 0) {\n splits.push({\n literal: bracketed || /^\\s+$/.test(currentFull),\n val: currentFull\n });\n }\n current = null;\n currentFull = \"\";\n bracketed = !bracketed;\n } else if (bracketed) {\n currentFull += c;\n } else if (c === current) {\n currentFull += c;\n } else {\n if (currentFull.length > 0) {\n splits.push({\n literal: /^\\s+$/.test(currentFull),\n val: currentFull\n });\n }\n currentFull = c;\n current = c;\n }\n }\n if (currentFull.length > 0) {\n splits.push({\n literal: bracketed || /^\\s+$/.test(currentFull),\n val: currentFull\n });\n }\n return splits;\n }\n static macroTokenToFormatOpts(token) {\n return macroTokenToFormatOpts[token];\n }\n constructor(locale, formatOpts) {\n this.opts = formatOpts;\n this.loc = locale;\n this.systemLoc = null;\n }\n formatWithSystemDefault(dt, opts) {\n if (this.systemLoc === null) {\n this.systemLoc = this.loc.redefaultToSystem();\n }\n const df = this.systemLoc.dtFormatter(dt, {\n ...this.opts,\n ...opts\n });\n return df.format();\n }\n dtFormatter(dt, opts = {}) {\n return this.loc.dtFormatter(dt, {\n ...this.opts,\n ...opts\n });\n }\n formatDateTime(dt, opts) {\n return this.dtFormatter(dt, opts).format();\n }\n formatDateTimeParts(dt, opts) {\n return this.dtFormatter(dt, opts).formatToParts();\n }\n formatInterval(interval, opts) {\n const df = this.dtFormatter(interval.start, opts);\n return df.dtf.formatRange(interval.start.toJSDate(), interval.end.toJSDate());\n }\n resolvedOptions(dt, opts) {\n return this.dtFormatter(dt, opts).resolvedOptions();\n }\n num(n, p = 0) {\n // we get some perf out of doing this here, annoyingly\n if (this.opts.forceSimple) {\n return padStart(n, p);\n }\n const opts = {\n ...this.opts\n };\n if (p > 0) {\n opts.padTo = p;\n }\n return this.loc.numberFormatter(opts).format(n);\n }\n formatDateTimeFromString(dt, fmt) {\n const knownEnglish = this.loc.listingMode() === \"en\",\n useDateTimeFormatter = this.loc.outputCalendar && this.loc.outputCalendar !== \"gregory\",\n string = (opts, extract) => this.loc.extract(dt, opts, extract),\n formatOffset = opts => {\n if (dt.isOffsetFixed && dt.offset === 0 && opts.allowZ) {\n return \"Z\";\n }\n return dt.isValid ? dt.zone.formatOffset(dt.ts, opts.format) : \"\";\n },\n meridiem = () => knownEnglish ? English.meridiemForDateTime(dt) : string({\n hour: \"numeric\",\n hourCycle: \"h12\"\n }, \"dayperiod\"),\n month = (length, standalone) => knownEnglish ? English.monthForDateTime(dt, length) : string(standalone ? {\n month: length\n } : {\n month: length,\n day: \"numeric\"\n }, \"month\"),\n weekday = (length, standalone) => knownEnglish ? English.weekdayForDateTime(dt, length) : string(standalone ? {\n weekday: length\n } : {\n weekday: length,\n month: \"long\",\n day: \"numeric\"\n }, \"weekday\"),\n maybeMacro = token => {\n const formatOpts = Formatter.macroTokenToFormatOpts(token);\n if (formatOpts) {\n return this.formatWithSystemDefault(dt, formatOpts);\n } else {\n return token;\n }\n },\n era = length => knownEnglish ? English.eraForDateTime(dt, length) : string({\n era: length\n }, \"era\"),\n tokenToString = token => {\n // Where possible: https://cldr.unicode.org/translation/date-time/date-time-symbols\n switch (token) {\n // ms\n case \"S\":\n return this.num(dt.millisecond);\n case \"u\":\n // falls through\n case \"SSS\":\n return this.num(dt.millisecond, 3);\n // seconds\n case \"s\":\n return this.num(dt.second);\n case \"ss\":\n return this.num(dt.second, 2);\n // fractional seconds\n case \"uu\":\n return this.num(Math.floor(dt.millisecond / 10), 2);\n case \"uuu\":\n return this.num(Math.floor(dt.millisecond / 100));\n // minutes\n case \"m\":\n return this.num(dt.minute);\n case \"mm\":\n return this.num(dt.minute, 2);\n // hours\n case \"h\":\n return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12);\n case \"hh\":\n return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2);\n case \"H\":\n return this.num(dt.hour);\n case \"HH\":\n return this.num(dt.hour, 2);\n // offset\n case \"Z\":\n // like +6\n return formatOffset({\n format: \"narrow\",\n allowZ: this.opts.allowZ\n });\n case \"ZZ\":\n // like +06:00\n return formatOffset({\n format: \"short\",\n allowZ: this.opts.allowZ\n });\n case \"ZZZ\":\n // like +0600\n return formatOffset({\n format: \"techie\",\n allowZ: this.opts.allowZ\n });\n case \"ZZZZ\":\n // like EST\n return dt.zone.offsetName(dt.ts, {\n format: \"short\",\n locale: this.loc.locale\n });\n case \"ZZZZZ\":\n // like Eastern Standard Time\n return dt.zone.offsetName(dt.ts, {\n format: \"long\",\n locale: this.loc.locale\n });\n // zone\n case \"z\":\n // like America/New_York\n return dt.zoneName;\n // meridiems\n case \"a\":\n return meridiem();\n // dates\n case \"d\":\n return useDateTimeFormatter ? string({\n day: \"numeric\"\n }, \"day\") : this.num(dt.day);\n case \"dd\":\n return useDateTimeFormatter ? string({\n day: \"2-digit\"\n }, \"day\") : this.num(dt.day, 2);\n // weekdays - standalone\n case \"c\":\n // like 1\n return this.num(dt.weekday);\n case \"ccc\":\n // like 'Tues'\n return weekday(\"short\", true);\n case \"cccc\":\n // like 'Tuesday'\n return weekday(\"long\", true);\n case \"ccccc\":\n // like 'T'\n return weekday(\"narrow\", true);\n // weekdays - format\n case \"E\":\n // like 1\n return this.num(dt.weekday);\n case \"EEE\":\n // like 'Tues'\n return weekday(\"short\", false);\n case \"EEEE\":\n // like 'Tuesday'\n return weekday(\"long\", false);\n case \"EEEEE\":\n // like 'T'\n return weekday(\"narrow\", false);\n // months - standalone\n case \"L\":\n // like 1\n return useDateTimeFormatter ? string({\n month: \"numeric\",\n day: \"numeric\"\n }, \"month\") : this.num(dt.month);\n case \"LL\":\n // like 01, doesn't seem to work\n return useDateTimeFormatter ? string({\n month: \"2-digit\",\n day: \"numeric\"\n }, \"month\") : this.num(dt.month, 2);\n case \"LLL\":\n // like Jan\n return month(\"short\", true);\n case \"LLLL\":\n // like January\n return month(\"long\", true);\n case \"LLLLL\":\n // like J\n return month(\"narrow\", true);\n // months - format\n case \"M\":\n // like 1\n return useDateTimeFormatter ? string({\n month: \"numeric\"\n }, \"month\") : this.num(dt.month);\n case \"MM\":\n // like 01\n return useDateTimeFormatter ? string({\n month: \"2-digit\"\n }, \"month\") : this.num(dt.month, 2);\n case \"MMM\":\n // like Jan\n return month(\"short\", false);\n case \"MMMM\":\n // like January\n return month(\"long\", false);\n case \"MMMMM\":\n // like J\n return month(\"narrow\", false);\n // years\n case \"y\":\n // like 2014\n return useDateTimeFormatter ? string({\n year: \"numeric\"\n }, \"year\") : this.num(dt.year);\n case \"yy\":\n // like 14\n return useDateTimeFormatter ? string({\n year: \"2-digit\"\n }, \"year\") : this.num(dt.year.toString().slice(-2), 2);\n case \"yyyy\":\n // like 0012\n return useDateTimeFormatter ? string({\n year: \"numeric\"\n }, \"year\") : this.num(dt.year, 4);\n case \"yyyyyy\":\n // like 000012\n return useDateTimeFormatter ? string({\n year: \"numeric\"\n }, \"year\") : this.num(dt.year, 6);\n // eras\n case \"G\":\n // like AD\n return era(\"short\");\n case \"GG\":\n // like Anno Domini\n return era(\"long\");\n case \"GGGGG\":\n return era(\"narrow\");\n case \"kk\":\n return this.num(dt.weekYear.toString().slice(-2), 2);\n case \"kkkk\":\n return this.num(dt.weekYear, 4);\n case \"W\":\n return this.num(dt.weekNumber);\n case \"WW\":\n return this.num(dt.weekNumber, 2);\n case \"n\":\n return this.num(dt.localWeekNumber);\n case \"nn\":\n return this.num(dt.localWeekNumber, 2);\n case \"ii\":\n return this.num(dt.localWeekYear.toString().slice(-2), 2);\n case \"iiii\":\n return this.num(dt.localWeekYear, 4);\n case \"o\":\n return this.num(dt.ordinal);\n case \"ooo\":\n return this.num(dt.ordinal, 3);\n case \"q\":\n // like 1\n return this.num(dt.quarter);\n case \"qq\":\n // like 01\n return this.num(dt.quarter, 2);\n case \"X\":\n return this.num(Math.floor(dt.ts / 1000));\n case \"x\":\n return this.num(dt.ts);\n default:\n return maybeMacro(token);\n }\n };\n return stringifyTokens(Formatter.parseFormat(fmt), tokenToString);\n }\n formatDurationFromString(dur, fmt) {\n const tokenToField = token => {\n switch (token[0]) {\n case \"S\":\n return \"millisecond\";\n case \"s\":\n return \"second\";\n case \"m\":\n return \"minute\";\n case \"h\":\n return \"hour\";\n case \"d\":\n return \"day\";\n case \"w\":\n return \"week\";\n case \"M\":\n return \"month\";\n case \"y\":\n return \"year\";\n default:\n return null;\n }\n },\n tokenToString = lildur => token => {\n const mapped = tokenToField(token);\n if (mapped) {\n return this.num(lildur.get(mapped), token.length);\n } else {\n return token;\n }\n },\n tokens = Formatter.parseFormat(fmt),\n realTokens = tokens.reduce((found, {\n literal,\n val\n }) => literal ? found : found.concat(val), []),\n collapsed = dur.shiftTo(...realTokens.map(tokenToField).filter(t => t));\n return stringifyTokens(tokens, tokenToString(collapsed));\n }\n}\nexport { Formatter as default };","import { untruncateYear, signedOffset, parseInteger, parseMillis, isUndefined, parseFloating } from \"./util.js\";\nimport * as English from \"./english.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\n\n/*\n * This file handles parsing for well-specified formats. Here's how it works:\n * Two things go into parsing: a regex to match with and an extractor to take apart the groups in the match.\n * An extractor is just a function that takes a regex match array and returns a { year: ..., month: ... } object\n * parse() does the work of executing the regex and applying the extractor. It takes multiple regex/extractor pairs to try in sequence.\n * Extractors can take a \"cursor\" representing the offset in the match to look at. This makes it easy to combine extractors.\n * combineExtractors() does the work of combining them, keeping track of the cursor through multiple extractions.\n * Some extractions are super dumb and simpleParse and fromStrings help DRY them.\n */\n\nconst ianaRegex = /[A-Za-z_+-]{1,256}(?::?\\/[A-Za-z0-9_+-]{1,256}(?:\\/[A-Za-z0-9_+-]{1,256})?)?/;\nfunction combineRegexes(...regexes) {\n const full = regexes.reduce((f, r) => f + r.source, \"\");\n return RegExp(`^${full}$`);\n}\nfunction combineExtractors(...extractors) {\n return m => extractors.reduce(([mergedVals, mergedZone, cursor], ex) => {\n const [val, zone, next] = ex(m, cursor);\n return [{\n ...mergedVals,\n ...val\n }, zone || mergedZone, next];\n }, [{}, null, 1]).slice(0, 2);\n}\nfunction parse(s, ...patterns) {\n if (s == null) {\n return [null, null];\n }\n for (const [regex, extractor] of patterns) {\n const m = regex.exec(s);\n if (m) {\n return extractor(m);\n }\n }\n return [null, null];\n}\nfunction simpleParse(...keys) {\n return (match, cursor) => {\n const ret = {};\n let i;\n for (i = 0; i < keys.length; i++) {\n ret[keys[i]] = parseInteger(match[cursor + i]);\n }\n return [ret, null, cursor + i];\n };\n}\n\n// ISO and SQL parsing\nconst offsetRegex = /(?:(Z)|([+-]\\d\\d)(?::?(\\d\\d))?)/;\nconst isoExtendedZone = `(?:${offsetRegex.source}?(?:\\\\[(${ianaRegex.source})\\\\])?)?`;\nconst isoTimeBaseRegex = /(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d{1,30}))?)?)?/;\nconst isoTimeRegex = RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`);\nconst isoTimeExtensionRegex = RegExp(`(?:T${isoTimeRegex.source})?`);\nconst isoYmdRegex = /([+-]\\d{6}|\\d{4})(?:-?(\\d\\d)(?:-?(\\d\\d))?)?/;\nconst isoWeekRegex = /(\\d{4})-?W(\\d\\d)(?:-?(\\d))?/;\nconst isoOrdinalRegex = /(\\d{4})-?(\\d{3})/;\nconst extractISOWeekData = simpleParse(\"weekYear\", \"weekNumber\", \"weekDay\");\nconst extractISOOrdinalData = simpleParse(\"year\", \"ordinal\");\nconst sqlYmdRegex = /(\\d{4})-(\\d\\d)-(\\d\\d)/; // dumbed-down version of the ISO one\nconst sqlTimeRegex = RegExp(`${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`);\nconst sqlTimeExtensionRegex = RegExp(`(?: ${sqlTimeRegex.source})?`);\nfunction int(match, pos, fallback) {\n const m = match[pos];\n return isUndefined(m) ? fallback : parseInteger(m);\n}\nfunction extractISOYmd(match, cursor) {\n const item = {\n year: int(match, cursor),\n month: int(match, cursor + 1, 1),\n day: int(match, cursor + 2, 1)\n };\n return [item, null, cursor + 3];\n}\nfunction extractISOTime(match, cursor) {\n const item = {\n hours: int(match, cursor, 0),\n minutes: int(match, cursor + 1, 0),\n seconds: int(match, cursor + 2, 0),\n milliseconds: parseMillis(match[cursor + 3])\n };\n return [item, null, cursor + 4];\n}\nfunction extractISOOffset(match, cursor) {\n const local = !match[cursor] && !match[cursor + 1],\n fullOffset = signedOffset(match[cursor + 1], match[cursor + 2]),\n zone = local ? null : FixedOffsetZone.instance(fullOffset);\n return [{}, zone, cursor + 3];\n}\nfunction extractIANAZone(match, cursor) {\n const zone = match[cursor] ? IANAZone.create(match[cursor]) : null;\n return [{}, zone, cursor + 1];\n}\n\n// ISO time parsing\n\nconst isoTimeOnly = RegExp(`^T?${isoTimeBaseRegex.source}$`);\n\n// ISO duration parsing\n\nconst isoDuration = /^-?P(?:(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)Y)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)M)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)W)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)D)?(?:T(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)H)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)M)?(?:(-?\\d{1,20})(?:[.,](-?\\d{1,20}))?S)?)?)$/;\nfunction extractISODuration(match) {\n const [s, yearStr, monthStr, weekStr, dayStr, hourStr, minuteStr, secondStr, millisecondsStr] = match;\n const hasNegativePrefix = s[0] === \"-\";\n const negativeSeconds = secondStr && secondStr[0] === \"-\";\n const maybeNegate = (num, force = false) => num !== undefined && (force || num && hasNegativePrefix) ? -num : num;\n return [{\n years: maybeNegate(parseFloating(yearStr)),\n months: maybeNegate(parseFloating(monthStr)),\n weeks: maybeNegate(parseFloating(weekStr)),\n days: maybeNegate(parseFloating(dayStr)),\n hours: maybeNegate(parseFloating(hourStr)),\n minutes: maybeNegate(parseFloating(minuteStr)),\n seconds: maybeNegate(parseFloating(secondStr), secondStr === \"-0\"),\n milliseconds: maybeNegate(parseMillis(millisecondsStr), negativeSeconds)\n }];\n}\n\n// These are a little braindead. EDT *should* tell us that we're in, say, America/New_York\n// and not just that we're in -240 *right now*. But since I don't think these are used that often\n// I'm just going to ignore that\nconst obsOffsets = {\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};\nfunction fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {\n const result = {\n year: yearStr.length === 2 ? untruncateYear(parseInteger(yearStr)) : parseInteger(yearStr),\n month: English.monthsShort.indexOf(monthStr) + 1,\n day: parseInteger(dayStr),\n hour: parseInteger(hourStr),\n minute: parseInteger(minuteStr)\n };\n if (secondStr) result.second = parseInteger(secondStr);\n if (weekdayStr) {\n result.weekday = weekdayStr.length > 3 ? English.weekdaysLong.indexOf(weekdayStr) + 1 : English.weekdaysShort.indexOf(weekdayStr) + 1;\n }\n return result;\n}\n\n// RFC 2822/5322\nconst rfc2822 = /^(?:(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\\d)(\\d\\d)))$/;\nfunction extractRFC2822(match) {\n const [, weekdayStr, dayStr, monthStr, yearStr, hourStr, minuteStr, secondStr, obsOffset, milOffset, offHourStr, offMinuteStr] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n let offset;\n if (obsOffset) {\n offset = obsOffsets[obsOffset];\n } else if (milOffset) {\n offset = 0;\n } else {\n offset = signedOffset(offHourStr, offMinuteStr);\n }\n return [result, new FixedOffsetZone(offset)];\n}\nfunction preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s.replace(/\\([^()]*\\)|[\\n\\t]/g, \" \").replace(/(\\s\\s+)/g, \" \").trim();\n}\n\n// http date\n\nconst rfc1123 = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\\d\\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\d{4}) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n rfc850 = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\\d\\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n ascii = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \\d|\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) (\\d{4})$/;\nfunction extractRFC1123Or850(match) {\n const [, weekdayStr, dayStr, monthStr, yearStr, hourStr, minuteStr, secondStr] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\nfunction extractASCII(match) {\n const [, weekdayStr, monthStr, dayStr, hourStr, minuteStr, secondStr, yearStr] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\nconst isoYmdWithTimeExtensionRegex = combineRegexes(isoYmdRegex, isoTimeExtensionRegex);\nconst isoWeekWithTimeExtensionRegex = combineRegexes(isoWeekRegex, isoTimeExtensionRegex);\nconst isoOrdinalWithTimeExtensionRegex = combineRegexes(isoOrdinalRegex, isoTimeExtensionRegex);\nconst isoTimeCombinedRegex = combineRegexes(isoTimeRegex);\nconst extractISOYmdTimeAndOffset = combineExtractors(extractISOYmd, extractISOTime, extractISOOffset, extractIANAZone);\nconst extractISOWeekTimeAndOffset = combineExtractors(extractISOWeekData, extractISOTime, extractISOOffset, extractIANAZone);\nconst extractISOOrdinalDateAndTime = combineExtractors(extractISOOrdinalData, extractISOTime, extractISOOffset, extractIANAZone);\nconst extractISOTimeAndOffset = combineExtractors(extractISOTime, extractISOOffset, extractIANAZone);\n\n/*\n * @private\n */\n\nexport function parseISODate(s) {\n return parse(s, [isoYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset], [isoWeekWithTimeExtensionRegex, extractISOWeekTimeAndOffset], [isoOrdinalWithTimeExtensionRegex, extractISOOrdinalDateAndTime], [isoTimeCombinedRegex, extractISOTimeAndOffset]);\n}\nexport function parseRFC2822Date(s) {\n return parse(preprocessRFC2822(s), [rfc2822, extractRFC2822]);\n}\nexport function parseHTTPDate(s) {\n return parse(s, [rfc1123, extractRFC1123Or850], [rfc850, extractRFC1123Or850], [ascii, extractASCII]);\n}\nexport function parseISODuration(s) {\n return parse(s, [isoDuration, extractISODuration]);\n}\nconst extractISOTimeOnly = combineExtractors(extractISOTime);\nexport function parseISOTimeOnly(s) {\n return parse(s, [isoTimeOnly, extractISOTimeOnly]);\n}\nconst sqlYmdWithTimeExtensionRegex = combineRegexes(sqlYmdRegex, sqlTimeExtensionRegex);\nconst sqlTimeCombinedRegex = combineRegexes(sqlTimeRegex);\nconst extractISOTimeOffsetAndIANAZone = combineExtractors(extractISOTime, extractISOOffset, extractIANAZone);\nexport function parseSQL(s) {\n return parse(s, [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset], [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone]);\n}","import { InvalidArgumentError, InvalidDurationError, InvalidUnitError } from \"./errors.js\";\nimport Formatter from \"./impl/formatter.js\";\nimport Invalid from \"./impl/invalid.js\";\nimport Locale from \"./impl/locale.js\";\nimport { parseISODuration, parseISOTimeOnly } from \"./impl/regexParser.js\";\nimport { asNumber, hasOwnProperty, isNumber, isUndefined, normalizeObject, roundTo } from \"./impl/util.js\";\nimport Settings from \"./settings.js\";\nimport DateTime from \"./datetime.js\";\nconst INVALID = \"Invalid Duration\";\n\n// unit conversion constants\nexport const lowOrderMatrix = {\n weeks: {\n days: 7,\n hours: 7 * 24,\n minutes: 7 * 24 * 60,\n seconds: 7 * 24 * 60 * 60,\n milliseconds: 7 * 24 * 60 * 60 * 1000\n },\n days: {\n hours: 24,\n minutes: 24 * 60,\n seconds: 24 * 60 * 60,\n milliseconds: 24 * 60 * 60 * 1000\n },\n hours: {\n minutes: 60,\n seconds: 60 * 60,\n milliseconds: 60 * 60 * 1000\n },\n minutes: {\n seconds: 60,\n milliseconds: 60 * 1000\n },\n seconds: {\n milliseconds: 1000\n }\n },\n casualMatrix = {\n years: {\n quarters: 4,\n months: 12,\n weeks: 52,\n days: 365,\n hours: 365 * 24,\n minutes: 365 * 24 * 60,\n seconds: 365 * 24 * 60 * 60,\n milliseconds: 365 * 24 * 60 * 60 * 1000\n },\n quarters: {\n months: 3,\n weeks: 13,\n days: 91,\n hours: 91 * 24,\n minutes: 91 * 24 * 60,\n seconds: 91 * 24 * 60 * 60,\n milliseconds: 91 * 24 * 60 * 60 * 1000\n },\n months: {\n weeks: 4,\n days: 30,\n hours: 30 * 24,\n minutes: 30 * 24 * 60,\n seconds: 30 * 24 * 60 * 60,\n milliseconds: 30 * 24 * 60 * 60 * 1000\n },\n ...lowOrderMatrix\n },\n daysInYearAccurate = 146097.0 / 400,\n daysInMonthAccurate = 146097.0 / 4800,\n accurateMatrix = {\n years: {\n quarters: 4,\n months: 12,\n weeks: daysInYearAccurate / 7,\n days: daysInYearAccurate,\n hours: daysInYearAccurate * 24,\n minutes: daysInYearAccurate * 24 * 60,\n seconds: daysInYearAccurate * 24 * 60 * 60,\n milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1000\n },\n quarters: {\n months: 3,\n weeks: daysInYearAccurate / 28,\n days: daysInYearAccurate / 4,\n hours: daysInYearAccurate * 24 / 4,\n minutes: daysInYearAccurate * 24 * 60 / 4,\n seconds: daysInYearAccurate * 24 * 60 * 60 / 4,\n milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1000 / 4\n },\n months: {\n weeks: daysInMonthAccurate / 7,\n days: daysInMonthAccurate,\n hours: daysInMonthAccurate * 24,\n minutes: daysInMonthAccurate * 24 * 60,\n seconds: daysInMonthAccurate * 24 * 60 * 60,\n milliseconds: daysInMonthAccurate * 24 * 60 * 60 * 1000\n },\n ...lowOrderMatrix\n };\n\n// units ordered by size\nconst orderedUnits = [\"years\", \"quarters\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", \"seconds\", \"milliseconds\"];\nconst reverseUnits = orderedUnits.slice(0).reverse();\n\n// clone really means \"create another instance just like this one, but with these changes\"\nfunction clone(dur, alts, clear = false) {\n // deep merge for vals\n const conf = {\n values: clear ? alts.values : {\n ...dur.values,\n ...(alts.values || {})\n },\n loc: dur.loc.clone(alts.loc),\n conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy,\n matrix: alts.matrix || dur.matrix\n };\n return new Duration(conf);\n}\nfunction durationToMillis(matrix, vals) {\n let sum = vals.milliseconds ?? 0;\n for (const unit of reverseUnits.slice(1)) {\n if (vals[unit]) {\n sum += vals[unit] * matrix[unit][\"milliseconds\"];\n }\n }\n return sum;\n}\n\n// NB: mutates parameters\nfunction normalizeValues(matrix, vals) {\n // the logic below assumes the overall value of the duration is positive\n // if this is not the case, factor is used to make it so\n const factor = durationToMillis(matrix, vals) < 0 ? -1 : 1;\n orderedUnits.reduceRight((previous, current) => {\n if (!isUndefined(vals[current])) {\n if (previous) {\n const previousVal = vals[previous] * factor;\n const conv = matrix[current][previous];\n\n // if (previousVal < 0):\n // lower order unit is negative (e.g. { years: 2, days: -2 })\n // normalize this by reducing the higher order unit by the appropriate amount\n // and increasing the lower order unit\n // this can never make the higher order unit negative, because this function only operates\n // on positive durations, so the amount of time represented by the lower order unit cannot\n // be larger than the higher order unit\n // else:\n // lower order unit is positive (e.g. { years: 2, days: 450 } or { years: -2, days: 450 })\n // in this case we attempt to convert as much as possible from the lower order unit into\n // the higher order one\n //\n // Math.floor takes care of both of these cases, rounding away from 0\n // if previousVal < 0 it makes the absolute value larger\n // if previousVal >= it makes the absolute value smaller\n const rollUp = Math.floor(previousVal / conv);\n vals[current] += rollUp * factor;\n vals[previous] -= rollUp * conv * factor;\n }\n return current;\n } else {\n return previous;\n }\n }, null);\n\n // try to convert any decimals into smaller units if possible\n // for example for { years: 2.5, days: 0, seconds: 0 } we want to get { years: 2, days: 182, hours: 12 }\n orderedUnits.reduce((previous, current) => {\n if (!isUndefined(vals[current])) {\n if (previous) {\n const fraction = vals[previous] % 1;\n vals[previous] -= fraction;\n vals[current] += fraction * matrix[previous][current];\n }\n return current;\n } else {\n return previous;\n }\n }, null);\n}\n\n// Remove all properties with a value of 0 from an object\nfunction removeZeroes(vals) {\n const newVals = {};\n for (const [key, value] of Object.entries(vals)) {\n if (value !== 0) {\n newVals[key] = value;\n }\n }\n return newVals;\n}\n\n/**\n * A Duration object represents a period of time, like \"2 months\" or \"1 day, 1 hour\". Conceptually, it's just a map of units to their quantities, accompanied by some additional configuration and methods for creating, parsing, interrogating, transforming, and formatting them. They can be used on their own or in conjunction with other Luxon types; for example, you can use {@link DateTime#plus} to add a Duration object to a DateTime, producing another DateTime.\n *\n * Here is a brief overview of commonly used methods and getters in Duration:\n *\n * * **Creation** To create a Duration, use {@link Duration.fromMillis}, {@link Duration.fromObject}, or {@link Duration.fromISO}.\n * * **Unit values** See the {@link Duration#years}, {@link Duration#months}, {@link Duration#weeks}, {@link Duration#days}, {@link Duration#hours}, {@link Duration#minutes}, {@link Duration#seconds}, {@link Duration#milliseconds} accessors.\n * * **Configuration** See {@link Duration#locale} and {@link Duration#numberingSystem} accessors.\n * * **Transformation** To create new Durations out of old ones use {@link Duration#plus}, {@link Duration#minus}, {@link Duration#normalize}, {@link Duration#set}, {@link Duration#reconfigure}, {@link Duration#shiftTo}, and {@link Duration#negate}.\n * * **Output** To convert the Duration into other representations, see {@link Duration#as}, {@link Duration#toISO}, {@link Duration#toFormat}, and {@link Duration#toJSON}\n *\n * There's are more methods documented below. In addition, for more information on subtler topics like internationalization and validity, see the external documentation.\n */\nclass Duration {\n /**\n * @private\n */\n constructor(config) {\n const accurate = config.conversionAccuracy === \"longterm\" || false;\n let matrix = accurate ? accurateMatrix : casualMatrix;\n if (config.matrix) {\n matrix = config.matrix;\n }\n\n /**\n * @access private\n */\n this.values = config.values;\n /**\n * @access private\n */\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n this.conversionAccuracy = accurate ? \"longterm\" : \"casual\";\n /**\n * @access private\n */\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n this.matrix = matrix;\n /**\n * @access private\n */\n this.isLuxonDuration = true;\n }\n\n /**\n * Create Duration from a number of milliseconds.\n * @param {number} count of milliseconds\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n static fromMillis(count, opts) {\n return Duration.fromObject({\n milliseconds: count\n }, opts);\n }\n\n /**\n * Create a Duration from a JavaScript object with keys like 'years' and 'hours'.\n * If this object is empty then a zero milliseconds duration is returned.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.years\n * @param {number} obj.quarters\n * @param {number} obj.months\n * @param {number} obj.weeks\n * @param {number} obj.days\n * @param {number} obj.hours\n * @param {number} obj.minutes\n * @param {number} obj.seconds\n * @param {number} obj.milliseconds\n * @param {Object} [opts=[]] - options for creating this Duration\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the custom conversion system to use\n * @return {Duration}\n */\n static fromObject(obj, opts = {}) {\n if (obj == null || typeof obj !== \"object\") {\n throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${obj === null ? \"null\" : typeof obj}`);\n }\n return new Duration({\n values: normalizeObject(obj, Duration.normalizeUnit),\n loc: Locale.fromObject(opts),\n conversionAccuracy: opts.conversionAccuracy,\n matrix: opts.matrix\n });\n }\n\n /**\n * Create a Duration from DurationLike.\n *\n * @param {Object | number | Duration} durationLike\n * One of:\n * - object with keys like 'years' and 'hours'.\n * - number representing milliseconds\n * - Duration instance\n * @return {Duration}\n */\n static fromDurationLike(durationLike) {\n if (isNumber(durationLike)) {\n return Duration.fromMillis(durationLike);\n } else if (Duration.isDuration(durationLike)) {\n return durationLike;\n } else if (typeof durationLike === \"object\") {\n return Duration.fromObject(durationLike);\n } else {\n throw new InvalidArgumentError(`Unknown duration argument ${durationLike} of type ${typeof durationLike}`);\n }\n }\n\n /**\n * Create a Duration from an ISO 8601 duration string.\n * @param {string} text - text to parse\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the preset conversion system to use\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromISO('P3Y6M1W4DT12H30M5S').toObject() //=> { years: 3, months: 6, weeks: 1, days: 4, hours: 12, minutes: 30, seconds: 5 }\n * @example Duration.fromISO('PT23H').toObject() //=> { hours: 23 }\n * @example Duration.fromISO('P5Y3M').toObject() //=> { years: 5, months: 3 }\n * @return {Duration}\n */\n static fromISO(text, opts) {\n const [parsed] = parseISODuration(text);\n if (parsed) {\n return Duration.fromObject(parsed, opts);\n } else {\n return Duration.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n }\n\n /**\n * Create a Duration from an ISO 8601 time string.\n * @param {string} text - text to parse\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the conversion system to use\n * @see https://en.wikipedia.org/wiki/ISO_8601#Times\n * @example Duration.fromISOTime('11:22:33.444').toObject() //=> { hours: 11, minutes: 22, seconds: 33, milliseconds: 444 }\n * @example Duration.fromISOTime('11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('T11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('T1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @return {Duration}\n */\n static fromISOTime(text, opts) {\n const [parsed] = parseISOTimeOnly(text);\n if (parsed) {\n return Duration.fromObject(parsed, opts);\n } else {\n return Duration.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n }\n\n /**\n * Create an invalid Duration.\n * @param {string} reason - simple string of why this datetime is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Duration}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Duration is invalid\");\n }\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n if (Settings.throwOnInvalid) {\n throw new InvalidDurationError(invalid);\n } else {\n return new Duration({\n invalid\n });\n }\n }\n\n /**\n * @private\n */\n static normalizeUnit(unit) {\n const normalized = {\n year: \"years\",\n years: \"years\",\n quarter: \"quarters\",\n quarters: \"quarters\",\n month: \"months\",\n months: \"months\",\n week: \"weeks\",\n weeks: \"weeks\",\n day: \"days\",\n days: \"days\",\n hour: \"hours\",\n hours: \"hours\",\n minute: \"minutes\",\n minutes: \"minutes\",\n second: \"seconds\",\n seconds: \"seconds\",\n millisecond: \"milliseconds\",\n milliseconds: \"milliseconds\"\n }[unit ? unit.toLowerCase() : unit];\n if (!normalized) throw new InvalidUnitError(unit);\n return normalized;\n }\n\n /**\n * Check if an object is a Duration. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isDuration(o) {\n return o && o.isLuxonDuration || false;\n }\n\n /**\n * Get the locale of a Duration, such 'en-GB'\n * @type {string}\n */\n get locale() {\n return this.isValid ? this.loc.locale : null;\n }\n\n /**\n * Get the numbering system of a Duration, such 'beng'. The numbering system is used when formatting the Duration\n *\n * @type {string}\n */\n get numberingSystem() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n\n /**\n * Returns a string representation of this Duration formatted according to the specified format string. You may use these tokens:\n * * `S` for milliseconds\n * * `s` for seconds\n * * `m` for minutes\n * * `h` for hours\n * * `d` for days\n * * `w` for weeks\n * * `M` for months\n * * `y` for years\n * Notes:\n * * Add padding by repeating the token, e.g. \"yy\" pads the years to two digits, \"hhhh\" pads the hours out to four digits\n * * Tokens can be escaped by wrapping with single quotes.\n * * The duration will be converted to the set of units in the format string using {@link Duration#shiftTo} and the Durations's conversion accuracy setting.\n * @param {string} fmt - the format string\n * @param {Object} opts - options\n * @param {boolean} [opts.floor=true] - floor numerical values\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"y d s\") //=> \"1 6 2\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"yy dd sss\") //=> \"01 06 002\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"M S\") //=> \"12 518402000\"\n * @return {string}\n */\n toFormat(fmt, opts = {}) {\n // reverse-compat since 1.2; we always round down now, never up, and we do it by default\n const fmtOpts = {\n ...opts,\n floor: opts.round !== false && opts.floor !== false\n };\n return this.isValid ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID;\n }\n\n /**\n * Returns a string representation of a Duration with all units included.\n * To modify its behavior, use `listStyle` and any Intl.NumberFormat option, though `unitDisplay` is especially relevant.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#options\n * @param {Object} opts - Formatting options. Accepts the same keys as the options parameter of the native `Intl.NumberFormat` constructor, as well as `listStyle`.\n * @param {string} [opts.listStyle='narrow'] - How to format the merged list. Corresponds to the `style` property of the options parameter of the native `Intl.ListFormat` constructor.\n * @example\n * ```js\n * var dur = Duration.fromObject({ days: 1, hours: 5, minutes: 6 })\n * dur.toHuman() //=> '1 day, 5 hours, 6 minutes'\n * dur.toHuman({ listStyle: \"long\" }) //=> '1 day, 5 hours, and 6 minutes'\n * dur.toHuman({ unitDisplay: \"short\" }) //=> '1 day, 5 hr, 6 min'\n * ```\n */\n toHuman(opts = {}) {\n if (!this.isValid) return INVALID;\n const l = orderedUnits.map(unit => {\n const val = this.values[unit];\n if (isUndefined(val)) {\n return null;\n }\n return this.loc.numberFormatter({\n style: \"unit\",\n unitDisplay: \"long\",\n ...opts,\n unit: unit.slice(0, -1)\n }).format(val);\n }).filter(n => n);\n return this.loc.listFormatter({\n type: \"conjunction\",\n style: opts.listStyle || \"narrow\",\n ...opts\n }).format(l);\n }\n\n /**\n * Returns a JavaScript object with this Duration's values.\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 }\n * @return {Object}\n */\n toObject() {\n if (!this.isValid) return {};\n return {\n ...this.values\n };\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Duration.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromObject({ years: 3, seconds: 45 }).toISO() //=> 'P3YT45S'\n * @example Duration.fromObject({ months: 4, seconds: 45 }).toISO() //=> 'P4MT45S'\n * @example Duration.fromObject({ months: 5 }).toISO() //=> 'P5M'\n * @example Duration.fromObject({ minutes: 5 }).toISO() //=> 'PT5M'\n * @example Duration.fromObject({ milliseconds: 6 }).toISO() //=> 'PT0.006S'\n * @return {string}\n */\n toISO() {\n // we could use the formatter, but this is an easier way to get the minimum string\n if (!this.isValid) return null;\n let s = \"P\";\n if (this.years !== 0) s += this.years + \"Y\";\n if (this.months !== 0 || this.quarters !== 0) s += this.months + this.quarters * 3 + \"M\";\n if (this.weeks !== 0) s += this.weeks + \"W\";\n if (this.days !== 0) s += this.days + \"D\";\n if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) s += \"T\";\n if (this.hours !== 0) s += this.hours + \"H\";\n if (this.minutes !== 0) s += this.minutes + \"M\";\n if (this.seconds !== 0 || this.milliseconds !== 0)\n // this will handle \"floating point madness\" by removing extra decimal places\n // https://stackoverflow.com/questions/588004/is-floating-point-math-broken\n s += roundTo(this.seconds + this.milliseconds / 1000, 3) + \"S\";\n if (s === \"P\") s += \"T0S\";\n return s;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day.\n * Note that this will return null if the duration is invalid, negative, or equal to or greater than 24 hours.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Times\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includePrefix=false] - include the `T` prefix\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example Duration.fromObject({ hours: 11 }).toISOTime() //=> '11:00:00.000'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressMilliseconds: true }) //=> '11:00:00'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressSeconds: true }) //=> '11:00'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ includePrefix: true }) //=> 'T11:00:00.000'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ format: 'basic' }) //=> '110000.000'\n * @return {string}\n */\n toISOTime(opts = {}) {\n if (!this.isValid) return null;\n const millis = this.toMillis();\n if (millis < 0 || millis >= 86400000) return null;\n opts = {\n suppressMilliseconds: false,\n suppressSeconds: false,\n includePrefix: false,\n format: \"extended\",\n ...opts,\n includeOffset: false\n };\n const dateTime = DateTime.fromMillis(millis, {\n zone: \"UTC\"\n });\n return dateTime.toISOTime(opts);\n }\n\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in JSON.\n * @return {string}\n */\n toJSON() {\n return this.toISO();\n }\n\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in debugging.\n * @return {string}\n */\n toString() {\n return this.toISO();\n }\n\n /**\n * Returns a string representation of this Duration appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `Duration { values: ${JSON.stringify(this.values)} }`;\n } else {\n return `Duration { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns an milliseconds value of this Duration.\n * @return {number}\n */\n toMillis() {\n if (!this.isValid) return NaN;\n return durationToMillis(this.matrix, this.values);\n }\n\n /**\n * Returns an milliseconds value of this Duration. Alias of {@link toMillis}\n * @return {number}\n */\n valueOf() {\n return this.toMillis();\n }\n\n /**\n * Make this Duration longer by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */\n plus(duration) {\n if (!this.isValid) return this;\n const dur = Duration.fromDurationLike(duration),\n result = {};\n for (const k of orderedUnits) {\n if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {\n result[k] = dur.get(k) + this.get(k);\n }\n }\n return clone(this, {\n values: result\n }, true);\n }\n\n /**\n * Make this Duration shorter by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */\n minus(duration) {\n if (!this.isValid) return this;\n const dur = Duration.fromDurationLike(duration);\n return this.plus(dur.negate());\n }\n\n /**\n * Scale this Duration by the specified amount. Return a newly-constructed Duration.\n * @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number.\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits(x => x * 2) //=> { hours: 2, minutes: 60 }\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits((x, u) => u === \"hours\" ? x * 2 : x) //=> { hours: 2, minutes: 30 }\n * @return {Duration}\n */\n mapUnits(fn) {\n if (!this.isValid) return this;\n const result = {};\n for (const k of Object.keys(this.values)) {\n result[k] = asNumber(fn(this.values[k], k));\n }\n return clone(this, {\n values: result\n }, true);\n }\n\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example Duration.fromObject({years: 2, days: 3}).get('years') //=> 2\n * @example Duration.fromObject({years: 2, days: 3}).get('months') //=> 0\n * @example Duration.fromObject({years: 2, days: 3}).get('days') //=> 3\n * @return {number}\n */\n get(unit) {\n return this[Duration.normalizeUnit(unit)];\n }\n\n /**\n * \"Set\" the values of specified units. Return a newly-constructed Duration.\n * @param {Object} values - a mapping of units to numbers\n * @example dur.set({ years: 2017 })\n * @example dur.set({ hours: 8, minutes: 30 })\n * @return {Duration}\n */\n set(values) {\n if (!this.isValid) return this;\n const mixed = {\n ...this.values,\n ...normalizeObject(values, Duration.normalizeUnit)\n };\n return clone(this, {\n values: mixed\n });\n }\n\n /**\n * \"Set\" the locale and/or numberingSystem. Returns a newly-constructed Duration.\n * @example dur.reconfigure({ locale: 'en-GB' })\n * @return {Duration}\n */\n reconfigure({\n locale,\n numberingSystem,\n conversionAccuracy,\n matrix\n } = {}) {\n const loc = this.loc.clone({\n locale,\n numberingSystem\n });\n const opts = {\n loc,\n matrix,\n conversionAccuracy\n };\n return clone(this, opts);\n }\n\n /**\n * Return the length of the duration in the specified unit.\n * @param {string} unit - a unit such as 'minutes' or 'days'\n * @example Duration.fromObject({years: 1}).as('days') //=> 365\n * @example Duration.fromObject({years: 1}).as('months') //=> 12\n * @example Duration.fromObject({hours: 60}).as('days') //=> 2.5\n * @return {number}\n */\n as(unit) {\n return this.isValid ? this.shiftTo(unit).get(unit) : NaN;\n }\n\n /**\n * Reduce this Duration to its canonical representation in its current units.\n * Assuming the overall value of the Duration is positive, this means:\n * - excessive values for lower-order units are converted to higher-order units (if possible, see first and second example)\n * - negative lower-order units are converted to higher order units (there must be such a higher order unit, otherwise\n * the overall value would be negative, see third example)\n * - fractional values for higher-order units are converted to lower-order units (if possible, see fourth example)\n *\n * If the overall value is negative, the result of this method is equivalent to `this.negate().normalize().negate()`.\n * @example Duration.fromObject({ years: 2, days: 5000 }).normalize().toObject() //=> { years: 15, days: 255 }\n * @example Duration.fromObject({ days: 5000 }).normalize().toObject() //=> { days: 5000 }\n * @example Duration.fromObject({ hours: 12, minutes: -45 }).normalize().toObject() //=> { hours: 11, minutes: 15 }\n * @example Duration.fromObject({ years: 2.5, days: 0, hours: 0 }).normalize().toObject() //=> { years: 2, days: 182, hours: 12 }\n * @return {Duration}\n */\n normalize() {\n if (!this.isValid) return this;\n const vals = this.toObject();\n normalizeValues(this.matrix, vals);\n return clone(this, {\n values: vals\n }, true);\n }\n\n /**\n * Rescale units to its largest representation\n * @example Duration.fromObject({ milliseconds: 90000 }).rescale().toObject() //=> { minutes: 1, seconds: 30 }\n * @return {Duration}\n */\n rescale() {\n if (!this.isValid) return this;\n const vals = removeZeroes(this.normalize().shiftToAll().toObject());\n return clone(this, {\n values: vals\n }, true);\n }\n\n /**\n * Convert this Duration into its representation in a different set of units.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).shiftTo('minutes', 'milliseconds').toObject() //=> { minutes: 60, milliseconds: 30000 }\n * @return {Duration}\n */\n shiftTo(...units) {\n if (!this.isValid) return this;\n if (units.length === 0) {\n return this;\n }\n units = units.map(u => Duration.normalizeUnit(u));\n const built = {},\n accumulated = {},\n vals = this.toObject();\n let lastUnit;\n for (const k of orderedUnits) {\n if (units.indexOf(k) >= 0) {\n lastUnit = k;\n let own = 0;\n\n // anything we haven't boiled down yet should get boiled to this unit\n for (const ak in accumulated) {\n own += this.matrix[ak][k] * accumulated[ak];\n accumulated[ak] = 0;\n }\n\n // plus anything that's already in this unit\n if (isNumber(vals[k])) {\n own += vals[k];\n }\n\n // only keep the integer part for now in the hopes of putting any decimal part\n // into a smaller unit later\n const i = Math.trunc(own);\n built[k] = i;\n accumulated[k] = (own * 1000 - i * 1000) / 1000;\n\n // otherwise, keep it in the wings to boil it later\n } else if (isNumber(vals[k])) {\n accumulated[k] = vals[k];\n }\n }\n\n // anything leftover becomes the decimal for the last unit\n // lastUnit must be defined since units is not empty\n for (const key in accumulated) {\n if (accumulated[key] !== 0) {\n built[lastUnit] += key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key];\n }\n }\n normalizeValues(this.matrix, built);\n return clone(this, {\n values: built\n }, true);\n }\n\n /**\n * Shift this Duration to all available units.\n * Same as shiftTo(\"years\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", \"seconds\", \"milliseconds\")\n * @return {Duration}\n */\n shiftToAll() {\n if (!this.isValid) return this;\n return this.shiftTo(\"years\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", \"seconds\", \"milliseconds\");\n }\n\n /**\n * Return the negative of this Duration.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).negate().toObject() //=> { hours: -1, seconds: -30 }\n * @return {Duration}\n */\n negate() {\n if (!this.isValid) return this;\n const negated = {};\n for (const k of Object.keys(this.values)) {\n negated[k] = this.values[k] === 0 ? 0 : -this.values[k];\n }\n return clone(this, {\n values: negated\n }, true);\n }\n\n /**\n * Get the years.\n * @type {number}\n */\n get years() {\n return this.isValid ? this.values.years || 0 : NaN;\n }\n\n /**\n * Get the quarters.\n * @type {number}\n */\n get quarters() {\n return this.isValid ? this.values.quarters || 0 : NaN;\n }\n\n /**\n * Get the months.\n * @type {number}\n */\n get months() {\n return this.isValid ? this.values.months || 0 : NaN;\n }\n\n /**\n * Get the weeks\n * @type {number}\n */\n get weeks() {\n return this.isValid ? this.values.weeks || 0 : NaN;\n }\n\n /**\n * Get the days.\n * @type {number}\n */\n get days() {\n return this.isValid ? this.values.days || 0 : NaN;\n }\n\n /**\n * Get the hours.\n * @type {number}\n */\n get hours() {\n return this.isValid ? this.values.hours || 0 : NaN;\n }\n\n /**\n * Get the minutes.\n * @type {number}\n */\n get minutes() {\n return this.isValid ? this.values.minutes || 0 : NaN;\n }\n\n /**\n * Get the seconds.\n * @return {number}\n */\n get seconds() {\n return this.isValid ? this.values.seconds || 0 : NaN;\n }\n\n /**\n * Get the milliseconds.\n * @return {number}\n */\n get milliseconds() {\n return this.isValid ? this.values.milliseconds || 0 : NaN;\n }\n\n /**\n * Returns whether the Duration is invalid. Invalid durations are returned by diff operations\n * on invalid DateTimes or Intervals.\n * @return {boolean}\n */\n get isValid() {\n return this.invalid === null;\n }\n\n /**\n * Returns an error code if this Duration became invalid, or null if the Duration is valid\n * @return {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this Duration became invalid, or null if the Duration is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Equality check\n * Two Durations are equal iff they have the same units and the same values for each unit.\n * @param {Duration} other\n * @return {boolean}\n */\n equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n if (!this.loc.equals(other.loc)) {\n return false;\n }\n function eq(v1, v2) {\n // Consider 0 and undefined as equal\n if (v1 === undefined || v1 === 0) return v2 === undefined || v2 === 0;\n return v1 === v2;\n }\n for (const u of orderedUnits) {\n if (!eq(this.values[u], other.values[u])) {\n return false;\n }\n }\n return true;\n }\n}\nexport { Duration as default };","import DateTime, { friendlyDateTime } from \"./datetime.js\";\nimport Duration from \"./duration.js\";\nimport Settings from \"./settings.js\";\nimport { InvalidArgumentError, InvalidIntervalError } from \"./errors.js\";\nimport Invalid from \"./impl/invalid.js\";\nimport Formatter from \"./impl/formatter.js\";\nimport * as Formats from \"./impl/formats.js\";\nconst INVALID = \"Invalid Interval\";\n\n// checks if the start is equal to or before the end\nfunction validateStartEnd(start, end) {\n if (!start || !start.isValid) {\n return Interval.invalid(\"missing or invalid start\");\n } else if (!end || !end.isValid) {\n return Interval.invalid(\"missing or invalid end\");\n } else if (end < start) {\n return Interval.invalid(\"end before start\", `The end of an interval must be after its start, but you had start=${start.toISO()} and end=${end.toISO()}`);\n } else {\n return null;\n }\n}\n\n/**\n * An Interval object represents a half-open interval of time, where each endpoint is a {@link DateTime}. Conceptually, it's a container for those two endpoints, accompanied by methods for creating, parsing, interrogating, comparing, transforming, and formatting them.\n *\n * Here is a brief overview of the most commonly used methods and getters in Interval:\n *\n * * **Creation** To create an Interval, use {@link Interval.fromDateTimes}, {@link Interval.after}, {@link Interval.before}, or {@link Interval.fromISO}.\n * * **Accessors** Use {@link Interval#start} and {@link Interval#end} to get the start and end.\n * * **Interrogation** To analyze the Interval, use {@link Interval#count}, {@link Interval#length}, {@link Interval#hasSame}, {@link Interval#contains}, {@link Interval#isAfter}, or {@link Interval#isBefore}.\n * * **Transformation** To create other Intervals out of this one, use {@link Interval#set}, {@link Interval#splitAt}, {@link Interval#splitBy}, {@link Interval#divideEqually}, {@link Interval.merge}, {@link Interval.xor}, {@link Interval#union}, {@link Interval#intersection}, or {@link Interval#difference}.\n * * **Comparison** To compare this Interval to another one, use {@link Interval#equals}, {@link Interval#overlaps}, {@link Interval#abutsStart}, {@link Interval#abutsEnd}, {@link Interval#engulfs}\n * * **Output** To convert the Interval into other representations, see {@link Interval#toString}, {@link Interval#toLocaleString}, {@link Interval#toISO}, {@link Interval#toISODate}, {@link Interval#toISOTime}, {@link Interval#toFormat}, and {@link Interval#toDuration}.\n */\nclass Interval {\n /**\n * @private\n */\n constructor(config) {\n /**\n * @access private\n */\n this.s = config.start;\n /**\n * @access private\n */\n this.e = config.end;\n /**\n * @access private\n */\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n this.isLuxonInterval = true;\n }\n\n /**\n * Create an invalid Interval.\n * @param {string} reason - simple string of why this Interval is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Interval}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Interval is invalid\");\n }\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n if (Settings.throwOnInvalid) {\n throw new InvalidIntervalError(invalid);\n } else {\n return new Interval({\n invalid\n });\n }\n }\n\n /**\n * Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.\n * @param {DateTime|Date|Object} start\n * @param {DateTime|Date|Object} end\n * @return {Interval}\n */\n static fromDateTimes(start, end) {\n const builtStart = friendlyDateTime(start),\n builtEnd = friendlyDateTime(end);\n const validateError = validateStartEnd(builtStart, builtEnd);\n if (validateError == null) {\n return new Interval({\n start: builtStart,\n end: builtEnd\n });\n } else {\n return validateError;\n }\n }\n\n /**\n * Create an Interval from a start DateTime and a Duration to extend to.\n * @param {DateTime|Date|Object} start\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static after(start, duration) {\n const dur = Duration.fromDurationLike(duration),\n dt = friendlyDateTime(start);\n return Interval.fromDateTimes(dt, dt.plus(dur));\n }\n\n /**\n * Create an Interval from an end DateTime and a Duration to extend backwards to.\n * @param {DateTime|Date|Object} end\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static before(end, duration) {\n const dur = Duration.fromDurationLike(duration),\n dt = friendlyDateTime(end);\n return Interval.fromDateTimes(dt.minus(dur), dt);\n }\n\n /**\n * Create an Interval from an ISO 8601 string.\n * Accepts `/`, `/`, and `/` formats.\n * @param {string} text - the ISO string to parse\n * @param {Object} [opts] - options to pass {@link DateTime#fromISO} and optionally {@link Duration#fromISO}\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {Interval}\n */\n static fromISO(text, opts) {\n const [s, e] = (text || \"\").split(\"/\", 2);\n if (s && e) {\n let start, startIsValid;\n try {\n start = DateTime.fromISO(s, opts);\n startIsValid = start.isValid;\n } catch (e) {\n startIsValid = false;\n }\n let end, endIsValid;\n try {\n end = DateTime.fromISO(e, opts);\n endIsValid = end.isValid;\n } catch (e) {\n endIsValid = false;\n }\n if (startIsValid && endIsValid) {\n return Interval.fromDateTimes(start, end);\n }\n if (startIsValid) {\n const dur = Duration.fromISO(e, opts);\n if (dur.isValid) {\n return Interval.after(start, dur);\n }\n } else if (endIsValid) {\n const dur = Duration.fromISO(s, opts);\n if (dur.isValid) {\n return Interval.before(end, dur);\n }\n }\n }\n return Interval.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n\n /**\n * Check if an object is an Interval. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isInterval(o) {\n return o && o.isLuxonInterval || false;\n }\n\n /**\n * Returns the start of the Interval\n * @type {DateTime}\n */\n get start() {\n return this.isValid ? this.s : null;\n }\n\n /**\n * Returns the end of the Interval\n * @type {DateTime}\n */\n get end() {\n return this.isValid ? this.e : null;\n }\n\n /**\n * Returns whether this Interval's end is at least its start, meaning that the Interval isn't 'backwards'.\n * @type {boolean}\n */\n get isValid() {\n return this.invalidReason === null;\n }\n\n /**\n * Returns an error code if this Interval is invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this Interval became invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Returns the length of the Interval in the specified unit.\n * @param {string} unit - the unit (such as 'hours' or 'days') to return the length in.\n * @return {number}\n */\n length(unit = \"milliseconds\") {\n return this.isValid ? this.toDuration(...[unit]).get(unit) : NaN;\n }\n\n /**\n * Returns the count of minutes, hours, days, months, or years included in the Interval, even in part.\n * Unlike {@link Interval#length} this counts sections of the calendar, not periods of time, e.g. specifying 'day'\n * asks 'what dates are included in this interval?', not 'how many days long is this interval?'\n * @param {string} [unit='milliseconds'] - the unit of time to count.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; this operation will always use the locale of the start DateTime\n * @return {number}\n */\n count(unit = \"milliseconds\", opts) {\n if (!this.isValid) return NaN;\n const start = this.start.startOf(unit, opts);\n let end;\n if (opts?.useLocaleWeeks) {\n end = this.end.reconfigure({\n locale: start.locale\n });\n } else {\n end = this.end;\n }\n end = end.startOf(unit, opts);\n return Math.floor(end.diff(start, unit).get(unit)) + (end.valueOf() !== this.end.valueOf());\n }\n\n /**\n * Returns whether this Interval's start and end are both in the same unit of time\n * @param {string} unit - the unit of time to check sameness on\n * @return {boolean}\n */\n hasSame(unit) {\n return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, unit) : false;\n }\n\n /**\n * Return whether this Interval has the same start and end DateTimes.\n * @return {boolean}\n */\n isEmpty() {\n return this.s.valueOf() === this.e.valueOf();\n }\n\n /**\n * Return whether this Interval's start is after the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isAfter(dateTime) {\n if (!this.isValid) return false;\n return this.s > dateTime;\n }\n\n /**\n * Return whether this Interval's end is before the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isBefore(dateTime) {\n if (!this.isValid) return false;\n return this.e <= dateTime;\n }\n\n /**\n * Return whether this Interval contains the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n contains(dateTime) {\n if (!this.isValid) return false;\n return this.s <= dateTime && this.e > dateTime;\n }\n\n /**\n * \"Sets\" the start and/or end dates. Returns a newly-constructed Interval.\n * @param {Object} values - the values to set\n * @param {DateTime} values.start - the starting DateTime\n * @param {DateTime} values.end - the ending DateTime\n * @return {Interval}\n */\n set({\n start,\n end\n } = {}) {\n if (!this.isValid) return this;\n return Interval.fromDateTimes(start || this.s, end || this.e);\n }\n\n /**\n * Split this Interval at each of the specified DateTimes\n * @param {...DateTime} dateTimes - the unit of time to count.\n * @return {Array}\n */\n splitAt(...dateTimes) {\n if (!this.isValid) return [];\n const sorted = dateTimes.map(friendlyDateTime).filter(d => this.contains(d)).sort((a, b) => a.toMillis() - b.toMillis()),\n results = [];\n let {\n s\n } = this,\n i = 0;\n while (s < this.e) {\n const added = sorted[i] || this.e,\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n i += 1;\n }\n return results;\n }\n\n /**\n * Split this Interval into smaller Intervals, each of the specified length.\n * Left over time is grouped into a smaller interval\n * @param {Duration|Object|number} duration - The length of each resulting interval.\n * @return {Array}\n */\n splitBy(duration) {\n const dur = Duration.fromDurationLike(duration);\n if (!this.isValid || !dur.isValid || dur.as(\"milliseconds\") === 0) {\n return [];\n }\n let {\n s\n } = this,\n idx = 1,\n next;\n const results = [];\n while (s < this.e) {\n const added = this.start.plus(dur.mapUnits(x => x * idx));\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n idx += 1;\n }\n return results;\n }\n\n /**\n * Split this Interval into the specified number of smaller intervals.\n * @param {number} numberOfParts - The number of Intervals to divide the Interval into.\n * @return {Array}\n */\n divideEqually(numberOfParts) {\n if (!this.isValid) return [];\n return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts);\n }\n\n /**\n * Return whether this Interval overlaps with the specified Interval\n * @param {Interval} other\n * @return {boolean}\n */\n overlaps(other) {\n return this.e > other.s && this.s < other.e;\n }\n\n /**\n * Return whether this Interval's end is adjacent to the specified Interval's start.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsStart(other) {\n if (!this.isValid) return false;\n return +this.e === +other.s;\n }\n\n /**\n * Return whether this Interval's start is adjacent to the specified Interval's end.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsEnd(other) {\n if (!this.isValid) return false;\n return +other.e === +this.s;\n }\n\n /**\n * Returns true if this Interval fully contains the specified Interval, specifically if the intersect (of this Interval and the other Interval) is equal to the other Interval; false otherwise.\n * @param {Interval} other\n * @return {boolean}\n */\n engulfs(other) {\n if (!this.isValid) return false;\n return this.s <= other.s && this.e >= other.e;\n }\n\n /**\n * Return whether this Interval has the same start and end as the specified Interval.\n * @param {Interval} other\n * @return {boolean}\n */\n equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n return this.s.equals(other.s) && this.e.equals(other.e);\n }\n\n /**\n * Return an Interval representing the intersection of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the maximum start time and the minimum end time of the two Intervals.\n * Returns null if the intersection is empty, meaning, the intervals don't intersect.\n * @param {Interval} other\n * @return {Interval}\n */\n intersection(other) {\n if (!this.isValid) return this;\n const s = this.s > other.s ? this.s : other.s,\n e = this.e < other.e ? this.e : other.e;\n if (s >= e) {\n return null;\n } else {\n return Interval.fromDateTimes(s, e);\n }\n }\n\n /**\n * Return an Interval representing the union of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the minimum start time and the maximum end time of the two Intervals.\n * @param {Interval} other\n * @return {Interval}\n */\n union(other) {\n if (!this.isValid) return this;\n const s = this.s < other.s ? this.s : other.s,\n e = this.e > other.e ? this.e : other.e;\n return Interval.fromDateTimes(s, e);\n }\n\n /**\n * Merge an array of Intervals into a equivalent minimal set of Intervals.\n * Combines overlapping and adjacent Intervals.\n * @param {Array} intervals\n * @return {Array}\n */\n static merge(intervals) {\n const [found, final] = intervals.sort((a, b) => a.s - b.s).reduce(([sofar, current], item) => {\n if (!current) {\n return [sofar, item];\n } else if (current.overlaps(item) || current.abutsStart(item)) {\n return [sofar, current.union(item)];\n } else {\n return [sofar.concat([current]), item];\n }\n }, [[], null]);\n if (final) {\n found.push(final);\n }\n return found;\n }\n\n /**\n * Return an array of Intervals representing the spans of time that only appear in one of the specified Intervals.\n * @param {Array} intervals\n * @return {Array}\n */\n static xor(intervals) {\n let start = null,\n currentCount = 0;\n const results = [],\n ends = intervals.map(i => [{\n time: i.s,\n type: \"s\"\n }, {\n time: i.e,\n type: \"e\"\n }]),\n flattened = Array.prototype.concat(...ends),\n arr = flattened.sort((a, b) => a.time - b.time);\n for (const i of arr) {\n currentCount += i.type === \"s\" ? 1 : -1;\n if (currentCount === 1) {\n start = i.time;\n } else {\n if (start && +start !== +i.time) {\n results.push(Interval.fromDateTimes(start, i.time));\n }\n start = null;\n }\n }\n return Interval.merge(results);\n }\n\n /**\n * Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.\n * @param {...Interval} intervals\n * @return {Array}\n */\n difference(...intervals) {\n return Interval.xor([this].concat(intervals)).map(i => this.intersection(i)).filter(i => i && !i.isEmpty());\n }\n\n /**\n * Returns a string representation of this Interval appropriate for debugging.\n * @return {string}\n */\n toString() {\n if (!this.isValid) return INVALID;\n return `[${this.s.toISO()} – ${this.e.toISO()})`;\n }\n\n /**\n * Returns a string representation of this Interval appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`;\n } else {\n return `Interval { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns a localized string representing this Interval. Accepts the same options as the\n * Intl.DateTimeFormat constructor and any presets defined by Luxon, such as\n * {@link DateTime.DATE_FULL} or {@link DateTime.TIME_SIMPLE}. The exact behavior of this method\n * is browser-specific, but in general it will return an appropriate representation of the\n * Interval in the assigned locale. Defaults to the system's locale if no locale has been\n * specified.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {Object} [formatOpts=DateTime.DATE_SHORT] - Either a DateTime preset or\n * Intl.DateTimeFormat constructor options.\n * @param {Object} opts - Options to override the configuration of the start DateTime.\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(); //=> 11/7/2022 – 11/8/2022\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL); //=> November 7 – 8, 2022\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL, { locale: 'fr-FR' }); //=> 7–8 novembre 2022\n * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString(DateTime.TIME_SIMPLE); //=> 6:00 – 8:00 PM\n * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p\n * @return {string}\n */\n toLocaleString(formatOpts = Formats.DATE_SHORT, opts = {}) {\n return this.isValid ? Formatter.create(this.s.loc.clone(opts), formatOpts).formatInterval(this) : INVALID;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Interval.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime#toISO}\n * @return {string}\n */\n toISO(opts) {\n if (!this.isValid) return INVALID;\n return `${this.s.toISO(opts)}/${this.e.toISO(opts)}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of date of this Interval.\n * The time components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {string}\n */\n toISODate() {\n if (!this.isValid) return INVALID;\n return `${this.s.toISODate()}/${this.e.toISODate()}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of time of this Interval.\n * The date components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime#toISO}\n * @return {string}\n */\n toISOTime(opts) {\n if (!this.isValid) return INVALID;\n return `${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`;\n }\n\n /**\n * Returns a string representation of this Interval formatted according to the specified format\n * string. **You may not want this.** See {@link Interval#toLocaleString} for a more flexible\n * formatting tool.\n * @param {string} dateFormat - The format string. This string formats the start and end time.\n * See {@link DateTime#toFormat} for details.\n * @param {Object} opts - Options.\n * @param {string} [opts.separator = ' – '] - A separator to place between the start and end\n * representations.\n * @return {string}\n */\n toFormat(dateFormat, {\n separator = \" – \"\n } = {}) {\n if (!this.isValid) return INVALID;\n return `${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`;\n }\n\n /**\n * Return a Duration representing the time spanned by this interval.\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 }\n * @return {Duration}\n */\n toDuration(unit, opts) {\n if (!this.isValid) {\n return Duration.invalid(this.invalidReason);\n }\n return this.e.diff(this.s, unit, opts);\n }\n\n /**\n * Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes\n * @param {function} mapFn\n * @return {Interval}\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC())\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))\n */\n mapEndpoints(mapFn) {\n return Interval.fromDateTimes(mapFn(this.s), mapFn(this.e));\n }\n}\nexport { Interval as default };","import DateTime from \"./datetime.js\";\nimport Settings from \"./settings.js\";\nimport Locale from \"./impl/locale.js\";\nimport IANAZone from \"./zones/IANAZone.js\";\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\nimport { hasLocaleWeekInfo, hasRelative } from \"./impl/util.js\";\n\n/**\n * The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.\n */\nclass Info {\n /**\n * Return whether the specified zone contains a DST.\n * @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.\n * @return {boolean}\n */\n static hasDST(zone = Settings.defaultZone) {\n const proto = DateTime.now().setZone(zone).set({\n month: 12\n });\n return !zone.isUniversal && proto.offset !== proto.set({\n month: 6\n }).offset;\n }\n\n /**\n * Return whether the specified zone is a valid IANA specifier.\n * @param {string} zone - Zone to check\n * @return {boolean}\n */\n static isValidIANAZone(zone) {\n return IANAZone.isValidZone(zone);\n }\n\n /**\n * Converts the input into a {@link Zone} instance.\n *\n * * If `input` is already a Zone instance, it is returned unchanged.\n * * If `input` is a string containing a valid time zone name, a Zone instance\n * with that name is returned.\n * * If `input` is a string that doesn't refer to a known time zone, a Zone\n * instance with {@link Zone#isValid} == false is returned.\n * * If `input is a number, a Zone instance with the specified fixed offset\n * in minutes is returned.\n * * If `input` is `null` or `undefined`, the default zone is returned.\n * @param {string|Zone|number} [input] - the value to be converted\n * @return {Zone}\n */\n static normalizeZone(input) {\n return normalizeZone(input, Settings.defaultZone);\n }\n\n /**\n * Get the weekday on which the week starts according to the given locale.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number} the start of the week, 1 for Monday through 7 for Sunday\n */\n static getStartOfWeek({\n locale = null,\n locObj = null\n } = {}) {\n return (locObj || Locale.create(locale)).getStartOfWeek();\n }\n\n /**\n * Get the minimum number of days necessary in a week before it is considered part of the next year according\n * to the given locale.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number}\n */\n static getMinimumDaysInFirstWeek({\n locale = null,\n locObj = null\n } = {}) {\n return (locObj || Locale.create(locale)).getMinDaysInFirstWeek();\n }\n\n /**\n * Get the weekdays, which are considered the weekend according to the given locale\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number[]} an array of weekdays, 1 for Monday through 7 for Sunday\n */\n static getWeekendWeekdays({\n locale = null,\n locObj = null\n } = {}) {\n // copy the array, because we cache it internally\n return (locObj || Locale.create(locale)).getWeekendDays().slice();\n }\n\n /**\n * Return an array of standalone month names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @example Info.months()[0] //=> 'January'\n * @example Info.months('short')[0] //=> 'Jan'\n * @example Info.months('numeric')[0] //=> '1'\n * @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.'\n * @example Info.months('numeric', { locale: 'ar' })[0] //=> '١'\n * @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I'\n * @return {Array}\n */\n static months(length = \"long\", {\n locale = null,\n numberingSystem = null,\n locObj = null,\n outputCalendar = \"gregory\"\n } = {}) {\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length);\n }\n\n /**\n * Return an array of format month names.\n * Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that\n * changes the string.\n * See {@link Info#months}\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @return {Array}\n */\n static monthsFormat(length = \"long\", {\n locale = null,\n numberingSystem = null,\n locObj = null,\n outputCalendar = \"gregory\"\n } = {}) {\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length, true);\n }\n\n /**\n * Return an array of standalone week names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the weekday representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @example Info.weekdays()[0] //=> 'Monday'\n * @example Info.weekdays('short')[0] //=> 'Mon'\n * @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.'\n * @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين'\n * @return {Array}\n */\n static weekdays(length = \"long\", {\n locale = null,\n numberingSystem = null,\n locObj = null\n } = {}) {\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length);\n }\n\n /**\n * Return an array of format week names.\n * Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that\n * changes the string.\n * See {@link Info#weekdays}\n * @param {string} [length='long'] - the length of the month representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale=null] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @return {Array}\n */\n static weekdaysFormat(length = \"long\", {\n locale = null,\n numberingSystem = null,\n locObj = null\n } = {}) {\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length, true);\n }\n\n /**\n * Return an array of meridiems.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.meridiems() //=> [ 'AM', 'PM' ]\n * @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ]\n * @return {Array}\n */\n static meridiems({\n locale = null\n } = {}) {\n return Locale.create(locale).meridiems();\n }\n\n /**\n * Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian.\n * @param {string} [length='short'] - the length of the era representation, such as \"short\" or \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.eras() //=> [ 'BC', 'AD' ]\n * @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ]\n * @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ]\n * @return {Array}\n */\n static eras(length = \"short\", {\n locale = null\n } = {}) {\n return Locale.create(locale, null, \"gregory\").eras(length);\n }\n\n /**\n * Return the set of available features in this environment.\n * Some features of Luxon are not available in all environments. For example, on older browsers, relative time formatting support is not available. Use this function to figure out if that's the case.\n * Keys:\n * * `relative`: whether this environment supports relative time formatting\n * * `localeWeek`: whether this environment supports different weekdays for the start of the week based on the locale\n * @example Info.features() //=> { relative: false, localeWeek: true }\n * @return {Object}\n */\n static features() {\n return {\n relative: hasRelative(),\n localeWeek: hasLocaleWeekInfo()\n };\n }\n}\nexport { Info as default };","import Duration from \"../duration.js\";\nfunction dayDiff(earlier, later) {\n const utcDayStart = dt => dt.toUTC(0, {\n keepLocalTime: true\n }).startOf(\"day\").valueOf(),\n ms = utcDayStart(later) - utcDayStart(earlier);\n return Math.floor(Duration.fromMillis(ms).as(\"days\"));\n}\nfunction highOrderDiffs(cursor, later, units) {\n const differs = [[\"years\", (a, b) => b.year - a.year], [\"quarters\", (a, b) => b.quarter - a.quarter + (b.year - a.year) * 4], [\"months\", (a, b) => b.month - a.month + (b.year - a.year) * 12], [\"weeks\", (a, b) => {\n const days = dayDiff(a, b);\n return (days - days % 7) / 7;\n }], [\"days\", dayDiff]];\n const results = {};\n const earlier = cursor;\n let lowestOrder, highWater;\n\n /* This loop tries to diff using larger units first.\n If we overshoot, we backtrack and try the next smaller unit.\n \"cursor\" starts out at the earlier timestamp and moves closer and closer to \"later\"\n as we use smaller and smaller units.\n highWater keeps track of where we would be if we added one more of the smallest unit,\n this is used later to potentially convert any difference smaller than the smallest higher order unit\n into a fraction of that smallest higher order unit\n */\n for (const [unit, differ] of differs) {\n if (units.indexOf(unit) >= 0) {\n lowestOrder = unit;\n results[unit] = differ(cursor, later);\n highWater = earlier.plus(results);\n if (highWater > later) {\n // we overshot the end point, backtrack cursor by 1\n results[unit]--;\n cursor = earlier.plus(results);\n\n // if we are still overshooting now, we need to backtrack again\n // this happens in certain situations when diffing times in different zones,\n // because this calculation ignores time zones\n if (cursor > later) {\n // keep the \"overshot by 1\" around as highWater\n highWater = cursor;\n // backtrack cursor by 1\n results[unit]--;\n cursor = earlier.plus(results);\n }\n } else {\n cursor = highWater;\n }\n }\n }\n return [cursor, results, highWater, lowestOrder];\n}\nexport default function (earlier, later, units, opts) {\n let [cursor, results, highWater, lowestOrder] = highOrderDiffs(earlier, later, units);\n const remainingMillis = later - cursor;\n const lowerOrderUnits = units.filter(u => [\"hours\", \"minutes\", \"seconds\", \"milliseconds\"].indexOf(u) >= 0);\n if (lowerOrderUnits.length === 0) {\n if (highWater < later) {\n highWater = cursor.plus({\n [lowestOrder]: 1\n });\n }\n if (highWater !== cursor) {\n results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);\n }\n }\n const duration = Duration.fromObject(results, opts);\n if (lowerOrderUnits.length > 0) {\n return Duration.fromMillis(remainingMillis, opts).shiftTo(...lowerOrderUnits).plus(duration);\n } else {\n return duration;\n }\n}","import { parseMillis, isUndefined, untruncateYear, signedOffset, hasOwnProperty } from \"./util.js\";\nimport Formatter from \"./formatter.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\nimport DateTime from \"../datetime.js\";\nimport { digitRegex, parseDigits } from \"./digits.js\";\nimport { ConflictingSpecificationError } from \"../errors.js\";\nconst MISSING_FTP = \"missing Intl.DateTimeFormat.formatToParts support\";\nfunction intUnit(regex, post = i => i) {\n return {\n regex,\n deser: ([s]) => post(parseDigits(s))\n };\n}\nconst NBSP = String.fromCharCode(160);\nconst spaceOrNBSP = `[ ${NBSP}]`;\nconst spaceOrNBSPRegExp = new RegExp(spaceOrNBSP, \"g\");\nfunction fixListRegex(s) {\n // make dots optional and also make them literal\n // make space and non breakable space characters interchangeable\n return s.replace(/\\./g, \"\\\\.?\").replace(spaceOrNBSPRegExp, spaceOrNBSP);\n}\nfunction stripInsensitivities(s) {\n return s.replace(/\\./g, \"\") // ignore dots that were made optional\n .replace(spaceOrNBSPRegExp, \" \") // interchange space and nbsp\n .toLowerCase();\n}\nfunction oneOf(strings, startIndex) {\n if (strings === null) {\n return null;\n } else {\n return {\n regex: RegExp(strings.map(fixListRegex).join(\"|\")),\n deser: ([s]) => strings.findIndex(i => stripInsensitivities(s) === stripInsensitivities(i)) + startIndex\n };\n }\n}\nfunction offset(regex, groups) {\n return {\n regex,\n deser: ([, h, m]) => signedOffset(h, m),\n groups\n };\n}\nfunction simple(regex) {\n return {\n regex,\n deser: ([s]) => s\n };\n}\nfunction escapeToken(value) {\n return value.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g, \"\\\\$&\");\n}\n\n/**\n * @param token\n * @param {Locale} loc\n */\nfunction unitForToken(token, loc) {\n const one = digitRegex(loc),\n two = digitRegex(loc, \"{2}\"),\n three = digitRegex(loc, \"{3}\"),\n four = digitRegex(loc, \"{4}\"),\n six = digitRegex(loc, \"{6}\"),\n oneOrTwo = digitRegex(loc, \"{1,2}\"),\n oneToThree = digitRegex(loc, \"{1,3}\"),\n oneToSix = digitRegex(loc, \"{1,6}\"),\n oneToNine = digitRegex(loc, \"{1,9}\"),\n twoToFour = digitRegex(loc, \"{2,4}\"),\n fourToSix = digitRegex(loc, \"{4,6}\"),\n literal = t => ({\n regex: RegExp(escapeToken(t.val)),\n deser: ([s]) => s,\n literal: true\n }),\n unitate = t => {\n if (token.literal) {\n return literal(t);\n }\n switch (t.val) {\n // era\n case \"G\":\n return oneOf(loc.eras(\"short\"), 0);\n case \"GG\":\n return oneOf(loc.eras(\"long\"), 0);\n // years\n case \"y\":\n return intUnit(oneToSix);\n case \"yy\":\n return intUnit(twoToFour, untruncateYear);\n case \"yyyy\":\n return intUnit(four);\n case \"yyyyy\":\n return intUnit(fourToSix);\n case \"yyyyyy\":\n return intUnit(six);\n // months\n case \"M\":\n return intUnit(oneOrTwo);\n case \"MM\":\n return intUnit(two);\n case \"MMM\":\n return oneOf(loc.months(\"short\", true), 1);\n case \"MMMM\":\n return oneOf(loc.months(\"long\", true), 1);\n case \"L\":\n return intUnit(oneOrTwo);\n case \"LL\":\n return intUnit(two);\n case \"LLL\":\n return oneOf(loc.months(\"short\", false), 1);\n case \"LLLL\":\n return oneOf(loc.months(\"long\", false), 1);\n // dates\n case \"d\":\n return intUnit(oneOrTwo);\n case \"dd\":\n return intUnit(two);\n // ordinals\n case \"o\":\n return intUnit(oneToThree);\n case \"ooo\":\n return intUnit(three);\n // time\n case \"HH\":\n return intUnit(two);\n case \"H\":\n return intUnit(oneOrTwo);\n case \"hh\":\n return intUnit(two);\n case \"h\":\n return intUnit(oneOrTwo);\n case \"mm\":\n return intUnit(two);\n case \"m\":\n return intUnit(oneOrTwo);\n case \"q\":\n return intUnit(oneOrTwo);\n case \"qq\":\n return intUnit(two);\n case \"s\":\n return intUnit(oneOrTwo);\n case \"ss\":\n return intUnit(two);\n case \"S\":\n return intUnit(oneToThree);\n case \"SSS\":\n return intUnit(three);\n case \"u\":\n return simple(oneToNine);\n case \"uu\":\n return simple(oneOrTwo);\n case \"uuu\":\n return intUnit(one);\n // meridiem\n case \"a\":\n return oneOf(loc.meridiems(), 0);\n // weekYear (k)\n case \"kkkk\":\n return intUnit(four);\n case \"kk\":\n return intUnit(twoToFour, untruncateYear);\n // weekNumber (W)\n case \"W\":\n return intUnit(oneOrTwo);\n case \"WW\":\n return intUnit(two);\n // weekdays\n case \"E\":\n case \"c\":\n return intUnit(one);\n case \"EEE\":\n return oneOf(loc.weekdays(\"short\", false), 1);\n case \"EEEE\":\n return oneOf(loc.weekdays(\"long\", false), 1);\n case \"ccc\":\n return oneOf(loc.weekdays(\"short\", true), 1);\n case \"cccc\":\n return oneOf(loc.weekdays(\"long\", true), 1);\n // offset/zone\n case \"Z\":\n case \"ZZ\":\n return offset(new RegExp(`([+-]${oneOrTwo.source})(?::(${two.source}))?`), 2);\n case \"ZZZ\":\n return offset(new RegExp(`([+-]${oneOrTwo.source})(${two.source})?`), 2);\n // we don't support ZZZZ (PST) or ZZZZZ (Pacific Standard Time) in parsing\n // because we don't have any way to figure out what they are\n case \"z\":\n return simple(/[a-z_+-/]{1,256}?/i);\n // this special-case \"token\" represents a place where a macro-token expanded into a white-space literal\n // in this case we accept any non-newline white-space\n case \" \":\n return simple(/[^\\S\\n\\r]/);\n default:\n return literal(t);\n }\n };\n const unit = unitate(token) || {\n invalidReason: MISSING_FTP\n };\n unit.token = token;\n return unit;\n}\nconst partTypeStyleToTokenVal = {\n year: {\n \"2-digit\": \"yy\",\n numeric: \"yyyyy\"\n },\n month: {\n numeric: \"M\",\n \"2-digit\": \"MM\",\n short: \"MMM\",\n long: \"MMMM\"\n },\n day: {\n numeric: \"d\",\n \"2-digit\": \"dd\"\n },\n weekday: {\n short: \"EEE\",\n long: \"EEEE\"\n },\n dayperiod: \"a\",\n dayPeriod: \"a\",\n hour12: {\n numeric: \"h\",\n \"2-digit\": \"hh\"\n },\n hour24: {\n numeric: \"H\",\n \"2-digit\": \"HH\"\n },\n minute: {\n numeric: \"m\",\n \"2-digit\": \"mm\"\n },\n second: {\n numeric: \"s\",\n \"2-digit\": \"ss\"\n },\n timeZoneName: {\n long: \"ZZZZZ\",\n short: \"ZZZ\"\n }\n};\nfunction tokenForPart(part, formatOpts, resolvedOpts) {\n const {\n type,\n value\n } = part;\n if (type === \"literal\") {\n const isSpace = /^\\s+$/.test(value);\n return {\n literal: !isSpace,\n val: isSpace ? \" \" : value\n };\n }\n const style = formatOpts[type];\n\n // The user might have explicitly specified hour12 or hourCycle\n // if so, respect their decision\n // if not, refer back to the resolvedOpts, which are based on the locale\n let actualType = type;\n if (type === \"hour\") {\n if (formatOpts.hour12 != null) {\n actualType = formatOpts.hour12 ? \"hour12\" : \"hour24\";\n } else if (formatOpts.hourCycle != null) {\n if (formatOpts.hourCycle === \"h11\" || formatOpts.hourCycle === \"h12\") {\n actualType = \"hour12\";\n } else {\n actualType = \"hour24\";\n }\n } else {\n // tokens only differentiate between 24 hours or not,\n // so we do not need to check hourCycle here, which is less supported anyways\n actualType = resolvedOpts.hour12 ? \"hour12\" : \"hour24\";\n }\n }\n let val = partTypeStyleToTokenVal[actualType];\n if (typeof val === \"object\") {\n val = val[style];\n }\n if (val) {\n return {\n literal: false,\n val\n };\n }\n return undefined;\n}\nfunction buildRegex(units) {\n const re = units.map(u => u.regex).reduce((f, r) => `${f}(${r.source})`, \"\");\n return [`^${re}$`, units];\n}\nfunction match(input, regex, handlers) {\n const matches = input.match(regex);\n if (matches) {\n const all = {};\n let matchIndex = 1;\n for (const i in handlers) {\n if (hasOwnProperty(handlers, i)) {\n const h = handlers[i],\n groups = h.groups ? h.groups + 1 : 1;\n if (!h.literal && h.token) {\n all[h.token.val[0]] = h.deser(matches.slice(matchIndex, matchIndex + groups));\n }\n matchIndex += groups;\n }\n }\n return [matches, all];\n } else {\n return [matches, {}];\n }\n}\nfunction dateTimeFromMatches(matches) {\n const toField = token => {\n switch (token) {\n case \"S\":\n return \"millisecond\";\n case \"s\":\n return \"second\";\n case \"m\":\n return \"minute\";\n case \"h\":\n case \"H\":\n return \"hour\";\n case \"d\":\n return \"day\";\n case \"o\":\n return \"ordinal\";\n case \"L\":\n case \"M\":\n return \"month\";\n case \"y\":\n return \"year\";\n case \"E\":\n case \"c\":\n return \"weekday\";\n case \"W\":\n return \"weekNumber\";\n case \"k\":\n return \"weekYear\";\n case \"q\":\n return \"quarter\";\n default:\n return null;\n }\n };\n let zone = null;\n let specificOffset;\n if (!isUndefined(matches.z)) {\n zone = IANAZone.create(matches.z);\n }\n if (!isUndefined(matches.Z)) {\n if (!zone) {\n zone = new FixedOffsetZone(matches.Z);\n }\n specificOffset = matches.Z;\n }\n if (!isUndefined(matches.q)) {\n matches.M = (matches.q - 1) * 3 + 1;\n }\n if (!isUndefined(matches.h)) {\n if (matches.h < 12 && matches.a === 1) {\n matches.h += 12;\n } else if (matches.h === 12 && matches.a === 0) {\n matches.h = 0;\n }\n }\n if (matches.G === 0 && matches.y) {\n matches.y = -matches.y;\n }\n if (!isUndefined(matches.u)) {\n matches.S = parseMillis(matches.u);\n }\n const vals = Object.keys(matches).reduce((r, k) => {\n const f = toField(k);\n if (f) {\n r[f] = matches[k];\n }\n return r;\n }, {});\n return [vals, zone, specificOffset];\n}\nlet dummyDateTimeCache = null;\nfunction getDummyDateTime() {\n if (!dummyDateTimeCache) {\n dummyDateTimeCache = DateTime.fromMillis(1555555555555);\n }\n return dummyDateTimeCache;\n}\nfunction maybeExpandMacroToken(token, locale) {\n if (token.literal) {\n return token;\n }\n const formatOpts = Formatter.macroTokenToFormatOpts(token.val);\n const tokens = formatOptsToTokens(formatOpts, locale);\n if (tokens == null || tokens.includes(undefined)) {\n return token;\n }\n return tokens;\n}\nexport function expandMacroTokens(tokens, locale) {\n return Array.prototype.concat(...tokens.map(t => maybeExpandMacroToken(t, locale)));\n}\n\n/**\n * @private\n */\n\nexport class TokenParser {\n constructor(locale, format) {\n this.locale = locale;\n this.format = format;\n this.tokens = expandMacroTokens(Formatter.parseFormat(format), locale);\n this.units = this.tokens.map(t => unitForToken(t, locale));\n this.disqualifyingUnit = this.units.find(t => t.invalidReason);\n if (!this.disqualifyingUnit) {\n const [regexString, handlers] = buildRegex(this.units);\n this.regex = RegExp(regexString, \"i\");\n this.handlers = handlers;\n }\n }\n explainFromTokens(input) {\n if (!this.isValid) {\n return {\n input,\n tokens: this.tokens,\n invalidReason: this.invalidReason\n };\n } else {\n const [rawMatches, matches] = match(input, this.regex, this.handlers),\n [result, zone, specificOffset] = matches ? dateTimeFromMatches(matches) : [null, null, undefined];\n if (hasOwnProperty(matches, \"a\") && hasOwnProperty(matches, \"H\")) {\n throw new ConflictingSpecificationError(\"Can't include meridiem when specifying 24-hour format\");\n }\n return {\n input,\n tokens: this.tokens,\n regex: this.regex,\n rawMatches,\n matches,\n result,\n zone,\n specificOffset\n };\n }\n }\n get isValid() {\n return !this.disqualifyingUnit;\n }\n get invalidReason() {\n return this.disqualifyingUnit ? this.disqualifyingUnit.invalidReason : null;\n }\n}\nexport function explainFromTokens(locale, input, format) {\n const parser = new TokenParser(locale, format);\n return parser.explainFromTokens(input);\n}\nexport function parseFromTokens(locale, input, format) {\n const {\n result,\n zone,\n specificOffset,\n invalidReason\n } = explainFromTokens(locale, input, format);\n return [result, zone, specificOffset, invalidReason];\n}\nexport function formatOptsToTokens(formatOpts, locale) {\n if (!formatOpts) {\n return null;\n }\n const formatter = Formatter.create(locale, formatOpts);\n const df = formatter.dtFormatter(getDummyDateTime());\n const parts = df.formatToParts();\n const resolvedOpts = df.resolvedOptions();\n return parts.map(p => tokenForPart(p, formatOpts, resolvedOpts));\n}","import Duration from \"./duration.js\";\nimport Interval from \"./interval.js\";\nimport Settings from \"./settings.js\";\nimport Info from \"./info.js\";\nimport Formatter from \"./impl/formatter.js\";\nimport FixedOffsetZone from \"./zones/fixedOffsetZone.js\";\nimport Locale from \"./impl/locale.js\";\nimport { isUndefined, maybeArray, isDate, isNumber, bestBy, daysInMonth, daysInYear, isLeapYear, weeksInWeekYear, normalizeObject, roundTo, objToLocalTS, padStart } from \"./impl/util.js\";\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\nimport diff from \"./impl/diff.js\";\nimport { parseRFC2822Date, parseISODate, parseHTTPDate, parseSQL } from \"./impl/regexParser.js\";\nimport { parseFromTokens, explainFromTokens, formatOptsToTokens, expandMacroTokens, TokenParser } from \"./impl/tokenParser.js\";\nimport { gregorianToWeek, weekToGregorian, gregorianToOrdinal, ordinalToGregorian, hasInvalidGregorianData, hasInvalidWeekData, hasInvalidOrdinalData, hasInvalidTimeData, usesLocalWeekValues, isoWeekdayToLocal } from \"./impl/conversions.js\";\nimport * as Formats from \"./impl/formats.js\";\nimport { InvalidArgumentError, ConflictingSpecificationError, InvalidUnitError, InvalidDateTimeError } from \"./errors.js\";\nimport Invalid from \"./impl/invalid.js\";\nconst INVALID = \"Invalid DateTime\";\nconst MAX_DATE = 8.64e15;\nfunction unsupportedZone(zone) {\n return new Invalid(\"unsupported zone\", `the zone \"${zone.name}\" is not supported`);\n}\n\n// we cache week data on the DT object and this intermediates the cache\n/**\n * @param {DateTime} dt\n */\nfunction possiblyCachedWeekData(dt) {\n if (dt.weekData === null) {\n dt.weekData = gregorianToWeek(dt.c);\n }\n return dt.weekData;\n}\n\n/**\n * @param {DateTime} dt\n */\nfunction possiblyCachedLocalWeekData(dt) {\n if (dt.localWeekData === null) {\n dt.localWeekData = gregorianToWeek(dt.c, dt.loc.getMinDaysInFirstWeek(), dt.loc.getStartOfWeek());\n }\n return dt.localWeekData;\n}\n\n// clone really means, \"make a new object with these modifications\". all \"setters\" really use this\n// to create a new object while only changing some of the properties\nfunction clone(inst, alts) {\n const current = {\n ts: inst.ts,\n zone: inst.zone,\n c: inst.c,\n o: inst.o,\n loc: inst.loc,\n invalid: inst.invalid\n };\n return new DateTime({\n ...current,\n ...alts,\n old: current\n });\n}\n\n// find the right offset a given local time. The o input is our guess, which determines which\n// offset we'll pick in ambiguous cases (e.g. there are two 3 AMs b/c Fallback DST)\nfunction fixOffset(localTS, o, tz) {\n // Our UTC time is just a guess because our offset is just a guess\n let utcGuess = localTS - o * 60 * 1000;\n\n // Test whether the zone matches the offset for this ts\n const o2 = tz.offset(utcGuess);\n\n // If so, offset didn't change and we're done\n if (o === o2) {\n return [utcGuess, o];\n }\n\n // If not, change the ts by the difference in the offset\n utcGuess -= (o2 - o) * 60 * 1000;\n\n // If that gives us the local time we want, we're done\n const o3 = tz.offset(utcGuess);\n if (o2 === o3) {\n return [utcGuess, o2];\n }\n\n // If it's different, we're in a hole time. The offset has changed, but the we don't adjust the time\n return [localTS - Math.min(o2, o3) * 60 * 1000, Math.max(o2, o3)];\n}\n\n// convert an epoch timestamp into a calendar object with the given offset\nfunction tsToObj(ts, offset) {\n ts += offset * 60 * 1000;\n const d = new Date(ts);\n return {\n year: d.getUTCFullYear(),\n month: d.getUTCMonth() + 1,\n day: d.getUTCDate(),\n hour: d.getUTCHours(),\n minute: d.getUTCMinutes(),\n second: d.getUTCSeconds(),\n millisecond: d.getUTCMilliseconds()\n };\n}\n\n// convert a calendar object to a epoch timestamp\nfunction objToTS(obj, offset, zone) {\n return fixOffset(objToLocalTS(obj), offset, zone);\n}\n\n// create a new DT instance by adding a duration, adjusting for DSTs\nfunction adjustTime(inst, dur) {\n const oPre = inst.o,\n year = inst.c.year + Math.trunc(dur.years),\n month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3,\n c = {\n ...inst.c,\n year,\n month,\n day: Math.min(inst.c.day, daysInMonth(year, month)) + Math.trunc(dur.days) + Math.trunc(dur.weeks) * 7\n },\n millisToAdd = Duration.fromObject({\n years: dur.years - Math.trunc(dur.years),\n quarters: dur.quarters - Math.trunc(dur.quarters),\n months: dur.months - Math.trunc(dur.months),\n weeks: dur.weeks - Math.trunc(dur.weeks),\n days: dur.days - Math.trunc(dur.days),\n hours: dur.hours,\n minutes: dur.minutes,\n seconds: dur.seconds,\n milliseconds: dur.milliseconds\n }).as(\"milliseconds\"),\n localTS = objToLocalTS(c);\n let [ts, o] = fixOffset(localTS, oPre, inst.zone);\n if (millisToAdd !== 0) {\n ts += millisToAdd;\n // that could have changed the offset by going over a DST, but we want to keep the ts the same\n o = inst.zone.offset(ts);\n }\n return {\n ts,\n o\n };\n}\n\n// helper useful in turning the results of parsing into real dates\n// by handling the zone options\nfunction parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {\n const {\n setZone,\n zone\n } = opts;\n if (parsed && Object.keys(parsed).length !== 0 || parsedZone) {\n const interpretationZone = parsedZone || zone,\n inst = DateTime.fromObject(parsed, {\n ...opts,\n zone: interpretationZone,\n specificOffset\n });\n return setZone ? inst : inst.setZone(zone);\n } else {\n return DateTime.invalid(new Invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ${format}`));\n }\n}\n\n// if you want to output a technical format (e.g. RFC 2822), this helper\n// helps handle the details\nfunction toTechFormat(dt, format, allowZ = true) {\n return dt.isValid ? Formatter.create(Locale.create(\"en-US\"), {\n allowZ,\n forceSimple: true\n }).formatDateTimeFromString(dt, format) : null;\n}\nfunction toISODate(o, extended) {\n const longFormat = o.c.year > 9999 || o.c.year < 0;\n let c = \"\";\n if (longFormat && o.c.year >= 0) c += \"+\";\n c += padStart(o.c.year, longFormat ? 6 : 4);\n if (extended) {\n c += \"-\";\n c += padStart(o.c.month);\n c += \"-\";\n c += padStart(o.c.day);\n } else {\n c += padStart(o.c.month);\n c += padStart(o.c.day);\n }\n return c;\n}\nfunction toISOTime(o, extended, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone) {\n let c = padStart(o.c.hour);\n if (extended) {\n c += \":\";\n c += padStart(o.c.minute);\n if (o.c.millisecond !== 0 || o.c.second !== 0 || !suppressSeconds) {\n c += \":\";\n }\n } else {\n c += padStart(o.c.minute);\n }\n if (o.c.millisecond !== 0 || o.c.second !== 0 || !suppressSeconds) {\n c += padStart(o.c.second);\n if (o.c.millisecond !== 0 || !suppressMilliseconds) {\n c += \".\";\n c += padStart(o.c.millisecond, 3);\n }\n }\n if (includeOffset) {\n if (o.isOffsetFixed && o.offset === 0 && !extendedZone) {\n c += \"Z\";\n } else if (o.o < 0) {\n c += \"-\";\n c += padStart(Math.trunc(-o.o / 60));\n c += \":\";\n c += padStart(Math.trunc(-o.o % 60));\n } else {\n c += \"+\";\n c += padStart(Math.trunc(o.o / 60));\n c += \":\";\n c += padStart(Math.trunc(o.o % 60));\n }\n }\n if (extendedZone) {\n c += \"[\" + o.zone.ianaName + \"]\";\n }\n return c;\n}\n\n// defaults for unspecified units in the supported calendars\nconst defaultUnitValues = {\n month: 1,\n day: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0\n },\n defaultWeekUnitValues = {\n weekNumber: 1,\n weekday: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0\n },\n defaultOrdinalUnitValues = {\n ordinal: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0\n };\n\n// Units in the supported calendars, sorted by bigness\nconst orderedUnits = [\"year\", \"month\", \"day\", \"hour\", \"minute\", \"second\", \"millisecond\"],\n orderedWeekUnits = [\"weekYear\", \"weekNumber\", \"weekday\", \"hour\", \"minute\", \"second\", \"millisecond\"],\n orderedOrdinalUnits = [\"year\", \"ordinal\", \"hour\", \"minute\", \"second\", \"millisecond\"];\n\n// standardize case and plurality in units\nfunction normalizeUnit(unit) {\n const normalized = {\n year: \"year\",\n years: \"year\",\n month: \"month\",\n months: \"month\",\n day: \"day\",\n days: \"day\",\n hour: \"hour\",\n hours: \"hour\",\n minute: \"minute\",\n minutes: \"minute\",\n quarter: \"quarter\",\n quarters: \"quarter\",\n second: \"second\",\n seconds: \"second\",\n millisecond: \"millisecond\",\n milliseconds: \"millisecond\",\n weekday: \"weekday\",\n weekdays: \"weekday\",\n weeknumber: \"weekNumber\",\n weeksnumber: \"weekNumber\",\n weeknumbers: \"weekNumber\",\n weekyear: \"weekYear\",\n weekyears: \"weekYear\",\n ordinal: \"ordinal\"\n }[unit.toLowerCase()];\n if (!normalized) throw new InvalidUnitError(unit);\n return normalized;\n}\nfunction normalizeUnitWithLocalWeeks(unit) {\n switch (unit.toLowerCase()) {\n case \"localweekday\":\n case \"localweekdays\":\n return \"localWeekday\";\n case \"localweeknumber\":\n case \"localweeknumbers\":\n return \"localWeekNumber\";\n case \"localweekyear\":\n case \"localweekyears\":\n return \"localWeekYear\";\n default:\n return normalizeUnit(unit);\n }\n}\n\n// cache offsets for zones based on the current timestamp when this function is\n// first called. When we are handling a datetime from components like (year,\n// month, day, hour) in a time zone, we need a guess about what the timezone\n// offset is so that we can convert into a UTC timestamp. One way is to find the\n// offset of now in the zone. The actual date may have a different offset (for\n// example, if we handle a date in June while we're in December in a zone that\n// observes DST), but we can check and adjust that.\n//\n// When handling many dates, calculating the offset for now every time is\n// expensive. It's just a guess, so we can cache the offset to use even if we\n// are right on a time change boundary (we'll just correct in the other\n// direction). Using a timestamp from first read is a slight optimization for\n// handling dates close to the current date, since those dates will usually be\n// in the same offset (we could set the timestamp statically, instead). We use a\n// single timestamp for all zones to make things a bit more predictable.\n//\n// This is safe for quickDT (used by local() and utc()) because we don't fill in\n// higher-order units from tsNow (as we do in fromObject, this requires that\n// offset is calculated from tsNow).\nfunction guessOffsetForZone(zone) {\n if (!zoneOffsetGuessCache[zone]) {\n if (zoneOffsetTs === undefined) {\n zoneOffsetTs = Settings.now();\n }\n zoneOffsetGuessCache[zone] = zone.offset(zoneOffsetTs);\n }\n return zoneOffsetGuessCache[zone];\n}\n\n// this is a dumbed down version of fromObject() that runs about 60% faster\n// but doesn't do any validation, makes a bunch of assumptions about what units\n// are present, and so on.\nfunction quickDT(obj, opts) {\n const zone = normalizeZone(opts.zone, Settings.defaultZone);\n if (!zone.isValid) {\n return DateTime.invalid(unsupportedZone(zone));\n }\n const loc = Locale.fromObject(opts);\n let ts, o;\n\n // assume we have the higher-order units\n if (!isUndefined(obj.year)) {\n for (const u of orderedUnits) {\n if (isUndefined(obj[u])) {\n obj[u] = defaultUnitValues[u];\n }\n }\n const invalid = hasInvalidGregorianData(obj) || hasInvalidTimeData(obj);\n if (invalid) {\n return DateTime.invalid(invalid);\n }\n const offsetProvis = guessOffsetForZone(zone);\n [ts, o] = objToTS(obj, offsetProvis, zone);\n } else {\n ts = Settings.now();\n }\n return new DateTime({\n ts,\n zone,\n loc,\n o\n });\n}\nfunction diffRelative(start, end, opts) {\n const round = isUndefined(opts.round) ? true : opts.round,\n format = (c, unit) => {\n c = roundTo(c, round || opts.calendary ? 0 : 2, true);\n const formatter = end.loc.clone(opts).relFormatter(opts);\n return formatter.format(c, unit);\n },\n differ = unit => {\n if (opts.calendary) {\n if (!end.hasSame(start, unit)) {\n return end.startOf(unit).diff(start.startOf(unit), unit).get(unit);\n } else return 0;\n } else {\n return end.diff(start, unit).get(unit);\n }\n };\n if (opts.unit) {\n return format(differ(opts.unit), opts.unit);\n }\n for (const unit of opts.units) {\n const count = differ(unit);\n if (Math.abs(count) >= 1) {\n return format(count, unit);\n }\n }\n return format(start > end ? -0 : 0, opts.units[opts.units.length - 1]);\n}\nfunction lastOpts(argList) {\n let opts = {},\n args;\n if (argList.length > 0 && typeof argList[argList.length - 1] === \"object\") {\n opts = argList[argList.length - 1];\n args = Array.from(argList).slice(0, argList.length - 1);\n } else {\n args = Array.from(argList);\n }\n return [opts, args];\n}\n\n/**\n * Timestamp to use for cached zone offset guesses (exposed for test)\n */\nlet zoneOffsetTs;\n/**\n * Cache for zone offset guesses (exposed for test).\n *\n * This optimizes quickDT via guessOffsetForZone to avoid repeated calls of\n * zone.offset().\n */\nlet zoneOffsetGuessCache = {};\n\n/**\n * A DateTime is an immutable data structure representing a specific date and time and accompanying methods. It contains class and instance methods for creating, parsing, interrogating, transforming, and formatting them.\n *\n * A DateTime comprises of:\n * * A timestamp. Each DateTime instance refers to a specific millisecond of the Unix epoch.\n * * A time zone. Each instance is considered in the context of a specific zone (by default the local system's zone).\n * * Configuration properties that effect how output strings are formatted, such as `locale`, `numberingSystem`, and `outputCalendar`.\n *\n * Here is a brief overview of the most commonly used functionality it provides:\n *\n * * **Creation**: To create a DateTime from its components, use one of its factory class methods: {@link DateTime.local}, {@link DateTime.utc}, and (most flexibly) {@link DateTime.fromObject}. To create one from a standard string format, use {@link DateTime.fromISO}, {@link DateTime.fromHTTP}, and {@link DateTime.fromRFC2822}. To create one from a custom string format, use {@link DateTime.fromFormat}. To create one from a native JS date, use {@link DateTime.fromJSDate}.\n * * **Gregorian calendar and time**: To examine the Gregorian properties of a DateTime individually (i.e as opposed to collectively through {@link DateTime#toObject}), use the {@link DateTime#year}, {@link DateTime#month},\n * {@link DateTime#day}, {@link DateTime#hour}, {@link DateTime#minute}, {@link DateTime#second}, {@link DateTime#millisecond} accessors.\n * * **Week calendar**: For ISO week calendar attributes, see the {@link DateTime#weekYear}, {@link DateTime#weekNumber}, and {@link DateTime#weekday} accessors.\n * * **Configuration** See the {@link DateTime#locale} and {@link DateTime#numberingSystem} accessors.\n * * **Transformation**: To transform the DateTime into other DateTimes, use {@link DateTime#set}, {@link DateTime#reconfigure}, {@link DateTime#setZone}, {@link DateTime#setLocale}, {@link DateTime.plus}, {@link DateTime#minus}, {@link DateTime#endOf}, {@link DateTime#startOf}, {@link DateTime#toUTC}, and {@link DateTime#toLocal}.\n * * **Output**: To convert the DateTime to other representations, use the {@link DateTime#toRelative}, {@link DateTime#toRelativeCalendar}, {@link DateTime#toJSON}, {@link DateTime#toISO}, {@link DateTime#toHTTP}, {@link DateTime#toObject}, {@link DateTime#toRFC2822}, {@link DateTime#toString}, {@link DateTime#toLocaleString}, {@link DateTime#toFormat}, {@link DateTime#toMillis} and {@link DateTime#toJSDate}.\n *\n * There's plenty others documented below. In addition, for more information on subtler topics like internationalization, time zones, alternative calendars, validity, and so on, see the external documentation.\n */\nclass DateTime {\n /**\n * @access private\n */\n constructor(config) {\n const zone = config.zone || Settings.defaultZone;\n let invalid = config.invalid || (Number.isNaN(config.ts) ? new Invalid(\"invalid input\") : null) || (!zone.isValid ? unsupportedZone(zone) : null);\n /**\n * @access private\n */\n this.ts = isUndefined(config.ts) ? Settings.now() : config.ts;\n let c = null,\n o = null;\n if (!invalid) {\n const unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);\n if (unchanged) {\n [c, o] = [config.old.c, config.old.o];\n } else {\n // If an offset has been passed and we have not been called from\n // clone(), we can trust it and avoid the offset calculation.\n const ot = isNumber(config.o) && !config.old ? config.o : zone.offset(this.ts);\n c = tsToObj(this.ts, ot);\n invalid = Number.isNaN(c.year) ? new Invalid(\"invalid input\") : null;\n c = invalid ? null : c;\n o = invalid ? null : ot;\n }\n }\n\n /**\n * @access private\n */\n this._zone = zone;\n /**\n * @access private\n */\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n this.invalid = invalid;\n /**\n * @access private\n */\n this.weekData = null;\n /**\n * @access private\n */\n this.localWeekData = null;\n /**\n * @access private\n */\n this.c = c;\n /**\n * @access private\n */\n this.o = o;\n /**\n * @access private\n */\n this.isLuxonDateTime = true;\n }\n\n // CONSTRUCT\n\n /**\n * Create a DateTime for the current instant, in the system's time zone.\n *\n * Use Settings to override these default values if needed.\n * @example DateTime.now().toISO() //~> now in the ISO format\n * @return {DateTime}\n */\n static now() {\n return new DateTime({});\n }\n\n /**\n * Create a local DateTime\n * @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month, 1-indexed\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @example DateTime.local() //~> now\n * @example DateTime.local({ zone: \"America/New_York\" }) //~> now, in US east coast time\n * @example DateTime.local(2017) //~> 2017-01-01T00:00:00\n * @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00\n * @example DateTime.local(2017, 3, 12, { locale: \"fr\" }) //~> 2017-03-12T00:00:00, with a French locale\n * @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00\n * @example DateTime.local(2017, 3, 12, 5, { zone: \"utc\" }) //~> 2017-03-12T05:00:00, in UTC\n * @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00\n * @example DateTime.local(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10\n * @example DateTime.local(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765\n * @return {DateTime}\n */\n static local() {\n const [opts, args] = lastOpts(arguments),\n [year, month, day, hour, minute, second, millisecond] = args;\n return quickDT({\n year,\n month,\n day,\n hour,\n minute,\n second,\n millisecond\n }, opts);\n }\n\n /**\n * Create a DateTime in UTC\n * @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @param {Object} options - configuration options for the DateTime\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} [options.outputCalendar] - the output calendar to set on the resulting DateTime instance\n * @param {string} [options.numberingSystem] - the numbering system to set on the resulting DateTime instance\n * @param {string} [options.weekSettings] - the week settings to set on the resulting DateTime instance\n * @example DateTime.utc() //~> now\n * @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z\n * @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z\n * @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, { locale: \"fr\" }) //~> 2017-03-12T05:45:00Z with a French locale\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: \"fr\" }) //~> 2017-03-12T05:45:10.765Z with a French locale\n * @return {DateTime}\n */\n static utc() {\n const [opts, args] = lastOpts(arguments),\n [year, month, day, hour, minute, second, millisecond] = args;\n opts.zone = FixedOffsetZone.utcInstance;\n return quickDT({\n year,\n month,\n day,\n hour,\n minute,\n second,\n millisecond\n }, opts);\n }\n\n /**\n * Create a DateTime from a JavaScript Date object. Uses the default zone.\n * @param {Date} date - a JavaScript Date object\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @return {DateTime}\n */\n static fromJSDate(date, options = {}) {\n const ts = isDate(date) ? date.valueOf() : NaN;\n if (Number.isNaN(ts)) {\n return DateTime.invalid(\"invalid input\");\n }\n const zoneToUse = normalizeZone(options.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n return new DateTime({\n ts: ts,\n zone: zoneToUse,\n loc: Locale.fromObject(options)\n });\n }\n\n /**\n * Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} milliseconds - a number of milliseconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} options.weekSettings - the week settings to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromMillis(milliseconds, options = {}) {\n if (!isNumber(milliseconds)) {\n throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}`);\n } else if (milliseconds < -MAX_DATE || milliseconds > MAX_DATE) {\n // this isn't perfect because we can still end up out of range because of additional shifting, but it's a start\n return DateTime.invalid(\"Timestamp out of range\");\n } else {\n return new DateTime({\n ts: milliseconds,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options)\n });\n }\n }\n\n /**\n * Create a DateTime from a number of seconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} seconds - a number of seconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} options.weekSettings - the week settings to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromSeconds(seconds, options = {}) {\n if (!isNumber(seconds)) {\n throw new InvalidArgumentError(\"fromSeconds requires a numerical input\");\n } else {\n return new DateTime({\n ts: seconds * 1000,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options)\n });\n }\n }\n\n /**\n * Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.year - a year, such as 1987\n * @param {number} obj.month - a month, 1-12\n * @param {number} obj.day - a day of the month, 1-31, depending on the month\n * @param {number} obj.ordinal - day of the year, 1-365 or 366\n * @param {number} obj.weekYear - an ISO week year\n * @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year\n * @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday\n * @param {number} obj.localWeekYear - a week year, according to the locale\n * @param {number} obj.localWeekNumber - a week number, between 1 and 52 or 53, depending on the year, according to the locale\n * @param {number} obj.localWeekday - a weekday, 1-7, where 1 is the first and 7 is the last day of the week, according to the locale\n * @param {number} obj.hour - hour of the day, 0-23\n * @param {number} obj.minute - minute of the hour, 0-59\n * @param {number} obj.second - second of the minute, 0-59\n * @param {number} obj.millisecond - millisecond of the second, 0-999\n * @param {Object} opts - options for creating this DateTime\n * @param {string|Zone} [opts.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone()\n * @param {string} [opts.locale='system\\'s locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25'\n * @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01'\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'utc' }),\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'local' })\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'America/New_York' })\n * @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'\n * @example DateTime.fromObject({ localWeekYear: 2022, localWeekNumber: 1, localWeekday: 1 }, { locale: \"en-US\" }).toISODate() //=> '2021-12-26'\n * @return {DateTime}\n */\n static fromObject(obj, opts = {}) {\n obj = obj || {};\n const zoneToUse = normalizeZone(opts.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n const loc = Locale.fromObject(opts);\n const normalized = normalizeObject(obj, normalizeUnitWithLocalWeeks);\n const {\n minDaysInFirstWeek,\n startOfWeek\n } = usesLocalWeekValues(normalized, loc);\n const tsNow = Settings.now(),\n offsetProvis = !isUndefined(opts.specificOffset) ? opts.specificOffset : zoneToUse.offset(tsNow),\n containsOrdinal = !isUndefined(normalized.ordinal),\n containsGregorYear = !isUndefined(normalized.year),\n containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n containsGregor = containsGregorYear || containsGregorMD,\n definiteWeekDef = normalized.weekYear || normalized.weekNumber;\n\n // cases:\n // just a weekday -> this week's instance of that weekday, no worries\n // (gregorian data or ordinal) + (weekYear or weekNumber) -> error\n // (gregorian month or day) + ordinal -> error\n // otherwise just use weeks or ordinals or gregorian, depending on what's specified\n\n if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n throw new ConflictingSpecificationError(\"Can't mix weekYear/weekNumber units with year/month/day or ordinals\");\n }\n if (containsGregorMD && containsOrdinal) {\n throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n }\n const useWeekData = definiteWeekDef || normalized.weekday && !containsGregor;\n\n // configure ourselves to deal with gregorian dates or week stuff\n let units,\n defaultValues,\n objNow = tsToObj(tsNow, offsetProvis);\n if (useWeekData) {\n units = orderedWeekUnits;\n defaultValues = defaultWeekUnitValues;\n objNow = gregorianToWeek(objNow, minDaysInFirstWeek, startOfWeek);\n } else if (containsOrdinal) {\n units = orderedOrdinalUnits;\n defaultValues = defaultOrdinalUnitValues;\n objNow = gregorianToOrdinal(objNow);\n } else {\n units = orderedUnits;\n defaultValues = defaultUnitValues;\n }\n\n // set default values for missing stuff\n let foundFirst = false;\n for (const u of units) {\n const v = normalized[u];\n if (!isUndefined(v)) {\n foundFirst = true;\n } else if (foundFirst) {\n normalized[u] = defaultValues[u];\n } else {\n normalized[u] = objNow[u];\n }\n }\n\n // make sure the values we have are in range\n const higherOrderInvalid = useWeekData ? hasInvalidWeekData(normalized, minDaysInFirstWeek, startOfWeek) : containsOrdinal ? hasInvalidOrdinalData(normalized) : hasInvalidGregorianData(normalized),\n invalid = higherOrderInvalid || hasInvalidTimeData(normalized);\n if (invalid) {\n return DateTime.invalid(invalid);\n }\n\n // compute the actual time\n const gregorian = useWeekData ? weekToGregorian(normalized, minDaysInFirstWeek, startOfWeek) : containsOrdinal ? ordinalToGregorian(normalized) : normalized,\n [tsFinal, offsetFinal] = objToTS(gregorian, offsetProvis, zoneToUse),\n inst = new DateTime({\n ts: tsFinal,\n zone: zoneToUse,\n o: offsetFinal,\n loc\n });\n\n // gregorian data + weekday serves only to validate\n if (normalized.weekday && containsGregor && obj.weekday !== inst.weekday) {\n return DateTime.invalid(\"mismatched weekday\", `you can't specify both a weekday of ${normalized.weekday} and a date of ${inst.toISO()}`);\n }\n if (!inst.isValid) {\n return DateTime.invalid(inst.invalid);\n }\n return inst;\n }\n\n /**\n * Create a DateTime from an ISO 8601 string\n * @param {string} text - the ISO string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the time to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} [opts.outputCalendar] - the output calendar to set on the resulting DateTime instance\n * @param {string} [opts.numberingSystem] - the numbering system to set on the resulting DateTime instance\n * @param {string} [opts.weekSettings] - the week settings to set on the resulting DateTime instance\n * @example DateTime.fromISO('2016-05-25T09:08:34.123')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true})\n * @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'})\n * @example DateTime.fromISO('2016-W05-4')\n * @return {DateTime}\n */\n static fromISO(text, opts = {}) {\n const [vals, parsedZone] = parseISODate(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"ISO 8601\", text);\n }\n\n /**\n * Create a DateTime from an RFC 2822 string\n * @param {string} text - the RFC 2822 string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since the offset is always specified in the string itself, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT')\n * @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600')\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z')\n * @return {DateTime}\n */\n static fromRFC2822(text, opts = {}) {\n const [vals, parsedZone] = parseRFC2822Date(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"RFC 2822\", text);\n }\n\n /**\n * Create a DateTime from an HTTP header date\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @param {string} text - the HTTP header date\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since HTTP dates are always in UTC, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with the fixed-offset zone specified in the string. For HTTP dates, this is always UTC, so this option is equivalent to setting the `zone` option to 'utc', but this option is included for consistency with similar methods.\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sun Nov 6 08:49:37 1994')\n * @return {DateTime}\n */\n static fromHTTP(text, opts = {}) {\n const [vals, parsedZone] = parseHTTPDate(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"HTTP\", opts);\n }\n\n /**\n * Create a DateTime from an input string and format string.\n * Defaults to en-US if no locale has been specified, regardless of the system's locale. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/parsing?id=table-of-tokens).\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see the link below for the formats)\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromFormat(text, fmt, opts = {}) {\n if (isUndefined(text) || isUndefined(fmt)) {\n throw new InvalidArgumentError(\"fromFormat requires an input string and a format\");\n }\n const {\n locale = null,\n numberingSystem = null\n } = opts,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true\n }),\n [vals, parsedZone, specificOffset, invalid] = parseFromTokens(localeToUse, text, fmt);\n if (invalid) {\n return DateTime.invalid(invalid);\n } else {\n return parseDataToDateTime(vals, parsedZone, opts, `format ${fmt}`, text, specificOffset);\n }\n }\n\n /**\n * @deprecated use fromFormat instead\n */\n static fromString(text, fmt, opts = {}) {\n return DateTime.fromFormat(text, fmt, opts);\n }\n\n /**\n * Create a DateTime from a SQL date, time, or datetime\n * Defaults to en-US if no locale has been specified, regardless of the system's locale\n * @param {string} text - the string to parse\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @example DateTime.fromSQL('2017-05-15')\n * @example DateTime.fromSQL('2017-05-15 09:12:34')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true })\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' })\n * @example DateTime.fromSQL('09:12:34.342')\n * @return {DateTime}\n */\n static fromSQL(text, opts = {}) {\n const [vals, parsedZone] = parseSQL(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"SQL\", text);\n }\n\n /**\n * Create an invalid DateTime.\n * @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent.\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {DateTime}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the DateTime is invalid\");\n }\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n if (Settings.throwOnInvalid) {\n throw new InvalidDateTimeError(invalid);\n } else {\n return new DateTime({\n invalid\n });\n }\n }\n\n /**\n * Check if an object is an instance of DateTime. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isDateTime(o) {\n return o && o.isLuxonDateTime || false;\n }\n\n /**\n * Produce the format string for a set of options\n * @param formatOpts\n * @param localeOpts\n * @returns {string}\n */\n static parseFormatForOpts(formatOpts, localeOpts = {}) {\n const tokenList = formatOptsToTokens(formatOpts, Locale.fromObject(localeOpts));\n return !tokenList ? null : tokenList.map(t => t ? t.val : null).join(\"\");\n }\n\n /**\n * Produce the the fully expanded format token for the locale\n * Does NOT quote characters, so quoted tokens will not round trip correctly\n * @param fmt\n * @param localeOpts\n * @returns {string}\n */\n static expandFormat(fmt, localeOpts = {}) {\n const expanded = expandMacroTokens(Formatter.parseFormat(fmt), Locale.fromObject(localeOpts));\n return expanded.map(t => t.val).join(\"\");\n }\n static resetCache() {\n zoneOffsetTs = undefined;\n zoneOffsetGuessCache = {};\n }\n\n // INFO\n\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example DateTime.local(2017, 7, 4).get('month'); //=> 7\n * @example DateTime.local(2017, 7, 4).get('day'); //=> 4\n * @return {number}\n */\n get(unit) {\n return this[unit];\n }\n\n /**\n * Returns whether the DateTime is valid. Invalid DateTimes occur when:\n * * The DateTime was created from invalid calendar information, such as the 13th month or February 30\n * * The DateTime was created by an operation on another invalid date\n * @type {boolean}\n */\n get isValid() {\n return this.invalid === null;\n }\n\n /**\n * Returns an error code if this DateTime is invalid, or null if the DateTime is valid\n * @type {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this DateTime became invalid, or null if the DateTime is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Get the locale of a DateTime, such 'en-GB'. The locale is used when formatting the DateTime\n *\n * @type {string}\n */\n get locale() {\n return this.isValid ? this.loc.locale : null;\n }\n\n /**\n * Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime\n *\n * @type {string}\n */\n get numberingSystem() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n\n /**\n * Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime\n *\n * @type {string}\n */\n get outputCalendar() {\n return this.isValid ? this.loc.outputCalendar : null;\n }\n\n /**\n * Get the time zone associated with this DateTime.\n * @type {Zone}\n */\n get zone() {\n return this._zone;\n }\n\n /**\n * Get the name of the time zone.\n * @type {string}\n */\n get zoneName() {\n return this.isValid ? this.zone.name : null;\n }\n\n /**\n * Get the year\n * @example DateTime.local(2017, 5, 25).year //=> 2017\n * @type {number}\n */\n get year() {\n return this.isValid ? this.c.year : NaN;\n }\n\n /**\n * Get the quarter\n * @example DateTime.local(2017, 5, 25).quarter //=> 2\n * @type {number}\n */\n get quarter() {\n return this.isValid ? Math.ceil(this.c.month / 3) : NaN;\n }\n\n /**\n * Get the month (1-12).\n * @example DateTime.local(2017, 5, 25).month //=> 5\n * @type {number}\n */\n get month() {\n return this.isValid ? this.c.month : NaN;\n }\n\n /**\n * Get the day of the month (1-30ish).\n * @example DateTime.local(2017, 5, 25).day //=> 25\n * @type {number}\n */\n get day() {\n return this.isValid ? this.c.day : NaN;\n }\n\n /**\n * Get the hour of the day (0-23).\n * @example DateTime.local(2017, 5, 25, 9).hour //=> 9\n * @type {number}\n */\n get hour() {\n return this.isValid ? this.c.hour : NaN;\n }\n\n /**\n * Get the minute of the hour (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30\n * @type {number}\n */\n get minute() {\n return this.isValid ? this.c.minute : NaN;\n }\n\n /**\n * Get the second of the minute (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52\n * @type {number}\n */\n get second() {\n return this.isValid ? this.c.second : NaN;\n }\n\n /**\n * Get the millisecond of the second (0-999).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654\n * @type {number}\n */\n get millisecond() {\n return this.isValid ? this.c.millisecond : NaN;\n }\n\n /**\n * Get the week year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 12, 31).weekYear //=> 2015\n * @type {number}\n */\n get weekYear() {\n return this.isValid ? possiblyCachedWeekData(this).weekYear : NaN;\n }\n\n /**\n * Get the week number of the week year (1-52ish).\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2017, 5, 25).weekNumber //=> 21\n * @type {number}\n */\n get weekNumber() {\n return this.isValid ? possiblyCachedWeekData(this).weekNumber : NaN;\n }\n\n /**\n * Get the day of the week.\n * 1 is Monday and 7 is Sunday\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 11, 31).weekday //=> 4\n * @type {number}\n */\n get weekday() {\n return this.isValid ? possiblyCachedWeekData(this).weekday : NaN;\n }\n\n /**\n * Returns true if this date is on a weekend according to the locale, false otherwise\n * @returns {boolean}\n */\n get isWeekend() {\n return this.isValid && this.loc.getWeekendDays().includes(this.weekday);\n }\n\n /**\n * Get the day of the week according to the locale.\n * 1 is the first day of the week and 7 is the last day of the week.\n * If the locale assigns Sunday as the first day of the week, then a date which is a Sunday will return 1,\n * @returns {number}\n */\n get localWeekday() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekday : NaN;\n }\n\n /**\n * Get the week number of the week year according to the locale. Different locales assign week numbers differently,\n * because the week can start on different days of the week (see localWeekday) and because a different number of days\n * is required for a week to count as the first week of a year.\n * @returns {number}\n */\n get localWeekNumber() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekNumber : NaN;\n }\n\n /**\n * Get the week year according to the locale. Different locales assign week numbers (and therefor week years)\n * differently, see localWeekNumber.\n * @returns {number}\n */\n get localWeekYear() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekYear : NaN;\n }\n\n /**\n * Get the ordinal (meaning the day of the year)\n * @example DateTime.local(2017, 5, 25).ordinal //=> 145\n * @type {number|DateTime}\n */\n get ordinal() {\n return this.isValid ? gregorianToOrdinal(this.c).ordinal : NaN;\n }\n\n /**\n * Get the human readable short month name, such as 'Oct'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthShort //=> Oct\n * @type {string}\n */\n get monthShort() {\n return this.isValid ? Info.months(\"short\", {\n locObj: this.loc\n })[this.month - 1] : null;\n }\n\n /**\n * Get the human readable long month name, such as 'October'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthLong //=> October\n * @type {string}\n */\n get monthLong() {\n return this.isValid ? Info.months(\"long\", {\n locObj: this.loc\n })[this.month - 1] : null;\n }\n\n /**\n * Get the human readable short weekday, such as 'Mon'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon\n * @type {string}\n */\n get weekdayShort() {\n return this.isValid ? Info.weekdays(\"short\", {\n locObj: this.loc\n })[this.weekday - 1] : null;\n }\n\n /**\n * Get the human readable long weekday, such as 'Monday'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday\n * @type {string}\n */\n get weekdayLong() {\n return this.isValid ? Info.weekdays(\"long\", {\n locObj: this.loc\n })[this.weekday - 1] : null;\n }\n\n /**\n * Get the UTC offset of this DateTime in minutes\n * @example DateTime.now().offset //=> -240\n * @example DateTime.utc().offset //=> 0\n * @type {number}\n */\n get offset() {\n return this.isValid ? +this.o : NaN;\n }\n\n /**\n * Get the short human name for the zone's current offset, for example \"EST\" or \"EDT\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n get offsetNameShort() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"short\",\n locale: this.locale\n });\n } else {\n return null;\n }\n }\n\n /**\n * Get the long human name for the zone's current offset, for example \"Eastern Standard Time\" or \"Eastern Daylight Time\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n get offsetNameLong() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"long\",\n locale: this.locale\n });\n } else {\n return null;\n }\n }\n\n /**\n * Get whether this zone's offset ever changes, as in a DST.\n * @type {boolean}\n */\n get isOffsetFixed() {\n return this.isValid ? this.zone.isUniversal : null;\n }\n\n /**\n * Get whether the DateTime is in a DST.\n * @type {boolean}\n */\n get isInDST() {\n if (this.isOffsetFixed) {\n return false;\n } else {\n return this.offset > this.set({\n month: 1,\n day: 1\n }).offset || this.offset > this.set({\n month: 5\n }).offset;\n }\n }\n\n /**\n * Get those DateTimes which have the same local time as this DateTime, but a different offset from UTC\n * in this DateTime's zone. During DST changes local time can be ambiguous, for example\n * `2023-10-29T02:30:00` in `Europe/Berlin` can have offset `+01:00` or `+02:00`.\n * This method will return both possible DateTimes if this DateTime's local time is ambiguous.\n * @returns {DateTime[]}\n */\n getPossibleOffsets() {\n if (!this.isValid || this.isOffsetFixed) {\n return [this];\n }\n const dayMs = 86400000;\n const minuteMs = 60000;\n const localTS = objToLocalTS(this.c);\n const oEarlier = this.zone.offset(localTS - dayMs);\n const oLater = this.zone.offset(localTS + dayMs);\n const o1 = this.zone.offset(localTS - oEarlier * minuteMs);\n const o2 = this.zone.offset(localTS - oLater * minuteMs);\n if (o1 === o2) {\n return [this];\n }\n const ts1 = localTS - o1 * minuteMs;\n const ts2 = localTS - o2 * minuteMs;\n const c1 = tsToObj(ts1, o1);\n const c2 = tsToObj(ts2, o2);\n if (c1.hour === c2.hour && c1.minute === c2.minute && c1.second === c2.second && c1.millisecond === c2.millisecond) {\n return [clone(this, {\n ts: ts1\n }), clone(this, {\n ts: ts2\n })];\n }\n return [this];\n }\n\n /**\n * Returns true if this DateTime is in a leap year, false otherwise\n * @example DateTime.local(2016).isInLeapYear //=> true\n * @example DateTime.local(2013).isInLeapYear //=> false\n * @type {boolean}\n */\n get isInLeapYear() {\n return isLeapYear(this.year);\n }\n\n /**\n * Returns the number of days in this DateTime's month\n * @example DateTime.local(2016, 2).daysInMonth //=> 29\n * @example DateTime.local(2016, 3).daysInMonth //=> 31\n * @type {number}\n */\n get daysInMonth() {\n return daysInMonth(this.year, this.month);\n }\n\n /**\n * Returns the number of days in this DateTime's year\n * @example DateTime.local(2016).daysInYear //=> 366\n * @example DateTime.local(2013).daysInYear //=> 365\n * @type {number}\n */\n get daysInYear() {\n return this.isValid ? daysInYear(this.year) : NaN;\n }\n\n /**\n * Returns the number of weeks in this DateTime's year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2004).weeksInWeekYear //=> 53\n * @example DateTime.local(2013).weeksInWeekYear //=> 52\n * @type {number}\n */\n get weeksInWeekYear() {\n return this.isValid ? weeksInWeekYear(this.weekYear) : NaN;\n }\n\n /**\n * Returns the number of weeks in this DateTime's local week year\n * @example DateTime.local(2020, 6, {locale: 'en-US'}).weeksInLocalWeekYear //=> 52\n * @example DateTime.local(2020, 6, {locale: 'de-DE'}).weeksInLocalWeekYear //=> 53\n * @type {number}\n */\n get weeksInLocalWeekYear() {\n return this.isValid ? weeksInWeekYear(this.localWeekYear, this.loc.getMinDaysInFirstWeek(), this.loc.getStartOfWeek()) : NaN;\n }\n\n /**\n * Returns the resolved Intl options for this DateTime.\n * This is useful in understanding the behavior of formatting methods\n * @param {Object} opts - the same options as toLocaleString\n * @return {Object}\n */\n resolvedLocaleOptions(opts = {}) {\n const {\n locale,\n numberingSystem,\n calendar\n } = Formatter.create(this.loc.clone(opts), opts).resolvedOptions(this);\n return {\n locale,\n numberingSystem,\n outputCalendar: calendar\n };\n }\n\n // TRANSFORM\n\n /**\n * \"Set\" the DateTime's zone to UTC. Returns a newly-constructed DateTime.\n *\n * Equivalent to {@link DateTime#setZone}('utc')\n * @param {number} [offset=0] - optionally, an offset from UTC in minutes\n * @param {Object} [opts={}] - options to pass to `setZone()`\n * @return {DateTime}\n */\n toUTC(offset = 0, opts = {}) {\n return this.setZone(FixedOffsetZone.instance(offset), opts);\n }\n\n /**\n * \"Set\" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.\n *\n * Equivalent to `setZone('local')`\n * @return {DateTime}\n */\n toLocal() {\n return this.setZone(Settings.defaultZone);\n }\n\n /**\n * \"Set\" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.\n *\n * By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link DateTime#plus}. You may wish to use {@link DateTime#toLocal} and {@link DateTime#toUTC} which provide simple convenience wrappers for commonly used zones.\n * @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link DateTime#Zone} class.\n * @param {Object} opts - options\n * @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this.\n * @return {DateTime}\n */\n setZone(zone, {\n keepLocalTime = false,\n keepCalendarTime = false\n } = {}) {\n zone = normalizeZone(zone, Settings.defaultZone);\n if (zone.equals(this.zone)) {\n return this;\n } else if (!zone.isValid) {\n return DateTime.invalid(unsupportedZone(zone));\n } else {\n let newTS = this.ts;\n if (keepLocalTime || keepCalendarTime) {\n const offsetGuess = zone.offset(this.ts);\n const asObj = this.toObject();\n [newTS] = objToTS(asObj, offsetGuess, zone);\n }\n return clone(this, {\n ts: newTS,\n zone\n });\n }\n }\n\n /**\n * \"Set\" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.\n * @param {Object} properties - the properties to set\n * @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' })\n * @return {DateTime}\n */\n reconfigure({\n locale,\n numberingSystem,\n outputCalendar\n } = {}) {\n const loc = this.loc.clone({\n locale,\n numberingSystem,\n outputCalendar\n });\n return clone(this, {\n loc\n });\n }\n\n /**\n * \"Set\" the locale. Returns a newly-constructed DateTime.\n * Just a convenient alias for reconfigure({ locale })\n * @example DateTime.local(2017, 5, 25).setLocale('en-GB')\n * @return {DateTime}\n */\n setLocale(locale) {\n return this.reconfigure({\n locale\n });\n }\n\n /**\n * \"Set\" the values of specified units. Returns a newly-constructed DateTime.\n * You can only set units with this method; for \"setting\" metadata, see {@link DateTime#reconfigure} and {@link DateTime#setZone}.\n *\n * This method also supports setting locale-based week units, i.e. `localWeekday`, `localWeekNumber` and `localWeekYear`.\n * They cannot be mixed with ISO-week units like `weekday`.\n * @param {Object} values - a mapping of units to numbers\n * @example dt.set({ year: 2017 })\n * @example dt.set({ hour: 8, minute: 30 })\n * @example dt.set({ weekday: 5 })\n * @example dt.set({ year: 2005, ordinal: 234 })\n * @return {DateTime}\n */\n set(values) {\n if (!this.isValid) return this;\n const normalized = normalizeObject(values, normalizeUnitWithLocalWeeks);\n const {\n minDaysInFirstWeek,\n startOfWeek\n } = usesLocalWeekValues(normalized, this.loc);\n const settingWeekStuff = !isUndefined(normalized.weekYear) || !isUndefined(normalized.weekNumber) || !isUndefined(normalized.weekday),\n containsOrdinal = !isUndefined(normalized.ordinal),\n containsGregorYear = !isUndefined(normalized.year),\n containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n containsGregor = containsGregorYear || containsGregorMD,\n definiteWeekDef = normalized.weekYear || normalized.weekNumber;\n if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n throw new ConflictingSpecificationError(\"Can't mix weekYear/weekNumber units with year/month/day or ordinals\");\n }\n if (containsGregorMD && containsOrdinal) {\n throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n }\n let mixed;\n if (settingWeekStuff) {\n mixed = weekToGregorian({\n ...gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek),\n ...normalized\n }, minDaysInFirstWeek, startOfWeek);\n } else if (!isUndefined(normalized.ordinal)) {\n mixed = ordinalToGregorian({\n ...gregorianToOrdinal(this.c),\n ...normalized\n });\n } else {\n mixed = {\n ...this.toObject(),\n ...normalized\n };\n\n // if we didn't set the day but we ended up on an overflow date,\n // use the last day of the right month\n if (isUndefined(normalized.day)) {\n mixed.day = Math.min(daysInMonth(mixed.year, mixed.month), mixed.day);\n }\n }\n const [ts, o] = objToTS(mixed, this.o, this.zone);\n return clone(this, {\n ts,\n o\n });\n }\n\n /**\n * Add a period of time to this DateTime and return the resulting DateTime\n *\n * Adding hours, minutes, seconds, or milliseconds increases the timestamp by the right number of milliseconds. Adding days, months, or years shifts the calendar, accounting for DSTs and leap years along the way. Thus, `dt.plus({ hours: 24 })` may result in a different time than `dt.plus({ days: 1 })` if there's a DST shift in between.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @example DateTime.now().plus(123) //~> in 123 milliseconds\n * @example DateTime.now().plus({ minutes: 15 }) //~> in 15 minutes\n * @example DateTime.now().plus({ days: 1 }) //~> this time tomorrow\n * @example DateTime.now().plus({ days: -1 }) //~> this time yesterday\n * @example DateTime.now().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min\n * @example DateTime.now().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min\n * @return {DateTime}\n */\n plus(duration) {\n if (!this.isValid) return this;\n const dur = Duration.fromDurationLike(duration);\n return clone(this, adjustTime(this, dur));\n }\n\n /**\n * Subtract a period of time to this DateTime and return the resulting DateTime\n * See {@link DateTime#plus}\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n @return {DateTime}\n */\n minus(duration) {\n if (!this.isValid) return this;\n const dur = Duration.fromDurationLike(duration).negate();\n return clone(this, adjustTime(this, dur));\n }\n\n /**\n * \"Set\" this DateTime to the beginning of a unit of time.\n * @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week\n * @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01'\n * @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01'\n * @example DateTime.local(2014, 3, 3).startOf('week').toISODate(); //=> '2014-03-03', weeks always start on Mondays\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00'\n * @return {DateTime}\n */\n startOf(unit, {\n useLocaleWeeks = false\n } = {}) {\n if (!this.isValid) return this;\n const o = {},\n normalizedUnit = Duration.normalizeUnit(unit);\n switch (normalizedUnit) {\n case \"years\":\n o.month = 1;\n // falls through\n case \"quarters\":\n case \"months\":\n o.day = 1;\n // falls through\n case \"weeks\":\n case \"days\":\n o.hour = 0;\n // falls through\n case \"hours\":\n o.minute = 0;\n // falls through\n case \"minutes\":\n o.second = 0;\n // falls through\n case \"seconds\":\n o.millisecond = 0;\n break;\n case \"milliseconds\":\n break;\n // no default, invalid units throw in normalizeUnit()\n }\n if (normalizedUnit === \"weeks\") {\n if (useLocaleWeeks) {\n const startOfWeek = this.loc.getStartOfWeek();\n const {\n weekday\n } = this;\n if (weekday < startOfWeek) {\n o.weekNumber = this.weekNumber - 1;\n }\n o.weekday = startOfWeek;\n } else {\n o.weekday = 1;\n }\n }\n if (normalizedUnit === \"quarters\") {\n const q = Math.ceil(this.month / 3);\n o.month = (q - 1) * 3 + 1;\n }\n return this.set(o);\n }\n\n /**\n * \"Set\" this DateTime to the end (meaning the last millisecond) of a unit of time\n * @param {string} unit - The unit to go to the end of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week\n * @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3).endOf('week').toISO(); // => '2014-03-09T23:59:59.999-05:00', weeks start on Mondays\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00'\n * @return {DateTime}\n */\n endOf(unit, opts) {\n return this.isValid ? this.plus({\n [unit]: 1\n }).startOf(unit, opts).minus(1) : this;\n }\n\n // OUTPUT\n\n /**\n * Returns a string representation of this DateTime formatted according to the specified format string.\n * **You may not want this.** See {@link DateTime#toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/formatting?id=table-of-tokens).\n * Defaults to en-US if no locale has been specified, regardless of the system's locale.\n * @param {string} fmt - the format string\n * @param {Object} opts - opts to override the configuration options on this DateTime\n * @example DateTime.now().toFormat('yyyy LLL dd') //=> '2017 Apr 22'\n * @example DateTime.now().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22'\n * @example DateTime.now().toFormat('yyyy LLL dd', { locale: \"fr\" }) //=> '2017 avr. 22'\n * @example DateTime.now().toFormat(\"HH 'hours and' mm 'minutes'\") //=> '20 hours and 55 minutes'\n * @return {string}\n */\n toFormat(fmt, opts = {}) {\n return this.isValid ? Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this, fmt) : INVALID;\n }\n\n /**\n * Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.\n * The exact behavior of this method is browser-specific, but in general it will return an appropriate representation\n * of the DateTime in the assigned locale.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param formatOpts {Object} - Intl.DateTimeFormat constructor options and configuration options\n * @param {Object} opts - opts to override the configuration options on this DateTime\n * @example DateTime.now().toLocaleString(); //=> 4/20/2017\n * @example DateTime.now().setLocale('en-gb').toLocaleString(); //=> '20/04/2017'\n * @example DateTime.now().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017'\n * @example DateTime.now().toLocaleString(DateTime.DATE_FULL, { locale: 'fr' }); //=> '28 août 2022'\n * @example DateTime.now().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM'\n * @example DateTime.now().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM'\n * @example DateTime.now().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20'\n * @example DateTime.now().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM'\n * @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'\n * @return {string}\n */\n toLocaleString(formatOpts = Formats.DATE_SHORT, opts = {}) {\n return this.isValid ? Formatter.create(this.loc.clone(opts), formatOpts).formatDateTime(this) : INVALID;\n }\n\n /**\n * Returns an array of format \"parts\", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts\n * @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`.\n * @example DateTime.now().toLocaleParts(); //=> [\n * //=> { type: 'day', value: '25' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'month', value: '05' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'year', value: '1982' }\n * //=> ]\n */\n toLocaleParts(opts = {}) {\n return this.isValid ? Formatter.create(this.loc.clone(opts), opts).formatDateTimeParts(this) : [];\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.extendedZone=false] - add the time zone format extension\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc(1983, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'\n * @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'\n * @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'\n * @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'\n * @return {string}\n */\n toISO({\n format = \"extended\",\n suppressSeconds = false,\n suppressMilliseconds = false,\n includeOffset = true,\n extendedZone = false\n } = {}) {\n if (!this.isValid) {\n return null;\n }\n const ext = format === \"extended\";\n let c = toISODate(this, ext);\n c += \"T\";\n c += toISOTime(this, ext, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone);\n return c;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's date component\n * @param {Object} opts - options\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'\n * @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'\n * @return {string}\n */\n toISODate({\n format = \"extended\"\n } = {}) {\n if (!this.isValid) {\n return null;\n }\n return toISODate(this, format === \"extended\");\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's week date\n * @example DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2'\n * @return {string}\n */\n toISOWeekDate() {\n return toTechFormat(this, \"kkkk-'W'WW-c\");\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's time component\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.extendedZone=true] - add the time zone format extension\n * @param {boolean} [opts.includePrefix=false] - include the `T` prefix\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ includePrefix: true }) //=> 'T07:34:19.361Z'\n * @return {string}\n */\n toISOTime({\n suppressMilliseconds = false,\n suppressSeconds = false,\n includeOffset = true,\n includePrefix = false,\n extendedZone = false,\n format = \"extended\"\n } = {}) {\n if (!this.isValid) {\n return null;\n }\n let c = includePrefix ? \"T\" : \"\";\n return c + toISOTime(this, format === \"extended\", suppressSeconds, suppressMilliseconds, includeOffset, extendedZone);\n }\n\n /**\n * Returns an RFC 2822-compatible string representation of this DateTime\n * @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'\n * @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'\n * @return {string}\n */\n toRFC2822() {\n return toTechFormat(this, \"EEE, dd LLL yyyy HH:mm:ss ZZZ\", false);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in HTTP headers. The output is always expressed in GMT.\n * Specifically, the string conforms to RFC 1123.\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT'\n * @example DateTime.utc(2014, 7, 13, 19).toHTTP() //=> 'Sun, 13 Jul 2014 19:00:00 GMT'\n * @return {string}\n */\n toHTTP() {\n return toTechFormat(this.toUTC(), \"EEE, dd LLL yyyy HH:mm:ss 'GMT'\");\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Date\n * @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13'\n * @return {string}\n */\n toSQLDate() {\n if (!this.isValid) {\n return null;\n }\n return toISODate(this, true);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Time\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'\n * @example DateTime.utc().toSQL() //=> '05:15:16.345'\n * @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00'\n * @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345'\n * @example DateTime.now().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York'\n * @return {string}\n */\n toSQLTime({\n includeOffset = true,\n includeZone = false,\n includeOffsetSpace = true\n } = {}) {\n let fmt = \"HH:mm:ss.SSS\";\n if (includeZone || includeOffset) {\n if (includeOffsetSpace) {\n fmt += \" \";\n }\n if (includeZone) {\n fmt += \"z\";\n } else if (includeOffset) {\n fmt += \"ZZ\";\n }\n }\n return toTechFormat(this, fmt, true);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'\n * @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'\n * @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York'\n * @return {string}\n */\n toSQL(opts = {}) {\n if (!this.isValid) {\n return null;\n }\n return `${this.toSQLDate()} ${this.toSQLTime(opts)}`;\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for debugging\n * @return {string}\n */\n toString() {\n return this.isValid ? this.toISO() : INVALID;\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`;\n } else {\n return `DateTime { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns the epoch milliseconds of this DateTime. Alias of {@link DateTime#toMillis}\n * @return {number}\n */\n valueOf() {\n return this.toMillis();\n }\n\n /**\n * Returns the epoch milliseconds of this DateTime.\n * @return {number}\n */\n toMillis() {\n return this.isValid ? this.ts : NaN;\n }\n\n /**\n * Returns the epoch seconds of this DateTime.\n * @return {number}\n */\n toSeconds() {\n return this.isValid ? this.ts / 1000 : NaN;\n }\n\n /**\n * Returns the epoch seconds (as a whole number) of this DateTime.\n * @return {number}\n */\n toUnixInteger() {\n return this.isValid ? Math.floor(this.ts / 1000) : NaN;\n }\n\n /**\n * Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.\n * @return {string}\n */\n toJSON() {\n return this.toISO();\n }\n\n /**\n * Returns a BSON serializable equivalent to this DateTime.\n * @return {Date}\n */\n toBSON() {\n return this.toJSDate();\n }\n\n /**\n * Returns a JavaScript object with this DateTime's year, month, day, and so on.\n * @param opts - options for generating the object\n * @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output\n * @example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }\n * @return {Object}\n */\n toObject(opts = {}) {\n if (!this.isValid) return {};\n const base = {\n ...this.c\n };\n if (opts.includeConfig) {\n base.outputCalendar = this.outputCalendar;\n base.numberingSystem = this.loc.numberingSystem;\n base.locale = this.loc.locale;\n }\n return base;\n }\n\n /**\n * Returns a JavaScript Date equivalent to this DateTime.\n * @return {Date}\n */\n toJSDate() {\n return new Date(this.isValid ? this.ts : NaN);\n }\n\n // COMPARE\n\n /**\n * Return the difference between two DateTimes as a Duration.\n * @param {DateTime} otherDateTime - the DateTime to compare this one to\n * @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example\n * var i1 = DateTime.fromISO('1982-05-25T09:45'),\n * i2 = DateTime.fromISO('1983-10-14T10:30');\n * i2.diff(i1).toObject() //=> { milliseconds: 43807500000 }\n * i2.diff(i1, 'hours').toObject() //=> { hours: 12168.75 }\n * i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 }\n * i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 }\n * @return {Duration}\n */\n diff(otherDateTime, unit = \"milliseconds\", opts = {}) {\n if (!this.isValid || !otherDateTime.isValid) {\n return Duration.invalid(\"created by diffing an invalid DateTime\");\n }\n const durOpts = {\n locale: this.locale,\n numberingSystem: this.numberingSystem,\n ...opts\n };\n const units = maybeArray(unit).map(Duration.normalizeUnit),\n otherIsLater = otherDateTime.valueOf() > this.valueOf(),\n earlier = otherIsLater ? this : otherDateTime,\n later = otherIsLater ? otherDateTime : this,\n diffed = diff(earlier, later, units, durOpts);\n return otherIsLater ? diffed.negate() : diffed;\n }\n\n /**\n * Return the difference between this DateTime and right now.\n * See {@link DateTime#diff}\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n diffNow(unit = \"milliseconds\", opts = {}) {\n return this.diff(DateTime.now(), unit, opts);\n }\n\n /**\n * Return an Interval spanning between this DateTime and another DateTime\n * @param {DateTime} otherDateTime - the other end point of the Interval\n * @return {Interval}\n */\n until(otherDateTime) {\n return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this;\n }\n\n /**\n * Return whether this DateTime is in the same unit of time as another DateTime.\n * Higher-order units must also be identical for this function to return `true`.\n * Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link DateTime#setZone} to convert one of the dates if needed.\n * @param {DateTime} otherDateTime - the other DateTime\n * @param {string} unit - the unit of time to check sameness on\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; only the locale of this DateTime is used\n * @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day\n * @return {boolean}\n */\n hasSame(otherDateTime, unit, opts) {\n if (!this.isValid) return false;\n const inputMs = otherDateTime.valueOf();\n const adjustedToZone = this.setZone(otherDateTime.zone, {\n keepLocalTime: true\n });\n return adjustedToZone.startOf(unit, opts) <= inputMs && inputMs <= adjustedToZone.endOf(unit, opts);\n }\n\n /**\n * Equality check\n * Two DateTimes are equal if and only if they represent the same millisecond, have the same zone and location, and are both valid.\n * To compare just the millisecond values, use `+dt1 === +dt2`.\n * @param {DateTime} other - the other DateTime\n * @return {boolean}\n */\n equals(other) {\n return this.isValid && other.isValid && this.valueOf() === other.valueOf() && this.zone.equals(other.zone) && this.loc.equals(other.loc);\n }\n\n /**\n * Returns a string representation of a this time relative to now, such as \"in two days\". Can only internationalize if your\n * platform supports Intl.RelativeTimeFormat. Rounds down by default.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} [options.style=\"long\"] - the style of units, must be \"long\", \"short\", or \"narrow\"\n * @param {string|string[]} options.unit - use a specific unit or array of units; if omitted, or an array, the method will pick the best unit. Use an array or one of \"years\", \"quarters\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", or \"seconds\"\n * @param {boolean} [options.round=true] - whether to round the numbers in the output.\n * @param {number} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.now().plus({ days: 1 }).toRelative() //=> \"in 1 day\"\n * @example DateTime.now().setLocale(\"es\").toRelative({ days: 1 }) //=> \"dentro de 1 día\"\n * @example DateTime.now().plus({ days: 1 }).toRelative({ locale: \"fr\" }) //=> \"dans 23 heures\"\n * @example DateTime.now().minus({ days: 2 }).toRelative() //=> \"2 days ago\"\n * @example DateTime.now().minus({ days: 2 }).toRelative({ unit: \"hours\" }) //=> \"48 hours ago\"\n * @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> \"1.5 days ago\"\n */\n toRelative(options = {}) {\n if (!this.isValid) return null;\n const base = options.base || DateTime.fromObject({}, {\n zone: this.zone\n }),\n padding = options.padding ? this < base ? -options.padding : options.padding : 0;\n let units = [\"years\", \"months\", \"days\", \"hours\", \"minutes\", \"seconds\"];\n let unit = options.unit;\n if (Array.isArray(options.unit)) {\n units = options.unit;\n unit = undefined;\n }\n return diffRelative(base, this.plus(padding), {\n ...options,\n numeric: \"always\",\n units,\n unit\n });\n }\n\n /**\n * Returns a string representation of this date relative to today, such as \"yesterday\" or \"next month\".\n * Only internationalizes on platforms that supports Intl.RelativeTimeFormat.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of \"years\", \"quarters\", \"months\", \"weeks\", or \"days\"\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar() //=> \"tomorrow\"\n * @example DateTime.now().setLocale(\"es\").plus({ days: 1 }).toRelative() //=> \"\"mañana\"\n * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar({ locale: \"fr\" }) //=> \"demain\"\n * @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> \"2 days ago\"\n */\n toRelativeCalendar(options = {}) {\n if (!this.isValid) return null;\n return diffRelative(options.base || DateTime.fromObject({}, {\n zone: this.zone\n }), this, {\n ...options,\n numeric: \"auto\",\n units: [\"years\", \"months\", \"days\"],\n calendary: true\n });\n }\n\n /**\n * Return the min of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum\n * @return {DateTime} the min DateTime, or undefined if called with no argument\n */\n static min(...dateTimes) {\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"min requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, i => i.valueOf(), Math.min);\n }\n\n /**\n * Return the max of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum\n * @return {DateTime} the max DateTime, or undefined if called with no argument\n */\n static max(...dateTimes) {\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"max requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, i => i.valueOf(), Math.max);\n }\n\n // MISC\n\n /**\n * Explain how a string would be parsed by fromFormat()\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see description)\n * @param {Object} options - options taken by fromFormat()\n * @return {Object}\n */\n static fromFormatExplain(text, fmt, options = {}) {\n const {\n locale = null,\n numberingSystem = null\n } = options,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true\n });\n return explainFromTokens(localeToUse, text, fmt);\n }\n\n /**\n * @deprecated use fromFormatExplain instead\n */\n static fromStringExplain(text, fmt, options = {}) {\n return DateTime.fromFormatExplain(text, fmt, options);\n }\n\n /**\n * Build a parser for `fmt` using the given locale. This parser can be passed\n * to {@link DateTime.fromFormatParser} to a parse a date in this format. This\n * can be used to optimize cases where many dates need to be parsed in a\n * specific format.\n *\n * @param {String} fmt - the format the string is expected to be in (see\n * description)\n * @param {Object} options - options used to set locale and numberingSystem\n * for parser\n * @returns {TokenParser} - opaque object to be used\n */\n static buildFormatParser(fmt, options = {}) {\n const {\n locale = null,\n numberingSystem = null\n } = options,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true\n });\n return new TokenParser(localeToUse, fmt);\n }\n\n /**\n * Create a DateTime from an input string and format parser.\n *\n * The format parser must have been created with the same locale as this call.\n *\n * @param {String} text - the string to parse\n * @param {TokenParser} formatParser - parser from {@link DateTime.buildFormatParser}\n * @param {Object} opts - options taken by fromFormat()\n * @returns {DateTime}\n */\n static fromFormatParser(text, formatParser, opts = {}) {\n if (isUndefined(text) || isUndefined(formatParser)) {\n throw new InvalidArgumentError(\"fromFormatParser requires an input string and a format parser\");\n }\n const {\n locale = null,\n numberingSystem = null\n } = opts,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true\n });\n if (!localeToUse.equals(formatParser.locale)) {\n throw new InvalidArgumentError(`fromFormatParser called with a locale of ${localeToUse}, ` + `but the format parser was created for ${formatParser.locale}`);\n }\n const {\n result,\n zone,\n specificOffset,\n invalidReason\n } = formatParser.explainFromTokens(text);\n if (invalidReason) {\n return DateTime.invalid(invalidReason);\n } else {\n return parseDataToDateTime(result, zone, opts, `format ${formatParser.format}`, text, specificOffset);\n }\n }\n\n // FORMAT PRESETS\n\n /**\n * {@link DateTime#toLocaleString} format like 10/14/1983\n * @type {Object}\n */\n static get DATE_SHORT() {\n return Formats.DATE_SHORT;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983'\n * @type {Object}\n */\n static get DATE_MED() {\n return Formats.DATE_MED;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Fri, Oct 14, 1983'\n * @type {Object}\n */\n static get DATE_MED_WITH_WEEKDAY() {\n return Formats.DATE_MED_WITH_WEEKDAY;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983'\n * @type {Object}\n */\n static get DATE_FULL() {\n return Formats.DATE_FULL;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Tuesday, October 14, 1983'\n * @type {Object}\n */\n static get DATE_HUGE() {\n return Formats.DATE_HUGE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_SIMPLE() {\n return Formats.TIME_SIMPLE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_SECONDS() {\n return Formats.TIME_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_SHORT_OFFSET() {\n return Formats.TIME_WITH_SHORT_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_LONG_OFFSET() {\n return Formats.TIME_WITH_LONG_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_SIMPLE() {\n return Formats.TIME_24_SIMPLE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_SECONDS() {\n return Formats.TIME_24_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 EDT', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_SHORT_OFFSET() {\n return Formats.TIME_24_WITH_SHORT_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_LONG_OFFSET() {\n return Formats.TIME_24_WITH_LONG_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_SHORT() {\n return Formats.DATETIME_SHORT;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_SHORT_WITH_SECONDS() {\n return Formats.DATETIME_SHORT_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED() {\n return Formats.DATETIME_MED;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED_WITH_SECONDS() {\n return Formats.DATETIME_MED_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED_WITH_WEEKDAY() {\n return Formats.DATETIME_MED_WITH_WEEKDAY;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_FULL() {\n return Formats.DATETIME_FULL;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_FULL_WITH_SECONDS() {\n return Formats.DATETIME_FULL_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_HUGE() {\n return Formats.DATETIME_HUGE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_HUGE_WITH_SECONDS() {\n return Formats.DATETIME_HUGE_WITH_SECONDS;\n }\n}\n\n/**\n * @private\n */\nexport { DateTime as default };\nexport function friendlyDateTime(dateTimeish) {\n if (DateTime.isDateTime(dateTimeish)) {\n return dateTimeish;\n } else if (dateTimeish && dateTimeish.valueOf && isNumber(dateTimeish.valueOf())) {\n return DateTime.fromJSDate(dateTimeish);\n } else if (dateTimeish && typeof dateTimeish === \"object\") {\n return DateTime.fromObject(dateTimeish);\n } else {\n throw new InvalidArgumentError(`Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`);\n }\n}","//----------------------\r\n// \r\n// Generated using the NSwag toolchain v14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)\r\n// \r\n//----------------------\r\n\r\n/* tslint:disable */\r\n/* eslint-disable */\r\n// ReSharper disable InconsistentNaming\r\n\r\nimport { mergeMap as _observableMergeMap, catchError as _observableCatch } from 'rxjs/operators';\r\nimport { Observable, throwError as _observableThrow, of as _observableOf } from 'rxjs';\r\nimport { Injectable, Inject, Optional, InjectionToken } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpResponse, HttpResponseBase } from '@angular/common/http';\r\n\r\nimport { DateTime, Duration } from \"luxon\";\r\n\r\nexport const API_BASE_URL = new InjectionToken('API_BASE_URL');\r\n\r\n@Injectable()\r\nexport class AccountClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n token(userLogin: UserLoginDTO): Observable {\r\n let url_ = this.baseUrl + \"/Token\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(userLogin);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processToken(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processToken(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processToken(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UserTokenDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class AutomaticParkingReportClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n searchAutomaticParkingReportData(reportParameterDto: AutomaticParkingReportParameterDTO, clientId: number | null | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/SearchAutomaticParkingReportData?\";\r\n if (clientId !== undefined && clientId !== null)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(reportParameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchAutomaticParkingReportData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchAutomaticParkingReportData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchAutomaticParkingReportData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfAutomaticParkingReportDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n exportAutomaticParkingReport(saveReport: boolean | undefined, reportParameterDto: AutomaticParkingReportParameterDTO, clientId: number | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/ExportAutomaticParkingReport?\";\r\n if (saveReport === null)\r\n throw new Error(\"The parameter 'saveReport' cannot be null.\");\r\n else if (saveReport !== undefined)\r\n url_ += \"saveReport=\" + encodeURIComponent(\"\" + saveReport) + \"&\";\r\n if (clientId !== undefined && clientId !== null)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(reportParameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processExportAutomaticParkingReport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExportAutomaticParkingReport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExportAutomaticParkingReport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SavedReportFileDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class AutomaticParkingScheduleClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n searchAutomaticParkingSchedules(filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/AutomaticParkingSchedule/SearchAutomaticParkingSchedules?\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchAutomaticParkingSchedules(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchAutomaticParkingSchedules(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchAutomaticParkingSchedules(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfAutomaticParkingScheduleDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n createAutomaticParkingSchedule(parkingSchedule: CreateAutomaticParkingScheduleDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/AutomaticParkingSchedule/CreateAutomaticParkingSchedule\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(parkingSchedule);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCreateAutomaticParkingSchedule(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateAutomaticParkingSchedule(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateAutomaticParkingSchedule(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AutomaticParkingScheduleDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateAutomaticParkingSchedule(parkingSchedule: UpdateAutomaticParkingScheduleDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/AutomaticParkingSchedule/UpdateAutomaticParkingSchedule\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(parkingSchedule);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateAutomaticParkingSchedule(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateAutomaticParkingSchedule(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateAutomaticParkingSchedule(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AutomaticParkingScheduleDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n setAutomaticParkingScheduleActiveStatus(parkingScheduleId: number | undefined, isActive: boolean | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/AutomaticParkingSchedule/SetAutomaticParkingScheduleActiveStatus?\";\r\n if (parkingScheduleId === null)\r\n throw new Error(\"The parameter 'parkingScheduleId' cannot be null.\");\r\n else if (parkingScheduleId !== undefined)\r\n url_ += \"parkingScheduleId=\" + encodeURIComponent(\"\" + parkingScheduleId) + \"&\";\r\n if (isActive === null)\r\n throw new Error(\"The parameter 'isActive' cannot be null.\");\r\n else if (isActive !== undefined)\r\n url_ += \"isActive=\" + encodeURIComponent(\"\" + isActive) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSetAutomaticParkingScheduleActiveStatus(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetAutomaticParkingScheduleActiveStatus(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetAutomaticParkingScheduleActiveStatus(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AutomaticParkingScheduleDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deleteAutomaticParkingSchedule(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/AutomaticParkingSchedule/DeleteAutomaticParkingSchedule?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeleteAutomaticParkingSchedule(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteAutomaticParkingSchedule(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteAutomaticParkingSchedule(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getAutomaticParkingScheduleZoneInfos(clientId: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/AutomaticParkingSchedule/GetAutomaticParkingScheduleZoneInfos?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetAutomaticParkingScheduleZoneInfos(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAutomaticParkingScheduleZoneInfos(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAutomaticParkingScheduleZoneInfos(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ParkingProcessZoneInfoDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class BIAuditLogClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n getAuditLogs(fromDate: DateTime | null | undefined, untilDate: DateTime | null | undefined, skip: number | undefined, take: number | undefined, clientId: number | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/BIAuditLog/GetAuditLogs?\";\r\n if (fromDate !== undefined && fromDate !== null)\r\n url_ += \"fromDate=\" + encodeURIComponent(fromDate ? \"\" + fromDate.toString() : \"\") + \"&\";\r\n if (untilDate !== undefined && untilDate !== null)\r\n url_ += \"untilDate=\" + encodeURIComponent(untilDate ? \"\" + untilDate.toString() : \"\") + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (clientId !== undefined && clientId !== null)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetAuditLogs(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAuditLogs(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAuditLogs(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(AuditLogDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class BIReportsClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n getClients(skip: number | undefined, take: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/BIReports/GetClients?\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetClients(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetClients(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetClients(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfClientDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getParkers(skip: number | undefined, take: number | undefined, clientId: number | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/BIReports/GetParkers?\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (clientId !== undefined && clientId !== null)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetParkers(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetParkers(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetParkers(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfParkerDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getMonthlyParkerExtractData(parkerId: number | undefined, month: string | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/BIReports/GetMonthlyParkerExtractData?\";\r\n if (parkerId === null)\r\n throw new Error(\"The parameter 'parkerId' cannot be null.\");\r\n else if (parkerId !== undefined)\r\n url_ += \"parkerId=\" + encodeURIComponent(\"\" + parkerId) + \"&\";\r\n if (month === null)\r\n throw new Error(\"The parameter 'month' cannot be null.\");\r\n else if (month !== undefined)\r\n url_ += \"month=\" + encodeURIComponent(\"\" + month) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetMonthlyParkerExtractData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetMonthlyParkerExtractData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetMonthlyParkerExtractData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkerExtractFullReportDataDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ClientClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n createClient(client: CreateClientDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Client/CreateClient\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(client);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCreateClient(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateClient(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateClient(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? ClientDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deactivateClient(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Client/DeactivateClient?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeactivateClient(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeactivateClient(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeactivateClient(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deleteClient(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Client/DeleteClient?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeleteClient(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteClient(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteClient(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n forceDeleteClient(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Client/ForceDeleteClient?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processForceDeleteClient(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processForceDeleteClient(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processForceDeleteClient(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getClient(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Client/GetClient?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetClient(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetClient(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetClient(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ClientDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n searchClients(filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Client/SearchClients?\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchClients(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchClients(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchClients(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? PagedResultDTOOfClientDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateClient(client: UpdateClientDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Client/UpdateClient\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(client);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateClient(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateClient(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateClient(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ClientDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ConfigBasedAdminClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n getConfigBasedStructuralEntry(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ConfigBasedAdmin/GetConfigBasedStructuralEntry?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetConfigBasedStructuralEntry(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetConfigBasedStructuralEntry(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetConfigBasedStructuralEntry(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ConfigBasedStructuralEntryDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n createConfigBasedStructuralEntry(dto: CreateConfigBasedStructuralEntryDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ConfigBasedAdmin/CreateConfigBasedStructuralEntry\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCreateConfigBasedStructuralEntry(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateConfigBasedStructuralEntry(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateConfigBasedStructuralEntry(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ConfigBasedStructuralEntryDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateConfigBasedStructuralEntry(dto: UpdateConfigBasedStructuralEntryDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ConfigBasedAdmin/UpdateConfigBasedStructuralEntry\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateConfigBasedStructuralEntry(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateConfigBasedStructuralEntry(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateConfigBasedStructuralEntry(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ConfigBasedStructuralEntryDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deleteConfigBasedStructuralEntry(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ConfigBasedAdmin/DeleteConfigBasedStructuralEntry?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeleteConfigBasedStructuralEntry(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteConfigBasedStructuralEntry(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteConfigBasedStructuralEntry(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n searchConfigBasedStructuralEntries(clientId: number | undefined, filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ConfigBasedAdmin/SearchConfigBasedStructuralEntries?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchConfigBasedStructuralEntries(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchConfigBasedStructuralEntries(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchConfigBasedStructuralEntries(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfConfigBasedStructuralEntryDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class DashboardClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n getDashboard(): Observable {\r\n let url_ = this.baseUrl + \"/api/Dashboard/GetDashboard\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetDashboard(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetDashboard(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetDashboard(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = DashboardDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateDashboard(updateDashboard: UpdateDashboardDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Dashboard/UpdateDashboard\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(updateDashboard);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateDashboard(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateDashboard(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateDashboard(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? DashboardDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateDashboardPanels(updateDashboardPanelsDto: UpdateDashboardPanelsDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Dashboard/UpdateDashboardPanels\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(updateDashboardPanelsDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateDashboardPanels(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateDashboardPanels(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateDashboardPanels(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? DashboardDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class DeviceInfoClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n registerDeviceInfo(model: RegisterDeviceInfoDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/DeviceInfo/RegisterDeviceInfo\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(model);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processRegisterDeviceInfo(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRegisterDeviceInfo(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRegisterDeviceInfo(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class DeviceStatusReportClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n searchDeviceStatusReportData(clientId: number | undefined, filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined, includeListElements: boolean | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/SearchDeviceStatusReportData?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n if (includeListElements === null)\r\n throw new Error(\"The parameter 'includeListElements' cannot be null.\");\r\n else if (includeListElements !== undefined)\r\n url_ += \"includeListElements=\" + encodeURIComponent(\"\" + includeListElements) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchDeviceStatusReportData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchDeviceStatusReportData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchDeviceStatusReportData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? PagedResultDTOOfDeviceStatusReportDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n exportDeviceStatusReport(clientId: number | undefined, fileType: ReportFileType | undefined, saveReport: boolean | undefined, parameterDto: DeviceStatusReportParameterDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/ExportDeviceStatusReport?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (fileType === null)\r\n throw new Error(\"The parameter 'fileType' cannot be null.\");\r\n else if (fileType !== undefined)\r\n url_ += \"fileType=\" + encodeURIComponent(\"\" + fileType) + \"&\";\r\n if (saveReport === null)\r\n throw new Error(\"The parameter 'saveReport' cannot be null.\");\r\n else if (saveReport !== undefined)\r\n url_ += \"saveReport=\" + encodeURIComponent(\"\" + saveReport) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(parameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processExportDeviceStatusReport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExportDeviceStatusReport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExportDeviceStatusReport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SavedReportFileDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class FalseRecordingsReportClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n searchFalseRecordingsReportData(clientId: number | undefined, reportParameterDto: FalseRecordingsReportParameterDTO, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/SearchFalseRecordingsReportData?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(reportParameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchFalseRecordingsReportData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchFalseRecordingsReportData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchFalseRecordingsReportData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfFalseRecordingsReportDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n exportFalseRecordingsReport(clientId: number | undefined, fileType: ReportFileType | undefined, saveReport: boolean | undefined, reportParameterDto: FalseRecordingsReportParameterDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/ExportFalseRecordingsReport?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (fileType === null)\r\n throw new Error(\"The parameter 'fileType' cannot be null.\");\r\n else if (fileType !== undefined)\r\n url_ += \"fileType=\" + encodeURIComponent(\"\" + fileType) + \"&\";\r\n if (saveReport === null)\r\n throw new Error(\"The parameter 'saveReport' cannot be null.\");\r\n else if (saveReport !== undefined)\r\n url_ += \"saveReport=\" + encodeURIComponent(\"\" + saveReport) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(reportParameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processExportFalseRecordingsReport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExportFalseRecordingsReport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExportFalseRecordingsReport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SavedReportFileDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class FinanceClientPriceModelClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n getFinanceClientPriceModels(clientId: number | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/FinanceClientPriceModel/GetFinanceClientPriceModels?\";\r\n if (clientId !== undefined && clientId !== null)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetFinanceClientPriceModels(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetFinanceClientPriceModels(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetFinanceClientPriceModels(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(FinanceClientPriceModelDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n addFinanceClientPriceModel(clientId: number | undefined, financeClientPriceModel: FinanceClientPriceModelDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/FinanceClientPriceModel/AddFinanceClientPriceModel?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(financeClientPriceModel);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAddFinanceClientPriceModel(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddFinanceClientPriceModel(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddFinanceClientPriceModel(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateFinanceClientPriceModel(financeClientPriceModel: FinanceClientPriceModelDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/FinanceClientPriceModel/UpdateFinanceClientPriceModel\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(financeClientPriceModel);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateFinanceClientPriceModel(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateFinanceClientPriceModel(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateFinanceClientPriceModel(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deleteFinanceClientPriceModel(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/FinanceClientPriceModel/DeleteFinanceClientPriceModel?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeleteFinanceClientPriceModel(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteFinanceClientPriceModel(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteFinanceClientPriceModel(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getAllPriceModels(): Observable {\r\n let url_ = this.baseUrl + \"/api/FinanceClientPriceModel/GetAllPriceModels\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetAllPriceModels(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAllPriceModels(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAllPriceModels(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = FinancePriceModelDataDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class FinanceClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n getFinancialClients(): Observable {\r\n let url_ = this.baseUrl + \"/api/Finance/GetFinancialClients\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetFinancialClients(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetFinancialClients(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetFinancialClients(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(FinancialClientInfoDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getFinancialPriceReportForClient(clientId: number | undefined, month: DateTime | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Finance/GetFinancialPriceReportForClient?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (month === null)\r\n throw new Error(\"The parameter 'month' cannot be null.\");\r\n else if (month !== undefined)\r\n url_ += \"month=\" + encodeURIComponent(month ? \"\" + month.toString() : \"\") + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetFinancialPriceReportForClient(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetFinancialPriceReportForClient(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetFinancialPriceReportForClient(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ClientFinancialPriceReportDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getFinancialParkingSessionsForClient(clientId: number | undefined, month: DateTime | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Finance/GetFinancialParkingSessionsForClient?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (month === null)\r\n throw new Error(\"The parameter 'month' cannot be null.\");\r\n else if (month !== undefined)\r\n url_ += \"month=\" + encodeURIComponent(month ? \"\" + month.toString() : \"\") + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetFinancialParkingSessionsForClient(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetFinancialParkingSessionsForClient(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetFinancialParkingSessionsForClient(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(FinancialParkingSessionDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class MobileUserClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n registerMobileUser(registerInfo: RegisterMobileUserInfoDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/MobileUser/RegisterMobileUser\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(registerInfo);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processRegisterMobileUser(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRegisterMobileUser(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRegisterMobileUser(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = RegisterMobileUserResultDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n requestParkingRangerLinkToUser(dto: RequestParkingRangerLinkToUserDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/MobileUser/RequestParkingRangerLinkToUser\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processRequestParkingRangerLinkToUser(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRequestParkingRangerLinkToUser(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRequestParkingRangerLinkToUser(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n commitParkingRangerLinkRequest(dto: CommitParkingRangerLinkRequestDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/MobileUser/CommitParkingRangerLinkRequest\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCommitParkingRangerLinkRequest(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCommitParkingRangerLinkRequest(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCommitParkingRangerLinkRequest(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n unlinkUser(): Observable {\r\n let url_ = this.baseUrl + \"/api/MobileUser/UnlinkUser\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUnlinkUser(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUnlinkUser(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUnlinkUser(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n unlinkParkingRanger(dto: UnlinkParkingRangerDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/MobileUser/UnlinkParkingRanger\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUnlinkParkingRanger(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUnlinkParkingRanger(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUnlinkParkingRanger(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ParkerCompanyClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n createParkerCompany(companyDto: CreateParkerCompanyDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerCompany/CreateParkerCompany\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(companyDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCreateParkerCompany(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateParkerCompany(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateParkerCompany(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkerCompanyDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n searchParkerCompanies(clientId: number | undefined, filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerCompany/SearchParkerCompanies?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchParkerCompanies(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchParkerCompanies(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchParkerCompanies(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfParkerCompanyDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateParkerCompany(updateCompany: UpdateParkerCompanyDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerCompany/UpdateParkerCompany\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(updateCompany);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateParkerCompany(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateParkerCompany(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateParkerCompany(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkerCompanyDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deleteParkerCompany(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerCompany/DeleteParkerCompany?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeleteParkerCompany(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteParkerCompany(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteParkerCompany(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ParkerClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n createParker(parkerDto: CreateParkerDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Parker/CreateParker\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(parkerDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCreateParker(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateParker(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateParker(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkerDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n searchParkers(clientId: number | undefined, filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined, includeListElements: boolean | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Parker/SearchParkers?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n if (includeListElements === null)\r\n throw new Error(\"The parameter 'includeListElements' cannot be null.\");\r\n else if (includeListElements !== undefined)\r\n url_ += \"includeListElements=\" + encodeURIComponent(\"\" + includeListElements) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchParkers(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchParkers(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchParkers(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfParkerDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getParker(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Parker/GetParker?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetParker(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetParker(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetParker(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkerDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getAllParkers(skip: number | undefined, take: number | undefined, isoChangeDateTimeUtc: string | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Parker/GetAllParkers?\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (isoChangeDateTimeUtc !== undefined && isoChangeDateTimeUtc !== null)\r\n url_ += \"isoChangeDateTimeUtc=\" + encodeURIComponent(\"\" + isoChangeDateTimeUtc) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetAllParkers(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAllParkers(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAllParkers(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ParkerLimitedDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateParker(updateParker: UpdateParkerDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Parker/UpdateParker\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(updateParker);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateParker(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateParker(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateParker(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkerDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n setParkerStatus(parkerStatusDTO: SetParkerStatusDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Parker/SetParkerStatus\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(parkerStatusDTO);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSetParkerStatus(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetParkerStatus(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetParkerStatus(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkerDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deleteParker(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Parker/DeleteParker?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeleteParker(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteParker(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteParker(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n initializeParkerToUserLink(parkerId: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Parker/InitializeParkerToUserLink?\";\r\n if (parkerId === null)\r\n throw new Error(\"The parameter 'parkerId' cannot be null.\");\r\n else if (parkerId !== undefined)\r\n url_ += \"parkerId=\" + encodeURIComponent(\"\" + parkerId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processInitializeParkerToUserLink(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processInitializeParkerToUserLink(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processInitializeParkerToUserLink(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n linkParkerToUser(dto: LinkParkerToUserDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Parker/LinkParkerToUser\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processLinkParkerToUser(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processLinkParkerToUser(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processLinkParkerToUser(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkerDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n unlinkParkerFromUser(parkerId: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Parker/UnlinkParkerFromUser?\";\r\n if (parkerId === null)\r\n throw new Error(\"The parameter 'parkerId' cannot be null.\");\r\n else if (parkerId !== undefined)\r\n url_ += \"parkerId=\" + encodeURIComponent(\"\" + parkerId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUnlinkParkerFromUser(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUnlinkParkerFromUser(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUnlinkParkerFromUser(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n setFavoriteSubscriptionAssignments(parkerId: number | undefined, favoriteSubscriptionAssignmentsDto: SetFavoriteSubscriptionAssignmentsDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Parker/SetFavoriteSubscriptionAssignments?\";\r\n if (parkerId === null)\r\n throw new Error(\"The parameter 'parkerId' cannot be null.\");\r\n else if (parkerId !== undefined)\r\n url_ += \"parkerId=\" + encodeURIComponent(\"\" + parkerId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(favoriteSubscriptionAssignmentsDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSetFavoriteSubscriptionAssignments(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetFavoriteSubscriptionAssignments(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetFavoriteSubscriptionAssignments(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ParkerExtractReportClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n searchParkerExtractReportData(clientId: number | undefined, parkerExtractReportParameterDto: ParkerExtractReportParameterDTO, skip: number | undefined, take: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/SearchParkerExtractReportData?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(parkerExtractReportParameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchParkerExtractReportData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchParkerExtractReportData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchParkerExtractReportData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfParkerExtractReportDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n exportParkerExtractReport(clientId: number | undefined, fileType: ReportFileType | undefined, saveReport: boolean | undefined, parkerExtractReportParameterDto: ParkerExtractReportParameterDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/ExportParkerExtractReport?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (fileType === null)\r\n throw new Error(\"The parameter 'fileType' cannot be null.\");\r\n else if (fileType !== undefined)\r\n url_ += \"fileType=\" + encodeURIComponent(\"\" + fileType) + \"&\";\r\n if (saveReport === null)\r\n throw new Error(\"The parameter 'saveReport' cannot be null.\");\r\n else if (saveReport !== undefined)\r\n url_ += \"saveReport=\" + encodeURIComponent(\"\" + saveReport) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(parkerExtractReportParameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processExportParkerExtractReport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExportParkerExtractReport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExportParkerExtractReport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SavedReportFileDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n summarizeParkerExtractReport(clientId: number | undefined, parkerExtractReportParameterDto: ParkerExtractReportParameterDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/SummarizeParkerExtractReport?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(parkerExtractReportParameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSummarizeParkerExtractReport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSummarizeParkerExtractReport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSummarizeParkerExtractReport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkerExtractReportSummaryDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ParkerRegistrationClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n getRegistration(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/GetRegistration?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetRegistration(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetRegistration(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetRegistration(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkerRegistrationDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getExtendedRegistration(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/GetExtendedRegistration?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetExtendedRegistration(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetExtendedRegistration(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetExtendedRegistration(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkerRegistrationWithParkerInfoDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n searchRegistrations(clientId: number | undefined, filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/SearchRegistrations?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchRegistrations(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchRegistrations(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchRegistrations(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfParkerRegistrationWithParkerInfoDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n addParkingRangerCheckRegistration(addDto: CheckParkingRangerRegistrationDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/AddParkingRangerCheckRegistration\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(addDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAddParkingRangerCheckRegistration(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddParkingRangerCheckRegistration(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddParkingRangerCheckRegistration(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingRangerCheckRegistrationResultDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n addParkingRangerCheckNonTaggedRegistration(addDto: CheckParkingRangerNonTaggedRegistrationDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/AddParkingRangerCheckNonTaggedRegistration\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(addDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAddParkingRangerCheckNonTaggedRegistration(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddParkingRangerCheckNonTaggedRegistration(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddParkingRangerCheckNonTaggedRegistration(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingRangerCheckRegistrationResultDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n addNonTaggedRegistration(addDto: AddNonTaggedRegistrationDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/AddNonTaggedRegistration\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(addDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAddNonTaggedRegistration(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddNonTaggedRegistration(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddNonTaggedRegistration(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateParkingRangerCheckRegistration(updateDto: UpdateParkerRegistrationDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/UpdateParkingRangerCheckRegistration\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(updateDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateParkingRangerCheckRegistration(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateParkingRangerCheckRegistration(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateParkingRangerCheckRegistration(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n calculateParkingPrice(dto: CalculateParkingPriceDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/CalculateParkingPrice\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCalculateParkingPrice(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCalculateParkingPrice(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCalculateParkingPrice(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CalculateParkingPriceResultDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n calculateForeignParkingPrice(dto: CalculateForeignParkingPriceDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/CalculateForeignParkingPrice\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCalculateForeignParkingPrice(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCalculateForeignParkingPrice(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCalculateForeignParkingPrice(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CalculateParkingPriceResultDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n startForeignParkingPaymentProcess(dto: StartForeignParkingPaymentProcessDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/StartForeignParkingPaymentProcess\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processStartForeignParkingPaymentProcess(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processStartForeignParkingPaymentProcess(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processStartForeignParkingPaymentProcess(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = StartForeignParkingPaymentProcessResponseDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n checkinUserForeignParking(checkinDto: CheckinUserForeignParkingDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/CheckinUserForeignParking\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(checkinDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCheckinUserForeignParking(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCheckinUserForeignParking(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCheckinUserForeignParking(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? CheckinUserParkingRegistrationDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n calculateVisitorParkingCardPrice(dto: CalculateVisitorParkingCardPriceDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/CalculateVisitorParkingCardPrice\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCalculateVisitorParkingCardPrice(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCalculateVisitorParkingCardPrice(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCalculateVisitorParkingCardPrice(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CalculateVisitorParkingCardPriceResultDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n assignParkingCardToVisitor(dto: AssignParkingCardToVisitorDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/AssignParkingCardToVisitor\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAssignParkingCardToVisitor(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAssignParkingCardToVisitor(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAssignParkingCardToVisitor(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingCardDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n checkinUserParking(checkinDto: CheckinUserParkingDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/CheckinUserParking\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(checkinDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCheckinUserParking(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCheckinUserParking(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCheckinUserParking(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CheckinUserParkingRegistrationDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n checkoutUserParking(checkoutDto: CheckoutUserParkingDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/CheckoutUserParking\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(checkoutDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCheckoutUserParking(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCheckoutUserParking(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCheckoutUserParking(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? CheckoutUserParkingResultDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n calculateParkingExtensionPrice(dto: CalculateExtendUserParkingDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/CalculateParkingExtensionPrice\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCalculateParkingExtensionPrice(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCalculateParkingExtensionPrice(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCalculateParkingExtensionPrice(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CalculateParkingExtensionPriceResultDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n startParkingExtensionPaymentProcess(dto: StartParkingExtensionPaymentProcessDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/StartParkingExtensionPaymentProcess\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processStartParkingExtensionPaymentProcess(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processStartParkingExtensionPaymentProcess(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processStartParkingExtensionPaymentProcess(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? StartParkingExtensionPaymentProcessResponseDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n extendUserParkingSession(dto: ExtendUserParkingDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/ExtendUserParkingSession\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processExtendUserParkingSession(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExtendUserParkingSession(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExtendUserParkingSession(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? ExtendUserParkingResultDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getRegistrationImage(registrationId: number | undefined, mediaId: string | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/GetRegistrationImage?\";\r\n if (registrationId === null)\r\n throw new Error(\"The parameter 'registrationId' cannot be null.\");\r\n else if (registrationId !== undefined)\r\n url_ += \"registrationId=\" + encodeURIComponent(\"\" + registrationId) + \"&\";\r\n if (mediaId === null)\r\n throw new Error(\"The parameter 'mediaId' cannot be null.\");\r\n else if (mediaId !== undefined)\r\n url_ += \"mediaId=\" + encodeURIComponent(\"\" + mediaId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetRegistrationImage(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetRegistrationImage(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetRegistrationImage(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 !== undefined ? resultData200 : null;\r\n \r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n addRegistrationImage(addDto: AddRegistrationImageDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/AddRegistrationImage\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(addDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAddRegistrationImage(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddRegistrationImage(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddRegistrationImage(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 !== undefined ? resultData200 : null;\r\n \r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateRegistrationImage(updateDto: UpdateRegistrationImage): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/UpdateRegistrationImage\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(updateDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateRegistrationImage(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateRegistrationImage(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateRegistrationImage(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deleteRegistrationImage(deleteDto: DeleteRegistrationImageDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/DeleteRegistrationImage\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(deleteDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeleteRegistrationImage(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteRegistrationImage(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteRegistrationImage(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n recalculateParkingSession(sessionId: number | undefined, newSubscriptionId: number | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerRegistration/RecalculateParkingSession?\";\r\n if (sessionId === null)\r\n throw new Error(\"The parameter 'sessionId' cannot be null.\");\r\n else if (sessionId !== undefined)\r\n url_ += \"sessionId=\" + encodeURIComponent(\"\" + sessionId) + \"&\";\r\n if (newSubscriptionId !== undefined && newSubscriptionId !== null)\r\n url_ += \"newSubscriptionId=\" + encodeURIComponent(\"\" + newSubscriptionId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processRecalculateParkingSession(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRecalculateParkingSession(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRecalculateParkingSession(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ParkerRegistrationReportClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n searchParkerRegistrationsReportData(clientId: number | undefined, reportParameterDto: ParkerRegistrationsReportParameterDTO, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/SearchParkerRegistrationsReportData?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(reportParameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchParkerRegistrationsReportData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchParkerRegistrationsReportData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchParkerRegistrationsReportData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfParkerRegistrationReportDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n exportParkerRegistrationsReport(clientId: number | undefined, fileType: ReportFileType | undefined, saveReport: boolean | undefined, reportParameterDto: ParkerRegistrationsReportParameterDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/ExportParkerRegistrationsReport?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (fileType === null)\r\n throw new Error(\"The parameter 'fileType' cannot be null.\");\r\n else if (fileType !== undefined)\r\n url_ += \"fileType=\" + encodeURIComponent(\"\" + fileType) + \"&\";\r\n if (saveReport === null)\r\n throw new Error(\"The parameter 'saveReport' cannot be null.\");\r\n else if (saveReport !== undefined)\r\n url_ += \"saveReport=\" + encodeURIComponent(\"\" + saveReport) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(reportParameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processExportParkerRegistrationsReport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExportParkerRegistrationsReport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExportParkerRegistrationsReport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SavedReportFileDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ParkerTagClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n isIdentificationCodeAlreadyInUse(clientId: number | undefined, identificationCode: string | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerTag/IsIdentificationCodeAlreadyInUse?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (identificationCode === null)\r\n throw new Error(\"The parameter 'identificationCode' cannot be null.\");\r\n else if (identificationCode !== undefined)\r\n url_ += \"identificationCode=\" + encodeURIComponent(\"\" + identificationCode) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processIsIdentificationCodeAlreadyInUse(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processIsIdentificationCodeAlreadyInUse(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processIsIdentificationCodeAlreadyInUse(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 !== undefined ? resultData200 : null;\r\n \r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n searchTags(clientId: number | undefined, filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerTag/SearchTags?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchTags(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchTags(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchTags(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfParkerTagDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getAllTags(skip: number | undefined, take: number | undefined, isoChangeDateTimeUtc: string | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkerTag/GetAllTags?\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (isoChangeDateTimeUtc !== undefined && isoChangeDateTimeUtc !== null)\r\n url_ += \"isoChangeDateTimeUtc=\" + encodeURIComponent(\"\" + isoChangeDateTimeUtc) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetAllTags(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAllTags(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAllTags(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ParkerTagDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ParkerTurnoverReportClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n searchParkerTurnoverReportData(clientId: number | undefined, reportParameterDto: ParkerTurnoverReportParameterDTO, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/SearchParkerTurnoverReportData?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(reportParameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchParkerTurnoverReportData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchParkerTurnoverReportData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchParkerTurnoverReportData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfParkerTurnoverReportDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n exportParkerTurnoverReport(clientId: number | undefined, fileType: ReportFileType | undefined, saveReport: boolean | undefined, reportParameterDto: ParkerTurnoverReportParameterDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/ExportParkerTurnoverReport?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (fileType === null)\r\n throw new Error(\"The parameter 'fileType' cannot be null.\");\r\n else if (fileType !== undefined)\r\n url_ += \"fileType=\" + encodeURIComponent(\"\" + fileType) + \"&\";\r\n if (saveReport === null)\r\n throw new Error(\"The parameter 'saveReport' cannot be null.\");\r\n else if (saveReport !== undefined)\r\n url_ += \"saveReport=\" + encodeURIComponent(\"\" + saveReport) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(reportParameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processExportParkerTurnoverReport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExportParkerTurnoverReport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExportParkerTurnoverReport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SavedReportFileDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n summarizeParkerTurnoverReport(clientId: number | undefined, reportParameterDto: ParkerTurnoverReportParameterDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/SummarizeParkerTurnoverReport?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(reportParameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSummarizeParkerTurnoverReport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSummarizeParkerTurnoverReport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSummarizeParkerTurnoverReport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkerTurnoverReportSummaryDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ParkingCardClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n createParkingCard(parkingCardDto: CreateParkingCardDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingCard/CreateParkingCard\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(parkingCardDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCreateParkingCard(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateParkingCard(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateParkingCard(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingCardDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n searchParkingCards(filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined, issuedToMe: boolean | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingCard/SearchParkingCards?\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n if (issuedToMe !== undefined && issuedToMe !== null)\r\n url_ += \"issuedToMe=\" + encodeURIComponent(\"\" + issuedToMe) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchParkingCards(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchParkingCards(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchParkingCards(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfParkingCardDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateParkingCard(parkingCardDto: UpdateParkingCardDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingCard/UpdateParkingCard\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(parkingCardDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateParkingCard(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateParkingCard(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateParkingCard(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingCardDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n revokeParkingCard(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingCard/RevokeParkingCard?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processRevokeParkingCard(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRevokeParkingCard(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRevokeParkingCard(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ParkingClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n getParkingOffendersForClient(clientId: number | undefined, startTime: DateTime | undefined, skip: number | undefined, take: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Parking/GetParkingOffendersForClient?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (startTime === null)\r\n throw new Error(\"The parameter 'startTime' cannot be null.\");\r\n else if (startTime !== undefined)\r\n url_ += \"startTime=\" + encodeURIComponent(startTime ? \"\" + startTime.toString() : \"\") + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetParkingOffendersForClient(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetParkingOffendersForClient(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetParkingOffendersForClient(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ParkingEntryDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getParkingEntriesForSession(parkingRangerSessionId: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Parking/GetParkingEntriesForSession?\";\r\n if (parkingRangerSessionId === null)\r\n throw new Error(\"The parameter 'parkingRangerSessionId' cannot be null.\");\r\n else if (parkingRangerSessionId !== undefined)\r\n url_ += \"parkingRangerSessionId=\" + encodeURIComponent(\"\" + parkingRangerSessionId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetParkingEntriesForSession(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetParkingEntriesForSession(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetParkingEntriesForSession(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ParkingEntryDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n searchParkingSessions(clientId: number | undefined, filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Parking/SearchParkingSessions?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchParkingSessions(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchParkingSessions(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchParkingSessions(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfParkingSessionDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getParkingProcessInfo(): Observable {\r\n let url_ = this.baseUrl + \"/api/Parking/GetParkingProcessInfo\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetParkingProcessInfo(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetParkingProcessInfo(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetParkingProcessInfo(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingProcessInfoDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getParkingProcessInfos(): Observable {\r\n let url_ = this.baseUrl + \"/api/Parking/GetParkingProcessInfos\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetParkingProcessInfos(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetParkingProcessInfos(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetParkingProcessInfos(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ParkingProcessInfoDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getParkingProcessZoneInfos(clientId: number | undefined, includeForeignParkingZones: boolean | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Parking/GetParkingProcessZoneInfos?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (includeForeignParkingZones === null)\r\n throw new Error(\"The parameter 'includeForeignParkingZones' cannot be null.\");\r\n else if (includeForeignParkingZones !== undefined)\r\n url_ += \"includeForeignParkingZones=\" + encodeURIComponent(\"\" + includeForeignParkingZones) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetParkingProcessZoneInfos(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetParkingProcessZoneInfos(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetParkingProcessZoneInfos(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ParkingProcessZoneInfoDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getParkingProcessZoneInfo(zoneId: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Parking/GetParkingProcessZoneInfo?\";\r\n if (zoneId === null)\r\n throw new Error(\"The parameter 'zoneId' cannot be null.\");\r\n else if (zoneId !== undefined)\r\n url_ += \"zoneId=\" + encodeURIComponent(\"\" + zoneId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetParkingProcessZoneInfo(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetParkingProcessZoneInfo(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetParkingProcessZoneInfo(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingProcessZoneInfoDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getParkingSessionIdsForParker(dto: GetParkingSessionIdsForParkerDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Parking/GetParkingSessionIdsForParker\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetParkingSessionIdsForParker(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetParkingSessionIdsForParker(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetParkingSessionIdsForParker(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ParkingSessionInfoShortDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n adjustSessionStartTime(dto: AdjustSessionStartTimeDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Parking/AdjustSessionStartTime\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAdjustSessionStartTime(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAdjustSessionStartTime(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAdjustSessionStartTime(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingSessionDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n adjustSessionEndTime(dto: AdjustSessionEndTimeDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Parking/AdjustSessionEndTime\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAdjustSessionEndTime(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAdjustSessionEndTime(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAdjustSessionEndTime(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingSessionDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ParkingRangerSessionClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n getSession(sessionId: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingRangerSession/GetSession?\";\r\n if (sessionId === null)\r\n throw new Error(\"The parameter 'sessionId' cannot be null.\");\r\n else if (sessionId !== undefined)\r\n url_ += \"sessionId=\" + encodeURIComponent(\"\" + sessionId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetSession(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetSession(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetSession(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingRangerSessionDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getSessionFullyExpanded(sessionId: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingRangerSession/GetSessionFullyExpanded?\";\r\n if (sessionId === null)\r\n throw new Error(\"The parameter 'sessionId' cannot be null.\");\r\n else if (sessionId !== undefined)\r\n url_ += \"sessionId=\" + encodeURIComponent(\"\" + sessionId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetSessionFullyExpanded(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetSessionFullyExpanded(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetSessionFullyExpanded(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ExtendedParkingRangerSessionDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getActiveSession(): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingRangerSession/GetActiveSession\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetActiveSession(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetActiveSession(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetActiveSession(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingRangerSessionDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n searchSessions(clientId: number | undefined, filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingRangerSession/SearchSessions?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchSessions(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchSessions(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchSessions(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfParkingRangerSessionDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n createAndStartSession(createDto: CreateParkingRangerSessionDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingRangerSession/CreateAndStartSession\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(createDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCreateAndStartSession(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateAndStartSession(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateAndStartSession(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingRangerSessionDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateSession(updateDto: UpdateParkingRangerSessionDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingRangerSession/UpdateSession\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(updateDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateSession(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateSession(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateSession(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n terminateSession(sessionId: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingRangerSession/TerminateSession?\";\r\n if (sessionId === null)\r\n throw new Error(\"The parameter 'sessionId' cannot be null.\");\r\n else if (sessionId !== undefined)\r\n url_ += \"sessionId=\" + encodeURIComponent(\"\" + sessionId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processTerminateSession(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTerminateSession(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTerminateSession(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deleteSession(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingRangerSession/DeleteSession?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeleteSession(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteSession(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteSession(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ParkingSubscriptionClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n getParkingSubscription(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingSubscription/GetParkingSubscription?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetParkingSubscription(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetParkingSubscription(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetParkingSubscription(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingSubscriptionDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n createParkingSubscription(createParkingSubscriptionDto: CreateParkingSubscriptionDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingSubscription/CreateParkingSubscription\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(createParkingSubscriptionDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCreateParkingSubscription(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateParkingSubscription(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateParkingSubscription(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingSubscriptionDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n searchParkingSubscriptions(clientId: number | undefined, filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingSubscription/SearchParkingSubscriptions?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchParkingSubscriptions(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchParkingSubscriptions(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchParkingSubscriptions(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? PagedResultDTOOfParkingSubscriptionDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateParkingSubscription(updateParkingSubscription: UpdateParkingSubscriptionDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingSubscription/UpdateParkingSubscription\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(updateParkingSubscription);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateParkingSubscription(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateParkingSubscription(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateParkingSubscription(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingSubscriptionDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deleteParkingSubscription(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingSubscription/DeleteParkingSubscription?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeleteParkingSubscription(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteParkingSubscription(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteParkingSubscription(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n moveSubscriptionToNewTariff(subscriptionId: number | undefined, oldTariffId: number | null | undefined, newTariffId: number | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingSubscription/MoveSubscriptionToNewTariff?\";\r\n if (subscriptionId === null)\r\n throw new Error(\"The parameter 'subscriptionId' cannot be null.\");\r\n else if (subscriptionId !== undefined)\r\n url_ += \"subscriptionId=\" + encodeURIComponent(\"\" + subscriptionId) + \"&\";\r\n if (oldTariffId !== undefined && oldTariffId !== null)\r\n url_ += \"oldTariffId=\" + encodeURIComponent(\"\" + oldTariffId) + \"&\";\r\n if (newTariffId !== undefined && newTariffId !== null)\r\n url_ += \"newTariffId=\" + encodeURIComponent(\"\" + newTariffId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processMoveSubscriptionToNewTariff(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processMoveSubscriptionToNewTariff(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processMoveSubscriptionToNewTariff(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingSubscriptionDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n moveToStructuralEntry(subscriptionId: number | undefined, fromStructuralEntryId: number | null | undefined, toStructuralEntryId: number | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingSubscription/MoveToStructuralEntry?\";\r\n if (subscriptionId === null)\r\n throw new Error(\"The parameter 'subscriptionId' cannot be null.\");\r\n else if (subscriptionId !== undefined)\r\n url_ += \"subscriptionId=\" + encodeURIComponent(\"\" + subscriptionId) + \"&\";\r\n if (fromStructuralEntryId !== undefined && fromStructuralEntryId !== null)\r\n url_ += \"fromStructuralEntryId=\" + encodeURIComponent(\"\" + fromStructuralEntryId) + \"&\";\r\n if (toStructuralEntryId !== undefined && toStructuralEntryId !== null)\r\n url_ += \"toStructuralEntryId=\" + encodeURIComponent(\"\" + toStructuralEntryId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processMoveToStructuralEntry(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processMoveToStructuralEntry(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processMoveToStructuralEntry(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingSubscriptionDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n addToStructuralEntry(subscriptionId: number | undefined, structuralEntryId: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingSubscription/AddToStructuralEntry?\";\r\n if (subscriptionId === null)\r\n throw new Error(\"The parameter 'subscriptionId' cannot be null.\");\r\n else if (subscriptionId !== undefined)\r\n url_ += \"subscriptionId=\" + encodeURIComponent(\"\" + subscriptionId) + \"&\";\r\n if (structuralEntryId === null)\r\n throw new Error(\"The parameter 'structuralEntryId' cannot be null.\");\r\n else if (structuralEntryId !== undefined)\r\n url_ += \"structuralEntryId=\" + encodeURIComponent(\"\" + structuralEntryId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAddToStructuralEntry(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddToStructuralEntry(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddToStructuralEntry(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingSubscriptionDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n removeFromStructuralEntry(subscriptionId: number | undefined, structuralEntryId: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingSubscription/RemoveFromStructuralEntry?\";\r\n if (subscriptionId === null)\r\n throw new Error(\"The parameter 'subscriptionId' cannot be null.\");\r\n else if (subscriptionId !== undefined)\r\n url_ += \"subscriptionId=\" + encodeURIComponent(\"\" + subscriptionId) + \"&\";\r\n if (structuralEntryId === null)\r\n throw new Error(\"The parameter 'structuralEntryId' cannot be null.\");\r\n else if (structuralEntryId !== undefined)\r\n url_ += \"structuralEntryId=\" + encodeURIComponent(\"\" + structuralEntryId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processRemoveFromStructuralEntry(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRemoveFromStructuralEntry(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRemoveFromStructuralEntry(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingSubscriptionDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n isParkingSubscriptionUsedInSessions(subscriptionId: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingSubscription/IsParkingSubscriptionUsedInSessions?\";\r\n if (subscriptionId === null)\r\n throw new Error(\"The parameter 'subscriptionId' cannot be null.\");\r\n else if (subscriptionId !== undefined)\r\n url_ += \"subscriptionId=\" + encodeURIComponent(\"\" + subscriptionId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processIsParkingSubscriptionUsedInSessions(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processIsParkingSubscriptionUsedInSessions(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processIsParkingSubscriptionUsedInSessions(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 !== undefined ? resultData200 : null;\r\n \r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ParkingTariffClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n getParkingTariff(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingTariff/GetParkingTariff?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetParkingTariff(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetParkingTariff(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetParkingTariff(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingTariffDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getParkingTariffsForZone(zoneId: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingTariff/GetParkingTariffsForZone?\";\r\n if (zoneId === null)\r\n throw new Error(\"The parameter 'zoneId' cannot be null.\");\r\n else if (zoneId !== undefined)\r\n url_ += \"zoneId=\" + encodeURIComponent(\"\" + zoneId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetParkingTariffsForZone(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetParkingTariffsForZone(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetParkingTariffsForZone(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ParkingTariffDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n createParkingTariff(createParkingTariffDto: CreateParkingTariffDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingTariff/CreateParkingTariff\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(createParkingTariffDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCreateParkingTariff(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateParkingTariff(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateParkingTariff(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? ParkingTariffDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n searchParkingTariffs(clientId: number | undefined, filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined, includeListElements: boolean | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingTariff/SearchParkingTariffs?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n if (includeListElements === null)\r\n throw new Error(\"The parameter 'includeListElements' cannot be null.\");\r\n else if (includeListElements !== undefined)\r\n url_ += \"includeListElements=\" + encodeURIComponent(\"\" + includeListElements) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchParkingTariffs(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchParkingTariffs(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchParkingTariffs(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? PagedResultDTOOfParkingTariffLimitedDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateParkingTariff(updateParkingTariff: UpdateParkingTariffDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingTariff/UpdateParkingTariff\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(updateParkingTariff);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateParkingTariff(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateParkingTariff(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateParkingTariff(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? ParkingTariffDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deleteParkingTariff(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingTariff/DeleteParkingTariff?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeleteParkingTariff(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteParkingTariff(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteParkingTariff(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n assignNewSubscriptionToTariff(id: number | undefined, subscriptionId: number | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingTariff/AssignNewSubscriptionToTariff?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n if (subscriptionId !== undefined && subscriptionId !== null)\r\n url_ += \"subscriptionId=\" + encodeURIComponent(\"\" + subscriptionId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAssignNewSubscriptionToTariff(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAssignNewSubscriptionToTariff(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAssignNewSubscriptionToTariff(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n moveTariffToNewZone(id: number | undefined, oldZoneId: number | null | undefined, newZoneId: number | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ParkingTariff/MoveTariffToNewZone?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n if (oldZoneId !== undefined && oldZoneId !== null)\r\n url_ += \"oldZoneId=\" + encodeURIComponent(\"\" + oldZoneId) + \"&\";\r\n if (newZoneId !== undefined && newZoneId !== null)\r\n url_ += \"newZoneId=\" + encodeURIComponent(\"\" + newZoneId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processMoveTariffToNewZone(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processMoveTariffToNewZone(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processMoveTariffToNewZone(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ParkingTariffDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class PaymentManagementClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n getAllPaymentAlias(): Observable {\r\n let url_ = this.baseUrl + \"/api/PaymentManagement/GetAllPaymentAlias\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetAllPaymentAlias(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAllPaymentAlias(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAllPaymentAlias(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(PaymentAliasDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deletePaymentAlias(dto: DeletePaymentAliasDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/PaymentManagement/DeletePaymentAlias\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeletePaymentAlias(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeletePaymentAlias(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeletePaymentAlias(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n addPaymentAlias(dto: AddPaymentAliasDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/PaymentManagement/AddPaymentAlias\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAddPaymentAlias(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddPaymentAlias(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddPaymentAlias(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? AddPaymentAliasResultDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n notifyAddPaymentAliasFinished(dto: NotifyAddPaymentAliasFinishedDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/PaymentManagement/NotifyAddPaymentAliasFinished\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processNotifyAddPaymentAliasFinished(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processNotifyAddPaymentAliasFinished(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processNotifyAddPaymentAliasFinished(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? PaymentAliasDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class PaymentReportClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n searchPaymentReportData(reportParameterDTO: PaymentReportParameterDTO, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/SearchPaymentReportData?\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(reportParameterDTO);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchPaymentReportData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchPaymentReportData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchPaymentReportData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfPaymentReportDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n exportPaymentReport(saveReport: boolean | undefined, reportParameterDto: PaymentReportParameterDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/ExportPaymentReport?\";\r\n if (saveReport === null)\r\n throw new Error(\"The parameter 'saveReport' cannot be null.\");\r\n else if (saveReport !== undefined)\r\n url_ += \"saveReport=\" + encodeURIComponent(\"\" + saveReport) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(reportParameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processExportPaymentReport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExportPaymentReport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExportPaymentReport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SavedReportFileDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ProxyAccessClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n getAllParkers(skip: number | undefined, take: number | undefined, isoChangeDateTimeUtc: string | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ProxyAccess/GetAllParkers?\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (isoChangeDateTimeUtc !== undefined && isoChangeDateTimeUtc !== null)\r\n url_ += \"isoChangeDateTimeUtc=\" + encodeURIComponent(\"\" + isoChangeDateTimeUtc) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetAllParkers(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAllParkers(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAllParkers(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ProxyParkerDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getSyncInfo(): Observable {\r\n let url_ = this.baseUrl + \"/api/ProxyAccess/GetSyncInfo\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetSyncInfo(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetSyncInfo(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetSyncInfo(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ProxySyncInfoDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateSyncInfo(infoDto: ProxySyncInfoDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ProxyAccess/UpdateSyncInfo\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(infoDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateSyncInfo(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateSyncInfo(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateSyncInfo(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateParkers(parkers: ProxyUpdateParkerDTO[]): Observable {\r\n let url_ = this.baseUrl + \"/api/ProxyAccess/UpdateParkers\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(parkers);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateParkers(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateParkers(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateParkers(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ProxyParkerUpdateResponseDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n addProxyTagRegistrations(proxyAddDto: ProxyAddTagRegistrationsDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ProxyAccess/AddProxyTagRegistrations\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(proxyAddDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAddProxyTagRegistrations(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddProxyTagRegistrations(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddProxyTagRegistrations(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n requestAccessByTag(requestDTO: ProxyRequestAccessByTagDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ProxyAccess/RequestAccessByTag\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(requestDTO);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processRequestAccessByTag(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRequestAccessByTag(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRequestAccessByTag(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ProxyRequestAccessByTagResponseDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n registerDeviceCommandExecution(dto: ProxyRegisterDeviceCommandExecutionDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ProxyAccess/RegisterDeviceCommandExecution\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processRegisterDeviceCommandExecution(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRegisterDeviceCommandExecution(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRegisterDeviceCommandExecution(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateZoneDeviceState(deviceStateDto: ProxyUpdateZoneDeviceDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ProxyAccess/UpdateZoneDeviceState\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(deviceStateDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateZoneDeviceState(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateZoneDeviceState(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateZoneDeviceState(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n heartBeat(info: HeartBeatInfoDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ProxyAccess/HeartBeat\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(info);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processHeartBeat(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processHeartBeat(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processHeartBeat(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n importTags(tagDto: ImportTagsDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ProxyAccess/ImportTags\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(tagDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processImportTags(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processImportTags(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processImportTags(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ProxyInfoClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n getClientInfo(): Observable {\r\n let url_ = this.baseUrl + \"/api/ProxyInfo/GetClientInfo\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetClientInfo(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetClientInfo(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetClientInfo(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ClientDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getAllDevices(): Observable {\r\n let url_ = this.baseUrl + \"/api/ProxyInfo/GetAllDevices\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetAllDevices(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAllDevices(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAllDevices(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ProxyZoneDeviceDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getAllCompanies(): Observable {\r\n let url_ = this.baseUrl + \"/api/ProxyInfo/GetAllCompanies\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetAllCompanies(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAllCompanies(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAllCompanies(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ParkerCompanyDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getNextDeviceCommands(maxWaitDuration: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ProxyInfo/GetNextDeviceCommands?\";\r\n if (maxWaitDuration === null)\r\n throw new Error(\"The parameter 'maxWaitDuration' cannot be null.\");\r\n else if (maxWaitDuration !== undefined)\r\n url_ += \"maxWaitDuration=\" + encodeURIComponent(\"\" + maxWaitDuration) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetNextDeviceCommands(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetNextDeviceCommands(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetNextDeviceCommands(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ProxyExecuteCommandDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class SavedReportClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n searchSavedReports(clientId: number | undefined, filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined, includeListElements: boolean | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/SavedReport/SearchSavedReports?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n if (includeListElements === null)\r\n throw new Error(\"The parameter 'includeListElements' cannot be null.\");\r\n else if (includeListElements !== undefined)\r\n url_ += \"includeListElements=\" + encodeURIComponent(\"\" + includeListElements) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchSavedReports(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchSavedReports(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchSavedReports(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? PagedResultDTOOfSavedReportDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getSavedReportFile(clientId: number | undefined, savedReportId: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/SavedReport/GetSavedReportFile?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (savedReportId === null)\r\n throw new Error(\"The parameter 'savedReportId' cannot be null.\");\r\n else if (savedReportId !== undefined)\r\n url_ += \"savedReportId=\" + encodeURIComponent(\"\" + savedReportId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetSavedReportFile(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetSavedReportFile(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetSavedReportFile(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SavedReportFileDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class SystemInfoClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n getMinimumClientVersion(clientId: string | undefined, platform: MobilePlatform | undefined, currentVersion: string | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/SystemInfo/GetMinimumClientVersion?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (platform === null)\r\n throw new Error(\"The parameter 'platform' cannot be null.\");\r\n else if (platform !== undefined)\r\n url_ += \"platform=\" + encodeURIComponent(\"\" + platform) + \"&\";\r\n if (currentVersion === null)\r\n throw new Error(\"The parameter 'currentVersion' cannot be null.\");\r\n else if (currentVersion !== undefined)\r\n url_ += \"currentVersion=\" + encodeURIComponent(\"\" + currentVersion) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetMinimumClientVersion(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetMinimumClientVersion(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetMinimumClientVersion(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = MinimumClientVersionDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class TagMasterClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n searchTagMasters(clientId: number | undefined, filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined, includeListElements: boolean | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/TagMaster/SearchTagMasters?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n if (includeListElements === null)\r\n throw new Error(\"The parameter 'includeListElements' cannot be null.\");\r\n else if (includeListElements !== undefined)\r\n url_ += \"includeListElements=\" + encodeURIComponent(\"\" + includeListElements) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchTagMasters(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchTagMasters(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchTagMasters(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfTagMasterDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deleteTagMasters(ids: number[]): Observable {\r\n let url_ = this.baseUrl + \"/api/TagMaster/DeleteTagMasters\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(ids);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeleteTagMasters(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteTagMasters(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteTagMasters(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class TagsPerParkerReportClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n searchTagsPerParkerReportData(clientId: number | undefined, filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined, includeListElements: boolean | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/SearchTagsPerParkerReportData?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n if (includeListElements === null)\r\n throw new Error(\"The parameter 'includeListElements' cannot be null.\");\r\n else if (includeListElements !== undefined)\r\n url_ += \"includeListElements=\" + encodeURIComponent(\"\" + includeListElements) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchTagsPerParkerReportData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchTagsPerParkerReportData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchTagsPerParkerReportData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfTagsPerParkerReportDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n exportTagsPerParkerReport(clientId: number | undefined, fileType: ReportFileType | undefined, saveReport: boolean | undefined, reportParameterDto: TagsPerParkerReportParameterDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/ExportTagsPerParkerReport?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (fileType === null)\r\n throw new Error(\"The parameter 'fileType' cannot be null.\");\r\n else if (fileType !== undefined)\r\n url_ += \"fileType=\" + encodeURIComponent(\"\" + fileType) + \"&\";\r\n if (saveReport === null)\r\n throw new Error(\"The parameter 'saveReport' cannot be null.\");\r\n else if (saveReport !== undefined)\r\n url_ += \"saveReport=\" + encodeURIComponent(\"\" + saveReport) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(reportParameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processExportTagsPerParkerReport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExportTagsPerParkerReport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExportTagsPerParkerReport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SavedReportFileDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ThirdPartyParkingControlClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n checkLicensePlate(dto: ThirdPartyCheckLicensePlateDTO): Observable {\r\n let url_ = this.baseUrl + \"/ThirdPartyApi/ParkingControl/CheckLicensePlate\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCheckLicensePlate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCheckLicensePlate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCheckLicensePlate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ThirdPartyCheckLicensePlateResultDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class UserAccountClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n info(): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/Info\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processInfo(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processInfo(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processInfo(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UserInfoDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n registerUser(model: CreateUserDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/RegisterUser\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(model);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processRegisterUser(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRegisterUser(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRegisterUser(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = RegisterUserResultDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n searchUsers(filters: FilterDTO[] | undefined, clientId: number | null | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/SearchUsers?\";\r\n if (clientId !== undefined && clientId !== null)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchUsers(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchUsers(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchUsers(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfUserInfoDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n setUserLanguage(language: string | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/SetUserLanguage?\";\r\n if (language === null)\r\n throw new Error(\"The parameter 'language' cannot be null.\");\r\n else if (language !== undefined)\r\n url_ += \"language=\" + encodeURIComponent(\"\" + language) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSetUserLanguage(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetUserLanguage(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetUserLanguage(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateUser(model: UpdateUserInfoDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/UpdateUser\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(model);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateUser(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateUser(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateUser(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UserInfoDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n addParkingRangerUser(model: CreateMobileUserDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/AddParkingRangerUser\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(model);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAddParkingRangerUser(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddParkingRangerUser(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddParkingRangerUser(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UserInfoDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n regenerateAccessCode(userId: string | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/RegenerateAccessCode?\";\r\n if (userId === null)\r\n throw new Error(\"The parameter 'userId' cannot be null.\");\r\n else if (userId !== undefined)\r\n url_ += \"userId=\" + encodeURIComponent(\"\" + userId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processRegenerateAccessCode(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRegenerateAccessCode(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRegenerateAccessCode(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UserInfoDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n addProxyUser(model: CreateProxyUserDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/AddProxyUser\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(model);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAddProxyUser(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddProxyUser(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddProxyUser(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UserInfoDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateProxyUser(model: UpdateProxyUserDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/UpdateProxyUser\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(model);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateProxyUser(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateProxyUser(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateProxyUser(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UserInfoDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n addThirdPartyUser(model: CreateThirdPartyUserDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/AddThirdPartyUser\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(model);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAddThirdPartyUser(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddThirdPartyUser(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddThirdPartyUser(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UserInfoDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateThirdPartyUser(model: UpdateThirdPartyUserDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/UpdateThirdPartyUser\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(model);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateThirdPartyUser(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateThirdPartyUser(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateThirdPartyUser(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UserInfoDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n addUser(model: CreateUserDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/AddUser\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(model);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAddUser(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddUser(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddUser(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UserInfoDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n confirmEmail(userId: string | undefined, code: string | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/ConfirmEmail?\";\r\n if (userId === null)\r\n throw new Error(\"The parameter 'userId' cannot be null.\");\r\n else if (userId !== undefined)\r\n url_ += \"userId=\" + encodeURIComponent(\"\" + userId) + \"&\";\r\n if (code === null)\r\n throw new Error(\"The parameter 'code' cannot be null.\");\r\n else if (code !== undefined)\r\n url_ += \"code=\" + encodeURIComponent(\"\" + code) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processConfirmEmail(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processConfirmEmail(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processConfirmEmail(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n logout(): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/Logout\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/octet-stream\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processLogout(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processLogout(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processLogout(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200 || status === 206) {\r\n const contentDisposition = response.headers ? response.headers.get(\"content-disposition\") : undefined;\r\n let fileNameMatch = contentDisposition ? /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(contentDisposition) : undefined;\r\n let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\r\n if (fileName) {\r\n fileName = decodeURIComponent(fileName);\r\n } else {\r\n fileNameMatch = contentDisposition ? /filename=\"?([^\"]*?)\"?(;|$)/g.exec(contentDisposition) : undefined;\r\n fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\r\n }\r\n return _observableOf({ fileName: fileName, data: responseBlob as any, status: status, headers: _headers });\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n changePassword(model: ChangePasswordDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/ChangePassword\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(model);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/octet-stream\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processChangePassword(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processChangePassword(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processChangePassword(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200 || status === 206) {\r\n const contentDisposition = response.headers ? response.headers.get(\"content-disposition\") : undefined;\r\n let fileNameMatch = contentDisposition ? /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(contentDisposition) : undefined;\r\n let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\r\n if (fileName) {\r\n fileName = decodeURIComponent(fileName);\r\n } else {\r\n fileNameMatch = contentDisposition ? /filename=\"?([^\"]*?)\"?(;|$)/g.exec(contentDisposition) : undefined;\r\n fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\r\n }\r\n return _observableOf({ fileName: fileName, data: responseBlob as any, status: status, headers: _headers });\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n setPassword(model: SetPasswordDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/SetPassword\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(model);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSetPassword(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetPassword(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetPassword(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n forgotPassword(model: ForgotPasswordDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/ForgotPassword\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(model);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processForgotPassword(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processForgotPassword(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processForgotPassword(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deleteUser(): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/DeleteUser\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeleteUser(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteUser(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteUser(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UserDeletionResultDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deleteUserByAdmin(userId: string | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/UserAccount/DeleteUserByAdmin?\";\r\n if (userId === null)\r\n throw new Error(\"The parameter 'userId' cannot be null.\");\r\n else if (userId !== undefined)\r\n url_ += \"userId=\" + encodeURIComponent(\"\" + userId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeleteUserByAdmin(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteUserByAdmin(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteUserByAdmin(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class UserControlPlateClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n getUserControlPlates(): Observable {\r\n let url_ = this.baseUrl + \"/api/UserControlPlate/GetUserControlPlates\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetUserControlPlates(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetUserControlPlates(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetUserControlPlates(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(UserControlPlateDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateUserControlPlates(model: UpdateControlPlatesDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/UserControlPlate/UpdateUserControlPlates\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(model);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateUserControlPlates(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateUserControlPlates(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateUserControlPlates(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(UserControlPlateDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class UserExtractReportClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n searchUserExtractReportData(parameterDto: DateRangeParameterDTO, skip: number | undefined, take: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/SearchUserExtractReportData?\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(parameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchUserExtractReportData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchUserExtractReportData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchUserExtractReportData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PagedResultDTOOfUserExtractReportDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n exportUserExtractReport(fileType: ReportFileType | undefined, saveReport: boolean | undefined, parameterDto: DateRangeParameterDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/ExportUserExtractReport?\";\r\n if (fileType === null)\r\n throw new Error(\"The parameter 'fileType' cannot be null.\");\r\n else if (fileType !== undefined)\r\n url_ += \"fileType=\" + encodeURIComponent(\"\" + fileType) + \"&\";\r\n if (saveReport === null)\r\n throw new Error(\"The parameter 'saveReport' cannot be null.\");\r\n else if (saveReport !== undefined)\r\n url_ += \"saveReport=\" + encodeURIComponent(\"\" + saveReport) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(parameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processExportUserExtractReport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExportUserExtractReport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExportUserExtractReport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SavedReportFileDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n summarizeUserExtractReport(parameterDto: DateRangeParameterDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Reports/SummarizeUserExtractReport\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(parameterDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSummarizeUserExtractReport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSummarizeUserExtractReport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSummarizeUserExtractReport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UserExtractReportSummaryDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ZoneClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n createZone(createZoneDto: CreateZoneDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Zone/CreateZone\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(createZoneDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCreateZone(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateZone(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateZone(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? ZoneDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n searchZones(clientId: number | undefined, filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Zone/SearchZones?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchZones(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchZones(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchZones(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? PagedResultDTOOfZoneDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateZone(updateZoneDto: UpdateZoneDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Zone/UpdateZone\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(updateZoneDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateZone(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateZone(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateZone(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ZoneDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getZone(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Zone/GetZone?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetZone(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetZone(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetZone(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ZoneDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getZoneByBarcodeNumber(clientIdent: string | undefined, id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Zone/GetZoneByBarcodeNumber?\";\r\n if (clientIdent === null)\r\n throw new Error(\"The parameter 'clientIdent' cannot be null.\");\r\n else if (clientIdent !== undefined)\r\n url_ += \"clientIdent=\" + encodeURIComponent(\"\" + clientIdent) + \"&\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetZoneByBarcodeNumber(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetZoneByBarcodeNumber(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetZoneByBarcodeNumber(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? ZoneDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getZoneByNfcCode(nfcCode: string | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Zone/GetZoneByNfcCode?\";\r\n if (nfcCode === null)\r\n throw new Error(\"The parameter 'nfcCode' cannot be null.\");\r\n else if (nfcCode !== undefined)\r\n url_ += \"nfcCode=\" + encodeURIComponent(\"\" + nfcCode) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetZoneByNfcCode(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetZoneByNfcCode(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetZoneByNfcCode(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? ZoneDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getAllZones(): Observable {\r\n let url_ = this.baseUrl + \"/api/Zone/GetAllZones\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetAllZones(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAllZones(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAllZones(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ZoneDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getAllZonesForUser(zoneInfo: GetAllZonesForUserDataDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Zone/GetAllZonesForUser\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(zoneInfo);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetAllZonesForUser(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAllZonesForUser(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAllZonesForUser(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ZoneForUserDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deleteZone(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Zone/DeleteZone?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeleteZone(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteZone(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteZone(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n setCurrentParkerCount(id: number | undefined, parkerCount: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Zone/SetCurrentParkerCount?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n if (parkerCount === null)\r\n throw new Error(\"The parameter 'parkerCount' cannot be null.\");\r\n else if (parkerCount !== undefined)\r\n url_ += \"parkerCount=\" + encodeURIComponent(\"\" + parkerCount) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSetCurrentParkerCount(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetCurrentParkerCount(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetCurrentParkerCount(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ZoneDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n moveZone(id: number | undefined, parentId: number | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/Zone/MoveZone?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n if (parentId !== undefined && parentId !== null)\r\n url_ += \"parentId=\" + encodeURIComponent(\"\" + parentId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processMoveZone(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processMoveZone(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processMoveZone(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ZoneDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n generateQrCode(qrInfos: ZoneQrCodeInfosDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/Zone/GenerateQrCode\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(qrInfos);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGenerateQrCode(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGenerateQrCode(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGenerateQrCode(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GeneratedQrCodesDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ZoneDamageClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n addDamage(createDamageDto: CreateZoneDamageDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDamage/AddDamage\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(createDamageDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAddDamage(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddDamage(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddDamage(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ZoneDamageDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getDamage(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDamage/GetDamage?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetDamage(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetDamage(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetDamage(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ZoneDamageDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getDamages(clientId: number | undefined, skip: number | undefined, take: number | undefined, filterStates: ZoneDamageState | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDamage/GetDamages?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (filterStates === null)\r\n throw new Error(\"The parameter 'filterStates' cannot be null.\");\r\n else if (filterStates !== undefined)\r\n url_ += \"filterStates=\" + encodeURIComponent(\"\" + filterStates) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetDamages(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetDamages(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetDamages(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? PagedResultDTOOfZoneDamageDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n searchDamages(clientId: number | undefined, filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDamage/SearchDamages?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchDamages(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchDamages(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchDamages(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? PagedResultDTOOfZoneDamageDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateDamage(updateDamageDto: UpdateZoneDamageDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDamage/UpdateDamage\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(updateDamageDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateDamage(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateDamage(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateDamage(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? ZoneDamageDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deleteDamage(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDamage/DeleteDamage?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeleteDamage(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteDamage(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteDamage(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getDamageImage(damageId: number | undefined, mediaId: string | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDamage/GetDamageImage?\";\r\n if (damageId === null)\r\n throw new Error(\"The parameter 'damageId' cannot be null.\");\r\n else if (damageId !== undefined)\r\n url_ += \"damageId=\" + encodeURIComponent(\"\" + damageId) + \"&\";\r\n if (mediaId === null)\r\n throw new Error(\"The parameter 'mediaId' cannot be null.\");\r\n else if (mediaId !== undefined)\r\n url_ += \"mediaId=\" + encodeURIComponent(\"\" + mediaId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetDamageImage(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetDamageImage(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetDamageImage(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 !== undefined ? resultData200 : null;\r\n \r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n addDamageImage(addDto: AddZoneDamageImageDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDamage/AddDamageImage\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(addDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processAddDamageImage(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddDamageImage(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddDamageImage(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 !== undefined ? resultData200 : null;\r\n \r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateDamageImage(updateDto: UpdateZoneDamageImageDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDamage/UpdateDamageImage\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(updateDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateDamageImage(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateDamageImage(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateDamageImage(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deleteDamageImage(deleteDto: DeleteZoneDamageImageDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDamage/DeleteDamageImage\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(deleteDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeleteDamageImage(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteDamageImage(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteDamageImage(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class ZoneDeviceClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n getZoneDeviceInitialStructure(deviceType: ZoneDeviceType | undefined, brand: ZoneDeviceBrand | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDevice/GetZoneDeviceInitialStructure?\";\r\n if (deviceType === null)\r\n throw new Error(\"The parameter 'deviceType' cannot be null.\");\r\n else if (deviceType !== undefined)\r\n url_ += \"deviceType=\" + encodeURIComponent(\"\" + deviceType) + \"&\";\r\n if (brand === null)\r\n throw new Error(\"The parameter 'brand' cannot be null.\");\r\n else if (brand !== undefined)\r\n url_ += \"brand=\" + encodeURIComponent(\"\" + brand) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetZoneDeviceInitialStructure(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetZoneDeviceInitialStructure(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetZoneDeviceInitialStructure(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ZoneDeviceDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n createDevice(createDto: CreateZoneDeviceDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDevice/CreateDevice\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(createDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processCreateDevice(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateDevice(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateDevice(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ZoneDeviceDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateDevice(updateDto: UpdateZoneDeviceDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDevice/UpdateDevice\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(updateDto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processUpdateDevice(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateDevice(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateDevice(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ZoneDeviceDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n moveDevice(id: number | undefined, zoneId: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDevice/MoveDevice?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n if (zoneId === null)\r\n throw new Error(\"The parameter 'zoneId' cannot be null.\");\r\n else if (zoneId !== undefined)\r\n url_ += \"zoneId=\" + encodeURIComponent(\"\" + zoneId) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"put\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processMoveDevice(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processMoveDevice(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processMoveDevice(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ZoneDeviceDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n searchDevices(clientId: number | undefined, filters: FilterDTO[] | undefined, skip: number | undefined, take: number | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDevice/SearchDevices?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(filters);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processSearchDevices(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchDevices(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchDevices(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? PagedResultDTOOfZoneDeviceDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getDevice(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDevice/GetDevice?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetDevice(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetDevice(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetDevice(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ZoneDeviceDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getDevices(clientId: number | undefined, skip: number | undefined, take: number | undefined, filterBy: string | undefined, filter: string | undefined, sortBy: string | undefined, sortDirection: SortDirection | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDevice/GetDevices?\";\r\n if (clientId === null)\r\n throw new Error(\"The parameter 'clientId' cannot be null.\");\r\n else if (clientId !== undefined)\r\n url_ += \"clientId=\" + encodeURIComponent(\"\" + clientId) + \"&\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n if (filterBy === null)\r\n throw new Error(\"The parameter 'filterBy' cannot be null.\");\r\n else if (filterBy !== undefined)\r\n url_ += \"filterBy=\" + encodeURIComponent(\"\" + filterBy) + \"&\";\r\n if (filter === null)\r\n throw new Error(\"The parameter 'filter' cannot be null.\");\r\n else if (filter !== undefined)\r\n url_ += \"filter=\" + encodeURIComponent(\"\" + filter) + \"&\";\r\n if (sortBy === null)\r\n throw new Error(\"The parameter 'sortBy' cannot be null.\");\r\n else if (sortBy !== undefined)\r\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\r\n if (sortDirection === null)\r\n throw new Error(\"The parameter 'sortDirection' cannot be null.\");\r\n else if (sortDirection !== undefined)\r\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetDevices(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetDevices(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetDevices(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = resultData200 ? PagedResultDTOOfZoneDeviceDTO.fromJS(resultData200) : null;\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getAllDevices(skip: number | undefined, take: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDevice/GetAllDevices?\";\r\n if (skip === null)\r\n throw new Error(\"The parameter 'skip' cannot be null.\");\r\n else if (skip !== undefined)\r\n url_ += \"skip=\" + encodeURIComponent(\"\" + skip) + \"&\";\r\n if (take === null)\r\n throw new Error(\"The parameter 'take' cannot be null.\");\r\n else if (take !== undefined)\r\n url_ += \"take=\" + encodeURIComponent(\"\" + take) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetAllDevices(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAllDevices(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAllDevices(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ZoneDeviceDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getAvailableDeviceSpecifications(): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDevice/GetAvailableDeviceSpecifications\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetAvailableDeviceSpecifications(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAvailableDeviceSpecifications(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAvailableDeviceSpecifications(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ZoneDeviceSpecificationDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n deleteDevice(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDevice/DeleteDevice?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return this.http.request(\"delete\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeleteDevice(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteDevice(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteDevice(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n executeDeviceCommand(dto: ExecuteZoneDeviceCommandDTO): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDevice/ExecuteDeviceCommand\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(dto);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processExecuteDeviceCommand(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExecuteDeviceCommand(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExecuteDeviceCommand(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return _observableOf(null as any);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getAllCommandableDevicesForCurrentUser(): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDevice/GetAllCommandableDevicesForCurrentUser\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetAllCommandableDevicesForCurrentUser(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAllCommandableDevicesForCurrentUser(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAllCommandableDevicesForCurrentUser(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n if (Array.isArray(resultData200)) {\r\n result200 = [] as any;\r\n for (let item of resultData200)\r\n result200!.push(ZoneDeviceDTO.fromJS(item));\r\n }\r\n else {\r\n result200 = null;\r\n }\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getCommandableDevice(id: number | undefined): Observable {\r\n let url_ = this.baseUrl + \"/api/ZoneDevice/GetCommandableDevice?\";\r\n if (id === null)\r\n throw new Error(\"The parameter 'id' cannot be null.\");\r\n else if (id !== undefined)\r\n url_ += \"id=\" + encodeURIComponent(\"\" + id) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return this.http.request(\"get\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processGetCommandableDevice(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetCommandableDevice(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetCommandableDevice(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ZoneDeviceDTO.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class DetectionHikVisionClient {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"https://localhost:44395\";\r\n }\r\n\r\n deepInView(aNPR_xml: FileParameter[] | null | undefined, licensePlatePicture_jpg: FileParameter[] | null | undefined, detectionPicture_jpg: FileParameter[] | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/Detection/HikVision/DeepInView\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = new FormData();\r\n if (aNPR_xml !== null && aNPR_xml !== undefined)\r\n aNPR_xml.forEach(item_ => content_.append(\"ANPR.xml\", item_.data, item_.fileName ? item_.fileName : \"ANPR.xml\") );\r\n if (licensePlatePicture_jpg !== null && licensePlatePicture_jpg !== undefined)\r\n licensePlatePicture_jpg.forEach(item_ => content_.append(\"licensePlatePicture.jpg\", item_.data, item_.fileName ? item_.fileName : \"licensePlatePicture.jpg\") );\r\n if (detectionPicture_jpg !== null && detectionPicture_jpg !== undefined)\r\n detectionPicture_jpg.forEach(item_ => content_.append(\"detectionPicture.jpg\", item_.data, item_.fileName ? item_.fileName : \"detectionPicture.jpg\") );\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/octet-stream\"\r\n })\r\n };\r\n\r\n return this.http.request(\"post\", url_, options_).pipe(_observableMergeMap((response_ : any) => {\r\n return this.processDeepInView(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeepInView(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeepInView(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200 || status === 206) {\r\n const contentDisposition = response.headers ? response.headers.get(\"content-disposition\") : undefined;\r\n let fileNameMatch = contentDisposition ? /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(contentDisposition) : undefined;\r\n let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\r\n if (fileName) {\r\n fileName = decodeURIComponent(fileName);\r\n } else {\r\n fileNameMatch = contentDisposition ? /filename=\"?([^\"]*?)\"?(;|$)/g.exec(contentDisposition) : undefined;\r\n fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\r\n }\r\n return _observableOf({ fileName: fileName, data: responseBlob as any, status: status, headers: _headers });\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\nexport class UserTokenDTO implements IUserTokenDTO {\r\n access_token?: string | undefined;\r\n token_type?: string | undefined;\r\n username?: string | undefined;\r\n clientId?: string | undefined;\r\n refresh_token?: string | undefined;\r\n refreshTokenExpiresIn!: number;\r\n expires_in!: number;\r\n expires?: string | undefined;\r\n\r\n constructor(data?: IUserTokenDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.access_token = _data[\"access_token\"];\r\n this.token_type = _data[\"token_type\"];\r\n this.username = _data[\"username\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.refresh_token = _data[\"refresh_token\"];\r\n this.refreshTokenExpiresIn = _data[\"refreshTokenExpiresIn\"];\r\n this.expires_in = _data[\"expires_in\"];\r\n this.expires = _data[\"expires\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UserTokenDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UserTokenDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"access_token\"] = this.access_token;\r\n data[\"token_type\"] = this.token_type;\r\n data[\"username\"] = this.username;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"refresh_token\"] = this.refresh_token;\r\n data[\"refreshTokenExpiresIn\"] = this.refreshTokenExpiresIn;\r\n data[\"expires_in\"] = this.expires_in;\r\n data[\"expires\"] = this.expires;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUserTokenDTO {\r\n access_token?: string | undefined;\r\n token_type?: string | undefined;\r\n username?: string | undefined;\r\n clientId?: string | undefined;\r\n refresh_token?: string | undefined;\r\n refreshTokenExpiresIn: number;\r\n expires_in: number;\r\n expires?: string | undefined;\r\n}\r\n\r\nexport class UserLoginDTO implements IUserLoginDTO {\r\n userName?: string | undefined;\r\n password?: string | undefined;\r\n grant_Type!: string;\r\n client_Id?: string | undefined;\r\n client_Secret?: string | undefined;\r\n refresh_Token?: string | undefined;\r\n\r\n constructor(data?: IUserLoginDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.userName = _data[\"userName\"];\r\n this.password = _data[\"password\"];\r\n this.grant_Type = _data[\"grant_Type\"];\r\n this.client_Id = _data[\"client_Id\"];\r\n this.client_Secret = _data[\"client_Secret\"];\r\n this.refresh_Token = _data[\"refresh_Token\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UserLoginDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UserLoginDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"userName\"] = this.userName;\r\n data[\"password\"] = this.password;\r\n data[\"grant_Type\"] = this.grant_Type;\r\n data[\"client_Id\"] = this.client_Id;\r\n data[\"client_Secret\"] = this.client_Secret;\r\n data[\"refresh_Token\"] = this.refresh_Token;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUserLoginDTO {\r\n userName?: string | undefined;\r\n password?: string | undefined;\r\n grant_Type: string;\r\n client_Id?: string | undefined;\r\n client_Secret?: string | undefined;\r\n refresh_Token?: string | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfAutomaticParkingReportDTO implements IPagedResultDTOOfAutomaticParkingReportDTO {\r\n items?: AutomaticParkingReportDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfAutomaticParkingReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(AutomaticParkingReportDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfAutomaticParkingReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfAutomaticParkingReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfAutomaticParkingReportDTO {\r\n items?: AutomaticParkingReportDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class AutomaticParkingReportDTO implements IAutomaticParkingReportDTO {\r\n id!: number;\r\n client?: ClientDTO | undefined;\r\n registeredZone?: ZoneLimitedDTO | undefined;\r\n knownTagId?: number | undefined;\r\n knownTag?: ParkerTagWithParkerInfoDTO | undefined;\r\n firstEntryDateTime!: DateTime;\r\n lastEntryDateTime?: DateTime | undefined;\r\n\r\n constructor(data?: IAutomaticParkingReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.client = _data[\"client\"] ? ClientDTO.fromJS(_data[\"client\"]) : undefined;\r\n this.registeredZone = _data[\"registeredZone\"] ? ZoneLimitedDTO.fromJS(_data[\"registeredZone\"]) : undefined;\r\n this.knownTagId = _data[\"knownTagId\"];\r\n this.knownTag = _data[\"knownTag\"] ? ParkerTagWithParkerInfoDTO.fromJS(_data[\"knownTag\"]) : undefined;\r\n this.firstEntryDateTime = _data[\"firstEntryDateTime\"] ? DateTime.fromISO(_data[\"firstEntryDateTime\"].toString()) : undefined;\r\n this.lastEntryDateTime = _data[\"lastEntryDateTime\"] ? DateTime.fromISO(_data[\"lastEntryDateTime\"].toString()) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AutomaticParkingReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AutomaticParkingReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"client\"] = this.client ? this.client.toJSON() : undefined;\r\n data[\"registeredZone\"] = this.registeredZone ? this.registeredZone.toJSON() : undefined;\r\n data[\"knownTagId\"] = this.knownTagId;\r\n data[\"knownTag\"] = this.knownTag ? this.knownTag.toJSON() : undefined;\r\n data[\"firstEntryDateTime\"] = this.firstEntryDateTime ? this.firstEntryDateTime.toString() : undefined;\r\n data[\"lastEntryDateTime\"] = this.lastEntryDateTime ? this.lastEntryDateTime.toString() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAutomaticParkingReportDTO {\r\n id: number;\r\n client?: ClientDTO | undefined;\r\n registeredZone?: ZoneLimitedDTO | undefined;\r\n knownTagId?: number | undefined;\r\n knownTag?: ParkerTagWithParkerInfoDTO | undefined;\r\n firstEntryDateTime: DateTime;\r\n lastEntryDateTime?: DateTime | undefined;\r\n}\r\n\r\nexport class ClientDTO implements IClientDTO {\r\n id!: number;\r\n address?: string | undefined;\r\n city?: string | undefined;\r\n email?: string | undefined;\r\n name?: string | undefined;\r\n phoneNumber?: string | undefined;\r\n zip?: string | undefined;\r\n dataRetentionPeriodInDays!: number;\r\n clientIdent?: string | undefined;\r\n isActive!: boolean;\r\n qrCodeIdentificationEnabled!: boolean;\r\n automaticParkingSchedulesEnabled!: boolean;\r\n automaticParkingScheduleToleranceInMinutes!: number;\r\n connectionMode!: ConnectionMode;\r\n auditLogEnabled!: boolean;\r\n custom1Name?: string | undefined;\r\n custom2Name?: string | undefined;\r\n custom3Name?: string | undefined;\r\n custom4Name?: string | undefined;\r\n custom5Name?: string | undefined;\r\n custom6Name?: string | undefined;\r\n custom7Name?: string | undefined;\r\n custom8Name?: string | undefined;\r\n custom9Name?: string | undefined;\r\n\r\n constructor(data?: IClientDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.address = _data[\"address\"];\r\n this.city = _data[\"city\"];\r\n this.email = _data[\"email\"];\r\n this.name = _data[\"name\"];\r\n this.phoneNumber = _data[\"phoneNumber\"];\r\n this.zip = _data[\"zip\"];\r\n this.dataRetentionPeriodInDays = _data[\"dataRetentionPeriodInDays\"];\r\n this.clientIdent = _data[\"clientIdent\"];\r\n this.isActive = _data[\"isActive\"];\r\n this.qrCodeIdentificationEnabled = _data[\"qrCodeIdentificationEnabled\"];\r\n this.automaticParkingSchedulesEnabled = _data[\"automaticParkingSchedulesEnabled\"];\r\n this.automaticParkingScheduleToleranceInMinutes = _data[\"automaticParkingScheduleToleranceInMinutes\"];\r\n this.connectionMode = _data[\"connectionMode\"];\r\n this.auditLogEnabled = _data[\"auditLogEnabled\"];\r\n this.custom1Name = _data[\"custom1Name\"];\r\n this.custom2Name = _data[\"custom2Name\"];\r\n this.custom3Name = _data[\"custom3Name\"];\r\n this.custom4Name = _data[\"custom4Name\"];\r\n this.custom5Name = _data[\"custom5Name\"];\r\n this.custom6Name = _data[\"custom6Name\"];\r\n this.custom7Name = _data[\"custom7Name\"];\r\n this.custom8Name = _data[\"custom8Name\"];\r\n this.custom9Name = _data[\"custom9Name\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ClientDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ClientDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"address\"] = this.address;\r\n data[\"city\"] = this.city;\r\n data[\"email\"] = this.email;\r\n data[\"name\"] = this.name;\r\n data[\"phoneNumber\"] = this.phoneNumber;\r\n data[\"zip\"] = this.zip;\r\n data[\"dataRetentionPeriodInDays\"] = this.dataRetentionPeriodInDays;\r\n data[\"clientIdent\"] = this.clientIdent;\r\n data[\"isActive\"] = this.isActive;\r\n data[\"qrCodeIdentificationEnabled\"] = this.qrCodeIdentificationEnabled;\r\n data[\"automaticParkingSchedulesEnabled\"] = this.automaticParkingSchedulesEnabled;\r\n data[\"automaticParkingScheduleToleranceInMinutes\"] = this.automaticParkingScheduleToleranceInMinutes;\r\n data[\"connectionMode\"] = this.connectionMode;\r\n data[\"auditLogEnabled\"] = this.auditLogEnabled;\r\n data[\"custom1Name\"] = this.custom1Name;\r\n data[\"custom2Name\"] = this.custom2Name;\r\n data[\"custom3Name\"] = this.custom3Name;\r\n data[\"custom4Name\"] = this.custom4Name;\r\n data[\"custom5Name\"] = this.custom5Name;\r\n data[\"custom6Name\"] = this.custom6Name;\r\n data[\"custom7Name\"] = this.custom7Name;\r\n data[\"custom8Name\"] = this.custom8Name;\r\n data[\"custom9Name\"] = this.custom9Name;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IClientDTO {\r\n id: number;\r\n address?: string | undefined;\r\n city?: string | undefined;\r\n email?: string | undefined;\r\n name?: string | undefined;\r\n phoneNumber?: string | undefined;\r\n zip?: string | undefined;\r\n dataRetentionPeriodInDays: number;\r\n clientIdent?: string | undefined;\r\n isActive: boolean;\r\n qrCodeIdentificationEnabled: boolean;\r\n automaticParkingSchedulesEnabled: boolean;\r\n automaticParkingScheduleToleranceInMinutes: number;\r\n connectionMode: ConnectionMode;\r\n auditLogEnabled: boolean;\r\n custom1Name?: string | undefined;\r\n custom2Name?: string | undefined;\r\n custom3Name?: string | undefined;\r\n custom4Name?: string | undefined;\r\n custom5Name?: string | undefined;\r\n custom6Name?: string | undefined;\r\n custom7Name?: string | undefined;\r\n custom8Name?: string | undefined;\r\n custom9Name?: string | undefined;\r\n}\r\n\r\nexport enum ConnectionMode {\r\n RequestConnection = 0,\r\n DirectConnection = 1,\r\n}\r\n\r\nexport class ZoneLimitedDTO implements IZoneLimitedDTO {\r\n id!: number;\r\n name?: string | undefined;\r\n zoneGPSArea?: string | undefined;\r\n parkingSpaceNumberDefinition?: string | undefined;\r\n\r\n constructor(data?: IZoneLimitedDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.name = _data[\"name\"];\r\n this.zoneGPSArea = _data[\"zoneGPSArea\"];\r\n this.parkingSpaceNumberDefinition = _data[\"parkingSpaceNumberDefinition\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ZoneLimitedDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneLimitedDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"name\"] = this.name;\r\n data[\"zoneGPSArea\"] = this.zoneGPSArea;\r\n data[\"parkingSpaceNumberDefinition\"] = this.parkingSpaceNumberDefinition;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneLimitedDTO {\r\n id: number;\r\n name?: string | undefined;\r\n zoneGPSArea?: string | undefined;\r\n parkingSpaceNumberDefinition?: string | undefined;\r\n}\r\n\r\nexport class ParkerTagDTO implements IParkerTagDTO {\r\n id!: number;\r\n clientId!: number;\r\n parkerId!: number;\r\n usage!: ParkerTagUsage;\r\n identificationCode?: string | undefined;\r\n controlPlateType?: ControlPlateType | undefined;\r\n countryCode?: string | undefined;\r\n controlPlateNumber?: string | undefined;\r\n description?: string | undefined;\r\n barcode?: string | undefined;\r\n active!: boolean;\r\n defect!: boolean;\r\n modifiedOn!: DateTime;\r\n modifiedBy?: string | undefined;\r\n\r\n constructor(data?: IParkerTagDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.parkerId = _data[\"parkerId\"];\r\n this.usage = _data[\"usage\"];\r\n this.identificationCode = _data[\"identificationCode\"];\r\n this.controlPlateType = _data[\"controlPlateType\"];\r\n this.countryCode = _data[\"countryCode\"];\r\n this.controlPlateNumber = _data[\"controlPlateNumber\"];\r\n this.description = _data[\"description\"];\r\n this.barcode = _data[\"barcode\"];\r\n this.active = _data[\"active\"];\r\n this.defect = _data[\"defect\"];\r\n this.modifiedOn = _data[\"modifiedOn\"] ? DateTime.fromISO(_data[\"modifiedOn\"].toString()) : undefined;\r\n this.modifiedBy = _data[\"modifiedBy\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkerTagDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerTagDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"parkerId\"] = this.parkerId;\r\n data[\"usage\"] = this.usage;\r\n data[\"identificationCode\"] = this.identificationCode;\r\n data[\"controlPlateType\"] = this.controlPlateType;\r\n data[\"countryCode\"] = this.countryCode;\r\n data[\"controlPlateNumber\"] = this.controlPlateNumber;\r\n data[\"description\"] = this.description;\r\n data[\"barcode\"] = this.barcode;\r\n data[\"active\"] = this.active;\r\n data[\"defect\"] = this.defect;\r\n data[\"modifiedOn\"] = this.modifiedOn ? this.modifiedOn.toString() : undefined;\r\n data[\"modifiedBy\"] = this.modifiedBy;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerTagDTO {\r\n id: number;\r\n clientId: number;\r\n parkerId: number;\r\n usage: ParkerTagUsage;\r\n identificationCode?: string | undefined;\r\n controlPlateType?: ControlPlateType | undefined;\r\n countryCode?: string | undefined;\r\n controlPlateNumber?: string | undefined;\r\n description?: string | undefined;\r\n barcode?: string | undefined;\r\n active: boolean;\r\n defect: boolean;\r\n modifiedOn: DateTime;\r\n modifiedBy?: string | undefined;\r\n}\r\n\r\nexport class ParkerTagWithParkerInfoDTO extends ParkerTagDTO implements IParkerTagWithParkerInfoDTO {\r\n parker?: ParkerInfoDTO | undefined;\r\n\r\n constructor(data?: IParkerTagWithParkerInfoDTO) {\r\n super(data);\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.parker = _data[\"parker\"] ? ParkerInfoDTO.fromJS(_data[\"parker\"]) : undefined;\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ParkerTagWithParkerInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerTagWithParkerInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"parker\"] = this.parker ? this.parker.toJSON() : undefined;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerTagWithParkerInfoDTO extends IParkerTagDTO {\r\n parker?: ParkerInfoDTO | undefined;\r\n}\r\n\r\nexport class ParkerInfoDTO implements IParkerInfoDTO {\r\n id!: number;\r\n clientId!: number;\r\n firstName?: string | undefined;\r\n lastName?: string | undefined;\r\n identification?: string | undefined;\r\n group!: ParkerGroup;\r\n title?: string | undefined;\r\n email?: string | undefined;\r\n mobile?: string | undefined;\r\n phone?: string | undefined;\r\n company?: ParkerCompanyDTO | undefined;\r\n custom1?: string | undefined;\r\n custom2?: string | undefined;\r\n custom3?: string | undefined;\r\n custom4?: string | undefined;\r\n custom5?: string | undefined;\r\n custom6?: string | undefined;\r\n custom7?: string | undefined;\r\n custom8?: string | undefined;\r\n custom9?: string | undefined;\r\n\r\n constructor(data?: IParkerInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.firstName = _data[\"firstName\"];\r\n this.lastName = _data[\"lastName\"];\r\n this.identification = _data[\"identification\"];\r\n this.group = _data[\"group\"];\r\n this.title = _data[\"title\"];\r\n this.email = _data[\"email\"];\r\n this.mobile = _data[\"mobile\"];\r\n this.phone = _data[\"phone\"];\r\n this.company = _data[\"company\"] ? ParkerCompanyDTO.fromJS(_data[\"company\"]) : undefined;\r\n this.custom1 = _data[\"custom1\"];\r\n this.custom2 = _data[\"custom2\"];\r\n this.custom3 = _data[\"custom3\"];\r\n this.custom4 = _data[\"custom4\"];\r\n this.custom5 = _data[\"custom5\"];\r\n this.custom6 = _data[\"custom6\"];\r\n this.custom7 = _data[\"custom7\"];\r\n this.custom8 = _data[\"custom8\"];\r\n this.custom9 = _data[\"custom9\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkerInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"firstName\"] = this.firstName;\r\n data[\"lastName\"] = this.lastName;\r\n data[\"identification\"] = this.identification;\r\n data[\"group\"] = this.group;\r\n data[\"title\"] = this.title;\r\n data[\"email\"] = this.email;\r\n data[\"mobile\"] = this.mobile;\r\n data[\"phone\"] = this.phone;\r\n data[\"company\"] = this.company ? this.company.toJSON() : undefined;\r\n data[\"custom1\"] = this.custom1;\r\n data[\"custom2\"] = this.custom2;\r\n data[\"custom3\"] = this.custom3;\r\n data[\"custom4\"] = this.custom4;\r\n data[\"custom5\"] = this.custom5;\r\n data[\"custom6\"] = this.custom6;\r\n data[\"custom7\"] = this.custom7;\r\n data[\"custom8\"] = this.custom8;\r\n data[\"custom9\"] = this.custom9;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerInfoDTO {\r\n id: number;\r\n clientId: number;\r\n firstName?: string | undefined;\r\n lastName?: string | undefined;\r\n identification?: string | undefined;\r\n group: ParkerGroup;\r\n title?: string | undefined;\r\n email?: string | undefined;\r\n mobile?: string | undefined;\r\n phone?: string | undefined;\r\n company?: ParkerCompanyDTO | undefined;\r\n custom1?: string | undefined;\r\n custom2?: string | undefined;\r\n custom3?: string | undefined;\r\n custom4?: string | undefined;\r\n custom5?: string | undefined;\r\n custom6?: string | undefined;\r\n custom7?: string | undefined;\r\n custom8?: string | undefined;\r\n custom9?: string | undefined;\r\n}\r\n\r\nexport enum ParkerGroup {\r\n Undefined = 0,\r\n Guest = 1,\r\n Employee = 2,\r\n}\r\n\r\nexport class ParkerCompanyDTO implements IParkerCompanyDTO {\r\n id!: number;\r\n clientId!: number;\r\n active!: boolean;\r\n name?: string | undefined;\r\n\r\n constructor(data?: IParkerCompanyDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.active = _data[\"active\"];\r\n this.name = _data[\"name\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkerCompanyDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerCompanyDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"active\"] = this.active;\r\n data[\"name\"] = this.name;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerCompanyDTO {\r\n id: number;\r\n clientId: number;\r\n active: boolean;\r\n name?: string | undefined;\r\n}\r\n\r\nexport enum ParkerTagUsage {\r\n CommonTag = 0,\r\n ParkerIdentity = 1,\r\n}\r\n\r\nexport enum ControlPlateType {\r\n Car = 0,\r\n Motorcycle = 1,\r\n Truck = 2,\r\n Tractor = 3,\r\n}\r\n\r\nexport class AutomaticParkingReportParameterDTO implements IAutomaticParkingReportParameterDTO {\r\n dateRange!: DateRangeParameterDTO;\r\n\r\n constructor(data?: IAutomaticParkingReportParameterDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.dateRange = new DateRangeParameterDTO();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.dateRange = _data[\"dateRange\"] ? DateRangeParameterDTO.fromJS(_data[\"dateRange\"]) : new DateRangeParameterDTO();\r\n }\r\n }\r\n\r\n static fromJS(data: any): AutomaticParkingReportParameterDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AutomaticParkingReportParameterDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"dateRange\"] = this.dateRange ? this.dateRange.toJSON() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAutomaticParkingReportParameterDTO {\r\n dateRange: DateRangeParameterDTO;\r\n}\r\n\r\nexport class DateRangeParameterDTO implements IDateRangeParameterDTO {\r\n startDate!: string;\r\n endDate!: string;\r\n\r\n constructor(data?: IDateRangeParameterDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.startDate = _data[\"startDate\"];\r\n this.endDate = _data[\"endDate\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): DateRangeParameterDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DateRangeParameterDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"startDate\"] = this.startDate;\r\n data[\"endDate\"] = this.endDate;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDateRangeParameterDTO {\r\n startDate: string;\r\n endDate: string;\r\n}\r\n\r\nexport enum SortDirection {\r\n Ascending = 0,\r\n Descending = 1,\r\n}\r\n\r\nexport class SavedReportFileDTO implements ISavedReportFileDTO {\r\n reportName?: string | undefined;\r\n fileType!: ReportFileType;\r\n contentBase64?: string | undefined;\r\n\r\n constructor(data?: ISavedReportFileDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.reportName = _data[\"reportName\"];\r\n this.fileType = _data[\"fileType\"];\r\n this.contentBase64 = _data[\"contentBase64\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): SavedReportFileDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SavedReportFileDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"reportName\"] = this.reportName;\r\n data[\"fileType\"] = this.fileType;\r\n data[\"contentBase64\"] = this.contentBase64;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISavedReportFileDTO {\r\n reportName?: string | undefined;\r\n fileType: ReportFileType;\r\n contentBase64?: string | undefined;\r\n}\r\n\r\nexport enum ReportFileType {\r\n CSV = 0,\r\n PDF = 1,\r\n}\r\n\r\nexport class PagedResultDTOOfAutomaticParkingScheduleDTO implements IPagedResultDTOOfAutomaticParkingScheduleDTO {\r\n items?: AutomaticParkingScheduleDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfAutomaticParkingScheduleDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(AutomaticParkingScheduleDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfAutomaticParkingScheduleDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfAutomaticParkingScheduleDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfAutomaticParkingScheduleDTO {\r\n items?: AutomaticParkingScheduleDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class AutomaticParkingScheduleDTO implements IAutomaticParkingScheduleDTO {\r\n id!: number;\r\n name?: string | undefined;\r\n client?: ClientLimitedDTO | undefined;\r\n parkerId!: number;\r\n zone?: ZoneLimitedDTO | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n subscriptionAssignment?: ParkerSubscriptionAssignmentDTO | undefined;\r\n tag?: ParkerTagDTO | undefined;\r\n parkingStartTime!: Duration;\r\n parkingDurationInMinutes!: number;\r\n onWeekDays!: WeekDayFlags;\r\n isActive!: boolean;\r\n\r\n constructor(data?: IAutomaticParkingScheduleDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.name = _data[\"name\"];\r\n this.client = _data[\"client\"] ? ClientLimitedDTO.fromJS(_data[\"client\"]) : undefined;\r\n this.parkerId = _data[\"parkerId\"];\r\n this.zone = _data[\"zone\"] ? ZoneLimitedDTO.fromJS(_data[\"zone\"]) : undefined;\r\n this.parkingSpaceNumber = _data[\"parkingSpaceNumber\"];\r\n this.subscriptionAssignment = _data[\"subscriptionAssignment\"] ? ParkerSubscriptionAssignmentDTO.fromJS(_data[\"subscriptionAssignment\"]) : undefined;\r\n this.tag = _data[\"tag\"] ? ParkerTagDTO.fromJS(_data[\"tag\"]) : undefined;\r\n this.parkingStartTime = _data[\"parkingStartTime\"] ? Duration.fromISO(_data[\"parkingStartTime\"].toString()) : undefined;\r\n this.parkingDurationInMinutes = _data[\"parkingDurationInMinutes\"];\r\n this.onWeekDays = _data[\"onWeekDays\"];\r\n this.isActive = _data[\"isActive\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): AutomaticParkingScheduleDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AutomaticParkingScheduleDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"name\"] = this.name;\r\n data[\"client\"] = this.client ? this.client.toJSON() : undefined;\r\n data[\"parkerId\"] = this.parkerId;\r\n data[\"zone\"] = this.zone ? this.zone.toJSON() : undefined;\r\n data[\"parkingSpaceNumber\"] = this.parkingSpaceNumber;\r\n data[\"subscriptionAssignment\"] = this.subscriptionAssignment ? this.subscriptionAssignment.toJSON() : undefined;\r\n data[\"tag\"] = this.tag ? this.tag.toJSON() : undefined;\r\n data[\"parkingStartTime\"] = this.parkingStartTime ? this.parkingStartTime.toString() : undefined;\r\n data[\"parkingDurationInMinutes\"] = this.parkingDurationInMinutes;\r\n data[\"onWeekDays\"] = this.onWeekDays;\r\n data[\"isActive\"] = this.isActive;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAutomaticParkingScheduleDTO {\r\n id: number;\r\n name?: string | undefined;\r\n client?: ClientLimitedDTO | undefined;\r\n parkerId: number;\r\n zone?: ZoneLimitedDTO | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n subscriptionAssignment?: ParkerSubscriptionAssignmentDTO | undefined;\r\n tag?: ParkerTagDTO | undefined;\r\n parkingStartTime: Duration;\r\n parkingDurationInMinutes: number;\r\n onWeekDays: WeekDayFlags;\r\n isActive: boolean;\r\n}\r\n\r\nexport class ClientLimitedDTO implements IClientLimitedDTO {\r\n id!: number;\r\n name?: string | undefined;\r\n isActive!: boolean;\r\n automaticParkingSchedulesEnabled!: boolean;\r\n automaticParkingScheduleToleranceInMinutes!: number;\r\n\r\n constructor(data?: IClientLimitedDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.name = _data[\"name\"];\r\n this.isActive = _data[\"isActive\"];\r\n this.automaticParkingSchedulesEnabled = _data[\"automaticParkingSchedulesEnabled\"];\r\n this.automaticParkingScheduleToleranceInMinutes = _data[\"automaticParkingScheduleToleranceInMinutes\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ClientLimitedDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ClientLimitedDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"name\"] = this.name;\r\n data[\"isActive\"] = this.isActive;\r\n data[\"automaticParkingSchedulesEnabled\"] = this.automaticParkingSchedulesEnabled;\r\n data[\"automaticParkingScheduleToleranceInMinutes\"] = this.automaticParkingScheduleToleranceInMinutes;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IClientLimitedDTO {\r\n id: number;\r\n name?: string | undefined;\r\n isActive: boolean;\r\n automaticParkingSchedulesEnabled: boolean;\r\n automaticParkingScheduleToleranceInMinutes: number;\r\n}\r\n\r\nexport class ParkerSubscriptionAssignmentDTO implements IParkerSubscriptionAssignmentDTO {\r\n id!: number;\r\n active!: boolean;\r\n subscription?: ParkingSubscriptionLimitedWithTariffsDTO | undefined;\r\n validFrom!: DateTime;\r\n validTo?: DateTime | undefined;\r\n isFavorite!: boolean;\r\n modifiedOn!: DateTime;\r\n modifiedBy?: string | undefined;\r\n\r\n constructor(data?: IParkerSubscriptionAssignmentDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.active = _data[\"active\"];\r\n this.subscription = _data[\"subscription\"] ? ParkingSubscriptionLimitedWithTariffsDTO.fromJS(_data[\"subscription\"]) : undefined;\r\n this.validFrom = _data[\"validFrom\"] ? DateTime.fromISO(_data[\"validFrom\"].toString()) : undefined;\r\n this.validTo = _data[\"validTo\"] ? DateTime.fromISO(_data[\"validTo\"].toString()) : undefined;\r\n this.isFavorite = _data[\"isFavorite\"];\r\n this.modifiedOn = _data[\"modifiedOn\"] ? DateTime.fromISO(_data[\"modifiedOn\"].toString()) : undefined;\r\n this.modifiedBy = _data[\"modifiedBy\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkerSubscriptionAssignmentDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerSubscriptionAssignmentDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"active\"] = this.active;\r\n data[\"subscription\"] = this.subscription ? this.subscription.toJSON() : undefined;\r\n data[\"validFrom\"] = this.validFrom ? this.validFrom.toString() : undefined;\r\n data[\"validTo\"] = this.validTo ? this.validTo.toString() : undefined;\r\n data[\"isFavorite\"] = this.isFavorite;\r\n data[\"modifiedOn\"] = this.modifiedOn ? this.modifiedOn.toString() : undefined;\r\n data[\"modifiedBy\"] = this.modifiedBy;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerSubscriptionAssignmentDTO {\r\n id: number;\r\n active: boolean;\r\n subscription?: ParkingSubscriptionLimitedWithTariffsDTO | undefined;\r\n validFrom: DateTime;\r\n validTo?: DateTime | undefined;\r\n isFavorite: boolean;\r\n modifiedOn: DateTime;\r\n modifiedBy?: string | undefined;\r\n}\r\n\r\nexport class ParkingSubscriptionLimitedDTO implements IParkingSubscriptionLimitedDTO {\r\n id!: number;\r\n clientId!: number;\r\n active!: boolean;\r\n assignable!: boolean;\r\n name?: string | undefined;\r\n type!: ParkingSubscriptionType;\r\n description?: string | undefined;\r\n fixPricePerMonth?: number | undefined;\r\n basePricePerDay?: number | undefined;\r\n currency!: Currency;\r\n maxParkingDurationInMin?: number | undefined;\r\n denyForeignParkingSubscriptionFallback!: boolean;\r\n sessionIsExtendable!: boolean;\r\n usage!: ParkingSubscriptionUsage;\r\n paidBy!: ParkingSubscriptionPaidBy;\r\n\r\n constructor(data?: IParkingSubscriptionLimitedDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.active = _data[\"active\"];\r\n this.assignable = _data[\"assignable\"];\r\n this.name = _data[\"name\"];\r\n this.type = _data[\"type\"];\r\n this.description = _data[\"description\"];\r\n this.fixPricePerMonth = _data[\"fixPricePerMonth\"];\r\n this.basePricePerDay = _data[\"basePricePerDay\"];\r\n this.currency = _data[\"currency\"];\r\n this.maxParkingDurationInMin = _data[\"maxParkingDurationInMin\"];\r\n this.denyForeignParkingSubscriptionFallback = _data[\"denyForeignParkingSubscriptionFallback\"];\r\n this.sessionIsExtendable = _data[\"sessionIsExtendable\"];\r\n this.usage = _data[\"usage\"];\r\n this.paidBy = _data[\"paidBy\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingSubscriptionLimitedDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingSubscriptionLimitedDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"active\"] = this.active;\r\n data[\"assignable\"] = this.assignable;\r\n data[\"name\"] = this.name;\r\n data[\"type\"] = this.type;\r\n data[\"description\"] = this.description;\r\n data[\"fixPricePerMonth\"] = this.fixPricePerMonth;\r\n data[\"basePricePerDay\"] = this.basePricePerDay;\r\n data[\"currency\"] = this.currency;\r\n data[\"maxParkingDurationInMin\"] = this.maxParkingDurationInMin;\r\n data[\"denyForeignParkingSubscriptionFallback\"] = this.denyForeignParkingSubscriptionFallback;\r\n data[\"sessionIsExtendable\"] = this.sessionIsExtendable;\r\n data[\"usage\"] = this.usage;\r\n data[\"paidBy\"] = this.paidBy;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingSubscriptionLimitedDTO {\r\n id: number;\r\n clientId: number;\r\n active: boolean;\r\n assignable: boolean;\r\n name?: string | undefined;\r\n type: ParkingSubscriptionType;\r\n description?: string | undefined;\r\n fixPricePerMonth?: number | undefined;\r\n basePricePerDay?: number | undefined;\r\n currency: Currency;\r\n maxParkingDurationInMin?: number | undefined;\r\n denyForeignParkingSubscriptionFallback: boolean;\r\n sessionIsExtendable: boolean;\r\n usage: ParkingSubscriptionUsage;\r\n paidBy: ParkingSubscriptionPaidBy;\r\n}\r\n\r\nexport class ParkingSubscriptionLimitedWithTariffsDTO extends ParkingSubscriptionLimitedDTO implements IParkingSubscriptionLimitedWithTariffsDTO {\r\n tariffs?: ParkingTariffDTO[] | undefined;\r\n\r\n constructor(data?: IParkingSubscriptionLimitedWithTariffsDTO) {\r\n super(data);\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"tariffs\"])) {\r\n this.tariffs = [] as any;\r\n for (let item of _data[\"tariffs\"])\r\n this.tariffs!.push(ParkingTariffDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ParkingSubscriptionLimitedWithTariffsDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingSubscriptionLimitedWithTariffsDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.tariffs)) {\r\n data[\"tariffs\"] = [];\r\n for (let item of this.tariffs)\r\n data[\"tariffs\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingSubscriptionLimitedWithTariffsDTO extends IParkingSubscriptionLimitedDTO {\r\n tariffs?: ParkingTariffDTO[] | undefined;\r\n}\r\n\r\nexport class ParkingTariffDTO implements IParkingTariffDTO {\r\n id!: number;\r\n clientId!: number;\r\n active!: boolean;\r\n deleted!: boolean;\r\n onWeekDays?: WeekDayFlags | undefined;\r\n description?: string | undefined;\r\n startTime?: Duration | undefined;\r\n durationInMinutes?: number | undefined;\r\n maxParkingDurationInMin?: number | undefined;\r\n name?: string | undefined;\r\n tariffCurrency!: Currency;\r\n priceType!: TariffPriceType;\r\n tieredPrices?: ParkingTariffTieredPriceDTO[] | undefined;\r\n placeOfResidence!: PlaceOfResidence;\r\n fixedPrice?: number | undefined;\r\n pricePerHour?: number | undefined;\r\n maximumPrice?: number | undefined;\r\n linearPriceMinStepInMinutes!: number;\r\n subscriptionId?: number | undefined;\r\n hasActiveSubscription!: boolean;\r\n assignedZones?: AssignedZoneDTO[] | undefined;\r\n isTwentyFourSevenTariff!: boolean;\r\n isDeviceControlTariff!: boolean;\r\n modifiedOn!: DateTime;\r\n modifiedBy?: string | undefined;\r\n blacklistedLicensePlates?: BlacklistLicensePlateDTO[] | undefined;\r\n\r\n constructor(data?: IParkingTariffDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.active = _data[\"active\"];\r\n this.deleted = _data[\"deleted\"];\r\n this.onWeekDays = _data[\"onWeekDays\"];\r\n this.description = _data[\"description\"];\r\n this.startTime = _data[\"startTime\"] ? Duration.fromISO(_data[\"startTime\"].toString()) : undefined;\r\n this.durationInMinutes = _data[\"durationInMinutes\"];\r\n this.maxParkingDurationInMin = _data[\"maxParkingDurationInMin\"];\r\n this.name = _data[\"name\"];\r\n this.tariffCurrency = _data[\"tariffCurrency\"];\r\n this.priceType = _data[\"priceType\"];\r\n if (Array.isArray(_data[\"tieredPrices\"])) {\r\n this.tieredPrices = [] as any;\r\n for (let item of _data[\"tieredPrices\"])\r\n this.tieredPrices!.push(ParkingTariffTieredPriceDTO.fromJS(item));\r\n }\r\n this.placeOfResidence = _data[\"placeOfResidence\"];\r\n this.fixedPrice = _data[\"fixedPrice\"];\r\n this.pricePerHour = _data[\"pricePerHour\"];\r\n this.maximumPrice = _data[\"maximumPrice\"];\r\n this.linearPriceMinStepInMinutes = _data[\"linearPriceMinStepInMinutes\"];\r\n this.subscriptionId = _data[\"subscriptionId\"];\r\n this.hasActiveSubscription = _data[\"hasActiveSubscription\"];\r\n if (Array.isArray(_data[\"assignedZones\"])) {\r\n this.assignedZones = [] as any;\r\n for (let item of _data[\"assignedZones\"])\r\n this.assignedZones!.push(AssignedZoneDTO.fromJS(item));\r\n }\r\n this.isTwentyFourSevenTariff = _data[\"isTwentyFourSevenTariff\"];\r\n this.isDeviceControlTariff = _data[\"isDeviceControlTariff\"];\r\n this.modifiedOn = _data[\"modifiedOn\"] ? DateTime.fromISO(_data[\"modifiedOn\"].toString()) : undefined;\r\n this.modifiedBy = _data[\"modifiedBy\"];\r\n if (Array.isArray(_data[\"blacklistedLicensePlates\"])) {\r\n this.blacklistedLicensePlates = [] as any;\r\n for (let item of _data[\"blacklistedLicensePlates\"])\r\n this.blacklistedLicensePlates!.push(BlacklistLicensePlateDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingTariffDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingTariffDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"active\"] = this.active;\r\n data[\"deleted\"] = this.deleted;\r\n data[\"onWeekDays\"] = this.onWeekDays;\r\n data[\"description\"] = this.description;\r\n data[\"startTime\"] = this.startTime ? this.startTime.toString() : undefined;\r\n data[\"durationInMinutes\"] = this.durationInMinutes;\r\n data[\"maxParkingDurationInMin\"] = this.maxParkingDurationInMin;\r\n data[\"name\"] = this.name;\r\n data[\"tariffCurrency\"] = this.tariffCurrency;\r\n data[\"priceType\"] = this.priceType;\r\n if (Array.isArray(this.tieredPrices)) {\r\n data[\"tieredPrices\"] = [];\r\n for (let item of this.tieredPrices)\r\n data[\"tieredPrices\"].push(item.toJSON());\r\n }\r\n data[\"placeOfResidence\"] = this.placeOfResidence;\r\n data[\"fixedPrice\"] = this.fixedPrice;\r\n data[\"pricePerHour\"] = this.pricePerHour;\r\n data[\"maximumPrice\"] = this.maximumPrice;\r\n data[\"linearPriceMinStepInMinutes\"] = this.linearPriceMinStepInMinutes;\r\n data[\"subscriptionId\"] = this.subscriptionId;\r\n data[\"hasActiveSubscription\"] = this.hasActiveSubscription;\r\n if (Array.isArray(this.assignedZones)) {\r\n data[\"assignedZones\"] = [];\r\n for (let item of this.assignedZones)\r\n data[\"assignedZones\"].push(item.toJSON());\r\n }\r\n data[\"isTwentyFourSevenTariff\"] = this.isTwentyFourSevenTariff;\r\n data[\"isDeviceControlTariff\"] = this.isDeviceControlTariff;\r\n data[\"modifiedOn\"] = this.modifiedOn ? this.modifiedOn.toString() : undefined;\r\n data[\"modifiedBy\"] = this.modifiedBy;\r\n if (Array.isArray(this.blacklistedLicensePlates)) {\r\n data[\"blacklistedLicensePlates\"] = [];\r\n for (let item of this.blacklistedLicensePlates)\r\n data[\"blacklistedLicensePlates\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingTariffDTO {\r\n id: number;\r\n clientId: number;\r\n active: boolean;\r\n deleted: boolean;\r\n onWeekDays?: WeekDayFlags | undefined;\r\n description?: string | undefined;\r\n startTime?: Duration | undefined;\r\n durationInMinutes?: number | undefined;\r\n maxParkingDurationInMin?: number | undefined;\r\n name?: string | undefined;\r\n tariffCurrency: Currency;\r\n priceType: TariffPriceType;\r\n tieredPrices?: ParkingTariffTieredPriceDTO[] | undefined;\r\n placeOfResidence: PlaceOfResidence;\r\n fixedPrice?: number | undefined;\r\n pricePerHour?: number | undefined;\r\n maximumPrice?: number | undefined;\r\n linearPriceMinStepInMinutes: number;\r\n subscriptionId?: number | undefined;\r\n hasActiveSubscription: boolean;\r\n assignedZones?: AssignedZoneDTO[] | undefined;\r\n isTwentyFourSevenTariff: boolean;\r\n isDeviceControlTariff: boolean;\r\n modifiedOn: DateTime;\r\n modifiedBy?: string | undefined;\r\n blacklistedLicensePlates?: BlacklistLicensePlateDTO[] | undefined;\r\n}\r\n\r\nexport enum WeekDayFlags {\r\n Monday = 1,\r\n Tuesday = 2,\r\n Wednesday = 4,\r\n Thursday = 8,\r\n Friday = 16,\r\n Saturday = 32,\r\n Sunday = 64,\r\n}\r\n\r\nexport enum Currency {\r\n CHF = 0,\r\n EUR = 1,\r\n}\r\n\r\nexport enum TariffPriceType {\r\n LinearPrice = 0,\r\n FixedPrice = 1,\r\n TieredPrice = 2,\r\n}\r\n\r\nexport class ParkingTariffTieredPriceDTO implements IParkingTariffTieredPriceDTO {\r\n id!: number;\r\n evaluationRelayIndex!: number;\r\n amountOfMinutes!: number;\r\n pricePerHour!: number;\r\n minStepInMinutes!: number;\r\n\r\n constructor(data?: IParkingTariffTieredPriceDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.evaluationRelayIndex = _data[\"evaluationRelayIndex\"];\r\n this.amountOfMinutes = _data[\"amountOfMinutes\"];\r\n this.pricePerHour = _data[\"pricePerHour\"];\r\n this.minStepInMinutes = _data[\"minStepInMinutes\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingTariffTieredPriceDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingTariffTieredPriceDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"evaluationRelayIndex\"] = this.evaluationRelayIndex;\r\n data[\"amountOfMinutes\"] = this.amountOfMinutes;\r\n data[\"pricePerHour\"] = this.pricePerHour;\r\n data[\"minStepInMinutes\"] = this.minStepInMinutes;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingTariffTieredPriceDTO {\r\n id: number;\r\n evaluationRelayIndex: number;\r\n amountOfMinutes: number;\r\n pricePerHour: number;\r\n minStepInMinutes: number;\r\n}\r\n\r\nexport enum PlaceOfResidence {\r\n Unspecified = 0,\r\n LocalCommunity = 1,\r\n External = 2,\r\n}\r\n\r\nexport class AssignedZoneDTO implements IAssignedZoneDTO {\r\n id!: number;\r\n name?: string | undefined;\r\n deleted!: boolean;\r\n\r\n constructor(data?: IAssignedZoneDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.name = _data[\"name\"];\r\n this.deleted = _data[\"deleted\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): AssignedZoneDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AssignedZoneDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"name\"] = this.name;\r\n data[\"deleted\"] = this.deleted;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAssignedZoneDTO {\r\n id: number;\r\n name?: string | undefined;\r\n deleted: boolean;\r\n}\r\n\r\nexport class BlacklistLicensePlateDTO implements IBlacklistLicensePlateDTO {\r\n id!: number;\r\n controlPlateNumber?: string | undefined;\r\n countryCode?: string | undefined;\r\n controlPlateType?: ControlPlateType | undefined;\r\n\r\n constructor(data?: IBlacklistLicensePlateDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.controlPlateNumber = _data[\"controlPlateNumber\"];\r\n this.countryCode = _data[\"countryCode\"];\r\n this.controlPlateType = _data[\"controlPlateType\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): BlacklistLicensePlateDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new BlacklistLicensePlateDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"controlPlateNumber\"] = this.controlPlateNumber;\r\n data[\"countryCode\"] = this.countryCode;\r\n data[\"controlPlateType\"] = this.controlPlateType;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBlacklistLicensePlateDTO {\r\n id: number;\r\n controlPlateNumber?: string | undefined;\r\n countryCode?: string | undefined;\r\n controlPlateType?: ControlPlateType | undefined;\r\n}\r\n\r\nexport enum ParkingSubscriptionType {\r\n StandardSubscription = 0,\r\n ForeignParkerSubscription = 1,\r\n}\r\n\r\nexport enum ParkingSubscriptionUsage {\r\n ParkerOrForeignParker = 0,\r\n Visitor = 1,\r\n}\r\n\r\nexport enum ParkingSubscriptionPaidBy {\r\n ParkingPerson = 0,\r\n ParkingCard = 1,\r\n}\r\n\r\nexport class FilterDTO implements IFilterDTO {\r\n isComplex!: boolean;\r\n condition?: FilterCondition | undefined;\r\n field?: string | undefined;\r\n operator?: FilterOperator | undefined;\r\n value?: string | undefined;\r\n predicates?: FilterDTO[] | undefined;\r\n\r\n constructor(data?: IFilterDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.isComplex = _data[\"isComplex\"];\r\n this.condition = _data[\"condition\"];\r\n this.field = _data[\"field\"];\r\n this.operator = _data[\"operator\"];\r\n this.value = _data[\"value\"];\r\n if (Array.isArray(_data[\"predicates\"])) {\r\n this.predicates = [] as any;\r\n for (let item of _data[\"predicates\"])\r\n this.predicates!.push(FilterDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): FilterDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FilterDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"isComplex\"] = this.isComplex;\r\n data[\"condition\"] = this.condition;\r\n data[\"field\"] = this.field;\r\n data[\"operator\"] = this.operator;\r\n data[\"value\"] = this.value;\r\n if (Array.isArray(this.predicates)) {\r\n data[\"predicates\"] = [];\r\n for (let item of this.predicates)\r\n data[\"predicates\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFilterDTO {\r\n isComplex: boolean;\r\n condition?: FilterCondition | undefined;\r\n field?: string | undefined;\r\n operator?: FilterOperator | undefined;\r\n value?: string | undefined;\r\n predicates?: FilterDTO[] | undefined;\r\n}\r\n\r\nexport enum FilterCondition {\r\n And = 0,\r\n Or = 1,\r\n}\r\n\r\nexport enum FilterOperator {\r\n StartsWith = 0,\r\n EndsWith = 1,\r\n Contains = 2,\r\n Equal = 3,\r\n NotEqual = 4,\r\n GreaterThan = 5,\r\n GreaterThanOrEqual = 6,\r\n LessThan = 7,\r\n LessThanOrEqual = 8,\r\n IsNull = 9,\r\n IsNotNull = 10,\r\n Any = 11,\r\n None = 12,\r\n Empty = 13,\r\n NotEmpty = 14,\r\n DoesNotStartWith = 15,\r\n DoesNotEndWith = 16,\r\n DoesNotContain = 17,\r\n}\r\n\r\nexport class CreateAutomaticParkingScheduleDTO implements ICreateAutomaticParkingScheduleDTO {\r\n name?: string | undefined;\r\n clientId!: number;\r\n zoneId!: number;\r\n parkingSpaceNumber?: string | undefined;\r\n subscriptionAssignmentId!: number;\r\n tagId!: number;\r\n parkingStartTime!: Duration;\r\n parkingDurationInMinutes!: number;\r\n onWeekDays!: WeekDayFlags;\r\n\r\n constructor(data?: ICreateAutomaticParkingScheduleDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.name = _data[\"name\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.zoneId = _data[\"zoneId\"];\r\n this.parkingSpaceNumber = _data[\"parkingSpaceNumber\"];\r\n this.subscriptionAssignmentId = _data[\"subscriptionAssignmentId\"];\r\n this.tagId = _data[\"tagId\"];\r\n this.parkingStartTime = _data[\"parkingStartTime\"] ? Duration.fromISO(_data[\"parkingStartTime\"].toString()) : undefined;\r\n this.parkingDurationInMinutes = _data[\"parkingDurationInMinutes\"];\r\n this.onWeekDays = _data[\"onWeekDays\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateAutomaticParkingScheduleDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateAutomaticParkingScheduleDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"name\"] = this.name;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"zoneId\"] = this.zoneId;\r\n data[\"parkingSpaceNumber\"] = this.parkingSpaceNumber;\r\n data[\"subscriptionAssignmentId\"] = this.subscriptionAssignmentId;\r\n data[\"tagId\"] = this.tagId;\r\n data[\"parkingStartTime\"] = this.parkingStartTime ? this.parkingStartTime.toString() : undefined;\r\n data[\"parkingDurationInMinutes\"] = this.parkingDurationInMinutes;\r\n data[\"onWeekDays\"] = this.onWeekDays;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateAutomaticParkingScheduleDTO {\r\n name?: string | undefined;\r\n clientId: number;\r\n zoneId: number;\r\n parkingSpaceNumber?: string | undefined;\r\n subscriptionAssignmentId: number;\r\n tagId: number;\r\n parkingStartTime: Duration;\r\n parkingDurationInMinutes: number;\r\n onWeekDays: WeekDayFlags;\r\n}\r\n\r\nexport class UpdateAutomaticParkingScheduleDTO implements IUpdateAutomaticParkingScheduleDTO {\r\n id!: number;\r\n name?: string | undefined;\r\n zoneId?: number | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n subscriptionAssignmentId?: number | undefined;\r\n tagId?: number | undefined;\r\n parkingStartTime?: Duration | undefined;\r\n parkingDurationInMinutes?: number | undefined;\r\n onWeekDays?: WeekDayFlags | undefined;\r\n isActive?: boolean | undefined;\r\n\r\n constructor(data?: IUpdateAutomaticParkingScheduleDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.name = _data[\"name\"];\r\n this.zoneId = _data[\"zoneId\"];\r\n this.parkingSpaceNumber = _data[\"parkingSpaceNumber\"];\r\n this.subscriptionAssignmentId = _data[\"subscriptionAssignmentId\"];\r\n this.tagId = _data[\"tagId\"];\r\n this.parkingStartTime = _data[\"parkingStartTime\"] ? Duration.fromISO(_data[\"parkingStartTime\"].toString()) : undefined;\r\n this.parkingDurationInMinutes = _data[\"parkingDurationInMinutes\"];\r\n this.onWeekDays = _data[\"onWeekDays\"];\r\n this.isActive = _data[\"isActive\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateAutomaticParkingScheduleDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateAutomaticParkingScheduleDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"name\"] = this.name;\r\n data[\"zoneId\"] = this.zoneId;\r\n data[\"parkingSpaceNumber\"] = this.parkingSpaceNumber;\r\n data[\"subscriptionAssignmentId\"] = this.subscriptionAssignmentId;\r\n data[\"tagId\"] = this.tagId;\r\n data[\"parkingStartTime\"] = this.parkingStartTime ? this.parkingStartTime.toString() : undefined;\r\n data[\"parkingDurationInMinutes\"] = this.parkingDurationInMinutes;\r\n data[\"onWeekDays\"] = this.onWeekDays;\r\n data[\"isActive\"] = this.isActive;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateAutomaticParkingScheduleDTO {\r\n id: number;\r\n name?: string | undefined;\r\n zoneId?: number | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n subscriptionAssignmentId?: number | undefined;\r\n tagId?: number | undefined;\r\n parkingStartTime?: Duration | undefined;\r\n parkingDurationInMinutes?: number | undefined;\r\n onWeekDays?: WeekDayFlags | undefined;\r\n isActive?: boolean | undefined;\r\n}\r\n\r\nexport class ParkingProcessZoneInfoDTO implements IParkingProcessZoneInfoDTO {\r\n id!: number;\r\n name?: string | undefined;\r\n clientId!: number;\r\n foreignParkersAllowed!: boolean;\r\n parkingSpaceNumberDefinition?: string | undefined;\r\n defaultForeignParkingSubscriptionId?: number | undefined;\r\n foreignParkingSubscriptionInfos!: ForeignParkingSubscriptionInfoDTO[];\r\n subscriptionAssignments!: ParkingProcessSubscriptionAssignmentInfoDTO[];\r\n parent?: ParkingProcessLimitedZoneWithParentInfoDTO | undefined;\r\n\r\n constructor(data?: IParkingProcessZoneInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.foreignParkingSubscriptionInfos = [];\r\n this.subscriptionAssignments = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.name = _data[\"name\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.foreignParkersAllowed = _data[\"foreignParkersAllowed\"];\r\n this.parkingSpaceNumberDefinition = _data[\"parkingSpaceNumberDefinition\"];\r\n this.defaultForeignParkingSubscriptionId = _data[\"defaultForeignParkingSubscriptionId\"];\r\n if (Array.isArray(_data[\"foreignParkingSubscriptionInfos\"])) {\r\n this.foreignParkingSubscriptionInfos = [] as any;\r\n for (let item of _data[\"foreignParkingSubscriptionInfos\"])\r\n this.foreignParkingSubscriptionInfos!.push(ForeignParkingSubscriptionInfoDTO.fromJS(item));\r\n }\r\n if (Array.isArray(_data[\"subscriptionAssignments\"])) {\r\n this.subscriptionAssignments = [] as any;\r\n for (let item of _data[\"subscriptionAssignments\"])\r\n this.subscriptionAssignments!.push(ParkingProcessSubscriptionAssignmentInfoDTO.fromJS(item));\r\n }\r\n this.parent = _data[\"parent\"] ? ParkingProcessLimitedZoneWithParentInfoDTO.fromJS(_data[\"parent\"]) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingProcessZoneInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingProcessZoneInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"name\"] = this.name;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"foreignParkersAllowed\"] = this.foreignParkersAllowed;\r\n data[\"parkingSpaceNumberDefinition\"] = this.parkingSpaceNumberDefinition;\r\n data[\"defaultForeignParkingSubscriptionId\"] = this.defaultForeignParkingSubscriptionId;\r\n if (Array.isArray(this.foreignParkingSubscriptionInfos)) {\r\n data[\"foreignParkingSubscriptionInfos\"] = [];\r\n for (let item of this.foreignParkingSubscriptionInfos)\r\n data[\"foreignParkingSubscriptionInfos\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.subscriptionAssignments)) {\r\n data[\"subscriptionAssignments\"] = [];\r\n for (let item of this.subscriptionAssignments)\r\n data[\"subscriptionAssignments\"].push(item.toJSON());\r\n }\r\n data[\"parent\"] = this.parent ? this.parent.toJSON() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingProcessZoneInfoDTO {\r\n id: number;\r\n name?: string | undefined;\r\n clientId: number;\r\n foreignParkersAllowed: boolean;\r\n parkingSpaceNumberDefinition?: string | undefined;\r\n defaultForeignParkingSubscriptionId?: number | undefined;\r\n foreignParkingSubscriptionInfos: ForeignParkingSubscriptionInfoDTO[];\r\n subscriptionAssignments: ParkingProcessSubscriptionAssignmentInfoDTO[];\r\n parent?: ParkingProcessLimitedZoneWithParentInfoDTO | undefined;\r\n}\r\n\r\nexport class ForeignParkingSubscriptionInfoDTO implements IForeignParkingSubscriptionInfoDTO {\r\n subscription?: ParkingProcessSubscriptionInfoDTO | undefined;\r\n templateInfo?: ParkingSubscriptionAssignmentTemplateInfoDTO | undefined;\r\n\r\n constructor(data?: IForeignParkingSubscriptionInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.subscription = _data[\"subscription\"] ? ParkingProcessSubscriptionInfoDTO.fromJS(_data[\"subscription\"]) : undefined;\r\n this.templateInfo = _data[\"templateInfo\"] ? ParkingSubscriptionAssignmentTemplateInfoDTO.fromJS(_data[\"templateInfo\"]) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ForeignParkingSubscriptionInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ForeignParkingSubscriptionInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"subscription\"] = this.subscription ? this.subscription.toJSON() : undefined;\r\n data[\"templateInfo\"] = this.templateInfo ? this.templateInfo.toJSON() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IForeignParkingSubscriptionInfoDTO {\r\n subscription?: ParkingProcessSubscriptionInfoDTO | undefined;\r\n templateInfo?: ParkingSubscriptionAssignmentTemplateInfoDTO | undefined;\r\n}\r\n\r\nexport class ParkingProcessSubscriptionInfoDTO implements IParkingProcessSubscriptionInfoDTO {\r\n id!: number;\r\n name?: string | undefined;\r\n type!: ParkingSubscriptionType;\r\n usage!: ParkingSubscriptionUsage;\r\n currency!: Currency;\r\n maxParkingDurationInMin?: number | undefined;\r\n denyForeignParkingSubscriptionFallback!: boolean;\r\n parkingCardConfirmationTimeInMinutes!: number;\r\n tariffs?: ParkingProcessTariffInfoDTO[] | undefined;\r\n\r\n constructor(data?: IParkingProcessSubscriptionInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.name = _data[\"name\"];\r\n this.type = _data[\"type\"];\r\n this.usage = _data[\"usage\"];\r\n this.currency = _data[\"currency\"];\r\n this.maxParkingDurationInMin = _data[\"maxParkingDurationInMin\"];\r\n this.denyForeignParkingSubscriptionFallback = _data[\"denyForeignParkingSubscriptionFallback\"];\r\n this.parkingCardConfirmationTimeInMinutes = _data[\"parkingCardConfirmationTimeInMinutes\"];\r\n if (Array.isArray(_data[\"tariffs\"])) {\r\n this.tariffs = [] as any;\r\n for (let item of _data[\"tariffs\"])\r\n this.tariffs!.push(ParkingProcessTariffInfoDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingProcessSubscriptionInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingProcessSubscriptionInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"name\"] = this.name;\r\n data[\"type\"] = this.type;\r\n data[\"usage\"] = this.usage;\r\n data[\"currency\"] = this.currency;\r\n data[\"maxParkingDurationInMin\"] = this.maxParkingDurationInMin;\r\n data[\"denyForeignParkingSubscriptionFallback\"] = this.denyForeignParkingSubscriptionFallback;\r\n data[\"parkingCardConfirmationTimeInMinutes\"] = this.parkingCardConfirmationTimeInMinutes;\r\n if (Array.isArray(this.tariffs)) {\r\n data[\"tariffs\"] = [];\r\n for (let item of this.tariffs)\r\n data[\"tariffs\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingProcessSubscriptionInfoDTO {\r\n id: number;\r\n name?: string | undefined;\r\n type: ParkingSubscriptionType;\r\n usage: ParkingSubscriptionUsage;\r\n currency: Currency;\r\n maxParkingDurationInMin?: number | undefined;\r\n denyForeignParkingSubscriptionFallback: boolean;\r\n parkingCardConfirmationTimeInMinutes: number;\r\n tariffs?: ParkingProcessTariffInfoDTO[] | undefined;\r\n}\r\n\r\nexport class ParkingProcessTariffInfoDTO implements IParkingProcessTariffInfoDTO {\r\n id!: number;\r\n name?: string | undefined;\r\n onWeekDays?: WeekDayFlags | undefined;\r\n startTime?: Duration | undefined;\r\n durationInMinutes?: number | undefined;\r\n maxParkingDurationInMin?: number | undefined;\r\n isTwentyFourSevenTariff!: boolean;\r\n\r\n constructor(data?: IParkingProcessTariffInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.name = _data[\"name\"];\r\n this.onWeekDays = _data[\"onWeekDays\"];\r\n this.startTime = _data[\"startTime\"] ? Duration.fromISO(_data[\"startTime\"].toString()) : undefined;\r\n this.durationInMinutes = _data[\"durationInMinutes\"];\r\n this.maxParkingDurationInMin = _data[\"maxParkingDurationInMin\"];\r\n this.isTwentyFourSevenTariff = _data[\"isTwentyFourSevenTariff\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingProcessTariffInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingProcessTariffInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"name\"] = this.name;\r\n data[\"onWeekDays\"] = this.onWeekDays;\r\n data[\"startTime\"] = this.startTime ? this.startTime.toString() : undefined;\r\n data[\"durationInMinutes\"] = this.durationInMinutes;\r\n data[\"maxParkingDurationInMin\"] = this.maxParkingDurationInMin;\r\n data[\"isTwentyFourSevenTariff\"] = this.isTwentyFourSevenTariff;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingProcessTariffInfoDTO {\r\n id: number;\r\n name?: string | undefined;\r\n onWeekDays?: WeekDayFlags | undefined;\r\n startTime?: Duration | undefined;\r\n durationInMinutes?: number | undefined;\r\n maxParkingDurationInMin?: number | undefined;\r\n isTwentyFourSevenTariff: boolean;\r\n}\r\n\r\nexport class ParkingSubscriptionAssignmentTemplateInfoDTO implements IParkingSubscriptionAssignmentTemplateInfoDTO {\r\n assignmentDurationInMinutes!: number;\r\n templateValidFrom?: DateTime | undefined;\r\n templateValidTo?: DateTime | undefined;\r\n\r\n constructor(data?: IParkingSubscriptionAssignmentTemplateInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.assignmentDurationInMinutes = _data[\"assignmentDurationInMinutes\"];\r\n this.templateValidFrom = _data[\"templateValidFrom\"] ? DateTime.fromISO(_data[\"templateValidFrom\"].toString()) : undefined;\r\n this.templateValidTo = _data[\"templateValidTo\"] ? DateTime.fromISO(_data[\"templateValidTo\"].toString()) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingSubscriptionAssignmentTemplateInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingSubscriptionAssignmentTemplateInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"assignmentDurationInMinutes\"] = this.assignmentDurationInMinutes;\r\n data[\"templateValidFrom\"] = this.templateValidFrom ? this.templateValidFrom.toString() : undefined;\r\n data[\"templateValidTo\"] = this.templateValidTo ? this.templateValidTo.toString() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingSubscriptionAssignmentTemplateInfoDTO {\r\n assignmentDurationInMinutes: number;\r\n templateValidFrom?: DateTime | undefined;\r\n templateValidTo?: DateTime | undefined;\r\n}\r\n\r\nexport class ParkingProcessSubscriptionAssignmentInfoDTO implements IParkingProcessSubscriptionAssignmentInfoDTO {\r\n id!: number;\r\n parkerId!: number;\r\n validTo?: DateTime | undefined;\r\n subscription?: ParkingProcessSubscriptionInfoDTO | undefined;\r\n isFavorite!: boolean;\r\n\r\n constructor(data?: IParkingProcessSubscriptionAssignmentInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.parkerId = _data[\"parkerId\"];\r\n this.validTo = _data[\"validTo\"] ? DateTime.fromISO(_data[\"validTo\"].toString()) : undefined;\r\n this.subscription = _data[\"subscription\"] ? ParkingProcessSubscriptionInfoDTO.fromJS(_data[\"subscription\"]) : undefined;\r\n this.isFavorite = _data[\"isFavorite\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingProcessSubscriptionAssignmentInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingProcessSubscriptionAssignmentInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"parkerId\"] = this.parkerId;\r\n data[\"validTo\"] = this.validTo ? this.validTo.toString() : undefined;\r\n data[\"subscription\"] = this.subscription ? this.subscription.toJSON() : undefined;\r\n data[\"isFavorite\"] = this.isFavorite;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingProcessSubscriptionAssignmentInfoDTO {\r\n id: number;\r\n parkerId: number;\r\n validTo?: DateTime | undefined;\r\n subscription?: ParkingProcessSubscriptionInfoDTO | undefined;\r\n isFavorite: boolean;\r\n}\r\n\r\nexport class ParkingProcessLimitedZoneWithParentInfoDTO implements IParkingProcessLimitedZoneWithParentInfoDTO {\r\n id!: number;\r\n name?: string | undefined;\r\n foreignParkingSubscription?: ParkingProcessSubscriptionInfoDTO | undefined;\r\n foreignParkersAllowed!: boolean;\r\n parent?: ParkingProcessLimitedZoneWithParentInfoDTO | undefined;\r\n\r\n constructor(data?: IParkingProcessLimitedZoneWithParentInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.name = _data[\"name\"];\r\n this.foreignParkingSubscription = _data[\"foreignParkingSubscription\"] ? ParkingProcessSubscriptionInfoDTO.fromJS(_data[\"foreignParkingSubscription\"]) : undefined;\r\n this.foreignParkersAllowed = _data[\"foreignParkersAllowed\"];\r\n this.parent = _data[\"parent\"] ? ParkingProcessLimitedZoneWithParentInfoDTO.fromJS(_data[\"parent\"]) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingProcessLimitedZoneWithParentInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingProcessLimitedZoneWithParentInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"name\"] = this.name;\r\n data[\"foreignParkingSubscription\"] = this.foreignParkingSubscription ? this.foreignParkingSubscription.toJSON() : undefined;\r\n data[\"foreignParkersAllowed\"] = this.foreignParkersAllowed;\r\n data[\"parent\"] = this.parent ? this.parent.toJSON() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingProcessLimitedZoneWithParentInfoDTO {\r\n id: number;\r\n name?: string | undefined;\r\n foreignParkingSubscription?: ParkingProcessSubscriptionInfoDTO | undefined;\r\n foreignParkersAllowed: boolean;\r\n parent?: ParkingProcessLimitedZoneWithParentInfoDTO | undefined;\r\n}\r\n\r\nexport class AuditLogDTO implements IAuditLogDTO {\r\n id!: number;\r\n clientId?: number | undefined;\r\n userName!: string;\r\n timestamp!: DateTime;\r\n entryType!: string;\r\n actionType!: AuditActionType;\r\n keyValues!: string[];\r\n affectedFields!: AuditLogFieldDTO[];\r\n\r\n constructor(data?: IAuditLogDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.keyValues = [];\r\n this.affectedFields = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.userName = _data[\"userName\"];\r\n this.timestamp = _data[\"timestamp\"] ? DateTime.fromISO(_data[\"timestamp\"].toString()) : undefined;\r\n this.entryType = _data[\"entryType\"];\r\n this.actionType = _data[\"actionType\"];\r\n if (Array.isArray(_data[\"keyValues\"])) {\r\n this.keyValues = [] as any;\r\n for (let item of _data[\"keyValues\"])\r\n this.keyValues!.push(item);\r\n }\r\n if (Array.isArray(_data[\"affectedFields\"])) {\r\n this.affectedFields = [] as any;\r\n for (let item of _data[\"affectedFields\"])\r\n this.affectedFields!.push(AuditLogFieldDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): AuditLogDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AuditLogDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"userName\"] = this.userName;\r\n data[\"timestamp\"] = this.timestamp ? this.timestamp.toString() : undefined;\r\n data[\"entryType\"] = this.entryType;\r\n data[\"actionType\"] = this.actionType;\r\n if (Array.isArray(this.keyValues)) {\r\n data[\"keyValues\"] = [];\r\n for (let item of this.keyValues)\r\n data[\"keyValues\"].push(item);\r\n }\r\n if (Array.isArray(this.affectedFields)) {\r\n data[\"affectedFields\"] = [];\r\n for (let item of this.affectedFields)\r\n data[\"affectedFields\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAuditLogDTO {\r\n id: number;\r\n clientId?: number | undefined;\r\n userName: string;\r\n timestamp: DateTime;\r\n entryType: string;\r\n actionType: AuditActionType;\r\n keyValues: string[];\r\n affectedFields: AuditLogFieldDTO[];\r\n}\r\n\r\nexport enum AuditActionType {\r\n Created = 0,\r\n Updated = 1,\r\n Deleted = 2,\r\n UnDeleted = 3,\r\n ParkerListRead = 10,\r\n ParkerDetails = 11,\r\n ReportTagsPerParker = 20,\r\n ReportParkerRegistrations = 21,\r\n ReportFalseRecordings = 22,\r\n ReportParkerExtract = 23,\r\n ReportParkerTurnover = 24,\r\n}\r\n\r\nexport class AuditLogFieldDTO implements IAuditLogFieldDTO {\r\n fieldName!: string;\r\n oldValue?: string | undefined;\r\n newValue?: string | undefined;\r\n\r\n constructor(data?: IAuditLogFieldDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.fieldName = _data[\"fieldName\"];\r\n this.oldValue = _data[\"oldValue\"];\r\n this.newValue = _data[\"newValue\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): AuditLogFieldDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AuditLogFieldDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"fieldName\"] = this.fieldName;\r\n data[\"oldValue\"] = this.oldValue;\r\n data[\"newValue\"] = this.newValue;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAuditLogFieldDTO {\r\n fieldName: string;\r\n oldValue?: string | undefined;\r\n newValue?: string | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfClientDTO implements IPagedResultDTOOfClientDTO {\r\n items?: ClientDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfClientDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(ClientDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfClientDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfClientDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfClientDTO {\r\n items?: ClientDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class PagedResultDTOOfParkerDTO implements IPagedResultDTOOfParkerDTO {\r\n items?: ParkerDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfParkerDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(ParkerDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfParkerDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfParkerDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfParkerDTO {\r\n items?: ParkerDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class ParkerDTO implements IParkerDTO {\r\n id!: number;\r\n clientId!: number;\r\n firstName?: string | undefined;\r\n lastName?: string | undefined;\r\n identification?: string | undefined;\r\n group!: ParkerGroup;\r\n address?: string | undefined;\r\n zip?: string | undefined;\r\n city?: string | undefined;\r\n country?: string | undefined;\r\n privateAddress?: string | undefined;\r\n privateZIP?: string | undefined;\r\n privateCity?: string | undefined;\r\n privateCountry?: string | undefined;\r\n email?: string | undefined;\r\n company?: ParkerCompanyDTO | undefined;\r\n costCenter?: string | undefined;\r\n title?: string | undefined;\r\n entryDate!: DateTime;\r\n exitDate?: DateTime | undefined;\r\n mobile?: string | undefined;\r\n phone?: string | undefined;\r\n billing!: boolean;\r\n active!: boolean;\r\n workplace?: string | undefined;\r\n employmentPercentage!: number;\r\n billingCurrency!: Currency;\r\n linkedUserUserName?: string | undefined;\r\n userLinkCodeValidUntil?: DateTime | undefined;\r\n creationType!: ParkerCreationType;\r\n tags?: ParkerTagDTO[] | undefined;\r\n parkerSubscriptionAssignments?: ParkerSubscriptionAssignmentDTO[] | undefined;\r\n modifiedOn!: DateTime;\r\n modifiedBy?: string | undefined;\r\n custom1?: string | undefined;\r\n custom2?: string | undefined;\r\n custom3?: string | undefined;\r\n custom4?: string | undefined;\r\n custom5?: string | undefined;\r\n custom6?: string | undefined;\r\n custom7?: string | undefined;\r\n custom8?: string | undefined;\r\n custom9?: string | undefined;\r\n comment?: string | undefined;\r\n\r\n constructor(data?: IParkerDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.firstName = _data[\"firstName\"];\r\n this.lastName = _data[\"lastName\"];\r\n this.identification = _data[\"identification\"];\r\n this.group = _data[\"group\"];\r\n this.address = _data[\"address\"];\r\n this.zip = _data[\"zip\"];\r\n this.city = _data[\"city\"];\r\n this.country = _data[\"country\"];\r\n this.privateAddress = _data[\"privateAddress\"];\r\n this.privateZIP = _data[\"privateZIP\"];\r\n this.privateCity = _data[\"privateCity\"];\r\n this.privateCountry = _data[\"privateCountry\"];\r\n this.email = _data[\"email\"];\r\n this.company = _data[\"company\"] ? ParkerCompanyDTO.fromJS(_data[\"company\"]) : undefined;\r\n this.costCenter = _data[\"costCenter\"];\r\n this.title = _data[\"title\"];\r\n this.entryDate = _data[\"entryDate\"] ? DateTime.fromISO(_data[\"entryDate\"].toString()) : undefined;\r\n this.exitDate = _data[\"exitDate\"] ? DateTime.fromISO(_data[\"exitDate\"].toString()) : undefined;\r\n this.mobile = _data[\"mobile\"];\r\n this.phone = _data[\"phone\"];\r\n this.billing = _data[\"billing\"];\r\n this.active = _data[\"active\"];\r\n this.workplace = _data[\"workplace\"];\r\n this.employmentPercentage = _data[\"employmentPercentage\"];\r\n this.billingCurrency = _data[\"billingCurrency\"];\r\n this.linkedUserUserName = _data[\"linkedUserUserName\"];\r\n this.userLinkCodeValidUntil = _data[\"userLinkCodeValidUntil\"] ? DateTime.fromISO(_data[\"userLinkCodeValidUntil\"].toString()) : undefined;\r\n this.creationType = _data[\"creationType\"];\r\n if (Array.isArray(_data[\"tags\"])) {\r\n this.tags = [] as any;\r\n for (let item of _data[\"tags\"])\r\n this.tags!.push(ParkerTagDTO.fromJS(item));\r\n }\r\n if (Array.isArray(_data[\"parkerSubscriptionAssignments\"])) {\r\n this.parkerSubscriptionAssignments = [] as any;\r\n for (let item of _data[\"parkerSubscriptionAssignments\"])\r\n this.parkerSubscriptionAssignments!.push(ParkerSubscriptionAssignmentDTO.fromJS(item));\r\n }\r\n this.modifiedOn = _data[\"modifiedOn\"] ? DateTime.fromISO(_data[\"modifiedOn\"].toString()) : undefined;\r\n this.modifiedBy = _data[\"modifiedBy\"];\r\n this.custom1 = _data[\"custom1\"];\r\n this.custom2 = _data[\"custom2\"];\r\n this.custom3 = _data[\"custom3\"];\r\n this.custom4 = _data[\"custom4\"];\r\n this.custom5 = _data[\"custom5\"];\r\n this.custom6 = _data[\"custom6\"];\r\n this.custom7 = _data[\"custom7\"];\r\n this.custom8 = _data[\"custom8\"];\r\n this.custom9 = _data[\"custom9\"];\r\n this.comment = _data[\"comment\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkerDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"firstName\"] = this.firstName;\r\n data[\"lastName\"] = this.lastName;\r\n data[\"identification\"] = this.identification;\r\n data[\"group\"] = this.group;\r\n data[\"address\"] = this.address;\r\n data[\"zip\"] = this.zip;\r\n data[\"city\"] = this.city;\r\n data[\"country\"] = this.country;\r\n data[\"privateAddress\"] = this.privateAddress;\r\n data[\"privateZIP\"] = this.privateZIP;\r\n data[\"privateCity\"] = this.privateCity;\r\n data[\"privateCountry\"] = this.privateCountry;\r\n data[\"email\"] = this.email;\r\n data[\"company\"] = this.company ? this.company.toJSON() : undefined;\r\n data[\"costCenter\"] = this.costCenter;\r\n data[\"title\"] = this.title;\r\n data[\"entryDate\"] = this.entryDate ? this.entryDate.toString() : undefined;\r\n data[\"exitDate\"] = this.exitDate ? this.exitDate.toString() : undefined;\r\n data[\"mobile\"] = this.mobile;\r\n data[\"phone\"] = this.phone;\r\n data[\"billing\"] = this.billing;\r\n data[\"active\"] = this.active;\r\n data[\"workplace\"] = this.workplace;\r\n data[\"employmentPercentage\"] = this.employmentPercentage;\r\n data[\"billingCurrency\"] = this.billingCurrency;\r\n data[\"linkedUserUserName\"] = this.linkedUserUserName;\r\n data[\"userLinkCodeValidUntil\"] = this.userLinkCodeValidUntil ? this.userLinkCodeValidUntil.toString() : undefined;\r\n data[\"creationType\"] = this.creationType;\r\n if (Array.isArray(this.tags)) {\r\n data[\"tags\"] = [];\r\n for (let item of this.tags)\r\n data[\"tags\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.parkerSubscriptionAssignments)) {\r\n data[\"parkerSubscriptionAssignments\"] = [];\r\n for (let item of this.parkerSubscriptionAssignments)\r\n data[\"parkerSubscriptionAssignments\"].push(item.toJSON());\r\n }\r\n data[\"modifiedOn\"] = this.modifiedOn ? this.modifiedOn.toString() : undefined;\r\n data[\"modifiedBy\"] = this.modifiedBy;\r\n data[\"custom1\"] = this.custom1;\r\n data[\"custom2\"] = this.custom2;\r\n data[\"custom3\"] = this.custom3;\r\n data[\"custom4\"] = this.custom4;\r\n data[\"custom5\"] = this.custom5;\r\n data[\"custom6\"] = this.custom6;\r\n data[\"custom7\"] = this.custom7;\r\n data[\"custom8\"] = this.custom8;\r\n data[\"custom9\"] = this.custom9;\r\n data[\"comment\"] = this.comment;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerDTO {\r\n id: number;\r\n clientId: number;\r\n firstName?: string | undefined;\r\n lastName?: string | undefined;\r\n identification?: string | undefined;\r\n group: ParkerGroup;\r\n address?: string | undefined;\r\n zip?: string | undefined;\r\n city?: string | undefined;\r\n country?: string | undefined;\r\n privateAddress?: string | undefined;\r\n privateZIP?: string | undefined;\r\n privateCity?: string | undefined;\r\n privateCountry?: string | undefined;\r\n email?: string | undefined;\r\n company?: ParkerCompanyDTO | undefined;\r\n costCenter?: string | undefined;\r\n title?: string | undefined;\r\n entryDate: DateTime;\r\n exitDate?: DateTime | undefined;\r\n mobile?: string | undefined;\r\n phone?: string | undefined;\r\n billing: boolean;\r\n active: boolean;\r\n workplace?: string | undefined;\r\n employmentPercentage: number;\r\n billingCurrency: Currency;\r\n linkedUserUserName?: string | undefined;\r\n userLinkCodeValidUntil?: DateTime | undefined;\r\n creationType: ParkerCreationType;\r\n tags?: ParkerTagDTO[] | undefined;\r\n parkerSubscriptionAssignments?: ParkerSubscriptionAssignmentDTO[] | undefined;\r\n modifiedOn: DateTime;\r\n modifiedBy?: string | undefined;\r\n custom1?: string | undefined;\r\n custom2?: string | undefined;\r\n custom3?: string | undefined;\r\n custom4?: string | undefined;\r\n custom5?: string | undefined;\r\n custom6?: string | undefined;\r\n custom7?: string | undefined;\r\n custom8?: string | undefined;\r\n custom9?: string | undefined;\r\n comment?: string | undefined;\r\n}\r\n\r\nexport enum ParkerCreationType {\r\n ManuallyCreated = 0,\r\n CreatedByProxy = 1,\r\n AutomaticallyCreatedByUser = 2,\r\n}\r\n\r\nexport class ParkerExtractFullReportDataDTO implements IParkerExtractFullReportDataDTO {\r\n parkingSessions!: ParkerExtractReportDTO[];\r\n summary!: ParkerExtractReportSummaryDTO;\r\n\r\n constructor(data?: IParkerExtractFullReportDataDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.parkingSessions = [];\r\n this.summary = new ParkerExtractReportSummaryDTO();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"parkingSessions\"])) {\r\n this.parkingSessions = [] as any;\r\n for (let item of _data[\"parkingSessions\"])\r\n this.parkingSessions!.push(ParkerExtractReportDTO.fromJS(item));\r\n }\r\n this.summary = _data[\"summary\"] ? ParkerExtractReportSummaryDTO.fromJS(_data[\"summary\"]) : new ParkerExtractReportSummaryDTO();\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkerExtractFullReportDataDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerExtractFullReportDataDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.parkingSessions)) {\r\n data[\"parkingSessions\"] = [];\r\n for (let item of this.parkingSessions)\r\n data[\"parkingSessions\"].push(item.toJSON());\r\n }\r\n data[\"summary\"] = this.summary ? this.summary.toJSON() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerExtractFullReportDataDTO {\r\n parkingSessions: ParkerExtractReportDTO[];\r\n summary: ParkerExtractReportSummaryDTO;\r\n}\r\n\r\nexport class ParkerExtractReportDTO implements IParkerExtractReportDTO {\r\n parker?: ParkerInfoDTO | undefined;\r\n entryDate!: DateTime;\r\n exitDate!: DateTime;\r\n durationInMinutes!: number;\r\n knownTag?: ParkerTagDTO | undefined;\r\n zone?: ZoneDTO | undefined;\r\n subscriptionName?: string | undefined;\r\n amount!: number;\r\n currency!: Currency;\r\n calculationRoadmap?: string | undefined;\r\n sessionOpeningEventType!: SessionEventType;\r\n isVisitorParking!: boolean;\r\n\r\n constructor(data?: IParkerExtractReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.parker = _data[\"parker\"] ? ParkerInfoDTO.fromJS(_data[\"parker\"]) : undefined;\r\n this.entryDate = _data[\"entryDate\"] ? DateTime.fromISO(_data[\"entryDate\"].toString()) : undefined;\r\n this.exitDate = _data[\"exitDate\"] ? DateTime.fromISO(_data[\"exitDate\"].toString()) : undefined;\r\n this.durationInMinutes = _data[\"durationInMinutes\"];\r\n this.knownTag = _data[\"knownTag\"] ? ParkerTagDTO.fromJS(_data[\"knownTag\"]) : undefined;\r\n this.zone = _data[\"zone\"] ? ZoneDTO.fromJS(_data[\"zone\"]) : undefined;\r\n this.subscriptionName = _data[\"subscriptionName\"];\r\n this.amount = _data[\"amount\"];\r\n this.currency = _data[\"currency\"];\r\n this.calculationRoadmap = _data[\"calculationRoadmap\"];\r\n this.sessionOpeningEventType = _data[\"sessionOpeningEventType\"];\r\n this.isVisitorParking = _data[\"isVisitorParking\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkerExtractReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerExtractReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"parker\"] = this.parker ? this.parker.toJSON() : undefined;\r\n data[\"entryDate\"] = this.entryDate ? this.entryDate.toString() : undefined;\r\n data[\"exitDate\"] = this.exitDate ? this.exitDate.toString() : undefined;\r\n data[\"durationInMinutes\"] = this.durationInMinutes;\r\n data[\"knownTag\"] = this.knownTag ? this.knownTag.toJSON() : undefined;\r\n data[\"zone\"] = this.zone ? this.zone.toJSON() : undefined;\r\n data[\"subscriptionName\"] = this.subscriptionName;\r\n data[\"amount\"] = this.amount;\r\n data[\"currency\"] = this.currency;\r\n data[\"calculationRoadmap\"] = this.calculationRoadmap;\r\n data[\"sessionOpeningEventType\"] = this.sessionOpeningEventType;\r\n data[\"isVisitorParking\"] = this.isVisitorParking;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerExtractReportDTO {\r\n parker?: ParkerInfoDTO | undefined;\r\n entryDate: DateTime;\r\n exitDate: DateTime;\r\n durationInMinutes: number;\r\n knownTag?: ParkerTagDTO | undefined;\r\n zone?: ZoneDTO | undefined;\r\n subscriptionName?: string | undefined;\r\n amount: number;\r\n currency: Currency;\r\n calculationRoadmap?: string | undefined;\r\n sessionOpeningEventType: SessionEventType;\r\n isVisitorParking: boolean;\r\n}\r\n\r\nexport class ZoneDTO implements IZoneDTO {\r\n id!: number;\r\n name?: string | undefined;\r\n clientId!: number;\r\n parentId?: number | undefined;\r\n isGroupingElement!: boolean;\r\n separateNFCCode!: boolean;\r\n nfcCode?: string | undefined;\r\n enableGPSDetection!: boolean;\r\n zoneGPSArea?: string | undefined;\r\n foreignParkersAllowed!: boolean;\r\n foreignParkingSubscription?: ParkingSubscriptionDTO | undefined;\r\n maxPassageTime!: number;\r\n parkingSpaceNumberDefinition?: string | undefined;\r\n parkingSpaceCapacity?: number | undefined;\r\n currentParkerCount!: number;\r\n deleted!: boolean;\r\n assignedTariffs?: number[] | undefined;\r\n hasDevicesAssigned!: boolean;\r\n hasChildZones!: boolean;\r\n useBlacklistArea!: boolean;\r\n blacklistGPSArea?: string | undefined;\r\n\r\n constructor(data?: IZoneDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.name = _data[\"name\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.parentId = _data[\"parentId\"];\r\n this.isGroupingElement = _data[\"isGroupingElement\"];\r\n this.separateNFCCode = _data[\"separateNFCCode\"];\r\n this.nfcCode = _data[\"nfcCode\"];\r\n this.enableGPSDetection = _data[\"enableGPSDetection\"];\r\n this.zoneGPSArea = _data[\"zoneGPSArea\"];\r\n this.foreignParkersAllowed = _data[\"foreignParkersAllowed\"];\r\n this.foreignParkingSubscription = _data[\"foreignParkingSubscription\"] ? ParkingSubscriptionDTO.fromJS(_data[\"foreignParkingSubscription\"]) : undefined;\r\n this.maxPassageTime = _data[\"maxPassageTime\"];\r\n this.parkingSpaceNumberDefinition = _data[\"parkingSpaceNumberDefinition\"];\r\n this.parkingSpaceCapacity = _data[\"parkingSpaceCapacity\"];\r\n this.currentParkerCount = _data[\"currentParkerCount\"];\r\n this.deleted = _data[\"deleted\"];\r\n if (Array.isArray(_data[\"assignedTariffs\"])) {\r\n this.assignedTariffs = [] as any;\r\n for (let item of _data[\"assignedTariffs\"])\r\n this.assignedTariffs!.push(item);\r\n }\r\n this.hasDevicesAssigned = _data[\"hasDevicesAssigned\"];\r\n this.hasChildZones = _data[\"hasChildZones\"];\r\n this.useBlacklistArea = _data[\"useBlacklistArea\"];\r\n this.blacklistGPSArea = _data[\"blacklistGPSArea\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ZoneDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"name\"] = this.name;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"parentId\"] = this.parentId;\r\n data[\"isGroupingElement\"] = this.isGroupingElement;\r\n data[\"separateNFCCode\"] = this.separateNFCCode;\r\n data[\"nfcCode\"] = this.nfcCode;\r\n data[\"enableGPSDetection\"] = this.enableGPSDetection;\r\n data[\"zoneGPSArea\"] = this.zoneGPSArea;\r\n data[\"foreignParkersAllowed\"] = this.foreignParkersAllowed;\r\n data[\"foreignParkingSubscription\"] = this.foreignParkingSubscription ? this.foreignParkingSubscription.toJSON() : undefined;\r\n data[\"maxPassageTime\"] = this.maxPassageTime;\r\n data[\"parkingSpaceNumberDefinition\"] = this.parkingSpaceNumberDefinition;\r\n data[\"parkingSpaceCapacity\"] = this.parkingSpaceCapacity;\r\n data[\"currentParkerCount\"] = this.currentParkerCount;\r\n data[\"deleted\"] = this.deleted;\r\n if (Array.isArray(this.assignedTariffs)) {\r\n data[\"assignedTariffs\"] = [];\r\n for (let item of this.assignedTariffs)\r\n data[\"assignedTariffs\"].push(item);\r\n }\r\n data[\"hasDevicesAssigned\"] = this.hasDevicesAssigned;\r\n data[\"hasChildZones\"] = this.hasChildZones;\r\n data[\"useBlacklistArea\"] = this.useBlacklistArea;\r\n data[\"blacklistGPSArea\"] = this.blacklistGPSArea;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDTO {\r\n id: number;\r\n name?: string | undefined;\r\n clientId: number;\r\n parentId?: number | undefined;\r\n isGroupingElement: boolean;\r\n separateNFCCode: boolean;\r\n nfcCode?: string | undefined;\r\n enableGPSDetection: boolean;\r\n zoneGPSArea?: string | undefined;\r\n foreignParkersAllowed: boolean;\r\n foreignParkingSubscription?: ParkingSubscriptionDTO | undefined;\r\n maxPassageTime: number;\r\n parkingSpaceNumberDefinition?: string | undefined;\r\n parkingSpaceCapacity?: number | undefined;\r\n currentParkerCount: number;\r\n deleted: boolean;\r\n assignedTariffs?: number[] | undefined;\r\n hasDevicesAssigned: boolean;\r\n hasChildZones: boolean;\r\n useBlacklistArea: boolean;\r\n blacklistGPSArea?: string | undefined;\r\n}\r\n\r\nexport class ParkingSubscriptionDTO implements IParkingSubscriptionDTO {\r\n id!: number;\r\n clientId!: number;\r\n active!: boolean;\r\n assignable!: boolean;\r\n name?: string | undefined;\r\n type!: ParkingSubscriptionType;\r\n description?: string | undefined;\r\n multipleCarsPerUserTreatAs!: MultipleCarsPerUserTreatAs;\r\n chargeCap?: number | undefined;\r\n chargeCapPerMonth!: boolean;\r\n chargeInRelationToEmploymentPercentage!: boolean;\r\n fixPricePerMonth?: number | undefined;\r\n basePricePerDay?: number | undefined;\r\n currency!: Currency;\r\n denyForeignParkingSubscriptionFallback!: boolean;\r\n sessionIsExtendable!: boolean;\r\n maxParkingDurationInMin?: number | undefined;\r\n structuralEntries?: ConfigBasedStructuralEntryDTO[] | undefined;\r\n roundSessionFeeToXCents!: number;\r\n usage!: ParkingSubscriptionUsage;\r\n paidBy!: ParkingSubscriptionPaidBy;\r\n parkingCardConfirmationTimeInMinutes!: number;\r\n modifiedOn!: DateTime;\r\n modifiedBy?: string | undefined;\r\n tariffs?: ParkingTariffLimitedDTO[] | undefined;\r\n\r\n constructor(data?: IParkingSubscriptionDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.active = _data[\"active\"];\r\n this.assignable = _data[\"assignable\"];\r\n this.name = _data[\"name\"];\r\n this.type = _data[\"type\"];\r\n this.description = _data[\"description\"];\r\n this.multipleCarsPerUserTreatAs = _data[\"multipleCarsPerUserTreatAs\"];\r\n this.chargeCap = _data[\"chargeCap\"];\r\n this.chargeCapPerMonth = _data[\"chargeCapPerMonth\"];\r\n this.chargeInRelationToEmploymentPercentage = _data[\"chargeInRelationToEmploymentPercentage\"];\r\n this.fixPricePerMonth = _data[\"fixPricePerMonth\"];\r\n this.basePricePerDay = _data[\"basePricePerDay\"];\r\n this.currency = _data[\"currency\"];\r\n this.denyForeignParkingSubscriptionFallback = _data[\"denyForeignParkingSubscriptionFallback\"];\r\n this.sessionIsExtendable = _data[\"sessionIsExtendable\"];\r\n this.maxParkingDurationInMin = _data[\"maxParkingDurationInMin\"];\r\n if (Array.isArray(_data[\"structuralEntries\"])) {\r\n this.structuralEntries = [] as any;\r\n for (let item of _data[\"structuralEntries\"])\r\n this.structuralEntries!.push(ConfigBasedStructuralEntryDTO.fromJS(item));\r\n }\r\n this.roundSessionFeeToXCents = _data[\"roundSessionFeeToXCents\"];\r\n this.usage = _data[\"usage\"];\r\n this.paidBy = _data[\"paidBy\"];\r\n this.parkingCardConfirmationTimeInMinutes = _data[\"parkingCardConfirmationTimeInMinutes\"];\r\n this.modifiedOn = _data[\"modifiedOn\"] ? DateTime.fromISO(_data[\"modifiedOn\"].toString()) : undefined;\r\n this.modifiedBy = _data[\"modifiedBy\"];\r\n if (Array.isArray(_data[\"tariffs\"])) {\r\n this.tariffs = [] as any;\r\n for (let item of _data[\"tariffs\"])\r\n this.tariffs!.push(ParkingTariffLimitedDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingSubscriptionDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingSubscriptionDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"active\"] = this.active;\r\n data[\"assignable\"] = this.assignable;\r\n data[\"name\"] = this.name;\r\n data[\"type\"] = this.type;\r\n data[\"description\"] = this.description;\r\n data[\"multipleCarsPerUserTreatAs\"] = this.multipleCarsPerUserTreatAs;\r\n data[\"chargeCap\"] = this.chargeCap;\r\n data[\"chargeCapPerMonth\"] = this.chargeCapPerMonth;\r\n data[\"chargeInRelationToEmploymentPercentage\"] = this.chargeInRelationToEmploymentPercentage;\r\n data[\"fixPricePerMonth\"] = this.fixPricePerMonth;\r\n data[\"basePricePerDay\"] = this.basePricePerDay;\r\n data[\"currency\"] = this.currency;\r\n data[\"denyForeignParkingSubscriptionFallback\"] = this.denyForeignParkingSubscriptionFallback;\r\n data[\"sessionIsExtendable\"] = this.sessionIsExtendable;\r\n data[\"maxParkingDurationInMin\"] = this.maxParkingDurationInMin;\r\n if (Array.isArray(this.structuralEntries)) {\r\n data[\"structuralEntries\"] = [];\r\n for (let item of this.structuralEntries)\r\n data[\"structuralEntries\"].push(item.toJSON());\r\n }\r\n data[\"roundSessionFeeToXCents\"] = this.roundSessionFeeToXCents;\r\n data[\"usage\"] = this.usage;\r\n data[\"paidBy\"] = this.paidBy;\r\n data[\"parkingCardConfirmationTimeInMinutes\"] = this.parkingCardConfirmationTimeInMinutes;\r\n data[\"modifiedOn\"] = this.modifiedOn ? this.modifiedOn.toString() : undefined;\r\n data[\"modifiedBy\"] = this.modifiedBy;\r\n if (Array.isArray(this.tariffs)) {\r\n data[\"tariffs\"] = [];\r\n for (let item of this.tariffs)\r\n data[\"tariffs\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingSubscriptionDTO {\r\n id: number;\r\n clientId: number;\r\n active: boolean;\r\n assignable: boolean;\r\n name?: string | undefined;\r\n type: ParkingSubscriptionType;\r\n description?: string | undefined;\r\n multipleCarsPerUserTreatAs: MultipleCarsPerUserTreatAs;\r\n chargeCap?: number | undefined;\r\n chargeCapPerMonth: boolean;\r\n chargeInRelationToEmploymentPercentage: boolean;\r\n fixPricePerMonth?: number | undefined;\r\n basePricePerDay?: number | undefined;\r\n currency: Currency;\r\n denyForeignParkingSubscriptionFallback: boolean;\r\n sessionIsExtendable: boolean;\r\n maxParkingDurationInMin?: number | undefined;\r\n structuralEntries?: ConfigBasedStructuralEntryDTO[] | undefined;\r\n roundSessionFeeToXCents: number;\r\n usage: ParkingSubscriptionUsage;\r\n paidBy: ParkingSubscriptionPaidBy;\r\n parkingCardConfirmationTimeInMinutes: number;\r\n modifiedOn: DateTime;\r\n modifiedBy?: string | undefined;\r\n tariffs?: ParkingTariffLimitedDTO[] | undefined;\r\n}\r\n\r\nexport enum MultipleCarsPerUserTreatAs {\r\n Forbidden = 0,\r\n OneCar = 1,\r\n MultipleCars = 2,\r\n}\r\n\r\nexport class ConfigBasedStructuralEntryDTO implements IConfigBasedStructuralEntryDTO {\r\n id!: number;\r\n clientId!: number;\r\n name!: string;\r\n parentId?: number | undefined;\r\n hasChildEntries!: boolean;\r\n hasSubscriptions!: boolean;\r\n isSubscriptionSet!: boolean;\r\n\r\n constructor(data?: IConfigBasedStructuralEntryDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.name = _data[\"name\"];\r\n this.parentId = _data[\"parentId\"];\r\n this.hasChildEntries = _data[\"hasChildEntries\"];\r\n this.hasSubscriptions = _data[\"hasSubscriptions\"];\r\n this.isSubscriptionSet = _data[\"isSubscriptionSet\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ConfigBasedStructuralEntryDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ConfigBasedStructuralEntryDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"name\"] = this.name;\r\n data[\"parentId\"] = this.parentId;\r\n data[\"hasChildEntries\"] = this.hasChildEntries;\r\n data[\"hasSubscriptions\"] = this.hasSubscriptions;\r\n data[\"isSubscriptionSet\"] = this.isSubscriptionSet;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IConfigBasedStructuralEntryDTO {\r\n id: number;\r\n clientId: number;\r\n name: string;\r\n parentId?: number | undefined;\r\n hasChildEntries: boolean;\r\n hasSubscriptions: boolean;\r\n isSubscriptionSet: boolean;\r\n}\r\n\r\nexport class ParkingTariffLimitedDTO implements IParkingTariffLimitedDTO {\r\n id!: number;\r\n clientId!: number;\r\n active!: boolean;\r\n deleted!: boolean;\r\n name?: string | undefined;\r\n description?: string | undefined;\r\n subscriptionId?: number | undefined;\r\n isDeviceControlTariff!: boolean;\r\n\r\n constructor(data?: IParkingTariffLimitedDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.active = _data[\"active\"];\r\n this.deleted = _data[\"deleted\"];\r\n this.name = _data[\"name\"];\r\n this.description = _data[\"description\"];\r\n this.subscriptionId = _data[\"subscriptionId\"];\r\n this.isDeviceControlTariff = _data[\"isDeviceControlTariff\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingTariffLimitedDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingTariffLimitedDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"active\"] = this.active;\r\n data[\"deleted\"] = this.deleted;\r\n data[\"name\"] = this.name;\r\n data[\"description\"] = this.description;\r\n data[\"subscriptionId\"] = this.subscriptionId;\r\n data[\"isDeviceControlTariff\"] = this.isDeviceControlTariff;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingTariffLimitedDTO {\r\n id: number;\r\n clientId: number;\r\n active: boolean;\r\n deleted: boolean;\r\n name?: string | undefined;\r\n description?: string | undefined;\r\n subscriptionId?: number | undefined;\r\n isDeviceControlTariff: boolean;\r\n}\r\n\r\nexport enum SessionEventType {\r\n ParkingRanger = 0,\r\n Manually = 1,\r\n Automatic = 2,\r\n AutomaticParkingSchedule = 3,\r\n Device = 4,\r\n Unknown = 5,\r\n AdminIntervention = 6,\r\n}\r\n\r\nexport class ParkerExtractReportSummaryDTO implements IParkerExtractReportSummaryDTO {\r\n chargedAmount!: number;\r\n totalNumberOfParkings!: number;\r\n calculationSummary?: string | undefined;\r\n currency!: Currency;\r\n subscriptionSummary?: ParkerExtractReportSubscriptionSummaryDTO[] | undefined;\r\n\r\n constructor(data?: IParkerExtractReportSummaryDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.chargedAmount = _data[\"chargedAmount\"];\r\n this.totalNumberOfParkings = _data[\"totalNumberOfParkings\"];\r\n this.calculationSummary = _data[\"calculationSummary\"];\r\n this.currency = _data[\"currency\"];\r\n if (Array.isArray(_data[\"subscriptionSummary\"])) {\r\n this.subscriptionSummary = [] as any;\r\n for (let item of _data[\"subscriptionSummary\"])\r\n this.subscriptionSummary!.push(ParkerExtractReportSubscriptionSummaryDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkerExtractReportSummaryDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerExtractReportSummaryDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"chargedAmount\"] = this.chargedAmount;\r\n data[\"totalNumberOfParkings\"] = this.totalNumberOfParkings;\r\n data[\"calculationSummary\"] = this.calculationSummary;\r\n data[\"currency\"] = this.currency;\r\n if (Array.isArray(this.subscriptionSummary)) {\r\n data[\"subscriptionSummary\"] = [];\r\n for (let item of this.subscriptionSummary)\r\n data[\"subscriptionSummary\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerExtractReportSummaryDTO {\r\n chargedAmount: number;\r\n totalNumberOfParkings: number;\r\n calculationSummary?: string | undefined;\r\n currency: Currency;\r\n subscriptionSummary?: ParkerExtractReportSubscriptionSummaryDTO[] | undefined;\r\n}\r\n\r\nexport class ParkerExtractReportSubscriptionSummaryDTO implements IParkerExtractReportSubscriptionSummaryDTO {\r\n subscriptionId!: number;\r\n subscriptionName?: string | undefined;\r\n chargedAmount!: number;\r\n currency!: Currency;\r\n appliedStartDate!: DateTime;\r\n appliedEndDate!: DateTime;\r\n monthlyFixedPrice?: number | undefined;\r\n fixedFee?: number | undefined;\r\n feeFromParkingSessions?: number | undefined;\r\n cap?: number | undefined;\r\n totalParkingWithCap?: number | undefined;\r\n currencyConversionFactor?: number | undefined;\r\n convertedCurrency!: Currency;\r\n convertedChargedAmount!: number;\r\n\r\n constructor(data?: IParkerExtractReportSubscriptionSummaryDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.subscriptionId = _data[\"subscriptionId\"];\r\n this.subscriptionName = _data[\"subscriptionName\"];\r\n this.chargedAmount = _data[\"chargedAmount\"];\r\n this.currency = _data[\"currency\"];\r\n this.appliedStartDate = _data[\"appliedStartDate\"] ? DateTime.fromISO(_data[\"appliedStartDate\"].toString()) : undefined;\r\n this.appliedEndDate = _data[\"appliedEndDate\"] ? DateTime.fromISO(_data[\"appliedEndDate\"].toString()) : undefined;\r\n this.monthlyFixedPrice = _data[\"monthlyFixedPrice\"];\r\n this.fixedFee = _data[\"fixedFee\"];\r\n this.feeFromParkingSessions = _data[\"feeFromParkingSessions\"];\r\n this.cap = _data[\"cap\"];\r\n this.totalParkingWithCap = _data[\"totalParkingWithCap\"];\r\n this.currencyConversionFactor = _data[\"currencyConversionFactor\"];\r\n this.convertedCurrency = _data[\"convertedCurrency\"];\r\n this.convertedChargedAmount = _data[\"convertedChargedAmount\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkerExtractReportSubscriptionSummaryDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerExtractReportSubscriptionSummaryDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"subscriptionId\"] = this.subscriptionId;\r\n data[\"subscriptionName\"] = this.subscriptionName;\r\n data[\"chargedAmount\"] = this.chargedAmount;\r\n data[\"currency\"] = this.currency;\r\n data[\"appliedStartDate\"] = this.appliedStartDate ? this.appliedStartDate.toString() : undefined;\r\n data[\"appliedEndDate\"] = this.appliedEndDate ? this.appliedEndDate.toString() : undefined;\r\n data[\"monthlyFixedPrice\"] = this.monthlyFixedPrice;\r\n data[\"fixedFee\"] = this.fixedFee;\r\n data[\"feeFromParkingSessions\"] = this.feeFromParkingSessions;\r\n data[\"cap\"] = this.cap;\r\n data[\"totalParkingWithCap\"] = this.totalParkingWithCap;\r\n data[\"currencyConversionFactor\"] = this.currencyConversionFactor;\r\n data[\"convertedCurrency\"] = this.convertedCurrency;\r\n data[\"convertedChargedAmount\"] = this.convertedChargedAmount;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerExtractReportSubscriptionSummaryDTO {\r\n subscriptionId: number;\r\n subscriptionName?: string | undefined;\r\n chargedAmount: number;\r\n currency: Currency;\r\n appliedStartDate: DateTime;\r\n appliedEndDate: DateTime;\r\n monthlyFixedPrice?: number | undefined;\r\n fixedFee?: number | undefined;\r\n feeFromParkingSessions?: number | undefined;\r\n cap?: number | undefined;\r\n totalParkingWithCap?: number | undefined;\r\n currencyConversionFactor?: number | undefined;\r\n convertedCurrency: Currency;\r\n convertedChargedAmount: number;\r\n}\r\n\r\nexport class CreateClientDTO implements ICreateClientDTO {\r\n address?: string | undefined;\r\n city?: string | undefined;\r\n email?: string | undefined;\r\n name!: string;\r\n phoneNumber?: string | undefined;\r\n zip?: string | undefined;\r\n dataRetentionPeriodInDays!: number;\r\n clientIdent!: string;\r\n automaticParkingSchedulesEnabled!: boolean;\r\n automaticParkingScheduleToleranceInMinutes!: number;\r\n qrCodeIdentificationEnabled!: boolean;\r\n auditLogEnabled!: boolean;\r\n custom1Name?: string | undefined;\r\n custom2Name?: string | undefined;\r\n custom3Name?: string | undefined;\r\n custom4Name?: string | undefined;\r\n custom5Name?: string | undefined;\r\n custom6Name?: string | undefined;\r\n custom7Name?: string | undefined;\r\n custom8Name?: string | undefined;\r\n custom9Name?: string | undefined;\r\n\r\n constructor(data?: ICreateClientDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.address = _data[\"address\"];\r\n this.city = _data[\"city\"];\r\n this.email = _data[\"email\"];\r\n this.name = _data[\"name\"];\r\n this.phoneNumber = _data[\"phoneNumber\"];\r\n this.zip = _data[\"zip\"];\r\n this.dataRetentionPeriodInDays = _data[\"dataRetentionPeriodInDays\"];\r\n this.clientIdent = _data[\"clientIdent\"];\r\n this.automaticParkingSchedulesEnabled = _data[\"automaticParkingSchedulesEnabled\"];\r\n this.automaticParkingScheduleToleranceInMinutes = _data[\"automaticParkingScheduleToleranceInMinutes\"];\r\n this.qrCodeIdentificationEnabled = _data[\"qrCodeIdentificationEnabled\"];\r\n this.auditLogEnabled = _data[\"auditLogEnabled\"];\r\n this.custom1Name = _data[\"custom1Name\"];\r\n this.custom2Name = _data[\"custom2Name\"];\r\n this.custom3Name = _data[\"custom3Name\"];\r\n this.custom4Name = _data[\"custom4Name\"];\r\n this.custom5Name = _data[\"custom5Name\"];\r\n this.custom6Name = _data[\"custom6Name\"];\r\n this.custom7Name = _data[\"custom7Name\"];\r\n this.custom8Name = _data[\"custom8Name\"];\r\n this.custom9Name = _data[\"custom9Name\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateClientDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateClientDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"address\"] = this.address;\r\n data[\"city\"] = this.city;\r\n data[\"email\"] = this.email;\r\n data[\"name\"] = this.name;\r\n data[\"phoneNumber\"] = this.phoneNumber;\r\n data[\"zip\"] = this.zip;\r\n data[\"dataRetentionPeriodInDays\"] = this.dataRetentionPeriodInDays;\r\n data[\"clientIdent\"] = this.clientIdent;\r\n data[\"automaticParkingSchedulesEnabled\"] = this.automaticParkingSchedulesEnabled;\r\n data[\"automaticParkingScheduleToleranceInMinutes\"] = this.automaticParkingScheduleToleranceInMinutes;\r\n data[\"qrCodeIdentificationEnabled\"] = this.qrCodeIdentificationEnabled;\r\n data[\"auditLogEnabled\"] = this.auditLogEnabled;\r\n data[\"custom1Name\"] = this.custom1Name;\r\n data[\"custom2Name\"] = this.custom2Name;\r\n data[\"custom3Name\"] = this.custom3Name;\r\n data[\"custom4Name\"] = this.custom4Name;\r\n data[\"custom5Name\"] = this.custom5Name;\r\n data[\"custom6Name\"] = this.custom6Name;\r\n data[\"custom7Name\"] = this.custom7Name;\r\n data[\"custom8Name\"] = this.custom8Name;\r\n data[\"custom9Name\"] = this.custom9Name;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateClientDTO {\r\n address?: string | undefined;\r\n city?: string | undefined;\r\n email?: string | undefined;\r\n name: string;\r\n phoneNumber?: string | undefined;\r\n zip?: string | undefined;\r\n dataRetentionPeriodInDays: number;\r\n clientIdent: string;\r\n automaticParkingSchedulesEnabled: boolean;\r\n automaticParkingScheduleToleranceInMinutes: number;\r\n qrCodeIdentificationEnabled: boolean;\r\n auditLogEnabled: boolean;\r\n custom1Name?: string | undefined;\r\n custom2Name?: string | undefined;\r\n custom3Name?: string | undefined;\r\n custom4Name?: string | undefined;\r\n custom5Name?: string | undefined;\r\n custom6Name?: string | undefined;\r\n custom7Name?: string | undefined;\r\n custom8Name?: string | undefined;\r\n custom9Name?: string | undefined;\r\n}\r\n\r\nexport class UpdateClientDTO implements IUpdateClientDTO {\r\n id!: number;\r\n address?: string | undefined;\r\n city?: string | undefined;\r\n email?: string | undefined;\r\n name?: string | undefined;\r\n phoneNumber?: string | undefined;\r\n zip?: string | undefined;\r\n dataRetentionPeriodInDays?: number | undefined;\r\n clientIdent!: string;\r\n isActive?: boolean | undefined;\r\n automaticParkingSchedulesEnabled!: boolean;\r\n automaticParkingScheduleToleranceInMinutes!: number;\r\n qrCodeIdentificationEnabled!: boolean;\r\n connectionMode!: ConnectionMode;\r\n auditLogEnabled!: boolean;\r\n custom1Name?: string | undefined;\r\n custom2Name?: string | undefined;\r\n custom3Name?: string | undefined;\r\n custom4Name?: string | undefined;\r\n custom5Name?: string | undefined;\r\n custom6Name?: string | undefined;\r\n custom7Name?: string | undefined;\r\n custom8Name?: string | undefined;\r\n custom9Name?: string | undefined;\r\n\r\n constructor(data?: IUpdateClientDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.address = _data[\"address\"];\r\n this.city = _data[\"city\"];\r\n this.email = _data[\"email\"];\r\n this.name = _data[\"name\"];\r\n this.phoneNumber = _data[\"phoneNumber\"];\r\n this.zip = _data[\"zip\"];\r\n this.dataRetentionPeriodInDays = _data[\"dataRetentionPeriodInDays\"];\r\n this.clientIdent = _data[\"clientIdent\"];\r\n this.isActive = _data[\"isActive\"];\r\n this.automaticParkingSchedulesEnabled = _data[\"automaticParkingSchedulesEnabled\"];\r\n this.automaticParkingScheduleToleranceInMinutes = _data[\"automaticParkingScheduleToleranceInMinutes\"];\r\n this.qrCodeIdentificationEnabled = _data[\"qrCodeIdentificationEnabled\"];\r\n this.connectionMode = _data[\"connectionMode\"];\r\n this.auditLogEnabled = _data[\"auditLogEnabled\"];\r\n this.custom1Name = _data[\"custom1Name\"];\r\n this.custom2Name = _data[\"custom2Name\"];\r\n this.custom3Name = _data[\"custom3Name\"];\r\n this.custom4Name = _data[\"custom4Name\"];\r\n this.custom5Name = _data[\"custom5Name\"];\r\n this.custom6Name = _data[\"custom6Name\"];\r\n this.custom7Name = _data[\"custom7Name\"];\r\n this.custom8Name = _data[\"custom8Name\"];\r\n this.custom9Name = _data[\"custom9Name\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateClientDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateClientDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"address\"] = this.address;\r\n data[\"city\"] = this.city;\r\n data[\"email\"] = this.email;\r\n data[\"name\"] = this.name;\r\n data[\"phoneNumber\"] = this.phoneNumber;\r\n data[\"zip\"] = this.zip;\r\n data[\"dataRetentionPeriodInDays\"] = this.dataRetentionPeriodInDays;\r\n data[\"clientIdent\"] = this.clientIdent;\r\n data[\"isActive\"] = this.isActive;\r\n data[\"automaticParkingSchedulesEnabled\"] = this.automaticParkingSchedulesEnabled;\r\n data[\"automaticParkingScheduleToleranceInMinutes\"] = this.automaticParkingScheduleToleranceInMinutes;\r\n data[\"qrCodeIdentificationEnabled\"] = this.qrCodeIdentificationEnabled;\r\n data[\"connectionMode\"] = this.connectionMode;\r\n data[\"auditLogEnabled\"] = this.auditLogEnabled;\r\n data[\"custom1Name\"] = this.custom1Name;\r\n data[\"custom2Name\"] = this.custom2Name;\r\n data[\"custom3Name\"] = this.custom3Name;\r\n data[\"custom4Name\"] = this.custom4Name;\r\n data[\"custom5Name\"] = this.custom5Name;\r\n data[\"custom6Name\"] = this.custom6Name;\r\n data[\"custom7Name\"] = this.custom7Name;\r\n data[\"custom8Name\"] = this.custom8Name;\r\n data[\"custom9Name\"] = this.custom9Name;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateClientDTO {\r\n id: number;\r\n address?: string | undefined;\r\n city?: string | undefined;\r\n email?: string | undefined;\r\n name?: string | undefined;\r\n phoneNumber?: string | undefined;\r\n zip?: string | undefined;\r\n dataRetentionPeriodInDays?: number | undefined;\r\n clientIdent: string;\r\n isActive?: boolean | undefined;\r\n automaticParkingSchedulesEnabled: boolean;\r\n automaticParkingScheduleToleranceInMinutes: number;\r\n qrCodeIdentificationEnabled: boolean;\r\n connectionMode: ConnectionMode;\r\n auditLogEnabled: boolean;\r\n custom1Name?: string | undefined;\r\n custom2Name?: string | undefined;\r\n custom3Name?: string | undefined;\r\n custom4Name?: string | undefined;\r\n custom5Name?: string | undefined;\r\n custom6Name?: string | undefined;\r\n custom7Name?: string | undefined;\r\n custom8Name?: string | undefined;\r\n custom9Name?: string | undefined;\r\n}\r\n\r\nexport class CreateConfigBasedStructuralEntryDTO implements ICreateConfigBasedStructuralEntryDTO {\r\n clientId!: number;\r\n name!: string;\r\n parentId?: number | undefined;\r\n isSubscriptionSet!: boolean;\r\n\r\n constructor(data?: ICreateConfigBasedStructuralEntryDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.name = _data[\"name\"];\r\n this.parentId = _data[\"parentId\"];\r\n this.isSubscriptionSet = _data[\"isSubscriptionSet\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateConfigBasedStructuralEntryDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateConfigBasedStructuralEntryDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"name\"] = this.name;\r\n data[\"parentId\"] = this.parentId;\r\n data[\"isSubscriptionSet\"] = this.isSubscriptionSet;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateConfigBasedStructuralEntryDTO {\r\n clientId: number;\r\n name: string;\r\n parentId?: number | undefined;\r\n isSubscriptionSet: boolean;\r\n}\r\n\r\nexport class UpdateConfigBasedStructuralEntryDTO implements IUpdateConfigBasedStructuralEntryDTO {\r\n id!: number;\r\n name?: string | undefined;\r\n parentId?: number | undefined;\r\n isSubscriptionSet?: boolean | undefined;\r\n\r\n constructor(data?: IUpdateConfigBasedStructuralEntryDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.name = _data[\"name\"];\r\n this.parentId = _data[\"parentId\"];\r\n this.isSubscriptionSet = _data[\"isSubscriptionSet\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateConfigBasedStructuralEntryDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateConfigBasedStructuralEntryDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"name\"] = this.name;\r\n data[\"parentId\"] = this.parentId;\r\n data[\"isSubscriptionSet\"] = this.isSubscriptionSet;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateConfigBasedStructuralEntryDTO {\r\n id: number;\r\n name?: string | undefined;\r\n parentId?: number | undefined;\r\n isSubscriptionSet?: boolean | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfConfigBasedStructuralEntryDTO implements IPagedResultDTOOfConfigBasedStructuralEntryDTO {\r\n items?: ConfigBasedStructuralEntryDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfConfigBasedStructuralEntryDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(ConfigBasedStructuralEntryDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfConfigBasedStructuralEntryDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfConfigBasedStructuralEntryDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfConfigBasedStructuralEntryDTO {\r\n items?: ConfigBasedStructuralEntryDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class DashboardDTO implements IDashboardDTO {\r\n dashboardPanels?: DashboardPanelDTO[] | undefined;\r\n\r\n constructor(data?: IDashboardDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"dashboardPanels\"])) {\r\n this.dashboardPanels = [] as any;\r\n for (let item of _data[\"dashboardPanels\"])\r\n this.dashboardPanels!.push(DashboardPanelDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DashboardDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DashboardDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.dashboardPanels)) {\r\n data[\"dashboardPanels\"] = [];\r\n for (let item of this.dashboardPanels)\r\n data[\"dashboardPanels\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDashboardDTO {\r\n dashboardPanels?: DashboardPanelDTO[] | undefined;\r\n}\r\n\r\nexport class DashboardPanelDTO implements IDashboardPanelDTO {\r\n id!: number;\r\n sizeX!: number;\r\n sizeY!: number;\r\n row!: number;\r\n col!: number;\r\n widgetType?: string | undefined;\r\n widgetParameters?: string | undefined;\r\n\r\n constructor(data?: IDashboardPanelDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.sizeX = _data[\"sizeX\"];\r\n this.sizeY = _data[\"sizeY\"];\r\n this.row = _data[\"row\"];\r\n this.col = _data[\"col\"];\r\n this.widgetType = _data[\"widgetType\"];\r\n this.widgetParameters = _data[\"widgetParameters\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): DashboardPanelDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DashboardPanelDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"sizeX\"] = this.sizeX;\r\n data[\"sizeY\"] = this.sizeY;\r\n data[\"row\"] = this.row;\r\n data[\"col\"] = this.col;\r\n data[\"widgetType\"] = this.widgetType;\r\n data[\"widgetParameters\"] = this.widgetParameters;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDashboardPanelDTO {\r\n id: number;\r\n sizeX: number;\r\n sizeY: number;\r\n row: number;\r\n col: number;\r\n widgetType?: string | undefined;\r\n widgetParameters?: string | undefined;\r\n}\r\n\r\nexport class UpdateDashboardDTO implements IUpdateDashboardDTO {\r\n\r\n constructor(data?: IUpdateDashboardDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): UpdateDashboardDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateDashboardDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateDashboardDTO {\r\n}\r\n\r\nexport class UpdateDashboardPanelsDTO implements IUpdateDashboardPanelsDTO {\r\n addedPanels?: DashboardPanelDTO[] | undefined;\r\n changedPanels?: DashboardPanelDTO[] | undefined;\r\n removedPanelIds?: number[] | undefined;\r\n\r\n constructor(data?: IUpdateDashboardPanelsDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"addedPanels\"])) {\r\n this.addedPanels = [] as any;\r\n for (let item of _data[\"addedPanels\"])\r\n this.addedPanels!.push(DashboardPanelDTO.fromJS(item));\r\n }\r\n if (Array.isArray(_data[\"changedPanels\"])) {\r\n this.changedPanels = [] as any;\r\n for (let item of _data[\"changedPanels\"])\r\n this.changedPanels!.push(DashboardPanelDTO.fromJS(item));\r\n }\r\n if (Array.isArray(_data[\"removedPanelIds\"])) {\r\n this.removedPanelIds = [] as any;\r\n for (let item of _data[\"removedPanelIds\"])\r\n this.removedPanelIds!.push(item);\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateDashboardPanelsDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateDashboardPanelsDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.addedPanels)) {\r\n data[\"addedPanels\"] = [];\r\n for (let item of this.addedPanels)\r\n data[\"addedPanels\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.changedPanels)) {\r\n data[\"changedPanels\"] = [];\r\n for (let item of this.changedPanels)\r\n data[\"changedPanels\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.removedPanelIds)) {\r\n data[\"removedPanelIds\"] = [];\r\n for (let item of this.removedPanelIds)\r\n data[\"removedPanelIds\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateDashboardPanelsDTO {\r\n addedPanels?: DashboardPanelDTO[] | undefined;\r\n changedPanels?: DashboardPanelDTO[] | undefined;\r\n removedPanelIds?: number[] | undefined;\r\n}\r\n\r\nexport class RegisterDeviceInfoDTO implements IRegisterDeviceInfoDTO {\r\n deviceIdentifier!: string;\r\n devicePlatform!: MobilePlatform;\r\n fcmToken?: string | undefined;\r\n userId?: string | undefined;\r\n appVersion?: string | undefined;\r\n deviceVersion?: string | undefined;\r\n deviceModel?: string | undefined;\r\n deviceInfoSerialization?: string | undefined;\r\n\r\n constructor(data?: IRegisterDeviceInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.deviceIdentifier = _data[\"deviceIdentifier\"];\r\n this.devicePlatform = _data[\"devicePlatform\"];\r\n this.fcmToken = _data[\"fcmToken\"];\r\n this.userId = _data[\"userId\"];\r\n this.appVersion = _data[\"appVersion\"];\r\n this.deviceVersion = _data[\"deviceVersion\"];\r\n this.deviceModel = _data[\"deviceModel\"];\r\n this.deviceInfoSerialization = _data[\"deviceInfoSerialization\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): RegisterDeviceInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RegisterDeviceInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"deviceIdentifier\"] = this.deviceIdentifier;\r\n data[\"devicePlatform\"] = this.devicePlatform;\r\n data[\"fcmToken\"] = this.fcmToken;\r\n data[\"userId\"] = this.userId;\r\n data[\"appVersion\"] = this.appVersion;\r\n data[\"deviceVersion\"] = this.deviceVersion;\r\n data[\"deviceModel\"] = this.deviceModel;\r\n data[\"deviceInfoSerialization\"] = this.deviceInfoSerialization;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRegisterDeviceInfoDTO {\r\n deviceIdentifier: string;\r\n devicePlatform: MobilePlatform;\r\n fcmToken?: string | undefined;\r\n userId?: string | undefined;\r\n appVersion?: string | undefined;\r\n deviceVersion?: string | undefined;\r\n deviceModel?: string | undefined;\r\n deviceInfoSerialization?: string | undefined;\r\n}\r\n\r\nexport enum MobilePlatform {\r\n Android = 0,\r\n IOS = 1,\r\n}\r\n\r\nexport class PagedResultDTOOfDeviceStatusReportDTO implements IPagedResultDTOOfDeviceStatusReportDTO {\r\n items?: DeviceStatusReportDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfDeviceStatusReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(DeviceStatusReportDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfDeviceStatusReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfDeviceStatusReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfDeviceStatusReportDTO {\r\n items?: DeviceStatusReportDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class DeviceStatusReportDTO implements IDeviceStatusReportDTO {\r\n device?: ZoneDeviceDTO | undefined;\r\n\r\n constructor(data?: IDeviceStatusReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.device = _data[\"device\"] ? ZoneDeviceDTO.fromJS(_data[\"device\"]) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeviceStatusReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeviceStatusReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"device\"] = this.device ? this.device.toJSON() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeviceStatusReportDTO {\r\n device?: ZoneDeviceDTO | undefined;\r\n}\r\n\r\nexport class ZoneDeviceDTO implements IZoneDeviceDTO {\r\n id!: number;\r\n clientId!: number;\r\n name?: string | undefined;\r\n zone?: ZoneDTO | undefined;\r\n description?: string | undefined;\r\n enabled!: boolean;\r\n groupControllerDeviceId?: number | undefined;\r\n coordinates?: string | undefined;\r\n lastSignal?: DateTime | undefined;\r\n deviceType!: ZoneDeviceType;\r\n brand!: ZoneDeviceBrand;\r\n direction?: ZoneDeviceDirection | undefined;\r\n state!: ZoneDeviceState;\r\n currentDevicePosition?: string | undefined;\r\n proxyUserId?: string | undefined;\r\n supportedDevicePositions?: ZoneDevicePositionDTO[] | undefined;\r\n parameters?: ZoneDeviceParameterDTO[] | undefined;\r\n\r\n constructor(data?: IZoneDeviceDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.name = _data[\"name\"];\r\n this.zone = _data[\"zone\"] ? ZoneDTO.fromJS(_data[\"zone\"]) : undefined;\r\n this.description = _data[\"description\"];\r\n this.enabled = _data[\"enabled\"];\r\n this.groupControllerDeviceId = _data[\"groupControllerDeviceId\"];\r\n this.coordinates = _data[\"coordinates\"];\r\n this.lastSignal = _data[\"lastSignal\"] ? DateTime.fromISO(_data[\"lastSignal\"].toString()) : undefined;\r\n this.deviceType = _data[\"deviceType\"];\r\n this.brand = _data[\"brand\"];\r\n this.direction = _data[\"direction\"];\r\n this.state = _data[\"state\"];\r\n this.currentDevicePosition = _data[\"currentDevicePosition\"];\r\n this.proxyUserId = _data[\"proxyUserId\"];\r\n if (Array.isArray(_data[\"supportedDevicePositions\"])) {\r\n this.supportedDevicePositions = [] as any;\r\n for (let item of _data[\"supportedDevicePositions\"])\r\n this.supportedDevicePositions!.push(ZoneDevicePositionDTO.fromJS(item));\r\n }\r\n if (Array.isArray(_data[\"parameters\"])) {\r\n this.parameters = [] as any;\r\n for (let item of _data[\"parameters\"])\r\n this.parameters!.push(ZoneDeviceParameterDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ZoneDeviceDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"name\"] = this.name;\r\n data[\"zone\"] = this.zone ? this.zone.toJSON() : undefined;\r\n data[\"description\"] = this.description;\r\n data[\"enabled\"] = this.enabled;\r\n data[\"groupControllerDeviceId\"] = this.groupControllerDeviceId;\r\n data[\"coordinates\"] = this.coordinates;\r\n data[\"lastSignal\"] = this.lastSignal ? this.lastSignal.toString() : undefined;\r\n data[\"deviceType\"] = this.deviceType;\r\n data[\"brand\"] = this.brand;\r\n data[\"direction\"] = this.direction;\r\n data[\"state\"] = this.state;\r\n data[\"currentDevicePosition\"] = this.currentDevicePosition;\r\n data[\"proxyUserId\"] = this.proxyUserId;\r\n if (Array.isArray(this.supportedDevicePositions)) {\r\n data[\"supportedDevicePositions\"] = [];\r\n for (let item of this.supportedDevicePositions)\r\n data[\"supportedDevicePositions\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.parameters)) {\r\n data[\"parameters\"] = [];\r\n for (let item of this.parameters)\r\n data[\"parameters\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceDTO {\r\n id: number;\r\n clientId: number;\r\n name?: string | undefined;\r\n zone?: ZoneDTO | undefined;\r\n description?: string | undefined;\r\n enabled: boolean;\r\n groupControllerDeviceId?: number | undefined;\r\n coordinates?: string | undefined;\r\n lastSignal?: DateTime | undefined;\r\n deviceType: ZoneDeviceType;\r\n brand: ZoneDeviceBrand;\r\n direction?: ZoneDeviceDirection | undefined;\r\n state: ZoneDeviceState;\r\n currentDevicePosition?: string | undefined;\r\n proxyUserId?: string | undefined;\r\n supportedDevicePositions?: ZoneDevicePositionDTO[] | undefined;\r\n parameters?: ZoneDeviceParameterDTO[] | undefined;\r\n}\r\n\r\nexport enum ZoneDeviceType {\r\n UHFReader = 0,\r\n DeviceGroupController = 1,\r\n AutomaticBollard = 2,\r\n GarageDoor = 3,\r\n LPRCameraDeepinView = 4,\r\n AvThingProxyBasedBarrierControlGPIO = 5,\r\n AvThingProxyBasedBarrierControlRemoteIO = 6,\r\n SwarcoParkingspace = 7,\r\n}\r\n\r\nexport enum ZoneDeviceBrand {\r\n Unknown = 0,\r\n Sick = 1,\r\n Cori = 2,\r\n Aventit = 3,\r\n TestCloud = 4,\r\n TestProxy = 5,\r\n HikVision = 6,\r\n Swarco = 7,\r\n}\r\n\r\nexport enum ZoneDeviceDirection {\r\n Entrance = 0,\r\n Exit = 1,\r\n Undefined = 2,\r\n}\r\n\r\nexport enum ZoneDeviceState {\r\n Unknown = 0,\r\n Present = 1,\r\n NotPresent = 2,\r\n Defect = 3,\r\n}\r\n\r\nexport class ZoneDevicePositionDTO implements IZoneDevicePositionDTO {\r\n position?: string | undefined;\r\n supportedCommands?: ZoneDeviceCommandDTO[] | undefined;\r\n\r\n constructor(data?: IZoneDevicePositionDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.position = _data[\"position\"];\r\n if (Array.isArray(_data[\"supportedCommands\"])) {\r\n this.supportedCommands = [] as any;\r\n for (let item of _data[\"supportedCommands\"])\r\n this.supportedCommands!.push(ZoneDeviceCommandDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ZoneDevicePositionDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDevicePositionDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"position\"] = this.position;\r\n if (Array.isArray(this.supportedCommands)) {\r\n data[\"supportedCommands\"] = [];\r\n for (let item of this.supportedCommands)\r\n data[\"supportedCommands\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDevicePositionDTO {\r\n position?: string | undefined;\r\n supportedCommands?: ZoneDeviceCommandDTO[] | undefined;\r\n}\r\n\r\nexport class ZoneDeviceCommandDTO implements IZoneDeviceCommandDTO {\r\n command?: string | undefined;\r\n commandName?: string | undefined;\r\n commandDescription?: string | undefined;\r\n executionContext?: ZoneDeviceCommandExecutionContextDTO | undefined;\r\n isBillable!: boolean;\r\n accessLevel!: ZoneDeviceCommandAccessLevel;\r\n\r\n constructor(data?: IZoneDeviceCommandDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.command = _data[\"command\"];\r\n this.commandName = _data[\"commandName\"];\r\n this.commandDescription = _data[\"commandDescription\"];\r\n this.executionContext = _data[\"executionContext\"] ? ZoneDeviceCommandExecutionContextDTO.fromJS(_data[\"executionContext\"]) : undefined;\r\n this.isBillable = _data[\"isBillable\"];\r\n this.accessLevel = _data[\"accessLevel\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ZoneDeviceCommandDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceCommandDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"command\"] = this.command;\r\n data[\"commandName\"] = this.commandName;\r\n data[\"commandDescription\"] = this.commandDescription;\r\n data[\"executionContext\"] = this.executionContext ? this.executionContext.toJSON() : undefined;\r\n data[\"isBillable\"] = this.isBillable;\r\n data[\"accessLevel\"] = this.accessLevel;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceCommandDTO {\r\n command?: string | undefined;\r\n commandName?: string | undefined;\r\n commandDescription?: string | undefined;\r\n executionContext?: ZoneDeviceCommandExecutionContextDTO | undefined;\r\n isBillable: boolean;\r\n accessLevel: ZoneDeviceCommandAccessLevel;\r\n}\r\n\r\nexport class ZoneDeviceCommandExecutionContextDTO implements IZoneDeviceCommandExecutionContextDTO {\r\n executedUserId?: string | undefined;\r\n executionTimeUtc?: DateTime | undefined;\r\n contextData?: string | undefined;\r\n\r\n constructor(data?: IZoneDeviceCommandExecutionContextDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.executedUserId = _data[\"executedUserId\"];\r\n this.executionTimeUtc = _data[\"executionTimeUtc\"] ? DateTime.fromISO(_data[\"executionTimeUtc\"].toString()) : undefined;\r\n this.contextData = _data[\"contextData\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ZoneDeviceCommandExecutionContextDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceCommandExecutionContextDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"executedUserId\"] = this.executedUserId;\r\n data[\"executionTimeUtc\"] = this.executionTimeUtc ? this.executionTimeUtc.toString() : undefined;\r\n data[\"contextData\"] = this.contextData;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceCommandExecutionContextDTO {\r\n executedUserId?: string | undefined;\r\n executionTimeUtc?: DateTime | undefined;\r\n contextData?: string | undefined;\r\n}\r\n\r\nexport enum ZoneDeviceCommandAccessLevel {\r\n Admin = 0,\r\n Parker = 1,\r\n}\r\n\r\nexport abstract class ZoneDeviceParameterDTO implements IZoneDeviceParameterDTO {\r\n type!: ZoneDeviceParameterType;\r\n\r\n protected _discriminator: string;\r\n\r\n constructor(data?: IZoneDeviceParameterDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n this._discriminator = \"ZoneDeviceParameterDTO\";\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.type = _data[\"type\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ZoneDeviceParameterDTO {\r\n data = typeof data === 'object' ? data : {};\r\n if (data[\"typeselector\"] === \"ZoneDeviceParameterStringDTO\") {\r\n let result = new ZoneDeviceParameterStringDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n if (data[\"typeselector\"] === \"ZoneDeviceParameterIntDTO\") {\r\n let result = new ZoneDeviceParameterIntDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n if (data[\"typeselector\"] === \"ZoneDeviceParameterBoolDTO\") {\r\n let result = new ZoneDeviceParameterBoolDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n if (data[\"typeselector\"] === \"ZoneDeviceParameterFloatDTO\") {\r\n let result = new ZoneDeviceParameterFloatDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n if (data[\"typeselector\"] === \"ZoneDeviceParameterIPDTO\") {\r\n let result = new ZoneDeviceParameterIPDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n if (data[\"typeselector\"] === \"ZoneDeviceParameterSelectDTO\") {\r\n let result = new ZoneDeviceParameterSelectDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n if (data[\"typeselector\"] === \"ZoneDeviceParameterPhoneDTO\") {\r\n let result = new ZoneDeviceParameterPhoneDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n if (data[\"typeselector\"] === \"ZoneDeviceParameterMacDTO\") {\r\n let result = new ZoneDeviceParameterMacDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n throw new Error(\"The abstract class 'ZoneDeviceParameterDTO' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"typeselector\"] = this._discriminator;\r\n data[\"type\"] = this.type;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterDTO {\r\n type: ZoneDeviceParameterType;\r\n}\r\n\r\nexport enum ZoneDeviceParameterType {\r\n String = 0,\r\n Int = 1,\r\n Bool = 2,\r\n Float = 3,\r\n IP = 4,\r\n Select = 5,\r\n Phone = 6,\r\n MacAddress = 7,\r\n}\r\n\r\nexport class ZoneDeviceParameterStringDTO extends ZoneDeviceParameterDTO implements IZoneDeviceParameterStringDTO {\r\n value?: string | undefined;\r\n configuration?: ZoneDeviceParameterStringConfigDTO | undefined;\r\n\r\n constructor(data?: IZoneDeviceParameterStringDTO) {\r\n super(data);\r\n this._discriminator = \"ZoneDeviceParameterStringDTO\";\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.value = _data[\"value\"];\r\n this.configuration = _data[\"configuration\"] ? ZoneDeviceParameterStringConfigDTO.fromJS(_data[\"configuration\"]) : undefined;\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ZoneDeviceParameterStringDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceParameterStringDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"value\"] = this.value;\r\n data[\"configuration\"] = this.configuration ? this.configuration.toJSON() : undefined;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterStringDTO extends IZoneDeviceParameterDTO {\r\n value?: string | undefined;\r\n configuration?: ZoneDeviceParameterStringConfigDTO | undefined;\r\n}\r\n\r\nexport abstract class ZoneDeviceParameterConfigDTO implements IZoneDeviceParameterConfigDTO {\r\n ident!: string;\r\n displayName!: string;\r\n\r\n constructor(data?: IZoneDeviceParameterConfigDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.ident = _data[\"ident\"];\r\n this.displayName = _data[\"displayName\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ZoneDeviceParameterConfigDTO {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'ZoneDeviceParameterConfigDTO' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ident\"] = this.ident;\r\n data[\"displayName\"] = this.displayName;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterConfigDTO {\r\n ident: string;\r\n displayName: string;\r\n}\r\n\r\nexport class ZoneDeviceParameterStringConfigDTO extends ZoneDeviceParameterConfigDTO implements IZoneDeviceParameterStringConfigDTO {\r\n minLength!: number;\r\n maxLength!: number;\r\n required!: boolean;\r\n defaultValue?: string | undefined;\r\n\r\n constructor(data?: IZoneDeviceParameterStringConfigDTO) {\r\n super(data);\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.minLength = _data[\"minLength\"];\r\n this.maxLength = _data[\"maxLength\"];\r\n this.required = _data[\"required\"];\r\n this.defaultValue = _data[\"defaultValue\"];\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ZoneDeviceParameterStringConfigDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceParameterStringConfigDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"minLength\"] = this.minLength;\r\n data[\"maxLength\"] = this.maxLength;\r\n data[\"required\"] = this.required;\r\n data[\"defaultValue\"] = this.defaultValue;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterStringConfigDTO extends IZoneDeviceParameterConfigDTO {\r\n minLength: number;\r\n maxLength: number;\r\n required: boolean;\r\n defaultValue?: string | undefined;\r\n}\r\n\r\nexport class ZoneDeviceParameterIntDTO extends ZoneDeviceParameterDTO implements IZoneDeviceParameterIntDTO {\r\n value!: number;\r\n configuration?: ZoneDeviceParameterIntConfigDTO | undefined;\r\n\r\n constructor(data?: IZoneDeviceParameterIntDTO) {\r\n super(data);\r\n this._discriminator = \"ZoneDeviceParameterIntDTO\";\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.value = _data[\"value\"];\r\n this.configuration = _data[\"configuration\"] ? ZoneDeviceParameterIntConfigDTO.fromJS(_data[\"configuration\"]) : undefined;\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ZoneDeviceParameterIntDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceParameterIntDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"value\"] = this.value;\r\n data[\"configuration\"] = this.configuration ? this.configuration.toJSON() : undefined;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterIntDTO extends IZoneDeviceParameterDTO {\r\n value: number;\r\n configuration?: ZoneDeviceParameterIntConfigDTO | undefined;\r\n}\r\n\r\nexport class ZoneDeviceParameterIntConfigDTO extends ZoneDeviceParameterConfigDTO implements IZoneDeviceParameterIntConfigDTO {\r\n minValue!: number;\r\n maxValue!: number;\r\n required!: boolean;\r\n defaultValue!: number;\r\n\r\n constructor(data?: IZoneDeviceParameterIntConfigDTO) {\r\n super(data);\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.minValue = _data[\"minValue\"];\r\n this.maxValue = _data[\"maxValue\"];\r\n this.required = _data[\"required\"];\r\n this.defaultValue = _data[\"defaultValue\"];\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ZoneDeviceParameterIntConfigDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceParameterIntConfigDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"minValue\"] = this.minValue;\r\n data[\"maxValue\"] = this.maxValue;\r\n data[\"required\"] = this.required;\r\n data[\"defaultValue\"] = this.defaultValue;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterIntConfigDTO extends IZoneDeviceParameterConfigDTO {\r\n minValue: number;\r\n maxValue: number;\r\n required: boolean;\r\n defaultValue: number;\r\n}\r\n\r\nexport class ZoneDeviceParameterBoolDTO extends ZoneDeviceParameterDTO implements IZoneDeviceParameterBoolDTO {\r\n value!: boolean;\r\n configuration?: ZoneDeviceParameterBoolConfigDTO | undefined;\r\n\r\n constructor(data?: IZoneDeviceParameterBoolDTO) {\r\n super(data);\r\n this._discriminator = \"ZoneDeviceParameterBoolDTO\";\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.value = _data[\"value\"];\r\n this.configuration = _data[\"configuration\"] ? ZoneDeviceParameterBoolConfigDTO.fromJS(_data[\"configuration\"]) : undefined;\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ZoneDeviceParameterBoolDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceParameterBoolDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"value\"] = this.value;\r\n data[\"configuration\"] = this.configuration ? this.configuration.toJSON() : undefined;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterBoolDTO extends IZoneDeviceParameterDTO {\r\n value: boolean;\r\n configuration?: ZoneDeviceParameterBoolConfigDTO | undefined;\r\n}\r\n\r\nexport class ZoneDeviceParameterBoolConfigDTO extends ZoneDeviceParameterConfigDTO implements IZoneDeviceParameterBoolConfigDTO {\r\n defaultValue!: boolean;\r\n\r\n constructor(data?: IZoneDeviceParameterBoolConfigDTO) {\r\n super(data);\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.defaultValue = _data[\"defaultValue\"];\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ZoneDeviceParameterBoolConfigDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceParameterBoolConfigDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"defaultValue\"] = this.defaultValue;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterBoolConfigDTO extends IZoneDeviceParameterConfigDTO {\r\n defaultValue: boolean;\r\n}\r\n\r\nexport class ZoneDeviceParameterFloatDTO extends ZoneDeviceParameterDTO implements IZoneDeviceParameterFloatDTO {\r\n value!: number;\r\n configuration?: ZoneDeviceParameterFloatConfigDTO | undefined;\r\n\r\n constructor(data?: IZoneDeviceParameterFloatDTO) {\r\n super(data);\r\n this._discriminator = \"ZoneDeviceParameterFloatDTO\";\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.value = _data[\"value\"];\r\n this.configuration = _data[\"configuration\"] ? ZoneDeviceParameterFloatConfigDTO.fromJS(_data[\"configuration\"]) : undefined;\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ZoneDeviceParameterFloatDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceParameterFloatDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"value\"] = this.value;\r\n data[\"configuration\"] = this.configuration ? this.configuration.toJSON() : undefined;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterFloatDTO extends IZoneDeviceParameterDTO {\r\n value: number;\r\n configuration?: ZoneDeviceParameterFloatConfigDTO | undefined;\r\n}\r\n\r\nexport class ZoneDeviceParameterFloatConfigDTO extends ZoneDeviceParameterConfigDTO implements IZoneDeviceParameterFloatConfigDTO {\r\n minValue!: number;\r\n maxValue!: number;\r\n required!: boolean;\r\n noOfDecimals!: number;\r\n defaultValue!: number;\r\n\r\n constructor(data?: IZoneDeviceParameterFloatConfigDTO) {\r\n super(data);\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.minValue = _data[\"minValue\"];\r\n this.maxValue = _data[\"maxValue\"];\r\n this.required = _data[\"required\"];\r\n this.noOfDecimals = _data[\"noOfDecimals\"];\r\n this.defaultValue = _data[\"defaultValue\"];\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ZoneDeviceParameterFloatConfigDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceParameterFloatConfigDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"minValue\"] = this.minValue;\r\n data[\"maxValue\"] = this.maxValue;\r\n data[\"required\"] = this.required;\r\n data[\"noOfDecimals\"] = this.noOfDecimals;\r\n data[\"defaultValue\"] = this.defaultValue;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterFloatConfigDTO extends IZoneDeviceParameterConfigDTO {\r\n minValue: number;\r\n maxValue: number;\r\n required: boolean;\r\n noOfDecimals: number;\r\n defaultValue: number;\r\n}\r\n\r\nexport class ZoneDeviceParameterIPDTO extends ZoneDeviceParameterDTO implements IZoneDeviceParameterIPDTO {\r\n value?: string | undefined;\r\n configuration?: ZoneDeviceParameterIPConfigDTO | undefined;\r\n\r\n constructor(data?: IZoneDeviceParameterIPDTO) {\r\n super(data);\r\n this._discriminator = \"ZoneDeviceParameterIPDTO\";\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.value = _data[\"value\"];\r\n this.configuration = _data[\"configuration\"] ? ZoneDeviceParameterIPConfigDTO.fromJS(_data[\"configuration\"]) : undefined;\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ZoneDeviceParameterIPDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceParameterIPDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"value\"] = this.value;\r\n data[\"configuration\"] = this.configuration ? this.configuration.toJSON() : undefined;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterIPDTO extends IZoneDeviceParameterDTO {\r\n value?: string | undefined;\r\n configuration?: ZoneDeviceParameterIPConfigDTO | undefined;\r\n}\r\n\r\nexport class ZoneDeviceParameterIPConfigDTO extends ZoneDeviceParameterConfigDTO implements IZoneDeviceParameterIPConfigDTO {\r\n allowIPV6!: boolean;\r\n required!: boolean;\r\n defaultValue?: string | undefined;\r\n\r\n constructor(data?: IZoneDeviceParameterIPConfigDTO) {\r\n super(data);\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.allowIPV6 = _data[\"allowIPV6\"];\r\n this.required = _data[\"required\"];\r\n this.defaultValue = _data[\"defaultValue\"];\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ZoneDeviceParameterIPConfigDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceParameterIPConfigDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"allowIPV6\"] = this.allowIPV6;\r\n data[\"required\"] = this.required;\r\n data[\"defaultValue\"] = this.defaultValue;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterIPConfigDTO extends IZoneDeviceParameterConfigDTO {\r\n allowIPV6: boolean;\r\n required: boolean;\r\n defaultValue?: string | undefined;\r\n}\r\n\r\nexport class ZoneDeviceParameterSelectDTO extends ZoneDeviceParameterDTO implements IZoneDeviceParameterSelectDTO {\r\n selection?: string | undefined;\r\n configuration?: ZoneDeviceParameterSelectConfigDTO | undefined;\r\n\r\n constructor(data?: IZoneDeviceParameterSelectDTO) {\r\n super(data);\r\n this._discriminator = \"ZoneDeviceParameterSelectDTO\";\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.selection = _data[\"selection\"];\r\n this.configuration = _data[\"configuration\"] ? ZoneDeviceParameterSelectConfigDTO.fromJS(_data[\"configuration\"]) : undefined;\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ZoneDeviceParameterSelectDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceParameterSelectDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"selection\"] = this.selection;\r\n data[\"configuration\"] = this.configuration ? this.configuration.toJSON() : undefined;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterSelectDTO extends IZoneDeviceParameterDTO {\r\n selection?: string | undefined;\r\n configuration?: ZoneDeviceParameterSelectConfigDTO | undefined;\r\n}\r\n\r\nexport class ZoneDeviceParameterSelectConfigDTO extends ZoneDeviceParameterConfigDTO implements IZoneDeviceParameterSelectConfigDTO {\r\n selectionPossibilities?: string[] | undefined;\r\n defaultValue?: string | undefined;\r\n required!: boolean;\r\n\r\n constructor(data?: IZoneDeviceParameterSelectConfigDTO) {\r\n super(data);\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"selectionPossibilities\"])) {\r\n this.selectionPossibilities = [] as any;\r\n for (let item of _data[\"selectionPossibilities\"])\r\n this.selectionPossibilities!.push(item);\r\n }\r\n this.defaultValue = _data[\"defaultValue\"];\r\n this.required = _data[\"required\"];\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ZoneDeviceParameterSelectConfigDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceParameterSelectConfigDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.selectionPossibilities)) {\r\n data[\"selectionPossibilities\"] = [];\r\n for (let item of this.selectionPossibilities)\r\n data[\"selectionPossibilities\"].push(item);\r\n }\r\n data[\"defaultValue\"] = this.defaultValue;\r\n data[\"required\"] = this.required;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterSelectConfigDTO extends IZoneDeviceParameterConfigDTO {\r\n selectionPossibilities?: string[] | undefined;\r\n defaultValue?: string | undefined;\r\n required: boolean;\r\n}\r\n\r\nexport class ZoneDeviceParameterPhoneDTO extends ZoneDeviceParameterDTO implements IZoneDeviceParameterPhoneDTO {\r\n phone?: string | undefined;\r\n configuration?: ZoneDeviceParameterPhoneConfigDTO | undefined;\r\n\r\n constructor(data?: IZoneDeviceParameterPhoneDTO) {\r\n super(data);\r\n this._discriminator = \"ZoneDeviceParameterPhoneDTO\";\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.phone = _data[\"phone\"];\r\n this.configuration = _data[\"configuration\"] ? ZoneDeviceParameterPhoneConfigDTO.fromJS(_data[\"configuration\"]) : undefined;\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ZoneDeviceParameterPhoneDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceParameterPhoneDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"phone\"] = this.phone;\r\n data[\"configuration\"] = this.configuration ? this.configuration.toJSON() : undefined;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterPhoneDTO extends IZoneDeviceParameterDTO {\r\n phone?: string | undefined;\r\n configuration?: ZoneDeviceParameterPhoneConfigDTO | undefined;\r\n}\r\n\r\nexport class ZoneDeviceParameterPhoneConfigDTO extends ZoneDeviceParameterConfigDTO implements IZoneDeviceParameterPhoneConfigDTO {\r\n defaultValue?: string | undefined;\r\n required!: boolean;\r\n\r\n constructor(data?: IZoneDeviceParameterPhoneConfigDTO) {\r\n super(data);\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.defaultValue = _data[\"defaultValue\"];\r\n this.required = _data[\"required\"];\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ZoneDeviceParameterPhoneConfigDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceParameterPhoneConfigDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"defaultValue\"] = this.defaultValue;\r\n data[\"required\"] = this.required;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterPhoneConfigDTO extends IZoneDeviceParameterConfigDTO {\r\n defaultValue?: string | undefined;\r\n required: boolean;\r\n}\r\n\r\nexport class ZoneDeviceParameterMacDTO extends ZoneDeviceParameterDTO implements IZoneDeviceParameterMacDTO {\r\n value?: string | undefined;\r\n macAddress?: PhysicalAddress | undefined;\r\n configuration?: ZoneDeviceParameterMacConfigDTO | undefined;\r\n\r\n constructor(data?: IZoneDeviceParameterMacDTO) {\r\n super(data);\r\n this._discriminator = \"ZoneDeviceParameterMacDTO\";\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.value = _data[\"value\"];\r\n this.macAddress = _data[\"macAddress\"] ? PhysicalAddress.fromJS(_data[\"macAddress\"]) : undefined;\r\n this.configuration = _data[\"configuration\"] ? ZoneDeviceParameterMacConfigDTO.fromJS(_data[\"configuration\"]) : undefined;\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ZoneDeviceParameterMacDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceParameterMacDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"value\"] = this.value;\r\n data[\"macAddress\"] = this.macAddress ? this.macAddress.toJSON() : undefined;\r\n data[\"configuration\"] = this.configuration ? this.configuration.toJSON() : undefined;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterMacDTO extends IZoneDeviceParameterDTO {\r\n value?: string | undefined;\r\n macAddress?: PhysicalAddress | undefined;\r\n configuration?: ZoneDeviceParameterMacConfigDTO | undefined;\r\n}\r\n\r\nexport class PhysicalAddress implements IPhysicalAddress {\r\n\r\n constructor(data?: IPhysicalAddress) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): PhysicalAddress {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PhysicalAddress();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPhysicalAddress {\r\n}\r\n\r\nexport class ZoneDeviceParameterMacConfigDTO extends ZoneDeviceParameterConfigDTO implements IZoneDeviceParameterMacConfigDTO {\r\n required!: boolean;\r\n defaultValue?: string | undefined;\r\n\r\n constructor(data?: IZoneDeviceParameterMacConfigDTO) {\r\n super(data);\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.required = _data[\"required\"];\r\n this.defaultValue = _data[\"defaultValue\"];\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ZoneDeviceParameterMacConfigDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceParameterMacConfigDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"required\"] = this.required;\r\n data[\"defaultValue\"] = this.defaultValue;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceParameterMacConfigDTO extends IZoneDeviceParameterConfigDTO {\r\n required: boolean;\r\n defaultValue?: string | undefined;\r\n}\r\n\r\nexport class DeviceStatusReportParameterDTO implements IDeviceStatusReportParameterDTO {\r\n zoneId?: number | undefined;\r\n\r\n constructor(data?: IDeviceStatusReportParameterDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.zoneId = _data[\"zoneId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeviceStatusReportParameterDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeviceStatusReportParameterDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"zoneId\"] = this.zoneId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeviceStatusReportParameterDTO {\r\n zoneId?: number | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfFalseRecordingsReportDTO implements IPagedResultDTOOfFalseRecordingsReportDTO {\r\n items?: FalseRecordingsReportDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfFalseRecordingsReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(FalseRecordingsReportDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfFalseRecordingsReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfFalseRecordingsReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfFalseRecordingsReportDTO {\r\n items?: FalseRecordingsReportDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class FalseRecordingsReportDTO implements IFalseRecordingsReportDTO {\r\n date!: DateTime;\r\n parkerRegistrationType!: ParkerRegistrationType;\r\n parker?: ParkerInfoDTO | undefined;\r\n knownTag?: ParkerTagDTO | undefined;\r\n registeredZone?: ZoneDTO | undefined;\r\n agent?: LimitedUserInfoDTO | undefined;\r\n parkingSessionId!: number;\r\n\r\n constructor(data?: IFalseRecordingsReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.date = _data[\"date\"] ? DateTime.fromISO(_data[\"date\"].toString()) : undefined;\r\n this.parkerRegistrationType = _data[\"parkerRegistrationType\"];\r\n this.parker = _data[\"parker\"] ? ParkerInfoDTO.fromJS(_data[\"parker\"]) : undefined;\r\n this.knownTag = _data[\"knownTag\"] ? ParkerTagDTO.fromJS(_data[\"knownTag\"]) : undefined;\r\n this.registeredZone = _data[\"registeredZone\"] ? ZoneDTO.fromJS(_data[\"registeredZone\"]) : undefined;\r\n this.agent = _data[\"agent\"] ? LimitedUserInfoDTO.fromJS(_data[\"agent\"]) : undefined;\r\n this.parkingSessionId = _data[\"parkingSessionId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): FalseRecordingsReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FalseRecordingsReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"date\"] = this.date ? this.date.toString() : undefined;\r\n data[\"parkerRegistrationType\"] = this.parkerRegistrationType;\r\n data[\"parker\"] = this.parker ? this.parker.toJSON() : undefined;\r\n data[\"knownTag\"] = this.knownTag ? this.knownTag.toJSON() : undefined;\r\n data[\"registeredZone\"] = this.registeredZone ? this.registeredZone.toJSON() : undefined;\r\n data[\"agent\"] = this.agent ? this.agent.toJSON() : undefined;\r\n data[\"parkingSessionId\"] = this.parkingSessionId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFalseRecordingsReportDTO {\r\n date: DateTime;\r\n parkerRegistrationType: ParkerRegistrationType;\r\n parker?: ParkerInfoDTO | undefined;\r\n knownTag?: ParkerTagDTO | undefined;\r\n registeredZone?: ZoneDTO | undefined;\r\n agent?: LimitedUserInfoDTO | undefined;\r\n parkingSessionId: number;\r\n}\r\n\r\nexport enum ParkerRegistrationType {\r\n Unknown = 0,\r\n ParkingRangerEntry = 1,\r\n Entry = 2,\r\n Exit = 3,\r\n AutoClose = 4,\r\n AutoScheduleEntry = 5,\r\n AutoScheduleClose = 6,\r\n DeviceCommandExecution = 7,\r\n CloseByAdmin = 8,\r\n StartTimeByAdmin = 9,\r\n ParkingCard = 10,\r\n}\r\n\r\nexport class LimitedUserInfoDTO implements ILimitedUserInfoDTO {\r\n userId?: string | undefined;\r\n firstname?: string | undefined;\r\n lastname?: string | undefined;\r\n companyName?: string | undefined;\r\n clientId!: number;\r\n clientIdent?: string | undefined;\r\n roles?: Role[] | undefined;\r\n\r\n constructor(data?: ILimitedUserInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.userId = _data[\"userId\"];\r\n this.firstname = _data[\"firstname\"];\r\n this.lastname = _data[\"lastname\"];\r\n this.companyName = _data[\"companyName\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.clientIdent = _data[\"clientIdent\"];\r\n if (Array.isArray(_data[\"roles\"])) {\r\n this.roles = [] as any;\r\n for (let item of _data[\"roles\"])\r\n this.roles!.push(item);\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): LimitedUserInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LimitedUserInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"userId\"] = this.userId;\r\n data[\"firstname\"] = this.firstname;\r\n data[\"lastname\"] = this.lastname;\r\n data[\"companyName\"] = this.companyName;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"clientIdent\"] = this.clientIdent;\r\n if (Array.isArray(this.roles)) {\r\n data[\"roles\"] = [];\r\n for (let item of this.roles)\r\n data[\"roles\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILimitedUserInfoDTO {\r\n userId?: string | undefined;\r\n firstname?: string | undefined;\r\n lastname?: string | undefined;\r\n companyName?: string | undefined;\r\n clientId: number;\r\n clientIdent?: string | undefined;\r\n roles?: Role[] | undefined;\r\n}\r\n\r\nexport enum Role {\r\n None = 0,\r\n Admin = 1,\r\n ClientAdmin = 2,\r\n ClientUser = 3,\r\n User = 4,\r\n ParkingRanger = 5,\r\n Proxy = 6,\r\n ThirdPartyParkingControl = 7,\r\n BIClientUser = 8,\r\n BIAdmin = 9,\r\n CompanyAdmin = 10,\r\n}\r\n\r\nexport class FalseRecordingsReportParameterDTO implements IFalseRecordingsReportParameterDTO {\r\n dateRange!: DateRangeParameterDTO;\r\n zoneId?: number | undefined;\r\n agentId?: string | undefined;\r\n\r\n constructor(data?: IFalseRecordingsReportParameterDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.dateRange = new DateRangeParameterDTO();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.dateRange = _data[\"dateRange\"] ? DateRangeParameterDTO.fromJS(_data[\"dateRange\"]) : new DateRangeParameterDTO();\r\n this.zoneId = _data[\"zoneId\"];\r\n this.agentId = _data[\"agentId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): FalseRecordingsReportParameterDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FalseRecordingsReportParameterDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"dateRange\"] = this.dateRange ? this.dateRange.toJSON() : undefined;\r\n data[\"zoneId\"] = this.zoneId;\r\n data[\"agentId\"] = this.agentId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFalseRecordingsReportParameterDTO {\r\n dateRange: DateRangeParameterDTO;\r\n zoneId?: number | undefined;\r\n agentId?: string | undefined;\r\n}\r\n\r\nexport class FinanceClientPriceModelDTO implements IFinanceClientPriceModelDTO {\r\n id!: number;\r\n navisionCustomerNumber?: string | undefined;\r\n navisionProjectNumber?: string | undefined;\r\n validTo?: DateTime | undefined;\r\n feesPaidByParkingSpaceOwner!: boolean;\r\n vatInPercent!: number;\r\n parkingPriceIncludedVATInPercent!: number;\r\n basePricePerMonth!: number;\r\n paymentProviderTransactionConstantPrice!: number;\r\n paymentProviderTransactionVariablePriceInPercent!: number;\r\n transactionMinimumPrice!: number;\r\n transactionConstantPrice!: number;\r\n transactionVariablePriceInPercent!: number;\r\n creditCardPaymentProviderTransactionConstantPrice?: number | undefined;\r\n creditCardPaymentProviderTransactionVariablePriceInPercent?: number | undefined;\r\n creditCardTransactionConstantPrice?: number | undefined;\r\n creditCardTransactionVariablePriceInPercent?: number | undefined;\r\n twintPaymentProviderTransactionConstantPrice?: number | undefined;\r\n twintPaymentProviderTransactionVariablePriceInPercent?: number | undefined;\r\n twintTransactionConstantPrice?: number | undefined;\r\n twintTransactionVariablePriceInPercent?: number | undefined;\r\n payPalPaymentProviderTransactionConstantPrice?: number | undefined;\r\n payPalPaymentProviderTransactionVariablePriceInPercent?: number | undefined;\r\n payPalTransactionConstantPrice?: number | undefined;\r\n payPalTransactionVariablePriceInPercent?: number | undefined;\r\n noOfIncludedAdmins!: number;\r\n pricePerAdditionalAdmin!: number;\r\n noOfIncludedWebUser!: number;\r\n pricePerAdditionalWebUser!: number;\r\n noOfIncludedParkingRanger!: number;\r\n pricePerAdditionalParkingRanger!: number;\r\n noOfIncludedDevices!: number;\r\n pricePerAdditionalDevice!: number;\r\n noOfIncludedProxies!: number;\r\n pricePerAdditionalProxy!: number;\r\n autoParkingActive!: boolean;\r\n pricePerAutoParkingParkerPerMonth!: number;\r\n thirdPartyInterfaceActive!: boolean;\r\n pricePerThirdPartyInterface!: number;\r\n noOfIncludedParkingSpaces!: number;\r\n noOfIncludedParkers!: number;\r\n parkingSpacePriceModelName?: string | undefined;\r\n parkerPriceModelName?: string | undefined;\r\n\r\n constructor(data?: IFinanceClientPriceModelDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.navisionCustomerNumber = _data[\"navisionCustomerNumber\"];\r\n this.navisionProjectNumber = _data[\"navisionProjectNumber\"];\r\n this.validTo = _data[\"validTo\"] ? DateTime.fromISO(_data[\"validTo\"].toString()) : undefined;\r\n this.feesPaidByParkingSpaceOwner = _data[\"feesPaidByParkingSpaceOwner\"];\r\n this.vatInPercent = _data[\"vatInPercent\"];\r\n this.parkingPriceIncludedVATInPercent = _data[\"parkingPriceIncludedVATInPercent\"];\r\n this.basePricePerMonth = _data[\"basePricePerMonth\"];\r\n this.paymentProviderTransactionConstantPrice = _data[\"paymentProviderTransactionConstantPrice\"];\r\n this.paymentProviderTransactionVariablePriceInPercent = _data[\"paymentProviderTransactionVariablePriceInPercent\"];\r\n this.transactionMinimumPrice = _data[\"transactionMinimumPrice\"];\r\n this.transactionConstantPrice = _data[\"transactionConstantPrice\"];\r\n this.transactionVariablePriceInPercent = _data[\"transactionVariablePriceInPercent\"];\r\n this.creditCardPaymentProviderTransactionConstantPrice = _data[\"creditCardPaymentProviderTransactionConstantPrice\"];\r\n this.creditCardPaymentProviderTransactionVariablePriceInPercent = _data[\"creditCardPaymentProviderTransactionVariablePriceInPercent\"];\r\n this.creditCardTransactionConstantPrice = _data[\"creditCardTransactionConstantPrice\"];\r\n this.creditCardTransactionVariablePriceInPercent = _data[\"creditCardTransactionVariablePriceInPercent\"];\r\n this.twintPaymentProviderTransactionConstantPrice = _data[\"twintPaymentProviderTransactionConstantPrice\"];\r\n this.twintPaymentProviderTransactionVariablePriceInPercent = _data[\"twintPaymentProviderTransactionVariablePriceInPercent\"];\r\n this.twintTransactionConstantPrice = _data[\"twintTransactionConstantPrice\"];\r\n this.twintTransactionVariablePriceInPercent = _data[\"twintTransactionVariablePriceInPercent\"];\r\n this.payPalPaymentProviderTransactionConstantPrice = _data[\"payPalPaymentProviderTransactionConstantPrice\"];\r\n this.payPalPaymentProviderTransactionVariablePriceInPercent = _data[\"payPalPaymentProviderTransactionVariablePriceInPercent\"];\r\n this.payPalTransactionConstantPrice = _data[\"payPalTransactionConstantPrice\"];\r\n this.payPalTransactionVariablePriceInPercent = _data[\"payPalTransactionVariablePriceInPercent\"];\r\n this.noOfIncludedAdmins = _data[\"noOfIncludedAdmins\"];\r\n this.pricePerAdditionalAdmin = _data[\"pricePerAdditionalAdmin\"];\r\n this.noOfIncludedWebUser = _data[\"noOfIncludedWebUser\"];\r\n this.pricePerAdditionalWebUser = _data[\"pricePerAdditionalWebUser\"];\r\n this.noOfIncludedParkingRanger = _data[\"noOfIncludedParkingRanger\"];\r\n this.pricePerAdditionalParkingRanger = _data[\"pricePerAdditionalParkingRanger\"];\r\n this.noOfIncludedDevices = _data[\"noOfIncludedDevices\"];\r\n this.pricePerAdditionalDevice = _data[\"pricePerAdditionalDevice\"];\r\n this.noOfIncludedProxies = _data[\"noOfIncludedProxies\"];\r\n this.pricePerAdditionalProxy = _data[\"pricePerAdditionalProxy\"];\r\n this.autoParkingActive = _data[\"autoParkingActive\"];\r\n this.pricePerAutoParkingParkerPerMonth = _data[\"pricePerAutoParkingParkerPerMonth\"];\r\n this.thirdPartyInterfaceActive = _data[\"thirdPartyInterfaceActive\"];\r\n this.pricePerThirdPartyInterface = _data[\"pricePerThirdPartyInterface\"];\r\n this.noOfIncludedParkingSpaces = _data[\"noOfIncludedParkingSpaces\"];\r\n this.noOfIncludedParkers = _data[\"noOfIncludedParkers\"];\r\n this.parkingSpacePriceModelName = _data[\"parkingSpacePriceModelName\"];\r\n this.parkerPriceModelName = _data[\"parkerPriceModelName\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): FinanceClientPriceModelDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FinanceClientPriceModelDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"navisionCustomerNumber\"] = this.navisionCustomerNumber;\r\n data[\"navisionProjectNumber\"] = this.navisionProjectNumber;\r\n data[\"validTo\"] = this.validTo ? this.validTo.toString() : undefined;\r\n data[\"feesPaidByParkingSpaceOwner\"] = this.feesPaidByParkingSpaceOwner;\r\n data[\"vatInPercent\"] = this.vatInPercent;\r\n data[\"parkingPriceIncludedVATInPercent\"] = this.parkingPriceIncludedVATInPercent;\r\n data[\"basePricePerMonth\"] = this.basePricePerMonth;\r\n data[\"paymentProviderTransactionConstantPrice\"] = this.paymentProviderTransactionConstantPrice;\r\n data[\"paymentProviderTransactionVariablePriceInPercent\"] = this.paymentProviderTransactionVariablePriceInPercent;\r\n data[\"transactionMinimumPrice\"] = this.transactionMinimumPrice;\r\n data[\"transactionConstantPrice\"] = this.transactionConstantPrice;\r\n data[\"transactionVariablePriceInPercent\"] = this.transactionVariablePriceInPercent;\r\n data[\"creditCardPaymentProviderTransactionConstantPrice\"] = this.creditCardPaymentProviderTransactionConstantPrice;\r\n data[\"creditCardPaymentProviderTransactionVariablePriceInPercent\"] = this.creditCardPaymentProviderTransactionVariablePriceInPercent;\r\n data[\"creditCardTransactionConstantPrice\"] = this.creditCardTransactionConstantPrice;\r\n data[\"creditCardTransactionVariablePriceInPercent\"] = this.creditCardTransactionVariablePriceInPercent;\r\n data[\"twintPaymentProviderTransactionConstantPrice\"] = this.twintPaymentProviderTransactionConstantPrice;\r\n data[\"twintPaymentProviderTransactionVariablePriceInPercent\"] = this.twintPaymentProviderTransactionVariablePriceInPercent;\r\n data[\"twintTransactionConstantPrice\"] = this.twintTransactionConstantPrice;\r\n data[\"twintTransactionVariablePriceInPercent\"] = this.twintTransactionVariablePriceInPercent;\r\n data[\"payPalPaymentProviderTransactionConstantPrice\"] = this.payPalPaymentProviderTransactionConstantPrice;\r\n data[\"payPalPaymentProviderTransactionVariablePriceInPercent\"] = this.payPalPaymentProviderTransactionVariablePriceInPercent;\r\n data[\"payPalTransactionConstantPrice\"] = this.payPalTransactionConstantPrice;\r\n data[\"payPalTransactionVariablePriceInPercent\"] = this.payPalTransactionVariablePriceInPercent;\r\n data[\"noOfIncludedAdmins\"] = this.noOfIncludedAdmins;\r\n data[\"pricePerAdditionalAdmin\"] = this.pricePerAdditionalAdmin;\r\n data[\"noOfIncludedWebUser\"] = this.noOfIncludedWebUser;\r\n data[\"pricePerAdditionalWebUser\"] = this.pricePerAdditionalWebUser;\r\n data[\"noOfIncludedParkingRanger\"] = this.noOfIncludedParkingRanger;\r\n data[\"pricePerAdditionalParkingRanger\"] = this.pricePerAdditionalParkingRanger;\r\n data[\"noOfIncludedDevices\"] = this.noOfIncludedDevices;\r\n data[\"pricePerAdditionalDevice\"] = this.pricePerAdditionalDevice;\r\n data[\"noOfIncludedProxies\"] = this.noOfIncludedProxies;\r\n data[\"pricePerAdditionalProxy\"] = this.pricePerAdditionalProxy;\r\n data[\"autoParkingActive\"] = this.autoParkingActive;\r\n data[\"pricePerAutoParkingParkerPerMonth\"] = this.pricePerAutoParkingParkerPerMonth;\r\n data[\"thirdPartyInterfaceActive\"] = this.thirdPartyInterfaceActive;\r\n data[\"pricePerThirdPartyInterface\"] = this.pricePerThirdPartyInterface;\r\n data[\"noOfIncludedParkingSpaces\"] = this.noOfIncludedParkingSpaces;\r\n data[\"noOfIncludedParkers\"] = this.noOfIncludedParkers;\r\n data[\"parkingSpacePriceModelName\"] = this.parkingSpacePriceModelName;\r\n data[\"parkerPriceModelName\"] = this.parkerPriceModelName;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFinanceClientPriceModelDTO {\r\n id: number;\r\n navisionCustomerNumber?: string | undefined;\r\n navisionProjectNumber?: string | undefined;\r\n validTo?: DateTime | undefined;\r\n feesPaidByParkingSpaceOwner: boolean;\r\n vatInPercent: number;\r\n parkingPriceIncludedVATInPercent: number;\r\n basePricePerMonth: number;\r\n paymentProviderTransactionConstantPrice: number;\r\n paymentProviderTransactionVariablePriceInPercent: number;\r\n transactionMinimumPrice: number;\r\n transactionConstantPrice: number;\r\n transactionVariablePriceInPercent: number;\r\n creditCardPaymentProviderTransactionConstantPrice?: number | undefined;\r\n creditCardPaymentProviderTransactionVariablePriceInPercent?: number | undefined;\r\n creditCardTransactionConstantPrice?: number | undefined;\r\n creditCardTransactionVariablePriceInPercent?: number | undefined;\r\n twintPaymentProviderTransactionConstantPrice?: number | undefined;\r\n twintPaymentProviderTransactionVariablePriceInPercent?: number | undefined;\r\n twintTransactionConstantPrice?: number | undefined;\r\n twintTransactionVariablePriceInPercent?: number | undefined;\r\n payPalPaymentProviderTransactionConstantPrice?: number | undefined;\r\n payPalPaymentProviderTransactionVariablePriceInPercent?: number | undefined;\r\n payPalTransactionConstantPrice?: number | undefined;\r\n payPalTransactionVariablePriceInPercent?: number | undefined;\r\n noOfIncludedAdmins: number;\r\n pricePerAdditionalAdmin: number;\r\n noOfIncludedWebUser: number;\r\n pricePerAdditionalWebUser: number;\r\n noOfIncludedParkingRanger: number;\r\n pricePerAdditionalParkingRanger: number;\r\n noOfIncludedDevices: number;\r\n pricePerAdditionalDevice: number;\r\n noOfIncludedProxies: number;\r\n pricePerAdditionalProxy: number;\r\n autoParkingActive: boolean;\r\n pricePerAutoParkingParkerPerMonth: number;\r\n thirdPartyInterfaceActive: boolean;\r\n pricePerThirdPartyInterface: number;\r\n noOfIncludedParkingSpaces: number;\r\n noOfIncludedParkers: number;\r\n parkingSpacePriceModelName?: string | undefined;\r\n parkerPriceModelName?: string | undefined;\r\n}\r\n\r\nexport class FinancePriceModelDataDTO implements IFinancePriceModelDataDTO {\r\n parkingSpacePriceModels!: FinanceParkingSpacePriceModelDTO[];\r\n parkerPriceModels!: FinanceParkerPriceModelDTO[];\r\n\r\n constructor(data?: IFinancePriceModelDataDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.parkingSpacePriceModels = [];\r\n this.parkerPriceModels = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"parkingSpacePriceModels\"])) {\r\n this.parkingSpacePriceModels = [] as any;\r\n for (let item of _data[\"parkingSpacePriceModels\"])\r\n this.parkingSpacePriceModels!.push(FinanceParkingSpacePriceModelDTO.fromJS(item));\r\n }\r\n if (Array.isArray(_data[\"parkerPriceModels\"])) {\r\n this.parkerPriceModels = [] as any;\r\n for (let item of _data[\"parkerPriceModels\"])\r\n this.parkerPriceModels!.push(FinanceParkerPriceModelDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): FinancePriceModelDataDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FinancePriceModelDataDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.parkingSpacePriceModels)) {\r\n data[\"parkingSpacePriceModels\"] = [];\r\n for (let item of this.parkingSpacePriceModels)\r\n data[\"parkingSpacePriceModels\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.parkerPriceModels)) {\r\n data[\"parkerPriceModels\"] = [];\r\n for (let item of this.parkerPriceModels)\r\n data[\"parkerPriceModels\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFinancePriceModelDataDTO {\r\n parkingSpacePriceModels: FinanceParkingSpacePriceModelDTO[];\r\n parkerPriceModels: FinanceParkerPriceModelDTO[];\r\n}\r\n\r\nexport class FinanceParkingSpacePriceModelDTO implements IFinanceParkingSpacePriceModelDTO {\r\n modelName?: string | undefined;\r\n\r\n constructor(data?: IFinanceParkingSpacePriceModelDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.modelName = _data[\"modelName\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): FinanceParkingSpacePriceModelDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FinanceParkingSpacePriceModelDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"modelName\"] = this.modelName;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFinanceParkingSpacePriceModelDTO {\r\n modelName?: string | undefined;\r\n}\r\n\r\nexport class FinanceParkerPriceModelDTO implements IFinanceParkerPriceModelDTO {\r\n modelName?: string | undefined;\r\n\r\n constructor(data?: IFinanceParkerPriceModelDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.modelName = _data[\"modelName\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): FinanceParkerPriceModelDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FinanceParkerPriceModelDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"modelName\"] = this.modelName;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFinanceParkerPriceModelDTO {\r\n modelName?: string | undefined;\r\n}\r\n\r\nexport class FinancialClientInfoDTO implements IFinancialClientInfoDTO {\r\n clientId!: number;\r\n clientName?: string | undefined;\r\n navisionCustomerNumber?: string | undefined;\r\n navisionProjectNumber?: string | undefined;\r\n\r\n constructor(data?: IFinancialClientInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.clientName = _data[\"clientName\"];\r\n this.navisionCustomerNumber = _data[\"navisionCustomerNumber\"];\r\n this.navisionProjectNumber = _data[\"navisionProjectNumber\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): FinancialClientInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FinancialClientInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"clientName\"] = this.clientName;\r\n data[\"navisionCustomerNumber\"] = this.navisionCustomerNumber;\r\n data[\"navisionProjectNumber\"] = this.navisionProjectNumber;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFinancialClientInfoDTO {\r\n clientId: number;\r\n clientName?: string | undefined;\r\n navisionCustomerNumber?: string | undefined;\r\n navisionProjectNumber?: string | undefined;\r\n}\r\n\r\nexport class ClientFinancialPriceReportDTO implements IClientFinancialPriceReportDTO {\r\n financialClientInfo?: FinancialClientInfoDTO | undefined;\r\n reportStartDate?: DateTime | undefined;\r\n reportEndDate?: DateTime | undefined;\r\n basePricePerMonth!: number;\r\n feesPaidByParkingSpaceOwner!: boolean;\r\n noOfClientAdmins!: number;\r\n noOfIncludedClientAdmins!: number;\r\n noOfAdditionalClientAdmins!: number;\r\n pricePerAdditionalClientAdmin!: number;\r\n priceForAdditionalClientAdmins!: number;\r\n noOfClientUsers!: number;\r\n noOfIncludedClientUsers!: number;\r\n noOfAdditionalClientUsers!: number;\r\n pricePerAdditionalClientUser!: number;\r\n priceForAdditionalClientUsers!: number;\r\n noOfParkingRangers!: number;\r\n noOfIncludedParkingRangers!: number;\r\n noOfAdditionalParkingRangers!: number;\r\n pricePerAdditionalParkingRanger!: number;\r\n priceForAdditionalParkingRangers!: number;\r\n noOfProxies!: number;\r\n noOfIncludedProxies!: number;\r\n noOfAdditionalProxies!: number;\r\n pricePerAdditionalProxy!: number;\r\n priceForAdditionalProxies!: number;\r\n noOfDevices!: number;\r\n noOfIncludedDevices!: number;\r\n noOfAdditionalDevices!: number;\r\n pricePerAdditionalDevice!: number;\r\n priceForAdditionalDevices!: number;\r\n noOfParkingSpaces!: number;\r\n noOfIncludedParkingSpaces!: number;\r\n noOfAdditionalParkingSpaces!: number;\r\n noOfAdditionalParkingSpacesCat1!: number;\r\n priceForAdditionalParkingSpacesCat1?: number | undefined;\r\n noOfAdditionalParkingSpacesCat2!: number;\r\n priceForAdditionalParkingSpacesCat2?: number | undefined;\r\n noOfAdditionalParkingSpacesCat3!: number;\r\n priceForAdditionalParkingSpacesCat3?: number | undefined;\r\n noOfAdditionalParkingSpacesCat4!: number;\r\n priceForAdditionalParkingSpacesCat4?: number | undefined;\r\n priceForAdditionalParkingSpaces!: number;\r\n noOfParkers!: number;\r\n noOfIncludedParkers!: number;\r\n noOfAdditionalParkers!: number;\r\n noOfAdditionalParkersCat1!: number;\r\n priceForAdditionalParkersCat1?: number | undefined;\r\n noOfAdditionalParkersCat2!: number;\r\n priceForAdditionalParkersCat2?: number | undefined;\r\n noOfAdditionalParkersCat3!: number;\r\n priceForAdditionalParkersCat3?: number | undefined;\r\n noOfAdditionalParkersCat4!: number;\r\n priceForAdditionalParkersCat4?: number | undefined;\r\n priceForAdditionalParkers!: number;\r\n totalCosts!: number;\r\n\r\n constructor(data?: IClientFinancialPriceReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.financialClientInfo = _data[\"financialClientInfo\"] ? FinancialClientInfoDTO.fromJS(_data[\"financialClientInfo\"]) : undefined;\r\n this.reportStartDate = _data[\"reportStartDate\"] ? DateTime.fromISO(_data[\"reportStartDate\"].toString()) : undefined;\r\n this.reportEndDate = _data[\"reportEndDate\"] ? DateTime.fromISO(_data[\"reportEndDate\"].toString()) : undefined;\r\n this.basePricePerMonth = _data[\"basePricePerMonth\"];\r\n this.feesPaidByParkingSpaceOwner = _data[\"feesPaidByParkingSpaceOwner\"];\r\n this.noOfClientAdmins = _data[\"noOfClientAdmins\"];\r\n this.noOfIncludedClientAdmins = _data[\"noOfIncludedClientAdmins\"];\r\n this.noOfAdditionalClientAdmins = _data[\"noOfAdditionalClientAdmins\"];\r\n this.pricePerAdditionalClientAdmin = _data[\"pricePerAdditionalClientAdmin\"];\r\n this.priceForAdditionalClientAdmins = _data[\"priceForAdditionalClientAdmins\"];\r\n this.noOfClientUsers = _data[\"noOfClientUsers\"];\r\n this.noOfIncludedClientUsers = _data[\"noOfIncludedClientUsers\"];\r\n this.noOfAdditionalClientUsers = _data[\"noOfAdditionalClientUsers\"];\r\n this.pricePerAdditionalClientUser = _data[\"pricePerAdditionalClientUser\"];\r\n this.priceForAdditionalClientUsers = _data[\"priceForAdditionalClientUsers\"];\r\n this.noOfParkingRangers = _data[\"noOfParkingRangers\"];\r\n this.noOfIncludedParkingRangers = _data[\"noOfIncludedParkingRangers\"];\r\n this.noOfAdditionalParkingRangers = _data[\"noOfAdditionalParkingRangers\"];\r\n this.pricePerAdditionalParkingRanger = _data[\"pricePerAdditionalParkingRanger\"];\r\n this.priceForAdditionalParkingRangers = _data[\"priceForAdditionalParkingRangers\"];\r\n this.noOfProxies = _data[\"noOfProxies\"];\r\n this.noOfIncludedProxies = _data[\"noOfIncludedProxies\"];\r\n this.noOfAdditionalProxies = _data[\"noOfAdditionalProxies\"];\r\n this.pricePerAdditionalProxy = _data[\"pricePerAdditionalProxy\"];\r\n this.priceForAdditionalProxies = _data[\"priceForAdditionalProxies\"];\r\n this.noOfDevices = _data[\"noOfDevices\"];\r\n this.noOfIncludedDevices = _data[\"noOfIncludedDevices\"];\r\n this.noOfAdditionalDevices = _data[\"noOfAdditionalDevices\"];\r\n this.pricePerAdditionalDevice = _data[\"pricePerAdditionalDevice\"];\r\n this.priceForAdditionalDevices = _data[\"priceForAdditionalDevices\"];\r\n this.noOfParkingSpaces = _data[\"noOfParkingSpaces\"];\r\n this.noOfIncludedParkingSpaces = _data[\"noOfIncludedParkingSpaces\"];\r\n this.noOfAdditionalParkingSpaces = _data[\"noOfAdditionalParkingSpaces\"];\r\n this.noOfAdditionalParkingSpacesCat1 = _data[\"noOfAdditionalParkingSpacesCat1\"];\r\n this.priceForAdditionalParkingSpacesCat1 = _data[\"priceForAdditionalParkingSpacesCat1\"];\r\n this.noOfAdditionalParkingSpacesCat2 = _data[\"noOfAdditionalParkingSpacesCat2\"];\r\n this.priceForAdditionalParkingSpacesCat2 = _data[\"priceForAdditionalParkingSpacesCat2\"];\r\n this.noOfAdditionalParkingSpacesCat3 = _data[\"noOfAdditionalParkingSpacesCat3\"];\r\n this.priceForAdditionalParkingSpacesCat3 = _data[\"priceForAdditionalParkingSpacesCat3\"];\r\n this.noOfAdditionalParkingSpacesCat4 = _data[\"noOfAdditionalParkingSpacesCat4\"];\r\n this.priceForAdditionalParkingSpacesCat4 = _data[\"priceForAdditionalParkingSpacesCat4\"];\r\n this.priceForAdditionalParkingSpaces = _data[\"priceForAdditionalParkingSpaces\"];\r\n this.noOfParkers = _data[\"noOfParkers\"];\r\n this.noOfIncludedParkers = _data[\"noOfIncludedParkers\"];\r\n this.noOfAdditionalParkers = _data[\"noOfAdditionalParkers\"];\r\n this.noOfAdditionalParkersCat1 = _data[\"noOfAdditionalParkersCat1\"];\r\n this.priceForAdditionalParkersCat1 = _data[\"priceForAdditionalParkersCat1\"];\r\n this.noOfAdditionalParkersCat2 = _data[\"noOfAdditionalParkersCat2\"];\r\n this.priceForAdditionalParkersCat2 = _data[\"priceForAdditionalParkersCat2\"];\r\n this.noOfAdditionalParkersCat3 = _data[\"noOfAdditionalParkersCat3\"];\r\n this.priceForAdditionalParkersCat3 = _data[\"priceForAdditionalParkersCat3\"];\r\n this.noOfAdditionalParkersCat4 = _data[\"noOfAdditionalParkersCat4\"];\r\n this.priceForAdditionalParkersCat4 = _data[\"priceForAdditionalParkersCat4\"];\r\n this.priceForAdditionalParkers = _data[\"priceForAdditionalParkers\"];\r\n this.totalCosts = _data[\"totalCosts\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ClientFinancialPriceReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ClientFinancialPriceReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"financialClientInfo\"] = this.financialClientInfo ? this.financialClientInfo.toJSON() : undefined;\r\n data[\"reportStartDate\"] = this.reportStartDate ? this.reportStartDate.toString() : undefined;\r\n data[\"reportEndDate\"] = this.reportEndDate ? this.reportEndDate.toString() : undefined;\r\n data[\"basePricePerMonth\"] = this.basePricePerMonth;\r\n data[\"feesPaidByParkingSpaceOwner\"] = this.feesPaidByParkingSpaceOwner;\r\n data[\"noOfClientAdmins\"] = this.noOfClientAdmins;\r\n data[\"noOfIncludedClientAdmins\"] = this.noOfIncludedClientAdmins;\r\n data[\"noOfAdditionalClientAdmins\"] = this.noOfAdditionalClientAdmins;\r\n data[\"pricePerAdditionalClientAdmin\"] = this.pricePerAdditionalClientAdmin;\r\n data[\"priceForAdditionalClientAdmins\"] = this.priceForAdditionalClientAdmins;\r\n data[\"noOfClientUsers\"] = this.noOfClientUsers;\r\n data[\"noOfIncludedClientUsers\"] = this.noOfIncludedClientUsers;\r\n data[\"noOfAdditionalClientUsers\"] = this.noOfAdditionalClientUsers;\r\n data[\"pricePerAdditionalClientUser\"] = this.pricePerAdditionalClientUser;\r\n data[\"priceForAdditionalClientUsers\"] = this.priceForAdditionalClientUsers;\r\n data[\"noOfParkingRangers\"] = this.noOfParkingRangers;\r\n data[\"noOfIncludedParkingRangers\"] = this.noOfIncludedParkingRangers;\r\n data[\"noOfAdditionalParkingRangers\"] = this.noOfAdditionalParkingRangers;\r\n data[\"pricePerAdditionalParkingRanger\"] = this.pricePerAdditionalParkingRanger;\r\n data[\"priceForAdditionalParkingRangers\"] = this.priceForAdditionalParkingRangers;\r\n data[\"noOfProxies\"] = this.noOfProxies;\r\n data[\"noOfIncludedProxies\"] = this.noOfIncludedProxies;\r\n data[\"noOfAdditionalProxies\"] = this.noOfAdditionalProxies;\r\n data[\"pricePerAdditionalProxy\"] = this.pricePerAdditionalProxy;\r\n data[\"priceForAdditionalProxies\"] = this.priceForAdditionalProxies;\r\n data[\"noOfDevices\"] = this.noOfDevices;\r\n data[\"noOfIncludedDevices\"] = this.noOfIncludedDevices;\r\n data[\"noOfAdditionalDevices\"] = this.noOfAdditionalDevices;\r\n data[\"pricePerAdditionalDevice\"] = this.pricePerAdditionalDevice;\r\n data[\"priceForAdditionalDevices\"] = this.priceForAdditionalDevices;\r\n data[\"noOfParkingSpaces\"] = this.noOfParkingSpaces;\r\n data[\"noOfIncludedParkingSpaces\"] = this.noOfIncludedParkingSpaces;\r\n data[\"noOfAdditionalParkingSpaces\"] = this.noOfAdditionalParkingSpaces;\r\n data[\"noOfAdditionalParkingSpacesCat1\"] = this.noOfAdditionalParkingSpacesCat1;\r\n data[\"priceForAdditionalParkingSpacesCat1\"] = this.priceForAdditionalParkingSpacesCat1;\r\n data[\"noOfAdditionalParkingSpacesCat2\"] = this.noOfAdditionalParkingSpacesCat2;\r\n data[\"priceForAdditionalParkingSpacesCat2\"] = this.priceForAdditionalParkingSpacesCat2;\r\n data[\"noOfAdditionalParkingSpacesCat3\"] = this.noOfAdditionalParkingSpacesCat3;\r\n data[\"priceForAdditionalParkingSpacesCat3\"] = this.priceForAdditionalParkingSpacesCat3;\r\n data[\"noOfAdditionalParkingSpacesCat4\"] = this.noOfAdditionalParkingSpacesCat4;\r\n data[\"priceForAdditionalParkingSpacesCat4\"] = this.priceForAdditionalParkingSpacesCat4;\r\n data[\"priceForAdditionalParkingSpaces\"] = this.priceForAdditionalParkingSpaces;\r\n data[\"noOfParkers\"] = this.noOfParkers;\r\n data[\"noOfIncludedParkers\"] = this.noOfIncludedParkers;\r\n data[\"noOfAdditionalParkers\"] = this.noOfAdditionalParkers;\r\n data[\"noOfAdditionalParkersCat1\"] = this.noOfAdditionalParkersCat1;\r\n data[\"priceForAdditionalParkersCat1\"] = this.priceForAdditionalParkersCat1;\r\n data[\"noOfAdditionalParkersCat2\"] = this.noOfAdditionalParkersCat2;\r\n data[\"priceForAdditionalParkersCat2\"] = this.priceForAdditionalParkersCat2;\r\n data[\"noOfAdditionalParkersCat3\"] = this.noOfAdditionalParkersCat3;\r\n data[\"priceForAdditionalParkersCat3\"] = this.priceForAdditionalParkersCat3;\r\n data[\"noOfAdditionalParkersCat4\"] = this.noOfAdditionalParkersCat4;\r\n data[\"priceForAdditionalParkersCat4\"] = this.priceForAdditionalParkersCat4;\r\n data[\"priceForAdditionalParkers\"] = this.priceForAdditionalParkers;\r\n data[\"totalCosts\"] = this.totalCosts;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IClientFinancialPriceReportDTO {\r\n financialClientInfo?: FinancialClientInfoDTO | undefined;\r\n reportStartDate?: DateTime | undefined;\r\n reportEndDate?: DateTime | undefined;\r\n basePricePerMonth: number;\r\n feesPaidByParkingSpaceOwner: boolean;\r\n noOfClientAdmins: number;\r\n noOfIncludedClientAdmins: number;\r\n noOfAdditionalClientAdmins: number;\r\n pricePerAdditionalClientAdmin: number;\r\n priceForAdditionalClientAdmins: number;\r\n noOfClientUsers: number;\r\n noOfIncludedClientUsers: number;\r\n noOfAdditionalClientUsers: number;\r\n pricePerAdditionalClientUser: number;\r\n priceForAdditionalClientUsers: number;\r\n noOfParkingRangers: number;\r\n noOfIncludedParkingRangers: number;\r\n noOfAdditionalParkingRangers: number;\r\n pricePerAdditionalParkingRanger: number;\r\n priceForAdditionalParkingRangers: number;\r\n noOfProxies: number;\r\n noOfIncludedProxies: number;\r\n noOfAdditionalProxies: number;\r\n pricePerAdditionalProxy: number;\r\n priceForAdditionalProxies: number;\r\n noOfDevices: number;\r\n noOfIncludedDevices: number;\r\n noOfAdditionalDevices: number;\r\n pricePerAdditionalDevice: number;\r\n priceForAdditionalDevices: number;\r\n noOfParkingSpaces: number;\r\n noOfIncludedParkingSpaces: number;\r\n noOfAdditionalParkingSpaces: number;\r\n noOfAdditionalParkingSpacesCat1: number;\r\n priceForAdditionalParkingSpacesCat1?: number | undefined;\r\n noOfAdditionalParkingSpacesCat2: number;\r\n priceForAdditionalParkingSpacesCat2?: number | undefined;\r\n noOfAdditionalParkingSpacesCat3: number;\r\n priceForAdditionalParkingSpacesCat3?: number | undefined;\r\n noOfAdditionalParkingSpacesCat4: number;\r\n priceForAdditionalParkingSpacesCat4?: number | undefined;\r\n priceForAdditionalParkingSpaces: number;\r\n noOfParkers: number;\r\n noOfIncludedParkers: number;\r\n noOfAdditionalParkers: number;\r\n noOfAdditionalParkersCat1: number;\r\n priceForAdditionalParkersCat1?: number | undefined;\r\n noOfAdditionalParkersCat2: number;\r\n priceForAdditionalParkersCat2?: number | undefined;\r\n noOfAdditionalParkersCat3: number;\r\n priceForAdditionalParkersCat3?: number | undefined;\r\n noOfAdditionalParkersCat4: number;\r\n priceForAdditionalParkersCat4?: number | undefined;\r\n priceForAdditionalParkers: number;\r\n totalCosts: number;\r\n}\r\n\r\nexport class FinancialParkingSessionDTO implements IFinancialParkingSessionDTO {\r\n parkingSessionId!: number;\r\n clientId!: number;\r\n startDateTime!: DateTime;\r\n endDateTime!: DateTime;\r\n durationInMinutes!: number;\r\n companyId?: number | undefined;\r\n companyName?: string | undefined;\r\n zoneId?: number | undefined;\r\n zoneName?: string | undefined;\r\n payedByParkingSpaceOwner!: boolean;\r\n grossAmount!: number;\r\n totalVat!: number;\r\n netAmount!: number;\r\n grossParking!: number;\r\n parkingVat!: number;\r\n netParking!: number;\r\n grossService!: number;\r\n serviceVat!: number;\r\n netService!: number;\r\n\r\n constructor(data?: IFinancialParkingSessionDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.parkingSessionId = _data[\"parkingSessionId\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.startDateTime = _data[\"startDateTime\"] ? DateTime.fromISO(_data[\"startDateTime\"].toString()) : undefined;\r\n this.endDateTime = _data[\"endDateTime\"] ? DateTime.fromISO(_data[\"endDateTime\"].toString()) : undefined;\r\n this.durationInMinutes = _data[\"durationInMinutes\"];\r\n this.companyId = _data[\"companyId\"];\r\n this.companyName = _data[\"companyName\"];\r\n this.zoneId = _data[\"zoneId\"];\r\n this.zoneName = _data[\"zoneName\"];\r\n this.payedByParkingSpaceOwner = _data[\"payedByParkingSpaceOwner\"];\r\n this.grossAmount = _data[\"grossAmount\"];\r\n this.totalVat = _data[\"totalVat\"];\r\n this.netAmount = _data[\"netAmount\"];\r\n this.grossParking = _data[\"grossParking\"];\r\n this.parkingVat = _data[\"parkingVat\"];\r\n this.netParking = _data[\"netParking\"];\r\n this.grossService = _data[\"grossService\"];\r\n this.serviceVat = _data[\"serviceVat\"];\r\n this.netService = _data[\"netService\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): FinancialParkingSessionDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FinancialParkingSessionDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"parkingSessionId\"] = this.parkingSessionId;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"startDateTime\"] = this.startDateTime ? this.startDateTime.toString() : undefined;\r\n data[\"endDateTime\"] = this.endDateTime ? this.endDateTime.toString() : undefined;\r\n data[\"durationInMinutes\"] = this.durationInMinutes;\r\n data[\"companyId\"] = this.companyId;\r\n data[\"companyName\"] = this.companyName;\r\n data[\"zoneId\"] = this.zoneId;\r\n data[\"zoneName\"] = this.zoneName;\r\n data[\"payedByParkingSpaceOwner\"] = this.payedByParkingSpaceOwner;\r\n data[\"grossAmount\"] = this.grossAmount;\r\n data[\"totalVat\"] = this.totalVat;\r\n data[\"netAmount\"] = this.netAmount;\r\n data[\"grossParking\"] = this.grossParking;\r\n data[\"parkingVat\"] = this.parkingVat;\r\n data[\"netParking\"] = this.netParking;\r\n data[\"grossService\"] = this.grossService;\r\n data[\"serviceVat\"] = this.serviceVat;\r\n data[\"netService\"] = this.netService;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFinancialParkingSessionDTO {\r\n parkingSessionId: number;\r\n clientId: number;\r\n startDateTime: DateTime;\r\n endDateTime: DateTime;\r\n durationInMinutes: number;\r\n companyId?: number | undefined;\r\n companyName?: string | undefined;\r\n zoneId?: number | undefined;\r\n zoneName?: string | undefined;\r\n payedByParkingSpaceOwner: boolean;\r\n grossAmount: number;\r\n totalVat: number;\r\n netAmount: number;\r\n grossParking: number;\r\n parkingVat: number;\r\n netParking: number;\r\n grossService: number;\r\n serviceVat: number;\r\n netService: number;\r\n}\r\n\r\nexport class RegisterMobileUserResultDTO implements IRegisterMobileUserResultDTO {\r\n passwordToUse?: string | undefined;\r\n userId?: string | undefined;\r\n userName?: string | undefined;\r\n\r\n constructor(data?: IRegisterMobileUserResultDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.passwordToUse = _data[\"passwordToUse\"];\r\n this.userId = _data[\"userId\"];\r\n this.userName = _data[\"userName\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): RegisterMobileUserResultDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RegisterMobileUserResultDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"passwordToUse\"] = this.passwordToUse;\r\n data[\"userId\"] = this.userId;\r\n data[\"userName\"] = this.userName;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRegisterMobileUserResultDTO {\r\n passwordToUse?: string | undefined;\r\n userId?: string | undefined;\r\n userName?: string | undefined;\r\n}\r\n\r\nexport class RegisterMobileUserInfoDTO implements IRegisterMobileUserInfoDTO {\r\n accessCode?: string | undefined;\r\n\r\n constructor(data?: IRegisterMobileUserInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.accessCode = _data[\"accessCode\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): RegisterMobileUserInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RegisterMobileUserInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accessCode\"] = this.accessCode;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRegisterMobileUserInfoDTO {\r\n accessCode?: string | undefined;\r\n}\r\n\r\nexport class RequestParkingRangerLinkToUserDTO implements IRequestParkingRangerLinkToUserDTO {\r\n userIdToLinkWith?: string | undefined;\r\n\r\n constructor(data?: IRequestParkingRangerLinkToUserDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.userIdToLinkWith = _data[\"userIdToLinkWith\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): RequestParkingRangerLinkToUserDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RequestParkingRangerLinkToUserDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"userIdToLinkWith\"] = this.userIdToLinkWith;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRequestParkingRangerLinkToUserDTO {\r\n userIdToLinkWith?: string | undefined;\r\n}\r\n\r\nexport class CommitParkingRangerLinkRequestDTO implements ICommitParkingRangerLinkRequestDTO {\r\n parkingRangerUserIdToCommit?: string | undefined;\r\n\r\n constructor(data?: ICommitParkingRangerLinkRequestDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.parkingRangerUserIdToCommit = _data[\"parkingRangerUserIdToCommit\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CommitParkingRangerLinkRequestDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CommitParkingRangerLinkRequestDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"parkingRangerUserIdToCommit\"] = this.parkingRangerUserIdToCommit;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICommitParkingRangerLinkRequestDTO {\r\n parkingRangerUserIdToCommit?: string | undefined;\r\n}\r\n\r\nexport class UnlinkParkingRangerDTO implements IUnlinkParkingRangerDTO {\r\n parkingRangerID?: string | undefined;\r\n\r\n constructor(data?: IUnlinkParkingRangerDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.parkingRangerID = _data[\"parkingRangerID\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UnlinkParkingRangerDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UnlinkParkingRangerDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"parkingRangerID\"] = this.parkingRangerID;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUnlinkParkingRangerDTO {\r\n parkingRangerID?: string | undefined;\r\n}\r\n\r\nexport class CreateParkerCompanyDTO implements ICreateParkerCompanyDTO {\r\n clientId!: number;\r\n name!: string;\r\n\r\n constructor(data?: ICreateParkerCompanyDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.name = _data[\"name\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateParkerCompanyDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateParkerCompanyDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"name\"] = this.name;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateParkerCompanyDTO {\r\n clientId: number;\r\n name: string;\r\n}\r\n\r\nexport class PagedResultDTOOfParkerCompanyDTO implements IPagedResultDTOOfParkerCompanyDTO {\r\n items?: ParkerCompanyDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfParkerCompanyDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(ParkerCompanyDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfParkerCompanyDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfParkerCompanyDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfParkerCompanyDTO {\r\n items?: ParkerCompanyDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class UpdateParkerCompanyDTO implements IUpdateParkerCompanyDTO {\r\n id!: number;\r\n active!: boolean;\r\n name?: string | undefined;\r\n\r\n constructor(data?: IUpdateParkerCompanyDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.active = _data[\"active\"];\r\n this.name = _data[\"name\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateParkerCompanyDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateParkerCompanyDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"active\"] = this.active;\r\n data[\"name\"] = this.name;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateParkerCompanyDTO {\r\n id: number;\r\n active: boolean;\r\n name?: string | undefined;\r\n}\r\n\r\nexport class CreateParkerDTO implements ICreateParkerDTO {\r\n clientId!: number;\r\n firstName!: string;\r\n lastName!: string;\r\n identification?: string | undefined;\r\n group!: ParkerGroup;\r\n address?: string | undefined;\r\n zip?: string | undefined;\r\n city?: string | undefined;\r\n country?: string | undefined;\r\n email?: string | undefined;\r\n privateAddress?: string | undefined;\r\n privateZIP?: string | undefined;\r\n privateCity?: string | undefined;\r\n privateCountry?: string | undefined;\r\n companyId?: number | undefined;\r\n costCenter?: string | undefined;\r\n title?: string | undefined;\r\n entryDate!: DateTime;\r\n exitDate?: DateTime | undefined;\r\n mobile?: string | undefined;\r\n phone?: string | undefined;\r\n billing!: boolean;\r\n active!: boolean;\r\n workplace?: string | undefined;\r\n employmentPercentage!: number;\r\n billingCurrency!: Currency;\r\n tags?: CreateParkerTagDTO[] | undefined;\r\n parkerSubscriptionAssignments?: UpdateParkerSubscriptionAssignmentDTO[] | undefined;\r\n custom1?: string | undefined;\r\n custom2?: string | undefined;\r\n custom3?: string | undefined;\r\n custom4?: string | undefined;\r\n custom5?: string | undefined;\r\n custom6?: string | undefined;\r\n custom7?: string | undefined;\r\n custom8?: string | undefined;\r\n custom9?: string | undefined;\r\n comment?: string | undefined;\r\n\r\n constructor(data?: ICreateParkerDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.firstName = _data[\"firstName\"];\r\n this.lastName = _data[\"lastName\"];\r\n this.identification = _data[\"identification\"];\r\n this.group = _data[\"group\"];\r\n this.address = _data[\"address\"];\r\n this.zip = _data[\"zip\"];\r\n this.city = _data[\"city\"];\r\n this.country = _data[\"country\"];\r\n this.email = _data[\"email\"];\r\n this.privateAddress = _data[\"privateAddress\"];\r\n this.privateZIP = _data[\"privateZIP\"];\r\n this.privateCity = _data[\"privateCity\"];\r\n this.privateCountry = _data[\"privateCountry\"];\r\n this.companyId = _data[\"companyId\"];\r\n this.costCenter = _data[\"costCenter\"];\r\n this.title = _data[\"title\"];\r\n this.entryDate = _data[\"entryDate\"] ? DateTime.fromISO(_data[\"entryDate\"].toString()) : undefined;\r\n this.exitDate = _data[\"exitDate\"] ? DateTime.fromISO(_data[\"exitDate\"].toString()) : undefined;\r\n this.mobile = _data[\"mobile\"];\r\n this.phone = _data[\"phone\"];\r\n this.billing = _data[\"billing\"];\r\n this.active = _data[\"active\"];\r\n this.workplace = _data[\"workplace\"];\r\n this.employmentPercentage = _data[\"employmentPercentage\"];\r\n this.billingCurrency = _data[\"billingCurrency\"];\r\n if (Array.isArray(_data[\"tags\"])) {\r\n this.tags = [] as any;\r\n for (let item of _data[\"tags\"])\r\n this.tags!.push(CreateParkerTagDTO.fromJS(item));\r\n }\r\n if (Array.isArray(_data[\"parkerSubscriptionAssignments\"])) {\r\n this.parkerSubscriptionAssignments = [] as any;\r\n for (let item of _data[\"parkerSubscriptionAssignments\"])\r\n this.parkerSubscriptionAssignments!.push(UpdateParkerSubscriptionAssignmentDTO.fromJS(item));\r\n }\r\n this.custom1 = _data[\"custom1\"];\r\n this.custom2 = _data[\"custom2\"];\r\n this.custom3 = _data[\"custom3\"];\r\n this.custom4 = _data[\"custom4\"];\r\n this.custom5 = _data[\"custom5\"];\r\n this.custom6 = _data[\"custom6\"];\r\n this.custom7 = _data[\"custom7\"];\r\n this.custom8 = _data[\"custom8\"];\r\n this.custom9 = _data[\"custom9\"];\r\n this.comment = _data[\"comment\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateParkerDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateParkerDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"firstName\"] = this.firstName;\r\n data[\"lastName\"] = this.lastName;\r\n data[\"identification\"] = this.identification;\r\n data[\"group\"] = this.group;\r\n data[\"address\"] = this.address;\r\n data[\"zip\"] = this.zip;\r\n data[\"city\"] = this.city;\r\n data[\"country\"] = this.country;\r\n data[\"email\"] = this.email;\r\n data[\"privateAddress\"] = this.privateAddress;\r\n data[\"privateZIP\"] = this.privateZIP;\r\n data[\"privateCity\"] = this.privateCity;\r\n data[\"privateCountry\"] = this.privateCountry;\r\n data[\"companyId\"] = this.companyId;\r\n data[\"costCenter\"] = this.costCenter;\r\n data[\"title\"] = this.title;\r\n data[\"entryDate\"] = this.entryDate ? this.entryDate.toString() : undefined;\r\n data[\"exitDate\"] = this.exitDate ? this.exitDate.toString() : undefined;\r\n data[\"mobile\"] = this.mobile;\r\n data[\"phone\"] = this.phone;\r\n data[\"billing\"] = this.billing;\r\n data[\"active\"] = this.active;\r\n data[\"workplace\"] = this.workplace;\r\n data[\"employmentPercentage\"] = this.employmentPercentage;\r\n data[\"billingCurrency\"] = this.billingCurrency;\r\n if (Array.isArray(this.tags)) {\r\n data[\"tags\"] = [];\r\n for (let item of this.tags)\r\n data[\"tags\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.parkerSubscriptionAssignments)) {\r\n data[\"parkerSubscriptionAssignments\"] = [];\r\n for (let item of this.parkerSubscriptionAssignments)\r\n data[\"parkerSubscriptionAssignments\"].push(item.toJSON());\r\n }\r\n data[\"custom1\"] = this.custom1;\r\n data[\"custom2\"] = this.custom2;\r\n data[\"custom3\"] = this.custom3;\r\n data[\"custom4\"] = this.custom4;\r\n data[\"custom5\"] = this.custom5;\r\n data[\"custom6\"] = this.custom6;\r\n data[\"custom7\"] = this.custom7;\r\n data[\"custom8\"] = this.custom8;\r\n data[\"custom9\"] = this.custom9;\r\n data[\"comment\"] = this.comment;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateParkerDTO {\r\n clientId: number;\r\n firstName: string;\r\n lastName: string;\r\n identification?: string | undefined;\r\n group: ParkerGroup;\r\n address?: string | undefined;\r\n zip?: string | undefined;\r\n city?: string | undefined;\r\n country?: string | undefined;\r\n email?: string | undefined;\r\n privateAddress?: string | undefined;\r\n privateZIP?: string | undefined;\r\n privateCity?: string | undefined;\r\n privateCountry?: string | undefined;\r\n companyId?: number | undefined;\r\n costCenter?: string | undefined;\r\n title?: string | undefined;\r\n entryDate: DateTime;\r\n exitDate?: DateTime | undefined;\r\n mobile?: string | undefined;\r\n phone?: string | undefined;\r\n billing: boolean;\r\n active: boolean;\r\n workplace?: string | undefined;\r\n employmentPercentage: number;\r\n billingCurrency: Currency;\r\n tags?: CreateParkerTagDTO[] | undefined;\r\n parkerSubscriptionAssignments?: UpdateParkerSubscriptionAssignmentDTO[] | undefined;\r\n custom1?: string | undefined;\r\n custom2?: string | undefined;\r\n custom3?: string | undefined;\r\n custom4?: string | undefined;\r\n custom5?: string | undefined;\r\n custom6?: string | undefined;\r\n custom7?: string | undefined;\r\n custom8?: string | undefined;\r\n custom9?: string | undefined;\r\n comment?: string | undefined;\r\n}\r\n\r\nexport class CreateParkerTagDTO implements ICreateParkerTagDTO {\r\n clientId!: number;\r\n parkerId!: number;\r\n identificationCode?: string | undefined;\r\n controlPlateType!: ControlPlateType;\r\n countryCode?: string | undefined;\r\n controlPlateNumber?: string | undefined;\r\n description?: string | undefined;\r\n barcode?: string | undefined;\r\n active!: boolean;\r\n defect!: boolean;\r\n\r\n constructor(data?: ICreateParkerTagDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.parkerId = _data[\"parkerId\"];\r\n this.identificationCode = _data[\"identificationCode\"];\r\n this.controlPlateType = _data[\"controlPlateType\"];\r\n this.countryCode = _data[\"countryCode\"];\r\n this.controlPlateNumber = _data[\"controlPlateNumber\"];\r\n this.description = _data[\"description\"];\r\n this.barcode = _data[\"barcode\"];\r\n this.active = _data[\"active\"];\r\n this.defect = _data[\"defect\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateParkerTagDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateParkerTagDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"parkerId\"] = this.parkerId;\r\n data[\"identificationCode\"] = this.identificationCode;\r\n data[\"controlPlateType\"] = this.controlPlateType;\r\n data[\"countryCode\"] = this.countryCode;\r\n data[\"controlPlateNumber\"] = this.controlPlateNumber;\r\n data[\"description\"] = this.description;\r\n data[\"barcode\"] = this.barcode;\r\n data[\"active\"] = this.active;\r\n data[\"defect\"] = this.defect;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateParkerTagDTO {\r\n clientId: number;\r\n parkerId: number;\r\n identificationCode?: string | undefined;\r\n controlPlateType: ControlPlateType;\r\n countryCode?: string | undefined;\r\n controlPlateNumber?: string | undefined;\r\n description?: string | undefined;\r\n barcode?: string | undefined;\r\n active: boolean;\r\n defect: boolean;\r\n}\r\n\r\nexport class UpdateParkerSubscriptionAssignmentDTO implements IUpdateParkerSubscriptionAssignmentDTO {\r\n id!: number;\r\n active!: boolean;\r\n subscriptionId!: number;\r\n validFrom!: DateTime;\r\n validTo?: DateTime | undefined;\r\n isFavorite!: boolean;\r\n\r\n constructor(data?: IUpdateParkerSubscriptionAssignmentDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.active = _data[\"active\"];\r\n this.subscriptionId = _data[\"subscriptionId\"];\r\n this.validFrom = _data[\"validFrom\"] ? DateTime.fromISO(_data[\"validFrom\"].toString()) : undefined;\r\n this.validTo = _data[\"validTo\"] ? DateTime.fromISO(_data[\"validTo\"].toString()) : undefined;\r\n this.isFavorite = _data[\"isFavorite\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateParkerSubscriptionAssignmentDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateParkerSubscriptionAssignmentDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"active\"] = this.active;\r\n data[\"subscriptionId\"] = this.subscriptionId;\r\n data[\"validFrom\"] = this.validFrom ? this.validFrom.toString() : undefined;\r\n data[\"validTo\"] = this.validTo ? this.validTo.toString() : undefined;\r\n data[\"isFavorite\"] = this.isFavorite;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateParkerSubscriptionAssignmentDTO {\r\n id: number;\r\n active: boolean;\r\n subscriptionId: number;\r\n validFrom: DateTime;\r\n validTo?: DateTime | undefined;\r\n isFavorite: boolean;\r\n}\r\n\r\nexport class ParkerLimitedDTO implements IParkerLimitedDTO {\r\n id!: number;\r\n clientId!: number;\r\n identification?: string | undefined;\r\n tagIds?: number[] | undefined;\r\n active!: boolean;\r\n\r\n constructor(data?: IParkerLimitedDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.identification = _data[\"identification\"];\r\n if (Array.isArray(_data[\"tagIds\"])) {\r\n this.tagIds = [] as any;\r\n for (let item of _data[\"tagIds\"])\r\n this.tagIds!.push(item);\r\n }\r\n this.active = _data[\"active\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkerLimitedDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerLimitedDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"identification\"] = this.identification;\r\n if (Array.isArray(this.tagIds)) {\r\n data[\"tagIds\"] = [];\r\n for (let item of this.tagIds)\r\n data[\"tagIds\"].push(item);\r\n }\r\n data[\"active\"] = this.active;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerLimitedDTO {\r\n id: number;\r\n clientId: number;\r\n identification?: string | undefined;\r\n tagIds?: number[] | undefined;\r\n active: boolean;\r\n}\r\n\r\nexport class UpdateParkerDTO implements IUpdateParkerDTO {\r\n id!: number;\r\n firstName?: string | undefined;\r\n lastName?: string | undefined;\r\n identification?: string | undefined;\r\n group!: ParkerGroup;\r\n address?: string | undefined;\r\n zip?: string | undefined;\r\n city?: string | undefined;\r\n country?: string | undefined;\r\n privateAddress?: string | undefined;\r\n privateZIP?: string | undefined;\r\n privateCity?: string | undefined;\r\n privateCountry?: string | undefined;\r\n email?: string | undefined;\r\n companyId?: number | undefined;\r\n costCenter?: string | undefined;\r\n title?: string | undefined;\r\n entryDate?: DateTime | undefined;\r\n exitDate?: DateTime | undefined;\r\n mobile?: string | undefined;\r\n phone?: string | undefined;\r\n billing?: boolean | undefined;\r\n active?: boolean | undefined;\r\n workplace?: string | undefined;\r\n employmentPercentage?: number | undefined;\r\n billingCurrency!: Currency;\r\n tags?: UpdateParkerTagDTO[] | undefined;\r\n parkerSubscriptionAssignments?: UpdateParkerSubscriptionAssignmentDTO[] | undefined;\r\n custom1?: string | undefined;\r\n custom2?: string | undefined;\r\n custom3?: string | undefined;\r\n custom4?: string | undefined;\r\n custom5?: string | undefined;\r\n custom6?: string | undefined;\r\n custom7?: string | undefined;\r\n custom8?: string | undefined;\r\n custom9?: string | undefined;\r\n comment?: string | undefined;\r\n\r\n constructor(data?: IUpdateParkerDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.firstName = _data[\"firstName\"];\r\n this.lastName = _data[\"lastName\"];\r\n this.identification = _data[\"identification\"];\r\n this.group = _data[\"group\"];\r\n this.address = _data[\"address\"];\r\n this.zip = _data[\"zip\"];\r\n this.city = _data[\"city\"];\r\n this.country = _data[\"country\"];\r\n this.privateAddress = _data[\"privateAddress\"];\r\n this.privateZIP = _data[\"privateZIP\"];\r\n this.privateCity = _data[\"privateCity\"];\r\n this.privateCountry = _data[\"privateCountry\"];\r\n this.email = _data[\"email\"];\r\n this.companyId = _data[\"companyId\"];\r\n this.costCenter = _data[\"costCenter\"];\r\n this.title = _data[\"title\"];\r\n this.entryDate = _data[\"entryDate\"] ? DateTime.fromISO(_data[\"entryDate\"].toString()) : undefined;\r\n this.exitDate = _data[\"exitDate\"] ? DateTime.fromISO(_data[\"exitDate\"].toString()) : undefined;\r\n this.mobile = _data[\"mobile\"];\r\n this.phone = _data[\"phone\"];\r\n this.billing = _data[\"billing\"];\r\n this.active = _data[\"active\"];\r\n this.workplace = _data[\"workplace\"];\r\n this.employmentPercentage = _data[\"employmentPercentage\"];\r\n this.billingCurrency = _data[\"billingCurrency\"];\r\n if (Array.isArray(_data[\"tags\"])) {\r\n this.tags = [] as any;\r\n for (let item of _data[\"tags\"])\r\n this.tags!.push(UpdateParkerTagDTO.fromJS(item));\r\n }\r\n if (Array.isArray(_data[\"parkerSubscriptionAssignments\"])) {\r\n this.parkerSubscriptionAssignments = [] as any;\r\n for (let item of _data[\"parkerSubscriptionAssignments\"])\r\n this.parkerSubscriptionAssignments!.push(UpdateParkerSubscriptionAssignmentDTO.fromJS(item));\r\n }\r\n this.custom1 = _data[\"custom1\"];\r\n this.custom2 = _data[\"custom2\"];\r\n this.custom3 = _data[\"custom3\"];\r\n this.custom4 = _data[\"custom4\"];\r\n this.custom5 = _data[\"custom5\"];\r\n this.custom6 = _data[\"custom6\"];\r\n this.custom7 = _data[\"custom7\"];\r\n this.custom8 = _data[\"custom8\"];\r\n this.custom9 = _data[\"custom9\"];\r\n this.comment = _data[\"comment\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateParkerDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateParkerDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"firstName\"] = this.firstName;\r\n data[\"lastName\"] = this.lastName;\r\n data[\"identification\"] = this.identification;\r\n data[\"group\"] = this.group;\r\n data[\"address\"] = this.address;\r\n data[\"zip\"] = this.zip;\r\n data[\"city\"] = this.city;\r\n data[\"country\"] = this.country;\r\n data[\"privateAddress\"] = this.privateAddress;\r\n data[\"privateZIP\"] = this.privateZIP;\r\n data[\"privateCity\"] = this.privateCity;\r\n data[\"privateCountry\"] = this.privateCountry;\r\n data[\"email\"] = this.email;\r\n data[\"companyId\"] = this.companyId;\r\n data[\"costCenter\"] = this.costCenter;\r\n data[\"title\"] = this.title;\r\n data[\"entryDate\"] = this.entryDate ? this.entryDate.toString() : undefined;\r\n data[\"exitDate\"] = this.exitDate ? this.exitDate.toString() : undefined;\r\n data[\"mobile\"] = this.mobile;\r\n data[\"phone\"] = this.phone;\r\n data[\"billing\"] = this.billing;\r\n data[\"active\"] = this.active;\r\n data[\"workplace\"] = this.workplace;\r\n data[\"employmentPercentage\"] = this.employmentPercentage;\r\n data[\"billingCurrency\"] = this.billingCurrency;\r\n if (Array.isArray(this.tags)) {\r\n data[\"tags\"] = [];\r\n for (let item of this.tags)\r\n data[\"tags\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.parkerSubscriptionAssignments)) {\r\n data[\"parkerSubscriptionAssignments\"] = [];\r\n for (let item of this.parkerSubscriptionAssignments)\r\n data[\"parkerSubscriptionAssignments\"].push(item.toJSON());\r\n }\r\n data[\"custom1\"] = this.custom1;\r\n data[\"custom2\"] = this.custom2;\r\n data[\"custom3\"] = this.custom3;\r\n data[\"custom4\"] = this.custom4;\r\n data[\"custom5\"] = this.custom5;\r\n data[\"custom6\"] = this.custom6;\r\n data[\"custom7\"] = this.custom7;\r\n data[\"custom8\"] = this.custom8;\r\n data[\"custom9\"] = this.custom9;\r\n data[\"comment\"] = this.comment;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateParkerDTO {\r\n id: number;\r\n firstName?: string | undefined;\r\n lastName?: string | undefined;\r\n identification?: string | undefined;\r\n group: ParkerGroup;\r\n address?: string | undefined;\r\n zip?: string | undefined;\r\n city?: string | undefined;\r\n country?: string | undefined;\r\n privateAddress?: string | undefined;\r\n privateZIP?: string | undefined;\r\n privateCity?: string | undefined;\r\n privateCountry?: string | undefined;\r\n email?: string | undefined;\r\n companyId?: number | undefined;\r\n costCenter?: string | undefined;\r\n title?: string | undefined;\r\n entryDate?: DateTime | undefined;\r\n exitDate?: DateTime | undefined;\r\n mobile?: string | undefined;\r\n phone?: string | undefined;\r\n billing?: boolean | undefined;\r\n active?: boolean | undefined;\r\n workplace?: string | undefined;\r\n employmentPercentage?: number | undefined;\r\n billingCurrency: Currency;\r\n tags?: UpdateParkerTagDTO[] | undefined;\r\n parkerSubscriptionAssignments?: UpdateParkerSubscriptionAssignmentDTO[] | undefined;\r\n custom1?: string | undefined;\r\n custom2?: string | undefined;\r\n custom3?: string | undefined;\r\n custom4?: string | undefined;\r\n custom5?: string | undefined;\r\n custom6?: string | undefined;\r\n custom7?: string | undefined;\r\n custom8?: string | undefined;\r\n custom9?: string | undefined;\r\n comment?: string | undefined;\r\n}\r\n\r\nexport class UpdateParkerTagDTO implements IUpdateParkerTagDTO {\r\n id!: number;\r\n identificationCode?: string | undefined;\r\n controlPlateType?: ControlPlateType | undefined;\r\n countryCode?: string | undefined;\r\n controlPlateNumber?: string | undefined;\r\n description?: string | undefined;\r\n barcode?: string | undefined;\r\n active?: boolean | undefined;\r\n defect?: boolean | undefined;\r\n\r\n constructor(data?: IUpdateParkerTagDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.identificationCode = _data[\"identificationCode\"];\r\n this.controlPlateType = _data[\"controlPlateType\"];\r\n this.countryCode = _data[\"countryCode\"];\r\n this.controlPlateNumber = _data[\"controlPlateNumber\"];\r\n this.description = _data[\"description\"];\r\n this.barcode = _data[\"barcode\"];\r\n this.active = _data[\"active\"];\r\n this.defect = _data[\"defect\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateParkerTagDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateParkerTagDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"identificationCode\"] = this.identificationCode;\r\n data[\"controlPlateType\"] = this.controlPlateType;\r\n data[\"countryCode\"] = this.countryCode;\r\n data[\"controlPlateNumber\"] = this.controlPlateNumber;\r\n data[\"description\"] = this.description;\r\n data[\"barcode\"] = this.barcode;\r\n data[\"active\"] = this.active;\r\n data[\"defect\"] = this.defect;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateParkerTagDTO {\r\n id: number;\r\n identificationCode?: string | undefined;\r\n controlPlateType?: ControlPlateType | undefined;\r\n countryCode?: string | undefined;\r\n controlPlateNumber?: string | undefined;\r\n description?: string | undefined;\r\n barcode?: string | undefined;\r\n active?: boolean | undefined;\r\n defect?: boolean | undefined;\r\n}\r\n\r\nexport class SetParkerStatusDTO implements ISetParkerStatusDTO {\r\n id!: number;\r\n active!: boolean;\r\n\r\n constructor(data?: ISetParkerStatusDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.active = _data[\"active\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetParkerStatusDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetParkerStatusDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"active\"] = this.active;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetParkerStatusDTO {\r\n id: number;\r\n active: boolean;\r\n}\r\n\r\nexport class LinkParkerToUserDTO implements ILinkParkerToUserDTO {\r\n userLinkCode?: string | undefined;\r\n\r\n constructor(data?: ILinkParkerToUserDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.userLinkCode = _data[\"userLinkCode\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): LinkParkerToUserDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LinkParkerToUserDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"userLinkCode\"] = this.userLinkCode;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILinkParkerToUserDTO {\r\n userLinkCode?: string | undefined;\r\n}\r\n\r\nexport class SetFavoriteSubscriptionAssignmentsDTO implements ISetFavoriteSubscriptionAssignmentsDTO {\r\n favoriteSubscriptionAssignmentIds?: number[] | undefined;\r\n\r\n constructor(data?: ISetFavoriteSubscriptionAssignmentsDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"favoriteSubscriptionAssignmentIds\"])) {\r\n this.favoriteSubscriptionAssignmentIds = [] as any;\r\n for (let item of _data[\"favoriteSubscriptionAssignmentIds\"])\r\n this.favoriteSubscriptionAssignmentIds!.push(item);\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetFavoriteSubscriptionAssignmentsDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetFavoriteSubscriptionAssignmentsDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.favoriteSubscriptionAssignmentIds)) {\r\n data[\"favoriteSubscriptionAssignmentIds\"] = [];\r\n for (let item of this.favoriteSubscriptionAssignmentIds)\r\n data[\"favoriteSubscriptionAssignmentIds\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetFavoriteSubscriptionAssignmentsDTO {\r\n favoriteSubscriptionAssignmentIds?: number[] | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfParkerExtractReportDTO implements IPagedResultDTOOfParkerExtractReportDTO {\r\n items?: ParkerExtractReportDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfParkerExtractReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(ParkerExtractReportDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfParkerExtractReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfParkerExtractReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfParkerExtractReportDTO {\r\n items?: ParkerExtractReportDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class ParkerExtractReportParameterDTO implements IParkerExtractReportParameterDTO {\r\n parkerId!: number;\r\n month!: string;\r\n\r\n constructor(data?: IParkerExtractReportParameterDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.parkerId = _data[\"parkerId\"];\r\n this.month = _data[\"month\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkerExtractReportParameterDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerExtractReportParameterDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"parkerId\"] = this.parkerId;\r\n data[\"month\"] = this.month;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerExtractReportParameterDTO {\r\n parkerId: number;\r\n month: string;\r\n}\r\n\r\nexport class ParkerRegistrationBaseDTO implements IParkerRegistrationBaseDTO {\r\n id!: number;\r\n clientId!: number;\r\n registrationDateTime!: DateTime;\r\n type!: ParkerRegistrationType;\r\n registeredByUserAgentId?: string | undefined;\r\n registeredByUserAgent?: LimitedUserInfoDTO | undefined;\r\n registeredByZoneDeviceId?: number | undefined;\r\n registeredByZoneDeviceName?: string | undefined;\r\n registeredZoneId!: number;\r\n registeredZoneName?: string | undefined;\r\n knownTagId?: number | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n unknownParkerTagControlPlateType?: ControlPlateType | undefined;\r\n unknownParkerTagCountryCode?: string | undefined;\r\n unknownParkerTagControlPlateNumber?: string | undefined;\r\n offense!: ParkerRegistrationOffense;\r\n offenseLog?: string | undefined;\r\n sessionOffenses?: ParkingEntryOffenseInfoDTO[] | undefined;\r\n sessionStartDateTime!: DateTime;\r\n expectedSessionEndDateTime?: DateTime | undefined;\r\n pendingAutomaticSessionStartDateTime?: DateTime | undefined;\r\n sessionOpeningEventType!: SessionEventType;\r\n sessionClosingEventType?: SessionEventType | undefined;\r\n selectedSubscription?: ParkingSubscriptionLimitedDTO | undefined;\r\n penaltyIssued!: boolean;\r\n penaltyState?: PenaltyState | undefined;\r\n penaltyNumber?: string | undefined;\r\n penaltyParkingNumber?: string | undefined;\r\n parkingSessionId!: number;\r\n mediaFiles?: string[] | undefined;\r\n\r\n constructor(data?: IParkerRegistrationBaseDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.registrationDateTime = _data[\"registrationDateTime\"] ? DateTime.fromISO(_data[\"registrationDateTime\"].toString()) : undefined;\r\n this.type = _data[\"type\"];\r\n this.registeredByUserAgentId = _data[\"registeredByUserAgentId\"];\r\n this.registeredByUserAgent = _data[\"registeredByUserAgent\"] ? LimitedUserInfoDTO.fromJS(_data[\"registeredByUserAgent\"]) : undefined;\r\n this.registeredByZoneDeviceId = _data[\"registeredByZoneDeviceId\"];\r\n this.registeredByZoneDeviceName = _data[\"registeredByZoneDeviceName\"];\r\n this.registeredZoneId = _data[\"registeredZoneId\"];\r\n this.registeredZoneName = _data[\"registeredZoneName\"];\r\n this.knownTagId = _data[\"knownTagId\"];\r\n this.parkingSpaceNumber = _data[\"parkingSpaceNumber\"];\r\n this.unknownParkerTagControlPlateType = _data[\"unknownParkerTagControlPlateType\"];\r\n this.unknownParkerTagCountryCode = _data[\"unknownParkerTagCountryCode\"];\r\n this.unknownParkerTagControlPlateNumber = _data[\"unknownParkerTagControlPlateNumber\"];\r\n this.offense = _data[\"offense\"];\r\n this.offenseLog = _data[\"offenseLog\"];\r\n if (Array.isArray(_data[\"sessionOffenses\"])) {\r\n this.sessionOffenses = [] as any;\r\n for (let item of _data[\"sessionOffenses\"])\r\n this.sessionOffenses!.push(ParkingEntryOffenseInfoDTO.fromJS(item));\r\n }\r\n this.sessionStartDateTime = _data[\"sessionStartDateTime\"] ? DateTime.fromISO(_data[\"sessionStartDateTime\"].toString()) : undefined;\r\n this.expectedSessionEndDateTime = _data[\"expectedSessionEndDateTime\"] ? DateTime.fromISO(_data[\"expectedSessionEndDateTime\"].toString()) : undefined;\r\n this.pendingAutomaticSessionStartDateTime = _data[\"pendingAutomaticSessionStartDateTime\"] ? DateTime.fromISO(_data[\"pendingAutomaticSessionStartDateTime\"].toString()) : undefined;\r\n this.sessionOpeningEventType = _data[\"sessionOpeningEventType\"];\r\n this.sessionClosingEventType = _data[\"sessionClosingEventType\"];\r\n this.selectedSubscription = _data[\"selectedSubscription\"] ? ParkingSubscriptionLimitedDTO.fromJS(_data[\"selectedSubscription\"]) : undefined;\r\n this.penaltyIssued = _data[\"penaltyIssued\"];\r\n this.penaltyState = _data[\"penaltyState\"];\r\n this.penaltyNumber = _data[\"penaltyNumber\"];\r\n this.penaltyParkingNumber = _data[\"penaltyParkingNumber\"];\r\n this.parkingSessionId = _data[\"parkingSessionId\"];\r\n if (Array.isArray(_data[\"mediaFiles\"])) {\r\n this.mediaFiles = [] as any;\r\n for (let item of _data[\"mediaFiles\"])\r\n this.mediaFiles!.push(item);\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkerRegistrationBaseDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerRegistrationBaseDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"registrationDateTime\"] = this.registrationDateTime ? this.registrationDateTime.toString() : undefined;\r\n data[\"type\"] = this.type;\r\n data[\"registeredByUserAgentId\"] = this.registeredByUserAgentId;\r\n data[\"registeredByUserAgent\"] = this.registeredByUserAgent ? this.registeredByUserAgent.toJSON() : undefined;\r\n data[\"registeredByZoneDeviceId\"] = this.registeredByZoneDeviceId;\r\n data[\"registeredByZoneDeviceName\"] = this.registeredByZoneDeviceName;\r\n data[\"registeredZoneId\"] = this.registeredZoneId;\r\n data[\"registeredZoneName\"] = this.registeredZoneName;\r\n data[\"knownTagId\"] = this.knownTagId;\r\n data[\"parkingSpaceNumber\"] = this.parkingSpaceNumber;\r\n data[\"unknownParkerTagControlPlateType\"] = this.unknownParkerTagControlPlateType;\r\n data[\"unknownParkerTagCountryCode\"] = this.unknownParkerTagCountryCode;\r\n data[\"unknownParkerTagControlPlateNumber\"] = this.unknownParkerTagControlPlateNumber;\r\n data[\"offense\"] = this.offense;\r\n data[\"offenseLog\"] = this.offenseLog;\r\n if (Array.isArray(this.sessionOffenses)) {\r\n data[\"sessionOffenses\"] = [];\r\n for (let item of this.sessionOffenses)\r\n data[\"sessionOffenses\"].push(item.toJSON());\r\n }\r\n data[\"sessionStartDateTime\"] = this.sessionStartDateTime ? this.sessionStartDateTime.toString() : undefined;\r\n data[\"expectedSessionEndDateTime\"] = this.expectedSessionEndDateTime ? this.expectedSessionEndDateTime.toString() : undefined;\r\n data[\"pendingAutomaticSessionStartDateTime\"] = this.pendingAutomaticSessionStartDateTime ? this.pendingAutomaticSessionStartDateTime.toString() : undefined;\r\n data[\"sessionOpeningEventType\"] = this.sessionOpeningEventType;\r\n data[\"sessionClosingEventType\"] = this.sessionClosingEventType;\r\n data[\"selectedSubscription\"] = this.selectedSubscription ? this.selectedSubscription.toJSON() : undefined;\r\n data[\"penaltyIssued\"] = this.penaltyIssued;\r\n data[\"penaltyState\"] = this.penaltyState;\r\n data[\"penaltyNumber\"] = this.penaltyNumber;\r\n data[\"penaltyParkingNumber\"] = this.penaltyParkingNumber;\r\n data[\"parkingSessionId\"] = this.parkingSessionId;\r\n if (Array.isArray(this.mediaFiles)) {\r\n data[\"mediaFiles\"] = [];\r\n for (let item of this.mediaFiles)\r\n data[\"mediaFiles\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerRegistrationBaseDTO {\r\n id: number;\r\n clientId: number;\r\n registrationDateTime: DateTime;\r\n type: ParkerRegistrationType;\r\n registeredByUserAgentId?: string | undefined;\r\n registeredByUserAgent?: LimitedUserInfoDTO | undefined;\r\n registeredByZoneDeviceId?: number | undefined;\r\n registeredByZoneDeviceName?: string | undefined;\r\n registeredZoneId: number;\r\n registeredZoneName?: string | undefined;\r\n knownTagId?: number | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n unknownParkerTagControlPlateType?: ControlPlateType | undefined;\r\n unknownParkerTagCountryCode?: string | undefined;\r\n unknownParkerTagControlPlateNumber?: string | undefined;\r\n offense: ParkerRegistrationOffense;\r\n offenseLog?: string | undefined;\r\n sessionOffenses?: ParkingEntryOffenseInfoDTO[] | undefined;\r\n sessionStartDateTime: DateTime;\r\n expectedSessionEndDateTime?: DateTime | undefined;\r\n pendingAutomaticSessionStartDateTime?: DateTime | undefined;\r\n sessionOpeningEventType: SessionEventType;\r\n sessionClosingEventType?: SessionEventType | undefined;\r\n selectedSubscription?: ParkingSubscriptionLimitedDTO | undefined;\r\n penaltyIssued: boolean;\r\n penaltyState?: PenaltyState | undefined;\r\n penaltyNumber?: string | undefined;\r\n penaltyParkingNumber?: string | undefined;\r\n parkingSessionId: number;\r\n mediaFiles?: string[] | undefined;\r\n}\r\n\r\nexport class ParkerRegistrationDTO extends ParkerRegistrationBaseDTO implements IParkerRegistrationDTO {\r\n knownTag?: ParkerTagDTO | undefined;\r\n\r\n constructor(data?: IParkerRegistrationDTO) {\r\n super(data);\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.knownTag = _data[\"knownTag\"] ? ParkerTagDTO.fromJS(_data[\"knownTag\"]) : undefined;\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ParkerRegistrationDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerRegistrationDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"knownTag\"] = this.knownTag ? this.knownTag.toJSON() : undefined;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerRegistrationDTO extends IParkerRegistrationBaseDTO {\r\n knownTag?: ParkerTagDTO | undefined;\r\n}\r\n\r\nexport enum ParkerRegistrationOffense {\r\n NoOffense = 0,\r\n ZoneNotAllowed = 1,\r\n ParkingTimeTooLong = 2,\r\n ParkerUnknown = 3,\r\n ParkerInactive = 4,\r\n ParkerAlreadyLeftZone = 5,\r\n NoEntryReading = 6,\r\n NoEntryAndExitReading = 7,\r\n OffenseOverdue = 8,\r\n MultipleCarsNotAllowed = 9,\r\n SessionNotExtendable = 10,\r\n InsufficientFunds = 11,\r\n GhostRead = 12,\r\n Blacklisted = 13,\r\n ParkingCardConfirmationTimeExceeded = 14,\r\n}\r\n\r\nexport class ParkingEntryOffenseInfoDTO implements IParkingEntryOffenseInfoDTO {\r\n registrationId!: number;\r\n dateTime!: DateTime;\r\n registeredByUserAgentId?: string | undefined;\r\n registeredByUserAgentName?: string | undefined;\r\n offense!: ParkerRegistrationOffense;\r\n penaltyIssued!: boolean;\r\n penaltyNumber?: string | undefined;\r\n penaltyParkingNumber?: string | undefined;\r\n mediaFiles?: string[] | undefined;\r\n\r\n constructor(data?: IParkingEntryOffenseInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.registrationId = _data[\"registrationId\"];\r\n this.dateTime = _data[\"dateTime\"] ? DateTime.fromISO(_data[\"dateTime\"].toString()) : undefined;\r\n this.registeredByUserAgentId = _data[\"registeredByUserAgentId\"];\r\n this.registeredByUserAgentName = _data[\"registeredByUserAgentName\"];\r\n this.offense = _data[\"offense\"];\r\n this.penaltyIssued = _data[\"penaltyIssued\"];\r\n this.penaltyNumber = _data[\"penaltyNumber\"];\r\n this.penaltyParkingNumber = _data[\"penaltyParkingNumber\"];\r\n if (Array.isArray(_data[\"mediaFiles\"])) {\r\n this.mediaFiles = [] as any;\r\n for (let item of _data[\"mediaFiles\"])\r\n this.mediaFiles!.push(item);\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingEntryOffenseInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingEntryOffenseInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"registrationId\"] = this.registrationId;\r\n data[\"dateTime\"] = this.dateTime ? this.dateTime.toString() : undefined;\r\n data[\"registeredByUserAgentId\"] = this.registeredByUserAgentId;\r\n data[\"registeredByUserAgentName\"] = this.registeredByUserAgentName;\r\n data[\"offense\"] = this.offense;\r\n data[\"penaltyIssued\"] = this.penaltyIssued;\r\n data[\"penaltyNumber\"] = this.penaltyNumber;\r\n data[\"penaltyParkingNumber\"] = this.penaltyParkingNumber;\r\n if (Array.isArray(this.mediaFiles)) {\r\n data[\"mediaFiles\"] = [];\r\n for (let item of this.mediaFiles)\r\n data[\"mediaFiles\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingEntryOffenseInfoDTO {\r\n registrationId: number;\r\n dateTime: DateTime;\r\n registeredByUserAgentId?: string | undefined;\r\n registeredByUserAgentName?: string | undefined;\r\n offense: ParkerRegistrationOffense;\r\n penaltyIssued: boolean;\r\n penaltyNumber?: string | undefined;\r\n penaltyParkingNumber?: string | undefined;\r\n mediaFiles?: string[] | undefined;\r\n}\r\n\r\nexport enum PenaltyState {\r\n Issued = 0,\r\n Cancelled = 1,\r\n}\r\n\r\nexport class ParkerRegistrationWithParkerInfoDTO extends ParkerRegistrationBaseDTO implements IParkerRegistrationWithParkerInfoDTO {\r\n knownTag?: ParkerTagWithParkerInfoDTO | undefined;\r\n\r\n constructor(data?: IParkerRegistrationWithParkerInfoDTO) {\r\n super(data);\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.knownTag = _data[\"knownTag\"] ? ParkerTagWithParkerInfoDTO.fromJS(_data[\"knownTag\"]) : undefined;\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ParkerRegistrationWithParkerInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerRegistrationWithParkerInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"knownTag\"] = this.knownTag ? this.knownTag.toJSON() : undefined;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerRegistrationWithParkerInfoDTO extends IParkerRegistrationBaseDTO {\r\n knownTag?: ParkerTagWithParkerInfoDTO | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfParkerRegistrationWithParkerInfoDTO implements IPagedResultDTOOfParkerRegistrationWithParkerInfoDTO {\r\n items?: ParkerRegistrationWithParkerInfoDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfParkerRegistrationWithParkerInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(ParkerRegistrationWithParkerInfoDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfParkerRegistrationWithParkerInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfParkerRegistrationWithParkerInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfParkerRegistrationWithParkerInfoDTO {\r\n items?: ParkerRegistrationWithParkerInfoDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class ParkingRangerCheckRegistrationResultDTO extends ParkerRegistrationDTO implements IParkingRangerCheckRegistrationResultDTO {\r\n state!: ParkingRegistrationState;\r\n\r\n constructor(data?: IParkingRangerCheckRegistrationResultDTO) {\r\n super(data);\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.state = _data[\"state\"];\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ParkingRangerCheckRegistrationResultDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingRangerCheckRegistrationResultDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"state\"] = this.state;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingRangerCheckRegistrationResultDTO extends IParkerRegistrationDTO {\r\n state: ParkingRegistrationState;\r\n}\r\n\r\nexport enum ParkingRegistrationState {\r\n Success = 0,\r\n ParkingSessionAlreadyActive = 1,\r\n ParkingRangerAlreadyChecked = 2,\r\n Offense = 3,\r\n}\r\n\r\nexport class CheckParkingRangerRegistrationDTO implements ICheckParkingRangerRegistrationDTO {\r\n clientId!: number;\r\n registeredZoneId!: number;\r\n parkingRangerSessionId!: number;\r\n knownTagId!: number;\r\n parkingSpaceNumber?: string | undefined;\r\n\r\n constructor(data?: ICheckParkingRangerRegistrationDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.registeredZoneId = _data[\"registeredZoneId\"];\r\n this.parkingRangerSessionId = _data[\"parkingRangerSessionId\"];\r\n this.knownTagId = _data[\"knownTagId\"];\r\n this.parkingSpaceNumber = _data[\"parkingSpaceNumber\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CheckParkingRangerRegistrationDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CheckParkingRangerRegistrationDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"registeredZoneId\"] = this.registeredZoneId;\r\n data[\"parkingRangerSessionId\"] = this.parkingRangerSessionId;\r\n data[\"knownTagId\"] = this.knownTagId;\r\n data[\"parkingSpaceNumber\"] = this.parkingSpaceNumber;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICheckParkingRangerRegistrationDTO {\r\n clientId: number;\r\n registeredZoneId: number;\r\n parkingRangerSessionId: number;\r\n knownTagId: number;\r\n parkingSpaceNumber?: string | undefined;\r\n}\r\n\r\nexport class CheckParkingRangerNonTaggedRegistrationDTO implements ICheckParkingRangerNonTaggedRegistrationDTO {\r\n clientId!: number;\r\n registeredZoneId!: number;\r\n parkingRangerSessionId!: number;\r\n controlPlateType!: ControlPlateType;\r\n parkingPlateCountryCode?: string | undefined;\r\n parkingPlateNumber?: string | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n\r\n constructor(data?: ICheckParkingRangerNonTaggedRegistrationDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.registeredZoneId = _data[\"registeredZoneId\"];\r\n this.parkingRangerSessionId = _data[\"parkingRangerSessionId\"];\r\n this.controlPlateType = _data[\"controlPlateType\"];\r\n this.parkingPlateCountryCode = _data[\"parkingPlateCountryCode\"];\r\n this.parkingPlateNumber = _data[\"parkingPlateNumber\"];\r\n this.parkingSpaceNumber = _data[\"parkingSpaceNumber\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CheckParkingRangerNonTaggedRegistrationDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CheckParkingRangerNonTaggedRegistrationDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"registeredZoneId\"] = this.registeredZoneId;\r\n data[\"parkingRangerSessionId\"] = this.parkingRangerSessionId;\r\n data[\"controlPlateType\"] = this.controlPlateType;\r\n data[\"parkingPlateCountryCode\"] = this.parkingPlateCountryCode;\r\n data[\"parkingPlateNumber\"] = this.parkingPlateNumber;\r\n data[\"parkingSpaceNumber\"] = this.parkingSpaceNumber;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICheckParkingRangerNonTaggedRegistrationDTO {\r\n clientId: number;\r\n registeredZoneId: number;\r\n parkingRangerSessionId: number;\r\n controlPlateType: ControlPlateType;\r\n parkingPlateCountryCode?: string | undefined;\r\n parkingPlateNumber?: string | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n}\r\n\r\nexport class AddNonTaggedRegistrationDTO implements IAddNonTaggedRegistrationDTO {\r\n clientId!: number;\r\n deviceId!: number;\r\n timeStamp!: DateTime;\r\n parkingSpaceNumber?: string | undefined;\r\n controlPlateType!: ControlPlateType;\r\n parkingPlateCountryCode?: string | undefined;\r\n parkingPlateNumber?: string | undefined;\r\n recognitionPictureBase64?: string | undefined;\r\n recognitionPlateBase64?: string | undefined;\r\n\r\n constructor(data?: IAddNonTaggedRegistrationDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.deviceId = _data[\"deviceId\"];\r\n this.timeStamp = _data[\"timeStamp\"] ? DateTime.fromISO(_data[\"timeStamp\"].toString()) : undefined;\r\n this.parkingSpaceNumber = _data[\"parkingSpaceNumber\"];\r\n this.controlPlateType = _data[\"controlPlateType\"];\r\n this.parkingPlateCountryCode = _data[\"parkingPlateCountryCode\"];\r\n this.parkingPlateNumber = _data[\"parkingPlateNumber\"];\r\n this.recognitionPictureBase64 = _data[\"recognitionPictureBase64\"];\r\n this.recognitionPlateBase64 = _data[\"recognitionPlateBase64\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): AddNonTaggedRegistrationDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AddNonTaggedRegistrationDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"deviceId\"] = this.deviceId;\r\n data[\"timeStamp\"] = this.timeStamp ? this.timeStamp.toString() : undefined;\r\n data[\"parkingSpaceNumber\"] = this.parkingSpaceNumber;\r\n data[\"controlPlateType\"] = this.controlPlateType;\r\n data[\"parkingPlateCountryCode\"] = this.parkingPlateCountryCode;\r\n data[\"parkingPlateNumber\"] = this.parkingPlateNumber;\r\n data[\"recognitionPictureBase64\"] = this.recognitionPictureBase64;\r\n data[\"recognitionPlateBase64\"] = this.recognitionPlateBase64;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAddNonTaggedRegistrationDTO {\r\n clientId: number;\r\n deviceId: number;\r\n timeStamp: DateTime;\r\n parkingSpaceNumber?: string | undefined;\r\n controlPlateType: ControlPlateType;\r\n parkingPlateCountryCode?: string | undefined;\r\n parkingPlateNumber?: string | undefined;\r\n recognitionPictureBase64?: string | undefined;\r\n recognitionPlateBase64?: string | undefined;\r\n}\r\n\r\nexport class UpdateParkerRegistrationDTO implements IUpdateParkerRegistrationDTO {\r\n id!: number;\r\n offense?: ParkerRegistrationOffense | undefined;\r\n penaltyIssued?: boolean | undefined;\r\n penaltyState?: PenaltyState | undefined;\r\n penaltyNumber?: string | undefined;\r\n penaltyParkingNumber?: string | undefined;\r\n\r\n constructor(data?: IUpdateParkerRegistrationDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.offense = _data[\"offense\"];\r\n this.penaltyIssued = _data[\"penaltyIssued\"];\r\n this.penaltyState = _data[\"penaltyState\"];\r\n this.penaltyNumber = _data[\"penaltyNumber\"];\r\n this.penaltyParkingNumber = _data[\"penaltyParkingNumber\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateParkerRegistrationDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateParkerRegistrationDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"offense\"] = this.offense;\r\n data[\"penaltyIssued\"] = this.penaltyIssued;\r\n data[\"penaltyState\"] = this.penaltyState;\r\n data[\"penaltyNumber\"] = this.penaltyNumber;\r\n data[\"penaltyParkingNumber\"] = this.penaltyParkingNumber;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateParkerRegistrationDTO {\r\n id: number;\r\n offense?: ParkerRegistrationOffense | undefined;\r\n penaltyIssued?: boolean | undefined;\r\n penaltyState?: PenaltyState | undefined;\r\n penaltyNumber?: string | undefined;\r\n penaltyParkingNumber?: string | undefined;\r\n}\r\n\r\nexport class CalculateParkingPriceResultDTO implements ICalculateParkingPriceResultDTO {\r\n parkingPriceDetails!: ParkingPriceDetailsDTO;\r\n needsForeignParkingPaymentProcess!: boolean;\r\n offense!: ParkerRegistrationOffense;\r\n\r\n constructor(data?: ICalculateParkingPriceResultDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.parkingPriceDetails = new ParkingPriceDetailsDTO();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.parkingPriceDetails = _data[\"parkingPriceDetails\"] ? ParkingPriceDetailsDTO.fromJS(_data[\"parkingPriceDetails\"]) : new ParkingPriceDetailsDTO();\r\n this.needsForeignParkingPaymentProcess = _data[\"needsForeignParkingPaymentProcess\"];\r\n this.offense = _data[\"offense\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CalculateParkingPriceResultDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CalculateParkingPriceResultDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"parkingPriceDetails\"] = this.parkingPriceDetails ? this.parkingPriceDetails.toJSON() : undefined;\r\n data[\"needsForeignParkingPaymentProcess\"] = this.needsForeignParkingPaymentProcess;\r\n data[\"offense\"] = this.offense;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICalculateParkingPriceResultDTO {\r\n parkingPriceDetails: ParkingPriceDetailsDTO;\r\n needsForeignParkingPaymentProcess: boolean;\r\n offense: ParkerRegistrationOffense;\r\n}\r\n\r\nexport class ParkingPriceDetailsDTO implements IParkingPriceDetailsDTO {\r\n totalPriceWithVAT!: number;\r\n totalPriceWithoutVAT!: number;\r\n parkingPrice!: number;\r\n parkingPriceIncludedVAT!: number;\r\n parkingTransactionFeesConstant!: number;\r\n parkingTransactionFeesVariable!: number;\r\n feesPaidByParkingSpaceOwner!: boolean;\r\n vat!: number;\r\n currency!: Currency;\r\n\r\n constructor(data?: IParkingPriceDetailsDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.totalPriceWithVAT = _data[\"totalPriceWithVAT\"];\r\n this.totalPriceWithoutVAT = _data[\"totalPriceWithoutVAT\"];\r\n this.parkingPrice = _data[\"parkingPrice\"];\r\n this.parkingPriceIncludedVAT = _data[\"parkingPriceIncludedVAT\"];\r\n this.parkingTransactionFeesConstant = _data[\"parkingTransactionFeesConstant\"];\r\n this.parkingTransactionFeesVariable = _data[\"parkingTransactionFeesVariable\"];\r\n this.feesPaidByParkingSpaceOwner = _data[\"feesPaidByParkingSpaceOwner\"];\r\n this.vat = _data[\"vat\"];\r\n this.currency = _data[\"currency\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingPriceDetailsDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingPriceDetailsDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"totalPriceWithVAT\"] = this.totalPriceWithVAT;\r\n data[\"totalPriceWithoutVAT\"] = this.totalPriceWithoutVAT;\r\n data[\"parkingPrice\"] = this.parkingPrice;\r\n data[\"parkingPriceIncludedVAT\"] = this.parkingPriceIncludedVAT;\r\n data[\"parkingTransactionFeesConstant\"] = this.parkingTransactionFeesConstant;\r\n data[\"parkingTransactionFeesVariable\"] = this.parkingTransactionFeesVariable;\r\n data[\"feesPaidByParkingSpaceOwner\"] = this.feesPaidByParkingSpaceOwner;\r\n data[\"vat\"] = this.vat;\r\n data[\"currency\"] = this.currency;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingPriceDetailsDTO {\r\n totalPriceWithVAT: number;\r\n totalPriceWithoutVAT: number;\r\n parkingPrice: number;\r\n parkingPriceIncludedVAT: number;\r\n parkingTransactionFeesConstant: number;\r\n parkingTransactionFeesVariable: number;\r\n feesPaidByParkingSpaceOwner: boolean;\r\n vat: number;\r\n currency: Currency;\r\n}\r\n\r\nexport class CalculateParkingPriceDTO implements ICalculateParkingPriceDTO {\r\n zoneId!: number;\r\n intendedParkingDurationMinutes!: number;\r\n subscriptionAssignmentId!: number;\r\n\r\n constructor(data?: ICalculateParkingPriceDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.zoneId = _data[\"zoneId\"];\r\n this.intendedParkingDurationMinutes = _data[\"intendedParkingDurationMinutes\"];\r\n this.subscriptionAssignmentId = _data[\"subscriptionAssignmentId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CalculateParkingPriceDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CalculateParkingPriceDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"zoneId\"] = this.zoneId;\r\n data[\"intendedParkingDurationMinutes\"] = this.intendedParkingDurationMinutes;\r\n data[\"subscriptionAssignmentId\"] = this.subscriptionAssignmentId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICalculateParkingPriceDTO {\r\n zoneId: number;\r\n intendedParkingDurationMinutes: number;\r\n subscriptionAssignmentId: number;\r\n}\r\n\r\nexport class CalculateForeignParkingPriceDTO implements ICalculateForeignParkingPriceDTO {\r\n zoneId!: number;\r\n intendedParkingDurationMinutes!: number;\r\n subscriptionId!: number;\r\n paymentAliasId?: number | undefined;\r\n\r\n constructor(data?: ICalculateForeignParkingPriceDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.zoneId = _data[\"zoneId\"];\r\n this.intendedParkingDurationMinutes = _data[\"intendedParkingDurationMinutes\"];\r\n this.subscriptionId = _data[\"subscriptionId\"];\r\n this.paymentAliasId = _data[\"paymentAliasId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CalculateForeignParkingPriceDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CalculateForeignParkingPriceDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"zoneId\"] = this.zoneId;\r\n data[\"intendedParkingDurationMinutes\"] = this.intendedParkingDurationMinutes;\r\n data[\"subscriptionId\"] = this.subscriptionId;\r\n data[\"paymentAliasId\"] = this.paymentAliasId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICalculateForeignParkingPriceDTO {\r\n zoneId: number;\r\n intendedParkingDurationMinutes: number;\r\n subscriptionId: number;\r\n paymentAliasId?: number | undefined;\r\n}\r\n\r\nexport class StartForeignParkingPaymentProcessResponseDTO implements IStartForeignParkingPaymentProcessResponseDTO {\r\n success!: boolean;\r\n errorDescription?: string | undefined;\r\n paymentId?: number | undefined;\r\n redirectionUrl?: string | undefined;\r\n successUrl?: string | undefined;\r\n failedUrl?: string | undefined;\r\n\r\n constructor(data?: IStartForeignParkingPaymentProcessResponseDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.success = _data[\"success\"];\r\n this.errorDescription = _data[\"errorDescription\"];\r\n this.paymentId = _data[\"paymentId\"];\r\n this.redirectionUrl = _data[\"redirectionUrl\"];\r\n this.successUrl = _data[\"successUrl\"];\r\n this.failedUrl = _data[\"failedUrl\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): StartForeignParkingPaymentProcessResponseDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StartForeignParkingPaymentProcessResponseDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"success\"] = this.success;\r\n data[\"errorDescription\"] = this.errorDescription;\r\n data[\"paymentId\"] = this.paymentId;\r\n data[\"redirectionUrl\"] = this.redirectionUrl;\r\n data[\"successUrl\"] = this.successUrl;\r\n data[\"failedUrl\"] = this.failedUrl;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStartForeignParkingPaymentProcessResponseDTO {\r\n success: boolean;\r\n errorDescription?: string | undefined;\r\n paymentId?: number | undefined;\r\n redirectionUrl?: string | undefined;\r\n successUrl?: string | undefined;\r\n failedUrl?: string | undefined;\r\n}\r\n\r\nexport class StartForeignParkingPaymentProcessDTO implements IStartForeignParkingPaymentProcessDTO {\r\n paymentAliasId?: number | undefined;\r\n maxIntendedParkingDurationMinutes!: number;\r\n subscriptionId!: number;\r\n controlPlateType!: ControlPlateType;\r\n controlPlateCountryCode?: string | undefined;\r\n controlPlateNumber?: string | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n parkingPriceDetails?: ParkingPriceDetailsDTO | undefined;\r\n zoneId!: number;\r\n\r\n constructor(data?: IStartForeignParkingPaymentProcessDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.paymentAliasId = _data[\"paymentAliasId\"];\r\n this.maxIntendedParkingDurationMinutes = _data[\"maxIntendedParkingDurationMinutes\"];\r\n this.subscriptionId = _data[\"subscriptionId\"];\r\n this.controlPlateType = _data[\"controlPlateType\"];\r\n this.controlPlateCountryCode = _data[\"controlPlateCountryCode\"];\r\n this.controlPlateNumber = _data[\"controlPlateNumber\"];\r\n this.parkingSpaceNumber = _data[\"parkingSpaceNumber\"];\r\n this.parkingPriceDetails = _data[\"parkingPriceDetails\"] ? ParkingPriceDetailsDTO.fromJS(_data[\"parkingPriceDetails\"]) : undefined;\r\n this.zoneId = _data[\"zoneId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): StartForeignParkingPaymentProcessDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StartForeignParkingPaymentProcessDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"paymentAliasId\"] = this.paymentAliasId;\r\n data[\"maxIntendedParkingDurationMinutes\"] = this.maxIntendedParkingDurationMinutes;\r\n data[\"subscriptionId\"] = this.subscriptionId;\r\n data[\"controlPlateType\"] = this.controlPlateType;\r\n data[\"controlPlateCountryCode\"] = this.controlPlateCountryCode;\r\n data[\"controlPlateNumber\"] = this.controlPlateNumber;\r\n data[\"parkingSpaceNumber\"] = this.parkingSpaceNumber;\r\n data[\"parkingPriceDetails\"] = this.parkingPriceDetails ? this.parkingPriceDetails.toJSON() : undefined;\r\n data[\"zoneId\"] = this.zoneId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStartForeignParkingPaymentProcessDTO {\r\n paymentAliasId?: number | undefined;\r\n maxIntendedParkingDurationMinutes: number;\r\n subscriptionId: number;\r\n controlPlateType: ControlPlateType;\r\n controlPlateCountryCode?: string | undefined;\r\n controlPlateNumber?: string | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n parkingPriceDetails?: ParkingPriceDetailsDTO | undefined;\r\n zoneId: number;\r\n}\r\n\r\nexport class CheckinUserParkingRegistrationDTO implements ICheckinUserParkingRegistrationDTO {\r\n sessionId!: number;\r\n registrationDateTime!: DateTime;\r\n state!: ParkingRegistrationState;\r\n offense!: ParkerRegistrationOffense;\r\n clientId?: number | undefined;\r\n subscriptionAssignment?: ParkerSubscriptionAssignmentDTO | undefined;\r\n zoneId?: number | undefined;\r\n zone?: ParkingProcessLimitedZoneWithParentInfoDTO | undefined;\r\n maxIntendedParkingDurationMinutes?: number | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n controlPlateNumber?: string | undefined;\r\n controlPlateCountryCode?: string | undefined;\r\n controlPlateType?: ControlPlateType | undefined;\r\n reservedAmount?: number | undefined;\r\n currency?: Currency | undefined;\r\n paymentAliasId?: number | undefined;\r\n calculatedParkingPriceDetails?: ParkingPriceDetailsDTO | undefined;\r\n automaticScheduleEndTime?: DateTime | undefined;\r\n sessionOpeningEventType!: SessionEventType;\r\n visitorSessionIdToValidate?: number | undefined;\r\n visitorSessionToValidateUntil?: DateTime | undefined;\r\n\r\n constructor(data?: ICheckinUserParkingRegistrationDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.sessionId = _data[\"sessionId\"];\r\n this.registrationDateTime = _data[\"registrationDateTime\"] ? DateTime.fromISO(_data[\"registrationDateTime\"].toString()) : undefined;\r\n this.state = _data[\"state\"];\r\n this.offense = _data[\"offense\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.subscriptionAssignment = _data[\"subscriptionAssignment\"] ? ParkerSubscriptionAssignmentDTO.fromJS(_data[\"subscriptionAssignment\"]) : undefined;\r\n this.zoneId = _data[\"zoneId\"];\r\n this.zone = _data[\"zone\"] ? ParkingProcessLimitedZoneWithParentInfoDTO.fromJS(_data[\"zone\"]) : undefined;\r\n this.maxIntendedParkingDurationMinutes = _data[\"maxIntendedParkingDurationMinutes\"];\r\n this.parkingSpaceNumber = _data[\"parkingSpaceNumber\"];\r\n this.controlPlateNumber = _data[\"controlPlateNumber\"];\r\n this.controlPlateCountryCode = _data[\"controlPlateCountryCode\"];\r\n this.controlPlateType = _data[\"controlPlateType\"];\r\n this.reservedAmount = _data[\"reservedAmount\"];\r\n this.currency = _data[\"currency\"];\r\n this.paymentAliasId = _data[\"paymentAliasId\"];\r\n this.calculatedParkingPriceDetails = _data[\"calculatedParkingPriceDetails\"] ? ParkingPriceDetailsDTO.fromJS(_data[\"calculatedParkingPriceDetails\"]) : undefined;\r\n this.automaticScheduleEndTime = _data[\"automaticScheduleEndTime\"] ? DateTime.fromISO(_data[\"automaticScheduleEndTime\"].toString()) : undefined;\r\n this.sessionOpeningEventType = _data[\"sessionOpeningEventType\"];\r\n this.visitorSessionIdToValidate = _data[\"visitorSessionIdToValidate\"];\r\n this.visitorSessionToValidateUntil = _data[\"visitorSessionToValidateUntil\"] ? DateTime.fromISO(_data[\"visitorSessionToValidateUntil\"].toString()) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CheckinUserParkingRegistrationDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CheckinUserParkingRegistrationDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"sessionId\"] = this.sessionId;\r\n data[\"registrationDateTime\"] = this.registrationDateTime ? this.registrationDateTime.toString() : undefined;\r\n data[\"state\"] = this.state;\r\n data[\"offense\"] = this.offense;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"subscriptionAssignment\"] = this.subscriptionAssignment ? this.subscriptionAssignment.toJSON() : undefined;\r\n data[\"zoneId\"] = this.zoneId;\r\n data[\"zone\"] = this.zone ? this.zone.toJSON() : undefined;\r\n data[\"maxIntendedParkingDurationMinutes\"] = this.maxIntendedParkingDurationMinutes;\r\n data[\"parkingSpaceNumber\"] = this.parkingSpaceNumber;\r\n data[\"controlPlateNumber\"] = this.controlPlateNumber;\r\n data[\"controlPlateCountryCode\"] = this.controlPlateCountryCode;\r\n data[\"controlPlateType\"] = this.controlPlateType;\r\n data[\"reservedAmount\"] = this.reservedAmount;\r\n data[\"currency\"] = this.currency;\r\n data[\"paymentAliasId\"] = this.paymentAliasId;\r\n data[\"calculatedParkingPriceDetails\"] = this.calculatedParkingPriceDetails ? this.calculatedParkingPriceDetails.toJSON() : undefined;\r\n data[\"automaticScheduleEndTime\"] = this.automaticScheduleEndTime ? this.automaticScheduleEndTime.toString() : undefined;\r\n data[\"sessionOpeningEventType\"] = this.sessionOpeningEventType;\r\n data[\"visitorSessionIdToValidate\"] = this.visitorSessionIdToValidate;\r\n data[\"visitorSessionToValidateUntil\"] = this.visitorSessionToValidateUntil ? this.visitorSessionToValidateUntil.toString() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICheckinUserParkingRegistrationDTO {\r\n sessionId: number;\r\n registrationDateTime: DateTime;\r\n state: ParkingRegistrationState;\r\n offense: ParkerRegistrationOffense;\r\n clientId?: number | undefined;\r\n subscriptionAssignment?: ParkerSubscriptionAssignmentDTO | undefined;\r\n zoneId?: number | undefined;\r\n zone?: ParkingProcessLimitedZoneWithParentInfoDTO | undefined;\r\n maxIntendedParkingDurationMinutes?: number | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n controlPlateNumber?: string | undefined;\r\n controlPlateCountryCode?: string | undefined;\r\n controlPlateType?: ControlPlateType | undefined;\r\n reservedAmount?: number | undefined;\r\n currency?: Currency | undefined;\r\n paymentAliasId?: number | undefined;\r\n calculatedParkingPriceDetails?: ParkingPriceDetailsDTO | undefined;\r\n automaticScheduleEndTime?: DateTime | undefined;\r\n sessionOpeningEventType: SessionEventType;\r\n visitorSessionIdToValidate?: number | undefined;\r\n visitorSessionToValidateUntil?: DateTime | undefined;\r\n}\r\n\r\nexport class CheckinUserForeignParkingDTO implements ICheckinUserForeignParkingDTO {\r\n zoneId!: number;\r\n controlPlateType!: ControlPlateType;\r\n controlPlateCountryCode?: string | undefined;\r\n controlPlateNumber?: string | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n maxIntendedParkingDurationMinutes!: number;\r\n selectedSubscriptionId!: number;\r\n parkingPriceDetails?: ParkingPriceDetailsDTO | undefined;\r\n paymentId?: number | undefined;\r\n\r\n constructor(data?: ICheckinUserForeignParkingDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.zoneId = _data[\"zoneId\"];\r\n this.controlPlateType = _data[\"controlPlateType\"];\r\n this.controlPlateCountryCode = _data[\"controlPlateCountryCode\"];\r\n this.controlPlateNumber = _data[\"controlPlateNumber\"];\r\n this.parkingSpaceNumber = _data[\"parkingSpaceNumber\"];\r\n this.maxIntendedParkingDurationMinutes = _data[\"maxIntendedParkingDurationMinutes\"];\r\n this.selectedSubscriptionId = _data[\"selectedSubscriptionId\"];\r\n this.parkingPriceDetails = _data[\"parkingPriceDetails\"] ? ParkingPriceDetailsDTO.fromJS(_data[\"parkingPriceDetails\"]) : undefined;\r\n this.paymentId = _data[\"paymentId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CheckinUserForeignParkingDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CheckinUserForeignParkingDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"zoneId\"] = this.zoneId;\r\n data[\"controlPlateType\"] = this.controlPlateType;\r\n data[\"controlPlateCountryCode\"] = this.controlPlateCountryCode;\r\n data[\"controlPlateNumber\"] = this.controlPlateNumber;\r\n data[\"parkingSpaceNumber\"] = this.parkingSpaceNumber;\r\n data[\"maxIntendedParkingDurationMinutes\"] = this.maxIntendedParkingDurationMinutes;\r\n data[\"selectedSubscriptionId\"] = this.selectedSubscriptionId;\r\n data[\"parkingPriceDetails\"] = this.parkingPriceDetails ? this.parkingPriceDetails.toJSON() : undefined;\r\n data[\"paymentId\"] = this.paymentId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICheckinUserForeignParkingDTO {\r\n zoneId: number;\r\n controlPlateType: ControlPlateType;\r\n controlPlateCountryCode?: string | undefined;\r\n controlPlateNumber?: string | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n maxIntendedParkingDurationMinutes: number;\r\n selectedSubscriptionId: number;\r\n parkingPriceDetails?: ParkingPriceDetailsDTO | undefined;\r\n paymentId?: number | undefined;\r\n}\r\n\r\nexport class CalculateVisitorParkingCardPriceResultDTO implements ICalculateVisitorParkingCardPriceResultDTO {\r\n offense!: ParkerRegistrationOffense;\r\n parkingPriceDetails!: ParkingPriceDetailsDTO;\r\n\r\n constructor(data?: ICalculateVisitorParkingCardPriceResultDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.parkingPriceDetails = new ParkingPriceDetailsDTO();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offense = _data[\"offense\"];\r\n this.parkingPriceDetails = _data[\"parkingPriceDetails\"] ? ParkingPriceDetailsDTO.fromJS(_data[\"parkingPriceDetails\"]) : new ParkingPriceDetailsDTO();\r\n }\r\n }\r\n\r\n static fromJS(data: any): CalculateVisitorParkingCardPriceResultDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CalculateVisitorParkingCardPriceResultDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offense\"] = this.offense;\r\n data[\"parkingPriceDetails\"] = this.parkingPriceDetails ? this.parkingPriceDetails.toJSON() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICalculateVisitorParkingCardPriceResultDTO {\r\n offense: ParkerRegistrationOffense;\r\n parkingPriceDetails: ParkingPriceDetailsDTO;\r\n}\r\n\r\nexport class CalculateVisitorParkingCardPriceDTO implements ICalculateVisitorParkingCardPriceDTO {\r\n visitorSessionId!: number;\r\n\r\n constructor(data?: ICalculateVisitorParkingCardPriceDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.visitorSessionId = _data[\"visitorSessionId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CalculateVisitorParkingCardPriceDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CalculateVisitorParkingCardPriceDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"visitorSessionId\"] = this.visitorSessionId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICalculateVisitorParkingCardPriceDTO {\r\n visitorSessionId: number;\r\n}\r\n\r\nexport class ParkingCardDTO implements IParkingCardDTO {\r\n id!: number;\r\n parkerAlias?: string | undefined;\r\n visitorAlias?: string | undefined;\r\n issuingParkerId!: number;\r\n issuingParkerName?: string | undefined;\r\n validFromDateTime?: DateTime | undefined;\r\n validToDateTime?: DateTime | undefined;\r\n forMultipleUse!: boolean;\r\n controlPlateNumber?: string | undefined;\r\n issuedToUserId?: string | undefined;\r\n issuedToUserName?: string | undefined;\r\n isActive!: boolean;\r\n lastUsedOn?: DateTime | undefined;\r\n clientId!: number;\r\n clientName?: string | undefined;\r\n\r\n constructor(data?: IParkingCardDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.parkerAlias = _data[\"parkerAlias\"];\r\n this.visitorAlias = _data[\"visitorAlias\"];\r\n this.issuingParkerId = _data[\"issuingParkerId\"];\r\n this.issuingParkerName = _data[\"issuingParkerName\"];\r\n this.validFromDateTime = _data[\"validFromDateTime\"] ? DateTime.fromISO(_data[\"validFromDateTime\"].toString()) : undefined;\r\n this.validToDateTime = _data[\"validToDateTime\"] ? DateTime.fromISO(_data[\"validToDateTime\"].toString()) : undefined;\r\n this.forMultipleUse = _data[\"forMultipleUse\"];\r\n this.controlPlateNumber = _data[\"controlPlateNumber\"];\r\n this.issuedToUserId = _data[\"issuedToUserId\"];\r\n this.issuedToUserName = _data[\"issuedToUserName\"];\r\n this.isActive = _data[\"isActive\"];\r\n this.lastUsedOn = _data[\"lastUsedOn\"] ? DateTime.fromISO(_data[\"lastUsedOn\"].toString()) : undefined;\r\n this.clientId = _data[\"clientId\"];\r\n this.clientName = _data[\"clientName\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingCardDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingCardDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"parkerAlias\"] = this.parkerAlias;\r\n data[\"visitorAlias\"] = this.visitorAlias;\r\n data[\"issuingParkerId\"] = this.issuingParkerId;\r\n data[\"issuingParkerName\"] = this.issuingParkerName;\r\n data[\"validFromDateTime\"] = this.validFromDateTime ? this.validFromDateTime.toString() : undefined;\r\n data[\"validToDateTime\"] = this.validToDateTime ? this.validToDateTime.toString() : undefined;\r\n data[\"forMultipleUse\"] = this.forMultipleUse;\r\n data[\"controlPlateNumber\"] = this.controlPlateNumber;\r\n data[\"issuedToUserId\"] = this.issuedToUserId;\r\n data[\"issuedToUserName\"] = this.issuedToUserName;\r\n data[\"isActive\"] = this.isActive;\r\n data[\"lastUsedOn\"] = this.lastUsedOn ? this.lastUsedOn.toString() : undefined;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"clientName\"] = this.clientName;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingCardDTO {\r\n id: number;\r\n parkerAlias?: string | undefined;\r\n visitorAlias?: string | undefined;\r\n issuingParkerId: number;\r\n issuingParkerName?: string | undefined;\r\n validFromDateTime?: DateTime | undefined;\r\n validToDateTime?: DateTime | undefined;\r\n forMultipleUse: boolean;\r\n controlPlateNumber?: string | undefined;\r\n issuedToUserId?: string | undefined;\r\n issuedToUserName?: string | undefined;\r\n isActive: boolean;\r\n lastUsedOn?: DateTime | undefined;\r\n clientId: number;\r\n clientName?: string | undefined;\r\n}\r\n\r\nexport class AssignParkingCardToVisitorDTO implements IAssignParkingCardToVisitorDTO {\r\n visitorSessionId!: number;\r\n\r\n constructor(data?: IAssignParkingCardToVisitorDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.visitorSessionId = _data[\"visitorSessionId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): AssignParkingCardToVisitorDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AssignParkingCardToVisitorDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"visitorSessionId\"] = this.visitorSessionId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAssignParkingCardToVisitorDTO {\r\n visitorSessionId: number;\r\n}\r\n\r\nexport class CheckinUserParkingDTO implements ICheckinUserParkingDTO {\r\n zoneId!: number;\r\n paymentRequestId?: number | undefined;\r\n controlPlateType!: ControlPlateType;\r\n controlPlateCountryCode?: string | undefined;\r\n controlPlateNumber?: string | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n maxIntendedParkingDurationMinutes?: number | undefined;\r\n selectedSubscriptionAssignmentId!: number;\r\n\r\n constructor(data?: ICheckinUserParkingDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.zoneId = _data[\"zoneId\"];\r\n this.paymentRequestId = _data[\"paymentRequestId\"];\r\n this.controlPlateType = _data[\"controlPlateType\"];\r\n this.controlPlateCountryCode = _data[\"controlPlateCountryCode\"];\r\n this.controlPlateNumber = _data[\"controlPlateNumber\"];\r\n this.parkingSpaceNumber = _data[\"parkingSpaceNumber\"];\r\n this.maxIntendedParkingDurationMinutes = _data[\"maxIntendedParkingDurationMinutes\"];\r\n this.selectedSubscriptionAssignmentId = _data[\"selectedSubscriptionAssignmentId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CheckinUserParkingDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CheckinUserParkingDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"zoneId\"] = this.zoneId;\r\n data[\"paymentRequestId\"] = this.paymentRequestId;\r\n data[\"controlPlateType\"] = this.controlPlateType;\r\n data[\"controlPlateCountryCode\"] = this.controlPlateCountryCode;\r\n data[\"controlPlateNumber\"] = this.controlPlateNumber;\r\n data[\"parkingSpaceNumber\"] = this.parkingSpaceNumber;\r\n data[\"maxIntendedParkingDurationMinutes\"] = this.maxIntendedParkingDurationMinutes;\r\n data[\"selectedSubscriptionAssignmentId\"] = this.selectedSubscriptionAssignmentId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICheckinUserParkingDTO {\r\n zoneId: number;\r\n paymentRequestId?: number | undefined;\r\n controlPlateType: ControlPlateType;\r\n controlPlateCountryCode?: string | undefined;\r\n controlPlateNumber?: string | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n maxIntendedParkingDurationMinutes?: number | undefined;\r\n selectedSubscriptionAssignmentId: number;\r\n}\r\n\r\nexport class CheckoutUserParkingResultDTO implements ICheckoutUserParkingResultDTO {\r\n zoneId?: number | undefined;\r\n state!: ParkingRegistrationState;\r\n offense!: ParkerRegistrationOffense;\r\n effectiveParkingDurationInMinutes!: number;\r\n payableParkingDurationInMinutes!: number;\r\n parkingPriceDetails!: ParkingPriceDetailsDTO;\r\n\r\n constructor(data?: ICheckoutUserParkingResultDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.parkingPriceDetails = new ParkingPriceDetailsDTO();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.zoneId = _data[\"zoneId\"];\r\n this.state = _data[\"state\"];\r\n this.offense = _data[\"offense\"];\r\n this.effectiveParkingDurationInMinutes = _data[\"effectiveParkingDurationInMinutes\"];\r\n this.payableParkingDurationInMinutes = _data[\"payableParkingDurationInMinutes\"];\r\n this.parkingPriceDetails = _data[\"parkingPriceDetails\"] ? ParkingPriceDetailsDTO.fromJS(_data[\"parkingPriceDetails\"]) : new ParkingPriceDetailsDTO();\r\n }\r\n }\r\n\r\n static fromJS(data: any): CheckoutUserParkingResultDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CheckoutUserParkingResultDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"zoneId\"] = this.zoneId;\r\n data[\"state\"] = this.state;\r\n data[\"offense\"] = this.offense;\r\n data[\"effectiveParkingDurationInMinutes\"] = this.effectiveParkingDurationInMinutes;\r\n data[\"payableParkingDurationInMinutes\"] = this.payableParkingDurationInMinutes;\r\n data[\"parkingPriceDetails\"] = this.parkingPriceDetails ? this.parkingPriceDetails.toJSON() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICheckoutUserParkingResultDTO {\r\n zoneId?: number | undefined;\r\n state: ParkingRegistrationState;\r\n offense: ParkerRegistrationOffense;\r\n effectiveParkingDurationInMinutes: number;\r\n payableParkingDurationInMinutes: number;\r\n parkingPriceDetails: ParkingPriceDetailsDTO;\r\n}\r\n\r\nexport class CheckoutUserParkingDTO implements ICheckoutUserParkingDTO {\r\n sessionId!: number;\r\n\r\n constructor(data?: ICheckoutUserParkingDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.sessionId = _data[\"sessionId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CheckoutUserParkingDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CheckoutUserParkingDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"sessionId\"] = this.sessionId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICheckoutUserParkingDTO {\r\n sessionId: number;\r\n}\r\n\r\nexport class CalculateParkingExtensionPriceResultDTO implements ICalculateParkingExtensionPriceResultDTO {\r\n totalPrice!: number;\r\n currency!: Currency;\r\n parkingPriceDetails!: ParkingPriceDetailsDTO;\r\n needsForeignParkingPaymentProcess!: boolean;\r\n offense!: ParkerRegistrationOffense;\r\n\r\n constructor(data?: ICalculateParkingExtensionPriceResultDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.parkingPriceDetails = new ParkingPriceDetailsDTO();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.totalPrice = _data[\"totalPrice\"];\r\n this.currency = _data[\"currency\"];\r\n this.parkingPriceDetails = _data[\"parkingPriceDetails\"] ? ParkingPriceDetailsDTO.fromJS(_data[\"parkingPriceDetails\"]) : new ParkingPriceDetailsDTO();\r\n this.needsForeignParkingPaymentProcess = _data[\"needsForeignParkingPaymentProcess\"];\r\n this.offense = _data[\"offense\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CalculateParkingExtensionPriceResultDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CalculateParkingExtensionPriceResultDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"totalPrice\"] = this.totalPrice;\r\n data[\"currency\"] = this.currency;\r\n data[\"parkingPriceDetails\"] = this.parkingPriceDetails ? this.parkingPriceDetails.toJSON() : undefined;\r\n data[\"needsForeignParkingPaymentProcess\"] = this.needsForeignParkingPaymentProcess;\r\n data[\"offense\"] = this.offense;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICalculateParkingExtensionPriceResultDTO {\r\n totalPrice: number;\r\n currency: Currency;\r\n parkingPriceDetails: ParkingPriceDetailsDTO;\r\n needsForeignParkingPaymentProcess: boolean;\r\n offense: ParkerRegistrationOffense;\r\n}\r\n\r\nexport class CalculateExtendUserParkingDTO implements ICalculateExtendUserParkingDTO {\r\n paymentAliasId?: number | undefined;\r\n sessionId!: number;\r\n extensionInMinutes!: number;\r\n\r\n constructor(data?: ICalculateExtendUserParkingDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.paymentAliasId = _data[\"paymentAliasId\"];\r\n this.sessionId = _data[\"sessionId\"];\r\n this.extensionInMinutes = _data[\"extensionInMinutes\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CalculateExtendUserParkingDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CalculateExtendUserParkingDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"paymentAliasId\"] = this.paymentAliasId;\r\n data[\"sessionId\"] = this.sessionId;\r\n data[\"extensionInMinutes\"] = this.extensionInMinutes;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICalculateExtendUserParkingDTO {\r\n paymentAliasId?: number | undefined;\r\n sessionId: number;\r\n extensionInMinutes: number;\r\n}\r\n\r\nexport class StartParkingExtensionPaymentProcessResponseDTO implements IStartParkingExtensionPaymentProcessResponseDTO {\r\n success!: boolean;\r\n errorDescription?: string | undefined;\r\n paymentId?: number | undefined;\r\n redirectionUrl?: string | undefined;\r\n successUrl?: string | undefined;\r\n failedUrl?: string | undefined;\r\n\r\n constructor(data?: IStartParkingExtensionPaymentProcessResponseDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.success = _data[\"success\"];\r\n this.errorDescription = _data[\"errorDescription\"];\r\n this.paymentId = _data[\"paymentId\"];\r\n this.redirectionUrl = _data[\"redirectionUrl\"];\r\n this.successUrl = _data[\"successUrl\"];\r\n this.failedUrl = _data[\"failedUrl\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): StartParkingExtensionPaymentProcessResponseDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StartParkingExtensionPaymentProcessResponseDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"success\"] = this.success;\r\n data[\"errorDescription\"] = this.errorDescription;\r\n data[\"paymentId\"] = this.paymentId;\r\n data[\"redirectionUrl\"] = this.redirectionUrl;\r\n data[\"successUrl\"] = this.successUrl;\r\n data[\"failedUrl\"] = this.failedUrl;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStartParkingExtensionPaymentProcessResponseDTO {\r\n success: boolean;\r\n errorDescription?: string | undefined;\r\n paymentId?: number | undefined;\r\n redirectionUrl?: string | undefined;\r\n successUrl?: string | undefined;\r\n failedUrl?: string | undefined;\r\n}\r\n\r\nexport class StartParkingExtensionPaymentProcessDTO implements IStartParkingExtensionPaymentProcessDTO {\r\n paymentAliasId?: number | undefined;\r\n extensionInMinutes!: number;\r\n parkingPriceDetails?: ParkingPriceDetailsDTO | undefined;\r\n sessionId!: number;\r\n\r\n constructor(data?: IStartParkingExtensionPaymentProcessDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.paymentAliasId = _data[\"paymentAliasId\"];\r\n this.extensionInMinutes = _data[\"extensionInMinutes\"];\r\n this.parkingPriceDetails = _data[\"parkingPriceDetails\"] ? ParkingPriceDetailsDTO.fromJS(_data[\"parkingPriceDetails\"]) : undefined;\r\n this.sessionId = _data[\"sessionId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): StartParkingExtensionPaymentProcessDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StartParkingExtensionPaymentProcessDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"paymentAliasId\"] = this.paymentAliasId;\r\n data[\"extensionInMinutes\"] = this.extensionInMinutes;\r\n data[\"parkingPriceDetails\"] = this.parkingPriceDetails ? this.parkingPriceDetails.toJSON() : undefined;\r\n data[\"sessionId\"] = this.sessionId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStartParkingExtensionPaymentProcessDTO {\r\n paymentAliasId?: number | undefined;\r\n extensionInMinutes: number;\r\n parkingPriceDetails?: ParkingPriceDetailsDTO | undefined;\r\n sessionId: number;\r\n}\r\n\r\nexport class ExtendUserParkingResultDTO implements IExtendUserParkingResultDTO {\r\n offense!: ParkerRegistrationOffense;\r\n\r\n constructor(data?: IExtendUserParkingResultDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offense = _data[\"offense\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ExtendUserParkingResultDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ExtendUserParkingResultDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offense\"] = this.offense;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IExtendUserParkingResultDTO {\r\n offense: ParkerRegistrationOffense;\r\n}\r\n\r\nexport class ExtendUserParkingDTO implements IExtendUserParkingDTO {\r\n sessionId!: number;\r\n extensionInMinutes!: number;\r\n parkingPriceDetails?: ParkingPriceDetailsDTO | undefined;\r\n paymentId?: number | undefined;\r\n\r\n constructor(data?: IExtendUserParkingDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.sessionId = _data[\"sessionId\"];\r\n this.extensionInMinutes = _data[\"extensionInMinutes\"];\r\n this.parkingPriceDetails = _data[\"parkingPriceDetails\"] ? ParkingPriceDetailsDTO.fromJS(_data[\"parkingPriceDetails\"]) : undefined;\r\n this.paymentId = _data[\"paymentId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ExtendUserParkingDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ExtendUserParkingDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"sessionId\"] = this.sessionId;\r\n data[\"extensionInMinutes\"] = this.extensionInMinutes;\r\n data[\"parkingPriceDetails\"] = this.parkingPriceDetails ? this.parkingPriceDetails.toJSON() : undefined;\r\n data[\"paymentId\"] = this.paymentId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IExtendUserParkingDTO {\r\n sessionId: number;\r\n extensionInMinutes: number;\r\n parkingPriceDetails?: ParkingPriceDetailsDTO | undefined;\r\n paymentId?: number | undefined;\r\n}\r\n\r\nexport class AddRegistrationImageDTO implements IAddRegistrationImageDTO {\r\n registrationId!: number;\r\n imageBase64?: string | undefined;\r\n\r\n constructor(data?: IAddRegistrationImageDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.registrationId = _data[\"registrationId\"];\r\n this.imageBase64 = _data[\"imageBase64\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): AddRegistrationImageDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AddRegistrationImageDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"registrationId\"] = this.registrationId;\r\n data[\"imageBase64\"] = this.imageBase64;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAddRegistrationImageDTO {\r\n registrationId: number;\r\n imageBase64?: string | undefined;\r\n}\r\n\r\nexport class UpdateRegistrationImage implements IUpdateRegistrationImage {\r\n registrationId!: number;\r\n mediaId?: string | undefined;\r\n imageBase64?: string | undefined;\r\n\r\n constructor(data?: IUpdateRegistrationImage) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.registrationId = _data[\"registrationId\"];\r\n this.mediaId = _data[\"mediaId\"];\r\n this.imageBase64 = _data[\"imageBase64\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateRegistrationImage {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateRegistrationImage();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"registrationId\"] = this.registrationId;\r\n data[\"mediaId\"] = this.mediaId;\r\n data[\"imageBase64\"] = this.imageBase64;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateRegistrationImage {\r\n registrationId: number;\r\n mediaId?: string | undefined;\r\n imageBase64?: string | undefined;\r\n}\r\n\r\nexport class DeleteRegistrationImageDTO implements IDeleteRegistrationImageDTO {\r\n registrationId!: number;\r\n mediaId?: string | undefined;\r\n\r\n constructor(data?: IDeleteRegistrationImageDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.registrationId = _data[\"registrationId\"];\r\n this.mediaId = _data[\"mediaId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteRegistrationImageDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteRegistrationImageDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"registrationId\"] = this.registrationId;\r\n data[\"mediaId\"] = this.mediaId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteRegistrationImageDTO {\r\n registrationId: number;\r\n mediaId?: string | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfParkerRegistrationReportDTO implements IPagedResultDTOOfParkerRegistrationReportDTO {\r\n items?: ParkerRegistrationReportDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfParkerRegistrationReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(ParkerRegistrationReportDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfParkerRegistrationReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfParkerRegistrationReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfParkerRegistrationReportDTO {\r\n items?: ParkerRegistrationReportDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class ParkerRegistrationReportDTO implements IParkerRegistrationReportDTO {\r\n registrationDateTime!: DateTime;\r\n parkerRegistrationType!: ParkerRegistrationType;\r\n parker?: ParkerInfoDTO | undefined;\r\n knownTag?: ParkerTagDTO | undefined;\r\n registeredZone?: ZoneDTO | undefined;\r\n agent?: LimitedUserInfoDTO | undefined;\r\n parkingSessionId!: number;\r\n\r\n constructor(data?: IParkerRegistrationReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.registrationDateTime = _data[\"registrationDateTime\"] ? DateTime.fromISO(_data[\"registrationDateTime\"].toString()) : undefined;\r\n this.parkerRegistrationType = _data[\"parkerRegistrationType\"];\r\n this.parker = _data[\"parker\"] ? ParkerInfoDTO.fromJS(_data[\"parker\"]) : undefined;\r\n this.knownTag = _data[\"knownTag\"] ? ParkerTagDTO.fromJS(_data[\"knownTag\"]) : undefined;\r\n this.registeredZone = _data[\"registeredZone\"] ? ZoneDTO.fromJS(_data[\"registeredZone\"]) : undefined;\r\n this.agent = _data[\"agent\"] ? LimitedUserInfoDTO.fromJS(_data[\"agent\"]) : undefined;\r\n this.parkingSessionId = _data[\"parkingSessionId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkerRegistrationReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerRegistrationReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"registrationDateTime\"] = this.registrationDateTime ? this.registrationDateTime.toString() : undefined;\r\n data[\"parkerRegistrationType\"] = this.parkerRegistrationType;\r\n data[\"parker\"] = this.parker ? this.parker.toJSON() : undefined;\r\n data[\"knownTag\"] = this.knownTag ? this.knownTag.toJSON() : undefined;\r\n data[\"registeredZone\"] = this.registeredZone ? this.registeredZone.toJSON() : undefined;\r\n data[\"agent\"] = this.agent ? this.agent.toJSON() : undefined;\r\n data[\"parkingSessionId\"] = this.parkingSessionId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerRegistrationReportDTO {\r\n registrationDateTime: DateTime;\r\n parkerRegistrationType: ParkerRegistrationType;\r\n parker?: ParkerInfoDTO | undefined;\r\n knownTag?: ParkerTagDTO | undefined;\r\n registeredZone?: ZoneDTO | undefined;\r\n agent?: LimitedUserInfoDTO | undefined;\r\n parkingSessionId: number;\r\n}\r\n\r\nexport class ParkerRegistrationsReportParameterDTO implements IParkerRegistrationsReportParameterDTO {\r\n dateRange!: DateRangeParameterDTO;\r\n parkerRegistrationType?: ParkerRegistrationType | undefined;\r\n\r\n constructor(data?: IParkerRegistrationsReportParameterDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.dateRange = new DateRangeParameterDTO();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.dateRange = _data[\"dateRange\"] ? DateRangeParameterDTO.fromJS(_data[\"dateRange\"]) : new DateRangeParameterDTO();\r\n this.parkerRegistrationType = _data[\"parkerRegistrationType\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkerRegistrationsReportParameterDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerRegistrationsReportParameterDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"dateRange\"] = this.dateRange ? this.dateRange.toJSON() : undefined;\r\n data[\"parkerRegistrationType\"] = this.parkerRegistrationType;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerRegistrationsReportParameterDTO {\r\n dateRange: DateRangeParameterDTO;\r\n parkerRegistrationType?: ParkerRegistrationType | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfParkerTagDTO implements IPagedResultDTOOfParkerTagDTO {\r\n items?: ParkerTagDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfParkerTagDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(ParkerTagDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfParkerTagDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfParkerTagDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfParkerTagDTO {\r\n items?: ParkerTagDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class PagedResultDTOOfParkerTurnoverReportDTO implements IPagedResultDTOOfParkerTurnoverReportDTO {\r\n items?: ParkerTurnoverReportDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfParkerTurnoverReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(ParkerTurnoverReportDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfParkerTurnoverReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfParkerTurnoverReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfParkerTurnoverReportDTO {\r\n items?: ParkerTurnoverReportDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class ParkerTurnoverReportDTO implements IParkerTurnoverReportDTO {\r\n parker?: ParkerInfoDTO | undefined;\r\n entryDate!: DateTime;\r\n exitDate!: DateTime;\r\n durationInMinutes!: number;\r\n knownTag?: ParkerTagDTO | undefined;\r\n zone?: ZoneDTO | undefined;\r\n amount!: number;\r\n currency!: Currency;\r\n calculationRoadmap?: string | undefined;\r\n isVisitorParking!: boolean;\r\n\r\n constructor(data?: IParkerTurnoverReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.parker = _data[\"parker\"] ? ParkerInfoDTO.fromJS(_data[\"parker\"]) : undefined;\r\n this.entryDate = _data[\"entryDate\"] ? DateTime.fromISO(_data[\"entryDate\"].toString()) : undefined;\r\n this.exitDate = _data[\"exitDate\"] ? DateTime.fromISO(_data[\"exitDate\"].toString()) : undefined;\r\n this.durationInMinutes = _data[\"durationInMinutes\"];\r\n this.knownTag = _data[\"knownTag\"] ? ParkerTagDTO.fromJS(_data[\"knownTag\"]) : undefined;\r\n this.zone = _data[\"zone\"] ? ZoneDTO.fromJS(_data[\"zone\"]) : undefined;\r\n this.amount = _data[\"amount\"];\r\n this.currency = _data[\"currency\"];\r\n this.calculationRoadmap = _data[\"calculationRoadmap\"];\r\n this.isVisitorParking = _data[\"isVisitorParking\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkerTurnoverReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerTurnoverReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"parker\"] = this.parker ? this.parker.toJSON() : undefined;\r\n data[\"entryDate\"] = this.entryDate ? this.entryDate.toString() : undefined;\r\n data[\"exitDate\"] = this.exitDate ? this.exitDate.toString() : undefined;\r\n data[\"durationInMinutes\"] = this.durationInMinutes;\r\n data[\"knownTag\"] = this.knownTag ? this.knownTag.toJSON() : undefined;\r\n data[\"zone\"] = this.zone ? this.zone.toJSON() : undefined;\r\n data[\"amount\"] = this.amount;\r\n data[\"currency\"] = this.currency;\r\n data[\"calculationRoadmap\"] = this.calculationRoadmap;\r\n data[\"isVisitorParking\"] = this.isVisitorParking;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerTurnoverReportDTO {\r\n parker?: ParkerInfoDTO | undefined;\r\n entryDate: DateTime;\r\n exitDate: DateTime;\r\n durationInMinutes: number;\r\n knownTag?: ParkerTagDTO | undefined;\r\n zone?: ZoneDTO | undefined;\r\n amount: number;\r\n currency: Currency;\r\n calculationRoadmap?: string | undefined;\r\n isVisitorParking: boolean;\r\n}\r\n\r\nexport class ParkerTurnoverReportParameterDTO implements IParkerTurnoverReportParameterDTO {\r\n dateRange!: DateRangeParameterDTO;\r\n zoneId?: number | undefined;\r\n parkerIds?: number[] | undefined;\r\n\r\n constructor(data?: IParkerTurnoverReportParameterDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.dateRange = new DateRangeParameterDTO();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.dateRange = _data[\"dateRange\"] ? DateRangeParameterDTO.fromJS(_data[\"dateRange\"]) : new DateRangeParameterDTO();\r\n this.zoneId = _data[\"zoneId\"];\r\n if (Array.isArray(_data[\"parkerIds\"])) {\r\n this.parkerIds = [] as any;\r\n for (let item of _data[\"parkerIds\"])\r\n this.parkerIds!.push(item);\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkerTurnoverReportParameterDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerTurnoverReportParameterDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"dateRange\"] = this.dateRange ? this.dateRange.toJSON() : undefined;\r\n data[\"zoneId\"] = this.zoneId;\r\n if (Array.isArray(this.parkerIds)) {\r\n data[\"parkerIds\"] = [];\r\n for (let item of this.parkerIds)\r\n data[\"parkerIds\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerTurnoverReportParameterDTO {\r\n dateRange: DateRangeParameterDTO;\r\n zoneId?: number | undefined;\r\n parkerIds?: number[] | undefined;\r\n}\r\n\r\nexport class ParkerTurnoverReportSummaryDTO implements IParkerTurnoverReportSummaryDTO {\r\n totalAmounts!: AmountWithCurrencyDTO[];\r\n totalNumberOfParkings!: number;\r\n\r\n constructor(data?: IParkerTurnoverReportSummaryDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.totalAmounts = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"totalAmounts\"])) {\r\n this.totalAmounts = [] as any;\r\n for (let item of _data[\"totalAmounts\"])\r\n this.totalAmounts!.push(AmountWithCurrencyDTO.fromJS(item));\r\n }\r\n this.totalNumberOfParkings = _data[\"totalNumberOfParkings\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkerTurnoverReportSummaryDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkerTurnoverReportSummaryDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.totalAmounts)) {\r\n data[\"totalAmounts\"] = [];\r\n for (let item of this.totalAmounts)\r\n data[\"totalAmounts\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfParkings\"] = this.totalNumberOfParkings;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkerTurnoverReportSummaryDTO {\r\n totalAmounts: AmountWithCurrencyDTO[];\r\n totalNumberOfParkings: number;\r\n}\r\n\r\nexport class AmountWithCurrencyDTO implements IAmountWithCurrencyDTO {\r\n totalPrice!: number;\r\n currency!: Currency;\r\n priceDetails!: ParkingPriceDetailsDTO;\r\n\r\n constructor(data?: IAmountWithCurrencyDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.priceDetails = new ParkingPriceDetailsDTO();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.totalPrice = _data[\"totalPrice\"];\r\n this.currency = _data[\"currency\"];\r\n this.priceDetails = _data[\"priceDetails\"] ? ParkingPriceDetailsDTO.fromJS(_data[\"priceDetails\"]) : new ParkingPriceDetailsDTO();\r\n }\r\n }\r\n\r\n static fromJS(data: any): AmountWithCurrencyDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AmountWithCurrencyDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"totalPrice\"] = this.totalPrice;\r\n data[\"currency\"] = this.currency;\r\n data[\"priceDetails\"] = this.priceDetails ? this.priceDetails.toJSON() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAmountWithCurrencyDTO {\r\n totalPrice: number;\r\n currency: Currency;\r\n priceDetails: ParkingPriceDetailsDTO;\r\n}\r\n\r\nexport class CreateParkingCardDTO implements ICreateParkingCardDTO {\r\n issuingParkerId!: number;\r\n validFromDateTime?: DateTime | undefined;\r\n validToDateTime?: DateTime | undefined;\r\n forMultipleUse!: boolean;\r\n controlPlateNumber?: string | undefined;\r\n issuedToUserId?: string | undefined;\r\n\r\n constructor(data?: ICreateParkingCardDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.issuingParkerId = _data[\"issuingParkerId\"];\r\n this.validFromDateTime = _data[\"validFromDateTime\"] ? DateTime.fromISO(_data[\"validFromDateTime\"].toString()) : undefined;\r\n this.validToDateTime = _data[\"validToDateTime\"] ? DateTime.fromISO(_data[\"validToDateTime\"].toString()) : undefined;\r\n this.forMultipleUse = _data[\"forMultipleUse\"];\r\n this.controlPlateNumber = _data[\"controlPlateNumber\"];\r\n this.issuedToUserId = _data[\"issuedToUserId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateParkingCardDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateParkingCardDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"issuingParkerId\"] = this.issuingParkerId;\r\n data[\"validFromDateTime\"] = this.validFromDateTime ? this.validFromDateTime.toString() : undefined;\r\n data[\"validToDateTime\"] = this.validToDateTime ? this.validToDateTime.toString() : undefined;\r\n data[\"forMultipleUse\"] = this.forMultipleUse;\r\n data[\"controlPlateNumber\"] = this.controlPlateNumber;\r\n data[\"issuedToUserId\"] = this.issuedToUserId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateParkingCardDTO {\r\n issuingParkerId: number;\r\n validFromDateTime?: DateTime | undefined;\r\n validToDateTime?: DateTime | undefined;\r\n forMultipleUse: boolean;\r\n controlPlateNumber?: string | undefined;\r\n issuedToUserId?: string | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfParkingCardDTO implements IPagedResultDTOOfParkingCardDTO {\r\n items?: ParkingCardDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfParkingCardDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(ParkingCardDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfParkingCardDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfParkingCardDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfParkingCardDTO {\r\n items?: ParkingCardDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class UpdateParkingCardDTO implements IUpdateParkingCardDTO {\r\n parkingCardId!: number;\r\n parkingCardName!: string;\r\n\r\n constructor(data?: IUpdateParkingCardDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.parkingCardId = _data[\"parkingCardId\"];\r\n this.parkingCardName = _data[\"parkingCardName\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateParkingCardDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateParkingCardDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"parkingCardId\"] = this.parkingCardId;\r\n data[\"parkingCardName\"] = this.parkingCardName;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateParkingCardDTO {\r\n parkingCardId: number;\r\n parkingCardName: string;\r\n}\r\n\r\nexport class ParkingEntryDTO implements IParkingEntryDTO {\r\n registrationDateTime!: DateTime;\r\n registeredZoneId!: number;\r\n knownTagId?: number | undefined;\r\n unknownParkerTagControlPlateType?: ControlPlateType | undefined;\r\n unknownParkerTagCountryCode?: string | undefined;\r\n unknownParkerTagControlPlateNumber?: string | undefined;\r\n parkingDuration!: number;\r\n hasOffense!: boolean;\r\n sessionStartDateTime!: DateTime;\r\n expectedSessionEndDateTime?: DateTime | undefined;\r\n pendingAutomaticSessionStartDateTime?: DateTime | undefined;\r\n sessionOpeningEventType!: SessionEventType;\r\n sessionClosingEventType?: SessionEventType | undefined;\r\n selectedSubscription?: ParkingSubscriptionLimitedDTO | undefined;\r\n offenses?: ParkingEntryOffenseInfoDTO[] | undefined;\r\n\r\n constructor(data?: IParkingEntryDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.registrationDateTime = _data[\"registrationDateTime\"] ? DateTime.fromISO(_data[\"registrationDateTime\"].toString()) : undefined;\r\n this.registeredZoneId = _data[\"registeredZoneId\"];\r\n this.knownTagId = _data[\"knownTagId\"];\r\n this.unknownParkerTagControlPlateType = _data[\"unknownParkerTagControlPlateType\"];\r\n this.unknownParkerTagCountryCode = _data[\"unknownParkerTagCountryCode\"];\r\n this.unknownParkerTagControlPlateNumber = _data[\"unknownParkerTagControlPlateNumber\"];\r\n this.parkingDuration = _data[\"parkingDuration\"];\r\n this.hasOffense = _data[\"hasOffense\"];\r\n this.sessionStartDateTime = _data[\"sessionStartDateTime\"] ? DateTime.fromISO(_data[\"sessionStartDateTime\"].toString()) : undefined;\r\n this.expectedSessionEndDateTime = _data[\"expectedSessionEndDateTime\"] ? DateTime.fromISO(_data[\"expectedSessionEndDateTime\"].toString()) : undefined;\r\n this.pendingAutomaticSessionStartDateTime = _data[\"pendingAutomaticSessionStartDateTime\"] ? DateTime.fromISO(_data[\"pendingAutomaticSessionStartDateTime\"].toString()) : undefined;\r\n this.sessionOpeningEventType = _data[\"sessionOpeningEventType\"];\r\n this.sessionClosingEventType = _data[\"sessionClosingEventType\"];\r\n this.selectedSubscription = _data[\"selectedSubscription\"] ? ParkingSubscriptionLimitedDTO.fromJS(_data[\"selectedSubscription\"]) : undefined;\r\n if (Array.isArray(_data[\"offenses\"])) {\r\n this.offenses = [] as any;\r\n for (let item of _data[\"offenses\"])\r\n this.offenses!.push(ParkingEntryOffenseInfoDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingEntryDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingEntryDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"registrationDateTime\"] = this.registrationDateTime ? this.registrationDateTime.toString() : undefined;\r\n data[\"registeredZoneId\"] = this.registeredZoneId;\r\n data[\"knownTagId\"] = this.knownTagId;\r\n data[\"unknownParkerTagControlPlateType\"] = this.unknownParkerTagControlPlateType;\r\n data[\"unknownParkerTagCountryCode\"] = this.unknownParkerTagCountryCode;\r\n data[\"unknownParkerTagControlPlateNumber\"] = this.unknownParkerTagControlPlateNumber;\r\n data[\"parkingDuration\"] = this.parkingDuration;\r\n data[\"hasOffense\"] = this.hasOffense;\r\n data[\"sessionStartDateTime\"] = this.sessionStartDateTime ? this.sessionStartDateTime.toString() : undefined;\r\n data[\"expectedSessionEndDateTime\"] = this.expectedSessionEndDateTime ? this.expectedSessionEndDateTime.toString() : undefined;\r\n data[\"pendingAutomaticSessionStartDateTime\"] = this.pendingAutomaticSessionStartDateTime ? this.pendingAutomaticSessionStartDateTime.toString() : undefined;\r\n data[\"sessionOpeningEventType\"] = this.sessionOpeningEventType;\r\n data[\"sessionClosingEventType\"] = this.sessionClosingEventType;\r\n data[\"selectedSubscription\"] = this.selectedSubscription ? this.selectedSubscription.toJSON() : undefined;\r\n if (Array.isArray(this.offenses)) {\r\n data[\"offenses\"] = [];\r\n for (let item of this.offenses)\r\n data[\"offenses\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingEntryDTO {\r\n registrationDateTime: DateTime;\r\n registeredZoneId: number;\r\n knownTagId?: number | undefined;\r\n unknownParkerTagControlPlateType?: ControlPlateType | undefined;\r\n unknownParkerTagCountryCode?: string | undefined;\r\n unknownParkerTagControlPlateNumber?: string | undefined;\r\n parkingDuration: number;\r\n hasOffense: boolean;\r\n sessionStartDateTime: DateTime;\r\n expectedSessionEndDateTime?: DateTime | undefined;\r\n pendingAutomaticSessionStartDateTime?: DateTime | undefined;\r\n sessionOpeningEventType: SessionEventType;\r\n sessionClosingEventType?: SessionEventType | undefined;\r\n selectedSubscription?: ParkingSubscriptionLimitedDTO | undefined;\r\n offenses?: ParkingEntryOffenseInfoDTO[] | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfParkingSessionDTO implements IPagedResultDTOOfParkingSessionDTO {\r\n items?: ParkingSessionDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfParkingSessionDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(ParkingSessionDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfParkingSessionDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfParkingSessionDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfParkingSessionDTO {\r\n items?: ParkingSessionDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class ParkingSessionDTO implements IParkingSessionDTO {\r\n id!: number;\r\n client?: ClientDTO | undefined;\r\n isClosed!: boolean;\r\n isManuallyAdded!: boolean;\r\n registeredZoneId!: number;\r\n registeredZone?: ZoneLimitedDTO | undefined;\r\n knownTagId?: number | undefined;\r\n knownTag?: ParkerTagWithParkerInfoDTO | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n unknownParkerTagCountryCode?: string | undefined;\r\n unknownParkerTagControlPlateNumber?: string | undefined;\r\n penaltyIssued!: boolean;\r\n offenses?: ParkerRegistrationOffense[] | undefined;\r\n maxIntendedParkingDurationMinutes?: number | undefined;\r\n firstEntryDateTime!: DateTime;\r\n lastEntryDateTime!: DateTime;\r\n calculatedParkingFee!: number;\r\n totalParkingFee!: number;\r\n detailedPriceInformation?: ParkingPriceDetailsDTO | undefined;\r\n currency!: Currency;\r\n calculationRoadmap?: string | undefined;\r\n parkingDuration!: number;\r\n parkerRegistrations?: ParkerRegistrationDTO[] | undefined;\r\n\r\n constructor(data?: IParkingSessionDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.client = _data[\"client\"] ? ClientDTO.fromJS(_data[\"client\"]) : undefined;\r\n this.isClosed = _data[\"isClosed\"];\r\n this.isManuallyAdded = _data[\"isManuallyAdded\"];\r\n this.registeredZoneId = _data[\"registeredZoneId\"];\r\n this.registeredZone = _data[\"registeredZone\"] ? ZoneLimitedDTO.fromJS(_data[\"registeredZone\"]) : undefined;\r\n this.knownTagId = _data[\"knownTagId\"];\r\n this.knownTag = _data[\"knownTag\"] ? ParkerTagWithParkerInfoDTO.fromJS(_data[\"knownTag\"]) : undefined;\r\n this.parkingSpaceNumber = _data[\"parkingSpaceNumber\"];\r\n this.unknownParkerTagCountryCode = _data[\"unknownParkerTagCountryCode\"];\r\n this.unknownParkerTagControlPlateNumber = _data[\"unknownParkerTagControlPlateNumber\"];\r\n this.penaltyIssued = _data[\"penaltyIssued\"];\r\n if (Array.isArray(_data[\"offenses\"])) {\r\n this.offenses = [] as any;\r\n for (let item of _data[\"offenses\"])\r\n this.offenses!.push(item);\r\n }\r\n this.maxIntendedParkingDurationMinutes = _data[\"maxIntendedParkingDurationMinutes\"];\r\n this.firstEntryDateTime = _data[\"firstEntryDateTime\"] ? DateTime.fromISO(_data[\"firstEntryDateTime\"].toString()) : undefined;\r\n this.lastEntryDateTime = _data[\"lastEntryDateTime\"] ? DateTime.fromISO(_data[\"lastEntryDateTime\"].toString()) : undefined;\r\n this.calculatedParkingFee = _data[\"calculatedParkingFee\"];\r\n this.totalParkingFee = _data[\"totalParkingFee\"];\r\n this.detailedPriceInformation = _data[\"detailedPriceInformation\"] ? ParkingPriceDetailsDTO.fromJS(_data[\"detailedPriceInformation\"]) : undefined;\r\n this.currency = _data[\"currency\"];\r\n this.calculationRoadmap = _data[\"calculationRoadmap\"];\r\n this.parkingDuration = _data[\"parkingDuration\"];\r\n if (Array.isArray(_data[\"parkerRegistrations\"])) {\r\n this.parkerRegistrations = [] as any;\r\n for (let item of _data[\"parkerRegistrations\"])\r\n this.parkerRegistrations!.push(ParkerRegistrationDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingSessionDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingSessionDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"client\"] = this.client ? this.client.toJSON() : undefined;\r\n data[\"isClosed\"] = this.isClosed;\r\n data[\"isManuallyAdded\"] = this.isManuallyAdded;\r\n data[\"registeredZoneId\"] = this.registeredZoneId;\r\n data[\"registeredZone\"] = this.registeredZone ? this.registeredZone.toJSON() : undefined;\r\n data[\"knownTagId\"] = this.knownTagId;\r\n data[\"knownTag\"] = this.knownTag ? this.knownTag.toJSON() : undefined;\r\n data[\"parkingSpaceNumber\"] = this.parkingSpaceNumber;\r\n data[\"unknownParkerTagCountryCode\"] = this.unknownParkerTagCountryCode;\r\n data[\"unknownParkerTagControlPlateNumber\"] = this.unknownParkerTagControlPlateNumber;\r\n data[\"penaltyIssued\"] = this.penaltyIssued;\r\n if (Array.isArray(this.offenses)) {\r\n data[\"offenses\"] = [];\r\n for (let item of this.offenses)\r\n data[\"offenses\"].push(item);\r\n }\r\n data[\"maxIntendedParkingDurationMinutes\"] = this.maxIntendedParkingDurationMinutes;\r\n data[\"firstEntryDateTime\"] = this.firstEntryDateTime ? this.firstEntryDateTime.toString() : undefined;\r\n data[\"lastEntryDateTime\"] = this.lastEntryDateTime ? this.lastEntryDateTime.toString() : undefined;\r\n data[\"calculatedParkingFee\"] = this.calculatedParkingFee;\r\n data[\"totalParkingFee\"] = this.totalParkingFee;\r\n data[\"detailedPriceInformation\"] = this.detailedPriceInformation ? this.detailedPriceInformation.toJSON() : undefined;\r\n data[\"currency\"] = this.currency;\r\n data[\"calculationRoadmap\"] = this.calculationRoadmap;\r\n data[\"parkingDuration\"] = this.parkingDuration;\r\n if (Array.isArray(this.parkerRegistrations)) {\r\n data[\"parkerRegistrations\"] = [];\r\n for (let item of this.parkerRegistrations)\r\n data[\"parkerRegistrations\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingSessionDTO {\r\n id: number;\r\n client?: ClientDTO | undefined;\r\n isClosed: boolean;\r\n isManuallyAdded: boolean;\r\n registeredZoneId: number;\r\n registeredZone?: ZoneLimitedDTO | undefined;\r\n knownTagId?: number | undefined;\r\n knownTag?: ParkerTagWithParkerInfoDTO | undefined;\r\n parkingSpaceNumber?: string | undefined;\r\n unknownParkerTagCountryCode?: string | undefined;\r\n unknownParkerTagControlPlateNumber?: string | undefined;\r\n penaltyIssued: boolean;\r\n offenses?: ParkerRegistrationOffense[] | undefined;\r\n maxIntendedParkingDurationMinutes?: number | undefined;\r\n firstEntryDateTime: DateTime;\r\n lastEntryDateTime: DateTime;\r\n calculatedParkingFee: number;\r\n totalParkingFee: number;\r\n detailedPriceInformation?: ParkingPriceDetailsDTO | undefined;\r\n currency: Currency;\r\n calculationRoadmap?: string | undefined;\r\n parkingDuration: number;\r\n parkerRegistrations?: ParkerRegistrationDTO[] | undefined;\r\n}\r\n\r\nexport class ParkingProcessInfoDTO implements IParkingProcessInfoDTO {\r\n activeCheckinInfo?: CheckinUserParkingRegistrationDTO | undefined;\r\n\r\n constructor(data?: IParkingProcessInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.activeCheckinInfo = _data[\"activeCheckinInfo\"] ? CheckinUserParkingRegistrationDTO.fromJS(_data[\"activeCheckinInfo\"]) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingProcessInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingProcessInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"activeCheckinInfo\"] = this.activeCheckinInfo ? this.activeCheckinInfo.toJSON() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingProcessInfoDTO {\r\n activeCheckinInfo?: CheckinUserParkingRegistrationDTO | undefined;\r\n}\r\n\r\nexport class ParkingSessionInfoShortDTO implements IParkingSessionInfoShortDTO {\r\n id!: number;\r\n timeStamp!: DateTime;\r\n\r\n constructor(data?: IParkingSessionInfoShortDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.timeStamp = _data[\"timeStamp\"] ? DateTime.fromISO(_data[\"timeStamp\"].toString()) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingSessionInfoShortDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingSessionInfoShortDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"timeStamp\"] = this.timeStamp ? this.timeStamp.toString() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingSessionInfoShortDTO {\r\n id: number;\r\n timeStamp: DateTime;\r\n}\r\n\r\nexport class GetParkingSessionIdsForParkerDTO implements IGetParkingSessionIdsForParkerDTO {\r\n clientId!: number;\r\n parkerId!: number;\r\n dateRange!: DateRangeParameterDTO;\r\n subscriptionId?: number | undefined;\r\n\r\n constructor(data?: IGetParkingSessionIdsForParkerDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.dateRange = new DateRangeParameterDTO();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.parkerId = _data[\"parkerId\"];\r\n this.dateRange = _data[\"dateRange\"] ? DateRangeParameterDTO.fromJS(_data[\"dateRange\"]) : new DateRangeParameterDTO();\r\n this.subscriptionId = _data[\"subscriptionId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetParkingSessionIdsForParkerDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetParkingSessionIdsForParkerDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"parkerId\"] = this.parkerId;\r\n data[\"dateRange\"] = this.dateRange ? this.dateRange.toJSON() : undefined;\r\n data[\"subscriptionId\"] = this.subscriptionId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetParkingSessionIdsForParkerDTO {\r\n clientId: number;\r\n parkerId: number;\r\n dateRange: DateRangeParameterDTO;\r\n subscriptionId?: number | undefined;\r\n}\r\n\r\nexport class AdjustSessionStartTimeDTO implements IAdjustSessionStartTimeDTO {\r\n parkingSessionId!: number;\r\n startDateTime!: DateTime;\r\n\r\n constructor(data?: IAdjustSessionStartTimeDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.parkingSessionId = _data[\"parkingSessionId\"];\r\n this.startDateTime = _data[\"startDateTime\"] ? DateTime.fromISO(_data[\"startDateTime\"].toString()) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdjustSessionStartTimeDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdjustSessionStartTimeDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"parkingSessionId\"] = this.parkingSessionId;\r\n data[\"startDateTime\"] = this.startDateTime ? this.startDateTime.toString() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdjustSessionStartTimeDTO {\r\n parkingSessionId: number;\r\n startDateTime: DateTime;\r\n}\r\n\r\nexport class AdjustSessionEndTimeDTO implements IAdjustSessionEndTimeDTO {\r\n parkingSessionId!: number;\r\n endDateTime!: DateTime;\r\n\r\n constructor(data?: IAdjustSessionEndTimeDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.parkingSessionId = _data[\"parkingSessionId\"];\r\n this.endDateTime = _data[\"endDateTime\"] ? DateTime.fromISO(_data[\"endDateTime\"].toString()) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdjustSessionEndTimeDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdjustSessionEndTimeDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"parkingSessionId\"] = this.parkingSessionId;\r\n data[\"endDateTime\"] = this.endDateTime ? this.endDateTime.toString() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdjustSessionEndTimeDTO {\r\n parkingSessionId: number;\r\n endDateTime: DateTime;\r\n}\r\n\r\nexport class ParkingRangerSessionDTO implements IParkingRangerSessionDTO {\r\n id!: number;\r\n clientId!: number;\r\n userId?: string | undefined;\r\n user?: LimitedUserInfoDTO | undefined;\r\n sessionStartTime!: DateTime;\r\n sessionEndTime?: DateTime | undefined;\r\n positions?: ParkingRangerSessionPositionDTO[] | undefined;\r\n registrations?: ParkerRegistrationDTO[] | undefined;\r\n\r\n constructor(data?: IParkingRangerSessionDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.userId = _data[\"userId\"];\r\n this.user = _data[\"user\"] ? LimitedUserInfoDTO.fromJS(_data[\"user\"]) : undefined;\r\n this.sessionStartTime = _data[\"sessionStartTime\"] ? DateTime.fromISO(_data[\"sessionStartTime\"].toString()) : undefined;\r\n this.sessionEndTime = _data[\"sessionEndTime\"] ? DateTime.fromISO(_data[\"sessionEndTime\"].toString()) : undefined;\r\n if (Array.isArray(_data[\"positions\"])) {\r\n this.positions = [] as any;\r\n for (let item of _data[\"positions\"])\r\n this.positions!.push(ParkingRangerSessionPositionDTO.fromJS(item));\r\n }\r\n if (Array.isArray(_data[\"registrations\"])) {\r\n this.registrations = [] as any;\r\n for (let item of _data[\"registrations\"])\r\n this.registrations!.push(ParkerRegistrationDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingRangerSessionDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingRangerSessionDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"userId\"] = this.userId;\r\n data[\"user\"] = this.user ? this.user.toJSON() : undefined;\r\n data[\"sessionStartTime\"] = this.sessionStartTime ? this.sessionStartTime.toString() : undefined;\r\n data[\"sessionEndTime\"] = this.sessionEndTime ? this.sessionEndTime.toString() : undefined;\r\n if (Array.isArray(this.positions)) {\r\n data[\"positions\"] = [];\r\n for (let item of this.positions)\r\n data[\"positions\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.registrations)) {\r\n data[\"registrations\"] = [];\r\n for (let item of this.registrations)\r\n data[\"registrations\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingRangerSessionDTO {\r\n id: number;\r\n clientId: number;\r\n userId?: string | undefined;\r\n user?: LimitedUserInfoDTO | undefined;\r\n sessionStartTime: DateTime;\r\n sessionEndTime?: DateTime | undefined;\r\n positions?: ParkingRangerSessionPositionDTO[] | undefined;\r\n registrations?: ParkerRegistrationDTO[] | undefined;\r\n}\r\n\r\nexport class ParkingRangerSessionPositionDTO implements IParkingRangerSessionPositionDTO {\r\n id!: number;\r\n lat!: number;\r\n lon!: number;\r\n dateTime?: DateTime | undefined;\r\n\r\n constructor(data?: IParkingRangerSessionPositionDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.lat = _data[\"lat\"];\r\n this.lon = _data[\"lon\"];\r\n this.dateTime = _data[\"dateTime\"] ? DateTime.fromISO(_data[\"dateTime\"].toString()) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ParkingRangerSessionPositionDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ParkingRangerSessionPositionDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"lat\"] = this.lat;\r\n data[\"lon\"] = this.lon;\r\n data[\"dateTime\"] = this.dateTime ? this.dateTime.toString() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IParkingRangerSessionPositionDTO {\r\n id: number;\r\n lat: number;\r\n lon: number;\r\n dateTime?: DateTime | undefined;\r\n}\r\n\r\nexport class ExtendedParkingRangerSessionDTO implements IExtendedParkingRangerSessionDTO {\r\n id!: number;\r\n clientId!: number;\r\n userId?: string | undefined;\r\n user?: LimitedUserInfoDTO | undefined;\r\n sessionStartTime!: DateTime;\r\n sessionEndTime?: DateTime | undefined;\r\n positions?: ParkingRangerSessionPositionDTO[] | undefined;\r\n registrations?: ParkerRegistrationWithParkerInfoDTO[] | undefined;\r\n\r\n constructor(data?: IExtendedParkingRangerSessionDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.userId = _data[\"userId\"];\r\n this.user = _data[\"user\"] ? LimitedUserInfoDTO.fromJS(_data[\"user\"]) : undefined;\r\n this.sessionStartTime = _data[\"sessionStartTime\"] ? DateTime.fromISO(_data[\"sessionStartTime\"].toString()) : undefined;\r\n this.sessionEndTime = _data[\"sessionEndTime\"] ? DateTime.fromISO(_data[\"sessionEndTime\"].toString()) : undefined;\r\n if (Array.isArray(_data[\"positions\"])) {\r\n this.positions = [] as any;\r\n for (let item of _data[\"positions\"])\r\n this.positions!.push(ParkingRangerSessionPositionDTO.fromJS(item));\r\n }\r\n if (Array.isArray(_data[\"registrations\"])) {\r\n this.registrations = [] as any;\r\n for (let item of _data[\"registrations\"])\r\n this.registrations!.push(ParkerRegistrationWithParkerInfoDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ExtendedParkingRangerSessionDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ExtendedParkingRangerSessionDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"userId\"] = this.userId;\r\n data[\"user\"] = this.user ? this.user.toJSON() : undefined;\r\n data[\"sessionStartTime\"] = this.sessionStartTime ? this.sessionStartTime.toString() : undefined;\r\n data[\"sessionEndTime\"] = this.sessionEndTime ? this.sessionEndTime.toString() : undefined;\r\n if (Array.isArray(this.positions)) {\r\n data[\"positions\"] = [];\r\n for (let item of this.positions)\r\n data[\"positions\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.registrations)) {\r\n data[\"registrations\"] = [];\r\n for (let item of this.registrations)\r\n data[\"registrations\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IExtendedParkingRangerSessionDTO {\r\n id: number;\r\n clientId: number;\r\n userId?: string | undefined;\r\n user?: LimitedUserInfoDTO | undefined;\r\n sessionStartTime: DateTime;\r\n sessionEndTime?: DateTime | undefined;\r\n positions?: ParkingRangerSessionPositionDTO[] | undefined;\r\n registrations?: ParkerRegistrationWithParkerInfoDTO[] | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfParkingRangerSessionDTO implements IPagedResultDTOOfParkingRangerSessionDTO {\r\n items?: ParkingRangerSessionDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfParkingRangerSessionDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(ParkingRangerSessionDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfParkingRangerSessionDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfParkingRangerSessionDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfParkingRangerSessionDTO {\r\n items?: ParkingRangerSessionDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class CreateParkingRangerSessionDTO implements ICreateParkingRangerSessionDTO {\r\n lastKnownGPSPositionLat?: number | undefined;\r\n lastKnownGPSPositionLon?: number | undefined;\r\n\r\n constructor(data?: ICreateParkingRangerSessionDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.lastKnownGPSPositionLat = _data[\"lastKnownGPSPositionLat\"];\r\n this.lastKnownGPSPositionLon = _data[\"lastKnownGPSPositionLon\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateParkingRangerSessionDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateParkingRangerSessionDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"lastKnownGPSPositionLat\"] = this.lastKnownGPSPositionLat;\r\n data[\"lastKnownGPSPositionLon\"] = this.lastKnownGPSPositionLon;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateParkingRangerSessionDTO {\r\n lastKnownGPSPositionLat?: number | undefined;\r\n lastKnownGPSPositionLon?: number | undefined;\r\n}\r\n\r\nexport class UpdateParkingRangerSessionDTO implements IUpdateParkingRangerSessionDTO {\r\n id!: number;\r\n lastKnownGPSPositionLat?: number | undefined;\r\n lastKnownGPSPositionLon?: number | undefined;\r\n\r\n constructor(data?: IUpdateParkingRangerSessionDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.lastKnownGPSPositionLat = _data[\"lastKnownGPSPositionLat\"];\r\n this.lastKnownGPSPositionLon = _data[\"lastKnownGPSPositionLon\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateParkingRangerSessionDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateParkingRangerSessionDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"lastKnownGPSPositionLat\"] = this.lastKnownGPSPositionLat;\r\n data[\"lastKnownGPSPositionLon\"] = this.lastKnownGPSPositionLon;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateParkingRangerSessionDTO {\r\n id: number;\r\n lastKnownGPSPositionLat?: number | undefined;\r\n lastKnownGPSPositionLon?: number | undefined;\r\n}\r\n\r\nexport class CreateParkingSubscriptionDTO implements ICreateParkingSubscriptionDTO {\r\n clientId!: number;\r\n active!: boolean;\r\n assignable!: boolean;\r\n name?: string | undefined;\r\n type!: ParkingSubscriptionType;\r\n description?: string | undefined;\r\n multipleCarsPerUserTreatAs!: MultipleCarsPerUserTreatAs;\r\n chargeCap?: number | undefined;\r\n chargeCapPerMonth!: boolean;\r\n chargeInRelationToEmploymentPercentage!: boolean;\r\n fixPricePerMonth?: number | undefined;\r\n basePricePerDay?: number | undefined;\r\n denyForeignParkingSubscriptionFallback!: boolean;\r\n sessionIsExtendable!: boolean;\r\n maxParkingDurationInMin?: number | undefined;\r\n currency!: Currency;\r\n structuralEntryId?: number | undefined;\r\n roundSessionFeeToXCents!: number;\r\n usage!: ParkingSubscriptionUsage;\r\n paidBy!: ParkingSubscriptionPaidBy;\r\n parkingCardConfirmationTimeInMinutes!: number;\r\n tariffIds?: number[] | undefined;\r\n\r\n constructor(data?: ICreateParkingSubscriptionDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.active = _data[\"active\"];\r\n this.assignable = _data[\"assignable\"];\r\n this.name = _data[\"name\"];\r\n this.type = _data[\"type\"];\r\n this.description = _data[\"description\"];\r\n this.multipleCarsPerUserTreatAs = _data[\"multipleCarsPerUserTreatAs\"];\r\n this.chargeCap = _data[\"chargeCap\"];\r\n this.chargeCapPerMonth = _data[\"chargeCapPerMonth\"];\r\n this.chargeInRelationToEmploymentPercentage = _data[\"chargeInRelationToEmploymentPercentage\"];\r\n this.fixPricePerMonth = _data[\"fixPricePerMonth\"];\r\n this.basePricePerDay = _data[\"basePricePerDay\"];\r\n this.denyForeignParkingSubscriptionFallback = _data[\"denyForeignParkingSubscriptionFallback\"];\r\n this.sessionIsExtendable = _data[\"sessionIsExtendable\"];\r\n this.maxParkingDurationInMin = _data[\"maxParkingDurationInMin\"];\r\n this.currency = _data[\"currency\"];\r\n this.structuralEntryId = _data[\"structuralEntryId\"];\r\n this.roundSessionFeeToXCents = _data[\"roundSessionFeeToXCents\"];\r\n this.usage = _data[\"usage\"];\r\n this.paidBy = _data[\"paidBy\"];\r\n this.parkingCardConfirmationTimeInMinutes = _data[\"parkingCardConfirmationTimeInMinutes\"];\r\n if (Array.isArray(_data[\"tariffIds\"])) {\r\n this.tariffIds = [] as any;\r\n for (let item of _data[\"tariffIds\"])\r\n this.tariffIds!.push(item);\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateParkingSubscriptionDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateParkingSubscriptionDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"active\"] = this.active;\r\n data[\"assignable\"] = this.assignable;\r\n data[\"name\"] = this.name;\r\n data[\"type\"] = this.type;\r\n data[\"description\"] = this.description;\r\n data[\"multipleCarsPerUserTreatAs\"] = this.multipleCarsPerUserTreatAs;\r\n data[\"chargeCap\"] = this.chargeCap;\r\n data[\"chargeCapPerMonth\"] = this.chargeCapPerMonth;\r\n data[\"chargeInRelationToEmploymentPercentage\"] = this.chargeInRelationToEmploymentPercentage;\r\n data[\"fixPricePerMonth\"] = this.fixPricePerMonth;\r\n data[\"basePricePerDay\"] = this.basePricePerDay;\r\n data[\"denyForeignParkingSubscriptionFallback\"] = this.denyForeignParkingSubscriptionFallback;\r\n data[\"sessionIsExtendable\"] = this.sessionIsExtendable;\r\n data[\"maxParkingDurationInMin\"] = this.maxParkingDurationInMin;\r\n data[\"currency\"] = this.currency;\r\n data[\"structuralEntryId\"] = this.structuralEntryId;\r\n data[\"roundSessionFeeToXCents\"] = this.roundSessionFeeToXCents;\r\n data[\"usage\"] = this.usage;\r\n data[\"paidBy\"] = this.paidBy;\r\n data[\"parkingCardConfirmationTimeInMinutes\"] = this.parkingCardConfirmationTimeInMinutes;\r\n if (Array.isArray(this.tariffIds)) {\r\n data[\"tariffIds\"] = [];\r\n for (let item of this.tariffIds)\r\n data[\"tariffIds\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateParkingSubscriptionDTO {\r\n clientId: number;\r\n active: boolean;\r\n assignable: boolean;\r\n name?: string | undefined;\r\n type: ParkingSubscriptionType;\r\n description?: string | undefined;\r\n multipleCarsPerUserTreatAs: MultipleCarsPerUserTreatAs;\r\n chargeCap?: number | undefined;\r\n chargeCapPerMonth: boolean;\r\n chargeInRelationToEmploymentPercentage: boolean;\r\n fixPricePerMonth?: number | undefined;\r\n basePricePerDay?: number | undefined;\r\n denyForeignParkingSubscriptionFallback: boolean;\r\n sessionIsExtendable: boolean;\r\n maxParkingDurationInMin?: number | undefined;\r\n currency: Currency;\r\n structuralEntryId?: number | undefined;\r\n roundSessionFeeToXCents: number;\r\n usage: ParkingSubscriptionUsage;\r\n paidBy: ParkingSubscriptionPaidBy;\r\n parkingCardConfirmationTimeInMinutes: number;\r\n tariffIds?: number[] | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfParkingSubscriptionDTO implements IPagedResultDTOOfParkingSubscriptionDTO {\r\n items?: ParkingSubscriptionDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfParkingSubscriptionDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(ParkingSubscriptionDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfParkingSubscriptionDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfParkingSubscriptionDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfParkingSubscriptionDTO {\r\n items?: ParkingSubscriptionDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class UpdateParkingSubscriptionDTO implements IUpdateParkingSubscriptionDTO {\r\n id!: number;\r\n active?: boolean | undefined;\r\n assignable?: boolean | undefined;\r\n name?: string | undefined;\r\n type!: ParkingSubscriptionType;\r\n description?: string | undefined;\r\n multipleCarsPerUserTreatAs!: MultipleCarsPerUserTreatAs;\r\n chargeCap?: number | undefined;\r\n chargeCapPerMonth!: boolean;\r\n chargeInRelationToEmploymentPercentage!: boolean;\r\n fixPricePerMonth?: number | undefined;\r\n basePricePerDay?: number | undefined;\r\n currency!: Currency;\r\n denyForeignParkingSubscriptionFallback!: boolean;\r\n sessionIsExtendable!: boolean;\r\n maxParkingDurationInMin?: number | undefined;\r\n roundSessionFeeToXCents?: number | undefined;\r\n usage?: ParkingSubscriptionUsage | undefined;\r\n paidBy?: ParkingSubscriptionPaidBy | undefined;\r\n parkingCardConfirmationTimeInMinutes?: number | undefined;\r\n\r\n constructor(data?: IUpdateParkingSubscriptionDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.active = _data[\"active\"];\r\n this.assignable = _data[\"assignable\"];\r\n this.name = _data[\"name\"];\r\n this.type = _data[\"type\"];\r\n this.description = _data[\"description\"];\r\n this.multipleCarsPerUserTreatAs = _data[\"multipleCarsPerUserTreatAs\"];\r\n this.chargeCap = _data[\"chargeCap\"];\r\n this.chargeCapPerMonth = _data[\"chargeCapPerMonth\"];\r\n this.chargeInRelationToEmploymentPercentage = _data[\"chargeInRelationToEmploymentPercentage\"];\r\n this.fixPricePerMonth = _data[\"fixPricePerMonth\"];\r\n this.basePricePerDay = _data[\"basePricePerDay\"];\r\n this.currency = _data[\"currency\"];\r\n this.denyForeignParkingSubscriptionFallback = _data[\"denyForeignParkingSubscriptionFallback\"];\r\n this.sessionIsExtendable = _data[\"sessionIsExtendable\"];\r\n this.maxParkingDurationInMin = _data[\"maxParkingDurationInMin\"];\r\n this.roundSessionFeeToXCents = _data[\"roundSessionFeeToXCents\"];\r\n this.usage = _data[\"usage\"];\r\n this.paidBy = _data[\"paidBy\"];\r\n this.parkingCardConfirmationTimeInMinutes = _data[\"parkingCardConfirmationTimeInMinutes\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateParkingSubscriptionDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateParkingSubscriptionDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"active\"] = this.active;\r\n data[\"assignable\"] = this.assignable;\r\n data[\"name\"] = this.name;\r\n data[\"type\"] = this.type;\r\n data[\"description\"] = this.description;\r\n data[\"multipleCarsPerUserTreatAs\"] = this.multipleCarsPerUserTreatAs;\r\n data[\"chargeCap\"] = this.chargeCap;\r\n data[\"chargeCapPerMonth\"] = this.chargeCapPerMonth;\r\n data[\"chargeInRelationToEmploymentPercentage\"] = this.chargeInRelationToEmploymentPercentage;\r\n data[\"fixPricePerMonth\"] = this.fixPricePerMonth;\r\n data[\"basePricePerDay\"] = this.basePricePerDay;\r\n data[\"currency\"] = this.currency;\r\n data[\"denyForeignParkingSubscriptionFallback\"] = this.denyForeignParkingSubscriptionFallback;\r\n data[\"sessionIsExtendable\"] = this.sessionIsExtendable;\r\n data[\"maxParkingDurationInMin\"] = this.maxParkingDurationInMin;\r\n data[\"roundSessionFeeToXCents\"] = this.roundSessionFeeToXCents;\r\n data[\"usage\"] = this.usage;\r\n data[\"paidBy\"] = this.paidBy;\r\n data[\"parkingCardConfirmationTimeInMinutes\"] = this.parkingCardConfirmationTimeInMinutes;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateParkingSubscriptionDTO {\r\n id: number;\r\n active?: boolean | undefined;\r\n assignable?: boolean | undefined;\r\n name?: string | undefined;\r\n type: ParkingSubscriptionType;\r\n description?: string | undefined;\r\n multipleCarsPerUserTreatAs: MultipleCarsPerUserTreatAs;\r\n chargeCap?: number | undefined;\r\n chargeCapPerMonth: boolean;\r\n chargeInRelationToEmploymentPercentage: boolean;\r\n fixPricePerMonth?: number | undefined;\r\n basePricePerDay?: number | undefined;\r\n currency: Currency;\r\n denyForeignParkingSubscriptionFallback: boolean;\r\n sessionIsExtendable: boolean;\r\n maxParkingDurationInMin?: number | undefined;\r\n roundSessionFeeToXCents?: number | undefined;\r\n usage?: ParkingSubscriptionUsage | undefined;\r\n paidBy?: ParkingSubscriptionPaidBy | undefined;\r\n parkingCardConfirmationTimeInMinutes?: number | undefined;\r\n}\r\n\r\nexport class CreateParkingTariffDTO implements ICreateParkingTariffDTO {\r\n clientId!: number;\r\n active!: boolean;\r\n onWeekDays?: WeekDayFlags | undefined;\r\n description?: string | undefined;\r\n startTime?: Duration | undefined;\r\n durationInMinutes?: number | undefined;\r\n maxParkingDurationInMin?: number | undefined;\r\n name?: string | undefined;\r\n tariffCurrency!: Currency;\r\n priceType!: TariffPriceType;\r\n tieredPrices?: ParkingTariffTieredPriceDTO[] | undefined;\r\n placeOfResidence!: PlaceOfResidence;\r\n fixedPrice?: number | undefined;\r\n pricePerHour?: number | undefined;\r\n maximumPrice?: number | undefined;\r\n linearPriceMinStepInMinutes!: number;\r\n subscriptionId?: number | undefined;\r\n assignedZoneIds?: number[] | undefined;\r\n isTwentyFourSevenTariff!: boolean;\r\n isDeviceControlTariff!: boolean;\r\n blacklistedLicensePlates?: BlacklistLicensePlateDTO[] | undefined;\r\n\r\n constructor(data?: ICreateParkingTariffDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.active = _data[\"active\"];\r\n this.onWeekDays = _data[\"onWeekDays\"];\r\n this.description = _data[\"description\"];\r\n this.startTime = _data[\"startTime\"] ? Duration.fromISO(_data[\"startTime\"].toString()) : undefined;\r\n this.durationInMinutes = _data[\"durationInMinutes\"];\r\n this.maxParkingDurationInMin = _data[\"maxParkingDurationInMin\"];\r\n this.name = _data[\"name\"];\r\n this.tariffCurrency = _data[\"tariffCurrency\"];\r\n this.priceType = _data[\"priceType\"];\r\n if (Array.isArray(_data[\"tieredPrices\"])) {\r\n this.tieredPrices = [] as any;\r\n for (let item of _data[\"tieredPrices\"])\r\n this.tieredPrices!.push(ParkingTariffTieredPriceDTO.fromJS(item));\r\n }\r\n this.placeOfResidence = _data[\"placeOfResidence\"];\r\n this.fixedPrice = _data[\"fixedPrice\"];\r\n this.pricePerHour = _data[\"pricePerHour\"];\r\n this.maximumPrice = _data[\"maximumPrice\"];\r\n this.linearPriceMinStepInMinutes = _data[\"linearPriceMinStepInMinutes\"];\r\n this.subscriptionId = _data[\"subscriptionId\"];\r\n if (Array.isArray(_data[\"assignedZoneIds\"])) {\r\n this.assignedZoneIds = [] as any;\r\n for (let item of _data[\"assignedZoneIds\"])\r\n this.assignedZoneIds!.push(item);\r\n }\r\n this.isTwentyFourSevenTariff = _data[\"isTwentyFourSevenTariff\"];\r\n this.isDeviceControlTariff = _data[\"isDeviceControlTariff\"];\r\n if (Array.isArray(_data[\"blacklistedLicensePlates\"])) {\r\n this.blacklistedLicensePlates = [] as any;\r\n for (let item of _data[\"blacklistedLicensePlates\"])\r\n this.blacklistedLicensePlates!.push(BlacklistLicensePlateDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateParkingTariffDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateParkingTariffDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"active\"] = this.active;\r\n data[\"onWeekDays\"] = this.onWeekDays;\r\n data[\"description\"] = this.description;\r\n data[\"startTime\"] = this.startTime ? this.startTime.toString() : undefined;\r\n data[\"durationInMinutes\"] = this.durationInMinutes;\r\n data[\"maxParkingDurationInMin\"] = this.maxParkingDurationInMin;\r\n data[\"name\"] = this.name;\r\n data[\"tariffCurrency\"] = this.tariffCurrency;\r\n data[\"priceType\"] = this.priceType;\r\n if (Array.isArray(this.tieredPrices)) {\r\n data[\"tieredPrices\"] = [];\r\n for (let item of this.tieredPrices)\r\n data[\"tieredPrices\"].push(item.toJSON());\r\n }\r\n data[\"placeOfResidence\"] = this.placeOfResidence;\r\n data[\"fixedPrice\"] = this.fixedPrice;\r\n data[\"pricePerHour\"] = this.pricePerHour;\r\n data[\"maximumPrice\"] = this.maximumPrice;\r\n data[\"linearPriceMinStepInMinutes\"] = this.linearPriceMinStepInMinutes;\r\n data[\"subscriptionId\"] = this.subscriptionId;\r\n if (Array.isArray(this.assignedZoneIds)) {\r\n data[\"assignedZoneIds\"] = [];\r\n for (let item of this.assignedZoneIds)\r\n data[\"assignedZoneIds\"].push(item);\r\n }\r\n data[\"isTwentyFourSevenTariff\"] = this.isTwentyFourSevenTariff;\r\n data[\"isDeviceControlTariff\"] = this.isDeviceControlTariff;\r\n if (Array.isArray(this.blacklistedLicensePlates)) {\r\n data[\"blacklistedLicensePlates\"] = [];\r\n for (let item of this.blacklistedLicensePlates)\r\n data[\"blacklistedLicensePlates\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateParkingTariffDTO {\r\n clientId: number;\r\n active: boolean;\r\n onWeekDays?: WeekDayFlags | undefined;\r\n description?: string | undefined;\r\n startTime?: Duration | undefined;\r\n durationInMinutes?: number | undefined;\r\n maxParkingDurationInMin?: number | undefined;\r\n name?: string | undefined;\r\n tariffCurrency: Currency;\r\n priceType: TariffPriceType;\r\n tieredPrices?: ParkingTariffTieredPriceDTO[] | undefined;\r\n placeOfResidence: PlaceOfResidence;\r\n fixedPrice?: number | undefined;\r\n pricePerHour?: number | undefined;\r\n maximumPrice?: number | undefined;\r\n linearPriceMinStepInMinutes: number;\r\n subscriptionId?: number | undefined;\r\n assignedZoneIds?: number[] | undefined;\r\n isTwentyFourSevenTariff: boolean;\r\n isDeviceControlTariff: boolean;\r\n blacklistedLicensePlates?: BlacklistLicensePlateDTO[] | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfParkingTariffLimitedDTO implements IPagedResultDTOOfParkingTariffLimitedDTO {\r\n items?: ParkingTariffLimitedDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfParkingTariffLimitedDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(ParkingTariffLimitedDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfParkingTariffLimitedDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfParkingTariffLimitedDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfParkingTariffLimitedDTO {\r\n items?: ParkingTariffLimitedDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class UpdateParkingTariffDTO implements IUpdateParkingTariffDTO {\r\n id!: number;\r\n active?: boolean | undefined;\r\n onWeekDays?: WeekDayFlags | undefined;\r\n description?: string | undefined;\r\n startTime?: Duration | undefined;\r\n durationInMinutes?: number | undefined;\r\n maxParkingDurationInMin?: number | undefined;\r\n name?: string | undefined;\r\n tariffCurrency!: Currency;\r\n priceType!: TariffPriceType;\r\n tieredPrices?: ParkingTariffTieredPriceDTO[] | undefined;\r\n placeOfResidence!: PlaceOfResidence;\r\n fixedPrice?: number | undefined;\r\n pricePerHour?: number | undefined;\r\n maximumPrice?: number | undefined;\r\n linearPriceMinStepInMinutes?: number | undefined;\r\n isTwentyFourSevenTariff?: boolean | undefined;\r\n isDeviceControlTariff?: boolean | undefined;\r\n blacklistedLicensePlates?: BlacklistLicensePlateDTO[] | undefined;\r\n\r\n constructor(data?: IUpdateParkingTariffDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.active = _data[\"active\"];\r\n this.onWeekDays = _data[\"onWeekDays\"];\r\n this.description = _data[\"description\"];\r\n this.startTime = _data[\"startTime\"] ? Duration.fromISO(_data[\"startTime\"].toString()) : undefined;\r\n this.durationInMinutes = _data[\"durationInMinutes\"];\r\n this.maxParkingDurationInMin = _data[\"maxParkingDurationInMin\"];\r\n this.name = _data[\"name\"];\r\n this.tariffCurrency = _data[\"tariffCurrency\"];\r\n this.priceType = _data[\"priceType\"];\r\n if (Array.isArray(_data[\"tieredPrices\"])) {\r\n this.tieredPrices = [] as any;\r\n for (let item of _data[\"tieredPrices\"])\r\n this.tieredPrices!.push(ParkingTariffTieredPriceDTO.fromJS(item));\r\n }\r\n this.placeOfResidence = _data[\"placeOfResidence\"];\r\n this.fixedPrice = _data[\"fixedPrice\"];\r\n this.pricePerHour = _data[\"pricePerHour\"];\r\n this.maximumPrice = _data[\"maximumPrice\"];\r\n this.linearPriceMinStepInMinutes = _data[\"linearPriceMinStepInMinutes\"];\r\n this.isTwentyFourSevenTariff = _data[\"isTwentyFourSevenTariff\"];\r\n this.isDeviceControlTariff = _data[\"isDeviceControlTariff\"];\r\n if (Array.isArray(_data[\"blacklistedLicensePlates\"])) {\r\n this.blacklistedLicensePlates = [] as any;\r\n for (let item of _data[\"blacklistedLicensePlates\"])\r\n this.blacklistedLicensePlates!.push(BlacklistLicensePlateDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateParkingTariffDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateParkingTariffDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"active\"] = this.active;\r\n data[\"onWeekDays\"] = this.onWeekDays;\r\n data[\"description\"] = this.description;\r\n data[\"startTime\"] = this.startTime ? this.startTime.toString() : undefined;\r\n data[\"durationInMinutes\"] = this.durationInMinutes;\r\n data[\"maxParkingDurationInMin\"] = this.maxParkingDurationInMin;\r\n data[\"name\"] = this.name;\r\n data[\"tariffCurrency\"] = this.tariffCurrency;\r\n data[\"priceType\"] = this.priceType;\r\n if (Array.isArray(this.tieredPrices)) {\r\n data[\"tieredPrices\"] = [];\r\n for (let item of this.tieredPrices)\r\n data[\"tieredPrices\"].push(item.toJSON());\r\n }\r\n data[\"placeOfResidence\"] = this.placeOfResidence;\r\n data[\"fixedPrice\"] = this.fixedPrice;\r\n data[\"pricePerHour\"] = this.pricePerHour;\r\n data[\"maximumPrice\"] = this.maximumPrice;\r\n data[\"linearPriceMinStepInMinutes\"] = this.linearPriceMinStepInMinutes;\r\n data[\"isTwentyFourSevenTariff\"] = this.isTwentyFourSevenTariff;\r\n data[\"isDeviceControlTariff\"] = this.isDeviceControlTariff;\r\n if (Array.isArray(this.blacklistedLicensePlates)) {\r\n data[\"blacklistedLicensePlates\"] = [];\r\n for (let item of this.blacklistedLicensePlates)\r\n data[\"blacklistedLicensePlates\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateParkingTariffDTO {\r\n id: number;\r\n active?: boolean | undefined;\r\n onWeekDays?: WeekDayFlags | undefined;\r\n description?: string | undefined;\r\n startTime?: Duration | undefined;\r\n durationInMinutes?: number | undefined;\r\n maxParkingDurationInMin?: number | undefined;\r\n name?: string | undefined;\r\n tariffCurrency: Currency;\r\n priceType: TariffPriceType;\r\n tieredPrices?: ParkingTariffTieredPriceDTO[] | undefined;\r\n placeOfResidence: PlaceOfResidence;\r\n fixedPrice?: number | undefined;\r\n pricePerHour?: number | undefined;\r\n maximumPrice?: number | undefined;\r\n linearPriceMinStepInMinutes?: number | undefined;\r\n isTwentyFourSevenTariff?: boolean | undefined;\r\n isDeviceControlTariff?: boolean | undefined;\r\n blacklistedLicensePlates?: BlacklistLicensePlateDTO[] | undefined;\r\n}\r\n\r\nexport class PaymentAliasDTO implements IPaymentAliasDTO {\r\n id!: number;\r\n maskedIdentification?: string | undefined;\r\n type!: PaymentType;\r\n paymentMethod?: string | undefined;\r\n expiry?: DateTime | undefined;\r\n\r\n constructor(data?: IPaymentAliasDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.maskedIdentification = _data[\"maskedIdentification\"];\r\n this.type = _data[\"type\"];\r\n this.paymentMethod = _data[\"paymentMethod\"];\r\n this.expiry = _data[\"expiry\"] ? DateTime.fromISO(_data[\"expiry\"].toString()) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentAliasDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentAliasDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"maskedIdentification\"] = this.maskedIdentification;\r\n data[\"type\"] = this.type;\r\n data[\"paymentMethod\"] = this.paymentMethod;\r\n data[\"expiry\"] = this.expiry ? this.expiry.toString() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentAliasDTO {\r\n id: number;\r\n maskedIdentification?: string | undefined;\r\n type: PaymentType;\r\n paymentMethod?: string | undefined;\r\n expiry?: DateTime | undefined;\r\n}\r\n\r\nexport enum PaymentType {\r\n Card = 0,\r\n Paypal = 1,\r\n Twint = 2,\r\n}\r\n\r\nexport class DeletePaymentAliasDTO implements IDeletePaymentAliasDTO {\r\n id!: number;\r\n\r\n constructor(data?: IDeletePaymentAliasDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeletePaymentAliasDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeletePaymentAliasDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeletePaymentAliasDTO {\r\n id: number;\r\n}\r\n\r\nexport class AddPaymentAliasResultDTO implements IAddPaymentAliasResultDTO {\r\n paymentMethodIdent!: number;\r\n redirectionUrl?: string | undefined;\r\n successUrl?: string | undefined;\r\n failedUrl?: string | undefined;\r\n\r\n constructor(data?: IAddPaymentAliasResultDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.paymentMethodIdent = _data[\"paymentMethodIdent\"];\r\n this.redirectionUrl = _data[\"redirectionUrl\"];\r\n this.successUrl = _data[\"successUrl\"];\r\n this.failedUrl = _data[\"failedUrl\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): AddPaymentAliasResultDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AddPaymentAliasResultDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"paymentMethodIdent\"] = this.paymentMethodIdent;\r\n data[\"redirectionUrl\"] = this.redirectionUrl;\r\n data[\"successUrl\"] = this.successUrl;\r\n data[\"failedUrl\"] = this.failedUrl;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAddPaymentAliasResultDTO {\r\n paymentMethodIdent: number;\r\n redirectionUrl?: string | undefined;\r\n successUrl?: string | undefined;\r\n failedUrl?: string | undefined;\r\n}\r\n\r\nexport class AddPaymentAliasDTO implements IAddPaymentAliasDTO {\r\n\r\n constructor(data?: IAddPaymentAliasDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): AddPaymentAliasDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AddPaymentAliasDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAddPaymentAliasDTO {\r\n}\r\n\r\nexport class NotifyAddPaymentAliasFinishedDTO implements INotifyAddPaymentAliasFinishedDTO {\r\n paymentMethodIdent!: number;\r\n success!: boolean;\r\n\r\n constructor(data?: INotifyAddPaymentAliasFinishedDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.paymentMethodIdent = _data[\"paymentMethodIdent\"];\r\n this.success = _data[\"success\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): NotifyAddPaymentAliasFinishedDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NotifyAddPaymentAliasFinishedDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"paymentMethodIdent\"] = this.paymentMethodIdent;\r\n data[\"success\"] = this.success;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INotifyAddPaymentAliasFinishedDTO {\r\n paymentMethodIdent: number;\r\n success: boolean;\r\n}\r\n\r\nexport class PagedResultDTOOfPaymentReportDTO implements IPagedResultDTOOfPaymentReportDTO {\r\n items?: PaymentReportDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfPaymentReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(PaymentReportDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfPaymentReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfPaymentReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfPaymentReportDTO {\r\n items?: PaymentReportDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class PaymentReportDTO implements IPaymentReportDTO {\r\n id!: number;\r\n clientId!: number;\r\n clientName?: string | undefined;\r\n userName?: string | undefined;\r\n creationDateTime!: DateTime;\r\n parkingSessionId?: number | undefined;\r\n paymentState!: ParkingSessionPaymentState;\r\n requestId?: string | undefined;\r\n requestedAmount!: number;\r\n requestCurrency!: Currency;\r\n capturedAmount!: number;\r\n transactionBaseFeeInCHF!: number;\r\n transactionFeeInPercent!: number;\r\n ancestorPaymentId?: number | undefined;\r\n\r\n constructor(data?: IPaymentReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.clientName = _data[\"clientName\"];\r\n this.userName = _data[\"userName\"];\r\n this.creationDateTime = _data[\"creationDateTime\"] ? DateTime.fromISO(_data[\"creationDateTime\"].toString()) : undefined;\r\n this.parkingSessionId = _data[\"parkingSessionId\"];\r\n this.paymentState = _data[\"paymentState\"];\r\n this.requestId = _data[\"requestId\"];\r\n this.requestedAmount = _data[\"requestedAmount\"];\r\n this.requestCurrency = _data[\"requestCurrency\"];\r\n this.capturedAmount = _data[\"capturedAmount\"];\r\n this.transactionBaseFeeInCHF = _data[\"transactionBaseFeeInCHF\"];\r\n this.transactionFeeInPercent = _data[\"transactionFeeInPercent\"];\r\n this.ancestorPaymentId = _data[\"ancestorPaymentId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"clientName\"] = this.clientName;\r\n data[\"userName\"] = this.userName;\r\n data[\"creationDateTime\"] = this.creationDateTime ? this.creationDateTime.toString() : undefined;\r\n data[\"parkingSessionId\"] = this.parkingSessionId;\r\n data[\"paymentState\"] = this.paymentState;\r\n data[\"requestId\"] = this.requestId;\r\n data[\"requestedAmount\"] = this.requestedAmount;\r\n data[\"requestCurrency\"] = this.requestCurrency;\r\n data[\"capturedAmount\"] = this.capturedAmount;\r\n data[\"transactionBaseFeeInCHF\"] = this.transactionBaseFeeInCHF;\r\n data[\"transactionFeeInPercent\"] = this.transactionFeeInPercent;\r\n data[\"ancestorPaymentId\"] = this.ancestorPaymentId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentReportDTO {\r\n id: number;\r\n clientId: number;\r\n clientName?: string | undefined;\r\n userName?: string | undefined;\r\n creationDateTime: DateTime;\r\n parkingSessionId?: number | undefined;\r\n paymentState: ParkingSessionPaymentState;\r\n requestId?: string | undefined;\r\n requestedAmount: number;\r\n requestCurrency: Currency;\r\n capturedAmount: number;\r\n transactionBaseFeeInCHF: number;\r\n transactionFeeInPercent: number;\r\n ancestorPaymentId?: number | undefined;\r\n}\r\n\r\nexport enum ParkingSessionPaymentState {\r\n New = 0,\r\n Initialized = 1,\r\n Allocated = 2,\r\n Pending = 3,\r\n Canceled = 4,\r\n CanceledWhileInitialized = 5,\r\n Captured = 6,\r\n Failed = 7,\r\n}\r\n\r\nexport class PaymentReportParameterDTO implements IPaymentReportParameterDTO {\r\n clientId?: number | undefined;\r\n dateRange!: DateRangeParameterDTO;\r\n\r\n constructor(data?: IPaymentReportParameterDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.dateRange = new DateRangeParameterDTO();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.dateRange = _data[\"dateRange\"] ? DateRangeParameterDTO.fromJS(_data[\"dateRange\"]) : new DateRangeParameterDTO();\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentReportParameterDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentReportParameterDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"dateRange\"] = this.dateRange ? this.dateRange.toJSON() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentReportParameterDTO {\r\n clientId?: number | undefined;\r\n dateRange: DateRangeParameterDTO;\r\n}\r\n\r\nexport class ProxyParkerDTO extends ParkerDTO implements IProxyParkerDTO {\r\n validZoneIds?: number[] | undefined;\r\n\r\n constructor(data?: IProxyParkerDTO) {\r\n super(data);\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"validZoneIds\"])) {\r\n this.validZoneIds = [] as any;\r\n for (let item of _data[\"validZoneIds\"])\r\n this.validZoneIds!.push(item);\r\n }\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ProxyParkerDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ProxyParkerDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.validZoneIds)) {\r\n data[\"validZoneIds\"] = [];\r\n for (let item of this.validZoneIds)\r\n data[\"validZoneIds\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IProxyParkerDTO extends IParkerDTO {\r\n validZoneIds?: number[] | undefined;\r\n}\r\n\r\nexport class ProxySyncInfoDTO implements IProxySyncInfoDTO {\r\n syncTime?: string | undefined;\r\n additionalData?: string | undefined;\r\n\r\n constructor(data?: IProxySyncInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.syncTime = _data[\"syncTime\"];\r\n this.additionalData = _data[\"additionalData\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ProxySyncInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ProxySyncInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"syncTime\"] = this.syncTime;\r\n data[\"additionalData\"] = this.additionalData;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IProxySyncInfoDTO {\r\n syncTime?: string | undefined;\r\n additionalData?: string | undefined;\r\n}\r\n\r\nexport class ProxyParkerUpdateResponseDTO implements IProxyParkerUpdateResponseDTO {\r\n id!: number;\r\n proxyId!: number;\r\n tags?: ParkerTagDTO[] | undefined;\r\n\r\n constructor(data?: IProxyParkerUpdateResponseDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.proxyId = _data[\"proxyId\"];\r\n if (Array.isArray(_data[\"tags\"])) {\r\n this.tags = [] as any;\r\n for (let item of _data[\"tags\"])\r\n this.tags!.push(ParkerTagDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ProxyParkerUpdateResponseDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ProxyParkerUpdateResponseDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"proxyId\"] = this.proxyId;\r\n if (Array.isArray(this.tags)) {\r\n data[\"tags\"] = [];\r\n for (let item of this.tags)\r\n data[\"tags\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IProxyParkerUpdateResponseDTO {\r\n id: number;\r\n proxyId: number;\r\n tags?: ParkerTagDTO[] | undefined;\r\n}\r\n\r\nexport class ProxyUpdateParkerDTO extends UpdateParkerDTO implements IProxyUpdateParkerDTO {\r\n proxyId!: number;\r\n companyName?: string | undefined;\r\n\r\n constructor(data?: IProxyUpdateParkerDTO) {\r\n super(data);\r\n }\r\n\r\n override init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.proxyId = _data[\"proxyId\"];\r\n this.companyName = _data[\"companyName\"];\r\n }\r\n }\r\n\r\n static override fromJS(data: any): ProxyUpdateParkerDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ProxyUpdateParkerDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n override toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"proxyId\"] = this.proxyId;\r\n data[\"companyName\"] = this.companyName;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IProxyUpdateParkerDTO extends IUpdateParkerDTO {\r\n proxyId: number;\r\n companyName?: string | undefined;\r\n}\r\n\r\nexport class ProxyAddTagRegistrationsDTO implements IProxyAddTagRegistrationsDTO {\r\n tags?: ProxyTagRegistrationDTO[] | undefined;\r\n\r\n constructor(data?: IProxyAddTagRegistrationsDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"tags\"])) {\r\n this.tags = [] as any;\r\n for (let item of _data[\"tags\"])\r\n this.tags!.push(ProxyTagRegistrationDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ProxyAddTagRegistrationsDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ProxyAddTagRegistrationsDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.tags)) {\r\n data[\"tags\"] = [];\r\n for (let item of this.tags)\r\n data[\"tags\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IProxyAddTagRegistrationsDTO {\r\n tags?: ProxyTagRegistrationDTO[] | undefined;\r\n}\r\n\r\nexport class ProxyTagRegistrationDTO implements IProxyTagRegistrationDTO {\r\n tagIdentificationCode?: string | undefined;\r\n deviceId!: number;\r\n timeStamp!: DateTime;\r\n parkingSpaceNumber?: string | undefined;\r\n\r\n constructor(data?: IProxyTagRegistrationDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tagIdentificationCode = _data[\"tagIdentificationCode\"];\r\n this.deviceId = _data[\"deviceId\"];\r\n this.timeStamp = _data[\"timeStamp\"] ? DateTime.fromISO(_data[\"timeStamp\"].toString()) : undefined;\r\n this.parkingSpaceNumber = _data[\"parkingSpaceNumber\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ProxyTagRegistrationDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ProxyTagRegistrationDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tagIdentificationCode\"] = this.tagIdentificationCode;\r\n data[\"deviceId\"] = this.deviceId;\r\n data[\"timeStamp\"] = this.timeStamp ? this.timeStamp.toString() : undefined;\r\n data[\"parkingSpaceNumber\"] = this.parkingSpaceNumber;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IProxyTagRegistrationDTO {\r\n tagIdentificationCode?: string | undefined;\r\n deviceId: number;\r\n timeStamp: DateTime;\r\n parkingSpaceNumber?: string | undefined;\r\n}\r\n\r\nexport class ProxyRequestAccessByTagResponseDTO implements IProxyRequestAccessByTagResponseDTO {\r\n grantAccess?: boolean | undefined;\r\n\r\n constructor(data?: IProxyRequestAccessByTagResponseDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.grantAccess = _data[\"grantAccess\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ProxyRequestAccessByTagResponseDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ProxyRequestAccessByTagResponseDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"grantAccess\"] = this.grantAccess;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IProxyRequestAccessByTagResponseDTO {\r\n grantAccess?: boolean | undefined;\r\n}\r\n\r\nexport class ProxyRequestAccessByTagDTO implements IProxyRequestAccessByTagDTO {\r\n deviceId!: number;\r\n registrationTimeUtc!: DateTime;\r\n tid!: string;\r\n epc?: string | undefined;\r\n\r\n constructor(data?: IProxyRequestAccessByTagDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.deviceId = _data[\"deviceId\"];\r\n this.registrationTimeUtc = _data[\"registrationTimeUtc\"] ? DateTime.fromISO(_data[\"registrationTimeUtc\"].toString()) : undefined;\r\n this.tid = _data[\"tid\"];\r\n this.epc = _data[\"epc\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ProxyRequestAccessByTagDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ProxyRequestAccessByTagDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"deviceId\"] = this.deviceId;\r\n data[\"registrationTimeUtc\"] = this.registrationTimeUtc ? this.registrationTimeUtc.toString() : undefined;\r\n data[\"tid\"] = this.tid;\r\n data[\"epc\"] = this.epc;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IProxyRequestAccessByTagDTO {\r\n deviceId: number;\r\n registrationTimeUtc: DateTime;\r\n tid: string;\r\n epc?: string | undefined;\r\n}\r\n\r\nexport class ProxyRegisterDeviceCommandExecutionDTO implements IProxyRegisterDeviceCommandExecutionDTO {\r\n deviceId!: number;\r\n executed!: boolean;\r\n executedCommand!: string;\r\n executionContext!: CommandExecutionContextDTO;\r\n\r\n constructor(data?: IProxyRegisterDeviceCommandExecutionDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.executionContext = new CommandExecutionContextDTO();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.deviceId = _data[\"deviceId\"];\r\n this.executed = _data[\"executed\"];\r\n this.executedCommand = _data[\"executedCommand\"];\r\n this.executionContext = _data[\"executionContext\"] ? CommandExecutionContextDTO.fromJS(_data[\"executionContext\"]) : new CommandExecutionContextDTO();\r\n }\r\n }\r\n\r\n static fromJS(data: any): ProxyRegisterDeviceCommandExecutionDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ProxyRegisterDeviceCommandExecutionDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"deviceId\"] = this.deviceId;\r\n data[\"executed\"] = this.executed;\r\n data[\"executedCommand\"] = this.executedCommand;\r\n data[\"executionContext\"] = this.executionContext ? this.executionContext.toJSON() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IProxyRegisterDeviceCommandExecutionDTO {\r\n deviceId: number;\r\n executed: boolean;\r\n executedCommand: string;\r\n executionContext: CommandExecutionContextDTO;\r\n}\r\n\r\nexport class CommandExecutionContextDTO implements ICommandExecutionContextDTO {\r\n executedUserId?: string | undefined;\r\n executionTimeUtc?: DateTime | undefined;\r\n contextData?: string | undefined;\r\n\r\n constructor(data?: ICommandExecutionContextDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.executedUserId = _data[\"executedUserId\"];\r\n this.executionTimeUtc = _data[\"executionTimeUtc\"] ? DateTime.fromISO(_data[\"executionTimeUtc\"].toString()) : undefined;\r\n this.contextData = _data[\"contextData\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CommandExecutionContextDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CommandExecutionContextDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"executedUserId\"] = this.executedUserId;\r\n data[\"executionTimeUtc\"] = this.executionTimeUtc ? this.executionTimeUtc.toString() : undefined;\r\n data[\"contextData\"] = this.contextData;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICommandExecutionContextDTO {\r\n executedUserId?: string | undefined;\r\n executionTimeUtc?: DateTime | undefined;\r\n contextData?: string | undefined;\r\n}\r\n\r\nexport class ProxyUpdateZoneDeviceDTO implements IProxyUpdateZoneDeviceDTO {\r\n deviceId!: number;\r\n deviceState?: ZoneDeviceState | undefined;\r\n devicePosition?: string | undefined;\r\n\r\n constructor(data?: IProxyUpdateZoneDeviceDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.deviceId = _data[\"deviceId\"];\r\n this.deviceState = _data[\"deviceState\"];\r\n this.devicePosition = _data[\"devicePosition\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ProxyUpdateZoneDeviceDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ProxyUpdateZoneDeviceDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"deviceId\"] = this.deviceId;\r\n data[\"deviceState\"] = this.deviceState;\r\n data[\"devicePosition\"] = this.devicePosition;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IProxyUpdateZoneDeviceDTO {\r\n deviceId: number;\r\n deviceState?: ZoneDeviceState | undefined;\r\n devicePosition?: string | undefined;\r\n}\r\n\r\nexport class HeartBeatInfoDTO implements IHeartBeatInfoDTO {\r\n presentDeviceList?: number[] | undefined;\r\n notPresentDeviceList?: number[] | undefined;\r\n\r\n constructor(data?: IHeartBeatInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"presentDeviceList\"])) {\r\n this.presentDeviceList = [] as any;\r\n for (let item of _data[\"presentDeviceList\"])\r\n this.presentDeviceList!.push(item);\r\n }\r\n if (Array.isArray(_data[\"notPresentDeviceList\"])) {\r\n this.notPresentDeviceList = [] as any;\r\n for (let item of _data[\"notPresentDeviceList\"])\r\n this.notPresentDeviceList!.push(item);\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): HeartBeatInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new HeartBeatInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.presentDeviceList)) {\r\n data[\"presentDeviceList\"] = [];\r\n for (let item of this.presentDeviceList)\r\n data[\"presentDeviceList\"].push(item);\r\n }\r\n if (Array.isArray(this.notPresentDeviceList)) {\r\n data[\"notPresentDeviceList\"] = [];\r\n for (let item of this.notPresentDeviceList)\r\n data[\"notPresentDeviceList\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IHeartBeatInfoDTO {\r\n presentDeviceList?: number[] | undefined;\r\n notPresentDeviceList?: number[] | undefined;\r\n}\r\n\r\nexport class ImportTagsDTO implements IImportTagsDTO {\r\n tags!: ImportTagMasterDTO[];\r\n\r\n constructor(data?: IImportTagsDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.tags = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"tags\"])) {\r\n this.tags = [] as any;\r\n for (let item of _data[\"tags\"])\r\n this.tags!.push(ImportTagMasterDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImportTagsDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImportTagsDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.tags)) {\r\n data[\"tags\"] = [];\r\n for (let item of this.tags)\r\n data[\"tags\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImportTagsDTO {\r\n tags: ImportTagMasterDTO[];\r\n}\r\n\r\nexport class ImportTagMasterDTO implements IImportTagMasterDTO {\r\n tagId?: string | undefined;\r\n description?: string | undefined;\r\n\r\n constructor(data?: IImportTagMasterDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tagId = _data[\"tagId\"];\r\n this.description = _data[\"description\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImportTagMasterDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImportTagMasterDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tagId\"] = this.tagId;\r\n data[\"description\"] = this.description;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImportTagMasterDTO {\r\n tagId?: string | undefined;\r\n description?: string | undefined;\r\n}\r\n\r\nexport class ProxyZoneDeviceDTO implements IProxyZoneDeviceDTO {\r\n id!: number;\r\n clientId!: number;\r\n name?: string | undefined;\r\n zone?: ZoneDTO | undefined;\r\n description?: string | undefined;\r\n enabled!: boolean;\r\n groupControllerDeviceId?: number | undefined;\r\n coordinates?: string | undefined;\r\n deviceType!: ZoneDeviceType;\r\n brand!: ZoneDeviceBrand;\r\n direction?: ZoneDeviceDirection | undefined;\r\n serializedParameters?: string | undefined;\r\n\r\n constructor(data?: IProxyZoneDeviceDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.name = _data[\"name\"];\r\n this.zone = _data[\"zone\"] ? ZoneDTO.fromJS(_data[\"zone\"]) : undefined;\r\n this.description = _data[\"description\"];\r\n this.enabled = _data[\"enabled\"];\r\n this.groupControllerDeviceId = _data[\"groupControllerDeviceId\"];\r\n this.coordinates = _data[\"coordinates\"];\r\n this.deviceType = _data[\"deviceType\"];\r\n this.brand = _data[\"brand\"];\r\n this.direction = _data[\"direction\"];\r\n this.serializedParameters = _data[\"serializedParameters\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ProxyZoneDeviceDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ProxyZoneDeviceDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"name\"] = this.name;\r\n data[\"zone\"] = this.zone ? this.zone.toJSON() : undefined;\r\n data[\"description\"] = this.description;\r\n data[\"enabled\"] = this.enabled;\r\n data[\"groupControllerDeviceId\"] = this.groupControllerDeviceId;\r\n data[\"coordinates\"] = this.coordinates;\r\n data[\"deviceType\"] = this.deviceType;\r\n data[\"brand\"] = this.brand;\r\n data[\"direction\"] = this.direction;\r\n data[\"serializedParameters\"] = this.serializedParameters;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IProxyZoneDeviceDTO {\r\n id: number;\r\n clientId: number;\r\n name?: string | undefined;\r\n zone?: ZoneDTO | undefined;\r\n description?: string | undefined;\r\n enabled: boolean;\r\n groupControllerDeviceId?: number | undefined;\r\n coordinates?: string | undefined;\r\n deviceType: ZoneDeviceType;\r\n brand: ZoneDeviceBrand;\r\n direction?: ZoneDeviceDirection | undefined;\r\n serializedParameters?: string | undefined;\r\n}\r\n\r\nexport class ProxyExecuteCommandDTO implements IProxyExecuteCommandDTO {\r\n commandType!: ProxyExecuteCommandType;\r\n commandToExecute?: string | undefined;\r\n identification!: number;\r\n executionContext?: CommandExecutionContextDTO | undefined;\r\n\r\n constructor(data?: IProxyExecuteCommandDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.commandType = _data[\"commandType\"];\r\n this.commandToExecute = _data[\"commandToExecute\"];\r\n this.identification = _data[\"identification\"];\r\n this.executionContext = _data[\"executionContext\"] ? CommandExecutionContextDTO.fromJS(_data[\"executionContext\"]) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ProxyExecuteCommandDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ProxyExecuteCommandDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"commandType\"] = this.commandType;\r\n data[\"commandToExecute\"] = this.commandToExecute;\r\n data[\"identification\"] = this.identification;\r\n data[\"executionContext\"] = this.executionContext ? this.executionContext.toJSON() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IProxyExecuteCommandDTO {\r\n commandType: ProxyExecuteCommandType;\r\n commandToExecute?: string | undefined;\r\n identification: number;\r\n executionContext?: CommandExecutionContextDTO | undefined;\r\n}\r\n\r\nexport enum ProxyExecuteCommandType {\r\n DeviceCommand = 0,\r\n ProxyCommand = 1,\r\n}\r\n\r\nexport class PagedResultDTOOfSavedReportDTO implements IPagedResultDTOOfSavedReportDTO {\r\n items?: SavedReportDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfSavedReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(SavedReportDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfSavedReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfSavedReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfSavedReportDTO {\r\n items?: SavedReportDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class SavedReportDTO implements ISavedReportDTO {\r\n id!: number;\r\n reportName?: string | undefined;\r\n createdDateTime!: DateTime;\r\n createdBy?: LimitedUserInfoDTO | undefined;\r\n reportType!: ReportType;\r\n\r\n constructor(data?: ISavedReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.reportName = _data[\"reportName\"];\r\n this.createdDateTime = _data[\"createdDateTime\"] ? DateTime.fromISO(_data[\"createdDateTime\"].toString()) : undefined;\r\n this.createdBy = _data[\"createdBy\"] ? LimitedUserInfoDTO.fromJS(_data[\"createdBy\"]) : undefined;\r\n this.reportType = _data[\"reportType\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): SavedReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SavedReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"reportName\"] = this.reportName;\r\n data[\"createdDateTime\"] = this.createdDateTime ? this.createdDateTime.toString() : undefined;\r\n data[\"createdBy\"] = this.createdBy ? this.createdBy.toJSON() : undefined;\r\n data[\"reportType\"] = this.reportType;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISavedReportDTO {\r\n id: number;\r\n reportName?: string | undefined;\r\n createdDateTime: DateTime;\r\n createdBy?: LimitedUserInfoDTO | undefined;\r\n reportType: ReportType;\r\n}\r\n\r\nexport enum ReportType {\r\n TagsPerParker = 0,\r\n ParkerRegistrations = 1,\r\n FalseRecordings = 2,\r\n ParkerTurnover = 3,\r\n ParkerExtract = 4,\r\n DeviceStatus = 5,\r\n AutomaticParking = 6,\r\n Payment = 7,\r\n UserExtract = 8,\r\n}\r\n\r\nexport class MinimumClientVersionDTO implements IMinimumClientVersionDTO {\r\n minimumClientVersion?: string | undefined;\r\n\r\n constructor(data?: IMinimumClientVersionDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.minimumClientVersion = _data[\"minimumClientVersion\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): MinimumClientVersionDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new MinimumClientVersionDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"minimumClientVersion\"] = this.minimumClientVersion;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMinimumClientVersionDTO {\r\n minimumClientVersion?: string | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfTagMasterDTO implements IPagedResultDTOOfTagMasterDTO {\r\n items?: TagMasterDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfTagMasterDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(TagMasterDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfTagMasterDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfTagMasterDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfTagMasterDTO {\r\n items?: TagMasterDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class TagMasterDTO implements ITagMasterDTO {\r\n id!: number;\r\n tagId!: string;\r\n description!: string;\r\n clientId!: number;\r\n parkerId?: number | undefined;\r\n parkerName?: string | undefined;\r\n assignedOn?: DateTime | undefined;\r\n isActive!: boolean;\r\n\r\n constructor(data?: ITagMasterDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.tagId = _data[\"tagId\"];\r\n this.description = _data[\"description\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.parkerId = _data[\"parkerId\"];\r\n this.parkerName = _data[\"parkerName\"];\r\n this.assignedOn = _data[\"assignedOn\"] ? DateTime.fromISO(_data[\"assignedOn\"].toString()) : undefined;\r\n this.isActive = _data[\"isActive\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): TagMasterDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TagMasterDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"tagId\"] = this.tagId;\r\n data[\"description\"] = this.description;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"parkerId\"] = this.parkerId;\r\n data[\"parkerName\"] = this.parkerName;\r\n data[\"assignedOn\"] = this.assignedOn ? this.assignedOn.toString() : undefined;\r\n data[\"isActive\"] = this.isActive;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITagMasterDTO {\r\n id: number;\r\n tagId: string;\r\n description: string;\r\n clientId: number;\r\n parkerId?: number | undefined;\r\n parkerName?: string | undefined;\r\n assignedOn?: DateTime | undefined;\r\n isActive: boolean;\r\n}\r\n\r\nexport class PagedResultDTOOfTagsPerParkerReportDTO implements IPagedResultDTOOfTagsPerParkerReportDTO {\r\n items?: TagsPerParkerReportDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfTagsPerParkerReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(TagsPerParkerReportDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfTagsPerParkerReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfTagsPerParkerReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfTagsPerParkerReportDTO {\r\n items?: TagsPerParkerReportDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class TagsPerParkerReportDTO implements ITagsPerParkerReportDTO {\r\n id!: number;\r\n firstName?: string | undefined;\r\n lastName?: string | undefined;\r\n company?: string | undefined;\r\n parkerTag?: ParkerTagDTO | undefined;\r\n\r\n constructor(data?: ITagsPerParkerReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.firstName = _data[\"firstName\"];\r\n this.lastName = _data[\"lastName\"];\r\n this.company = _data[\"company\"];\r\n this.parkerTag = _data[\"parkerTag\"] ? ParkerTagDTO.fromJS(_data[\"parkerTag\"]) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TagsPerParkerReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TagsPerParkerReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"firstName\"] = this.firstName;\r\n data[\"lastName\"] = this.lastName;\r\n data[\"company\"] = this.company;\r\n data[\"parkerTag\"] = this.parkerTag ? this.parkerTag.toJSON() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITagsPerParkerReportDTO {\r\n id: number;\r\n firstName?: string | undefined;\r\n lastName?: string | undefined;\r\n company?: string | undefined;\r\n parkerTag?: ParkerTagDTO | undefined;\r\n}\r\n\r\nexport class TagsPerParkerReportParameterDTO implements ITagsPerParkerReportParameterDTO {\r\n parkerId?: number | undefined;\r\n companyId?: number | undefined;\r\n searchText?: string | undefined;\r\n\r\n constructor(data?: ITagsPerParkerReportParameterDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.parkerId = _data[\"parkerId\"];\r\n this.companyId = _data[\"companyId\"];\r\n this.searchText = _data[\"searchText\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): TagsPerParkerReportParameterDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TagsPerParkerReportParameterDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"parkerId\"] = this.parkerId;\r\n data[\"companyId\"] = this.companyId;\r\n data[\"searchText\"] = this.searchText;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITagsPerParkerReportParameterDTO {\r\n parkerId?: number | undefined;\r\n companyId?: number | undefined;\r\n searchText?: string | undefined;\r\n}\r\n\r\nexport class ThirdPartyCheckLicensePlateResultDTO implements IThirdPartyCheckLicensePlateResultDTO {\r\n /** The considered number of hours */\r\n consideredNoOfHours!: number;\r\n /** The requested control plate */\r\n controlPlate?: string | undefined;\r\n /** The applied control plate type filter */\r\n appliedControlPlateTypeFilter?: ControlPlateType | undefined;\r\n /** The applied country code filter */\r\n appliedControlPlateCountryCodeFilter?: string | undefined;\r\n /** The found sessions within the considered hours */\r\n sessions?: ThirdPartyCheckLicensePlateSessionResultDTO[] | undefined;\r\n\r\n constructor(data?: IThirdPartyCheckLicensePlateResultDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.consideredNoOfHours = _data[\"consideredNoOfHours\"];\r\n this.controlPlate = _data[\"controlPlate\"];\r\n this.appliedControlPlateTypeFilter = _data[\"appliedControlPlateTypeFilter\"];\r\n this.appliedControlPlateCountryCodeFilter = _data[\"appliedControlPlateCountryCodeFilter\"];\r\n if (Array.isArray(_data[\"sessions\"])) {\r\n this.sessions = [] as any;\r\n for (let item of _data[\"sessions\"])\r\n this.sessions!.push(ThirdPartyCheckLicensePlateSessionResultDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ThirdPartyCheckLicensePlateResultDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ThirdPartyCheckLicensePlateResultDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"consideredNoOfHours\"] = this.consideredNoOfHours;\r\n data[\"controlPlate\"] = this.controlPlate;\r\n data[\"appliedControlPlateTypeFilter\"] = this.appliedControlPlateTypeFilter;\r\n data[\"appliedControlPlateCountryCodeFilter\"] = this.appliedControlPlateCountryCodeFilter;\r\n if (Array.isArray(this.sessions)) {\r\n data[\"sessions\"] = [];\r\n for (let item of this.sessions)\r\n data[\"sessions\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IThirdPartyCheckLicensePlateResultDTO {\r\n /** The considered number of hours */\r\n consideredNoOfHours: number;\r\n /** The requested control plate */\r\n controlPlate?: string | undefined;\r\n /** The applied control plate type filter */\r\n appliedControlPlateTypeFilter?: ControlPlateType | undefined;\r\n /** The applied country code filter */\r\n appliedControlPlateCountryCodeFilter?: string | undefined;\r\n /** The found sessions within the considered hours */\r\n sessions?: ThirdPartyCheckLicensePlateSessionResultDTO[] | undefined;\r\n}\r\n\r\nexport class ThirdPartyCheckLicensePlateSessionResultDTO implements IThirdPartyCheckLicensePlateSessionResultDTO {\r\n /** The control plate type */\r\n controlPlateType?: ControlPlateType | undefined;\r\n /** The country code of the control plate */\r\n controlPlateCountryCode?: string | undefined;\r\n /** The start date of the session */\r\n sessionStartUtc!: DateTime;\r\n /** The endtime of the parking session. If null, the session was started without given end time or duration and runs as long the user checks out */\r\n sessionEndUtc?: DateTime | undefined;\r\n /** This session is still active */\r\n sessionActive!: boolean;\r\n /** The name of the zone */\r\n zoneName?: string | undefined;\r\n /** The parking space number if set. Null if no number is set */\r\n parkingSpaceNumber?: string | undefined;\r\n /** This session happened/is happening under foreign parker conditions */\r\n isForeignParker!: boolean;\r\n\r\n constructor(data?: IThirdPartyCheckLicensePlateSessionResultDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.controlPlateType = _data[\"controlPlateType\"];\r\n this.controlPlateCountryCode = _data[\"controlPlateCountryCode\"];\r\n this.sessionStartUtc = _data[\"sessionStartUtc\"] ? DateTime.fromISO(_data[\"sessionStartUtc\"].toString()) : undefined;\r\n this.sessionEndUtc = _data[\"sessionEndUtc\"] ? DateTime.fromISO(_data[\"sessionEndUtc\"].toString()) : undefined;\r\n this.sessionActive = _data[\"sessionActive\"];\r\n this.zoneName = _data[\"zoneName\"];\r\n this.parkingSpaceNumber = _data[\"parkingSpaceNumber\"];\r\n this.isForeignParker = _data[\"isForeignParker\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ThirdPartyCheckLicensePlateSessionResultDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ThirdPartyCheckLicensePlateSessionResultDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"controlPlateType\"] = this.controlPlateType;\r\n data[\"controlPlateCountryCode\"] = this.controlPlateCountryCode;\r\n data[\"sessionStartUtc\"] = this.sessionStartUtc ? this.sessionStartUtc.toString() : undefined;\r\n data[\"sessionEndUtc\"] = this.sessionEndUtc ? this.sessionEndUtc.toString() : undefined;\r\n data[\"sessionActive\"] = this.sessionActive;\r\n data[\"zoneName\"] = this.zoneName;\r\n data[\"parkingSpaceNumber\"] = this.parkingSpaceNumber;\r\n data[\"isForeignParker\"] = this.isForeignParker;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IThirdPartyCheckLicensePlateSessionResultDTO {\r\n /** The control plate type */\r\n controlPlateType?: ControlPlateType | undefined;\r\n /** The country code of the control plate */\r\n controlPlateCountryCode?: string | undefined;\r\n /** The start date of the session */\r\n sessionStartUtc: DateTime;\r\n /** The endtime of the parking session. If null, the session was started without given end time or duration and runs as long the user checks out */\r\n sessionEndUtc?: DateTime | undefined;\r\n /** This session is still active */\r\n sessionActive: boolean;\r\n /** The name of the zone */\r\n zoneName?: string | undefined;\r\n /** The parking space number if set. Null if no number is set */\r\n parkingSpaceNumber?: string | undefined;\r\n /** This session happened/is happening under foreign parker conditions */\r\n isForeignParker: boolean;\r\n}\r\n\r\nexport class ThirdPartyCheckLicensePlateDTO implements IThirdPartyCheckLicensePlateDTO {\r\n /** Control plate to query. Only numbers and chars (case insensitive) are allowed. No spaces or special chars are expected. Ex. 'ZH1234' */\r\n controlPlate!: string;\r\n /** If set, only the control plates of the given types are queried */\r\n controlPlateType?: ControlPlateType | undefined;\r\n /** If set, only the control plates of the given country code (ex. 'ch') are queried. If set to null, all countries are considered */\r\n controlPlateCountryCode?: string | undefined;\r\n /** Timerange to be considered in the request. 0=only active sessions are delivered */\r\n consideredNoOfHours!: number;\r\n\r\n constructor(data?: IThirdPartyCheckLicensePlateDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.controlPlate = _data[\"controlPlate\"];\r\n this.controlPlateType = _data[\"controlPlateType\"];\r\n this.controlPlateCountryCode = _data[\"controlPlateCountryCode\"];\r\n this.consideredNoOfHours = _data[\"consideredNoOfHours\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ThirdPartyCheckLicensePlateDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ThirdPartyCheckLicensePlateDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"controlPlate\"] = this.controlPlate;\r\n data[\"controlPlateType\"] = this.controlPlateType;\r\n data[\"controlPlateCountryCode\"] = this.controlPlateCountryCode;\r\n data[\"consideredNoOfHours\"] = this.consideredNoOfHours;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IThirdPartyCheckLicensePlateDTO {\r\n /** Control plate to query. Only numbers and chars (case insensitive) are allowed. No spaces or special chars are expected. Ex. 'ZH1234' */\r\n controlPlate: string;\r\n /** If set, only the control plates of the given types are queried */\r\n controlPlateType?: ControlPlateType | undefined;\r\n /** If set, only the control plates of the given country code (ex. 'ch') are queried. If set to null, all countries are considered */\r\n controlPlateCountryCode?: string | undefined;\r\n /** Timerange to be considered in the request. 0=only active sessions are delivered */\r\n consideredNoOfHours: number;\r\n}\r\n\r\nexport class UserInfoDTO implements IUserInfoDTO {\r\n userId?: string | undefined;\r\n clientId?: number | undefined;\r\n client?: ClientDTO | undefined;\r\n companyId?: number | undefined;\r\n company?: ParkerCompanyDTO | undefined;\r\n defaultCostCenterId?: number | undefined;\r\n employeeNumber?: string | undefined;\r\n userName?: string | undefined;\r\n password?: string | undefined;\r\n firstname?: string | undefined;\r\n lastname?: string | undefined;\r\n language?: string | undefined;\r\n email?: string | undefined;\r\n phoneNumber?: string | undefined;\r\n address?: string | undefined;\r\n zip?: string | undefined;\r\n city?: string | undefined;\r\n country?: string | undefined;\r\n roles?: Role[] | undefined;\r\n enabled!: boolean;\r\n accessCode?: string | undefined;\r\n accessCodeValidUntil?: DateTime | undefined;\r\n accessCodeGeneratedOn?: DateTime | undefined;\r\n accessCodeUsedOn?: DateTime | undefined;\r\n permanentAccessCode!: boolean;\r\n controlPlates?: UserControlPlateDTO[] | undefined;\r\n linkedUsers?: LimitedUserInfoDTO[] | undefined;\r\n linkedParkers?: LinkedParkerDTO[] | undefined;\r\n\r\n constructor(data?: IUserInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.userId = _data[\"userId\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.client = _data[\"client\"] ? ClientDTO.fromJS(_data[\"client\"]) : undefined;\r\n this.companyId = _data[\"companyId\"];\r\n this.company = _data[\"company\"] ? ParkerCompanyDTO.fromJS(_data[\"company\"]) : undefined;\r\n this.defaultCostCenterId = _data[\"defaultCostCenterId\"];\r\n this.employeeNumber = _data[\"employeeNumber\"];\r\n this.userName = _data[\"userName\"];\r\n this.password = _data[\"password\"];\r\n this.firstname = _data[\"firstname\"];\r\n this.lastname = _data[\"lastname\"];\r\n this.language = _data[\"language\"];\r\n this.email = _data[\"email\"];\r\n this.phoneNumber = _data[\"phoneNumber\"];\r\n this.address = _data[\"address\"];\r\n this.zip = _data[\"zip\"];\r\n this.city = _data[\"city\"];\r\n this.country = _data[\"country\"];\r\n if (Array.isArray(_data[\"roles\"])) {\r\n this.roles = [] as any;\r\n for (let item of _data[\"roles\"])\r\n this.roles!.push(item);\r\n }\r\n this.enabled = _data[\"enabled\"];\r\n this.accessCode = _data[\"accessCode\"];\r\n this.accessCodeValidUntil = _data[\"accessCodeValidUntil\"] ? DateTime.fromISO(_data[\"accessCodeValidUntil\"].toString()) : undefined;\r\n this.accessCodeGeneratedOn = _data[\"accessCodeGeneratedOn\"] ? DateTime.fromISO(_data[\"accessCodeGeneratedOn\"].toString()) : undefined;\r\n this.accessCodeUsedOn = _data[\"accessCodeUsedOn\"] ? DateTime.fromISO(_data[\"accessCodeUsedOn\"].toString()) : undefined;\r\n this.permanentAccessCode = _data[\"permanentAccessCode\"];\r\n if (Array.isArray(_data[\"controlPlates\"])) {\r\n this.controlPlates = [] as any;\r\n for (let item of _data[\"controlPlates\"])\r\n this.controlPlates!.push(UserControlPlateDTO.fromJS(item));\r\n }\r\n if (Array.isArray(_data[\"linkedUsers\"])) {\r\n this.linkedUsers = [] as any;\r\n for (let item of _data[\"linkedUsers\"])\r\n this.linkedUsers!.push(LimitedUserInfoDTO.fromJS(item));\r\n }\r\n if (Array.isArray(_data[\"linkedParkers\"])) {\r\n this.linkedParkers = [] as any;\r\n for (let item of _data[\"linkedParkers\"])\r\n this.linkedParkers!.push(LinkedParkerDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UserInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UserInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"userId\"] = this.userId;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"client\"] = this.client ? this.client.toJSON() : undefined;\r\n data[\"companyId\"] = this.companyId;\r\n data[\"company\"] = this.company ? this.company.toJSON() : undefined;\r\n data[\"defaultCostCenterId\"] = this.defaultCostCenterId;\r\n data[\"employeeNumber\"] = this.employeeNumber;\r\n data[\"userName\"] = this.userName;\r\n data[\"password\"] = this.password;\r\n data[\"firstname\"] = this.firstname;\r\n data[\"lastname\"] = this.lastname;\r\n data[\"language\"] = this.language;\r\n data[\"email\"] = this.email;\r\n data[\"phoneNumber\"] = this.phoneNumber;\r\n data[\"address\"] = this.address;\r\n data[\"zip\"] = this.zip;\r\n data[\"city\"] = this.city;\r\n data[\"country\"] = this.country;\r\n if (Array.isArray(this.roles)) {\r\n data[\"roles\"] = [];\r\n for (let item of this.roles)\r\n data[\"roles\"].push(item);\r\n }\r\n data[\"enabled\"] = this.enabled;\r\n data[\"accessCode\"] = this.accessCode;\r\n data[\"accessCodeValidUntil\"] = this.accessCodeValidUntil ? this.accessCodeValidUntil.toString() : undefined;\r\n data[\"accessCodeGeneratedOn\"] = this.accessCodeGeneratedOn ? this.accessCodeGeneratedOn.toString() : undefined;\r\n data[\"accessCodeUsedOn\"] = this.accessCodeUsedOn ? this.accessCodeUsedOn.toString() : undefined;\r\n data[\"permanentAccessCode\"] = this.permanentAccessCode;\r\n if (Array.isArray(this.controlPlates)) {\r\n data[\"controlPlates\"] = [];\r\n for (let item of this.controlPlates)\r\n data[\"controlPlates\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.linkedUsers)) {\r\n data[\"linkedUsers\"] = [];\r\n for (let item of this.linkedUsers)\r\n data[\"linkedUsers\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.linkedParkers)) {\r\n data[\"linkedParkers\"] = [];\r\n for (let item of this.linkedParkers)\r\n data[\"linkedParkers\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUserInfoDTO {\r\n userId?: string | undefined;\r\n clientId?: number | undefined;\r\n client?: ClientDTO | undefined;\r\n companyId?: number | undefined;\r\n company?: ParkerCompanyDTO | undefined;\r\n defaultCostCenterId?: number | undefined;\r\n employeeNumber?: string | undefined;\r\n userName?: string | undefined;\r\n password?: string | undefined;\r\n firstname?: string | undefined;\r\n lastname?: string | undefined;\r\n language?: string | undefined;\r\n email?: string | undefined;\r\n phoneNumber?: string | undefined;\r\n address?: string | undefined;\r\n zip?: string | undefined;\r\n city?: string | undefined;\r\n country?: string | undefined;\r\n roles?: Role[] | undefined;\r\n enabled: boolean;\r\n accessCode?: string | undefined;\r\n accessCodeValidUntil?: DateTime | undefined;\r\n accessCodeGeneratedOn?: DateTime | undefined;\r\n accessCodeUsedOn?: DateTime | undefined;\r\n permanentAccessCode: boolean;\r\n controlPlates?: UserControlPlateDTO[] | undefined;\r\n linkedUsers?: LimitedUserInfoDTO[] | undefined;\r\n linkedParkers?: LinkedParkerDTO[] | undefined;\r\n}\r\n\r\nexport class UserControlPlateDTO implements IUserControlPlateDTO {\r\n id!: number;\r\n controlPlateNumber?: string | undefined;\r\n countryCode?: string | undefined;\r\n controlPlateType!: ControlPlateType;\r\n title?: string | undefined;\r\n isFavorite!: boolean;\r\n enableAutomaticPlateRecognitionParking!: boolean;\r\n automaticParkingPaymentAlias?: PaymentAliasDTO | undefined;\r\n\r\n constructor(data?: IUserControlPlateDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.controlPlateNumber = _data[\"controlPlateNumber\"];\r\n this.countryCode = _data[\"countryCode\"];\r\n this.controlPlateType = _data[\"controlPlateType\"];\r\n this.title = _data[\"title\"];\r\n this.isFavorite = _data[\"isFavorite\"];\r\n this.enableAutomaticPlateRecognitionParking = _data[\"enableAutomaticPlateRecognitionParking\"];\r\n this.automaticParkingPaymentAlias = _data[\"automaticParkingPaymentAlias\"] ? PaymentAliasDTO.fromJS(_data[\"automaticParkingPaymentAlias\"]) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UserControlPlateDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UserControlPlateDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"controlPlateNumber\"] = this.controlPlateNumber;\r\n data[\"countryCode\"] = this.countryCode;\r\n data[\"controlPlateType\"] = this.controlPlateType;\r\n data[\"title\"] = this.title;\r\n data[\"isFavorite\"] = this.isFavorite;\r\n data[\"enableAutomaticPlateRecognitionParking\"] = this.enableAutomaticPlateRecognitionParking;\r\n data[\"automaticParkingPaymentAlias\"] = this.automaticParkingPaymentAlias ? this.automaticParkingPaymentAlias.toJSON() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUserControlPlateDTO {\r\n id: number;\r\n controlPlateNumber?: string | undefined;\r\n countryCode?: string | undefined;\r\n controlPlateType: ControlPlateType;\r\n title?: string | undefined;\r\n isFavorite: boolean;\r\n enableAutomaticPlateRecognitionParking: boolean;\r\n automaticParkingPaymentAlias?: PaymentAliasDTO | undefined;\r\n}\r\n\r\nexport class LinkedParkerDTO implements ILinkedParkerDTO {\r\n parkerId!: number;\r\n firstName?: string | undefined;\r\n lastName?: string | undefined;\r\n company?: ParkerCompanyDTO | undefined;\r\n tags?: ParkerTagDTO[] | undefined;\r\n client?: ClientLimitedDTO | undefined;\r\n isClientManaged!: boolean;\r\n hasParkerPayedVisitorSubscriptions!: boolean;\r\n\r\n constructor(data?: ILinkedParkerDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.parkerId = _data[\"parkerId\"];\r\n this.firstName = _data[\"firstName\"];\r\n this.lastName = _data[\"lastName\"];\r\n this.company = _data[\"company\"] ? ParkerCompanyDTO.fromJS(_data[\"company\"]) : undefined;\r\n if (Array.isArray(_data[\"tags\"])) {\r\n this.tags = [] as any;\r\n for (let item of _data[\"tags\"])\r\n this.tags!.push(ParkerTagDTO.fromJS(item));\r\n }\r\n this.client = _data[\"client\"] ? ClientLimitedDTO.fromJS(_data[\"client\"]) : undefined;\r\n this.isClientManaged = _data[\"isClientManaged\"];\r\n this.hasParkerPayedVisitorSubscriptions = _data[\"hasParkerPayedVisitorSubscriptions\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): LinkedParkerDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LinkedParkerDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"parkerId\"] = this.parkerId;\r\n data[\"firstName\"] = this.firstName;\r\n data[\"lastName\"] = this.lastName;\r\n data[\"company\"] = this.company ? this.company.toJSON() : undefined;\r\n if (Array.isArray(this.tags)) {\r\n data[\"tags\"] = [];\r\n for (let item of this.tags)\r\n data[\"tags\"].push(item.toJSON());\r\n }\r\n data[\"client\"] = this.client ? this.client.toJSON() : undefined;\r\n data[\"isClientManaged\"] = this.isClientManaged;\r\n data[\"hasParkerPayedVisitorSubscriptions\"] = this.hasParkerPayedVisitorSubscriptions;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILinkedParkerDTO {\r\n parkerId: number;\r\n firstName?: string | undefined;\r\n lastName?: string | undefined;\r\n company?: ParkerCompanyDTO | undefined;\r\n tags?: ParkerTagDTO[] | undefined;\r\n client?: ClientLimitedDTO | undefined;\r\n isClientManaged: boolean;\r\n hasParkerPayedVisitorSubscriptions: boolean;\r\n}\r\n\r\nexport class RegisterUserResultDTO implements IRegisterUserResultDTO {\r\n statusCode!: RegisterUserResultStatusCode;\r\n errorText?: string | undefined;\r\n\r\n constructor(data?: IRegisterUserResultDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.statusCode = _data[\"statusCode\"];\r\n this.errorText = _data[\"errorText\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): RegisterUserResultDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RegisterUserResultDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"statusCode\"] = this.statusCode;\r\n data[\"errorText\"] = this.errorText;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRegisterUserResultDTO {\r\n statusCode: RegisterUserResultStatusCode;\r\n errorText?: string | undefined;\r\n}\r\n\r\nexport enum RegisterUserResultStatusCode {\r\n Success = 0,\r\n InvalidUserData = 1,\r\n EmailAlreadyExists = 2,\r\n UserCreationFailed = 3,\r\n EmailCouldNotBeSent = 4,\r\n}\r\n\r\nexport class CreateUserDTO implements ICreateUserDTO {\r\n clientId?: number | undefined;\r\n companyId?: number | undefined;\r\n email!: string;\r\n employeeNumber?: string | undefined;\r\n firstname!: string;\r\n lastname!: string;\r\n language?: string | undefined;\r\n phoneNumber?: string | undefined;\r\n password?: string | undefined;\r\n address?: string | undefined;\r\n zip?: string | undefined;\r\n city?: string | undefined;\r\n country?: string | undefined;\r\n roles?: Role[] | undefined;\r\n\r\n constructor(data?: ICreateUserDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.companyId = _data[\"companyId\"];\r\n this.email = _data[\"email\"];\r\n this.employeeNumber = _data[\"employeeNumber\"];\r\n this.firstname = _data[\"firstname\"];\r\n this.lastname = _data[\"lastname\"];\r\n this.language = _data[\"language\"];\r\n this.phoneNumber = _data[\"phoneNumber\"];\r\n this.password = _data[\"password\"];\r\n this.address = _data[\"address\"];\r\n this.zip = _data[\"zip\"];\r\n this.city = _data[\"city\"];\r\n this.country = _data[\"country\"];\r\n if (Array.isArray(_data[\"roles\"])) {\r\n this.roles = [] as any;\r\n for (let item of _data[\"roles\"])\r\n this.roles!.push(item);\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateUserDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateUserDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"companyId\"] = this.companyId;\r\n data[\"email\"] = this.email;\r\n data[\"employeeNumber\"] = this.employeeNumber;\r\n data[\"firstname\"] = this.firstname;\r\n data[\"lastname\"] = this.lastname;\r\n data[\"language\"] = this.language;\r\n data[\"phoneNumber\"] = this.phoneNumber;\r\n data[\"password\"] = this.password;\r\n data[\"address\"] = this.address;\r\n data[\"zip\"] = this.zip;\r\n data[\"city\"] = this.city;\r\n data[\"country\"] = this.country;\r\n if (Array.isArray(this.roles)) {\r\n data[\"roles\"] = [];\r\n for (let item of this.roles)\r\n data[\"roles\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateUserDTO {\r\n clientId?: number | undefined;\r\n companyId?: number | undefined;\r\n email: string;\r\n employeeNumber?: string | undefined;\r\n firstname: string;\r\n lastname: string;\r\n language?: string | undefined;\r\n phoneNumber?: string | undefined;\r\n password?: string | undefined;\r\n address?: string | undefined;\r\n zip?: string | undefined;\r\n city?: string | undefined;\r\n country?: string | undefined;\r\n roles?: Role[] | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfUserInfoDTO implements IPagedResultDTOOfUserInfoDTO {\r\n items?: UserInfoDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfUserInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(UserInfoDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfUserInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfUserInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfUserInfoDTO {\r\n items?: UserInfoDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class UpdateUserInfoDTO implements IUpdateUserInfoDTO {\r\n userId!: string;\r\n clientId?: number | undefined;\r\n companyId?: number | undefined;\r\n defaultCostCenterId?: number | undefined;\r\n email?: string | undefined;\r\n employeeNumber?: string | undefined;\r\n enabled?: boolean | undefined;\r\n firstname?: string | undefined;\r\n lastname?: string | undefined;\r\n language?: string | undefined;\r\n phoneNumber?: string | undefined;\r\n userName?: string | undefined;\r\n address?: string | undefined;\r\n zip?: string | undefined;\r\n city?: string | undefined;\r\n country?: string | undefined;\r\n roles?: Role[] | undefined;\r\n accessCodeValidUntil?: DateTime | undefined;\r\n\r\n constructor(data?: IUpdateUserInfoDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.userId = _data[\"userId\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.companyId = _data[\"companyId\"];\r\n this.defaultCostCenterId = _data[\"defaultCostCenterId\"];\r\n this.email = _data[\"email\"];\r\n this.employeeNumber = _data[\"employeeNumber\"];\r\n this.enabled = _data[\"enabled\"];\r\n this.firstname = _data[\"firstname\"];\r\n this.lastname = _data[\"lastname\"];\r\n this.language = _data[\"language\"];\r\n this.phoneNumber = _data[\"phoneNumber\"];\r\n this.userName = _data[\"userName\"];\r\n this.address = _data[\"address\"];\r\n this.zip = _data[\"zip\"];\r\n this.city = _data[\"city\"];\r\n this.country = _data[\"country\"];\r\n if (Array.isArray(_data[\"roles\"])) {\r\n this.roles = [] as any;\r\n for (let item of _data[\"roles\"])\r\n this.roles!.push(item);\r\n }\r\n this.accessCodeValidUntil = _data[\"accessCodeValidUntil\"] ? DateTime.fromISO(_data[\"accessCodeValidUntil\"].toString()) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateUserInfoDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateUserInfoDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"userId\"] = this.userId;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"companyId\"] = this.companyId;\r\n data[\"defaultCostCenterId\"] = this.defaultCostCenterId;\r\n data[\"email\"] = this.email;\r\n data[\"employeeNumber\"] = this.employeeNumber;\r\n data[\"enabled\"] = this.enabled;\r\n data[\"firstname\"] = this.firstname;\r\n data[\"lastname\"] = this.lastname;\r\n data[\"language\"] = this.language;\r\n data[\"phoneNumber\"] = this.phoneNumber;\r\n data[\"userName\"] = this.userName;\r\n data[\"address\"] = this.address;\r\n data[\"zip\"] = this.zip;\r\n data[\"city\"] = this.city;\r\n data[\"country\"] = this.country;\r\n if (Array.isArray(this.roles)) {\r\n data[\"roles\"] = [];\r\n for (let item of this.roles)\r\n data[\"roles\"].push(item);\r\n }\r\n data[\"accessCodeValidUntil\"] = this.accessCodeValidUntil ? this.accessCodeValidUntil.toString() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateUserInfoDTO {\r\n userId: string;\r\n clientId?: number | undefined;\r\n companyId?: number | undefined;\r\n defaultCostCenterId?: number | undefined;\r\n email?: string | undefined;\r\n employeeNumber?: string | undefined;\r\n enabled?: boolean | undefined;\r\n firstname?: string | undefined;\r\n lastname?: string | undefined;\r\n language?: string | undefined;\r\n phoneNumber?: string | undefined;\r\n userName?: string | undefined;\r\n address?: string | undefined;\r\n zip?: string | undefined;\r\n city?: string | undefined;\r\n country?: string | undefined;\r\n roles?: Role[] | undefined;\r\n accessCodeValidUntil?: DateTime | undefined;\r\n}\r\n\r\nexport class CreateMobileUserDTO implements ICreateMobileUserDTO {\r\n clientId!: number;\r\n email!: string;\r\n employeeNumber?: string | undefined;\r\n firstname!: string;\r\n lastname!: string;\r\n language?: string | undefined;\r\n phoneNumber?: string | undefined;\r\n\r\n constructor(data?: ICreateMobileUserDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.email = _data[\"email\"];\r\n this.employeeNumber = _data[\"employeeNumber\"];\r\n this.firstname = _data[\"firstname\"];\r\n this.lastname = _data[\"lastname\"];\r\n this.language = _data[\"language\"];\r\n this.phoneNumber = _data[\"phoneNumber\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateMobileUserDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateMobileUserDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"email\"] = this.email;\r\n data[\"employeeNumber\"] = this.employeeNumber;\r\n data[\"firstname\"] = this.firstname;\r\n data[\"lastname\"] = this.lastname;\r\n data[\"language\"] = this.language;\r\n data[\"phoneNumber\"] = this.phoneNumber;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateMobileUserDTO {\r\n clientId: number;\r\n email: string;\r\n employeeNumber?: string | undefined;\r\n firstname: string;\r\n lastname: string;\r\n language?: string | undefined;\r\n phoneNumber?: string | undefined;\r\n}\r\n\r\nexport class CreateProxyUserDTO implements ICreateProxyUserDTO {\r\n clientId!: number;\r\n firstname!: string;\r\n userName!: string;\r\n password!: string;\r\n\r\n constructor(data?: ICreateProxyUserDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.firstname = _data[\"firstname\"];\r\n this.userName = _data[\"userName\"];\r\n this.password = _data[\"password\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateProxyUserDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateProxyUserDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"firstname\"] = this.firstname;\r\n data[\"userName\"] = this.userName;\r\n data[\"password\"] = this.password;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateProxyUserDTO {\r\n clientId: number;\r\n firstname: string;\r\n userName: string;\r\n password: string;\r\n}\r\n\r\nexport class UpdateProxyUserDTO implements IUpdateProxyUserDTO {\r\n userId!: string;\r\n password?: string | undefined;\r\n enabled?: boolean | undefined;\r\n\r\n constructor(data?: IUpdateProxyUserDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.userId = _data[\"userId\"];\r\n this.password = _data[\"password\"];\r\n this.enabled = _data[\"enabled\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateProxyUserDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateProxyUserDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"userId\"] = this.userId;\r\n data[\"password\"] = this.password;\r\n data[\"enabled\"] = this.enabled;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateProxyUserDTO {\r\n userId: string;\r\n password?: string | undefined;\r\n enabled?: boolean | undefined;\r\n}\r\n\r\nexport class CreateThirdPartyUserDTO implements ICreateThirdPartyUserDTO {\r\n clientId!: number;\r\n userName!: string;\r\n password!: string;\r\n\r\n constructor(data?: ICreateThirdPartyUserDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.userName = _data[\"userName\"];\r\n this.password = _data[\"password\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateThirdPartyUserDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateThirdPartyUserDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"userName\"] = this.userName;\r\n data[\"password\"] = this.password;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateThirdPartyUserDTO {\r\n clientId: number;\r\n userName: string;\r\n password: string;\r\n}\r\n\r\nexport class UpdateThirdPartyUserDTO implements IUpdateThirdPartyUserDTO {\r\n userId!: string;\r\n password?: string | undefined;\r\n enabled?: boolean | undefined;\r\n\r\n constructor(data?: IUpdateThirdPartyUserDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.userId = _data[\"userId\"];\r\n this.password = _data[\"password\"];\r\n this.enabled = _data[\"enabled\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateThirdPartyUserDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateThirdPartyUserDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"userId\"] = this.userId;\r\n data[\"password\"] = this.password;\r\n data[\"enabled\"] = this.enabled;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateThirdPartyUserDTO {\r\n userId: string;\r\n password?: string | undefined;\r\n enabled?: boolean | undefined;\r\n}\r\n\r\nexport class ChangePasswordDTO implements IChangePasswordDTO {\r\n oldPassword!: string;\r\n newPassword!: string;\r\n\r\n constructor(data?: IChangePasswordDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.oldPassword = _data[\"oldPassword\"];\r\n this.newPassword = _data[\"newPassword\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ChangePasswordDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ChangePasswordDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"oldPassword\"] = this.oldPassword;\r\n data[\"newPassword\"] = this.newPassword;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IChangePasswordDTO {\r\n oldPassword: string;\r\n newPassword: string;\r\n}\r\n\r\nexport class SetPasswordDTO implements ISetPasswordDTO {\r\n newPassword!: string;\r\n verificationToken!: string;\r\n userId!: string;\r\n forgotPasswordProcess?: boolean | undefined;\r\n\r\n constructor(data?: ISetPasswordDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.newPassword = _data[\"newPassword\"];\r\n this.verificationToken = _data[\"verificationToken\"];\r\n this.userId = _data[\"userId\"];\r\n this.forgotPasswordProcess = _data[\"forgotPasswordProcess\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetPasswordDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetPasswordDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"newPassword\"] = this.newPassword;\r\n data[\"verificationToken\"] = this.verificationToken;\r\n data[\"userId\"] = this.userId;\r\n data[\"forgotPasswordProcess\"] = this.forgotPasswordProcess;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetPasswordDTO {\r\n newPassword: string;\r\n verificationToken: string;\r\n userId: string;\r\n forgotPasswordProcess?: boolean | undefined;\r\n}\r\n\r\nexport class ForgotPasswordDTO implements IForgotPasswordDTO {\r\n username!: string;\r\n\r\n constructor(data?: IForgotPasswordDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.username = _data[\"username\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ForgotPasswordDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ForgotPasswordDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"username\"] = this.username;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IForgotPasswordDTO {\r\n username: string;\r\n}\r\n\r\nexport class UserDeletionResultDTO implements IUserDeletionResultDTO {\r\n userDeletionCode!: UserDeletionCode;\r\n\r\n constructor(data?: IUserDeletionResultDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.userDeletionCode = _data[\"userDeletionCode\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UserDeletionResultDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UserDeletionResultDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"userDeletionCode\"] = this.userDeletionCode;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUserDeletionResultDTO {\r\n userDeletionCode: UserDeletionCode;\r\n}\r\n\r\nexport enum UserDeletionCode {\r\n Deleted = 0,\r\n DeletionRejectedCauseNonUserRole = 1,\r\n DeletionRejectedCauseUserLocked = 2,\r\n DeletionRejectedCauseUserHasOpenSessions = 3,\r\n}\r\n\r\nexport class UpdateControlPlatesDTO implements IUpdateControlPlatesDTO {\r\n controlPlates?: UserControlPlateDTO[] | undefined;\r\n\r\n constructor(data?: IUpdateControlPlatesDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"controlPlates\"])) {\r\n this.controlPlates = [] as any;\r\n for (let item of _data[\"controlPlates\"])\r\n this.controlPlates!.push(UserControlPlateDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateControlPlatesDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateControlPlatesDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.controlPlates)) {\r\n data[\"controlPlates\"] = [];\r\n for (let item of this.controlPlates)\r\n data[\"controlPlates\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateControlPlatesDTO {\r\n controlPlates?: UserControlPlateDTO[] | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfUserExtractReportDTO implements IPagedResultDTOOfUserExtractReportDTO {\r\n items?: UserExtractReportDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfUserExtractReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(UserExtractReportDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfUserExtractReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfUserExtractReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfUserExtractReportDTO {\r\n items?: UserExtractReportDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class UserExtractReportDTO implements IUserExtractReportDTO {\r\n entryDate!: DateTime;\r\n exitDate!: DateTime;\r\n durationInMinutes!: number;\r\n zoneName?: string | undefined;\r\n clientName?: string | undefined;\r\n parkingPrice!: number;\r\n totalPrice!: number;\r\n detailedPriceInformation?: ParkingPriceDetailsDTO | undefined;\r\n currency!: Currency;\r\n sessionOpeningEventType!: SessionEventType;\r\n\r\n constructor(data?: IUserExtractReportDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.entryDate = _data[\"entryDate\"] ? DateTime.fromISO(_data[\"entryDate\"].toString()) : undefined;\r\n this.exitDate = _data[\"exitDate\"] ? DateTime.fromISO(_data[\"exitDate\"].toString()) : undefined;\r\n this.durationInMinutes = _data[\"durationInMinutes\"];\r\n this.zoneName = _data[\"zoneName\"];\r\n this.clientName = _data[\"clientName\"];\r\n this.parkingPrice = _data[\"parkingPrice\"];\r\n this.totalPrice = _data[\"totalPrice\"];\r\n this.detailedPriceInformation = _data[\"detailedPriceInformation\"] ? ParkingPriceDetailsDTO.fromJS(_data[\"detailedPriceInformation\"]) : undefined;\r\n this.currency = _data[\"currency\"];\r\n this.sessionOpeningEventType = _data[\"sessionOpeningEventType\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UserExtractReportDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UserExtractReportDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"entryDate\"] = this.entryDate ? this.entryDate.toString() : undefined;\r\n data[\"exitDate\"] = this.exitDate ? this.exitDate.toString() : undefined;\r\n data[\"durationInMinutes\"] = this.durationInMinutes;\r\n data[\"zoneName\"] = this.zoneName;\r\n data[\"clientName\"] = this.clientName;\r\n data[\"parkingPrice\"] = this.parkingPrice;\r\n data[\"totalPrice\"] = this.totalPrice;\r\n data[\"detailedPriceInformation\"] = this.detailedPriceInformation ? this.detailedPriceInformation.toJSON() : undefined;\r\n data[\"currency\"] = this.currency;\r\n data[\"sessionOpeningEventType\"] = this.sessionOpeningEventType;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUserExtractReportDTO {\r\n entryDate: DateTime;\r\n exitDate: DateTime;\r\n durationInMinutes: number;\r\n zoneName?: string | undefined;\r\n clientName?: string | undefined;\r\n parkingPrice: number;\r\n totalPrice: number;\r\n detailedPriceInformation?: ParkingPriceDetailsDTO | undefined;\r\n currency: Currency;\r\n sessionOpeningEventType: SessionEventType;\r\n}\r\n\r\nexport class UserExtractReportSummaryDTO implements IUserExtractReportSummaryDTO {\r\n totalAmounts!: AmountWithCurrencyDTO[];\r\n totalNumberOfParkings!: number;\r\n\r\n constructor(data?: IUserExtractReportSummaryDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.totalAmounts = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"totalAmounts\"])) {\r\n this.totalAmounts = [] as any;\r\n for (let item of _data[\"totalAmounts\"])\r\n this.totalAmounts!.push(AmountWithCurrencyDTO.fromJS(item));\r\n }\r\n this.totalNumberOfParkings = _data[\"totalNumberOfParkings\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UserExtractReportSummaryDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UserExtractReportSummaryDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.totalAmounts)) {\r\n data[\"totalAmounts\"] = [];\r\n for (let item of this.totalAmounts)\r\n data[\"totalAmounts\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfParkings\"] = this.totalNumberOfParkings;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUserExtractReportSummaryDTO {\r\n totalAmounts: AmountWithCurrencyDTO[];\r\n totalNumberOfParkings: number;\r\n}\r\n\r\nexport class CreateZoneDTO implements ICreateZoneDTO {\r\n parentZoneId?: number | undefined;\r\n clientId!: number;\r\n name!: string;\r\n isGroupingElement!: boolean;\r\n separateNFCCode!: boolean;\r\n nfcCode?: string | undefined;\r\n enableGPSDetection!: boolean;\r\n zoneGPSArea?: string | undefined;\r\n maxPassageTime!: number;\r\n parkingSpaceNumberDefinition?: string | undefined;\r\n parkingSpaceCapacity?: number | undefined;\r\n currentParkerCount!: number;\r\n useBlacklistArea!: boolean;\r\n blacklistGPSArea?: string | undefined;\r\n\r\n constructor(data?: ICreateZoneDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.parentZoneId = _data[\"parentZoneId\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.name = _data[\"name\"];\r\n this.isGroupingElement = _data[\"isGroupingElement\"];\r\n this.separateNFCCode = _data[\"separateNFCCode\"];\r\n this.nfcCode = _data[\"nfcCode\"];\r\n this.enableGPSDetection = _data[\"enableGPSDetection\"];\r\n this.zoneGPSArea = _data[\"zoneGPSArea\"];\r\n this.maxPassageTime = _data[\"maxPassageTime\"];\r\n this.parkingSpaceNumberDefinition = _data[\"parkingSpaceNumberDefinition\"];\r\n this.parkingSpaceCapacity = _data[\"parkingSpaceCapacity\"];\r\n this.currentParkerCount = _data[\"currentParkerCount\"];\r\n this.useBlacklistArea = _data[\"useBlacklistArea\"];\r\n this.blacklistGPSArea = _data[\"blacklistGPSArea\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateZoneDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateZoneDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"parentZoneId\"] = this.parentZoneId;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"name\"] = this.name;\r\n data[\"isGroupingElement\"] = this.isGroupingElement;\r\n data[\"separateNFCCode\"] = this.separateNFCCode;\r\n data[\"nfcCode\"] = this.nfcCode;\r\n data[\"enableGPSDetection\"] = this.enableGPSDetection;\r\n data[\"zoneGPSArea\"] = this.zoneGPSArea;\r\n data[\"maxPassageTime\"] = this.maxPassageTime;\r\n data[\"parkingSpaceNumberDefinition\"] = this.parkingSpaceNumberDefinition;\r\n data[\"parkingSpaceCapacity\"] = this.parkingSpaceCapacity;\r\n data[\"currentParkerCount\"] = this.currentParkerCount;\r\n data[\"useBlacklistArea\"] = this.useBlacklistArea;\r\n data[\"blacklistGPSArea\"] = this.blacklistGPSArea;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateZoneDTO {\r\n parentZoneId?: number | undefined;\r\n clientId: number;\r\n name: string;\r\n isGroupingElement: boolean;\r\n separateNFCCode: boolean;\r\n nfcCode?: string | undefined;\r\n enableGPSDetection: boolean;\r\n zoneGPSArea?: string | undefined;\r\n maxPassageTime: number;\r\n parkingSpaceNumberDefinition?: string | undefined;\r\n parkingSpaceCapacity?: number | undefined;\r\n currentParkerCount: number;\r\n useBlacklistArea: boolean;\r\n blacklistGPSArea?: string | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfZoneDTO implements IPagedResultDTOOfZoneDTO {\r\n items?: ZoneDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfZoneDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(ZoneDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfZoneDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfZoneDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfZoneDTO {\r\n items?: ZoneDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class UpdateZoneDTO implements IUpdateZoneDTO {\r\n id!: number;\r\n name?: string | undefined;\r\n isGroupingElement?: boolean | undefined;\r\n separateNFCCode?: boolean | undefined;\r\n nfcCode?: string | undefined;\r\n enableGPSDetection?: boolean | undefined;\r\n zoneGPSArea?: string | undefined;\r\n foreignParkersAllowed?: boolean | undefined;\r\n foreignParkingSubscriptionId?: number | undefined;\r\n maxPassageTime?: number | undefined;\r\n parkingSpaceNumberDefinition?: string | undefined;\r\n parkingSpaceCapacity?: number | undefined;\r\n useBlacklistArea!: boolean;\r\n blacklistGPSArea?: string | undefined;\r\n\r\n constructor(data?: IUpdateZoneDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.name = _data[\"name\"];\r\n this.isGroupingElement = _data[\"isGroupingElement\"];\r\n this.separateNFCCode = _data[\"separateNFCCode\"];\r\n this.nfcCode = _data[\"nfcCode\"];\r\n this.enableGPSDetection = _data[\"enableGPSDetection\"];\r\n this.zoneGPSArea = _data[\"zoneGPSArea\"];\r\n this.foreignParkersAllowed = _data[\"foreignParkersAllowed\"];\r\n this.foreignParkingSubscriptionId = _data[\"foreignParkingSubscriptionId\"];\r\n this.maxPassageTime = _data[\"maxPassageTime\"];\r\n this.parkingSpaceNumberDefinition = _data[\"parkingSpaceNumberDefinition\"];\r\n this.parkingSpaceCapacity = _data[\"parkingSpaceCapacity\"];\r\n this.useBlacklistArea = _data[\"useBlacklistArea\"];\r\n this.blacklistGPSArea = _data[\"blacklistGPSArea\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateZoneDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateZoneDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"name\"] = this.name;\r\n data[\"isGroupingElement\"] = this.isGroupingElement;\r\n data[\"separateNFCCode\"] = this.separateNFCCode;\r\n data[\"nfcCode\"] = this.nfcCode;\r\n data[\"enableGPSDetection\"] = this.enableGPSDetection;\r\n data[\"zoneGPSArea\"] = this.zoneGPSArea;\r\n data[\"foreignParkersAllowed\"] = this.foreignParkersAllowed;\r\n data[\"foreignParkingSubscriptionId\"] = this.foreignParkingSubscriptionId;\r\n data[\"maxPassageTime\"] = this.maxPassageTime;\r\n data[\"parkingSpaceNumberDefinition\"] = this.parkingSpaceNumberDefinition;\r\n data[\"parkingSpaceCapacity\"] = this.parkingSpaceCapacity;\r\n data[\"useBlacklistArea\"] = this.useBlacklistArea;\r\n data[\"blacklistGPSArea\"] = this.blacklistGPSArea;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateZoneDTO {\r\n id: number;\r\n name?: string | undefined;\r\n isGroupingElement?: boolean | undefined;\r\n separateNFCCode?: boolean | undefined;\r\n nfcCode?: string | undefined;\r\n enableGPSDetection?: boolean | undefined;\r\n zoneGPSArea?: string | undefined;\r\n foreignParkersAllowed?: boolean | undefined;\r\n foreignParkingSubscriptionId?: number | undefined;\r\n maxPassageTime?: number | undefined;\r\n parkingSpaceNumberDefinition?: string | undefined;\r\n parkingSpaceCapacity?: number | undefined;\r\n useBlacklistArea: boolean;\r\n blacklistGPSArea?: string | undefined;\r\n}\r\n\r\nexport class ZoneForUserDTO implements IZoneForUserDTO {\r\n id!: number;\r\n name?: string | undefined;\r\n clientId!: number;\r\n enableGPSDetection!: boolean;\r\n zoneGPSArea?: string | undefined;\r\n parkingSpaceNumberDefinition?: string | undefined;\r\n foreignParkingSubscriptions!: ParkingSubscriptionLimitedWithTariffsDTO[];\r\n parkerSubscriptionAssignments!: ParkerSubscriptionAssignmentDTO[];\r\n\r\n constructor(data?: IZoneForUserDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.foreignParkingSubscriptions = [];\r\n this.parkerSubscriptionAssignments = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.name = _data[\"name\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.enableGPSDetection = _data[\"enableGPSDetection\"];\r\n this.zoneGPSArea = _data[\"zoneGPSArea\"];\r\n this.parkingSpaceNumberDefinition = _data[\"parkingSpaceNumberDefinition\"];\r\n if (Array.isArray(_data[\"foreignParkingSubscriptions\"])) {\r\n this.foreignParkingSubscriptions = [] as any;\r\n for (let item of _data[\"foreignParkingSubscriptions\"])\r\n this.foreignParkingSubscriptions!.push(ParkingSubscriptionLimitedWithTariffsDTO.fromJS(item));\r\n }\r\n if (Array.isArray(_data[\"parkerSubscriptionAssignments\"])) {\r\n this.parkerSubscriptionAssignments = [] as any;\r\n for (let item of _data[\"parkerSubscriptionAssignments\"])\r\n this.parkerSubscriptionAssignments!.push(ParkerSubscriptionAssignmentDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ZoneForUserDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneForUserDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"name\"] = this.name;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"enableGPSDetection\"] = this.enableGPSDetection;\r\n data[\"zoneGPSArea\"] = this.zoneGPSArea;\r\n data[\"parkingSpaceNumberDefinition\"] = this.parkingSpaceNumberDefinition;\r\n if (Array.isArray(this.foreignParkingSubscriptions)) {\r\n data[\"foreignParkingSubscriptions\"] = [];\r\n for (let item of this.foreignParkingSubscriptions)\r\n data[\"foreignParkingSubscriptions\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.parkerSubscriptionAssignments)) {\r\n data[\"parkerSubscriptionAssignments\"] = [];\r\n for (let item of this.parkerSubscriptionAssignments)\r\n data[\"parkerSubscriptionAssignments\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneForUserDTO {\r\n id: number;\r\n name?: string | undefined;\r\n clientId: number;\r\n enableGPSDetection: boolean;\r\n zoneGPSArea?: string | undefined;\r\n parkingSpaceNumberDefinition?: string | undefined;\r\n foreignParkingSubscriptions: ParkingSubscriptionLimitedWithTariffsDTO[];\r\n parkerSubscriptionAssignments: ParkerSubscriptionAssignmentDTO[];\r\n}\r\n\r\nexport class GetAllZonesForUserDataDTO implements IGetAllZonesForUserDataDTO {\r\n latMin!: number;\r\n latMax!: number;\r\n lonMin!: number;\r\n lonMax!: number;\r\n\r\n constructor(data?: IGetAllZonesForUserDataDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.latMin = _data[\"latMin\"];\r\n this.latMax = _data[\"latMax\"];\r\n this.lonMin = _data[\"lonMin\"];\r\n this.lonMax = _data[\"lonMax\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetAllZonesForUserDataDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAllZonesForUserDataDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"latMin\"] = this.latMin;\r\n data[\"latMax\"] = this.latMax;\r\n data[\"lonMin\"] = this.lonMin;\r\n data[\"lonMax\"] = this.lonMax;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetAllZonesForUserDataDTO {\r\n latMin: number;\r\n latMax: number;\r\n lonMin: number;\r\n lonMax: number;\r\n}\r\n\r\nexport class GeneratedQrCodesDTO implements IGeneratedQrCodesDTO {\r\n zipName?: string | undefined;\r\n contentBase64?: string | undefined;\r\n\r\n constructor(data?: IGeneratedQrCodesDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.zipName = _data[\"zipName\"];\r\n this.contentBase64 = _data[\"contentBase64\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): GeneratedQrCodesDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GeneratedQrCodesDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"zipName\"] = this.zipName;\r\n data[\"contentBase64\"] = this.contentBase64;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGeneratedQrCodesDTO {\r\n zipName?: string | undefined;\r\n contentBase64?: string | undefined;\r\n}\r\n\r\nexport class ZoneQrCodeInfosDTO implements IZoneQrCodeInfosDTO {\r\n zoneId!: number;\r\n isStickerMode!: boolean;\r\n parkingSpaceNumbers?: string | undefined;\r\n\r\n constructor(data?: IZoneQrCodeInfosDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.zoneId = _data[\"zoneId\"];\r\n this.isStickerMode = _data[\"isStickerMode\"];\r\n this.parkingSpaceNumbers = _data[\"parkingSpaceNumbers\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ZoneQrCodeInfosDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneQrCodeInfosDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"zoneId\"] = this.zoneId;\r\n data[\"isStickerMode\"] = this.isStickerMode;\r\n data[\"parkingSpaceNumbers\"] = this.parkingSpaceNumbers;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneQrCodeInfosDTO {\r\n zoneId: number;\r\n isStickerMode: boolean;\r\n parkingSpaceNumbers?: string | undefined;\r\n}\r\n\r\nexport class ZoneDamageDTO implements IZoneDamageDTO {\r\n id!: number;\r\n clientId!: number;\r\n deviceId!: number;\r\n device?: ZoneDeviceDTO | undefined;\r\n reportTime!: DateTime;\r\n damageDescription?: string | undefined;\r\n reportPositionLatitude!: number;\r\n reportPositionLongitude!: number;\r\n reporter?: DamageReporterDTO | undefined;\r\n state!: ZoneDamageState;\r\n mediaFiles?: string[] | undefined;\r\n zone?: ZoneDTO | undefined;\r\n\r\n constructor(data?: IZoneDamageDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.deviceId = _data[\"deviceId\"];\r\n this.device = _data[\"device\"] ? ZoneDeviceDTO.fromJS(_data[\"device\"]) : undefined;\r\n this.reportTime = _data[\"reportTime\"] ? DateTime.fromISO(_data[\"reportTime\"].toString()) : undefined;\r\n this.damageDescription = _data[\"damageDescription\"];\r\n this.reportPositionLatitude = _data[\"reportPositionLatitude\"];\r\n this.reportPositionLongitude = _data[\"reportPositionLongitude\"];\r\n this.reporter = _data[\"reporter\"] ? DamageReporterDTO.fromJS(_data[\"reporter\"]) : undefined;\r\n this.state = _data[\"state\"];\r\n if (Array.isArray(_data[\"mediaFiles\"])) {\r\n this.mediaFiles = [] as any;\r\n for (let item of _data[\"mediaFiles\"])\r\n this.mediaFiles!.push(item);\r\n }\r\n this.zone = _data[\"zone\"] ? ZoneDTO.fromJS(_data[\"zone\"]) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ZoneDamageDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDamageDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"deviceId\"] = this.deviceId;\r\n data[\"device\"] = this.device ? this.device.toJSON() : undefined;\r\n data[\"reportTime\"] = this.reportTime ? this.reportTime.toString() : undefined;\r\n data[\"damageDescription\"] = this.damageDescription;\r\n data[\"reportPositionLatitude\"] = this.reportPositionLatitude;\r\n data[\"reportPositionLongitude\"] = this.reportPositionLongitude;\r\n data[\"reporter\"] = this.reporter ? this.reporter.toJSON() : undefined;\r\n data[\"state\"] = this.state;\r\n if (Array.isArray(this.mediaFiles)) {\r\n data[\"mediaFiles\"] = [];\r\n for (let item of this.mediaFiles)\r\n data[\"mediaFiles\"].push(item);\r\n }\r\n data[\"zone\"] = this.zone ? this.zone.toJSON() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDamageDTO {\r\n id: number;\r\n clientId: number;\r\n deviceId: number;\r\n device?: ZoneDeviceDTO | undefined;\r\n reportTime: DateTime;\r\n damageDescription?: string | undefined;\r\n reportPositionLatitude: number;\r\n reportPositionLongitude: number;\r\n reporter?: DamageReporterDTO | undefined;\r\n state: ZoneDamageState;\r\n mediaFiles?: string[] | undefined;\r\n zone?: ZoneDTO | undefined;\r\n}\r\n\r\nexport class DamageReporterDTO implements IDamageReporterDTO {\r\n id?: string | undefined;\r\n firstname?: string | undefined;\r\n lastname?: string | undefined;\r\n phoneNumber?: string | undefined;\r\n\r\n constructor(data?: IDamageReporterDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.firstname = _data[\"firstname\"];\r\n this.lastname = _data[\"lastname\"];\r\n this.phoneNumber = _data[\"phoneNumber\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): DamageReporterDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DamageReporterDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"firstname\"] = this.firstname;\r\n data[\"lastname\"] = this.lastname;\r\n data[\"phoneNumber\"] = this.phoneNumber;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDamageReporterDTO {\r\n id?: string | undefined;\r\n firstname?: string | undefined;\r\n lastname?: string | undefined;\r\n phoneNumber?: string | undefined;\r\n}\r\n\r\nexport enum ZoneDamageState {\r\n New = 1,\r\n Acknowledged = 2,\r\n RepairInProgress = 4,\r\n Invalid = 8,\r\n Repaired = 16,\r\n}\r\n\r\nexport class CreateZoneDamageDTO implements ICreateZoneDamageDTO {\r\n clientId!: number;\r\n deviceId!: number;\r\n damageDescription?: string | undefined;\r\n reportPositionLatitude!: number;\r\n reportPositionLongitude!: number;\r\n\r\n constructor(data?: ICreateZoneDamageDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.deviceId = _data[\"deviceId\"];\r\n this.damageDescription = _data[\"damageDescription\"];\r\n this.reportPositionLatitude = _data[\"reportPositionLatitude\"];\r\n this.reportPositionLongitude = _data[\"reportPositionLongitude\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateZoneDamageDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateZoneDamageDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"deviceId\"] = this.deviceId;\r\n data[\"damageDescription\"] = this.damageDescription;\r\n data[\"reportPositionLatitude\"] = this.reportPositionLatitude;\r\n data[\"reportPositionLongitude\"] = this.reportPositionLongitude;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateZoneDamageDTO {\r\n clientId: number;\r\n deviceId: number;\r\n damageDescription?: string | undefined;\r\n reportPositionLatitude: number;\r\n reportPositionLongitude: number;\r\n}\r\n\r\nexport class PagedResultDTOOfZoneDamageDTO implements IPagedResultDTOOfZoneDamageDTO {\r\n items?: ZoneDamageDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfZoneDamageDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(ZoneDamageDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfZoneDamageDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfZoneDamageDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfZoneDamageDTO {\r\n items?: ZoneDamageDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class UpdateZoneDamageDTO implements IUpdateZoneDamageDTO {\r\n id!: number;\r\n clientId!: number;\r\n deviceId?: number | undefined;\r\n zoneId?: number | undefined;\r\n damageDescription?: string | undefined;\r\n reportPositionLatitude?: number | undefined;\r\n reportPositionLongitude?: number | undefined;\r\n state?: ZoneDamageState | undefined;\r\n\r\n constructor(data?: IUpdateZoneDamageDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.clientId = _data[\"clientId\"];\r\n this.deviceId = _data[\"deviceId\"];\r\n this.zoneId = _data[\"zoneId\"];\r\n this.damageDescription = _data[\"damageDescription\"];\r\n this.reportPositionLatitude = _data[\"reportPositionLatitude\"];\r\n this.reportPositionLongitude = _data[\"reportPositionLongitude\"];\r\n this.state = _data[\"state\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateZoneDamageDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateZoneDamageDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"clientId\"] = this.clientId;\r\n data[\"deviceId\"] = this.deviceId;\r\n data[\"zoneId\"] = this.zoneId;\r\n data[\"damageDescription\"] = this.damageDescription;\r\n data[\"reportPositionLatitude\"] = this.reportPositionLatitude;\r\n data[\"reportPositionLongitude\"] = this.reportPositionLongitude;\r\n data[\"state\"] = this.state;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateZoneDamageDTO {\r\n id: number;\r\n clientId: number;\r\n deviceId?: number | undefined;\r\n zoneId?: number | undefined;\r\n damageDescription?: string | undefined;\r\n reportPositionLatitude?: number | undefined;\r\n reportPositionLongitude?: number | undefined;\r\n state?: ZoneDamageState | undefined;\r\n}\r\n\r\nexport class AddZoneDamageImageDTO implements IAddZoneDamageImageDTO {\r\n damageId!: number;\r\n imageBase64?: string | undefined;\r\n\r\n constructor(data?: IAddZoneDamageImageDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.damageId = _data[\"damageId\"];\r\n this.imageBase64 = _data[\"imageBase64\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): AddZoneDamageImageDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AddZoneDamageImageDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"damageId\"] = this.damageId;\r\n data[\"imageBase64\"] = this.imageBase64;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAddZoneDamageImageDTO {\r\n damageId: number;\r\n imageBase64?: string | undefined;\r\n}\r\n\r\nexport class UpdateZoneDamageImageDTO implements IUpdateZoneDamageImageDTO {\r\n damageId!: number;\r\n mediaId?: string | undefined;\r\n imageBase64?: string | undefined;\r\n\r\n constructor(data?: IUpdateZoneDamageImageDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.damageId = _data[\"damageId\"];\r\n this.mediaId = _data[\"mediaId\"];\r\n this.imageBase64 = _data[\"imageBase64\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateZoneDamageImageDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateZoneDamageImageDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"damageId\"] = this.damageId;\r\n data[\"mediaId\"] = this.mediaId;\r\n data[\"imageBase64\"] = this.imageBase64;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateZoneDamageImageDTO {\r\n damageId: number;\r\n mediaId?: string | undefined;\r\n imageBase64?: string | undefined;\r\n}\r\n\r\nexport class DeleteZoneDamageImageDTO implements IDeleteZoneDamageImageDTO {\r\n damageId!: number;\r\n mediaId?: string | undefined;\r\n\r\n constructor(data?: IDeleteZoneDamageImageDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.damageId = _data[\"damageId\"];\r\n this.mediaId = _data[\"mediaId\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteZoneDamageImageDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteZoneDamageImageDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"damageId\"] = this.damageId;\r\n data[\"mediaId\"] = this.mediaId;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteZoneDamageImageDTO {\r\n damageId: number;\r\n mediaId?: string | undefined;\r\n}\r\n\r\nexport class CreateZoneDeviceDTO implements ICreateZoneDeviceDTO {\r\n clientId!: number;\r\n name!: string;\r\n zoneId!: number;\r\n description?: string | undefined;\r\n enabled!: boolean;\r\n groupControllerDeviceId?: number | undefined;\r\n coordinates?: string | undefined;\r\n deviceType!: ZoneDeviceType;\r\n brand!: ZoneDeviceBrand;\r\n direction!: ZoneDeviceDirection;\r\n proxyUserId?: string | undefined;\r\n parameters?: ZoneDeviceParameterDTO[] | undefined;\r\n\r\n constructor(data?: ICreateZoneDeviceDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clientId = _data[\"clientId\"];\r\n this.name = _data[\"name\"];\r\n this.zoneId = _data[\"zoneId\"];\r\n this.description = _data[\"description\"];\r\n this.enabled = _data[\"enabled\"];\r\n this.groupControllerDeviceId = _data[\"groupControllerDeviceId\"];\r\n this.coordinates = _data[\"coordinates\"];\r\n this.deviceType = _data[\"deviceType\"];\r\n this.brand = _data[\"brand\"];\r\n this.direction = _data[\"direction\"];\r\n this.proxyUserId = _data[\"proxyUserId\"];\r\n if (Array.isArray(_data[\"parameters\"])) {\r\n this.parameters = [] as any;\r\n for (let item of _data[\"parameters\"])\r\n this.parameters!.push(ZoneDeviceParameterDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateZoneDeviceDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateZoneDeviceDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clientId\"] = this.clientId;\r\n data[\"name\"] = this.name;\r\n data[\"zoneId\"] = this.zoneId;\r\n data[\"description\"] = this.description;\r\n data[\"enabled\"] = this.enabled;\r\n data[\"groupControllerDeviceId\"] = this.groupControllerDeviceId;\r\n data[\"coordinates\"] = this.coordinates;\r\n data[\"deviceType\"] = this.deviceType;\r\n data[\"brand\"] = this.brand;\r\n data[\"direction\"] = this.direction;\r\n data[\"proxyUserId\"] = this.proxyUserId;\r\n if (Array.isArray(this.parameters)) {\r\n data[\"parameters\"] = [];\r\n for (let item of this.parameters)\r\n data[\"parameters\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateZoneDeviceDTO {\r\n clientId: number;\r\n name: string;\r\n zoneId: number;\r\n description?: string | undefined;\r\n enabled: boolean;\r\n groupControllerDeviceId?: number | undefined;\r\n coordinates?: string | undefined;\r\n deviceType: ZoneDeviceType;\r\n brand: ZoneDeviceBrand;\r\n direction: ZoneDeviceDirection;\r\n proxyUserId?: string | undefined;\r\n parameters?: ZoneDeviceParameterDTO[] | undefined;\r\n}\r\n\r\nexport class UpdateZoneDeviceDTO implements IUpdateZoneDeviceDTO {\r\n id!: number;\r\n deviceType?: ZoneDeviceType | undefined;\r\n brand?: ZoneDeviceBrand | undefined;\r\n name?: string | undefined;\r\n description?: string | undefined;\r\n enabled?: boolean | undefined;\r\n groupControllerDeviceId?: number | undefined;\r\n coordinates?: string | undefined;\r\n state?: ZoneDeviceState | undefined;\r\n direction?: ZoneDeviceDirection | undefined;\r\n proxyUserId?: string | undefined;\r\n parameters?: ZoneDeviceParameterDTO[] | undefined;\r\n\r\n constructor(data?: IUpdateZoneDeviceDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"];\r\n this.deviceType = _data[\"deviceType\"];\r\n this.brand = _data[\"brand\"];\r\n this.name = _data[\"name\"];\r\n this.description = _data[\"description\"];\r\n this.enabled = _data[\"enabled\"];\r\n this.groupControllerDeviceId = _data[\"groupControllerDeviceId\"];\r\n this.coordinates = _data[\"coordinates\"];\r\n this.state = _data[\"state\"];\r\n this.direction = _data[\"direction\"];\r\n this.proxyUserId = _data[\"proxyUserId\"];\r\n if (Array.isArray(_data[\"parameters\"])) {\r\n this.parameters = [] as any;\r\n for (let item of _data[\"parameters\"])\r\n this.parameters!.push(ZoneDeviceParameterDTO.fromJS(item));\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateZoneDeviceDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateZoneDeviceDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id;\r\n data[\"deviceType\"] = this.deviceType;\r\n data[\"brand\"] = this.brand;\r\n data[\"name\"] = this.name;\r\n data[\"description\"] = this.description;\r\n data[\"enabled\"] = this.enabled;\r\n data[\"groupControllerDeviceId\"] = this.groupControllerDeviceId;\r\n data[\"coordinates\"] = this.coordinates;\r\n data[\"state\"] = this.state;\r\n data[\"direction\"] = this.direction;\r\n data[\"proxyUserId\"] = this.proxyUserId;\r\n if (Array.isArray(this.parameters)) {\r\n data[\"parameters\"] = [];\r\n for (let item of this.parameters)\r\n data[\"parameters\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateZoneDeviceDTO {\r\n id: number;\r\n deviceType?: ZoneDeviceType | undefined;\r\n brand?: ZoneDeviceBrand | undefined;\r\n name?: string | undefined;\r\n description?: string | undefined;\r\n enabled?: boolean | undefined;\r\n groupControllerDeviceId?: number | undefined;\r\n coordinates?: string | undefined;\r\n state?: ZoneDeviceState | undefined;\r\n direction?: ZoneDeviceDirection | undefined;\r\n proxyUserId?: string | undefined;\r\n parameters?: ZoneDeviceParameterDTO[] | undefined;\r\n}\r\n\r\nexport class PagedResultDTOOfZoneDeviceDTO implements IPagedResultDTOOfZoneDeviceDTO {\r\n items?: ZoneDeviceDTO[] | undefined;\r\n totalNumberOfItems!: number;\r\n\r\n constructor(data?: IPagedResultDTOOfZoneDeviceDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(ZoneDeviceDTO.fromJS(item));\r\n }\r\n this.totalNumberOfItems = _data[\"totalNumberOfItems\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): PagedResultDTOOfZoneDeviceDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PagedResultDTOOfZoneDeviceDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"totalNumberOfItems\"] = this.totalNumberOfItems;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagedResultDTOOfZoneDeviceDTO {\r\n items?: ZoneDeviceDTO[] | undefined;\r\n totalNumberOfItems: number;\r\n}\r\n\r\nexport class ZoneDeviceSpecificationDTO implements IZoneDeviceSpecificationDTO {\r\n deviceType!: ZoneDeviceType;\r\n brand!: ZoneDeviceBrand;\r\n execLocation!: ExecutionLocation;\r\n\r\n constructor(data?: IZoneDeviceSpecificationDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.deviceType = _data[\"deviceType\"];\r\n this.brand = _data[\"brand\"];\r\n this.execLocation = _data[\"execLocation\"];\r\n }\r\n }\r\n\r\n static fromJS(data: any): ZoneDeviceSpecificationDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ZoneDeviceSpecificationDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"deviceType\"] = this.deviceType;\r\n data[\"brand\"] = this.brand;\r\n data[\"execLocation\"] = this.execLocation;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IZoneDeviceSpecificationDTO {\r\n deviceType: ZoneDeviceType;\r\n brand: ZoneDeviceBrand;\r\n execLocation: ExecutionLocation;\r\n}\r\n\r\nexport enum ExecutionLocation {\r\n RunOnProxy = 0,\r\n RunInCloud = 1,\r\n}\r\n\r\nexport class ExecuteZoneDeviceCommandDTO implements IExecuteZoneDeviceCommandDTO {\r\n deviceId!: number;\r\n command?: ZoneDeviceCommandDTO | undefined;\r\n\r\n constructor(data?: IExecuteZoneDeviceCommandDTO) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.deviceId = _data[\"deviceId\"];\r\n this.command = _data[\"command\"] ? ZoneDeviceCommandDTO.fromJS(_data[\"command\"]) : undefined;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ExecuteZoneDeviceCommandDTO {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ExecuteZoneDeviceCommandDTO();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"deviceId\"] = this.deviceId;\r\n data[\"command\"] = this.command ? this.command.toJSON() : undefined;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IExecuteZoneDeviceCommandDTO {\r\n deviceId: number;\r\n command?: ZoneDeviceCommandDTO | undefined;\r\n}\r\n\r\nexport interface FileParameter {\r\n data: any;\r\n fileName: string;\r\n}\r\n\r\nexport interface FileResponse {\r\n data: Blob;\r\n status: number;\r\n fileName?: string;\r\n headers?: { [name: string]: any };\r\n}\r\n\r\nexport class ApiException extends Error {\r\n override message: string;\r\n status: number;\r\n response: string;\r\n headers: { [key: string]: any; };\r\n result: any;\r\n\r\n constructor(message: string, status: number, response: string, headers: { [key: string]: any; }, result: any) {\r\n super();\r\n\r\n this.message = message;\r\n this.status = status;\r\n this.response = response;\r\n this.headers = headers;\r\n this.result = result;\r\n }\r\n\r\n protected isApiException = true;\r\n\r\n static isApiException(obj: any): obj is ApiException {\r\n return obj.isApiException === true;\r\n }\r\n}\r\n\r\nfunction throwException(message: string, status: number, response: string, headers: { [key: string]: any; }, result?: any): Observable {\r\n if (result !== null && result !== undefined)\r\n return _observableThrow(result);\r\n else\r\n return _observableThrow(new ApiException(message, status, response, headers, null));\r\n}\r\n\r\nfunction blobToText(blob: any): Observable {\r\n return new Observable((observer: any) => {\r\n if (!blob) {\r\n observer.next(\"\");\r\n observer.complete();\r\n } else {\r\n let reader = new FileReader();\r\n reader.onload = event => {\r\n observer.next((event.target as any).result);\r\n observer.complete();\r\n };\r\n reader.readAsText(blob);\r\n }\r\n });\r\n}","import { Injectable, TemplateRef } from '@angular/core';\r\nimport { ApiException } from '../models/models.swagger.generated';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ToastService {\r\n public toasts: any[] = [];\r\n\r\n public show(header: string, textOrTpl: string | TemplateRef, placeholder: string = '', options: any = {}) {\r\n this.toasts.push({ header, textOrTpl, placeholder, ...options });\r\n }\r\n\r\n public showSuccess(header: string, textOrTpl: string | TemplateRef, placeholder: string = '') {\r\n this.show(header, textOrTpl, placeholder, { classname: 'e-toast-success text-light', delay: 10000, type: 'succcess' });\r\n }\r\n\r\n public showWarning(header: string, textOrTpl: string | TemplateRef, placeholder: string = '') {\r\n this.show(header, textOrTpl, placeholder, { classname: 'e-toast-warning text-light', delay: 15000, type: 'warning' });\r\n }\r\n\r\n public showError(header: string, textOrTpl: string | TemplateRef, placeholder: string = '', errorId?: number, errorDetail?: string) {\r\n this.show(header, textOrTpl, placeholder, { classname: 'e-toast-danger text-light', delay: 15000, type: 'error', errorId, errorDetail });\r\n }\r\n\r\n public showApiExeption(error: ApiException, title: string = 'i18n.errors.server-error.title', message: string = 'i18n.errors.server-error.message') {\r\n if(ApiException.isApiException(error)) {\r\n let detail;\r\n try{\r\n detail = JSON.parse(error.response).message;\r\n }catch(e){\r\n detail = error.response;\r\n }\r\n\r\n if(!detail){\r\n detail = error.response;\r\n }\r\n this.showError(title, message, null, null, detail);\r\n } else {\r\n this.showError(title, message);\r\n }\r\n }\r\n\r\n public remove(toast: any) {\r\n this.toasts = this.toasts.filter(t => t !== toast);\r\n }\r\n\r\n public doesErrorExistAlready(errorId: number) {\r\n if (!errorId) {\r\n return false;\r\n }\r\n return this.toasts.find(t => t.errorId === errorId) != null;\r\n }\r\n}\r\n","import { ToastService } from 'src/app/base/services/toast.service';\r\nimport { Component, ViewChild, TemplateRef, Input } from '@angular/core';\r\nimport { ToastComponent as SyncfusionToastComponent, ToastModule } from '@syncfusion/ej2-angular-notifications';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgIf, NgTemplateOutlet } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-toast',\r\n templateUrl: './toast.component.html',\r\n styleUrls: ['./toast.component.scss'],\r\n standalone: true,\r\n imports: [ToastModule, NgIf, NgTemplateOutlet, TranslateModule]\r\n})\r\nexport class ToastComponent {\r\n\r\n @Input() public toast: any;\r\n @Input() public index: number;\r\n @ViewChild(SyncfusionToastComponent) public toastElement: SyncfusionToastComponent;\r\n\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n public position = { X: 'Right', Y: 'Top' };\r\n\r\n constructor(public toastService: ToastService) { }\r\n\r\n public isTemplate(toast: any) {\r\n return toast.textOrTpl instanceof TemplateRef;\r\n }\r\n\r\n public onCreate(): void {\r\n this.toastElement.show({timeOut: this.toast.delay || 5000, cssClass: this.toast.classname});\r\n }\r\n\r\n public closeToast(event: any): void {\r\n event.clickToClose = true;\r\n }\r\n\r\n}\r\n","\r\n \r\n
    \r\n \r\n \r\n {{ toast.header | translate }}\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { Component } from '@angular/core';\r\nimport { ToastService } from '../services/toast.service';\r\nimport { ToastComponent } from './toast/toast.component';\r\nimport { NgFor } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-toasts',\r\n templateUrl: './toasts.component.html',\r\n styleUrls: ['./toasts.component.scss'],\r\n standalone: true,\r\n imports: [NgFor, ToastComponent],\r\n})\r\nexport class ToastsComponent {\r\n\r\n constructor(public toastService: ToastService) {}\r\n}\r\n","\r\n \r\n\r\n","import { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class SpinnerService {\r\n public get showSpinner() {\r\n return this.spinnerCounter > 0;\r\n }\r\n\r\n public set showSpinner(value: boolean) {\r\n if (value) {\r\n this.spinnerCounter++;\r\n } else {\r\n this.spinnerCounter--;\r\n if (this.spinnerCounter < 0) {\r\n this.spinnerCounter = 0;\r\n }\r\n }\r\n }\r\n\r\n private spinnerCounter = 0;\r\n\r\n // detour counter\r\n public reset() {\r\n this.spinnerCounter = 0;\r\n }\r\n\r\n}\r\n","import { SpinnerService } from './spinner.service';\r\nimport { Component } from '@angular/core';\r\nimport { NgIf } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-spinner',\r\n templateUrl: './spinner.component.html',\r\n styleUrls: ['./spinner.component.scss'],\r\n standalone: true,\r\n imports: [NgIf]\r\n})\r\nexport class SpinnerComponent {\r\n public get showSpinner() {\r\n return this.spinnerService.showSpinner;\r\n }\r\n constructor(private spinnerService: SpinnerService) { }\r\n}\r\n","
    \r\n
    \r\n
    Loading...
    \r\n
    \r\n
    \r\n","import * as i0 from '@angular/core';\nimport { Directive, ContentChildren, Component, ChangeDetectionStrategy, ContentChild, NgModule } from '@angular/core';\nimport { ComplexBase, setValue, ArrayBase, ComponentBase, ComponentMixins } from '@syncfusion/ej2-angular-base';\nimport { __decorate } from 'tslib';\nimport { DropDownButton, SplitButton, ProgressButton } from '@syncfusion/ej2-splitbuttons';\nconst _c0 = [\"ejs-dropdownbutton\", \"\"];\nconst _c1 = [\"*\"];\nconst _c2 = [\"ejs-progressbutton\", \"\"];\nexport * from '@syncfusion/ej2-splitbuttons';\nimport { CommonModule } from '@angular/common';\nlet input$1 = ['disabled', 'iconCss', 'id', 'separator', 'text', 'url'];\nlet outputs$4 = [];\nlet DropDownButtonItemDirective = /*#__PURE__*/(() => {\n class DropDownButtonItemDirective extends ComplexBase {\n constructor(viewContainerRef) {\n super();\n this.viewContainerRef = viewContainerRef;\n setValue('currentInstance', this, this.viewContainerRef);\n this.registerEvents(outputs$4);\n this.directivePropList = input$1;\n }\n }\n DropDownButtonItemDirective.ɵfac = function DropDownButtonItemDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || DropDownButtonItemDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n };\n DropDownButtonItemDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: DropDownButtonItemDirective,\n selectors: [[\"e-dropdownbuttonitem\"]],\n inputs: {\n disabled: \"disabled\",\n iconCss: \"iconCss\",\n id: \"id\",\n separator: \"separator\",\n text: \"text\",\n url: \"url\"\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return DropDownButtonItemDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * DropDownButtonItem Array Directive\n * @private\n */\nlet DropDownButtonItemsDirective = /*#__PURE__*/(() => {\n class DropDownButtonItemsDirective extends ArrayBase {\n constructor() {\n super('items');\n }\n }\n DropDownButtonItemsDirective.ɵfac = function DropDownButtonItemsDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || DropDownButtonItemsDirective)();\n };\n DropDownButtonItemsDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: DropDownButtonItemsDirective,\n selectors: [[\"e-dropdownbuttonitems\"]],\n contentQueries: function DropDownButtonItemsDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, DropDownButtonItemDirective, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.children = _t);\n }\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return DropDownButtonItemsDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs$2 = ['closeActionEvents', 'content', 'createPopupOnClick', 'cssClass', 'disabled', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'iconCss', 'iconPosition', 'items', 'locale', 'target'];\nconst outputs$3 = ['beforeClose', 'beforeItemRender', 'beforeOpen', 'close', 'created', 'open', 'select'];\nconst twoWays$2 = [];\n/**\n * Represents the Angular DropDownButton Component.\n * ```html\n * \n * ```\n */\nlet DropDownButtonComponent = /*#__PURE__*/(() => {\n let DropDownButtonComponent = class DropDownButtonComponent extends DropDownButton {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.tags = ['items'];\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$3);\n this.addTwoWay.call(this, twoWays$2);\n setValue('currentInstance', this, this.viewContainerRef);\n this.containerContext = new ComponentBase();\n }\n ngOnInit() {\n this.containerContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.containerContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.containerContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.tagObjects[0].instance = this.childItems;\n this.containerContext.ngAfterContentChecked(this);\n }\n };\n DropDownButtonComponent.ɵfac = function DropDownButtonComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || DropDownButtonComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n DropDownButtonComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: DropDownButtonComponent,\n selectors: [[\"\", \"ejs-dropdownbutton\", \"\"]],\n contentQueries: function DropDownButtonComponent_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, DropDownButtonItemsDirective, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childItems = _t.first);\n }\n },\n inputs: {\n closeActionEvents: \"closeActionEvents\",\n content: \"content\",\n createPopupOnClick: \"createPopupOnClick\",\n cssClass: \"cssClass\",\n disabled: \"disabled\",\n enableHtmlSanitizer: \"enableHtmlSanitizer\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n iconCss: \"iconCss\",\n iconPosition: \"iconPosition\",\n items: \"items\",\n locale: \"locale\",\n target: \"target\"\n },\n outputs: {\n beforeClose: \"beforeClose\",\n beforeItemRender: \"beforeItemRender\",\n beforeOpen: \"beforeOpen\",\n close: \"close\",\n created: \"created\",\n open: \"open\",\n select: \"select\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n attrs: _c0,\n ngContentSelectors: _c1,\n decls: 1,\n vars: 0,\n template: function DropDownButtonComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵprojection(0);\n }\n },\n encapsulation: 2,\n changeDetection: 0\n });\n DropDownButtonComponent = __decorate([ComponentMixins([ComponentBase])], DropDownButtonComponent);\n return DropDownButtonComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the DropDownButton component.\n */\nlet DropDownButtonModule = /*#__PURE__*/(() => {\n class DropDownButtonModule {}\n DropDownButtonModule.ɵfac = function DropDownButtonModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || DropDownButtonModule)();\n };\n DropDownButtonModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: DropDownButtonModule\n });\n DropDownButtonModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return DropDownButtonModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the DropDownButton component with providers.\n */\nlet DropDownButtonAllModule = /*#__PURE__*/(() => {\n class DropDownButtonAllModule {}\n DropDownButtonAllModule.ɵfac = function DropDownButtonAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || DropDownButtonAllModule)();\n };\n DropDownButtonAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: DropDownButtonAllModule\n });\n DropDownButtonAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, DropDownButtonModule], DropDownButtonModule]\n });\n return DropDownButtonAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet input = ['disabled', 'iconCss', 'id', 'separator', 'text', 'url'];\nlet outputs$2 = [];\nlet SplitButtonItemDirective = /*#__PURE__*/(() => {\n class SplitButtonItemDirective extends ComplexBase {\n constructor(viewContainerRef) {\n super();\n this.viewContainerRef = viewContainerRef;\n setValue('currentInstance', this, this.viewContainerRef);\n this.registerEvents(outputs$2);\n this.directivePropList = input;\n }\n }\n SplitButtonItemDirective.ɵfac = function SplitButtonItemDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SplitButtonItemDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n };\n SplitButtonItemDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: SplitButtonItemDirective,\n selectors: [[\"e-splitbuttonitem\"]],\n inputs: {\n disabled: \"disabled\",\n iconCss: \"iconCss\",\n id: \"id\",\n separator: \"separator\",\n text: \"text\",\n url: \"url\"\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return SplitButtonItemDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * SplitButtonItem Array Directive\n * @private\n */\nlet SplitButtonItemsDirective = /*#__PURE__*/(() => {\n class SplitButtonItemsDirective extends ArrayBase {\n constructor() {\n super('items');\n }\n }\n SplitButtonItemsDirective.ɵfac = function SplitButtonItemsDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SplitButtonItemsDirective)();\n };\n SplitButtonItemsDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: SplitButtonItemsDirective,\n selectors: [[\"e-splitbuttonitems\"]],\n contentQueries: function SplitButtonItemsDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, SplitButtonItemDirective, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.children = _t);\n }\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return SplitButtonItemsDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs$1 = ['closeActionEvents', 'content', 'createPopupOnClick', 'cssClass', 'disabled', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'iconCss', 'iconPosition', 'items', 'locale', 'target'];\nconst outputs$1 = ['beforeClose', 'beforeItemRender', 'beforeOpen', 'click', 'close', 'created', 'open', 'select'];\nconst twoWays$1 = [];\n/**\n * Represents the Angular SplitButton Component.\n * ```html\n * \n * ```\n */\nlet SplitButtonComponent = /*#__PURE__*/(() => {\n let SplitButtonComponent = class SplitButtonComponent extends SplitButton {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.tags = ['items'];\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$1);\n this.addTwoWay.call(this, twoWays$1);\n setValue('currentInstance', this, this.viewContainerRef);\n this.containerContext = new ComponentBase();\n }\n ngOnInit() {\n this.containerContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.containerContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.containerContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.tagObjects[0].instance = this.childItems;\n this.containerContext.ngAfterContentChecked(this);\n }\n };\n SplitButtonComponent.ɵfac = function SplitButtonComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SplitButtonComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n SplitButtonComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: SplitButtonComponent,\n selectors: [[\"ejs-splitbutton\"]],\n contentQueries: function SplitButtonComponent_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, SplitButtonItemsDirective, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childItems = _t.first);\n }\n },\n inputs: {\n closeActionEvents: \"closeActionEvents\",\n content: \"content\",\n createPopupOnClick: \"createPopupOnClick\",\n cssClass: \"cssClass\",\n disabled: \"disabled\",\n enableHtmlSanitizer: \"enableHtmlSanitizer\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n iconCss: \"iconCss\",\n iconPosition: \"iconPosition\",\n items: \"items\",\n locale: \"locale\",\n target: \"target\"\n },\n outputs: {\n beforeClose: \"beforeClose\",\n beforeItemRender: \"beforeItemRender\",\n beforeOpen: \"beforeOpen\",\n click: \"click\",\n close: \"close\",\n created: \"created\",\n open: \"open\",\n select: \"select\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n ngContentSelectors: _c1,\n decls: 1,\n vars: 0,\n template: function SplitButtonComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵprojection(0);\n }\n },\n encapsulation: 2,\n changeDetection: 0\n });\n SplitButtonComponent = __decorate([ComponentMixins([ComponentBase])], SplitButtonComponent);\n return SplitButtonComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the SplitButton component.\n */\nlet SplitButtonModule = /*#__PURE__*/(() => {\n class SplitButtonModule {}\n SplitButtonModule.ɵfac = function SplitButtonModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SplitButtonModule)();\n };\n SplitButtonModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: SplitButtonModule\n });\n SplitButtonModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return SplitButtonModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the SplitButton component with providers.\n */\nlet SplitButtonAllModule = /*#__PURE__*/(() => {\n class SplitButtonAllModule {}\n SplitButtonAllModule.ɵfac = function SplitButtonAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SplitButtonAllModule)();\n };\n SplitButtonAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: SplitButtonAllModule\n });\n SplitButtonAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, SplitButtonModule], SplitButtonModule]\n });\n return SplitButtonAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs = ['animationSettings', 'content', 'cssClass', 'disabled', 'duration', 'enableHtmlSanitizer', 'enableProgress', 'iconCss', 'iconPosition', 'isPrimary', 'isToggle', 'spinSettings'];\nconst outputs = ['begin', 'created', 'end', 'fail', 'progress'];\nconst twoWays = [];\n/**\n * Represents the Angular ProgressButton Component.\n * ```html\n * \n * ```\n */\nlet ProgressButtonComponent = /*#__PURE__*/(() => {\n let ProgressButtonComponent = class ProgressButtonComponent extends ProgressButton {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs);\n this.addTwoWay.call(this, twoWays);\n setValue('currentInstance', this, this.viewContainerRef);\n this.containerContext = new ComponentBase();\n }\n ngOnInit() {\n this.containerContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.containerContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.containerContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.containerContext.ngAfterContentChecked(this);\n }\n };\n ProgressButtonComponent.ɵfac = function ProgressButtonComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ProgressButtonComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n ProgressButtonComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: ProgressButtonComponent,\n selectors: [[\"\", \"ejs-progressbutton\", \"\"]],\n inputs: {\n animationSettings: \"animationSettings\",\n content: \"content\",\n cssClass: \"cssClass\",\n disabled: \"disabled\",\n duration: \"duration\",\n enableHtmlSanitizer: \"enableHtmlSanitizer\",\n enableProgress: \"enableProgress\",\n iconCss: \"iconCss\",\n iconPosition: \"iconPosition\",\n isPrimary: \"isPrimary\",\n isToggle: \"isToggle\",\n spinSettings: \"spinSettings\"\n },\n outputs: {\n begin: \"begin\",\n created: \"created\",\n end: \"end\",\n fail: \"fail\",\n progress: \"progress\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n attrs: _c2,\n ngContentSelectors: _c1,\n decls: 1,\n vars: 0,\n template: function ProgressButtonComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵprojection(0);\n }\n },\n encapsulation: 2,\n changeDetection: 0\n });\n ProgressButtonComponent = __decorate([ComponentMixins([ComponentBase])], ProgressButtonComponent);\n return ProgressButtonComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the ProgressButton component.\n */\nlet ProgressButtonModule = /*#__PURE__*/(() => {\n class ProgressButtonModule {}\n ProgressButtonModule.ɵfac = function ProgressButtonModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ProgressButtonModule)();\n };\n ProgressButtonModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: ProgressButtonModule\n });\n ProgressButtonModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return ProgressButtonModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the ProgressButton component with providers.\n */\nlet ProgressButtonAllModule = /*#__PURE__*/(() => {\n class ProgressButtonAllModule {}\n ProgressButtonAllModule.ɵfac = function ProgressButtonAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ProgressButtonAllModule)();\n };\n ProgressButtonAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: ProgressButtonAllModule\n });\n ProgressButtonAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, ProgressButtonModule], ProgressButtonModule]\n });\n return ProgressButtonAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { DropDownButtonAllModule, DropDownButtonComponent, DropDownButtonItemDirective, DropDownButtonItemsDirective, DropDownButtonModule, ProgressButtonAllModule, ProgressButtonComponent, ProgressButtonModule, SplitButtonAllModule, SplitButtonComponent, SplitButtonItemDirective, SplitButtonItemsDirective, SplitButtonModule };\n","import { DateTime } from 'luxon';\r\n\r\nexport class StringHelper {\r\n public static capitalizeFirstLetter(source: string) {\r\n if (!source) {\r\n return source;\r\n }\r\n if (typeof source !== 'string') {return '';}\r\n return source.charAt(0).toUpperCase() + source.slice(1);\r\n }\r\n\r\n public static capitalizeFirstLettersOfPropertyChain(source: string) {\r\n if (!source) {\r\n return source;\r\n }\r\n const splits = source.split('.');\r\n for (let i = 0; i < splits.length; i++) {\r\n splits[i] = this.capitalizeFirstLetter(splits[i]);\r\n }\r\n return splits.join('.');\r\n }\r\n\r\n public static transformToTimeRepresentation(minutes: number): string {\r\n const hours = Math.floor(minutes/60);\r\n const minutesLeft = minutes % 60;\r\n return `${hours < 10 ? '0' : ''}${hours}:${minutesLeft < 10 ? '0': ''}${Math.trunc(minutesLeft)}`;\r\n }\r\n\r\n public static getTimeElapsed(startTime: DateTime): string {\r\n const endTime = DateTime.now(); // now\r\n const durationInMinutes = endTime.diff(startTime, 'minutes').minutes;\r\n\r\n return StringHelper.transformToTimeRepresentation(durationInMinutes);\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { ParkingClient, ParkingProcessInfoDTO } from '../models/models.swagger.generated';\r\nimport { tap } from 'rxjs/operators';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ParkingProcessInfoService {\r\n\r\n public parkingProcessInfos: ParkingProcessInfoDTO[];\r\n\r\n constructor(private parkingClient: ParkingClient) {\r\n }\r\n\r\n public getParkingProcessInfos(): Observable {\r\n return this.parkingClient.getParkingProcessInfos()\r\n .pipe(\r\n tap(info => this.parkingProcessInfos = info?.sort(\r\n (a, b) => a.activeCheckinInfo.registrationDateTime.toMillis() - b.activeCheckinInfo.registrationDateTime.toMillis())),\r\n );\r\n }\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { CheckinUserParkingRegistrationDTO } from '../../models/models.swagger.generated';\r\nimport { StringHelper } from '../string-helper';\r\nimport { parkingRoute } from '../../../core/routing/route-names';\r\nimport { ParkingProcessInfoService } from '../../services/parking-process-info.service';\r\nimport { RouterLink } from '@angular/router';\r\nimport { NgIf } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-parking-indicator',\r\n templateUrl: './parking-indicator.component.html',\r\n styleUrls: ['./parking-indicator.component.scss'],\r\n standalone: true,\r\n imports: [NgIf, RouterLink],\r\n})\r\nexport class ParkingIndicatorComponent implements OnInit {\r\n\r\n public parkingRoute = parkingRoute;\r\n\r\n public get hasActiveCheckinInfo(): boolean {\r\n return this.parkingProcessInfoService.parkingProcessInfos?.length > 0;\r\n }\r\n\r\n public get getIndicatorText(): string {\r\n let indicatorText = StringHelper.getTimeElapsed(this.parkingProcessInfoService.parkingProcessInfos?.at(0)?.activeCheckinInfo.registrationDateTime);\r\n if (this.parkingProcessInfoService.parkingProcessInfos?.length > 1) {\r\n indicatorText += ` (1/${this.parkingProcessInfoService.parkingProcessInfos.length})`;\r\n }\r\n return indicatorText;\r\n }\r\n\r\n constructor(private parkingProcessInfoService: ParkingProcessInfoService) {\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.parkingProcessInfoService.getParkingProcessInfos()\r\n .subscribe(() => {});\r\n }\r\n\r\n}\r\n","
    \r\n {{getIndicatorText}} \r\n\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\nimport { environment } from 'src/environments/environment';\r\nimport { AccountClient, UserLoginDTO } from '../models/models.swagger.generated';\r\n\r\n@Injectable()\r\nexport class LoginProxy {\r\n constructor(\r\n private accountClient: AccountClient) {\r\n }\r\n\r\n public login(userName: string, password: string): Observable<[string, string]> {\r\n return this.accountClient.token(new UserLoginDTO({userName, password, grant_Type: 'password', client_Id: environment.apiClientId}))\r\n .pipe(\r\n map((res: any) => [res.access_token, res.refresh_token])\r\n );\r\n }\r\n\r\n public refreshTokenLogin(refreshToken: string): Observable<[string, string]> {\r\n return this.accountClient.token(new UserLoginDTO({grant_Type: 'refresh_token', client_Id: environment.apiClientId, refresh_Token: refreshToken}))\r\n .pipe(\r\n map((res: any) => [res.access_token, res.refresh_token])\r\n );\r\n }\r\n}\r\n","{\n \"supplemental\": {\n \"version\": {\n \"_unicodeVersion\": \"12.1.0\",\n \"_cldrVersion\": \"36\"\n },\n \"numberingSystems\": {\n \"adlm\": {\n \"_digits\": \"𞥐𞥑𞥒𞥓𞥔𞥕𞥖𞥗𞥘𞥙\",\n \"_type\": \"numeric\"\n },\n \"ahom\": {\n \"_digits\": \"𑜰𑜱𑜲𑜳𑜴𑜵𑜶𑜷𑜸𑜹\",\n \"_type\": \"numeric\"\n },\n \"arab\": {\n \"_digits\": \"٠١٢٣٤٥٦٧٨٩\",\n \"_type\": \"numeric\"\n },\n \"arabext\": {\n \"_digits\": \"۰۱۲۳۴۵۶۷۸۹\",\n \"_type\": \"numeric\"\n },\n \"armn\": {\n \"_rules\": \"armenian-upper\",\n \"_type\": \"algorithmic\"\n },\n \"armnlow\": {\n \"_rules\": \"armenian-lower\",\n \"_type\": \"algorithmic\"\n },\n \"bali\": {\n \"_digits\": \"᭐᭑᭒᭓᭔᭕᭖᭗᭘᭙\",\n \"_type\": \"numeric\"\n },\n \"beng\": {\n \"_digits\": \"০১২৩৪৫৬৭৮৯\",\n \"_type\": \"numeric\"\n },\n \"bhks\": {\n \"_digits\": \"𑱐𑱑𑱒𑱓𑱔𑱕𑱖𑱗𑱘𑱙\",\n \"_type\": \"numeric\"\n },\n \"brah\": {\n \"_digits\": \"𑁦𑁧𑁨𑁩𑁪𑁫𑁬𑁭𑁮𑁯\",\n \"_type\": \"numeric\"\n },\n \"cakm\": {\n \"_digits\": \"𑄶𑄷𑄸𑄹𑄺𑄻𑄼𑄽𑄾𑄿\",\n \"_type\": \"numeric\"\n },\n \"cham\": {\n \"_digits\": \"꩐꩑꩒꩓꩔꩕꩖꩗꩘꩙\",\n \"_type\": \"numeric\"\n },\n \"cyrl\": {\n \"_rules\": \"cyrillic-lower\",\n \"_type\": \"algorithmic\"\n },\n \"deva\": {\n \"_digits\": \"०१२३४५६७८९\",\n \"_type\": \"numeric\"\n },\n \"ethi\": {\n \"_rules\": \"ethiopic\",\n \"_type\": \"algorithmic\"\n },\n \"fullwide\": {\n \"_digits\": \"0123456789\",\n \"_type\": \"numeric\"\n },\n \"geor\": {\n \"_rules\": \"georgian\",\n \"_type\": \"algorithmic\"\n },\n \"gong\": {\n \"_digits\": \"𑶠𑶡𑶢𑶣𑶤𑶥𑶦𑶧𑶨𑶩\",\n \"_type\": \"numeric\"\n },\n \"gonm\": {\n \"_digits\": \"𑵐𑵑𑵒𑵓𑵔𑵕𑵖𑵗𑵘𑵙\",\n \"_type\": \"numeric\"\n },\n \"grek\": {\n \"_rules\": \"greek-upper\",\n \"_type\": \"algorithmic\"\n },\n \"greklow\": {\n \"_rules\": \"greek-lower\",\n \"_type\": \"algorithmic\"\n },\n \"gujr\": {\n \"_digits\": \"૦૧૨૩૪૫૬૭૮૯\",\n \"_type\": \"numeric\"\n },\n \"guru\": {\n \"_digits\": \"੦੧੨੩੪੫੬੭੮੯\",\n \"_type\": \"numeric\"\n },\n \"hanidays\": {\n \"_rules\": \"zh/SpelloutRules/spellout-numbering-days\",\n \"_type\": \"algorithmic\"\n },\n \"hanidec\": {\n \"_digits\": \"〇一二三四五六七八九\",\n \"_type\": \"numeric\"\n },\n \"hans\": {\n \"_rules\": \"zh/SpelloutRules/spellout-cardinal\",\n \"_type\": \"algorithmic\"\n },\n \"hansfin\": {\n \"_rules\": \"zh/SpelloutRules/spellout-cardinal-financial\",\n \"_type\": \"algorithmic\"\n },\n \"hant\": {\n \"_rules\": \"zh_Hant/SpelloutRules/spellout-cardinal\",\n \"_type\": \"algorithmic\"\n },\n \"hantfin\": {\n \"_rules\": \"zh_Hant/SpelloutRules/spellout-cardinal-financial\",\n \"_type\": \"algorithmic\"\n },\n \"hebr\": {\n \"_rules\": \"hebrew\",\n \"_type\": \"algorithmic\"\n },\n \"hmng\": {\n \"_digits\": \"𖭐𖭑𖭒𖭓𖭔𖭕𖭖𖭗𖭘𖭙\",\n \"_type\": \"numeric\"\n },\n \"hmnp\": {\n \"_digits\": \"𞅀𞅁𞅂𞅃𞅄𞅅𞅆𞅇𞅈𞅉\",\n \"_type\": \"numeric\"\n },\n \"java\": {\n \"_digits\": \"꧐꧑꧒꧓꧔꧕꧖꧗꧘꧙\",\n \"_type\": \"numeric\"\n },\n \"jpan\": {\n \"_rules\": \"ja/SpelloutRules/spellout-cardinal\",\n \"_type\": \"algorithmic\"\n },\n \"jpanfin\": {\n \"_rules\": \"ja/SpelloutRules/spellout-cardinal-financial\",\n \"_type\": \"algorithmic\"\n },\n \"jpanyear\": {\n \"_rules\": \"ja/SpelloutRules/spellout-numbering-year-latn\",\n \"_type\": \"algorithmic\"\n },\n \"kali\": {\n \"_digits\": \"꤀꤁꤂꤃꤄꤅꤆꤇꤈꤉\",\n \"_type\": \"numeric\"\n },\n \"khmr\": {\n \"_digits\": \"០១២៣៤៥៦៧៨៩\",\n \"_type\": \"numeric\"\n },\n \"knda\": {\n \"_digits\": \"೦೧೨೩೪೫೬೭೮೯\",\n \"_type\": \"numeric\"\n },\n \"lana\": {\n \"_digits\": \"᪀᪁᪂᪃᪄᪅᪆᪇᪈᪉\",\n \"_type\": \"numeric\"\n },\n \"lanatham\": {\n \"_digits\": \"᪐᪑᪒᪓᪔᪕᪖᪗᪘᪙\",\n \"_type\": \"numeric\"\n },\n \"laoo\": {\n \"_digits\": \"໐໑໒໓໔໕໖໗໘໙\",\n \"_type\": \"numeric\"\n },\n \"latn\": {\n \"_digits\": \"0123456789\",\n \"_type\": \"numeric\"\n },\n \"lepc\": {\n \"_digits\": \"᱀᱁᱂᱃᱄᱅᱆᱇᱈᱉\",\n \"_type\": \"numeric\"\n },\n \"limb\": {\n \"_digits\": \"᥆᥇᥈᥉᥊᥋᥌᥍᥎᥏\",\n \"_type\": \"numeric\"\n },\n \"mathbold\": {\n \"_digits\": \"𝟎𝟏𝟐𝟑𝟒𝟓𝟔𝟕𝟖𝟗\",\n \"_type\": \"numeric\"\n },\n \"mathdbl\": {\n \"_digits\": \"𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡\",\n \"_type\": \"numeric\"\n },\n \"mathmono\": {\n \"_digits\": \"𝟶𝟷𝟸𝟹𝟺𝟻𝟼𝟽𝟾𝟿\",\n \"_type\": \"numeric\"\n },\n \"mathsanb\": {\n \"_digits\": \"𝟬𝟭𝟮𝟯𝟰𝟱𝟲𝟳𝟴𝟵\",\n \"_type\": \"numeric\"\n },\n \"mathsans\": {\n \"_digits\": \"𝟢𝟣𝟤𝟥𝟦𝟧𝟨𝟩𝟪𝟫\",\n \"_type\": \"numeric\"\n },\n \"mlym\": {\n \"_digits\": \"൦൧൨൩൪൫൬൭൮൯\",\n \"_type\": \"numeric\"\n },\n \"modi\": {\n \"_digits\": \"𑙐𑙑𑙒𑙓𑙔𑙕𑙖𑙗𑙘𑙙\",\n \"_type\": \"numeric\"\n },\n \"mong\": {\n \"_digits\": \"᠐᠑᠒᠓᠔᠕᠖᠗᠘᠙\",\n \"_type\": \"numeric\"\n },\n \"mroo\": {\n \"_digits\": \"𖩠𖩡𖩢𖩣𖩤𖩥𖩦𖩧𖩨𖩩\",\n \"_type\": \"numeric\"\n },\n \"mtei\": {\n \"_digits\": \"꯰꯱꯲꯳꯴꯵꯶꯷꯸꯹\",\n \"_type\": \"numeric\"\n },\n \"mymr\": {\n \"_digits\": \"၀၁၂၃၄၅၆၇၈၉\",\n \"_type\": \"numeric\"\n },\n \"mymrshan\": {\n \"_digits\": \"႐႑႒႓႔႕႖႗႘႙\",\n \"_type\": \"numeric\"\n },\n \"mymrtlng\": {\n \"_digits\": \"꧰꧱꧲꧳꧴꧵꧶꧷꧸꧹\",\n \"_type\": \"numeric\"\n },\n \"newa\": {\n \"_digits\": \"𑑐𑑑𑑒𑑓𑑔𑑕𑑖𑑗𑑘𑑙\",\n \"_type\": \"numeric\"\n },\n \"nkoo\": {\n \"_digits\": \"߀߁߂߃߄߅߆߇߈߉\",\n \"_type\": \"numeric\"\n },\n \"olck\": {\n \"_digits\": \"᱐᱑᱒᱓᱔᱕᱖᱗᱘᱙\",\n \"_type\": \"numeric\"\n },\n \"orya\": {\n \"_digits\": \"୦୧୨୩୪୫୬୭୮୯\",\n \"_type\": \"numeric\"\n },\n \"osma\": {\n \"_digits\": \"𐒠𐒡𐒢𐒣𐒤𐒥𐒦𐒧𐒨𐒩\",\n \"_type\": \"numeric\"\n },\n \"rohg\": {\n \"_digits\": \"𐴰𐴱𐴲𐴳𐴴𐴵𐴶𐴷𐴸𐴹\",\n \"_type\": \"numeric\"\n },\n \"roman\": {\n \"_rules\": \"roman-upper\",\n \"_type\": \"algorithmic\"\n },\n \"romanlow\": {\n \"_rules\": \"roman-lower\",\n \"_type\": \"algorithmic\"\n },\n \"saur\": {\n \"_digits\": \"꣐꣑꣒꣓꣔꣕꣖꣗꣘꣙\",\n \"_type\": \"numeric\"\n },\n \"shrd\": {\n \"_digits\": \"𑇐𑇑𑇒𑇓𑇔𑇕𑇖𑇗𑇘𑇙\",\n \"_type\": \"numeric\"\n },\n \"sind\": {\n \"_digits\": \"𑋰𑋱𑋲𑋳𑋴𑋵𑋶𑋷𑋸𑋹\",\n \"_type\": \"numeric\"\n },\n \"sinh\": {\n \"_digits\": \"෦෧෨෩෪෫෬෭෮෯\",\n \"_type\": \"numeric\"\n },\n \"sora\": {\n \"_digits\": \"𑃰𑃱𑃲𑃳𑃴𑃵𑃶𑃷𑃸𑃹\",\n \"_type\": \"numeric\"\n },\n \"sund\": {\n \"_digits\": \"᮰᮱᮲᮳᮴᮵᮶᮷᮸᮹\",\n \"_type\": \"numeric\"\n },\n \"takr\": {\n \"_digits\": \"𑛀𑛁𑛂𑛃𑛄𑛅𑛆𑛇𑛈𑛉\",\n \"_type\": \"numeric\"\n },\n \"talu\": {\n \"_digits\": \"᧐᧑᧒᧓᧔᧕᧖᧗᧘᧙\",\n \"_type\": \"numeric\"\n },\n \"taml\": {\n \"_rules\": \"tamil\",\n \"_type\": \"algorithmic\"\n },\n \"tamldec\": {\n \"_digits\": \"௦௧௨௩௪௫௬௭௮௯\",\n \"_type\": \"numeric\"\n },\n \"telu\": {\n \"_digits\": \"౦౧౨౩౪౫౬౭౮౯\",\n \"_type\": \"numeric\"\n },\n \"thai\": {\n \"_digits\": \"๐๑๒๓๔๕๖๗๘๙\",\n \"_type\": \"numeric\"\n },\n \"tibt\": {\n \"_digits\": \"༠༡༢༣༤༥༦༧༨༩\",\n \"_type\": \"numeric\"\n },\n \"tirh\": {\n \"_digits\": \"𑓐𑓑𑓒𑓓𑓔𑓕𑓖𑓗𑓘𑓙\",\n \"_type\": \"numeric\"\n },\n \"vaii\": {\n \"_digits\": \"꘠꘡꘢꘣꘤꘥꘦꘧꘨꘩\",\n \"_type\": \"numeric\"\n },\n \"wara\": {\n \"_digits\": \"𑣠𑣡𑣢𑣣𑣤𑣥𑣦𑣧𑣨𑣩\",\n \"_type\": \"numeric\"\n },\n \"wcho\": {\n \"_digits\": \"𞋰𞋱𞋲𞋳𞋴𞋵𞋶𞋷𞋸𞋹\",\n \"_type\": \"numeric\"\n }\n }\n }\n}\n","{\n \"supplemental\": {\n \"version\": {\n \"_unicodeVersion\": \"12.1.0\",\n \"_cldrVersion\": \"36\"\n },\n \"weekData\": {\n \"minDays\": {\n \"001\": \"1\",\n \"AD\": \"4\",\n \"AN\": \"4\",\n \"AT\": \"4\",\n \"AX\": \"4\",\n \"BE\": \"4\",\n \"BG\": \"4\",\n \"CH\": \"4\",\n \"CZ\": \"4\",\n \"DE\": \"4\",\n \"DK\": \"4\",\n \"EE\": \"4\",\n \"ES\": \"4\",\n \"FI\": \"4\",\n \"FJ\": \"4\",\n \"FO\": \"4\",\n \"FR\": \"4\",\n \"GB\": \"4\",\n \"GF\": \"4\",\n \"GG\": \"4\",\n \"GI\": \"4\",\n \"GP\": \"4\",\n \"GR\": \"4\",\n \"GU\": \"1\",\n \"HU\": \"4\",\n \"IE\": \"4\",\n \"IM\": \"4\",\n \"IS\": \"4\",\n \"IT\": \"4\",\n \"JE\": \"4\",\n \"LI\": \"4\",\n \"LT\": \"4\",\n \"LU\": \"4\",\n \"MC\": \"4\",\n \"MQ\": \"4\",\n \"NL\": \"4\",\n \"NO\": \"4\",\n \"PL\": \"4\",\n \"PT\": \"4\",\n \"RE\": \"4\",\n \"RU\": \"4\",\n \"SE\": \"4\",\n \"SJ\": \"4\",\n \"SK\": \"4\",\n \"SM\": \"4\",\n \"UM\": \"1\",\n \"US\": \"1\",\n \"VA\": \"4\",\n \"VI\": \"1\"\n },\n \"firstDay\": {\n \"001\": \"mon\",\n \"AD\": \"mon\",\n \"AE\": \"sat\",\n \"AF\": \"sat\",\n \"AG\": \"sun\",\n \"AI\": \"mon\",\n \"AL\": \"mon\",\n \"AM\": \"mon\",\n \"AN\": \"mon\",\n \"AR\": \"mon\",\n \"AS\": \"sun\",\n \"AT\": \"mon\",\n \"AU\": \"sun\",\n \"AX\": \"mon\",\n \"AZ\": \"mon\",\n \"BA\": \"mon\",\n \"BD\": \"sun\",\n \"BE\": \"mon\",\n \"BG\": \"mon\",\n \"BH\": \"sat\",\n \"BM\": \"mon\",\n \"BN\": \"mon\",\n \"BR\": \"sun\",\n \"BS\": \"sun\",\n \"BT\": \"sun\",\n \"BW\": \"sun\",\n \"BY\": \"mon\",\n \"BZ\": \"sun\",\n \"CA\": \"sun\",\n \"CH\": \"mon\",\n \"CL\": \"mon\",\n \"CM\": \"mon\",\n \"CN\": \"sun\",\n \"CO\": \"sun\",\n \"CR\": \"mon\",\n \"CY\": \"mon\",\n \"CZ\": \"mon\",\n \"DE\": \"mon\",\n \"DJ\": \"sat\",\n \"DK\": \"mon\",\n \"DM\": \"sun\",\n \"DO\": \"sun\",\n \"DZ\": \"sat\",\n \"EC\": \"mon\",\n \"EE\": \"mon\",\n \"EG\": \"sat\",\n \"ES\": \"mon\",\n \"ET\": \"sun\",\n \"FI\": \"mon\",\n \"FJ\": \"mon\",\n \"FO\": \"mon\",\n \"FR\": \"mon\",\n \"GB\": \"mon\",\n \"GB-alt-variant\": \"sun\",\n \"GE\": \"mon\",\n \"GF\": \"mon\",\n \"GP\": \"mon\",\n \"GR\": \"mon\",\n \"GT\": \"sun\",\n \"GU\": \"sun\",\n \"HK\": \"sun\",\n \"HN\": \"sun\",\n \"HR\": \"mon\",\n \"HU\": \"mon\",\n \"ID\": \"sun\",\n \"IE\": \"mon\",\n \"IL\": \"sun\",\n \"IN\": \"sun\",\n \"IQ\": \"sat\",\n \"IR\": \"sat\",\n \"IS\": \"mon\",\n \"IT\": \"mon\",\n \"JM\": \"sun\",\n \"JO\": \"sat\",\n \"JP\": \"sun\",\n \"KE\": \"sun\",\n \"KG\": \"mon\",\n \"KH\": \"sun\",\n \"KR\": \"sun\",\n \"KW\": \"sat\",\n \"KZ\": \"mon\",\n \"LA\": \"sun\",\n \"LB\": \"mon\",\n \"LI\": \"mon\",\n \"LK\": \"mon\",\n \"LT\": \"mon\",\n \"LU\": \"mon\",\n \"LV\": \"mon\",\n \"LY\": \"sat\",\n \"MC\": \"mon\",\n \"MD\": \"mon\",\n \"ME\": \"mon\",\n \"MH\": \"sun\",\n \"MK\": \"mon\",\n \"MM\": \"sun\",\n \"MN\": \"mon\",\n \"MO\": \"sun\",\n \"MQ\": \"mon\",\n \"MT\": \"sun\",\n \"MV\": \"fri\",\n \"MX\": \"sun\",\n \"MY\": \"mon\",\n \"MZ\": \"sun\",\n \"NI\": \"sun\",\n \"NL\": \"mon\",\n \"NO\": \"mon\",\n \"NP\": \"sun\",\n \"NZ\": \"mon\",\n \"OM\": \"sat\",\n \"PA\": \"sun\",\n \"PE\": \"sun\",\n \"PH\": \"sun\",\n \"PK\": \"sun\",\n \"PL\": \"mon\",\n \"PR\": \"sun\",\n \"PT\": \"sun\",\n \"PY\": \"sun\",\n \"QA\": \"sat\",\n \"RE\": \"mon\",\n \"RO\": \"mon\",\n \"RS\": \"mon\",\n \"RU\": \"mon\",\n \"SA\": \"sun\",\n \"SD\": \"sat\",\n \"SE\": \"mon\",\n \"SG\": \"sun\",\n \"SI\": \"mon\",\n \"SK\": \"mon\",\n \"SM\": \"mon\",\n \"SV\": \"sun\",\n \"SY\": \"sat\",\n \"TH\": \"sun\",\n \"TJ\": \"mon\",\n \"TM\": \"mon\",\n \"TR\": \"mon\",\n \"TT\": \"sun\",\n \"TW\": \"sun\",\n \"UA\": \"mon\",\n \"UM\": \"sun\",\n \"US\": \"sun\",\n \"UY\": \"mon\",\n \"UZ\": \"mon\",\n \"VA\": \"mon\",\n \"VE\": \"sun\",\n \"VI\": \"sun\",\n \"VN\": \"mon\",\n \"WS\": \"sun\",\n \"XK\": \"mon\",\n \"YE\": \"sun\",\n \"ZA\": \"sun\",\n \"ZW\": \"sun\"\n },\n \"weekendStart\": {\n \"001\": \"sat\",\n \"AE\": \"fri\",\n \"AF\": \"thu\",\n \"BH\": \"fri\",\n \"DZ\": \"fri\",\n \"EG\": \"fri\",\n \"IL\": \"fri\",\n \"IN\": \"sun\",\n \"IQ\": \"fri\",\n \"IR\": \"fri\",\n \"JO\": \"fri\",\n \"KW\": \"fri\",\n \"LY\": \"fri\",\n \"OM\": \"fri\",\n \"QA\": \"fri\",\n \"SA\": \"fri\",\n \"SD\": \"fri\",\n \"SY\": \"fri\",\n \"UG\": \"sun\",\n \"YE\": \"fri\"\n },\n \"weekendEnd\": {\n \"001\": \"sun\",\n \"AE\": \"sat\",\n \"AF\": \"fri\",\n \"BH\": \"sat\",\n \"DZ\": \"sat\",\n \"EG\": \"sat\",\n \"IL\": \"sat\",\n \"IQ\": \"sat\",\n \"IR\": \"fri\",\n \"JO\": \"sat\",\n \"KW\": \"sat\",\n \"LY\": \"sat\",\n \"OM\": \"sat\",\n \"QA\": \"sat\",\n \"SA\": \"sat\",\n \"SD\": \"sat\",\n \"SY\": \"sat\",\n \"YE\": \"sat\"\n },\n \"af\": {\n \"_ordering\": \"weekOfDate weekOfInterval weekOfMonth\"\n },\n \"am az bs cs cy da el et hi ky lt mk sk ta th\": {\n \"_ordering\": \"weekOfYear weekOfMonth\"\n },\n \"ar fil gu hu hy id kk ko\": {\n \"_ordering\": \"weekOfMonth\"\n },\n \"be ro ru\": {\n \"_ordering\": \"weekOfInterval weekOfMonth\"\n },\n \"bg de iw pt ur zh\": {\n \"_ordering\": \"weekOfDate weekOfMonth weekOfInterval\"\n },\n \"ca es fr gl\": {\n \"_ordering\": \"weekOfDate\"\n },\n \"en bn ja ka\": {\n \"_ordering\": \"weekOfDate weekOfMonth\"\n },\n \"eu\": {\n \"_ordering\": \"weekOfMonth weekOfDate\"\n },\n \"fa hr it lv pl si sr uk uz\": {\n \"_ordering\": \"weekOfMonth weekOfInterval\"\n },\n \"fi zh-TW\": {\n \"_ordering\": \"weekOfYear weekOfDate weekOfMonth\"\n },\n \"is mn no sv vi\": {\n \"_ordering\": \"weekOfYear weekOfMonth weekOfInterval\"\n },\n \"km mr\": {\n \"_ordering\": \"weekOfMonth weekOfYear\"\n },\n \"kn ml pa\": {\n \"_ordering\": \"weekOfMonth weekOfDate weekOfYear\"\n },\n \"lo sq\": {\n \"_ordering\": \"weekOfMonth weekOfInterval weekOfDate weekOfYear\"\n },\n \"ms tr\": {\n \"_ordering\": \"weekOfMonth weekOfYear weekOfInterval weekOfDate\"\n },\n \"nl\": {\n \"_ordering\": \"weekOfDate weekOfYear weekOfMonth\"\n },\n \"sl\": {\n \"_ordering\": \"weekOfInterval\"\n },\n \"sw te\": {\n \"_ordering\": \"weekOfMonth weekOfInterval weekOfYear\"\n },\n \"und\": {\n \"_ordering\": \"weekOfYear\"\n },\n \"zu\": {\n \"_ordering\": \"weekOfYear weekOfInterval\"\n }\n }\n }\n}\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { L10n, setCulture, loadCldr } from '@syncfusion/ej2-base';\r\nimport { Subject, forkJoin } from 'rxjs';\r\nimport * as numberingSystems from 'cldr-data/supplemental/numberingSystems.json';\r\nimport * as weekData from 'cldr-data/supplemental/weekData.json';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class SyncfusionTranslationService {\r\n public onLanguageChanged = new Subject();\r\n\r\n private _isInitialized = false;\r\n constructor(private http: HttpClient) { }\r\n\r\n public use(language: string) {\r\n const syncfusionLang = this.getSyncfusionLanguageName(language);\r\n forkJoin ({\r\n cldrCaGregorian: this.http.get(`/assets/cldr-data/${language}/ca-gregorian.json`, {responseType: 'json'}),\r\n cldrNumbers: this.http.get(`/assets/cldr-data/${language}/numbers.json`, {responseType: 'json'}),\r\n cldrTimeZoneNames: this.http.get(`/assets/cldr-data/${language}/timeZoneNames.json`, {responseType: 'json'}),\r\n syncfusion: this.http.get(`/assets/i18n-syncfusion/${syncfusionLang}.json`, {responseType: 'json'})\r\n }).subscribe(data => {\r\n loadCldr(\r\n numberingSystems,\r\n data.cldrCaGregorian,\r\n data.cldrNumbers,\r\n data.cldrTimeZoneNames,\r\n weekData // To load the culture based first day of week\r\n );\r\n let syncfusionData = {};\r\n syncfusionData[language] = data.syncfusion[syncfusionLang];\r\n L10n.load(syncfusionData);\r\n setCulture(language);\r\n if (this._isInitialized) {\r\n // only emit if the language was already initialized\r\n this.onLanguageChanged.next(language);\r\n }\r\n this._isInitialized = true;\r\n });\r\n }\r\n\r\n private getSyncfusionLanguageName(language: string): string {\r\n if (language === 'en') {\r\n return 'en-US';\r\n }\r\n return language;\r\n }\r\n}\r\n","import { Inject, Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { map, tap, switchMap, catchError } from 'rxjs/operators';\r\nimport { LoginModel } from '../shared/login.model';\r\nimport { environment } from '../../../environments/environment';\r\nimport { Role, UserAccountClient, UserInfoDTO } from '../models/models.swagger.generated';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { LoginProxy } from '../http/login-proxy.service';\r\nimport { Idle } from '@ng-idle/core';\r\nimport { DOCUMENT } from '@angular/common';\r\nimport { SyncfusionTranslationService } from './syncfusion-translation.service';\r\nimport { Settings } from 'luxon';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AuthService {\r\n\r\n // store the URL so we can redirect after logging in\r\n public redirectUrl: string;\r\n\r\n // private userInfoModel: InfoBindingModel;\r\n private userInfoDTO: UserInfoDTO;\r\n\r\n constructor(\r\n private loginProxy: LoginProxy,\r\n private userAccountClient: UserAccountClient,\r\n private readonly translate: TranslateService,\r\n private idle: Idle,\r\n private readonly syncfusionTranslationService: SyncfusionTranslationService,\r\n @Inject(DOCUMENT) private document: Document) {\r\n this.resetLocalStorageIfNecessary();\r\n // Reset user info from the local storage\r\n if (localStorage[environment.localStorageUserInfo]) {\r\n this.userInfoDTO = UserInfoDTO.fromJS(JSON.parse(localStorage[environment.localStorageUserInfo]));\r\n this.setClientLanguage(this.userInfoDTO.language);\r\n setTimeout(() => this.idle.watch(), 1000);\r\n }\r\n }\r\n\r\n public login(login: LoginModel): Observable {\r\n return this.loginProxy.login(login.username, login.password).pipe(\r\n tap(([token, refreshToken]) => {\r\n // login successful if there's a jwt token in the response\r\n if (token) {\r\n // store user details and jwt token in local storage to keep user logged in between page refreshes\r\n localStorage[environment.localStorageToken] = token;\r\n // start idle service to watch\r\n this.idle.watch();\r\n this.updateActivityTimeStamp();\r\n }\r\n if (refreshToken) {\r\n localStorage[environment.localStorageRefreshToken] = refreshToken;\r\n }\r\n }),\r\n switchMap(() =>\r\n // get current user info to get the user's roles\r\n this.userAccountClient.info().pipe(\r\n catchError((error) => {\r\n this.resetLocalStorage();\r\n throw error;\r\n })\r\n )\r\n ),\r\n map((userInfo: UserInfoDTO) => {\r\n this.setUserInfoDTO(userInfo);\r\n return localStorage[environment.localStorageToken];\r\n })\r\n );\r\n }\r\n\r\n public logout(): void {\r\n this.userAccountClient.logout().subscribe();\r\n setTimeout(() => {\r\n this.resetLocalStorage();\r\n location.reload();\r\n }, 0);\r\n }\r\n\r\n public setUserLanguage(language: string) {\r\n const userInfo = this.getUserInfo();\r\n if (userInfo == null) {\r\n this.setClientLanguage(language);\r\n return;\r\n }\r\n userInfo.language = language;\r\n this.setUserInfoDTO(userInfo);\r\n this.userAccountClient.setUserLanguage(language).subscribe();\r\n }\r\n\r\n public isUserLoggedIn(): boolean {\r\n return !!localStorage[environment.localStorageToken];\r\n }\r\n\r\n public isUserAdmin(): boolean {\r\n if (!this.isUserLoggedIn()) {\r\n return false;\r\n }\r\n\r\n if (!this.userInfoDTO || !this.userInfoDTO.roles) {\r\n return false;\r\n }\r\n\r\n return this.userInfoDTO.roles.indexOf(Role.Admin) > -1;\r\n }\r\n\r\n public isUserAdminOrClientAdmin(): boolean {\r\n if (!this.isUserLoggedIn()) {\r\n return false;\r\n }\r\n\r\n if (!this.userInfoDTO || !this.userInfoDTO.roles) {\r\n return false;\r\n }\r\n\r\n return this.userInfoDTO.roles.indexOf(Role.Admin) > -1\r\n || this.userInfoDTO.roles.indexOf(Role.ClientAdmin) > -1;\r\n }\r\n\r\n public isUserAdminOrClientAdminOrCompanyAdmin(): boolean {\r\n if (!this.isUserLoggedIn()) {\r\n return false;\r\n }\r\n\r\n if (!this.userInfoDTO || !this.userInfoDTO.roles) {\r\n return false;\r\n }\r\n\r\n return this.userInfoDTO.roles.indexOf(Role.Admin) > -1\r\n || this.userInfoDTO.roles.indexOf(Role.ClientAdmin) > -1\r\n || this.userInfoDTO.roles.indexOf(Role.CompanyAdmin) > -1;;\r\n }\r\n\r\n public hasUserClientAssigned(): boolean {\r\n if (!this.isUserLoggedIn()) {\r\n return false;\r\n }\r\n return !!this.userInfoDTO.client;\r\n }\r\n\r\n public isUserClientUser(): boolean {\r\n if (!this.isUserLoggedIn()) {\r\n return false;\r\n }\r\n const hasClientUserRole = this.userInfoDTO.roles.indexOf(Role.ClientUser) > -1;\r\n return this.userInfoDTO.client && hasClientUserRole;\r\n }\r\n\r\n public isUserStandardUser(): boolean {\r\n if (!this.isUserLoggedIn()) {\r\n return false;\r\n }\r\n\r\n if (!this.userInfoDTO || !this.userInfoDTO.roles) {\r\n return false;\r\n }\r\n\r\n return this.userInfoDTO.roles.indexOf(Role.User) > -1;\r\n }\r\n\r\n public isUserCompanyAdmin(): boolean {\r\n if (!this.isUserLoggedIn()) {\r\n return false;\r\n }\r\n\r\n if (!this.userInfoDTO || !this.userInfoDTO.roles) {\r\n return false;\r\n }\r\n\r\n return this.userInfoDTO.roles.indexOf(Role.CompanyAdmin) > -1;;\r\n }\r\n\r\n public getUserInfo(): UserInfoDTO {\r\n if (!this.isUserLoggedIn() || !localStorage[environment.localStorageUserInfo]) {\r\n return null;\r\n }\r\n\r\n this.userInfoDTO = UserInfoDTO.fromJS(JSON.parse(localStorage[environment.localStorageUserInfo]));\r\n\r\n return this.userInfoDTO;\r\n }\r\n\r\n public loadUserInfoDTO(): Observable {\r\n return this.userAccountClient.info().pipe(tap(userInfo => {\r\n this.setUserInfoDTO(userInfo);\r\n }));\r\n }\r\n\r\n public updateActivityTimeStamp(): void {\r\n if (this.isUserLoggedIn()) {\r\n localStorage[environment.localStorageActivityTimestamp] = Date.now;\r\n }\r\n }\r\n\r\n private setUserInfoDTO(userInfo: UserInfoDTO) {\r\n if (!userInfo) {\r\n return;\r\n }\r\n this.userInfoDTO = userInfo;\r\n localStorage[environment.localStorageUserInfo] = JSON.stringify(userInfo);\r\n this.setClientLanguage(userInfo.language);\r\n }\r\n\r\n private setClientLanguage(language: string) {\r\n language = language ?? 'de';\r\n Settings.defaultLocale = language;\r\n this.syncfusionTranslationService.use(language);\r\n this.translate.use(language);\r\n if (environment.allowBrowserTranslation) {\r\n this.document.documentElement.lang = language;\r\n } else {\r\n this.document.documentElement.translate = false;\r\n }\r\n }\r\n\r\n private resetLocalStorageIfNecessary() {\r\n if (environment.production) {\r\n const timestamp = localStorage[environment.localStorageActivityTimestamp];\r\n if (!timestamp || timestamp + (environment.idleTimeoutInSeconds * 1000) < Date.now) {\r\n this.resetLocalStorage();\r\n }\r\n }\r\n\r\n // avoid possible dead lock\r\n if ((localStorage[environment.localStorageUserInfo] && !localStorage[environment.localStorageToken])\r\n || (!localStorage[environment.localStorageUserInfo] && localStorage[environment.localStorageToken])) {\r\n this.resetLocalStorage();\r\n }\r\n }\r\n\r\n private resetLocalStorage() {\r\n localStorage.removeItem(environment.localStorageToken);\r\n localStorage.removeItem(environment.localStorageRefreshToken);\r\n localStorage.removeItem(environment.localStorageUserInfo);\r\n }\r\n}\r\n","import { environment } from './../../../environments/environment';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class LanguageService {\r\n\r\n constructor(private translate: TranslateService) {\r\n }\r\n\r\n public init(): void {\r\n this.translate.addLangs(environment.supportedLanguages ? environment.supportedLanguages.split(',') : ['en']);\r\n // this language will be used as a fallback when a translation isn't found in the current language\r\n this.translate.setDefaultLang('en');\r\n }\r\n\r\n public getLanguages(): string[] {\r\n return this.translate.getLangs();\r\n }\r\n}\r\n","import { LanguageService } from './../services/language.service';\r\nimport { Component } from '@angular/core';\r\nimport { AuthService } from '../services/auth.service';\r\nimport { NgForOf } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-language-selector',\r\n templateUrl: './language-selector.component.html',\r\n styleUrls: ['./language-selector.component.scss'],\r\n standalone: true,\r\n imports: [NgForOf],\r\n})\r\nexport class LanguageSelectorComponent {\r\n public languages = this.languageService.getLanguages();\r\n\r\n private currentLang = 'en';\r\n\r\n constructor(private authService: AuthService,\r\n private languageService: LanguageService) {\r\n }\r\n\r\n public setLanguage(lang: string): void {\r\n this.authService.setUserLanguage(lang);\r\n this.currentLang = lang;\r\n }\r\n\r\n public addClass(lang: string) {\r\n let activeItem = false;\r\n if (this.authService.isUserLoggedIn() && this.authService.getUserInfo()){\r\n if (this.authService.getUserInfo().language === lang){\r\n activeItem = true;\r\n }\r\n } else if (lang === this.currentLang) {\r\n activeItem = true;\r\n }\r\n return (activeItem ? 'dropdown-item active' : 'dropdown-item');\r\n }\r\n}\r\n","\r\n","import { AuthService } from './auth.service';\r\nimport { Injectable } from \"@angular/core\";\r\nimport { ReportType } from \"../models/models.swagger.generated\";\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ReportVisibilityService {\r\n constructor(private authService: AuthService) {\r\n }\r\n\r\n public canUserSeeReport(reportType: ReportType): boolean {\r\n if (this.authService.isUserStandardUser()) {\r\n return reportType === ReportType.UserExtract || reportType === ReportType.ParkerExtract || reportType === ReportType.Payment;\r\n }\r\n if (reportType === ReportType.AutomaticParking && !this.authService.isUserAdmin()) {\r\n return false;\r\n }\r\n if (reportType === ReportType.UserExtract) {\r\n return false;\r\n }\r\n if (this.authService.isUserCompanyAdmin() && !(reportType === ReportType.ParkerTurnover \r\n || reportType === ReportType.ParkerRegistrations \r\n || reportType === ReportType.ParkerExtract)) {\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n}\r\n","import { ModalService } from './../shared/modal/modal.service';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport {\r\n changePasswordRoute,\r\n clientAdministrationRoute,\r\n companyAdministrationRoute,\r\n deviceInteractionRoute,\r\n editProfileRoute,\r\n homeRoute,\r\n loginRoute,\r\n parkerAdministrationRoute,\r\n parkerRegistrationRoute,\r\n parkingRangerSessionsRoute,\r\n parkingRoute,\r\n reportsRoute,\r\n tagsAdministrationRoute,\r\n userManagementRoute,\r\n zoneDamageRoute,\r\n configurationAdministrationRoute,\r\n adminRoute,\r\n parkRoute,\r\n tagsPerParkerRoute,\r\n parkerRegistrationsRoute,\r\n falseRecordingsRoute,\r\n parkerTurnoverRoute,\r\n parkerExtractRoute,\r\n deviceStatusRoute,\r\n automaticParkingReportRoute,\r\n paymentReportRoute,\r\n userExtractRoute,\r\n tagMasterRoute,\r\n onBoardingWizardRoute,\r\n savedReportsRoute,\r\n parkingCardRoute,\r\n automaticParkingRoute,\r\n} from './../../core/routing/route-names';\r\nimport { Component, OnInit, ViewChild } from '@angular/core';\r\nimport { NavigationEnd, Router, RouterLinkActive, RouterLink } from '@angular/router';\r\nimport { AuthService } from '../services/auth.service';\r\nimport { ReportType, UserInfoDTO } from '../models/models.swagger.generated';\r\nimport { UserManagementComponent } from '../user-management/user-management.component';\r\nimport { Observable, filter } from 'rxjs';\r\nimport { environment } from 'src/environments/environment';\r\nimport { ItemModel, DropDownButtonModule } from '@syncfusion/ej2-angular-splitbuttons';\r\nimport { AccordionComponent, AccordionModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { ReportVisibilityService } from '../services/report-visibility.service';\r\nimport { ParkingIndicatorComponent } from '../shared/parking-indicator/parking-indicator.component';\r\nimport { LanguageSelectorComponent } from '../language-selector/language-selector.component';\r\nimport { NgIf, NgClass } from '@angular/common';\r\n\r\ninterface RouteIdentifier {\r\n route: string,\r\n id: string\r\n}\r\n\r\n@Component({\r\n selector: 'app-navigation',\r\n templateUrl: './navigation.component.html',\r\n styleUrls: ['./navigation.component.scss'],\r\n standalone: true,\r\n imports: [NgIf, NgClass, LanguageSelectorComponent, DropDownButtonModule, AccordionModule, RouterLinkActive, RouterLink, ParkingIndicatorComponent, TranslateModule]\r\n})\r\nexport class NavigationComponent implements OnInit {\r\n\r\n public loading = false;\r\n public userInfoModels: UserInfoDTO[] = [];\r\n public userInfoModels$: Observable;\r\n public userManagementComponent: UserManagementComponent;\r\n\r\n public homeRoute = homeRoute;\r\n public loginRoute = loginRoute;\r\n public configurationAdministrationRoute = configurationAdministrationRoute;\r\n public userManagementRoute = userManagementRoute;\r\n public clientAdministrationRoute = clientAdministrationRoute;\r\n public companyAdministrationRoute = companyAdministrationRoute;\r\n public parkerAdministrationRoute = parkerAdministrationRoute;\r\n public tagsAdministrationRoute = tagsAdministrationRoute;\r\n public parkerRegistrationRoute = parkerRegistrationRoute;\r\n public parkingRangerSessionsRoute = parkingRangerSessionsRoute;\r\n public zoneDamageRoute = zoneDamageRoute;\r\n public savedReportsRoute = savedReportsRoute;\r\n public tagsPerParkerReportRoute = tagsPerParkerRoute;\r\n public parkerRegistrationsReportRoute = parkerRegistrationsRoute;\r\n public falseRecordingsReportRoute = falseRecordingsRoute;\r\n public parkerTurnoverReportRoute = parkerTurnoverRoute;\r\n public parkerExtractReportRoute = parkerExtractRoute;\r\n public deviceStatusReportRoute = deviceStatusRoute;\r\n public automaticParkingReportRoute = automaticParkingReportRoute;\r\n public paymentReportRoute = paymentReportRoute;\r\n public userExtractReportRoute = userExtractRoute;\r\n\r\n public onBoardingWizardRoute = onBoardingWizardRoute;\r\n public tagMasterRoute = tagMasterRoute;\r\n public deviceInteraction = deviceInteractionRoute;\r\n public parkingRoute = parkingRoute;\r\n public automaticParkingRoute = automaticParkingRoute;\r\n public parkingCardRoute = parkingCardRoute;\r\n public adminSectionId = 'admin-section';\r\n public parkingSectionId = 'parking-section';\r\n public reportsSectionId = 'reports-section';\r\n\r\n public ReportType = ReportType;\r\n\r\n private subrouteMatch: RouteIdentifier = null;\r\n\r\n @ViewChild(AccordionComponent) public accordion: AccordionComponent;\r\n\r\n public userIcon = 'icon-user';\r\n public userNavigation: ItemModel[] = [];\r\n\r\n private isAccordionInitialized = false;\r\n\r\n public envInfo = null;\r\n\r\n public get hasLinkedParker(): boolean {\r\n const user = this.authService.getUserInfo();\r\n return user.linkedParkers.length > 0;\r\n }\r\n\r\n public get hasActiveClient(): boolean {\r\n const user = this.authService.getUserInfo();\r\n return user.linkedParkers.some(lp => lp.client.isActive);\r\n }\r\n\r\n public get hasAutomaticParking(): boolean {\r\n const user = this.authService.getUserInfo();\r\n return user.linkedParkers.some(lp => lp.client.automaticParkingSchedulesEnabled);\r\n }\r\n\r\n constructor(\r\n private router: Router,\r\n private modalService: ModalService,\r\n private translate: TranslateService,\r\n public authService: AuthService,\r\n private reportVisibilityService: ReportVisibilityService) {\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.translate.onLangChange.subscribe(_ => {\r\n this.userNavigation = [\r\n { text: this.translate.instant('i18n.core.navigation.editProfile'), id: 'editProfile', iconCss: 'icon-user--profile' },\r\n { text: this.translate.instant('i18n.core.navigation.changePassword'), id: 'changePassword', iconCss: 'icon-password' },\r\n { text: this.translate.instant('i18n.core.navigation.logout'), id: 'logout', iconCss: 'icon-logout' }\r\n ];\r\n });\r\n this.envInfo = environment.envInfoClass?.length > 0 ? environment.envInfoClass : null;\r\n\r\n this.router.events.pipe(filter(event => event instanceof NavigationEnd)).subscribe((event) => {\r\n const subroutes: RouteIdentifier[] = [{ route: adminRoute + '/', id: this.adminSectionId }, { route: parkRoute + '/', id: this.parkingSectionId }, { route: reportsRoute + '/', id: this.reportsSectionId }];\r\n const url = this.router.url + '/';\r\n this.subrouteMatch = subroutes.find(s => url?.toLocaleLowerCase().indexOf(s.route) > -1);\r\n\r\n if (this.isAccordionInitialized) {\r\n this.expandAccordionSection(this.subrouteMatch?.id);\r\n }\r\n });\r\n }\r\n\r\n public onSelection(event: any): void {\r\n switch (event.item.id) {\r\n case 'editProfile':\r\n this.editUser();\r\n break;\r\n case 'changePassword':\r\n this.changePassword();\r\n break;\r\n case 'logout':\r\n this.logout();\r\n break;\r\n }\r\n }\r\n\r\n public editUser() {\r\n this.router.navigate([editProfileRoute]);\r\n }\r\n\r\n public logout() {\r\n const dialog = this.modalService.showOkCancelDialog('i18n.core.modal.logout.title', 'i18n.core.modal.logout.question');\r\n dialog.onOkSubject.subscribe(() => {\r\n this.router.navigate([loginRoute], { queryParams: { init: 'true' } })\r\n .then(() => { this.authService.logout(); });\r\n });\r\n }\r\n\r\n public changePassword() {\r\n this.router.navigate([changePasswordRoute]);\r\n }\r\n\r\n public onAccordionCreated() {\r\n this.isAccordionInitialized = true;\r\n if (this.subrouteMatch) {\r\n this.expandAccordionSection(this.subrouteMatch.id);\r\n }\r\n }\r\n\r\n public canUserSeeReport(reportType: any): boolean {\r\n return this.reportVisibilityService.canUserSeeReport(reportType);\r\n }\r\n\r\n // expand or collapse\r\n private expandAccordionSection(htmlElementId: string) {\r\n for (let i = 0; i < this.accordion.element.children.length; i++) {\r\n const item = this.accordion.element.children.item(i);\r\n if (item.id == htmlElementId) {\r\n this.accordion.expandItem(true, i);\r\n } else {\r\n this.accordion.expandItem(false, i);\r\n }\r\n }\r\n }\r\n}\r\n","
    \r\n

    AV.Park

    \r\n
    \r\n
    {{envInfo}}
    \r\n
    \r\n\r\n
    \r\n\r\n \r\n \r\n
    \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n {{ 'i18n.core.navigation.home' | translate }}\r\n \r\n \r\n \r\n\r\n \r\n \r\n
    {{ 'i18n.core.navigation.admin' | translate }}
    \r\n
    \r\n \r\n \r\n {{ 'i18n.core.navigation.client-administration' | translate }}\r\n \r\n \r\n {{ 'i18n.core.navigation.user-management' | translate }}\r\n \r\n \r\n {{ 'i18n.core.navigation.configuration-administration' | translate }}\r\n \r\n \r\n {{ 'i18n.core.navigation.company-administration' | translate }}\r\n \r\n \r\n {{ 'i18n.core.navigation.parker-administration' | translate }}\r\n \r\n \r\n {{ 'i18n.core.navigation.tags-administration' | translate }}\r\n \r\n \r\n \r\n {{ 'i18n.core.navigation.tag-master' | translate }}\r\n \r\n \r\n
    \r\n\r\n \r\n \r\n
    {{ 'i18n.core.navigation.parking' | translate }}
    \r\n
    \r\n \r\n \r\n {{ 'i18n.core.navigation.parking' | translate }}\r\n \r\n \r\n {{ 'i18n.core.navigation.automatic-parking' | translate }}\r\n \r\n \r\n {{ 'i18n.core.navigation.parker-registrations' | translate }}\r\n \r\n \r\n {{ 'i18n.core.navigation.parking-ranger-sessions' | translate }}\r\n \r\n \r\n {{ 'i18n.core.navigation.zone-damage' | translate }}\r\n \r\n \r\n {{ 'i18n.core.navigation.device-interaction' | translate }}\r\n \r\n \r\n {{ 'i18n.core.navigation.parking-card' | translate }}\r\n \r\n \r\n
    \r\n\r\n \r\n \r\n
    {{ 'i18n.core.navigation.reports' | translate }}
    \r\n
    \r\n \r\n \r\n {{ 'i18n.core.navigation.reports' | translate }}\r\n \r\n \r\n {{ 'i18n.shared.reportTypes.TagsPerParker' | translate }}\r\n \r\n \r\n {{ 'i18n.shared.reportTypes.ParkerRegistrations' | translate }}\r\n \r\n \r\n {{ 'i18n.shared.reportTypes.FalseRecordings' | translate }}\r\n \r\n \r\n {{ 'i18n.shared.reportTypes.ParkerTurnover' | translate }}\r\n \r\n \r\n {{ 'i18n.shared.reportTypes.ParkerExtract' | translate }}\r\n \r\n \r\n {{ 'i18n.shared.reportTypes.DeviceStatus' | translate }}\r\n \r\n \r\n {{ 'i18n.shared.reportTypes.AutomaticParking' | translate }}\r\n \r\n \r\n {{ 'i18n.shared.reportTypes.Payment' | translate }}\r\n \r\n \r\n {{ 'i18n.shared.reportTypes.UserExtract' | translate }}\r\n \r\n \r\n
    \r\n\r\n
    \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n
    \r\n","import * as i0 from '@angular/core';\nimport { EventEmitter, Injectable, NgModule } from '@angular/core';\nimport * as i1 from '@angular/common/http';\nimport { HttpRequest } from '@angular/common/http';\nimport * as i1$1 from '@ng-idle/core';\nimport { KeepaliveSvc, NgIdleModule } from '@ng-idle/core';\n\n/**\n * An example of an injectable service.\n */\nlet Keepalive = /*#__PURE__*/(() => {\n class Keepalive extends KeepaliveSvc {\n /*\n * Initializes a new instance of Keepalive\n * @param http - The HTTP service.\n */\n constructor(http, zone) {\n super();\n this.http = http;\n this.zone = zone;\n this.pingInterval = 10 * 60;\n /*\n * An event emitted when the service is pinging.\n */\n this.onPing = new EventEmitter();\n /*\n * An event emitted when the service has pinged an HTTP endpoint and received a response.\n */\n this.onPingResponse = new EventEmitter();\n }\n /*\n * Sets the string or Request that should be used when pinging.\n * @param url - The URL or Request object to use when pinging.\n * @return The current Request used when pinging.\n */\n request(url) {\n if (typeof url === 'string') {\n this.pingRequest = new HttpRequest('GET', url);\n } else if (url instanceof HttpRequest) {\n this.pingRequest = url;\n } else if (url === null) {\n this.pingRequest = null;\n }\n return this.pingRequest;\n }\n /*\n * Sets the interval (in seconds) at which the ping operation will occur when start() is called.\n * @param seconds - The ping interval in seconds.\n * @return The current interval value.\n */\n interval(seconds) {\n if (!isNaN(seconds) && seconds > 0) {\n this.pingInterval = seconds;\n } else if (!isNaN(seconds) && seconds <= 0) {\n throw new Error('Interval value must be greater than zero.');\n }\n return this.pingInterval;\n }\n /*\n * Immediately performs the ping operation. If a request has been set, an HTTP\n * request will be made and the response will be emitted via the\n * onPingResponse event.\n */\n ping() {\n this.onPing.emit(null);\n if (this.pingRequest) {\n this.http.request(this.pingRequest).subscribe(response => {\n this.onPingResponse.emit(response);\n }, error => {\n this.onPingResponse.emit(error);\n });\n }\n }\n /*\n * Starts pinging on an interval.\n */\n start() {\n this.stop();\n this.zone.runOutsideAngular(() => {\n this.pingHandle = setInterval(() => {\n this.zone.run(() => {\n this.ping();\n });\n }, this.pingInterval * 1000);\n });\n }\n /*\n * Stops pinging on an interval.\n */\n stop() {\n if (this.hasPingHandle()) {\n clearInterval(this.pingHandle);\n this.pingHandle = null;\n }\n }\n /*\n * Performs any cleanup tasks when Angular destroys the instance.\n */\n ngOnDestroy() {\n this.stop();\n }\n /*\n * Returns whether or not the service will ping automatically at the specified interval.\n * @return True if the service will ping at the specified interval; otherwise, false.\n */\n isRunning() {\n return this.hasPingHandle();\n }\n hasPingHandle() {\n return this.pingHandle !== null && typeof this.pingHandle !== 'undefined';\n }\n static {\n this.ɵfac = function Keepalive_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || Keepalive)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i0.NgZone));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: Keepalive,\n factory: Keepalive.ɵfac\n });\n }\n }\n return Keepalive;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet NgIdleKeepaliveModule = /*#__PURE__*/(() => {\n class NgIdleKeepaliveModule {\n static forRoot() {\n return {\n ngModule: NgIdleKeepaliveModule,\n providers: [Keepalive, {\n provide: KeepaliveSvc,\n useExisting: Keepalive\n }]\n };\n }\n static {\n this.ɵfac = function NgIdleKeepaliveModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || NgIdleKeepaliveModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: NgIdleKeepaliveModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [NgIdleModule.forRoot()]\n });\n }\n }\n return NgIdleKeepaliveModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/*\n * Public API Surface of keepalive\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Keepalive, NgIdleKeepaliveModule };\n","import {\r\n deviceInteractionPageName,\r\n deviceStatusPageName,\r\n falseRecordingsPageName,\r\n iamReportWithTagInformationPageName,\r\n parkerExtractPageName,\r\n parkerPerTariffPageName,\r\n parkerRegistrationsPageName,\r\n parkerTurnoverPageName,\r\n reportsPageName,\r\n tagsPerParkerPageName,\r\n zoneDamagePageName,\r\n} from '../../core/routing/page-names';\r\nimport { configurationAdministrationRoute, parkingRangerSessionsRoute, tagsAdministrationRoute, userManagementRoute } from '../../core/routing/route-names';\r\nimport { ActivatedRoute, Event, NavigationEnd, Router, RouterEvent } from '@angular/router';\r\nimport { Injectable } from '@angular/core';\r\nimport { parkerAdministrationRoute } from 'src/app/core/routing/route-names';\r\n\r\n@Injectable({\r\n providedIn: 'root', // this service needs to be a singleton\r\n})\r\nexport class WideFormatService {\r\n\r\n public useWideFormat = false;\r\n\r\n private wideFormatPages: string[] = [\r\n parkerAdministrationRoute.toLocaleLowerCase(),\r\n tagsAdministrationRoute.toLocaleLowerCase(),\r\n userManagementRoute.toLocaleLowerCase(),\r\n parkingRangerSessionsRoute.toLocaleLowerCase(),\r\n zoneDamagePageName.toLocaleLowerCase(),\r\n deviceInteractionPageName.toLocaleLowerCase(),\r\n reportsPageName.toLocaleLowerCase(),\r\n tagsPerParkerPageName.toLocaleLowerCase(),\r\n parkerRegistrationsPageName.toLocaleLowerCase(),\r\n falseRecordingsPageName.toLocaleLowerCase(),\r\n parkerTurnoverPageName.toLocaleLowerCase(),\r\n parkerExtractPageName.toLocaleLowerCase(),\r\n iamReportWithTagInformationPageName.toLocaleLowerCase(),\r\n deviceStatusPageName.toLocaleLowerCase(),\r\n parkerPerTariffPageName.toLocaleLowerCase(),\r\n configurationAdministrationRoute.toLocaleLowerCase(),\r\n ];\r\n\r\n constructor(private router: Router, private activatedRoute: ActivatedRoute) {\r\n this.router.events.subscribe((event: Event|RouterEvent) => {\r\n if (event instanceof NavigationEnd) {\r\n this.useWideFormat = false;\r\n const navigationEnd = event as NavigationEnd;\r\n const url = navigationEnd.url.toLocaleLowerCase();\r\n this.wideFormatPages.forEach(page => {\r\n const index = url.indexOf(page);\r\n if (index !== -1 && ((url.length - index) === page.length || url[index + page.length] === '?')) {\r\n this.useWideFormat = true;\r\n }\r\n });\r\n }\r\n });\r\n }\r\n}\r\n","import { userManagementRoute } from './../../core/routing/route-names';\r\nimport { Router, Event, NavigationEnd, ActivatedRoute, RouterEvent } from '@angular/router';\r\nimport { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class PreventShrinkService {\r\n\r\n public preventShrink = false;\r\n\r\n private preventShrinkPages: string[] = [\r\n userManagementRoute.toLocaleLowerCase()\r\n ];\r\n\r\n constructor(private router: Router, private activatedRoute: ActivatedRoute) {\r\n this.router.events.subscribe((event: Event|RouterEvent) => {\r\n if (event instanceof NavigationEnd) {\r\n this.preventShrink = false;\r\n const navigationEnd = event as NavigationEnd;\r\n const url = navigationEnd.url.toLocaleLowerCase();\r\n this.preventShrinkPages.forEach(page => {\r\n const index = url.indexOf(page);\r\n if (index !== -1 && ((url.length - index) === page.length || url[index + page.length] === '?')) {\r\n this.preventShrink = true;\r\n }\r\n });\r\n }\r\n });\r\n }\r\n}\r\n","import { filter } from 'rxjs';\r\nimport { Router, RouterOutlet, NavigationEnd } from '@angular/router';\r\nimport { SidebarComponent, SidebarModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { ModalDialog, ModalService } from './base/shared/modal/modal.service';\r\nimport { PreventShrinkService } from './base/services/prevent-shrink.service';\r\nimport { LanguageService } from './base/services/language.service';\r\nimport { WideFormatService } from './base/services/wide-format.service';\r\nimport { Component, OnInit, HostListener, ViewChild } from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { Keepalive } from '@ng-idle/keepalive';\r\nimport { Idle, DEFAULT_INTERRUPTSOURCES } from '@ng-idle/core';\r\nimport { AuthService } from './base/services/auth.service';\r\nimport { environment } from 'src/environments/environment';\r\nimport { homeRoute } from './core/routing/route-names';\r\nimport { ModalComponent } from './base/shared/modal/modal.component';\r\nimport { ToastsComponent } from './base/toasts/toasts.component';\r\nimport { SpinnerComponent } from './base/spinner/spinner.component';\r\nimport { NavigationComponent } from './base/navigation/navigation.component';\r\nimport { NgClass } from '@angular/common';\r\nimport { confirmEmailPageName } from './core/routing/page-names';\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.scss'],\r\n standalone: true,\r\n imports: [SidebarModule, NgClass, NavigationComponent, SpinnerComponent, RouterOutlet, ToastsComponent, ModalComponent]\r\n})\r\nexport class AppComponent implements OnInit {\r\n @ViewChild(SidebarComponent) sideBar: SidebarComponent;\r\n\r\n @HostListener('document:click', ['$event'])\r\n sideBarClickTrack(event) {\r\n if(this.sideBar?.element.contains(event.target)) {\r\n if (!this.sideBar.isOpen) {\r\n this.sideBar.show();\r\n this.isOpen = true;\r\n }\r\n } else {\r\n if (this.sideBar.isOpen) {\r\n // we do not want to close sidebar on home route\r\n const subroutes: string[] = [homeRoute + '/'];\r\n const url = (this.router.url + '/').toLocaleLowerCase();\r\n var subRouteMatch = subroutes.find(s => url.indexOf(s) > -1);\r\n if (!subRouteMatch && !this.isPinned) {\r\n this.sideBar.hide();\r\n this.isOpen = false;\r\n }\r\n }\r\n }\r\n }\r\n\r\n public get useWideFormat() {\r\n return this.wideFormatService.useWideFormat;\r\n }\r\n\r\n public get noShrink() {\r\n return this.preventShrinkService.preventShrink;\r\n }\r\n\r\n public get isSidebarOpen(): boolean {\r\n return this.isOpen;\r\n }\r\n\r\n public isPinned = false;\r\n public version = '';\r\n\r\n private isOpen = true;\r\n private timeoutWarning: ModalDialog;\r\n\r\n private hiddenSidebarRoutes: string[] = [\r\n `/${confirmEmailPageName}`\r\n ];\r\n\r\n constructor(private translate: TranslateService,\r\n private keepAlive: Keepalive,\r\n private idle: Idle,\r\n private modalService: ModalService,\r\n private authService: AuthService,\r\n private languageService: LanguageService,\r\n private wideFormatService: WideFormatService,\r\n private preventShrinkService: PreventShrinkService,\r\n private router: Router) {\r\n // Initialize the languages\r\n this.languageService.init();\r\n\r\n // the lang to use, if the lang isn't available, it will use the current loader to get them\r\n // const browserLang: string = translate.getBrowserLang();\r\n // translate.use(browserLang.match(/de/) ? browserLang : 'hu');\r\n this.configureIdle();\r\n this.configureKeepAlive();\r\n this.version = 'V' + environment.version;\r\n this.isPinned = localStorage[environment.localStorageIsSidebarPinned] ? localStorage[environment.localStorageIsSidebarPinned] === \"true\" : true;\r\n this.router.events.pipe(filter((e): e is NavigationEnd => e instanceof NavigationEnd)).subscribe((e: NavigationEnd) => {\r\n const url = e.url.toLocaleLowerCase();\r\n const match = this.hiddenSidebarRoutes.find(route => url.indexOf(route) > -1);\r\n if (match != null) {\r\n setTimeout(() => {\r\n this.sideBar.hide();\r\n this.isOpen = false;\r\n }, 0);\r\n }\r\n });\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.addEnvInfoClassToBody();\r\n // hide sidebar on mobile\r\n if (window.innerWidth < 800) {\r\n this.isOpen = false;\r\n this.isPinned = false;\r\n }\r\n }\r\n\r\n public onPinToggle() {\r\n this.isPinned = !this.isPinned;\r\n localStorage[environment.localStorageIsSidebarPinned] = this.isPinned;\r\n }\r\n\r\n private configureKeepAlive() {\r\n this.keepAlive.interval(30);\r\n this.keepAlive.onPing.subscribe(() => {\r\n this.authService.updateActivityTimeStamp();\r\n });\r\n }\r\n\r\n private configureIdle() {\r\n this.idle.setIdle(environment.idleTimeoutInSeconds);\r\n this.idle.setTimeout(60);\r\n this.idle.setInterrupts(DEFAULT_INTERRUPTSOURCES);\r\n\r\n this.idle.onIdleEnd.subscribe(() => {\r\n const dialog = this.timeoutWarning;\r\n this.modalService.closeDialog(dialog);\r\n this.timeoutWarning = null;\r\n });\r\n\r\n this.idle.onTimeout.subscribe(() => {\r\n this.modalService.closeDialog(this.timeoutWarning);\r\n this.timeoutWarning = null;\r\n this.authService.logout();\r\n });\r\n\r\n this.idle.onTimeoutWarning.subscribe((countdown) => {\r\n const message = this.translate.instant('i18n.core.modal.idle.message', { params: countdown });\r\n if (!this.timeoutWarning) {\r\n if (!this.idle.isIdling()) {\r\n return;\r\n }\r\n this.timeoutWarning = this.modalService.showMessageDialog('i18n.core.modal.idle.title', message);\r\n } else {\r\n this.timeoutWarning.message = this.translate.instant('i18n.core.modal.idle.message', { params: countdown });\r\n }\r\n });\r\n }\r\n\r\n private addEnvInfoClassToBody() {\r\n const bodyTag = document.body;\r\n if (environment.envInfoClass && environment.envInfoClass.length > 0) {\r\n bodyTag.classList.add(environment.envInfoClass);\r\n }\r\n }\r\n}\r\n","\r\n
    \r\n \r\n \r\n
    \r\n
    {{version}}
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n\r\n\r\n","/**\n * @license Angular v18.2.13\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { Directive, InjectionToken, forwardRef, Optional, Inject, ɵisPromise, ɵisSubscribable, ɵRuntimeError, Self, computed, signal, untracked, EventEmitter, Input, Host, SkipSelf, booleanAttribute, ChangeDetectorRef, Output, Injectable, inject, NgModule, Version } from '@angular/core';\nimport { ɵgetDOM } from '@angular/common';\nimport { from, forkJoin, Subject } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n/**\n * Base class for all ControlValueAccessor classes defined in Forms package.\n * Contains common logic and utility functions.\n *\n * Note: this is an *internal-only* class and should not be extended or used directly in\n * applications code.\n */\nlet BaseControlValueAccessor = /*#__PURE__*/(() => {\n class BaseControlValueAccessor {\n constructor(_renderer, _elementRef) {\n this._renderer = _renderer;\n this._elementRef = _elementRef;\n /**\n * The registered callback function called when a change or input event occurs on the input\n * element.\n * @nodoc\n */\n this.onChange = _ => {};\n /**\n * The registered callback function called when a blur event occurs on the input element.\n * @nodoc\n */\n this.onTouched = () => {};\n }\n /**\n * Helper method that sets a property on a target element using the current Renderer\n * implementation.\n * @nodoc\n */\n setProperty(key, value) {\n this._renderer.setProperty(this._elementRef.nativeElement, key, value);\n }\n /**\n * Registers a function called when the control is touched.\n * @nodoc\n */\n registerOnTouched(fn) {\n this.onTouched = fn;\n }\n /**\n * Registers a function called when the control value changes.\n * @nodoc\n */\n registerOnChange(fn) {\n this.onChange = fn;\n }\n /**\n * Sets the \"disabled\" property on the range input element.\n * @nodoc\n */\n setDisabledState(isDisabled) {\n this.setProperty('disabled', isDisabled);\n }\n static {\n this.ɵfac = function BaseControlValueAccessor_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || BaseControlValueAccessor)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef));\n };\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: BaseControlValueAccessor\n });\n }\n }\n return BaseControlValueAccessor;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Base class for all built-in ControlValueAccessor classes (except DefaultValueAccessor, which is\n * used in case no other CVAs can be found). We use this class to distinguish between default CVA,\n * built-in CVAs and custom CVAs, so that Forms logic can recognize built-in CVAs and treat custom\n * ones with higher priority (when both built-in and custom CVAs are present).\n *\n * Note: this is an *internal-only* class and should not be extended or used directly in\n * applications code.\n */\nlet BuiltInControlValueAccessor = /*#__PURE__*/(() => {\n class BuiltInControlValueAccessor extends BaseControlValueAccessor {\n static {\n this.ɵfac = /* @__PURE__ */(() => {\n let ɵBuiltInControlValueAccessor_BaseFactory;\n return function BuiltInControlValueAccessor_Factory(__ngFactoryType__) {\n return (ɵBuiltInControlValueAccessor_BaseFactory || (ɵBuiltInControlValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(BuiltInControlValueAccessor)))(__ngFactoryType__ || BuiltInControlValueAccessor);\n };\n })();\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: BuiltInControlValueAccessor,\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n }\n }\n return BuiltInControlValueAccessor;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Used to provide a `ControlValueAccessor` for form controls.\n *\n * See `DefaultValueAccessor` for how to implement one.\n *\n * @publicApi\n */\nconst NG_VALUE_ACCESSOR = /*#__PURE__*/new InjectionToken(ngDevMode ? 'NgValueAccessor' : '');\nconst CHECKBOX_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: /*#__PURE__*/forwardRef(() => CheckboxControlValueAccessor),\n multi: true\n};\n/**\n * @description\n * A `ControlValueAccessor` for writing a value and listening to changes on a checkbox input\n * element.\n *\n * @usageNotes\n *\n * ### Using a checkbox with a reactive form.\n *\n * The following example shows how to use a checkbox with a reactive form.\n *\n * ```ts\n * const rememberLoginControl = new FormControl();\n * ```\n *\n * ```\n * \n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet CheckboxControlValueAccessor = /*#__PURE__*/(() => {\n class CheckboxControlValueAccessor extends BuiltInControlValueAccessor {\n /**\n * Sets the \"checked\" property on the input element.\n * @nodoc\n */\n writeValue(value) {\n this.setProperty('checked', value);\n }\n static {\n this.ɵfac = /* @__PURE__ */(() => {\n let ɵCheckboxControlValueAccessor_BaseFactory;\n return function CheckboxControlValueAccessor_Factory(__ngFactoryType__) {\n return (ɵCheckboxControlValueAccessor_BaseFactory || (ɵCheckboxControlValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(CheckboxControlValueAccessor)))(__ngFactoryType__ || CheckboxControlValueAccessor);\n };\n })();\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CheckboxControlValueAccessor,\n selectors: [[\"input\", \"type\", \"checkbox\", \"formControlName\", \"\"], [\"input\", \"type\", \"checkbox\", \"formControl\", \"\"], [\"input\", \"type\", \"checkbox\", \"ngModel\", \"\"]],\n hostBindings: function CheckboxControlValueAccessor_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"change\", function CheckboxControlValueAccessor_change_HostBindingHandler($event) {\n return ctx.onChange($event.target.checked);\n })(\"blur\", function CheckboxControlValueAccessor_blur_HostBindingHandler() {\n return ctx.onTouched();\n });\n }\n },\n features: [i0.ɵɵProvidersFeature([CHECKBOX_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature]\n });\n }\n }\n return CheckboxControlValueAccessor;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst DEFAULT_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: /*#__PURE__*/forwardRef(() => DefaultValueAccessor),\n multi: true\n};\n/**\n * We must check whether the agent is Android because composition events\n * behave differently between iOS and Android.\n */\nfunction _isAndroid() {\n const userAgent = ɵgetDOM() ? ɵgetDOM().getUserAgent() : '';\n return /android (\\d+)/.test(userAgent.toLowerCase());\n}\n/**\n * @description\n * Provide this token to control if form directives buffer IME input until\n * the \"compositionend\" event occurs.\n * @publicApi\n */\nconst COMPOSITION_BUFFER_MODE = /*#__PURE__*/new InjectionToken(ngDevMode ? 'CompositionEventMode' : '');\n/**\n * The default `ControlValueAccessor` for writing a value and listening to changes on input\n * elements. The accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n *\n * @usageNotes\n *\n * ### Using the default value accessor\n *\n * The following example shows how to use an input element that activates the default value accessor\n * (in this case, a text field).\n *\n * ```ts\n * const firstNameControl = new FormControl();\n * ```\n *\n * ```\n * \n * ```\n *\n * This value accessor is used by default for `` and `\r\n
    \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n\r\n","import { DropDownConstantsFactory } from 'src/app/base/shared/syncfusion/dropdown-constants-factory';\r\nimport { FormBuilder, UntypedFormBuilder, Validators } from '@angular/forms';\r\nimport { ClientDTO, FilterCondition, FilterDTO, FilterOperator, ZoneDamageDTO, ZoneDamageState } from '../../base/models/models.swagger.generated';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { AvpCustomAdaptor } from '../../base/shared/syncfusion/avp-custom-adaptor';\r\nimport { SpinnerService } from '../../base/spinner/spinner.service';\r\nimport { ZoneDamageService } from './zone-damage.service';\r\nimport { GridBaseComponent } from 'src/app/base/shared/grid-base/grid-base.component';\r\nimport { Component, HostListener, OnInit } from '@angular/core';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { map, startWith } from 'rxjs/operators';\r\nimport { ZoneDamageEditFormComponent } from './zone-damage-edit-form/zone-damage-edit-form.component';\r\nimport { GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { NgIf, AsyncPipe, DatePipe } from '@angular/common';\r\nimport { ClientAutocompleteComponent } from '../../base/shared/client-autocomplete/client-autocomplete.component';\r\nimport { TitleBarComponent } from '../../base/shared/title-bar/title-bar.component';\r\nimport { ZoneDamageEditFormType } from './zone-damage-edit-form/zone-damage-edit-form.type';\r\n\r\n@Component({\r\n selector: 'app-zone-damage',\r\n templateUrl: './zone-damage.component.html',\r\n styleUrls: ['./zone-damage.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TitleBarComponent,\r\n ClientAutocompleteComponent,\r\n NgIf,\r\n DropDownListModule,\r\n GridModule,\r\n ZoneDamageEditFormComponent,\r\n AsyncPipe,\r\n DatePipe,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class ZoneDamageComponent extends GridBaseComponent implements OnInit {\r\n\r\n public ZoneDamageState = ZoneDamageState;\r\n\r\n public dropdownSettings = DropDownConstantsFactory.createStandardClientDropdownSettings();\r\n public notificationList$ = this.translateService.onLangChange\r\n .pipe(\r\n startWith(this.translateService.currentLang),\r\n map(_ => [\r\n {name: this.translateService.instant('i18n.domain.zone-damage.notifications.closed'), id: 'done'},\r\n {name: this.translateService.instant('i18n.domain.zone-damage.notifications.open'), id: 'pending'},\r\n ]),\r\n );\r\n\r\n constructor(translateService: TranslateService,\r\n clientService: ClientService,\r\n public zoneDamageService: ZoneDamageService,\r\n private fb: FormBuilder,\r\n private spinnerService: SpinnerService) {\r\n super(clientService, translateService, zoneDamageService);\r\n }\r\n\r\n @HostListener('window:beforeunload')\r\n beforeUnload() {\r\n return !this.gridEditForm?.dirty;\r\n }\r\n\r\n public override get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public override set selectedClient(value: ClientDTO) {\r\n if (this.clientService.selectedClient != value) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n }\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.zoneDamageService, this.spinnerService),\r\n });\r\n this.isActiveColumnName = 'state';\r\n this.editDialogTitle = 'i18n.domain.zone-damage.edit-damage';\r\n this.addDialogTitle = 'i18n.domain.zone-damage.add-damage';\r\n this.addIndexFindColumnName = 'id';\r\n }\r\n\r\n public applyFilters(event: any): void {\r\n const filters = [];\r\n if (event === 'done') {\r\n filters.push(new FilterDTO({\r\n isComplex: false,\r\n field: 'State',\r\n operator: FilterOperator.Equal,\r\n value: ZoneDamageState[ZoneDamageState.Repaired],\r\n }));\r\n }\r\n if (event === 'pending') {\r\n filters.push(new FilterDTO({\r\n isComplex: true,\r\n condition: FilterCondition.Or,\r\n predicates: [\r\n new FilterDTO({\r\n isComplex: false, field: 'State',\r\n operator: FilterOperator.Equal,\r\n value: ZoneDamageState[ZoneDamageState.New],\r\n }),\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'State',\r\n operator: FilterOperator.Equal,\r\n value: ZoneDamageState[ZoneDamageState.RepairInProgress],\r\n }),\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'State',\r\n operator: FilterOperator.Equal,\r\n value: ZoneDamageState[ZoneDamageState.Acknowledged],\r\n }),\r\n ],\r\n }));\r\n }\r\n this.zoneDamageService.filters = filters;\r\n this.grid.refresh();\r\n }\r\n\r\n protected initializeEditForm(data: ZoneDamageDTO): void {\r\n this.gridEditForm = this.fb.group({\r\n id: this.fb.control(data.id),\r\n state: this.fb.control(ZoneDamageState[data.state], Validators.required), \r\n clientId: this.fb.control(data.clientId || this.clientService.selectedClient.id),\r\n zone: this.fb.control(data.zone?.id, Validators.required),\r\n deviceId: this.fb.control(data.deviceId, Validators.required),\r\n damageDescription: this.fb.control(data.damageDescription),\r\n reportTime: this.fb.control({value: data.reportTime.toFormat('dd.MM.yyyy HH:mm:ss'), disabled: true}),\r\n reportPositionLatitude: this.fb.control(data.reportPositionLatitude),\r\n reportPositionLongitude: this.fb.control(data.reportPositionLongitude),\r\n position: this.fb.control(data.reportPositionLatitude ? data.reportPositionLatitude + ',' + data.reportPositionLongitude : '', Validators.required),\r\n reporter: this.fb.control({value: data.reporter?.firstname ? data.reporter?.firstname + ' ' + data.reporter?.lastname : '', disabled: true}), \r\n phoneNumber: this.fb.control({value: data.reporter?.phoneNumber, disabled: true}),\r\n });\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData: any) {\r\n return {params: ''};\r\n }\r\n\r\n protected override getDataToSave(): any {\r\n const formValue = this.gridEditForm.value;\r\n const positions = this.gridEditForm.value.position.split(',');\r\n\r\n formValue.reportPositionLatitude = positions[0];\r\n formValue.reportPositionLongitude = positions[1];\r\n formValue.zoneId = formValue.zone;\r\n delete formValue.reportTime;\r\n return formValue;\r\n }\r\n\r\n}\r\n","\r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n\r\n \r\n \r\n \r\n \r\n \r\n {{data.reportTime | date:'dd.MM.yyyy HH:mm:ss'}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.reportPositionLatitude}}/{{data.reportPositionLongitude}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n","export const ipV4Pattern = '^((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])$';\r\nexport const ipV6Pattern = '^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$';\r\nexport const macAddressPattern = '^([0-9a-fA-F]{2}(?:(?:-[0-9a-fA-F]{2}){5}))$';\r\n","import { AbstractControl, UntypedFormGroup, ValidatorFn, Validators } from '@angular/forms';\r\nimport { DateTime } from 'luxon';\r\nimport { ipV4Pattern, ipV6Pattern, macAddressPattern } from '../regex-patterns';\r\n\r\nexport class CustomValidatorsFactory {\r\n public static createPhoneValidator(): ValidatorFn {\r\n // regex from: https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s03.html\r\n return (control: AbstractControl) => Validators.pattern(/^(\\+|00|0)(?:[0-9] ?){6,14}[0-9]$/)(control)\r\n ? {\r\n phone: {\r\n error: true,\r\n },\r\n }\r\n : null;\r\n }\r\n\r\n public static createZipValidator(): ValidatorFn {\r\n return (control: AbstractControl) => Validators.pattern(/^[1-9]\\d{3,6}$/)(control)\r\n ? {\r\n zip: {\r\n error: true,\r\n },\r\n }\r\n : null;\r\n }\r\n\r\n public static passwordValidation(): ValidatorFn {\r\n return (control: AbstractControl): { [key: string]: any } | null => {\r\n if (control.value) {\r\n // password should contain at least 6 digits, 1 upppercase, 1 lowercase, 1 number\r\n const pwdRule = new RegExp(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).{6,}$/g);\r\n const validPassword = pwdRule.test(control.value);\r\n return !validPassword ? {invalidPassword: true} : null;\r\n }\r\n return null;\r\n };\r\n }\r\n\r\n public static passwordMatchValidation(passwordControlName = 'password', passwordConfirmControlName = 'passwordConfirm'): ValidatorFn {\r\n return (group: UntypedFormGroup) => {\r\n const password = group.get(passwordControlName).value;\r\n const passwordConfirm = group.get(passwordConfirmControlName).value;\r\n if (!password || !passwordConfirm) {\r\n return null;\r\n }\r\n return password === passwordConfirm ? null : {passwordConfirmationMismatch: {valid: false}};\r\n };\r\n }\r\n\r\n public static forbiddenNameValidator(nameRe: RegExp): ValidatorFn {\r\n return (control: AbstractControl): { [key: string]: any } | null => {\r\n const forbidden = nameRe.test(control.value);\r\n return forbidden ? {forbiddenName: {value: control.value}} : null;\r\n };\r\n }\r\n\r\n public static accessCodeDateValidator(): ValidatorFn {\r\n return (control: AbstractControl): { [key: string]: any } | null => {\r\n if (control.value) {\r\n const date = DateTime.fromJSDate(control.value);\r\n const valid = date.isValid;\r\n if (valid) {\r\n if (date < DateTime.now().startOf('day')) {\r\n return {invalidAccessCodeDateMin: true};\r\n }\r\n if (date > DateTime.now().plus({years: 1})) {\r\n return {invalidAccessCodeDateMax: true};\r\n }\r\n }\r\n return !valid ? {invalidDate: true} : null;\r\n } else {\r\n return null;\r\n }\r\n };\r\n }\r\n\r\n public static atLeastOneFromFormGroupRequired(): ValidatorFn {\r\n return (group: UntypedFormGroup) => {\r\n const isTrue = (element) => !!group.get(element).value;\r\n const valid = Object.keys(group.controls).some(isTrue);\r\n return valid ? null : {error: true};\r\n };\r\n }\r\n\r\n\r\n public static validateIpAddress(allowIPv6: boolean = true): ValidatorFn {\r\n return (control: AbstractControl): { [key: string]: any } | null => {\r\n if (control.dirty && control.value) {\r\n let regexp: RegExp;\r\n if (allowIPv6) {\r\n regexp = new RegExp(`(${ipV6Pattern})|(${ipV4Pattern})`, 'i');\r\n return regexp.test(control.value) ? null : {ipV6Address: true};\r\n } else {\r\n regexp = new RegExp(`${ipV4Pattern}`, 'i');\r\n return regexp.test(control.value) ? null : {ipAddress: true};\r\n }\r\n }\r\n return null;\r\n };\r\n }\r\n\r\n public static validateMacAddress(): ValidatorFn {\r\n return (control: AbstractControl): { [key: string]: any } | null => {\r\n if (control.dirty && control.value) {\r\n let regexp: RegExp;\r\n regexp = new RegExp(`${macAddressPattern}`, 'i');\r\n return regexp.test(control.value) ? null : {macAddress: true};\r\n }\r\n return null;\r\n };\r\n }\r\n\r\n public static validateDateNotInPast(): ValidatorFn {\r\n return (control: AbstractControl): { [key: string]: any } | null => {\r\n if (control.dirty && control.value) {\r\n const date = DateTime.fromJSDate(control.value);\r\n const valid = date.isValid;\r\n if (valid) {\r\n if (date < DateTime.now().startOf('day')) {\r\n return {invalidDateInPast: true};\r\n }\r\n }\r\n return !valid ? {invalidDate: true} : null;\r\n } else {\r\n return null;\r\n }\r\n };\r\n }\r\n\r\n public static validateDateNotInFuture(): ValidatorFn {\r\n return (control: AbstractControl): { [key: string]: any } | null => {\r\n if (control.dirty && control.value) {\r\n const date = DateTime.fromJSDate(control.value);\r\n const valid = date.isValid;\r\n if (valid) {\r\n if (date > DateTime.now().startOf('day')) {\r\n return {invalidDateInFuture: true};\r\n }\r\n }\r\n return !valid ? {invalidDate: true} : null;\r\n } else {\r\n return null;\r\n }\r\n };\r\n }\r\n\r\n public static validateDateNotBeforeDate(dateToCompare: AbstractControl): ValidatorFn {\r\n return (control: AbstractControl): { [key: string]: any } | null => {\r\n if (control.dirty && control.value) {\r\n const date = DateTime.fromJSDate(control.value);\r\n const valid = date.isValid;\r\n if (valid) {\r\n if (dateToCompare?.value != null && date < DateTime.fromJSDate(dateToCompare.value)) {\r\n return {invalidDateBeforeDate: true};\r\n }\r\n }\r\n return !valid ? {invalidDate: true} : null;\r\n } else {\r\n return null;\r\n }\r\n };\r\n }\r\n}\r\n","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\nimport { GridBaseComponent } from '../../shared/grid-base/grid-base.component';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { ClientService } from '../../services/client/client.service';\r\nimport { LinkedParkerDTO } from '../../models/models.swagger.generated';\r\nimport { FormBuilder } from '@angular/forms';\r\nimport { CommandClickEventArgs, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { ModalService } from '../../shared/modal/modal.service';\r\nimport { ParkerAdministrationService } from '../../../domain/administration/parker-administration/parker-administraton.service';\r\nimport { SfCommandButtonType } from '../../models/syncfusion-data';\r\nimport { LinkedParkerFormType } from './linked-parker-form.type';\r\n\r\n@Component({\r\n selector: 'app-linked-parker',\r\n templateUrl: './linked-parker.component.html',\r\n styleUrls: ['./linked-parker.component.scss'],\r\n standalone: true,\r\n imports: [GridModule, TranslateModule]\r\n})\r\nexport class LinkedParkerComponent extends GridBaseComponent implements OnInit {\r\n\r\n @Input() linkedParkers: LinkedParkerDTO[];\r\n @Output() linkedParkersChange = new EventEmitter();\r\n\r\n\r\n constructor(translateService: TranslateService,\r\n clientService: ClientService,\r\n private fb: FormBuilder,\r\n private modalService: ModalService,\r\n private parkerAdministrationService: ParkerAdministrationService) {\r\n super(clientService, translateService, null);\r\n }\r\n\r\n ngOnInit(): void {\r\n this.gridCommands = [{\r\n type: 'None',\r\n title: this.translateService.instant('i18n.domain.parker-administration.unlink'),\r\n buttonOption: {\r\n cssClass: 'icon-btn',\r\n iconCss: 'icon-unlink e-icons'\r\n }\r\n }];\r\n }\r\n\r\n public commandClicked(args: CommandClickEventArgs): void {\r\n if (args.commandColumn.type === SfCommandButtonType.None) {\r\n const parker = args.rowData as LinkedParkerDTO;\r\n const index = this.linkedParkers.indexOf(parker);\r\n\r\n const dialog = this.modalService.showOkCancelDialog('i18n.domain.parker-administration.unlink', 'i18n.domain.parker-administration.unlink-question');\r\n dialog.onOkSubject.subscribe(() => {\r\n this.parkerAdministrationService.unlinkUserFromParker(parker.parkerId).subscribe(() => {\r\n this.linkedParkers.splice(index, 1);\r\n this.grid.refresh();\r\n this.linkedParkersChange.emit(this.linkedParkers);\r\n });\r\n });\r\n return;\r\n }\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData: any) {\r\n {}\r\n }\r\n\r\n protected initializeEditForm(data: any): void {\r\n this.gridEditForm = this.fb.group({\r\n parkerId: this.fb.control(data.parkerId),\r\n firstName: this.fb.control(data.firstName),\r\n lastName: this.fb.control(data.lastName),\r\n company: this.fb.control(data.company),\r\n });\r\n }\r\n}\r\n","
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.firstName}} {{data.lastName}}\r\n \r\n \r\n \r\n \r\n {{data.company?.name ?? data.client?.name}}\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n","export enum CountryISO2 {\r\n AF = 'Afghanistan',\r\n AX = 'Åland_Islands',\r\n AL = 'Albania',\r\n DZ = 'Algeria',\r\n AS = 'American_Samoa',\r\n AD = 'Andorra',\r\n AO = 'Angola',\r\n AI = 'Anguilla',\r\n AQ = 'Antarctica',\r\n AG = 'Antigua_And_Barbuda',\r\n AR = 'Argentina',\r\n AM = 'Armenia',\r\n AW = 'Aruba',\r\n AU = 'Australia',\r\n AT = 'Austria',\r\n AZ = 'Azerbaijan',\r\n BS = 'Bahamas',\r\n BH = 'Bahrain',\r\n BD = 'Bangladesh',\r\n BB = 'Barbados',\r\n BY = 'Belarus',\r\n BE = 'Belgium',\r\n BZ = 'Belize',\r\n BJ = 'Benin',\r\n BM = 'Bermuda',\r\n BT = 'Bhutan',\r\n BO = 'Bolivia',\r\n BQ = 'Bonaire_Sint_Eustatius_And_Saba',\r\n BA = 'Bosnia_And_Herzegovina',\r\n BW = 'Botswana',\r\n BV = 'Bouvet_Island',\r\n BR = 'Brazil',\r\n IO = 'British_Indian_Ocean_Territory',\r\n BN = 'Brunei_Darussalam',\r\n BG = 'Bulgaria',\r\n BF = 'Burkina_Faso',\r\n BI = 'Burundi',\r\n CV = 'Cabo_Verde',\r\n KH = 'Cambodia',\r\n CM = 'Cameroon',\r\n CA = 'Canada',\r\n KY = 'Cayman_Islands',\r\n CF = 'Central_African_Republic',\r\n TD = 'Chad',\r\n CL = 'Chile',\r\n CN = 'China',\r\n CX = 'Christmas_Island',\r\n CC = 'Cocos_Islands',\r\n CO = 'Colombia',\r\n KM = 'Comoros',\r\n CG = 'Congo',\r\n CD = 'Congo_Democratic_Republic',\r\n CK = 'Cook_Islands',\r\n CR = 'Costa_Rica',\r\n CI = 'Cote_dIvoire',\r\n HR = 'Croatia',\r\n CU = 'Cuba',\r\n CW = 'Curaçao',\r\n CY = 'Cyprus',\r\n CZ = 'Czechia',\r\n DK = 'Denmark',\r\n DJ = 'Djibouti',\r\n DM = 'Dominica',\r\n DO = 'Dominican_Republic',\r\n EC = 'Ecuador',\r\n EG = 'Egypt',\r\n SV = 'El_Salvador',\r\n GQ = 'Equatorial_Guinea',\r\n ER = 'Eritrea',\r\n EE = 'Estonia',\r\n SZ = 'Eswatini',\r\n ET = 'Ethiopia',\r\n FK = 'Falkland_Islands',\r\n FO = 'Faroe_Islands',\r\n FJ = 'Fiji',\r\n FI = 'Finland',\r\n FR = 'France',\r\n GF = 'French_Guiana',\r\n PF = 'French_Polynesia',\r\n TF = 'French_Southern_Territories',\r\n GA = 'Gabon',\r\n GM = 'Gambia',\r\n GE = 'Georgia',\r\n DE = 'Germany',\r\n GH = 'Ghana',\r\n GI = 'Gibraltar',\r\n GR = 'Greece',\r\n GL = 'Greenland',\r\n GD = 'Grenada',\r\n GP = 'Guadeloupe',\r\n GU = 'Guam',\r\n GT = 'Guatemala',\r\n GG = 'Guernsey',\r\n GN = 'Guinea',\r\n GW = 'Guinea_Bissau',\r\n GY = 'Guyana',\r\n HT = 'Haiti',\r\n HM = 'Heard_Island_And_McDonald_Islands',\r\n VA = 'Holy_See',\r\n HN = 'Honduras',\r\n HK = 'Hong_Kong',\r\n HU = 'Hungary',\r\n IS = 'Iceland',\r\n IN = 'India',\r\n ID = 'Indonesia',\r\n IR = 'Iran',\r\n IQ = 'Iraq',\r\n IE = 'Ireland',\r\n IM = 'Isle_of_Man',\r\n IL = 'Israel',\r\n IT = 'Italy',\r\n JM = 'Jamaica',\r\n JP = 'Japan',\r\n JE = 'Jersey',\r\n JO = 'Jordan',\r\n KZ = 'Kazakhstan',\r\n KE = 'Kenya',\r\n KI = 'Kiribati',\r\n KP = 'Korea_Democratic_Peoples_Republic',\r\n KR = 'Korea_Republic',\r\n KW = 'Kuwait',\r\n KG = 'Kyrgyzstan',\r\n LA = 'Lao_Peoples_Democratic_Republic',\r\n LV = 'Latvia',\r\n LB = 'Lebanon',\r\n LS = 'Lesotho',\r\n LR = 'Liberia',\r\n LY = 'Libya',\r\n LI = 'Liechtenstein',\r\n LT = 'Lithuania',\r\n LU = 'Luxembourg',\r\n MO = 'Macao',\r\n MG = 'Madagascar',\r\n MW = 'Malawi',\r\n MY = 'Malaysia',\r\n MV = 'Maldives',\r\n ML = 'Mali',\r\n MT = 'Malta',\r\n MH = 'Marshall_Islands',\r\n MQ = 'Martinique',\r\n MR = 'Mauritania',\r\n MU = 'Mauritius',\r\n YT = 'Mayotte',\r\n MX = 'Mexico',\r\n FM = 'Micronesia',\r\n MD = 'Moldova',\r\n MC = 'Monaco',\r\n MN = 'Mongolia',\r\n ME = 'Montenegro',\r\n MS = 'Montserrat',\r\n MA = 'Morocco',\r\n MZ = 'Mozambique',\r\n MM = 'Myanmar',\r\n NA = 'Namibia',\r\n NR = 'Nauru',\r\n NP = 'Nepal',\r\n NL = 'Netherlands',\r\n NC = 'New_Caledonia',\r\n NZ = 'New_Zealand',\r\n NI = 'Nicaragua',\r\n NE = 'Niger',\r\n NG = 'Nigeria',\r\n NU = 'Niue',\r\n NF = 'Norfolk_Island',\r\n MK = 'North_Macedonia',\r\n MP = 'Northern_Mariana_Islands',\r\n NO = 'Norway',\r\n OM = 'Oman',\r\n PK = 'Pakistan',\r\n PW = 'Palau',\r\n PS = 'Palestine',\r\n PA = 'Panama',\r\n PG = 'Papua_New_Guinea',\r\n PY = 'Paraguay',\r\n PE = 'Peru',\r\n PH = 'Philippines',\r\n PN = 'Pitcairn',\r\n PL = 'Poland',\r\n PT = 'Portugal',\r\n PR = 'Puerto_Rico',\r\n QA = 'Qatar',\r\n RE = 'Réunion',\r\n RO = 'Romania',\r\n RU = 'Russian_Federation',\r\n RW = 'Rwanda',\r\n BL = 'Saint_Barthélemy',\r\n SH = 'Saint_Helena',\r\n KN = 'Saint_Kitts_And_Nevis',\r\n LC = 'Saint_Lucia',\r\n MF = 'Saint_Martin_French_Part',\r\n PM = 'Saint_Pierre_And_Miquelon',\r\n VC = 'Saint_Vincent_And_The_Grenadines',\r\n WS = 'Samoa',\r\n SM = 'San_Marino',\r\n ST = 'Sao_Tome_And_Principe',\r\n SA = 'Saudi_Arabia',\r\n SN = 'Senegal',\r\n RS = 'Serbia',\r\n SC = 'Seychelles',\r\n SL = 'Sierra_Leone',\r\n SG = 'Singapore',\r\n SX = 'Sint_Maarten_Dutch_Part',\r\n SK = 'Slovakia',\r\n SI = 'Slovenia',\r\n SB = 'Solomon_Islands',\r\n SO = 'Somalia',\r\n ZA = 'South_Africa',\r\n GS = 'South_Georgia_And_The_South_Sandwich_Islands',\r\n SS = 'South_Sudan',\r\n ES = 'Spain',\r\n LK = 'Sri_Lanka',\r\n SD = 'Sudan',\r\n SR = 'Suriname',\r\n SJ = 'Svalbard_and_Jan_Mayen',\r\n SE = 'Sweden',\r\n CH = 'Switzerland',\r\n SY = 'Syrian_Arab_Republic',\r\n TW = 'Taiwan_Province_Of_China',\r\n TJ = 'Tajikistan',\r\n TZ = 'Tanzania',\r\n TH = 'Thailand',\r\n TL = 'Timor_Leste',\r\n TG = 'Togo',\r\n TK = 'Tokelau',\r\n TO = 'Tonga',\r\n TT = 'Trinidad_And_Tobago',\r\n TN = 'Tunisia',\r\n TR = 'Turkey',\r\n TM = 'Turkmenistan',\r\n TC = 'Turks_And_Caicos_Islands',\r\n TV = 'Tuvalu',\r\n UG = 'Uganda',\r\n UA = 'Ukraine',\r\n AE = 'United_Arab_Emirates',\r\n GB = 'United_Kingdom_Of_Great_Britain_And_Northern_Ireland',\r\n UM = 'United_States_Minor_Outlying_Islands',\r\n US = 'United_States_Of_America',\r\n UY = 'Uruguay',\r\n UZ = 'Uzbekistan',\r\n VU = 'Vanuatu',\r\n VE = 'Venezuela',\r\n VN = 'Viet_Nam',\r\n VG = 'Virgin_Islands_British',\r\n VI = 'Virgin_Islands_US',\r\n WF = 'Wallis_And_Futuna',\r\n EH = 'Western_Sahara',\r\n YE = 'Yemen',\r\n ZM = 'Zambia',\r\n ZW = 'Zimbabwe'\r\n}\r\n","import { Component, forwardRef, Input, ViewChild } from '@angular/core';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR, ReactiveFormsModule, FormsModule, UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';\r\nimport { DropDownList, DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { EnumTranslationService } from '../../services/enum-translation.service';\r\nimport { DropDownItemTyped } from '../drop-down-item.model';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { Subscription } from 'rxjs';\r\n\r\n@Component({\r\n selector: 'app-enum-drop-down-list',\r\n templateUrl: './enum-drop-down-list.component.html',\r\n styleUrls: ['./enum-drop-down-list.component.scss'],\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => EnumDropDownListComponent),\r\n multi: true,\r\n }\r\n ],\r\n standalone: true,\r\n imports: [\r\n DropDownListModule,\r\n ReactiveFormsModule,\r\n FormsModule,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class EnumDropDownListComponent implements ControlValueAccessor {\r\n @Input() public showClearButton = true;\r\n @Input() public placeholder = '';\r\n @Input() public width = '200';\r\n\r\n @Input() public set enumType(value: any) {\r\n if (this._enumType === value) {\r\n return;\r\n }\r\n this._enumType = value;\r\n this.init();\r\n }\r\n\r\n @Input() public set baseTranslationString(value: string) {\r\n if (this._baseTranslationString === value) {\r\n return;\r\n }\r\n this._baseTranslationString = value;\r\n this.init();\r\n }\r\n\r\n /**\r\n * Excludes enum members from the dropdown list.\r\n */\r\n @Input() public set excludeEnumMembers(value: number[]) {\r\n if (this._excludeEnumMembers === value) {\r\n return;\r\n }\r\n this._excludeEnumMembers = value;\r\n this.init();\r\n }\r\n\r\n @ViewChild('dropDownList')\r\n private dropDownList: DropDownList;\r\n\r\n public enumSelectionData: DropDownItemTyped[];\r\n\r\n public fields = {text: 'text', value: 'value'};\r\n\r\n public form: UntypedFormGroup;\r\n\r\n private _enumType: any; // unknown since enum type we want to use is not known yet\r\n private _baseTranslationString: string;\r\n private _excludeEnumMembers: number[] = [];\r\n private subscriptions: Subscription[] = [];\r\n\r\n constructor(private formBuilder: UntypedFormBuilder, private enumTranslationService: EnumTranslationService) {\r\n this.form = this.formBuilder.group({\r\n formValue: null\r\n });\r\n this.form.controls.formValue.disable();\r\n\r\n this.subscriptions.push(\r\n // any time the inner form changes update the parent of any change\r\n this.form.valueChanges.subscribe(value => {\r\n this.onChange(value?.formValue);\r\n this.onTouched();\r\n })\r\n );\r\n }\r\n\r\n public onChange: any = () => {};\r\n public onTouched: any = () => {};\r\n\r\n public writeValue(value: any): void {\r\n this.form.controls.formValue.setValue(value);\r\n }\r\n\r\n public registerOnChange(fn): void {\r\n this.onChange = fn;\r\n }\r\n\r\n public registerOnTouched(fn): void {\r\n this.onTouched = fn;\r\n }\r\n\r\n public setDisabledState(isDisabled: boolean): void {\r\n if (isDisabled) {\r\n this.form.controls.formValue.disable();\r\n } else {\r\n this.form.controls.formValue.enable();\r\n }\r\n }\r\n\r\n private init() {\r\n if (!this._enumType || !this._baseTranslationString) {\r\n return;\r\n }\r\n this.enumSelectionData = this.enumTranslationService.translateNumericEnum(this._enumType, this._baseTranslationString, this._excludeEnumMembers);\r\n this.dropDownList?.refresh();\r\n }\r\n}\r\n","
    \r\n \r\n \r\n {{data.text | translate}}\r\n \r\n \r\n {{data.text | translate}}\r\n \r\n \r\n
    \r\n","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\nimport { ControlPlateType, UserControlPlateDTO } from '../../models/models.swagger.generated';\r\nimport { GridBaseComponent } from '../../shared/grid-base/grid-base.component';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { ClientService } from '../../services/client/client.service';\r\nimport { Validators, ReactiveFormsModule, FormBuilder } from '@angular/forms';\r\nimport { CommandModel, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { Observable, of } from 'rxjs';\r\nimport { AutocompleteItem } from '../../shared/autocomplete/autocomplete-item';\r\nimport { CountryISO2 } from '../../shared/countryISO2-enum';\r\nimport { AuthService } from '../../services/auth.service';\r\nimport { SfCommandButtonType, SfRequestTypes } from '../../models/syncfusion-data';\r\nimport { EnumDropDownListComponent } from '../../shared/enum-drop-down-list/enum-drop-down-list.component';\r\nimport { AppErrorMessagesComponent } from '../../error-messages/app-error-messages.component';\r\nimport { AutocompleteComponent } from '../../shared/autocomplete/autocomplete.component';\r\nimport { ToolbarModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { NgIf } from '@angular/common';\r\nimport { UserControlPlateFormType } from './deposited-number-plates-form.type';\r\n\r\n@Component({\r\n selector: 'app-deposited-number-plates',\r\n templateUrl: './deposited-number-plates.component.html',\r\n styleUrls: ['./deposited-number-plates.component.scss'],\r\n standalone: true,\r\n imports: [\r\n GridModule,\r\n NgIf,\r\n ToolbarModule,\r\n ReactiveFormsModule,\r\n AutocompleteComponent,\r\n AppErrorMessagesComponent,\r\n EnumDropDownListComponent,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class DepositedNumberPlatesComponent extends GridBaseComponent implements OnInit {\r\n\r\n @Input() controlPlates: UserControlPlateDTO[] = [];\r\n @Output() controlPlatesChange = new EventEmitter();\r\n\r\n public get isUserStandardUser() {\r\n return this.authService.isUserStandardUser();\r\n }\r\n\r\n public get selectedCountry(): string {\r\n return this.gridEditForm?.controls.countryCode.value;\r\n }\r\n\r\n public set selectedCountry(value: string) {\r\n this.gridEditForm?.controls.countryCode.setValue(value);\r\n this.gridEditForm.markAsDirty();\r\n }\r\n\r\n public countries: AutocompleteItem[] = [];\r\n public ControlPlateType = ControlPlateType;\r\n public dropdownSettings = {text: 'name', value: 'id'};\r\n\r\n constructor(translateService: TranslateService,\r\n clientService: ClientService,\r\n private fb: FormBuilder,\r\n private translate: TranslateService,\r\n private authService: AuthService) {\r\n super(clientService, translateService, null);\r\n this.gridCommands = [];\r\n }\r\n\r\n ngOnInit(): void {\r\n this.editDialogTitle = 'i18n.base.user-management.deposited-number-plates.edit-dialog-title';\r\n this.addDialogTitle = 'i18n.base.user-management.deposited-number-plates.add-dialog-title';\r\n if (this.isUserStandardUser) {\r\n this.gridCommands = [\r\n {\r\n type: SfCommandButtonType.Edit,\r\n buttonOption: {\r\n cssClass: 'icon-btn',\r\n iconCss: 'icon-edit e-icons',\r\n },\r\n },\r\n {\r\n type: SfCommandButtonType.Delete,\r\n buttonOption: {\r\n cssClass: 'icon-btn',\r\n iconCss: 'icon-trash-can e-icons e-danger',\r\n },\r\n },\r\n ] as CommandModel[];\r\n }\r\n\r\n // eslint-disable-next-line guard-for-in\r\n for (const country in CountryISO2) {\r\n this.countries.push({id: country, name: this.translate.instant('i18n.shared.CountryISO2.' + country)});\r\n }\r\n }\r\n\r\n public getCountries(searchText: string): Observable {\r\n return of(this.countries.filter(country => country.name.toLowerCase().includes(searchText?.toLowerCase())));\r\n }\r\n\r\n public override actionBegin(args) {\r\n if ((args.requestType === SfRequestTypes.BeginEdit || args.requestType === SfRequestTypes.Add) && !this.isUserStandardUser) {\r\n args.cancel = true;\r\n return;\r\n }\r\n super.actionBegin(args);\r\n }\r\n\r\n public override actionComplete(args) {\r\n super.actionComplete(args);\r\n this.controlPlatesChange.emit(this.controlPlates);\r\n }\r\n\r\n public formatControlPlateType(data): string {\r\n return 'i18n.shared.controlPlateType.' + ControlPlateType[data.controlPlateType];\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData: any): any {\r\n }\r\n\r\n protected initializeEditForm(data: UserControlPlateDTO): void {\r\n this.gridEditForm = this.fb.group({\r\n id: this.fb.control(data.id ?? 0),\r\n countryCode: this.fb.control(data.countryCode, [Validators.required]),\r\n controlPlateNumber: this.fb.control(data.controlPlateNumber, [Validators.required, Validators.maxLength(10)]),\r\n controlPlateType: this.fb.control(data.controlPlateType, [Validators.required])\r\n });\r\n }\r\n}\r\n","
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.controlPlateNumber | translate}}\r\n \r\n \r\n \r\n {{formatControlPlateType(data) | translate}}\r\n \r\n {{formatControlPlateType(data) | translate}}\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { LanguageService } from '../../services/language.service';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport {\r\n ClientDTO,\r\n FilterDTO,\r\n FilterOperator,\r\n LinkedParkerDTO,\r\n ParkerCompanyClient,\r\n ParkerCompanyDTO,\r\n Role,\r\n SortDirection,\r\n UserAccountClient,\r\n UserControlPlateDTO,\r\n UserInfoDTO,\r\n} from '../../models/models.swagger.generated';\r\nimport { DropDownConstantsFactory } from '../../shared/syncfusion/dropdown-constants-factory';\r\nimport { SpinnerService } from '../../spinner/spinner.service';\r\nimport { AfterViewChecked, ChangeDetectorRef, Component, Input, OnDestroy, OnInit, ViewChild } from '@angular/core';\r\nimport { Validators, ReactiveFormsModule } from '@angular/forms';\r\nimport { AuthService } from '../../services/auth.service';\r\nimport { Subscription } from 'rxjs';\r\nimport { TooltipComponent, TooltipModule } from '@syncfusion/ej2-angular-popups';\r\nimport { ClientService } from '../../services/client/client.service';\r\nimport { startWith } from 'rxjs/operators';\r\nimport { LinkedParkerComponent } from '../linked-parker/linked-parker.component';\r\nimport { DepositedNumberPlatesComponent } from '../deposited-number-plates/deposited-number-plates.component';\r\nimport { YesNoGroupButtonComponent } from '../../shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { ButtonGroupComponent } from '../../shared/button-group/button-group.component';\r\nimport { DatePickerModule } from '@syncfusion/ej2-angular-calendars';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { ClientAutocompleteComponent } from '../../shared/client-autocomplete/client-autocomplete.component';\r\nimport { AppErrorMessagesComponent } from '../../error-messages/app-error-messages.component';\r\nimport { NgClass, NgIf, DatePipe } from '@angular/common';\r\nimport { UserEditFormGroup } from './user-edit-form-type';\r\n\r\n@Component({\r\n selector: 'app-user-edit-form',\r\n templateUrl: './user-edit-form.component.html',\r\n styleUrls: ['./user-edit-form.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, NgClass, AppErrorMessagesComponent, NgIf, ClientAutocompleteComponent, DropDownListModule, TooltipModule, DatePickerModule, ButtonGroupComponent, YesNoGroupButtonComponent, DepositedNumberPlatesComponent, LinkedParkerComponent, DatePipe, TranslateModule]\r\n})\r\nexport class UserEditFormComponent implements OnInit, AfterViewChecked, OnDestroy {\r\n @Input() public userEditForm: UserEditFormGroup;\r\n @Input() public selectedClientId: number = null;\r\n @Input() public selectedUser: UserInfoDTO = null;\r\n\r\n @ViewChild('validUntilToolTip') private validUntilToolTip: TooltipComponent;\r\n\r\n public dropdownSettings = DropDownConstantsFactory.createStandardClientDropdownSettings();\r\n public languageDropdownSettings = { text: 'value', value: 'key' };\r\n public isAdd = true;\r\n public languageDropDowItems: any[] = [];\r\n public hiddenRoles: Role[] = [Role.None, Role.User, Role.Proxy, Role.CompanyAdmin];\r\n public Role = Role;\r\n public initialRole: Role;\r\n public companies: ParkerCompanyDTO[] = [];\r\n\r\n public get formFields() {\r\n return this.userEditForm.controls;\r\n }\r\n public get clients(): ClientDTO[] {\r\n return this.clientService.clients;\r\n }\r\n public get isParkingRanger(): boolean {\r\n return this.userEditForm.value.role === Role.ParkingRanger;\r\n }\r\n\r\n public get isLoggedInUser(): boolean {\r\n return this.userEditForm.value.userId === this.authService.getUserInfo().userId;\r\n }\r\n\r\n public get controlPlates(): UserControlPlateDTO[] {\r\n return this.userEditForm.controls.controlPlates.value;\r\n }\r\n\r\n public set controlPlates(data: UserControlPlateDTO[]) {\r\n this.userEditForm.controls.controlPlates.setValue(data);\r\n }\r\n\r\n public get linkedParkers(): LinkedParkerDTO[] {\r\n return this.userEditForm.controls.linkedParkers.value;\r\n }\r\n\r\n public set linkedParkers(data: LinkedParkerDTO[]) {\r\n this.userEditForm.controls.linkedParkers.setValue(data);\r\n }\r\n\r\n private subscriptions = new Subscription();\r\n\r\n constructor(\r\n public authService: AuthService,\r\n private clientService: ClientService,\r\n private userAccountClient: UserAccountClient,\r\n private languageService: LanguageService,\r\n private translate: TranslateService,\r\n private cdr: ChangeDetectorRef,\r\n private spinnerService: SpinnerService,\r\n private parkerCompanyClient: ParkerCompanyClient\r\n ) {\r\n }\r\n\r\n public ngOnInit() {\r\n this.isAdd = !this.userEditForm.value.userId;\r\n this.initialRole = this.userEditForm.value.role;\r\n\r\n this.initializeForms();\r\n this.loadClients();\r\n if (this.authService.isUserAdmin()) {\r\n this.hiddenRoles = [Role.None, Role.Proxy, Role.User, Role.ParkingRanger, Role.ThirdPartyParkingControl, Role.CompanyAdmin, Role.BIAdmin, Role.BIClientUser];\r\n if (!this.isAdd && (this.initialRole == Role.ClientAdmin || this.initialRole == Role.ClientUser)) {\r\n this.hiddenRoles = [...this.hiddenRoles, Role.Admin];\r\n }\r\n } else {\r\n // case client admin\r\n this.hiddenRoles = [Role.None, Role.Admin, Role.Proxy, Role.User, Role.ParkingRanger, Role.ThirdPartyParkingControl, Role.CompanyAdmin, Role.BIAdmin, Role.BIClientUser];\r\n }\r\n this.loadCompanies();\r\n this.subscriptions.add(this.userEditForm.controls.role.valueChanges.subscribe((v: Role) => {\r\n if (v === Role.Admin || v === Role.User) {\r\n if (v === Role.Admin || v === Role.User) {\r\n this.userEditForm.controls.client.reset();\r\n }\r\n this.userEditForm.controls.client.setValidators([]);\r\n this.userEditForm.controls.client.disable({ emitEvent: false });\r\n } else {\r\n this.userEditForm.controls.client.setValidators([Validators.required]);\r\n this.userEditForm.controls.client.enable({ emitEvent: false });\r\n }\r\n this.userEditForm.controls.client.updateValueAndValidity({ emitEvent: false });\r\n }));\r\n\r\n this.subscriptions.add(this.userEditForm.controls.client.valueChanges.subscribe((client: ClientDTO) => {\r\n this.loadCompanies(client);\r\n }));\r\n\r\n this.subscriptions.add(this.userEditForm.controls.companyId.valueChanges.subscribe((companyId: number) => {\r\n if (companyId) {\r\n // remove CompayAdmin role from hidden roles if company is selected\r\n this.hiddenRoles = this.hiddenRoles.filter(r => r !== Role.CompanyAdmin);\r\n } else {\r\n // add CompayAdmin role to hidden roles if company is not selected\r\n this.hiddenRoles.push(Role.CompanyAdmin);\r\n this.hiddenRoles = [...this.hiddenRoles];\r\n }\r\n this.userEditForm.controls.role.updateValueAndValidity({ emitEvent: false });\r\n this.userEditForm.controls.companyId.updateValueAndValidity({ emitEvent: false });\r\n }));\r\n }\r\n\r\n private loadCompanies(client: ClientDTO = null) {\r\n if (this.selectedUser) { // in edit mode we just add the company of the user and disable it.\r\n if (!(this.companies.length > 0) && this.selectedUser.company) {\r\n this.companies.push(this.selectedUser.company);\r\n this.hiddenRoles = this.hiddenRoles.filter(r => r !== Role.CompanyAdmin);\r\n return;\r\n }\r\n }\r\n if (client == null) {\r\n client = this.authService.getUserInfo().client ?? this.userEditForm.value.client;\r\n }\r\n if (client) {\r\n this.userEditForm.controls.companyId.reset();\r\n\r\n const filters = [];\r\n filters.push(new FilterDTO({ isComplex: false, field: 'Active', operator: FilterOperator.Equal, value: 'true' }));\r\n this.subscriptions.add(this.parkerCompanyClient.searchParkerCompanies(client.id, filters, 0, 0, 'Id', SortDirection.Ascending)\r\n .subscribe(companies => {\r\n this.companies = companies.items;\r\n }));\r\n }\r\n }\r\n\r\n public ngAfterViewChecked(): void {\r\n this.cdr.detectChanges();\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this.subscriptions.unsubscribe();\r\n }\r\n\r\n public hideClient() {\r\n return this.authService.getUserInfo().clientId || this.isLoggedInUser;\r\n }\r\n\r\n public generateCode() {\r\n this.spinnerService.showSpinner = true;\r\n this.userAccountClient.regenerateAccessCode(this.userEditForm.value.userId).subscribe((userInfoDTO: UserInfoDTO) => {\r\n this.userEditForm.patchValue({\r\n accessCodeValidUntil: userInfoDTO.accessCodeValidUntil?.toJSDate() ?? null,\r\n accessCodeGeneratedOn: userInfoDTO.accessCodeGeneratedOn?.toJSDate() ?? null,\r\n });\r\n this.validUntilToolTip.open();\r\n setTimeout(() => {\r\n this.validUntilToolTip.close();\r\n }, 5000);\r\n this.spinnerService.showSpinner = false;\r\n });\r\n }\r\n\r\n private initializeForms(): void {\r\n if (this.initialRole === Role.User) {\r\n this.userEditForm.controls.address.setValidators([Validators.required]);\r\n this.userEditForm.controls.zip.setValidators([Validators.required]);\r\n this.userEditForm.controls.city.setValidators([Validators.required]);\r\n this.userEditForm.controls.country.setValidators([Validators.required]);\r\n this.userEditForm.controls.address.updateValueAndValidity({ emitEvent: false });\r\n this.userEditForm.controls.zip.updateValueAndValidity({ emitEvent: false });\r\n this.userEditForm.controls.city.updateValueAndValidity({ emitEvent: false });\r\n this.userEditForm.controls.country.updateValueAndValidity({ emitEvent: false });\r\n }\r\n this.subscriptions.add(this.translate.onLangChange.pipe(startWith({})).subscribe(v => {\r\n this.languageDropDowItems = this.languageService.getLanguages()\r\n .map(l => ({ key: l, value: this.translate.instant('i18n.base.shared.Language.' + l) }));\r\n }));\r\n }\r\n\r\n private getClientById(id: number): ClientDTO {\r\n return id ? this.clients?.find(c => c.id === id) : null;\r\n }\r\n\r\n private loadClients() {\r\n const loggedInUser = this.authService.getUserInfo();\r\n if (loggedInUser.client != null) {\r\n this.userEditForm.controls.client.setValue(loggedInUser.client);\r\n this.loadCompanies(loggedInUser.client);\r\n if (loggedInUser.companyId != null) {\r\n this.userEditForm.controls.companyId.setValue(loggedInUser.companyId);\r\n }\r\n }\r\n else {\r\n // patch client to the form if required\r\n if (this.userEditForm.value.client && this.userEditForm.value.client.id) {\r\n this.userEditForm.controls.client.setValue(this.getClientById(this.userEditForm.value.client.id));\r\n this.loadCompanies(this.getClientById(this.userEditForm.value.client.id));\r\n } else if (this.isAdd) {\r\n this.userEditForm.controls.client.setValue(this.getClientById(this.selectedClientId));\r\n this.loadCompanies(this.getClientById(this.selectedClientId));\r\n }\r\n }\r\n }\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n\r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { Injectable } from '@angular/core';\r\nimport { UpdateControlPlatesDTO, UpdateUserInfoDTO, UserAccountClient, UserControlPlateClient, UserControlPlateDTO, UserInfoDTO } from '../models/models.swagger.generated';\r\nimport { forkJoin, map, Observable, of } from 'rxjs';\r\nimport { AuthService } from '../services/auth.service';\r\nimport { UntypedFormGroup } from '@angular/forms';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class EditProfileService {\r\n\r\n constructor(\r\n private authService: AuthService,\r\n private userAccountClient: UserAccountClient,\r\n private userControlPlateClient: UserControlPlateClient) { }\r\n\r\n public resolve(): Observable {\r\n return this.authService.loadUserInfoDTO();\r\n }\r\n\r\n public save(form: UntypedFormGroup): Observable {\r\n if (form.valid) {\r\n return forkJoin({\r\n updatedUser: this.userAccountClient.updateUser(this.mapToUpdateUserInfoDTO(form.getRawValue())),\r\n userControlPlates: this.userControlPlateClient.updateUserControlPlates(new UpdateControlPlatesDTO({controlPlates: form.value.controlPlates.map(p => new UserControlPlateDTO(p))}))\r\n }).pipe(map((result) => {\r\n this.authService.loadUserInfoDTO().subscribe();\r\n return result.updatedUser;\r\n }));\r\n } else {\r\n return of(null);\r\n }\r\n }\r\n\r\n private mapToUpdateUserInfoDTO(formData: any): UpdateUserInfoDTO {\r\n const dto = new UpdateUserInfoDTO();\r\n dto.firstname = formData.firstname;\r\n dto.lastname = formData.lastname;\r\n dto.userId = formData.userId;\r\n dto.clientId = formData.clientId;\r\n dto.email = formData.email;\r\n dto.enabled = formData.enabled;\r\n dto.language = formData.language;\r\n dto.phoneNumber = formData.phoneNumber;\r\n dto.address = formData.address;\r\n dto.zip = formData.zip;\r\n dto.city = formData.city;\r\n dto.country = formData.country;\r\n dto.roles = [formData.role];\r\n dto.accessCodeValidUntil = formData.accessCodeValidUntil;\r\n\r\n return dto;\r\n }\r\n}\r\n","import { EditProfileService } from './edit-profile.service';\r\nimport { CustomValidatorsFactory } from 'src/app/base/shared/validators/custom-validators-factory';\r\nimport { ToastService } from 'src/app/base/services/toast.service';\r\nimport { homeRoute } from '../../core/routing/route-names';\r\nimport { Router } from '@angular/router';\r\nimport { UntypedFormBuilder, Validators } from '@angular/forms';\r\nimport { UserInfoDTO } from '../models/models.swagger.generated';\r\nimport { AuthService } from '../services/auth.service';\r\nimport { Component } from '@angular/core';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { UserEditFormComponent } from '../user-management/user-edit-form/user-edit-form.component';\r\nimport { TitleBarComponent } from '../shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-edit-profile',\r\n templateUrl: './edit-profile.component.html',\r\n styleUrls: ['./edit-profile.component.scss'],\r\n standalone: true,\r\n imports: [TitleBarComponent, UserEditFormComponent, TranslateModule]\r\n})\r\nexport class EditProfileComponent {\r\n\r\n public userInfo: UserInfoDTO = this.authService.getUserInfo();\r\n\r\n public userEditForm = this.fb.group({\r\n userId: [this.userInfo.userId],\r\n firstname: [this.userInfo.firstname, [Validators.required]],\r\n lastname: [this.userInfo.lastname, [Validators.required]],\r\n userName: [{value: this.userInfo.userName, disabled: true}],\r\n language: [this.userInfo.language, [Validators.required]],\r\n email: [{value: this.userInfo.email, disabled: true}, [Validators.required, Validators.email]],\r\n phoneNumber: [this.userInfo.phoneNumber, [CustomValidatorsFactory.createPhoneValidator()]],\r\n address: [this.userInfo.address],\r\n city: [this.userInfo.city],\r\n zip: [this.userInfo.zip],\r\n country: [this.userInfo.country],\r\n enabled: [this.userInfo.enabled ?? false],\r\n client: [this.userInfo.client],\r\n clientId: [{value: this.userInfo.clientId, disabled: true}],\r\n accessCode: [this.userInfo.accessCode],\r\n accessCodeValidUntil: [this.userInfo.accessCodeValidUntil\r\n ? this.userInfo.accessCodeValidUntil.toJSDate()\r\n : null,\r\n [CustomValidatorsFactory.accessCodeDateValidator()]],\r\n accessCodeGeneratedOn: [this.userInfo.accessCodeGeneratedOn],\r\n accessCodeUsedOn: [this.userInfo.accessCodeUsedOn],\r\n role: [!!this.userInfo.roles?.length ? this.userInfo.roles[0] : null, [Validators.required]],\r\n controlPlates: [this.userInfo.controlPlates?.length ? this.userInfo.controlPlates : []],\r\n linkedParkers: [this.userInfo.linkedParkers?.length ? this.userInfo.linkedParkers : []]\r\n });\r\n\r\n constructor(private authService: AuthService,\r\n private editProfileService: EditProfileService,\r\n private toastService: ToastService,\r\n private router: Router,\r\n private fb: UntypedFormBuilder) {\r\n }\r\n\r\n public save(): void {\r\n if (this.userEditForm.valid) {\r\n this.editProfileService.save(this.userEditForm).subscribe({ \r\n next: (res) => {\r\n this.router.navigate([homeRoute]);\r\n }, error: error => {\r\n this.toastService.showApiExeption(error,\r\n 'i18n.core.messages.user-edit.title',\r\n 'i18n.core.messages.user-edit.message');\r\n }});\r\n }\r\n }\r\n}\r\n","\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n","import { Input, OnInit } from '@angular/core';\r\nimport { Component } from '@angular/core';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { ParkingRangerSessionDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { GridBaseComponent } from 'src/app/base/shared/grid-base/grid-base.component';\r\nimport { AvpCustomAdaptor } from 'src/app/base/shared/syncfusion/avp-custom-adaptor';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { NgIf } from '@angular/common';\r\nimport { GridModule } from '@syncfusion/ej2-angular-grids';\r\n\r\n@Component({\r\n selector: 'app-parking-ranger-session-details-list',\r\n templateUrl: './parking-ranger-session-details-list.component.html',\r\n styleUrls: ['./parking-ranger-session-details-list.component.scss'],\r\n standalone: true,\r\n imports: [\r\n GridModule,\r\n NgIf,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class ParkingRangerSessionDetailsListComponent extends GridBaseComponent implements OnInit {\r\n\r\n @Input()\r\n public set sessionData(sessionData: ParkingRangerSessionDTO) {\r\n this.selectedSession = sessionData;\r\n }\r\n\r\n public selectedSession: ParkingRangerSessionDTO;\r\n\r\n constructor(\r\n translateService: TranslateService,\r\n clientService: ClientService,\r\n private spinnerService: SpinnerService,\r\n ) {\r\n super(clientService, translateService, clientService);\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.clientService, this.spinnerService),\r\n });\r\n }\r\n\r\n protected initializeEditForm(data: any): void {\r\n throw new Error('Method not implemented.');\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData: any) {\r\n throw new Error('Method not implemented.');\r\n }\r\n}\r\n","\r\n \r\n \r\n \r\n \r\n \r\n {{ data.knownTag?.parker ? data.knownTag.parker.firstName + ' ' + data.knownTag.parker.lastName : ''}}\r\n \r\n \r\n \r\n \r\n {{data.knownTag?.countryCode ?? data.unknownParkerTagCountryCode }} {{data.knownTag?.controlPlateNumber ?? data.unknownParkerTagControlPlateNumber}}\r\n \r\n \r\n \r\n \r\n {{data.registeredZoneName}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n","import { MapBoxMode } from 'src/app/base/shared/map-box-map/map-box-map.component';\r\nimport { Component, OnInit, OnDestroy } from '@angular/core';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { RowSelectEventArgs } from '@syncfusion/ej2-angular-grids/public_api';\r\nimport { ClientDTO, ExtendedParkingRangerSessionDTO, ParkingRangerSessionDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { GridBaseComponent } from 'src/app/base/shared/grid-base/grid-base.component';\r\nimport { AvpCustomAdaptor } from 'src/app/base/shared/syncfusion/avp-custom-adaptor';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { ParkingRangerSessionsService } from './parking-ranger-sessions.service';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { FormBuilder, FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { DateHelper, DATE_HELPER_DEFAULT_TIME_ZONE } from 'src/app/base/shared/date-helper';\r\nimport { Subscription } from 'rxjs';\r\nimport { ParkingRangerSessionDetailsListComponent } from './parking-ranger-session-details-list/parking-ranger-session-details-list.component';\r\nimport { ButtonModule } from '@syncfusion/ej2-angular-buttons';\r\nimport { GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { NgIf, NgClass } from '@angular/common';\r\nimport { DatePickerModule } from '@syncfusion/ej2-angular-calendars';\r\nimport { ClientAutocompleteComponent } from '../../base/shared/client-autocomplete/client-autocomplete.component';\r\nimport { TitleBarComponent } from '../../base/shared/title-bar/title-bar.component';\r\nimport { MapBoxMapComponent } from \"../../base/shared/map-box-map/map-box-map.component\";\r\n\r\n@Component({\r\n selector: 'app-parking-ranger-sessions',\r\n templateUrl: './parking-ranger-sessions.component.html',\r\n styleUrls: ['./parking-ranger-sessions.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TitleBarComponent,\r\n ReactiveFormsModule,\r\n ClientAutocompleteComponent,\r\n DatePickerModule,\r\n NgIf,\r\n GridModule,\r\n ButtonModule,\r\n NgClass,\r\n ParkingRangerSessionDetailsListComponent,\r\n TranslateModule,\r\n MapBoxMapComponent\r\n],\r\n})\r\nexport class ParkingRangerSessionsComponent extends GridBaseComponent implements OnInit, OnDestroy {\r\n\r\n public override get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public override set selectedClient(value: ClientDTO) {\r\n if (this.clientService.selectedClient != value) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n }\r\n }\r\n\r\n public get line() {\r\n return this.selectedParkingRangerSession.positions\r\n .map(position => `${position.lat},${position.lon}`)\r\n .join(';');\r\n }\r\n\r\n public today = new Date();\r\n public twoDaysAgo = new Date();\r\n public tabToggleStatus = false;\r\n public showContent = false;\r\n\r\n public parkingRangerSessions: ParkingRangerSessionDTO[];\r\n public selectedParkingRangerSession: ExtendedParkingRangerSessionDTO;\r\n public selectedParkingRangerSessionId: number;\r\n\r\n public timeForm: FormGroup<{startTime: FormControl; endTime: FormControl}> = this.fb.group({\r\n startTime: [new Date()],\r\n endTime: [new Date()],\r\n });\r\n\r\n MapBoxMode = MapBoxMode;\r\n\r\n private subscriptions = new Subscription();\r\n\r\n constructor(private fb: FormBuilder,\r\n translateService: TranslateService,\r\n clientService: ClientService,\r\n private parkingRangerSessionsService: ParkingRangerSessionsService,\r\n private spinnerService: SpinnerService) {\r\n super(clientService, translateService, parkingRangerSessionsService);\r\n }\r\n\r\n ngOnInit() {\r\n this.today.setHours(23, 59, 59, 0);\r\n this.timeForm.controls.endTime.setValue(this.today);\r\n this.twoDaysAgo.setHours(0, 0, 0, 0);\r\n this.twoDaysAgo.setDate(this.twoDaysAgo.getDate() - 2);\r\n this.timeForm.controls.startTime.setValue(this.twoDaysAgo);\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.parkingRangerSessionsService, this.spinnerService),\r\n });\r\n this.subscriptions.add(this.timeForm.controls.startTime.valueChanges.subscribe(() => {\r\n this.search();\r\n }));\r\n this.subscriptions.add(this.timeForm.controls.endTime.valueChanges.subscribe(() => {\r\n this.search();\r\n }));\r\n this.search();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.subscriptions?.unsubscribe();\r\n }\r\n\r\n public override onClientSelected(client: ClientDTO): void {\r\n this.showContent = false;\r\n this.search();\r\n }\r\n\r\n public search() {\r\n if (this.selectedClient) {\r\n this.parkingRangerSessionsService.getParkingRangerSessions(\r\n this.selectedClient.id,\r\n DateHelper.getDateTimeFromJsDateInTimeZone(this.timeForm.controls.startTime.value, DATE_HELPER_DEFAULT_TIME_ZONE)?.toString(),\r\n DateHelper.getDateTimeFromJsDateInTimeZone(this.timeForm.controls.endTime.value, DATE_HELPER_DEFAULT_TIME_ZONE)?.toString(),\r\n ).subscribe(data => {\r\n this.parkingRangerSessions = data.items;\r\n this.selectedParkingRangerSession = null;\r\n this.showContent = true;\r\n });\r\n }\r\n }\r\n\r\n public rowSelected(args: RowSelectEventArgs): void {\r\n const parkingRangerSessions = args.data as ParkingRangerSessionDTO;\r\n this.selectedParkingRangerSessionId = parkingRangerSessions.id;\r\n if (args.data) {\r\n this.getSession();\r\n }\r\n }\r\n\r\n public tabToggle(toggleBoolean: boolean) {\r\n this.tabToggleStatus = toggleBoolean;\r\n }\r\n\r\n public getSession(): void {\r\n this.parkingRangerSessionsService.getParkingRangerSession(this.selectedParkingRangerSessionId).subscribe(data => {\r\n this.selectedParkingRangerSession = data;\r\n });\r\n }\r\n\r\n protected initializeEditForm(data: any): void {\r\n throw new Error('Method not implemented.');\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData: any) {\r\n throw new Error('Method not implemented.');\r\n }\r\n}\r\n","\r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n {{'i18n.domain.parking-ranger-sessions.grid.title' | translate}}\r\n \r\n
    \r\n \r\n \r\n \r\n \r\n {{data.sessionStartTime.toFormat('dd.MM.yyyy')}}\r\n \r\n \r\n \r\n \r\n {{data.sessionStartTime.toFormat('HH:mm')}}\r\n \r\n \r\n \r\n \r\n {{data.sessionEndTime ? data.sessionEndTime.toFormat('HH:mm') : 'i18n.domain.parking-ranger-sessions.active' | translate}}\r\n \r\n \r\n \r\n \r\n {{data.user.firstname}} {{data.user.lastname}}\r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n","export enum ParkerRegistrationDataType {\r\n Raw,\r\n Evaluated\r\n}\r\n","import { TranslateService } from '@ngx-translate/core';\r\nimport { LimitedUserInfoDTO, ParkerRegistrationDTO, ParkerRegistrationType, ParkerRegistrationWithParkerInfoDTO } from 'src/app/base/models/models.swagger.generated';\r\n\r\nexport class ParkerRegistrationDetailsHelper {\r\n public static getRegisteredByText(registration: ParkerRegistrationDTO | ParkerRegistrationWithParkerInfoDTO, translate: TranslateService): string {\r\n if (!registration) {\r\n return null;\r\n }\r\n if (registration.type === ParkerRegistrationType.AutoScheduleEntry\r\n || registration.type === ParkerRegistrationType.AutoScheduleClose) {\r\n return translate.instant('i18n.domain.parker-registration.fields.agentTextForAutomaticEntry');\r\n }\r\n else {\r\n if (registration?.registeredByUserAgent) {\r\n return this.getAgentName(registration.registeredByUserAgent);\r\n }\r\n return registration?.registeredByZoneDeviceName;\r\n }\r\n }\r\n\r\n public static getAgentName(user: LimitedUserInfoDTO) {\r\n return `${user.firstname} ${user.lastname}`;\r\n }\r\n}\r\n","import { Component, Input } from '@angular/core';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { ParkerRegistrationDTO, ParkerRegistrationOffense, ParkerRegistrationClient, PenaltyState } from 'src/app/base/models/models.swagger.generated';\r\nimport { ParkerRegistrationDetailsHelper } from '../parker-registration-details.helper';\r\nimport { AsyncImageComponent } from '../../../../base/shared/async-image/async-image.component';\r\nimport { TooltipModule } from '@syncfusion/ej2-angular-popups';\r\nimport { NgIf, NgClass, NgFor } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-parker-registration-detail-offense',\r\n templateUrl: './parker-registration-detail-offense.component.html',\r\n styleUrls: ['./parker-registration-detail-offense.component.scss'],\r\n standalone: true,\r\n imports: [NgIf, NgClass, TooltipModule, NgFor, AsyncImageComponent, TranslateModule]\r\n})\r\nexport class ParkerRegistrationDetailOffenseComponent {\r\n @Input()\r\n public offense: ParkerRegistrationDTO;\r\n\r\n @Input()\r\n public displayIssuerName: boolean;\r\n\r\n public penaltyStateCancelled = PenaltyState.Cancelled;\r\n\r\n constructor(private translate: TranslateService,\r\n private parkerRegistrationClient: ParkerRegistrationClient) { }\r\n\r\n public getRegisteredByText(registration: ParkerRegistrationDTO): string {\r\n return ParkerRegistrationDetailsHelper.getRegisteredByText(registration, this.translate);\r\n }\r\n\r\n public getOffenseType(registration: ParkerRegistrationDTO): string {\r\n return !registration ? null : 'i18n.domain.parker-registration.ParkerRegistrationOffense.' + ParkerRegistrationOffense[registration.offense];\r\n }\r\n\r\n public getImageRequest(id: number, imageId: string): any {\r\n return this.parkerRegistrationClient.getRegistrationImage(id, imageId);\r\n }\r\n}\r\n","
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    {{getOffenseType(offense) | translate}}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    {{getRegisteredByText(offense)}}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    {{offense?.penaltyNumber}}
    \r\n
    \r\n
    \r\n \r\n
    {{offense?.penaltyParkingNumber}}
    \r\n
    \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n","import { ParkerInfoDTO, ParkerTagDTO } from './../../../../base/models/models.swagger.generated';\r\nimport { Component, Input } from '@angular/core';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\n\r\n@Component({\r\n selector: 'app-parker-registration-detail-parker-details',\r\n templateUrl: './parker-registration-detail-parker-details.component.html',\r\n styleUrls: ['./parker-registration-detail-parker-details.component.scss'],\r\n standalone: true,\r\n imports: [TranslateModule]\r\n})\r\nexport class ParkerRegistrationDetailParkerDetailsComponent {\r\n @Input()\r\n public parker: ParkerInfoDTO;\r\n\r\n @Input()\r\n public companyName: string;\r\n\r\n @Input()\r\n public unknowParkerTagFull: string;\r\n\r\n @Input()\r\n public knownTag: ParkerTagDTO;\r\n\r\n public get licenseNumber(): string {\r\n if (this.knownTag) {\r\n return (this.knownTag.countryCode ? this.knownTag.countryCode + ' ' : '') + (this.knownTag.controlPlateNumber ?? '');\r\n }\r\n return this.unknowParkerTagFull;\r\n }\r\n}\r\n","
    \r\n
    \r\n \r\n
    {{parker?.firstName}}
    \r\n
    \r\n
    \r\n \r\n
    {{parker?.lastName}}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    {{parker?.email}}
    \r\n
    \r\n
    \r\n \r\n
    {{companyName}}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    {{parker?.title}}
    \r\n
    \r\n
    \r\n \r\n
    {{parker?.phone}}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    {{parker?.identification}}
    \r\n
    \r\n
    \r\n \r\n
    {{licenseNumber}}
    \r\n
    \r\n
    \r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport {\r\n ParkerRegistrationDTO,\r\n ParkerRegistrationClient,\r\n ParkerRegistrationOffense,\r\n ParkerRegistrationType,\r\n ZoneDTO,\r\n ParkerRegistrationWithParkerInfoDTO} from 'src/app/base/models/models.swagger.generated';\r\nimport { ParkerRegistrationDataType } from 'src/app/base/models/parker-registration-data-type.enum';\r\nimport { ParkerRegistrationDetailsHelper } from '../parker-registration-details.helper';\r\nimport { ParkerRegistrationDetailOffenseComponent } from '../parker-registration-detail-offense/parker-registration-detail-offense.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { ParkerRegistrationDetailParkerDetailsComponent } from '../parker-registration-detail-parker-details/parker-registration-detail-parker-details.component';\r\n\r\n@Component({\r\n selector: 'app-parker-registration-raw-detail',\r\n templateUrl: './parker-registration-raw-detail.component.html',\r\n styleUrls: ['./parker-registration-raw-detail.component.scss'],\r\n standalone: true,\r\n imports: [ParkerRegistrationDetailParkerDetailsComponent, NgIf, ParkerRegistrationDetailOffenseComponent, TranslateModule]\r\n})\r\nexport class ParkerRegistrationRawDetailComponent implements OnInit {\r\n\r\n @Input() public data: ParkerRegistrationDTO;\r\n @Input() public zones: ZoneDTO[];\r\n\r\n public registration: ParkerRegistrationWithParkerInfoDTO = null;\r\n\r\n public ParkerRegistrationType = ParkerRegistrationType;\r\n public ParkerRegistrationOffense = ParkerRegistrationOffense;\r\n public ParkerRegistrationDataType = ParkerRegistrationDataType;\r\n\r\n constructor(private translate: TranslateService,\r\n private parkerRegistrationClient: ParkerRegistrationClient) {\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.parkerRegistrationClient.getExtendedRegistration(this.data.id)\r\n .subscribe(registration => {\r\n this.registration = registration;\r\n });\r\n\r\n const zone = this.zones.find(z => z.id === this.data.registeredZoneId);\r\n }\r\n\r\n public getImageRequest(id: number, imageId: string): any {\r\n return this.parkerRegistrationClient.getRegistrationImage(id, imageId);\r\n }\r\n\r\n public getZoneById(id: number): ZoneDTO {\r\n return this.zones.find(z => z.id === id);\r\n }\r\n\r\n public getRegisteredByText(registration: ParkerRegistrationDTO): string {\r\n return ParkerRegistrationDetailsHelper.getRegisteredByText(registration, this.translate);\r\n }\r\n}\r\n","\r\n\r\n\r\n
    \r\n
    \r\n
    \r\n \r\n
    {{getRegisteredByText(registration)}}
    \r\n
    \r\n
    \r\n \r\n
    {{'i18n.domain.parker-registration.ParkerRegistrationType.' + ParkerRegistrationType[data.type] | translate}}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    {{data.registrationDateTime?.toFormat('dd.MM.yyyy HH:mm:ss')}}
    \r\n
    \r\n
    \r\n \r\n
    {{registration?.registeredZoneName}}
    \r\n
    \r\n
    \r\n\r\n\r\n
    \r\n \r\n
    \r\n","import { controlPlateField } from './../parker-registration.service';\r\nimport { UntypedFormBuilder } from '@angular/forms';\r\nimport { ParkerRegistrationDataType } from './../../../base/models/parker-registration-data-type.enum';\r\nimport { AvpCustomAdaptor } from './../../../base/shared/syncfusion/avp-custom-adaptor';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { SpinnerService } from './../../../base/spinner/spinner.service';\r\nimport { Component, Input, OnInit } from '@angular/core';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { ClientDTO, ControlPlateType, ParkerRegistrationOffense, ParkerRegistrationType, ParkerRegistrationWithParkerInfoDTO, PenaltyState, ZoneDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { GridBaseComponent } from 'src/app/base/shared/grid-base/grid-base.component';\r\nimport { ParkerRegistrationService } from '../parker-registration.service';\r\nimport { CommandModel, ToolbarItems, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { ParkerRegistrationDetailsHelper } from '../parker-registration-detail/parker-registration-details.helper';\r\nimport { GridConstantsFactory } from 'src/app/base/shared/syncfusion/grid-constants-factory';\r\nimport { SfCommandButtonType } from 'src/app/base/models/syncfusion-data';\r\nimport { ParkerRegistrationRawDetailComponent } from '../parker-registration-detail/parker-registration-raw-detail/parker-registration-raw-detail.component';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-parker-registration-raw-table',\r\n templateUrl: './parker-registration-raw-table.component.html',\r\n styleUrls: ['./parker-registration-raw-table.component.scss'],\r\n standalone: true,\r\n imports: [GridModule, CommonModule, ParkerRegistrationRawDetailComponent, TranslateModule]\r\n})\r\nexport class ParkerRegistrationRawTableComponent extends GridBaseComponent implements OnInit {\r\n\r\n @Input() public zones: ZoneDTO[] = [];\r\n\r\n public ParkerRegistrationType = ParkerRegistrationType;\r\n public ParkerRegistrationOffense = ParkerRegistrationOffense;\r\n public ParkerRegistrationDataType = ParkerRegistrationDataType;\r\n public penaltyStateCancelled = PenaltyState.Cancelled;\r\n public toolbarOptions?: ToolbarItems[] = ['ColumnChooser'];\r\n public registrationTypeFilter = GridConstantsFactory.createCheckBoxFilter();\r\n public offenseCheckboxFilter = GridConstantsFactory.createCheckBoxFilter();\r\n public controlPlateTypeFilter = GridConstantsFactory.createCheckBoxFilter();\r\n public activeFilter = GridConstantsFactory.createCheckBoxFilter();\r\n public defectFilter = GridConstantsFactory.createCheckBoxFilter();\r\n public controlPlateField = controlPlateField;\r\n\r\n constructor(public translate: TranslateService,\r\n clientService: ClientService,\r\n public parkerRegistrationService: ParkerRegistrationService,\r\n private fb: UntypedFormBuilder,\r\n private spinnerService: SpinnerService) {\r\n super(clientService, translate, parkerRegistrationService);\r\n this.gridCommands = [{\r\n type: SfCommandButtonType.Edit,\r\n title: this.translate.instant('i18n.domain.parker-registration.tooltips.view-details'),\r\n buttonOption:\r\n {\r\n cssClass: 'icon-btn',\r\n iconCss: 'icon-view e-icons'\r\n }\r\n } as CommandModel];\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.parkerRegistrationService, this.spinnerService)\r\n });\r\n this.isActiveColumnName = 'state';\r\n this.editDialogTitle = 'i18n.domain.parker-registration.dialog.header-raw';\r\n this.addDialogTitle = '';\r\n this.addIndexFindColumnName = 'name';\r\n this.showSaveButton = false;\r\n }\r\n\r\n public getClientById(id: number): ClientDTO {\r\n return this.clientService.clients.find(c => c.id === id);\r\n }\r\n\r\n public refresh(): void {\r\n this.grid.refresh();\r\n }\r\n\r\n public getRegisteredByText(data: ParkerRegistrationWithParkerInfoDTO) {\r\n return ParkerRegistrationDetailsHelper.getRegisteredByText(data, this.translate);\r\n }\r\n\r\n public getUnknownParkerControlPlate(data: ParkerRegistrationWithParkerInfoDTO): string {\r\n const countryCode = data.unknownParkerTagCountryCode ? data.unknownParkerTagCountryCode + ' ' : '';\r\n return countryCode + data.unknownParkerTagControlPlateNumber;\r\n }\r\n\r\n public getCountryCode(data: ParkerRegistrationWithParkerInfoDTO): string {\r\n return data.knownTag ? data.knownTag.countryCode : data.unknownParkerTagCountryCode;\r\n }\r\n\r\n public getControlPlate(data: ParkerRegistrationWithParkerInfoDTO): string {\r\n return data.knownTag ? data.knownTag.controlPlateNumber : data.unknownParkerTagControlPlateNumber;\r\n }\r\n\r\n public formatRegistrationType(data: ParkerRegistrationWithParkerInfoDTO): string {\r\n return 'i18n.domain.parker-registration.ParkerRegistrationType.' + ParkerRegistrationType[data.type];\r\n }\r\n\r\n public formatOffenseType(data: ParkerRegistrationWithParkerInfoDTO): string {\r\n return 'i18n.domain.parker-registration.ParkerRegistrationOffense.' + ParkerRegistrationOffense[data.offense];\r\n }\r\n\r\n public formatControlPlateType(data: ParkerRegistrationWithParkerInfoDTO): string {\r\n return 'i18n.shared.controlPlateType.' + ControlPlateType[data.knownTag.controlPlateType];\r\n }\r\n\r\n protected initializeEditForm(data: any): void {\r\n this.gridEditForm = this.fb.group({\r\n });\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData: any) {\r\n return { params: '' };\r\n }\r\n}\r\n","\r\n \r\n \r\n \r\n \r\n \r\n {{data.registrationDateTime | date:'dd.MM.yyyy HH:mm:ss'}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ formatRegistrationType(data) | translate}}\r\n \r\n \r\n {{ formatRegistrationType(data) | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{getControlPlate(data)}}\r\n \r\n \r\n \r\n \r\n {{ formatControlPlateType(data) | translate}}\r\n \r\n \r\n {{ formatControlPlateType(data) | translate}}\r\n \r\n \r\n \r\n \r\n {{getCountryCode(data)}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ formatOffenseType(data) | translate}}\r\n \r\n \r\n {{ formatOffenseType(data) | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n","import {\r\n ParkerRegistrationDTO,\r\n ParkingSessionDTO,\r\n ParkerRegistrationType,\r\n ParkerRegistrationOffense,\r\n ZoneDTO,\r\n ParkerRegistrationClient} from './../../../../base/models/models.swagger.generated';\r\nimport { Component, Input, OnInit } from '@angular/core';\r\nimport { StringHelper } from 'src/app/base/shared/string-helper';\r\nimport { ParkerRegistrationDetailsHelper } from '../parker-registration-details.helper';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { ParkerRegistrationDetailOffenseComponent } from '../parker-registration-detail-offense/parker-registration-detail-offense.component';\r\nimport { TabModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { NgIf, NgFor } from '@angular/common';\r\nimport { ParkerRegistrationDetailParkerDetailsComponent } from '../parker-registration-detail-parker-details/parker-registration-detail-parker-details.component';\r\n\r\n@Component({\r\n selector: 'app-parker-registration-evaluated-detail',\r\n templateUrl: './parker-registration-evaluated-detail.component.html',\r\n styleUrls: ['./parker-registration-evaluated-detail.component.scss'],\r\n standalone: true,\r\n imports: [ParkerRegistrationDetailParkerDetailsComponent, NgIf, TabModule, NgFor, ParkerRegistrationDetailOffenseComponent, TranslateModule]\r\n})\r\nexport class ParkerRegistrationEvaluatedDetailComponent implements OnInit {\r\n @Input()\r\n public zones: ZoneDTO[];\r\n\r\n @Input()\r\n public set parkingSession(value: ParkingSessionDTO) {\r\n this._parkingSession = value;\r\n if (!value?.parkerRegistrations?.length) {\r\n this.entry = null;\r\n this.exit = null;\r\n } else {\r\n this._parkingSession.parkerRegistrations?.sort((a, b) => a.registrationDateTime.valueOf() - b.registrationDateTime.valueOf());\r\n this.entry = this._parkingSession.parkerRegistrations[0];\r\n if (this._parkingSession.isClosed) {\r\n this.exit = this._parkingSession.parkerRegistrations[this._parkingSession.parkerRegistrations.length - 1];\r\n }\r\n // this.offenses = this._parkingSession.parkerRegistrations.filter((r: ParkerRegistrationDTO) => r.offense !== ParkerRegistrationOffense.NoOffense);\r\n }\r\n }\r\n\r\n public entry: ParkerRegistrationDTO;\r\n public exit: ParkerRegistrationDTO;\r\n public offenses: ParkerRegistrationDTO[] = [];\r\n private _parkingSession: ParkingSessionDTO;\r\n\r\n constructor(private translate: TranslateService,\r\n private parkerRegistrationClient: ParkerRegistrationClient) {\r\n }\r\n\r\n // eslint-disable-next-line @typescript-eslint/adjacent-overload-signatures\r\n public get parkingSession(): ParkingSessionDTO {\r\n return this._parkingSession;\r\n }\r\n\r\n public ngOnInit(): void {\r\n this._parkingSession.parkerRegistrations.forEach(registration => {\r\n this.parkerRegistrationClient.getExtendedRegistration(registration.id)\r\n .subscribe(newRegistration => {\r\n registration = newRegistration;\r\n if(newRegistration.offense !== ParkerRegistrationOffense.NoOffense || newRegistration.penaltyIssued){\r\n this.offenses.push(newRegistration);\r\n }\r\n });\r\n });\r\n this.offenses.sort((a, b) => a.registrationDateTime.valueOf() - b.registrationDateTime.valueOf());\r\n const zone = this.zones.find(z => z.id === this._parkingSession.registeredZoneId);\r\n }\r\n\r\n public getParkingDuration(): string {\r\n if (this.parkingSession.parkingDuration) {\r\n return StringHelper.transformToTimeRepresentation(this.parkingSession.parkingDuration);\r\n }\r\n return '00:00';\r\n }\r\n\r\n public getRegistrationType(registration: ParkerRegistrationDTO): string {\r\n if (!registration) {\r\n return null;\r\n }\r\n return 'i18n.domain.parker-registration.ParkerRegistrationType.' + ParkerRegistrationType[registration.type];\r\n }\r\n\r\n public getRegisteredByText(registration: ParkerRegistrationDTO): string {\r\n return ParkerRegistrationDetailsHelper.getRegisteredByText(registration, this.translate);\r\n }\r\n}\r\n","\r\n\r\n
    \r\n
    \r\n
    \r\n \r\n
    {{getParkingDuration()}}
    \r\n
    \r\n
    \r\n \r\n
    {{parkingSession.registeredZone.name}}
    \r\n
    \r\n
    \r\n
    \r\n
    {{'i18n.domain.parker-registration.dialog.entry' | translate}}
    \r\n
    \r\n
    \r\n \r\n
    {{entry?.registrationDateTime?.toFormat('dd.MM.yyyy HH:mm:ss')}}
    \r\n
    \r\n
    \r\n \r\n
    {{getRegistrationType(entry) | translate}}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    {{getRegisteredByText(entry)}}
    \r\n
    \r\n
    \r\n\r\n
    {{'i18n.domain.parker-registration.dialog.exit' | translate}}
    \r\n
    \r\n
    \r\n \r\n
    {{exit?.registrationDateTime?.toFormat('dd.MM.yyyy HH:mm:ss')}}
    \r\n
    \r\n
    \r\n \r\n
    {{getRegistrationType(exit) | translate}}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    {{getRegisteredByText(exit) | translate}}
    \r\n
    \r\n
    \r\n
    \r\n 0\">\r\n
    \r\n \r\n \r\n \r\n \r\n {{offense.registrationDateTime?.toFormat('dd.MM.yyyy HH:mm')}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n","export enum AdjustParkerRegistrationEvaluatedFunctionType {\r\n AdjustStartTime = 'AdjustStartTime',\r\n AdjustEndTime = 'AdjustEndTime'\r\n}\r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { DateTimePickerModule } from '@syncfusion/ej2-angular-calendars';\r\nimport { AppErrorMessagesComponent } from 'src/app/base/error-messages/app-error-messages.component';\r\nimport { AdjustStartTimeFormGroup } from './adjust-start-time-form.type';\r\nimport { IParkingSessionDTO, ParkerRegistrationType } from 'src/app/base/models/models.swagger.generated';\r\n\r\n@Component({\r\n selector: 'app-adjust-start-time-form',\r\n templateUrl: './adjust-start-time-form.component.html',\r\n styleUrls: ['./adjust-start-time-form.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, AppErrorMessagesComponent, DateTimePickerModule, TranslateModule]\r\n})\r\nexport class AdjustStartTimeFormComponent implements OnInit {\r\n @Input() public adjustStartTimeForm: AdjustStartTimeFormGroup;\r\n @Input() public parkingSession: IParkingSessionDTO;\r\n\r\n public maxDate;\r\n\r\n ngOnInit() {\r\n this.maxDate = this.calculateMaxStartTime();\r\n }\r\n\r\n private calculateMaxStartTime(): Date {\r\n if (!this.parkingSession) {\r\n return new Date();\r\n }\r\n let date : Date;\r\n const fixedRegistrations = this.parkingSession.parkerRegistrations?.filter(r => r.type === ParkerRegistrationType.AutoScheduleClose || r.type === ParkerRegistrationType.ParkingRangerEntry) ?? [];\r\n if (fixedRegistrations.length > 0) {\r\n fixedRegistrations.sort((a, b) => a.registrationDateTime.diff(b.registrationDateTime).toMillis());\r\n date = fixedRegistrations[0].registrationDateTime?.toJSDate() ?? new Date();\r\n } else {\r\n date = this.parkingSession.lastEntryDateTime?.toJSDate() ?? new Date();\r\n }\r\n return date;\r\n }\r\n}\r\n","
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { AdjustEndTimeFormGroup } from './adjust-end-time-form.type';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { AppErrorMessagesComponent } from 'src/app/base/error-messages/app-error-messages.component';\r\nimport { DateTimePickerModule } from '@syncfusion/ej2-angular-calendars';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { IParkingSessionDTO, ParkerRegistrationType } from 'src/app/base/models/models.swagger.generated';\r\n\r\n@Component({\r\n selector: 'app-adjust-end-time-form',\r\n templateUrl: './adjust-end-time-form.component.html',\r\n styleUrls: ['./adjust-end-time-form.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, AppErrorMessagesComponent, DateTimePickerModule, TranslateModule]\r\n})\r\nexport class AdjustEndTimeFormComponent implements OnInit {\r\n @Input() public adjustEndTimeForm: AdjustEndTimeFormGroup;\r\n @Input() public parkingSession: IParkingSessionDTO;\r\n\r\n public minDate;\r\n\r\n ngOnInit() {\r\n this.minDate = this.calculateMinDateTime();\r\n }\r\n\r\n private calculateMinDateTime(): Date {\r\n if (!this.parkingSession) {\r\n return new Date();\r\n }\r\n let date : Date;\r\n const fixedRegistrations = this.parkingSession.parkerRegistrations?.filter(r => r.type === ParkerRegistrationType.AutoScheduleClose || r.type === ParkerRegistrationType.ParkingRangerEntry) ?? [];\r\n if (fixedRegistrations.length > 0) {\r\n fixedRegistrations.sort((a, b) => a.registrationDateTime.diff(b.registrationDateTime).toMillis());\r\n date = fixedRegistrations[fixedRegistrations.length - 1].registrationDateTime?.toJSDate() ?? new Date();\r\n } else {\r\n date = this.parkingSession.firstEntryDateTime?.toJSDate() ?? new Date();\r\n }\r\n return date;\r\n }\r\n\r\n}\r\n","
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n","import { Component, EventEmitter, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { ListBoxChangeEventArgs, ListBoxComponent, ListBoxModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { DialogComponent, DialogModule } from '@syncfusion/ej2-angular-popups';\r\nimport { AdjustSessionEndTimeDTO, AdjustSessionStartTimeDTO, IParkingSessionDTO, ParkingClient } from 'src/app/base/models/models.swagger.generated';\r\nimport { AdjustParkerRegistrationEvaluatedFunctionType } from './adjust-parker-registration-evaluated-function.type';\r\nimport { NgIf } from '@angular/common';\r\nimport { AdjustStartTimeFormComponent } from './adjust-start-time-form/adjust-start-time-form.component';\r\nimport { AdjustEndTimeFormComponent } from './adjust-end-time-form/adjust-end-time-form.component';\r\nimport { AdjustEndTimeFormGroup, AdjustEndTimeFormType } from './adjust-end-time-form/adjust-end-time-form.type';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { AdjustStartTimeFormGroup, AdjustStartTimeFormType } from './adjust-start-time-form/adjust-start-time-form.type';\r\nimport { map, Observable, throwError } from 'rxjs';\r\nimport { DateTime } from 'luxon';\r\n\r\ninterface IAdjustParkerRegistrationEvaluatedListItem {\r\n type: string;\r\n toolFunction: () => Observable;\r\n form: FormGroup;\r\n}\r\n\r\n@Component({\r\n selector: 'app-adjust-parker-registration-evaluated-dialog',\r\n templateUrl: './adjust-parker-registration-evaluated-dialog.component.html',\r\n styleUrls: ['./adjust-parker-registration-evaluated-dialog.component.scss'],\r\n standalone: true,\r\n imports: [NgIf, DialogModule, TranslateModule, ListBoxModule, AdjustStartTimeFormComponent, AdjustEndTimeFormComponent]\r\n})\r\nexport class AdjustParkerRegistrationEvaluatedDialogComponent implements OnInit {\r\n @ViewChild('functionDialog') public functionDialog: DialogComponent;\r\n @ViewChild('functionListBox') public functionListBox: ListBoxComponent;\r\n\r\n @Output() public functionExecuted: EventEmitter = new EventEmitter();\r\n\r\n public readonly fieldsDefinition: object = { text: \"type\", value: \"type\" };\r\n public readonly functionsList: IAdjustParkerRegistrationEvaluatedListItem[];\r\n\r\n public readonly functionType = AdjustParkerRegistrationEvaluatedFunctionType;\r\n public adjustEndTimeForm: AdjustEndTimeFormGroup;\r\n public adjustStartTimeForm: AdjustStartTimeFormGroup;\r\n public parkingSession: IParkingSessionDTO;\r\n\r\n public selectedFunction: IAdjustParkerRegistrationEvaluatedListItem;\r\n\r\n constructor(private fb: FormBuilder, private parkingClient: ParkingClient) {\r\n this.adjustEndTimeForm = this.fb.group({\r\n endTime: this.fb.control(null, [Validators.required])\r\n });\r\n\r\n this.adjustStartTimeForm = this.fb.group({\r\n startTime: this.fb.control(null, [Validators.required])\r\n });\r\n\r\n this.functionsList = [\r\n { type: AdjustParkerRegistrationEvaluatedFunctionType.AdjustStartTime, toolFunction: this.adjustStartTime.bind(this), form: this.adjustStartTimeForm },\r\n { type: AdjustParkerRegistrationEvaluatedFunctionType.AdjustEndTime, toolFunction: this.adjustEndTime.bind(this), form: this.adjustEndTimeForm }\r\n ];\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n public openDialog(parkingSession: IParkingSessionDTO): void {\r\n this.resetForms();\r\n this.parkingSession = parkingSession;\r\n this.functionDialog.show();\r\n }\r\n\r\n public closeFunctionDialog() {\r\n this.functionDialog.hide();\r\n }\r\n\r\n public isFunctionSelected(functionType: AdjustParkerRegistrationEvaluatedFunctionType): boolean {\r\n return this.selectedFunction?.type === functionType;\r\n }\r\n\r\n public applyFunction() {\r\n if (this.selectedFunction) {\r\n this.selectedFunction.toolFunction().subscribe(() => {\r\n this.functionExecuted?.emit();\r\n this.closeFunctionDialog();\r\n });\r\n }\r\n }\r\n\r\n public listBoxValue(args: ListBoxChangeEventArgs): void {\r\n this.selectedFunction = args.items[0] as IAdjustParkerRegistrationEvaluatedListItem;\r\n }\r\n\r\n private adjustStartTime(): Observable {\r\n if (this.adjustStartTimeForm.invalid) {\r\n return throwError(() => new Error('Invalid form'));\r\n }\r\n return this.parkingClient.adjustSessionStartTime(new AdjustSessionStartTimeDTO({\r\n parkingSessionId: this.parkingSession.id,\r\n startDateTime: DateTime.fromJSDate(this.adjustStartTimeForm.value.startTime)\r\n })).pipe(\r\n map(() => null)\r\n );\r\n }\r\n\r\n private adjustEndTime(): Observable {\r\n if (this.adjustEndTimeForm.invalid) {\r\n return throwError(() => new Error('Invalid form'));\r\n }\r\n return this.parkingClient.adjustSessionEndTime(new AdjustSessionEndTimeDTO({\r\n parkingSessionId: this.parkingSession.id,\r\n endDateTime: DateTime.fromJSDate(this.adjustEndTimeForm.value.endTime)\r\n })).pipe(\r\n map(() => null)\r\n );\r\n }\r\n\r\n private resetForms() {\r\n this.adjustEndTimeForm.reset();\r\n this.adjustStartTimeForm.reset();\r\n }\r\n}\r\n","\r\n \r\n {{'i18n.domain.parker-registration.adjust-parker-registration-dialog.title' | translate}}\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n {{ data.i18nLabel ?? 'i18n.domain.parker-registration.adjust-parker-registration-dialog.functions.' + data.type |\r\n translate}}\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n","import { DataManager, JsonAdaptor, Query } from '@syncfusion/ej2-data';\r\nexport class EnumFilterAdaptor extends JsonAdaptor {\r\n constructor() {\r\n super();\r\n }\r\n\r\n public getModuleName(): string {\r\n return 'EnumFilterAdaptor';\r\n }\r\n\r\n public override processQuery(dataManager: DataManager, query: Query): Object {\r\n var res = dataManager.dataSource.json.slice(0);\r\n var result = super.processQuery(dataManager, query) as any;\r\n if (result.aggregates != null) {\r\n result.result = res;\r\n result.count = res.length;\r\n return result;\r\n }\r\n return res;\r\n }\r\n}\r\n","import { DataManager } from \"@syncfusion/ej2-data\";\r\nimport { EnumFilterAdaptor } from \"./enum-filter-adaptor\";\r\n\r\nexport class EnumFilterDataManager extends DataManager {\r\n constructor(dataSource: T[]) {\r\n super({\r\n json: dataSource,\r\n dataType: 'json',\r\n offline: true,\r\n adaptor: new EnumFilterAdaptor()\r\n });\r\n }\r\n}\r\n","import { StringHelper } from './../../../base/shared/string-helper';\r\nimport { ParkingSessionService } from '../parking-session.service';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { Component, Input, OnInit, ViewChild } from '@angular/core';\r\nimport { UntypedFormBuilder } from '@angular/forms';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport {\r\n ZoneDTO,\r\n ParkerRegistrationType,\r\n ParkerRegistrationOffense,\r\n ClientDTO,\r\n ParkingSessionDTO,\r\n PenaltyState,\r\n Currency,\r\n ParkerRegistrationWithParkerInfoDTO,\r\n ControlPlateType,\r\n IParkingSessionDTO\r\n} from 'src/app/base/models/models.swagger.generated';\r\nimport { ParkerRegistrationDataType } from 'src/app/base/models/parker-registration-data-type.enum';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { GridBaseComponent } from 'src/app/base/shared/grid-base/grid-base.component';\r\nimport { AvpCustomAdaptor } from 'src/app/base/shared/syncfusion/avp-custom-adaptor';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { CommandModel, QueryCellInfoEventArgs, GridModule, ToolbarItems, CommandClickEventArgs } from '@syncfusion/ej2-angular-grids';\r\nimport { GridConstantsFactory } from 'src/app/base/shared/syncfusion/grid-constants-factory';\r\nimport { Tooltip } from '@syncfusion/ej2-angular-popups';\r\nimport { SfCommandButtonType, SfRequestTypes } from 'src/app/base/models/syncfusion-data';\r\nimport { ParkerRegistrationEvaluatedDetailComponent } from '../parker-registration-detail/parker-registration-evaluated-detail/parker-registration-evaluated-detail.component';\r\nimport { NgIf, NgClass, DatePipe } from '@angular/common';\r\nimport { AdjustParkerRegistrationEvaluatedDialogComponent } from './adjust-parker-registration-evaluated-dialog/adjust-parker-registration-evaluated-dialog.component';\r\nimport { EnumFilterDataManager } from 'src/app/base/shared/syncfusion/enum-filter-data-manager';\r\nimport { EnumFilterService } from 'src/app/base/services/enum-filter.service';\r\n\r\n@Component({\r\n selector: 'app-parker-registration-evaluated-table',\r\n templateUrl: './parker-registration-evaluated-table.component.html',\r\n styleUrls: ['./parker-registration-evaluated-table.component.scss'],\r\n standalone: true,\r\n imports: [GridModule, NgIf, NgClass, ParkerRegistrationEvaluatedDetailComponent, DatePipe, TranslateModule, AdjustParkerRegistrationEvaluatedDialogComponent]\r\n})\r\nexport class ParkerRegistrationEvaluatedTableComponent extends GridBaseComponent implements OnInit {\r\n @ViewChild(AdjustParkerRegistrationEvaluatedDialogComponent) public adjustRegistrationDialog: AdjustParkerRegistrationEvaluatedDialogComponent\r\n\r\n @Input() public zones: ZoneDTO[] = [];\r\n\r\n public ParkerRegistrationType = ParkerRegistrationType;\r\n public ParkerRegistrationOffense = ParkerRegistrationOffense;\r\n public ParkerRegistrationDataType = ParkerRegistrationDataType;\r\n public penaltyStateCancelled = PenaltyState.Cancelled;\r\n public currencyFilter = GridConstantsFactory.createCheckBoxFilter();\r\n public controlPlateTypeFilter = GridConstantsFactory.createCheckBoxFilter();\r\n public offenseFilter = GridConstantsFactory.createCheckBoxFilter();\r\n public calculatedParkingFeeField = 'calculatedParkingFee';\r\n public toolbarOptions?: ToolbarItems[] = ['ColumnChooser'];\r\n\r\n private offensesFilterValues: OffenseEnumFilterType[] = [];\r\n public offensesField = 'offenses';\r\n\r\n constructor(public translate: TranslateService,\r\n clientService: ClientService,\r\n public parkingService: ParkingSessionService,\r\n private fb: UntypedFormBuilder,\r\n private spinnerService: SpinnerService,\r\n private enumFilterService: EnumFilterService) {\r\n super(clientService, translate, parkingService);\r\n this.gridCommands = [{\r\n type: SfCommandButtonType.Edit,\r\n title: this.translate.instant('i18n.domain.parker-registration.tooltips.view-details'),\r\n buttonOption:\r\n {\r\n cssClass: 'icon-btn',\r\n iconCss: 'icon-view e-icons'\r\n }\r\n } as CommandModel,\r\n {\r\n type: SfCommandButtonType.None,\r\n title: this.translate.instant('i18n.domain.parker-registration.tooltips.adjust-session'),\r\n buttonOption:\r\n {\r\n cssClass: 'icon-btn',\r\n iconCss: 'icon-edit e-icons'\r\n }\r\n } as CommandModel,\r\n ];\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.parkingService, this.spinnerService)\r\n });\r\n this.isActiveColumnName = 'state';\r\n this.editDialogTitle = 'i18n.domain.parker-registration.dialog.header';\r\n this.addDialogTitle = '';\r\n this.addIndexFindColumnName = 'name';\r\n this.showSaveButton = false;\r\n\r\n const offenseType = ParkerRegistrationOffense;\r\n this.offensesFilterValues = this.enumFilterService.createEnumFilterArray(offenseType, this.offensesField);\r\n }\r\n\r\n public override actionBegin(args: any): void {\r\n if (args.requestType === SfRequestTypes.FilterBeforeOpen && args.columnName === this.offensesField) {\r\n args.filterModel.options.dataSource = new EnumFilterDataManager(this.offensesFilterValues);\r\n }\r\n if (args.requestType === SfRequestTypes.FilterChoiceRequest && args.filterModel.options.field === this.offensesField) {\r\n args.query.distincts = []; // will set custom trigger flag and avoid filtering the list for distinct values of the enum filter field\r\n args.filterModel.options.dataManager = null;\r\n }\r\n }\r\n\r\n public searchById(id: number, array: any[]): any[] {\r\n return array.find(e => e.id === id);\r\n }\r\n\r\n public getClientById(id: number): ClientDTO {\r\n return this.clientService.clients.find(c => c.id === id);\r\n }\r\n\r\n public transformToHours(minutes: number): string {\r\n if (minutes) {\r\n return StringHelper.transformToTimeRepresentation(minutes);\r\n }\r\n return '00:00';\r\n }\r\n\r\n public refresh(): void {\r\n this.grid.refresh();\r\n }\r\n\r\n public formatCurrency(type: Currency): string {\r\n return 'i18n.shared.currencies.' + Currency[type];\r\n }\r\n\r\n public formatOffenseTypes(data: ParkingSessionDTO): string {\r\n if (!data || !data.parkerRegistrations) {\r\n return '';\r\n }\r\n return data.offenses.map(o => this.translateService.instant('i18n.domain.parker-registration.ParkerRegistrationOffense.' + ParkerRegistrationOffense[o])).join(', ');\r\n }\r\n\r\n public getCountryCode(data: ParkerRegistrationWithParkerInfoDTO): string {\r\n return data.knownTag ? data.knownTag.countryCode : data.unknownParkerTagCountryCode;\r\n }\r\n\r\n public formatControlPlateType(data: ParkerRegistrationWithParkerInfoDTO): string {\r\n return 'i18n.shared.controlPlateType.' + ControlPlateType[data.knownTag.controlPlateType];\r\n }\r\n\r\n public addTooltip(args: QueryCellInfoEventArgs) {\r\n if (args.column.field !== this.calculatedParkingFeeField || !(args.data as ParkingSessionDTO)?.calculationRoadmap) {\r\n return;\r\n }\r\n let tooltip: Tooltip = new Tooltip({\r\n content: (args.data as ParkingSessionDTO).calculationRoadmap ?? ''\r\n }, args.cell as HTMLElement);\r\n }\r\n\r\n public commandClicked(args: CommandClickEventArgs): void {\r\n if (args.commandColumn.type === SfCommandButtonType.None) {\r\n this.adjustRegistrationDialog?.openDialog(args.rowData as IParkingSessionDTO);\r\n }\r\n }\r\n\r\n public onSessionAdjustFunctionExecuted(): void {\r\n this.grid.refresh();\r\n }\r\n\r\n protected initializeEditForm(data: any): void {\r\n this.gridEditForm = this.fb.group({\r\n });\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData: any) {\r\n return {params: ''};\r\n }\r\n}\r\n\r\nexport type OffenseEnumFilterType = {\r\n type: ParkerRegistrationOffense;\r\n}\r\n","\r\n \r\n \r\n \r\n \r\n \r\n {{data.firstEntryDateTime | date:'dd.MM.yyyy HH:mm:ss'}}\r\n \r\n \r\n \r\n \r\n {{transformToHours(data.parkingDuration)}}\r\n \r\n \r\n \r\n \r\n {{transformToHours(data.maxIntendedParkingDurationMinutes)}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.registeredZone?.name}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ formatControlPlateType(data) | translate}}\r\n \r\n \r\n {{ formatControlPlateType(data) | translate}}\r\n \r\n \r\n \r\n \r\n {{getCountryCode(data)}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{formatCurrency(data.currency) | translate}}\r\n \r\n \r\n {{ formatCurrency(data.currency) | translate}}\r\n \r\n \r\n \r\n \r\n {{formatOffenseTypes(data)}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n","import { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { ClientService } from '../../base/services/client/client.service';\r\nimport { ParkerRegistrationRawTableComponent } from './parker-registration-raw-table/parker-registration-raw-table.component';\r\nimport { ParkingSessionService } from './parking-session.service';\r\nimport { filter, map, startWith, switchMap, takeUntil } from 'rxjs/operators';\r\nimport { DropDownConstantsFactory } from '../../base/shared/syncfusion/dropdown-constants-factory';\r\nimport {\r\n ClientDTO,\r\n FilterDTO,\r\n FilterOperator,\r\n ParkerRegistrationOffense,\r\n ParkerRegistrationType,\r\n SortDirection,\r\n ZoneClient,\r\n ZoneDTO,\r\n} from '../../base/models/models.swagger.generated';\r\nimport { ParkerRegistrationDataType } from '../../base/models/parker-registration-data-type.enum';\r\nimport { FormBuilder, ReactiveFormsModule, FormControl } from '@angular/forms';\r\nimport { ParkerRegistrationService } from './parker-registration.service';\r\nimport { AfterViewInit, Component, OnDestroy, OnInit, ViewChild } from '@angular/core';\r\nimport { BehaviorSubject, Subject } from 'rxjs';\r\nimport { ParkerOffenseFilterType } from 'src/app/base/models/parker-offense-filter-type.enum';\r\nimport {\r\n ParkerRegistrationEvaluatedTableComponent,\r\n} from './parker-registration-evaluated-table/parker-registration-evaluated-table.component';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { ButtonGroupComponent } from '../../base/shared/button-group/button-group.component';\r\nimport { NgIf, AsyncPipe } from '@angular/common';\r\nimport { ClientAutocompleteComponent } from '../../base/shared/client-autocomplete/client-autocomplete.component';\r\nimport { TitleBarComponent } from '../../base/shared/title-bar/title-bar.component';\r\n\r\ntype ParkerRegistrationFilterFormType = {\r\n dataType: FormControl;\r\n offenseType: FormControl;\r\n zone: FormControl;\r\n present: FormControl;\r\n};\r\n\r\n@Component({\r\n selector: 'app-parker-registration',\r\n templateUrl: './parker-registration.component.html',\r\n styleUrls: ['./parker-registration.component.scss'],\r\n standalone: true,\r\n imports: [TitleBarComponent, ReactiveFormsModule, ClientAutocompleteComponent, NgIf, ButtonGroupComponent, DropDownListModule, ParkerRegistrationRawTableComponent, ParkerRegistrationEvaluatedTableComponent, AsyncPipe, TranslateModule]\r\n})\r\nexport class ParkerRegistrationComponent implements OnInit, AfterViewInit, OnDestroy {\r\n\r\n @ViewChild('rawGrid') public rawGrid: ParkerRegistrationRawTableComponent;\r\n @ViewChild('evaluatedGrid') public evaluatedGrid: ParkerRegistrationEvaluatedTableComponent;\r\n\r\n public get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public set selectedClient(value: ClientDTO) {\r\n if (this.clientService.selectedClient != value) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n }\r\n }\r\n\r\n public filterForm = this.fb.group({\r\n dataType: this.fb.control(ParkerRegistrationDataType.Raw),\r\n offenseType: this.fb.control(null),\r\n zone: this.fb.control(null),\r\n present: this.fb.control(null),\r\n });\r\n\r\n public statusList$ = this.translate.onLangChange\r\n .pipe(\r\n startWith(this.translate.currentLang),\r\n map(() => [\r\n {name: this.translate.instant('i18n.domain.parker-registration.filter.status.parker'), id: ParkerOffenseFilterType.Parker},\r\n {name: this.translate.instant('i18n.domain.parker-registration.filter.status.offense'), id: ParkerOffenseFilterType.Offense},\r\n {name: this.translate.instant('i18n.domain.parker-registration.filter.status.manual'), id: ParkerOffenseFilterType.ParkingRangerEntry}\r\n ])\r\n );\r\n public presentList$ = this.translate.onLangChange\r\n .pipe(\r\n startWith(this.translate.currentLang),\r\n map(() => [\r\n {name: this.translate.instant('i18n.domain.parker-registration.filter.is-present'), id: true},\r\n {name: this.translate.instant('i18n.domain.parker-registration.filter.is-not-present'), id: false},\r\n ])\r\n );\r\n\r\n public dropdownSettings = DropDownConstantsFactory.createStandardClientDropdownSettings();\r\n\r\n public ParkerRegistrationType = ParkerRegistrationType;\r\n public ParkerRegistrationOffense = ParkerRegistrationOffense;\r\n public ParkerRegistrationDataType = ParkerRegistrationDataType;\r\n\r\n public zones: ZoneDTO[] = [];\r\n\r\n public unsubscribe$ = new Subject();\r\n public selectedClient$ = new BehaviorSubject(null);\r\n public zoneDropdownValues = [];\r\n\r\n constructor(private parkerRegistrationService: ParkerRegistrationService,\r\n private parkingService: ParkingSessionService,\r\n private clientService: ClientService,\r\n private zoneClient: ZoneClient,\r\n private translate: TranslateService,\r\n private fb: FormBuilder,) {\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.selectedClient$\r\n .pipe(\r\n takeUntil(this.unsubscribe$),\r\n filter(c => c && !!c.id),\r\n switchMap(c => {\r\n const groupFilter = new FilterDTO({\r\n isComplex: false,\r\n field: 'IsGroupingElement',\r\n operator: FilterOperator.Equal,\r\n value: 'false'\r\n });\r\n\r\n return this.zoneClient.searchZones(c.id, [groupFilter], 0, 0, 'Id', SortDirection.Ascending);\r\n }),\r\n ).subscribe(zones => {\r\n this.zones = zones.items;\r\n this.zoneDropdownValues = zones.items\r\n .filter(z => !z.isGroupingElement)\r\n .map(z => ({name: z.name, id: z.id}));\r\n });\r\n\r\n\r\n\r\n if (this.clientService.selectedClient) {\r\n this.selectedClient$.next(this.clientService.selectedClient);\r\n this.selectedClient = this.clientService.selectedClient;\r\n }\r\n }\r\n\r\n public ngAfterViewInit(): void {\r\n this.filterForm.valueChanges\r\n .pipe(\r\n takeUntil(this.unsubscribe$),\r\n )\r\n .subscribe(value => {\r\n this.parkerRegistrationService.offenseType = value.offenseType;\r\n this.parkingService.offenseType = value.offenseType;\r\n this.parkingService.present = value.present;\r\n this.parkingService.zone = value.zone;\r\n this.refreshGrid();\r\n });\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this.unsubscribe$.next();\r\n this.unsubscribe$.complete();\r\n this.parkerRegistrationService.offenseType = null;\r\n this.parkingService.offenseType = null;\r\n this.parkingService.present = null;\r\n this.parkingService.zone = null;\r\n }\r\n\r\n public onClientSelected(clientDTO: ClientDTO): void {\r\n this.selectedClient = clientDTO;\r\n this.selectedClient$.next(clientDTO);\r\n if (clientDTO) {\r\n this.refreshGrid();\r\n }\r\n }\r\n\r\n private refreshGrid(): void {\r\n if (this.filterForm.controls.dataType.value === ParkerRegistrationDataType.Raw) {\r\n if (this.rawGrid) {\r\n this.rawGrid.refresh();\r\n }\r\n } else {\r\n if (this.evaluatedGrid) {\r\n this.evaluatedGrid.refresh();\r\n }\r\n }\r\n }\r\n}\r\n","\r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n","import { ParkerDTO, UpdateParkerDTO } from \"src/app/base/models/models.swagger.generated\";\r\n\r\nexport interface IParkerExecutionStatus {\r\n parkerInfo: ParkerInfo;\r\n status: string;\r\n message: string;\r\n}\r\n\r\nexport class ParkerInfo {\r\n id: number;\r\n firstName: string;\r\n lastName: string;\r\n\r\n constructor(parker: ParkerDTO | UpdateParkerDTO) {\r\n this.id = parker.id;\r\n this.firstName = parker.firstName;\r\n this.lastName = parker.lastName;\r\n }\r\n}\r\n","export class ProgressInfo {\r\n public get numTotalIterations(): number {\r\n return this._numTotalIterations;\r\n }\r\n\r\n public get progressValue(): number {\r\n return this._progressValue;\r\n }\r\n\r\n public get progressValueSegmentCount(): number {\r\n return 100;\r\n }\r\n\r\n public get actualIterations(): number {\r\n return this._numIterations;\r\n }\r\n\r\n private _numTotalIterations: number;\r\n private _progressValue: number;\r\n private _numIterations: number;\r\n\r\n constructor(numTotalIterations: number) {\r\n this._numTotalIterations = numTotalIterations;\r\n this._numIterations = 0;\r\n this.recalcProgressValue();\r\n }\r\n\r\n public reset(): void {\r\n this._numIterations = 0;\r\n this.recalcProgressValue();\r\n }\r\n\r\n public incrementIteration(): void {\r\n this._numIterations++;\r\n this.recalcProgressValue();\r\n }\r\n\r\n public incrementIterations(numIterations: number): void {\r\n this._numIterations += numIterations;\r\n this.recalcProgressValue();\r\n }\r\n\r\n public complete(): void {\r\n this._numIterations = this._numTotalIterations;\r\n this._progressValue = 100;\r\n }\r\n\r\n private recalcProgressValue(): void {\r\n if (this._numTotalIterations <= 0) {\r\n this._progressValue = 0;\r\n }\r\n this._progressValue = this._numIterations > 0 ? Math.round((this._numIterations / this._numTotalIterations) * 100) : 0;\r\n }\r\n}\r\n","import { Observable, Subject, catchError, forkJoin, map, of, switchMap, takeUntil, tap } from 'rxjs';\r\nimport { IParkerExecutionStatus, ParkerInfo } from \"../parker-execution-status\";\r\nimport { ProgressInfo } from \"../progress-info\";\r\nimport { PagedResultDTOOfParkerDTO, ParkerDTO } from 'src/app/base/models/models.swagger.generated';\r\n\r\nexport abstract class ParkerFunctionExecutor {\r\n public functionExecuted: Subject = new Subject();\r\n public executionStatusChanged: Subject = new Subject();\r\n // use subject to inform about updated execution status\r\n public executionStatus: IParkerExecutionStatus[] = [];\r\n public progressInfo: ProgressInfo;\r\n\r\n private readonly _pageSize = 5; // a browser can handle 9 concurrent requests to the server efficiently at max\r\n private endSubject: Subject = new Subject();\r\n\r\n // load any data needed for the execution\r\n protected abstract prepare(): Observable;\r\n protected abstract preFilterParkersAndUpdateExecutionStatus(parkers: ParkerDTO[]): ParkerDTO[];\r\n protected abstract executeFunctionOnParker(parker: ParkerDTO): Observable;\r\n\r\n constructor(numTotalRecordsToWorkOn: number) {\r\n this.progressInfo = new ProgressInfo(numTotalRecordsToWorkOn);\r\n }\r\n\r\n public cancelExecution() {\r\n this.endSubject?.next(1);\r\n this.endSubject?.complete();\r\n }\r\n\r\n public run(loadParkersPagedCallback: (skip: number, take: number) => Observable): void {\r\n this.progressInfo.reset();\r\n this.executionStatus = [];\r\n this.prepare().subscribe({next: () => {\r\n this.endSubject = new Subject();\r\n const subject = new Subject();\r\n subject.pipe(\r\n takeUntil(this.endSubject),\r\n switchMap(skip => {\r\n return loadParkersPagedCallback(skip, this._pageSize).pipe(map(page => {\r\n return {skip, page};\r\n }));\r\n }),\r\n switchMap(res => {\r\n var parkersToExecute: ParkerDTO[] = [];\r\n parkersToExecute = this.preFilterParkersAndUpdateExecutionStatus(res.page.items);\r\n if (parkersToExecute.length != res.page.items.length) {\r\n // increment iterations by the number of parkers that are excluded from execution\r\n this.progressInfo.incrementIterations(res.page.items.length - parkersToExecute.length);\r\n this.executionStatusChanged.next();\r\n }\r\n\r\n if (parkersToExecute.length > 0) {\r\n return forkJoin([...parkersToExecute.map(parker => this.executeFunctionOnParker(parker).pipe(\r\n tap(() => {\r\n this.handleSuccess(new ParkerInfo(parker));\r\n }),\r\n map(() => parker.id),\r\n catchError(error => {\r\n return this.handleError(new ParkerInfo(parker), error);\r\n })),\r\n )]).pipe(map(() => res));\r\n }\r\n else {\r\n return of(res);\r\n }\r\n })\r\n ).subscribe({ next: (res) => {\r\n const newSkip = res.skip + this._pageSize;\r\n if (newSkip < res.page.totalNumberOfItems) {\r\n subject.next(newSkip);\r\n } else {\r\n this.endSubject.next(1);\r\n this.endSubject.complete();\r\n subject.complete();\r\n this.functionExecuted.next();\r\n }\r\n }, error: (error) => {\r\n this.endSubject.next(1);\r\n this.endSubject.complete();\r\n subject.complete();\r\n this.executionStatus.push({\r\n status: 'error',\r\n message: error.message,\r\n parkerInfo: new ParkerInfo({id: 0, firstName: 'error', lastName: 'function execution'} as ParkerDTO)\r\n });\r\n this.executionStatusChanged.next();\r\n }});\r\n subject.next(0);\r\n }, error: (error) => {\r\n this.executionStatus.push({\r\n status: 'error',\r\n message: error.message,\r\n parkerInfo: new ParkerInfo({id: 0, firstName: 'function', lastName: 'preparation failed'} as ParkerDTO)\r\n });\r\n this.executionStatusChanged.next();\r\n }\r\n });\r\n }\r\n\r\n private handleError(parkerInfo: ParkerInfo, error: any) {\r\n this.progressInfo.incrementIteration();\r\n this.executionStatus.push({\r\n status: 'error',\r\n message: error.message,\r\n parkerInfo\r\n });\r\n this.executionStatusChanged.next();\r\n return of(parkerInfo.id);\r\n }\r\n\r\n private handleSuccess(parkerInfo: ParkerInfo) {\r\n this.progressInfo.incrementIteration();\r\n // we do not add success messages to the execution status to avoid overfilling -> we are only interested in errors -> nothing to do here\r\n this.executionStatusChanged.next();\r\n }\r\n}\r\n","import { Observable, map, of } from \"rxjs\";\r\nimport { ParkerFunctionExecutor } from \"./parker-function-executor.class\";\r\nimport { ParkerClient, ParkerDTO } from \"src/app/base/models/models.swagger.generated\";\r\nimport { TranslateService } from \"@ngx-translate/core\";\r\nimport { ParkerInfo } from \"../parker-execution-status\";\r\n\r\nexport class ResendLinkToParkerExecutor extends ParkerFunctionExecutor {\r\n constructor(numTotalRecordsToWorkOn: number, private parkerClient: ParkerClient, private translateService: TranslateService) {\r\n super(numTotalRecordsToWorkOn);\r\n }\r\n\r\n protected prepare(): Observable {\r\n return of(null); // nothing to prepare\r\n }\r\n\r\n protected executeFunctionOnParker(parker: ParkerDTO): Observable {\r\n return this.parkerClient.initializeParkerToUserLink(parker.id).pipe(map(() => parker.id));\r\n }\r\n\r\n protected preFilterParkersAndUpdateExecutionStatus(parkers: ParkerDTO[]): ParkerDTO[] {\r\n const parkersToResendLink = [];\r\n parkers?.forEach(parker => {\r\n var parkerValidForLink = false;\r\n if (!parker.linkedUserUserName) {\r\n if (parker.email) {\r\n parkerValidForLink = true;\r\n }\r\n }\r\n\r\n if (!parkerValidForLink) {\r\n this.executionStatus.push({\r\n status: 'warning',\r\n message: this.translateService.instant('i18n.domain.parker-administration.overview.function-dialog.function-status-dialog.message-parker-not-valid-link-resend'),\r\n parkerInfo: new ParkerInfo(parker)\r\n });\r\n }\r\n else {\r\n parkersToResendLink.push(parker);\r\n }\r\n });\r\n return parkersToResendLink;\r\n }\r\n}\r\n","import { Observable, map, of } from \"rxjs\";\r\nimport { ParkerFunctionExecutor } from \"./parker-function-executor.class\";\r\nimport { ParkerClient, ParkerDTO } from \"src/app/base/models/models.swagger.generated\";\r\nimport { TranslateService } from \"@ngx-translate/core\";\r\nimport { ParkerInfo } from \"../parker-execution-status\";\r\n\r\nexport class UnlinkParkerExecutor extends ParkerFunctionExecutor {\r\n constructor(numTotalRecordsToWorkOn: number, private parkerClient: ParkerClient, private translateService: TranslateService) {\r\n super(numTotalRecordsToWorkOn);\r\n }\r\n\r\n protected prepare(): Observable {\r\n return of(null); // nothing to prepare\r\n }\r\n\r\n protected executeFunctionOnParker(parker: ParkerDTO): Observable {\r\n return this.parkerClient.unlinkParkerFromUser(parker.id).pipe(map(() => parker.id));\r\n }\r\n\r\n protected preFilterParkersAndUpdateExecutionStatus(parkers: ParkerDTO[]): ParkerDTO[] {\r\n const parkersToUnlink = [];\r\n parkers?.forEach(parker => {\r\n if (!parker.linkedUserUserName) {\r\n this.executionStatus.push({\r\n status: 'warning',\r\n message: this.translateService.instant('i18n.domain.parker-administration.overview.function-dialog.function-status-dialog.message-parker-not-linked'),\r\n parkerInfo: new ParkerInfo(parker)\r\n });\r\n }\r\n else {\r\n parkersToUnlink.push(parker);\r\n }\r\n });\r\n return parkersToUnlink;\r\n }\r\n}\r\n","import { DateTime } from \"luxon\";\r\nimport { ParkerDTO, UpdateParkerDTO, UpdateParkerSubscriptionAssignmentDTO, UpdateParkerTagDTO } from \"src/app/base/models/models.swagger.generated\";\r\n\r\nexport class UpdateParkerUtil {\r\n public static createUpdateParkerDTO(parker: ParkerDTO): UpdateParkerDTO {\r\n const updateData = new UpdateParkerDTO({\r\n ...parker,\r\n tags: parker.tags?.map(tag => new UpdateParkerTagDTO(tag)),\r\n parkerSubscriptionAssignments: parker.parkerSubscriptionAssignments?.map(assignment => this.createUpdateParkerSubscriptionAssignmentDTO(assignment))\r\n });\r\n return updateData;\r\n }\r\n\r\n public static createUpdateParkerSubscriptionAssignmentDTO(assignment: any): UpdateParkerSubscriptionAssignmentDTO {\r\n return new UpdateParkerSubscriptionAssignmentDTO({\r\n ...assignment,\r\n id: assignment.id < 0 ? 0 : assignment.id,\r\n subscriptionId: assignment.subscription.id,\r\n isDefaultSubscription: assignment.isFavorite\r\n });\r\n }\r\n\r\n public static addOrMergeSubscriptionAssignment(updateData: UpdateParkerDTO, subscriptionAssignment: UpdateParkerSubscriptionAssignmentDTO, defaultFromTime: DateTime): void {\r\n let addFullSubscription = true;\r\n const existingSubscriptionAssignments = updateData.parkerSubscriptionAssignments?.filter(a => a.subscriptionId === subscriptionAssignment.subscriptionId).sort((a, b) => a.validFrom.toMillis() - b.validFrom.toMillis()) ?? [];\r\n if (existingSubscriptionAssignments.length > 0) {\r\n const existingSubscriptionsToKeep = [];\r\n existingSubscriptionAssignments.forEach(a => {\r\n // validFrom >= endDate\r\n if (subscriptionAssignment.validTo != null && a.validFrom >= subscriptionAssignment.validTo) {\r\n // nothing to change\r\n existingSubscriptionsToKeep.push(a);\r\n return;\r\n }\r\n\r\n // validTo <= startDate\r\n if (a.validTo != null && a.validTo < subscriptionAssignment.validFrom) {\r\n // nothing to change\r\n existingSubscriptionsToKeep.push(a);\r\n return;\r\n }\r\n\r\n // everything else is overlapping\r\n // inactive subscriptions are shortened or eliminated if starting in the future\r\n if (!a.active) {\r\n // inactive subscription starting in the future are eliminated even if they would continue after the new subscription\r\n if (a.validFrom < defaultFromTime) { // starts in the past -> cannot be deleted, so adjust end date\r\n a.validTo = subscriptionAssignment.validFrom;\r\n existingSubscriptionsToKeep.push(a);\r\n }\r\n return;\r\n }\r\n\r\n if (addFullSubscription) { // so far we are working with the new subscription\r\n // we will start working with this subscription assignment but first we need to adjust the start and end date\r\n if (a.validFrom > subscriptionAssignment.validFrom) {\r\n a.validFrom = subscriptionAssignment.validFrom; // adjust start date\r\n }\r\n if (subscriptionAssignment.validTo == null || ( a.validTo != null && a.validTo < subscriptionAssignment.validTo)) {\r\n a.validTo = subscriptionAssignment.validTo; // adjust end date\r\n }\r\n subscriptionAssignment = a;\r\n addFullSubscription = false;\r\n existingSubscriptionsToKeep.push(a);\r\n return;\r\n }\r\n\r\n // we are already working with an existing subscription assignment -> extend this one further, eliminate others where possible\r\n if (a.validTo == null || (subscriptionAssignment.validTo != null && a.validTo > subscriptionAssignment.validTo)) {\r\n subscriptionAssignment.validTo = a.validTo;\r\n }\r\n if (a.validFrom < defaultFromTime) {\r\n // we have to keep the record, but we shorten it\r\n a.validTo = defaultFromTime;\r\n existingSubscriptionsToKeep.push(a);\r\n }\r\n });\r\n updateData.parkerSubscriptionAssignments = updateData.parkerSubscriptionAssignments?.filter(a => a.subscriptionId !== subscriptionAssignment.subscriptionId) ?? [];\r\n updateData.parkerSubscriptionAssignments.push(...existingSubscriptionsToKeep);\r\n }\r\n\r\n if (addFullSubscription) {\r\n updateData.parkerSubscriptionAssignments.push(subscriptionAssignment);\r\n }\r\n }\r\n}\r\n","import { Observable, map } from \"rxjs\";\r\nimport { ParkerFunctionExecutor } from \"./parker-function-executor.class\";\r\nimport { ParkerClient, ParkerDTO, ParkingSubscriptionClient, UpdateParkerSubscriptionAssignmentDTO } from \"src/app/base/models/models.swagger.generated\";\r\nimport { SubscriptionAssignmentFormGroup } from \"../../edit-parker-form/edit-parker-edit-subscription-list-form/edit-parker-edit-subscription-list-form.type\";\r\nimport { DateTime } from \"luxon\";\r\nimport { UpdateParkerUtil } from \"./update-parker.util\";\r\n\r\nexport class AddSubscriptionExecutor extends ParkerFunctionExecutor {\r\n private now: DateTime;\r\n private validFrom: DateTime;\r\n private validTo: DateTime;\r\n\r\n constructor(numTotalRecordsToWorkOn: number, private subscriptionAssignmentForm: SubscriptionAssignmentFormGroup, private parkingSubscriptionClient: ParkingSubscriptionClient, private parkerClient: ParkerClient) {\r\n super(numTotalRecordsToWorkOn);\r\n }\r\n\r\n protected prepare(): Observable {\r\n return this.parkingSubscriptionClient.getParkingSubscription(this.subscriptionAssignmentForm.controls.subscriptionId.value).pipe(map(sub => {\r\n this.now = DateTime.now();\r\n this.validFrom = this.subscriptionAssignmentForm.controls.validFrom.value ? DateTime.fromJSDate(this.subscriptionAssignmentForm.controls.validFrom.value) : this.now;\r\n this.validTo = this.subscriptionAssignmentForm.controls.validTo.value ? DateTime.fromJSDate(this.subscriptionAssignmentForm.controls.validTo.value) : null;\r\n if (this.validTo && this.validTo < this.validFrom) {\r\n this.validTo = this.validFrom;\r\n }\r\n }));\r\n }\r\n\r\n protected executeFunctionOnParker(parker: ParkerDTO): Observable {\r\n let subscriptionAssignment = new UpdateParkerSubscriptionAssignmentDTO({\r\n active: this.subscriptionAssignmentForm.value.active,\r\n validFrom: this.validFrom,\r\n validTo: this.validTo,\r\n subscriptionId: this.subscriptionAssignmentForm.controls.subscriptionId.value,\r\n id: 0,\r\n isFavorite: false\r\n });\r\n const updateData = UpdateParkerUtil.createUpdateParkerDTO(parker);\r\n UpdateParkerUtil.addOrMergeSubscriptionAssignment(updateData, subscriptionAssignment, this.now);\r\n return this.parkerClient.updateParker(updateData).pipe(map(parker => parker.id));\r\n }\r\n\r\n protected preFilterParkersAndUpdateExecutionStatus(parkers: ParkerDTO[]): ParkerDTO[] {\r\n return parkers; // nothing to filter\r\n }\r\n}\r\n","import { isNullOrUndefined, createElement, remove, merge, Property, ChildProperty, resetBlazorTemplate, extend, Browser, isBlazor, updateBlazorTemplate, Animation, animationMode, compile, Complex, Event, NotifyPropertyChanges, Component } from '@syncfusion/ej2-base';\n\n/* eslint-disable jsdoc/require-returns */\nvar SvgRenderer = /** @__PURE__ @class */function () {\n /* End-Properties */\n function SvgRenderer(rootID) {\n //Internal Variables\n this.svgLink = 'http://www.w3.org/2000/svg';\n this.rootId = rootID;\n }\n // method to get the attributes value\n // tslint:disable-next-line:no-any\n SvgRenderer.prototype.getOptionValue = function (options, key) {\n return options[key];\n }; /* tslint:enable */\n /**\n * To create a Html5 SVG element\n *\n * @param {SVGAttributes} options - Options to create SVG\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.createSvg = function (options) {\n if (isNullOrUndefined(options.id)) {\n options.id = this.rootId + '_svg';\n }\n this.svgObj = document.getElementById(options.id);\n if (isNullOrUndefined(document.getElementById(options.id))) {\n this.svgObj = document.createElementNS(this.svgLink, 'svg');\n }\n this.svgObj = this.setElementAttributes(options, this.svgObj);\n this.setSVGSize(options.width, options.height);\n return this.svgObj;\n };\n // method to set the height and width for the SVG element\n SvgRenderer.prototype.setSVGSize = function (width, height) {\n var element = document.getElementById(this.rootId);\n var size = !isNullOrUndefined(element) ? element.getBoundingClientRect() : null;\n if (isNullOrUndefined(this.width) || this.width <= 0) {\n this.svgObj.setAttribute('width', width ? width.toString() : size.width.toString());\n } else {\n this.svgObj.setAttribute('width', this.width.toString());\n }\n if (isNullOrUndefined(this.height) || this.height <= 0) {\n this.svgObj.setAttribute('height', height ? height.toString() : '450');\n } else {\n this.svgObj.setAttribute('height', this.height.toString());\n }\n };\n /**\n * To draw a path\n *\n * @param {PathAttributes} options - Options to draw a path in SVG\n * @returns {Element} It returns a appropriate path\n */\n SvgRenderer.prototype.drawPath = function (options) {\n var path = document.getElementById(options.id);\n if (path === null) {\n path = document.createElementNS(this.svgLink, 'path');\n }\n path = this.setElementAttributes(options, path);\n return path;\n };\n /**\n * To draw a line\n *\n * @param {LineAttributes} options - Options to draw a line in SVG\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.drawLine = function (options) {\n var line = document.getElementById(options.id);\n if (line === null) {\n line = document.createElementNS(this.svgLink, 'line');\n }\n line = this.setElementAttributes(options, line);\n return line;\n };\n /**\n * To draw a rectangle\n *\n * @param {BaseAttibutes} options - Required options to draw a rectangle in SVG\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.drawRectangle = function (options) {\n var rectangle = document.getElementById(options.id);\n if (rectangle === null) {\n rectangle = document.createElementNS(this.svgLink, 'rect');\n }\n rectangle = this.setElementAttributes(options, rectangle);\n return rectangle;\n };\n /**\n * To draw a circle\n *\n * @param {CircleAttributes} options - Required options to draw a circle in SVG\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.drawCircle = function (options) {\n var circle = document.getElementById(options.id);\n if (circle === null) {\n circle = document.createElementNS(this.svgLink, 'circle');\n }\n circle = this.setElementAttributes(options, circle);\n return circle;\n };\n /**\n * To draw a polyline\n *\n * @param {PolylineAttributes} options - Options required to draw a polyline\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.drawPolyline = function (options) {\n var polyline = document.getElementById(options.id);\n if (polyline === null) {\n polyline = document.createElementNS(this.svgLink, 'polyline');\n }\n polyline = this.setElementAttributes(options, polyline);\n return polyline;\n };\n /**\n * To draw an ellipse\n *\n * @param {EllipseAttributes} options - Options required to draw an ellipse\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.drawEllipse = function (options) {\n var ellipse = document.getElementById(options.id);\n if (ellipse === null) {\n ellipse = document.createElementNS(this.svgLink, 'ellipse');\n }\n ellipse = this.setElementAttributes(options, ellipse);\n return ellipse;\n };\n /**\n * To draw a polygon\n *\n * @param {PolylineAttributes} options - Options needed to draw a polygon in SVG\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.drawPolygon = function (options) {\n var polygon = document.getElementById(options.id);\n if (polygon === null) {\n polygon = document.createElementNS(this.svgLink, 'polygon');\n }\n polygon = this.setElementAttributes(options, polygon);\n return polygon;\n };\n /**\n * To draw an image\n *\n * @param {ImageAttributes} options - Required options to draw an image in SVG\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.drawImage = function (options) {\n var img = document.createElementNS(this.svgLink, 'image');\n img.setAttributeNS(null, 'height', options.height.toString());\n img.setAttributeNS(null, 'width', options.width.toString());\n img.setAttributeNS('http://www.w3.org/1999/xlink', 'href', options.href);\n img.setAttributeNS(null, 'x', options.x.toString());\n img.setAttributeNS(null, 'y', options.y.toString());\n img.setAttributeNS(null, 'id', options.id);\n img.setAttributeNS(null, 'visibility', options.visibility);\n if (!isNullOrUndefined(this.getOptionValue(options, 'clip-path'))) {\n img.setAttributeNS(null, 'clip-path', this.getOptionValue(options, 'clip-path'));\n }\n if (!isNullOrUndefined(options.preserveAspectRatio)) {\n img.setAttributeNS(null, 'preserveAspectRatio', options.preserveAspectRatio);\n }\n return img;\n };\n /**\n * To draw a text\n *\n * @param {TextAttributes} options - Options needed to draw a text in SVG\n * @param {string} label - Label of the text\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.createText = function (options, label) {\n var text = document.createElementNS(this.svgLink, 'text');\n text = this.setElementAttributes(options, text);\n if (!isNullOrUndefined(label)) {\n text.textContent = label;\n }\n return text;\n };\n /**\n * To create a tSpan\n *\n * @param {TextAttributes} options - Options to create tSpan\n * @param {string} label - The text content which is to be rendered in the tSpan\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.createTSpan = function (options, label) {\n var tSpan = document.createElementNS(this.svgLink, 'tspan');\n tSpan = this.setElementAttributes(options, tSpan);\n if (!isNullOrUndefined(label)) {\n tSpan.textContent = label;\n }\n return tSpan;\n };\n /**\n * To create a title\n *\n * @param {string} text - The text content which is to be rendered in the title\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.createTitle = function (text) {\n var title = document.createElementNS(this.svgLink, 'title');\n title.textContent = text;\n return title;\n };\n /**\n * To create defs element in SVG\n *\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.createDefs = function () {\n var defs = document.createElementNS(this.svgLink, 'defs');\n return defs;\n };\n /**\n * To create clip path in SVG\n *\n * @param {BaseAttibutes} options - Options needed to create clip path\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.createClipPath = function (options) {\n var clipPath = document.createElementNS(this.svgLink, 'clipPath');\n clipPath = this.setElementAttributes(options, clipPath);\n return clipPath;\n };\n /**\n * To create foreign object in SVG\n *\n * @param {BaseAttibutes} options - Options needed to create foreign object\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.createForeignObject = function (options) {\n var foreignObject = document.createElementNS(this.svgLink, 'foreignObject');\n foreignObject = this.setElementAttributes(options, foreignObject);\n return foreignObject;\n };\n /**\n * To create group element in SVG\n *\n * @param {BaseAttibutes} options - Options needed to create group\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.createGroup = function (options) {\n var group = document.createElementNS(this.svgLink, 'g');\n group = this.setElementAttributes(options, group);\n return group;\n };\n /**\n * To create pattern in SVG\n *\n * @param {PatternAttributes} options - Required options to create pattern in SVG\n * @param {string} element - Specifies the name of the pattern\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.createPattern = function (options, element) {\n var pattern = document.createElementNS(this.svgLink, element);\n pattern = this.setElementAttributes(options, pattern);\n return pattern;\n };\n /**\n * To create radial gradient in SVG\n *\n * @param {string[]} colors - Specifies the colors required to create radial gradient\n * @param {string} name - Specifies the name of the gradient\n * @param {RadialGradient} options - value for radial gradient\n * @returns {string} It returns color name\n */\n SvgRenderer.prototype.createRadialGradient = function (colors, name, options) {\n var colorName;\n if (!isNullOrUndefined(colors[0].colorStop)) {\n var newOptions = {\n 'id': this.rootId + '_' + name + 'radialGradient',\n 'cx': options.cx + '%',\n 'cy': options.cy + '%',\n 'r': options.r + '%',\n 'fx': options.fx + '%',\n 'fy': options.fy + '%'\n };\n this.drawGradient('radialGradient', newOptions, colors);\n colorName = 'url(#' + this.rootId + '_' + name + 'radialGradient)';\n } else {\n colorName = colors[0].color.toString();\n }\n return colorName;\n };\n /**\n * To create linear gradient in SVG\n *\n * @param {GradientColor[]} colors - Array of string specifies the values for color\n * @param {string} name - Specifies the name of the gradient\n * @param {LinearGradient} options - Specifies the options for gradient\n * @returns {string} It returns color name\n */\n SvgRenderer.prototype.createLinearGradient = function (colors, name, options) {\n var colorName;\n if (!isNullOrUndefined(colors[0].colorStop)) {\n var newOptions = {\n 'id': this.rootId + '_' + name + 'linearGradient',\n 'x1': options.x1 + '%',\n 'y1': options.y1 + '%',\n 'x2': options.x2 + '%',\n 'y2': options.y2 + '%'\n };\n this.drawGradient('linearGradient', newOptions, colors);\n colorName = 'url(#' + this.rootId + '_' + name + 'linearGradient)';\n } else {\n colorName = colors[0].color.toString();\n }\n return colorName;\n };\n /**\n * To render the gradient element in SVG\n *\n * @param {string} gradientType - Specifies the type of the gradient\n * @param {RadialGradient | LinearGradient} options - Options required to render a gradient\n * @param {string[]} colors - Array of string specifies the values for color\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.drawGradient = function (gradientType, options, colors) {\n var defs = this.createDefs();\n var gradient = document.createElementNS(this.svgLink, gradientType);\n gradient = this.setElementAttributes(options, gradient);\n for (var i = 0; i < colors.length; i++) {\n var stop_1 = document.createElementNS(this.svgLink, 'stop');\n stop_1.setAttribute('offset', colors[i].colorStop);\n stop_1.setAttribute('stop-color', colors[i].color);\n stop_1.setAttribute('stop-opacity', colors[i].opacity ? colors[i].opacity : '1');\n if (!isNullOrUndefined(colors[i].style)) {\n stop_1.style.cssText = colors[i].style;\n }\n gradient.appendChild(stop_1);\n }\n defs.appendChild(gradient);\n return defs;\n };\n /**\n * To render a clip path\n *\n * @param {BaseAttibutes} options - Options required to render a clip path\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.drawClipPath = function (options) {\n var defs = this.createDefs();\n var clipPath = this.createClipPath({\n 'id': options.id\n });\n options.id = options.id + '_Rect';\n var rect = this.drawRectangle(options);\n clipPath.appendChild(rect);\n defs.appendChild(clipPath);\n return defs;\n };\n /**\n * To create circular clip path in SVG\n *\n * @param {CircleAttributes} options - Options required to create circular clip path\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.drawCircularClipPath = function (options) {\n var defs = this.createDefs();\n var clipPath = this.createClipPath({\n 'id': options.id\n });\n options.id = options.id + '_Circle';\n var circle = this.drawCircle(options);\n clipPath.appendChild(circle);\n defs.appendChild(clipPath);\n return defs;\n };\n /**\n * To set the attributes to the element\n *\n * @param {SVGCanvasAttributes} options - Attributes to set for the element\n * @param {Element} element - The element to which the attributes need to be set\n * @returns {Element} It returns a appropriate element\n */\n SvgRenderer.prototype.setElementAttributes = function (options, element) {\n var keys = Object.keys(options);\n for (var i = 0; i < keys.length; i++) {\n if (keys[i] === 'style') {\n element.style.cssText = options[keys[i]];\n } else {\n element.setAttribute(keys[i], options[keys[i]]);\n }\n }\n return element;\n };\n /**\n * To create a Html5 canvas element\n * Dummy method for using canvas/svg render in the same variable name in chart control\n */\n SvgRenderer.prototype.createCanvas = function () {\n return null;\n };\n return SvgRenderer;\n}();\n\n/* eslint-disable no-case-declarations */\n/**\n * @private\n */\nvar CanvasRenderer = /** @__PURE__ @class */function () {\n /* End-Properties */\n function CanvasRenderer(rootID) {\n this.rootId = rootID;\n }\n // method to get the attributes value\n // tslint:disable-next-line:no-any\n CanvasRenderer.prototype.getOptionValue = function (options, key) {\n return options[key];\n };\n /* tslint:enable */\n /**\n * To create a Html5 canvas element\n *\n * @param {BaseAttibutes} options - Options to create canvas\n * @returns {HTMLCanvasElement} Creating a canvas\n */\n CanvasRenderer.prototype.createCanvas = function (options) {\n var canvasObj = document.createElement('canvas');\n canvasObj.setAttribute('id', this.rootId + '_canvas');\n this.ctx = canvasObj.getContext('2d');\n this.canvasObj = canvasObj;\n this.setCanvasSize(options.width, options.height);\n return this.canvasObj;\n };\n /**\n * To set the width and height for the Html5 canvas element\n *\n * @param {number} width - width of the canvas\n * @param {number} height - height of the canvas\n * @returns {void} Setting canvas size\n */\n CanvasRenderer.prototype.setCanvasSize = function (width, height) {\n var element = document.getElementById(this.rootId);\n var size = !isNullOrUndefined(element) ? element.getBoundingClientRect() : null;\n if (isNullOrUndefined(this.width)) {\n this.canvasObj.setAttribute('width', width ? width.toString() : size.width.toString());\n } else {\n this.canvasObj.setAttribute('width', this.width.toString());\n }\n if (isNullOrUndefined(this.height)) {\n this.canvasObj.setAttribute('height', height ? height.toString() : '450');\n } else {\n this.canvasObj.setAttribute('height', this.height.toString());\n }\n };\n // To set the values to the attributes\n CanvasRenderer.prototype.setAttributes = function (options) {\n this.ctx.lineWidth = this.getOptionValue(options, 'stroke-width');\n var dashArray = this.getOptionValue(options, 'stroke-dasharray');\n if (!isNullOrUndefined(dashArray)) {\n var dashArrayString = dashArray.split(',');\n this.ctx.setLineDash([parseInt(dashArrayString[0], 10), parseInt(dashArrayString[1], 10)]);\n }\n this.ctx.strokeStyle = this.getOptionValue(options, 'stroke');\n };\n /**\n * To draw a line\n *\n * @param {LineAttributes} options - required options to draw a line on the canvas\n * @returns {void} To draw a line\n */\n CanvasRenderer.prototype.drawLine = function (options) {\n this.ctx.save();\n this.ctx.beginPath();\n this.ctx.lineWidth = this.getOptionValue(options, 'stroke-width');\n this.ctx.strokeStyle = options.stroke;\n this.ctx.moveTo(options.x1, options.y1);\n this.ctx.lineTo(options.x2, options.y2);\n this.ctx.stroke();\n this.ctx.restore();\n };\n /**\n * To draw a rectangle\n *\n * @param {RectAttributes} options - required options to draw a rectangle on the canvas.\n * @param {Int32Array} canvasTranslate TO get a translate value of canvas.\n * @returns {void} To draw rectangle.\n */\n CanvasRenderer.prototype.drawRectangle = function (options, canvasTranslate) {\n var canvasCtx = this.ctx;\n var cornerRadius = options.rx;\n this.ctx.save();\n this.ctx.beginPath();\n if (canvasTranslate) {\n this.ctx.translate(canvasTranslate[0], canvasTranslate[1]);\n }\n this.ctx.globalAlpha = this.getOptionValue(options, 'opacity');\n this.setAttributes(options);\n this.ctx.rect(options.x, options.y, options.width, options.height);\n if (cornerRadius !== null && cornerRadius >= 0) {\n this.drawCornerRadius(options);\n } else {\n if (options.fill === 'none') {\n options.fill = 'transparent';\n }\n this.ctx.fillStyle = options.fill;\n this.ctx.fillRect(options.x, options.y, options.width, options.height);\n this.ctx.stroke();\n }\n this.ctx.restore();\n this.ctx = canvasCtx;\n return this.canvasObj;\n };\n // To draw the corner of a rectangle\n CanvasRenderer.prototype.drawCornerRadius = function (options) {\n var cornerRadius = options.rx;\n var x = options.x;\n var y = options.y;\n var width = options.width;\n var height = options.height;\n if (options.fill === 'none') {\n options.fill = 'transparent';\n }\n this.ctx.fillStyle = options.fill;\n if (width < 2 * cornerRadius) {\n cornerRadius = width / 2;\n }\n if (height < 2 * cornerRadius) {\n cornerRadius = height / 2;\n }\n this.ctx.beginPath();\n this.ctx.moveTo(x + width - cornerRadius, y);\n this.ctx.arcTo(x + width, y, x + width, y + height, cornerRadius);\n this.ctx.arcTo(x + width, y + height, x, y + height, cornerRadius);\n this.ctx.arcTo(x, y + height, x, y, cornerRadius);\n this.ctx.arcTo(x, y, x + width, y, cornerRadius);\n this.ctx.closePath();\n this.ctx.fill();\n this.ctx.stroke();\n };\n /**\n * To draw a path on the canvas\n *\n * @param {PathAttributes} options - options needed to draw path.\n * @param {Int32Array} canvasTranslate - Array of numbers to translate the canvas.\n * @returns {Element} To draw a path.\n */\n CanvasRenderer.prototype.drawPath = function (options, canvasTranslate) {\n var path = options.d;\n var dataSplit = path.split(' ');\n var borderWidth = this.getOptionValue(options, 'stroke-width');\n var canvasCtx = this.ctx;\n var flag = true;\n this.ctx.save();\n this.ctx.beginPath();\n if (canvasTranslate) {\n this.ctx.translate(canvasTranslate[0], canvasTranslate[1]);\n }\n this.ctx.globalAlpha = options.opacity ? options.opacity : this.getOptionValue(options, 'fill-opacity');\n this.setAttributes(options);\n for (var i = 0; i < dataSplit.length; i = i + 3) {\n var x1 = parseFloat(dataSplit[i + 1]);\n var y1 = parseFloat(dataSplit[i + 2]);\n switch (dataSplit[i]) {\n case 'M':\n if (!options.innerR && !options.cx) {\n this.ctx.moveTo(x1, y1);\n }\n break;\n case 'L':\n if (!options.innerR) {\n this.ctx.lineTo(x1, y1);\n }\n break;\n case 'Q':\n var q1 = parseFloat(dataSplit[i + 3]);\n var q2 = parseFloat(dataSplit[i + 4]);\n this.ctx.quadraticCurveTo(x1, y1, q1, q2);\n i = i + 2;\n break;\n case 'C':\n var c1 = parseFloat(dataSplit[i + 3]);\n var c2 = parseFloat(dataSplit[i + 4]);\n var c3 = parseFloat(dataSplit[i + 5]);\n var c4 = parseFloat(dataSplit[i + 6]);\n this.ctx.bezierCurveTo(x1, y1, c1, c2, c3, c4);\n i = i + 4;\n break;\n case 'A':\n if (!options.innerR) {\n if (options.cx) {\n this.ctx.arc(options.cx, options.cy, options.radius, 0, 2 * Math.PI, options.counterClockWise);\n } else {\n this.ctx.moveTo(options.x, options.y);\n this.ctx.arc(options.x, options.y, options.radius, options.start, options.end, options.counterClockWise);\n this.ctx.lineTo(options.x, options.y);\n }\n } else if (flag) {\n this.ctx.arc(options.x, options.y, options.radius, options.start, options.end, options.counterClockWise);\n this.ctx.arc(options.x, options.y, options.innerR, options.end, options.start, !options.counterClockWise);\n flag = false;\n }\n i = i + 5;\n break;\n case 'z':\n case 'Z':\n this.ctx.closePath();\n //since for loop is incremented by 3, to get next value after 'z' i is decremented for 2.\n i = i - 2;\n break;\n }\n }\n if (options.fill !== 'none' && options.fill !== undefined) {\n this.ctx.fillStyle = options.fill;\n this.ctx.fill();\n }\n if (borderWidth > 0) {\n this.ctx.stroke();\n }\n this.ctx.restore();\n this.ctx = canvasCtx;\n return this.canvasObj;\n };\n /**\n * To draw a text\n *\n * @param {TextAttributes} options - options required to draw text\n * @param {string} label - Specifies the text which has to be drawn on the canvas\n * @param {number} transX - Specifies the text of translate X\n * @param {number} transY - Specifies the text of translate Y\n * @param {number} dy - Specifies the text of translate dy\n * @param {boolean} isTSpan - Specifies the boolean value of span value\n * @returns {void}\n */\n CanvasRenderer.prototype.createText = function (options, label, transX, transY, dy, isTSpan) {\n var fontWeight = this.getOptionValue(options, 'font-weight');\n if (!isNullOrUndefined(fontWeight) && fontWeight.toLowerCase() === 'regular') {\n fontWeight = 'normal';\n }\n var fontSize = this.getOptionValue(options, 'font-size');\n var fontFamily = this.getOptionValue(options, 'font-family');\n var fontStyle = this.getOptionValue(options, 'font-style').toLowerCase();\n var font = fontStyle + ' ' + fontWeight + ' ' + fontSize + ' ' + fontFamily;\n var anchor = this.getOptionValue(options, 'text-anchor');\n var opacity = options.opacity !== undefined ? options.opacity : 1;\n if (anchor === 'middle') {\n anchor = 'center';\n }\n this.ctx.save();\n this.ctx.fillStyle = options.fill;\n this.ctx.font = font;\n this.ctx.textAlign = anchor;\n this.ctx.globalAlpha = opacity;\n if (options.baseline) {\n this.ctx.textBaseline = options.baseline;\n }\n if (!isTSpan) {\n var txtlngth = 0;\n this.ctx.translate(options.x + txtlngth / 2 + (transX ? transX : 0), options.y + (transY ? transY : 0));\n this.ctx.rotate(options.labelRotation * Math.PI / 180);\n }\n this.ctx.fillText(label, isTSpan ? options.x : 0, isTSpan ? dy : 0);\n this.ctx.restore();\n return this.canvasObj;\n };\n /**\n * To draw circle on the canvas\n *\n * @param {CircleAttributes} options - required options to draw the circle\n * @param {Int32Array} canvasTranslate Translate value of canvas\n * @returns {void}\n */\n CanvasRenderer.prototype.drawCircle = function (options, canvasTranslate) {\n var canvasCtx = this.ctx;\n this.ctx.save();\n this.ctx.beginPath();\n this.ctx.arc(options.cx, options.cy, options.r, 0, 2 * Math.PI);\n this.ctx.fillStyle = options.fill;\n this.ctx.globalAlpha = options.opacity;\n this.ctx.fill();\n if (canvasTranslate) {\n this.ctx.translate(canvasTranslate[0], canvasTranslate[1]);\n }\n this.setAttributes(options);\n this.ctx.stroke();\n this.ctx.restore();\n this.ctx = canvasCtx;\n return this.canvasObj;\n };\n /**\n * To draw polyline\n *\n * @param {PolylineAttributes} options - options needed to draw polyline\n * @returns {void}\n */\n CanvasRenderer.prototype.drawPolyline = function (options) {\n this.ctx.save();\n this.ctx.beginPath();\n var points = options.points.split(' ');\n for (var i = 0; i < points.length - 1; i++) {\n var point = points[i].split(',');\n var x = parseFloat(point[0]);\n var y = parseFloat(point[1]);\n if (i === 0) {\n this.ctx.moveTo(x, y);\n } else {\n this.ctx.lineTo(x, y);\n }\n }\n this.ctx.lineWidth = this.getOptionValue(options, 'stroke-width');\n this.ctx.strokeStyle = options.stroke;\n this.ctx.stroke();\n this.ctx.restore();\n };\n /**\n * To draw an ellipse on the canvas\n *\n * @param {EllipseAttributes} options - options needed to draw ellipse\n * @param {Int32Array} canvasTranslate Translate value of canvas\n * @returns {void}\n */\n CanvasRenderer.prototype.drawEllipse = function (options, canvasTranslate) {\n var canvasCtx = this.ctx;\n var circumference = Math.max(options.rx, options.ry);\n var scaleX = options.rx / circumference;\n var scaleY = options.ry / circumference;\n this.ctx.save();\n this.ctx.beginPath();\n this.ctx.translate(options.cx, options.cy);\n if (canvasTranslate) {\n this.ctx.translate(canvasTranslate[0], canvasTranslate[1]);\n }\n this.ctx.save();\n this.ctx.scale(scaleX, scaleY);\n this.ctx.arc(0, 0, circumference, 0, 2 * Math.PI, false);\n this.ctx.fillStyle = options.fill;\n this.ctx.fill();\n this.ctx.restore();\n this.ctx.lineWidth = this.getOptionValue(options, 'stroke-width');\n this.ctx.strokeStyle = options.stroke;\n this.ctx.stroke();\n this.ctx.restore();\n this.ctx = canvasCtx;\n };\n /**\n * To draw an image\n *\n * @param {ImageAttributes} options - options required to draw an image on the canvas\n * @returns {void}\n */\n CanvasRenderer.prototype.drawImage = function (options) {\n this.ctx.save();\n var imageObj = new Image();\n if (!isNullOrUndefined(options.href)) {\n imageObj.src = options.href;\n this.ctx.drawImage(imageObj, options.x, options.y, options.width, options.height);\n }\n this.ctx.restore();\n };\n /**\n * To create a linear gradient\n *\n * @param {string[]} colors - Specifies the colors required to create linear gradient\n * @returns {string} It returns color\n */\n CanvasRenderer.prototype.createLinearGradient = function (colors) {\n var myGradient;\n if (!isNullOrUndefined(colors[0].colorStop)) {\n myGradient = this.ctx.createLinearGradient(0, 0, 0, this.canvasObj.height);\n }\n var color = this.setGradientValues(colors, myGradient);\n return color;\n };\n /**\n * To create a radial gradient\n *\n * @param {string[]} colors - Specifies the colors required to create linear gradient\n * @returns {string} It returns gradient color\n */\n CanvasRenderer.prototype.createRadialGradient = function (colors) {\n var myGradient;\n if (!isNullOrUndefined(colors[0].colorStop)) {\n myGradient = this.ctx.createRadialGradient(0, 0, 0, 0, 0, this.canvasObj.height);\n }\n var colorName = this.setGradientValues(colors, myGradient);\n return colorName;\n };\n // To set the gradient values\n CanvasRenderer.prototype.setGradientValues = function (colors, myGradient) {\n var colorName;\n if (!isNullOrUndefined(colors[0].colorStop)) {\n for (var i = 0; i <= colors.length - 1; i++) {\n var color = colors[i].color;\n var newColorStop = colors[i].colorStop.slice(0, -1);\n var stopColor = parseInt(newColorStop, 10) / 100;\n myGradient.addColorStop(stopColor, color);\n }\n colorName = myGradient.toString();\n } else {\n colorName = colors[0].color.toString();\n }\n return colorName;\n };\n /**\n * To set the attributes to the element\n *\n * @param {SVGCanvasAttributes} options - Attributes to set for the element\n * @param {HTMLElement} element - The element to which the attributes need to be set\n * @returns {HTMLElement} It returns null value\n */\n CanvasRenderer.prototype.setElementAttributes = function (options, element) {\n var keys = Object.keys(options);\n var values = Object.keys(options).map(function (key) {\n return options[key];\n });\n for (var i = 0; i < keys.length; i++) {\n element.setAttribute(keys[i], values[i]);\n }\n return null;\n };\n /**\n * To update the values of the canvas element attributes\n *\n * @param {SVGCanvasAttributes} options - Specifies the colors required to create gradient\n * @returns {void}\n */\n CanvasRenderer.prototype.updateCanvasAttributes = function (options) {\n this.setElementAttributes(options, this.canvasObj);\n var ctx = this.ctx;\n if (!isNullOrUndefined(this.dataUrl)) {\n var img_1 = new Image();\n img_1.onload = function () {\n ctx.drawImage(img_1, 0, 0);\n };\n img_1.src = this.dataUrl;\n }\n };\n /**\n * This method clears the given rectangle region\n *\n * @param {Rect} rect The rect parameter as passed\n */\n CanvasRenderer.prototype.clearRect = function (rect) {\n this.ctx.restore();\n this.ctx.clearRect(rect.x, rect.y, rect.width, rect.height);\n };\n /**\n * For canvas rendering in chart\n * Dummy method for using canvas/svg render in the same variable name in chart control\n */\n CanvasRenderer.prototype.createGroup = function () {\n return null;\n };\n /**\n * To render a clip path\n *\n * Dummy method for using canvas/svg render in the same variable name in chart control\n */\n CanvasRenderer.prototype.drawClipPath = function () {\n return null;\n };\n /**\n * To render a Circular clip path\n *\n * Dummy method for using canvas/svg render in the same variable name in chart control\n */\n CanvasRenderer.prototype.drawCircularClipPath = function () {\n return null;\n };\n /**\n * Clip method to perform clip in canvas mode\n *\n * @param {BaseAttibutes} options The canvas clip of options\n */\n CanvasRenderer.prototype.canvasClip = function (options) {\n this.ctx.save();\n this.ctx.fillStyle = 'transparent';\n this.ctx.rect(options.x, options.y, options.width, options.height);\n this.ctx.fill();\n this.ctx.clip();\n };\n /**\n * Tp restore the canvas\n */\n CanvasRenderer.prototype.canvasRestore = function () {\n this.ctx.restore();\n };\n /**\n * To draw a polygon\n * Dummy method for using canvas/svg render in the same variable name in chart control\n */\n CanvasRenderer.prototype.drawPolygon = function () {\n return null;\n };\n /**\n * To create defs element in SVG\n * Dummy method for using canvas/svg render in the same variable name in chart control\n *\n * @returns {Element} It returns null\n */\n CanvasRenderer.prototype.createDefs = function () {\n return null;\n };\n /**\n * To create clip path in SVG\n * Dummy method for using canvas/svg render in the same variable name in chart control\n */\n CanvasRenderer.prototype.createClipPath = function () {\n return null;\n };\n /**\n * To create a Html5 SVG element\n * Dummy method for using canvas/svg render in the same variable name in chart control\n *\n * @returns {Element} It returns null\n */\n CanvasRenderer.prototype.createSvg = function () {\n return null;\n };\n return CanvasRenderer;\n}();\n\n/** @private */\nfunction getTooltipThemeColor(theme) {\n var style;\n switch (theme) {\n case 'Highcontrast':\n case 'HighContrast':\n style = {\n tooltipFill: '#ffffff',\n tooltipBoldLabel: '#000000',\n tooltipLightLabel: '#000000',\n tooltipHeaderLine: '#969696',\n textStyle: {\n fontFamily: 'Segoe UI',\n color: '#000000',\n fontWeight: null,\n size: '12px',\n headerTextSize: '12px',\n boldTextSize: '12px'\n }\n };\n break;\n case 'MaterialDark':\n case 'FabricDark':\n case 'BootstrapDark':\n style = {\n tooltipFill: theme === 'MaterialDark' ? '#F4F4F4' : theme === 'FabricDark' ? '#A19F9D' : '#F0F0F0',\n tooltipBoldLabel: theme === 'MaterialDark' ? 'rgba(18, 18, 18, 1)' : theme === 'FabricDark' ? '#DADADA' : '#1A1A1A',\n tooltipLightLabel: theme === 'MaterialDark' ? 'rgba(18, 18, 18, 1)' : theme === 'FabricDark' ? '#DADADA' : '#1A1A1A',\n tooltipHeaderLine: '#9A9A9A',\n textStyle: theme === 'MaterialDark' ? {\n fontFamily: 'Roboto',\n color: 'rgba(18, 18, 18, 1)',\n fontWeight: null,\n size: '12px',\n headerTextSize: '12px',\n boldTextSize: '12px'\n } : theme === 'FabricDark' ? {\n fontFamily: 'Segoe UI',\n color: '#DADADA',\n fontWeight: null,\n size: '12px',\n headerTextSize: '12px',\n boldTextSize: '12px'\n } : {\n fontFamily: 'Helvetica',\n color: '#1A1A1A',\n fontWeight: null,\n size: '12px',\n headerTextSize: '12px',\n boldTextSize: '12px'\n }\n };\n break;\n case 'Bootstrap4':\n style = {\n tooltipFill: '#212529',\n tooltipBoldLabel: '#F9FAFB',\n tooltipLightLabel: '#F9FAFB',\n tooltipHeaderLine: 'rgba(255, 255, 255, 0.2)',\n textStyle: {\n fontFamily: 'Helvetica',\n color: '#F9FAFB',\n fontWeight: null,\n size: '12px',\n headerTextSize: '12px',\n boldTextSize: '12px'\n }\n };\n break;\n case 'Tailwind':\n style = {\n tooltipFill: '#111827',\n tooltipBoldLabel: '#F9FAFB',\n tooltipLightLabel: '#F9FAFB',\n tooltipHeaderLine: '#6B7280',\n textStyle: {\n fontFamily: 'Inter',\n color: '#F9FAFB',\n fontWeight: null,\n size: '12px',\n headerTextSize: '12px',\n boldTextSize: '12px'\n }\n };\n break;\n case 'TailwindDark':\n style = {\n tooltipFill: '#E9ECEF',\n tooltipBoldLabel: '#1F2937',\n tooltipLightLabel: '#1F2937',\n tooltipHeaderLine: '#9CA3AF',\n textStyle: {\n fontFamily: 'Inter',\n color: '#1F2937',\n fontWeight: null,\n size: '12px',\n headerTextSize: '12px',\n boldTextSize: '12px'\n }\n };\n break;\n case 'Bootstrap5':\n style = {\n tooltipFill: '#000000E5',\n tooltipBoldLabel: '#FFFFFF',\n tooltipLightLabel: '#FFFFFF',\n tooltipHeaderLine: '#FFFFFF',\n textStyle: {\n fontFamily: 'Segoe UI',\n color: '#FFFFFF',\n fontWeight: null,\n size: '12px',\n headerTextSize: '16px',\n boldTextSize: '14px'\n }\n };\n break;\n case 'Bootstrap5Dark':\n style = {\n tooltipFill: '#FFFFFFE5',\n tooltipBoldLabel: '#212529',\n tooltipLightLabel: '#212529',\n tooltipHeaderLine: '#212529',\n textStyle: {\n fontFamily: 'Helvetica',\n color: '#212529',\n fontWeight: null,\n size: '12px',\n headerTextSize: '16px',\n boldTextSize: '14px'\n }\n };\n break;\n case 'Fluent':\n style = {\n tooltipFill: '#FFFFFF',\n tooltipBoldLabel: '#323130',\n tooltipLightLabel: '#323130',\n tooltipHeaderLine: '#D2D0CE',\n textStyle: {\n fontFamily: 'Segoe UI',\n color: '#323130',\n fontWeight: null,\n size: '12px',\n headerTextSize: '12px',\n boldTextSize: '12px'\n }\n };\n break;\n case 'FluentDark':\n style = {\n tooltipFill: '#323130',\n tooltipBoldLabel: '#F3F2F2',\n tooltipLightLabel: '#F3F2F1',\n tooltipHeaderLine: '#3B3A39',\n textStyle: {\n fontFamily: 'Segoe UI',\n color: '#F3F2F1',\n fontWeight: null,\n size: '12px',\n headerTextSize: '12px',\n boldTextSize: '12px'\n }\n };\n break;\n case 'Fluent2':\n style = {\n tooltipFill: '#FFFFFF',\n tooltipBoldLabel: '#242424',\n tooltipLightLabel: '#242424',\n tooltipHeaderLine: '#D2D0CE',\n textStyle: {\n fontFamily: 'Segoe UI',\n color: '#242424',\n fontWeight: null,\n size: '12px',\n headerTextSize: '12px',\n boldTextSize: '12px'\n }\n };\n break;\n case 'Fluent2Dark':\n style = {\n tooltipFill: '#292929',\n tooltipBoldLabel: '#FFFFFF',\n tooltipLightLabel: '#FFFFFF',\n tooltipHeaderLine: '#3B3A39',\n textStyle: {\n fontFamily: 'Segoe UI',\n color: '#FFFFFF',\n fontWeight: null,\n size: '12px',\n headerTextSize: '12px',\n boldTextSize: '12px'\n }\n };\n break;\n case 'Fluent2HighContrast':\n style = {\n tooltipFill: '#000000',\n tooltipBoldLabel: '#FFFFFF',\n tooltipLightLabel: '#FFFFFF',\n tooltipHeaderLine: '#3B3A39',\n textStyle: {\n fontFamily: 'Segoe UI',\n color: '#FFFFFF',\n fontWeight: null,\n size: '12px',\n headerTextSize: '12px',\n boldTextSize: '12px'\n }\n };\n break;\n case 'Material3':\n style = {\n tooltipFill: '#313033',\n tooltipBoldLabel: '#F4EFF4',\n tooltipLightLabel: '#F4EFF4',\n tooltipHeaderLine: '#F4EFF4',\n textStyle: {\n fontFamily: 'Roboto',\n color: '#F4EFF4',\n fontWeight: null,\n size: '12px',\n headerTextSize: '12px',\n boldTextSize: '12px'\n }\n };\n break;\n case 'Material3Dark':\n style = {\n tooltipFill: '#E6E1E5',\n tooltipBoldLabel: '#313033',\n tooltipLightLabel: '#313033',\n tooltipHeaderLine: '#313033',\n textStyle: {\n fontFamily: 'Roboto',\n color: '#313033',\n fontWeight: null,\n size: '12px',\n headerTextSize: '12px',\n boldTextSize: '12px'\n }\n };\n break;\n default:\n style = {\n tooltipFill: theme === 'Material' ? '#000816' : theme === 'Fabric' ? '#FFFFFF' : '#212529',\n tooltipBoldLabel: theme === 'Material' ? 'rgba(249, 250, 251, 1)' : theme === 'Fabric' ? '#333333' : '#F9FAFB',\n tooltipLightLabel: theme === 'Material' ? 'rgba(249, 250, 251, 1)' : theme === 'Fabric' ? '#333333' : '#F9FAFB',\n tooltipHeaderLine: theme === 'Fabric' ? '#D2D0CE' : '#ffffff',\n textStyle: theme === 'Material' ? {\n fontFamily: 'Roboto',\n color: 'rgba(249, 250, 251, 1)',\n fontWeight: null,\n size: '12px',\n headerTextSize: '12px',\n boldTextSize: '12px'\n } : theme === 'Fabric' ? {\n fontFamily: 'Segoe UI',\n color: '#333333',\n fontWeight: null,\n size: '12px',\n headerTextSize: '12px',\n boldTextSize: '12px'\n } : {\n fontFamily: 'Helvetica',\n color: '#F9FAFB',\n fontWeight: null,\n size: '12px',\n headerTextSize: '12px',\n boldTextSize: '12px'\n }\n };\n break;\n }\n return style;\n}\nvar __extends = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n/**\n * Function to measure the height and width of the text.\n *\n * @private\n * @param {string} text To get a text\n * @param {FontModel} font To get a font of the text\n * @returns {Size} measureText\n */\nfunction measureText(text, font, themeFontStyle, isHeader) {\n var breakText = text || ''; // For avoid NuLL value\n var htmlObject = document.getElementById('chartmeasuretext');\n if (htmlObject === null) {\n htmlObject = createElement('text', {\n id: 'chartmeasuretext'\n });\n document.body.appendChild(htmlObject);\n }\n if (typeof text === 'string' && (text.indexOf('<') > -1 || text.indexOf('>') > -1)) {\n var textArray = text.split(' ');\n for (var i = 0; i < textArray.length; i++) {\n if (textArray[i].indexOf('
    ') === -1) {\n textArray[i] = textArray[i].replace(/[<>]/g, '&');\n }\n }\n text = textArray.join(' ');\n }\n htmlObject.innerHTML = breakText.indexOf('
    ') > -1 || breakText.indexOf('
    ') > -1 ? breakText : text;\n htmlObject.style.position = 'fixed';\n htmlObject.style.fontSize = font.size || (isHeader ? themeFontStyle.headerTextSize : themeFontStyle.size);\n htmlObject.style.fontStyle = font.fontStyle || themeFontStyle.fontStyle;\n htmlObject.style.fontFamily = font.fontFamily || themeFontStyle.fontFamily;\n htmlObject.style.visibility = 'hidden';\n htmlObject.style.top = '-100';\n htmlObject.style.left = '0';\n htmlObject.style.whiteSpace = 'nowrap';\n // For bootstrap line height issue\n htmlObject.style.lineHeight = 'normal';\n var fontWidth = htmlObject.clientWidth;\n var fontHeight = htmlObject.clientHeight;\n var fontWeight = htmlObject.style.fontWeight;\n htmlObject.style.fontWeight = font.fontWeight || themeFontStyle.fontWeight;\n return new Size(htmlObject.style.fontWeight === 'bold' && fontWeight === 'normal' ? Math.max(fontWidth, htmlObject.clientWidth) : htmlObject.clientWidth, htmlObject.style.fontWeight === 'bold' && fontWeight === 'normal' ? Math.max(fontHeight, htmlObject.clientHeight) : htmlObject.clientHeight);\n}\n/** @private */\nfunction withInAreaBounds(x, y, areaBounds, width, height) {\n if (width === void 0) {\n width = 0;\n }\n if (height === void 0) {\n height = 0;\n }\n return x >= areaBounds.x - width && x <= areaBounds.x + areaBounds.width + width && y >= areaBounds.y - height && y <= areaBounds.y + areaBounds.height + height;\n}\n/** @private */\nfunction findDirection(rX, rY, rect, arrowLocation, arrowPadding, top, bottom, left, tipX, tipY, controlName) {\n if (controlName === void 0) {\n controlName = '';\n }\n var direction = '';\n var startX = rect.x;\n var startY = rect.y;\n var width = rect.x + rect.width;\n var height = rect.y + rect.height;\n if (top) {\n direction = direction.concat('M' + ' ' + startX + ' ' + (startY + rY) + ' Q ' + startX + ' ' + startY + ' ' + (startX + rX) + ' ' + startY + ' ' + ' L' + ' ' + (width - rX) + ' ' + startY + ' Q ' + width + ' ' + startY + ' ' + width + ' ' + (startY + rY));\n direction = direction.concat(' L' + ' ' + width + ' ' + (height - rY) + ' Q ' + width + ' ' + height + ' ' + (width - rX) + ' ' + height);\n if (arrowPadding !== 0) {\n if (controlName === 'RangeNavigator') {\n if (arrowLocation.x - arrowPadding > width / 2) {\n direction = direction.concat(' L' + ' ' + (arrowLocation.x + arrowPadding) + ' ' + height);\n direction = direction.concat(' L' + ' ' + (tipX + arrowPadding) + ' ' + (height + arrowPadding) + ' L' + ' ' + arrowLocation.x + ' ' + height);\n } else {\n direction = direction.concat(' L' + ' ' + arrowLocation.x + ' ' + height);\n direction = direction.concat(' L' + ' ' + (tipX - arrowPadding) + ' ' + (height + arrowPadding) + ' L' + ' ' + (arrowLocation.x - arrowPadding) + ' ' + height);\n }\n } else {\n direction = direction.concat(' L' + ' ' + (arrowLocation.x + arrowPadding) + ' ' + height);\n direction = direction.concat(' L' + ' ' + tipX + ' ' + (height + arrowPadding) + ' L' + ' ' + (arrowLocation.x - arrowPadding) + ' ' + height);\n }\n }\n if (arrowLocation.x - arrowPadding > startX) {\n direction = direction.concat(' L' + ' ' + (startX + rX) + ' ' + height + ' Q ' + startX + ' ' + height + ' ' + startX + ' ' + (height - rY) + ' z');\n } else {\n if (arrowPadding === 0) {\n direction = direction.concat(' L' + ' ' + (startX + rX) + ' ' + height + ' Q ' + startX + ' ' + height + ' ' + startX + ' ' + (height - rY) + ' z');\n } else {\n direction = direction.concat(' L' + ' ' + startX + ' ' + (height + rY) + ' z');\n }\n }\n } else if (bottom) {\n direction = direction.concat('M' + ' ' + startX + ' ' + (startY + rY) + ' Q ' + startX + ' ' + startY + ' ' + (startX + rX) + ' ' + startY + ' L' + ' ' + (arrowLocation.x - arrowPadding) + ' ' + startY);\n direction = direction.concat(' L' + ' ' + tipX + ' ' + arrowLocation.y);\n direction = direction.concat(' L' + ' ' + (arrowLocation.x + arrowPadding) + ' ' + startY);\n direction = direction.concat(' L' + ' ' + (width - rX) + ' ' + startY + ' Q ' + width + ' ' + startY + ' ' + width + ' ' + (startY + rY));\n direction = direction.concat(' L' + ' ' + width + ' ' + (height - rY) + ' Q ' + width + ' ' + height + ' ' + (width - rX) + ' ' + height + ' L' + ' ' + (startX + rX) + ' ' + height + ' Q ' + startX + ' ' + height + ' ' + startX + ' ' + (height - rY) + ' z');\n } else if (left) {\n direction = direction.concat('M' + ' ' + startX + ' ' + (startY + rY) + ' Q ' + startX + ' ' + startY + ' ' + (startX + rX) + ' ' + startY);\n direction = direction.concat(' L' + ' ' + (width - rX) + ' ' + startY + ' Q ' + width + ' ' + startY + ' ' + width + ' ' + ((controlName === 'RangeNavigator' ? 0 : startY + rY) + ' L' + ' ' + width + ' ' + (controlName === 'RangeNavigator' ? 0 : arrowLocation.y - arrowPadding)));\n direction = controlName === 'RangeNavigator' ? direction.concat(' L' + ' ' + (width + arrowPadding) + ' ' + 0) : direction.concat(' L' + ' ' + (width + arrowPadding) + ' ' + tipY);\n direction = controlName === 'RangeNavigator' ? direction.concat(' L' + ' ' + width + ' ' + (arrowLocation.y - rY)) : direction.concat(' L' + ' ' + width + ' ' + (arrowLocation.y + arrowPadding));\n direction = direction.concat(' L' + ' ' + width + ' ' + (height - rY) + ' Q ' + width + ' ' + height + ' ' + (width - rX) + ' ' + height);\n direction = direction.concat(' L' + ' ' + (startX + rX) + ' ' + height + ' Q ' + startX + ' ' + height + ' ' + startX + ' ' + (height - rY) + ' z');\n } else {\n direction = direction.concat('M' + ' ' + (startX + rX) + ' ' + startY + ' Q ' + startX + ' ' + startY + ' ' + startX + ' ' + ((controlName === 'RangeNavigator' ? 0 : startY + rY) + ' L' + ' ' + startX + ' ' + (controlName === 'RangeNavigator' ? 0 : arrowLocation.y - arrowPadding)));\n direction = controlName === 'RangeNavigator' ? direction.concat(' L' + ' ' + (startX - arrowPadding) + ' ' + 0) : direction.concat(' L' + ' ' + (startX - arrowPadding) + ' ' + tipY);\n direction = controlName === 'RangeNavigator' ? direction.concat(' L' + ' ' + startX + ' ' + (arrowLocation.y - rY)) : direction.concat(' L' + ' ' + startX + ' ' + (arrowLocation.y + arrowPadding));\n direction = direction.concat(' L' + ' ' + startX + ' ' + (height - rY) + ' Q ' + startX + ' ' + height + ' ' + (startX + rX) + ' ' + height);\n direction = direction.concat(' L' + ' ' + (width - rX) + ' ' + height + ' Q ' + width + ' ' + height + ' ' + width + ' ' + (height - rY) + ' L' + ' ' + width + ' ' + (startY + rY) + ' Q ' + width + ' ' + startY + ' ' + (width - rX) + ' ' + startY + ' z');\n }\n return direction;\n}\n/** @private */\nvar Size = /** @__PURE__ @class */function () {\n function Size(width, height) {\n this.width = width;\n this.height = height;\n }\n return Size;\n}();\n/** @private */\nvar Rect = /** @__PURE__ @class */function () {\n function Rect(x, y, width, height) {\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n }\n return Rect;\n}();\nvar Side = /** @__PURE__ @class */function () {\n function Side(bottom, right) {\n this.isRight = right;\n this.isBottom = bottom;\n }\n return Side;\n}();\n/** @private */\nvar CustomizeOption = /** @__PURE__ @class */function () {\n function CustomizeOption(id) {\n this.id = id;\n }\n return CustomizeOption;\n}();\n/** @private */\nvar TextOption = /** @__PURE__ @class */function (_super) {\n __extends(TextOption, _super);\n function TextOption(id, x, y, anchor, text, transform, baseLine, labelRotation) {\n if (transform === void 0) {\n transform = '';\n }\n var _this = _super.call(this, id) || this;\n _this.transform = '';\n _this.baseLine = 'auto';\n _this.labelRotation = 0;\n _this.x = x;\n _this.y = y;\n _this.anchor = anchor;\n _this.text = text;\n _this.transform = transform;\n _this.baseLine = baseLine;\n _this.labelRotation = labelRotation;\n return _this;\n }\n return TextOption;\n}(CustomizeOption);\n/** @private */\nfunction getElement(id) {\n return document.getElementById(id);\n}\n/** @private */\nfunction removeElement(id) {\n var element = getElement(id);\n if (element) {\n remove(element);\n }\n}\n/** @private */\nfunction drawSymbol(location, shape, size, url, options, role, label) {\n var renderer = new SvgRenderer('');\n var temp = calculateShapes(location, size, shape, options, url);\n var htmlObject = renderer['draw' + temp.functionName](temp.renderOption);\n htmlObject.setAttribute('role', role);\n htmlObject.setAttribute('aria-label', label);\n return htmlObject;\n}\n/** @private */\nfunction calculateShapes(location, size, shape, options, url) {\n var path;\n var functionName = 'Path';\n var width = size.width;\n var height = size.height;\n var locX = location.x;\n var locY = location.y;\n var x = location.x + -width / 2;\n var y = location.y + -height / 2;\n switch (shape) {\n case 'Circle':\n case 'Bubble':\n functionName = 'Ellipse';\n merge(options, {\n 'rx': width / 2,\n 'ry': height / 2,\n 'cx': locX,\n 'cy': locY\n });\n break;\n case 'Plus':\n path = 'M' + ' ' + x + ' ' + locY + ' ' + 'L' + ' ' + (locX + width / 2) + ' ' + locY + ' ' + 'M' + ' ' + locX + ' ' + (locY + height / 2) + ' ' + 'L' + ' ' + locX + ' ' + (locY + -height / 2);\n merge(options, {\n 'd': path,\n stroke: options.fill\n });\n break;\n case 'Cross':\n path = 'M' + ' ' + x + ' ' + (locY + -height / 2) + ' ' + 'L' + ' ' + (locX + width / 2) + ' ' + (locY + height / 2) + ' ' + 'M' + ' ' + x + ' ' + (locY + height / 2) + ' ' + 'L' + ' ' + (locX + width / 2) + ' ' + (locY + -height / 2);\n merge(options, {\n 'd': path,\n stroke: options.fill\n });\n break;\n case 'HorizontalLine':\n path = 'M' + ' ' + x + ' ' + locY + ' ' + 'L' + ' ' + (locX + width / 2) + ' ' + locY;\n merge(options, {\n 'd': path,\n stroke: options.fill\n });\n break;\n case 'VerticalLine':\n path = 'M' + ' ' + locX + ' ' + (locY + height / 2) + ' ' + 'L' + ' ' + locX + ' ' + (locY + -height / 2);\n merge(options, {\n 'd': path,\n stroke: options.fill\n });\n break;\n case 'Diamond':\n path = 'M' + ' ' + x + ' ' + locY + ' ' + 'L' + ' ' + locX + ' ' + (locY + -height / 2) + ' ' + 'L' + ' ' + (locX + width / 2) + ' ' + locY + ' ' + 'L' + ' ' + locX + ' ' + (locY + height / 2) + ' ' + 'L' + ' ' + x + ' ' + locY + ' z';\n merge(options, {\n 'd': path\n });\n break;\n case 'Rectangle':\n path = 'M' + ' ' + x + ' ' + (locY + -height / 2) + ' ' + 'L' + ' ' + (locX + width / 2) + ' ' + (locY + -height / 2) + ' ' + 'L' + ' ' + (locX + width / 2) + ' ' + (locY + height / 2) + ' ' + 'L' + ' ' + x + ' ' + (locY + height / 2) + ' ' + 'L' + ' ' + x + ' ' + (locY + -height / 2) + ' z';\n merge(options, {\n 'd': path\n });\n break;\n case 'Triangle':\n path = 'M' + ' ' + x + ' ' + (locY + height / 2) + ' ' + 'L' + ' ' + locX + ' ' + (locY + -height / 2) + ' ' + 'L' + ' ' + (locX + width / 2) + ' ' + (locY + height / 2) + ' ' + 'L' + ' ' + x + ' ' + (locY + height / 2) + ' z';\n merge(options, {\n 'd': path\n });\n break;\n case 'InvertedTriangle':\n path = 'M' + ' ' + (locX + width / 2) + ' ' + (locY - height / 2) + ' ' + 'L' + ' ' + locX + ' ' + (locY + height / 2) + ' ' + 'L' + ' ' + (locX - width / 2) + ' ' + (locY - height / 2) + ' ' + 'L' + ' ' + (locX + width / 2) + ' ' + (locY - height / 2) + ' z';\n merge(options, {\n 'd': path\n });\n break;\n case 'Pentagon':\n var eq = 72;\n var xValue = void 0;\n var yValue = void 0;\n for (var i = 0; i <= 5; i++) {\n xValue = width / 2 * Math.cos(Math.PI / 180 * (i * eq));\n yValue = height / 2 * Math.sin(Math.PI / 180 * (i * eq));\n if (i === 0) {\n path = 'M' + ' ' + (locX + xValue) + ' ' + (locY + yValue) + ' ';\n } else {\n path = path.concat('L' + ' ' + (locX + xValue) + ' ' + (locY + yValue) + ' ');\n }\n }\n path = path.concat('Z');\n merge(options, {\n 'd': path\n });\n break;\n case 'Image':\n functionName = 'Image';\n merge(options, {\n 'href': url,\n 'height': height,\n 'width': width,\n x: x,\n y: y\n });\n break;\n case 'Star':\n {\n var cornerPoints = 5;\n var outerRadius = Math.min(width, height) / 2;\n var innerRadius = outerRadius / 2;\n var angle = Math.PI / cornerPoints;\n var starPath = '';\n for (var i = 0; i < 2 * cornerPoints; i++) {\n var radius = i % 2 === 0 ? outerRadius : innerRadius;\n var currentX = locX + radius * Math.cos(i * angle - Math.PI / 2);\n var currentY = locY + radius * Math.sin(i * angle - Math.PI / 2);\n starPath += (i === 0 ? 'M' : 'L') + currentX + ',' + currentY;\n }\n starPath += 'Z';\n merge(options, {\n 'd': starPath\n });\n break;\n }\n }\n return {\n renderOption: options,\n functionName: functionName\n };\n}\n/** @private */\nvar PathOption = /** @__PURE__ @class */function (_super) {\n __extends(PathOption, _super);\n function PathOption(id, fill, width, color, opacity, dashArray, d) {\n var _this = _super.call(this, id) || this;\n _this.opacity = opacity;\n _this.fill = fill;\n _this.stroke = color;\n _this['stroke-width'] = width;\n _this['stroke-dasharray'] = dashArray;\n _this.d = d;\n return _this;\n }\n return PathOption;\n}(CustomizeOption);\n/** @private */\nfunction textElement(options, font, color, parent, themeStyle) {\n var renderOptions = {};\n var renderer = new SvgRenderer('');\n renderOptions = {\n 'id': options.id,\n 'x': options.x,\n 'y': options.y,\n 'fill': color,\n 'font-size': font.size || themeStyle.size,\n 'font-style': font.fontStyle || themeStyle.fontStyle,\n 'font-family': font.fontFamily || themeStyle.fontFamily,\n 'font-weight': font.fontWeight || themeStyle.fontWeight,\n 'text-anchor': options.anchor,\n 'transform': options.transform,\n 'opacity': font.opacity,\n 'dominant-baseline': options.baseLine\n };\n var text = typeof options.text === 'string' ? options.text : options.text[0];\n var htmlObject = renderer.createText(renderOptions, text);\n if (parent) {\n parent.appendChild(htmlObject);\n }\n return htmlObject;\n}\nvar TooltipLocation = /** @__PURE__ @class */function () {\n function TooltipLocation(x, y) {\n this.x = x;\n this.y = y;\n }\n return TooltipLocation;\n}();\nvar __extends$1 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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};\n/**\n * Configures the fonts in charts.\n *\n * @private\n */\nvar TextStyle = /** @__PURE__ @class */function (_super) {\n __extends$1(TextStyle, _super);\n function TextStyle() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate([Property(null)], TextStyle.prototype, \"size\", void 0);\n __decorate([Property('')], TextStyle.prototype, \"color\", void 0);\n __decorate([Property('Segoe UI')], TextStyle.prototype, \"fontFamily\", void 0);\n __decorate([Property('Normal')], TextStyle.prototype, \"fontWeight\", void 0);\n __decorate([Property('Normal')], TextStyle.prototype, \"fontStyle\", void 0);\n __decorate([Property(1)], TextStyle.prototype, \"opacity\", void 0);\n __decorate([Property(null)], TextStyle.prototype, \"headerTextSize\", void 0);\n __decorate([Property(null)], TextStyle.prototype, \"boldTextSize\", void 0);\n return TextStyle;\n}(ChildProperty);\n/**\n * Configures the borders in the chart.\n *\n * @private\n */\nvar TooltipBorder = /** @__PURE__ @class */function (_super) {\n __extends$1(TooltipBorder, _super);\n function TooltipBorder() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate([Property('')], TooltipBorder.prototype, \"color\", void 0);\n __decorate([Property(1)], TooltipBorder.prototype, \"width\", void 0);\n __decorate([Property('')], TooltipBorder.prototype, \"dashArray\", void 0);\n return TooltipBorder;\n}(ChildProperty);\n/**\n * Configures the borders in the chart.\n *\n * @private\n */\nvar AreaBounds = /** @__PURE__ @class */function (_super) {\n __extends$1(AreaBounds, _super);\n function AreaBounds() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate([Property(0)], AreaBounds.prototype, \"x\", void 0);\n __decorate([Property(0)], AreaBounds.prototype, \"y\", void 0);\n __decorate([Property(0)], AreaBounds.prototype, \"width\", void 0);\n __decorate([Property(0)], AreaBounds.prototype, \"height\", void 0);\n return AreaBounds;\n}(ChildProperty);\n/**\n * Configures the borders in the chart.\n *\n * @private\n */\nvar ToolLocation = /** @__PURE__ @class */function (_super) {\n __extends$1(ToolLocation, _super);\n function ToolLocation() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate([Property(0)], ToolLocation.prototype, \"x\", void 0);\n __decorate([Property(0)], ToolLocation.prototype, \"y\", void 0);\n return ToolLocation;\n}(ChildProperty);\n/**\n * Represents the Tooltip control.\n * ```html\n *
    \n * \n * ```\n *\n * @private\n */\nvar Tooltip = /** @__PURE__ @class */function (_super) {\n __extends$1(Tooltip, _super);\n /**\n * Constructor for creating the widget\n *\n * @hidden\n */\n function Tooltip(options, element) {\n return _super.call(this, options, element) || this;\n }\n /**\n * Initialize the event handler.\n *\n * @private\n */\n Tooltip.prototype.preRender = function () {\n this.allowServerDataBinding = false;\n this.initPrivateVariable();\n if (!this.isCanvas) {\n this.removeSVG();\n }\n this.createTooltipElement();\n };\n Tooltip.prototype.initPrivateVariable = function () {\n this.renderer = new SvgRenderer(this.element.id);\n this.themeStyle = getTooltipThemeColor(this.theme);\n this.formattedText = [];\n this.padding = 5;\n this.highlightPadding = 3;\n this.areaMargin = 10;\n this.isFirst = true;\n this.markerPoint = [];\n };\n Tooltip.prototype.removeSVG = function () {\n var svgObject = document.getElementById(this.element.id + '_svg');\n var templateObject = document.getElementById(this.element.id + 'parent_template');\n if (this.blazorTemplate) {\n resetBlazorTemplate(this.element.id + 'parent_template' + '_blazorTemplate');\n }\n if (svgObject && svgObject.parentNode) {\n remove(svgObject);\n }\n if (templateObject && templateObject.parentNode) {\n remove(templateObject);\n }\n };\n /**\n * To Initialize the control rendering.\n */\n Tooltip.prototype.render = function () {\n this.fadeOuted = false;\n if (!this.template) {\n this.renderText(this.isFirst);\n var argsData = {\n cancel: false,\n name: 'tooltipRender',\n tooltip: this\n };\n this.trigger('tooltipRender', argsData);\n var markerSide = this.renderTooltipElement(this.areaBounds, this.location);\n this.drawMarker(markerSide.isBottom, markerSide.isRight, this.markerSize);\n } else {\n this.updateTemplateFn();\n this.createTemplate(this.areaBounds, this.location);\n }\n this.trigger('loaded', {\n tooltip: this\n });\n var element = document.getElementById('chartmeasuretext');\n if (element) {\n remove(element);\n }\n this.allowServerDataBinding = true;\n };\n Tooltip.prototype.createTooltipElement = function () {\n this.textElements = [];\n if (!this.template || this.shared) {\n // SVG element for tooltip\n if (this.enableRTL) {\n this.element.setAttribute('dir', 'ltr');\n }\n var svgObject = this.renderer.createSvg({\n id: this.element.id + '_svg'\n });\n this.element.appendChild(svgObject);\n // Group to hold text and path.\n var groupElement = document.getElementById(this.element.id + '_group');\n if (!groupElement) {\n groupElement = this.renderer.createGroup({\n id: this.element.id + '_group'\n });\n groupElement.setAttribute('transform', 'translate(0,0)');\n }\n svgObject.appendChild(groupElement);\n var pathElement = this.renderer.drawPath({\n 'id': this.element.id + '_path',\n 'stroke-width': (this.theme === 'Fabric' || this.theme === 'Fluent' || this.theme === 'Fluent2' || this.theme === 'Fluent2HighContrast') && !this.border.width ? 1 : this.border.width,\n 'fill': this.fill || this.themeStyle.tooltipFill,\n 'opacity': (this.theme === 'TailwindDark' || this.theme === 'Tailwind' || this.theme === 'Bootstrap5' || this.theme === 'Bootstrap5Dark' || this.theme.indexOf('Fluent2') > -1) && this.opacity === 0.75 ? 1 : this.opacity,\n 'stroke': this.border.color || (this.theme === 'Fabric' || this.theme === 'Fluent' || this.theme === 'Fluent2' ? '#D2D0CE' : this.border.color)\n });\n groupElement.appendChild(pathElement);\n }\n };\n Tooltip.prototype.drawMarker = function (isBottom, isRight, size) {\n if (this.shapes.length <= 0) {\n return null;\n }\n var shapeOption;\n var count = 0;\n var markerGroup = this.renderer.createGroup({\n id: this.element.id + '_trackball_group'\n });\n var groupElement = getElement(this.element.id + '_group');\n if (!groupElement) {\n return null;\n }\n var x = (this.enableRTL ? this.elementSize.width - size / 2 : this.marginX * 2 + size / 2) + (isRight ? this.arrowPadding : 0);\n for (var _i = 0, _a = this.shapes; _i < _a.length; _i++) {\n var shape = _a[_i];\n if (shape !== 'None') {\n shapeOption = new PathOption(this.element.id + '_Trackball_' + count, this.palette[count], 1, '#cccccc', 1, null);\n if (this.markerPoint[count]) {\n var padding = 0;\n if (this.header.indexOf(' -1) {\n padding = this.header.split(//g).length + count;\n }\n var tooltipContent = this.formattedText && this.formattedText.length >= 2 ? this.getTooltipTextContent(this.formattedText[1]) + \", \" + this.getTooltipTextContent(this.formattedText[0]) : '';\n markerGroup.appendChild(drawSymbol(new TooltipLocation(x, this.markerPoint[count] - this.padding + (isBottom ? this.arrowPadding : padding)), shape, new Size(size, size), '', shapeOption, 'img', tooltipContent));\n }\n count++;\n }\n }\n groupElement.appendChild(markerGroup);\n };\n Tooltip.prototype.renderTooltipElement = function (areaBounds, location) {\n var tooltipDiv = getElement(this.element.id);\n var arrowLocation = new TooltipLocation(0, 0);\n var tipLocation = new TooltipLocation(0, 0);\n var svgObject = getElement(this.element.id + '_svg');\n var groupElement = getElement(this.element.id + '_group');\n var pathElement = getElement(this.element.id + '_path');\n var rect;\n var isTop = false;\n var isLeft = false;\n var isBottom = false;\n var x = 0;\n var y = 0;\n if (!isNullOrUndefined(groupElement)) {\n if (this.header !== '') {\n this.elementSize.height += this.marginY;\n }\n if (this.isFixed) {\n var width = this.elementSize.width + 2 * this.marginX;\n var height = this.elementSize.height + 2 * this.marginY;\n rect = new Rect(location.x, location.y, width, height);\n } else if (this.content.length > 1) {\n rect = this.sharedTooltipLocation(areaBounds, this.location.x, this.location.y);\n isTop = true;\n } else {\n rect = this.tooltipLocation(areaBounds, location, arrowLocation, tipLocation);\n if (!this.inverted) {\n isTop = rect.y < location.y + this.clipBounds.y;\n isBottom = !isTop;\n y = isTop ? 0 : this.arrowPadding;\n } else {\n isLeft = rect.x < location.x + this.clipBounds.x;\n x = isLeft ? 0 : this.arrowPadding;\n if (this.allowHighlight) {\n rect.x += isLeft ? this.highlightPadding : -(2 * this.highlightPadding);\n }\n }\n }\n if (this.header !== '') {\n var wrapPadding = 2;\n var padding = 0;\n var wrapHeader = this.isWrap ? this.wrappedText : this.header;\n if (this.isWrap && typeof wrapHeader === 'string' && (wrapHeader.indexOf('<') > -1 || wrapHeader.indexOf('>') > -1)) {\n var textArray = wrapHeader.split('
    ');\n wrapPadding = textArray.length;\n }\n if (this.header.indexOf(' -1) {\n padding = 5 * (this.header.split(//g).length - 1);\n }\n var key = 'properties';\n var font = extend({}, this.textStyle, null, true)[key];\n var headerSize = measureText(this.isWrap ? this.wrappedText : this.header, font, this.themeStyle.textStyle).height + this.marginY * wrapPadding + (isBottom ? this.arrowPadding : 0) + (this.isWrap ? 5 : padding); //header padding;\n var xLength = this.marginX * 3 + (!isLeft && !isTop && !isBottom ? this.arrowPadding : 0);\n var direction = 'M ' + xLength + ' ' + headerSize + 'L ' + (rect.width + (!isLeft && !isTop && !isBottom ? this.arrowPadding : 0) - this.marginX * 2) + ' ' + headerSize;\n var pathElement_1 = this.renderer.drawPath({\n 'id': this.element.id + '_header_path',\n 'stroke-width': 1,\n 'fill': null,\n 'opacity': this.theme === 'Material3' || this.theme === 'Material3Dark' ? 0.2 : 0.8,\n 'stroke': this.themeStyle.tooltipHeaderLine,\n 'd': direction\n });\n groupElement.appendChild(pathElement_1);\n }\n var start = this.border.width / 2;\n var pointRect = new Rect(start + x, start + y, rect.width - start, rect.height - start);\n groupElement.setAttribute('opacity', '1');\n if (this.enableAnimation && !this.isFirst && !this.crosshair) {\n this.animateTooltipDiv(tooltipDiv, rect);\n } else {\n this.updateDiv(tooltipDiv, rect.x, rect.y);\n }\n // eslint-disable-next-line no-extra-boolean-cast\n svgObject.setAttribute('height', (rect.height + this.border.width + (!!this.inverted ? 0 : this.arrowPadding) + 5).toString());\n svgObject.setAttribute('width', (rect.width + this.border.width + (!this.inverted ? 0 : this.arrowPadding) + 5).toString());\n svgObject.setAttribute('opacity', '1');\n if (!isNullOrUndefined(this.tooltipPlacement)) {\n isTop = this.tooltipPlacement.indexOf('Top') > -1;\n isBottom = this.tooltipPlacement.indexOf('Bottom') > -1;\n isLeft = this.tooltipPlacement.indexOf('Left') > -1;\n }\n pathElement.setAttribute('d', findDirection(this.rx, this.ry, pointRect, arrowLocation, this.arrowPadding, isTop, isBottom, isLeft, tipLocation.x, tipLocation.y, this.controlName));\n if (this.enableShadow && this.theme !== 'Bootstrap4' || this.theme.indexOf('Fluent2') > -1) {\n // To fix next chart initial tooltip opacity issue in tab control\n var shadowId = this.element.id + '_shadow';\n if (this.theme === 'Tailwind' || this.theme === 'TailwindDark' || this.theme === 'Bootstrap5' || this.theme === 'Bootstrap5Dark') {\n pathElement.setAttribute('box-shadow', '0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)');\n } else {\n pathElement.setAttribute('filter', Browser.isIE ? '' : 'url(#' + shadowId + ')');\n }\n var shadow = '';\n if (this.theme.indexOf('Fluent2') > -1) {\n shadow += '';\n } else {\n shadow += '';\n }\n shadow += '';\n var defElement = this.renderer.createDefs();\n defElement.setAttribute('id', this.element.id + 'SVG_tooltip_definition');\n groupElement.appendChild(defElement);\n defElement.innerHTML = shadow;\n }\n var borderColor = (this.theme === 'Fabric' || this.theme === 'Fluent' || this.theme === 'Fluent2') && !this.border.color ? '#D2D0CE' : this.theme === 'Fluent2HighContrast' ? '#FFFFFF' : this.border.color;\n pathElement.setAttribute('stroke', borderColor);\n if (!isNullOrUndefined(this.border.dashArray)) {\n pathElement.setAttribute('stroke-dasharray', this.border.dashArray);\n }\n this.changeText(new TooltipLocation(x, y), isBottom, !isLeft && !isTop && !isBottom);\n if (this.revert) {\n this.inverted = !this.inverted;\n this.revert = false;\n }\n }\n return new Side(isBottom, !isLeft && !isTop && !isBottom);\n };\n Tooltip.prototype.changeText = function (point, isBottom, isRight) {\n var element = document.getElementById(this.element.id + '_text');\n if (isBottom) {\n element.setAttribute('transform', 'translate(0,' + this.arrowPadding + ')');\n }\n if (isRight) {\n element.setAttribute('transform', 'translate(' + this.arrowPadding + ' 0)');\n }\n };\n Tooltip.prototype.findFormattedText = function () {\n this.formattedText = [];\n if (this.header.replace(//g, '').replace(/<\\/b>/g, '').trim() !== '') {\n this.formattedText = this.formattedText.concat(this.header);\n }\n this.formattedText = this.formattedText.concat(this.content);\n };\n // tslint:disable-next-line:max-func-body-length\n Tooltip.prototype.renderText = function (isRender) {\n var height = 0;\n var width = 0; // Padding for text;\n var subWidth = 0;\n var lines;\n var key = 'properties';\n var font = extend({}, this.textStyle, null, true)[key];\n var groupElement = getElement(this.element.id + '_group');\n var tspanElement;\n var textCollection;\n var tspanStyle = '';\n var line;\n var tspanOption;\n this.findFormattedText();\n this.isWrap = false;\n var isRtlEnabled = document.body.getAttribute('dir') === 'rtl';\n var anchor = isRtlEnabled && !this.enableRTL ? 'end' : 'start';\n this.leftSpace = this.areaBounds.x + this.location.x;\n this.rightSpace = this.areaBounds.x + this.areaBounds.width - this.leftSpace;\n var headerContent = this.header.replace(//g, '').replace(/<\\/b>/g, '').trim();\n var isBoldTag = this.header.indexOf('') > -1 && this.header.indexOf('') > -1;\n var headerWidth = measureText(this.formattedText[0], font, this.themeStyle.textStyle).width + 2 * this.marginX + this.arrowPadding;\n var isLeftSpace = this.location.x - headerWidth < this.location.x;\n var isRightSpace = this.areaBounds.x + this.areaBounds.width < this.location.x + headerWidth;\n var header;\n var headerSpace = headerContent !== '' ? this.marginY : 0;\n var isRow = true;\n var isColumn = true;\n this.markerPoint = [];\n var markerSize = this.shapes.length > 0 ? 10 : 0;\n var markerPadding = this.shapes.length > 0 ? 5 : 0;\n var spaceWidth = 4;\n var subStringLength;\n var fontSize = '12px';\n var fontWeight = '400';\n var labelColor = this.themeStyle.tooltipLightLabel;\n var dy = 22 / parseFloat(fontSize) * parseFloat(font.size || this.themeStyle.textStyle.size);\n var contentWidth = [];\n var textHeight = 0;\n if (!isRender || this.isCanvas) {\n removeElement(this.element.id + '_text');\n removeElement(this.element.id + '_header_path');\n removeElement(this.element.id + '_trackball_group');\n removeElement(this.element.id + 'SVG_tooltip_definition');\n }\n // Condition to resolve the text size issue only in chart.\n if (this.controlName === 'Chart' && parseFloat(fontSize) < parseFloat(font.size || this.themeStyle.textStyle.headerTextSize)) {\n textHeight = parseFloat(font.size || this.themeStyle.textStyle.size) - parseFloat(fontSize);\n }\n var options = new TextOption(this.element.id + '_text', this.marginX * 2, textHeight + this.marginY * 2 + this.padding * 2 + (this.marginY === 2 ? this.controlName === 'RangeNavigator' ? 5 : 3 : 0), anchor, '');\n var parentElement = textElement(options, font, font.color || this.themeStyle.tooltipBoldLabel, groupElement, this.themeStyle.textStyle);\n var withoutHeader = this.formattedText.length === 1 && this.formattedText[0].indexOf(' : ') > -1;\n var isHeader = this.header !== '';\n var size = isHeader && isBoldTag ? 16 : 13;\n for (var k = 0, pointsLength = this.formattedText.length; k < pointsLength; k++) {\n textCollection = this.formattedText[k].replace(/<(b|strong)>/g, '').replace(/<\\/(b|strong)>/g, '').split(//g);\n if (this.isTextWrap && this.header !== this.formattedText[k] && this.formattedText[k].indexOf(' this.rightSpace ? this.leftSpace / size : this.rightSpace / size);\n textCollection = this.formattedText[k].match(new RegExp('.{1,' + subStringLength + '}', 'g'));\n }\n if (k === 0 && !withoutHeader && this.isTextWrap && (this.leftSpace < headerWidth || isLeftSpace) && (this.rightSpace < headerWidth || isRightSpace)) {\n subStringLength = Math.round(this.leftSpace > this.rightSpace ? this.leftSpace / size : this.rightSpace / size);\n header = headerContent !== '' ? headerContent : this.formattedText[k];\n textCollection = header.match(new RegExp('.{1,' + subStringLength + '}', 'g'));\n this.wrappedText = isBoldTag ? '' + textCollection.join('
    ') + '
    ' : textCollection.join('
    ');\n this.isWrap = textCollection.length > 1;\n }\n if (textCollection[0] === '') {\n continue;\n }\n if (k !== 0 || headerContent === '') {\n this.markerPoint.push((headerContent !== '' ? this.marginY : 0) + options.y + height - (textHeight !== 0 ? textHeight / this.markerSize * (parseFloat(font.size || this.themeStyle.textStyle.headerTextSize) / this.markerSize) : 0));\n }\n for (var i = 0, len = textCollection.length; i < len; i++) {\n // string value of unicode for LTR is \\u200E\n lines = textCollection[i].replace(//g, '
    ').replace(/<\\/b>/g, '
    ').replace(/:/g, this.enableRTL ? '
    \\u200E:
    ' : '
    \\u200E:
    ').split('
    ');\n if (this.enableRTL && lines.length > 0 && textCollection[i].match(/:/g)) {\n lines[0] = lines[0].trim();\n lines.reverse();\n }\n subWidth = 0;\n isColumn = true;\n height += dy;\n for (var j = 0, len_1 = lines.length; j < len_1; j++) {\n line = lines[j];\n if (this.enableRTL && line !== '' && this.isRTLText(line)) {\n line = line.concat('\\u200E');\n }\n if (!/\\S/.test(line) && line !== '') {\n line = ' '; //to trim multiple white spaces to single white space\n }\n if (!isColumn && line === ' ' || line.replace(//g, '').replace(/<\\/b>/g, '').trim() !== '') {\n subWidth += line !== ' ' ? spaceWidth : 0;\n if (isColumn && !isRow) {\n if (this.header.indexOf(' -1 && k !== 0) {\n headerSpace += this.header.split(//g).length;\n }\n tspanOption = {\n x: this.marginX * 2 + (markerSize + markerPadding),\n dy: dy + (isColumn ? headerSpace : 0),\n fill: ''\n };\n headerSpace = null;\n } else {\n if (isRow && isColumn) {\n tspanOption = {\n x: headerContent === '' ? this.marginX * 2 + (markerSize + markerPadding) : this.marginX * 2 + (this.isWrap ? markerSize + markerPadding : 0)\n };\n } else {\n tspanOption = {};\n }\n }\n isColumn = false;\n tspanElement = this.renderer.createTSpan(tspanOption, '');\n parentElement.appendChild(tspanElement);\n if (line.indexOf('') > -1 || isBoldTag && j === 0 && k === 0 && (isHeader || this.isWrap)) {\n fontWeight = '600';\n labelColor = this.themeStyle.tooltipBoldLabel;\n tspanStyle = 'font-weight:' + fontWeight;\n font.fontWeight = fontWeight;\n tspanElement.setAttribute('fill', this.textStyle.color || labelColor);\n } else {\n tspanStyle = fontWeight === '600' ? 'font-weight:' + fontWeight : '';\n font.fontWeight = fontWeight;\n tspanElement.setAttribute('fill', this.textStyle.color || labelColor);\n }\n if (line.indexOf('') > -1 || isBoldTag && j === len_1 - 1 && k === 0 && (isHeader || this.isWrap)) {\n fontWeight = 'Normal';\n labelColor = this.themeStyle.tooltipLightLabel;\n }\n // eslint-disable-next-line no-useless-escape\n if (tspanStyle !== '') {\n tspanElement.style.fontWeight = tspanStyle.split('font-weight:')[1];\n tspanElement.style.color = tspanElement.getAttribute('fill');\n }\n // 'inherit' will apply css style from parent element.\n tspanElement.style.fontFamily = 'inherit';\n tspanElement.style.fontStyle = 'inherit';\n tspanElement.style.fontSize = this.header === this.formattedText[k] ? font.size || this.themeStyle.textStyle.headerTextSize : line.indexOf('') > -1 || line.indexOf('') > -1 ? font.size || this.themeStyle.textStyle.boldTextSize : font.size || this.themeStyle.textStyle.size;\n tspanElement.style.fontWeight = this.header === this.formattedText[k] && (this.header.indexOf('') || this.header.indexOf('')) === -1 ? this.textStyle.fontWeight || '600' : line.indexOf('') > -1 || line.indexOf('') > -1 ? this.theme.indexOf('Bootstrap5') > -1 ? this.textStyle.fontWeight || '600' : 'bold' : (line.indexOf('') === -1 || line.indexOf('') === -1) && this.theme.indexOf('Bootstrap5') > -1 ? this.textStyle.fontWeight || '600' : this.textStyle.fontWeight || font.fontWeight;\n var textFont = extend({}, this.textStyle, null, true)[key];\n textFont.fontWeight = tspanElement.style.fontWeight;\n textFont.size = tspanElement.style.fontSize;\n isRow = false;\n tspanElement.textContent = line = this.getTooltipTextContent(line);\n subWidth += measureText(line, textFont, this.themeStyle.textStyle).width;\n }\n }\n subWidth -= spaceWidth;\n width = Math.max(width, subWidth);\n contentWidth.push(subWidth);\n }\n }\n this.elementSize = new Size(width + (width > 0 ? 2 * this.marginX : 0), height);\n this.elementSize.width += markerSize + markerPadding; // marker size + marker Spacing\n var element = parentElement.childNodes[0];\n if (headerContent !== '' && element && !this.isWrap) {\n font.fontWeight = '600';\n var width_1 = (this.elementSize.width + 2 * this.padding) / 2 - measureText(headerContent, font, this.themeStyle.textStyle, true).width / 2;\n element.setAttribute('x', width_1.toString());\n }\n this.renderContentRTL(parentElement, isHeader, markerSize + markerPadding, contentWidth);\n };\n Tooltip.prototype.renderContentRTL = function (textElement, isHeader, markerSize, contentWidth) {\n if (this.enableRTL) {\n var tspanElement = void 0;\n var contentWidthIndex = isHeader ? 1 : 0;\n for (var i = 0; i < textElement.childNodes.length; i++) {\n tspanElement = textElement.childNodes[i];\n if ((!isHeader || i > 0) && !isNullOrUndefined(tspanElement.getAttribute('x'))) {\n tspanElement.setAttribute('x', (this.elementSize.width - (markerSize + contentWidth[contentWidthIndex])).toString());\n contentWidthIndex++;\n }\n }\n }\n };\n Tooltip.prototype.getTooltipTextContent = function (tooltipText) {\n var characterCollection = tooltipText.match(/<[a-zA-Z\\/](.|\\n)*?>/g);\n if (isNullOrUndefined(characterCollection)) {\n return tooltipText;\n }\n var isRtlText = this.isRTLText(tooltipText);\n for (var i = 0; i < characterCollection.length; i++) {\n if (this.isValidHTMLElement(characterCollection[i].replace('<', '').replace('/', '').replace('>', '').trim())) {\n tooltipText = tooltipText.replace(characterCollection[i], isRtlText ? '\\u200E' : '');\n }\n }\n return tooltipText;\n };\n Tooltip.prototype.isValidHTMLElement = function (element) {\n return document.createElement(element).toString() !== '[object HTMLUnknownElement]';\n };\n Tooltip.prototype.isRTLText = function (tooltipContent) {\n return /[\\u0590-\\u07FF\\u200F\\u202B\\u202E\\uFB1D-\\uFDFD\\uFE70-\\uFEFC]/.test(tooltipContent);\n };\n Tooltip.prototype.createTemplate = function (areaBounds, location) {\n var argsData = {\n cancel: false,\n name: 'tooltipRender',\n tooltip: this\n };\n this.trigger('tooltipRender', argsData);\n var parent = document.getElementById(this.element.id);\n if (this.isCanvas) {\n this.removeSVG();\n }\n var firstElement = parent.firstElementChild;\n if (firstElement) {\n remove(firstElement);\n }\n if (!argsData.cancel) {\n var elem = createElement('div', {\n id: this.element.id + 'parent_template'\n });\n var templateElement = void 0;\n if (this.controlName === 'Chart' && this.shared) {\n for (var i = 0; i < this.data.length; i++) {\n var sharedTemplateElement = this.templateFn(this.data[i], this.controlInstance, elem.id, elem.id + '_blazorTemplate', '');\n if (i === 0) {\n templateElement = sharedTemplateElement;\n } else {\n if (sharedTemplateElement.length > 1) {\n templateElement[i].outerHTML = sharedTemplateElement[i].outerHTML || sharedTemplateElement[i].textContent;\n } else {\n templateElement[templateElement.length - 1].outerHTML += sharedTemplateElement[0].outerHTML;\n }\n }\n }\n } else {\n templateElement = this.templateFn(this.data, this.controlInstance, elem.id, elem.id + '_blazorTemplate', '');\n }\n while (templateElement && templateElement.length > 0) {\n if (isBlazor() || templateElement.length === 1) {\n elem.appendChild(templateElement[0]);\n templateElement = null;\n } else {\n elem.appendChild(templateElement[0]);\n }\n }\n parent.appendChild(elem);\n var element = this.isCanvas ? elem : this.element;\n var rect = element.getBoundingClientRect();\n this.padding = 0;\n this.elementSize = new Size(rect.width, rect.height);\n var tooltipRect = this.shared ? this.sharedTooltipLocation(areaBounds, this.location.x, this.location.y) : this.tooltipLocation(areaBounds, location, new TooltipLocation(0, 0), new TooltipLocation(0, 0));\n if (this.enableAnimation && !this.isFirst && !this.crosshair) {\n this.animateTooltipDiv(this.element, tooltipRect);\n } else {\n this.updateDiv(element, tooltipRect.x, tooltipRect.y);\n }\n if (this.blazorTemplate) {\n //Customer issue - F149037 Call back function to handle the blazor tooltip alignment issues\n var tooltipRendered = function () {\n var rect1 = getElement(thisObject_1.element.id).getBoundingClientRect();\n thisObject_1.elementSize = new Size(rect1.width, rect1.height);\n var tooltipRect1 = thisObject_1.tooltipLocation(areaBounds, location, new TooltipLocation(0, 0), new TooltipLocation(0, 0));\n thisObject_1.updateDiv(getElement(thisObject_1.element.id), tooltipRect1.x, tooltipRect1.y);\n };\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n var thisObject_1 = this;\n tooltipRendered.bind(thisObject_1, areaBounds, location);\n updateBlazorTemplate(this.element.id + 'parent_template' + '_blazorTemplate', this.blazorTemplate.name, this.blazorTemplate.parent, undefined, tooltipRendered);\n }\n } else {\n remove(getElement(this.element.id + '_tooltip'));\n }\n };\n Tooltip.prototype.sharedTooltipLocation = function (bounds, x, y) {\n var width = this.elementSize.width + 2 * this.marginX;\n var height = this.elementSize.height + 2 * this.marginY;\n var tooltipRect = new Rect(x + 2 * this.padding, y - height - this.padding, width, height);\n if (tooltipRect.y < bounds.y) {\n tooltipRect.y += tooltipRect.height + 2 * this.padding;\n }\n if (tooltipRect.y + tooltipRect.height > bounds.y + bounds.height) {\n tooltipRect.y = Math.max(bounds.y + bounds.height - (tooltipRect.height + 2 * this.padding), bounds.y);\n }\n if (tooltipRect.x + tooltipRect.width > bounds.x + bounds.width) {\n tooltipRect.x = bounds.x + this.location.x - (tooltipRect.width + 4 * this.padding);\n }\n if (tooltipRect.x < bounds.x) {\n tooltipRect.x = bounds.x;\n }\n return tooltipRect;\n };\n /** @private */\n Tooltip.prototype.getCurrentPosition = function (bounds, symbolLocation, arrowLocation, tipLocation) {\n var position = this.tooltipPlacement;\n var clipX = this.clipBounds.x;\n var clipY = this.clipBounds.y;\n var markerHeight = this.offset;\n var width = this.elementSize.width + 2 * this.marginX;\n var height = this.elementSize.height + 2 * this.marginY;\n var location = new TooltipLocation(symbolLocation.x, symbolLocation.y);\n if (position === 'Top' || position === 'Bottom') {\n location = new TooltipLocation(location.x + clipX - this.elementSize.width / 2 - this.padding, location.y + clipY - this.elementSize.height - 2 * this.padding - this.arrowPadding - markerHeight);\n arrowLocation.x = tipLocation.x = width / 2;\n if (position === 'Bottom') {\n location.y = symbolLocation.y + clipY + markerHeight;\n }\n if (bounds.x + bounds.width < location.x + width) {\n location.x = bounds.width > width ? bounds.x + bounds.width - width + 6 : bounds.x;\n arrowLocation.x = tipLocation.x = bounds.width > width ? bounds.x + symbolLocation.x - location.x : symbolLocation.x;\n } else if (bounds.x > location.x) {\n location.x = bounds.x;\n arrowLocation.x = tipLocation.x = symbolLocation.x;\n }\n } else {\n location = new TooltipLocation(location.x + clipX + markerHeight, location.y + clipY - this.elementSize.height / 2 - this.padding);\n arrowLocation.y = tipLocation.y = height / 2;\n if (position === 'Left') {\n location.x = symbolLocation.x + clipX - markerHeight - (width + this.arrowPadding);\n }\n if (bounds.y + bounds.height < location.y + height) {\n location.y = bounds.height > height ? bounds.y + bounds.height - height + 6 : bounds.y;\n arrowLocation.y = tipLocation.y = bounds.height > height ? bounds.y + symbolLocation.y - location.y : symbolLocation.y;\n } else if (bounds.y > location.y) {\n location.y = bounds.y;\n arrowLocation.y = tipLocation.y = symbolLocation.y;\n }\n }\n return new Rect(location.x, location.y, width, height);\n };\n // tslint:disable-next-line:max-func-body-length\n /** @private */\n Tooltip.prototype.tooltipLocation = function (bounds, symbolLocation, arrowLocation, tipLocation) {\n if (!isNullOrUndefined(this.tooltipPlacement)) {\n var tooltipRect = this.getCurrentPosition(bounds, symbolLocation, arrowLocation, tipLocation);\n return tooltipRect;\n }\n var location = new TooltipLocation(symbolLocation.x, symbolLocation.y);\n var width = this.elementSize.width + 2 * this.marginX;\n var height = this.elementSize.height + 2 * this.marginY;\n var markerHeight = this.offset;\n var clipX = this.clipBounds.x;\n var clipY = this.clipBounds.y;\n var boundsX = bounds.x;\n var boundsY = bounds.y;\n this.outOfBounds = false;\n if (!this.inverted) {\n location = new TooltipLocation(location.x + clipX - this.elementSize.width / 2 - this.padding, location.y + clipY - this.elementSize.height - 2 * (this.allowHighlight ? this.highlightPadding : this.padding) - this.arrowPadding - markerHeight);\n arrowLocation.x = tipLocation.x = width / 2;\n if ((location.y < boundsY || this.isNegative) && !(this.controlName === 'Progressbar')) {\n location.y = (symbolLocation.y < 0 ? 0 : symbolLocation.y) + clipY + markerHeight;\n }\n if (location.y + height + this.arrowPadding > boundsY + bounds.height) {\n location.y = Math.min(symbolLocation.y, boundsY + bounds.height) + clipY - this.elementSize.height - 2 * this.padding - this.arrowPadding - markerHeight;\n }\n if ((location.x + width > boundsX + bounds.width && location.y < boundsY || this.isNegative) && !(this.controlName === 'Progressbar')) {\n location.y = (symbolLocation.y < 0 ? 0 : symbolLocation.y) + clipY + markerHeight;\n }\n tipLocation.x = width / 2;\n if (location.x < boundsX && !(this.controlName === 'Progressbar')) {\n arrowLocation.x -= boundsX - location.x;\n tipLocation.x -= boundsX - location.x;\n location.x = boundsX;\n }\n if (location.x + width > boundsX + bounds.width && !(this.controlName === 'Progressbar')) {\n arrowLocation.x += location.x + width - (boundsX + bounds.width);\n tipLocation.x += location.x + width - (boundsX + bounds.width);\n location.x -= location.x + width - (boundsX + bounds.width);\n }\n if (location.x < boundsX && !(this.controlName === 'Progressbar')) {\n arrowLocation.x -= boundsX - location.x;\n tipLocation.x -= boundsX - location.x;\n location.x = boundsX;\n }\n if (arrowLocation.x + this.arrowPadding > width - this.rx) {\n arrowLocation.x = width - this.rx - this.arrowPadding;\n tipLocation.x = width - this.rx - this.arrowPadding;\n }\n if (arrowLocation.x - this.arrowPadding < this.rx) {\n arrowLocation.x = tipLocation.x = this.rx + this.arrowPadding;\n }\n if (this.controlName === 'Chart') {\n if (bounds.x + bounds.width - (location.x + arrowLocation.x) < this.areaMargin + this.arrowPadding || location.x + arrowLocation.x < this.areaMargin + this.arrowPadding) {\n this.outOfBounds = true;\n }\n if (this.template && location.y < 0) {\n location.y = symbolLocation.y + clipY + markerHeight;\n }\n if (!withInAreaBounds(location.x, location.y, bounds) || this.outOfBounds) {\n this.inverted = !this.inverted;\n this.revert = true;\n location = new TooltipLocation(symbolLocation.x + markerHeight + clipX, symbolLocation.y + clipY - this.elementSize.height / 2 - this.padding);\n tipLocation.x = arrowLocation.x = 0;\n tipLocation.y = arrowLocation.y = height / 2;\n if (location.x + this.arrowPadding + width > boundsX + bounds.width || this.isNegative) {\n location.x = (symbolLocation.x > boundsX + bounds.width ? bounds.width : symbolLocation.x) + clipX - markerHeight - (this.arrowPadding + width);\n }\n if (location.x < boundsX) {\n location.x = (symbolLocation.x < 0 ? 0 : symbolLocation.x) + markerHeight + clipX;\n }\n if (location.y <= boundsY) {\n tipLocation.y -= boundsY - location.y;\n arrowLocation.y -= boundsY - location.y;\n location.y = boundsY;\n }\n if (location.y + height >= bounds.height + boundsY) {\n arrowLocation.y += location.y + height - (bounds.height + boundsY);\n tipLocation.y += location.y + height - (bounds.height + boundsY);\n location.y -= location.y + height - (bounds.height + boundsY);\n }\n if (this.arrowPadding + arrowLocation.y > height - this.ry) {\n arrowLocation.y = height - this.arrowPadding - this.ry;\n tipLocation.y = height;\n }\n if (arrowLocation.y - this.arrowPadding < this.ry) {\n arrowLocation.y = this.arrowPadding + this.ry;\n tipLocation.y = 0;\n }\n }\n }\n } else {\n location = new TooltipLocation(location.x + clipX + markerHeight, location.y + clipY - this.elementSize.height / 2 - this.padding);\n arrowLocation.y = tipLocation.y = height / 2;\n if (location.x + width + this.arrowPadding > boundsX + bounds.width || this.isNegative) {\n location.x = (symbolLocation.x > bounds.width + bounds.x ? bounds.width : symbolLocation.x) + clipX - markerHeight - (width + this.arrowPadding);\n }\n if (location.x < boundsX) {\n location.x = (symbolLocation.x < 0 ? 0 : symbolLocation.x) + clipX + markerHeight;\n }\n if (location.x + width + this.arrowPadding > boundsX + bounds.width) {\n location.x = (symbolLocation.x > bounds.width + bounds.x ? bounds.width : symbolLocation.x) + clipX - markerHeight - (width + this.arrowPadding);\n }\n if (location.y <= boundsY) {\n arrowLocation.y -= boundsY - location.y;\n tipLocation.y -= boundsY - location.y;\n location.y = boundsY;\n }\n if (location.y + height >= boundsY + bounds.height) {\n arrowLocation.y += location.y + height - (boundsY + bounds.height);\n tipLocation.y += location.y + height - (boundsY + bounds.height);\n location.y -= location.y + height - (boundsY + bounds.height);\n }\n if (arrowLocation.y + this.arrowPadding > height - this.ry) {\n arrowLocation.y = height - this.ry - this.arrowPadding;\n tipLocation.y = height;\n }\n if (arrowLocation.y - this.arrowPadding < this.ry) {\n arrowLocation.y = tipLocation.y = this.ry + this.arrowPadding;\n }\n if (this.controlName === 'Chart') {\n if (location.y + arrowLocation.y < this.areaMargin + this.arrowPadding || bounds.y + bounds.height - (location.y + arrowLocation.y) < this.areaMargin + this.arrowPadding) {\n this.outOfBounds = true;\n }\n if (!withInAreaBounds(location.x, location.y, bounds) || this.outOfBounds) {\n this.inverted = !this.inverted;\n location = new TooltipLocation(symbolLocation.x + clipX - this.padding - this.elementSize.width / 2, symbolLocation.y + clipY - this.elementSize.height - 2 * this.padding - markerHeight - this.arrowPadding);\n this.revert = true;\n tipLocation.x = arrowLocation.x = width / 2;\n tipLocation.y = arrowLocation.y = 0;\n if (location.y < boundsY || this.isNegative) {\n location.y = (symbolLocation.y < 0 ? 0 : symbolLocation.y) + markerHeight + clipY;\n }\n if (location.y + this.arrowPadding + height > boundsY + bounds.height) {\n location.y = Math.min(symbolLocation.y, boundsY + bounds.height) + clipY - this.elementSize.height - 2 * this.padding - markerHeight - this.arrowPadding;\n }\n tipLocation.x = width / 2;\n if (location.x < boundsX) {\n tipLocation.x -= boundsX - location.x;\n arrowLocation.x -= boundsX - location.x;\n location.x = boundsX;\n }\n if (location.x + width > bounds.width + boundsX) {\n arrowLocation.x += location.x + width - (bounds.width + boundsX);\n tipLocation.x += location.x + width - (bounds.width + boundsX);\n location.x -= location.x + width - (bounds.width + boundsX);\n }\n if (this.arrowPadding + arrowLocation.x > width - this.rx) {\n tipLocation.x = width - this.rx - this.arrowPadding;\n arrowLocation.x = width - this.rx - this.arrowPadding;\n }\n if (arrowLocation.x - this.arrowPadding < this.rx) {\n arrowLocation.x = tipLocation.x = this.rx + this.arrowPadding;\n }\n }\n }\n }\n return new Rect(location.x, location.y, width, height);\n };\n Tooltip.prototype.animateTooltipDiv = function (tooltipDiv, rect) {\n var _this = this;\n var x = parseFloat(tooltipDiv.style.left);\n var y = parseFloat(tooltipDiv.style.top);\n var currenDiff;\n new Animation({}).animate(tooltipDiv, {\n duration: this.duration === 0 && animationMode === 'Enable' ? 300 : this.duration,\n progress: function (args) {\n currenDiff = args.timeStamp / args.duration;\n tooltipDiv.style.animation = null;\n if (_this.controlName === 'Chart' && _this.shared && !_this.enableRTL) {\n tooltipDiv.style.transition = 'transform 0.3s';\n tooltipDiv.style.transform = 'translate(' + (x + currenDiff * (rect.x - x)) + 'px,' + (y + currenDiff * (rect.y - y)) + 'px)';\n tooltipDiv.style.left = '';\n tooltipDiv.style.top = '';\n } else {\n tooltipDiv.style.left = x + currenDiff * (rect.x - x) + 'px';\n tooltipDiv.style.top = y + currenDiff * (rect.y - y) + 'px';\n tooltipDiv.style.transform = _this.controlName === 'RangeNavigator' ? tooltipDiv.style.transform : '';\n }\n },\n end: function (model) {\n _this.updateDiv(tooltipDiv, rect.x, rect.y);\n _this.trigger('animationComplete', {\n tooltip: _this\n });\n }\n });\n };\n Tooltip.prototype.updateDiv = function (tooltipDiv, x, y) {\n if (this.controlName === 'Chart' && this.shared && !this.crosshair && !this.enableRTL) {\n tooltipDiv.style.transform = 'translate(' + x + 'px,' + y + 'px)';\n tooltipDiv.style.left = '';\n tooltipDiv.style.top = '';\n } else {\n tooltipDiv.style.left = x + 'px';\n tooltipDiv.style.top = y + 'px';\n tooltipDiv.style.transform = this.controlName === 'RangeNavigator' ? tooltipDiv.style.transform : '';\n }\n };\n Tooltip.prototype.updateTemplateFn = function () {\n if (this.template) {\n try {\n if (typeof this.template !== 'function' && document.querySelectorAll(this.template).length) {\n this.templateFn = compile(document.querySelector(this.template).innerHTML.trim());\n } else {\n this.templateFn = compile(this.template);\n }\n } catch (e) {\n this.templateFn = compile(this.template);\n }\n }\n };\n /** @private */\n Tooltip.prototype.fadeOut = function () {\n var _this = this;\n var tooltipElement = this.isCanvas && !this.template ? getElement(this.element.id + '_svg') : getElement(this.element.id);\n var tooltipDiv = getElement(this.element.id);\n if (tooltipElement) {\n var tooltipGroup_1 = tooltipElement.firstChild;\n if (tooltipGroup_1.nodeType !== Node.ELEMENT_NODE) {\n tooltipGroup_1 = tooltipElement.firstElementChild;\n }\n if (this.isCanvas && !this.template) {\n tooltipGroup_1 = document.getElementById(this.element.id + '_group') ? document.getElementById(this.element.id + '_group') : tooltipGroup_1;\n }\n if (!tooltipGroup_1) {\n return null;\n }\n var opacity_1 = parseFloat(tooltipGroup_1.getAttribute('opacity'));\n opacity_1 = !isNullOrUndefined(opacity_1) ? opacity_1 : 1;\n new Animation({}).animate(tooltipGroup_1, {\n duration: 200,\n progress: function (args) {\n // tooltipGroup.removeAttribute('e-animate');\n _this.progressAnimation(tooltipGroup_1, opacity_1, args.timeStamp / args.duration);\n },\n end: function () {\n _this.fadeOuted = true;\n _this.endAnimation(tooltipGroup_1);\n tooltipDiv.style.transition = '';\n }\n });\n }\n };\n Tooltip.prototype.progressAnimation = function (tooltipGroup, opacity, timeStamp) {\n tooltipGroup.style.animation = '';\n tooltipGroup.setAttribute('opacity', (opacity - timeStamp).toString());\n };\n /*\n * @hidden\n */\n Tooltip.prototype.endAnimation = function (tooltipGroup) {\n tooltipGroup.setAttribute('opacity', '0');\n if (this.template) {\n tooltipGroup.style.display = 'none';\n }\n this.trigger('animationComplete', {\n tooltip: this\n });\n };\n /**\n * Get the properties to be maintained in the persisted state.\n *\n * @private\n */\n Tooltip.prototype.getPersistData = function () {\n var keyEntity = [];\n return this.addOnPersist(keyEntity);\n };\n /**\n * Get component name\n *\n * @private\n */\n Tooltip.prototype.getModuleName = function () {\n return 'tooltip';\n };\n /**\n * To destroy the accumulationcharts\n *\n * @private\n */\n Tooltip.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n this.element.classList.remove('e-tooltip');\n };\n /**\n * Called internally if any of the property value changed.\n *\n * @returns {void}\n * @private\n */\n Tooltip.prototype.onPropertyChanged = function (newProp, oldProp) {\n if (this.blazorTemplate) {\n resetBlazorTemplate(this.element.id + 'parent_template' + '_blazorTemplate');\n }\n this.isFirst = false;\n this.render();\n };\n __decorate([Property(false)], Tooltip.prototype, \"enable\", void 0);\n __decorate([Property(false)], Tooltip.prototype, \"shared\", void 0);\n __decorate([Property(false)], Tooltip.prototype, \"crosshair\", void 0);\n __decorate([Property(false)], Tooltip.prototype, \"enableShadow\", void 0);\n __decorate([Property(null)], Tooltip.prototype, \"fill\", void 0);\n __decorate([Property('')], Tooltip.prototype, \"header\", void 0);\n __decorate([Property(0.75)], Tooltip.prototype, \"opacity\", void 0);\n __decorate([Complex({\n size: '12px',\n fontWeight: null,\n color: null,\n fontStyle: 'Normal',\n fontFamily: null\n }, TextStyle)], Tooltip.prototype, \"textStyle\", void 0);\n __decorate([Property(null)], Tooltip.prototype, \"template\", void 0);\n __decorate([Property(true)], Tooltip.prototype, \"enableAnimation\", void 0);\n __decorate([Property(300)], Tooltip.prototype, \"duration\", void 0);\n __decorate([Property(false)], Tooltip.prototype, \"inverted\", void 0);\n __decorate([Property(false)], Tooltip.prototype, \"isNegative\", void 0);\n __decorate([Complex({\n color: null,\n width: null\n }, TooltipBorder)], Tooltip.prototype, \"border\", void 0);\n __decorate([Property([])], Tooltip.prototype, \"content\", void 0);\n __decorate([Property(10)], Tooltip.prototype, \"markerSize\", void 0);\n __decorate([Complex({\n x: 0,\n y: 0\n }, ToolLocation)], Tooltip.prototype, \"clipBounds\", void 0);\n __decorate([Property([])], Tooltip.prototype, \"palette\", void 0);\n __decorate([Property([])], Tooltip.prototype, \"shapes\", void 0);\n __decorate([Complex({\n x: 0,\n y: 0\n }, ToolLocation)], Tooltip.prototype, \"location\", void 0);\n __decorate([Property(0)], Tooltip.prototype, \"offset\", void 0);\n __decorate([Property(4)], Tooltip.prototype, \"rx\", void 0);\n __decorate([Property(4)], Tooltip.prototype, \"ry\", void 0);\n __decorate([Property(5)], Tooltip.prototype, \"marginX\", void 0);\n __decorate([Property(5)], Tooltip.prototype, \"marginY\", void 0);\n __decorate([Property(7)], Tooltip.prototype, \"arrowPadding\", void 0);\n __decorate([Property(null)], Tooltip.prototype, \"data\", void 0);\n __decorate([Property('Material')], Tooltip.prototype, \"theme\", void 0);\n __decorate([Complex({\n x: 0,\n y: 0,\n width: 0,\n height: 0\n }, AreaBounds)], Tooltip.prototype, \"areaBounds\", void 0);\n __decorate([Property(null)], Tooltip.prototype, \"availableSize\", void 0);\n __decorate([Property()], Tooltip.prototype, \"blazorTemplate\", void 0);\n __decorate([Property(false)], Tooltip.prototype, \"isCanvas\", void 0);\n __decorate([Property(false)], Tooltip.prototype, \"isTextWrap\", void 0);\n __decorate([Property(false)], Tooltip.prototype, \"isFixed\", void 0);\n __decorate([Property(null)], Tooltip.prototype, \"tooltipPlacement\", void 0);\n __decorate([Property(null)], Tooltip.prototype, \"controlInstance\", void 0);\n __decorate([Property('')], Tooltip.prototype, \"controlName\", void 0);\n __decorate([Event()], Tooltip.prototype, \"tooltipRender\", void 0);\n __decorate([Event()], Tooltip.prototype, \"loaded\", void 0);\n __decorate([Event()], Tooltip.prototype, \"animationComplete\", void 0);\n __decorate([Property(false)], Tooltip.prototype, \"enableRTL\", void 0);\n __decorate([Property(false)], Tooltip.prototype, \"allowHighlight\", void 0);\n Tooltip = __decorate([NotifyPropertyChanges], Tooltip);\n return Tooltip;\n}(Component);\nexport { AreaBounds, CanvasRenderer, CustomizeOption, PathOption, Rect, Side, Size, SvgRenderer, TextOption, TextStyle, ToolLocation, Tooltip, TooltipBorder, TooltipLocation, calculateShapes, drawSymbol, findDirection, getElement, getTooltipThemeColor, measureText, removeElement, textElement, withInAreaBounds };\n","import { createElement, remove, Property, ChildProperty, Complex, Browser, Animation as Animation$1, animationMode, isNullOrUndefined, EventHandler, Event, Collection, NotifyPropertyChanges, Component } from '@syncfusion/ej2-base';\nimport { PathOption, Tooltip, getElement as getElement$1, measureText, SvgRenderer } from '@syncfusion/ej2-svg-base';\nvar __extends = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n/**\n * helper for progress bar\n */\n/** @private */\nvar Rect = /** @__PURE__ @class */function () {\n function Rect(x, y, height, width) {\n this.x = x;\n this.y = y;\n this.height = height;\n this.width = width;\n }\n return Rect;\n}();\n/** @private */\nvar Size = /** @__PURE__ @class */function () {\n function Size(height, width) {\n this.height = height;\n this.width = width;\n }\n return Size;\n}();\n/** @private */\nvar Pos = /** @__PURE__ @class */function () {\n function Pos(x, y) {\n this.x = x;\n this.y = y;\n }\n return Pos;\n}();\n/** @private */\nvar RectOption = /** @__PURE__ @class */function (_super) {\n __extends(RectOption, _super);\n function RectOption(id, fill, width, color, opacity, rect, rx, ry, transform, dashArray) {\n var _this = _super.call(this, id, fill, width, color, opacity, dashArray) || this;\n _this.y = rect.y;\n _this.x = rect.x;\n _this.height = rect.height;\n _this.width = rect.width;\n _this.rx = rx ? rx : 0;\n _this.ry = ry ? ry : 0;\n _this.transform = transform ? transform : '';\n _this.stroke = width !== 0 && _this.stroke !== '' ? color : 'transparent';\n return _this;\n }\n return RectOption;\n}(PathOption);\n/** @private */\nvar ColorValue = /** @__PURE__ @class */function () {\n function ColorValue(r, g, b) {\n this.r = r;\n this.g = g;\n this.b = b;\n }\n return ColorValue;\n}();\n/**\n * Converts a color value to its hexadecimal representation.\n *\n * @param {ColorValue} value - The color value to convert.\n * @returns {string} - The hexadecimal representation of the color.\n * @private\n */\nfunction convertToHexCode(value) {\n return '#' + componentToHex(value.r) + componentToHex(value.g) + componentToHex(value.b);\n}\n/**\n * Converts a color component value to its hexadecimal representation.\n *\n * @param {number} value - The color component value to convert.\n * @returns {string} - The hexadecimal representation of the color component.\n * @private\n */\nfunction componentToHex(value) {\n var hex = value.toString(16);\n return hex.length === 1 ? '0' + hex : hex;\n}\n/**\n * Converts a hexadecimal color code to a ColorValue.\n *\n * @param {string} hex - The hexadecimal color code to convert.\n * @returns {ColorValue} - The ColorValue representing the color.\n * @private\n */\nfunction convertHexToColor(hex) {\n var result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n return result ? new ColorValue(parseInt(result[1], 16), parseInt(result[2], 16), parseInt(result[3], 16)) : new ColorValue(255, 255, 255);\n}\n/**\n * Converts a color name to its corresponding hexadecimal representation.\n *\n * @param {string} color - The color name to convert.\n * @returns {string} - The hexadecimal representation of the color.\n * @private\n */\nfunction colorNameToHex(color) {\n color = color === 'transparent' ? 'white' : color;\n document.body.appendChild(createElement('text', {\n id: 'chartmeasuretext'\n }));\n var element = document.getElementById('chartmeasuretext');\n element.style.color = color;\n color = window.getComputedStyle(element).color;\n remove(element);\n var isRGBValue;\n if (color.indexOf('rgb') === 0 || color.indexOf('hsl') === 0) {\n color = color.replace(/\\s/g, '').replace(/[()]/g, '');\n isRGBValue = color.slice(3).split(',');\n }\n return convertToHexCode(new ColorValue(parseInt(isRGBValue[3], 10), parseInt(isRGBValue[4], 10), parseInt(isRGBValue[5], 10)));\n}\n/** @private */\nvar TextOption = /** @__PURE__ @class */function () {\n function TextOption(id, fontSize, fontStyle, fontFamily, fontWeight, textAnchor, fill, x, y, width, height) {\n this.id = id;\n this['font-size'] = fontSize;\n this['font-style'] = fontStyle;\n this['font-family'] = fontFamily;\n this['font-weight'] = fontWeight;\n this['text-anchor'] = textAnchor;\n this.fill = fill;\n this.x = x;\n this.y = y;\n this.width = width ? width : 0;\n this.height = height ? height : 0;\n }\n return TextOption;\n}();\n/**\n * Converts polar coordinates (angle in degrees) to Cartesian coordinates.\n *\n * @param {number} centerX - The x-coordinate of the center point.\n * @param {number} centerY - The y-coordinate of the center point.\n * @param {number} radius - The radius from the center point.\n * @param {number} angleInDegrees - The angle in degrees.\n * @returns {Pos} - The Cartesian coordinates (x, y) corresponding to the given polar coordinates.\n */\nfunction degreeToLocation(centerX, centerY, radius, angleInDegrees) {\n var angleInRadians = (angleInDegrees - 90) * (Math.PI / 180);\n return {\n x: centerX + radius * Math.cos(angleInRadians),\n y: centerY + radius * Math.sin(angleInRadians)\n };\n}\n/**\n * Generates an SVG path arc string based on given parameters.\n *\n * @param {number} x - The x-coordinate of the center of the arc.\n * @param {number} y - The y-coordinate of the center of the arc.\n * @param {number} radius - The radius of the arc.\n * @param {number} startAngle - The start angle of the arc in degrees.\n * @param {number} endAngle - The end angle of the arc in degrees.\n * @param {boolean} enableRtl - Indicates whether the drawing direction is right-to-left.\n * @param {boolean} pieView - Indicates whether the arc should be drawn as a pie slice.\n * @returns {string} - The SVG path arc string representing the arc.\n */\nfunction getPathArc(x, y, radius, startAngle, endAngle, enableRtl, pieView) {\n var start = degreeToLocation(x, y, radius, startAngle);\n var end = degreeToLocation(x, y, radius, endAngle);\n var largeArcFlag = '0';\n var sweepFlag = enableRtl ? '0' : '1';\n if (!enableRtl) {\n largeArcFlag = (endAngle >= startAngle ? endAngle : endAngle + 360) - startAngle <= 180 ? '0' : '1';\n } else {\n largeArcFlag = (startAngle >= endAngle ? startAngle : startAngle + 360) - endAngle <= 180 ? '0' : '1';\n }\n var d;\n if (pieView) {\n d = 'M ' + x + ' ' + y + ' L ' + start.x + ' ' + start.y + ' A ' + radius + ' ' + radius + ' ' + ' 0 ' + ' ' + largeArcFlag + ' ' + sweepFlag + ' ' + end.x + ' ' + end.y + ' ' + 'Z';\n } else {\n d = 'M' + start.x + ' ' + start.y + 'A' + radius + ' ' + radius + ' ' + '0' + ' ' + largeArcFlag + ' ' + sweepFlag + ' ' + end.x + ' ' + end.y;\n }\n return d;\n}\n/**\n * Converts a string value to a number, considering the container size.\n *\n * @param {string} value - The string value to convert to a number.\n * @param {number} containerSize - The size of the container to consider for relative values.\n * @returns {number} - The converted number value.\n * @private\n */\nfunction stringToNumber(value, containerSize) {\n if (value !== null && value !== undefined) {\n return value.indexOf('%') !== -1 ? containerSize / 100 * parseInt(value, 10) : parseInt(value, 10);\n }\n return null;\n}\n/**\n * Sets attributes on an HTML element based on the provided options.\n *\n * @param {any} options - The options object containing attributes to set.\n * @param {Element} element - The HTML element to set attributes on.\n * @returns {Element} - The modified HTML element.\n * @private\n */\nfunction setAttributes(options, element) {\n var keys = Object.keys(options);\n for (var i = 0; i < keys.length; i++) {\n element.setAttribute(keys[i], options[keys[i]]);\n }\n return element;\n}\n/**\n * Calculates the effect value at a given time based on the start and end values, duration, and direction.\n *\n * @param {number} currentTime - The current time in milliseconds.\n * @param {number} startValue - The start value of the effect.\n * @param {number} endValue - The end value of the effect.\n * @param {number} duration - The duration of the effect in milliseconds.\n * @param {boolean} enableRtl - Indicates whether the effect direction is right-to-left.\n * @returns {number} - The calculated effect value at the given time.\n * @private\n */\nfunction effect(currentTime, startValue, endValue, duration, enableRtl) {\n var start = enableRtl ? endValue : -endValue;\n var end = startValue + (enableRtl ? -endValue : endValue);\n return start * Math.cos(currentTime / duration * (Math.PI / 2)) + end;\n}\n/**\n * @private\n */\nvar annotationRender = 'annotationRender';\n/**\n * Retrieves an HTML element from the DOM by its ID.\n *\n * @param {string} id - The ID of the HTML element to retrieve.\n * @returns {Element} - The HTML element with the specified ID.\n * @private\n */\nfunction getElement(id) {\n return document.getElementById(id);\n}\n/**\n * Removes an HTML element from the DOM.\n *\n * @param {string | Element} id - The ID of the HTML element or the element itself to remove.\n * If provided as a string, it's assumed to be the ID of the element.\n * @returns {void}\n * @private\n */\nfunction removeElement(id) {\n if (!id) {\n return null;\n }\n var element = typeof id === 'string' ? getElement(id) : id;\n if (element) {\n remove(element);\n }\n}\n/**\n * @private\n */\nvar ProgressLocation = /** @__PURE__ @class */function () {\n function ProgressLocation(x, y) {\n this.x = x;\n this.y = y;\n }\n return ProgressLocation;\n}();\nvar __extends$1 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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};\n/**\n * progress bar complex interface\n */\nvar Margin = /** @__PURE__ @class */function (_super) {\n __extends$1(Margin, _super);\n function Margin() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate([Property(10)], Margin.prototype, \"top\", void 0);\n __decorate([Property(10)], Margin.prototype, \"bottom\", void 0);\n __decorate([Property(10)], Margin.prototype, \"left\", void 0);\n __decorate([Property(10)], Margin.prototype, \"right\", void 0);\n return Margin;\n}(ChildProperty);\n/**\n * Configures the fonts in progressbar\n */\nvar Font = /** @__PURE__ @class */function (_super) {\n __extends$1(Font, _super);\n function Font() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate([Property('Normal')], Font.prototype, \"fontStyle\", void 0);\n __decorate([Property('16px')], Font.prototype, \"size\", void 0);\n __decorate([Property('Normal')], Font.prototype, \"fontWeight\", void 0);\n __decorate([Property('')], Font.prototype, \"color\", void 0);\n __decorate([Property('Segoe UI')], Font.prototype, \"fontFamily\", void 0);\n __decorate([Property(null)], Font.prototype, \"opacity\", void 0);\n __decorate([Property('Far')], Font.prototype, \"textAlignment\", void 0);\n __decorate([Property('')], Font.prototype, \"text\", void 0);\n return Font;\n}(ChildProperty);\n/**\n * Animation\n */\nvar Animation = /** @__PURE__ @class */function (_super) {\n __extends$1(Animation, _super);\n function Animation() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate([Property(false)], Animation.prototype, \"enable\", void 0);\n __decorate([Property(2000)], Animation.prototype, \"duration\", void 0);\n __decorate([Property(0)], Animation.prototype, \"delay\", void 0);\n return Animation;\n}(ChildProperty);\n/**\n * Annotation\n */\nvar ProgressAnnotationSettings = /** @__PURE__ @class */function (_super) {\n __extends$1(ProgressAnnotationSettings, _super);\n function ProgressAnnotationSettings() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate([Property(null)], ProgressAnnotationSettings.prototype, \"content\", void 0);\n __decorate([Property(0)], ProgressAnnotationSettings.prototype, \"annotationAngle\", void 0);\n __decorate([Property('0%')], ProgressAnnotationSettings.prototype, \"annotationRadius\", void 0);\n return ProgressAnnotationSettings;\n}(ChildProperty);\n/**\n * Configures the borders .\n */\nvar Border = /** @__PURE__ @class */function (_super) {\n __extends$1(Border, _super);\n function Border() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate([Property('')], Border.prototype, \"color\", void 0);\n __decorate([Property(1)], Border.prototype, \"width\", void 0);\n return Border;\n}(ChildProperty);\n/**\n * Options to customize the tooltip for the progress bar.\n *\n * @default {}\n */\nvar TooltipSettings = /** @__PURE__ @class */function (_super) {\n __extends$1(TooltipSettings, _super);\n function TooltipSettings() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate([Property(false)], TooltipSettings.prototype, \"enable\", void 0);\n __decorate([Property(null)], TooltipSettings.prototype, \"fill\", void 0);\n __decorate([Property(null)], TooltipSettings.prototype, \"format\", void 0);\n __decorate([Property(false)], TooltipSettings.prototype, \"showTooltipOnHover\", void 0);\n __decorate([Complex({\n fontFamily: null,\n size: '12px',\n fontWeight: '400',\n fontStyle: 'Normal',\n color: null\n }, Font)], TooltipSettings.prototype, \"textStyle\", void 0);\n __decorate([Complex({\n color: '#cccccc',\n width: 0.5\n }, Border)], TooltipSettings.prototype, \"border\", void 0);\n return TooltipSettings;\n}(ChildProperty);\n/**\n * RangeColor\n */\nvar RangeColor = /** @__PURE__ @class */function (_super) {\n __extends$1(RangeColor, _super);\n function RangeColor() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n __decorate([Property('')], RangeColor.prototype, \"color\", void 0);\n __decorate([Property(null)], RangeColor.prototype, \"start\", void 0);\n __decorate([Property(null)], RangeColor.prototype, \"end\", void 0);\n return RangeColor;\n}(ChildProperty);\n\n/**\n * Retrieves the theme color settings for a progress bar.\n *\n * @param {ProgressTheme} theme - The theme of the progress bar.\n * @returns {IProgressStyle} - The style settings for the progress bar based on the theme.\n * @private\n */\nfunction getProgressThemeColor(theme) {\n var style;\n switch (theme) {\n case 'Material':\n style = {\n linearTrackColor: '#E3165B',\n linearProgressColor: '#E3165B',\n circularTrackColor: '#E3165B',\n circularProgressColor: '#E3165B',\n backgroundColor: 'transparent',\n progressOpacity: 1,\n trackOpacity: 0.26,\n bufferOpacity: 0.4,\n linearGapWidth: 4,\n circularGapWidth: 4,\n linearTrackThickness: 4,\n linearProgressThickness: 4,\n circularTrackThickness: 4,\n circularProgressThickness: 4,\n tooltipFill: '#ffffff',\n tooltipLightLabel: '#000000',\n success: '#4caf50',\n danger: '#ff6652',\n warning: '#ff9800',\n info: '#03a9f4',\n tooltipLabelFont: {\n color: 'rgba(249, 250, 251, 1)',\n fontFamily: 'Roboto'\n },\n linearLabelFont: {\n size: '10',\n fontWeight: '400',\n color: '#000000',\n fontStyle: 'Normal',\n fontFamily: 'Roboto'\n },\n circularLabelFont: {\n size: '12',\n fontWeight: '500',\n color: '#000000',\n fontStyle: 'Normal',\n fontFamily: 'Roboto'\n }\n };\n break;\n case 'Bootstrap':\n style = {\n linearTrackColor: '#EEEEEE',\n linearProgressColor: '#317ab9',\n circularTrackColor: '#EEEEEE',\n circularProgressColor: '#317ab9',\n backgroundColor: 'transparent',\n progressOpacity: 1,\n trackOpacity: 1,\n bufferOpacity: 0.44,\n linearGapWidth: 4,\n circularGapWidth: 4,\n linearTrackThickness: 20,\n linearProgressThickness: 20,\n circularTrackThickness: 6,\n circularProgressThickness: 6,\n tooltipFill: '#ffffff',\n tooltipLightLabel: '#000000',\n success: '#48b14c',\n danger: '#d44f4f',\n warning: '#fac168',\n info: '#2aaac0',\n tooltipLabelFont: {\n color: '#F9FAFB',\n fontFamily: 'Helvetica Neue'\n },\n linearLabelFont: {\n size: '10',\n fontWeight: '400',\n color: '#000000',\n fontStyle: 'Normal',\n fontFamily: 'Helvetica Neue'\n },\n circularLabelFont: {\n size: '12',\n fontWeight: '500',\n color: '#000000',\n fontStyle: 'Normal',\n fontFamily: 'Helvetica Neue'\n }\n };\n break;\n case 'Bootstrap4':\n style = {\n linearTrackColor: '#E9ECEF',\n linearProgressColor: '#007bff',\n circularTrackColor: '#E9ECEF',\n circularProgressColor: '#007bff',\n backgroundColor: 'transparent',\n progressOpacity: 1,\n trackOpacity: 1,\n bufferOpacity: 0.44,\n linearGapWidth: 4,\n circularGapWidth: 4,\n linearTrackThickness: 16,\n linearProgressThickness: 16,\n circularTrackThickness: 6,\n circularProgressThickness: 6,\n tooltipFill: '#ffffff',\n tooltipLightLabel: '#000000',\n success: '#28a745',\n danger: '#dc3545',\n warning: '#ffc107',\n info: '#17a2b8',\n tooltipLabelFont: {\n color: '#F9FAFB',\n fontFamily: 'Helvetica Neue'\n },\n linearLabelFont: {\n size: '10',\n fontWeight: '400',\n color: '#000000',\n fontStyle: 'Normal',\n fontFamily: 'Helvetica Neue'\n },\n circularLabelFont: {\n size: '12',\n fontWeight: '500',\n color: '#000000',\n fontStyle: 'Normal',\n fontFamily: 'Helvetica Neue'\n }\n };\n break;\n case 'HighContrast':\n style = {\n linearTrackColor: '#BFBFBF',\n linearProgressColor: '#FFD939',\n circularTrackColor: '#BFBFBF',\n circularProgressColor: '#FFD939',\n backgroundColor: 'transparent',\n progressOpacity: 1,\n trackOpacity: 1,\n bufferOpacity: 0.35,\n linearGapWidth: 2,\n circularGapWidth: 4,\n linearTrackThickness: 2,\n linearProgressThickness: 2,\n circularTrackThickness: 4,\n circularProgressThickness: 4,\n tooltipFill: '#ffffff',\n tooltipLightLabel: '#000000',\n success: '#2bc700',\n danger: '#ff6161',\n warning: '#ff7d1a',\n info: '#66b0ff',\n tooltipLabelFont: {\n color: '#000000',\n fontFamily: 'Segoe UI'\n },\n linearLabelFont: {\n size: '10',\n fontWeight: '400',\n color: '#FFFFFF',\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n },\n circularLabelFont: {\n size: '12',\n fontWeight: '500',\n color: '#FFFFFF',\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n }\n };\n break;\n case 'Tailwind':\n style = {\n linearTrackColor: '#E5E7EB',\n linearProgressColor: '#4F46E5',\n circularTrackColor: '#E5E7EB',\n circularProgressColor: '#4F46E5',\n backgroundColor: 'transparent',\n progressOpacity: 1,\n trackOpacity: 1,\n bufferOpacity: 0.35,\n linearGapWidth: 2,\n circularGapWidth: 4,\n linearTrackThickness: 2,\n linearProgressThickness: 2,\n circularTrackThickness: 4,\n circularProgressThickness: 4,\n tooltipFill: '#ffffff',\n tooltipLightLabel: '#000000',\n success: '#15803D',\n danger: '#DC2626',\n warning: '#C2410C',\n info: '#0E7490',\n tooltipLabelFont: {\n color: '#F9FAFB',\n fontFamily: 'Inter'\n },\n linearLabelFont: {\n size: '10',\n fontWeight: '400',\n color: '#FFFFFF',\n fontStyle: 'Normal',\n fontFamily: 'Inter'\n },\n circularLabelFont: {\n size: '12',\n fontWeight: '500',\n color: '#FFFFFF',\n fontStyle: 'Normal',\n fontFamily: 'Inter'\n }\n };\n break;\n case 'TailwindDark':\n style = {\n linearTrackColor: '#4B5563',\n linearProgressColor: '#22D3EE',\n circularTrackColor: '#4B5563',\n circularProgressColor: '#22D3EE',\n backgroundColor: 'transparent',\n progressOpacity: 1,\n trackOpacity: 1,\n bufferOpacity: 0.45,\n linearGapWidth: 2,\n circularGapWidth: 4,\n linearTrackThickness: 2,\n linearProgressThickness: 2,\n circularTrackThickness: 4,\n circularProgressThickness: 4,\n tooltipFill: '#ffffff',\n tooltipLightLabel: '#000000',\n success: '#22C55E',\n danger: '#F87171',\n warning: '#ea580c',\n info: '#06B6D4',\n tooltipLabelFont: {\n color: '#1F2937',\n fontFamily: 'Inter'\n },\n linearLabelFont: {\n size: '10',\n fontWeight: '400',\n color: '#D1D5DB',\n fontStyle: 'Normal',\n fontFamily: 'Inter'\n },\n circularLabelFont: {\n size: '12',\n fontWeight: '500',\n color: '#D1D5DB',\n fontStyle: 'Normal',\n fontFamily: 'Inter'\n }\n };\n break;\n case 'FabricDark':\n case 'BootstrapDark':\n case 'MaterialDark':\n style = {\n linearTrackColor: '#C8C8C8',\n linearProgressColor: '#9A9A9A',\n circularTrackColor: '#C8C8C8',\n circularProgressColor: '#9A9A9A',\n backgroundColor: 'transparent',\n progressOpacity: 1,\n trackOpacity: 1,\n bufferOpacity: 0.44,\n linearGapWidth: 2,\n circularGapWidth: 4,\n linearTrackThickness: 16,\n linearProgressThickness: 16,\n circularTrackThickness: 4,\n circularProgressThickness: 4,\n tooltipFill: '#ffffff',\n tooltipLightLabel: '#000000',\n success: '#22b24b',\n danger: '#ac2a2a',\n warning: '#ffca1c',\n info: '#489bd5',\n tooltipLabelFont: {\n color: theme === 'BootstrapDark' ? '#1A1A1A' : theme === 'FabricDark' ? '#DADADA' : 'rgba(18, 18, 18, 1)',\n fontFamily: theme === 'BootstrapDark' ? 'Helvetica Neue' : theme === 'FabricDark' ? 'Segoe UI' : 'Roboto'\n },\n linearLabelFont: {\n size: '10',\n fontWeight: '400',\n color: '#000000',\n fontStyle: 'Normal',\n fontFamily: theme === 'BootstrapDark' ? 'Helvetica Neue' : theme === 'FabricDark' ? 'Segoe UI' : 'Roboto'\n },\n circularLabelFont: {\n size: '12',\n fontWeight: '500',\n color: '#000000',\n fontStyle: 'Normal',\n fontFamily: theme === 'BootstrapDark' ? 'Helvetica Neue' : theme === 'FabricDark' ? 'Segoe UI' : 'Roboto'\n }\n };\n break;\n case 'Bootstrap5':\n style = {\n linearTrackColor: '#DEE2E6',\n linearProgressColor: '#0D6EFD',\n circularTrackColor: '#DEE2E6',\n circularProgressColor: '#0D6EFD',\n backgroundColor: 'transparent',\n progressOpacity: 1,\n trackOpacity: 1,\n bufferOpacity: 0.44,\n linearGapWidth: 4,\n circularGapWidth: 4,\n linearTrackThickness: 2,\n linearProgressThickness: 2,\n circularTrackThickness: 2,\n circularProgressThickness: 2,\n tooltipFill: '#000000E5',\n tooltipLightLabel: '#FFFFFF',\n success: '#198754',\n danger: '#DC3545',\n warning: '#FFC107',\n info: '#0DCAF0',\n tooltipLabelFont: {\n color: '#F9FAFB',\n fontFamily: 'Segoe UI'\n },\n linearLabelFont: {\n size: '10',\n fontWeight: '400',\n color: '#FFFFFF',\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n },\n circularLabelFont: {\n size: '12',\n fontWeight: '400',\n color: '#0D6EFD',\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n }\n };\n break;\n case 'Bootstrap5Dark':\n style = {\n linearTrackColor: '#495057',\n linearProgressColor: '#0D6EFD',\n circularTrackColor: '#495057',\n circularProgressColor: '#0D6EFD',\n backgroundColor: 'transparent',\n progressOpacity: 1,\n trackOpacity: 1,\n bufferOpacity: 0.4,\n linearGapWidth: 4,\n circularGapWidth: 4,\n linearTrackThickness: 2,\n linearProgressThickness: 2,\n circularTrackThickness: 2,\n circularProgressThickness: 2,\n tooltipFill: '#FFFFFFE5',\n tooltipLightLabel: '#212529',\n success: '#198754',\n danger: '#DC3545',\n warning: '#FFC107',\n info: '#0DCAF0',\n tooltipLabelFont: {\n color: '#212529',\n fontFamily: 'Segoe UI'\n },\n linearLabelFont: {\n size: '10',\n fontWeight: '400',\n color: '#FFFFFF',\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n },\n circularLabelFont: {\n size: '12',\n fontWeight: '400',\n color: '#0D6EFD',\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n }\n };\n break;\n case 'Fluent':\n style = {\n linearTrackColor: '#F3F2F1',\n linearProgressColor: '#0D6EFD',\n circularTrackColor: '#F3F2F1',\n circularProgressColor: '#0D6EFD',\n backgroundColor: 'transparent',\n progressOpacity: 1,\n trackOpacity: 1,\n bufferOpacity: 0.45,\n linearGapWidth: 4,\n circularGapWidth: 4,\n linearTrackThickness: 16,\n linearProgressThickness: 16,\n circularTrackThickness: 4,\n circularProgressThickness: 4,\n tooltipFill: '#ffffff',\n tooltipLightLabel: '#000000',\n success: '#0B6A0B',\n danger: '#D13438',\n warning: '#CA5010',\n info: '#038387',\n tooltipLabelFont: {\n color: '#323130',\n fontFamily: 'Segoe UI'\n },\n linearLabelFont: {\n size: '10',\n fontWeight: '400',\n color: '#0D6EFD',\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n },\n circularLabelFont: {\n size: '12',\n fontWeight: '500',\n color: '#0D6EFD',\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n }\n };\n break;\n case 'FluentDark':\n style = {\n linearTrackColor: '#3B4248',\n linearProgressColor: '#0D6EFD',\n circularTrackColor: '#3B4248',\n circularProgressColor: '#0D6EFD',\n backgroundColor: 'transparent',\n progressOpacity: 1,\n trackOpacity: 1,\n bufferOpacity: 0.35,\n linearGapWidth: 4,\n circularGapWidth: 4,\n linearTrackThickness: 16,\n linearProgressThickness: 16,\n circularTrackThickness: 4,\n circularProgressThickness: 4,\n tooltipFill: '#ffffff',\n tooltipLightLabel: '#000000',\n success: '#0B6A0B',\n danger: '#D13438',\n warning: '#CA5010',\n info: '#038387',\n tooltipLabelFont: {\n color: '#F3F2F1',\n fontFamily: 'Segoe UI'\n },\n linearLabelFont: {\n size: '10',\n fontWeight: '400',\n color: '#0D6EFD',\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n },\n circularLabelFont: {\n size: '12',\n fontWeight: '500',\n color: '#0D6EFD',\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n }\n };\n break;\n case 'Fluent2':\n style = {\n linearTrackColor: '#E6E6E6',\n linearProgressColor: '#0F6CBD',\n circularTrackColor: '#E6E6E6',\n circularProgressColor: '#0F6CBD',\n backgroundColor: 'transparent',\n progressOpacity: 1,\n trackOpacity: 1,\n bufferOpacity: 0.35,\n linearGapWidth: 4,\n circularGapWidth: 4,\n linearTrackThickness: Browser.isDevice ? 4 : 2,\n linearProgressThickness: Browser.isDevice ? 4 : 2,\n circularTrackThickness: Browser.isDevice ? 2 : 2,\n circularProgressThickness: Browser.isDevice ? 2 : 2,\n tooltipFill: '#FFFFFF',\n tooltipLightLabel: '#242424',\n success: '#107C10',\n danger: '#D13438',\n warning: '#BC4B09',\n info: '#008AA9',\n tooltipLabelFont: {\n color: '#242424',\n fontFamily: 'Segoe UI'\n },\n linearLabelFont: {\n size: '12',\n fontWeight: '400',\n color: '#FFFFFF',\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n },\n circularLabelFont: {\n size: '12',\n fontWeight: '500',\n color: '#242424',\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n }\n };\n break;\n case 'Fluent2Dark':\n style = {\n linearTrackColor: '#333333',\n linearProgressColor: '#115EA3',\n circularTrackColor: '#333333',\n circularProgressColor: '#115EA3',\n backgroundColor: 'transparent',\n progressOpacity: 1,\n trackOpacity: 1,\n bufferOpacity: 0.35,\n linearGapWidth: 4,\n circularGapWidth: 4,\n linearTrackThickness: Browser.isDevice ? 4 : 2,\n linearProgressThickness: Browser.isDevice ? 4 : 2,\n circularTrackThickness: Browser.isDevice ? 2 : 2,\n circularProgressThickness: Browser.isDevice ? 2 : 2,\n tooltipFill: '#292929',\n tooltipLightLabel: '#FFFFFF',\n success: '#107C10',\n danger: '#DC626D',\n warning: '#FAA06B',\n info: '#0099BC',\n tooltipLabelFont: {\n color: '#FFFFFF',\n fontFamily: 'Segoe UI'\n },\n linearLabelFont: {\n size: '12',\n fontWeight: '400',\n color: '#FFFFFF',\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n },\n circularLabelFont: {\n size: '12',\n fontWeight: '500',\n color: '#FFFFFF',\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n }\n };\n break;\n case 'Fluent2HighContrast':\n style = {\n linearTrackColor: '#000000',\n linearProgressColor: '#1AEBFF',\n circularTrackColor: '#000000',\n circularProgressColor: '#1AEBFF',\n backgroundColor: 'transparent',\n progressOpacity: 1,\n trackOpacity: 1,\n bufferOpacity: 0.35,\n linearGapWidth: 4,\n circularGapWidth: 4,\n linearTrackThickness: Browser.isDevice ? 4 : 2,\n linearProgressThickness: Browser.isDevice ? 4 : 2,\n circularTrackThickness: Browser.isDevice ? 2 : 2,\n circularProgressThickness: Browser.isDevice ? 2 : 2,\n tooltipFill: '#000000',\n tooltipLightLabel: '#FFFFFF',\n success: '#107C10',\n danger: '#C50F1F',\n warning: '#F7630C',\n info: '#0099BC',\n tooltipLabelFont: {\n color: '#FFFFFF',\n fontFamily: 'Segoe UI'\n },\n linearLabelFont: {\n size: '12',\n fontWeight: '400',\n color: '#FFFFFF',\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n },\n circularLabelFont: {\n size: '12',\n fontWeight: '400',\n color: '#FFFFFF',\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n }\n };\n break;\n case 'Material3':\n style = {\n linearTrackColor: '#E7E0EC',\n linearProgressColor: '#6750A4',\n circularTrackColor: '#E7E0EC',\n circularProgressColor: '#6750A4',\n backgroundColor: 'transparent',\n progressOpacity: 1,\n trackOpacity: 1,\n bufferOpacity: 0.24,\n linearGapWidth: 4,\n circularGapWidth: 4,\n linearTrackThickness: 4,\n linearProgressThickness: 4,\n circularTrackThickness: 4,\n circularProgressThickness: 4,\n tooltipFill: '#313033',\n tooltipLightLabel: '#F4EFF4',\n success: '#0B6A0B',\n danger: '#D13438',\n warning: '#CA5010',\n info: '#038387',\n tooltipLabelFont: {\n size: '12px',\n fontWeight: '400',\n color: '#F4EFF4',\n fontStyle: 'Normal',\n fontFamily: 'Roboto'\n },\n linearLabelFont: {\n size: '10',\n fontWeight: '400',\n color: '#FFFFFF',\n fontStyle: 'Normal',\n fontFamily: 'Roboto'\n },\n circularLabelFont: {\n size: '12',\n fontWeight: '500',\n color: '#6750A4',\n fontStyle: 'Normal',\n fontFamily: 'Roboto'\n }\n };\n break;\n case 'Material3Dark':\n style = {\n linearTrackColor: '#49454F',\n linearProgressColor: '#D0BCFF',\n circularTrackColor: '#49454F',\n circularProgressColor: '#D0BCFF',\n backgroundColor: 'transparent',\n progressOpacity: 1,\n trackOpacity: 1,\n bufferOpacity: 0.24,\n linearGapWidth: 4,\n circularGapWidth: 4,\n linearTrackThickness: 4,\n linearProgressThickness: 4,\n circularTrackThickness: 4,\n circularProgressThickness: 4,\n tooltipFill: '#E6E1E5',\n tooltipLightLabel: '#313033',\n success: '#0B6A0B',\n danger: '#D13438',\n warning: '#CA5010',\n info: '#038387',\n tooltipLabelFont: {\n color: '#313033',\n fontFamily: 'roboto'\n },\n linearLabelFont: {\n size: '10',\n fontWeight: '400',\n color: '#371E73',\n fontStyle: 'Normal',\n fontFamily: 'Roboto'\n },\n circularLabelFont: {\n size: '12',\n fontWeight: '500',\n color: '#D0BCFF',\n fontStyle: 'Normal',\n fontFamily: 'Roboto'\n }\n };\n break;\n default:\n style = {\n linearTrackColor: '#EAEAEA',\n linearProgressColor: '#0078D6',\n circularTrackColor: '#E6E6E6',\n circularProgressColor: '#0078D6',\n backgroundColor: 'transparent',\n progressOpacity: 1,\n trackOpacity: 1,\n bufferOpacity: 0.3,\n linearGapWidth: 2,\n circularGapWidth: 4,\n linearTrackThickness: 2,\n linearProgressThickness: 2,\n circularTrackThickness: 4,\n circularProgressThickness: 4,\n tooltipFill: '#ffffff',\n tooltipLightLabel: '#000000',\n success: '#166600',\n danger: '#b30900',\n warning: '#944000',\n info: '#0056b3',\n tooltipLabelFont: {\n color: '#333333',\n fontFamily: 'Segoe UI'\n },\n linearLabelFont: {\n size: '10',\n fontWeight: '400',\n color: null,\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n },\n circularLabelFont: {\n size: '12',\n fontWeight: '500',\n color: null,\n fontStyle: 'Normal',\n fontFamily: 'Segoe UI'\n }\n };\n break;\n }\n return style;\n}\n\n/**\n * corner Radius\n */\nvar lineCapRadius = 0.9;\n/**\n * complete Angle\n */\nvar completeAngle = 359.99;\n/**\n * valueChanged event\n */\nvar valueChanged = 'valueChanged';\n/**\n * progressCompleted event\n */\nvar progressCompleted = 'progressCompleted';\n/**\n * mouseClick event\n */\nvar mouseClick = 'mouseClick';\n/**\n * mouseDown event\n */\nvar mouseDown = 'mouseDown';\n/**\n * mouseUp event\n */\nvar mouseUp = 'mouseUp';\n/**\n * mouseMove event\n */\nvar mouseMove = 'mouseMove';\n/**\n * mouseLeave event\n */\nvar mouseLeave = 'mouseLeave';\n/**\n * svgLink\n */\nvar svgLink = 'http://www.w3.org/2000/svg';\n/**\n * gradient type\n */\nvar gradientType = 'linearGradient';\n/**\n * stop element\n */\nvar stopElement = 'stop';\n/**\n * Render for the tooltip.\n */\nvar tooltipRender = 'tooltipRender';\n\n/**\n * Base file for annotation\n */\nvar AnnotationBase = /** @__PURE__ @class */function () {\n /**\n * Constructor for progress annotation\n *\n * @param {ProgressBar} control It called constructor\n */\n function AnnotationBase(control) {\n this.control = control;\n }\n AnnotationBase.prototype.render = function (annotation, index) {\n this.annotation = annotation;\n var childElement = createElement('div', {\n id: this.control.element.id + 'Annotation' + index,\n styles: 'position:absolute;z-index:1',\n innerHTML: annotation.content\n });\n return childElement;\n };\n /**\n * To process the annotation\n *\n * @param {ProgressAnnotationSettings} annotation One of the parameter called annotation\n * @param {number} index Index of the annotation\n * @param {HTMLElement} parentElement Parent element of the annotation\n * @returns {void}\n */\n AnnotationBase.prototype.processAnnotation = function (annotation, index, parentElement) {\n var location = new ProgressLocation(0, 0);\n var annotationElement = this.render(annotation, index);\n if (annotationElement) {\n this.setElementStyle(location, annotationElement, parentElement);\n } else if (this.control.redraw) {\n removeElement(annotationElement.id);\n if (this.control.isReact) {\n this.control.clearTemplate();\n }\n }\n };\n AnnotationBase.prototype.setElementStyle = function (location, element, parentElement) {\n var argsData = {\n cancel: false,\n name: annotationRender,\n content: element,\n location: location\n };\n this.control.trigger(annotationRender, argsData);\n if (!argsData.cancel) {\n var result = this.Location(this.annotation.annotationRadius, this.annotation.annotationAngle);\n argsData.content.style.left = result.left + 'px';\n argsData.content.style.top = result.top + 'px';\n argsData.content.style.transform = 'translate(-50%, -50%)';\n argsData.content.setAttribute('aria-label', 'Annotation');\n parentElement.appendChild(argsData.content);\n if (this.control.isReact) {\n this.control.renderReactTemplates();\n }\n }\n };\n AnnotationBase.prototype.Location = function (radius, angle) {\n var top;\n var left;\n var radius1 = parseFloat(radius);\n if (radius1 === 0 && angle === 0) {\n var rect = this.control.progressRect;\n left = rect.x + rect.width / 2;\n top = rect.y + rect.height / 2;\n } else {\n var degToRadFactor = Math.PI / 180;\n angle = angle - 90;\n angle = angle * degToRadFactor;\n var x = Math.round(this.control.progressSize.width / 2.25);\n var y = Math.round(this.control.progressSize.height / 2.25);\n left = radius1 * Math.cos(angle) + x;\n top = radius1 * Math.sin(angle) + y;\n }\n return {\n top: top,\n left: left\n };\n };\n return AnnotationBase;\n}();\n\n/**\n * Animation for progress bar\n */\nvar ProgressAnimation = /** @__PURE__ @class */function () {\n function ProgressAnimation() {}\n /**\n * Performs linear animation on the specified element.\n *\n * @param {Element} element - The HTML element to animate.\n * @param {ProgressBar} progress - The progress bar control.\n * @param {number} delay - The delay before starting the animation, in milliseconds.\n * @param {number} previousWidth - The previous width of the progress.\n * @param {Element} active - The active element to control the animation.\n * @returns {void}\n */\n ProgressAnimation.prototype.doLinearAnimation = function (element, progress, delay, previousWidth, active) {\n var _this = this;\n var animation = new Animation$1({});\n var linearPath = element;\n var duration = progress.isActive ? 3000 : progress.animation.duration;\n var width = linearPath.getAttribute('width');\n var x = linearPath.getAttribute('x');\n var opacityValue = 0;\n var value = 0;\n var start = !progress.enableRtl || progress.cornerRadius === 'Round4px' ? previousWidth : parseInt(x, 10);\n var end = !progress.enableRtl || progress.cornerRadius === 'Round4px' ? parseInt(width, 10) - start : parseInt(width, 10) - previousWidth;\n var rtlX = parseInt(x, 10) - end;\n linearPath.style.visibility = 'hidden';\n animation.animate(linearPath, {\n duration: progress.animation.duration === 0 && animationMode === 'Enable' ? 2000 : duration,\n delay: delay,\n progress: function (args) {\n progress.cancelResize = true;\n if (progress.enableRtl && !(progress.cornerRadius === 'Round4px')) {\n if (args.timeStamp >= args.delay) {\n linearPath.style.visibility = 'visible';\n if (progress.isActive) {\n value = _this.activeAnimate(args.timeStamp / args.duration, parseInt(x, 10), parseInt(width, 10), true);\n opacityValue = effect(args.timeStamp, 0.5, 0.5, args.duration, true);\n active.setAttribute('opacity', opacityValue.toString());\n linearPath.setAttribute('x', value.toString());\n } else {\n value = effect(args.timeStamp, start, end, args.duration, true);\n linearPath.setAttribute('x', value.toString());\n }\n }\n } else {\n if (args.timeStamp >= args.delay) {\n linearPath.style.visibility = 'visible';\n if (progress.isActive) {\n value = _this.activeAnimate(args.timeStamp / args.duration, 0, parseInt(width, 10), false);\n opacityValue = effect(args.timeStamp, 0.5, 0.5, args.duration, true);\n active.setAttribute('opacity', opacityValue.toString());\n linearPath.setAttribute('width', value.toString());\n } else {\n value = effect(args.timeStamp, start, end, args.duration, false);\n linearPath.setAttribute('width', value.toString());\n }\n }\n }\n },\n end: function () {\n progress.cancelResize = false;\n linearPath.style.visibility = '';\n if (progress.enableRtl && !(progress.cornerRadius === 'Round4px')) {\n if (progress.isActive) {\n linearPath.setAttribute('x', x.toString());\n _this.doLinearAnimation(element, progress, delay, previousWidth, active);\n } else {\n linearPath.setAttribute('x', rtlX.toString());\n }\n } else {\n linearPath.setAttribute('width', width);\n if (progress.isActive) {\n _this.doLinearAnimation(element, progress, delay, previousWidth, active);\n }\n }\n progress.trigger('animationComplete', {\n value: progress.value,\n trackColor: progress.trackColor,\n progressColor: progress.progressColor\n });\n }\n });\n };\n /**\n * Initiates linear animation for an indeterminate progress bar.\n *\n * @param {Element} element - The HTML element representing the progress bar.\n * @param {number} progressWidth - The width of the progress bar.\n * @param {number} thickness - The thickness of the progress bar.\n * @param {ProgressBar} progress - The progress bar control.\n * @param {Element} clipPath - The SVG clip path element to control the animation.\n * @returns {void}\n */\n ProgressAnimation.prototype.doLinearIndeterminate = function (element, progressWidth, thickness, progress, clipPath) {\n var _this = this;\n var animation = new Animation$1({});\n var linearPath = element;\n var x = linearPath.getAttribute('x');\n var width = linearPath.getAttribute('width');\n var value = 0;\n var start = width ? -parseInt(width, 10) : -progressWidth;\n var end = progress.progressRect.x + progress.progressRect.width + (width ? parseInt(width, 10) : progressWidth);\n var duration = !progress.enableProgressSegments ? progress.animation.duration : progress.animation.duration + 1000;\n animation.animate(clipPath, {\n duration: progress.animation.duration === 0 && animationMode === 'Enable' ? 2000 : duration,\n delay: 0,\n progress: function (args) {\n if (progress.enableRtl && !(progress.cornerRadius === 'Round4px')) {\n value = effect(args.timeStamp, parseInt(x, 10) || progress.progressRect.x + progressWidth, end, args.duration, true);\n if (!progress.enableProgressSegments) {\n linearPath.setAttribute('x', value.toString());\n } else {\n linearPath.setAttribute('d', progress.getPathLine(value, progressWidth, thickness));\n }\n } else {\n value = effect(args.timeStamp, start, end, args.duration, false);\n if (!progress.enableProgressSegments) {\n linearPath.setAttribute('x', value.toString());\n } else {\n linearPath.setAttribute('d', progress.getPathLine(value, progressWidth, thickness));\n }\n }\n },\n end: function () {\n if (progress.enableRtl && !progress.enableProgressSegments && !(progress.cornerRadius === 'Round4px')) {\n linearPath.setAttribute('x', x.toString());\n } else if (!progress.enableProgressSegments) {\n linearPath.setAttribute('x', start.toString());\n }\n if (!progress.destroyIndeterminate) {\n _this.doLinearIndeterminate(element, progressWidth, thickness, progress, clipPath);\n }\n }\n });\n };\n /**\n * Performs striped animation on the specified element.\n *\n * @param {Element} element - The HTML element to animate.\n * @param {ProgressBar} progress - The progress bar object.\n * @param {number} value - The value indicating the progress of the animation.\n * @returns {void}\n */\n ProgressAnimation.prototype.doStripedAnimation = function (element, progress, value) {\n var _this = this;\n var animation = new Animation$1({});\n var point = 1000 / progress.animation.duration;\n animation.animate(element, {\n duration: progress.animation.duration === 0 && animationMode === 'Enable' ? 2000 : progress.animation.duration,\n delay: progress.animation.delay,\n progress: function () {\n value += progress.enableRtl ? -point : point;\n element.setAttribute('gradientTransform', 'translate(' + value + ') rotate(-45)');\n },\n end: function () {\n if (!progress.destroyIndeterminate) {\n _this.doStripedAnimation(element, progress, value);\n }\n }\n });\n };\n /**\n * Initiates circular animation on the specified element.\n *\n * @param {number} x - The x-coordinate of the center of the circle.\n * @param {number} y - The y-coordinate of the center of the circle.\n * @param {number} radius - The radius of the circle.\n * @param {number} progressEnd - The end value of the progress.\n * @param {number} totalEnd - The total end value of the progress.\n * @param {Element} element - The HTML element representing the circular progress.\n * @param {ProgressBar} progress - The progress bar control.\n * @param {number} thickness - The thickness of the circular progress.\n * @param {number} delay - The delay before starting the animation, in milliseconds.\n * @param {number} startValue - The starting value of the progress.\n * @param {number} previousTotal - The previous total value of the progress.\n * @param {Element} active - The active element to control the animation.\n * @returns {void}\n */\n ProgressAnimation.prototype.doCircularAnimation = function (x, y, radius, progressEnd, totalEnd, element, progress, thickness, delay, startValue, previousTotal, active) {\n var _this = this;\n var animation = new Animation$1({});\n var circularPath = element;\n var start = progress.startAngle;\n var pathRadius = radius + thickness / 2;\n var end = 0;\n var opacityValue = 0;\n var duration = progress.isActive ? 3000 : progress.animation.duration;\n start += progress.cornerRadius === 'Round' && totalEnd !== completeAngle && totalEnd !== 0 ? progress.enableRtl ? lineCapRadius / 2 * thickness : -(lineCapRadius / 2) * thickness : 0;\n totalEnd += progress.cornerRadius === 'Round' && totalEnd !== completeAngle && totalEnd !== 0 ? lineCapRadius / 2 * thickness : 0;\n progressEnd += progress.cornerRadius === 'Round' && totalEnd !== completeAngle && totalEnd !== 0 ? progress.enableRtl ? -(lineCapRadius / 2) * thickness : lineCapRadius / 2 * thickness : 0;\n if (progress.cornerRadius === 'Round' && totalEnd !== completeAngle && totalEnd !== 0 && progress.startAngle === progress.endAngle) {\n var startPosition = degreeToLocation(x, y, pathRadius, start).x;\n var endPosition = degreeToLocation(x, y, pathRadius, progressEnd).x;\n while (progress.enableRtl !== progress.startAngle >= 180 ? endPosition <= startPosition : endPosition >= startPosition) {\n progressEnd += progress.enableRtl ? 0.1 : -0.1;\n endPosition = degreeToLocation(x, y, pathRadius, progressEnd).x;\n }\n }\n var startPos = !isNullOrUndefined(startValue) ? startValue : start;\n var endPos = !isNullOrUndefined(startValue) ? totalEnd - previousTotal : totalEnd;\n circularPath.setAttribute('visibility', 'Hidden');\n animation.animate(circularPath, {\n duration: progress.animation.duration === 0 && animationMode === 'Enable' ? 2000 : duration,\n delay: delay,\n progress: function (args) {\n progress.cancelResize = true;\n if (args.timeStamp >= args.delay) {\n circularPath.setAttribute('visibility', 'visible');\n if (progress.isActive) {\n end = _this.activeAnimate(args.timeStamp / args.duration, startPos, endPos, progress.enableRtl);\n opacityValue = effect(args.timeStamp, 0.5, 0.5, args.duration, true);\n active.setAttribute('opacity', opacityValue.toString());\n circularPath.setAttribute('d', getPathArc(x, y, pathRadius, start, end % 360, progress.enableRtl, true));\n } else {\n end = effect(args.timeStamp, startPos, endPos, args.duration, progress.enableRtl);\n circularPath.setAttribute('d', getPathArc(x, y, pathRadius, start, end % 360, progress.enableRtl, true));\n }\n }\n },\n end: function () {\n progress.cancelResize = false;\n circularPath.setAttribute('visibility', '');\n circularPath.setAttribute('d', getPathArc(x, y, pathRadius, start, progressEnd, progress.enableRtl, true));\n if (progress.isActive) {\n _this.doCircularAnimation(x, y, radius, progressEnd, totalEnd, element, progress, thickness, delay, startValue, previousTotal, active);\n }\n progress.trigger('animationComplete', {\n value: progress.value,\n trackColor: progress.trackColor,\n progressColor: progress.progressColor\n });\n }\n });\n };\n /**\n * Initiates circular animation for an indeterminate progress bar.\n *\n * @param {Element} circularProgress - The HTML element representing the circular progress bar.\n * @param {ProgressBar} progress - The progress bar object.\n * @param {number} start - The starting value of the progress.\n * @param {number} end - The ending value of the progress.\n * @param {number} x - The x-coordinate of the center of the circle.\n * @param {number} y - The y-coordinate of the center of the circle.\n * @param {number} radius - The radius of the circle.\n * @param {number} thickness - The thickness of the circular progress bar.\n * @param {Element} clipPath - The SVG clip path element to control the animation.\n * @returns {void}\n */\n ProgressAnimation.prototype.doCircularIndeterminate = function (circularProgress, progress, start, end, x, y, radius, thickness, clipPath) {\n var _this = this;\n var animation = new Animation$1({});\n var pathRadius = radius + (!progress.enableProgressSegments ? thickness / 2 : 0);\n var duration = progress.animation.duration === 0 && animationMode === 'Enable' ? 2000 : progress.animation.duration;\n var value = !progress.enableProgressSegments ? 6000 / duration : 4000 / duration;\n animation.animate(clipPath, {\n progress: function () {\n circularProgress.style.visibility = 'visible';\n start += progress.enableRtl ? -value : value;\n end += progress.enableRtl ? -value : value;\n circularProgress.setAttribute('d', getPathArc(x, y, pathRadius, start % 360, end % 360, progress.enableRtl, !progress.enableProgressSegments));\n },\n end: function () {\n if (!progress.destroyIndeterminate) {\n _this.doCircularIndeterminate(circularProgress, progress, start, end, x, y, radius, thickness, clipPath);\n }\n }\n });\n };\n /**\n * Initiates label animation for a progress bar.\n *\n * @param {Element} labelPath - The SVG path element representing the label.\n * @param {number} start - The starting value of the progress.\n * @param {number} end - The ending value of the progress.\n * @param {ProgressBar} progress - The progress bar control.\n * @param {number} delay - The delay before starting the animation, in milliseconds.\n * @param {number} textSize - The size of the text.\n * @returns {void}\n */\n ProgressAnimation.prototype.doLabelAnimation = function (labelPath, start, end, progress, delay, textSize) {\n var animation = new Animation$1({});\n var label = new Animation$1({});\n var startPos;\n var endPos;\n var text = labelPath.innerHTML;\n var value = 0;\n var xPos = 0;\n var valueChanged = 0;\n var percentage = 100;\n var labelText = progress.labelStyle.text;\n var labelPos = progress.labelStyle.textAlignment;\n var posX = parseInt(labelPath.getAttribute('x'), 10);\n labelPath.setAttribute('visibility', 'Hidden');\n if (progress.type === 'Linear') {\n startPos = progress.enableRtl ? progress.progressRect.x + progress.progressRect.width + textSize / 2 : start - textSize / 2;\n startPos = startPos <= 0 ? 0 : startPos;\n endPos = progress.enableRtl ? startPos - posX : posX - startPos;\n }\n animation.animate(labelPath, {\n duration: progress.animation.duration === 0 && animationMode === 'Enable' ? 2000 : progress.animation.duration,\n delay: delay,\n progress: function (args) {\n progress.cancelResize = true;\n args.name = 'SlideRight';\n if (progress.type === 'Linear') {\n if (args.timeStamp >= args.delay) {\n if (labelText === '') {\n labelPath.setAttribute('visibility', 'visible');\n value = effect(args.timeStamp, start, end, args.duration, false);\n valueChanged = parseInt((Math.round(value) / progress.progressRect.width * percentage).toString(), 10);\n labelPath.innerHTML = valueChanged.toString() + '%';\n if (labelPos === 'Far' || labelPos === 'Center') {\n xPos = effect(args.timeStamp, startPos, endPos, args.duration, progress.enableRtl);\n labelPath.setAttribute('x', xPos.toString());\n }\n }\n }\n } else if (progress.type === 'Circular') {\n if (labelText === '') {\n labelPath.setAttribute('visibility', 'visible');\n value = effect(args.timeStamp, start, end - start, args.duration, false);\n valueChanged = parseInt((Math.round(value) / progress.totalAngle * percentage).toString(), 10);\n labelPath.innerHTML = valueChanged.toString() + '%';\n }\n }\n },\n end: function () {\n progress.cancelResize = false;\n if (labelText === '') {\n labelPath.innerHTML = text;\n labelPath.setAttribute('x', posX.toString());\n } else {\n label.animate(labelPath, {\n progress: function (args) {\n labelPath.setAttribute('visibility', 'visible');\n value = effect(args.timeStamp, 0, 1, args.duration, false);\n labelPath.setAttribute('opacity', value.toString());\n },\n end: function () {\n labelPath.setAttribute('opacity', '1');\n }\n });\n }\n }\n });\n };\n /**\n * Initiates annotation animation for a circular progress bar.\n *\n * @param {Element} circularPath - The SVG path element representing the circular progress bar.\n * @param {ProgressBar} progress - The progress bar object.\n * @param {number} previousEnd - The previous end value of the progress.\n * @param {number} previousTotal - The previous total value of the progress.\n * @returns {void}\n */\n ProgressAnimation.prototype.doAnnotationAnimation = function (circularPath, progress, previousEnd, previousTotal) {\n var animation = new Animation$1({});\n var value = 0;\n var percentage = 100;\n var isAnnotation = progress.annotations.length > 0;\n var annotatElementChanged;\n var firstAnnotatElement;\n var start = progress.startAngle;\n var totalAngle = progress.totalAngle;\n var totalEnd;\n var annotateValueChanged;\n var annotateValue;\n if (isAnnotation && progress.progressAnnotationModule) {\n firstAnnotatElement = document.getElementById(progress.element.id + 'Annotation0').children[0];\n if (firstAnnotatElement && firstAnnotatElement.children[0]) {\n if (firstAnnotatElement.children[0].tagName === 'SPAN') {\n annotatElementChanged = firstAnnotatElement.children[0];\n }\n }\n }\n totalEnd = (progress.argsData.value - progress.minimum) / (progress.maximum - progress.minimum) * progress.totalAngle;\n progress.annotateTotal = totalEnd = progress.argsData.value < progress.minimum ? 0 : totalEnd;\n progress.annotateEnd = start + totalEnd;\n annotateValue = (progress.argsData.value - progress.minimum) / (progress.maximum - progress.minimum) * percentage;\n annotateValue = progress.argsData.value < progress.minimum ? 0 : Math.round(annotateValue);\n var startValue = !isNullOrUndefined(previousEnd) ? previousEnd : start;\n var endValue = !isNullOrUndefined(previousEnd) ? totalEnd - previousTotal : totalEnd;\n if (progress.argsData.value <= progress.minimum) {\n annotatElementChanged.innerHTML = annotateValue + '%';\n } else {\n animation.animate(circularPath, {\n duration: progress.animation.duration === 0 && animationMode === 'Enable' ? 2000 : progress.animation.duration,\n delay: progress.animation.delay,\n progress: function (args) {\n progress.cancelResize = true;\n if (isAnnotation && annotatElementChanged) {\n value = effect(args.timeStamp, startValue, endValue, args.duration, false);\n annotateValueChanged = parseInt(((Math.round(value) - start) / totalAngle * percentage).toString(), 10);\n annotatElementChanged.innerHTML = annotateValueChanged ? annotateValueChanged.toString() + '%' : '0%';\n }\n },\n end: function () {\n progress.cancelResize = false;\n annotatElementChanged.innerHTML = annotateValue + '%';\n }\n });\n }\n };\n ProgressAnimation.prototype.activeAnimate = function (t, start, end, enableRtl) {\n var time = 1 - Math.pow(1 - t, 3);\n var attrValue = start + (!enableRtl ? time * end : -(time * end));\n return attrValue;\n };\n return ProgressAnimation;\n}();\nvar __extends$2 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n/**\n * Class for progress annotation\n */\nvar ProgressAnnotation = /** @__PURE__ @class */function (_super) {\n __extends$2(ProgressAnnotation, _super);\n /**\n * Constructor for ProgressBar annotation\n *\n * @private\n * @param {ProgressBar} control Passed the control\n * @param {annotations} annotations ProgressAnnotationSettings\n */\n function ProgressAnnotation(control, annotations) {\n var _this = _super.call(this, control) || this;\n _this.animation = new ProgressAnimation();\n _this.progress = control;\n _this.annotations = annotations;\n return _this;\n }\n /**\n * Method to render the annotation for ProgressBar\n *\n * @param {Element} element Annotation element.\n * @returns {void}\n * @private\n */\n ProgressAnnotation.prototype.renderAnnotations = function (element) {\n var _this = this;\n this.annotations = this.progress.annotations;\n var parentElement = document.getElementById(this.progress.element.id + 'Annotation_collections');\n this.parentElement = parentElement ? parentElement : createElement('div', {\n id: this.progress.element.id + 'Annotation_collections',\n styles: 'position:absolute'\n });\n this.annotations.map(function (annotation, index) {\n _this.processAnnotation(annotation, index, _this.parentElement);\n });\n if (!parentElement) {\n element.appendChild(this.parentElement);\n }\n if (this.progress.animation.enable && !this.progress.isIndeterminate) {\n this.animation.doAnnotationAnimation(this.progress.clipPath, this.progress);\n }\n };\n /**\n * Get module name.\n *\n * @returns {string} - Returns the module name.\n */\n ProgressAnnotation.prototype.getModuleName = function () {\n return 'ProgressAnnotation';\n };\n /**\n * To destroy the annotation.\n *\n * @returns {void}\n * @private\n */\n ProgressAnnotation.prototype.destroy = function () {\n // Destroy method performed here\n };\n return ProgressAnnotation;\n}(AnnotationBase);\n\n/**\n * class for tooltip.\n */\nvar ProgressTooltip = /** @__PURE__ @class */function () {\n /**\n * Constructor for progress tooltip.\n *\n * @param {ProgressBar} control\n */\n function ProgressTooltip(control) {\n // Defines text collection passed to svg tooltip.\n this.text = [];\n this.control = control;\n }\n /**\n * Method to render the tooltip for progress bar.\n */\n ProgressTooltip.prototype.tooltip = function (e) {\n var svgElement = document.getElementById(this.control.element.id + '_tooltip');\n var isTooltip = svgElement && parseInt(svgElement.getAttribute('opacity'), 10) > 0;\n this.renderTooltip(e, this.control, !isTooltip);\n if (this.control.tooltip.enable && this.control.type === 'Circular' && this.control.animation.enable && !this.control.tooltip.showTooltipOnHover) {\n svgElement.style.visibility = 'hidden';\n var delay = this.control.secondaryProgress ? this.control.circular.delay + this.control.animation.duration : this.control.animation.duration;\n this.tooltipDelay(this.control, svgElement, delay);\n }\n if (this.control.animation.enable && !this.control.tooltip.showTooltipOnHover && !(this.control.type === 'Circular')) {\n var delay = this.control.secondaryProgress ? this.control.linear.delay : this.control.animation.delay;\n if (this.control.secondaryProgress) {\n svgElement.style.visibility = 'hidden';\n }\n this.toolTipAnimation(svgElement, this.control, delay);\n }\n };\n /**\n * Function to delay tooltip at initial stage of circular progress.\n */\n ProgressTooltip.prototype.tooltipDelay = function (progress, element, delay) {\n var animation = new Animation$1({});\n animation.animate(element, {\n duration: progress.animation.duration,\n delay: delay,\n progress: function (args) {\n args.element.style.visibility = 'visible';\n }\n });\n };\n /**\n * Function to animate tooltip.\n */\n ProgressTooltip.prototype.toolTipAnimation = function (element, progress, delay) {\n var _this = this;\n var animation = new Animation$1({});\n var endValue = parseInt(element.style.left, 10);\n var tooltipSVG = document.getElementById(this.control.element.id + '_tooltip_svg');\n var width = parseInt(tooltipSVG.getAttribute('width'), 10);\n animation.animate(element, {\n duration: progress.animation.duration,\n delay: delay,\n progress: function (args) {\n progress.cancelResize = true;\n args.name = 'SlideRight';\n if (progress.type === 'Linear') {\n if (args.timeStamp >= args.delay) {\n args.element.style.visibility = 'visible';\n var value = effect(args.timeStamp, 0 - (width / 2 - _this.control.progressRect.x - 5), endValue + (width / 2 - _this.control.progressRect.x - 5), args.duration, progress.enableRtl);\n args.element.style.left = '';\n args.element.style.left = value + 'px'.toString();\n }\n }\n },\n end: function (args) {\n progress.cancelResize = false;\n args.element.style.left = '';\n args.element.style.left = endValue + 'px'.toString();\n }\n });\n };\n ProgressTooltip.prototype.renderTooltip = function (e, chart, isFirst) {\n this.textFormat = this.format(this.control.tooltip.showTooltipOnHover ? e.target.id.indexOf('Linearbuffer') >= 0 || e.target.id.indexOf('Circularbuffer') >= 0 ? this.control.secondaryProgress : this.control.value : this.control.value);\n this.triggerTooltipRender(e, isFirst, this.textFormat);\n };\n /**\n * Function to get format of tooltip text.\n */\n ProgressTooltip.prototype.format = function (formatValue) {\n var currentFormat = formatValue.toString();\n var value;\n if (this.control.tooltip.format) {\n currentFormat = this.control.tooltip.format;\n value = new RegExp('${value' + '}', 'gm');\n currentFormat = currentFormat.replace(value.source, formatValue.toString());\n }\n return currentFormat;\n };\n /**\n * Function to remove tooltip.\n */\n ProgressTooltip.prototype.removeTooltip = function (duration) {\n var _this = this;\n var tooltipElement = document.getElementById(this.control.element.id + '_tooltip');\n if (tooltipElement) {\n this.fadeInInterval = +setTimeout(function () {\n if (_this.svgTooltip) {\n _this.svgTooltip.fadeOut();\n }\n }, duration);\n }\n };\n /**\n * Function to get arguments of tooltip.\n */\n ProgressTooltip.prototype.triggerTooltipRender = function (e, isFirst, textCollection) {\n var padding = 5;\n var argsData = {\n cancel: false,\n name: tooltipRender,\n text: textCollection + '%'\n };\n this.control.trigger(tooltipRender, argsData);\n textCollection = argsData.text;\n if (!argsData.cancel) {\n this.text = [].concat(argsData.text);\n if (this.control.type === 'Linear') {\n var linearEndPointX = this.control.linear.linearProgressWidth - padding / 2 + this.control.progressRect.x;\n var linearEndPointY = this.control.cornerRadius === 'Round4px' ? this.control.progressRect.y + padding : this.control.progressRect.y + this.control.progressRect.height / 2 - (this.control.progressThickness ? this.control.progressThickness : this.control.themeStyle.linearProgressThickness) / 2 + padding;\n this.createTooltip(this.control, isFirst, this.control.tooltip.enable && !this.control.tooltip.showTooltipOnHover || !(e.target.id.indexOf('Linearbuffer') >= 0) ? new ProgressLocation(this.control.cornerRadius === 'Round4px' ? linearEndPointX - padding : linearEndPointX, linearEndPointY) : new ProgressLocation(this.control.linear.bufferWidth - padding / 2 + this.control.progressRect.x, linearEndPointY), this.control.initialClipRect);\n } else {\n var circularEndPointX = this.control.circular.endPosition.x - padding / 2;\n var circularEndPointY = this.control.circular.endPosition.y + this.control.progressRect.y - padding / 2;\n this.createTooltip(this.control, isFirst, this.control.tooltip.enable && !this.control.tooltip.showTooltipOnHover || !(e.target.id.indexOf('Circularbuffer') >= 0) ? new ProgressLocation(circularEndPointX, circularEndPointY) : new ProgressLocation(this.control.circular.bufferEndPosition.x - padding / 2, this.control.circular.bufferEndPosition.y + this.control.progressRect.y - padding / 2), this.control.initialClipRect);\n }\n }\n this.isRendered = true;\n };\n /**\n * Function to pass arguments into svg tooltip.\n *\n * @param {ProgressBar} chart - The progress bar chart for which the tooltip is being created.\n * @param {boolean} isFirst - A flag indicating whether this is the first tooltip.\n * @param {ProgressLocation} location - The location where the tooltip should be displayed.\n * @param {ProgressLocation} bounds - The bounds within which the tooltip should be confined.\n * @returns {void}\n * @private\n */\n ProgressTooltip.prototype.createTooltip = function (chart, isFirst, location, bounds) {\n if (isFirst) {\n this.svgTooltip = new Tooltip({\n opacity: this.control.tooltip.textStyle.opacity ? this.control.tooltip.textStyle.opacity : this.control.theme === 'Material3' || this.control.theme === 'Material3Dark' || this.control.theme.indexOf('Bootstrap5') > -1 ? 1 : 0.75,\n header: '',\n content: this.text,\n fill: this.control.tooltip.fill,\n border: this.control.tooltip.border,\n enableAnimation: true,\n location: location,\n theme: this.control.theme,\n areaBounds: bounds,\n template: null,\n // To set tooltip location.\n offset: 7.5,\n // To set left and right margin of tooltip.\n marginX: 8,\n // To set top margin of tooltip.\n marginY: 4.5,\n textStyle: this.control.tooltip.textStyle,\n arrowPadding: 7,\n availableSize: this.control.progressSize,\n duration: 300,\n blazorTemplate: {\n name: 'Template',\n parent: this.control.tooltip\n },\n controlInstance: this.control,\n enableRTL: chart.enableRtl,\n controlName: 'Progressbar'\n }, '#' + this.control.element.id + '_tooltip');\n } else {\n if (this.svgTooltip) {\n this.svgTooltip.location = location;\n this.svgTooltip.content = this.text;\n this.svgTooltip.header = '';\n this.svgTooltip.offset = 7.5;\n this.svgTooltip.textStyle = this.control.tooltip.textStyle;\n this.svgTooltip.areaBounds = bounds;\n this.svgTooltip.arrowPadding = 7;\n this.svgTooltip.dataBind();\n }\n }\n };\n /**\n * Get module name.\n */\n ProgressTooltip.prototype.getModuleName = function () {\n return 'ProgressTooltip';\n };\n /**\n * To destroy the annotation.\n *\n * @returns {void}\n * @private\n */\n ProgressTooltip.prototype.destroy = function () {\n // Destroy method performed here\n };\n return ProgressTooltip;\n}();\n\n/**\n * Progressbar Segment\n */\nvar Segment = /** @__PURE__ @class */function () {\n function Segment() {}\n /**\n * Creates a linear segment element for the progress bar.\n *\n * @param {ProgressBar} progress - The progress bar control.\n * @param {string} id - The id of the segment element.\n * @param {number} width - The width of the segment.\n * @param {number} opacity - The opacity of the segment.\n * @param {number} thickness - The thickness of the segment.\n * @param {number} progressWidth - The width of the progress.\n * @returns {Element} - The created linear segment element.\n */\n Segment.prototype.createLinearSegment = function (progress, id, width, opacity, thickness, progressWidth) {\n var locX = progress.enableRtl ? progress.cornerRadius === 'Round' ? progress.progressRect.x + progress.progressRect.width - lineCapRadius / 2 * thickness : progress.progressRect.x + progress.progressRect.width : progress.cornerRadius === 'Round' ? progress.progressRect.x + lineCapRadius / 2 * thickness : progress.progressRect.x;\n var locY = progress.progressRect.y + progress.progressRect.height / 2;\n var gapWidth = progress.gapWidth || progress.themeStyle.linearGapWidth;\n var avlWidth = progressWidth / progress.segmentCount;\n var avlSegWidth = progressWidth - (progress.segmentCount - 1) * gapWidth;\n avlSegWidth = (avlSegWidth - (progress.cornerRadius === 'Round' ? progress.segmentCount * (lineCapRadius * thickness) : 0)) / progress.segmentCount;\n var gap = progress.cornerRadius === 'Round' ? gapWidth + lineCapRadius * thickness : gapWidth;\n var segmentGroup = progress.renderer.createGroup({\n 'id': progress.element.id + id\n });\n var count = Math.ceil(width / avlWidth);\n var segWidth;\n var color;\n var j = 0;\n var option;\n var segmentPath;\n var tolWidth = progress.cornerRadius === 'Round' ? width - lineCapRadius * thickness : width;\n var linearThickness = progress.progressThickness || progress.themeStyle.linearProgressThickness;\n for (var i = 0; i < count; i++) {\n segWidth = tolWidth < avlSegWidth ? tolWidth : avlSegWidth;\n if (j < progress.segmentColor.length) {\n color = progress.segmentColor[j];\n j++;\n } else {\n j = 0;\n color = progress.segmentColor[j];\n j++;\n }\n option = new PathOption(progress.element.id + id + i, 'none', linearThickness, color, opacity, '0', this.getLinearSegmentPath(locX, locY, segWidth, progress.enableRtl));\n segmentPath = progress.renderer.drawPath(option);\n if (progress.cornerRadius === 'Round') {\n segmentPath.setAttribute('stroke-linecap', 'round');\n }\n segmentGroup.appendChild(segmentPath);\n locX += progress.enableRtl ? -avlSegWidth - gap : avlSegWidth + gap;\n tolWidth -= avlSegWidth + gap;\n tolWidth = tolWidth < 0 ? 0 : tolWidth;\n }\n return segmentGroup;\n };\n Segment.prototype.getLinearSegmentPath = function (x, y, width, enableRtl) {\n return 'M' + ' ' + x + ' ' + y + ' ' + 'L' + (x + (enableRtl ? -width : width)) + ' ' + y;\n };\n /**\n * Creates a circular segment element for the progress bar.\n *\n * @param {ProgressBar} progress - The progress bar control.\n * @param {string} id - The id of the segment element.\n * @param {number} x - The x-coordinate of the center of the circle.\n * @param {number} y - The y-coordinate of the center of the circle.\n * @param {number} r - The radius of the circle.\n * @param {number} value - The value determining the angle of the segment.\n * @param {number} opacity - The opacity of the segment.\n * @param {number} thickness - The thickness of the segment.\n * @param {number} totalAngle - The total angle covered by the progress.\n * @param {number} progressWidth - The width of the progress.\n * @returns {Element} - The created circular segment element.\n */\n Segment.prototype.createCircularSegment = function (progress, id, x, y, r, value, opacity, thickness, totalAngle, progressWidth) {\n var start = progress.startAngle;\n var end = this.widthToAngle(progress.minimum, progress.maximum, value, progress.totalAngle);\n end -= progress.cornerRadius === 'Round' && progress.totalAngle === completeAngle ? this.widthToAngle(0, progressWidth, lineCapRadius / 2 * thickness, totalAngle) : 0;\n var size = progressWidth - (progress.totalAngle === completeAngle ? progress.segmentCount : progress.segmentCount - 1) * (progress.gapWidth || progress.themeStyle.circularGapWidth);\n size = (size - (progress.cornerRadius === 'Round' ? (progress.totalAngle === completeAngle ? progress.segmentCount : progress.segmentCount - 1) * lineCapRadius * thickness : 0)) / progress.segmentCount;\n var avlTolEnd = this.widthToAngle(0, progressWidth, progressWidth / progress.segmentCount, totalAngle);\n avlTolEnd -= progress.cornerRadius === 'Round' && progress.totalAngle === completeAngle ? this.widthToAngle(0, progressWidth, lineCapRadius / 2 * thickness, totalAngle) : 0;\n var avlEnd = this.widthToAngle(0, progressWidth, size, totalAngle);\n var gap = this.widthToAngle(0, progressWidth, progress.gapWidth || progress.themeStyle.circularGapWidth, totalAngle);\n gap += progress.cornerRadius === 'Round' ? this.widthToAngle(0, progressWidth, lineCapRadius * thickness, totalAngle) : 0;\n var segmentGroup = progress.renderer.createGroup({\n 'id': progress.element.id + id\n });\n var gapCount = Math.floor(end / avlTolEnd);\n var count = Math.ceil((end - gap * gapCount) / avlEnd);\n var segmentPath;\n var circularSegment;\n var segmentEnd;\n var avlSegEnd = (start + (progress.enableRtl ? -avlEnd : avlEnd)) % 360;\n var color;\n var j = 0;\n var option;\n var circularThickness = progress.progressThickness || progress.themeStyle.circularProgressThickness;\n for (var i = 0; i < count; i++) {\n segmentEnd = progress.enableRtl ? progress.startAngle - end > avlSegEnd ? progress.startAngle - end : avlSegEnd : progress.startAngle + end < avlSegEnd ? progress.startAngle + end : avlSegEnd;\n segmentPath = getPathArc(x, y, r, start, segmentEnd, progress.enableRtl);\n if (j < progress.segmentColor.length) {\n color = progress.segmentColor[j];\n j++;\n } else {\n j = 0;\n color = progress.segmentColor[j];\n j++;\n }\n option = new PathOption(progress.element.id + id + i, 'none', circularThickness, color, opacity, '0', segmentPath);\n circularSegment = progress.renderer.drawPath(option);\n if (progress.cornerRadius === 'Round') {\n circularSegment.setAttribute('stroke-linecap', 'round');\n }\n segmentGroup.appendChild(circularSegment);\n start = segmentEnd + (progress.enableRtl ? -gap : gap);\n avlSegEnd += progress.enableRtl ? -avlEnd - gap : avlEnd + gap;\n }\n return segmentGroup;\n };\n Segment.prototype.widthToAngle = function (min, max, value, totalAngle) {\n var angle = (value - min) / (max - min) * totalAngle;\n return angle;\n };\n Segment.prototype.createLinearRange = function (totalWidth, progress, progressWidth) {\n var posX = progress.progressRect.x + (progress.enableRtl ? progress.progressRect.width : 0);\n var startY = progress.progressRect.y + progress.progressRect.height / 2;\n var rangeGroup = progress.renderer.createGroup({\n 'id': progress.element.id + '_LinearRangeGroup'\n });\n var range = progress.rangeColors;\n var thickness = progress.progressThickness || progress.themeStyle.linearProgressThickness;\n var opacity = progress.themeStyle.progressOpacity;\n var rangeMin = progress.minimum;\n var rangeMax = progress.value;\n var gradX = progress.enableRtl ? 0.1 : -0.1;\n var gradient;\n var validRange;\n var rangePath;\n var option;\n var startPos;\n var endPos;\n var startX;\n var endX;\n var color;\n var endColor;\n for (var i = 0; i < range.length; i++) {\n validRange = range[i].start >= rangeMin && range[i].start <= rangeMax && range[i].end >= rangeMin && range[i].end <= rangeMax;\n startPos = totalWidth * progress.calculateProgressRange(range[i].start, rangeMin, rangeMax);\n endPos = totalWidth * progress.calculateProgressRange(range[i].end, rangeMin, rangeMax);\n startX = posX + (progress.enableRtl ? -startPos : startPos);\n endX = posX + (progress.enableRtl ? -endPos : endPos);\n startX = validRange ? progress.isGradient && i > 0 ? startX + gradX : startX : posX;\n endX = validRange ? endX : posX;\n color = progress.isGradient ? 'url(#lineRangeGrad_' + i + ')' : range[i].color;\n option = new PathOption(progress.element.id + '_LinearRange_' + i, 'none', thickness, color, opacity, '0', 'M' + ' ' + startX + ' ' + startY + ' ' + 'L' + endX + ' ' + startY);\n rangePath = progress.renderer.drawPath(option);\n if (progress.cornerRadius === 'Round' && progressWidth) {\n rangePath.setAttribute('stroke-linecap', 'round');\n }\n rangeGroup.appendChild(rangePath);\n if (progress.isGradient) {\n if (range.length - 1 === i) {\n endColor = range[i].color;\n } else {\n endColor = range[i + 1].color;\n }\n gradient = this.setLinearGradientColor(i, range[i].color, endColor, startX, endX, progress);\n rangeGroup.appendChild(gradient);\n }\n }\n return rangeGroup;\n };\n Segment.prototype.createCircularRange = function (centerX, centerY, radius, progress) {\n var rangeGroup = progress.renderer.createGroup({\n 'id': progress.element.id + '_CircularRangeGroup'\n });\n var range = progress.rangeColors;\n var thickness = progress.progressThickness || progress.themeStyle.linearProgressThickness;\n var opacity = progress.themeStyle.progressOpacity;\n var rangeMin = progress.minimum;\n var rangeMax = progress.value;\n var start = progress.startAngle;\n var tolAngle = this.widthToAngle(progress.minimum, progress.maximum, progress.value, progress.totalAngle);\n var gradient;\n var startAngle;\n var endAngle;\n var rangePath;\n var isValidRange;\n var option;\n var color;\n var endColor;\n for (var i = 0; i < range.length; i++) {\n isValidRange = range[i].start >= rangeMin && range[i].start <= rangeMax && range[i].end >= rangeMin && range[i].end <= rangeMax;\n startAngle = this.widthToAngle(rangeMin, rangeMax, range[i].start, tolAngle);\n endAngle = this.widthToAngle(rangeMin, rangeMax, range[i].end, tolAngle);\n startAngle = isValidRange ? (start + (progress.enableRtl ? -startAngle : startAngle)) % 360 : start;\n endAngle = isValidRange ? (start + (progress.enableRtl ? -endAngle : endAngle)) % 360 : start;\n color = progress.isGradient ? 'url(#circleRangeGrad_' + i + ')' : range[i].color;\n option = new PathOption(progress.element.id + '_CircularRange_' + i, 'none', thickness, color, opacity, '0', getPathArc(centerX, centerY, radius, startAngle, endAngle, progress.enableRtl));\n rangePath = progress.renderer.drawPath(option);\n if (progress.cornerRadius === 'Round' && startAngle !== endAngle) {\n rangePath.setAttribute('stroke-linecap', 'round');\n }\n rangeGroup.appendChild(rangePath);\n if (progress.isGradient) {\n if (range.length - 1 === i) {\n endColor = range[i].color;\n } else {\n endColor = range[i + 1].color;\n }\n gradient = this.setCircularGradientColor(i, range[i].color, endColor, startAngle, endAngle, radius, centerX, centerY, progress);\n rangeGroup.appendChild(gradient);\n }\n }\n return rangeGroup;\n };\n Segment.prototype.setLinearGradientColor = function (id, startColor, endColor, start, end, progress) {\n var stopColor = [];\n var option = {\n id: 'lineRangeGrad_' + id + '',\n x1: start.toString(),\n x2: end.toString()\n };\n stopColor[0] = {\n color: startColor,\n colorStop: '50%'\n };\n stopColor[1] = {\n color: endColor,\n colorStop: '100%'\n };\n var linearGradient = progress.renderer.drawGradient('linearGradient', option, stopColor);\n linearGradient.firstElementChild.setAttribute('gradientUnits', 'userSpaceOnUse');\n return linearGradient;\n };\n Segment.prototype.setCircularGradientColor = function (id, startColor, endColor, start, end, rad, x, y, progress) {\n var stopColor = [];\n var pos1 = degreeToLocation(x, y, rad, start);\n var pos2 = degreeToLocation(x, y, rad, end);\n var option = {\n id: 'circleRangeGrad_' + id + '',\n x1: pos1.x.toString(),\n x2: pos2.x.toString(),\n y1: pos1.y.toString(),\n y2: pos2.y.toString()\n };\n stopColor[0] = {\n color: startColor,\n colorStop: '50%'\n };\n stopColor[1] = {\n color: endColor,\n colorStop: '100%'\n };\n var linearGradient = progress.renderer.drawGradient('linearGradient', option, stopColor);\n linearGradient.firstElementChild.setAttribute('gradientUnits', 'userSpaceOnUse');\n return linearGradient;\n };\n return Segment;\n}();\n\n/**\n * Progress Bar of type Linear\n */\nvar Linear = /** @__PURE__ @class */function () {\n function Linear(progress) {\n this.segment = new Segment();\n this.animation = new ProgressAnimation();\n this.progress = progress;\n }\n /**\n * To render the linear track.\n *\n * @returns {void}\n */\n Linear.prototype.renderLinearTrack = function () {\n var progress = this.progress;\n var linearTrackGroup = progress.renderer.createGroup({\n 'id': progress.element.id + '_LinearTrackGroup'\n });\n var linearTrack;\n var option;\n this.isRange = this.progress.rangeColors[0].color !== '' || this.progress.rangeColors[0].start !== null || this.progress.rangeColors[0].end !== null;\n var thickness = progress.trackThickness || progress.themeStyle.linearTrackThickness;\n var stroke = progress.argsData.trackColor || progress.themeStyle.linearTrackColor;\n if (progress.cornerRadius === 'Round4px') {\n if (progress.segmentCount > 1) {\n linearTrack = this.createRoundCornerSegment('_LinearTrack_', stroke, thickness, true, 0, progress);\n } else {\n option = new PathOption(progress.element.id + '_Lineartrack', stroke, 0, 'none', progress.themeStyle.trackOpacity, '0', this.cornerRadius(progress.progressRect.x, progress.progressRect.y, progress.progressRect.width, thickness, 4, ''));\n linearTrack = progress.renderer.drawPath(option);\n }\n } else {\n option = new PathOption(progress.element.id + '_Lineartrack', 'none', thickness, stroke, progress.themeStyle.trackOpacity, '0', progress.getPathLine(progress.progressRect.x, progress.progressRect.width, thickness));\n linearTrack = progress.renderer.drawPath(option);\n progress.trackWidth = linearTrack.getTotalLength();\n if (progress.cornerRadius === 'Round' && !this.isRange) {\n linearTrack.setAttribute('stroke-linecap', 'round');\n }\n if (progress.segmentCount > 1 && !this.isRange && !progress.enableProgressSegments) {\n progress.segmentSize = progress.calculateSegmentSize(progress.trackWidth, thickness);\n linearTrack.setAttribute('stroke-dasharray', progress.segmentSize);\n }\n }\n linearTrackGroup.appendChild(linearTrack);\n progress.svgObject.appendChild(linearTrackGroup);\n };\n /**\n * Renders linear progress, optionally refreshing progress and specifying previous width.\n *\n * @param {boolean} refresh - Indicates whether to refresh the progress.\n * @param {number} previousWidth - The previous width of the progress. Defaults to 0.\n * @returns {void}\n */\n Linear.prototype.renderLinearProgress = function (refresh, previousWidth) {\n if (previousWidth === void 0) {\n previousWidth = 0;\n }\n var progress = this.progress;\n var option;\n var linearProgress;\n var clipPathLinear;\n var clipPathIndeterminate;\n var linearProgressGroup;\n var animationdelay;\n var segmentWidth;\n var strippedStroke;\n var ismaximum = progress.value >= progress.maximum;\n var previousProgressWidth = progress.progressRect.width * progress.calculateProgressRange(progress.value > progress.maximum ? progress.maximum : progress.value);\n var progressWidth = progress.calculateProgressRange(progress.argsData.value > progress.maximum ? progress.maximum : progress.argsData.value);\n this.linearProgressWidth = progress.progressRect.width * (progress.isIndeterminate && !progress.enableProgressSegments ? 1 : progressWidth);\n if (!refresh) {\n linearProgressGroup = progress.renderer.createGroup({\n 'id': progress.element.id + '_LinearProgressGroup'\n });\n } else {\n linearProgressGroup = getElement$1(progress.element.id + '_LinearProgressGroup');\n }\n var thickness = progress.progressThickness || progress.themeStyle.linearProgressThickness;\n var stroke = !progress.isStriped ? this.checkingLinearProgressColor() : 'url(#' + progress.element.id + '_LinearStriped)';\n if (progress.cornerRadius === 'Round4px') {\n option = new PathOption(progress.element.id + '_Linearprogress', stroke, 0, 'none', progress.themeStyle.progressOpacity, '0', this.cornerRadius(progress.progressRect.x, progress.progressRect.y, this.linearProgressWidth, thickness, 4, ismaximum || progress.isIndeterminate ? '' : 'start'));\n } else {\n option = new PathOption(progress.element.id + '_Linearprogress', 'none', thickness, stroke, progress.themeStyle.progressOpacity, '0', progress.getPathLine(progress.progressRect.x, this.linearProgressWidth, thickness));\n }\n progress.progressWidth = progress.renderer.drawPath(option).getTotalLength();\n progress.segmentSize = !progress.enableProgressSegments ? progress.segmentSize : progress.calculateSegmentSize(progress.progressWidth, thickness);\n if (progress.secondaryProgress !== null && !progress.isIndeterminate) {\n this.renderLinearBuffer(progress);\n }\n if (progress.argsData.value !== null) {\n if (progress.cornerRadius === 'Round4px') {\n if (progress.segmentCount > 1) {\n linearProgress = this.createRoundCornerSegment('_Linearprogress_', stroke, thickness, false, this.linearProgressWidth, progress, progress.themeStyle.progressOpacity);\n } else {\n linearProgress = progress.renderer.drawPath(option);\n }\n } else {\n if (progress.segmentColor.length !== 0 && !progress.isIndeterminate && !this.isRange) {\n segmentWidth = !progress.enableProgressSegments ? progress.trackWidth : progress.progressWidth;\n linearProgress = this.segment.createLinearSegment(progress, '_LinearProgressSegment', this.linearProgressWidth, progress.themeStyle.progressOpacity, thickness, segmentWidth);\n } else if (this.isRange && !progress.isIndeterminate) {\n linearProgress = this.segment.createLinearRange(this.linearProgressWidth, progress, progressWidth);\n } else {\n if (!refresh) {\n linearProgress = progress.renderer.drawPath(option);\n } else {\n linearProgress = getElement$1(progress.element.id + '_Linearprogress');\n linearProgress.setAttribute('d', progress.getPathLine(progress.progressRect.x, this.linearProgressWidth, thickness));\n linearProgress.setAttribute('stroke', stroke);\n }\n if (progress.segmentCount > 1) {\n linearProgress.setAttribute('stroke-dasharray', progress.segmentSize);\n }\n if (progress.cornerRadius === 'Round' && progressWidth) {\n linearProgress.setAttribute('stroke-linecap', 'round');\n }\n }\n }\n linearProgressGroup.appendChild(linearProgress);\n if (progress.isStriped && !progress.isIndeterminate) {\n strippedStroke = this.checkingLinearProgressColor();\n this.renderLinearStriped(strippedStroke, linearProgressGroup, progress);\n }\n if (progress.isActive && !progress.isIndeterminate && !progress.isStriped) {\n this.renderActiveState(linearProgressGroup, progressWidth, this.linearProgressWidth, thickness, refresh);\n }\n if ((progress.animation.enable && animationMode !== 'Disable' || animationMode === 'Enable') && !progress.isIndeterminate && !progress.isActive && !progress.isStriped) {\n if (progress.secondaryProgress !== null) {\n animationdelay = progress.animation.delay + (this.bufferWidth - this.linearProgressWidth);\n } else {\n animationdelay = progress.animation.delay;\n }\n this.delay = animationdelay;\n clipPathLinear = progress.createClipPath(progress.clipPath, progressWidth, null, refresh, thickness, false, progress.cornerRadius === 'Round4px' && ismaximum);\n linearProgressGroup.appendChild(progress.clipPath);\n linearProgress.style.clipPath = 'url(#' + progress.element.id + '_clippath)';\n this.animation.doLinearAnimation(clipPathLinear, progress, animationdelay, refresh ? previousWidth : 0);\n }\n if (progress.isIndeterminate) {\n clipPathIndeterminate = progress.createClipPath(progress.clipPath, progress.enableProgressSegments ? 1 : progressWidth, null, refresh, thickness, progress.enableProgressSegments);\n linearProgressGroup.appendChild(progress.clipPath);\n linearProgress.setAttribute('style', 'clip-path:url(#' + progress.element.id + '_clippath)');\n this.animation.doLinearIndeterminate(!progress.enableProgressSegments ? clipPathIndeterminate : linearProgress, this.linearProgressWidth, thickness, progress, clipPathIndeterminate);\n }\n progress.svgObject.appendChild(linearProgressGroup);\n progress.previousWidth = previousProgressWidth;\n }\n };\n /**\n * To render the linear buffer.\n *\n * @param {ProgressBar} progress - The progress bar control.\n * @returns {void}\n */\n Linear.prototype.renderLinearBuffer = function (progress) {\n var linearBuffer;\n var clipPathBuffer;\n var linearBufferWidth;\n var option;\n var segmentWidth;\n var ismaximum = progress.secondaryProgress >= progress.maximum;\n var secondaryProgressWidth = progress.calculateProgressRange(progress.secondaryProgress > progress.maximum ? progress.maximum : progress.secondaryProgress);\n this.bufferWidth = linearBufferWidth = progress.progressRect.width * secondaryProgressWidth;\n var linearBufferGroup = progress.renderer.createGroup({\n 'id': progress.element.id + '_LinearBufferGroup'\n });\n var thickness = progress.secondaryProgressThickness ? progress.secondaryProgressThickness : progress.progressThickness || progress.themeStyle.linearProgressThickness;\n var stroke = progress.secondaryProgressColor ? progress.secondaryProgressColor : this.checkingLinearProgressColor();\n if (progress.cornerRadius === 'Round4px') {\n if (progress.segmentCount > 1) {\n linearBuffer = this.createRoundCornerSegment('_Linearbuffer_', stroke, thickness, false, linearBufferWidth, progress, progress.themeStyle.bufferOpacity);\n } else {\n option = new PathOption(progress.element.id + '_Linearbuffer', stroke, 0, 'none', progress.themeStyle.bufferOpacity, '0', this.cornerRadius(progress.progressRect.x, progress.progressRect.y, linearBufferWidth, thickness, 4, ismaximum ? '' : 'start'));\n linearBuffer = progress.renderer.drawPath(option);\n }\n } else {\n option = new PathOption(progress.element.id + '_Linearbuffer', 'none', thickness, stroke, progress.themeStyle.bufferOpacity, '0', progress.getPathLine(progress.progressRect.x, linearBufferWidth, thickness));\n if (progress.segmentColor.length !== 0 && !progress.isIndeterminate && !this.isRange) {\n segmentWidth = !progress.enableProgressSegments ? progress.trackWidth : progress.progressWidth;\n linearBuffer = this.segment.createLinearSegment(progress, '_LinearBufferSegment', linearBufferWidth, progress.themeStyle.bufferOpacity, progress.progressThickness || progress.themeStyle.linearProgressThickness, segmentWidth);\n } else {\n linearBuffer = progress.renderer.drawPath(option);\n if (progress.segmentCount > 1 && !this.isRange) {\n linearBuffer.setAttribute('stroke-dasharray', progress.segmentSize);\n }\n if (progress.cornerRadius === 'Round' && !this.isRange) {\n linearBuffer.setAttribute('stroke-linecap', 'round');\n }\n }\n }\n linearBufferGroup.appendChild(linearBuffer);\n if (progress.animation.enable && animationMode !== 'Disable' || animationMode === 'Enable') {\n clipPathBuffer = progress.createClipPath(progress.bufferClipPath, secondaryProgressWidth, null, false, thickness, false, progress.cornerRadius === 'Round4px' && ismaximum);\n linearBufferGroup.appendChild(progress.bufferClipPath);\n linearBuffer.setAttribute('style', 'clip-path:url(#' + progress.element.id + '_clippathBuffer)');\n this.animation.doLinearAnimation(clipPathBuffer, progress, progress.animation.delay, 0);\n }\n progress.svgObject.appendChild(linearBufferGroup);\n };\n /**\n * Render the Linear Label.\n *\n * @param {boolean} isProgressRefresh - Indicates whether the progress should be refreshed. Defaults to false.\n * @returns {void}\n */\n Linear.prototype.renderLinearLabel = function (isProgressRefresh) {\n if (isProgressRefresh === void 0) {\n isProgressRefresh = false;\n }\n var linearlabel;\n var posX;\n var posY;\n var textSize;\n var percentage = 100;\n var option;\n var defaultPos;\n var far;\n var center;\n var pos;\n var clipPath;\n var thickness = this.progress.progressThickness || this.progress.themeStyle.linearProgressThickness;\n var padding = 5;\n var progress = this.progress;\n var textAlignment = progress.labelStyle.textAlignment;\n var labelText = progress.labelStyle.text;\n var progressWidth = progress.progressRect.width * progress.calculateProgressRange(progress.value > progress.maximum ? progress.maximum : progress.value);\n var linearLabelGroup = progress.renderer.createGroup({\n 'id': progress.element.id + '_LinearLabelGroup'\n });\n if (document.getElementById(linearLabelGroup.id)) {\n document.getElementById(linearLabelGroup.id).remove();\n }\n var labelValue = (progress.value - progress.minimum) / (progress.maximum - progress.minimum) * percentage;\n var linearValue = progress.value < progress.minimum ? 0 : Math.round(labelValue);\n var argsData = {\n cancel: false,\n text: labelText ? labelText : String(linearValue) + '%',\n color: progress.labelStyle.color || this.progress.themeStyle.linearLabelFont.color\n };\n progress.trigger('textRender', argsData);\n if (!argsData.cancel) {\n textSize = measureText(argsData.text, progress.labelStyle, progress.themeStyle.linearLabelFont);\n defaultPos = progress.enableRtl ? progress.progressRect.x + progress.progressRect.width - textSize.width / 2 : progress.progressRect.x + textSize.width / 2;\n if (progress.labelOnTrack) {\n if (textAlignment === 'Near') {\n posX = defaultPos + (progress.enableRtl ? -padding : padding);\n } else if (textAlignment === 'Center') {\n center = progress.enableRtl ? progress.progressRect.x + progress.progressRect.width - progressWidth / 2 : progress.progressRect.x + progressWidth / 2;\n pos = progress.enableRtl ? center <= defaultPos : center >= defaultPos;\n posX = progressWidth < textSize.width / 2 ? defaultPos : center;\n } else {\n far = progress.enableRtl ? progress.progressRect.x + progress.progressRect.width - progressWidth + textSize.width / 2 : progress.progressRect.x + progressWidth - textSize.width / 2;\n far += progress.enableRtl ? padding : -padding;\n pos = progress.enableRtl ? far <= defaultPos : far >= defaultPos;\n if (pos) {\n posX = far;\n } else {\n posX = defaultPos;\n }\n }\n } else {\n if (textAlignment === 'Near') {\n posX = defaultPos + (progress.enableRtl ? -padding : padding);\n } else if (textAlignment === 'Center') {\n posX = (progress.progressRect.x + progress.progressRect.width) / 2;\n } else {\n posX = progress.enableRtl ? progress.progressRect.x + textSize.width / 2 : progress.progressRect.x + progress.progressRect.width - textSize.width / 2;\n posX += progress.enableRtl ? padding : -padding;\n }\n }\n if (this.progress.cornerRadius === 'Round4px') {\n posY = progress.progressRect.y + thickness / 2 + textSize.height / 4;\n } else {\n posY = progress.progressRect.y + progress.progressRect.height / 2 + textSize.height / 4;\n }\n option = new TextOption(progress.element.id + '_linearLabel', progress.labelStyle.size || progress.themeStyle.linearLabelFont.size, progress.labelStyle.fontStyle || progress.themeStyle.linearLabelFont.fontStyle, progress.labelStyle.fontFamily || progress.themeStyle.linearLabelFont.fontFamily, progress.labelStyle.fontWeight, 'middle', argsData.color, posX, posY);\n linearlabel = progress.renderer.createText(option, argsData.text);\n linearLabelGroup.appendChild(linearlabel);\n if ((progress.animation.enable && animationMode !== 'Disable' || animationMode === 'Enable') && !progress.isIndeterminate) {\n clipPath = progress.renderer.createClipPath({\n 'id': progress.element.id + '_clippathLabel'\n });\n progress.createClipPath(clipPath, 1, null, false, progress.progressThickness || progress.themeStyle.linearProgressThickness, true);\n linearLabelGroup.appendChild(clipPath);\n linearlabel.style.clipPath = 'url(#' + progress.element.id + '_clippathLabel)';\n this.animation.doLabelAnimation(linearlabel, isProgressRefresh ? progress.previousLabelWidth : 0, progressWidth - (isProgressRefresh ? progress.previousLabelWidth : 0), progress, this.delay, textSize.width);\n }\n progress.svgObject.appendChild(linearLabelGroup);\n progress.previousLabelWidth = progressWidth;\n }\n };\n /**\n * Renders the active state of the linear progress.\n *\n * @param {Element} progressGroup - The group element containing the progress.\n * @param {number} progressWidth - The width of the progress.\n * @param {number} linearProgressWidth - The width of the linear progress.\n * @param {number} thickness - The thickness of the progress.\n * @param {boolean} refresh - Indicates whether the progress should be refreshed.\n * @returns {void}\n * @private\n */\n Linear.prototype.renderActiveState = function (progressGroup, progressWidth, linearProgressWidth, thickness, refresh) {\n var linearActive;\n var progress = this.progress;\n var option;\n var ismaximum = progress.value === progress.maximum;\n if (progress.cornerRadius === 'Round4px') {\n if (progress.segmentCount > 1) {\n linearActive = this.createRoundCornerSegment('_LinearActiveProgress_', '#ffffff', thickness, false, linearProgressWidth, progress, 0.5);\n } else {\n option = new PathOption(progress.element.id + '_LinearActiveProgress', '#ffffff', 0, 'none', 0.5, '0', this.cornerRadius(progress.progressRect.x, progress.progressRect.y, linearProgressWidth, thickness, 4, ismaximum ? '' : 'start'));\n linearActive = progress.renderer.drawPath(option);\n }\n } else {\n if (!refresh) {\n option = new PathOption(progress.element.id + '_LinearActiveProgress', 'none', thickness, '#ffffff', 0.5, '', progress.getPathLine(progress.progressRect.x, linearProgressWidth, thickness));\n linearActive = progress.renderer.drawPath(option);\n } else {\n linearActive = getElement$1(progress.element.id + '_LinearActiveProgress');\n linearActive.setAttribute('d', progress.getPathLine(progress.progressRect.x, linearProgressWidth, thickness));\n }\n if (progress.segmentCount > 1 && !this.isRange) {\n linearActive.setAttribute('stroke-dasharray', progress.segmentSize);\n }\n if (progress.cornerRadius === 'Round' && progressWidth && !this.isRange) {\n linearActive.setAttribute('stroke-linecap', 'round');\n }\n }\n var activeClip = progress.createClipPath(progress.clipPath, progressWidth, null, refresh, thickness, false);\n linearActive.setAttribute('style', 'clip-path:url(#' + progress.element.id + '_clippath)');\n progressGroup.appendChild(linearActive);\n progressGroup.appendChild(progress.clipPath);\n this.animation.doLinearAnimation(activeClip, progress, 0, 0, linearActive);\n };\n /**\n * Renders the linear progress with stripes.\n *\n * @param {string} color - The color of the progress stripes.\n * @param {Element} group - The group element containing the progress.\n * @param {ProgressBar} progress - The progress bar control.\n * @returns {void}\n * @private\n */\n Linear.prototype.renderLinearStriped = function (color, group, progress) {\n var defs = progress.renderer.createDefs();\n var linearGradient = document.createElementNS(svgLink, gradientType);\n var stripWidth = 14;\n var stop;\n var stopOption = [];\n var gradOption = {\n id: progress.element.id + '_LinearStriped',\n x1: progress.progressRect.x.toString(),\n x2: (progress.progressRect.x + stripWidth).toString(),\n spreadMethod: 'repeat',\n gradientUnits: 'userSpaceOnUse',\n gradientTransform: 'rotate(-45)'\n };\n stopOption = [{\n offset: '50%',\n 'stop-color': color,\n 'stop-opacity': '1'\n }, {\n offset: '50%',\n 'stop-color': color,\n 'stop-opacity': '0.4'\n }];\n linearGradient = setAttributes(gradOption, linearGradient);\n for (var i = 0; i < stopOption.length; i++) {\n stop = document.createElementNS(svgLink, stopElement);\n stop = setAttributes(stopOption[i], stop);\n linearGradient.appendChild(stop);\n }\n defs.appendChild(linearGradient);\n group.appendChild(defs);\n if (progress.animation.enable && animationMode !== 'Disable' || animationMode === 'Enable') {\n this.animation.doStripedAnimation(linearGradient, progress, 0);\n }\n };\n /**\n * Checks and retrieves the color for the linear progress.\n *\n * @returns {string} - The color for the linear progress.\n * @private\n */\n Linear.prototype.checkingLinearProgressColor = function () {\n var linearColor;\n var progress = this.progress;\n var role = progress.role;\n switch (role) {\n case 'Success':\n linearColor = progress.themeStyle.success;\n break;\n case 'Info':\n linearColor = progress.themeStyle.info;\n break;\n case 'Warning':\n linearColor = progress.themeStyle.warning;\n break;\n case 'Danger':\n linearColor = progress.themeStyle.danger;\n break;\n default:\n linearColor = progress.argsData.progressColor || progress.themeStyle.linearProgressColor;\n }\n return linearColor;\n };\n /**\n * Generates the SVG path string with rounded corners.\n *\n * @param {number} x - The x-coordinate of the starting point.\n * @param {number} y - The y-coordinate of the starting point.\n * @param {number} width - The width of the rectangle.\n * @param {number} height - The height of the rectangle.\n * @param {number} radius - The radius of the rounded corners.\n * @param {string} pathtype - The type of SVG path ('M' for move to, 'L' for line to).\n * @returns {string} - The SVG path string with rounded corners.\n * @private\n */\n Linear.prototype.cornerRadius = function (x, y, width, height, radius, pathtype) {\n var path = '';\n var endWidth = width;\n var endRadius = radius;\n switch (pathtype) {\n case 'start':\n path = 'M' + x + ',' + y + ' ' + 'h' + width + ' ' + 'v' + height + ' ' + 'h' + -width + ' ' + 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + -radius + ' ' + 'v' + (2 * radius - height) + ' ' + 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + -radius + ' ' + 'z';\n break;\n case 'end':\n path = 'M' + x + ',' + y + ' ' + 'h' + (endWidth - endRadius) + ' ' + 'a' + endRadius + ',' + endRadius + ' 0 0 1 ' + endRadius + ',' + endRadius + ' ' + 'v' + (height - 2 * endRadius) + ' ' + 'a' + endRadius + ',' + endRadius + ' 0 0 1 ' + -endRadius + ',' + endRadius + ' ' + 'h' + (radius - endWidth) + ' ' + 'v' + -height + ' ' + 'z';\n break;\n case 'none':\n path = 'M' + x + ',' + y + ' ' + 'h' + width + ' ' + 'v' + height + ' ' + 'h' + -width + ' ' + 'v' + -height + ' ' + 'z';\n break;\n default:\n path = 'M' + x + ',' + y + ' ' + 'h' + (width - radius) + ' ' + 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + radius + ' ' + 'v' + (height - 2 * radius) + ' ' + 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + radius + ' ' + 'h' + (radius - width) + ' ' + 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + -radius + ' ' + 'v' + (2 * radius - height) + ' ' + 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + -radius + ' ' + 'z';\n }\n return path;\n };\n /**\n * Creates a round-corner segment element for the progress bar.\n *\n * @param {string} id - The id of the segment element.\n * @param {string} stroke - The stroke color of the segment.\n * @param {number} thickness - The thickness of the segment.\n * @param {boolean} isTrack - Indicates whether the segment is a track.\n * @param {number} progressWidth - The width of the progress.\n * @param {ProgressBar} progress - The progress bar control.\n * @param {number} opacity - The opacity of the segment.\n * @returns {Element} - The created round-corner segment element.\n */\n Linear.prototype.createRoundCornerSegment = function (id, stroke, thickness, isTrack, progressWidth, progress, opacity) {\n var locX = progress.progressRect.x;\n var locY = progress.progressRect.y;\n var width = progress.progressRect.width;\n var option;\n var pathType;\n var avlWidth;\n var gapWidth = progress.gapWidth || progress.themeStyle.linearGapWidth;\n var segWidth = (width - (progress.segmentCount - 1) * gapWidth) / progress.segmentCount;\n var segmentGroup = progress.renderer.createGroup({\n 'id': progress.element.id + id + 'SegmentGroup'\n });\n var segmentPath;\n for (var i = 1; i <= progress.segmentCount; i++) {\n if (i === 1 || i === progress.segmentCount) {\n pathType = i === 1 ? 'start' : 'end';\n } else {\n pathType = 'none';\n }\n if (isTrack) {\n option = new PathOption(progress.element.id + id + i, stroke, 0, 'none', progress.themeStyle.trackOpacity, '0', this.cornerRadius(locX, locY, segWidth, thickness, 4, pathType));\n segmentPath = progress.renderer.drawPath(option);\n segmentGroup.appendChild(segmentPath);\n locX += segWidth + gapWidth;\n } else {\n avlWidth = progressWidth < segWidth ? progressWidth : segWidth;\n option = new PathOption(progress.element.id + id + i, stroke, 0, 'none', opacity, '0', this.cornerRadius(locX, locY, avlWidth, thickness, 4, pathType));\n segmentPath = progress.renderer.drawPath(option);\n segmentGroup.appendChild(segmentPath);\n locX += segWidth + gapWidth;\n progressWidth -= segWidth + gapWidth;\n if (progressWidth <= 0) {\n break;\n }\n }\n }\n return segmentGroup;\n };\n return Linear;\n}();\n\n/**\n * Progressbar of type circular\n */\nvar Circular = /** @__PURE__ @class */function () {\n function Circular(progress) {\n this.segment = new Segment();\n this.animation = new ProgressAnimation();\n this.progress = progress;\n }\n /**\n * To render the circular track.\n *\n * @returns {void}\n */\n Circular.prototype.renderCircularTrack = function () {\n var progress = this.progress;\n var circularTrackGroup = progress.renderer.createGroup({\n 'id': progress.element.id + '_CircularTrackGroup'\n });\n var radius;\n var endAngle;\n var startAngle = progress.startAngle;\n progress.totalAngle = (progress.endAngle - progress.startAngle) % 360;\n progress.totalAngle = progress.totalAngle <= 0 ? 360 + progress.totalAngle : progress.totalAngle;\n progress.totalAngle -= progress.totalAngle === 360 ? 0.01 : 0;\n this.trackEndAngle = endAngle = (progress.startAngle + (progress.enableRtl ? -progress.totalAngle : +progress.totalAngle)) % 360;\n this.centerX = progress.progressRect.x + progress.progressRect.width / 2;\n this.centerY = progress.progressRect.y + progress.progressRect.height / 2;\n this.maxThickness = Math.max(progress.trackThickness, progress.progressThickness) || Math.max(progress.themeStyle.circularProgressThickness, progress.themeStyle.circularTrackThickness);\n this.availableSize = Math.min(progress.progressRect.height, progress.progressRect.width) / 2 - this.maxThickness / 2;\n radius = stringToNumber(progress.radius, this.availableSize);\n radius = radius === null ? 0 : radius;\n var stroke = progress.argsData.trackColor || progress.themeStyle.circularTrackColor;\n var fill = progress.enablePieProgress ? progress.argsData.trackColor || progress.themeStyle.circularTrackColor : 'none';\n var strokeWidth = progress.enablePieProgress ? 0 : progress.trackThickness || progress.themeStyle.circularTrackThickness;\n var circularPath = getPathArc(this.centerX, this.centerY, radius, startAngle, endAngle, progress.enableRtl, progress.enablePieProgress);\n this.isRange = this.progress.rangeColors[0].color !== '' || this.progress.rangeColors[0].start !== null || this.progress.rangeColors[0].end !== null;\n var option = new PathOption(progress.element.id + '_Circulartrack', fill, strokeWidth, stroke, progress.themeStyle.trackOpacity, '0', circularPath);\n var circularTrack = progress.renderer.drawPath(option);\n progress.trackWidth = circularTrack.getTotalLength();\n if (progress.segmentCount > 1 && !progress.enableProgressSegments && !progress.enablePieProgress && !this.isRange) {\n progress.segmentSize = progress.calculateSegmentSize(progress.trackWidth, strokeWidth);\n circularTrack.setAttribute('stroke-dasharray', progress.segmentSize);\n }\n if (progress.cornerRadius === 'Round' && !progress.enablePieProgress && !this.isRange) {\n circularTrack.setAttribute('stroke-linecap', 'round');\n }\n circularTrackGroup.appendChild(circularTrack);\n progress.svgObject.appendChild(circularTrackGroup);\n };\n /**\n * Renders circular progress to update previous progress.\n *\n * @param {number} previousEnd - The previous end value of the progress.\n * @param {number} previousTotalEnd - The previous total end value of the progress.\n * @param {boolean} refresh - Indicates whether to refresh the progress.\n * @returns {void}\n */\n Circular.prototype.renderCircularProgress = function (previousEnd, previousTotalEnd, refresh) {\n var progress = this.progress;\n var startAngle = progress.startAngle;\n var endAngle;\n var totalAngle;\n var radius;\n var previousPath;\n var progressTotalAngle;\n var progressEnd;\n var circularProgress;\n var linearClipPath;\n var circularProgressGroup;\n var segmentWidth;\n if (!refresh) {\n circularProgressGroup = progress.renderer.createGroup({\n 'id': progress.element.id + '_CircularProgressGroup'\n });\n } else {\n circularProgressGroup = getElement$1(progress.element.id + '_CircularProgressGroup');\n }\n radius = stringToNumber(progress.innerRadius, this.availableSize);\n radius = radius === null ? 0 : radius;\n progress.previousTotalEnd = progressEnd = progress.calculateProgressRange(progress.argsData.value > progress.maximum ? progress.maximum : progress.argsData.value);\n var progressEndAngle = (progress.startAngle + (progress.enableRtl ? -progressEnd : progressEnd)) % 360;\n progress.previousEndAngle = endAngle = progress.isIndeterminate && !progress.enableProgressSegments ? (progress.startAngle + (progress.enableRtl ? -progress.totalAngle : progress.totalAngle)) % 360 : progressEndAngle;\n progressTotalAngle = (progressEnd - progress.startAngle) % 360;\n progressTotalAngle = progressTotalAngle <= 0 ? 360 + progressTotalAngle : progressTotalAngle;\n progressTotalAngle -= progressTotalAngle === 360 ? 0.01 : 0;\n var circularPath = getPathArc(this.centerX, this.centerY, radius, startAngle, endAngle, progress.enableRtl, progress.enablePieProgress);\n var stroke = this.checkingCircularProgressColor();\n var fill = progress.enablePieProgress ? stroke : 'none';\n var thickness = progress.progressThickness || progress.themeStyle.circularProgressThickness;\n var strokeWidth = progress.enablePieProgress ? 0 : thickness;\n var option = new PathOption(progress.element.id + '_Circularprogress', fill, strokeWidth, stroke, progress.themeStyle.progressOpacity, '0', circularPath);\n progress.progressWidth = progress.renderer.drawPath(option).getTotalLength();\n progress.segmentSize = this.validateSegmentSize(progress, thickness);\n this.endPosition = degreeToLocation(this.centerX, this.centerY, radius, endAngle);\n if (progress.secondaryProgress !== null && !progress.isIndeterminate) {\n this.renderCircularBuffer(progress, radius, progressTotalAngle);\n }\n if (progress.argsData.value !== null) {\n if (progress.segmentColor.length !== 0 && !progress.isIndeterminate && !progress.enablePieProgress) {\n totalAngle = !progress.enableProgressSegments ? progress.totalAngle : progressTotalAngle;\n segmentWidth = !progress.enableProgressSegments ? progress.trackWidth : progress.progressWidth;\n circularProgress = this.segment.createCircularSegment(progress, '_CircularProgressSegment', this.centerX, this.centerY, radius, progress.argsData.value, progress.themeStyle.progressOpacity, thickness, totalAngle, segmentWidth);\n } else if (this.isRange && !progress.isIndeterminate) {\n circularProgress = this.segment.createCircularRange(this.centerX, this.centerY, radius, progress);\n } else {\n if (!refresh) {\n circularProgress = progress.renderer.drawPath(option);\n } else {\n circularProgress = getElement$1(progress.element.id + '_Circularprogress');\n previousPath = circularProgress.getAttribute('d');\n circularProgress.setAttribute('stroke', stroke);\n circularProgress.setAttribute('d', circularPath);\n }\n if (progress.segmentCount > 1 && !progress.enablePieProgress) {\n circularProgress.setAttribute('stroke-dasharray', progress.segmentSize);\n }\n if (progress.cornerRadius === 'Round' && startAngle !== endAngle) {\n circularProgress.setAttribute('stroke-linecap', 'round');\n }\n }\n circularProgressGroup.appendChild(circularProgress);\n if (progress.isActive && !progress.isIndeterminate && !progress.enablePieProgress) {\n this.renderActiveState(circularProgressGroup, radius, strokeWidth, circularPath, progressEndAngle, progressEnd, refresh);\n }\n if (progress.animation.enable && animationMode !== 'Disable' || animationMode === 'Enable' || progress.isIndeterminate) {\n this.delay = progress.secondaryProgress !== null ? 300 : progress.animation.delay;\n linearClipPath = progress.createClipPath(progress.clipPath, null, refresh ? previousPath : '', refresh);\n circularProgressGroup.appendChild(progress.clipPath);\n if ((progress.animation.enable && animationMode !== 'Disable' || animationMode === 'Enable') && !progress.isIndeterminate && !progress.isActive) {\n circularProgress.style.clipPath = 'url(#' + progress.element.id + '_clippath)';\n this.animation.doCircularAnimation(this.centerX, this.centerY, radius, progressEndAngle, progressEnd, linearClipPath, progress, thickness, this.delay, refresh ? previousEnd : null, refresh ? previousTotalEnd : null);\n }\n if (progress.isIndeterminate) {\n if (progress.enableProgressSegments) {\n linearClipPath.setAttribute('d', getPathArc(this.centerX, this.centerY, radius + thickness / 2, progress.startAngle, this.trackEndAngle, progress.enableRtl, true));\n }\n circularProgress.setAttribute('style', 'clip-path:url(#' + progress.element.id + '_clippath)');\n this.animation.doCircularIndeterminate(!progress.enableProgressSegments ? linearClipPath : circularProgress, progress, startAngle, progressEndAngle, this.centerX, this.centerY, radius, thickness, linearClipPath);\n }\n }\n progress.svgObject.appendChild(circularProgressGroup);\n }\n };\n /**\n * Renders circular buffer for the progress bar.\n *\n * @param {ProgressBar} progress - The progress bar control.\n * @param {number} radius - The radius of the circular buffer.\n * @param {number} progressTotalAngle - The total angle covered by the progress.\n * @returns {void}\n * @private\n */\n Circular.prototype.renderCircularBuffer = function (progress, radius, progressTotalAngle) {\n var bufferClipPath;\n var circularBuffer;\n var segmentWidth;\n var totalAngle;\n var circularBufferGroup = progress.renderer.createGroup({\n 'id': progress.element.id + '_ CircularBufferGroup'\n });\n var bufferEnd = progress.calculateProgressRange(progress.secondaryProgress > progress.maximum ? progress.maximum : progress.secondaryProgress);\n var endAngle = (progress.startAngle + (progress.enableRtl ? -bufferEnd : bufferEnd)) % 360;\n var circularPath = getPathArc(this.centerX, this.centerY, radius, progress.startAngle, endAngle, progress.enableRtl, progress.enablePieProgress);\n this.bufferEndPosition = degreeToLocation(this.centerX, this.centerY, radius, endAngle);\n var stroke = progress.secondaryProgressColor ? progress.secondaryProgressColor : this.checkingCircularProgressColor();\n var fill = progress.enablePieProgress ? stroke : 'none';\n var strokeWidth = progress.enablePieProgress ? 0 : progress.secondaryProgressThickness ? progress.secondaryProgressThickness : progress.progressThickness || progress.themeStyle.circularProgressThickness;\n var option = new PathOption(progress.element.id + '_Circularbuffer', fill, strokeWidth, stroke, progress.themeStyle.bufferOpacity, '0', circularPath);\n if (progress.segmentColor.length !== 0 && !progress.isIndeterminate && !progress.enablePieProgress && !this.isRange) {\n totalAngle = !progress.enableProgressSegments ? progress.totalAngle : progressTotalAngle;\n segmentWidth = !progress.enableProgressSegments ? progress.trackWidth : progress.progressWidth;\n circularBuffer = this.segment.createCircularSegment(progress, '_CircularBufferSegment', this.centerX, this.centerY, radius, progress.secondaryProgress > progress.maximum ? progress.maximum : progress.secondaryProgress, progress.themeStyle.bufferOpacity, strokeWidth, totalAngle, segmentWidth);\n } else {\n circularBuffer = progress.renderer.drawPath(option);\n if (progress.segmentCount > 1 && !progress.enablePieProgress && !this.isRange) {\n circularBuffer.setAttribute('stroke-dasharray', progress.segmentSize);\n }\n if (progress.cornerRadius === 'Round' && !this.isRange) {\n circularBuffer.setAttribute('stroke-linecap', 'round');\n }\n }\n circularBufferGroup.appendChild(circularBuffer);\n if ((progress.animation.enable && animationMode !== 'Disable' || animationMode === 'Enable') && !progress.isActive) {\n bufferClipPath = progress.createClipPath(progress.bufferClipPath, null, '', false);\n circularBufferGroup.appendChild(progress.bufferClipPath);\n circularBuffer.setAttribute('style', 'clip-path:url(#' + progress.element.id + '_clippathBuffer)');\n this.animation.doCircularAnimation(this.centerX, this.centerY, radius, endAngle, bufferEnd, bufferClipPath, progress, progress.progressThickness || progress.themeStyle.circularProgressThickness, progress.animation.delay);\n }\n progress.svgObject.appendChild(circularBufferGroup);\n };\n /**\n * To render the circular Label.\n *\n * @param {boolean} isProgressRefresh - Indicates whether progress should be refreshed. Defaults to false.\n * @returns {void}\n */\n Circular.prototype.renderCircularLabel = function (isProgressRefresh) {\n if (isProgressRefresh === void 0) {\n isProgressRefresh = false;\n }\n var end;\n var circularLabel;\n var centerY;\n var textSize;\n var option;\n var percentage = 100;\n var progress = this.progress;\n var labelText = progress.labelStyle.text;\n var circularLabelGroup = progress.renderer.createGroup({\n 'id': progress.element.id + '_CircularLabelGroup'\n });\n if (document.getElementById(circularLabelGroup.id)) {\n document.getElementById(circularLabelGroup.id).remove();\n }\n var labelValue = (progress.value - progress.minimum) / (progress.maximum - progress.minimum) * percentage;\n var circularValue = progress.value < progress.minimum ? 0 : Math.round(labelValue);\n var argsData = {\n cancel: false,\n text: labelText ? labelText : String(circularValue) + '%',\n color: progress.labelStyle.color || progress.themeStyle.circularLabelFont.color\n };\n progress.trigger('textRender', argsData);\n if (!argsData.cancel) {\n textSize = measureText(argsData.text, progress.labelStyle, progress.themeStyle.circularLabelFont);\n centerY = this.centerY + textSize.height / 2;\n option = new TextOption(progress.element.id + '_circularLabel', progress.labelStyle.size || progress.themeStyle.circularLabelFont.size, progress.labelStyle.fontStyle || progress.themeStyle.circularLabelFont.fontStyle, progress.labelStyle.fontFamily || progress.themeStyle.circularLabelFont.fontFamily, progress.labelStyle.fontWeight, 'middle', argsData.color, this.centerX, centerY, progress.progressRect.width, progress.progressRect.height);\n circularLabel = progress.renderer.createText(option, argsData.text);\n circularLabelGroup.appendChild(circularLabel);\n if ((progress.animation.enable && animationMode !== 'Disable' || animationMode === 'Enable') && !progress.isIndeterminate) {\n end = (progress.value - progress.minimum) / (progress.maximum - progress.minimum) * progress.totalAngle;\n end = progress.value < progress.minimum ? 0 : end;\n this.animation.doLabelAnimation(circularLabel, isProgressRefresh ? progress.previousWidth : progress.startAngle, end, progress, this.delay);\n }\n progress.svgObject.appendChild(circularLabelGroup);\n progress.previousWidth = end;\n }\n };\n /**\n * Renders the active state of the circular progress.\n *\n * @param {Element} progressGroup - The group element containing the progress.\n * @param {number} radius - The radius of the circular progress.\n * @param {number} strokeWidth - The width of the progress stroke.\n * @param {string} circularPath - The path representing the circular progress.\n * @param {number} endAngle - The angle at which the progress ends.\n * @param {number} totalEnd - The total end value of the progress.\n * @param {boolean} refresh - Indicates whether the progress should be refreshed.\n * @returns {void}\n * @private\n */\n Circular.prototype.renderActiveState = function (progressGroup, radius, strokeWidth, circularPath, endAngle, totalEnd, refresh) {\n var circularActive;\n var option;\n var progress = this.progress;\n var thickness = strokeWidth + 1;\n if (!refresh) {\n option = new PathOption(progress.element.id + '_CircularActiveProgress', 'none', thickness, '#ffffff', 0.5, '0', circularPath);\n circularActive = progress.renderer.drawPath(option);\n } else {\n circularActive = getElement$1(progress.element.id + '_CircularActiveProgress');\n circularActive.setAttribute('d', circularPath);\n }\n if (progress.segmentCount > 1) {\n circularActive.setAttribute('stroke-dasharray', progress.segmentSize);\n }\n if (progress.cornerRadius === 'Round') {\n circularActive.setAttribute('stroke-linecap', 'round');\n }\n var activeClip = progress.createClipPath(progress.clipPath, null, '', refresh);\n circularActive.setAttribute('style', 'clip-path:url(#' + progress.element.id + '_clippath)');\n progressGroup.appendChild(circularActive);\n progressGroup.appendChild(progress.clipPath);\n this.animation.doCircularAnimation(this.centerX, this.centerY, radius, endAngle, totalEnd, activeClip, progress, thickness, 0, null, null, circularActive);\n };\n /**\n * Validates the segment size for the progress bar.\n *\n * @param {ProgressBar} progress - The progress bar control.\n * @param {number} thickness - The thickness of the progress segments.\n * @returns {string} - The validated segment size.\n * @private\n */\n Circular.prototype.validateSegmentSize = function (progress, thickness) {\n var validSegment;\n var progressSegment;\n var rDiff = parseInt(progress.radius, 10) - parseInt(progress.innerRadius, 10);\n if (rDiff !== 0 && !progress.enableProgressSegments) {\n progressSegment = progress.trackWidth + (rDiff < 0 ? progress.trackWidth * Math.abs(rDiff) / parseInt(progress.radius, 10) : -(progress.trackWidth * Math.abs(rDiff)) / parseInt(progress.radius, 10));\n validSegment = progress.calculateSegmentSize(progressSegment, thickness);\n } else if (progress.enableProgressSegments) {\n validSegment = progress.calculateSegmentSize(progress.progressWidth, thickness);\n } else {\n validSegment = progress.segmentSize;\n }\n return validSegment;\n };\n /**\n * Checks and retrieves the color for the circular progress.\n *\n * @returns {string} - The color for the circular progress.\n * @private\n */\n Circular.prototype.checkingCircularProgressColor = function () {\n var circularColor;\n var progress = this.progress;\n var role = progress.role;\n switch (role) {\n case 'Success':\n circularColor = progress.themeStyle.success;\n break;\n case 'Info':\n circularColor = progress.themeStyle.info;\n break;\n case 'Warning':\n circularColor = progress.themeStyle.warning;\n break;\n case 'Danger':\n circularColor = progress.themeStyle.danger;\n break;\n default:\n circularColor = progress.argsData.progressColor || progress.themeStyle.circularProgressColor;\n }\n return circularColor;\n };\n return Circular;\n}();\nvar __extends$3 = undefined && undefined.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);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};\n/**\n * progress bar control\n */\nvar ProgressBar = /** @__PURE__ @class */function (_super) {\n __extends$3(ProgressBar, _super);\n function ProgressBar(options, element) {\n var _this = _super.call(this, options, element) || this;\n /** @private */\n _this.linear = new Linear(_this);\n /** @private */\n _this.circular = new Circular(_this);\n /** @private */\n _this.annotateAnimation = new ProgressAnimation();\n /** @private */\n // private resizeTo: number;\n /** @private */\n _this.destroyIndeterminate = false;\n /** @private */\n _this.scaleX = 1;\n /** @private */\n _this.scaleY = 1;\n ProgressBar_1.Inject(ProgressTooltip);\n return _this;\n }\n ProgressBar_1 = ProgressBar;\n ProgressBar.prototype.getModuleName = function () {\n return 'progressbar';\n };\n ProgressBar.prototype.preRender = function () {\n this.unWireEvents();\n this.initPrivateVariable();\n this.wireEvents();\n };\n ProgressBar.prototype.initPrivateVariable = function () {\n this.progressRect = new Rect(0, 0, 0, 0);\n this.progressSize = new Size(0, 0);\n };\n ProgressBar.prototype.render = function () {\n var _this = this;\n this.trigger('load', {\n progressBar: this\n });\n this.element.style.display = 'block';\n this.element.style.position = 'relative';\n this.element.setAttribute('role', 'progressbar');\n this.element.setAttribute('aria-valuemin', this.minimum.toString());\n this.element.setAttribute('aria-valuemax', this.maximum.toString());\n this.element.setAttribute('aria-valuenow', this.value ? this.value.toString() : '0');\n this.element.setAttribute('tabindex', '0');\n this.element.setAttribute('aria-label', this.labelStyle.text || 'progress bar');\n this.calculateProgressBarSize();\n this.setTheme();\n this.createSVG();\n this.argsData = {\n value: this.value,\n progressColor: this.progressColor,\n trackColor: this.trackColor\n };\n if (this.argsData.value === this.maximum) {\n this.trigger(progressCompleted, this.argsData, function () {\n _this.controlRendering();\n });\n } else {\n this.trigger(valueChanged, this.argsData, function () {\n _this.controlRendering();\n });\n }\n };\n ProgressBar.prototype.controlRendering = function () {\n this.renderElements();\n this.trigger('loaded', {\n progressBar: this\n });\n this.renderComplete();\n this.controlRenderedTimeStamp = new Date().getTime();\n };\n /**\n * calculate size of the progress bar.\n *\n * @returns {void}\n */\n ProgressBar.prototype.calculateProgressBarSize = function () {\n var containerWidth = this.element.clientWidth || this.element.offsetWidth;\n var containerHeight = this.element.clientHeight;\n var width = this.type === 'Linear' ? 200 : 120;\n var height = this.type === 'Linear' ? 30 : 120;\n var padding = 10;\n var thickness = Math.max(this.progressThickness, this.trackThickness);\n height = this.type === 'Linear' && thickness > height - padding ? thickness + padding : height;\n this.progressSize.width = stringToNumber(this.width, containerWidth) || containerWidth || width;\n this.progressSize.height = stringToNumber(this.height, containerHeight) || containerHeight || height;\n this.progressRect.x = this.margin.left;\n this.progressRect.y = this.margin.top;\n this.progressRect.width = this.progressSize.width - (this.margin.left + this.margin.right);\n this.progressRect.height = this.progressSize.height - (this.margin.top + this.margin.bottom);\n this.initialClipRect = new Rect(this.progressRect.x, this.progressRect.y, this.progressSize.height, this.progressSize.width);\n };\n /**\n * Render Annotation in progress bar.\n *\n * @returns {void}\n */\n ProgressBar.prototype.renderAnnotations = function () {\n this.renderAnnotation();\n };\n /**\n * Render SVG Element.\n *\n * @returns {void}\n */\n ProgressBar.prototype.renderElements = function () {\n this.createSecondaryElement();\n this.renderTrack();\n this.renderProgress();\n this.renderLabel();\n if (this.annotations.length > 0) {\n this.renderAnnotations();\n }\n this.setSecondaryElementPosition();\n if (this.tooltip.enable && !this.tooltip.showTooltipOnHover) {\n this.progressTooltipModule.tooltip();\n }\n };\n ProgressBar.prototype.createSecondaryElement = function () {\n var secElement = document.getElementById(this.element.id + 'Secondary_Element');\n if (this.tooltip.enable) {\n this.tooltipElement = createElement('div', {\n id: this.element.id + '_tooltip',\n className: 'ejSVGTooltip',\n styles: 'pointer-events: none; position: absolute; zIndex: 1; visibility: visible'\n });\n if (secElement) {\n this.secElement.appendChild(this.tooltipElement);\n }\n }\n var tooltipElement = document.getElementById(this.element.id + '_tooltip');\n if (secElement) {\n secElement.innerHTML = '';\n this.secElement = tooltipElement ? secElement.appendChild(tooltipElement) : secElement;\n return;\n }\n this.secElement = createElement('div', {\n id: this.element.id + 'Secondary_Element',\n styles: 'position: absolute'\n });\n this.element.appendChild(this.secElement);\n if (this.tooltipElement) {\n this.secElement.appendChild(this.tooltipElement);\n }\n };\n /**\n * To set the left and top position for annotation for center aligned.\n *\n * @returns {void}\n */\n ProgressBar.prototype.setSecondaryElementPosition = function () {\n var element = this.secElement;\n var rect = this.element.getBoundingClientRect();\n if (getElement$1(this.svgObject.id)) {\n var svgRect = getElement$1(this.svgObject.id).getBoundingClientRect();\n element.style.left = Math.max(svgRect.left - rect.left, 0) + 'px';\n element.style.top = Math.max(svgRect.top - rect.top, 0) + 'px';\n }\n };\n ProgressBar.prototype.createSVG = function () {\n this.removeSvg();\n this.renderer = new SvgRenderer(this.element.id);\n this.svgObject = this.renderer.createSvg({\n id: this.element.id + 'SVG',\n width: this.progressSize.width,\n height: this.progressSize.height,\n style: 'background-color:' + this.themeStyle.backgroundColor\n });\n };\n ProgressBar.prototype.clipPathElement = function () {\n this.clipPath = this.renderer.createClipPath({\n 'id': this.element.id + '_clippath'\n });\n this.bufferClipPath = this.renderer.createClipPath({\n 'id': this.element.id + '_clippathBuffer'\n });\n };\n ProgressBar.prototype.renderTrack = function () {\n if (this.type === 'Linear') {\n this.linear.renderLinearTrack();\n } else if (this.type === 'Circular') {\n this.circular.renderCircularTrack();\n }\n };\n ProgressBar.prototype.renderProgress = function () {\n this.clipPathElement();\n if (this.type === 'Linear') {\n this.linear.renderLinearProgress();\n } else if (this.type === 'Circular') {\n this.circular.renderCircularProgress();\n }\n };\n ProgressBar.prototype.renderLabel = function () {\n if (this.type === 'Linear' && this.showProgressValue && !this.isIndeterminate) {\n this.linear.renderLinearLabel();\n } else if (this.type === 'Circular' && this.showProgressValue && !this.isIndeterminate) {\n this.circular.renderCircularLabel();\n }\n this.element.appendChild(this.svgObject);\n };\n ProgressBar.prototype.getPathLine = function (x, width, thickness) {\n var moveTo = this.enableRtl ? this.cornerRadius === 'Round' ? x + this.progressRect.width - lineCapRadius / 2 * thickness : x + this.progressRect.width : this.cornerRadius === 'Round' ? x + lineCapRadius / 2 * thickness : x;\n //TODO : BLAZ-14309 - ProgressBar renders improperly when corner radius is set to \"Round\" and the value between one to four.\n thickness = width < thickness && this.cornerRadius === 'Round' ? width : thickness;\n var lineTo = this.enableRtl ? this.cornerRadius === 'Round' && width ? moveTo - width + lineCapRadius * thickness : moveTo - width : this.cornerRadius === 'Round' && width ? moveTo + width - lineCapRadius * thickness : moveTo + width;\n return 'M' + moveTo + ' ' + (this.progressRect.y + this.progressRect.height / 2) + 'L' + lineTo + ' ' + (this.progressRect.y + this.progressRect.height / 2);\n };\n ProgressBar.prototype.calculateProgressRange = function (value, minimum, maximum) {\n var min = minimum || this.minimum;\n var max = maximum || this.maximum;\n var endValue = (value - min) / (max - min) * (this.type === 'Linear' ? 1 : this.totalAngle);\n var result = value < min || value > max ? 0 : endValue;\n return result;\n };\n ProgressBar.prototype.calculateSegmentSize = function (width, thickness) {\n var count = this.type === 'Circular' && this.totalAngle === completeAngle ? this.segmentCount : this.segmentCount - 1;\n var cornerCount = this.totalAngle === completeAngle || this.type === 'Linear' ? this.segmentCount : this.segmentCount - 1;\n var gap = this.gapWidth || (this.type === 'Linear' ? this.themeStyle.linearGapWidth : this.themeStyle.circularGapWidth);\n var size = width - count * gap;\n size = (size - (this.cornerRadius === 'Round' ? cornerCount * (lineCapRadius * thickness) : 0)) / this.segmentCount;\n gap += this.cornerRadius === 'Round' ? lineCapRadius * thickness : 0;\n return ' ' + size + ' ' + gap;\n };\n ProgressBar.prototype.createClipPath = function (clipPath, range, d, refresh, thickness, isLabel, isMaximum) {\n var path;\n var rect;\n var option;\n var posx;\n var posy;\n var pathWidth;\n var x = this.progressRect.x;\n var totalWidth = this.progressRect.width;\n if (this.type === 'Linear') {\n if (this.cornerRadius === 'Round4px') {\n posx = x;\n pathWidth = totalWidth * range;\n posx += !isLabel ? -4 : 0;\n posy = this.progressRect.y;\n pathWidth += !isLabel && isMaximum || this.isIndeterminate ? 4 : 0;\n } else {\n //TODO : BLAZ-14309 - ProgressBar renders improperly when corner radius is set to \"Round\" and the value between one to four.\n posx = this.enableRtl && !isLabel ? x + totalWidth + (this.cornerRadius === 'Round' ? thickness / 10 : 0) : x - (this.cornerRadius === 'Round' ? thickness / 10 : 0);\n pathWidth = totalWidth * range;\n //TODO : BLAZ-14309 - ProgressBar renders improperly when corner radius is set to \"Round\" and the value between one to four.\n //posx += (this.cornerRadius === 'Round' && !isLabel) ?\n // ((this.enableRtl) ? (lineCapRadius / 2) * thickness : -(lineCapRadius / 2) * thickness) : 0;\n posy = this.progressRect.y + this.progressRect.height / 2 - thickness / 2;\n pathWidth += this.cornerRadius === 'Round' && !isLabel ? lineCapRadius * thickness : 0;\n }\n if (!refresh) {\n rect = new RectOption(this.element.id + '_clippathrect' + (isLabel ? 'label' : ''), 'transparent', 1, 'transparent', 1, new Rect(posx, posy, thickness, pathWidth));\n path = this.renderer.drawRectangle(rect);\n clipPath.appendChild(path);\n } else {\n path = getElement$1(this.element.id + '_clippathrect' + (isLabel ? 'label' : ''));\n path.setAttribute('width', pathWidth.toString());\n if (this.isActive) {\n path.setAttribute('x', posx.toString());\n }\n }\n } else {\n if (!refresh) {\n option = new PathOption(this.element.id + '_clippathcircle', 'transparent', 10, 'transparent', 1, '0', d);\n path = this.renderer.drawPath(option);\n clipPath.appendChild(path);\n } else {\n path = getElement$1(this.element.id + '_clippathcircle');\n path.setAttribute('d', d);\n }\n }\n return path;\n };\n /**\n * Theming for progress bar.\n *\n * @returns {void}\n */\n ProgressBar.prototype.setTheme = function () {\n this.themeStyle = getProgressThemeColor(this.theme);\n switch (this.theme) {\n case 'Bootstrap':\n case 'Bootstrap4':\n this.cornerRadius = this.cornerRadius === 'Auto' ? this.type === 'Linear' ? 'Round4px' : 'Round' : this.cornerRadius;\n break;\n case 'Fluent2':\n case 'Fluent2Dark':\n case 'Fluent2HighContrast':\n case 'Bootstrap5':\n case 'Bootstrap5Dark':\n this.cornerRadius = this.cornerRadius === 'Auto' && this.type === 'Linear' ? 'Round' : this.cornerRadius;\n break;\n default:\n this.cornerRadius = this.cornerRadius === 'Auto' ? 'Square' : this.cornerRadius;\n }\n };\n /**\n * Annotation for progress bar.\n *\n * @returns {void}\n */\n ProgressBar.prototype.renderAnnotation = function () {\n if (this.progressAnnotationModule && this.annotations.length > 0) {\n this.progressAnnotationModule.renderAnnotations(this.secElement);\n }\n };\n /**\n * Handles the progressbar resize.\n *\n * @returns {boolean} false\n * @private\n */\n ProgressBar.prototype.progressResize = function () {\n var _this = this;\n // 800 used as buffer time for resize event preventing from control rendered time\n if (!(new Date().getTime() > this.controlRenderedTimeStamp + 800)) {\n return false;\n }\n var arg = {\n bar: this,\n name: 'resized',\n currentSize: new Size(0, 0),\n previousSize: new Size(this.progressSize.width, this.progressSize.height),\n cancel: this.cancelResize ? true : false\n };\n if (this.resizeTo) {\n clearTimeout(this.resizeTo);\n }\n this.resizeTo = setTimeout(function () {\n if (_this.isDestroyed) {\n clearTimeout(_this.resizeTo);\n return;\n }\n arg.currentSize = _this.progressSize;\n _this.trigger('resized', arg);\n if ((_this.width === null || _this.height === null || _this.width.indexOf('%') > -1 || _this.height.indexOf('%') > -1) && !arg.cancel) {\n if (_this.secElement) {\n _this.secElement.innerHTML = '';\n }\n _this.calculateProgressBarSize();\n _this.createSVG();\n _this.renderElements();\n }\n }, 500);\n return false;\n };\n ProgressBar.prototype.progressMouseClick = function (e) {\n this.mouseEvent(mouseClick, e);\n };\n ProgressBar.prototype.progressMouseDown = function (e) {\n this.mouseEvent(mouseDown, e);\n };\n ProgressBar.prototype.progressMouseMove = function (e) {\n this.mouseEvent(mouseMove, e);\n var target = e.target;\n if (this.tooltip.enable && this.tooltip.showTooltipOnHover) {\n if (target.id.indexOf('Circularprogress') >= 0 || target.id.indexOf('Circularbuffer') >= 0 || target.id.indexOf('Linearprogress') >= 0 || target.id.indexOf('Linearbuffer') >= 0 || target.id.indexOf('Linearbuffer') >= 0) {\n this.progressTooltipModule.tooltip(e);\n } else if (this.progressTooltipModule.isRendered) {\n this.progressTooltipModule.removeTooltip(1000);\n this.progressTooltipModule.isRendered = false;\n }\n }\n };\n ProgressBar.prototype.progressMouseUp = function (e) {\n this.mouseEvent(mouseUp, e);\n };\n ProgressBar.prototype.progressMouseLeave = function (e) {\n this.mouseEvent(mouseLeave, e);\n };\n ProgressBar.prototype.mouseEvent = function (eventName, e) {\n var element = e.target;\n this.trigger(eventName, {\n target: element.id\n });\n };\n /**\n * Method to un-bind events for progress bar.\n *\n * @returns {void}\n */\n ProgressBar.prototype.unWireEvents = function () {\n var startEvent = Browser.touchStartEvent;\n var moveEvent = Browser.touchMoveEvent;\n var stopEvent = Browser.touchEndEvent;\n /*! Find the Events type */\n var cancelEvent = Browser.isPointer ? 'pointerleave' : 'mouseleave';\n /*! UnBind the Event handler */\n EventHandler.remove(this.element, 'click', this.progressMouseClick);\n EventHandler.remove(this.element, startEvent, this.progressMouseDown);\n EventHandler.remove(this.element, moveEvent, this.progressMouseMove);\n EventHandler.remove(this.element, stopEvent, this.progressMouseUp);\n EventHandler.remove(this.element, cancelEvent, this.progressMouseLeave);\n window.removeEventListener(Browser.isTouch && 'orientation' in window && 'onorientationchange' in window ? 'orientationchange' : 'resize', this.resizeBounds);\n };\n /**\n * Method to bind events for bullet chart.\n *\n * @returns {void}\n */\n ProgressBar.prototype.wireEvents = function () {\n var startEvent = Browser.touchStartEvent;\n var moveEvent = Browser.touchMoveEvent;\n var stopEvent = Browser.touchEndEvent;\n /*! Find the Events type */\n var cancelEvent = Browser.isPointer ? 'pointerleave' : 'mouseleave';\n /*! Bind the Event handler */\n EventHandler.add(this.element, 'click', this.progressMouseClick, this);\n EventHandler.add(this.element, startEvent, this.progressMouseDown, this);\n EventHandler.add(this.element, moveEvent, this.progressMouseMove, this);\n EventHandler.add(this.element, stopEvent, this.progressMouseUp, this);\n EventHandler.add(this.element, cancelEvent, this.progressMouseLeave, this);\n this.resizeBounds = this.progressResize.bind(this);\n window.addEventListener(Browser.isTouch && 'orientation' in window && 'onorientationchange' in window ? 'orientationchange' : 'resize', this.resizeBounds);\n };\n ProgressBar.prototype.removeSvg = function () {\n var svgElement = document.getElementById(this.element.id + 'SVG');\n if (svgElement) {\n remove(svgElement);\n }\n };\n ProgressBar.prototype.onPropertyChanged = function (newProp, oldProp) {\n for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {\n var prop = _a[_i];\n switch (prop) {\n case 'annotations':\n this.secElement.innerHTML = '';\n this.renderAnnotation();\n break;\n case 'value':\n this.cancelResize = this.animation.enable ? true : false;\n this.argsData = {\n value: this.value,\n progressColor: this.argsData.progressColor,\n trackColor: this.argsData.trackColor\n };\n if (this.argsData.value < oldProp.value && this.animation.enable) {\n this.argsData.value = oldProp.value;\n }\n if (this.argsData.value === this.maximum) {\n this.trigger(progressCompleted, this.argsData);\n } else {\n this.trigger(valueChanged, this.argsData);\n }\n if (this.type === 'Circular') {\n this.circular.renderCircularProgress(this.previousEndAngle, this.previousTotalEnd, !isNullOrUndefined(oldProp.value));\n if (this.showProgressValue) {\n this.circular.renderCircularLabel(true);\n }\n if (this.progressAnnotationModule && this.animation.enable && !this.isIndeterminate) {\n this.annotateAnimation.doAnnotationAnimation(this.clipPath, this, this.annotateEnd, this.annotateTotal);\n }\n } else {\n this.linear.renderLinearProgress(!isNullOrUndefined(oldProp.value), this.previousWidth);\n if (this.showProgressValue) {\n this.linear.renderLinearLabel(true);\n }\n }\n this.element.setAttribute('aria-valuenow', this.argsData.value ? this.argsData.value.toString() : '0');\n break;\n case 'animation':\n this.createSVG();\n this.renderElements();\n break;\n }\n }\n };\n ProgressBar.prototype.requiredModules = function () {\n var modules = [];\n var enableAnnotation = false;\n enableAnnotation = this.annotations.some(function (value) {\n return value.content !== null;\n });\n if (enableAnnotation) {\n modules.push({\n member: 'ProgressAnnotation',\n args: [this]\n });\n }\n if (this.tooltip.enable) {\n modules.push({\n member: 'ProgressTooltip',\n args: [this]\n });\n }\n return modules;\n };\n ProgressBar.prototype.getPersistData = function () {\n return ' ';\n };\n ProgressBar.prototype.show = function () {\n if (!isNullOrUndefined(this.svgObject)) {\n this.svgObject.setAttribute('visibility', 'Visible');\n if (this.isIndeterminate) {\n this.destroyIndeterminate = false;\n if (this.type === 'Linear') {\n this.linear.renderLinearProgress(true);\n } else {\n this.circular.renderCircularProgress(null, null, true);\n }\n }\n }\n };\n ProgressBar.prototype.hide = function () {\n if (!isNullOrUndefined(this.svgObject)) {\n this.svgObject.setAttribute('visibility', 'Hidden');\n if (this.isIndeterminate) {\n this.destroyIndeterminate = true;\n }\n }\n };\n /**\n * To destroy the widget.\n *\n * @returns {void}\n */\n ProgressBar.prototype.destroy = function () {\n this.unWireEvents();\n _super.prototype.destroy.call(this);\n this.removeSvg();\n if (this.isReact) {\n this.clearTemplate();\n }\n this.svgObject = null;\n this.element.classList.remove('e-progressbar');\n if (!this.refreshing) {\n this.destroyIndeterminate = true;\n }\n };\n var ProgressBar_1;\n __decorate$1([Property('Linear')], ProgressBar.prototype, \"type\", void 0);\n __decorate$1([Property(null)], ProgressBar.prototype, \"value\", void 0);\n __decorate$1([Property(null)], ProgressBar.prototype, \"secondaryProgress\", void 0);\n __decorate$1([Property('')], ProgressBar.prototype, \"secondaryProgressColor\", void 0);\n __decorate$1([Property(null)], ProgressBar.prototype, \"secondaryProgressThickness\", void 0);\n __decorate$1([Property(0)], ProgressBar.prototype, \"minimum\", void 0);\n __decorate$1([Property(100)], ProgressBar.prototype, \"maximum\", void 0);\n __decorate$1([Property(0)], ProgressBar.prototype, \"startAngle\", void 0);\n __decorate$1([Property(0)], ProgressBar.prototype, \"endAngle\", void 0);\n __decorate$1([Property('100%')], ProgressBar.prototype, \"radius\", void 0);\n __decorate$1([Property('100%')], ProgressBar.prototype, \"innerRadius\", void 0);\n __decorate$1([Property(1)], ProgressBar.prototype, \"segmentCount\", void 0);\n __decorate$1([Property(null)], ProgressBar.prototype, \"gapWidth\", void 0);\n __decorate$1([Property('')], ProgressBar.prototype, \"segmentColor\", void 0);\n __decorate$1([Property('Auto')], ProgressBar.prototype, \"cornerRadius\", void 0);\n __decorate$1([Property(null)], ProgressBar.prototype, \"height\", void 0);\n __decorate$1([Property(null)], ProgressBar.prototype, \"width\", void 0);\n __decorate$1([Property(false)], ProgressBar.prototype, \"isIndeterminate\", void 0);\n __decorate$1([Property(false)], ProgressBar.prototype, \"isActive\", void 0);\n __decorate$1([Property(false)], ProgressBar.prototype, \"isGradient\", void 0);\n __decorate$1([Property(false)], ProgressBar.prototype, \"isStriped\", void 0);\n __decorate$1([Property('Auto')], ProgressBar.prototype, \"role\", void 0);\n __decorate$1([Property(false)], ProgressBar.prototype, \"enableRtl\", void 0);\n __decorate$1([Property(true)], ProgressBar.prototype, \"labelOnTrack\", void 0);\n __decorate$1([Property(null)], ProgressBar.prototype, \"trackColor\", void 0);\n __decorate$1([Property(null)], ProgressBar.prototype, \"progressColor\", void 0);\n __decorate$1([Property(0)], ProgressBar.prototype, \"trackThickness\", void 0);\n __decorate$1([Property(0)], ProgressBar.prototype, \"progressThickness\", void 0);\n __decorate$1([Property(false)], ProgressBar.prototype, \"enablePieProgress\", void 0);\n __decorate$1([Property('Fabric')], ProgressBar.prototype, \"theme\", void 0);\n __decorate$1([Property(false)], ProgressBar.prototype, \"showProgressValue\", void 0);\n __decorate$1([Property(false)], ProgressBar.prototype, \"enableProgressSegments\", void 0);\n __decorate$1([Complex({\n size: null,\n color: null,\n fontStyle: null,\n fontWeight: null,\n fontFamily: null\n }, Font)], ProgressBar.prototype, \"labelStyle\", void 0);\n __decorate$1([Complex({}, Margin)], ProgressBar.prototype, \"margin\", void 0);\n __decorate$1([Complex({}, Animation)], ProgressBar.prototype, \"animation\", void 0);\n __decorate$1([Complex({}, TooltipSettings)], ProgressBar.prototype, \"tooltip\", void 0);\n __decorate$1([Event()], ProgressBar.prototype, \"load\", void 0);\n __decorate$1([Event()], ProgressBar.prototype, \"textRender\", void 0);\n __decorate$1([Event()], ProgressBar.prototype, \"loaded\", void 0);\n __decorate$1([Event()], ProgressBar.prototype, \"valueChanged\", void 0);\n __decorate$1([Event()], ProgressBar.prototype, \"progressCompleted\", void 0);\n __decorate$1([Event()], ProgressBar.prototype, \"animationComplete\", void 0);\n __decorate$1([Event()], ProgressBar.prototype, \"mouseClick\", void 0);\n __decorate$1([Event()], ProgressBar.prototype, \"mouseMove\", void 0);\n __decorate$1([Event()], ProgressBar.prototype, \"mouseUp\", void 0);\n __decorate$1([Event()], ProgressBar.prototype, \"mouseDown\", void 0);\n __decorate$1([Event()], ProgressBar.prototype, \"mouseLeave\", void 0);\n __decorate$1([Event()], ProgressBar.prototype, \"tooltipRender\", void 0);\n __decorate$1([Collection([{}], ProgressAnnotationSettings)], ProgressBar.prototype, \"annotations\", void 0);\n __decorate$1([Collection([{}], RangeColor)], ProgressBar.prototype, \"rangeColors\", void 0);\n ProgressBar = ProgressBar_1 = __decorate$1([NotifyPropertyChanges], ProgressBar);\n return ProgressBar;\n}(Component);\nexport { Animation, Border, ColorValue, Font, Margin, Pos, ProgressAnimation, ProgressAnnotation, ProgressAnnotationSettings, ProgressBar, ProgressLocation, ProgressTooltip, RangeColor, Rect, RectOption, Size, TextOption, TooltipSettings, annotationRender, colorNameToHex, componentToHex, convertHexToColor, convertToHexCode, degreeToLocation, effect, getElement, getPathArc, removeElement, setAttributes, stringToNumber };\n","import { __decorate } from 'tslib';\nimport * as i0 from '@angular/core';\nimport { Directive, ContentChild, ContentChildren, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';\nimport { ComplexBase, setValue, Template, ArrayBase, ComponentBase, ComponentMixins } from '@syncfusion/ej2-angular-base';\nimport { ProgressBar, ProgressAnnotation, ProgressTooltip } from '@syncfusion/ej2-progressbar';\nconst _c0 = [\"content\"];\nexport * from '@syncfusion/ej2-progressbar';\nimport { CommonModule } from '@angular/common';\nlet input$1 = ['annotationAngle', 'annotationRadius', 'content'];\nlet outputs$2 = [];\n/**\n * ProgressBarAnnotations Directive\n * ```html\n * \n * \n * \n * ```\n */\nlet ProgressBarAnnotationDirective = /*#__PURE__*/(() => {\n class ProgressBarAnnotationDirective extends ComplexBase {\n constructor(viewContainerRef) {\n super();\n this.viewContainerRef = viewContainerRef;\n setValue('currentInstance', this, this.viewContainerRef);\n this.registerEvents(outputs$2);\n this.directivePropList = input$1;\n }\n }\n ProgressBarAnnotationDirective.ɵfac = function ProgressBarAnnotationDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ProgressBarAnnotationDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n };\n ProgressBarAnnotationDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: ProgressBarAnnotationDirective,\n selectors: [[\"e-progressbar-annotation\"]],\n contentQueries: function ProgressBarAnnotationDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, _c0, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);\n }\n },\n inputs: {\n annotationAngle: \"annotationAngle\",\n annotationRadius: \"annotationRadius\",\n content: \"content\"\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n __decorate([Template()], ProgressBarAnnotationDirective.prototype, \"content\", void 0);\n return ProgressBarAnnotationDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * ProgressBarAnnotation Array Directive\n * @private\n */\nlet ProgressBarAnnotationsDirective = /*#__PURE__*/(() => {\n class ProgressBarAnnotationsDirective extends ArrayBase {\n constructor() {\n super('annotations');\n }\n }\n ProgressBarAnnotationsDirective.ɵfac = function ProgressBarAnnotationsDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ProgressBarAnnotationsDirective)();\n };\n ProgressBarAnnotationsDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: ProgressBarAnnotationsDirective,\n selectors: [[\"e-progressbar-annotations\"]],\n contentQueries: function ProgressBarAnnotationsDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, ProgressBarAnnotationDirective, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.children = _t);\n }\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return ProgressBarAnnotationsDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet input = ['color', 'end', 'start'];\nlet outputs$1 = [];\nlet RangeColorDirective = /*#__PURE__*/(() => {\n class RangeColorDirective extends ComplexBase {\n constructor(viewContainerRef) {\n super();\n this.viewContainerRef = viewContainerRef;\n setValue('currentInstance', this, this.viewContainerRef);\n this.registerEvents(outputs$1);\n this.directivePropList = input;\n }\n }\n RangeColorDirective.ɵfac = function RangeColorDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || RangeColorDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n };\n RangeColorDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: RangeColorDirective,\n selectors: [[\"e-rangecolor\"]],\n inputs: {\n color: \"color\",\n end: \"end\",\n start: \"start\"\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return RangeColorDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * RangeColor Array Directive\n * @private\n */\nlet RangeColorsDirective = /*#__PURE__*/(() => {\n class RangeColorsDirective extends ArrayBase {\n constructor() {\n super('rangecolors');\n }\n }\n RangeColorsDirective.ɵfac = function RangeColorsDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || RangeColorsDirective)();\n };\n RangeColorsDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: RangeColorsDirective,\n selectors: [[\"e-rangecolors\"]],\n contentQueries: function RangeColorsDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, RangeColorDirective, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.children = _t);\n }\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return RangeColorsDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst inputs = ['animation', 'annotations', 'cornerRadius', 'enablePersistence', 'enablePieProgress', 'enableProgressSegments', 'enableRtl', 'endAngle', 'gapWidth', 'height', 'innerRadius', 'isActive', 'isGradient', 'isIndeterminate', 'isStriped', 'labelOnTrack', 'labelStyle', 'locale', 'margin', 'maximum', 'minimum', 'progressColor', 'progressThickness', 'radius', 'rangeColors', 'role', 'secondaryProgress', 'secondaryProgressColor', 'secondaryProgressThickness', 'segmentColor', 'segmentCount', 'showProgressValue', 'startAngle', 'theme', 'tooltip', 'trackColor', 'trackThickness', 'type', 'value', 'width'];\nconst outputs = ['animationComplete', 'load', 'loaded', 'mouseClick', 'mouseDown', 'mouseLeave', 'mouseMove', 'mouseUp', 'progressCompleted', 'textRender', 'tooltipRender', 'valueChanged'];\nconst twoWays = [''];\n/**\n * ProgressBar Component\n * ```html\n * \n * ```\n */\nlet ProgressBarComponent = /*#__PURE__*/(() => {\n let ProgressBarComponent = class ProgressBarComponent extends ProgressBar {\n constructor(ngEle, srenderer, viewContainerRef, injector) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.tags = ['annotations', 'rangeColors'];\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n try {\n let mod = this.injector.get('ProgressBarProgressAnnotation');\n if (this.injectedModules.indexOf(mod) === -1) {\n this.injectedModules.push(mod);\n }\n } catch {}\n try {\n let mod = this.injector.get('ProgressBarProgressTooltip');\n if (this.injectedModules.indexOf(mod) === -1) {\n this.injectedModules.push(mod);\n }\n } catch {}\n this.registerEvents(outputs);\n this.addTwoWay.call(this, twoWays);\n setValue('currentInstance', this, this.viewContainerRef);\n this.context = new ComponentBase();\n }\n ngOnInit() {\n this.context.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.context.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.context.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.tagObjects[0].instance = this.childAnnotations;\n if (this.childRangeColors) {\n this.tagObjects[1].instance = this.childRangeColors;\n }\n this.context.ngAfterContentChecked(this);\n }\n };\n ProgressBarComponent.ɵfac = function ProgressBarComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ProgressBarComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector));\n };\n ProgressBarComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: ProgressBarComponent,\n selectors: [[\"ejs-progressbar\"]],\n contentQueries: function ProgressBarComponent_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, ProgressBarAnnotationsDirective, 5);\n i0.ɵɵcontentQuery(dirIndex, RangeColorsDirective, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childAnnotations = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childRangeColors = _t.first);\n }\n },\n inputs: {\n animation: \"animation\",\n annotations: \"annotations\",\n cornerRadius: \"cornerRadius\",\n enablePersistence: \"enablePersistence\",\n enablePieProgress: \"enablePieProgress\",\n enableProgressSegments: \"enableProgressSegments\",\n enableRtl: \"enableRtl\",\n endAngle: \"endAngle\",\n gapWidth: \"gapWidth\",\n height: \"height\",\n innerRadius: \"innerRadius\",\n isActive: \"isActive\",\n isGradient: \"isGradient\",\n isIndeterminate: \"isIndeterminate\",\n isStriped: \"isStriped\",\n labelOnTrack: \"labelOnTrack\",\n labelStyle: \"labelStyle\",\n locale: \"locale\",\n margin: \"margin\",\n maximum: \"maximum\",\n minimum: \"minimum\",\n progressColor: \"progressColor\",\n progressThickness: \"progressThickness\",\n radius: \"radius\",\n rangeColors: \"rangeColors\",\n role: \"role\",\n secondaryProgress: \"secondaryProgress\",\n secondaryProgressColor: \"secondaryProgressColor\",\n secondaryProgressThickness: \"secondaryProgressThickness\",\n segmentColor: \"segmentColor\",\n segmentCount: \"segmentCount\",\n showProgressValue: \"showProgressValue\",\n startAngle: \"startAngle\",\n theme: \"theme\",\n tooltip: \"tooltip\",\n trackColor: \"trackColor\",\n trackThickness: \"trackThickness\",\n type: \"type\",\n value: \"value\",\n width: \"width\"\n },\n outputs: {\n animationComplete: \"animationComplete\",\n load: \"load\",\n loaded: \"loaded\",\n mouseClick: \"mouseClick\",\n mouseDown: \"mouseDown\",\n mouseLeave: \"mouseLeave\",\n mouseMove: \"mouseMove\",\n mouseUp: \"mouseUp\",\n progressCompleted: \"progressCompleted\",\n textRender: \"textRender\",\n tooltipRender: \"tooltipRender\",\n valueChanged: \"valueChanged\"\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n decls: 0,\n vars: 0,\n template: function ProgressBarComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n });\n ProgressBarComponent = __decorate([ComponentMixins([ComponentBase])], ProgressBarComponent);\n return ProgressBarComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the ProgressBar component.\n */\nlet ProgressBarModule = /*#__PURE__*/(() => {\n class ProgressBarModule {}\n ProgressBarModule.ɵfac = function ProgressBarModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ProgressBarModule)();\n };\n ProgressBarModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: ProgressBarModule\n });\n ProgressBarModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return ProgressBarModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst ProgressAnnotationService = {\n provide: 'ProgressBarProgressAnnotation',\n useValue: ProgressAnnotation\n};\nconst ProgressTooltipService = {\n provide: 'ProgressBarProgressTooltip',\n useValue: ProgressTooltip\n};\n/**\n * NgModule definition for the ProgressBar component with providers.\n */\nlet ProgressBarAllModule = /*#__PURE__*/(() => {\n class ProgressBarAllModule {}\n ProgressBarAllModule.ɵfac = function ProgressBarAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ProgressBarAllModule)();\n };\n ProgressBarAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: ProgressBarAllModule\n });\n ProgressBarAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [ProgressAnnotationService, ProgressTooltipService],\n imports: [[CommonModule, ProgressBarModule], ProgressBarModule]\n });\n return ProgressBarAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ProgressAnnotationService, ProgressBarAllModule, ProgressBarAnnotationDirective, ProgressBarAnnotationsDirective, ProgressBarComponent, ProgressBarModule, ProgressTooltipService, RangeColorDirective, RangeColorsDirective };\n","export enum FunctionType {\r\n AddSubscriptions = 'AddSubscriptions',\r\n EndSubscriptions = 'EndSubscriptions',\r\n DeactivateParker = 'DeactivateParker',\r\n ActivateParker = 'ActivateParker',\r\n UnlinkParker = 'UnlinkParker',\r\n ResendLink = 'ResendLink',\r\n ReplaceSubscription = 'ReplaceSubscription',\r\n RecalculateParkingSessions = 'RecalculateParkingSessions',\r\n AdjustSubscriptions = 'AdjustSubscriptions',\r\n AddSubscriptionSet = 'AddSubscriptionSet',\r\n}\r\n","import { ParkerClient, ParkerDTO, SetParkerStatusDTO } from \"src/app/base/models/models.swagger.generated\";\r\nimport { ParkerFunctionExecutor } from \"./parker-function-executor.class\";\r\nimport { TranslateService } from \"@ngx-translate/core\";\r\nimport { ParkerInfo } from \"../parker-execution-status\";\r\nimport { Observable, map, of } from \"rxjs\";\r\n\r\nexport class SetStatusExecutor extends ParkerFunctionExecutor {\r\n private _activeStatusToChange: boolean;\r\n\r\n constructor(numTotalRecordsToWorkOn: number, activeStatusToChange: boolean, private translateService: TranslateService, private parkerClient: ParkerClient) {\r\n super(numTotalRecordsToWorkOn);\r\n this._activeStatusToChange = activeStatusToChange;\r\n }\r\n\r\n protected prepare(): Observable {\r\n return of(null); // nothing to prepare\r\n }\r\n\r\n protected executeFunctionOnParker(parker: ParkerDTO): Observable {\r\n return this.parkerClient.setParkerStatus(new SetParkerStatusDTO({ id: parker.id, active: this._activeStatusToChange })).pipe(map(parker => parker.id));\r\n }\r\n\r\n protected preFilterParkersAndUpdateExecutionStatus(parkers: ParkerDTO[]): ParkerDTO[] {\r\n var parkersToSetStatus: ParkerDTO[] = [];\r\n parkers?.forEach(parker => {\r\n if (this._activeStatusToChange === false && !parker.active) {\r\n this.executionStatus.push({\r\n status: 'warning',\r\n message: this.translateService.instant('i18n.domain.parker-administration.overview.function-dialog.function-status-dialog.message-parker-not-active'),\r\n parkerInfo: new ParkerInfo(parker)\r\n });\r\n }\r\n else if (this._activeStatusToChange === true && parker.active) {\r\n this.executionStatus.push({\r\n status: 'warning',\r\n message: this.translateService.instant('i18n.domain.parker-administration.overview.function-dialog.function-status-dialog.message-parker-already-active'),\r\n parkerInfo: new ParkerInfo(parker)\r\n });\r\n }\r\n else {\r\n parkersToSetStatus.push(parker);\r\n }\r\n });\r\n return parkersToSetStatus;\r\n }\r\n}\r\n","import { Observable, map } from \"rxjs\";\r\nimport { ParkerFunctionExecutor } from \"./parker-function-executor.class\";\r\nimport { EndSubscriptionFormGroup } from \"../parker-function-end-subscription-form/parker-function-end-subscription-form.type\";\r\nimport { ParkerClient, ParkerDTO, ParkingSubscriptionClient } from \"src/app/base/models/models.swagger.generated\";\r\nimport { DateTime } from \"luxon\";\r\nimport { TranslateService } from \"@ngx-translate/core\";\r\nimport { ParkerInfo } from \"../parker-execution-status\";\r\nimport { UpdateParkerUtil } from \"./update-parker.util\";\r\n\r\nexport class EndSubscriptionExecutor extends ParkerFunctionExecutor {\r\n private validTo: DateTime;\r\n\r\n constructor(numTotalRecordsToWorkOn: number,\r\n private subscriptionEndingForm: EndSubscriptionFormGroup,\r\n private parkingSubscriptionClient: ParkingSubscriptionClient,\r\n private parkerClient: ParkerClient,\r\n private translateService: TranslateService) {\r\n super(numTotalRecordsToWorkOn);\r\n }\r\n\r\n protected prepare(): Observable {\r\n return this.parkingSubscriptionClient.getParkingSubscription(this.subscriptionEndingForm.controls.subscriptionId.value).pipe(map(sub => {\r\n this.validTo = DateTime.fromJSDate(this.subscriptionEndingForm.controls.validTo.value ?? new Date());\r\n if (this.validTo < DateTime.now()) {\r\n this.validTo = DateTime.now();\r\n }\r\n }));\r\n }\r\n\r\n protected executeFunctionOnParker(parker: ParkerDTO): Observable {\r\n const updateParkerDTO = UpdateParkerUtil.createUpdateParkerDTO(parker);\r\n return this.parkerClient.updateParker(updateParkerDTO).pipe(map(parker => parker.id));\r\n }\r\n\r\n protected preFilterParkersAndUpdateExecutionStatus(parkers: ParkerDTO[]): ParkerDTO[] {\r\n const parkersToUpdate: ParkerDTO[] = [];\r\n const subscriptionId = this.subscriptionEndingForm.controls.subscriptionId.value;\r\n parkers?.forEach(parker => {\r\n if (parker.parkerSubscriptionAssignments?.some(a => a.subscription.id === subscriptionId)) {\r\n const subscriptionAssignmentsToKeep = [];\r\n parker.parkerSubscriptionAssignments.forEach(a => {\r\n if (a.subscription.id === subscriptionId) {\r\n if (a.validTo != null && a.validTo < this.validTo) {\r\n // subscription ends before the form's valid to date -> no change needed\r\n subscriptionAssignmentsToKeep.push(a);\r\n return;\r\n }\r\n a.validTo = this.validTo;\r\n if (a.validFrom <= this.validTo) {\r\n // subscriptoin assignments starting before the form's valid to date are kept others deleted\r\n subscriptionAssignmentsToKeep.push(a);\r\n }\r\n } else {\r\n subscriptionAssignmentsToKeep.push(a);\r\n }\r\n });\r\n parker.parkerSubscriptionAssignments = subscriptionAssignmentsToKeep;\r\n parkersToUpdate.push(parker);\r\n }\r\n else {\r\n this.executionStatus.push({\r\n status: 'warning',\r\n message: this.translateService.instant('i18n.domain.parker-administration.overview.function-dialog.function-status-dialog.message-parker-subscription-not-assigned'),\r\n parkerInfo: new ParkerInfo(parker)\r\n });\r\n }\r\n });\r\n return parkersToUpdate;\r\n }\r\n}\r\n","import { DateRangeParameterDTO, GetParkingSessionIdsForParkerDTO, ParkerRegistrationClient } from './../../../../../base/models/models.swagger.generated';\r\nimport { Observable, catchError, forkJoin, map, of, switchMap, tap } from \"rxjs\";\r\nimport { ParkerFunctionExecutor } from \"./parker-function-executor.class\";\r\nimport { ParkerClient, ParkerDTO, ParkingClient, UpdateParkerSubscriptionAssignmentDTO } from \"src/app/base/models/models.swagger.generated\";\r\nimport { ReplaceSubscriptionFormGroup } from \"../parker-function-replace-subscription-form/parker-function-replace-subscription-form.type\";\r\nimport { DateTime } from \"luxon\";\r\nimport { UpdateParkerUtil } from \"./update-parker.util\";\r\nimport { ParkerInfo } from '../parker-execution-status';\r\n\r\nexport class ReplaceSubscriptionExecutor extends ParkerFunctionExecutor {\r\n private validFrom: DateTime;\r\n private validTo: DateTime;\r\n\r\n constructor(numTotalRecordsToWorkOn: number,\r\n private subscriptionReplacementForm: ReplaceSubscriptionFormGroup,\r\n private parkerClient: ParkerClient,\r\n private parkingClient: ParkingClient,\r\n private parkerRegistrationClient: ParkerRegistrationClient) {\r\n super(numTotalRecordsToWorkOn);\r\n }\r\n\r\n protected prepare(): Observable {\r\n this.validFrom = DateTime.fromJSDate(this.subscriptionReplacementForm.value.validFrom ?? new Date());\r\n this.validTo = this.subscriptionReplacementForm.value.validTo ? DateTime.fromJSDate(this.subscriptionReplacementForm.value.validTo) : null;\r\n return of(null); // nothing more to prepare\r\n }\r\n\r\n protected executeFunctionOnParker(parker: ParkerDTO): Observable {\r\n const oldSubscriptionId = this.subscriptionReplacementForm.controls.oldSubscriptionId.value;\r\n const newSubscriptionId = this.subscriptionReplacementForm.controls.newSubscriptionId.value;\r\n var newSubscriptionExists = false;\r\n parker.parkerSubscriptionAssignments.forEach(a => {\r\n if (a.subscription.id === oldSubscriptionId) {\r\n // if the assignment is active and valid as of now or in the future, then set the end date to the start date of the form\r\n if (a.active && (!a.validTo || a.validTo >= DateTime.now())) {\r\n a.validTo = this.validFrom;\r\n }\r\n }\r\n else if (a.subscription.id === newSubscriptionId) {\r\n // if the assignment is active and valid as of now or in the future, then set the start date and end date of the form\r\n if (a.active && (!a.validTo || a.validTo >= DateTime.now())) {\r\n a.validFrom = this.validFrom;\r\n a.validTo = this.validTo;\r\n newSubscriptionExists = true;\r\n }\r\n }\r\n });\r\n const updateParker = UpdateParkerUtil.createUpdateParkerDTO(parker);\r\n if (!newSubscriptionExists) {\r\n var subscriptionAssignment = new UpdateParkerSubscriptionAssignmentDTO({\r\n active: true,\r\n validFrom: this.validFrom,\r\n validTo: this.validTo,\r\n subscriptionId: newSubscriptionId,\r\n id: 0,\r\n isFavorite: false\r\n });\r\n updateParker.parkerSubscriptionAssignments.push(subscriptionAssignment);\r\n }\r\n return this.parkerClient.updateParker(updateParker).pipe(\r\n switchMap((parker) => {\r\n\r\n if (this.subscriptionReplacementForm.controls.doRecalcSessions.value) {\r\n return this.recalculateSessions(parker, oldSubscriptionId, newSubscriptionId);\r\n } else {\r\n return of(parker.id);\r\n }\r\n }));\r\n }\r\n\r\n public recalculateSessions(parker: ParkerDTO, oldSubscriptionId: number, newSubscriptionId: number): Observable {\r\n const dto = new GetParkingSessionIdsForParkerDTO({\r\n clientId: parker.clientId,\r\n parkerId: parker.id,\r\n subscriptionId: oldSubscriptionId,\r\n dateRange: new DateRangeParameterDTO({startDate: (this.validFrom ?? DateTime.now()).toISO(), endDate: (this.validTo ?? DateTime.now()).toISO()})\r\n });\r\n\r\n return this.parkingClient.getParkingSessionIdsForParker(dto).pipe(\r\n switchMap((sessionInfos) => {\r\n const parkerInfo = new ParkerInfo(parker);\r\n if (sessionInfos.length > 0) {\r\n return forkJoin([...sessionInfos.map(sessionInfo => this.parkerRegistrationClient.recalculateParkingSession(sessionInfo.id, newSubscriptionId)\r\n .pipe(\r\n tap(() => {\r\n this.progressInfo.incrementIteration();\r\n }),\r\n catchError(error => {\r\n this.progressInfo.incrementIteration();\r\n this.executionStatus.push({\r\n status: 'error',\r\n message: error.message,\r\n parkerInfo\r\n });\r\n return of(null);\r\n })\r\n ))]).pipe(map(() => parker));\r\n }\r\n return of(parker);\r\n }),\r\n map(parker => parker.id)\r\n );\r\n }\r\n\r\n protected preFilterParkersAndUpdateExecutionStatus(parkers: ParkerDTO[]): ParkerDTO[] {\r\n return parkers;\r\n }\r\n}\r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { AbstractControl, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';\r\nimport { FilterDTO, FilterOperator, ParkingSubscriptionClient, ParkingSubscriptionDTO, ParkingSubscriptionType, SortDirection } from 'src/app/base/models/models.swagger.generated';\r\nimport { DropDownConstantsFactory, StandardDropdownItem } from 'src/app/base/shared/syncfusion/dropdown-constants-factory';\r\nimport { ReplaceSubscriptionFormGroup } from './parker-function-replace-subscription-form.type';\r\nimport { CustomValidatorsFactory } from 'src/app/base/shared/validators/custom-validators-factory';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { DateTimePickerModule } from '@syncfusion/ej2-angular-calendars';\r\nimport { NgClass } from '@angular/common';\r\nimport { YesNoGroupButtonComponent } from '../../../../../base/shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { CheckBoxModule } from '@syncfusion/ej2-angular-buttons';\r\nimport { AppErrorMessagesComponent } from '../../../../../base/error-messages/app-error-messages.component';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\n\r\n@Component({\r\n selector: 'app-parker-function-replace-subscription-form',\r\n templateUrl: './parker-function-replace-subscription-form.component.html',\r\n styleUrls: ['./parker-function-replace-subscription-form.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, DropDownListModule, AppErrorMessagesComponent, CheckBoxModule, YesNoGroupButtonComponent, FormsModule, NgClass, DateTimePickerModule, TranslateModule]\r\n})\r\nexport class ParkerFunctionReplaceSubscriptionFormComponent implements OnInit {\r\n @Input() public parkerSubscriptionForm: ReplaceSubscriptionFormGroup;\r\n @Input() public clientId: number;\r\n\r\n public dropdownSettings = DropDownConstantsFactory.createStandardClientDropdownSettings();\r\n public oldSubscriptionsDropdownValues: StandardDropdownItem[] = [];\r\n public newSubscriptionsDropdownValues: StandardDropdownItem[] = [];\r\n public isFromDateImmediate = false;\r\n public isToDateImmediate = false;\r\n\r\n public allSubscriptions: ParkingSubscriptionDTO[] = [];\r\n constructor(private parkingSubscriptionClient: ParkingSubscriptionClient) {\r\n }\r\n\r\n ngOnInit() {\r\n this.isFromDateImmediate = this.parkerSubscriptionForm.value.validFrom === null;\r\n this.handleDateField(this.isFromDateImmediate, this.parkerSubscriptionForm.controls.validFrom);\r\n this.isToDateImmediate = this.parkerSubscriptionForm.value.validTo === null;\r\n this.handleDateField(this.isToDateImmediate, this.parkerSubscriptionForm.controls.validTo, this.parkerSubscriptionForm.controls.validFrom);\r\n\r\n this.parkerSubscriptionForm.controls.validFrom.valueChanges.subscribe((value) => {\r\n this.parkerSubscriptionForm.controls.validTo?.updateValueAndValidity();\r\n });\r\n\r\n const filters = [\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'Active',\r\n operator: FilterOperator.Equal,\r\n value: 'true'\r\n }),\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'Type',\r\n operator: FilterOperator.NotEqual,\r\n value: ParkingSubscriptionType.ForeignParkerSubscription.toString()\r\n })\r\n ];\r\n\r\n this.parkingSubscriptionClient.searchParkingSubscriptions(this.clientId, filters, 0, 0, 'Name', SortDirection.Ascending)\r\n .subscribe(res => {\r\n this.allSubscriptions = res.items;\r\n this.oldSubscriptionsDropdownValues = [];\r\n this.newSubscriptionsDropdownValues = [];\r\n this.allSubscriptions?.forEach(s => {\r\n let label = s.name;\r\n if (s.description) {\r\n label += ', ' + s.description;\r\n }\r\n\r\n this.oldSubscriptionsDropdownValues.push({ name: label, id: s.id });\r\n if (s.assignable) {\r\n this.newSubscriptionsDropdownValues.push({ name: label, id: s.id });\r\n }\r\n });\r\n });\r\n }\r\n\r\n public handleDateField(isDateImmediate: boolean, control: AbstractControl, refControl: AbstractControl = null): void {\r\n if (isDateImmediate) {\r\n control?.disable();\r\n control?.setValue(null, { emitEvent: false });\r\n control?.setValidators([]);\r\n } else {\r\n control?.enable();\r\n control?.setValidators([Validators.required]);\r\n if (refControl) {\r\n control?.setValidators([Validators.required, CustomValidatorsFactory.validateDateNotBeforeDate(this.parkerSubscriptionForm.controls.validFrom)]);\r\n }\r\n }\r\n\r\n control?.updateValueAndValidity();\r\n }\r\n\r\n public fromDateImmediateChanged(): void {\r\n this.handleDateField(this.isFromDateImmediate, this.parkerSubscriptionForm.controls.validFrom);\r\n this.handleDateField(this.isToDateImmediate, this.parkerSubscriptionForm.controls.validTo, this.parkerSubscriptionForm.controls.validFrom);\r\n }\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';\r\nimport { FilterDTO, FilterOperator, ParkingSubscriptionClient, ParkingSubscriptionDTO, ParkingSubscriptionType, SortDirection } from 'src/app/base/models/models.swagger.generated';\r\nimport { DropDownConstantsFactory, StandardDropdownItem } from 'src/app/base/shared/syncfusion/dropdown-constants-factory';\r\nimport { CustomValidatorsFactory } from 'src/app/base/shared/validators/custom-validators-factory';\r\nimport { EndSubscriptionFormGroup } from './parker-function-end-subscription-form.type';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { DateTimePickerModule } from '@syncfusion/ej2-angular-calendars';\r\nimport { NgClass } from '@angular/common';\r\nimport { YesNoGroupButtonComponent } from '../../../../../base/shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { AppErrorMessagesComponent } from '../../../../../base/error-messages/app-error-messages.component';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\n\r\n@Component({\r\n selector: 'app-parker-function-end-subscription-form',\r\n templateUrl: './parker-function-end-subscription-form.component.html',\r\n styleUrls: ['./parker-function-end-subscription-form.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, DropDownListModule, AppErrorMessagesComponent, YesNoGroupButtonComponent, FormsModule, NgClass, DateTimePickerModule, TranslateModule]\r\n})\r\nexport class ParkerFunctionEndSubscriptionFormComponent implements OnInit {\r\n\r\n @Input() public parkerSubscriptionForm: EndSubscriptionFormGroup;\r\n @Input() public clientId: number;\r\n\r\n public dropdownSettings = DropDownConstantsFactory.createStandardClientDropdownSettings();\r\n public subscriptionsDropdownValues: StandardDropdownItem[] = [];\r\n public isToDateImmediate = false;\r\n public minDate = new Date();\r\n\r\n public allSubscriptions: ParkingSubscriptionDTO[] = [];\r\n constructor(private parkingSubscriptionClient: ParkingSubscriptionClient) {\r\n }\r\n\r\n ngOnInit() {\r\n this.isToDateImmediate = this.parkerSubscriptionForm.value.validTo === null;\r\n this.handleDateField(this.isToDateImmediate);\r\n\r\n const filters = [\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'Active',\r\n operator: FilterOperator.Equal,\r\n value: 'true'\r\n }),\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'Type',\r\n operator: FilterOperator.NotEqual,\r\n value: ParkingSubscriptionType.ForeignParkerSubscription.toString()\r\n })\r\n ];\r\n\r\n this.parkingSubscriptionClient.searchParkingSubscriptions(this.clientId, filters, 0, 0, 'Name', SortDirection.Ascending)\r\n .subscribe(res => {\r\n this.allSubscriptions = res.items;\r\n this.subscriptionsDropdownValues = res.items.map(s => {\r\n let label = s.name;\r\n if (s.description) {\r\n label += ', ' + s.description;\r\n }\r\n\r\n return {name: label, id: s.id};\r\n });\r\n });\r\n }\r\n\r\n public handleDateField(isDateImmediate: boolean): void {\r\n if (isDateImmediate) {\r\n this.parkerSubscriptionForm.controls.validTo.disable();\r\n this.parkerSubscriptionForm.controls.validTo.setValue(null, {emitEvent: false});\r\n this.parkerSubscriptionForm.controls.validTo.setValidators([]);\r\n } else {\r\n this.parkerSubscriptionForm.controls.validTo.enable();\r\n this.parkerSubscriptionForm.controls.validTo.setValidators([Validators.required, CustomValidatorsFactory.validateDateNotInPast()]);\r\n }\r\n\r\n this.parkerSubscriptionForm.controls.validTo.updateValueAndValidity();\r\n }\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n","import { Component, Input, OnDestroy, OnInit, ViewChild } from '@angular/core';\r\nimport { AbstractControl, Validators, ReactiveFormsModule } from '@angular/forms';\r\nimport {\r\n FilterDTO,\r\n FilterOperator,\r\n IConfigBasedStructuralEntryDTO,\r\n ParkingSubscriptionClient,\r\n ParkingSubscriptionDTO,\r\n ParkingSubscriptionType,\r\n SortDirection,\r\n} from '../../../../../base/models/models.swagger.generated';\r\nimport { DropDownConstantsFactory } from '../../../../../base/shared/syncfusion/dropdown-constants-factory';\r\nimport { SubscriptionAssignmentFormGroup } from './edit-parker-edit-subscription-list-form.type';\r\nimport { CustomValidatorsFactory } from 'src/app/base/shared/validators/custom-validators-factory';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { DateTimePickerModule } from '@syncfusion/ej2-angular-calendars';\r\nimport { NgClass, NgIf } from '@angular/common';\r\nimport { YesNoGroupButtonComponent } from '../../../../../base/shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { AppErrorMessagesComponent } from '../../../../../base/error-messages/app-error-messages.component';\r\nimport { DropDownList, DropDownListComponent, DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { Subscription } from 'rxjs';\r\n\r\nexport interface IParkingSubscriptionSet extends IConfigBasedStructuralEntryDTO {\r\n subscriptions: ParkingSubscriptionDTO[];\r\n}\r\n\r\n@Component({\r\n selector: 'app-edit-parker-edit-subscription-list-form',\r\n templateUrl: './edit-parker-edit-subscription-list-form.component.html',\r\n styleUrls: ['./edit-parker-edit-subscription-list-form.component.scss'],\r\n standalone: true,\r\n imports: [\r\n ReactiveFormsModule,\r\n DropDownListModule,\r\n AppErrorMessagesComponent,\r\n YesNoGroupButtonComponent,\r\n NgClass,\r\n DateTimePickerModule,\r\n NgIf,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class EditParkerEditSubscriptionListFormComponent implements OnInit, OnDestroy {\r\n @ViewChild(DropDownListComponent) public dropDownList: DropDownListComponent;\r\n\r\n @Input() public parkerSubscriptionForm: SubscriptionAssignmentFormGroup;\r\n @Input() public clientId: number;\r\n @Input() public allowDateSelectionInPast: boolean = false;\r\n @Input() public useSubscriptionSets: boolean = false;\r\n\r\n public dropdownSettings = DropDownConstantsFactory.createStandardClientDropdownSettings();\r\n public subscriptionsDropdownValues = [];\r\n public allSubscriptions: ParkingSubscriptionDTO[] = [];\r\n public allSubscriptionSets: IParkingSubscriptionSet[] = [];\r\n public minDate = null;\r\n\r\n private _subscriptions: Subscription = new Subscription();\r\n\r\n constructor(private parkingSubscriptionClient: ParkingSubscriptionClient) {\r\n }\r\n\r\n public get isAdd(): boolean {\r\n return !this.parkerSubscriptionForm.value.id;\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.minDate = null;\r\n if (this.isAdd) {\r\n this.parkerSubscriptionForm.controls.active.setValue(true);\r\n if (!this.allowDateSelectionInPast) {\r\n this.minDate = new Date();\r\n }\r\n }\r\n\r\n this.handleDateField(this.parkerSubscriptionForm.controls.isValidImmediately.value, this.parkerSubscriptionForm.controls.validFrom, false);\r\n this.handleDateField(this.parkerSubscriptionForm.controls.isValidOpenEnd.value, this.parkerSubscriptionForm.controls.validTo, true);\r\n\r\n this._subscriptions.add(this.parkerSubscriptionForm.controls.isValidImmediately.valueChanges.subscribe((value) => {\r\n this.handleDateField(value, this.parkerSubscriptionForm.controls.validFrom, false);\r\n }));\r\n\r\n this._subscriptions.add(this.parkerSubscriptionForm.controls.isValidOpenEnd.valueChanges.subscribe((value) => {\r\n this.handleDateField(value, this.parkerSubscriptionForm.controls.validTo, true);\r\n }));\r\n\r\n this._subscriptions.add(this.parkerSubscriptionForm.controls.subscriptionId.valueChanges.subscribe((value) => {\r\n if (this.useSubscriptionSets) {\r\n const set = this.allSubscriptionSets.find(s => s.id === value);\r\n this.parkerSubscriptionForm.controls.selectedSubscriptions.setValue(set?.subscriptions ?? []);\r\n } else {\r\n this.parkerSubscriptionForm.controls.selectedSubscriptions.setValue(this.allSubscriptions.filter(sub => sub.id === value));\r\n }\r\n }));\r\n\r\n const filters = [\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'Active',\r\n operator: FilterOperator.Equal,\r\n value: 'true'\r\n }),\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'Assignable',\r\n operator: FilterOperator.Equal,\r\n value: 'true',\r\n }),\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'Type',\r\n operator: FilterOperator.NotEqual,\r\n value: ParkingSubscriptionType.ForeignParkerSubscription.toString()\r\n })\r\n ];\r\n\r\n this.parkingSubscriptionClient.searchParkingSubscriptions(this.clientId, filters, 0, 0, 'Name', SortDirection.Ascending)\r\n .subscribe(res => {\r\n this.allSubscriptions = res.items;\r\n\r\n if (this.isAdd && this.useSubscriptionSets) {\r\n this.allSubscriptionSets = this.createSubscriptionSetsFromSubscriptions(this.allSubscriptions);\r\n\r\n this.subscriptionsDropdownValues = this.allSubscriptionSets.map(s => {\r\n return {name: s.name, id: s.id};\r\n });\r\n this.dropDownList.refresh();\r\n return;\r\n }\r\n\r\n // when subscription is not valid, remove value and show error\r\n if (!this.allSubscriptions.find(sub => sub.id === this.parkerSubscriptionForm.controls.subscriptionId.value) && !this.isAdd) {\r\n this.parkerSubscriptionForm.controls.subscriptionId.setValue(null);\r\n this.parkerSubscriptionForm.controls.subscriptionId.setErrors({required: true});\r\n this.parkerSubscriptionForm.controls.subscriptionId.markAsTouched();\r\n }\r\n\r\n this.subscriptionsDropdownValues = res.items.map(s => {\r\n let label = s.name;\r\n if (s.description) {\r\n label += ', ' + s.description;\r\n }\r\n\r\n return {name: label, id: s.id};\r\n });\r\n });\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this._subscriptions.unsubscribe();\r\n }\r\n\r\n public handleDateField(disable: boolean, control: AbstractControl, includeDateBeforeValidator: boolean): void {\r\n if (disable) {\r\n control.disable();\r\n control.setValue(null, {emitEvent: false});\r\n control.setValidators([]);\r\n } else {\r\n control.enable();\r\n const validators = [Validators.required];\r\n if (this.parkerSubscriptionForm.controls.id.value <= 0 && !this.allowDateSelectionInPast) {\r\n validators.push(CustomValidatorsFactory.validateDateNotInPast());\r\n }\r\n if (includeDateBeforeValidator) {\r\n validators.push(CustomValidatorsFactory.validateDateNotBeforeDate(this.parkerSubscriptionForm.controls.validFrom));\r\n }\r\n control.setValidators(validators);\r\n }\r\n\r\n control.updateValueAndValidity();\r\n }\r\n\r\n private createSubscriptionSetsFromSubscriptions(subscriptions: ParkingSubscriptionDTO[]): IParkingSubscriptionSet[] {\r\n const structuralEntryMap = new Map();\r\n subscriptions.forEach(sub => {\r\n sub.structuralEntries?.forEach(entry => {\r\n if (!structuralEntryMap.has(entry.id)) {\r\n structuralEntryMap.set(entry.id, { ...entry, subscriptions: [] });\r\n }\r\n structuralEntryMap.get(entry.id).subscriptions.push(sub);\r\n });\r\n });\r\n const structuralEntries = Array.from(structuralEntryMap.values());\r\n\r\n // we iterate through all subscription sets and add subscriptions to the parents as well by still using the map\r\n structuralEntries.forEach(e => {\r\n const subscriptions = e.subscriptions;\r\n let entry = e;\r\n while (entry?.parentId && structuralEntryMap.has(entry.parentId)) {\r\n entry = structuralEntryMap.get(entry.parentId);\r\n entry.subscriptions.push(...subscriptions);\r\n // Remove duplicate subscriptions\r\n const uniqueSubsMap = new Map();\r\n entry.subscriptions.forEach(sub => {\r\n uniqueSubsMap.set(sub.id, sub);\r\n });\r\n entry.subscriptions = Array.from(uniqueSubsMap.values());\r\n entry.subscriptions = entry.subscriptions.sort((a, b) => a.name.localeCompare(b.name));\r\n }\r\n });\r\n\r\n return structuralEntries.filter(e => e.isSubscriptionSet).sort((a, b) => a.name.localeCompare(b.name));\r\n }\r\n\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n\r\n \r\n
    \r\n
    \r\n
    \r\n","import { DateRangeParameterDTO, GetParkingSessionIdsForParkerDTO, ParkerRegistrationClient } from '../../../../../base/models/models.swagger.generated';\r\nimport { Observable, catchError, forkJoin, map, of, switchMap, tap } from \"rxjs\";\r\nimport { ParkerFunctionExecutor } from \"./parker-function-executor.class\";\r\nimport { ParkerDTO, ParkingClient } from \"src/app/base/models/models.swagger.generated\";\r\nimport { DateTime } from \"luxon\";\r\nimport { ParkerInfo } from '../parker-execution-status';\r\nimport { FromUntilFormGroup } from '../parker-function-from-until-form/parker-function-from-until-form.types';\r\n\r\nexport class RecalculateParkingSessionsExecutor extends ParkerFunctionExecutor {\r\n private from: DateTime;\r\n private until: DateTime;\r\n\r\n constructor(numTotalRecordsToWorkOn: number,\r\n private fromUntilForm: FromUntilFormGroup,\r\n private parkingClient: ParkingClient,\r\n private parkerRegistrationClient: ParkerRegistrationClient) {\r\n super(numTotalRecordsToWorkOn);\r\n }\r\n\r\n protected prepare(): Observable {\r\n const today = DateTime.now().startOf('day');\r\n this.from = this.fromUntilForm.value.from ? DateTime.fromJSDate(this.fromUntilForm.value.from) : today;\r\n this.until = this.fromUntilForm.value.until ? DateTime.fromJSDate(this.fromUntilForm.value.until) : today;\r\n return of(null); // nothing more to prepare\r\n }\r\n\r\n protected executeFunctionOnParker(parker: ParkerDTO): Observable {\r\n return this.recalculateSessions(parker);\r\n }\r\n\r\n public recalculateSessions(parker: ParkerDTO): Observable {\r\n const dto = new GetParkingSessionIdsForParkerDTO({\r\n clientId: parker.clientId,\r\n parkerId: parker.id,\r\n dateRange: new DateRangeParameterDTO({startDate: this.from?.toISO(), endDate: this.until?.toISO()})\r\n });\r\n\r\n return this.parkingClient.getParkingSessionIdsForParker(dto).pipe(\r\n switchMap((sessionInfos) => {\r\n const parkerInfo = new ParkerInfo(parker);\r\n if (sessionInfos.length > 0) {\r\n return forkJoin([...sessionInfos.map(sessionInfo => this.parkerRegistrationClient.recalculateParkingSession(sessionInfo.id, undefined)\r\n .pipe(\r\n tap(() => {\r\n this.progressInfo.incrementIteration();\r\n }),\r\n catchError(error => {\r\n this.progressInfo.incrementIteration();\r\n this.executionStatus.push({\r\n status: 'error',\r\n message: error.message,\r\n parkerInfo\r\n });\r\n return of(null);\r\n })\r\n ))]).pipe(map(() => parker));\r\n }\r\n return of(parker);\r\n }),\r\n map(parker => parker.id)\r\n );\r\n }\r\n\r\n protected preFilterParkersAndUpdateExecutionStatus(parkers: ParkerDTO[]): ParkerDTO[] {\r\n return parkers;\r\n }\r\n}\r\n","import { NgClass } from '@angular/common';\r\nimport { Component, Input, OnInit } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { DateTimePickerModule } from '@syncfusion/ej2-angular-calendars';\r\nimport { AppErrorMessagesComponent } from 'src/app/base/error-messages/app-error-messages.component';\r\nimport { FromUntilFormGroup } from './parker-function-from-until-form.types';\r\n\r\n@Component({\r\n selector: 'app-parker-function-from-until-form',\r\n templateUrl: './parker-function-from-until-form.component.html',\r\n styleUrls: ['./parker-function-from-until-form.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, AppErrorMessagesComponent, NgClass, DateTimePickerModule, TranslateModule]\r\n})\r\nexport class ParkerFunctionFromUntilFormComponent implements OnInit {\r\n @Input() public fromUntilForm: FromUntilFormGroup;\r\n\r\n public maxDate = new Date();\r\n constructor() { }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n","import { Observable, map, of, throwError } from \"rxjs\";\r\nimport { ParkerFunctionExecutor } from \"./parker-function-executor.class\";\r\nimport { ParkerClient, ParkerDTO, ParkingSubscriptionClient } from \"src/app/base/models/models.swagger.generated\";\r\nimport { SubscriptionAssignmentFormGroup } from \"../../edit-parker-form/edit-parker-edit-subscription-list-form/edit-parker-edit-subscription-list-form.type\";\r\nimport { DateTime } from \"luxon\";\r\nimport { UpdateParkerUtil } from \"./update-parker.util\";\r\n\r\nexport class AdjustSubscriptionExecutor extends ParkerFunctionExecutor {\r\n private now: DateTime;\r\n private validFrom: DateTime;\r\n private validTo: DateTime;\r\n\r\n constructor(numTotalRecordsToWorkOn: number, private subscriptionAssignmentForm: SubscriptionAssignmentFormGroup, private parkingSubscriptionClient: ParkingSubscriptionClient, private parkerClient: ParkerClient) {\r\n super(numTotalRecordsToWorkOn);\r\n }\r\n\r\n protected prepare(): Observable {\r\n return this.parkingSubscriptionClient.getParkingSubscription(this.subscriptionAssignmentForm.controls.subscriptionId.value).pipe(map(sub => {\r\n this.now = DateTime.now();\r\n this.validFrom = this.subscriptionAssignmentForm.controls.validFrom.value ? DateTime.fromJSDate(this.subscriptionAssignmentForm.controls.validFrom.value) : this.now;\r\n this.validTo = this.subscriptionAssignmentForm.controls.validTo.value ? DateTime.fromJSDate(this.subscriptionAssignmentForm.controls.validTo.value) : null;\r\n if (this.validTo && this.validTo < this.validFrom) {\r\n this.validTo = this.validFrom;\r\n }\r\n }));\r\n }\r\n\r\n protected executeFunctionOnParker(parker: ParkerDTO): Observable {\r\n const subscriptionId = this.subscriptionAssignmentForm.controls.subscriptionId.value;\r\n const updateData = UpdateParkerUtil.createUpdateParkerDTO(parker);\r\n let existingSubscriptionAssignments = updateData.parkerSubscriptionAssignments?.filter(a => a.subscriptionId === subscriptionId && (a.validTo == null || a.validTo > this.validFrom)) ?? [];\r\n if (this.validTo != null) {\r\n existingSubscriptionAssignments = existingSubscriptionAssignments.filter(a => a.validFrom < this.validTo);\r\n }\r\n\r\n if (existingSubscriptionAssignments.length > 1) {\r\n return throwError(() => {return {message: 'Multiple intersecting subscriptions found!'}});\r\n }\r\n\r\n if (existingSubscriptionAssignments.length < 1) {\r\n return of(parker.id);\r\n }\r\n\r\n existingSubscriptionAssignments[0].validFrom = this.validFrom;\r\n existingSubscriptionAssignments[0].validTo = this.validTo;\r\n\r\n return this.parkerClient.updateParker(updateData).pipe(map(parker => parker.id));\r\n }\r\n\r\n protected preFilterParkersAndUpdateExecutionStatus(parkers: ParkerDTO[]): ParkerDTO[] {\r\n return parkers; // nothing to filter\r\n }\r\n}\r\n","import { DateTime } from \"luxon\";\r\nimport { ParkerFunctionExecutor } from \"./parker-function-executor.class\";\r\nimport { SubscriptionAssignmentFormGroup } from \"../../edit-parker-form/edit-parker-edit-subscription-list-form/edit-parker-edit-subscription-list-form.type\";\r\nimport { map, Observable } from \"rxjs\";\r\nimport { ParkerClient, ParkerDTO, ParkingSubscriptionClient, UpdateParkerSubscriptionAssignmentDTO } from \"src/app/base/models/models.swagger.generated\";\r\nimport { UpdateParkerUtil } from \"./update-parker.util\";\r\n\r\nexport class AddSubscriptionSetExecutor extends ParkerFunctionExecutor {\r\n private now: DateTime;\r\n private validFrom: DateTime;\r\n private validTo: DateTime;\r\n\r\n constructor(numTotalRecordsToWorkOn: number, private subscriptionAssignmentForm: SubscriptionAssignmentFormGroup, private parkingSubscriptionClient: ParkingSubscriptionClient, private parkerClient: ParkerClient) {\r\n super(numTotalRecordsToWorkOn);\r\n }\r\n\r\n protected prepare(): Observable {\r\n return this.parkingSubscriptionClient.getParkingSubscription(this.subscriptionAssignmentForm.controls.subscriptionId.value).pipe(map(sub => {\r\n this.now = DateTime.now();\r\n this.validFrom = this.subscriptionAssignmentForm.controls.validFrom.value ? DateTime.fromJSDate(this.subscriptionAssignmentForm.controls.validFrom.value) : this.now;\r\n this.validTo = this.subscriptionAssignmentForm.controls.validTo.value ? DateTime.fromJSDate(this.subscriptionAssignmentForm.controls.validTo.value) : null;\r\n if (this.validTo && this.validTo < this.validFrom) {\r\n this.validTo = this.validFrom;\r\n }\r\n }));\r\n }\r\n\r\n protected executeFunctionOnParker(parker: ParkerDTO): Observable {\r\n const updateData = UpdateParkerUtil.createUpdateParkerDTO(parker);\r\n this.subscriptionAssignmentForm.controls.selectedSubscriptions.value.forEach(sub => {\r\n let subscriptionAssignment = new UpdateParkerSubscriptionAssignmentDTO({\r\n active: this.subscriptionAssignmentForm.value.active,\r\n validFrom: this.validFrom,\r\n validTo: this.validTo,\r\n subscriptionId: sub.id,\r\n id: 0,\r\n isFavorite: false\r\n });\r\n UpdateParkerUtil.addOrMergeSubscriptionAssignment(updateData, subscriptionAssignment, this.now);\r\n });\r\n return this.parkerClient.updateParker(updateData).pipe(map(parker => parker.id));\r\n }\r\n\r\n protected preFilterParkersAndUpdateExecutionStatus(parkers: ParkerDTO[]): ParkerDTO[] {\r\n return parkers; // nothing to filter\r\n }\r\n}\r\n","import { ResendLinkToParkerExecutor } from './parker-function-executor/resend-link-to-parker-executor.class';\r\nimport { UnlinkParkerExecutor } from './parker-function-executor/unlink-parker-executor.class';\r\nimport { AddSubscriptionExecutor } from './parker-function-executor/add-subscription-executor.class';\r\nimport { AfterViewChecked, ChangeDetectorRef, Component, EventEmitter, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { UntypedFormGroup, Validators, FormBuilder, ValidatorFn, AbstractControl } from '@angular/forms';\r\nimport { DialogComponent, DialogModule } from '@syncfusion/ej2-angular-popups';\r\nimport { ParkerFunction } from './parker-function';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { ListBoxComponent, ListBoxModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { PagedResultDTOOfParkerDTO, ParkerClient, ParkerRegistrationClient, ParkingClient, ParkingSubscriptionClient, ParkingSubscriptionDTO} from 'src/app/base/models/models.swagger.generated';\r\nimport { AnimationModel, ProgressBar, ProgressBarModule } from '@syncfusion/ej2-angular-progressbar';\r\nimport { Observable, Subscription} from 'rxjs';\r\nimport { GridComponent, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { IParkerExecutionStatus } from './parker-execution-status';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { CustomValidatorsFactory } from 'src/app/base/shared/validators/custom-validators-factory';\r\nimport { FunctionType } from './parker-function.types';\r\nimport { EndSubscriptionFormGroup, EndSubscriptionFormType } from './parker-function-end-subscription-form/parker-function-end-subscription-form.type';\r\nimport { ReplaceSubscriptionFormGroup, ReplaceSubscriptionFormType } from './parker-function-replace-subscription-form/parker-function-replace-subscription-form.type';\r\nimport { SubscriptionAssignmentFormGroup, SubscriptionAssignmentFormType } from '../edit-parker-form/edit-parker-edit-subscription-list-form/edit-parker-edit-subscription-list-form.type';\r\nimport { SetStatusExecutor } from './parker-function-executor/set-status-executor.class';\r\nimport { ParkerFunctionExecutor } from './parker-function-executor/parker-function-executor.class';\r\nimport { EndSubscriptionExecutor } from './parker-function-executor/end-subscription-executor.class';\r\nimport { ReplaceSubscriptionExecutor } from './parker-function-executor/replace-subscription-executor.class';\r\nimport { ParkerFunctionReplaceSubscriptionFormComponent } from './parker-function-replace-subscription-form/parker-function-replace-subscription-form.component';\r\nimport { ParkerFunctionEndSubscriptionFormComponent } from './parker-function-end-subscription-form/parker-function-end-subscription-form.component';\r\nimport { EditParkerEditSubscriptionListFormComponent } from '../edit-parker-form/edit-parker-edit-subscription-list-form/edit-parker-edit-subscription-list-form.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { RecalculateParkingSessionsExecutor } from './parker-function-executor/recalculate-executor.class';\r\nimport { ParkerFunctionFromUntilFormComponent } from './parker-function-from-until-form/parker-function-from-until-form.component';\r\nimport { FromUntilFormGroup, FromUntilFormType } from './parker-function-from-until-form/parker-function-from-until-form.types';\r\nimport { AdjustSubscriptionExecutor } from './parker-function-executor/adjust-subscription-executor.class';\r\nimport { AddSubscriptionSetExecutor } from './parker-function-executor/add-subscription-set-executor.class';\r\n\r\n@Component({\r\n selector: 'app-parker-function',\r\n templateUrl: './parker-function.component.html',\r\n styleUrls: ['./parker-function.component.scss'],\r\n standalone: true,\r\n imports: [DialogModule, ListBoxModule, NgIf, EditParkerEditSubscriptionListFormComponent, ParkerFunctionEndSubscriptionFormComponent, ParkerFunctionReplaceSubscriptionFormComponent, ParkerFunctionFromUntilFormComponent, ProgressBarModule, GridModule, TranslateModule]\r\n})\r\nexport class ParkerFunctionComponent implements OnInit, AfterViewChecked {\r\n @ViewChild('functionDialog')\r\n public functionDialog: DialogComponent;\r\n\r\n @ViewChild('functionListBox')\r\n public functionListBox: ListBoxComponent;\r\n\r\n @ViewChild('functionStatusDialog')\r\n public functionStatusDialog: DialogComponent;\r\n\r\n @ViewChild('functionStatus')\r\n public functionStatus: ProgressBar;\r\n\r\n @ViewChild('statusGrid')\r\n public statusGrid: GridComponent;\r\n\r\n @ViewChild('addSetForm')\r\n public addSetFormComponent: EditParkerEditSubscriptionListFormComponent;\r\n\r\n @Output() public functionExecuted = new EventEmitter();\r\n\r\n public numTotalRecordsToWorkOn: number = 0;\r\n public functionForm: UntypedFormGroup\r\n public functionType = FunctionType;\r\n public loadParkersPagedCallback: (skip: number, take: number) => Observable;\r\n\r\n public readonly functionList: ParkerFunction[] = [\r\n { type: FunctionType.AddSubscriptionSet, toolFunction: () => this.addSubscriptionSets() },\r\n { type: FunctionType.AddSubscriptions, toolFunction: () => this.addSubscriptions() },\r\n { type: FunctionType.EndSubscriptions, toolFunction: () => this.endSubscriptions() },\r\n { type: FunctionType.AdjustSubscriptions, toolFunction: () => this.adjustSubscriptions()},\r\n { type: FunctionType.DeactivateParker, toolFunction: () => this.deactivateParkers() },\r\n { type: FunctionType.ActivateParker, toolFunction: () => this.activateParkers() },\r\n { type: FunctionType.UnlinkParker, toolFunction: () => this.unlinkParkers() },\r\n { type: FunctionType.ResendLink, toolFunction: () => this.resendLinkToParkers() },\r\n { type: FunctionType.ReplaceSubscription, toolFunction: () => this.replaceSubscription() },\r\n { type: FunctionType.RecalculateParkingSessions, toolFunction: () => this.recalculateSessions()}\r\n ];\r\n\r\n public readonly fieldList: object = { text: \"type\", value: \"type\" };\r\n public subscriptionAssignmentForm: SubscriptionAssignmentFormGroup;\r\n public subscriptionEndingForm: EndSubscriptionFormGroup;\r\n public subscriptionReplacementForm: ReplaceSubscriptionFormGroup;\r\n public fromUntilForm: FromUntilFormGroup;\r\n\r\n public readonly animation: AnimationModel = { enable: true, duration: 500, delay: 0 };\r\n\r\n public get progressValue(): number {\r\n return this._executor?.progressInfo?.progressValue ?? 0;\r\n }\r\n\r\n public get actualExecutions(): number {\r\n return this._executor?.progressInfo?.actualIterations ?? 0;\r\n }\r\n\r\n public get segmentCount(): number {\r\n return this._executor?.progressInfo?.progressValueSegmentCount ?? 0;\r\n }\r\n\r\n public get executionStatus(): IParkerExecutionStatus[] {\r\n return this._executor?.executionStatus;\r\n }\r\n\r\n public get selectedFunction(): ParkerFunction {\r\n if (this.functionListBox?.value?.length > 0) {\r\n return this.functionList.find(f => f.type === this.functionListBox.value[0]);\r\n }\r\n return null;\r\n }\r\n\r\n public get clientId(): number {\r\n return this.clientService.selectedClient?.id;\r\n }\r\n\r\n private _executorSubscriptions = new Subscription();\r\n private _executor: ParkerFunctionExecutor;\r\n\r\n constructor(private clientService: ClientService,\r\n private fb: FormBuilder,\r\n private parkingSubscriptionClient: ParkingSubscriptionClient,\r\n private parkerClient: ParkerClient,\r\n private parkingClient: ParkingClient,\r\n private parkerRegistrationClient: ParkerRegistrationClient,\r\n public translateService: TranslateService,\r\n private cdr: ChangeDetectorRef,\r\n ) { }\r\n\r\n ngOnInit() {\r\n this.subscriptionAssignmentForm = this.fb.group({\r\n id: this.fb.control(null),\r\n subscriptionId: this.fb.control(null, [Validators.required]),\r\n active: this.fb.control(true),\r\n isValidImmediately: this.fb.control(true),\r\n validFrom: this.fb.control(null), // dates can be in the ast\r\n isValidOpenEnd: this.fb.control(true),\r\n validTo: this.fb.control(null), // dates can be in the past\r\n modifiedBy: this.fb.control(null),\r\n modifiedOn: this.fb.control(null),\r\n selectedSubscriptions: this.fb.control(null)\r\n });\r\n\r\n this.subscriptionEndingForm = this.fb.group({\r\n subscriptionId: this.fb.control(null, [Validators.required]),\r\n validTo: this.fb.control(null, [CustomValidatorsFactory.validateDateNotInPast()]),\r\n });\r\n\r\n this.subscriptionReplacementForm = this.fb.group({\r\n oldSubscriptionId: this.fb.control(null, [Validators.required]),\r\n newSubscriptionId: this.fb.control(null, [Validators.required, ParkerFunctionComponent.validateSubscriptionNotSameAsOld()]),\r\n validFrom: this.fb.control(null, [CustomValidatorsFactory.validateDateNotInPast()]),\r\n validTo: this.fb.control(null, [CustomValidatorsFactory.validateDateNotInPast()]),\r\n doRecalcSessions: this.fb.control(false),\r\n });\r\n this.subscriptionReplacementForm.controls.oldSubscriptionId.valueChanges.subscribe(() => {\r\n this.subscriptionReplacementForm.controls.newSubscriptionId.updateValueAndValidity();\r\n });\r\n\r\n this.fromUntilForm = this.fb.group({\r\n from: this.fb.control(null, [CustomValidatorsFactory.validateDateNotInFuture()]),\r\n until: this.fb.control(null),\r\n });\r\n this.fromUntilForm.controls.until.setValidators([CustomValidatorsFactory.validateDateNotInFuture(), CustomValidatorsFactory.validateDateNotBeforeDate(this.fromUntilForm.controls.from)]);\r\n }\r\n\r\n public ngAfterViewChecked(): void {\r\n this.cdr.detectChanges();\r\n }\r\n\r\n public onStatusDialogOpened() {\r\n // code was placed here to be able to call function status refresh before start executing the function\r\n this.functionStatus.refresh();\r\n if (this.numTotalRecordsToWorkOn <= 0 || this._executor == null) {\r\n this.handleNoData();\r\n return;\r\n }\r\n\r\n this._executorSubscriptions = new Subscription();\r\n this._executorSubscriptions.add(this._executor.executionStatusChanged.subscribe(() => {\r\n this.statusGrid.refresh();\r\n }));\r\n this._executorSubscriptions.add(this._executor.functionExecuted.subscribe(() => {\r\n this.functionExecuted.emit();\r\n this._executorSubscriptions.unsubscribe();\r\n }));\r\n this._executor.run(this.loadParkersPagedCallback);\r\n }\r\n\r\n public isTheFunctionSelected(functionName: string): boolean {\r\n return this.functionListBox?.value?.findIndex(v => v === functionName) >= 0;\r\n }\r\n\r\n public closeFunctionDialog() {\r\n this.functionDialog.hide();\r\n }\r\n\r\n public applyFunction() {\r\n if (this.selectedFunction) {\r\n this.selectedFunction.toolFunction();\r\n }\r\n }\r\n\r\n public openDialog(numTotalRecordsToWorkOn: number, loadParkersPagedCallback: (skip: number, take: number) => Observable) {\r\n this.numTotalRecordsToWorkOn = numTotalRecordsToWorkOn;\r\n this.loadParkersPagedCallback = loadParkersPagedCallback;\r\n this.functionDialog.show();\r\n }\r\n\r\n public showFunctionStatusDialog() {\r\n this.functionStatusDialog.show();\r\n }\r\n\r\n public closeStatusDialog() {\r\n this.functionStatusDialog.hide();\r\n this.functionDialog.hide();\r\n if (this._executor) {\r\n this._executor.cancelExecution();\r\n }\r\n }\r\n\r\n private handleNoData() {\r\n this.statusGrid.refresh();\r\n this.functionStatus.refresh();\r\n }\r\n\r\n private activateParkers(): void {\r\n this.setStatusOfParkers(true);\r\n }\r\n\r\n private deactivateParkers(): void {\r\n this.setStatusOfParkers(false);\r\n }\r\n\r\n private setStatusOfParkers(activeStatusToChange: boolean = false) {\r\n var executor = new SetStatusExecutor(this.numTotalRecordsToWorkOn, activeStatusToChange, this.translateService, this.parkerClient);\r\n this.runExecutor(executor);\r\n }\r\n\r\n private addSubscriptionSets() {\r\n if (this.subscriptionAssignmentForm.valid) {\r\n var executor = new AddSubscriptionSetExecutor(this.numTotalRecordsToWorkOn, this.subscriptionAssignmentForm, this.parkingSubscriptionClient, this.parkerClient);\r\n this.runExecutor(executor);\r\n }\r\n else {\r\n this.subscriptionAssignmentForm.markAllAsTouched();\r\n }\r\n }\r\n\r\n private addSubscriptions() {\r\n if (this.subscriptionAssignmentForm.valid) {\r\n var executor = new AddSubscriptionExecutor(this.numTotalRecordsToWorkOn, this.subscriptionAssignmentForm, this.parkingSubscriptionClient, this.parkerClient);\r\n this.runExecutor(executor);\r\n }\r\n else {\r\n this.subscriptionAssignmentForm.markAllAsTouched();\r\n }\r\n }\r\n\r\n private endSubscriptions(): void {\r\n if (this.subscriptionEndingForm.valid) {\r\n var executor = new EndSubscriptionExecutor(this.numTotalRecordsToWorkOn, this.subscriptionEndingForm, this.parkingSubscriptionClient, this.parkerClient, this.translateService);\r\n this.runExecutor(executor);\r\n }\r\n else {\r\n this.subscriptionEndingForm.markAllAsTouched();\r\n }\r\n }\r\n\r\n private replaceSubscription(): void {\r\n if (this.subscriptionReplacementForm.valid) {\r\n var executor = new ReplaceSubscriptionExecutor(this.numTotalRecordsToWorkOn, this.subscriptionReplacementForm, this.parkerClient, this.parkingClient, this.parkerRegistrationClient);\r\n this.runExecutor(executor);\r\n }\r\n else {\r\n this.subscriptionReplacementForm.markAllAsTouched();\r\n }\r\n }\r\n\r\n private adjustSubscriptions(): void {\r\n if (this.subscriptionAssignmentForm.valid) {\r\n var executor = new AdjustSubscriptionExecutor(this.numTotalRecordsToWorkOn, this.subscriptionAssignmentForm, this.parkingSubscriptionClient, this.parkerClient);\r\n this.runExecutor(executor);\r\n }\r\n else {\r\n this.subscriptionAssignmentForm.markAllAsTouched();\r\n }\r\n }\r\n\r\n private resendLinkToParkers(): void {\r\n var executor = new ResendLinkToParkerExecutor(this.numTotalRecordsToWorkOn, this.parkerClient, this.translateService);\r\n this.runExecutor(executor);\r\n }\r\n\r\n private unlinkParkers(): void {\r\n var executor = new UnlinkParkerExecutor(this.numTotalRecordsToWorkOn, this.parkerClient, this.translateService);\r\n this.runExecutor(executor);\r\n }\r\n\r\n private recalculateSessions(): void {\r\n if (this.fromUntilForm.valid) {\r\n var executor = new RecalculateParkingSessionsExecutor(this.numTotalRecordsToWorkOn, this.fromUntilForm, this.parkingClient, this.parkerRegistrationClient);\r\n this.runExecutor(executor);\r\n }\r\n else {\r\n this.fromUntilForm.markAllAsTouched();\r\n }\r\n }\r\n\r\n private runExecutor(executor: ParkerFunctionExecutor) {\r\n this._executor = executor;\r\n this.functionStatus.value = this._executor.progressInfo.progressValue;\r\n this.functionStatus.segmentCount = this._executor.progressInfo.progressValueSegmentCount;\r\n this.functionStatus.refresh();\r\n this.showFunctionStatusDialog();\r\n // run executor is called onStatusDialogOpened to reduce issues with the progress bar visualization :(\r\n }\r\n\r\n public static validateSubscriptionNotSameAsOld(): ValidatorFn {\r\n return (control: AbstractControl): { [key: string]: any } | null => {\r\n if (control.dirty && control.value) {\r\n const newSubscriptionId = control.value;\r\n const oldSubscriptionId = control.parent.get('oldSubscriptionId').value;\r\n return newSubscriptionId === oldSubscriptionId ? {subscriptionIdentical: true} : null;\r\n } else {\r\n return null;\r\n }\r\n };\r\n }\r\n}\r\n","\r\n \r\n {{'i18n.domain.parker-administration.overview.function-dialog.title' | translate}}\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n {{ data.i18nLabel ?? 'i18n.domain.parker-administration.overview.function-dialog.functions.' + data.type |\r\n translate}}\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n {{'i18n.domain.parker-administration.overview.function-dialog.message-no-parameter-required' | translate}}\r\n
    \r\n
    \r\n {{'i18n.domain.parker-administration.overview.function-dialog.message-no-parameter-required' | translate}}\r\n
    \r\n
    \r\n {{'i18n.domain.parker-administration.overview.function-dialog.message-no-parameter-required' | translate}}\r\n
    \r\n
    \r\n {{'i18n.domain.parker-administration.overview.function-dialog.message-no-parameter-required' | translate}}\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n\r\n\r\n \r\n {{'i18n.domain.parker-administration.overview.function-dialog.function-status-dialog.title-template' | translate:\r\n { function: 'i18n.domain.parker-administration.overview.function-dialog.functions.' + selectedFunction?.type | translate, parkerCount: numTotalRecordsToWorkOn} }}\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n Loading...\r\n
    \r\n
    \r\n Success\r\n
    \r\n
    \r\n Error\r\n
    \r\n
    \r\n Warning\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n {{data.parkerInfo.firstName + ' ' + data.parkerInfo.lastName}}\r\n \r\n \r\n \r\n \r\n {{'i18n.domain.parker-administration.overview.function-dialog.function-status-dialog.status-' + data.status | translate}}\r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n {{'i18n.domain.parker-administration.overview.function-dialog.function-status-dialog.successful' | translate}}: {{actualExecutions - (executionStatus?.length ?? 0)}} - {{'i18n.domain.parker-administration.overview.function-dialog.function-status-dialog.failed' | translate}}: {{executionStatus?.length ?? 0}}
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n","import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { FormBuilder, Validators } from '@angular/forms';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { ParkerSubscriptionAssignmentDTO, ParkingSubscriptionDTO } from '../../../../../base/models/models.swagger.generated';\r\nimport { ClientService } from '../../../../../base/services/client/client.service';\r\nimport { GridBaseComponent } from '../../../../../base/shared/grid-base/grid-base.component';\r\nimport { SpinnerService } from '../../../../../base/spinner/spinner.service';\r\nimport { CommandClickEventArgs, CommandModel, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { ModalHelperService } from '../../../../../base/shared/modal-helper';\r\nimport {\r\n EditParkerEditSubscriptionListFormComponent,\r\n} from '../edit-parker-edit-subscription-list-form/edit-parker-edit-subscription-list-form.component';\r\nimport { DateTime } from 'luxon';\r\nimport { SubscriptionAssignmentFormType } from '../edit-parker-edit-subscription-list-form/edit-parker-edit-subscription-list-form.type';\r\nimport { SfCommandButtonType, SfRequestTypes } from 'src/app/base/models/syncfusion-data';\r\nimport { NgClass, NgIf, DatePipe } from '@angular/common';\r\nimport { ToolbarModule } from '@syncfusion/ej2-angular-navigations';\r\n\r\n@Component({\r\n selector: 'app-edit-parker-subscription-list',\r\n templateUrl: './edit-parker-subscription-list.component.html',\r\n styleUrls: ['./edit-parker-subscription-list.component.scss'],\r\n standalone: true,\r\n imports: [\r\n GridModule,\r\n ToolbarModule,\r\n NgClass,\r\n NgIf,\r\n EditParkerEditSubscriptionListFormComponent,\r\n DatePipe,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class EditParkerSubscriptionListComponent extends GridBaseComponent implements OnInit {\r\n\r\n @Input() public clientId: number;\r\n @Input() public subscriptions: ParkerSubscriptionAssignmentDTO[];\r\n @Output() public subscriptionsChange = new EventEmitter();\r\n @ViewChild(EditParkerEditSubscriptionListFormComponent) public editForm: EditParkerEditSubscriptionListFormComponent;\r\n\r\n public commands: CommandModel[] = [\r\n {\r\n type: SfCommandButtonType.Edit,\r\n buttonOption:\r\n {\r\n cssClass: 'icon-btn',\r\n iconCss: 'icon-edit e-icons',\r\n },\r\n },\r\n {\r\n type: SfCommandButtonType.Delete,\r\n buttonOption: {\r\n cssClass: 'icon-btn',\r\n iconCss: 'icon-trash-can e-icons e-danger',\r\n },\r\n }];\r\n\r\n public get useSetsAddMode(): boolean {\r\n return this._useSetsAddMode;\r\n }\r\n\r\n public formEnabled = false; // used to reset component\r\n private newItemIndexCount = -1;\r\n private _useSetsAddMode = false;\r\n\r\n constructor(clientService: ClientService,\r\n translate: TranslateService,\r\n public spinnerService: SpinnerService,\r\n private fb: FormBuilder,\r\n private modalHelperService: ModalHelperService) {\r\n super(clientService, translate, null);\r\n }\r\n\r\n public override onAdd(useSets: boolean = false): void {\r\n this._useSetsAddMode = useSets;\r\n super.onAdd();\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.isActiveColumnName = 'active';\r\n this.editDialogTitle = 'i18n.domain.parker-administration.edit-subscription';\r\n this.addDialogTitle = 'i18n.domain.parker-administration.add-subscription';\r\n this.addIndexFindColumnName = 'name';\r\n\r\n this.editSettings = {...this.editSettings, showDeleteConfirmDialog: false};\r\n }\r\n\r\n public override actionBegin(args) {\r\n if (args.requestType === SfRequestTypes.BeginEdit || args.requestType === SfRequestTypes.Add) {\r\n this.formEnabled = true;\r\n }\r\n super.actionBegin(args);\r\n }\r\n\r\n public override actionComplete(args) {\r\n super.actionComplete(args);\r\n this.subscriptionsChange.emit(this.subscriptions);\r\n if (args.requestType === SfRequestTypes.Cancel || args.requestType === SfRequestTypes.Save) {\r\n this.formEnabled = false;\r\n this._useSetsAddMode = false;\r\n }\r\n }\r\n\r\n public commandClicked(args: CommandClickEventArgs): void {\r\n if (args.commandColumn.type === SfCommandButtonType.Delete) {\r\n args.cancel = true;\r\n this.modalHelperService.confirm(\r\n 'i18n.core.modal.delete.title',\r\n 'i18n.core.modal.delete.content',\r\n () => this.grid.deleteRecord('id', args.rowData),\r\n );\r\n }\r\n }\r\n\r\n protected initializeEditForm(data: ParkerSubscriptionAssignmentDTO): void {\r\n this.gridEditForm = this.fb.group({\r\n id: this.fb.control(data.id || 0),\r\n subscriptionId: this.fb.control(data.subscription?.id, [Validators.required]),\r\n active: this.fb.control(data.active),\r\n isValidImmediately: this.fb.control(data.validFrom == null),\r\n validFrom: this.fb.control(DateTime.isDateTime(data.validFrom) ? data.validFrom.toJSDate() : data.validFrom),\r\n isValidOpenEnd: this.fb.control(data.validTo == null),\r\n validTo: this.fb.control(DateTime.isDateTime(data.validTo) ? data.validTo.toJSDate() : data.validTo),\r\n modifiedBy: this.fb.control({value: data.modifiedBy, disabled: true}),\r\n modifiedOn: this.fb.control({value: data.modifiedOn ? data.modifiedOn.toFormat('dd.MM.yyyy HH:mm:ss') : \"\", disabled: true}),\r\n selectedSubscriptions: this.fb.control(null)\r\n });\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData: any) {\r\n return {params: ''};\r\n }\r\n\r\n protected override getDataToSave(): any {\r\n const data = this.gridEditForm.value;\r\n if (data.id === 0) {\r\n data.id = this.newItemIndexCount;\r\n this.newItemIndexCount = this.newItemIndexCount - 1;\r\n }\r\n const validFrom = DateTime.fromJSDate(data.validFrom ?? new Date());\r\n const validTo = data.validTo ? DateTime.fromJSDate(data.validTo) : null;\r\n\r\n let subscription: ParkingSubscriptionDTO;\r\n if (this._useSetsAddMode) {\r\n const set = this.editForm.allSubscriptionSets.find(set => set.id === this.gridEditForm.value.subscriptionId);\r\n subscription = this.editForm.allSubscriptionSets.find(set => set.id === this.gridEditForm.value.subscriptionId).subscriptions?.at(0);\r\n for (let i = 1; i < set.subscriptions.length; i++) {\r\n const id = this.newItemIndexCount;\r\n this.newItemIndexCount = this.newItemIndexCount - 1;\r\n this.subscriptions.push({\r\n ...data,\r\n id,\r\n validFrom,\r\n validTo,\r\n subscription: set.subscriptions.at(i),\r\n });\r\n }\r\n } else {\r\n subscription = this.editForm.allSubscriptions.find(sub => sub.id === this.gridEditForm.value.subscriptionId);\r\n }\r\n\r\n return {\r\n ...data,\r\n validFrom,\r\n validTo,\r\n subscription: subscription,\r\n };\r\n }\r\n}\r\n","\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.subscription?.name}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.validFrom | date:'dd.MM.yyyy HH:mm'}}\r\n {{'i18n.domain.parker-administration.detail.form.immediate' | translate}}\r\n \r\n \r\n \r\n \r\n {{data.validTo | date:'dd.MM.yyyy HH:mm'}}\r\n {{'i18n.domain.parker-administration.detail.form.always' | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n","export enum TagType {\r\n Parker = 0,\r\n Zone = 1,\r\n}\r\n\r\n","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\nimport { BarcodeFormat } from '@zxing/library';\r\nimport {\r\n TagType,\r\n} from '../../../domain/administration/parker-administration/edit-parker-form/edit-parker-edit-tag-list-form/tag-type.enum';\r\nimport { DropDownConstantsFactory } from '../syncfusion/dropdown-constants-factory';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { ZXingScannerModule } from '@zxing/ngx-scanner';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { NgIf, NgClass } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-qr-scanner',\r\n templateUrl: './qr-scanner.component.html',\r\n styleUrls: ['./qr-scanner.component.scss'],\r\n standalone: true,\r\n imports: [\r\n NgIf,\r\n DropDownListModule,\r\n ZXingScannerModule,\r\n NgClass,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class QrScannerComponent implements OnInit {\r\n\r\n @Input() public allowedFormats: BarcodeFormat[] = [BarcodeFormat.QR_CODE];\r\n @Input() public clientIdent: string;\r\n @Input() public tagType: TagType;\r\n\r\n @Output() public dataScanned = new EventEmitter();\r\n @Output() public cameraError = new EventEmitter();\r\n @Output() public cameraStarted = new EventEmitter();\r\n\r\n public dropdownSettings = DropDownConstantsFactory.createStandardClientDropdownSettings();\r\n\r\n public showCamera = true;\r\n public cameraStarting = true;\r\n public permissionAllowed = true;\r\n public camerasFound = true;\r\n\r\n public activeCamera: MediaDeviceInfo;\r\n public cameras: MediaDeviceInfo[] = [];\r\n public camerasDropdownValues: {name: string; id: string}[] = [];\r\n\r\n public invalidQRError = false;\r\n\r\n constructor() {\r\n }\r\n\r\n public ngOnInit(): void {\r\n }\r\n\r\n public onAutostarting(event): void {\r\n this.cameraStarting = event;\r\n if (!event) {\r\n this.cameraStarted.emit();\r\n }\r\n }\r\n\r\n public onNoCameraFound(event): void {\r\n this.camerasFound = !event;\r\n this.showCamera = this.showCamera && this.camerasFound;\r\n this.onError('no camera found');\r\n }\r\n\r\n public onPermissionResponse(event): void {\r\n this.permissionAllowed = event;\r\n this.showCamera = this.showCamera && this.permissionAllowed;\r\n if (!this.permissionAllowed) {\r\n this.onError('permission denied');\r\n }\r\n }\r\n\r\n public onScanComplete(event: any): void {\r\n if (event) {\r\n if (this.validateScannedCode(event.text)) {\r\n this.dataScanned.emit(event.text);\r\n } else {\r\n this.invalidQRError = true;\r\n }\r\n } else {\r\n this.invalidQRError = false;\r\n }\r\n }\r\n\r\n public onError(event): void {\r\n this.cameraError.emit(event);\r\n }\r\n\r\n public onCamerasFound(event): void {\r\n this.cameras = event;\r\n this.camerasDropdownValues = event.map(camera => ({name: camera.label, id: camera.deviceId}));\r\n }\r\n\r\n public setActiveCamera(event): void {\r\n if (this.activeCamera.deviceId !== event) {\r\n this.activeCamera = this.cameras.find(camera => camera.deviceId === event);\r\n }\r\n }\r\n\r\n private validateScannedCode(code: string): boolean {\r\n // code format: clientIdent.type.ident\r\n const codeArray = code.split('.');\r\n\r\n if (codeArray.length !== 3) {\r\n return false;\r\n }\r\n\r\n const clientIdent = codeArray[0];\r\n const type = codeArray[1];\r\n\r\n if (clientIdent !== this.clientIdent) {\r\n return false;\r\n }\r\n\r\n if (TagType[type] !== this.tagType) {\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n}\r\n","
    \r\n {{'i18n.shared.qr-scanner.errors.permissionDenied' | translate}}\r\n
    \r\n
    \r\n {{'i18n.shared.qr-scanner.errors.no-camera-found' | translate}}\r\n
    \r\n\r\n
    \r\n {{'i18n.shared.qr-scanner.errors.invalid-qr' | translate}}\r\n
    \r\n\r\n
    \r\n 1\"\r\n id=\"controlPlate\"\r\n [fields]=\"dropdownSettings\"\r\n [value]=\"activeCamera.deviceId\"\r\n [dataSource]=\"camerasDropdownValues\"\r\n (valueChange)=\"setActiveCamera($event)\">\r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n\r\n\r\n\r\n","import { DropDownItem } from '../../../../../base/shared/drop-down-item.model';\r\nimport { DropDownConstantsFactory } from '../../../../../base/shared/syncfusion/dropdown-constants-factory';\r\nimport { EnumTranslationService } from '../../../../../base/services/enum-translation.service';\r\nimport { AbstractControl, AsyncValidatorFn, Validators, ReactiveFormsModule, FormBuilder } from '@angular/forms';\r\nimport { Component, Input, OnInit, ViewChild } from '@angular/core';\r\nimport { CountryISO2 } from 'src/app/base/shared/countryISO2-enum';\r\nimport { ControlPlateType, ParkerTagClient, ParkerTagDTO } from '../../../../../base/models/models.swagger.generated';\r\nimport { DialogComponent as SyncfusionDialogComponent } from '@syncfusion/ej2-angular-popups/src/dialog/dialog.component';\r\nimport { timer } from 'rxjs';\r\nimport { map, switchMap } from 'rxjs/operators';\r\nimport { ClientService } from '../../../../../base/services/client/client.service';\r\nimport { TagType } from './tag-type.enum';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { QrScannerComponent } from '../../../../../base/shared/qr-scanner/qr-scanner.component';\r\nimport { DialogModule } from '@syncfusion/ej2-angular-popups';\r\nimport { YesNoGroupButtonComponent } from '../../../../../base/shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { EnumDropDownListComponent } from '../../../../../base/shared/enum-drop-down-list/enum-drop-down-list.component';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { AppErrorMessagesComponent } from '../../../../../base/error-messages/app-error-messages.component';\r\nimport { EditParkerEditTagListFormGroup } from './edit-parker-edit-tag-list-form.type';\r\nimport { MessageModule } from '@syncfusion/ej2-angular-notifications';\r\n\r\n@Component({\r\n selector: 'app-edit-parker-edit-tag-list-form',\r\n templateUrl: './edit-parker-edit-tag-list-form.component.html',\r\n styleUrls: ['./edit-parker-edit-tag-list-form.component.scss'],\r\n standalone: true,\r\n imports: [\r\n ReactiveFormsModule,\r\n AppErrorMessagesComponent,\r\n DropDownListModule,\r\n EnumDropDownListComponent,\r\n NgIf,\r\n YesNoGroupButtonComponent,\r\n DialogModule,\r\n QrScannerComponent,\r\n TranslateModule,\r\n MessageModule\r\n ],\r\n})\r\nexport class EditParkerEditTagListFormComponent implements OnInit {\r\n\r\n @Input() public parkerTagForm: EditParkerEditTagListFormGroup;\r\n @Input() public allTags: ParkerTagDTO[];\r\n\r\n @ViewChild('cardReaderDialog') public cardReaderDialog: SyncfusionDialogComponent;\r\n @ViewChild('qrReaderDialog') public qrReaderDialog: SyncfusionDialogComponent;\r\n\r\n public enumDropdownSettings = DropDownConstantsFactory.createEnumDropdownSettings();\r\n public countryList: DropDownItem[];\r\n public ControlPlateType = ControlPlateType;\r\n public TagType = TagType;\r\n\r\n public showQrText = false;\r\n\r\n public cardReaderForm = this.fb.group({\r\n identificationCode: [null, {validators: [Validators.required], asyncValidators: [this.idValidator()]}],\r\n });\r\n\r\n public get isAdd(): boolean {\r\n return !this.parkerTagForm.value.id;\r\n }\r\n\r\n public get clientIdent(): string {\r\n return this.clientService.selectedClient.clientIdent;\r\n }\r\n\r\n constructor(private enumTranslationService: EnumTranslationService,\r\n private parkerTagClient: ParkerTagClient,\r\n private clientService: ClientService,\r\n private fb: FormBuilder) {\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.countryList = this.enumTranslationService.translateEnum(CountryISO2, 'i18n.shared.CountryISO2.');\r\n // this.countryList = [{key: 'CH', value: 'Switzerland'}, {key: 'DE', value: 'asdf'}];\r\n }\r\n\r\n public openCardReaderDialog(): void {\r\n this.cardReaderDialog.show();\r\n }\r\n\r\n public openQrReaderDialog(): void {\r\n this.qrReaderDialog.show();\r\n }\r\n\r\n public saveIdCode(): void {\r\n this.parkerTagForm.controls.identificationCode.setValue(this.cardReaderForm.controls.identificationCode.value);\r\n this.closeCardDialog();\r\n }\r\n\r\n public onQrScanned(qrData: string): void {\r\n this.parkerTagForm.controls.barcode.setValue(qrData.split('.')[2]);\r\n this.closeQrDialog();\r\n }\r\n\r\n public closeCardDialog(): void {\r\n this.cardReaderForm.controls.identificationCode.reset();\r\n this.cardReaderDialog.hide();\r\n }\r\n\r\n public closeQrDialog(): void {\r\n this.qrReaderDialog.hide();\r\n this.showQrText = false;\r\n }\r\n\r\n private idValidator(): AsyncValidatorFn {\r\n return (control: AbstractControl) => timer(500)\r\n .pipe(\r\n switchMap(() => this.parkerTagClient.isIdentificationCodeAlreadyInUse(this.clientService.selectedClient.id, control.value)),\r\n map(result => {\r\n const sameAsOriginal = this.allTags\r\n .find(t => t.id === this.parkerTagForm.controls.id.value)?.identificationCode === control.value;\r\n const isAlreadyInUse = this.allTags.some(t => t.identificationCode === control.value);\r\n return sameAsOriginal || (!isAlreadyInUse && !result) ? null : {identAlreadyInUse: true};\r\n }),\r\n );\r\n }\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n\r\n \r\n {{'i18n.domain.parker-administration.form.dialog.card-reader-title' | translate}}\r\n \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n\r\n\r\n \r\n {{'i18n.domain.parker-administration.form.dialog.qr-reader-title' | translate}}\r\n \r\n \r\n
    \r\n {{'i18n.domain.parker-administration.form.dialog.qr-reader-description' | translate}}\r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\nimport { GridBaseComponent } from '../../../../../base/shared/grid-base/grid-base.component';\r\nimport { CommandModel, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { ClientService } from '../../../../../base/services/client/client.service';\r\nimport { FormBuilder, Validators } from '@angular/forms';\r\nimport { ClientDTO, ControlPlateType, ParkerTagDTO } from '../../../../../base/models/models.swagger.generated';\r\nimport { TagType } from '../edit-parker-edit-tag-list-form/tag-type.enum';\r\nimport { GridConstantsFactory } from 'src/app/base/shared/syncfusion/grid-constants-factory';\r\nimport { EditParkerEditTagListFormComponent } from '../edit-parker-edit-tag-list-form/edit-parker-edit-tag-list-form.component';\r\nimport { ToolbarModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { EditParkerEditTagListFormType } from '../edit-parker-edit-tag-list-form/edit-parker-edit-tag-list-form.type';\r\n\r\n@Component({\r\n selector: 'app-edit-parker-tags-list',\r\n templateUrl: './edit-parker-tags-list.component.html',\r\n styleUrls: ['./edit-parker-tags-list.component.scss'],\r\n standalone: true,\r\n imports: [GridModule, ToolbarModule, EditParkerEditTagListFormComponent, TranslateModule]\r\n})\r\nexport class EditParkerTagsListComponent extends GridBaseComponent implements OnInit {\r\n\r\n @Input() public client: ClientDTO;\r\n @Input() public tags: ParkerTagDTO[];\r\n @Output() public tagsChange = new EventEmitter();\r\n\r\n public commands: CommandModel[] = GridConstantsFactory.createStandardGridCommands();\r\n private newItemIndexCount = -1;\r\n\r\n constructor(translateService: TranslateService,\r\n clientService: ClientService,\r\n private fb: FormBuilder) {\r\n super(clientService, translateService, null);\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.isActiveColumnName = 'active';\r\n this.editDialogTitle = 'i18n.domain.parker-administration.edit-tag';\r\n this.addDialogTitle = 'i18n.domain.parker-administration.add-tag';\r\n this.addIndexFindColumnName = 'Id';\r\n }\r\n\r\n public override actionComplete(args) {\r\n super.actionComplete(args);\r\n this.tagsChange.emit(this.tags);\r\n }\r\n\r\n public formatControlPlateType(data): string {\r\n return 'i18n.shared.controlPlateType.' + ControlPlateType[data.controlPlateType];\r\n }\r\n\r\n protected initializeEditForm(data: ParkerTagDTO): void {\r\n let barcode = data.barcode;\r\n const barcodeSplit = data.barcode?.split('.');\r\n if (barcodeSplit && barcodeSplit.length > 2) {\r\n barcode = barcodeSplit[2];\r\n }\r\n this.gridEditForm = this.fb.group({\r\n id: this.fb.control(data.id || 0),\r\n identificationCode: this.fb.control({value: data.identificationCode, disabled: true}),\r\n barcode: this.fb.control(barcode),\r\n clientIdent: this.fb.control({value: this.clientService.selectedClient.clientIdent, disabled: true}, [Validators.required]),\r\n tagType: this.fb.control({value: TagType[TagType.Parker].toString(), disabled: true}, [Validators.required]),\r\n countryCode: this.fb.control(data.countryCode || 'CH', [Validators.required]),\r\n controlPlateType: this.fb.control(data.controlPlateType),\r\n controlPlateNumber: this.fb.control(data.controlPlateNumber, [Validators.maxLength(10)]),\r\n description: this.fb.control(data.description),\r\n active: this.fb.control(data.active ?? true),\r\n defect: this.fb.control(data.defect ?? false),\r\n clientId: this.fb.control(this.client.id),\r\n parkerId: this.fb.control(data.parkerId || 0),\r\n modifiedBy: this.fb.control({value: data.modifiedBy, disabled: true}),\r\n modifiedOn: this.fb.control({value: data.modifiedOn ? data.modifiedOn.toFormat('dd.MM.yyyy HH:mm:ss') : \"\", disabled: true}),\r\n });\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData: any): any {\r\n return {params: ''};\r\n }\r\n\r\n protected override getDataToSave(): any {\r\n const data = this.gridEditForm.getRawValue();\r\n if (data.id === 0) {\r\n data.id = this.newItemIndexCount;\r\n this.newItemIndexCount = this.newItemIndexCount - 1;\r\n }\r\n if (data.barcode == '') {\r\n data.barcode = null;\r\n }\r\n if (data.barcode != null) {\r\n data.barcode = data.clientIdent + '.' + data.tagType + '.' + data.barcode;\r\n }\r\n return data;\r\n }\r\n}\r\n","\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{formatControlPlateType(data) | translate}}\r\n \r\n {{formatControlPlateType(data) | translate}}\r\n \r\n \r\n \r\n \r\n {{data.controlPlateNumber | translate}}\r\n \r\n \r\n \r\n \r\n {{data.description | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n","import {\r\n ClientDTO,\r\n Currency,\r\n FilterDTO,\r\n FilterOperator,\r\n ParkerCompanyClient,\r\n ParkerCompanyDTO,\r\n ParkerDTO,\r\n ParkerGroup,\r\n ParkerSubscriptionAssignmentDTO,\r\n ParkerTagDTO,\r\n SortDirection,\r\n LimitedUserInfoDTO,\r\n} from '../../../../base/models/models.swagger.generated';\r\nimport { Observable, of } from 'rxjs';\r\nimport { Component, Input, OnInit } from '@angular/core';\r\nimport { CountryISO2 } from '../../../../base/shared/countryISO2-enum';\r\nimport { AutocompleteItem } from '../../../../base/shared/autocomplete/autocomplete-item';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { EditParkerFormGroup } from './edit-parker-form.type';\r\nimport { NgIf } from '@angular/common';\r\nimport { EditParkerSubscriptionListComponent } from './edit-parker-subscription-list/edit-parker-subscription-list.component';\r\nimport { EditParkerTagsListComponent } from './edit-parker-tags-list/edit-parker-tags-list.component';\r\nimport { AccordionModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { ButtonGroupComponent } from '../../../../base/shared/button-group/button-group.component';\r\nimport { YesNoGroupButtonComponent } from '../../../../base/shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { AutocompleteComponent } from '../../../../base/shared/autocomplete/autocomplete.component';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { DatePickerModule } from '@syncfusion/ej2-angular-calendars';\r\nimport { EnumDropDownListComponent } from '../../../../base/shared/enum-drop-down-list/enum-drop-down-list.component';\r\nimport { AppErrorMessagesComponent } from '../../../../base/error-messages/app-error-messages.component';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { AuthService } from 'src/app/base/services/auth.service';\r\n\r\n@Component({\r\n selector: 'app-edit-parker-form',\r\n templateUrl: './edit-parker-form.component.html',\r\n styleUrls: ['./edit-parker-form.component.scss'],\r\n standalone: true,\r\n imports: [\r\n ReactiveFormsModule,\r\n AppErrorMessagesComponent,\r\n EnumDropDownListComponent,\r\n DatePickerModule,\r\n DropDownListModule,\r\n AutocompleteComponent,\r\n YesNoGroupButtonComponent,\r\n ButtonGroupComponent,\r\n AccordionModule,\r\n EditParkerTagsListComponent,\r\n EditParkerSubscriptionListComponent,\r\n NgIf,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class EditParkerFormComponent implements OnInit {\r\n\r\n @Input() public parkerEditForm: EditParkerFormGroup;\r\n @Input() public client: ClientDTO;\r\n @Input() public rowData: any;\r\n\r\n\r\n public get isAdd(): boolean {\r\n return !this.parkerEditForm.value.id;\r\n }\r\n\r\n public get selectedCountry(): string {\r\n return this.parkerEditForm.controls.country.value;\r\n }\r\n\r\n public set selectedCountry(value: string) {\r\n this.parkerEditForm.controls.country.setValue(value);\r\n }\r\n\r\n public get selectedPrivateCountry(): string {\r\n return this.parkerEditForm.controls.privateCountry.value;\r\n }\r\n\r\n public set selectedPrivateCountry(value: string) {\r\n this.parkerEditForm.controls.privateCountry.setValue(value);\r\n }\r\n\r\n public get parkerTags(): ParkerTagDTO[] {\r\n return this.parkerEditForm.controls.tags.value;\r\n }\r\n\r\n public set parkerTags(tags: ParkerTagDTO[]) {\r\n this.parkerEditForm.controls.tags.setValue(tags);\r\n }\r\n\r\n public get parkerSubscriptions(): ParkerSubscriptionAssignmentDTO[] {\r\n return this.parkerEditForm.controls.parkerSubscriptionAssignments.value;\r\n }\r\n\r\n public set parkerSubscriptions(subscriptionAssignments: ParkerSubscriptionAssignmentDTO[]) {\r\n this.parkerEditForm.controls.parkerSubscriptionAssignments.setValue(subscriptionAssignments);\r\n }\r\n\r\n public ParkerGroup = ParkerGroup;\r\n public CurrencyEnum = Currency;\r\n public countries: AutocompleteItem[] = [];\r\n public parker: ParkerDTO;\r\n public companies: ParkerCompanyDTO[] = [];\r\n public dropdownSettings = { text: 'name', value: 'id' };\r\n\r\n constructor(private parkerCompanyClient: ParkerCompanyClient,\r\n private translate: TranslateService,\r\n private authService: AuthService) {\r\n }\r\n\r\n public ngOnInit(): void {\r\n // eslint-disable-next-line guard-for-in\r\n for (const country in CountryISO2) {\r\n this.countries.push({\r\n id: this.translate.instant('i18n.shared.CountryISO2.' + country),\r\n name: this.translate.instant('i18n.shared.CountryISO2.' + country),\r\n });\r\n }\r\n const loggedInUser = this.authService.getUserInfo();\r\n if (this.authService.isUserCompanyAdmin()) {\r\n this.companies = [loggedInUser.company];\r\n this.parkerEditForm.controls.companyId.setValue(loggedInUser.companyId);\r\n // disable company selection\r\n this.parkerEditForm.controls.companyId.disable();\r\n }\r\n else {\r\n const filters = [];\r\n filters.push(new FilterDTO({ isComplex: false, field: 'Active', operator: FilterOperator.Equal, value: 'true' }));\r\n this.parkerCompanyClient.searchParkerCompanies(this.client.id, filters, 0, 0, 'Id', SortDirection.Ascending)\r\n .subscribe(companies => {\r\n this.companies = companies.items;\r\n });\r\n this.parkerEditForm.controls.companyId.enable();\r\n }\r\n }\r\n\r\n public getCountries(searchText: string): Observable {\r\n return of(this.countries.filter(country => country.name.toLowerCase().includes(searchText?.toLowerCase())));\r\n }\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    {{'i18n.domain.parker-administration.overview.accordions.tags' | translate}}
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    {{'i18n.domain.parker-administration.overview.accordions.subscriptions' | translate}}
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n \r\n \r\n
    {{'i18n.domain.parker-administration.overview.accordions.custom-fields' | translate}}
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    {{'i18n.domain.parker-administration.overview.accordions.private-address' | translate}}
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\nimport { FormBuilder, ReactiveFormsModule } from '@angular/forms';\r\nimport { debounceTime, distinctUntilChanged } from 'rxjs/operators';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\n\r\n@Component({\r\n selector: 'app-search-field',\r\n templateUrl: './search-field.component.html',\r\n styleUrls: ['./search-field.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, TranslateModule]\r\n})\r\nexport class SearchFieldComponent implements OnInit {\r\n\r\n @Output()\r\n public searchTextChanged = new EventEmitter();\r\n\r\n @Input()\r\n public placeholderText = 'i18n.shared.search';\r\n\r\n public searchForm = this.fb.group({\r\n filter: this.fb.control(null),\r\n });\r\n\r\n constructor(private fb: FormBuilder) { }\r\n\r\n ngOnInit() {\r\n this.searchForm.get('filter').valueChanges\r\n .pipe(\r\n debounceTime(500),\r\n distinctUntilChanged()\r\n )\r\n .subscribe(val => {\r\n this.searchTextChanged.emit(val);\r\n });\r\n }\r\n}\r\n","
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n","import { UntypedFormBuilder, UntypedFormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { AfterViewChecked, ChangeDetectorRef, Component, EventEmitter, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { DialogComponent as SyncfusionDialogComponent } from '@syncfusion/ej2-angular-popups/src/dialog/dialog.component';\r\nimport { ClientDTO, FilterDTO, FilterOperator, ParkerGroup, ParkingSubscriptionClient, ParkingSubscriptionDTO, SortDirection } from 'src/app/base/models/models.swagger.generated';\r\nimport { DropDownConstantsFactory } from 'src/app/base/shared/syncfusion/dropdown-constants-factory';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { ListBoxComponent, ListBoxModule, DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { ChipListComponent, ChipModel, ChipListModule } from '@syncfusion/ej2-angular-buttons';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { ParkerFilterField } from './parker-filter-field';\r\nimport { EnumTranslationService } from 'src/app/base/services/enum-translation.service';\r\nimport { YesNoGroupButtonComponent } from '../../../../base/shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { DialogModule } from '@syncfusion/ej2-angular-popups';\r\n\r\n@Component({\r\n selector: 'app-parker-filter',\r\n templateUrl: './parker-filter.component.html',\r\n styleUrls: ['./parker-filter.component.scss'],\r\n standalone: true,\r\n imports: [ChipListModule, DialogModule, ListBoxModule, NgIf, ReactiveFormsModule, DropDownListModule, YesNoGroupButtonComponent, TranslateModule]\r\n})\r\nexport class ParkerFilterComponent implements OnInit, AfterViewChecked {\r\n\r\n @ViewChild('filterDialog') public filterDialog: SyncfusionDialogComponent;\r\n @ViewChild(\"fieldsListBox\") public fieldsListBox: ListBoxComponent;\r\n @ViewChild(\"filterChipList\") public filterChipList: ChipListComponent\r\n\r\n @Output() public filterUpdated = new EventEmitter();\r\n\r\n constructor(private fb: UntypedFormBuilder,\r\n private parkingSubscriptionClient: ParkingSubscriptionClient,\r\n private clientService: ClientService,\r\n private translateService: TranslateService,\r\n private enumTranslateService: EnumTranslationService,\r\n private cdr: ChangeDetectorRef,) {\r\n }\r\n\r\n private filters: FilterDTO[] = [];\r\n\r\n public filterFieldList: ParkerFilterField[] = [\r\n {\r\n displayName: \"Group\", getValueText: (value) => {\r\n return value;\r\n },\r\n i18nLabel: 'i18n.domain.parker-administration.overview.fields.group'\r\n },\r\n { displayName: \"CostCenter\", filterOperator: FilterOperator.Contains, getValueText: (value) => value, i18nLabel: 'i18n.domain.parker-administration.overview.fields.cost-center' },\r\n { displayName: \"Title\", filterOperator: FilterOperator.Contains, getValueText: (value) => value, i18nLabel: 'i18n.domain.parker-administration.overview.fields.title' },\r\n { displayName: \"Workplace\", filterOperator: FilterOperator.Contains, getValueText: (value) => value, i18nLabel: 'i18n.domain.parker-administration.overview.fields.workplace' },\r\n { displayName: \"EmploymentPercentage\", filterOperator: FilterOperator.Equal, getValueText: (value) => value, i18nLabel: 'i18n.domain.parker-administration.overview.fields.employment-percentage' },\r\n { displayName: \"IsLinked\", getValueText: (value) => value === true ? this.translateService.instant(\"i18n.shared.yes\") : this.translateService.instant(\"i18n.shared.no\") },\r\n { displayName: \"Active\", getValueText: (value) => value === true ? this.translateService.instant(\"i18n.shared.yes\") : this.translateService.instant(\"i18n.shared.no\"), i18nLabel: 'i18n.domain.parker-administration.overview.fields.active' },\r\n { displayName: \"Billing\", getValueText: (value) => value === true ? this.translateService.instant(\"i18n.shared.yes\") : this.translateService.instant(\"i18n.shared.no\"), i18nLabel: 'i18n.domain.parker-administration.overview.fields.billing' },\r\n { displayName: \"HasSubscriptions\", getValueText: (value) => value === true ? this.translateService.instant(\"i18n.shared.yes\") : this.translateService.instant(\"i18n.shared.no\") },\r\n {\r\n displayName: \"Subscription\", getValueText: (value) => {\r\n var sub = this.subscriptionsDropdownValues.find(s => s.id === value);\r\n if (sub) {\r\n return sub.name;\r\n }\r\n return value;\r\n }\r\n }\r\n ];\r\n\r\n public fieldList: object = { text: \"displayName\", value: \"displayName\" };\r\n\r\n public dropdownSettings = DropDownConstantsFactory.createStandardClientDropdownSettings();\r\n public enumDropdownSettings = DropDownConstantsFactory.createEnumDropdownSettings();\r\n public groupTypes = this.enumTranslateService.translateEnum(ParkerGroup, 'i18n.domain.parker-administration.enums.group-type.', true);\r\n\r\n public groups: string[] = [];\r\n\r\n public filterForm: UntypedFormGroup\r\n\r\n public subscriptionsDropdownValues = [];\r\n public chips: ChipModel[] = [];\r\n public client: ClientDTO = this.clientService.selectedClient;\r\n\r\n ngOnInit() {\r\n this.filterForm = this.fb.group({\r\n Group: [null],\r\n CostCenter: [null],\r\n Title: [null],\r\n Workplace: [null],\r\n EmploymentPercentage: [null],\r\n IsLinked: [null],\r\n Active: [null],\r\n Billing: [null],\r\n HasSubscriptions: [null],\r\n Subscription: [null],\r\n Custom1: [null],\r\n Custom2: [null],\r\n Custom3: [null],\r\n Custom4: [null],\r\n Custom5: [null],\r\n Custom6: [null],\r\n Custom7: [null],\r\n Custom8: [null],\r\n Custom9: [null]\r\n });\r\n\r\n if (this.client.custom1Name) {\r\n this.filterFieldList.push({ filterField: \"Custom1\", displayName: this.client.custom1Name, filterOperator: FilterOperator.Equal, getValueText: (value) => value });\r\n }\r\n\r\n if (this.client.custom2Name) {\r\n this.filterFieldList.push({ filterField: \"Custom2\", displayName: this.client.custom2Name, filterOperator: FilterOperator.Equal, getValueText: (value) => value });\r\n }\r\n\r\n if (this.client.custom3Name) {\r\n this.filterFieldList.push({ filterField: \"Custom3\", displayName: this.client.custom3Name, filterOperator: FilterOperator.Equal, getValueText: (value) => value });\r\n }\r\n\r\n if (this.client.custom4Name) {\r\n this.filterFieldList.push({ filterField: \"Custom4\", displayName: this.client.custom4Name, filterOperator: FilterOperator.Equal, getValueText: (value) => value });\r\n }\r\n\r\n if (this.client.custom5Name) {\r\n this.filterFieldList.push({ filterField: \"Custom5\", displayName: this.client.custom5Name, filterOperator: FilterOperator.Equal, getValueText: (value) => value });\r\n }\r\n\r\n if (this.client.custom6Name) {\r\n this.filterFieldList.push({ filterField: \"Custom6\", displayName: this.client.custom6Name, filterOperator: FilterOperator.Equal, getValueText: (value) => value });\r\n }\r\n\r\n if (this.client.custom7Name) {\r\n this.filterFieldList.push({ filterField: \"Custom7\", displayName: this.client.custom7Name, filterOperator: FilterOperator.Equal, getValueText: (value) => value });\r\n }\r\n\r\n if (this.client.custom8Name) {\r\n this.filterFieldList.push({ filterField: \"Custom8\", displayName: this.client.custom8Name, filterOperator: FilterOperator.Equal, getValueText: (value) => value });\r\n }\r\n\r\n if (this.client.custom9Name) {\r\n this.filterFieldList.push({ filterField: \"Custom9\", displayName: this.client.custom9Name, filterOperator: FilterOperator.Equal, getValueText: (value) => value });\r\n }\r\n\r\n this.loadSubscriptionDropdown();\r\n\r\n this.handleFilterAssignmentInForm();\r\n\r\n }\r\n\r\n public ngAfterViewChecked(): void {\r\n this.cdr.detectChanges();\r\n }\r\n\r\n private handleFilterAssignmentInForm() {\r\n this.filterForm.valueChanges.subscribe(() => {\r\n let chips = [];\r\n this.filters = [];\r\n this.filterFieldList.forEach(field => {\r\n if (this.filterForm.controls[field.filterField ?? field.displayName].value != null) {\r\n chips.push(this.getChip(field, this.filterForm.controls[field.filterField ?? field.displayName].value));\r\n\r\n this.filters.push(new FilterDTO({\r\n isComplex: false,\r\n field: field.filterField ?? field.displayName,\r\n operator: field.filterOperator ?? FilterOperator.Equal,\r\n value: this.filterForm.controls[field.filterField ?? field.displayName].value,\r\n }));\r\n }\r\n });\r\n this.chips = chips;\r\n });\r\n }\r\n\r\n private loadSubscriptionDropdown() {\r\n const filters = [\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'Active',\r\n operator: FilterOperator.Equal,\r\n value: 'true'\r\n })\r\n ];\r\n if (this.clientService.selectedClient) {\r\n this.parkingSubscriptionClient.searchParkingSubscriptions(this.clientService.selectedClient.id, filters, 0, 0, 'Name', SortDirection.Ascending)\r\n .subscribe(res => {\r\n this.subscriptionsDropdownValues = res.items.map(s => {\r\n let label = s.name;\r\n if (s.description) {\r\n label += ', ' + s.description;\r\n }\r\n return { name: label, id: s.id };\r\n });\r\n });\r\n }\r\n }\r\n\r\n public openFilterDialog(): void {\r\n this.filterDialog.show();\r\n }\r\n\r\n public applyFilter() {\r\n this.filterUpdated.emit(this.filters);\r\n this.filterDialog.hide();\r\n }\r\n\r\n public closeFilterDialog() {\r\n this.filterDialog.hide();\r\n }\r\n\r\n public isTheFieldSelected(fieldName: string): boolean {\r\n return this.fieldsListBox?.value?.findIndex(v => v === fieldName) >= 0;\r\n }\r\n\r\n public hasFilter(fieldName: string): boolean {\r\n return this.chips.findIndex(f => f.value == fieldName) > -1;\r\n }\r\n\r\n private getChip(field: ParkerFilterField, value: any): ChipModel {\r\n var text = field.getValueText(value);\r\n return { text: (field.i18nLabel ? this.translateService.instant(field.i18nLabel) : field.displayName) + \":\" + text, value: field.filterField ?? field.displayName };\r\n }\r\n\r\n public chipDeleted(chipData: any) {\r\n if (chipData) {\r\n var index = this.filters.findIndex(f => f.field === chipData.data.value);\r\n if (index >= 0) {\r\n this.filters.splice(index, 1);\r\n if (this.chips.findIndex(c => c.value === chipData.data.value) > -1) {\r\n this.chips.splice(this.chips.findIndex(c => c.value === chipData.data.value), 1);\r\n }\r\n\r\n this.filterForm.controls[chipData.data.value].setValue(null, { emitEvent: false });\r\n this.filterUpdated.emit(this.filters);\r\n }\r\n }\r\n }\r\n}\r\n","
    \r\n \r\n \r\n \r\n
    \r\n\r\n \r\n {{'i18n.domain.parker-administration.overview.filter-dialog.title' | translate}}\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n\r\n
    \r\n
    \r\n {{data.i18nLabel | translate}}\r\n
    \r\n\r\n
    \r\n {{data.displayName | translate}}\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n","import { EnumFilterDataManager } from 'src/app/base/shared/syncfusion/enum-filter-data-manager';\r\nimport { ParkerTagUsage, ParkingSubscriptionDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { ModalService } from '../../../base/shared/modal/modal.service';\r\nimport { ClientDTO, Currency, FilterDTO, PagedResultDTOOfParkerDTO, ParkerClient, ParkerDTO, ParkerGroup, ParkerSubscriptionAssignmentDTO, ParkerTagDTO } from '../../../base/models/models.swagger.generated';\r\nimport { CustomValidatorsFactory } from 'src/app/base/shared/validators/custom-validators-factory';\r\nimport { ParkerAdministrationService, zipField } from './parker-administraton.service';\r\nimport { AvpCustomAdaptor } from 'src/app/base/shared/syncfusion/avp-custom-adaptor';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { ClientService } from '../../../base/services/client/client.service';\r\nimport { FormBuilder, Validators } from '@angular/forms';\r\nimport { Component, HostListener, OnDestroy, OnInit, ViewChild } from '@angular/core';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { CommandClickEventArgs, FilterSettingsModel, IFilter, RowDataBoundEventArgs, ToolbarItems, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { GridBaseComponent } from 'src/app/base/shared/grid-base/grid-base.component';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { DateTime } from 'luxon';\r\nimport { ParkerFunctionComponent } from './parker-function/parker-function.component';\r\nimport { GridConstantsFactory } from 'src/app/base/shared/syncfusion/grid-constants-factory';\r\nimport { ClickEventArgs } from '@syncfusion/ej2-angular-navigations';\r\nimport { EditParkerFormType } from './edit-parker-form/edit-parker-form.type';\r\nimport { Observable, of, Subscription } from 'rxjs';\r\nimport { ModalHelperService } from 'src/app/base/shared/modal-helper';\r\nimport { SfCommandButtonType, SfRequestTypes } from 'src/app/base/models/syncfusion-data';\r\nimport { EditParkerFormComponent } from './edit-parker-form/edit-parker-form.component';\r\nimport { SearchFieldComponent } from '../../../base/shared/search-field/search-field.component';\r\nimport { CheckBoxModule } from '@syncfusion/ej2-angular-buttons';\r\nimport { ParkerFilterComponent } from './parker-filter/parker-filter.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { ClientAutocompleteComponent } from '../../../base/shared/client-autocomplete/client-autocomplete.component';\r\nimport { TitleBarComponent } from '../../../base/shared/title-bar/title-bar.component';\r\nimport { SyncfusionTranslationService } from 'src/app/base/services/syncfusion-translation.service';\r\n\r\nenum ParkerLinkStatus {\r\n Unlinkable,\r\n ReadyToLink,\r\n LinkPending,\r\n Linked,\r\n LinkExpired\r\n}\r\n\r\n@Component({\r\n selector: 'app-parker-administration',\r\n templateUrl: './parker-administration.component.html',\r\n styleUrls: ['./parker-administration.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TitleBarComponent,\r\n ClientAutocompleteComponent,\r\n NgIf,\r\n ParkerFilterComponent,\r\n CheckBoxModule,\r\n SearchFieldComponent,\r\n GridModule,\r\n EditParkerFormComponent,\r\n ParkerFunctionComponent,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class ParkerAdministrationComponent extends GridBaseComponent implements OnInit, OnDestroy {\r\n @ViewChild('parkerFunctionDialog') public parkerFunctionDialog: ParkerFunctionComponent\r\n\r\n private toolbarItems: ToolbarItems[] | object = [\r\n { text: this.translateService.instant('i18n.domain.parker-administration.add-parker'), prefixIcon: \"e-icons icon-add\", id: 'add' },\r\n { text: \"𝑓(x) \" + this.translateService.instant('i18n.domain.parker-administration.function-button'), id: 'fnButton', disabled: true },\r\n 'ColumnChooser'\r\n ];\r\n\r\n public toolbar: ToolbarItems[] | object = this.toolbarItems\r\n\r\n public checkBoxFilter = GridConstantsFactory.createCheckBoxFilter();\r\n public subscriptionAssignmentFilter: IFilter = { type: 'CheckBox'};\r\n public subscriptionAssignmentField = 'parkerSubscriptionAssignments';\r\n public filtermodel: FilterSettingsModel = { type: 'Menu' };\r\n\r\n private loadedParker = null;\r\n private subscriptionFilterSource = [];\r\n private translationSubscription: Subscription;\r\n\r\n public zipField = zipField;\r\n\r\n constructor(public parkerAdministrationService: ParkerAdministrationService,\r\n translateService: TranslateService,\r\n clientService: ClientService,\r\n private router: Router,\r\n private syncfusionTranslationService: SyncfusionTranslationService,\r\n private parkerClient: ParkerClient,\r\n private fb: FormBuilder,\r\n private activatedRoute: ActivatedRoute,\r\n private spinnerService: SpinnerService,\r\n private modalService: ModalService,\r\n private modalHelperService: ModalHelperService) {\r\n super(clientService, translateService, parkerAdministrationService);\r\n this.parkerAdministrationService.subscriptionAssignmentFieldName = this.subscriptionAssignmentField;\r\n this.searchOptions = { fields: ['firstName', 'lastName', 'company.name', 'costCenter', 'title', 'identification'] };\r\n this.gridCommands = [\r\n {\r\n type: SfCommandButtonType.Edit,\r\n buttonOption:\r\n {\r\n cssClass: 'icon-btn',\r\n iconCss: 'icon-edit e-icons',\r\n },\r\n },\r\n {\r\n type: SfCommandButtonType.Delete,\r\n buttonOption:\r\n {\r\n cssClass: 'icon-btn',\r\n iconCss: 'icon-trash-can e-icons e-danger'\r\n }\r\n },\r\n {\r\n type: SfCommandButtonType.None,\r\n buttonOption:\r\n {\r\n cssClass: 'icon-btn',\r\n iconCss: 'e-icons',\r\n }\r\n },\r\n ];\r\n }\r\n\r\n @HostListener('window:beforeunload')\r\n public beforeUnload() {\r\n return !this.gridEditForm?.dirty;\r\n }\r\n\r\n public override get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public override set selectedClient(value: ClientDTO) {\r\n if (this.clientService.selectedClient != value) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n this.refreshSubscriptionInfo();\r\n }\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.parkerAdministrationService, this.spinnerService),\r\n });\r\n this.isActiveColumnName = 'active';\r\n this.editDialogTitle = 'i18n.domain.parker-administration.edit-parker';\r\n this.addDialogTitle = 'i18n.domain.parker-administration.add-parker';\r\n this.addIndexFindColumnName = 'identification';\r\n this.dialogConfig.width = 1000;\r\n this.activatedRoute.queryParams.subscribe(params => {\r\n this.parkerAdministrationService.parkerIdToFilter = params?.parkerId;\r\n this.grid?.refresh();\r\n });\r\n this.refreshSubscriptionInfo();\r\n this.translationSubscription = this.syncfusionTranslationService.onLanguageChanged.subscribe((lang: string) => {\r\n // syncfusion grid has an issue with changing the language after the grid when date format is used -> thas is a workaround\r\n if (this.parkerAdministrationService.parkerIdToFilter != null) {\r\n this.router.navigate([], { queryParams: { } }).then(() => {\r\n location.reload();\r\n });\r\n return;\r\n }\r\n location.reload();\r\n });\r\n this.translationSubscription.add(this.translateService.get('i18n.domain.parker-administration.function-button').subscribe((res) => {\r\n this.toolbarItems = [\r\n { text: this.translateService.instant('i18n.domain.parker-administration.add-parker'), prefixIcon: \"e-icons icon-add\", id: 'add' },\r\n { text: \"𝑓(x) \" + this.translateService.instant('i18n.domain.parker-administration.function-button'), id: 'fnButton', disabled: true },\r\n 'ColumnChooser'\r\n ];\r\n }));\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this.parkerAdministrationService.parkerIdToFilter = null;\r\n this.translationSubscription?.unsubscribe();\r\n }\r\n\r\n public getControlPlate(field: string, data: any, column: any): string {\r\n return data[field].filter(s => s.active && s.usage == ParkerTagUsage.CommonTag)\r\n .map(s => s.controlPlateNumber?.toUpperCase() ?? s.identificationCode ?? '')\r\n .join(', ');\r\n }\r\n\r\n public getSubscriptionNamesAsString(data: ParkerDTO): string {\r\n // array to string concatenated with ', '\r\n return data.parkerSubscriptionAssignments?.filter(e => e.active).map(s => s.subscription.name).join(', ');\r\n }\r\n\r\n public formatGroup(data): string {\r\n return 'i18n.domain.parker-administration.enums.group-type.' + ParkerGroup[data.group];\r\n }\r\n\r\n public dataBound(): void {\r\n if (this.parkerAdministrationService.parkerIdToFilter) {\r\n const rowIndex = this.grid.getRowIndexByPrimaryKey(+this.parkerAdministrationService.parkerIdToFilter);\r\n if (rowIndex > -1) {\r\n this.grid.selectRow(rowIndex);\r\n this.grid.startEdit();\r\n }\r\n }\r\n // update function button state\r\n this.updateFunctionButtonState(this.parkerAdministrationService.numTotalRecordsFound > 0);\r\n }\r\n\r\n public rowDataBound(args: RowDataBoundEventArgs): void {\r\n // set button icons dynamically\r\n const parker = args.data as ParkerDTO;\r\n const buttonElement = args.row.querySelector('.e-unboundcelldiv')?.lastElementChild;\r\n const linkStatus = this.getParkerLinkStatus(parker);\r\n args.row.querySelector('.e-unboundcelldiv')?.classList.add('variable-buttons');\r\n switch (linkStatus) {\r\n case ParkerLinkStatus.Unlinkable: {\r\n buttonElement?.classList.add('e-hide');\r\n break;\r\n }\r\n case ParkerLinkStatus.ReadyToLink: {\r\n buttonElement?.firstElementChild?.classList.add('icon-mail--all');\r\n (buttonElement as any).title = this.translateService.instant('i18n.domain.parker-administration.send-link');\r\n break;\r\n }\r\n case ParkerLinkStatus.LinkPending: {\r\n buttonElement?.firstElementChild?.classList.add('icon-mail--reply');\r\n (buttonElement as any).title = this.translateService.instant('i18n.domain.parker-administration.resend-link');\r\n break;\r\n }\r\n case ParkerLinkStatus.LinkExpired: {\r\n buttonElement?.firstElementChild?.classList.add('icon-mail--reply', 'e-danger');\r\n (buttonElement as any).title = this.translateService.instant('i18n.domain.parker-administration.resend-link-upon-expiration');\r\n break;\r\n }\r\n case ParkerLinkStatus.Linked: {\r\n buttonElement?.firstElementChild?.classList.add('icon-unlink');\r\n (buttonElement as any).title = this.translateService.instant('i18n.domain.parker-administration.unlink');\r\n break;\r\n }\r\n }\r\n }\r\n\r\n public commandClicked(args: CommandClickEventArgs): void {\r\n if (args.commandColumn.type === SfCommandButtonType.None) {\r\n const parker = args.rowData as ParkerDTO;\r\n const linkStatus = this.getParkerLinkStatus(parker);\r\n\r\n if (linkStatus === ParkerLinkStatus.Linked) {\r\n const dialog = this.modalService.showOkCancelDialog('i18n.domain.parker-administration.unlink', 'i18n.domain.parker-administration.unlink-question');\r\n dialog.onOkSubject.subscribe(() => {\r\n this.parkerAdministrationService.unlinkUserFromParker(parker.id).subscribe(() => {\r\n this.grid.refresh();\r\n });\r\n });\r\n return;\r\n }\r\n\r\n if (linkStatus === ParkerLinkStatus.LinkPending || linkStatus === ParkerLinkStatus.ReadyToLink) {\r\n this.parkerAdministrationService.initializeParkerToUserLink(parker.id).subscribe(() => {\r\n this.grid.refresh();\r\n });\r\n }\r\n }\r\n }\r\n\r\n public getFilterItem(data) {\r\n return data.name;\r\n }\r\n\r\n public override actionBegin(args: any) {\r\n const rowParker = args.rowData as ParkerDTO;\r\n if (!this.loadedParker && rowParker?.id) {\r\n this.spinnerService.showSpinner = true;\r\n args.cancel = true;\r\n this.parkerClient.getParker(rowParker.id)\r\n .subscribe(\r\n {\r\n next: (parker) => {\r\n this.loadedParker = parker;\r\n this.grid.selectRow(this.grid.getRowIndexByPrimaryKey(rowParker.id));\r\n this.grid.startEdit();\r\n this.spinnerService.showSpinner = false;\r\n }, error: () => {\r\n this.spinnerService.showSpinner = false;\r\n }\r\n });\r\n } else {\r\n super.actionBegin(args);\r\n }\r\n\r\n if (args.requestType === SfRequestTypes.FilterBeforeOpen && args.columnName === this.subscriptionAssignmentField) {\r\n args.filterModel.options.dataSource = new EnumFilterDataManager(this.subscriptionFilterSource);\r\n }\r\n if (args.requestType === SfRequestTypes.FilterChoiceRequest && args.columnName === this.subscriptionAssignmentField) {\r\n args.query.distincts = []; // will set custom trigger flag and avoid filtering the list for distinct values of the enum filter field\r\n args.filterModel.options.dataManager = null;\r\n }\r\n }\r\n\r\n public override actionComplete(args) {\r\n if (args.requestType === SfRequestTypes.Save || args.requestType === SfRequestTypes.Cancel) {\r\n this.loadedParker = null;\r\n }\r\n super.actionComplete(args);\r\n }\r\n\r\n protected initializeEditForm(data: ParkerDTO): void {\r\n if (this.loadedParker) {\r\n data = this.loadedParker;\r\n }\r\n\r\n this.gridEditForm = this.fb.group({\r\n id: this.fb.control(data.id),\r\n firstName: this.fb.control(data.firstName, Validators.required),\r\n lastName: this.fb.control(data.lastName, Validators.required),\r\n identification: this.fb.control(data.identification, Validators.maxLength(50)),\r\n group: this.fb.control(data.group ?? ParkerGroup.Undefined),\r\n companyId: this.fb.control(data.company?.id),\r\n costCenter: this.fb.control(data.costCenter),\r\n title: this.fb.control(data.title),\r\n address: this.fb.control(data.address),\r\n zip: this.fb.control(data.zip, CustomValidatorsFactory.createZipValidator()),\r\n city: this.fb.control(data.city),\r\n country: this.fb.control(data.country),\r\n privateAddress: this.fb.control(data.privateAddress),\r\n privateZip: this.fb.control(data.privateZIP, CustomValidatorsFactory.createZipValidator()),\r\n privateCity: this.fb.control(data.privateCity),\r\n privateCountry: this.fb.control(data.privateCountry),\r\n email: this.fb.control(data.email, Validators.email),\r\n mobile: this.fb.control(data.mobile, CustomValidatorsFactory.createPhoneValidator()),\r\n phone: this.fb.control(data.phone, CustomValidatorsFactory.createPhoneValidator()),\r\n billing: this.fb.control(data.billing ?? true),\r\n workplace: this.fb.control(data.workplace),\r\n employmentPercentage: this.fb.control(data.employmentPercentage ?? 100, Validators.min(1)),\r\n active: this.fb.control(data.active ?? true),\r\n billingCurrency: this.fb.control(data.billingCurrency ?? Currency.CHF),\r\n linkedUser: this.fb.control({ value: data.linkedUserUserName, disabled: true }),\r\n modifiedBy: this.fb.control({value: data.modifiedBy, disabled: true}),\r\n modifiedOn: this.fb.control({value: data.modifiedOn ? data.modifiedOn.toFormat('dd.MM.yyyy HH:mm:ss') : null, disabled: true}),\r\n tags: this.fb.control(data.tags ?? []),\r\n parkerSubscriptionAssignments: this.fb.control(data.parkerSubscriptionAssignments ?? []),\r\n custom1: this.fb.control(data.custom1),\r\n custom2: this.fb.control(data.custom2),\r\n custom3: this.fb.control(data.custom3),\r\n custom4: this.fb.control(data.custom4),\r\n custom5: this.fb.control(data.custom5),\r\n custom6: this.fb.control(data.custom6),\r\n custom7: this.fb.control(data.custom7),\r\n custom8: this.fb.control(data.custom8),\r\n custom9: this.fb.control(data.custom9),\r\n comment: this.fb.control(data.comment),\r\n entryDate: this.fb.control(data.entryDate?.toJSDate() ?? DateTime.now().toJSDate(), Validators.required),\r\n exitDate: this.fb.control(data.exitDate?.toJSDate() ?? null),\r\n });\r\n this.gridEditForm.controls.exitDate.setValidators(CustomValidatorsFactory.validateDateNotBeforeDate(this.gridEditForm.controls.entryDate));\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData): any {\r\n const fullName = rowData.firstName + (rowData.lastName ? (' ' + rowData.lastName) : '');\r\n return { params: fullName };\r\n }\r\n\r\n protected override addObjectCompare(addedObject: any, rowObject: any): boolean {\r\n return addedObject.firstName === rowObject.firstName\r\n && addedObject.lastName === rowObject.lastName\r\n && addedObject.identification === rowObject.identification\r\n && addedObject.address === rowObject.address\r\n && addedObject.zip === rowObject.zip\r\n && addedObject.city === rowObject.city\r\n && addedObject.country === rowObject.country\r\n && addedObject.email === rowObject.email;\r\n }\r\n\r\n protected override getDataToSave(): any {\r\n return {\r\n ...this.gridEditForm.value,\r\n parkerSubscriptionAssignments: this.gridEditForm.value.parkerSubscriptionAssignments?.map(assignment => ({\r\n ...assignment,\r\n id: assignment.id < 0 ? 0 : assignment.id,\r\n subscriptionId: assignment.subscription.id,\r\n })),\r\n tags: this.gridEditForm.value.tags?.map(tag => ({\r\n ...tag,\r\n id: tag.id < 0 ? 0 : tag.id,\r\n }))\r\n };\r\n }\r\n\r\n private getParkerLinkStatus(parker: ParkerDTO): ParkerLinkStatus {\r\n if (parker.linkedUserUserName) {\r\n return ParkerLinkStatus.Linked;\r\n }\r\n\r\n if (parker.userLinkCodeValidUntil) {\r\n if (parker.userLinkCodeValidUntil < DateTime.now()) {\r\n return ParkerLinkStatus.LinkExpired;\r\n }\r\n return ParkerLinkStatus.LinkPending;\r\n }\r\n\r\n if (parker.email) {\r\n return ParkerLinkStatus.ReadyToLink;\r\n }\r\n\r\n return ParkerLinkStatus.Unlinkable;\r\n }\r\n /**\r\n * onFilterUpdated\r\n */\r\n public onFilterUpdated(filters: FilterDTO[]) {\r\n this.parkerAdministrationService.filters = filters;\r\n this.grid.refresh();\r\n }\r\n\r\n public showFunctionDialog() {\r\n this.parkerFunctionDialog.functionExecuted.subscribe(() => {\r\n this.grid.refresh();\r\n });\r\n let numTotalRecordsToWorkOn = this.grid.getSelectedRecords().length;\r\n if (numTotalRecordsToWorkOn <= 0) {\r\n numTotalRecordsToWorkOn = this.parkerAdministrationService.numTotalRecordsFound;\r\n }\r\n if (this.grid.getSelectedRecords().length > 0) {\r\n this.parkerFunctionDialog.openDialog(numTotalRecordsToWorkOn, this.loadPagedParkersForFunctions.bind(this));\r\n } else {\r\n this.modalHelperService.confirm(\r\n 'i18n.domain.parker-administration.confirm-all.title',\r\n this.translateService.instant('i18n.domain.parker-administration.confirm-all.content', {numParkers: numTotalRecordsToWorkOn}),\r\n () => this.parkerFunctionDialog.openDialog(numTotalRecordsToWorkOn, this.loadPagedParkersForFunctions.bind(this)),\r\n );\r\n }\r\n }\r\n\r\n public onToolbarCommandClick(args: ClickEventArgs) {\r\n if (args.item.id === 'fnButton' && this.parkerAdministrationService.numTotalRecordsFound > 0) {\r\n this.showFunctionDialog();\r\n } else if (args.item.id === 'add') {\r\n this.grid.addRecord();\r\n }\r\n }\r\n\r\n public loadPagedParkersForFunctions(skip: number, take: number): Observable {\r\n const selectedRecords = this.grid.getSelectedRecords() as ParkerDTO[];\r\n if (selectedRecords.length > 0) {\r\n if (skip < selectedRecords.length) {\r\n const subSelection = selectedRecords.slice(skip, skip + take);\r\n return of(new PagedResultDTOOfParkerDTO({ items: subSelection, totalNumberOfItems: selectedRecords.length }));\r\n }\r\n return of(new PagedResultDTOOfParkerDTO({ items: [], totalNumberOfItems: selectedRecords.length }));\r\n }\r\n return this.parkerAdministrationService.loadPagedParkersForFunctions(skip, take);\r\n }\r\n\r\n private updateFunctionButtonState(enableButton: boolean) {\r\n if (enableButton) {\r\n this.toolbar = [\r\n this.toolbarItems[0],\r\n { text: this.toolbarItems[1].text, id: this.toolbarItems[1].id },\r\n this.toolbarItems[2]\r\n ]\r\n }\r\n else {\r\n this.toolbar = [\r\n this.toolbarItems[0],\r\n { text: this.toolbarItems[1].text, id: this.toolbarItems[1].id, disabled: true },\r\n this.toolbarItems[2]\r\n ]\r\n }\r\n }\r\n\r\n private refreshSubscriptionInfo() {\r\n this.parkerAdministrationService.loadSubscriptions().subscribe(result => {\r\n if (!result) {\r\n return;\r\n }\r\n this.refreshSubscriptionFilterSource(result?.items);\r\n });\r\n }\r\n\r\n private refreshSubscriptionFilterSource(subscriptions: ParkingSubscriptionDTO[]): void {\r\n this.subscriptionFilterSource = subscriptions?.map(s => {\r\n const item = {id: s.id, name: s.name};\r\n item[this.subscriptionAssignmentField] = s.name; // since syncfusion is using this field for displaying and is also automatically sorting on it - we have to use the name:(\r\n return item;\r\n }) ?? [];\r\n }\r\n}\r\n","\r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{getSubscriptionNamesAsString(data)}}\r\n \r\n \r\n \r\n \r\n {{formatGroup(data) | translate}}\r\n \r\n {{formatGroup(data) | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{formatIsActive(data, 'active')}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n","import { Directive, OnInit, ElementRef, Renderer2, NgModule } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[appRequired]',\r\n standalone: true\r\n})\r\nexport class MarkAsteriskDirective { // implements OnInit\r\n\r\n constructor(private el: ElementRef) {\r\n this.setup();\r\n }\r\n\r\n // constructor(private renderer: Renderer2, private el: ElementRef) {\r\n\r\n // }\r\n\r\n setup()\r\n {\r\n // const parent = this.renderer.parentNode(this.el.nativeElement);\r\n const parent = this.el.nativeElement.parentNode;\r\n\r\n if (parent.getElementsByTagName('LABEL').length && !parent.getElementsByClassName('required-asterisk').length) {\r\n // parent.getElementsByTagName('LABEL')[0].innerHTML += '*';\r\n const span = document.createElement('span');\r\n span.className = 'required-asterisk';\r\n span.innerHTML = '*';\r\n\r\n parent.append(parent.getElementsByTagName('label')[0]);\r\n parent.appendChild(span);\r\n if (parent.getElementsByTagName('input').length) {\r\n if (parent.getElementsByTagName('div').length && parent.getElementsByClassName('flex-container').length)\r\n {parent.append(parent.getElementsByTagName('div')[0]);}\r\n else\r\n {parent.appendChild(parent.getElementsByTagName('input')[0]);}\r\n }\r\n else if (parent.getElementsByTagName('select').length)\r\n {parent.appendChild(parent.getElementsByTagName('select')[0]);}\r\n }\r\n }\r\n\r\n // ngOnInit() {\r\n // const parent = this.renderer.parentNode(this.el.nativeElement);\r\n\r\n // if (parent.getElementsByTagName('LABEL').length && !parent.getElementsByClassName('required-asterisk').length) {\r\n // parent.getElementsByTagName('LABEL')[0].innerHTML += '*';\r\n // }\r\n // }\r\n}\r\n\r\n\r\n","import { catchError, tap } from 'rxjs/operators';\r\nimport { ToastService } from './../services/toast.service';\r\nimport { SpinnerService } from './../spinner/spinner.service';\r\nimport { UserAccountClient } from './../models/models.swagger.generated';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { FormGroup, FormBuilder, Validators, FormControl, ReactiveFormsModule } from '@angular/forms';\r\nimport { of } from 'rxjs';\r\nimport { AppErrorMessagesService } from '../services/app-error-messages.service';\r\nimport { ErrorType } from 'src/app/core/routing/error-types';\r\nimport { loginRoute } from 'src/app/core/routing/route-names';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { RouterLink } from '@angular/router';\r\nimport { AppErrorMessagesComponent } from '../error-messages/app-error-messages.component';\r\nimport { MarkAsteriskDirective } from '../../directives/mark-asterisk.directive';\r\nimport { NgIf } from '@angular/common';\r\nimport { TitleBarComponent } from '../shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-forgot-password',\r\n templateUrl: './forgot-password.component.html',\r\n styleUrls: ['./forgot-password.component.scss'],\r\n standalone: true,\r\n imports: [TitleBarComponent, NgIf, ReactiveFormsModule, MarkAsteriskDirective, AppErrorMessagesComponent, RouterLink, TranslateModule]\r\n})\r\nexport class ForgotPasswordComponent implements OnInit {\r\n\r\n public forgotPasswordForm: FormGroup<{userName: FormControl}>;\r\n public forgotPasswordSuccess = false;\r\n public loginRoute = loginRoute;\r\n\r\n constructor(\r\n private formBuilder: FormBuilder,\r\n private userAccountClient: UserAccountClient,\r\n private spinnerService: SpinnerService,\r\n private toastService: ToastService,\r\n private errorMessageService: AppErrorMessagesService\r\n ) { }\r\n\r\n public ngOnInit(): void {\r\n this.forgotPasswordForm = this.formBuilder.group({\r\n userName: this.formBuilder.control(null, Validators.required)\r\n });\r\n }\r\n\r\n public get formFields() {\r\n return this.forgotPasswordForm.controls;\r\n }\r\n\r\n public formSubmit() {\r\n if (this.forgotPasswordForm.valid) {\r\n this.spinnerService.showSpinner = true;\r\n const userName = this.forgotPasswordForm.controls.userName.value;\r\n this.userAccountClient.forgotPassword(\r\n {\r\n username: userName\r\n } as any).pipe(\r\n tap(() => {\r\n this.spinnerService.showSpinner = false;\r\n this.forgotPasswordSuccess = true;\r\n }),\r\n catchError((error: any) => {\r\n this.spinnerService.showSpinner = false;\r\n this.handleError(error);\r\n return of(error);\r\n })\r\n ).subscribe();\r\n }\r\n }\r\n\r\n private handleError(error: any) {\r\n const apiErrorCode = this.errorMessageService.getApiErrorCode(error);\r\n let i18nErrorMessage = 'i18n.errors.server-error.message';\r\n const i18nErrorTitle = 'i18n.errors.server-error.title';\r\n if (apiErrorCode) {\r\n i18nErrorMessage = 'i18n.base.forgot-password.errors.' + apiErrorCode;\r\n }\r\n this.toastService.showError(i18nErrorTitle, i18nErrorMessage,\r\n null, ErrorType.serverError);\r\n }\r\n}\r\n","\r\n
    \r\n
    \r\n
    \r\n

    {{ \"i18n.base.forgot-password.info\" | translate }}

    \r\n
    \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n {{ \"i18n.base.forgot-password.back-button\" | translate }}\r\n \r\n
    \r\n
    \r\n

    {{ \"i18n.base.forgot-password.success-info\" | translate }}

    \r\n
    \r\n
    \r\n
    \r\n","import { Directive, ElementRef, HostListener, NgModule } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[appNumericDirective]',\r\n standalone: true,\r\n})\r\nexport class NumericDirective {\r\n\r\n private navigationKeys = [\r\n 'Backspace',\r\n 'Delete',\r\n 'Tab',\r\n 'Escape',\r\n 'Enter',\r\n 'Home',\r\n 'End',\r\n 'ArrowLeft',\r\n 'ArrowRight',\r\n 'Clear',\r\n 'Copy',\r\n 'Paste',\r\n ];\r\n\r\n constructor(private el: ElementRef) {\r\n }\r\n\r\n @HostListener('keydown', ['$event'])\r\n onKeyDown(e: KeyboardEvent) {\r\n if (\r\n // Allow: Delete, Backspace, Tab, Escape, Enter, etc\r\n this.navigationKeys.indexOf(e.key) > -1 ||\r\n (e.key === 'a' && e.ctrlKey === true) || // Allow: Ctrl+A\r\n (e.key === 'c' && e.ctrlKey === true) || // Allow: Ctrl+C\r\n (e.key === 'v' && e.ctrlKey === true) || // Allow: Ctrl+V\r\n (e.key === 'x' && e.ctrlKey === true) || // Allow: Ctrl+X\r\n (e.key === 'a' && e.metaKey === true) || // Cmd+A (Mac)\r\n (e.key === 'c' && e.metaKey === true) || // Cmd+C (Mac)\r\n (e.key === 'v' && e.metaKey === true) || // Cmd+V (Mac)\r\n (e.key === 'x' && e.metaKey === true) // Cmd+X (Mac)\r\n ) {\r\n return; // let it happen, don't do anything\r\n }\r\n // Ensure that it is a number and stop the keypress\r\n if (e.key === ' ' || isNaN(Number(e.key))) {\r\n e.preventDefault();\r\n }\r\n }\r\n\r\n @HostListener('paste', ['$event'])\r\n onPaste(event: ClipboardEvent) {\r\n event.preventDefault();\r\n const pastedInput: string = event.clipboardData\r\n .getData('text/plain')\r\n .replace(/[^0-9]/g, ''); // get a digit-only string\r\n document.execCommand('insertText', false, pastedInput);\r\n }\r\n\r\n\r\n}\r\n\r\n\r\n","import { DataManager } from '@syncfusion/ej2-data';\r\nimport { FinanceClientPriceModelService } from './finance-client-price-model.service';\r\nimport { DatePipe } from '@angular/common';\r\nimport { Component, OnDestroy, OnInit, ViewChild } from '@angular/core';\r\nimport { TranslateModule, TranslateService } from '@ngx-translate/core';\r\nimport { EditSettingsModel, GridComponent, GridModule, SaveEventArgs, ToolbarItems } from '@syncfusion/ej2-angular-grids';\r\nimport { DialogComponent, DialogModule } from '@syncfusion/ej2-angular-popups';\r\nimport { Subscription } from 'rxjs';\r\nimport { FinanceClientPriceModelDTO, FinancePriceModelDataDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { SfAction, SfRequestTypes } from 'src/app/base/models/syncfusion-data';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { ModalHelperService } from 'src/app/base/shared/modal-helper';\r\n\r\n@Component({\r\n selector: 'app-price-model-edit',\r\n templateUrl: './price-model-edit.component.html',\r\n styleUrls: ['./price-model-edit.component.scss'],\r\n standalone: true,\r\n imports: [\r\n DropDownListModule,\r\n DialogModule,\r\n TranslateModule,\r\n GridModule,\r\n DatePipe,\r\n FormsModule\r\n ]\r\n})\r\n\r\nexport class PriceModelEditComponent implements OnInit, OnDestroy {\r\n\r\n @ViewChild('priceModelDialog') public priceModelDialog: DialogComponent;\r\n @ViewChild('grid') public grid: GridComponent;\r\n\r\n public priceModels: FinanceClientPriceModelDTO[] = [];\r\n\r\n public priceModelMasterData: FinancePriceModelDataDTO;\r\n private clientId: number;\r\n private _subscriptions: Subscription = new Subscription();\r\n\r\n public editSettings: EditSettingsModel = { allowEditing: true, allowAdding: true, allowDeleting: true, mode: 'Normal', showDeleteConfirmDialog: true };\r\n public toolbar: ToolbarItems[] = ['Add', 'Edit', 'Delete', 'Update', 'Cancel'];\r\n public percentRules: object = { min: 0, max: 100, required: true };\r\n public percentOrNullRules: object = { min: 0, max: 100, required: false };\r\n public priceRules: object = { min: 0, max: 10000, required: true };\r\n public numberRules: object = { min: 0, max: 100000, required: true };\r\n public parkingSpacePriceModelEdit?: Object;\r\n public parkerPriceModelEdit?: Object;\r\n public dropDownFields: Object = { text: 'modelName', value: 'modelName' };\r\n public priceModel: FinanceClientPriceModelDTO | any;\r\n\r\n constructor(\r\n private service: FinanceClientPriceModelService,\r\n private translateService: TranslateService,\r\n private modalService: ModalHelperService\r\n ) { }\r\n\r\n ngOnInit() {\r\n if (this.priceModelMasterData === undefined) {\r\n this._subscriptions.add(\r\n this._subscriptions.add(this.service.getPriceModelMasterData().subscribe(\r\n (priceModelMasterData) => {\r\n this.priceModelMasterData = priceModelMasterData;\r\n this.parkerPriceModelEdit = {\r\n params: {\r\n dataSource: new DataManager(this.priceModelMasterData.parkerPriceModels),\r\n fields: { text: 'modelName', value: 'modelName' },\r\n actionComplete: () => false,\r\n popupWidth: '250px',\r\n }\r\n };\r\n this.parkingSpacePriceModelEdit = {\r\n params: {\r\n dataSource: new DataManager(this.priceModelMasterData.parkingSpacePriceModels),\r\n fields: { text: 'modelName', value: 'modelName' },\r\n actionComplete: () => false,\r\n popupWidth: '250px',\r\n }\r\n };\r\n }\r\n )\r\n )\r\n );\r\n }\r\n }\r\n\r\n public openDialog(clientId: number) {\r\n this.clientId = clientId;\r\n this._subscriptions.add(\r\n this.service.getPriceModel(clientId).subscribe(\r\n (priceModels) => {\r\n this.priceModels = priceModels;\r\n }\r\n )\r\n );\r\n this.priceModelDialog.show();\r\n }\r\n\r\n public closePriceModelDialog() {\r\n // check if any changes were made, if yes show confirm dialog\r\n if (this.grid.isEdit) {\r\n this.modalService.confirm('i18n.errors.discard-dialog.title', 'i18n.errors.discard-dialog.question', () => {\r\n this.priceModelDialog.hide();\r\n });\r\n }\r\n else {\r\n this.priceModelDialog.hide();\r\n }\r\n }\r\n\r\n public formatBoolean(value: boolean): string {\r\n if (value === true) {\r\n return this.translateService.instant('i18n.shared.yes');\r\n } else {\r\n return this.translateService.instant('i18n.shared.no');\r\n }\r\n }\r\n\r\n public actionBegin(args: SaveEventArgs) {\r\n if (args.requestType === SfRequestTypes.BeginEdit || args.requestType === SfRequestTypes.Add) {\r\n this.priceModel = Object.assign({}, args.rowData);\r\n }\r\n if (args.requestType === SfRequestTypes.Save) {\r\n (args.data as FinanceClientPriceModelDTO).parkerPriceModelName = this.priceModel.parkerPriceModelName;\r\n (args.data as FinanceClientPriceModelDTO).parkingSpacePriceModelName = this.priceModel.parkingSpacePriceModelName;\r\n }\r\n }\r\n\r\n public actionComplete(args: any) {\r\n if (args.requestType === SfRequestTypes.Save) {\r\n if (args.action === SfAction.Add) {\r\n this._subscriptions.add(this.service.createPriceModel(this.clientId, args.data).subscribe(() => {\r\n this.refreshGrid();\r\n }));\r\n\r\n }\r\n else if (args.action === SfAction.Edit) {\r\n this.service.updatePriceModel(args.data).subscribe(() => {\r\n this.refreshGrid();\r\n });\r\n }\r\n }\r\n else if (args.requestType === SfRequestTypes.Delete) {\r\n this.service.deletePriceModel(args.data[0].id).subscribe(() => {\r\n this.refreshGrid();\r\n });\r\n }\r\n }\r\n\r\n private refreshGrid() {\r\n this._subscriptions.add(\r\n this.service.getPriceModel(this.clientId).subscribe(\r\n (priceModels) => {\r\n this.priceModels = priceModels;\r\n this.grid.refresh();\r\n }\r\n )\r\n );\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this._subscriptions?.unsubscribe();\r\n }\r\n\r\n}\r\n","\r\n \r\n {{'i18n.domain.client-administration.price-model.title' | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data?.validTo | date:'dd.MM.yyyy'}}\r\n \r\n \r\n \r\n \r\n {{formatBoolean(data?.feesPaidByParkingSpaceOwner)}}\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n {{formatBoolean(data?.autoParkingActive)}}\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n {{formatBoolean(data?.thirdPartyInterfaceActive)}}\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n","import { ConnectionMode } from './../../../../base/models/models.swagger.generated';\r\nimport { ReactiveFormsModule, FormGroup } from '@angular/forms';\r\nimport { Component, Input, OnInit, ViewChild } from '@angular/core';\r\nimport { startWith } from 'rxjs/operators';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { ButtonGroupComponent } from '../../../../base/shared/button-group/button-group.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { YesNoGroupButtonComponent } from '../../../../base/shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { AccordionModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { NumericDirective } from '../../../../directives/numeric.directive';\r\nimport { AppErrorMessagesComponent } from '../../../../base/error-messages/app-error-messages.component';\r\nimport { ClientAdministrationEditFormGroup } from './client-administraion-edit-form.type';\r\nimport { PriceModelEditComponent } from './price-model-edit/price-model-edit.component';\r\n\r\n@Component({\r\n selector: 'app-client-administraion-edit-form',\r\n templateUrl: './client-administraion-edit-form.component.html',\r\n styleUrls: ['./client-administraion-edit-form.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, AppErrorMessagesComponent, NumericDirective, AccordionModule, YesNoGroupButtonComponent, NgIf, ButtonGroupComponent, TranslateModule,\r\n PriceModelEditComponent\r\n ]\r\n})\r\nexport class ClientAdministraionEditFormComponent implements OnInit {\r\n\r\n @Input() public clientEditForm: ClientAdministrationEditFormGroup;\r\n\r\n @ViewChild('priceModelDialog') public priceModelDialog: PriceModelEditComponent;\r\n\r\n public get isEdit(): boolean {\r\n return !!this.clientEditForm.get('id').value;\r\n }\r\n\r\n public ConnectionMode = ConnectionMode;\r\n\r\n constructor() { }\r\n\r\n public ngOnInit(): void {\r\n this.clientEditForm.get('automaticParkingSchedulesEnabled').valueChanges\r\n .pipe(\r\n startWith(this.clientEditForm.get('automaticParkingSchedulesEnabled').value)\r\n )\r\n .subscribe(val => {\r\n if (val) {\r\n this.clientEditForm.get('automaticParkingScheduleToleranceInMinutes').enable();\r\n } else {\r\n this.clientEditForm.get('automaticParkingScheduleToleranceInMinutes').disable();\r\n }\r\n });\r\n }\r\n\r\n public openPriceModelDialog(): void {\r\n this.priceModelDialog.openDialog(this.clientEditForm.controls.id.value);\r\n }\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n {{'i18n.domain.client-administration.overview.form.unit-days'\r\n |\r\n translate}}\r\n \r\n
    \r\n
    \r\n\r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    {{'i18n.domain.client-administration.overview.accordions.settings'\r\n | translate}}
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n min\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n \r\n \r\n
    {{'i18n.domain.client-administration.overview.accordions.custom-fields'\r\n | translate}}
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { ConnectionMode } from './../../../base/models/models.swagger.generated';\r\n/* eslint-disable @typescript-eslint/member-ordering */\r\nimport { AbstractControl, AsyncValidatorFn, FormBuilder, UntypedFormBuilder, Validators } from '@angular/forms';\r\nimport { AvpCustomAdaptor } from '../../../base/shared/syncfusion/avp-custom-adaptor';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { userManagementRoute } from '../../../core/routing/route-names';\r\nimport { Router } from '@angular/router';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { ClientAdministrationService } from './client-administration.service';\r\nimport { Component, HostListener, OnInit } from '@angular/core';\r\nimport { CommandClickEventArgs, CommandModel, SearchSettingsModel, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { GridConstantsFactory } from 'src/app/base/shared/syncfusion/grid-constants-factory';\r\nimport { CustomValidatorsFactory } from 'src/app/base/shared/validators/custom-validators-factory';\r\nimport { GridBaseComponent } from 'src/app/base/shared/grid-base/grid-base.component';\r\nimport { ClientDTO, FilterDTO, FilterOperator, SortDirection } from 'src/app/base/models/models.swagger.generated';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { timer } from 'rxjs';\r\nimport { map, switchMap } from 'rxjs/operators';\r\nimport { SfCommandButtonType } from 'src/app/base/models/syncfusion-data';\r\nimport { ClientAdministraionEditFormComponent } from './client-administraion-edit-form/client-administraion-edit-form.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { ToolbarModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { CheckBoxModule } from '@syncfusion/ej2-angular-buttons';\r\nimport { SearchFieldComponent } from '../../../base/shared/search-field/search-field.component';\r\nimport { TitleBarComponent } from '../../../base/shared/title-bar/title-bar.component';\r\nimport { ClientAdministrationEditFormType } from './client-administraion-edit-form/client-administraion-edit-form.type';\r\n\r\n@Component({\r\n selector: 'app-client-administration',\r\n templateUrl: './client-administration.component.html',\r\n styleUrls: ['./client-administration.component.scss'],\r\n standalone: true,\r\n imports: [TitleBarComponent, SearchFieldComponent, CheckBoxModule, GridModule, ToolbarModule, NgIf, ClientAdministraionEditFormComponent, TranslateModule]\r\n})\r\nexport class ClientAdministrationComponent extends GridBaseComponent implements OnInit {\r\n private addUserCommand = {\r\n type: 'None',\r\n title: this.translateService.instant('i18n.domain.client-administration.overview.tooltips.add-users'),\r\n buttonOption:\r\n {\r\n cssClass: 'icon-btn',\r\n iconCss: 'icon-user--multiple e-icons'\r\n }\r\n } as CommandModel;\r\n\r\n private defaultRetentionPeriodInDays = 180;\r\n\r\n constructor(private clientAdministrationService: ClientAdministrationService,\r\n private router: Router,\r\n private fb: FormBuilder,\r\n translateService: TranslateService,\r\n private spinnerService: SpinnerService) {\r\n super(null, translateService, clientAdministrationService);\r\n this.gridCommands = [...GridConstantsFactory.createStandardGridCommands(), this.addUserCommand];\r\n this.searchOptions = {fields: ['name', 'address', 'zip', 'city', 'email', 'phoneNumber']};\r\n }\r\n\r\n @HostListener('window:beforeunload')\r\n beforeUnload() {\r\n return !this.gridEditForm?.dirty;\r\n }\r\n\r\n public ngOnInit() {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.clientAdministrationService, this.spinnerService),\r\n });\r\n this.isActiveColumnName = 'isActive';\r\n this.editDialogTitle = 'i18n.domain.client-administration.overview.edit-dialog-title';\r\n this.addDialogTitle = 'i18n.domain.client-administration.overview.tooltips.add';\r\n // a fix to make sure that translated tooltip is loaded properly\r\n setTimeout(() => {\r\n this.translateService.get('i18n.domain.client-administration.overview.tooltips.add-users').subscribe((value: string) => {\r\n this.addUserCommand.title = value;\r\n });\r\n }, 200);\r\n this.translateService.onLangChange.subscribe(_ => {\r\n this.addUserCommand.title = this.translateService.instant('i18n.domain.client-administration.overview.tooltips.add-users');\r\n });\r\n }\r\n\r\n public commandClick(args: CommandClickEventArgs) {\r\n if (args.commandColumn?.type === SfCommandButtonType.None) {\r\n const clientId = ((args.rowData) as any).id;\r\n this.router.navigate([userManagementRoute], {queryParams: { clientId }});\r\n }\r\n }\r\n\r\n protected override addObjectCompare(addedObject: ClientDTO, rowObject: ClientDTO): boolean {\r\n if (this.addIndexFindColumnName) {\r\n return addedObject.name === rowObject.name && addedObject.address === rowObject.address && addedObject.zip === rowObject.zip;\r\n }\r\n return false;\r\n }\r\n\r\n protected override getDataToSave(): any {\r\n const formValue = this.gridEditForm.value;\r\n formValue.clientIdent = formValue.clientIdent.trim();\r\n\r\n return {\r\n ...formValue,\r\n automaticParkingScheduleToleranceInMinutes: formValue.automaticParkingScheduleToleranceInMinutes ?? 0\r\n };\r\n }\r\n\r\n protected initializeEditForm(data: ClientDTO): void {\r\n this.gridEditForm = this.fb.group({\r\n id: this.fb.control(data.id),\r\n name: this.fb.control(data.name ?? null, [Validators.required]),\r\n address: this.fb.control(data.address ?? null),\r\n zip: this.fb.control(data.zip ?? null, [CustomValidatorsFactory.createZipValidator()]),\r\n city: this.fb.control(data.city ?? null),\r\n email: this.fb.control(data.email ?? null, [Validators.email]),\r\n phoneNumber: this.fb.control(data.phoneNumber ?? null, [CustomValidatorsFactory.createPhoneValidator()]),\r\n dataRetentionPeriodInDays: this.fb.control(data.dataRetentionPeriodInDays ?? this.defaultRetentionPeriodInDays, [Validators.required, Validators.min(0)]),\r\n clientIdent: this.fb.control(data.clientIdent ?? null, [Validators.required, Validators.maxLength(20)], [this.clientIdentValidator()]),\r\n automaticParkingSchedulesEnabled: this.fb.control(data.automaticParkingSchedulesEnabled ?? false, [Validators.required]),\r\n automaticParkingScheduleToleranceInMinutes : this.fb.control(data.automaticParkingScheduleToleranceInMinutes, [Validators.min(0)]),\r\n isActive: this.fb.control(data.isActive),\r\n connectionMode: this.fb.control(data.connectionMode ?? ConnectionMode.RequestConnection),\r\n qrCodeIdentificationEnabled: this.fb.control(data.qrCodeIdentificationEnabled ?? false),\r\n auditLogEnabled: this.fb.control(data.auditLogEnabled ?? false),\r\n custom1Name: this.fb.control(data.custom1Name ?? null),\r\n custom2Name: this.fb.control(data.custom2Name ?? null),\r\n custom3Name: this.fb.control(data.custom3Name ?? null),\r\n custom4Name: this.fb.control(data.custom4Name ?? null),\r\n custom5Name: this.fb.control(data.custom5Name ?? null),\r\n custom6Name: this.fb.control(data.custom6Name ?? null),\r\n custom7Name: this.fb.control(data.custom7Name ?? null),\r\n custom8Name: this.fb.control(data.custom8Name ?? null),\r\n custom9Name: this.fb.control(data.custom9Name ?? null),\r\n });\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData): any {\r\n return {param: rowData.name};\r\n }\r\n\r\n private clientIdentValidator(): AsyncValidatorFn {\r\n return (control: AbstractControl) => {\r\n const clientIdentFilter = new FilterDTO({isComplex: false, field: 'clientIdent', operator: FilterOperator.Equal, value: control.value.trim()});\r\n return timer(500)\r\n .pipe(\r\n switchMap(() => this.clientAdministrationService.getData(0, 0, [clientIdentFilter], 'id', SortDirection.Ascending)),\r\n map(res => {\r\n const isIdentInUse = res.totalNumberOfItems > 0;\r\n const sameAsOriginal = res.items.find(client => client.id === this.gridEditForm.get('id').value)?.clientIdent === control.value;\r\n\r\n return sameAsOriginal || !isIdentInUse ? null : {identAlreadyInUse: true};\r\n })\r\n );\r\n };\r\n }\r\n}\r\n","\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{formatIsActive(data, 'isActive')}}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n","\r\nexport class UserManagementData {\r\n data: any;\r\n}\r\n","import { Directive, ElementRef, OnInit, NgModule } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[appPasswordVisibility]',\r\n standalone: true\r\n})\r\nexport class PasswordVisibilityDirective {\r\n private _shown = false;\r\n\r\n constructor(private el: ElementRef) {\r\n this.setup();\r\n }\r\n\r\n toggle(div: HTMLElement) {\r\n this._shown = !this._shown;\r\n div.className = 'hide-show-pwd-icon';\r\n\r\n if (this._shown) {\r\n this.el.nativeElement.setAttribute('type', 'text');\r\n div.innerHTML = '';\r\n div.title = 'Hide Password';\r\n } else {\r\n this.el.nativeElement.setAttribute('type', 'password');\r\n div.innerHTML = '';\r\n div.title = 'Show Password';\r\n }\r\n }\r\n\r\n setup() {\r\n const parent = this.el.nativeElement.parentNode;\r\n const inputLabel = parent.getElementsByTagName('LABEL')[0];\r\n\r\n const divFlex = document.createElement('div');\r\n divFlex.append(this.el.nativeElement);\r\n divFlex.className = 'flex-container';\r\n const div = document.createElement('div');\r\n div.className = 'hide-show-pwd-icon';\r\n\r\n div.innerHTML = '';\r\n div.title = 'Show Password';\r\n div.addEventListener('click', (event) => {\r\n this.toggle(div);\r\n });\r\n divFlex.appendChild(div);\r\n\r\n\r\n if (parent.getElementsByTagName('LABEL').length) {\r\n parent.append(parent.getElementsByTagName('label')[0]);\r\n if (parent.getElementsByTagName('SPAN').length)\r\n {parent.append(parent.getElementsByTagName('span')[0]);}\r\n\r\n parent.appendChild(divFlex);\r\n }\r\n else {\r\n parent.append(divFlex);\r\n }\r\n }\r\n}\r\n\r\n\r\n","import { Component, Input, OnDestroy, OnInit } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { ClientDTO, Role } from '../../models/models.swagger.generated';\r\nimport { Subscription } from 'rxjs';\r\nimport { AuthService } from '../../services/auth.service';\r\nimport { ClientService } from '../../services/client/client.service';\r\nimport { DropDownConstantsFactory } from '../../shared/syncfusion/dropdown-constants-factory';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { YesNoGroupButtonComponent } from '../../shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { ClientAutocompleteComponent } from '../../shared/client-autocomplete/client-autocomplete.component';\r\nimport { PasswordVisibilityDirective } from '../../../directives/password-visibility.directive';\r\nimport { AppErrorMessagesComponent } from '../../error-messages/app-error-messages.component';\r\nimport { NgClass, NgIf } from '@angular/common';\r\nimport { UserEditFormGroup } from '../user-edit-form/user-edit-form-type';\r\n\r\n@Component({\r\n selector: 'app-proxy-edit-form',\r\n templateUrl: './proxy-edit-form.component.html',\r\n styleUrls: ['./proxy-edit-form.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, NgClass, AppErrorMessagesComponent, PasswordVisibilityDirective, NgIf, ClientAutocompleteComponent, YesNoGroupButtonComponent, TranslateModule]\r\n})\r\nexport class ProxyEditFormComponent implements OnInit, OnDestroy {\r\n @Input() public proxyEditForm: UserEditFormGroup;\r\n @Input() public selectedClientId: number = null;\r\n\r\n public get clients(): ClientDTO[] {\r\n return this.clientService.clients;\r\n }\r\n\r\n public get isLoggedInUser(): boolean {\r\n return this.proxyEditForm.value.userId === this.authService.getUserInfo().userId;\r\n }\r\n\r\n public isAdd: boolean;\r\n public initialRole: Role;\r\n public dropdownSettings = DropDownConstantsFactory.createStandardClientDropdownSettings();\r\n\r\n private subscriptions = new Subscription();\r\n\r\n constructor(private authService: AuthService,\r\n private clientService: ClientService) { }\r\n\r\n ngOnInit(): void {\r\n this.isAdd = !this.proxyEditForm.value.userId;\r\n this.initialRole = this.proxyEditForm.value.role;\r\n this.loadClients();\r\n if (this.isAdd) {\r\n this.subscriptions.add(this.proxyEditForm.controls.firstname.valueChanges.subscribe(firstname => {\r\n if (firstname) {\r\n this.proxyEditForm.controls.userName.setValue((this.clientService.selectedClient?.clientIdent ?? '') + firstname + '_' + this.proxyEditForm.controls.lastname.value);\r\n } else {\r\n this.proxyEditForm.controls.userName.setValue(null);\r\n }\r\n }));\r\n this.subscriptions.add(this.proxyEditForm.controls.client.valueChanges.subscribe(client => {\r\n if (client) {\r\n this.proxyEditForm.controls.userName.setValue((client.clientIdent ?? '') + this.proxyEditForm.controls.firstname.value + '_' + this.proxyEditForm.controls.lastname.value);\r\n } else {\r\n this.proxyEditForm.controls.userName.setValue(null);\r\n }\r\n }));\r\n }\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this.subscriptions.unsubscribe();\r\n }\r\n\r\n public hideClient() {\r\n return this.authService.getUserInfo().clientId || this.isLoggedInUser;\r\n }\r\n\r\n private getClientById(id: number): ClientDTO {\r\n return id ? this.clients?.find(c => c.id === id) : null;\r\n }\r\n\r\n private loadClients() {\r\n const loggedInUser = this.authService.getUserInfo();\r\n if (loggedInUser.client != null) {\r\n this.proxyEditForm.controls.client.setValue(loggedInUser.client);\r\n }\r\n else {\r\n // patch client to the form if required\r\n if (this.proxyEditForm.value.client && this.proxyEditForm.value.client.id) {\r\n this.proxyEditForm.controls.client.setValue(this.getClientById(this.proxyEditForm.value.client.id));\r\n } else if (this.isAdd) {\r\n this.proxyEditForm.controls.client.setValue(this.getClientById(this.selectedClientId));\r\n }\r\n }\r\n }\r\n\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n","import { Component, Input, OnDestroy, OnInit } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { ClientDTO, Role } from '../../models/models.swagger.generated';\r\nimport { Subscription } from 'rxjs';\r\nimport { AuthService } from '../../services/auth.service';\r\nimport { ClientService } from '../../services/client/client.service';\r\nimport { DropDownConstantsFactory } from '../../shared/syncfusion/dropdown-constants-factory';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { YesNoGroupButtonComponent } from '../../shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { ClientAutocompleteComponent } from '../../shared/client-autocomplete/client-autocomplete.component';\r\nimport { PasswordVisibilityDirective } from '../../../directives/password-visibility.directive';\r\nimport { AppErrorMessagesComponent } from '../../error-messages/app-error-messages.component';\r\nimport { NgClass, NgIf } from '@angular/common';\r\nimport { UserEditFormGroup } from '../user-edit-form/user-edit-form-type';\r\n\r\n@Component({\r\n selector: 'app-tpu-edit-form',\r\n templateUrl: './third-party-user-edit-form.component.html',\r\n styleUrls: ['./third-party-user-edit-form.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, NgClass, AppErrorMessagesComponent, PasswordVisibilityDirective, NgIf, ClientAutocompleteComponent, YesNoGroupButtonComponent, TranslateModule]\r\n})\r\nexport class ThirdPartyUserEditFormComponent implements OnInit, OnDestroy {\r\n @Input() public thirdPartyUserEditForm: UserEditFormGroup;\r\n @Input() public selectedClientId: number = null;\r\n\r\n public get clients(): ClientDTO[] {\r\n return this.clientService.clients;\r\n }\r\n\r\n public get isLoggedInUser(): boolean {\r\n return this.thirdPartyUserEditForm.value.userId === this.authService.getUserInfo().userId;\r\n }\r\n\r\n public isAdd: boolean;\r\n public initialRole: Role;\r\n public dropdownSettings = DropDownConstantsFactory.createStandardClientDropdownSettings();\r\n\r\n private subscriptions = new Subscription();\r\n\r\n constructor(private authService: AuthService,\r\n private clientService: ClientService) { }\r\n\r\n ngOnInit(): void {\r\n this.isAdd = !this.thirdPartyUserEditForm.value.userId;\r\n this.initialRole = this.thirdPartyUserEditForm.value.role;\r\n this.loadClients();\r\n if (this.isAdd) {\r\n this.subscriptions.add(this.thirdPartyUserEditForm.controls.client.valueChanges.subscribe(client => {\r\n if (client) {\r\n this.thirdPartyUserEditForm.controls.userName.setValue((client.clientIdent ?? '') + this.thirdPartyUserEditForm.controls.firstname.value + '_' + this.thirdPartyUserEditForm.controls.lastname.value);\r\n } else {\r\n this.thirdPartyUserEditForm.controls.userName.setValue(null);\r\n }\r\n }));\r\n }\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this.subscriptions.unsubscribe();\r\n }\r\n\r\n public hideClient() {\r\n return this.authService.getUserInfo().clientId || this.isLoggedInUser;\r\n }\r\n\r\n private getClientById(id: number): ClientDTO {\r\n return id ? this.clients?.find(c => c.id === id) : null;\r\n }\r\n\r\n private loadClients() {\r\n const loggedInUser = this.authService.getUserInfo();\r\n if (loggedInUser.client != null) {\r\n this.thirdPartyUserEditForm.controls.client.setValue(loggedInUser.client);\r\n }\r\n else {\r\n // patch client to the form if required\r\n if (this.thirdPartyUserEditForm.value.client && this.thirdPartyUserEditForm.value.client.id) {\r\n this.thirdPartyUserEditForm.controls.client.setValue(this.getClientById(this.thirdPartyUserEditForm.value.client.id));\r\n } else if (this.isAdd) {\r\n this.thirdPartyUserEditForm.controls.client.setValue(this.getClientById(this.selectedClientId));\r\n }\r\n }\r\n }\r\n\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n","import { UserManagementData } from '../models/user-management-data';\r\nimport { ToastService } from '../services/toast.service';\r\nimport {\r\n CreateMobileUserDTO,\r\n CreateProxyUserDTO,\r\n CreateThirdPartyUserDTO,\r\n CreateUserDTO,\r\n FilterDTO,\r\n FilterOperator,\r\n PagedResultDTOOfUserInfoDTO, Role,\r\n SortDirection,\r\n UpdateProxyUserDTO,\r\n UpdateThirdPartyUserDTO,\r\n UpdateUserInfoDTO,\r\n UserAccountClient,\r\n UserInfoDTO,\r\n} from '../models/models.swagger.generated';\r\nimport { catchError, tap } from 'rxjs/operators';\r\nimport { ClientService } from '../services/client/client.service';\r\nimport { IAdaptorService } from '../shared/syncfusion/adaptor-service.interface';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable, throwError } from 'rxjs';\r\nimport { ShowInactiveService } from '../shared/grid-base/show-inactive.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class UserManagementService extends ShowInactiveService implements IAdaptorService {\r\n\r\n public lastAddedUserId: string;\r\n\r\n constructor(\r\n private userAccountClient: UserAccountClient,\r\n private clientService: ClientService,\r\n private toastService: ToastService\r\n ) {\r\n super();\r\n }\r\n\r\n\r\n // eslint-disable-next-line max-len\r\n public getData(skip: number, take: number, filters: FilterDTO[], sortBy: string, sortDirection: SortDirection): Observable {\r\n const selectedClient = this.clientService.selectedClient?.id;\r\n\r\n if (!filters) {\r\n filters = [];\r\n }\r\n if (!this.showInactive) {\r\n filters.push(new FilterDTO({isComplex: false, field: 'Enabled', operator: FilterOperator.Equal, value: 'true'}));\r\n }\r\n\r\n return this.userAccountClient.searchUsers(filters, selectedClient, skip, take, sortBy, sortDirection).pipe(\r\n tap((result) => {\r\n if (result.items) {\r\n result.items.forEach((item) => {\r\n if (!item.client) {\r\n item.client = {name: ''} as any;\r\n }\r\n });\r\n }\r\n })\r\n );\r\n }\r\n\r\n public updateRecord(data: UserManagementData): Observable {\r\n if (data.data.roles?.includes(Role.Proxy)) {\r\n return this.userAccountClient.updateProxyUser(new UpdateProxyUserDTO(data.data)).pipe(\r\n tap(() => {\r\n this.toastService.showSuccess(\r\n 'i18n.core.messages.user-edit.success-title',\r\n 'i18n.core.messages.user-edit.success-message');\r\n }),\r\n catchError(err => {\r\n this.toastService.showApiExeption(err,\r\n 'i18n.core.messages.user-edit.title',\r\n 'i18n.core.messages.user-edit.message');\r\n return throwError(() => err);\r\n })\r\n );\r\n } else if (data.data.roles?.includes(Role.ThirdPartyParkingControl)) {\r\n return this.userAccountClient.updateThirdPartyUser(new UpdateThirdPartyUserDTO(data.data)).pipe(\r\n tap(() => {\r\n this.toastService.showSuccess(\r\n 'i18n.core.messages.user-edit.success-title',\r\n 'i18n.core.messages.user-edit.success-message');\r\n }),\r\n catchError(err => {\r\n this.toastService.showApiExeption(err,\r\n 'i18n.core.messages.user-edit.title',\r\n 'i18n.core.messages.user-edit.message');\r\n return throwError(() => err);\r\n })\r\n );\r\n }\r\n\r\n return this.userAccountClient.updateUser(new UpdateUserInfoDTO(data.data)).pipe(\r\n tap(() => {\r\n this.toastService.showSuccess(\r\n 'i18n.core.messages.user-edit.success-title',\r\n 'i18n.core.messages.user-edit.success-message');\r\n }),\r\n catchError(err => {\r\n this.toastService.showApiExeption(err,\r\n 'i18n.core.messages.user-edit.title',\r\n 'i18n.core.messages.user-edit.message');\r\n return throwError(() => err);\r\n })\r\n );\r\n}\r\n\r\n public addRecord(data: UserManagementData): Observable {\r\n if (data.data.roles?.includes(Role.ParkingRanger)) {\r\n return this.userAccountClient.addParkingRangerUser(new CreateMobileUserDTO(data.data)).pipe(\r\n tap((userInfo: UserInfoDTO) => {\r\n this.lastAddedUserId = userInfo.userId;\r\n this.toastService.showSuccess(\r\n 'i18n.core.messages.user-add.success-title',\r\n 'i18n.core.messages.user-add.success-message');\r\n }),\r\n catchError(err => {\r\n this.toastService.showApiExeption(err,\r\n 'i18n.core.messages.user-add.title',\r\n 'i18n.core.messages.user-add.message');\r\n return throwError(() => err);\r\n })\r\n );\r\n } else if (data.data.roles?.includes(Role.Proxy)) {\r\n return this.userAccountClient.addProxyUser(new CreateProxyUserDTO(data.data)).pipe(\r\n tap((userInfo: UserInfoDTO) => {\r\n this.lastAddedUserId = userInfo.userId;\r\n this.toastService.showSuccess(\r\n 'i18n.core.messages.user-add.success-title',\r\n 'i18n.core.messages.user-add.success-message');\r\n }),\r\n catchError(err => {\r\n this.toastService.showApiExeption(err,\r\n 'i18n.core.messages.user-add.title',\r\n 'i18n.core.messages.user-add.message');\r\n return throwError(() => err);\r\n })\r\n );\r\n } else if (data.data.roles?.includes(Role.ThirdPartyParkingControl)) {\r\n return this.userAccountClient.addThirdPartyUser(new CreateThirdPartyUserDTO(data.data)).pipe(\r\n tap((userInfo: UserInfoDTO) => {\r\n this.lastAddedUserId = userInfo.userId;\r\n this.toastService.showSuccess(\r\n 'i18n.core.messages.user-add.success-title',\r\n 'i18n.core.messages.user-add.success-message');\r\n }),\r\n catchError(err => {\r\n this.toastService.showApiExeption(err,\r\n 'i18n.core.messages.user-add.title',\r\n 'i18n.core.messages.user-add.message');\r\n return throwError(() => err);\r\n })\r\n );\r\n } else {\r\n return this.userAccountClient.addUser(new CreateUserDTO(data.data)).pipe(\r\n tap((userInfo: UserInfoDTO) => {\r\n this.lastAddedUserId = userInfo.userId;\r\n this.toastService.showSuccess(\r\n 'i18n.core.messages.user-add.success-title',\r\n 'i18n.core.messages.user-add.success-message');\r\n }),\r\n catchError(err => {\r\n this.toastService.showApiExeption(err,\r\n 'i18n.core.messages.user-add.title',\r\n 'i18n.core.messages.user-add.message');\r\n return throwError(() => err);\r\n })\r\n );\r\n }\r\n }\r\n\r\n public deleteRecord(id: number): Observable {\r\n return this.userAccountClient.deleteUserByAdmin(id as any)\r\n .pipe(\r\n tap(() => {\r\n this.toastService.showSuccess(\r\n 'i18n.core.messages.user-delete.success-title',\r\n 'i18n.core.messages.user-delete.success-message'\r\n );\r\n }),\r\n catchError((error: any) => {\r\n this.toastService.showApiExeption(error,\r\n 'i18n.core.messages.user-delete.title',\r\n 'i18n.core.messages.user-delete.message');\r\n return throwError(() => error);\r\n })\r\n );\r\n }\r\n}\r\n","import { GridConstantsFactory } from 'src/app/base/shared/syncfusion/grid-constants-factory';\r\nimport { GridBaseComponent } from 'src/app/base/shared/grid-base/grid-base.component';\r\nimport { CustomValidatorsFactory } from 'src/app/base/shared/validators/custom-validators-factory';\r\nimport { UserManagementData } from '../models/user-management-data';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { DeleteEventArgs, RowDataBoundEventArgs, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { UserManagementService } from './user-management.service';\r\nimport { AvpCustomAdaptor } from '../shared/syncfusion/avp-custom-adaptor';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { ClientService } from '../services/client/client.service';\r\nimport {\r\n ClientDTO,\r\n CreateProxyUserDTO,\r\n CreateUserDTO,\r\n ICreateMobileUserDTO,\r\n ICreateProxyUserDTO,\r\n ICreateThirdPartyUserDTO,\r\n ICreateUserDTO,\r\n IUpdateProxyUserDTO,\r\n IUpdateThirdPartyUserDTO,\r\n IUpdateUserInfoDTO,\r\n Role,\r\n UpdateProxyUserDTO,\r\n UpdateUserInfoDTO,\r\n UserInfoDTO,\r\n} from '../models/models.swagger.generated';\r\nimport { Component, HostListener, OnInit } from '@angular/core';\r\nimport { FormBuilder, Validators } from '@angular/forms';\r\nimport { AuthService } from '../services/auth.service';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { SpinnerService } from '../spinner/spinner.service';\r\nimport { DateTime } from 'luxon';\r\nimport { SfAction, SfRequestTypes } from '../models/syncfusion-data';\r\nimport { ProxyEditFormComponent } from './proxy-edit-form/proxy-edit-form.component';\r\nimport { UserEditFormComponent } from './user-edit-form/user-edit-form.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { ToolbarModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { CheckBoxModule } from '@syncfusion/ej2-angular-buttons';\r\nimport { SearchFieldComponent } from '../shared/search-field/search-field.component';\r\nimport { ClientAutocompleteComponent } from '../shared/client-autocomplete/client-autocomplete.component';\r\nimport { TitleBarComponent } from '../shared/title-bar/title-bar.component';\r\nimport { UserEditFormType } from './user-edit-form/user-edit-form-type';\r\nimport { ThirdPartyUserEditFormComponent} from './third-party-user-edit-form/third-party-user-edit-form.component';\r\n\r\n@Component({\r\n selector: 'app-user-management',\r\n templateUrl: './user-management.component.html',\r\n styleUrls: ['./user-management.component.scss'],\r\n standalone: true,\r\n imports: [TitleBarComponent, ClientAutocompleteComponent, SearchFieldComponent, CheckBoxModule, GridModule, ToolbarModule, NgIf, UserEditFormComponent, ProxyEditFormComponent, ThirdPartyUserEditFormComponent, TranslateModule]\r\n})\r\nexport class UserManagementComponent extends GridBaseComponent implements OnInit {\r\n public languageFilter = GridConstantsFactory.createCheckBoxFilter();\r\n public roleFilter = GridConstantsFactory.createCheckBoxFilter();\r\n public accountTypeFilter = GridConstantsFactory.createCheckBoxFilter();\r\n\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n public Role = Role;\r\n public isUserAdmin = this.authService.isUserAdmin();\r\n\r\n private addUserRole = Role.ClientUser;\r\n private userId: string;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n private userManagementService: UserManagementService,\r\n translateService: TranslateService,\r\n private authService: AuthService,\r\n clientService: ClientService,\r\n private route: ActivatedRoute,\r\n private spinnerService: SpinnerService) {\r\n super(clientService, translateService, userManagementService);\r\n this.searchOptions = { fields: ['firstname', 'lastname', 'client.name', 'email'] };\r\n }\r\n\r\n @HostListener('window:beforeunload')\r\n beforeUnload() {\r\n return !this.gridEditForm?.dirty;\r\n }\r\n\r\n public override get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public override set selectedClient(value: ClientDTO) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n }\r\n\r\n public get useProxyUserForm(): boolean {\r\n return this.gridEditForm?.controls.role?.value === Role.Proxy;\r\n }\r\n\r\n public get useThirdPartyUserForm(): boolean {\r\n return this.gridEditForm?.controls.role?.value === Role.ThirdPartyParkingControl;\r\n }\r\n\r\n public ngOnInit() {\r\n this.userId = this.authService.getUserInfo().userId;\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.userManagementService, this.spinnerService)\r\n });\r\n\r\n this.route.queryParams.subscribe(params => {\r\n const clientId = +params.clientId;\r\n const newSelectedClient = this.clientService.clients?.find(c => c.id === clientId);\r\n if (newSelectedClient) {\r\n this.clientService.selectedClient = newSelectedClient;\r\n }\r\n });\r\n\r\n //refresh grid when cancel is pressed\r\n this.unsubscribeSubject.subscribe(() => {\r\n this.grid.refresh();\r\n });\r\n\r\n this.isActiveColumnName = 'enabled';\r\n this.editDialogTitle = 'i18n.base.user-add-modal.titleEdit';\r\n this.addDialogTitle = 'i18n.base.user-add-modal.titleAdd';\r\n }\r\n\r\n public onRowDataBound(args: RowDataBoundEventArgs): void {\r\n // hide delete button for current user\r\n if((args.data as any)?.userId == this.userId) {\r\n const elementCollection = args.row.getElementsByClassName('e-deletebutton');\r\n elementCollection[0].classList.add('button-invisible');\r\n }\r\n }\r\n\r\n public override actionBegin(args: DeleteEventArgs): void {\r\n if (args.requestType === SfRequestTypes.Delete && this.userId === (args.data[0] as any)?.userId) {\r\n args.cancel = true;\r\n } else {\r\n super.actionBegin(args);\r\n }\r\n }\r\n\r\n public addUser(role: Role) {\r\n this.addUserRole = role;\r\n if (role === Role.ClientUser) {\r\n this.addDialogTitle = 'i18n.base.user-add-modal.titleAddWebUser';\r\n }\r\n if (role === Role.Proxy) {\r\n this.addDialogTitle = 'i18n.base.user-add-modal.titleAddProxy';\r\n }\r\n if (role === Role.ParkingRanger) {\r\n this.addDialogTitle = 'i18n.base.user-add-modal.titleAddParkingRanger';\r\n }\r\n if (role === Role.ThirdPartyParkingControl) {\r\n this.addDialogTitle = 'i18n.base.user-add-modal.titleAddThirdPartyUser';\r\n }\r\n this.onAdd();\r\n }\r\n\r\n public formatRoles(userInfo: UserInfoDTO): string {\r\n if (!userInfo || !userInfo.roles) {\r\n return '';\r\n }\r\n return userInfo.roles.map(r => this.translateService.instant('i18n.shared.roles.' + Role[r])).join(', ');\r\n }\r\n\r\n public override actionComplete(args) {\r\n super.actionComplete(args);\r\n if (args.requestType === SfRequestTypes.Save) {\r\n if (args.action === SfAction.Add) {\r\n // reset lastAddedUserId since selection of added row was done in super.actionComplete(args)\r\n this.userManagementService.lastAddedUserId = null;\r\n }\r\n }\r\n }\r\n\r\n public hideClient() {\r\n return this.authService.getUserInfo().clientId;\r\n }\r\n\r\n protected override getDataToSave(): any {\r\n const userManagementData = new UserManagementData();\r\n userManagementData.data = this.mapToUserInfoDTO(this.gridEditForm.getRawValue());\r\n return userManagementData;\r\n }\r\n\r\n protected initializeEditForm(data: UserInfoDTO): void {\r\n if (data.roles?.includes(Role.User)) {\r\n this.editDialogTitle = 'i18n.base.user-add-modal.titleEditUser';\r\n } else if (data.roles?.includes(Role.ClientUser) || data.roles?.includes(Role.ClientAdmin) || data.roles?.includes(Role.Admin)) {\r\n this.editDialogTitle = 'i18n.base.user-add-modal.titleEditWebUser';\r\n } else if (data.roles?.includes(Role.Proxy)) {\r\n this.editDialogTitle = 'i18n.base.user-add-modal.titleEditProxy';\r\n } else if (data.roles?.includes(Role.ParkingRanger)) {\r\n this.editDialogTitle = 'i18n.base.user-add-modal.titleEditParkingRanger';\r\n } else if (data.roles?.includes(Role.ThirdPartyParkingControl)) {\r\n this.editDialogTitle = 'i18n.base.user-add-modal.titleEditThirdPartyUser';\r\n }\r\n\r\n const clientId = this.authService.getUserInfo().clientId ?? data.clientId;\r\n // grid always creates dummy object for client\r\n if (!data.client?.id) {\r\n data.client = null;\r\n }\r\n\r\n const client = this.authService.getUserInfo().client ?? data.client ?? this.selectedClient;\r\n\r\n if (!data.userId) {\r\n // we are in add mode\r\n data.roles = [this.addUserRole ?? Role.ClientUser];\r\n }\r\n\r\n if (data.roles.includes(Role.Proxy)) {\r\n this.gridEditForm = this.fb.group({\r\n userId: this.fb.control(data.userId),\r\n firstname: this.fb.control({ value: data.firstname ?? null, disabled: !!data.userId }, [Validators.required]),\r\n lastname: this.fb.control('Proxy', [Validators.required]),\r\n password: this.fb.control(null, [CustomValidatorsFactory.passwordValidation()]),\r\n userName: this.fb.control({ value: data.userName, disabled: true }, [Validators.required]),\r\n enabled: this.fb.control(data.enabled ?? false),\r\n client: this.fb.control({ value: client, disabled: !!data.userId }, [Validators.required]),\r\n companyId: this.fb.control({value: data.companyId, disabled: !!data.userId}),\r\n role: this.fb.control(!!data.roles?.length ? data.roles[0] : null, [Validators.required]),\r\n });\r\n if (!data.userId) {\r\n // new proxy user -> no roles required\r\n this.gridEditForm.controls.password.setValidators([Validators.required, CustomValidatorsFactory.passwordValidation()]);\r\n }\r\n } else if (data.roles.includes(Role.ThirdPartyParkingControl)) {\r\n this.gridEditForm = this.fb.group({\r\n userId: this.fb.control(data.userId),\r\n firstname: this.fb.control({ value: data.firstname ?? null, disabled: !!data.userId }),\r\n lastname: this.fb.control('Proxy'),\r\n password: this.fb.control(null, [CustomValidatorsFactory.passwordValidation()]),\r\n userName: this.fb.control('TPU_'+ client.clientIdent + '_OMPermissionCheck', [Validators.required]),\r\n enabled: this.fb.control(data.enabled ?? false),\r\n client: this.fb.control({ value: client, disabled: !!data.userId }, [Validators.required]),\r\n companyId: this.fb.control({value: data.companyId, disabled: !!data.userId}),\r\n role: this.fb.control(!!data.roles?.length ? data.roles[0] : null),\r\n });\r\n if (!data.userId) {\r\n // new proxy user -> no roles required\r\n this.gridEditForm.controls.password.setValidators([Validators.required, CustomValidatorsFactory.passwordValidation()]);\r\n }\r\n } else {\r\n const isEditAndIsUser: boolean = (!!data.userId && data.roles[0] === Role.User);\r\n const isEditAndIsWebUser: boolean = (!!data.userId && (data.roles[0] === Role.Admin || data.roles[0] === Role.ClientAdmin || data.roles[0] === Role.ClientUser));\r\n const isEditAndIsParkingRanger: boolean = (!!data.userId && data.roles[0] === Role.ParkingRanger);\r\n this.gridEditForm = this.fb.group({\r\n userId: this.fb.control(data.userId),\r\n firstname: this.fb.control({ value: data.firstname ?? null, disabled: isEditAndIsUser }, [Validators.required]),\r\n lastname: this.fb.control({ value: data.lastname ?? null, disabled: isEditAndIsUser }, [Validators.required]),\r\n userName: this.fb.control({ value: data.userName ?? null, disabled: true }),\r\n language: this.fb.control({ value: data.language ?? null, disabled: isEditAndIsUser }, [Validators.required]),\r\n email: this.fb.control({ value: data.email ?? null, disabled: isEditAndIsUser || isEditAndIsWebUser || isEditAndIsParkingRanger }, [Validators.required, Validators.email]),\r\n phoneNumber: this.fb.control({ value: data.phoneNumber ?? null, disabled: isEditAndIsUser }, [CustomValidatorsFactory.createPhoneValidator()]),\r\n address: this.fb.control({ value: data.address ?? null, disabled: isEditAndIsUser }),\r\n city: this.fb.control({ value: data.city ?? null, disabled: isEditAndIsUser }),\r\n zip: this.fb.control({ value: data.zip ?? null, disabled: isEditAndIsUser }),\r\n country: this.fb.control({ value: data.country ?? null, disabled: isEditAndIsUser }),\r\n enabled: this.fb.control(data.enabled ?? false),\r\n client: this.fb.control({ value: client, disabled: !!data.userId }, [Validators.required]),\r\n companyId: this.fb.control({value: data.companyId, disabled: !!data.userId}),\r\n accessCode: this.fb.control(data.accessCode ?? null),\r\n accessCodeValidUntil: this.fb.control(data.accessCodeValidUntil\r\n ? data.accessCodeValidUntil.toJSDate()\r\n : null,\r\n [CustomValidatorsFactory.accessCodeDateValidator()]),\r\n accessCodeGeneratedOn: this.fb.control(data.accessCodeGeneratedOn?.toJSDate()),\r\n accessCodeUsedOn: this.fb.control(data.accessCodeUsedOn?.toJSDate()),\r\n role: this.fb.control(!!data.roles?.length ? data.roles[0] : null, [Validators.required]),\r\n controlPlates: this.fb.control(data.controlPlates?.length ? data.controlPlates : []),\r\n linkedParkers: this.fb.control(data.linkedParkers?.length ? data.linkedParkers : [])\r\n });\r\n\r\n if (data.roles.includes(Role.ParkingRanger)) {\r\n this.gridEditForm.controls.phoneNumber.setValidators([Validators.required]);\r\n if (!data.userId) {\r\n // new mobile user -> no roles required\r\n this.gridEditForm.controls.role.setValidators([]);\r\n }\r\n }\r\n }\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData): any {\r\n return {};\r\n }\r\n\r\n protected override addObjectCompare(addedObject: any, rowObject: any): boolean {\r\n if (this.userManagementService.lastAddedUserId) {\r\n return rowObject.userId === this.userManagementService.lastAddedUserId;\r\n }\r\n\r\n return false;\r\n }\r\n\r\n private mapToUserInfoDTO(formData: any): UpdateUserInfoDTO | CreateUserDTO | UpdateProxyUserDTO | CreateProxyUserDTO {\r\n let dto = null;\r\n if (!formData.userId) {\r\n if (formData.role === Role.Proxy) {\r\n dto = {\r\n firstname : formData.firstname,\r\n userName : formData.userName,\r\n clientId : formData.client?.id,\r\n password : formData.password,\r\n } as ICreateProxyUserDTO; \r\n //create workaround for allowing us to pass a field 'roles' with the class without being forced to create a extended class\r\n //do only use that, when you really know what you are doing.\r\n dto.roles = [Role.Proxy];\r\n return dto;\r\n } else if (formData.role === Role.ThirdPartyParkingControl) {\r\n dto = {\r\n firstname : formData.firstname,\r\n userName : formData.userName,\r\n clientId : formData.client?.id,\r\n password : formData.password,\r\n } as ICreateThirdPartyUserDTO; \r\n dto.roles = [Role.ThirdPartyParkingControl];\r\n return dto;\r\n } else {\r\n dto = {\r\n firstname : formData.firstname,\r\n lastname : formData.lastname,\r\n userId : formData.userId,\r\n clientId : formData.client?.id,\r\n companyId : formData.companyId,\r\n email : formData.email,\r\n enabled : formData.enabled,\r\n language : formData.language,\r\n phoneNumber : formData.phoneNumber,\r\n address : formData.address,\r\n zip : formData.zip,\r\n city : formData.city,\r\n country : formData.country,\r\n roles : [formData.role],\r\n accessCodeValidUntil : formData.accessCodeValidUntil ? DateTime.fromJSDate(formData.accessCodeValidUntil).endOf('day') : null,\r\n } as ICreateUserDTO;\r\n return dto;\r\n }\r\n } else {\r\n if (formData.role === Role.Proxy) {\r\n dto = {\r\n userId : formData.userId,\r\n password : formData.password,\r\n enabled : formData.enabled,\r\n } as IUpdateProxyUserDTO;\r\n //create workaround for allowing us to pass a field 'roles' with the class without being forced to create a extended class\r\n //do only use that, when you really know what you are doing.\r\n dto.roles = [Role.Proxy];\r\n return dto;\r\n } else if (formData.role === Role.ThirdPartyParkingControl) {\r\n dto = {\r\n userId : formData.userId,\r\n password : formData.password,\r\n enabled : formData.enabled,\r\n } as IUpdateThirdPartyUserDTO;\r\n dto.roles = [Role.ThirdPartyParkingControl];\r\n return dto;\r\n } else {\r\n dto = {\r\n firstname : formData.firstname,\r\n lastname : formData.lastname,\r\n userId : formData.userId,\r\n clientId : formData.client?.id,\r\n companyId : formData.companyId,\r\n email : formData.email,\r\n enabled : formData.enabled,\r\n language : formData.language,\r\n phoneNumber : formData.phoneNumber,\r\n address : formData.address,\r\n zip : formData.zip,\r\n city : formData.city,\r\n country : formData.country,\r\n roles : [formData.role],\r\n accessCodeValidUntil : formData.accessCodeValidUntil ? DateTime.fromJSDate(formData.accessCodeValidUntil).endOf('day') : null,\r\n } as IUpdateUserInfoDTO;\r\n return dto;\r\n }\r\n }\r\n }\r\n}\r\n\r\n","\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{formatRoles(data)}}\r\n \r\n {{formatRoles(data)}}\r\n \r\n \r\n \r\n {{formatIsActive(data, 'enabled')}}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n","import { homeRoute, forgotPasswordRoute } from '../../core/routing/route-names';\r\nimport { AuthService } from '../services/auth.service';\r\nimport { OnInit, Component, OnDestroy, Renderer2 } from '@angular/core';\r\nimport { Router, ActivatedRoute, RouterLink } from '@angular/router';\r\nimport { UntypedFormGroup, UntypedFormControl, Validators, ReactiveFormsModule } from '@angular/forms';\r\nimport { ToastService } from '../services/toast.service';\r\nimport { LoginModel } from '../shared/login.model';\r\nimport { SpinnerService } from '../spinner/spinner.service';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgIf } from '@angular/common';\r\nimport { PasswordVisibilityDirective } from '../../directives/password-visibility.directive';\r\nimport { AppErrorMessagesComponent } from '../error-messages/app-error-messages.component';\r\nimport { TitleBarComponent } from '../shared/title-bar/title-bar.component';\r\n\r\n\r\n@Component({\r\n selector: 'app-login',\r\n templateUrl: './login.component.html',\r\n styleUrls: ['./login.component.scss'],\r\n standalone: true,\r\n imports: [TitleBarComponent, ReactiveFormsModule, AppErrorMessagesComponent, PasswordVisibilityDirective, NgIf, RouterLink, TranslateModule]\r\n})\r\nexport class LoginComponent implements OnInit, OnDestroy {\r\n public loading = false;\r\n public loginModel: LoginModel = {} as LoginModel;\r\n\r\n public loginForm: UntypedFormGroup;\r\n public loginUserNameControl: UntypedFormControl;\r\n public loginPasswordControl: UntypedFormControl;\r\n public forgotPasswordRoute = forgotPasswordRoute;\r\n\r\n public errorFlag;\r\n private initFlag;\r\n\r\n constructor(\r\n private router: Router,\r\n private route: ActivatedRoute,\r\n private authService: AuthService,\r\n private toastService: ToastService,\r\n private spinnerService: SpinnerService,\r\n private renderer: Renderer2) { }\r\n\r\n ngOnInit() {\r\n this.renderer.addClass(document.body, 'body-login');\r\n this.spinnerService.showSpinner = false;\r\n this.initFlag = this.route.snapshot.queryParams.init;\r\n this.errorFlag = this.route.snapshot.queryParams.error;\r\n this.initializeForm();\r\n if (this.authService.isUserLoggedIn() && !this.initFlag) {\r\n this.router.navigate([homeRoute]);\r\n }\r\n }\r\n\r\n ngOnDestroy() {\r\n this.renderer.removeClass(document.body, 'body-login');\r\n }\r\n\r\n public login(): void {\r\n this.loading = true;\r\n\r\n this.loginModel.username = this.loginForm.value.userName;\r\n this.loginModel.password = this.loginForm.value.password;\r\n this.authService.login(this.loginModel).subscribe({\r\n next: (result) => {\r\n this.loading = false;\r\n if (result) {\r\n if (this.authService.redirectUrl) {\r\n this.router.navigateByUrl(this.authService.redirectUrl);\r\n } else {\r\n this.router.navigate([homeRoute]);\r\n }\r\n }\r\n },\r\n error: (error) => {\r\n this.loading = false;\r\n this.toastService.showApiExeption(error, 'i18n.core.messages.login.title', 'i18n.core.messages.login.message');\r\n }\r\n });\r\n }\r\n\r\n private initializeForm(): void {\r\n this.loginUserNameControl = new UntypedFormControl(null, [Validators.required]);\r\n this.loginPasswordControl = new UntypedFormControl(null, [Validators.required]);\r\n this.loginForm = new UntypedFormGroup({\r\n userName: this.loginUserNameControl,\r\n password: this.loginPasswordControl\r\n });\r\n }\r\n}\r\n","\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n {{ \"i18n.base.login.forgot-password\" | translate }}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n","import { CustomValidatorsFactory } from 'src/app/base/shared/validators/custom-validators-factory';\r\nimport { homeRoute } from '../../core/routing/route-names';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { FormGroup, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';\r\nimport { ChangePasswordDTO, UserAccountClient } from '../models/models.swagger.generated';\r\nimport { ToastService } from '../services/toast.service';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgIf } from '@angular/common';\r\nimport { AppErrorMessagesComponent } from '../error-messages/app-error-messages.component';\r\nimport { PasswordVisibilityDirective } from '../../directives/password-visibility.directive';\r\nimport { TitleBarComponent } from '../shared/title-bar/title-bar.component';\r\n\r\nexport type ChangePasswordFormType = FormGroup<{\r\n oldPassword: FormControl;\r\n newPassword: FormControl;\r\n newPasswordConfirm: FormControl;\r\n}>;\r\n\r\n@Component({\r\n selector: 'app-change-password',\r\n templateUrl: './change-password.component.html',\r\n styleUrls: ['./change-password.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TitleBarComponent,\r\n ReactiveFormsModule,\r\n PasswordVisibilityDirective,\r\n AppErrorMessagesComponent,\r\n NgIf,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class ChangePasswordComponent implements OnInit {\r\n public loading = false;\r\n public changePasswordForm: ChangePasswordFormType;\r\n public oldPasswordControl: FormControl;\r\n public newPasswordControl: FormControl;\r\n public newPasswordConfirmControl: FormControl;\r\n private newPasswordConfirm: string;\r\n private changePasswordDTO: ChangePasswordDTO;\r\n\r\n constructor(\r\n private router: Router,\r\n private userAccountClient: UserAccountClient,\r\n private toastService: ToastService) {\r\n }\r\n\r\n ngOnInit() {\r\n this.initializeForm();\r\n }\r\n\r\n hasValidPasswords(group: ChangePasswordFormType): boolean {\r\n const pass = group.value.newPassword;\r\n const confirmPass = group.value.newPasswordConfirm;\r\n\r\n if (pass !== confirmPass) {\r\n this.loading = false;\r\n this.toastService.showError(\r\n 'i18n.core.messages.changePassword.title',\r\n 'i18n.core.messages.changePassword.pwdDoNotMatch');\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n public changePassword(): void {\r\n this.loading = true;\r\n\r\n this.changePasswordDTO = new ChangePasswordDTO();\r\n this.changePasswordDTO.oldPassword = this.changePasswordForm.value.oldPassword;\r\n this.changePasswordDTO.newPassword = this.changePasswordForm.value.newPassword;\r\n this.newPasswordConfirm = this.changePasswordForm.value.newPasswordConfirm;\r\n\r\n if (!this.hasValidPasswords(this.changePasswordForm)) {\r\n return;\r\n }\r\n\r\n this.userAccountClient.changePassword(this.changePasswordDTO).subscribe({\r\n next: (result) => {\r\n this.loading = false;\r\n\r\n if (result) {\r\n this.router.navigate([homeRoute]);\r\n }\r\n },\r\n error: error => {\r\n this.loading = false;\r\n this.toastService.showApiExeption(error, 'i18n.core.messages.changePassword.title', 'i18n.core.messages.changePassword.message');\r\n\r\n // this.toastService.showError(\r\n // 'i18n.core.messages.changePassword.title',\r\n // 'i18n.core.messages.changePassword.message');\r\n },\r\n });\r\n }\r\n\r\n private initializeForm(): void {\r\n this.oldPasswordControl = new FormControl('', [Validators.required]);\r\n this.newPasswordControl = new FormControl('', [Validators.required, CustomValidatorsFactory.passwordValidation()]);\r\n this.newPasswordConfirmControl = new FormControl('', [Validators.required, CustomValidatorsFactory.passwordValidation()]);\r\n this.changePasswordForm = new FormGroup({\r\n oldPassword: this.oldPasswordControl,\r\n newPassword: this.newPasswordControl,\r\n newPasswordConfirm: this.newPasswordConfirmControl,\r\n },\r\n {\r\n validators: [CustomValidatorsFactory.passwordMatchValidation('newPassword', 'newPasswordConfirm')],\r\n });\r\n }\r\n}\r\n","\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n {{'i18n.core.messages.changePassword.pwdDoNotMatch' | translate}}\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { Component, Renderer2, OnDestroy } from '@angular/core';\r\nimport { TitleBarComponent } from '../../base/shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-home',\r\n templateUrl: './home.component.html',\r\n styleUrls: ['./home.component.scss'],\r\n standalone: true,\r\n imports: [TitleBarComponent]\r\n})\r\nexport class HomeComponent implements OnDestroy {\r\n public cellSpacing: number[] = [10, 10];\r\n\r\n constructor(private renderer: Renderer2) {\r\n this.renderer.addClass(document.body, 'body-home');\r\n }\r\n\r\n ngOnDestroy() {\r\n this.renderer.removeClass(document.body, 'body-home');\r\n }\r\n}\r\n","\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n\r\n\r\n\r\n","import { Injectable } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\n\r\nimport { AuthService } from '../services/auth.service';\r\nimport { loginRoute } from 'src/app/core/routing/route-names';\r\nimport { ActivationGuardBase } from './activation-guard.base';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AuthGuard extends ActivationGuardBase {\r\n constructor(private authService: AuthService, private router: Router) {\r\n super();\r\n }\r\n\r\n checkLogin(url: string): boolean {\r\n if (this.authService.isUserLoggedIn()) {\r\n return true;\r\n }\r\n\r\n // Store the attempted URL for redirecting\r\n this.authService.redirectUrl = url;\r\n\r\n // Navigate to the login page with extras\r\n this.router.navigate([loginRoute]);\r\n return false;\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\n\r\nimport { AuthService } from '../services/auth.service';\r\nimport { homeRoute, loginRoute } from 'src/app/core/routing/route-names';\r\nimport { ActivationGuardBase } from './activation-guard.base';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AdminOrClientAdminGuard extends ActivationGuardBase {\r\n constructor(private authService: AuthService, private router: Router) {\r\n super();\r\n }\r\n\r\n checkLogin(url: string): boolean {\r\n if (this.authService.isUserLoggedIn() && this.authService.isUserAdminOrClientAdmin()) {\r\n return true;\r\n }\r\n\r\n // Store the attempted URL for redirecting\r\n this.authService.redirectUrl = url;\r\n\r\n // Navigate to the login page with extras\r\n if (this.authService.isUserLoggedIn()) {\r\n this.router.navigate([homeRoute]);\r\n } else {\r\n this.router.navigate([loginRoute]);\r\n }\r\n\r\n return false;\r\n }\r\n}\r\n","import { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { ToastService } from '../services/toast.service';\r\nimport { SpinnerService } from '../spinner/spinner.service';\r\nimport { catchError, map, tap } from 'rxjs/operators';\r\nimport { SetPasswordDTO, UserAccountClient } from '../models/models.swagger.generated';\r\nimport { Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { FormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';\r\nimport { ActivatedRoute, Router, RouterLink } from '@angular/router';\r\nimport { interval, of, Subscription } from 'rxjs';\r\nimport { loginRoute } from 'src/app/core/routing/route-names';\r\nimport { ErrorType } from 'src/app/core/routing/error-types';\r\nimport { AppErrorMessagesService } from '../services/app-error-messages.service';\r\nimport { CustomValidatorsFactory } from '../shared/validators/custom-validators-factory';\r\nimport { AppErrorMessagesComponent } from '../error-messages/app-error-messages.component';\r\nimport { PasswordVisibilityDirective } from '../../directives/password-visibility.directive';\r\nimport { NgIf } from '@angular/common';\r\nimport { TitleBarComponent } from '../shared/title-bar/title-bar.component';\r\nimport { SetPasswordFormGroup, SetPasswordFormType } from './set-password-form.type';\r\n\r\n@Component({\r\n selector: 'app-set-password',\r\n templateUrl: './set-password.component.html',\r\n styleUrls: ['./set-password.component.scss'],\r\n standalone: true,\r\n imports: [TitleBarComponent, NgIf, ReactiveFormsModule, PasswordVisibilityDirective, AppErrorMessagesComponent, RouterLink, TranslateModule]\r\n})\r\nexport class SetPasswordComponent implements OnInit, OnDestroy {\r\n\r\n public setPasswordForm: SetPasswordFormGroup;\r\n public passwordSetSuccess = false;\r\n public loginRoute = loginRoute;\r\n public autoRedirectMessage: string;\r\n private autoRedirectTimeInSeconds = 5;\r\n private userId: string;\r\n private verificationToken: string;\r\n private forgotPasswordProcess: boolean;\r\n private timeOutSubscription: Subscription;\r\n\r\n public get formFields() {\r\n return this.setPasswordForm.controls;\r\n }\r\n\r\n public get areParametersValid(): boolean {\r\n return !!((this.userId) && (this.verificationToken));\r\n }\r\n\r\n constructor(\r\n private formBuilder: FormBuilder,\r\n private userAccountClient: UserAccountClient,\r\n private route: ActivatedRoute,\r\n private spinnerService: SpinnerService,\r\n private toastService: ToastService,\r\n private errorMessageService: AppErrorMessagesService,\r\n private translateService: TranslateService,\r\n private router: Router\r\n ) { }\r\n\r\n public ngOnInit(): void {\r\n this.initializeForm();\r\n this.route.queryParams.subscribe(params => {\r\n this.userId = params.userId;\r\n this.verificationToken = params.code;\r\n this.forgotPasswordProcess = !!params.fp;\r\n });\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n if (this.timeOutSubscription) {\r\n this.timeOutSubscription.unsubscribe();\r\n }\r\n }\r\n\r\n public setPassword(): void {\r\n if (this.setPasswordForm.valid) {\r\n const formData = this.setPasswordForm.value;\r\n const setPasswordDTO: SetPasswordDTO = {\r\n newPassword: formData.password,\r\n userId: this.userId,\r\n verificationToken: this.verificationToken,\r\n forgotPasswordProcess: this.forgotPasswordProcess\r\n } as SetPasswordDTO;\r\n\r\n this.spinnerService.showSpinner = true;\r\n this.userAccountClient.setPassword(setPasswordDTO).pipe(\r\n tap(\r\n () => {\r\n this.spinnerService.showSpinner = false;\r\n this.passwordSetSuccess = true;\r\n this.redirectToLogin();\r\n }),\r\n catchError((error: any) => {\r\n this.spinnerService.showSpinner = false;\r\n this.handleError(error);\r\n return of(error);\r\n })).subscribe();\r\n }\r\n }\r\n\r\n private redirectToLogin(): void {\r\n this.timeOutSubscription = interval(1000).pipe(\r\n map((x) => {\r\n this.autoRedirectTimeInSeconds--;\r\n if (this.autoRedirectTimeInSeconds > 0) {\r\n this.autoRedirectMessage = this.translateService.instant('i18n.base.set-password.redirect-message',\r\n { params: this.autoRedirectTimeInSeconds });\r\n }\r\n else {\r\n this.router.navigate([this.loginRoute]);\r\n }\r\n })\r\n ).subscribe();\r\n }\r\n\r\n private handleError(error: any): void {\r\n const apiErrorCode = this.errorMessageService.getApiErrorCode(error);\r\n let i18nErrorMessage = 'i18n.errors.server-error.message';\r\n const i18nErrorTitle = 'i18n.errors.server-error.title';\r\n if (apiErrorCode) {\r\n i18nErrorMessage = 'i18n.base.set-password.errors.' + apiErrorCode;\r\n }\r\n this.toastService.showError(i18nErrorTitle, i18nErrorMessage,\r\n null, ErrorType.serverError);\r\n }\r\n\r\n private initializeForm(): void {\r\n this.setPasswordForm = this.formBuilder.group({\r\n password: this.formBuilder.control(null, [Validators.required, CustomValidatorsFactory.passwordValidation()]),\r\n passwordConfirm: this.formBuilder.control(null, [Validators.required, CustomValidatorsFactory.passwordValidation()])\r\n },\r\n {\r\n validators: [CustomValidatorsFactory.passwordMatchValidation()]\r\n });\r\n }\r\n}\r\n\r\n","\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n\r\n
    \r\n {{'i18n.core.messages.changePassword.pwdDoNotMatch' | translate}}\r\n
    \r\n\r\n \r\n
    \r\n
    \r\n {{ \"i18n.base.set-password.invalid-link\" | translate }}\r\n
    \r\n
    \r\n
    \r\n

    \r\n {{ \"i18n.base.set-password.success-message\" | translate }}

    \r\n

    {{autoRedirectMessage}}

    \r\n {{ 'i18n.core.navigation.login' | translate }}\r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { UntypedFormGroup, ReactiveFormsModule, FormGroup } from '@angular/forms';\r\nimport { Component, Input, OnInit } from '@angular/core';\r\nimport { FormHelper } from 'src/app/base/shared/form-helper';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { YesNoGroupButtonComponent } from '../../../../base/shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { AppErrorMessagesComponent } from '../../../../base/error-messages/app-error-messages.component';\r\n\r\n@Component({\r\n selector: 'app-company-form',\r\n templateUrl: './company-form.component.html',\r\n styleUrls: ['./company-form.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, AppErrorMessagesComponent, NgIf, YesNoGroupButtonComponent, TranslateModule]\r\n})\r\nexport class CompanyFormComponent implements OnInit {\r\n @Input()\r\n public companyForm: FormGroup;\r\n\r\n public isAdd = true;\r\n\r\n public get formFields() {\r\n return this.companyForm?.controls;\r\n }\r\n\r\n constructor() { }\r\n\r\n ngOnInit() {\r\n this.isAdd = !this.companyForm.value.id;\r\n FormHelper.setFieldDisabledStatus(this.companyForm.controls.active, !this.isAdd);\r\n }\r\n\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n","import { AbstractControl, AsyncValidatorFn, FormBuilder, UntypedFormBuilder, Validators } from '@angular/forms';\r\nimport { Component, HostListener, OnInit } from '@angular/core';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { SearchSettingsModel, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { ClientDTO, FilterDTO, FilterOperator, ParkerCompanyDTO, SortDirection } from 'src/app/base/models/models.swagger.generated';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { CompanyAdministrationService } from './company-administration.service';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { AvpCustomAdaptor } from 'src/app/base/shared/syncfusion/avp-custom-adaptor';\r\nimport { GridBaseComponent } from 'src/app/base/shared/grid-base/grid-base.component';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { timer } from 'rxjs';\r\nimport { map, switchMap } from 'rxjs/operators';\r\nimport { CompanyFormComponent } from './company-form/company-form.component';\r\nimport { ToolbarModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { CheckBoxModule } from '@syncfusion/ej2-angular-buttons';\r\nimport { SearchFieldComponent } from '../../../base/shared/search-field/search-field.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { ClientAutocompleteComponent } from '../../../base/shared/client-autocomplete/client-autocomplete.component';\r\nimport { TitleBarComponent } from '../../../base/shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-company-administration',\r\n templateUrl: './company-administration.component.html',\r\n styleUrls: ['./company-administration.component.scss'],\r\n standalone: true,\r\n imports: [TitleBarComponent, ClientAutocompleteComponent, NgIf, SearchFieldComponent, CheckBoxModule, GridModule, ToolbarModule, CompanyFormComponent, TranslateModule]\r\n})\r\nexport class CompanyAdministrationComponent extends GridBaseComponent implements OnInit {\r\n\r\n constructor(\r\n clientService: ClientService,\r\n translateService: TranslateService,\r\n private companyAdministrationService: CompanyAdministrationService,\r\n private fb: FormBuilder,\r\n private spinnerService: SpinnerService\r\n ) {\r\n super(clientService, translateService, companyAdministrationService);\r\n this.searchOptions = {fields: ['name']};\r\n }\r\n\r\n @HostListener('window:beforeunload')\r\n beforeUnload() {\r\n return !this.gridEditForm?.dirty;\r\n }\r\n\r\n ngOnInit() {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.companyAdministrationService, this.spinnerService),\r\n });\r\n this.isActiveColumnName = 'active';\r\n this.editDialogTitle = 'i18n.domain.company-administration.edit-dialog-title';\r\n this.addDialogTitle = 'i18n.domain.company-administration.add-dialog-title';\r\n this.addIndexFindColumnName = 'name';\r\n }\r\n\r\n public override get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public override set selectedClient(value: ClientDTO) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n }\r\n\r\n protected initializeEditForm(data: ParkerCompanyDTO): void {\r\n this.gridEditForm = this.fb.group({\r\n id: this.fb.control(data.id),\r\n name: this.fb.control(data.name, [Validators.required], [this.companyNameValidator()]),\r\n active: this.fb.control(data.active),\r\n });\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData): any {\r\n return {params: rowData.name};\r\n }\r\n\r\n private companyNameValidator(): AsyncValidatorFn {\r\n return (control: AbstractControl) => {\r\n const nameFilter = new FilterDTO({isComplex: false, field: 'Name', operator: FilterOperator.Equal, value: control.value.trim()});\r\n return timer(500)\r\n .pipe(\r\n switchMap(() => this.companyAdministrationService.getData(0, 0, [nameFilter], 'id', SortDirection.Ascending)),\r\n map(res => {\r\n const isNameInUse = res.totalNumberOfItems > 0;\r\n const sameAsOriginal = res.items.find(company => company.id === this.gridEditForm.get('id').value)?.name === control.value;\r\n\r\n return sameAsOriginal || !isNameInUse ? null : {nameAlreadyInUse: true};\r\n })\r\n );\r\n };\r\n }\r\n}\r\n","\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{formatIsActive(data, 'active')}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n","import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { UntypedFormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { ClientDTO, FilterDTO, PagedResultDTOOfZoneDTO } from '../../../../../base/models/models.swagger.generated';\r\nimport { AutocompleteComponent } from '../../../../../base/shared/autocomplete/autocomplete.component';\r\nimport { ClientService } from '../../../../../base/services/client/client.service';\r\nimport { DeviceStatusReportService } from '../device-status-report.service';\r\nimport { Observable } from 'rxjs';\r\nimport { AutocompleteItem } from '../../../../../base/shared/autocomplete/autocomplete-item';\r\nimport { map } from 'rxjs/operators';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgIf } from '@angular/common';\r\nimport { ClientAutocompleteComponent } from '../../../../../base/shared/client-autocomplete/client-autocomplete.component';\r\n\r\n@Component({\r\n selector: 'app-device-status-form',\r\n templateUrl: './device-status-form.component.html',\r\n styleUrls: ['./device-status-form.component.scss'],\r\n standalone: true,\r\n imports: [\r\n ReactiveFormsModule,\r\n ClientAutocompleteComponent,\r\n NgIf,\r\n AutocompleteComponent,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class DeviceStatusFormComponent implements OnInit, OnDestroy {\r\n\r\n @Input() public form: UntypedFormGroup;\r\n\r\n @Output() public searchDTOChanged = new EventEmitter();\r\n\r\n @ViewChild('companyAutocomplete')\r\n public companyAutocomplete: AutocompleteComponent;\r\n\r\n public get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public set selectedClient(value: ClientDTO) {\r\n if (this.clientService.selectedClient != value) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n }\r\n }\r\n\r\n public get selectedZone(): number {\r\n if (this.form.get('zoneId').value === null) {\r\n return null;\r\n }\r\n return this.form.get('zoneId').value;\r\n }\r\n\r\n public set selectedZone(value: number) {\r\n //TODO Currently workaround\r\n //Check if actual record has been selected\r\n if (typeof value === 'number') {\r\n this.form.get('zoneId').setValue(value);\r\n } else {\r\n this.form.get('zoneId').setValue(null);\r\n }\r\n }\r\n\r\n public keyValueDropdownSettings = {text: 'name', value: 'id'};\r\n\r\n subscriptions = [];\r\n\r\n constructor(protected clientService: ClientService,\r\n private deviceStatusReportService: DeviceStatusReportService) {\r\n }\r\n\r\n ngOnInit(): void {\r\n this.subscriptions.push(\r\n this.form.valueChanges.subscribe(() => {\r\n this.searchDTOChanged.emit();\r\n }));\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.subscriptions.forEach(s => s.unsubscribe());\r\n }\r\n\r\n public onSearchTextChanged(searchText: string): void {\r\n this.form.get('searchText').setValue(searchText);\r\n }\r\n\r\n public onClientSelected(client: ClientDTO): void {\r\n if (client) {\r\n this.searchDTOChanged.emit();\r\n }\r\n }\r\n\r\n public searchZoneAutocompleteValues(searchText: string): Observable {\r\n return this.deviceStatusReportService.searchZones(searchText)\r\n .pipe(map((zoneAutocompleteValues: PagedResultDTOOfZoneDTO) => {\r\n const data: AutocompleteItem[] = [];\r\n zoneAutocompleteValues.items.forEach(zone => {\r\n data.push({id: zone.id, name: zone.name});\r\n });\r\n return data;\r\n }));\r\n }\r\n\r\n}\r\n","
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { FormGroup, UntypedFormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { CalendarView, DatePickerComponent, DatePickerModule } from '@syncfusion/ej2-angular-calendars';\r\nimport { ClientDTO, PagedResultDTOOfParkerDTO } from '../../../../../base/models/models.swagger.generated';\r\nimport { ClientService } from '../../../../../base/services/client/client.service';\r\nimport { Observable, of } from 'rxjs';\r\nimport { AutocompleteItem } from '../../../../../base/shared/autocomplete/autocomplete-item';\r\nimport { map } from 'rxjs/operators';\r\nimport { ParkerExtractReportService } from '../parker-extract-report.service';\r\nimport { AuthService } from '../../../../../base/services/auth.service';\r\nimport { ParkerExtractFormType } from './parker-extract-form.type';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { AutocompleteComponent } from '../../../../../base/shared/autocomplete/autocomplete.component';\r\nimport { ClientAutocompleteComponent } from '../../../../../base/shared/client-autocomplete/client-autocomplete.component';\r\nimport { NgIf } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-parker-extract-form',\r\n templateUrl: './parker-extract-form.component.html',\r\n styleUrls: ['./parker-extract-form.component.scss'],\r\n standalone: true,\r\n imports: [\r\n ReactiveFormsModule,\r\n NgIf,\r\n ClientAutocompleteComponent,\r\n DatePickerModule,\r\n AutocompleteComponent,\r\n DropDownListModule,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class ParkerExtractFormComponent implements OnInit, OnDestroy {\r\n\r\n @ViewChild('monthPicker')\r\n public monthPicker: DatePickerComponent;\r\n\r\n @Input() public form: FormGroup;\r\n\r\n @Output()\r\n public searchDTOChanged = new EventEmitter();\r\n\r\n public get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public set selectedClient(value: ClientDTO) {\r\n if (this.clientService.selectedClient != value) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n }\r\n }\r\n\r\n public get selectedParkerId(): number {\r\n return this.form.controls.parkerId.value;\r\n }\r\n\r\n public set selectedParkerId(value: number) {\r\n //Check if actual record has been selected\r\n if (typeof value === 'number') {\r\n this.form.controls.parkerId.setValue(value);\r\n } else {\r\n this.form.controls.parkerId.setValue(null);\r\n }\r\n }\r\n\r\n public keyValueDropdownSettings = {text: 'name', value: 'id'};\r\n public calendarDepth: CalendarView = 'Year';\r\n public calendarStart: CalendarView = 'Year';\r\n\r\n public subscriptions = [];\r\n public clientParkerDropdownValues: {name: string, id: number}[] = [];\r\n\r\n constructor(public authService: AuthService,\r\n protected clientService: ClientService,\r\n private parkerExtractReportService: ParkerExtractReportService) {\r\n }\r\n\r\n ngOnInit(): void {\r\n this.subscriptions.push(\r\n this.form.valueChanges.subscribe(() => {\r\n\r\n this.searchDTOChanged.emit();\r\n }));\r\n\r\n if (this.authService.isUserStandardUser()) {\r\n this.clientParkerDropdownValues = this.authService.getUserInfo().linkedParkers.filter(p => p.isClientManaged).map(p => {\r\n return {id: p.parkerId, name: p.client?.name};\r\n }).sort((a, b) => a.name.localeCompare(b.name));\r\n if (this.clientParkerDropdownValues.length === 1) {\r\n this.form.controls.parkerId.setValue(this.clientParkerDropdownValues[0].id);\r\n }\r\n }\r\n }\r\n\r\n public get allowClientSelection(): boolean {\r\n return this.authService.isUserAdminOrClientAdmin() || this.authService.hasUserClientAssigned();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.subscriptions.forEach(s => s.unsubscribe());\r\n }\r\n\r\n public onClientSelected(client: ClientDTO): void {\r\n if (client) {\r\n this.searchDTOChanged.emit();\r\n }\r\n }\r\n\r\n public searchParkerDropdownValues(searchText: string): Observable {\r\n if (this.authService.isUserStandardUser()) {\r\n return of([]);\r\n }\r\n\r\n return this.parkerExtractReportService.searchParkerDropdownValues(searchText)\r\n .pipe(map((parkerDropdownValues: PagedResultDTOOfParkerDTO) => {\r\n const data: AutocompleteItem[] = [];\r\n parkerDropdownValues.items.forEach(customer => {\r\n const fullName = customer.firstName + ' ' + customer.lastName;\r\n data.push({id: customer.id, name: fullName});\r\n });\r\n return data;\r\n }));\r\n }\r\n}\r\n","
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n","export enum MultiSelectFilterType {\r\n Text,\r\n MultiSelectItem\r\n}\r\n","import { MultiSelectItem } from './multi-select-item';\r\nimport { CustomDataAdaptor } from '@syncfusion/ej2-data';\r\nimport { Observable } from 'rxjs';\r\nimport { fakeHttpRequest } from '../fakeHttpRequest';\r\n\r\nexport class MultiSelectCustomAdaptor extends CustomDataAdaptor {\r\n constructor(private getDataFunction: (searchText: string) => Observable) {\r\n super();\r\n this.options.getData = this.getData.bind(this);\r\n }\r\n\r\n private getData(args) {\r\n const data = JSON.parse(args.data);\r\n if (this.getDataFunction == null) {\r\n args.onFailure('getDataFunction is null');\r\n }\r\n\r\n this.getDataFunction(data.where ? data.where[0].value : null).subscribe((result: string[]) => {\r\n args.onSuccess(result, {httpRequest: new fakeHttpRequest()});\r\n }, (error) => {\r\n args.onFailure('getData failed');\r\n });\r\n }\r\n}\r\n","import { MultiSelectFilterType } from './multi-select-filter-type';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { AfterViewInit, Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges, ViewChild } from '@angular/core';\r\nimport { DropDownConstantsFactory } from '../syncfusion/dropdown-constants-factory';\r\nimport { MultiSelectCustomAdaptor } from './multi-select-custom-adaptor';\r\nimport { Observable } from 'rxjs';\r\nimport { MultiSelectItem } from './multi-select-item';\r\nimport { MultiSelectComponent, MultiSelectModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { NgClass } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-multi-select-filter',\r\n templateUrl: './multi-select-filter.component.html',\r\n styleUrls: ['./multi-select-filter.component.scss'],\r\n standalone: true,\r\n imports: [MultiSelectModule, NgClass],\r\n})\r\nexport class MultiSelectFilterComponent implements OnInit, OnChanges, AfterViewInit {\r\n @Input() public getDataFunction: (searchText: string) => Observable;\r\n @Input() public type: MultiSelectFilterType;\r\n @Input() public isDisabled = false;\r\n @Input() public set values(values: any[]) {\r\n // set values to 'null' to force reset with data reload\r\n this._outputValue = values;\r\n }\r\n\r\n @Output() public valuesChange: EventEmitter = new EventEmitter();\r\n\r\n @ViewChild('multiselect') public multiselect: MultiSelectComponent;\r\n\r\n public data: DataManager;\r\n public fieldsSettings = undefined;\r\n\r\n public get outputValue() {\r\n return this._outputValue;\r\n }\r\n\r\n public set outputValue(value: any[]) {\r\n this._outputValue = value;\r\n if (this._isInitialized && this._outputValue != null) {\r\n this.valuesChange.emit(this._outputValue);\r\n }\r\n }\r\n\r\n private _outputValue: any[] = [];\r\n private _isInitialized = false;\r\n\r\n constructor() {\r\n }\r\n\r\n ngOnInit() {\r\n if (this.type === MultiSelectFilterType.MultiSelectItem) {\r\n this.fieldsSettings = DropDownConstantsFactory.createStandardClientDropdownSettings();\r\n }\r\n this.data = new DataManager({\r\n adaptor: new MultiSelectCustomAdaptor(this.getDataFunction),\r\n });\r\n }\r\n\r\n public ngOnChanges(changes: SimpleChanges): void {\r\n if (changes.isDisabled && changes.isDisabled.currentValue) {\r\n if (this.multiselect) {\r\n this.multiselect.setDisabledState(this.isDisabled);\r\n }\r\n }\r\n }\r\n\r\n public ngAfterViewInit() {\r\n this._isInitialized = true;\r\n }\r\n\r\n public refreshData() {\r\n this._outputValue = null;\r\n if (this.multiselect) {\r\n this.multiselect.refresh();\r\n }\r\n }\r\n\r\n}\r\n","\r\n\r\n","import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { UntypedFormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { ClientDTO, PagedResultDTOOfParkerDTO, PagedResultDTOOfZoneDTO } from '../../../../../base/models/models.swagger.generated';\r\nimport { ClientService } from '../../../../../base/services/client/client.service';\r\nimport { ParkerTurnoverReportService } from '../parker-turnover-report.service';\r\nimport { Observable } from 'rxjs';\r\nimport { AutocompleteItem } from '../../../../../base/shared/autocomplete/autocomplete-item';\r\nimport { map } from 'rxjs/operators';\r\nimport { DatePickerComponent, DatePickerModule } from '@syncfusion/ej2-angular-calendars';\r\nimport { MultiSelectItem } from '../../../../../base/shared/multi-select-filter/multi-select-item';\r\nimport { MultiSelectFilterType } from '../../../../../base/shared/multi-select-filter/multi-select-filter-type';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { MultiSelectFilterComponent } from '../../../../../base/shared/multi-select-filter/multi-select-filter.component';\r\nimport { AutocompleteComponent } from '../../../../../base/shared/autocomplete/autocomplete.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { ClientAutocompleteComponent } from '../../../../../base/shared/client-autocomplete/client-autocomplete.component';\r\n\r\n@Component({\r\n selector: 'app-parker-turnover-form',\r\n templateUrl: './parker-turnover-form.component.html',\r\n styleUrls: ['./parker-turnover-form.component.scss'],\r\n standalone: true,\r\n imports: [\r\n ReactiveFormsModule,\r\n ClientAutocompleteComponent,\r\n NgIf,\r\n DatePickerModule,\r\n AutocompleteComponent,\r\n MultiSelectFilterComponent,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class ParkerTurnoverFormComponent implements OnInit, OnDestroy {\r\n\r\n @ViewChild('startTime')\r\n public startTimePicker: DatePickerComponent;\r\n\r\n @ViewChild('endTime')\r\n public endTimePicker: DatePickerComponent;\r\n\r\n @Input() public form: UntypedFormGroup;\r\n\r\n @Output()\r\n public searchDTOChanged = new EventEmitter();\r\n\r\n public get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public set selectedClient(value: ClientDTO) {\r\n if (this.clientService.selectedClient != value) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n }\r\n }\r\n\r\n public get selectedZone(): number {\r\n if (this.form.get('zoneId').value === null) {\r\n return null;\r\n }\r\n return this.form.get('zoneId').value;\r\n }\r\n\r\n public set selectedZone(value: number) {\r\n //TODO Currently workaround\r\n //Check if actual record has been selected\r\n if (typeof value === 'number') {\r\n this.form.get('zoneId').setValue(value);\r\n } else {\r\n this.form.get('zoneId').setValue(null);\r\n }\r\n }\r\n\r\n public get selectedParkerId(): number[] {\r\n if (this.form.get('parkerId').value === null) {\r\n return null;\r\n }\r\n return this.form.get('parkerId').value;\r\n }\r\n\r\n public set selectedParkerId(value: number[]) {\r\n this.form.get('parkerId').setValue(value);\r\n }\r\n\r\n public keyValueDropdownSettings = {text: 'name', value: 'id'};\r\n public MultiSelectFilterType = MultiSelectFilterType;\r\n\r\n private subscriptions = [];\r\n\r\n constructor(protected clientService: ClientService,\r\n private parkTurnoverReportService: ParkerTurnoverReportService) {\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.subscriptions.push(\r\n this.form.valueChanges.subscribe(() => {\r\n if (this.endTimePicker) {\r\n if (this.form.get('startDate').value) {\r\n this.endTimePicker.min = this.form.get('startDate').value;\r\n } else {\r\n this.endTimePicker.min = null;\r\n }\r\n }\r\n\r\n if (this.startTimePicker) {\r\n if (this.form.get('endDate').value) {\r\n this.startTimePicker.max = this.form.get('endDate').value;\r\n } else {\r\n this.startTimePicker.max = null;\r\n }\r\n }\r\n\r\n\r\n this.searchDTOChanged.emit();\r\n }));\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this.subscriptions.forEach(s => s.unsubscribe());\r\n }\r\n\r\n public onClientSelected(client: ClientDTO): void {\r\n if (client) {\r\n this.searchDTOChanged.emit();\r\n }\r\n }\r\n\r\n public searchZoneAutocompleteValues(searchText: string): Observable {\r\n return this.parkTurnoverReportService.searchZones(searchText)\r\n .pipe(map((zoneAutocompleteValues: PagedResultDTOOfZoneDTO) => {\r\n const data: AutocompleteItem[] = [];\r\n zoneAutocompleteValues.items.forEach(zone => {\r\n data.push({id: zone.id, name: zone.name});\r\n });\r\n return data;\r\n }));\r\n }\r\n\r\n public searchParkerDropdownValues(searchText: string): Observable {\r\n return this.parkTurnoverReportService.searchParkerDropdownValues(searchText)\r\n .pipe(map((parkerDropdownValues: PagedResultDTOOfParkerDTO) => {\r\n const data: MultiSelectItem[] = [];\r\n parkerDropdownValues.items.forEach(customer => {\r\n const fullName = customer.firstName + ' ' + customer.lastName;\r\n data.push({id: customer.id, name: fullName});\r\n });\r\n return data;\r\n }));\r\n }\r\n}\r\n","
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    ","import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { UntypedFormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { DatePickerComponent, DatePickerModule } from '@syncfusion/ej2-angular-calendars';\r\nimport { ClientDTO, PagedResultDTOOfUserInfoDTO, PagedResultDTOOfZoneDTO } from '../../../../../base/models/models.swagger.generated';\r\nimport { ClientService } from '../../../../../base/services/client/client.service';\r\nimport { Observable } from 'rxjs';\r\nimport { AutocompleteItem } from '../../../../../base/shared/autocomplete/autocomplete-item';\r\nimport { map } from 'rxjs/operators';\r\nimport { FalseRecordingReportService } from '../false-recording-report.service';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { AutocompleteComponent } from '../../../../../base/shared/autocomplete/autocomplete.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { ClientAutocompleteComponent } from '../../../../../base/shared/client-autocomplete/client-autocomplete.component';\r\n\r\n@Component({\r\n selector: 'app-false-recording-form',\r\n templateUrl: './false-recording-form.component.html',\r\n styleUrls: ['./false-recording-form.component.scss'],\r\n standalone: true,\r\n imports: [\r\n ReactiveFormsModule,\r\n ClientAutocompleteComponent,\r\n NgIf,\r\n DatePickerModule,\r\n AutocompleteComponent,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class FalseRecordingFormComponent implements OnInit, OnDestroy {\r\n\r\n @ViewChild('startTime')\r\n public startTimePicker: DatePickerComponent;\r\n\r\n @ViewChild('endTime')\r\n public endTimePicker: DatePickerComponent;\r\n\r\n @Input() public form: UntypedFormGroup;\r\n\r\n @Output()\r\n public searchDTOChanged = new EventEmitter();\r\n\r\n public get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public set selectedClient(value: ClientDTO) {\r\n if (this.clientService.selectedClient != value) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n }\r\n }\r\n\r\n public get selectedZone(): number {\r\n if (this.form.get('zoneId').value === null) {\r\n return null;\r\n }\r\n return this.form.get('zoneId').value;\r\n }\r\n\r\n public set selectedZone(value: number) {\r\n //TODO Currently workaround\r\n //Check if actual record has been selected\r\n if (typeof value === 'number') {\r\n this.form.get('zoneId').setValue(value);\r\n } else {\r\n this.form.get('zoneId').setValue(null);\r\n }\r\n }\r\n\r\n public get selectedAgent(): number {\r\n if (this.form.get('agent').value === null) {\r\n return null;\r\n }\r\n return this.form.get('agent').value;\r\n }\r\n\r\n public set selectedAgent(value: number) {\r\n //TODO Currently workaround\r\n //Check if actual record has been selected\r\n if (typeof value === 'string') {\r\n this.form.get('agent').setValue(value);\r\n } else {\r\n this.form.get('agent').setValue(null);\r\n }\r\n }\r\n\r\n public keyValueDropdownSettings = {text: 'name', value: 'id'};\r\n\r\n public subscriptions = [];\r\n\r\n constructor(protected clientService: ClientService,\r\n private falseRecordingReportService: FalseRecordingReportService) {\r\n }\r\n\r\n ngOnInit(): void {\r\n this.subscriptions.push(\r\n this.form.valueChanges.subscribe(() => {\r\n if (this.endTimePicker) {\r\n if (this.form.get('startDate').value) {\r\n this.endTimePicker.min = this.form.get('startDate').value;\r\n } else {\r\n this.endTimePicker.min = null;\r\n }\r\n }\r\n\r\n if (this.startTimePicker) {\r\n if (this.form.get('endDate').value) {\r\n this.startTimePicker.max = this.form.get('endDate').value;\r\n } else {\r\n this.startTimePicker.max = null;\r\n }\r\n }\r\n this.searchDTOChanged.emit();\r\n }));\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.subscriptions.forEach(s => s.unsubscribe());\r\n }\r\n\r\n public onClientSelected(client: ClientDTO): void {\r\n if (client) {\r\n this.searchDTOChanged.emit();\r\n }\r\n }\r\n\r\n public searchZoneAutocompleteValues(searchText: string): Observable {\r\n return this.falseRecordingReportService.searchZones(searchText)\r\n .pipe(map((zoneAutocompleteValues: PagedResultDTOOfZoneDTO) => {\r\n const data: AutocompleteItem[] = [];\r\n zoneAutocompleteValues.items.forEach(zone => {\r\n data.push({id: zone.id, name: zone.name});\r\n });\r\n return data;\r\n }));\r\n }\r\n\r\n public searchAgentAutocompleteValues(searchText: string): Observable {\r\n return this.falseRecordingReportService.searchAgents(searchText)\r\n .pipe(map((agentAutocompleteValues: PagedResultDTOOfUserInfoDTO) => {\r\n const data: AutocompleteItem[] = [];\r\n agentAutocompleteValues.items.forEach(user => {\r\n data.push({id: user.userId, name: `${user.firstname} ${user.lastname}`});\r\n });\r\n return data;\r\n }));\r\n }\r\n\r\n}\r\n","
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { UntypedFormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { ClientDTO, ParkerRegistrationType } from '../../../../../base/models/models.swagger.generated';\r\nimport { ClientService } from '../../../../../base/services/client/client.service';\r\nimport { DatePickerComponent, DatePickerModule } from '@syncfusion/ej2-angular-calendars';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { EnumDropDownListComponent } from '../../../../../base/shared/enum-drop-down-list/enum-drop-down-list.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { ClientAutocompleteComponent } from '../../../../../base/shared/client-autocomplete/client-autocomplete.component';\r\n\r\n@Component({\r\n selector: 'app-parker-registration-form',\r\n templateUrl: './parker-registration-form.component.html',\r\n styleUrls: ['./parker-registration-form.component.scss'],\r\n standalone: true,\r\n imports: [\r\n ReactiveFormsModule,\r\n ClientAutocompleteComponent,\r\n NgIf,\r\n DatePickerModule,\r\n EnumDropDownListComponent,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class ParkerRegistrationFormComponent implements OnInit, OnDestroy {\r\n\r\n @ViewChild('startTime')\r\n public startTimePicker: DatePickerComponent;\r\n\r\n @ViewChild('endTime')\r\n public endTimePicker: DatePickerComponent;\r\n\r\n @Input()\r\n public form: UntypedFormGroup;\r\n\r\n @Output()\r\n public searchDTOChanged = new EventEmitter();\r\n\r\n public get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public set selectedClient(value: ClientDTO) {\r\n if (this.clientService.selectedClient != value) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n }\r\n }\r\n\r\n public ParkerRegistrationType = ParkerRegistrationType;\r\n private subscriptions = [];\r\n\r\n constructor(protected clientService: ClientService) {\r\n }\r\n\r\n ngOnInit(): void {\r\n this.subscriptions.push(\r\n this.form.valueChanges.subscribe(() => {\r\n if (this.endTimePicker) {\r\n if (this.form.get('startDate').value) {\r\n this.endTimePicker.min = this.form.get('startDate').value;\r\n } else {\r\n this.endTimePicker.min = null;\r\n }\r\n }\r\n\r\n\r\n if (this.startTimePicker) {\r\n if (this.form.get('endDate').value) {\r\n this.startTimePicker.max = this.form.get('endDate').value;\r\n } else {\r\n this.startTimePicker.max = null;\r\n }\r\n }\r\n\r\n this.searchDTOChanged.emit();\r\n }));\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this.subscriptions.forEach(s => s.unsubscribe());\r\n }\r\n\r\n public onClientSelected(client: ClientDTO): void {\r\n if (client) {\r\n this.searchDTOChanged.emit();\r\n }\r\n }\r\n}\r\n","
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { UntypedFormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport {\r\n ClientDTO,\r\n FilterDTO,\r\n PagedResultDTOOfParkerCompanyDTO,\r\n PagedResultDTOOfParkerDTO,\r\n} from '../../../../../base/models/models.swagger.generated';\r\nimport { TagsPerParkerReportService } from '../tags-per-parker-report.service';\r\nimport { ClientService } from '../../../../../base/services/client/client.service';\r\nimport { SearchFieldComponent } from '../../../../../base/shared/search-field/search-field.component';\r\nimport { Observable } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\nimport { AutocompleteItem } from '../../../../../base/shared/autocomplete/autocomplete-item';\r\nimport { AutocompleteComponent } from '../../../../../base/shared/autocomplete/autocomplete.component';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { AppErrorMessagesComponent } from '../../../../../base/error-messages/app-error-messages.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { ClientAutocompleteComponent } from '../../../../../base/shared/client-autocomplete/client-autocomplete.component';\r\n\r\n@Component({\r\n selector: 'app-tags-form',\r\n templateUrl: './tags-form.component.html',\r\n styleUrls: ['./tags-form.component.scss'],\r\n standalone: true,\r\n imports: [\r\n ReactiveFormsModule,\r\n ClientAutocompleteComponent,\r\n NgIf,\r\n AutocompleteComponent,\r\n SearchFieldComponent,\r\n AppErrorMessagesComponent,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class TagsFormComponent implements OnInit, OnDestroy{\r\n\r\n @ViewChild('companyAutocomplete')\r\n public companyAutocomplete: AutocompleteComponent;\r\n\r\n @ViewChild('searchField')\r\n public searchField: SearchFieldComponent;\r\n\r\n @Input() public form: UntypedFormGroup;\r\n\r\n @Output()\r\n public searchDTOChanged = new EventEmitter();\r\n\r\n public get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public set selectedClient(value: ClientDTO) {\r\n if (this.clientService.selectedClient != value) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n }\r\n }\r\n\r\n public get selectedCompanyId(): number {\r\n if (this.form.get('companyId').value === null) {\r\n return null;\r\n }\r\n return this.form.get('companyId').value;\r\n }\r\n\r\n public set selectedCompanyId(value: number) {\r\n //TODO Currently workaround\r\n //Check if actual record has been selected\r\n if (typeof value === 'number') {\r\n this.form.get('companyId').setValue(value);\r\n } else {\r\n this.form.get('companyId').setValue(null);\r\n }\r\n //Disable company Autocomplete if parker selected\r\n if(this.form.get('parkerId').value && !this.form.get('companyId').value) {\r\n this.companyAutocomplete.enabled = false;\r\n }\r\n }\r\n\r\n public get selectedParkerId(): number {\r\n if (this.form.get('parkerId').value === null) {\r\n return null;\r\n }\r\n return this.form.get('parkerId').value;\r\n }\r\n\r\n public set selectedParkerId(value: number) {\r\n //TODO Currently workaround\r\n //Check if actual record has been selected\r\n if (typeof value === 'number') {\r\n this.form.get('parkerId').setValue(value);\r\n } else {\r\n this.form.get('parkerId').setValue(null);\r\n }\r\n //Disable company Autocomplete if parker selected\r\n if(this.form.get('parkerId').value && !this.form.get('companyId').value) {\r\n this.companyAutocomplete.enabled = false;\r\n } else {\r\n this.companyAutocomplete.enabled = true;\r\n }\r\n }\r\n\r\n public keyValueDropdownSettings = { text: 'name', value: 'id' };\r\n\r\n subscriptions = [];\r\n\r\n constructor(protected clientService: ClientService,\r\n private tagsPerParkerReportService: TagsPerParkerReportService) { }\r\n\r\n ngOnInit(): void {\r\n this.subscriptions.push(\r\n this.form.valueChanges.subscribe(() => {\r\n this.searchDTOChanged.emit();\r\n }));\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.subscriptions.forEach(s => s.unsubscribe());\r\n }\r\n\r\n public onSearchTextChanged(searchText: string): void {\r\n this.form.get('searchText').setValue(searchText);\r\n }\r\n\r\n public onClientSelected(client: ClientDTO): void {\r\n if(client){\r\n this.form.reset();\r\n //Specific for search field\r\n this.searchField?.searchForm?.reset();\r\n this.searchDTOChanged.emit();\r\n }\r\n }\r\n\r\n public searchCompanyDropdownValues(searchText: string): Observable {\r\n return this.tagsPerParkerReportService.searchCompanyDropdownValues(searchText)\r\n .pipe(map((companyDropdownValues: PagedResultDTOOfParkerCompanyDTO) => {\r\n const data: AutocompleteItem[] = [];\r\n companyDropdownValues.items.forEach(customer => {\r\n data.push({id: customer.id, name: customer.name});\r\n });\r\n return data;\r\n }));\r\n }\r\n\r\n public searchParkerDropdownValues(searchText: string): Observable {\r\n return this.tagsPerParkerReportService.searchParkerDropdownValues(searchText, this.form.get('companyId').value)\r\n .pipe(map((parkerDropdownValues: PagedResultDTOOfParkerDTO) => {\r\n const data: AutocompleteItem[] = [];\r\n parkerDropdownValues.items.forEach(customer => {\r\n const fullName = customer.firstName + ' ' + customer.lastName;\r\n data.push({id: customer.id, name: fullName});\r\n });\r\n return data;\r\n }));\r\n }\r\n}\r\n","
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { Component, Input, OnDestroy, OnInit } from '@angular/core';\r\nimport { UntypedFormBuilder, UntypedFormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { DropDownConstantsFactory } from '../../../base/shared/syncfusion/dropdown-constants-factory';\r\nimport { EnumTranslationService } from '../../../base/services/enum-translation.service';\r\nimport { takeUntil } from 'rxjs/operators';\r\nimport { Subject } from 'rxjs';\r\nimport { AuthService } from '../../../base/services/auth.service';\r\nimport { ReportType, Role } from '../../../base/models/models.swagger.generated';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { DeviceStatusFormComponent } from '../report/device-status/device-status-form/device-status-form.component';\r\nimport { ParkerExtractFormComponent } from '../report/parker-extract/parker-extract-form/parker-extract-form.component';\r\nimport { ParkerTurnoverFormComponent } from '../report/parker-turnover/parker-turnover-form/parker-turnover-form.component';\r\nimport { FalseRecordingFormComponent } from '../report/false-recording/false-recording-form/false-recording-form.component';\r\nimport { ParkerRegistrationFormComponent } from '../report/parker-registration/parker-registration-form/parker-registration-form.component';\r\nimport { TagsFormComponent } from '../report/tags/tags-form/tags-form.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { AppErrorMessagesComponent } from '../../../base/error-messages/app-error-messages.component';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\n\r\n@Component({\r\n selector: 'app-reports-form',\r\n templateUrl: './reports-form.component.html',\r\n styleUrls: ['./reports-form.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, DropDownListModule, AppErrorMessagesComponent, NgIf, TagsFormComponent, ParkerRegistrationFormComponent, FalseRecordingFormComponent, ParkerTurnoverFormComponent, ParkerExtractFormComponent, DeviceStatusFormComponent, TranslateModule]\r\n})\r\nexport class ReportsFormComponent implements OnInit, OnDestroy {\r\n\r\n @Input() public reportsEditForm: UntypedFormGroup;\r\n\r\n public enumDropdownSettings = DropDownConstantsFactory.createEnumDropdownSettings();\r\n public types = this.enumTranslationService.translateEnum(ReportType, 'i18n.shared.reportTypes.', true);\r\n public ReportType = ReportType;\r\n\r\n private unsubscribe$ = new Subject();\r\n\r\n constructor(private fb: UntypedFormBuilder,\r\n private authService: AuthService,\r\n private enumTranslationService: EnumTranslationService) {\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.reportsEditForm.get('reportType').valueChanges\r\n .pipe(\r\n takeUntil(this.unsubscribe$)\r\n )\r\n .subscribe(value => {\r\n this.reportsEditForm.reset({reportType: value}, {emitEvent: false});\r\n });\r\n\r\n this.types = this.types.filter(type => {\r\n if (this.authService.getUserInfo().roles.some(r => r === Role.Admin || r === Role.ClientAdmin)) {\r\n return true;\r\n }\r\n\r\n if (this.authService.getUserInfo().roles.some(r => r === Role.User || r === Role.ClientUser)) {\r\n return type.key === ReportType[ReportType.ParkerExtract].toString();\r\n // || type.key === ReportType[ReportType.ParkerPerTariff].toString();\r\n }\r\n\r\n if (this.authService.getUserInfo().roles.some(r => r === Role.ParkingRanger)) {\r\n return type.key === ReportType[ReportType.ParkerExtract].toString()\r\n // || type.key === ReportType[ReportType.ParkerPerTariff].toString()\r\n || type.key === ReportType[ReportType.DeviceStatus].toString()\r\n || type.key === ReportType[ReportType.FalseRecordings].toString()\r\n || type.key === ReportType[ReportType.ParkerRegistrations].toString();\r\n }\r\n return false;\r\n });\r\n }\r\n\r\n public ngOnDestroy() {\r\n this.unsubscribe$.next();\r\n this.unsubscribe$.complete();\r\n }\r\n\r\n}\r\n","
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n\r\n\r\n\r\n
    \r\n","import { ReportVisibilityService } from './../../base/services/report-visibility.service';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { GridBaseComponent } from '../../base/shared/grid-base/grid-base.component';\r\nimport { ClientService } from '../../base/services/client/client.service';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { SpinnerService } from '../../base/spinner/spinner.service';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { AvpCustomAdaptor } from '../../base/shared/syncfusion/avp-custom-adaptor';\r\nimport { ReportsService } from './reports.service';\r\nimport { GridConstantsFactory } from '../../base/shared/syncfusion/grid-constants-factory';\r\nimport { Router } from '@angular/router';\r\nimport { ClientDTO, ReportFileType, ReportType, SavedReportDTO, SavedReportFileDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport {\r\n automaticParkingReportRoute,\r\n deviceStatusRoute,\r\n falseRecordingsRoute,\r\n parkerExtractRoute,\r\n parkerRegistrationsRoute,\r\n parkerTurnoverRoute,\r\n paymentReportRoute,\r\n tagsPerParkerRoute,\r\n userExtractRoute,\r\n} from '../../core/routing/route-names';\r\nimport { EnumTranslationService } from '../../base/services/enum-translation.service';\r\nimport { MenuEventArgs, DropDownButtonModule } from '@syncfusion/ej2-angular-splitbuttons';\r\nimport { AuthService } from '../../base/services/auth.service';\r\nimport { ReportsFormComponent } from './reports-form/reports-form.component';\r\nimport { ToolbarModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { ClientAutocompleteComponent } from '../../base/shared/client-autocomplete/client-autocomplete.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { TitleBarComponent } from '../../base/shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-reports',\r\n templateUrl: './reports.component.html',\r\n styleUrls: ['./reports.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TitleBarComponent,\r\n NgIf,\r\n ClientAutocompleteComponent,\r\n GridModule,\r\n ToolbarModule,\r\n DropDownButtonModule,\r\n ReportsFormComponent,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class ReportsComponent extends GridBaseComponent implements OnInit {\r\n\r\n public typeFilter = GridConstantsFactory.createCheckBoxFilter();\r\n\r\n public ReportType = ReportType;\r\n public enumSelectionData = this.enumTranslationService.translateNumericEnum(ReportType, 'i18n.shared.reportTypes.')\r\n .filter(data => this.canUserSeeReport(data.value));\r\n\r\n constructor(clientService: ClientService,\r\n public translate: TranslateService,\r\n private authService: AuthService,\r\n private router: Router,\r\n private enumTranslationService: EnumTranslationService,\r\n private reportsService: ReportsService,\r\n private spinnerService: SpinnerService,\r\n private reportVisibilityService: ReportVisibilityService) {\r\n super(clientService, translate, reportsService);\r\n }\r\n\r\n public override get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public override set selectedClient(value: ClientDTO) {\r\n if (this.clientService.selectedClient != value) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n }\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.reportsService, this.spinnerService),\r\n });\r\n this.editSettings.allowEditing = false;\r\n }\r\n\r\n public onBeforeItemRender(args: MenuEventArgs) {\r\n args.element.innerHTML = this.translateService.instant(args.item.text);\r\n }\r\n\r\n public downloadFile(reportId: number): void {\r\n this.reportsService.getSavedReportFile(reportId)\r\n .subscribe(savedReportFileDTO => {\r\n const link = this.createInvisibleDownloadLink(savedReportFileDTO);\r\n link.click();\r\n });\r\n }\r\n\r\n public get allowClientSelection(): boolean {\r\n return this.authService.isUserAdminOrClientAdmin() || this.authService.hasUserClientAssigned();\r\n }\r\n\r\n public navigateToReport(event): void {\r\n const reportType = event.item.value;\r\n let routeToNavigate = null;\r\n switch (reportType) {\r\n case ReportType.TagsPerParker: {\r\n routeToNavigate = tagsPerParkerRoute;\r\n break;\r\n }\r\n case ReportType.ParkerRegistrations: {\r\n routeToNavigate = parkerRegistrationsRoute;\r\n break;\r\n }\r\n case ReportType.FalseRecordings: {\r\n routeToNavigate = falseRecordingsRoute;\r\n break;\r\n }\r\n case ReportType.ParkerTurnover: {\r\n routeToNavigate = parkerTurnoverRoute;\r\n break;\r\n }\r\n case ReportType.ParkerExtract: {\r\n routeToNavigate = parkerExtractRoute;\r\n break;\r\n }\r\n // case ReportType.IAMReportWithTagInformation: {\r\n // routeToNavigate = iamReportWithTagInformationRoute;\r\n // break;\r\n // }\r\n case ReportType.DeviceStatus: {\r\n routeToNavigate = deviceStatusRoute;\r\n break;\r\n }\r\n // case ReportType.ParkerPerTariff: {\r\n // routeToNavigate = parkerPerTariffRoute;\r\n // break;\r\n // }\r\n // case ReportType.ParkingUtilization: {\r\n // routeToNavigate = parkerUtilizationRoute;\r\n // break;\r\n // }\r\n case ReportType.AutomaticParking: {\r\n routeToNavigate = automaticParkingReportRoute;\r\n break;\r\n }\r\n case ReportType.Payment: {\r\n routeToNavigate = paymentReportRoute;\r\n break;\r\n }\r\n case ReportType.UserExtract: {\r\n routeToNavigate = userExtractRoute;\r\n break;\r\n }\r\n default: {\r\n return;\r\n }\r\n }\r\n\r\n this.router.navigate([routeToNavigate]);\r\n }\r\n\r\n public getReportTypeString(report: SavedReportDTO): string {\r\n return 'i18n.shared.reportTypes.' + ReportType[report.reportType];\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData: any): any {\r\n }\r\n\r\n protected initializeEditForm(data: any): void {\r\n }\r\n\r\n private createInvisibleDownloadLink(savedReportFileDTO: SavedReportFileDTO) {\r\n const source = `data:application/octet-stream;base64,${savedReportFileDTO.contentBase64}`;\r\n const link = document.createElement('a');\r\n const fileExtension = this.getFileExtension(savedReportFileDTO.fileType);\r\n link.href = source;\r\n link.download = `${savedReportFileDTO.reportName}.${fileExtension}`;\r\n return link;\r\n }\r\n\r\n private getFileExtension(fileType: ReportFileType): string {\r\n if (fileType === ReportFileType.CSV) {\r\n return 'csv';\r\n }\r\n return 'pdf';\r\n }\r\n\r\n private canUserSeeReport(reportType: any): boolean {\r\n return this.reportVisibilityService.canUserSeeReport(reportType);\r\n }\r\n\r\n}\r\n","\r\n
    \r\n \r\n
    \r\n\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{getReportTypeString(data) | translate}}\r\n \r\n \r\n {{getReportTypeString(data) | translate}}\r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n","export enum WidgetType {\r\n LogoWidget,\r\n ReportWidget\r\n}\r\n","import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/router';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable, of } from 'rxjs';\r\nimport { mergeMap, tap } from 'rxjs/operators';\r\nimport { PanelModel } from '@syncfusion/ej2-layouts';\r\nimport { DashboardClient, DashboardDTO, DashboardPanelDTO, UpdateDashboardPanelsDTO } from '../../../base/models/models.swagger.generated';\r\nimport { WidgetType } from './widget-type.enum';\r\n\r\nexport interface ExtendedPanelModel extends PanelModel {\r\n widgetType: string;\r\n widgetParameters: string;\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class DashboardService {\r\n\r\n public panels: ExtendedPanelModel[];\r\n\r\n constructor(private dashboardClient: DashboardClient) { }\r\n\r\n resolve(): Observable {\r\n return this.dashboardClient.getDashboard().pipe(\r\n mergeMap((dashboard: DashboardDTO) => {\r\n if (dashboard) {\r\n this.updatePanels(dashboard);\r\n return of(dashboard);\r\n } else {\r\n // by default we want the user to have a logo widget\r\n return this.updateDashboardPanels(new UpdateDashboardPanelsDTO({addedPanels: [new DashboardPanelDTO({\r\n id: 0,\r\n sizeX: 3,\r\n sizeY: 2,\r\n row: 0,\r\n col: 1,\r\n widgetType: WidgetType[WidgetType.LogoWidget]\r\n })]}));\r\n }\r\n })\r\n );\r\n }\r\n\r\n public updateDashboardPanels(updateDashboardPanelsData: UpdateDashboardPanelsDTO): Observable {\r\n return this.dashboardClient.updateDashboardPanels(updateDashboardPanelsData).pipe(\r\n tap((dashboard: DashboardDTO) => {\r\n this.updatePanels(dashboard);\r\n })\r\n );\r\n }\r\n\r\n public doesPanelCollide(panelToCheck: ExtendedPanelModel): boolean {\r\n let collisionFound = false;\r\n this.panels?.forEach(panel => {\r\n collisionFound = collisionFound || this.isCoveredByPanel(panel.col, panel.row, panelToCheck);\r\n collisionFound = collisionFound || this.isCoveredByPanel(panel.col + panel.sizeX - 1, panel.row, panelToCheck);\r\n collisionFound = collisionFound || this.isCoveredByPanel(panel.col, panel.row + panel.sizeY - 1, panelToCheck);\r\n collisionFound = collisionFound || this.isCoveredByPanel(panel.col + panel.sizeX - 1, panel.row + panel.sizeY - 1, panelToCheck);\r\n });\r\n return collisionFound;\r\n }\r\n\r\n private isCoveredByPanel(col: number, row: number, panel: ExtendedPanelModel): boolean {\r\n if (col >= panel.col && col < panel.col + panel.sizeX && row >= panel.row && row < panel.row + panel.sizeY) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n private updatePanels(dashboard: DashboardDTO) {\r\n if (!dashboard) {\r\n return null;\r\n }\r\n this.panels = [];\r\n dashboard.dashboardPanels?.forEach((panel) => {\r\n this.panels.push({\r\n id: panel.id.toString(),\r\n sizeX: panel.sizeX,\r\n sizeY: panel.sizeY,\r\n row: panel.row,\r\n col: panel.col,\r\n widgetType: panel.widgetType,\r\n widgetParameters: panel.widgetParameters\r\n } as ExtendedPanelModel);\r\n });\r\n }\r\n}\r\n","import { Component, OnInit, ViewChild } from '@angular/core';\r\nimport {\r\n ClientDTO,\r\n FilterCondition,\r\n FilterDTO,\r\n FilterOperator,\r\n TagsPerParkerReportParameterDTO,\r\n} from '../../../../../base/models/models.swagger.generated';\r\nimport { ClientService } from '../../../../../base/services/client/client.service';\r\nimport { UntypedFormBuilder } from '@angular/forms';\r\nimport { TagsPerParkerReportService } from '../tags-per-parker-report.service';\r\nimport { GridConstantsFactory } from '../../../../../base/shared/syncfusion/grid-constants-factory';\r\nimport { Router } from '@angular/router';\r\nimport { reportsRoute } from '../../../../../core/routing/route-names';\r\nimport { SaveOptions } from '../../../reports-footer/save-options';\r\nimport { GridComponent, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { AvpCustomAdaptor } from '../../../../../base/shared/syncfusion/avp-custom-adaptor';\r\nimport { SpinnerService } from '../../../../../base/spinner/spinner.service';\r\nimport { ReportsFooterComponent } from '../../../reports-footer/reports-footer.component';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgIf } from '@angular/common';\r\nimport { TagsFormComponent } from '../tags-form/tags-form.component';\r\nimport { TitleBarComponent } from '../../../../../base/shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-tags-report',\r\n templateUrl: './tags-report.component.html',\r\n styleUrls: ['./tags-report.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TitleBarComponent,\r\n TagsFormComponent,\r\n NgIf,\r\n GridModule,\r\n ReportsFooterComponent,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class TagsReportComponent implements OnInit {\r\n\r\n @ViewChild('grid') public grid: GridComponent;\r\n @ViewChild(ReportsFooterComponent) public footer: ReportsFooterComponent;\r\n\r\n public get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public data: DataManager;\r\n public filterForm = this.fb.group({\r\n parkerId: [null],\r\n companyId: [null],\r\n searchText: [null],\r\n });\r\n\r\n public pageSettings = GridConstantsFactory.createStandardPageSettings();\r\n\r\n constructor(public clientService: ClientService,\r\n private fb: UntypedFormBuilder,\r\n private router: Router,\r\n private spinnerService: SpinnerService,\r\n private tagsPerParkerReportService: TagsPerParkerReportService) {\r\n }\r\n\r\n ngOnInit(): void {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.tagsPerParkerReportService, this.spinnerService),\r\n });\r\n\r\n //Initially get all\r\n if (this.selectedClient) {\r\n this.searchReports();\r\n }\r\n }\r\n\r\n public searchReports(): void {\r\n const filters = [];\r\n if (this.filterForm.get('parkerId').value) {\r\n filters.push(new FilterDTO({\r\n isComplex: false,\r\n field: 'ParkerId',\r\n operator: FilterOperator.Equal,\r\n value: this.filterForm.get('parkerId').value,\r\n }));\r\n }\r\n if (this.filterForm.get('companyId').value) {\r\n filters.push(new FilterDTO({\r\n isComplex: false,\r\n field: 'Parker.CompanyId',\r\n operator: FilterOperator.Equal,\r\n value: this.filterForm.get('companyId').value,\r\n }));\r\n }\r\n if (this.filterForm.get('searchText').value) {\r\n filters.push(new FilterDTO({\r\n isComplex: true,\r\n condition: FilterCondition.Or,\r\n predicates: [\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'ControlPlateNumber',\r\n operator: FilterOperator.Contains,\r\n value: this.filterForm.get('searchText').value,\r\n }),\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'IdentificationCode',\r\n operator: FilterOperator.Contains,\r\n value: this.filterForm.get('searchText').value,\r\n }),\r\n ],\r\n }));\r\n }\r\n\r\n this.tagsPerParkerReportService.filters = filters;\r\n this.grid?.refresh();\r\n }\r\n\r\n public saveReport(saveOptions: SaveOptions): void {\r\n this.spinnerService.showSpinner = true;\r\n\r\n const tagsPerParkerReportParameterDTO = new TagsPerParkerReportParameterDTO({\r\n parkerId: this.filterForm.get('parkerId').value,\r\n companyId: this.filterForm.get('companyId').value,\r\n searchText: this.filterForm.get('searchText').value,\r\n });\r\n this.tagsPerParkerReportService.exportReport(tagsPerParkerReportParameterDTO, saveOptions)\r\n .subscribe(savedReportFileDTO => {\r\n this.spinnerService.showSpinner = false;\r\n if (saveOptions.saveReport) {\r\n this.router.navigate([reportsRoute]);\r\n } else {\r\n this.footer.downloadFile(savedReportFileDTO);\r\n }\r\n });\r\n }\r\n\r\n}\r\n","\r\n
    \r\n \r\n
    \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.parkerTag.controlPlateNumber | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n","import { Component, OnInit, ViewChild } from '@angular/core';\r\nimport {\r\n ClientDTO,\r\n DateRangeParameterDTO,\r\n ParkerRegistrationsReportParameterDTO,\r\n ParkerRegistrationType,\r\n} from '../../../../../base/models/models.swagger.generated';\r\nimport { UntypedFormBuilder } from '@angular/forms';\r\nimport { ClientService } from '../../../../../base/services/client/client.service';\r\nimport { ParkerRegistrationReportService } from '../parker-registration-report.service';\r\nimport { GridConstantsFactory } from '../../../../../base/shared/syncfusion/grid-constants-factory';\r\nimport { SaveOptions } from '../../../reports-footer/save-options';\r\nimport { reportsRoute } from '../../../../../core/routing/route-names';\r\nimport { Router } from '@angular/router';\r\nimport { GridComponent, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { AvpCustomAdaptor } from '../../../../../base/shared/syncfusion/avp-custom-adaptor';\r\nimport { SpinnerService } from '../../../../../base/spinner/spinner.service';\r\nimport { ReportsFooterComponent } from '../../../reports-footer/reports-footer.component';\r\nimport { DateTime } from 'luxon';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgIf } from '@angular/common';\r\nimport { ParkerRegistrationFormComponent } from '../parker-registration-form/parker-registration-form.component';\r\nimport { TitleBarComponent } from '../../../../../base/shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-parker-registration-report',\r\n templateUrl: './parker-registration-report.component.html',\r\n styleUrls: ['./parker-registration-report.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TitleBarComponent,\r\n ParkerRegistrationFormComponent,\r\n NgIf,\r\n GridModule,\r\n ReportsFooterComponent,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class ParkerRegistrationReportComponent implements OnInit {\r\n\r\n @ViewChild('grid') public grid: GridComponent;\r\n @ViewChild(ReportsFooterComponent) public footer: ReportsFooterComponent;\r\n\r\n public get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public data: DataManager;\r\n public filterForm = this.fb.group({\r\n startDate: [DateTime.now().startOf('month').toJSDate()],\r\n endDate: [DateTime.now().endOf('month').toJSDate()],\r\n parkerRegistrationType: [null],\r\n });\r\n\r\n public pageSettings = GridConstantsFactory.createStandardPageSettings();\r\n public ParkerRegistrationType: ParkerRegistrationType;\r\n\r\n constructor(public clientService: ClientService,\r\n private fb: UntypedFormBuilder,\r\n private router: Router,\r\n private spinnerService: SpinnerService,\r\n private parkerRegistrationReportService: ParkerRegistrationReportService) {\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.parkerRegistrationReportService, this.spinnerService),\r\n });\r\n if (this.selectedClient) {\r\n this.searchReports();\r\n }\r\n }\r\n\r\n public searchReports(): void {\r\n if (this.filterForm.get('startDate').value && this.filterForm.get('endDate').value && this.selectedClient?.id) {\r\n this.parkerRegistrationReportService.parameters = this.createParkerRegistrationReportParameters();\r\n this.grid?.refresh();\r\n }\r\n }\r\n\r\n public saveReport(saveOptions: SaveOptions): void {\r\n this.spinnerService.showSpinner = true;\r\n\r\n const parkerRegistrationsReportParameterDTO = this.createParkerRegistrationReportParameters();\r\n\r\n this.parkerRegistrationReportService.exportReport(parkerRegistrationsReportParameterDTO, saveOptions)\r\n .subscribe(savedReportFileDTO => {\r\n this.spinnerService.showSpinner = false;\r\n if (saveOptions.saveReport) {\r\n this.router.navigate([reportsRoute]);\r\n } else {\r\n this.footer.downloadFile(savedReportFileDTO);\r\n }\r\n });\r\n }\r\n\r\n public formatType(type: any): string {\r\n return 'i18n.domain.parker-registration.ParkerRegistrationType.' + ParkerRegistrationType[type];\r\n }\r\n\r\n private createParkerRegistrationReportParameters(): ParkerRegistrationsReportParameterDTO {\r\n return new ParkerRegistrationsReportParameterDTO({\r\n dateRange: new DateRangeParameterDTO({\r\n startDate: DateTime.fromJSDate(this.filterForm.get('startDate').value).startOf('day').toFormat('yyyy-MM-dd'),\r\n endDate: DateTime.fromJSDate(this.filterForm.get('endDate').value).startOf('day').toFormat('yyyy-MM-dd')\r\n }),\r\n parkerRegistrationType: this.filterForm.get('parkerRegistrationType').value,\r\n });\r\n }\r\n\r\n}\r\n","\r\n
    \r\n \r\n
    \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{formatType(data.parkerRegistrationType) | translate}}\r\n \r\n \r\n \r\n \r\n {{data.parker?.firstName}} {{data.parker?.lastName}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.agent ? data.agent.firstname + ' ' + data.agent.lastname : ''}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.knownTag?.controlPlateNumber | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n","import { Component, OnInit, ViewChild } from '@angular/core';\r\nimport {\r\n ClientDTO,\r\n DateRangeParameterDTO,\r\n FalseRecordingsReportParameterDTO,\r\n FilterDTO,\r\n FilterOperator,\r\n ParkerRegistrationType,\r\n} from '../../../../../base/models/models.swagger.generated';\r\nimport { UntypedFormBuilder } from '@angular/forms';\r\nimport { FalseRecordingReportService } from '../false-recording-report.service';\r\nimport { ClientService } from '../../../../../base/services/client/client.service';\r\nimport { GridConstantsFactory } from '../../../../../base/shared/syncfusion/grid-constants-factory';\r\nimport { SaveOptions } from '../../../reports-footer/save-options';\r\nimport { reportsRoute } from '../../../../../core/routing/route-names';\r\nimport { Router } from '@angular/router';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { AvpCustomAdaptor } from '../../../../../base/shared/syncfusion/avp-custom-adaptor';\r\nimport { SpinnerService } from '../../../../../base/spinner/spinner.service';\r\nimport { GridComponent, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { ReportsFooterComponent } from '../../../reports-footer/reports-footer.component';\r\nimport { DateTime } from 'luxon';\r\nimport { DateHelper, DATE_HELPER_DEFAULT_TIME_ZONE } from 'src/app/base/shared/date-helper';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgIf } from '@angular/common';\r\nimport { FalseRecordingFormComponent } from '../false-recording-form/false-recording-form.component';\r\nimport { TitleBarComponent } from '../../../../../base/shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-false-recording-report',\r\n templateUrl: './false-recording-report.component.html',\r\n styleUrls: ['./false-recording-report.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TitleBarComponent,\r\n FalseRecordingFormComponent,\r\n NgIf,\r\n GridModule,\r\n ReportsFooterComponent,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class FalseRecordingReportComponent implements OnInit {\r\n\r\n @ViewChild('grid') public grid: GridComponent;\r\n @ViewChild(ReportsFooterComponent) public footer: ReportsFooterComponent;\r\n\r\n public get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public data: DataManager;\r\n public filterForm = this.fb.group({\r\n startDate: [DateTime.now().startOf('month').toJSDate()],\r\n endDate: [DateTime.now().endOf('month').toJSDate()],\r\n zoneId: [null],\r\n agent: [null],\r\n });\r\n\r\n public pageSettings = GridConstantsFactory.createStandardPageSettings();\r\n\r\n constructor(private clientService: ClientService,\r\n private fb: UntypedFormBuilder,\r\n private router: Router,\r\n private spinnerService: SpinnerService,\r\n private falseRecordingReportService: FalseRecordingReportService) {\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.falseRecordingReportService, this.spinnerService),\r\n });\r\n\r\n if (this.selectedClient) {\r\n this.searchReports();\r\n }\r\n }\r\n\r\n public searchReports(): void {\r\n this.falseRecordingReportService.falseRecordingsReportParameters = this.createFalseRecordingReportParameterDTO();\r\n this.grid?.refresh();\r\n }\r\n\r\n public saveReport(saveOptions: SaveOptions): void {\r\n this.spinnerService.showSpinner = true;\r\n\r\n const falseRecordingsReportParameterDTO = this.createFalseRecordingReportParameterDTO();\r\n\r\n this.falseRecordingReportService.exportReport(falseRecordingsReportParameterDTO, saveOptions)\r\n .subscribe(savedReportFileDTO => {\r\n this.spinnerService.showSpinner = false;\r\n if (saveOptions.saveReport) {\r\n this.router.navigate([reportsRoute]);\r\n } else {\r\n this.footer.downloadFile(savedReportFileDTO);\r\n }\r\n });\r\n }\r\n\r\n public formatParkerRegistrationType(direction: ParkerRegistrationType): string {\r\n return 'i18n.domain.parker-registration.ParkerRegistrationType.' + ParkerRegistrationType[direction];\r\n }\r\n\r\n private createFalseRecordingReportParameterDTO(): FalseRecordingsReportParameterDTO {\r\n return new FalseRecordingsReportParameterDTO({\r\n dateRange: new DateRangeParameterDTO({\r\n startDate: DateTime.fromJSDate(this.filterForm.get('startDate').value).startOf('day').toFormat('yyyy-MM-dd'),\r\n endDate: DateTime.fromJSDate(this.filterForm.get('endDate').value).startOf('day').toFormat('yyyy-MM-dd'),\r\n }),\r\n zoneId: this.filterForm.get('zoneId').value,\r\n agentId: this.filterForm.get('agent').value,\r\n });\r\n }\r\n\r\n}\r\n","\r\n
    \r\n \r\n
    \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{formatParkerRegistrationType(data.parkerRegistrationType) | translate}}\r\n \r\n\r\n \r\n \r\n \r\n {{data.parker.firstName + ' ' + data.parker.lastName}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.agent ? data.agent.firstname + ' ' + data.agent.lastname : ''}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.knownTag.controlPlateNumber | translate}}\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n","import { Component, OnInit, ViewChild } from '@angular/core';\r\nimport {\r\n ClientDTO,\r\n Currency,\r\n DateRangeParameterDTO,\r\n FilterCondition,\r\n FilterDTO,\r\n FilterOperator,\r\n ParkerTurnoverReportParameterDTO,\r\n ParkerTurnoverReportSummaryDTO,\r\n} from '../../../../../base/models/models.swagger.generated';\r\nimport { ReportsService } from '../../../reports.service';\r\nimport { StringHelper } from '../../../../../base/shared/string-helper';\r\nimport { GridConstantsFactory } from '../../../../../base/shared/syncfusion/grid-constants-factory';\r\nimport { ClientService } from '../../../../../base/services/client/client.service';\r\nimport { UntypedFormBuilder } from '@angular/forms';\r\nimport { ParkerTurnoverReportService } from '../parker-turnover-report.service';\r\nimport { SaveOptions } from '../../../reports-footer/save-options';\r\nimport { savedReportsRoute } from '../../../../../core/routing/route-names';\r\nimport { Router } from '@angular/router';\r\nimport { GridComponent, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { AvpCustomAdaptor } from '../../../../../base/shared/syncfusion/avp-custom-adaptor';\r\nimport { SpinnerService } from '../../../../../base/spinner/spinner.service';\r\nimport { ReportsFooterComponent } from '../../../reports-footer/reports-footer.component';\r\nimport { DateTime } from 'luxon';\r\nimport { DateHelper, DATE_HELPER_DEFAULT_TIME_ZONE } from 'src/app/base/shared/date-helper';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgIf, NgFor, DecimalPipe } from '@angular/common';\r\nimport { ParkerTurnoverFormComponent } from '../parker-turnover-form/parker-turnover-form.component';\r\nimport { TitleBarComponent } from '../../../../../base/shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-parker-turnover-report',\r\n templateUrl: './parker-turnover-report.component.html',\r\n styleUrls: ['./parker-turnover-report.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TitleBarComponent,\r\n ParkerTurnoverFormComponent,\r\n NgIf,\r\n GridModule,\r\n ReportsFooterComponent,\r\n NgFor,\r\n DecimalPipe,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class ParkerTurnoverReportComponent implements OnInit {\r\n\r\n @ViewChild('grid') public grid: GridComponent;\r\n @ViewChild(ReportsFooterComponent) public footer: ReportsFooterComponent;\r\n\r\n public get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public Currency = Currency;\r\n public data: DataManager;\r\n public summaryData: ParkerTurnoverReportSummaryDTO;\r\n public filterForm = this.fb.group({\r\n startDate: [DateTime.now().startOf('month').toJSDate()],\r\n endDate: [DateTime.now().endOf('month').toJSDate()],\r\n zoneId: [null],\r\n parkerId: [null],\r\n });\r\n\r\n public pageSettings = GridConstantsFactory.createStandardPageSettings();\r\n public get totalAmount(): number {\r\n return this.parkTurnoverReportService.totalAmount;\r\n };\r\n\r\n constructor(public clientService: ClientService,\r\n private fb: UntypedFormBuilder,\r\n private router: Router,\r\n private reportsService: ReportsService,\r\n private spinnerService: SpinnerService,\r\n private parkTurnoverReportService: ParkerTurnoverReportService) {\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.parkTurnoverReportService, this.spinnerService),\r\n });\r\n //Initially get all\r\n if (this.selectedClient) {\r\n this.searchReports();\r\n }\r\n\r\n }\r\n\r\n public searchReports(): void {\r\n\r\n if (this.filterForm.get('startDate').value && this.filterForm.get('endDate').value) {\r\n const parkerTurnoverReportParameterDTO = this.createReportParametersFromFilters();\r\n this.parkTurnoverReportService.searchParameters = parkerTurnoverReportParameterDTO;\r\n this.grid?.refresh();\r\n this.summaryData = null;\r\n this.parkTurnoverReportService.getReportSummary(parkerTurnoverReportParameterDTO)\r\n .subscribe(summary => {\r\n this.summaryData = summary;\r\n this.summaryData.totalAmounts.sort((a, b) => a.currency - b.currency);\r\n });\r\n }\r\n }\r\n\r\n public saveReport(saveOptions: SaveOptions): void {\r\n this.spinnerService.showSpinner = true;\r\n const parkerTurnoverReportParameterDTO = this.createReportParametersFromFilters();\r\n this.parkTurnoverReportService.exportReport(parkerTurnoverReportParameterDTO, saveOptions)\r\n .subscribe(savedReportFileDTO => {\r\n this.spinnerService.showSpinner = false;\r\n if (saveOptions.saveReport) {\r\n this.router.navigate([savedReportsRoute]);\r\n } else {\r\n this.footer.downloadFile(savedReportFileDTO);\r\n }\r\n });\r\n }\r\n\r\n public formatCurrency(type: Currency): string {\r\n return 'i18n.shared.currencies.' + Currency[type];\r\n }\r\n\r\n public formatTime(minutes: number): string {\r\n return StringHelper.transformToTimeRepresentation(minutes);\r\n }\r\n\r\n private createReportParametersFromFilters(): ParkerTurnoverReportParameterDTO {\r\n return new ParkerTurnoverReportParameterDTO({\r\n dateRange: new DateRangeParameterDTO({\r\n startDate: DateTime.fromJSDate(this.filterForm.get('startDate').value).startOf('day').toFormat('yyyy-MM-dd'),\r\n endDate: DateTime.fromJSDate(this.filterForm.get('endDate').value).startOf('day').toFormat('yyyy-MM-dd'),\r\n }),\r\n zoneId: this.filterForm.get('zoneId').value,\r\n parkerIds: this.filterForm.get('parkerId').value,\r\n });\r\n }\r\n}\r\n","\r\n
    \r\n \r\n
    \r\n\r\n \r\n \r\n \r\n \r\n {{data.parker.firstName}} {{data.parker.lastName}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{(data.isVisitorParking? 'i18n.shared.yes' : 'i18n.shared.no') | translate}}\r\n \r\n \r\n \r\n \r\n {{formatTime(data.durationInMinutes) + 'h'}}\r\n \r\n \r\n \r\n \r\n {{data.knownTag.controlPlateNumber | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.amount | number : '1.2-2'}}\r\n \r\n \r\n \r\n \r\n {{formatCurrency(data.currency) | translate}}\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {{'i18n.domain.reports.user-extract.totalParkings' | translate}}: {{summaryData.totalNumberOfParkings}}\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    {{'i18n.domain.reports.park-turnover.totalAmount' | translate:{currency: Currency[summary.currency]} }}:
    \r\n
    {{summary.totalPrice| number : '1.2-2'}} {{formatCurrency(summary.currency) | translate}}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n","import { Component, OnInit, ViewChild } from '@angular/core';\r\nimport {\r\n ClientDTO,\r\n Currency,\r\n ParkerExtractReportParameterDTO,\r\n ParkerExtractReportSummaryDTO,\r\n} from '../../../../../base/models/models.swagger.generated';\r\nimport { StringHelper } from '../../../../../base/shared/string-helper';\r\nimport { GridConstantsFactory } from '../../../../../base/shared/syncfusion/grid-constants-factory';\r\nimport { ClientService } from '../../../../../base/services/client/client.service';\r\nimport { FormGroup, FormBuilder } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\nimport { SaveOptions } from '../../../reports-footer/save-options';\r\nimport { reportsRoute } from '../../../../../core/routing/route-names';\r\nimport { ParkerExtractReportService } from '../parker-extract-report.service';\r\nimport { GridComponent, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { AvpCustomAdaptor } from '../../../../../base/shared/syncfusion/avp-custom-adaptor';\r\nimport { SpinnerService } from '../../../../../base/spinner/spinner.service';\r\nimport { ReportsFooterComponent } from '../../../reports-footer/reports-footer.component';\r\nimport { AuthService } from '../../../../../base/services/auth.service';\r\nimport { DateTime } from 'luxon';\r\nimport { ParkerExtractFormType } from '../parker-extract-form/parker-extract-form.type';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgIf, DecimalPipe, DatePipe } from '@angular/common';\r\nimport { ParkerExtractFormComponent } from '../parker-extract-form/parker-extract-form.component';\r\nimport { TitleBarComponent } from '../../../../../base/shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-parker-extract-report',\r\n templateUrl: './parker-extract-report.component.html',\r\n styleUrls: ['./parker-extract-report.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TitleBarComponent,\r\n ParkerExtractFormComponent,\r\n NgIf,\r\n GridModule,\r\n ReportsFooterComponent,\r\n DecimalPipe,\r\n DatePipe,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class ParkerExtractReportComponent implements OnInit {\r\n\r\n @ViewChild('grid') public grid: GridComponent;\r\n @ViewChild('subscriptionSummary') public subscriptionSummaryGrid: GridComponent;\r\n @ViewChild(ReportsFooterComponent) public footer: ReportsFooterComponent;\r\n\r\n public get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public data: DataManager;\r\n public summaryData: ParkerExtractReportSummaryDTO;\r\n public summaryCurrency: string;\r\n\r\n public filterForm: FormGroup = this.fb.group({\r\n month: [DateTime.now().startOf('month').toJSDate()],\r\n parkerId: [null],\r\n });\r\n\r\n public pageSettings = GridConstantsFactory.createStandardPageSettings();\r\n\r\n constructor(public clientService: ClientService,\r\n private fb: FormBuilder,\r\n private router: Router,\r\n private authService: AuthService,\r\n private spinnerService: SpinnerService,\r\n private parkerExtractReportService: ParkerExtractReportService) {\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.parkerExtractReportService, this.spinnerService),\r\n });\r\n\r\n //Initially get all\r\n if (this.selectedClient || this.authService.isUserStandardUser()) {\r\n this.searchReports();\r\n }\r\n }\r\n\r\n public get allowClientSelection(): boolean {\r\n return this.authService.isUserAdminOrClientAdmin() || this.authService.hasUserClientAssigned();\r\n }\r\n\r\n public searchReports(): void {\r\n\r\n if (this.filterForm.controls.month.value && this.filterForm.controls.parkerId.value) {\r\n const reportParameters = new ParkerExtractReportParameterDTO({\r\n parkerId: this.filterForm.controls.parkerId.value,\r\n month: DateTime.fromJSDate(this.filterForm.controls.month.value).startOf('month').toFormat('yyyy-MM-dd')\r\n });\r\n this.parkerExtractReportService.reportParameters = reportParameters;\r\n this.grid?.refresh();\r\n this.summaryData = null;\r\n this.parkerExtractReportService.getReportSummary(reportParameters)\r\n .subscribe(summary => {\r\n this.summaryData = summary;\r\n this.summaryCurrency = this.formatCurrency(summary.currency);\r\n });\r\n\r\n }\r\n }\r\n\r\n public saveReport(saveOptions: SaveOptions): void {\r\n this.spinnerService.showSpinner = true;\r\n const reportParameters = new ParkerExtractReportParameterDTO({\r\n parkerId: this.filterForm.controls.parkerId.value,\r\n month: DateTime.fromJSDate(this.filterForm.controls.month.value).startOf('month').toFormat('yyyy-MM-dd')\r\n });\r\n this.parkerExtractReportService.exportReport(reportParameters, saveOptions)\r\n .subscribe(savedReportFileDTO => {\r\n this.spinnerService.showSpinner = false;\r\n if (saveOptions.saveReport) {\r\n this.router.navigate([reportsRoute]);\r\n } else {\r\n this.footer.downloadFile(savedReportFileDTO);\r\n }\r\n });\r\n }\r\n\r\n public formatTime(minutes: number): string {\r\n return StringHelper.transformToTimeRepresentation(minutes);\r\n }\r\n\r\n public formatCurrency(type: Currency): string {\r\n return 'i18n.shared.currencies.' + Currency[type];\r\n }\r\n}\r\n","\r\n
    \r\n \r\n
    \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{(data.isVisitorParking? 'i18n.shared.yes' : 'i18n.shared.no') | translate}}\r\n \r\n \r\n \r\n \r\n {{formatTime(data.durationInMinutes) + 'h'}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.amount | number : '1.2-2'}}\r\n \r\n \r\n \r\n \r\n {{formatCurrency(data.currency) | translate}}\r\n \r\n \r\n \r\n \r\n
    0\">\r\n
    {{'i18n.domain.reports.parker-extract.subscriptionSummary' | translate}}
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.appliedStartDate | date : 'dd.MM.yyyy'}} - {{data.appliedEndDate | date : 'dd.MM.yyyy'}}\r\n \r\n \r\n \r\n \r\n {{(data.feeFromParkingSessions ?? 0) | number : '1.2-2'}}\r\n \r\n \r\n \r\n \r\n {{ !data.cap ? '-' : (data.cap | number : '1.2-2')}}\r\n \r\n \r\n \r\n \r\n {{ (data.totalParkingWithCap ?? 0) | number : '1.2-2'}}\r\n \r\n \r\n \r\n \r\n {{(data.fixedFee ?? 0) | number : '1.2-2'}}\r\n \r\n \r\n \r\n \r\n {{data.chargedAmount | number : '1.2-2'}}\r\n \r\n \r\n \r\n \r\n {{formatCurrency(data.currency) | translate}}\r\n \r\n \r\n \r\n \r\n {{data.currencyConversionFactor | number : '1.5-5'}}\r\n \r\n \r\n \r\n \r\n {{(data.convertedChargedAmount ?? data.chargedAmount) | number : '1.2-2'}} {{formatCurrency(data.convertedCurrency) | translate}}\r\n \r\n \r\n \r\n \r\n
    \r\n\r\n \r\n
    \r\n
    \r\n
    {{'i18n.domain.reports.parker-extract.chargedAmount' | translate}}:
    \r\n
    {{summaryData.chargedAmount | number : '1.2-2'}} {{summaryCurrency | translate}}
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n","import { Component, OnInit, ViewChild } from '@angular/core';\r\nimport {\r\n ClientDTO,\r\n DeviceStatusReportParameterDTO,\r\n FilterDTO,\r\n FilterOperator,\r\n ZoneDeviceBrand,\r\n ZoneDeviceDirection,\r\n ZoneDeviceDTO,\r\n ZoneDeviceState,\r\n ZoneDeviceType,\r\n} from '../../../../../base/models/models.swagger.generated';\r\nimport { GridConstantsFactory } from '../../../../../base/shared/syncfusion/grid-constants-factory';\r\nimport { ClientService } from '../../../../../base/services/client/client.service';\r\nimport { UntypedFormBuilder } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\nimport { SaveOptions } from '../../../reports-footer/save-options';\r\nimport { reportsRoute } from '../../../../../core/routing/route-names';\r\nimport { DeviceStatusReportService } from '../device-status-report.service';\r\nimport { SpinnerService } from '../../../../../base/spinner/spinner.service';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { AvpCustomAdaptor } from '../../../../../base/shared/syncfusion/avp-custom-adaptor';\r\nimport { GridComponent, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { ReportsFooterComponent } from '../../../reports-footer/reports-footer.component';\r\nimport { DateTime } from 'luxon';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgIf } from '@angular/common';\r\nimport { DeviceStatusFormComponent } from '../device-status-form/device-status-form.component';\r\nimport { TitleBarComponent } from '../../../../../base/shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-device-status-report',\r\n templateUrl: './device-status-report.component.html',\r\n styleUrls: ['./device-status-report.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TitleBarComponent,\r\n DeviceStatusFormComponent,\r\n NgIf,\r\n GridModule,\r\n ReportsFooterComponent,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class DeviceStatusReportComponent implements OnInit {\r\n\r\n @ViewChild('grid') public grid: GridComponent;\r\n @ViewChild(ReportsFooterComponent) public footer: ReportsFooterComponent;\r\n\r\n public get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public data: DataManager;\r\n public filterForm = this.fb.group({\r\n zoneId: [null],\r\n });\r\n\r\n public pageSettings = GridConstantsFactory.createStandardPageSettings();\r\n\r\n constructor(private clientService: ClientService,\r\n private fb: UntypedFormBuilder,\r\n private router: Router,\r\n private spinnerService: SpinnerService,\r\n private deviceStatusReportService: DeviceStatusReportService) {\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.deviceStatusReportService, this.spinnerService),\r\n });\r\n\r\n if (this.selectedClient) {\r\n this.searchReports();\r\n }\r\n }\r\n\r\n public searchReports(): void {\r\n const filters = [];\r\n\r\n if (this.filterForm.get('zoneId').value) {\r\n filters.push(new FilterDTO({\r\n isComplex: false,\r\n field: 'ZoneId',\r\n operator: FilterOperator.Equal,\r\n value: this.filterForm.get('zoneId').value,\r\n }));\r\n }\r\n\r\n this.deviceStatusReportService.filters = filters;\r\n this.grid?.refresh();\r\n }\r\n\r\n public saveReport(saveOptions: SaveOptions): void {\r\n this.spinnerService.showSpinner = true;\r\n const deviceStatusReportParameterDTO = new DeviceStatusReportParameterDTO({\r\n zoneId: this.filterForm.get('zoneId').value\r\n });\r\n\r\n this.deviceStatusReportService.exportReport(deviceStatusReportParameterDTO, saveOptions)\r\n .subscribe(savedReportFileDTO => {\r\n this.spinnerService.showSpinner = false;\r\n if (saveOptions.saveReport) {\r\n this.router.navigate([reportsRoute]);\r\n } else {\r\n this.footer.downloadFile(savedReportFileDTO);\r\n }\r\n });\r\n }\r\n\r\n public formatDeviceType(type: ZoneDeviceType): string {\r\n return 'i18n.shared.zone-device-enums.device-type.' + ZoneDeviceType[type];\r\n }\r\n\r\n public formatDeviceBrand(brand: ZoneDeviceBrand): string {\r\n return 'i18n.shared.zone-device-enums.brand.' + ZoneDeviceBrand[brand];\r\n }\r\n\r\n public formatDeviceDirection(direction: ZoneDeviceDirection): string {\r\n return 'i18n.shared.zone-device-enums.direction.' + ZoneDeviceDirection[direction];\r\n }\r\n\r\n public formatDeviceState(state: ZoneDeviceState, device:ZoneDeviceDTO): string {\r\n if (device.enabled) {\r\n return 'i18n.shared.zone-device-enums.state.' + ZoneDeviceState[state];\r\n } else {\r\n return 'i18n.shared.zone-device-enums.state.undefined';\r\n }\r\n\r\n }\r\n\r\n public getDeviceIpAddress(device: ZoneDeviceDTO): string {\r\n return this.deviceStatusReportService.deviceIpAddresses.get(device.id);\r\n }\r\n\r\n public markLastSignalRows(e: any): void {\r\n const row = e.row;\r\n const rowData = e.data;\r\n const fourHoursBefore = DateTime.now().minus({hours: 4});\r\n if (rowData.device.lastSignal && rowData.device.enabled) {\r\n if (rowData.device.lastSignal < fourHoursBefore) {\r\n row.classList.add('no-signal');\r\n } else if (rowData.device.enabled && (rowData.device.state == ZoneDeviceState.NotPresent)) {\r\n row.classList.add('no-signal');\r\n }\r\n } else if (!rowData.device.enabled) {\r\n row.classList.add('inactive');\r\n } else {\r\n row.classList.add('no-signal');\r\n }\r\n }\r\n\r\n public onRefresh() {\r\n this.grid.refresh();\r\n }\r\n}\r\n","\r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{formatDeviceType(data.device.deviceType) | translate}}\r\n \r\n \r\n \r\n \r\n {{formatDeviceBrand(data.device.brand) | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{formatDeviceDirection(data.device.direction) | translate}}\r\n \r\n \r\n \r\n \r\n {{getDeviceIpAddress(data.device)}}\r\n \r\n \r\n \r\n \r\n {{formatDeviceState(data.device.state, data.device) | translate}}\r\n \r\n \r\n \r\n \r\n {{(data.device.enabled ? 'i18n.shared.yes' : 'i18n.shared.no') | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n","import { ActivatedRoute } from '@angular/router';\r\nimport { ParkerClient, LinkParkerToUserDTO, ParkerDTO, UserInfoDTO, LinkedParkerDTO, UserAccountClient } from './../../base/models/models.swagger.generated';\r\nimport { SpinnerService } from './../../base/spinner/spinner.service';\r\nimport { AuthService } from '../../base/services/auth.service';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { NgIf } from '@angular/common';\r\nimport { TitleBarComponent } from '../../base/shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-link-parker-to-user',\r\n templateUrl: './link-parker-to-user.component.html',\r\n styleUrls: ['./link-parker-to-user.component.scss'],\r\n standalone: true,\r\n imports: [TitleBarComponent, NgIf, GridModule, TranslateModule]\r\n})\r\nexport class LinkParkerToUserComponent implements OnInit {\r\n public isUserAllowedToLinkParker: boolean;\r\n public linkFailed = false;\r\n public linkSuccessful = false;\r\n public linkedParkers: LinkedParkerDTO[];\r\n public parkerName = '';\r\n public companyName = '';\r\n\r\n constructor(\r\n private activatedRoute: ActivatedRoute,\r\n private authService: AuthService,\r\n private spinnerService: SpinnerService,\r\n private parkerClient: ParkerClient,\r\n private userAccountClient: UserAccountClient) { }\r\n\r\n ngOnInit() {\r\n this.isUserAllowedToLinkParker = this.authService.isUserStandardUser();\r\n if (this.isUserAllowedToLinkParker) {\r\n const userLinkCode = this.activatedRoute.snapshot.queryParams.code;\r\n this.spinnerService.showSpinner = true;\r\n this.parkerClient.linkParkerToUser(new LinkParkerToUserDTO({userLinkCode})).subscribe((parker: ParkerDTO) => {\r\n if (!parker) {\r\n this.linkFailed = true;\r\n this.spinnerService.showSpinner = false;\r\n }\r\n else {\r\n this.parkerName = parker.firstName + ' ' + parker.lastName;\r\n this.companyName = parker.company?.name;\r\n this.userAccountClient.info().subscribe((info: UserInfoDTO) => {\r\n this.spinnerService.showSpinner = false;\r\n this.linkedParkers = info.linkedParkers;\r\n this.linkSuccessful = true;\r\n }, (error: any) => {\r\n this.spinnerService.showSpinner = false;\r\n this.linkFailed = true;\r\n });\r\n }\r\n }, (error: any) => {\r\n this.spinnerService.showSpinner = false;\r\n this.linkFailed = true;\r\n });\r\n }\r\n }\r\n\r\n}\r\n","\r\n
    \r\n
    \r\n
    \r\n {{ \"i18n.domain.link-parker-to-user.message.user-not-allowed\" | translate }}\r\n
    \r\n
    \r\n {{ \"i18n.domain.link-parker-to-user.message.link-failed\" | translate }}\r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.firstName}} {{data.lastName}}\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n","import { Component, OnInit } from '@angular/core';\r\nimport {ActivatedRoute} from '@angular/router';\r\nimport {AccountClient, UserAccountClient} from '../models/models.swagger.generated';\r\nimport {SpinnerService} from '../spinner/spinner.service';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgIf } from '@angular/common';\r\nimport { TitleBarComponent } from '../shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-confirm-email',\r\n templateUrl: './confirm-email.component.html',\r\n styleUrls: ['./confirm-email.component.scss'],\r\n standalone: true,\r\n imports: [TitleBarComponent, NgIf, TranslateModule]\r\n})\r\nexport class ConfirmEmailComponent implements OnInit {\r\n\r\n public success = false;\r\n\r\n constructor(\r\n public spinnerService: SpinnerService,\r\n private route: ActivatedRoute,\r\n private userAccountClient: UserAccountClient,\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.spinnerService.showSpinner = true;\r\n\r\n this.route.queryParams.subscribe(params => {\r\n if (params.userId != null || params.code != null) {\r\n this.userAccountClient.confirmEmail(params.userId, params.code).subscribe( ()=> {\r\n this.spinnerService.showSpinner = false;\r\n this.success = true;\r\n }, () => {\r\n this.spinnerService.showSpinner = false;\r\n this.success = false;\r\n });\r\n } else {\r\n this.spinnerService.showSpinner = false;\r\n }\r\n }, () => {\r\n this.spinnerService.showSpinner = false;\r\n });\r\n\r\n }\r\n\r\n}\r\n","\r\n
    \r\n
    \r\n

    {{ \"i18n.base.confirm-email.success-message\" | translate }}

    \r\n
    \r\n
    \r\n

    {{ \"i18n.base.confirm-email.error-header\" | translate }}

    \r\n

    {{ \"i18n.base.confirm-email.error-message\" | translate }}

    \r\n
    \r\n
    \r\n","import { Injectable } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { AuthService } from '../services/auth.service';\r\nimport { homeRoute, loginRoute } from '../../core/routing/route-names';\r\nimport { ActivationGuardBase } from './activation-guard.base';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ClientUserGuard extends ActivationGuardBase {\r\n constructor(private authService: AuthService, private router: Router) {\r\n super();\r\n }\r\n\r\n checkLogin(url: string): boolean {\r\n if (this.authService.isUserLoggedIn() && (this.authService.isUserClientUser() \r\n || this.authService.isUserAdminOrClientAdmin()\r\n || this.authService.isUserAdminOrClientAdminOrCompanyAdmin()\r\n )) {\r\n return true;\r\n }\r\n\r\n // Store the attempted URL for redirecting\r\n this.authService.redirectUrl = url;\r\n\r\n // Navigate to the login page with extras\r\n if (this.authService.isUserLoggedIn()) {\r\n this.router.navigate([homeRoute]);\r\n } else {\r\n this.router.navigate([loginRoute]);\r\n }\r\n return false;\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ShowInactiveService } from '../../../base/shared/grid-base/show-inactive.service';\r\nimport { IAdaptorService } from '../../../base/shared/syncfusion/adaptor-service.interface';\r\nimport { Observable, of } from 'rxjs';\r\nimport {\r\n FilterDTO,\r\n FilterOperator,\r\n PagedResultDTOOfParkerTagDTO,\r\n ParkerTagClient,\r\n SortDirection,\r\n} from '../../../base/models/models.swagger.generated';\r\nimport { ClientService } from '../../../base/services/client/client.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class TagsAdministrationService extends ShowInactiveService implements IAdaptorService {\r\n\r\n constructor(private parkerTagClient: ParkerTagClient,\r\n private clientService: ClientService) {\r\n super();\r\n }\r\n\r\n public getData(skip: number, take: number, filters: FilterDTO[], sortBy: string, sortDirection: SortDirection): Observable {\r\n if (!this.showInactive) {\r\n if (!filters) {\r\n filters = [];\r\n }\r\n filters.push(new FilterDTO({isComplex: false, field: 'Active', operator: FilterOperator.Equal, value: 'true'}));\r\n }\r\n if (!sortBy) {\r\n sortBy = 'barcode,IdentificationCode';\r\n }\r\n if (this.clientService.selectedClient == null) {\r\n return of(new PagedResultDTOOfParkerTagDTO({items: [], totalNumberOfItems: 0}));\r\n }\r\n return this.parkerTagClient.searchTags(this.clientService.selectedClient.id, filters, skip, take, sortBy, sortDirection);\r\n }\r\n\r\n public addRecord(data: any): Observable {\r\n return undefined;\r\n }\r\n\r\n public deleteRecord(id: number): Observable {\r\n return undefined;\r\n }\r\n\r\n public updateRecord(data: any): Observable {\r\n return undefined;\r\n }\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { GridBaseComponent } from '../../../base/shared/grid-base/grid-base.component';\r\nimport { ClientService } from '../../../base/services/client/client.service';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { TagsAdministrationService } from './tags-administration.service';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { AvpCustomAdaptor } from '../../../base/shared/syncfusion/avp-custom-adaptor';\r\nimport { SpinnerService } from '../../../base/spinner/spinner.service';\r\nimport { ClientDTO, ControlPlateType, ParkerTagDTO } from '../../../base/models/models.swagger.generated';\r\nimport { GridConstantsFactory } from '../../../base/shared/syncfusion/grid-constants-factory';\r\nimport { CommandModel, SaveEventArgs, SearchSettingsModel, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { Router } from '@angular/router';\r\nimport { parkerAdministrationRoute } from '../../../core/routing/route-names';\r\nimport { FormBuilder, UntypedFormBuilder } from '@angular/forms';\r\nimport { SfCommandButtonType } from 'src/app/base/models/syncfusion-data';\r\nimport { CheckBoxModule } from '@syncfusion/ej2-angular-buttons';\r\nimport { SearchFieldComponent } from '../../../base/shared/search-field/search-field.component';\r\nimport { DatePipe, NgIf } from '@angular/common';\r\nimport { ClientAutocompleteComponent } from '../../../base/shared/client-autocomplete/client-autocomplete.component';\r\nimport { TitleBarComponent } from '../../../base/shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-tags-administration',\r\n templateUrl: './tags-administration.component.html',\r\n styleUrls: ['./tags-administration.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TitleBarComponent,\r\n ClientAutocompleteComponent,\r\n NgIf,\r\n SearchFieldComponent,\r\n CheckBoxModule,\r\n GridModule,\r\n TranslateModule,\r\n DatePipe\r\n ],\r\n})\r\nexport class TagsAdministrationComponent extends GridBaseComponent implements OnInit {\r\n\r\n public checkBoxFilter = GridConstantsFactory.createCheckBoxFilter();\r\n\r\n constructor(clientService: ClientService,\r\n translate: TranslateService,\r\n private tagsAdministrationService: TagsAdministrationService,\r\n private router: Router,\r\n private fb: FormBuilder,\r\n private spinnerService: SpinnerService) {\r\n super(clientService, translate, tagsAdministrationService);\r\n this.searchOptions = {fields: ['barcode', 'countryCode', 'identificationCode', 'description']};\r\n this.gridCommands = [\r\n {\r\n type: SfCommandButtonType.Edit,\r\n buttonOption: {\r\n cssClass: 'icon-btn',\r\n iconCss: 'icon-edit e-icons',\r\n },\r\n } as CommandModel,\r\n ];\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.tagsAdministrationService, this.spinnerService),\r\n });\r\n this.isActiveColumnName = 'active';\r\n this.editDialogTitle = 'i18n.domain.tags-administration.edit-dialog-title';\r\n this.addDialogTitle = 'i18n.domain.tags-administration.add-dialog-title';\r\n this.addIndexFindColumnName = 'id';\r\n }\r\n\r\n public override get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public override set selectedClient(value: ClientDTO) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n }\r\n\r\n public override actionBegin(args: SaveEventArgs) {\r\n if (args.requestType === 'beginEdit') {\r\n const parkerId = (args.rowData as ParkerTagDTO).parkerId;\r\n this.router.navigate([parkerAdministrationRoute], {queryParams: {parkerId}});\r\n args.cancel = true;\r\n }\r\n }\r\n\r\n public formatControlPlateType(data): string {\r\n return 'i18n.shared.controlPlateType.' + ControlPlateType[data.controlPlateType];\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData: any): any {\r\n return null;\r\n }\r\n\r\n protected initializeEditForm(data: any): void {\r\n this.gridEditForm = this.fb.group({});\r\n }\r\n\r\n}\r\n","\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{formatControlPlateType(data) | translate}}\r\n \r\n {{formatControlPlateType(data) | translate}}\r\n \r\n \r\n \r\n \r\n {{data.controlPlateNumber | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.modifiedOn | date: 'dd.MM.yyyy HH:mm:ss'}}
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n {{formatIsActive(data, 'active')}}\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n","import { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { distinctUntilChanged, filter, switchMap, tap } from 'rxjs/operators';\r\nimport { UntypedFormGroup, Validators } from '@angular/forms';\r\nimport {\r\n ControlPlateType,\r\n ParkingProcessInfoDTO,\r\n ParkingProcessLimitedZoneWithParentInfoDTO,\r\n ParkingProcessSubscriptionAssignmentInfoDTO,\r\n ParkingProcessZoneInfoDTO,\r\n UserInfoDTO,\r\n} from '../../base/models/models.swagger.generated';\r\nimport { ParkingService } from './parking/parking.service';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { Subject, Subscription, Observable, of } from 'rxjs';\r\n\r\nexport interface IPlate {\r\n countryCode: string;\r\n type: ControlPlateType;\r\n numberPlate: string;\r\n}\r\n\r\nexport class ParkingHelper {\r\n\r\n public clientDropdownValues: {name: string; id: number}[] = [];\r\n public subscriptionsDropdownValues: {name: string; id: number; assignment: ParkingProcessSubscriptionAssignmentInfoDTO}[] = [];\r\n public zoneDropdownValues: {name: string[]; id: number}[] = [];\r\n public parkingSpaceNumberDefinition: string;\r\n public controlPlateDropdownValues: {name: string; id: number; plate: IPlate}[] = [];\r\n\r\n public parkingProcessZoneInfoDTO: ParkingProcessZoneInfoDTO[];\r\n public zonesLoaded = new Subject();\r\n public hasFoundZones = true;\r\n public hasFoundSubscriptions = true;\r\n public hasFoundControlPlates = true;\r\n\r\n private user: UserInfoDTO;\r\n\r\n constructor(private isAutomaticParking: boolean,\r\n private parkingProcessInfoService: ParkingService,\r\n private translate: TranslateService,\r\n private spinnerService: SpinnerService) {}\r\n\r\n // user needs to be set beforehand\r\n public assignFormFieldSubscriptions(parkingForm: UntypedFormGroup, subscriptions: Subscription, user: UserInfoDTO) {\r\n this.user = user;\r\n subscriptions.add(\r\n parkingForm.get('clientId').valueChanges\r\n .pipe(\r\n filter(val => !!val),\r\n distinctUntilChanged(),\r\n switchMap(clientId => this.isAutomaticParking\r\n ? this.parkingProcessInfoService.getAutomaticParkingScheduleZoneInfos(clientId)\r\n : this.parkingProcessInfoService.getParkingProcessZoneInfos(clientId)),\r\n )\r\n .subscribe(parkingProcessZoneInfoDTO => {\r\n this.parkingProcessZoneInfoDTO = parkingProcessZoneInfoDTO;\r\n this.createZoneDropdownValues(parkingProcessZoneInfoDTO);\r\n this.hasFoundZones = this.zoneDropdownValues?.length > 0;\r\n const zoneValue = this.zoneDropdownValues?.find(z => z.id === parkingForm.get('zoneId').getRawValue());\r\n if (zoneValue == null) {\r\n if (this.zoneDropdownValues?.length === 1) {\r\n parkingForm.get('zoneId').setValue(this.zoneDropdownValues[0].id, {onlySelf: true});\r\n parkingForm.get('zoneId').disable();\r\n } else {\r\n parkingForm.get('zoneId').setValue(null, {onlySelf: true});\r\n parkingForm.get('zoneId').enable();\r\n }\r\n }\r\n })\r\n );\r\n\r\n subscriptions.add(\r\n parkingForm.get('zoneId').valueChanges.pipe(distinctUntilChanged()).subscribe(zoneId => {\r\n this.createSubscriptionDropdownValues(zoneId);\r\n if (zoneId) {\r\n this.hasFoundSubscriptions = this.subscriptionsDropdownValues?.length > 0;\r\n }\r\n const subscription = this.subscriptionsDropdownValues?.find(s => s.id === parkingForm.get('subscriptionId').getRawValue());\r\n if (subscription == null) {\r\n if (this.subscriptionsDropdownValues?.length === 1) {\r\n parkingForm.get('subscriptionId').setValue(this.subscriptionsDropdownValues[0].id, {onlySelf: true});\r\n parkingForm.get('subscriptionId').disable();\r\n } else {\r\n parkingForm.get('subscriptionId').setValue(null, {onlySelf: true});\r\n parkingForm.get('subscriptionId').enable();\r\n }\r\n }\r\n })\r\n );\r\n\r\n subscriptions.add(\r\n parkingForm.get('subscriptionId').valueChanges.pipe(distinctUntilChanged()).subscribe(subscriptionId => {\r\n this.handleVehicleFields(this.user, subscriptionId, parkingForm.get('zoneId').value);\r\n if (subscriptionId) {\r\n this.hasFoundControlPlates = this.controlPlateDropdownValues?.length > 0;\r\n }\r\n if (this.controlPlateDropdownValues?.length === 1) {\r\n parkingForm.get('controlPlateId').setValue(this.controlPlateDropdownValues[0].id, {onlySelf: true});\r\n parkingForm.get('controlPlateId').disable();\r\n } else {\r\n parkingForm.get('controlPlateId').enable();\r\n }\r\n })\r\n );\r\n\r\n if (parkingForm.get('newVehicle')) {\r\n subscriptions.add(\r\n parkingForm.get('controlPlateId').valueChanges.subscribe(controlPlateId => {\r\n if (controlPlateId === -1) {\r\n parkingForm.get('newVehicle').get('type').setValidators([Validators.required]);\r\n parkingForm.get('newVehicle').get('type').setValue(null);\r\n parkingForm.get('newVehicle').get('countryCode').setValidators([Validators.required]);\r\n parkingForm.get('newVehicle').get('countryCode').setValue(null);\r\n parkingForm.get('newVehicle').get('numberPlate').setValidators([Validators.required]);\r\n parkingForm.get('newVehicle').get('numberPlate').setValue(null);\r\n } else {\r\n const selectedPlateEntry = this.controlPlateDropdownValues.find(plate => plate.id === controlPlateId);\r\n if (selectedPlateEntry) {\r\n parkingForm.get('newVehicle').get('type').setValidators([]);\r\n parkingForm.get('newVehicle').get('type').setValue(selectedPlateEntry.plate.type);\r\n parkingForm.get('newVehicle').get('countryCode').setValidators([]);\r\n parkingForm.get('newVehicle').get('countryCode').setValue(selectedPlateEntry.plate.countryCode);\r\n parkingForm.get('newVehicle').get('numberPlate').setValidators([]);\r\n parkingForm.get('newVehicle').get('numberPlate').setValue(selectedPlateEntry.plate.numberPlate);\r\n }\r\n }\r\n parkingForm.get('newVehicle').get('type').updateValueAndValidity();\r\n parkingForm.get('newVehicle').get('countryCode').updateValueAndValidity();\r\n parkingForm.get('newVehicle').get('numberPlate').updateValueAndValidity();\r\n })\r\n );\r\n }\r\n\r\n if(!this.isAutomaticParking) {\r\n subscriptions.add(\r\n this.translate.onLangChange.subscribe(() => {\r\n if (this.controlPlateDropdownValues.find(v => v.id === -1)) {\r\n this.controlPlateDropdownValues = this.controlPlateDropdownValues.map(v => {\r\n if (v.id === -1) {\r\n return {name: this.translate.instant('i18n.domain.parking.addVehicle') + '...', id: -1, plate: null};\r\n } else {\r\n return v;\r\n }\r\n });\r\n } else {\r\n this.controlPlateDropdownValues = [...this.controlPlateDropdownValues, {\r\n name: this.translate.instant('i18n.domain.parking.addVehicle') + '...',\r\n id: -1,\r\n plate: null\r\n }];\r\n }\r\n })\r\n );\r\n }\r\n }\r\n\r\n public handleParkingProcessInfo(user: UserInfoDTO, parkingProcessInfo: ParkingProcessInfoDTO, parkingForm: UntypedFormGroup) {\r\n if (!parkingProcessInfo?.activeCheckinInfo) {\r\n // TODO: call reset\r\n return;\r\n }\r\n this.user = user;\r\n const activeCheckinInfo = parkingProcessInfo.activeCheckinInfo;\r\n this.createClientDropdownValues();\r\n parkingForm.get('clientId').setValue(activeCheckinInfo.clientId);\r\n\r\n this.zoneDropdownValues = [{name: this.getZoneNameArray(activeCheckinInfo.zone), id: activeCheckinInfo.zoneId}];\r\n parkingForm.get('zoneId').setValue(activeCheckinInfo.zoneId);\r\n\r\n this.subscriptionsDropdownValues = [{\r\n name: activeCheckinInfo.subscriptionAssignment?.subscription.name ?? this.translate.instant('i18n.domain.parking.no-subscription-assigned'),\r\n id: activeCheckinInfo.subscriptionAssignment?.id ?? -1,\r\n assignment: null\r\n }];\r\n parkingForm.get('subscriptionId').setValue(activeCheckinInfo.subscriptionAssignment?.id ?? -1);\r\n\r\n this.controlPlateDropdownValues = [{name: activeCheckinInfo.controlPlateNumber, id: 1, plate: null}];\r\n parkingForm.get('controlPlateId').setValue(1);\r\n\r\n parkingForm.get('parkingSpaceNumber').setValue(activeCheckinInfo.parkingSpaceNumber);\r\n }\r\n\r\n public initDropDownValuesForValidForm(user: UserInfoDTO, parkingForm: UntypedFormGroup): Observable {\r\n this.hasFoundZones = true;\r\n this.hasFoundSubscriptions = true;\r\n this.hasFoundControlPlates = true;\r\n this.user = user;\r\n this.createClientDropdownValues();\r\n if (parkingForm.get('clientId').value) {\r\n this.spinnerService.showSpinner = true;\r\n return this.parkingProcessInfoService.getAutomaticParkingScheduleZoneInfos(parkingForm.get('clientId').value).pipe(tap({\r\n next: parkingProcessZoneInfo => {\r\n this.spinnerService.reset();\r\n this.parkingProcessZoneInfoDTO = parkingProcessZoneInfo;\r\n this.createZoneDropdownValues(parkingProcessZoneInfo);\r\n if (this.zoneDropdownValues?.length === 1) {\r\n parkingForm.get('zoneId').disable();\r\n } else {\r\n parkingForm.get('zoneId').enable();\r\n }\r\n this.createSubscriptionDropdownValues(parkingForm.get('zoneId').value);\r\n if (this.subscriptionsDropdownValues?.length === 1) {\r\n parkingForm.get('subscriptionId').disable();\r\n } else {\r\n parkingForm.get('subscriptionId').enable();\r\n }\r\n this.handleVehicleFields(user, parkingForm.get('subscriptionId').value, parkingForm.get('zoneId').value);\r\n if (this.controlPlateDropdownValues?.length === 1) {\r\n parkingForm.get('controlPlateId').disable();\r\n } else {\r\n parkingForm.get('controlPlateId').enable();\r\n }\r\n },\r\n error: error => {this.spinnerService.reset();}}));\r\n }\r\n return of(null);\r\n }\r\n\r\n public createParkingProcessDropdownFieldsValues(user: UserInfoDTO): void {\r\n this.hasFoundZones = true;\r\n this.hasFoundSubscriptions = true;\r\n this.hasFoundControlPlates = true;\r\n this.user = user;\r\n this.createClientDropdownValues();\r\n }\r\n\r\n public handleVehicleFields(user: UserInfoDTO, subscriptionId: number, zoneId: number): void {\r\n const assignment = this.subscriptionsDropdownValues?.find(s => s.id === subscriptionId)?.assignment;\r\n const zoneInfo = this.parkingProcessZoneInfoDTO?.find(z => z.id === zoneId);\r\n if (!assignment || !zoneInfo) {\r\n this.controlPlateDropdownValues = [];\r\n return;\r\n }\r\n // TODO: switch if statement for V1.1 to support when foreign parkers are allowed\r\n // if (this.isAutomaticParking || !zoneInfo.foreignParkersAllowed) {\r\n if (true) {\r\n const linkedParkerTags = user.linkedParkers\r\n .find(parker => parker.parkerId === assignment.parkerId)?.tags;\r\n this.controlPlateDropdownValues = linkedParkerTags.map(tag => ({\r\n name: tag.controlPlateNumber?.toUpperCase(),\r\n id: tag.id,\r\n plate: {\r\n countryCode: tag.countryCode,\r\n type: tag.controlPlateType,\r\n numberPlate: tag.controlPlateNumber\r\n }\r\n }));\r\n } else {\r\n this.controlPlateDropdownValues = user.controlPlates.map(plate => ({\r\n name: plate.controlPlateNumber?.toUpperCase(),\r\n id: plate.id,\r\n plate: {\r\n countryCode: plate.countryCode,\r\n type: plate.controlPlateType,\r\n numberPlate: plate.controlPlateNumber\r\n }\r\n }));\r\n\r\n this.controlPlateDropdownValues = [...this.controlPlateDropdownValues, {\r\n name: this.translate.instant('i18n.domain.parking.addVehicle') + '...',\r\n id: -1,\r\n plate: null\r\n }];\r\n }\r\n }\r\n\r\n public resetZone(form: UntypedFormGroup): void {\r\n form.get('zoneId').setValue(null);\r\n this.resetSubscription(form);\r\n }\r\n\r\n public resetSubscription(form: UntypedFormGroup): void {\r\n form.get('subscriptionId').setValue(null);\r\n this.resetWeekdays(form);\r\n }\r\n\r\n public resetWeekdays(form: UntypedFormGroup): void {\r\n if (!!form.get('weekdays')) {\r\n form.get('weekdays').get('allowedMonday').setValue(false);\r\n form.get('weekdays').get('allowedTuesday').setValue(false);\r\n form.get('weekdays').get('allowedWednesday').setValue(false);\r\n form.get('weekdays').get('allowedThursday').setValue(false);\r\n form.get('weekdays').get('allowedFriday').setValue(false);\r\n form.get('weekdays').get('allowedSaturday').setValue(false);\r\n form.get('weekdays').get('allowedSunday').setValue(false);\r\n this.resetTimeDuration(form);\r\n }\r\n }\r\n\r\n public resetTimeDuration(form: UntypedFormGroup): void {\r\n form.get('startTime').setValue(null);\r\n form.get('duration').setValue(null);\r\n }\r\n\r\n private getZoneNameArray(zone: ParkingProcessZoneInfoDTO | ParkingProcessLimitedZoneWithParentInfoDTO, names: string[] = []): string[] {\r\n names.push(zone.name);\r\n return zone.parent ? this.getZoneNameArray(zone.parent, names) : names.reverse();\r\n }\r\n\r\n private createSubscriptionDropdownValues(zoneId: number): void {\r\n if (!zoneId || !this.parkingProcessZoneInfoDTO) {\r\n this.subscriptionsDropdownValues = [];\r\n return;\r\n }\r\n const zone = this.parkingProcessZoneInfoDTO.find(z => z.id === zoneId);\r\n let subscriptionAssignments = [];\r\n if (zone && zone.subscriptionAssignments) {\r\n subscriptionAssignments = zone.subscriptionAssignments;\r\n }\r\n\r\n this.parkingSpaceNumberDefinition = zone?.parkingSpaceNumberDefinition;\r\n\r\n // TODO: commented out code in sort was for AVP-501 -> deactivated again since there were massive differences with mobile app => needs clarification\r\n this.subscriptionsDropdownValues = subscriptionAssignments.map(s => ({name: s.subscription.name, id: s.id, assignment: s}))\r\n .sort((o1, o2) => /*o1.assignment.isFavorite != o2.assignment.isFavorite ? o2.assignment.isFavorite - o1.assignment.isFavorite : */o1.name.toLowerCase().localeCompare(o2.name.toLowerCase()));\r\n }\r\n\r\n private createZoneDropdownValues(parkingProcessZoneInfoDTO: ParkingProcessZoneInfoDTO[]): void {\r\n this.zoneDropdownValues = parkingProcessZoneInfoDTO.map(zone => ({\r\n name: this.getZoneNameArray(zone),\r\n id: zone.id,\r\n }))\r\n .sort((o1, o2) => o1.name.join().toLowerCase().localeCompare(o2.name.join().toLowerCase()));\r\n }\r\n\r\n private createClientDropdownValues(): void {\r\n this.clientDropdownValues = this.user.linkedParkers\r\n .filter(parker => parker.isClientManaged && parker.client?.isActive && (!this.isAutomaticParking || parker.client?.automaticParkingSchedulesEnabled))\r\n .map(lp => lp.client)\r\n .map(client => ({name: client.name, id: client.id}))\r\n .filter((value, index, self) => index === self.findIndex(val => val.id === value.id));\r\n }\r\n}\r\n","/* eslint-disable no-bitwise */\r\nimport { WeekdayNumbers } from 'luxon';\r\nimport { WeekDayFlags } from '../../models/models.swagger.generated';\r\n\r\nexport interface IWeekdays {\r\n allowedMonday?: boolean;\r\n allowedTuesday?: boolean;\r\n allowedWednesday?: boolean;\r\n allowedThursday?: boolean;\r\n allowedFriday?: boolean;\r\n allowedSaturday?: boolean;\r\n allowedSunday?: boolean;\r\n}\r\n\r\nexport class WeekDayFlagsHelper {\r\n\r\n public static WEEK_DAY_FLAG_WORKING_DAYS = WeekDayFlags.Monday | WeekDayFlags.Tuesday | WeekDayFlags.Wednesday | WeekDayFlags.Thursday | WeekDayFlags.Friday;\r\n public static WEEK_DAY_FLAG_WEEKEND = WeekDayFlags.Saturday | WeekDayFlags.Sunday;\r\n public static WEEK_DAY_FLAG_ALL_DAYS = WeekDayFlagsHelper.WEEK_DAY_FLAG_WORKING_DAYS | WeekDayFlagsHelper.WEEK_DAY_FLAG_WEEKEND;\r\n public static WEEK_DAY_FLAG_NONE = 0 as WeekDayFlags;\r\n\r\n public static daysToFlag(weekdays: IWeekdays): WeekDayFlags {\r\n let weekdaysFlag = WeekDayFlagsHelper.WEEK_DAY_FLAG_NONE;\r\n if (weekdays?.allowedMonday) {\r\n weekdaysFlag += WeekDayFlags.Monday;\r\n }\r\n if (weekdays?.allowedTuesday) {\r\n weekdaysFlag += WeekDayFlags.Tuesday;\r\n }\r\n if (weekdays?.allowedWednesday) {\r\n weekdaysFlag += WeekDayFlags.Wednesday;\r\n }\r\n if (weekdays?.allowedThursday) {\r\n weekdaysFlag += WeekDayFlags.Thursday;\r\n }\r\n if (weekdays?.allowedFriday) {\r\n weekdaysFlag += WeekDayFlags.Friday;\r\n }\r\n if (weekdays?.allowedSaturday) {\r\n weekdaysFlag += WeekDayFlags.Saturday;\r\n }\r\n if (weekdays?.allowedSunday) {\r\n weekdaysFlag += WeekDayFlags.Sunday;\r\n }\r\n return weekdaysFlag;\r\n }\r\n\r\n public static luxonWeekdayToFlag(weekday: number): WeekDayFlags {\r\n return 1 << (weekday - 1);\r\n }\r\n\r\n public static hasFlags(source: WeekDayFlags, daysToCheckFor: WeekDayFlags) {\r\n return !!(source & daysToCheckFor);\r\n }\r\n\r\n public static shiftFlagsOneDayBack(dayFlag: WeekDayFlags): WeekDayFlags\r\n {\r\n // monday becomes sunday, ...\r\n const overflowAdd = WeekDayFlagsHelper.hasFlags(dayFlag, WeekDayFlags.Monday) ? WeekDayFlags.Sunday : 0;\r\n const val = dayFlag >> 1 + overflowAdd;\r\n return val;\r\n }\r\n\r\n public static shiftFlagsOneDayForward(dayFlag: WeekDayFlags): WeekDayFlags\r\n {\r\n // sunday becomes monday, ...\r\n const overflowAdd = WeekDayFlagsHelper.hasFlags(dayFlag, WeekDayFlags.Sunday) ? WeekDayFlags.Monday : 0;\r\n const val = (dayFlag << 1) & WeekDayFlagsHelper.WEEK_DAY_FLAG_ALL_DAYS | overflowAdd;\r\n return val;\r\n }\r\n}\r\n","import { DateTime} from 'luxon';\r\nimport { ParkingProcessTariffInfoDTO, WeekDayFlags } from 'src/app/base/models/models.swagger.generated';\r\nimport { WeekDayFlagsHelper } from 'src/app/base/shared/utils/week-day-flags.helper';\r\n\r\n// copied form backend\r\nexport interface IParkingTariffValidity {\r\n startDateTime: DateTime;\r\n endDateTime: DateTime;\r\n tariff: ParkingProcessTariffInfoDTO;\r\n isFallbackTariff: boolean;\r\n}\r\n\r\nexport class ParkingTariffValidity {\r\n public startDateTime: DateTime;\r\n public endDateTime: DateTime;\r\n public tariff: ParkingProcessTariffInfoDTO;\r\n public isFallbackTariff: boolean;\r\n\r\n constructor(tariffValidity: IParkingTariffValidity) {\r\n this.startDateTime = tariffValidity?.startDateTime;\r\n this.endDateTime = tariffValidity?.endDateTime;\r\n this.tariff = tariffValidity?.tariff;\r\n this.isFallbackTariff = tariffValidity?.isFallbackTariff;\r\n }\r\n\r\n public getWeekDayFlagsOfValidity(): WeekDayFlags {\r\n let weekDayFlags: WeekDayFlags = 0 as WeekDayFlags;\r\n let date = this.startDateTime;\r\n for (let i = 0; i < 7; i++) {\r\n if (date.startOf('day') > this.endDateTime) {\r\n break;\r\n }\r\n // eslint-disable-next-line no-bitwise\r\n weekDayFlags |= WeekDayFlagsHelper.luxonWeekdayToFlag(date.weekday);\r\n date = date.plus({days: 1});\r\n }\r\n return weekDayFlags;\r\n }\r\n}\r\n","import { WeekDayFlagsHelper } from 'src/app/base/shared/utils/week-day-flags.helper';\r\nimport { DateTime } from 'luxon';\r\nimport { ParkingProcessTariffInfoDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { ParkingTariffValidity } from './parking-tariff-validity';\r\n\r\n// copied form backend\r\nexport class ParkingTimeGrid\r\n{\r\n public start: DateTime;\r\n public end: DateTime;\r\n public tariffValidityList: ParkingTariffValidity[];\r\n\r\n constructor(startUtc: DateTime, endUtc: DateTime) {\r\n // TODO: figure out whether here the time really needs to be set as utc\r\n this.start = startUtc.toLocal();\r\n this.end = endUtc.toLocal();\r\n }\r\n\r\n public setup(parkingTariffs: ParkingProcessTariffInfoDTO[], tariffsMaxValidityTimeUtc: DateTime, fallbackTariffs: ParkingProcessTariffInfoDTO[]) {\r\n const tariffValidityList: ParkingTariffValidity[] = [];\r\n this.addTariffsToValidityList(tariffValidityList, parkingTariffs, tariffsMaxValidityTimeUtc?.toLocal(), false);\r\n this.addTariffsToValidityList(tariffValidityList, fallbackTariffs, null, true);\r\n this.tariffValidityList = tariffValidityList.sort((a, b) => a.startDateTime.toMillis() - b.startDateTime.toMillis());\r\n }\r\n\r\n public getTariffValiditiesAt(dateTime: DateTime, activeTariff: ParkingProcessTariffInfoDTO, activeTariffRunningSince: DateTime): ParkingTariffValidity[]\r\n {\r\n let tariffValidityEnumerable = this.tariffValidityList.filter(t => t.startDateTime <= dateTime && t.endDateTime > dateTime);\r\n if (activeTariff != null)\r\n {\r\n if (activeTariff.isTwentyFourSevenTariff || activeTariff.durationInMinutes < 1440\r\n || (activeTariffRunningSince != null // if the active tariff has maxduration and it is already elapsed\r\n && activeTariff.maxParkingDurationInMin != null\r\n && activeTariffRunningSince.plus({minutes: activeTariff.maxParkingDurationInMin}) <= dateTime))\r\n {\r\n tariffValidityEnumerable = tariffValidityEnumerable.filter(t => t.tariff.id !== activeTariff.id);\r\n }\r\n }\r\n return tariffValidityEnumerable;\r\n }\r\n\r\n public getNextSwitchoverTimeForForeignParkingTariff(currentDateTime: DateTime, sessionEndTime: DateTime): DateTime {\r\n const filteredTariffValidities = this.tariffValidityList.filter(\r\n t => t.isFallbackTariff && t.startDateTime > currentDateTime && t.startDateTime < sessionEndTime)\r\n .sort((a, b) => a.startDateTime.toMillis() - b.startDateTime.toMillis());\r\n if (filteredTariffValidities.length)\r\n {\r\n return filteredTariffValidities[0].startDateTime;\r\n }\r\n return sessionEndTime;\r\n }\r\n\r\n private addTariffsToValidityList(tariffValidityList: ParkingTariffValidity[], tariffs: ParkingProcessTariffInfoDTO[],\r\n tariffsMaxValidityTime: DateTime, isFallback: boolean) {\r\n const endDate = this.end.startOf('day');\r\n tariffs?.forEach(tariff => {\r\n if (tariff.isTwentyFourSevenTariff)\r\n {\r\n const tariffValidity = new ParkingTariffValidity({\r\n startDateTime: this.start,\r\n endDateTime: tariffsMaxValidityTime ?? DateTime.fromISO('9999-12-31T23:59:00'),\r\n tariff,\r\n isFallbackTariff: isFallback\r\n });\r\n tariffValidityList.push(tariffValidity);\r\n return;\r\n }\r\n\r\n const weekInMinutes = 7 * 24 * 60;\r\n const durationInMinutes = tariff.durationInMinutes > weekInMinutes ? weekInMinutes : tariff.durationInMinutes;\r\n let lastValidity: ParkingTariffValidity = null;\r\n let date = this.start.plus({minutes: -1 * durationInMinutes}).startOf('day');\r\n while (date <= endDate)\r\n {\r\n if (WeekDayFlagsHelper.hasFlags(tariff.onWeekDays, WeekDayFlagsHelper.luxonWeekdayToFlag(date.weekday)))\r\n {\r\n const startDateTime = date.plus(tariff.startTime);\r\n let endDateTime = startDateTime.plus({minutes: durationInMinutes});\r\n if (tariffsMaxValidityTime != null && endDateTime.toMillis() > tariffsMaxValidityTime.toMillis())\r\n {\r\n endDateTime = tariffsMaxValidityTime;\r\n }\r\n if (startDateTime < this.end && endDateTime > this.start)\r\n {\r\n if (lastValidity?.endDateTime.toMillis() === startDateTime.toMillis())\r\n {\r\n lastValidity.endDateTime = endDateTime;\r\n } else {\r\n const tariffValidity = new ParkingTariffValidity({\r\n startDateTime,\r\n endDateTime,\r\n tariff,\r\n isFallbackTariff: isFallback\r\n });\r\n tariffValidityList.push(tariffValidity);\r\n lastValidity = tariffValidity;\r\n }\r\n }\r\n }\r\n date = date.plus({days: 1});\r\n }\r\n });\r\n }\r\n}\r\n","import { DateTime } from 'luxon';\r\n\r\nexport class ParkingTimeRange\r\n{\r\n public startTime: DateTime;\r\n\r\n public endTime: DateTime;\r\n\r\n constructor(startTime?: DateTime) {\r\n this.startTime = startTime;\r\n }\r\n\r\n // TODO: translate from specific time zone time\r\n public get startTimeUtc(): DateTime {\r\n return this.startTime.toUTC();\r\n }\r\n\r\n public getDurationInMinutes(): number\r\n {\r\n return this.endTime.diff(this.startTime).toMillis() / 60000;\r\n }\r\n\r\n public doRangesCover(timeRange: ParkingTimeRange): boolean\r\n {\r\n if (this.endTime <= timeRange.startTime || this.startTime >= timeRange.endTime)\r\n {\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n}\r\n","import { DateTime } from 'luxon';\r\nimport { ParkerRegistrationOffense, ParkingProcessTariffInfoDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { ParkingTimeRange } from './parking-time-range';\r\n\r\nexport class ParkingSessionTimeSlice\r\n{\r\n public timeRange: ParkingTimeRange;\r\n public tariff: ParkingProcessTariffInfoDTO;\r\n public offense = ParkerRegistrationOffense.NoOffense;\r\n\r\n public constructor(startTime: DateTime)\r\n {\r\n this.timeRange = new ParkingTimeRange(startTime);\r\n }\r\n}\r\n","import { ParkingSessionTimeSlice } from './parking-session-time-slice';\r\n\r\nexport class ParkingSessionTimeSliceCollection extends Array\r\n{\r\n public hasCollisionWith(otherCollection: ParkingSessionTimeSliceCollection): boolean\r\n {\r\n const itemWithCollision = this.find((t) => {\r\n const collidingWith = otherCollection.find((tOther) => {\r\n return t.timeRange.doRangesCover(tOther.timeRange);\r\n });\r\n return !!collidingWith;\r\n });\r\n return !!itemWithCollision;\r\n }\r\n}\r\n","import { ParkingTariffValidity } from './parking-tariff-validity';\r\n\r\ndeclare global {\r\n interface Array {\r\n getNonFallbackParkingTariffs(this: Array): ParkingTariffValidity[];\r\n getFallbackParkingTariffs(this: Array): ParkingTariffValidity[];\r\n }\r\n}\r\n\r\nArray.prototype.getNonFallbackParkingTariffs = function() {\r\n return this.filter(v => !v.isFallbackTariff);\r\n};\r\n\r\nArray.prototype.getFallbackParkingTariffs = function() {\r\n return this.filter(v => v.isFallbackTariff);\r\n};\r\n\r\nexport{};\r\n","import { DateTime } from 'luxon';\r\nimport { ParkingTariffValidity } from './parking-tariff-validity';\r\nimport './parking-validity-extension';\r\n\r\nexport interface ITariffSelectionStrategy\r\n{\r\n selectNext(selectionAt: DateTime, currentTariffValidity: ParkingTariffValidity): ParkingTariffValidity;\r\n}\r\n\r\nexport abstract class TariffSelectionStrategy implements ITariffSelectionStrategy\r\n{\r\n public tariffValidityList: ParkingTariffValidity[];\r\n\r\n protected constructor(tariffValidityList: ParkingTariffValidity[])\r\n {\r\n this.tariffValidityList = tariffValidityList;\r\n }\r\n\r\n public static Factory(tariffValidityList: ParkingTariffValidity[]): ITariffSelectionStrategy\r\n {\r\n return new TariffSelectionStrategyTariffWithMaxCoverage(tariffValidityList);//TariffSelectionStrategyFirstFromList(tariffs);\r\n }\r\n\r\n public abstract selectNext(selectionAt: DateTime, currentTariffValidity: ParkingTariffValidity): ParkingTariffValidity;\r\n}\r\n\r\n/* export class TariffSelectionStrategyFirstFromList extends TariffSelectionStrategy\r\n{\r\n constructor(tariffValidityList: ParkingTariffValidity[])\r\n {\r\n super(tariffValidityList);\r\n }\r\n\r\n public selectNext(selectionAt: DateTime, currentTariffValidity: ParkingTariffValidity): ParkingTariffValidity\r\n {\r\n // first check if there are any non foreign parking subscriptions available\r\n const nonFallbackParkingTariffValidityList = this.tariffValidityList?.getNonFallbackParkingTariffs();\r\n if (nonFallbackParkingTariffValidityList?.length > 0)\r\n {\r\n return nonFallbackParkingTariffValidityList[0]; // We take the first. Here we need to use strategy for selection\r\n }\r\n else\r\n {\r\n return this.tariffValidityList?.getFallbackParkingTariffs();\r\n }\r\n }\r\n} */\r\n\r\nexport class TariffSelectionStrategyTariffWithMaxCoverage extends TariffSelectionStrategy\r\n{\r\n constructor(tariffValidityList: ParkingTariffValidity[])\r\n {\r\n super(tariffValidityList);\r\n }\r\n\r\n public selectNext(selectionAt: DateTime, currentTariffValidity: ParkingTariffValidity): ParkingTariffValidity\r\n {\r\n const nonFallbackParkingTariffValidityList = this.tariffValidityList?.getNonFallbackParkingTariffs();\r\n if (nonFallbackParkingTariffValidityList?.length > 0)\r\n {\r\n if (nonFallbackParkingTariffValidityList.length > 1)\r\n {\r\n nonFallbackParkingTariffValidityList.sort((a, b) => this.calculateMintuesLeft(selectionAt, a) - this.calculateMintuesLeft(selectionAt, b));\r\n }\r\n const selectedValidity = nonFallbackParkingTariffValidityList[0];\r\n\r\n if (selectedValidity.endDateTime.toMillis() !== selectionAt.toMillis()) {\r\n return selectedValidity;\r\n }\r\n }\r\n\r\n const fallbackValidityList = this.tariffValidityList?.getFallbackParkingTariffs();\r\n if (fallbackValidityList) {\r\n if (fallbackValidityList?.length > 1) {\r\n fallbackValidityList.sort((a, b) => this.calculateMintuesLeft(selectionAt, a) - this.calculateMintuesLeft(selectionAt, b));\r\n }\r\n const fallbackValidity = fallbackValidityList[0];\r\n if (fallbackValidity?.endDateTime !== selectionAt)\r\n {\r\n return fallbackValidity;\r\n }\r\n }\r\n\r\n return null;\r\n }\r\n\r\n private calculateMintuesLeft(selectionAt: DateTime, tariffValidity: ParkingTariffValidity): number {\r\n const minutesLeft = tariffValidity.endDateTime.diff(selectionAt).toMillis() / 60000;\r\n return Math.min(minutesLeft, tariffValidity.tariff.maxParkingDurationInMin ?? Number.MAX_SAFE_INTEGER);\r\n }\r\n}\r\n","import { DateTime } from 'luxon';\r\nimport { ParkerRegistrationOffense } from 'src/app/base/models/models.swagger.generated';\r\nimport { ParkingSessionTimeSlice } from './parking-session-time-slice';\r\nimport { ParkingSessionTimeSliceCollection } from './parking-session-time-slice-collection';\r\nimport { ParkingTariffValidity } from './parking-tariff-validity';\r\nimport { ParkingTimeGrid } from './parking-time-grid';\r\nimport { TariffSelectionStrategy } from './tariff-selection-strategies';\r\n\r\n// copied form backend\r\nexport class SessionTimeSlicer\r\n{\r\n public activeTariffValidity: ParkingTariffValidity;\r\n public activeTimeSlice: ParkingSessionTimeSlice;\r\n public timeGrid: ParkingTimeGrid;\r\n\r\n private constructor(timeGrid: ParkingTimeGrid)\r\n {\r\n this.timeGrid = timeGrid;\r\n }\r\n\r\n public static for(timeGrid: ParkingTimeGrid): SessionTimeSlicer\r\n {\r\n return new SessionTimeSlicer(timeGrid);\r\n }\r\n\r\n public sliceOverWholeGridSpan(): ParkingSessionTimeSliceCollection\r\n {\r\n return this.slice(this.timeGrid.start, this.timeGrid.end);\r\n }\r\n\r\n public slice(startTime: DateTime, endTime: DateTime): ParkingSessionTimeSliceCollection\r\n {\r\n const timeSliceCollection = new ParkingSessionTimeSliceCollection();\r\n timeSliceCollection.push(...this.sliceRecursively(startTime, endTime));\r\n return timeSliceCollection;\r\n }\r\n\r\n private sliceRecursively(startTime: DateTime, sessionEndTime: DateTime, activeTariffValidity?: ParkingTariffValidity,\r\n activeTariffRunningSince?: DateTime): ParkingSessionTimeSlice[]\r\n {\r\n const parkingSessionTimeSlices: ParkingSessionTimeSlice[] = [];\r\n this.activeTimeSlice = new ParkingSessionTimeSlice(startTime);\r\n parkingSessionTimeSlices.push(this.activeTimeSlice);\r\n\r\n const tariffValidityList = this.timeGrid.getTariffValiditiesAt(startTime, activeTariffValidity?.tariff, activeTariffRunningSince);\r\n if (!tariffValidityList?.length) // no tariffs available at this point. This is an offense\r\n {\r\n //if no tariff is active at the moment, then it is during entry. hence zone not allowed, else parking time too long\r\n this.activeTimeSlice.offense = activeTariffValidity != null ? ParkerRegistrationOffense.ParkingTimeTooLong : ParkerRegistrationOffense.ZoneNotAllowed;\r\n this.activeTimeSlice.timeRange.endTime = sessionEndTime;\r\n }\r\n else\r\n {\r\n // select next tariff. Currently only the first next available tariff\r\n const tariffSelectionStrategy = TariffSelectionStrategy.Factory(tariffValidityList);\r\n this.activeTariffValidity = tariffSelectionStrategy.selectNext(startTime, activeTariffValidity);\r\n if (this.activeTariffValidity == null)\r\n {\r\n this.activeTimeSlice.offense = activeTariffValidity != null ? ParkerRegistrationOffense.ParkingTimeTooLong : ParkerRegistrationOffense.ZoneNotAllowed;\r\n this.activeTimeSlice.timeRange.endTime = sessionEndTime;\r\n }\r\n else\r\n {\r\n this.activeTimeSlice.timeRange.endTime = this.evaluateNextTariffSwitchOverTime(startTime, sessionEndTime);\r\n this.activeTimeSlice.tariff = this.activeTariffValidity.tariff;\r\n const nextSlicer = new SessionTimeSlicer(this.timeGrid);\r\n if (this.activeTimeSlice.timeRange.endTime < sessionEndTime)\r\n {\r\n parkingSessionTimeSlices.push(...nextSlicer.sliceRecursively(this.activeTimeSlice.timeRange.endTime,\r\n sessionEndTime, this.activeTariffValidity, startTime));\r\n }\r\n }\r\n }\r\n return parkingSessionTimeSlices;\r\n }\r\n\r\n private evaluateNextTariffSwitchOverTime(startTime: DateTime, sessionEndTime: DateTime): DateTime\r\n {\r\n const tariffEndTime = this.activeTariffValidity.endDateTime;\r\n\r\n let tariffEndTimeMaxDuration = tariffEndTime;\r\n if (this.activeTariffValidity.tariff.maxParkingDurationInMin)\r\n {\r\n // tariff's end time\r\n tariffEndTimeMaxDuration = startTime.plus({minutes: this.activeTariffValidity.tariff.maxParkingDurationInMin});\r\n }\r\n\r\n let foreignParkingTariffNextSwitchOverTime = tariffEndTime;\r\n if (this.activeTariffValidity.isFallbackTariff)\r\n {\r\n foreignParkingTariffNextSwitchOverTime = this.timeGrid.getNextSwitchoverTimeForForeignParkingTariff(startTime, sessionEndTime);\r\n }\r\n\r\n return DateTime.min(tariffEndTime, tariffEndTimeMaxDuration, sessionEndTime, foreignParkingTariffNextSwitchOverTime);\r\n }\r\n}\r\n","export class BitHelper {\r\n\r\n\r\n public static isBitSet(numberValue: number, index: number): boolean {\r\n // eslint-disable-next-line no-bitwise\r\n const binaryString = (numberValue >>> 0).toString(2);\r\n return binaryString[binaryString.length - 1 - index] === '1';\r\n }\r\n}\r\n","import { TranslateService } from '@ngx-translate/core';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable, throwError } from 'rxjs';\r\nimport {\r\n AutomaticParkingScheduleClient,\r\n CheckinUserParkingDTO,\r\n CheckinUserParkingRegistrationDTO,\r\n CheckoutUserParkingDTO,\r\n ParkerRegistrationClient,\r\n ParkerRegistrationOffense,\r\n ParkingClient,\r\n ParkingProcessInfoDTO,\r\n ParkingProcessTariffInfoDTO,\r\n ParkingProcessZoneInfoDTO,\r\n} from '../../../base/models/models.swagger.generated';\r\nimport { catchError, map, switchMap, tap } from 'rxjs/operators';\r\nimport { ToastService } from '../../../base/services/toast.service';\r\nimport { ParkingProcessInfoService } from '../../../base/services/parking-process-info.service';\r\nimport { DateHelper } from '../../../base/shared/date-helper';\r\nimport { BitHelper } from '../../../base/shared/bit-helper';\r\nimport { Duration } from 'luxon';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ParkingService {\r\n\r\n public parkingProcessInfos: ParkingProcessInfoDTO[];\r\n\r\n constructor(private parkerRegistrationClient: ParkerRegistrationClient,\r\n private parkingProcessInfoService: ParkingProcessInfoService,\r\n private automaticParkingScheduleClient: AutomaticParkingScheduleClient,\r\n private parkingClient: ParkingClient,\r\n private toastService: ToastService,\r\n private spinnerService: SpinnerService,\r\n private translateService: TranslateService) {\r\n }\r\n\r\n resolve(): Observable {\r\n return this.loadParkingProcessInfos();\r\n }\r\n\r\n public checkin(checkinDTO: CheckinUserParkingDTO): Observable {\r\n this.spinnerService.showSpinner = true;\r\n return this.parkerRegistrationClient.checkinUserParking(checkinDTO)\r\n .pipe(\r\n tap((registration: CheckinUserParkingRegistrationDTO) => {\r\n if (registration?.offense != ParkerRegistrationOffense.NoOffense) {\r\n const offenseTranslation = this.translateService.instant(`i18n.domain.parker-registration.ParkerRegistrationOffense.${ParkerRegistrationOffense[registration.offense]}`);\r\n this.toastService.showError(\r\n 'i18n.domain.parking.error-messages.check-in-failed.title',\r\n 'i18n.domain.parking.error-messages.check-in-failed.message',\r\n offenseTranslation\r\n );\r\n }\r\n }),\r\n switchMap(() => this.loadParkingProcessInfos()),\r\n tap(() => {\r\n this.spinnerService.showSpinner = false;\r\n }),\r\n catchError(err => {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showError(\r\n 'i18n.errors.server-error.title',\r\n 'i18n.errors.server-error.message');\r\n return throwError(() => err);\r\n }),\r\n );\r\n }\r\n\r\n public checkout(checkoutDTO: CheckoutUserParkingDTO): Observable {\r\n this.spinnerService.showSpinner = true;\r\n return this.parkerRegistrationClient.checkoutUserParking(checkoutDTO)\r\n .pipe(\r\n switchMap(() => this.loadParkingProcessInfos()),\r\n tap(() => {\r\n this.spinnerService.showSpinner = false;\r\n }),\r\n catchError(err => {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showError(\r\n 'i18n.errors.server-error.title',\r\n 'i18n.errors.server-error.message');\r\n return throwError(() => err);\r\n }),\r\n );\r\n }\r\n\r\n public loadParkingProcessInfos(): Observable {\r\n return this.parkingProcessInfoService.getParkingProcessInfos().pipe(\r\n tap((parkingProcessInfos: ParkingProcessInfoDTO[]) => {\r\n this.parkingProcessInfos = parkingProcessInfos?.length > 0 ? parkingProcessInfos : null;\r\n })\r\n );\r\n }\r\n\r\n public getParkingProcessZoneInfos(clientId: number): Observable {\r\n return this.parkingClient.getParkingProcessZoneInfos(clientId, false);\r\n }\r\n\r\n public getAutomaticParkingScheduleZoneInfos(clientId: number): Observable {\r\n return this.automaticParkingScheduleClient.getAutomaticParkingScheduleZoneInfos(clientId)\r\n .pipe(\r\n map(zoneInfo => zoneInfo.map(zone => ({\r\n ...zone,\r\n subscriptionAssignments: zone.subscriptionAssignments.map(assignment => ({\r\n ...assignment,\r\n subscription: {\r\n ...assignment.subscription,\r\n tariffs: this.createOvernightTariffsIfNeeded(assignment.subscription.tariffs),\r\n },\r\n })),\r\n })) as ParkingProcessZoneInfoDTO[]),\r\n );\r\n }\r\n\r\n private createOvernightTariffsIfNeeded(tariffs: ParkingProcessTariffInfoDTO[]): ParkingProcessTariffInfoDTO[] {\r\n /* eslint-disable no-bitwise*/\r\n const tempTariffs = [];\r\n // check if we need to add extra tariffs that overlap days\r\n tariffs.forEach(t => {\r\n if (t.isTwentyFourSevenTariff) {\r\n return;\r\n }\r\n const endDateTime = DateHelper.setDateTimeTo1970FromDuration(t.startTime).plus({minutes: t.durationInMinutes});\r\n\r\n if (endDateTime.day > 1) {\r\n const startTime = DateHelper.getDateTimeStart1970().plus({day: 1});\r\n const duration = endDateTime.diff(startTime, 'minutes').minutes;\r\n\r\n if (duration > 0) {\r\n let onWeekdays = t.onWeekDays << 1; // shift bit one left\r\n if (BitHelper.isBitSet(t.onWeekDays, 7)) { // if \"day\" after sunday is set (8th bit)\r\n onWeekdays = onWeekdays & ~1 << 7; // unset \"day\" after sunday\r\n onWeekdays = onWeekdays | 1 << 0; // set monday\r\n }\r\n\r\n const tempTariff = new ParkingProcessTariffInfoDTO({\r\n id: 0,\r\n onWeekDays: onWeekdays,\r\n startTime: Duration.fromDurationLike(0),\r\n durationInMinutes: duration,\r\n isTwentyFourSevenTariff: false\r\n });\r\n\r\n tempTariffs.push(tempTariff);\r\n }\r\n }\r\n });\r\n\r\n return [...tariffs, ...tempTariffs];\r\n /* eslint-enable no-bitwise*/\r\n }\r\n}\r\n","import { takeUntil } from 'rxjs/operators';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { IPlate } from './../parking-helper';\r\nimport { AfterViewChecked, ChangeDetectorRef, Component, OnInit, OnDestroy } from '@angular/core';\r\nimport { AuthService } from '../../../base/services/auth.service';\r\nimport {\r\n CheckinUserParkingDTO,\r\n CheckinUserParkingRegistrationDTO,\r\n CheckoutUserParkingDTO,\r\n ControlPlateType,\r\n ParkerRegistrationOffense,\r\n ParkingProcessTariffInfoDTO,\r\n ParkingProcessZoneInfoDTO,\r\n UserInfoDTO,\r\n} from '../../../base/models/models.swagger.generated';\r\nimport { DropDownConstantsFactory } from '../../../base/shared/syncfusion/dropdown-constants-factory';\r\nimport { FormGroup, UntypedFormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';\r\nimport { CountryISO2 } from '../../../base/shared/countryISO2-enum';\r\nimport { EnumTranslationService } from '../../../base/services/enum-translation.service';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { ParkingService } from './parking.service';\r\nimport { ParkingHelper } from '../parking-helper';\r\nimport { StringHelper } from '../../../base/shared/string-helper';\r\nimport { DateTime } from 'luxon';\r\nimport { interval, Subject, Subscription } from 'rxjs';\r\nimport { ParkingTimeGrid } from '../helpers/from-backend/parking-time-grid';\r\nimport { SessionTimeSlicer } from '../helpers/from-backend/session-time-slicer';\r\nimport { EnumDropDownListComponent } from '../../../base/shared/enum-drop-down-list/enum-drop-down-list.component';\r\nimport { AppErrorMessagesComponent } from '../../../base/error-messages/app-error-messages.component';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { NgIf, NgFor, NgClass } from '@angular/common';\r\nimport { TitleBarComponent } from '../../../base/shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-parking',\r\n templateUrl: './parking.component.html',\r\n styleUrls: ['./parking.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TitleBarComponent,\r\n NgIf,\r\n ReactiveFormsModule,\r\n DropDownListModule,\r\n AppErrorMessagesComponent,\r\n NgFor,\r\n NgClass,\r\n EnumDropDownListComponent,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class ParkingComponent implements OnInit, AfterViewChecked, OnDestroy {\r\n\r\n public isCheckedIn = false;\r\n public dataLoaded = false;\r\n\r\n public enumDropdownSettings = DropDownConstantsFactory.createEnumDropdownSettings();\r\n public clientDropdownSettings = DropDownConstantsFactory.createStandardClientDropdownSettings();\r\n public ControlPlateType = ControlPlateType;\r\n public countryList = [];\r\n\r\n public isParkingPossible = false;\r\n public hasTariffs = false;\r\n public maxEndTime: DateTime;\r\n\r\n public errors: { [key: string]: string } = {};\r\n\r\n public parkingEndTimeText = '';\r\n\r\n public selectedParkingProcessInfoIndex = 0;\r\n\r\n public parkingForm = this.fb.group({\r\n clientId: [null, [Validators.required]],\r\n zoneId: [null, [Validators.required]],\r\n subscriptionId: [null, [Validators.required]],\r\n parkingSpaceNumber: [null],\r\n controlPlateId: [null, [Validators.required]],\r\n newVehicle: this.fb.group({\r\n type: [null, [Validators.required]],\r\n countryCode: [null, [Validators.required]],\r\n numberPlate: [null, [Validators.required, Validators.maxLength(10)]],\r\n }),\r\n /* parkingDuration: this.fb.group({\r\n durationForm: this.fb.group({\r\n days: [null, Validators.min(0)],\r\n hours: [null, Validators.min(0)],\r\n minutes: [null, Validators.min(0)]\r\n }, {validators: [CustomValidatorsFactory.atLeastOneFromFormGroupRequired()]}),\r\n maxParkingDuration: [null]\r\n }, {validators: [ParkingComponent.durationSmallerThanMaxParkingDuration()]}) */\r\n });\r\n\r\n public get numActiveParkingSessions(): number {\r\n return this.parkingService.parkingProcessInfos?.length ?? 0;\r\n }\r\n\r\n public get hasFoundZones(): boolean {\r\n return this.parkingHelper.hasFoundZones;\r\n }\r\n\r\n public get hasFoundSubscriptions(): boolean {\r\n return this.parkingHelper.hasFoundSubscriptions;\r\n }\r\n\r\n public get hasFoundControlPlates(): boolean {\r\n return this.parkingHelper.hasFoundControlPlates;\r\n }\r\n\r\n public get clientDropdownValues(): { name: string; id: number }[] {\r\n return this.parkingHelper.clientDropdownValues;\r\n }\r\n\r\n public get subscriptionsDropdownValues(): { name: string; id: number }[] {\r\n return this.parkingHelper.subscriptionsDropdownValues;\r\n }\r\n\r\n public get zoneDropdownValues(): { name: string[]; id: number }[] {\r\n return this.parkingHelper.zoneDropdownValues;\r\n }\r\n\r\n public get parkingSpaceNumberDefinition(): string {\r\n return this.parkingHelper.parkingSpaceNumberDefinition;\r\n }\r\n\r\n public get controlPlateDropdownValues(): { name: string; id: number; plate: IPlate }[] {\r\n return this.parkingHelper.controlPlateDropdownValues;\r\n }\r\n\r\n public get parkingProcessZoneInfoDTO(): ParkingProcessZoneInfoDTO[] {\r\n return this.parkingHelper.parkingProcessZoneInfoDTO;\r\n }\r\n\r\n public get maxDuration(): string {\r\n if (this.maxParkingDuration) {\r\n return StringHelper.transformToTimeRepresentation(this.maxParkingDuration) + 'h';\r\n }\r\n return 'i18n.domain.parking.unlimited';\r\n }\r\n\r\n public get isOverMaxParkingDuration(): boolean {\r\n return !!this.maxEndTime ? this.maxEndTime < DateTime.now() : false;\r\n }\r\n\r\n public get isCloseToMaxParkingDuration(): boolean {\r\n return !!this.maxEndTime ? this.maxEndTime.minus({minutes: 10}) < DateTime.now() : false;\r\n }\r\n\r\n public get clientSelected(): boolean {\r\n return !!this.parkingForm.get('clientId').value;\r\n }\r\n\r\n public get zoneSelected(): boolean {\r\n return !!this.parkingForm.get('zoneId').value;\r\n }\r\n\r\n public get subscriptionSelected(): boolean {\r\n return !!this.parkingForm.get('subscriptionId').value;\r\n }\r\n\r\n public get isAddVehicle(): boolean {\r\n return this.parkingForm.get('controlPlateId').value === -1;\r\n }\r\n\r\n public get hasLinkedParker(): boolean {\r\n return this.user.linkedParkers.length > 0;\r\n }\r\n\r\n public get showClientDropDown(): boolean {\r\n return !this.checkinUserParkingRegistration || this.clientDropdownValues.find(c => c.id === this.parkingForm.get('clientId').value) != null;\r\n }\r\n\r\n public get isParkingTimeExpired(): boolean {\r\n if (!this.checkinUserParkingRegistration) {\r\n return false;\r\n }\r\n if (this.maxParkingDuration == null) {\r\n return false;\r\n }\r\n const endTime = DateTime.now();\r\n const durationInMinutes = endTime.diff(this.checkinUserParkingRegistration.registrationDateTime, 'minutes').minutes;\r\n return this.maxParkingDuration < durationInMinutes;\r\n }\r\n\r\n public get isAdd(): boolean {\r\n return !this.checkinUserParkingRegistration;\r\n }\r\n\r\n public get vehicleGroup(): FormGroup {\r\n return this.parkingForm.get('newVehicle') as FormGroup;\r\n }\r\n\r\n private checkinUserParkingRegistration: CheckinUserParkingRegistrationDTO;\r\n\r\n private user: UserInfoDTO;\r\n private parkingHelper: ParkingHelper;\r\n private isParkingUnlimited = false;\r\n private readonly timerUnsubscribe: Subject = new Subject();\r\n\r\n private maxParkingDuration: number;\r\n private formSubscriptions: Subscription = new Subscription();\r\n\r\n constructor(private authService: AuthService,\r\n private fb: UntypedFormBuilder,\r\n private cdr: ChangeDetectorRef,\r\n private translate: TranslateService,\r\n private parkingService: ParkingService,\r\n private enumTranslationService: EnumTranslationService,\r\n spinnerService: SpinnerService) {\r\n this.parkingHelper = new ParkingHelper(false, this.parkingService, this.translate, spinnerService);\r\n }\r\n\r\n /* public static durationSmallerThanMaxParkingDuration(): ValidatorFn {\r\n return (group: FormGroup) => {\r\n const durationFormValue = group.get('durationForm').value;\r\n const durationInMinutes = MultiFieldDurationPickerHelper.calculateTotalMinutes(durationFormValue.days, durationFormValue.hours, durationFormValue.minutes, false);\r\n const maxParkingDuartionInMintues = group.get('maxParkingDuration').value;\r\n if (durationInMinutes && maxParkingDuartionInMintues && durationInMinutes > maxParkingDuartionInMintues) {\r\n return {maxDurationExceeded: true};\r\n }\r\n return null;\r\n };\r\n } */\r\n\r\n public getTimeElapsed(): string {\r\n return StringHelper.getTimeElapsed(this.checkinUserParkingRegistration.registrationDateTime);\r\n }\r\n\r\n public getMaxParkingDuration(): string {\r\n if (this.checkinUserParkingRegistration?.automaticScheduleEndTime != null) {\r\n const duration = this.checkinUserParkingRegistration?.automaticScheduleEndTime.diff(this.checkinUserParkingRegistration.registrationDateTime, 'minutes');\r\n return StringHelper.transformToTimeRepresentation(duration.minutes);\r\n }\r\n if (this.checkinUserParkingRegistration?.maxIntendedParkingDurationMinutes != null) {\r\n return StringHelper.transformToTimeRepresentation(this.checkinUserParkingRegistration?.maxIntendedParkingDurationMinutes);\r\n }\r\n return this.maxParkingDuration ? StringHelper.transformToTimeRepresentation(this.maxParkingDuration) : null;\r\n }\r\n\r\n public getMaxEndTime(): string {\r\n if (this.checkinUserParkingRegistration?.automaticScheduleEndTime != null) {\r\n return this.checkinUserParkingRegistration?.automaticScheduleEndTime.toFormat('dd.MM.yyyy HH:mm');\r\n }\r\n if (this.checkinUserParkingRegistration?.maxIntendedParkingDurationMinutes != null) {\r\n return this.checkinUserParkingRegistration.registrationDateTime.plus({minutes: this.checkinUserParkingRegistration?.maxIntendedParkingDurationMinutes})\r\n .toFormat('dd.MM.yyyy HH:mm');\r\n }\r\n return this.maxEndTime ? this.maxEndTime.toFormat('dd.MM.yyyy HH:mm') : 'i18n.domain.parking.unlimited';\r\n }\r\n\r\n public getMaxParkingEndTimeWithDuration(): string {\r\n if (!this.maxEndTime) {\r\n return 'i18n.domain.parking.unlimited';\r\n }\r\n const now = DateTime.now();\r\n let pre = '';\r\n if (this.maxEndTime && now.startOf('day').toMillis() !== this.maxEndTime.startOf('day').toMillis()) {\r\n pre = `(+${this.maxEndTime.startOf('day').diff(now.startOf('day'), 'days').days}) `;\r\n }\r\n return pre + this.maxEndTime?.toFormat('HH:mm') + ' (' + this.maxDuration + ')';\r\n }\r\n\r\n public getStartTime(): string {\r\n return this.checkinUserParkingRegistration.registrationDateTime.toFormat('dd.MM.yyyy HH:mm');\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.user = this.authService.getUserInfo();\r\n this.countryList = this.enumTranslationService.translateEnum(CountryISO2, 'i18n.shared.CountryISO2.');\r\n\r\n this.initForm(this.parkingService.parkingProcessInfos?.at(this.selectedParkingProcessInfoIndex)?.activeCheckinInfo);\r\n const assignment = this.parkingService.parkingProcessInfos?.at(this.selectedParkingProcessInfoIndex)?.activeCheckinInfo?.subscriptionAssignment;\r\n const subscription = assignment?.subscription;\r\n const fallbackParkingTariffs = subscription?.denyForeignParkingSubscriptionFallback ||\r\n !this.parkingService.parkingProcessInfos?.at(this.selectedParkingProcessInfoIndex).activeCheckinInfo?.zone?.foreignParkersAllowed ? null :\r\n this.parkingService.parkingProcessInfos?.at(this.selectedParkingProcessInfoIndex).activeCheckinInfo?.zone?.foreignParkingSubscription?.tariffs;\r\n this.updateParkingTimes(subscription?.tariffs, assignment?.validTo?.toUTC(), subscription?.maxParkingDurationInMin, fallbackParkingTariffs);\r\n interval(30000).pipe(\r\n takeUntil(this.timerUnsubscribe)\r\n ).subscribe(() => {\r\n // getTimeElapsed will be triggered automatically (duration info while is checked in) since interval is triggering refesh view\r\n if (!this.isCheckedIn) {\r\n this.refreshParkingTimesFromForm();\r\n }\r\n });\r\n }\r\n\r\n public ngAfterViewChecked(): void {\r\n // https://www.syncfusion.com/forums/163692/expression-changed-after-it-was-checked-when-setting-initial-value-for-control\r\n this.cdr.detectChanges();\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this.formSubscriptions?.unsubscribe();\r\n this.timerUnsubscribe.next();\r\n this.timerUnsubscribe.complete();\r\n }\r\n\r\n public checkin(): void {\r\n const formValues = this.parkingForm.getRawValue();\r\n\r\n const checkinDTO = new CheckinUserParkingDTO({\r\n selectedSubscriptionAssignmentId: formValues.subscriptionId,\r\n zoneId: formValues.zoneId,\r\n controlPlateType: 0\r\n });\r\n\r\n if (formValues.controlPlateId === -1) {\r\n checkinDTO.controlPlateType = formValues.newVehicle.type;\r\n checkinDTO.controlPlateCountryCode = formValues.newVehicle.countryCode;\r\n checkinDTO.controlPlateNumber = formValues.newVehicle.numberPlate;\r\n } else {\r\n const plateEntry = this.controlPlateDropdownValues.find((p) => p.id === formValues.controlPlateId);\r\n if (plateEntry) {\r\n checkinDTO.controlPlateType = plateEntry.plate.type;\r\n checkinDTO.controlPlateCountryCode = plateEntry.plate.countryCode;\r\n checkinDTO.controlPlateNumber = plateEntry.plate.numberPlate;\r\n }\r\n }\r\n\r\n if (formValues.parkingSpaceNumber) {\r\n checkinDTO.parkingSpaceNumber = formValues.parkingSpaceNumber;\r\n }\r\n\r\n if (this.maxEndTime) {\r\n checkinDTO.maxIntendedParkingDurationMinutes = this.maxEndTime.diff(DateTime.now().set({second: 0, millisecond: 0}), 'minutes').minutes;\r\n }\r\n\r\n this.parkingService.checkin(checkinDTO).subscribe(val => {\r\n this.checkinUserParkingRegistration = null;\r\n if (this.parkingService.parkingProcessInfos?.length) {\r\n this.checkinUserParkingRegistration = this.parkingService.parkingProcessInfos[this.parkingService.parkingProcessInfos.length - 1].activeCheckinInfo;\r\n } else {\r\n // checkin failed with offense\r\n return;\r\n }\r\n this.isCheckedIn = true;\r\n this.setFormFieldsEnabledState(false);\r\n if (this.isAddVehicle) {\r\n this.authService.loadUserInfoDTO().subscribe();\r\n }\r\n const subscription = this.checkinUserParkingRegistration?.subscriptionAssignment.subscription;\r\n const fallbackParkingTariffs = subscription?.denyForeignParkingSubscriptionFallback || !this.checkinUserParkingRegistration?.zone?.foreignParkersAllowed ?\r\n null : this.checkinUserParkingRegistration?.zone?.foreignParkingSubscription?.tariffs;\r\n this.updateParkingTimes(subscription?.tariffs,\r\n this.checkinUserParkingRegistration?.subscriptionAssignment?.validTo?.toUTC(), subscription?.maxParkingDurationInMin, fallbackParkingTariffs);\r\n });\r\n }\r\n\r\n public checkout(): void {\r\n const checkoutDTO = new CheckoutUserParkingDTO({sessionId: this.checkinUserParkingRegistration.sessionId});\r\n\r\n this.parkingService.checkout(checkoutDTO).subscribe(val => {\r\n this.selectedParkingProcessInfoIndex = 0;\r\n this.initForm(this.parkingService.parkingProcessInfos?.at(this.selectedParkingProcessInfoIndex)?.activeCheckinInfo);\r\n });\r\n }\r\n\r\n public resetZone(event: any): void {\r\n if (event.isInteracted) {\r\n this.parkingHelper.resetZone(this.parkingForm);\r\n }\r\n }\r\n\r\n public resetSubscription(event: any): void {\r\n if (event.isInteracted) {\r\n this.parkingHelper.resetSubscription(this.parkingForm);\r\n }\r\n }\r\n\r\n public onClientValueChange(event: any): void {\r\n if (event) {\r\n this.errors.clientNotFound = null;\r\n }\r\n }\r\n\r\n public onZoneValueChange(event: any): void {\r\n if (event) {\r\n this.errors.zoneNotFound = null;\r\n }\r\n }\r\n\r\n public onSubscriptionValueChange(event: any): void {\r\n if (event) {\r\n this.errors.subscriptionNotFound = null;\r\n }\r\n }\r\n\r\n public onControlPlateValueChange(event: any): void {\r\n if (event) {\r\n this.errors.controlPlateNotFound = null;\r\n }\r\n }\r\n\r\n public onPreviousParkingProcess() {\r\n if (this.parkingService.parkingProcessInfos?.length > 0) {\r\n this.selectedParkingProcessInfoIndex--;\r\n if (this.selectedParkingProcessInfoIndex < 0) {\r\n this.selectedParkingProcessInfoIndex = Math.max(this.parkingService.parkingProcessInfos.length - 1, 0);\r\n }\r\n this.initForm(this.parkingService.parkingProcessInfos?.at(this.selectedParkingProcessInfoIndex)?.activeCheckinInfo);\r\n }\r\n }\r\n\r\n public onNextParkingProcess() {\r\n if (this.parkingService.parkingProcessInfos?.length > 0) {\r\n this.selectedParkingProcessInfoIndex = (this.selectedParkingProcessInfoIndex + 1) % this.parkingService.parkingProcessInfos?.length;\r\n this.initForm(this.parkingService.parkingProcessInfos?.at(this.selectedParkingProcessInfoIndex)?.activeCheckinInfo);\r\n }\r\n }\r\n\r\n public onNewParkingProcess() {\r\n this.initForm(null);\r\n }\r\n\r\n private initForm(checkinUserParkingRegistration: CheckinUserParkingRegistrationDTO) {\r\n if (checkinUserParkingRegistration) {\r\n this.formSubscriptions?.unsubscribe();\r\n this.checkinUserParkingRegistration = checkinUserParkingRegistration;\r\n this.isCheckedIn = true;\r\n this.parkingHelper.handleParkingProcessInfo(this.user, this.parkingService.parkingProcessInfos?.at(this.selectedParkingProcessInfoIndex), this.parkingForm);\r\n this.setFormFieldsEnabledState(false);\r\n this.dataLoaded = true;\r\n } else {\r\n this.isParkingPossible = false;\r\n this.parkingForm.reset();\r\n this.checkinUserParkingRegistration = null;\r\n this.isCheckedIn = false;\r\n this.assignFormFieldSubscriptions();\r\n this.parkingHelper.createParkingProcessDropdownFieldsValues(this.user);\r\n if (this.clientDropdownValues.length === 1) {\r\n this.parkingForm.get('clientId').setValue(this.clientDropdownValues[0].id);\r\n }\r\n this.parkingHelper.handleVehicleFields(this.user, this.parkingForm.get('subscriptionId').value, this.parkingForm.get('zoneId').value);\r\n this.setFormFieldsEnabledState(true);\r\n }\r\n }\r\n\r\n private assignFormFieldSubscriptions() {\r\n this.formSubscriptions?.unsubscribe();\r\n this.formSubscriptions = new Subscription();\r\n this.parkingHelper.assignFormFieldSubscriptions(this.parkingForm, this.formSubscriptions, this.user);\r\n this.formSubscriptions.add(\r\n this.parkingForm.get('subscriptionId').valueChanges.subscribe((subscriptionId) => {\r\n if (!subscriptionId) {\r\n this.isParkingPossible = false;\r\n return;\r\n }\r\n this.refreshParkingTimesFromForm();\r\n })\r\n );\r\n }\r\n\r\n private refreshParkingTimesFromForm() {\r\n const formValues = this.parkingForm.getRawValue();\r\n if (!formValues.zoneId || !formValues.subscriptionId) {\r\n return;\r\n }\r\n const zone = this.parkingProcessZoneInfoDTO?.find(z => z.id === formValues.zoneId);\r\n const assignment = zone?.subscriptionAssignments.find(s => s.id === formValues.subscriptionId);\r\n const subscription = assignment?.subscription;\r\n const tariffs = subscription?.tariffs;\r\n const fallbackParkingTariffs = subscription.denyForeignParkingSubscriptionFallback || !zone?.foreignParkersAllowed ?\r\n null : zone?.foreignParkingSubscriptionInfos?.find(f => f.subscription.id === zone.defaultForeignParkingSubscriptionId)?.subscription?.tariffs;\r\n this.updateParkingTimes(tariffs, assignment?.validTo?.toUTC(), subscription?.maxParkingDurationInMin, fallbackParkingTariffs);\r\n }\r\n\r\n /* private updateParkingEndTimeText(value: DurationMembers) {\r\n const parkingDurationInMinutes = MultiFieldDurationPickerHelper.calculateTotalMinutes(value.days, value.hours, value.minutes, false);\r\n this.parkingEndTimeText = '';\r\n if (parkingDurationInMinutes > 0) {\r\n const now = DateTime.now();\r\n const endTime = now.plus({minutes: parkingDurationInMinutes});\r\n this.parkingEndTimeText = endTime.toLocaleString(DateTime.DATETIME_SHORT);\r\n }\r\n } */\r\n\r\n private setFormFieldsEnabledState(enable: boolean): void {\r\n if (enable) {\r\n if (this.clientDropdownValues.length > 1 || this.clientDropdownValues.length === 0 || this.errors.clientNotFound) {\r\n this.parkingForm.get('clientId').enable({emitEvent: false});\r\n }\r\n if (this.subscriptionsDropdownValues.length > 1 || this.errors.subscriptionNotFound) {\r\n this.parkingForm.get('subscriptionId').enable({emitEvent: false});\r\n }\r\n if (this.zoneDropdownValues.length > 1 || this.errors.zoneNotFound) {\r\n this.parkingForm.get('zoneId').enable({emitEvent: false});\r\n }\r\n this.parkingForm.get('parkingSpaceNumber').enable({emitEvent: false});\r\n this.parkingForm.get('controlPlateId').enable({emitEvent: false});\r\n this.parkingForm.get('newVehicle').get('countryCode').enable({emitEvent: false});\r\n this.parkingForm.get('newVehicle').get('numberPlate').enable({emitEvent: false});\r\n } else {\r\n this.parkingForm.get('clientId').disable({emitEvent: false});\r\n this.parkingForm.get('subscriptionId').disable({emitEvent: false});\r\n this.parkingForm.get('zoneId').disable({emitEvent: false});\r\n this.parkingForm.get('parkingSpaceNumber').disable({emitEvent: false});\r\n this.parkingForm.get('controlPlateId').disable({emitEvent: false});\r\n this.parkingForm.get('newVehicle').get('type').disable({emitEvent: false});\r\n this.parkingForm.get('newVehicle').get('countryCode').disable({emitEvent: false});\r\n this.parkingForm.get('newVehicle').get('numberPlate').disable({emitEvent: false});\r\n }\r\n }\r\n\r\n private updateParkingTimes(tariffs: ParkingProcessTariffInfoDTO[], tariffsMaxValidityTime: DateTime,\r\n subscriptionsMaxParkingDuration: number, fallbackParkingTariffs: ParkingProcessTariffInfoDTO[], ): void {\r\n this.maxParkingDuration = subscriptionsMaxParkingDuration;\r\n this.isParkingUnlimited = false;\r\n const startTimeUtc = this.checkinUserParkingRegistration?.registrationDateTime?.toUTC() ?? DateTime.utc();\r\n if (tariffs) {\r\n const timeGrid =\r\n new ParkingTimeGrid(startTimeUtc, subscriptionsMaxParkingDuration ? startTimeUtc.plus({minutes: subscriptionsMaxParkingDuration}) : startTimeUtc.plus({days: 8}));\r\n timeGrid.setup(tariffs, tariffsMaxValidityTime?.toUTC(), fallbackParkingTariffs);\r\n const slicer = SessionTimeSlicer.for(timeGrid);\r\n const slices = slicer.sliceOverWholeGridSpan();\r\n this.isParkingPossible = false;\r\n if (slices?.length > 0 && slices[0].offense === ParkerRegistrationOffense.NoOffense) {\r\n this.isParkingPossible = true;\r\n if (slices[slices.length - 1].offense === ParkerRegistrationOffense.NoOffense) {\r\n if (this.maxParkingDuration) {\r\n this.maxEndTime = slices[slices.length - 1].timeRange.endTime;\r\n } else {\r\n this.maxEndTime = null;\r\n this.isParkingUnlimited = true;\r\n }\r\n } else {\r\n this.maxEndTime = slices[slices.length - 2].timeRange.endTime.set({second: 0, millisecond: 0});\r\n this.maxParkingDuration = this.maxEndTime.diff(slices[0].timeRange.startTime.set({second: 0, millisecond: 0}), 'minutes').minutes;\r\n }\r\n }\r\n\r\n this.hasTariffs = true;\r\n } else {\r\n this.hasTariffs = false;\r\n }\r\n //this.parkingForm.get('parkingDuration').get('maxParkingDuration').setValue(this.maxParkingDuration);\r\n }\r\n}\r\n","\r\n\r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    1\">\r\n \r\n
    \r\n
    1\" class=\"ms-2\">{{this.selectedParkingProcessInfoIndex + 1}} / {{this.numActiveParkingSessions}}
    \r\n
    1\" class=\"ms-2\">\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n {{'i18n.domain.parking.errors.clientNotFound' | translate:{clientId: errors.clientNotFound} }}\r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n {{zone}}\r\n
    \r\n
    \r\n \r\n \r\n {{zone}}\r\n \r\n \r\n
    \r\n \r\n \r\n {{'i18n.domain.parking.errors.zoneNotFound' | translate:{zone:errors.zoneNotFound} }}\r\n \r\n
    \r\n\r\n
    \r\n \r\n \r\n \r\n \r\n {{'i18n.domain.parking.errors.subscriptionNotFound' | translate:{subscription: errors.subscriptionNotFound} }}\r\n \r\n \r\n {{'i18n.domain.parking.errors.noZoneSelected' | translate}}\r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n\r\n
    0 || isCheckedIn\">\r\n
    \r\n
    \r\n

    {{ 'i18n.domain.parking.vehicle' | translate }}

    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n {{'i18n.domain.parking.errors.controlPlateNotFound' | translate:{controlPlate: errors.controlPlateNotFound.toUpperCase()} }}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n

    {{ 'i18n.domain.parking.addVehicle' | translate }}

    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n\r\n \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n

    {{ 'i18n.domain.parking.activeSession' | translate }}

    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n {{ 'i18n.domain.parking.startTime' | translate }}\r\n
    \r\n
    \r\n {{getStartTime()}}\r\n
    \r\n
    \r\n
    \r\n
    \r\n {{ 'i18n.domain.parking.duration' | translate }}\r\n
    \r\n
    \r\n {{getTimeElapsed()}}h\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n {{ 'i18n.domain.parking.maxEndTime' | translate }}\r\n
    \r\n
    \r\n {{getMaxEndTime() | translate}}\r\n
    \r\n
    \r\n
    \r\n
    \r\n {{ 'i18n.domain.parking.maxParkingDuration' | translate }}\r\n
    \r\n
    \r\n {{getMaxParkingDuration()}}h\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n {{'i18n.domain.parking.errors.parkingExpired' | translate}}\r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n {{ 'i18n.domain.parking.parkUntil' | translate }}: {{getMaxParkingEndTimeWithDuration() | translate}}\r\n
    \r\n\r\n
    \r\n {{'i18n.domain.parking.errors.noParkingPossible' | translate}}\r\n
    \r\n\r\n
    \r\n {{(numActiveParkingSessions ? 'i18n.domain.parking.errors.parkingQuotaReached' : 'i18n.domain.parking.errors.noZonesFound') | translate}}\r\n
    \r\n\r\n
    \r\n {{(numActiveParkingSessions ? 'i18n.domain.parking.errors.parkingQuotaReached' : 'i18n.domain.parking.errors.noSubscriptionsAssigned') | translate}}\r\n
    \r\n\r\n
    \r\n {{(numActiveParkingSessions ? 'i18n.domain.parking.errors.parkingQuotaReached' : 'i18n.domain.parking.errors.noControlPlatesFound') | translate}}\r\n
    \r\n\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n\r\n
    \r\n {{'i18n.domain.parking.errors.noLinkedParker' | translate}}\r\n
    \r\n
    \r\n","import { Injectable } from '@angular/core';\r\nimport { ShowInactiveService } from '../../base/shared/grid-base/show-inactive.service';\r\nimport { IAdaptorService } from '../../base/shared/syncfusion/adaptor-service.interface';\r\nimport { Observable, of, throwError } from 'rxjs';\r\nimport {\r\n ExecuteZoneDeviceCommandDTO,\r\n FilterDTO,\r\n FilterOperator,\r\n PagedResultDTOOfZoneDeviceDTO,\r\n SortDirection,\r\n ZoneDeviceClient,\r\n} from '../../base/models/models.swagger.generated';\r\nimport { ClientService } from '../../base/services/client/client.service';\r\nimport { catchError, map } from 'rxjs/operators';\r\nimport { ErrorType } from '../../core/routing/error-types';\r\nimport { ToastService } from '../../base/services/toast.service';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class DeviceInteractionService extends ShowInactiveService implements IAdaptorService {\r\n\r\n public zoneId: number;\r\n\r\n constructor(private clientService: ClientService,\r\n private toastService: ToastService,\r\n private zoneDeviceClient: ZoneDeviceClient) {\r\n super();\r\n }\r\n\r\n public getData(skip: number, take: number, filters: FilterDTO[], sortBy: string, sortDirection: SortDirection): Observable {\r\n if (!this.clientService.selectedClient) {\r\n return of(null);\r\n }\r\n\r\n if (!filters) {\r\n filters = [];\r\n }\r\n filters.push(new FilterDTO({isComplex: false, field: 'enabled', operator: FilterOperator.Equal, value: true.toString()}));\r\n if (this.zoneId) {\r\n filters.push(new FilterDTO({isComplex: false, field: 'zone.id', operator: FilterOperator.Equal, value: '' + this.zoneId}));\r\n }\r\n\r\n return this.zoneDeviceClient.searchDevices(this.clientService.selectedClient.id, filters, 0, 0, sortBy, sortDirection)\r\n .pipe(\r\n map(pagedResult => {\r\n const items = pagedResult.items.filter(i => !!i.supportedDevicePositions\r\n && i.supportedDevicePositions.length > 0\r\n && i.supportedDevicePositions.find(p => !!p.supportedCommands && p.supportedCommands.length > 0));\r\n\r\n items.forEach(i => {\r\n let dev = (i as any);\r\n dev.supportedCommands = i.supportedDevicePositions.find(p => p.position === i.currentDevicePosition)?.supportedCommands;\r\n if (!dev.supportedCommands && i.currentDevicePosition == null) {\r\n // look for 'unknown' position commands as a fallback\r\n dev.supportedCommands = i.supportedDevicePositions.find(p => p.position.toLowerCase() === 'unknown')?.supportedCommands;\r\n }\r\n // make sure supported commands is not null\r\n if (!dev.supportedCommands) {\r\n dev.supportedCommands = [];\r\n }\r\n });\r\n\r\n if (skip != null && take != null) {\r\n return new PagedResultDTOOfZoneDeviceDTO({\r\n items: items.slice(skip, skip + take),\r\n totalNumberOfItems: items.length,\r\n });\r\n }\r\n\r\n return new PagedResultDTOOfZoneDeviceDTO({\r\n items,\r\n totalNumberOfItems: items.length,\r\n });\r\n\r\n }),\r\n );\r\n }\r\n\r\n public addRecord(data: any): Observable {\r\n return undefined;\r\n }\r\n\r\n public deleteRecord(id: number): Observable {\r\n return undefined;\r\n }\r\n\r\n public updateRecord(data: any): Observable {\r\n return undefined;\r\n }\r\n\r\n public executeDeviceCommand(dto: ExecuteZoneDeviceCommandDTO): Observable {\r\n return this.zoneDeviceClient.executeDeviceCommand(dto)\r\n .pipe(\r\n catchError((error: any) => {\r\n if (!this.toastService.doesErrorExistAlready(ErrorType.serverError)) {\r\n this.toastService.showError('i18n.errors.server-error.title', 'i18n.errors.server-error.message', null, ErrorType.serverError);\r\n }\r\n return throwError(() => error);\r\n }),\r\n );\r\n }\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { GridBaseComponent } from '../../base/shared/grid-base/grid-base.component';\r\nimport { ClientService } from '../../base/services/client/client.service';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { DeviceInteractionService } from './device-interaction.service';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { AvpCustomAdaptor } from '../../base/shared/syncfusion/avp-custom-adaptor';\r\nimport { SpinnerService } from '../../base/spinner/spinner.service';\r\nimport {\r\n ClientDTO,\r\n ExecuteZoneDeviceCommandDTO,\r\n FilterDTO,\r\n FilterOperator,\r\n SortDirection,\r\n ZoneClient,\r\n ZoneDeviceBrand,\r\n ZoneDeviceClient,\r\n ZoneDeviceType,\r\n} from '../../base/models/models.swagger.generated';\r\nimport { DropDownConstantsFactory } from '../../base/shared/syncfusion/dropdown-constants-factory';\r\nimport { filter, startWith, switchMap, takeUntil } from 'rxjs/operators';\r\nimport { UntypedFormBuilder, ReactiveFormsModule } from '@angular/forms';\r\nimport { interval, Subject } from 'rxjs';\r\nimport { TooltipModule } from '@syncfusion/ej2-angular-popups';\r\nimport { GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { NgIf, NgFor } from '@angular/common';\r\nimport { ClientAutocompleteComponent } from '../../base/shared/client-autocomplete/client-autocomplete.component';\r\nimport { TitleBarComponent } from '../../base/shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-device-interaction',\r\n templateUrl: './device-interaction.component.html',\r\n styleUrls: ['./device-interaction.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TitleBarComponent,\r\n ReactiveFormsModule,\r\n ClientAutocompleteComponent,\r\n NgIf,\r\n DropDownListModule,\r\n GridModule,\r\n NgFor,\r\n TooltipModule,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class DeviceInteractionComponent extends GridBaseComponent implements OnInit {\r\n\r\n public dropdownSettings = DropDownConstantsFactory.createStandardClientDropdownSettings();\r\n public zoneDropdownValues = [];\r\n\r\n public filterForm = this.fb.group({\r\n zone: [''],\r\n });\r\n\r\n constructor(clientService: ClientService,\r\n translate: TranslateService,\r\n private fb: UntypedFormBuilder,\r\n private zoneClient: ZoneClient,\r\n private zoneDeviceClient: ZoneDeviceClient,\r\n private deviceInteractionService: DeviceInteractionService,\r\n private spinnerService: SpinnerService) {\r\n super(clientService, translate, deviceInteractionService);\r\n }\r\n\r\n public override get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public override set selectedClient(value: ClientDTO) {\r\n if (this.clientService.selectedClient != value) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n }\r\n }\r\n\r\n public onRefresh(): void {\r\n this.grid.refresh();\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.deviceInteractionService, this.spinnerService),\r\n });\r\n\r\n this.clientSelected$\r\n .pipe(\r\n startWith(this.clientService.selectedClient?.id),\r\n filter(c => !!c),\r\n switchMap(clientId => {\r\n const groupFilter = new FilterDTO({\r\n isComplex: false,\r\n field: 'IsGroupingElement',\r\n operator: FilterOperator.Equal,\r\n value: 'false',\r\n });\r\n\r\n return this.zoneClient.searchZones(clientId, [groupFilter], 0, 0, 'Id', SortDirection.Ascending);\r\n }),\r\n )\r\n .subscribe(zones => {\r\n this.zoneDropdownValues = zones.items\r\n .filter(z => !z.isGroupingElement)\r\n .map(z => ({ name: z.name, id: z.id }));\r\n });\r\n\r\n this.filterForm.get('zone').valueChanges\r\n .subscribe(zoneId => {\r\n this.deviceInteractionService.zoneId = zoneId;\r\n this.grid.refresh();\r\n });\r\n }\r\n\r\n public dataBound(args): void {\r\n this.grid.autoFitColumns();\r\n }\r\n\r\n public executeDeviceCommand(deviceId: number, command: any, position: string): void {\r\n this.deviceInteractionService.executeDeviceCommand(new ExecuteZoneDeviceCommandDTO({ command, deviceId }))\r\n .subscribe(() => {\r\n this.grid.refresh();\r\n this.observeCommandStatus(deviceId, position);\r\n });\r\n }\r\n\r\n public getDeviceType(type: ZoneDeviceType): string {\r\n return 'i18n.shared.zone-device-enums.device-type.' + ZoneDeviceType[type];\r\n }\r\n\r\n public getDeviceBrand(brand: ZoneDeviceBrand): string {\r\n return 'i18n.shared.zone-device-enums.brand.' + ZoneDeviceBrand[brand];\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData: any): any {\r\n return '';\r\n }\r\n\r\n protected initializeEditForm(data: any): void {\r\n }\r\n\r\n private observeCommandStatus(deviceId: number, origPosition: string) {\r\n const stopInterval$ = new Subject();\r\n let cnt = 0;\r\n interval(1000)\r\n .pipe(\r\n switchMap(() => this.zoneDeviceClient.getDevice(deviceId)),\r\n takeUntil(stopInterval$),\r\n )\r\n .subscribe(device => {\r\n if ((device.currentDevicePosition !== 'Pending' && device.currentDevicePosition !== origPosition) || cnt > 10) {\r\n this.grid.refresh();\r\n stopInterval$.next(null);\r\n stopInterval$.complete();\r\n }\r\n cnt++;\r\n });\r\n }\r\n}\r\n","\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{getDeviceType(data.deviceType) | translate}}\r\n \r\n \r\n \r\n \r\n {{getDeviceBrand(data.brand) | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n
    \r\n
    \r\n Loading...\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { WeekDayFlagsHelper } from 'src/app/base/shared/utils/week-day-flags.helper';\r\nimport { Duration, WeekdayNumbers } from 'luxon';\r\nimport { WeekDayFlags } from 'src/app/base/models/models.swagger.generated';\r\nimport { ParkingTariffValidity } from './from-backend/parking-tariff-validity';\r\nimport { IDurationRange } from 'src/app/base/shared/time-picker-with-time-slider/time-picker-with-time-slider.component';\r\n\r\nexport class ParkingTariffValidityHelper {\r\n public static TWO_DAYS_IN_MILLIS = 48 * 60 * 60 * 1000;\r\n // used for parking administration -> so max support is start on 23:59 and end on 23:59 next day\r\n public static findPossibleTariffValidityRangesMatchingForWeekDays(tariffValidities: ParkingTariffValidity[], weekDays: WeekDayFlags): IDurationRange[] {\r\n const tariffValidityRangeOnDay = new Array(7);\r\n tariffValidities.forEach(tariffValidity => {\r\n let day = tariffValidity.startDateTime.startOf('day');\r\n let startTime = tariffValidity.startDateTime.diff(day);\r\n for (let i = 0; i < 7; i++) {\r\n if (day > tariffValidity.endDateTime) {\r\n break;\r\n }\r\n if (WeekDayFlagsHelper.hasFlags(weekDays, WeekDayFlagsHelper.luxonWeekdayToFlag(day.weekday))) {\r\n if (!tariffValidityRangeOnDay[day.weekday - 1]) {\r\n tariffValidityRangeOnDay[day.weekday - 1] = [];\r\n }\r\n tariffValidityRangeOnDay[day.weekday - 1].push({\r\n startTime,\r\n endTime: tariffValidity.endDateTime.diff(day)\r\n });\r\n }\r\n startTime = Duration.fromObject({hours: 0, minutes: 0});\r\n day = day.plus({days: 1});\r\n }\r\n });\r\n const tariffValidityRanges = [];\r\n for (let i = 0; i < 7; i++) {\r\n if (!WeekDayFlagsHelper.hasFlags(weekDays, WeekDayFlagsHelper.luxonWeekdayToFlag((i + 1) as WeekdayNumbers))) {\r\n continue;\r\n }\r\n if (!tariffValidityRangeOnDay[i]) {\r\n return [];\r\n }\r\n tariffValidityRanges.push(ParkingTariffValidityHelper.mergeValidityRanges(tariffValidityRangeOnDay[i]));\r\n }\r\n return ParkingTariffValidityHelper.findIntersectingRanges(tariffValidityRanges);\r\n }\r\n\r\n public static getCappedEndTime(endTime: Duration): Duration {\r\n return endTime.toMillis() < ParkingTariffValidityHelper.TWO_DAYS_IN_MILLIS ? endTime : Duration.fromDurationLike({days: 2});\r\n }\r\n\r\n public static mergeValidityRanges(ranges: IDurationRange[]): IDurationRange[] {\r\n ranges.sort((a, b) => a.startTime.toMillis() - b.startTime.toMillis());\r\n const coveredRangesInDay: IDurationRange[] = [];\r\n let coveredRange: IDurationRange = {\r\n startTime: ranges[0].startTime,\r\n endTime: ParkingTariffValidityHelper.getCappedEndTime(ranges[0].endTime)\r\n };\r\n for(let j = 1; j < ranges.length; j++) {\r\n if (ranges[j].startTime.toMillis() <= coveredRange.endTime.toMillis()) {\r\n if (ranges[j].endTime.toMillis() > coveredRange.endTime.toMillis()) {\r\n coveredRange.endTime = ParkingTariffValidityHelper.getCappedEndTime(ranges[j].endTime);\r\n }\r\n } else {\r\n coveredRangesInDay.push(coveredRange);\r\n coveredRange = {\r\n startTime: ranges[j].startTime,\r\n endTime: ParkingTariffValidityHelper.getCappedEndTime(ranges[j].endTime)\r\n };\r\n }\r\n }\r\n coveredRangesInDay.push(coveredRange);\r\n return coveredRangesInDay;\r\n }\r\n\r\n public static findIntersectingRanges(rangesSeparatedByDay: IDurationRange[][]) {\r\n if (rangesSeparatedByDay?.length == null) {\r\n return [];\r\n }\r\n let actualIntersections = rangesSeparatedByDay[0];\r\n for(let i = 1; i < rangesSeparatedByDay.length; i++) {\r\n const newIntersections: IDurationRange[] = [];\r\n actualIntersections.forEach(intersection => {\r\n rangesSeparatedByDay[i].forEach(range => {\r\n if (intersection.startTime >= range.endTime || intersection.endTime <= range.startTime) {\r\n return;\r\n }\r\n newIntersections.push({\r\n startTime: intersection.startTime > range.startTime ? intersection.startTime : range.startTime,\r\n endTime: intersection.endTime < range.endTime ? intersection.endTime : range.endTime\r\n });\r\n });\r\n });\r\n actualIntersections = newIntersections;\r\n }\r\n // filter out intersections that actually start at the next day\r\n const oneDayInMillis = 24 * 60 * 60 * 1000;\r\n return actualIntersections.filter(i => i.startTime?.toMillis() < oneDayInMillis);\r\n }\r\n}\r\n","import { __decorate } from 'tslib';\nimport * as i0 from '@angular/core';\nimport { forwardRef, Component, ChangeDetectionStrategy, NgModule, Directive, ContentChildren, ContentChild } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { setValue, FormBase, ComponentBase, ComponentMixins, ComplexBase, ArrayBase, Template } from '@syncfusion/ej2-angular-base';\nimport { TextBox, TextArea, NumericTextBox, MaskedTextBox, Slider, Uploader, ColorPicker, Signature, Rating, OtpInput, SmartTextArea, FormValidator } from '@syncfusion/ej2-inputs';\nconst _c0 = [\"template\"];\nconst _c1 = [\"ejs-colorpicker\", \"\"];\nconst _c2 = [\"ejs-signature\", \"\"];\nconst _c3 = [\"fullTemplate\"];\nconst _c4 = [\"emptyTemplate\"];\nconst _c5 = [\"tooltipTemplate\"];\nconst _c6 = [\"labelTemplate\"];\nconst _c7 = [\"ejs-rating\", \"\"];\nconst _c8 = [\"ejs-otpinput\", \"\"];\nexport * from '@syncfusion/ej2-inputs';\nimport { CommonModule } from '@angular/common';\nvar TextBoxComponent_1;\nconst inputs$a = ['autocomplete', 'cssClass', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'htmlAttributes', 'locale', 'multiline', 'placeholder', 'readonly', 'showClearButton', 'type', 'value', 'width'];\nconst outputs$b = ['blur', 'change', 'created', 'destroyed', 'focus', 'input', 'valueChange'];\nconst twoWays$a = ['value'];\n/**\n * Represents the EJ2 Angular TextBox Component.\n * ```html\n * \n * ```\n */\nlet TextBoxComponent = TextBoxComponent_1 = class TextBoxComponent extends TextBox {\n constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.cdr = cdr;\n this.skipFromEvent = true;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$b);\n this.addTwoWay.call(this, twoWays$a);\n setValue('currentInstance', this, this.viewContainerRef);\n this.formContext = new FormBase();\n this.formCompContext = new ComponentBase();\n }\n registerOnChange(registerFunction) {}\n registerOnTouched(registerFunction) {}\n writeValue(value) {}\n setDisabledState(disabled) {}\n ngOnInit() {\n this.formCompContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.formContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.formCompContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.formCompContext.ngAfterContentChecked(this);\n }\n};\nTextBoxComponent.ɵfac = function TextBoxComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TextBoxComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\nTextBoxComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TextBoxComponent,\n selectors: [[\"ejs-textbox\"]],\n inputs: {\n autocomplete: \"autocomplete\",\n cssClass: \"cssClass\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n enabled: \"enabled\",\n floatLabelType: \"floatLabelType\",\n htmlAttributes: \"htmlAttributes\",\n locale: \"locale\",\n multiline: \"multiline\",\n placeholder: \"placeholder\",\n readonly: \"readonly\",\n showClearButton: \"showClearButton\",\n type: \"type\",\n value: \"value\",\n width: \"width\"\n },\n outputs: {\n blur: \"blur\",\n change: \"change\",\n created: \"created\",\n destroyed: \"destroyed\",\n focus: \"focus\",\n input: \"input\",\n valueChange: \"valueChange\"\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TextBoxComponent_1),\n multi: true\n }]), i0.ɵɵInheritDefinitionFeature],\n decls: 0,\n vars: 0,\n template: function TextBoxComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n});\nTextBoxComponent = TextBoxComponent_1 = __decorate([ComponentMixins([ComponentBase, FormBase])], TextBoxComponent);\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the TextBox component.\n */\nlet TextBoxModule = /*#__PURE__*/(() => {\n class TextBoxModule {}\n TextBoxModule.ɵfac = function TextBoxModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TextBoxModule)();\n };\n TextBoxModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TextBoxModule\n });\n TextBoxModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return TextBoxModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the TextBox component with providers.\n */\nlet TextBoxAllModule = /*#__PURE__*/(() => {\n class TextBoxAllModule {}\n TextBoxAllModule.ɵfac = function TextBoxAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TextBoxAllModule)();\n };\n TextBoxAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TextBoxAllModule\n });\n TextBoxAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, TextBoxModule], TextBoxModule]\n });\n return TextBoxAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nvar TextAreaComponent_1;\nconst inputs$9 = ['cols', 'cssClass', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'htmlAttributes', 'locale', 'maxLength', 'placeholder', 'readonly', 'resizeMode', 'rows', 'showClearButton', 'value', 'width'];\nconst outputs$a = ['blur', 'change', 'created', 'destroyed', 'focus', 'input', 'valueChange'];\nconst twoWays$9 = ['value'];\n/**\n * Represents the EJ2 Angular TextArea Component.\n * ```html\n * \n * ```\n */\nlet TextAreaComponent = TextAreaComponent_1 = class TextAreaComponent extends TextArea {\n constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.cdr = cdr;\n this.skipFromEvent = true;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$a);\n this.addTwoWay.call(this, twoWays$9);\n setValue('currentInstance', this, this.viewContainerRef);\n this.formContext = new FormBase();\n this.formCompContext = new ComponentBase();\n }\n registerOnChange(registerFunction) {}\n registerOnTouched(registerFunction) {}\n writeValue(value) {}\n setDisabledState(disabled) {}\n ngOnInit() {\n this.formCompContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.formContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.formCompContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.formCompContext.ngAfterContentChecked(this);\n }\n};\nTextAreaComponent.ɵfac = function TextAreaComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TextAreaComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\nTextAreaComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TextAreaComponent,\n selectors: [[\"ejs-textarea\"]],\n inputs: {\n cols: \"cols\",\n cssClass: \"cssClass\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n enabled: \"enabled\",\n floatLabelType: \"floatLabelType\",\n htmlAttributes: \"htmlAttributes\",\n locale: \"locale\",\n maxLength: \"maxLength\",\n placeholder: \"placeholder\",\n readonly: \"readonly\",\n resizeMode: \"resizeMode\",\n rows: \"rows\",\n showClearButton: \"showClearButton\",\n value: \"value\",\n width: \"width\"\n },\n outputs: {\n blur: \"blur\",\n change: \"change\",\n created: \"created\",\n destroyed: \"destroyed\",\n focus: \"focus\",\n input: \"input\",\n valueChange: \"valueChange\"\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TextAreaComponent_1),\n multi: true\n }]), i0.ɵɵInheritDefinitionFeature],\n decls: 0,\n vars: 0,\n template: function TextAreaComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n});\nTextAreaComponent = TextAreaComponent_1 = __decorate([ComponentMixins([ComponentBase, FormBase])], TextAreaComponent);\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the TextArea component.\n */\nlet TextAreaModule = /*#__PURE__*/(() => {\n class TextAreaModule {}\n TextAreaModule.ɵfac = function TextAreaModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TextAreaModule)();\n };\n TextAreaModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TextAreaModule\n });\n TextAreaModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return TextAreaModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the TextArea component with providers.\n */\nlet TextAreaAllModule = /*#__PURE__*/(() => {\n class TextAreaAllModule {}\n TextAreaAllModule.ɵfac = function TextAreaAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || TextAreaAllModule)();\n };\n TextAreaAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TextAreaAllModule\n });\n TextAreaAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, TextAreaModule], TextAreaModule]\n });\n return TextAreaAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nvar NumericTextBoxComponent_1;\nconst inputs$8 = ['cssClass', 'currency', 'currencyCode', 'decimals', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'format', 'htmlAttributes', 'locale', 'max', 'min', 'placeholder', 'readonly', 'showClearButton', 'showSpinButton', 'step', 'strictMode', 'validateDecimalOnType', 'value', 'width'];\nconst outputs$9 = ['blur', 'change', 'created', 'destroyed', 'focus', 'valueChange'];\nconst twoWays$8 = ['value'];\n/**\n * Represents the EJ2 Angular NumericTextBox Component.\n * ```html\n * \n * ```\n */\nlet NumericTextBoxComponent = NumericTextBoxComponent_1 = class NumericTextBoxComponent extends NumericTextBox {\n constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.cdr = cdr;\n this.skipFromEvent = true;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$9);\n this.addTwoWay.call(this, twoWays$8);\n setValue('currentInstance', this, this.viewContainerRef);\n this.formContext = new FormBase();\n this.formCompContext = new ComponentBase();\n }\n registerOnChange(registerFunction) {}\n registerOnTouched(registerFunction) {}\n writeValue(value) {}\n setDisabledState(disabled) {}\n ngOnInit() {\n this.formCompContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.formContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.formCompContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.formCompContext.ngAfterContentChecked(this);\n }\n};\nNumericTextBoxComponent.ɵfac = function NumericTextBoxComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || NumericTextBoxComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\nNumericTextBoxComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: NumericTextBoxComponent,\n selectors: [[\"ejs-numerictextbox\"]],\n inputs: {\n cssClass: \"cssClass\",\n currency: \"currency\",\n currencyCode: \"currencyCode\",\n decimals: \"decimals\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n enabled: \"enabled\",\n floatLabelType: \"floatLabelType\",\n format: \"format\",\n htmlAttributes: \"htmlAttributes\",\n locale: \"locale\",\n max: \"max\",\n min: \"min\",\n placeholder: \"placeholder\",\n readonly: \"readonly\",\n showClearButton: \"showClearButton\",\n showSpinButton: \"showSpinButton\",\n step: \"step\",\n strictMode: \"strictMode\",\n validateDecimalOnType: \"validateDecimalOnType\",\n value: \"value\",\n width: \"width\"\n },\n outputs: {\n blur: \"blur\",\n change: \"change\",\n created: \"created\",\n destroyed: \"destroyed\",\n focus: \"focus\",\n valueChange: \"valueChange\"\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NumericTextBoxComponent_1),\n multi: true\n }]), i0.ɵɵInheritDefinitionFeature],\n decls: 0,\n vars: 0,\n template: function NumericTextBoxComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n});\nNumericTextBoxComponent = NumericTextBoxComponent_1 = __decorate([ComponentMixins([ComponentBase, FormBase])], NumericTextBoxComponent);\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the NumericTextBox component.\n */\nlet NumericTextBoxModule = /*#__PURE__*/(() => {\n class NumericTextBoxModule {}\n NumericTextBoxModule.ɵfac = function NumericTextBoxModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || NumericTextBoxModule)();\n };\n NumericTextBoxModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: NumericTextBoxModule\n });\n NumericTextBoxModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return NumericTextBoxModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the NumericTextBox component with providers.\n */\nlet NumericTextBoxAllModule = /*#__PURE__*/(() => {\n class NumericTextBoxAllModule {}\n NumericTextBoxAllModule.ɵfac = function NumericTextBoxAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || NumericTextBoxAllModule)();\n };\n NumericTextBoxAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: NumericTextBoxAllModule\n });\n NumericTextBoxAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, NumericTextBoxModule], NumericTextBoxModule]\n });\n return NumericTextBoxAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nvar MaskedTextBoxComponent_1;\nconst inputs$7 = ['cssClass', 'customCharacters', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'htmlAttributes', 'locale', 'mask', 'placeholder', 'promptChar', 'readonly', 'showClearButton', 'value', 'width'];\nconst outputs$8 = ['blur', 'change', 'created', 'destroyed', 'focus', 'valueChange'];\nconst twoWays$7 = ['value'];\n/**\n * Represents the EJ2 Angular MaskedTextbox Component.\n * ```html\n * \n * ```\n */\nlet MaskedTextBoxComponent = MaskedTextBoxComponent_1 = class MaskedTextBoxComponent extends MaskedTextBox {\n constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.cdr = cdr;\n this.skipFromEvent = true;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$8);\n this.addTwoWay.call(this, twoWays$7);\n setValue('currentInstance', this, this.viewContainerRef);\n this.formContext = new FormBase();\n this.formCompContext = new ComponentBase();\n }\n registerOnChange(registerFunction) {}\n registerOnTouched(registerFunction) {}\n writeValue(value) {}\n setDisabledState(disabled) {}\n ngOnInit() {\n this.formCompContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.formContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.formCompContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.formCompContext.ngAfterContentChecked(this);\n }\n};\nMaskedTextBoxComponent.ɵfac = function MaskedTextBoxComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || MaskedTextBoxComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\nMaskedTextBoxComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MaskedTextBoxComponent,\n selectors: [[\"ejs-maskedtextbox\"]],\n inputs: {\n cssClass: \"cssClass\",\n customCharacters: \"customCharacters\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n enabled: \"enabled\",\n floatLabelType: \"floatLabelType\",\n htmlAttributes: \"htmlAttributes\",\n locale: \"locale\",\n mask: \"mask\",\n placeholder: \"placeholder\",\n promptChar: \"promptChar\",\n readonly: \"readonly\",\n showClearButton: \"showClearButton\",\n value: \"value\",\n width: \"width\"\n },\n outputs: {\n blur: \"blur\",\n change: \"change\",\n created: \"created\",\n destroyed: \"destroyed\",\n focus: \"focus\",\n valueChange: \"valueChange\"\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => MaskedTextBoxComponent_1),\n multi: true\n }]), i0.ɵɵInheritDefinitionFeature],\n decls: 0,\n vars: 0,\n template: function MaskedTextBoxComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n});\nMaskedTextBoxComponent = MaskedTextBoxComponent_1 = __decorate([ComponentMixins([ComponentBase, FormBase])], MaskedTextBoxComponent);\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the MaskedTextBox component.\n */\nlet MaskedTextBoxModule = /*#__PURE__*/(() => {\n class MaskedTextBoxModule {}\n MaskedTextBoxModule.ɵfac = function MaskedTextBoxModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || MaskedTextBoxModule)();\n };\n MaskedTextBoxModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: MaskedTextBoxModule\n });\n MaskedTextBoxModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return MaskedTextBoxModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the MaskedTextBox component with providers.\n */\nlet MaskedTextBoxAllModule = /*#__PURE__*/(() => {\n class MaskedTextBoxAllModule {}\n MaskedTextBoxAllModule.ɵfac = function MaskedTextBoxAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || MaskedTextBoxAllModule)();\n };\n MaskedTextBoxAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: MaskedTextBoxAllModule\n });\n MaskedTextBoxAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, MaskedTextBoxModule], MaskedTextBoxModule]\n });\n return MaskedTextBoxAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nvar SliderComponent_1;\nconst inputs$6 = ['colorRange', 'cssClass', 'customValues', 'enableAnimation', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enabled', 'limits', 'locale', 'max', 'min', 'orientation', 'readonly', 'showButtons', 'step', 'ticks', 'tooltip', 'type', 'value', 'width'];\nconst outputs$7 = ['focus', 'blur', 'change', 'changed', 'created', 'renderedTicks', 'renderingTicks', 'tooltipChange', 'valueChange'];\nconst twoWays$6 = ['value'];\n/**\n * Represents the EJ2 Angular Slider Component.\n * ```html\n * \n * ```\n */\nlet SliderComponent = SliderComponent_1 = class SliderComponent extends Slider {\n constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.cdr = cdr;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$7);\n this.addTwoWay.call(this, twoWays$6);\n setValue('currentInstance', this, this.viewContainerRef);\n this.formContext = new FormBase();\n this.formCompContext = new ComponentBase();\n }\n registerOnChange(registerFunction) {}\n registerOnTouched(registerFunction) {}\n writeValue(value) {}\n setDisabledState(disabled) {}\n ngOnInit() {\n this.formCompContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.formContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.formCompContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.formCompContext.ngAfterContentChecked(this);\n }\n};\nSliderComponent.ɵfac = function SliderComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SliderComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\nSliderComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: SliderComponent,\n selectors: [[\"ejs-slider\"]],\n inputs: {\n colorRange: \"colorRange\",\n cssClass: \"cssClass\",\n customValues: \"customValues\",\n enableAnimation: \"enableAnimation\",\n enableHtmlSanitizer: \"enableHtmlSanitizer\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n enabled: \"enabled\",\n limits: \"limits\",\n locale: \"locale\",\n max: \"max\",\n min: \"min\",\n orientation: \"orientation\",\n readonly: \"readonly\",\n showButtons: \"showButtons\",\n step: \"step\",\n ticks: \"ticks\",\n tooltip: \"tooltip\",\n type: \"type\",\n value: \"value\",\n width: \"width\"\n },\n outputs: {\n focus: \"focus\",\n blur: \"blur\",\n change: \"change\",\n changed: \"changed\",\n created: \"created\",\n renderedTicks: \"renderedTicks\",\n renderingTicks: \"renderingTicks\",\n tooltipChange: \"tooltipChange\",\n valueChange: \"valueChange\"\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SliderComponent_1),\n multi: true\n }]), i0.ɵɵInheritDefinitionFeature],\n decls: 0,\n vars: 0,\n template: function SliderComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n});\nSliderComponent = SliderComponent_1 = __decorate([ComponentMixins([ComponentBase, FormBase])], SliderComponent);\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Slider component.\n */\nlet SliderModule = /*#__PURE__*/(() => {\n class SliderModule {}\n SliderModule.ɵfac = function SliderModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SliderModule)();\n };\n SliderModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: SliderModule\n });\n SliderModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return SliderModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Slider component with providers.\n */\nlet SliderAllModule = /*#__PURE__*/(() => {\n class SliderAllModule {}\n SliderAllModule.ɵfac = function SliderAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SliderAllModule)();\n };\n SliderAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: SliderAllModule\n });\n SliderAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, SliderModule], SliderModule]\n });\n return SliderAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet input = ['name', 'size', 'type'];\nlet outputs$6 = [];\n/**\n * 'e-files' directive represent a file of angular uploader\n * It must be contained in a Uploader component(`ejs-uploader`).\n * ```html\n * \n * \n * \n * \n * \n * \n * ```\n */\nlet UploadedFilesDirective = /*#__PURE__*/(() => {\n class UploadedFilesDirective extends ComplexBase {\n constructor(viewContainerRef) {\n super();\n this.viewContainerRef = viewContainerRef;\n setValue('currentInstance', this, this.viewContainerRef);\n this.registerEvents(outputs$6);\n this.directivePropList = input;\n }\n }\n UploadedFilesDirective.ɵfac = function UploadedFilesDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || UploadedFilesDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n };\n UploadedFilesDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: UploadedFilesDirective,\n selectors: [[\"e-uploadedfiles\"]],\n inputs: {\n name: \"name\",\n size: \"size\",\n type: \"type\"\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return UploadedFilesDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * UploadedFiles Array Directive\n * @private\n */\nlet FilesDirective = /*#__PURE__*/(() => {\n class FilesDirective extends ArrayBase {\n constructor() {\n super('files');\n }\n }\n FilesDirective.ɵfac = function FilesDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || FilesDirective)();\n };\n FilesDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: FilesDirective,\n selectors: [[\"e-files\"]],\n contentQueries: function FilesDirective_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, UploadedFilesDirective, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.children = _t);\n }\n },\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n return FilesDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nvar UploaderComponent_1;\nconst inputs$5 = ['allowedExtensions', 'asyncSettings', 'autoUpload', 'buttons', 'cssClass', 'directoryUpload', 'dropArea', 'dropEffect', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enabled', 'files', 'htmlAttributes', 'locale', 'maxFileSize', 'minFileSize', 'multiple', 'sequentialUpload', 'showFileList', 'template'];\nconst outputs$5 = ['focus', 'blur', 'actionComplete', 'beforeRemove', 'beforeUpload', 'canceling', 'change', 'chunkFailure', 'chunkSuccess', 'chunkUploading', 'clearing', 'created', 'failure', 'fileListRendering', 'pausing', 'progress', 'removing', 'rendering', 'resuming', 'selected', 'success', 'uploading'];\nconst twoWays$5 = [];\n/**\n * Represents the EJ2 Angular Uploader Component.\n * ```html\n * \n * ```\n */\nlet UploaderComponent = UploaderComponent_1 = class UploaderComponent extends Uploader {\n constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.cdr = cdr;\n this.tags = ['files'];\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$5);\n this.addTwoWay.call(this, twoWays$5);\n setValue('currentInstance', this, this.viewContainerRef);\n this.formContext = new FormBase();\n this.formCompContext = new ComponentBase();\n }\n registerOnChange(registerFunction) {}\n registerOnTouched(registerFunction) {}\n writeValue(value) {}\n setDisabledState(disabled) {}\n ngOnInit() {\n this.formCompContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.formContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.formCompContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.tagObjects[0].instance = this.childFiles;\n this.formCompContext.ngAfterContentChecked(this);\n }\n};\nUploaderComponent.ɵfac = function UploaderComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || UploaderComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\nUploaderComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: UploaderComponent,\n selectors: [[\"ejs-uploader\"]],\n contentQueries: function UploaderComponent_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, _c0, 5);\n i0.ɵɵcontentQuery(dirIndex, FilesDirective, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.template = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childFiles = _t.first);\n }\n },\n inputs: {\n allowedExtensions: \"allowedExtensions\",\n asyncSettings: \"asyncSettings\",\n autoUpload: \"autoUpload\",\n buttons: \"buttons\",\n cssClass: \"cssClass\",\n directoryUpload: \"directoryUpload\",\n dropArea: \"dropArea\",\n dropEffect: \"dropEffect\",\n enableHtmlSanitizer: \"enableHtmlSanitizer\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n enabled: \"enabled\",\n files: \"files\",\n htmlAttributes: \"htmlAttributes\",\n locale: \"locale\",\n maxFileSize: \"maxFileSize\",\n minFileSize: \"minFileSize\",\n multiple: \"multiple\",\n sequentialUpload: \"sequentialUpload\",\n showFileList: \"showFileList\",\n template: \"template\"\n },\n outputs: {\n focus: \"focus\",\n blur: \"blur\",\n actionComplete: \"actionComplete\",\n beforeRemove: \"beforeRemove\",\n beforeUpload: \"beforeUpload\",\n canceling: \"canceling\",\n change: \"change\",\n chunkFailure: \"chunkFailure\",\n chunkSuccess: \"chunkSuccess\",\n chunkUploading: \"chunkUploading\",\n clearing: \"clearing\",\n created: \"created\",\n failure: \"failure\",\n fileListRendering: \"fileListRendering\",\n pausing: \"pausing\",\n progress: \"progress\",\n removing: \"removing\",\n rendering: \"rendering\",\n resuming: \"resuming\",\n selected: \"selected\",\n success: \"success\",\n uploading: \"uploading\"\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => UploaderComponent_1),\n multi: true\n }]), i0.ɵɵInheritDefinitionFeature],\n decls: 0,\n vars: 0,\n template: function UploaderComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n});\n__decorate([Template()], UploaderComponent.prototype, \"template\", void 0);\nUploaderComponent = UploaderComponent_1 = __decorate([ComponentMixins([ComponentBase, FormBase])], UploaderComponent);\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Uploader component.\n */\nlet UploaderModule = /*#__PURE__*/(() => {\n class UploaderModule {}\n UploaderModule.ɵfac = function UploaderModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || UploaderModule)();\n };\n UploaderModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: UploaderModule\n });\n UploaderModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return UploaderModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Uploader component with providers.\n */\nlet UploaderAllModule = /*#__PURE__*/(() => {\n class UploaderAllModule {}\n UploaderAllModule.ɵfac = function UploaderAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || UploaderAllModule)();\n };\n UploaderAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: UploaderAllModule\n });\n UploaderAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, UploaderModule], UploaderModule]\n });\n return UploaderAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nvar ColorPickerComponent_1;\nconst inputs$4 = ['columns', 'createPopupOnClick', 'cssClass', 'disabled', 'enableOpacity', 'enablePersistence', 'enableRtl', 'inline', 'locale', 'mode', 'modeSwitcher', 'noColor', 'presetColors', 'showButtons', 'showRecentColors', 'value'];\nconst outputs$4 = ['focus', 'blur', 'beforeClose', 'beforeModeSwitch', 'beforeOpen', 'beforeTileRender', 'change', 'created', 'onModeSwitch', 'open', 'select', 'valueChange'];\nconst twoWays$4 = ['value'];\n/**\n * Represents the EJ2 Angular ColorPicker Component.\n * ```html\n * \n * ```\n */\nlet ColorPickerComponent = ColorPickerComponent_1 = class ColorPickerComponent extends ColorPicker {\n constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.cdr = cdr;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$4);\n this.addTwoWay.call(this, twoWays$4);\n setValue('currentInstance', this, this.viewContainerRef);\n this.formContext = new FormBase();\n this.formCompContext = new ComponentBase();\n }\n registerOnChange(registerFunction) {}\n registerOnTouched(registerFunction) {}\n writeValue(value) {}\n setDisabledState(disabled) {}\n ngOnInit() {\n this.formCompContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.formContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.formCompContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.formCompContext.ngAfterContentChecked(this);\n }\n};\nColorPickerComponent.ɵfac = function ColorPickerComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ColorPickerComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\nColorPickerComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: ColorPickerComponent,\n selectors: [[\"\", \"ejs-colorpicker\", \"\"]],\n inputs: {\n columns: \"columns\",\n createPopupOnClick: \"createPopupOnClick\",\n cssClass: \"cssClass\",\n disabled: \"disabled\",\n enableOpacity: \"enableOpacity\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n inline: \"inline\",\n locale: \"locale\",\n mode: \"mode\",\n modeSwitcher: \"modeSwitcher\",\n noColor: \"noColor\",\n presetColors: \"presetColors\",\n showButtons: \"showButtons\",\n showRecentColors: \"showRecentColors\",\n value: \"value\"\n },\n outputs: {\n focus: \"focus\",\n blur: \"blur\",\n beforeClose: \"beforeClose\",\n beforeModeSwitch: \"beforeModeSwitch\",\n beforeOpen: \"beforeOpen\",\n beforeTileRender: \"beforeTileRender\",\n change: \"change\",\n created: \"created\",\n onModeSwitch: \"onModeSwitch\",\n open: \"open\",\n select: \"select\",\n valueChange: \"valueChange\"\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => ColorPickerComponent_1),\n multi: true\n }]), i0.ɵɵInheritDefinitionFeature],\n attrs: _c1,\n decls: 0,\n vars: 0,\n template: function ColorPickerComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n});\nColorPickerComponent = ColorPickerComponent_1 = __decorate([ComponentMixins([ComponentBase, FormBase])], ColorPickerComponent);\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the ColorPicker component.\n */\nlet ColorPickerModule = /*#__PURE__*/(() => {\n class ColorPickerModule {}\n ColorPickerModule.ɵfac = function ColorPickerModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ColorPickerModule)();\n };\n ColorPickerModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: ColorPickerModule\n });\n ColorPickerModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return ColorPickerModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the ColorPicker component with providers.\n */\nlet ColorPickerAllModule = /*#__PURE__*/(() => {\n class ColorPickerAllModule {}\n ColorPickerAllModule.ɵfac = function ColorPickerAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ColorPickerAllModule)();\n };\n ColorPickerAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: ColorPickerAllModule\n });\n ColorPickerAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, ColorPickerModule], ColorPickerModule]\n });\n return ColorPickerAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nvar SignatureComponent_1;\nconst inputs$3 = ['backgroundColor', 'backgroundImage', 'disabled', 'enablePersistence', 'enableRtl', 'isReadOnly', 'locale', 'maxStrokeWidth', 'minStrokeWidth', 'saveWithBackground', 'strokeColor', 'velocity'];\nconst outputs$3 = ['focus', 'blur', 'beforeSave', 'change', 'created'];\nconst twoWays$3 = [];\n/**\n * Represents the EJ2 Angular Signature Component.\n * ```html\n * \n * ```\n */\nlet SignatureComponent = SignatureComponent_1 = class SignatureComponent extends Signature {\n constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.cdr = cdr;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$3);\n this.addTwoWay.call(this, twoWays$3);\n setValue('currentInstance', this, this.viewContainerRef);\n this.formContext = new FormBase();\n this.formCompContext = new ComponentBase();\n }\n registerOnChange(registerFunction) {}\n registerOnTouched(registerFunction) {}\n writeValue(value) {}\n setDisabledState(disabled) {}\n ngOnInit() {\n this.formCompContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.formContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.formCompContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.formCompContext.ngAfterContentChecked(this);\n }\n};\nSignatureComponent.ɵfac = function SignatureComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SignatureComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\nSignatureComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: SignatureComponent,\n selectors: [[\"\", \"ejs-signature\", \"\"]],\n inputs: {\n backgroundColor: \"backgroundColor\",\n backgroundImage: \"backgroundImage\",\n disabled: \"disabled\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n isReadOnly: \"isReadOnly\",\n locale: \"locale\",\n maxStrokeWidth: \"maxStrokeWidth\",\n minStrokeWidth: \"minStrokeWidth\",\n saveWithBackground: \"saveWithBackground\",\n strokeColor: \"strokeColor\",\n velocity: \"velocity\"\n },\n outputs: {\n focus: \"focus\",\n blur: \"blur\",\n beforeSave: \"beforeSave\",\n change: \"change\",\n created: \"created\"\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SignatureComponent_1),\n multi: true\n }]), i0.ɵɵInheritDefinitionFeature],\n attrs: _c2,\n decls: 0,\n vars: 0,\n template: function SignatureComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n});\nSignatureComponent = SignatureComponent_1 = __decorate([ComponentMixins([ComponentBase, FormBase])], SignatureComponent);\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Signature component.\n */\nlet SignatureModule = /*#__PURE__*/(() => {\n class SignatureModule {}\n SignatureModule.ɵfac = function SignatureModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SignatureModule)();\n };\n SignatureModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: SignatureModule\n });\n SignatureModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return SignatureModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Signature component with providers.\n */\nlet SignatureAllModule = /*#__PURE__*/(() => {\n class SignatureAllModule {}\n SignatureAllModule.ɵfac = function SignatureAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SignatureAllModule)();\n };\n SignatureAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: SignatureAllModule\n });\n SignatureAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, SignatureModule], SignatureModule]\n });\n return SignatureAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nvar RatingComponent_1;\nconst inputs$2 = ['allowReset', 'cssClass', 'disabled', 'emptyTemplate', 'enableAnimation', 'enablePersistence', 'enableRtl', 'enableSingleSelection', 'fullTemplate', 'itemsCount', 'labelPosition', 'labelTemplate', 'locale', 'min', 'precision', 'readOnly', 'showLabel', 'showTooltip', 'tooltipTemplate', 'value', 'visible'];\nconst outputs$2 = ['focus', 'blur', 'beforeItemRender', 'created', 'onItemHover', 'valueChanged', 'valueChange'];\nconst twoWays$2 = ['value'];\n/**\n * Represents the EJ2 Angular Rating Component.\n * ```html\n * \n * ```\n */\nlet RatingComponent = RatingComponent_1 = class RatingComponent extends Rating {\n constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.cdr = cdr;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$2);\n this.addTwoWay.call(this, twoWays$2);\n setValue('currentInstance', this, this.viewContainerRef);\n this.formContext = new FormBase();\n this.formCompContext = new ComponentBase();\n }\n registerOnChange(registerFunction) {}\n registerOnTouched(registerFunction) {}\n writeValue(value) {}\n setDisabledState(disabled) {}\n ngOnInit() {\n this.formCompContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.formContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.formCompContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.formCompContext.ngAfterContentChecked(this);\n }\n};\nRatingComponent.ɵfac = function RatingComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || RatingComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\nRatingComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: RatingComponent,\n selectors: [[\"\", \"ejs-rating\", \"\"]],\n contentQueries: function RatingComponent_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, _c3, 5);\n i0.ɵɵcontentQuery(dirIndex, _c4, 5);\n i0.ɵɵcontentQuery(dirIndex, _c5, 5);\n i0.ɵɵcontentQuery(dirIndex, _c6, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fullTemplate = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.emptyTemplate = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tooltipTemplate = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.labelTemplate = _t.first);\n }\n },\n inputs: {\n allowReset: \"allowReset\",\n cssClass: \"cssClass\",\n disabled: \"disabled\",\n emptyTemplate: \"emptyTemplate\",\n enableAnimation: \"enableAnimation\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n enableSingleSelection: \"enableSingleSelection\",\n fullTemplate: \"fullTemplate\",\n itemsCount: \"itemsCount\",\n labelPosition: \"labelPosition\",\n labelTemplate: \"labelTemplate\",\n locale: \"locale\",\n min: \"min\",\n precision: \"precision\",\n readOnly: \"readOnly\",\n showLabel: \"showLabel\",\n showTooltip: \"showTooltip\",\n tooltipTemplate: \"tooltipTemplate\",\n value: \"value\",\n visible: \"visible\"\n },\n outputs: {\n focus: \"focus\",\n blur: \"blur\",\n beforeItemRender: \"beforeItemRender\",\n created: \"created\",\n onItemHover: \"onItemHover\",\n valueChanged: \"valueChanged\",\n valueChange: \"valueChange\"\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => RatingComponent_1),\n multi: true\n }]), i0.ɵɵInheritDefinitionFeature],\n attrs: _c7,\n decls: 0,\n vars: 0,\n template: function RatingComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n});\n__decorate([Template()], RatingComponent.prototype, \"fullTemplate\", void 0);\n__decorate([Template()], RatingComponent.prototype, \"emptyTemplate\", void 0);\n__decorate([Template()], RatingComponent.prototype, \"tooltipTemplate\", void 0);\n__decorate([Template()], RatingComponent.prototype, \"labelTemplate\", void 0);\nRatingComponent = RatingComponent_1 = __decorate([ComponentMixins([ComponentBase, FormBase])], RatingComponent);\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Rating component.\n */\nlet RatingModule = /*#__PURE__*/(() => {\n class RatingModule {}\n RatingModule.ɵfac = function RatingModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || RatingModule)();\n };\n RatingModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: RatingModule\n });\n RatingModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return RatingModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the Rating component with providers.\n */\nlet RatingAllModule = /*#__PURE__*/(() => {\n class RatingAllModule {}\n RatingAllModule.ɵfac = function RatingAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || RatingAllModule)();\n };\n RatingAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: RatingAllModule\n });\n RatingAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, RatingModule], RatingModule]\n });\n return RatingAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nvar OtpInputComponent_1;\nconst inputs$1 = ['ariaLabels', 'autoFocus', 'cssClass', 'disabled', 'enablePersistence', 'enableRtl', 'htmlAttributes', 'length', 'locale', 'placeholder', 'separator', 'stylingMode', 'textTransform', 'type', 'value'];\nconst outputs$1 = ['blur', 'created', 'focus', 'input', 'valueChanged', 'valueChange'];\nconst twoWays$1 = ['value'];\n/**\n * Represents the EJ2 Angular OtpInput Component.\n * ```html\n *
    \n * ```\n */\nlet OtpInputComponent = OtpInputComponent_1 = class OtpInputComponent extends OtpInput {\n constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.cdr = cdr;\n this.skipFromEvent = true;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs$1);\n this.addTwoWay.call(this, twoWays$1);\n setValue('currentInstance', this, this.viewContainerRef);\n this.formContext = new FormBase();\n this.formCompContext = new ComponentBase();\n }\n registerOnChange(registerFunction) {}\n registerOnTouched(registerFunction) {}\n writeValue(value) {}\n setDisabledState(disabled) {}\n ngOnInit() {\n this.formCompContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.formContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.formCompContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.formCompContext.ngAfterContentChecked(this);\n }\n};\nOtpInputComponent.ɵfac = function OtpInputComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || OtpInputComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\nOtpInputComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: OtpInputComponent,\n selectors: [[\"\", \"ejs-otpinput\", \"\"]],\n inputs: {\n ariaLabels: \"ariaLabels\",\n autoFocus: \"autoFocus\",\n cssClass: \"cssClass\",\n disabled: \"disabled\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n htmlAttributes: \"htmlAttributes\",\n length: \"length\",\n locale: \"locale\",\n placeholder: \"placeholder\",\n separator: \"separator\",\n stylingMode: \"stylingMode\",\n textTransform: \"textTransform\",\n type: \"type\",\n value: \"value\"\n },\n outputs: {\n blur: \"blur\",\n created: \"created\",\n focus: \"focus\",\n input: \"input\",\n valueChanged: \"valueChanged\",\n valueChange: \"valueChange\"\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => OtpInputComponent_1),\n multi: true\n }]), i0.ɵɵInheritDefinitionFeature],\n attrs: _c8,\n decls: 0,\n vars: 0,\n template: function OtpInputComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n});\nOtpInputComponent = OtpInputComponent_1 = __decorate([ComponentMixins([ComponentBase, FormBase])], OtpInputComponent);\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the OtpInput component.\n */\nlet OtpInputModule = /*#__PURE__*/(() => {\n class OtpInputModule {}\n OtpInputModule.ɵfac = function OtpInputModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || OtpInputModule)();\n };\n OtpInputModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: OtpInputModule\n });\n OtpInputModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return OtpInputModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the OtpInput component with providers.\n */\nlet OtpInputAllModule = /*#__PURE__*/(() => {\n class OtpInputAllModule {}\n OtpInputAllModule.ɵfac = function OtpInputAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || OtpInputAllModule)();\n };\n OtpInputAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: OtpInputAllModule\n });\n OtpInputAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, OtpInputModule], OtpInputModule]\n });\n return OtpInputAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nvar SmartTextAreaComponent_1;\nconst inputs = ['UserPhrases', 'aiSuggestionHandler', 'cols', 'cssClass', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'htmlAttributes', 'locale', 'maxLength', 'placeholder', 'readonly', 'resizeMode', 'rows', 'showClearButton', 'showSuggestionOnPopup', 'userRole', 'value', 'width'];\nconst outputs = ['blur', 'change', 'created', 'destroyed', 'focus', 'input', 'valueChange'];\nconst twoWays = ['value'];\n/**\n * Represents the Angular Smart TextArea Component.\n * ```html\n * \n * ```\n */\nlet SmartTextAreaComponent = SmartTextAreaComponent_1 = class SmartTextAreaComponent extends SmartTextArea {\n constructor(ngEle, srenderer, viewContainerRef, injector, cdr) {\n super();\n this.ngEle = ngEle;\n this.srenderer = srenderer;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.cdr = cdr;\n this.skipFromEvent = true;\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n this.registerEvents(outputs);\n this.addTwoWay.call(this, twoWays);\n setValue('currentInstance', this, this.viewContainerRef);\n this.formContext = new FormBase();\n this.formCompContext = new ComponentBase();\n }\n registerOnChange(registerFunction) {}\n registerOnTouched(registerFunction) {}\n writeValue(value) {}\n setDisabledState(disabled) {}\n ngOnInit() {\n this.formCompContext.ngOnInit(this);\n }\n ngAfterViewInit() {\n this.formContext.ngAfterViewInit(this);\n }\n ngOnDestroy() {\n this.formCompContext.ngOnDestroy(this);\n }\n ngAfterContentChecked() {\n this.formCompContext.ngAfterContentChecked(this);\n }\n};\nSmartTextAreaComponent.ɵfac = function SmartTextAreaComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SmartTextAreaComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n};\nSmartTextAreaComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: SmartTextAreaComponent,\n selectors: [[\"ejs-smarttextarea\"]],\n inputs: {\n UserPhrases: \"UserPhrases\",\n aiSuggestionHandler: \"aiSuggestionHandler\",\n cols: \"cols\",\n cssClass: \"cssClass\",\n enablePersistence: \"enablePersistence\",\n enableRtl: \"enableRtl\",\n enabled: \"enabled\",\n floatLabelType: \"floatLabelType\",\n htmlAttributes: \"htmlAttributes\",\n locale: \"locale\",\n maxLength: \"maxLength\",\n placeholder: \"placeholder\",\n readonly: \"readonly\",\n resizeMode: \"resizeMode\",\n rows: \"rows\",\n showClearButton: \"showClearButton\",\n showSuggestionOnPopup: \"showSuggestionOnPopup\",\n userRole: \"userRole\",\n value: \"value\",\n width: \"width\"\n },\n outputs: {\n blur: \"blur\",\n change: \"change\",\n created: \"created\",\n destroyed: \"destroyed\",\n focus: \"focus\",\n input: \"input\",\n valueChange: \"valueChange\"\n },\n features: [i0.ɵɵProvidersFeature([{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SmartTextAreaComponent_1),\n multi: true\n }]), i0.ɵɵInheritDefinitionFeature],\n decls: 0,\n vars: 0,\n template: function SmartTextAreaComponent_Template(rf, ctx) {},\n encapsulation: 2,\n changeDetection: 0\n});\nSmartTextAreaComponent = SmartTextAreaComponent_1 = __decorate([ComponentMixins([ComponentBase, FormBase])], SmartTextAreaComponent);\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the SmartTextArea component.\n */\nlet SmartTextAreaModule = /*#__PURE__*/(() => {\n class SmartTextAreaModule {}\n SmartTextAreaModule.ɵfac = function SmartTextAreaModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SmartTextAreaModule)();\n };\n SmartTextAreaModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: SmartTextAreaModule\n });\n SmartTextAreaModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule]]\n });\n return SmartTextAreaModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * NgModule definition for the SmartTextArea component with providers.\n */\nlet SmartTextAreaAllModule = /*#__PURE__*/(() => {\n class SmartTextAreaAllModule {}\n SmartTextAreaAllModule.ɵfac = function SmartTextAreaAllModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SmartTextAreaAllModule)();\n };\n SmartTextAreaAllModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: SmartTextAreaAllModule\n });\n SmartTextAreaAllModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [],\n imports: [[CommonModule, SmartTextAreaModule], SmartTextAreaModule]\n });\n return SmartTextAreaAllModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nclass FormValidators {\n //max validation\n static max(number) {\n let max = number;\n return control => {\n //tslint:disable-next-line\n let result = FormValidator.checkValidator.max({\n value: control.value,\n param: max\n });\n if (result === true) {\n return null;\n } else {\n return {\n 'max': true\n };\n }\n };\n }\n // min validation\n static min(number) {\n let min = number;\n return control => {\n //tslint:disable-next-line\n let result = FormValidator.checkValidator.min({\n value: control.value,\n param: min\n });\n if (result === true) {\n return null;\n } else {\n return {\n 'min': true\n };\n }\n };\n }\n // Credit card validation\n static creditcard(control) {\n //tslint:disable-next-line\n let result = FormValidator.checkValidator.creditcard({\n value: control.value\n });\n if (result === true) {\n return null;\n } else {\n return {\n 'cardno': true\n };\n }\n }\n // date validation\n static date(control) {\n //tslint:disable-next-line\n let result = FormValidator.checkValidator.date({\n value: control.value\n });\n if (result === true) {\n return null;\n } else {\n return {\n 'date': true\n };\n }\n }\n // Date-ISO validation\n static dateIso(control) {\n //tslint:disable-next-line\n let result = FormValidator.checkValidator.dateIso({\n value: control.value\n });\n if (result === true) {\n return null;\n } else {\n return {\n 'dateiso': true\n };\n }\n }\n // Digit validation\n static digits(control) {\n //tslint:disable-next-line\n let result = FormValidator.checkValidator.digits({\n value: control.value\n });\n if (result === true) {\n return null;\n } else {\n return {\n 'digit': true\n };\n }\n }\n // Email validation\n static email(control) {\n //tslint:disable-next-line\n let result = FormValidator.checkValidator.email({\n value: control.value\n });\n if (result === true) {\n return null;\n } else {\n return {\n 'email': true\n };\n }\n }\n //maxlength validation\n static maxLength(number) {\n let maxlength = number;\n return control => {\n //tslint:disable-next-line\n let result = FormValidator.checkValidator.maxLength({\n value: control.value,\n param: maxlength\n });\n if (result === true) {\n return null;\n } else {\n return {\n 'maxlength': true\n };\n }\n };\n }\n //minlength validation\n static minLength(number) {\n let minlength = number;\n return control => {\n //tslint:disable-next-line\n let result = FormValidator.checkValidator.minLength({\n value: control.value,\n param: minlength\n });\n if (result === true) {\n return null;\n } else {\n return {\n 'minlength': true\n };\n }\n };\n }\n //number validation\n static number(control) {\n //tslint:disable-next-line\n let result = FormValidator.checkValidator.number({\n value: control.value\n });\n if (result === true) {\n return null;\n } else {\n return {\n 'number': true\n };\n }\n }\n // required validation\n static required(control) {\n //tslint:disable-next-line\n let result = control.value === null ? false : FormValidator.checkValidator.required({\n value: control.value\n });\n if (result === true) {\n return null;\n } else {\n return {\n 'required': true\n };\n }\n }\n // Telephone number validation\n static tel(control) {\n //tslint:disable-next-line\n let result = FormValidator.checkValidator.tel({\n value: control.value\n });\n if (result === true) {\n return null;\n } else {\n return {\n 'telno': true\n };\n }\n }\n // Url validation\n static url(control) {\n //tslint:disable-next-line\n let result = FormValidator.checkValidator.url({\n value: control.value\n });\n if (result === true) {\n return null;\n } else {\n return {\n 'url': true\n };\n }\n }\n // RangeLength validation\n static rangeLength(number1, number2) {\n let minRL = number1;\n let maxRL = number2;\n //tslint:disable-next-line\n let param = [minRL, maxRL];\n return control => {\n //tslint:disable-next-line\n let result = FormValidator.checkValidator.rangeLength({\n value: control.value,\n param: param\n });\n if (result === true) {\n return null;\n } else {\n return {\n 'rangelength': true\n };\n }\n };\n }\n // Range validation\n static range(number1, number2) {\n let minR = number1;\n let maxR = number2;\n //tslint:disable-next-line\n let param1 = [minR, maxR];\n return control => {\n //tslint:disable-next-line\n let result = FormValidator.checkValidator.range({\n value: control.value,\n param: param1\n });\n if (result === true) {\n return null;\n } else {\n return {\n 'range': true\n };\n }\n };\n }\n}\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ColorPickerAllModule, ColorPickerComponent, ColorPickerModule, FilesDirective, FormValidators, MaskedTextBoxAllModule, MaskedTextBoxComponent, MaskedTextBoxModule, NumericTextBoxAllModule, NumericTextBoxComponent, NumericTextBoxModule, OtpInputAllModule, OtpInputComponent, OtpInputModule, RatingAllModule, RatingComponent, RatingModule, SignatureAllModule, SignatureComponent, SignatureModule, SliderAllModule, SliderComponent, SliderModule, SmartTextAreaAllModule, SmartTextAreaComponent, SmartTextAreaModule, TextAreaAllModule, TextAreaComponent, TextAreaModule, TextBoxAllModule, TextBoxComponent, TextBoxModule, UploadedFilesDirective, UploaderAllModule, UploaderComponent, UploaderModule };\n","import { TranslateService } from '@ngx-translate/core';\r\nimport { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { SliderComponent, SliderTickEventArgs, SliderTooltipEventArgs, SliderModule } from '@syncfusion/ej2-angular-inputs';\r\nimport { DateTime } from 'luxon';\r\n\r\n@Component({\r\n selector: 'app-duration-time-slider',\r\n templateUrl: './duration-time-slider.component.html',\r\n styleUrls: ['./duration-time-slider.component.scss'],\r\n standalone: true,\r\n imports: [SliderModule]\r\n})\r\nexport class DurationTimeSliderComponent implements OnInit {\r\n\r\n @Input() public duration = 0;\r\n @Input() public step = 15;\r\n @Output() public durationChange = new EventEmitter();\r\n @ViewChild('slider') private slider: SliderComponent;\r\n @Input() public set startTime(value: Date) {\r\n if (this._startTime !== value) {\r\n this._startTime = value;\r\n this.slider?.refresh();\r\n // fix issue that duration setting gets lost on slider after refresh\r\n setTimeout(() => {\r\n this.slider?.writeValue(this.duration);\r\n }, 0);\r\n }\r\n }\r\n @Input() public set maxDuration(value: number) {\r\n this.limitsData = {enabled: true, minEnd: value};\r\n this.slider?.refresh();\r\n }\r\n\r\n public min = 0;\r\n public max: number = 24 * 60;\r\n public tooltipData = { placement: 'Before', isVisible: true };\r\n public ticksData = { placement: 'After', largeStep: 120 };\r\n public limitsData = { enabled: false, minEnd: 0 };\r\n\r\n public rangeType = 'MinRange';\r\n\r\n private _startTime: Date;\r\n\r\n constructor(private translateService: TranslateService) { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n public tooltipChangeHandler(args: SliderTooltipEventArgs): void {\r\n const durationInMinutes = args.value as number;\r\n const startTimeDateTime = this._startTime ? DateTime.fromJSDate(this._startTime) : DateTime.now().startOf('day');\r\n if (durationInMinutes >= 24 * 60) {\r\n args.text = this.translateService.instant('i18n.base.shared.duration-time-slider.duration') + ': 24:00' + ' / ' +\r\n this.translateService.instant('i18n.base.shared.duration-time-slider.endTime') + ': ' + startTimeDateTime.toFormat('HH:mm');\r\n } else {\r\n args.text = this.translateService.instant('i18n.base.shared.duration-time-slider.duration') + ': ' +\r\n DateTime.now().startOf('day').plus({minutes: durationInMinutes}).toFormat('HH:mm') + ' / ' +\r\n this.translateService.instant('i18n.base.shared.duration-time-slider.endTime') + ': ' +\r\n startTimeDateTime.plus({minutes: durationInMinutes}).toFormat('HH:mm');\r\n }\r\n this.durationChange.emit(durationInMinutes);\r\n }\r\n\r\n public renderingTicksHandler(args: SliderTickEventArgs): void {\r\n const startTimeDateTime = this._startTime ? DateTime.fromJSDate(this._startTime) : DateTime.now().startOf('day');\r\n args.text = startTimeDateTime.plus({minutes: args.value}).toFormat('HH:mm');\r\n }\r\n\r\n}\r\n","
    \r\n \r\n \r\n
    \r\n","import { AfterViewInit } from '@angular/core';\r\nimport { Component, Input, EventEmitter, Output, forwardRef } from '@angular/core';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\r\nimport { DateTime } from 'luxon';\r\nimport { NgClass, NgStyle } from '@angular/common';\r\nimport { MaskedTextBoxModule } from '@syncfusion/ej2-angular-inputs';\r\n\r\n@Component({\r\n selector: 'app-duration-input',\r\n templateUrl: './duration-input.component.html',\r\n styleUrls: ['./duration-input.component.scss'],\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => DurationInputComponent),\r\n multi: true,\r\n }\r\n ],\r\n standalone: true,\r\n imports: [\r\n MaskedTextBoxModule,\r\n NgClass,\r\n NgStyle,\r\n ],\r\n})\r\nexport class DurationInputComponent implements ControlValueAccessor, AfterViewInit {\r\n @Output()\r\n public durationChange: EventEmitter = new EventEmitter();\r\n\r\n @Input()\r\n public disabled = false;\r\n\r\n @Input()\r\n public styleClass: string;\r\n\r\n @Input()\r\n public inputStyle: {[klass: string]: any;};\r\n\r\n @Input()\r\n public set duration(duration: number) {\r\n if (duration) {\r\n this._duration = duration;\r\n } else {\r\n this._duration = null;\r\n }\r\n this.resetInnerDuration();\r\n }\r\n\r\n @Input()\r\n public set minDuration(minDuration: number) {\r\n if (minDuration) {\r\n this._minTotalMinutes = minDuration;\r\n } else {\r\n this._minTotalMinutes = 0;\r\n }\r\n }\r\n\r\n @Input()\r\n public set maxDuration(maxDuration: number) {\r\n if (maxDuration) {\r\n this._maxTotalMinutes = maxDuration;\r\n } else {\r\n this._maxTotalMinutes = 24 * 60;\r\n }\r\n }\r\n\r\n public set innerDuration(durationStr: string) {\r\n if (durationStr === this._innerDuration || !this.viewInitialized) {\r\n return;\r\n }\r\n this.onTouched();\r\n\r\n if (durationStr && durationStr.length === 4) {\r\n const hours = Number.parseInt(durationStr.substring(0, 2), 10);\r\n const minutes = Number.parseInt(durationStr.substring(2, 4), 10);\r\n if (hours > 24 || minutes > 59) {\r\n this.resetInnerDuration();\r\n return;\r\n }\r\n\r\n this._duration = 60 * hours + minutes;\r\n let timeNeedsReset = false;\r\n if (this._duration > this._maxTotalMinutes) {\r\n this._duration = this._maxTotalMinutes;\r\n timeNeedsReset = true;\r\n } else if (this._duration < this._minTotalMinutes) {\r\n this._duration = this._minTotalMinutes;\r\n timeNeedsReset = true;\r\n }\r\n\r\n this.durationChange.emit(this._duration);\r\n this.onChange(this._duration);\r\n if (timeNeedsReset) {\r\n this.resetInnerDuration();\r\n return;\r\n }\r\n } else if (!durationStr || durationStr.length === 0) {\r\n this._duration = null;\r\n this.durationChange.emit(this._duration);\r\n this.onChange(this._duration);\r\n }\r\n this._innerDuration = durationStr;\r\n }\r\n\r\n public get innerDuration(): string {\r\n return this._innerDuration;\r\n }\r\n\r\n private _duration: number;\r\n private _innerDuration: string;\r\n private _minTotalMinutes = 0;\r\n private _maxTotalMinutes = 24 * 60;\r\n private viewInitialized = false;\r\n\r\n constructor() { }\r\n\r\n ngAfterViewInit(): void {\r\n this.viewInitialized = true;\r\n }\r\n\r\n public onChange: any = () => {};\r\n public onTouched: any = () => {};\r\n\r\n public writeValue(duration: number): void {\r\n this.duration = duration;\r\n }\r\n\r\n public registerOnChange(fn): void {\r\n this.onChange = fn;\r\n }\r\n\r\n public registerOnTouched(fn): void {\r\n this.onTouched = fn;\r\n }\r\n\r\n public setDisabledState(isDisabled: boolean): void {\r\n this.disabled = isDisabled;\r\n }\r\n\r\n public onBlur() {\r\n this.resetInnerDuration();\r\n }\r\n\r\n private resetInnerDuration() {\r\n if (this._duration != null) {\r\n if (this._duration >= 24 * 60) {\r\n this._innerDuration = '24:00';\r\n } else {\r\n this._innerDuration = DateTime.now().startOf('day').plus({minutes: this._duration}).toFormat('HH:mm');\r\n }\r\n } else {\r\n this._innerDuration = null;\r\n }\r\n }\r\n}\r\n","\r\n","import { DateTime, Duration } from 'luxon';\r\nimport { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';\r\nimport { combineLatest, Subject } from 'rxjs';\r\nimport { startWith, takeUntil, tap } from 'rxjs/operators';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { DurationTimeSliderComponent } from '../duration-time-slider/duration-time-slider.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { DurationInputComponent } from '../duration-input/duration-input.component';\r\nimport { AppErrorMessagesComponent } from '../../error-messages/app-error-messages.component';\r\nimport { MaskedDateTimeService, TimePickerModule } from '@syncfusion/ej2-angular-calendars';\r\nimport { TimePickerWithTimeSliderFormGroup } from './time-picker-with-time-slider-form.type';\r\n\r\nexport interface IDurationRange {\r\n startTime: Duration;\r\n endTime: Duration;\r\n}\r\n\r\n@Component({\r\n selector: 'app-time-picker-with-time-slider',\r\n templateUrl: './time-picker-with-time-slider.component.html',\r\n styleUrls: ['./time-picker-with-time-slider.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, TimePickerModule, AppErrorMessagesComponent, DurationInputComponent, NgIf, DurationTimeSliderComponent, TranslateModule],\r\n providers: [MaskedDateTimeService]\r\n})\r\nexport class TimePickerWithTimeSliderComponent implements OnInit, OnDestroy {\r\n\r\n @Input() public form: TimePickerWithTimeSliderFormGroup;\r\n @Input() public maxDuration: number;\r\n @Input() public possibleStartTimeRanges: IDurationRange[];\r\n @Input() public timepickerStrictMode = false;\r\n @Input() public showSliderBeforeTimeSelection = true;\r\n @Output() public startTimeChange = new EventEmitter();\r\n\r\n public customFormat = 'HH:mm';\r\n public endTimeStr: string;\r\n public showSlider = true;\r\n\r\n public get maxDate(): Date {\r\n if (this.maxDuration && this.possibleStartTimeRanges?.length > 0) {\r\n const targetMaxDate = DateTime.fromISO('1970-01-01').plus(this.possibleStartTimeRanges[0].startTime).plus({minutes: this.maxDuration});\r\n if (targetMaxDate.day > 1) { // timepicker can only display max 23:59\r\n return new Date('1/1/1970 23:59');\r\n }\r\n\r\n return targetMaxDate.toJSDate();\r\n }\r\n return new Date('1/1/1970 23:59');\r\n }\r\n\r\n private unsubscribe$ = new Subject();\r\n\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n combineLatest([\r\n this.form.controls.startTime.valueChanges.pipe(\r\n startWith(this.form.controls.startTime.value),\r\n tap(val => {\r\n if (!this.showSliderBeforeTimeSelection) {\r\n this.showSlider = !!val;\r\n }\r\n })\r\n ),\r\n this.form.controls.duration.valueChanges.pipe(startWith(this.form.controls.duration.value)),\r\n ])\r\n .pipe(\r\n takeUntil(this.unsubscribe$),\r\n )\r\n .subscribe(([startTime, duration]) => {\r\n this.startTimeChange.emit(startTime);\r\n this.endTimeStr = null;\r\n if (startTime !== null && duration !== null) {\r\n startTime = new Date(startTime);\r\n startTime.setFullYear(1970, 0, 1);\r\n\r\n if (startTime <= this.maxDate) {\r\n this.endTimeStr = this.calculatedEndTime(startTime, duration);\r\n }\r\n }\r\n });\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this.unsubscribe$.next();\r\n this.unsubscribe$.complete();\r\n }\r\n\r\n public durationChange(duration: number) {\r\n this.form.controls.duration.setValue(duration);\r\n }\r\n\r\n private calculatedEndTime(startTime: Date, duration: number): string {\r\n if (startTime && duration) {\r\n return DateTime.fromJSDate(startTime).plus({minutes: duration}).toFormat('HH:mm');\r\n }\r\n return null;\r\n }\r\n}\r\n","
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { UntypedFormBuilder, UntypedFormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { EnumTranslationService } from '../../services/enum-translation.service';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgFor, NgClass } from '@angular/common';\r\nimport { IdProvider } from '../id-provider';\r\n\r\n@Component({\r\n selector: 'app-multi-select-button-group',\r\n templateUrl: './multi-select-button-group.component.html',\r\n styleUrls: ['./multi-select-button-group.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, NgFor, NgClass, TranslateModule]\r\n})\r\nexport class MultiSelectButtonGroupComponent implements OnInit {\r\n\r\n @Input() public fieldsEnum: any;\r\n @Input() public form: UntypedFormGroup;\r\n @Input() public translateKey = '';\r\n\r\n @Input() public hide: any[] = [];\r\n @Input() public fixedWidth = true;\r\n @Input() public inline = false;\r\n @Input() public cssClass = '';\r\n\r\n public id: string = IdProvider.getNextId();\r\n public keyList: any[];\r\n\r\n constructor(private formBuilder: UntypedFormBuilder,\r\n private enumTranslationService: EnumTranslationService) {\r\n }\r\n\r\n ngOnInit() {\r\n this.keyList = this.getKeys();\r\n }\r\n\r\n private getKeys(): any[] {\r\n return this.enumTranslationService.translateNumericEnum(this.fieldsEnum, this.translateKey)\r\n .filter(item => !this.hide.some(e => e === item.value));\r\n }\r\n\r\n}\r\n","
    \r\n \r\n \r\n \r\n \r\n
    \r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgClass } from '@angular/common';\r\nimport { MultiSelectButtonGroupComponent } from '../multi-select-button-group/multi-select-button-group.component';\r\nimport { DaySelectorFormGroup } from './day-selector-form.type';\r\n\r\nexport enum Weekdays {\r\n allowedMonday = 0,\r\n allowedTuesday = 1,\r\n allowedWednesday = 2,\r\n allowedThursday = 3,\r\n allowedFriday = 4,\r\n allowedSaturday = 5,\r\n allowedSunday = 6,\r\n}\r\n\r\n@Component({\r\n selector: 'app-day-selector',\r\n templateUrl: './day-selector.component.html',\r\n styleUrls: ['./day-selector.component.scss'],\r\n standalone: true,\r\n imports: [\r\n ReactiveFormsModule,\r\n MultiSelectButtonGroupComponent,\r\n NgClass,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class DaySelectorComponent implements OnInit {\r\n\r\n @Input() public form: DaySelectorFormGroup;\r\n\r\n public Weekdays = Weekdays;\r\n\r\n constructor() {\r\n }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n public selectAll() {\r\n if (!this.form.controls.allowedMonday.disabled) {\r\n this.form.controls.allowedMonday.setValue(true);\r\n }\r\n if (!this.form.controls.allowedTuesday.disabled) {\r\n this.form.controls.allowedTuesday.setValue(true);\r\n }\r\n if (!this.form.controls.allowedWednesday.disabled) {\r\n this.form.controls.allowedWednesday.setValue(true);\r\n }\r\n if (!this.form.controls.allowedThursday.disabled) {\r\n this.form.controls.allowedThursday.setValue(true);\r\n }\r\n if (!this.form.controls.allowedFriday.disabled) {\r\n this.form.controls.allowedFriday.setValue(true);\r\n }\r\n if (!this.form.controls.allowedSaturday.disabled) {\r\n this.form.controls.allowedSaturday.setValue(true);\r\n }\r\n if (!this.form.controls.allowedSunday.disabled) {\r\n this.form.controls.allowedSunday.setValue(true);\r\n }\r\n }\r\n\r\n public selectWeekdays() {\r\n if (!this.form.controls.allowedMonday.disabled) {\r\n this.form.controls.allowedMonday.setValue(true);\r\n }\r\n if (!this.form.controls.allowedTuesday.disabled) {\r\n this.form.controls.allowedTuesday.setValue(true);\r\n }\r\n if (!this.form.controls.allowedWednesday.disabled) {\r\n this.form.controls.allowedWednesday.setValue(true);\r\n }\r\n if (!this.form.controls.allowedThursday.disabled) {\r\n this.form.controls.allowedThursday.setValue(true);\r\n }\r\n if (!this.form.controls.allowedFriday.disabled) {\r\n this.form.controls.allowedFriday.setValue(true);\r\n }\r\n this.form.controls.allowedSaturday.setValue(false);\r\n this.form.controls.allowedSunday.setValue(false);\r\n }\r\n\r\n public selectWeekend() {\r\n this.form.controls.allowedMonday.setValue(false);\r\n this.form.controls.allowedTuesday.setValue(false);\r\n this.form.controls.allowedWednesday.setValue(false);\r\n this.form.controls.allowedThursday.setValue(false);\r\n this.form.controls.allowedFriday.setValue(false);\r\n if (!this.form.controls.allowedSaturday.disabled) {\r\n this.form.controls.allowedSaturday.setValue(true);\r\n }\r\n if (!this.form.controls.allowedSunday.disabled) {\r\n this.form.controls.allowedSunday.setValue(true);\r\n }\r\n }\r\n\r\n public allActive(): boolean {\r\n return this.form.controls.allowedMonday.value === true &&\r\n this.form.controls.allowedTuesday.value === true &&\r\n this.form.controls.allowedWednesday.value === true &&\r\n this.form.controls.allowedThursday.value === true &&\r\n this.form.controls.allowedFriday.value === true &&\r\n this.form.controls.allowedSaturday.value === true &&\r\n this.form.controls.allowedSunday.value === true;\r\n }\r\n\r\n public weekdaysActive(): boolean {\r\n return this.form.controls.allowedMonday.value === true &&\r\n this.form.controls.allowedTuesday.value === true &&\r\n this.form.controls.allowedWednesday.value === true &&\r\n this.form.controls.allowedThursday.value === true &&\r\n this.form.controls.allowedFriday.value === true &&\r\n this.form.controls.allowedSaturday.value === false &&\r\n this.form.controls.allowedSunday.value === false;\r\n }\r\n\r\n public weekendActive(): boolean {\r\n return this.form.controls.allowedMonday.value === false &&\r\n this.form.controls.allowedTuesday.value === false &&\r\n this.form.controls.allowedWednesday.value === false &&\r\n this.form.controls.allowedThursday.value === false &&\r\n this.form.controls.allowedFriday.value === false &&\r\n this.form.controls.allowedSaturday.value === true &&\r\n this.form.controls.allowedSunday.value === true;\r\n }\r\n\r\n public areAllDaysDisabled(): boolean {\r\n return this.form.controls.allowedMonday.disabled\r\n && this.form.controls.allowedTuesday.disabled\r\n && this.form.controls.allowedWednesday.disabled\r\n && this.form.controls.allowedThursday.disabled\r\n && this.form.controls.allowedFriday.disabled\r\n && this.form.controls.allowedSaturday.disabled\r\n && this.form.controls.allowedSunday.disabled;\r\n }\r\n\r\n public areWeekdaysDisabled(): boolean {\r\n return this.form.controls.allowedMonday.disabled\r\n && this.form.controls.allowedTuesday.disabled\r\n && this.form.controls.allowedWednesday.disabled\r\n && this.form.controls.allowedThursday.disabled\r\n && this.form.controls.allowedFriday.disabled;\r\n }\r\n\r\n public areWeekendsDisabled(): boolean {\r\n return this.form.controls.allowedSaturday.disabled && this.form.controls.allowedSunday.disabled;\r\n }\r\n\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { ParkingTimeGrid } from './../../helpers/from-backend/parking-time-grid';\r\nimport { AfterViewChecked, ChangeDetectorRef, Component, Input, OnInit, OnDestroy } from '@angular/core';\r\nimport { UntypedFormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { DropDownConstantsFactory } from '../../../../base/shared/syncfusion/dropdown-constants-factory';\r\nimport { ParkingHelper } from '../../parking-helper';\r\nimport { AuthService } from '../../../../base/services/auth.service';\r\nimport {\r\n AutomaticParkingScheduleDTO,\r\n ParkerRegistrationOffense,\r\n ParkingProcessSubscriptionInfoDTO,\r\n ParkingProcessTariffInfoDTO,\r\n ParkingProcessZoneInfoDTO,\r\n UserInfoDTO,\r\n WeekDayFlags,\r\n} from 'src/app/base/models/models.swagger.generated';\r\nimport { ParkingService } from '../../parking/parking.service';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { distinctUntilChanged, filter, startWith, tap } from 'rxjs/operators';\r\nimport { combineLatest, Subscription } from 'rxjs';\r\nimport { DateHelper } from '../../../../base/shared/date-helper';\r\nimport { DateTime } from 'luxon';\r\nimport { BitHelper } from '../../../../base/shared/bit-helper';\r\nimport { WeekDayFlagsHelper } from 'src/app/base/shared/utils/week-day-flags.helper';\r\nimport { ParkingTariffValidityHelper } from '../../helpers/parking-tariff-validity.helper';\r\nimport { IDurationRange } from 'src/app/base/shared/time-picker-with-time-slider/time-picker-with-time-slider.component';\r\nimport { SessionTimeSlicer } from '../../helpers/from-backend/session-time-slicer';\r\nimport { YesNoGroupButtonComponent } from '../../../../base/shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { TimePickerWithTimeSliderComponent } from '../../../../base/shared/time-picker-with-time-slider/time-picker-with-time-slider.component';\r\nimport { DaySelectorComponent } from '../../../../base/shared/day-selector/day-selector.component';\r\nimport { NgIf, NgFor, NgClass } from '@angular/common';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { AppErrorMessagesComponent } from '../../../../base/error-messages/app-error-messages.component';\r\nimport { AutomaticParkingScheduleEditFormGroup } from './parking-administration-edit-form.type';\r\nimport { DaySelectorFormGroup } from 'src/app/base/shared/day-selector/day-selector-form.type';\r\nimport { TimePickerWithTimeSliderFormGroup } from 'src/app/base/shared/time-picker-with-time-slider/time-picker-with-time-slider-form.type';\r\n\r\nexport interface ExtendedTariffValidityRange extends IDurationRange {\r\n startTimeStr?: string;\r\n endTimeStr?: string;\r\n possibleParkingEndTime?: string;\r\n}\r\n\r\n@Component({\r\n selector: 'app-parking-administration-edit-form',\r\n templateUrl: './parking-administration-edit-form.component.html',\r\n styleUrls: ['./parking-administration-edit-form.component.scss'],\r\n standalone: true,\r\n imports: [\r\n ReactiveFormsModule,\r\n AppErrorMessagesComponent,\r\n DropDownListModule,\r\n NgIf,\r\n NgFor,\r\n NgClass,\r\n DaySelectorComponent,\r\n TimePickerWithTimeSliderComponent,\r\n YesNoGroupButtonComponent,\r\n TranslateModule,\r\n ],\r\n})\r\nexport class ParkingAdministrationEditFormComponent implements OnInit, AfterViewChecked, OnDestroy {\r\n\r\n @Input() public parkingForm: AutomaticParkingScheduleEditFormGroup;\r\n\r\n public clientDropdownSettings = DropDownConstantsFactory.createStandardClientDropdownSettings();\r\n public maxDuration: number;\r\n public possibleStartTimeRanges: ExtendedTariffValidityRange[] = [];\r\n public get overlappingSchedule(): AutomaticParkingScheduleDTO {\r\n if(this.parkingForm.valid) {\r\n return null;\r\n }\r\n return this.parkingForm.getError('overlappingSchedule');\r\n }\r\n\r\n public get clientDropdownValues() {\r\n return this.parkingHelper.clientDropdownValues;\r\n }\r\n\r\n public get subscriptionsDropdownValues() {\r\n return this.parkingHelper.subscriptionsDropdownValues;\r\n }\r\n\r\n public get zoneDropdownValues() {\r\n return this.parkingHelper.zoneDropdownValues;\r\n }\r\n\r\n public get parkingSpaceNumberDefinition() {\r\n return this.parkingHelper.parkingSpaceNumberDefinition;\r\n }\r\n\r\n public get controlPlateDropdownValues() {\r\n return this.parkingHelper.controlPlateDropdownValues;\r\n };\r\n\r\n public get clientSelected(): boolean {\r\n return !!this.parkingForm.controls.clientId.value;\r\n }\r\n\r\n public get zoneSelected(): boolean {\r\n return !!this.parkingForm.controls.zoneId.value;\r\n }\r\n\r\n public get isSubscriptionSelected(): boolean {\r\n return !!this.parkingForm.controls.subscriptionId.value;\r\n }\r\n\r\n public get isEdit(): boolean {\r\n return !!this.parkingForm.controls.id.value;\r\n }\r\n\r\n public get parkingProcessZoneInfoDTO(): ParkingProcessZoneInfoDTO[] {\r\n return this.parkingHelper.parkingProcessZoneInfoDTO;\r\n }\r\n\r\n public get hasPossibleStartTimeRanges(): boolean {\r\n return !!this.possibleStartTimeRanges?.length;\r\n }\r\n\r\n public get weekdaysFormGroup(): DaySelectorFormGroup {\r\n return this.parkingForm.controls.weekdays;\r\n }\r\n\r\n public get timePickerFormGroup(): UntypedFormGroup {\r\n return this.parkingForm as UntypedFormGroup;\r\n }\r\n\r\n private user: UserInfoDTO;\r\n private tariffs: ParkingProcessTariffInfoDTO[];\r\n private parkingHelper: ParkingHelper;\r\n private selectedSubcsription: ParkingProcessSubscriptionInfoDTO;\r\n\r\n private formSubscriptions: Subscription = new Subscription();\r\n private weekdayControlNames: string[];\r\n private timeGrid: ParkingTimeGrid;\r\n\r\n constructor(private authService: AuthService,\r\n private parkingService: ParkingService,\r\n private translate: TranslateService,\r\n private cdr: ChangeDetectorRef,\r\n spinnerService: SpinnerService) {\r\n this.parkingHelper = new ParkingHelper(true, this.parkingService, this.translate, spinnerService);\r\n }\r\n\r\n ngOnInit(): void {\r\n this.user = this.authService.getUserInfo();\r\n this.weekdayControlNames = Object.keys(this.parkingForm.getRawValue().weekdays);\r\n this.parkingHelper.initDropDownValuesForValidForm(this.user, this.parkingForm).subscribe(() => {\r\n this.assignFormFieldSubscriptions();\r\n });\r\n }\r\n\r\n public ngAfterViewChecked(): void {\r\n this.cdr.detectChanges();\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this.formSubscriptions?.unsubscribe();\r\n }\r\n\r\n public resetZone(event: any): void {\r\n if (event.isInteracted) {\r\n this.parkingHelper.resetZone(this.parkingForm);\r\n }\r\n }\r\n\r\n public resetSubscription(event: any): void {\r\n if (event.isInteracted) {\r\n this.parkingHelper.resetSubscription(this.parkingForm);\r\n }\r\n }\r\n\r\n public resetWeekdays(event: any): void {\r\n if (event.isInteracted) {\r\n this.parkingHelper.resetWeekdays(this.parkingForm);\r\n }\r\n }\r\n\r\n public onStartTimeChange(selectedTime: Date): void {\r\n if (selectedTime != null && this.possibleStartTimeRanges?.length) {\r\n const selectedTimeAsDateTime = DateTime.fromJSDate(selectedTime);\r\n let selectedStartTime = selectedTimeAsDateTime.diff(selectedTimeAsDateTime.startOf('day'));\r\n const pairForSelectedTime = this.possibleStartTimeRanges.find(pair => pair.startTime.toMillis() <= selectedStartTime.toMillis() &&\r\n pair.endTime.toMillis() > selectedStartTime.toMillis());\r\n if (!pairForSelectedTime) {\r\n // adjust start time\r\n const closestPairForSelectedTime = this.possibleStartTimeRanges.reduce((prev, curr) =>\r\n (Math.abs(curr.startTime.toMillis() - selectedStartTime.toMillis()) <\r\n Math.abs(prev.startTime.toMillis() - selectedStartTime.toMillis()) ? curr : prev));\r\n selectedStartTime = closestPairForSelectedTime.startTime;\r\n selectedTime = DateHelper.getDateTimeStart1970().plus(closestPairForSelectedTime.startTime).toJSDate();\r\n this.parkingForm.controls.startTime.setValue(selectedTime);\r\n this.parkingForm.controls.duration.setValue(null);\r\n }\r\n\r\n const weekDayFlags = WeekDayFlagsHelper.daysToFlag(this.parkingForm.controls.weekdays.value);\r\n if (this.timeGrid && weekDayFlags) {\r\n // calculate maxDuration\r\n let maxDuration = Number.MAX_SAFE_INTEGER;\r\n const baseStartDateTime = this.timeGrid.start.startOf('day').plus(selectedStartTime);\r\n for (let i = 0; i < 7; i++) {\r\n const startDateTime = baseStartDateTime.plus({days: i});\r\n if (!WeekDayFlagsHelper.hasFlags(weekDayFlags, WeekDayFlagsHelper.luxonWeekdayToFlag(startDateTime.weekday))) {\r\n continue;\r\n }\r\n const slicer = SessionTimeSlicer.for(this.timeGrid);\r\n const slices = slicer.slice(startDateTime, startDateTime.plus({hours: 24}));\r\n let actualMaxDuration = 0;\r\n if (slices && slices.length) {\r\n if (slices[0].offense === ParkerRegistrationOffense.NoOffense) {\r\n const start = slices[0].timeRange.startTime;\r\n let end = slices[slices.length - 1].timeRange.endTime;\r\n if (slices[slices.length - 1].offense !== ParkerRegistrationOffense.NoOffense) {\r\n end = slices[slices.length - 2].timeRange.endTime;\r\n }\r\n actualMaxDuration = end.diff(start).toMillis() / 60000;\r\n }\r\n }\r\n maxDuration = Math.min(actualMaxDuration, maxDuration);\r\n }\r\n this.maxDuration = Math.min(maxDuration, this.selectedSubcsription.maxParkingDurationInMin ?? Number.MAX_SAFE_INTEGER);\r\n }\r\n }\r\n }\r\n\r\n private assignFormFieldSubscriptions() {\r\n this.formSubscriptions?.unsubscribe();\r\n this.formSubscriptions = new Subscription();\r\n this.parkingHelper.assignFormFieldSubscriptions(this.parkingForm, this.formSubscriptions, this.user);\r\n this.formSubscriptions.add(\r\n combineLatest([\r\n this.parkingForm.controls.subscriptionId.valueChanges.pipe(\r\n startWith(this.parkingForm.controls.subscriptionId.value),\r\n filter(() => !!this.parkingForm.getRawValue().zoneId),\r\n tap(subscriptionId => {\r\n const zone = this.parkingProcessZoneInfoDTO?.find(z => z.id === this.parkingForm.getRawValue().zoneId);\r\n const selectedSubscriptionAssignment = zone?.subscriptionAssignments.find(subscription => subscription.id === subscriptionId);\r\n this.selectedSubcsription = selectedSubscriptionAssignment?.subscription;\r\n this.tariffs = this.selectedSubcsription?.tariffs\r\n ?? [];\r\n const nowUtc = DateTime.now().startOf('day').toUTC();\r\n this.timeGrid = new ParkingTimeGrid(nowUtc, nowUtc.plus({days: 7}));\r\n this.timeGrid.setup(this.tariffs, selectedSubscriptionAssignment?.validTo?.toUTC(),\r\n !this.selectedSubcsription?.denyForeignParkingSubscriptionFallback && zone?.foreignParkersAllowed ?\r\n zone?.foreignParkingSubscriptionInfos?.find(f => f.subscription.id === zone.defaultForeignParkingSubscriptionId)?.subscription?.tariffs : null);\r\n let validDaysFlag = 0;\r\n this.timeGrid.tariffValidityList.forEach(t => {\r\n // eslint-disable-next-line no-bitwise\r\n validDaysFlag = (validDaysFlag | t.getWeekDayFlagsOfValidity());\r\n });\r\n this.possibleStartTimeRanges = [];\r\n this.enableDisableWeekdayButtons(this.weekdayControlNames, validDaysFlag);\r\n }),\r\n ),\r\n this.parkingForm.controls.weekdays.valueChanges.pipe(startWith(this.parkingForm.controls.weekdays.value)),\r\n ])\r\n .pipe(\r\n distinctUntilChanged(),\r\n )\r\n .subscribe(([subscriptionId, weekdays]) => {\r\n if (this.tariffs.length) {\r\n const selectedWeekdaysFlag = WeekDayFlagsHelper.daysToFlag(this.parkingForm.controls.weekdays.value);\r\n this.possibleStartTimeRanges = [];\r\n if (!selectedWeekdaysFlag) {\r\n return;\r\n }\r\n\r\n const validities = this.timeGrid?.tariffValidityList;\r\n this.possibleStartTimeRanges = [];\r\n if (selectedWeekdaysFlag && validities) {\r\n this.possibleStartTimeRanges =\r\n ParkingTariffValidityHelper.findPossibleTariffValidityRangesMatchingForWeekDays(validities, selectedWeekdaysFlag);\r\n this.addExtendedInfo(this.possibleStartTimeRanges);\r\n }\r\n this.onStartTimeChange(this.parkingForm.controls.startTime.value);\r\n } else {\r\n this.weekdayControlNames.forEach(dayControlName => {\r\n this.parkingForm.controls.weekdays.get(dayControlName).enable({emitEvent: false});\r\n });\r\n }\r\n })\r\n );\r\n }\r\n\r\n private enableDisableWeekdayButtons(weekdayControlNames: string[], validDays: WeekDayFlags): void {\r\n weekdayControlNames.forEach((dayControlName, index) => {\r\n if (BitHelper.isBitSet(validDays, index)) {\r\n this.parkingForm.controls.weekdays.get(dayControlName).enable({emitEvent: false});\r\n } else {\r\n this.parkingForm.controls.weekdays.get(dayControlName).disable({emitEvent: false});\r\n }\r\n });\r\n }\r\n\r\n private addExtendedInfo(possibleStartTimeRanges: ExtendedTariffValidityRange[]) {\r\n const oneDayInMillis = 24 * 60 * 60 * 1000;\r\n\r\n possibleStartTimeRanges?.forEach(r => {\r\n let endTimeStr = '';\r\n let possibleParkingEndTime = '';\r\n if (r.endTime.toMillis() > oneDayInMillis) {\r\n endTimeStr = '24:00';\r\n possibleParkingEndTime = r.endTime.plus({hours: -24}).normalize().toFormat('((+1) hh:mm)');\r\n } else {\r\n endTimeStr = r.endTime?.normalize().toFormat('hh:mm');\r\n }\r\n r.startTimeStr = r.startTime?.normalize().toFormat('hh:mm');\r\n r.endTimeStr = endTimeStr;\r\n r.possibleParkingEndTime = possibleParkingEndTime;\r\n });\r\n }\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n {{zone}}\r\n
    \r\n
    \r\n \r\n \r\n {{zone}}\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n \r\n\r\n
    \r\n
    {{'i18n.domain.parking-administration.possible-time-ranges' | translate}}:
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    {{range.startTimeStr}}-{{range.endTimeStr}}{{range.possibleParkingEndTime}}
    \r\n
    \r\n
    \r\n
    \r\n \r\n {{'i18n.domain.parking-administration.no-overlapping-tariffs' | translate}}\r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n {{'i18n.domain.parking-administration.overlapping-schedule-error' | translate: {name: overlappingSchedule.name} }}\r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { Injectable } from '@angular/core';\r\nimport { ShowInactiveService } from '../../../base/shared/grid-base/show-inactive.service';\r\nimport { IAdaptorService } from '../../../base/shared/syncfusion/adaptor-service.interface';\r\nimport {\r\n AutomaticParkingScheduleClient,\r\n AutomaticParkingScheduleDTO,\r\n CreateAutomaticParkingScheduleDTO,\r\n FilterDTO,\r\n PagedResultDTOOfAutomaticParkingScheduleDTO,\r\n SortDirection,\r\n UpdateAutomaticParkingScheduleDTO,\r\n} from '../../../base/models/models.swagger.generated';\r\nimport { Observable, throwError } from 'rxjs';\r\nimport { catchError, tap } from 'rxjs/operators';\r\nimport { ErrorType } from '../../../core/routing/error-types';\r\nimport { ToastService } from '../../../base/services/toast.service';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ParkingAdministrationService extends ShowInactiveService implements IAdaptorService {\r\n public automaticParkingSchedules: AutomaticParkingScheduleDTO[] = [];\r\n\r\n constructor(private automaticParkingScheduleClient: AutomaticParkingScheduleClient,\r\n private toastService: ToastService) {\r\n super();\r\n }\r\n\r\n public getData(skip: number, take: number, filters: FilterDTO[], sortBy: string, sortDirection: SortDirection): Observable {\r\n if (!sortBy) {\r\n sortBy = 'Id';\r\n }\r\n return this.automaticParkingScheduleClient.searchAutomaticParkingSchedules(filters, skip, take, sortBy, sortDirection).pipe(\r\n tap((pagedSchedules) => {\r\n this.automaticParkingSchedules = pagedSchedules.items ?? [];\r\n })\r\n );\r\n }\r\n\r\n public addRecord(data: CreateAutomaticParkingScheduleDTO): Observable {\r\n return this.automaticParkingScheduleClient.createAutomaticParkingSchedule(data)\r\n .pipe(\r\n catchError((error: any) => {\r\n if (!this.toastService.doesErrorExistAlready(ErrorType.serverError)) {\r\n this.toastService.showApiExeption(error, 'i18n.errors.server-error.title', 'i18n.errors.server-error.message');\r\n }\r\n return throwError(() => error);\r\n }),\r\n );\r\n }\r\n\r\n public deleteRecord(id: number): Observable {\r\n return this.automaticParkingScheduleClient.deleteAutomaticParkingSchedule(id)\r\n .pipe(\r\n catchError((error: any) => {\r\n if (!this.toastService.doesErrorExistAlready(ErrorType.serverError)) {\r\n this.toastService.showError('i18n.errors.server-error.title', 'i18n.errors.server-error.message', null, ErrorType.serverError);\r\n }\r\n return throwError(() => error);\r\n }),\r\n );\r\n }\r\n\r\n public updateRecord(data: UpdateAutomaticParkingScheduleDTO): Observable {\r\n return this.automaticParkingScheduleClient.updateAutomaticParkingSchedule(data)\r\n .pipe(\r\n catchError((error: any) => {\r\n if (!this.toastService.doesErrorExistAlready(ErrorType.serverError)) {\r\n this.toastService.showApiExeption(error, 'i18n.errors.server-error.title', 'i18n.errors.server-error.message');\r\n }\r\n return throwError(() => error);\r\n }),\r\n );\r\n }\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { GridBaseComponent } from '../../../base/shared/grid-base/grid-base.component';\r\nimport { ClientService } from '../../../base/services/client/client.service';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { ParkingAdministrationService } from './parking-administration.service';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { AvpCustomAdaptor } from '../../../base/shared/syncfusion/avp-custom-adaptor';\r\nimport { SpinnerService } from '../../../base/spinner/spinner.service';\r\nimport { AbstractControl, FormBuilder, UntypedFormBuilder, ValidatorFn, Validators } from '@angular/forms';\r\nimport { CustomValidatorsFactory } from '../../../base/shared/validators/custom-validators-factory';\r\nimport {\r\n AutomaticParkingScheduleDTO,\r\n CreateAutomaticParkingScheduleDTO,\r\n UpdateAutomaticParkingScheduleDTO,\r\n WeekDayFlags,\r\n} from 'src/app/base/models/models.swagger.generated';\r\nimport { AuthService } from '../../../base/services/auth.service';\r\nimport { DateHelper } from '../../../base/shared/date-helper';\r\nimport { BitHelper } from '../../../base/shared/bit-helper';\r\nimport { WeekDayFlagsHelper } from 'src/app/base/shared/utils/week-day-flags.helper';\r\nimport { DateTime } from 'luxon';\r\nimport { ParkingAdministrationEditFormComponent } from './parking-administration-edit-form/parking-administration-edit-form.component';\r\nimport { ToolbarModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { NgIf } from '@angular/common';\r\nimport { TitleBarComponent } from '../../../base/shared/title-bar/title-bar.component';\r\nimport { AutomaticParkingScheduleEditForm } from './parking-administration-edit-form/parking-administration-edit-form.type';\r\n\r\n@Component({\r\n selector: 'app-parking-administration',\r\n templateUrl: './parking-administration.component.html',\r\n styleUrls: ['./parking-administration.component.scss'],\r\n standalone: true,\r\n imports: [TitleBarComponent, NgIf, GridModule, ToolbarModule, ParkingAdministrationEditFormComponent, TranslateModule]\r\n})\r\nexport class ParkingAdministrationComponent extends GridBaseComponent implements OnInit {\r\n public get hasLinkedParker(): boolean {\r\n return this.authService.getUserInfo()?.linkedParkers?.length > 0;\r\n }\r\n\r\n constructor(clientService: ClientService,\r\n translate: TranslateService,\r\n private authService: AuthService,\r\n private fb: FormBuilder,\r\n private parkingAdministrationService: ParkingAdministrationService,\r\n private spinnerService: SpinnerService) {\r\n super(clientService, translate, parkingAdministrationService);\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.parkingAdministrationService, this.spinnerService),\r\n });\r\n this.isActiveColumnName = 'active';\r\n this.editDialogTitle = 'i18n.domain.parking-administration.edit-dialog-title';\r\n this.addDialogTitle = 'i18n.domain.parking-administration.add-dialog-title';\r\n this.addIndexFindColumnName = 'name';\r\n }\r\n\r\n public createOverlappingSchedulesValidation(schedules: AutomaticParkingScheduleDTO[]): ValidatorFn {\r\n return (control: AbstractControl): { [key: string]: any } | null => {\r\n if(!schedules?.length) {\r\n return null;\r\n }\r\n const idToExclude = control.get('id').value;\r\n const tagId = control.get('controlPlateId').value;\r\n const parkingDuration = control.get('duration').value;\r\n const startTimeAsJsDate = control.get('startTime').value;\r\n const weekDayFlags = WeekDayFlagsHelper.daysToFlag(control.get('weekdays').value);\r\n if (!tagId || !parkingDuration || !startTimeAsJsDate || !weekDayFlags) {\r\n return null;\r\n }\r\n const starTimeAsDateTime = DateTime.fromJSDate(startTimeAsJsDate);\r\n const startTimeMillis = starTimeAsDateTime.diff(starTimeAsDateTime.startOf('day')).toMillis();\r\n const schedule = schedules.find((s) => {\r\n if (idToExclude && s.id === idToExclude || s.tag?.id !== tagId) {\r\n return false;\r\n }\r\n // eslint-disable-next-line no-bitwise\r\n if (!(weekDayFlags & s.onWeekDays)){\r\n return false;\r\n }\r\n const schedStartTimeMillis = s.parkingStartTime.toMillis();\r\n const schedEndTimeMillis = schedStartTimeMillis + s.parkingDurationInMinutes * 60000;\r\n const endTimeMillis = startTimeMillis + parkingDuration * 60000;\r\n if (schedStartTimeMillis > endTimeMillis || schedEndTimeMillis < startTimeMillis) {\r\n return false;\r\n }\r\n return true;\r\n });\r\n if (schedule) {\r\n return {overlappingSchedule: schedule};\r\n }\r\n return null;\r\n };\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData: any): any {\r\n return {name: rowData.name};\r\n }\r\n\r\n protected initializeEditForm(data: AutomaticParkingScheduleDTO): void {\r\n this.gridEditForm = this.fb.group({\r\n id: this.fb.control(data.id),\r\n isActive: this.fb.control(!!data.id ? data.isActive : true, [Validators.required]),\r\n name: this.fb.control(data.name, [Validators.required]),\r\n clientId: this.fb.control(data.client?.id, [Validators.required]),\r\n subscriptionId: this.fb.control(data.subscriptionAssignment?.id, [Validators.required]),\r\n zoneId: this.fb.control(data.zone?.id, [Validators.required]),\r\n parkingSpaceNumber: this.fb.control(data.parkingSpaceNumber),\r\n controlPlateId: this.fb.control(data.tag?.id, [Validators.required]),\r\n weekdays: this.fb.group({\r\n allowedMonday: this.fb.control(BitHelper.isBitSet(data.onWeekDays, 0)),\r\n allowedTuesday: this.fb.control(BitHelper.isBitSet(data.onWeekDays, 1)),\r\n allowedWednesday: this.fb.control(BitHelper.isBitSet(data.onWeekDays, 2)),\r\n allowedThursday: this.fb.control(BitHelper.isBitSet(data.onWeekDays, 3)),\r\n allowedFriday: this.fb.control(BitHelper.isBitSet(data.onWeekDays, 4)),\r\n allowedSaturday: this.fb.control(BitHelper.isBitSet(data.onWeekDays, 5)),\r\n allowedSunday: this.fb.control(BitHelper.isBitSet(data.onWeekDays, 6)),\r\n }, {validators: [CustomValidatorsFactory.atLeastOneFromFormGroupRequired()]}),\r\n startTime: this.fb.control(data.parkingStartTime ? DateHelper.setDateTimeTo1970FromDuration(data.parkingStartTime).toJSDate() : null, [Validators.required]),\r\n duration: this.fb.control(data.parkingDurationInMinutes, [Validators.required]),\r\n }, {validators: [this.createOverlappingSchedulesValidation(this.parkingAdministrationService.automaticParkingSchedules)]});\r\n }\r\n\r\n\r\n protected override getDataToSave(): any {\r\n const data = this.gridEditForm.getRawValue();\r\n\r\n let weekdays = 0;\r\n if (data.weekdays.allowedMonday) {\r\n weekdays += WeekDayFlags.Monday;\r\n }\r\n if (data.weekdays.allowedTuesday) {\r\n weekdays += WeekDayFlags.Tuesday;\r\n }\r\n if (data.weekdays.allowedWednesday) {\r\n weekdays += WeekDayFlags.Wednesday;\r\n }\r\n if (data.weekdays.allowedThursday) {\r\n weekdays += WeekDayFlags.Thursday;\r\n }\r\n if (data.weekdays.allowedFriday) {\r\n weekdays += WeekDayFlags.Friday;\r\n }\r\n if (data.weekdays.allowedSaturday) {\r\n weekdays += WeekDayFlags.Saturday;\r\n }\r\n if (data.weekdays.allowedSunday) {\r\n weekdays += WeekDayFlags.Sunday;\r\n }\r\n\r\n if (data.id) {\r\n return new UpdateAutomaticParkingScheduleDTO({\r\n id: data.id,\r\n name: data.name,\r\n zoneId: data.zoneId,\r\n tagId: data.controlPlateId,\r\n parkingSpaceNumber: data.parkingSpaceNumber,\r\n parkingStartTime: DateHelper.getTimeOfDayDurationFromJsDate(data.startTime),\r\n parkingDurationInMinutes: data.duration,\r\n subscriptionAssignmentId: data.subscriptionId,\r\n isActive: data.isActive,\r\n onWeekDays: weekdays,\r\n });\r\n }\r\n\r\n return new CreateAutomaticParkingScheduleDTO({\r\n name: data.name,\r\n clientId: data.clientId,\r\n zoneId: data.zoneId,\r\n subscriptionAssignmentId: data.subscriptionId,\r\n parkingSpaceNumber: data.parkingSpaceNumber,\r\n parkingStartTime: DateHelper.getTimeOfDayDurationFromJsDate(data.startTime),\r\n parkingDurationInMinutes: data.duration,\r\n tagId: data.controlPlateId,\r\n onWeekDays: weekdays,\r\n });\r\n }\r\n}\r\n","\r\n\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{formatIsActive(data, 'isActive')}}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n {{'i18n.domain.parking.noLinkedParker' | translate}}\r\n
    \r\n
    \r\n","import { Injectable } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { homeRoute, loginRoute } from '../../core/routing/route-names';\r\nimport { AuthService } from '../services/auth.service';\r\nimport { ActivationGuardBase } from './activation-guard.base';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class UserGuard extends ActivationGuardBase {\r\n constructor(private authService: AuthService, private router: Router) {\r\n super();\r\n }\r\n\r\n checkLogin(url: string): boolean {\r\n if (this.authService.isUserLoggedIn() && this.authService.isUserStandardUser()) {\r\n return true;\r\n }\r\n\r\n // Store the attempted URL for redirecting\r\n this.authService.redirectUrl = url;\r\n\r\n // Navigate to the login page with extras\r\n if (this.authService.isUserLoggedIn()) {\r\n this.router.navigate([homeRoute]);\r\n } else {\r\n this.router.navigate([loginRoute]);\r\n }\r\n return false;\r\n }\r\n\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { AuthService } from '../services/auth.service';\r\nimport { loginRoute } from '../../core/routing/route-names';\r\nimport { ActivationGuardBase } from './activation-guard.base';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ClientActiveGuard extends ActivationGuardBase {\r\n constructor(private authService: AuthService, private router: Router) {\r\n super();\r\n }\r\n\r\n checkLogin(url: string): boolean {\r\n // Admin and Standard User are not assigned to a client, so client will always be null for them\r\n if (this.authService.isUserAdmin() || this.authService.isUserStandardUser() || this.authService.getUserInfo().client?.isActive) {\r\n return true;\r\n }\r\n\r\n\r\n // Store the attempted URL for redirecting\r\n this.authService.redirectUrl = url;\r\n\r\n // Navigate to the login page with extras\r\n this.authService.logout();\r\n this.router.navigate([loginRoute], { queryParams: { error: 'client' } });\r\n return false;\r\n }\r\n}\r\n","import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { DatePickerComponent, DatePickerModule } from '@syncfusion/ej2-angular-calendars';\r\nimport { Subscription } from 'rxjs';\r\nimport { ClientDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { PaymentFormType } from './payment-form-type';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { ClientAutocompleteComponent } from '../../../../../base/shared/client-autocomplete/client-autocomplete.component';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { AuthService } from 'src/app/base/services/auth.service';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-payment-form',\r\n templateUrl: './payment-form.component.html',\r\n styleUrls: ['./payment-form.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, CommonModule, ClientAutocompleteComponent, DatePickerModule, TranslateModule]\r\n})\r\nexport class PaymentFormComponent implements OnInit, OnDestroy {\r\n\r\n @ViewChild('startTime')\r\n public startTimePicker: DatePickerComponent;\r\n\r\n @ViewChild('endTime')\r\n public endTimePicker: DatePickerComponent;\r\n\r\n @Input()\r\n public form: PaymentFormType;\r\n\r\n @Output()\r\n public searchDTOChanged = new EventEmitter();\r\n\r\n public isUserMode: boolean = this.authService.isUserStandardUser();\r\n\r\n private subscriptions = new Subscription();\r\n constructor(protected clientService: ClientService,\r\n private authService: AuthService) {\r\n }\r\n\r\n public get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public set selectedClient(value: ClientDTO) {\r\n if (this.clientService.selectedClient != value) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n }\r\n }\r\n\r\n ngOnInit(): void {\r\n this.subscriptions.add(\r\n this.form.valueChanges.subscribe(() => {\r\n if (this.endTimePicker) {\r\n if (this.form.controls.startDate.value) {\r\n this.endTimePicker.min = this.form.controls.startDate.value;\r\n } else {\r\n this.endTimePicker.min = null;\r\n }\r\n }\r\n\r\n if (this.startTimePicker) {\r\n if (this.form.controls.endDate.value) {\r\n this.startTimePicker.max = this.form.controls.endDate.value;\r\n } else {\r\n this.startTimePicker.max = null;\r\n }\r\n }\r\n\r\n this.searchDTOChanged.emit();\r\n }));\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this.subscriptions?.unsubscribe();\r\n }\r\n\r\n public onClientSelected(client: ClientDTO): void {\r\n this.searchDTOChanged.emit();\r\n }\r\n\r\n}\r\n","
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n","import { DataManager } from '@syncfusion/ej2-data';\r\nimport { Component, OnInit, ViewChild } from '@angular/core';\r\nimport { GridComponent, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { ReportsFooterComponent } from '../../../reports-footer/reports-footer.component';\r\nimport { PaymentFormType } from '../payment-form/payment-form-type';\r\nimport { DateTime } from 'luxon';\r\nimport { GridConstantsFactory } from 'src/app/base/shared/syncfusion/grid-constants-factory';\r\nimport { FormBuilder } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { PaymentReportService } from '../payment-report.service';\r\nimport { AvpCustomAdaptor } from 'src/app/base/shared/syncfusion/avp-custom-adaptor';\r\nimport { Currency, DateRangeParameterDTO, ParkingSessionPaymentState, PaymentReportParameterDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { SaveOptions } from '../../../reports-footer/save-options';\r\nimport { reportsRoute } from 'src/app/core/routing/route-names';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgIf } from '@angular/common';\r\nimport { PaymentFormComponent } from '../payment-form/payment-form.component';\r\nimport { TitleBarComponent } from '../../../../../base/shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-payment-report',\r\n templateUrl: './payment-report.component.html',\r\n styleUrls: ['./payment-report.component.scss'],\r\n standalone: true,\r\n imports: [TitleBarComponent, PaymentFormComponent, NgIf, GridModule, ReportsFooterComponent, TranslateModule]\r\n})\r\nexport class PaymentReportComponent implements OnInit {\r\n\r\n @ViewChild('grid') public grid: GridComponent;\r\n @ViewChild(ReportsFooterComponent) public footer: ReportsFooterComponent;\r\n\r\n public data: DataManager;\r\n public filterForm: PaymentFormType = this.fb.group({\r\n startDate: [DateTime.now().startOf('month').toJSDate()],\r\n endDate: [DateTime.now().endOf('month').toJSDate()],\r\n });\r\n\r\n public pageSettings = GridConstantsFactory.createStandardPageSettings();\r\n\r\n constructor(private fb: FormBuilder,\r\n private router: Router,\r\n private spinnerService: SpinnerService,\r\n private paymentReportService: PaymentReportService,\r\n private clientService: ClientService) { }\r\n\r\n ngOnInit() {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.paymentReportService, this.spinnerService),\r\n });\r\n this.searchReports();\r\n }\r\n\r\n public searchReports(): void {\r\n if (this.filterForm.controls.startDate.value && this.filterForm.controls.endDate.value) {\r\n this.paymentReportService.parameters = this.createReportParametersFromFilters();\r\n this.grid?.refresh();\r\n }\r\n }\r\n\r\n public saveReport(saveOptions: SaveOptions): void {\r\n this.spinnerService.showSpinner = true;\r\n\r\n const reportParameterDTO = this.createReportParametersFromFilters();\r\n this.paymentReportService.exportReport(reportParameterDTO, saveOptions)\r\n .subscribe(savedReportFileDTO => {\r\n this.spinnerService.showSpinner = false;\r\n if (saveOptions.saveReport) {\r\n this.router.navigate([reportsRoute]);\r\n } else {\r\n this.footer.downloadFile(savedReportFileDTO);\r\n }\r\n });\r\n }\r\n\r\n public formatCurrency(type: Currency): string {\r\n return 'i18n.shared.currencies.' + Currency[type];\r\n }\r\n\r\n public formatPaymentState(state: ParkingSessionPaymentState): string {\r\n return 'i18n.shared.parkingSessionPaymentStates.' + ParkingSessionPaymentState[state];\r\n }\r\n\r\n private createReportParametersFromFilters(): PaymentReportParameterDTO {\r\n return new PaymentReportParameterDTO({\r\n dateRange: new DateRangeParameterDTO({\r\n startDate: DateTime.fromJSDate(this.filterForm.controls.startDate.value).startOf('day').toFormat('yyyy-MM-dd'),\r\n endDate: DateTime.fromJSDate(this.filterForm.controls.endDate.value).startOf('day').toFormat('yyyy-MM-dd'),\r\n }),\r\n clientId: this.clientService.selectedClient?.id\r\n });\r\n }\r\n}\r\n","\r\n
    \r\n \r\n
    \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{formatPaymentState(data.paymentState) | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{formatCurrency(data.requestCurrency) | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n","import { ConfigBasedStructuralEntryDTO, ParkingSubscriptionDTO, ParkingTariffDTO, ZoneDTO, ZoneDeviceDTO } from \"src/app/base/models/models.swagger.generated\";\r\n\r\nexport interface DetailsInitInfo {\r\n id?: number;\r\n type: AdministrationItemType;\r\n parentId?: number; // mandatory for create\r\n parentType?: AdministrationItemType; // mandatory for create\r\n clientId?: number; // mandatory for create\r\n}\r\n\r\nexport interface ExtendedDetailsInitInfo extends DetailsInitInfo {\r\n treeNodeId?: string;\r\n itemData?: IItemData;\r\n}\r\n\r\nexport enum AdministrationItemType {\r\n ZoneCollection = 0,\r\n ZoneDeviceCollection = 1, // needs to have a value smaller than Zone\r\n ZoneDevice = 2,\r\n Tariff = 3,\r\n Zone = 4, // needs to have higher value than tariff\r\n Subscription = 5,\r\n ConfigBasedStructuralElement = 6,\r\n ConfigBasedStructuralElementCollection = 7,\r\n SubscriptionCollection = 8,\r\n TariffCollection = 9,\r\n}\r\n\r\nexport interface ParentInfo {\r\n item: ExtendedDetailsInitInfo;\r\n nodes: string[];\r\n}\r\n\r\nexport interface ItemEventInfo {\r\n id: number;\r\n type: AdministrationItemType;\r\n parentId: number;\r\n data: ZoneDTO | ZoneDeviceDTO | ParkingTariffDTO | ParkingSubscriptionDTO | ConfigBasedStructuralEntryDTO;\r\n};\r\n\r\nexport interface ICachedItem {\r\n id: number;\r\n type: AdministrationItemType;\r\n itemData: IItemData;\r\n}\r\n\r\nexport interface ITreeNodeData {\r\n id: string; // node id\r\n hasChildren: boolean;\r\n itemData: IItemData;\r\n expanded?: boolean;\r\n}\r\n\r\nexport interface IItemData {\r\n type: AdministrationItemType;\r\n name: string;\r\n inactive: boolean;\r\n dto: any;\r\n isHighlighted?: boolean;\r\n}\r\n\r\nexport interface IExtendedTreeNodeData extends ITreeNodeData {\r\n parentId: string;\r\n child: IExtendedTreeNodeData[];\r\n}\r\n","import { AdministrationItemType } from \"./data-structures\";\r\n\r\nexport class ItemTypeUtil {\r\n static getIconClassByType(type: AdministrationItemType): string {\r\n switch(type) {\r\n case AdministrationItemType.Zone: return 'icon-location';\r\n case AdministrationItemType.ZoneDevice: return 'icon-chip';\r\n case AdministrationItemType.Tariff: return 'icon-currency';\r\n case AdministrationItemType.Subscription: return 'icon-ticket';\r\n case AdministrationItemType.ConfigBasedStructuralElementCollection: return 'icon-folder';\r\n case AdministrationItemType.ConfigBasedStructuralElement: return 'icon-folder';\r\n default: return null;\r\n }\r\n }\r\n}\r\n","export interface IIconTextCodes {\r\n folderIcon: string;\r\n tariffIcon: string;\r\n subscriptionIcon: string;\r\n zoneIcon: string;\r\n deviceIcon: string;\r\n}\r\n\r\n// how to: search for the icon in _icons_ibm.scss and transform the hex value under 'content' to a decimal value => '&#'\r\nexport const iconTextCodes = {\r\n folderIcon: '', // .icon-folder\r\n tariffIcon: '', // .icon-currency\r\n subscriptionIcon: '', // .icon-ticket\r\n zoneIcon: '', // .icon-location\r\n deviceIcon: '', // .icon-chip\r\n qrCodeIcon: '' // .icon-qr-code\r\n};\r\n","import { Component, EventEmitter, Input, Output, ViewChild } from \"@angular/core\";\r\nimport { AdministrationItemType, DetailsInitInfo, ExtendedDetailsInitInfo, IExtendedTreeNodeData, IItemData, ITreeNodeData, ItemEventInfo, ParentInfo } from \"../data-structures\";\r\nimport { DragAndDropEventArgs, NodeSelectEventArgs, TreeViewComponent } from \"@syncfusion/ej2-angular-navigations\";\r\nimport { ClientService } from \"src/app/base/services/client/client.service\";\r\nimport { ItemTypeUtil } from \"../item-type.util\";\r\nimport { iconTextCodes } from \"./icon-text-codes\";\r\nimport { ZoneDTO } from \"src/app/base/models/models.swagger.generated\";\r\nimport { Observable, map, merge, of } from \"rxjs\";\r\nimport { ModalService } from \"src/app/base/shared/modal/modal.service\";\r\n\r\n@Component({ template: '' })\r\nexport abstract class TreeViewBaseComponent {\r\n @Input() public hasPendingDetailChanges: boolean = false;\r\n @Output() public itemSelected = new EventEmitter();\r\n\r\n @ViewChild('tree') public tree: TreeViewComponent;\r\n\r\n public iconTextCodes = iconTextCodes;\r\n\r\n protected selectedItem: ExtendedDetailsInitInfo = null;\r\n protected parentInfo: ParentInfo = null;\r\n protected isSupportingCopyMode = true;\r\n protected isSupportingMoveMode = true;\r\n\r\n constructor(\r\n protected clientService: ClientService,\r\n protected modalService: ModalService) { }\r\n\r\n public getIconClassByType(type: AdministrationItemType): string {\r\n return ItemTypeUtil.getIconClassByType(type);\r\n }\r\n\r\n public hasIcon(type: AdministrationItemType): boolean {\r\n return !!ItemTypeUtil.getIconClassByType(type);\r\n }\r\n\r\n public reset() {\r\n this.tree.refresh();\r\n this.resetSelection();\r\n }\r\n\r\n public resetSelection(): void {\r\n this.setSelectedItem(null);\r\n this.tree.selectedNodes = [];\r\n }\r\n\r\n public onCollapseAll(): void {\r\n this.canDeactivate().subscribe((canDeactivate) => {\r\n if (!canDeactivate) {\r\n return;\r\n }\r\n this.tree.collapseAll();\r\n this.resetSelection();\r\n });\r\n }\r\n\r\n public onNodeSelected(args: NodeSelectEventArgs): void {\r\n this.canDeactivate().subscribe((canDeactivate) => {\r\n if (canDeactivate) {\r\n this.parentInfo = null;\r\n let newSelectedItem: ExtendedDetailsInitInfo = null;\r\n if (args.nodeData && args.action === 'select') {\r\n newSelectedItem = this.parseNodeId(args.nodeData.id as string) as DetailsInitInfo;\r\n newSelectedItem.clientId = this.clientService.selectedClient?.id;\r\n newSelectedItem.itemData = this.tree.getTreeData(args.nodeData.id as string)?.at(0)?.itemData as IItemData;\r\n newSelectedItem.treeNodeId = args.nodeData.id as string;\r\n if (args.nodeData.parentID) {\r\n const parentData = this.parseNodeId(args.nodeData.parentID as string);\r\n newSelectedItem.parentId = parentData.id;\r\n newSelectedItem.parentType = parentData.type;\r\n } else {\r\n newSelectedItem.parentId = null;\r\n newSelectedItem.parentType = null;\r\n }\r\n }\r\n this.setSelectedItem(newSelectedItem);\r\n } else {\r\n this.tree.selectedNodes = [this.selectedItem.treeNodeId];\r\n }\r\n });\r\n }\r\n\r\n public onNodeDragStop(args: DragAndDropEventArgs): void {\r\n // somehow on nodeDragStop the position is not delivered as inside, but as before or after\r\n if ((args.position != \"Inside\" && args.position != \"After\") || args.dropIndicator == \"e-no-drop\" || args.draggedNodeData.id === args.droppedNodeData.id) {\r\n args.cancel = true;\r\n return;\r\n }\r\n if (!this.canDropNode(args)) {\r\n args.cancel = true;\r\n }\r\n }\r\n\r\n public onNodeDragging(args: DragAndDropEventArgs) {\r\n const isCopyMode = this.isCopyMode(args);\r\n if (args.position != \"Inside\") {\r\n args.dropIndicator = 'e-no-drop';\r\n return;\r\n }\r\n if (!this.canDropNode(args)) {\r\n args.dropIndicator = 'e-no-drop';\r\n return;\r\n }\r\n\r\n if (!isCopyMode) {\r\n args.dropIndicator = 'e-sorting-3';\r\n }\r\n }\r\n\r\n public abstract onNodeDragStart(args: DragAndDropEventArgs);\r\n\r\n protected abstract parseNodeId(nodeId: string): DetailsInitInfo;\r\n protected abstract canDropNode(args: DragAndDropEventArgs): boolean;\r\n\r\n protected moveNode(nodeId: string, parentId: string): void {\r\n const nodeData = this.tree.getTreeData(nodeId)?.at(0) as any as ITreeNodeData;\r\n const parentNodeData = this.tree.getTreeData(parentId)?.at(0);\r\n const childNodes = parentNodeData?.child as ITreeNodeData[];\r\n if (parentNodeData.hasChildren && !parentNodeData.expanded && (!childNodes || childNodes.length === 0)) {\r\n this.tree.removeNodes([nodeId]);\r\n this.tree.expandAll([parentId]);\r\n return;\r\n }\r\n\r\n const nodeExists = !!childNodes?.find((node) => node.itemData.type === nodeData.itemData.type && node.itemData.dto.id === nodeData.itemData.dto.id);\r\n if (nodeExists) {\r\n // remove on old branch\r\n this.tree.removeNodes([nodeId]);\r\n return;\r\n }\r\n\r\n const index = this.getInsertPositionIndex(nodeData, parentNodeData?.child as ITreeNodeData[]);\r\n this.tree.moveNodes([nodeId], parentId, index);\r\n }\r\n\r\n protected canDeactivate(): Observable {\r\n if (this.selectedItem && this.hasPendingDetailChanges) {\r\n const dialog = this.modalService.showOkCancelDialog('i18n.errors.discard-dialog.title', 'i18n.errors.discard-dialog.question');\r\n return merge(\r\n dialog.onOkSubject.pipe(map(() => true)),\r\n dialog.onCancelSubject.pipe(map(() => false)),\r\n );\r\n }\r\n return of(true);\r\n }\r\n\r\n protected handleAddNodeEvent(eventInfo: ItemEventInfo, nodeId: string): ITreeNodeData {\r\n const parentNodeData = this.tree.getTreeData(this.parentInfo.nodes[0])?.at(0);\r\n if (!parentNodeData) {\r\n return null;\r\n }\r\n\r\n if (parentNodeData.hasChildren && !parentNodeData.child && (parentNodeData.itemData as IItemData).type !== AdministrationItemType.ConfigBasedStructuralElementCollection\r\n && (parentNodeData.itemData as IItemData).type !== AdministrationItemType.ZoneCollection) {\r\n const selectedNode = this.tree.selectedNodes?.at(0);\r\n if (selectedNode && this.parentInfo.nodes[0] === selectedNode) {\r\n this.setSelectedItem(this.parentInfo.item);\r\n this.parentInfo = null;\r\n }\r\n this.tree.expandAll([parentNodeData.id as string]);\r\n return null;\r\n }\r\n\r\n const createdItem: ITreeNodeData = {\r\n id: nodeId,\r\n hasChildren: this.hasChildrenByDefault(eventInfo),\r\n itemData: {\r\n type: eventInfo.type,\r\n inactive: (eventInfo.data as any)?.active != null ? !(eventInfo.data as any).active : false,\r\n name: eventInfo.data.name,\r\n dto: eventInfo.data,\r\n }\r\n }\r\n\r\n this.addNodeAtProperPosition(createdItem, parentNodeData);\r\n\r\n const selectedNode = this.tree.selectedNodes?.at(0);\r\n if (selectedNode && this.parentInfo.nodes[0] === selectedNode) {\r\n this.setSelectedItem(this.parentInfo.item);\r\n this.parentInfo = null;\r\n }\r\n return createdItem;\r\n }\r\n\r\n protected addNodeAtProperPositionByParentNodeId(node: ITreeNodeData, parentNodeId: string): void {\r\n const parentNode = this.tree.getTreeData(parentNodeId)?.at(0);\r\n if (!parentNode) {\r\n return;\r\n }\r\n\r\n const childNodes = parentNode?.child as ITreeNodeData[];\r\n if (parentNode.hasChildren && !parentNode.expanded && (!childNodes || childNodes.length === 0)) {\r\n this.tree.expandAll([parentNodeId]);\r\n return;\r\n }\r\n this.addNodeAtProperPosition(node, parentNode);\r\n }\r\n\r\n protected addNodeAtProperPosition(node: ITreeNodeData, parentNode: {[key: string]: Object;}): void {\r\n // find proper index where to add new node\r\n const index = this.getInsertPositionIndex(node, parentNode?.child as ITreeNodeData[]);\r\n // working directly on tree data does not work -> so we have to add node and then fix for shared data\r\n this.tree.addNodes([node as any], parentNode.id as string, index);\r\n\r\n // add node data fix -> since this.tree.addNodes makes a deep copy of the node we need to reapply shared data\r\n setTimeout(() => {\r\n const nodeData = this.tree.getTreeData(node.id)?.at(0);\r\n if (nodeData) {\r\n nodeData.itemData = node.itemData;\r\n }\r\n }, 0);\r\n }\r\n\r\n protected getInsertPositionIndex(node: ITreeNodeData, children: ITreeNodeData[]): number {\r\n const childCount = children?.length ?? 0;\r\n let i = 0;\r\n for (i = 0; i < childCount; i++) {\r\n const child = children[i];\r\n const compareResult = this.itemDataCompare(node.itemData, child.itemData);\r\n if (compareResult < 0) {\r\n break;\r\n }\r\n }\r\n return i;\r\n }\r\n\r\n protected hasChildrenByDefault(eventInfo: ItemEventInfo): boolean {\r\n if (eventInfo.type === AdministrationItemType.Zone && !(eventInfo.data as ZoneDTO).isGroupingElement) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n protected itemDataCompare(a: IItemData, b: IItemData): number {\r\n if (a.type !== b.type) {\r\n // Zone item is the only item with different type enum value as children\r\n return a.type - b.type; // works only as long as acutal type enum values are kept the same\r\n }\r\n return a.name.localeCompare(b.name);\r\n }\r\n\r\n protected handleRemoveNodeEvent(eventInfo: ItemEventInfo): void {\r\n const nodesToDelete = this.findAllNodesOfTree(eventInfo.id, eventInfo.type);\r\n nodesToDelete.forEach((node) => {\r\n // as of today (2021-03-10) there is a bug in treeView, that it does not remove node from selectedNodes when passing all nodes at once\r\n this.tree.removeNodes([node.id]);\r\n });\r\n this.setSelectedItem(null);\r\n this.tree.selectedNodes = [];\r\n }\r\n\r\n protected handleUpdateNodeEvent(eventInfo: ItemEventInfo): void {\r\n if (this.selectedItem?.id !== eventInfo?.id) {\r\n return;\r\n }\r\n const data = this.tree.getTreeData(this.selectedItem.treeNodeId);\r\n if (data && data.length > 0) {\r\n const itemData = data[0].itemData as IItemData;\r\n itemData.name = eventInfo.data.name;\r\n itemData.dto = eventInfo.data;\r\n itemData.inactive = this.isItemInactive(eventInfo);\r\n }\r\n this.updateCanAddXyFlags();\r\n }\r\n\r\n protected abstract isItemInactive(eventInfo: ItemEventInfo): boolean;\r\n protected abstract updateCanAddXyFlags(): void;\r\n\r\n protected onAddNewItem(type: AdministrationItemType) {\r\n this.parentInfo = { item: this.selectedItem, nodes: this.tree.selectedNodes };\r\n this.setSelectedItem({ id: 0, type, parentId: this.parentInfo.item.id, parentType: this.parentInfo.item.type, clientId: this.clientService.selectedClient?.id });\r\n }\r\n\r\n protected setSelectedItem(item: ExtendedDetailsInitInfo) {\r\n if (this.selectedItem?.itemData) {\r\n this.selectedItem.itemData.isHighlighted = false;\r\n }\r\n this.selectedItem = item;\r\n if (this.selectedItem?.itemData) {\r\n // highlights all items with same shared data\r\n this.selectedItem.itemData.isHighlighted = true;\r\n }\r\n this.updateCanAddXyFlags();\r\n if (this.selectedItem) {\r\n this.itemSelected.emit({id: item.id, type: item.type, parentId: item.parentId, parentType: item.parentType, clientId: item.clientId});\r\n } else {\r\n this.itemSelected.emit(null);\r\n }\r\n }\r\n\r\n protected findAllNodesOfTree(id: number, type: AdministrationItemType): IExtendedTreeNodeData[] {\r\n const nodes: IExtendedTreeNodeData[] = [];\r\n const rootNodes = this.tree.getTreeData();\r\n rootNodes.forEach((node) => {\r\n this.findTopNodes(node as any, id, type, nodes);\r\n });\r\n return nodes;\r\n }\r\n\r\n protected findTopNodes(node: IExtendedTreeNodeData, itemId: number, type: AdministrationItemType, matchingNodes: IExtendedTreeNodeData[]) {\r\n if (node.itemData.dto?.id === itemId && node.itemData.type === type) {\r\n matchingNodes.push(node);\r\n return;\r\n }\r\n (node as any).child?.map((child: any) => {\r\n // child nodes do not have parentId, so we have to add it\r\n this.findTopNodes({...child, parentId: node.id}, itemId, type, matchingNodes);\r\n });\r\n }\r\n\r\n protected isCopyMode(args: DragAndDropEventArgs): boolean {\r\n if (!this.isSupportingMoveMode) {\r\n return this.isSupportingCopyMode;\r\n }\r\n return (this.isSupportingCopyMode && (args.event.altKey || args.event.ctrlKey || args.event.shiftKey));\r\n }\r\n\r\n protected setMoveIndicator(args: DragAndDropEventArgs) {\r\n args.dropIndicator = 'e-sorting-3';\r\n }\r\n}\r\n","import { GeneratedQrCodesDTO } from './../../../../../base/models/models.swagger.generated';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { Injectable } from '@angular/core';\r\nimport { ZoneClient, ZoneQrCodeInfosDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { Observable, catchError, of, tap } from 'rxjs';\r\nimport { ToastService } from 'src/app/base/services/toast.service';\r\nimport { ErrorType } from 'src/app/core/routing/error-types';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class GenerateQrCodeDetailsService {\r\n\r\n constructor(private zoneClient: ZoneClient,\r\n private spinnerService: SpinnerService,\r\n private toastService: ToastService) { }\r\n\r\n public generateQrCode(zoneId: number, isStickerMode: boolean, parkingSpaceNumberDefinition: string): Observable {\r\n this.spinnerService.showSpinner = true;\r\n var qrCodeDto = new ZoneQrCodeInfosDTO({\r\n zoneId: zoneId,\r\n isStickerMode: isStickerMode,\r\n parkingSpaceNumbers: parkingSpaceNumberDefinition\r\n });\r\n return this.zoneClient.generateQrCode(qrCodeDto)\r\n .pipe(\r\n tap(() => {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showSuccess(\r\n 'i18n.domain.administration.generate-qr-code-dialog.success-title',\r\n 'i18n.domain.administration.generate-qr-code-dialog.success-description'\r\n );\r\n }),\r\n catchError((error: any) => {\r\n this.spinnerService.showSpinner = false;\r\n if (!this.toastService.doesErrorExistAlready(ErrorType.serverError)) {\r\n this.toastService.showError('i18n.errors.server-error.title', 'i18n.errors.server-error.message', null, ErrorType.serverError);\r\n }\r\n return of(error);\r\n })\r\n );\r\n }\r\n}\r\n","import { Component, ViewChild } from '@angular/core';\r\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\r\nimport { DialogComponent, DialogModule, TooltipModule } from '@syncfusion/ej2-angular-popups';\r\nimport { GeneratedQrCodesDTO, ZoneDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { GenerateQrCodeDetailsService } from './generate-qr-code-details.service';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgIf } from '@angular/common';\r\nimport { YesNoGroupButtonComponent } from '../../../../../base/shared/yes-no-group-button/yes-no-group-button.component';\r\n\r\n@Component({\r\n selector: 'app-generate-qr-code-details',\r\n templateUrl: './generate-qr-code-details.component.html',\r\n styleUrls: ['./generate-qr-code-details.component.scss'],\r\n standalone: true,\r\n imports: [DialogModule, YesNoGroupButtonComponent, ReactiveFormsModule, NgIf, TooltipModule, TranslateModule]\r\n})\r\nexport class GenerateQrCodeDetailsComponent {\r\n @ViewChild('generateQrCodeDialog') public generateQrCodeDialog: DialogComponent;\r\n\r\n public zone: ZoneDTO;\r\n public isStickerModeControl: FormControl = new FormControl(true);\r\n public parkingSpaceNumberControl: FormControl = new FormControl(\"\");\r\n\r\n constructor(\r\n private qrService: GenerateQrCodeDetailsService,\r\n ) { }\r\n\r\n public openDialog(zone: ZoneDTO) {\r\n this.zone = zone;\r\n this.generateQrCodeDialog.show();\r\n }\r\n\r\n public closeDialog() {\r\n this.generateQrCodeDialog.hide();\r\n this.zone = null;\r\n this.isStickerModeControl.setValue(true);\r\n this.parkingSpaceNumberControl.setValue(\"\");\r\n }\r\n\r\n public generateQrCode() {\r\n this.qrService.generateQrCode(this.zone.id, this.isStickerModeControl.value, this.parkingSpaceNumberControl.value).subscribe(dto => {\r\n const link = this.createInvisibleDownloadLink(dto);\r\n link.click();\r\n this.closeDialog();\r\n });\r\n }\r\n\r\n private createInvisibleDownloadLink(generatedQrCodesDTO: GeneratedQrCodesDTO) {\r\n const source = `data:application/octet-stream;base64,${generatedQrCodesDTO.contentBase64}`;\r\n const link = document.createElement('a');\r\n link.href = source;\r\n link.download = `${generatedQrCodesDTO.zipName}`;\r\n return link;\r\n }\r\n\r\n}\r\n","\r\n \r\n {{'i18n.domain.administration.generate-qr-code-dialog.title' | translate}} {{zone?.name}}\r\n \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n","import { AdministrationItemType } from \"./data-structures\";\r\n\r\nexport class ItemIdUtil {\r\n public static createItemId(id: number, type: AdministrationItemType, uniqueIdent: number): string {\r\n // JSON.stringify({id, type}) does not work with treeView\r\n return (id?.toString() ?? '') + '_' + type.toString() + '_' + (uniqueIdent?.toString() ?? '');\r\n }\r\n\r\n public static parseItemId(itemId: string): {id: number, type: AdministrationItemType} {\r\n const parts = itemId.split('_');\r\n return {id: parts[0] ? +parts[0] : null, type: +parts[1] };\r\n }\r\n}\r\n","import { AdministrationItemType, ICachedItem, IItemData } from \"../data-structures\";\r\n\r\nexport class ItemCache {\r\n private cachedItems: ICachedItem[] = [];\r\n private typesExcludedFromCache: AdministrationItemType[] = [];\r\n constructor(typesExcludedFromCache: AdministrationItemType[]) {\r\n if (typesExcludedFromCache) {\r\n this.typesExcludedFromCache = typesExcludedFromCache;\r\n }\r\n }\r\n\r\n public getCachedItem(id: number, type: AdministrationItemType): ICachedItem {\r\n return this.cachedItems.find((cachedItem) => cachedItem.id === id && cachedItem.type === type);\r\n }\r\n\r\n public addOrUpdateItem(itemData: IItemData): ICachedItem {\r\n const type = itemData?.type;\r\n const id = itemData?.dto?.id;\r\n if (!type || !id) {\r\n console.error(\"ItemCache.addOrUpdateItem: invalid itemData\", itemData);\r\n }\r\n\r\n if (this.typesExcludedFromCache.includes(type)) {\r\n return null;\r\n }\r\n\r\n let cachedItem = this.getCachedItem(id, type);\r\n if (cachedItem) {\r\n Object.assign(cachedItem.itemData, itemData);\r\n } else {\r\n cachedItem = {id, type, itemData};\r\n this.cachedItems.push(cachedItem);\r\n }\r\n return cachedItem;\r\n }\r\n\r\n public removeItem(id: number, type: AdministrationItemType) {\r\n if (this.typesExcludedFromCache.includes(type)) {\r\n return null;\r\n }\r\n\r\n const cachedItems = this.cachedItems.filter((cachedItem) => !(cachedItem.id === id && cachedItem.type === type));\r\n this.cachedItems = cachedItems;\r\n }\r\n\r\n public resetCache() {\r\n this.cachedItems = [];\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable, catchError, forkJoin, map, of, tap } from 'rxjs';\r\nimport { FilterDTO, FilterOperator, ParkingSubscriptionClient, ParkingSubscriptionDTO, ParkingTariffClient, ParkingTariffDTO, SortDirection, ZoneClient, ZoneDTO, ZoneDeviceClient } from 'src/app/base/models/models.swagger.generated';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { ToastService } from 'src/app/base/services/toast.service';\r\nimport { IAdaptorService } from 'src/app/base/shared/syncfusion/adaptor-service.interface';\r\nimport { IPagedItems } from 'src/app/base/shared/syncfusion/paged-items.interface';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { ItemIdUtil } from '../../item-id.util';\r\nimport { AdministrationItemType, DetailsInitInfo, IItemData, ITreeNodeData } from '../../data-structures';\r\nimport { ErrorType } from 'src/app/core/routing/error-types';\r\nimport { ItemCache } from '../item-cache';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class TreeViewZoneBasedService implements IAdaptorService {\r\n\r\n public itemCache = new ItemCache([AdministrationItemType.SubscriptionCollection, AdministrationItemType.ZoneCollection, AdministrationItemType.ZoneDeviceCollection, AdministrationItemType.ZoneDevice]);\r\n\r\n private nodeIdCnt = 0;\r\n\r\n constructor(\r\n private zoneClient: ZoneClient,\r\n private clientService: ClientService,\r\n private tariffClient: ParkingTariffClient,\r\n private zoneDeviceClient: ZoneDeviceClient,\r\n private parkingSubscriptionClient: ParkingSubscriptionClient,\r\n private spinnerService: SpinnerService,\r\n private toastService: ToastService) {}\r\n\r\n public getData(skip: number, take: number, filters: FilterDTO[], sortBy: string, sortDirection: SortDirection): Observable {\r\n const clientId = this.clientService.selectedClient?.id;\r\n let parentType = null;\r\n let parentId: number = null;\r\n if (!filters) {\r\n this.itemCache.resetCache();\r\n filters = [];\r\n filters.push(new FilterDTO({\r\n isComplex: false,\r\n field: 'ParentId',\r\n operator: FilterOperator.IsNull,\r\n }));\r\n } else {\r\n const parentIdfilter = filters.find((filter) => filter.field === 'ParentId');\r\n if (parentIdfilter) {\r\n const parsedData = this.parseNodeId(parentIdfilter.value);\r\n parentIdfilter.value = parsedData.id?.toString();\r\n parentId = parsedData.id;\r\n if (parentIdfilter.value == null) {\r\n parentIdfilter.operator = FilterOperator.IsNull;\r\n this.itemCache.resetCache();\r\n }\r\n parentType = parsedData.type;\r\n }\r\n }\r\n if (parentType == null) {\r\n const mappedItems: IPagedItems = {items: [], totalNumberOfItems: 1};\r\n let id = this.getNextNodeId(null, AdministrationItemType.ZoneCollection);\r\n mappedItems.items.push({\r\n id,\r\n hasChildren: true,\r\n parentId: null,\r\n expanded: true,\r\n itemData: {\r\n type: AdministrationItemType.ZoneCollection,\r\n name: 'i18n.domain.administration.overview.zones',\r\n inactive: false,\r\n dto: null,\r\n }\r\n });\r\n id = this.getNextNodeId(null, AdministrationItemType.SubscriptionCollection);\r\n mappedItems.items.push({\r\n id,\r\n hasChildren: true,\r\n parentId: null,\r\n expanded: true,\r\n itemData: {\r\n type: AdministrationItemType.SubscriptionCollection,\r\n name: 'i18n.domain.administration.overview.unassigned-subscriptions',\r\n inactive: false,\r\n dto: null,\r\n }\r\n });\r\n id = this.getNextNodeId(null, AdministrationItemType.TariffCollection);\r\n mappedItems.items.push({\r\n id,\r\n hasChildren: true,\r\n parentId: null,\r\n expanded: true,\r\n itemData: {\r\n type: AdministrationItemType.TariffCollection,\r\n name: 'i18n.domain.administration.overview.unassigned-tariffs',\r\n inactive: false,\r\n dto: null,\r\n }\r\n });\r\n return of(mappedItems);\r\n }\r\n if (parentType == AdministrationItemType.ZoneCollection) {\r\n return this.zoneClient.searchZones(clientId, filters, 0, 0, 'name', SortDirection.Ascending).pipe(\r\n map((pagedItems) => {\r\n const mappedItems: IPagedItems = {items: [], totalNumberOfItems: pagedItems.totalNumberOfItems};\r\n pagedItems.items.forEach((item) => {\r\n const mappedItem: ITreeNodeData = {\r\n id: this.getNextNodeId(item.id, AdministrationItemType.Zone),\r\n hasChildren: item.hasChildZones || item.assignedTariffs?.length > 0 || !item.isGroupingElement,\r\n itemData: {\r\n type: AdministrationItemType.Zone,\r\n name: item.name,\r\n inactive: false,\r\n dto: item\r\n }\r\n }\r\n mappedItems.items.push(mappedItem);\r\n this.itemCache.addOrUpdateItem(mappedItem.itemData);\r\n });\r\n return mappedItems;\r\n })\r\n );\r\n }\r\n if (parentType == AdministrationItemType.Zone) {\r\n const zoneInfo = this.itemCache.getCachedItem(parentId, AdministrationItemType.Zone)?.itemData?.dto as ZoneDTO;\r\n let tariffObservable = this.tariffClient.getParkingTariffsForZone(parentId).pipe(\r\n map((tariffs) => {\r\n const items = [];\r\n tariffs.forEach((item) => {\r\n let itemData: IItemData = {\r\n type: AdministrationItemType.Tariff,\r\n name: item.name,\r\n inactive: !item.active,\r\n dto: item\r\n };\r\n // the same tariff can be assigned to different zones and therefore its data has to be shared in the tree.\r\n itemData = this.itemCache.addOrUpdateItem(itemData).itemData;\r\n const mappedItem: ITreeNodeData = {\r\n id: this.getNextNodeId(item.id, AdministrationItemType.Tariff),\r\n hasChildren: item.subscriptionId > 0,\r\n itemData\r\n }\r\n items.push(mappedItem);\r\n });\r\n return items;\r\n }\r\n ));\r\n let zoneObservable = this.zoneClient.searchZones(clientId, filters, 0, 0, 'name', SortDirection.Ascending).pipe(\r\n map((pagedItems) => {\r\n const items = [];\r\n pagedItems.items.forEach((item) => {\r\n const mappedItem: ITreeNodeData = {\r\n id: this.getNextNodeId(item.id, AdministrationItemType.Zone),\r\n hasChildren: item.hasChildZones || item.assignedTariffs?.length > 0 || !item.isGroupingElement,\r\n itemData: {\r\n type: AdministrationItemType.Zone,\r\n name: item.name,\r\n inactive: false,\r\n dto: item\r\n }\r\n }\r\n items.push(mappedItem);\r\n this.itemCache.addOrUpdateItem(mappedItem.itemData);\r\n });\r\n return items;\r\n })\r\n );\r\n\r\n let deviceObservable = of([]);\r\n if (zoneInfo && !zoneInfo.isGroupingElement) {\r\n let deviceCollectionItems = [];\r\n deviceCollectionItems.push({\r\n id: this.getNextNodeId(parentId, AdministrationItemType.ZoneDeviceCollection),\r\n hasChildren: zoneInfo.hasDevicesAssigned,\r\n itemData: {\r\n type: AdministrationItemType.ZoneDeviceCollection,\r\n name: 'i18n.domain.administration.overview.devices',\r\n inactive: false,\r\n dto: null\r\n }\r\n });\r\n deviceObservable = of(deviceCollectionItems);\r\n }\r\n\r\n // first device folder is added then zones and then tariffs -> so keep an eye on the correct order\r\n return forkJoin([deviceObservable, tariffObservable, zoneObservable]).pipe(\r\n map(input => {\r\n const mappedItems: IPagedItems = {items: [].concat(...input), totalNumberOfItems: 1};\r\n return mappedItems;\r\n })\r\n );\r\n }\r\n if (parentType == AdministrationItemType.ZoneDeviceCollection) {\r\n filters = [new FilterDTO({\r\n isComplex: false,\r\n field: 'ZoneId',\r\n operator: FilterOperator.Equal,\r\n value: parentId?.toString()\r\n })];\r\n return this.zoneDeviceClient.searchDevices(clientId, filters, 0, 0, 'name', SortDirection.Ascending).pipe(\r\n map((pagedItems) => {\r\n const mappedItems: IPagedItems = {items: [], totalNumberOfItems: pagedItems.totalNumberOfItems};\r\n pagedItems.items.forEach((item) => {\r\n const mappedItem: ITreeNodeData = {\r\n id: this.getNextNodeId(item.id, AdministrationItemType.ZoneDevice),\r\n hasChildren: false,\r\n itemData: {\r\n type: AdministrationItemType.ZoneDevice,\r\n name: item.name,\r\n inactive: !item.enabled,\r\n dto: item\r\n }\r\n }\r\n mappedItems.items.push(mappedItem);\r\n this.itemCache.addOrUpdateItem(mappedItem.itemData);\r\n });\r\n return mappedItems;\r\n })\r\n );\r\n }\r\n if (parentType == AdministrationItemType.Tariff) {\r\n const tariffInfo = this.itemCache.getCachedItem(parentId, AdministrationItemType.Tariff)?.itemData?.dto as ParkingTariffDTO;\r\n if (!tariffInfo?.subscriptionId) {\r\n return of({items: [], totalNumberOfItems: 0});\r\n }\r\n return this.parkingSubscriptionClient.getParkingSubscription(tariffInfo.subscriptionId).pipe(\r\n map((subscription) => {\r\n const mappedItems: IPagedItems = {items: [], totalNumberOfItems: 1};\r\n let itemData: IItemData = {\r\n type: AdministrationItemType.Subscription,\r\n name: subscription.name,\r\n inactive: !subscription.active,\r\n dto: subscription\r\n };\r\n // the same subscription can be assigned to different tariffs and therefore its data has to be shared in the tree.\r\n itemData = this.itemCache.addOrUpdateItem(itemData).itemData;\r\n const mappedItem: ITreeNodeData = {\r\n id: this.getNextNodeId(subscription.id, AdministrationItemType.Subscription),\r\n hasChildren: false,\r\n itemData\r\n }\r\n mappedItems.items.push(mappedItem);\r\n return mappedItems;\r\n })\r\n );\r\n }\r\n if (parentType == AdministrationItemType.TariffCollection) {\r\n const tariffFilter = [\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'ParkingTariffZoneAssignments',\r\n operator: FilterOperator.None,\r\n })\r\n ];\r\n return this.tariffClient.searchParkingTariffs(clientId, tariffFilter, 0, 0, 'name', SortDirection.Ascending, true).pipe(map((pagedItems) => {\r\n const mappedItems: IPagedItems = {items: [], totalNumberOfItems: pagedItems.totalNumberOfItems};\r\n pagedItems.items.forEach((item) => {\r\n const mappedItem: ITreeNodeData = {\r\n id: this.getNextNodeId(item.id, AdministrationItemType.Tariff),\r\n hasChildren: item.subscriptionId > 0,\r\n itemData: {\r\n type: AdministrationItemType.Tariff,\r\n name: item.name,\r\n inactive: !item.active,\r\n dto: item\r\n }\r\n }\r\n mappedItems.items.push(mappedItem);\r\n this.itemCache.addOrUpdateItem(mappedItem.itemData);\r\n });\r\n return mappedItems;\r\n })\r\n );\r\n }\r\n if (parentType == AdministrationItemType.SubscriptionCollection) {\r\n const subscriptionFilter = [\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'Tariffs',\r\n operator: FilterOperator.None,\r\n })\r\n ];\r\n return this.parkingSubscriptionClient.searchParkingSubscriptions(clientId, subscriptionFilter, 0, 0, 'name', SortDirection.Ascending).pipe(map((pagedItems) => {\r\n const mappedItems: IPagedItems = {items: [], totalNumberOfItems: pagedItems.totalNumberOfItems};\r\n pagedItems.items.forEach((item) => {\r\n const mappedItem: ITreeNodeData = {\r\n id: this.getNextNodeId(item.id, AdministrationItemType.Subscription),\r\n hasChildren: false,\r\n itemData: {\r\n type: AdministrationItemType.Subscription,\r\n name: item.name,\r\n inactive: !item.active,\r\n dto: item\r\n }\r\n }\r\n mappedItems.items.push(mappedItem);\r\n this.itemCache.addOrUpdateItem(mappedItem.itemData);\r\n });\r\n return mappedItems;\r\n })\r\n );\r\n }\r\n // default\r\n return of({items: [], totalNumberOfItems: 0});\r\n }\r\n\r\n public addRecord(data: any): Observable {\r\n // this is just to make tree view happy, so it will show the node in the tree\r\n return of(data);\r\n }\r\n\r\n public updateRecord(data: any): Observable {\r\n // this is just to make tree view happy, so it will show the node in the tree\r\n return of(data);\r\n }\r\n\r\n public deleteRecord(id: number): Observable {\r\n // this is just to make tree view happy, so it will show the node in the tree\r\n return of(id);\r\n }\r\n\r\n public detachTariffFromSubscription(tariffId: number, subscriptionId): Observable {\r\n this.spinnerService.showSpinner = true;\r\n return this.tariffClient.assignNewSubscriptionToTariff(tariffId, null).pipe(\r\n tap(() => {\r\n const cachedItem = this.itemCache.getCachedItem(subscriptionId, AdministrationItemType.Subscription);\r\n const subscription = cachedItem?.itemData?.dto as ParkingSubscriptionDTO;\r\n if (subscription) {\r\n const index = subscription.tariffs.findIndex((tariff) => tariff.id === tariffId);\r\n subscription.tariffs.splice(index, 1);\r\n }\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showSuccess('i18n.domain.administration.overview.messages.subscription-detach-title', 'i18n.domain.administration.overview.messages.subscription-detach-success');\r\n }),\r\n catchError((error: any) => {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showError('i18n.errors.server-error.title', 'i18n.errors.server-error.message', null, ErrorType.serverError);\r\n return of(null);\r\n })\r\n );\r\n }\r\n\r\n public moveZoneDevice(deviceId: number, targetZoneId: number) {\r\n this.spinnerService.showSpinner = true;\r\n return this.zoneDeviceClient.moveDevice(deviceId, targetZoneId).pipe(\r\n tap(() => {\r\n this.moveItemSuccess();\r\n }),\r\n catchError((error: any) => {\r\n return this.handleItemError();\r\n })\r\n );\r\n }\r\n\r\n public moveZone(zoneId: number, targetZoneId: number) {\r\n this.spinnerService.showSpinner = true;\r\n return this.zoneClient.moveZone(zoneId, targetZoneId).pipe(\r\n tap(() => {\r\n this.moveItemSuccess();\r\n }),\r\n catchError((error: any) => {\r\n return this.handleItemError();\r\n })\r\n );\r\n }\r\n\r\n public addTariffToZone(tariffId: number, targetZoneId: number): Observable {\r\n this.spinnerService.showSpinner = true;\r\n return this.tariffClient.moveTariffToNewZone(tariffId, null, targetZoneId).pipe(\r\n map((dto) => {\r\n this.addItemSuccess();\r\n let itemData: IItemData = {\r\n type: AdministrationItemType.Tariff,\r\n name: dto.name,\r\n inactive: !dto.active,\r\n dto: dto\r\n };\r\n // the same tariff can be assigned to different zones and therefore its data has to be shared in the tree.\r\n itemData = this.itemCache.addOrUpdateItem(itemData).itemData;\r\n const mappedItem: ITreeNodeData = {\r\n id: this.getNextNodeId(dto.id, AdministrationItemType.Tariff),\r\n hasChildren: dto.subscriptionId > 0,\r\n itemData\r\n }\r\n return mappedItem;\r\n }),\r\n catchError((error: any) => {\r\n return this.handleItemError();\r\n })\r\n );\r\n }\r\n\r\n public moveTariff(tariffId: number, zoneId: number, targetZoneId: number): Observable {\r\n this.spinnerService.showSpinner = true;\r\n return this.tariffClient.moveTariffToNewZone(tariffId, zoneId, targetZoneId).pipe(\r\n tap((updatedTariff) => {\r\n const cachedItem = this.itemCache.getCachedItem(tariffId, AdministrationItemType.Tariff);\r\n const itemData = cachedItem?.itemData;\r\n if (itemData) {\r\n itemData.dto = updatedTariff;\r\n }\r\n if (targetZoneId) {\r\n this.moveItemSuccess();\r\n } else {\r\n this.removeItemSuccess();\r\n }\r\n }),\r\n catchError((error: any) => {\r\n return this.handleItemError();\r\n })\r\n );\r\n }\r\n\r\n public addSubscriptionToTariff(subscriptionId: number, targetTariffId: number): Observable {\r\n this.spinnerService.showSpinner = true;\r\n return this.parkingSubscriptionClient.moveSubscriptionToNewTariff(subscriptionId, null, targetTariffId).pipe(\r\n map((dto) => {\r\n this.addItemSuccess();\r\n let itemData: IItemData = {\r\n type: AdministrationItemType.Subscription,\r\n name: dto.name,\r\n inactive: !dto.active,\r\n dto: dto\r\n };\r\n // the same subscription can be assigned to different tariffs and therefore its data has to be shared in the tree.\r\n itemData = this.itemCache.addOrUpdateItem(itemData).itemData;\r\n const mappedItem: ITreeNodeData = {\r\n id: this.getNextNodeId(dto.id, AdministrationItemType.Subscription),\r\n hasChildren: false,\r\n itemData\r\n }\r\n return mappedItem;\r\n }),\r\n catchError((error: any) => {\r\n return this.handleItemError();\r\n })\r\n );\r\n }\r\n\r\n public moveSubscription(subscriptionId: number, tariffId: number, targetTariffId: number) {\r\n this.spinnerService.showSpinner = true;\r\n return this.parkingSubscriptionClient.moveSubscriptionToNewTariff(subscriptionId, tariffId, targetTariffId).pipe(\r\n tap((dto) => {\r\n const cachedItem = this.itemCache.getCachedItem(subscriptionId, AdministrationItemType.Subscription);\r\n const itemData = cachedItem?.itemData;\r\n if (itemData) {\r\n itemData.dto = dto;\r\n }\r\n this.moveItemSuccess();\r\n }),\r\n catchError((error: any) => {\r\n return this.handleItemError();\r\n })\r\n );\r\n }\r\n\r\n public getNextNodeId(itemId: number, type: AdministrationItemType): string {\r\n this.nodeIdCnt++;\r\n return ItemIdUtil.createItemId(itemId, type, this.nodeIdCnt);\r\n }\r\n\r\n public parseNodeId(nodeId: string): DetailsInitInfo {\r\n return ItemIdUtil.parseItemId(nodeId) as DetailsInitInfo;\r\n }\r\n\r\n private addItemSuccess(): void {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showSuccess('i18n.domain.administration.overview.messages.item-added-title', 'i18n.domain.administration.overview.messages.item-added-success');\r\n }\r\n\r\n private moveItemSuccess(): void {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showSuccess('i18n.domain.administration.overview.messages.item-moved-title', 'i18n.domain.administration.overview.messages.item-moved-success');\r\n }\r\n\r\n private removeItemSuccess(): void {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showSuccess('i18n.domain.administration.overview.messages.item-removed-title', 'i18n.domain.administration.overview.messages.item-removed-success');\r\n }\r\n\r\n private handleItemError(): Observable {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showError('i18n.errors.server-error.title', 'i18n.errors.server-error.message', null, ErrorType.serverError);\r\n return of(null);\r\n }\r\n}\r\n","import { DataManager } from '@syncfusion/ej2-data';\r\nimport { Component, ViewChild } from '@angular/core';\r\nimport { AdministrationItemType, DetailsInitInfo, ICachedItem, IItemData, ITreeNodeData, ItemEventInfo } from '../../data-structures';\r\nimport { AvpCustomAdaptor } from 'src/app/base/shared/syncfusion/avp-custom-adaptor';\r\nimport { DragAndDropEventArgs, FieldsSettingsModel, ToolbarModule, TreeViewModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { ModalService } from 'src/app/base/shared/modal/modal.service';\r\nimport { ToastService } from 'src/app/base/services/toast.service';\r\nimport { ITreeViewComponent } from '../tree-view.interface';\r\nimport { TreeViewZoneBasedService } from './tree-view-zone-based.service';\r\nimport { TreeViewBaseComponent } from '../tree-view-base.component';\r\nimport { ParkingSubscriptionDTO, ParkingTariffDTO, ZoneDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { GenerateQrCodeDetailsComponent } from '../../administration-details/generate-qr-code-details/generate-qr-code-details.component';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgIf, NgClass } from '@angular/common';\r\nimport { TooltipModule } from '@syncfusion/ej2-angular-popups';\r\n\r\n@Component({\r\n selector: 'app-tree-view-zone-based',\r\n templateUrl: './tree-view-zone-based.component.html',\r\n styleUrls: ['./tree-view-zone-based.component.scss'],\r\n standalone: true,\r\n imports: [TooltipModule, ToolbarModule, NgIf, TreeViewModule, NgClass, GenerateQrCodeDetailsComponent, TranslateModule]\r\n})\r\nexport class TreeViewZoneBasedComponent extends TreeViewBaseComponent implements ITreeViewComponent {\r\n @ViewChild('generateQrCodeDialog') public generateQrCodeDialog: GenerateQrCodeDetailsComponent;\r\n\r\n public treeViewFieldSetting: FieldsSettingsModel;\r\n\r\n public canAddZone = false;\r\n public canAddDevice = false;\r\n public canAddTariff = false;\r\n public canRemoveTariff = false;\r\n public canAddSubscription = false;\r\n public canRemoveSubscription = false;\r\n public canGenerateQrCode = false;\r\n\r\n public tooltipAnimation = { open: { effect: 'FadeIn', delay: 500 }, close: { effect: 'None' } };\r\n\r\n private fieldNames: FieldsSettingsModel = {\r\n id: 'id',\r\n parentID: 'parentId',\r\n };\r\n\r\n private get itemCache() {\r\n return this.service.itemCache;\r\n }\r\n\r\n constructor(\r\n private service: TreeViewZoneBasedService,\r\n clientService: ClientService,\r\n private spinnerService: SpinnerService,\r\n modalService: ModalService,\r\n private toastService: ToastService\r\n ) {\r\n super(clientService, modalService);\r\n\r\n const dataSource = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.service, this.spinnerService)\r\n });\r\n this.treeViewFieldSetting = Object.assign({dataSource}, this.fieldNames);\r\n this.itemCache.resetCache();\r\n }\r\n\r\n public override reset() {\r\n this.itemCache.resetCache();\r\n super.reset();\r\n }\r\n\r\n // methods from ITreeViewComponent\r\n\r\n public addNode(eventInfo: ItemEventInfo): void {\r\n const parentId = this.parentInfo.item.id;\r\n const parentNodeId = this.parentInfo.item.treeNodeId;\r\n const createdNode = this.handleAddNodeEvent(eventInfo, this.service.getNextNodeId(eventInfo.id, eventInfo.type));\r\n if (createdNode) {\r\n // if node was not added to parent since it was not collapsed yet\r\n this.itemCache.addOrUpdateItem(createdNode.itemData);\r\n }\r\n if (eventInfo.type === AdministrationItemType.Subscription) {\r\n this.updateSubscriptionInfoOnTariffNodes(parentId, eventInfo.id, parentNodeId);\r\n }\r\n }\r\n\r\n public removeNode(eventInfo: ItemEventInfo): void {\r\n this.handleRemoveNodeEvent(eventInfo);\r\n if (eventInfo.type === AdministrationItemType.Subscription) {\r\n this.updateSubscriptionInfoOnTariffNodes(eventInfo.parentId, null);\r\n }\r\n this.itemCache.removeItem(eventInfo.id, eventInfo.type);\r\n }\r\n\r\n protected isItemInactive(eventInfo: ItemEventInfo): boolean {\r\n if (eventInfo.type === AdministrationItemType.Tariff || eventInfo.type === AdministrationItemType.Subscription) {\r\n return !(eventInfo.data as any).active;\r\n }\r\n if (eventInfo.type === AdministrationItemType.ZoneDevice) {\r\n return !(eventInfo.data as any).enabled;\r\n }\r\n return false;\r\n }\r\n\r\n public updateNode(eventInfo: ItemEventInfo): void {\r\n this.handleUpdateNodeEvent(eventInfo);\r\n\r\n if (eventInfo.type !== AdministrationItemType.Zone) {\r\n return;\r\n }\r\n\r\n if (eventInfo.type === AdministrationItemType.Zone) {\r\n const nodeData = this.tree.getTreeData(this.selectedItem.treeNodeId)?.at(0) as any as ITreeNodeData;\r\n if (!nodeData) {\r\n return;\r\n }\r\n\r\n const dto = eventInfo.data as ZoneDTO;\r\n if (dto.isGroupingElement) {\r\n // remove devices folder\r\n var childNodes = (nodeData as any).child as ITreeNodeData[];\r\n if (childNodes && childNodes.length > 0) {\r\n childNodes.forEach((child) => {\r\n if (child.itemData.type === AdministrationItemType.ZoneDeviceCollection) {\r\n this.tree.removeNodes([child.id]);\r\n }\r\n });\r\n }\r\n } else {\r\n // make sure device folder exists already or add folder if children are already loaded\r\n if (((nodeData as any)?.child as any[])?.length > 0) {\r\n let deviceNode = (nodeData as any).child?.find((child) => child.itemData.type === AdministrationItemType.ZoneDeviceCollection);\r\n if (!deviceNode) {\r\n // add device folder\r\n deviceNode = {\r\n id: this.service.getNextNodeId(dto.id, AdministrationItemType.ZoneDeviceCollection),\r\n hasChildren: dto.hasDevicesAssigned,\r\n itemData: {\r\n type: AdministrationItemType.ZoneDeviceCollection,\r\n name: 'i18n.domain.administration.overview.devices',\r\n inactive: false,\r\n dto: null\r\n }\r\n }\r\n this.tree.addNodes(deviceNode, nodeData.id as string, null, true);\r\n }\r\n } else {\r\n nodeData.hasChildren = dto.hasChildZones || dto.assignedTariffs?.length > 0 || !dto.isGroupingElement;\r\n this.tree.refreshNode(nodeData.id as string, nodeData as any);\r\n }\r\n }\r\n }\r\n\r\n }\r\n // end methods from ITreeViewComponent\r\n\r\n public onNodeDragStart(args: DragAndDropEventArgs) {\r\n const info = this.parseNodeId(args.draggedNodeData.id as string) as DetailsInitInfo;\r\n if (info.type === AdministrationItemType.ZoneCollection || info.type === AdministrationItemType.ZoneDeviceCollection) {\r\n args.cancel = true;\r\n return;\r\n }\r\n\r\n if (info.type === AdministrationItemType.Tariff) {\r\n const parentInfo = this.parseNodeId(args.draggedNodeData.parentID as string) as DetailsInitInfo;\r\n if (this.isCopyMode(args) || parentInfo.type === AdministrationItemType.TariffCollection) {\r\n // add tariffs to more zones is also allowed if tariff or its subscription is active\r\n return;\r\n }\r\n\r\n const nodeData = this.tree.getTreeData(args.draggedNodeData.id as string)?.at(0) as any as ITreeNodeData;\r\n let subscription: ICachedItem = null;\r\n if (nodeData?.itemData?.dto?.subscriptionId) {\r\n subscription = this.service.itemCache.getCachedItem(nodeData?.itemData?.dto?.subscriptionId, AdministrationItemType.Subscription);\r\n }\r\n\r\n const hasActiveSubscription = subscription != null ? !!subscription.itemData?.dto?.active : !!nodeData?.itemData?.dto?.hasActiveSubscription;\r\n if (hasActiveSubscription) {\r\n args.cancel = true;\r\n this.toastService.showWarning('i18n.domain.administration.overview.messages.active-item-cannot-be-moved-title', 'i18n.domain.administration.overview.messages.active-item-cannot-be-moved-message');\r\n return;\r\n }\r\n }\r\n\r\n if (info.type === AdministrationItemType.Subscription) {\r\n const nodeData = this.tree.getTreeData(args.draggedNodeData.id as string)?.at(0)?.itemData as IItemData;\r\n if (nodeData?.dto.active) {\r\n args.cancel = true;\r\n this.toastService.showWarning('i18n.domain.administration.overview.messages.active-item-cannot-be-moved-title', 'i18n.domain.administration.overview.messages.active-item-cannot-be-moved-message');\r\n return;\r\n }\r\n }\r\n }\r\n\r\n public override onNodeDragStop(args: DragAndDropEventArgs): void {\r\n super.onNodeDragStop(args);\r\n if (args.cancel) {\r\n return;\r\n }\r\n\r\n // all actions need to be handled within this method programmatically, because of proper positioning within parent node\r\n args.cancel = true;\r\n\r\n const isCopyMode = this.isCopyMode(args);\r\n const info = this.parseNodeId(args.draggedNodeData.id as string) as DetailsInitInfo;\r\n const targetInfo = this.parseNodeId(args.droppedNodeData.id as string) as DetailsInitInfo;\r\n if (isCopyMode) {\r\n switch (info.type) {\r\n case AdministrationItemType.Tariff:\r\n this.service.addTariffToZone(info.id, targetInfo.id).subscribe((treeNode) => {\r\n this.addNodeAtProperPositionByParentNodeId(treeNode, args.droppedNodeData.id as string);\r\n });\r\n return;\r\n case AdministrationItemType.Subscription:\r\n this.service.addSubscriptionToTariff(info.id, targetInfo.id).subscribe((treeNode) => {\r\n this.addNodeAtProperPositionByParentNodeId(treeNode, args.droppedNodeData.id as string);\r\n this.updateSubscriptionInfoOnTariffNodes(targetInfo.id, info.id, args.droppedNodeData.id as string);\r\n });\r\n return;\r\n default:\r\n return;\r\n }\r\n }\r\n\r\n let parentNodeId = null;\r\n let parentInfo: DetailsInitInfo = null;\r\n switch (info.type) {\r\n case AdministrationItemType.Zone:\r\n this.service.moveZone(info.id, targetInfo.id).subscribe(() => {\r\n this.moveNode(args.draggedNodeData.id as string, args.droppedNodeData.id as string);\r\n });\r\n return;\r\n case AdministrationItemType.ZoneDevice:\r\n this.service.moveZoneDevice(info.id, targetInfo.id).subscribe(() => {\r\n this.moveNode(args.draggedNodeData.id as string, args.droppedNodeData.id as string);\r\n });\r\n return;\r\n case AdministrationItemType.Tariff:\r\n parentNodeId = args.draggedNodeData.parentID;\r\n parentInfo = this.parseNodeId(parentNodeId as string) as DetailsInitInfo;\r\n this.service.moveTariff(info.id, parentInfo.id, targetInfo.id).subscribe(() => {\r\n this.moveNode(args.draggedNodeData.id as string, args.droppedNodeData.id as string);\r\n });\r\n return;\r\n case AdministrationItemType.Subscription:\r\n parentNodeId = args.draggedNodeData.parentID;\r\n parentInfo = this.parseNodeId(parentNodeId as string) as DetailsInitInfo;\r\n this.service.moveSubscription(info.id, parentInfo.id, targetInfo.id).subscribe(() => {\r\n this.moveNode(args.draggedNodeData.id as string, args.droppedNodeData.id as string);\r\n if (targetInfo.type === AdministrationItemType.Tariff) {\r\n this.updateSubscriptionInfoOnTariffNodes(targetInfo.id, info.id, args.draggedNodeData.id as string);\r\n }\r\n this.updateSubscriptionInfoOnTariffNodes(parentInfo.id, null);\r\n });\r\n return;\r\n }\r\n }\r\n\r\n public onRemoveTariff() {\r\n const dialog = this.modalService.showOkCancelDialog('i18n.domain.administration.overview.messages.tariff-detach-title', 'i18n.domain.administration.overview.messages.tariff-detach-question');\r\n dialog.onOkSubject.subscribe(() => {\r\n this.service.moveTariff(this.selectedItem.id, this.selectedItem.parentId, null).subscribe(() => {\r\n this.tree.removeNodes([this.selectedItem.treeNodeId]);\r\n this.setSelectedItem(null);\r\n this.tree.selectedNodes = [];\r\n });\r\n });\r\n }\r\n\r\n public onRemoveSubscription() {\r\n const dialog = this.modalService.showOkCancelDialog('i18n.domain.administration.overview.messages.subscription-detach-title', 'i18n.domain.administration.overview.messages.subscription-detach-question');\r\n dialog.onOkSubject.subscribe(() => {\r\n this.service.detachTariffFromSubscription(this.selectedItem.parentId, this.selectedItem.id).subscribe(() => {\r\n this.updateSubscriptionInfoOnTariffNodes(this.selectedItem.parentId, null);\r\n this.setSelectedItem(null);\r\n this.tree.selectedNodes = [];\r\n });\r\n });\r\n }\r\n\r\n public onGenerateQrCode() {\r\n const dto = this.selectedItem.itemData.dto as ZoneDTO;\r\n this.generateQrCodeDialog.openDialog(dto);\r\n }\r\n\r\n public onAddZone() {\r\n this.onAddNewItem(AdministrationItemType.Zone);\r\n }\r\n\r\n public onAddDevice() {\r\n this.onAddNewItem(AdministrationItemType.ZoneDevice);\r\n }\r\n\r\n public onAddTariff() {\r\n this.onAddNewItem(AdministrationItemType.Tariff);\r\n }\r\n\r\n public onAddSubscription() {\r\n this.onAddNewItem(AdministrationItemType.Subscription);\r\n }\r\n\r\n protected updateCanAddXyFlags() {\r\n // because of change after check issue, we need to use flags and cannot use getter methods\r\n const dto = this.selectedItem?.itemData?.dto;\r\n this.canAddZone = !!(this.selectedItem && (this.selectedItem.type === AdministrationItemType.ZoneCollection || (this.selectedItem?.id && this.selectedItem.type === AdministrationItemType.Zone)));\r\n this.canAddTariff = !!(this.selectedItem?.id && this.selectedItem?.type === AdministrationItemType.Zone && dto && !dto.isGroupingElement);\r\n this.canRemoveTariff = !!(this.selectedItem?.id && this.selectedItem?.type === AdministrationItemType.Tariff && dto && dto.assignedZones?.length > 1);\r\n this.canAddSubscription = !!(this.selectedItem?.id && this.selectedItem?.type === AdministrationItemType.Tariff && dto && !dto.subscriptionId);\r\n this.canRemoveSubscription = !!(this.selectedItem?.id && this.selectedItem?.type === AdministrationItemType.Subscription && dto?.tariffs?.length > 1);\r\n this.canGenerateQrCode = !!(this.selectedItem?.id && this.selectedItem?.type === AdministrationItemType.Zone && dto && !dto.isGroupingElement)\r\n this.canAddDevice = this.selectedItem?.type === AdministrationItemType.ZoneDeviceCollection;\r\n }\r\n\r\n protected canDropNode(args: DragAndDropEventArgs): boolean {\r\n const draggedNode = args.draggedNodeData;\r\n const droppedNode = args.droppedNodeData;\r\n const isCopyMode = this.isCopyMode(args);\r\n if (draggedNode == null || droppedNode == null || draggedNode.parentID === droppedNode.id) {\r\n return false;\r\n }\r\n\r\n const info = this.parseNodeId(draggedNode.id as string) as DetailsInitInfo;\r\n const targetInfo = this.parseNodeId(droppedNode.id as string) as DetailsInitInfo;\r\n switch (info.type) {\r\n case AdministrationItemType.Zone:\r\n return (targetInfo.type === AdministrationItemType.ZoneCollection || targetInfo.type === AdministrationItemType.Zone) && !isCopyMode;\r\n case AdministrationItemType.ZoneDevice:\r\n return (targetInfo.type === AdministrationItemType.ZoneDeviceCollection) && !isCopyMode;\r\n case AdministrationItemType.Tariff: {\r\n if (targetInfo.type !== AdministrationItemType.TariffCollection && targetInfo.type !== AdministrationItemType.Zone) {\r\n return false;\r\n }\r\n const parentInfo = this.parseNodeId(draggedNode.parentID as string) as DetailsInitInfo;\r\n if (parentInfo.type === AdministrationItemType.TariffCollection && isCopyMode) {\r\n return false;\r\n }\r\n\r\n if (targetInfo.type === AdministrationItemType.TariffCollection) {\r\n // check if node can be added, i.e. no other node existing\r\n const nodeData = this.tree.getTreeData(draggedNode.id as string)?.at(0)?.itemData as IItemData;\r\n if (nodeData.dto.assignedZones && nodeData.dto.assignedZones.length > 1) {\r\n return false;\r\n }\r\n }\r\n\r\n const parentData = this.tree.getTreeData(droppedNode.id as string)?.at(0);\r\n if (!parentData) {\r\n return false;\r\n }\r\n const nodeData = this.tree.getTreeData(draggedNode.id as string)?.at(0)?.itemData as IItemData;\r\n const hasChildAlready = (parentData.child as any[])?.find((node) => node.itemData.type === nodeData.type && node.itemData.dto?.id === nodeData.dto?.id);\r\n if (hasChildAlready) {\r\n return false;\r\n }\r\n\r\n return (isCopyMode || !nodeData?.dto.hasActiveSubscription);\r\n }\r\n case AdministrationItemType.Subscription:\r\n if (targetInfo.type === AdministrationItemType.SubscriptionCollection && !isCopyMode) {\r\n const nodeData = this.tree.getTreeData(draggedNode.id as string)?.at(0)?.itemData as IItemData;\r\n return (nodeData?.dto as ParkingSubscriptionDTO)?.tariffs?.length === 1;\r\n }\r\n return targetInfo.type === AdministrationItemType.Tariff && !droppedNode.hasChildren;\r\n default:\r\n return false;\r\n }\r\n }\r\n\r\n protected parseNodeId(nodeId: string): DetailsInitInfo {\r\n return this.service.parseNodeId(nodeId);\r\n }\r\n\r\n private updateSubscriptionInfoOnTariffNodes(tariffId: number, subscriptionId: number, ignoreNodeId: string = null) {\r\n const affectedTariffs = this.findAllNodesOfTree(tariffId, AdministrationItemType.Tariff);\r\n affectedTariffs.forEach((tariff) => {\r\n if (tariff.id === ignoreNodeId) {\r\n return;\r\n }\r\n tariff.hasChildren = !!subscriptionId;\r\n if (!subscriptionId) {\r\n const child = (tariff as any).child?.at(0);\r\n if (child) {\r\n this.tree.removeNodes([child.id]);\r\n }\r\n }\r\n const dto = tariff.itemData?.dto as ParkingTariffDTO;\r\n if (dto) {\r\n dto.subscriptionId = subscriptionId;\r\n }\r\n this.tree.refreshNode(tariff.id, tariff as any);\r\n });\r\n }\r\n}\r\n","\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n \r\n
    \r\n
    \r\n \r\n {{data.itemData.name | translate}}\r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n","import { Injectable } from '@angular/core';\r\nimport { IAdaptorService } from 'src/app/base/shared/syncfusion/adaptor-service.interface';\r\nimport { ConfigBasedAdminClient, FilterCondition, FilterDTO, FilterOperator, IConfigBasedStructuralEntryDTO, ParkingSubscriptionClient,\r\n ParkingSubscriptionDTO,\r\n ParkingTariffClient, ParkingTariffLimitedDTO, SortDirection, UpdateConfigBasedStructuralEntryDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { Observable, of, map, forkJoin, tap, catchError } from 'rxjs';\r\nimport { ToastService } from 'src/app/base/services/toast.service';\r\nimport { IPagedItems } from 'src/app/base/shared/syncfusion/paged-items.interface';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { ErrorType } from 'src/app/core/routing/error-types';\r\nimport { AdministrationItemType, DetailsInitInfo, IItemData, ITreeNodeData } from '../../data-structures';\r\nimport { ItemIdUtil } from '../../item-id.util';\r\nimport { ItemCache } from '../item-cache';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class TreeViewConfigBasedService implements IAdaptorService {\r\n public itemCache = new ItemCache([AdministrationItemType.SubscriptionCollection, AdministrationItemType.ConfigBasedStructuralElementCollection, AdministrationItemType.TariffCollection]);\r\n public subscriptionCollectionId: string = null;\r\n private nodeIdCnt = 0;\r\n\r\n constructor(\r\n private configBasedAdminClient: ConfigBasedAdminClient,\r\n private clientService: ClientService,\r\n private tariffClient: ParkingTariffClient,\r\n private parkingSubscriptionClient: ParkingSubscriptionClient,\r\n private spinnerService: SpinnerService,\r\n private toastService: ToastService) { }\r\n\r\n public getData(skip: number, take: number, filters: FilterDTO[], sortBy: string, sortDirection: SortDirection): Observable {\r\n const clientId = this.clientService.selectedClient?.id;\r\n let parentType = null;\r\n let parentId: number = null;\r\n if (!filters) {\r\n this.itemCache.resetCache();\r\n filters = [];\r\n filters.push(new FilterDTO({\r\n isComplex: false,\r\n field: 'ParentId',\r\n operator: FilterOperator.IsNull,\r\n }));\r\n } else {\r\n const parentIdfilter = filters.find((filter) => filter.field === 'ParentId');\r\n if (parentIdfilter) {\r\n const parsedData = this.parseNodeId(parentIdfilter.value);\r\n parentIdfilter.value = parsedData.id?.toString();\r\n parentId = parsedData.id;\r\n if (parentIdfilter.value == null) {\r\n parentIdfilter.operator = FilterOperator.IsNull;\r\n this.itemCache.resetCache();\r\n }\r\n parentType = parsedData.type;\r\n }\r\n }\r\n if (parentType == null) {\r\n const mappedItems: IPagedItems = {items: [], totalNumberOfItems: 1};\r\n let id = this.getNextNodeId(null, AdministrationItemType.ConfigBasedStructuralElementCollection);\r\n mappedItems.items.push({\r\n id,\r\n hasChildren: true,\r\n parentId: null,\r\n expanded: true,\r\n itemData: {\r\n type: AdministrationItemType.ConfigBasedStructuralElementCollection,\r\n name: this.clientService.selectedClient?.name,\r\n inactive: false,\r\n dto: null\r\n }\r\n } as ITreeNodeData);\r\n this.subscriptionCollectionId = this.getNextNodeId(null, AdministrationItemType.SubscriptionCollection);\r\n mappedItems.items.push({\r\n id: this.subscriptionCollectionId,\r\n hasChildren: true,\r\n parentId: null,\r\n expanded: true,\r\n itemData: {\r\n type: AdministrationItemType.SubscriptionCollection,\r\n name: 'i18n.domain.administration.overview.unassigned-subscriptions',\r\n inactive: false,\r\n dto: null\r\n }\r\n } as ITreeNodeData);\r\n id = this.getNextNodeId(null, AdministrationItemType.TariffCollection);\r\n mappedItems.items.push({\r\n id,\r\n hasChildren: true,\r\n parentId: null,\r\n expanded: true,\r\n itemData: {\r\n type: AdministrationItemType.TariffCollection,\r\n name: 'i18n.domain.administration.overview.unassigned-tariffs',\r\n inactive: false,\r\n dto: null\r\n }\r\n } as ITreeNodeData);\r\n return of(mappedItems);\r\n }\r\n if (parentType == AdministrationItemType.ConfigBasedStructuralElementCollection) {\r\n return this.configBasedAdminClient.searchConfigBasedStructuralEntries(clientId, filters, 0, 0, 'name', SortDirection.Ascending).pipe(\r\n map((pagedItems) => {\r\n const mappedItems: IPagedItems = {items: [], totalNumberOfItems: pagedItems.totalNumberOfItems};\r\n pagedItems.items.forEach((item) => {\r\n let itemData: IItemData = {\r\n type: AdministrationItemType.ConfigBasedStructuralElement,\r\n name: item.name,\r\n inactive: false,\r\n dto: item\r\n };\r\n // the same subscription can be assigned to different structural elements and therefore its data has to be shared in the tree.\r\n itemData = this.itemCache.addOrUpdateItem(itemData).itemData;\r\n const mappedItem: ITreeNodeData = {\r\n id: this.getNextNodeId(item.id, AdministrationItemType.ConfigBasedStructuralElement),\r\n hasChildren: item.hasChildEntries || item.hasSubscriptions,\r\n itemData\r\n }\r\n mappedItems.items.push(mappedItem);\r\n });\r\n return mappedItems;\r\n })\r\n );\r\n }\r\n if (parentType == AdministrationItemType.ConfigBasedStructuralElement) {\r\n const entryObservable = this.configBasedAdminClient.searchConfigBasedStructuralEntries(clientId, filters, 0, 0, 'name', SortDirection.Ascending).pipe(\r\n map((pagedItems) => {\r\n const items = [];\r\n pagedItems.items.forEach((item) => {\r\n let itemData: IItemData = {\r\n type: AdministrationItemType.ConfigBasedStructuralElement,\r\n name: item.name,\r\n inactive: false,\r\n dto: item\r\n };\r\n // the same subscription can be assigned to different structural elements and therefore its data has to be shared in the tree.\r\n itemData = this.itemCache.addOrUpdateItem(itemData).itemData;\r\n const mappedItem: ITreeNodeData = {\r\n id: this.getNextNodeId(item.id, AdministrationItemType.ConfigBasedStructuralElement),\r\n hasChildren: item.hasChildEntries || item.hasSubscriptions,\r\n itemData\r\n }\r\n items.push(mappedItem);\r\n });\r\n return items;\r\n })\r\n );\r\n\r\n filters = [new FilterDTO({\r\n isComplex: false,\r\n field: 'StructuralEntryAssignments.StructuralEntryId',\r\n operator: FilterOperator.Equal,\r\n value: parentId?.toString()\r\n })];\r\n const subscriptionObservable = this.parkingSubscriptionClient.searchParkingSubscriptions(clientId, filters, 0, 0, 'name', SortDirection.Ascending).pipe(\r\n map((pagedItems) => {\r\n const items = [];\r\n pagedItems.items.forEach((item) => {\r\n let itemData: IItemData = {\r\n type: AdministrationItemType.Subscription,\r\n name: item.name,\r\n inactive: !item.active,\r\n dto: item\r\n };\r\n // the same subscription can be assigned to different structural elements and therefore its data has to be shared in the tree.\r\n itemData = this.itemCache.addOrUpdateItem(itemData).itemData;\r\n const mappedItem: ITreeNodeData = {\r\n id: this.getNextNodeId(item.id, AdministrationItemType.Subscription),\r\n hasChildren: item.tariffs?.filter(value => !value.deleted).length > 0,\r\n itemData\r\n }\r\n items.push(mappedItem);\r\n });\r\n return items;\r\n }\r\n ));\r\n\r\n return forkJoin([subscriptionObservable, entryObservable]).pipe(\r\n map(input => {\r\n const mappedItems: IPagedItems = {items: [].concat(...input), totalNumberOfItems: 1};\r\n return mappedItems;\r\n })\r\n );\r\n }\r\n if (parentType == AdministrationItemType.SubscriptionCollection) {\r\n filters = [new FilterDTO({\r\n isComplex: false,\r\n field: 'StructuralEntryAssignments',\r\n operator: FilterOperator.None,\r\n value: null\r\n })];\r\n return this.parkingSubscriptionClient.searchParkingSubscriptions(clientId, filters, 0, 0, 'name', SortDirection.Ascending).pipe(\r\n map((pagedItems) => {\r\n const mappedItems: IPagedItems = {items: [], totalNumberOfItems: pagedItems.totalNumberOfItems};\r\n pagedItems.items.forEach((item) => {\r\n let itemData: IItemData = {\r\n type: AdministrationItemType.Subscription,\r\n name: item.name,\r\n inactive: !item.active,\r\n dto: item\r\n };\r\n // the same subscription can be assigned to different structural elements and therefore its data has to be shared in the tree.\r\n itemData = this.itemCache.addOrUpdateItem(itemData).itemData;\r\n const mappedItem: ITreeNodeData = {\r\n id: this.getNextNodeId(item.id, AdministrationItemType.Subscription),\r\n hasChildren: item.tariffs?.filter(value => !value.deleted).length > 0,\r\n itemData\r\n }\r\n mappedItems.items.push(mappedItem);\r\n });\r\n return mappedItems;\r\n })\r\n );\r\n }\r\n if (parentType == AdministrationItemType.Subscription) {\r\n filters = [new FilterDTO({\r\n isComplex: false,\r\n field: 'SubscriptionId',\r\n operator: FilterOperator.Equal,\r\n value: parentId?.toString()\r\n })\r\n ];\r\n return this.tariffClient.searchParkingTariffs(clientId, filters, 0, 0, 'name', SortDirection.Ascending, false).pipe(\r\n map((pagedItems) => {\r\n const mappedItems: IPagedItems = {items: [], totalNumberOfItems: pagedItems.totalNumberOfItems};\r\n pagedItems.items.forEach((item) => {\r\n let itemData: IItemData = {\r\n type: AdministrationItemType.Tariff,\r\n name: item.name,\r\n inactive: !item.active,\r\n dto: item\r\n }\r\n // the same tariff can show up several time in the tree therefore its data has to be shared.\r\n itemData = this.itemCache.addOrUpdateItem(itemData).itemData;\r\n const mappedItem: ITreeNodeData = {\r\n id: this.getNextNodeId(item.id, AdministrationItemType.Tariff),\r\n hasChildren: false,\r\n itemData\r\n }\r\n mappedItems.items.push(mappedItem);\r\n });\r\n return mappedItems;\r\n })\r\n );\r\n }\r\n if (parentType == AdministrationItemType.TariffCollection) {\r\n filters = [new FilterDTO({\r\n isComplex: true,\r\n condition: FilterCondition.Or,\r\n predicates: [\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'SubscriptionId',\r\n operator: FilterOperator.IsNull\r\n }),\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'Subscription.Deleted',\r\n operator: FilterOperator.Equal,\r\n value: 'true'\r\n })\r\n ]\r\n })\r\n ];\r\n return this.tariffClient.searchParkingTariffs(clientId, filters, 0, 0, 'name', SortDirection.Ascending, false).pipe(\r\n map((pagedItems) => {\r\n const mappedItems: IPagedItems = {items: [], totalNumberOfItems: pagedItems.totalNumberOfItems};\r\n pagedItems.items.forEach((item) => {\r\n let itemData: IItemData = {\r\n type: AdministrationItemType.Tariff,\r\n name: item.name,\r\n inactive: !item.active,\r\n dto: item\r\n }\r\n // the same tariff can show up several time in the tree therefore its data has to be shared.\r\n itemData = this.itemCache.addOrUpdateItem(itemData).itemData;\r\n const mappedItem: ITreeNodeData = {\r\n id: this.getNextNodeId(item.id, AdministrationItemType.Tariff),\r\n hasChildren: false,\r\n itemData\r\n }\r\n mappedItems.items.push(mappedItem);\r\n });\r\n return mappedItems;\r\n })\r\n );\r\n }\r\n // default\r\n return of({items: [], totalNumberOfItems: 0});\r\n }\r\n\r\n public addRecord(data: any): Observable {\r\n // this is just to make tree view happy, so it will show the node in the tree\r\n return of(data);\r\n }\r\n\r\n public updateRecord(data: any): Observable {\r\n // this is just to make tree view happy, so it will show the node in the tree\r\n return of(data);\r\n }\r\n\r\n public deleteRecord(id: number): Observable {\r\n // this is just to make tree view happy, so it will show the node in the tree\r\n return of(id);\r\n }\r\n\r\n public deleteStructuralEntry(id: number, sourceEntryId?: number): Observable {\r\n this.spinnerService.showSpinner = true;\r\n return this.configBasedAdminClient.deleteConfigBasedStructuralEntry(id).pipe(\r\n tap(() => {\r\n const sourceEntry = this.itemCache.getCachedItem(sourceEntryId, AdministrationItemType.ConfigBasedStructuralElement);\r\n if (sourceEntry) {\r\n this.configBasedAdminClient.getConfigBasedStructuralEntry(sourceEntry.itemData.dto.id).subscribe((entry) => {\r\n sourceEntry.itemData.dto = entry;\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showSuccess('i18n.domain.administration.overview.messages.structural-entry-delete-title', 'i18n.domain.administration.overview.messages.structural-entry-delete-success');\r\n });\r\n } else {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showSuccess('i18n.domain.administration.overview.messages.structural-entry-delete-title', 'i18n.domain.administration.overview.messages.structural-entry-delete-success');\r\n }\r\n }),\r\n catchError((error: any) => {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showError('i18n.errors.server-error.title', 'i18n.errors.server-error.message', null, ErrorType.serverError);\r\n return of(null);\r\n })\r\n );\r\n }\r\n\r\n public moveStructuralEntry(structuralEntryId: number, sourceParentId: number, targetParentId: number): Observable {\r\n this.spinnerService.showSpinner = true;\r\n return this.configBasedAdminClient.updateConfigBasedStructuralEntry(new UpdateConfigBasedStructuralEntryDTO({id: structuralEntryId, parentId: targetParentId ?? 0})).pipe(\r\n tap(() => {\r\n // update target entry and source entry\r\n const targetEntry = this.itemCache.getCachedItem(targetParentId, AdministrationItemType.ConfigBasedStructuralElement);\r\n if (targetEntry) {\r\n (targetEntry.itemData.dto as IConfigBasedStructuralEntryDTO).hasChildEntries = true;\r\n }\r\n const sourceEntry = this.itemCache.getCachedItem(sourceParentId, AdministrationItemType.ConfigBasedStructuralElement);\r\n if (sourceEntry) {\r\n this.configBasedAdminClient.getConfigBasedStructuralEntry(sourceEntry.itemData.dto.id).subscribe((entry) => {\r\n sourceEntry.itemData.dto = entry;\r\n this.moveItemSuccess();\r\n });\r\n } else {\r\n this.moveItemSuccess();\r\n }\r\n }),\r\n catchError((error: any) => {\r\n return this.moveItemError();\r\n })\r\n );\r\n }\r\n\r\n public moveTariff(tariffId: number, targetSubscriptionId: number): Observable {\r\n this.spinnerService.showSpinner = true;\r\n return this.tariffClient.assignNewSubscriptionToTariff(tariffId, targetSubscriptionId).pipe(\r\n tap(() => {\r\n const cachedItem = this.itemCache.getCachedItem(tariffId, AdministrationItemType.Tariff);\r\n const itemData = cachedItem?.itemData;\r\n if (itemData && itemData.type === AdministrationItemType.Tariff) {\r\n let parkingTariff = itemData.dto as ParkingTariffLimitedDTO;\r\n parkingTariff.subscriptionId = targetSubscriptionId;\r\n }\r\n this.moveItemSuccess();\r\n }),\r\n catchError((error: any) => {\r\n return this.moveItemError();\r\n })\r\n );\r\n }\r\n\r\n public deleteTariff(tariffId: number): Observable {\r\n this.spinnerService.showSpinner = true;\r\n return this.tariffClient.deleteParkingTariff(tariffId).pipe(\r\n tap(() => {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showSuccess('i18n.domain.administration.overview.messages.tariff-delete-title', 'i18n.domain.administration.overview.messages.tariff-delete-success');\r\n }),\r\n catchError((error: any) => {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showError('i18n.errors.server-error.title', 'i18n.errors.server-error.message', null, ErrorType.serverError);\r\n return of(null);\r\n })\r\n );\r\n }\r\n\r\n public moveSubscriptionFromElement(subscriptionId: number, sourceEntryId?: number, targetEntryId?: number): Observable {\r\n this.spinnerService.showSpinner = true;\r\n return this.parkingSubscriptionClient.moveToStructuralEntry(subscriptionId, sourceEntryId, targetEntryId).pipe(\r\n tap((dto) => {\r\n const cachedItem = this.itemCache.getCachedItem(subscriptionId, AdministrationItemType.Subscription);\r\n const itemData = cachedItem?.itemData;\r\n if (itemData) {\r\n itemData.dto = dto;\r\n }\r\n\r\n // update target entry and source entry\r\n const targetEntry = this.itemCache.getCachedItem(targetEntryId, AdministrationItemType.ConfigBasedStructuralElement);\r\n if (targetEntry) {\r\n (targetEntry.itemData.dto as IConfigBasedStructuralEntryDTO).hasSubscriptions = true;\r\n }\r\n\r\n const sourceEntry = this.itemCache.getCachedItem(sourceEntryId, AdministrationItemType.ConfigBasedStructuralElement);\r\n if (sourceEntry) {\r\n this.configBasedAdminClient.getConfigBasedStructuralEntry(sourceEntry.itemData.dto.id).subscribe((entry) => {\r\n sourceEntry.itemData.dto = entry;\r\n this.moveItemSuccess();\r\n });\r\n } else {\r\n this.moveItemSuccess();\r\n }\r\n }),\r\n catchError((error: any) => {\r\n return this.moveItemError();\r\n }));\r\n }\r\n\r\n public deleteSubscriptionFromElement(subscriptionId: number, sourceEntryId?: number): Observable {\r\n this.spinnerService.showSpinner = true;\r\n if (sourceEntryId){\r\n return this.parkingSubscriptionClient.removeFromStructuralEntry(subscriptionId, sourceEntryId).pipe(\r\n tap((dto) => {\r\n const cachedItem = this.itemCache.getCachedItem(subscriptionId, AdministrationItemType.Subscription);\r\n const itemData = cachedItem?.itemData;\r\n if (itemData) {\r\n itemData.dto = dto;\r\n }\r\n\r\n const sourceEntry = this.itemCache.getCachedItem(sourceEntryId, AdministrationItemType.ConfigBasedStructuralElement);\r\n if (sourceEntry) {\r\n this.configBasedAdminClient.getConfigBasedStructuralEntry(sourceEntry.itemData.dto.id).subscribe((entry) => {\r\n sourceEntry.itemData.dto = entry;\r\n this.removeItemSuccess();\r\n });\r\n } else {\r\n this.removeItemSuccess();\r\n }\r\n }),\r\n catchError((error: any) => {\r\n return this.moveItemError();\r\n })\r\n );\r\n }\r\n return of(null);\r\n }\r\n\r\n public addSubscriptionToElement(subscriptionId: number, targetEntryId: number) {\r\n this.spinnerService.showSpinner = true;\r\n return this.parkingSubscriptionClient.addToStructuralEntry(subscriptionId, targetEntryId).pipe(\r\n map((dto) => {\r\n let itemData: IItemData = {\r\n type: AdministrationItemType.Subscription,\r\n name: dto.name,\r\n inactive: !dto.active,\r\n dto: dto\r\n };\r\n // the same subscription can be assigned to different structural elements and therefore its data has to be shared in the tree.\r\n itemData = this.itemCache.addOrUpdateItem(itemData).itemData;\r\n const mappedItem: ITreeNodeData = {\r\n id: this.getNextNodeId(dto.id, AdministrationItemType.Subscription),\r\n hasChildren: dto.tariffs?.filter(value => !value.deleted).length > 0,\r\n itemData\r\n }\r\n\r\n const targetEntry = this.itemCache.getCachedItem(targetEntryId, AdministrationItemType.ConfigBasedStructuralElement);\r\n if (targetEntry) {\r\n (targetEntry.itemData.dto as IConfigBasedStructuralEntryDTO).hasSubscriptions = true;\r\n }\r\n this.addItemSuccess();\r\n return mappedItem;\r\n }),\r\n catchError((error: any) => {\r\n return this.moveItemError();\r\n })\r\n );\r\n }\r\n\r\n public getNextNodeId(itemId: number, type: AdministrationItemType): string {\r\n this.nodeIdCnt++;\r\n return ItemIdUtil.createItemId(itemId, type, this.nodeIdCnt);\r\n }\r\n\r\n public parseNodeId(nodeId: string): DetailsInitInfo {\r\n return ItemIdUtil.parseItemId(nodeId) as DetailsInitInfo;\r\n }\r\n\r\n private addItemSuccess(): void {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showSuccess('i18n.domain.administration.overview.messages.item-added-title', 'i18n.domain.administration.overview.messages.item-added-success');\r\n }\r\n\r\n private removeItemSuccess(): void {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showSuccess('i18n.domain.administration.overview.messages.item-removed-title', 'i18n.domain.administration.overview.messages.item-removed-success');\r\n }\r\n\r\n private moveItemSuccess(): void {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showSuccess('i18n.domain.administration.overview.messages.item-moved-title', 'i18n.domain.administration.overview.messages.item-moved-success');\r\n }\r\n\r\n private moveItemError(): Observable {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showError('i18n.errors.server-error.title', 'i18n.errors.server-error.message', null, ErrorType.serverError);\r\n return of(null);\r\n }\r\n}\r\n","import { DataManager } from '@syncfusion/ej2-data';\r\nimport { Component } from '@angular/core';\r\nimport { DragAndDropEventArgs, FieldsSettingsModel, ToolbarModule, TreeViewModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { AdministrationItemType, DetailsInitInfo, IItemData, ItemEventInfo, ITreeNodeData } from '../../data-structures';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { AvpCustomAdaptor } from 'src/app/base/shared/syncfusion/avp-custom-adaptor';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { ToastService } from 'src/app/base/services/toast.service';\r\nimport { ITreeViewComponent } from '../tree-view.interface';\r\nimport { TreeViewConfigBasedService } from './tree-view-config-based.service';\r\nimport { ModalService } from 'src/app/base/shared/modal/modal.service';\r\nimport { TreeViewBaseComponent } from '../tree-view-base.component';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgIf, NgClass } from '@angular/common';\r\nimport { TooltipModule } from '@syncfusion/ej2-angular-popups';\r\nimport { IConfigBasedStructuralEntryDTO, ParkingSubscriptionDTO } from 'src/app/base/models/models.swagger.generated';\r\n\r\n@Component({\r\n selector: 'app-tree-view-config-based',\r\n templateUrl: './tree-view-config-based.component.html',\r\n styleUrls: ['./tree-view-config-based.component.scss'],\r\n standalone: true,\r\n imports: [TooltipModule, ToolbarModule, NgIf, TreeViewModule, NgClass, TranslateModule]\r\n})\r\nexport class TreeViewConfigBasedComponent extends TreeViewBaseComponent implements ITreeViewComponent {\r\n public treeViewFieldSetting: FieldsSettingsModel;\r\n\r\n public canAddTariff = false;\r\n public canRemoveTariff = false;\r\n public canAddSubscription = false;\r\n public canAddStructuralEntry = false;\r\n public canRemoveStructuralEntry = false;\r\n public canRemoveSubscription = false;\r\n\r\n public tooltipAnimation = { open: { effect: 'FadeIn', delay: 500 }, close: { effect: 'None' } };\r\n\r\n private fieldNames: FieldsSettingsModel = {\r\n id: 'id',\r\n parentID: 'parentId',\r\n };\r\n\r\n private get itemCache() {\r\n return this.service.itemCache;\r\n }\r\n\r\n constructor(private service: TreeViewConfigBasedService,\r\n clientService: ClientService,\r\n private spinnerService: SpinnerService,\r\n modalService: ModalService,\r\n private toastService: ToastService) {\r\n super(clientService, modalService);\r\n const dataSource = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.service, this.spinnerService)\r\n });\r\n this.treeViewFieldSetting = Object.assign({dataSource}, this.fieldNames);\r\n }\r\n\r\n public getTreeItemClasses(item: IItemData): string[] {\r\n const classes = [];\r\n classes.push(this.getIconClassByType(item.type));\r\n if (item.dto?.isSubscriptionSet === true) {\r\n classes.push('subscription-set');\r\n }\r\n return classes;\r\n }\r\n\r\n // methods from ITreeViewComponent\r\n public addNode(eventInfo: ItemEventInfo): void {\r\n const parentId = this.parentInfo.item.id;\r\n const parentNodeId = this.parentInfo.item.treeNodeId;\r\n const createdNode = this.handleAddNodeEvent(eventInfo, this.service.getNextNodeId(eventInfo.id, eventInfo.type));\r\n if (createdNode) {\r\n // if node was not added to parent since it was not collapsed yet\r\n this.itemCache.addOrUpdateItem(createdNode.itemData);\r\n }\r\n if (eventInfo.type === AdministrationItemType.Tariff) {\r\n this.addTariffNodeOnSubscriptionNodes(parentId, createdNode, parentNodeId);\r\n }\r\n else if (eventInfo.type === AdministrationItemType.Subscription) {\r\n const item = this.itemCache.getCachedItem(parentId, AdministrationItemType.ConfigBasedStructuralElement);\r\n if (item) {\r\n (item.itemData.dto as IConfigBasedStructuralEntryDTO).hasSubscriptions = true;\r\n }\r\n }\r\n else if (eventInfo.type === AdministrationItemType.ConfigBasedStructuralElement) {\r\n const item = this.itemCache.getCachedItem(parentId, AdministrationItemType.ConfigBasedStructuralElement);\r\n if (item) {\r\n (item.itemData.dto as IConfigBasedStructuralEntryDTO).hasChildEntries = true;\r\n }\r\n }\r\n this.updateCanAddXyFlags();\r\n }\r\n\r\n public removeNode(eventInfo: ItemEventInfo): void {\r\n this.handleRemoveNodeEvent(eventInfo);\r\n if (eventInfo.type === AdministrationItemType.Tariff) {\r\n this.removeTariffNodes(eventInfo.data.id);\r\n this.itemCache.removeItem(eventInfo.id, eventInfo.type);\r\n }\r\n }\r\n\r\n protected isItemInactive(eventInfo: ItemEventInfo): boolean {\r\n if (eventInfo.type === AdministrationItemType.Tariff || eventInfo.type === AdministrationItemType.Subscription) {\r\n return !(eventInfo.data as any).active;\r\n }\r\n if (eventInfo.type === AdministrationItemType.ZoneDevice) {\r\n return !(eventInfo.data as any).enabled;\r\n }\r\n return false;\r\n }\r\n\r\n public updateNode(eventInfo: ItemEventInfo): void {\r\n this.handleUpdateNodeEvent(eventInfo);\r\n }\r\n // end methods from ITreeViewComponent\r\n\r\n public onNodeDragStart(args: DragAndDropEventArgs) {\r\n const info = this.parseNodeId(args.draggedNodeData.id as string) as DetailsInitInfo;\r\n if (info.type === AdministrationItemType.ConfigBasedStructuralElementCollection) {\r\n args.cancel = true;\r\n }\r\n\r\n if (info.type === AdministrationItemType.Tariff) {\r\n const nodeData = this.tree.getTreeData(args.draggedNodeData.id as string)?.at(0)?.itemData as IItemData;\r\n const parentNodeData = this.tree.getTreeData(args.draggedNodeData.parentID as string)?.at(0)?.itemData as IItemData;\r\n if (parentNodeData?.dto?.active && nodeData?.dto?.active) {\r\n args.cancel = true;\r\n this.toastService.showWarning('i18n.domain.administration.overview.messages.active-item-cannot-be-moved-title', 'i18n.domain.administration.overview.messages.active-item-cannot-be-moved-message');\r\n }\r\n }\r\n }\r\n\r\n public override onNodeDragStop(args: DragAndDropEventArgs): void {\r\n super.onNodeDragStop(args);\r\n if (args.cancel) {\r\n return;\r\n }\r\n\r\n // all actions need to be handled within this method programmatically, because of proper positioning within parent node\r\n args.cancel = true;\r\n\r\n const info = this.parseNodeId(args.draggedNodeData.id as string) as DetailsInitInfo;\r\n const sourceInfo = this.parseNodeId(args.draggedNodeData.parentID as string) as DetailsInitInfo;\r\n const targetInfo = this.parseNodeId(args.droppedNodeData.id as string) as DetailsInitInfo;\r\n\r\n switch (info.type) {\r\n case AdministrationItemType.ConfigBasedStructuralElement:\r\n this.service.moveStructuralEntry(info.id, sourceInfo.id, targetInfo.id).subscribe(() => {\r\n this.moveNode(args.draggedNodeData.id as string, args.droppedNodeData.id as string);\r\n });\r\n return;\r\n case AdministrationItemType.Tariff:\r\n this.service.moveTariff(info.id, targetInfo.type === AdministrationItemType.Subscription ? targetInfo.id : null).subscribe(() => {\r\n if (sourceInfo.type === AdministrationItemType.Subscription) {\r\n // remove tariff nodes from subscription nodes with same subscriptionId\r\n const sourceNodes = this.findAllNodesOfTree(sourceInfo.id, AdministrationItemType.Subscription);\r\n const sourceNodeIds = sourceNodes.map((node) => node.id);\r\n this.findAllNodesOfTree(info.id, AdministrationItemType.Tariff).forEach((node) => {\r\n if (node.id === args.draggedNodeData.id) {\r\n return;\r\n }\r\n if (sourceNodeIds.find((value) => value === node.parentId)) {\r\n this.tree.removeNodes([node.id]);\r\n }\r\n });\r\n\r\n // add tariff nodes to subscription nodes with same subscriptionId\r\n const nodeData = this.tree.getTreeData(args.draggedNodeData.id as string)?.at(0) as any as ITreeNodeData;\r\n const targetNodes = this.findAllNodesOfTree(targetInfo.id, AdministrationItemType.Subscription);\r\n targetNodes.forEach((targetNode) => {\r\n if (targetNode.id === args.droppedNodeData.id) {\r\n return;\r\n }\r\n if (!targetNode.expanded && (!targetNode.child || targetNode.child.length === 0)) {\r\n // node was not expanded yet\r\n targetNode.hasChildren = true;\r\n this.tree.refreshNode(targetNode.id as string, targetNode as any);\r\n return;\r\n }\r\n const newNodeData: ITreeNodeData = {\r\n id: this.service.getNextNodeId(info.id, AdministrationItemType.Tariff),\r\n hasChildren: false,\r\n itemData: nodeData.itemData,\r\n }\r\n this.addNodeAtProperPosition(newNodeData, targetNode as any);\r\n this.tree.refreshNode(targetNode.id as string, targetNode as any);\r\n });\r\n }\r\n\r\n this.moveNode(args.draggedNodeData.id as string, args.droppedNodeData.id as string);\r\n });\r\n\r\n return;\r\n case AdministrationItemType.Subscription:\r\n const isCopyMode = this.isCopyMode(args);\r\n if (isCopyMode){\r\n this.service.addSubscriptionToElement(info.id, targetInfo.id).subscribe((treeNode) => {\r\n this.addNodeAtProperPositionByParentNodeId(treeNode, args.droppedNodeData.id as string);\r\n this.updateNode(treeNode);\r\n });\r\n } else {\r\n this.service.moveSubscriptionFromElement(info.id, sourceInfo.id, targetInfo.id).subscribe((dto: ParkingSubscriptionDTO) => {\r\n if (targetInfo.type == AdministrationItemType.SubscriptionCollection && dto.structuralEntries?.length >= 1) {\r\n // don't add subscription to unassigned subscriptions node if we still have assignments\r\n return;\r\n }\r\n this.moveNode(args.draggedNodeData.id as string, args.droppedNodeData.id as string);\r\n });\r\n }\r\n\r\n return;\r\n }\r\n }\r\n\r\n public onRemoveStructuralEntry() {\r\n const dialog = this.modalService.showOkCancelDialog('i18n.domain.administration.overview.messages.structural-entry-delete-title', 'i18n.domain.administration.overview.messages.structural-entry-delete-question');\r\n dialog.onOkSubject.subscribe(() => {\r\n this.service.deleteStructuralEntry(this.selectedItem.id, this.selectedItem.parentId).subscribe(() => {\r\n this.tree.removeNodes([this.selectedItem.treeNodeId]);\r\n this.setSelectedItem(null);\r\n this.tree.selectedNodes = [];\r\n this.updateCanAddXyFlags();\r\n });\r\n });\r\n }\r\n\r\n public onRemoveSubscription() {\r\n const dialog = this.modalService.showOkCancelDialog('i18n.domain.administration.overview.messages.subscription-detach-title', 'i18n.domain.administration.overview.messages.subscription-detach-question');\r\n dialog.onOkSubject.subscribe(() => {\r\n this.service.deleteSubscriptionFromElement(this.selectedItem.id, this.selectedItem.parentId).subscribe((dto: ParkingSubscriptionDTO) => {\r\n if (dto.structuralEntries == null || dto.structuralEntries.length === 0) {\r\n // move subscription to unassigned subscriptions node\r\n this.moveNode(this.selectedItem.treeNodeId, this.service.subscriptionCollectionId);\r\n } else {\r\n this.tree.removeNodes([this.selectedItem.treeNodeId]);\r\n }\r\n this.setSelectedItem(null);\r\n this.tree.selectedNodes = [];\r\n this.updateCanAddXyFlags();\r\n });\r\n });\r\n }\r\n\r\n public onAddStructuralEntry() {\r\n this.onAddNewItem(AdministrationItemType.ConfigBasedStructuralElement);\r\n }\r\n\r\n public onAddTariff() {\r\n this.onAddNewItem(AdministrationItemType.Tariff);\r\n }\r\n\r\n public onAddSubscription() {\r\n this.onAddNewItem(AdministrationItemType.Subscription);\r\n }\r\n\r\n protected updateCanAddXyFlags() {\r\n // because of change after check issue, we need to use flags and cannot use getter methods\r\n this.canAddStructuralEntry = !!(this.selectedItem && (this.selectedItem?.type === AdministrationItemType.ConfigBasedStructuralElementCollection || (this.selectedItem?.id && this.selectedItem?.type === AdministrationItemType.ConfigBasedStructuralElement)));\r\n this.canRemoveStructuralEntry = !!(this.selectedItem?.id && this.selectedItem?.type === AdministrationItemType.ConfigBasedStructuralElement && !(this.selectedItem?.itemData?.dto as IConfigBasedStructuralEntryDTO).hasChildEntries && !(this.selectedItem?.itemData?.dto as IConfigBasedStructuralEntryDTO).hasSubscriptions);\r\n this.canAddTariff = !!(this.selectedItem?.id && this.selectedItem?.type === AdministrationItemType.Subscription);\r\n this.canRemoveTariff = !!(this.selectedItem?.id && this.selectedItem?.type === AdministrationItemType.Tariff);\r\n this.canAddSubscription = !!(this.selectedItem?.id && this.selectedItem?.type === AdministrationItemType.ConfigBasedStructuralElement);\r\n this.canRemoveSubscription = !!(this.selectedItem?.id && this.selectedItem?.type === AdministrationItemType.Subscription);\r\n }\r\n\r\n protected canDropNode(args: DragAndDropEventArgs): boolean {\r\n const draggedNode = args.draggedNodeData;\r\n const droppedNode = args.droppedNodeData;\r\n const isCopyMode = this.isCopyMode(args);\r\n if (draggedNode == null || droppedNode == null || draggedNode.parentID === droppedNode.id) {\r\n return false;\r\n }\r\n\r\n const info = this.parseNodeId(draggedNode.id as string) as DetailsInitInfo;\r\n const targetInfo = this.parseNodeId(droppedNode.id as string) as DetailsInitInfo;\r\n switch (info.type) {\r\n case AdministrationItemType.ConfigBasedStructuralElement:\r\n return (targetInfo.type === AdministrationItemType.ConfigBasedStructuralElementCollection || targetInfo.type === AdministrationItemType.ConfigBasedStructuralElement) && !isCopyMode;\r\n case AdministrationItemType.Tariff:\r\n const targetNodeData = this.tree.getTreeData(droppedNode.id as string)?.at(0)?.itemData as IItemData;\r\n return ((targetInfo.type === AdministrationItemType.Subscription && !targetNodeData.dto?.active) || targetInfo.type === AdministrationItemType.TariffCollection) && !isCopyMode;\r\n case AdministrationItemType.Subscription:\r\n return targetInfo.type === AdministrationItemType.ConfigBasedStructuralElement || targetInfo.type === AdministrationItemType.SubscriptionCollection;\r\n default:\r\n return false;\r\n }\r\n }\r\n\r\n protected parseNodeId(nodeId: string): DetailsInitInfo {\r\n return this.service.parseNodeId(nodeId);\r\n }\r\n\r\n private addTariffNodeOnSubscriptionNodes(subscriptionId: number, tariffNode: ITreeNodeData, ignoreNodeId: string = null) {\r\n const affectedSubscriptions = this.findAllNodesOfTree(subscriptionId, AdministrationItemType.Subscription);\r\n affectedSubscriptions.forEach((subscription) => {\r\n if (subscription.id === ignoreNodeId) {\r\n return;\r\n }\r\n\r\n const dto = subscription.itemData?.dto as ParkingSubscriptionDTO;\r\n if (dto) {\r\n subscription.hasChildren = dto.tariffs?.length > 0;\r\n }\r\n\r\n const nodeData: ITreeNodeData = {\r\n id: this.service.getNextNodeId(tariffNode.itemData.dto.id, AdministrationItemType.Tariff),\r\n hasChildren: false,\r\n itemData: tariffNode.itemData,\r\n }\r\n this.addNodeAtProperPosition(nodeData, subscription as any);\r\n this.tree.refreshNode(subscription.id as string, subscription as any);\r\n });\r\n }\r\n\r\n private removeTariffNodes(tariffId: number) {\r\n const affectedTariffNodes = this.findAllNodesOfTree(tariffId, AdministrationItemType.Tariff);\r\n affectedTariffNodes.forEach((tariffNode) => {\r\n this.tree.removeNodes([tariffNode.id]);\r\n });\r\n }\r\n}\r\n","\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n {{data.itemData.name | translate}}\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { Injectable } from '@angular/core';\r\nimport { Observable, catchError, of, tap } from 'rxjs';\r\nimport { ConfigBasedAdminClient, ConfigBasedStructuralEntryDTO, CreateConfigBasedStructuralEntryDTO, UpdateConfigBasedStructuralEntryDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { ToastService } from 'src/app/base/services/toast.service';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { ErrorType } from 'src/app/core/routing/error-types';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class StructuralEntryDetailsService {\r\n public isBusy = false;\r\n\r\n constructor(\r\n private configBasedAdminClient: ConfigBasedAdminClient,\r\n private toastService: ToastService,\r\n private spinnerService: SpinnerService) { }\r\n\r\n public reset(): void {\r\n this.isBusy = false;\r\n }\r\n\r\n public getEntry(entryId: number): Observable {\r\n this.spinnerService.showSpinner = true;\r\n return this.configBasedAdminClient.getConfigBasedStructuralEntry(entryId).pipe(\r\n tap(() => {\r\n this.spinnerService.showSpinner = false;\r\n }),\r\n catchError((error: any) => {\r\n this.spinnerService.showSpinner = false;\r\n return of(null);\r\n })\r\n );\r\n }\r\n\r\n public createEntry(createEntryDTO: CreateConfigBasedStructuralEntryDTO): Observable {\r\n this.spinnerService.showSpinner = true;\r\n this.isBusy = true;\r\n return this.configBasedAdminClient.createConfigBasedStructuralEntry(createEntryDTO)\r\n .pipe(\r\n tap(() => {\r\n this.isBusy = false;\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showSuccess(\r\n 'i18n.domain.administration.structural-entry-details.messages.add-title',\r\n 'i18n.domain.administration.structural-entry-details.messages.add-success-message'\r\n );\r\n }),\r\n catchError((error: any) => {\r\n this.isBusy = false;\r\n this.spinnerService.showSpinner = false;\r\n if (!this.toastService.doesErrorExistAlready(ErrorType.serverError)) {\r\n this.toastService.showError('i18n.errors.server-error.title', 'i18n.errors.server-error.message', null, ErrorType.serverError);\r\n }\r\n return of(error);\r\n })\r\n );\r\n }\r\n\r\n public updateEntry(updateEntryDTO: UpdateConfigBasedStructuralEntryDTO): Observable {\r\n this.spinnerService.showSpinner = true;\r\n this.isBusy = true;\r\n return this.configBasedAdminClient.updateConfigBasedStructuralEntry(updateEntryDTO)\r\n .pipe(\r\n tap(() => {\r\n this.isBusy = false;\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showSuccess(\r\n 'i18n.domain.administration.structural-entry-details.messages.update-title',\r\n 'i18n.domain.administration.structural-entry-details.messages.update-success-message'\r\n );\r\n }),\r\n catchError((error: any) => {\r\n this.isBusy = false;\r\n this.spinnerService.showSpinner = false;\r\n if (!this.toastService.doesErrorExistAlready(ErrorType.serverError)) {\r\n this.handleErrorResponse(error);\r\n }\r\n return of(error);\r\n })\r\n );\r\n }\r\n\r\n public deleteEntry(id: number): Observable {\r\n this.isBusy = true;\r\n this.spinnerService.showSpinner = true;\r\n return this.configBasedAdminClient.deleteConfigBasedStructuralEntry(id)\r\n .pipe(\r\n tap(() => {\r\n this.isBusy = false;\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showSuccess(\r\n 'i18n.domain.administration.structural-entry-details.messages.delete-title',\r\n 'i18n.domain.administration.structural-entry-details.messages.delete-success-message'\r\n );\r\n }),\r\n catchError((error: any) => {\r\n this.isBusy = false;\r\n this.spinnerService.showSpinner = false;\r\n if (!this.toastService.doesErrorExistAlready(ErrorType.serverError)) {\r\n this.toastService.showError('i18n.errors.server-error.title', 'i18n.errors.server-error.message', null, ErrorType.serverError);\r\n }\r\n return of(error);\r\n })\r\n );\r\n }\r\n\r\n private handleErrorResponse(error: any) {\r\n if (error && error.response) {\r\n try {\r\n const errorObject = JSON.parse(error.response);\r\n if (errorObject.ErrorCode) {\r\n this.toastService.showError('i18n.errors.server-error.title',\r\n 'i18n.domain.request-management.errors.' + errorObject.ErrorCode,\r\n null, ErrorType.serverError);\r\n }\r\n else {\r\n this.toastService.showError('i18n.errors.server-error.title', 'i18n.errors.server-error.message',\r\n null, ErrorType.serverError);\r\n }\r\n }\r\n catch\r\n {\r\n this.toastService.showError('i18n.errors.server-error.title', 'i18n.errors.server-error.message',\r\n null, ErrorType.serverError);\r\n }\r\n }\r\n else {\r\n this.toastService.showError('i18n.errors.server-error.title', 'i18n.errors.server-error.message',\r\n null, ErrorType.serverError);\r\n }\r\n }\r\n}\r\n","import { Component, EventEmitter, Input, Output, OnDestroy } from '@angular/core';\r\nimport { FormBuilder, FormControl, FormGroup, Validators, ReactiveFormsModule, Form } from '@angular/forms';\r\nimport { ConfigBasedStructuralEntryDTO, CreateConfigBasedStructuralEntryDTO, UpdateConfigBasedStructuralEntryDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { DetailsInitInfo } from '../../data-structures';\r\nimport { ModalService } from 'src/app/base/shared/modal/modal.service';\r\nimport { Subscription } from 'rxjs';\r\nimport { StructuralEntryDetailsService } from './structural-entry-details.service';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { AppErrorMessagesComponent } from '../../../../../base/error-messages/app-error-messages.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { YesNoGroupButtonComponent } from 'src/app/base/shared/yes-no-group-button/yes-no-group-button.component';\r\n\r\nexport type EntryEditFormType = {\r\n id: FormControl;\r\n name: FormControl;\r\n isSubscriptionSet: FormControl;\r\n};\r\n\r\n@Component({\r\n selector: 'app-structural-entry-details',\r\n templateUrl: './structural-entry-details.component.html',\r\n styleUrls: ['./structural-entry-details.component.scss'],\r\n standalone: true,\r\n imports: [NgIf, ReactiveFormsModule, AppErrorMessagesComponent, YesNoGroupButtonComponent, TranslateModule]\r\n})\r\nexport class StructuralEntryDetailsComponent implements OnDestroy {\r\n @Input() public set detailsInitInfo(value: DetailsInitInfo) {\r\n const valueStr = value ? JSON.stringify(value) : null;\r\n const detailsInitInfoStr = this._detailInitInfo ? JSON.stringify(this._detailInitInfo) : null;\r\n if (valueStr != detailsInitInfoStr) {\r\n this.service.reset();\r\n this._detailInitInfo = value;\r\n if (value?.id) {\r\n this.service.getEntry(value.id).subscribe((entry: ConfigBasedStructuralEntryDTO) => {\r\n this._selectedEntry = entry;\r\n this.addEntry = false;\r\n this.loadFormData();\r\n });\r\n } else {\r\n this._selectedEntry = null;\r\n this.loadFormData();\r\n this.addEntry = true;\r\n }\r\n }\r\n }\r\n\r\n @Output() public cancel = new EventEmitter();\r\n @Output() public entryCreated = new EventEmitter();\r\n @Output() public entryUpdated = new EventEmitter();\r\n @Output() public entryDeleted = new EventEmitter();\r\n @Output() public hasPendingDetailChangesChanged = new EventEmitter();\r\n\r\n public entryForm: FormGroup;\r\n public formChanged = false;\r\n\r\n public get isFormReady(): boolean {\r\n return !!this.entryForm && (!!this._selectedEntry || this.addEntry);\r\n }\r\n\r\n public get cancelButtonText(): string {\r\n if (this.formChanged) {\r\n return 'i18n.shared.cancel';\r\n }\r\n return 'i18n.shared.close';\r\n }\r\n\r\n public get isBusy(): boolean {\r\n return this.service.isBusy;\r\n }\r\n\r\n private addEntry = false;\r\n private formInitialValue;\r\n private _selectedEntry: ConfigBasedStructuralEntryDTO;\r\n private _detailInitInfo: DetailsInitInfo;\r\n private subscriptions = new Subscription();\r\n\r\n constructor(\r\n private service: StructuralEntryDetailsService,\r\n private modalService: ModalService,\r\n private fb: FormBuilder) {\r\n this.entryForm = this.fb.group({\r\n id: this.fb.control(null),\r\n name: this.fb.control(null, Validators.required),\r\n isSubscriptionSet: this.fb.control(false),\r\n });\r\n\r\n this.subscriptions.add(this.entryForm.valueChanges.subscribe((v) => {\r\n const hasChanges = !(JSON.stringify(this.formInitialValue) === JSON.stringify(this.entryForm.getRawValue()));\r\n this.updateFormChangedState(hasChanges);\r\n }));\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.subscriptions.unsubscribe();\r\n }\r\n\r\n public onCancelClicked() {\r\n this.cancel.emit();\r\n }\r\n\r\n public submitForm() {\r\n const data = this.getDTOFromFormData();\r\n if (this._selectedEntry != null) {\r\n this.service.updateEntry(data as UpdateConfigBasedStructuralEntryDTO).subscribe((entry: ConfigBasedStructuralEntryDTO) => {\r\n this.entryUpdated.emit(entry);\r\n this._selectedEntry = entry;\r\n this.loadFormData();\r\n });\r\n } else {\r\n this.service.createEntry(data as CreateConfigBasedStructuralEntryDTO).subscribe((entry: ConfigBasedStructuralEntryDTO) => {\r\n this.entryCreated.emit(entry);\r\n this.closeForm();\r\n });\r\n }\r\n }\r\n\r\n public onDelete() {\r\n const dialog = this.modalService.showOkCancelDialog('i18n.core.modal.delete.title', 'i18n.core.modal.delete.content');\r\n dialog.onOkSubject.subscribe(() => {\r\n this.service.deleteEntry(this._selectedEntry.id).subscribe(data => {\r\n const id = this._selectedEntry.id;\r\n this.closeForm();\r\n this.entryDeleted.emit(id);\r\n });\r\n });\r\n }\r\n\r\n private closeForm() {\r\n this.addEntry = false;\r\n this.updateFormChangedState(false);\r\n this._selectedEntry = null;\r\n }\r\n\r\n private loadFormData() {\r\n if (this._selectedEntry) {\r\n this.entryForm.reset({\r\n id: this._selectedEntry.id,\r\n name: this._selectedEntry.name ?? '',\r\n isSubscriptionSet: this._selectedEntry.isSubscriptionSet ?? false\r\n }, {onlySelf: true});\r\n } else {\r\n this.entryForm.reset();\r\n }\r\n this.formInitialValue = this.entryForm.getRawValue();\r\n this.updateFormChangedState(false);\r\n }\r\n\r\n private getDTOFromFormData(): CreateConfigBasedStructuralEntryDTO | UpdateConfigBasedStructuralEntryDTO {\r\n const rawValue = this.entryForm.value;\r\n let dto: CreateConfigBasedStructuralEntryDTO | UpdateConfigBasedStructuralEntryDTO;\r\n if (this._selectedEntry != null) {\r\n dto = new UpdateConfigBasedStructuralEntryDTO({\r\n id: this._selectedEntry.id,\r\n name: rawValue.name,\r\n isSubscriptionSet: rawValue.isSubscriptionSet ?? false\r\n });\r\n } else {\r\n dto = new CreateConfigBasedStructuralEntryDTO({\r\n parentId: this._detailInitInfo.parentId > 0 ? this._detailInitInfo.parentId : null,\r\n clientId: this._detailInitInfo.clientId,\r\n name: rawValue.name,\r\n isSubscriptionSet: rawValue.isSubscriptionSet ?? false\r\n });\r\n }\r\n return dto;\r\n }\r\n\r\n private updateFormChangedState(hasChanges: boolean) {\r\n if (this.formChanged !== hasChanges) {\r\n this.formChanged = hasChanges;\r\n this.hasPendingDetailChangesChanged.emit(hasChanges);\r\n }\r\n }\r\n}\r\n","
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n","export interface DurationMembers {\r\n days: number;\r\n hours: number;\r\n minutes: number;\r\n}\r\n\r\nexport class MultiFieldDurationPickerHelper {\r\n public static createDurationMembers(totalMinutes: number): DurationMembers {\r\n if (totalMinutes == null) {\r\n return {days: null, hours: null, minutes: null};\r\n }\r\n const days = Math.floor(totalMinutes / (24 * 60));\r\n const leftMinutes = (totalMinutes % (24 * 60));\r\n const hours = Math.floor(leftMinutes / 60);\r\n const minutes = leftMinutes % 60;\r\n return {days, hours, minutes};\r\n }\r\n\r\n public static calculateTotalMinutes(days: number, hours: number, minutes: number, setZeroAsNull: boolean) {\r\n const totalMinutes = ((days ?? 0) * 24 + (hours ?? 0)) * 60 + (minutes ?? 0);\r\n if (!totalMinutes && setZeroAsNull) {\r\n return null;\r\n }\r\n return totalMinutes;\r\n }\r\n}\r\n","export enum CurrencyCents {\r\n Rp = 0,\r\n Cents = 1,\r\n}\r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { UntypedFormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { NumericDirective } from '../../../directives/numeric.directive';\r\n\r\n@Component({\r\n selector: 'app-multi-field-duration-picker',\r\n templateUrl: './multi-field-duration-picker.component.html',\r\n styleUrls: ['./multi-field-duration-picker.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, NumericDirective]\r\n})\r\nexport class MultiFieldDurationPickerComponent implements OnInit {\r\n @Input() public form: UntypedFormGroup;\r\n\r\n constructor() { }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","
    \r\n
    \r\n \r\n d\r\n
    \r\n
    \r\n \r\n h\r\n
    \r\n
    \r\n \r\n min\r\n
    \r\n
    \r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { Currency, MultipleCarsPerUserTreatAs, ParkingSubscriptionType, ParkingSubscriptionUsage, ParkingSubscriptionPaidBy as ParkingSubscriptionPaidBy } from 'src/app/base/models/models.swagger.generated';\r\nimport { CurrencyCents } from './currency-cents';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NumericTextBoxModule } from '@syncfusion/ej2-angular-inputs';\r\nimport { NgClass } from '@angular/common';\r\nimport { MultiFieldDurationPickerComponent } from '../../../../../../base/shared/multi-field-duration-picker/multi-field-duration-picker.component';\r\nimport { ButtonGroupComponent } from '../../../../../../base/shared/button-group/button-group.component';\r\nimport { YesNoGroupButtonComponent } from '../../../../../../base/shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { AppErrorMessagesComponent } from '../../../../../../base/error-messages/app-error-messages.component';\r\nimport { SubscriptionEditFormGroup } from './subscription-details-general-form.type';\r\n\r\nexport type MaxParkingDurationInMinFormType = {\r\n days: FormControl;\r\n hours: FormControl;\r\n minutes: FormControl;\r\n};\r\n\r\n@Component({\r\n selector: 'app-subscription-details-general',\r\n templateUrl: './subscription-details-general.component.html',\r\n styleUrls: ['./subscription-details-general.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, AppErrorMessagesComponent, YesNoGroupButtonComponent, ButtonGroupComponent, MultiFieldDurationPickerComponent, NgClass, NumericTextBoxModule, TranslateModule]\r\n})\r\nexport class SubscriptionDetailsGeneralComponent implements OnInit {\r\n\r\n @Input() subscriptionForm: SubscriptionEditFormGroup;\r\n\r\n public CurrencyEnum = Currency;\r\n public CurrencyCentsEnum = CurrencyCents;\r\n public ParkingSubscriptionType = ParkingSubscriptionType;\r\n public MultipleCarsPerUserTreatAs = MultipleCarsPerUserTreatAs;\r\n public Usage = ParkingSubscriptionUsage;\r\n public PaidBy = ParkingSubscriptionPaidBy;\r\n\r\n constructor() { }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n \r\n\r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n {{'i18n.domain.administration.subscription-details.general-tab.assignable' | translate}}:\r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n {{' min'}}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n {{'i18n.shared.currencyCents.' + CurrencyCentsEnum[subscriptionForm.controls.currency.value] | translate}}\r\n \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n {{'i18n.shared.currencies.' + CurrencyEnum[subscriptionForm.controls.currency.value] | translate}}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n {{'i18n.shared.currencies.' + CurrencyEnum[subscriptionForm.controls.currency.value] | translate}}\r\n \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n
    \r\n
    {{subscriptionForm.controls.modifiedBy.value}}
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    {{subscriptionForm.controls.modifiedOn.value}}
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { ParkingTariffLimitedDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgFor } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-subscription-details-tariffs',\r\n templateUrl: './subscription-details-tariffs.component.html',\r\n styleUrls: ['./subscription-details-tariffs.component.scss'],\r\n standalone: true,\r\n imports: [NgFor, TranslateModule]\r\n})\r\nexport class SubscriptionDetailsTariffsComponent implements OnInit {\r\n\r\n @Input() assignedTariffs: ParkingTariffLimitedDTO[];\r\n\r\n constructor() { }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    {{tariff.name}}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { AfterViewInit, Directive, ElementRef, Input, Renderer2 } from \"@angular/core\";\r\n\r\nexport enum MessageSeverity {\r\n Success,\r\n Info,\r\n Warning,\r\n Error,\r\n AVPColors\r\n}\r\n\r\nexport enum MessageVariant {\r\n Filled,\r\n Outlined,\r\n Standart,\r\n}\r\n\r\n@Directive({\r\n selector: '[appMessageDirective]',\r\n standalone: true,\r\n})\r\nexport class MessageDirective implements AfterViewInit{\r\n\r\n @Input()\r\n public variant: MessageVariant;\r\n\r\n @Input()\r\n public severity: MessageSeverity;\r\n\r\n /**\r\n * Add css classes separated by comma\r\n */\r\n @Input()\r\n public cssClass: string;\r\n\r\n constructor(private _renderer:Renderer2, private _el: ElementRef) {\r\n\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n // Get parent of the original input element\r\n var parent = this._el.nativeElement.parentNode;\r\n\r\n // Create a div\r\n var divElement = this._renderer.createElement(\"div\");\r\n this.setCssClasses(divElement);\r\n\r\n // Add the div, just before the element\r\n this._renderer.insertBefore(parent, divElement, this._el.nativeElement);\r\n\r\n // Remove the element\r\n this._renderer.removeChild(parent, this._el.nativeElement);\r\n\r\n //Add Icon\r\n var spanElement = this._renderer.createElement(\"span\");\r\n this._renderer.addClass(spanElement, \"e-msg-icon\");\r\n if (this.severity == MessageSeverity.AVPColors) {\r\n this._renderer.addClass(spanElement, \"avp-colors\");\r\n }\r\n this._renderer.appendChild(divElement, spanElement);\r\n\r\n // Re-add text element inside the div\r\n this._renderer.appendChild(divElement, this._el.nativeElement);\r\n this._renderer.addClass(this._el.nativeElement, \"e-msg-content\");\r\n }\r\n\r\n private setCssClasses(divElement: any) {\r\n this._renderer.addClass(divElement, \"e-control\");\r\n this._renderer.addClass(divElement, \"e-message\");\r\n this._renderer.addClass(divElement, \"e-lib\");\r\n\r\n if (this.cssClass) {\r\n this.cssClass.split(\",\").forEach((cssClass) => {\r\n this._renderer.addClass(divElement, cssClass);\r\n });\r\n }\r\n\r\n switch (this.variant) {\r\n case MessageVariant.Filled:\r\n this._renderer.addClass(divElement, \"e-filled\");\r\n break;\r\n case MessageVariant.Outlined:\r\n this._renderer.addClass(divElement, \"e-outlined\");\r\n break;\r\n }\r\n\r\n switch (this.severity) {\r\n case MessageSeverity.Success:\r\n this._renderer.addClass(divElement, \"e-success\");\r\n break;\r\n case MessageSeverity.Info:\r\n this._renderer.addClass(divElement, \"e-info\");\r\n break;\r\n case MessageSeverity.Warning:\r\n this._renderer.addClass(divElement, \"e-warning\");\r\n break;\r\n case MessageSeverity.Error:\r\n this._renderer.addClass(divElement, \"e-error\");\r\n break;\r\n case MessageSeverity.AVPColors:\r\n this._renderer.addClass(divElement, \"avp-colors\");\r\n break;\r\n }\r\n }\r\n}\r\n","import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';\r\nimport {\r\n ClientDTO,\r\n CreateParkingSubscriptionDTO,\r\n Currency,\r\n IParkingSubscriptionDTO,\r\n MultipleCarsPerUserTreatAs,\r\n ParkingSubscriptionType,\r\n UpdateParkingSubscriptionDTO,\r\n ParkingSubscriptionUsage,\r\n ParkingSubscriptionPaidBy,\r\n} from 'src/app/base/models/models.swagger.generated';\r\nimport { AbstractControl, FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { forkJoin, merge, Observable, of, Subscription } from 'rxjs';\r\nimport { ToastService } from 'src/app/base/services/toast.service';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { map, startWith } from 'rxjs/operators';\r\nimport { ModalService } from 'src/app/base/shared/modal/modal.service';\r\nimport { FormHelper } from 'src/app/base/shared/form-helper';\r\nimport { MultiFieldDurationPickerHelper } from 'src/app/base/shared/multi-field-duration-picker/multi-field-duration-picker-helper';\r\nimport { SubscriptionDetailsService } from './subscription-details.service';\r\nimport { AdministrationItemType, DetailsInitInfo } from '../../data-structures';\r\nimport { MaxParkingDurationInMinFormType, SubscriptionDetailsGeneralComponent } from './subscription-details-general/subscription-details-general.component';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { SubscriptionDetailsTariffsComponent } from './subscription-details-tariffs/subscription-details-tariffs.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { TabModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { SubscriptionEditFormType } from './subscription-details-general/subscription-details-general-form.type';\r\nimport { MessageDirective, MessageSeverity, MessageVariant } from 'src/app/directives/message.directive';\r\n\r\n@Component({\r\n selector: 'app-subscription-details',\r\n templateUrl: './subscription-details.component.html',\r\n styleUrls: ['./subscription-details.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TabModule,\r\n NgIf,\r\n SubscriptionDetailsGeneralComponent,\r\n SubscriptionDetailsTariffsComponent,\r\n TranslateModule,\r\n MessageDirective\r\n ],\r\n})\r\nexport class SubscriptionDetailsComponent implements OnInit, OnDestroy {\r\n @Input() public set detailsInitInfo(value: DetailsInitInfo) {\r\n const valueStr = value ? JSON.stringify(value) : null;\r\n const detailsInitInfoStr = this._detailInitInfo ? JSON.stringify(this._detailInitInfo) : null;\r\n if (valueStr != detailsInitInfoStr) {\r\n this.subscriptionService.reset();\r\n this._detailInitInfo = value;\r\n if (value?.id) {\r\n forkJoin({subscriptionDTO: this.subscriptionService.getSubscription(value.id), isUsedInSessions: this.subscriptionService.isSubscriptionUsedInSessions(value.id)}).subscribe((data) => {\r\n this.selectedSubscription = data.subscriptionDTO;\r\n this.isUsedInSessions = data.isUsedInSessions;\r\n this.updateForm();\r\n });\r\n this.isAddSubscription = false;\r\n } else {\r\n this.isUsedInSessions = false;\r\n this.selectedSubscription = null;\r\n this.isAddSubscription = true;\r\n this.resetForm();\r\n }\r\n }\r\n }\r\n\r\n public get isBusy(): boolean {\r\n return this.subscriptionService.isBusy;\r\n }\r\n\r\n public get canDelete(): boolean {\r\n return !this.isBusy && !this.selectedSubscription?.active;\r\n }\r\n\r\n public selectedSubscription: IParkingSubscriptionDTO;\r\n public isAddSubscription: boolean;\r\n\r\n @Output() public cancel = new EventEmitter();\r\n @Output() public subscriptionCreated = new EventEmitter();\r\n @Output() public subscriptionUpdated = new EventEmitter();\r\n @Output() public subscriptionDeleted = new EventEmitter();\r\n @Output() public hasPendingDetailChangesChanged = new EventEmitter();\r\n\r\n public subscriptionForm: FormGroup = this.fb.group({\r\n active: this.fb.control(true, Validators.required),\r\n assignable: this.fb.control(true, Validators.required),\r\n name: this.fb.control(null, Validators.required),\r\n description: this.fb.control(null),\r\n multipleCarsPerUserTreatAs: this.fb.control(MultipleCarsPerUserTreatAs.Forbidden, Validators.required),\r\n currency: this.fb.control(Currency.CHF, Validators.required),\r\n type: this.fb.control(ParkingSubscriptionType.StandardSubscription, Validators.required),\r\n denyForeignParkingSubscriptionFallback: this.fb.control(false, Validators.required),\r\n chargeCapPerMonth: this.fb.control(false, Validators.required),\r\n chargeCap: this.fb.control(null, [Validators.required, Validators.min(0)]),\r\n chargeInRelationToEmploymentPercentage: this.fb.control(false, Validators.required),\r\n fixPricePerMonth: this.fb.control(null, Validators.min(0)),\r\n basePricePerDay: this.fb.control(null, Validators.min(0)),\r\n sessionIsExtendable: this.fb.control(true, Validators.required),\r\n maxParkingDurationInMinForm: this.fb.group({\r\n days: this.fb.control(null, Validators.min(0)),\r\n hours: this.fb.control(null, Validators.min(0)),\r\n minutes: this.fb.control(null, Validators.min(0))\r\n }),\r\n roundSessionFeeToXCents: this.fb.control(1, [Validators.required, Validators.min(1)]),\r\n modifiedBy: this.fb.control({value: null, disabled: true}),\r\n modifiedOn: this.fb.control({value: null, disabled: true}),\r\n usage: this.fb.control(ParkingSubscriptionUsage.ParkerOrForeignParker, Validators.required),\r\n paidBy: this.fb.control(ParkingSubscriptionPaidBy.ParkingPerson, Validators.required),\r\n pcConfirmTime: this.fb.control(null, Validators.min(0))\r\n });\r\n\r\n // eslint-disable-next-line @typescript-eslint/ban-types\r\n public animation: object = {\r\n previous: {effect: '', duration: 0, easing: ''},\r\n next: {effect: '', duration: 0, easing: ''},\r\n };\r\n\r\n public saveButtonDisabled = false;\r\n public isUsedInSessions: boolean = false;\r\n\r\n MessageVariant = MessageVariant;\r\n MessageSeverity = MessageSeverity;\r\n\r\n private formInitialValue;\r\n private subscriptions = new Subscription();\r\n private _detailInitInfo: DetailsInitInfo;\r\n private formChanged: boolean = false;\r\n\r\n constructor(private subscriptionService: SubscriptionDetailsService,\r\n private fb: FormBuilder,\r\n private toastService: ToastService,\r\n private modalService: ModalService,\r\n private clientService: ClientService) {\r\n }\r\n\r\n public get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public get cancelButtonText(): string {\r\n if (this.selectedSubscription) {\r\n return 'i18n.shared.cancel';\r\n }\r\n return 'i18n.shared.close';\r\n }\r\n\r\n public get isReadonly(): boolean {\r\n return false;\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.setFieldDisabledStatus(this.subscriptionForm.controls.chargeCap, this.subscriptionForm.controls.chargeCapPerMonth.value);\r\n this.setFieldDisabledStatus(\r\n this.subscriptionForm.get('denyForeignParkingSubscriptionFallback'),\r\n this.subscriptionForm.get('type').value === ParkingSubscriptionType.StandardSubscription\r\n );\r\n\r\n this.formInitialValue = JSON.parse(JSON.stringify(this.subscriptionForm.value));\r\n this.subscriptions.add(this.subscriptionForm.statusChanges\r\n .pipe(\r\n startWith(this.subscriptionForm.status),\r\n )\r\n .subscribe(status => {\r\n const hasChanges = !(JSON.stringify(this.formInitialValue) === JSON.stringify(this.subscriptionForm.value));\r\n this.updateFormChangedState(hasChanges);\r\n this.saveButtonDisabled = (status !== 'VALID') || !hasChanges;\r\n }));\r\n\r\n //Listeners for disabled fields\r\n this.subscriptions.add(this.subscriptionForm.controls.chargeCapPerMonth.valueChanges.subscribe(value => {\r\n this.setFieldDisabledStatus(this.subscriptionForm.controls.chargeCap, value);\r\n }));\r\n this.subscriptions.add(this.subscriptionForm.controls.type.valueChanges.subscribe(value => {\r\n this.setFieldDisabledStatus(\r\n this.subscriptionForm.controls.denyForeignParkingSubscriptionFallback,\r\n this.subscriptionForm.controls.type.value === ParkingSubscriptionType.StandardSubscription\r\n );\r\n this.setFieldDisabledStatus(\r\n this.subscriptionForm.controls.usage,\r\n this.subscriptionForm.controls.type.value === ParkingSubscriptionType.ForeignParkerSubscription\r\n );\r\n this.setFieldDisabledStatus(\r\n this.subscriptionForm.controls.paidBy,\r\n this.subscriptionForm.controls.type.value === ParkingSubscriptionType.ForeignParkerSubscription\r\n );\r\n this.setFieldDisabledStatus(\r\n this.subscriptionForm.controls.pcConfirmTime,\r\n this.subscriptionForm.controls.type.value === ParkingSubscriptionType.ForeignParkerSubscription\r\n );\r\n if (this.subscriptionForm.controls.type.value !== ParkingSubscriptionType.StandardSubscription) {\r\n this.subscriptionForm.controls.denyForeignParkingSubscriptionFallback.setValue(false);\r\n } else {\r\n this.subscriptionForm.controls.usage.setValue(ParkingSubscriptionUsage.ParkerOrForeignParker);\r\n this.subscriptionForm.controls.paidBy.setValue(ParkingSubscriptionPaidBy.ParkingPerson);\r\n this.subscriptionForm.controls.pcConfirmTime.setValue(0);\r\n }\r\n }));\r\n FormHelper.updateTreeValidity(this.subscriptionForm, !!this.subscriptionForm.controls.name.value);\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n if (this.subscriptions) {\r\n this.subscriptions.unsubscribe();\r\n }\r\n }\r\n\r\n public onCancelClicked(): void {\r\n this.canDeactivate().subscribe(data => {\r\n if (data) {\r\n this.closeForm();\r\n this.cancel.emit();\r\n }\r\n });\r\n }\r\n\r\n public closeForm(): void {\r\n this.resetForm();\r\n }\r\n\r\n public submitForm(): void {\r\n if (this.selectedSubscription) {\r\n this.subscriptionService.updateParkingSubscription(this.getUpdateDTOFromFormData()).subscribe(data => {\r\n this.subscriptionUpdated.emit(data);\r\n this.selectedSubscription = data;\r\n this.updateForm();\r\n });\r\n }\r\n if (this.isAddSubscription) {\r\n this.subscriptionService.createParkingSubscription(this.getCreateDTOFromFormData()).subscribe(data => {\r\n this.closeForm();\r\n this.subscriptionCreated.emit(data);\r\n });\r\n }\r\n }\r\n\r\n public deleteSubscription(): void {\r\n const dialog = this.modalService.showOkCancelDialog('i18n.core.modal.delete.title', 'i18n.core.modal.delete.content');\r\n dialog.onOkSubject.subscribe(() => {\r\n this.subscriptionService.deleteSubscription(this.selectedSubscription.id).subscribe(data => {\r\n this.closeForm();\r\n this.subscriptionDeleted.emit(this.selectedSubscription.id);\r\n });\r\n });\r\n }\r\n\r\n public resetForm(): void {\r\n this.subscriptionForm.enable();\r\n this.subscriptionForm.reset({\r\n active: this._detailInitInfo.parentType === AdministrationItemType.Tariff ? true : false,\r\n assignable: this._detailInitInfo.parentType === AdministrationItemType.Tariff ? true : false,\r\n name: null,\r\n description: null,\r\n modifiedBy: null,\r\n modifiedOn: null,\r\n multipleCarsPerUserTreatAs: MultipleCarsPerUserTreatAs.Forbidden,\r\n currency: Currency.CHF,\r\n type: ParkingSubscriptionType.StandardSubscription,\r\n denyForeignParkingSubscriptionFallback: false,\r\n chargeCapPerMonth: false,\r\n chargeCap: null,\r\n chargeInRelationToEmploymentPercentage: false,\r\n fixPricePerMonth: null,\r\n basePricePerDay: null,\r\n sessionIsExtendable: true,\r\n maxParkingDurationInMinForm: ({\r\n days: null,\r\n hours: null,\r\n minutes: null\r\n }),\r\n roundSessionFeeToXCents: 1,\r\n usage: null,\r\n paidBy: null,\r\n pcConfirmTime: null\r\n });\r\n this.setFieldDisabledStatus(this.subscriptionForm.controls.active, this._detailInitInfo.parentType === AdministrationItemType.Tariff);\r\n this.setFieldDisabledStatus(this.subscriptionForm.controls.assignable, this._detailInitInfo.parentType === AdministrationItemType.Tariff);\r\n this.formInitialValue = JSON.parse(JSON.stringify(this.subscriptionForm.value));\r\n this.updateFormChangedState(false);\r\n this.subscriptionForm.markAsPristine();\r\n this.subscriptionForm.updateValueAndValidity();\r\n }\r\n\r\n public updateForm(): void {\r\n if (this.selectedSubscription) {\r\n this.subscriptionForm.enable();\r\n this.subscriptionForm.reset({\r\n active: this.selectedSubscription.active,\r\n assignable: this.selectedSubscription.assignable,\r\n name: this.selectedSubscription.name,\r\n description: this.selectedSubscription.description,\r\n modifiedBy: this.selectedSubscription.modifiedBy ?? null,\r\n modifiedOn: this.selectedSubscription.modifiedOn ? this.selectedSubscription.modifiedOn.toFormat('dd.MM.yyyy HH:mm:ss') : null,\r\n multipleCarsPerUserTreatAs: this.selectedSubscription.multipleCarsPerUserTreatAs,\r\n currency: this.selectedSubscription.currency,\r\n type: this.selectedSubscription.type,\r\n denyForeignParkingSubscriptionFallback: this.selectedSubscription.denyForeignParkingSubscriptionFallback,\r\n chargeCapPerMonth: this.selectedSubscription.chargeCapPerMonth,\r\n chargeCap: this.selectedSubscription.chargeCap,\r\n chargeInRelationToEmploymentPercentage: this.selectedSubscription?.chargeInRelationToEmploymentPercentage,\r\n fixPricePerMonth: this.selectedSubscription.fixPricePerMonth,\r\n basePricePerDay: this.selectedSubscription.basePricePerDay,\r\n sessionIsExtendable: this.selectedSubscription.sessionIsExtendable,\r\n maxParkingDurationInMinForm: MultiFieldDurationPickerHelper.createDurationMembers(this.selectedSubscription.maxParkingDurationInMin),\r\n roundSessionFeeToXCents: this.selectedSubscription.roundSessionFeeToXCents,\r\n usage: this.selectedSubscription.usage,\r\n paidBy: this.selectedSubscription.paidBy,\r\n pcConfirmTime: this.selectedSubscription.parkingCardConfirmationTimeInMinutes\r\n });\r\n if (this.selectedSubscription.active || this.isUsedInSessions) {\r\n this.subscriptionForm.disable();\r\n this.setFieldDisabledStatus(this.subscriptionForm.controls.active, true);\r\n this.setFieldDisabledStatus(this.subscriptionForm.controls.assignable, this.selectedSubscription.tariffs?.length > 0);\r\n } else {\r\n this.setFieldDisabledStatus(this.subscriptionForm.controls.active, this.selectedSubscription.tariffs?.length > 0);\r\n this.setFieldDisabledStatus(this.subscriptionForm.controls.assignable, this.selectedSubscription.tariffs?.length > 0);\r\n }\r\n this.setFieldDisabledStatus(this.subscriptionForm.controls.name, true);\r\n this.setFieldDisabledStatus(this.subscriptionForm.controls.description, true);\r\n this.setFieldDisabledStatus(this.subscriptionForm.controls.pcConfirmTime, true);\r\n\r\n this.formInitialValue = JSON.parse(JSON.stringify(this.subscriptionForm.value));\r\n this.updateFormChangedState(false);\r\n this.subscriptionForm.markAsPristine();\r\n this.subscriptionForm.updateValueAndValidity();\r\n } else {\r\n this.subscriptionForm.reset();\r\n this.toastService.showError('i18n.errors.server-error.title', 'i18n.errors.server-error.message');\r\n }\r\n }\r\n\r\n private setFieldDisabledStatus(control: AbstractControl, isEnabled: boolean): void {\r\n if (isEnabled) {\r\n control.enable();\r\n } else {\r\n control.disable();\r\n }\r\n }\r\n\r\n private getUpdateDTOFromFormData(): UpdateParkingSubscriptionDTO {\r\n const rawValue = this.subscriptionForm.getRawValue();\r\n return new UpdateParkingSubscriptionDTO({\r\n id: this.selectedSubscription.id,\r\n active: rawValue.active,\r\n assignable: rawValue.assignable,\r\n name: rawValue.name,\r\n description: rawValue.description,\r\n multipleCarsPerUserTreatAs: rawValue.multipleCarsPerUserTreatAs,\r\n currency: rawValue.currency,\r\n type: rawValue.type,\r\n denyForeignParkingSubscriptionFallback: rawValue.denyForeignParkingSubscriptionFallback,\r\n chargeCap: rawValue.chargeCap,\r\n chargeCapPerMonth: rawValue.chargeCapPerMonth,\r\n chargeInRelationToEmploymentPercentage: rawValue.chargeInRelationToEmploymentPercentage,\r\n fixPricePerMonth: rawValue.fixPricePerMonth,\r\n basePricePerDay: null,//rawValue.basePricePerDay, -> field is disabled\r\n sessionIsExtendable: rawValue.sessionIsExtendable,\r\n maxParkingDurationInMin: MultiFieldDurationPickerHelper.calculateTotalMinutes(\r\n rawValue.maxParkingDurationInMinForm.days,\r\n rawValue.maxParkingDurationInMinForm.hours,\r\n rawValue.maxParkingDurationInMinForm.minutes, true),\r\n roundSessionFeeToXCents: rawValue.roundSessionFeeToXCents,\r\n usage: rawValue.usage,\r\n paidBy: rawValue.paidBy,\r\n parkingCardConfirmationTimeInMinutes: rawValue.pcConfirmTime\r\n });\r\n }\r\n\r\n private getCreateDTOFromFormData(): CreateParkingSubscriptionDTO {\r\n const rawValue = this.subscriptionForm.getRawValue();\r\n return new CreateParkingSubscriptionDTO({\r\n clientId: this.selectedClient.id,\r\n active: rawValue.active,\r\n assignable: rawValue.assignable,\r\n name: rawValue.name,\r\n description: rawValue.description,\r\n multipleCarsPerUserTreatAs: rawValue.multipleCarsPerUserTreatAs,\r\n currency: rawValue.currency,\r\n type: rawValue.type,\r\n denyForeignParkingSubscriptionFallback: rawValue.denyForeignParkingSubscriptionFallback,\r\n chargeCap: rawValue.chargeCap,\r\n chargeCapPerMonth: rawValue.chargeCapPerMonth,\r\n chargeInRelationToEmploymentPercentage: rawValue.chargeInRelationToEmploymentPercentage,\r\n fixPricePerMonth: rawValue.fixPricePerMonth,\r\n basePricePerDay: null,//rawValue.basePricePerDay, -> field is disabled\r\n sessionIsExtendable: rawValue.sessionIsExtendable,\r\n maxParkingDurationInMin: MultiFieldDurationPickerHelper.calculateTotalMinutes(\r\n rawValue.maxParkingDurationInMinForm.days,\r\n rawValue.maxParkingDurationInMinForm.hours,\r\n rawValue.maxParkingDurationInMinForm.minutes, true),\r\n tariffIds: this._detailInitInfo.parentType === AdministrationItemType.Tariff ? [this._detailInitInfo.parentId] : null,\r\n structuralEntryId: this._detailInitInfo.parentType === AdministrationItemType.ConfigBasedStructuralElement ? this._detailInitInfo.parentId : null,\r\n roundSessionFeeToXCents: rawValue.roundSessionFeeToXCents,\r\n usage: rawValue.usage,\r\n paidBy: rawValue.paidBy,\r\n parkingCardConfirmationTimeInMinutes: rawValue.pcConfirmTime\r\n });\r\n }\r\n\r\n private canDeactivate(): Observable {\r\n if (this.formChanged) {\r\n const dialog = this.modalService.showOkCancelDialog('i18n.errors.discard-dialog.title', 'i18n.errors.discard-dialog.question');\r\n return merge(\r\n dialog.onOkSubject.pipe(map(() => true)),\r\n dialog.onCancelSubject.pipe(map(() => false)),\r\n );\r\n }\r\n return of(true);\r\n }\r\n\r\n private updateFormChangedState(hasChanges: boolean) {\r\n if (this.formChanged !== hasChanges) {\r\n this.formChanged = hasChanges;\r\n this.hasPendingDetailChangesChanged.emit(hasChanges);\r\n }\r\n }\r\n}\r\n\r\n","
    \r\n \r\n \r\n \r\n \r\n {{'i18n.domain.administration.subscription-details.general' | translate}}\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    {{'i18n.domain.administration.subscription-details.general-tab.has-active-sessions-hint' | translate}}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n {{'i18n.domain.administration.subscription-details.tariffs' | translate}}\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n","import { AbstractControl } from '@angular/forms';\r\nimport { ParkingTariffTieredPriceDTO } from 'src/app/base/models/models.swagger.generated';\r\n\r\nexport class TariffDetailsPriceValidators {\r\n public static assertMaxParkingTimeCoverageOfTieredPrices(c: AbstractControl) {\r\n const maxParkingDurationControl = c.parent?.parent?.get('general')?.get('maxParkingDurationInMinForm');\r\n const daysControl = maxParkingDurationControl?.get('days');\r\n const hoursControl = maxParkingDurationControl?.get('hours');\r\n const minutesControl = maxParkingDurationControl?.get('minutes');\r\n if (!daysControl || !hoursControl || !minutesControl) {\r\n return {invalidFormStructure: true};\r\n }\r\n const maxParkingDuration = ((daysControl.value ?? 0) * 24 + (hoursControl.value ?? 0)) * 60 + (minutesControl.value ?? 0);\r\n const tieredPrices: ParkingTariffTieredPriceDTO[] = c.value;\r\n if (maxParkingDuration) {\r\n let coveredDuration = 0;\r\n if (tieredPrices && tieredPrices.length > 0) {\r\n tieredPrices.forEach(t => {\r\n coveredDuration += t.amountOfMinutes;\r\n });\r\n }\r\n if (maxParkingDuration > coveredDuration) {\r\n return {assertMaxParkingTimeCoverageOfTieredPricesFailed: true};\r\n }\r\n } else {\r\n if (!tieredPrices || tieredPrices.length <= 0) {\r\n return {noTieredPricesSet: true};\r\n }\r\n }\r\n return null;\r\n }\r\n}\r\n","import { AbstractControl } from '@angular/forms';\r\nimport { WeekDayFlags } from 'src/app/base/models/models.swagger.generated';\r\nimport { MultiFieldDurationPickerHelper } from 'src/app/base/shared/multi-field-duration-picker/multi-field-duration-picker-helper';\r\nimport { WeekDayFlagsHelper } from 'src/app/base/shared/utils/week-day-flags.helper';\r\n\r\nexport class TariffDetailsValidators {\r\n public static noOverlappingTimeWindows(c: AbstractControl) {\r\n const values = c.value;\r\n const durationInHours = MultiFieldDurationPickerHelper.calculateTotalMinutes(\r\n values?.durationForm?.days, values?.durationForm?.hours, values?.durationForm?.minutes, false) / 60;\r\n const weekDayFlags = WeekDayFlagsHelper.daysToFlag(values.weekdays);\r\n if (durationInHours <= 24 || !values.startTime || weekDayFlags < WeekDayFlags.Monday) {\r\n return null;\r\n }\r\n // make sure windows do not overlap each other\r\n const daysGap = Math.floor(durationInHours / 24);\r\n let dayFlag = WeekDayFlags.Sunday;\r\n do\r\n {\r\n dayFlag = WeekDayFlagsHelper.shiftFlagsOneDayForward(dayFlag);\r\n if (WeekDayFlagsHelper.hasFlags(weekDayFlags, dayFlag))\r\n {\r\n let gapDay = WeekDayFlagsHelper.shiftFlagsOneDayForward(dayFlag);\r\n for (let i = 0; i < daysGap; i++)\r\n {\r\n if (WeekDayFlagsHelper.hasFlags(weekDayFlags, gapDay))\r\n {\r\n return { timeWindowOverlap: true };\r\n }\r\n gapDay = WeekDayFlagsHelper.shiftFlagsOneDayForward(gapDay);\r\n }\r\n }\r\n } while (dayFlag !== WeekDayFlags.Sunday);\r\n return null;\r\n }\r\n}\r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { AssignedZoneDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgFor } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-tariff-details-zones',\r\n templateUrl: './tariff-details-zones.component.html',\r\n styleUrls: ['./tariff-details-zones.component.scss'],\r\n standalone: true,\r\n imports: [NgFor, TranslateModule]\r\n})\r\nexport class TariffDetailsZonesComponent implements OnInit {\r\n @Input() assignedZones: AssignedZoneDTO[];\r\n\r\n constructor() { }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    {{zone.name}}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { UntypedFormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgIf } from '@angular/common';\r\nimport { AppErrorMessagesComponent } from '../../../../../../../../base/error-messages/app-error-messages.component';\r\nimport { NumericTextBoxModule } from '@syncfusion/ej2-angular-inputs';\r\n\r\n@Component({\r\n selector: 'app-tiered-price-form',\r\n templateUrl: './tiered-price-form.component.html',\r\n styleUrls: ['./tiered-price-form.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, NumericTextBoxModule, AppErrorMessagesComponent, NgIf, TranslateModule]\r\n})\r\nexport class TieredPriceFormComponent implements OnInit {\r\n\r\n @Input() public tieredPriceForm: UntypedFormGroup;\r\n\r\n public isAdd = true;\r\n\r\n constructor() { }\r\n\r\n public get formFields() {\r\n return this.tieredPriceForm?.controls;\r\n }\r\n\r\n ngOnInit() {\r\n this.isAdd = !this.tieredPriceForm.value.id;\r\n }\r\n\r\n public isMultipleOfLinearPriceStep(): boolean {\r\n if (!!this.tieredPriceForm.controls.amountOfMinutes.value && !!this.tieredPriceForm.controls.minStepInMinutes.value) {\r\n return this.tieredPriceForm.controls.amountOfMinutes.value % this.tieredPriceForm.controls.minStepInMinutes.value !== 0;\r\n }\r\n return false;\r\n }\r\n\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n {{'i18n.domain.administration.tariff-details.price-tab.not-integer-divider-of-tiered-size' | translate}}\r\n \r\n
    \r\n
    \r\n
    \r\n","import { ParkingTariffTieredPriceDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { Component, Input, OnInit } from '@angular/core';\r\nimport { FormGroup, UntypedFormBuilder, Validators } from '@angular/forms';\r\nimport { GridBaseComponent } from 'src/app/base/shared/grid-base/grid-base.component';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { GridConstantsFactory } from 'src/app/base/shared/syncfusion/grid-constants-factory';\r\nimport { TariffPricesFormType } from '../../tariff-details-from-types';\r\nimport { SfRequestTypes } from 'src/app/base/models/syncfusion-data';\r\nimport { NgClass, NgIf, DecimalPipe } from '@angular/common';\r\nimport { TieredPriceFormComponent } from './tiered-price-form/tiered-price-form.component';\r\nimport { ToolbarModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { GridModule } from '@syncfusion/ej2-angular-grids';\r\n\r\nexport interface ExtendedParkingTariffTieredPriceDTO extends ParkingTariffTieredPriceDTO {\r\n tierRange?: string;\r\n}\r\n\r\n@Component({\r\n selector: 'app-tariff-details-prices-tiered-prices-grid',\r\n templateUrl: './tariff-details-prices-tiered-prices-grid.component.html',\r\n styleUrls: ['./tariff-details-prices-tiered-prices-grid.component.scss'],\r\n standalone: true,\r\n imports: [GridModule, ToolbarModule, TieredPriceFormComponent, NgClass, NgIf, DecimalPipe, TranslateModule]\r\n})\r\nexport class TariffDetailsPricesTieredPricesGridComponent extends GridBaseComponent implements OnInit {\r\n @Input() priceFormGroup: FormGroup;\r\n @Input() maxParkingDuration: number;\r\n\r\n public totalTiered = 0;\r\n\r\n private indexToSelect = undefined;\r\n private newItemIndexCount = -1;\r\n\r\n constructor(translateService: TranslateService,\r\n clientService: ClientService,\r\n private fb: UntypedFormBuilder,) {\r\n super(clientService, translateService, clientService);\r\n this.editDialogTitle = 'i18n.domain.administration.tariff-details.price-tab.edit-dialog-title';\r\n this.addDialogTitle = 'i18n.domain.administration.tariff-details.price-tab.add-dialog-title';\r\n this.gridCommands = GridConstantsFactory.createStandardGridCommands();\r\n }\r\n\r\n public get isTotalNotEqualToMaxDuration(): boolean {\r\n if (!this.maxParkingDuration) {\r\n return false;\r\n }\r\n return this.totalTiered !== this.maxParkingDuration;\r\n }\r\n\r\n public get canMoveUp(): boolean {\r\n const index = this.grid?.selectedRowIndex ?? -1;\r\n if (index <= 0) {\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n public get canMoveDown(): boolean {\r\n const index = this.grid?.selectedRowIndex ?? -1;\r\n if (index < 0 || index + 1 >= this.priceFormGroup.controls.tieredPrices.value?.length) {\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n ngOnInit(): void {\r\n this.recalculateTieredPriceData();\r\n }\r\n\r\n public override actionBegin(args) {\r\n if (args.requestType === SfRequestTypes.Add) {\r\n let evaluationRelayIndex = 0;\r\n const tieredPrices = this.priceFormGroup.controls.tieredPrices.value;\r\n if (tieredPrices?.length > 0) {\r\n for(const tieredPrice of tieredPrices) {\r\n evaluationRelayIndex = Math.max(evaluationRelayIndex, tieredPrice.evaluationRelayIndex + 1);\r\n }\r\n }\r\n args.data.evaluationRelayIndex = evaluationRelayIndex;\r\n }\r\n super.actionBegin(args);\r\n }\r\n\r\n public override actionComplete(args) {\r\n super.actionComplete(args);\r\n if (args.requestType === SfRequestTypes.Save || args.requestType === SfRequestTypes.Delete) {\r\n this.recalculateTieredPriceData();\r\n this.priceFormGroup.controls.tieredPrices.updateValueAndValidity();\r\n } else if (args.requestType === SfRequestTypes.Refresh) {\r\n if (this.indexToSelect != null) {\r\n this.grid.selectRow(this.indexToSelect);\r\n this.indexToSelect = undefined;\r\n }\r\n }\r\n }\r\n\r\n public onUp() {\r\n const index = this.grid.selectedRowIndex;\r\n this.moveRow(index, index - 1);\r\n }\r\n\r\n public onDown() {\r\n const index = this.grid.selectedRowIndex;\r\n this.moveRow(index, index + 1);\r\n }\r\n\r\n protected initializeEditForm(data: ParkingTariffTieredPriceDTO): void {\r\n this.gridEditForm = this.fb.group({\r\n id: [ data.id ?? 0 ],\r\n amountOfMinutes: [ data.amountOfMinutes, Validators.required],\r\n pricePerHour: [ data.pricePerHour, Validators.required],\r\n evaluationRelayIndex: [data.evaluationRelayIndex],\r\n tierRange: [(data as any).tierRange],\r\n minStepInMinutes: [data.minStepInMinutes, Validators.required]\r\n });\r\n }\r\n\r\n protected override getDataToSave(): any {\r\n const data = new ParkingTariffTieredPriceDTO(this.gridEditForm.value);\r\n (data as any).tierRange = this.gridEditForm.controls.tierRange.value;\r\n\r\n if (data.id === 0) {\r\n data.id = this.newItemIndexCount;\r\n this.newItemIndexCount = this.newItemIndexCount - 1;\r\n }\r\n\r\n return data;\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData: any) {\r\n return null;\r\n }\r\n\r\n private recalculateTieredPriceData() {\r\n const tieredPrices = this.priceFormGroup.controls.tieredPrices.value as ExtendedParkingTariffTieredPriceDTO[];\r\n this.totalTiered = 0;\r\n if (tieredPrices?.length > 0) {\r\n tieredPrices.sort((a, b) => a.evaluationRelayIndex - b.evaluationRelayIndex);\r\n let minutesSum = 0;\r\n for (const [index, tieredPrice] of tieredPrices.entries()) {\r\n tieredPrice.evaluationRelayIndex = index;\r\n const rangeStart = minutesSum > 0 ? minutesSum + 1 : minutesSum;\r\n const rangeEnd = minutesSum + tieredPrice.amountOfMinutes;\r\n tieredPrice.tierRange = rangeStart + ' - ' + rangeEnd;\r\n minutesSum += tieredPrice.amountOfMinutes;\r\n }\r\n this.totalTiered = minutesSum;\r\n }\r\n this.grid?.refresh();\r\n }\r\n\r\n private moveRow(sourceIndex: number, targetIndex: number) {\r\n if (sourceIndex < 0 || targetIndex < 0) {\r\n return;\r\n }\r\n\r\n const tieredPrices = this.priceFormGroup.controls.tieredPrices.value;\r\n if (targetIndex >= tieredPrices.length) {\r\n return;\r\n }\r\n const oldEvalRelayValue = tieredPrices[sourceIndex].evaluationRelayIndex;\r\n tieredPrices[sourceIndex].evaluationRelayIndex = tieredPrices[targetIndex].evaluationRelayIndex;\r\n tieredPrices[targetIndex].evaluationRelayIndex = oldEvalRelayValue;\r\n this.indexToSelect = targetIndex;\r\n this.recalculateTieredPriceData();\r\n }\r\n}\r\n","
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.evaluationRelayIndex + 1}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.pricePerHour | number : '1.2-2'}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    {{'i18n.domain.administration.tariff-details.price-tab.total-tiered' | translate}}:{{totalTiered}} min
    {{'i18n.domain.administration.tariff-details.general-tab.max-parking-duration' | translate}}:{{maxParkingDuration}} min
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n {{'i18n.domain.administration.tariff-details.price-tab.example' | translate}}:\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    {{'i18n.domain.administration.tariff-details.price-tab.tier' | translate}}{{'i18n.domain.administration.tariff-details.price-tab.amount-of-minutes' | translate}}{{'i18n.domain.administration.tariff-details.price-tab.minStepInMinutes' | translate}}{{'i18n.domain.administration.tariff-details.price-tab.price' | translate}}
    1150.00
    245300.50
    3180602.00
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    {{'i18n.domain.administration.tariff-details.price-tab.parking-duration' | translate}}{{'i18n.domain.administration.tariff-details.price-tab.costs' | translate}}
    130.00
    160.25
    450.25
    460.50
    600.50
    612.50
    1202.50
    1214.50
    1804.50
    1816.50
    \r\n
    \r\n
    \r\n","import { Currency, TariffPriceType } from 'src/app/base/models/models.swagger.generated';\r\nimport { Component, Input } from '@angular/core';\r\nimport { FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { TariffPricesFormType } from '../tariff-details-from-types';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { TariffDetailsPricesTieredPricesGridComponent } from './tariff-details-prices-tiered-prices-grid/tariff-details-prices-tiered-prices-grid.component';\r\nimport { AppErrorMessagesComponent } from '../../../../../../base/error-messages/app-error-messages.component';\r\nimport { NumericTextBoxModule } from '@syncfusion/ej2-angular-inputs';\r\nimport { NgSwitch, NgSwitchCase } from '@angular/common';\r\nimport { ButtonGroupComponent } from '../../../../../../base/shared/button-group/button-group.component';\r\n\r\n@Component({\r\n selector: 'app-tariff-details-prices',\r\n templateUrl: './tariff-details-prices.component.html',\r\n styleUrls: ['./tariff-details-prices.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, ButtonGroupComponent, NgSwitch, NgSwitchCase, NumericTextBoxModule, AppErrorMessagesComponent, TariffDetailsPricesTieredPricesGridComponent, TranslateModule]\r\n})\r\nexport class TariffDetailsPricesComponent {\r\n\r\n @Input() priceFormGroup: FormGroup;\r\n @Input() maxParkingDuration: number;\r\n\r\n public get priceType(): TariffPriceType {\r\n return this.priceFormGroup.controls.priceType.value;\r\n }\r\n\r\n public CurrencyEnum = Currency;\r\n public PriceTypeEnum = TariffPriceType;\r\n\r\n constructor() {\r\n }\r\n}\r\n\r\n","
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n\r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n\r\n
    \r\n \r\n min\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n\r\n
    \r\n \r\n {{'i18n.shared.currencies.' + CurrencyEnum[priceFormGroup.controls.tariffCurrency.value] | translate}}\r\n \r\n
    \r\n \r\n\r\n
    \r\n \r\n {{'i18n.shared.currencies.' + CurrencyEnum[priceFormGroup.controls.tariffCurrency.value] | translate}}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n\r\n
    \r\n \r\n {{'i18n.shared.currencies.' + CurrencyEnum[priceFormGroup.controls.tariffCurrency.value] | translate}}\r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { Subscription } from 'rxjs';\r\nimport { Component, Input, OnInit, OnDestroy } from '@angular/core';\r\nimport { FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { PlaceOfResidence } from 'src/app/base/models/models.swagger.generated';\r\nimport { DateTime, Info } from 'luxon';\r\nimport { MultiFieldDurationPickerHelper } from 'src/app/base/shared/multi-field-duration-picker/multi-field-duration-picker-helper';\r\nimport { TariffGeneralFormType } from '../tariff-details-from-types';\r\nimport { MaskedDateTimeService, TimePickerModule } from '@syncfusion/ej2-angular-calendars';\r\nimport { DaySelectorComponent } from '../../../../../../base/shared/day-selector/day-selector.component';\r\nimport { NgIf, NgFor } from '@angular/common';\r\nimport { MultiFieldDurationPickerComponent } from '../../../../../../base/shared/multi-field-duration-picker/multi-field-duration-picker.component';\r\nimport { YesNoGroupButtonComponent } from '../../../../../../base/shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { ButtonGroupComponent } from '../../../../../../base/shared/button-group/button-group.component';\r\nimport { AppErrorMessagesComponent } from '../../../../../../base/error-messages/app-error-messages.component';\r\n\r\nexport interface ITariffTimeWindow {\r\n startDay: string;\r\n startTime: string;\r\n endDay: string;\r\n endTime: string;\r\n}\r\n\r\n@Component({\r\n selector: 'app-tariff-details-general',\r\n templateUrl: './tariff-details-general.component.html',\r\n styleUrls: ['./tariff-details-general.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, AppErrorMessagesComponent, ButtonGroupComponent, YesNoGroupButtonComponent, MultiFieldDurationPickerComponent, NgIf, DaySelectorComponent, TimePickerModule, NgFor, TranslateModule],\r\n providers: [MaskedDateTimeService]\r\n})\r\nexport class TariffDetailsGeneralComponent implements OnInit, OnDestroy {\r\n\r\n @Input() generalFormGroup: FormGroup;\r\n\r\n public endTimeStr = null;\r\n\r\n public timeWindows: ITariffTimeWindow[] = [];\r\n\r\n public PlaceOfResidence = PlaceOfResidence;\r\n\r\n public isTwentyFourSevenTariff = false;\r\n\r\n public get showTimeWindowsError(): boolean {\r\n return this.generalFormGroup.controls.timeWindows.hasError('timeWindowOverlap');\r\n }\r\n\r\n private subscriptions = new Subscription();\r\n\r\n constructor(private translate: TranslateService) {\r\n }\r\n\r\n ngOnInit(): void {\r\n this.initTimeWindows();\r\n this.subscriptions.add(this.generalFormGroup.controls.timeWindows.valueChanges.subscribe(_ => this.initTimeWindows()));\r\n this.subscriptions.add(this.translate.onLangChange.subscribe(_ =>this.initTimeWindows()));\r\n this.subscriptions.add(this.generalFormGroup.controls.isTwentyFourSevenTariff.valueChanges.subscribe(_ => {\r\n this.updateControlStatesDependingOnTwentyFourSevenTariff();\r\n this.initTimeWindows();\r\n }));\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.subscriptions.unsubscribe();\r\n }\r\n\r\n private updateControlStatesDependingOnTwentyFourSevenTariff() {\r\n if (this.generalFormGroup?.disabled) {\r\n return;\r\n }\r\n const timeWindowsGroup = this.generalFormGroup.controls.timeWindows;\r\n if (this.generalFormGroup.controls.isTwentyFourSevenTariff.value) {\r\n timeWindowsGroup.disable();\r\n }\r\n else {\r\n timeWindowsGroup.enable();\r\n }\r\n }\r\n\r\n private initTimeWindows() {\r\n this.timeWindows = [];\r\n this.endTimeStr = null;\r\n this.isTwentyFourSevenTariff = false;\r\n if (this.generalFormGroup.controls.isTwentyFourSevenTariff?.value) {\r\n this.isTwentyFourSevenTariff = true;\r\n return;\r\n }\r\n const durationValues = this.generalFormGroup.controls.timeWindows.controls.durationForm.value;\r\n const duration = MultiFieldDurationPickerHelper.calculateTotalMinutes(durationValues?.days, durationValues?.hours, durationValues?.minutes, false);\r\n const startTime = this.generalFormGroup.controls.timeWindows.controls.startTime.value;\r\n const oneDayInMinutes = 24 * 60;\r\n if (startTime && duration) {\r\n const startTimeInMinutesSinceDayStart = MultiFieldDurationPickerHelper.calculateTotalMinutes(0, startTime.getHours(), startTime.getMinutes(), false);\r\n if (duration < oneDayInMinutes) {\r\n this.endTimeStr = DateTime.fromJSDate(startTime).plus({minutes: duration}).toFormat('HH:mm');\r\n if (startTimeInMinutesSinceDayStart + duration >= 24 * 60) {\r\n this.endTimeStr = '(+1) ' + this.endTimeStr;\r\n }\r\n } else {\r\n const startDateTime = DateTime.fromJSDate(startTime);\r\n const endDateTime = startDateTime.plus({minutes: duration});\r\n const daysShifted = Math.floor((startTimeInMinutesSinceDayStart + duration) / 60 / 24);\r\n const weekdays = this.generalFormGroup.controls.timeWindows.controls.weekdays.value;\r\n if (weekdays.allowedMonday) {\r\n this.addTimeWindow(0, startDateTime, endDateTime, daysShifted);\r\n }\r\n if (weekdays.allowedTuesday) {\r\n this.addTimeWindow(1, startDateTime, endDateTime, daysShifted);\r\n }\r\n if (weekdays.allowedWednesday) {\r\n this.addTimeWindow(2, startDateTime, endDateTime, daysShifted);\r\n }\r\n if (weekdays.allowedThursday) {\r\n this.addTimeWindow(3, startDateTime, endDateTime, daysShifted);\r\n }\r\n if (weekdays.allowedFriday) {\r\n this.addTimeWindow(4, startDateTime, endDateTime, daysShifted);\r\n }\r\n if (weekdays.allowedSaturday) {\r\n this.addTimeWindow(5, startDateTime, endDateTime, daysShifted);\r\n }\r\n if (weekdays.allowedSunday) {\r\n this.addTimeWindow(6, startDateTime, endDateTime, daysShifted);\r\n }\r\n }\r\n }\r\n }\r\n\r\n private addTimeWindow(day: number, startDateTime: DateTime, endDateTime: DateTime, daysShifted: number) {\r\n const window = {\r\n startDay: Info.weekdays('short')[day],\r\n startTime: startDateTime.toFormat('HH:mm'),\r\n endDay: Info.weekdays('short')[(day + daysShifted) % 7],\r\n endTime: endDateTime.toFormat('HH:mm')\r\n };\r\n this.timeWindows.push(window);\r\n }\r\n}\r\n\r\n","
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n {{'i18n.domain.administration.tariff-details.general-tab.duration-error' | translate}}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n {{endTimeStr}}\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    {{window.startDay}}{{window.startTime}}-{{window.endDay}}{{window.endTime}}
    \r\n
    \r\n {{'i18n.validation.timeWindowOverlap' | translate}}\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    {{generalFormGroup.controls.modifiedBy.value}}
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    {{generalFormGroup.controls.modifiedOn.value}}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { BlacklistFormGroup } from './blacklist-form-type';\r\nimport { BlacklistLicensePlateDTO, ControlPlateType } from 'src/app/base/models/models.swagger.generated';\r\nimport { DropDownConstantsFactory } from 'src/app/base/shared/syncfusion/dropdown-constants-factory';\r\nimport { DropDownItem } from 'src/app/base/shared/drop-down-item.model';\r\nimport { EnumTranslationService } from 'src/app/base/services/enum-translation.service';\r\nimport { CountryISO2 } from 'src/app/base/shared/countryISO2-enum';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { AppErrorMessagesComponent } from 'src/app/base/error-messages/app-error-messages.component';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { EnumDropDownListComponent } from 'src/app/base/shared/enum-drop-down-list/enum-drop-down-list.component';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { MessageModule } from '@syncfusion/ej2-angular-notifications';\r\n\r\n@Component({\r\n selector: 'app-blacklist-form',\r\n templateUrl: './blacklist-form.component.html',\r\n styleUrls: ['./blacklist-form.component.scss'],\r\n standalone: true,\r\n imports: [\r\n ReactiveFormsModule,\r\n AppErrorMessagesComponent,\r\n DropDownListModule,\r\n EnumDropDownListComponent,\r\n TranslateModule,\r\n MessageModule\r\n]\r\n})\r\nexport class BlacklistFormComponent implements OnInit {\r\n\r\n @Input() blacklistForm: BlacklistFormGroup;\r\n\r\n public enumDropdownSettings = DropDownConstantsFactory.createEnumDropdownSettings();\r\n public countryList: DropDownItem[];\r\n public ControlPlateType = ControlPlateType;\r\n\r\n public get isAdd(): boolean {\r\n return !this.blacklistForm.value.id;\r\n }\r\n\r\n constructor(\r\n private enumTranslationService: EnumTranslationService,\r\n ) { }\r\n\r\n ngOnInit() {\r\n this.countryList = this.enumTranslationService.translateEnum(CountryISO2, 'i18n.shared.CountryISO2.');\r\n }\r\n\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    ","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\nimport { FormBuilder, Validators } from '@angular/forms';\r\nimport { TranslateModule, TranslateService } from '@ngx-translate/core';\r\nimport { CommandModel, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { BlacklistLicensePlateDTO, ControlPlateType, ParkingTariffDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { SfCommandButtonType } from 'src/app/base/models/syncfusion-data';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { GridBaseComponent } from 'src/app/base/shared/grid-base/grid-base.component';\r\nimport { BlacklistFormType } from './blacklist-form/blacklist-form-type';\r\nimport { ToolbarModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { BlacklistFormComponent } from './blacklist-form/blacklist-form.component';\r\n\r\n@Component({\r\n selector: 'app-tariff-details-blacklist',\r\n templateUrl: './tariff-details-blacklist.component.html',\r\n styleUrls: ['./tariff-details-blacklist.component.scss'],\r\n standalone: true,\r\n imports: [\r\n GridModule,\r\n TranslateModule,\r\n ToolbarModule,\r\n BlacklistFormComponent\r\n ]\r\n})\r\n\r\nexport class TariffDetailsBlacklistComponent extends GridBaseComponent implements OnInit {\r\n\r\n @Input() blacklist: BlacklistLicensePlateDTO[];\r\n\r\n @Output() blacklistLicensePlatesChange = new EventEmitter();\r\n\r\n private newItemIndexCount = -1;\r\n\r\n public commands: CommandModel[] = [{\r\n type: SfCommandButtonType.Delete,\r\n buttonOption: {\r\n cssClass: 'icon-btn',\r\n iconCss: 'icon-trash-can e-icons e-danger',\r\n },\r\n }];\r\n\r\n constructor(translateService: TranslateService,\r\n clientService: ClientService,\r\n private fb: FormBuilder) {\r\n super(clientService, translateService, null);\r\n }\r\n\r\n ngOnInit() {\r\n this.addDialogTitle = 'i18n.domain.parker-administration.add-tag';\r\n this.addIndexFindColumnName = 'Id';\r\n this.addDialogTitle = 'i18n.domain.administration.tariff-details.blacklist-tab.edit-dialog-title';\r\n this.editSettings.allowEditing = false;\r\n }\r\n\r\n public override actionComplete(args) {\r\n super.actionComplete(args);\r\n if (args.action === 'add' && args.requestType === 'save' || args.requestType === 'delete') {\r\n this.blacklistLicensePlatesChange.emit(this.blacklist);\r\n }\r\n\r\n }\r\n\r\n public formatControlPlateType(data): string {\r\n return 'i18n.shared.controlPlateType.' + ControlPlateType[data.controlPlateType];\r\n }\r\n\r\n protected initializeEditForm(data: BlacklistLicensePlateDTO): void {\r\n this.gridEditForm = this.fb.group({\r\n id: this.fb.control(data.id || 0),\r\n countryCode: this.fb.control(data.countryCode || 'CH', [Validators.required]),\r\n controlPlateType: this.fb.control(data.controlPlateType),\r\n controlPlateNumber: this.fb.control(data.controlPlateNumber, [Validators.required, Validators.maxLength(10)]),\r\n });\r\n }\r\n\r\n protected getEditDialogTitleParams(rowData: any): any {\r\n return { params: '' };\r\n }\r\n\r\n protected override getDataToSave(): any {\r\n const data = this.gridEditForm.getRawValue();\r\n if (data.id === 0) {\r\n data.id = this.newItemIndexCount;\r\n this.newItemIndexCount = this.newItemIndexCount - 1;\r\n }\r\n if (data.controlPlateNumber) {\r\n data.controlPlateNumber = data.controlPlateNumber.trim().replace(/\\s+/g, '').toUpperCase();\r\n }\r\n return data;\r\n }\r\n}\r\n","\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{formatControlPlateType(data) | translate}}\r\n \r\n {{formatControlPlateType(data) | translate}}\r\n \r\n \r\n \r\n \r\n {{data.controlPlateNumber | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n","import { Component, EventEmitter, HostListener, Input, Output, ViewChild } from '@angular/core';\r\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\r\nimport {\r\n CreateParkingTariffDTO,\r\n Currency,\r\n ParkingTariffDTO,\r\n ParkingTariffLimitedDTO,\r\n PlaceOfResidence,\r\n UpdateParkingTariffDTO,\r\n ParkingTariffTieredPriceDTO,\r\n TariffPriceType,\r\n BlacklistLicensePlateDTO\r\n} from 'src/app/base/models/models.swagger.generated';\r\nimport { CustomValidatorsFactory } from 'src/app/base/shared/validators/custom-validators-factory';\r\nimport { ToastService } from 'src/app/base/services/toast.service';\r\nimport { merge, Observable, of } from 'rxjs';\r\nimport { mapTo, startWith } from 'rxjs/operators';\r\nimport { ModalService } from 'src/app/base/shared/modal/modal.service';\r\nimport { TabComponent, TabModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { TariffDetailsPriceValidators } from './tariff-details-prices/tariff-details-prices.validators';\r\nimport { FormHelper } from 'src/app/base/shared/form-helper';\r\nimport { DateHelper } from 'src/app/base/shared/date-helper';\r\nimport { BitHelper } from 'src/app/base/shared/bit-helper';\r\nimport { MultiFieldDurationPickerHelper } from 'src/app/base/shared/multi-field-duration-picker/multi-field-duration-picker-helper';\r\nimport { WeekDayFlagsHelper } from 'src/app/base/shared/utils/week-day-flags.helper';\r\nimport { TariffDetailsValidators } from './tariff-details.validators';\r\nimport { TariffDetailsService } from './tariff-details.service';\r\nimport { AdministrationItemType, DetailsInitInfo } from '../../data-structures';\r\nimport { DaysHoursMinutesFormType, TariffFormType, TariffGeneralFormType, TariffPricesFormType, TimeWindowsFormType, WeekdaysFormType } from './tariff-details-from-types';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { TariffDetailsZonesComponent } from './tariff-details-zones/tariff-details-zones.component';\r\nimport { TariffDetailsPricesComponent } from './tariff-details-prices/tariff-details-prices.component';\r\nimport { TariffDetailsGeneralComponent } from './tariff-details-general/tariff-details-general.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { TariffDetailsBlacklistComponent } from './tariff-details-blacklist/tariff-details-blacklist.component';\r\n\r\n@Component({\r\n selector: 'app-tariff-details',\r\n templateUrl: './tariff-details.component.html',\r\n styleUrls: ['./tariff-details.component.scss'],\r\n standalone: true,\r\n imports: [NgIf, TabModule, TariffDetailsGeneralComponent, TariffDetailsPricesComponent, TariffDetailsZonesComponent, TranslateModule, TariffDetailsBlacklistComponent]\r\n})\r\nexport class TariffDetailsComponent {\r\n @Input() public set detailsInitInfo(value: DetailsInitInfo) {\r\n const valueStr = value ? JSON.stringify(value) : null;\r\n const detailsInitInfoStr = this._detailInitInfo ? JSON.stringify(this._detailInitInfo) : null;\r\n if (valueStr != detailsInitInfoStr) {\r\n this.tariffService.reset();\r\n this._detailInitInfo = value;\r\n if (value?.id) {\r\n this.isAddTariff = false;\r\n this.getTariff(value.id);\r\n } else {\r\n this.selectedTariff = null;\r\n this.isAddTariff = true;\r\n this.resetForm();\r\n }\r\n }\r\n }\r\n\r\n @Output() public cancel = new EventEmitter();\r\n @Output() public tariffCreated = new EventEmitter();\r\n @Output() public tariffUpdated = new EventEmitter();\r\n @Output() public tariffDeleted = new EventEmitter();\r\n @Output() public hasPendingDetailChangesChanged = new EventEmitter();\r\n\r\n @ViewChild('tabGroup') public tabGroup: TabComponent;\r\n public tariffs: ParkingTariffLimitedDTO[];\r\n public selectedTariff: ParkingTariffDTO;\r\n public tariffForm: FormGroup;\r\n public formChanged = false;\r\n public isAddTariff = false;\r\n public saveButtonDisabled = false;\r\n\r\n public get isBusy(): boolean {\r\n return this.tariffService.isBusy;\r\n }\r\n\r\n public get isReadonly(): boolean {\r\n return false;\r\n }\r\n\r\n // eslint-disable-next-line @typescript-eslint/ban-types\r\n public animation: object = {\r\n previous: { effect: '', duration: 0, easing: '' },\r\n next: { effect: '', duration: 0, easing: '' },\r\n };\r\n\r\n private _detailInitInfo: DetailsInitInfo;\r\n private formInitialValue;\r\n private isBlacklistChanged: boolean = false;\r\n\r\n constructor(private tariffService: TariffDetailsService,\r\n private fb: FormBuilder,\r\n private toastService: ToastService,\r\n private modalService: ModalService) {\r\n this.tariffForm = this.fb.group<{ general: FormGroup, prices: FormGroup, blacklist: FormControl }>({\r\n // create nested formgroup to pass to child\r\n general: this.fb.group({\r\n id: this.fb.control(null),\r\n name: this.fb.control(null, Validators.required),\r\n active: this.fb.control(true, Validators.required),\r\n description: this.fb.control(null),\r\n modifiedBy: this.fb.control(null),\r\n modifiedOn: this.fb.control(null),\r\n placeOfResidence: this.fb.control(PlaceOfResidence.LocalCommunity),\r\n isTwentyFourSevenTariff: this.fb.control(false),\r\n isDeviceControlTariff: this.fb.control(false),\r\n timeWindows: this.fb.group({\r\n weekdays: this.fb.group({\r\n allowedMonday: this.fb.control(false),\r\n allowedTuesday: this.fb.control(false),\r\n allowedWednesday: this.fb.control(false),\r\n allowedThursday: this.fb.control(false),\r\n allowedFriday: this.fb.control(false),\r\n allowedSaturday: this.fb.control(false),\r\n allowedSunday: this.fb.control(false),\r\n }, { validators: [CustomValidatorsFactory.atLeastOneFromFormGroupRequired()] }),\r\n startTime: this.fb.control(null, Validators.required),\r\n durationForm: this.fb.group({\r\n days: this.fb.control(null, Validators.min(0)),\r\n hours: this.fb.control(null, Validators.min(0)),\r\n minutes: this.fb.control(null, Validators.min(0))\r\n }, { validators: [CustomValidatorsFactory.atLeastOneFromFormGroupRequired()] })\r\n }, { validators: [TariffDetailsValidators.noOverlappingTimeWindows] }),\r\n maxParkingDurationInMinForm: this.fb.group({\r\n days: this.fb.control(null, Validators.min(0)),\r\n hours: this.fb.control(null, Validators.min(0)),\r\n minutes: this.fb.control(null, Validators.min(0)),\r\n }),\r\n }),\r\n prices: this.fb.group({\r\n tariffCurrency: this.fb.control(Currency.CHF),\r\n priceType: this.fb.control(TariffPriceType.LinearPrice),\r\n pricePerHour: this.fb.control(null, [Validators.required, Validators.min(0)]),\r\n maximumPrice: this.fb.control(null, [Validators.min(0)]),\r\n fixedPrice: this.fb.control(null, [Validators.required, Validators.min(0)]),\r\n tieredPrices: this.fb.control([]),\r\n linearPriceMinStepInMinutes: this.fb.control(1, Validators.min(1))\r\n }),\r\n blacklist: this.fb.control([])\r\n });\r\n this.formInitialValue = JSON.parse(JSON.stringify(this.tariffForm.value));\r\n this.tariffForm.statusChanges\r\n .pipe(\r\n startWith(this.tariffForm.status),\r\n )\r\n .subscribe(status => {\r\n const hasChanges = !(JSON.stringify(this.formInitialValue) === JSON.stringify(this.tariffForm.value));\r\n this.updateFormChangedState(hasChanges);\r\n this.saveButtonDisabled = ((status !== 'VALID') || !hasChanges) && !this.isBlacklistChanged;\r\n });\r\n\r\n this.tariffForm.controls.prices.controls.priceType.valueChanges.subscribe(value => {\r\n const priceFormGroup = this.tariffForm.controls.prices;\r\n if (value === TariffPriceType.LinearPrice) {\r\n priceFormGroup.controls.pricePerHour.setValidators([Validators.required, Validators.min(0)]);\r\n priceFormGroup.controls.fixedPrice.clearValidators();\r\n priceFormGroup.controls.tieredPrices.clearValidators();\r\n } else if (value === TariffPriceType.FixedPrice) {\r\n priceFormGroup.controls.pricePerHour.clearValidators();\r\n priceFormGroup.controls.fixedPrice.setValidators([Validators.required, Validators.min(0)]);\r\n priceFormGroup.controls.tieredPrices.clearValidators();\r\n } else {\r\n priceFormGroup.controls.pricePerHour.clearValidators();\r\n priceFormGroup.controls.fixedPrice.clearValidators();\r\n priceFormGroup.controls.tieredPrices.setValidators([TariffDetailsPriceValidators.assertMaxParkingTimeCoverageOfTieredPrices]);\r\n }\r\n priceFormGroup.controls.pricePerHour.updateValueAndValidity();\r\n priceFormGroup.controls.fixedPrice.updateValueAndValidity();\r\n priceFormGroup.controls.tieredPrices.updateValueAndValidity();\r\n });\r\n this.tariffForm.controls.general.controls.maxParkingDurationInMinForm.controls.days.valueChanges.subscribe(value => {\r\n this.tariffForm.controls.prices.controls.tieredPrices.updateValueAndValidity();\r\n });\r\n this.tariffForm.controls.general.controls.maxParkingDurationInMinForm.controls.hours.valueChanges.subscribe(value => {\r\n this.tariffForm.controls.prices.controls.tieredPrices.updateValueAndValidity();\r\n });\r\n this.tariffForm.controls.general.controls.maxParkingDurationInMinForm.controls.minutes.valueChanges.subscribe(value => {\r\n this.tariffForm.controls.prices.controls.tieredPrices.updateValueAndValidity();\r\n });\r\n this.tariffForm.controls.general.controls.isTwentyFourSevenTariff.valueChanges.subscribe(value => {\r\n if (value) {\r\n this.tariffForm.controls.general.controls.timeWindows.controls.startTime.disable();;\r\n this.tariffForm.controls.general.controls.timeWindows.controls.durationForm.disable();\r\n } else {\r\n this.tariffForm.controls.general.controls.timeWindows.controls.startTime.enable();\r\n this.tariffForm.controls.general.controls.timeWindows.controls.durationForm.enable();\r\n }\r\n });\r\n\r\n this.tariffForm.controls.general.controls.isDeviceControlTariff.valueChanges.subscribe(value => {\r\n if (value) {\r\n this.tariffForm.controls.prices.controls.priceType.setValue(TariffPriceType.FixedPrice);\r\n this.tariffForm.controls.prices.controls.priceType.disable();\r\n } else {\r\n this.tariffForm.controls.prices.controls.priceType.enable();\r\n }\r\n });\r\n this.tariffForm.controls.blacklist.valueChanges.subscribe(value => {\r\n this.updateFormChangedState(true);\r\n });\r\n\r\n FormHelper.updateTreeValidity(this.tariffForm, !!this.tariffForm.controls.general.controls.name.value);\r\n }\r\n\r\n public get cancelButtonText(): string {\r\n if (this.selectedTariff) {\r\n return 'i18n.shared.cancel';\r\n }\r\n return 'i18n.shared.close';\r\n }\r\n\r\n public get maxParkingDuration(): number {\r\n const maxParkingDurationControl = this.tariffForm.controls.general.controls.maxParkingDurationInMinForm;\r\n const days = maxParkingDurationControl.controls.days.value ?? 0;\r\n const hours = maxParkingDurationControl.controls.hours.value ?? 0;\r\n const minutes = maxParkingDurationControl.controls.minutes.value ?? 0;\r\n return (days * 24 + hours) * 60 + minutes;\r\n }\r\n\r\n @HostListener('window:beforeunload')\r\n beforeUnload() {\r\n return JSON.stringify(this.formInitialValue) === JSON.stringify(this.tariffForm.value);\r\n }\r\n\r\n //Deactivate swipe of tabgroup\r\n public select(event): void {\r\n if (event.isSwiped) {\r\n event.cancel = true;\r\n }\r\n }\r\n\r\n public getTariff(selectedTariffId: number): void {\r\n this.tariffService.getTariff(selectedTariffId).subscribe(data => {\r\n this.selectedTariff = data;\r\n this.selectedTariff.assignedZones.sort((a, b) => (a.name.localeCompare(b.name)));\r\n this.tabGroup?.select(0);\r\n this.updateForm();\r\n });\r\n }\r\n\r\n public deleteTariff() {\r\n const dialog = this.modalService.showOkCancelDialog('i18n.core.modal.delete.title', 'i18n.core.modal.delete.content');\r\n dialog.onOkSubject.subscribe(() => {\r\n this.tariffService.deleteParkingTariff(this.selectedTariff.id).subscribe(data => {\r\n this.tariffDeleted.emit(this.selectedTariff.id);\r\n this.closeForm();\r\n });\r\n });\r\n }\r\n\r\n public openAddTariff() {\r\n this.canDeactivate().subscribe(data => {\r\n if (data) {\r\n this.selectedTariff = null;\r\n this.resetForm();\r\n this.isAddTariff = true;\r\n }\r\n });\r\n }\r\n\r\n public onCancelClicked(): void {\r\n this.canDeactivate().subscribe(data => {\r\n if (data) {\r\n this.closeForm();\r\n this.cancel.emit();\r\n }\r\n });\r\n }\r\n\r\n public closeForm() {\r\n this.selectedTariff = null;\r\n this.isAddTariff = false;\r\n this.resetForm();\r\n }\r\n\r\n public submitForm() {\r\n if (this.selectedTariff) {\r\n this.tariffService.updateParkingTariff(this.getUpdateDTOFromFormData()).subscribe(data => {\r\n this.tariffUpdated.emit(data);\r\n //this.closeForm();\r\n this.selectedTariff = data;\r\n this.updateForm();\r\n });\r\n }\r\n if (this.isAddTariff) {\r\n this.tariffService.createParkingTariff(this.getCreateDTOFromFormData()).subscribe(data => {\r\n this.tariffCreated.emit(data);\r\n this.closeForm();\r\n });\r\n }\r\n }\r\n\r\n public canDeactivate(): Observable {\r\n if (!(JSON.stringify(this.formInitialValue) === JSON.stringify(this.tariffForm.value))) {\r\n const dialog = this.modalService.showOkCancelDialog('i18n.errors.discard-dialog.title', 'i18n.errors.discard-dialog.question');\r\n return merge(\r\n dialog.onOkSubject.pipe(mapTo(true)),\r\n dialog.onCancelSubject.pipe(mapTo(false)),\r\n );\r\n }\r\n return of(true);\r\n }\r\n\r\n private resetForm(): void {\r\n this.tariffForm.enable();\r\n this.tariffForm.reset({\r\n general: ({\r\n id: null,\r\n name: '',\r\n active: true,\r\n description: '',\r\n modifiedBy: null,\r\n modifiedOn: null,\r\n placeOfResidence: PlaceOfResidence.LocalCommunity,\r\n isTwentyFourSevenTariff: false,\r\n isDeviceControlTariff: false,\r\n timeWindows: ({\r\n weekdays: ({\r\n allowedMonday: false,\r\n allowedTuesday: false,\r\n allowedWednesday: false,\r\n allowedThursday: false,\r\n allowedFriday: false,\r\n allowedSaturday: false,\r\n allowedSunday: false,\r\n }),\r\n startTime: null,\r\n durationForm: ({\r\n days: null,\r\n hours: null,\r\n minutes: null\r\n })\r\n }),\r\n maxParkingDurationInMinForm: ({\r\n days: null,\r\n hours: null,\r\n minutes: null\r\n }),\r\n }),\r\n prices: ({\r\n tariffCurrency: Currency.CHF,\r\n priceType: TariffPriceType.LinearPrice,\r\n pricePerHour: null,\r\n maximumPrice: null,\r\n fixedPrice: null,\r\n tieredPrices: [],\r\n linearPriceMinStepInMinutes: 1,\r\n }),\r\n });\r\n this.formInitialValue = JSON.parse(JSON.stringify(this.tariffForm.value));\r\n this.tariffForm.updateValueAndValidity();\r\n this.tariffForm.markAsPristine();\r\n this.updateFormChangedState(false);\r\n }\r\n\r\n private updateForm(): void {\r\n if (this.selectedTariff) {\r\n this.tariffForm.enable();\r\n this.tariffForm.reset({\r\n general: {\r\n id: this.selectedTariff.id,\r\n name: this.selectedTariff.name ?? '',\r\n modifiedBy: this.selectedTariff.modifiedBy ?? null,\r\n modifiedOn: this.selectedTariff.modifiedOn ? this.selectedTariff.modifiedOn.toFormat('dd.MM.yyyy HH:mm:ss') : null,\r\n active: this.selectedTariff.active,\r\n description: this.selectedTariff.description ?? '',\r\n placeOfResidence: this.selectedTariff.placeOfResidence,\r\n isTwentyFourSevenTariff: this.selectedTariff.isTwentyFourSevenTariff,\r\n isDeviceControlTariff: this.selectedTariff.isDeviceControlTariff,\r\n timeWindows: {\r\n weekdays: {\r\n allowedMonday: BitHelper.isBitSet(this.selectedTariff.onWeekDays, 0),\r\n allowedTuesday: BitHelper.isBitSet(this.selectedTariff.onWeekDays, 1),\r\n allowedWednesday: BitHelper.isBitSet(this.selectedTariff.onWeekDays, 2),\r\n allowedThursday: BitHelper.isBitSet(this.selectedTariff.onWeekDays, 3),\r\n allowedFriday: BitHelper.isBitSet(this.selectedTariff.onWeekDays, 4),\r\n allowedSaturday: BitHelper.isBitSet(this.selectedTariff.onWeekDays, 5),\r\n allowedSunday: BitHelper.isBitSet(this.selectedTariff.onWeekDays, 6),\r\n },\r\n startTime: this.selectedTariff.startTime ? DateHelper.setDateTimeTo1970FromDuration(this.selectedTariff.startTime).toJSDate() : null,\r\n durationForm: MultiFieldDurationPickerHelper.createDurationMembers(this.selectedTariff.durationInMinutes)\r\n },\r\n maxParkingDurationInMinForm: MultiFieldDurationPickerHelper.createDurationMembers(this.selectedTariff.maxParkingDurationInMin),\r\n },\r\n prices: {\r\n priceType: this.selectedTariff.priceType ?? TariffPriceType.LinearPrice,\r\n tariffCurrency: this.selectedTariff.tariffCurrency,\r\n pricePerHour: this.selectedTariff.pricePerHour,\r\n maximumPrice: this.selectedTariff.maximumPrice,\r\n fixedPrice: this.selectedTariff.fixedPrice,\r\n tieredPrices: !!this.selectedTariff.tieredPrices?.length ? this.selectedTariff.tieredPrices : [],\r\n linearPriceMinStepInMinutes: this.selectedTariff.linearPriceMinStepInMinutes,\r\n },\r\n blacklist: this.selectedTariff.blacklistedLicensePlates ?? []\r\n });\r\n\r\n if (this.selectedTariff.isTwentyFourSevenTariff) {\r\n this.tariffForm.controls.general.controls.timeWindows.disable();\r\n } else {\r\n this.tariffForm.controls.general.controls.timeWindows.enable();\r\n }\r\n\r\n if (this.selectedTariff.hasActiveSubscription) {\r\n this.tariffForm.disable();\r\n }\r\n this.tariffForm.controls.general.controls.name.enable();\r\n this.tariffForm.controls.general.controls.description.enable();\r\n this.formInitialValue = JSON.parse(JSON.stringify(this.tariffForm.value));\r\n this.updateFormChangedState(false);\r\n this.tariffForm.updateValueAndValidity();\r\n this.tariffForm.markAsPristine();\r\n } else {\r\n this.toastService.showError('i18n.errors.server-error.title', 'i18n.errors.server-error.message');\r\n }\r\n this.isBlacklistChanged = false;\r\n }\r\n\r\n private getUpdateDTOFromFormData(): UpdateParkingTariffDTO {\r\n const rawValue = this.tariffForm.getRawValue();\r\n const startTime = rawValue.general.isTwentyFourSevenTariff ? null : DateHelper.getTimeOfDayDurationFromJsDate(rawValue.general.timeWindows.startTime);\r\n const dto = new UpdateParkingTariffDTO({\r\n id: this.selectedTariff.id,\r\n name: rawValue.general.name,\r\n active: rawValue.general.active,\r\n onWeekDays: rawValue.general.isTwentyFourSevenTariff ? null : WeekDayFlagsHelper.daysToFlag(rawValue.general.timeWindows.weekdays),\r\n description: rawValue.general.description,\r\n placeOfResidence: rawValue.general.placeOfResidence,\r\n isTwentyFourSevenTariff: rawValue.general.isTwentyFourSevenTariff,\r\n isDeviceControlTariff: rawValue.general.isDeviceControlTariff,\r\n startTime,\r\n durationInMinutes: rawValue.general.isTwentyFourSevenTariff ? null :\r\n MultiFieldDurationPickerHelper.calculateTotalMinutes(rawValue.general.timeWindows.durationForm.days, rawValue.general.timeWindows.durationForm.hours,\r\n rawValue.general.timeWindows.durationForm.minutes, false),\r\n maxParkingDurationInMin: MultiFieldDurationPickerHelper.calculateTotalMinutes(rawValue.general.maxParkingDurationInMinForm.days,\r\n rawValue.general.maxParkingDurationInMinForm.hours,\r\n rawValue.general.maxParkingDurationInMinForm.minutes, true),\r\n priceType: rawValue.prices.priceType,\r\n tariffCurrency: rawValue.prices.tariffCurrency,\r\n pricePerHour: rawValue.prices.pricePerHour,\r\n maximumPrice: rawValue.prices.maximumPrice,\r\n fixedPrice: rawValue.prices.fixedPrice,\r\n tieredPrices: rawValue.prices.tieredPrices?.map(tp => {\r\n tp.id = tp.id < 0 ? 0 : tp.id;\r\n return new ParkingTariffTieredPriceDTO(tp);\r\n }),\r\n linearPriceMinStepInMinutes: rawValue.prices.linearPriceMinStepInMinutes,\r\n blacklistedLicensePlates: rawValue.blacklist.map(lp => new BlacklistLicensePlateDTO(lp)),\r\n });\r\n return dto;\r\n }\r\n\r\n private getCreateDTOFromFormData(): CreateParkingTariffDTO {\r\n const rawValue = this.tariffForm.getRawValue();\r\n const zoneIds = this._detailInitInfo.parentType === AdministrationItemType.Zone ? [this._detailInitInfo.parentId] : null;\r\n const subscriptionId = this._detailInitInfo.parentType === AdministrationItemType.Subscription ? this._detailInitInfo.parentId : null;\r\n const startTime = rawValue.general.isTwentyFourSevenTariff ? null : DateHelper.getTimeOfDayDurationFromJsDate(rawValue.general.timeWindows.startTime);\r\n const dto = new CreateParkingTariffDTO({\r\n clientId: this._detailInitInfo.clientId,\r\n name: rawValue.general.name,\r\n active: rawValue.general.active,\r\n onWeekDays: rawValue.general.isTwentyFourSevenTariff ? null : WeekDayFlagsHelper.daysToFlag(rawValue.general.timeWindows.weekdays),\r\n description: rawValue.general.description,\r\n placeOfResidence: rawValue.general.placeOfResidence,\r\n isTwentyFourSevenTariff: rawValue.general.isTwentyFourSevenTariff,\r\n isDeviceControlTariff: rawValue.general.isDeviceControlTariff,\r\n startTime,\r\n durationInMinutes: rawValue.general.isTwentyFourSevenTariff ? null :\r\n MultiFieldDurationPickerHelper.calculateTotalMinutes(rawValue.general.timeWindows.durationForm.days, rawValue.general.timeWindows.durationForm.hours,\r\n rawValue.general.timeWindows.durationForm.minutes, false),\r\n maxParkingDurationInMin: MultiFieldDurationPickerHelper.calculateTotalMinutes(rawValue.general.maxParkingDurationInMinForm.days,\r\n rawValue.general.maxParkingDurationInMinForm.hours,\r\n rawValue.general.maxParkingDurationInMinForm.minutes, true),\r\n priceType: rawValue.prices.priceType,\r\n tariffCurrency: rawValue.prices.tariffCurrency,\r\n pricePerHour: rawValue.prices.pricePerHour,\r\n maximumPrice: rawValue.prices.maximumPrice,\r\n fixedPrice: rawValue.prices.fixedPrice,\r\n tieredPrices: rawValue.prices.tieredPrices?.map(tp => {\r\n tp.id = tp.id < 0 ? 0 : tp.id;\r\n return new ParkingTariffTieredPriceDTO(tp);\r\n }),\r\n assignedZoneIds: zoneIds,\r\n linearPriceMinStepInMinutes: rawValue.prices.linearPriceMinStepInMinutes,\r\n subscriptionId,\r\n });\r\n return dto;\r\n }\r\n\r\n private updateFormChangedState(hasChanges: boolean) {\r\n if (this.formChanged !== hasChanges) {\r\n this.formChanged = hasChanges;\r\n this.hasPendingDetailChangesChanged.emit(hasChanges);\r\n }\r\n }\r\n\r\n public onBlacklistLicensePlatesChange(blackList: BlacklistLicensePlateDTO[]): void {\r\n this.isBlacklistChanged = true;\r\n this.selectedTariff.blacklistedLicensePlates = blackList;\r\n this.tariffForm.controls.blacklist.setValue(blackList);\r\n this.tariffForm.controls.blacklist.markAsDirty();\r\n this.tariffForm.controls.blacklist.updateValueAndValidity();\r\n }\r\n}\r\n\r\n","\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n {{'i18n.domain.administration.tariff-details.general' | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n {{'i18n.domain.administration.tariff-details.prices' | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n {{'i18n.domain.administration.tariff-details.zones' | translate}}\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n {{'i18n.domain.administration.tariff-details.blacklist' | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n
    \r\n \r\n
    \r\n
    \r\n","export enum InputType {\r\n Input,\r\n Integer,\r\n Float,\r\n Select,\r\n Bool\r\n}\r\n","import { ZoneDeviceDetailsService } from './../zone-device-details.service';\r\nimport { Component, OnInit, ViewChild, Output, EventEmitter } from '@angular/core';\r\nimport { FormBuilder, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';\r\nimport { DialogComponent as SyncfusionDialogComponent } from '@syncfusion/ej2-angular-popups/src/dialog/dialog.component';\r\nimport { ZoneDeviceBrand, ZoneDeviceDTO, ZoneDeviceType } from 'src/app/base/models/models.swagger.generated';\r\nimport { EnumTranslationService } from 'src/app/base/services/enum-translation.service';\r\nimport { DropDownConstantsFactory } from 'src/app/base/shared/syncfusion/dropdown-constants-factory';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { AppErrorMessagesComponent } from '../../../../../../base/error-messages/app-error-messages.component';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { DialogModule } from '@syncfusion/ej2-angular-popups';\r\n\r\nexport type AddInitialDeviceFormType = {\r\n deviceType: FormControl;\r\n brand: FormControl;\r\n};\r\n\r\n@Component({\r\n selector: 'app-zone-device-add',\r\n templateUrl: './zone-device-add.component.html',\r\n styleUrls: ['./zone-device-add.component.scss'],\r\n standalone: true,\r\n imports: [DialogModule, ReactiveFormsModule, DropDownListModule, AppErrorMessagesComponent, TranslateModule]\r\n})\r\nexport class ZoneDeviceAddComponent implements OnInit {\r\n @ViewChild('addDialog') public addDialog: SyncfusionDialogComponent;\r\n @Output() public deviceStructureCreated = new EventEmitter();\r\n @Output() public cancelled = new EventEmitter();\r\n\r\n public deviceTypes: any[] = null;\r\n public deviceBrands = [];\r\n public enumDropdownSettings = DropDownConstantsFactory.createNumericEnumDropdownSettings();\r\n\r\n public addForm = this.fb.group({\r\n deviceType: this.fb.control(null, Validators.required),\r\n brand: this.fb.control(null, Validators.required),\r\n });\r\n\r\n private allDeviceTypes = this.enumTranslateService.translateNumericEnum(ZoneDeviceType, 'i18n.shared.zone-device-enums.device-type.');\r\n private allDeviceBrands = this.enumTranslateService.translateNumericEnum(ZoneDeviceBrand, 'i18n.shared.zone-device-enums.brand.');\r\n private allSpecs = [];\r\n\r\n constructor(private fb: FormBuilder, private zoneDeviceDetailsService: ZoneDeviceDetailsService, private enumTranslateService: EnumTranslationService,) { }\r\n\r\n ngOnInit() {\r\n this.zoneDeviceDetailsService.loadAvailableDeviceSpecifications().subscribe(specs => {\r\n this.allSpecs = specs;\r\n this.deviceBrands = this.allDeviceBrands.filter(brand => this.allSpecs.some(spec => spec.brand === brand.value as any));\r\n });\r\n this.addForm.controls.brand.valueChanges.subscribe(brand => {\r\n const specsOfBrand = this.allSpecs.filter(spec => spec.brand === brand);\r\n this.deviceTypes = this.allDeviceTypes\r\n .filter(type => specsOfBrand.some(ab => ab.deviceType === type.value as any));\r\n })\r\n }\r\n\r\n public openAdd(): void {\r\n setTimeout(() => {\r\n this.addDialog.show();\r\n },0);\r\n }\r\n\r\n public isAddOpened(): boolean {\r\n return this.addDialog && this.addDialog.visible;\r\n }\r\n\r\n public closeAdd(): void {\r\n this.cancelled.emit();\r\n this.closed();\r\n }\r\n\r\n // close event is triggered on dialog close and not only be close icon -> i.e. rather on this.addDialog.hide()\r\n public onDialogClose($event: any): void {\r\n if ($event.closedBy == 'close icon') {\r\n this.cancelled.emit();\r\n }\r\n }\r\n\r\n public closed(): void {\r\n this.addDialog.hide();\r\n this.addForm.reset();\r\n }\r\n\r\n public initializeDevice(): void {\r\n const formValues = this.addForm.value;\r\n\r\n this.zoneDeviceDetailsService.getZoneDeviceInitialStructure(formValues.deviceType, formValues.brand)\r\n .subscribe(newDevice => {\r\n this.addDialog.hide();\r\n this.addForm.reset();\r\n this.deviceStructureCreated.emit(newDevice);\r\n });\r\n }\r\n\r\n}\r\n","\r\n \r\n {{'i18n.domain.administration.zone-device-details.form.title-add' | translate}}\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n {{data.text | translate}}\r\n \r\n \r\n {{data.text | translate}}\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n {{data.text | translate}}\r\n \r\n \r\n {{data.text | translate}}\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n","import { Component, forwardRef, Input, OnDestroy, OnInit } from '@angular/core';\r\nimport { AbstractControl, ControlValueAccessor, UntypedFormBuilder, NG_VALIDATORS, NG_VALUE_ACCESSOR, Validators, UntypedFormControl, ReactiveFormsModule } from '@angular/forms';\r\nimport { InputType } from '../../models/input-type';\r\nimport { Subject } from 'rxjs';\r\nimport { takeUntil } from 'rxjs/operators';\r\nimport { DropDownItem } from '../drop-down-item.model';\r\nimport { DropDownConstantsFactory } from '../syncfusion/dropdown-constants-factory';\r\nimport { AppErrorMessagesComponent } from '../../error-messages/app-error-messages.component';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { YesNoGroupButtonComponent } from '../yes-no-group-button/yes-no-group-button.component';\r\nimport { NgClass, NgSwitch, NgSwitchCase } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-input-factory',\r\n templateUrl: './input-factory.component.html',\r\n styleUrls: ['./input-factory.component.scss'],\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => InputFactoryComponent),\r\n multi: true,\r\n },\r\n {\r\n provide: NG_VALIDATORS,\r\n useExisting: forwardRef(() => InputFactoryComponent),\r\n multi: true,\r\n }\r\n ],\r\n standalone: true,\r\n imports: [\r\n ReactiveFormsModule,\r\n NgClass,\r\n NgSwitch,\r\n NgSwitchCase,\r\n YesNoGroupButtonComponent,\r\n DropDownListModule,\r\n AppErrorMessagesComponent,\r\n ],\r\n})\r\nexport class InputFactoryComponent implements OnInit, OnDestroy, ControlValueAccessor {\r\n\r\n @Input() public inputType: InputType;\r\n @Input() public control: AbstractControl;\r\n @Input() public label: string;\r\n @Input() public dropdownValues: DropDownItem[];\r\n @Input() public showUntouchedErrors = false;\r\n\r\n public InputType = InputType;\r\n public dropdownSettings = DropDownConstantsFactory.createEnumDropdownSettings();\r\n public isRequired = false;\r\n\r\n public form = this.fb.group({\r\n value: [''],\r\n });\r\n\r\n public get formControlValue(): UntypedFormControl {\r\n return this.form.get('value') as UntypedFormControl;\r\n }\r\n\r\n private unsubscribe$ = new Subject();\r\n\r\n constructor(private fb: UntypedFormBuilder) {\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.isRequired = this.control.hasValidator(Validators.required);\r\n\r\n this.form.get('value').valueChanges\r\n .pipe(takeUntil(this.unsubscribe$))\r\n .subscribe(value => {\r\n this.onChange(value);\r\n this.onTouched();\r\n });\r\n\r\n this.control.statusChanges.pipe(takeUntil(this.unsubscribe$)).subscribe(() => {\r\n this.form.get('value').setErrors(this.control.errors);\r\n if (!!this.control.errors && this.showUntouchedErrors) {\r\n this.form.get('value').markAsTouched();\r\n }\r\n });\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this.unsubscribe$.next();\r\n this.unsubscribe$.complete();\r\n }\r\n\r\n public onChange: any = () => {\r\n };\r\n public onTouched: any = () => {\r\n };\r\n\r\n public registerOnChange(fn: any): void {\r\n this.onChange = fn;\r\n }\r\n\r\n public registerOnTouched(fn: any): void {\r\n this.onTouched = fn;\r\n }\r\n\r\n public setDisabledState(isDisabled: boolean): void {\r\n if (isDisabled) {\r\n this.form.get('value').disable();\r\n } else {\r\n this.form.get('value').enable();\r\n }\r\n }\r\n\r\n public writeValue(obj: any): void {\r\n this.form.get('value').setValue(obj);\r\n this.onChange(obj);\r\n this.onTouched();\r\n }\r\n\r\n public validate(control: AbstractControl): any {\r\n return null;\r\n }\r\n}\r\n","
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n\r\n
    \r\n\r\n
    \r\n\r\n\r\n","import { MapBoxMode } from './../../../../../base/shared/map-box-map/map-box-map.component';\r\nimport { CreateZoneDeviceDTO, IZoneDeviceParameterConfigDTO, IZoneDeviceParameterDTO, ZoneDTO, ZoneDeviceDirection } from 'src/app/base/models/models.swagger.generated';\r\nimport { AfterViewChecked, ChangeDetectorRef, Component, EventEmitter, Input, Output, ViewChild, AfterViewInit } from '@angular/core';\r\nimport {\r\n UpdateZoneDeviceDTO,\r\n ZoneDeviceBrand,\r\n ZoneDeviceCommandDTO,\r\n ZoneDeviceDTO,\r\n ZoneDeviceParameterType,\r\n ZoneDeviceType,\r\n} from 'src/app/base/models/models.swagger.generated';\r\nimport { FormBuilder, FormGroup, UntypedFormControl, UntypedFormGroup, ValidatorFn, Validators, ReactiveFormsModule } from '@angular/forms';\r\nimport { DropDownConstantsFactory } from 'src/app/base/shared/syncfusion/dropdown-constants-factory';\r\nimport { EnumTranslationService } from 'src/app/base/services/enum-translation.service';\r\nimport { merge, Observable, of } from 'rxjs';\r\nimport { CustomValidatorsFactory } from 'src/app/base/shared/validators/custom-validators-factory';\r\nimport { map, startWith } from 'rxjs/operators';\r\nimport { InputType } from 'src/app/base/models/input-type';\r\nimport { DropDownItem } from 'src/app/base/shared/drop-down-item.model';\r\nimport { ModalService } from 'src/app/base/shared/modal/modal.service';\r\nimport { FormHelper } from 'src/app/base/shared/form-helper';\r\nimport { AdministrationItemType, DetailsInitInfo } from '../../data-structures';\r\nimport { IProxyUserInfo, ZoneDeviceDetailsService } from './zone-device-details.service';\r\nimport { ZoneDeviceAddComponent } from './zone-device-add/zone-device-add.component';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { InputFactoryComponent } from '../../../../../base/shared/input-factory/input-factory.component';\r\nimport { YesNoGroupButtonComponent } from '../../../../../base/shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { AppErrorMessagesComponent } from '../../../../../base/error-messages/app-error-messages.component';\r\nimport { NgIf, NgFor } from '@angular/common';\r\nimport { MapBoxMapComponent } from 'src/app/base/shared/map-box-map/map-box-map.component';\r\nimport { ZoneDeviceEditFormType } from './zone-device-details-edit-form-type';\r\n\r\ninterface IZoneDeviceParameterDTOExtended extends IZoneDeviceParameterDTO {\r\n configuration?: IZoneDeviceParameterConfigDTO;\r\n}\r\n\r\n@Component({\r\n selector: 'app-zone-device-details',\r\n templateUrl: './zone-device-details.component.html',\r\n styleUrls: ['./zone-device-details.component.scss'],\r\n standalone: true,\r\n imports: [NgIf, ReactiveFormsModule, AppErrorMessagesComponent, DropDownListModule, YesNoGroupButtonComponent, NgFor, InputFactoryComponent, ZoneDeviceAddComponent, TranslateModule, MapBoxMapComponent]\r\n})\r\nexport class ZoneDeviceDetailsComponent implements AfterViewInit, AfterViewChecked {\r\n @Input() public id: number;\r\n @Input() public isAdd: boolean;\r\n @Output() public cancel = new EventEmitter();\r\n @Output() public deviceUpdated = new EventEmitter();\r\n @Output() public deviceCreated = new EventEmitter();\r\n @Output() public deviceDeleted = new EventEmitter();\r\n @Output() public hasPendingDetailChangesChanged = new EventEmitter();\r\n @ViewChild(ZoneDeviceAddComponent) public deviceAddComponent: ZoneDeviceAddComponent;\r\n\r\n @Input() public set detailsInitInfo(value: DetailsInitInfo) {\r\n const valueStr = value ? JSON.stringify(value) : null;\r\n const detailsInitInfoStr = this._detailInitInfo ? JSON.stringify(this._detailInitInfo) : null;\r\n if (valueStr != detailsInitInfoStr) {\r\n this.zoneDeviceDetailsService.reset();\r\n this._detailInitInfo = value;\r\n if (value?.id) {\r\n this.zoneDeviceDetailsService.getZoneDevice(value.id).subscribe((device: ZoneDeviceDTO) => {\r\n this.isAdd = false;\r\n this.selectedDevice = device;\r\n this.handleDeviceData(this.selectedDevice);\r\n });\r\n } else {\r\n this.deviceAddComponent?.openAdd();\r\n }\r\n }\r\n }\r\n\r\n public get formTitle(): string {\r\n return !!this.selectedDevice?.id ? 'i18n.domain.administration.zone-device-details.form.title-edit' : 'i18n.domain.administration.zone-device-details.form.title-add';\r\n };\r\n\r\n public get coordinates(): string {\r\n return this.deviceForm.controls.coordinates.value;\r\n }\r\n\r\n public set coordinates(coordinates: string) {\r\n this.deviceForm.controls.coordinates.setValue(coordinates);\r\n }\r\n\r\n public get isBusy(): boolean {\r\n return this.zoneDeviceDetailsService.isBusy;\r\n }\r\n\r\n public selectedDevice: ZoneDeviceDTO;\r\n public formReady = false;\r\n public deviceParameters: IZoneDeviceParameterDTOExtended[];\r\n public deviceCommands: ZoneDeviceCommandDTO[];\r\n public deviceParameterSelectOptions = new Map();\r\n\r\n public dropdownSettings = DropDownConstantsFactory.createStandardClientDropdownSettings();\r\n public enumDropdownSettings = DropDownConstantsFactory.createNumericEnumDropdownSettings();\r\n public proxUserDropdownSettings = DropDownConstantsFactory.createStandardClientDropdownSettings();\r\n public zones: any[] = [];\r\n public deviceTypes = this.enumTranslateService.translateNumericEnum(ZoneDeviceType, 'i18n.shared.zone-device-enums.device-type.');\r\n public deviceBrands = this.enumTranslateService.translateNumericEnum(ZoneDeviceBrand, 'i18n.shared.zone-device-enums.brand.');\r\n public deviceDirections = this.enumTranslateService.translateNumericEnum(ZoneDeviceDirection, 'i18n.shared.zone-device-enums.direction.');\r\n\r\n public deviceForm: FormGroup;\r\n public saveButtonDisabled = false;\r\n public isProxyDriven = false;\r\n public proxyUsers: IProxyUserInfo[];\r\n\r\n MapBoxMode = MapBoxMode;\r\n\r\n private formInitialValue;\r\n private _detailInitInfo: DetailsInitInfo;\r\n private formChanged = false;\r\n\r\n constructor(private fb: FormBuilder,\r\n private enumTranslateService: EnumTranslationService,\r\n private cdr: ChangeDetectorRef,\r\n private modalService: ModalService,\r\n private zoneDeviceDetailsService: ZoneDeviceDetailsService) {\r\n }\r\n\r\n public ngAfterViewInit(): void {\r\n if (!this._detailInitInfo?.id && !this.deviceAddComponent.isAddOpened()) {\r\n this.deviceAddComponent.openAdd();\r\n }\r\n }\r\n\r\n public ngAfterViewChecked(): void {\r\n this.cdr.detectChanges();\r\n }\r\n\r\n public submitForm(): void {\r\n if (this.deviceForm.value.id > 0) {\r\n this.updateZoneDevice(this.deviceForm);\r\n } else {\r\n this.createZoneDevice(this.deviceForm);\r\n }\r\n }\r\n\r\n public cancelClicked(): void {\r\n this.canDeactivate().subscribe(data => {\r\n if (data) {\r\n this.closeForm();\r\n this.cancel.emit();\r\n }\r\n });\r\n }\r\n\r\n public onAddCancelled(): void {\r\n this.cancel.emit();\r\n }\r\n\r\n public deleteDevice() {\r\n const dialog = this.modalService.showOkCancelDialog('i18n.domain.administration.zone-device-details.delete-confirm.title', 'i18n.domain.administration.zone-device-details.delete-confirm.content');\r\n dialog.onOkSubject.subscribe(() => {\r\n this.zoneDeviceDetailsService.deleteZoneDevice(this.selectedDevice.id)\r\n .subscribe(() => {\r\n this.deviceDeleted.emit(this.selectedDevice.id);\r\n });\r\n });\r\n }\r\n\r\n public getInputType(paramType: ZoneDeviceParameterType): InputType {\r\n switch (paramType) {\r\n case ZoneDeviceParameterType.Phone:\r\n case ZoneDeviceParameterType.String:\r\n case ZoneDeviceParameterType.IP:\r\n case ZoneDeviceParameterType.MacAddress:\r\n return InputType.Input;\r\n case ZoneDeviceParameterType.Int:\r\n return InputType.Integer;\r\n case ZoneDeviceParameterType.Float:\r\n return InputType.Float;\r\n case ZoneDeviceParameterType.Bool:\r\n return InputType.Bool;\r\n case ZoneDeviceParameterType.Select:\r\n return InputType.Select;\r\n default:\r\n return InputType.Input;\r\n }\r\n }\r\n\r\n public onDeviceStructureCreated(device: ZoneDeviceDTO) {\r\n this.isAdd = true;\r\n device.clientId = this._detailInitInfo.clientId;\r\n device.zone = this._detailInitInfo.parentType === AdministrationItemType.Zone || this._detailInitInfo.parentType === AdministrationItemType.ZoneDeviceCollection ? {id: this._detailInitInfo.parentId} as ZoneDTO : null; // only zone id is needed in the form\r\n this.selectedDevice = device;\r\n this.handleDeviceData(this.selectedDevice);\r\n }\r\n\r\n private handleDeviceData(device: ZoneDeviceDTO) {\r\n this.isProxyDriven = this.zoneDeviceDetailsService.isDeviceProxyDriven(device.deviceType, device.brand);\r\n this.formReady = false;\r\n this.deviceParameters = null;\r\n this.deviceCommands = null;\r\n\r\n this.initForm(device);\r\n\r\n this.proxyUsers = [];\r\n if (this.isProxyDriven) {\r\n this.zoneDeviceDetailsService.getProxyUsers(device.clientId).subscribe((proxyUsers) => {\r\n this.proxyUsers = proxyUsers;\r\n if (this.isAdd && this.proxyUsers.length == 1 && this.deviceForm.controls.proxyUserId.value == null) {\r\n this.deviceForm.controls.proxyUserId.setValue(this.proxyUsers[0].id);\r\n }\r\n });\r\n this.deviceForm.controls.proxyUserId.setValidators(Validators.required);\r\n } else {\r\n this.deviceForm.controls.proxyUserId.setValidators(null);\r\n }\r\n\r\n // handle parameters\r\n if (!!device.parameters) {\r\n this.deviceForm.addControl('parameters', new UntypedFormGroup({}));\r\n\r\n this.deviceParameters = device.parameters;\r\n device.parameters.forEach(parameter => {\r\n const param = parameter as any;\r\n const validators = this.getValidatorsForConfig(param);\r\n (this.deviceForm.controls.parameters as UntypedFormGroup)\r\n .addControl(param.configuration.ident.split('.')[1], new UntypedFormControl(param.value ?? param.phone ?? param.selection ?? param.defaultValue ?? '', validators));\r\n // dots within a form-name kills the connection to it\r\n\r\n if (param.type === ZoneDeviceParameterType.Select) {\r\n const options = param.configuration.selectionPossibilities.map(value => ({key: value, value}));\r\n this.deviceParameterSelectOptions.set(param.configuration.ident.split('.')[1], options);\r\n }\r\n });\r\n }\r\n\r\n this.formInitialValue = JSON.parse(JSON.stringify(this.deviceForm.value));\r\n this.updateFormChangedState(false);\r\n this.deviceForm.statusChanges\r\n .pipe(\r\n startWith(this.deviceForm.status),\r\n )\r\n .subscribe(status => {\r\n const hasChanges = !(JSON.stringify(this.formInitialValue) === JSON.stringify(this.deviceForm.value));\r\n this.updateFormChangedState(hasChanges);\r\n this.saveButtonDisabled = (status !== 'VALID') || !hasChanges;\r\n });\r\n\r\n this.formReady = true;\r\n FormHelper.updateTreeValidity(this.deviceForm, !this.isAdd);\r\n }\r\n\r\n private getValidatorsForConfig(parameter: any): ValidatorFn[] {\r\n const validators: ValidatorFn[] = [];\r\n const config = parameter.configuration;\r\n\r\n if (config.required) {\r\n validators.push(Validators.required);\r\n }\r\n\r\n if (parameter.type === ZoneDeviceParameterType.Int) {\r\n validators.push(Validators.min(config.minValue));\r\n validators.push(Validators.max(config.maxValue));\r\n }\r\n if (parameter.type === ZoneDeviceParameterType.IP) {\r\n validators.push(CustomValidatorsFactory.validateIpAddress(config.allowIPV6));\r\n }\r\n if (parameter.type === ZoneDeviceParameterType.String) {\r\n validators.push(Validators.minLength(config.minLength));\r\n validators.push(Validators.maxLength(config.maxLength));\r\n }\r\n if (parameter.type === ZoneDeviceParameterType.Float) {\r\n validators.push(Validators.min(config.minValue));\r\n validators.push(Validators.max(config.maxValue));\r\n validators.push(Validators.pattern('/^-?\\d*[.,]?\\d{0,' + config.noOfDecimals + '2}$/'));\r\n }\r\n if (parameter.type === ZoneDeviceParameterType.Phone) {\r\n validators.push(CustomValidatorsFactory.createPhoneValidator());\r\n }\r\n if (parameter.type === ZoneDeviceParameterType.MacAddress) {\r\n validators.push(CustomValidatorsFactory.validateMacAddress());\r\n }\r\n\r\n // no validators (yet)\r\n // if (parameter.type === ZoneDeviceParameterType.Select) {\r\n // }\r\n // if (parameter.type === ZoneDeviceParameterType.Bool) {\r\n // }\r\n\r\n return validators;\r\n }\r\n\r\n private initForm(device: ZoneDeviceDTO): void {\r\n this.deviceForm = null;\r\n this.deviceForm = this.fb.group({\r\n id: this.fb.control(device.id),\r\n name: this.fb.control(device.name, Validators.required),\r\n deviceType: this.fb.control({value: device.deviceType, disabled: true}),\r\n brand: this.fb.control({value: device.brand, disabled: true}),\r\n direction: this.fb.control(device.direction, Validators.required),\r\n description: this.fb.control(device.description),\r\n zoneId: this.fb.control(device.zone?.id, Validators.required),\r\n coordinates: this.fb.control(device.coordinates),\r\n proxyUserId: this.fb.control(device.proxyUserId),\r\n enabled: this.fb.control(device.enabled),\r\n });\r\n this.cdr.detectChanges();\r\n }\r\n\r\n private updateZoneDevice(form: FormGroup) {\r\n const formValues = form.value;\r\n const dto = new UpdateZoneDeviceDTO({\r\n id: formValues.id,\r\n name: formValues.name,\r\n coordinates: formValues.coordinates,\r\n description: formValues.description,\r\n proxyUserId: this.isProxyDriven ? formValues.proxyUserId : null,\r\n parameters: this.createParameterDTOs(formValues.parameters),\r\n direction: formValues.direction,\r\n enabled: formValues.enabled\r\n });\r\n\r\n this.zoneDeviceDetailsService.updateZoneDevice(dto)\r\n .subscribe((device) => {\r\n this.selectedDevice = device;\r\n this.handleDeviceData(this.selectedDevice);\r\n this.deviceUpdated.emit(device);\r\n });\r\n }\r\n\r\n private createZoneDevice(form: FormGroup) {\r\n const formValues = form.getRawValue();\r\n const dto = new CreateZoneDeviceDTO({\r\n clientId: this.selectedDevice.clientId,\r\n direction: formValues.direction,\r\n enabled: formValues.enabled,\r\n deviceType: formValues.deviceType,\r\n brand: formValues.brand,\r\n zoneId: formValues.zoneId,\r\n name: formValues.name,\r\n coordinates: formValues.coordinates,\r\n description: formValues.description,\r\n proxyUserId: this.isProxyDriven ? formValues.proxyUserId : null,\r\n parameters: this.createParameterDTOs(formValues.parameters)\r\n });\r\n\r\n this.zoneDeviceDetailsService.createZoneDevice(dto)\r\n .subscribe((device) => {\r\n this.deviceCreated.emit(device);\r\n this.closeForm();\r\n });\r\n }\r\n\r\n private closeForm(): void {\r\n this.isAdd = true;\r\n this.selectedDevice = null;\r\n this.formReady = false;\r\n this.deviceForm = null;\r\n }\r\n\r\n private createParameterDTOs(formParameters: any): any[] {\r\n if (!formParameters) {\r\n return null;\r\n }\r\n const params = [];\r\n Object.keys(formParameters)\r\n .forEach(key => {\r\n const param = this.deviceParameters.find(p => (p as any).configuration.ident.endsWith(key));\r\n switch(param.type) {\r\n case ZoneDeviceParameterType.Select:\r\n (param as any).selection = formParameters[key];\r\n break;\r\n case ZoneDeviceParameterType.Phone:\r\n (param as any).phone = formParameters[key];\r\n break;\r\n default:\r\n (param as any).value = formParameters[key];\r\n break;\r\n }\r\n\r\n params.push(param);\r\n });\r\n return params;\r\n }\r\n\r\n private canDeactivate(): Observable {\r\n if (this.formChanged) {\r\n const dialog = this.modalService.showOkCancelDialog('i18n.errors.discard-dialog.title', 'i18n.errors.discard-dialog.question');\r\n return merge(\r\n dialog.onOkSubject.pipe(map(() => true)),\r\n dialog.onCancelSubject.pipe(map(() => false)),\r\n );\r\n }\r\n return of(true);\r\n }\r\n\r\n private updateFormChangedState(hasChanges: boolean) {\r\n if (this.formChanged !== hasChanges) {\r\n this.formChanged = hasChanges;\r\n this.hasPendingDetailChangesChanged.emit(hasChanges);\r\n }\r\n }\r\n}\r\n\r\n","
    \r\n\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n {{data.text | translate}}\r\n \r\n \r\n {{data.text | translate}}\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n {{data.text | translate}}\r\n \r\n \r\n {{data.text | translate}}\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n {{data.text | translate}}\r\n \r\n \r\n {{data.text | translate}}\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n\r\n \r\n
    \r\n\r\n\r\n","import { Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core';\r\nimport { ZoneBlacklistFormType } from './zone-blacklist-form-type';\r\nimport { FormBuilder, FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { YesNoGroupButtonComponent } from 'src/app/base/shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { MapBoxMapComponent, MapBoxMode } from 'src/app/base/shared/map-box-map/map-box-map.component';\r\nimport { NgIf } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-zone-details-blacklist',\r\n templateUrl: './zone-details-blacklist.component.html',\r\n styleUrls: ['./zone-details-blacklist.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TranslateModule,\r\n ReactiveFormsModule,\r\n YesNoGroupButtonComponent,\r\n MapBoxMapComponent,\r\n NgIf\r\n ]\r\n})\r\n\r\nexport class ZoneDetailsBlacklistComponent implements OnInit, OnChanges {\r\n\r\n @Input() useBlacklistArea: boolean;\r\n @Input() blacklistArea: string;\r\n @Output() dataChange = new EventEmitter<{ useBlacklistArea: boolean, blacklistArea: string }>();\r\n\r\n public blacklistForm: FormGroup;\r\n public hasGpsAreaChanged = false;\r\n\r\n public get gpsArea(): string {\r\n return this.blacklistForm.getRawValue().blacklistGPSArea ? this.blacklistForm.getRawValue().blacklistGPSArea : '';\r\n }\r\n\r\n public set gpsArea(value: string) {\r\n this.blacklistForm.controls.blacklistGPSArea.setValue(value);\r\n const origGpsArea = this.blacklistForm.controls.blacklistGPSArea.value ? this.blacklistForm.controls.blacklistGPSArea.value : '';\r\n this.hasGpsAreaChanged = origGpsArea.localeCompare(value) !== 0;\r\n }\r\n\r\n MapBoxMode = MapBoxMode;\r\n\r\n constructor(\r\n private fb: FormBuilder,\r\n ) { }\r\n\r\n ngOnInit() {\r\n this.createForm();\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n if (changes['useBlacklistArea']) {\r\n this.blacklistForm?.controls?.useBlacklistArea?.setValue(changes['useBlacklistArea'].currentValue);\r\n }\r\n if (changes['blacklistArea']) {\r\n this.blacklistForm?.controls?.blacklistGPSArea?.setValue(changes['blacklistArea'].currentValue);\r\n }\r\n }\r\n\r\n\r\n private createForm(): void {\r\n this.blacklistForm = this.fb.group({\r\n useBlacklistArea: this.fb.control(this.useBlacklistArea),\r\n blacklistGPSArea: this.fb.control(this.blacklistArea)\r\n });\r\n\r\n this.blacklistForm.valueChanges.subscribe((value) => {\r\n this.dataChange.emit({ useBlacklistArea: this.blacklistForm.controls.useBlacklistArea.value, blacklistArea: this.blacklistForm.controls.blacklistGPSArea.value });\r\n });\r\n }\r\n}\r\n","
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n","import {\r\n FilterDTO,\r\n FilterOperator,\r\n ParkingSubscriptionClient,\r\n ParkingSubscriptionDTO,\r\n ParkingSubscriptionType,\r\n SortDirection,\r\n} from 'src/app/base/models/models.swagger.generated';\r\nimport { DialogUtility, TooltipModule } from '@syncfusion/ej2-angular-popups';\r\nimport { ChangeDetectorRef, Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';\r\nimport { AbstractControl, FormBuilder, FormGroup, Validators, ReactiveFormsModule } from '@angular/forms';\r\nimport { TranslateService, TranslateModule } from '@ngx-translate/core';\r\nimport { Subscription } from 'rxjs';\r\nimport { CreateZoneDTO, UpdateZoneDTO, ZoneDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { switchMap } from 'rxjs/operators';\r\nimport { DropDownConstantsFactory } from 'src/app/base/shared/syncfusion/dropdown-constants-factory';\r\nimport { ToastService } from 'src/app/base/services/toast.service';\r\nimport { FormHelper } from 'src/app/base/shared/form-helper';\r\nimport { ModalService } from 'src/app/base/shared/modal/modal.service';\r\nimport { ZoneDetailsService } from './zone-details.service';\r\nimport { AdministrationItemType, DetailsInitInfo } from '../../data-structures';\r\nimport { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';\r\nimport { YesNoGroupButtonComponent } from '../../../../../base/shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { AppErrorMessagesComponent } from '../../../../../base/error-messages/app-error-messages.component';\r\nimport { NgIf, NgClass } from '@angular/common';\r\nimport { MapBoxMapComponent, MapBoxMode } from \"../../../../../base/shared/map-box-map/map-box-map.component\";\r\nimport { TabModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { ZoneDetailsBlacklistComponent } from './zone-details-blacklist/zone-details-blacklist.component';\r\nimport { ZoneEditFormType } from './zone-details-edit-form-type';\r\n\r\nexport interface ZoneInfo {\r\n selectedZone: ZoneDTO;\r\n parentZone: ZoneDTO;\r\n}\r\n\r\n@Component({\r\n selector: 'app-zone-details',\r\n templateUrl: './zone-details.component.html',\r\n styleUrls: ['./zone-details.component.scss'],\r\n standalone: true,\r\n imports: [NgIf, TabModule, ReactiveFormsModule, NgClass, AppErrorMessagesComponent, YesNoGroupButtonComponent, DropDownListModule, TooltipModule, TranslateModule, MapBoxMapComponent, ZoneDetailsBlacklistComponent]\r\n})\r\nexport class ZoneDetailsComponent implements OnInit, OnDestroy {\r\n @Input() public set detailsInitInfo(value: DetailsInitInfo) {\r\n const valueStr = value ? JSON.stringify(value) : null;\r\n const detailsInitInfoStr = this._detailInitInfo ? JSON.stringify(this._detailInitInfo) : null;\r\n if (valueStr != detailsInitInfoStr) {\r\n this.zoneDetailsService.reset();\r\n this._detailInitInfo = value;\r\n if (value?.id) {\r\n this.zoneDetailsService.getZone(value.id).subscribe((zone: ZoneDTO) => {\r\n this._selectedZone = zone;\r\n this.addZone = false;\r\n if (!this._selectedZone.id) {\r\n // initialize parentId in case of create\r\n this._selectedZone.parentId = value.parentId;\r\n }\r\n this.loadFormData();\r\n if (this.parkingSubscriptions) {\r\n this.refreshParkingSubscriptionsDropdownValues();\r\n this.cdr.detectChanges();\r\n }\r\n });\r\n } else {\r\n this._selectedZone = null;\r\n this.loadFormData();\r\n this.addZone = true;\r\n }\r\n }\r\n }\r\n\r\n @Output() public cancel = new EventEmitter();\r\n @Output() public zoneCreated = new EventEmitter();\r\n @Output() public zoneUpdated = new EventEmitter();\r\n @Output() public zoneDeleted = new EventEmitter();\r\n @Output() public hasPendingDetailChangesChanged = new EventEmitter();\r\n\r\n public dropdownSettings = DropDownConstantsFactory.createStandardClientDropdownSettings();\r\n public parkingSubscriptionsDropdownValues = [];\r\n public zoneForm: FormGroup;\r\n public hasGpsAreaChanged = false;\r\n public formChanged = false;\r\n public parkingSubscriptions: ParkingSubscriptionDTO[] = [];\r\n\r\n public get isBusy(): boolean {\r\n return this.zoneDetailsService.isBusy;\r\n }\r\n\r\n public get isFormReady(): boolean {\r\n return !!this.zoneForm && (!!this._selectedZone || this.addZone);\r\n }\r\n\r\n public get isMapEnabled(): boolean {\r\n return !!this.zoneForm.value.enableGPSDetection;\r\n }\r\n\r\n public get isGroupingElement(): boolean {\r\n return !!this.zoneForm.getRawValue().groupingElement;\r\n }\r\n\r\n public get gpsArea(): string {\r\n return this.zoneForm.getRawValue().zoneGPSArea ? this.zoneForm.getRawValue().zoneGPSArea : '';\r\n }\r\n\r\n public set gpsArea(value: string) {\r\n this.zoneForm.controls.zoneGPSArea.setValue(value);\r\n const origGpsArea = this._selectedZone?.zoneGPSArea ? this._selectedZone?.zoneGPSArea : '';\r\n this.hasGpsAreaChanged = origGpsArea.localeCompare(value) !== 0;\r\n }\r\n\r\n public get showUntouchedErrors(): boolean {\r\n return this._selectedZone !== null;\r\n }\r\n\r\n public get cancelButtonText(): string {\r\n if (this.formChanged) {\r\n return 'i18n.shared.cancel';\r\n }\r\n return 'i18n.shared.close';\r\n }\r\n\r\n public get hasCurrentParkerCountChanged(): boolean {\r\n if (!this._selectedZone || !this.zoneForm) {\r\n return false;\r\n }\r\n return this.zoneForm?.controls.currentParkerCount.valid && this._selectedZone?.currentParkerCount !== this.zoneForm?.controls.currentParkerCount.value;\r\n }\r\n\r\n public get isUpdateMode(): boolean {\r\n return !!this._selectedZone;\r\n }\r\n\r\n public get canDelete(): boolean {\r\n return this._selectedZone && !this._selectedZone.hasDevicesAssigned && !this._selectedZone.hasChildZones;\r\n }\r\n\r\n // eslint-disable-next-line @typescript-eslint/ban-types\r\n public tabAnimation: object = {\r\n previous: { effect: '', duration: 0, easing: '' },\r\n next: { effect: '', duration: 0, easing: '' },\r\n };\r\n\r\n MapBoxMode = MapBoxMode;\r\n\r\n private addZone = false;\r\n private formInitialValue;\r\n private _selectedZone: ZoneDTO = null;\r\n private subscriptions = new Subscription();\r\n private _detailInitInfo: DetailsInitInfo;\r\n\r\n constructor(private zoneDetailsService: ZoneDetailsService,\r\n private translateService: TranslateService,\r\n private parkingSubscriptionClient: ParkingSubscriptionClient,\r\n private fb: FormBuilder,\r\n private cdr: ChangeDetectorRef,\r\n private toastService: ToastService,\r\n private modalService: ModalService) {\r\n this.zoneForm = this.fb.group({\r\n id: this.fb.control(null),\r\n name: this.fb.control(null, Validators.required),\r\n groupingElement: this.fb.control(false),\r\n separateNFCCode: this.fb.control(false),\r\n nFCCode: this.fb.control({ value: null, disabled: true }, Validators.required),\r\n enableGPSDetection: this.fb.control(false),\r\n zoneGPSArea: this.fb.control({ value: null, disabled: true }, Validators.required),\r\n foreignParkersAllowed: this.fb.control(false),\r\n maxPassageTime: this.fb.control(null, [Validators.required, Validators.min(0)]),\r\n foreignParkingSubscriptionId: this.fb.control({ value: null, disabled: true }, Validators.required),\r\n parkingSpaceNumberDefinition: this.fb.control(null),\r\n parkingSpaceCapacity: this.fb.control(null, [Validators.min(0)]),\r\n currentParkerCount: this.fb.control(0, [Validators.min(0)]),\r\n useBlacklistArea: this.fb.control(false),\r\n blacklistGPSArea: this.fb.control({ value: null, disabled: true }),\r\n });\r\n\r\n this.subscriptions.add(this.zoneForm.valueChanges.subscribe((v) => {\r\n var hasChanges = false;\r\n if (this.formInitialValue) {\r\n hasChanges = !(JSON.stringify(this.formInitialValue) === JSON.stringify(this.zoneForm.getRawValue()));\r\n //Log form changes to console for debugging purposes\r\n // this.logFormChanges(this.formInitialValue, this.zoneForm.getRawValue());\r\n }\r\n this.updateFormChangedState(hasChanges);\r\n }));\r\n this.subscriptions.add(this.zoneForm.controls.foreignParkersAllowed.valueChanges.subscribe(value => {\r\n this.setFieldEnabledStatus(this.zoneForm.controls.foreignParkingSubscriptionId, value);\r\n }));\r\n this.subscriptions.add(this.zoneForm.controls.separateNFCCode.valueChanges.subscribe(value => {\r\n this.setFieldEnabledStatus(this.zoneForm.controls.nFCCode, value);\r\n }));\r\n this.subscriptions.add(this.zoneForm.controls.groupingElement.valueChanges.subscribe(value => {\r\n if (value) {\r\n this.zoneForm.controls.maxPassageTime.setValidators([]);\r\n } else {\r\n this.zoneForm.controls.maxPassageTime.setValidators([Validators.required]);\r\n }\r\n this.zoneForm.controls.maxPassageTime.updateValueAndValidity();\r\n }));\r\n this.subscriptions.add(this.zoneForm.controls.currentParkerCount.valueChanges.subscribe(value => {\r\n if (this.formInitialValue) {\r\n this.formInitialValue.currentParkerCount = value;\r\n const hasChanges = !(JSON.stringify(this.formInitialValue) === JSON.stringify(this.zoneForm.getRawValue()));\r\n //Log form changes to console for debugging purposes\r\n // this.logFormChanges(this.formInitialValue, this.zoneForm.getRawValue());\r\n this.updateFormChangedState(hasChanges);\r\n }\r\n }));\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.loadParkingSubscriptions();\r\n\r\n this.zoneForm.controls.enableGPSDetection.valueChanges.subscribe(value => {\r\n if (!value) {\r\n this.zoneForm.controls.zoneGPSArea.setValue(null);\r\n }\r\n });\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n if (this.subscriptions) {\r\n this.subscriptions.unsubscribe();\r\n }\r\n }\r\n\r\n public onSelectForeignParkingSubscription(args): void {\r\n args.cancel = args.itemData.disabled;\r\n }\r\n\r\n public onGroupingElementClick() {\r\n if (this.zoneForm.controls.groupingElement.disabled) {\r\n DialogUtility.alert(this.translateService.instant('i18n.domain.administration.zone-details.zone-details-form.has-devices-assigned-message'));\r\n }\r\n }\r\n\r\n public onCancelClicked() {\r\n this.cancel.emit();\r\n }\r\n\r\n public submitForm() {\r\n const data = this.getDTOFromFormData();\r\n if (this._selectedZone != null) {\r\n this.zoneDetailsService.updateZone(data as UpdateZoneDTO).subscribe((zone: ZoneDTO) => {\r\n this._selectedZone = zone;\r\n this.loadFormData();\r\n // avoid timing issues with has changes event update and zone updated event\r\n setTimeout(() => { this.zoneUpdated.emit(zone); }, 0);\r\n });\r\n } else {\r\n this.zoneDetailsService.createZone(data as CreateZoneDTO).subscribe((zone: ZoneDTO) => {\r\n this.zoneCreated.emit(zone);\r\n this.closeForm();\r\n });\r\n }\r\n }\r\n\r\n public onDeleteZone() {\r\n const dialog = this.modalService.showOkCancelDialog('i18n.core.modal.delete.title', 'i18n.core.modal.delete.content');\r\n dialog.onOkSubject.subscribe(() => {\r\n this.zoneDetailsService.deleteZone(this._selectedZone.id).subscribe(data => {\r\n const zoneId = this._selectedZone.id;\r\n this.closeForm();\r\n this.zoneDeleted.emit(zoneId);\r\n });\r\n });\r\n }\r\n\r\n public updateParkingSpaceCounter(): void {\r\n if (!this.hasCurrentParkerCountChanged) {\r\n return;\r\n }\r\n const dialog = this.modalService.showOkCancelDialog(\r\n 'i18n.domain.administration.zone-details.zone-details-form.change-parking-space-counter-dialog-header',\r\n 'i18n.domain.administration.zone-details.zone-details-form.change-parking-space-counter-dialog-description'\r\n );\r\n dialog.onOkSubject.pipe(\r\n switchMap(() => this.zoneDetailsService.setCurrentParkerCount(this._selectedZone.id, this.zoneForm.controls.currentParkerCount.value)),\r\n )\r\n .subscribe((zone: ZoneDTO) => {\r\n this._selectedZone.currentParkerCount = zone.currentParkerCount;\r\n this.zoneForm.controls.currentParkerCount.markAsPristine();\r\n this.toastService.showSuccess(\r\n 'i18n.domain.administration.zone-details.zone-details-form.parking-space-counter-success-title',\r\n 'i18n.domain.administration.zone-details.zone-details-form.parking-space-counter-success-description'\r\n );\r\n });\r\n }\r\n\r\n //Deactivate swipe of tabgroup\r\n public tabSelect(event): void {\r\n if (event.isSwiped) {\r\n event.cancel = true;\r\n }\r\n }\r\n\r\n public onBlacklistDataChange(args:any){\r\n this.zoneForm.controls.useBlacklistArea.setValue(args.useBlacklistArea);\r\n this.zoneForm.controls.blacklistGPSArea.setValue(args.blacklistArea);\r\n this.zoneForm.controls.blacklistGPSArea.markAsTouched();\r\n this.zoneForm.controls.useBlacklistArea.markAsTouched();\r\n this.zoneForm.controls.blacklistGPSArea.updateValueAndValidity();\r\n this.zoneForm.controls.useBlacklistArea.updateValueAndValidity();\r\n }\r\n\r\n private closeForm() {\r\n this.addZone = false;\r\n this._selectedZone = null;\r\n }\r\n\r\n private loadFormData() {\r\n if (this._selectedZone) {\r\n this.zoneForm.reset({\r\n name: this._selectedZone.name ?? '',\r\n groupingElement: this._selectedZone.isGroupingElement,\r\n separateNFCCode: this._selectedZone.separateNFCCode,\r\n nFCCode: this._selectedZone.nfcCode ?? '',\r\n enableGPSDetection: this._selectedZone.enableGPSDetection,\r\n zoneGPSArea: this._selectedZone.zoneGPSArea ?? null,\r\n foreignParkersAllowed: this._selectedZone.foreignParkersAllowed,\r\n maxPassageTime: this._selectedZone.maxPassageTime,\r\n foreignParkingSubscriptionId: this._selectedZone.foreignParkingSubscription?.id,\r\n parkingSpaceNumberDefinition: this._selectedZone.parkingSpaceNumberDefinition,\r\n parkingSpaceCapacity: this._selectedZone.parkingSpaceCapacity,\r\n currentParkerCount: this._selectedZone.currentParkerCount,\r\n useBlacklistArea: this._selectedZone.useBlacklistArea,\r\n blacklistGPSArea: this._selectedZone.blacklistGPSArea\r\n }, { onlySelf: true });\r\n this.setFieldEnabledStatus(this.zoneForm.controls.nFCCode, this._selectedZone.separateNFCCode);\r\n this.setFieldEnabledStatus(this.zoneForm.controls.foreignParkingSubscriptionId, this._selectedZone.foreignParkersAllowed);\r\n this.setFieldEnabledStatus(this.zoneForm.controls.groupingElement, !this._selectedZone.hasDevicesAssigned);\r\n this.setFieldEnabledStatus(this.zoneForm.controls.foreignParkersAllowed, true);\r\n this.zoneForm.controls.nFCCode.markAsTouched();\r\n this.zoneForm.controls.zoneGPSArea.markAsTouched();\r\n this.zoneForm.controls.foreignParkingSubscriptionId.markAsTouched();\r\n } else {\r\n this.zoneForm.reset({ currentParkerCount: 0, foreignParkersAllowed: false });\r\n this.setFieldEnabledStatus(this.zoneForm.controls.foreignParkersAllowed, false);\r\n }\r\n this.formInitialValue = this.zoneForm.getRawValue();\r\n this.updateFormChangedState(false);\r\n FormHelper.updateTreeValidity(this.zoneForm, !!this.zoneForm.controls.name.value);\r\n }\r\n\r\n private setFieldEnabledStatus(control: AbstractControl, isEnabled: boolean) {\r\n if (isEnabled) {\r\n control.enable();\r\n } else {\r\n control.disable();\r\n }\r\n }\r\n\r\n private getDTOFromFormData(): CreateZoneDTO | UpdateZoneDTO {\r\n const rawValue = this.zoneForm.getRawValue();\r\n let dto: CreateZoneDTO | UpdateZoneDTO;\r\n if (this._selectedZone != null) {\r\n dto = new UpdateZoneDTO({\r\n id: this._selectedZone.id,\r\n name: rawValue.name,\r\n isGroupingElement: rawValue.groupingElement ?? false,\r\n separateNFCCode: rawValue.separateNFCCode,\r\n nfcCode: rawValue.nFCCode,\r\n enableGPSDetection: rawValue.enableGPSDetection,\r\n zoneGPSArea: this.zoneForm.getRawValue().zoneGPSArea,\r\n foreignParkersAllowed: rawValue.foreignParkersAllowed,\r\n maxPassageTime: rawValue.maxPassageTime ?? 0,\r\n foreignParkingSubscriptionId: rawValue.foreignParkingSubscriptionId,\r\n parkingSpaceNumberDefinition: rawValue.parkingSpaceNumberDefinition,\r\n parkingSpaceCapacity: rawValue.parkingSpaceCapacity,\r\n useBlacklistArea: rawValue.useBlacklistArea ?? false,\r\n blacklistGPSArea: rawValue.blacklistGPSArea,\r\n });\r\n } else {\r\n dto = new CreateZoneDTO({\r\n parentZoneId: this._detailInitInfo.parentType === AdministrationItemType.Zone ? this._detailInitInfo.parentId : null,\r\n clientId: this._detailInitInfo.clientId,\r\n name: rawValue.name,\r\n isGroupingElement: rawValue.groupingElement ?? false,\r\n separateNFCCode: rawValue.separateNFCCode ?? false,\r\n nfcCode: rawValue.nFCCode,\r\n enableGPSDetection: rawValue.enableGPSDetection ?? false,\r\n zoneGPSArea: this.zoneForm.getRawValue().zoneGPSArea,\r\n maxPassageTime: rawValue.maxPassageTime ?? 0,\r\n parkingSpaceNumberDefinition: rawValue.parkingSpaceNumberDefinition,\r\n parkingSpaceCapacity: rawValue.parkingSpaceCapacity,\r\n currentParkerCount: rawValue.currentParkerCount,\r\n useBlacklistArea: rawValue.useBlacklistArea ?? false,\r\n blacklistGPSArea: rawValue.blacklistGPSArea\r\n });\r\n }\r\n return dto;\r\n }\r\n\r\n private loadParkingSubscriptions(): void {\r\n const filters = [\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'Type',\r\n operator: FilterOperator.Equal,\r\n value: ParkingSubscriptionType.ForeignParkerSubscription.toString(),\r\n }),\r\n new FilterDTO({\r\n isComplex: false,\r\n field: 'Active',\r\n operator: FilterOperator.Equal,\r\n value: 'true',\r\n }),\r\n ];\r\n this.parkingSubscriptionClient.searchParkingSubscriptions(this._detailInitInfo.clientId, filters, 0, 0, 'Name', SortDirection.Ascending)\r\n .subscribe(items => {\r\n this.parkingSubscriptions = items.items;\r\n if (this._selectedZone) {\r\n this.refreshParkingSubscriptionsDropdownValues();\r\n }\r\n });\r\n }\r\n\r\n private updateFormChangedState(hasChanges: boolean) {\r\n if (this.formChanged !== hasChanges) {\r\n this.formChanged = hasChanges;\r\n this.hasPendingDetailChangesChanged.emit(hasChanges);\r\n }\r\n }\r\n\r\n private refreshParkingSubscriptionsDropdownValues() {\r\n this.parkingSubscriptionsDropdownValues = this.parkingSubscriptions\r\n // display all assignable subs, or if the current selected sub is not assignable, that as well\r\n .filter(item => (item.assignable && item.tariffs.some((t) => this._selectedZone.assignedTariffs.some(tid => tid === t.id))) || item.id === this.zoneForm.value.foreignParkingSubscriptionId)\r\n .map(item => ({ name: item.name, id: item.id, disabled: !item.assignable }));\r\n }\r\n\r\n private logFormChanges(initialValue: any, currentValue: any): void {\r\n const changes = this.getFormChanges(initialValue, currentValue);\r\n console.log('Form changes:', changes);\r\n }\r\n\r\n private getFormChanges(initialValue: any, currentValue: any): any {\r\n const changes: any = {};\r\n Object.keys(currentValue).forEach(key => {\r\n if (initialValue[key] !== currentValue[key]) {\r\n changes[key] = {\r\n initialValue: initialValue[key],\r\n currentValue: currentValue[key]\r\n };\r\n }\r\n });\r\n return changes;\r\n }\r\n}\r\n","
    \r\n \r\n \r\n \r\n \r\n {{'i18n.domain.administration.zone-details.tab.general' | translate}}\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n min\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    {{data?.name}}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n \r\n \r\n {{'i18n.domain.administration.zone-details.tab.blacklist' | translate}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n\r\n","import { IParkingSubscriptionDTO, ParkingSubscriptionDTO } from './../../../../base/models/models.swagger.generated';\r\nimport { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\nimport { AdministrationItemType, DetailsInitInfo, ItemEventInfo } from '../data-structures';\r\nimport { ConfigBasedStructuralEntryDTO, ParkingTariffDTO, ZoneDTO, ZoneDeviceDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { StructuralEntryDetailsComponent } from './structural-entry-details/structural-entry-details.component';\r\nimport { SubscriptionDetailsComponent } from './subscription-details/subscription-details.component';\r\nimport { TariffDetailsComponent } from './tariff-details/tariff-details.component';\r\nimport { ZoneDeviceDetailsComponent } from './zone-device-details/zone-device-details.component';\r\nimport { ZoneDetailsComponent } from './zone-details/zone-details.component';\r\nimport { NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault } from '@angular/common';\r\n\r\n\r\n\r\n@Component({\r\n selector: 'app-administration-details',\r\n templateUrl: './administration-details.component.html',\r\n styleUrls: ['./administration-details.component.scss'],\r\n standalone: true,\r\n imports: [NgIf, NgSwitch, NgSwitchCase, ZoneDetailsComponent, ZoneDeviceDetailsComponent, TariffDetailsComponent, SubscriptionDetailsComponent, StructuralEntryDetailsComponent, NgSwitchDefault]\r\n})\r\nexport class AdministrationDetailsComponent implements OnInit {\r\n @Input() public set selectedItem(value : DetailsInitInfo) {\r\n this._selectedItem = value;\r\n }\r\n\r\n public get selectedItem(): DetailsInitInfo {\r\n return this._selectedItem;\r\n }\r\n\r\n @Output() public cancel = new EventEmitter();\r\n @Output() public itemCreated = new EventEmitter();\r\n @Output() public itemUpdated = new EventEmitter();\r\n @Output() public itemDeleted = new EventEmitter();\r\n @Output() public hasPendingDetailChangesChanged = new EventEmitter();\r\n\r\n public AdministrationItemType = AdministrationItemType;\r\n\r\n public get showContent(): boolean {\r\n return this.selectedItem != null &&\r\n this.selectedItem.type != AdministrationItemType.ZoneCollection &&\r\n this.selectedItem.type != AdministrationItemType.ZoneDeviceCollection &&\r\n this.selectedItem.type != AdministrationItemType.ConfigBasedStructuralElementCollection &&\r\n this.selectedItem.type != AdministrationItemType.SubscriptionCollection;\r\n }\r\n\r\n private _selectedItem: DetailsInitInfo = null;\r\n\r\n constructor() { }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n public onDetailCancel() {\r\n this.cancel?.emit();\r\n }\r\n\r\n public onTariffCreated(data: ParkingTariffDTO) {\r\n this.itemCreated.emit({ id: data.id, type: AdministrationItemType.Tariff, data, parentId: this.selectedItem.id });\r\n }\r\n\r\n public onTariffUpdated(data: ParkingTariffDTO) {\r\n this.itemUpdated.emit({ id: data.id, type: AdministrationItemType.Tariff, data, parentId: this.selectedItem.parentId });\r\n }\r\n\r\n public onTariffDeleted(id: number) {\r\n this.itemDeleted.emit({ id, type: AdministrationItemType.Tariff, data: null, parentId: this.selectedItem.parentId });\r\n }\r\n\r\n public onDeviceCreated(data: ZoneDeviceDTO) {\r\n this.itemCreated.emit({ id: data.id, type: AdministrationItemType.ZoneDevice, data, parentId: this.selectedItem.id });\r\n }\r\n\r\n public onDeviceUpdated(data: ZoneDeviceDTO) {\r\n this.itemUpdated.emit({ id: data.id, type: AdministrationItemType.ZoneDevice, data, parentId: this.selectedItem.parentId });\r\n }\r\n\r\n public onDeviceDeleted(id: number) {\r\n this.itemDeleted.emit({ id, type: AdministrationItemType.ZoneDevice, data: null, parentId: this.selectedItem.parentId });\r\n }\r\n\r\n public onZoneCreated(data: ZoneDTO) {\r\n this.itemCreated.emit({ id: data.id, type: AdministrationItemType.Zone, data: data, parentId: this.selectedItem.id});\r\n }\r\n\r\n public onZoneUpdated(data: ZoneDTO) {\r\n this.itemUpdated.emit({ id: data.id, type: AdministrationItemType.Zone, data, parentId: this.selectedItem.parentId });\r\n }\r\n\r\n public onZoneDeleted(id: number) {\r\n this.itemDeleted.emit({ id, type: AdministrationItemType.Zone, data: null, parentId: this.selectedItem.parentId });\r\n }\r\n\r\n public onSubscriptionCreated(data: IParkingSubscriptionDTO) {\r\n // TODO: fix typecasting\r\n this.itemCreated.emit({ id: data.id, type: AdministrationItemType.Subscription, data: data as ParkingSubscriptionDTO, parentId: this.selectedItem.id });\r\n }\r\n\r\n public onSubscriptionUpdated(data: IParkingSubscriptionDTO) {\r\n // TODO: fix typecasting\r\n this.itemUpdated.emit({ id: data.id, type: AdministrationItemType.Subscription, data: data as ParkingSubscriptionDTO, parentId: this.selectedItem.parentId });\r\n }\r\n\r\n public onSubscriptionDeleted(id: number) {\r\n this.itemDeleted.emit({ id, type: AdministrationItemType.Subscription, data: null, parentId: this.selectedItem.parentId });\r\n }\r\n\r\n public onStructuralEntryCreated(data: ConfigBasedStructuralEntryDTO) {\r\n this.itemCreated.emit({ id: data.id, type: AdministrationItemType.ConfigBasedStructuralElement, data, parentId: this.selectedItem.id });\r\n }\r\n\r\n public onStructuralEntryUpdated(data: ConfigBasedStructuralEntryDTO) {\r\n this.itemUpdated.emit({ id: data.id, type: AdministrationItemType.ConfigBasedStructuralElement, data, parentId: this.selectedItem.parentId });\r\n }\r\n\r\n public onStructuralEntryDeleted(id: number) {\r\n this.itemDeleted.emit({ id, type: AdministrationItemType.ConfigBasedStructuralElement, data: null, parentId: this.selectedItem.parentId });\r\n }\r\n\r\n public onHasPendingDetailChanges(hasChanges: boolean) {\r\n this.hasPendingDetailChangesChanged.emit(hasChanges);\r\n }\r\n}\r\n","
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n\r\n","import { AfterViewChecked, ChangeDetectorRef, Component, ViewChild } from '@angular/core';\r\nimport { DetailsInitInfo, ItemEventInfo } from './data-structures';\r\nimport { ClientDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\r\nimport { TreeViewZoneBasedComponent } from './tree-views/tree-view-zone-based/tree-view-zone-based.component';\r\nimport { TreeViewConfigBasedComponent } from './tree-views/tree-view-config-based/tree-view-config-based.component';\r\nimport { ITreeViewComponent } from './tree-views/tree-view.interface';\r\nimport { AuthService } from 'src/app/base/services/auth.service';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { AdministrationDetailsComponent } from './administration-details/administration-details.component';\r\nimport { YesNoGroupButtonComponent } from '../../../base/shared/yes-no-group-button/yes-no-group-button.component';\r\nimport { ClientAutocompleteComponent } from '../../../base/shared/client-autocomplete/client-autocomplete.component';\r\nimport { NgIf } from '@angular/common';\r\nimport { TitleBarComponent } from '../../../base/shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-administration',\r\n templateUrl: './administration.component.html',\r\n styleUrls: ['./administration.component.scss'],\r\n standalone: true,\r\n imports: [TitleBarComponent, NgIf, ClientAutocompleteComponent, YesNoGroupButtonComponent, ReactiveFormsModule, TreeViewZoneBasedComponent, TreeViewConfigBasedComponent, AdministrationDetailsComponent, TranslateModule]\r\n})\r\nexport class AdministrationComponent implements AfterViewChecked {\r\n @ViewChild(TreeViewZoneBasedComponent) public zoneBasedTreeView: TreeViewZoneBasedComponent;\r\n @ViewChild(TreeViewConfigBasedComponent) public configBasedTreeView: TreeViewConfigBasedComponent;\r\n\r\n public selectedItem: DetailsInitInfo = null;\r\n\r\n public isZoneModeControl: FormControl = new FormControl(true);\r\n\r\n public hasPendingDetailChanges: boolean = false;\r\n\r\n public get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public set selectedClient(value: ClientDTO) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n }\r\n\r\n public get isClientAdminView(): boolean {\r\n return this.authService.hasUserClientAssigned();\r\n }\r\n\r\n private get activeTreeView(): ITreeViewComponent {\r\n return this.isZoneModeControl.value ? this.zoneBasedTreeView : this.configBasedTreeView;\r\n }\r\n\r\n constructor(private clientService: ClientService, private authService: AuthService, private cdr: ChangeDetectorRef) {\r\n this.isZoneModeControl.valueChanges.subscribe((value) => {\r\n this.selectedItem = null;\r\n });\r\n }\r\n\r\n public ngAfterViewChecked(): void {\r\n this.cdr.detectChanges();\r\n }\r\n\r\n public onItemSelected(data: DetailsInitInfo) {\r\n this.selectedItem = data;\r\n }\r\n\r\n public onDetailCancel() {\r\n if (this.isZoneModeControl.value) {\r\n this.zoneBasedTreeView?.resetSelection();\r\n } else {\r\n this.configBasedTreeView?.resetSelection();\r\n }\r\n }\r\n\r\n public onItemCreated(eventInfo: ItemEventInfo) {\r\n this.hasPendingDetailChanges = false;\r\n this.activeTreeView?.addNode(eventInfo);\r\n }\r\n\r\n public onItemUpdated(eventInfo: ItemEventInfo) {\r\n this.hasPendingDetailChanges = false;\r\n this.activeTreeView?.updateNode(eventInfo);\r\n }\r\n\r\n public onItemDeleted(eventInfo: ItemEventInfo) {\r\n this.hasPendingDetailChanges = false;\r\n this.activeTreeView?.removeNode(eventInfo);\r\n }\r\n\r\n public onHasPendingDetailChanges(hasPendingDetailChanges: boolean) {\r\n this.hasPendingDetailChanges = hasPendingDetailChanges;\r\n }\r\n\r\n private onClientSelected(client: ClientDTO) {\r\n this.activeTreeView?.reset();\r\n this.selectedItem = null;\r\n this.hasPendingDetailChanges = false;\r\n }\r\n}\r\n","\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n\r\n\r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n","import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { DatePickerComponent, DatePickerModule } from '@syncfusion/ej2-angular-calendars';\r\nimport { Observable, of, map } from 'rxjs';\r\nimport { ClientDTO, PagedResultDTOOfParkerDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { AuthService } from 'src/app/base/services/auth.service';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { AutocompleteItem } from 'src/app/base/shared/autocomplete/autocomplete-item';\r\nimport { UserExtractReportService } from '../user-extract-report.service';\r\nimport { UserExtractFormType } from './user-extract-form-type';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\n\r\n@Component({\r\n selector: 'app-user-extract-form',\r\n templateUrl: './user-extract-form.component.html',\r\n styleUrls: ['./user-extract-form.component.scss'],\r\n standalone: true,\r\n imports: [ReactiveFormsModule, DatePickerModule, TranslateModule]\r\n})\r\nexport class UserExtractFormComponent implements OnInit, OnDestroy {\r\n @ViewChild('startTime')\r\n public startTimePicker: DatePickerComponent;\r\n\r\n @ViewChild('endTime')\r\n public endTimePicker: DatePickerComponent;\r\n\r\n @Input() public form: FormGroup;\r\n\r\n @Output()\r\n public searchDTOChanged = new EventEmitter();\r\n\r\n public keyValueDropdownSettings = {text: 'name', value: 'id'};\r\n\r\n public subscriptions = [];\r\n\r\n constructor(public authService: AuthService,\r\n protected clientService: ClientService,\r\n private userExtractReportService: UserExtractReportService) {\r\n }\r\n\r\n ngOnInit(): void {\r\n this.subscriptions.push(\r\n this.form.valueChanges.subscribe(() => {\r\n if (this.endTimePicker) {\r\n if (this.form.controls.startDate.value) {\r\n this.endTimePicker.min = this.form.controls.startDate.value;\r\n } else {\r\n this.endTimePicker.min = null;\r\n }\r\n }\r\n\r\n if (this.startTimePicker) {\r\n if (this.form.controls.endDate.value) {\r\n this.startTimePicker.max = this.form.controls.endDate.value;\r\n } else {\r\n this.startTimePicker.max = null;\r\n }\r\n }\r\n\r\n this.searchDTOChanged.emit();\r\n }));\r\n }\r\n\r\n public get allowClientSelection(): boolean {\r\n return this.authService.isUserAdminOrClientAdmin() || this.authService.hasUserClientAssigned();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.subscriptions.forEach(s => s.unsubscribe());\r\n }\r\n}\r\n","
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n","import { DateRangeParameterDTO } from './../../../../../base/models/models.swagger.generated';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { Component, OnInit, ViewChild } from '@angular/core';\r\nimport { FormBuilder, FormGroup } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\nimport { GridComponent, GridModule } from '@syncfusion/ej2-angular-grids';\r\nimport { DateTime } from 'luxon';\r\nimport { UserExtractReportSummaryDTO, Currency } from 'src/app/base/models/models.swagger.generated';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { StringHelper } from 'src/app/base/shared/string-helper';\r\nimport { AvpCustomAdaptor } from 'src/app/base/shared/syncfusion/avp-custom-adaptor';\r\nimport { GridConstantsFactory } from 'src/app/base/shared/syncfusion/grid-constants-factory';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { reportsRoute } from 'src/app/core/routing/route-names';\r\nimport { ReportsFooterComponent } from '../../../reports-footer/reports-footer.component';\r\nimport { SaveOptions } from '../../../reports-footer/save-options';\r\nimport { UserExtractReportService } from '../user-extract-report.service';\r\nimport { UserExtractFormType } from '../user-extract-form/user-extract-form-type';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgIf, NgFor, DecimalPipe } from '@angular/common';\r\nimport { UserExtractFormComponent } from '../user-extract-form/user-extract-form.component';\r\nimport { TitleBarComponent } from '../../../../../base/shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-user-extract-report',\r\n templateUrl: './user-extract-report.component.html',\r\n styleUrls: ['./user-extract-report.component.scss'],\r\n standalone: true,\r\n imports: [TitleBarComponent, UserExtractFormComponent, NgIf, GridModule, ReportsFooterComponent, NgFor, DecimalPipe, TranslateModule]\r\n})\r\nexport class UserExtractReportComponent implements OnInit {\r\n @ViewChild('grid') public grid: GridComponent;\r\n @ViewChild(ReportsFooterComponent) public footer: ReportsFooterComponent;\r\n\r\n public Currency = Currency;\r\n public data: DataManager;\r\n public summaryData: UserExtractReportSummaryDTO;\r\n\r\n public filterForm: FormGroup = this.fb.group({\r\n startDate: this.fb.control(DateTime.now().startOf('month').toJSDate()),\r\n endDate: this.fb.control(DateTime.now().endOf('month').toJSDate())\r\n });\r\n\r\n public pageSettings = GridConstantsFactory.createStandardPageSettings();\r\n\r\n constructor(public clientService: ClientService,\r\n private fb: FormBuilder,\r\n private router: Router,\r\n private spinnerService: SpinnerService,\r\n private userExtractReportService: UserExtractReportService) {\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.userExtractReportService, this.spinnerService),\r\n });\r\n\r\n this.searchReports();\r\n }\r\n\r\n public searchReports(): void {\r\n if (this.filterForm.controls.startDate.value && this.filterForm.controls.endDate.value) {\r\n const reportParameters = this.createReportParameters();\r\n this.userExtractReportService.reportParameters = reportParameters;\r\n this.grid?.refresh();\r\n this.userExtractReportService.getReportSummary(reportParameters)\r\n .subscribe(summary => {\r\n this.summaryData = summary;\r\n this.summaryData.totalAmounts.sort((a, b) => a.currency - b.currency);\r\n });\r\n }\r\n }\r\n\r\n public saveReport(saveOptions: SaveOptions): void {\r\n this.spinnerService.showSpinner = true;\r\n const reportParameters = this.createReportParameters();\r\n this.userExtractReportService.exportReport(reportParameters, saveOptions)\r\n .subscribe(savedReportFileDTO => {\r\n this.spinnerService.showSpinner = false;\r\n if (saveOptions.saveReport) {\r\n this.router.navigate([reportsRoute]);\r\n } else {\r\n this.footer.downloadFile(savedReportFileDTO);\r\n }\r\n });\r\n }\r\n\r\n public formatTime(minutes: number): string {\r\n return StringHelper.transformToTimeRepresentation(minutes);\r\n }\r\n\r\n public formatCurrency(type: Currency): string {\r\n if (type == null) {\r\n return '';\r\n }\r\n return 'i18n.shared.currencies.' + Currency[type];\r\n }\r\n\r\n private createReportParameters(): DateRangeParameterDTO {\r\n return new DateRangeParameterDTO({\r\n startDate: DateTime.fromJSDate(this.filterForm.controls.startDate.value).startOf('day').toFormat('yyyy-MM-dd'),\r\n endDate: DateTime.fromJSDate(this.filterForm.controls.endDate.value).startOf('day').toFormat('yyyy-MM-dd'),\r\n });\r\n }\r\n}\r\n","\r\n
    \r\n \r\n
    \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{formatTime(data.durationInMinutes) + 'h'}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.amount | number : '1.2-2'}}\r\n \r\n \r\n \r\n \r\n {{formatCurrency(data.currency) | translate}}\r\n \r\n \r\n \r\n \r\n\r\n \r\n
    \r\n {{'i18n.domain.reports.user-extract.totalParkings' | translate}}: {{summaryData.totalNumberOfParkings}}\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    {{'i18n.domain.reports.user-extract.totalAmount' | translate:{currency: Currency[summary.currency]} }}:
    \r\n
    {{summary.totalPrice| number : '1.2-2'}} {{formatCurrency(summary.currency) | translate}}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\n\r\nexport interface CanComponentDeactivate {\r\n canDeactivate: () => Observable | Promise | boolean;\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CanDeactivateGuard {\r\n canDeactivate(component: CanComponentDeactivate) {\r\n return component.canDeactivate ? component.canDeactivate() : true;\r\n }\r\n\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\n\r\nimport { AuthService } from '../services/auth.service';\r\nimport { homeRoute, loginRoute } from 'src/app/core/routing/route-names';\r\nimport { ActivationGuardBase } from './activation-guard.base';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AdminOrClientAdminOrCompanyAdminGuard extends ActivationGuardBase {\r\n constructor(private authService: AuthService, private router: Router) {\r\n super();\r\n }\r\n\r\n checkLogin(url: string): boolean {\r\n if (this.authService.isUserLoggedIn() && this.authService.isUserAdminOrClientAdminOrCompanyAdmin()) {\r\n return true;\r\n }\r\n\r\n // Store the attempted URL for redirecting\r\n this.authService.redirectUrl = url;\r\n\r\n // Navigate to the login page with extras\r\n if (this.authService.isUserLoggedIn()) {\r\n this.router.navigate([homeRoute]);\r\n } else {\r\n this.router.navigate([loginRoute]);\r\n }\r\n\r\n return false;\r\n }\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-wizard-step',\r\n templateUrl: './wizard-step.component.html',\r\n styleUrls: ['./wizard-step.component.scss'],\r\n standalone: true\r\n})\r\nexport class WizardStepComponent implements OnInit {\r\n\r\n constructor() { }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","","import { Component, OnInit } from '@angular/core';\r\nimport { WizardStepComponent } from './wizard-step/wizard-step.component';\r\nimport { TitleBarComponent } from 'src/app/base/shared/title-bar/title-bar.component';\r\n\r\n@Component({\r\n selector: 'app-onboarding-wizard',\r\n templateUrl: './onboarding-wizard.component.html',\r\n styleUrls: ['./onboarding-wizard.component.scss'],\r\n standalone: true,\r\n imports: [\r\n WizardStepComponent, TitleBarComponent\r\n ],\r\n})\r\nexport class OnboardingWizardComponent implements OnInit {\r\n\r\n constructor() { }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","\r\n","import { Injectable } from '@angular/core';\r\nimport { catchError, Observable, of, tap, throwError } from 'rxjs';\r\nimport { FilterDTO, PagedResultDTOOfTagMasterDTO, SortDirection, TagMasterClient } from 'src/app/base/models/models.swagger.generated';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { ToastService } from 'src/app/base/services/toast.service';\r\nimport { DATE_HELPER_DEFAULT_TIME_ZONE } from 'src/app/base/shared/date-helper';\r\nimport { FilterUtil } from 'src/app/base/shared/filter-util';\r\nimport { ShowInactiveService } from 'src/app/base/shared/grid-base/show-inactive.service';\r\nimport { IAdaptorService } from 'src/app/base/shared/syncfusion/adaptor-service.interface';\r\nimport { IPagedItems } from 'src/app/base/shared/syncfusion/paged-items.interface';\r\nimport { ErrorType } from 'src/app/core/routing/error-types';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\n\r\nexport class TagMasterService extends ShowInactiveService implements IAdaptorService {\r\n constructor(private tagMasterClient: TagMasterClient,\r\n private clientService: ClientService,\r\n private toastService: ToastService) {\r\n super();\r\n }\r\n\r\n public getData(skip: number, take: number, filters: FilterDTO[], sortBy: string, sortDirection: SortDirection): Observable {\r\n if (this.clientService.selectedClient == null) {\r\n return of(new PagedResultDTOOfTagMasterDTO({ items: [], totalNumberOfItems: 0 }));\r\n }\r\n FilterUtil.correctDateTimeFilters(filters, 'AssignedOn', DATE_HELPER_DEFAULT_TIME_ZONE);\r\n return this.tagMasterClient.searchTagMasters(this.clientService.selectedClient.id, filters, skip, take, sortBy, sortDirection, false);\r\n }\r\n\r\n public addRecord(data: any): Observable {\r\n throw new Error('Method not implemented.');\r\n }\r\n\r\n public updateRecord(data: any): Observable {\r\n throw new Error('Method not implemented.');\r\n }\r\n\r\n public deleteRecord(id: number): Observable {\r\n return this.deleteRecords([id]);\r\n }\r\n\r\n public deleteRecords(id: number[]): Observable {\r\n return this.tagMasterClient.deleteTagMasters(id).pipe(\r\n tap(() => {\r\n this.toastService.showSuccess(\r\n 'i18n.domain.tag-master.messages.delete-title',\r\n 'i18n.domain.tag-master.messages.delete-success-message'\r\n );\r\n }),\r\n catchError(error => {\r\n if (!this.toastService.doesErrorExistAlready(ErrorType.serverError)) {\r\n this.toastService.showError('i18n.errors.server-error.title', 'i18n.errors.server-error.message', null, ErrorType.serverError);\r\n }\r\n return throwError(() => error);\r\n })\r\n );\r\n }\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { TranslateModule, TranslateService } from '@ngx-translate/core';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { ClientAutocompleteComponent } from 'src/app/base/shared/client-autocomplete/client-autocomplete.component';\r\nimport { GridBaseComponent } from 'src/app/base/shared/grid-base/grid-base.component';\r\nimport { GridConstantsFactory } from 'src/app/base/shared/syncfusion/grid-constants-factory';\r\nimport { TitleBarComponent } from 'src/app/base/shared/title-bar/title-bar.component';\r\nimport { TagMasterService } from './tag-master.service';\r\nimport { DataManager } from '@syncfusion/ej2-data';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { AvpCustomAdaptor } from 'src/app/base/shared/syncfusion/avp-custom-adaptor';\r\nimport { ClientDTO } from 'src/app/base/models/models.swagger.generated';\r\nimport { GridModule, RowDataBoundEventArgs } from '@syncfusion/ej2-angular-grids';\r\nimport { DatePipe, NgIf } from '@angular/common';\r\nimport { SfCommandButtonType } from 'src/app/base/models/syncfusion-data';\r\nimport { ToolbarModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { ModalService } from 'src/app/base/shared/modal/modal.service';\r\n\r\n@Component({\r\n selector: 'app-tag-master',\r\n templateUrl: './tag-master.component.html',\r\n styleUrls: ['./tag-master.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TitleBarComponent,\r\n ClientAutocompleteComponent,\r\n GridModule,\r\n NgIf,\r\n TranslateModule,\r\n ToolbarModule,\r\n DatePipe\r\n ],\r\n})\r\n\r\nexport class TagMasterComponent extends GridBaseComponent implements OnInit {\r\n\r\n public checkBoxFilter = GridConstantsFactory.createCheckBoxFilter();\r\n\r\n constructor(clientService: ClientService,\r\n translate: TranslateService,\r\n private tagMasterService: TagMasterService,\r\n private spinnerService: SpinnerService,\r\n private modalService: ModalService,\r\n ) {\r\n super(clientService, translate, tagMasterService);\r\n this.gridCommands = [this.gridCommands.find((command) => command.type === SfCommandButtonType.Delete)];\r\n this.editSettings = GridConstantsFactory.createStandardEditSettings();\r\n this.editSettings.allowEditing = false;\r\n this.editSettings.allowAdding = false;\r\n }\r\n\r\n ngOnInit() {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.tagMasterService, this.spinnerService),\r\n });\r\n }\r\n\r\n public override get selectedClient(): ClientDTO {\r\n return this.clientService.selectedClient;\r\n }\r\n\r\n public override set selectedClient(value: ClientDTO) {\r\n this.clientService.selectedClient = value;\r\n this.onClientSelected(value);\r\n }\r\n\r\n public onMultipleDelete() {\r\n // get the primary key of the selected rows\r\n const selectedRecords = this.grid.getSelectedRecords();\r\n const selectedIds = selectedRecords.map((record) => record['id']);\r\n if (selectedIds.length > 0) {\r\n const dialog = this.modalService.showOkCancelDialog('i18n.domain.tag-master.messages.delete-title', 'i18n.domain.tag-master.messages.delete-multiple-question');\r\n dialog.onOkSubject.subscribe(() => {\r\n this.tagMasterService.deleteRecords(selectedIds).subscribe(() => {\r\n this.grid.refresh();\r\n });\r\n });\r\n }\r\n }\r\n\r\n public rowDataBound(args: RowDataBoundEventArgs) {\r\n // if record is active then hide the row selection checkbox and delete button\r\n if (args.data['isActive']) {\r\n args.isSelectable = false;\r\n var button = args.row.getElementsByClassName('icon-trash-can');\r\n if (button && button.length > 0 && button[0].parentElement) {\r\n button[0].parentElement.hidden = true;\r\n }\r\n var checkBox = args.row.getElementsByClassName('e-checkselect');\r\n if (checkBox && checkBox.length > 0 && checkBox[0].parentElement) {\r\n checkBox[0].parentElement.hidden = true;\r\n }\r\n }\r\n }\r\n\r\n protected override initializeEditForm(data: any): void {\r\n throw new Error('Method not implemented.');\r\n }\r\n\r\n protected override getEditDialogTitleParams(rowData: any) {\r\n throw new Error('Method not implemented.');\r\n }\r\n}\r\n","\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data.assignedOn | date:'dd.MM.yyyy HH:mm:ss'}}\r\n \r\n \r\n \r\n \r\n \r\n {{formatIsActive(data, 'isActive')}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    ","import { Injectable } from '@angular/core';\r\nimport { catchError, Observable, tap, throwError } from 'rxjs';\r\nimport { FilterDTO, PagedResultDTOOfParkingCardDTO, ParkingCardClient, SortDirection } from 'src/app/base/models/models.swagger.generated';\r\nimport { ToastService } from 'src/app/base/services/toast.service';\r\nimport { DATE_HELPER_DEFAULT_TIME_ZONE } from 'src/app/base/shared/date-helper';\r\nimport { FilterUtil } from 'src/app/base/shared/filter-util';\r\nimport { ShowInactiveService } from 'src/app/base/shared/grid-base/show-inactive.service';\r\nimport { IAdaptorService } from 'src/app/base/shared/syncfusion/adaptor-service.interface';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\n\r\nexport class ParkingCardService extends ShowInactiveService implements IAdaptorService {\r\n\r\n public issuedToMe: boolean = false;\r\n\r\n constructor(private parkingCardClient: ParkingCardClient,\r\n private toastService: ToastService,\r\n private spinnerService: SpinnerService\r\n ) {\r\n super();\r\n }\r\n\r\n public getData(skip: number, take: number, filters: FilterDTO[], sortBy: string, sortDirection: SortDirection): Observable {\r\n if (!sortBy) {\r\n sortBy = this.issuedToMe ? 'VisitorAlias' : 'ParkerAlias';\r\n sortDirection = SortDirection.Ascending;\r\n } else if (sortBy === \"IssuingParkerName\") {\r\n sortBy = 'IssuingParker.FirstName';\r\n } else if (sortBy === \"IssuedToUserName\") {\r\n sortBy = 'IssuedToUser.Firstname';\r\n } else if (sortBy === \"ClientName\") {\r\n sortBy = 'Client.Name';\r\n }\r\n // check if filters contains issuingParkerName, issuedToUserName or clientName, then change them to dot notation\r\n FilterUtil.replaceFieldNameInfilters(filters, 'IssuingParkerName', 'IssuingParker.FirstName');\r\n FilterUtil.replaceFieldNameInfilters(filters, 'IssuedToUserName', 'IssuedToUser.Firstname');\r\n FilterUtil.replaceFieldNameInfilters(filters, 'ClientName', 'Client.Name');\r\n\r\n FilterUtil.correctDateTimeFilters(filters, 'ValidFromDateTime', DATE_HELPER_DEFAULT_TIME_ZONE);\r\n FilterUtil.correctDateTimeFilters(filters, 'ValidToDateTime', DATE_HELPER_DEFAULT_TIME_ZONE);\r\n FilterUtil.correctDateTimeFilters(filters, 'LastUsedOn', DATE_HELPER_DEFAULT_TIME_ZONE);\r\n\r\n this.spinnerService.showSpinner = true;\r\n return this.parkingCardClient.searchParkingCards(filters, skip, take, sortBy, sortDirection, this.issuedToMe)\r\n .pipe(\r\n tap((result) => {\r\n this.spinnerService.showSpinner = false;\r\n result.items ??= [];\r\n }),\r\n catchError(err => {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showError(\r\n 'i18n.errors.server-error.title',\r\n 'i18n.errors.server-error.message');\r\n return throwError(() => err);\r\n }));\r\n }\r\n\r\n public addRecord(_data: any): Observable {\r\n throw new Error('Method not implemented.');\r\n }\r\n\r\n public updateRecord(_data: any): Observable {\r\n throw new Error('Method not implemented.');\r\n }\r\n\r\n public deleteRecord(_id: number): Observable {\r\n throw new Error('Method not implemented.');\r\n }\r\n\r\n public revokeParkingCard(parkingCardId: number): Observable {\r\n this.spinnerService.showSpinner = true;\r\n return this.parkingCardClient.revokeParkingCard(parkingCardId)\r\n .pipe(\r\n tap(() => {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showSuccess(\r\n 'i18n.domain.parking-card.messages.revoke-title',\r\n 'i18n.domain.parking-card.messages.revoke-success-message'\r\n );\r\n }),\r\n catchError(err => {\r\n this.spinnerService.showSpinner = false;\r\n this.toastService.showError(\r\n 'i18n.errors.server-error.title',\r\n 'i18n.errors.server-error.message');\r\n return throwError(() => err);\r\n }));\r\n }\r\n}\r\n","import { DataManager } from '@syncfusion/ej2-data';\r\nimport { DatePipe, NgIf } from '@angular/common';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { TranslateModule, TranslateService } from '@ngx-translate/core';\r\nimport { CommandClickEventArgs, GridModule, RowDataBoundEventArgs } from '@syncfusion/ej2-angular-grids';\r\nimport { GridBaseComponent } from 'src/app/base/shared/grid-base/grid-base.component';\r\nimport { TitleBarComponent } from 'src/app/base/shared/title-bar/title-bar.component';\r\nimport { ParkingCardService } from './parking-card.service';\r\nimport { ClientService } from 'src/app/base/services/client/client.service';\r\nimport { AvpCustomAdaptor } from 'src/app/base/shared/syncfusion/avp-custom-adaptor';\r\nimport { SpinnerService } from 'src/app/base/spinner/spinner.service';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { SfCommandButtonType } from 'src/app/base/models/syncfusion-data';\r\nimport { ModalService } from 'src/app/base/shared/modal/modal.service';\r\n\r\n@Component({\r\n selector: 'app-parking-card',\r\n templateUrl: './parking-card.component.html',\r\n styleUrls: ['./parking-card.component.scss'],\r\n standalone: true,\r\n imports: [\r\n TitleBarComponent,\r\n GridModule,\r\n NgIf,\r\n TranslateModule,\r\n DatePipe,\r\n FormsModule\r\n ]\r\n})\r\n\r\nexport class ParkingCardComponent extends GridBaseComponent implements OnInit {\r\n\r\n public get issuedToMe(): boolean {\r\n return this.parkingCardService.issuedToMe;\r\n }\r\n\r\n public set issuedToMe(value: boolean) {\r\n this.parkingCardService.issuedToMe = value;\r\n }\r\n\r\n constructor(\r\n clientService: ClientService,\r\n translate: TranslateService,\r\n private spinnerService: SpinnerService,\r\n private parkingCardService: ParkingCardService,\r\n private modalService: ModalService\r\n ) {\r\n super(clientService, translate, parkingCardService);\r\n this.gridCommands = [{\r\n type: SfCommandButtonType.None,\r\n buttonOption:\r\n {\r\n cssClass: 'icon-btn',\r\n iconCss: 'icon-tag--none e-icons e-danger',\r\n }\r\n }]\r\n }\r\n\r\n ngOnInit() {\r\n this.data = new DataManager({\r\n adaptor: new AvpCustomAdaptor(this.parkingCardService, this.spinnerService),\r\n });\r\n }\r\n\r\n public rowDataBound(args: RowDataBoundEventArgs): void {\r\n if (args.data) {\r\n // show the icon only if the card is active\r\n var button = args.row.getElementsByClassName('icon-tag--none');\r\n if (button && button.length > 0 && button[0].parentElement) {\r\n button[0].parentElement.title = this.translateService.instant('i18n.domain.parking-card.grid.revoke');\r\n if (!args.data['isActive']) {\r\n button[0].parentElement.hidden = true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n public changeView(): void {\r\n this.grid.refresh();\r\n }\r\n\r\n public commandClick(args: CommandClickEventArgs) {\r\n if (args.commandColumn?.type === SfCommandButtonType.None) {\r\n const id = ((args.rowData) as any).id;\r\n const dialog = this.modalService.showOkCancelDialog('i18n.domain.parking-card.messages.revoke-title', 'i18n.domain.parking-card.messages.revoke-question');\r\n dialog.onOkSubject.subscribe(() => {\r\n this.parkingCardService.revokeParkingCard(id).subscribe(() => {\r\n this.grid.refresh();\r\n });\r\n });\r\n }\r\n }\r\n\r\n protected override initializeEditForm(_data: any): void {\r\n throw new Error('Method not implemented.');\r\n }\r\n\r\n protected override getEditDialogTitleParams(_rowData: any) {\r\n throw new Error('Method not implemented.');\r\n }\r\n}\r\n","\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data?.validFromDateTime | date:'dd.MM.yyyy'}}\r\n \r\n \r\n \r\n \r\n {{data?.validToDateTime | date:'dd.MM.yyyy'}}\r\n \r\n \r\n \r\n {{formatIsActive(data, 'forMultipleUse')}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{data?.lastUsedOn | date:'dd.MM.yyyy HH:mm:ss'}}\r\n \r\n \r\n \r\n \r\n \r\n {{formatIsActive(data, 'isActive')}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    ","import { AutomaticParkingReportComponent } from './domain/reports/report/automatic-parking/automatic-parking-report/automatic-parking-report.component';\r\nimport { AdminGuard } from './base/guards/admin.guard';\r\nimport { ZoneDamageComponent } from './domain/zone-damage/zone-damage.component';\r\nimport { EditProfileComponent } from './base/edit-profile/edit-profile.component';\r\nimport { ParkingRangerSessionsComponent } from './domain/parking-ranger-sessions/parking-ranger-sessions.component';\r\nimport { ParkerRegistrationComponent } from './domain/parker-registration/parker-registration.component';\r\nimport { ParkerAdministrationComponent } from './domain/administration/parker-administration/parker-administration.component';\r\nimport { ForgotPasswordComponent } from './base/forgot-password/forgot-password.component';\r\nimport { ClientService } from './base/services/client/client.service';\r\nimport { ClientAdministrationComponent } from './domain/administration/client-administration/client-administration.component';\r\nimport { NgModule, inject } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterModule, RouterStateSnapshot, Routes } from '@angular/router';\r\n\r\nimport { UserManagementComponent } from './base/user-management/user-management.component';\r\nimport { LoginComponent } from './base/login/login.component';\r\nimport { ChangePasswordComponent } from './base/change-password/change-password.component';\r\n\r\nimport { HomeComponent } from './domain/home/home.component';\r\nimport { AuthGuard } from './base/guards/auth.guard';\r\nimport * as pages from './core/routing/page-names';\r\nimport { AdminOrClientAdminGuard } from './base/guards/admin-client-admin.guard';\r\nimport { SetPasswordComponent } from './base/set-password/set-password.component';\r\nimport { CompanyAdministrationComponent } from './domain/administration/company-administration/company-administration.component';\r\nimport { ReportsComponent } from './domain/reports/reports.component';\r\nimport { DashboardService } from './domain/home/dashboard/dashboard.service';\r\nimport { TagsReportComponent } from './domain/reports/report/tags/tags-report/tags-report.component';\r\nimport {\r\n ParkerRegistrationReportComponent,\r\n} from './domain/reports/report/parker-registration/parker-registration-report/parker-registration-report.component';\r\nimport {\r\n FalseRecordingReportComponent,\r\n} from './domain/reports/report/false-recording/false-recording-report/false-recording-report.component';\r\nimport { ParkerTurnoverReportComponent } from './domain/reports/report/parker-turnover/parker-turnover-report/parker-turnover-report.component';\r\nimport {\r\n ParkerExtractReportComponent,\r\n} from './domain/reports/report/parker-extract/parker-extract-report/parker-extract-report.component';\r\nimport { DeviceStatusReportComponent } from './domain/reports/report/device-status/device-status-report/device-status-report.component';\r\nimport { LinkParkerToUserComponent } from './domain/link-parker-to-user/link-parker-to-user.component';\r\nimport { ConfirmEmailComponent } from './base/confirm-email/confirm-email.component';\r\nimport { ClientUserGuard } from './base/guards/client-user.guard';\r\nimport { TagsAdministrationComponent } from './domain/administration/tags-administration/tags-administration.component';\r\nimport { ParkingComponent } from './domain/parking/parking/parking.component';\r\nimport { TranslationLoaderResolver } from './base/resolver/translation-loader.resolver';\r\nimport { DeviceInteractionComponent } from './domain/device-interaction/device-interaction.component';\r\nimport { ParkingAdministrationComponent } from './domain/parking/parking-administration/parking-administration.component';\r\nimport { UserGuard } from './base/guards/user.guard';\r\nimport { ClientActiveGuard } from './base/guards/client-active.guard';\r\nimport { ParkingService } from './domain/parking/parking/parking.service';\r\nimport { PaymentReportComponent } from './domain/reports/report/payment/payment-report/payment-report.component';\r\nimport { EditProfileService } from './base/edit-profile/edit-profile.service';\r\nimport { AdministrationComponent } from './domain/administration/administration/administration.component';\r\nimport { ZoneDeviceDetailsService } from './domain/administration/administration/administration-details/zone-device-details/zone-device-details.service';\r\nimport { UserExtractReportComponent } from './domain/reports/report/user-extract/user-extract-report/user-extract-report.component';\r\nimport { CanDeactivateGuard } from './base/guards/can-deactivate-guard.service';\r\nimport { AdminOrClientAdminOrCompanyAdminGuard } from './base/guards/admin-client-company-admin.guard';\r\nimport { OnboardingWizardComponent } from './domain/administration/onboarding-wizard/onboarding-wizard.component';\r\nimport { TagMasterComponent } from './domain/administration/tag-master/tag-master.component';\r\nimport { ParkingCardComponent } from './domain/parking/parking-card/parking-card.component';\r\n\r\nconst routes: Routes = [\r\n {\r\n path: '',\r\n pathMatch: 'full',\r\n redirectTo: pages.homePageName,\r\n },\r\n {\r\n path: pages.homePageName,\r\n canActivate: [AuthGuard, ClientActiveGuard],\r\n resolve: {\r\n data: DashboardService,\r\n },\r\n children: [\r\n {\r\n path: '',\r\n pathMatch: 'full',\r\n component: HomeComponent,\r\n },\r\n {\r\n path: 'edit',\r\n component: HomeComponent,\r\n },\r\n ],\r\n },\r\n {\r\n path: pages.adminPageName,\r\n canActivate: [AdminOrClientAdminOrCompanyAdminGuard],\r\n children: [\r\n {\r\n path: '',\r\n pathMatch: 'full',\r\n redirectTo: pages.clientAdministrationPageName\r\n },\r\n {\r\n path: pages.clientAdministrationPageName,\r\n component: ClientAdministrationComponent,\r\n },\r\n {\r\n path: pages.userManagementPageName,\r\n component: UserManagementComponent,\r\n resolve: {\r\n data: ClientService\r\n }\r\n },\r\n {\r\n path: pages.userManagementPageName + '/client/:id',\r\n component: UserManagementComponent,\r\n resolve: {\r\n data: ClientService\r\n }\r\n },\r\n {\r\n path: pages.configurationAdministrationPageName,\r\n component: AdministrationComponent,\r\n resolve: {\r\n data: ClientService,\r\n data2: () => inject(ZoneDeviceDetailsService).initializeServiceData(),\r\n },\r\n },\r\n {\r\n path: pages.companyAdministrationPageName,\r\n component: CompanyAdministrationComponent,\r\n canDeactivate: [CanDeactivateGuard],\r\n resolve: {\r\n data: ClientService\r\n }\r\n },\r\n {\r\n path: pages.parkerAdministrationPageName,\r\n component: ParkerAdministrationComponent,\r\n resolve: {\r\n data: ClientService\r\n }\r\n },\r\n {\r\n path: pages.tagsAdministrationPageName,\r\n component: TagsAdministrationComponent,\r\n resolve: {\r\n data: ClientService\r\n }\r\n },\r\n {\r\n path: pages.onBoardingWizardPageName,\r\n component: OnboardingWizardComponent,\r\n resolve: {\r\n data: ClientService\r\n }\r\n },\r\n {\r\n path: pages.tagMasterPageName,\r\n component: TagMasterComponent,\r\n resolve: {\r\n data: ClientService\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n path: pages.parkPageName,\r\n children: [\r\n {\r\n path: '',\r\n pathMatch: 'full',\r\n redirectTo: pages.homePageName\r\n },\r\n {\r\n path: pages.parkingPageName,\r\n component: ParkingComponent,\r\n canActivate: [UserGuard],\r\n resolve: {\r\n data: TranslationLoaderResolver,\r\n data2: ParkingService\r\n }\r\n },\r\n {\r\n path: pages.automaticParkingPageName,\r\n component: ParkingAdministrationComponent,\r\n canActivate: [UserGuard],\r\n resolve: {\r\n data: TranslationLoaderResolver\r\n }\r\n },\r\n {\r\n path: pages.parkerRegistrationsPageName,\r\n component: ParkerRegistrationComponent,\r\n canActivate: [AdminOrClientAdminOrCompanyAdminGuard],\r\n resolve: {\r\n data: ClientService\r\n }\r\n },\r\n {\r\n path: pages.parkingRangerSessionsPageName,\r\n component: ParkingRangerSessionsComponent,\r\n canActivate: [AdminOrClientAdminGuard],\r\n canDeactivate: [CanDeactivateGuard],\r\n resolve: {\r\n data: ClientService\r\n }\r\n },\r\n {\r\n path: pages.zoneDamagePageName,\r\n component: ZoneDamageComponent,\r\n canActivate: [AdminOrClientAdminGuard],\r\n resolve: {\r\n data: ClientService\r\n }\r\n },\r\n {\r\n path: pages.deviceInteractionPageName,\r\n component: DeviceInteractionComponent,\r\n canActivate: [AdminOrClientAdminGuard],\r\n resolve: {\r\n data: ClientService\r\n }\r\n },\r\n {\r\n path: pages.parkingCardPageName,\r\n component: ParkingCardComponent,\r\n canActivate: [AuthGuard]\r\n },\r\n ]\r\n },\r\n {\r\n path: pages.reportsPageName,\r\n canActivate: [AuthGuard],\r\n resolve: {\r\n data: ClientService\r\n },\r\n children: [\r\n {\r\n path: '',\r\n pathMatch: 'full',\r\n redirectTo: pages.savedReportsPageName\r\n },\r\n {\r\n path: pages.savedReportsPageName,\r\n component: ReportsComponent,\r\n canDeactivate: [CanDeactivateGuard]\r\n },\r\n {\r\n path: pages.tagsPerParkerPageName,\r\n canActivate: [ClientUserGuard],\r\n component: TagsReportComponent,\r\n },\r\n {\r\n path: pages.parkerRegistrationsPageName,\r\n canActivate: [ClientUserGuard],\r\n component: ParkerRegistrationReportComponent,\r\n },\r\n {\r\n path: pages.falseRecordingsPageName,\r\n canActivate: [ClientUserGuard],\r\n component: FalseRecordingReportComponent,\r\n },\r\n {\r\n path: pages.parkerTurnoverPageName,\r\n canActivate: [ClientUserGuard],\r\n component: ParkerTurnoverReportComponent,\r\n },\r\n {\r\n path: pages.parkerExtractPageName,\r\n canActivate: [AuthGuard],\r\n component: ParkerExtractReportComponent,\r\n },\r\n {\r\n path: pages.deviceStatusPageName,\r\n canActivate: [ClientUserGuard],\r\n component: DeviceStatusReportComponent,\r\n },\r\n {\r\n path: pages.automaticParkingPageName,\r\n canActivate: [AdminGuard],\r\n component: AutomaticParkingReportComponent\r\n },\r\n {\r\n path: pages.paymentPageName,\r\n canActivate: [AuthGuard],\r\n component: PaymentReportComponent\r\n },\r\n {\r\n path: pages.userExtractPageName,\r\n canActivate: [UserGuard],\r\n component: UserExtractReportComponent\r\n }\r\n ],\r\n },\r\n {\r\n path: pages.loginPageName,\r\n component: LoginComponent,\r\n },\r\n {\r\n path: pages.editProfilePageName,\r\n component: EditProfileComponent,\r\n canActivate: [AuthGuard],\r\n resolve: {\r\n data: TranslationLoaderResolver,\r\n data2: EditProfileService\r\n }\r\n },\r\n {\r\n path: pages.setPasswordPageName,\r\n component: SetPasswordComponent,\r\n },\r\n {\r\n path: pages.changePasswordPageName,\r\n component: ChangePasswordComponent,\r\n canActivate: [AuthGuard]\r\n },\r\n {\r\n path: pages.forgotPasswordPageName,\r\n component: ForgotPasswordComponent,\r\n },\r\n {\r\n path: pages.confirmEmailPageName,\r\n component: ConfirmEmailComponent,\r\n },\r\n {\r\n path: pages.linkParkerToUserPageName,\r\n component: LinkParkerToUserComponent,\r\n canActivate: [AuthGuard],\r\n },\r\n {\r\n path: '**',\r\n component: LoginComponent,\r\n },\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forRoot(routes, {})],\r\n exports: [RouterModule],\r\n})\r\nexport class AppRoutingModule {\r\n}\r\n","import { enableProdMode, importProvidersFrom } from '@angular/core';\r\nimport { registerLicense } from '@syncfusion/ej2-base';\r\n\r\n\r\nimport { environment } from './environments/environment';\r\nimport { AppComponent } from './app/app.component';\r\nimport { BaseModule } from './app/base/base.module';\r\nimport { DomainModule } from './app/domain/domain.module';\r\nimport { AppRoutingModule } from './app/app-routing.module';\r\nimport { BrowserModule, bootstrapApplication } from '@angular/platform-browser';\r\n\r\n// Registering Syncfusion license key\r\nregisterLicense(environment.syncfusionKey);\r\n\r\nif (environment.production) {\r\n enableProdMode();\r\n}\r\n\r\nbootstrapApplication(AppComponent, {\r\n providers: [importProvidersFrom(BrowserModule, AppRoutingModule, DomainModule, BaseModule)]\r\n})\r\n .catch(err => console.error(err));\r\n"],"mappings":"i5CAAA,IAAAA,IAAAC,GAAA,CAAAC,GAAAC,KAAA,EAAC,SAAUC,EAAGC,EAAG,CACG,OAAO,QAArB,YAA+B,OAAO,IAAK,OAAO,CAAC,EAAGA,CAAC,EAA0B,OAAOH,GAAtB,IAA+BG,EAAE,GACrGA,EAAE,EAAGD,EAAE,UACI,CAAC,EAGhB,GAAGF,GAAM,UAAY,CACnB,aAEA,SAASG,EAAE,EAAGA,EAAG,CACf,O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AAM,QACN,KAAM,aACR,EAAG,CACD,KAAM,QACN,KAAM,mBACR,EAAG,CACD,KAAM,QACN,KAAM,QACR,EAAG,CACD,KAAM,SACN,KAAM,aACR,EAAG,CACD,KAAM,QACN,KAAM,qBACR,EAAG,CACD,KAAM,QACN,KAAM,WACR,CAAC,CAAC,EAAGA,GAAG,CAAC,CACP,KAAM,QACN,KAAM,kBACR,EAAG,CACD,KAAM,QACN,KAAM,kBACR,EAAG,CACD,KAAM,QACN,KAAM,kBACR,EAAG,CACD,KAAM,UACN,KAAM,aACR,EAAG,CACD,KAAM,UACN,KAAM,aACR,EAAG,CACD,KAAM,QACN,KAAM,+BACR,EAAG,CACD,KAAM,QACN,KAAM,gCACR,EAAG,CACD,KAAM,QACN,KAAM,8BACR,EAAG,CACD,KAAM,QACN,KAAM,+BACR,EAAG,CACD,KAAM,QACN,KAAM,uBACR,EAAG,CACD,KAAM,QACN,KAAM,+BACR,EAAG,CACD,KAAM,SACN,KAAM,KACR,EAAG,CACD,KAAM,SACN,KAAM,mBACR,EAAG,CACD,KAAM,SACN,KAAM,iBACR,EAAG,CACD,KAAM,SACN,KAAM,2BACR,EAAG,CACD,KAAM,SACN,KAAM,yBACR,EAAG,CACD,KAAM,SACN,KAAM,mBACR,EAAG,CACD,KAAM,SACN,KAAM,iBACR,EAAG,CACD,KAAM,SACN,KAAM,2BACR,EAAG,CACD,KAAM,SACN,KAAM,yBACR,EAAG,CACD,KAAM,SACN,KAAM,cACR,EAAG,CACD,KAAM,SACN,KAAM,4BACR,EAAG,CACD,KAAM,SACN,KAAM,0BACR,EAAG,CACD,KAAM,SACN,KAAM,iBACR,EAAG,CACD,KAAM,SACN,KAAM,yBACR,EAAG,CACD,KAAM,SACN,KAAM,4BACR,EAAG,CACD,KAAM,SACN,KAAM,aACR,EAAG,CACD,KAAM,UACN,WAAY,EACZ,KAAM,YACR,EAAG,CACD,KAAM,UACN,KAAM,yBACR,CAAC,CAAC,EAAGA,GAAG,CAAC,CACP,KAA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K,MACL,EAAK,MACL,EAAK,MACL,EAAK,MACL,EAAK,MACL,EAAK,MACL,EAAK,MACL,EAAK,MACL,GAAM,MACN,GAAM,MACN,GAAM,KACR,EACA,OAAU,CACR,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,GAAM,IACN,GAAM,IACN,GAAM,GACR,EACA,KAAQ,CACN,EAAK,UACL,EAAK,WACL,EAAK,QACL,EAAK,QACL,EAAK,MACL,EAAK,OACL,EAAK,OACL,EAAK,SACL,EAAK,YACL,GAAM,UACN,GAAM,WACN,GAAM,UACR,CACF,CACF,EACA,KAAQ,CACN,cAAe,CACb,YAAe,CACb,IAAO,MACP,IAAO,MACP,IAAO,MACP,IAAO,MACP,IAAO,MACP,IAAO,MACP,IAAO,KACT,EACA,OAAU,CACR,IAAO,IACP,IAAO,IACP,IAAO,IACP,IAAO,IACP,IAAO,IACP,IAAO,IACP,IAAO,GACT,EACA,MAAS,CACP,IAAO,KACP,IAAO,KACP,IAAO,KACP,IAAO,KACP,IAAO,KACP,IAAO,KACP,IAAO,IACT,EACA,KAAQ,CACN,IAAO,SACP,IAAO,SACP,IAAO,UACP,IAAO,YACP,IAAO,WACP,IAAO,SACP,IAAO,UACT,CACF,CACF,EACA,WAAc,CACZ,OAAU,CACR,KAAQ,CACN,GAAM,KACN,GAAM,IACR,CACF,CACF,EACA,KAAQ,CACN,SAAY,CACV,EAAK,gBACL,gBAAiB,oBACjB,EAAK,cACL,gBAAiB,YACnB,EACA,QAAW,CACT,EAAK,KACL,gBAAiB,MACjB,EAAK,KACL,gBAAiB,IACnB,EACA,UAAa,CACX,EAAK,IACL,gBAAiB,MACjB,EAAK,IACL,gBAAiB,IACnB,CACF,EACA,YAAe,CACb,KAAQ,kBACR,KAAQ,YACR,OAAU,WACV,MAAS,QACX,EACA,YAAe,CACb,KAAQ,iBACR,KAAQ,cACR,OAAU,YACV,MAAS,QACX,EACA,gBAAmB,CACjB,KAAQ,eACR,KAAQ,eACR,OAAU,WACV,MAAS,WACT,iBAAoB,CAClB,EAAK,IACL,EAAK,MACL,GAAM,MACN,IAAO,WACP,IAAO,UACP,KAAQ,cACR,KAAQ,aACR,GAAM,MACN,MAAS,UACT,OAAU,aACV,QAAW,gBACX,EAAK,MACL,EAAK,KACL,GAAM,SACN,GAAM,QACN,IAAO,YACP,IAAO,WACP,KAAQ,cACR,KAAQ,aACR,IAAO,WACP,IAAO,UACP,EAAK,IACL,GAAM,MACN,IAAO,SACP,IAAO,MACP,KAAQ,QACR,MAAS,WACT,MAAS,SACT,GAAM,QACN,EAAK,IACL,GAAM,MACN,IAAO,QACP,KAAQ,WACR,KAAQ,QACR,MAAS,WACT,OAAU,cACV,MAAS,QACX,CACF,CACF,EACA,QAAW,CACT,OAAU,CACR,cAAe,CACb,YAAe,CACb,EAAK,OACL,EAAK,OACL,EAAK,SACL,EAAK,UACL,EAAK,SACL,EAAK,UACL,EAAK,OACL,EAAK,OACL,EAAK,OACL,GAAM,QACN,GAAM,gBACN,GAAM,eACR,EACA,OAAU,CACR,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,GAAM,KACN,GAAM,KACN,GAAM,IACR,EACA,KAAQ,CACN,EAAK,WACL,EAAK,QACL,EAAK,eACL,EAAK,gBACL,EAAK,WACL,EAAK,YACL,EAAK,QACL,EAAK,eACL,EAAK,UACL,GAAM,UACN,GAAM,yBACN,GAAM,mBACR,CACF,CACF,EACA,KAAQ,CACN,cAAe,CACb,YAAe,CACb,IAAO,MACP,IAAO,MACP,IAAO,MACP,IAAO,MACP,IAAO,MACP,IAAO,MACP,IAAO,KACT,EACA,OAAU,CACR,IAAO,IACP,IAAO,IACP,IAAO,IACP,IAAO,IACP,IAAO,IACP,IAAO,IACP,IAAO,GACT,EACA,MAAS,CACP,IAAO,KACP,IAAO,KACP,IAAO,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V,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,KACV,OAAU,KACV,OAAU,KACV,OAAU,KACV,SAAU,KACV,SAAU,KACV,SAAU,KACV,SAAU,KACV,SAAU,KACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,KACV,OAAU,KACV,OAAU,KACV,OAAU,KACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,KACV,OAAU,KACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,KACV,OAAU,KACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,KACV,SAAU,KACV,OAAU,KACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,KACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,KACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,SAAU,KACV,OAAU,KACV,OAAU,KACV,OAAU,KACV,SAAU,KACV,SAAU,KACV,SAAU,KACV,SAAU,KACV,SAAU,KACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,KACV,OAAU,KACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,KACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,KACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,KACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,KACV,OAAU,KACV,SAAU,KACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,KACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,SAAU,KACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SAAU,IACV,SAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,OAAU,IACV,SAAU,IACV,SA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ACR,OAAQA,EACV,EACaU,GAAyB,CACpC,KAAMV,GACN,OAAQA,GACR,OAAQA,GACR,aAAcC,EAChB,EACaU,GAAwB,CACnC,KAAMX,GACN,OAAQA,GACR,OAAQA,GACR,aAAcE,EAChB,EACaU,GAAiB,CAC5B,KAAMZ,GACN,OAAQA,GACR,UAAW,KACb,EACaa,GAAuB,CAClC,KAAMb,GACN,OAAQA,GACR,OAAQA,GACR,UAAW,KACb,EACac,GAA4B,CACvC,KAAMd,GACN,OAAQA,GACR,OAAQA,GACR,UAAW,MACX,aAAcC,EAChB,EACac,GAA2B,CACtC,KAAMf,GACN,OAAQA,GACR,OAAQA,GACR,UAAW,MACX,aAAcE,EAChB,EACac,GAAiB,CAC5B,KAAMhB,GACN,MAAOA,GACP,IAAKA,GACL,KAAMA,GACN,OAAQA,EACV,EACaiB,GAA8B,CACzC,KAAMjB,GACN,MAAOA,GACP,IAAKA,GACL,KAAMA,GACN,OAAQA,GACR,OAAQA,EACV,EACakB,GAAe,CAC1B,KAAMlB,GACN,MAAOC,GACP,IAAKD,GACL,KAAMA,GACN,OAAQA,EACV,EACamB,GAA4B,CACvC,KAAMnB,GACN,MAAOC,GACP,IAAKD,GACL,KAAMA,GACN,OAAQA,GACR,OAAQA,EACV,EACaoB,GAA4B,CACvC,KAAMpB,GACN,MAAOC,GACP,IAAKD,GACL,QAASC,GACT,KAAMD,GACN,OAAQA,EACV,EACaqB,GAAgB,CAC3B,KAAMrB,GACN,MAAOE,GACP,IAAKF,GACL,KAAMA,GACN,OAAQA,GACR,aAAcC,EAChB,EACaqB,GAA6B,CACxC,KAAMtB,GACN,MAAOE,GACP,IAAKF,GACL,KAAMA,GACN,OAAQA,GACR,OAAQA,GACR,aAAcC,EAChB,EACasB,GAAgB,CAC3B,KAAMvB,GACN,MAAOE,GACP,IAAKF,GACL,QAASE,GACT,KAAMF,GACN,OAAQA,GACR,aAAcE,EAChB,EACasB,GAA6B,CACxC,KAAMxB,GACN,MAAOE,GACP,IAAKF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AU,cACV,MAAS,aACX,EACA,QAAW,CACT,OAAU,cACV,MAAS,aACX,EACA,KAAQ,CACN,QAAW,+DACX,MAAS,SACX,EACA,KAAQ,CACN,QAAW,+DACX,MAAS,SACX,EACA,SAAY,CACV,OAAU,2CACV,MAAS,aACX,EACA,QAAW,CACT,QAAW,+DACX,MAAS,SACX,EACA,KAAQ,CACN,OAAU,qCACV,MAAS,aACX,EACA,QAAW,CACT,OAAU,+CACV,MAAS,aACX,EACA,KAAQ,CACN,OAAU,0CACV,MAAS,aACX,EACA,QAAW,CACT,OAAU,oDACV,MAAS,aACX,EACA,KAAQ,CACN,OAAU,SACV,MAAS,aACX,EACA,KAAQ,CACN,QAAW,6FACX,MAAS,SACX,EACA,KAAQ,CACN,QAAW,6FACX,MAAS,SACX,EACA,KAAQ,CACN,QAAW,+DACX,MAAS,SACX,EACA,KAAQ,CACN,OAAU,qCACV,MAAS,aACX,EACA,QAAW,CACT,OAAU,+CACV,MAAS,aACX,EACA,SAAY,CACV,OAAU,gDACV,MAAS,aACX,EACA,KAAQ,CACN,QAAW,+DACX,MAAS,SACX,EACA,KAAQ,CACN,QAAW,+DACX,MAAS,SACX,EACA,KAAQ,CACN,QAAW,+DACX,MAAS,SACX,EACA,KAAQ,CACN,QAAW,+DACX,MAAS,SACX,EACA,SAAY,CACV,QAAW,+DACX,MAAS,SACX,EACA,KAAQ,CACN,QAAW,+DACX,MAAS,SACX,EACA,KAAQ,CACN,QAAW,aACX,MAAS,SACX,EACA,KAAQ,CACN,QAAW,+DACX,MAAS,SACX,EACA,KAAQ,CACN,QAAW,+DACX,MAAS,SACX,EACA,SAAY,CACV,QAAW,6FACX,MAAS,SACX,EACA,QAAW,CACT,QAAW,6FACX,MAAS,SACX,EACA,SAAY,CACV,QAAW,6FACX,MAAS,SACX,EACA,SAAY,CACV,QAAW,6FACX,MAAS,SACX,EACA,SAAY,CACV,QAAW,6FACX,MAAS,SACX,EACA,KAAQ,CACN,QAAW,+DACX,MAAS,SACX,E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CACN,QAAW,6FACX,MAAS,SACX,CACF,CACF,EApVFD,IAAA,CACE,aAAAC,GAoVF,ECrVA,IAAAC,GAAA,GAAAC,GAAAD,GAAA,aAAAE,IAAA,iBAAAC,MACE,IAAAA,IAAgB,CACd,QAAW,CACT,gBAAmB,SACnB,aAAgB,IAClB,EACA,SAAY,CACV,QAAW,CACT,MAAO,IACP,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,IACN,GAAM,GACR,EACA,SAAY,CACV,MAAO,MACP,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,iBAAkB,MAClB,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,MACN,GAAM,KACR,EACA,aAAgB,CACd,MAAO,MACP,GAAM,MACN,GAAM,MACN,GAAM,MAC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kC,GACNpB,MAAO4D,KAGX,CACElF,KAAYmF,IACZxE,UAAWyE,KAEb,CACEpF,KAAYqF,GACZ1E,UAAW2E,IACXlF,YAAa,CAACC,EAAS,GAEzB,CACEL,KAAYuF,GACZ5E,UAAW6E,KAEb,CACExF,KAAYyF,GACZ9E,UAAW+E,KAEb,CACE1F,KAAY2F,IACZhF,UAAWiF,IACXxF,YAAa,CAACC,EAAS,GAEzB,CACEL,KAAM,KACNW,UAAWoE,GACZ,EAOUc,KAAgB,IAAA,CAAvB,MAAOA,CAAgB,iDAAhBA,EAAgB,CAAA,gCAAhBA,CAAgB,CAAA,CAAA,oCAHjBC,GAAaC,QAAQhG,IAAQ,CAAA,CAAE,EAC/B+F,EAAY,CAAA,CAAA,CAAA,SAEXD,CAAgB,GAAA,EC9T7BG,GAAgBC,GAAYC,aAAa,EAErCD,GAAYE,YACdC,OAGFC,IAAqBC,IAAc,CAC/BC,UAAW,CAACC,GAAoBC,IAAeC,IAAkBC,IAAcC,GAAU,CAAC,EAC7F,EACEC,MAAMC,GAAOC,QAAQC,MAAMF,CAAG,CAAC","names":["require_FileSaver_min","__commonJSMin","exports","module","a","b","c","d","g","e","f","h","i","j","k","l","m","require_mapbox_gl","__commonJSMin","exports","module","global","factory","shared","worker","mapboxgl","define","_","chunk","workerBundleString","sharedChunk","t","e","r","n","i","s","l","o","u","c","a","h","p","d","f","y","m","g","x","v","b","w","A","S","k","I","M","T","z","B","E","C","P","D","V","L","F","R","U","$","j","O","q","N","G","Z","K","X","J","H","Y","W","Q","tt","et","rt","nt","it","st","at","ot","lt","ut","bt","ct","ht","pt","dt","ft","yt","mt","gt","xt","vt","wt","_t","At","St","kt","It","Mt","Tt","zt","Bt","Et","Ct","Pt","Dt","jt","Ut","Vt","Lt","Ft","Rt","$t","Ot","qt","Nt","Gt","Zt","Kt","Xt","Jt","Ht","Yt","Wt","Qt","te","ee","re","ne","ie","se","ae","oe","le","ue","ce","he","pe","de","fe","ye","me","ge","xe","ve","be","we","_e","Ae","Se","ke","Ie","Me","Te","ze","Be","Ee","Ce","Pe","De","Ve","Le","Fe","Re","Ue","$e","je","Oe","qe","Ne","Ge","Ze","Ke","Xe","Je","He","Ye","We","Qe","Ir","tr","er","rr","nr","ir","sr","ar","or","lr","ur","cr","hr","pr","dr","fr","yr","mr","gr","xr","vr","br","wr","_r","Ar","Sr","kr","Mr","Tr","zr","Br","Er","Cr","Pr","Dr","Vr","Lr","Fr","Rr","Ur","$r","jr","Or","qr","Nr","Gr","Zr","Kr","Xr","Jr","Hr","Yr","Wr","Qr","tn","en","rn","nn","sn","an","on","ln","un","cn","hn","pn","dn","fn","yn","mn","gn","xn","vn","bn","wn","_n","An","Sn","kn","In","Mn","Tn","zn","Bn","En","Cn","Pn","Dn","Vn","Ln","Fn","Rn","Un","$n","jn","On","Zn","Gn","Nn","Kn","qn","Xn","Jn","Hn","Yn","Wn","Qn","ei","ti","ri","ni","Fi","ii","si","ai","oi","li","ui","ci","hi","xi","fi","di","pi","gi","yi","mi","vi","_i","bi","wi","Ai","Si","ki","Ii","Mi","Ti","zi","Bi","Ei","Ci","Pi","Di","Vi","Li","Ri","Ui","Oi","$i","ji","qi","Ni","Zi","Gi","Ki","Xi","Ji","Hi","Yi","Wi","Qi","ts","es","is","rs","ns","ss","as","os","ls","us","cs","hs","ps","ds","fs","ys","ms","gs","xs","vs","bs","ws","_s","As","ks","Ss","Is","zs","Ms","Ts","Bs","Es","Cs","Ps","Ds","Vs","Ls","Fs","Rs","Us","$s","js","Os","qs","Ns","Gs","Zs","Ks","Xs","Js","Hs","Ys","Ws","Qs","ta","ea","ra","na","ia","sa","aa","oa","la","ua","ca","ha","pa","da","fa","ya","ma","ga","xa","va","ba","wa","_a","Aa","Sa","ka","Ia","Ma","Ta","za","Ba","Ea","Ca","Pa","Da","Va","La","Fa","Ra","Ua","$a","ja","Oa","qa","Na","Ga","Za","Ka","Xa","Ya","to","Ja","Ha","Wa","Qa","eo","ro","no","io","so","ao","oo","Ol","lo","uo","co","ho","po","fo","yo","mo","go","xo","vo","bo","wo","_o","Ao","So","ko","Io","Mo","To","zo","Bo","Eo","Co","Po","Do","Vo","Lo","Fo","Ro","Uo","$o","jo","Oo","qo","No","Go","Zo","Ko","Xo","Jo","Ho","Yo","Wo","Qo","tl","el","rl","nl","il","sl","al","ol","ll","ul","cl","hl","pl","dl","fl","Ul","yl","Nl","Gl","Wl","ml","gl","xl","Sl","Al","vl","bl","Pl","wl","_l","Hl","Kl","Xl","kl","Il","Ml","Tl","zl","Bl","El","Cl","Dl","Vl","Ll","Fl","Rl","$l","jl","ql","Zl","Jl","Yl","Ql","tu","eu","ru","nu","iu","su","au","ou","lu","uu","cu","hu","bu","yu","pu","gu","du","vu","fu","mu","xu","wu","_u","Au","Su","ku","Iu","Mu","Tu","zu","Bu","Pu","Eu","Cu","Du","Vu","Lu","Fu","Ru","Uu","$u","ju","Ou","qu","Nu","Gu","Zu","Ku","ic","tc","ec","Ju","gc","fc","lc","yc","Xu","oc","nc","Yu","Hu","Wu","Qu","sc","uc","pc","ac","dc","rc","hc","cc","mc","xc","vc","bc","_c","wc","Ac","Sc","kc","Ic","Mc","Tc","zc","Bc","Ec","Cc","Pc","Dc","Vc","Lc","Fc","Rc","Uc","$c","jc","Oc","qc","Nc","Gc","Zc","Kc","Xc","Jc","Hc","Yc","Wc","Qc","th","lh","sh","rh","ih","nh","eh","ah","oh","uh","ch","hh","ph","yh","dh","fh","mh","gh","xh","vh","bh","wh","_h","Ah","Sh","kh","Ih","Mh","Th","zh","Bh","Eh","Ch","Ph","Dh","Vh","Lh","Fh","Rh","Uh","$h","jh","Oh","qh","Nh","Gh","Zh","Kh","Xh","Yh","Jh","Hh","Wh","Qh","tp","ep","rp","np","ip","sp","ap","op","lp","up","cp","hp","pp","dp","fp","yp","mp","gp","xp","vp","bp","wp","_p","Ap","Sp","kp","Ip","Mp","Tp","zp","Ep","Bp","Pp","Cp","Lp","Vp","Fp","Up","Rp","Dp","$p","jp","Op","qp","Np","Gp","Zp","Kp","Xp","Jp","Hp","Yp","Wp","Qp","td","ed","rd","nd","id","sd","od","ld","ad","ud","cd","hd","pd","dd","fd","yd","md","gd","xd","vd","bd","kd","wd","Md","Id","Ad","_d","Sd","of","Td","zd","Bd","Ed","Cd","Pd","Dd","Vd","Ld","Fd","Rd","Ud","$d","jd","Od","qd","Nd","Gd","Zd","Kd","Xd","Jd","Hd","Yd","Wd","Qd","tf","ef","rf","nf","sf","af","lf","uf","cf","hf","pf","df","ff","yf","mf","gf","xf","vf","bf","wf","_f","Af","Sf","kf","If","Mf","Tf","zf","Bf","Ef","Cf","Pf","Df","Vf","Lf","Ff","Rf","Uf","$f","Of","jf","qf","Nf","Gf","Zf","Kf","Xf","Jf","Hf","Yf","Wf","Qf","ty","ey","ry","ny","iy","sy","ay","ly","oy","uy","cy","hy","py","dy","fy","yy","my","gy","xy","_y","vy","by","wy","mapboxgl$1","require_mapbox_gl_draw","__commonJSMin","exports","module","t","e","n","o","r","i","a","s","c","l","u","d","p","f","h","g","y","v","m","_","b","E","T","C","O","S","I","x","M","L","N","A","P","F","w","R","k","D","U","j","V","B","G","J","z","Y","$","q","H","X","Z","W","K","Q","tt","et","nt","ot","rt","it","at","st","ut","ct","lt","dt","pt","ft","ht","gt","yt","vt","mt","_t","bt","Et","Tt","Ct","Ot","St","It","xt","Mt","Lt","Nt","At","Pt","Ft","wt","Rt","Ut","kt","jt","Vt","Dt","Bt","Gt","Jt","zt","Yt","$t","qt","Ht","Xt","Zt","Wt","Kt","Qt","te","ee","ne","oe","re","ie","ae","se","ue","ce","le","de","pe","fe","he","ge","ye","ve","me","_e","require_mapbox_gl_draw_static_mode","__commonJSMin","exports","module","StaticMode","state","geojson","display","require_immutable","__commonJSMin","exports","module","extend","hasOwnProperty","target","i","source","key","require_fuzzy","__commonJSMin","exports","module","root","fuzzy","pattern","array","str","opts","patternIdx","result","len","totalScore","currScore","pre","post","compareString","ch","idx","arr","prev","element","rendered","a","b","compare","require_list","__commonJSMin","exports","module","List","component","item","i","active","li","a","index","msg","require_suggestions","__commonJSMin","exports","module","extend","fuzzy","List","Suggestions","el","data","options","e","keyCode","self","query","i","revisedData","value","candidate","callback","d","results","item","renderedString","sourceFormatting","boldString","indexString","indexOfQuery","endIndexOfQuery","msg","require_suggestions","__commonJSMin","exports","module","Suggestions","require_lodash","__commonJSMin","exports","module","FUNC_ERROR_TEXT","NAN","symbolTag","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","freeGlobal","freeSelf","root","objectProto","objectToString","nativeMax","nativeMin","now","debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","toNumber","isObject","invokeFunc","time","args","thisArg","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","value","type","isObjectLike","isSymbol","other","isBinary","require_events","__commonJSMin","exports","module","R","ReflectApply","target","receiver","args","ReflectOwnKeys","ProcessEmitWarning","warning","NumberIsNaN","value","EventEmitter","once","defaultMaxListeners","checkListener","listener","arg","n","_getMaxListeners","that","type","doError","events","er","err","handler","len","listeners","arrayClone","_addListener","prepend","m","existing","w","onceWrapper","_onceWrap","state","wrapped","list","position","i","originalListener","spliceOne","keys","key","_listeners","unwrap","evlistener","unwrapListeners","emitter","listenerCount","arr","copy","index","ret","name","resolve","reject","errorListener","resolver","eventTargetAgnosticAddListener","addErrorHandlerIfEventEmitter","flags","wrapListener","require_exceptions","__commonJSMin","exports","module","require_parse_link_header","__commonJSMin","exports","module","parseParam","param","parts","parseLink","link","linkUrl","linkParams","rel","parsedLinkParams","result","parsed","parseLinkHeader","linkHeader","splitRel","require_mapi_response","__commonJSMin","exports","module","parseLinkHeader","MapiResponse","request","responseData","require_constants","__commonJSMin","exports","module","require_mapi_error","__commonJSMin","exports","module","constants","MapiError","options","errorType","body","message","require_parse_headers","__commonJSMin","exports","module","parseSingleHeader","raw","boundary","name","value","parseHeaders","headers","rawHeader","parsed","require_browser_layer","__commonJSMin","exports","module","MapiResponse","MapiError","constants","parseHeaders","requestsUnderway","browserAbort","request","xhr","createResponse","normalizeBrowserProgressEvent","event","total","transferred","percent","sendRequestXhr","resolve","reject","file","error","mapiError","body","createRequestXhr","accessToken","url","key","browserSend","require_base64","__commonJSMin","exports","module","root","freeExports","freeModule","freeGlobal","InvalidCharacterError","message","error","TABLE","REGEX_SPACE_CHARACTERS","decode","input","length","bitCounter","bitStorage","buffer","output","position","encode","padding","a","b","c","d","base64","key","require_parse_mapbox_token","__commonJSMin","exports","module","base64","tokenCache","parseToken","token","parts","usage","rawPayload","parsedPayload","parsePaylod","result","has","obj","key","require_eventemitter3","__commonJSMin","exports","module","has","prefix","Events","EE","fn","context","once","addListener","emitter","event","listener","evt","clearEvent","EventEmitter","names","events","name","handlers","i","l","ee","listeners","a1","a2","a3","a4","a5","len","args","length","j","require_url_utils","__commonJSMin","exports","module","encodeArray","arrayValue","encodeValue","value","appendQueryParam","url","key","punctuation","query","appendQueryObject","queryObject","result","v","prependOrigin","origin","delimiter","interpolateRouteParams","route","params","_","paramId","preppedValue","require_mapi_request","__commonJSMin","exports","module","parseToken","xtend","EventEmitter","urlUtils","constants","requestId","MapiRequest","client","options","defaultHeaders","headersWithDefaults","headers","memo","name","accessToken","url","routeParams","actualAccessToken","accessTokenOwnerId","self","response","error","callback","handleResponse","getNextPage","nextPageRequest","getPage","handleError","request","extendedOptions","require_mapi_client","__commonJSMin","exports","module","parseToken","MapiRequest","constants","MapiClient","options","requestOptions","require_browser_client","__commonJSMin","exports","module","browser","MapiClient","BrowserClient","options","createBrowserClient","require_mapbox_sdk","__commonJSMin","exports","module","client","require_is_plain_obj","__commonJSMin","exports","module","toString","x","prototype","require_lib","__commonJSMin","exports","module","isPlainObject","xtend","DEFAULT_ERROR_PATH","NEWLINE_INDENT","v","rootValidator","options","value","message","validate","errorMessage","processMessage","validatorObj","validators","objectEntries","validationResult","key","validator","errorMessages","i","renderedMessage","objectId","ofPhrase","shapeValidator","shapeResult","invalidKeys","memo","valueKey","createArrayValidator","validatingTuple","getValidator","index","requiredValidator","formatErrorMessage","isArrayCulprit","messages","orList","m","max","arr","compareWith","min","result","len","path","prettifyResult","list","addArticle","nounPhrase","prettyResult","arrayCulprit","output","prepend","obj","require_validator","__commonJSMin","exports","module","xtend","v","file","value","assertShape","validatorObj","apiName","date","msg","coordinates","require_pick","__commonJSMin","exports","module","pick","source","keys","filter","key","val","result","require_object_map","__commonJSMin","exports","module","objectMap","obj","cb","result","key","require_stringify_booleans","__commonJSMin","exports","module","objectMap","stringifyBoolean","obj","_","value","require_create_service_factory","__commonJSMin","exports","module","MapiClient","createClient","createServiceFactory","ServicePrototype","clientOrConfig","client","service","require_geocoding","__commonJSMin","exports","module","xtend","v","pick","stringifyBooleans","createServiceFactory","Geocoding","featureTypes","config","query","urlAlphabet","init_url_alphabet","__esmMin","index_browser_exports","__export","customAlphabet","customRandom","nanoid","random","urlAlphabet","init_index_browser","__esmMin","init_url_alphabet","bytes","alphabet","defaultSize","getRandom","mask","step","size","id","j","byte","require_events","__commonJSMin","exports","module","nanoid","MapboxEventManager","options","selected","geocoder","payload","keyEvent","callback","err","event","eventArgs","proximity","ipProximityHeader","zoom","resultIndex","results","opts","xhttp","header","headerValue","selectedID","resultIDs","feature","selectedIdx","searchStartRequiredProps","searchKeystrokeRequiredProps","searchSelectRequiredProps","obj","requiredProps","prop","evt","forceFlush","require_localization","__commonJSMin","exports","module","placeholder","require_subtag","__commonJSMin","exports","module","root","name","make","empty","pattern","match","tag","split","v","i","api","expose","target","key","value","part","position","type","method","require_geolocation","__commonJSMin","exports","module","Geolocation","positionOptions","resolve","reject","require_utils","__commonJSMin","exports","module","transformFeatureToGeolocationText","feature","accuracy","addrInfo","getAddressInfo","addressAccuracy","currentAccuracy","accuracyIndex","acc","name","houseNumber","street","placeName","context","layer","REVERSE_GEOCODE_COORD_RGX","require_lib","__commonJSMin","exports","module","Typeahead","debounce","extend","EventEmitter","exceptions","MapboxClient","mbxGeocoder","MapboxEventManager","localization","subtag","Geolocation","utils","GEOCODE_REQUEST_TYPE","getFooterNode","div","MapboxGeocoder","options","item","placeName","container","addToExistingContainer","geocoder","el","parent","map","searchIcon","e","actions","buttonIcon","geolocateIcon","typeahead","parentDraw","footerNode","geolocationPosition","geojson","config","text","resp","feature","locationText","error","name","path","icon","value","ESC_KEY_CODE","TAB_KEY_CODE","target","selected","flyOptions","bbox","defaultFlyOptions","search","type","requestType","keys","spacesOrCommaRgx","self","key","isCoordKey","lng","lat","coords","c","trimmedSearch","searchInput","request","localGeocoderRes","externalGeocoderRes","geocoderError","response","res","features","err","ev","ctx","results","result","center","errorMessage","msg","firstLanguage","language","localizedValue","showSuggestions","proximity","disableTrackProximity","fn","browserLocale","zoom","flyTo","placeholder","countries","types","minLength","limit","filter","origin","accessToken","code","defaultMarkerOptions","markerOptions","defaultEquals","a","b","activeConsumer","inNotificationPhase","epoch","SIGNAL","setActiveConsumer","consumer","prev","getActiveConsumer","REACTIVE_NODE","producerAccessed","node","inNotificationPhase","activeConsumer","idx","assertConsumerNode","consumerIsLive","staleProducer","producerRemoveLiveConsumerAtIndex","producerAddLiveConsumer","producerIncrementEpoch","epoch","producerUpdateValueVersion","consumerPollProducersForChange","producerNotifyConsumers","prev","consumer","consumerMarkDirty","producerUpdatesAllowed","consumerBeforeComputation","setActiveConsumer","consumerAfterComputation","prevConsumer","i","producer","seenVersion","consumerDestroy","indexOfThis","assertProducerNode","isConsumerNode","lastIdx","idxProducer","createComputed","computation","COMPUTED_NODE","computed","ERRORED","SIGNAL","UNSET","COMPUTING","__spreadProps","__spreadValues","defaultEquals","oldValue","newValue","err","defaultThrowError","throwInvalidWriteToSignalErrorFn","throwInvalidWriteToSignalError","setThrowInvalidWriteToSignalError","fn","postSignalSetFn","createSignal","initialValue","SIGNAL_NODE","getter","signalSetFn","node","newValue","producerUpdatesAllowed","throwInvalidWriteToSignalError","signalValueChanged","signalUpdateFn","updater","SIGNAL_NODE","__spreadProps","__spreadValues","REACTIVE_NODE","defaultEquals","signalValueChanged","node","producerIncrementEpoch","producerNotifyConsumers","postSignalSetFn","isFunction","value","createErrorClass","createImpl","ctorFunc","instance","UnsubscriptionError","createErrorClass","_super","errors","err","i","arrRemove","arr","item","index","Subscription","_Subscription","initialTeardown","errors","_parentage","parent","initialFinalizer","isFunction","e","UnsubscriptionError","_finalizers","finalizer","execFinalizer","err","teardown","_a","arrRemove","empty","EMPTY_SUBSCRIPTION","isSubscription","value","config","timeoutProvider","handler","timeout","args","delegate","handle","reportUnhandledError","err","timeoutProvider","onUnhandledError","config","noop","COMPLETE_NOTIFICATION","createNotification","errorNotification","error","nextNotification","value","kind","context","errorContext","cb","config","isRoot","errorThrown","error","captureError","err","Subscriber","Subscription","destination","isSubscription","EMPTY_OBSERVER","next","error","complete","SafeSubscriber","value","handleStoppedNotification","nextNotification","err","errorNotification","COMPLETE_NOTIFICATION","_bind","bind","fn","thisArg","ConsumerObserver","partialObserver","handleUnhandledError","observerOrNext","isFunction","context","config","captureError","reportUnhandledError","defaultErrorHandler","notification","subscriber","onStoppedNotification","timeoutProvider","noop","observable","identity","x","pipe","fns","pipeFromArray","identity","input","prev","fn","Observable","subscribe","operator","observable","observerOrNext","error","complete","subscriber","isSubscriber","SafeSubscriber","errorContext","source","sink","err","next","promiseCtor","getPromiseCtor","resolve","reject","value","_a","operations","pipeFromArray","x","config","isObserver","isFunction","Subscriber","isSubscription","hasLift","source","isFunction","operate","init","liftedSource","err","createOperatorSubscriber","destination","onNext","onComplete","onError","onFinalize","OperatorSubscriber","Subscriber","shouldUnsubscribe","value","err","_a","closed","refCount","operate","source","subscriber","connection","refCounter","createOperatorSubscriber","sharedConnection","conn","ConnectableObservable","Observable","source","subjectFactory","hasLift","subscriber","subject","_connection","connection","Subscription","createOperatorSubscriber","err","refCount","ObjectUnsubscribedError","createErrorClass","_super","Subject","Observable","operator","subject","AnonymousSubject","ObjectUnsubscribedError","value","errorContext","observer","err","observers","_a","subscriber","hasError","isStopped","EMPTY_SUBSCRIPTION","Subscription","arrRemove","thrownError","observable","destination","source","_b","BehaviorSubject","Subject","_value","subscriber","subscription","hasError","thrownError","value","dateTimestampProvider","ReplaySubject","Subject","_bufferSize","_windowTime","_timestampProvider","dateTimestampProvider","value","isStopped","_buffer","_infiniteTimeWindow","subscriber","subscription","copy","i","adjustedBufferSize","now","last","Action","Subscription","scheduler","work","state","delay","intervalProvider","handler","timeout","args","delegate","handle","AsyncAction","Action","scheduler","work","state","delay","_a","id","_id","intervalProvider","_scheduler","error","_delay","errored","errorValue","e","actions","arrRemove","Scheduler","_Scheduler","schedulerActionCtor","now","work","delay","state","dateTimestampProvider","AsyncScheduler","Scheduler","SchedulerAction","now","action","actions","error","asyncScheduler","AsyncScheduler","AsyncAction","async","EMPTY","Observable","subscriber","isScheduler","value","isFunction","last","arr","popResultSelector","args","isFunction","popScheduler","isScheduler","popNumber","defaultValue","__decorate","decorators","target","key","desc","c","r","d","i","__awaiter","thisArg","_arguments","P","generator","adopt","value","resolve","reject","fulfilled","step","e","rejected","result","__values","o","s","m","__await","v","__asyncGenerator","thisArg","_arguments","generator","g","i","q","verb","awaitReturn","f","reject","n","a","b","resume","step","e","settle","r","fulfill","value","__asyncValues","o","m","i","__values","verb","n","v","resolve","reject","settle","d","isArrayLike","x","isPromise","value","isFunction","isInteropObservable","input","isFunction","observable","isAsyncIterable","obj","isFunction","createInvalidObservableTypeError","input","getSymbolIterator","iterator","isIterable","input","isFunction","iterator","readableStreamLikeToAsyncGenerator","readableStream","__asyncGenerator","reader","value","done","__await","isReadableStreamLike","obj","isFunction","innerFrom","input","Observable","isInteropObservable","fromInteropObservable","isArrayLike","fromArrayLike","isPromise","fromPromise","isAsyncIterable","fromAsyncIterable","isIterable","fromIterable","isReadableStreamLike","fromReadableStreamLike","createInvalidObservableTypeError","obj","subscriber","obs","observable","isFunction","array","i","promise","value","err","reportUnhandledError","iterable","asyncIterable","process","readableStream","readableStreamLikeToAsyncGenerator","asyncIterable_1","asyncIterable_1_1","e_1","_a","__awaiter","__asyncValues","e_1_1","executeSchedule","parentSubscription","scheduler","work","delay","repeat","scheduleSubscription","observeOn","scheduler","delay","operate","source","subscriber","createOperatorSubscriber","value","executeSchedule","err","subscribeOn","scheduler","delay","operate","source","subscriber","scheduleObservable","input","scheduler","innerFrom","subscribeOn","observeOn","schedulePromise","input","scheduler","innerFrom","subscribeOn","observeOn","scheduleArray","input","scheduler","Observable","subscriber","scheduleIterable","input","scheduler","Observable","subscriber","iterator","executeSchedule","value","done","err","isFunction","scheduleAsyncIterable","input","scheduler","Observable","subscriber","executeSchedule","iterator","result","scheduleReadableStreamLike","input","scheduler","scheduleAsyncIterable","readableStreamLikeToAsyncGenerator","scheduled","input","scheduler","isInteropObservable","scheduleObservable","isArrayLike","scheduleArray","isPromise","schedulePromise","isAsyncIterable","scheduleAsyncIterable","isIterable","scheduleIterable","isReadableStreamLike","scheduleReadableStreamLike","createInvalidObservableTypeError","from","input","scheduler","scheduled","innerFrom","of","args","scheduler","popScheduler","from","throwError","errorOrErrorFactory","scheduler","errorFactory","isFunction","init","subscriber","Observable","isObservable","obj","Observable","isFunction","EmptyError","createErrorClass","_super","isValidDate","value","map","project","thisArg","operate","source","subscriber","index","createOperatorSubscriber","value","isArray","callOrApply","fn","args","mapOneOrManyArgs","map","isArray","getPrototypeOf","objectProto","getKeys","argsArgArrayOrObject","args","first","isPOJO","keys","key","obj","createObject","keys","values","result","key","i","combineLatest","args","scheduler","popScheduler","resultSelector","popResultSelector","observables","keys","argsArgArrayOrObject","from","result","Observable","combineLatestInit","values","createObject","identity","mapOneOrManyArgs","valueTransform","subscriber","maybeSchedule","length","active","remainingFirstValues","i","source","hasFirstValue","createOperatorSubscriber","value","execute","subscription","executeSchedule","mergeInternals","source","subscriber","project","concurrent","onBeforeNext","expand","innerSubScheduler","additionalFinalizer","buffer","active","index","isComplete","checkComplete","outerNext","value","doInnerSub","innerComplete","innerFrom","createOperatorSubscriber","innerValue","bufferedValue","executeSchedule","err","mergeMap","project","resultSelector","concurrent","isFunction","a","i","map","b","ii","innerFrom","operate","source","subscriber","mergeInternals","mergeAll","concurrent","mergeMap","identity","concatAll","mergeAll","concat","args","concatAll","from","popScheduler","defer","observableFactory","Observable","subscriber","innerFrom","forkJoin","args","resultSelector","popResultSelector","sources","keys","argsArgArrayOrObject","result","Observable","subscriber","length","values","remainingCompletions","remainingEmissions","sourceIndex","hasValue","innerFrom","createOperatorSubscriber","value","createObject","mapOneOrManyArgs","nodeEventEmitterMethods","eventTargetMethods","jqueryMethods","fromEvent","target","eventName","options","resultSelector","isFunction","mapOneOrManyArgs","add","remove","isEventTarget","methodName","handler","isNodeStyleEventEmitter","toCommonHandlerRegistry","isJQueryStyleEventEmitter","isArrayLike","mergeMap","subTarget","innerFrom","Observable","subscriber","args","iif","condition","trueResult","falseResult","defer","timer","dueTime","intervalOrScheduler","scheduler","async","intervalDuration","isScheduler","Observable","subscriber","due","isValidDate","n","interval","period","scheduler","asyncScheduler","timer","merge","args","scheduler","popScheduler","concurrent","popNumber","sources","innerFrom","mergeAll","from","EMPTY","filter","predicate","thisArg","operate","source","subscriber","index","createOperatorSubscriber","value","catchError","selector","operate","source","subscriber","innerSub","syncUnsub","handledResult","createOperatorSubscriber","err","innerFrom","scanInternals","accumulator","seed","hasSeed","emitOnNext","emitBeforeComplete","source","subscriber","hasState","state","index","createOperatorSubscriber","value","i","concatMap","project","resultSelector","isFunction","mergeMap","debounceTime","dueTime","scheduler","asyncScheduler","operate","source","subscriber","activeTask","lastValue","lastTime","emit","value","emitWhenIdle","targetTime","now","createOperatorSubscriber","defaultIfEmpty","defaultValue","operate","source","subscriber","hasValue","createOperatorSubscriber","value","take","count","EMPTY","operate","source","subscriber","seen","createOperatorSubscriber","value","mapTo","value","map","distinctUntilChanged","comparator","keySelector","identity","defaultCompare","operate","source","subscriber","previousKey","first","createOperatorSubscriber","value","currentKey","a","b","throwIfEmpty","errorFactory","defaultErrorFactory","operate","source","subscriber","hasValue","createOperatorSubscriber","value","EmptyError","finalize","callback","operate","source","subscriber","first","predicate","defaultValue","hasDefaultValue","source","filter","v","i","identity","take","defaultIfEmpty","throwIfEmpty","EmptyError","takeLast","count","EMPTY","operate","source","subscriber","buffer","createOperatorSubscriber","value","last","predicate","defaultValue","hasDefaultValue","source","filter","v","i","identity","takeLast","defaultIfEmpty","throwIfEmpty","EmptyError","scan","accumulator","seed","operate","scanInternals","share","options","connector","Subject","resetOnError","resetOnComplete","resetOnRefCountZero","wrapperSource","connection","resetConnection","subject","refCount","hasCompleted","hasErrored","cancelReset","reset","resetAndUnsubscribe","conn","operate","source","subscriber","dest","handleReset","SafeSubscriber","value","err","innerFrom","on","args","onSubscriber","shareReplay","configOrBufferSize","windowTime","scheduler","bufferSize","refCount","share","ReplaySubject","startWith","values","scheduler","popScheduler","operate","source","subscriber","concat","switchMap","project","resultSelector","operate","source","subscriber","innerSubscriber","index","isComplete","checkComplete","createOperatorSubscriber","value","innerIndex","outerIndex","innerFrom","innerValue","takeUntil","notifier","operate","source","subscriber","innerFrom","createOperatorSubscriber","noop","tap","observerOrNext","error","complete","tapObserver","isFunction","operate","source","subscriber","_a","isUnsub","createOperatorSubscriber","value","err","_b","identity","throttle","durationSelector","config","operate","source","subscriber","leading","trailing","hasValue","sendValue","throttled","isComplete","endThrottling","send","cleanupThrottling","startThrottle","value","innerFrom","createOperatorSubscriber","throttleTime","duration","scheduler","asyncScheduler","config","duration$","timer","throttle","XSS_SECURITY_URL","RuntimeError","code","message","formatRuntimeError","noSideEffects","fn","PARAMETERS","makeMetadataCtor","props","args","values","propName","makeParamDecorator","name","parentClass","noSideEffects","metaCtor","ParamDecoratorFactory","annotationInstance","ParamDecorator","cls","unusedKey","index","parameters","PARAMETERS","_global","getClosureSafeProperty","objWithPropertyToExtract","key","fillProperties","target","source","stringify","token","res","newLineIndex","concatStringsWithSpace","before","after","__forward_ref__","getClosureSafeProperty","forwardRef","forwardRefFn","stringify","resolveForwardRef","type","isForwardRef","fn","ɵɵdefineInjectable","opts","ɵɵdefineInjector","options","getInjectableDef","type","getOwnDefinition","NG_PROV_DEF","NG_INJECTABLE_DEF","isInjectable","field","getInheritedInjectableDef","def","getInjectorDef","NG_INJ_DEF","NG_INJECTOR_DEF","getClosureSafeProperty","InjectionToken","_desc","ɵɵdefineInjectable","isEnvironmentProviders","value","NG_COMP_DEF","getClosureSafeProperty","NG_DIR_DEF","NG_PIPE_DEF","NG_MOD_DEF","NG_FACTORY_DEF","NG_ELEMENT_ID","NG_ENV_ID","renderStringify","stringifyForError","throwCyclicDependencyError","token","path","depPath","RuntimeError","throwProviderNotFoundError","token","injectorName","RuntimeError","InjectFlags","_injectImplementation","getInjectImplementation","setInjectImplementation","impl","previous","injectRootLimpMode","notFoundValue","flags","injectableDef","getInjectableDef","_THROW_IF_NOT_FOUND","THROW_IF_NOT_FOUND","DI_DECORATOR_FLAG","NG_TEMP_TOKEN_PATH","NG_TOKEN_PATH","NEW_LINE","NO_NEW_LINE","SOURCE","_currentInjector","getCurrentInjector","setCurrentInjector","injector","former","injectInjectorOnly","token","flags","InjectFlags","RuntimeError","injectRootLimpMode","ɵɵinject","getInjectImplementation","resolveForwardRef","inject","token","flags","InjectFlags","ɵɵinject","convertToBitFlags","injectArgs","types","args","i","arg","resolveForwardRef","RuntimeError","type","j","meta","flag","getInjectFlag","attachInjectFlag","decorator","DI_DECORATOR_FLAG","catchInjectorError","e","injectorErrorName","source","tokenPath","NG_TEMP_TOKEN_PATH","SOURCE","formatError","NG_TOKEN_PATH","text","obj","NO_NEW_LINE","context","stringify","parts","key","value","NEW_LINE","Optional","attachInjectFlag","makeParamDecorator","SkipSelf","attachInjectFlag","makeParamDecorator","getFactoryDef","type","throwNotFound","hasFactoryDef","NG_FACTORY_DEF","arrayEquals","a","b","identityAccessor","valueA","valueB","flatten","list","deepForEach","input","fn","value","addToArray","arr","index","removeFromArray","newArray","size","arrayInsert2","array","index","value1","value2","end","previousEnd","keyValueArraySet","keyValueArray","key","value","index","keyValueArrayIndexOf","arrayInsert2","keyValueArrayGet","_arrayIndexOfSorted","_arrayIndexOfSorted","array","value","shift","start","end","middle","current","EMPTY_OBJ","EMPTY_ARRAY","ENVIRONMENT_INITIALIZER","InjectionToken","INJECTOR$1","INJECTOR_DEF_TYPES","NullInjector","token","notFoundValue","THROW_IF_NOT_FOUND","error","stringify","ChangeDetectionStrategy","ViewEncapsulation$1","ViewEncapsulation","InputFlags","classIndexOf","className","classToSearch","startingIndex","foundIndex","length","setUpAttributes","renderer","native","attrs","namespaceURI","attrName","attrVal","isAnimationProp","isNameOnlyAttributeMarker","marker","name","mergeHostAttrs","dst","src","srcMarker","item","mergeHostAttribute","key1","key2","i","markerInsertPosition","dstValue","NG_TEMPLATE_SELECTOR","isCssClassMatching","tNode","cssClassToMatch","isProjectionMode","isInlineTemplate","hasTagAndTypeMatch","currentSelector","tagNameToCompare","isNodeMatchingSelector","selector","mode","nodeAttrs","nameOnlyMarkerIdx","getNameOnlyMarkerIndex","skipToNextSelector","isPositive","selectorAttrValue","attrIndexInNode","findAttrIndexInNode","nodeAttrValue","bindingsMode","maybeAttrName","matchTemplateAttribute","isNodeMatchingSelectorList","getProjectAsAttrValue","ngProjectAsAttrIdx","nodeAttr","attr","isSelectorInSelectorList","list","selectorListLoop","currentSelectorInList","j","maybeWrapInNotSelector","isNegativeMode","chunk","stringifyCSSSelector","result","currentChunk","valueOrMarker","attrValue","stringifyCSSSelectorList","selectorList","extractAttrsAndClassesFromSelector","classes","ɵɵdefineComponent","componentDefinition","noSideEffects","baseDef","getNgDirectiveDef","def","__spreadProps","__spreadValues","initFeatures","dependencies","extractDefListOrFactory","getComponentId","extractDirectiveDef","type","getComponentDef","getDirectiveDef","nonNull","ɵɵdefineNgModule","parseAndConvertBindingsForDefinition","obj","declaredInputs","newLookup","minifiedKey","publicName","declaredName","inputFlags","ɵɵdefineDirective","directiveDefinition","ɵɵdefinePipe","pipeDef","NG_COMP_DEF","NG_DIR_DEF","getPipeDef$1","NG_PIPE_DEF","isStandalone","getNgModuleDef","throwNotFound","ngModuleDef","NG_MOD_DEF","definition","fn","defExtractor","dep","getComponentId","componentDef","hash","hashSelectors","char","makeEnvironmentProviders","providers","importProvidersFrom","sources","internalImportProvidersFrom","checkForStandaloneCmp","providersOut","dedup","injectorTypesWithProviders","collectProviders","provider","deepForEach","source","internalSource","walkProviderTree","processInjectorTypesWithProviders","typesWithProviders","visitor","i","ngModule","deepForEachProvider","container","parents","resolveForwardRef","defType","injDef","getInjectorDef","cmpDef","getComponentDef","isDuplicate","deps","dep","importTypesWithProviders","imported","factory","getFactoryDef","EMPTY_ARRAY","INJECTOR_DEF_TYPES","ENVIRONMENT_INITIALIZER","ɵɵinject","defProviders","injectorType","deepForEachProvider","providers","fn","provider","isEnvironmentProviders","USE_VALUE$1","getClosureSafeProperty","isValueProvider","value","isExistingProvider","isFactoryProvider","isTypeProvider","isClassProvider","INJECTOR_SCOPE","InjectionToken","NOT_YET","CIRCULAR","NULL_INJECTOR","getNullInjector","NullInjector","EnvironmentInjector","R3Injector","parent","source","scopes","forEachSingleProvider","INJECTOR$1","makeRecord","record","INJECTOR_DEF_TYPES","EMPTY_ARRAY","InjectFlags","prevConsumer","setActiveConsumer","service","onDestroyHooks","hook","callback","previousInjector","setCurrentInjector","previousInjectImplementation","setInjectImplementation","prevInjectContext","token","notFoundValue","THROW_IF_NOT_FOUND","flags","NG_ENV_ID","convertToBitFlags","def","couldBeInjectableType","getInjectableDef","injectableDefOrInjectorDefFactory","nextInjector","e","NG_TEMP_TOKEN_PATH","stringify","catchInjectorError","initializers","ENVIRONMENT_INITIALIZER","initializer","tokens","records","RuntimeError","resolveForwardRef","providerToRecord","multiRecord","injectArgs","hasOnDestroy","providedIn","destroyCBIdx","injectableDef","factory","getFactoryDef","getUndecoratedInjectableFactory","inheritedInjectableDef","getInheritedInjectableDef","providerToFactory","ngModuleType","unwrappedProvider","ɵɵinject","classRef","hasDeps","multi","runInInjectionContext","injector","prevInjectorProfilerContext","prevInjector","isInInjectionContext","getInjectImplementation","getCurrentInjector","assertInInjectionContext","debugFn","isType","v","HOST","TVIEW","FLAGS","PARENT","NEXT","T_HOST","HYDRATION","CLEANUP","CONTEXT","INJECTOR","ENVIRONMENT","RENDERER","CHILD_HEAD","CHILD_TAIL","DECLARATION_VIEW","DECLARATION_COMPONENT_VIEW","DECLARATION_LCONTAINER","PREORDER_HOOK_FLAGS","QUERIES","ID","EMBEDDED_VIEW_INJECTOR","ON_DESTROY_HOOKS","EFFECTS_TO_SCHEDULE","REACTIVE_TEMPLATE_CONSUMER","HEADER_OFFSET","TYPE","NATIVE","VIEW_REFS","MOVED_VIEWS","CONTAINER_HEADER_OFFSET","LContainerFlags","isLView","value","TYPE","isLContainer","isContentQueryHost","tNode","isComponentHost","isDirectiveHost","isComponentDef","def","isRootView","target","FLAGS","SimpleChange","previousValue","currentValue","firstChange","applyValueToInputField","instance","inputSignalNode","privateName","value","ɵɵNgOnChangesFeature","NgOnChangesFeatureImpl","definition","ngOnChangesSetInput","rememberChangeHistoryAndInvokeOnChangesHook","simpleChangesStore","getSimpleChangesStore","current","previous","EMPTY_OBJ","key","publicName","declaredName","setSimpleChangesStore","previousChange","SIMPLE_CHANGES_STORE","store","profilerCallback","profiler","event","instance","hookOrListener","profilerCallback","SVG_NAMESPACE","MATH_ML_NAMESPACE","unwrapRNode","value","HOST","getNativeByIndex","index","lView","unwrapRNode","getNativeByTNode","tNode","getTNode","tView","index","load","view","getComponentLViewByIndex","nodeIndex","hostView","slotValue","isLView","HOST","isCreationMode","FLAGS","viewAttachedToChangeDetector","viewAttachedToContainer","isLContainer","PARENT","getConstant","consts","resetPreOrderHookFlags","lView","PREORDER_HOOK_FLAGS","markViewForRefresh","markAncestorsForTraversal","walkUpViews","nestingLevel","currentView","DECLARATION_VIEW","requiresRefreshOrTraversal","REACTIVE_TEMPLATE_CONSUMER","updateAncestorTraversalFlagsOnAttach","ENVIRONMENT","parent","getLViewParent","storeLViewOnDestroy","onDestroyCallback","RuntimeError","ON_DESTROY_HOOKS","removeLViewOnDestroy","destroyCBIdx","instructionState","createLFrame","_isRefreshingViews","getElementDepthCount","instructionState","increaseElementDepthCount","decreaseElementDepthCount","getBindingsEnabled","isInSkipHydrationBlock$1","isSkipHydrationRootTNode","tNode","leaveSkipHydrationBlock","instructionState","getLView","getTView","ɵɵrestoreView","viewToRestore","CONTEXT","ɵɵresetView","value","getCurrentTNode","currentTNode","getCurrentTNodePlaceholderOk","getCurrentParentTNode","lFrame","setCurrentTNode","tNode","isParent","isCurrentTNodeParent","setCurrentTNodeAsNotParent","getContextLView","isRefreshingViews","_isRefreshingViews","setIsRefreshingViews","mode","getBindingRoot","lFrame","instructionState","index","getBindingIndex","setBindingIndex","value","nextBindingIndex","incrementBindingIndex","count","isInI18nBlock","setBindingRootForHostBindings","bindingRootIndex","currentDirectiveIndex","lFrame","instructionState","setCurrentDirectiveIndex","getCurrentDirectiveIndex","getCurrentDirectiveDef","tData","getCurrentQueryIndex","setCurrentQueryIndex","value","getDeclarationTNode","lView","tView","TVIEW","T_HOST","enterDI","tNode","flags","InjectFlags","parentTNode","parentLView","DECLARATION_VIEW","allocLFrame","enterView","newView","newLFrame","currentLFrame","childLFrame","createLFrame","parent","leaveViewLight","oldLFrame","leaveDI","leaveView","nextContextImpl","level","walkUpViews","CONTEXT","getSelectedIndex","setSelectedIndex","index","getSelectedTNode","getTNode","getNamespace$1","instructionState","_wasLastNodeCreated","wasLastNodeCreated","lastNodeWasCreated","flag","registerPreOrderHooks","directiveIndex","directiveDef","tView","ngOnChanges","ngOnInit","ngDoCheck","wrappedOnChanges","NgOnChangesFeatureImpl","registerPostOrderHooks","tNode","i","end","lifecycleHooks","ngAfterContentInit","ngAfterContentChecked","ngAfterViewInit","ngAfterViewChecked","ngOnDestroy","executeCheckHooks","lView","hooks","nodeIndex","callHooks","executeInitAndCheckHooks","initPhase","FLAGS","incrementInitPhaseFlags","flags","currentView","arr","currentNodeIndex","startIndex","PREORDER_HOOK_FLAGS","nodeIndexLimit","max","lastNodeIndexFound","callHook","callHookInternal","directive","hook","profiler","prevConsumer","setActiveConsumer","isInitHook","NO_PARENT_INJECTOR","NodeInjectorFactory","factory","isViewProvider","injectImplementation","isFactory","obj","hasClassInput","tNode","hasStyleInput","NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR","ChainedInjector","injector","parentInjector","token","notFoundValue","flags","convertToBitFlags","value","hasParentInjector","parentLocation","NO_PARENT_INJECTOR","getParentInjectorIndex","getParentInjectorViewOffset","getParentInjectorView","location","startView","viewOffset","parentView","DECLARATION_VIEW","includeViewProviders","setIncludeViewProviders","v","oldValue","BLOOM_SIZE","BLOOM_MASK","BLOOM_BUCKET_BITS","nextNgElementId","NOT_FOUND","bloomAdd","injectorIndex","tView","type","id","NG_ELEMENT_ID","bloomHash","mask","getOrCreateNodeInjectorForNode","tNode","lView","existingInjectorIndex","getInjectorIndex","TVIEW","insertBloom","parentLoc","getParentInjectorLocation","hasParentInjector","parentIndex","getParentInjectorIndex","parentLView","getParentInjectorView","parentData","i","arr","footer","declarationViewOffset","parentTNode","lViewCursor","getTNodeFromLView","NO_PARENT_INJECTOR","DECLARATION_VIEW","diPublicInInjector","token","injectAttributeImpl","attrNameToInject","attrs","attrsLength","value","isNameOnlyAttributeMarker","notFoundValueOrThrow","notFoundValue","flags","InjectFlags","throwProviderNotFoundError","lookupTokenUsingModuleInjector","moduleInjector","INJECTOR","previousInjectImplementation","setInjectImplementation","injectRootLimpMode","getOrCreateInjectable","FLAGS","embeddedInjectorValue","lookupTokenUsingEmbeddedInjector","lookupTokenUsingNodeInjector","bloomHashBitOrFactory","enterDI","leaveDI","previousTView","parentLocation","hostTElementNode","DECLARATION_COMPONENT_VIEW","T_HOST","shouldSearchParent","bloomHasToken","instance","searchTokensOnInjector","currentTView","canAccessViewProviders","isComponentHost","isHostSpecialCase","injectableIdx","locateDirectiveOrProvider","getNodeInjectable","nodeProviderIndexes","tInjectables","injectablesStart","directivesStart","directiveEnd","cptViewProvidersCount","startingIndex","endIndex","providerTokenOrDef","dirDef","isComponentDef","index","tData","isFactory","factory","throwCyclicDependencyError","stringifyForError","previousIncludeViewProviders","prevInjectContext","success","registerPreOrderHooks","tokenId","createNodeInjector","injectorView","isFirstHostTNode","NodeInjector","_tNode","_lView","token","notFoundValue","flags","getOrCreateInjectable","convertToBitFlags","createNodeInjector","getCurrentTNode","getLView","ɵɵgetInheritedFactory","type","noSideEffects","ownConstructor","ownFactory","NG_FACTORY_DEF","getFactoryOf","objectPrototype","parent","factory","t","isForwardRef","resolveForwardRef","getFactoryDef","lookupTokenUsingEmbeddedInjector","tNode","lView","currentTNode","currentLView","FLAGS","nodeInjectorValue","lookupTokenUsingNodeInjector","InjectFlags","NOT_FOUND","parentTNode","embeddedViewInjector","EMBEDDED_VIEW_INJECTOR","embeddedViewInjectorValue","getTNodeFromLView","DECLARATION_VIEW","tView","TVIEW","tViewType","T_HOST","ɵɵinjectAttribute","attrNameToInject","injectAttributeImpl","createInjector","defType","parent","additionalProviders","name","injector","createInjectorWithoutInjectorInstances","scopes","providers","EMPTY_ARRAY","importProvidersFrom","stringify","R3Injector","getNullInjector","Injector","_Injector","THROW_IF_NOT_FOUND","NullInjector","options","ɵɵdefineInjectable","ɵɵinject","INJECTOR$1","HOST_TAG_NAME","InjectionToken","flags","tNode","getCurrentTNode","RuntimeError","InjectFlags","ERROR_ORIGINAL_ERROR","getOriginalError","error","ERROR_ORIGINAL_ERROR","SCHEDULE_IN_ROOT_ZONE_DEFAULT","DestroyRef","injectDestroyRef","injector","NodeInjectorDestroyRef","_lView","callback","storeLViewOnDestroy","removeLViewOnDestroy","getLView","PendingTasks","BehaviorSubject","taskId","ɵɵdefineInjectable","EventEmitter_","Subject","isAsync","isInInjectionContext","inject","DestroyRef","PendingTasks","value","prevConsumer","setActiveConsumer","observerOrNext","error","complete","nextFn","errorFn","completeFn","observer","sink","Subscription","fn","taskId","EventEmitter","noop","args","scheduleCallbackWithRafRace","callback","timeoutId","animationFrameId","cleanup","scheduleCallbackWithMicrotask","isAngularZoneProperty","angularZoneInstanceIdProperty","ngZoneInstanceId","NgZone","_NgZone","options","EventEmitter","enableLongStackTrace","shouldCoalesceEventChangeDetection","shouldCoalesceRunChangeDetection","scheduleInRootZone","SCHEDULE_IN_ROOT_ZONE_DEFAULT","RuntimeError","self","forkInnerZoneWithAngularBehavior","fn","applyThis","applyArgs","name","zone","task","EMPTY_PAYLOAD","noop","checkStable","delayChangeDetectionForEvents","scheduleCheckStable","scheduleCallbackWithRafRace","updateMicroTaskStatus","delayChangeDetectionForEventsDelegate","instanceId","delegate","current","target","shouldBeIgnoredByZone","onEnter","onLeave","callback","source","isSchedulerTick","hasTaskState","error","NoopNgZone","hasApplyArgsData","key","ErrorHandler","error","originalError","getOriginalError","INTERNAL_APPLICATION_ERROR_HANDLER","InjectionToken","zone","inject","NgZone","userErrorHandler","injectElementRef","createElementRef","getCurrentTNode","getLView","tNode","lView","ElementRef","getNativeByTNode","nativeElement","unwrapElementRef","value","symbolIterator","QueryList","_QueryList","EventEmitter","_emitDistinctChangesOnly","proto","index","fn","init","resultsTree","identityAccessor","newResultFlat","flatten","arrayEquals","cb","hasInSkipHydrationBlockFlag","tNode","TRACKED_LVIEWS","uniqueIdCounter","getUniqueLViewId","registerLView","lView","ID","unregisterLView","lView","TRACKED_LVIEWS","ID","MONKEY_PATCH_KEY_NAME","attachPatchData","target","data","isLView","MONKEY_PATCH_KEY_NAME","ID","registerLView","getFirstLContainer","lView","getNearestLContainer","CHILD_HEAD","getNextLContainer","container","NEXT","viewOrContainer","isLContainer","DOCUMENT","setDocument","document","getDocument","RuntimeError","APP_ID","InjectionToken","DEFAULT_APP_ID","PLATFORM_INITIALIZER","PLATFORM_ID","CSP_NONCE","InjectionToken","getDocument","REFERENCE_NODE_HOST","REFERENCE_NODE_BODY","_retrieveHydrationInfoImpl","retrieveHydrationInfo","rNode","injector","isRootView","_retrieveHydrationInfoImpl","PRESERVE_HOST_CONTENT_DEFAULT","PRESERVE_HOST_CONTENT","InjectionToken","policy$1","getPolicy$1","_global","s","trustedHTMLFromString","html","policy","getPolicy","_global","s","trustedHTMLFromStringBypass","html","trustedScriptURLFromStringBypass","url","getPolicy","SafeValueImpl","changingThisBreaksApplicationSecurity","XSS_SECURITY_URL","SafeHtmlImpl","SafeStyleImpl","SafeScriptImpl","SafeUrlImpl","SafeResourceUrlImpl","unwrapSafeValue","value","allowSanitizationBypassAndThrow","type","actualType","getSanitizationBypassType","bypassSanitizationTrustHtml","trustedHtml","bypassSanitizationTrustStyle","trustedStyle","bypassSanitizationTrustScript","trustedScript","bypassSanitizationTrustUrl","trustedUrl","bypassSanitizationTrustResourceUrl","trustedResourceUrl","getInertBodyHelper","defaultDoc","inertDocumentHelper","InertDocumentHelper","isDOMParserAvailable","DOMParserHelper","html","body","trustedHTMLFromString","templateEl","SAFE_URL_PATTERN","_sanitizeUrl","tagSet","tags","res","t","merge","sets","s","v","VOID_ELEMENTS","OPTIONAL_END_TAG_BLOCK_ELEMENTS","OPTIONAL_END_TAG_INLINE_ELEMENTS","OPTIONAL_END_TAG_ELEMENTS","BLOCK_ELEMENTS","INLINE_ELEMENTS","VALID_ELEMENTS","URI_ATTRS","HTML_ATTRS","ARIA_ATTRS","VALID_ATTRS","SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS","SanitizingHtmlSerializer","el","current","traverseContent","parentNodes","getFirstChild","next","getNextSibling","element","tagName","getNodeName","elAttrs","i","elAttr","attrName","lower","encodeEntities","chars","isClobberedElement","parentNode","childNode","node","nextSibling","clobberedElementError","firstChild","nodeName","SURROGATE_PAIR_REGEXP","NON_ALPHANUMERIC_REGEXP","match","hi","low","inertBodyHelper","_sanitizeHtml","unsafeHtmlInput","inertBodyElement","unsafeHtml","mXSSAttempts","parsedHtml","safeHtml","getTemplateContent","parent","isTemplateElement","SecurityContext","ɵɵsanitizeHtml","sanitizer","getSanitizer","trustedHTMLFromStringBypass","getDocument","renderStringify","ɵɵsanitizeUrl","unsafeUrl","sanitizer","getSanitizer","SecurityContext","allowSanitizationBypassAndThrow","unwrapSafeValue","_sanitizeUrl","renderStringify","ɵɵsanitizeResourceUrl","unsafeResourceUrl","trustedScriptURLFromStringBypass","RuntimeError","getUrlSanitizer","tag","prop","ɵɵsanitizeResourceUrl","ɵɵsanitizeUrl","ɵɵsanitizeUrlOrResourceUrl","unsafeUrl","getSanitizer","lView","getLView","ENVIRONMENT","COMMENT_DISALLOWED","COMMENT_DELIMITER","COMMENT_DELIMITER_ESCAPED","escapeCommentText","value","text","ɵɵresolveWindow","element","ɵɵresolveDocument","maybeUnwrapFn","value","isPlatformBrowser","injector","inject","Injector","PLATFORM_ID","RendererStyleFlags2","_icuContainerIterate","icuContainerIterate","tIcuContainerNode","lView","applyToElementOrContainer","action","renderer","parent","lNodeToHandle","beforeNode","lContainer","isComponent","isLContainer","isLView","HOST","rNode","unwrapRNode","nativeAppendChild","nativeInsertBefore","nativeRemoveNode","applyContainer","createTextNode","value","updateTextNode","createCommentNode","escapeCommentText","createElementNode","name","namespace","removeViewFromDOM","tView","lView","detachViewFromDOM","T_HOST","addViewToDOM","parentTNode","parentNativeNode","applyView","ENVIRONMENT","RENDERER","destroyViewTree","rootView","lViewOrLContainer","CHILD_HEAD","cleanUpView","TVIEW","next","firstView","CONTAINER_HEADER_OFFSET","NEXT","PARENT","insertView","index","indexInContainer","containerLength","addToArray","declarationLContainer","DECLARATION_LCONTAINER","trackMovedView","lQueries","QUERIES","updateAncestorTraversalFlagsOnAttach","FLAGS","declarationContainer","movedViews","MOVED_VIEWS","LContainerFlags","insertedComponentLView","DECLARATION_COMPONENT_VIEW","detachMovedView","declarationViewIndex","detachView","removeIndex","viewToDetach","removedLView","removeFromArray","destroyLView","prevConsumer","setActiveConsumer","REACTIVE_TEMPLATE_CONSUMER","consumerDestroy","executeOnDestroys","processCleanups","unregisterLView","tCleanup","lCleanup","CLEANUP","i","targetIdx","context","destroyHooks","ON_DESTROY_HOOKS","destroyHooksFn","NodeInjectorFactory","toCall","j","callContext","hook","profiler","getParentRElement","tNode","getClosestRElement","componentOffset","encapsulation","ViewEncapsulation$1","getNativeByTNode","child","isMove","nativeAppendOrInsertBefore","nativeParentNode","node","nativeNextSibling","getInsertInFrontOfRNode","currentTNode","_getInsertInFrontOfRNodeWithI18n","getInsertInFrontOfRNodeWithNoI18n","_processI18nInsertBefore","appendChild","tView","lView","childRNode","childTNode","parentRNode","getParentRElement","renderer","RENDERER","parentTNode","T_HOST","anchorNode","getInsertInFrontOfRNode","i","nativeAppendOrInsertBefore","_processI18nInsertBefore","getFirstNativeNode","tNode","tNodeType","getNativeByTNode","getBeforeNodeForView","elIcuContainerChild","rNodeOrLContainer","isLContainer","unwrapRNode","icuContainerIterate","projectionNodes","getProjectionNodes","parentView","getLViewParent","DECLARATION_COMPONENT_VIEW","componentHost","slotIdx","viewIndexInContainer","lContainer","nextViewIndex","CONTAINER_HEADER_OFFSET","firstTNodeOfView","TVIEW","NATIVE","nativeRemoveNode","rNode","isHostElement","applyNodes","renderer","action","tNode","lView","parentRElement","beforeNode","isProjection","rawSlotValue","tNodeType","attachPatchData","unwrapRNode","applyToElementOrContainer","nextRNode","icuContainerIterate","rNode","applyProjectionRecursive","applyView","tView","applyProjection","tProjectionNode","RENDERER","parentRNode","getParentRElement","parentTNode","T_HOST","getInsertInFrontOfRNode","componentLView","DECLARATION_COMPONENT_VIEW","nodeToProjectOrRNodes","i","nodeToProject","projectedComponentLView","PARENT","hasInSkipHydrationBlockFlag","applyContainer","lContainer","anchor","NATIVE","native","CONTAINER_HEADER_OFFSET","TVIEW","applyStyling","isClassBased","prop","value","flags","RendererStyleFlags2","writeDirectStyle","element","newValue","writeDirectClass","setupStaticAttributes","mergedAttrs","classes","styles","setUpAttributes","NO_CHANGE","ɵɵadvance","delta","selectIndexInternal","getTView","getLView","getSelectedIndex","index","checkNoChangesMode","FLAGS","preOrderCheckHooks","executeCheckHooks","preOrderHooks","executeInitAndCheckHooks","setSelectedIndex","ɵɵdirectiveInject","token","InjectFlags","ɵɵinject","getCurrentTNode","getOrCreateInjectable","resolveForwardRef","ɵɵinvalidFactory","msg","writeToDirectiveInput","def","instance","publicName","privateName","prevConsumer","setActiveConsumer","inputSignalNode","InputFlags","SIGNAL","applyValueToInputField","processHostBindingOpCodes","hostBindingOpCodes","opCode","directiveIdx","bindingRootIndx","hostBindingFn","setBindingRootForHostBindings","context","createLView","parentLView","host","tHostNode","environment","injector","embeddedViewInjector","hydrationInfo","HOST","resetPreOrderHookFlags","DECLARATION_VIEW","CONTEXT","ENVIRONMENT","INJECTOR","ID","getUniqueLViewId","HYDRATION","EMBEDDED_VIEW_INJECTOR","getOrCreateTNode","type","name","attrs","createTNodeAtIndex","isInI18nBlock","parent","getCurrentParentTNode","setCurrentTNode","currentTNode","getCurrentTNodePlaceholderOk","isParent","isCurrentTNodeParent","createTNode","allocExpando","numSlotsToAlloc","initialValue","allocIdx","executeTemplate","templateFn","rf","prevSelectedIndex","isUpdatePhase","HEADER_OFFSET","profiler","executeContentQueries","isContentQueryHost","start","end","directiveIndex","directiveInstance","createDirectivesInstances","getBindingsEnabled","instantiateAllDirectives","getNativeByTNode","invokeDirectivesHostBindings","saveResolvedLocalsInData","viewData","localRefExtractor","localNames","localIndex","getOrCreateComponentTView","createTView","declTNode","decls","vars","directives","pipes","viewQuery","schemas","constsOrFactory","ssrId","bindingStartIndex","initialViewLength","blueprint","createViewBlueprint","consts","locateHostElement","elementOrSelector","encapsulation","preserveContent","PRESERVE_HOST_CONTENT","PRESERVE_HOST_CONTENT_DEFAULT","ViewEncapsulation$1","rootElement","applyRootElementTransform","_applyRootElementTransformImpl","storeCleanupWithContext","tView","lView","context","cleanupFn","lCleanup","getOrCreateLViewCleanup","getOrCreateTViewCleanup","createTNode","tParent","type","index","value","attrs","injectorIndex","flags","isInSkipHydrationBlock$1","captureNodeBindings","mode","aliasMap","directiveIndex","bindingsResult","hostDirectiveAliasMap","publicName","internalName","inputFlags","InputFlags","finalPublicName","addPropertyBinding","bindings","values","initializeInputAndOutputAliases","tNode","hostDirectiveDefinitionMap","start","end","tViewData","tNodeAttrs","inputsFromAttrs","inputsStore","outputsStore","directiveDef","aliasData","aliasedInputs","aliasedOutputs","initialInputs","isInlineTemplate","generateInitialInputs","mapPropName","name","elementPropertyInternal","propName","renderer","sanitizer","nativeOnly","element","getNativeByTNode","inputData","dataValue","setInputsForProperty","isComponentHost","markDirtyIfOnPush","viewIndex","childComponentLView","getComponentLViewByIndex","FLAGS","resolveDirectives","tView","lView","tNode","localRefs","getBindingsEnabled","exportsMap","matchResult","findDirectiveDefMatches","directiveDefs","hostDirectiveDefs","initializeDirectives","cacheMatchingLocalNames","mergeHostAttrs","directives","i","diPublicInInjector","getOrCreateNodeInjectorForNode","initTNodeFlags","def","preOrderHooksFound","preOrderCheckHooksFound","directiveIdx","allocExpando","configureViewWithDirective","saveNameToExportMap","lifeCycleHooks","initializeInputAndOutputAliases","registerHostBindingOpCodes","directiveVarsIdx","hostBindings","hostBindingOpCodes","elementIndx","lastSelectedElementIdx","value","instantiateAllDirectives","native","start","end","isComponentHost","addComponentLogic","attachPatchData","initialInputs","directive","getNodeInjectable","setInputsFromAttrs","isComponentDef","componentView","getComponentLViewByIndex","CONTEXT","invokeDirectivesHostBindings","elementIndex","currentDirectiveIndex","getCurrentDirectiveIndex","setSelectedIndex","dirIndex","setCurrentDirectiveIndex","invokeHostBindingsInCreationMode","registry","matches","isNodeMatchingSelectorList","hostDirectiveMatches","componentOffset","markAsComponentHost","hostTNode","localNames","index","RuntimeError","numberOfDirectives","directiveIndex","directiveFactory","getFactoryDef","nodeInjectorFactory","NodeInjectorFactory","ɵɵdirectiveInject","NO_CHANGE","getNativeByTNode","getOrCreateComponentTView","rendererFactory","ENVIRONMENT","lViewFlags","addToViewTree","createLView","elementAttributeInternal","name","sanitizer","namespace","element","setElementAttribute","RENDERER","renderer","tagName","strValue","renderStringify","instance","initialInputData","publicName","privateName","flags","writeToDirectiveInput","generateInitialInputs","inputs","attrs","inputsToStore","attrName","inputConfig","j","createLContainer","hostNative","currentView","refreshContentQueries","contentQueries","prevConsumer","setActiveConsumer","queryStartIdx","directiveDefIdx","directiveDef","setCurrentQueryIndex","lViewOrLContainer","CHILD_HEAD","CHILD_TAIL","NEXT","executeViewQueryFn","viewQueryFn","component","getOrCreateLViewCleanup","view","CLEANUP","getOrCreateTViewCleanup","tView","handleError","lView","error","injector","INJECTOR","errorHandler","ErrorHandler","setInputsForProperty","tView","inputs","publicName","value","i","index","privateName","flags","instance","def","writeToDirectiveInput","textBindingInternal","element","getNativeByIndex","updateTextNode","RENDERER","renderComponent","hostLView","componentHostIdx","componentView","getComponentLViewByIndex","componentTView","TVIEW","syncViewWithBlueprint","hostRNode","HOST","HYDRATION","retrieveHydrationInfo","renderView","CONTEXT","context","enterView","viewQuery","executeViewQueryFn","templateFn","executeTemplate","QUERIES","refreshContentQueries","components","renderChildComponents","FLAGS","leaveView","createAndRenderEmbeddedLView","declarationLView","templateTNode","options","prevConsumer","setActiveConsumer","embeddedTView","viewFlags","embeddedLView","createLView","declarationLContainer","DECLARATION_LCONTAINER","declarationViewLQueries","shouldAddViewToDom","tNode","dehydratedView","hasInSkipHydrationBlockFlag","addLViewToLContainer","lContainer","lView","index","addToDOM","tView","TVIEW","insertView","beforeNode","getBeforeNodeForView","renderer","RENDERER","parentRNode","nativeParentNode","NATIVE","addViewToDOM","T_HOST","hydrationInfo","HYDRATION","collectNativeNodes","tView","lView","tNode","result","isProjection","lNode","unwrapRNode","isLContainer","collectNativeNodesInLContainer","tNodeType","nextRNode","icuContainerIterate","rNode","nodesInSlot","getProjectionNodes","parentView","getLViewParent","DECLARATION_COMPONENT_VIEW","TVIEW","lContainer","i","CONTAINER_HEADER_OFFSET","lViewInAContainer","lViewFirstChildTNode","NATIVE","HOST","freeConsumers","getOrBorrowReactiveLViewConsumer","REACTIVE_TEMPLATE_CONSUMER","borrowReactiveLViewConsumer","consumer","REACTIVE_LVIEW_CONSUMER_NODE","maybeReturnReactiveLViewConsumer","__spreadProps","__spreadValues","REACTIVE_NODE","node","markAncestorsForTraversal","getOrCreateTemporaryConsumer","TEMPORARY_CONSUMER_NODE","parent","viewShouldHaveReactiveConsumer","markViewForRefresh","MAXIMUM_REFRESH_RERUNS$1","detectChangesInternal","notifyErrorHandler","mode","environment","ENVIRONMENT","rendererFactory","checkNoChangesMode","detectChangesInViewWhileDirty","error","handleError","lastIsRefreshingViewsValue","isRefreshingViews","setIsRefreshingViews","detectChangesInView","retries","requiresRefreshOrTraversal","RuntimeError","refreshView","tView","lView","templateFn","context","flags","FLAGS","isInCheckNoChangesPass","isInExhaustiveCheckNoChangesPass","ENVIRONMENT","enterView","returnConsumerToPool","prevConsumer","currentConsumer","viewShouldHaveReactiveConsumer","getOrBorrowReactiveLViewConsumer","consumerBeforeComputation","getActiveConsumer","getOrCreateTemporaryConsumer","REACTIVE_TEMPLATE_CONSUMER","consumerDestroy","resetPreOrderHookFlags","setBindingIndex","executeTemplate","hooksInitPhaseCompleted","preOrderCheckHooks","executeCheckHooks","preOrderHooks","executeInitAndCheckHooks","incrementInitPhaseFlags","markTransplantedViewsForRefresh","detectChangesInEmbeddedViews","refreshContentQueries","contentCheckHooks","contentHooks","processHostBindingOpCodes","components","detectChangesInChildComponents","viewQuery","executeViewQueryFn","viewCheckHooks","viewHooks","EFFECTS_TO_SCHEDULE","notifyEffect","e","markAncestorsForTraversal","consumerAfterComputation","maybeReturnReactiveLViewConsumer","leaveView","mode","lContainer","getFirstLContainer","getNextLContainer","CONTAINER_HEADER_OFFSET","embeddedLView","detectChangesInViewIfAttached","LContainerFlags","movedViews","MOVED_VIEWS","movedLView","markViewForRefresh","detectChangesInComponent","hostLView","componentHostIdx","componentView","getComponentLViewByIndex","viewAttachedToChangeDetector","detectChangesInView","TVIEW","consumer","shouldRefreshView","consumerPollProducersForChange","CONTEXT","markViewDirty","source","dirtyBitsToUse","isRefreshingViews","parent","getLViewParent","isRootView","ViewRef$1","collectNativeNodes","_lView","_cdRefInjectingView","notifyErrorHandler","value","PARENT","isLContainer","viewRefs","VIEW_REFS","index","detachView","removeFromArray","destroyLView","callback","storeLViewOnDestroy","updateAncestorTraversalFlagsOnAttach","detectChangesInternal","RuntimeError","isRoot","declarationContainer","DECLARATION_LCONTAINER","detachMovedView","detachViewFromDOM","appRef","trackMovedView","TemplateRef","injectTemplateRef","ViewEngineTemplateRef","R3TemplateRef","_declarationLView","_declarationTContainer","elementRef","injector","dehydratedView","createAndRenderEmbeddedLView","createTemplateRef","getCurrentTNode","getLView","hostTNode","createElementRef","REF_EXTRACTOR_REGEXP","REFERENCE_NODE_BODY","REFERENCE_NODE_HOST","_findMatchingDehydratedViewImpl","findMatchingDehydratedView","lContainer","template","_findMatchingDehydratedViewImpl","ChangeDetectionScheduler","ZONELESS_ENABLED","InjectionToken","ZONELESS_SCHEDULER_DISABLED","InjectionToken","SCHEDULE_IN_ROOT_ZONE","ComponentRef$1","ComponentFactory$1","noComponentFactoryError","component","error","stringify","ERROR_COMPONENT","_NullComponentFactoryResolver","component","noComponentFactoryError","ComponentFactoryResolver$1","RendererFactory2","Renderer2","injectRenderer2","lView","getLView","tNode","getCurrentTNode","nodeAtIndex","getComponentLViewByIndex","isLView","RENDERER","Sanitizer","ɵɵdefineInjectable","computeStaticStyling","tNode","attrs","writeToHost","styles","classes","mode","i","value","concatStringsWithSpace","style","styleValue","ComponentFactoryResolver","ComponentFactoryResolver$1","ngModule","component","componentDef","getComponentDef","ComponentFactory","toRefArray","map","isInputMap","array","publicName","isArray","propName","flags","InputFlags","getNamespace","elementName","name","SVG_NAMESPACE","MATH_ML_NAMESPACE","ComponentFactory$1","inputTransforms","refArray","input","stringifyCSSSelectorList","injector","projectableNodes","rootSelectorOrNode","environmentInjector","prevConsumer","setActiveConsumer","realEnvironmentInjector","EnvironmentInjector","rootViewInjector","ChainedInjector","rendererFactory","RendererFactory2","RuntimeError","sanitizer","Sanitizer","changeDetectionScheduler","ChangeDetectionScheduler","environment","hostRenderer","hostRNode","locateHostElement","createElementNode","rootFlags","hydrationInfo","retrieveHydrationInfo","rootTView","createTView","rootLView","createLView","enterView","tElementNode","componentView","rootComponentDef","rootDirectives","hostDirectiveDefs","hostTNode","createRootComponentTNode","createRootComponentView","getTNode","HEADER_OFFSET","setRootNodeAttributes","projectNodes","createRootComponent","LifecycleHooksFeature","renderView","e","unregisterLView","leaveView","ComponentRef","createElementRef","ComponentRef$1","componentType","instance","location","_rootLView","_tNode","ViewRef$1","inputData","dataValue","lView","setInputsForProperty","TVIEW","childComponentLView","getComponentLViewByIndex","markViewDirty","NodeInjector","callback","rNode","tView","index","getOrCreateTNode","rootView","applyRootComponentStyling","INJECTOR","viewRenderer","lViewFlags","getOrCreateComponentTView","markAsComponentHost","addToViewTree","def","mergeHostAttrs","setupStaticAttributes","hostFeatures","rootTNode","getCurrentTNode","native","getNativeByTNode","initializeDirectives","directiveIndex","directiveInstance","getNodeInjectable","attachPatchData","invokeDirectivesHostBindings","CONTEXT","feature","executeContentQueries","setUpAttributes","extractAttrsAndClassesFromSelector","writeDirectClass","ngContentSelectors","projection","nodesforSlot","registerPostOrderHooks","getLView","ViewContainerRef","injectViewContainerRef","previousTNode","createContainerRef","VE_ViewContainerRef","R3ViewContainerRef","_lContainer","_hostTNode","_hostLView","parentLocation","getParentInjectorLocation","hasParentInjector","parentView","getParentInjectorView","injectorIndex","getParentInjectorIndex","parentTNode","viewRefs","getViewRefs","CONTAINER_HEADER_OFFSET","templateRef","context","indexOrOptions","dehydratedView","findMatchingDehydratedView","viewRef","shouldAddViewToDom","componentFactoryOrType","isComponentFactory","isType","options","componentFactory","contextInjector","result","componentRef","addToDOM","viewAttachedToContainer","prevIdx","prevLContainer","PARENT","prevVCRef","T_HOST","adjustedIdx","lContainer","addLViewToLContainer","addToArray","getOrCreateViewRefs","newIndex","viewRefsArr","detachedView","detachView","removeFromArray","destroyLView","view","shift","VIEW_REFS","hostLView","slotValue","isLContainer","createLContainer","_locateOrCreateAnchorNode","insertAnchorNode","renderer","RENDERER","commentNode","hostNative","parentOfHostNative","nativeParentNode","nativeInsertBefore","nativeNextSibling","createAnchorNode","_populateDehydratedViewsInLContainer","populateDehydratedViewsInLContainer","NATIVE","unwrapRNode","LQuery_","_LQuery_","queryList","LQueries_","_LQueries_","queries","tView","tQueries","noOfInheritedQueries","viewLQueries","i","tQuery","parentLQuery","getTQuery","TQueryMetadata_","predicate","flags","read","splitQueryMultiSelectors","TQueries_","_TQueries_","tNode","queriesForTemplateRef","childQueryIndex","tqueryClone","index","tquery","TQuery_","_TQuery_","metadata","nodeIndex","declarationNodeIdx","parent","name","getIdxOfMatchingSelector","locateDirectiveOrProvider","TemplateRef","nodeMatchIdx","ElementRef","ViewContainerRef","directiveOrProviderIdx","tNodeIdx","matchIdx","selector","localNames","createResultByTNodeType","currentView","createElementRef","createTemplateRef","createResultForNode","lView","matchingIdx","createSpecialToken","getNodeInjectable","TVIEW","createContainerRef","materializeViewResults","queryIndex","lQuery","QUERIES","tViewData","tQueryMatches","result","matchedNodeIdx","collectQueryResults","lViewResults","declarationLContainer","CONTAINER_HEADER_OFFSET","embeddedLView","DECLARATION_LCONTAINER","PARENT","MOVED_VIEWS","embeddedLViews","loadQueryInternal","createLQuery","QueryList","storeCleanupWithContext","createViewQuery","getTView","createTQuery","getLView","createContentQuery","directiveIndex","getCurrentTNode","saveContentQueryAndDirectiveIndex","locator","s","tViewContentQueries","lastSavedDirectiveIndex","getQueryResults","markedFeatures","performanceMarkFeature","feature","isSignal","value","SIGNAL","signal","initialValue","options","performanceMarkFeature","signalFn","createSignal","node","SIGNAL","newValue","signalSetFn","updateFn","signalUpdateFn","signalAsReadonlyFn","readonlyFn","isWritableSignal","value","isSignal","getSuperType","type","ɵɵInheritDefinitionFeature","definition","superType","shouldInheritFields","inheritanceChain","superDef","isComponentDef","RuntimeError","writeableDef","maybeUnwrapEmpty","superHostBindings","inheritHostBindings","superViewQuery","superContentQueries","inheritViewQuery","inheritContentQueries","mergeInputsWithTransforms","fillProperties","defData","features","i","feature","mergeHostAttrsAcrossInheritance","target","source","key","value","minifiedName","hostVars","hostAttrs","def","mergeHostAttrs","EMPTY_OBJ","EMPTY_ARRAY","prevViewQuery","rf","ctx","prevContentQueries","directiveIndex","prevHostBindings","ɵɵInputTransformsFeature","definition","inputs","inputTransforms","minifiedKey","value","NgModuleRef$1","NgModuleFactory$1","NgModuleRef","NgModuleRef$1","ngModuleType","_parent","additionalProviders","runInjectorInitializers","ComponentFactoryResolver","ngModuleDef","getNgModuleDef","maybeUnwrapFn","createInjectorWithoutInjectorInstances","ComponentFactoryResolver$1","stringify","injector","fn","callback","NgModuleFactory","NgModuleFactory$1","moduleType","parentInjector","EnvironmentNgModuleRefAdapter","NgModuleRef$1","config","ComponentFactoryResolver","injector","R3Injector","ComponentFactoryResolver$1","getNullInjector","callback","createEnvironmentInjector","providers","parent","debugName","isListLikeIterable","obj","isJsObject","iterateListLike","obj","fn","i","iterator","item","isJsObject","o","updateBinding","lView","bindingIndex","value","getBinding","bindingUpdated","oldValue","bindingUpdated2","exp1","exp2","different","bindingUpdated3","exp3","bindingUpdated4","exp4","isDetachedByI18n","tNode","templateFirstCreatePass","index","tView","templateFn","decls","vars","tagName","attrs","localRefsIndex","tViewConsts","getOrCreateTNode","resolveDirectives","getConstant","registerPostOrderHooks","embeddedTView","createTView","declareTemplate","declarationLView","declarationTView","localRefExtractor","adjustedIndex","HEADER_OFFSET","setCurrentTNode","comment","_locateOrCreateContainerAnchor","wasLastNodeCreated","appendChild","attachPatchData","lContainer","createLContainer","addToViewTree","populateDehydratedViewsInLContainer","isDirectiveHost","createDirectivesInstances","saveResolvedLocalsInData","ɵɵtemplate","attrsIndex","getLView","getTView","createContainerAnchorImpl","lastNodeWasCreated","RENDERER","AfterRenderPhase","AfterRenderManager","ɵɵdefineInjectable","AfterRenderImpl","_AfterRenderImpl","inject","NgZone","ChangeDetectionScheduler","ErrorHandler","phase","sequence","err","AfterRenderSequence","impl","hooks","once","destroyRef","afterNextRender","callbackOrSpec","options","assertInInjectionContext","injector","inject","Injector","isPlatformBrowser","performanceMarkFeature","afterRenderImpl","NOOP_AFTER_RENDER_REF","getHooks","phase","hooks","once","manager","AfterRenderManager","AfterRenderImpl","AfterRenderPhase","destroyRef","DestroyRef","sequence","AfterRenderSequence","ɵɵattribute","name","value","sanitizer","namespace","lView","getLView","bindingIndex","nextBindingIndex","bindingUpdated","tView","getTView","tNode","getSelectedTNode","elementAttributeInternal","interpolation1","lView","prefix","v0","suffix","bindingUpdated","nextBindingIndex","renderStringify","NO_CHANGE","interpolation2","i0","v1","bindingIndex","getBindingIndex","different","bindingUpdated2","incrementBindingIndex","interpolation3","i1","v2","bindingUpdated3","interpolation4","i2","v3","bindingUpdated4","toTStylingRange","prev","next","getTStylingRangePrev","tStylingRange","getTStylingRangePrevDuplicate","setTStylingRangePrev","previous","setTStylingRangePrevDuplicate","getTStylingRangeNext","setTStylingRangeNext","getTStylingRangeNextDuplicate","setTStylingRangeNextDuplicate","insertTStylingBinding","tData","tNode","tStylingKeyWithStatic","index","isHostBinding","isClassBinding","tBindings","tmplHead","getTStylingRangePrev","tmplTail","getTStylingRangeNext","isKeyDuplicateOfStatic","tStylingKey","staticKeyValueArray","keyValueArrayIndexOf","previousNode","toTStylingRange","setTStylingRangeNext","setTStylingRangePrev","setTStylingRangePrevDuplicate","markDuplicates","markDuplicateOfResidualStyling","residual","setTStylingRangeNextDuplicate","isPrevDir","tStylingAtIndex","isMap","cursor","foundDuplicate","tStylingValueAtCursor","tStyleRangeAtCursor","isStylingMatch","tStylingKeyCursor","parserState","getLastParsedKey","text","getLastParsedValue","parseClassName","resetParserState","parseClassNameNext","consumeWhitespace","end","consumeClassToken","parseStyle","parseStyleNext","startIndex","consumeStyleKey","consumeSeparator","consumeStyleValue","endIndex","ch","separator","ch1","ch2","ch3","i","lastChIndex","consumeQuotedText","quoteCharCode","ɵɵproperty","propName","value","sanitizer","lView","getLView","bindingIndex","nextBindingIndex","bindingUpdated","tView","getTView","tNode","getSelectedTNode","elementPropertyInternal","RENDERER","setDirectiveInputsWhichShadowsStyling","isClassBased","inputs","property","setInputsForProperty","ɵɵstyleProp","prop","suffix","checkStylingProperty","ɵɵclassProp","className","ɵɵstyleMap","styles","checkStylingMap","styleKeyValueArraySet","styleStringParser","keyValueArray","text","i","parseStyle","parseStyleNext","getLastParsedKey","getLastParsedValue","ɵɵclassMap","classes","classKeyValueArraySet","classStringParser","parseClassName","parseClassNameNext","keyValueArraySet","incrementBindingIndex","stylingFirstUpdatePass","NO_CHANGE","getSelectedIndex","updateStyling","normalizeSuffix","stringParser","hasStylingInputShadow","isInHostBindings","staticPrefix","concatStringsWithSpace","updateStylingMap","toStylingKeyValueArray","tStylingKey","tData","isHostBindings","wrapInStaticStylingKey","insertTStylingBinding","stylingKey","hostDirectiveDef","getCurrentDirectiveDef","residual","collectStylingFromDirectives","collectStylingFromTAttrs","directiveStylingLast","templateStylingKey","getTemplateHeadTStylingKey","setTemplateHeadTStylingKey","collectResidual","bindings","getTStylingRangeNext","getTStylingRangePrev","directiveEnd","attrs","currentDirective","desiredMarker","currentMarker","item","EMPTY_ARRAY","styleKeyValueArray","unwrappedValue","unwrapSafeValue","key","stringKey","renderer","oldKeyValueArray","newKeyValueArray","oldIndex","newIndex","oldKey","newKey","oldValue","newValue","setKey","setValue","tRange","higherPriorityValue","getTStylingRangeNextDuplicate","findStylingValue","isStylingValuePresent","getTStylingRangePrevDuplicate","rNode","getNativeByIndex","applyStyling","index","isPrevDirection","rawKey","containsStatics","isStylingMap","valueAtLViewIndex","currentValue","keyValueArrayGet","stringify","ɵɵclassMapInterpolate1","prefix","v0","interpolatedValue","interpolation1","elementStartFirstCreatePass","index","tView","lView","name","attrsIndex","localRefsIndex","tViewConsts","attrs","getConstant","tNode","getOrCreateTNode","resolveDirectives","computeStaticStyling","ɵɵelementStart","getLView","getTView","adjustedIndex","HEADER_OFFSET","renderer","RENDERER","native","_locateOrCreateElementNode","hasDirectives","isDirectiveHost","setCurrentTNode","setupStaticAttributes","isDetachedByI18n","wasLastNodeCreated","appendChild","getElementDepthCount","attachPatchData","increaseElementDepthCount","createDirectivesInstances","executeContentQueries","saveResolvedLocalsInData","ɵɵelementEnd","currentTNode","getCurrentTNode","isCurrentTNodeParent","setCurrentTNodeAsNotParent","isSkipHydrationRootTNode","leaveSkipHydrationBlock","decreaseElementDepthCount","registerPostOrderHooks","isContentQueryHost","hasClassInput","setDirectiveInputsWhichShadowsStyling","hasStyleInput","ɵɵelement","lastNodeWasCreated","createElementNode","getNamespace$1","elementContainerStartFirstCreatePass","index","tView","lView","attrsIndex","localRefsIndex","tViewConsts","attrs","getConstant","tNode","getOrCreateTNode","computeStaticStyling","localRefs","resolveDirectives","ɵɵelementContainerStart","getLView","getTView","adjustedIndex","HEADER_OFFSET","setCurrentTNode","comment","_locateOrCreateElementContainerNode","wasLastNodeCreated","appendChild","attachPatchData","isDirectiveHost","createDirectivesInstances","executeContentQueries","saveResolvedLocalsInData","ɵɵelementContainerEnd","currentTNode","getCurrentTNode","isCurrentTNodeParent","setCurrentTNodeAsNotParent","registerPostOrderHooks","isContentQueryHost","_locateOrCreateElementContainerNode","tView","lView","tNode","index","lastNodeWasCreated","createCommentNode","RENDERER","ɵɵgetCurrentView","getLView","u","plural","val","n","i","v","localeEn","LOCALE_DATA","findLocaleData","locale","normalizedLocale","normalizeLocale","match","getLocaleData","parentLocale","localeEn","RuntimeError","getLocaleData","normalizedLocale","LOCALE_DATA","_global","LocaleDataIndex","normalizeLocale","locale","DEFAULT_LOCALE_ID","LOCALE_ID$1","DEFAULT_LOCALE_ID","setLocaleId","localeId","stashEventListener","el","eventName","listenerFn","ɵɵlistener","eventName","listenerFn","useCapture","eventTargetResolver","lView","getLView","tView","getTView","tNode","getCurrentTNode","listenerInternal","RENDERER","findExistingListener","tView","lView","eventName","tNodeIdx","tCleanup","i","cleanupEventName","lCleanup","CLEANUP","listenerIdxInLCleanup","listenerInternal","renderer","tNode","listenerFn","eventTargetResolver","isTNodeDirectiveHost","isDirectiveHost","getOrCreateTViewCleanup","context","CONTEXT","getOrCreateLViewCleanup","processOutputs","native","getNativeByTNode","target","lCleanupIndex","idxOrTargetGetter","_lView","unwrapRNode","existingListener","lastListenerFn","wrapListener","stashEventListener","cleanupFn","outputs","props","propsLength","index","minifiedName","subscription","idx","executeListenerWithErrorHandling","e","prevConsumer","setActiveConsumer","profiler","error","handleError","wrapListenerIn_markDirtyAndPreventDefault","startView","getComponentLViewByIndex","markViewDirty","result","nextListenerFn","ɵɵnextContext","level","nextContextImpl","matchingProjectionSlotIndex","tNode","projectionSlots","wildcardNgContentIndex","ngProjectAsAttrVal","getProjectAsAttrValue","i","slotValue","isNodeMatchingSelectorList","isSelectorInSelectorList","ɵɵprojectionDef","componentNode","getLView","DECLARATION_COMPONENT_VIEW","T_HOST","numProjectionSlots","projectionHeads","newArray","tails","componentChild","slotIndex","ɵɵprojection","nodeIndex","selectorIndex","attrs","fallbackTemplateFn","fallbackDecls","fallbackVars","lView","tView","getTView","fallbackIndex","declareTemplate","tProjectionNode","getOrCreateTNode","HEADER_OFFSET","setCurrentTNodeAsNotParent","isNodeCreationMode","HYDRATION","isInSkipHydrationBlock$1","insertFallbackContent","applyProjection","adjustedIndex","fallbackTNode","fallbackLContainer","dehydratedView","findMatchingDehydratedView","fallbackLView","createAndRenderEmbeddedLView","addLViewToLContainer","shouldAddViewToDom","ɵɵpropertyInterpolate","propName","v0","sanitizer","ɵɵpropertyInterpolate1","prefix","suffix","interpolatedValue","interpolation1","NO_CHANGE","getSelectedTNode","elementPropertyInternal","RENDERER","ɵɵpropertyInterpolate2","i0","v1","interpolation2","ɵɵcontentQuery","directiveIndex","predicate","flags","read","createContentQuery","ɵɵviewQuery","createViewQuery","ɵɵqueryRefresh","queryList","lView","getLView","tView","getTView","queryIndex","getCurrentQueryIndex","setCurrentQueryIndex","tQuery","getTQuery","isCreationMode","result","getQueryResults","unwrapElementRef","ɵɵloadQuery","loadQueryInternal","store","tView","lView","index","value","ɵɵreference","contextLView","getContextLView","load","HEADER_OFFSET","ɵɵtext","index","value","lView","getLView","tView","getTView","adjustedIndex","HEADER_OFFSET","tNode","getOrCreateTNode","textNative","_locateOrCreateTextNode","wasLastNodeCreated","appendChild","setCurrentTNode","lastNodeWasCreated","createTextNode","RENDERER","ɵɵtextInterpolate","v0","ɵɵtextInterpolate1","prefix","suffix","lView","getLView","interpolated","interpolation1","NO_CHANGE","textBindingInternal","getSelectedIndex","ɵɵtextInterpolate2","i0","v1","interpolation2","ɵɵtextInterpolate3","i1","v2","interpolation3","ɵɵtextInterpolate4","i2","v3","interpolation4","ɵɵtwoWayProperty","propName","value","sanitizer","isWritableSignal","lView","getLView","bindingIndex","nextBindingIndex","bindingUpdated","tView","getTView","tNode","getSelectedTNode","elementPropertyInternal","RENDERER","ɵɵtwoWayBindingSet","target","canWrite","ɵɵtwoWayListener","eventName","listenerFn","getCurrentTNode","listenerInternal","providersResolver","def","providers","viewProviders","tView","getTView","isComponent","isComponentDef","resolveProvider","provider","tInjectables","lInjectablesBlueprint","isViewProvider","resolveForwardRef","i","lView","getLView","tNode","getCurrentTNode","token","isTypeProvider","providerFactory","providerToFactory","beginIndex","endIndex","cptViewProvidersCount","factory","NodeInjectorFactory","ɵɵdirectiveInject","existingFactoryIndex","indexOf","diPublicInInjector","getOrCreateNodeInjectorForNode","registerDestroyHooksIfSupported","existingProvidersFactoryIndex","existingViewProvidersFactoryIndex","doesProvidersFactoryExist","doesViewProvidersFactoryExist","multiFactory","multiViewProvidersFactoryResolver","multiProvidersFactoryResolver","indexInFactory","multiFactoryAdd","contextIndex","providerIsTypeProvider","providerIsClassProvider","isClassProvider","ngOnDestroy","hooks","existingCallbacksIndex","isComponentProvider","item","arr","begin","end","_","tData","lData","multiResolve","factories","result","componentCount","multiProviders","getNodeInjectable","TVIEW","factoryFn","index","f","ɵɵProvidersFeature","definition","processProvidersFn","StandaloneService","_injector","componentDef","internalImportProvidersFrom","standaloneInjector","createEnvironmentInjector","injector","ɵɵdefineInjectable","ɵɵinject","EnvironmentInjector","ɵɵStandaloneFeature","performanceMarkFeature","parentInjector","ɵɵpureFunction0","slotOffset","pureFn","thisArg","bindingIndex","getBindingRoot","lView","getLView","NO_CHANGE","updateBinding","getBinding","ɵɵpureFunction1","exp","pureFunction1Internal","ɵɵpureFunction2","exp1","exp2","pureFunction2Internal","ɵɵpureFunction3","exp3","pureFunction3Internal","getPureFunctionReturnValue","lView","returnValueIndex","lastReturnValue","NO_CHANGE","pureFunction1Internal","bindingRoot","slotOffset","pureFn","exp","thisArg","bindingIndex","bindingUpdated","updateBinding","pureFunction2Internal","exp1","exp2","bindingUpdated2","pureFunction3Internal","exp3","bindingUpdated3","ɵɵpipe","index","pipeName","tView","getTView","pipeDef","adjustedIndex","HEADER_OFFSET","getPipeDef","pipeFactory","getFactoryDef","previousInjectorProfilerContext","previousInjectImplementation","setInjectImplementation","ɵɵdirectiveInject","previousIncludeViewProviders","setIncludeViewProviders","pipeInstance","store","getLView","name","registry","i","ɵɵpipeBind1","index","offset","v1","adjustedIndex","HEADER_OFFSET","lView","getLView","pipeInstance","load","isPure","pureFunction1Internal","getBindingRoot","ɵɵpipeBind2","slotOffset","v2","pureFunction2Internal","isPure","lView","index","TVIEW","ɵɵtemplateRefExtractor","tNode","createTemplateRef","Console","message","__ngFactoryType__","ɵɵdefineInjectable","TESTABILITY","InjectionToken","TESTABILITY_GETTER","Testability","_ngZone","registry","testabilityGetter","_testabilityGetter","setTestabilityGetter","NgZone","cb","pending","t","timeout","updateCb","timeoutId","doneCb","token","using","provider","exactMatch","__ngFactoryType__","ɵɵinject","TestabilityRegistry","ɵɵdefineInjectable","testability","elem","findInAncestors","getter","isPromise","obj","isSubscribable","APP_INITIALIZER","ApplicationInitStatus","res","rej","inject","asyncInitPromises","appInits","initResult","observableAsPromise","resolve","reject","complete","e","APP_BOOTSTRAP_LISTENER","publishSignalConfiguration","setThrowInvalidWriteToSignalError","RuntimeError","isBoundToModule","cf","MAXIMUM_REFRESH_RERUNS","_callAndReportToErrorHandler","errorHandler","ngZone","callback","result","isPromise","e","ApplicationRef","inject","INTERNAL_APPLICATION_ERROR_HANDLER","AfterRenderManager","ZONELESS_ENABLED","Subject","PendingTasks","map","pending","EnvironmentInjector","subscription","resolve","stable","componentOrFactory","rootSelectorOrNode","isComponentFactory","ComponentFactory$1","ApplicationInitStatus","standalone","isStandalone","errorMessage","RuntimeError","componentFactory","ComponentFactoryResolver$1","ngModule","isBoundToModule","NgModuleRef$1","selectorOrNode","compRef","Injector","nativeElement","testability","TESTABILITY","remove","prevConsumer","setActiveConsumer","e","rendererFactory","RendererFactory2","runs","MAXIMUM_REFRESH_RERUNS","useGlobalCheck","_lView","notifyErrorHandler","detectChangesInViewIfRequired","requiresRefreshOrTraversal","viewRef","view","componentRef","listeners","APP_BOOTSTRAP_LISTENER","listener","callback","injector","__ngFactoryType__","ɵɵdefineInjectable","list","el","index","detectChangesInViewIfRequired","lView","notifyErrorHandler","isFirstPass","zonelessEnabled","requiresRefreshOrTraversal","detectChangesInternal","ModuleWithComponentFactories","ngModuleFactory","componentFactories","Compiler","moduleType","NgModuleFactory","moduleDef","getNgModuleDef","maybeUnwrapFn","factories","declaration","componentDef","getComponentDef","ComponentFactory","type","__ngFactoryType__","ɵɵdefineInjectable","NgZoneChangeDetectionScheduler","inject","NgZone","ChangeDetectionScheduler","ApplicationRef","__ngFactoryType__","ɵɵdefineInjectable","internalProvideZoneChangeDetection","ngZoneFactory","ignoreChangesOutsideZone","scheduleInRootZone","NgZone","__spreadProps","__spreadValues","getNgZoneOptions","ENVIRONMENT_INITIALIZER","ngZoneChangeDetectionScheduler","inject","NgZoneChangeDetectionScheduler","service","ZoneStablePendingTask","ZONELESS_SCHEDULER_DISABLED","SCHEDULE_IN_ROOT_ZONE","SCHEDULE_IN_ROOT_ZONE_DEFAULT","getNgZoneOptions","options","ZoneStablePendingTask","Subscription","inject","NgZone","PendingTasks","task","__ngFactoryType__","ɵɵdefineInjectable","ChangeDetectionSchedulerImpl","inject","ApplicationRef","PendingTasks","NgZone","ZONELESS_ENABLED","ZONELESS_SCHEDULER_DISABLED","Subscription","angularZoneInstanceIdProperty","SCHEDULE_IN_ROOT_ZONE","NoopNgZone","source","scheduleCallback","scheduleCallbackWithMicrotask","scheduleCallbackWithRafRace","task","e","taskId","__ngFactoryType__","ɵɵdefineInjectable","getGlobalLocale","DEFAULT_LOCALE_ID","LOCALE_ID","InjectionToken","inject","InjectFlags","PLATFORM_DESTROY_LISTENERS","InjectionToken","isApplicationBootstrapConfig","config","bootstrap","envInjector","ngZone","NgZone","exceptionHandler","ErrorHandler","onErrorSubscription","error","destroyListener","onPlatformDestroyListeners","remove","_callAndReportToErrorHandler","initStatus","ApplicationInitStatus","localeId","LOCALE_ID","DEFAULT_LOCALE_ID","setLocaleId","appRef","ApplicationRef","moduleDoBootstrap","moduleRef","allPlatformModules","f","RuntimeError","_platformInjector","createPlatformInjector","providers","name","Injector","INJECTOR_SCOPE","PLATFORM_DESTROY_LISTENERS","_platformInjector","createOrReusePlatformInjector","providers","_platformInjector","injector","createPlatformInjector","publishSignalConfiguration","runPlatformInitializers","PLATFORM_INITIALIZER","init","ChangeDetectorRef","injectChangeDetectorRef","flags","createViewRef","getCurrentTNode","getLView","tNode","lView","isPipe","isComponentHost","componentView","getComponentLViewByIndex","ViewRef$1","hostComponentView","DECLARATION_COMPONENT_VIEW","DefaultIterableDifferFactory","obj","isListLikeIterable","trackByFn","DefaultIterableDiffer","trackByIdentity","index","item","fn","record","nextIt","nextRemove","addRemoveOffset","moveOffsets","getPreviousIndex","adjPreviousIndex","currentIndex","localMovePreviousIndex","localCurrentIndex","i","offset","previousIndex","collection","RuntimeError","mayBeDirty","itemTrackBy","iterateListLike","previousRecord","IterableChangeRecord_","reinsertRecord","nextRecord","prevRecord","prev","next","_DuplicateMap","toIndex","trackById","_DuplicateItemRecordList","atOrAfterIndex","key","duplicates","recordList","moveOffset","DefaultKeyValueDifferFactory","isJsObject","DefaultKeyValueDiffer","map","insertBefore","value","before","KeyValueChangeRecord_","newValue","k","defaultIterableDiffersFactory","IterableDiffers","ɵɵdefineInjectable","factories","parent","copied","SkipSelf","Optional","iterable","factory","f","defaultKeyValueDiffersFactory","KeyValueDiffers","DefaultKeyValueDifferFactory","ɵɵdefineInjectable","factories","parent","copied","SkipSelf","Optional","kv","factory","f","RuntimeError","ApplicationModule","appRef","__ngFactoryType__","ɵɵinject","ApplicationRef","ɵɵdefineNgModule","ɵɵdefineInjector","internalCreateApplication","config","rootComponent","appProviders","platformProviders","platformInjector","createOrReusePlatformInjector","allAppProviders","internalProvideZoneChangeDetection","ChangeDetectionScheduler","ChangeDetectionSchedulerImpl","adapter","EnvironmentNgModuleRefAdapter","bootstrap","e","booleanAttribute","value","computed","computation","options","performanceMarkFeature","getter","createComputed","SIGNAL","untracked","nonReactiveReadsFn","prevConsumer","setActiveConsumer","reflectComponentType","component","componentDef","getComponentDef","factory","ComponentFactory","instances","uid","isBlazorPlatform","createInstance","classFunction","params","arrayParam","setImmediate","handler","unbind","num","intCrypto","secret","combineArray","messageHandler","event","getValue","nameSpace","obj","value","splits","i","isUndefined","setValue","keys","start","fromObj","length","key","isNullOrUndefined","deleteObject","containerObject","isObject","objCon","getEnumValue","enumObject","enumValue","merge","source","destination","temrObj","tempProp","deepmerge","_i","keys_1","extend","copied","first","second","deep","result","args","_loop_1","obj1","src","copy","clone","isArrayChanged","blazorEventExtend","isBlazor","getUniqueID","definedName","uid","debounce","eventFunction","delay","out","_this","later","compareElementParent","child","parent","node","throwError","message","e","print","element","printWindow","div","links","blinks","l","len","reference","isNullOrUndefined","i","interval","formatUnit","value","result","isBlazor","isBlazorPlatform","getElement","element","xPath","isNullOrUndefined","getInstance","component","elem","instances","_i","_a","inst","uniqueID","num","intCrypto","combineArray","ret","i","defaultNumberingSystem","defaultNumberSymbols","latnNumberSystem","ParserBase","obj","cName","value","isBlazor","getValue","prop","keys","propKeys","res","_i","propKeys_1","key","props","regexStr","str","regExp","matchKeys","matchKeys_1","val","len","regex","curObj","numberSystem","needSymbols","blazorMode","cur","isUndefined","digits","isNumber","latnNumberSystem_1","blazorCurrencyData","getBlazorCurrencySymbol","currencyCode","HijriParser","dateCorrection","getHijriDate","gDate","day","month","year","tMonth","tYear","yPrefix","julilanOffset","julianNumber","b","c","d","tempMonth","modifiedJulianDate","iyear","z","cyc","j","iy","im","tempDay","iln","ii","hYear","hmonth","hDate","toGregorian","id","mcjdn","julianDate","a","e","gDay","gMonth","gYear","abbreviateRegexGlobal","standalone","weekdayKey","timeSetter","datePartMatcher","timeSeparator","DateFormat","culture","option","cldr","_this","dependable","IntlBase","numObject","dateObject","formatOptions","resPattern","throwError","extend","patternMatch","patternMatch_1","char","eText","options","pattern","matches","dObject","matches_1","match","length_1","curval","curvalstr","processNumber","curstr","curlength","desig","dec","retu","isNullOrUndefined","timezone","pattern_1","isIslamic","tVal","splt","curPattern","no","ishour","errorText","percentSign","minusSign","mapper","NumberFormat","fOptions","cOptions","dOptions","symbolPattern","defaultCurrencyCode","symbols","split","minFrac","mval","mfrac","lfrac","p","temp","s","val1","val2","checkbothExist","isFraction","decide","dint","str1","str2","text","range","curData","fValue","decimalPart","min","max","tn","length","level1","sep","decimalSymbol","level2","flag","prefix","lead","_a","integer","decimal","standalone$1","latnRegex","timeSetter$1","DateParser","numOptions","parseOptions","regexString","hourOnly","gmtCorrection","zCorrectTemp","isgmtTraversed","nRegx","numMapper","canUpdate","charKey","optional","weekData","weekObject","monthData","opt","periodValur","tval","tzone","hpattern","iString","parsedDateParts","dobj","tDate","ystrig","is2DigitYear","tKeys","y","century","tKeys_1","tValue","pDate","lDate","lastDay","hour","tzValue","retOptions","props_1","curObject","matchString","pos","tmatch","cultureOptions","hourFormat","tZone","nRegex","cRegex","splitStr","ival","parseRegex","groupRegex","NumberParser","numbers","symbolpattern","isNegative","isPercent","tempValue","end","exponent","decimalSplitValue","Observer","context","property","handler","cntxt","indexLocation","argument","successHandler","errorHandler","blazor","curObject_1","objs","index","isTrigger","obj_1","promise","data","dPattern","eventsArr","curContext","boundedEvents","boundedEvents_1","onIntlChange","rightToLeft","cldrData","defaultCulture","mapper$1","Internationalization","cultureName","isExcelFormat","isExcel","setCulture","loadCldr","data","_i","_a","data_1","obj","extend","cldrData","getNumericObject","locale","type","numObject","IntlBase","cldrData","mapper$1","dateObject","numSystem","getValue","symbPattern","isBlazor","pattern","extend","getDefaultDateObject","mode","IntlBase","cldrData","mapper$1","regExp$1","blazorCultureFormats","fractionRegex","mapper","patternRegex","patternMatch","defaultFirstDay","firstDayMapper","typeMapper","getResultantPattern","skeleton","dateObject","type","isIslamic","blazorCulture","resPattern","iType","compareBlazorDateFormats","getValue","dPattern","tPattern","isUndefined","getDependables","cldr","culture","isNumber","ret","calendartype","ParserBase","isBlazor","dateString","getSymbolPattern","numSystem","obj","isAccount","ConvertDateToWeekFormat","format","convertMapper","tempString","formatOptions","curFormatMapper","getProperNumericSkeleton","matches","pattern","getFormatData","needFraction","cSymbol","fractionOnly","nData","match","changeCurrencySymbol","fraction","fmatch","isNullOrUndefined","val","sym","getCurrencySymbol","numericObject","currencyCode","altSymbol","ignoreCurrency","symbol","getCurrency","customFormat","dOptions","options","formatSplit","data","i","customNumberFormat","extend","numObject","cOptions","integerPart","spaceCapture","spaceGrouping","fractionPart","isCurrencyPercent","symbolPattern","NumberFormat","parts","actual","part","loc","getDateSeparator","dateObj","value","getActualDateTimeFormat","isExcelFormat","dependable","actualPattern","tLength","timeZonePattern","options_1","timezone","DateFormat","processSymbol","option","split","getActualNumberFormat","isExcel","parseOptions","numrericObject","minFrac","curObj","curMatch","curCode","defaultCurrencyCode","defaultMinimum","fractionDigitsPattern","minimumIntegerPattern","groupingPattern","cPattern","minDigits","maxDigits","a","diff","b","digits","temp","integer","x","no","hash","getWeekData","firstDay","iCulture","replaceBlazorCurrency","pData","aCurrency","rCurrency","iCurrency","getBlazorCurrencySymbol","_i","pData_1","getWeekOfYear","date","newYear","day","weeknum","daynum","nYear","nday","headerRegex","defaultType","Ajax","async","contentType","merge","_this","eventArgs","promise","resolve","reject","reason","key","responseHeaders","headers","header","Fetch","isObject","contentTypes","response","responseType","_a","error","returnVal","callback","instance","REGX_MOBILE","REGX_IE","REGX_IE11","REGX_IOS","REGX_IOS7","REGX_ANDROID","REGX_WINDOWS","REGX_VERSION","REGX_BROWSER","Browser","browserInfo","keys","clientInfo","keys_1","version","event","events","regX","browserDetails","uA","EventHandler","element","eventName","listener","bindTo","intDebounce","eventData","debounceListener","debounce","_loop_1","j","index","copyData","parseValue","eventProp","eventData_1","event_1","SVG_REG","createElement","tagName","properties","attributes","addClass","elements","classes","classList","getClassList","regExp","ele","_b","classList_1","className","curClass","setValue","removeClass","flag","canRemove","classList_2","classes_1","classArr","isVisible","prepend","fromElements","toElement","isEval","docFrag","executeScript","append","eleArray","script","detach","parentNode","remove","iKey","select","selector","context","needsVDOM","querySelectId","selectAll","nodeList","charRegex","idList","list","splitId","setId","closest","el","setStyleAttribute","element","attrs","key","classList","addClasses","removeClasses","addClass","removeClass","matches","selector","isColEName","Base","options","element","Observer","isUndefined","isNullOrUndefined","prop","muteOnChange","prevDetection","merge","isBlazor","obj","parent","keys","_i","keys_1","key","_a","_b","obj_1","newChanges","oldChanges","extend","sfBlazor","newValue","oldValue","setImmediate","eventName","handler","eventProp","successHandler","errorHandler","_this","data","getValue","blazor","promise","moduleClass","addClass","setValue","i","proxyToRaw","removeClass","getComponent","elem","comp","instance","ele","compName","proxyToRaw","getObject","instance","curKey","defaultValue","type","createInstance","getObjectArray","isSetter","isFactory","result","len","i","curType","inst","propertyGetter","propertySetter","newValue","oldVal","complexGetter","complexSetter","complexArrayGetter","defaultValue","curKey","type","_this","defCollection","getObjectArray","ignore","extendFunc","descriptor","complexArrayDefinedCallback","complexArraySetter","newValue","oldValueCollection","newValCollection","complexArrayDefinedCallback","dFunc","curKey","type","prop","newValue","_i","keyString","i","newValueParse","model","getArrayModel","value","isControlParent","arrayFunction","modelObject","action","Property","defaultValue","target","key","propertyDescriptor","propertySetter","propertyGetter","addPropertyCollection","Complex","complexSetter","complexGetter","Collection","defaultValue","type","target","key","propertyDescriptor","complexArraySetter","complexArrayGetter","addPropertyCollection","Event$1","target","key","eventDescriptor","newValue","oldValue","finalContext","getParentContext","isUndefined","propertyGetter","addPropertyCollection","NotifyPropertyChanges","classConstructor","propertyType","defaultValue","type","getParentContext","context","prefix","curText","getValue","__extends","extendStatics","d","b","p","__","__decorate","decorators","target","key","desc","c","r","i","Animation","_super","options","_this","Animation_1","element","model","elements","selectAll","_i","elements_1","element_1","animationId","frameId","animationMode","GlobalAnimationMode","step","timerId","prevTimeStamp","duration","startAnimation","timeStamp","avg","e","newProp","oldProp","Property","Event$1","NotifyPropertyChanges","Base","rippleEffect","rippleOptions","done","rippleModel","getRippleModel","isRippleEnabled","EventHandler","rippleHandler","rippleUpHandler","rippleLeaveHandler","Browser","selector","closest","offset","offsetX","offsetY","pageX","pageY","radius","diameter","x","styles","rippleElement","createElement","removeRipple","eventArgs","rippleElements","animationMode","GlobalAnimationMode","MODULE_SUFFIX","ModuleLoader","parent","requiredModules","moduleList","reqLength","i","modl","_i","moduleList_1","module","modName","moduleObject","createInstance","memberName","setValue","loadedModule","_a","modules","getValue","_this","usedModules","arg","removableModule","removableModule_1","mod","deleteObject","name","ChildProperty","propName","defaultValue","isArray","Base","val","changeTime_1","clearUpdate","prop","muteOnChange","merge","curIndex","key","newValue","oldValue","restrictServerDataBind","value","isSaveChanges","action","isBlazor","parent_1","newChanges","parentKey","complexKeys","isFinal","actionProperty","index","valueLength","componentList","bypassKey","accountURL","LicenseValidator","licKey","set","get","npxLicKey","contentKey","URLKey","containerObject","convertToChar","validateMsg","validateURL","result","result_1","res","expDate","currDate","licenseContent","isNullOrUndefined","errorDiv","createElement","pkey","decryptedStr","resultArray","invalidPlatform","isNpxKey","licKeySplit","licKeySplit_1","lKey","decodeStr","k","buffr","charKey","decryptedKey","c","licenseValidator","cArr","ret","cArr_1","arr","registerLicense","validateLicense","createLicenseOverlay","bannerTemplate","accountURL","isNullOrUndefined","errorBackground","createElement","__extends$1","extendStatics","d","b","p","__","__decorate$1","decorators","target","key","desc","c","r","i","componentCount","lastPageID","lastHistoryLen","instancecount","isvalid","isBannerAdded","versionBasedStatePersistence","Component","_super","__extends$1","options","selector","_this","uniqueID","isNullOrUndefined","rightToLeft","defaultCulture","ModuleLoader","Observer","onIntlChange","validateLicense","componentList","instancecount","isvalid","isUndefined","removeClass","eleId","versionBasedStatePersistence","select","moduleClass","addClass","inst","getValue","ignoredComponents","component","modulesRequired","_i","_a","module","moduleName","componentName","isBannerAdded","createLicenseOverlay","wrapperElement","isBlazor","sfBlazor","event","handler","context","event_1","arg","event_2","property","argument","moduleList","i","tagName","prop","isVDOM","createElement","args","data","callback","templateName","index","definedName","componentCount","lastPageID","lastHistoryLen","url","hash","char","persistObj","options_1","key","objValue","setValue","value","obj","ChildProperty","ignoreList","newObj","_loop_1","newList","str","regExp","this_1","__decorate$1","Property","NotifyPropertyChanges","Base","__extends$2","extendStatics","d","b","p","__","__decorate$2","decorators","target","desc","c","r","defaultPosition","isDraggedObject","Position","Draggable","element","Draggable_1","Browser","extend","isUnWire","ele","EventHandler","evt","axis","scroll","client","isModalDialog","verticalScrollParent","horizontalScrollParent","curTarget","abortSelectors","closest","intCoord","pos","isChangeTouch","intCordinate","styleProp","intClosest","x","y","distance","dragTargetElement","styles","marginTop","posValue","setStyleAttribute","isVisible","el","rect","style","left","top","docHeight","docWidth","eleObj","flag","helperElement","tLeft","tTop","pagex","pagey","dLeft","dTop","helperWidth","helperHeight","iTop","iLeft","draEleTop","draEleLeft","isDialogEle","tempDraEleTop","dragValue","elements","scrollParent","node","reverse","nodeEl","hasScroll","nodeEle","docScrollTop","helperClientHeight","elementTop","elementLeft","temp","docBody","docEle","returnValue","type","newProp","oldProp","change","eleWidthBound","eleHeightBound","elementArea","keys","tborder","tpadding","lowerKey","prevStyle","isPointer","compareElementParent","oldEle","elem","isdragscroll","dragEle","pageX","pageY","isOffsetParent","isVerticalScroll","isHorrizontalScroll","reset","drag","helper","dropIns","parent_1","name","drop","eleInst","eleInst_1","Complex","Event$1","__extends$3","__decorate$3","Droppable","accept","isDrag","area","matches","isTouch","coord","__extends$4","__decorate$4","keyCode","KeyboardEvents","e","isAltKey","isCtrlKey","isShiftKey","curkeyCode","keys_1","configCollection","configCollection_1","rconfig","rKeyObj","KeyboardEvents_1","config","keyData","keyVal","L10n","controlName","localeStrings","locale","intLocale","localeObject","curObject","__extends$5","__decorate$5","SwipeSettings","swipeRegex","Touch","point","eScrollArgs","scrollArg","diffX","diffY","isFirefox","swipeArgs","tDistance","eSwipeArgs","canTrigger","scrollBool","moved","eleStyle","eTapArgs","pnt","newX","newY","newT","xDist","yDist","interval","LINES","QUOTES","IF_STMT","ELSEIF_STMT","ELSE_STMT","FOR_STMT","IF_OR_FOR","CALL_FUNCTION","NOT_NUMBER","WORD","DBL_QUOTED_STR","WORDIF","exp","ARR_OBJ","SINGLE_SLASH","DOUBLE_SLASH","WORDFUNC","WINDOWFUNC","compile","template","ignorePrefix","argName","evalExpResult","evalExp","condtion","fnCode","fn","nameSpace","varCOunt","localKeys","isClass","singleSpace","insideBraces","outputString","match","cnt","offset","matchStr","SPECIAL_CHAR","rlStr","addNameSpace","strs","HandleSpecialCharArrObj","rlStr_1","mtc","fnStr","fNameSpace","ftArray","splRegexp","arrObj","splArrRegexp","SlashReplace","NameSpaceForspecialChar","addNS","NameSpaceArrObj","arrObjReg","tempStr","double","nameSpaceNew","windowFunc","quotes","HAS_ROW","HAS_SVG","blazorTemplates","getRandomId","compile$1","templateString","compiler","engineObj","propName","templateId","isStringTemplate","root","result","blazorTemplateId","randomId","blazorId","updateBlazorTemplate","comp","isEmpty","callBack","ejsIntrop","resetBlazorTemplate","templateDiv","innerTemplates","tempId","tempElement","length_1","j","setTemplateEngine","classObj","getTemplateEngine","initializeCSPTemplate","boundFunc","Engine","removeTags","removeAttrs","jsEvents","SanitizeHtmlHelper","item","output","tempEleValue","nodes","attribute","detach","attr","package_default","environment","production","version","packageInfo","apiServerUrl","syncfusionKey","mapbox","accessToken","apiClientId","localStorageToken","localStorageRefreshToken","localStorageUserInfo","localStorageIsSidebarPinned","supportedLanguages","alarmReloadInterval","idleTimeoutInSeconds","localStorageActivityTimestamp","allowBrowserTranslation","envInfoClass","_DOM","getDOM","setRootDomAdapter","adapter","DomAdapter","DOCUMENT","InjectionToken","PlatformLocation","relativePosition","__ngFactoryType__","ɵɵdefineInjectable","inject","BrowserPlatformLocation","LOCATION_INITIALIZED","getDOM","fn","window","newPath","state","title","url","joinWithSlash","start","end","slashes","stripTrailingSlash","match","pathEndIdx","droppedSlashIdx","normalizeQueryParams","params","LocationStrategy","PathLocationStrategy","APP_BASE_HREF","_platformLocation","href","internal","includeHash","pathname","hash","queryParams","externalUrl","ɵɵinject","HashLocationStrategy","_baseHref","path","Location","locationStrategy","EventEmitter","baseHref","_stripOrigin","_stripIndexHtml","ev","query","_stripBasePath","v","fnIndex","onNext","onThrow","onReturn","createLocation","basePath","strippedUrl","NumberFormatStyle","FormStyle","TranslationWidth","FormatWidth","NumberSymbol","getLocaleId","locale","findLocaleData","LocaleDataIndex","getLocaleDayPeriods","formStyle","width","data","amPmData","amPm","getLastDefinedValue","getLocaleDayNames","daysData","days","getLocaleMonthNames","monthsData","months","getLocaleEraNames","erasData","getLocaleDateFormat","locale","width","data","findLocaleData","getLastDefinedValue","LocaleDataIndex","getLocaleTimeFormat","getLocaleDateTimeFormat","dateTimeFormatData","getLocaleNumberSymbol","symbol","res","NumberSymbol","getLocaleNumberFormat","type","checkFullData","data","LocaleDataIndex","getLocaleExtraDayPeriodRules","locale","findLocaleData","rule","extractTime","getLocaleExtraDayPeriods","formStyle","width","dayPeriodsData","dayPeriods","getLastDefinedValue","getLastDefinedValue","data","index","i","extractTime","time","h","m","ISO8601_DATE_REGEX","NAMED_FORMATS","DATE_FORMATS_SPLIT","ZoneWidth","DateType","TranslationType","formatDate","value","format","locale","timezone","date","toDate","getNamedFormat","parts","match","part","dateTimezoneOffset","timezoneToOffset","convertTimezoneToLocal","text","dateFormatter","getDateFormatter","createDate","year","month","newDate","localeId","getLocaleId","formatValue","getLocaleDateFormat","FormatWidth","getLocaleTimeFormat","shortTime","shortDate","formatDateTime","getLocaleDateTimeFormat","mediumTime","mediumDate","longTime","longDate","fullTime","fullDate","str","opt_values","key","padNumber","num","digits","minusSign","trim","negWrap","neg","strNum","formatFractionalSeconds","milliseconds","dateGetter","name","size","offset","getDatePart","localeMinus","getLocaleNumberSymbol","NumberSymbol","dateStrGetter","width","form","FormStyle","extended","getDateTranslation","getLocaleMonthNames","getLocaleDayNames","currentHours","currentMinutes","rules","getLocaleExtraDayPeriodRules","dayPeriods","getLocaleExtraDayPeriods","index","rule","from","to","afterFrom","beforeTo","getLocaleDayPeriods","getLocaleEraNames","unexpected","timeZoneGetter","zone","hours","JANUARY","THURSDAY","getFirstThursdayOfYear","firstDayOfYear","getThursdayThisIsoWeek","datetime","currentDay","deltaToThursday","weekGetter","monthBased","result","nbDaysBefore1stDayOfMonth","today","thisThurs","firstThurs","diff","weekNumberingYearGetter","weekNumberingYear","DATE_FORMATS","formatter","TranslationWidth","fallback","requestedTimezoneOffset","addDateMinutes","minutes","reverse","reverseValue","timezoneOffset","isDate","y","m","d","val","parsedNb","isoStringToDate","tzHour","tzMin","dateSetter","timeSetter","h","s","ms","NUMBER_FORMAT_REGEXP","MAX_DIGITS","DECIMAL_SEP","ZERO_CHAR","PATTERN_SEP","GROUP_SEP","DIGIT_CHAR","formatNumberToLocaleString","value","pattern","locale","groupSymbol","decimalSymbol","digitsInfo","isPercent","formattedText","isZero","getLocaleNumberSymbol","NumberSymbol","parsedNumber","parseNumber","toPercent","minInt","minFraction","maxFraction","parts","NUMBER_FORMAT_REGEXP","minIntPart","minFractionPart","maxFractionPart","parseIntAutoRadix","roundNumber","digits","integerLen","exponent","decimals","d","groups","formatNumber","value","locale","digitsInfo","format","getLocaleNumberFormat","NumberFormatStyle","pattern","parseNumberFormat","getLocaleNumberSymbol","NumberSymbol","formatNumberToLocaleString","minusSign","p","patternParts","PATTERN_SEP","positive","negative","positiveParts","DECIMAL_SEP","ZERO_CHAR","integer","fraction","DIGIT_CHAR","i","ch","groups","GROUP_SEP","trunkLen","pos","toPercent","parsedNumber","fractionLen","parseNumber","num","numStr","exponent","digits","integerLen","j","zeros","MAX_DIGITS","roundNumber","minFrac","maxFrac","fractionSize","roundAt","digit","k","dropTrailingZeros","minLen","carry","d","parseIntAutoRadix","text","result","parseCookieValue","cookieStr","name","cookie","eqIndex","cookieName","cookieValue","WS_REGEXP","EMPTY_ARRAY","NgClass","_ngEl","_renderer","value","klass","rawClass","nextEnabled","state","stateEntry","enabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ɵɵdefineDirective","NgForOfContext","$implicit","ngForOf","index","count","NgForOf","fn","_viewContainer","_template","_differs","value","changes","viewContainer","item","adjustedPreviousIndex","currentIndex","view","applyViewChange","i","ilen","context","record","viewRef","dir","ctx","__ngFactoryType__","ɵɵdirectiveInject","ViewContainerRef","TemplateRef","IterableDiffers","ɵɵdefineDirective","NgIf","_viewContainer","templateRef","NgIfContext","condition","assertTemplate","dir","ctx","__ngFactoryType__","ɵɵdirectiveInject","ViewContainerRef","TemplateRef","ɵɵdefineDirective","property","stringify","SwitchView","_viewContainerRef","_templateRef","created","NgSwitch","newValue","view","value","matched","useDefault","defaultView","NgSwitchCase","viewContainer","ngSwitch","NgSwitchDefault","NgStyle","_ngEl","_differs","_renderer","values","changes","nameAndUnit","value","name","unit","flags","RendererStyleFlags2","record","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","KeyValueDiffers","Renderer2","ɵɵdefineDirective","NgTemplateOutlet","_viewContainerRef","viewContainerRef","viewContext","_target","prop","newValue","receiver","ViewContainerRef","ɵɵNgOnChangesFeature","invalidPipeArgumentError","type","value","RuntimeError","SubscribableStrategy","async","updateLatestValue","untracked","e","subscription","PromiseStrategy","_promiseStrategy","_subscribableStrategy","AsyncPipe","ref","obj","isPromise","isSubscribable","__ngFactoryType__","ɵɵdirectiveInject","ChangeDetectorRef","ɵɵdefinePipe","DEFAULT_DATE_FORMAT","DATE_PIPE_DEFAULT_TIMEZONE","InjectionToken","DATE_PIPE_DEFAULT_OPTIONS","DatePipe","locale","defaultTimezone","defaultOptions","value","format","timezone","_format","_timezone","formatDate","error","invalidPipeArgumentError","__ngFactoryType__","ɵɵdirectiveInject","LOCALE_ID","ɵɵdefinePipe","DecimalPipe","_locale","value","digitsInfo","locale","isValue","num","strToNumber","formatNumber","error","invalidPipeArgumentError","__ngFactoryType__","ɵɵdirectiveInject","LOCALE_ID","ɵɵdefinePipe","isValue","value","strToNumber","CommonModule","__ngFactoryType__","ɵɵdefineNgModule","ɵɵdefineInjector","PLATFORM_BROWSER_ID","PLATFORM_SERVER_ID","isPlatformBrowser","platformId","isPlatformServer","ViewportScroller","ɵɵdefineInjectable","isPlatformBrowser","inject","PLATFORM_ID","BrowserViewportScroller","DOCUMENT","NullViewportScroller","document","window","offset","position","target","elSelected","findAnchorFromDocument","scrollRestoration","el","rect","left","top","documentResult","treeWalker","currentNode","shadowRoot","result","anchor","XhrFactory","HttpHandler","HttpBackend","HttpHeaders","_HttpHeaders","headers","line","index","name","key","value","values","lcName","update","other","clone","base","toDelete","existing","headerValues","fn","HttpUrlEncodingCodec","key","standardEncoding","value","paramParser","rawParams","codec","map","param","eqIdx","val","list","STANDARD_ENCODING_REGEX","STANDARD_ENCODING_REPLACEMENTS","v","s","t","valueToString","HttpParams","_HttpParams","options","values","res","params","updates","_value","eKey","update","clone","base","idx","HttpContext","token","value","mightHaveBody","method","isArrayBuffer","isBlob","isFormData","isUrlSearchParams","HttpRequest","_HttpRequest","url","third","fourth","options","HttpHeaders","HttpParams","params","qIdx","sep","update","responseType","transferCache","body","withCredentials","reportProgress","headers","context","name","param","HttpEventType","HttpResponseBase","init","defaultStatus","defaultStatusText","HttpHeaderResponse","_HttpHeaderResponse","HttpResponse","_HttpResponse","HttpErrorResponse","HTTP_STATUS_CODE_OK","HTTP_STATUS_CODE_NO_CONTENT","addBody","options","body","HttpClient","handler","first","url","req","HttpRequest","headers","HttpHeaders","params","HttpParams","events$","of","concatMap","res$","filter","event","HttpResponse","map","res","callbackParam","__ngFactoryType__","ɵɵinject","HttpHandler","ɵɵdefineInjectable","XSSI_PREFIX$1","REQUEST_URL_HEADER","getResponseUrl$1","response","xRequestUrl","FetchBackend","inject","FetchFactory","args","NgZone","request","Observable","observer","aborter","noop","error","HttpErrorResponse","signal","__async","init","fetchPromise","__spreadValues","silenceSuperfluousUnhandledPromiseRejection","HttpEventType","statusText","status","HttpHeaderResponse","contentLength","chunks","reader","receivedLength","decoder","partialText","reqZone","done","value","reportProgress","chunksAll","contentType","HTTP_STATUS_CODE_OK","binContent","text","credentials","name","values","detectedType","totalLength","position","chunk","promise","interceptorChainEndFn","finalHandlerFn","adaptLegacyInterceptorToChain","chainTailFn","interceptor","initialRequest","downstreamRequest","chainedInterceptorFn","interceptorFn","injector","runInInjectionContext","HTTP_INTERCEPTORS","InjectionToken","HTTP_INTERCEPTOR_FNS","HTTP_ROOT_INTERCEPTOR_FNS","REQUESTS_CONTRIBUTE_TO_STABILITY","legacyInterceptorFnFactory","chain","pendingTasks","PendingTasks","taskId","finalize","HttpInterceptorHandler","HttpHandler","backend","injector","inject","PendingTasks","REQUESTS_CONTRIBUTE_TO_STABILITY","initialRequest","dedupedInterceptorFns","HTTP_INTERCEPTOR_FNS","HTTP_ROOT_INTERCEPTOR_FNS","nextSequencedFn","interceptorFn","chainedInterceptorFn","interceptorChainEndFn","taskId","downstreamRequest","finalize","__ngFactoryType__","ɵɵinject","HttpBackend","EnvironmentInjector","ɵɵdefineInjectable","XSSI_PREFIX","getResponseUrl","xhr","HttpXhrBackend","xhrFactory","req","RuntimeError","from","of","switchMap","Observable","observer","name","values","detectedType","responseType","reqBody","headerResponse","partialFromXhr","statusText","headers","HttpHeaders","url","HttpHeaderResponse","onLoad","status","body","HTTP_STATUS_CODE_NO_CONTENT","HTTP_STATUS_CODE_OK","ok","originalBody","error","HttpResponse","HttpErrorResponse","onError","res","sentHeaders","onDownProgress","event","progressEvent","HttpEventType","onUpProgress","progress","__ngFactoryType__","ɵɵinject","XhrFactory","ɵɵdefineInjectable","XSRF_ENABLED","InjectionToken","XSRF_DEFAULT_COOKIE_NAME","XSRF_COOKIE_NAME","XSRF_DEFAULT_HEADER_NAME","XSRF_HEADER_NAME","HttpXsrfTokenExtractor","HttpXsrfCookieExtractor","doc","platform","cookieName","cookieString","parseCookieValue","DOCUMENT","PLATFORM_ID","xsrfInterceptorFn","next","lcUrl","inject","token","headerName","HttpFeatureKind","makeHttpFeature","kind","providers","provideHttpClient","features","HttpClient","HttpXhrBackend","HttpInterceptorHandler","HttpHandler","HttpBackend","inject","FetchBackend","HTTP_INTERCEPTOR_FNS","xsrfInterceptorFn","XSRF_ENABLED","HttpXsrfTokenExtractor","HttpXsrfCookieExtractor","feature","makeEnvironmentProviders","LEGACY_INTERCEPTOR_FN","InjectionToken","withInterceptorsFromDi","makeHttpFeature","HttpFeatureKind","legacyInterceptorFnFactory","HTTP_INTERCEPTOR_FNS","HttpClientModule","__ngFactoryType__","ɵɵdefineNgModule","ɵɵdefineInjector","provideHttpClient","withInterceptorsFromDi","GenericBrowserDomAdapter","DomAdapter","BrowserDomAdapter","_BrowserDomAdapter","setRootDomAdapter","el","evt","listener","node","tagName","doc","target","href","getBaseElementHref","relativePath","baseElement","name","parseCookieValue","url","BrowserGetTestability","registry","_global","elem","findInAncestors","testability","RuntimeError","whenAllStable","callback","testabilities","count","decrement","t","getDOM","BrowserXhr","__ngFactoryType__","ɵɵdefineInjectable","EVENT_MANAGER_PLUGINS","InjectionToken","EventManager","plugins","_zone","plugin","element","eventName","handler","ɵɵinject","NgZone","EventManagerPlugin","_doc","APP_ID_ATTRIBUTE_NAME","SharedStylesHost","appId","nonce","platformId","isPlatformServer","styles","style","styleNodesInDOM","hostNode","host","styleRef","styleMap","delta","map","styleRefValue","styleEl","styleElRef","hostNodes","DOCUMENT","APP_ID","CSP_NONCE","PLATFORM_ID","NAMESPACE_URIS","COMPONENT_REGEX","COMPONENT_VARIABLE","HOST_ATTR","CONTENT_ATTR","REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT","REMOVE_STYLES_ON_COMPONENT_DESTROY","shimContentAttribute","componentShortId","shimHostAttribute","shimStylesContent","compId","s","DomRendererFactory2","eventManager","sharedStylesHost","removeStylesOnCompDestroy","ngZone","DefaultDomRenderer2","type","ViewEncapsulation$1","__spreadProps","__spreadValues","renderer","EmulatedEncapsulationDomRenderer2","NoneEncapsulationDomRenderer","rendererByCompId","platformIsServer","ShadowDomRenderer","namespace","value","parent","newChild","isTemplateNode","refChild","_parent","oldChild","selectorOrNode","preserveContent","namespaceUri","flags","RendererStyleFlags2","event","eventHandler","isTemplateNode","node","ShadowDomRenderer","DefaultDomRenderer2","eventManager","sharedStylesHost","hostEl","component","doc","ngZone","nonce","platformIsServer","styles","shimStylesContent","style","styleEl","parent","newChild","refChild","_parent","oldChild","NoneEncapsulationDomRenderer","removeStylesOnCompDestroy","compId","EmulatedEncapsulationDomRenderer2","appId","shimContentAttribute","shimHostAttribute","element","name","el","DomEventsPlugin","EventManagerPlugin","eventName","handler","target","callback","__ngFactoryType__","ɵɵinject","DOCUMENT","ɵɵdefineInjectable","MODIFIER_KEYS","_keyMap","MODIFIER_KEY_GETTERS","event","KeyEventsPlugin","parsedEvent","outsideHandler","getDOM","parts","domEventName","key","fullKey","codeIX","modifierName","index","result","fullKeyCode","keycode","modifierGetter","zone","keyName","bootstrapApplication","rootComponent","options","internalCreateApplication","__spreadValues","createProvidersConfig","createProvidersConfig","options","BROWSER_MODULE_PROVIDERS","INTERNAL_BROWSER_PLATFORM_PROVIDERS","initDomAdapter","BrowserDomAdapter","errorHandler","ErrorHandler","_document","setDocument","INTERNAL_BROWSER_PLATFORM_PROVIDERS","PLATFORM_ID","PLATFORM_BROWSER_ID","PLATFORM_INITIALIZER","DOCUMENT","BROWSER_MODULE_PROVIDERS_MARKER","InjectionToken","TESTABILITY_PROVIDERS","TESTABILITY_GETTER","BrowserGetTestability","TESTABILITY","Testability","NgZone","TestabilityRegistry","BROWSER_MODULE_PROVIDERS","INJECTOR_SCOPE","ErrorHandler","errorHandler","EVENT_MANAGER_PLUGINS","DomEventsPlugin","DOCUMENT","PLATFORM_ID","KeyEventsPlugin","DomRendererFactory2","SharedStylesHost","EventManager","RendererFactory2","XhrFactory","BrowserXhr","BrowserModule","providersAlreadyPresent","params","APP_ID","__ngFactoryType__","ɵɵinject","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","ApplicationModule","Title","_doc","newTitle","__ngFactoryType__","ɵɵinject","DOCUMENT","ɵɵdefineInjectable","DomSanitizer","__ngFactoryType__","ɵɵdefineInjectable","__ngConditionalFactory__","ɵɵinject","DomSanitizerImpl","_doc","ctx","value","SecurityContext","allowSanitizationBypassAndThrow","unwrapSafeValue","_sanitizeHtml","RuntimeError","_sanitizeUrl","bypassSanitizationTrustHtml","bypassSanitizationTrustStyle","bypassSanitizationTrustScript","bypassSanitizationTrustUrl","bypassSanitizationTrustResourceUrl","DOCUMENT","PRIMARY_OUTLET","RouteTitleKey","ParamsAsMap","params","name","v","convertToParamMap","defaultUrlMatcher","segments","segmentGroup","route","parts","posParams","index","part","segment","shallowEqualArrays","a","b","i","shallowEqual","k1","getDataKeys","k2","key","equalArraysOrString","obj","aSorted","bSorted","val","last","wrapIntoObservable","value","isObservable","isPromise","from","of","pathCompareMap","equalSegmentGroups","containsSegmentGroup","paramCompareMap","equalParams","containsParams","containsTree","container","containee","options","matrixParams","equalPath","matrixParamsMatch","c","containsSegmentGroupHelper","containeePaths","current","next","containerPaths","containeeSegment","UrlTree","root","UrlSegmentGroup","queryParams","fragment","DEFAULT_SERIALIZER","children","serializePaths","UrlSegment","path","parameters","serializePath","equalSegments","as","bs","mapChildrenIntoArray","fn","res","childOutlet","child","UrlSerializer","__ngFactoryType__","ɵɵdefineInjectable","DefaultUrlSerializer","url","p","UrlParser","tree","serializeSegment","query","serializeQueryParams","encodeUriFragment","primary","k","encodeUriString","s","encodeUriQuery","encodeUriSegment","decode","decodeQuery","serializeMatrixParams","strParams","SEGMENT_RE","matchSegments","str","match","MATRIX_PARAM_SEGMENT_RE","matchMatrixKeySegments","QUERY_PARAM_RE","matchQueryParams","QUERY_PARAM_VALUE_RE","matchUrlQueryParamValue","RuntimeError","valueMatch","decodedKey","decodedVal","currentVal","allowPrimary","outletName","createRoot","rootCandidate","squashSegmentGroup","newChildren","childCandidate","grandChildOutlet","grandChild","mergeTrivialChildren","isUrlTree","createUrlTreeFromSnapshot","relativeTo","commands","relativeToUrlSegmentGroup","createSegmentGroupFromRoute","createUrlTreeFromSegmentGroup","targetGroup","createSegmentGroupFromRouteRecursive","currentRoute","childOutlets","childSnapshot","rootSegmentGroup","nav","computeNavigation","position","findStartingPositionForTargetGroup","newSegmentGroup","updateSegmentGroupChildren","updateSegmentGroup","isMatrixParams","command","isCommandWithOutlets","oldRoot","oldSegmentGroup","qp","replaceSegment","newRoot","oldSegment","newSegment","Navigation","isAbsolute","numberOfDoubleDots","cmdWithOutlet","cmd","cmdIdx","outlets","urlPart","partIndex","Position","processChildren","target","modifier","createPositionApplyingDoubleDots","group","g","ci","dd","getOutlets","startIndex","m","prefixedWith","slicedCommands","createNewSegmentGroup","o","childrenOfEmptyChild","outlet","currentCommandIndex","currentPathIndex","noMatch","curr","compare","paths","createNewSegmentChildren","stringify","IMPERATIVE_NAVIGATION","EventType","RouterEvent","id","NavigationStart","navigationTrigger","restoredState","NavigationEnd","urlAfterRedirects","NavigationCancellationCode","NavigationSkippedCode","NavigationCancel","reason","code","NavigationSkipped","NavigationError","error","RoutesRecognized","state","GuardsCheckStart","GuardsCheckEnd","shouldActivate","ResolveStart","ResolveEnd","RouteConfigLoadStart","RouteConfigLoadEnd","ChildActivationStart","snapshot","ChildActivationEnd","ActivationStart","ActivationEnd","Scroll","routerEvent","anchor","pos","BeforeActivateRoutes","RedirectRequest","navigationBehaviorOptions","getOrCreateRouteInjectorIfNeeded","route","currentInjector","createEnvironmentInjector","getOutlet","route","PRIMARY_OUTLET","sortByMatchingOutlets","routes","outletName","sortedConfig","r","getClosestRouteInjector","snapshot","s","OutletContext","_","rootInjector","ChildrenOutletContexts","childName","outlet","context","contexts","__ngFactoryType__","ɵɵinject","EnvironmentInjector","ɵɵdefineInjectable","Tree","root","p","n","findNode","t","findPath","c","cc","value","node","child","path","TreeNode","children","nodeChildrenAsMap","map","RouterState","setRouterState","createEmptyState","rootComponent","createEmptyStateSnapshot","emptyUrl","BehaviorSubject","UrlSegment","emptyParams","emptyData","emptyQueryParams","fragment","activated","ActivatedRoute","ActivatedRouteSnapshot","RouterStateSnapshot","urlSubject","paramsSubject","queryParamsSubject","fragmentSubject","dataSubject","component","futureSnapshot","d","RouteTitleKey","of","convertToParamMap","getInherited","parent","paramsInheritanceStrategy","inherited","routeConfig","__spreadValues","hasStaticTitle","url","params","queryParams","data","resolve","segment","matched","serializeNode","state","advanceActivatedRoute","currentSnapshot","nextSnapshot","shallowEqual","shallowEqualArrays","equalParamsAndUrlSegments","a","b","equalUrlParams","equalSegments","parentsMismatch","config","RouterOutlet","EventEmitter","inject","ViewContainerRef","ChangeDetectorRef","INPUT_BINDER","changes","firstChange","previousValue","RuntimeError","cmp","ref","activatedRoute","environmentInjector","location","childContexts","injector","OutletInjector","ɵɵdefineDirective","ɵɵNgOnChangesFeature","_OutletInjector","parentInjector","token","notFoundValue","InjectionToken","RoutedComponentInputBinder","dataSubscription","combineLatest","switchMap","index","mirror","reflectComponentType","templateName","createRouterState","routeReuseStrategy","curr","prevState","createNode","createOrReuseChildren","detachedRouteHandle","tree","createActivatedRoute","RedirectCommand","redirectTo","navigationBehaviorOptions","NAVIGATION_CANCELING_ERROR","redirectingNavigationError","urlSerializer","redirect","isUrlTree","error","navigationCancelingError","NavigationCancellationCode","message","code","isRedirectingNavigationCancelingError","isNavigationCancelingError","activateRoutes","rootContexts","routeReuseStrategy","forwardEvent","inputBindingEnabled","map","t","ActivateRoutes","futureState","currState","parentContexts","futureRoot","currRoot","advanceActivatedRoute","futureNode","currNode","contexts","children","nodeChildrenAsMap","futureChild","childOutletName","v","parentContext","future","curr","context","route","treeNode","componentRef","c","ActivationEnd","ChildActivationEnd","stored","CanActivate","path","CanDeactivate","component","getAllRouteGuards","getChildRouteGuards","getCanActivateChild","p","canActivateChild","getTokenOrFunctionIdentity","tokenOrFunction","injector","NOT_FOUND","result","isInjectable","futurePath","checks","prevChildren","getRouteGuards","k","deactivateRouteAndItsChildren","shouldRun","shouldRunGuardsAndResolvers","mode","equalPath","shallowEqual","equalParamsAndUrlSegments","r","childName","node","isFunction","isBoolean","isCanLoad","guard","isCanActivate","isCanActivateChild","isCanDeactivate","isCanMatch","isEmptyError","e","EmptyError","INITIAL_VALUE","prioritizedGuardValue","switchMap","obs","combineLatest","o","take","startWith","results","isRedirect","filter","item","val","isUrlTree","RedirectCommand","checkGuards","mergeMap","targetSnapshot","currentSnapshot","canActivateChecks","canDeactivateChecks","of","__spreadProps","__spreadValues","runCanDeactivateChecks","canDeactivate","runCanActivateChecks","guardsResult","futureRSS","currRSS","from","check","runCanDeactivate","first","futureSnapshot","concatMap","concat","fireChildActivationStart","fireActivationStart","runCanActivateChild","runCanActivate","snapshot","ActivationStart","ChildActivationStart","futureARS","canActivate","canActivateObservables","defer","closestInjector","getClosestRouteInjector","guardVal","runInInjectionContext","wrapIntoObservable","canActivateChildGuardsMapped","_","d","guardsMapped","currARS","canDeactivateObservables","runCanLoadGuards","segments","urlSerializer","canLoad","canLoadObservables","injectionToken","redirectIfUrlTree","pipe","tap","redirectingNavigationError","runCanMatchGuards","canMatch","canMatchObservables","NoMatch","segmentGroup","AbsoluteRedirect","urlTree","noMatch$1","throwError","namedOutletsRedirect","redirectTo","throwError","RuntimeError","canLoadFails","route","navigationCancelingError","NavigationCancellationCode","ApplyRedirects","urlSerializer","urlTree","res","c","of","PRIMARY_OUTLET","segments","posParams","currentSnapshot","injector","redirectToFn","queryParams","fragment","routeConfig","url","outlet","params","data","title","newRedirect","runInInjectionContext","UrlTree","AbsoluteRedirect","newTree","newRoot","redirectToParams","actualParams","k","v","sourceName","group","updatedSegments","children","name","child","UrlSegmentGroup","redirectToSegments","actualSegments","redirectToUrlSegment","pos","idx","s","noMatch","matchWithChecks","segmentGroup","result","match","getOrCreateRouteInjectorIfNeeded","runCanMatchGuards","map","__spreadValues","createWildcardMatchResult","defaultUrlMatcher","parameters","last","split","consumedSegments","slicedSegments","config","containsEmptyPathMatchesWithNamedOutlets","createChildrenForEmptyPaths","containsEmptyPathMatches","addEmptyPathsToChildrenIfNeeded","routes","r","emptyPathMatch","getOutlet","primarySegment","noLeftoversInUrl","NoLeftoversInUrl","recognize$1","configLoader","rootComponentType","paramsInheritanceStrategy","Recognizer","MAX_ALLOWED_REDIRECTS","e","rootSegmentGroup","rootSnapshot","rootNode","TreeNode","routeState","RouterStateSnapshot","tree","createUrlTreeFromSnapshot","ActivatedRouteSnapshot","catchError","NoMatch","parentRoute","childOutlets","from","concatMap","childOutlet","sortedConfig","sortByMatchingOutlets","scan","outletChildren","defaultIfEmpty","mergeMap","noMatch$1","mergedChildren","mergeEmptyPathMatches","sortActivatedRouteSnapshots","allowRedirects","first","x","isEmptyError","rawSegment","matched","positionalParamSegments","remainingSegments","getData","getResolve","inherited","getInherited","newSegments","matchResult","switchMap","childConfig","childInjector","snapshot","matchedOnOutlet","runCanLoadGuards","shouldLoadResult","tap","cfg","nodes","a","b","hasEmptyPathConfig","node","mergedNodes","duplicateEmptyPathNode","resultNode","mergedNode","n","getData","route","getResolve","recognize","injector","configLoader","rootComponentType","config","serializer","paramsInheritanceStrategy","mergeMap","t","recognize$1","map","targetSnapshot","urlAfterRedirects","__spreadProps","__spreadValues","resolveData","canActivateChecks","of","routesWithResolversToRun","check","routesNeedingDataUpdates","newRoute","flattenRouteTree","routesProcessed","from","concatMap","runResolve","getInherited","tap","takeLast","_","EMPTY","descendants","child","futureARS","futureRSS","resolve","hasStaticTitle","RouteTitleKey","resolveNode","resolvedData","keys","getDataKeys","data","key","getResolver","first","value","RedirectCommand","redirectingNavigationError","DefaultUrlSerializer","mapTo","catchError","e","isEmptyError","throwError","injectionToken","closestInjector","getClosestRouteInjector","resolver","getTokenOrFunctionIdentity","resolverValue","runInInjectionContext","wrapIntoObservable","switchTap","next","switchMap","v","nextResult","TitleStrategy","snapshot","pageTitle","PRIMARY_OUTLET","__ngFactoryType__","ɵɵdefineInjectable","inject","DefaultTitleStrategy","title","ɵɵinject","Title","ROUTER_CONFIGURATION","InjectionToken","ɵEmptyOutletComponent","ɵɵdefineComponent","ɵɵStandaloneFeature","rf","ctx","ɵɵelement","RouterOutlet","standardizeConfig","children","c","ROUTES","RouterConfigLoader","Compiler","loadRunner","maybeUnwrapDefaultExport","component","finalize","loader","ConnectableObservable","Subject","refCount","parentInjector","loadChildren","compiler","onLoadEndListener","NgModuleFactory$1","factoryOrRoutes","rawRoutes","requireStandaloneComponents","isWrappedDefaultExport","input","UrlHandlingStrategy","DefaultUrlHandlingStrategy","url","newUrlPart","wholeUrl","CREATE_VIEW_TRANSITION","VIEW_TRANSITION_OPTIONS","createViewTransition","to","transitionOptions","document","DOCUMENT","NgZone","resolveViewTransitionStarted","viewTransitionStarted","transition","createRenderPromise","onViewTransitionCreated","afterNextRender","NAVIGATION_ERROR_HANDLER","NavigationTransitions","EnvironmentInjector","UrlSerializer","ChildrenOutletContexts","Location","INPUT_BINDER","onLoadStart","r","RouteConfigLoadStart","onLoadEnd","RouteConfigLoadEnd","request","id","router","initialUrlTree","initialRouterState","BehaviorSubject","IMPERATIVE_NAVIGATION","filter","overallTransitionState","completed","errored","NavigationCancellationCode","urlTransition","onSameUrlNavigation","reason","NavigationSkipped","NavigationSkippedCode","NavigationStart","routesRecognized","RoutesRecognized","extractedUrl","source","restoredState","extras","navStart","createEmptyState","guardsStart","GuardsCheckStart","getAllRouteGuards","checkGuards","evt","guardsEnd","GuardsCheckEnd","resolveStart","ResolveStart","dataResolved","resolveEnd","ResolveEnd","loadComponents","loaders","loadedComponent","combineLatest","defaultIfEmpty","take","currentSnapshot","targetRouterState","createRouterState","BeforeActivateRoutes","activateRoutes","NavigationEnd","takeUntil","err","isNavigationCancelingError","NavigationCancel","isRedirectingNavigationCancelingError","RedirectRequest","navigationError","NavigationError","navigationErrorHandlerResult","message","cancellationCode","errorHandlerResult","ee","code","navCancel","currentBrowserUrl","targetBrowserUrl","isBrowserTriggeredNavigation","RouteReuseStrategy","DefaultRouteReuseStrategy","BaseRouteReuseStrategy","detachedTree","future","curr","ɵDefaultRouteReuseStrategy_BaseFactory","ɵɵgetInheritedFactory","StateManager","HistoryStateManager","UrlTree","listener","event","currentTransition","rawUrl","path","currentBrowserPageId","state","navigation","restoringFromCaughtError","targetPagePosition","navigationId","routerPageId","ɵHistoryStateManager_BaseFactory","NavigationResult","afterNextNavigation","action","result","defaultErrorHandler","error","exactMatchOptions","subsetMatchOptions","Router","Console","PendingTasks","Subscription","subscription","currentNavigation","opts","mergedTree","isPublicRouterEvent","stateCopy","urlTree","commands","navigationExtras","relativeTo","queryParams","fragment","queryParamsHandling","preserveFragment","f","q","relativeToUrlSegmentGroup","relativeToSnapshot","createSegmentGroupFromRoute","createUrlTreeFromSegmentGroup","isUrlTree","validateCommands","matchOptions","options","containsTree","params","priorPromise","reject","promise","res","rej","taskId","i","RuntimeError","RouterLink","tabIndexAttribute","renderer","el","locationStrategy","tagName","s","newTabIndex","changes","commandsOrUrlTree","button","ctrlKey","shiftKey","altKey","metaKey","sanitizedValue","ɵɵsanitizeUrlOrResourceUrl","attrName","attrValue","nativeElement","ɵɵdirectiveInject","ActivatedRoute","ɵɵinjectAttribute","Renderer2","ElementRef","LocationStrategy","ɵɵdefineDirective","ɵɵlistener","$event","ɵɵattribute","booleanAttribute","ɵɵInputTransformsFeature","ɵɵNgOnChangesFeature","RouterLinkActive","element","cdr","link","EventEmitter","mergeAll","allLinkChanges","classes","hasActiveLinks","isActiveMatchOptions","isActiveCheckFn","ChangeDetectorRef","dirIndex","ɵɵcontentQuery","_t","ɵɵqueryRefresh","ɵɵloadQuery","PreloadingStrategy","RouterPreloader","router","compiler","injector","preloadingStrategy","loader","filter","NavigationEnd","concatMap","routes","res","route","createEnvironmentInjector","injectorForCurrentRoute","injectorForChildren","from","mergeAll","loadedChildren$","of","recursiveLoadChildren$","mergeMap","config","loadComponent$","__ngFactoryType__","ɵɵinject","Router","Compiler","EnvironmentInjector","PreloadingStrategy","RouterConfigLoader","ɵɵdefineInjectable","ROUTER_SCROLLER","InjectionToken","RouterScroller","urlSerializer","transitions","viewportScroller","zone","options","NavigationStart","NavigationSkipped","NavigationSkippedCode","Scroll","routerEvent","anchor","ɵɵinvalidFactory","rootRoute","router","routerFeature","kind","providers","getBootstrapListener","injector","inject","Injector","bootstrappedComponentRef","ref","ApplicationRef","router","Router","bootstrapDone","BOOTSTRAP_DONE","INITIAL_NAVIGATION","ROUTER_PRELOADER","InjectFlags","ROUTER_SCROLLER","InjectionToken","Subject","withEnabledBlockingInitialNavigation","routerFeature","APP_INITIALIZER","locationInitialized","LOCATION_INITIALIZED","resolve","afterNextNavigation","NavigationTransitions","of","withDisabledInitialNavigation","ROUTER_PRELOADER","InjectionToken","withPreloading","preloadingStrategy","routerFeature","RouterPreloader","PreloadingStrategy","withComponentInputBinding","routerFeature","RoutedComponentInputBinder","INPUT_BINDER","withViewTransitions","options","providers","CREATE_VIEW_TRANSITION","createViewTransition","VIEW_TRANSITION_OPTIONS","__spreadValues","ROUTER_FORROOT_GUARD","InjectionToken","ROUTER_PROVIDERS","Location","UrlSerializer","DefaultUrlSerializer","Router","ChildrenOutletContexts","ActivatedRoute","rootRoute","RouterConfigLoader","RouterModule","guard","routes","config","ROUTES","provideForRootGuard","Optional","SkipSelf","ROUTER_CONFIGURATION","provideHashLocationStrategy","providePathLocationStrategy","provideRouterScroller","withPreloading","provideInitialNavigation","withComponentInputBinding","withViewTransitions","provideRouterInitializer","__ngFactoryType__","ɵɵinject","ɵɵdefineNgModule","ɵɵdefineInjector","ROUTER_SCROLLER","viewportScroller","inject","ViewportScroller","zone","NgZone","transitions","NavigationTransitions","urlSerializer","RouterScroller","LocationStrategy","HashLocationStrategy","PathLocationStrategy","router","withDisabledInitialNavigation","withEnabledBlockingInitialNavigation","ROUTER_INITIALIZER","getBootstrapListener","APP_BOOTSTRAP_LISTENER","applyMixins","derivedClass","baseClass","name","ComponentMixins","registerEvents","eventList","obj","direct","ngEventsEmitter","_i","eventList_1","event_1","EventEmitter","clearTemplate","_this","templateNames","index","regTemplates","regProperties","val","tabaccordionTemp","_a","registeredTemplate","e","m","value","rt","_b","_c","pNode","isNullOrUndefined","_loop_1","tagObject","regExp","_d","_e","setValue","nameSpace","object","keys","fromObj","i","key","refRegex","ComplexBase","_i","_a","tag","objInstance","getValue","templateProperties","i","tempProp","setValue","val","_b","templateProperties_1","tempName","propName","propList","k","dirPropName","eventList","registerEvents","changes","changedVal","templateNames","clearTemplate","tagObject","result","isNullOrUndefined","tempProps","props","d","propVal","item","templateProperties_2","ArrayBase","propertyName","_this","index","child","onlyProp","_i","_a","item","result","isSourceChanged","childrenDataSource","i","templateNames","val","regExp","getValue","setValue","ComponentBase","key","newValue","oldValue","changeTime","clearUpdate","isTempRef","tempOnThis","tagName","prop","ele","createElement","attributes","_i","_a","tag","tagObject","getValue","complexTemplates","i","compProp","setValue","val","_b","complexTemplates_1","tempName","propName","length","ngAr","tempAfterViewThis","regExp","templateProperties","ngtempRef","templateProperties_1","appendToComponent","tempOnDestroyThis","value","_c","propKey","propValue","templateNames","index","clearTemplate","tempAfterContentThis","isUndefined","propObj","complexDirProps","list","skip","compDirPropList","h","obj","k","complexPropName","_loop_1","childObj","innerchildObj","updateChildTag_1","innerchild","innerLevelTag","j","innerTag","innerchildTag","l","hasDiffLength","curIndex","curChild","_d","complexTemplates_2","eventList","registerEvents","newVal","oldVal","isNullOrUndefined","propList","_this","_loop_2","this_1","EventEmitter","propList_1","eventName","handler","eventObj","eventArgs","success","prevDetection","localEventObj","FormBase","_","e","value","isObject","optionalValue","registerFunction","newVal","prop","oldVal","getValue","ele","setValue","isNullOrUndefined","isTempRef","tempFormAfterViewThis","disabled","regExp","stringCompiler","getTemplateEngine","compile","templateEle","helper","contRef_1","pName_1","data","component","propName","context","conRef","viewRef","getValue","viewCollection","Template","defaultValue","target","key","propertyDescriptor","setter","getter","val","setValue","setTemplateEngine","Query","from","field","dataManager","done","fail","always","DataUtil","cloned","tableName","key","value","fields","tables","fieldName","operator","ignoreCase","ignoreAccent","matchCase","predicate","Predicate","searchKey","fieldNames","comparer","isFromGroup","direction","order","isNullOrUndefined","sorts","temp","i","j","fn","format","pageIndex","pageSize","start","end","nos","query","selectorFn","type","queries","name","q","singles","filtered","res","args","_i","json","len","pred","record","ret","isAnd","predicates","p","condition","preds","result","consts","inst","input","substr","pattern","asteriskSplit","optionalSplit","regexPattern","x","y","obj","newObj","jsonArray","newData","aggregates","level","groupDs","isLazyLoad","jsonData","guid","_loop_1","this_1","indx","e","grouped","groupedArray","_loop_2","val","this_2","tempObj","_loop_3","aggs","fKey","source","lookup","pKey","grp","fKeyData","prefix","copyObj","keys","keys_1","prop","nameSpace","lowerCaseNameSpace","upperCaseNameSpace","splits","casing","fromObj","length","ds","middle","left","right","newValue","current","array","index","adaptor","fnName","param1","param2","adp","dm","req","xhr","request","hexs","rand","arr","keyVal","castRequired","requiresCompleteRecord","tmp","data","records","sampledata","DataManager","returnValue","_this","where","predicateList","search","mainPred","childPred","cpre","_a","error","actual","expected","jsonText","keys_2","ms","offSet","isUTC","secondsMs","utcFormat","hrs","mins","regex","match","stringify","keys_3","d","offset","utc","unix","datefn","timeZone","differenceString","localtimefn","num","norm","__extends","extendStatics","b","__","consts$1","Adaptor","JsonAdaptor","_super","count","countFlg","lazyLoad","keyCount","group","sort","page","agg","isGroupByFormat","lazyLoadData","field_1","uid","childLevel","aggQuery","changes","deletedRecordsLen","isLazyLoadGroupSort","fnCompare","size","position","keyField","getValue","merge","UrlAdaptor","hierarchyFilters","params","url","skip","take","options","request1","param","handleTimeZone","requests","pvt","isExpand","childLvl","lvl","hasRecords","childGroupedRecords","original","extend","settings","predicats","pData","aggregateData","isServerGrouping","groups","groupQuery","ODataAdaptor","props","requiresCast","splittedStringValue","splittedValue","filter","filters","metaCheck","dataUrls","pvtData","dataCopy","metaData","emptyAndBatch","versionCheck","version","oDataCount","table","keys_4","convertObj","initialGuid","stat","dateTime","org","change","o","date","cIdx","jsonObj","exVal","changeGuid","final","RemoteSaveAdaptor","_super","__extends","_this","setValue","UrlAdaptor","dm","data","tableName","query","position","extend","DataUtil","keyField","val","ds","xhr","request","changes","e","i","newData","original","options","urlParams","JsonAdaptor","CustomDataAdaptor","props","CacheAdaptor","_super","__extends","adaptor","timeStamp","pageSize","_this","isNullOrUndefined","DataUtil","obj","guid","data","forDel","i","currentTime","requestTime","url","query","queries","singles","Query","key","page","filter","currentFilter","newQuery","dm","hierarchyFilters","cachedItems","ds","xhr","request","changes","index","settings","keyField","value","tableName","e","UrlAdaptor","DataManager","dataSource","RemoteSaveAdaptor","CustomDataAdaptor","ODataAdaptor","JsonAdaptor","id","persistedData","persistData","persistedQuery","keyword","allPredicates","predicateObj","nestedPredicates","nestedPredicate","field","operator","ignoreCase","ignoreAccent","matchCase","Predicate","extend","result","from","lookup","res","j","done","fail","always","makeRequest","deffered","Deferred","args","fn","fnSuccess","fnFail","isSelector","process","count","actual","aggregates","virtualSelectRecords","fnQueryChild","selector","subDeffer","childArgs","subUrl","childReq","subData","virtualRecords","req","fetch_1","Fetch","promise","_i","pResult","cResult","headers","props","keys","keys_1","prop","original","dofetchRequest","deff_1","fetch_2","position","remove","update","record","fetchFunc","fetch_3","resolve","reject","wrapperInitialize","createElement","tag","type","element","WRAPPER","role","input","ejInstance","getValue","props","index","len","attributes","setValue","deleteObject","getTextNode","node","childnode","destroy","ejInst","wrapper","tagName","detach","key","preRender","proxy","control","moduleName","getUniqueID","createCheckBox","enableRipple","options","addClass","rippleSpan","rippleEffect","frameSpan","labelSpan","rippleMouseHandler","e","event_1","setHiddenInput","wrap","__extends","extendStatics","d","b","p","__","__decorate","decorators","target","desc","c","r","i","buttonObserver","Observer","cssClassName","Button","_super","__extends","options","element","rippleEffect","addClass","isBlazor","tempContent","SanitizeHtmlHelper","disabled","span","node","EventHandler","classList","removeClass","detach","isRippleEnabled","newProp","oldProp","_i","_a","prop","getTextNode","__decorate","Property","Event$1","NotifyPropertyChanges","Component","__extends$1","extendStatics","d","b","p","__","__decorate$1","decorators","target","key","desc","c","r","i","CHECK","DISABLED","FRAME","INDETERMINATE","LABEL","RIPPLE","RIPPLECHECK","RIPPLEINDETERMINATE","RTL","WRAPPER","containerAttr","CheckBox","_this","state","isInitialize","isInterAction","wrapper","rippleSpan","frameSpan","closest","event","changeEventArgs","setValue","isNullOrUndefined","label","setHiddenInput","rippleMouseHandler","rippleElem","labelWrap","wrapperInitialize","getUniqueID","text","formElem","init","value","index","__extends$2","__decorate$2","LABEL$1","RIPPLE$1","RTL$1","WRAPPER$1","ATTRIBUTES","RadioButton","RadioButton_1","type","input","instance","radioGrp","getInstance","radioWrap","len","e","attributes","wrap","formControlName","textLabel","rippleLabel","__extends$3","__decorate$3","DISABLED$1","RIPPLE$2","RIPPLE_CHECK","RTL$2","WRAPPER$2","ACTIVE","ATTRIBUTES$1","Switch","bar","handle","evt","destroy","switchInner","onLabel","offLabel","preRender","eventType","event_1","onText","offText","aTouchY","yDiff","aTouchX","xDiff","__extends$4","__decorate$4","classNames","ChipList","data","chipListArray","attributeArray","fieldsData","attributesValue","chipArray","className","css","htmlAttr","j","append","chipEnabled","fields","chipAvatarElement","chipIconElement","chipTextElement","chipdeleteElement","chipIconsElement","chipData","chipElement","chip","chipModel","chipsData","fieldData","selectionType","items","k","callFromProperty","chipNodes","chipValue","chipElements","chipElements_1","chipCollection_1","chips","selectedChips","selectedItems","selectedItem","unWireEvent","chipWrapper","focusedElement","del","chipDataArgs","observedArgs","chipData_1","deleteElement","deletedItemArgs","selectedItemArgs","clickedItemArgs","activeElement","chipListEle","chipCollIndex","chipCollValue","selectedEle","deletedChipData","attr","cssClass","ListBase","defaultAriaAttributes","defaultListBaseOptions","createList","createElement","dataSource","options","isSingleLevel","componentInstance","curOpt","extend","ariaAttributes","type","typeofData","createListFromArray","createListFromJson","subChild","createListItemFromArray","generateUL","getModuleClass","id","generateId","i","isNullOrUndefined","li","curData","generateSingleLevelLI","generateLI","createListItemFromJson","level","fields","checkboxElement","child","anchorElement","fieldData","getFieldValues","curItem","innerEle","prepend","tooltipText","SanitizeHtmlHelper","tooltipTextElement","htmlAttributes","setAttribute","attr","merge","imageElemnt","iconElement","processSubChild","addClass","getSiblingLI","elementArray","element","isPrevious","siblingLI","liIndex","liCollections","indexOf","isVisible","item","groupDataSource","sortOrder","curFields","cusQuery","Query","addSorting","ds","getDataSource","j","itemObj","grpItem","hdr","newtext","k","sortBy","query","DataManager","createJsonFromElement","curEle","jsonAr","childs","anchor","ul","json","childNodes","keys","i_1","attributes_1","getAllAttributes","data","match","elementAttributes","attributes","index","renderContentTemplate","template","ulElement","compiledString","compileTemplate","liCollection","value","isHeader","currentID","compiledElement","append","renderGroupTemplate","groupTemplate","headerItems","category","_i","headerItems_1","header","headerData","subDS","hasChildren","subLi","expandElement","className","innerElements","grpLI","text","elementID","anchorTag","moduleName","moduleClass","isFullNavigation","anchorWrapper","uID","innerDiv","liElement","generateIcon","dataItem","_a","field","dataField","getValue","compile$1","__extends$1","extendStatics","d","b","p","__","__decorate$1","decorators","target","key","desc","c","r","i","Sortable","_super","element","options","_this","e","addClass","newInst","isNullOrUndefined","oldIdx","placeHolder","newIdx","isPlaceHolderPresent","remove","idx","placeHolders","inst_1","cancelDrag","args","observedArgs","isBlazor","dropInst","prevIdx","curIdx","handled","curIdx_1","ele","curIdx_2","beforeDropArgs","getComponent","Sortable_1","getUniqueID","Draggable","wrapper","EventHandler","dragStop","dragWrapper","dragPlaceholder","instance","placeHolderElement","compareElementParent","closest","inst","increased","disabledIdx","start","end","placeHolderPresent","index","offset","clientY","cltY","value","destination","targetIndexes","insertBefore","moveTo","newProp","oldProp","_i","_a","prop","Property","Event$1","NotifyPropertyChanges","Base","from","to","targetElements","insertElement_1","elementRect","popupRect","element","parentDocument","fixedParent","calculateRelativeBasedPosition","anchor","fixedElement","anchorPos","tempAnchor","isNullOrUndefined","calculatePosition","currentElement","positionX","positionY","parentElement","targetValues","pos","updatePosition","setPosx","value","setPosy","posX","posY","getElementHCenter","getElementTop","getElementRight","getElementVCenter","getElementLeft","getElementBottom","getBodyScrollTop","getBodyScrollLeft","popupWidth","parentDocument$1","targetContainer","fit","viewPortElement","axis","position","elemData","containerWidth","getTargetContainerWidth","getViewPortWidth","containerLeft","ContainerLeft","containerRight","ContainerRight","overLeft","overRight","containerHeight","getTargetContainerHeight","getViewPortHeight","containerTop","ContainerTop","containerBottom","ContainerBottom","overTop","overBottom","isCollide","x","y","elemOffset","data","top","left","right","bottom","yAxis","topCollideCheck","xAxis","leftCollideCheck","flip","target","offsetX","offsetY","tEdge","eEdge","oldVisibility","updateElementData","setPosition","leftFlip","topFlip","setPopup","scaleX","scaleY","tranformElement","getTransformElement","transformStyle","matrix","transform","edge","eStatus","leftSide","rightSide","getBodyScrollLeft$1","deepCheck","collideSide","getBodyScrollTop$1","topSide","bottomSide","getTargetContainerLeft","getTargetContainerTop","windowWidth","documentReact","offsetWidth","destroy","__extends","extendStatics","d","b","p","__","__decorate","decorators","key","desc","c","r","i","PositionData","_super","Property","ChildProperty","CLASSNAMES","Popup","options","newProp","oldProp","_i","_a","prop","setStyleAttribute","formatUnit","styles","Browser","EventHandler","parent_1","parent_2","relateToElement","targetVisible","scrollElement","scrollParents","parent_3","rect","win","windowView","off","ele","elementView","parent_4","relateToElem","props","_this","collision","parentDisplay","display","height","eleRect","anchorEle","anchorRect","param","viewPortRect","horz","vert","animationOptions","relativeElement","zIndexElement","getZindexPartial","removeClass","addClass","Animation","getScrollableParent","parent","parentStyle","Complex","Event$1","NotifyPropertyChanges","Component","eleStyle","overflowRegex","parentZindex","index","childrenZindex","siblingsZindex","childNodes","finalValue","currentZindexValue","elementClass","RESIZE_HANDLER","FOCUSED_HANDLER","DIALOG_RESIZABLE","RESTRICT_LEFT","RESIZE_WITHIN_VIEWPORT","dialogBorderResize","targetElement","selectedHandler","originalWidth","originalHeight","originalX","originalY","originalMouseX","originalMouseY","minHeight","maxHeight","minWidth","maxWidth","containerElement","resizeStart","resize","resizeEnd","resizeWestWidth","setLeft","previousWidth","setWidth","createResize","args","getDOMElement","directions","i","setBorderResizeElm","resizeHandler","createElement","wireEvents","direction","calculateValues","borderBottom","element","domElement","isNullOrUndefined","context","resizers","EventHandler","onMouseDown","eventName","Browser","onTouchStart","borderResizers","getEventType","e","proxy_1","target","onMouseMove","onMouseUp","touchMoveEvent","touchEndEvent","proxy_2","dialogResizeElement","coordinates","proxy_3","resizeTowards","proxy_4","resizeSouth","resizeNorth","resizeWest","resizeEast","getClientRectValues","documentHeight","calculateValue","currentpageY","targetRectValues","containerRectValues","calculatedHeight","containerTop","borderValue","topWithoutborder","targetTop","calculatedTop","boundaryRectValues","pageY","currentHeight","top_1","documentWidth","rectValues","pageX","left","containerWidth","calculatedWidth","containerLeft","left_1","setMinHeight","minimumHeight","setMaxWidth","value","setMaxHeight","removeResize","handlers","detach","resizeDestroy","__extends$1","extendStatics","d","b","p","__","__decorate$1","decorators","key","desc","c","r","ButtonProps","_super","Property","Event$1","ChildProperty","AnimationSettings","ROOT","RTL","DLG_HEADER_CONTENT","DLG_HEADER","DLG_FOOTER_CONTENT","MODAL_DLG","DLG_CONTENT","DLG_CLOSE_ICON","DLG_OVERLAY","DLG_TARGET","DLG_CONTAINER","SCROLL_DISABLED","DLG_PRIMARY_BUTTON","ICON","POPUP_ROOT","DEVICE","FULLSCREEN","DLG_CLOSE_ICON_BTN","DLG_HIDE","DLG_SHOW","DLG_UTIL_DEFAULT_TITLE","DLG_UTIL_ROOT","DLG_UTIL_ALERT","DLG_UTIL_CONFIRM","DLG_RESIZABLE","DLG_RESTRICT_LEFT_VALUE","DLG_RESTRICT_WIDTH_VALUE","DLG_REF_ELEMENT","DLG_USER_ACTION_CLOSED","DLG_CLOSE_ICON_CLOSED","DLG_ESCAPE_CLOSED","DLG_OVERLAYCLICK_CLOSED","DLG_DRAG","Dialog","options","_this","formatUnit","event","overlayClickEventArgs","localeText","L10n","prevOnChange","isNumber","list","selector","computedHeaderHeight","computedFooterHeight","footerEle","headerHeight","footerHeight","dialogObj","computedHeight","computedWidth","directionValue","items","buttonObj","isTagName","isContentEdit","query","buttonIndex_1","firstPrimary","data","index","buttonModel","addClass","attributes","parentEle","Popup","eventArgs","openEventArgs","activeEle","targetType","computedStyle","targetValue","elements","dialogConHeight","className","resizeIcon","zIndexValue","zIndex","handleContent","Draggable","dragEventArgs","isBlazor","buttonType","btn","footerBtn","childNodes","Button","template","toElement","prop","templateFn","templateProps","templateValue","compile$1","fromElements","isString","_i","_a","item","append","dialogItem","SanitizeHtmlHelper","beforeEvent","extend","display","removeClass","isContent","el","prepend","closeIconTitle","oldCSSClass","node","u","content","container","validNode","t","elementMatch","userAgent","newProp","oldProp","setStyleAttribute","positionX","positionY","zIndexElement","setPopupZindex","currentzIndex","getZindexPartial","classArray","attrs","dialogWidth","dialogHeight","isFullScreen","eventArgs_1","beforeOpenArgs","openAnimation","animationMode","beforeCloseArgs","closeAnimation","top","Collection","Complex","PositionData","NotifyPropertyChanges","Component","DialogUtility","alert","dialogElement","alertDialogObj","okButtonModel","createDialog","alertOptions","confirm","confirmDialogObj","okCancelButtonModel","confirmOptions","dialogObject","option","formOptions","setAlertButtonModel","setConfirmButtonModel","alertButtonModel","formButtonModel","cancelButtonModel","buttonPropModel","buttonProps","__extends$2","__decorate$2","TOUCHEND_HIDE_DELAY","TAPHOLD_THRESHOLD","SHOW_POINTER_TIP_GAP","HIDE_POINTER_TIP_GAP","MOUSE_TRAIL_GAP","POINTER_ADJUST","ROOT$1","RTL$1","DEVICE$1","ICON$1","CLOSE","TOOLTIP_WRAP","CONTENT","ARROW_TIP","ARROW_TIP_OUTER","ARROW_TIP_INNER","TIP_BOTTOM","TIP_TOP","TIP_LEFT","TIP_RIGHT","POPUP_ROOT$1","POPUP_OPEN","POPUP_CLOSE","POPUP_LIB","HIDE_POPUP","POPUP_CONTAINER","Animation","Tooltip","_b","tip","position","elePos","scalingFactors","elementsWithTransform","transformValue","matrixValues","parentWithZoomStyle","pos","calculatePosition","offsetPos","collisionPosition","collisionLeft","collisionTop","tooltipAfterCloseEventArgs","xScalingFactor","yScalingFactor","tipWidth","tipHeight","tooltipEleWidth","tooltipEleHeight","arrowEle","tipAdjust","tipHeightAdjust","tipWidthAdjust","tooltipEleRect","arrowEleRect","select","selEle","selectAll","removeList","tooltipPositionX","tooltipPositionY","leftValue","topValue","tooltipWidth","tooltipHeight","arrowInnerELe","tipPosExclude","tooltipContent","tempFunction","tempArr","templateFunction","existingCloseIcon","remove","tipClose","id","describedby","orgdescribedby","evt","close","closest","targetList","targetList_1","target_1","showAnimation","observeCallback","beforeRenderArgs","getUniqueID","ctrlObj","observedArgs","openAnimation_1","show","tooltip","x","y","affectedPos","isCollide","newpos","elePosVertical","elePosHorizontal","elePosition","eleOffset","fit","arrowleft","positionString","newPos","offsetType","hideAnimation","hide","enteredElement","checkForTooltipElement","eventPageX","eventPageY","colpos","trigger","triggerList","triggerList_1","opensOn","Touch","targetList_2","triggerList_2","targetList_3","triggerList_3","animation","target_2","destroy","currentTarget","currentTarget_1","globalTimeOut","DEFT_MAT_WIDTH","DEFT_MAT3_WIDTH","DEFT_FAB_WIDTH","DEFT_FLUENT_WIDTH","DEFT_FLUENT2_WIDTH","DEFT_BOOT_WIDTH","DEFT_BOOT4_WIDTH","DEFT_BOOT5_WIDTH","CLS_SHOWSPIN","CLS_HIDESPIN","CLS_MATERIALSPIN","CLS_MATERIAL3SPIN","CLS_FABRICSPIN","CLS_FLUENTSPIN","CLS_FLUENT2SPIN","CLS_TAILWINDSPIN","CLS_BOOTSPIN","CLS_BOOT4SPIN","CLS_BOOT5SPIN","CLS_HIGHCONTRASTSPIN","CLS_SPINWRAP","CLS_SPININWRAP","CLS_SPINCIRCLE","CLS_SPINARC","CLS_SPINLABEL","CLS_SPINTEMPLATE","spinTemplate","spinCSSClass","createSpinner","args","internalCreateElement","_a","radius","makeElement","isNullOrUndefined","createElement","container","create_spinner_container","classNames","className","spinTemplate","template","CLS_SPINTEMPLATE","replaceContent","spinCSSClass","theme","getTheme","width","calculateRadius","setTheme","createLabel","CLS_HIDESPIN","label","labelEle","CLS_SPINLABEL","createMaterialSpinner","uniqueID","random_generator","globalTimeOut","create_material_element","CLS_MATERIALSPIN","mat_calculate_attributes","createMaterial3Spinner","CLS_MATERIAL3SPIN","createBootstrap4Spinner","CLS_BOOT4SPIN","createBootstrap5Spinner","CLS_BOOT5SPIN","startMatAnimate","globalObject","timeOutVar","globalVariables","spinnerInfo","animateMaterial","createFabricSpinner","create_fabric_element","CLS_FABRICSPIN","fb_calculate_attributes","createFluentSpinner","CLS_FLUENTSPIN","createFluent2Spinner","CLS_FLUENT2SPIN","createTailwindSpinner","CLS_TAILWINDSPIN","createHighContrastSpinner","CLS_HIGHCONTRASTSPIN","innerContainer","CLS_SPININWRAP","svg","createBootstrapSpinner","create_bootstrap_element","boot_calculate_attributes","svgBoot","viewBoxValue","trans","defaultRadius","CLS_BOOTSPIN","item","bootCircle","CLS_SPINCIRCLE","x","y","rad","startArc","start","defineArcPoints","circleEle","generateSeries","begin","stop","series","end","increment","count","formSeries","i","animateBootstrap","id","rotation","circle","boot_animate","cssClass","inner","defaultSize","DEFT_MAT_WIDTH","DEFT_MAT3_WIDTH","DEFT_FAB_WIDTH","DEFT_FLUENT_WIDTH","DEFT_FLUENT2_WIDTH","DEFT_BOOT4_WIDTH","DEFT_BOOT5_WIDTH","DEFT_BOOT_WIDTH","previousId","random","combine","innerCon","themeClass","svgFabric","fabricCirclePath","fabricCircleArc","CLS_SPINARC","cls","svgMaterial","matCirclePath","target","spinnerContainer","spinnerInnerContainer","CLS_SPINWRAP","duration","max","createCircle","easeAnimation","easing","startTime","change","diameter","getSize","strokeSize","getStrokeSize","rotate","mat_animation","currentTime","updatePath","value","path","getDashOffset","type","transformOrigin","drawArc","parsed","offset","current","timestamp","timecount","innerConainer","trgClass","centerX","centerY","endArc","defineCircle","defineArc","angle","radians","d","showSpinner","showHideSpinner","isHide","spinnerWrap","spinWrapCollection","Browser","wrap","spinCheck","CLS_SHOWSPIN","svgEle","classList","hideSpinner","__extends","extendStatics","d","b","p","__","__decorate","decorators","target","key","desc","c","r","i","getModel","props","model","obj","extend","_i","_a","prop","deleteObject","upDownKeyHandler","ul","keyCode","defaultIdx","liIdx","li","selectedLi","len","isValidLI","addClass","index","count","setBlankIconStyle","popup","blankIcon","blankIconList","menuItem","iconLi","isNullOrUndefined","icon","cssProp","enableRtl","size","Item","_super","Property","ChildProperty","__extends$1","__decorate$1","classNames","DropDownButton","options","element","_this","items","text","newItem","idx","j","isUniqueId","refresh","len_1","div","Popup","attributes","select","appendItems","showIcon","span","item","eventArgs","tempItem","getUniqueID","beforeDisabled","afterDisabled","field","SanitizeHtmlHelper","Button","prevElem","elem","val","classList_1","detach","removeClass","attrList","popupEle","EventHandler","dropDownBtn","getComponent","popupElement","rippleEffect","isRippleEnabled","closest","trgt","liTarget","selectEventArgs","popupElem","splitButton","beforeOpenArgs","observedArgs","ul_1","wrapperWidth","popupRect","popupLeft","openArgs","focusEle","beforeCloseArgs","ul_2","closeArgs","newProp","oldProp","btnModel","arrowSpan","classList","Collection","Event$1","NotifyPropertyChanges","Component","__extends$2","__decorate$2","RTL","TAGNAME","SplitButton","ele","ejInstance","getValue","btn","wrapper","setValue","btnElem","dropDownBtnModel","args","callBackPromise","Deferred","remove","KeyboardEvents","getInstance","resolve","reject","CLASSNAMES","containerAttributes","TEXTBOX_FOCUS","Input","floatType","isBindClearAction","createInput","args","internalCreateElement","makeElement","isNullOrUndefined","createElement","inputObject","createInputContainer","addClass","createFloatingInput","bindInitialEvent","setClearButton","i","appendSpan","validateInputType","setPropertyValue","createSpanElement","bindFocusEventHandler","parent","getParentNode","bindBlurEventHandler","bindInputEventHandler","checkInputValue","focusHandler","blurHandler","inputHandler","unbindInitialEvent","focusHandler_1","blurHandler_1","inputHandler_1","floatLabelType","inputElement","inputValue","inputParent","grandParent","_focusFn","label","removeClass","_blurFn","wireFloatingEvents","element","unwireFloatingEvents","inputEventHandler","validateLabel","blurEventHandler","floatLinelement","floatLabelElement","attributes","encodePlaceHolder","inputWrap","updateLabelState","inputFloatHandler","blurFloatHandler","unWireFloatLabelEvents","checkFloatLabelType","type","container","_i","_a","prop","setCssClass","setEnabled","setEnableRtl","setPlaceholder","setReadonly","updateIconState","value","button","readonly","isNotFocused","parentNode","createClearButton","initial","baseElement","wireClearBtnEvents","clickHandler","event","clickHandlerEvent","e","inputHandlerEvent","focusHandlerEvent","blurHandlerEvent","unWireClearBtnEvents","destroy","_internalRipple","className","tagClass","tag","placeholder","result","spanEle","hiddenInput","setValue","clearButton","calculateWidth","parentElement","cssClass","elements","oldClass","moduleName","_isElementVisible","elementWidth","setWidth","width","formatUnit","floatTextContent","isReadonly","isRtl","isEnable","inputContainer","disabledAttrs","considerWrapper","removeAttributes","addAttributes","isClear","remove","attrs","key","removeFloating","input","inputEle","detach","classList","addFloating","closest","customTag","iconEle","inputObj","isPrependIcon","floatLine","floatText","wrapper","labelSpanElement","setRipple","isRipple","argsButton","buttons","index","_onMouseDownRipple","_onMouseUpRipple","_onMouseRipple","currentElement","style","ele","parentEle","createIconEle","iconClass","addIcon","position","icons","internalCreate","result_1","icon","result_2","prependSpan","innerWrapper","wrap","containerElement","updateHTMLAttributesToElement","htmlAttributes","updateCssClass","newClass","getInputValidClassList","inputClassName","updateHTMLAttributesToWrapper","updatedClassValues","setStyle","isBlank","inputString","__extends","extendStatics","d","b","p","__","__decorate","decorators","target","desc","c","r","ROOT","SPINICON","SPINUP","SPINDOWN","ERROR","INCREMENT","DECREMENT","INTREGEXP","DECIMALSEPARATOR","COMPONENT","CONTROL","NUMERIC_FOCUS","HIDDENELEMENT","wrapperAttributes","selectionTimeOut","NumericTextBox","_super","options","_this","ejInstance","getValue","attributeName","item","localeText","L10n","getUniqueID","isDynamic","attributes_1","enabled","setNumber","minValue","maxValue","stepValue","Internationalization","updatedCssClassValue","attr","a","pro","numericClassName","updatedClassValue","numericStyle","decimals","operation","EventHandler","formElement","keyupEvent","Browser","parsedInput","eventArgs","merge","beforeUpdate","iOS","currentPos","prevPos","start","valArray","numericObject","getNumericObject","decimalSeparator","ignoreKeyCode","parseValue","numerictextboxObj","fireFox","parsedValue","current","previous","nonZeroRegex","step","updatedValue","floatExp","floatValue","floatStep","valueCount","stepCount","max","precision","divide","propVal","numberOfDecimals","elementValue","val","EXPREGEXP","valueString","decimalPart","result1","result2","currentChar","isAlterNumPadDecimalChar","text","fractionRule","delta","rawEvent","formatValue_1","delay","value_1","ele_1","focusEvent","action","touchEvent","attrArray","keyEntity","newProp","oldProp","propValue","Property","Event$1","NotifyPropertyChanges","Component","ERROR$1","INPUTGROUP","FLOATINPUT","TOPLABEL","BOTTOMLABEL","regularExpressions","createMask","attributes","splitMask","i","splitInnerMask","j","pushIntoRegExpCollec","chkSpace","isNullOrUndefined","escapeNumber","applyMask","setElementValue","setMaskValue","wireEvents","EventHandler","maskInputKeyDownHandler","maskInputKeyPressHandler","maskInputKeyUpHandler","maskInputHandler","maskInputFocusHandler","maskInputBlurHandler","maskInputPasteHandler","maskInputCutHandler","maskInputDropHandler","maskInputMouseDownHandler","maskInputMouseUpHandler","bindClearEvent","resetFormHandler","unwireEvents","resetHandler","e","clear","event","value","triggerMaskChangeEvent","unstrippedValue","element","strippedValue","maskValues","k","checkMask","maskValue","_this","inputElement","startIndex","modelValue","toAllowForward","toAllowBackward","eventArgs","triggerFocus","backSelectionStart","escapeRegExp","text","labelElement","removeClass","sIndex_1","eIndex_1","oldValue_1","validateValue","i_1","preValue_1","sIndex_2","eIndex","value_1","Browser","extend","removeMaskInputValues","addedValues","val","startValue","collec","mobileRemoveFunction","sIndex","autoFillMaskInputValues","isRemove","oldEventVal","isDeleted","initStartIndex","initEndIndex","endIndex","curMask","deleteEndIndex","multipleDel","preValue","index","oldValue","prompt_1","elementValue","key","prevOnChange","merge","val_1","startIndex_1","oldVal","isSpace","preventUnsupportedValues","removeMaskError","temp_1","mobileSwipeCheck","mobileValidation","isCtrlKey","allowText","eventOldVal","prevSupport","isEqualVal","keyValue","customValStr","customValArr","applySupportedValues","addMaskErrorClass","changeToLowerUpperCase","sIdx","idx","ctrl","chkSupport","parentElement","timer","INPUTGROUP","FLOATINPUT","addClass","ERROR$1","promptMask","curVal","caseCount","newVal","Input","__extends$1","extendStatics","d","b","p","__","__decorate$1","decorators","target","key","desc","c","r","i","ROOT$1","INPUT","COMPONENT$1","CONTROL$1","MASKINPUT_FOCUS","wrapperAttr","MaskedTextBox","_super","options","element","_this","regularExpressions","ejInstance","getValue","removeClass","closest","input","setValue","keyEntity","addClass","Browser","isNullOrUndefined","_i","_a","newClass","oldClass","Input","maskClassName","result","updatedClassValues","maskStyle","createMask","applyMask","setElementValue","val","strippedValue","unwireEvents","wireEvents","setVal","dynamicPlaceholder","width","formatUnit","elementWidth","isDynamic","attributes","attributes_1","isEnabled","isReadonly","updatedCssClassValues","newProp","oldProp","prop","setMaskValue","bindClearEvent","strippedValue_1","value","strippedVal","unstrippedValue","attrArray","detach","Property","Event$1","NotifyPropertyChanges","Component","__extends$2","__decorate$2","TicksData","ChildProperty","ColorRangeData","LimitData","TooltipData","bootstrapTooltipOffset","bootstrap4TooltipOffset","classNames","Slider","localeText","L10n","formElement","Internationalization","formatInfo","formatValue","formatString","numberOfDecimals","decimalPart","precision","decimals","tens","oldCSSClass","container","theme","firstElementClassName","min","max","range","index","destroy","EventHandler","preDir","currDir","setStyleAttribute","text","args","observedArgs","SanitizeHtmlHelper","contentTemp","initializeCSPTemplate","content","ariaContent","handle1","handle2","count","cssClass","css","position","tooltipOffsetValue","event","className","transformProperties","tooltipContentElement","tooltipClass","Tooltip","tooltipShowOn","handle","enabledRTL","decrementTitle","incrementTitle","hVal","bigNum","tickCount","orien","smallStep","steps","customStep","li","start","left","islargeTick","tickWidth","y","k","largestep","startValue","repeat","j","decimalPoints","triggerEvent","eventArgs","span","spanElement","tickText","first","firstChild","otherChild","tickElements","other","ariaValueText","isTickFormatted","valuenow","fromMinPostion","fromMaxpostion","toMinPostion","toMaxpostion","fromPosition","toPosition","currentValue","minValue","maxValue","limitBar","values","getZindexPartial","pos","eventName","e","previous","values_1","num","top_1","percentStep","remain","a","addition","x","diff","total","evt","handlepos","handleVal","focusedElement","behindElement","eventX","eventY","transition","handleValue","assignValue","handleNumber","_b","xPostion","yPostion","valueAndPostion","previousVal","parentElement","previousSibling","curTarget","type","trackPosition","trackClassName","child","startingPosition","endPosition","trackContainer","Collection","Complex","__extends$3","__decorate$3","regex","ErrorOption","FormValidator","onIntlChange","select","selectAll","FormValidator_1","name","rules","extend","selected","data","rules_1","name_1","elements","elements_1","elements_2","inputParent","grandParent","defRules","acceptedTypes","allRule","defRules_1","rule","id","ruleCon","ruleName","annotationRule","rulesList","ruleFirstName","ruleSecondName","minvalue","maxvalue","message","annotationMessage","customMessage","excludeKeys","hiddenType","validateHiddenType","vhPos","hPos","rules_2","errorMessage","errorRule","refer","params","param","currentRule","dateFormat","fn","ruleValue","formats","errorElement","createElement","containerId","divElement","inputType","option","globalize","dateOptions","dateValue","uNum","compareTo","Base","__extends$4","__decorate$4","CONTROL_WRAPPER","INPUT_WRAPPER","DROP_AREA","DROP_WRAPPER","LIST_PARENT","FILE","STATUS","ACTION_BUTTONS","UPLOAD_BUTTONS","CLEAR_BUTTONS","FILE_NAME","FILE_TYPE","FILE_SIZE","REMOVE_ICON","DELETE_ICON","SPINNER_PANE","ABORT_ICON","RETRY_ICON","DRAG_HOVER","PROGRESS_WRAPPER","PROGRESSBAR","PROGRESSBAR_TEXT","UPLOAD_INPROGRESS","UPLOAD_SUCCESS","UPLOAD_FAILED","TEXT_CONTAINER","VALIDATION_FAILS","RTL","DISABLED","RTL_CONTAINER","ICON_FOCUSED","PROGRESS_INNER_WRAPPER","PAUSE_UPLOAD","RESUME_UPLOAD","RESTRICT_RETRY","wrapperAttr$1","FORM_UPLOAD","HIDDEN_INPUT","INVALID_FILE","INFORMATION","FilesProp","ButtonsProps","AsyncSettings","Uploader","keyValue","inputElement","getUniqueID","parentEle","uploadText","clearText","inputWrapper","files","filesData","files_1","fileData","length_1","dropTextArea","enableDropText","remove","fileDropArea","pro","uploadStyle","newAttr","isFileListCreated","updatedOldCssClass","updatedCssClassValue","KeyboardEvents","targetElement","metaData","fileInfo","targetMetaData","item","file","pasteFile","liElement","allFiles","nameElements","startIndex","selectedElement","formUpload","spinnerTarget","createSpinner","showSpinner","customTemplate","removeDirectly","custom","selectedFiles","ajax","Ajax","formData","customData","_loop_1","request","currentRequest","_loop_2","response","status","rootElement","statusElement","hideSpinner","items","validDirectoryUpload","_loop_3","files_2","fileObj","path","this_1","directoryReader","entries","_loop_4","this_2","targetFiles","resolve","reject","fileReader","error","directory","paste","sanitizeFile","sanitizeFileName","currentFileName","isUTF8","i_1","htmlTagRegex","hasHTMLString","encodedFileName","fileName","fileDetails","dataFiles","allowFormUpload","isFormUpload","singleUpload","previousListClone","added","oldList","str","dropFiles","allowedExtensions","extensions","extensions_1","extension","checkFileType","fileSize","minSizeError","maxSizeError","isPreload","fileData_1","listItem","listElement","liTempCompiler","fromElements","append","eventsArgs","fileList","fileContainer","statusMessage","fileData_2","fileNameEle","fileTypeEle","fileType","rtlContainer","infoEle","iconElement","validationMessages","typeValidationMessage","fileData_3","fileData_4","fileNames","fileData_5","isValid","fileData_6","fileData_7","textContainer","textElement","fileExtension","preventActionComplete","nameElement","fileData_8","names","filterFiles","statusCode","updateLiStatus","progressbarWrapper","progressBar","progressbarInnerWrapper","progressbarText","progressValue","customUI","iconEle","ajax_1","requestResponse","deleteIcon","retryElement","spinnerEle","increment","matchFiles","matchFilesIndex","selectFileIndex","selectedFileData","fileDataIndex","callType","Animation","uploadTemplate","compile$1","isMutiple","isDisabled","fileIndex","end","blob","totalChunk","removeIcon","eventArgs_1","name_2","pauseIcon","cancelButton","chunkCount","pauseButton","file_1","failureMessage","fromcanceledStage","clearIcon","progressVal","totalChunks","abortIcon","bytes","sortedFileNames","sortedFilesData","sortedFileNames_1","name_3","attributes_2","uploadFiles_1","uploadFiles","totalCount","reader","contents","ele","fileCount","chunkEnabled","name_4","liIndex","endIndex","postRawFile","beforeEventArgs","removingFiles","isLiRemoved","removingFiles_1","removeFiles","removeUrl","validUrl","_loop_5","fileUploadedIndex","removeFiles_1","fileDataFiles","cancelingFiles","__extends$5","__decorate$5","APPLY","CANCEL","CURRENT","CONTAINER","CTRLBTN","CTRLSWITCH","DISABLED$1","FORMATSWITCH","HANDLER","HEX","HIDEHEX","HIDEOPACITY","HIDERGBA","HIDEVALUE","HIDEVALUESWITCH","HSVAREA","HSVCONTAINER","INPUTWRAPPER","MODESWITCH","NOCOLOR","OPACITY","PALETTES","PALETTECONTENT","PICKERCONTENT","PREVIEW","PREVIOUS","RTL$1","SHOWVALUE","SELECT","SPLITPREVIEW","TILE","presets","ColorPicker","wrapper","slicedValue","rippleEffect","splitButton","SplitButton","ev","preview","popupEle","popupInst","collision","isCollide","getInstance","Popup","callBackPromise","Deferred","observeOpenArgs","beforeCloseArgs","observedCloseArgs","classList","paletteGroup","keys","len","recentClrWpr","recentColorWrapper","refEle","recentClrSpan","colors","palette","row","tile","roundedColor","noColorEle","attr","insertPos","hsvContainer","dragHandler","h","hsvArea","sliderPreviewWrapper","sliderWrapper","slider","opacityBgTrack","direction","opacityEle","pValue","cValue","rgb","opacityTextBoxInst","NumericTextBox","previewContainer","colorValue","label","numericInput","isPicker","inputWrap","hexInput","clsName","targetEle","valueSwitchBtn","btnWrapper","controlBtnWrapper","apply","cancel","modeSwitcher","tooltip","enable","hsv","isKey","rgba","selectedEle","n","hex","ctrlBtn","ctrlSwitchBtn","applyBtn","observedcloseArgs","prob","clientX","clientY","btnElem","format","idx","inst","grpEle","tiles","prevSelectedEle","newEle","cIdx","emptyCount","popup","numericElemColl","tooltipInst","tempValue","len_1","opacity","bigInt","g","v","s","f","q","t","ctrlSwitchWrapper","ctrlBtnWrapper","popupWrapper","otherCompModel","getModel","props","count_1","cls","__extends$6","__decorate$6","HIDE_CLEAR","TextBox","prevOnChange","attributeName","apiAttributes","containerAttributes","attrs","attrs_1","enabled","readonly","autoCompleteTxt","textboxObj","interaction","keyupEvent","icons","TEXTBOX_FOCUS","__extends$7","__decorate$7","HIDE_CLEAR$1","AUTO_WIDTH","RESIZE_X","RESIZE_Y","RESIZE_XY","RESIZE_NONE","TextArea","currentWidth","textareaObj","resizeMode","CaretPositionHelper","htmlContent","div","styles","scrollbarWidth","marker","textBeforeCaret","textAfterCaret","rect","caretPosition","lineHeight","computedStyle","__extends$8","__decorate$8","__awaiter","thisArg","_arguments","P","generator","fulfilled","step","rejected","__generator","body","_","verb","op","ChatMessageRole","SmartTextArea","smartTextArea","suggestionState","InlineSuggestion","ContextSuggestion","textArea","inlineSuggestions","textBefore","textAfter","stringBuilder","userPhrases","userPhrases_1","phrase","chatMessageList","requestDetails","suggestionData","chatConfig","insertSuggestion","suggestion","chars","newValue","obj","property","descriptor","suggestionText","VirtualCaret","selectionStart","selectionEnd","style","leftPosition","paddingTop","paddingBottom","lines","maxLength","textAreaPosition","caretStyle","__extends$9","SignatureBase","dotnetRef","observableSaveArgs","proxy","pointSize","restoreImg_1","point","now","remaining","pointX","pointY","time","points","controlPoint1","controlPoint2","lastPoint","isLastPointTooClose","velocity","newWidth","canDrawCurve","startWidth","endWidth","context","t1","t2","t3","u1","u2","u3","widthValue","bezierLength","drawSteps","size","p1","p2","p3","dx1","dy1","dx2","dy2","m1","m2","l1","l2","dxm","dym","cm","tx","ty","length","pointx1","pointy1","pointx2","pointy2","pointx3","pointy3","startpoint","cp1","cp2","endpoint","startPoint","isRead","isDisable","isClear","canvasNew","canvasContextNew","imageSrc","imageObj","color","canvasEle","lastImage","url","arr","bstr","u8arr","blobUrl","undoImg_1","redoImg_1","empty","fontFamily","fontSize","startX","startY","signature","height","bitmapImage","results","tempCanvas","savebg","proxy_1","imageObj_1","dataURL","restoreObj","dataUrl","svg","XLinkNS","img","prefix","header","footer","svgDataUrl","__extends$a","__decorate$9","Signature","__extends$b","__decorate$a","ICONCSS","ITEMLIST","ITEMCONTAINER","SELECTED","INTERMEDIATE","LABEL","RESET","HIDDEN","DISABLED$2","READONLY","RTL$2","ANIMATION","FULLTEMPLATE","EMPTYTEMPLATE","SELECTEDVALUE","RATINGVALUE","LabelPosition","PrecisionType","Rating","currValue","previousValue","ratingItemContainer","spanItem","ratingValue","spanEle","isrerender","isUpdate","itemElement","isChange","content_1","templateFunction","ratingSpan","template","stringContent","tempEle","removeCss","isInteracted","isIncrease","__extends$c","__decorate$b","INPUTFIELD","RTL$3","OtpInputType","OtpInputStyle","TextTransform","OtpInput","valueContainer","inputValue","valueAtIndex","inputEle","separatorElement","extractedValue","transformingText","transformedText","currentInputElement","nextInputElement","previousInputElement","clipboardData","pastedText","pastedValues","pastedValueIndex","inputEventArgs","stringifiedValue","isValueChanged","addCss","cssClasses","variantClass","customAriaLabel","defaultLabel","ariaLabel","htmlAttributes","elementClass","inputModeValue","isLengthAdded","focusIndex","__extends","extendStatics","d","b","p","__","__decorate","decorators","target","key","desc","c","r","i","CLS_ROOT","CLS_RTL","CLS_DISABLE","CLS_HSCROLLBAR","CLS_HSCROLLCON","CLS_NAVARROW","CLS_NAVRIGHTARROW","CLS_NAVLEFTARROW","CLS_HSCROLLNAV","CLS_HSCROLLNAVRIGHT","CLS_HSCROLLNAVLEFT","CLS_DEVICE","CLS_OVERLAY","CLS_RIGHTOVERLAY","CLS_LEFTOVERLAY","OVERLAY_MAXWID","HScroll","_super","options","element","Browser","getUniqueID","Touch","EventHandler","isNullOrUndefined","scrollEle","scrollDiv","ele","innerEle","_i","innerEle_1","ele_1","keyEntity","nav","selectAll","overlay","detach","_a","elem","value","navEles","el","id","rightOverlayEle","clsRight","rightEle","navItem","leftEle","rightAttributes","clsLeft","leftAttributes","navEle","navLeftItem","_this","timeoutFun_1","e","trgt","scrollDis","timeoutFun","className","isContinuous","rootEle","classList","swipeEle","distance","start","animate","step","scrollVal","action","scrollValue","scrollStep","addDisable","removeDisable","arrowEle","arrowIcon","width","navLeftEle","navRightEle","leftOverlay","rightOverlay","scrollLeft","disEle","newProp","oldProp","prop","Property","NotifyPropertyChanges","Component","__extends$1","__decorate$1","CLS_ROOT$1","CLS_RTL$1","CLS_DISABLE$1","CLS_VSCROLLBAR","CLS_VSCROLLCON","CLS_NAVARROW$1","CLS_NAVUPARROW","CLS_NAVDOWNARROW","CLS_VSCROLLNAV","CLS_VSCROLLNAVUP","CLS_VSCROLLNAVDOWN","CLS_DEVICE$1","CLS_OVERLAY$1","CLS_UPOVERLAY","CLS_DOWNOVERLAY","OVERLAY_MAXWID$1","VScroll","scrollCnt","createElement","scrollBar","removeClass","navs","overlays","downOverlayEle","clsDown","downEle","upEle","clsUp","navElement","navUpItem","ev","scrollDistance","event","swipeElement","addDisableCls","removeDisableCls","height","navUpEle","navDownEle","upOverlay","downOverlay","scrollTop","addScrolling","container","content","scrollType","enableRtl","offset","containerOffset","contentOffset","parentElem","createScrollbar","scrollObj","select","destroyScroll","skipEle","menu","__extends$2","__decorate$2","ENTER","ESCAPE","FOCUSED","HEADER","SELECTED","SEPARATOR","UPARROW","DOWNARROW","LEFTARROW","RIGHTARROW","HOME","END","TAB","CARET","ITEM","DISABLED","HIDE","ICONS","RTL","POPUP","TEMPLATE_PROPERTY","FieldSettings","ChildProperty","MenuItem","Collection","MenuAnimationSettings","MenuBase","Animation","ul","ejInst","getValue","setValue","append","refEle","ejInstance","wrapper","idx","len","addClass","items","ListBase","isBlazor","targetElems","getScrollableParent","parent_1","rippleEffect","keyConfigs","KeyboardEvents","closest","actionName","actionNeeded","cul","defaultIdx","fliIdx","fli","cli","index","navIdxLen","popup","popups_1","allPopup","eventArgs","navIdx","item","aEle","sli","ulIndex","isIterated","item_1","wrapper_1","beforeCloseArgs","items_1","popups","isClose","cnt","ul_1","liElem_1","observedCloseArgs","popupEle","closeArgs","popupId","popupObj","isOpen","getInstance","Popup","trgtliId","closedLi","trgtLi","trgtpopUp","regExp","submenus","sli_1","item_2","portals","level","fields","isVisible","canOpen","filter","li","top","left","elemId","data","hdata","hli","getZindexPartial","targetEvent","source","destination","liStyle","liIndent","blankIconElem","menuIconElem","menuIconElemStyle","blankIconIndent","popupWrapper","isNestedOrVertical","spanElem","tempTitle","SanitizeHtmlHelper","spanTitle","spanIcon","observedHamburgerCloseArgs","x","y","fit","type","menuType","observedOpenArgs","animationOptions","eventArgs_1","collide","isCollide","offWidth","calculatePosition","blankIconList","iconLi","icon","cssProp","iconCssProps","iconSize","size","offsetEle","offsetLeft","offsetRight","px","newTop","xCollision","showIcon","listBaseOptions","args","span","hdrWrapper","regex","ulId","isDifferentElem","_loop_1","propName","fieldName","field","menuWrapper","cliWrapper","isInstLI","cliWrapperId","culIdx","cIdx","isHeader","classname","isUniqueId","isText","newItem","newItems","skipHdr","count","_loop_2","this_1","ul_2","ul_3","keys","wrapper1","ul1","lis","popStr","uls","targetSelctor","touchModule","parent_2","keyboardModule","isMenuOpen","pUlHeight","pElement","nIndex","isCallBack","enable","disabled","skipItem","i_1","ishide","validUl","iitems","text","isAfter","menuitem","Event$1","Complex","__extends$3","__decorate$3","CLS_VERTICAL","CLS_ITEMS","CLS_ITEM","CLS_RTL$2","CLS_SEPARATOR","CLS_POPUPICON","CLS_POPUPDOWN","CLS_POPUPOPEN","CLS_TEMPLATE","CLS_DISABLE$2","CLS_POPUPTEXT","CLS_TBARTEXT","CLS_TBAROVERFLOW","CLS_POPOVERFLOW","CLS_TBARBTN","CLS_TBARNAV","CLS_TBARSCRLNAV","CLS_TBARRIGHT","CLS_TBARLEFT","CLS_TBARCENTER","CLS_TBARPOS","CLS_HSCROLLCNT","CLS_VSCROLLCNT","CLS_HSCROLLBAR$1","CLS_POPUPNAV","CLS_POPUPCLASS","CLS_POPUP","CLS_TBARBTNTEXT","CLS_TBARNAVACT","CLS_TBARIGNORE","CLS_POPPRI","CLS_HIDDEN","CLS_MULTIROW","CLS_MULTIROWPOS","CLS_MULTIROW_SEPARATOR","CLS_EXTENDABLE_SEPARATOR","CLS_EXTEANDABLE_TOOLBAR","CLS_EXTENDABLECLASS","CLS_EXTENDPOPUP","CLS_EXTENDEDPOPOPEN","Item","Toolbar","btnItems","attrb","tabIndex","dataTabIndex","popCheck","keyCheck","popEle","tbarItems","tempEle","val","fChild","tbrNavChk","clst","navChk","scrollChk","popObj","popAnimate","nodes","popupCheck","extendedPopup","popFrstEle","tbarScrollChk","pos","sib","tbrItems","isPopupElement","clsList","popupNav","itemObj","tempItem","isClickBinded","clickedArgs","eleStyles","formatUnit","setStyleAttribute","ariaAttr","attributes","itemEleDom","innerItem","innerPos","innerItems","style","trgClass","eleWidth","itemWidth","popNav","scrollNav","navEleWidth","priorityCheck","eleItem","multiVar","extendVar","eleInlineItem","innerNav","vertical","innerNavDom","tbarObj","popupPri","eleHeight","sepHeight","poppedEle","nodeIndex","nodePri","tbarEle","tbarElement","sepItem","extendEle","toolEle","popupElePos","popIcon","overflowHeight","tbEleData","popupOffset","inEle","pre","popPriority","eleWid","eleOffset","checkoffset","sepCheck","itemCount","itemPopCount","checkClass","rVal","cls","mrgn","compuStyle","fstEleCheck","eleWid_1","sepEle","popedEle","indx","sepPri","des","elWid","wid","ig","ignoreCount","query","priEleCnt","eleSep","ignoreCheck","eleSepWidth","prevSep","destroy","isVer","dimension","popupEleWidth","ignoreEle","ignoreInx","root","tbarWidth","tbarItemsWid","elWidth","btnText","btn","eleSplice","inlineStyles","sepBeforePri_1","state_1","checkOverflow","margin","tbarWid","popWid","itemEle","alignDiv","alignEle","leftAlign_1","attr","keyVal","isEnable","elements","a","itemElement","itemsDiv","itemAgn","algIndex","eleIdx","indexAgn","btnItem","templateProp","itemType","eleObj","isComponent","templateFn","regEx","tempStr","compile$1","tempArray","toolbarTemplateID","firstChild","dom","textStr","iconCss","iconPos","btnTxt","btnObj","Button","tempDom","sTxt","overflow","curEle","previousEle","tabindexValue","multirowele","isHidden","isElement","eleIndex","nextEle","templateEle","registeredTemplates","registeredItem","closestItem","portalItem","tEle","changedProb","property","newProperty","popupPriCheck","booleanCheck","itemCol","innerItems_1","__extends$4","__decorate$4","CLS_ACRDN_ROOT","CLS_ROOT$2","CLS_ITEM$1","CLS_ITEMFOCUS","CLS_ITEMHIDE","CLS_HEADER","CLS_HEADERICN","CLS_HEADERCTN","CLS_CONTENT","CLS_CTENT","CLS_TOOGLEICN","CLS_COLLAPSEICN","CLS_EXPANDICN","CLS_RTL$3","CLS_CTNHIDE","CLS_SLCT","CLS_SLCTED","CLS_ACTIVE","CLS_ANIMATE","CLS_DISABLE$3","CLS_TOGANIMATE","CLS_NEST","CLS_EXPANDSTATE","CLS_CONTAINER","AccordionActionSettings","AccordionAnimationSettings","AccordionItem","Accordion","isRippleEnabled","nested","acrdItem","acrdItem_1","headerEle","template","innerEles","tglIcon","hdrColIcon","innerDataSourceItem","acrdEle","acrdnItem","acrdnHdr","acrdnCtn","acrdnCtnItem","ctnCheck","acrdActive","cntclkCheck","inlineAcrdnSel","inlineEleAcrdn","nestContCheck","acrdcontainer","acrdnchild","acrdAniEle","acrdAniEle_1","sameContentCheck","sameHeader","acrdnCtn_1","acrdnRoot","expandState","clstItem","header","ctnEle","hdrEle","hdr","hdrIcnEle","hdrIcon","parseddata","temString","eleVal","templateProps","templateName","itemcnt","ctn","trgtItemEle","animation","expandArgs","animationMode","ef","icn","progress","temp","itemCollection","trgtItEl","trgtHeight","itemHeight","remain","addItems","addItem","itemIndex","innerItemEle","eleHeader","isExpand","expandedItem","ctnElePos","eleStr","toElement","acrdn","isRefresh","changedProp","j","k","oldVal","newVal","activeContent","__extends$5","__decorate$5","ContextMenu","__extends$7","extendStatics","d","b","p","__","__decorate$7","decorators","target","key","desc","c","r","i","CLS_TAB","CLS_HEADER$1","CLS_BLA_TEM","CLS_CONTENT$1","CLS_NEST$1","CLS_ITEMS$1","CLS_ITEM$2","CLS_TEMPLATE$1","CLS_RTL$4","CLS_ACTIVE$1","CLS_DISABLE$4","CLS_HIDDEN$1","CLS_FOCUS","CLS_ICONS","CLS_ICON","CLS_ICON_TAB","CLS_ICON_CLOSE","CLS_CLOSE_SHOW","CLS_TEXT","CLS_INDICATOR","CLS_WRAP","CLS_TEXT_WRAP","CLS_TAB_ICON","CLS_TB_ITEMS","CLS_TB_ITEM","CLS_TB_POP","CLS_TB_POPUP","CLS_HOR_NAV","CLS_POPUP_OPEN","CLS_POPUP_CLOSE","CLS_PROGRESS","CLS_IGNORE","CLS_OVERLAY$2","CLS_HSCRCNT","CLS_VSCRCNT","CLS_VTAB","CLS_VERTICAL$1","CLS_VLEFT","CLS_VRIGHT","CLS_HBOTTOM","CLS_FILL","TABITEMPREFIX","CLS_REORDER_ACTIVE_ITEM","TabActionSettings","_super","Property","ChildProperty","TabAnimationSettings","Complex","Header","TabItem","Tab","options","element","_this","isNullOrUndefined","cntEle","select","remove","nested","closest","name","Browser","css","setStyleAttribute","formatUnit","attributes","getRandomId","ele","item","index","header","rippleEffect","selectAll","scrCnt","hdrPlace","tabItems","count","hdrItems","tabItems_1","attr","txt","cont","wrap","Toolbar","toolbarHeader","hdrItem","contents","addClass","Touch","items","tbItems","maxId","tItems","txtWrapEle","spliceArray","pos","SanitizeHtmlHelper","itemIndex","disabled","hidden","tHtml","txtEmpty","tEle","icon","tCont","detach","tabIndex","wrapAttrs","attrObj","tItem","spliceItemIndex","tabHeader","node","popIcon","tbrItems","lastChild","isOverflow","ripEle","prevEle","val","trg","prev","current","animation","checkRTL","oldCnt","prevIndex","animateObj","Animation","id","value","itemCollection","newCnt","idNo","isPrevent","cnt","openEff","animationMode","clsEff","trgParent","trgIndex","headers","e","idList","eleStr","tempEle","prop","templateFn","compile$1","templateFUN","el","text","callType","eleVal","no","isVertical","tbPos","place","activeTab","removeClass","curActItem","headerPos","contentPos","cls","list","hdrEle","cs","trgHdrEle","root","bar","scrollCnt","tbHeight","top_1","tbWidth","skipDataBind","isInteracted","trg_1","eleTrg","eventArg","selectEventArgs","config","tbPop","tbPopObj","EventHandler","KeyboardEvents","args","nestedTab","k","clstHead","actEle","isVisible","nxtSib","scrBar","scrStart","scrEnd","eleStart","eleWidth","eleEnd","eleViewRange","L10n","newProp","oldProp","selectElement","changedProp","properties","j","oldVal","newVal","hdr","cntItem","textVal","arr","isHiddenEle","strVal","templateEle","templateName","className","registeredTemplates","registeredItem","closestItem","portals","portalItem","dragObj","Draggable","dragIndex","dropIndex","dropItem","dragArgs","scrollRightNavEle","scrollLeftNavEle","hscrollBar","scrollContentWidth","x","tabItemDragArgs","dragsIndex","popupContainer","lastEle","dragStopArgs","tabItemDropArgs","addArgs","tabAddingArgs","lastEleIndex","itemsCount","tabItems_2","i_1","textValue_1","removeArgs","tabRemovingArgs","targetEleIndex","cntTrg","event","selectArgs","itemId","tabItemId","sortedKeys","a","_i","sortedKeys_1","headerEle","detachContent","mainContents","txtString","conte","crElem","txtWrap","tConts","wrapAtt","wraper","activeEle","Collection","Event$1","NotifyPropertyChanges","Component","__extends$8","__decorate$8","ROOT","CONTROL","COLLAPSIBLE","EXPANDABLE","LISTITEM","LISTTEXT","LISTWRAP","IELISTWRAP","PARENTITEM","HOVER","ACTIVE","LOAD","PROCESS","ICON","TEXTWRAP","INPUT","INPUTGROUP","TREEINPUT","EDITING","RTL$1","INTERACTION","DRAGITEM","DROPPABLE","DRAGGING","SIBLING","DROPIN","DROPNEXT","DROPOUT","NODROP","FULLROWWRAP","FULLROW","SELECTED$1","EXPANDED","NODECOLLAPSED","DISABLE","DROPCOUNT","CHECK","INDETERMINATE","CHECKBOXWRAP","CHECKBOXFRAME","CHECKBOXRIPPLE","RIPPLE","RIPPLEELMENT","FOCUS","IMAGE","BIGGER","SMALL","CHILD","ITEM_ANIMATION_ACTIVE","DISABLED$1","PREVENTSELECT","treeAriaAttr","FieldsSettings","ActionSettings","NodeAnimationSettings","TreeView","TreeView_1","keyEntity","tempStr","rippleModel","iconModel","isEnabled","template","changeDataSource","DataManager","mapper","columns","query","Query","_a","col","ListBase","getValue","rootItems","isSorted","sortedData","rootNodes","parentEle","resultData","resultId","childData","child","childId","mapper_1","checkState","checkedId","checkedData","fieldId","childItems","checkNodes","childNodes","preElement","check","indeterminate","childCheckedElement","data","nodeId","OldCheckedNodes","_loop_1","this_1","nodeCheck","parentElement","ariaChecked","treeData","checkedParent","checkedChild","subChildItems","len","checkboxEle","createCheckBox","checkValue","frame","fields","textEle","dataId","eventArgs","rippleSpan","rippleMouseHandler","action","cssClass","actionValue","ds","dataSource","groupBy","cusQuery","grpItem","itemObj","isFromExpandAll","expandChild","eNodes","iNodes","sNodes","cNodes","nodes","liElement","ulElement","checkedNodes","indeterminateNodes","checkBoxEle","checkedCount","dataUid_1","oldCheckedNodes","parentNode","oldNode","parentUL","currentParent","childElement","checkBoxes","isChecked","parentCheck","childCheck","checkedState","isUndefined","isNodeChecked","doCheck","liEle","checkBox","checkbox","currLi","nodeDetails","parent_1","subChild","indeterminateData","parent","subId","childElementCheck","innerChild","wrapper","state","isAdd","observedArgs","ariaState","frameSpan","nodeData","firstUl","firstNode","ulEle","length","eUids","eNode","eUid","callback","sUids","sNode","classList","li","rippleElement","rippleIcons","checkWrapper","checkElement","isCheck","dataManager","uncheckedItems","loaded","start_1","end_1","ul_1","liEle_1","activeElement_1","ul","colArgs","start","end","activeElement","toRemove","remaining","currentHeight","parentLi","eicon","level","mapper_2","setValue","nodeLevel","dataLevel","obj","parentId","isRoot","tempField","objlen","tempArray","childIndex","idField","items_1","nestedChildNodes","cIcons","curLi","multiSelect","startIndex","endIndex","temp","currNode","focusedNode","selectedLI","selectedLI_1","liEles","icon_1","inpEle","isUp","focusNode","parentPos","isTowards","nextNode","checkWrap","parentIndex","currentItem","requiresUpdate","shouldPreventUpdate","htmlAttributes","childIsCheck","newCheck","checked","validateCheck","length_1","hierChildId","childId_1","toBeOpened","isBackwards","rootNode","selectedItem","fNode","prevNode","endNode","preNode","focusedElement","currentLi","hoveredNode","fromDS","pNode","pid","selected","selectable","expanded","hasChildren","checkboxElement","nodeFields","tempArr","append","oldClass","newClass","oldInpEle","innerEle","inpWidth","style_1","style","Input","inputEle","newText","txtEle","isInput","newData","getElement","newList","children","toBind","virtualEle","dragRoot","dragWrap","cloneEle","nLen","cNode","listItem","dropTarget","preventTargetExpand","dropRoot","Droppable","touchList","dropWrap","offsetY","offsetX","dropLi","collapse","expand","templateTarget","virEle","drop","liArray","dragInstance","dragTarget","dragLi","dropUl","dragParentUl","dragParentLi","pre","dropParentUl","childLi","dropParentLi","removedData","refId","currPid","dropIcon","dragIcon","sibEle","dragNode","dropData","draggedNode","draggedNodeData","newParent","dragLiParent","dragParent","targetParent","indexValue","iconCss","iconClass","position","dropTar","parent_2","parent_3","toAdd","rowDiv","liEles_1","liEles_2","excludeHiddenNodes","currentLevel","eIcons","eIcons_1","vNodes","dm","newId","currId","selector","toExpand","isRemote","dropEle","dropIcon1","refNode","returnValue","updated","childObj","validNodes","validID","strNodes","sleNodes","l","slelen","enodes","nodelen","cnodes","m","names","field","fieldName","matched","matches","secondTap","createSpinner","showSpinner","hideSpinner","parent_4","checkNode","isRefreshChild","childValue","currID","found","operation","newNode","prevent","matchedArr","crud","changes","nodesID","parentsID","parentsId","parents","preventAnimation","disabledNodes","sourceNodes","updatedChildValue","newNodeData","parentData","extend","newliEle","newTextEle","newIcon","fullEle","merge","__extends$9","__decorate$9","CONTROL$1","ROOT$1","DOCKER","CLOSE","OPEN","TRASITION","DEFAULTBACKDROP","RTL$2","RIGHT","LEFT","OVER","PUSH","SLIDE","VISIBILITY","DISPLAY","MAINCONTENTANIMATION","DISABLEANIMATION","CONTEXT","SIDEBARABSOLUTE","Sidebar","siblingElement","width","classELement","sibling","closeArguments","observedcloseArgs","elementWidth","openArguments","observedopenArgs","changeArguments","targetString","media","isRendered","type","margin","_c0","_c1","_c2","_c3","_c4","_c5","_c6","_c12","_c13","_c14","input$6","outputs$h","AccordionItemDirective","ComplexBase","viewContainerRef","setValue","__ngFactoryType__","ɵɵdirectiveInject","ViewContainerRef","ɵɵdefineDirective","rf","ctx","dirIndex","ɵɵcontentQuery","_c0","_c1","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵInheritDefinitionFeature","__decorate","Template","AccordionItemsDirective","ArrayBase","outputs$g","twoWays$a","AccordionComponent","Accordion","ngEle","srenderer","viewContainerRef","injector","setValue","ComponentBase","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","_c2","_c3","AccordionItemsDirective","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵInheritDefinitionFeature","_c5","ɵɵprojectionDef","_c4","ɵɵprojection","__decorate","Template","ComponentMixins","AccordionModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","input$5","outputs$f","ItemDirective","ComplexBase","viewContainerRef","setValue","__ngFactoryType__","ɵɵdirectiveInject","ViewContainerRef","ɵɵdefineDirective","rf","ctx","dirIndex","ɵɵcontentQuery","_c6","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵInheritDefinitionFeature","__decorate","Template","ItemsDirective","ArrayBase","outputs$e","twoWays$9","ToolbarComponent","Toolbar","ngEle","srenderer","viewContainerRef","injector","setValue","ComponentBase","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","ItemsDirective","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵInheritDefinitionFeature","_c5","ɵɵprojectionDef","_c4","ɵɵprojection","__decorate","ComponentMixins","ToolbarModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","input$2","outputs$8","TabItemDirective","ComplexBase","viewContainerRef","setValue","__ngFactoryType__","ɵɵdirectiveInject","ViewContainerRef","ɵɵdefineDirective","rf","ctx","dirIndex","ɵɵcontentQuery","_c1","_c12","_c2","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵInheritDefinitionFeature","__decorate","Template","TabItemsDirective","ArrayBase","outputs$7","twoWays$5","TabComponent","Tab","ngEle","srenderer","viewContainerRef","injector","setValue","ComponentBase","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","TabItemsDirective","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵInheritDefinitionFeature","_c5","ɵɵprojectionDef","_c4","ɵɵprojection","__decorate","ComponentMixins","TabModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","outputs$6","twoWays$4","TreeViewComponent","TreeView","ngEle","srenderer","viewContainerRef","injector","setValue","ComponentBase","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","_c13","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵInheritDefinitionFeature","__decorate","Template","ComponentMixins","TreeViewModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","outputs$5","twoWays$3","SidebarComponent","Sidebar","ngEle","srenderer","viewContainerRef","injector","setValue","ComponentBase","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","_c14","rf","ctx","ɵɵprojectionDef","ɵɵprojection","__decorate","ComponentMixins","SidebarModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","Interrupt","source","options","fn","IdleExpiry","value","expiry","AlternativeStorage","key","index","LocalStorage","storage","data","__ngFactoryType__","ɵɵdefineInjectable","LocalStorageExpiry","localStorage","idling","ɵɵinject","KeepaliveSvc","AutoResume","Idle","zone","keepaliveSvc","platformId","EventEmitter","seconds","sources","self","sub","args","skipExpiry","timeout","watchFn","frequency","force","eventArgs","intervalFn","resume","interrupt","now","diff","countdownMs","handleName","handle","NgZone","PLATFORM_ID","InterruptArgs","innerArgs","InterruptSource","attachFn","detachFn","defaultThrottleDelay","EventTargetInterruptSource","target","events","opts","Subscription","isPlatformServer","eventTarget","fromEvents","eventName","fromEvent","merge","filter","throttleTime","handler","event","DocumentInterruptSource","WindowInterruptSource","StorageInterruptSource","NgIdleModule","LocalStorageExpiry","IdleExpiry","Idle","__ngFactoryType__","ɵɵdefineNgModule","ɵɵdefineInjector","LocalStorage","createDefaultInterruptSources","options","DocumentInterruptSource","StorageInterruptSource","DEFAULT_INTERRUPTSOURCES","homePageName","adminPageName","configurationAdministrationPageName","setPasswordPageName","forgotPasswordPageName","confirmEmailPageName","changePasswordPageName","editProfilePageName","loginPageName","parkPageName","parkingPageName","userManagementPageName","userEditPageName","clientAdministrationPageName","companyAdministrationPageName","parkerAdministrationPageName","tagsAdministrationPageName","onBoardingWizardPageName","tagMasterPageName","parkingRangerSessionsPageName","zoneDamagePageName","deviceInteractionPageName","parkingCardPageName","reportsPageName","savedReportsPageName","tagsPerParkerPageName","parkerRegistrationsPageName","falseRecordingsPageName","parkerTurnoverPageName","parkerExtractPageName","iamReportWithTagInformationPageName","deviceStatusPageName","parkerPerTariffPageName","linkParkerToUserPageName","automaticParkingPageName","paymentPageName","userExtractPageName","homeRoute","homePageName","changePasswordRoute","changePasswordPageName","forgotPasswordRoute","forgotPasswordPageName","editProfileRoute","editProfilePageName","loginRoute","loginPageName","userEditRoute","userEditPageName","adminRoute","adminPageName","clientAdministrationRoute","clientAdministrationPageName","userManagementRoute","userManagementPageName","configurationAdministrationRoute","configurationAdministrationPageName","companyAdministrationRoute","companyAdministrationPageName","parkerAdministrationRoute","parkerAdministrationPageName","tagsAdministrationRoute","tagsAdministrationPageName","onBoardingWizardRoute","onBoardingWizardPageName","tagMasterRoute","tagMasterPageName","parkRoute","parkPageName","parkingRoute","parkingPageName","automaticParkingRoute","automaticParkingPageName","parkerRegistrationRoute","parkerRegistrationsPageName","parkingRangerSessionsRoute","parkingRangerSessionsPageName","zoneDamageRoute","zoneDamagePageName","deviceInteractionRoute","deviceInteractionPageName","parkingCardRoute","parkingCardPageName","reportsRoute","reportsPageName","savedReportsRoute","savedReportsPageName","tagsPerParkerRoute","tagsPerParkerPageName","parkerRegistrationsRoute","falseRecordingsRoute","falseRecordingsPageName","parkerTurnoverRoute","parkerTurnoverPageName","parkerExtractRoute","parkerExtractPageName","deviceStatusRoute","deviceStatusPageName","automaticParkingReportRoute","paymentReportRoute","paymentPageName","userExtractRoute","userExtractPageName","_c0","_c1","_c2","_c3","input","outputs$2","DialogButtonDirective","ComplexBase","viewContainerRef","setValue","__ngFactoryType__","ɵɵdirectiveInject","ViewContainerRef","ɵɵdefineDirective","ɵɵInheritDefinitionFeature","ButtonsDirective","ArrayBase","rf","ctx","dirIndex","ɵɵcontentQuery","_t","ɵɵqueryRefresh","ɵɵloadQuery","outputs$1","twoWays$1","DialogComponent","Dialog","ngEle","srenderer","viewContainerRef","injector","setValue","ComponentBase","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","_c0","_c1","_c2","ButtonsDirective","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵInheritDefinitionFeature","_c3","ɵɵprojectionDef","ɵɵprojection","__decorate","Template","ComponentMixins","DialogModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","outputs","twoWays","TooltipComponent","Tooltip","ngEle","srenderer","viewContainerRef","injector","setValue","ComponentBase","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","_c2","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵInheritDefinitionFeature","_c3","ɵɵprojectionDef","ɵɵprojection","__decorate","Template","ComponentMixins","TooltipModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","TranslateLoader","TranslateFakeLoader","lang","of","ɵTranslateFakeLoader_BaseFactory","__ngFactoryType__","ɵɵgetInheritedFactory","ɵɵdefineInjectable","MissingTranslationHandler","FakeMissingTranslationHandler","params","equals","o1","o2","t1","t2","length","key","keySet","isDefined","value","isObject","item","mergeDeep","target","source","output","TranslateParser","TranslateDefaultParser","expr","result","keys","fn","substring","b","r","ɵTranslateDefaultParser_BaseFactory","TranslateCompiler","TranslateFakeCompiler","translations","ɵTranslateFakeCompiler_BaseFactory","TranslateStore","EventEmitter","USE_STORE","InjectionToken","USE_DEFAULT_LANG","DEFAULT_LANGUAGE","USE_EXTEND","TranslateService","defaultLang","currentLang","langs","store","currentLoader","compiler","parser","missingTranslationHandler","useDefaultLang","isolate","extend","defaultLanguage","pending","take","res","loadingTranslations","shareReplay","map","__spreadValues","err","shouldMerge","interpolateParams","observables","k","isObservable","sources","forkJoin","arr","obj","index","concatMap","concat","defer","switchMap","event","browserLang","browserCultureLang","ɵɵinject","TranslatePipe","translate","_ref","key","interpolateParams","translations","onTranslation","res","isObservable","query","args","equals","isDefined","validArgs","event","__ngFactoryType__","ɵɵdirectiveInject","TranslateService","ChangeDetectorRef","ɵɵdefinePipe","ɵɵdefineInjectable","TranslateModule","config","TranslateLoader","TranslateFakeLoader","TranslateCompiler","TranslateFakeCompiler","TranslateParser","TranslateDefaultParser","MissingTranslationHandler","FakeMissingTranslationHandler","TranslateStore","USE_STORE","USE_DEFAULT_LANG","USE_EXTEND","DEFAULT_LANGUAGE","ɵɵdefineNgModule","ɵɵdefineInjector","ModalDialog","constructor","title","message","showFooter","onOkSubject","Subject","onCancelSubject","ModalService","dialogSubject","dialogStack","subscription","Subscription","showMessageDialog","dialog","showDialog","showOkCancelDialog","closeDialog","dlgIndex","findIndex","dlg","splice","length","next","unshift","triggerModal","add","subscribe","removeActiveDialog","unsubscribe","factory","ɵfac","providedIn","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind1","ctx_r1","modalDialog","title","ɵɵelement","ɵɵproperty","message","ɵɵsanitizeHtml","ɵɵelementContainerStart","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r3","ɵɵnextContext","ɵɵresetView","cancelClicked","ɵɵelementEnd","okClicked","ɵɵadvance","ɵɵtextInterpolate","ɵɵtemplate","ModalComponent_ng_template_6_ng_container_0_Template","showFooter","ModalComponent","constructor","modalService","cdr","ngOnInit","dialogSubject","subscribe","actualDialog","showDialog","detectChanges","hideDialog","onOkSubject","next","onCancelSubject","onClose","eventArgs","isInteracted","dialog","hide","zIndex","show","ɵɵdirectiveInject","ModalService","ChangeDetectorRef","selectors","viewQuery","rf","ctx","$event","i0","_r1","ModalComponent_ng_template_2_Template","ɵɵtemplateRefExtractor","ModalComponent_ng_template_4_Template","ModalComponent_ng_template_6_Template","ɵɵpureFunction1","_c1","DialogModule","DialogComponent","NgClass","NgIf","TranslateModule","TranslatePipe","styles","__extends","extendStatics","d","b","p","__","__decorate","decorators","target","key","desc","c","r","i","ROOT","CONTAINER","TITLE","WIDTHFULL","CONTENT","MESSAGE","ICON","PROGRESS","ACTIOBUTTONS","CLOSEBTN","RTL","TOAST_BLAZOR_HIDDEN","ToastPosition","_super","Property","ChildProperty","ButtonModelProps","ToastAnimations","ToastAnimationSettings","Complex","Toast","options","element","_this","setStyleAttribute","isNullOrUndefined","detach","Browser","toastObj","collectionObj","extend","getUniqueID","Touch","id","proxy","toastEle","closest","hideAnimation","isUndefined","cssClass","split","classList","formatUnit","value","item","SanitizeHtmlHelper","beforeEvent","interactionType","ele","prob","templateFn","tempVar","tmpArray","templateProps","elem","clo","compile$1","initializeCSPTemplate","isString","el","intervalId","isClosed","pos","isBlazor","toastBeforeClose","hideAnimate","animate","animationMode","toastClose","toastBeforeCloseArgs","Animation","attributes","localeText","L10n","closeIconTitle","closeBtn","EventHandler","progress","progressObj","percentage","iconEle","titleEle","msgContainer","contentEle","isContent","tempEle_1","actionBtnContainer","actionBtn","btnDom","Button","toastBeforeOpen","toastBeforeOpenArgs","removeClass","getZindexPartial","clickArgs","isCloseIcon","toastClickArgs","showAnimate","toastOpen","newProp","oldProp","container","_i","_a","prop","Collection","Event$1","NotifyPropertyChanges","Component","ToastUtility","show","content","type","timeOut","toastContainerElement","createElement","untilToastsModel","icon","__extends$1","__decorate$1","MSG_ICON","MSG_CLOSE_ICON","MSG_CONTENT","MSG_CONTENT_CENTER","RTL$1","SUCCESS","WARNING","INFO","ERROR","OUTLINED","FILLED","HIDE","Message","_super","__extends$1","options","element","_this","localeText","L10n","closeIconTitle","templateFn","isNullOrUndefined","compile$1","tempArr","append","classList","removeClass","addClass","oldCssClass","event","eventArgs","EventHandler","newProp","oldProp","_i","_a","prop","detach","cssClass","className","__decorate$1","Property","Event$1","NotifyPropertyChanges","Component","__extends$2","extendStatics","d","b","p","__","__decorate$2","decorators","target","key","desc","c","r","i","cssClassName","Skeleton","_super","__extends$2","options","element","getUniqueID","attributes","newProp","oldProp","_i","_a","prop","removeClass","attrs","cssClass","i","isNullOrUndefined","shapeCss","cssClassName","removeCss","addClass","width","formatUnit","height","__decorate$2","Property","NotifyPropertyChanges","Component","_c0","_c1","_c2","_c3","input","outputs$3","ButtonModelPropDirective","ComplexBase","viewContainerRef","setValue","__ngFactoryType__","ɵɵdirectiveInject","ViewContainerRef","ɵɵdefineDirective","ɵɵInheritDefinitionFeature","ButtonModelPropsDirective","ArrayBase","rf","ctx","dirIndex","ɵɵcontentQuery","_t","ɵɵqueryRefresh","ɵɵloadQuery","outputs$2","twoWays$2","ToastComponent","Toast","ngEle","srenderer","viewContainerRef","injector","setValue","ComponentBase","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","_c0","_c1","_c2","ButtonModelPropsDirective","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵInheritDefinitionFeature","_c3","ɵɵprojectionDef","ɵɵprojection","__decorate","Template","ComponentMixins","ToastModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","outputs$1","twoWays$1","MessageComponent","Message","ngEle","srenderer","viewContainerRef","injector","setValue","ComponentBase","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","_c1","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵInheritDefinitionFeature","_c3","ɵɵprojectionDef","ɵɵprojection","__decorate","Template","ComponentMixins","MessageModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","LuxonError","InvalidDateTimeError","reason","InvalidIntervalError","InvalidDurationError","ConflictingSpecificationError","InvalidUnitError","unit","InvalidArgumentError","ZoneIsAbstractError","n","s","l","DATE_SHORT","DATE_MED","DATE_MED_WITH_WEEKDAY","DATE_FULL","DATE_HUGE","TIME_SIMPLE","TIME_WITH_SECONDS","TIME_WITH_SHORT_OFFSET","TIME_WITH_LONG_OFFSET","TIME_24_SIMPLE","TIME_24_WITH_SECONDS","TIME_24_WITH_SHORT_OFFSET","TIME_24_WITH_LONG_OFFSET","DATETIME_SHORT","DATETIME_SHORT_WITH_SECONDS","DATETIME_MED","DATETIME_MED_WITH_SECONDS","DATETIME_MED_WITH_WEEKDAY","DATETIME_FULL","DATETIME_FULL_WITH_SECONDS","DATETIME_HUGE","DATETIME_HUGE_WITH_SECONDS","Zone","ZoneIsAbstractError","ts","opts","format","otherZone","singleton","SystemZone","_SystemZone","Zone","ts","format","locale","parseZoneInfo","formatOffset","otherZone","dtfCache","makeDTF","zone","typeToPos","hackyOffset","dtf","date","formatted","parsed","fMonth","fDay","fYear","fadOrBc","fHour","fMinute","fSecond","partsOffset","filled","i","type","value","pos","isUndefined","ianaZoneCache","IANAZone","_IANAZone","Zone","name","s","ts","format","locale","parseZoneInfo","formatOffset","year","month","day","adOrBc","hour","minute","second","asUTC","objToLocalTS","asTS","over","otherZone","intlLFCache","getCachedLF","locString","opts","key","dtf","intlDTCache","getCachedDTF","intlNumCache","getCachedINF","inf","intlRelCache","getCachedRTF","_a","base","cacheKeyOpts","__objRest","sysLocaleCache","systemLocale","weekInfoCache","getCachedWeekInfo","data","locale","parseLocaleString","localeStr","xIndex","uIndex","options","selectedStr","smaller","numberingSystem","calendar","intlConfigString","outputCalendar","mapMonths","f","ms","i","dt","DateTime","mapWeekdays","listStuff","loc","length","englishFn","intlFn","mode","supportsFastNumbers","PolyNumberFormatter","intl","forceSimple","padTo","floor","otherOpts","intlOpts","__spreadValues","fixed","roundTo","padStart","PolyDateFormatter","z","gmtOffset","offsetZ","IANAZone","value","parts","part","offsetName","__spreadProps","PolyRelFormatter","isEnglish","hasRelative","count","unit","formatRelativeTime","fallbackWeekSettings","Locale","_Locale","weekSettings","defaultToEN","specifiedLocale","Settings","localeR","numberingSystemR","outputCalendarR","weekSettingsR","validateWeekSettings","numbering","parsedLocale","parsedNumberingSystem","parsedOutputCalendar","isActuallyEn","hasNoWeirdness","alts","format","months","formatStr","weekdays","meridiems","eras","field","df","results","matching","m","hasLocaleWeekInfo","other","singleton","FixedOffsetZone","_FixedOffsetZone","Zone","offset","s","r","signedOffset","formatOffset","ts","format","otherZone","InvalidZone","Zone","zoneName","normalizeZone","input","defaultZone","offset","isUndefined","Zone","isString","lowered","SystemZone","FixedOffsetZone","IANAZone","isNumber","InvalidZone","numberingSystems","numberingSystemsUTF16","hanidecChars","parseDigits","str","value","i","code","key","min","max","digitRegexCache","resetDigitRegexCache","digitRegex","numberingSystem","append","ns","now","defaultZone","defaultLocale","defaultNumberingSystem","defaultOutputCalendar","twoDigitCutoffYear","throwOnInvalid","defaultWeekSettings","Settings","n","zone","normalizeZone","SystemZone","locale","numberingSystem","outputCalendar","weekSettings","validateWeekSettings","cutoffYear","Locale","IANAZone","DateTime","resetDigitRegexCache","Invalid","reason","explanation","nonLeapLadder","leapLadder","unitOutOfRange","unit","value","Invalid","dayOfWeek","year","month","day","d","js","computeOrdinal","isLeapYear","uncomputeOrdinal","ordinal","table","month0","i","isoWeekdayToLocal","isoWeekday","startOfWeek","gregorianToWeek","gregObj","minDaysInFirstWeek","weekday","weekNumber","weekYear","weeksInWeekYear","__spreadValues","timeObject","weekToGregorian","weekData","weekdayOfJan4","yearInDays","daysInYear","gregorianToOrdinal","gregData","ordinalToGregorian","ordinalData","usesLocalWeekValues","obj","loc","isUndefined","ConflictingSpecificationError","hasInvalidWeekData","validYear","isInteger","validWeek","integerBetween","validWeekday","hasInvalidOrdinalData","validOrdinal","hasInvalidGregorianData","validMonth","validDay","daysInMonth","hasInvalidTimeData","hour","minute","second","millisecond","validHour","validMinute","validSecond","validMillisecond","isUndefined","o","isNumber","isInteger","isString","isDate","hasRelative","hasLocaleWeekInfo","maybeArray","thing","bestBy","arr","by","compare","best","next","pair","pick","obj","keys","a","k","hasOwnProperty","prop","validateWeekSettings","settings","InvalidArgumentError","integerBetween","v","bottom","top","floorMod","x","n","padStart","input","isNeg","padded","parseInteger","string","parseFloating","parseMillis","fraction","f","roundTo","number","digits","towardZero","factor","isLeapYear","year","daysInYear","daysInMonth","month","modMonth","modYear","objToLocalTS","d","firstWeekOffset","minDaysInFirstWeek","startOfWeek","isoWeekdayToLocal","dayOfWeek","weeksInWeekYear","weekYear","weekOffset","weekOffsetNext","untruncateYear","Settings","parseZoneInfo","ts","offsetFormat","locale","timeZone","date","intlOpts","modified","__spreadValues","parsed","m","signedOffset","offHourStr","offMinuteStr","offHour","offMin","offMinSigned","asNumber","value","numericValue","normalizeObject","normalizer","normalized","u","formatOffset","offset","format","hours","minutes","sign","timeObject","monthsLong","monthsShort","monthsNarrow","months","length","weekdaysLong","weekdaysShort","weekdaysNarrow","weekdays","meridiems","erasLong","erasShort","erasNarrow","eras","meridiemForDateTime","dt","weekdayForDateTime","monthForDateTime","eraForDateTime","formatRelativeTime","unit","count","numeric","narrow","units","lastable","isDay","isInPast","fmtValue","singular","lilUnits","fmtUnit","stringifyTokens","splits","tokenToString","s","token","macroTokenToFormatOpts","DATE_SHORT","DATE_MED","DATE_FULL","DATE_HUGE","TIME_SIMPLE","TIME_WITH_SECONDS","TIME_WITH_SHORT_OFFSET","TIME_WITH_LONG_OFFSET","TIME_24_SIMPLE","TIME_24_WITH_SECONDS","TIME_24_WITH_SHORT_OFFSET","TIME_24_WITH_LONG_OFFSET","DATETIME_SHORT","DATETIME_MED","DATETIME_FULL","DATETIME_HUGE","DATETIME_SHORT_WITH_SECONDS","DATETIME_MED_WITH_SECONDS","DATETIME_FULL_WITH_SECONDS","DATETIME_HUGE_WITH_SECONDS","Formatter","_Formatter","locale","opts","fmt","current","currentFull","bracketed","i","c","formatOpts","dt","__spreadValues","interval","n","p","padStart","knownEnglish","useDateTimeFormatter","string","extract","formatOffset","meridiem","meridiemForDateTime","month","length","standalone","monthForDateTime","weekday","weekdayForDateTime","maybeMacro","era","eraForDateTime","dur","tokenToField","lildur","mapped","tokens","realTokens","found","literal","val","collapsed","t","ianaRegex","combineRegexes","regexes","full","f","r","combineExtractors","extractors","m","mergedVals","mergedZone","cursor","ex","val","zone","next","__spreadValues","parse","s","patterns","regex","extractor","simpleParse","keys","match","ret","i","parseInteger","offsetRegex","isoExtendedZone","isoTimeBaseRegex","isoTimeRegex","isoTimeExtensionRegex","isoYmdRegex","isoWeekRegex","isoOrdinalRegex","extractISOWeekData","extractISOOrdinalData","sqlYmdRegex","sqlTimeRegex","sqlTimeExtensionRegex","int","pos","fallback","isUndefined","extractISOYmd","extractISOTime","parseMillis","extractISOOffset","local","fullOffset","signedOffset","FixedOffsetZone","extractIANAZone","IANAZone","isoTimeOnly","isoDuration","extractISODuration","yearStr","monthStr","weekStr","dayStr","hourStr","minuteStr","secondStr","millisecondsStr","hasNegativePrefix","negativeSeconds","maybeNegate","num","force","parseFloating","obsOffsets","fromStrings","weekdayStr","result","untruncateYear","monthsShort","weekdaysLong","weekdaysShort","rfc2822","extractRFC2822","obsOffset","milOffset","offHourStr","offMinuteStr","offset","preprocessRFC2822","rfc1123","rfc850","ascii","extractRFC1123Or850","extractASCII","isoYmdWithTimeExtensionRegex","isoWeekWithTimeExtensionRegex","isoOrdinalWithTimeExtensionRegex","isoTimeCombinedRegex","extractISOYmdTimeAndOffset","extractISOWeekTimeAndOffset","extractISOOrdinalDateAndTime","extractISOTimeAndOffset","parseISODate","parseRFC2822Date","parseHTTPDate","parseISODuration","extractISOTimeOnly","parseISOTimeOnly","sqlYmdWithTimeExtensionRegex","sqlTimeCombinedRegex","extractISOTimeOffsetAndIANAZone","parseSQL","INVALID","lowOrderMatrix","casualMatrix","__spreadValues","daysInYearAccurate","daysInMonthAccurate","accurateMatrix","orderedUnits","reverseUnits","clone","dur","alts","clear","conf","Duration","durationToMillis","matrix","vals","sum","unit","normalizeValues","factor","previous","current","isUndefined","previousVal","conv","rollUp","fraction","removeZeroes","newVals","key","value","_Duration","config","accurate","Locale","count","opts","obj","InvalidArgumentError","normalizeObject","durationLike","isNumber","text","parsed","parseISODuration","parseISOTimeOnly","reason","explanation","invalid","Invalid","Settings","InvalidDurationError","normalized","InvalidUnitError","o","fmt","fmtOpts","__spreadProps","Formatter","l","val","n","s","roundTo","millis","DateTime","duration","result","k","hasOwnProperty","fn","asNumber","values","mixed","locale","numberingSystem","conversionAccuracy","units","u","built","accumulated","lastUnit","own","ak","i","negated","other","eq","v1","v2","INVALID","validateStartEnd","start","end","Interval","_Interval","config","reason","explanation","InvalidArgumentError","invalid","Invalid","Settings","InvalidIntervalError","builtStart","friendlyDateTime","builtEnd","validateError","duration","dur","Duration","dt","text","opts","s","e","startIsValid","DateTime","endIsValid","o","unit","dateTime","dateTimes","sorted","d","a","b","results","i","added","next","idx","x","numberOfParts","other","intervals","found","final","sofar","current","item","currentCount","ends","flattened","arr","formatOpts","DATE_SHORT","Formatter","dateFormat","separator","mapFn","Info","zone","Settings","proto","DateTime","IANAZone","input","normalizeZone","locale","locObj","Locale","length","numberingSystem","outputCalendar","hasRelative","hasLocaleWeekInfo","dayDiff","earlier","later","utcDayStart","dt","ms","Duration","highOrderDiffs","cursor","units","differs","a","b","days","results","lowestOrder","highWater","unit","differ","diff_default","opts","remainingMillis","lowerOrderUnits","u","duration","MISSING_FTP","intUnit","regex","post","i","s","parseDigits","NBSP","spaceOrNBSP","spaceOrNBSPRegExp","fixListRegex","stripInsensitivities","oneOf","strings","startIndex","offset","groups","h","m","signedOffset","simple","escapeToken","value","unitForToken","token","loc","one","digitRegex","two","three","four","six","oneOrTwo","oneToThree","oneToSix","oneToNine","twoToFour","fourToSix","literal","t","unit","untruncateYear","partTypeStyleToTokenVal","tokenForPart","part","formatOpts","resolvedOpts","type","isSpace","style","actualType","val","buildRegex","units","u","f","r","match","input","handlers","matches","all","matchIndex","hasOwnProperty","dateTimeFromMatches","toField","zone","specificOffset","isUndefined","IANAZone","FixedOffsetZone","parseMillis","k","dummyDateTimeCache","getDummyDateTime","DateTime","maybeExpandMacroToken","locale","Formatter","tokens","formatOptsToTokens","expandMacroTokens","TokenParser","format","regexString","rawMatches","result","ConflictingSpecificationError","explainFromTokens","parseFromTokens","invalidReason","df","parts","p","INVALID","MAX_DATE","unsupportedZone","zone","Invalid","possiblyCachedWeekData","dt","gregorianToWeek","possiblyCachedLocalWeekData","clone","inst","alts","current","DateTime","__spreadProps","__spreadValues","fixOffset","localTS","o","tz","utcGuess","o2","o3","tsToObj","ts","offset","d","objToTS","obj","objToLocalTS","adjustTime","dur","oPre","year","month","c","daysInMonth","millisToAdd","Duration","parseDataToDateTime","parsed","parsedZone","opts","format","text","specificOffset","setZone","interpretationZone","toTechFormat","allowZ","Formatter","Locale","toISODate","extended","longFormat","padStart","toISOTime","suppressSeconds","suppressMilliseconds","includeOffset","extendedZone","defaultUnitValues","defaultWeekUnitValues","defaultOrdinalUnitValues","orderedUnits","orderedWeekUnits","orderedOrdinalUnits","normalizeUnit","unit","normalized","InvalidUnitError","normalizeUnitWithLocalWeeks","guessOffsetForZone","zoneOffsetGuessCache","zoneOffsetTs","Settings","quickDT","normalizeZone","loc","isUndefined","u","invalid","hasInvalidGregorianData","hasInvalidTimeData","offsetProvis","diffRelative","start","end","round","roundTo","differ","count","lastOpts","argList","args","_DateTime","config","ot","isNumber","day","hour","minute","second","millisecond","FixedOffsetZone","date","options","isDate","zoneToUse","milliseconds","InvalidArgumentError","seconds","normalizeObject","minDaysInFirstWeek","startOfWeek","usesLocalWeekValues","tsNow","containsOrdinal","containsGregorYear","containsGregorMD","containsGregor","definiteWeekDef","ConflictingSpecificationError","useWeekData","units","defaultValues","objNow","gregorianToOrdinal","foundFirst","v","higherOrderInvalid","hasInvalidWeekData","hasInvalidOrdinalData","gregorian","weekToGregorian","ordinalToGregorian","tsFinal","offsetFinal","vals","parseISODate","parseRFC2822Date","parseHTTPDate","fmt","locale","numberingSystem","localeToUse","parseFromTokens","parseSQL","reason","explanation","InvalidDateTimeError","formatOpts","localeOpts","tokenList","formatOptsToTokens","t","expandMacroTokens","Info","dayMs","minuteMs","oEarlier","oLater","o1","ts1","ts2","c1","c2","isLeapYear","daysInYear","weeksInWeekYear","calendar","keepLocalTime","keepCalendarTime","newTS","offsetGuess","asObj","outputCalendar","values","settingWeekStuff","mixed","duration","useLocaleWeeks","normalizedUnit","weekday","q","DATE_SHORT","ext","includePrefix","includeZone","includeOffsetSpace","base","otherDateTime","durOpts","maybeArray","otherIsLater","earlier","later","diffed","diff_default","Interval","inputMs","adjustedToZone","other","padding","dateTimes","bestBy","i","explainFromTokens","TokenParser","formatParser","result","invalidReason","DATE_MED","DATE_MED_WITH_WEEKDAY","DATE_FULL","DATE_HUGE","TIME_SIMPLE","TIME_WITH_SECONDS","TIME_WITH_SHORT_OFFSET","TIME_WITH_LONG_OFFSET","TIME_24_SIMPLE","TIME_24_WITH_SECONDS","TIME_24_WITH_SHORT_OFFSET","TIME_24_WITH_LONG_OFFSET","DATETIME_SHORT","DATETIME_SHORT_WITH_SECONDS","DATETIME_MED","DATETIME_MED_WITH_SECONDS","DATETIME_MED_WITH_WEEKDAY","DATETIME_FULL","DATETIME_FULL_WITH_SECONDS","DATETIME_HUGE","DATETIME_HUGE_WITH_SECONDS","friendlyDateTime","dateTimeish","DateTime","isNumber","InvalidArgumentError","API_BASE_URL","InjectionToken","AccountClient","constructor","http","baseUrl","jsonParseReviver","undefined","token","userLogin","url_","replace","options_","body","JSON","stringify","observe","responseType","headers","HttpHeaders","request","pipe","_observableMergeMap","response_","processToken","_observableCatch","HttpResponseBase","e","_observableThrow","response","status","responseBlob","HttpResponse","error","Blob","_headers","key","keys","get","blobToText","_responseText","result200","resultData200","parse","UserTokenDTO","fromJS","_observableOf","throwException","ɵɵinject","HttpClient","factory","ɵfac","AutomaticParkingReportClient","searchAutomaticParkingReportData","reportParameterDto","clientId","skip","take","sortBy","sortDirection","encodeURIComponent","Error","processSearchAutomaticParkingReportData","PagedResultDTOOfAutomaticParkingReportDTO","exportAutomaticParkingReport","saveReport","processExportAutomaticParkingReport","SavedReportFileDTO","AutomaticParkingScheduleClient","searchAutomaticParkingSchedules","filters","processSearchAutomaticParkingSchedules","PagedResultDTOOfAutomaticParkingScheduleDTO","createAutomaticParkingSchedule","parkingSchedule","processCreateAutomaticParkingSchedule","AutomaticParkingScheduleDTO","updateAutomaticParkingSchedule","processUpdateAutomaticParkingSchedule","setAutomaticParkingScheduleActiveStatus","parkingScheduleId","isActive","processSetAutomaticParkingScheduleActiveStatus","deleteAutomaticParkingSchedule","id","processDeleteAutomaticParkingSchedule","getAutomaticParkingScheduleZoneInfos","processGetAutomaticParkingScheduleZoneInfos","Array","isArray","item","push","ParkingProcessZoneInfoDTO","ClientClient","constructor","http","baseUrl","jsonParseReviver","undefined","createClient","client","url_","replace","options_","body","JSON","stringify","observe","responseType","headers","HttpHeaders","request","pipe","_observableMergeMap","response_","processCreateClient","_observableCatch","HttpResponseBase","e","_observableThrow","response","status","responseBlob","HttpResponse","error","Blob","_headers","key","keys","get","blobToText","_responseText","result200","resultData200","parse","ClientDTO","fromJS","_observableOf","throwException","deactivateClient","id","Error","encodeURIComponent","processDeactivateClient","deleteClient","processDeleteClient","forceDeleteClient","processForceDeleteClient","getClient","processGetClient","searchClients","filters","skip","take","sortBy","sortDirection","processSearchClients","PagedResultDTOOfClientDTO","updateClient","processUpdateClient","ɵɵinject","HttpClient","API_BASE_URL","factory","ɵfac","ConfigBasedAdminClient","getConfigBasedStructuralEntry","processGetConfigBasedStructuralEntry","ConfigBasedStructuralEntryDTO","createConfigBasedStructuralEntry","dto","processCreateConfigBasedStructuralEntry","updateConfigBasedStructuralEntry","processUpdateConfigBasedStructuralEntry","deleteConfigBasedStructuralEntry","processDeleteConfigBasedStructuralEntry","searchConfigBasedStructuralEntries","clientId","processSearchConfigBasedStructuralEntries","PagedResultDTOOfConfigBasedStructuralEntryDTO","DashboardClient","getDashboard","processGetDashboard","DashboardDTO","updateDashboard","processUpdateDashboard","updateDashboardPanels","updateDashboardPanelsDto","processUpdateDashboardPanels","DeviceStatusReportClient","constructor","http","baseUrl","jsonParseReviver","undefined","searchDeviceStatusReportData","clientId","filters","skip","take","sortBy","sortDirection","includeListElements","url_","Error","encodeURIComponent","replace","options_","body","JSON","stringify","observe","responseType","headers","HttpHeaders","request","pipe","_observableMergeMap","response_","processSearchDeviceStatusReportData","_observableCatch","HttpResponseBase","e","_observableThrow","response","status","responseBlob","HttpResponse","error","Blob","_headers","key","keys","get","blobToText","_responseText","result200","resultData200","parse","PagedResultDTOOfDeviceStatusReportDTO","fromJS","_observableOf","throwException","exportDeviceStatusReport","fileType","saveReport","parameterDto","processExportDeviceStatusReport","SavedReportFileDTO","ɵɵinject","HttpClient","API_BASE_URL","factory","ɵfac","FalseRecordingsReportClient","searchFalseRecordingsReportData","reportParameterDto","processSearchFalseRecordingsReportData","PagedResultDTOOfFalseRecordingsReportDTO","exportFalseRecordingsReport","processExportFalseRecordingsReport","FinanceClientPriceModelClient","getFinanceClientPriceModels","processGetFinanceClientPriceModels","Array","isArray","item","push","FinanceClientPriceModelDTO","addFinanceClientPriceModel","financeClientPriceModel","processAddFinanceClientPriceModel","updateFinanceClientPriceModel","processUpdateFinanceClientPriceModel","deleteFinanceClientPriceModel","id","processDeleteFinanceClientPriceModel","getAllPriceModels","processGetAllPriceModels","FinancePriceModelDataDTO","ParkerCompanyClient","constructor","http","baseUrl","jsonParseReviver","undefined","createParkerCompany","companyDto","url_","replace","options_","body","JSON","stringify","observe","responseType","headers","HttpHeaders","request","pipe","_observableMergeMap","response_","processCreateParkerCompany","_observableCatch","HttpResponseBase","e","_observableThrow","response","status","responseBlob","HttpResponse","error","Blob","_headers","key","keys","get","blobToText","_responseText","result200","resultData200","parse","ParkerCompanyDTO","fromJS","_observableOf","throwException","searchParkerCompanies","clientId","filters","skip","take","sortBy","sortDirection","Error","encodeURIComponent","processSearchParkerCompanies","PagedResultDTOOfParkerCompanyDTO","updateParkerCompany","updateCompany","processUpdateParkerCompany","deleteParkerCompany","id","processDeleteParkerCompany","ɵɵinject","HttpClient","API_BASE_URL","factory","ɵfac","ParkerClient","createParker","parkerDto","processCreateParker","ParkerDTO","searchParkers","includeListElements","processSearchParkers","PagedResultDTOOfParkerDTO","getParker","processGetParker","getAllParkers","isoChangeDateTimeUtc","processGetAllParkers","Array","isArray","item","push","ParkerLimitedDTO","updateParker","processUpdateParker","setParkerStatus","parkerStatusDTO","processSetParkerStatus","deleteParker","processDeleteParker","initializeParkerToUserLink","parkerId","processInitializeParkerToUserLink","linkParkerToUser","dto","processLinkParkerToUser","unlinkParkerFromUser","processUnlinkParkerFromUser","setFavoriteSubscriptionAssignments","favoriteSubscriptionAssignmentsDto","processSetFavoriteSubscriptionAssignments","ParkerExtractReportClient","searchParkerExtractReportData","parkerExtractReportParameterDto","processSearchParkerExtractReportData","PagedResultDTOOfParkerExtractReportDTO","exportParkerExtractReport","fileType","saveReport","processExportParkerExtractReport","SavedReportFileDTO","summarizeParkerExtractReport","processSummarizeParkerExtractReport","ParkerExtractReportSummaryDTO","ParkerRegistrationClient","getRegistration","processGetRegistration","ParkerRegistrationDTO","getExtendedRegistration","processGetExtendedRegistration","ParkerRegistrationWithParkerInfoDTO","searchRegistrations","processSearchRegistrations","PagedResultDTOOfParkerRegistrationWithParkerInfoDTO","addParkingRangerCheckRegistration","addDto","processAddParkingRangerCheckRegistration","ParkingRangerCheckRegistrationResultDTO","addParkingRangerCheckNonTaggedRegistration","processAddParkingRangerCheckNonTaggedRegistration","addNonTaggedRegistration","processAddNonTaggedRegistration","updateParkingRangerCheckRegistration","updateDto","processUpdateParkingRangerCheckRegistration","calculateParkingPrice","processCalculateParkingPrice","CalculateParkingPriceResultDTO","calculateForeignParkingPrice","processCalculateForeignParkingPrice","startForeignParkingPaymentProcess","processStartForeignParkingPaymentProcess","StartForeignParkingPaymentProcessResponseDTO","checkinUserForeignParking","checkinDto","processCheckinUserForeignParking","CheckinUserParkingRegistrationDTO","calculateVisitorParkingCardPrice","processCalculateVisitorParkingCardPrice","CalculateVisitorParkingCardPriceResultDTO","assignParkingCardToVisitor","processAssignParkingCardToVisitor","ParkingCardDTO","checkinUserParking","processCheckinUserParking","checkoutUserParking","checkoutDto","processCheckoutUserParking","CheckoutUserParkingResultDTO","calculateParkingExtensionPrice","processCalculateParkingExtensionPrice","CalculateParkingExtensionPriceResultDTO","startParkingExtensionPaymentProcess","processStartParkingExtensionPaymentProcess","StartParkingExtensionPaymentProcessResponseDTO","extendUserParkingSession","processExtendUserParkingSession","ExtendUserParkingResultDTO","getRegistrationImage","registrationId","mediaId","processGetRegistrationImage","addRegistrationImage","processAddRegistrationImage","updateRegistrationImage","processUpdateRegistrationImage","deleteRegistrationImage","deleteDto","processDeleteRegistrationImage","recalculateParkingSession","sessionId","newSubscriptionId","processRecalculateParkingSession","ParkerRegistrationReportClient","searchParkerRegistrationsReportData","reportParameterDto","processSearchParkerRegistrationsReportData","PagedResultDTOOfParkerRegistrationReportDTO","exportParkerRegistrationsReport","processExportParkerRegistrationsReport","ParkerTagClient","isIdentificationCodeAlreadyInUse","identificationCode","processIsIdentificationCodeAlreadyInUse","searchTags","processSearchTags","PagedResultDTOOfParkerTagDTO","getAllTags","processGetAllTags","ParkerTagDTO","ParkerTurnoverReportClient","searchParkerTurnoverReportData","processSearchParkerTurnoverReportData","PagedResultDTOOfParkerTurnoverReportDTO","exportParkerTurnoverReport","processExportParkerTurnoverReport","summarizeParkerTurnoverReport","processSummarizeParkerTurnoverReport","ParkerTurnoverReportSummaryDTO","ParkingCardClient","createParkingCard","parkingCardDto","processCreateParkingCard","searchParkingCards","issuedToMe","processSearchParkingCards","PagedResultDTOOfParkingCardDTO","updateParkingCard","processUpdateParkingCard","revokeParkingCard","processRevokeParkingCard","ParkingClient","getParkingOffendersForClient","startTime","toString","processGetParkingOffendersForClient","ParkingEntryDTO","getParkingEntriesForSession","parkingRangerSessionId","processGetParkingEntriesForSession","searchParkingSessions","processSearchParkingSessions","PagedResultDTOOfParkingSessionDTO","getParkingProcessInfo","processGetParkingProcessInfo","ParkingProcessInfoDTO","getParkingProcessInfos","processGetParkingProcessInfos","getParkingProcessZoneInfos","includeForeignParkingZones","processGetParkingProcessZoneInfos","ParkingProcessZoneInfoDTO","getParkingProcessZoneInfo","zoneId","processGetParkingProcessZoneInfo","getParkingSessionIdsForParker","processGetParkingSessionIdsForParker","ParkingSessionInfoShortDTO","adjustSessionStartTime","processAdjustSessionStartTime","ParkingSessionDTO","adjustSessionEndTime","processAdjustSessionEndTime","ParkingRangerSessionClient","getSession","processGetSession","ParkingRangerSessionDTO","getSessionFullyExpanded","processGetSessionFullyExpanded","ExtendedParkingRangerSessionDTO","getActiveSession","processGetActiveSession","searchSessions","processSearchSessions","PagedResultDTOOfParkingRangerSessionDTO","createAndStartSession","createDto","processCreateAndStartSession","updateSession","processUpdateSession","terminateSession","processTerminateSession","deleteSession","processDeleteSession","ParkingSubscriptionClient","getParkingSubscription","processGetParkingSubscription","ParkingSubscriptionDTO","createParkingSubscription","createParkingSubscriptionDto","processCreateParkingSubscription","searchParkingSubscriptions","processSearchParkingSubscriptions","PagedResultDTOOfParkingSubscriptionDTO","updateParkingSubscription","processUpdateParkingSubscription","deleteParkingSubscription","processDeleteParkingSubscription","moveSubscriptionToNewTariff","subscriptionId","oldTariffId","newTariffId","processMoveSubscriptionToNewTariff","moveToStructuralEntry","fromStructuralEntryId","toStructuralEntryId","processMoveToStructuralEntry","addToStructuralEntry","structuralEntryId","processAddToStructuralEntry","removeFromStructuralEntry","processRemoveFromStructuralEntry","isParkingSubscriptionUsedInSessions","processIsParkingSubscriptionUsedInSessions","ParkingTariffClient","getParkingTariff","processGetParkingTariff","ParkingTariffDTO","getParkingTariffsForZone","processGetParkingTariffsForZone","createParkingTariff","createParkingTariffDto","processCreateParkingTariff","searchParkingTariffs","processSearchParkingTariffs","PagedResultDTOOfParkingTariffLimitedDTO","updateParkingTariff","processUpdateParkingTariff","deleteParkingTariff","processDeleteParkingTariff","assignNewSubscriptionToTariff","processAssignNewSubscriptionToTariff","moveTariffToNewZone","oldZoneId","newZoneId","processMoveTariffToNewZone","PaymentReportClient","constructor","http","baseUrl","jsonParseReviver","undefined","searchPaymentReportData","reportParameterDTO","skip","take","sortBy","sortDirection","url_","Error","encodeURIComponent","replace","options_","body","JSON","stringify","observe","responseType","headers","HttpHeaders","request","pipe","_observableMergeMap","response_","processSearchPaymentReportData","_observableCatch","HttpResponseBase","e","_observableThrow","response","status","responseBlob","HttpResponse","error","Blob","_headers","key","keys","get","blobToText","_responseText","result200","resultData200","parse","PagedResultDTOOfPaymentReportDTO","fromJS","_observableOf","throwException","exportPaymentReport","saveReport","reportParameterDto","processExportPaymentReport","SavedReportFileDTO","ɵɵinject","HttpClient","API_BASE_URL","factory","ɵfac","SavedReportClient","constructor","http","baseUrl","jsonParseReviver","undefined","searchSavedReports","clientId","filters","skip","take","sortBy","sortDirection","includeListElements","url_","Error","encodeURIComponent","replace","options_","body","JSON","stringify","observe","responseType","headers","HttpHeaders","request","pipe","_observableMergeMap","response_","processSearchSavedReports","_observableCatch","HttpResponseBase","e","_observableThrow","response","status","responseBlob","HttpResponse","error","Blob","_headers","key","keys","get","blobToText","_responseText","result200","resultData200","parse","PagedResultDTOOfSavedReportDTO","fromJS","_observableOf","throwException","getSavedReportFile","savedReportId","processGetSavedReportFile","SavedReportFileDTO","ɵɵinject","HttpClient","API_BASE_URL","factory","ɵfac","TagMasterClient","constructor","http","baseUrl","jsonParseReviver","undefined","searchTagMasters","clientId","filters","skip","take","sortBy","sortDirection","includeListElements","url_","Error","encodeURIComponent","replace","options_","body","JSON","stringify","observe","responseType","headers","HttpHeaders","request","pipe","_observableMergeMap","response_","processSearchTagMasters","_observableCatch","HttpResponseBase","e","_observableThrow","response","status","responseBlob","HttpResponse","error","Blob","_headers","key","keys","get","blobToText","_responseText","result200","resultData200","parse","PagedResultDTOOfTagMasterDTO","fromJS","_observableOf","throwException","deleteTagMasters","ids","processDeleteTagMasters","ɵɵinject","HttpClient","API_BASE_URL","factory","ɵfac","TagsPerParkerReportClient","searchTagsPerParkerReportData","processSearchTagsPerParkerReportData","PagedResultDTOOfTagsPerParkerReportDTO","exportTagsPerParkerReport","fileType","saveReport","reportParameterDto","processExportTagsPerParkerReport","SavedReportFileDTO","UserAccountClient","constructor","http","baseUrl","jsonParseReviver","undefined","info","url_","replace","options_","observe","responseType","headers","HttpHeaders","request","pipe","_observableMergeMap","response_","processInfo","_observableCatch","HttpResponseBase","e","_observableThrow","response","status","responseBlob","HttpResponse","body","error","Blob","_headers","key","keys","get","blobToText","_responseText","result200","resultData200","JSON","parse","UserInfoDTO","fromJS","_observableOf","throwException","registerUser","model","stringify","processRegisterUser","RegisterUserResultDTO","searchUsers","filters","clientId","skip","take","sortBy","sortDirection","encodeURIComponent","Error","processSearchUsers","PagedResultDTOOfUserInfoDTO","setUserLanguage","language","processSetUserLanguage","updateUser","processUpdateUser","addParkingRangerUser","processAddParkingRangerUser","regenerateAccessCode","userId","processRegenerateAccessCode","addProxyUser","processAddProxyUser","updateProxyUser","processUpdateProxyUser","addThirdPartyUser","processAddThirdPartyUser","updateThirdPartyUser","processUpdateThirdPartyUser","addUser","processAddUser","confirmEmail","code","processConfirmEmail","logout","processLogout","contentDisposition","fileNameMatch","exec","fileName","length","decodeURIComponent","data","changePassword","processChangePassword","setPassword","processSetPassword","forgotPassword","processForgotPassword","deleteUser","processDeleteUser","UserDeletionResultDTO","deleteUserByAdmin","processDeleteUserByAdmin","ɵɵinject","HttpClient","API_BASE_URL","factory","ɵfac","UserControlPlateClient","getUserControlPlates","processGetUserControlPlates","Array","isArray","item","push","UserControlPlateDTO","updateUserControlPlates","processUpdateUserControlPlates","UserExtractReportClient","searchUserExtractReportData","parameterDto","processSearchUserExtractReportData","PagedResultDTOOfUserExtractReportDTO","exportUserExtractReport","fileType","saveReport","processExportUserExtractReport","SavedReportFileDTO","summarizeUserExtractReport","processSummarizeUserExtractReport","UserExtractReportSummaryDTO","ZoneClient","createZone","createZoneDto","processCreateZone","ZoneDTO","searchZones","processSearchZones","PagedResultDTOOfZoneDTO","updateZone","updateZoneDto","processUpdateZone","getZone","id","processGetZone","getZoneByBarcodeNumber","clientIdent","processGetZoneByBarcodeNumber","getZoneByNfcCode","nfcCode","processGetZoneByNfcCode","getAllZones","processGetAllZones","getAllZonesForUser","zoneInfo","processGetAllZonesForUser","ZoneForUserDTO","deleteZone","processDeleteZone","setCurrentParkerCount","parkerCount","processSetCurrentParkerCount","moveZone","parentId","processMoveZone","generateQrCode","qrInfos","processGenerateQrCode","GeneratedQrCodesDTO","ZoneDamageClient","addDamage","createDamageDto","processAddDamage","ZoneDamageDTO","getDamage","processGetDamage","getDamages","filterStates","processGetDamages","PagedResultDTOOfZoneDamageDTO","searchDamages","processSearchDamages","updateDamage","updateDamageDto","processUpdateDamage","deleteDamage","processDeleteDamage","getDamageImage","damageId","mediaId","processGetDamageImage","addDamageImage","addDto","processAddDamageImage","updateDamageImage","updateDto","processUpdateDamageImage","deleteDamageImage","deleteDto","processDeleteDamageImage","ZoneDeviceClient","getZoneDeviceInitialStructure","deviceType","brand","processGetZoneDeviceInitialStructure","ZoneDeviceDTO","createDevice","createDto","processCreateDevice","updateDevice","processUpdateDevice","moveDevice","zoneId","processMoveDevice","searchDevices","processSearchDevices","PagedResultDTOOfZoneDeviceDTO","getDevice","processGetDevice","getDevices","filterBy","filter","processGetDevices","getAllDevices","processGetAllDevices","getAvailableDeviceSpecifications","processGetAvailableDeviceSpecifications","ZoneDeviceSpecificationDTO","deleteDevice","processDeleteDevice","executeDeviceCommand","dto","processExecuteDeviceCommand","getAllCommandableDevicesForCurrentUser","processGetAllCommandableDevicesForCurrentUser","getCommandableDevice","processGetCommandableDevice","UserTokenDTO","constructor","data","property","hasOwnProperty","init","_data","access_token","token_type","username","clientId","refresh_token","refreshTokenExpiresIn","expires_in","expires","fromJS","result","toJSON","UserLoginDTO","userName","password","grant_Type","client_Id","client_Secret","refresh_Token","PagedResultDTOOfAutomaticParkingReportDTO","Array","isArray","items","item","push","AutomaticParkingReportDTO","totalNumberOfItems","id","client","ClientDTO","undefined","registeredZone","ZoneLimitedDTO","knownTagId","knownTag","ParkerTagWithParkerInfoDTO","firstEntryDateTime","DateTime","fromISO","toString","lastEntryDateTime","address","city","email","name","phoneNumber","zip","dataRetentionPeriodInDays","clientIdent","isActive","qrCodeIdentificationEnabled","automaticParkingSchedulesEnabled","automaticParkingScheduleToleranceInMinutes","connectionMode","auditLogEnabled","custom1Name","custom2Name","custom3Name","custom4Name","custom5Name","custom6Name","custom7Name","custom8Name","custom9Name","ConnectionMode","zoneGPSArea","parkingSpaceNumberDefinition","ParkerTagDTO","parkerId","usage","identificationCode","controlPlateType","countryCode","controlPlateNumber","description","barcode","active","defect","modifiedOn","modifiedBy","parker","ParkerInfoDTO","firstName","lastName","identification","group","title","mobile","phone","company","ParkerCompanyDTO","custom1","custom2","custom3","custom4","custom5","custom6","custom7","custom8","custom9","ParkerGroup","ParkerTagUsage","ControlPlateType","AutomaticParkingReportParameterDTO","dateRange","DateRangeParameterDTO","startDate","endDate","SortDirection","SavedReportFileDTO","reportName","fileType","contentBase64","ReportFileType","PagedResultDTOOfAutomaticParkingScheduleDTO","AutomaticParkingScheduleDTO","ClientLimitedDTO","zone","parkingSpaceNumber","subscriptionAssignment","ParkerSubscriptionAssignmentDTO","tag","parkingStartTime","Duration","parkingDurationInMinutes","onWeekDays","subscription","ParkingSubscriptionLimitedWithTariffsDTO","validFrom","validTo","isFavorite","ParkingSubscriptionLimitedDTO","assignable","type","fixPricePerMonth","basePricePerDay","currency","maxParkingDurationInMin","denyForeignParkingSubscriptionFallback","sessionIsExtendable","paidBy","tariffs","ParkingTariffDTO","deleted","startTime","durationInMinutes","tariffCurrency","priceType","tieredPrices","ParkingTariffTieredPriceDTO","placeOfResidence","fixedPrice","pricePerHour","maximumPrice","linearPriceMinStepInMinutes","subscriptionId","hasActiveSubscription","assignedZones","AssignedZoneDTO","isTwentyFourSevenTariff","isDeviceControlTariff","blacklistedLicensePlates","BlacklistLicensePlateDTO","WeekDayFlags","Currency","TariffPriceType","evaluationRelayIndex","amountOfMinutes","minStepInMinutes","PlaceOfResidence","ParkingSubscriptionType","ParkingSubscriptionUsage","ParkingSubscriptionPaidBy","FilterDTO","isComplex","condition","field","operator","value","predicates","FilterCondition","FilterOperator","CreateAutomaticParkingScheduleDTO","zoneId","subscriptionAssignmentId","tagId","UpdateAutomaticParkingScheduleDTO","ParkingProcessZoneInfoDTO","foreignParkingSubscriptionInfos","subscriptionAssignments","foreignParkersAllowed","defaultForeignParkingSubscriptionId","ForeignParkingSubscriptionInfoDTO","ParkingProcessSubscriptionAssignmentInfoDTO","parent","ParkingProcessLimitedZoneWithParentInfoDTO","ParkingProcessSubscriptionInfoDTO","templateInfo","ParkingSubscriptionAssignmentTemplateInfoDTO","parkingCardConfirmationTimeInMinutes","ParkingProcessTariffInfoDTO","assignmentDurationInMinutes","templateValidFrom","templateValidTo","foreignParkingSubscription","PagedResultDTOOfClientDTO","constructor","data","property","hasOwnProperty","init","_data","Array","isArray","items","item","push","ClientDTO","fromJS","totalNumberOfItems","result","toJSON","PagedResultDTOOfParkerDTO","ParkerDTO","id","clientId","firstName","lastName","identification","group","address","zip","city","country","privateAddress","privateZIP","privateCity","privateCountry","email","company","ParkerCompanyDTO","undefined","costCenter","title","entryDate","DateTime","fromISO","toString","exitDate","mobile","phone","billing","active","workplace","employmentPercentage","billingCurrency","linkedUserUserName","userLinkCodeValidUntil","creationType","tags","ParkerTagDTO","parkerSubscriptionAssignments","ParkerSubscriptionAssignmentDTO","modifiedOn","modifiedBy","custom1","custom2","custom3","custom4","custom5","custom6","custom7","custom8","custom9","comment","ParkerExtractReportDTO","constructor","data","property","hasOwnProperty","init","_data","parker","ParkerInfoDTO","fromJS","undefined","entryDate","DateTime","fromISO","toString","exitDate","durationInMinutes","knownTag","ParkerTagDTO","zone","ZoneDTO","subscriptionName","amount","currency","calculationRoadmap","sessionOpeningEventType","isVisitorParking","result","toJSON","id","name","clientId","parentId","isGroupingElement","separateNFCCode","nfcCode","enableGPSDetection","zoneGPSArea","foreignParkersAllowed","foreignParkingSubscription","ParkingSubscriptionDTO","maxPassageTime","parkingSpaceNumberDefinition","parkingSpaceCapacity","currentParkerCount","deleted","Array","isArray","assignedTariffs","item","push","hasDevicesAssigned","hasChildZones","useBlacklistArea","blacklistGPSArea","active","assignable","type","description","multipleCarsPerUserTreatAs","chargeCap","chargeCapPerMonth","chargeInRelationToEmploymentPercentage","fixPricePerMonth","basePricePerDay","denyForeignParkingSubscriptionFallback","sessionIsExtendable","maxParkingDurationInMin","structuralEntries","ConfigBasedStructuralEntryDTO","roundSessionFeeToXCents","usage","paidBy","parkingCardConfirmationTimeInMinutes","modifiedOn","modifiedBy","tariffs","ParkingTariffLimitedDTO","MultipleCarsPerUserTreatAs","hasChildEntries","hasSubscriptions","isSubscriptionSet","subscriptionId","isDeviceControlTariff","ParkerExtractReportSummaryDTO","constructor","data","property","hasOwnProperty","init","_data","chargedAmount","totalNumberOfParkings","calculationSummary","currency","Array","isArray","subscriptionSummary","item","push","ParkerExtractReportSubscriptionSummaryDTO","fromJS","result","toJSON","subscriptionId","subscriptionName","appliedStartDate","DateTime","fromISO","toString","undefined","appliedEndDate","monthlyFixedPrice","fixedFee","feeFromParkingSessions","cap","totalParkingWithCap","currencyConversionFactor","convertedCurrency","convertedChargedAmount","CreateConfigBasedStructuralEntryDTO","constructor","data","property","hasOwnProperty","init","_data","clientId","name","parentId","isSubscriptionSet","fromJS","result","toJSON","UpdateConfigBasedStructuralEntryDTO","id","PagedResultDTOOfConfigBasedStructuralEntryDTO","Array","isArray","items","item","push","ConfigBasedStructuralEntryDTO","totalNumberOfItems","DashboardDTO","dashboardPanels","DashboardPanelDTO","sizeX","sizeY","row","col","widgetType","widgetParameters","UpdateDashboardPanelsDTO","constructor","data","property","hasOwnProperty","init","_data","Array","isArray","addedPanels","item","push","DashboardPanelDTO","fromJS","changedPanels","removedPanelIds","result","toJSON","PagedResultDTOOfDeviceStatusReportDTO","constructor","data","property","hasOwnProperty","init","_data","Array","isArray","items","item","push","DeviceStatusReportDTO","fromJS","totalNumberOfItems","result","toJSON","device","ZoneDeviceDTO","undefined","id","clientId","name","zone","ZoneDTO","description","enabled","groupControllerDeviceId","coordinates","lastSignal","DateTime","fromISO","toString","deviceType","brand","direction","state","currentDevicePosition","proxyUserId","supportedDevicePositions","ZoneDevicePositionDTO","parameters","ZoneDeviceParameterDTO","ZoneDeviceType","ZoneDeviceBrand","ZoneDeviceDirection","ZoneDeviceState","position","supportedCommands","ZoneDeviceCommandDTO","command","commandName","commandDescription","executionContext","ZoneDeviceCommandExecutionContextDTO","isBillable","accessLevel","executedUserId","executionTimeUtc","contextData","ZoneDeviceParameterDTO","constructor","data","property","hasOwnProperty","_discriminator","init","_data","type","fromJS","result","ZoneDeviceParameterStringDTO","ZoneDeviceParameterIntDTO","ZoneDeviceParameterBoolDTO","ZoneDeviceParameterFloatDTO","ZoneDeviceParameterIPDTO","ZoneDeviceParameterSelectDTO","ZoneDeviceParameterPhoneDTO","ZoneDeviceParameterMacDTO","Error","toJSON","ZoneDeviceParameterType","value","configuration","ZoneDeviceParameterStringConfigDTO","undefined","ZoneDeviceParameterConfigDTO","ident","displayName","minLength","maxLength","required","defaultValue","ZoneDeviceParameterIntConfigDTO","minValue","maxValue","ZoneDeviceParameterBoolConfigDTO","ZoneDeviceParameterFloatConfigDTO","noOfDecimals","ZoneDeviceParameterIPConfigDTO","allowIPV6","selection","ZoneDeviceParameterSelectConfigDTO","Array","isArray","selectionPossibilities","item","push","phone","ZoneDeviceParameterPhoneConfigDTO","macAddress","PhysicalAddress","ZoneDeviceParameterMacConfigDTO","DeviceStatusReportParameterDTO","zoneId","PagedResultDTOOfFalseRecordingsReportDTO","items","FalseRecordingsReportDTO","totalNumberOfItems","date","DateTime","fromISO","toString","parkerRegistrationType","parker","ParkerInfoDTO","knownTag","ParkerTagDTO","registeredZone","ZoneDTO","agent","LimitedUserInfoDTO","parkingSessionId","ParkerRegistrationType","userId","firstname","lastname","companyName","clientId","clientIdent","roles","Role","FalseRecordingsReportParameterDTO","dateRange","DateRangeParameterDTO","agentId","FinanceClientPriceModelDTO","id","navisionCustomerNumber","navisionProjectNumber","validTo","feesPaidByParkingSpaceOwner","vatInPercent","parkingPriceIncludedVATInPercent","basePricePerMonth","paymentProviderTransactionConstantPrice","paymentProviderTransactionVariablePriceInPercent","transactionMinimumPrice","transactionConstantPrice","transactionVariablePriceInPercent","creditCardPaymentProviderTransactionConstantPrice","creditCardPaymentProviderTransactionVariablePriceInPercent","creditCardTransactionConstantPrice","creditCardTransactionVariablePriceInPercent","twintPaymentProviderTransactionConstantPrice","twintPaymentProviderTransactionVariablePriceInPercent","twintTransactionConstantPrice","twintTransactionVariablePriceInPercent","payPalPaymentProviderTransactionConstantPrice","payPalPaymentProviderTransactionVariablePriceInPercent","payPalTransactionConstantPrice","payPalTransactionVariablePriceInPercent","noOfIncludedAdmins","pricePerAdditionalAdmin","noOfIncludedWebUser","pricePerAdditionalWebUser","noOfIncludedParkingRanger","pricePerAdditionalParkingRanger","noOfIncludedDevices","pricePerAdditionalDevice","noOfIncludedProxies","pricePerAdditionalProxy","autoParkingActive","pricePerAutoParkingParkerPerMonth","thirdPartyInterfaceActive","pricePerThirdPartyInterface","noOfIncludedParkingSpaces","noOfIncludedParkers","parkingSpacePriceModelName","parkerPriceModelName","FinancePriceModelDataDTO","parkingSpacePriceModels","parkerPriceModels","FinanceParkingSpacePriceModelDTO","FinanceParkerPriceModelDTO","modelName","PagedResultDTOOfParkerCompanyDTO","constructor","data","property","hasOwnProperty","init","_data","Array","isArray","items","item","push","ParkerCompanyDTO","fromJS","totalNumberOfItems","result","toJSON","UpdateParkerSubscriptionAssignmentDTO","constructor","data","property","hasOwnProperty","init","_data","id","active","subscriptionId","validFrom","DateTime","fromISO","toString","undefined","validTo","isFavorite","fromJS","result","toJSON","ParkerLimitedDTO","clientId","identification","Array","isArray","tagIds","item","push","UpdateParkerDTO","firstName","lastName","group","address","zip","city","country","privateAddress","privateZIP","privateCity","privateCountry","email","companyId","costCenter","title","entryDate","exitDate","mobile","phone","billing","workplace","employmentPercentage","billingCurrency","tags","UpdateParkerTagDTO","parkerSubscriptionAssignments","custom1","custom2","custom3","custom4","custom5","custom6","custom7","custom8","custom9","comment","identificationCode","controlPlateType","countryCode","controlPlateNumber","description","barcode","defect","SetParkerStatusDTO","LinkParkerToUserDTO","userLinkCode","PagedResultDTOOfParkerExtractReportDTO","constructor","data","property","hasOwnProperty","init","_data","Array","isArray","items","item","push","ParkerExtractReportDTO","fromJS","totalNumberOfItems","result","toJSON","ParkerExtractReportParameterDTO","parkerId","month","ParkerRegistrationBaseDTO","id","clientId","registrationDateTime","DateTime","fromISO","toString","undefined","type","registeredByUserAgentId","registeredByUserAgent","LimitedUserInfoDTO","registeredByZoneDeviceId","registeredByZoneDeviceName","registeredZoneId","registeredZoneName","knownTagId","parkingSpaceNumber","unknownParkerTagControlPlateType","unknownParkerTagCountryCode","unknownParkerTagControlPlateNumber","offense","offenseLog","sessionOffenses","ParkingEntryOffenseInfoDTO","sessionStartDateTime","expectedSessionEndDateTime","pendingAutomaticSessionStartDateTime","sessionOpeningEventType","sessionClosingEventType","selectedSubscription","ParkingSubscriptionLimitedDTO","penaltyIssued","penaltyState","penaltyNumber","penaltyParkingNumber","parkingSessionId","mediaFiles","ParkerRegistrationDTO","knownTag","ParkerTagDTO","ParkerRegistrationOffense","registrationId","dateTime","registeredByUserAgentName","PenaltyState","ParkerRegistrationWithParkerInfoDTO","ParkerTagWithParkerInfoDTO","PagedResultDTOOfParkerRegistrationWithParkerInfoDTO","ParkingRangerCheckRegistrationResultDTO","state","CalculateParkingPriceResultDTO","constructor","data","property","hasOwnProperty","parkingPriceDetails","ParkingPriceDetailsDTO","init","_data","fromJS","needsForeignParkingPaymentProcess","offense","result","toJSON","undefined","totalPriceWithVAT","totalPriceWithoutVAT","parkingPrice","parkingPriceIncludedVAT","parkingTransactionFeesConstant","parkingTransactionFeesVariable","feesPaidByParkingSpaceOwner","vat","currency","StartForeignParkingPaymentProcessResponseDTO","constructor","data","property","hasOwnProperty","init","_data","success","errorDescription","paymentId","redirectionUrl","successUrl","failedUrl","fromJS","result","toJSON","CheckinUserParkingRegistrationDTO","constructor","data","property","hasOwnProperty","init","_data","sessionId","registrationDateTime","DateTime","fromISO","toString","undefined","state","offense","clientId","subscriptionAssignment","ParkerSubscriptionAssignmentDTO","fromJS","zoneId","zone","ParkingProcessLimitedZoneWithParentInfoDTO","maxIntendedParkingDurationMinutes","parkingSpaceNumber","controlPlateNumber","controlPlateCountryCode","controlPlateType","reservedAmount","currency","paymentAliasId","calculatedParkingPriceDetails","ParkingPriceDetailsDTO","automaticScheduleEndTime","sessionOpeningEventType","visitorSessionIdToValidate","visitorSessionToValidateUntil","result","toJSON","CalculateVisitorParkingCardPriceResultDTO","constructor","data","property","hasOwnProperty","parkingPriceDetails","ParkingPriceDetailsDTO","init","_data","offense","fromJS","result","toJSON","undefined","ParkingCardDTO","constructor","data","property","hasOwnProperty","init","_data","id","parkerAlias","visitorAlias","issuingParkerId","issuingParkerName","validFromDateTime","DateTime","fromISO","toString","undefined","validToDateTime","forMultipleUse","controlPlateNumber","issuedToUserId","issuedToUserName","isActive","lastUsedOn","clientId","clientName","fromJS","result","toJSON","CheckinUserParkingDTO","constructor","data","property","hasOwnProperty","init","_data","zoneId","paymentRequestId","controlPlateType","controlPlateCountryCode","controlPlateNumber","parkingSpaceNumber","maxIntendedParkingDurationMinutes","selectedSubscriptionAssignmentId","fromJS","result","toJSON","CheckoutUserParkingResultDTO","parkingPriceDetails","ParkingPriceDetailsDTO","state","offense","effectiveParkingDurationInMinutes","payableParkingDurationInMinutes","undefined","CheckoutUserParkingDTO","sessionId","CalculateParkingExtensionPriceResultDTO","totalPrice","currency","needsForeignParkingPaymentProcess","StartParkingExtensionPaymentProcessResponseDTO","constructor","data","property","hasOwnProperty","init","_data","success","errorDescription","paymentId","redirectionUrl","successUrl","failedUrl","fromJS","result","toJSON","ExtendUserParkingResultDTO","constructor","data","property","hasOwnProperty","init","_data","offense","fromJS","result","toJSON","PagedResultDTOOfParkerRegistrationReportDTO","constructor","data","property","hasOwnProperty","init","_data","Array","isArray","items","item","push","ParkerRegistrationReportDTO","fromJS","totalNumberOfItems","result","toJSON","registrationDateTime","DateTime","fromISO","toString","undefined","parkerRegistrationType","parker","ParkerInfoDTO","knownTag","ParkerTagDTO","registeredZone","ZoneDTO","agent","LimitedUserInfoDTO","parkingSessionId","ParkerRegistrationsReportParameterDTO","dateRange","DateRangeParameterDTO","PagedResultDTOOfParkerTagDTO","PagedResultDTOOfParkerTurnoverReportDTO","ParkerTurnoverReportDTO","entryDate","exitDate","durationInMinutes","zone","amount","currency","calculationRoadmap","isVisitorParking","ParkerTurnoverReportParameterDTO","zoneId","parkerIds","ParkerTurnoverReportSummaryDTO","totalAmounts","AmountWithCurrencyDTO","totalNumberOfParkings","priceDetails","ParkingPriceDetailsDTO","totalPrice","PagedResultDTOOfParkingCardDTO","constructor","data","property","hasOwnProperty","init","_data","Array","isArray","items","item","push","ParkingCardDTO","fromJS","totalNumberOfItems","result","toJSON","ParkingEntryDTO","constructor","data","property","hasOwnProperty","init","_data","registrationDateTime","DateTime","fromISO","toString","undefined","registeredZoneId","knownTagId","unknownParkerTagControlPlateType","unknownParkerTagCountryCode","unknownParkerTagControlPlateNumber","parkingDuration","hasOffense","sessionStartDateTime","expectedSessionEndDateTime","pendingAutomaticSessionStartDateTime","sessionOpeningEventType","sessionClosingEventType","selectedSubscription","ParkingSubscriptionLimitedDTO","fromJS","Array","isArray","offenses","item","push","ParkingEntryOffenseInfoDTO","result","toJSON","PagedResultDTOOfParkingSessionDTO","items","ParkingSessionDTO","totalNumberOfItems","id","client","ClientDTO","isClosed","isManuallyAdded","registeredZone","ZoneLimitedDTO","knownTag","ParkerTagWithParkerInfoDTO","parkingSpaceNumber","penaltyIssued","maxIntendedParkingDurationMinutes","firstEntryDateTime","lastEntryDateTime","calculatedParkingFee","totalParkingFee","detailedPriceInformation","ParkingPriceDetailsDTO","currency","calculationRoadmap","parkerRegistrations","ParkerRegistrationDTO","ParkingProcessInfoDTO","activeCheckinInfo","CheckinUserParkingRegistrationDTO","ParkingSessionInfoShortDTO","timeStamp","GetParkingSessionIdsForParkerDTO","dateRange","DateRangeParameterDTO","clientId","parkerId","subscriptionId","AdjustSessionStartTimeDTO","parkingSessionId","startDateTime","AdjustSessionEndTimeDTO","endDateTime","ParkingRangerSessionDTO","userId","user","LimitedUserInfoDTO","sessionStartTime","sessionEndTime","positions","ParkingRangerSessionPositionDTO","registrations","lat","lon","dateTime","ExtendedParkingRangerSessionDTO","ParkerRegistrationWithParkerInfoDTO","PagedResultDTOOfParkingRangerSessionDTO","CreateParkingSubscriptionDTO","constructor","data","property","hasOwnProperty","init","_data","clientId","active","assignable","name","type","description","multipleCarsPerUserTreatAs","chargeCap","chargeCapPerMonth","chargeInRelationToEmploymentPercentage","fixPricePerMonth","basePricePerDay","denyForeignParkingSubscriptionFallback","sessionIsExtendable","maxParkingDurationInMin","currency","structuralEntryId","roundSessionFeeToXCents","usage","paidBy","parkingCardConfirmationTimeInMinutes","Array","isArray","tariffIds","item","push","fromJS","result","toJSON","PagedResultDTOOfParkingSubscriptionDTO","items","ParkingSubscriptionDTO","totalNumberOfItems","UpdateParkingSubscriptionDTO","id","CreateParkingTariffDTO","onWeekDays","startTime","Duration","fromISO","toString","undefined","durationInMinutes","tariffCurrency","priceType","tieredPrices","ParkingTariffTieredPriceDTO","placeOfResidence","fixedPrice","pricePerHour","maximumPrice","linearPriceMinStepInMinutes","subscriptionId","assignedZoneIds","isTwentyFourSevenTariff","isDeviceControlTariff","blacklistedLicensePlates","BlacklistLicensePlateDTO","PagedResultDTOOfParkingTariffLimitedDTO","ParkingTariffLimitedDTO","UpdateParkingTariffDTO","PaymentAliasDTO","maskedIdentification","paymentMethod","expiry","DateTime","PagedResultDTOOfPaymentReportDTO","constructor","data","property","hasOwnProperty","init","_data","Array","isArray","items","item","push","PaymentReportDTO","fromJS","totalNumberOfItems","result","toJSON","id","clientId","clientName","userName","creationDateTime","DateTime","fromISO","toString","undefined","parkingSessionId","paymentState","requestId","requestedAmount","requestCurrency","capturedAmount","transactionBaseFeeInCHF","transactionFeeInPercent","ancestorPaymentId","ParkingSessionPaymentState","PaymentReportParameterDTO","dateRange","DateRangeParameterDTO","PagedResultDTOOfSavedReportDTO","constructor","data","property","hasOwnProperty","init","_data","Array","isArray","items","item","push","SavedReportDTO","fromJS","totalNumberOfItems","result","toJSON","id","reportName","createdDateTime","DateTime","fromISO","toString","undefined","createdBy","LimitedUserInfoDTO","reportType","ReportType","PagedResultDTOOfTagMasterDTO","constructor","data","property","hasOwnProperty","init","_data","Array","isArray","items","item","push","TagMasterDTO","fromJS","totalNumberOfItems","result","toJSON","id","tagId","description","clientId","parkerId","parkerName","assignedOn","DateTime","fromISO","toString","undefined","isActive","PagedResultDTOOfTagsPerParkerReportDTO","TagsPerParkerReportDTO","firstName","lastName","company","parkerTag","ParkerTagDTO","TagsPerParkerReportParameterDTO","companyId","searchText","UserInfoDTO","constructor","data","property","hasOwnProperty","init","_data","userId","clientId","client","ClientDTO","fromJS","undefined","companyId","company","ParkerCompanyDTO","defaultCostCenterId","employeeNumber","userName","password","firstname","lastname","language","email","phoneNumber","address","zip","city","country","Array","isArray","roles","item","push","enabled","accessCode","accessCodeValidUntil","DateTime","fromISO","toString","accessCodeGeneratedOn","accessCodeUsedOn","permanentAccessCode","controlPlates","UserControlPlateDTO","linkedUsers","LimitedUserInfoDTO","linkedParkers","LinkedParkerDTO","result","toJSON","id","controlPlateNumber","countryCode","controlPlateType","title","isFavorite","enableAutomaticPlateRecognitionParking","automaticParkingPaymentAlias","PaymentAliasDTO","parkerId","firstName","lastName","tags","ParkerTagDTO","ClientLimitedDTO","isClientManaged","hasParkerPayedVisitorSubscriptions","RegisterUserResultDTO","statusCode","errorText","CreateUserDTO","constructor","data","property","hasOwnProperty","init","_data","clientId","companyId","email","employeeNumber","firstname","lastname","language","phoneNumber","password","address","zip","city","country","Array","isArray","roles","item","push","fromJS","result","toJSON","PagedResultDTOOfUserInfoDTO","items","UserInfoDTO","totalNumberOfItems","UpdateUserInfoDTO","userId","defaultCostCenterId","enabled","userName","accessCodeValidUntil","DateTime","fromISO","toString","undefined","CreateMobileUserDTO","CreateProxyUserDTO","UpdateProxyUserDTO","CreateThirdPartyUserDTO","UpdateThirdPartyUserDTO","ChangePasswordDTO","oldPassword","newPassword","UserDeletionResultDTO","constructor","data","property","hasOwnProperty","init","_data","userDeletionCode","fromJS","result","toJSON","UpdateControlPlatesDTO","constructor","data","property","hasOwnProperty","init","_data","Array","isArray","controlPlates","item","push","UserControlPlateDTO","fromJS","result","toJSON","PagedResultDTOOfUserExtractReportDTO","items","UserExtractReportDTO","totalNumberOfItems","entryDate","DateTime","fromISO","toString","undefined","exitDate","durationInMinutes","zoneName","clientName","parkingPrice","totalPrice","detailedPriceInformation","ParkingPriceDetailsDTO","currency","sessionOpeningEventType","UserExtractReportSummaryDTO","totalAmounts","AmountWithCurrencyDTO","totalNumberOfParkings","CreateZoneDTO","parentZoneId","clientId","name","isGroupingElement","separateNFCCode","nfcCode","enableGPSDetection","zoneGPSArea","maxPassageTime","parkingSpaceNumberDefinition","parkingSpaceCapacity","currentParkerCount","useBlacklistArea","blacklistGPSArea","PagedResultDTOOfZoneDTO","ZoneDTO","UpdateZoneDTO","id","foreignParkersAllowed","foreignParkingSubscriptionId","ZoneForUserDTO","foreignParkingSubscriptions","parkerSubscriptionAssignments","ParkingSubscriptionLimitedWithTariffsDTO","ParkerSubscriptionAssignmentDTO","GeneratedQrCodesDTO","constructor","data","property","hasOwnProperty","init","_data","zipName","contentBase64","fromJS","result","toJSON","ZoneQrCodeInfosDTO","zoneId","isStickerMode","parkingSpaceNumbers","ZoneDamageDTO","id","clientId","deviceId","device","ZoneDeviceDTO","undefined","reportTime","DateTime","fromISO","toString","damageDescription","reportPositionLatitude","reportPositionLongitude","reporter","DamageReporterDTO","state","Array","isArray","mediaFiles","item","push","zone","ZoneDTO","firstname","lastname","phoneNumber","ZoneDamageState","PagedResultDTOOfZoneDamageDTO","constructor","data","property","hasOwnProperty","init","_data","Array","isArray","items","item","push","ZoneDamageDTO","fromJS","totalNumberOfItems","result","toJSON","CreateZoneDeviceDTO","constructor","data","property","hasOwnProperty","init","_data","clientId","name","zoneId","description","enabled","groupControllerDeviceId","coordinates","deviceType","brand","direction","proxyUserId","Array","isArray","parameters","item","push","ZoneDeviceParameterDTO","fromJS","result","toJSON","UpdateZoneDeviceDTO","id","state","PagedResultDTOOfZoneDeviceDTO","items","ZoneDeviceDTO","totalNumberOfItems","ZoneDeviceSpecificationDTO","execLocation","ExecutionLocation","ExecuteZoneDeviceCommandDTO","deviceId","command","ZoneDeviceCommandDTO","undefined","ApiException","Error","message","status","response","headers","isApiException","obj","throwException","_observableThrow","blobToText","blob","Observable","observer","next","complete","reader","FileReader","onload","event","target","readAsText","ToastService","constructor","toasts","show","header","textOrTpl","placeholder","options","push","__spreadValues","showSuccess","classname","delay","type","showWarning","showError","errorId","errorDetail","showApiExeption","error","title","message","ApiException","isApiException","detail","JSON","parse","response","remove","toast","filter","t","doesErrorExistAlready","find","factory","ɵfac","providedIn","ɵɵelement","ɵɵelementStart","ɵɵtemplate","ToastComponent_ng_template_1_span_1_Template","ToastComponent_ng_template_1_span_2_Template","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","ctx_r1","toast","type","ɵɵtextInterpolate","ɵɵpipeBind1","header","ToastComponent_ng_template_3_ng_template_0_ng_template_0_Template","textOrTpl","ɵɵpropertyInterpolate","ɵɵsanitizeHtml","errorDetail","ToastComponent_ng_template_3_ng_template_1_div_2_Template","ɵɵpipeBind2","ɵɵpureFunction1","_c0","placeholder","ToastComponent_ng_template_3_ng_template_0_Template","ToastComponent_ng_template_3_ng_template_1_Template","ɵɵtemplateRefExtractor","isTemplate","text_r3","ToastComponent","constructor","toastService","position","X","Y","TemplateRef","onCreate","toastElement","show","timeOut","delay","cssClass","classname","closeToast","event","clickToClose","ɵɵdirectiveInject","ToastService","selectors","viewQuery","rf","ctx","SyncfusionToastComponent","ɵɵlistener","i0","ɵɵrestoreView","_r1","ɵɵresetView","remove","$event","ToastComponent_ng_template_1_Template","ToastComponent_ng_template_3_Template","ɵɵstyleMap","index","ToastModule","NgIf","NgTemplateOutlet","TranslateModule","TranslatePipe","ɵɵelementContainerStart","ɵɵelement","ɵɵadvance","ɵɵproperty","toast_r1","i_r2","ToastsComponent","constructor","toastService","ɵɵdirectiveInject","ToastService","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","ToastsComponent_ng_container_0_Template","toasts","NgFor","ToastComponent","styles","SpinnerService","constructor","spinnerCounter","showSpinner","value","reset","factory","ɵfac","providedIn","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","SpinnerComponent","showSpinner","spinnerService","constructor","ɵɵdirectiveInject","SpinnerService","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","SpinnerComponent_div_0_Template","ɵɵproperty","NgIf","styles","_c0","_c1","input$1","outputs$4","DropDownButtonItemDirective","ComplexBase","viewContainerRef","setValue","__ngFactoryType__","ɵɵdirectiveInject","ViewContainerRef","ɵɵdefineDirective","ɵɵInheritDefinitionFeature","DropDownButtonItemsDirective","ArrayBase","rf","ctx","dirIndex","ɵɵcontentQuery","_t","ɵɵqueryRefresh","ɵɵloadQuery","outputs$3","twoWays$2","DropDownButtonComponent","DropDownButton","ngEle","srenderer","viewContainerRef","injector","setValue","ComponentBase","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","DropDownButtonItemsDirective","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵInheritDefinitionFeature","_c0","_c1","ɵɵprojectionDef","ɵɵprojection","__decorate","ComponentMixins","DropDownButtonModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","StringHelper","capitalizeFirstLetter","source","charAt","toUpperCase","slice","capitalizeFirstLettersOfPropertyChain","splits","split","i","length","join","transformToTimeRepresentation","minutes","hours","Math","floor","minutesLeft","trunc","getTimeElapsed","startTime","durationInMinutes","DateTime","now","diff","ParkingProcessInfoService","constructor","parkingClient","getParkingProcessInfos","pipe","tap","info","parkingProcessInfos","sort","a","b","activeCheckinInfo","registrationDateTime","toMillis","ɵɵinject","ParkingClient","factory","ɵfac","providedIn","ɵɵelementStart","ɵɵtext","ɵɵelement","ɵɵelementEnd","ɵɵproperty","ɵɵpureFunction1","_c0","ctx_r0","parkingRoute","ɵɵadvance","ɵɵtextInterpolate1","getIndicatorText","ParkingIndicatorComponent","hasActiveCheckinInfo","parkingProcessInfoService","parkingProcessInfos","length","indicatorText","StringHelper","getTimeElapsed","at","activeCheckinInfo","registrationDateTime","constructor","ngOnInit","getParkingProcessInfos","subscribe","ɵɵdirectiveInject","ParkingProcessInfoService","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","ParkingIndicatorComponent_a_0_Template","NgIf","RouterLink","styles","LoginProxy","constructor","accountClient","login","userName","password","token","UserLoginDTO","grant_Type","client_Id","environment","apiClientId","pipe","map","res","access_token","refresh_token","refreshTokenLogin","refreshToken","refresh_Token","ɵɵinject","AccountClient","factory","ɵfac","numberingSystems_exports","__export","numberingSystems_default","supplemental","weekData_exports","__export","weekData_default","supplemental","SyncfusionTranslationService","constructor","http","onLanguageChanged","Subject","_isInitialized","use","language","syncfusionLang","getSyncfusionLanguageName","forkJoin","cldrCaGregorian","get","responseType","cldrNumbers","cldrTimeZoneNames","syncfusion","subscribe","data","loadCldr","numberingSystems","weekData","syncfusionData","L10n","load","setCulture","next","ɵɵinject","HttpClient","factory","ɵfac","providedIn","AuthService","constructor","loginProxy","userAccountClient","translate","idle","syncfusionTranslationService","document","resetLocalStorageIfNecessary","localStorage","environment","localStorageUserInfo","userInfoDTO","UserInfoDTO","fromJS","JSON","parse","setClientLanguage","language","setTimeout","watch","login","username","password","pipe","tap","token","refreshToken","localStorageToken","updateActivityTimeStamp","localStorageRefreshToken","switchMap","info","catchError","error","resetLocalStorage","map","userInfo","setUserInfoDTO","logout","subscribe","location","reload","setUserLanguage","getUserInfo","isUserLoggedIn","isUserAdmin","roles","indexOf","Role","Admin","isUserAdminOrClientAdmin","ClientAdmin","isUserAdminOrClientAdminOrCompanyAdmin","CompanyAdmin","hasUserClientAssigned","client","isUserClientUser","hasClientUserRole","ClientUser","isUserStandardUser","User","isUserCompanyAdmin","loadUserInfoDTO","localStorageActivityTimestamp","Date","now","stringify","Settings","defaultLocale","use","allowBrowserTranslation","documentElement","lang","production","timestamp","idleTimeoutInSeconds","removeItem","ɵɵinject","LoginProxy","UserAccountClient","TranslateService","Idle","SyncfusionTranslationService","DOCUMENT","factory","ɵfac","providedIn","LanguageService","constructor","translate","init","addLangs","environment","supportedLanguages","split","setDefaultLang","getLanguages","getLangs","ɵɵinject","TranslateService","factory","ɵfac","providedIn","ɵɵelementStart","ɵɵlistener","item_r2","ɵɵrestoreView","_r1","$implicit","ctx_r2","ɵɵnextContext","ɵɵresetView","setLanguage","ɵɵtext","ɵɵelementEnd","ɵɵclassMap","addClass","ɵɵadvance","ɵɵtextInterpolate","LanguageSelectorComponent","constructor","authService","languageService","languages","getLanguages","currentLang","lang","setUserLanguage","activeItem","isUserLoggedIn","getUserInfo","language","ɵɵdirectiveInject","AuthService","LanguageService","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtemplate","LanguageSelectorComponent_a_5_Template","ɵɵproperty","NgForOf","styles","ReportVisibilityService","constructor","authService","canUserSeeReport","reportType","isUserStandardUser","ReportType","UserExtract","ParkerExtract","Payment","AutomaticParking","isUserAdmin","isUserCompanyAdmin","ParkerTurnover","ParkerRegistrations","ɵɵinject","AuthService","factory","ɵfac","providedIn","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵpropertyInterpolate","ctx_r0","envInfo","ɵɵtextInterpolate","ɵɵlistener","$event","ɵɵrestoreView","_r2","ɵɵnextContext","ɵɵresetView","onSelection","ɵɵproperty","userNavigation","authService","getUserInfo","firstname","lastname","userIcon","ɵɵpureFunction0","_c0","ɵɵpureFunction1","_c1","homeRoute","ɵɵtextInterpolate1","ɵɵpipeBind1","clientAdministrationRoute","userManagementRoute","configurationAdministrationRoute","companyAdministrationRoute","tagMasterRoute","ɵɵtemplate","NavigationComponent_ejs_accordion_7_ng_template_8_a_0_Template","NavigationComponent_ejs_accordion_7_ng_template_8_a_1_Template","NavigationComponent_ejs_accordion_7_ng_template_8_a_2_Template","NavigationComponent_ejs_accordion_7_ng_template_8_a_3_Template","NavigationComponent_ejs_accordion_7_ng_template_8_a_10_Template","isUserAdmin","isUserAdminOrClientAdmin","parkerAdministrationRoute","tagsAdministrationRoute","parkingRoute","automaticParkingRoute","parkerRegistrationRoute","parkingRangerSessionsRoute","zoneDamageRoute","deviceInteraction","parkingCardRoute","NavigationComponent_ejs_accordion_7_ng_template_13_a_0_Template","NavigationComponent_ejs_accordion_7_ng_template_13_a_1_Template","NavigationComponent_ejs_accordion_7_ng_template_13_a_2_Template","NavigationComponent_ejs_accordion_7_ng_template_13_a_3_Template","NavigationComponent_ejs_accordion_7_ng_template_13_a_4_Template","NavigationComponent_ejs_accordion_7_ng_template_13_a_5_Template","NavigationComponent_ejs_accordion_7_ng_template_13_a_6_Template","isUserStandardUser","hasLinkedParker","hasActiveClient","hasAutomaticParking","isUserAdminOrClientAdminOrCompanyAdmin","tagsPerParkerReportRoute","parkerRegistrationsReportRoute","falseRecordingsReportRoute","parkerTurnoverReportRoute","parkerExtractReportRoute","deviceStatusReportRoute","automaticParkingReportRoute","paymentReportRoute","userExtractReportRoute","NavigationComponent_ejs_accordion_7_ng_template_18_a_3_Template","NavigationComponent_ejs_accordion_7_ng_template_18_a_4_Template","NavigationComponent_ejs_accordion_7_ng_template_18_a_5_Template","NavigationComponent_ejs_accordion_7_ng_template_18_a_6_Template","NavigationComponent_ejs_accordion_7_ng_template_18_a_7_Template","NavigationComponent_ejs_accordion_7_ng_template_18_a_8_Template","NavigationComponent_ejs_accordion_7_ng_template_18_a_9_Template","NavigationComponent_ejs_accordion_7_ng_template_18_a_10_Template","NavigationComponent_ejs_accordion_7_ng_template_18_a_11_Template","savedReportsRoute","canUserSeeReport","ReportType","TagsPerParker","ParkerRegistrations","FalseRecordings","ParkerTurnover","ParkerExtract","DeviceStatus","AutomaticParking","Payment","UserExtract","_r3","onAccordionCreated","NavigationComponent_ejs_accordion_7_ng_template_3_Template","ɵɵtemplateRefExtractor","NavigationComponent_ejs_accordion_7_ng_template_6_Template","NavigationComponent_ejs_accordion_7_ng_template_8_Template","NavigationComponent_ejs_accordion_7_ng_template_11_Template","NavigationComponent_ejs_accordion_7_ng_template_13_Template","NavigationComponent_ejs_accordion_7_ng_template_16_Template","NavigationComponent_ejs_accordion_7_ng_template_18_Template","adminSectionId","parkingSectionId","reportsSectionId","ɵɵelement","NavigationComponent","linkedParkers","length","some","lp","client","isActive","automaticParkingSchedulesEnabled","constructor","router","modalService","translate","reportVisibilityService","loading","userInfoModels","loginRoute","tagsPerParkerRoute","parkerRegistrationsRoute","falseRecordingsRoute","parkerTurnoverRoute","parkerExtractRoute","deviceStatusRoute","userExtractRoute","onBoardingWizardRoute","deviceInteractionRoute","subrouteMatch","isAccordionInitialized","ngOnInit","onLangChange","subscribe","_","text","instant","id","iconCss","environment","envInfoClass","events","pipe","filter","event","NavigationEnd","subroutes","route","adminRoute","parkRoute","reportsRoute","url","find","s","toLocaleLowerCase","indexOf","expandAccordionSection","item","editUser","changePassword","logout","navigate","editProfileRoute","showOkCancelDialog","onOkSubject","queryParams","init","then","changePasswordRoute","reportType","htmlElementId","i","accordion","element","children","expandItem","ɵɵdirectiveInject","Router","ModalService","TranslateService","AuthService","ReportVisibilityService","selectors","viewQuery","rf","ctx","AccordionComponent","NavigationComponent_div_3_Template","NavigationComponent_button_6_Template","NavigationComponent_ejs_accordion_7_Template","NavigationComponent_app_parking_indicator_9_Template","isUserLoggedIn","NgIf","NgClass","LanguageSelectorComponent","DropDownButtonModule","DropDownButtonComponent","AccordionModule","AccordionItemDirective","AccordionItemsDirective","RouterLinkActive","RouterLink","ParkingIndicatorComponent","TranslateModule","TranslatePipe","styles","Keepalive","KeepaliveSvc","http","zone","EventEmitter","url","HttpRequest","seconds","response","error","__ngFactoryType__","ɵɵinject","HttpClient","NgZone","ɵɵdefineInjectable","NgIdleKeepaliveModule","ɵɵdefineNgModule","ɵɵdefineInjector","NgIdleModule","WideFormatService","constructor","router","activatedRoute","useWideFormat","wideFormatPages","parkerAdministrationRoute","toLocaleLowerCase","tagsAdministrationRoute","userManagementRoute","parkingRangerSessionsRoute","zoneDamagePageName","deviceInteractionPageName","reportsPageName","tagsPerParkerPageName","parkerRegistrationsPageName","falseRecordingsPageName","parkerTurnoverPageName","parkerExtractPageName","iamReportWithTagInformationPageName","deviceStatusPageName","parkerPerTariffPageName","configurationAdministrationRoute","events","subscribe","event","NavigationEnd","url","forEach","page","index","indexOf","length","ɵɵinject","Router","ActivatedRoute","factory","ɵfac","providedIn","PreventShrinkService","constructor","router","activatedRoute","preventShrink","preventShrinkPages","userManagementRoute","toLocaleLowerCase","events","subscribe","event","NavigationEnd","url","forEach","page","index","indexOf","length","ɵɵinject","Router","ActivatedRoute","factory","ɵfac","providedIn","AppComponent","sideBarClickTrack","event","sideBar","element","contains","target","isOpen","show","subroutes","homeRoute","url","router","toLocaleLowerCase","subRouteMatch","find","s","indexOf","isPinned","hide","useWideFormat","wideFormatService","noShrink","preventShrinkService","preventShrink","isSidebarOpen","constructor","translate","keepAlive","idle","modalService","authService","languageService","version","hiddenSidebarRoutes","confirmEmailPageName","init","configureIdle","configureKeepAlive","environment","localStorage","localStorageIsSidebarPinned","events","pipe","filter","e","NavigationEnd","subscribe","route","setTimeout","ngOnInit","addEnvInfoClassToBody","window","innerWidth","onPinToggle","interval","onPing","updateActivityTimeStamp","setIdle","idleTimeoutInSeconds","setInterrupts","DEFAULT_INTERRUPTSOURCES","onIdleEnd","dialog","timeoutWarning","closeDialog","onTimeout","logout","onTimeoutWarning","countdown","message","instant","params","isIdling","showMessageDialog","bodyTag","document","body","envInfoClass","length","classList","add","ɵɵdirectiveInject","TranslateService","Keepalive","Idle","ModalService","AuthService","LanguageService","WideFormatService","PreventShrinkService","Router","selectors","viewQuery","rf","ctx","SidebarComponent","ɵɵlistener","$event","ɵɵresolveDocument","ɵɵelementStart","ɵɵelementEnd","ɵɵelement","ɵɵtext","ɵɵproperty","ɵɵadvance","ɵɵpureFunction2","_c0","ɵɵtextInterpolate","SidebarModule","NgClass","NavigationComponent","SpinnerComponent","RouterOutlet","ToastsComponent","ModalComponent","styles","BaseControlValueAccessor","_renderer","_elementRef","_","key","value","fn","isDisabled","__ngFactoryType__","ɵɵdirectiveInject","Renderer2","ElementRef","ɵɵdefineDirective","BuiltInControlValueAccessor","ɵBuiltInControlValueAccessor_BaseFactory","ɵɵgetInheritedFactory","ɵɵInheritDefinitionFeature","NG_VALUE_ACCESSOR","InjectionToken","CHECKBOX_VALUE_ACCESSOR","forwardRef","CheckboxControlValueAccessor","ɵCheckboxControlValueAccessor_BaseFactory","rf","ctx","ɵɵlistener","$event","ɵɵProvidersFeature","DEFAULT_VALUE_ACCESSOR","DefaultValueAccessor","_isAndroid","userAgent","getDOM","COMPOSITION_BUFFER_MODE","renderer","elementRef","_compositionMode","normalizedValue","isEmptyInputValue","hasValidLength","NG_VALIDATORS","NG_ASYNC_VALIDATORS","EMAIL_REGEXP","Validators","min","minValidator","max","maxValidator","control","requiredValidator","requiredTrueValidator","emailValidator","minLength","minLengthValidator","maxLength","maxLengthValidator","pattern","patternValidator","nullValidator","validators","compose","composeAsync","regex","regexStr","isPresent","o","toObservable","isPromise","from","mergeErrors","arrayOfErrors","res","errors","__spreadValues","executeValidators","validator","isValidatorFn","normalizeValidators","c","presentValidators","composeValidators","observables","forkJoin","map","composeAsyncValidators","mergeValidators","controlValidators","dirValidator","getControlValidators","getControlAsyncValidators","makeValidatorsArray","hasValidator","addValidators","currentValidators","current","v","removeValidators","AbstractControlDirective","errorCode","path","ControlContainer","NgControl","AbstractControlStatus","cd","ngControlStatusHost","ngGroupStatusHost","__spreadProps","NgControlStatus","ɵɵclassProp","NgControlStatusGroup","VALID","INVALID","PENDING","DISABLED","ControlEvent","ValueChangeEvent","value","source","PristineChangeEvent","pristine","TouchedChangeEvent","touched","StatusChangeEvent","status","FormSubmittedEvent","FormResetEvent","pickValidators","validatorOrOpts","isOptionsObj","coerceToValidator","validator","composeValidators","pickAsyncValidators","asyncValidator","coerceToAsyncValidator","composeAsyncValidators","assertControlPresent","parent","isGroup","key","controls","RuntimeError","assertAllValuesPresent","control","_","AbstractControl","validators","asyncValidators","computed","signal","Subject","validatorFn","asyncValidatorFn","untracked","v","addValidators","removeValidators","hasValidator","opts","changed","sourceControl","__spreadProps","__spreadValues","skipPristineCheck","changeFn","shouldHaveEmitted","ctrl","emitEvent","obs","toObservable","errors","path","currPath","name","errorCode","x","changedControl","EventEmitter","newPristine","fn","onlySelf","parentDirty","FormGroup","options","controlName","acc","subtreeUpdated","updated","child","cb","condition","initValue","res","UntypedFormGroup","FormGroup","FormRecord","FormGroup","CALL_SET_DISABLED_STATE","InjectionToken","setDisabledStateDefault","controlPath","name","parent","setUpControl","control","dir","callSetDisabledState","setUpValidators","setUpViewChangePipeline","setUpModelChangePipeline","setUpBlurPipeline","setUpDisabledChangeHandler","cleanUpControl","validateControlPresenceOnChange","noop","cleanUpValidators","registerOnValidatorChange","validators","onChange","validator","onDisabledChange","isDisabled","getControlValidators","mergeValidators","asyncValidators","getControlAsyncValidators","onValidatorChange","isControlUpdated","updatedValidators","updatedAsyncValidators","asyncValidator","newValue","updateControl","emitModelEvent","setUpFormContainer","cleanUpFormContainer","isPropertyUpdated","changes","viewModel","change","isBuiltInAccessor","valueAccessor","BuiltInControlValueAccessor","syncPendingControls","form","directives","dir","control","selectValueAccessor","valueAccessors","defaultAccessor","builtinAccessor","customAccessor","v","DefaultValueAccessor","removeListItem$1","list","el","index","removeListItem","list","el","index","isFormControlState","formState","FormControl","AbstractControl","validatorOrOpts","asyncValidator","pickValidators","pickAsyncValidators","isOptionsObj","value","options","changeFn","condition","fn","cb","UntypedFormControl","isFormControl","control","formControlBinding$1","NgControl","forwardRef","NgModel","resolvedPromise","parent","validators","asyncValidators","valueAccessors","_changeDetectorRef","callSetDisabledState","FormControl","EventEmitter","selectValueAccessor","changes","oldName","isPropertyUpdated","newValue","setUpControl","value","disabledValue","isDisabled","booleanAttribute","controlName","controlPath","__ngFactoryType__","ɵɵdirectiveInject","ControlContainer","NG_VALIDATORS","NG_ASYNC_VALIDATORS","NG_VALUE_ACCESSOR","ChangeDetectorRef","CALL_SET_DISABLED_STATE","ɵɵdefineDirective","ɵɵProvidersFeature","ɵɵInheritDefinitionFeature","ɵɵNgOnChangesFeature","ɵNgNoValidate","NUMBER_VALUE_ACCESSOR","NumberValueAccessor","BuiltInControlValueAccessor","normalizedValue","fn","ɵNumberValueAccessor_BaseFactory","ɵɵgetInheritedFactory","rf","ctx","ɵɵlistener","$event","RADIO_VALUE_ACCESSOR","RadioControlValueAccessor","RadioControlRegistry","control","accessor","c","controlPair","__ngFactoryType__","ɵɵdefineInjectable","RadioControlValueAccessor","BuiltInControlValueAccessor","renderer","elementRef","_registry","_injector","inject","CALL_SET_DISABLED_STATE","setDisabledStateDefault","NgControl","value","fn","isDisabled","ɵɵdirectiveInject","Renderer2","ElementRef","Injector","ɵɵdefineDirective","rf","ctx","ɵɵlistener","ɵɵProvidersFeature","RADIO_VALUE_ACCESSOR","ɵɵInheritDefinitionFeature","NG_MODEL_WITH_FORM_CONTROL_WARNING","InjectionToken","formControlBinding","NgControl","forwardRef","FormControlDirective","isDisabled","validators","asyncValidators","valueAccessors","_ngModelWarningConfig","callSetDisabledState","EventEmitter","selectValueAccessor","changes","previousForm","cleanUpControl","setUpControl","isPropertyUpdated","newValue","__ngFactoryType__","ɵɵdirectiveInject","NG_VALIDATORS","NG_ASYNC_VALIDATORS","NG_VALUE_ACCESSOR","CALL_SET_DISABLED_STATE","ɵɵdefineDirective","ɵɵProvidersFeature","ɵɵInheritDefinitionFeature","ɵɵNgOnChangesFeature","formDirectiveProvider","ControlContainer","FormGroupDirective","untracked","value","computed","signal","cleanUpValidators","dir","ctrl","removeListItem$1","$event","syncPendingControls","FormSubmittedEvent","FormResetEvent","oldCtrl","newCtrl","isFormControl","setUpFormContainer","cleanUpFormContainer","setUpValidators","rf","ctx","ɵɵlistener","controlNameBinding","NgControl","forwardRef","FormControlName","isDisabled","parent","validators","asyncValidators","valueAccessors","_ngModelWarningConfig","EventEmitter","selectValueAccessor","changes","isPropertyUpdated","newValue","controlPath","__ngFactoryType__","ɵɵdirectiveInject","ControlContainer","NG_VALIDATORS","NG_ASYNC_VALIDATORS","NG_VALUE_ACCESSOR","NG_MODEL_WITH_FORM_CONTROL_WARNING","ɵɵdefineDirective","ɵɵProvidersFeature","ɵɵInheritDefinitionFeature","ɵɵNgOnChangesFeature","toFloat","value","AbstractValidatorDirective","nullValidator","changes","input","control","fn","__ngFactoryType__","ɵɵdefineDirective","ɵɵNgOnChangesFeature","MIN_VALIDATOR","NG_VALIDATORS","forwardRef","MinValidator","AbstractValidatorDirective","input","toFloat","min","minValidator","ɵMinValidator_BaseFactory","__ngFactoryType__","ɵɵgetInheritedFactory","ɵɵdefineDirective","rf","ctx","ɵɵattribute","ɵɵProvidersFeature","ɵɵInheritDefinitionFeature","ɵInternalFormsSharedModule","__ngFactoryType__","ɵɵdefineNgModule","ɵɵdefineInjector","FormArray","AbstractControl","controls","validatorOrOpts","asyncValidator","pickValidators","pickAsyncValidators","index","control","options","adjustedIndex","value","assertAllValuesPresent","newValue","assertControlPresent","subtreeUpdated","updated","child","cb","condition","name","UntypedFormArray","isAbstractControlOptions","options","FormBuilder","nnfb","controls","reducedControls","newOptions","FormGroup","FormRecord","formState","validatorOrOpts","asyncValidator","FormControl","__spreadProps","__spreadValues","createdControls","c","FormArray","controlName","AbstractControl","value","validator","__ngFactoryType__","ɵɵdefineInjectable","UntypedFormBuilder","FormBuilder","controlsConfig","options","formState","validatorOrOpts","asyncValidator","ɵUntypedFormBuilder_BaseFactory","__ngFactoryType__","ɵɵgetInheritedFactory","ɵɵdefineInjectable","FormsModule","opts","CALL_SET_DISABLED_STATE","setDisabledStateDefault","__ngFactoryType__","ɵɵdefineNgModule","ɵɵdefineInjector","ɵInternalFormsSharedModule","ReactiveFormsModule","NG_MODEL_WITH_FORM_CONTROL_WARNING","_defineProperty","e","r","t","_toPropertyKey","ownKeys","e","r","t","o","_objectSpread2","_defineProperty","_toPrimitive","t","r","_toPropertyKey","i","noop","_WINDOW","_DOCUMENT","_MUTATION_OBSERVER","_PERFORMANCE","userAgent","WINDOW","DOCUMENT","MUTATION_OBSERVER","PERFORMANCE","IS_BROWSER","IS_DOM","IS_IE","p","g","S","A","P","s","t","r","o","L","G","lt","pt","xt","Ft","St","At","Ct","Lt","Wt","Et","t$1","r$1","bt$1","Yt","po","I$1","co","x","xo","m$1","c$1","F$1","Fo","ko","NAMESPACE_IDENTIFIER","UNITS_IN_GRID","DEFAULT_CSS_PREFIX","DEFAULT_REPLACEMENT_CLASS","DATA_FA_I2SVG","DATA_FA_PSEUDO_ELEMENT","DATA_FA_PSEUDO_ELEMENT_PENDING","DATA_PREFIX","DATA_ICON","HTML_CLASS_I2SVG_BASE_CLASS","MUTATION_APPROACH_ASYNC","TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS","PRODUCTION","familyProxy","obj","target","prop","_PREFIX_TO_STYLE","_objectSpread2","PREFIX_TO_STYLE","_STYLE_TO_PREFIX","STYLE_TO_PREFIX","_PREFIX_TO_LONG_STYLE","PREFIX_TO_LONG_STYLE","_LONG_STYLE_TO_PREFIX","LONG_STYLE_TO_PREFIX","ICON_SELECTION_SYNTAX_PATTERN","LAYERS_TEXT_CLASSNAME","FONT_FAMILY_PATTERN","_FONT_WEIGHT_TO_PREFIX","FONT_WEIGHT_TO_PREFIX","ATTRIBUTES_WATCHED_FOR_MUTATION","DUOTONE_CLASSES","RESERVED_CLASSES","initial","getAttrConfig","attr","element","coerce","val","_ref","key","_default","_config","config","_onChangeCb","cb","onChange","d$2","meaninglessTransform","insertCss","css","style","headChildren","beforeChild","i","child","tagName","idPool","nextUniqueId","size","id","toArray","array","classArray","node","htmlEscape","str","joinAttributes","attributes","acc","attributeName","joinStyles","styles","styleName","transformIsMeaningful","transform","transformForSvg","containerWidth","iconWidth","outer","innerTranslate","innerScale","innerRotate","inner","path","transformForCss","_ref2","width","height","startCentered","baseStyles","dcp","drc","fp","rc","dPatt","customPropPatt","rPatt","_cssInserted","ensureCss","InjectCSS","w","namespace","functions","listener","loaded","fn","domready","toHtml","abstractNodes","tag","children","iconFromMapping","mapping","prefix","iconName","bindInternal4","func","thisContext","a","b","c","d","reduce","subject","initialValue","keys","length","iterator","result","ucs2decode","string","output","counter","value","extra","toHex","unicode","decoded","codePointAt","index","first","second","normalizeIcons","icons","icon","defineIcons","params","skipHooks","normalized","styles","shims","namespace","FAMILY_NAMES","PREFIX_TO_LONG_STYLE","PREFIXES_FOR_FAMILY","acc","familyId","_defaultUsablePrefix","_byUnicode","_byLigature","_byOldName","_byOldUnicode","_byAlias","isReserved","name","RESERVED_CLASSES","getIconName","cssPrefix","cls","parts","prefix","iconName","build","lookup","reducer","reduce","o$$1","style","icon","a$$1","alias","aliases","hasRegular","config","shimLookups","shim","maybeNameMaybeUnicode","getCanonicalPrefix","onChange","c$$1","byUnicode","unicode","byLigature","ligature","byAlias","byOldName","byOldUnicode","oldUnicode","newUnicode","getDefaultUsablePrefix","emptyCanonicalIcon","getFamilyId","values","family","s","famProps","L","v$$1","styleOrPrefix","params","PREFIX_TO_STYLE","t","STYLE_TO_PREFIX","defined","moveNonFaClassesToRest","classNames","rest","result","sortedUniqueValues","arr","value","index","getCanonicalIcon","skipLookups","givenPrefix","faCombinedClasses","xo","bt$1","faStyleOrFamilyClasses","nonStyleOrFamilyClasses","faStyles","P","styleFromValues","canonical","_objectSpread2","getDefaultCanonicalPrefix","applyShimAndAlias","aliasIconName","newCanonicalFamilies","newCanonicalStyles","co","key","prefixOptions","config$$1","isDuotoneFamily","valuesHasDuotone","defaultFamilyIsDuotone","canonicalPrefixIsDuotone","defaultPrefix","pt","Library","_len","definitions","_key","additions","defineIcons","longPrefix","definition","normalized","_plugins","_hooks","providers","defaultProviderKeys","registerPlugins","nextPlugins","_ref","obj","k","plugin","mixout","tk","sk","hooks","hook","chainHooks","accumulator","args","hookFn","callHooks","_len2","_key2","callProvided","findIconDefinition","iconLookup","iconFromMapping","library","noAuto","dom","IS_DOM","autoReplaceSvgRoot","domready","autoReplace","parse","ICON_SELECTION_SYNTAX_PATTERN","canonicalIcon","api","toHtml","DOCUMENT","domVariants","val","abstractCreator","a","container","asIcon","children","main","mask","attributes","transform","transformIsMeaningful","width","height","offset","joinStyles","asSymbol","symbol","id","makeInlineSvgAbstract","title","maskId","titleId","extra","watchable","isUploadedIcon","Lt","attrClass","content","uploadedIconWidthStyle","DATA_FA_I2SVG","nextUniqueId","makeLayersTextAbstract","transformForCss","styleString","makeLayersCounterAbstract","styles$1","asFoundIcon","vectorData","element","DUOTONE_CLASSES","missingIconResolutionMixin","maybeNotifyMissing","PRODUCTION","findIcon","resolve","reject","noop$1","p$2","PERFORMANCE","preamble","begin","end","perf","noop$2","isWatched","node","hasPrefixAndIcon","DATA_PREFIX","DATA_ICON","hasBeenReplaced","getMutator","mutators","createElementNS","tag","createElement","convertSVG","abstractObj","ceFn","child","nodeAsComment","comment","mutation","abstract","classArray","forSvg","splitClasses","newInnerHTML","performOperationSync","op","perform","mutations","callback","callbackFunction","frame","MUTATION_APPROACH_ASYNC","WINDOW","mutator","mark","disabled","disableObservation","enableObservation","mo$1","observe","options","MUTATION_OBSERVER","treeCallback","nodeCallback","pseudoElementsCallback","observeMutationsRoot","objects","toArray","mutationRecord","ATTRIBUTES_WATCHED_FOR_MUTATION","disconnect","styleParser","prop","classParser","existingPrefix","existingIconName","innerText","toHex","attributesParser","extraAttributes","attr","blankMeta","meaninglessTransform","parseMeta","parser","extraClasses","pluginMeta","extraStyles","styles$2","generateMutation","nodeMeta","LAYERS_TEXT_CLASSNAME","getKnownPrefixes","Ft","onTree","root","htmlClassList","hclAdd","suffix","HTML_CLASS_I2SVG_BASE_CLASS","hclRemove","prefixes","prefixesDomQuery","p$$1","candidates","e$$1","resolvedMutations","onNode","resolveIcons","next","maybeIconDefinition","iconDefinition","render","classes","ReplaceElements","providers$$1","_ref2","nextChild","Layers","assembler","LayersCounter","LayersText","IS_IE","computedFontSize","boundingClientRect","CLEAN_CONTENT_PATTERN","SECONDARY_UNICODE_RANGE","_FONT_FAMILY_WEIGHT_TO_PREFIX","lt","ko","Yt","FONT_FAMILY_WEIGHT_TO_PREFIX","FONT_FAMILY_WEIGHT_FALLBACK","fontFamily","weights","hexValueFromContent","cleaned","codePoint","codePointAt","isPrependTen","isDoubled","getPrefix","fontWeight","fontFamilySanitized","fontWeightInteger","fontWeightSanitized","replaceForPosition","position","pendingAttribute","DATA_FA_PSEUDO_ELEMENT_PENDING","alreadyProcessedPseudoElement","DATA_FA_PSEUDO_ELEMENT","fontFamilyMatch","FONT_FAMILY_PATTERN","hexValue","isSecondary","isV4","iconIdentifier","iconName4","meta","replace","processable","TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS","searchPseudoElements","operations","PseudoElements","_unwatched","MutationObserver$1","parseTransformString","transformString","n","first","PowerTransforms","containerWidth","iconWidth","outer","innerTranslate","innerScale","innerRotate","inner","path","ALL_SPACE","fillBlack","force","deGroup","Masks","maskData","i","explicitMaskId","mainWidth","mainPath","maskWidth","maskPath","trans","transformForSvg","maskRect","maskInnerGroupChildrenMixin","maskInnerGroup","maskOuterGroup","clipId","maskTag","defs","MissingIconIndicator","reduceMotion","gChildren","FILL","ANIMATION_BASE","OPACITY_ANIMATE","dot","SvgSymbols","symbolData","plugins","InjectCSS","noAuto$1","config$1","library$1","dom$1","parse$1","findIconDefinition$1","toHtml$1","layer","text","counter","FontAwesomeModule","__ngFactoryType__","ɵɵdefineNgModule","ɵɵdefineInjector","TranslateHttpLoader","http","prefix","suffix","lang","JsonSerializable","HttpJsonUtilities","concatenateToMatrixUrlParams","params","formatedString","forEach","element","propertyValue","undefined","propertyName","toJson","propertyType","toMatrixUrlParams","object","property","hasOwnProperty","value","valueString","fromJson","typeName","DateTime","fromISO","trim","JsonSerializable","toString","factory","ɵfac","ActivityScope","constructor","name","completionCallback","Complete","ActivityService","activityScopes","_isBusySinceAWhile","endActivity","scope","index","indexOf","splice","length","_timer","clearTimeout","undefined","isBusy","isBusySinceAWhile","beginActivity","push","setTimeout","factory","ɵfac","HttpConfigService","constructor","apiServerUrl","environment","factory","ɵfac","AuthInterceptor","constructor","router","spinnerService","loginProxy","refreshTokenInProgress","refreshTokenSubject","BehaviorSubject","intercept","originalRequest","next","request","addAuthorizationHeaderIfPossible","headers","get","handle","pipe","catchError","err","HttpErrorResponse","status","throwError","filter","result","take","switchMap","newRequest","refreshTokenLogin","showSpinner","localStorage","removeItem","environment","localStorageToken","localStorageRefreshToken","navigate","loginRoute","of","url","includes","apiServerUrl","token","clone","setHeaders","Authorization","originalError","map","rToken","ɵɵinject","Router","SpinnerService","LoginProxy","factory","ɵfac","AppErrorMessagesService","createMessages","control","errors","Object","keys","map","key","subkeys","length","translate","params","requiredLength","min","max","getApiErrorCode","error","response","errorObject","JSON","parse","ErrorCode","factory","ɵfac","EnumTranslationService","constructor","translateService","translateEnum","enumType","translationBase","isNumericEnum","dropDownItems","convertToTranslationStrings","translateDropDownItems","enumMember","isNaN","Number","push","key","value","forEach","item","instant","translateNumericEnum","exclude","includes","text","toString","ɵɵinject","TranslateService","factory","ɵfac","queryString","prevString","tempQueryString","matches","activeClass","prevElementId","incrementalSearch","keyCode","items","selectedIndex","ignoreCase","elementId","queryStringUpdated","currentValue","isVirtual","refresh","index","i","listItems","strLength","text","item","indexUpdated","i_1","Search","inputVal","searchType","dataSource","fields","type","itemData","queryStr","escapeCharRegExp","_loop_1","itemsData","filterValue","checkField_1","fieldValue_1","data","value","state_1","resetIncrementalSearchValues","highlightSearch","element","query","isHtmlElement","match","ignoreRegex","replaceQuery","findTextNode","pattern","revertHighlightSearch","content","contentElement","parent_1","__extends","extendStatics","d","b","p","__","__decorate","decorators","target","key","desc","c","r","i","FieldSettings","_super","Property","ChildProperty","dropDownBaseClasses","ITEMTEMPLATE_PROPERTY","DISPLAYTEMPLATE_PROPERTY","SPINNERTEMPLATE_PROPERTY","VALUETEMPLATE_PROPERTY","GROUPTEMPLATE_PROPERTY","HEADERTEMPLATE_PROPERTY","FOOTERTEMPLATE_PROPERTY","NORECORDSTEMPLATE_PROPERTY","ACTIONFAILURETEMPLATE_PROPERTY","HIDE_GROUPLIST","DropDownBase","options","element","_this","prop","newProp","oldProp","newProperty","oldProperty","propName","data","text","ignoreCase","ignoreAccent","value","isNullOrUndefined","isTextByValue","dataSource","fields","type","_i","dataSource_1","item","itemValue","getValue","compareValue_1","dataItem","DataUtil","textItem","typedText","baseTemplate","checkTemplate","selectAll","actionFailure","ele","template","compiledString","templateId","tempaltecheck","compile$1","select","templateName","noDataElement","liElem","l10nLocale","componentLocale","L10n","content","startIndex","endIndex","currentSkeletonCount","DataManager","skeletonUpdated","virualElement","retainSkeleton","actualCount","height","heightDimension","translateY","styleText","isSkeletonCountChange","skeletonCount","isContainSkeleton","isContainVirtualList","totalSkeletonCount","liElement","skeleton","Skeleton","addClass","removeClass","jsonElement","ListBase","invalidAttr","attr","a","extend","group","option","optionGroup","child","groupBy","htmlAttributes","iconCss","disabled","field","items","options_1","json","query","event","ulElement","eventArgs","isWhereExist_1","e","isReOrder","newQuery","queryElements","listItems","Query","dataManager","localDataArgs","pageCount","state","li","childNode","append","objectToFind","array","list","findNode","attribute","listArr","index","dataBoundEventArgs","spliceData","listElements","setStyleAttribute","listElement","bindEvent","liCollections","focusItem","selectedItem","itemCount","filtering","isCheckbox","listEle","headerItems","groupcheck","groupValue","tempHeaders","fieldValues","prepend","isDownkey","liHeight","topIndex","virtualListCount","returnExactCount","listData","isCheckBoxUpdate","oldUlElement","virtualUlElement","reOrderList","isRemovedUlelement","itemcheck","listDataType","isNullData","borderWidth","borderTopWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","liWidth","firstLi","textField","evt","isFiltering","props","oldProps","updateData","j","_a","isEmptyData","rippleModel","rippleEffect","EventHandler","wrapperElement","itemIndex","newList","itemsCount","isListboxEmpty","selectedItemValue","isHeader","itemText","itemCheck","addItemTemplate","listGroupItem","tempLi","hidden","name","attributes","_b","_c","detach","Complex","Event$1","NotifyPropertyChanges","Component","__extends$1","__decorate$1","dropDownListClasses","inputObject","DropDownList","modules","floatElement","classList","properties","htmlAttr","updatedClassValue","defaultAttr","validateAttr","Input","listItems_1","liItem","objectValue","currentTarget","isPreventBlur","args","formElement","closest","val","Browser","KeyboardEvents","delay","currentLi","hoveredItem","updatingincrementalindex","queryStringUpdated","activeElement","currentValue","incrementalSearch","index_1","selectedLiOffsetTop","enableLiCollections","hideSpinner","createSpinner","showSpinner","preventAction","preventHomeEnd","isNavigation","isTabAction","isVirtualKeyAction","filterIndex","focusEle","virtualIndex","nextItem","selectedData","focusAtFirstElement","findLi","steps","previousItem","id","isActive","proxy_1","duration","preventSelect","isSelection","focusedItem","clearIcon","isFilterElement","clearElement","getItem","Predicate","dropdownTemplate","valuecheck","valueCompTemp","selectedItems","dataValue","dataText","isUndefined","eve","isCustomValue","datas","foundIndex","preItems","selectedElement","selection","filterQuery","filterType","dataType","takeValue","alreadySkipAdded","queryTakeValue","querySkipValue","skipExists","input","eventArgs_1","isNoData","popupElement","parentElement","backIcon","isUpdated","tempItemCount","checkField_1","value_1","fieldValue_1","checkVal","x","valueToFind","fieldValue","checkField","newElement","value_2","isExist","findEle","highlightedItem","popupEle","searchBox","formatUnit","listitems","offsetValue","left","firstItem","scrollParentElements","scrollParentElements_1","inputParent","animModel","popupInstance","Animation","collision","isCollide","popupStyles","borderTop","borderBottom","Popup","actionList","elementRect","searchBoxHeight","border","popupOffset","selectedLI","lastItem","listHeight","lastItemOffsetValue","count","paddingBottom","inputHeight","width","inputWidth","isInitial","isInitialSelection","keyAction","selectedListMargin","lastElementValue","currentOffset","nextBottom","nextOffset","isScrollerCHanged","boxRange","currentElementValue","liCount","firstElementValue","isPageUpKeyAction","isFilterValue","typedString","scrollableParentElements","scrollableParentElements_1","fixedHeader","dataSourceCount","currentData","updatedCssClassValues","getUniqueID","selectElement","floatLabelElement","listParent","listParentHeight","listItemHeight","footercheck","footerCompTemp","headercheck","headerCompTemp","contentEle","isChangeValue","isChangeText","_loop_1","this_1","listLength_1","listLength_2","value_3","ddlProps","state_1","newClass","oldClass","proxy_2","isSelectVal","isFocused","isValidIndex","parsedData","resetIncrementalSearchValues","attrArray","__extends$2","__decorate$2","RTL","DROPDOWNTREE","HIDDENELEMENT","DROPDOWNICON","SHOW_CHIP","SHOW_CLEAR","SHOW_DD_ICON","CHIP_INPUT","INPUTFOCUS","INPUTGROUP","ICONANIMATION","CLOSEICON_CLASS","CHIP_WRAPPER","CHIP_COLLECTION","CHIP","CHIP_CONTENT","CHIP_CLOSE","HIDEICON","DDTHIDEICON","POPUP_CLASS","PARENTITEM","CONTENT","DROPDOWN","DISABLED","ICONS","CHECKALLPARENT","CHECKALLHIDE","BIGGER","SMALL","ALLTEXT","CHECKBOXFRAME","CHECK","CHECKBOXWRAP","FILTERWRAP","DDTICON","FOOTER","HEADER","NODATACONTAINER","NODATA","HEADERTEMPLATE","FOOTERTEMPLATE","NORECORDSTEMPLATE","ACTIONFAILURETEMPLATE","CUSTOMTEMPLATE","REMAIN_WRAPPER","OVERFLOW_VIEW","SHOW_TEXT","TOTAL_COUNT_WRAPPER","REMAIN_COUNT","Fields","TreeSettings","DropDownTree","keyEntity","isTree","popupDiv","firstUl","flag","checkAllEle","filterInput","TextBox","focusedElement","observedArgs","filterFields","filteredFields","filteredChild","node","isChild","isChildFiltering","children","matchedChildren","filteredItems","matchedDataSource","matchedData","parentId","parent_1","checkValue","isObjectValue","tempChild","isValue","isEqual","oldValue","newValue","isValid","overAllContainer","temp","tempData","tempIndex","wrapperleng","remaining","downIconWidth","remainContent","totalContent","remainElement","remainSize","remove","SanitizeHtmlHelper","textArr","isChip","currentHtmlContent","previousHtmlContent","previousData","wrapperLength","remainingItemsCount","clonedElement","valueElements","touchClass","createCheckBox","checkElement","wrapper","ariaState","frameSpan","unSelect","valArr","setValue","templateElements","difference","givenText","newData","objlen","dataId","childData","mapper","TreeView","isCancelled","oldFocussedNode","nodes","checkedNodes","wrap","popupHeight","ddElement","isFilter","isFooter","isScroller","matches","elements","clonedField","treeFields","childFields","ds","len","checkData","selectData","selectedText","getNodeDetails","chipClose","spinIcon","floatLabelType","newValues","selectedValues","ddtValue","checkSelection","childItems","obj","newChildItems","childNodeData","muteOnChange","show","showChip","textValue","hiddenInputValue","chip","chipContent","templatestring","tempArr","isDynamicChange","arr","checkBox","action","validMode","overFlow","prop_1","chipsIcons","chipsIcons_1","__extends$3","__decorate$3","SPINNER_CLASS","inputObject$1","ComboBox","inputValue","changeData","fields_1","isvalidTextField_1","isValidValue_1","keys","doesItemExist","currentValue_1","ariaAttributes","searchBoxContainer","selected","isSelected","activeItem","Search","isEndIndexValid","isIncrementalEndIndexZero","startIndex_1","endIndex_1","fixedHead","virtualContent","virtualListInfoStartIndex","virtualListHeight","selectedLiOffsetTopWithStartIndex","virtualListLength","scrollTopOffset","isHover","currentFillValue","currentPoints","prevEnd","curEnd","prevStart","curStart","property","isKeyNavigate","previousValue","previousValue_1","emptyObject","comboProps","isEscape","searchItem","__extends$4","__decorate$4","AutoComplete","_this_1","queryString","mapping","currentTakeValue","currentQueryTakeValue","isNoDataElement","virtualElement","fieldsSettings","highlightSearch","itemCreated_1","checkFields1_1","_this_2","button","atcProps","isHighlight","revertHighlightSearch","FLOATLINE","FLOATTEXT","LABELTOP","LABELBOTTOM","createFloatLabel","overAllWrapper","searchWrapper","inputElement","placeholder","floatLinelement","createElement","encodePlaceholder","updateFloatLabelState","label","removeFloating","componentWrapper","placeholderElement","floatLine","placeholderText","setPlaceHolder","floatLabelFocus","floatLabelBlur","result","spanElement","hiddenInput","__extends$5","__decorate$5","FOCUS","DISABLED$1","OVER_ALL_WRAPPER","ELEMENT_WRAPPER","ELEMENT_MOBILE_WRAPPER","HIDE_LIST","DELIMITER_VIEW","CHIP_WRAPPER$1","CHIP$1","CHIP_CONTENT$1","CHIP_CLOSE$1","CHIP_SELECTED","SEARCHBOX_WRAPPER","DELIMITER_VIEW_WRAPPER","ZERO_SIZE","REMAIN_WRAPPER$1","CLOSEICON_CLASS$1","DELIMITER_WRAPPER","POPUP_WRAPPER","INPUT_ELEMENT","RTL_CLASS","CLOSE_ICON_HIDE","MOBILE_CHIP","FOOTER$1","HEADER$1","DISABLE_ICON","SPINNER_CLASS$1","HIDDEN_ELEMENT","destroy","dropdownIcon","iconAnimation","TOTAL_COUNT_WRAPPER$1","BOX_ELEMENT","FILTERPARENT","CUSTOM_WIDTH","FILTERINPUT","MultiSelect","prevOnChange","containerAttr","mainListItems","valueEle","disableStatus","status","selectedElem","customValue","predicate","JsonAdaptor","proxy","checkEle","className","ariaValue","element1","temp1","groupItemLength","listItem","searchCount","searchActiveCount","char","isWordCharacter","isSkip","dataChecks","customData","dataItem_1","emptyObject_1","totalData","tempCount","isDocClickFromCheck","listLiElement","allowChipAddition","elementWidth","newVal","oldVal","collection","size","codePoint","sizeMultiplier","isHome","scrollEle","activeIndex","focuseElem","selectAllParent","li_1","keyCode","limit","selectAllCheckBox","currentChip","targetElement","filterInputClassName","position","isVirtualElement","elementIndex","focusedLi","elem","customVal","isClearAll","mainElement","removeVal","length","targetEle","element_1","val_1","currentText","hideElement","currentValue_2","targetEle_1","isSelectAll","element2","textValues","activeItems","inactiveItems","isNotTrigger","val_2","closeElements","chipElem","multiselectTemplate","match","itemData","classes","fieldProperty","checkboxFilter","overAllHeight","checkboxFilterInput","tempValues","textVal","index1","delimiterChar","delim","valueLength","hiddenElementContent","_loop_2","valueItem","listValue","item_1","lastChild","out_index_1","state_2","isChipRemove","isInitialVirtualData","isCustomData","indexItem","noDataEle","isDynamicGroupItemUpdate","isReactTemplateUpdate","isAngularTemplateUpdate","temp_1","data_1","selectItems","mainlist","ariaCheck","delimChar","headerLi","visibleListElements","liChecked","liUnchecked","groupValues","checked","unChecked","groupHeader","checkBoxElement","isDisabled","filterClear","wrapperType","wrapperData","l10n","raminElement","remainCompildTemp","totalWidth","viewWrapper","remainTemp","totalTemp","newTemp","selectionLimit","firstItems","fragment_1","concatenatedNodeList","virtualTrackElement","virtualContentElement","beforeSelectArgs","count_1","isVirtualSelectAll","hiddenValue","wrapperText","isRemoveAll","msProps","checkvalue","typedValue","mainLiLength","liLength","dataIndex","indexValue","isData","optionsElement","valueCol","textCol","optionsLen","opt","listItems_2","__extends$6","extendStatics","d","b","p","__","__decorate$6","decorators","target","key","desc","c","r","i","SelectionSettings","_super","Property","ChildProperty","ToolbarSettings","ListBox","options","element","_this","ListBox_1","items","itemIndex","Query","originalElement","clonedElement","setValue","hiddenSelect","groupHdrs","dropDownBaseClasses","removeClass","attributes","l10nSelect","L10n","Sortable","e","wrapper","ele","refEle","getZindexPartial","li","item","index","pos","prevScope","isNullOrUndefined","toolElem","getUniqueID","scope","getComponent","btn","title","l10n","value","Button","input","formatUnit","addClass","wrap","cssClass","createSpinner","showSpinner","hideSpinner","detach","event","listBoxClasses","clearElement","ulElement","list","searchEle","filterElem","txtLength","noRecElem","inputSearch","extend","scopedLB","args","badge","Browser","dragEventArgs","scrollParent","boundRect","scrollMoved","scrollHeight","listItem","scrollElem","scrollPixel","isScrollDown","listData","liColl","jsonData","droppedData","selectedOptions","sortedData","dropValue","listObj","getArgs","sourceArgs","destArgs","dragArgs","sourceArgs1","targetListObj","ul_1","toSortIdx_1","toIdx_1","rIdx","jsonIdx","sIdx","getValue","idx","jsonIdx_1","sIdx_1","li_1","fLiColl_1","currIdx_1","ul_2","fListData_1","fSortData_1","srcIdx","jsonSrcIdx","sortIdx","destIdx","liCollElem_1","sourceElem","sortable","dragArgs1","liCollElem","destElem","elems","closest","dataSource","fields","modules","enable","isValue","text","canDisable_1","state","selElems","j","liCollections","liElement","dataValue","objValue","dupData","removeIdxes","removeLiIdxes","validRemoveIdxes","a","k","data","elem","targetId","tlistbox","sortData","tempData","tempLi","liEle","_loop_1","dataValue1","this_1","_loop_2","dataValue2","this_2","mainList","ulList","mainCount","ulEleCount","listindex","valueindex","count","form","EventHandler","searchCount","liItems","len","query","filterQuery","filterType","dataType","DataManager","filterInputObj","Input","append","prepend","isKey","isSelect","currSelIdx","selectedLi","liDataValue_1","value1","values","selectedLis","formattedValue","type","_i","_a","_b","_c","limit","isUp","isTop","isBottom","tempItems","localDataArgs","jsonToIdx","moveTo","fListBox","tListBox","dataIdx","tListData","tSortData","fliCollections","dataLiIdx","tliCollections","isRefresh","ulChildren_1","listItems_1","lData_1","sData_1","jData_1","eData_1","listDataMap_1","value_1","rLiCollection_1","n1","n2","toColl","tJsonData","toolbarAction","inst","childCnt","liIdx","validIdx","tempLiColl","flistboxarray","childNodes","childElementCount","newFlistboxArray","childNode","val","disabledData_1","obj1","obj2","fromIdx","toIdx","cbox","grabbItems","isDragEnd","ul","defaultIdx","fliIdx","fli","cli","selectedidx","sidx","eidx","char","isWordCharacter","eventArgsData_1","keyCode","cul","dvalue_1","isText","canFocus","liselect","innerHTML","listObj_1","wrap_1","listWrap","showCheckbox","liCollLen","l10nShow","newProp","oldProp","prop","showSelectAll","l10nSel","Event$1","Complex","NotifyPropertyChanges","DropDownBase","__extends","extendStatics","d","b","p","__","__decorate","decorators","target","key","desc","c","r","i","OTHERMONTH","OTHERDECADE","ROOT","DEVICE","HEADER","RTL","CONTENT","CONTENTTABLE","YEAR","MONTH","DECADE","ICON","PREVICON","NEXTICON","PREVSPAN","NEXTSPAN","ICONCONTAINER","DISABLED","OVERLAY","WEEKEND","WEEKNUMBER","SELECTED","FOCUSEDDATE","FOCUSEDCELL","OTHERMONTHROW","TODAY","TITLE","LINK","CELL","WEEKHEADER","ZOOMIN","FOOTER","BTN","FLAT","CSS","PRIMARY","DAYHEADERLONG","dayMilliSeconds","minutesMilliSeconds","CalendarBase","_super","options","element","_this","Internationalization","isNullOrUndefined","Browser","attributes","closest","min","max","value","popupWrapper","popupElement","modal","isDevice","index","removeClass","addClass","ariaPrevAttrs","ariaNextAttrs","ariaTitleAttrs","tabIndexAttr","iconContainer","rippleEffect","EventHandler","args","focusedDate","selectedDate","culShortNames","cldrObj","dayFormat","getValue","getDefaultDateObject","cldrData","_i","_a","obj","text","detach","daysCount","html","shortNames","days","minimum","maximum","l10nLocale","L10n","id","ref","keyConfig","moduleName","extend","KeyboardEvents","isCustomDate","multiSelection","view","depthValue","levelRestrict","number","currentView","e","date","localDate","currentDate","minDate","maxDate","numCells","tdEles","values","isTodayDate","cellsCount","todayDate","minMaxDate","currentMonth","day","weekEle","weekAnchor","numberOfDays","finalDate","dateFormatOptions","tdEle","title","dayLink","disabled","argument","selectDate","argsDate","localDateString","tempDateString","otherMnthBool","disabledCls","currentTarget","tempValue","type","formatOptions","copyValues","type_1","formatOptions_1","localDateString_1","tempDateString_1","otherMonth","tableElement","valueUtil","curDate","mon","yr","curYrs","minYr","minMonth","maxYr","maxMonth","month","localMonth","select","yearCell","localYr","startYr","endYr","startFullYr","endFullYr","startHdrYr","endHdrYr","start","startYear","rowIterator","year","attrs","getUniqueID","collection","lastDate","timeOffset","elements","count","classNm","trEle","weekNumCell","numberCell","otherMonthCell","row","dayCell","eve","islamicDate","modules","keyEntity","newProp","oldProp","prop","skipIndex","tempValueString","minFormatOption","minStringValue","minString","maxFormatOption","maxStringValue","maxString","globalize","dayFormatOptions","monthFormatOptions","focusedEle","selectedEle","stringVal","ld","gregorianFormat","islamicFormat","mainVal","time","tzOffset","tzOffsetDiff","dateString","node","tableBodyElement","tempElement","selectedElement","dates","previousValue","checkPrevious","event","startDate","endDate","modifier","end","result","array","column","rangeValue","isDisabled","tmpDate","inValue","timezone","Property","Event$1","NotifyPropertyChanges","Component","Calendar","throwError","tempValues","limit","copyDate","form","enable","newCssClass","oldCssClass","secondOffset","firstOffset","offsetValue","serverTimezoneDiff","clientTimeZoneDiff","timeZoneDiff","isMultiSelect","tempDays","storeView","isMultiSelection","tempDate","tempDates","__extends$1","extendStatics","d","b","p","__","__decorate$1","decorators","target","key","desc","c","r","i","DATEWRAPPER","ROOT$1","LIBRARY","CONTROL","POPUPWRAPPER","INPUTWRAPPER","POPUP","INPUTCONTAINER","INPUTFOCUS","INPUTROOT","ERROR","ACTIVE","OVERFLOW","DATEICON","ICONS","OPENDURATION","OFFSETVALUE","SELECTED$2","FOCUSEDDATE$2","NONEDIT","containerAttr","DatePicker","_super","options","element","_this","Input","isNullOrUndefined","closest","offsetValue","clientTimeZoneDiff","serverTimezoneDiff","timeZoneDiff","firstOffset","secondOffset","attributes","removeClass","addClass","ariaAttrs","l10nLocale","Internationalization","L10n","Browser","updatedCssClassValues","isBindClearAction","isDynamic","isBlur","formatOptions","dateValue","dateString","tempFormat","value","val","returnDate","formatDateTime","culture","valueDate","valueString","invalid","extISOString","basicISOString","EventHandler","extend","KeyboardEvents","event","clearedArgs","keyupEvent","_i","_a","updatedClassValues","setStyle","newCssClass","oldCssClass","focusArguments","blurArguments","clickedView","start","end","length_1","targetdate","format","pattern","charPattern","len","dateOptions","date","Popup","Touch","detach","match","error","direction","modelHeader","yearHeading","h2","daySpan","monthSpan","modelCloseIcon","modelTodayButton","modules","width","formatUnit","type","e","prevent_1","outOfRange","eventArgs","openAnimation","Animation","dlgOverlay","prevent_2","prevent","triggerEvent","currentView","view","prop","getUniqueID","inputElement","nameAttribute","attribute","attr","skeletonString","dynamic","attributes_1","enabled","readonly","setValue","min","max","globalize","valueCopy","previousValCopy","dateIdString","inputVal","isDisabledDate","newProp","oldProp","openPopup","Property","Event$1","NotifyPropertyChanges","Calendar","__extends$2","__decorate$2","DATERANGEWRAPPER","INPUTCONTAINER$1","DATERANGEICON","POPUP$1","LEFTCALENDER","RIGHTCALENDER","LEFTCONTAINER","RIGHTCONTAINER","ROOT$2","LIBRARY$1","CONTROL$1","ERROR$1","ACTIVE$1","STARTENDCONTAINER","STARTDATE","ENDDATE","STARTBUTTON","INPUTFOCUS$1","ENDBUTTON","RANGEHOVER","OTHERMONTH$2","STARTLABEL","ENDLABEL","DISABLED$2","SELECTED$3","CALENDAR","NEXTICON$1","PREVICON$1","HEADER$1","TITLE$1","ICONCONTAINER$1","RANGECONTAINER","RANGEHEADER","PRESETS","FOOTER$1","RANGEBORDER","TODAY$2","FOCUSDATE","CONTENT$1","DAYSPAN","WEEKNUMBER$2","DATEDISABLED","ICONDISABLED","CALENDARCONTAINER","SEPARATOR","APPLY","CANCEL","DEVICE$1","OVERLAY$2","CHANGEICON","LISTCLASS","RTL$1","HOVER","OVERFLOW$1","OFFSETVALUE$1","PRIMARY$1","FLAT$1","CSS$1","ZOOMIN$1","NONEDITABLE","DAYHEADERLONG$1","HIDDENELEMENT","wrapperAttr","Presets","ChildProperty","DateRangePicker","rangeArray","merge","pro","input","name","updatedClassValue","dateRangeStyle","cssNewClass","cssOldClass","isUndefined","range","id","startDate","endDate","disabled","createElement","isPreset","rippleEffect","calendar","select","remove","prevStartVal","prevEndVal","isEnd","inputStr","isLeftCalendar","ele","isRemoveFocus","leftLimit","rightLimit","focusAbleEle","focusEleID","currentFirstDay","focusDate","rightDateLimit","leftDateLimit","selectedDate","focusedDate","depthValue","levelRestrict","leftCalendar","rightCalendar","presetElement","yearDate","calendarPos","rightHeader","leftHeader","isRightMonth","isLeftMonth","isRightYear","isLeftYear","isRightDecade","isLeftDecade","tdCells","tdCells_1","cell","disabledCell","isDate","focusedDate_1","today","eleDate","currentElement","currentDate","tdCells_2","isDisabledCell","startDateValue","eleDateValue","startVal","endVal","isSame","elementCollection","elementCollection_1","tdCells_3","eleDateValue_1","endDateValue","inputValue","args","isStartDate","sameDate","tdCell","y","m","firstDay","lastDay","firstMonth","lastMonth","endEle","endEle_1","ele_1","endEle_2","ele_2","tdCells_4","tdCells_5","startMonth","startYear","startValueSelected","minDate","maxDate","maxEle","tdCells_6","calendar_1","tdCells_7","title","start_1","end_1","customDate","labelContainer","endBtn","startBtn","Button","startLabel","endLabel","changeIcon","endYear","month","yr","decyr","calendarContainer","prevIcon","nextIcon","prepend","leftContainer","rightContainer","controlContainer","headerContainer","modelHeaderIconWrapper","modelApplyButton","separator","footerSection","cancelBtn","applyBtn","enable","presets","eve","isValueChanged","item","li","isClick","values_1","values","listTag","ListBase","customElement","modelWrapper","modelTitleSpan","presetContent","popupWidth","popupEle","rangeContainer","hvrItem","actItem","listHeight","hover","active","nextEle","height","liHeight","updatedCssClassValue","isDisabled","formatOption","startinvalue","endinvalue","startString","endString","startObject","endObject","invalidobject","stringValue","formatOpt","extISOStr","basISOString","localDate","count","isStartDisabled","isEndDisabled","evt","keyEntity","isDynamicValueChange","Collection","CalendarBase","__extends$3","__decorate$3","WRAPPERCLASS","POPUP$2","ERROR$2","POPUPDIMENSION","DAY","MONTH$2","YEAR$2","ROOT$3","LIBRARY$2","CONTROL$2","CONTENT$2","SELECTED$4","HOVER$1","NAVIGATION","DISABLED$3","ICONANIMATION","FOCUS","LISTCLASS$1","HALFPOSITION","ANIMATIONDURATION","OVERFLOW$2","OFFSETVAL","EDITABLE","wrapperAttributes","TimePickerBase","createListItems","createdEl","timeFormat","step","interval","listItems","timeCollections","TimePicker","_super","__extends$3","options","element","_this","removeClass","ROOT$3","CONTROL$2","LIBRARY$2","closest","isNullOrUndefined","clientTimeZoneDiff","serverTimezoneDiff","timeZoneDiff","firstOffset","secondOffset","attributes","EDITABLE","addClass","target","input","name","i","attr","Internationalization","localeText","L10n","getUniqueID","skeletonString","value","Browser","updatedCssClassesValue","isBindClearAction","Input","WRAPPERCLASS","culture","cldrTime","dateFormat","isInvalid","valueString","valueExpression","valueExp","extISOString","basicISOString","modules","date","match","error","type","cldrDateTimeString","getValue","getDefaultDateObject","cldrData","ariaAttribute","detach","EventHandler","propertyList","POPUP$2","append","height","POPUPDIMENSION","popupHeight","rippleModel","LISTCLASS$1","rippleEffect","Popup","OFFSETVAL","SELECTED$4","remove","modelHeader","modelTitleSpan","modelCloseIcon","text","dateValue","DAY","month","MONTH$2","year","YEAR$2","_i","_a","key","wrapperAttributes","updatedClassesValue","timeStyle","cssClassNew","cssClassOld","ERROR$2","val","DISABLED$3","meridian","gregorianFormat","mainVal","start","end","width","formatUnit","inputWidth","listHeight","nextEle","liHeight","HALFPOSITION","items","initialTime","scrollTime","cldrDate","time","event","curPos","regex","split","isSeparator","li","delay","e","args","OVERFLOW$2","animModel","ANIMATIONDURATION","Animation","ICONANIMATION","isNavigation","currentLi","HOVER$1","className","NAVIGATION","minVal","maxVal","dateVal","index","maxValue","minValue","minimum","maximum","extend","KeyboardEvents","timeValue","clearedArgs","keyupEvent","isDynamic","attributes_1","prop","enabled","readonly","strArray","inputVal","newval","value_1","textVal","timeVal","count","collections","backward","elementIndex","isCheck","nextItem","ld","c","result","eventArgs","isUpdate","hoveredItem","formatStr","today","CONTENT$2","interval","listItems","listBaseOptions","ListBase","FOCUS","blurArguments","focusArguments","openAnimation","dlgOverlay","popupWrapper","timePopupElement","modal","isDevice","keyEntity","newProp","oldProp","setStyleAttribute","inValue","__decorate$3","Property","Event$1","NotifyPropertyChanges","Component","__extends$4","extendStatics","d","b","p","__","__decorate$4","decorators","desc","r","DATEWRAPPER$1","DATEPICKERROOT","DATETIMEWRAPPER","DAY$1","MONTH$3","YEAR$3","HOUR","MINUTE","SECOND","MILLISECOND","ROOT$4","DATETIMEPOPUPWRAPPER","INPUTWRAPPER$1","POPUP$3","TIMEICON","INPUTFOCUS$2","POPUPDIMENSION$1","ICONANIMATION$1","DISABLED$4","ERROR$3","CONTENT$3","NAVIGATION$1","ACTIVE$2","HOVER$2","ICONS$1","HALFPOSITION$1","LISTCLASS$2","ANIMATIONDURATION$1","OVERFLOW$3","DateTimePicker","minTimeValue","maxTimeValue","valueTime","newValue","isDisable","dateOptions","cldrDateTime","dateObject","createElement","min","max","listDetails","TimePickerBase","offset","popupElement","nextElement","lineHeight","listContent","tempVal","day","hour","minutes","seconds","range","method","hours","milliseconds","tempStartValue","tempMin","tempMax","isModified","startValue","format","formatCount","proxy","formatValueSpecifier","formattext","tempEndValue","endValue","status_1","minute","second","millisecond","dateTimeVal","listCount","dateString","nextItemValue","openPopup","DatePicker","ARROWLEFT","ARROWRIGHT","ARROWUP","ARROWDOWN","TAB","SHIFTTAB","END","HOME","MaskedDateTime","parent","mask","inputValue","j","validChar","formatText","length_1","isPersist","previousVal","newVal","newDateValue","maxDate","monthString","monthValue","monthValue_1","months","previousMaxDate","currentMaxDate","yearValue","periodString","periodkeys","daysAbbreviated","dayKeyAbbreviated","daysWide","dayKeyWide","daysNarrow","dayKeyNarrow","monthAbbreviated","monthWide","hiddenChar","isbackward","formatIndex","valueText","length","isZero","isDayPart","resultValue","isSegment","isDecrement","incrementValue","newMonth","locale","formatString","ValueFormatter","cultureName","Internationalization","isNullOrUndefined","format","value","type","result","setCulture","Column","options","parent","_this","merge","isNullOrUndefined","getUid","valueFormatter","ValueFormatter","extend","col","skip","keys","i","j","templateCompiler","Query","a_1","x","y","xObj","yObj","getObject","z","obj","getForeignData","DataUtil","direction","column","_loop_1","cols_1","_loop_2","this_1","value","load","rowDataBound","queryCellInfo","headerCellInfo","actionBegin","actionComplete","actionFailure","dataBound","rowSelecting","rowSelected","rowDeselecting","rowDeselected","cellSelecting","cellSelected","cellDeselecting","cellDeselected","columnSelecting","columnSelected","columnDeselecting","columnDeselected","columnDragStart","columnDrag","columnDrop","beforePrint","printComplete","detailDataBound","toolbarClick","batchAdd","batchCancel","batchDelete","beforeBatchAdd","beforeBatchDelete","beforeBatchSave","beginEdit","cellEdit","cellSave","cellSaved","recordDoubleClick","recordClick","beforeDataBound","beforeOpenColumnChooser","beforeOpenAdaptiveDialog","resizeStart","onResize","resizeStop","checkBoxChange","beforeCopy","beforePaste","beforeAutoFill","filterChoiceRequest","filterAfterOpen","filterBeforeOpen","filterSearchBegin","commandClick","initialLoad","initialEnd","dataReady","contentReady","uiUpdate","onEmpty","inBoundModelChanged","modelChanged","colGroupRefresh","headerRefreshed","pageComplete","sortComplete","filterComplete","searchComplete","groupComplete","groupAggregates","refreshFooterRenderer","refreshAggregateCell","rowSelectionComplete","cellSelectionComplete","destroyAutoFillElements","beforeCellFocused","cellFocused","keyPressed","click","destroy","columnVisibilityChanged","scroll","columnWidthChanged","columnPositionChanged","rowsAdded","rowsRemoved","columnDragStop","headerDrop","dataSourceModified","refreshComplete","dblclick","toolbarRefresh","bulkSave","autoCol","tooltipDestroy","updateData","saveComplete","deleteComplete","preventBatch","dialogDestroy","crudAction","addDeleteAction","destroyForm","doubleTap","freezeRender","filterOpen","filterDialogCreated","filterMenuClose","initForeignKeyColumn","getForeignKeyData","generateQuery","showEmptyGrid","foreignKeyData","dataStateChange","dataSourceChanged","rtlUpdated","beforeFragAppend","textWrapRefresh","recordAdded","cancelBegin","editNextValCell","hierarchyPrint","expandChildGrid","printGridInit","rowPositionChanged","columnChooserOpened","batchForm","beforeStartEdit","beforeBatchCancel","batchEditFormRendered","partialRefresh","beforeCustomFilterOpen","selectVirtualRow","columnsPrepared","cBoxFltrBegin","cBoxFltrComplete","fltrPrevent","beforeFltrcMenuOpen","valCustomPlacement","filterCboxValue","restoreFocus","detailIndentCellInfo","virtaulCellFocus","virtualScrollEditActionBegin","virtualScrollEditSuccess","virtualScrollEditCancel","virtualScrollEdit","refreshVirtualCache","editReset","virtualScrollAddActionBegin","getVirtualData","refreshInfiniteModeBlocks","resetInfiniteBlocks","infiniteScrollHandler","infinitePageQuery","infiniteShowHide","appendInfiniteContent","removeInfiniteRows","setInfiniteCache","infiniteEditHandler","closeFilterDialog","columnChooserCancelBtnClick","getFilterBarOperator","resetColumns","setGroupCache","lazyLoadScrollHandler","groupCollapse","beforeCheckboxRenderer","refreshHandlers","setFreezeSelection","beforeRefreshOnDataChange","immutableBatchCancel","checkScrollReset","preventFrozenScrollRefresh","nextCellIndex","refreshInfiniteCurrentViewData","filterDialogClose","refreshCustomFilterOkBtn","refreshCustomFilterClearBtn","renderResponsiveCmenu","filterCmenuSelect","customFilterClose","setFullScreenDialog","refreshExpandandCollapse","rowModeChange","enterKeyHandler","setVirtualPageQuery","pagerRefresh","closeInline","closeEdit","resetVirtualFocus","beforeCheckboxRendererQuery","createVirtualValidationForm","validateVirtualForm","destroyChildGrid","stickyScrollComplete","refreshInfinitePersistSelection","refreshInfiniteEditrowindex","afterFilterColumnMenuClose","beforeCheckboxfilterRenderer","commandColumnDestroy","batchCnfrmDlgCancel","refreshFrozenPosition","refreshResizePosition","refreshSplitFrozenColumn","renderResponsiveChangeAction","renderResponsiveColumnChooserDiv","showAddNewRowFocus","CellType","RenderType","ResponsiveDialogAction","ResponsiveToolbarAction","Data","parent","serviceLocator","rowsAdded","rowPositionChanged","rowsRemoved","dataSourceModified","destroy","updateData","addDeleteAction","autoCol","columnsPrepared","e","gObj","DataManager","isNullOrUndefined","Query","skipPage","isAutoCompleteCall","query","column","selectQueryFields","columns","i","isGroupAdaptive","rows","row","j","cols","types","k","fName","args","setVirtualPageQuery","infinitePageQuery","RemoteSaveAdaptor","len","isGrpFmt","format","sortGrp","col","fn","fcolumn","isForeignKey","sSettings","fields","predicateList","needForeignKeySearch","adaptor","Predicate","predList","skipFoerign","foreignColumn","foreignColEmpty","colType","_i","_a","foreignCols","defaultFltrCols","_b","columns_1","gridColumn","excelPredicate","CheckBoxFilterBase","_c","_d","prop","_e","foreignCols_1","column_1","getColumnByForeignKeyValue","_f","_g","showEmptyGrid","fPredicate","generateQuery","_this","key","def","crud","changes","promise","recordAdded","deferred_1","Deferred","ready","result","value","field","date","setFormatter","formatVal","ValueFormatter","pr","crudAction","original","deff","dataSourceChanged","keys","json","state","adaptr","UrlAdaptor","dm","data","extend","dataArgs","editArgs_1","dataStateChange","colFieldNames","columns_2","refreshFilteredColsUid","Row","options","merge","cell","isValDiff","pKeyField","dataManager","Cell","CellMergeRender","cellArgs","td","cellRendererFact","cellRenderer","CellType","colSpan","rowSpan","visible","spannedCell","rowsObject","cells","targetCell_1","uid_1","colSpanLen","attributes","span","fname","mCells","columnIndex","vColumnIndices","rows_1","index","iterateArrayOrObject","item","rowCell","gridHeader","gridContent","gridFooter","headerContent","movableContent","movableHeader","frozenContent","frozenHeader","content","table","gridChkBox","editedRow","addedRow","changedRecords","addedRecords","deletedRecords","leftRight","frozenRight","frozenLeft","dataColIndex","ariaColIndex","dataRowIndex","ariaRowIndex","tbody","colGroup","open","change","focus","create","beforeOpen","initialFrozenColumnIndex","RowRenderer","serviceLocator","cellType","parent","row","columns","attributes","rowTemplate","cloneNode","isChanged","_this","extendObjWithFn","node","tr","cells","tempCells","_loop_1","col","_i","columns_1","state_1","attr","item","_a","cells_1","cell","attributes$1","isEdit","isNullOrUndefined","rowArgs","cellArgs","chekBoxEnable","value","isFrozen","isFirstVisibleCell","getObject","selIndex","extend","setStyleAndAttributes","cellRendererFact","_loop_2","i","len","cellRenderer","CellType","attrs","this_1","isGroupFirstCell","td","isReactChild","thisRef_1","ariaAttr","queryCellInfo","isRowSpanned","rowsObject","prevRowCells","uid_1","prevRowCell","columns_2","right","left","movableCount","cellIdx","colSpan","index","j","cellMerge","CellMergeRender","resetColandRowSpanStickyPosition","visibleColumns","field","type","isRtl","currentRowCell","nextRowCell","direction","emptyColspan","freezeCells","removeClass","groupCaptionRowLeftRightPos","applyStickyLeftRightPosition","oldColspan","colspan","resetColspanGroupCaption","args","eventArg_1","cellTemplate","thisRef_2","rowDataBound","isDraggable","primaryKey_1","pKey_1","SelectedRecords","data","vFTable","property","column","summarycell","lastSummaryCell","addClass","firstSummaryCell","rowCount","rowIndex","rowSpan","thisRef","eventArg","selRowIndex","chkBox","isDrag","row$1","prop","dataRowIndex","classes","ariaRowIndex","RowModelGenerator","rows","startIndex","cols","detailIndentCellInfo","cssClass","indent","pid","tIndex","parentUid","options","getUid","Row","foreignKeyColumns","setValue","getForeignData","dummies","tmp","rowId","oIndex","foreignKeyData","opt","getValue","Cell","input","__extends$1","extendStatics","d","b","p","__","SummaryModelGenerator","start","Column","end","summaryRow","raw","indents","isDetailGridAlone","indentLength","values","sColumn","scolumn","dummy","summaryRows","single","types","helper","formatFn","a","group","key","disp","disablePageWiseAggregatesGroup","val","calculateAggregate","GroupSummaryModelGenerator","_super","level","v","indx","CaptionSummaryModelGenerator","initVal","prev","cur","__extends$2","GroupModelGenerator","parentid","childId","preCaption","captionRow","rowCnt","rowObj","preCap","groupKey","visibles","indexes","c","groupedLen","gObj","captionCells","cIndex_1","wFlag","tmpFlag","parentID","childID","records","fkValue","cRow","caption","childRow","ContentRender","e","columnDrop","remove","arg","content","prevPage","maxBlock","rowIdx","startIdx","count","contentReady","showAddNewRowFocus","dataBound","freezeRender","action","actionComplete","columnVisibilityChanged","colGroupRefresh","uiUpdate","refreshInfiniteModeBlocks","beforeCellFocused","destroy","div","gridContent","innerDiv","element","child","scrollbarHeight","getScrollBarWidth","ele","height","contentDiv","virtualTable","virtualTrack","table","id","table$1","colGroup","tbody","dataSource","isReact","frag","hdrfrag","refFrag","refHdrfrag","hdrTbody","trElement","isInfiniteScroll","isColumnVirtualInfiniteProcess","destroyChildGrid","tbdy","tableName","isGroupFrozenHdr","isGroupAdaptive","modelData","setInfiniteCache","isFrozenLeft","registeredTemplates","templatetoclear","templates","clearReactVueTemplates","blockLoad","top_1","scrollTop","offsets_1","bSize","m","isVFFrozenOnly","bIndex","page","mhdrData","addFixedColumnBorder","rowTemplateID","elements","isHeader","copied","isTR","appendChildren","isVFreorder","expandChildGrid","refreshExpandandCollapse","parentTable","getUpdateUsingRaf","beforeFragAppend","updateBlazorTemplate","removeInfiniteRows","appendInfiniteContent","transform","getTransformValues","newRow","startAdd","addedRow","getScrollWidth","headerCellHeight","cellHeight","setGroupCache","first","last","fhdrData","keys","infiniteCacheRows","infiniteRows","panel","testRow","r","needFullRefresh","infiniteData","contentrows","clen","idx","colIdx","displayVal","setStyleAttribute","partialRefresh","setDisplayValue","infiniteShowHide","isFreeze","gridHeader","Droppable","tbody$1","uid","set","clearAll","setFreezeSelection","k","fRows","firstRowIndex","oldKeys","newKeys","newRowObjs","oldIndexes","oldRowObjs","batchChangeKeys","newIndexes","hasBatch","oldRowElements","trs","prevLen","currentLen","oldIndex","args_1","isEqual","old","next","isDate","primaryKey","changes","changedRecords","addedRecords","immutableBatchCancel","rowEle","HeaderRender","target","parentEle","parentsUntil","visualElement","headercelldiv","colIndex","result","isReactCompiler","columnDragStart","closest$1","closest","cloneElement","classList","columnDrag","cancel","columnDragStop","headerDrop","columnPositionChanged","initialEnd","isRendered","headerContent","headerDiv","headerRefreshed","tableEle","findHeaderRow","thead","colGroup$1","rowBody","bodyCell","len_1","colHeader","rowRenderer","headerRow","measureColumnDepth","headerTemplateColumn","len_2","isFirstObj","isFirstCol","isLastCol","isMovable","isStackLastCol","lastCol","isLockColumn","stackedLockColsCount","isStackedLockColumn","isFirstCol_1","isLaststackedCol","lockColsCount","className","rows_1","gCells","movableHeader","wrap","firstHeaderCell","stackedHdr","cnt","Draggable","toolbarItems","toolbarLeft","toolbarItem","cls","button","span","btnObj","Button","resToolbar","CellRenderer","locator","rowCell","arr","fData","literals_1","dummyData","templateID","str","doesImplementInterface","formatter","isExpand","cellIndex","parentRow","newTD","arialabelText","elements_1","elem","source","innerHtml","localeStr","fromFormatter","gridChkBox","checkWrap","createCheckBox","checked","addStickyColumnPosition","isCheckBoxType","dataColIndex","ariaColIndex","AriaService","props","setStateAndProperties","config","expand","isBusy","isGrabbed","isTarget","attribute","__extends$3","HeaderCellRenderer","fltrMenuEle","elementDesc","innerDIV","hValueAccer","headerText","checkAllWrap","matchFlColumns","foreignColumn","gridObj","headerTempID","isReactChild_1","alignment","titleElem","headerCellInfo","matchFilteredColumns","handler","__extends$4","StackedHeaderCellRenderer","frozenDirection","width","isChildColumn","__extends$5","IndentCellRenderer","__extends$6","GroupCaptionCellRenderer","domSetter","fKeyValue","gTemplateValue","gCaptionTemp","column_1","tempObj","tempID","tempValue_1","templateCompiler","GroupCaptionEmptyCellRenderer","__extends$7","ExpandCellRenderer","__extends$8","HeaderIndentCellRenderer","__extends$9","DetailHeaderIndentCellRenderer","__extends$a","DetailExpandCellRenderer","__extends$b","RowDragDropRenderer","nodeElement","__extends$c","RowDragDropHeaderRenderer","createElement","Render","Data","RenderType","actionBegin","cancelBegin","iconClass","flIcon","headerCell","dataLength","currentViewData","gridColumns","detailTemplateID","blazorTemplates","resetBlazorTemplate","guid","maskRow","resetInfiniteBlocks","dataManager","isFActon","deffered","Deferred","query","def","foreignKeyLength","deffered_1","getForeignKeyData","deferred","fbool","promise","isTrigger","spanCount","emptyRecordTemplateID","onEmpty","record","cFormat","equalTo","fmtr","valueFormatter","ValueFormatter","setFormatter","isInfiniteDelete","beforeDataBound","dataArgs","infiniteEditHandler","editReset","tooltipDestroy","commandColumnDestroy","refreshInfiniteCurrentViewData","groupComplete","dataReady","content$1","toolbarRefresh","actionFailure","dataRowCount","isEmptyCol","prepareColumns","refreshSplitFrozenColumn","autoCol","obj","split","childKeys","complexCols","cellrender","initialLoad","modelChanged","refreshComplete","bulkSave","showEmptyGrid","group0","groupN","predicate","addWhere","groups","Predicate","Query","curDm","DataManager","curFilter","newQuery","rPredicate","operator","getDatePredicate","current","untouched","dm","updatedGroup","itemGroup","updatedGroupItem","l","context","data_1","temp","DataUtil","CellRendererFactory","name","getEnumValue","ResponsiveDialogRenderer","filterDialogClose","refreshCustomFilterOkBtn","renderResponsiveCmenu","filterCmenuSelect","customFilterClose","refreshCustomFilterClearBtn","addRemoveEventListener","header","title","closeBtn","ResponsiveDialogAction","text","backBtn","locale","disabled","cDiv","icon","isColumnChooser","sortColumns","sortBtnParent","filteredCols","isSort","isFilter","fields","clone","buttonInnerText","divIcon","iconSpan","EventHandler","Browser","columndiv","txt","directionTxt","buttons","renderResponsiveChangeAction","colDiv","renderResponsiveColumnChooserDiv","beforeOpenAdaptiveDialog","filterBase","dialogEle","isColMenu","colMenu","outerDiv","isCustomFilter","Dialog","isStringTemplate","addBiggerDialog","sortField","sortDirection","custom","enterKeyHandler","titleDiv","saveBtn","id_1","clearBtn","custommenu","mainfilterdiv","customEle","ServiceLocator","isAdaptiveUI","RendererFactory","rName","ColumnWidthService","totalColumnsWidth","maxWidthColumns","tWidth","difference","collection","tmWidth","collection_1","module","columnIndex","cWidth","tgridWidth","contentTable","columnWidthChanged","clear","ispercentageWidth","elementWidth","fWidth","formatUnit","headerCol","contentCol","edit","editTableCol","preventFrozenScrollRefresh","scrollWidth","movableScrollbar","movableWidth","placeHolder","previous","sibling","gridFooter","isWidUndefCount","resetIndentWidth","isAutoColumn","isMaxWidth","__extends$d","FocusStrategy","firstHeaderCellIndex","findCellIndex","isGantt","groupModule","focusableGroupedItems","toolbarElement","focusableToolbarItems","lastCell","force","isContent","beforeArgs","returnVal","inputSelector","buttonSelector","pagerElement","focusablePagerElements","lastHeaderCellIndex","parentCell","lastRow","lastColumn","focusFirstHeaderCell","bValue","prevBatchValue","swapInfo","nextHeaderCellIndex","firstContentCellIndex","previousCellIndex","focusElement","elementIndex","resetActive","cellColIndex","cellCol","currentCellIndex","limitRow","tempCellIndex","cellIndexObtain","prevTempCellIndex","lastContentCellIndex","parentGrid","parentRows","parentRowIndex","nextFocusCell","previousRow","rowCells","th","inputTarget","addNewRow","filterCell","matrix","inputElements","firstEditCell","lastEditCell","getVirtualData","isKeyFocus","isSelected","resetVirtualFocus","filterMenuElement","virtaulCellFocus","cellElem","info","isFocused","cellFocused","ContentFocus","HeaderFocus","cFocus","frozenRow","batchLen","updateRow","x","isRowTemplate","matrixcs","hdrLen","isScroll","tempMatrix","lastRowHeaderIdx","index_1","bool","frzLeftCount","frzRightCount","isGroup","cellPosition","gridPosition","freezeLeftColWidth","freezeRightColWidth","keyPressed","click","closeEdit","restoreFocus","batchAdd","batchCancel","batchDelete","detailDataBound","startCellIdx","headrIdx","addedrow","forget","active","actions","swap","focusEle","isLast","commandButtons","Matrix","allow","navigator","validator","emptyTable","vector","moveTo","selector","incrementNumber","rowColumns","currentColumnCount","isMacLike","navigators","editNextRow","visibleIndex","isPresent","rN","cN","_b","oRowIndex","oCellIndex","_c","isTemplate","commandCellQuery","lastIndex","firstIndex","enterFrozen","headerSwap","isHeaderFocus","optionals","handlerInstance","defaultLen","rIndex","cIndex","isData","isSelectable","isCellWidth","isLastCell","current1","length","SearchBox","searchBox","sIcon","relatedTarget","__extends$e","__decorate$1","decorators","desc","PageSettings","Property","ChildProperty","__extends$f","__decorate$2","ColumnChooserSettings","Selection","selectionSettings","gridElement","currentRecords","iterateExtend","deletedRecords$1","deletedRecords","selectedGroupedData","isToggle","selectedRow","selectData","isRemoved","selectVirtualRow","prevSelectedData","isRowSelected","isCheckboxModeResetOnRowClick","isSelectionTypeMultiple","can","rowSelecting","rowDeselecting","rowDeselected","rowSelected","endIndex","selectedData","selectedRows","rowIndexes","selectableRowIndex","currentRow","selectRowFn","preventFocus","selectableRowIndex_1","checkboxColumn","rowIndexes_1","isUnSelected","max","selectedEle","pkField","isComplexField","chkState","pKey","isPartialSelection","removeAddCboxClasses","setChecked","row_1","rowIndex_1","foreignKeyData_1","target_1","mRow","rowDeselectCallBack","frozenRightRow","cancl_1","isSingleDeSel","rowDeselectObj","rowInString","target_2","rowidx","rowidxex","dataTxt","foreignKey","isHeaderCheckBxClick","selectedCell","isCellSelected","isUndefined","currentCell","previousRowCellIndex","cellSelecting","cellSelectingArgs","cncl","cellSelected","rIdx","cIdx","getCellFromRow","min","stIndex","edIndex","cellIndexes","cellSelectedArgs","rowCellIndexes","cellSelectArgs","cellLen","prvRowCellIndex","cellIndexes_1","selectedCellIdx","cellDeselecting","cellDeselected","getCellsByTableName","cancl","rowCellIndex","isRowAvail","selectedCells","cLen","gBRect","x1","y1","position","getPosition","x2","y2","mouseEvent","scrollElement","clientRect","nextElement_1","currentElement","nextElement","mouseEvent_1","siblingEles","nextEleInd","border","bdrStr","strCell","fixedCells","firstRowIdx","firstColIdx","lastRowIdx","lastColIdx","preCell","nextCell","leftRight","stOff","endOff","parentOff","rowHeight","topOffSet","leftOffset","rightOffset","rtl","display","freeze","top","firstCellTop","movableContent","firstCellLeft","parentRect","sTop","sLeft","scrollLeft","totalHeight","totalWidth","scrolloffSet","borderAFRightValue","leftRemove","topRemove","beforeAutoFill","isApply","startrowIdx","endrowIdx","endCellIdx","rowLen","colLen","trIdx","closeRowCell","refreshFooterRenderer","rindex","isFrozenCol","isFrozenRow","isFrozenRight","frozenRight","select","colWidth","editedRow","isUpdate","postion","pkValue","rowSelectionComplete","cellSelectionComplete","inBoundModelChanged","rowsRemoved","destroyAutoFillElements","gobj","res","checkedFieldData","state","selectedStateKeys","unSelectedRowStateKeys","rowData","_d","rowData_1","rowObj_1","selectedData_1","filteredSearchedSelectedData","checkState","editChkBox","totalRecords","cRenderer","editForm","checkBox","stateStr","status","checkBoxChange","rowObj_2","rowObj_3","selectedVal","isInteraction","checkToSelectAll","isFiltered","checkedLen","spanEle","getRecord","dataLen","targetHeadCell","targetRowCell","isCheckBox","chkSelect","setCssInGridPopUp","checkboxColumnIndexCheck","headerAction","hdrLength","targetLabel","stackedHeader","innerColumn","innerColumnIndexes","isAdd","detailIndentCell","dragdropIndentCell","addRemoveActiveClasses","selectedCol","isColSelected","isMultiColumns","columnSelecting","selectedArgs","columnSelected","columnIndexes","selectingArgs","newCol","clearIndex","deselectedArgs","isCanceled","columnDeselecting","selectedHeader","columnDeselected","seletedcells","selectionString","event","refreshInfinitePersistSelection","beforeRefreshOnDataChange","resizeStop","checkAllBox","isInfinitecroll","Search","searchString","decimalFound","searchString_1","char","isActionPrevent","preventBatch","searchComplete","ShowHide","batchCnfrmDlgCancel","columnName","showBy","hideBy","finalized","getKeyBy","iterateArrayOrObject","changedStateColumns","showHideArgs","currentViewCols","resetColumns","colsInCurrentView","col1","col2","refreshFrozenPosition","params","Scroll","uiupdate","tlbrElement","tlbrLeftElement","tlbrCenterElement","tlbrRightElement","tlbrItems","tlbrLeftWidth","tlbrCenterWidth","tlbrRightWidth","tlbrItemsWidth","tlbrWidth","mHdrHeight","add","height_1","cssProps","hDiv","footerDiv","appName","textWrapRefresh","mScrollBar","scrollTarget","errorFreeze","errorFixed","widthVal","infiniteScrollHandler","isDown","lazyLoadScrollHandler","virtualScrollEdit","isFooter","closeFilterDialog","scroll","cont","hdr","pageXY","mHdr","mCont","scrollBar","overflowY","frzCols","sHeight","clientHeight","checkScrollReset","css","enableRtl","contentRect","headerEle","toolbarEle","groupHeaderEle","parentTop","colMenuEle","elemTop","ccDlg","topStyle","stickyScrollComplete","__extends$g","__decorate$3","AggregateColumn","compile$1","AggregateRow","Collection","Clipboard","grid","selectedRowCellIndexes","x_1","y_1","isAvail","beforePaste","withHeader","selectedIndexes","headerTextArray","leftCols","headers","beforeCopy","isCell","splitKey","isElement","rowCellIndxes","BASE_DOC_URL","DOC_URL","WARNING","ERROR","INFO","Logger","detailLists","cOp","adaptor","original","request","settings","injected","modules","message","formatError","formatErrorHandler","ajaxError","ajaxErrorHandler","lObj","L10n","success","fn","error","jsonResult","__extends$h","__decorate$4","SortDescriptor","SortSettings","InfiniteScrollSettings","FilterSettings","SelectionSettings","SearchSettings","RowDropSettings","TextWrapSettings","ResizeSettings","GroupSettings","EditSettings","LoadingIndicator","Grid","_this_1","Component","Grid_1","keyEntity","ignoreOnPersist","currentObject","captionTemplateRef","isAngularCaptionTemplate","persistData","autoFitColumns","columnMenu","contextMenu","createSpinner","pageValue","currentPageValue","load","columnsPrepared","setColumnIndex","showSpinner","hideSpinner","axisDirection","dialogElement","dialogHolder","maskRowCount","maskTemplate","maskSpan","contentHeight","maskTableHeight","contentRowCount","gridFooterContent","footerContent","maskElement","parentElement","footer","gridContentScrollHeight","maskTable","maskColgroup","frzTd","maskTHead","maskTBody","rowCountElement","altRow","i_1","altNumber","rowsQuery","addEditRow","addEditRowIndex","addEditMaskRow","tfoot","maskTFoot","minScrollTop","maskCells","maskCell","displayAsCheckBoxCell","refColgroup","refColumns","colgroup","localTD","maskTables","gcol","mediaColumn","hasGridChild","oldCSSClass","newProp","oldProp","requireRefresh","requireGridRefresh","freezeRefresh","checkCursor","childGridParent","parentInstance","properties","properties_1","childGridObject","currentParent","currentParentInstance","currentChildObject","rtlUpdated","pending_1","pKeyField","gResult","names","dataSourceModified","setFullScreenDialog","rowModeChange","fn_1","muteOnChange","filterSettings","headerCells","stdHdrCell","isRecursion","frozenCount","frozenColumns","isRefresh","inview","vLen","movable","isLeftRightFrozen","individualColumn","row_2","includeAdd","freezeRows","dataRows","mrows","includAdd","dRows","rowuID","pkName","fieldIdx","rowObjects","Idx","sRow","groupAggregates","columnUid","renderTemplates","isChildGrid","childIndent","isChildRow","rowsObj","refreshAggregateCell","headerCellRenderer","filterElement","selectRowEle","fRowTr","fTr","refreshForeignData","getCellByColAndRowIndex","stackedColumn","columnNames","isAutoWidth","autoCol_1","difference_1","autoWidth_1","isFrozenAuto","tWidth_1","gWidth","this_2","stackedcol","stockCol","text1","isTrue","headercol","gridcolumns","tempHead","firstcol","visibleFrozenColumns","pageNo","isMultiSort","fieldName","filterOperator","filterValue","matchCase","ignoreAccent","actualFilterValue","actualOperator","isClearFilterBar","fieldname","items","isEnable","indentWidth","perPixel","parentOffset","applyWidth","newWidth","refreshHandlers","fromFName","toFName","fromIndex","toIndex","fromIndexes","enable","headerTable","headerRows","disValue","fieldNames","startRowIndex","endRowIndex","injectedModules","resize","tableWidth","percentageWidth","unit","indentWidthUnitFormat","headerIndentCol","contentIndentCol","tableWidthUnitFormat","indentWidthUnitFormat_1","y","gCols","sCols","flag","_loop_3","sLen","this_3","initForeignKeyColumn","rendererFactory","Print","popup","append","Tooltip","headerDivTag","htable","ctable","tagName","elemNames","innerElement","tag","myTableDiv","mySubDiv","myTable","myTr","mytd","KeyboardEvents","isDataRow","recordClick","dataRow","recordDoubleClick","dblclick","filterClear","ariaOwns","editNextValCell","persistedData","dataObj","keys_1","storedColumn","storedColumns","isFrozenGrid","_loop_4","localCol","tCol","this_4","presskey","groupCollapse","focusModule","refreshResizePosition","getRowHeight","excelExportProperties","isMultipleExport","workbook","isBlob","gridIds","pdfExportProperties","pdfDoc","currentGridId","currentGridInstance","exportPromise","exportedGridResults","refresh","propertyNames","logger","previousRowData","pKvalue","performComplexDataOperation","isForeignKey","userAgent","Global","doubleTap","prefix","cntRows","rows_2","containerHeight","pagesize","nonContentHeight","summaryCol","summaryData","url","UrlAdaptor","queries","gridModel","include","form","gridInput","getNumberFormat","defaultCurrencyCode","format","isExpanded","updateData","colpending","filterDlg","gClient","fClient","callBack","portals","loopstring","keyField","compareChanges","oldValues","getData","_loop_5","this_5","out_i_1","_loop_6","isRowExist","this_6","resetRowIndex","setRowElements","model","emptyRow","SanitizeHtmlHelper","isCustom","isColVirtualization","gridCols","gridCols_1","Complex","Event$1","NotifyPropertyChanges","getCloneProperties","scrollModule","hierarchyPrint","printGridObj","printGrid","getPrintGridModel","injectedModues","printGridInit","beforePrint","detach","waitingPop","printComplete","print","depth","groupCaption","selectAll","colGroups","contentColGroups","footerColGroups","checkFor","valueAccessor","getUpdateUsingRaf","updateFunction","callBack","iterateArrayOrObject","collection","predicate","result","len","pred","isNullOrUndefined","iterateExtend","array","obj","i","extend","getActualProperties","templateCompiler","template","validSelector","compile$1","setStyleAndAttributes","node","customAttributes","copyAttr","literals","setStyleAttribute","addClass","attributes","copied","first","second","exclude","moved","values","setColumnIndex","columnModel","ind","prepareColumns","columns","autoWidth","gObj","c","column","Column","getValue","valueAccessor","setCssInGridPopUp","popUp","e","className","popUpSpan","position","targetPosition","isBottomTail","getPopupLeftPosition","popup","left","width","x","getPosition","ChildProperty","parentsUntil","elem","selector","isID","parent","getActualPropFromColl","collection","coll","i","len","getPosition","e","position","isNullOrUndefined","uid","getUid","prefix","appendChildren","elem","children","i","len","calculateAggregate","type","data","column","context","temp","getValue","DataUtil","scrollWidth","getScrollBarWidth","divNode","value","rowHeight","getRowHeight","element","table$1","createElement","table","rect","isComplexField","field","getComplexFieldID","getParsedFieldID","setComplexFieldID","isEditable","col","type","elem","row$1","parentsUntil","row","isOldRow","isActionPrevent","inst","dlg","select","selectAll","wrap","action","clName","setFormatter","serviceLocator","column","fmtr","format","args","addRemoveActiveClasses","cells","add","_i","i","len","classList","distinctStringValues","result","temp","res","getFilterMenuPostion","target","dialogObj","elementVisible","dlgWidth","newpos","calculateRelativeBasedPosition","leftPos","getZIndexCalcualtion","toogleCheckbox","span","input","setChecked","checked","createCboxWithWrap","uid","className","div","createElement","removeAddCboxClasses","removeClass","refreshForeignData","columns","data","isNullOrUndefined","setValue","getForeignData","getValue","lValue","foreignKeyData","fField","key","valueAccessor","query","Query","fdata","DataManager","getDatePredicate","getColumnByForeignKeyValue","foreignKeyValue","padZero","value","filterObject","isExecuteLocal","datePredicate","prevDate","nextDate","prevObj","extend","getActualProperties","nextObj","Predicate","dateOnlyString","predicates","predicateSt","predicateEnd","isGroupAdaptive","grid","getObject","object","splits","isUndefined","newCase","getCustomDateFormat","colType","intl","Internationalization","formatvalue","formatter","getExpandedState","gObj","hierarchyPrintMode","rows","obj","rows_1","index","getPrintGridModel","printGridModel","_a","Print","getActualPropFromColl","extendObjWithFn","copied","first","second","deep","obj1","keys","getPrototypesOfObj","i_1","source","cpy","cln","isObject","measureColumnDepth","max","depth","checkDepth","indices","j","refreshFilteredColsUid","filteredCols","getColumnModelByFieldName","Global","getTransformValues","element","style","transformV","replacedTv","translateX","translateY","applyBiggerTheme","rootElement","getScrollWidth","scrollElem","getScrollBarWidth","resetColspanGroupCaption","idx","colspan","cols","width","gridWidth","groupCaptionRowLeftRightPos","tr","frozenCount","td","applyStickyLeftRightPosition","newColspan","uid_1","eventPromise","args","query","state","getStateEventArgument","def","Deferred","adaptr","UrlAdaptor","dm","DataManager","data","ispercentageWidth","gObj","columns","percentageCol","undefinedWidthCol","i","isUndefined","resetRowIndex","rows","rowElms","index","startRowIndex","startIndex","dataRowIndex","ariaRowIndex","j","compareChanges","gObj","changes","type","keyField","newArray","r","k","setRowElements","resetDialogAppend","gObj","dlgObj","element","pos","calculatePosition","sbPanel","sbPos","calculateRelativeBasedPosition","isChildColumn","column","uid","uids","pushuid","i","frozenDirection","addFixedColumnBorder","row","cells","j","applyStickyLeftRightPosition","node","width","isRtl","position","resetColandRowSpanStickyPosition","colSpan","columns","index","idx","getCellFromRow","rowIndex","colIndex","addStickyColumnPosition","cols","getCellsByTableName","col","rowCell","getCellByColAndRowIndex","setValidationRuels","rules","mRules","frRules","len","isCustom","frozenLeft","frozenRight","getComplexFieldID","getNumberFormat","numberFormat","type","isExcel","currencyCode","format","intl","Internationalization","isNullOrUndefined","patternRegex","mtch_1","pattern","addBiggerDialog","dialogs","performComplexDataOperation","value","mapObject","returnObj","length","splits","duplicateMap","setDisplayValue","tr","displayVal","rows","parent","isContent","trs","actualIndex","td","parentsUntil","setStyleAttribute","removeClass","addRemoveEventListener","evt","isOn","module","_i","evt_1","inst","createEditElement","classNames","attr","complexFieldName","getColumnModelByFieldName","gObj","field","column","_i","_a","col","registerEventHandlers","id","evts","handlers","instance","i","removeEventHandlers","component","clearReactVueTemplates","parent","templates","getParentIns","grid","findCellIndex","checkActiveMatrix","checkCellIndex","next","activeMatrix","cellIndex","currentCellIndexPass","i","rowCell","j","CheckBoxFilterBase","parent","Query","ValueFormatter","createCheckBox","addClass","EventHandler","debounce","elem","args","fColl","mPredicate","_this","fPredicate","filterCollection","query","e","generateQuery","fpred","i","col","target","isNullOrUndefined","classList","key","dataSource","str","DataManager","obj","options","Input","filterBeforeOpen","filterModel","cBoxFltrBegin","Dialog","parentsUntil","isStringTemplate","dialogLabel","responsiveCnt","resetDialogAppend","content","createSpinner","showSpinner","Browser","getFilterMenuPostion","filterDialogCreated","filterTemplateCol","registeredTemplate","clearReactVueTemplates","filterMenuClose","remove","filterDialogClose","fltrPrevent","text","afterFilterColumnMenuClose","appendChildren","checked","check","optr","ddlValue","searchInput","caseSen","defaults","isNotEqual","val","length","coll","addCurrSelection","existingPredicate_1","_loop_1","j","data","isClearFilter","value","checkBoxChecked","fObj","extend","pred","dummyDefaults","predicate","firstVal","Predicate","column","foreignQuery","parsed","operator","matchCase","ignoreAccent","field","predicte","moduleName","intl","Internationalization","format","padZero","filterSearchBegin","actionBegin","filterargs","filterObj","getDatePredicate","emptyValPredicte","colData","columnData","columns","isExecuteLocal","predicates","predicateList","isGrid","foreignColumn","_i","_a","prop","getColumnByForeignKeyValue","filterChoiceRequest","filteredColumn","DataUtil","item","defObj","eventPromise","dataStateChange","def","Global","element","listDiv","createElement","rect","listHeight","maskRowCount","maskItemHeight","maskList","wrapperElem","computedStyle","liHeight","height","backgroundColor","maskTemplate","maskSpan","maskLists","maskParent","removeElem","appendElem","fName","existQuery","isInitial","allPromise","runArray","args1","beforeCheckboxRenderer","result","filterAfterOpen","cBoxFltrComplete","hideSpinner","searchSettings","fields","f","cols","filterColumn","beforeCheckboxfilterRenderer","beforeCheckboxRendererQuery","result_1","res","getObject","selectAll","toogleCheckbox","span","input","predmdl","focusableElements","nextIndex","nextElement","prevElem","cBoxes","arr","cBoxes_1","cBox","removeAddCboxClasses","setChecked","label","dummyData","extendObjWithFn","innerText","SanitizeHtmlHelper","checkboxUid","getUid","isReactCompiler","isReactChild","cnt","className","disabled","selected","btn","removeClass","refreshCustomFilterOkBtn","_b","_c","nullCounter","getValue","selectAllValue","innerDiv","checkBox","createCboxWithWrap","isColFiltered","predicateCheckBox","predicateElement","checkBoxListElem","reduceHeight","increaseHeight","isRndere","uid","args_1","filterCboxValue","checkbox","scrollTop","selectAllParent","addCurrSelectionParent","updatePredArr","predValue","checkState","json","foreignKeyData$1","checkboxFilter","len","ejValue","lookup","isForeignKey","currentFilterValue","foreignDataObj","getForeignData","setValue","foreignKeyData","collection","operate","first","p","filter","__extends$i","extendStatics","d","b","__","ExcelFilterBase","_super","customFltrOperators","type","model","li","isFiltered","isCheckIcon","eleOptions","ul","icon","hdrele","colIsSort","isAsc","isDesc","ascName","descName","separator","beforeFltrcMenuOpen","refreshCustomFilterClearBtn","iconName","isSubMenu","menuItem","focusClassName","focusClass","renderResponsiveCmenu","focused","submenu","selectedMenu","menuOptions","ContextMenu","client","pos","header","contextRect","applyBiggerTheme","isFilterBack","contextWidth","targetPosition","leftPos","targetBorder","filterLength","menuItems","filterCmenuSelect","isComplex","isComplexField","complexFieldName","getComplexFieldID","mainDiv","rows","valInput","dropDownList","row","templateField_1","rowResponsiveDlg","customFilterClose","beforeCustomFilterOpen","dlgConetntEle","dlgFields","fieldSet","colValue","fValue","fOperator","sValue","sOperator","checkBoxValue","predicateSelector","fieldName","firstOperator","firstValue","secondOperator","secondValue","arg","table","elementID","isFirst","fieldElement","xlfloptr","optrDiv","optrInput","dropDatasource","selectedValue","menuText","dropOptr","DropDownList","evt","registerEventHandlers","open","change","component","removeEventHandlers","actionComplete","focus","selectedField","colGroup$1","colGroup","tr","td","radioDiv","frstpredicate","secndpredicate","andRadio","RadioButton","orRadio","flValue","elements","elements_1","elementId","valueDiv","isFilteredCol","fltrPredicates","columnObj","tempID","valueInput","types","predIndex","indx","matchCaseDiv","matchCaseInput","CheckBox","inputValue","isRtl","getCustomDateFormat","datePicker","DatePicker","dateTimePicker","DateTimePicker","distinctStringValues","numericTextBox","NumericTextBox","colObj","isForeignColumn","actObj","AutoComplete","index","mapObject","performComplexDataOperation","columnvalue","Sort","sortSettings","sortedColumns","locator","AriaService","sortedColumn","gCols","flag","sortedCols","sCol","columnName","direction","isMultiSort","gObj","preventBatch","ResponsiveDialogAction","iterateExtend","modelChanged","sortColumns","getActualPropFromColl","isActionPrevent","contentReady","setFullScreenDialog","renderResponsiveChangeAction","sortComplete","inBoundModelChanged","click","headerRefreshed","keyPressed","cancelBegin","destroy","addRemoveEventListener","popUp","gridID","gridElement","gridHeader","gridContent","closest","gObj_1","colUid","ele","setCssInGridPopUp","rowCell","filterElement","fieldNames","c","position","enable","NumericContainer","pagerModule","link","pagerObj","div","frag","numericContainer","links","pagerContainer","append","prevPager","nextPager","currentPageSet","isLastSet","pageNo","numItems","focusedItem","focusedorTarget","prevFocused","nextFocused","firstFocused","lastFocused","numItemFocused","npFocused","ppFocused","classList_1","isPageAvailable","attributes","ppIndex","NPIndex","currentPageIndex","currentPage","firstPage","firstPageDisabled","prevPage","prevPageDisabled","lastPage","lastPageDisabled","nextPage","nextPageDisabled","PagerMessage","regx","regExp","__extends$j","__decorate$5","decorators","desc","r","Pager","modules","pageValue","currentPageValue","keyEntity","propertyNames","newProp","oldProp","focusedTabIndexElement","dropDownPage","focusablePagerElements","focusedElement","presskey","currentActivePage","tabindexElements","currentItemPagerFocus","incrementNumber","decrementNumber","lastRow","lastCell","selectedClass","classElement","actionClass","pagingItem","mPrev","tabIndexElements","dropDownPageHolder","currentClass","previousElements","targetChildrens","pagerElements","element_1","tabindexElement","addFocusClass","removeFocusClass","pageSize","newPageNo","oldPageNo","tempId","template","compile$1","L10n","updatedUrl","uri","hash","actualWidth","isStyleApplied","pagerWidth","hiddenNumItems","hideFrom","showFrom","bufferWidth","NP","PP","detailItems","totDetailWidth_1","totalWidth","numericItemWidth","diff","numToHide","hideIndex","pagerDetailItemsWidth","detailtoHide","hiddenDetailItems","numToShow","lesserIndexItems","a","greaterIndexItems","showItems","showItem","Property","Event$1","NotifyPropertyChanges","Component","PagerDropDown","dropDownDiv","defaultTextDiv","pageSizesModule","pageSizesArray","defaultValue","pageSizeValue","pageSizeNum","isbeforeAll","ExternalMessage","Page","pageSettings","getActualProperties","pagerRefresh","numericContainerNew","numericContainerDiv","isAddAction","keyActions","message","create","initialLoad","initialEnd","dataReady","pageComplete","uiUpdate","page","__extends$k","FilterCellRenderer","cell","node","innerDIV","fltrData","temp","clearIconElem","templateWrite","addStickyColumnPosition","innerHtml","operators","fbicon","spanElmt","getFilterBarOperator","CellRenderer","FlMenuOptrUI","serviceLocator","filterSettings","dlgObj","selValue","columns_1","optrLen","StringFilterUI","foreignColumnQuery","filteredData","filterQuery","autoComplete","struiObj","filterOptr","actuiObj","filterValue","getZIndexCalcualtion","mapObj","NumberFilterUI","isUndefined","numberuiObj","BooleanFilterUI","drpuiObj","DateFilterUI","dateuiObj","FilterMenuRenderer","fltrObj","argument","instanceofFilterUI","valueInString","compElement","dlgContentEle","targ","flOptrValue","fltrValue","eControl","CheckBoxFilter","restoreFocus","__extends$l","ExcelFilter","isCustomFilter","Filter","fltrElem","rowRenderer","RowRenderer","CellType","cellrender","rowdrag","applyStickyLeftRightPosition","addFixedColumnBorder","detail","gCells","freezeRender","dropdownlist","destroyFn","filterBarElement","Row","cells","dummy","cellType","opt","Cell","arrayVal","isMenuNotEqual","i_1","beforeDataBound","filterComplete","columnPositionChanged","filterOpen","closeFilterDialog","targetText","filterOperator","actualFilterValue","actualOperator","filterCell","predObj","fColumn","getFlvalue","colLen","col_1","iconClass","filterIconElement","fltrIconElement","selector","filteredcols","fltrElement","colDate","filterDate","left","top","isClearFilterBar","fCell","filteredColsUid","this_1","len_1","currentPred","state_1","matches","closeHeaderEle","dropDownListInput","getFormatFlValue","formater","isSkip","value_1","templateRead","skipInput","singleOp","multipleOp","numOptr","gClient","fClient","filterOperatorElement","inputId","datepickerEle","dialog","hasDialog","popupEle","hasDialogClosed","dataManager","resizeClassList","Resize","ColumnWidthService","startRowIndex","endRowIndex","x","isMaxWidthCount","newarray","contentTable","columnIndex","id","tWidth","headerTable","footerTable","headerDivTag","contentDivTag","footerDivTag","gridFooter","indentWidth","headerTextClone","contentTextClone","footerTextClone","columnIndexByField","indentWidthClone","detailsElement","headerText","contentText","footerText","wHeader","wFooter","wContent","columnbyindex","width","formatUnit","colMaxWidth","calcTableWidth","Column","tableWidth","contentwidth","tag","myTableDiv","adaptiveClass","mySubDiv","myTable","myTr","offsetWidthValue","refreshResizePosition","refreshHandlers","dblclick","resizeStart","frozenRight","removeEvents","detach","minWidth","maxWidth","mousemove","translateX","th","colSpanwidth","freezeRefresh","isAutoFitCol","frozenDirection","width_1","width_2","columnsRight","capRow","groupCaptionRowLeftRightPos","_loop_2","this_2","summarycell","summaryRows","w","k","_loop_3","this_3","isChildColumn","offsetWidth","pageX","onResize","finalColumns","finalColumns_1","isUpdate","columns_2","colWidth","subColumns","content$1","cTable","resizeStop","textWrapRefresh","columns_3","stackedColumn","action","headerRows","headerRows_1","getScrollBarWidth","cls","borderWidth","parentOffset","offset","doc","offsetParent","userAgent","Toolbar","parent","serviceLocator","preItems","isAdaptive","excludingItems","_i","preItems_1","item","itemStr","localeName","isNullOrUndefined","isRight","items","toolbarItems","i","viewStr","registerTemp","remove","select","isNormal","classList","isStringTemplate","isVue","isReactCompiler","isReactChild","ID","templateCompiler","appendChildren","tlbrLeftElement","tlbrCenterElement","tlbrRightElement","tlbrItems","tlbrElement","tlbrLeftWidth","tlbrCenterWidth","tlbrRightWidth","tlbrItemsWidth","tlbrWidth","args","isRender","ResponsiveToolbarAction","right","parentsUntil","action","id","selectedRecords","_a","toolbarEle","_b","_c","gObj","enableItems","disableItems","edit","hasData","addedRecords","addRow","toolbarItems_1","itemObject","extend","itemName","isEnable","items_1","element","_this","gID","originalEvent","newArgs","toolbarClick","toolbarargs","tarElement","y","x","targetEle","renderResponsiveChangeAction","e","pos","elePos","gClient","target","calculatePosition","applyBiggerTheme","toolbarItems_2","title","ContextMenu","SearchBox","EventHandler","currentInfo","removeClass","elementToFocus","getFocusToolbarElements","getFocusToolbarItems","targetParent","focusableToolbarItems","index","setFullScreenDialog","initialEnd","uiUpdate","inBoundModelChanged","modelChanged","toolbarRefresh","dataBound","click","rowModeChange","destroy","keyPressed","addRemoveEventListener","rowSelected","rowDeselected","isSearch","InlineEditRender","parent","elements","args","tbody$1","tbody","emptyRow","tdElement","editedRow","isEdit","isFrozen","gObj","gLen","isDetail","isNullOrUndefined","td","form","table","colGroup","tr","i","m","inputValue","isFirstVisibleCell","cols","span","col","td_1","rowCell","setStyleAndAttributes","addClass","addStickyColumnPosition","colSpan","resetColandRowSpanStickyPosition","addFixedColumnBorder","data","dummyData","extend","editTemplateID","appendChildren","BatchEditRender","parentRow","newTd","classList","DialogEditRender","serviceLocator","dialogDestroy","destroy","_this","header","responsiveDlgRenderer","ResponsiveDialogRenderer","ResponsiveDialogAction","initializeCSPTemplate","Dialog","isStringTemplate","applyBiggerTheme","addBiggerDialog","e","dialogEditTemplates","templateName","updateBlazorTemplate","destroyForm","toolbarRefresh","remove","dialogTemp","tempDiv","templateID","div","isReactCompiler","isReactChild","setRules","columns","table$1","dataCell","EditRender","isCustomFormValidation","beforeStartEdit","isFocused","cell","value","select","_i","cols_1","cellArgs","getComplexFieldID","getObject","temp","parentsUntil","elem","type","chkBox","closest","isFocus","focusElement","addedRow","len","cellRendererFact","model","RowModelGenerator","cellRenderer","CellType","cells","dataRowIndex","cellValue","padZero","tArgs","input","tempID","tempData","extendObjWithFn","template","isInput","complexFieldName","attributes","EditCellBase","createEditElement","element","__extends$p","extendStatics","d","b","p","__","BooleanEditCell","_super","classNames","selectChkBox","chkState","row","addRemoveActiveClasses","CheckBox","isEditable","change","add","__extends$q","DropDownEditCell","isInline","pred","Predicate","params","keys","DropDownList","DataManager","Query","create","open","beforeOpen","actionComplete","DataUtil","dlgElement","dlgObj","NumericEditCell","evt","Internationalization","NumericTextBox","__extends$r","DefaultEditCell","attr","props","TextBox","NormalEdit","renderer","target","gridContent","headerContent","action","editedData","rowObj","isScroll","primaryKeys","primaryKeyValues","selector","virtualRow","virtualScrollEditActionBegin","isGroupAdaptive","rObj","createVirtualValidationForm","beginEdit","begineditargs","actionBegin","editargs","disable","prevent","addRow","inputs","buttons","uid","column","error","freezeRender","index","index_1","refreshInfiniteEditrowindex","updateData","isValid","validationArgs","validateVirtualForm","isDlg","dlgWrapper","dlgForm","getVirtualData","eleLength","endEditArgs","virtualScrollEditSuccess","modelChanged","showAddNewRowFocus","rowData","beforeDataBound","dragRow","rows","dragRowUid","dragRowObject_1","_loop_1","thisRef","this_1","flag","groupedColumn","comparer1","comparer2","j","dropRowObject","actionFailure","refresh","RowRenderer","refreshVirtualCache","refreshForeignData","leftrightCells","idx","virtualScrollEditCancel","closeEditArgs","isLazyLoad","addArgs","fieldname","dataLen","_loop_2","_a","tmpRecord","contained","record","addElements","editElements","crudAction","doubleTap","click","recordAdded","dblclick","deleteComplete","saveComplete","rowModeChange","closeInline","addRemoveEventListener","__extends$s","InlineEdit","BatchEdit","beforeCellFocused","cellFocused","keyPressed","editNextValCell","EventHandler","dataBound","batchCancel","rowIndex","colIndex","dataColIndex","clear","cellIndex","actualIndex","indent","rowIdx","cellIdx","argument","beforeBatchCancel","isInsert","isDirty","Row","Cell","tooltipDestroy","rowRenderer","isInstertedRemoved","editType","refreshFooterRenderer","groupAggregates","deletedRecords","checkAllBox","removeClass","changes","original","beforeBatchSave","beforeBatchSaveArgs","bulkSave","rows_1","isTop","rowClone","selectedRows","beforeBatchDelete","beforeBatchDeleteArgs","uniqueid","selectedRow","batchDelete","dataObjects","ariaRowIndex","visibleColumns","obj","defaultData","beforeBatchAdd","beforeBatchAddArgs","modelData","batchAdd","btmIdx","addedRecords","args1","columnIndex","isAdd","isValOnly","endIndex","validation","dValues","setValue","field","checkEdit","cellEdit","cellEditArgs","batchEditFormRendered","isInsertedBatchRow","getCellFromRow","getCellByColAndRowIndex","rowObj_1","thisRef_1","newReactTd_1","queryCellInfo","keys_1","cIdx","CellRenderer","rowcell","parentElement","insertedRows","isSingleInsert","nextCellIndex","cloneEditedData","isUndefined","isForceSave","cellSave","batchForm","cellSaveArgs","isEscapeCellEdit","cellSaved","restoreFocus","editedBatchCellMatrix","editedBatchCell","__extends$t","DialogEdit","__extends$u","DatePickerEditCell","DatePicker","dateanddatetimerender","MaskedDateTime","DateTimePicker","mode","rtl","css","datePickerEditCell","format","getCustomDateFormat","datePickerClose","TemplateEditCell","Edit","templteCell","prop","lastTr","hdrTbody","checkLastRow","closeEdit","virtualScrollAddActionBegin","content","val","elements_1","btnOptions","name","options","inBoundModelChanged","initialEnd","autoCol","preventBatch","actions","k","setComplexFieldID","getValue","inputElements","col_1","editRow","restrictedRequestTypes","isRestrict","isAddRows","isDestroyVirtualForm","parentIns","getParentIns","instanceElement","formObjects","gridElement","hasGridChild","gridHeader","isMacLike","focusableEditCells","commandColCell","lastCell","firstCellIndex","matrix","rowMatrix","newRule","rules","mRules","frRules","setValidationRuels","FormValidator","inputElement","valCustomPlacement","id","getParsedFieldID","isFrozenHdr","tdRight","elemRight","offSet","display","formObj","customForm","gcontent","row$1","isFHdr","isFHdrLastRow","validationForBottomRowPos","isBatchModeLastRow","isAddNewRow","viewPortRowCount","headerRows","fHearderRows","insertRow","client","left","inputClient","arrow","getEditCell","frozenContent","frozenHeader","contentDiv","lineHeight","pos","calculateRelativeBasedPosition","scrollWidth","getScrollBarWidth","gHeight","rowsCount","rowsHeight","position","editors","ColumnChooser","createCheckBox","renderResponsiveColumnChooserDiv","renderResponsiveChangeAction","uiUpdate","rtlUpdated","resetColumns","setFullScreenDialog","targetElement","x","y","elementVisible","isSticky","toolbarItem","newpos","dlgWidth","Browser","resetDialogAppend","columnChooserOpened","X","Y","prevElem","searchElement","isAdaptive","responsiveCnt","searchDiv","ccsearchele","ccsearchicon","conDiv","SearchBox","innerDivContent","searchBoxDiv","uncheckedLength","emptyRowCell","changedColumns","colUid","currentCol","stateColumns","state","columnChooserCancelBtnClick","isChecked","coluid","selectAll","searchVal","clearSearch","okButton","buttonEle","selectedCbox","refreshCustomFilterOkBtn","nMatchele","checkstate","toogleCheckbox","columnUid","cnt","className","selected","btn","inputElem","setChecked","checked","cBoxes","cBoxes_1","cBox","removeAddCboxClasses","cBoxInput","visibleCols","columnUID","srchShowCols","searchData","itemsLen","hideCols","gdCol","selectAllValue","cclist","gridObject","currentCheckBoxColls","itemLen","uncheck","label","cbox","cboxLabel","inputcbox","createCboxWithWrap","hideColState","showColState","cccheckboxlist","proxy","interval","openCC","dlgEle","dlgLen","beforeOpenColumnChooser","enable","__extends$v","extendStatics","d","b","p","__","CommandColumnRenderer","_super","parent","locator","_this","destroy","commandColumnDestroy","args","parentsUntil","elem","cell","data","attributes","isVirtualEdit","node","uid","tempID","appendChildren","_i","_a","command","addClass","removeClass","addStickyColumnPosition","buttonOption","index","button","isNullOrUndefined","buttonObj","Button","CellRenderer","CommandColumn","cellFac","CellType","e","gObj","target","closest","type","commandColumn","row$1","row","cols","i","commandCols","j","idInString","typeInString","buttons","ele","commandClick","commandclickargs","dataRowIndex","click","keyPressed","initialEnd","col","commandCol","getUid","menuClass","gridHeader","gridContent","_c0","_c1","_c2","_c3","_c4","_c5","_c6","_c7","_c8","_c9","_c10","_c11","_c12","_c13","_c14","_c15","input$3","outputs$5","StackedColumnDirective","ComplexBase","viewContainerRef","setValue","__ngFactoryType__","ɵɵdirectiveInject","ViewContainerRef","ɵɵdefineDirective","rf","ctx","dirIndex","ɵɵcontentQuery","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵInheritDefinitionFeature","__decorate","Template","StackedColumnsDirective","ArrayBase","input$2","outputs$4","ColumnDirective","ColumnsDirective","input$1","outputs$3","AggregateColumnDirective","AggregateColumnsDirective","input","outputs$2","AggregateDirective","AggregatesDirective","outputs$1","twoWays$1","GridComponent","Grid","ngEle","srenderer","viewContainerRef","injector","mod","setValue","ComponentBase","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","_c9","_c10","_c11","_c12","_c13","_c14","_c15","ColumnsDirective","AggregatesDirective","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵInheritDefinitionFeature","__decorate","Template","ComponentMixins","GridModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","FilterService","Filter","PageService","Page","SortService","Sort","ToolbarService","Toolbar","SearchService","Search","EditService","Edit","ResizeService","Resize","CommandColumnService","CommandColumn","ColumnChooserService","ColumnChooser","ErrorType","ShowInactiveService","constructor","showInactive","ClientService","ShowInactiveService","constructor","authService","clientAdministrationClient","toastService","spinnerService","getData","skip","take","filters","sortBy","sortDirection","Error","addRecord","data","updateRecord","deleteRecord","id","resolve","getAccessibleClients","filter","loggedInUser","getUserInfo","client","selectedClient","clients","of","items","totalNumberOfItems","isUserAdmin","showSpinner","FilterDTO","isComplex","field","operator","FilterOperator","Equal","value","searchClients","SortDirection","Ascending","pipe","tap","pagedResult","numberOfClients","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","searchTerm","trim","length","push","condition","FilterCondition","Or","predicates","Contains","ɵɵinject","AuthService","ClientClient","ToastService","SpinnerService","factory","ɵfac","import_file_saver","FileSaverService","fileName","type","blob","filtType","option","file","txt","__ngFactoryType__","ɵɵdefineInjectable","FileSaverModule","__ngFactoryType__","ɵɵdefineNgModule","ɵɵdefineInjector","LIGHTBOX_EVENT","LightboxEvent","Subject","event","t","ɵɵdefineInjectable","getWindow","LightboxWindowRef","_c0","_c1","_c2","_c3","_c4","_c5","_c6","_c7","_c8","_c9","LightboxComponent","_elemRef","_rendererRef","_lightboxEvent","_lightboxElem","_lightboxWindowRef","_fileSaverService","_sanitizer","_documentRef","event","album","SecurityContext","$event","LIGHTBOX_EVENT","url","downloadUrl","parts","fileName","canvas","ctx","preloader","_this","blob","height","width","temp","i","src","imageHeight","imageWidth","maxImageHeight","maxImageWidth","windowHeight","windowWidth","naturalImageWidth","naturalImageHeight","scrollOffset","viewOffset","topDistance","oldWidth","oldHeight","newWidth","newHeight","eventName","eventHandler","top","left","resizeDuration","fadeDuration","newIndex","alwaysShowNav","keycode","key","elem","propertyName","t","ɵɵdirectiveInject","ElementRef","Renderer2","LightboxEvent","LightboxWindowRef","FileSaverService","DomSanitizer","DOCUMENT","ɵɵdefineComponent","rf","ɵɵviewQuery","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵlistener","ɵɵclassMap","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵtext","ɵɵadvance","ɵɵproperty","ɵɵsanitizeUrl","ɵɵsanitizeHtml","ɵɵtextInterpolate","LightboxConfig","documentRef","t","ɵɵdefineInjectable","_c0","LightboxOverlayComponent","_elemRef","_rendererRef","_lightboxEvent","_documentRef","event","LIGHTBOX_EVENT","fadeDuration","width","height","t","ɵɵdirectiveInject","ElementRef","Renderer2","LightboxEvent","DOCUMENT","ɵɵdefineComponent","rf","ctx","ɵɵlistener","ɵɵresolveWindow","ɵɵclassMap","Lightbox","_componentFactoryResolver","_injector","_applicationRef","_lightboxConfig","_lightboxEvent","_documentRef","album","curIndex","options","overlayComponentRef","LightboxOverlayComponent","componentRef","LightboxComponent","newOptions","LIGHTBOX_EVENT","containerElement","ComponentClass","t","ɵɵinject","ComponentFactoryResolver$1","Injector","ApplicationRef","LightboxConfig","LightboxEvent","DOCUMENT","ɵɵdefineInjectable","LightboxModule","t","ɵɵdefineNgModule","ɵɵdefineInjector","Lightbox","LightboxConfig","LightboxEvent","LightboxWindowRef","FileSaverModule","TranslationLoaderResolver","constructor","translate","resolve","get","ɵɵinject","TranslateService","factory","ɵfac","fixProto","target","prototype","setPrototypeOf","fixStack","fn","captureStackTrace","__extends","_extendStatics","d","b","p","__","CustomError","_super","message","options","_newTarget","_this","__extends","extendStatics","d","b","p","__","Exception","_super","message","_this","ex","CustomError","Exception_default","__extends","extendStatics","d","b","p","__","ArgumentException","_super","Exception_default","ArgumentException_default","__extends","extendStatics","d","b","p","__","IllegalArgumentException","_super","Exception_default","IllegalArgumentException_default","BinaryBitmap","binarizer","IllegalArgumentException_default","y","row","left","top","width","height","newSource","BinaryBitmap_default","__extends","extendStatics","d","b","p","__","ChecksumException","_super","Exception_default","ChecksumException_default","Binarizer","source","Binarizer_default","System","src","srcPos","dest","destPos","length","System_default","__extends","extendStatics","d","b","p","__","IndexOutOfBoundsException","_super","Exception_default","IndexOutOfBoundsException_default","__extends","extendStatics","d","b","p","__","ArrayIndexOutOfBoundsException","_super","index","message","_this","IndexOutOfBoundsException_default","ArrayIndexOutOfBoundsException_default","__values","o","s","m","Arrays","a","val","len","fromIndex","toIndex","i","arrayLength","IllegalArgumentException_default","ArrayIndexOutOfBoundsException_default","args","_i","rows","cols","value","arr","x","first","second","length_1","e_1","_a","result","a_1","a_1_1","element","e_1_1","original","newLength","newArray","from","to","copy","System_default","ar","el","comparator","n","k","cmp","b","Arrays_default","Integer","i","y","n","intNumber","dividend","divisor","num","radix","Integer_default","BitArray","size","bits","newBits","System_default","i","from","bitsOffset","currentBits","length","result","Integer_default","start","end","IllegalArgumentException_default","firstInt","lastInt","firstBit","lastBit","mask","max","value","bit","numBits","numBitsLeft","other","otherSize","length_1","bitOffset","array","offset","numBytes","theByte","j","len","oldBitsLen","x","leftOffset","currentInt","nextInt","o","Arrays_default","BitArray_default","DecodeHintType","DecodeHintType_default","__extends","extendStatics","d","b","p","__","FormatException","_super","Exception_default","FormatException_default","__values","o","s","m","CharacterSetValueIdentifiers","CharacterSetECI","valueIdentifier","valuesParam","name","e_1","_a","otherEncodingNames","_i","values","i","length_1","v","otherEncodingNames_1","otherEncodingNames_1_1","otherName","e_1_1","value","FormatException_default","characterSet","other","CharacterSetECI_default","__extends","extendStatics","d","b","p","__","UnsupportedOperationException","_super","Exception_default","UnsupportedOperationException_default","StringEncoding","bytes","encoding","encodingName","s","CharacterSetECI_default","characterSet","i","length_1","h","UnsupportedOperationException_default","encodedURIstring","charList","uintArray","StringEncoding_default","StringUtils","code","encoding","e","StringEncoding_default","bytes","hints","DecodeHintType_default","length","canBeISO88591","canBeShiftJIS","canBeUTF8","utf8BytesLeft","utf2BytesChars","utf3BytesChars","utf4BytesChars","sjisBytesLeft","sjisKatakanaChars","sjisCurKatakanaWordLength","sjisCurDoubleBytesWordLength","sjisMaxKatakanaWordLength","sjisMaxDoubleBytesWordLength","isoHighOther","utf8bom","i","value","append","args","_i","callback","exp","p0","p1","p2","p3","p4","base","val","size","ch","regex","str","index","charCode","CharacterSetECI_default","StringUtils_default","StringBuilder","value","encoding","s","StringUtils_default","str","offset","len","i","n","c","start","end","StringBuilder_default","BitMatrix","width","height","rowSize","bits","IllegalArgumentException_default","image","i","imageI","j","stringRepresentation","setString","unsetString","bitsPos","rowStartPos","rowLength","nRows","pos","matrix","x","y","offset","mask","rowArray","BitArray_default","row","max","left","top","right","bottom","System_default","topRow","bottomRow","length_1","x32","theBits","bit","bitsOffset","o","other","Arrays_default","hash","lineSeparator","result","StringBuilder_default","BitMatrix_default","__extends","extendStatics","d","b","p","__","NotFoundException","_super","Exception_default","NotFoundException_default","__extends","extendStatics","d","b","p","__","GlobalHistogramBinarizer","_super","source","_this","y","row","width","BitArray_default","localLuminances","localBuckets","x","blackPoint","left","center","right","height","matrix","BitMatrix_default","localLuminances_1","pixel","offset","luminanceSize","buckets","numBuckets","maxBucketCount","firstPeak","firstPeakSize","secondPeak","secondPeakScore","distanceToBiggest","score","temp","NotFoundException_default","bestValley","bestValleyScore","fromFirst","Binarizer_default","GlobalHistogramBinarizer_default","__extends","extendStatics","d","b","p","__","HybridBinarizer","_super","source","_this","width","height","luminances","subWidth","subHeight","blackPoints","newMatrix","BitMatrix_default","matrix","maxYOffset","maxXOffset","y","yoffset","top_1","x","xoffset","left","sum","z","blackRow","average","value","min","max","threshold","stride","offset","yy","xx","pixel","averageNeighborBlackPoint","GlobalHistogramBinarizer_default","HybridBinarizer_default","LuminanceSource","width","height","left","top","UnsupportedOperationException_default","row","result","StringBuilder_default","y","sourceRow","x","luminance","c","LuminanceSource_default","__extends","extendStatics","d","b","p","__","InvertedLuminanceSource","_super","delegate","_this","y","row","sourceRow","width","i","matrix","length","invertedMatrix","left","top","height","LuminanceSource_default","InvertedLuminanceSource_default","__extends","extendStatics","d","b","p","__","HTMLCanvasElementLuminanceSource","_super","canvas","doAutoInvert","_this","imageData","imageBuffer","width","height","grayscaleBuffer","i","j","length_1","gray","alpha","pixelR","pixelG","pixelB","length_2","y","row","IllegalArgumentException_default","start","left","top","tempCanvasElement","angle","tempContext","angleRadians","newWidth","newHeight","InvertedLuminanceSource_default","LuminanceSource_default","VideoInputDevice","deviceId","label","groupId","__awaiter","thisArg","_arguments","P","generator","adopt","value","resolve","reject","fulfilled","step","e","rejected","result","__generator","body","_","t","f","y","g","verb","n","v","op","__values","o","s","m","BrowserCodeReader","reader","timeBetweenScansMillis","_hints","millis","hints","devices","videoDevices","devices_1","devices_1_1","device","kind","deviceId","label","groupId","videoDevice","e_1","_a","_b","e_1_1","d","VideoInputDevice","x","videoSource","videoConstraints","constraints","stream","video","callbackFn","videoElement","_this","element","mediaElementId","type","mediaElement","ArgumentException_default","source","url","task","decodeTask","img","imageSource","imageElement","retryIfNotFound","retryIfChecksumOrFormatError","loop","NotFoundException_default","ifNotFound","isChecksumOrFormatError","ChecksumException_default","FormatException_default","ifChecksumOrFormat","isNotFound","binaryBitmap","ctx","doAutoInvert","canvas","luminanceSource","HTMLCanvasElementLuminanceSource","hybridBinarizer","HybridBinarizer_default","BinaryBitmap_default","elem","srcElement","dimensions","canvasElementContext","canvasElement","width","height","Result","text","rawBytes","numBits","resultPoints","format","timestamp","System_default","type","value","metadata","newPoints","oldPoints","allPoints","Result_default","BarcodeFormat","BarcodeFormat_default","ResultMetadataType","ResultMetadataType_default","DecoderResult","rawBytes","text","byteSegments","ecLevel","structuredAppendSequenceNumber","structuredAppendParity","numBits","errorsCorrected","erasures","other","DecoderResult_default","AbstractGenericGF","a","IllegalArgumentException_default","b","AbstractGenericGF_default","GenericGFPoly","field","coefficients","IllegalArgumentException_default","coefficientsLength","firstNonZero","System_default","degree","a","result","i","length_1","coefficient","AbstractGenericGF_default","size","other","smallerCoefficients","largerCoefficients","temp","sumDiff","lengthDiff","aCoefficients","aLength","bCoefficients","bLength","product","aCoeff","j","scalar","quotient","remainder","denominatorLeadingTerm","inverseDenominatorLeadingTerm","degreeDifference","scale","term","iterationQuotient","alphaPower","GenericGFPoly_default","__extends","extendStatics","d","b","p","__","ArithmeticException","_super","Exception_default","ArithmeticException_default","__extends","extendStatics","d","b","p","__","GenericGF","_super","primitive","size","generatorBase","_this","expTable","x","i","logTable","GenericGFPoly_default","degree","coefficient","IllegalArgumentException_default","coefficients","a","ArithmeticException_default","Integer_default","o","AbstractGenericGF_default","GenericGF_default","__extends","extendStatics","d","b","p","__","ReedSolomonException","_super","Exception_default","ReedSolomonException_default","__extends","extendStatics","d","b","p","__","IllegalStateException","_super","Exception_default","IllegalStateException_default","ReedSolomonDecoder","field","received","twoS","poly","GenericGFPoly_default","syndromeCoefficients","noError","i","evalResult","syndrome","sigmaOmega","sigma","omega","errorLocations","errorMagnitudes","position","ReedSolomonException_default","GenericGF_default","a","b","R","temp","rLast","r","tLast","t","rLastLast","tLastLast","q","denominatorLeadingTerm","dltInverse","degreeDiff","scale","IllegalStateException_default","sigmaTildeAtZero","inverse","errorLocator","numErrors","result","e","errorEvaluator","s","xiInverse","denominator","j","term","termPlus1","ReedSolomonDecoder_default","Table","Decoder","detectorResult","matrix","rawbits","correctedBits","rawBytes","result","decoderResult","DecoderResult_default","endIndex","latchTable","shiftTable","index","length_1","charCount","code","StringUtils_default","size","str","table","IllegalStateException_default","gf","codewordSize","GenericGF_default","numDataCodewords","numCodewords","FormatException_default","offset","dataWords","i","rsDecoder","ReedSolomonDecoder_default","ex","mask","stuffedBits","dataWord","bit","compact","layers","baseMatrixSize","alignmentMap","matrixSize","Integer_default","origCenter","center","newOffset","rowOffset","rowSize","low","high","j","columnOffset","k","startIndex","length","res","n","boolArr","byteArr","Decoder_default","MathUtils","d","aX","aY","bX","bY","xDiff","yDiff","array","count","length_1","a","MathUtils_default","Float","f","Float_default","ResultPoint","x","y","other","otherPoint","Float_default","patterns","zeroOneDistance","oneTwoDistance","zeroTwoDistance","pointA","pointB","pointC","temp","pattern1","pattern2","MathUtils_default","bX","bY","ResultPoint_default","DetectorResult","bits","points","DetectorResult_default","__extends","extendStatics","d","b","p","__","AztecDetectorResult","_super","bits","points","compact","nbDatablocks","nbLayers","_this","DetectorResult_default","AztecDetectorResult_default","WhiteRectangleDetector","image","initSize","x","y","halfsize","NotFoundException_default","left","right","up","down","sizeExceeded","aBlackPointFoundOnBorder","atLeastOneBlackPointFoundOnBorder","atLeastOneBlackPointFoundOnRight","atLeastOneBlackPointFoundOnBottom","atLeastOneBlackPointFoundOnLeft","atLeastOneBlackPointFoundOnTop","width","height","rightBorderNotWhite","bottomBorderNotWhite","leftBorderNotWhite","topBorderNotWhite","maxSize","z","i","t","aX","aY","bX","bY","dist","MathUtils_default","xStep","yStep","ResultPoint_default","yi","yj","zi","zj","xi","xj","ti","tj","CORR","a","b","fixed","horizontal","WhiteRectangleDetector_default","GridSampler","image","points","width","height","nudged","offset","x","y","NotFoundException_default","GridSampler_default","PerspectiveTransform","a11","a21","a31","a12","a22","a32","a13","a23","a33","x0","y0","x1","y1","x2","y2","x3","y3","x0p","y0p","x1p","y1p","x2p","y2p","x3p","y3p","qToS","sToQ","points","max","i","x","y","denominator","xValues","yValues","n","dx3","dy3","dx1","dx2","dy1","dy2","other","PerspectiveTransform_default","__extends","extendStatics","d","b","p","__","DefaultGridSampler","_super","image","dimensionX","dimensionY","p1ToX","p1ToY","p2ToX","p2ToY","p3ToX","p3ToY","p4ToX","p4ToY","p1FromX","p1FromY","p2FromX","p2FromY","p3FromX","p3FromY","p4FromX","p4FromY","transform","PerspectiveTransform_default","NotFoundException_default","bits","BitMatrix_default","points","y","max","iValue","x","GridSampler_default","DefaultGridSampler_default","GridSamplerInstance","newGridSampler","DefaultGridSampler_default","GridSamplerInstance_default","Point","x","y","ResultPoint_default","Detector","image","isMirror","pCenter","bullsEyeCorners","temp","bits","corners","AztecDetectorResult_default","NotFoundException_default","length","sides","parameterData","i","side","correctedData","cornerBits","idx","arr","t","shift","Integer_default","compact","numCodewords","numDataCodewords","numECCodewords","parameterWords","rsDecoder","ReedSolomonDecoder_default","GenericGF_default","result","pina","pinb","pinc","pind","color","pouta","poutb","poutc","poutd","q","pinax","ResultPoint_default","pinbx","pincx","pindx","pointA","pointB","pointC","pointD","cornerPoints","WhiteRectangleDetector_default","cx_1","cy_1","Point","cx","MathUtils_default","cy","topLeft","topRight","bottomRight","bottomLeft","sampler","GridSamplerInstance_default","dimension","low","high","p1","p2","size","d","moduleSize","px","py","dx","dy","p3","p4","corr","cInit","c","error","colorModel","iMax","errRatio","init","x","y","oldSide","newSide","ratio","centerx","centery","result0","result2","result1","result3","results","point","a","b","Detector_default","AztecReader","image","hints","exception","detector","Detector_default","points","decoderResult","detectorResult","Decoder_default","e","result","Result_default","BarcodeFormat_default","System_default","byteSegments","ResultMetadataType_default","ecLevel","rpcb_1","DecodeHintType_default","point","idx","arr","AztecReader_default","__extends","extendStatics","d","b","p","__","BrowserAztecCodeReader","_super","timeBetweenScansMillis","AztecReader_default","BrowserCodeReader","OneDReader","image","hints","tryHarder","DecodeHintType_default","rotatedImage","result","metadata","orientation_1","ResultMetadataType_default","points","height","i","ResultPoint_default","NotFoundException_default","width","row","BitArray_default","rowStep","maxLines","middle","x","rowStepsAboveOrBelow","isAbove","rowNumber","_loop_1","attempt","newHints_1","hint","key","this_1","state_1","start","counters","numCounters","index","end","isWhite","counterPosition","numTransitionsLeft","last","pattern","maxIndividualVariance","total","patternLength","unitBarWidth","totalVariance","counter","scaledPattern","variance","OneDReader_default","__extends","extendStatics","d","b","p","__","Code128Reader","_super","row","width","rowOffset","counterPosition","counters","patternStart","isWhite","patternLength","i","bestVariance","bestMatch","startCode","variance","OneDReader_default","NotFoundException_default","pattern","rowNumber","hints","convertFNC1","DecodeHintType_default","startPatternInfo","currentRawCodesIndex","rawCodes","codeSet","FormatException_default","done","isNextShifted","result","lastStart","nextStart","lastCode","code","checksumTotal","multiplier","lastCharacterWasPrintable","upperMode","shiftUpperMode","unshift","previous","current","lastPatternSize","ChecksumException_default","resultLength","left","right","rawCodesSize","rawBytes","points","ResultPoint_default","Result_default","BarcodeFormat_default","Code128Reader_default","__extends","extendStatics","d","b","p","__","__values","o","s","m","Code39Reader","_super","usingCheckDigit","extendedMode","_this","rowNumber","row","hints","e_1","_a","e_2","_b","theCounters","start","nextStart","end","decodedChar","lastStart","pattern","NotFoundException_default","theCounters_1","theCounters_1_1","counter","e_1_1","lastPatternSize","theCounters_2","theCounters_2_1","e_2_1","whiteSpaceAfterEnd","max","total","i","ChecksumException_default","resultString","left","right","Result_default","ResultPoint_default","BarcodeFormat_default","counters","width","rowOffset","counterPosition","patternStart","isWhite","patternLength","e_3","numCounters","maxNarrowCounter","wideCounters","minCounter","counters_1","counters_1_1","e_3_1","totalWideCountersWidth","encoded","length","decoded","c","next","FormatException_default","OneDReader_default","Code39Reader_default","__extends","extendStatics","d","b","p","__","__values","o","s","m","Code93Reader","_super","_this","rowNumber","row","hints","e_1","_a","e_2","_b","start","nextStart","end","theCounters","decodedChar","lastStart","pattern","NotFoundException_default","theCounters_1","theCounters_1_1","counter","e_1_1","lastPatternSize","theCounters_2","theCounters_2_1","e_2_1","resultString","left","right","Result_default","ResultPoint_default","BarcodeFormat_default","width","rowOffset","patternStart","isWhite","patternLength","counterPosition","i","counters","e_3","sum","counters_1","counters_1_1","e_3_1","max","scaled","j","encoded","length","decoded","c","FormatException_default","next","result","checkPosition","weightMax","weight","total","ChecksumException_default","OneDReader_default","Code93Reader_default","__extends","extendStatics","d","b","p","__","__values","o","s","m","ITFReader","_super","_this","rowNumber","row","hints","e_1","_a","startRange","endRange","result","StringBuilder_default","resultString","allowedLengths","DecodeHintType_default","length","lengthOK","maxAllowedLength","allowedLengths_1","allowedLengths_1_1","value","e_1_1","FormatException_default","points","ResultPoint_default","resultReturn","Result_default","BarcodeFormat_default","payloadStart","payloadEnd","counterDigitPair","counterBlack","counterWhite","OneDReader_default","k","twoK","bestMatch","counterDigit","endStart","startPattern","quietCount","i","NotFoundException_default","width","endPattern","error","temp","rowOffset","pattern","patternLength","counters","isWhite","counterPosition","patternStart","x","System_default","bestVariance","max","variance","ITFReader_default","__extends","extendStatics","d","b","p","__","AbstractUPCEANReader","_super","_this","row","foundStart","startRange","nextStart","counters","start","quietStart","s","length","check","sum","i","digit","FormatException_default","endStart","rowOffset","whiteFirst","pattern","width","counterPosition","patternStart","patternLength","isWhite","x","OneDReader_default","slice","NotFoundException_default","patterns","bestVariance","bestMatch","max","variance","AbstractUPCEANReader_default","__values","o","s","m","UPCEANExtension5Support","rowNumber","row","extensionStartRange","result","end","resultString","extensionData","resultPoints","ResultPoint_default","extensionResult","Result_default","BarcodeFormat_default","startRange","e_1","_a","counters","rowOffset","lgPatternFound","x","bestMatch","AbstractUPCEANReader_default","counters_1","counters_1_1","counter","e_1_1","NotFoundException_default","checkDigit","length","sum","i","d","raw","value","ResultMetadataType_default","currency","rawAmount","unitsString","hundredths","hundredthsString","UPCEANExtension5Support_default","__values","o","s","m","UPCEANExtension2Support","rowNumber","row","extensionStartRange","result","end","resultString","extensionData","resultPoints","ResultPoint_default","extensionResult","Result_default","BarcodeFormat_default","startRange","e_1","_a","counters","rowOffset","checkParity","x","bestMatch","AbstractUPCEANReader_default","counters_1","counters_1_1","counter","e_1_1","NotFoundException_default","raw","ResultMetadataType_default","UPCEANExtension2Support_default","UPCEANExtensionSupport","rowNumber","row","rowOffset","extensionStartRange","AbstractUPCEANReader_default","fiveSupport","UPCEANExtension5Support_default","twoSupport","UPCEANExtension2Support_default","UPCEANExtensionSupport_default","__extends","extendStatics","d","b","p","__","UPCEANReader","_super","_this","arr","widths","reversedWidths","j","rowNumber","row","hints","startGuardRange","resultPointCallback","DecodeHintType_default","resultPoint_1","ResultPoint_default","budello","endStart","result","resultPoint_2","endRange","resultPoint_3","end","quietEnd","NotFoundException_default","resultString","FormatException_default","ChecksumException_default","left","right","format","resultPoint","decodeResult","Result_default","extensionLength","extensionResult","UPCEANExtensionSupport_default","ResultMetadataType_default","allowedExtensions","valid","length_1","BarcodeFormat_default","s","length","check","sum","i","digit","AbstractUPCEANReader_default","UPCEANReader_default","__extends","extendStatics","d","b","p","__","__values","o","s","m","EAN13Reader","_super","_this","row","startRange","resultString","e_1","_a","e_2","_b","counters","end","rowOffset","lgPatternFound","x","bestMatch","UPCEANReader_default","counters_1","counters_1_1","counter","e_1_1","middleRange","counters_2","counters_2_1","e_2_1","BarcodeFormat_default","NotFoundException_default","EAN13Reader_default","__extends","extendStatics","d","b","p","__","__values","o","s","m","EAN8Reader","_super","_this","row","startRange","resultString","e_1","_a","e_2","_b","counters","end","rowOffset","x","bestMatch","UPCEANReader_default","counters_1","counters_1_1","counter","e_1_1","middleRange","counters_2","counters_2_1","e_2_1","BarcodeFormat_default","EAN8Reader_default","__extends","extendStatics","d","b","p","__","UPCAReader","_super","_this","EAN13Reader_default","BarcodeFormat_default","image","hints","rowNumber","row","startRange","resultString","result","text","upcaResult","Result_default","NotFoundException_default","UPCEANReader_default","UPCAReader_default","__extends","extendStatics","d","b","p","__","__values","o","s","m","UPCEReader","_super","_this","row","startRange","result","e_1","_a","counters","x","end","rowOffset","lgPatternFound","bestMatch","counters_1","counters_1_1","counter","e_1_1","StringBuilder_default","endStart","UPCEANReader_default","resultString","numSys","NotFoundException_default","BarcodeFormat_default","upce","upceChars","lastChar","UPCEReader_default","__extends","extendStatics","d","b","p","__","__values","o","s","m","MultiFormatUPCEANReader","_super","hints","_this","possibleFormats","DecodeHintType_default","readers","BarcodeFormat_default","EAN13Reader_default","UPCAReader_default","EAN8Reader_default","UPCEReader_default","rowNumber","row","e_1","_a","_b","_c","reader","result","ean13MayBeUPCA","canReturnUPCA","rawBytes","resultUPCA","Result_default","e_1_1","NotFoundException_default","e_2","e_2_1","OneDReader_default","MultiFormatUPCEANReader_default","__extends","extendStatics","d","b","p","__","CodaBarReader","_super","_this","rowNumber","row","hints","validRowData","NotFoundException_default","retStr","Result_default","ResultPoint_default","BarcodeFormat_default","booleanArr","startIndex","lastIndex","result","lastBit","bitLength","i","code","barThreshold","pre","item","seg","key","len","strCode","src","reg","OneDReader_default","CodaBarReader_default","__extends","extendStatics","d","b","p","__","__values","o","s","m","AbstractRSSReader","_super","_this","counters","finderPatterns","value","OneDReader_default","NotFoundException_default","array","MathUtils_default","errors","index","biggestError","i","e_1","_a","firstTwoSum","sum","ratio","minCounter","maxCounter","counters_1","counters_1_1","counter","e_1_1","AbstractRSSReader_default","DataCharacter","value","checksumPortion","o","that","DataCharacter_default","FinderPattern","value","startEnd","start","end","rowNumber","ResultPoint_default","o","that","FinderPattern_default","__values","o","s","m","RSSUtils","widths","maxWidth","noNarrow","e_1","_a","n","widths_1","widths_1_1","width","e_1_1","val","narrowMask","elements","bar","elmWidth","subVal","lessVal","mxwElement","r","maxDenom","minDenom","j","i","RSSUtils_default","BitArrayBuilder","pairs","charNumber","size","binary","BitArray_default","accPos","firstPair","firstValue","i","currentPair","leftValue","j","rightValue","BitArrayBuilder_default","BlockParsedResult","finished","decodedInformation","BlockParsedResult_default","DecodedObject","newPosition","DecodedObject_default","__extends","extendStatics","d","b","p","__","DecodedChar","_super","newPosition","value","_this","DecodedObject_default","DecodedChar_default","__extends","extendStatics","d","b","p","__","DecodedInformation","_super","newPosition","newString","remainingValue","_this","DecodedObject_default","DecodedInformation_default","__extends","extendStatics","d","b","p","__","DecodedNumeric","_super","newPosition","firstDigit","secondDigit","_this","FormatException_default","DecodedObject_default","DecodedNumeric_default","__values","o","s","m","FieldParser","rawInformation","e_1","_a","e_2","_b","e_3","_c","e_4","_d","NotFoundException_default","firstTwoDigits","_e","_f","dataLength","e_1_1","firstThreeDigits","_g","_h","e_2_1","_j","_k","e_3_1","firstFourDigits","_l","_m","e_4_1","aiSize","fieldSize","ai","field","remaining","result","parsedAI","variableFieldSize","maxSize","FieldParser_default","GeneralAppIdDecoder","information","StringBuilder_default","buff","initialPosition","currentPosition","remaining","info","parsedFields","FieldParser_default","pos","i","numeric_1","DecodedNumeric_default","numeric","digit1","digit2","bits","value","lastDecoded","DecodedInformation_default","isFinished","result","positionChanged","BlockParsedResult_default","iso","alpha","fiveBitValue","sevenBitValue","eightBitValue","DecodedChar_default","c","FormatException_default","sixBitValue","IllegalStateException_default","GeneralAppIdDecoder_default","AbstractExpandedDecoder","information","GeneralAppIdDecoder_default","AbstractExpandedDecoder_default","__extends","extendStatics","d","b","p","__","AI01decoder","_super","information","buf","currentPos","initialPosition","initialBufferPosition","i","currentBlock","checkDigit","digit","AbstractExpandedDecoder_default","AI01decoder_default","__extends","extendStatics","d","b","p","__","AI01AndOtherAIs","_super","information","buff","StringBuilder_default","initialGtinPosition","firstGtinDigit","AI01decoder_default","AI01AndOtherAIs_default","__extends","extendStatics","d","b","p","__","AnyAIDecoder","_super","information","buf","StringBuilder_default","AbstractExpandedDecoder_default","AnyAIDecoder_default","__extends","extendStatics","d","b","p","__","AI01weightDecoder","_super","information","buf","currentPos","weightSize","originalWeightNumeric","weightNumeric","currentDivisor","i","AI01decoder_default","AI01weightDecoder_default","__extends","extendStatics","d","b","p","__","AI013x0xDecoder","_super","information","AI01weightDecoder_default","NotFoundException_default","buf","StringBuilder_default","AI013x0xDecoder_default","__extends","extendStatics","d","b","p","__","AI013103decoder","_super","information","buf","weight","AI013x0xDecoder_default","AI013103decoder_default","__extends","extendStatics","d","b","p","__","AI01320xDecoder","_super","information","buf","weight","AI013x0xDecoder_default","AI01320xDecoder_default","__extends","extendStatics","d","b","p","__","AI01392xDecoder","_super","information","AI01decoder_default","NotFoundException_default","buf","StringBuilder_default","lastAIdigit","decodedInformation","AI01392xDecoder_default","__extends","extendStatics","d","b","p","__","AI01393xDecoder","_super","information","AI01decoder_default","NotFoundException_default","buf","StringBuilder_default","lastAIdigit","firstThreeDigits","generalInformation","AI01393xDecoder_default","__extends","extendStatics","d","b","p","__","AI013x0x1xDecoder","_super","information","firstAIdigits","dateCode","_this","NotFoundException_default","buf","StringBuilder_default","currentPos","numericDate","day","month","year","weight","AI01weightDecoder_default","AI013x0x1xDecoder_default","createDecoder","information","AI01AndOtherAIs_default","AnyAIDecoder_default","fourBitEncodationMethod","GeneralAppIdDecoder_default","AI013103decoder_default","AI01320xDecoder_default","fiveBitEncodationMethod","AI01392xDecoder_default","AI01393xDecoder_default","sevenBitEncodationMethod","AI013x0x1xDecoder_default","e","IllegalStateException_default","ExpandedPair","leftChar","rightChar","finderPatter","mayBeLast","o1","o2","value","ExpandedPair_default","ExpandedRow","pairs","rowNumber","wasReversed","otherPairs","o1","o2","pair1","pair2","result","e1","i","e2","ExpandedRow_default","__extends","extendStatics","d","b","p","__","__values","o","s","m","RSSExpandedReader","_super","_this","rowNumber","row","hints","done","error","NotFoundException_default","tryStackedDecode","ps","reverse","e","collectedRows","currentRow","e_1","_a","i","collectedRows_1","collectedRows_1_1","collectedRow","e_1_1","rs","pairs","e_2","_b","_c","sequence","stop_1","j","e_2_1","wasReversed","insertPos","prevIsSame","nextIsSame","erow","ExpandedRow_default","rows","e_3","e_4","e_5","rows_1","rows_1_1","allFound","_d","_e","found","pairs_1","pairs_1_1","pp","ExpandedPair_default","e_5_1","e_4_1","e_3_1","e_6","e_7","e_8","rows_2","rows_2_1","r","pairs_2","pairs_2_1","e_8_1","e_7_1","e_6_1","binary","BitArrayBuilder_default","decoder","createDecoder","resultingString","firstPoints","lastPoints","points","Result_default","BarcodeFormat_default","firstPair","checkCharacter","firstCharacter","checksum","currentPair","currentRightChar","checkCharacterValue","initialPos","currentPos","previousPairs","isOddPattern","pattern","keepFinding","forcedOffset","leftChar","rightChar","counters","width","rowOffset","lastPair","searchingEvenPair","isWhite","counterPosition","patternStart","x","length","tmp","oddPattern","firstCounter","start","end","firstElementStart","System_default","value","FinderPattern_default","temp","numModules","elementWidth","MathUtils_default","expectedElementWidth","oddCounts","evenCounts","oddRoundingErrors","evenRoundingErrors","value_1","count","offset","weightRowNumber","oddSum","oddChecksumPortion","weight","evenChecksumPortion","checksumPortion","group","oddWidest","evenWidest","vOdd","RSSUtils_default","vEven","tEven","gSum","DataCharacter_default","evenSum","incrementOdd","decrementOdd","incrementEven","decrementEven","mismatch","oddParityBad","evenParityBad","AbstractRSSReader_default","RSSExpandedReader_default","__extends","extendStatics","d","b","p","__","Pair","_super","value","checksumPortion","finderPattern","_this","DataCharacter_default","Pair_default","__extends","extendStatics","d","b","p","__","__values","o","s","m","RSS14Reader","_super","_this","rowNumber","row","hints","e_1","_a","e_2","_b","leftPair","rightPair","_c","_d","left","_e","_f","right","e_2_1","e_1_1","NotFoundException_default","possiblePairs","pair","e_3","found","possiblePairs_1","possiblePairs_1_1","other","e_3_1","symbolValue","text","buffer","StringBuilder_default","i","checkDigit","digit","leftPoints","rightPoints","Result_default","BarcodeFormat_default","checkValue","targetCheckValue","startEnd","pattern","resultPointCallback","DecodeHintType_default","center","ResultPoint_default","outside","inside","Pair_default","outsideChar","counters","x","OneDReader_default","j","temp","numModules","elementWidth","MathUtils_default","oddCounts","evenCounts","oddRoundingErrors","evenRoundingErrors","value","count","offset","oddSum","oddChecksumPortion","evenChecksumPortion","evenSum","checksumPortion","group","oddWidest","evenWidest","vOdd","RSSUtils_default","vEven","tEven","gSum","DataCharacter_default","tOdd","rightFinderPattern","width","isWhite","rowOffset","counterPosition","patternStart","AbstractRSSReader_default","firstIsBlack","firstElementStart","firstCounter","copy","System_default","start","end","FinderPattern_default","incrementOdd","decrementOdd","incrementEven","decrementEven","mismatch","oddParityBad","evenParityBad","RSS14Reader_default","__extends","extendStatics","d","b","p","__","MultiFormatOneDReader","_super","hints","_this","possibleFormats","DecodeHintType_default","useCode39CheckDigit","useCode39ExtendedMode","BarcodeFormat_default","MultiFormatUPCEANReader_default","Code39Reader_default","Code93Reader_default","Code128Reader_default","ITFReader_default","CodaBarReader_default","RSS14Reader_default","RSSExpandedReader_default","rowNumber","row","i","NotFoundException_default","reader","OneDReader_default","MultiFormatOneDReader_default","__extends","extendStatics","d","b","p","__","BrowserBarcodeReader","_super","timeBetweenScansMillis","hints","MultiFormatOneDReader_default","BrowserCodeReader","__values","o","s","m","ECBlocks","ecCodewords","ecBlocks1","ecBlocks2","ECB","count","dataCodewords","Version","versionNumber","symbolSizeRows","symbolSizeColumns","dataRegionSizeRows","dataRegionSizeColumns","ecBlocks","e_1","_a","total","ecCodewords","ecbArray","ecbArray_1","__values","ecbArray_1_1","ecBlock","e_1_1","numRows","numColumns","e_2","FormatException_default","_b","_c","version","e_2_1","ECBlocks","ECB","Version_default","BitMatrixParser","bitMatrix","dimension","FormatException_default","BitMatrix_default","numRows","numColumns","Version_default","result","resultOffset","row","column","corner1Read","corner2Read","corner3Read","corner4Read","currentByte","symbolSizeRows","symbolSizeColumns","IllegalArgumentException_default","dataRegionSizeRows","dataRegionSizeColumns","numDataRegionsRow","numDataRegionsColumn","sizeDataRegionRow","sizeDataRegionColumn","bitMatrixWithoutAlignment","dataRegionRow","dataRegionRowOffset","dataRegionColumn","dataRegionColumnOffset","i","readRowOffset","writeRowOffset","j","readColumnOffset","writeColumnOffset","BitMatrixParser_default","__values","o","s","m","DataBlock","numDataCodewords","codewords","rawCodewords","version","e_1","_a","e_2","_b","ecBlocks","totalBlocks","ecBlockArray","ecBlockArray_1","ecBlockArray_1_1","ecBlock","e_1_1","result","numResultBlocks","ecBlockArray_2","ecBlockArray_2_1","i","numBlockCodewords","e_2_1","longerBlocksTotalCodewords","longerBlocksNumDataCodewords","shorterBlocksNumDataCodewords","rawCodewordsOffset","j","specialVersion","numLongerBlocks","max","jOffset","iOffset","IllegalArgumentException_default","DataBlock_default","BitSource","bytes","numBits","IllegalArgumentException_default","result","bitOffset","byteOffset","bitsLeft","toRead","bitsToNotRead","mask","BitSource_default","Mode","DecodedBitStreamParser","bytes","bits","BitSource_default","result","StringBuilder_default","resultTrailer","byteSegments","mode","FormatException_default","DecoderResult_default","upperShift","oneByte","value","cValues","shift","firstByte","i","cValue","c40char","textChar","secondByte","fullBitValue","temp","edifactValue","bitsLeft","codewordPosition","d1","count","StringEncoding_default","StringUtils_default","uee","IllegalStateException_default","randomizedBase256Codeword","base256CodewordPosition","pseudoRandomNumber","tempVariable","DecodedBitStreamParser_default","__values","o","s","m","Decoder","ReedSolomonDecoder_default","GenericGF_default","bits","e_1","_a","parser","BitMatrixParser_default","version","codewords","dataBlocks","DataBlock_default","totalBytes","dataBlocks_1","dataBlocks_1_1","db","e_1_1","resultBytes","dataBlocksCount","j","dataBlock","codewordBytes","numDataCodewords","i","DecodedBitStreamParser_default","codewordsInts","ChecksumException_default","Decoder_default","Detector","image","WhiteRectangleDetector_default","cornerPoints","points","NotFoundException_default","topLeft","bottomLeft","bottomRight","topRight","dimensionTop","dimensionRight","bits","DetectorResult_default","point","to","div","x","y","ResultPoint_default","fromX","fromY","pointA","pointB","pointC","pointD","trAB","trBC","trCD","trDA","min","tr","pointBs","pointCs","trBA","trTop","trRight","pointAs","candidate1","candidate2","sumc1","sumc2","dimH","dimV","centerX","centerY","pointDs","p","dimensionX","dimensionY","sampler","GridSamplerInstance_default","from","toX","toY","steep","temp","dx","dy","error","ystep","xstep","transitions","inBlack","isBlack","Detector_default","DataMatrixReader","Decoder_default","image","hints","decoderResult","points","DecodeHintType_default","bits","detectorResult","Detector_default","rawBytes","result","Result_default","BarcodeFormat_default","System_default","byteSegments","ResultMetadataType_default","ecLevel","leftTopBlack","rightBottomBlack","NotFoundException_default","moduleSize","top","bottom","left","right","matrixWidth","matrixHeight","nudge","BitMatrix_default","y","iOffset","x","width","DataMatrixReader_default","__extends","extendStatics","d","b","p","__","BrowserDatamatrixCodeReader","_super","timeBetweenScansMillis","DataMatrixReader_default","BrowserCodeReader","ErrorCorrectionLevelValues","ErrorCorrectionLevel","value","stringValue","bits","s","ArgumentException_default","o","other","IllegalArgumentException_default","ErrorCorrectionLevel_default","__values","o","s","m","FormatInformation","formatInfo","ErrorCorrectionLevel_default","a","b","Integer_default","maskedFormatInfo1","maskedFormatInfo2","e_1","_a","bestDifference","bestFormatInfo","_b","_c","decodeInfo","targetInfo","bitsDifference","e_1_1","other","FormatInformation_default","__values","o","s","m","ECBlocks","ecCodewordsPerBlock","ecBlocks","_i","e_1","_a","total","ecBlocks_1","ecBlocks_1_1","ecBlock","e_1_1","ECBlocks_default","ECB","count","dataCodewords","ECB_default","__values","o","s","m","Version","versionNumber","alignmentPatternCenters","e_1","_a","ecBlocks","_i","total","ecCodewords","ecbArray","ecbArray_1","ecbArray_1_1","ecBlock","e_1_1","ecLevel","dimension","FormatException_default","IllegalArgumentException_default","versionBits","bestDifference","bestVersion","i","targetVersion","bitsDifference","FormatInformation_default","bitMatrix","BitMatrix_default","max","x","y","ECBlocks_default","ECB_default","Version_default","DataMaskValues","DataMask","value","isMasked","bits","dimension","j","i","DataMask_default","BitMatrixParser","bitMatrix","dimension","FormatException_default","formatInfoBits1","i","j","formatInfoBits2","jMin","FormatInformation_default","provisionalVersion","Version_default","versionBits","ijMin","theParsedVersion","bit","formatInfo","version","dataMask","DataMask_default","functionPattern","readingUp","result","resultOffset","currentByte","bitsRead","count","col","isMirror","x","width","y","height","BitMatrixParser_default","__values","o","s","m","DataBlock","numDataCodewords","codewords","rawCodewords","version","ecLevel","e_1","_a","e_2","_b","IllegalArgumentException_default","ecBlocks","totalBlocks","ecBlockArray","ecBlockArray_1","ecBlockArray_1_1","ecBlock","e_1_1","result","numResultBlocks","ecBlockArray_2","ecBlockArray_2_1","i","numBlockCodewords","e_2_1","shorterBlocksTotalCodewords","longerBlocksStartAt","numCodewords","shorterBlocksNumDataCodewords","rawCodewordsOffset","j","max","iOffset","DataBlock_default","ModeValues","Mode","value","stringValue","characterCountBitsForVersions","bits","mode","IllegalArgumentException_default","version","versionNumber","offset","o","other","Mode_default","DecodedBitStreamParser","bytes","version","ecLevel","hints","bits","BitSource_default","result","StringBuilder_default","byteSegments","symbolSequence","parityData","currentCharacterSetECI","fc1InEffect","mode","Mode_default","modeBits","FormatException_default","value","CharacterSetECI_default","subset","countHanzi","count","DecoderResult_default","buffer","offset","twoBytes","assembledTwoBytes","StringEncoding_default","StringUtils_default","ignored","readBytes","i","encoding","start","nextTwoCharsBits","threeDigitsBits","twoDigitsBits","digitBits","firstByte","secondByte","secondThirdBytes","DecodedBitStreamParser_default","QRCodeDecoderMetaData","mirrored","points","bottomLeft","QRCodeDecoderMetaData_default","__values","o","s","m","Decoder","ReedSolomonDecoder_default","GenericGF_default","image","hints","BitMatrix_default","bits","parser","BitMatrixParser_default","ex","e","result","QRCodeDecoderMetaData_default","e_1","_a","e_2","_b","version","ecLevel","codewords","dataBlocks","DataBlock_default","totalBytes","dataBlocks_1","dataBlocks_1_1","dataBlock","e_1_1","resultBytes","resultOffset","dataBlocks_2","dataBlocks_2_1","codewordBytes","numDataCodewords","i","e_2_1","DecodedBitStreamParser_default","codewordsInts","ChecksumException_default","Decoder_default","__extends","extendStatics","d","b","p","__","AlignmentPattern","_super","posX","posY","estimatedModuleSize","_this","moduleSize","j","moduleSizeDiff","i","newModuleSize","combinedX","combinedY","combinedModuleSize","ResultPoint_default","AlignmentPattern_default","__values","o","s","m","AlignmentPatternFinder","image","startX","startY","width","height","moduleSize","resultPointCallback","maxJ","middleI","stateCount","iGen","i","j","currentState","confirmed","NotFoundException_default","end","maxVariance","startI","centerJ","maxCount","originalStateCountTotal","maxI","stateCountTotal","e_1","_a","centerI","estimatedModuleSize","_b","_c","center","e_1_1","point","AlignmentPattern_default","AlignmentPatternFinder_default","__extends","extendStatics","d","b","p","__","FinderPattern","_super","posX","posY","estimatedModuleSize","count","_this","moduleSize","j","moduleSizeDiff","i","newModuleSize","combinedCount","combinedX","combinedY","combinedModuleSize","ResultPoint_default","FinderPattern_default","FinderPatternInfo","patternCenters","FinderPatternInfo_default","__values","o","s","m","FinderPatternFinder","image","resultPointCallback","hints","tryHarder","DecodeHintType_default","pureBarcode","maxI","maxJ","iSkip","done","stateCount","i","currentState","j","confirmed","rowSkip","patternInfo","ResultPoint_default","FinderPatternInfo_default","end","totalModuleSize","count","moduleSize","maxVariance","crossCheckStateCount","startI","centerJ","maxCount","originalStateCountTotal","stateCountTotal","startJ","centerI","estimatedModuleSize","found","possibleCenters","index","length_1","center","point","FinderPattern_default","e_1","_a","max","firstConfirmedCenter","_b","_c","e_1_1","e_2","e_3","confirmedCount","_d","pattern","e_2_1","average","totalDeviation","_e","_f","e_3_1","e_4","e_5","startSize","NotFoundException_default","square","size","e_4_1","stdDev","center1","center2","dA","dB","limit","possibleCenters_1","possibleCenters_1_1","possibleCenter","e_5_1","FinderPatternFinder_default","Detector","image","hints","DecodeHintType_default","finder","FinderPatternFinder_default","info","topLeft","topRight","bottomLeft","moduleSize","NotFoundException_default","dimension","provisionalVersion","Version_default","modulesBetweenFPCenters","alignmentPattern","bottomRightX","bottomRightY","correctionToTopLeft","estAlignmentX","estAlignmentY","i","re","transform","bits","points","DetectorResult_default","dimMinusThree","sourceBottomRightX","sourceBottomRightY","PerspectiveTransform_default","sampler","GridSamplerInstance_default","tltrCentersDimension","MathUtils_default","ResultPoint_default","tlblCentersDimension","pattern","otherPattern","moduleSizeEst1","moduleSizeEst2","fromX","fromY","toX","toY","result","scale","otherToX","otherToY","steep","temp","dx","dy","error","xstep","ystep","state","xLimit","x","y","realX","realY","overallEstModuleSize","allowanceFactor","allowance","alignmentAreaLeftX","alignmentAreaRightX","alignmentAreaTopY","alignmentAreaBottomY","alignmentFinder","AlignmentPatternFinder_default","Detector_default","QRCodeReader","Decoder_default","image","hints","decoderResult","points","DecodeHintType_default","bits","detectorResult","Detector_default","QRCodeDecoderMetaData_default","result","Result_default","BarcodeFormat_default","byteSegments","ResultMetadataType_default","ecLevel","leftTopBlack","rightBottomBlack","NotFoundException_default","moduleSize","top","bottom","left","right","matrixWidth","matrixHeight","nudge","nudgedTooFarRight","nudgedTooFarDown","BitMatrix_default","y","iOffset","x","height","width","inBlack","transitions","QRCodeReader_default","__values","o","s","m","PDF417Common","moduleBitCount","MathUtils_default","list","e_1","_a","result","i","list_1","list_1_1","integer","e_1_1","symbol","Arrays_default","PDF417Common_default","PDF417DetectorResult","bits","points","PDF417DetectorResult_default","__values","o","s","m","Detector","image","hints","multiple","bitMatrix","barcodeCoordinates","PDF417DetectorResult_default","e_1","_a","row","column","foundBarcodeInRow","vertices","barcodeCoordinates_1","barcodeCoordinates_1_1","barcodeCoordinate","e_1_1","matrix","startRow","startColumn","height","width","result","tmpResult","destinationIndexes","i","pattern","found","counters","loc","previousRowLoc","ResultPoint_default","stopRow","skippedRowCount","Arrays_default","whiteFirst","patternStart","pixelDrift","x","counterPosition","patternLength","isWhite","pixel","System_default","maxIndividualVariance","numCounters","total","unitBarWidth","totalVariance","counter","scaledPattern","variance","Detector_default","__values","o","s","m","ModulusPoly","field","coefficients","IllegalArgumentException_default","coefficientsLength","firstNonZero","System_default","degree","a","e_1","_a","sum","_b","_c","coefficient","e_1_1","result","size","i","other","smallerCoefficients","largerCoefficients","temp","sumDiff","lengthDiff","aCoefficients","aLength","bCoefficients","bLength","product","aCoeff","j","negativeCoefficients","scalar","StringBuilder_default","ModulusPoly_default","ModulusBase","a","b","IllegalArgumentException_default","ArithmeticException_default","o","ModulusBase_default","__extends","extendStatics","d","b","p","__","ModulusGF","_super","modulus","generator","_this","x","i","ModulusPoly_default","degree","coefficient","IllegalArgumentException_default","coefficients","PDF417Common_default","ModulusBase_default","ModulusGF_default","__values","o","s","m","ErrorCorrection","ModulusGF_default","received","numECCodewords","erasures","e_1","_a","poly","ModulusPoly_default","S","error","i","evaluation","knownErrors","erasures_1","erasures_1_1","erasure","b","term","e_1_1","syndrome","sigmaOmega","sigma","omega","errorLocations","errorMagnitudes","position","ChecksumException_default","a","R","temp","rLast","r","tLast","t","rLastLast","tLastLast","q","denominatorLeadingTerm","dltInverse","degreeDiff","scale","sigmaTildeAtZero","inverse","errorLocator","numErrors","result","e","errorEvaluator","errorLocatorDegree","formalDerivativeCoefficients","formalDerivative","xiInverse","numerator","denominator","ErrorCorrection_default","BoundingBox","image","topLeft","bottomLeft","topRight","bottomRight","leftUnspecified","rightUnspecified","NotFoundException_default","ResultPoint_default","boundingBox","leftBox","rightBox","missingStartRows","missingEndRows","isLeft","newTopLeft","newBottomLeft","newTopRight","newBottomRight","top_1","newMinY","newTop","bottom","newMaxY","newBottom","BoundingBox_default","BarcodeMetadata","columnCount","rowCountUpperPart","rowCountLowerPart","errorCorrectionLevel","BarcodeMetadata_default","Formatter","str","arr","callback","exp","p0","p1","p2","p3","p4","base","val","size","ch","regex","append","args","_i","Formatter_default","__values","o","s","m","DetectionResultColumn","boundingBox","BoundingBox_default","imageRow","codeword","nearImageRow","e_1","_a","formatter","Formatter_default","row","_b","_c","e_1_1","DetectionResultColumn_default","__values","o","s","m","__read","n","r","ar","e","error","BarcodeValue","value","confidence","e_1","_a","maxConfidence","result","_loop_1","key","entry","_b","_c","_d","e_1_1","PDF417Common_default","BarcodeValue_default","__extends","extendStatics","d","b","p","__","__values","o","s","m","DetectionResultRowIndicatorColumn","_super","boundingBox","isLeft","_this","e_1","_a","_b","_c","codeword","e_1_1","barcodeMetadata","codewords","top","bottom","firstRow","lastRow","barcodeRow","maxRowHeight","currentRowHeight","codewordsRow","rowDifference","checkedRows","closePreviousCodewordFound","i","e_2","result","rowNumber","e_2_1","e_3","barcodeColumnCount","BarcodeValue_default","barcodeRowCountUpperPart","barcodeRowCountLowerPart","barcodeECLevel","codewords_1","codewords_1_1","rowIndicatorValue","codewordRowNumber","e_3_1","PDF417Common_default","BarcodeMetadata_default","codewordRow","DetectionResultColumn_default","DetectionResultRowIndicatorColumn_default","__values","o","s","m","DetectionResult","barcodeMetadata","boundingBox","unadjustedCodewordCount","PDF417Common_default","previousUnadjustedCount","detectionResultColumn","unadjustedCount","barcodeColumn","codewords","codewordsRow","LRIcodewords","RRIcodewords","codeword","rowIndicatorRowNumber","invalidRowCounts","e_1","_a","previousColumnCodewords","nextColumnCodewords","otherCodewords","otherCodewords_1","otherCodewords_1_1","otherCodeword","e_1_1","rowIndicatorColumn","formatter","Formatter_default","DetectionResult_default","Codeword","startX","endX","bucket","value","rowNumber","Codeword_default","PDF417CodewordDecoder","i","PDF417Common_default","currentSymbol","currentBit","j","size","moduleBitCount","decodedValue","bitCountSum","MathUtils_default","result","bitCountIndex","sumPreviousBits","sampleIndex","bit","bitCountRatios","bestMatchError","Float_default","bestMatch","error","ratioTableRow","k","diff","x","PDF417CodewordDecoder_default","PDF417ResultMetadata","segmentIndex","fileId","optionalData","lastSegment","segmentCount","sender","addressee","fileName","fileSize","checksum","timestamp","PDF417ResultMetadata_default","Long","num","radix","Long_default","__extends","extendStatics","d","b","p","__","NullPointerException","_super","Exception_default","NullPointerException_default","OutputStream","b","off","len","NullPointerException_default","IndexOutOfBoundsException_default","i","OutputStream_default","__extends","extendStatics","d","b","p","__","OutOfMemoryError","_super","Exception_default","OutOfMemoryError_default","__extends","extendStatics","d","b","p","__","ByteArrayOutputStream","_super","size","_this","IllegalArgumentException_default","minCapacity","oldCapacity","newCapacity","OutOfMemoryError_default","Integer_default","Arrays_default","off","len","IndexOutOfBoundsException_default","System_default","out","param","charsetName","hibyte","OutputStream_default","ByteArrayOutputStream_default","Mode","getBigIntConstructor","BigInteger","createBigInt","num","getEXP900","EXP900","nineHundred","i","DecodedBitStreamParser","codewords","ecLevel","result","StringBuilder_default","encoding","CharacterSetECI_default","codeIndex","code","resultMetadata","PDF417ResultMetadata_default","charsetECI","FormatException_default","decoderResult","DecoderResult_default","segmentIndexArray","Integer_default","fileId","optionalFieldsStart","fileName","sender","addressee","segmentCount","timestamp","Long_default","checksum","fileSize","optionalFieldsLength","Arrays_default","textCompactionData","byteCompactionData","index","end","length","subMode","priorToShiftMode","subModeCh","ch","mode","decodedBytes","ByteArrayOutputStream_default","count","value","byteCompactedCodewords","nextCode","j","StringEncoding_default","numericCodewords","resultString","DecodedBitStreamParser_default","__values","o","s","m","PDF417ScanningDecoder","image","imageTopLeft","imageBottomLeft","imageTopRight","imageBottomRight","minCodewordWidth","maxCodewordWidth","boundingBox","BoundingBox_default","leftRowIndicatorColumn","rightRowIndicatorColumn","detectionResult","firstPass","NotFoundException_default","resultBox","maxBarcodeColumn","leftToRight","barcodeColumnCount","barcodeColumn","detectionResultColumn","DetectionResultRowIndicatorColumn_default","DetectionResultColumn_default","startColumn","previousStartColumn","imageRow","codeword","barcodeMetadata","DetectionResult_default","rowIndicatorColumn","e_1","_a","rowHeights","maxRowHeight","missingStartRows","rowHeights_1","rowHeights_1_1","rowHeight","e_1_1","codewords","row","missingEndRows","values","e_2","maxValue","values_1","values_1_1","value","e_2_1","leftBarcodeMetadata","rightBarcodeMetadata","startPoint","i","increment","barcodeMatrix","barcodeMatrix01","numberOfCodewords","calculatedNumberOfCodewords","PDF417Common_default","erasures","ambiguousIndexValuesList","ambiguousIndexesList","column","codewordIndex","ambiguousIndexValues","ecLevel","erasureArray","ambiguousIndexes","ambiguousIndexCount","tries","err","ignored","ChecksumException_default","e_3","e_4","_b","column_1","BarcodeValue_default","_c","_d","_e","_f","rowNumber","e_4_1","e_3_1","e_5","offset","skippedColumns","previousRowCodeword","e_5_1","minColumn","maxColumn","moduleBitCount","endColumn","codewordBitCount","MathUtils_default","tmpCount","decodedValue","PDF417CodewordDecoder_default","Codeword_default","imageColumn","moduleNumber","previousPixelValue","barcodeECLevel","codewordStartColumn","correctedStartColumn","codewordSize","FormatException_default","numECCodewords","correctedErrorsCount","decoderResult","DecodedBitStreamParser_default","result","previousValue","formatter","Formatter_default","barcodeValue","ErrorCorrection_default","PDF417ScanningDecoder_default","__values","o","s","m","PDF417Reader","image","hints","result","NotFoundException_default","ignored","FormatException_default","ChecksumException_default","multiple","e_1","_a","results","detectorResult","Detector_default","_b","_c","points","decoderResult","PDF417ScanningDecoder_default","Result_default","BarcodeFormat_default","ResultMetadataType_default","pdf417ResultMetadata","e_1_1","x","p1","p2","Integer_default","p","PDF417Common_default","PDF417Reader_default","__extends","extendStatics","d","b","p","__","ReaderException","_super","Exception_default","ReaderException_default","__values","o","s","m","MultiFormatReader","image","hints","tryHarder","DecodeHintType_default","formats","readers","addOneDReader","f","BarcodeFormat_default","MultiFormatOneDReader_default","QRCodeReader_default","DataMatrixReader_default","AztecReader_default","PDF417Reader_default","e_1","_a","_b","_c","reader","e_1_1","e_2","ReaderException_default","ex","e_2_1","NotFoundException_default","MultiFormatReader_default","__extends","extendStatics","d","b","p","__","BrowserMultiFormatReader","_super","hints","timeBetweenScansMillis","_this","reader","MultiFormatReader_default","binaryBitmap","BrowserCodeReader","__extends","extendStatics","d","b","p","__","BrowserPDF417Reader","_super","timeBetweenScansMillis","PDF417Reader_default","BrowserCodeReader","__extends","extendStatics","d","b","p","__","BrowserQRCodeReader","_super","timeBetweenScansMillis","QRCodeReader_default","BrowserCodeReader","EncodeHintType","EncodeHintType_default","ReedSolomonEncoder","field","GenericGFPoly_default","degree","cachedGenerators","lastGenerator","d","nextGenerator","toEncode","ecBytes","IllegalArgumentException_default","dataBytes","generator","infoCoefficients","System_default","info","remainder","coefficients","numZeroCoefficients","i","ReedSolomonEncoder_default","MaskUtil","matrix","penalty","array","width","height","y","arrayY","x","value","numPenalties","rowArray","from","to","i","col","numDarkCells","numTotalCells","fivePercentVariances","maskPattern","intermediate","temp","IllegalArgumentException_default","isHorizontal","iLimit","jLimit","numSameBitCells","prevBit","j","bit","MaskUtil_default","__values","o","s","m","ByteMatrix","width","height","bytes","i","x","y","value","e_1","_a","_b","_c","aByte","Arrays_default","e_1_1","other","bytesY","otherBytesY","result","StringBuilder_default","ByteMatrix_default","QRCode","result","StringBuilder_default","value","version","maskPattern","QRCode_default","__extends","extendStatics","d","b","p","__","WriterException","_super","Exception_default","WriterException_default","MatrixUtil","matrix","dataBits","ecLevel","version","maskPattern","typeInfoBits","BitArray_default","i","size","bit","coordinates","x1","y1","x2","y2","versionInfoBits","bitIndex","j","direction","x","y","xx","MaskUtil_default","WriterException_default","value","Integer_default","poly","IllegalArgumentException_default","msbSetInPoly","bits","QRCode_default","typeInfo","bchCode","maskBits","xStart","yStart","patternY","pdpWidth","hspWidth","vspSize","index","length_1","MatrixUtil_default","BlockPair","dataBytes","errorCorrectionBytes","BlockPair_default","__values","o","s","m","Encoder","matrix","MaskUtil_default","content","ecLevel","hints","encoding","hasEncodingHint","EncodeHintType_default","mode","headerBits","BitArray_default","Mode_default","eci","CharacterSetECI_default","dataBits","version","versionNumber","Version_default","bitsNeeded","WriterException_default","headerAndDataBits","numLetters","ecBlocks","numDataBytes","finalBits","qrCode","QRCode_default","dimension","ByteMatrix_default","maskPattern","MatrixUtil_default","provisionalBitsNeeded","provisionalVersion","code","hasNumeric","hasAlphanumeric","i","length_1","c","bytes","StringEncoding_default","length","byte1","bits","minPenalty","bestMaskPattern","penalty","numInputBits","versionNum","numBytes","numEcBytes","totalInputBytes","capacity","numBitsInLastByte","numPaddingBytes","numTotalBytes","numRSBlocks","blockID","numDataBytesInBlock","numECBytesInBlock","numRsBlocksInGroup2","numRsBlocksInGroup1","numTotalBytesInGroup1","numTotalBytesInGroup2","numDataBytesInGroup1","numDataBytesInGroup2","numEcBytesInGroup1","numEcBytesInGroup2","e_1","_a","e_2","_b","dataBytesOffset","maxNumDataBytes","maxNumEcBytes","blocks","numEcBytesInBlock","size","dataBytes","ecBytes","BlockPair_default","result","blocks_1","blocks_1_1","block","e_1_1","blocks_2","blocks_2_1","e_2_1","toEncode","ReedSolomonEncoder_default","GenericGF_default","numBits","singleCharacter","cn","num1","num2","num3","code1","code2","uee","length_2","b","byte2","subtracted","encoded","Encoder_default","BrowserQRCodeSvgWriter","contents","width","height","hints","IllegalArgumentException_default","errorCorrectionLevel","ErrorCorrectionLevel_default","quietZone","EncodeHintType_default","code","Encoder_default","containerElement","svgElement","input","IllegalStateException_default","inputWidth","inputHeight","qrWidth","qrHeight","outputWidth","outputHeight","multiple","leftPadding","topPadding","inputY","outputY","inputX","outputX","svgRectElement","w","h","x","y","rect","QRCodeWriter","contents","format","width","height","hints","IllegalArgumentException_default","BarcodeFormat_default","errorCorrectionLevel","ErrorCorrectionLevel_default","quietZone","EncodeHintType_default","code","Encoder_default","input","IllegalStateException_default","inputWidth","inputHeight","qrWidth","qrHeight","outputWidth","outputHeight","multiple","leftPadding","topPadding","output","BitMatrix_default","inputY","outputY","inputX","outputX","QRCodeWriter_default","MultiFormatWriter","contents","format","width","height","hints","writer","BarcodeFormat_default","QRCodeWriter_default","IllegalArgumentException_default","__extends","extendStatics","d","b","p","__","PlanarYUVLuminanceSource","_super","yuvData","dataWidth","dataHeight","left","top","width","height","reverseHorizontal","_this","IllegalArgumentException_default","y","row","offset","System_default","area","matrix","inputOffset","outputOffset","pixels","yuv","x","grey","rowStart","middle","x1","x2","temp","InvertedLuminanceSource_default","LuminanceSource_default","__extends","extendStatics","d","b","p","__","RGBLuminanceSource","_super","luminances","width","height","dataWidth","dataHeight","left","top","_this","size","luminancesUint8Array","offset","pixel","r","g2","IllegalArgumentException_default","y","row","System_default","area","matrix","inputOffset","outputOffset","InvertedLuminanceSource_default","LuminanceSource_default","__extends","extendStatics","d","b","p","__","Charset","_super","name","CharacterSetECI_default","Charset_default","StandardCharsets","CharacterSetECI_default","StandardCharsets_default","DefaultPlacement","codewords","numcols","numrows","Arrays_default","col","row","bit","pos","v","DefaultPlacement_default","_a","FACTOR_SETS","FACTORS","MODULO_VALUE","static_LOG","LOG","ALOG","p","PAD","LATCH_TO_C40","LATCH_TO_BASE256","UPPER_SHIFT","MACRO_05","MACRO_06","LATCH_TO_ANSIX12","LATCH_TO_TEXT","LATCH_TO_EDIFACT","C40_UNLATCH","X12_UNLATCH","MACRO_05_HEADER","MACRO_06_HEADER","MACRO_TRAILER","ASCII_ENCODATION","C40_ENCODATION","TEXT_ENCODATION","X12_ENCODATION","EDIFACT_ENCODATION","BASE256_ENCODATION","ErrorCorrection","codewords","symbolInfo","sb","StringBuilder_default","blockCount","ecc","dataSizes","errorSizes","i","block","temp","d","pos","e","numECWords","table","FACTOR_SETS","poly","FACTORS","m","k","ALOG","LOG","eccReversed","c","ErrorCorrection_default","ASCIIEncoder","ASCII_ENCODATION","context","n","HighLevelEncoder_default","c","newMode","BASE256_ENCODATION","LATCH_TO_BASE256","C40_ENCODATION","LATCH_TO_C40","X12_ENCODATION","LATCH_TO_ANSIX12","TEXT_ENCODATION","LATCH_TO_TEXT","EDIFACT_ENCODATION","LATCH_TO_EDIFACT","UPPER_SHIFT","digit1","digit2","num","Base256Encoder","BASE256_ENCODATION","context","buffer","StringBuilder_default","c","newMode","HighLevelEncoder_default","ASCII_ENCODATION","dataCount","lengthFieldSize","currentSize","mustPad","StringUtils_default","i","ch","codewordPosition","pseudoRandom","tempVariable","C40Encoder","C40_ENCODATION","context","buffer","StringBuilder_default","lastCharSize","backtrackStartPosition","backtrackBufferLength","c","unwritten","curCodewordCount","available","rest","LATCH_TO_C40","removed","count","newMode","HighLevelEncoder_default","ASCII_ENCODATION","test","C40_UNLATCH","sb","len","v","cw1","cw2","result","EdifactEncoder","EDIFACT_ENCODATION","context","buffer","StringBuilder_default","c","count","test_1","newMode","HighLevelEncoder_default","ASCII_ENCODATION","StringUtils_default","available","remaining","restChars","encoded","endOfSymbolReached","restInAscii","sb","len","c1","c2","c3","c4","v","cw1","cw2","cw3","res","__extends","extendStatics","d","b","p","__","__values","o","s","m","SymbolInfo","rectangular","dataCapacity","errorCodewords","matrixWidth","matrixHeight","dataRegions","rsBlockData","rsBlockError","dataCodewords","shape","minSize","maxSize","fail","e_1","_a","PROD_SYMBOLS_1","PROD_SYMBOLS","PROD_SYMBOLS_1_1","symbol","e_1_1","index","SymbolInfo_default","DataMatrixSymbolInfo144","_super","EncoderContext","msg","msgBinary","c","sb","StringBuilder_default","i","ch","shape","minSize","maxSize","count","codewords","codeword","encoding","len","SymbolInfo_default","__extends","extendStatics","d","b","p","__","X12Encoder","_super","X12_ENCODATION","context","buffer","StringBuilder_default","c","count","newMode","HighLevelEncoder_default","ASCII_ENCODATION","sb","StringUtils_default","available","X12_UNLATCH","C40Encoder","__extends","extendStatics","d","b","p","__","TextEncoder","_super","TEXT_ENCODATION","c","sb","len","C40Encoder","HighLevelEncoder","codewordPosition","pseudoRandom","tempVariable","PAD","msg","shape","minSize","maxSize","forceC40","c40Encoder","C40Encoder","encoders","ASCIIEncoder","TextEncoder","X12Encoder","EdifactEncoder","Base256Encoder","context","EncoderContext","MACRO_05_HEADER","MACRO_TRAILER","MACRO_05","MACRO_06_HEADER","MACRO_06","encodingMode","ASCII_ENCODATION","len","capacity","BASE256_ENCODATION","EDIFACT_ENCODATION","codewords","startpos","currentMode","newMode","X12_ENCODATION","endpos","i","charCounts","charsProcessed","mins","intCharCounts","Arrays_default","min","Integer_default","minCount","TEXT_ENCODATION","C40_ENCODATION","c","tc","f1","f2","f3","f4","f5","val","current","ch","idx","singleCharacter","hex","HighLevelEncoder_default","__values","o","s","m","CharsetEncoder","charset","c","StringEncoding_default","ECIEncoderSet","stringToEncode","priorityCharset","fnc1","e_1","_a","e_2","_b","e_3","_c","name","Charset_default","neededEncoders","StandardCharsets_default","needUnicodeEncoder","i","canEncode","neededEncoders_1","neededEncoders_1_1","encoder","singleCharacter","e_1_1","_d","_e","e_2_1","index","neededEncoders_2","neededEncoders_2_1","e_3_1","priorityEncoderIndexValue","encoderIndex","StringUtils_default","COST_PER_ECI","MinimalECIInput","stringToEncode","priorityCharset","fnc1","encoderSet","ECIEncoderSet","i","c","index","n","start","end","result","StringBuilder_default","edges","to","edge","from","previous","ch","InputEdge","inputLength","j","minimalJ","minimalSize","Integer_default","intsAL","current","bytes","previousEncoderIndex","ints","InputEdge","c","encoderSet","encoderIndex","previous","fnc1","size","previousEncoderIndex","COST_PER_ECI","__extends","extendStatics","d","b","p","__","__values","o","s","m","__read","n","r","ar","e","error","__spread","i","Mode","C40_SHIFT2_CHARS","MinimalEncoder","ch","fnc1","e_1","_a","C40_SHIFT2_CHARS_1","C40_SHIFT2_CHARS_1_1","c40Shift2Char","e_1_1","msg","priorityCharset","shape","macroId","MACRO_05_HEADER","MACRO_TRAILER","MACRO_06_HEADER","input","Input","edges","edge","vertexIndex","from","c40","characterLength","thirdsCount","ci","HighLevelEncoder_default","asciiValue","previous","e_2","Edge","modes","modes_1","modes_1_1","mode","e_2_1","pos","inputLength","j","minimalJ","minimalSize","Integer_default","size","Result","Result","solution","input","size","bytesAL","randomizePostfixLength","randomizeLengths","Mode","Edge","current","i","capacity","bytes","into","codewordPosition","pseudoRandom","tempVariable","startPosition","length","Pad_codeword_position","Pad_codeword_value","pseudo_random_number","temp_variable","mode","fromPosition","characterLength","previous","previousMode","MinimalEncoder","charLen","cnt","lastASCII","from","HighLevelEncoder_default","minimum","e_3","_a","e_4","_b","e_5","_c","_d","__values","_e","e_3_1","_f","_g","e_4_1","_h","_j","e_5_1","c1","c2","result","offset","c3","val16","c","c40","fnc1","setIndex","c40Values","ci","asciiValue","shiftValue","byteIndex","numberOfThirds","pos","endPos","edfValues","j","val24","Input","_super","__extends","stringToEncode","priorityCharset","shape","macroId","_this","MinimalECIInput","DataMatrixWriter","contents","format","width","height","hints","BarcodeFormat_default","shape","minSize","maxSize","requestedShape","EncodeHintType_default","requestedMinSize","requestedMaxSize","encoded","hasCompactionHint","hasGS1FormatHint","charset","hasEncodingHint","Charset_default","MinimalEncoder","hasForceC40Hint","HighLevelEncoder_default","symbolInfo","SymbolInfo_default","codewords","ErrorCorrection_default","placement","DefaultPlacement_default","symbolWidth","symbolHeight","matrix","ByteMatrix_default","matrixY","y","matrixX","x","reqWidth","reqHeight","matrixWidth","matrixHeight","outputWidth","outputHeight","multiple","leftPadding","topPadding","output","BitMatrix_default","inputY","outputY","inputX","outputX","AztecCode","compact","size","layers","codeWords","matrix","AztecCode_default","Collections","item","collection","comparator","Collections_default","Token","previous","Token_default","__extends","extendStatics","d","b","p","__","SimpleToken","_super","previous","value","bitCount","_this","bitArray","text","start","byteCount","Integer_default","Token_default","SimpleToken_default","__extends","extendStatics","d","b","p","__","BinaryShiftToken","_super","previous","binaryShiftStart","binaryShiftByteCount","_this","bitArray","text","i","start","byteCount","SimpleToken_default","BinaryShiftToken_default","addBinaryShift","token","start","byteCount","BinaryShiftToken_default","add","value","bitCount","SimpleToken_default","MODE_NAMES","MODE_UPPER","MODE_LOWER","MODE_DIGIT","MODE_MIXED","MODE_PUNCT","EMPTY_TOKEN","SimpleToken_default","LATCH_TABLE","__values","o","s","m","static_SHIFT_TABLE","SHIFT_TABLE","e_1","_a","SHIFT_TABLE_1","SHIFT_TABLE_1_1","table","Arrays_default","e_1_1","MODE_UPPER","MODE_PUNCT","MODE_LOWER","MODE_MIXED","MODE_DIGIT","__values","o","s","m","State","token","mode","binaryBytes","bitCount","value","latch","LATCH_TABLE","add","latchModeBitCount","MODE_DIGIT","thisModeBitCount","SHIFT_TABLE","index","MODE_PUNCT","MODE_UPPER","deltaBitCount","result","addBinaryShift","other","newModeBitCount","text","e_1","_a","symbols","bitArray","BitArray_default","symbols_1","symbols_1_1","symbol","e_1_1","StringUtils_default","MODE_NAMES","state","EMPTY_TOKEN","State_default","static_CHAR_MAP","CHAR_MAP","spaceCharCode","StringUtils_default","pointCharCode","commaCharCode","MODE_UPPER","zUpperCharCode","aUpperCharCode","c","MODE_LOWER","zLowerCharCode","aLowerCharCode","MODE_DIGIT","nineCharCode","zeroCharCode","mixedTable","i","MODE_MIXED","punctTable","MODE_PUNCT","Arrays_default","__values","o","s","m","HighLevelEncoder","text","spaceCharCode","StringUtils_default","lineBreakCharCode","states","Collections_default","State_default","index","pairCode","nextChar","minState","a","b","e_1","_a","result","states_1","states_1_1","state","e_1_1","ch","charInCurrentTable","CHAR_MAP","stateNoBinary","mode","MODE_PUNCT","charInMode","MODE_DIGIT","latchState","SHIFT_TABLE","shiftState","binaryState","e_2","states_2","states_2_1","e_2_1","digitState","e_3","e_4","_b","states_3","states_3_1","newState","add","_loop_1","oldState","x","result_1","result_1_1","state_1","e_4_1","e_3_1","HighLevelEncoder_default","__values","o","s","m","Encoder","data","minECCPercent","userSpecifiedLayers","bits","HighLevelEncoder_default","eccBits","Integer_default","totalSizeBits","compact","layers","totalBitsInLayer","wordSize","stuffedBits","IllegalArgumentException_default","StringUtils_default","usableBitsInLayers","i","messageBits","messageSizeInWords","modeMessage","baseMatrixSize","alignmentMap","matrixSize","origCenter","center","newOffset","matrix","BitMatrix_default","rowOffset","rowSize","j","columnOffset","k","aztec","AztecCode_default","size","BitArray_default","offset","bitArray","totalBits","e_1","_a","rs","ReedSolomonEncoder_default","totalWords","messageWords","startPad","_b","_c","messageWord","e_1_1","message","n","value","GenericGF_default","out","mask","word","Encoder_default","AztecWriter","contents","format","width","height","hints","charset","StandardCharsets_default","eccPercent","Encoder_default","layers","EncodeHintType_default","Charset_default","Integer_default","BarcodeFormat_default","IllegalArgumentException_default","aztec","StringUtils_default","code","input","IllegalStateException_default","inputWidth","inputHeight","outputWidth","outputHeight","multiple","leftPadding","topPadding","output","BitMatrix_default","inputY","outputY","inputX","outputX","__extends","extendStatics","d","b","p","__","HTMLCanvasElementLuminanceSource","_super","canvas","_this","canvasCtx","imageData","imageBuffer","width","height","grayscaleBuffer","i","j","length_1","gray","alpha","pixelR","pixelG","pixelB","y","row","IllegalArgumentException_default","start","left","top","InvertedLuminanceSource_default","tempCanvasElement","angle","angleRadians","newWidth","newHeight","tempContext","LuminanceSource_default","hasNavigator","isMediaDevicesSupported","canEnumerateDevices","__assign","t","s","i","n","p","__awaiter","thisArg","_arguments","P","generator","adopt","value","resolve","reject","fulfilled","step","e","rejected","result","__generator","body","_","f","y","g","verb","v","op","__values","o","m","defaultOptions","BrowserCodeReader","reader","hints","options","formats","DecodeHintType_default","videoElement","stream","track","onOff","_a","params","e_1","tracks","tracks_1","tracks_1_1","e_1_1","capabilities","err","video","mediaElementId","type","mediaElement","ArgumentException_default","videoThingy","imageSource","imageElement","videoElem","img","canvas","luminanceSource","HTMLCanvasElementLuminanceSource","hybridBinarizer","HybridBinarizer_default","BinaryBitmap_default","canvasElementContext","srcElement","canvasElement","width","height","error_1","ctx","devices","videoDevices","devices_1","devices_1_1","device","kind","deviceId","label","groupId","videoDevice","e_2","_b","hasNavigator","canEnumerateDevices","e_2_1","x","mediaStream","element","timeout","isPlaying","timeoutId","videoCanPlayListener","hasPlayed","preview","previewPlayTimeout","imageLoadedListener","callbackFn","binaryBitmap","source","url","constraints","previewElem","error_2","finalizeCallback","originalControls","videoTracks","controls","isTorchAvailable","torchTrack_1","switchTorch_1","_this","trackFilter","tracks_2","tracks_2_1","e_3_1","e_3","videoConstraints","videoSource","receivedPreview","task","retryIfNotFound","retryIfChecksumError","retryIfFormatError","error","NotFoundException_default","ChecksumException_default","FormatException_default","captureCanvas","captureCanvasContext","disposeCanvas","stopScan","lastTimeoutId","stop","loop","isChecksumError","isFormatError","isNotFound","isImageLoaded","__extends","extendStatics","d","b","p","__","BrowserAztecCodeReader","_super","hints","options","AztecReader_default","BrowserCodeReader","__extends","extendStatics","d","b","p","__","BrowserMultiFormatOneDReader","_super","hints","options","MultiFormatOneDReader_default","BrowserCodeReader","__extends","extendStatics","d","b","p","__","BrowserDatamatrixCodeReader","_super","hints","options","DataMatrixReader_default","BrowserCodeReader","__extends","extendStatics","d","b","p","__","BrowserMultiFormatReader","_super","hints","options","_this","reader","MultiFormatReader_default","formats","DecodeHintType_default","binaryBitmap","BrowserCodeReader","__extends","extendStatics","d","b","p","__","BrowserPDF417Reader","_super","hints","options","PDF417Reader_default","BrowserCodeReader","__extends","extendStatics","d","b","p","__","BrowserQRCodeReader","_super","hints","options","QRCodeReader_default","BrowserCodeReader","svgNs","BrowserCodeSvgWriter","containerElement","container","contents","width","height","hints","IllegalArgumentException_default","quietZone","EncodeHintType_default","code","w","h","el","x","y","errorCorrectionLevel","ErrorCorrectionLevel_default","correctionStr","Encoder_default","input","IllegalStateException_default","inputWidth","inputHeight","qrWidth","qrHeight","outputWidth","outputHeight","multiple","leftPadding","topPadding","svgElement","placeholder","inputY","outputY","inputX","outputX","svgRectElement","svgNs","BrowserQRCodeSvgWriter","contents","width","height","hints","IllegalArgumentException_default","errorCorrectionLevel","ErrorCorrectionLevel_default","quietZone","EncodeHintType_default","correctionStr","code","Encoder_default","containerElement","targetEl","svgElement","input","IllegalStateException_default","inputWidth","inputHeight","qrWidth","qrHeight","outputWidth","outputHeight","multiple","leftPadding","topPadding","inputY","outputY","inputX","outputX","svgRectElement","w","h","x","y","rect","_c0","BrowserMultiFormatContinuousReader","BrowserMultiFormatReader","deviceId","previewEl","__async","scan$","BehaviorSubject","ctrls","result","error","errorName","NotFoundException_default","ChecksumException_default","FormatException_default","__spreadProps","__spreadValues","e","ZXingScannerComponent","device","DecodeHintType_default","input","formats","f","hints","constraints","controls","state","onOff","enabled","enable","EventEmitter","BarcodeFormat_default","stream","permission","err","t","hasPermission","devices","BrowserCodeReader","prevDevice","hasDevices","matcher","label","reason","format","options","videoElement","codeReader","scanStream","next","x","complete","hasTorchControl","__ngFactoryType__","ɵɵdefineComponent","rf","ctx","ɵɵviewQuery","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵstyleProp","ɵɵproperty","ɵɵsanitizeUrl","ZXingScannerModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","FormsModule","ModalHelperService","constructor","translateService","confirm","title","content","executeOnOk","executeOnCancel","dialog","DialogUtility","instant","okButton","text","click","close","cancelButton","showCloseIcon","closeOnEscape","ɵɵinject","TranslateService","factory","ɵfac","EnumFilterService","createEnumFilterArray","enumType","fieldName","omitValues","arr","enumMember","isNaN","find","v","obj","push","factory","ɵfac","HttpLoaderFactory","httpClient","TranslateHttpLoader","BaseModule","provide","HTTP_INTERCEPTORS","useClass","AuthInterceptor","multi","API_BASE_URL","useValue","environment","apiServerUrl","HttpClient","HttpJsonUtilities","HttpConfigService","TranslateService","TranslatePipe","ActivityService","LoginProxy","AppErrorMessagesService","EnumTranslationService","ModalHelperService","ClientService","TranslationLoaderResolver","EnumFilterService","AccountClient","ClientClient","DashboardClient","ParkerClient","ParkerCompanyClient","UserControlPlateClient","UserAccountClient","ZoneClient","ZoneDeviceClient","PageService","ToolbarService","ColumnChooserService","FilterService","SortService","EditService","CommandColumnService","SearchService","ResizeService","provideHttpClient","withInterceptorsFromDi","imports","CommonModule","RouterModule","ReactiveFormsModule","TranslateModule","forRoot","loader","TranslateLoader","useFactory","HttpLoaderFactory","deps","FontAwesomeModule","FormsModule","NgIdleKeepaliveModule","LightboxModule","ZXingScannerModule","HttpClientModule","ParkerOffenseFilterType","DATE_HELPER_DEFAULT_TIME_ZONE","DATE_HELPER_DATE_FORMAT_ISO","DATE_HELPER_TIME_FORMAT","NON_ZULU_ISO_DATE_TIME_FORMAT","DateHelper","setDateTimeTo1970","date","DateTime","local","hour","minute","setDateTimeTo1970FromDuration","duration","plus","getDateTimeStart1970","fromISO","getTimeOfDayDurationFromJsDate","dateTime","fromJSDate","diff","startOf","getDateTimeFromJsDateInTimeZone","timeZone","zone","migrateTimeZone","zonelessTime","toUTC","toFormat","toString","FilterUtil","FindAllFiltersWithSpecificField","fieldName","filters","resFilters","forEach","f","subFilters","FindAllFiltersWithSpecificFieldInFilter","length","push","filter","isComplex","predicates","field","toLocaleLowerCase","correctDateTimeFilters","timeZone","value","DateHelper","migrateTimeZone","DateTime","fromISO","replaceFieldNameInfilters","oldFieldName","newFieldName","ParkingSessionService","ShowInactiveService","constructor","parkingClient","clientService","getData","skip","take","filters","sortBy","sortDirection","SortDirection","Descending","showInactive","push","FilterDTO","isComplex","field","operator","FilterOperator","Equal","value","addFilters","FilterUtil","correctDateTimeFilters","DATE_HELPER_DEFAULT_TIME_ZONE","searchParkingSessions","selectedClient","id","pipe","tap","result","items","forEach","item","hasOnlyCancelledPenalties","parkerRegistrations","registration","penaltyIssued","penaltyState","PenaltyState","Cancelled","calculationRoadmap","replace","addRecord","data","Error","updateRecord","deleteRecord","length","offenseType","ParkerOffenseFilterType","Parker","Offense","ParkingRangerEntry","zone","toString","present","ɵɵinject","ParkingClient","ClientService","factory","ɵfac","providedIn","controlPlateField","countryCodeField","zoneNameField","zoneDeviceNameField","ParkerRegistrationService","ShowInactiveService","constructor","parkerRegistrationClient","clientService","getData","skip","take","filters","sortBy","sortDirection","SortDirection","Descending","adjustControlPlateFilters","adjustCountryCodeFilters","adjustZoneNameFilters","adjustZoneDeviceNameFilters","showInactive","push","FilterDTO","isComplex","field","operator","FilterOperator","Equal","value","FilterUtil","correctDateTimeFilters","DATE_HELPER_DEFAULT_TIME_ZONE","addFiltersByOffenseType","searchRegistrations","selectedClient","id","addRecord","data","Error","updateRecord","deleteRecord","length","offenseType","ParkerOffenseFilterType","Parker","NotEqual","ParkerRegistrationOffense","NoOffense","toString","Offense","ParkingRangerEntry","ParkerRegistrationType","registeredByFilters","filter","f","adjustControlPlateFilter","registeredByFilter","condition","FilterCondition","Or","predicates","undefined","countryCodeFilters","adjustCountryCodeFilter","countryCodeFilter","replaceFieldNameInfilters","ɵɵinject","ParkerRegistrationClient","ClientService","factory","ɵfac","ZoneDamageService","ShowInactiveService","constructor","zoneDamageClient","clientService","toastService","filters","getData","skip","take","sortBy","sortDirection","showInactive","push","FilterDTO","isComplex","field","operator","FilterOperator","Equal","value","FilterUtil","correctDateTimeFilters","DATE_HELPER_DEFAULT_TIME_ZONE","selectedClient","searchDamages","id","of","addRecord","data","addDamage","pipe","tap","showSuccess","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","updateRecord","updateDamage","deleteRecord","deleteDamage","ɵɵinject","ZoneDamageClient","ClientService","ToastService","factory","ɵfac","zipField","ParkerAdministrationService","ShowInactiveService","constructor","parkerClient","parkingSubscriptionClient","clientService","toastService","spinnerService","subscriptionAssignmentFieldName","filters","parkerIdToFilter","numTotalRecordsFound","parkingSubscriptions","_lastFiltersFromGrid","getData","skip","take","sortBy","sortDirection","FilterUtil","FindAllFiltersWithSpecificField","forEach","f","field","selectedClient","of","existingFilterIndex","findIndex","showInactive","splice","push","FilterDTO","isComplex","operator","FilterOperator","Equal","value","fieldName","toLocaleLowerCase","replaceSubscriptionFieldInFilter","subscriptionAssignmentFilters","filter","toString","searchParkers","id","pipe","tap","result","items","item","costCenter","title","company","name","totalNumberOfItems","addRecord","data","clientId","createParker","showSuccess","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","updateRecord","updateParker","updateParkers","forkJoin","map","deleteRecord","deleteParker","initializeParkerToUserLink","parkerId","showSpinner","unlinkUserFromParker","unlinkParkerFromUser","loadSubscriptions","NotEqual","ParkingSubscriptionType","ForeignParkerSubscription","searchParkingSubscriptions","SortDirection","Descending","subscription","cnt","s","loadPagedParkersForFunctions","Ascending","oldFieldName","newFieldName","oldFieldNameLower","find","predicates","ɵɵinject","ParkerClient","ParkingSubscriptionClient","ClientService","ToastService","SpinnerService","factory","ɵfac","ClientAdministrationService","ShowInactiveService","constructor","clientAdministrationClient","toastService","clientService","getData","skip","take","filters","sortBy","sortDirection","showInactive","push","FilterDTO","isComplex","field","operator","FilterOperator","Equal","value","searchClients","pipe","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","updateRecord","data","updateClient","tap","client","selectedClient","id","clients","showSuccess","addRecord","createClient","deleteRecord","deleteClient","ɵɵinject","ClientClient","ToastService","ClientService","factory","ɵfac","CompanyAdministrationService","ShowInactiveService","constructor","clientService","parkerCompanyClient","toastService","getData","skip","take","filters","sortBy","sortDirection","selectedClient","showInactive","push","FilterDTO","isComplex","field","operator","FilterOperator","Equal","value","searchParkerCompanies","id","of","addRecord","data","clientId","createParkerCompany","pipe","tap","showSuccess","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","updateRecord","updateParkerCompany","deleteRecord","deleteParkerCompany","ɵɵinject","ClientService","ParkerCompanyClient","ToastService","factory","ɵfac","ParkingRangerSessionsService","ShowInactiveService","constructor","parkingRangerSessionClient","toastService","sortDirection","SortDirection","Ascending","getData","skip","take","filters","sortBy","Error","addRecord","data","updateRecord","deleteRecord","id","getParkingRangerSessions","clientId","startTime","endTime","push","FilterDTO","isComplex","field","operator","FilterOperator","GreaterThanOrEqual","value","LessThanOrEqual","searchSessions","undefined","pipe","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","getParkingRangerSession","selectedSessionId","getSessionFullyExpanded","ɵɵinject","ParkingRangerSessionClient","ToastService","factory","ɵfac","TagsPerParkerReportService","ShowInactiveService","constructor","tagsPerParkerReportClient","clientService","parkerClient","parkerCompanyClient","toastService","filters","getData","skip","take","sortBy","sortDirection","SortDirection","Descending","searchTagsPerParkerReportData","selectedClient","id","pipe","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","addRecord","data","Error","updateRecord","deleteRecord","exportReport","tagsPerParkerReportParameterDTO","saveOptions","exportTagsPerParkerReport","exportType","saveReport","searchParkerDropdownValues","searchText","selectedCompanyId","filterDTOs","push","FilterDTO","isComplex","condition","FilterCondition","Or","predicates","field","operator","FilterOperator","Contains","value","Equal","searchParkers","Ascending","searchCompanyDropdownValues","searchParkerCompanies","ɵɵinject","TagsPerParkerReportClient","ClientService","ParkerClient","ParkerCompanyClient","ToastService","factory","ɵfac","ParkerRegistrationReportService","ShowInactiveService","constructor","parkerRegistrationReportClient","clientService","toastService","parameters","ParkerRegistrationsReportParameterDTO","getData","skip","take","filters","sortBy","sortDirection","SortDirection","Descending","searchParkerRegistrationsReportData","selectedClient","id","pipe","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","addRecord","data","Error","updateRecord","deleteRecord","exportReport","parkerRegistrationsReportParameterDTO","saveOptions","exportParkerRegistrationsReport","exportType","saveReport","ɵɵinject","ParkerRegistrationReportClient","ClientService","ToastService","factory","ɵfac","FalseRecordingReportService","ShowInactiveService","constructor","falseRecordingsReportClient","zoneClient","userAccountClient","clientService","toastService","falseRecordingsReportParameters","FalseRecordingsReportParameterDTO","getData","skip","take","filters","sortBy","sortDirection","SortDirection","Descending","searchFalseRecordingsReportData","selectedClient","id","pipe","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","addRecord","data","Error","updateRecord","deleteRecord","exportReport","falseRecordingsReportParameterDTO","saveOptions","exportFalseRecordingsReport","exportType","saveReport","searchZones","searchText","filterDTOs","push","FilterDTO","isComplex","field","operator","FilterOperator","Contains","value","Ascending","searchAgents","condition","FilterCondition","Or","predicates","searchUsers","ɵɵinject","FalseRecordingsReportClient","ZoneClient","UserAccountClient","ClientService","ToastService","factory","ɵfac","ParkerTurnoverReportService","ShowInactiveService","constructor","parkerClient","zoneClient","clientService","toastService","parkerTurnoverReportClient","totalAmount","searchParameters","ParkerTurnoverReportParameterDTO","getData","skip","take","filters","sortBy","sortDirection","SortDirection","Descending","searchParkerTurnoverReportData","selectedClient","id","pipe","tap","pagedResult","items","reduce","prev","current","amount","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","addRecord","data","Error","updateRecord","deleteRecord","exportReport","parkerTurnoverReportParameterDTO","saveOptions","exportParkerTurnoverReport","exportType","saveReport","getReportSummary","summarizeParkerTurnoverReport","searchZones","searchText","filterDTOs","push","FilterDTO","isComplex","field","operator","FilterOperator","Contains","value","Ascending","searchParkerDropdownValues","condition","FilterCondition","Or","predicates","searchParkers","ɵɵinject","ParkerClient","ZoneClient","ClientService","ToastService","ParkerTurnoverReportClient","factory","ɵfac","ParkerExtractReportService","ShowInactiveService","constructor","parkerClient","clientService","toastService","parkerExtractReportClient","reportParameters","getData","skip","take","filters","sortBy","sortDirection","of","PagedResultDTOOfParkerExtractReportDTO","items","totalNumberOfItems","clientId","selectedClient","id","searchParkerExtractReportData","pipe","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","addRecord","data","Error","updateRecord","deleteRecord","exportReport","parkerExtractReportParameter","saveOptions","exportParkerExtractReport","exportType","saveReport","getReportSummary","summary","summarizeParkerExtractReport","searchParkerDropdownValues","searchText","filterDTOs","push","FilterDTO","isComplex","condition","FilterCondition","Or","predicates","field","operator","FilterOperator","Contains","value","searchParkers","SortDirection","Ascending","ɵɵinject","ParkerClient","ClientService","ToastService","ParkerExtractReportClient","factory","ɵfac","DeviceStatusReportService","ShowInactiveService","constructor","deviceStatusReportClient","zoneClient","clientService","toastService","filters","deviceIpAddresses","Map","getData","skip","take","sortBy","sortDirection","SortDirection","Ascending","searchDeviceStatusReportData","selectedClient","id","pipe","tap","result","clear","items","forEach","device","ipAddress","ipAddressParam","parameters","find","parameter","ident","includes","set","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","addRecord","data","Error","updateRecord","deleteRecord","exportReport","deviceStatusReportParameterDTO","saveOptions","exportDeviceStatusReport","exportType","saveReport","searchZones","searchText","filterDTOs","push","FilterDTO","isComplex","field","operator","FilterOperator","Contains","value","ɵɵinject","DeviceStatusReportClient","ZoneClient","ClientService","ToastService","factory","ɵfac","AutomaticParkingReportService","ShowInactiveService","constructor","automaticParkingReportClient","toastService","clientService","parameters","AutomaticParkingReportParameterDTO","getData","skip","take","filters","sortBy","sortDirection","searchAutomaticParkingReportData","selectedClient","id","pipe","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","addRecord","data","Error","updateRecord","deleteRecord","exportReport","automaticParkingReportParameterDTO","saveOptions","exportAutomaticParkingReport","saveReport","ɵɵinject","AutomaticParkingReportClient","ToastService","ClientService","factory","ɵfac","PaymentReportService","ShowInactiveService","constructor","paymentReportClient","toastService","parameters","PaymentReportParameterDTO","getData","skip","take","filters","sortBy","sortDirection","searchPaymentReportData","pipe","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","addRecord","data","Error","updateRecord","deleteRecord","id","exportReport","paymentReportParameterDTO","saveOptions","exportPaymentReport","saveReport","ɵɵinject","PaymentReportClient","ToastService","factory","ɵfac","ZoneDetailsService","constructor","zoneClient","toastService","spinnerService","isBusy","reset","getZones","clientId","filters","skip","take","sortBy","sortDirection","showSpinner","searchZones","pipe","tap","pagedResult","totalNumberOfZones","totalNumberOfItems","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","of","getZone","zoneId","loadedZone","zone","ZoneDTO","createZone","createZoneDTO","showSuccess","updateZone","updateZoneDTO","handleErrorResponse","deleteZone","id","setCurrentParkerCount","parkerCount","response","errorObject","JSON","parse","ErrorCode","ɵɵinject","ZoneClient","ToastService","SpinnerService","factory","ɵfac","ZoneDeviceDetailsService","constructor","zoneDeviceClient","toastService","spinnerService","userAccountClient","isBusy","reset","initializeServiceData","proxyUsers","loadAvailableDeviceSpecifications","iif","allSpecs","of","getAvailableDeviceSpecifications","pipe","tap","specs","getZoneDeviceInitialStructure","deviceType","brand","getZoneDevice","id","showSpinner","getDevice","catchError","error","showError","createZoneDevice","device","createDevice","showSuccess","updateZoneDevice","updateDevice","deleteZoneDevice","deleteDevice","isDeviceProxyDriven","find","spec","execLocation","ExecutionLocation","RunOnProxy","getProxyUsers","clientId","proxyUsersClientId","loadProxyUsers","filters","FilterDTO","isComplex","field","operator","FilterOperator","Equal","value","Role","Proxy","toString","searchUsers","SortDirection","Ascending","map","result","items","item","userId","name","userName","ɵɵinject","ZoneDeviceClient","ToastService","SpinnerService","UserAccountClient","factory","ɵfac","providedIn","TariffDetailsService","constructor","parkingTariffClient","toastService","spinnerService","isBusy","reset","getTariff","tariffId","loadedTariff","showSpinner","getParkingTariff","pipe","tap","tariff","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","createParkingTariff","createTariff","showSuccess","updateParkingTariff","deleteParkingTariff","ɵɵinject","ParkingTariffClient","ToastService","SpinnerService","factory","ɵfac","SubscriptionDetailsService","constructor","parkingSubscriptionClient","toastService","spinnerService","isBusy","reset","getSubscription","subscriptionId","loadedSubscription","showSpinner","getParkingSubscription","pipe","tap","subscription","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","isSubscriptionUsedInSessions","isParkingSubscriptionUsedInSessions","createParkingSubscription","createSubscription","showSuccess","response","updateParkingSubscription","updateSubscription","deleteSubscription","deleteParkingSubscription","ɵɵinject","ParkingSubscriptionClient","ToastService","SpinnerService","factory","ɵfac","UserExtractReportService","ShowInactiveService","constructor","toastService","userExtractReportClient","reportParameters","getData","skip","take","filters","sortBy","sortDirection","searchUserExtractReportData","pipe","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","of","PagedResultDTOOfUserExtractReportDTO","items","totalNumberOfItems","addRecord","data","Error","updateRecord","deleteRecord","id","exportReport","parameters","saveOptions","exportUserExtractReport","exportType","saveReport","getReportSummary","summarizeUserExtractReport","ɵɵinject","ToastService","UserExtractReportClient","factory","ɵfac","FinanceClientPriceModelService","constructor","priceModelClient","spinnerService","toastService","getPriceModel","clientId","showSpinner","getFinanceClientPriceModels","pipe","tap","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","updatePriceModel","data","updateFinanceClientPriceModel","showSuccess","createPriceModel","addFinanceClientPriceModel","getPriceModelMasterData","getAllPriceModels","deletePriceModel","priceModelId","deleteFinanceClientPriceModel","ɵɵinject","FinanceClientPriceModelClient","SpinnerService","ToastService","factory","ɵfac","providedIn","DomainModule","ClientAdministrationService","CompanyAdministrationService","ZoneDetailsService","ZoneDeviceDetailsService","ParkerRegistrationClient","ParkerRegistrationService","ParkerAdministrationService","ParkerTagClient","ZoneDamageService","ZoneDamageClient","ParkingClient","ParkingSessionService","ParkingRangerSessionClient","ParkingTariffClient","ParkingSubscriptionClient","ParkingRangerSessionsService","TariffDetailsService","SubscriptionDetailsService","TagsPerParkerReportService","ParkerRegistrationReportService","FalseRecordingReportService","ParkerTurnoverReportService","AutomaticParkingReportService","PaymentReportService","TagsPerParkerReportClient","ParkerRegistrationReportClient","FalseRecordingsReportClient","ParkerTurnoverReportClient","ParkerExtractReportClient","ParkerExtractReportService","UserExtractReportClient","UserExtractReportService","DeviceStatusReportClient","AutomaticParkingReportClient","PaymentReportClient","SavedReportClient","DeviceStatusReportService","AutomaticParkingScheduleClient","ConfigBasedAdminClient","TagMasterClient","ParkingCardClient","FinanceClientPriceModelClient","FinanceClientPriceModelService","SfRequestTypes","Paging","Refresh","Sorting","Selection","Filtering","Searching","RowDragAndDrop","Reorder","Grouping","Ungrouping","BatchSave","VirtualScroll","Print","BeginEdit","Save","Delete","Cancel","Add","FilterBeforeOpen","FilterChoiceRequest","FilterAfterOpen","FilterSearchBegin","ColumnState","InfiniteScroll","StringFilterRequest","SfAction","Edit","SfCommandButtonType","None","SfFilterTypes","FilterBar","Excel","Menu","CheckBox","GridConstantsFactory","DEFAULT_PAGE_SIZE","createStandardPageSettings","pageSize","pageCount","pageSizes","createStandardDataStateSettings","skip","take","createStandardEditSettings","allowEditing","allowAdding","allowDeleting","mode","showDeleteConfirmDialog","createStandardGridCommands","type","SfCommandButtonType","Edit","buttonOption","cssClass","iconCss","Delete","createStandardToolBarButtons","createStandardFilterSettings","SfFilterTypes","Menu","createCheckBoxFilter","CheckBox","createDateFilter","params","format","fakeHttpRequest","getResponseHeader","arg","AvpCustomAdaptor","CustomDataAdaptor","constructor","service","spinnerService","ignoreSearch","options","updateRecord","bind","addRecord","getData","deleteRecord","toJSON","processResponse","data","ds","query","xhr","request","changes","args","JSON","parse","showSpinner","value","subscribe","next","response","onSuccess","httpRequest","fakeHttpRequest","error","onFailure","key","filters","where","length","handleWhereData","search","filter","handleSearchData","push","undefined","sortBy","sortDirection","sorted","StringHelper","capitalizeFirstLetter","name","direction","SortDirection","Descending","Ascending","skip","take","pagedItems","res","requiresCounts","result","items","count","totalNumberOfItems","whereData","forEach","predicate","addNonComplexFilter","addComplexFilter","searchData","fields","operator","getFilterOperator","FilterDTO","isComplex","condition","FilterCondition","Or","predicates","f","field","capitalizeFirstLettersOfPropertyChain","filterData","filterPredicates","getCondition","FilterOperator","Empty","NotEmpty","toString","StartsWith","EndsWith","Contains","Equal","NotEqual","GreaterThan","GreaterThanOrEqual","LessThan","LessThanOrEqual","DoesNotStartWith","DoesNotEndWith","DoesNotContain","And","IdProvider","idCounter","constructor","getNextId","ɵɵelementContainerStart","ɵɵelement","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","ctx_r1","id","fieldsEnum","item_r1","value","ɵɵpureFunction2","_c1","fixedWidth","inline","ɵɵtextInterpolate","ɵɵpipeBind1","text","ButtonGroupComponent","constructor","formBuilder","enumTranslationService","hide","translateKey","IdProvider","getNextId","subscriptions","onChange","onTouched","form","group","formValue","push","valueChanges","subscribe","ngOnChanges","changes","keyList","getKeys","ngOnInit","ngOnDestroy","forEach","s","unsubscribe","writeValue","controls","setValue","registerOnChange","fn","registerOnTouched","setDisabledState","isDisabled","disabled","disable","enable","validate","_","translateNumericEnum","filter","item","some","e","ɵɵdirectiveInject","UntypedFormBuilder","EnumTranslationService","selectors","inputs","standalone","features","ɵɵProvidersFeature","provide","NG_VALUE_ACCESSOR","useExisting","forwardRef","multi","NG_VALIDATORS","ɵɵNgOnChangesFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","ButtonGroupComponent_ng_container_1_Template","ɵɵpureFunction1","_c0","ReactiveFormsModule","DefaultValueAccessor","RadioControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","NgClass","NgFor","TranslateModule","TranslatePipe","styles","YesNoGroupButtonService","getNextId","iterationNumber","constructor","factory","ɵfac","providedIn","YesNoGroupButtonComponent","constructor","formBuilder","service","yesLabel","noLabel","allowNull","id","IdProvider","getNextId","subscriptions","onChange","onTouched","form","group","formValue","control","push","valueChanges","subscribe","value","ngOnInit","ngOnDestroy","forEach","s","unsubscribe","writeValue","controls","setValue","registerOnChange","fn","registerOnTouched","setDisabledState","isDisabled","disabled","disable","enable","validate","_","ɵɵdirectiveInject","FormBuilder","YesNoGroupButtonService","selectors","inputs","standalone","features","ɵɵProvidersFeature","provide","NG_VALUE_ACCESSOR","useExisting","forwardRef","multi","NG_VALIDATORS","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵelement","ɵɵtext","ɵɵelementEnd","ɵɵproperty","ɵɵpureFunction1","_c0","ɵɵadvance","ɵɵpropertyInterpolate1","ɵɵtextInterpolate","ɵɵpipeBind1","ReactiveFormsModule","DefaultValueAccessor","RadioControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","NgClass","TranslateModule","TranslatePipe","styles","ReportsService","ShowInactiveService","constructor","savedReportClient","clientService","reportFilter","companyDropdownValues","tariffDropdownValues","subscriptionDropdownValues","zoneDropdownValues","parkerDropdownValues","getData","skip","take","filters","sortBy","sortDirection","selectedClientId","selectedClient","id","FilterUtil","correctDateTimeFilters","DATE_HELPER_DEFAULT_TIME_ZONE","correctCreatedByFilters","searchSavedReports","SortDirection","Ascending","pipe","tap","pagedItems","items","forEach","item","createdByName","createdBy","firstname","lastname","getUserReports","addRecord","data","deleteRecord","updateRecord","getSavedReportFile","reportId","clientId","FindAllFiltersWithSpecificField","f","filterOperator","operator","values","value","split","length","push","condition","FilterCondition","Or","isComplex","field","predicates","FilterDTO","ɵɵinject","SavedReportClient","ClientService","factory","ɵfac","providedIn","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵelementStart","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵtextInterpolate","ɵɵproperty","ctx_r1","ReportFileType","ɵɵtemplate","ReportsFooterComponent_ng_template_19_div_7_Template","saveForm","hideFileTypeSelector","ɵɵlistener","ɵɵrestoreView","_r3","ɵɵnextContext","ɵɵresetView","closeSave","saveReport","valid","ReportsFooterComponent","value","_hideFileTypeSelector","get","setValidators","Validators","required","constructor","reportsService","router","fb","saveClicked","EventEmitter","now","Date","group","exportType","ngOnInit","cancel","navigate","reportsRoute","openSaveDialog","saveDialog","show","emit","hide","downloadFile","savedReportFileDTO","createInvisibleDownloadLink","click","source","contentBase64","link","document","createElement","fileExtension","getFileExtension","fileType","href","download","reportName","CSV","ɵɵdirectiveInject","ReportsService","Router","UntypedFormBuilder","selectors","viewQuery","rf","ctx","ɵɵprojection","i0","_r1","ReportsFooterComponent_ng_template_17_Template","ɵɵtemplateRefExtractor","ReportsFooterComponent_ng_template_19_Template","ReportsFooterComponent_ng_template_21_Template","DialogModule","DialogComponent","ReactiveFormsModule","ɵNgNoValidate","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","YesNoGroupButtonComponent","NgIf","ButtonGroupComponent","TranslateModule","TranslatePipe","_c0","_c1","CalendarComponent_1","outputs$5","twoWays$4","CalendarComponent","CalendarComponent_1","Calendar","ngEle","srenderer","viewContainerRef","injector","cdr","mod","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","rf","ctx","__decorate","ComponentMixins","DatePickerComponent_1","outputs$4","twoWays$3","DatePickerComponent","DatePickerComponent_1","DatePicker","ngEle","srenderer","viewContainerRef","injector","cdr","mod","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","rf","ctx","__decorate","ComponentMixins","DatePickerModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","MaskedDateTimeService","MaskedDateTime","TimePickerComponent_1","outputs$3","twoWays$2","TimePickerComponent","TimePickerComponent_1","TimePicker","ngEle","srenderer","viewContainerRef","injector","cdr","mod","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","rf","ctx","__decorate","ComponentMixins","TimePickerModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","input","outputs$2","PresetDirective","ComplexBase","viewContainerRef","setValue","__ngFactoryType__","ɵɵdirectiveInject","ViewContainerRef","ɵɵdefineDirective","ɵɵInheritDefinitionFeature","PresetsDirective","ArrayBase","rf","ctx","dirIndex","ɵɵcontentQuery","_t","ɵɵqueryRefresh","ɵɵloadQuery","DateRangePickerComponent_1","outputs$1","twoWays$1","DateRangePickerComponent","DateRangePickerComponent_1","DateRangePicker","ngEle","srenderer","viewContainerRef","injector","cdr","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","_c0","_c1","PresetsDirective","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","__decorate","Template","ComponentMixins","DateTimePickerComponent_1","outputs","twoWays","DateTimePickerComponent","DateTimePickerComponent_1","DateTimePicker","ngEle","srenderer","viewContainerRef","injector","cdr","mod","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","rf","ctx","__decorate","ComponentMixins","DateTimePickerModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","AutocompleteCustomAdaptor","CustomDataAdaptor","constructor","getDataFunction","options","getData","bind","args","data","JSON","parse","onFailure","where","value","subscribe","result","onSuccess","httpRequest","fakeHttpRequest","error","_c0","_c1","_c2","_c3","_c4","_c5","_c6","DropDownListComponent_1","outputs$6","twoWays$6","DropDownListComponent","DropDownListComponent_1","DropDownList","ngEle","srenderer","viewContainerRef","injector","cdr","mod","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","_c0","_c1","_c2","_c3","_c4","_c5","_c6","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","__decorate","Template","ComponentMixins","DropDownListModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","ComboBoxComponent_1","outputs$5","twoWays$5","ComboBoxComponent","ComboBoxComponent_1","ComboBox","ngEle","srenderer","viewContainerRef","injector","cdr","mod","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","_c0","_c1","_c3","_c4","_c5","_c6","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","__decorate","Template","ComponentMixins","AutoCompleteComponent_1","outputs$4","twoWays$4","AutoCompleteComponent","AutoCompleteComponent_1","AutoComplete","ngEle","srenderer","viewContainerRef","injector","cdr","mod","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","_c0","_c1","_c3","_c4","_c5","_c6","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","__decorate","Template","ComponentMixins","AutoCompleteModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","MultiSelectComponent_1","outputs$3","twoWays$3","MultiSelectComponent","MultiSelectComponent_1","MultiSelect","ngEle","srenderer","viewContainerRef","injector","cdr","mod","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","_c0","_c1","_c2","_c4","_c3","_c5","_c6","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","__decorate","Template","ComponentMixins","MultiSelectModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","ListBoxComponent_1","outputs$2","twoWays$2","ListBoxComponent","ListBoxComponent_1","ListBox","ngEle","srenderer","viewContainerRef","injector","cdr","mod","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","_c4","_c5","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","__decorate","Template","ComponentMixins","ListBoxModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","DropDownTreeComponent_1","outputs$1","twoWays$1","DropDownTreeComponent","DropDownTreeComponent_1","DropDownTree","ngEle","srenderer","viewContainerRef","injector","cdr","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","_c0","_c1","_c2","_c4","_c5","_c6","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","__decorate","Template","ComponentMixins","AutocompleteComponent","value","_outputValue","autocomplete","refresh","isFormComponent","cssClass","outputValue","valueChange","emit","constructor","placeholder","enabled","EventEmitter","touched","isFirst","filteredData","onSelect","data","itemData","id","onChange","args","isNaN","ngOnInit","DataManager","adaptor","AutocompleteCustomAdaptor","getDataFunctionWrapped","bind","ngAfterViewInit","element","addEventListener","e","parentElement","querySelector","onBlur","setTimeout","searchText","getDataFunction","pipe","tap","of","selectors","viewQuery","rf","ctx","ɵɵelementStart","ɵɵtwoWayListener","$event","i0","ɵɵrestoreView","_r1","ɵɵtwoWayBindingSet","ɵɵresetView","ɵɵlistener","ɵɵelementEnd","ɵɵpropertyInterpolate","ɵɵpipeBind1","ɵɵproperty","fields","ɵɵtwoWayProperty","AutoCompleteModule","AutoCompleteComponent","TranslateModule","TranslatePipe","ɵɵelementStart","ɵɵtwoWayListener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","i0","ɵɵtwoWayBindingSet","selectedClientId","ɵɵresetView","ɵɵlistener","onTouched","ɵɵelementEnd","ɵɵproperty","searchClientData","bind","fields","ɵɵtwoWayProperty","placeholder","isDisabled","isFormComponent","ɵɵtext","ɵɵadvance","ɵɵtextInterpolate","selectedClientName","ClientAutocompleteComponent","selectedClient","client","_selectedClient","id","clientsCache","find","c","push","autoCompleteComponent","refresh","selectedClientChange","emit","onChange","_control","value","getClientById","showSystem","systemClient","isClientAdminView","authService","hasUserClientAssigned","constructor","clientService","translateService","EventEmitter","name","instant","text","writeValue","registerOnChange","fn","registerOnTouched","setDisabledState","validate","control","ngOnInit","isUserClientUser","getClientsDisplayName","getUserInfo","searchText","searchClients","pipe","map","clientPaged","items","isUserAdmin","clientId","ɵɵdirectiveInject","ClientService","AuthService","TranslateService","selectors","viewQuery","rf","ctx","AutocompleteComponent","provide","NG_VALUE_ACCESSOR","useExisting","forwardRef","multi","NG_VALIDATORS","ɵɵStandaloneFeature","decls","vars","consts","template","ɵɵtemplate","ClientAutocompleteComponent_app_autocomplete_0_Template","ClientAutocompleteComponent_span_1_Template","NgIf","styles","AutomaticParkingFormComponent","selectedClient","clientService","value","onClientSelected","constructor","searchDTOChanged","EventEmitter","subscriptions","Subscription","ngOnInit","add","form","valueChanges","subscribe","endTimePicker","controls","startDate","min","startTimePicker","endDate","max","emit","ngOnDestroy","unsubscribe","client","ɵɵdirectiveInject","ClientService","selectors","viewQuery","rf","ctx","ɵɵelementStart","ɵɵtwoWayListener","$event","i0","ɵɵrestoreView","_r1","ɵɵtwoWayBindingSet","ɵɵresetView","ɵɵelementEnd","ɵɵtext","ɵɵelement","ɵɵproperty","ɵɵadvance","ɵɵtwoWayProperty","ɵɵtextInterpolate1","ɵɵpipeBind1","ReactiveFormsModule","ɵNgNoValidate","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","ClientAutocompleteComponent","DatePickerModule","DatePickerComponent","TranslateModule","TranslatePipe","styles","ɵɵelementContainerStart","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","breadCrumb_r1","TitleBarComponent","rootBreadCrumbs","value","_rootBreadCrumbs","trim","length","substring","replace","RegExp","split","map","constructor","ngOnInit","selectors","inputs","titleText","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","TitleBarComponent_ng_container_1_Template","ɵɵelement","ɵɵproperty","NgFor","TranslateModule","TranslatePipe","styles","ɵɵtext","ɵɵtextInterpolate2","data_r2","knownTag","parker","firstName","lastName","ɵɵelementContainerStart","ɵɵelementStart","ɵɵelement","ɵɵtemplate","AutomaticParkingReportComponent_ng_container_3_ng_template_20_Template","ɵɵtemplateRefExtractor","ɵɵelementEnd","ɵɵlistener","$event","ɵɵrestoreView","_r1","ctx_r2","ɵɵnextContext","ɵɵresetView","saveReport","ɵɵadvance","ɵɵproperty","pageSettings","data","ɵɵpropertyInterpolate","ɵɵpipeBind1","AutomaticParkingReportComponent","constructor","fb","router","spinnerService","automaticParkingReportService","filterForm","group","startDate","control","DateTime","now","startOf","toJSDate","endDate","endOf","GridConstantsFactory","createStandardPageSettings","ngOnInit","DataManager","adaptor","AvpCustomAdaptor","searchReports","controls","value","parameters","createAutomaticParkingReportParameters","grid","refresh","saveOptions","showSpinner","reportParameterDTO","exportReport","subscribe","savedReportFileDTO","navigate","reportsRoute","footer","downloadFile","AutomaticParkingReportParameterDTO","dateRange","DateRangeParameterDTO","fromJSDate","toFormat","ɵɵdirectiveInject","FormBuilder","Router","SpinnerService","AutomaticParkingReportService","selectors","viewQuery","rf","ctx","ReportsFooterComponent","AutomaticParkingReportComponent_ng_container_3_Template","TitleBarComponent","AutomaticParkingFormComponent","NgIf","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","TranslateModule","TranslatePipe","ActivationGuardBase","canActivate","route","state","url","checkLogin","AdminGuard","ActivationGuardBase","constructor","authService","router","checkLogin","url","isUserLoggedIn","isUserAdmin","redirectUrl","navigate","homeRoute","loginRoute","ɵɵinject","AuthService","Router","factory","ɵfac","providedIn","DropDownConstantsFactory","createStandardClientDropdownSettings","text","value","createEnumDropdownSettings","createNumericEnumDropdownSettings","FormHelper","setFieldDisabledStatus","control","isEnabled","enable","disable","updateTreeValidity","group","showImmediate","Object","keys","controls","forEach","key","abstractControl","UntypedFormGroup","UntypedFormArray","value","markAsTouched","markAsDirty","updateValueAndValidity","GridBaseComponent","constructor","clientService","translateService","showInactiveService","filterSettings","GridConstantsFactory","createStandardFilterSettings","editSettings","createStandardEditSettings","pageSettings","createStandardPageSettings","gridCommands","createStandardGridCommands","isActiveFilter","createCheckBoxFilter","dateFilter","createDateFilter","clientSelected$","Subject","showSaveButton","editDialogTitle","addDialogTitle","addIndexFindColumnName","dialogConfig","unsubscribeSubject","idOfEditedObject","_showInactive","selectedClient","showInactive","value","grid","getColumnByField","isActiveColumnName","visible","refreshColumns","formatIsActive","data","isActiveField","instant","onCreated","dataModule","getDataModule","isRemote","dataSource","offline","url","undefined","onAdd","addRecord","onClientSelected","client","next","id","refresh","onSearchTextChanged","searchText","search","actionComplete","args","requestType","SfRequestTypes","BeginEdit","Add","dialog","width","class","cssClass","header","getEditDialogTitleParams","rowData","saveBtn","btnObj","buttons","filter","btn","buttonModel","isPrimary","gridEditForm","statusChanges","pipe","startWith","status","takeUntil","subscribe","disabled","JSON","stringify","formInitialValue","FormHelper","updateTreeValidity","get","Save","action","SfAction","index","rows","findIndex","row","addObjectCompare","clearRowSelection","selectRow","Edit","markAsPristine","Refresh","getRowIndexByPrimaryKey","Delete","length","Cancel","actionBegin","initializeEditForm","parse","valid","getDataToSave","cancel","addedObject","rowObject","ɵɵdirectiveInject","ClientService","TranslateService","ShowInactiveService","selectors","viewQuery","rf","ctx","import_mapbox_gl","import_mapbox_gl_draw","_c0","_c1","outputs$9","twoWays$7","ButtonComponent","Button","ngEle","srenderer","viewContainerRef","injector","setValue","ComponentBase","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","_c0","_c1","rf","ctx","ɵɵprojectionDef","ɵɵprojection","__decorate","ComponentMixins","ButtonModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","CheckBoxComponent_1","outputs$8","twoWays$6","CheckBoxComponent","CheckBoxComponent_1","CheckBox","ngEle","srenderer","viewContainerRef","injector","cdr","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","rf","ctx","__decorate","ComponentMixins","CheckBoxModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","RadioButtonComponent_1","outputs$7","twoWays$5","RadioButtonComponent","RadioButtonComponent_1","RadioButton","ngEle","srenderer","viewContainerRef","injector","cdr","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","rf","ctx","__decorate","ComponentMixins","SwitchComponent_1","outputs$6","twoWays$4","SwitchComponent","SwitchComponent_1","Switch","ngEle","srenderer","viewContainerRef","injector","cdr","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","rf","ctx","__decorate","ComponentMixins","input$1","outputs$5","ChipDirective","ComplexBase","viewContainerRef","setValue","__ngFactoryType__","ɵɵdirectiveInject","ViewContainerRef","ɵɵdefineDirective","ɵɵInheritDefinitionFeature","ChipsDirective","ArrayBase","rf","ctx","dirIndex","ɵɵcontentQuery","_t","ɵɵqueryRefresh","ɵɵloadQuery","outputs$4","twoWays$3","ChipListComponent","ChipList","ngEle","srenderer","viewContainerRef","injector","setValue","ComponentBase","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","ChipsDirective","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵInheritDefinitionFeature","__decorate","ComponentMixins","ChipListModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","import_mapbox_gl","MAPBOX_API_KEY","InjectionToken","NgxMapboxGLModule","config","MAPBOX_API_KEY","__ngFactoryType__","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","import_mapbox_gl_draw_static_mode","MapBoxStyle","import_mapbox_gl_geocoder","MapBoxMapLockControl","constructor","isLocked","callback","_isLocked","_callback","onAdd","map","_map","_container","document","createElement","className","innerHTML","querySelector","addEventListener","classList","toggle","onRemove","parentNode","removeChild","undefined","MapBoxMapRefocusControl","constructor","callback","_callback","onAdd","map","_map","_container","document","createElement","className","innerHTML","querySelector","addEventListener","onRemove","parentNode","removeChild","undefined","MapBoxMode","MapBoxMapComponent","gpsArea","value","_gpsArea","map","loaded","mapLoaded","setContentAreaForMap","resetMap","line","_line","constructor","el","renderer","isReadOnly","height","style","MapBoxStyle","SatelliteStreets","mapId","gpsAreaChange","EventEmitter","lineChange","positionChange","isLocked","lat","lng","ngOnInit","mapMode","GpsAreaMode","LineMode","PositionMode","position","fullScreenControl","mapboxgl","FullscreenControl","lockControl","MapBoxMapLockControl","toggleLockMap","bind","refocusControl","MapBoxMapRefocusControl","refocusMap","geoCoderControl","MapboxGeocoder","accessToken","environment","mapbox","onMapLoadReference","handleMapLoad","handleDrawCreateReference","handleDrawCreate","handleDrawUpdateReference","handleDrawUpdate","handleDrawDeleteReference","handleDrawDelete","newPositionSelectedReference","newPositionSelected","geoCoderNewPositionSelectedReference","geoCoderNewPositionSelected","ngAfterViewInit","setTimeout","initializeMap","setHeight","ngOnDestroy","off","hasControl","addFeatureToMap","toggleAddPolygonDrawControl","toggleAddLineDrawControl","centerMapToFeature","toggleDeleteDrawControl","handleLockStatusChange","drawControl","deleteAll","setCenter","setZoom","toggleSearchControl","Map","container","zoom","center","on","addControl","changeMode","togglePositionListener","addMapboxDrawAndHandleChanges","addPositionMarkerAndHandleChanges","handleReadyOnlyMode","modes","MapboxDraw","static","StaticMode","displayControlsDefault","controls","polygon","line_string","trash","defaultMode","applyStyleToDrawControl","args","updateFeaturePosition","features","length","transformToDBCoordinatesString","geometry","coordinates","emit","enable","document","querySelectorAll","forEach","control","display","feature","type","id","properties","transformToGeoJsonCoordinates","add","nativeElement","element","setStyle","coordinatesString","transformedCoordinates","split","filter","pair","trim","Number","firstCoordinate","lastCoordinate","push","reverse","join","centerMapToPosition","getAll","bounds","LngLatBounds","coord","extend","fitBounds","padding","removeControl","marker","Marker","color","setLngLat","addTo","flyTo","e","result","mapMarker","remove","lngLat","clear","options","styles","find","paint","ɵɵdirectiveInject","ElementRef","Renderer2","selectors","inputs","outputs","standalone","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","CommonModule","ButtonModule","NgxMapboxGLModule","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","open","ɵɵelement","ɵɵadvance","ɵɵstyleProp","imgBase64","AsyncImageComponent","constructor","lightbox","isLoading","ngOnInit","request","subscribe","base64","src","thumb","ɵɵdirectiveInject","Lightbox","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","AsyncImageComponent_div_1_Template","AsyncImageComponent_div_2_Template","ɵɵproperty","NgIf","styles","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate1","ctx_r0","errors","translate","ɵɵpipeBind2","key","params","AppErrorMessagesComponent","showErrors","control","dirty","touched","showUntouchedErrors","untouched","constructor","errorMessagesService","unsubscribe","Subject","ngOnInit","merge","statusChanges","pipe","takeUntil","startWith","status","subscribe","generateErrorMessages","ngOnDestroy","next","complete","invalid","createMessages","ɵɵdirectiveInject","AppErrorMessagesService","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","AppErrorMessagesComponent_div_0_Template","ɵɵproperty","length","NgIf","TranslateModule","TranslatePipe","styles","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","ɵɵproperty","ctx_r1","getImageRequest","damage","id","imageId_r1","ɵɵtemplate","ZoneDamageEditFormComponent_div_40_app_async_image_1_Template","mediaFiles","ZoneDamageEditFormComponent","constructor","zoneDeviceClient","zoneDamageClient","enumTranslationService","zoneClient","deviceList","allDevices","zoneList","allZones","dropdownSettings","text","value","ZoneDamageState","enumDropdownSettings","DropDownConstantsFactory","createEnumDropdownSettings","states","translateEnum","MapBoxMode","unsubscribe$","Subject","ngOnInit","getDamage","subscribe","searchDevices","client","SortDirection","Ascending","devices","items","map","d","name","filter","FilterDTO","isComplex","field","operator","FilterOperator","Equal","searchZones","zones","zoneDamageEditForm","controls","zone","valueChanges","pipe","takeUntil","zoneId","length","deviceId","setValue","device","find","z","ngOnDestroy","next","complete","imageId","getDamageImage","ɵɵdirectiveInject","ZoneDeviceClient","ZoneDamageClient","EnumTranslationService","ZoneClient","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtwoWayListener","$event","i0","ɵɵtwoWayBindingSet","position","ZoneDamageEditFormComponent_div_27_Template","ZoneDamageEditFormComponent_div_40_Template","state","ɵɵtwoWayProperty","PositionMode","reporter","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","DropDownListModule","DropDownListComponent","AppErrorMessagesComponent","MapBoxMapComponent","NgIf","NgFor","AsyncImageComponent","TranslateModule","TranslatePipe","ɵɵelementStart","ɵɵlistener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","applyFilters","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","ɵɵpipeBind1","notificationList$","dropdownSettings","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind2","data_r4","reportTime","ɵɵtextInterpolate2","data_r5","reportPositionLatitude","reportPositionLongitude","ɵɵelement","ɵɵclassProp","data_r6","state","ZoneDamageState","Repaired","gridEditForm","selectedClient","data_r7","ɵɵelementContainerStart","_r3","actionComplete","actionBegin","ɵɵtemplate","ZoneDamageComponent_ng_container_4_ng_template_7_Template","ɵɵtemplateRefExtractor","ZoneDamageComponent_ng_container_4_ng_template_13_Template","ZoneDamageComponent_ng_container_4_ng_template_21_Template","ZoneDamageComponent_ng_container_4_ng_template_24_Template","data","filterSettings","pageSettings","editSettings","searchOptions","ɵɵpropertyInterpolate","dateFilter","gridCommands","ZoneDamageComponent","GridBaseComponent","constructor","translateService","clientService","zoneDamageService","fb","spinnerService","DropDownConstantsFactory","createStandardClientDropdownSettings","onLangChange","pipe","startWith","currentLang","map","_","name","instant","id","beforeUnload","dirty","value","onClientSelected","ngOnInit","DataManager","adaptor","AvpCustomAdaptor","isActiveColumnName","editDialogTitle","addDialogTitle","addIndexFindColumnName","event","filters","push","FilterDTO","isComplex","field","operator","FilterOperator","Equal","condition","FilterCondition","Or","predicates","New","RepairInProgress","Acknowledged","grid","refresh","initializeEditForm","group","control","Validators","required","clientId","zone","deviceId","damageDescription","toFormat","disabled","position","reporter","firstname","lastname","phoneNumber","getEditDialogTitleParams","rowData","params","getDataToSave","formValue","positions","split","zoneId","ɵɵdirectiveInject","TranslateService","ClientService","ZoneDamageService","FormBuilder","SpinnerService","selectors","hostBindings","rf","ctx","ɵɵresolveWindow","ɵɵtwoWayListener","i0","ɵɵtwoWayBindingSet","ZoneDamageComponent_div_3_Template","ZoneDamageComponent_ng_container_4_Template","ɵɵtwoWayProperty","TitleBarComponent","ClientAutocompleteComponent","NgIf","DropDownListModule","DropDownListComponent","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","ZoneDamageEditFormComponent","AsyncPipe","DatePipe","TranslateModule","TranslatePipe","styles","ipV4Pattern","ipV6Pattern","macAddressPattern","CustomValidatorsFactory","createPhoneValidator","control","Validators","pattern","phone","error","createZipValidator","zip","passwordValidation","value","RegExp","test","invalidPassword","passwordMatchValidation","passwordControlName","passwordConfirmControlName","group","password","get","passwordConfirm","passwordConfirmationMismatch","valid","forbiddenNameValidator","nameRe","forbiddenName","accessCodeDateValidator","date","DateTime","fromJSDate","isValid","now","startOf","invalidAccessCodeDateMin","plus","years","invalidAccessCodeDateMax","invalidDate","atLeastOneFromFormGroupRequired","isTrue","element","Object","keys","controls","some","validateIpAddress","allowIPv6","dirty","regexp","ipV6Pattern","ipV4Pattern","ipV6Address","ipAddress","validateMacAddress","macAddressPattern","macAddress","validateDateNotInPast","invalidDateInPast","validateDateNotInFuture","invalidDateInFuture","validateDateNotBeforeDate","dateToCompare","invalidDateBeforeDate","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate2","data_r2","firstName","lastName","ɵɵtextInterpolate","tmp_5_0","data_r3","company","name","undefined","client","LinkedParkerComponent","GridBaseComponent","constructor","translateService","clientService","fb","modalService","parkerAdministrationService","linkedParkersChange","EventEmitter","ngOnInit","gridCommands","type","title","instant","buttonOption","cssClass","iconCss","commandClicked","args","commandColumn","SfCommandButtonType","None","parker","rowData","index","linkedParkers","indexOf","showOkCancelDialog","onOkSubject","subscribe","unlinkUserFromParker","parkerId","splice","grid","refresh","emit","getEditDialogTitleParams","initializeEditForm","data","gridEditForm","group","control","ɵɵdirectiveInject","TranslateService","ClientService","FormBuilder","ModalService","ParkerAdministrationService","selectors","inputs","outputs","standalone","features","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵlistener","$event","i0","ɵɵrestoreView","_r1","ɵɵresetView","ɵɵelement","ɵɵtemplate","LinkedParkerComponent_ng_template_14_Template","ɵɵtemplateRefExtractor","LinkedParkerComponent_ng_template_18_Template","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵproperty","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","TranslateModule","TranslatePipe","CountryISO2","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind1","data_r1","text","ɵɵelementStart","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","data_r2","EnumDropDownListComponent","enumType","value","_enumType","init","baseTranslationString","_baseTranslationString","excludeEnumMembers","_excludeEnumMembers","constructor","formBuilder","enumTranslationService","showClearButton","placeholder","width","fields","subscriptions","onChange","onTouched","form","group","formValue","controls","disable","push","valueChanges","subscribe","writeValue","setValue","registerOnChange","fn","registerOnTouched","setDisabledState","isDisabled","enable","enumSelectionData","translateNumericEnum","dropDownList","refresh","ɵɵdirectiveInject","UntypedFormBuilder","EnumTranslationService","selectors","viewQuery","rf","ctx","provide","NG_VALUE_ACCESSOR","useExisting","forwardRef","multi","ɵɵStandaloneFeature","decls","vars","consts","template","ɵɵtemplate","EnumDropDownListComponent_ng_template_4_Template","ɵɵtemplateRefExtractor","EnumDropDownListComponent_ng_template_6_Template","ɵɵproperty","DropDownListModule","DropDownListComponent","ReactiveFormsModule","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","FormsModule","TranslateModule","TranslatePipe","styles","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r2","ctx_r2","ɵɵnextContext","ɵɵresetView","onAdd","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","ɵɵpipeBind1","ɵɵtemplate","DepositedNumberPlatesComponent_ng_template_8_ejs_toolbar_0_Template","isUserStandardUser","ɵɵtext","ɵɵtextInterpolate","data_r4","controlPlateNumber","formatControlPlateType","data_r5","ɵɵtextInterpolate1","data_r6","ɵɵelement","gridCommands","ɵɵtwoWayListener","$event","_r7","i0","ɵɵtwoWayBindingSet","selectedCountry","gridEditForm","getCountries","bind","dropdownSettings","ɵɵtwoWayProperty","controls","ControlPlateType","DepositedNumberPlatesComponent","GridBaseComponent","authService","countryCode","value","setValue","markAsDirty","constructor","translateService","clientService","fb","translate","controlPlates","controlPlatesChange","EventEmitter","countries","text","ngOnInit","editDialogTitle","addDialogTitle","type","SfCommandButtonType","Edit","buttonOption","cssClass","iconCss","Delete","country","CountryISO2","push","id","name","instant","searchText","of","filter","toLowerCase","includes","actionBegin","args","requestType","SfRequestTypes","BeginEdit","Add","cancel","actionComplete","emit","data","controlPlateType","getEditDialogTitleParams","rowData","initializeEditForm","group","control","Validators","required","maxLength","ɵɵdirectiveInject","TranslateService","ClientService","FormBuilder","AuthService","selectors","inputs","outputs","standalone","features","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","_r1","DepositedNumberPlatesComponent_ng_template_8_Template","ɵɵtemplateRefExtractor","DepositedNumberPlatesComponent_ng_template_16_Template","DepositedNumberPlatesComponent_ng_template_20_Template","DepositedNumberPlatesComponent_ng_template_22_Template","DepositedNumberPlatesComponent_e_column_24_Template","DepositedNumberPlatesComponent_ng_template_25_Template","editSettings","ɵɵpropertyInterpolate","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","NgIf","ToolbarModule","ToolbarComponent","ItemDirective","ItemsDirective","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","AutocompleteComponent","AppErrorMessagesComponent","EnumDropDownListComponent","TranslateModule","TranslatePipe","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵproperty","ɵɵpureFunction1","_c1","ctx_r0","userEditForm","controls","userName","disabled","ɵɵtextInterpolate","ɵɵpipeBind1","ɵɵpropertyInterpolate","formFields","isAdd","client","companies","dropdownSettings","companyId","address","zip","city","country","ɵɵelementContainerStart","ɵɵlistener","ɵɵrestoreView","_r2","ɵɵnextContext","ɵɵresetView","generateCode","ɵɵtextInterpolate1","accessCodeValidUntil","value","accessCodeGeneratedOn","ɵɵpipeBind2","accessCodeUsedOn","role","Role","hiddenRoles","ɵɵtwoWayListener","$event","_r4","i0","ɵɵtwoWayBindingSet","linkedParkers","ɵɵtwoWayProperty","_r3","controlPlates","ɵɵtemplate","UserEditFormComponent_ng_container_45_app_linked_parker_6_Template","length","UserEditFormComponent","clients","clientService","isParkingRanger","ParkingRanger","isLoggedInUser","userId","authService","getUserInfo","data","setValue","constructor","userAccountClient","languageService","translate","cdr","spinnerService","parkerCompanyClient","selectedClientId","selectedUser","DropDownConstantsFactory","createStandardClientDropdownSettings","languageDropdownSettings","text","languageDropDowItems","None","User","Proxy","CompanyAdmin","subscriptions","Subscription","ngOnInit","initialRole","initializeForms","loadClients","isUserAdmin","ThirdPartyParkingControl","BIAdmin","BIClientUser","ClientAdmin","ClientUser","Admin","loadCompanies","add","valueChanges","subscribe","v","reset","setValidators","disable","emitEvent","Validators","required","enable","updateValueAndValidity","filter","r","push","company","filters","FilterDTO","isComplex","field","operator","FilterOperator","Equal","searchParkerCompanies","id","SortDirection","Ascending","items","ngAfterViewChecked","detectChanges","ngOnDestroy","unsubscribe","hideClient","clientId","showSpinner","regenerateAccessCode","userInfoDTO","patchValue","toJSDate","validUntilToolTip","open","setTimeout","close","onLangChange","pipe","startWith","getLanguages","map","l","key","instant","getClientById","find","c","loggedInUser","ɵɵdirectiveInject","AuthService","ClientService","UserAccountClient","LanguageService","TranslateService","ChangeDetectorRef","SpinnerService","ParkerCompanyClient","selectors","viewQuery","rf","ctx","UserEditFormComponent_div_21_Template","UserEditFormComponent_div_23_Template","UserEditFormComponent_div_24_Template","UserEditFormComponent_div_32_Template","UserEditFormComponent_div_33_Template","UserEditFormComponent_div_35_Template","UserEditFormComponent_ng_container_42_Template","UserEditFormComponent_div_43_Template","UserEditFormComponent_div_44_Template","UserEditFormComponent_ng_container_45_Template","firstname","lastname","email","ɵɵclassMapInterpolate1","language","_c2","phoneNumber","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","NgClass","AppErrorMessagesComponent","NgIf","ClientAutocompleteComponent","DropDownListModule","DropDownListComponent","TooltipModule","TooltipComponent","DatePickerModule","DatePickerComponent","ButtonGroupComponent","YesNoGroupButtonComponent","DepositedNumberPlatesComponent","LinkedParkerComponent","DatePipe","TranslateModule","TranslatePipe","styles","EditProfileService","constructor","authService","userAccountClient","userControlPlateClient","resolve","loadUserInfoDTO","save","form","valid","forkJoin","updatedUser","updateUser","mapToUpdateUserInfoDTO","getRawValue","userControlPlates","updateUserControlPlates","UpdateControlPlatesDTO","controlPlates","value","map","p","UserControlPlateDTO","pipe","result","subscribe","of","formData","dto","UpdateUserInfoDTO","firstname","lastname","userId","clientId","email","enabled","language","phoneNumber","address","zip","city","country","roles","role","accessCodeValidUntil","ɵɵinject","AuthService","UserAccountClient","UserControlPlateClient","factory","ɵfac","providedIn","EditProfileComponent","constructor","authService","editProfileService","toastService","router","fb","userInfo","getUserInfo","userEditForm","group","userId","firstname","Validators","required","lastname","userName","value","disabled","language","email","phoneNumber","CustomValidatorsFactory","createPhoneValidator","address","city","zip","country","enabled","client","clientId","accessCode","accessCodeValidUntil","toJSDate","accessCodeDateValidator","accessCodeGeneratedOn","accessCodeUsedOn","role","roles","length","controlPlates","linkedParkers","save","valid","subscribe","next","res","navigate","homeRoute","error","showApiExeption","ɵɵdirectiveInject","AuthService","EditProfileService","ToastService","Router","UntypedFormBuilder","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵelementStart","ɵɵelementEnd","ɵɵlistener","ɵɵtext","ɵɵadvance","ɵɵproperty","ɵɵtextInterpolate1","ɵɵpipeBind1","TitleBarComponent","UserEditFormComponent","TranslateModule","TranslatePipe","ɵɵtext","ɵɵtextInterpolate1","data_r1","knownTag","parker","firstName","lastName","ɵɵelementStart","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate2","tmp_7_0","data_r2","countryCode","undefined","unknownParkerTagCountryCode","controlPlateNumber","unknownParkerTagControlPlateNumber","data_r3","registeredZoneName","ɵɵelement","ɵɵtemplate","ParkingRangerSessionDetailsListComponent_ng_template_18_span_0_Template","ParkingRangerSessionDetailsListComponent_ng_template_18_span_1_Template","ɵɵproperty","data_r4","offense","penaltyIssued","ParkingRangerSessionDetailsListComponent","GridBaseComponent","sessionData","selectedSession","constructor","translateService","clientService","spinnerService","ngOnInit","data","DataManager","adaptor","AvpCustomAdaptor","initializeEditForm","Error","getEditDialogTitleParams","rowData","ɵɵdirectiveInject","TranslateService","ClientService","SpinnerService","selectors","inputs","standalone","features","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ParkingRangerSessionDetailsListComponent_ng_template_7_Template","ɵɵtemplateRefExtractor","ParkingRangerSessionDetailsListComponent_ng_template_11_Template","ParkingRangerSessionDetailsListComponent_ng_template_15_Template","ParkingRangerSessionDetailsListComponent_ng_template_18_Template","registrations","filterSettings","pageSettings","ɵɵpropertyInterpolate","ɵɵpipeBind1","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","NgIf","TranslateModule","TranslatePipe","ɵɵtext","ɵɵtextInterpolate1","data_r3","sessionStartTime","toFormat","data_r4","data_r5","sessionEndTime","ɵɵpipeBind1","ɵɵtextInterpolate2","data_r6","user","firstname","lastname","ɵɵelement","ɵɵproperty","ctx_r1","selectedParkingRangerSession","ɵɵelementStart","ɵɵtwoWayListener","$event","ɵɵrestoreView","_r8","ɵɵnextContext","i0","ɵɵtwoWayBindingSet","line","ɵɵresetView","ɵɵelementEnd","MapBoxMode","LineMode","ɵɵtwoWayProperty","ɵɵelementContainerStart","ɵɵlistener","_r7","tabToggle","ɵɵtemplate","ParkingRangerSessionsComponent_ng_container_15_ng_container_27_app_parking_ranger_session_details_list_32_Template","ParkingRangerSessionsComponent_ng_container_15_ng_container_27_app_map_box_map_33_Template","ɵɵadvance","ɵɵtextInterpolate3","ɵɵpureFunction1","_c0","tabToggleStatus","_r1","rowSelected","ParkingRangerSessionsComponent_ng_container_15_ng_template_13_Template","ɵɵtemplateRefExtractor","ParkingRangerSessionsComponent_ng_container_15_ng_template_17_Template","ParkingRangerSessionsComponent_ng_container_15_ng_template_21_Template","ParkingRangerSessionsComponent_ng_container_15_ng_template_25_Template","ParkingRangerSessionsComponent_ng_container_15_ng_container_27_Template","parkingRangerSessions","filterSettings","pageSettings","ParkingRangerSessionsComponent","GridBaseComponent","selectedClient","clientService","value","onClientSelected","positions","map","position","lat","lon","join","constructor","fb","translateService","parkingRangerSessionsService","spinnerService","today","Date","twoDaysAgo","showContent","timeForm","group","startTime","endTime","subscriptions","Subscription","ngOnInit","setHours","controls","setValue","setDate","getDate","data","DataManager","adaptor","AvpCustomAdaptor","add","valueChanges","subscribe","search","ngOnDestroy","unsubscribe","client","getParkingRangerSessions","id","DateHelper","getDateTimeFromJsDateInTimeZone","DATE_HELPER_DEFAULT_TIME_ZONE","toString","items","args","selectedParkingRangerSessionId","getSession","toggleBoolean","getParkingRangerSession","initializeEditForm","Error","getEditDialogTitleParams","rowData","ɵɵdirectiveInject","FormBuilder","TranslateService","ClientService","ParkingRangerSessionsService","SpinnerService","selectors","standalone","features","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ParkingRangerSessionsComponent_ng_container_15_Template","TitleBarComponent","ReactiveFormsModule","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","ClientAutocompleteComponent","DatePickerModule","DatePickerComponent","NgIf","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","ButtonModule","ButtonComponent","NgClass","ParkingRangerSessionDetailsListComponent","TranslateModule","TranslatePipe","MapBoxMapComponent","styles","ParkerRegistrationDataType","ParkerRegistrationDetailsHelper","getRegisteredByText","registration","translate","type","ParkerRegistrationType","AutoScheduleEntry","AutoScheduleClose","instant","registeredByUserAgent","getAgentName","registeredByZoneDeviceName","user","firstname","lastname","ɵɵelement","ɵɵproperty","ɵɵpureFunction1","_c0","ctx_r0","offense","penaltyState","penaltyStateCancelled","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","getRegisteredByText","getImageRequest","id","imageId_r2","ɵɵtemplate","ParkerRegistrationDetailOffenseComponent_div_27_app_async_image_1_Template","mediaFiles","ParkerRegistrationDetailOffenseComponent","constructor","translate","parkerRegistrationClient","PenaltyState","Cancelled","registration","ParkerRegistrationDetailsHelper","getOffenseType","ParkerRegistrationOffense","imageId","getRegistrationImage","ɵɵdirectiveInject","TranslateService","ParkerRegistrationClient","selectors","inputs","displayIssuerName","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ParkerRegistrationDetailOffenseComponent_span_2_Template","ParkerRegistrationDetailOffenseComponent_div_13_Template","ParkerRegistrationDetailOffenseComponent_div_27_Template","penaltyIssued","ɵɵpropertyInterpolate","offenseLog","penaltyNumber","penaltyParkingNumber","length","NgIf","NgClass","TooltipModule","TooltipComponent","NgFor","AsyncImageComponent","TranslateModule","TranslatePipe","styles","ParkerRegistrationDetailParkerDetailsComponent","licenseNumber","knownTag","countryCode","controlPlateNumber","unknowParkerTagFull","selectors","inputs","parker","companyName","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","firstName","lastName","email","title","phone","identification","TranslateModule","TranslatePipe","ɵɵelementContainerStart","ɵɵelement","ɵɵadvance","ɵɵproperty","ctx_r0","registration","ParkerRegistrationRawDetailComponent","constructor","translate","parkerRegistrationClient","ParkerRegistrationType","ParkerRegistrationOffense","ParkerRegistrationDataType","ngOnInit","getExtendedRegistration","data","id","subscribe","zone","zones","find","z","registeredZoneId","getImageRequest","imageId","getRegistrationImage","getZoneById","getRegisteredByText","ParkerRegistrationDetailsHelper","ɵɵdirectiveInject","TranslateService","ParkerRegistrationClient","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","ParkerRegistrationRawDetailComponent_ng_container_29_Template","knownTag","parker","company","name","unknownParkerTagCountryCode","unknownParkerTagControlPlateNumber","ɵɵtextInterpolate","ɵɵpipeBind1","type","registrationDateTime","toFormat","registeredZoneName","offense","NoOffense","ParkerRegistrationDetailParkerDetailsComponent","NgIf","ParkerRegistrationDetailOffenseComponent","TranslateModule","TranslatePipe","styles","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind2","data_r2","registrationDateTime","ɵɵpipeBind1","ctx_r3","formatRegistrationType","data_r3","data_r5","ɵɵelementStart","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","getControlPlate","data_r6","formatControlPlateType","data_r7","data_r8","getCountryCode","data_r9","ɵɵelement","ɵɵclassProp","data_r10","knownTag","active","data_r11","defect","formatOffenseType","data_r12","data_r13","ɵɵproperty","ɵɵpureFunction1","_c0","data_r14","penaltyState","penaltyStateCancelled","ɵɵtemplate","ParkerRegistrationRawTableComponent_ng_template_70_span_0_Template","ParkerRegistrationRawTableComponent_ng_template_70_span_1_Template","offense","ParkerRegistrationOffense","NoOffense","penaltyIssued","data_r15","zones","ParkerRegistrationRawTableComponent","GridBaseComponent","constructor","translate","clientService","parkerRegistrationService","fb","spinnerService","ParkerRegistrationType","ParkerRegistrationDataType","PenaltyState","Cancelled","toolbarOptions","registrationTypeFilter","GridConstantsFactory","createCheckBoxFilter","offenseCheckboxFilter","controlPlateTypeFilter","activeFilter","defectFilter","controlPlateField","gridCommands","type","SfCommandButtonType","Edit","title","instant","buttonOption","cssClass","iconCss","ngOnInit","data","DataManager","adaptor","AvpCustomAdaptor","isActiveColumnName","editDialogTitle","addDialogTitle","addIndexFindColumnName","showSaveButton","getClientById","id","clients","find","c","refresh","grid","getRegisteredByText","ParkerRegistrationDetailsHelper","getUnknownParkerControlPlate","unknownParkerTagCountryCode","unknownParkerTagControlPlateNumber","countryCode","controlPlateNumber","ControlPlateType","controlPlateType","initializeEditForm","gridEditForm","group","getEditDialogTitleParams","rowData","params","ɵɵdirectiveInject","TranslateService","ClientService","ParkerRegistrationService","UntypedFormBuilder","SpinnerService","selectors","inputs","standalone","features","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵlistener","$event","i0","ɵɵrestoreView","_r1","ɵɵresetView","actionComplete","actionBegin","ParkerRegistrationRawTableComponent_ng_template_7_Template","ɵɵtemplateRefExtractor","ParkerRegistrationRawTableComponent_ng_template_13_Template","ParkerRegistrationRawTableComponent_ng_template_15_Template","ParkerRegistrationRawTableComponent_ng_template_29_Template","ParkerRegistrationRawTableComponent_ng_template_33_Template","ParkerRegistrationRawTableComponent_ng_template_35_Template","ParkerRegistrationRawTableComponent_ng_template_39_Template","ParkerRegistrationRawTableComponent_ng_template_49_Template","ParkerRegistrationRawTableComponent_ng_template_53_Template","ParkerRegistrationRawTableComponent_ng_template_65_Template","ParkerRegistrationRawTableComponent_ng_template_67_Template","ParkerRegistrationRawTableComponent_ng_template_70_Template","ParkerRegistrationRawTableComponent_ng_template_73_Template","filterSettings","pageSettings","editSettings","searchOptions","ɵɵpropertyInterpolate","dateFilter","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","CommonModule","NgClass","NgIf","DatePipe","ParkerRegistrationRawDetailComponent","TranslateModule","TranslatePipe","styles","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","ctx_r0","getRegisteredByText","entry","exit","ɵɵelementContainerStart","ɵɵtemplate","ParkerRegistrationEvaluatedDetailComponent_ng_container_34_div_18_Template","registrationDateTime","toFormat","getRegistrationType","ɵɵproperty","type","ɵɵtextInterpolate1","offense_r2","ɵɵelement","ParkerRegistrationEvaluatedDetailComponent_ng_container_35_e_tabitem_4_ng_template_1_Template","ɵɵtemplateRefExtractor","ParkerRegistrationEvaluatedDetailComponent_ng_container_35_e_tabitem_4_ng_template_3_Template","ParkerRegistrationEvaluatedDetailComponent_ng_container_35_e_tabitem_4_Template","offenses","ParkerRegistrationEvaluatedDetailComponent","parkingSession","value","_parkingSession","parkerRegistrations","length","sort","a","b","valueOf","isClosed","constructor","translate","parkerRegistrationClient","ngOnInit","forEach","registration","getExtendedRegistration","id","subscribe","newRegistration","offense","ParkerRegistrationOffense","NoOffense","penaltyIssued","push","zone","zones","find","z","registeredZoneId","getParkingDuration","parkingDuration","StringHelper","transformToTimeRepresentation","ParkerRegistrationType","ParkerRegistrationDetailsHelper","ɵɵdirectiveInject","TranslateService","ParkerRegistrationClient","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ParkerRegistrationEvaluatedDetailComponent_div_33_Template","ParkerRegistrationEvaluatedDetailComponent_ng_container_34_Template","ParkerRegistrationEvaluatedDetailComponent_ng_container_35_Template","knownTag","parker","company","name","unknownParkerTagCountryCode","unknownParkerTagControlPlateNumber","registeredZone","ParkerRegistrationDetailParkerDetailsComponent","NgIf","TabModule","TabComponent","TabItemDirective","TabItemsDirective","NgFor","ParkerRegistrationDetailOffenseComponent","TranslateModule","TranslatePipe","styles","AdjustParkerRegistrationEvaluatedFunctionType","AdjustStartTimeFormComponent","ngOnInit","maxDate","calculateMaxStartTime","parkingSession","Date","date","fixedRegistrations","parkerRegistrations","filter","r","type","ParkerRegistrationType","AutoScheduleClose","ParkingRangerEntry","length","sort","a","b","registrationDateTime","diff","toMillis","toJSDate","lastEntryDateTime","selectors","inputs","adjustStartTimeForm","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵproperty","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","controls","startTime","ReactiveFormsModule","ɵNgNoValidate","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","AppErrorMessagesComponent","DateTimePickerModule","DateTimePickerComponent","TranslateModule","TranslatePipe","AdjustEndTimeFormComponent","ngOnInit","minDate","calculateMinDateTime","parkingSession","Date","date","fixedRegistrations","parkerRegistrations","filter","r","type","ParkerRegistrationType","AutoScheduleClose","ParkingRangerEntry","length","sort","a","b","registrationDateTime","diff","toMillis","toJSDate","firstEntryDateTime","selectors","inputs","adjustEndTimeForm","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵproperty","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","controls","endTime","ReactiveFormsModule","ɵNgNoValidate","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","AppErrorMessagesComponent","DateTimePickerModule","DateTimePickerComponent","TranslateModule","TranslatePipe","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind1","tmp_9_0","data_r3","i18nLabel","undefined","type","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","ctx_r1","adjustStartTimeForm","parkingSession","adjustEndTimeForm","ɵɵlistener","$event","ɵɵrestoreView","_r1","ɵɵnextContext","ɵɵresetView","listBoxValue","ɵɵtemplate","AdjustParkerRegistrationEvaluatedDialogComponent_ng_template_4_ng_template_4_Template","ɵɵtemplateRefExtractor","AdjustParkerRegistrationEvaluatedDialogComponent_ng_template_4_div_7_Template","AdjustParkerRegistrationEvaluatedDialogComponent_ng_template_4_div_8_Template","functionsList","fieldsDefinition","isFunctionSelected","functionType","AdjustStartTime","AdjustEndTime","_r4","closeFunctionDialog","applyFunction","selectedFunction","form","valid","AdjustParkerRegistrationEvaluatedDialogComponent","constructor","fb","parkingClient","functionExecuted","EventEmitter","text","value","AdjustParkerRegistrationEvaluatedFunctionType","group","endTime","control","Validators","required","startTime","toolFunction","adjustStartTime","bind","adjustEndTime","ngOnInit","openDialog","resetForms","functionDialog","show","hide","subscribe","emit","args","items","invalid","throwError","Error","adjustSessionStartTime","AdjustSessionStartTimeDTO","parkingSessionId","id","startDateTime","DateTime","fromJSDate","pipe","map","adjustSessionEndTime","AdjustSessionEndTimeDTO","endDateTime","reset","ɵɵdirectiveInject","FormBuilder","ParkingClient","selectors","viewQuery","rf","ctx","AdjustParkerRegistrationEvaluatedDialogComponent_ng_template_2_Template","AdjustParkerRegistrationEvaluatedDialogComponent_ng_template_4_Template","AdjustParkerRegistrationEvaluatedDialogComponent_ng_template_6_Template","NgIf","DialogModule","DialogComponent","TranslateModule","TranslatePipe","ListBoxModule","ListBoxComponent","AdjustStartTimeFormComponent","AdjustEndTimeFormComponent","EnumFilterAdaptor","JsonAdaptor","constructor","getModuleName","processQuery","dataManager","query","res","dataSource","json","slice","result","aggregates","count","length","EnumFilterDataManager","DataManager","constructor","dataSource","json","dataType","offline","adaptor","EnumFilterAdaptor","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind2","data_r2","firstEntryDateTime","ctx_r3","transformToHours","data_r3","parkingDuration","data_r5","maxIntendedParkingDurationMinutes","ɵɵelement","ɵɵclassProp","data_r6","isClosed","data_r7","registeredZone","name","ɵɵpipeBind1","formatControlPlateType","data_r8","data_r9","ɵɵelementStart","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","getCountryCode","data_r10","formatCurrency","data_r11","currency","data_r12","formatOffenseTypes","data_r13","ɵɵproperty","ɵɵpureFunction1","_c0","data_r14","penaltyState","penaltyStateCancelled","ɵɵtemplate","ParkerRegistrationEvaluatedTableComponent_ng_template_65_span_0_Template","ParkerRegistrationEvaluatedTableComponent_ng_template_65_span_1_Template","offenses","length","penaltyIssued","data_r15","zones","ParkerRegistrationEvaluatedTableComponent","GridBaseComponent","constructor","translate","clientService","parkingService","fb","spinnerService","enumFilterService","ParkerRegistrationType","ParkerRegistrationOffense","ParkerRegistrationDataType","PenaltyState","Cancelled","currencyFilter","GridConstantsFactory","createCheckBoxFilter","controlPlateTypeFilter","offenseFilter","calculatedParkingFeeField","toolbarOptions","offensesFilterValues","offensesField","gridCommands","type","SfCommandButtonType","Edit","title","instant","buttonOption","cssClass","iconCss","None","ngOnInit","data","DataManager","adaptor","AvpCustomAdaptor","isActiveColumnName","editDialogTitle","addDialogTitle","addIndexFindColumnName","showSaveButton","offenseType","createEnumFilterArray","actionBegin","args","requestType","SfRequestTypes","FilterBeforeOpen","columnName","filterModel","options","dataSource","EnumFilterDataManager","FilterChoiceRequest","field","query","distincts","dataManager","searchById","id","array","find","e","getClientById","clients","c","minutes","StringHelper","transformToTimeRepresentation","refresh","grid","Currency","parkerRegistrations","map","o","translateService","join","knownTag","countryCode","unknownParkerTagCountryCode","ControlPlateType","controlPlateType","addTooltip","column","calculationRoadmap","tooltip","Tooltip","content","cell","commandClicked","commandColumn","adjustRegistrationDialog","openDialog","rowData","onSessionAdjustFunctionExecuted","initializeEditForm","gridEditForm","group","getEditDialogTitleParams","params","ɵɵdirectiveInject","TranslateService","ClientService","ParkingSessionService","UntypedFormBuilder","SpinnerService","EnumFilterService","selectors","viewQuery","rf","ctx","AdjustParkerRegistrationEvaluatedDialogComponent","ɵɵlistener","$event","i0","ɵɵrestoreView","_r1","ɵɵresetView","actionComplete","ParkerRegistrationEvaluatedTableComponent_ng_template_6_Template","ɵɵtemplateRefExtractor","ParkerRegistrationEvaluatedTableComponent_ng_template_10_Template","ParkerRegistrationEvaluatedTableComponent_ng_template_14_Template","ParkerRegistrationEvaluatedTableComponent_ng_template_18_Template","ParkerRegistrationEvaluatedTableComponent_ng_template_22_Template","ParkerRegistrationEvaluatedTableComponent_ng_template_32_Template","ParkerRegistrationEvaluatedTableComponent_ng_template_34_Template","ParkerRegistrationEvaluatedTableComponent_ng_template_38_Template","ParkerRegistrationEvaluatedTableComponent_ng_template_56_Template","ParkerRegistrationEvaluatedTableComponent_ng_template_58_Template","ParkerRegistrationEvaluatedTableComponent_ng_template_62_Template","ParkerRegistrationEvaluatedTableComponent_ng_template_65_Template","ParkerRegistrationEvaluatedTableComponent_ng_template_68_Template","filterSettings","pageSettings","editSettings","searchOptions","ɵɵpropertyInterpolate","dateFilter","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","NgIf","NgClass","ParkerRegistrationEvaluatedDetailComponent","DatePipe","TranslateModule","TranslatePipe","styles","ɵɵelement","ɵɵproperty","ctx_r0","ParkerRegistrationDataType","ɵɵelementStart","ɵɵelementEnd","ɵɵadvance","ɵɵpipeBind1","presentList$","dropdownSettings","zoneDropdownValues","statusList$","ɵɵelementContainerStart","zones","ɵɵtemplate","ParkerRegistrationComponent_ng_container_7_ng_container_1_Template","ParkerRegistrationComponent_ng_container_7_ng_container_2_Template","filterForm","controls","dataType","value","Raw","Evaluated","ParkerRegistrationComponent","selectedClient","clientService","onClientSelected","constructor","parkerRegistrationService","parkingService","zoneClient","translate","fb","group","control","offenseType","zone","present","onLangChange","pipe","startWith","currentLang","map","name","instant","id","ParkerOffenseFilterType","Parker","Offense","ParkingRangerEntry","DropDownConstantsFactory","createStandardClientDropdownSettings","ParkerRegistrationType","ParkerRegistrationOffense","unsubscribe$","Subject","selectedClient$","BehaviorSubject","ngOnInit","takeUntil","filter","c","switchMap","groupFilter","FilterDTO","isComplex","field","operator","FilterOperator","Equal","searchZones","SortDirection","Ascending","subscribe","items","z","isGroupingElement","next","ngAfterViewInit","valueChanges","refreshGrid","ngOnDestroy","complete","clientDTO","rawGrid","refresh","evaluatedGrid","ɵɵdirectiveInject","ParkerRegistrationService","ParkingSessionService","ClientService","ZoneClient","TranslateService","FormBuilder","selectors","viewQuery","rf","ctx","ɵɵtwoWayListener","$event","i0","ɵɵtwoWayBindingSet","ParkerRegistrationComponent_app_button_group_3_Template","ParkerRegistrationComponent_div_4_Template","ParkerRegistrationComponent_div_5_Template","ParkerRegistrationComponent_div_6_Template","ParkerRegistrationComponent_ng_container_7_Template","ɵɵtwoWayProperty","TitleBarComponent","ReactiveFormsModule","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","ClientAutocompleteComponent","NgIf","ButtonGroupComponent","DropDownListModule","DropDownListComponent","ParkerRegistrationRawTableComponent","ParkerRegistrationEvaluatedTableComponent","AsyncPipe","TranslateModule","TranslatePipe","ParkerInfo","constructor","parker","id","firstName","lastName","ProgressInfo","numTotalIterations","_numTotalIterations","progressValue","_progressValue","progressValueSegmentCount","actualIterations","_numIterations","constructor","recalcProgressValue","reset","incrementIteration","incrementIterations","numIterations","complete","Math","round","ParkerFunctionExecutor","constructor","numTotalRecordsToWorkOn","functionExecuted","Subject","executionStatusChanged","executionStatus","_pageSize","endSubject","progressInfo","ProgressInfo","cancelExecution","next","complete","run","loadParkersPagedCallback","reset","prepare","subscribe","subject","pipe","takeUntil","switchMap","skip","map","page","res","parkersToExecute","preFilterParkersAndUpdateExecutionStatus","items","length","incrementIterations","forkJoin","parker","executeFunctionOnParker","tap","handleSuccess","ParkerInfo","id","catchError","error","handleError","of","newSkip","totalNumberOfItems","push","status","message","parkerInfo","firstName","lastName","incrementIteration","ResendLinkToParkerExecutor","ParkerFunctionExecutor","constructor","numTotalRecordsToWorkOn","parkerClient","translateService","prepare","of","executeFunctionOnParker","parker","initializeParkerToUserLink","id","pipe","map","preFilterParkersAndUpdateExecutionStatus","parkers","parkersToResendLink","forEach","parkerValidForLink","linkedUserUserName","email","push","executionStatus","status","message","instant","parkerInfo","ParkerInfo","UnlinkParkerExecutor","ParkerFunctionExecutor","constructor","numTotalRecordsToWorkOn","parkerClient","translateService","prepare","of","executeFunctionOnParker","parker","unlinkParkerFromUser","id","pipe","map","preFilterParkersAndUpdateExecutionStatus","parkers","parkersToUnlink","forEach","linkedUserUserName","push","executionStatus","status","message","instant","parkerInfo","ParkerInfo","UpdateParkerUtil","createUpdateParkerDTO","parker","UpdateParkerDTO","__spreadProps","__spreadValues","tags","map","tag","UpdateParkerTagDTO","parkerSubscriptionAssignments","assignment","createUpdateParkerSubscriptionAssignmentDTO","UpdateParkerSubscriptionAssignmentDTO","id","subscriptionId","subscription","isDefaultSubscription","isFavorite","addOrMergeSubscriptionAssignment","updateData","subscriptionAssignment","defaultFromTime","addFullSubscription","existingSubscriptionAssignments","filter","a","sort","b","validFrom","toMillis","length","existingSubscriptionsToKeep","forEach","validTo","push","active","AddSubscriptionExecutor","ParkerFunctionExecutor","constructor","numTotalRecordsToWorkOn","subscriptionAssignmentForm","parkingSubscriptionClient","parkerClient","prepare","getParkingSubscription","controls","subscriptionId","value","pipe","map","sub","now","DateTime","validFrom","fromJSDate","validTo","executeFunctionOnParker","parker","subscriptionAssignment","UpdateParkerSubscriptionAssignmentDTO","active","id","isFavorite","updateData","UpdateParkerUtil","createUpdateParkerDTO","addOrMergeSubscriptionAssignment","updateParker","preFilterParkersAndUpdateExecutionStatus","parkers","SvgRenderer","rootID","options","key","isNullOrUndefined","width","height","element","size","path","line","rectangle","circle","polyline","ellipse","polygon","img","label","text","tSpan","title","defs","clipPath","foreignObject","group","pattern","colors","name","colorName","newOptions","gradientType","gradient","i","stop_1","rect","keys","getTooltipThemeColor","theme","style","__extends","extendStatics","d","b","p","__","measureText","text","font","themeFontStyle","isHeader","breakText","htmlObject","createElement","textArray","i","fontWidth","fontHeight","fontWeight","Size","withInAreaBounds","x","y","areaBounds","width","height","findDirection","rX","rY","rect","arrowLocation","arrowPadding","top","bottom","left","tipX","tipY","controlName","direction","startX","startY","Rect","Side","right","CustomizeOption","id","TextOption","_super","anchor","transform","baseLine","labelRotation","_this","getElement","removeElement","element","remove","drawSymbol","location","shape","size","url","options","role","label","renderer","SvgRenderer","temp","calculateShapes","path","functionName","locX","locY","merge","eq","xValue","yValue","cornerPoints","outerRadius","innerRadius","angle","starPath","radius","currentX","currentY","PathOption","fill","color","opacity","dashArray","textElement","parent","themeStyle","renderOptions","TooltipLocation","__extends$1","__decorate","decorators","target","key","desc","c","r","TextStyle","Property","ChildProperty","TooltipBorder","AreaBounds","ToolLocation","Tooltip","svgObject","templateObject","resetBlazorTemplate","argsData","markerSide","groupElement","pathElement","isBottom","isRight","shapeOption","count","markerGroup","_i","_a","padding","tooltipContent","tooltipDiv","tipLocation","isTop","isLeft","isNullOrUndefined","wrapPadding","wrapHeader","extend","headerSize","xLength","pathElement_1","start","pointRect","shadowId","Browser","shadow","defElement","borderColor","point","isRender","subWidth","lines","tspanElement","textCollection","tspanStyle","line","tspanOption","isRtlEnabled","headerContent","isBoldTag","headerWidth","isLeftSpace","isRightSpace","header","headerSpace","isRow","isColumn","markerSize","markerPadding","spaceWidth","subStringLength","fontSize","labelColor","dy","contentWidth","textHeight","parentElement","withoutHeader","k","pointsLength","len","j","len_1","textFont","width_1","contentWidthIndex","tooltipText","characterCollection","isRtlText","firstElement","elem","templateElement","sharedTemplateElement","isBlazor","tooltipRect","tooltipRendered","rect1","thisObject_1","tooltipRect1","updateBlazorTemplate","bounds","symbolLocation","position","clipX","clipY","markerHeight","boundsX","boundsY","currenDiff","Animation","animationMode","args","model","compile$1","tooltipElement","tooltipGroup_1","opacity_1","tooltipGroup","timeStamp","keyEntity","newProp","oldProp","Complex","Event$1","NotifyPropertyChanges","Component","__extends","extendStatics","d","b","p","__","Rect","x","y","height","width","Size","RectOption","_super","__extends","id","fill","width","color","opacity","rect","rx","ry","transform","dashArray","_this","PathOption","TextOption","id","fontSize","fontStyle","fontFamily","fontWeight","textAnchor","fill","x","y","width","height","degreeToLocation","centerX","centerY","radius","angleInDegrees","angleInRadians","getPathArc","startAngle","endAngle","enableRtl","pieView","start","end","largeArcFlag","sweepFlag","d","stringToNumber","value","containerSize","setAttributes","options","element","keys","effect","currentTime","startValue","endValue","duration","ProgressLocation","x","y","__extends$1","extendStatics","d","b","p","__","__decorate","decorators","target","key","desc","c","r","i","Margin","_super","Property","ChildProperty","Font","Animation","ProgressAnnotationSettings","Border","TooltipSettings","Complex","RangeColor","getProgressThemeColor","theme","style","Browser","lineCapRadius","completeAngle","valueChanged","progressCompleted","mouseClick","mouseDown","mouseUp","mouseMove","mouseLeave","svgLink","gradientType","stopElement","tooltipRender","ProgressAnimation","element","progress","delay","previousWidth","active","_this","animation","Animation","linearPath","duration","width","x","opacityValue","value","start","end","rtlX","animationMode","args","effect","progressWidth","thickness","clipPath","point","y","radius","progressEnd","totalEnd","startValue","previousTotal","circularPath","pathRadius","completeAngle","lineCapRadius","startPosition","degreeToLocation","endPosition","startPos","isNullOrUndefined","endPos","getPathArc","circularProgress","labelPath","textSize","label","text","xPos","valueChanged","percentage","labelText","labelPos","posX","previousEnd","isAnnotation","annotatElementChanged","firstAnnotatElement","totalAngle","annotateValueChanged","annotateValue","endValue","enableRtl","time","attrValue","ProgressTooltip","control","e","svgElement","isTooltip","delay","progress","element","animation","Animation","args","_this","endValue","tooltipSVG","width","value","effect","chart","isFirst","formatValue","currentFormat","duration","tooltipElement","textCollection","padding","argsData","tooltipRender","linearEndPointX","linearEndPointY","ProgressLocation","circularEndPointX","circularEndPointY","location","bounds","Tooltip","Segment","id","opacity","thickness","progressWidth","locX","lineCapRadius","locY","gapWidth","avlWidth","avlSegWidth","gap","segmentGroup","count","segWidth","color","j","option","segmentPath","tolWidth","linearThickness","i","PathOption","x","y","enableRtl","r","totalAngle","start","end","completeAngle","size","avlTolEnd","avlEnd","gapCount","circularSegment","segmentEnd","avlSegEnd","circularThickness","getPathArc","min","max","angle","totalWidth","posX","startY","rangeGroup","range","rangeMin","rangeMax","gradX","gradient","validRange","rangePath","startPos","endPos","startX","endX","endColor","centerX","centerY","radius","tolAngle","startAngle","endAngle","isValidRange","startColor","stopColor","linearGradient","rad","pos1","degreeToLocation","pos2","Linear","ProgressAnimation","linearTrackGroup","linearTrack","stroke","refresh","previousWidth","linearProgress","clipPathLinear","clipPathIndeterminate","linearProgressGroup","animationdelay","segmentWidth","strippedStroke","ismaximum","previousProgressWidth","getElement","animationMode","linearBuffer","clipPathBuffer","linearBufferWidth","secondaryProgressWidth","linearBufferGroup","isProgressRefresh","linearlabel","posY","textSize","percentage","defaultPos","far","center","pos","clipPath","textAlignment","labelText","linearLabelGroup","labelValue","linearValue","measureText","TextOption","progressGroup","linearProgressWidth","linearActive","activeClip","group","defs","svgLink","gradientType","stripWidth","stop","stopOption","gradOption","setAttributes","stopElement","linearColor","role","height","pathtype","path","endWidth","endRadius","isTrack","pathType","Circular","circularTrackGroup","stringToNumber","fill","strokeWidth","circularPath","circularTrack","previousEnd","previousTotalEnd","previousPath","progressTotalAngle","progressEnd","circularProgress","linearClipPath","circularProgressGroup","progressEndAngle","bufferClipPath","circularBuffer","circularBufferGroup","bufferEnd","circularLabel","circularLabelGroup","circularValue","totalEnd","circularActive","validSegment","progressSegment","rDiff","circularColor","__extends$3","extendStatics","d","b","p","__","__decorate$1","decorators","target","key","desc","c","ProgressBar","_super","options","ProgressBar_1","Rect","Size","progressCompleted","valueChanged","containerWidth","containerHeight","secElement","createElement","rect","svgRect","SvgRenderer","moveTo","lineTo","minimum","maximum","result","cornerCount","isLabel","isMaximum","posx","posy","pathWidth","RectOption","getProgressThemeColor","arg","mouseClick","mouseDown","mouseMove","mouseUp","mouseLeave","eventName","startEvent","Browser","moveEvent","stopEvent","cancelEvent","EventHandler","remove","newProp","oldProp","_i","_a","prop","isNullOrUndefined","modules","enableAnnotation","Property","Complex","Font","Margin","TooltipSettings","Event$1","Collection","ProgressAnnotationSettings","RangeColor","NotifyPropertyChanges","Component","_c0","input$1","outputs$2","ProgressBarAnnotationDirective","ComplexBase","viewContainerRef","setValue","__ngFactoryType__","ɵɵdirectiveInject","ViewContainerRef","ɵɵdefineDirective","rf","ctx","dirIndex","ɵɵcontentQuery","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵInheritDefinitionFeature","__decorate","Template","ProgressBarAnnotationsDirective","ArrayBase","input","outputs$1","RangeColorDirective","RangeColorsDirective","outputs","twoWays","ProgressBarComponent","ProgressBar","ngEle","srenderer","viewContainerRef","injector","mod","setValue","ComponentBase","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","ProgressBarAnnotationsDirective","RangeColorsDirective","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵInheritDefinitionFeature","__decorate","ComponentMixins","ProgressBarModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","FunctionType","SetStatusExecutor","ParkerFunctionExecutor","constructor","numTotalRecordsToWorkOn","activeStatusToChange","translateService","parkerClient","_activeStatusToChange","prepare","of","executeFunctionOnParker","parker","setParkerStatus","SetParkerStatusDTO","id","active","pipe","map","preFilterParkersAndUpdateExecutionStatus","parkers","parkersToSetStatus","forEach","executionStatus","push","status","message","instant","parkerInfo","ParkerInfo","EndSubscriptionExecutor","ParkerFunctionExecutor","constructor","numTotalRecordsToWorkOn","subscriptionEndingForm","parkingSubscriptionClient","parkerClient","translateService","prepare","getParkingSubscription","controls","subscriptionId","value","pipe","map","sub","validTo","DateTime","fromJSDate","Date","now","executeFunctionOnParker","parker","updateParkerDTO","UpdateParkerUtil","createUpdateParkerDTO","updateParker","id","preFilterParkersAndUpdateExecutionStatus","parkers","parkersToUpdate","forEach","parkerSubscriptionAssignments","some","a","subscription","subscriptionAssignmentsToKeep","push","validFrom","executionStatus","status","message","instant","parkerInfo","ParkerInfo","ReplaceSubscriptionExecutor","ParkerFunctionExecutor","constructor","numTotalRecordsToWorkOn","subscriptionReplacementForm","parkerClient","parkingClient","parkerRegistrationClient","prepare","validFrom","DateTime","fromJSDate","value","Date","validTo","of","executeFunctionOnParker","parker","oldSubscriptionId","controls","newSubscriptionId","newSubscriptionExists","parkerSubscriptionAssignments","forEach","a","subscription","id","active","now","updateParker","UpdateParkerUtil","createUpdateParkerDTO","subscriptionAssignment","UpdateParkerSubscriptionAssignmentDTO","subscriptionId","isFavorite","push","pipe","switchMap","doRecalcSessions","recalculateSessions","dto","GetParkingSessionIdsForParkerDTO","clientId","parkerId","dateRange","DateRangeParameterDTO","startDate","toISO","endDate","getParkingSessionIdsForParker","sessionInfos","parkerInfo","ParkerInfo","length","forkJoin","map","sessionInfo","recalculateParkingSession","tap","progressInfo","incrementIteration","catchError","error","executionStatus","status","message","preFilterParkersAndUpdateExecutionStatus","parkers","ParkerFunctionReplaceSubscriptionFormComponent","constructor","parkingSubscriptionClient","dropdownSettings","DropDownConstantsFactory","createStandardClientDropdownSettings","oldSubscriptionsDropdownValues","newSubscriptionsDropdownValues","isFromDateImmediate","isToDateImmediate","allSubscriptions","ngOnInit","parkerSubscriptionForm","value","validFrom","handleDateField","controls","validTo","valueChanges","subscribe","updateValueAndValidity","filters","FilterDTO","isComplex","field","operator","FilterOperator","Equal","NotEqual","ParkingSubscriptionType","ForeignParkerSubscription","toString","searchParkingSubscriptions","clientId","SortDirection","Ascending","res","items","forEach","s","label","name","description","push","id","assignable","isDateImmediate","control","refControl","disable","setValue","emitEvent","setValidators","enable","Validators","required","CustomValidatorsFactory","validateDateNotBeforeDate","fromDateImmediateChanged","ɵɵdirectiveInject","ParkingSubscriptionClient","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵtwoWayListener","$event","i0","ɵɵtwoWayBindingSet","ɵɵlistener","ɵɵproperty","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","oldSubscriptionId","newSubscriptionId","ɵɵpropertyInterpolate","ɵɵtwoWayProperty","ɵɵpureFunction0","_c0","ɵɵpureFunction1","_c1","ReactiveFormsModule","ɵNgNoValidate","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","DropDownListModule","DropDownListComponent","AppErrorMessagesComponent","CheckBoxModule","CheckBoxComponent","YesNoGroupButtonComponent","FormsModule","NgModel","NgClass","DateTimePickerModule","DateTimePickerComponent","TranslateModule","TranslatePipe","styles","ParkerFunctionEndSubscriptionFormComponent","constructor","parkingSubscriptionClient","dropdownSettings","DropDownConstantsFactory","createStandardClientDropdownSettings","subscriptionsDropdownValues","isToDateImmediate","minDate","Date","allSubscriptions","ngOnInit","parkerSubscriptionForm","value","validTo","handleDateField","filters","FilterDTO","isComplex","field","operator","FilterOperator","Equal","NotEqual","ParkingSubscriptionType","ForeignParkerSubscription","toString","searchParkingSubscriptions","clientId","SortDirection","Ascending","subscribe","res","items","map","s","label","name","description","id","isDateImmediate","controls","disable","setValue","emitEvent","setValidators","enable","Validators","required","CustomValidatorsFactory","validateDateNotInPast","updateValueAndValidity","ɵɵdirectiveInject","ParkingSubscriptionClient","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵtwoWayListener","$event","i0","ɵɵtwoWayBindingSet","ɵɵlistener","ɵɵproperty","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","subscriptionId","ɵɵtwoWayProperty","ɵɵpureFunction0","_c0","ɵɵpureFunction1","_c1","ReactiveFormsModule","ɵNgNoValidate","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","DropDownListModule","DropDownListComponent","AppErrorMessagesComponent","YesNoGroupButtonComponent","FormsModule","NgModel","NgClass","DateTimePickerModule","DateTimePickerComponent","TranslateModule","TranslatePipe","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","EditParkerEditSubscriptionListFormComponent","constructor","parkingSubscriptionClient","allowDateSelectionInPast","useSubscriptionSets","dropdownSettings","DropDownConstantsFactory","createStandardClientDropdownSettings","subscriptionsDropdownValues","allSubscriptions","allSubscriptionSets","minDate","_subscriptions","Subscription","isAdd","parkerSubscriptionForm","value","id","ngOnInit","controls","active","setValue","Date","handleDateField","isValidImmediately","validFrom","isValidOpenEnd","validTo","add","valueChanges","subscribe","subscriptionId","set","find","s","selectedSubscriptions","subscriptions","filter","sub","filters","FilterDTO","isComplex","field","operator","FilterOperator","Equal","NotEqual","ParkingSubscriptionType","ForeignParkerSubscription","toString","searchParkingSubscriptions","clientId","SortDirection","Ascending","res","items","createSubscriptionSetsFromSubscriptions","map","name","dropDownList","refresh","setErrors","required","markAsTouched","label","description","ngOnDestroy","unsubscribe","disable","control","includeDateBeforeValidator","emitEvent","setValidators","enable","validators","Validators","push","CustomValidatorsFactory","validateDateNotInPast","validateDateNotBeforeDate","updateValueAndValidity","structuralEntryMap","Map","forEach","structuralEntries","entry","has","__spreadProps","__spreadValues","get","Array","from","values","e","parentId","uniqueSubsMap","sort","a","b","localeCompare","isSubscriptionSet","ɵɵdirectiveInject","ParkingSubscriptionClient","selectors","viewQuery","rf","ctx","DropDownListComponent","ɵɵtemplate","EditParkerEditSubscriptionListFormComponent_div_32_Template","EditParkerEditSubscriptionListFormComponent_div_33_Template","ɵɵproperty","ɵɵpureFunction1","_c0","tmp_18_0","undefined","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormControlDirective","FormGroupDirective","FormControlName","DropDownListModule","AppErrorMessagesComponent","YesNoGroupButtonComponent","NgClass","DateTimePickerModule","DateTimePickerComponent","NgIf","TranslateModule","TranslatePipe","styles","RecalculateParkingSessionsExecutor","ParkerFunctionExecutor","constructor","numTotalRecordsToWorkOn","fromUntilForm","parkingClient","parkerRegistrationClient","prepare","today","DateTime","now","startOf","from","value","fromJSDate","until","of","executeFunctionOnParker","parker","recalculateSessions","dto","GetParkingSessionIdsForParkerDTO","clientId","parkerId","id","dateRange","DateRangeParameterDTO","startDate","toISO","endDate","getParkingSessionIdsForParker","pipe","switchMap","sessionInfos","parkerInfo","ParkerInfo","length","forkJoin","map","sessionInfo","recalculateParkingSession","undefined","tap","progressInfo","incrementIteration","catchError","error","executionStatus","push","status","message","preFilterParkersAndUpdateExecutionStatus","parkers","ParkerFunctionFromUntilFormComponent","constructor","maxDate","Date","ngOnInit","selectors","inputs","fromUntilForm","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵproperty","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","controls","from","until","ReactiveFormsModule","ɵNgNoValidate","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","AppErrorMessagesComponent","DateTimePickerModule","DateTimePickerComponent","TranslateModule","TranslatePipe","AdjustSubscriptionExecutor","ParkerFunctionExecutor","constructor","numTotalRecordsToWorkOn","subscriptionAssignmentForm","parkingSubscriptionClient","parkerClient","prepare","getParkingSubscription","controls","subscriptionId","value","pipe","map","sub","now","DateTime","validFrom","fromJSDate","validTo","executeFunctionOnParker","parker","updateData","UpdateParkerUtil","createUpdateParkerDTO","existingSubscriptionAssignments","parkerSubscriptionAssignments","filter","a","length","throwError","message","of","id","updateParker","preFilterParkersAndUpdateExecutionStatus","parkers","AddSubscriptionSetExecutor","ParkerFunctionExecutor","constructor","numTotalRecordsToWorkOn","subscriptionAssignmentForm","parkingSubscriptionClient","parkerClient","prepare","getParkingSubscription","controls","subscriptionId","value","pipe","map","sub","now","DateTime","validFrom","fromJSDate","validTo","executeFunctionOnParker","parker","updateData","UpdateParkerUtil","createUpdateParkerDTO","selectedSubscriptions","forEach","subscriptionAssignment","UpdateParkerSubscriptionAssignmentDTO","active","id","isFavorite","addOrMergeSubscriptionAssignment","updateParker","preFilterParkersAndUpdateExecutionStatus","parkers","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind1","tmp_13_0","data_r2","i18nLabel","undefined","type","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","ctx_r2","subscriptionAssignmentForm","clientId","subscriptionEndingForm","subscriptionReplacementForm","fromUntilForm","ɵɵtemplate","ParkerFunctionComponent_ng_template_4_ng_template_4_Template","ɵɵtemplateRefExtractor","ParkerFunctionComponent_ng_template_4_div_7_Template","ParkerFunctionComponent_ng_template_4_div_8_Template","ParkerFunctionComponent_ng_template_4_div_9_Template","ParkerFunctionComponent_ng_template_4_div_10_Template","ParkerFunctionComponent_ng_template_4_div_11_Template","ParkerFunctionComponent_ng_template_4_div_12_Template","ParkerFunctionComponent_ng_template_4_div_13_Template","ParkerFunctionComponent_ng_template_4_div_14_Template","ParkerFunctionComponent_ng_template_4_div_15_Template","ParkerFunctionComponent_ng_template_4_div_16_Template","functionList","fieldList","isTheFunctionSelected","functionType","AddSubscriptionSet","AddSubscriptions","EndSubscriptions","ReplaceSubscription","AdjustSubscriptions","UnlinkParker","DeactivateParker","ResendLink","ActivateParker","RecalculateParkingSessions","ɵɵlistener","ɵɵrestoreView","_r4","ɵɵnextContext","ɵɵresetView","closeFunctionDialog","applyFunction","ɵɵpipeBind2","ɵɵpureFunction2","_c6","selectedFunction","numTotalRecordsToWorkOn","ParkerFunctionComponent_ng_template_12_ng_template_8_div_0_Template","ParkerFunctionComponent_ng_template_12_ng_template_8_div_1_Template","ParkerFunctionComponent_ng_template_12_ng_template_8_div_2_Template","ParkerFunctionComponent_ng_template_12_ng_template_8_div_3_Template","data_r5","status","data_r6","parkerInfo","firstName","lastName","data_r7","ParkerFunctionComponent_ng_template_12_ng_template_8_Template","ParkerFunctionComponent_ng_template_12_ng_template_12_Template","ParkerFunctionComponent_ng_template_12_ng_template_16_Template","progressValue","animation","segmentCount","tmp_18_0","executionStatus","ɵɵpureFunction0","_c7","length","ɵɵpropertyInterpolate","ɵɵtextInterpolate4","actualExecutions","tmp_23_0","_r8","closeStatusDialog","ParkerFunctionComponent","_executor","progressInfo","actualIterations","progressValueSegmentCount","functionListBox","value","find","f","clientService","selectedClient","id","constructor","fb","parkingSubscriptionClient","parkerClient","parkingClient","parkerRegistrationClient","translateService","cdr","functionExecuted","EventEmitter","FunctionType","toolFunction","addSubscriptionSets","addSubscriptions","endSubscriptions","adjustSubscriptions","deactivateParkers","activateParkers","unlinkParkers","resendLinkToParkers","replaceSubscription","recalculateSessions","text","enable","duration","delay","_executorSubscriptions","Subscription","ngOnInit","group","control","subscriptionId","Validators","required","active","isValidImmediately","validFrom","isValidOpenEnd","validTo","modifiedBy","modifiedOn","selectedSubscriptions","CustomValidatorsFactory","validateDateNotInPast","oldSubscriptionId","newSubscriptionId","validateSubscriptionNotSameAsOld","doRecalcSessions","controls","valueChanges","subscribe","updateValueAndValidity","from","validateDateNotInFuture","until","setValidators","validateDateNotBeforeDate","ngAfterViewChecked","detectChanges","onStatusDialogOpened","functionStatus","refresh","handleNoData","add","executionStatusChanged","statusGrid","emit","unsubscribe","run","loadParkersPagedCallback","functionName","findIndex","v","functionDialog","hide","openDialog","show","showFunctionStatusDialog","functionStatusDialog","cancelExecution","setStatusOfParkers","activeStatusToChange","executor","SetStatusExecutor","runExecutor","valid","AddSubscriptionSetExecutor","markAllAsTouched","AddSubscriptionExecutor","EndSubscriptionExecutor","ReplaceSubscriptionExecutor","AdjustSubscriptionExecutor","ResendLinkToParkerExecutor","UnlinkParkerExecutor","RecalculateParkingSessionsExecutor","dirty","parent","get","subscriptionIdentical","ɵɵdirectiveInject","ClientService","FormBuilder","ParkingSubscriptionClient","ParkerClient","ParkingClient","ParkerRegistrationClient","TranslateService","ChangeDetectorRef","selectors","viewQuery","rf","ctx","ParkerFunctionComponent_ng_template_2_Template","ParkerFunctionComponent_ng_template_4_Template","ParkerFunctionComponent_ng_template_6_Template","i0","_r1","ParkerFunctionComponent_ng_template_10_Template","ParkerFunctionComponent_ng_template_12_Template","ParkerFunctionComponent_ng_template_14_Template","DialogModule","DialogComponent","ListBoxModule","ListBoxComponent","NgIf","EditParkerEditSubscriptionListFormComponent","ParkerFunctionEndSubscriptionFormComponent","ParkerFunctionReplaceSubscriptionFormComponent","ParkerFunctionFromUntilFormComponent","ProgressBarModule","ProgressBarComponent","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","TranslateModule","TranslatePipe","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r2","ctx_r2","ɵɵnextContext","ɵɵresetView","onAdd","ɵɵelementEnd","ɵɵadvance","ɵɵpropertyInterpolate","ɵɵpipeBind1","ɵɵtext","ɵɵproperty","ɵɵpureFunction1","_c0","data_r4","subscription","assignable","ɵɵtextInterpolate","name","ɵɵelement","ɵɵclassProp","data_r5","active","ɵɵpipeBind2","data_r6","validFrom","ɵɵtemplate","EditParkerSubscriptionListComponent_ng_template_18_span_0_Template","EditParkerSubscriptionListComponent_ng_template_18_span_1_Template","data_r7","validTo","EditParkerSubscriptionListComponent_ng_template_22_span_0_Template","EditParkerSubscriptionListComponent_ng_template_22_span_1_Template","gridEditForm","clientId","useSetsAddMode","EditParkerSubscriptionListComponent_ng_template_25_app_edit_parker_edit_subscription_list_form_0_Template","formEnabled","EditParkerSubscriptionListComponent","GridBaseComponent","_useSetsAddMode","constructor","clientService","translate","spinnerService","fb","modalHelperService","subscriptionsChange","EventEmitter","commands","type","SfCommandButtonType","Edit","buttonOption","cssClass","iconCss","Delete","newItemIndexCount","useSets","ngOnInit","isActiveColumnName","editDialogTitle","addDialogTitle","addIndexFindColumnName","editSettings","__spreadProps","__spreadValues","showDeleteConfirmDialog","actionBegin","args","requestType","SfRequestTypes","BeginEdit","Add","actionComplete","emit","subscriptions","Cancel","Save","commandClicked","commandColumn","cancel","confirm","grid","deleteRecord","rowData","initializeEditForm","data","group","id","control","subscriptionId","Validators","required","isValidImmediately","DateTime","isDateTime","toJSDate","isValidOpenEnd","modifiedBy","value","disabled","modifiedOn","toFormat","selectedSubscriptions","getEditDialogTitleParams","params","getDataToSave","fromJSDate","Date","set","editForm","allSubscriptionSets","find","at","i","length","push","allSubscriptions","sub","ɵɵdirectiveInject","ClientService","TranslateService","SpinnerService","FormBuilder","ModalHelperService","selectors","viewQuery","rf","ctx","EditParkerEditSubscriptionListFormComponent","$event","i0","_r1","EditParkerSubscriptionListComponent_ng_template_2_Template","ɵɵtemplateRefExtractor","EditParkerSubscriptionListComponent_ng_template_8_Template","EditParkerSubscriptionListComponent_ng_template_14_Template","EditParkerSubscriptionListComponent_ng_template_18_Template","EditParkerSubscriptionListComponent_ng_template_22_Template","EditParkerSubscriptionListComponent_ng_template_25_Template","searchOptions","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","ToolbarModule","ToolbarComponent","ItemDirective","ItemsDirective","NgClass","NgIf","DatePipe","TranslateModule","TranslatePipe","TagType","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵlistener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","setActiveCamera","ɵɵproperty","dropdownSettings","activeCamera","deviceId","camerasDropdownValues","ɵɵelement","ɵɵtwoWayListener","_r3","i0","ɵɵtwoWayBindingSet","onCamerasFound","onError","onScanComplete","onAutostarting","onNoCameraFound","onPermissionResponse","allowedFormats","ɵɵpureFunction1","_c0","cameraStarting","ɵɵtwoWayProperty","QrScannerComponent","constructor","BarcodeFormat","QR_CODE","dataScanned","EventEmitter","cameraError","cameraStarted","DropDownConstantsFactory","createStandardClientDropdownSettings","showCamera","permissionAllowed","camerasFound","cameras","invalidQRError","ngOnInit","event","emit","validateScannedCode","text","map","camera","name","label","id","find","code","codeArray","split","length","clientIdent","type","TagType","tagType","selectors","inputs","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","QrScannerComponent_div_0_Template","QrScannerComponent_div_1_Template","QrScannerComponent_div_2_Template","QrScannerComponent_ejs_dropdownlist_4_Template","QrScannerComponent_div_5_Template","QrScannerComponent_zxing_scanner_6_Template","NgIf","DropDownListModule","DropDownListComponent","ZXingScannerModule","ZXingScannerComponent","NgClass","TranslateModule","TranslatePipe","styles","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","ɵɵtextInterpolate1","ɵɵproperty","ctx_r1","cardReaderForm","controls","identificationCode","ɵɵlistener","ɵɵrestoreView","_r3","ɵɵnextContext","ɵɵresetView","closeCardDialog","saveIdCode","valid","$event","_r4","onQrScanned","showQrText","TagType","Parker","clientIdent","ɵɵtemplate","EditParkerEditTagListFormComponent_ng_template_87_div_0_Template","EditParkerEditTagListFormComponent_ng_template_87_app_qr_scanner_1_Template","qrReaderDialog_r5","visible","_r6","closeQrDialog","EditParkerEditTagListFormComponent","isAdd","parkerTagForm","value","id","clientService","selectedClient","constructor","enumTranslationService","parkerTagClient","fb","enumDropdownSettings","DropDownConstantsFactory","createEnumDropdownSettings","ControlPlateType","group","validators","Validators","required","asyncValidators","idValidator","ngOnInit","countryList","translateEnum","CountryISO2","openCardReaderDialog","cardReaderDialog","show","openQrReaderDialog","qrReaderDialog","setValue","qrData","barcode","split","reset","hide","control","timer","pipe","switchMap","isIdentificationCodeAlreadyInUse","map","result","sameAsOriginal","allTags","find","t","isAlreadyInUse","some","identAlreadyInUse","ɵɵdirectiveInject","EnumTranslationService","ParkerTagClient","ClientService","FormBuilder","selectors","viewQuery","rf","ctx","i0","_r1","EditParkerEditTagListFormComponent_div_64_Template","EditParkerEditTagListFormComponent_div_72_Template","EditParkerEditTagListFormComponent_div_74_Template","EditParkerEditTagListFormComponent_ng_template_77_Template","ɵɵtemplateRefExtractor","EditParkerEditTagListFormComponent_ng_template_79_Template","EditParkerEditTagListFormComponent_ng_template_81_Template","EditParkerEditTagListFormComponent_ng_template_85_Template","EditParkerEditTagListFormComponent_ng_template_87_Template","EditParkerEditTagListFormComponent_ng_template_89_Template","controlPlateNumber","ɵɵpropertyInterpolate","tagType","description","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","AppErrorMessagesComponent","DropDownListModule","DropDownListComponent","EnumDropDownListComponent","NgIf","YesNoGroupButtonComponent","DialogModule","DialogComponent","QrScannerComponent","TranslateModule","TranslatePipe","MessageModule","MessageComponent","styles","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r2","ctx_r2","ɵɵnextContext","ɵɵresetView","onAdd","ɵɵelementEnd","ɵɵadvance","ɵɵpropertyInterpolate","ɵɵpipeBind1","ɵɵtext","ɵɵtextInterpolate","formatControlPlateType","data_r4","ɵɵtextInterpolate1","data_r5","data_r6","controlPlateNumber","data_r7","description","ɵɵelement","ɵɵclassProp","data_r8","active","data_r9","defect","ɵɵproperty","gridEditForm","tags","EditParkerTagsListComponent","GridBaseComponent","constructor","translateService","clientService","fb","tagsChange","EventEmitter","commands","GridConstantsFactory","createStandardGridCommands","newItemIndexCount","ngOnInit","isActiveColumnName","editDialogTitle","addDialogTitle","addIndexFindColumnName","actionComplete","args","emit","data","ControlPlateType","controlPlateType","initializeEditForm","barcode","barcodeSplit","split","length","group","id","control","identificationCode","value","disabled","clientIdent","selectedClient","Validators","required","tagType","TagType","Parker","toString","countryCode","maxLength","clientId","client","parkerId","modifiedBy","modifiedOn","toFormat","getEditDialogTitleParams","rowData","params","getDataToSave","getRawValue","ɵɵdirectiveInject","TranslateService","ClientService","FormBuilder","selectors","inputs","outputs","standalone","features","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","$event","i0","_r1","actionBegin","ɵɵtemplate","EditParkerTagsListComponent_ng_template_2_Template","ɵɵtemplateRefExtractor","EditParkerTagsListComponent_ng_template_14_Template","EditParkerTagsListComponent_ng_template_16_Template","EditParkerTagsListComponent_ng_template_20_Template","EditParkerTagsListComponent_ng_template_24_Template","EditParkerTagsListComponent_ng_template_28_Template","EditParkerTagsListComponent_ng_template_32_Template","EditParkerTagsListComponent_ng_template_35_Template","editSettings","searchOptions","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","ToolbarModule","ToolbarComponent","ItemDirective","ItemsDirective","EditParkerEditTagListFormComponent","TranslateModule","TranslatePipe","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","ɵɵtwoWayListener","$event","ɵɵrestoreView","_r2","ctx_r2","ɵɵnextContext","i0","ɵɵtwoWayBindingSet","parkerTags","ɵɵresetView","ɵɵproperty","client","ɵɵtwoWayProperty","_r4","parkerSubscriptions","id","ɵɵtextInterpolate2","custom1Name","custom2Name","custom3Name","custom4Name","custom5Name","custom6Name","custom7Name","custom8Name","custom9Name","ɵɵtemplate","EditParkerFormComponent_ng_template_153_label_2_Template","EditParkerFormComponent_ng_template_153_label_3_Template","EditParkerFormComponent_ng_template_153_label_7_Template","EditParkerFormComponent_ng_template_153_label_8_Template","EditParkerFormComponent_ng_template_153_label_12_Template","EditParkerFormComponent_ng_template_153_label_13_Template","EditParkerFormComponent_ng_template_153_label_18_Template","EditParkerFormComponent_ng_template_153_label_19_Template","EditParkerFormComponent_ng_template_153_label_23_Template","EditParkerFormComponent_ng_template_153_label_24_Template","EditParkerFormComponent_ng_template_153_label_28_Template","EditParkerFormComponent_ng_template_153_label_29_Template","EditParkerFormComponent_ng_template_153_label_34_Template","EditParkerFormComponent_ng_template_153_label_35_Template","EditParkerFormComponent_ng_template_153_label_39_Template","EditParkerFormComponent_ng_template_153_label_40_Template","EditParkerFormComponent_ng_template_153_label_44_Template","EditParkerFormComponent_ng_template_153_label_45_Template","parkerEditForm","controls","custom1","custom2","custom3","custom4","custom5","custom6","custom7","custom8","custom9","_r5","selectedPrivateCountry","privateAddress","privateZip","privateCity","getCountries","bind","dropdownSettings","country","EditParkerFormComponent","isAdd","value","selectedCountry","setValue","privateCountry","tags","parkerSubscriptionAssignments","subscriptionAssignments","constructor","parkerCompanyClient","translate","authService","ParkerGroup","CurrencyEnum","Currency","countries","companies","text","ngOnInit","CountryISO2","push","instant","name","loggedInUser","getUserInfo","isUserCompanyAdmin","company","companyId","disable","filters","FilterDTO","isComplex","field","operator","FilterOperator","Equal","searchParkerCompanies","SortDirection","Ascending","subscribe","items","enable","searchText","of","filter","toLowerCase","includes","ɵɵdirectiveInject","ParkerCompanyClient","TranslateService","AuthService","selectors","inputs","rowData","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","_r1","EditParkerFormComponent_div_136_Template","EditParkerFormComponent_div_137_Template","EditParkerFormComponent_ng_template_141_Template","ɵɵtemplateRefExtractor","EditParkerFormComponent_ng_template_143_Template","EditParkerFormComponent_ng_template_146_Template","EditParkerFormComponent_ng_template_148_Template","EditParkerFormComponent_ng_template_151_Template","EditParkerFormComponent_ng_template_153_Template","EditParkerFormComponent_ng_template_156_Template","EditParkerFormComponent_ng_template_158_Template","firstName","lastName","identification","entryDate","exitDate","costCenter","title","address","zip","city","email","mobile","phone","workplace","employmentPercentage","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NumberValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","AppErrorMessagesComponent","EnumDropDownListComponent","DatePickerModule","DatePickerComponent","DropDownListModule","DropDownListComponent","AutocompleteComponent","YesNoGroupButtonComponent","ButtonGroupComponent","AccordionModule","AccordionComponent","AccordionItemDirective","AccordionItemsDirective","EditParkerTagsListComponent","EditParkerSubscriptionListComponent","NgIf","TranslateModule","TranslatePipe","styles","SearchFieldComponent","constructor","fb","searchTextChanged","EventEmitter","placeholderText","searchForm","group","filter","control","ngOnInit","get","valueChanges","pipe","debounceTime","distinctUntilChanged","subscribe","val","emit","ɵɵdirectiveInject","FormBuilder","selectors","inputs","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵproperty","ɵɵadvance","ɵɵpipeBind1","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","TranslateModule","TranslatePipe","styles","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵelementStart","ɵɵelementEnd","ɵɵadvance","data_r2","i18nLabel","displayName","ɵɵelement","ɵɵtemplate","ParkerFilterComponent_ng_template_10_ng_template_4_div_1_Template","ParkerFilterComponent_ng_template_10_ng_template_4_div_2_Template","ParkerFilterComponent_ng_template_10_ng_template_4_span_3_Template","ɵɵproperty","ctx_r2","hasFilter","groupTypes","enumDropdownSettings","subscriptionsDropdownValues","dropdownSettings","ParkerFilterComponent_ng_template_10_ng_template_4_Template","ɵɵtemplateRefExtractor","ParkerFilterComponent_ng_template_10_ejs_dropdownlist_11_Template","ParkerFilterComponent_ng_template_10_input_12_Template","ParkerFilterComponent_ng_template_10_input_13_Template","ParkerFilterComponent_ng_template_10_input_14_Template","ParkerFilterComponent_ng_template_10_input_15_Template","ParkerFilterComponent_ng_template_10_app_yes_no_group_button_16_Template","ParkerFilterComponent_ng_template_10_app_yes_no_group_button_17_Template","ParkerFilterComponent_ng_template_10_app_yes_no_group_button_18_Template","ParkerFilterComponent_ng_template_10_app_yes_no_group_button_19_Template","ParkerFilterComponent_ng_template_10_ejs_dropdownlist_20_Template","ParkerFilterComponent_ng_template_10_input_21_Template","ParkerFilterComponent_ng_template_10_input_22_Template","ParkerFilterComponent_ng_template_10_input_23_Template","ParkerFilterComponent_ng_template_10_input_24_Template","ParkerFilterComponent_ng_template_10_input_25_Template","ParkerFilterComponent_ng_template_10_input_26_Template","ParkerFilterComponent_ng_template_10_input_27_Template","ParkerFilterComponent_ng_template_10_input_28_Template","ParkerFilterComponent_ng_template_10_input_29_Template","filterFieldList","fieldList","filterForm","isTheFieldSelected","client","custom1Name","custom2Name","custom3Name","custom4Name","custom5Name","custom6Name","custom7Name","custom8Name","custom9Name","ɵɵlistener","ɵɵrestoreView","_r4","ɵɵnextContext","ɵɵresetView","closeFilterDialog","applyFilter","ParkerFilterComponent","constructor","fb","parkingSubscriptionClient","clientService","translateService","enumTranslateService","cdr","filterUpdated","EventEmitter","filters","getValueText","value","filterOperator","FilterOperator","Contains","Equal","instant","sub","find","s","id","name","text","DropDownConstantsFactory","createStandardClientDropdownSettings","createEnumDropdownSettings","translateEnum","ParkerGroup","groups","chips","selectedClient","ngOnInit","group","Group","CostCenter","Title","Workplace","EmploymentPercentage","IsLinked","Active","Billing","HasSubscriptions","Subscription","Custom1","Custom2","Custom3","Custom4","Custom5","Custom6","Custom7","Custom8","Custom9","push","filterField","loadSubscriptionDropdown","handleFilterAssignmentInForm","ngAfterViewChecked","detectChanges","valueChanges","subscribe","forEach","field","controls","getChip","FilterDTO","isComplex","operator","searchParkingSubscriptions","SortDirection","Ascending","res","items","map","label","description","openFilterDialog","filterDialog","show","emit","hide","fieldName","fieldsListBox","findIndex","v","f","chipDeleted","chipData","index","data","splice","c","setValue","emitEvent","ɵɵdirectiveInject","UntypedFormBuilder","ParkingSubscriptionClient","ClientService","TranslateService","EnumTranslationService","ChangeDetectorRef","selectors","viewQuery","rf","ctx","$event","i0","_r1","ParkerFilterComponent_ng_template_8_Template","ParkerFilterComponent_ng_template_10_Template","ParkerFilterComponent_ng_template_12_Template","ɵɵpropertyInterpolate1","ChipListModule","ChipListComponent","DialogModule","DialogComponent","ListBoxModule","ListBoxComponent","NgIf","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NumberValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","DropDownListModule","DropDownListComponent","YesNoGroupButtonComponent","TranslateModule","TranslatePipe","styles","ɵɵelementStart","ɵɵlistener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","onFilterUpdated","ɵɵelementEnd","ɵɵtwoWayListener","_r3","i0","ɵɵtwoWayBindingSet","showInactive","ɵɵpropertyInterpolate","ɵɵpipeBind1","ɵɵtwoWayProperty","_r4","onSearchTextChanged","ɵɵtext","ɵɵtextInterpolate1","getSubscriptionNamesAsString","data_r6","ɵɵtextInterpolate","formatGroup","data_r7","data_r8","ɵɵelement","ɵɵpropertyInterpolate2","selectedClient","custom1Name","ɵɵproperty","custom2Name","custom3Name","custom4Name","custom5Name","custom6Name","custom7Name","custom8Name","custom9Name","formatIsActive","data_r9","ɵɵclassProp","data_r10","active","gridEditForm","data_r11","_r5","dataBound","commandClicked","actionComplete","actionBegin","rowDataBound","onToolbarCommandClick","ɵɵtemplate","ParkerAdministrationComponent_div_8_ng_template_26_Template","ɵɵtemplateRefExtractor","ParkerAdministrationComponent_div_8_ng_template_32_Template","ParkerAdministrationComponent_div_8_ng_template_34_Template","ParkerAdministrationComponent_div_8_e_column_36_Template","ParkerAdministrationComponent_div_8_e_column_37_Template","ParkerAdministrationComponent_div_8_e_column_38_Template","ParkerAdministrationComponent_div_8_e_column_39_Template","ParkerAdministrationComponent_div_8_e_column_40_Template","ParkerAdministrationComponent_div_8_e_column_41_Template","ParkerAdministrationComponent_div_8_e_column_42_Template","ParkerAdministrationComponent_div_8_e_column_43_Template","ParkerAdministrationComponent_div_8_e_column_44_Template","ParkerAdministrationComponent_div_8_ng_template_53_Template","ParkerAdministrationComponent_div_8_ng_template_55_Template","ParkerAdministrationComponent_div_8_ng_template_58_Template","ɵɵadvance","data","filterSettings","pageSettings","editSettings","searchOptions","toolbar","zipField","subscriptionAssignmentField","subscriptionAssignmentFilter","getControlPlate","checkBoxFilter","isActiveFilter","gridCommands","ParkerLinkStatus","ParkerAdministrationComponent","GridBaseComponent","constructor","parkerAdministrationService","translateService","clientService","router","syncfusionTranslationService","parkerClient","fb","activatedRoute","spinnerService","modalService","modalHelperService","toolbarItems","text","instant","prefixIcon","id","disabled","GridConstantsFactory","createCheckBoxFilter","type","filtermodel","loadedParker","subscriptionFilterSource","subscriptionAssignmentFieldName","fields","SfCommandButtonType","Edit","buttonOption","cssClass","iconCss","Delete","None","beforeUnload","dirty","value","onClientSelected","refreshSubscriptionInfo","ngOnInit","DataManager","adaptor","AvpCustomAdaptor","isActiveColumnName","editDialogTitle","addDialogTitle","addIndexFindColumnName","dialogConfig","width","queryParams","subscribe","params","parkerIdToFilter","parkerId","grid","refresh","translationSubscription","onLanguageChanged","lang","navigate","then","location","reload","add","get","res","ngOnDestroy","unsubscribe","field","column","filter","s","usage","ParkerTagUsage","CommonTag","map","controlPlateNumber","toUpperCase","identificationCode","join","parkerSubscriptionAssignments","e","subscription","name","ParkerGroup","group","rowIndex","getRowIndexByPrimaryKey","selectRow","startEdit","updateFunctionButtonState","numTotalRecordsFound","args","parker","buttonElement","row","querySelector","lastElementChild","linkStatus","getParkerLinkStatus","classList","Unlinkable","ReadyToLink","firstElementChild","title","LinkPending","LinkExpired","Linked","commandColumn","rowData","showOkCancelDialog","onOkSubject","unlinkUserFromParker","initializeParkerToUserLink","getFilterItem","rowParker","showSpinner","cancel","getParker","next","error","requestType","SfRequestTypes","FilterBeforeOpen","columnName","filterModel","options","dataSource","EnumFilterDataManager","FilterChoiceRequest","query","distincts","dataManager","Save","Cancel","initializeEditForm","control","firstName","Validators","required","lastName","identification","maxLength","Undefined","companyId","company","costCenter","address","zip","CustomValidatorsFactory","createZipValidator","city","country","privateAddress","privateZip","privateZIP","privateCity","privateCountry","email","mobile","createPhoneValidator","phone","billing","workplace","employmentPercentage","min","billingCurrency","Currency","CHF","linkedUser","linkedUserUserName","modifiedBy","modifiedOn","toFormat","tags","custom1","custom2","custom3","custom4","custom5","custom6","custom7","custom8","custom9","comment","entryDate","toJSDate","DateTime","now","exitDate","controls","setValidators","validateDateNotBeforeDate","getEditDialogTitleParams","addObjectCompare","addedObject","rowObject","getDataToSave","__spreadProps","__spreadValues","assignment","subscriptionId","tag","userLinkCodeValidUntil","filters","showFunctionDialog","parkerFunctionDialog","functionExecuted","numTotalRecordsToWorkOn","getSelectedRecords","length","openDialog","loadPagedParkersForFunctions","bind","confirm","numParkers","item","addRecord","skip","take","selectedRecords","subSelection","slice","of","PagedResultDTOOfParkerDTO","items","totalNumberOfItems","enableButton","loadSubscriptions","result","refreshSubscriptionFilterSource","subscriptions","ɵɵdirectiveInject","ParkerAdministrationService","TranslateService","ClientService","Router","SyncfusionTranslationService","ParkerClient","FormBuilder","ActivatedRoute","SpinnerService","ModalService","ModalHelperService","selectors","viewQuery","rf","ctx","ɵɵresolveWindow","ParkerAdministrationComponent_app_parker_filter_3_Template","ParkerAdministrationComponent_ejs_checkbox_4_Template","ParkerAdministrationComponent_app_search_field_7_Template","ParkerAdministrationComponent_div_8_Template","TitleBarComponent","ClientAutocompleteComponent","NgIf","ParkerFilterComponent","CheckBoxModule","CheckBoxComponent","SearchFieldComponent","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","EditParkerFormComponent","ParkerFunctionComponent","TranslateModule","TranslatePipe","styles","MarkAsteriskDirective","constructor","el","setup","parent","nativeElement","parentNode","getElementsByTagName","length","getElementsByClassName","span","document","createElement","className","innerHTML","append","appendChild","ɵɵdirectiveInject","ElementRef","selectors","standalone","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","formSubmit","ɵɵproperty","forgotPasswordForm","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","formFields","userName","valid","ɵɵtextInterpolate1","loginRoute","ForgotPasswordComponent","constructor","formBuilder","userAccountClient","spinnerService","toastService","errorMessageService","forgotPasswordSuccess","ngOnInit","group","control","Validators","required","controls","showSpinner","value","forgotPassword","username","pipe","tap","catchError","error","handleError","of","subscribe","apiErrorCode","getApiErrorCode","i18nErrorMessage","i18nErrorTitle","showError","ErrorType","serverError","ɵɵdirectiveInject","FormBuilder","UserAccountClient","SpinnerService","ToastService","AppErrorMessagesService","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","ForgotPasswordComponent_form_3_Template","ForgotPasswordComponent_div_4_Template","TitleBarComponent","NgIf","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","MarkAsteriskDirective","AppErrorMessagesComponent","RouterLink","TranslateModule","TranslatePipe","NumericDirective","constructor","el","navigationKeys","onKeyDown","e","indexOf","key","ctrlKey","metaKey","isNaN","Number","preventDefault","onPaste","event","pastedInput","clipboardData","getData","replace","document","execCommand","ɵɵdirectiveInject","ElementRef","selectors","hostBindings","rf","ctx","ɵɵlistener","$event","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵpipeBind2","data_r3","validTo","ctx_r1","formatBoolean","data_r4","feesPaidByParkingSpaceOwner","data_r5","autoParkingActive","data_r6","thirdPartyInterfaceActive","ɵɵelementStart","ɵɵtwoWayListener","$event","ɵɵrestoreView","_r7","ɵɵnextContext","i0","ɵɵtwoWayBindingSet","priceModel","parkingSpacePriceModelName","ɵɵresetView","ɵɵelementEnd","ɵɵtwoWayProperty","ɵɵproperty","priceModelMasterData","parkingSpacePriceModels","dropDownFields","_r8","parkerPriceModelName","parkerPriceModels","ɵɵlistener","_r1","actionBegin","actionComplete","ɵɵelement","ɵɵtemplate","PriceModelEditComponent_ng_template_4_ng_template_10_Template","ɵɵtemplateRefExtractor","PriceModelEditComponent_ng_template_4_ng_template_14_Template","PriceModelEditComponent_ng_template_4_ng_template_78_Template","PriceModelEditComponent_ng_template_4_ng_template_84_Template","PriceModelEditComponent_ng_template_4_ng_template_94_Template","PriceModelEditComponent_ng_template_4_ng_template_98_Template","priceModels","editSettings","toolbar","ɵɵadvance","ɵɵpropertyInterpolate","percentRules","priceRules","percentOrNullRules","numberRules","_r9","closePriceModelDialog","PriceModelEditComponent","constructor","service","translateService","modalService","_subscriptions","Subscription","allowEditing","allowAdding","allowDeleting","mode","showDeleteConfirmDialog","min","max","required","text","value","ngOnInit","undefined","add","getPriceModelMasterData","subscribe","parkerPriceModelEdit","params","dataSource","DataManager","fields","popupWidth","parkingSpacePriceModelEdit","openDialog","clientId","getPriceModel","priceModelDialog","show","grid","isEdit","confirm","hide","instant","args","requestType","SfRequestTypes","BeginEdit","Add","Object","assign","rowData","Save","data","action","SfAction","createPriceModel","refreshGrid","Edit","updatePriceModel","Delete","deletePriceModel","id","refresh","ngOnDestroy","unsubscribe","ɵɵdirectiveInject","FinanceClientPriceModelService","TranslateService","ModalHelperService","selectors","viewQuery","rf","ctx","PriceModelEditComponent_ng_template_2_Template","PriceModelEditComponent_ng_template_4_Template","PriceModelEditComponent_ng_template_6_Template","DropDownListModule","DropDownListComponent","DialogModule","DialogComponent","TranslateModule","TranslatePipe","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","DatePipe","FormsModule","NgControlStatus","NgModel","styles","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","ɵɵelement","ɵɵproperty","ctx_r0","ConnectionMode","ɵɵlistener","ɵɵrestoreView","_r2","ɵɵnextContext","ɵɵresetView","openPriceModelDialog","ɵɵtextInterpolate1","ɵɵtemplate","ClientAdministraionEditFormComponent_ng_template_62_div_15_Template","ClientAdministraionEditFormComponent_ng_template_62_div_16_Template","ClientAdministraionEditFormComponent_ng_template_62_div_18_Template","ClientAdministraionEditFormComponent_ng_template_62_div_24_Template","clientEditForm","controls","automaticParkingScheduleToleranceInMinutes","isEdit","custom1Name","custom2Name","custom3Name","custom4Name","custom5Name","custom6Name","custom7Name","custom8Name","custom9Name","ClientAdministraionEditFormComponent","get","value","constructor","ngOnInit","valueChanges","pipe","startWith","subscribe","val","enable","disable","priceModelDialog","openDialog","id","selectors","viewQuery","rf","ctx","ClientAdministraionEditFormComponent_ng_template_60_Template","ɵɵtemplateRefExtractor","ClientAdministraionEditFormComponent_ng_template_62_Template","ClientAdministraionEditFormComponent_ng_template_65_Template","ClientAdministraionEditFormComponent_ng_template_67_Template","name","address","zip","city","email","phoneNumber","dataRetentionPeriodInDays","clientIdent","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NumberValueAccessor","NgControlStatus","NgControlStatusGroup","MinValidator","FormGroupDirective","FormControlName","AppErrorMessagesComponent","NumericDirective","AccordionModule","AccordionComponent","AccordionItemDirective","AccordionItemsDirective","YesNoGroupButtonComponent","NgIf","ButtonGroupComponent","TranslateModule","TranslatePipe","PriceModelEditComponent","styles","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r2","ctx_r2","ɵɵnextContext","ɵɵresetView","onAdd","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","ɵɵpipeBind1","ɵɵtext","ɵɵtextInterpolate","formatIsActive","data_r4","ɵɵelement","ɵɵtemplate","ClientAdministrationComponent_ng_template_30_div_0_Template","data_r5","isActive","gridEditForm","ClientAdministrationComponent","GridBaseComponent","constructor","clientAdministrationService","router","fb","translateService","spinnerService","addUserCommand","type","title","instant","buttonOption","cssClass","iconCss","defaultRetentionPeriodInDays","gridCommands","GridConstantsFactory","createStandardGridCommands","searchOptions","fields","beforeUnload","dirty","ngOnInit","data","DataManager","adaptor","AvpCustomAdaptor","isActiveColumnName","editDialogTitle","addDialogTitle","setTimeout","get","subscribe","value","onLangChange","_","commandClick","args","commandColumn","SfCommandButtonType","None","clientId","rowData","id","navigate","userManagementRoute","queryParams","addObjectCompare","addedObject","rowObject","addIndexFindColumnName","name","address","zip","getDataToSave","formValue","clientIdent","trim","__spreadProps","__spreadValues","automaticParkingScheduleToleranceInMinutes","initializeEditForm","group","control","Validators","required","CustomValidatorsFactory","createZipValidator","city","email","phoneNumber","createPhoneValidator","dataRetentionPeriodInDays","min","maxLength","clientIdentValidator","automaticParkingSchedulesEnabled","connectionMode","ConnectionMode","RequestConnection","qrCodeIdentificationEnabled","auditLogEnabled","custom1Name","custom2Name","custom3Name","custom4Name","custom5Name","custom6Name","custom7Name","custom8Name","custom9Name","getEditDialogTitleParams","param","clientIdentFilter","FilterDTO","isComplex","field","operator","FilterOperator","Equal","timer","pipe","switchMap","getData","SortDirection","Ascending","map","res","isIdentInUse","totalNumberOfItems","items","find","client","identAlreadyInUse","ɵɵdirectiveInject","ClientAdministrationService","Router","FormBuilder","TranslateService","SpinnerService","selectors","hostBindings","rf","ctx","ɵɵresolveWindow","$event","i0","_r1","onSearchTextChanged","ɵɵtwoWayListener","ɵɵtwoWayBindingSet","showInactive","actionBegin","actionComplete","ClientAdministrationComponent_ng_template_10_Template","ɵɵtemplateRefExtractor","ClientAdministrationComponent_ng_template_28_Template","ClientAdministrationComponent_ng_template_30_Template","ClientAdministrationComponent_ng_template_33_Template","ɵɵpropertyInterpolate","ɵɵtwoWayProperty","filterSettings","pageSettings","editSettings","isActiveFilter","TitleBarComponent","SearchFieldComponent","CheckBoxModule","CheckBoxComponent","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","ToolbarModule","ToolbarComponent","ItemDirective","ItemsDirective","NgIf","ClientAdministraionEditFormComponent","TranslateModule","TranslatePipe","UserManagementData","PasswordVisibilityDirective","constructor","el","_shown","setup","toggle","div","className","nativeElement","setAttribute","innerHTML","title","parent","parentNode","inputLabel","getElementsByTagName","divFlex","document","createElement","append","addEventListener","event","appendChild","length","ɵɵdirectiveInject","ElementRef","selectors","standalone","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵproperty","ɵɵpureFunction1","_c0","ctx_r0","isAdd","ɵɵtextInterpolate","ɵɵpipeBind1","ProxyEditFormComponent","clients","clientService","isLoggedInUser","proxyEditForm","value","userId","authService","getUserInfo","constructor","selectedClientId","dropdownSettings","DropDownConstantsFactory","createStandardClientDropdownSettings","subscriptions","Subscription","ngOnInit","initialRole","role","loadClients","add","controls","firstname","valueChanges","subscribe","userName","setValue","selectedClient","clientIdent","lastname","client","ngOnDestroy","unsubscribe","hideClient","clientId","getClientById","id","find","c","loggedInUser","ɵɵdirectiveInject","AuthService","ClientService","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","ProxyEditFormComponent_div_22_Template","ProxyEditFormComponent_div_23_Template","password","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","NgClass","AppErrorMessagesComponent","PasswordVisibilityDirective","NgIf","ClientAutocompleteComponent","YesNoGroupButtonComponent","TranslateModule","TranslatePipe","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵproperty","ɵɵpureFunction1","_c0","ctx_r0","isAdd","ɵɵtextInterpolate","ɵɵpipeBind1","ThirdPartyUserEditFormComponent","clients","clientService","isLoggedInUser","thirdPartyUserEditForm","value","userId","authService","getUserInfo","constructor","selectedClientId","dropdownSettings","DropDownConstantsFactory","createStandardClientDropdownSettings","subscriptions","Subscription","ngOnInit","initialRole","role","loadClients","add","controls","client","valueChanges","subscribe","userName","setValue","clientIdent","firstname","lastname","ngOnDestroy","unsubscribe","hideClient","clientId","getClientById","id","find","c","loggedInUser","ɵɵdirectiveInject","AuthService","ClientService","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","ThirdPartyUserEditFormComponent_div_16_Template","ThirdPartyUserEditFormComponent_div_17_Template","password","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","NgClass","AppErrorMessagesComponent","PasswordVisibilityDirective","NgIf","ClientAutocompleteComponent","YesNoGroupButtonComponent","TranslateModule","TranslatePipe","UserManagementService","ShowInactiveService","constructor","userAccountClient","clientService","toastService","getData","skip","take","filters","sortBy","sortDirection","selectedClient","id","showInactive","push","FilterDTO","isComplex","field","operator","FilterOperator","Equal","value","searchUsers","pipe","tap","result","items","forEach","item","client","name","updateRecord","data","roles","includes","Role","Proxy","updateProxyUser","UpdateProxyUserDTO","showSuccess","catchError","err","showApiExeption","throwError","ThirdPartyParkingControl","updateThirdPartyUser","UpdateThirdPartyUserDTO","updateUser","UpdateUserInfoDTO","addRecord","ParkingRanger","addParkingRangerUser","CreateMobileUserDTO","userInfo","lastAddedUserId","userId","addProxyUser","CreateProxyUserDTO","addThirdPartyUser","CreateThirdPartyUserDTO","addUser","CreateUserDTO","deleteRecord","deleteUserByAdmin","error","ɵɵinject","UserAccountClient","ClientService","ToastService","factory","ɵfac","providedIn","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r3","ctx_r3","ɵɵnextContext","ɵɵresetView","addUser","Role","Proxy","ɵɵelementEnd","ɵɵproperty","selectedClient","ɵɵpipeBind1","ɵɵtemplate","UserManagementComponent_ng_template_12_e_item_2_Template","_r2","ClientUser","ParkingRanger","ThirdPartyParkingControl","ɵɵadvance","isUserAdmin","ɵɵelement","ɵɵtext","ɵɵtextInterpolate","formatRoles","data_r5","data_r6","formatIsActive","data_r7","UserManagementComponent_ng_template_39_div_0_Template","data_r8","enabled","gridEditForm","data_r9","id","UserManagementComponent_ng_template_42_ng_template_1_app_proxy_edit_form_0_Template","useThirdPartyUserForm","thirdPartyForm_r10","UserManagementComponent_ng_template_42_app_user_edit_form_0_Template","UserManagementComponent_ng_template_42_ng_template_1_Template","ɵɵtemplateRefExtractor","UserManagementComponent_ng_template_42_ng_template_3_Template","useProxyUserForm","proxyForm_r11","UserManagementComponent","GridBaseComponent","constructor","fb","userManagementService","translateService","authService","clientService","route","spinnerService","languageFilter","GridConstantsFactory","createCheckBoxFilter","roleFilter","accountTypeFilter","addUserRole","searchOptions","fields","beforeUnload","dirty","value","onClientSelected","controls","role","ngOnInit","userId","getUserInfo","data","DataManager","adaptor","AvpCustomAdaptor","queryParams","subscribe","params","clientId","newSelectedClient","clients","find","c","unsubscribeSubject","grid","refresh","isActiveColumnName","editDialogTitle","addDialogTitle","onRowDataBound","args","row","getElementsByClassName","classList","add","actionBegin","requestType","SfRequestTypes","Delete","cancel","onAdd","userInfo","roles","map","r","instant","join","actionComplete","Save","action","SfAction","Add","lastAddedUserId","hideClient","getDataToSave","userManagementData","UserManagementData","mapToUserInfoDTO","getRawValue","initializeEditForm","includes","User","ClientAdmin","Admin","client","group","control","firstname","disabled","Validators","required","lastname","password","CustomValidatorsFactory","passwordValidation","userName","companyId","length","setValidators","clientIdent","isEditAndIsUser","isEditAndIsWebUser","isEditAndIsParkingRanger","language","email","phoneNumber","createPhoneValidator","address","city","zip","country","accessCode","accessCodeValidUntil","toJSDate","accessCodeDateValidator","accessCodeGeneratedOn","accessCodeUsedOn","controlPlates","linkedParkers","getEditDialogTitleParams","rowData","addObjectCompare","addedObject","rowObject","formData","dto","DateTime","fromJSDate","endOf","ɵɵdirectiveInject","FormBuilder","UserManagementService","TranslateService","AuthService","ClientService","ActivatedRoute","SpinnerService","selectors","hostBindings","rf","ctx","ɵɵresolveWindow","ɵɵtwoWayListener","$event","i0","_r1","ɵɵtwoWayBindingSet","onSearchTextChanged","showInactive","UserManagementComponent_ng_template_12_Template","UserManagementComponent_e_column_20_Template","UserManagementComponent_ng_template_31_Template","UserManagementComponent_ng_template_33_Template","UserManagementComponent_ng_template_37_Template","UserManagementComponent_ng_template_39_Template","UserManagementComponent_ng_template_42_Template","ɵɵtwoWayProperty","ɵɵpropertyInterpolate","filterSettings","pageSettings","editSettings","isActiveFilter","gridCommands","TitleBarComponent","ClientAutocompleteComponent","SearchFieldComponent","CheckBoxModule","CheckBoxComponent","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","ToolbarModule","ToolbarComponent","ItemDirective","ItemsDirective","NgIf","UserEditFormComponent","ProxyEditFormComponent","ThirdPartyUserEditFormComponent","TranslateModule","TranslatePipe","styles","ɵɵelement","LoginComponent","constructor","router","route","authService","toastService","spinnerService","renderer","loading","loginModel","forgotPasswordRoute","ngOnInit","addClass","document","body","showSpinner","initFlag","snapshot","queryParams","init","errorFlag","error","initializeForm","isUserLoggedIn","navigate","homeRoute","ngOnDestroy","removeClass","login","username","loginForm","value","userName","password","subscribe","next","result","redirectUrl","navigateByUrl","showApiExeption","loginUserNameControl","UntypedFormControl","Validators","required","loginPasswordControl","UntypedFormGroup","ɵɵdirectiveInject","Router","ActivatedRoute","AuthService","ToastService","SpinnerService","Renderer2","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵlistener","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","LoginComponent_div_20_Template","ɵɵadvance","ɵɵproperty","ɵɵtextInterpolate","ɵɵpipeBind1","ɵɵpropertyInterpolate","ɵɵtextInterpolate1","ɵɵpureFunction1","_c0","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","AppErrorMessagesComponent","PasswordVisibilityDirective","NgIf","RouterLink","TranslateModule","TranslatePipe","styles","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵelement","ChangePasswordComponent","constructor","router","userAccountClient","toastService","loading","ngOnInit","initializeForm","hasValidPasswords","group","pass","value","newPassword","confirmPass","newPasswordConfirm","showError","changePassword","changePasswordDTO","ChangePasswordDTO","oldPassword","changePasswordForm","subscribe","next","result","navigate","homeRoute","error","showApiExeption","oldPasswordControl","FormControl","Validators","required","newPasswordControl","CustomValidatorsFactory","passwordValidation","newPasswordConfirmControl","FormGroup","validators","passwordMatchValidation","ɵɵdirectiveInject","Router","UserAccountClient","ToastService","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","ChangePasswordComponent_div_22_Template","ɵɵlistener","ChangePasswordComponent_div_26_Template","ɵɵproperty","ɵɵtextInterpolate","errors","passwordConfirmationMismatch","valid","TitleBarComponent","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","PasswordVisibilityDirective","AppErrorMessagesComponent","NgIf","TranslateModule","TranslatePipe","styles","HomeComponent","constructor","renderer","cellSpacing","addClass","document","body","ngOnDestroy","removeClass","ɵɵdirectiveInject","Renderer2","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","AuthGuard","ActivationGuardBase","constructor","authService","router","checkLogin","url","isUserLoggedIn","redirectUrl","navigate","loginRoute","ɵɵinject","AuthService","Router","factory","ɵfac","providedIn","AdminOrClientAdminGuard","ActivationGuardBase","constructor","authService","router","checkLogin","url","isUserLoggedIn","isUserAdminOrClientAdmin","redirectUrl","navigate","homeRoute","loginRoute","ɵɵinject","AuthService","Router","factory","ɵfac","providedIn","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵelement","ɵɵtemplate","SetPasswordComponent_form_3_div_13_Template","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","setPassword","ɵɵproperty","setPasswordForm","ɵɵtextInterpolate","formFields","password","passwordConfirm","errors","passwordConfirmationMismatch","valid","autoRedirectMessage","ɵɵpureFunction1","_c0","loginRoute","SetPasswordComponent","controls","areParametersValid","userId","verificationToken","constructor","formBuilder","userAccountClient","route","spinnerService","toastService","errorMessageService","translateService","router","passwordSetSuccess","autoRedirectTimeInSeconds","ngOnInit","initializeForm","queryParams","subscribe","params","code","forgotPasswordProcess","fp","ngOnDestroy","timeOutSubscription","unsubscribe","setPasswordDTO","newPassword","value","showSpinner","pipe","tap","redirectToLogin","catchError","error","handleError","of","interval","map","x","instant","navigate","apiErrorCode","getApiErrorCode","i18nErrorMessage","i18nErrorTitle","showError","ErrorType","serverError","group","control","Validators","required","CustomValidatorsFactory","passwordValidation","validators","passwordMatchValidation","ɵɵdirectiveInject","FormBuilder","UserAccountClient","ActivatedRoute","SpinnerService","ToastService","AppErrorMessagesService","TranslateService","Router","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","SetPasswordComponent_form_3_Template","SetPasswordComponent_div_4_Template","SetPasswordComponent_div_5_Template","TitleBarComponent","NgIf","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","PasswordVisibilityDirective","AppErrorMessagesComponent","RouterLink","TranslateModule","TranslatePipe","styles","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","CompanyFormComponent","formFields","companyForm","controls","constructor","isAdd","ngOnInit","value","id","FormHelper","setFieldDisabledStatus","active","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","CompanyFormComponent_div_8_Template","ɵɵproperty","ɵɵtextInterpolate","name","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","AppErrorMessagesComponent","NgIf","YesNoGroupButtonComponent","TranslateModule","TranslatePipe","ɵɵelementStart","ɵɵlistener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","onSearchTextChanged","ɵɵelementEnd","ɵɵtwoWayListener","_r3","i0","ɵɵtwoWayBindingSet","showInactive","ɵɵpropertyInterpolate","ɵɵpipeBind1","ɵɵtwoWayProperty","_r5","onAdd","ɵɵadvance","ɵɵtext","ɵɵtextInterpolate","formatIsActive","data_r6","ɵɵelement","ɵɵclassProp","data_r7","active","ɵɵproperty","gridEditForm","_r4","actionComplete","actionBegin","ɵɵtemplate","CompanyAdministrationComponent_div_7_ng_template_3_Template","ɵɵtemplateRefExtractor","CompanyAdministrationComponent_div_7_ng_template_11_Template","CompanyAdministrationComponent_div_7_ng_template_13_Template","CompanyAdministrationComponent_div_7_ng_template_16_Template","data","filterSettings","pageSettings","editSettings","searchOptions","isActiveFilter","gridCommands","CompanyAdministrationComponent","GridBaseComponent","constructor","clientService","translateService","companyAdministrationService","fb","spinnerService","fields","beforeUnload","dirty","ngOnInit","DataManager","adaptor","AvpCustomAdaptor","isActiveColumnName","editDialogTitle","addDialogTitle","addIndexFindColumnName","selectedClient","value","onClientSelected","initializeEditForm","group","id","control","name","Validators","required","companyNameValidator","getEditDialogTitleParams","rowData","params","nameFilter","FilterDTO","isComplex","field","operator","FilterOperator","Equal","trim","timer","pipe","switchMap","getData","SortDirection","Ascending","map","res","isNameInUse","totalNumberOfItems","items","find","company","get","nameAlreadyInUse","ɵɵdirectiveInject","ClientService","TranslateService","CompanyAdministrationService","FormBuilder","SpinnerService","selectors","hostBindings","rf","ctx","ɵɵresolveWindow","CompanyAdministrationComponent_app_search_field_5_Template","CompanyAdministrationComponent_ejs_checkbox_6_Template","CompanyAdministrationComponent_div_7_Template","TitleBarComponent","ClientAutocompleteComponent","NgIf","SearchFieldComponent","CheckBoxModule","CheckBoxComponent","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","ToolbarModule","ToolbarComponent","ItemDirective","ItemsDirective","CompanyFormComponent","TranslateModule","TranslatePipe","styles","ɵɵelementContainerStart","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtwoWayListener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","i0","ɵɵtwoWayBindingSet","selectedZone","ɵɵresetView","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵproperty","searchZoneAutocompleteValues","bind","keyValueDropdownSettings","ɵɵtwoWayProperty","DeviceStatusFormComponent","selectedClient","clientService","value","onClientSelected","form","get","setValue","constructor","deviceStatusReportService","searchDTOChanged","EventEmitter","text","subscriptions","ngOnInit","push","valueChanges","subscribe","emit","ngOnDestroy","forEach","s","unsubscribe","onSearchTextChanged","searchText","client","searchZones","pipe","map","zoneAutocompleteValues","data","items","zone","id","name","ɵɵdirectiveInject","ClientService","DeviceStatusReportService","selectors","viewQuery","rf","ctx","ɵɵtemplate","DeviceStatusFormComponent_ng_container_3_Template","ReactiveFormsModule","ɵNgNoValidate","NgControlStatusGroup","FormGroupDirective","ClientAutocompleteComponent","NgIf","AutocompleteComponent","TranslateModule","TranslatePipe","ɵɵelementStart","ɵɵtwoWayListener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","i0","ɵɵtwoWayBindingSet","selectedClient","ɵɵresetView","ɵɵelementEnd","ɵɵtwoWayProperty","ɵɵtext","_r3","selectedParkerId","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵproperty","searchParkerDropdownValues","bind","keyValueDropdownSettings","ɵɵelement","clientParkerDropdownValues","ɵɵelementContainerStart","ɵɵtemplate","ParkerExtractFormComponent_ng_container_3_div_7_Template","ParkerExtractFormComponent_ng_container_3_ng_template_8_Template","ɵɵtemplateRefExtractor","calendarStart","calendarDepth","authService","isUserStandardUser","clientParkerSelector_r4","ParkerExtractFormComponent","clientService","value","onClientSelected","form","controls","parkerId","setValue","constructor","parkerExtractReportService","searchDTOChanged","EventEmitter","text","subscriptions","ngOnInit","push","valueChanges","subscribe","emit","getUserInfo","linkedParkers","filter","p","isClientManaged","map","id","name","client","sort","a","b","localeCompare","length","allowClientSelection","isUserAdminOrClientAdmin","hasUserClientAssigned","ngOnDestroy","forEach","s","unsubscribe","searchText","of","pipe","parkerDropdownValues","data","items","customer","fullName","firstName","lastName","ɵɵdirectiveInject","AuthService","ClientService","ParkerExtractReportService","selectors","viewQuery","rf","ctx","ParkerExtractFormComponent_app_client_autocomplete_2_Template","ParkerExtractFormComponent_ng_container_3_Template","ReactiveFormsModule","ɵNgNoValidate","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","NgIf","ClientAutocompleteComponent","DatePickerModule","DatePickerComponent","AutocompleteComponent","DropDownListModule","DropDownListComponent","TranslateModule","TranslatePipe","MultiSelectFilterType","MultiSelectCustomAdaptor","CustomDataAdaptor","constructor","getDataFunction","options","getData","bind","args","data","JSON","parse","onFailure","where","value","subscribe","result","onSuccess","httpRequest","fakeHttpRequest","error","MultiSelectFilterComponent","values","_outputValue","outputValue","value","_isInitialized","valuesChange","emit","constructor","isDisabled","EventEmitter","fieldsSettings","undefined","ngOnInit","type","MultiSelectFilterType","MultiSelectItem","DropDownConstantsFactory","createStandardClientDropdownSettings","data","DataManager","adaptor","MultiSelectCustomAdaptor","getDataFunction","ngOnChanges","changes","currentValue","multiselect","setDisabledState","ngAfterViewInit","refreshData","refresh","selectors","viewQuery","rf","ctx","ɵɵelementStart","ɵɵtwoWayListener","$event","i0","ɵɵrestoreView","_r1","ɵɵtwoWayBindingSet","ɵɵresetView","ɵɵelementEnd","ɵɵproperty","ɵɵtwoWayProperty","ɵɵpureFunction1","_c1","MultiSelectModule","MultiSelectComponent","NgClass","styles","ɵɵelementContainerStart","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵtwoWayListener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","i0","ɵɵtwoWayBindingSet","selectedZone","ɵɵresetView","selectedParkerId","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵproperty","searchZoneAutocompleteValues","bind","keyValueDropdownSettings","ɵɵtwoWayProperty","searchParkerDropdownValues","MultiSelectFilterType","MultiSelectItem","ParkerTurnoverFormComponent","selectedClient","clientService","value","onClientSelected","form","get","setValue","constructor","parkTurnoverReportService","searchDTOChanged","EventEmitter","text","subscriptions","ngOnInit","push","valueChanges","subscribe","endTimePicker","min","startTimePicker","max","emit","ngOnDestroy","forEach","s","unsubscribe","client","searchText","searchZones","pipe","map","zoneAutocompleteValues","data","items","zone","id","name","parkerDropdownValues","customer","fullName","firstName","lastName","ɵɵdirectiveInject","ClientService","ParkerTurnoverReportService","selectors","viewQuery","rf","ctx","ɵɵtemplate","ParkerTurnoverFormComponent_ng_container_3_Template","ReactiveFormsModule","ɵNgNoValidate","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","ClientAutocompleteComponent","NgIf","DatePickerModule","DatePickerComponent","AutocompleteComponent","MultiSelectFilterComponent","TranslateModule","TranslatePipe","ɵɵelementContainerStart","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵtwoWayListener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","i0","ɵɵtwoWayBindingSet","selectedZone","ɵɵresetView","selectedAgent","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵproperty","searchZoneAutocompleteValues","bind","keyValueDropdownSettings","ɵɵtwoWayProperty","searchAgentAutocompleteValues","FalseRecordingFormComponent","selectedClient","clientService","value","onClientSelected","form","get","setValue","constructor","falseRecordingReportService","searchDTOChanged","EventEmitter","text","subscriptions","ngOnInit","push","valueChanges","subscribe","endTimePicker","min","startTimePicker","max","emit","ngOnDestroy","forEach","s","unsubscribe","client","searchText","searchZones","pipe","map","zoneAutocompleteValues","data","items","zone","id","name","searchAgents","agentAutocompleteValues","user","userId","firstname","lastname","ɵɵdirectiveInject","ClientService","FalseRecordingReportService","selectors","viewQuery","rf","ctx","ɵɵtemplate","FalseRecordingFormComponent_ng_container_3_Template","ReactiveFormsModule","ɵNgNoValidate","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","ClientAutocompleteComponent","NgIf","DatePickerModule","DatePickerComponent","AutocompleteComponent","TranslateModule","TranslatePipe","styles","ɵɵelementContainerStart","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵproperty","ctx_r0","ParkerRegistrationType","ParkerRegistrationFormComponent","selectedClient","clientService","value","onClientSelected","constructor","searchDTOChanged","EventEmitter","subscriptions","ngOnInit","push","form","valueChanges","subscribe","endTimePicker","get","min","startTimePicker","max","emit","ngOnDestroy","forEach","s","unsubscribe","client","ɵɵdirectiveInject","ClientService","selectors","viewQuery","rf","ctx","ɵɵtwoWayListener","$event","i0","ɵɵtwoWayBindingSet","ɵɵtemplate","ParkerRegistrationFormComponent_ng_container_3_Template","ɵɵtwoWayProperty","ReactiveFormsModule","ɵNgNoValidate","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","ClientAutocompleteComponent","NgIf","DatePickerModule","DatePickerComponent","EnumDropDownListComponent","TranslateModule","TranslatePipe","styles","ɵɵelementContainerStart","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtwoWayListener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","i0","ɵɵtwoWayBindingSet","selectedCompanyId","ɵɵresetView","selectedParkerId","ɵɵlistener","onSearchTextChanged","ɵɵelement","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵproperty","searchCompanyDropdownValues","bind","keyValueDropdownSettings","ɵɵtwoWayProperty","searchParkerDropdownValues","form","controls","searchText","TagsFormComponent","selectedClient","clientService","value","onClientSelected","get","setValue","companyAutocomplete","enabled","constructor","tagsPerParkerReportService","searchDTOChanged","EventEmitter","text","subscriptions","ngOnInit","push","valueChanges","subscribe","emit","ngOnDestroy","forEach","s","unsubscribe","client","reset","searchField","searchForm","pipe","map","companyDropdownValues","data","items","customer","id","name","parkerDropdownValues","fullName","firstName","lastName","ɵɵdirectiveInject","ClientService","TagsPerParkerReportService","selectors","viewQuery","rf","ctx","ɵɵtemplate","TagsFormComponent_ng_container_3_Template","ReactiveFormsModule","ɵNgNoValidate","NgControlStatusGroup","FormGroupDirective","ClientAutocompleteComponent","NgIf","AutocompleteComponent","SearchFieldComponent","AppErrorMessagesComponent","TranslateModule","TranslatePipe","styles","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","ctx_r0","reportsEditForm","ReportsFormComponent","constructor","fb","authService","enumTranslationService","enumDropdownSettings","DropDownConstantsFactory","createEnumDropdownSettings","types","translateEnum","ReportType","unsubscribe$","Subject","ngOnInit","get","valueChanges","pipe","takeUntil","subscribe","value","reset","reportType","emitEvent","filter","type","getUserInfo","roles","some","r","Role","Admin","ClientAdmin","User","ClientUser","key","ParkerExtract","toString","ParkingRanger","DeviceStatus","FalseRecordings","ParkerRegistrations","ngOnDestroy","next","complete","ɵɵdirectiveInject","UntypedFormBuilder","AuthService","EnumTranslationService","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtext","ɵɵtemplate","ReportsFormComponent_div_9_Template","ReportsFormComponent_div_10_Template","ReportsFormComponent_div_11_Template","ReportsFormComponent_div_12_Template","ReportsFormComponent_div_13_Template","ReportsFormComponent_div_14_Template","ɵɵtextInterpolate","ɵɵpipeBind1","controls","TagsPerParker","ParkerTurnover","ReactiveFormsModule","ɵNgNoValidate","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","DropDownListModule","DropDownListComponent","AppErrorMessagesComponent","NgIf","TagsFormComponent","ParkerRegistrationFormComponent","FalseRecordingFormComponent","ParkerTurnoverFormComponent","ParkerExtractFormComponent","DeviceStatusFormComponent","TranslateModule","TranslatePipe","ɵɵelementStart","ɵɵtwoWayListener","$event","ɵɵrestoreView","_r2","ctx_r2","ɵɵnextContext","i0","ɵɵtwoWayBindingSet","selectedClient","ɵɵresetView","ɵɵelementEnd","ɵɵadvance","ɵɵtwoWayProperty","ɵɵlistener","_r4","navigateToReport","onBeforeItemRender","ɵɵproperty","ɵɵpipeBind1","enumSelectionData","ɵɵtext","ɵɵtextInterpolate1","getReportTypeString","data_r5","ɵɵtextInterpolate","data_r6","ɵɵelement","data_r8","_r7","$implicit","downloadFile","id","gridEditForm","ReportsComponent","GridBaseComponent","constructor","clientService","translate","authService","router","enumTranslationService","reportsService","spinnerService","reportVisibilityService","typeFilter","GridConstantsFactory","createCheckBoxFilter","ReportType","translateNumericEnum","filter","data","canUserSeeReport","value","onClientSelected","ngOnInit","DataManager","adaptor","AvpCustomAdaptor","editSettings","allowEditing","args","element","innerHTML","translateService","instant","item","text","reportId","getSavedReportFile","subscribe","savedReportFileDTO","createInvisibleDownloadLink","click","allowClientSelection","isUserAdminOrClientAdmin","hasUserClientAssigned","event","reportType","routeToNavigate","TagsPerParker","tagsPerParkerRoute","ParkerRegistrations","parkerRegistrationsRoute","FalseRecordings","falseRecordingsRoute","ParkerTurnover","parkerTurnoverRoute","ParkerExtract","parkerExtractRoute","DeviceStatus","deviceStatusRoute","AutomaticParking","automaticParkingReportRoute","Payment","paymentReportRoute","UserExtract","userExtractRoute","navigate","report","getEditDialogTitleParams","rowData","initializeEditForm","source","contentBase64","link","document","createElement","fileExtension","getFileExtension","fileType","href","download","reportName","ReportFileType","CSV","ɵɵdirectiveInject","ClientService","TranslateService","AuthService","Router","EnumTranslationService","ReportsService","SpinnerService","ReportVisibilityService","selectors","standalone","features","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","ReportsComponent_div_1_Template","ɵɵelementContainerStart","_r1","actionComplete","actionBegin","ReportsComponent_ng_template_5_Template","ɵɵtemplateRefExtractor","ReportsComponent_ng_template_17_Template","ReportsComponent_ng_template_19_Template","ReportsComponent_ng_template_22_Template","ReportsComponent_ng_template_24_Template","filterSettings","ɵɵpropertyInterpolate","dateFilter","TitleBarComponent","NgIf","ClientAutocompleteComponent","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","ToolbarModule","ToolbarComponent","DropDownButtonModule","DropDownButtonComponent","ReportsFormComponent","TranslateModule","TranslatePipe","styles","WidgetType","DashboardService","constructor","dashboardClient","resolve","getDashboard","pipe","mergeMap","dashboard","updatePanels","of","updateDashboardPanels","UpdateDashboardPanelsDTO","addedPanels","DashboardPanelDTO","id","sizeX","sizeY","row","col","widgetType","WidgetType","LogoWidget","updateDashboardPanelsData","tap","doesPanelCollide","panelToCheck","collisionFound","panels","forEach","panel","isCoveredByPanel","dashboardPanels","push","toString","widgetParameters","ɵɵinject","DashboardClient","factory","ɵfac","providedIn","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","data_r2","parkerTag","controlPlateNumber","ɵɵelementContainerStart","ɵɵelement","ɵɵtemplate","TagsReportComponent_ng_container_3_ng_template_12_Template","ɵɵtemplateRefExtractor","ɵɵlistener","$event","ɵɵrestoreView","_r1","ctx_r2","ɵɵnextContext","ɵɵresetView","saveReport","ɵɵproperty","pageSettings","data","ɵɵpropertyInterpolate","TagsReportComponent","selectedClient","clientService","constructor","fb","router","spinnerService","tagsPerParkerReportService","filterForm","group","parkerId","companyId","searchText","GridConstantsFactory","createStandardPageSettings","ngOnInit","DataManager","adaptor","AvpCustomAdaptor","searchReports","filters","get","value","push","FilterDTO","isComplex","field","operator","FilterOperator","Equal","condition","FilterCondition","Or","predicates","Contains","grid","refresh","saveOptions","showSpinner","tagsPerParkerReportParameterDTO","TagsPerParkerReportParameterDTO","exportReport","subscribe","savedReportFileDTO","navigate","reportsRoute","footer","downloadFile","ɵɵdirectiveInject","ClientService","UntypedFormBuilder","Router","SpinnerService","TagsPerParkerReportService","selectors","viewQuery","rf","ctx","ReportsFooterComponent","TagsReportComponent_ng_container_3_Template","TitleBarComponent","TagsFormComponent","NgIf","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","TranslateModule","TranslatePipe","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind1","ctx_r2","formatType","data_r2","parkerRegistrationType","ɵɵtextInterpolate2","data_r4","parker","firstName","lastName","ɵɵelementStart","ɵɵelementEnd","ɵɵadvance","data_r5","agent","firstname","lastname","ɵɵtemplate","ParkerRegistrationReportComponent_ng_container_3_ng_template_20_span_0_Template","ɵɵproperty","ɵɵtextInterpolate","data_r6","knownTag","controlPlateNumber","ɵɵelementContainerStart","ɵɵelement","ParkerRegistrationReportComponent_ng_container_3_ng_template_8_Template","ɵɵtemplateRefExtractor","ParkerRegistrationReportComponent_ng_container_3_ng_template_12_Template","ParkerRegistrationReportComponent_ng_container_3_ng_template_20_Template","ParkerRegistrationReportComponent_ng_container_3_ng_template_28_Template","ɵɵlistener","$event","ɵɵrestoreView","_r1","ɵɵnextContext","ɵɵresetView","saveReport","pageSettings","data","ɵɵpropertyInterpolate","ParkerRegistrationReportComponent","selectedClient","clientService","constructor","fb","router","spinnerService","parkerRegistrationReportService","filterForm","group","startDate","DateTime","now","startOf","toJSDate","endDate","endOf","GridConstantsFactory","createStandardPageSettings","ngOnInit","DataManager","adaptor","AvpCustomAdaptor","searchReports","get","value","id","parameters","createParkerRegistrationReportParameters","grid","refresh","saveOptions","showSpinner","parkerRegistrationsReportParameterDTO","exportReport","subscribe","savedReportFileDTO","navigate","reportsRoute","footer","downloadFile","type","ParkerRegistrationType","ParkerRegistrationsReportParameterDTO","dateRange","DateRangeParameterDTO","fromJSDate","toFormat","ɵɵdirectiveInject","ClientService","UntypedFormBuilder","Router","SpinnerService","ParkerRegistrationReportService","selectors","viewQuery","rf","ctx","ReportsFooterComponent","ParkerRegistrationReportComponent_ng_container_3_Template","controls","TitleBarComponent","ParkerRegistrationFormComponent","NgIf","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","TranslateModule","TranslatePipe","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind1","ctx_r2","formatParkerRegistrationType","data_r2","parkerRegistrationType","data_r4","parker","firstName","lastName","data_r5","agent","firstname","lastname","ɵɵelementStart","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","data_r6","knownTag","controlPlateNumber","ɵɵelementContainerStart","ɵɵelement","ɵɵtemplate","FalseRecordingReportComponent_ng_container_3_ng_template_8_Template","ɵɵtemplateRefExtractor","FalseRecordingReportComponent_ng_container_3_ng_template_12_Template","FalseRecordingReportComponent_ng_container_3_ng_template_20_Template","FalseRecordingReportComponent_ng_container_3_ng_template_26_Template","ɵɵlistener","$event","ɵɵrestoreView","_r1","ɵɵnextContext","ɵɵresetView","saveReport","ɵɵproperty","pageSettings","data","ɵɵpropertyInterpolate","FalseRecordingReportComponent","selectedClient","clientService","constructor","fb","router","spinnerService","falseRecordingReportService","filterForm","group","startDate","DateTime","now","startOf","toJSDate","endDate","endOf","zoneId","GridConstantsFactory","createStandardPageSettings","ngOnInit","DataManager","adaptor","AvpCustomAdaptor","searchReports","falseRecordingsReportParameters","createFalseRecordingReportParameterDTO","grid","refresh","saveOptions","showSpinner","falseRecordingsReportParameterDTO","exportReport","subscribe","savedReportFileDTO","navigate","reportsRoute","footer","downloadFile","direction","ParkerRegistrationType","FalseRecordingsReportParameterDTO","dateRange","DateRangeParameterDTO","fromJSDate","get","value","toFormat","agentId","ɵɵdirectiveInject","ClientService","UntypedFormBuilder","Router","SpinnerService","FalseRecordingReportService","selectors","viewQuery","rf","ctx","ReportsFooterComponent","FalseRecordingReportComponent_ng_container_3_Template","controls","TitleBarComponent","FalseRecordingFormComponent","NgIf","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","TranslateModule","TranslatePipe","ɵɵtext","ɵɵtextInterpolate2","data_r2","parker","firstName","lastName","ɵɵtextInterpolate1","ɵɵpipeBind1","data_r3","isVisitorParking","ctx_r4","formatTime","data_r4","durationInMinutes","ɵɵelementStart","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","data_r6","knownTag","controlPlateNumber","ɵɵpipeBind2","data_r7","amount","formatCurrency","data_r8","currency","summaryData","totalNumberOfParkings","ɵɵpureFunction1","_c1","Currency","summary_r9","totalPrice","ɵɵtemplate","ParkerTurnoverReportComponent_ng_container_3_div_40_div_2_Template","ɵɵproperty","totalAmounts","ɵɵelementContainerStart","ParkerTurnoverReportComponent_ng_container_3_ng_template_6_Template","ɵɵtemplateRefExtractor","ɵɵelement","ParkerTurnoverReportComponent_ng_container_3_ng_template_16_Template","ParkerTurnoverReportComponent_ng_container_3_ng_template_20_Template","ParkerTurnoverReportComponent_ng_container_3_ng_template_24_Template","ParkerTurnoverReportComponent_ng_container_3_ng_template_32_Template","ParkerTurnoverReportComponent_ng_container_3_ng_template_36_Template","ɵɵlistener","$event","ɵɵrestoreView","_r1","ɵɵnextContext","ɵɵresetView","saveReport","ParkerTurnoverReportComponent_ng_container_3_div_39_Template","ParkerTurnoverReportComponent_ng_container_3_div_40_Template","pageSettings","data","ɵɵpropertyInterpolate","ParkerTurnoverReportComponent","selectedClient","clientService","totalAmount","parkTurnoverReportService","constructor","fb","router","reportsService","spinnerService","filterForm","group","startDate","DateTime","now","startOf","toJSDate","endDate","endOf","zoneId","parkerId","GridConstantsFactory","createStandardPageSettings","ngOnInit","DataManager","adaptor","AvpCustomAdaptor","searchReports","get","value","parkerTurnoverReportParameterDTO","createReportParametersFromFilters","searchParameters","grid","refresh","getReportSummary","subscribe","summary","sort","a","b","saveOptions","showSpinner","exportReport","savedReportFileDTO","navigate","savedReportsRoute","footer","downloadFile","type","minutes","StringHelper","transformToTimeRepresentation","ParkerTurnoverReportParameterDTO","dateRange","DateRangeParameterDTO","fromJSDate","toFormat","parkerIds","ɵɵdirectiveInject","ClientService","UntypedFormBuilder","Router","ReportsService","SpinnerService","ParkerTurnoverReportService","selectors","viewQuery","rf","ctx","ReportsFooterComponent","ParkerTurnoverReportComponent_ng_container_3_Template","controls","TitleBarComponent","ParkerTurnoverFormComponent","NgIf","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","NgFor","DecimalPipe","TranslateModule","TranslatePipe","styles","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind1","data_r2","isVisitorParking","ctx_r3","formatTime","data_r3","durationInMinutes","ɵɵpipeBind2","data_r5","amount","formatCurrency","data_r6","currency","ɵɵtextInterpolate2","data_r7","appliedStartDate","appliedEndDate","tmp_19_0","data_r8","feeFromParkingSessions","undefined","data_r9","cap","data_r10","totalParkingWithCap","data_r11","fixedFee","data_r12","chargedAmount","data_r13","data_r14","currencyConversionFactor","data_r15","convertedChargedAmount","convertedCurrency","ɵɵelementStart","ɵɵelementEnd","ɵɵelement","ɵɵtemplate","ParkerExtractReportComponent_ng_container_3_div_30_ng_template_11_Template","ɵɵtemplateRefExtractor","ParkerExtractReportComponent_ng_container_3_div_30_ng_template_15_Template","ParkerExtractReportComponent_ng_container_3_div_30_ng_template_19_Template","ParkerExtractReportComponent_ng_container_3_div_30_ng_template_23_Template","ParkerExtractReportComponent_ng_container_3_div_30_ng_template_27_Template","ParkerExtractReportComponent_ng_container_3_div_30_ng_template_31_Template","ParkerExtractReportComponent_ng_container_3_div_30_ng_template_35_Template","ParkerExtractReportComponent_ng_container_3_div_30_ng_template_39_Template","ParkerExtractReportComponent_ng_container_3_div_30_ng_template_44_Template","ɵɵadvance","ɵɵtextInterpolate","ɵɵproperty","pageSettings","summaryData","subscriptionSummary","ɵɵpropertyInterpolate","ɵɵpureFunction0","_c2","ɵɵpropertyInterpolate2","summaryCurrency","ɵɵelementContainerStart","ParkerExtractReportComponent_ng_container_3_ng_template_10_Template","ParkerExtractReportComponent_ng_container_3_ng_template_14_Template","ParkerExtractReportComponent_ng_container_3_ng_template_24_Template","ParkerExtractReportComponent_ng_container_3_ng_template_28_Template","ParkerExtractReportComponent_ng_container_3_div_30_Template","ɵɵlistener","$event","ɵɵrestoreView","_r1","ɵɵnextContext","ɵɵresetView","saveReport","ParkerExtractReportComponent_ng_container_3_div_32_Template","data","length","ParkerExtractReportComponent","selectedClient","clientService","constructor","fb","router","authService","spinnerService","parkerExtractReportService","filterForm","group","month","DateTime","now","startOf","toJSDate","parkerId","GridConstantsFactory","createStandardPageSettings","ngOnInit","DataManager","adaptor","AvpCustomAdaptor","isUserStandardUser","searchReports","allowClientSelection","isUserAdminOrClientAdmin","hasUserClientAssigned","controls","value","reportParameters","ParkerExtractReportParameterDTO","fromJSDate","toFormat","grid","refresh","getReportSummary","subscribe","summary","saveOptions","showSpinner","exportReport","savedReportFileDTO","navigate","reportsRoute","footer","downloadFile","minutes","StringHelper","transformToTimeRepresentation","type","Currency","ɵɵdirectiveInject","ClientService","FormBuilder","Router","AuthService","SpinnerService","ParkerExtractReportService","selectors","viewQuery","rf","ctx","ReportsFooterComponent","ParkerExtractReportComponent_ng_container_3_Template","TitleBarComponent","ParkerExtractFormComponent","NgIf","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","DecimalPipe","DatePipe","TranslateModule","TranslatePipe","styles","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","onRefresh","ɵɵelement","ɵɵelementEnd","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind1","formatDeviceType","data_r4","device","deviceType","formatDeviceBrand","data_r5","brand","formatDeviceDirection","data_r6","direction","getDeviceIpAddress","data_r7","formatDeviceState","data_r8","state","data_r9","enabled","ɵɵelementContainerStart","$event","_r3","markLastSignalRows","ɵɵtemplate","DeviceStatusReportComponent_ng_container_4_ng_template_8_Template","ɵɵtemplateRefExtractor","DeviceStatusReportComponent_ng_container_4_ng_template_12_Template","DeviceStatusReportComponent_ng_container_4_ng_template_18_Template","DeviceStatusReportComponent_ng_container_4_ng_template_22_Template","DeviceStatusReportComponent_ng_container_4_ng_template_26_Template","DeviceStatusReportComponent_ng_container_4_ng_template_30_Template","saveReport","ɵɵadvance","ɵɵproperty","pageSettings","data","ɵɵpropertyInterpolate","DeviceStatusReportComponent","selectedClient","clientService","constructor","fb","router","spinnerService","deviceStatusReportService","filterForm","group","zoneId","GridConstantsFactory","createStandardPageSettings","ngOnInit","DataManager","adaptor","AvpCustomAdaptor","searchReports","filters","get","value","push","FilterDTO","isComplex","field","operator","FilterOperator","Equal","grid","refresh","saveOptions","showSpinner","deviceStatusReportParameterDTO","DeviceStatusReportParameterDTO","exportReport","subscribe","savedReportFileDTO","navigate","reportsRoute","footer","downloadFile","type","ZoneDeviceType","ZoneDeviceBrand","ZoneDeviceDirection","ZoneDeviceState","deviceIpAddresses","id","e","row","rowData","fourHoursBefore","DateTime","now","minus","hours","lastSignal","NotPresent","classList","add","ɵɵdirectiveInject","ClientService","UntypedFormBuilder","Router","SpinnerService","DeviceStatusReportService","selectors","viewQuery","rf","ctx","ReportsFooterComponent","DeviceStatusReportComponent_div_3_Template","DeviceStatusReportComponent_ng_container_4_Template","TitleBarComponent","DeviceStatusFormComponent","NgIf","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","TranslateModule","TranslatePipe","styles","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵelement","ɵɵproperty","ɵɵpipeBind2","ɵɵpureFunction2","_c0","ctx_r0","parkerName","companyName","ɵɵsanitizeHtml","ɵɵpureFunction1","_c1","ɵɵtextInterpolate2","data_r2","firstName","lastName","ɵɵelementContainerStart","ɵɵtemplate","LinkParkerToUserComponent_ng_container_5_div_1_Template","LinkParkerToUserComponent_ng_container_5_div_2_Template","LinkParkerToUserComponent_ng_container_5_ng_template_14_Template","ɵɵtemplateRefExtractor","linkedParkers","LinkParkerToUserComponent","constructor","activatedRoute","authService","spinnerService","parkerClient","userAccountClient","linkFailed","linkSuccessful","ngOnInit","isUserAllowedToLinkParker","isUserStandardUser","userLinkCode","snapshot","queryParams","code","showSpinner","linkParkerToUser","LinkParkerToUserDTO","subscribe","parker","company","name","info","error","ɵɵdirectiveInject","ActivatedRoute","AuthService","SpinnerService","ParkerClient","UserAccountClient","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","LinkParkerToUserComponent_div_3_Template","LinkParkerToUserComponent_div_4_Template","LinkParkerToUserComponent_ng_container_5_Template","TitleBarComponent","NgIf","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","TranslateModule","TranslatePipe","styles","ɵɵelementStart","ɵɵelement","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","ɵɵtemplate","ConfirmEmailComponent_div_1_div_1_Template","ConfirmEmailComponent_div_1_div_2_Template","ɵɵproperty","ctx_r0","success","ConfirmEmailComponent","constructor","spinnerService","route","userAccountClient","ngOnInit","showSpinner","queryParams","subscribe","params","userId","code","confirmEmail","ɵɵdirectiveInject","SpinnerService","ActivatedRoute","UserAccountClient","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ConfirmEmailComponent_div_1_Template","TitleBarComponent","NgIf","TranslateModule","TranslatePipe","ClientUserGuard","ActivationGuardBase","constructor","authService","router","checkLogin","url","isUserLoggedIn","isUserClientUser","isUserAdminOrClientAdmin","isUserAdminOrClientAdminOrCompanyAdmin","redirectUrl","navigate","homeRoute","loginRoute","ɵɵinject","AuthService","Router","factory","ɵfac","providedIn","TagsAdministrationService","ShowInactiveService","constructor","parkerTagClient","clientService","getData","skip","take","filters","sortBy","sortDirection","showInactive","push","FilterDTO","isComplex","field","operator","FilterOperator","Equal","value","selectedClient","of","PagedResultDTOOfParkerTagDTO","items","totalNumberOfItems","searchTags","id","addRecord","data","deleteRecord","updateRecord","ɵɵinject","ParkerTagClient","ClientService","factory","ɵfac","providedIn","ɵɵelementStart","ɵɵlistener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","onSearchTextChanged","ɵɵelementEnd","ɵɵtwoWayListener","_r3","i0","ɵɵtwoWayBindingSet","showInactive","ɵɵpropertyInterpolate","ɵɵpipeBind1","ɵɵtwoWayProperty","ɵɵtext","ɵɵtextInterpolate","formatControlPlateType","data_r5","ɵɵtextInterpolate1","data_r6","ɵɵadvance","data_r7","controlPlateNumber","ɵɵelement","ɵɵclassProp","data_r8","defect","ɵɵpipeBind2","data_r9","modifiedOn","formatIsActive","data_r10","data_r11","active","_r4","actionComplete","actionBegin","ɵɵtemplate","TagsAdministrationComponent_div_7_ng_template_13_Template","ɵɵtemplateRefExtractor","TagsAdministrationComponent_div_7_ng_template_15_Template","TagsAdministrationComponent_div_7_ng_template_19_Template","TagsAdministrationComponent_div_7_ng_template_25_Template","TagsAdministrationComponent_div_7_ng_template_29_Template","TagsAdministrationComponent_div_7_ng_template_35_Template","TagsAdministrationComponent_div_7_ng_template_37_Template","ɵɵproperty","data","filterSettings","pageSettings","editSettings","searchOptions","checkBoxFilter","isActiveFilter","gridCommands","TagsAdministrationComponent","GridBaseComponent","constructor","clientService","translate","tagsAdministrationService","router","fb","spinnerService","GridConstantsFactory","createCheckBoxFilter","fields","type","SfCommandButtonType","Edit","buttonOption","cssClass","iconCss","ngOnInit","DataManager","adaptor","AvpCustomAdaptor","isActiveColumnName","editDialogTitle","addDialogTitle","addIndexFindColumnName","selectedClient","value","onClientSelected","args","requestType","parkerId","rowData","navigate","parkerAdministrationRoute","queryParams","cancel","ControlPlateType","controlPlateType","getEditDialogTitleParams","initializeEditForm","gridEditForm","group","ɵɵdirectiveInject","ClientService","TranslateService","TagsAdministrationService","Router","FormBuilder","SpinnerService","selectors","standalone","features","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","TagsAdministrationComponent_app_search_field_5_Template","TagsAdministrationComponent_ejs_checkbox_6_Template","TagsAdministrationComponent_div_7_Template","TitleBarComponent","ClientAutocompleteComponent","NgIf","SearchFieldComponent","CheckBoxModule","CheckBoxComponent","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","TranslateModule","TranslatePipe","DatePipe","ParkingHelper","constructor","isAutomaticParking","parkingProcessInfoService","translate","spinnerService","clientDropdownValues","subscriptionsDropdownValues","zoneDropdownValues","controlPlateDropdownValues","zonesLoaded","Subject","hasFoundZones","hasFoundSubscriptions","hasFoundControlPlates","assignFormFieldSubscriptions","parkingForm","subscriptions","user","add","get","valueChanges","pipe","filter","val","distinctUntilChanged","switchMap","clientId","getAutomaticParkingScheduleZoneInfos","getParkingProcessZoneInfos","subscribe","parkingProcessZoneInfoDTO","createZoneDropdownValues","length","find","z","id","getRawValue","setValue","onlySelf","disable","enable","zoneId","createSubscriptionDropdownValues","s","subscriptionId","handleVehicleFields","value","controlPlateId","setValidators","Validators","required","selectedPlateEntry","plate","type","countryCode","numberPlate","updateValueAndValidity","onLangChange","v","map","name","instant","handleParkingProcessInfo","parkingProcessInfo","activeCheckinInfo","createClientDropdownValues","getZoneNameArray","zone","subscriptionAssignment","subscription","assignment","controlPlateNumber","parkingSpaceNumber","initDropDownValuesForValidForm","showSpinner","tap","next","parkingProcessZoneInfo","reset","error","of","createParkingProcessDropdownFieldsValues","zoneInfo","linkedParkerTags","linkedParkers","parker","parkerId","tags","tag","toUpperCase","controlPlateType","resetZone","form","resetSubscription","resetWeekdays","resetTimeDuration","names","push","parent","reverse","subscriptionAssignments","parkingSpaceNumberDefinition","sort","o1","o2","toLowerCase","localeCompare","join","isClientManaged","client","isActive","automaticParkingSchedulesEnabled","lp","index","self","findIndex","WeekDayFlagsHelper","WEEK_DAY_FLAG_WORKING_DAYS","WeekDayFlags","Monday","Tuesday","Wednesday","Thursday","Friday","WEEK_DAY_FLAG_WEEKEND","Saturday","Sunday","WEEK_DAY_FLAG_ALL_DAYS","WEEK_DAY_FLAG_NONE","daysToFlag","weekdays","weekdaysFlag","allowedMonday","allowedTuesday","allowedWednesday","allowedThursday","allowedFriday","allowedSaturday","allowedSunday","luxonWeekdayToFlag","weekday","hasFlags","source","daysToCheckFor","shiftFlagsOneDayBack","dayFlag","overflowAdd","shiftFlagsOneDayForward","ParkingTariffValidity","constructor","tariffValidity","startDateTime","endDateTime","tariff","isFallbackTariff","getWeekDayFlagsOfValidity","weekDayFlags","date","i","startOf","WeekDayFlagsHelper","luxonWeekdayToFlag","weekday","plus","days","ParkingTimeGrid","constructor","startUtc","endUtc","start","toLocal","end","setup","parkingTariffs","tariffsMaxValidityTimeUtc","fallbackTariffs","tariffValidityList","addTariffsToValidityList","sort","a","b","startDateTime","toMillis","getTariffValiditiesAt","dateTime","activeTariff","activeTariffRunningSince","tariffValidityEnumerable","filter","t","endDateTime","isTwentyFourSevenTariff","durationInMinutes","maxParkingDurationInMin","plus","minutes","tariff","id","getNextSwitchoverTimeForForeignParkingTariff","currentDateTime","sessionEndTime","filteredTariffValidities","isFallbackTariff","length","tariffs","tariffsMaxValidityTime","isFallback","endDate","startOf","forEach","tariffValidity","ParkingTariffValidity","DateTime","fromISO","push","weekInMinutes","lastValidity","date","WeekDayFlagsHelper","hasFlags","onWeekDays","luxonWeekdayToFlag","weekday","startTime","days","ParkingTimeRange","constructor","startTime","startTimeUtc","toUTC","getDurationInMinutes","endTime","diff","toMillis","doRangesCover","timeRange","ParkingSessionTimeSlice","constructor","startTime","offense","ParkerRegistrationOffense","NoOffense","timeRange","ParkingTimeRange","ParkingSessionTimeSliceCollection","Array","hasCollisionWith","otherCollection","find","t","tOther","timeRange","doRangesCover","Array","prototype","getNonFallbackParkingTariffs","filter","v","isFallbackTariff","getFallbackParkingTariffs","TariffSelectionStrategy","constructor","tariffValidityList","Factory","TariffSelectionStrategyTariffWithMaxCoverage","selectNext","selectionAt","currentTariffValidity","nonFallbackParkingTariffValidityList","getNonFallbackParkingTariffs","length","sort","a","b","calculateMintuesLeft","selectedValidity","endDateTime","toMillis","fallbackValidityList","getFallbackParkingTariffs","fallbackValidity","tariffValidity","minutesLeft","diff","Math","min","tariff","maxParkingDurationInMin","Number","MAX_SAFE_INTEGER","SessionTimeSlicer","constructor","timeGrid","for","sliceOverWholeGridSpan","slice","start","end","startTime","endTime","timeSliceCollection","ParkingSessionTimeSliceCollection","push","sliceRecursively","sessionEndTime","activeTariffValidity","activeTariffRunningSince","parkingSessionTimeSlices","activeTimeSlice","ParkingSessionTimeSlice","tariffValidityList","getTariffValiditiesAt","tariff","length","offense","ParkerRegistrationOffense","ParkingTimeTooLong","ZoneNotAllowed","timeRange","tariffSelectionStrategy","TariffSelectionStrategy","Factory","selectNext","evaluateNextTariffSwitchOverTime","nextSlicer","tariffEndTime","endDateTime","tariffEndTimeMaxDuration","maxParkingDurationInMin","plus","minutes","foreignParkingTariffNextSwitchOverTime","isFallbackTariff","getNextSwitchoverTimeForForeignParkingTariff","DateTime","min","BitHelper","isBitSet","numberValue","index","binaryString","toString","length","ParkingService","constructor","parkerRegistrationClient","parkingProcessInfoService","automaticParkingScheduleClient","parkingClient","toastService","spinnerService","translateService","resolve","loadParkingProcessInfos","checkin","checkinDTO","showSpinner","checkinUserParking","pipe","tap","registration","offense","ParkerRegistrationOffense","NoOffense","offenseTranslation","instant","showError","switchMap","catchError","err","throwError","checkout","checkoutDTO","checkoutUserParking","getParkingProcessInfos","parkingProcessInfos","length","getParkingProcessZoneInfos","clientId","getAutomaticParkingScheduleZoneInfos","map","zoneInfo","zone","__spreadProps","__spreadValues","subscriptionAssignments","assignment","subscription","tariffs","createOvernightTariffsIfNeeded","tempTariffs","forEach","t","isTwentyFourSevenTariff","endDateTime","DateHelper","setDateTimeTo1970FromDuration","startTime","plus","minutes","durationInMinutes","day","getDateTimeStart1970","duration","diff","onWeekdays","onWeekDays","BitHelper","isBitSet","tempTariff","ParkingProcessTariffInfoDTO","id","Duration","fromDurationLike","push","ɵɵinject","ParkerRegistrationClient","ParkingProcessInfoService","AutomaticParkingScheduleClient","ParkingClient","ToastService","SpinnerService","TranslateService","factory","ɵfac","providedIn","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r2","ctx_r2","ɵɵnextContext","ɵɵresetView","onPreviousParkingProcess","ɵɵelement","ɵɵelementEnd","ɵɵtext","ɵɵadvance","ɵɵtextInterpolate2","selectedParkingProcessInfoIndex","numActiveParkingSessions","_r4","onNextParkingProcess","ɵɵtextInterpolate1","ɵɵpipeBind2","ɵɵpureFunction1","_c0","errors","clientNotFound","$event","_r5","resetZone","onClientValueChange","ɵɵtemplate","ParkingComponent_ng_container_1_div_13_small_6_Template","ɵɵtextInterpolate","ɵɵpipeBind1","ɵɵproperty","clientDropdownSettings","clientDropdownValues","parkingForm","get","_c1","last_r8","zone_r7","ParkingComponent_ng_container_1_div_14_ng_template_5_div_0_span_1_Template","data_r9","name","ParkingComponent_ng_container_1_div_14_ng_template_5_div_0_Template","length","last_r11","zone_r10","ɵɵelementContainerStart","ParkingComponent_ng_container_1_div_14_ng_template_7_ng_container_0_span_1_Template","data_r12","ParkingComponent_ng_container_1_div_14_ng_template_7_ng_container_0_Template","_c2","zoneNotFound","_r6","resetSubscription","onZoneValueChange","ParkingComponent_ng_container_1_div_14_ng_template_5_Template","ɵɵtemplateRefExtractor","ParkingComponent_ng_container_1_div_14_ng_template_7_Template","ParkingComponent_ng_container_1_div_14_small_10_Template","zoneDropdownValues","_c3","subscriptionNotFound","_r13","onSubscriptionValueChange","ParkingComponent_ng_container_1_div_15_small_6_Template","ParkingComponent_ng_container_1_div_15_small_7_Template","subscriptionsDropdownValues","noZoneSelected","_c4","controlPlateNotFound","toUpperCase","vehicleGroup","ControlPlateType","countryList","enumDropdownSettings","_r14","onControlPlateValueChange","ParkingComponent_ng_container_1_div_17_small_12_Template","ParkingComponent_ng_container_1_div_17_div_13_Template","controlPlateDropdownValues","isAddVehicle","getMaxParkingDuration","ParkingComponent_ng_container_1_div_18_div_22_div_9_Template","getMaxEndTime","maxEndTime","ParkingComponent_ng_container_1_div_18_div_22_Template","ParkingComponent_ng_container_1_div_18_div_23_Template","getStartTime","ɵɵpureFunction2","_c5","isOverMaxParkingDuration","isCloseToMaxParkingDuration","getTimeElapsed","hasTariffs","isParkingTimeExpired","getMaxParkingEndTimeWithDuration","_r15","isCheckedIn","checkout","checkin","_c6","valid","ParkingComponent_ng_container_1_div_7_Template","ParkingComponent_ng_container_1_div_8_Template","ParkingComponent_ng_container_1_div_9_Template","_r1","onNewParkingProcess","ParkingComponent_ng_container_1_div_13_Template","ParkingComponent_ng_container_1_div_14_Template","ParkingComponent_ng_container_1_div_15_Template","ParkingComponent_ng_container_1_div_16_Template","ParkingComponent_ng_container_1_div_17_Template","ParkingComponent_ng_container_1_div_18_Template","ParkingComponent_ng_container_1_div_21_Template","ParkingComponent_ng_container_1_div_22_Template","ParkingComponent_ng_container_1_div_23_Template","ParkingComponent_ng_container_1_div_24_Template","ParkingComponent_ng_container_1_div_25_Template","ParkingComponent_ng_container_1_button_26_Template","showClientDropDown","clientSelected","zoneSelected","parkingSpaceNumberDefinition","value","isParkingPossible","subscriptionSelected","hasFoundZones","isAdd","hasFoundSubscriptions","hasFoundControlPlates","ParkingComponent","parkingService","parkingProcessInfos","parkingHelper","parkingProcessZoneInfoDTO","maxDuration","maxParkingDuration","StringHelper","transformToTimeRepresentation","DateTime","now","minus","minutes","hasLinkedParker","user","linkedParkers","checkinUserParkingRegistration","find","c","id","durationInMinutes","diff","registrationDateTime","constructor","authService","fb","cdr","translate","enumTranslationService","spinnerService","dataLoaded","DropDownConstantsFactory","createEnumDropdownSettings","createStandardClientDropdownSettings","parkingEndTimeText","group","clientId","Validators","required","zoneId","subscriptionId","parkingSpaceNumber","controlPlateId","newVehicle","type","countryCode","numberPlate","maxLength","isParkingUnlimited","timerUnsubscribe","Subject","formSubscriptions","Subscription","ParkingHelper","automaticScheduleEndTime","duration","maxIntendedParkingDurationMinutes","toFormat","plus","pre","startOf","toMillis","days","ngOnInit","getUserInfo","translateEnum","CountryISO2","initForm","at","activeCheckinInfo","assignment","subscriptionAssignment","subscription","fallbackParkingTariffs","denyForeignParkingSubscriptionFallback","zone","foreignParkersAllowed","foreignParkingSubscription","tariffs","updateParkingTimes","validTo","toUTC","maxParkingDurationInMin","interval","pipe","takeUntil","subscribe","refreshParkingTimesFromForm","ngAfterViewChecked","detectChanges","ngOnDestroy","unsubscribe","next","complete","formValues","getRawValue","checkinDTO","CheckinUserParkingDTO","selectedSubscriptionAssignmentId","controlPlateType","controlPlateCountryCode","controlPlateNumber","plateEntry","p","plate","set","second","millisecond","val","setFormFieldsEnabledState","loadUserInfoDTO","checkoutDTO","CheckoutUserParkingDTO","sessionId","event","isInteracted","Math","max","handleParkingProcessInfo","reset","assignFormFieldSubscriptions","createParkingProcessDropdownFieldsValues","setValue","handleVehicleFields","add","valueChanges","z","subscriptionAssignments","s","foreignParkingSubscriptionInfos","f","defaultForeignParkingSubscriptionId","enable","emitEvent","disable","tariffsMaxValidityTime","subscriptionsMaxParkingDuration","startTimeUtc","utc","timeGrid","ParkingTimeGrid","setup","slices","SessionTimeSlicer","for","sliceOverWholeGridSpan","offense","ParkerRegistrationOffense","NoOffense","timeRange","endTime","startTime","ɵɵdirectiveInject","AuthService","UntypedFormBuilder","ChangeDetectorRef","TranslateService","ParkingService","EnumTranslationService","SpinnerService","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ParkingComponent_ng_container_1_Template","ParkingComponent_ng_template_2_Template","noLinkedParker_r16","TitleBarComponent","NgIf","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","DropDownListModule","DropDownListComponent","AppErrorMessagesComponent","NgFor","NgClass","EnumDropDownListComponent","TranslateModule","TranslatePipe","styles","DeviceInteractionService","ShowInactiveService","constructor","clientService","toastService","zoneDeviceClient","getData","skip","take","filters","sortBy","sortDirection","selectedClient","push","FilterDTO","isComplex","field","operator","FilterOperator","Equal","value","zoneId","searchDevices","id","pipe","map","pagedResult","items","filter","i","supportedDevicePositions","length","find","p","supportedCommands","forEach","dev","position","currentDevicePosition","toLowerCase","PagedResultDTOOfZoneDeviceDTO","slice","totalNumberOfItems","of","addRecord","data","deleteRecord","updateRecord","executeDeviceCommand","dto","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","ɵɵinject","ClientService","ToastService","ZoneDeviceClient","factory","ɵfac","providedIn","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","ɵɵpipeBind1","ctx_r0","zoneDropdownValues","dropdownSettings","ɵɵlistener","ɵɵrestoreView","_r2","ɵɵnextContext","ɵɵresetView","onRefresh","ɵɵtext","ɵɵtextInterpolate1","getDeviceType","data_r4","deviceType","getDeviceBrand","data_r5","brand","ɵɵelementContainerStart","command_r7","_r6","$implicit","data_r8","executeDeviceCommand","id","currentDevicePosition","commandDescription","command","ɵɵtemplate","DeviceInteractionComponent_div_7_ng_template_23_ng_container_0_Template","DeviceInteractionComponent_div_7_ng_template_23_ng_container_1_Template","supportedCommands","$event","_r3","dataBound","actionComplete","actionBegin","DeviceInteractionComponent_div_7_ng_template_3_Template","ɵɵtemplateRefExtractor","DeviceInteractionComponent_div_7_ng_template_13_Template","DeviceInteractionComponent_div_7_ng_template_17_Template","DeviceInteractionComponent_div_7_ng_template_23_Template","data","filterSettings","pageSettings","searchOptions","ɵɵpropertyInterpolate","DeviceInteractionComponent","GridBaseComponent","constructor","clientService","translate","fb","zoneClient","zoneDeviceClient","deviceInteractionService","spinnerService","DropDownConstantsFactory","createStandardClientDropdownSettings","filterForm","group","zone","selectedClient","value","onClientSelected","grid","refresh","ngOnInit","DataManager","adaptor","AvpCustomAdaptor","clientSelected$","pipe","startWith","filter","c","switchMap","clientId","groupFilter","FilterDTO","isComplex","field","operator","FilterOperator","Equal","searchZones","SortDirection","Ascending","subscribe","zones","items","z","isGroupingElement","map","name","get","valueChanges","zoneId","args","autoFitColumns","deviceId","position","ExecuteZoneDeviceCommandDTO","observeCommandStatus","type","ZoneDeviceType","ZoneDeviceBrand","getEditDialogTitleParams","rowData","initializeEditForm","origPosition","stopInterval$","Subject","cnt","interval","getDevice","takeUntil","device","next","complete","ɵɵdirectiveInject","ClientService","TranslateService","UntypedFormBuilder","ZoneClient","ZoneDeviceClient","DeviceInteractionService","SpinnerService","selectors","standalone","features","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtwoWayListener","i0","ɵɵtwoWayBindingSet","DeviceInteractionComponent_div_5_Template","DeviceInteractionComponent_button_6_Template","DeviceInteractionComponent_div_7_Template","ɵɵtwoWayProperty","TitleBarComponent","ReactiveFormsModule","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","ClientAutocompleteComponent","NgIf","DropDownListModule","DropDownListComponent","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","NgFor","TooltipModule","TooltipComponent","TranslateModule","TranslatePipe","styles","ParkingTariffValidityHelper","TWO_DAYS_IN_MILLIS","findPossibleTariffValidityRangesMatchingForWeekDays","tariffValidities","weekDays","tariffValidityRangeOnDay","Array","forEach","tariffValidity","day","startDateTime","startOf","startTime","diff","i","endDateTime","WeekDayFlagsHelper","hasFlags","luxonWeekdayToFlag","weekday","push","endTime","Duration","fromObject","hours","minutes","plus","days","tariffValidityRanges","mergeValidityRanges","findIntersectingRanges","getCappedEndTime","toMillis","fromDurationLike","ranges","sort","a","b","coveredRangesInDay","coveredRange","j","length","rangesSeparatedByDay","actualIntersections","newIntersections","intersection","range","oneDayInMillis","filter","_c0","_c1","_c2","_c3","_c4","_c5","_c6","_c7","_c8","TextBoxComponent_1","outputs$b","twoWays$a","TextBoxComponent","TextBoxComponent_1","TextBox","ngEle","srenderer","viewContainerRef","injector","cdr","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","rf","ctx","__decorate","ComponentMixins","TextAreaComponent_1","outputs$a","twoWays$9","TextAreaComponent","TextAreaComponent_1","TextArea","ngEle","srenderer","viewContainerRef","injector","cdr","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","rf","ctx","__decorate","ComponentMixins","NumericTextBoxComponent_1","outputs$9","twoWays$8","NumericTextBoxComponent","NumericTextBoxComponent_1","NumericTextBox","ngEle","srenderer","viewContainerRef","injector","cdr","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","rf","ctx","__decorate","ComponentMixins","NumericTextBoxModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","MaskedTextBoxComponent_1","outputs$8","twoWays$7","MaskedTextBoxComponent","MaskedTextBoxComponent_1","MaskedTextBox","ngEle","srenderer","viewContainerRef","injector","cdr","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","rf","ctx","__decorate","ComponentMixins","MaskedTextBoxModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","SliderComponent_1","outputs$7","twoWays$6","SliderComponent","SliderComponent_1","Slider","ngEle","srenderer","viewContainerRef","injector","cdr","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","rf","ctx","__decorate","ComponentMixins","SliderModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","input","outputs$6","UploadedFilesDirective","ComplexBase","viewContainerRef","setValue","__ngFactoryType__","ɵɵdirectiveInject","ViewContainerRef","ɵɵdefineDirective","ɵɵInheritDefinitionFeature","FilesDirective","ArrayBase","rf","ctx","dirIndex","ɵɵcontentQuery","_t","ɵɵqueryRefresh","ɵɵloadQuery","UploaderComponent_1","outputs$5","twoWays$5","UploaderComponent","UploaderComponent_1","Uploader","ngEle","srenderer","viewContainerRef","injector","cdr","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","_c0","FilesDirective","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","__decorate","Template","ComponentMixins","ColorPickerComponent_1","outputs$4","twoWays$4","ColorPickerComponent","ColorPickerComponent_1","ColorPicker","ngEle","srenderer","viewContainerRef","injector","cdr","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","_c1","rf","ctx","__decorate","ComponentMixins","SignatureComponent_1","outputs$3","twoWays$3","SignatureComponent","SignatureComponent_1","Signature","ngEle","srenderer","viewContainerRef","injector","cdr","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","_c2","rf","ctx","__decorate","ComponentMixins","RatingComponent_1","outputs$2","twoWays$2","RatingComponent","RatingComponent_1","Rating","ngEle","srenderer","viewContainerRef","injector","cdr","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","_c3","_c4","_c5","_c6","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","_c7","__decorate","Template","ComponentMixins","OtpInputComponent_1","outputs$1","twoWays$1","OtpInputComponent","OtpInputComponent_1","OtpInput","ngEle","srenderer","viewContainerRef","injector","cdr","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","_c8","rf","ctx","__decorate","ComponentMixins","SmartTextAreaComponent_1","outputs","twoWays","SmartTextAreaComponent","SmartTextAreaComponent_1","SmartTextArea","ngEle","srenderer","viewContainerRef","injector","cdr","setValue","FormBase","ComponentBase","registerFunction","value","disabled","__ngFactoryType__","ɵɵdirectiveInject","ElementRef","Renderer2","ViewContainerRef","Injector","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NG_VALUE_ACCESSOR","forwardRef","ɵɵInheritDefinitionFeature","rf","ctx","__decorate","ComponentMixins","DurationTimeSliderComponent","startTime","value","_startTime","slider","refresh","setTimeout","writeValue","duration","maxDuration","limitsData","enabled","minEnd","constructor","translateService","step","durationChange","EventEmitter","min","max","tooltipData","placement","isVisible","ticksData","largeStep","rangeType","ngOnInit","tooltipChangeHandler","args","durationInMinutes","startTimeDateTime","DateTime","fromJSDate","now","startOf","text","instant","toFormat","plus","minutes","emit","renderingTicksHandler","ɵɵdirectiveInject","TranslateService","selectors","viewQuery","rf","ctx","ɵɵelementStart","ɵɵlistener","$event","i0","ɵɵrestoreView","_r1","ɵɵresetView","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","SliderModule","SliderComponent","styles","DurationInputComponent","duration","_duration","resetInnerDuration","minDuration","_minTotalMinutes","maxDuration","_maxTotalMinutes","innerDuration","durationStr","_innerDuration","viewInitialized","onTouched","length","hours","Number","parseInt","substring","minutes","timeNeedsReset","durationChange","emit","onChange","constructor","EventEmitter","disabled","ngAfterViewInit","writeValue","registerOnChange","fn","registerOnTouched","setDisabledState","isDisabled","onBlur","DateTime","now","startOf","plus","toFormat","selectors","inputs","styleClass","inputStyle","outputs","standalone","features","ɵɵProvidersFeature","provide","NG_VALUE_ACCESSOR","useExisting","forwardRef","multi","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtwoWayListener","$event","i0","ɵɵtwoWayBindingSet","ɵɵlistener","ɵɵelementEnd","ɵɵtwoWayProperty","ɵɵproperty","MaskedTextBoxModule","MaskedTextBoxComponent","NgClass","NgStyle","styles","ɵɵelementStart","ɵɵlistener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","durationChange","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","form","controls","startTime","value","duration","maxDuration","TimePickerWithTimeSliderComponent","maxDate","possibleStartTimeRanges","length","targetMaxDate","DateTime","fromISO","plus","minutes","day","Date","toJSDate","constructor","timepickerStrictMode","showSliderBeforeTimeSelection","startTimeChange","EventEmitter","customFormat","showSlider","unsubscribe$","Subject","ngOnInit","combineLatest","valueChanges","pipe","startWith","tap","val","takeUntil","subscribe","emit","endTimeStr","setFullYear","calculatedEndTime","ngOnDestroy","next","complete","setValue","fromJSDate","toFormat","selectors","inputs","outputs","standalone","features","ɵɵProvidersFeature","MaskedDateTimeService","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtext","ɵɵelement","ɵɵtemplate","TimePickerWithTimeSliderComponent_div_21_Template","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵtextInterpolate","ReactiveFormsModule","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","TimePickerModule","TimePickerComponent","AppErrorMessagesComponent","DurationInputComponent","NgIf","DurationTimeSliderComponent","TranslateModule","TranslatePipe","styles","ɵɵelementContainerStart","ɵɵelement","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","ctx_r1","id","fieldsEnum","item_r1","value","ɵɵpureFunction3","_c0","fixedWidth","inline","form","get","disabled","ɵɵtextInterpolate","ɵɵpipeBind1","text","MultiSelectButtonGroupComponent","constructor","formBuilder","enumTranslationService","translateKey","hide","cssClass","IdProvider","getNextId","ngOnInit","keyList","getKeys","translateNumericEnum","filter","item","some","e","ɵɵdirectiveInject","UntypedFormBuilder","EnumTranslationService","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","MultiSelectButtonGroupComponent_ng_container_1_Template","ɵɵclassMap","ReactiveFormsModule","CheckboxControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","NgFor","NgClass","TranslateModule","TranslatePipe","styles","Weekdays","DaySelectorComponent","constructor","ngOnInit","selectAll","form","controls","allowedMonday","disabled","setValue","allowedTuesday","allowedWednesday","allowedThursday","allowedFriday","allowedSaturday","allowedSunday","selectWeekdays","selectWeekend","allActive","value","weekdaysActive","weekendActive","areAllDaysDisabled","areWeekdaysDisabled","areWeekendsDisabled","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵlistener","ɵɵtext","ɵɵproperty","ɵɵadvance","ɵɵpureFunction2","_c0","ɵɵtextInterpolate1","ɵɵpipeBind1","ReactiveFormsModule","NgControlStatusGroup","FormGroupDirective","MultiSelectButtonGroupComponent","NgClass","TranslateModule","TranslatePipe","styles","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵproperty","ɵɵpureFunction1","_c0","last_r4","ɵɵadvance","ɵɵtextInterpolate","zone_r3","ɵɵtemplate","ParkingAdministrationEditFormComponent_div_14_ng_template_6_div_0_span_1_Template","data_r5","name","ParkingAdministrationEditFormComponent_div_14_ng_template_6_div_0_Template","length","last_r7","zone_r6","ɵɵelementContainerStart","ParkingAdministrationEditFormComponent_div_14_ng_template_8_ng_container_0_span_1_Template","data_r8","ParkingAdministrationEditFormComponent_div_14_ng_template_8_ng_container_0_Template","ɵɵlistener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","resetSubscription","ParkingAdministrationEditFormComponent_div_14_ng_template_6_Template","ɵɵtemplateRefExtractor","ParkingAdministrationEditFormComponent_div_14_ng_template_8_Template","ɵɵpipeBind1","clientDropdownSettings","zoneDropdownValues","_r9","resetWeekdays","subscriptionsDropdownValues","ɵɵelement","controlPlateDropdownValues","weekdaysFormGroup","range_r11","startTimeStr","endTimeStr","possibleParkingEndTime","ParkingAdministrationEditFormComponent_div_19_div_2_div_2_tr_6_Template","ɵɵtextInterpolate1","possibleStartTimeRanges","_r10","onStartTimeChange","ParkingAdministrationEditFormComponent_div_19_div_2_div_2_Template","timePickerFormGroup","maxDuration","parkingForm","controls","startTime","valid","ParkingAdministrationEditFormComponent_div_19_div_2_Template","ParkingAdministrationEditFormComponent_div_19_ng_template_3_Template","hasPossibleStartTimeRanges","noMatchingSlices_r12","ɵɵpipeBind2","_c1","overlappingSchedule","ParkingAdministrationEditFormComponent","getError","clientDropdownValues","parkingHelper","parkingSpaceNumberDefinition","clientSelected","clientId","value","zoneSelected","zoneId","isSubscriptionSelected","subscriptionId","isEdit","id","parkingProcessZoneInfoDTO","weekdays","constructor","authService","parkingService","translate","cdr","spinnerService","DropDownConstantsFactory","createStandardClientDropdownSettings","formSubscriptions","Subscription","ParkingHelper","ngOnInit","user","getUserInfo","weekdayControlNames","Object","keys","getRawValue","initDropDownValuesForValidForm","subscribe","assignFormFieldSubscriptions","ngAfterViewChecked","detectChanges","ngOnDestroy","unsubscribe","resetZone","event","isInteracted","selectedTime","selectedTimeAsDateTime","DateTime","fromJSDate","selectedStartTime","diff","startOf","find","pair","toMillis","endTime","closestPairForSelectedTime","reduce","prev","curr","Math","abs","DateHelper","getDateTimeStart1970","plus","toJSDate","setValue","duration","weekDayFlags","WeekDayFlagsHelper","daysToFlag","timeGrid","Number","MAX_SAFE_INTEGER","baseStartDateTime","start","i","startDateTime","days","hasFlags","luxonWeekdayToFlag","weekday","slices","SessionTimeSlicer","for","slice","hours","actualMaxDuration","offense","ParkerRegistrationOffense","NoOffense","timeRange","end","min","selectedSubcsription","maxParkingDurationInMin","add","combineLatest","valueChanges","pipe","startWith","filter","tap","zone","z","selectedSubscriptionAssignment","subscriptionAssignments","subscription","tariffs","nowUtc","now","toUTC","ParkingTimeGrid","setup","validTo","denyForeignParkingSubscriptionFallback","foreignParkersAllowed","foreignParkingSubscriptionInfos","f","defaultForeignParkingSubscriptionId","validDaysFlag","tariffValidityList","forEach","t","getWeekDayFlagsOfValidity","enableDisableWeekdayButtons","distinctUntilChanged","selectedWeekdaysFlag","validities","ParkingTariffValidityHelper","findPossibleTariffValidityRangesMatchingForWeekDays","addExtendedInfo","dayControlName","get","enable","emitEvent","validDays","index","BitHelper","isBitSet","disable","r","oneDayInMillis","normalize","toFormat","ɵɵdirectiveInject","AuthService","ParkingService","TranslateService","ChangeDetectorRef","SpinnerService","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ParkingAdministrationEditFormComponent_div_14_Template","ParkingAdministrationEditFormComponent_div_15_Template","ParkingAdministrationEditFormComponent_div_16_Template","ParkingAdministrationEditFormComponent_div_17_Template","ParkingAdministrationEditFormComponent_div_18_Template","ParkingAdministrationEditFormComponent_div_19_Template","ParkingAdministrationEditFormComponent_div_20_Template","ParkingAdministrationEditFormComponent_div_21_Template","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","AppErrorMessagesComponent","DropDownListModule","DropDownListComponent","NgIf","NgFor","NgClass","DaySelectorComponent","TimePickerWithTimeSliderComponent","YesNoGroupButtonComponent","TranslateModule","TranslatePipe","styles","ParkingAdministrationService","ShowInactiveService","constructor","automaticParkingScheduleClient","toastService","automaticParkingSchedules","getData","skip","take","filters","sortBy","sortDirection","searchAutomaticParkingSchedules","pipe","tap","pagedSchedules","items","addRecord","data","createAutomaticParkingSchedule","catchError","error","doesErrorExistAlready","ErrorType","serverError","showApiExeption","throwError","deleteRecord","id","deleteAutomaticParkingSchedule","showError","updateRecord","updateAutomaticParkingSchedule","ɵɵinject","AutomaticParkingScheduleClient","ToastService","factory","ɵfac","providedIn","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r3","ctx_r1","ɵɵnextContext","ɵɵresetView","onAdd","ɵɵelementEnd","ɵɵadvance","ɵɵpropertyInterpolate","ɵɵpipeBind1","ɵɵtext","ɵɵtextInterpolate","formatIsActive","data_r4","ɵɵelement","ɵɵtemplate","ParkingAdministrationComponent_ng_container_1_ng_template_17_div_0_Template","ɵɵproperty","data_r5","isActive","gridEditForm","ɵɵelementContainerStart","$event","_r1","actionComplete","actionBegin","ParkingAdministrationComponent_ng_container_1_ng_template_7_Template","ɵɵtemplateRefExtractor","ParkingAdministrationComponent_ng_container_1_ng_template_15_Template","ParkingAdministrationComponent_ng_container_1_ng_template_17_Template","ParkingAdministrationComponent_ng_container_1_ng_template_20_Template","data","filterSettings","pageSettings","editSettings","searchOptions","isActiveFilter","gridCommands","ɵɵtextInterpolate1","ParkingAdministrationComponent","GridBaseComponent","hasLinkedParker","authService","getUserInfo","linkedParkers","length","constructor","clientService","translate","fb","parkingAdministrationService","spinnerService","ngOnInit","DataManager","adaptor","AvpCustomAdaptor","isActiveColumnName","editDialogTitle","addDialogTitle","addIndexFindColumnName","createOverlappingSchedulesValidation","schedules","control","idToExclude","get","value","tagId","parkingDuration","startTimeAsJsDate","weekDayFlags","WeekDayFlagsHelper","daysToFlag","starTimeAsDateTime","DateTime","fromJSDate","startTimeMillis","diff","startOf","toMillis","schedule","find","s","id","tag","onWeekDays","schedStartTimeMillis","parkingStartTime","schedEndTimeMillis","parkingDurationInMinutes","endTimeMillis","overlappingSchedule","getEditDialogTitleParams","rowData","name","initializeEditForm","group","Validators","required","clientId","client","subscriptionId","subscriptionAssignment","zoneId","zone","parkingSpaceNumber","controlPlateId","weekdays","allowedMonday","BitHelper","isBitSet","allowedTuesday","allowedWednesday","allowedThursday","allowedFriday","allowedSaturday","allowedSunday","validators","CustomValidatorsFactory","atLeastOneFromFormGroupRequired","startTime","DateHelper","setDateTimeTo1970FromDuration","toJSDate","duration","automaticParkingSchedules","getDataToSave","getRawValue","WeekDayFlags","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday","UpdateAutomaticParkingScheduleDTO","getTimeOfDayDurationFromJsDate","subscriptionAssignmentId","CreateAutomaticParkingScheduleDTO","ɵɵdirectiveInject","ClientService","TranslateService","AuthService","FormBuilder","ParkingAdministrationService","SpinnerService","selectors","standalone","features","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ParkingAdministrationComponent_ng_container_1_Template","ParkingAdministrationComponent_ng_template_2_Template","noLinkedParker_r6","TitleBarComponent","NgIf","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","ToolbarModule","ToolbarComponent","ItemDirective","ItemsDirective","ParkingAdministrationEditFormComponent","TranslateModule","TranslatePipe","UserGuard","ActivationGuardBase","constructor","authService","router","checkLogin","url","isUserLoggedIn","isUserStandardUser","redirectUrl","navigate","homeRoute","loginRoute","ɵɵinject","AuthService","Router","factory","ɵfac","providedIn","ClientActiveGuard","ActivationGuardBase","constructor","authService","router","checkLogin","url","isUserAdmin","isUserStandardUser","getUserInfo","client","isActive","redirectUrl","logout","navigate","loginRoute","queryParams","error","ɵɵinject","AuthService","Router","factory","ɵfac","providedIn","ɵɵelementStart","ɵɵtwoWayListener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","i0","ɵɵtwoWayBindingSet","selectedClient","ɵɵresetView","ɵɵelementEnd","ɵɵtwoWayProperty","PaymentFormComponent","constructor","clientService","authService","searchDTOChanged","EventEmitter","isUserMode","isUserStandardUser","subscriptions","Subscription","value","onClientSelected","ngOnInit","add","form","valueChanges","subscribe","endTimePicker","controls","startDate","min","startTimePicker","endDate","max","emit","ngOnDestroy","unsubscribe","client","ɵɵdirectiveInject","ClientService","AuthService","selectors","viewQuery","rf","ctx","ɵɵtemplate","PaymentFormComponent_app_client_autocomplete_2_Template","ɵɵtext","ɵɵelement","ɵɵproperty","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ReactiveFormsModule","ɵNgNoValidate","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","CommonModule","NgIf","ClientAutocompleteComponent","DatePickerModule","DatePickerComponent","TranslateModule","TranslatePipe","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind1","ctx_r2","formatPaymentState","data_r2","paymentState","formatCurrency","data_r4","requestCurrency","ɵɵelementContainerStart","ɵɵelementStart","ɵɵelement","ɵɵtemplate","PaymentReportComponent_ng_container_3_ng_template_18_Template","ɵɵtemplateRefExtractor","ɵɵelementEnd","PaymentReportComponent_ng_container_3_ng_template_24_Template","ɵɵlistener","$event","ɵɵrestoreView","_r1","ɵɵnextContext","ɵɵresetView","saveReport","ɵɵadvance","ɵɵproperty","pageSettings","data","ɵɵpropertyInterpolate","PaymentReportComponent","constructor","fb","router","spinnerService","paymentReportService","clientService","filterForm","group","startDate","DateTime","now","startOf","toJSDate","endDate","endOf","GridConstantsFactory","createStandardPageSettings","ngOnInit","DataManager","adaptor","AvpCustomAdaptor","searchReports","controls","value","parameters","createReportParametersFromFilters","grid","refresh","saveOptions","showSpinner","reportParameterDTO","exportReport","subscribe","savedReportFileDTO","navigate","reportsRoute","footer","downloadFile","type","Currency","state","ParkingSessionPaymentState","PaymentReportParameterDTO","dateRange","DateRangeParameterDTO","fromJSDate","toFormat","clientId","selectedClient","id","ɵɵdirectiveInject","FormBuilder","Router","SpinnerService","PaymentReportService","ClientService","selectors","viewQuery","rf","ctx","ReportsFooterComponent","PaymentReportComponent_ng_container_3_Template","TitleBarComponent","PaymentFormComponent","NgIf","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","TranslateModule","TranslatePipe","AdministrationItemType","ItemTypeUtil","getIconClassByType","type","AdministrationItemType","Zone","ZoneDevice","Tariff","Subscription","ConfigBasedStructuralElementCollection","ConfigBasedStructuralElement","iconTextCodes","folderIcon","tariffIcon","subscriptionIcon","zoneIcon","deviceIcon","qrCodeIcon","TreeViewBaseComponent","constructor","clientService","modalService","hasPendingDetailChanges","itemSelected","EventEmitter","iconTextCodes","selectedItem","parentInfo","isSupportingCopyMode","isSupportingMoveMode","getIconClassByType","type","ItemTypeUtil","hasIcon","reset","tree","refresh","resetSelection","setSelectedItem","selectedNodes","onCollapseAll","canDeactivate","subscribe","collapseAll","onNodeSelected","args","newSelectedItem","nodeData","action","parseNodeId","id","clientId","selectedClient","itemData","getTreeData","at","treeNodeId","parentID","parentData","parentId","parentType","onNodeDragStop","position","dropIndicator","draggedNodeData","droppedNodeData","cancel","canDropNode","onNodeDragging","isCopyMode","moveNode","nodeId","parentNodeData","childNodes","child","hasChildren","expanded","length","removeNodes","expandAll","find","node","dto","index","getInsertPositionIndex","moveNodes","dialog","showOkCancelDialog","merge","onOkSubject","pipe","map","onCancelSubject","of","handleAddNodeEvent","eventInfo","nodes","AdministrationItemType","ConfigBasedStructuralElementCollection","ZoneCollection","selectedNode","item","createdItem","hasChildrenByDefault","inactive","data","active","name","addNodeAtProperPosition","addNodeAtProperPositionByParentNodeId","parentNodeId","parentNode","addNodes","setTimeout","children","childCount","i","itemDataCompare","Zone","isGroupingElement","a","b","localeCompare","handleRemoveNodeEvent","findAllNodesOfTree","forEach","handleUpdateNodeEvent","isItemInactive","updateCanAddXyFlags","onAddNewItem","isHighlighted","emit","rootNodes","findTopNodes","itemId","matchingNodes","push","__spreadProps","__spreadValues","event","altKey","ctrlKey","shiftKey","setMoveIndicator","ɵɵdirectiveInject","ClientService","ModalService","selectors","viewQuery","rf","ctx","GenerateQrCodeDetailsService","constructor","zoneClient","spinnerService","toastService","generateQrCode","zoneId","isStickerMode","parkingSpaceNumberDefinition","showSpinner","qrCodeDto","ZoneQrCodeInfosDTO","parkingSpaceNumbers","pipe","tap","showSuccess","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","of","ɵɵinject","ZoneClient","SpinnerService","ToastService","factory","ɵfac","providedIn","ɵɵtext","ɵɵtextInterpolate2","ɵɵpipeBind1","ctx_r0","zone","name","ɵɵelementStart","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵtextInterpolate","ɵɵpropertyInterpolate","ɵɵproperty","parkingSpaceNumberControl","ɵɵtemplate","GenerateQrCodeDetailsComponent_ng_template_4_div_5_Template","isStickerModeControl","parkingSpaceNumberDefinition","ɵɵlistener","ɵɵrestoreView","_r2","ɵɵnextContext","ɵɵresetView","closeDialog","generateQrCode","ɵɵtextInterpolate1","GenerateQrCodeDetailsComponent","constructor","qrService","FormControl","openDialog","generateQrCodeDialog","show","hide","setValue","id","value","subscribe","dto","createInvisibleDownloadLink","click","generatedQrCodesDTO","source","contentBase64","link","document","createElement","href","download","zipName","ɵɵdirectiveInject","GenerateQrCodeDetailsService","selectors","viewQuery","rf","ctx","GenerateQrCodeDetailsComponent_ng_template_2_Template","ɵɵtemplateRefExtractor","GenerateQrCodeDetailsComponent_ng_template_4_Template","GenerateQrCodeDetailsComponent_ng_template_6_Template","DialogModule","DialogComponent","YesNoGroupButtonComponent","ReactiveFormsModule","DefaultValueAccessor","NgControlStatus","FormControlDirective","NgIf","TooltipModule","TooltipComponent","TranslateModule","TranslatePipe","styles","ItemIdUtil","createItemId","id","type","uniqueIdent","toString","parseItemId","itemId","parts","split","ItemCache","constructor","typesExcludedFromCache","cachedItems","getCachedItem","id","type","find","cachedItem","addOrUpdateItem","itemData","dto","console","error","includes","Object","assign","push","removeItem","filter","resetCache","TreeViewZoneBasedService","constructor","zoneClient","clientService","tariffClient","zoneDeviceClient","parkingSubscriptionClient","spinnerService","toastService","itemCache","ItemCache","AdministrationItemType","SubscriptionCollection","ZoneCollection","ZoneDeviceCollection","ZoneDevice","nodeIdCnt","getData","skip","take","filters","sortBy","sortDirection","clientId","selectedClient","id","parentType","parentId","resetCache","push","FilterDTO","isComplex","field","operator","FilterOperator","IsNull","parentIdfilter","find","filter","parsedData","parseNodeId","value","toString","type","mappedItems","items","totalNumberOfItems","getNextNodeId","hasChildren","expanded","itemData","name","inactive","dto","TariffCollection","of","searchZones","SortDirection","Ascending","pipe","map","pagedItems","forEach","item","mappedItem","Zone","hasChildZones","assignedTariffs","length","isGroupingElement","addOrUpdateItem","zoneInfo","getCachedItem","tariffObservable","getParkingTariffsForZone","tariffs","Tariff","active","subscriptionId","zoneObservable","deviceObservable","deviceCollectionItems","hasDevicesAssigned","forkJoin","input","concat","Equal","searchDevices","enabled","tariffInfo","getParkingSubscription","subscription","Subscription","tariffFilter","None","searchParkingTariffs","subscriptionFilter","searchParkingSubscriptions","addRecord","data","updateRecord","deleteRecord","detachTariffFromSubscription","tariffId","showSpinner","assignNewSubscriptionToTariff","tap","index","findIndex","tariff","splice","showSuccess","catchError","error","showError","ErrorType","serverError","moveZoneDevice","deviceId","targetZoneId","moveDevice","moveItemSuccess","handleItemError","moveZone","zoneId","addTariffToZone","moveTariffToNewZone","addItemSuccess","moveTariff","updatedTariff","removeItemSuccess","addSubscriptionToTariff","targetTariffId","moveSubscriptionToNewTariff","moveSubscription","itemId","ItemIdUtil","createItemId","nodeId","parseItemId","ɵɵinject","ZoneClient","ClientService","ParkingTariffClient","ZoneDeviceClient","ParkingSubscriptionClient","SpinnerService","ToastService","factory","ɵfac","providedIn","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r2","ctx_r2","ɵɵnextContext","ɵɵresetView","onAddZone","ɵɵelementEnd","ɵɵpropertyInterpolate","iconTextCodes","zoneIcon","ɵɵpipeBind1","_r4","onAddDevice","deviceIcon","_r5","onAddTariff","tariffIcon","_r6","onRemoveTariff","_r7","onAddSubscription","subscriptionIcon","_r8","onRemoveSubscription","_r9","onGenerateQrCode","qrCodeIcon","ɵɵelement","ɵɵproperty","getIconClassByType","data_r10","itemData","type","ɵɵtemplate","TreeViewZoneBasedComponent_ng_template_14_span_2_Template","ɵɵtext","ɵɵadvance","ɵɵpureFunction1","_c1","inactive","hasIcon","_c2","isHighlighted","ɵɵtextInterpolate","name","TreeViewZoneBasedComponent","TreeViewBaseComponent","itemCache","service","constructor","clientService","spinnerService","modalService","toastService","canAddZone","canAddDevice","canAddTariff","canRemoveTariff","canAddSubscription","canRemoveSubscription","canGenerateQrCode","tooltipAnimation","open","effect","delay","close","fieldNames","id","parentID","dataSource","DataManager","adaptor","AvpCustomAdaptor","treeViewFieldSetting","Object","assign","resetCache","reset","addNode","eventInfo","parentId","parentInfo","item","parentNodeId","treeNodeId","createdNode","handleAddNodeEvent","getNextNodeId","addOrUpdateItem","AdministrationItemType","Subscription","updateSubscriptionInfoOnTariffNodes","removeNode","handleRemoveNodeEvent","removeItem","isItemInactive","Tariff","data","active","ZoneDevice","enabled","updateNode","handleUpdateNodeEvent","Zone","nodeData","tree","getTreeData","selectedItem","at","dto","isGroupingElement","childNodes","child","length","forEach","ZoneDeviceCollection","removeNodes","deviceNode","find","hasChildren","hasDevicesAssigned","addNodes","hasChildZones","assignedTariffs","refreshNode","onNodeDragStart","args","info","parseNodeId","draggedNodeData","ZoneCollection","cancel","isCopyMode","TariffCollection","subscription","subscriptionId","getCachedItem","hasActiveSubscription","showWarning","onNodeDragStop","targetInfo","droppedNodeData","addTariffToZone","subscribe","treeNode","addNodeAtProperPositionByParentNodeId","addSubscriptionToTariff","moveZone","moveNode","moveZoneDevice","moveTariff","moveSubscription","showOkCancelDialog","onOkSubject","setSelectedItem","selectedNodes","detachTariffFromSubscription","generateQrCodeDialog","openDialog","onAddNewItem","updateCanAddXyFlags","assignedZones","tariffs","canDropNode","draggedNode","droppedNode","parentData","node","SubscriptionCollection","nodeId","tariffId","ignoreNodeId","findAllNodesOfTree","tariff","ɵɵdirectiveInject","TreeViewZoneBasedService","ClientService","SpinnerService","ModalService","ToastService","selectors","viewQuery","rf","ctx","i0","_r1","onCollapseAll","TreeViewZoneBasedComponent_e_item_5_Template","TreeViewZoneBasedComponent_e_item_6_Template","TreeViewZoneBasedComponent_e_item_7_Template","TreeViewZoneBasedComponent_e_item_8_Template","TreeViewZoneBasedComponent_e_item_9_Template","TreeViewZoneBasedComponent_e_item_10_Template","TreeViewZoneBasedComponent_e_item_11_Template","$event","onNodeSelected","onNodeDragging","TreeViewZoneBasedComponent_ng_template_14_Template","ɵɵtemplateRefExtractor","TooltipModule","TooltipComponent","ToolbarModule","ToolbarComponent","ItemDirective","ItemsDirective","NgIf","TreeViewModule","TreeViewComponent","NgClass","GenerateQrCodeDetailsComponent","TranslateModule","TranslatePipe","styles","TreeViewConfigBasedService","constructor","configBasedAdminClient","clientService","tariffClient","parkingSubscriptionClient","spinnerService","toastService","itemCache","ItemCache","AdministrationItemType","SubscriptionCollection","ConfigBasedStructuralElementCollection","TariffCollection","subscriptionCollectionId","nodeIdCnt","getData","skip","take","filters","sortBy","sortDirection","clientId","selectedClient","id","parentType","parentId","resetCache","push","FilterDTO","isComplex","field","operator","FilterOperator","IsNull","parentIdfilter","find","filter","parsedData","parseNodeId","value","toString","type","mappedItems","items","totalNumberOfItems","getNextNodeId","hasChildren","expanded","itemData","name","inactive","dto","of","searchConfigBasedStructuralEntries","SortDirection","Ascending","pipe","map","pagedItems","forEach","item","ConfigBasedStructuralElement","addOrUpdateItem","mappedItem","hasChildEntries","hasSubscriptions","entryObservable","Equal","subscriptionObservable","searchParkingSubscriptions","Subscription","active","tariffs","deleted","length","forkJoin","input","concat","None","searchParkingTariffs","Tariff","condition","FilterCondition","Or","predicates","addRecord","data","updateRecord","deleteRecord","deleteStructuralEntry","sourceEntryId","showSpinner","deleteConfigBasedStructuralEntry","tap","sourceEntry","getCachedItem","getConfigBasedStructuralEntry","subscribe","entry","showSuccess","catchError","error","showError","ErrorType","serverError","moveStructuralEntry","structuralEntryId","sourceParentId","targetParentId","updateConfigBasedStructuralEntry","UpdateConfigBasedStructuralEntryDTO","targetEntry","moveItemSuccess","moveItemError","moveTariff","tariffId","targetSubscriptionId","assignNewSubscriptionToTariff","parkingTariff","subscriptionId","deleteTariff","deleteParkingTariff","moveSubscriptionFromElement","targetEntryId","moveToStructuralEntry","deleteSubscriptionFromElement","removeFromStructuralEntry","removeItemSuccess","addSubscriptionToElement","addToStructuralEntry","addItemSuccess","itemId","ItemIdUtil","createItemId","nodeId","parseItemId","ɵɵinject","ConfigBasedAdminClient","ClientService","ParkingTariffClient","ParkingSubscriptionClient","SpinnerService","ToastService","factory","ɵfac","providedIn","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r2","ctx_r2","ɵɵnextContext","ɵɵresetView","onAddStructuralEntry","ɵɵelementEnd","ɵɵpropertyInterpolate","iconTextCodes","folderIcon","ɵɵpipeBind1","_r4","onRemoveStructuralEntry","_r5","onAddSubscription","subscriptionIcon","_r6","onRemoveSubscription","_r7","onAddTariff","tariffIcon","ɵɵelement","ɵɵproperty","getTreeItemClasses","data_r8","itemData","ɵɵtemplate","TreeViewConfigBasedComponent_ng_template_12_span_3_Template","ɵɵtext","ɵɵadvance","ɵɵpureFunction1","_c0","inactive","hasIcon","type","_c1","isHighlighted","ɵɵtextInterpolate","name","TreeViewConfigBasedComponent","TreeViewBaseComponent","itemCache","service","constructor","clientService","spinnerService","modalService","toastService","canAddTariff","canRemoveTariff","canAddSubscription","canAddStructuralEntry","canRemoveStructuralEntry","canRemoveSubscription","tooltipAnimation","open","effect","delay","close","fieldNames","id","parentID","dataSource","DataManager","adaptor","AvpCustomAdaptor","treeViewFieldSetting","Object","assign","item","classes","push","getIconClassByType","dto","isSubscriptionSet","addNode","eventInfo","parentId","parentInfo","parentNodeId","treeNodeId","createdNode","handleAddNodeEvent","getNextNodeId","addOrUpdateItem","AdministrationItemType","Tariff","addTariffNodeOnSubscriptionNodes","Subscription","getCachedItem","ConfigBasedStructuralElement","hasSubscriptions","hasChildEntries","updateCanAddXyFlags","removeNode","handleRemoveNodeEvent","removeTariffNodes","data","removeItem","isItemInactive","active","ZoneDevice","enabled","updateNode","handleUpdateNodeEvent","onNodeDragStart","args","info","parseNodeId","draggedNodeData","ConfigBasedStructuralElementCollection","cancel","nodeData","tree","getTreeData","at","showWarning","onNodeDragStop","sourceInfo","targetInfo","droppedNodeData","moveStructuralEntry","subscribe","moveNode","moveTariff","sourceNodeIds","findAllNodesOfTree","map","node","forEach","find","value","removeNodes","targetNode","expanded","child","length","hasChildren","refreshNode","newNodeData","addNodeAtProperPosition","isCopyMode","addSubscriptionToElement","treeNode","addNodeAtProperPositionByParentNodeId","moveSubscriptionFromElement","SubscriptionCollection","structuralEntries","showOkCancelDialog","onOkSubject","deleteStructuralEntry","selectedItem","setSelectedItem","selectedNodes","deleteSubscriptionFromElement","subscriptionCollectionId","onAddNewItem","canDropNode","draggedNode","droppedNode","targetNodeData","TariffCollection","nodeId","subscriptionId","tariffNode","ignoreNodeId","subscription","tariffs","tariffId","ɵɵdirectiveInject","TreeViewConfigBasedService","ClientService","SpinnerService","ModalService","ToastService","selectors","standalone","features","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","onCollapseAll","TreeViewConfigBasedComponent_e_item_5_Template","TreeViewConfigBasedComponent_e_item_6_Template","TreeViewConfigBasedComponent_e_item_7_Template","TreeViewConfigBasedComponent_e_item_8_Template","TreeViewConfigBasedComponent_e_item_9_Template","$event","onNodeSelected","onNodeDragging","TreeViewConfigBasedComponent_ng_template_12_Template","ɵɵtemplateRefExtractor","TooltipModule","TooltipComponent","ToolbarModule","ToolbarComponent","ItemDirective","ItemsDirective","NgIf","TreeViewModule","TreeViewComponent","NgClass","TranslateModule","TranslatePipe","styles","StructuralEntryDetailsService","constructor","configBasedAdminClient","toastService","spinnerService","isBusy","reset","getEntry","entryId","showSpinner","getConfigBasedStructuralEntry","pipe","tap","catchError","error","of","createEntry","createEntryDTO","createConfigBasedStructuralEntry","showSuccess","doesErrorExistAlready","ErrorType","serverError","showError","updateEntry","updateEntryDTO","updateConfigBasedStructuralEntry","handleErrorResponse","deleteEntry","id","deleteConfigBasedStructuralEntry","response","errorObject","JSON","parse","ErrorCode","ɵɵinject","ConfigBasedAdminClient","ToastService","SpinnerService","factory","ɵfac","providedIn","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r2","ctx_r2","ɵɵnextContext","ɵɵresetView","onDelete","ɵɵtext","ɵɵelementEnd","ɵɵproperty","isBusy","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵelement","ɵɵtemplate","StructuralEntryDetailsComponent_form_0_button_20_Template","_r1","submitForm","onCancelClicked","entryForm","controls","name","id","value","valid","formChanged","cancelButtonText","StructuralEntryDetailsComponent","detailsInitInfo","valueStr","JSON","stringify","detailsInitInfoStr","_detailInitInfo","service","reset","getEntry","subscribe","entry","_selectedEntry","addEntry","loadFormData","isFormReady","constructor","modalService","fb","cancel","EventEmitter","entryCreated","entryUpdated","entryDeleted","hasPendingDetailChangesChanged","subscriptions","Subscription","group","control","Validators","required","isSubscriptionSet","add","valueChanges","v","hasChanges","formInitialValue","getRawValue","updateFormChangedState","ngOnDestroy","unsubscribe","emit","data","getDTOFromFormData","updateEntry","createEntry","closeForm","showOkCancelDialog","onOkSubject","deleteEntry","onlySelf","rawValue","dto","UpdateConfigBasedStructuralEntryDTO","CreateConfigBasedStructuralEntryDTO","parentId","clientId","ɵɵdirectiveInject","StructuralEntryDetailsService","ModalService","FormBuilder","selectors","inputs","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","StructuralEntryDetailsComponent_form_0_Template","NgIf","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","AppErrorMessagesComponent","YesNoGroupButtonComponent","TranslateModule","TranslatePipe","MultiFieldDurationPickerHelper","createDurationMembers","totalMinutes","days","hours","minutes","Math","floor","leftMinutes","calculateTotalMinutes","setZeroAsNull","CurrencyCents","MultiFieldDurationPickerComponent","constructor","ngOnInit","selectors","inputs","form","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵelement","ɵɵtext","ɵɵelementEnd","ɵɵproperty","ɵɵadvance","ReactiveFormsModule","DefaultValueAccessor","NumberValueAccessor","NgControlStatus","NgControlStatusGroup","MinValidator","FormGroupDirective","FormControlName","NumericDirective","styles","SubscriptionDetailsGeneralComponent","constructor","CurrencyEnum","Currency","CurrencyCentsEnum","CurrencyCents","ParkingSubscriptionType","MultipleCarsPerUserTreatAs","Usage","ParkingSubscriptionUsage","PaidBy","ParkingSubscriptionPaidBy","ngOnInit","selectors","inputs","subscriptionForm","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵproperty","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","controls","name","description","ɵɵtextInterpolate","pcConfirmTime","maxParkingDurationInMinForm","currency","value","roundSessionFeeToXCents","ɵɵpureFunction1","_c0","chargeCapPerMonth","chargeCap","fixPricePerMonth","modifiedBy","modifiedOn","ReactiveFormsModule","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","AppErrorMessagesComponent","YesNoGroupButtonComponent","ButtonGroupComponent","MultiFieldDurationPickerComponent","NgClass","NumericTextBoxModule","NumericTextBoxComponent","TranslateModule","TranslatePipe","styles","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","tariff_r1","name","SubscriptionDetailsTariffsComponent","constructor","ngOnInit","selectors","inputs","assignedTariffs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","SubscriptionDetailsTariffsComponent_div_7_Template","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵproperty","NgFor","TranslateModule","TranslatePipe","styles","MessageSeverity","MessageVariant","MessageDirective","constructor","_renderer","_el","ngAfterViewInit","parent","nativeElement","parentNode","divElement","createElement","setCssClasses","insertBefore","removeChild","spanElement","addClass","severity","AVPColors","appendChild","cssClass","split","forEach","variant","Filled","Outlined","Success","Info","Warning","Error","ɵɵdirectiveInject","Renderer2","ElementRef","selectors","inputs","standalone","ɵɵelement","ɵɵtext","ɵɵtemplate","SubscriptionDetailsComponent_ng_template_4_span_2_Template","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵadvance","ɵɵproperty","ctx_r1","subscriptionForm","invalid","ɵɵelementStart","ɵɵelementEnd","isUsedInSessions","MessageVariant","Standart","MessageSeverity","AVPColors","ɵɵtextInterpolate","selectedSubscription","tariffs","ɵɵlistener","ɵɵrestoreView","_r3","ɵɵnextContext","ɵɵresetView","deleteSubscription","canDelete","isReadonly","SubscriptionDetailsComponent","detailsInitInfo","value","valueStr","JSON","stringify","detailsInitInfoStr","_detailInitInfo","subscriptionService","reset","id","forkJoin","subscriptionDTO","getSubscription","isSubscriptionUsedInSessions","subscribe","data","updateForm","isAddSubscription","resetForm","isBusy","active","constructor","fb","toastService","modalService","clientService","cancel","EventEmitter","subscriptionCreated","subscriptionUpdated","subscriptionDeleted","hasPendingDetailChangesChanged","group","control","Validators","required","assignable","name","description","multipleCarsPerUserTreatAs","MultipleCarsPerUserTreatAs","Forbidden","currency","Currency","CHF","type","ParkingSubscriptionType","StandardSubscription","denyForeignParkingSubscriptionFallback","chargeCapPerMonth","chargeCap","min","chargeInRelationToEmploymentPercentage","fixPricePerMonth","basePricePerDay","sessionIsExtendable","maxParkingDurationInMinForm","days","hours","minutes","roundSessionFeeToXCents","modifiedBy","disabled","modifiedOn","usage","ParkingSubscriptionUsage","ParkerOrForeignParker","paidBy","ParkingSubscriptionPaidBy","ParkingPerson","pcConfirmTime","animation","previous","effect","duration","easing","next","saveButtonDisabled","subscriptions","Subscription","formChanged","selectedClient","cancelButtonText","ngOnInit","setFieldDisabledStatus","controls","get","formInitialValue","parse","add","statusChanges","pipe","startWith","status","hasChanges","updateFormChangedState","valueChanges","ForeignParkerSubscription","setValue","FormHelper","updateTreeValidity","ngOnDestroy","unsubscribe","onCancelClicked","canDeactivate","closeForm","emit","submitForm","updateParkingSubscription","getUpdateDTOFromFormData","createParkingSubscription","getCreateDTOFromFormData","showOkCancelDialog","onOkSubject","enable","parentType","AdministrationItemType","Tariff","markAsPristine","updateValueAndValidity","toFormat","MultiFieldDurationPickerHelper","createDurationMembers","maxParkingDurationInMin","parkingCardConfirmationTimeInMinutes","disable","length","showError","isEnabled","rawValue","getRawValue","UpdateParkingSubscriptionDTO","calculateTotalMinutes","CreateParkingSubscriptionDTO","clientId","tariffIds","parentId","structuralEntryId","ConfigBasedStructuralElement","dialog","merge","map","onCancelSubject","of","ɵɵdirectiveInject","SubscriptionDetailsService","FormBuilder","ToastService","ModalService","ClientService","selectors","inputs","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","SubscriptionDetailsComponent_ng_template_4_Template","ɵɵtemplateRefExtractor","SubscriptionDetailsComponent_ng_template_6_Template","SubscriptionDetailsComponent_ng_template_9_Template","SubscriptionDetailsComponent_ng_template_11_Template","SubscriptionDetailsComponent_button_14_Template","i0","_r1","TabModule","TabComponent","TabItemDirective","TabItemsDirective","NgIf","SubscriptionDetailsGeneralComponent","SubscriptionDetailsTariffsComponent","TranslateModule","TranslatePipe","MessageDirective","styles","TariffDetailsPriceValidators","assertMaxParkingTimeCoverageOfTieredPrices","c","maxParkingDurationControl","parent","get","daysControl","hoursControl","minutesControl","invalidFormStructure","maxParkingDuration","value","tieredPrices","coveredDuration","length","forEach","t","amountOfMinutes","assertMaxParkingTimeCoverageOfTieredPricesFailed","noTieredPricesSet","TariffDetailsValidators","noOverlappingTimeWindows","c","values","value","durationInHours","MultiFieldDurationPickerHelper","calculateTotalMinutes","durationForm","days","hours","minutes","weekDayFlags","WeekDayFlagsHelper","daysToFlag","weekdays","startTime","WeekDayFlags","Monday","daysGap","Math","floor","dayFlag","Sunday","shiftFlagsOneDayForward","hasFlags","gapDay","i","timeWindowOverlap","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","zone_r1","name","TariffDetailsZonesComponent","constructor","ngOnInit","selectors","inputs","assignedZones","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","TariffDetailsZonesComponent_div_7_Template","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵproperty","NgFor","TranslateModule","TranslatePipe","styles","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","TieredPriceFormComponent","constructor","isAdd","formFields","tieredPriceForm","controls","ngOnInit","value","id","isMultipleOfLinearPriceStep","amountOfMinutes","minStepInMinutes","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtemplate","TieredPriceFormComponent_small_22_Template","ɵɵproperty","ɵɵtextInterpolate","pricePerHour","ReactiveFormsModule","ɵNgNoValidate","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","NumericTextBoxModule","NumericTextBoxComponent","AppErrorMessagesComponent","NgIf","TranslateModule","TranslatePipe","styles","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r2","ctx_r2","ɵɵnextContext","ɵɵresetView","onAdd","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","ɵɵpipeBind1","ɵɵtext","ɵɵtextInterpolate1","data_r4","evaluationRelayIndex","ɵɵpipeBind2","data_r5","pricePerHour","ɵɵelement","gridEditForm","maxParkingDuration","TariffDetailsPricesTieredPricesGridComponent","GridBaseComponent","constructor","translateService","clientService","fb","totalTiered","indexToSelect","undefined","newItemIndexCount","editDialogTitle","addDialogTitle","gridCommands","GridConstantsFactory","createStandardGridCommands","isTotalNotEqualToMaxDuration","canMoveUp","index","grid","selectedRowIndex","canMoveDown","priceFormGroup","controls","tieredPrices","value","length","ngOnInit","recalculateTieredPriceData","actionBegin","args","requestType","SfRequestTypes","Add","tieredPrice","Math","max","data","actionComplete","Save","Delete","updateValueAndValidity","Refresh","selectRow","onUp","moveRow","onDown","initializeEditForm","group","id","amountOfMinutes","Validators","required","tierRange","minStepInMinutes","getDataToSave","ParkingTariffTieredPriceDTO","getEditDialogTitleParams","rowData","sort","a","b","minutesSum","entries","rangeStart","rangeEnd","refresh","sourceIndex","targetIndex","oldEvalRelayValue","ɵɵdirectiveInject","TranslateService","ClientService","UntypedFormBuilder","selectors","inputs","standalone","features","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","$event","i0","_r1","ɵɵtemplate","TariffDetailsPricesTieredPricesGridComponent_ng_template_6_Template","ɵɵtemplateRefExtractor","TariffDetailsPricesTieredPricesGridComponent_ng_template_12_Template","TariffDetailsPricesTieredPricesGridComponent_ng_template_18_Template","TariffDetailsPricesTieredPricesGridComponent_ng_template_25_Template","TariffDetailsPricesTieredPricesGridComponent_tr_34_Template","editSettings","ɵɵpropertyInterpolate","ɵɵpureFunction1","_c0","ɵɵtextInterpolate","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","ToolbarModule","ToolbarComponent","ItemDirective","ItemsDirective","TieredPriceFormComponent","NgClass","NgIf","DecimalPipe","TranslateModule","TranslatePipe","styles","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵproperty","ctx_r0","priceFormGroup","controls","linearPriceMinStepInMinutes","ɵɵtextInterpolate","CurrencyEnum","tariffCurrency","value","pricePerHour","maximumPrice","fixedPrice","maxParkingDuration","TariffDetailsPricesComponent","priceType","constructor","Currency","PriceTypeEnum","TariffPriceType","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementContainerStart","ɵɵtemplate","TariffDetailsPricesComponent_div_15_Template","TariffDetailsPricesComponent_div_16_Template","TariffDetailsPricesComponent_div_17_Template","LinearPrice","FixedPrice","TieredPrice","ReactiveFormsModule","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","ButtonGroupComponent","NgSwitch","NgSwitchCase","NumericTextBoxModule","NumericTextBoxComponent","AppErrorMessagesComponent","TariffDetailsPricesTieredPricesGridComponent","TranslateModule","TranslatePipe","styles","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵproperty","ctx_r0","generalFormGroup","controls","maxParkingDurationInMinForm","ɵɵtextInterpolate","timeWindows","weekdays","endTimeStr","window_r2","startDay","startTime","endDay","endTime","ɵɵtemplate","TariffDetailsGeneralComponent_div_43_div_19_Template","TariffDetailsGeneralComponent_div_43_div_20_Template","TariffDetailsGeneralComponent_div_43_tr_23_Template","TariffDetailsGeneralComponent_div_43_div_24_Template","durationForm","invalid","touched","showTimeWindowsError","modifiedBy","value","modifiedOn","TariffDetailsGeneralComponent","hasError","constructor","translate","PlaceOfResidence","isTwentyFourSevenTariff","subscriptions","Subscription","ngOnInit","initTimeWindows","add","valueChanges","subscribe","_","onLangChange","updateControlStatesDependingOnTwentyFourSevenTariff","ngOnDestroy","unsubscribe","disabled","timeWindowsGroup","disable","enable","durationValues","duration","MultiFieldDurationPickerHelper","calculateTotalMinutes","days","hours","minutes","oneDayInMinutes","startTimeInMinutesSinceDayStart","getHours","getMinutes","DateTime","fromJSDate","plus","toFormat","startDateTime","endDateTime","daysShifted","Math","floor","allowedMonday","addTimeWindow","allowedTuesday","allowedWednesday","allowedThursday","allowedFriday","allowedSaturday","allowedSunday","day","window","Info","push","ɵɵdirectiveInject","TranslateService","selectors","inputs","standalone","features","ɵɵProvidersFeature","MaskedDateTimeService","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","TariffDetailsGeneralComponent_div_35_Template","TariffDetailsGeneralComponent_div_42_Template","TariffDetailsGeneralComponent_div_43_Template","TariffDetailsGeneralComponent_div_44_Template","name","description","isDeviceControlTariff","id","ReactiveFormsModule","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","AppErrorMessagesComponent","ButtonGroupComponent","YesNoGroupButtonComponent","MultiFieldDurationPickerComponent","NgIf","DaySelectorComponent","TimePickerModule","TimePickerComponent","NgFor","TranslateModule","TranslatePipe","styles","BlacklistFormComponent","isAdd","blacklistForm","value","id","constructor","enumTranslationService","enumDropdownSettings","DropDownConstantsFactory","createEnumDropdownSettings","ControlPlateType","ngOnInit","countryList","translateEnum","CountryISO2","ɵɵdirectiveInject","EnumTranslationService","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵproperty","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","controls","controlPlateNumber","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","AppErrorMessagesComponent","DropDownListModule","DropDownListComponent","EnumDropDownListComponent","TranslateModule","TranslatePipe","MessageModule","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r2","ctx_r2","ɵɵnextContext","ɵɵresetView","onAdd","ɵɵelementEnd","ɵɵadvance","ɵɵpropertyInterpolate","ɵɵpipeBind1","ɵɵtext","ɵɵtextInterpolate","formatControlPlateType","data_r4","ɵɵtextInterpolate1","data_r5","data_r6","controlPlateNumber","ɵɵelement","ɵɵproperty","gridEditForm","TariffDetailsBlacklistComponent","GridBaseComponent","constructor","translateService","clientService","fb","blacklistLicensePlatesChange","EventEmitter","newItemIndexCount","commands","type","SfCommandButtonType","Delete","buttonOption","cssClass","iconCss","ngOnInit","addDialogTitle","addIndexFindColumnName","editSettings","allowEditing","actionComplete","args","action","requestType","emit","blacklist","data","ControlPlateType","controlPlateType","initializeEditForm","group","id","control","countryCode","Validators","required","maxLength","getEditDialogTitleParams","rowData","params","getDataToSave","getRawValue","trim","replace","toUpperCase","ɵɵdirectiveInject","TranslateService","ClientService","FormBuilder","selectors","inputs","outputs","standalone","features","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","$event","i0","_r1","actionBegin","ɵɵtemplate","TariffDetailsBlacklistComponent_ng_template_2_Template","ɵɵtemplateRefExtractor","TariffDetailsBlacklistComponent_ng_template_10_Template","TariffDetailsBlacklistComponent_ng_template_12_Template","TariffDetailsBlacklistComponent_ng_template_16_Template","TariffDetailsBlacklistComponent_ng_template_19_Template","searchOptions","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","TranslateModule","TranslatePipe","ToolbarModule","ToolbarComponent","ItemDirective","ItemsDirective","BlacklistFormComponent","ɵɵelement","ɵɵtext","ɵɵtemplate","TariffDetailsComponent_ng_container_0_ng_template_7_span_2_Template","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵadvance","ɵɵproperty","ctx_r1","tariffForm","controls","general","invalid","TariffDetailsComponent_ng_container_0_ng_template_12_span_2_Template","prices","maxParkingDuration","selectedTariff","assignedZones","ɵɵelementStart","ɵɵlistener","$event","ɵɵrestoreView","_r3","ɵɵnextContext","ɵɵresetView","onBlacklistLicensePlatesChange","ɵɵelementEnd","blacklistedLicensePlates","_r4","deleteTariff","isReadonly","isBusy","ɵɵelementContainerStart","_r1","select","TariffDetailsComponent_ng_container_0_ng_template_7_Template","ɵɵtemplateRefExtractor","TariffDetailsComponent_ng_container_0_ng_template_9_Template","TariffDetailsComponent_ng_container_0_ng_template_12_Template","TariffDetailsComponent_ng_container_0_ng_template_14_Template","TariffDetailsComponent_ng_container_0_ng_template_17_Template","TariffDetailsComponent_ng_container_0_ng_template_19_Template","TariffDetailsComponent_ng_container_0_ng_template_22_Template","TariffDetailsComponent_ng_container_0_ng_template_24_Template","TariffDetailsComponent_ng_container_0_button_27_Template","onCancelClicked","submitForm","animation","isAddTariff","cancelButtonText","blacklist","dirty","saveButtonDisabled","TariffDetailsComponent","detailsInitInfo","value","valueStr","JSON","stringify","detailsInitInfoStr","_detailInitInfo","tariffService","reset","id","getTariff","resetForm","constructor","fb","toastService","modalService","cancel","EventEmitter","tariffCreated","tariffUpdated","tariffDeleted","hasPendingDetailChangesChanged","formChanged","previous","effect","duration","easing","next","isBlacklistChanged","group","control","name","Validators","required","active","description","modifiedBy","modifiedOn","placeOfResidence","PlaceOfResidence","LocalCommunity","isTwentyFourSevenTariff","isDeviceControlTariff","timeWindows","weekdays","allowedMonday","allowedTuesday","allowedWednesday","allowedThursday","allowedFriday","allowedSaturday","allowedSunday","validators","CustomValidatorsFactory","atLeastOneFromFormGroupRequired","startTime","durationForm","days","min","hours","minutes","TariffDetailsValidators","noOverlappingTimeWindows","maxParkingDurationInMinForm","tariffCurrency","Currency","CHF","priceType","TariffPriceType","LinearPrice","pricePerHour","maximumPrice","fixedPrice","tieredPrices","linearPriceMinStepInMinutes","formInitialValue","parse","statusChanges","pipe","startWith","status","subscribe","hasChanges","updateFormChangedState","valueChanges","priceFormGroup","setValidators","clearValidators","FixedPrice","TariffDetailsPriceValidators","assertMaxParkingTimeCoverageOfTieredPrices","updateValueAndValidity","disable","enable","setValue","FormHelper","updateTreeValidity","maxParkingDurationControl","beforeUnload","event","isSwiped","selectedTariffId","data","sort","a","b","localeCompare","tabGroup","updateForm","showOkCancelDialog","onOkSubject","deleteParkingTariff","emit","closeForm","openAddTariff","canDeactivate","updateParkingTariff","getUpdateDTOFromFormData","createParkingTariff","getCreateDTOFromFormData","dialog","merge","mapTo","onCancelSubject","of","markAsPristine","toFormat","BitHelper","isBitSet","onWeekDays","DateHelper","setDateTimeTo1970FromDuration","toJSDate","MultiFieldDurationPickerHelper","createDurationMembers","durationInMinutes","maxParkingDurationInMin","length","hasActiveSubscription","showError","rawValue","getRawValue","getTimeOfDayDurationFromJsDate","UpdateParkingTariffDTO","WeekDayFlagsHelper","daysToFlag","calculateTotalMinutes","map","tp","ParkingTariffTieredPriceDTO","lp","BlacklistLicensePlateDTO","zoneIds","parentType","AdministrationItemType","Zone","parentId","subscriptionId","Subscription","CreateParkingTariffDTO","clientId","assignedZoneIds","blackList","markAsDirty","ɵɵdirectiveInject","TariffDetailsService","FormBuilder","ToastService","ModalService","selectors","viewQuery","rf","ctx","ɵɵresolveWindow","TariffDetailsComponent_ng_container_0_Template","NgIf","TabModule","TabComponent","TabItemDirective","TabItemsDirective","TariffDetailsGeneralComponent","TariffDetailsPricesComponent","TariffDetailsZonesComponent","TranslateModule","TranslatePipe","TariffDetailsBlacklistComponent","styles","InputType","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind1","data_r2","text","ɵɵelementStart","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","data_r3","data_r4","data_r5","ɵɵtemplate","ZoneDeviceAddComponent_ng_template_4_ng_template_7_Template","ɵɵtemplateRefExtractor","ZoneDeviceAddComponent_ng_template_4_ng_template_9_Template","ɵɵelement","ZoneDeviceAddComponent_ng_template_4_ng_template_18_Template","ZoneDeviceAddComponent_ng_template_4_ng_template_20_Template","ɵɵproperty","ctx_r5","addForm","deviceBrands","enumDropdownSettings","controls","brand","deviceTypes","deviceType","ɵɵlistener","ɵɵrestoreView","_r7","ɵɵnextContext","ɵɵresetView","closeAdd","initializeDevice","valid","ZoneDeviceAddComponent","constructor","fb","zoneDeviceDetailsService","enumTranslateService","deviceStructureCreated","EventEmitter","cancelled","DropDownConstantsFactory","createNumericEnumDropdownSettings","group","control","Validators","required","allDeviceTypes","translateNumericEnum","ZoneDeviceType","allDeviceBrands","ZoneDeviceBrand","allSpecs","ngOnInit","loadAvailableDeviceSpecifications","subscribe","specs","filter","some","spec","value","valueChanges","specsOfBrand","type","ab","openAdd","setTimeout","addDialog","show","isAddOpened","visible","emit","closed","onDialogClose","$event","closedBy","hide","reset","formValues","getZoneDeviceInitialStructure","newDevice","ɵɵdirectiveInject","FormBuilder","ZoneDeviceDetailsService","EnumTranslationService","selectors","viewQuery","rf","ctx","i0","_r1","ZoneDeviceAddComponent_ng_template_2_Template","ZoneDeviceAddComponent_ng_template_4_Template","ZoneDeviceAddComponent_ng_template_6_Template","DialogModule","DialogComponent","ReactiveFormsModule","ɵNgNoValidate","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","DropDownListModule","DropDownListComponent","AppErrorMessagesComponent","TranslateModule","TranslatePipe","ɵɵelement","ɵɵproperty","ctx_r0","formControlValue","dropdownValues","dropdownSettings","InputFactoryComponent","form","get","constructor","fb","showUntouchedErrors","InputType","DropDownConstantsFactory","createEnumDropdownSettings","isRequired","group","value","unsubscribe$","Subject","onChange","onTouched","ngOnInit","control","hasValidator","Validators","required","valueChanges","pipe","takeUntil","subscribe","statusChanges","setErrors","errors","markAsTouched","ngOnDestroy","next","complete","registerOnChange","fn","registerOnTouched","setDisabledState","isDisabled","disable","enable","writeValue","obj","setValue","validate","ɵɵdirectiveInject","UntypedFormBuilder","selectors","inputs","inputType","label","standalone","features","ɵɵProvidersFeature","provide","NG_VALUE_ACCESSOR","useExisting","forwardRef","multi","NG_VALIDATORS","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelementContainerStart","ɵɵtemplate","InputFactoryComponent_input_8_Template","InputFactoryComponent_input_9_Template","InputFactoryComponent_app_yes_no_group_button_10_Template","InputFactoryComponent_input_11_Template","InputFactoryComponent_ejs_dropdownlist_12_Template","ɵɵadvance","ɵɵtextInterpolate","ɵɵpureFunction1","_c0","Input","Float","Bool","Integer","Select","controls","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NumberValueAccessor","NgControlStatus","NgControlStatusGroup","FormControlDirective","FormGroupDirective","FormControlName","NgClass","NgSwitch","NgSwitchCase","YesNoGroupButtonComponent","DropDownListModule","DropDownListComponent","AppErrorMessagesComponent","styles","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind1","data_r2","text","ɵɵelementStart","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","data_r3","data_r4","data_r5","data_r6","data_r7","ɵɵelement","ɵɵproperty","ctx_r7","proxyUsers","proxUserDropdownSettings","deviceForm","controls","proxyUserId","parameters","get","param_r9","configuration","ident","split","displayName","getInputType","type","deviceParameterSelectOptions","isAdd","ɵɵelementContainerStart","ɵɵtemplate","ZoneDeviceDetailsComponent_div_0_ng_container_68_div_1_Template","deviceParameters","ɵɵlistener","ɵɵrestoreView","_r10","ɵɵnextContext","ɵɵresetView","deleteDevice","isBusy","ZoneDeviceDetailsComponent_div_0_ng_template_16_Template","ɵɵtemplateRefExtractor","ZoneDeviceDetailsComponent_div_0_ng_template_18_Template","ZoneDeviceDetailsComponent_div_0_ng_template_27_Template","ZoneDeviceDetailsComponent_div_0_ng_template_29_Template","ZoneDeviceDetailsComponent_div_0_ng_template_38_Template","ZoneDeviceDetailsComponent_div_0_ng_template_40_Template","ZoneDeviceDetailsComponent_div_0_div_57_Template","ɵɵtwoWayListener","$event","_r1","i0","ɵɵtwoWayBindingSet","coordinates","ZoneDeviceDetailsComponent_div_0_ng_container_68_Template","ZoneDeviceDetailsComponent_div_0_button_70_Template","cancelClicked","submitForm","name","deviceTypes","enumDropdownSettings","deviceType","deviceBrands","brand","deviceDirections","direction","description","isProxyDriven","ɵɵtwoWayProperty","MapBoxMode","PositionMode","selectedDevice","id","saveButtonDisabled","ZoneDeviceDetailsComponent","detailsInitInfo","value","valueStr","JSON","stringify","detailsInitInfoStr","_detailInitInfo","zoneDeviceDetailsService","reset","getZoneDevice","subscribe","device","handleDeviceData","deviceAddComponent","openAdd","formTitle","setValue","constructor","fb","enumTranslateService","cdr","modalService","cancel","EventEmitter","deviceUpdated","deviceCreated","deviceDeleted","hasPendingDetailChangesChanged","formReady","Map","dropdownSettings","DropDownConstantsFactory","createStandardClientDropdownSettings","createNumericEnumDropdownSettings","zones","translateNumericEnum","ZoneDeviceType","ZoneDeviceBrand","ZoneDeviceDirection","formChanged","ngAfterViewInit","isAddOpened","ngAfterViewChecked","detectChanges","updateZoneDevice","createZoneDevice","canDeactivate","data","closeForm","emit","onAddCancelled","showOkCancelDialog","onOkSubject","deleteZoneDevice","paramType","ZoneDeviceParameterType","Phone","String","IP","MacAddress","InputType","Input","Int","Integer","Float","Bool","Select","onDeviceStructureCreated","clientId","zone","parentType","AdministrationItemType","Zone","ZoneDeviceCollection","parentId","isDeviceProxyDriven","deviceCommands","initForm","getProxyUsers","length","setValidators","Validators","required","addControl","UntypedFormGroup","forEach","parameter","param","validators","getValidatorsForConfig","UntypedFormControl","phone","selection","defaultValue","options","selectionPossibilities","map","key","set","formInitialValue","parse","updateFormChangedState","statusChanges","pipe","startWith","status","hasChanges","FormHelper","updateTreeValidity","config","push","min","minValue","max","maxValue","CustomValidatorsFactory","validateIpAddress","allowIPV6","minLength","maxLength","pattern","noOfDecimals","createPhoneValidator","validateMacAddress","group","control","disabled","zoneId","enabled","form","formValues","dto","UpdateZoneDeviceDTO","createParameterDTOs","getRawValue","CreateZoneDeviceDTO","formParameters","params","Object","keys","find","p","endsWith","dialog","merge","onCancelSubject","of","ɵɵdirectiveInject","FormBuilder","EnumTranslationService","ChangeDetectorRef","ModalService","ZoneDeviceDetailsService","selectors","viewQuery","rf","ctx","ZoneDeviceAddComponent","ZoneDeviceDetailsComponent_div_0_Template","NgIf","ReactiveFormsModule","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormControlDirective","FormGroupDirective","FormControlName","AppErrorMessagesComponent","DropDownListModule","DropDownListComponent","YesNoGroupButtonComponent","NgFor","InputFactoryComponent","TranslateModule","TranslatePipe","MapBoxMapComponent","styles","ɵɵelementStart","ɵɵtwoWayListener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","i0","ɵɵtwoWayBindingSet","gpsArea","ɵɵresetView","ɵɵelementEnd","ɵɵadvance","ɵɵtwoWayProperty","ɵɵproperty","MapBoxMode","GpsAreaMode","ZoneDetailsBlacklistComponent","blacklistForm","getRawValue","blacklistGPSArea","value","controls","setValue","origGpsArea","hasGpsAreaChanged","localeCompare","constructor","fb","dataChange","EventEmitter","ngOnInit","createForm","ngOnChanges","changes","useBlacklistArea","currentValue","group","control","blacklistArea","valueChanges","subscribe","emit","ɵɵdirectiveInject","FormBuilder","selectors","inputs","outputs","standalone","features","ɵɵNgOnChangesFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtext","ɵɵelement","ɵɵtemplate","ZoneDetailsBlacklistComponent_div_9_Template","ɵɵtextInterpolate1","ɵɵpipeBind1","TranslateModule","TranslatePipe","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","YesNoGroupButtonComponent","MapBoxMapComponent","NgIf","ɵɵelement","ɵɵtext","ɵɵtemplate","ZoneDetailsComponent_ng_template_5_span_2_Template","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵadvance","ɵɵproperty","ctx_r1","zoneForm","invalid","ɵɵelementStart","ɵɵelementEnd","ɵɵpureFunction1","_c2","data_r5","disabled","ɵɵtextInterpolate","name","ɵɵlistener","ɵɵrestoreView","_r6","ɵɵnextContext","ɵɵresetView","updateParkingSpaceCounter","ɵɵpureFunction2","_c3","hasCurrentParkerCountChanged","ɵɵtwoWayListener","$event","_r7","i0","ɵɵtwoWayBindingSet","gpsArea","ɵɵtwoWayProperty","MapBoxMode","GpsAreaMode","ɵɵelementContainerStart","_r4","onSelectForeignParkingSubscription","ZoneDetailsComponent_ng_template_7_form_0_ng_container_18_ng_template_50_Template","ɵɵtemplateRefExtractor","ZoneDetailsComponent_ng_template_7_form_0_ng_container_18_button_82_Template","ZoneDetailsComponent_ng_template_7_form_0_ng_container_18_div_84_Template","controls","maxPassageTime","showUntouchedErrors","_c1","value","separateNFCCode","nFCCode","foreignParkersAllowed","parkingSubscriptionsDropdownValues","dropdownSettings","parkingSpaceCapacity","ɵɵpropertyInterpolate","parkingSpaceNumberDefinition","isUpdateMode","currentParkerCount","isMapEnabled","_r3","onGroupingElementClick","ZoneDetailsComponent_ng_template_7_form_0_ng_container_18_Template","_c0","isGroupingElement","ZoneDetailsComponent_ng_template_7_form_0_Template","isFormReady","_r8","onBlacklistDataChange","useBlacklistArea","blacklistGPSArea","_r9","onDeleteZone","canDelete","isBusy","ZoneDetailsComponent","detailsInitInfo","valueStr","JSON","stringify","detailsInitInfoStr","_detailInitInfo","zoneDetailsService","reset","id","getZone","subscribe","zone","_selectedZone","addZone","parentId","loadFormData","parkingSubscriptions","refreshParkingSubscriptionsDropdownValues","cdr","detectChanges","enableGPSDetection","getRawValue","groupingElement","zoneGPSArea","setValue","origGpsArea","hasGpsAreaChanged","localeCompare","cancelButtonText","formChanged","valid","hasDevicesAssigned","hasChildZones","constructor","translateService","parkingSubscriptionClient","fb","toastService","modalService","cancel","EventEmitter","zoneCreated","zoneUpdated","zoneDeleted","hasPendingDetailChangesChanged","DropDownConstantsFactory","createStandardClientDropdownSettings","tabAnimation","previous","effect","duration","easing","next","subscriptions","Subscription","group","control","Validators","required","min","foreignParkingSubscriptionId","add","valueChanges","v","hasChanges","formInitialValue","updateFormChangedState","setFieldEnabledStatus","setValidators","updateValueAndValidity","ngOnInit","loadParkingSubscriptions","ngOnDestroy","unsubscribe","args","itemData","DialogUtility","alert","instant","onCancelClicked","emit","submitForm","data","getDTOFromFormData","updateZone","setTimeout","createZone","closeForm","showOkCancelDialog","onOkSubject","deleteZone","zoneId","pipe","switchMap","setCurrentParkerCount","markAsPristine","showSuccess","tabSelect","event","isSwiped","blacklistArea","markAsTouched","nfcCode","foreignParkingSubscription","onlySelf","FormHelper","updateTreeValidity","isEnabled","enable","disable","rawValue","dto","UpdateZoneDTO","CreateZoneDTO","parentZoneId","parentType","AdministrationItemType","Zone","clientId","filters","FilterDTO","isComplex","field","operator","FilterOperator","Equal","ParkingSubscriptionType","ForeignParkerSubscription","toString","searchParkingSubscriptions","SortDirection","Ascending","items","filter","item","assignable","tariffs","some","t","assignedTariffs","tid","map","logFormChanges","initialValue","currentValue","changes","getFormChanges","console","log","Object","keys","forEach","key","ɵɵdirectiveInject","ZoneDetailsService","TranslateService","ParkingSubscriptionClient","FormBuilder","ChangeDetectorRef","ToastService","ModalService","selectors","inputs","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","_r1","ZoneDetailsComponent_ng_template_5_Template","ZoneDetailsComponent_ng_template_7_Template","ZoneDetailsComponent_ng_template_10_Template","ZoneDetailsComponent_ng_template_12_Template","ZoneDetailsComponent_button_15_Template","NgIf","TabModule","TabComponent","TabItemDirective","TabItemsDirective","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NumberValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","NgClass","AppErrorMessagesComponent","YesNoGroupButtonComponent","DropDownListModule","DropDownListComponent","TooltipModule","TooltipComponent","TranslateModule","TranslatePipe","MapBoxMapComponent","ZoneDetailsBlacklistComponent","styles","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","onDetailCancel","$event","onZoneCreated","onZoneUpdated","onZoneDeleted","onHasPendingDetailChanges","ɵɵelementEnd","ɵɵproperty","selectedItem","_r3","onDeviceCreated","onDeviceUpdated","onDeviceDeleted","_r4","onTariffCreated","onTariffUpdated","onTariffDeleted","_r5","onSubscriptionCreated","onSubscriptionUpdated","onSubscriptionDeleted","_r6","onStructuralEntryCreated","onStructuralEntryUpdated","onStructuralEntryDeleted","ɵɵelement","ɵɵtemplate","AdministrationDetailsComponent_div_0_app_zone_details_2_Template","AdministrationDetailsComponent_div_0_app_zone_device_details_3_Template","AdministrationDetailsComponent_div_0_app_tariff_details_4_Template","AdministrationDetailsComponent_div_0_app_subscription_details_5_Template","AdministrationDetailsComponent_div_0_app_structural_entry_details_6_Template","AdministrationDetailsComponent_div_0_div_7_Template","ɵɵadvance","type","AdministrationItemType","Zone","ZoneDevice","Tariff","Subscription","ConfigBasedStructuralElement","AdministrationDetailsComponent","value","_selectedItem","showContent","ZoneCollection","ZoneDeviceCollection","ConfigBasedStructuralElementCollection","SubscriptionCollection","constructor","cancel","EventEmitter","itemCreated","itemUpdated","itemDeleted","hasPendingDetailChangesChanged","ngOnInit","emit","data","id","parentId","hasChanges","selectors","inputs","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","AdministrationDetailsComponent_div_0_Template","NgIf","NgSwitch","NgSwitchCase","ZoneDetailsComponent","ZoneDeviceDetailsComponent","TariffDetailsComponent","SubscriptionDetailsComponent","StructuralEntryDetailsComponent","NgSwitchDefault","styles","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵelementContainerStart","ɵɵlistener","$event","ɵɵrestoreView","_r2","ctx_r2","ɵɵnextContext","ɵɵresetView","onItemSelected","ɵɵproperty","hasPendingDetailChanges","_r4","ɵɵelement","ɵɵtemplate","AdministrationComponent_ng_container_6_ng_container_7_Template","AdministrationComponent_ng_container_6_ng_template_8_Template","ɵɵtemplateRefExtractor","_r1","onDetailCancel","onItemCreated","onItemUpdated","onItemDeleted","onHasPendingDetailChanges","isZoneModeControl","value","configBasedTemplate_r5","selectedItem","AdministrationComponent","selectedClient","clientService","onClientSelected","isClientAdminView","authService","hasUserClientAssigned","activeTreeView","zoneBasedTreeView","configBasedTreeView","constructor","cdr","FormControl","valueChanges","subscribe","ngAfterViewChecked","detectChanges","data","resetSelection","eventInfo","addNode","updateNode","removeNode","client","reset","ɵɵdirectiveInject","ClientService","AuthService","ChangeDetectorRef","selectors","viewQuery","rf","ctx","TreeViewZoneBasedComponent","TreeViewConfigBasedComponent","AdministrationComponent_label_4_Template","ɵɵtwoWayListener","i0","ɵɵtwoWayBindingSet","AdministrationComponent_ng_container_6_Template","ɵɵtwoWayProperty","TitleBarComponent","NgIf","ClientAutocompleteComponent","YesNoGroupButtonComponent","ReactiveFormsModule","NgControlStatus","FormControlDirective","AdministrationDetailsComponent","TranslateModule","TranslatePipe","styles","UserExtractFormComponent","constructor","authService","clientService","userExtractReportService","searchDTOChanged","EventEmitter","keyValueDropdownSettings","text","value","subscriptions","ngOnInit","push","form","valueChanges","subscribe","endTimePicker","controls","startDate","min","startTimePicker","endDate","max","emit","allowClientSelection","isUserAdminOrClientAdmin","hasUserClientAssigned","ngOnDestroy","forEach","s","unsubscribe","ɵɵdirectiveInject","AuthService","ClientService","UserExtractReportService","selectors","viewQuery","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵproperty","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ReactiveFormsModule","ɵNgNoValidate","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","DatePickerModule","DatePickerComponent","TranslateModule","TranslatePipe","ɵɵtext","ɵɵtextInterpolate1","ctx_r2","formatTime","data_r2","durationInMinutes","ɵɵpipeBind2","data_r4","amount","ɵɵpipeBind1","formatCurrency","data_r5","currency","ɵɵelementStart","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate2","summaryData","totalNumberOfParkings","ɵɵpureFunction1","_c1","Currency","summary_r6","totalPrice","ɵɵtemplate","UserExtractReportComponent_ng_container_3_div_26_div_2_Template","ɵɵproperty","totalAmounts","ɵɵelementContainerStart","ɵɵelement","UserExtractReportComponent_ng_container_3_ng_template_10_Template","ɵɵtemplateRefExtractor","UserExtractReportComponent_ng_container_3_ng_template_18_Template","UserExtractReportComponent_ng_container_3_ng_template_22_Template","ɵɵlistener","$event","ɵɵrestoreView","_r1","ɵɵnextContext","ɵɵresetView","saveReport","UserExtractReportComponent_ng_container_3_div_25_Template","UserExtractReportComponent_ng_container_3_div_26_Template","pageSettings","data","ɵɵpropertyInterpolate","UserExtractReportComponent","constructor","clientService","fb","router","spinnerService","userExtractReportService","filterForm","group","startDate","control","DateTime","now","startOf","toJSDate","endDate","endOf","GridConstantsFactory","createStandardPageSettings","ngOnInit","DataManager","adaptor","AvpCustomAdaptor","searchReports","controls","value","reportParameters","createReportParameters","grid","refresh","getReportSummary","subscribe","summary","sort","a","b","saveOptions","showSpinner","exportReport","savedReportFileDTO","navigate","reportsRoute","footer","downloadFile","minutes","StringHelper","transformToTimeRepresentation","type","DateRangeParameterDTO","fromJSDate","toFormat","ɵɵdirectiveInject","ClientService","FormBuilder","Router","SpinnerService","UserExtractReportService","selectors","viewQuery","rf","ctx","ReportsFooterComponent","UserExtractReportComponent_ng_container_3_Template","TitleBarComponent","UserExtractFormComponent","NgIf","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","NgFor","DecimalPipe","TranslateModule","TranslatePipe","styles","CanDeactivateGuard","canDeactivate","component","factory","ɵfac","providedIn","AdminOrClientAdminOrCompanyAdminGuard","ActivationGuardBase","constructor","authService","router","checkLogin","url","isUserLoggedIn","isUserAdminOrClientAdminOrCompanyAdmin","redirectUrl","navigate","homeRoute","loginRoute","ɵɵinject","AuthService","Router","factory","ɵfac","providedIn","WizardStepComponent","constructor","ngOnInit","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","OnboardingWizardComponent","constructor","ngOnInit","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","WizardStepComponent","TitleBarComponent","TagMasterService","ShowInactiveService","constructor","tagMasterClient","clientService","toastService","getData","skip","take","filters","sortBy","sortDirection","selectedClient","of","PagedResultDTOOfTagMasterDTO","items","totalNumberOfItems","FilterUtil","correctDateTimeFilters","DATE_HELPER_DEFAULT_TIME_ZONE","searchTagMasters","id","addRecord","data","Error","updateRecord","deleteRecord","deleteRecords","deleteTagMasters","pipe","tap","showSuccess","catchError","error","doesErrorExistAlready","ErrorType","serverError","showError","throwError","ɵɵinject","TagMasterClient","ClientService","ToastService","factory","ɵfac","providedIn","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r3","ctx_r1","ɵɵnextContext","ɵɵresetView","onMultipleDelete","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","ɵɵpipeBind1","grid_r4","getSelectedRowIndexes","length","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind2","data_r5","assignedOn","ɵɵtextInterpolate","formatIsActive","data_r6","ɵɵelement","ɵɵclassProp","data_r7","isActive","$event","_r1","actionComplete","actionBegin","rowDataBound","ɵɵtemplate","TagMasterComponent_div_5_ng_template_3_Template","ɵɵtemplateRefExtractor","TagMasterComponent_div_5_ng_template_14_Template","TagMasterComponent_div_5_ng_template_20_Template","TagMasterComponent_div_5_ng_template_22_Template","data","filterSettings","pageSettings","searchOptions","editSettings","ɵɵpropertyInterpolate","dateFilter","isActiveFilter","gridCommands","TagMasterComponent","GridBaseComponent","constructor","clientService","translate","tagMasterService","spinnerService","modalService","checkBoxFilter","GridConstantsFactory","createCheckBoxFilter","find","command","type","SfCommandButtonType","Delete","createStandardEditSettings","allowEditing","allowAdding","ngOnInit","DataManager","adaptor","AvpCustomAdaptor","selectedClient","value","onClientSelected","selectedIds","grid","getSelectedRecords","map","record","showOkCancelDialog","onOkSubject","subscribe","deleteRecords","refresh","args","isSelectable","button","row","getElementsByClassName","parentElement","hidden","checkBox","initializeEditForm","Error","getEditDialogTitleParams","rowData","ɵɵdirectiveInject","ClientService","TranslateService","TagMasterService","SpinnerService","ModalService","selectors","standalone","features","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtwoWayListener","i0","ɵɵtwoWayBindingSet","TagMasterComponent_div_5_Template","ɵɵtwoWayProperty","TitleBarComponent","ClientAutocompleteComponent","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","NgIf","TranslateModule","TranslatePipe","ToolbarModule","ToolbarComponent","ItemDirective","ItemsDirective","DatePipe","ParkingCardService","ShowInactiveService","constructor","parkingCardClient","toastService","spinnerService","issuedToMe","getData","skip","take","filters","sortBy","sortDirection","SortDirection","Ascending","FilterUtil","replaceFieldNameInfilters","correctDateTimeFilters","DATE_HELPER_DEFAULT_TIME_ZONE","showSpinner","searchParkingCards","pipe","tap","result","items","catchError","err","showError","throwError","addRecord","_data","Error","updateRecord","deleteRecord","_id","revokeParkingCard","parkingCardId","showSuccess","ɵɵinject","ParkingCardClient","ToastService","SpinnerService","factory","ɵfac","providedIn","ɵɵelement","ɵɵpropertyInterpolate","ɵɵpipeBind1","ɵɵtext","ɵɵtextInterpolate1","ɵɵpipeBind2","data_r2","validFromDateTime","data_r3","validToDateTime","ɵɵtextInterpolate","ctx_r4","formatIsActive","data_r4","ɵɵclassProp","data_r6","forMultipleUse","data_r7","lastUsedOn","data_r8","data_r9","isActive","ɵɵproperty","gridCommands","ParkingCardComponent","GridBaseComponent","issuedToMe","parkingCardService","value","constructor","clientService","translate","spinnerService","modalService","type","SfCommandButtonType","None","buttonOption","cssClass","iconCss","ngOnInit","data","DataManager","adaptor","AvpCustomAdaptor","rowDataBound","args","button","row","getElementsByClassName","length","parentElement","title","translateService","instant","hidden","changeView","grid","refresh","commandClick","commandColumn","id","rowData","showOkCancelDialog","onOkSubject","subscribe","revokeParkingCard","initializeEditForm","_data","Error","getEditDialogTitleParams","_rowData","ɵɵdirectiveInject","ClientService","TranslateService","SpinnerService","ParkingCardService","ModalService","selectors","standalone","features","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtwoWayListener","$event","i0","ɵɵrestoreView","_r1","ɵɵtwoWayBindingSet","ɵɵresetView","ɵɵlistener","ɵɵelementEnd","actionComplete","actionBegin","ɵɵtemplate","ParkingCardComponent_e_column_17_Template","ParkingCardComponent_e_column_18_Template","ParkingCardComponent_e_column_19_Template","ParkingCardComponent_e_column_20_Template","ParkingCardComponent_ng_template_25_Template","ɵɵtemplateRefExtractor","ParkingCardComponent_ng_template_29_Template","ParkingCardComponent_ng_template_33_Template","ParkingCardComponent_ng_template_35_Template","ParkingCardComponent_ng_template_39_Template","ParkingCardComponent_ng_template_45_Template","ParkingCardComponent_ng_template_47_Template","ParkingCardComponent_e_column_49_Template","ɵɵadvance","ɵɵtwoWayProperty","filterSettings","pageSettings","searchOptions","dateFilter","isActiveFilter","TitleBarComponent","GridModule","GridComponent","ColumnDirective","ColumnsDirective","AggregateColumnDirective","AggregateColumnsDirective","NgIf","TranslateModule","TranslatePipe","DatePipe","FormsModule","DefaultValueAccessor","RadioControlValueAccessor","NgControlStatus","NgModel","routes","path","pathMatch","redirectTo","homePageName","canActivate","AuthGuard","ClientActiveGuard","resolve","data","DashboardService","children","component","HomeComponent","adminPageName","AdminOrClientAdminOrCompanyAdminGuard","clientAdministrationPageName","ClientAdministrationComponent","userManagementPageName","UserManagementComponent","ClientService","configurationAdministrationPageName","AdministrationComponent","data2","inject","ZoneDeviceDetailsService","initializeServiceData","companyAdministrationPageName","CompanyAdministrationComponent","canDeactivate","CanDeactivateGuard","parkerAdministrationPageName","ParkerAdministrationComponent","tagsAdministrationPageName","TagsAdministrationComponent","onBoardingWizardPageName","OnboardingWizardComponent","tagMasterPageName","TagMasterComponent","parkPageName","parkingPageName","ParkingComponent","UserGuard","TranslationLoaderResolver","ParkingService","automaticParkingPageName","ParkingAdministrationComponent","parkerRegistrationsPageName","ParkerRegistrationComponent","parkingRangerSessionsPageName","ParkingRangerSessionsComponent","AdminOrClientAdminGuard","zoneDamagePageName","ZoneDamageComponent","deviceInteractionPageName","DeviceInteractionComponent","parkingCardPageName","ParkingCardComponent","reportsPageName","savedReportsPageName","ReportsComponent","tagsPerParkerPageName","ClientUserGuard","TagsReportComponent","ParkerRegistrationReportComponent","falseRecordingsPageName","FalseRecordingReportComponent","parkerTurnoverPageName","ParkerTurnoverReportComponent","parkerExtractPageName","ParkerExtractReportComponent","deviceStatusPageName","DeviceStatusReportComponent","AdminGuard","AutomaticParkingReportComponent","paymentPageName","PaymentReportComponent","userExtractPageName","UserExtractReportComponent","loginPageName","LoginComponent","editProfilePageName","EditProfileComponent","EditProfileService","setPasswordPageName","SetPasswordComponent","changePasswordPageName","ChangePasswordComponent","forgotPasswordPageName","ForgotPasswordComponent","confirmEmailPageName","ConfirmEmailComponent","linkParkerToUserPageName","LinkParkerToUserComponent","AppRoutingModule","RouterModule","forRoot","registerLicense","environment","syncfusionKey","production","enableProdMode","bootstrapApplication","AppComponent","providers","importProvidersFrom","BrowserModule","AppRoutingModule","DomainModule","BaseModule","catch","err","console","error"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,167,168,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,206,212,213,222,227,228,229,230,238,239,240,241,245,246,247,248,249,250,251,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,511,513,531,532,594,595,596,724]}