blob: 85d78d6a1f1a92db58e1a0d7fd7fe6d366eacde6 [file] [log] [blame]
{"version":3,"sources":["src/material/material-sort.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","material","sort","core","cdk","coercion","a11y","keycodes","rxjs","animations","common","this","i0","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","__extends","TypeError","String","__","constructor","create","MAT_SORT_DEFAULT_OPTIONS","InjectionToken","MatSort","_super","_defaultOptions","_this","sortables","Map","_stateChanges","Subject","start","_direction","sortChange","EventEmitter","defineProperty","get","set","direction","enumerable","configurable","_disableClear","v","coerceBooleanProperty","register","sortable","id","deregister","delete","active","getNextSortDirection","emit","_a","_b","_c","disableClear","sortDirectionCycle","getSortDirectionCycle","sortOrder","reverse","push","nextDirectionIndex","indexOf","length","ngOnInit","_markInitialized","ngOnChanges","next","ngOnDestroy","complete","mixinInitialized","mixinDisabled","MatSortBase","decorators","type","Directive","args","selector","exportAs","host","class","inputs","ctorParameters","undefined","Optional","Inject","propDecorators","Input","Output","MatSortHeaderIntl","SORT_ANIMATION_TRANSITION","AnimationDurations","ENTERING","AnimationCurves","STANDARD_CURVE","matSortAnimations","indicator","trigger","state","style","transform","transition","animate","leftPointer","rightPointer","arrowOpacity","opacity","arrowPosition","keyframes","allowChildren","query","animateChild","optional","MAT_SORT_HEADER_INTL_PROVIDER_FACTORY","parentIntl","changes","sortButtonLabel","ɵprov","ɵɵdefineInjectable","MatSortHeaderIntl_Factory","token","providedIn","Injectable","MatSortModule","MAT_SORT_HEADER_INTL_PROVIDER","provide","deps","SkipSelf","useFactory","MatSortHeader","_intl","_changeDetectorRef","_sort","_columnDef","_focusMonitor","_elementRef","_showIndicatorHint","_viewState","_arrowDirection","_disableViewStateAnimation","_handleStateChanges","name","_updateArrowDirection","_setAnimationTransitionState","toState","_isSorted","ngAfterViewInit","monitor","subscribe","origin","newState","_setIndicatorHintVisible","markForCheck","stopMonitoring","_rerenderSubscription","unsubscribe","visible","_isDisabled","fromState","viewState","_toggleOnInteraction","_handleClick","_handleKeydown","event","keyCode","SPACE","ENTER","preventDefault","_getArrowDirectionState","_getArrowViewState","disabled","_getAriaSortAttribute","_renderArrow","merge","MatSortHeaderBase","Component","template","(click)","(keydown)","(mouseenter)","(mouseleave)","[attr.aria-sort]","[class.mat-sort-header-disabled]","encapsulation","ViewEncapsulation","None","changeDetection","ChangeDetectionStrategy","OnPush","styles","ChangeDetectorRef","FocusMonitor","ElementRef","NgModule","imports","CommonModule","MatCommonModule","declarations","providers","value"],"mappings":"CAAC,SAAUA,EAAQC,GACI,iBAAZC,SAA0C,oBAAXC,OAAyBF,EAAQC,QAASE,QAAQ,iBAAkBA,QAAQ,yBAA0BA,QAAQ,0BAA2BA,QAAQ,qBAAsBA,QAAQ,yBAA0BA,QAAQ,QAASA,QAAQ,uBAAwBA,QAAQ,oBACtR,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAO,yBAA0B,CAAC,UAAW,gBAAiB,wBAAyB,yBAA0B,oBAAqB,wBAAyB,OAAQ,sBAAuB,mBAAoBJ,GACrOA,IAAzBD,EAASA,GAAUO,MAAsBC,GAAKR,EAAOQ,IAAM,GAAIR,EAAOQ,GAAGC,SAAWT,EAAOQ,GAAGC,UAAY,GAAIT,EAAOQ,GAAGC,SAASC,KAAO,IAAKV,EAAOQ,GAAGG,KAAMX,EAAOQ,GAAGI,IAAIC,SAAUb,EAAOQ,GAAGC,SAASE,KAAMX,EAAOQ,GAAGI,IAAIE,KAAMd,EAAOQ,GAAGI,IAAIG,SAAUf,EAAOgB,KAAMhB,EAAOQ,GAAGS,WAAYjB,EAAOQ,GAAGU,QAH5S,CAIEC,MAAM,SAAWjB,EAASkB,EAAIP,EAAUF,EAAMG,EAAMC,EAAUC,EAAMC,EAAYC,GAAU;;;;;;;;;;;;;;oFAiBxF,IAAIG,EAAgB,SAAUC,EAAGC,GAM7B,OALAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,S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,CAAC,CAAE4B,KAAMvE,EAAGoF,MAAOX,KAAM,CAAC,qBAC9B+B,cAAe,CAAC,CAAEjC,KAAMvE,EAAGoF,QAC3BxD,MAAO,CAAC,CAAE2C,KAAMvE,EAAGoF,QACnBhC,aAAc,CAAC,CAAEmB,KAAMvE,EAAGoF,UAU1BoC,EACA,SAASA,OAIClD,WAAa,CACvB,CAAEC,KAAMvE,EAAG8L,SAAUrH,KAAM,CAAC,CAChBsH,QAAS,CAACjM,EAAOkM,aAAczM,EAAK0M,iBACpCnN,QAAS,CAACsC,EAAS0G,GACnBoE,aAAc,CAAC9K,EAAS0G,GACxBqE,UAAW,CAAC1E;;;;;;;;AAgB5B3I,EAAQoC,yBAA2BA,EACnCpC,EAAQ2I,8BAAgCA,EACxC3I,EAAQgI,sCAAwCA,EAChDhI,EAAQsC,QAAUA,EAClBtC,EAAQgJ,cAAgBA,EACxBhJ,EAAQwG,kBAAoBA,EAC5BxG,EAAQ0I,cAAgBA,EACxB1I,EAAQ8G,kBAAoBA,EAE5BxF,OAAO4B,eAAelD,EAAS,aAAc,CAAEsN,OAAO","sourcesContent":["(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/coercion'), require('@angular/material/core'), require('@angular/cdk/a11y'), require('@angular/cdk/keycodes'), require('rxjs'), require('@angular/animations'), require('@angular/common')) :\n typeof define === 'function' && define.amd ? define('@angular/material/sort', ['exports', '@angular/core', '@angular/cdk/coercion', '@angular/material/core', '@angular/cdk/a11y', '@angular/cdk/keycodes', 'rxjs', '@angular/animations', '@angular/common'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.sort = {}), global.ng.core, global.ng.cdk.coercion, global.ng.material.core, global.ng.cdk.a11y, global.ng.cdk.keycodes, global.rxjs, global.ng.animations, global.ng.common));\n}(this, (function (exports, i0, coercion, core, a11y, keycodes, rxjs, animations, common) { 'use strict';\n\n /*! *****************************************************************************\n Copyright (c) Microsoft Corporation.\n\n Permission to use, copy, modify, and/or distribute this software for any\n purpose with or without fee is hereby granted.\n\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n PERFORMANCE OF THIS SOFTWARE.\n ***************************************************************************** */\n /* global Reflect, Promise */\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b)\n if (Object.prototype.hasOwnProperty.call(b, p))\n d[p] = b[p]; };\n return extendStatics(d, b);\n };\n function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n }\n 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)\n if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };\n function __rest(s, e) {\n var t = {};\n for (var p in s)\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n 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]))\n t[p[i]] = s[p[i]];\n }\n return t;\n }\n function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n 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 function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); };\n }\n function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(metadataKey, metadataValue);\n }\n function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try {\n step(generator.next(value));\n }\n catch (e) {\n reject(e);\n } }\n function rejected(value) { try {\n step(generator[\"throw\"](value));\n }\n catch (e) {\n reject(e);\n } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n }\n function __generator(thisArg, body) {\n var _ = { label: 0, sent: function () { if (t[0] & 1)\n throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f)\n throw new TypeError(\"Generator is already executing.\");\n while (_)\n 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)\n return t;\n if (y = 0, t)\n 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 { value: op[1], done: false };\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])\n _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n }\n catch (e) {\n op = [6, e];\n y = 0;\n }\n finally {\n f = t = 0;\n }\n if (op[0] & 5)\n throw op[1];\n return { value: op[0] ? op[1] : void 0, done: true };\n }\n }\n var __createBinding = Object.create ? (function (o, m, k, k2) {\n if (k2 === undefined)\n k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });\n }) : (function (o, m, k, k2) {\n if (k2 === undefined)\n k2 = k;\n o[k2] = m[k];\n });\n function __exportStar(m, o) {\n for (var p in m)\n if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p))\n __createBinding(o, m, p);\n }\n function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m)\n return m.call(o);\n if (o && typeof o.length === \"number\")\n return {\n next: function () {\n if (o && i >= o.length)\n o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n }\n function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m)\n return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done)\n ar.push(r.value);\n }\n catch (error) {\n e = { error: error };\n }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"]))\n m.call(i);\n }\n finally {\n if (e)\n throw e.error;\n }\n }\n return ar;\n }\n /** @deprecated */\n function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n }\n /** @deprecated */\n function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++)\n s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n }\n function __spreadArray(to, from) {\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\n to[j] = from[i];\n return to;\n }\n function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n }\n function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator)\n throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n])\n i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try {\n step(g[n](v));\n }\n catch (e) {\n settle(q[0][3], e);\n } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length)\n resume(q[0][0], q[0][1]); }\n }\n function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\n }\n function __asyncValues(o) {\n if (!Symbol.asyncIterator)\n throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], 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 () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }\n }\n function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) {\n Object.defineProperty(cooked, \"raw\", { value: raw });\n }\n else {\n cooked.raw = raw;\n }\n return cooked;\n }\n ;\n var __setModuleDefault = Object.create ? (function (o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n }) : function (o, v) {\n o[\"default\"] = v;\n };\n function __importStar(mod) {\n if (mod && mod.__esModule)\n return mod;\n var result = {};\n if (mod != null)\n for (var k in mod)\n if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k))\n __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n }\n function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n }\n function __classPrivateFieldGet(receiver, privateMap) {\n if (!privateMap.has(receiver)) {\n throw new TypeError(\"attempted to get private field on non-instance\");\n }\n return privateMap.get(receiver);\n }\n function __classPrivateFieldSet(receiver, privateMap, value) {\n if (!privateMap.has(receiver)) {\n throw new TypeError(\"attempted to set private field on non-instance\");\n }\n privateMap.set(receiver, value);\n return value;\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.io/license\n */\n /** @docs-private */\n function getSortDuplicateSortableIdError(id) {\n return Error(\"Cannot have two MatSortables with the same id (\" + id + \").\");\n }\n /** @docs-private */\n function getSortHeaderNotContainedWithinSortError() {\n return Error(\"MatSortHeader must be placed within a parent element with the MatSort directive.\");\n }\n /** @docs-private */\n function getSortHeaderMissingIdError() {\n return Error(\"MatSortHeader must be provided with a unique id.\");\n }\n /** @docs-private */\n function getSortInvalidDirectionError(direction) {\n return Error(direction + \" is not a valid sort direction ('asc' or 'desc').\");\n }\n\n /** Injection token to be used to override the default options for `mat-sort`. */\n var MAT_SORT_DEFAULT_OPTIONS = new i0.InjectionToken('MAT_SORT_DEFAULT_OPTIONS');\n // Boilerplate for applying mixins to MatSort.\n /** @docs-private */\n var MatSortBase = /** @class */ (function () {\n function MatSortBase() {\n }\n return MatSortBase;\n }());\n var _MatSortMixinBase = core.mixinInitialized(core.mixinDisabled(MatSortBase));\n /** Container for MatSortables to manage the sort state and provide default sort parameters. */\n var MatSort = /** @class */ (function (_super) {\n __extends(MatSort, _super);\n function MatSort(_defaultOptions) {\n var _this = _super.call(this) || this;\n _this._defaultOptions = _defaultOptions;\n /** Collection of all registered sortables that this directive manages. */\n _this.sortables = new Map();\n /** Used to notify any child components listening to state changes. */\n _this._stateChanges = new rxjs.Subject();\n /**\n * The direction to set when an MatSortable is initially sorted.\n * May be overriden by the MatSortable's sort start.\n */\n _this.start = 'asc';\n _this._direction = '';\n /** Event emitted when the user changes either the active sort or sort direction. */\n _this.sortChange = new i0.EventEmitter();\n return _this;\n }\n Object.defineProperty(MatSort.prototype, \"direction\", {\n /** The sort direction of the currently active MatSortable. */\n get: function () { return this._direction; },\n set: function (direction) {\n if (direction && direction !== 'asc' && direction !== 'desc' &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getSortInvalidDirectionError(direction);\n }\n this._direction = direction;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MatSort.prototype, \"disableClear\", {\n /**\n * Whether to disable the user from clearing the sort by finishing the sort direction cycle.\n * May be overriden by the MatSortable's disable clear input.\n */\n get: function () { return this._disableClear; },\n set: function (v) { this._disableClear = coercion.coerceBooleanProperty(v); },\n enumerable: false,\n configurable: true\n });\n /**\n * Register function to be used by the contained MatSortables. Adds the MatSortable to the\n * collection of MatSortables.\n */\n MatSort.prototype.register = function (sortable) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!sortable.id) {\n throw getSortHeaderMissingIdError();\n }\n if (this.sortables.has(sortable.id)) {\n throw getSortDuplicateSortableIdError(sortable.id);\n }\n }\n this.sortables.set(sortable.id, sortable);\n };\n /**\n * Unregister function to be used by the contained MatSortables. Removes the MatSortable from the\n * collection of contained MatSortables.\n */\n MatSort.prototype.deregister = function (sortable) {\n this.sortables.delete(sortable.id);\n };\n /** Sets the active sort id and determines the new sort direction. */\n MatSort.prototype.sort = function (sortable) {\n if (this.active != sortable.id) {\n this.active = sortable.id;\n this.direction = sortable.start ? sortable.start : this.start;\n }\n else {\n this.direction = this.getNextSortDirection(sortable);\n }\n this.sortChange.emit({ active: this.active, direction: this.direction });\n };\n /** Returns the next sort direction of the active sortable, checking for potential overrides. */\n MatSort.prototype.getNextSortDirection = function (sortable) {\n var _a, _b, _c;\n if (!sortable) {\n return '';\n }\n // Get the sort direction cycle with the potential sortable overrides.\n var disableClear = (_b = (_a = sortable === null || sortable === void 0 ? void 0 : sortable.disableClear) !== null && _a !== void 0 ? _a : this.disableClear) !== null && _b !== void 0 ? _b : !!((_c = this._defaultOptions) === null || _c === void 0 ? void 0 : _c.disableClear);\n var sortDirectionCycle = getSortDirectionCycle(sortable.start || this.start, disableClear);\n // Get and return the next direction in the cycle\n var nextDirectionIndex = sortDirectionCycle.indexOf(this.direction) + 1;\n if (nextDirectionIndex >= sortDirectionCycle.length) {\n nextDirectionIndex = 0;\n }\n return sortDirectionCycle[nextDirectionIndex];\n };\n MatSort.prototype.ngOnInit = function () {\n this._markInitialized();\n };\n MatSort.prototype.ngOnChanges = function () {\n this._stateChanges.next();\n };\n MatSort.prototype.ngOnDestroy = function () {\n this._stateChanges.complete();\n };\n return MatSort;\n }(_MatSortMixinBase));\n MatSort.decorators = [\n { type: i0.Directive, args: [{\n selector: '[matSort]',\n exportAs: 'matSort',\n host: { 'class': 'mat-sort' },\n inputs: ['disabled: matSortDisabled']\n },] }\n ];\n MatSort.ctorParameters = function () { return [\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_SORT_DEFAULT_OPTIONS,] }] }\n ]; };\n MatSort.propDecorators = {\n active: [{ type: i0.Input, args: ['matSortActive',] }],\n start: [{ type: i0.Input, args: ['matSortStart',] }],\n direction: [{ type: i0.Input, args: ['matSortDirection',] }],\n disableClear: [{ type: i0.Input, args: ['matSortDisableClear',] }],\n sortChange: [{ type: i0.Output, args: ['matSortChange',] }]\n };\n /** Returns the sort direction cycle to use given the provided parameters of order and clear. */\n function getSortDirectionCycle(start, disableClear) {\n var sortOrder = ['asc', 'desc'];\n if (start == 'desc') {\n sortOrder.reverse();\n }\n if (!disableClear) {\n sortOrder.push('');\n }\n return sortOrder;\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.io/license\n */\n var SORT_ANIMATION_TRANSITION = core.AnimationDurations.ENTERING + ' ' +\n core.AnimationCurves.STANDARD_CURVE;\n /**\n * Animations used by MatSort.\n * @docs-private\n */\n var matSortAnimations = {\n /** Animation that moves the sort indicator. */\n indicator: animations.trigger('indicator', [\n animations.state('active-asc, asc', animations.style({ transform: 'translateY(0px)' })),\n // 10px is the height of the sort indicator, minus the width of the pointers\n animations.state('active-desc, desc', animations.style({ transform: 'translateY(10px)' })),\n animations.transition('active-asc <=> active-desc', animations.animate(SORT_ANIMATION_TRANSITION))\n ]),\n /** Animation that rotates the left pointer of the indicator based on the sorting direction. */\n leftPointer: animations.trigger('leftPointer', [\n animations.state('active-asc, asc', animations.style({ transform: 'rotate(-45deg)' })),\n animations.state('active-desc, desc', animations.style({ transform: 'rotate(45deg)' })),\n animations.transition('active-asc <=> active-desc', animations.animate(SORT_ANIMATION_TRANSITION))\n ]),\n /** Animation that rotates the right pointer of the indicator based on the sorting direction. */\n rightPointer: animations.trigger('rightPointer', [\n animations.state('active-asc, asc', animations.style({ transform: 'rotate(45deg)' })),\n animations.state('active-desc, desc', animations.style({ transform: 'rotate(-45deg)' })),\n animations.transition('active-asc <=> active-desc', animations.animate(SORT_ANIMATION_TRANSITION))\n ]),\n /** Animation that controls the arrow opacity. */\n arrowOpacity: animations.trigger('arrowOpacity', [\n animations.state('desc-to-active, asc-to-active, active', animations.style({ opacity: 1 })),\n animations.state('desc-to-hint, asc-to-hint, hint', animations.style({ opacity: .54 })),\n animations.state('hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void', animations.style({ opacity: 0 })),\n // Transition between all states except for immediate transitions\n animations.transition('* => asc, * => desc, * => active, * => hint, * => void', animations.animate('0ms')),\n animations.transition('* <=> *', animations.animate(SORT_ANIMATION_TRANSITION)),\n ]),\n /**\n * Animation for the translation of the arrow as a whole. States are separated into two\n * groups: ones with animations and others that are immediate. Immediate states are asc, desc,\n * peek, and active. The other states define a specific animation (source-to-destination)\n * and are determined as a function of their prev user-perceived state and what the next state\n * should be.\n */\n arrowPosition: animations.trigger('arrowPosition', [\n // Hidden Above => Hint Center\n animations.transition('* => desc-to-hint, * => desc-to-active', animations.animate(SORT_ANIMATION_TRANSITION, animations.keyframes([\n animations.style({ transform: 'translateY(-25%)' }),\n animations.style({ transform: 'translateY(0)' })\n ]))),\n // Hint Center => Hidden Below\n animations.transition('* => hint-to-desc, * => active-to-desc', animations.animate(SORT_ANIMATION_TRANSITION, animations.keyframes([\n animations.style({ transform: 'translateY(0)' }),\n animations.style({ transform: 'translateY(25%)' })\n ]))),\n // Hidden Below => Hint Center\n animations.transition('* => asc-to-hint, * => asc-to-active', animations.animate(SORT_ANIMATION_TRANSITION, animations.keyframes([\n animations.style({ transform: 'translateY(25%)' }),\n animations.style({ transform: 'translateY(0)' })\n ]))),\n // Hint Center => Hidden Above\n animations.transition('* => hint-to-asc, * => active-to-asc', animations.animate(SORT_ANIMATION_TRANSITION, animations.keyframes([\n animations.style({ transform: 'translateY(0)' }),\n animations.style({ transform: 'translateY(-25%)' })\n ]))),\n animations.state('desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active', animations.style({ transform: 'translateY(0)' })),\n animations.state('hint-to-desc, active-to-desc, desc', animations.style({ transform: 'translateY(-25%)' })),\n animations.state('hint-to-asc, active-to-asc, asc', animations.style({ transform: 'translateY(25%)' })),\n ]),\n /** Necessary trigger that calls animate on children animations. */\n allowChildren: animations.trigger('allowChildren', [\n animations.transition('* <=> *', [\n animations.query('@*', animations.animateChild(), { optional: true })\n ])\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.io/license\n */\n /**\n * To modify the labels and text displayed, create a new instance of MatSortHeaderIntl and\n * include it in a custom provider.\n */\n var MatSortHeaderIntl = /** @class */ (function () {\n function MatSortHeaderIntl() {\n /**\n * Stream that emits whenever the labels here are changed. Use this to notify\n * components if the labels have changed after initialization.\n */\n this.changes = new rxjs.Subject();\n /**\n * ARIA label for the sorting button.\n * @deprecated Not used anymore. To be removed.\n * @breaking-change 8.0.0\n */\n this.sortButtonLabel = function (id) {\n return \"Change sorting for \" + id;\n };\n }\n return MatSortHeaderIntl;\n }());\n MatSortHeaderIntl.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatSortHeaderIntl_Factory() { return new MatSortHeaderIntl(); }, token: MatSortHeaderIntl, providedIn: \"root\" });\n MatSortHeaderIntl.decorators = [\n { type: i0.Injectable, args: [{ providedIn: 'root' },] }\n ];\n /** @docs-private */\n function MAT_SORT_HEADER_INTL_PROVIDER_FACTORY(parentIntl) {\n return parentIntl || new MatSortHeaderIntl();\n }\n /** @docs-private */\n var MAT_SORT_HEADER_INTL_PROVIDER = {\n // If there is already an MatSortHeaderIntl available, use that. Otherwise, provide a new one.\n provide: MatSortHeaderIntl,\n deps: [[new i0.Optional(), new i0.SkipSelf(), MatSortHeaderIntl]],\n useFactory: MAT_SORT_HEADER_INTL_PROVIDER_FACTORY\n };\n\n // Boilerplate for applying mixins to the sort header.\n /** @docs-private */\n var MatSortHeaderBase = /** @class */ (function () {\n function MatSortHeaderBase() {\n }\n return MatSortHeaderBase;\n }());\n var _MatSortHeaderMixinBase = core.mixinDisabled(MatSortHeaderBase);\n /**\n * Applies sorting behavior (click to change sort) and styles to an element, including an\n * arrow to display the current sort direction.\n *\n * Must be provided with an id and contained within a parent MatSort directive.\n *\n * If used on header cells in a CdkTable, it will automatically default its id from its containing\n * column definition.\n */\n var MatSortHeader = /** @class */ (function (_super) {\n __extends(MatSortHeader, _super);\n function MatSortHeader(_intl, _changeDetectorRef, \n // `MatSort` is not optionally injected, but just asserted manually w/ better error.\n // tslint:disable-next-line: lightweight-tokens\n _sort, _columnDef, _focusMonitor, _elementRef) {\n var _this = \n // Note that we use a string token for the `_columnDef`, because the value is provided both by\n // `material/table` and `cdk/table` and we can't have the CDK depending on Material,\n // and we want to avoid having the sort header depending on the CDK table because\n // of this single reference.\n _super.call(this) || this;\n _this._intl = _intl;\n _this._changeDetectorRef = _changeDetectorRef;\n _this._sort = _sort;\n _this._columnDef = _columnDef;\n _this._focusMonitor = _focusMonitor;\n _this._elementRef = _elementRef;\n /**\n * Flag set to true when the indicator should be displayed while the sort is not active. Used to\n * provide an affordance that the header is sortable by showing on focus and hover.\n */\n _this._showIndicatorHint = false;\n /**\n * The view transition state of the arrow (translation/ opacity) - indicates its `from` and `to`\n * position through the animation. If animations are currently disabled, the fromState is removed\n * so that there is no animation displayed.\n */\n _this._viewState = {};\n /** The direction the arrow should be facing according to the current state. */\n _this._arrowDirection = '';\n /**\n * Whether the view state animation should show the transition between the `from` and `to` states.\n */\n _this._disableViewStateAnimation = false;\n /** Sets the position of the arrow that displays when sorted. */\n _this.arrowPosition = 'after';\n if (!_sort && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getSortHeaderNotContainedWithinSortError();\n }\n _this._handleStateChanges();\n return _this;\n }\n Object.defineProperty(MatSortHeader.prototype, \"disableClear\", {\n /** Overrides the disable clear value of the containing MatSort for this MatSortable. */\n get: function () { return this._disableClear; },\n set: function (v) { this._disableClear = coercion.coerceBooleanProperty(v); },\n enumerable: false,\n configurable: true\n });\n MatSortHeader.prototype.ngOnInit = function () {\n if (!this.id && this._columnDef) {\n this.id = this._columnDef.name;\n }\n // Initialize the direction of the arrow and set the view state to be immediately that state.\n this._updateArrowDirection();\n this._setAnimationTransitionState({ toState: this._isSorted() ? 'active' : this._arrowDirection });\n this._sort.register(this);\n };\n MatSortHeader.prototype.ngAfterViewInit = function () {\n var _this = this;\n // We use the focus monitor because we also want to style\n // things differently based on the focus origin.\n this._focusMonitor.monitor(this._elementRef, true).subscribe(function (origin) {\n var newState = !!origin;\n if (newState !== _this._showIndicatorHint) {\n _this._setIndicatorHintVisible(newState);\n _this._changeDetectorRef.markForCheck();\n }\n });\n };\n MatSortHeader.prototype.ngOnDestroy = function () {\n this._focusMonitor.stopMonitoring(this._elementRef);\n this._sort.deregister(this);\n this._rerenderSubscription.unsubscribe();\n };\n /**\n * Sets the \"hint\" state such that the arrow will be semi-transparently displayed as a hint to the\n * user showing what the active sort will become. If set to false, the arrow will fade away.\n */\n MatSortHeader.prototype._setIndicatorHintVisible = function (visible) {\n // No-op if the sort header is disabled - should not make the hint visible.\n if (this._isDisabled() && visible) {\n return;\n }\n this._showIndicatorHint = visible;\n if (!this._isSorted()) {\n this._updateArrowDirection();\n if (this._showIndicatorHint) {\n this._setAnimationTransitionState({ fromState: this._arrowDirection, toState: 'hint' });\n }\n else {\n this._setAnimationTransitionState({ fromState: 'hint', toState: this._arrowDirection });\n }\n }\n };\n /**\n * Sets the animation transition view state for the arrow's position and opacity. If the\n * `disableViewStateAnimation` flag is set to true, the `fromState` will be ignored so that\n * no animation appears.\n */\n MatSortHeader.prototype._setAnimationTransitionState = function (viewState) {\n this._viewState = viewState || {};\n // If the animation for arrow position state (opacity/translation) should be disabled,\n // remove the fromState so that it jumps right to the toState.\n if (this._disableViewStateAnimation) {\n this._viewState = { toState: viewState.toState };\n }\n };\n /** Triggers the sort on this sort header and removes the indicator hint. */\n MatSortHeader.prototype._toggleOnInteraction = function () {\n this._sort.sort(this);\n // Do not show the animation if the header was already shown in the right position.\n if (this._viewState.toState === 'hint' || this._viewState.toState === 'active') {\n this._disableViewStateAnimation = true;\n }\n };\n MatSortHeader.prototype._handleClick = function () {\n if (!this._isDisabled()) {\n this._sort.sort(this);\n }\n };\n MatSortHeader.prototype._handleKeydown = function (event) {\n if (!this._isDisabled() && (event.keyCode === keycodes.SPACE || event.keyCode === keycodes.ENTER)) {\n event.preventDefault();\n this._toggleOnInteraction();\n }\n };\n /** Whether this MatSortHeader is currently sorted in either ascending or descending order. */\n MatSortHeader.prototype._isSorted = function () {\n return this._sort.active == this.id &&\n (this._sort.direction === 'asc' || this._sort.direction === 'desc');\n };\n /** Returns the animation state for the arrow direction (indicator and pointers). */\n MatSortHeader.prototype._getArrowDirectionState = function () {\n return \"\" + (this._isSorted() ? 'active-' : '') + this._arrowDirection;\n };\n /** Returns the arrow position state (opacity, translation). */\n MatSortHeader.prototype._getArrowViewState = function () {\n var fromState = this._viewState.fromState;\n return (fromState ? fromState + \"-to-\" : '') + this._viewState.toState;\n };\n /**\n * Updates the direction the arrow should be pointing. If it is not sorted, the arrow should be\n * facing the start direction. Otherwise if it is sorted, the arrow should point in the currently\n * active sorted direction. The reason this is updated through a function is because the direction\n * should only be changed at specific times - when deactivated but the hint is displayed and when\n * the sort is active and the direction changes. Otherwise the arrow's direction should linger\n * in cases such as the sort becoming deactivated but we want to animate the arrow away while\n * preserving its direction, even though the next sort direction is actually different and should\n * only be changed once the arrow displays again (hint or activation).\n */\n MatSortHeader.prototype._updateArrowDirection = function () {\n this._arrowDirection = this._isSorted() ?\n this._sort.direction :\n (this.start || this._sort.start);\n };\n MatSortHeader.prototype._isDisabled = function () {\n return this._sort.disabled || this.disabled;\n };\n /**\n * Gets the aria-sort attribute that should be applied to this sort header. If this header\n * is not sorted, returns null so that the attribute is removed from the host element. Aria spec\n * says that the aria-sort property should only be present on one header at a time, so removing\n * ensures this is true.\n */\n MatSortHeader.prototype._getAriaSortAttribute = function () {\n if (!this._isSorted()) {\n return 'none';\n }\n return this._sort.direction == 'asc' ? 'ascending' : 'descending';\n };\n /** Whether the arrow inside the sort header should be rendered. */\n MatSortHeader.prototype._renderArrow = function () {\n return !this._isDisabled() || this._isSorted();\n };\n /** Handles changes in the sorting state. */\n MatSortHeader.prototype._handleStateChanges = function () {\n var _this = this;\n this._rerenderSubscription =\n rxjs.merge(this._sort.sortChange, this._sort._stateChanges, this._intl.changes).subscribe(function () {\n if (_this._isSorted()) {\n _this._updateArrowDirection();\n // Do not show the animation if the header was already shown in the right position.\n if (_this._viewState.toState === 'hint' || _this._viewState.toState === 'active') {\n _this._disableViewStateAnimation = true;\n }\n _this._setAnimationTransitionState({ fromState: _this._arrowDirection, toState: 'active' });\n _this._showIndicatorHint = false;\n }\n // If this header was recently active and now no longer sorted, animate away the arrow.\n if (!_this._isSorted() && _this._viewState && _this._viewState.toState === 'active') {\n _this._disableViewStateAnimation = false;\n _this._setAnimationTransitionState({ fromState: 'active', toState: _this._arrowDirection });\n }\n _this._changeDetectorRef.markForCheck();\n });\n };\n return MatSortHeader;\n }(_MatSortHeaderMixinBase));\n MatSortHeader.decorators = [\n { type: i0.Component, args: [{\n selector: '[mat-sort-header]',\n exportAs: 'matSortHeader',\n template: \"<!--\\n We set the `tabindex` on an element inside the table header, rather than the header itself,\\n because of a bug in NVDA where having a `tabindex` on a `th` breaks keyboard navigation in the\\n table (see https://github.com/nvaccess/nvda/issues/7718). This allows for the header to both\\n be focusable, and have screen readers read out its `aria-sort` state. We prefer this approach\\n over having a button with an `aria-label` inside the header, because the button's `aria-label`\\n will be read out as the user is navigating the table's cell (see #13012).\\n\\n The approach is based off of: https://dequeuniversity.com/library/aria/tables/sf-sortable-grid\\n-->\\n<div class=\\\"mat-sort-header-container mat-focus-indicator\\\"\\n [class.mat-sort-header-sorted]=\\\"_isSorted()\\\"\\n [class.mat-sort-header-position-before]=\\\"arrowPosition == 'before'\\\"\\n [attr.tabindex]=\\\"_isDisabled() ? null : 0\\\"\\n role=\\\"button\\\">\\n\\n <!--\\n TODO(crisbeto): this div isn't strictly necessary, but we have to keep it due to a large\\n number of screenshot diff failures. It should be removed eventually. Note that the difference\\n isn't visible with a shorter header, but once it breaks up into multiple lines, this element\\n causes it to be center-aligned, whereas removing it will keep the text to the left.\\n -->\\n <div class=\\\"mat-sort-header-content\\\">\\n <ng-content></ng-content>\\n </div>\\n\\n <!-- Disable animations while a current animation is running -->\\n <div class=\\\"mat-sort-header-arrow\\\"\\n *ngIf=\\\"_renderArrow()\\\"\\n [@arrowOpacity]=\\\"_getArrowViewState()\\\"\\n [@arrowPosition]=\\\"_getArrowViewState()\\\"\\n [@allowChildren]=\\\"_getArrowDirectionState()\\\"\\n (@arrowPosition.start)=\\\"_disableViewStateAnimation = true\\\"\\n (@arrowPosition.done)=\\\"_disableViewStateAnimation = false\\\">\\n <div class=\\\"mat-sort-header-stem\\\"></div>\\n <div class=\\\"mat-sort-header-indicator\\\" [@indicator]=\\\"_getArrowDirectionState()\\\">\\n <div class=\\\"mat-sort-header-pointer-left\\\" [@leftPointer]=\\\"_getArrowDirectionState()\\\"></div>\\n <div class=\\\"mat-sort-header-pointer-right\\\" [@rightPointer]=\\\"_getArrowDirectionState()\\\"></div>\\n <div class=\\\"mat-sort-header-pointer-middle\\\"></div>\\n </div>\\n </div>\\n</div>\\n\",\n host: {\n 'class': 'mat-sort-header',\n '(click)': '_handleClick()',\n '(keydown)': '_handleKeydown($event)',\n '(mouseenter)': '_setIndicatorHintVisible(true)',\n '(mouseleave)': '_setIndicatorHintVisible(false)',\n '[attr.aria-sort]': '_getAriaSortAttribute()',\n '[class.mat-sort-header-disabled]': '_isDisabled()',\n },\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush,\n inputs: ['disabled'],\n animations: [\n matSortAnimations.indicator,\n matSortAnimations.leftPointer,\n matSortAnimations.rightPointer,\n matSortAnimations.arrowOpacity,\n matSortAnimations.arrowPosition,\n matSortAnimations.allowChildren,\n ],\n styles: [\".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\\n\"]\n },] }\n ];\n MatSortHeader.ctorParameters = function () { return [\n { type: MatSortHeaderIntl },\n { type: i0.ChangeDetectorRef },\n { type: MatSort, decorators: [{ type: i0.Optional }] },\n { type: undefined, decorators: [{ type: i0.Inject, args: ['MAT_SORT_HEADER_COLUMN_DEF',] }, { type: i0.Optional }] },\n { type: a11y.FocusMonitor },\n { type: i0.ElementRef }\n ]; };\n MatSortHeader.propDecorators = {\n id: [{ type: i0.Input, args: ['mat-sort-header',] }],\n arrowPosition: [{ type: i0.Input }],\n start: [{ type: i0.Input }],\n disableClear: [{ type: i0.Input }]\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.io/license\n */\n var MatSortModule = /** @class */ (function () {\n function MatSortModule() {\n }\n return MatSortModule;\n }());\n MatSortModule.decorators = [\n { type: i0.NgModule, args: [{\n imports: [common.CommonModule, core.MatCommonModule],\n exports: [MatSort, MatSortHeader],\n declarations: [MatSort, MatSortHeader],\n providers: [MAT_SORT_HEADER_INTL_PROVIDER]\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.io/license\n */\n\n /**\n * Generated bundle index. Do not edit.\n */\n\n exports.MAT_SORT_DEFAULT_OPTIONS = MAT_SORT_DEFAULT_OPTIONS;\n exports.MAT_SORT_HEADER_INTL_PROVIDER = MAT_SORT_HEADER_INTL_PROVIDER;\n exports.MAT_SORT_HEADER_INTL_PROVIDER_FACTORY = MAT_SORT_HEADER_INTL_PROVIDER_FACTORY;\n exports.MatSort = MatSort;\n exports.MatSortHeader = MatSortHeader;\n exports.MatSortHeaderIntl = MatSortHeaderIntl;\n exports.MatSortModule = MatSortModule;\n exports.matSortAnimations = matSortAnimations;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=material-sort.umd.js.map\n"]}