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O,GACfD,EACL,CAGA,SAASI,EAAc//B,EAAS2/B,GAC9B,IAAI73F,EACJ,MAAMk4F,EAAeT,MAAqB,EACpCU,EAAWD,EAAeF,EAAgB,UAC1CI,EAAaF,EAAeP,EAAkB,aAC7CU,EAAYpuE,GAAqD,OAAzCjqB,EAAKm4F,GAAS,IAAMjgC,KAAW2/B,IAAiB73F,EAAK,CAClF,KACA,IAAM,MAKR,OAHAo4F,GAAW,IACFnuE,GACN4tE,GACIQ,CACT","sources":["../../../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js","../../../../node_modules/.pnpm/scheduler@0.20.2/node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/.pnpm/scheduler@0.20.2/node_modules/scheduler/index.js","../../../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/hash.js","../../../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/index.js","../../../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha.js","../../../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha1.js","../../../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha224.js","../../../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha256.js","../../../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha384.js","../../../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha512.js","../../../../node_modules/.pnpm/shallow-equal@1.2.1/node_modules/shallow-equal/dist/index.esm.js","../../../../node_modules/.pnpm/smart-truncate@1.0.1/node_modules/smart-truncate/dist/smart-truncate.es5.js","../../../../node_modules/.pnpm/source-map@0.5.6/node_modules/source-map/lib/array-set.js","../../../../node_modules/.pnpm/source-map@0.5.6/node_modules/source-map/lib/base64-vlq.js","../../../../node_modules/.pnpm/source-map@0.5.6/node_modules/source-map/lib/base64.js","../../../../node_modules/.pnpm/source-map@0.5.6/node_modules/source-map/lib/binary-search.js","../../../../node_modules/.pnpm/source-map@0.5.6/node_modules/source-map/lib/mapping-list.js","../../../../node_modules/.pnpm/source-map@0.5.6/node_modules/source-map/lib/quick-sort.js","../../../../node_modules/.pnpm/source-map@0.5.6/node_modules/source-map/lib/source-map-consumer.js","../../../../node_modules/.pnpm/source-map@0.5.6/node_modules/source-map/lib/source-map-generator.js","../../../../node_modules/.pnpm/source-map@0.5.6/node_modules/source-map/lib/source-node.js","../../../../node_modules/.pnpm/source-map@0.5.6/node_modules/source-map/lib/util.js","../../../../node_modules/.pnpm/source-map@0.5.6/node_modules/source-map/source-map.js","../../../../node_modules/.pnpm/split-on-first@1.1.0/node_modules/split-on-first/index.js","../../../../node_modules/.pnpm/sprintf-js@1.1.2/node_modules/sprintf-js/src/sprintf.js","../../../../node_modules/.pnpm/stack-generator@2.0.5/node_modules/stack-generator/stack-generator.js","../../../../node_modules/.pnpm/stackframe@1.2.0/node_modules/stackframe/stackframe.js","../../../../node_modules/.pnpm/stacktrace-gps@3.0.4/node_modules/stacktrace-gps/stacktrace-gps.js","../../../../node_modules/.pnpm/stacktrace-js@2.0.2/node_modules/stacktrace-js/stacktrace.js","../../../../node_modules/.pnpm/strict-uri-encode@2.0.0/node_modules/strict-uri-encode/index.js","../../../../node_modules/.pnpm/string-convert@0.2.1/node_modules/string-convert/camel2hyphen.js","../../../../node_modules/.pnpm/string_decoder@1.3.0/node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/.pnpm/symbol-observable@1.2.0/node_modules/symbol-observable/es/index.js","../../../../node_modules/.pnpm/symbol-observable@1.2.0/node_modules/symbol-observable/es/ponyfill.js","../../../../node_modules/.pnpm/tabster@8.1.0/node_modules/tabster/dist/tabster.esm.js","../../../../node_modules/.pnpm/tc39-proposal-temporal@1.0.2/node_modules/tc39-proposal-temporal/index.js","../../../../node_modules/.pnpm/theming@3.3.0_react@17.0.1/node_modules/theming/dist/theming.esm.js","../../../../node_modules/.pnpm/tiny-invariant@1.0.6/node_modules/tiny-invariant/dist/tiny-invariant.esm.js","../../../../node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","../../../../node_modules/.pnpm/uncontrollable@7.2.1_react@17.0.1/node_modules/uncontrollable/lib/esm/utils.js","../../../../node_modules/.pnpm/uncontrollable@7.2.1_react@17.0.1/node_modules/uncontrollable/lib/esm/uncontrollable.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/camelize.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/capitalize.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/chars.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/chop.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/classify.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/clean.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/cleanDiacritics.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/count.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/dasherize.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/decapitalize.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/dedent.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/endsWith.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/escapeHTML.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/exports.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/helper/adjacent.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/helper/defaultToWhiteSpace.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/helper/escapeChars.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/helper/escapeRegExp.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/helper/htmlEntities.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/helper/makeString.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/helper/strRepeat.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/helper/toPositive.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/humanize.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/include.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/index.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/insert.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/isBlank.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/join.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/levenshtein.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/lines.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/lpad.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/lrpad.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/ltrim.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/map.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/naturalCmp.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/numberFormat.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/pad.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/pred.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/prune.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/quote.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/repeat.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/replaceAll.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/reverse.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/rpad.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/rtrim.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/slugify.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/splice.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/sprintf.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/startsWith.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/strLeft.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/strLeftBack.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/strRight.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/strRightBack.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/stripTags.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/succ.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/surround.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/swapCase.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/titleize.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/toBoolean.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/toNumber.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/toSentence.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/toSentenceSerial.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/trim.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/truncate.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/underscored.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/unescapeHTML.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/unquote.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/vsprintf.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/words.js","../../../../node_modules/.pnpm/underscore.string@3.3.5/node_modules/underscore.string/wrap.js","../../../../node_modules/.pnpm/underscore@1.12.1/node_modules/underscore/underscore.js","../../../../node_modules/.pnpm/uri-js@4.4.1/node_modules/uri-js/dist/es5/uri.all.js","../../../../node_modules/.pnpm/urijs@1.18.4/node_modules/urijs/src/IPv6.js","../../../../node_modules/.pnpm/urijs@1.18.4/node_modules/urijs/src/SecondLevelDomains.js","../../../../node_modules/.pnpm/urijs@1.18.4/node_modules/urijs/src/URI.js","../../../../node_modules/.pnpm/urijs@1.18.4/node_modules/urijs/src/punycode.js","../../../../node_modules/.pnpm/url-search-params-polyfill@8.1.1/node_modules/url-search-params-polyfill/index.js","../../../../node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js","../../../../node_modules/.pnpm/stylis@4.3.0/node_modules/stylis/src/Enum.js","../../../../node_modules/.pnpm/stylis@4.3.0/node_modules/stylis/src/Middleware.js","../../../../node_modules/.pnpm/stylis@4.3.0/node_modules/stylis/src/Parser.js","../../../../node_modules/.pnpm/stylis@4.3.0/node_modules/stylis/src/Serializer.js","../../../../node_modules/.pnpm/stylis@4.3.0/node_modules/stylis/src/Tokenizer.js","../../../../node_modules/.pnpm/stylis@4.3.0/node_modules/stylis/src/Utility.js","../../../../node_modules/.pnpm/tslib@2.7.0/node_modules/tslib/tslib.es6.mjs","../../../../node_modules/.pnpm/use-disposable@1.0.1_@types+react-dom@17.0.22_@types+react@17.0.69_react-dom@17.0.1_react@17.0.1__react@17.0.1/node_modules/use-disposable/lib/index.js"],"sourcesContent":["/*! safe-buffer. MIT License. Feross Aboukhadijeh */\n/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.prototype = Object.create(Buffer.prototype)\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n","/** @license React v0.20.2\n * scheduler.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f,g,h,k;if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}\nif(\"undefined\"===typeof window||\"function\"!==typeof MessageChannel){var t=null,u=null,w=function(){if(null!==t)try{var a=exports.unstable_now();t(!0,a);t=null}catch(b){throw setTimeout(w,0),b;}};f=function(a){null!==t?setTimeout(f,0,a):(t=a,setTimeout(w,0))};g=function(a,b){u=setTimeout(a,b)};h=function(){clearTimeout(u)};exports.unstable_shouldYield=function(){return!1};k=exports.unstable_forceFrameRate=function(){}}else{var x=window.setTimeout,y=window.clearTimeout;if(\"undefined\"!==typeof console){var z=\nwindow.cancelAnimationFrame;\"function\"!==typeof window.requestAnimationFrame&&console.error(\"This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills\");\"function\"!==typeof z&&console.error(\"This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills\")}var A=!1,B=null,C=-1,D=5,E=0;exports.unstable_shouldYield=function(){return exports.unstable_now()>=\nE};k=function(){};exports.unstable_forceFrameRate=function(a){0>a||125>>1,e=a[d];if(void 0!==e&&0I(n,c))void 0!==r&&0>I(r,n)?(a[d]=r,a[v]=c,d=v):(a[d]=n,a[m]=c,d=m);else if(void 0!==r&&0>I(r,c))a[d]=r,a[v]=c,d=v;else break a}}return b}return null}function I(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var L=[],M=[],N=1,O=null,P=3,Q=!1,R=!1,S=!1;\nfunction T(a){for(var b=J(M);null!==b;){if(null===b.callback)K(M);else if(b.startTime<=a)K(M),b.sortIndex=b.expirationTime,H(L,b);else break;b=J(M)}}function U(a){S=!1;T(a);if(!R)if(null!==J(L))R=!0,f(V);else{var b=J(M);null!==b&&g(U,b.startTime-a)}}\nfunction V(a,b){R=!1;S&&(S=!1,h());Q=!0;var c=P;try{T(b);for(O=J(L);null!==O&&(!(O.expirationTime>b)||a&&!exports.unstable_shouldYield());){var d=O.callback;if(\"function\"===typeof d){O.callback=null;P=O.priorityLevel;var e=d(O.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?O.callback=e:O===J(L)&&K(L);T(b)}else K(L);O=J(L)}if(null!==O)var m=!0;else{var n=J(M);null!==n&&g(U,n.startTime-b);m=!1}return m}finally{O=null,P=c,Q=!1}}var W=k;exports.unstable_IdlePriority=5;\nexports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(a){a.callback=null};exports.unstable_continueExecution=function(){R||Q||(R=!0,f(V))};exports.unstable_getCurrentPriorityLevel=function(){return P};exports.unstable_getFirstCallbackNode=function(){return J(L)};\nexports.unstable_next=function(a){switch(P){case 1:case 2:case 3:var b=3;break;default:b=P}var c=P;P=b;try{return a()}finally{P=c}};exports.unstable_pauseExecution=function(){};exports.unstable_requestPaint=W;exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=P;P=a;try{return b()}finally{P=c}};\nexports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();\"object\"===typeof c&&null!==c?(c=c.delay,c=\"number\"===typeof c&&0d?(a.sortIndex=c,H(M,a),null===J(L)&&a===J(M)&&(S?h():S=!0,g(U,c-d))):(a.sortIndex=e,H(L,a),R||Q||(R=!0,f(V)));return a};\nexports.unstable_wrapCallback=function(a){var b=P;return function(){var c=P;P=b;try{return a.apply(this,arguments)}finally{P=c}}};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","var Buffer = require('safe-buffer').Buffer\n\n// prototype class for hash functions\nfunction Hash (blockSize, finalSize) {\n this._block = Buffer.alloc(blockSize)\n this._finalSize = finalSize\n this._blockSize = blockSize\n this._len = 0\n}\n\nHash.prototype.update = function (data, enc) {\n if (typeof data === 'string') {\n enc = enc || 'utf8'\n data = Buffer.from(data, enc)\n }\n\n var block = this._block\n var blockSize = this._blockSize\n var length = data.length\n var accum = this._len\n\n for (var offset = 0; offset < length;) {\n var assigned = accum % blockSize\n var remainder = Math.min(length - offset, blockSize - assigned)\n\n for (var i = 0; i < remainder; i++) {\n block[assigned + i] = data[offset + i]\n }\n\n accum += remainder\n offset += remainder\n\n if ((accum % blockSize) === 0) {\n this._update(block)\n }\n }\n\n this._len += length\n return this\n}\n\nHash.prototype.digest = function (enc) {\n var rem = this._len % this._blockSize\n\n this._block[rem] = 0x80\n\n // zero (rem + 1) trailing bits, where (rem + 1) is the smallest\n // non-negative solution to the equation (length + 1 + (rem + 1)) === finalSize mod blockSize\n this._block.fill(0, rem + 1)\n\n if (rem >= this._finalSize) {\n this._update(this._block)\n this._block.fill(0)\n }\n\n var bits = this._len * 8\n\n // uint32\n if (bits <= 0xffffffff) {\n this._block.writeUInt32BE(bits, this._blockSize - 4)\n\n // uint64\n } else {\n var lowBits = (bits & 0xffffffff) >>> 0\n var highBits = (bits - lowBits) / 0x100000000\n\n this._block.writeUInt32BE(highBits, this._blockSize - 8)\n this._block.writeUInt32BE(lowBits, this._blockSize - 4)\n }\n\n this._update(this._block)\n var hash = this._hash()\n\n return enc ? hash.toString(enc) : hash\n}\n\nHash.prototype._update = function () {\n throw new Error('_update must be implemented by subclass')\n}\n\nmodule.exports = Hash\n","var exports = module.exports = function SHA (algorithm) {\n algorithm = algorithm.toLowerCase()\n\n var Algorithm = exports[algorithm]\n if (!Algorithm) throw new Error(algorithm + ' is not supported (we accept pull requests)')\n\n return new Algorithm()\n}\n\nexports.sha = require('./sha')\nexports.sha1 = require('./sha1')\nexports.sha224 = require('./sha224')\nexports.sha256 = require('./sha256')\nexports.sha384 = require('./sha384')\nexports.sha512 = require('./sha512')\n","/*\n * A JavaScript implementation of the Secure Hash Algorithm, SHA-0, as defined\n * in FIPS PUB 180-1\n * This source code is derived from sha1.js of the same repository.\n * The difference between SHA-0 and SHA-1 is just a bitwise rotate left\n * operation was added.\n */\n\nvar inherits = require('inherits')\nvar Hash = require('./hash')\nvar Buffer = require('safe-buffer').Buffer\n\nvar K = [\n 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc | 0, 0xca62c1d6 | 0\n]\n\nvar W = new Array(80)\n\nfunction Sha () {\n this.init()\n this._w = W\n\n Hash.call(this, 64, 56)\n}\n\ninherits(Sha, Hash)\n\nSha.prototype.init = function () {\n this._a = 0x67452301\n this._b = 0xefcdab89\n this._c = 0x98badcfe\n this._d = 0x10325476\n this._e = 0xc3d2e1f0\n\n return this\n}\n\nfunction rotl5 (num) {\n return (num << 5) | (num >>> 27)\n}\n\nfunction rotl30 (num) {\n return (num << 30) | (num >>> 2)\n}\n\nfunction ft (s, b, c, d) {\n if (s === 0) return (b & c) | ((~b) & d)\n if (s === 2) return (b & c) | (b & d) | (c & d)\n return b ^ c ^ d\n}\n\nSha.prototype._update = function (M) {\n var W = this._w\n\n var a = this._a | 0\n var b = this._b | 0\n var c = this._c | 0\n var d = this._d | 0\n var e = this._e | 0\n\n for (var i = 0; i < 16; ++i) W[i] = M.readInt32BE(i * 4)\n for (; i < 80; ++i) W[i] = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16]\n\n for (var j = 0; j < 80; ++j) {\n var s = ~~(j / 20)\n var t = (rotl5(a) + ft(s, b, c, d) + e + W[j] + K[s]) | 0\n\n e = d\n d = c\n c = rotl30(b)\n b = a\n a = t\n }\n\n this._a = (a + this._a) | 0\n this._b = (b + this._b) | 0\n this._c = (c + this._c) | 0\n this._d = (d + this._d) | 0\n this._e = (e + this._e) | 0\n}\n\nSha.prototype._hash = function () {\n var H = Buffer.allocUnsafe(20)\n\n H.writeInt32BE(this._a | 0, 0)\n H.writeInt32BE(this._b | 0, 4)\n H.writeInt32BE(this._c | 0, 8)\n H.writeInt32BE(this._d | 0, 12)\n H.writeInt32BE(this._e | 0, 16)\n\n return H\n}\n\nmodule.exports = Sha\n","/*\n * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined\n * in FIPS PUB 180-1\n * Version 2.1a Copyright Paul Johnston 2000 - 2002.\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n * Distributed under the BSD License\n * See http://pajhome.org.uk/crypt/md5 for details.\n */\n\nvar inherits = require('inherits')\nvar Hash = require('./hash')\nvar Buffer = require('safe-buffer').Buffer\n\nvar K = [\n 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc | 0, 0xca62c1d6 | 0\n]\n\nvar W = new Array(80)\n\nfunction Sha1 () {\n this.init()\n this._w = W\n\n Hash.call(this, 64, 56)\n}\n\ninherits(Sha1, Hash)\n\nSha1.prototype.init = function () {\n this._a = 0x67452301\n this._b = 0xefcdab89\n this._c = 0x98badcfe\n this._d = 0x10325476\n this._e = 0xc3d2e1f0\n\n return this\n}\n\nfunction rotl1 (num) {\n return (num << 1) | (num >>> 31)\n}\n\nfunction rotl5 (num) {\n return (num << 5) | (num >>> 27)\n}\n\nfunction rotl30 (num) {\n return (num << 30) | (num >>> 2)\n}\n\nfunction ft (s, b, c, d) {\n if (s === 0) return (b & c) | ((~b) & d)\n if (s === 2) return (b & c) | (b & d) | (c & d)\n return b ^ c ^ d\n}\n\nSha1.prototype._update = function (M) {\n var W = this._w\n\n var a = this._a | 0\n var b = this._b | 0\n var c = this._c | 0\n var d = this._d | 0\n var e = this._e | 0\n\n for (var i = 0; i < 16; ++i) W[i] = M.readInt32BE(i * 4)\n for (; i < 80; ++i) W[i] = rotl1(W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16])\n\n for (var j = 0; j < 80; ++j) {\n var s = ~~(j / 20)\n var t = (rotl5(a) + ft(s, b, c, d) + e + W[j] + K[s]) | 0\n\n e = d\n d = c\n c = rotl30(b)\n b = a\n a = t\n }\n\n this._a = (a + this._a) | 0\n this._b = (b + this._b) | 0\n this._c = (c + this._c) | 0\n this._d = (d + this._d) | 0\n this._e = (e + this._e) | 0\n}\n\nSha1.prototype._hash = function () {\n var H = Buffer.allocUnsafe(20)\n\n H.writeInt32BE(this._a | 0, 0)\n H.writeInt32BE(this._b | 0, 4)\n H.writeInt32BE(this._c | 0, 8)\n H.writeInt32BE(this._d | 0, 12)\n H.writeInt32BE(this._e | 0, 16)\n\n return H\n}\n\nmodule.exports = Sha1\n","/**\n * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined\n * in FIPS 180-2\n * Version 2.2-beta Copyright Angel Marin, Paul Johnston 2000 - 2009.\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n *\n */\n\nvar inherits = require('inherits')\nvar Sha256 = require('./sha256')\nvar Hash = require('./hash')\nvar Buffer = require('safe-buffer').Buffer\n\nvar W = new Array(64)\n\nfunction Sha224 () {\n this.init()\n\n this._w = W // new Array(64)\n\n Hash.call(this, 64, 56)\n}\n\ninherits(Sha224, Sha256)\n\nSha224.prototype.init = function () {\n this._a = 0xc1059ed8\n this._b = 0x367cd507\n this._c = 0x3070dd17\n this._d = 0xf70e5939\n this._e = 0xffc00b31\n this._f = 0x68581511\n this._g = 0x64f98fa7\n this._h = 0xbefa4fa4\n\n return this\n}\n\nSha224.prototype._hash = function () {\n var H = Buffer.allocUnsafe(28)\n\n H.writeInt32BE(this._a, 0)\n H.writeInt32BE(this._b, 4)\n H.writeInt32BE(this._c, 8)\n H.writeInt32BE(this._d, 12)\n H.writeInt32BE(this._e, 16)\n H.writeInt32BE(this._f, 20)\n H.writeInt32BE(this._g, 24)\n\n return H\n}\n\nmodule.exports = Sha224\n","/**\n * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined\n * in FIPS 180-2\n * Version 2.2-beta Copyright Angel Marin, Paul Johnston 2000 - 2009.\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n *\n */\n\nvar inherits = require('inherits')\nvar Hash = require('./hash')\nvar Buffer = require('safe-buffer').Buffer\n\nvar K = [\n 0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5,\n 0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5,\n 0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3,\n 0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174,\n 0xE49B69C1, 0xEFBE4786, 0x0FC19DC6, 0x240CA1CC,\n 0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA,\n 0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7,\n 0xC6E00BF3, 0xD5A79147, 0x06CA6351, 0x14292967,\n 0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13,\n 0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85,\n 0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3,\n 0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070,\n 0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5,\n 0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3,\n 0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208,\n 0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2\n]\n\nvar W = new Array(64)\n\nfunction Sha256 () {\n this.init()\n\n this._w = W // new Array(64)\n\n Hash.call(this, 64, 56)\n}\n\ninherits(Sha256, Hash)\n\nSha256.prototype.init = function () {\n this._a = 0x6a09e667\n this._b = 0xbb67ae85\n this._c = 0x3c6ef372\n this._d = 0xa54ff53a\n this._e = 0x510e527f\n this._f = 0x9b05688c\n this._g = 0x1f83d9ab\n this._h = 0x5be0cd19\n\n return this\n}\n\nfunction ch (x, y, z) {\n return z ^ (x & (y ^ z))\n}\n\nfunction maj (x, y, z) {\n return (x & y) | (z & (x | y))\n}\n\nfunction sigma0 (x) {\n return (x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10)\n}\n\nfunction sigma1 (x) {\n return (x >>> 6 | x << 26) ^ (x >>> 11 | x << 21) ^ (x >>> 25 | x << 7)\n}\n\nfunction gamma0 (x) {\n return (x >>> 7 | x << 25) ^ (x >>> 18 | x << 14) ^ (x >>> 3)\n}\n\nfunction gamma1 (x) {\n return (x >>> 17 | x << 15) ^ (x >>> 19 | x << 13) ^ (x >>> 10)\n}\n\nSha256.prototype._update = function (M) {\n var W = this._w\n\n var a = this._a | 0\n var b = this._b | 0\n var c = this._c | 0\n var d = this._d | 0\n var e = this._e | 0\n var f = this._f | 0\n var g = this._g | 0\n var h = this._h | 0\n\n for (var i = 0; i < 16; ++i) W[i] = M.readInt32BE(i * 4)\n for (; i < 64; ++i) W[i] = (gamma1(W[i - 2]) + W[i - 7] + gamma0(W[i - 15]) + W[i - 16]) | 0\n\n for (var j = 0; j < 64; ++j) {\n var T1 = (h + sigma1(e) + ch(e, f, g) + K[j] + W[j]) | 0\n var T2 = (sigma0(a) + maj(a, b, c)) | 0\n\n h = g\n g = f\n f = e\n e = (d + T1) | 0\n d = c\n c = b\n b = a\n a = (T1 + T2) | 0\n }\n\n this._a = (a + this._a) | 0\n this._b = (b + this._b) | 0\n this._c = (c + this._c) | 0\n this._d = (d + this._d) | 0\n this._e = (e + this._e) | 0\n this._f = (f + this._f) | 0\n this._g = (g + this._g) | 0\n this._h = (h + this._h) | 0\n}\n\nSha256.prototype._hash = function () {\n var H = Buffer.allocUnsafe(32)\n\n H.writeInt32BE(this._a, 0)\n H.writeInt32BE(this._b, 4)\n H.writeInt32BE(this._c, 8)\n H.writeInt32BE(this._d, 12)\n H.writeInt32BE(this._e, 16)\n H.writeInt32BE(this._f, 20)\n H.writeInt32BE(this._g, 24)\n H.writeInt32BE(this._h, 28)\n\n return H\n}\n\nmodule.exports = Sha256\n","var inherits = require('inherits')\nvar SHA512 = require('./sha512')\nvar Hash = require('./hash')\nvar Buffer = require('safe-buffer').Buffer\n\nvar W = new Array(160)\n\nfunction Sha384 () {\n this.init()\n this._w = W\n\n Hash.call(this, 128, 112)\n}\n\ninherits(Sha384, SHA512)\n\nSha384.prototype.init = function () {\n this._ah = 0xcbbb9d5d\n this._bh = 0x629a292a\n this._ch = 0x9159015a\n this._dh = 0x152fecd8\n this._eh = 0x67332667\n this._fh = 0x8eb44a87\n this._gh = 0xdb0c2e0d\n this._hh = 0x47b5481d\n\n this._al = 0xc1059ed8\n this._bl = 0x367cd507\n this._cl = 0x3070dd17\n this._dl = 0xf70e5939\n this._el = 0xffc00b31\n this._fl = 0x68581511\n this._gl = 0x64f98fa7\n this._hl = 0xbefa4fa4\n\n return this\n}\n\nSha384.prototype._hash = function () {\n var H = Buffer.allocUnsafe(48)\n\n function writeInt64BE (h, l, offset) {\n H.writeInt32BE(h, offset)\n H.writeInt32BE(l, offset + 4)\n }\n\n writeInt64BE(this._ah, this._al, 0)\n writeInt64BE(this._bh, this._bl, 8)\n writeInt64BE(this._ch, this._cl, 16)\n writeInt64BE(this._dh, this._dl, 24)\n writeInt64BE(this._eh, this._el, 32)\n writeInt64BE(this._fh, this._fl, 40)\n\n return H\n}\n\nmodule.exports = Sha384\n","var inherits = require('inherits')\nvar Hash = require('./hash')\nvar Buffer = require('safe-buffer').Buffer\n\nvar K = [\n 0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,\n 0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,\n 0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,\n 0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,\n 0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe,\n 0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,\n 0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1,\n 0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694,\n 0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,\n 0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65,\n 0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483,\n 0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,\n 0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210,\n 0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4,\n 0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,\n 0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70,\n 0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926,\n 0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,\n 0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8,\n 0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b,\n 0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,\n 0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30,\n 0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910,\n 0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,\n 0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53,\n 0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8,\n 0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,\n 0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3,\n 0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60,\n 0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,\n 0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9,\n 0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b,\n 0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,\n 0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178,\n 0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6,\n 0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,\n 0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493,\n 0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c,\n 0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,\n 0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817\n]\n\nvar W = new Array(160)\n\nfunction Sha512 () {\n this.init()\n this._w = W\n\n Hash.call(this, 128, 112)\n}\n\ninherits(Sha512, Hash)\n\nSha512.prototype.init = function () {\n this._ah = 0x6a09e667\n this._bh = 0xbb67ae85\n this._ch = 0x3c6ef372\n this._dh = 0xa54ff53a\n this._eh = 0x510e527f\n this._fh = 0x9b05688c\n this._gh = 0x1f83d9ab\n this._hh = 0x5be0cd19\n\n this._al = 0xf3bcc908\n this._bl = 0x84caa73b\n this._cl = 0xfe94f82b\n this._dl = 0x5f1d36f1\n this._el = 0xade682d1\n this._fl = 0x2b3e6c1f\n this._gl = 0xfb41bd6b\n this._hl = 0x137e2179\n\n return this\n}\n\nfunction Ch (x, y, z) {\n return z ^ (x & (y ^ z))\n}\n\nfunction maj (x, y, z) {\n return (x & y) | (z & (x | y))\n}\n\nfunction sigma0 (x, xl) {\n return (x >>> 28 | xl << 4) ^ (xl >>> 2 | x << 30) ^ (xl >>> 7 | x << 25)\n}\n\nfunction sigma1 (x, xl) {\n return (x >>> 14 | xl << 18) ^ (x >>> 18 | xl << 14) ^ (xl >>> 9 | x << 23)\n}\n\nfunction Gamma0 (x, xl) {\n return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ (x >>> 7)\n}\n\nfunction Gamma0l (x, xl) {\n return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ (x >>> 7 | xl << 25)\n}\n\nfunction Gamma1 (x, xl) {\n return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ (x >>> 6)\n}\n\nfunction Gamma1l (x, xl) {\n return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ (x >>> 6 | xl << 26)\n}\n\nfunction getCarry (a, b) {\n return (a >>> 0) < (b >>> 0) ? 1 : 0\n}\n\nSha512.prototype._update = function (M) {\n var W = this._w\n\n var ah = this._ah | 0\n var bh = this._bh | 0\n var ch = this._ch | 0\n var dh = this._dh | 0\n var eh = this._eh | 0\n var fh = this._fh | 0\n var gh = this._gh | 0\n var hh = this._hh | 0\n\n var al = this._al | 0\n var bl = this._bl | 0\n var cl = this._cl | 0\n var dl = this._dl | 0\n var el = this._el | 0\n var fl = this._fl | 0\n var gl = this._gl | 0\n var hl = this._hl | 0\n\n for (var i = 0; i < 32; i += 2) {\n W[i] = M.readInt32BE(i * 4)\n W[i + 1] = M.readInt32BE(i * 4 + 4)\n }\n for (; i < 160; i += 2) {\n var xh = W[i - 15 * 2]\n var xl = W[i - 15 * 2 + 1]\n var gamma0 = Gamma0(xh, xl)\n var gamma0l = Gamma0l(xl, xh)\n\n xh = W[i - 2 * 2]\n xl = W[i - 2 * 2 + 1]\n var gamma1 = Gamma1(xh, xl)\n var gamma1l = Gamma1l(xl, xh)\n\n // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]\n var Wi7h = W[i - 7 * 2]\n var Wi7l = W[i - 7 * 2 + 1]\n\n var Wi16h = W[i - 16 * 2]\n var Wi16l = W[i - 16 * 2 + 1]\n\n var Wil = (gamma0l + Wi7l) | 0\n var Wih = (gamma0 + Wi7h + getCarry(Wil, gamma0l)) | 0\n Wil = (Wil + gamma1l) | 0\n Wih = (Wih + gamma1 + getCarry(Wil, gamma1l)) | 0\n Wil = (Wil + Wi16l) | 0\n Wih = (Wih + Wi16h + getCarry(Wil, Wi16l)) | 0\n\n W[i] = Wih\n W[i + 1] = Wil\n }\n\n for (var j = 0; j < 160; j += 2) {\n Wih = W[j]\n Wil = W[j + 1]\n\n var majh = maj(ah, bh, ch)\n var majl = maj(al, bl, cl)\n\n var sigma0h = sigma0(ah, al)\n var sigma0l = sigma0(al, ah)\n var sigma1h = sigma1(eh, el)\n var sigma1l = sigma1(el, eh)\n\n // t1 = h + sigma1 + ch + K[j] + W[j]\n var Kih = K[j]\n var Kil = K[j + 1]\n\n var chh = Ch(eh, fh, gh)\n var chl = Ch(el, fl, gl)\n\n var t1l = (hl + sigma1l) | 0\n var t1h = (hh + sigma1h + getCarry(t1l, hl)) | 0\n t1l = (t1l + chl) | 0\n t1h = (t1h + chh + getCarry(t1l, chl)) | 0\n t1l = (t1l + Kil) | 0\n t1h = (t1h + Kih + getCarry(t1l, Kil)) | 0\n t1l = (t1l + Wil) | 0\n t1h = (t1h + Wih + getCarry(t1l, Wil)) | 0\n\n // t2 = sigma0 + maj\n var t2l = (sigma0l + majl) | 0\n var t2h = (sigma0h + majh + getCarry(t2l, sigma0l)) | 0\n\n hh = gh\n hl = gl\n gh = fh\n gl = fl\n fh = eh\n fl = el\n el = (dl + t1l) | 0\n eh = (dh + t1h + getCarry(el, dl)) | 0\n dh = ch\n dl = cl\n ch = bh\n cl = bl\n bh = ah\n bl = al\n al = (t1l + t2l) | 0\n ah = (t1h + t2h + getCarry(al, t1l)) | 0\n }\n\n this._al = (this._al + al) | 0\n this._bl = (this._bl + bl) | 0\n this._cl = (this._cl + cl) | 0\n this._dl = (this._dl + dl) | 0\n this._el = (this._el + el) | 0\n this._fl = (this._fl + fl) | 0\n this._gl = (this._gl + gl) | 0\n this._hl = (this._hl + hl) | 0\n\n this._ah = (this._ah + ah + getCarry(this._al, al)) | 0\n this._bh = (this._bh + bh + getCarry(this._bl, bl)) | 0\n this._ch = (this._ch + ch + getCarry(this._cl, cl)) | 0\n this._dh = (this._dh + dh + getCarry(this._dl, dl)) | 0\n this._eh = (this._eh + eh + getCarry(this._el, el)) | 0\n this._fh = (this._fh + fh + getCarry(this._fl, fl)) | 0\n this._gh = (this._gh + gh + getCarry(this._gl, gl)) | 0\n this._hh = (this._hh + hh + getCarry(this._hl, hl)) | 0\n}\n\nSha512.prototype._hash = function () {\n var H = Buffer.allocUnsafe(64)\n\n function writeInt64BE (h, l, offset) {\n H.writeInt32BE(h, offset)\n H.writeInt32BE(l, offset + 4)\n }\n\n writeInt64BE(this._ah, this._al, 0)\n writeInt64BE(this._bh, this._bl, 8)\n writeInt64BE(this._ch, this._cl, 16)\n writeInt64BE(this._dh, this._dl, 24)\n writeInt64BE(this._eh, this._el, 32)\n writeInt64BE(this._fh, this._fl, 40)\n writeInt64BE(this._gh, this._gl, 48)\n writeInt64BE(this._hh, this._hl, 56)\n\n return H\n}\n\nmodule.exports = Sha512\n","function shallowEqualObjects(objA, objB) {\n if (objA === objB) {\n return true;\n }\n\n if (!objA || !objB) {\n return false;\n }\n\n var aKeys = Object.keys(objA);\n var bKeys = Object.keys(objB);\n var len = aKeys.length;\n\n if (bKeys.length !== len) {\n return false;\n }\n\n for (var i = 0; i < len; i++) {\n var key = aKeys[i];\n\n if (objA[key] !== objB[key] || !Object.prototype.hasOwnProperty.call(objB, key)) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction shallowEqualArrays(arrA, arrB) {\n if (arrA === arrB) {\n return true;\n }\n\n if (!arrA || !arrB) {\n return false;\n }\n\n var len = arrA.length;\n\n if (arrB.length !== len) {\n return false;\n }\n\n for (var i = 0; i < len; i++) {\n if (arrA[i] !== arrB[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nexport { shallowEqualArrays, shallowEqualObjects };\n","'use strict';\n\n/**\n * smartTruncate - Smartly™ truncate a given string.\n *\n * @param {String} string - A string with a minimum lenght of 4 chars.\n * @param {Number} length - The length of the truncated result.\n * @param {Object} [options]\n * @param {Number} [options.position] - The index of the ellipsis (zero based).\n * Default is the end.\n * @param {String} [options.mark = '…'] - The character[s] indicating omission.\n * @return {String} - Return a truncated string w/ ellipsis or a custom mark.\n *\n * Example: smartTruncate('Steve Miller', 8) === 'Steve M…'.\n * Example: smartTruncate('Steve Miller', 9, {position: 4}) === 'Stev…ller'.\n */\nvar smartTruncate = function smartTruncate(string, length) {\n var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n _ref$mark = _ref.mark,\n mark = _ref$mark === undefined ? '\\u2026' : _ref$mark,\n _ref$position = _ref.position,\n position = _ref$position === undefined ? length - 1 : _ref$position;\n\n if (typeof mark !== 'string') return string;\n\n var markOffset = mark.length;\n var minLength = 4;\n\n var str = string;\n\n if (typeof str === 'string') {\n str = str.trim();\n }\n\n var invalid = typeof str !== 'string' || str.length < minLength || typeof length !== 'number' || length <= minLength || length >= str.length - markOffset;\n\n if (invalid) return string;\n\n if (position >= length - markOffset) {\n var _start = str.substring(0, length - markOffset);\n return '' + _start + mark;\n }\n\n var start = str.substring(0, position);\n var end = str.slice(position + markOffset - length);\n\n return '' + start + mark + end;\n};\n\nmodule.exports = smartTruncate;\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar util = require('./util');\nvar has = Object.prototype.hasOwnProperty;\n\n/**\n * A data structure which is a combination of an array and a set. Adding a new\n * member is O(1), testing for membership is O(1), and finding the index of an\n * element is O(1). Removing elements from the set is not supported. Only\n * strings are supported for membership.\n */\nfunction ArraySet() {\n this._array = [];\n this._set = Object.create(null);\n}\n\n/**\n * Static method for creating ArraySet instances from an existing array.\n */\nArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {\n var set = new ArraySet();\n for (var i = 0, len = aArray.length; i < len; i++) {\n set.add(aArray[i], aAllowDuplicates);\n }\n return set;\n};\n\n/**\n * Return how many unique items are in this ArraySet. If duplicates have been\n * added, than those do not count towards the size.\n *\n * @returns Number\n */\nArraySet.prototype.size = function ArraySet_size() {\n return Object.getOwnPropertyNames(this._set).length;\n};\n\n/**\n * Add the given string to this set.\n *\n * @param String aStr\n */\nArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {\n var sStr = util.toSetString(aStr);\n var isDuplicate = has.call(this._set, sStr);\n var idx = this._array.length;\n if (!isDuplicate || aAllowDuplicates) {\n this._array.push(aStr);\n }\n if (!isDuplicate) {\n this._set[sStr] = idx;\n }\n};\n\n/**\n * Is the given string a member of this set?\n *\n * @param String aStr\n */\nArraySet.prototype.has = function ArraySet_has(aStr) {\n var sStr = util.toSetString(aStr);\n return has.call(this._set, sStr);\n};\n\n/**\n * What is the index of the given string in the array?\n *\n * @param String aStr\n */\nArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) {\n var sStr = util.toSetString(aStr);\n if (has.call(this._set, sStr)) {\n return this._set[sStr];\n }\n throw new Error('\"' + aStr + '\" is not in the set.');\n};\n\n/**\n * What is the element at the given index?\n *\n * @param Number aIdx\n */\nArraySet.prototype.at = function ArraySet_at(aIdx) {\n if (aIdx >= 0 && aIdx < this._array.length) {\n return this._array[aIdx];\n }\n throw new Error('No element indexed by ' + aIdx);\n};\n\n/**\n * Returns the array representation of this set (which has the proper indices\n * indicated by indexOf). Note that this is a copy of the internal array used\n * for storing the members so that no one can mess with internal state.\n */\nArraySet.prototype.toArray = function ArraySet_toArray() {\n return this._array.slice();\n};\n\nexports.ArraySet = ArraySet;\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n *\n * Based on the Base 64 VLQ implementation in Closure Compiler:\n * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java\n *\n * Copyright 2011 The Closure Compiler Authors. All rights reserved.\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are\n * met:\n *\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above\n * copyright notice, this list of conditions and the following\n * disclaimer in the documentation and/or other materials provided\n * with the distribution.\n * * Neither the name of Google Inc. nor the names of its\n * contributors may be used to endorse or promote products derived\n * from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nvar base64 = require('./base64');\n\n// A single base 64 digit can contain 6 bits of data. For the base 64 variable\n// length quantities we use in the source map spec, the first bit is the sign,\n// the next four bits are the actual value, and the 6th bit is the\n// continuation bit. The continuation bit tells us whether there are more\n// digits in this value following this digit.\n//\n// Continuation\n// | Sign\n// | |\n// V V\n// 101011\n\nvar VLQ_BASE_SHIFT = 5;\n\n// binary: 100000\nvar VLQ_BASE = 1 << VLQ_BASE_SHIFT;\n\n// binary: 011111\nvar VLQ_BASE_MASK = VLQ_BASE - 1;\n\n// binary: 100000\nvar VLQ_CONTINUATION_BIT = VLQ_BASE;\n\n/**\n * Converts from a two-complement value to a value where the sign bit is\n * placed in the least significant bit. For example, as decimals:\n * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary)\n * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary)\n */\nfunction toVLQSigned(aValue) {\n return aValue < 0\n ? ((-aValue) << 1) + 1\n : (aValue << 1) + 0;\n}\n\n/**\n * Converts to a two-complement value from a value where the sign bit is\n * placed in the least significant bit. For example, as decimals:\n * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1\n * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2\n */\nfunction fromVLQSigned(aValue) {\n var isNegative = (aValue & 1) === 1;\n var shifted = aValue >> 1;\n return isNegative\n ? -shifted\n : shifted;\n}\n\n/**\n * Returns the base 64 VLQ encoded value.\n */\nexports.encode = function base64VLQ_encode(aValue) {\n var encoded = \"\";\n var digit;\n\n var vlq = toVLQSigned(aValue);\n\n do {\n digit = vlq & VLQ_BASE_MASK;\n vlq >>>= VLQ_BASE_SHIFT;\n if (vlq > 0) {\n // There are still more digits in this value, so we must make sure the\n // continuation bit is marked.\n digit |= VLQ_CONTINUATION_BIT;\n }\n encoded += base64.encode(digit);\n } while (vlq > 0);\n\n return encoded;\n};\n\n/**\n * Decodes the next base 64 VLQ value from the given string and returns the\n * value and the rest of the string via the out parameter.\n */\nexports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {\n var strLen = aStr.length;\n var result = 0;\n var shift = 0;\n var continuation, digit;\n\n do {\n if (aIndex >= strLen) {\n throw new Error(\"Expected more digits in base 64 VLQ value.\");\n }\n\n digit = base64.decode(aStr.charCodeAt(aIndex++));\n if (digit === -1) {\n throw new Error(\"Invalid base64 digit: \" + aStr.charAt(aIndex - 1));\n }\n\n continuation = !!(digit & VLQ_CONTINUATION_BIT);\n digit &= VLQ_BASE_MASK;\n result = result + (digit << shift);\n shift += VLQ_BASE_SHIFT;\n } while (continuation);\n\n aOutParam.value = fromVLQSigned(result);\n aOutParam.rest = aIndex;\n};\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');\n\n/**\n * Encode an integer in the range of 0 to 63 to a single base 64 digit.\n */\nexports.encode = function (number) {\n if (0 <= number && number < intToCharMap.length) {\n return intToCharMap[number];\n }\n throw new TypeError(\"Must be between 0 and 63: \" + number);\n};\n\n/**\n * Decode a single base 64 character code digit to an integer. Returns -1 on\n * failure.\n */\nexports.decode = function (charCode) {\n var bigA = 65; // 'A'\n var bigZ = 90; // 'Z'\n\n var littleA = 97; // 'a'\n var littleZ = 122; // 'z'\n\n var zero = 48; // '0'\n var nine = 57; // '9'\n\n var plus = 43; // '+'\n var slash = 47; // '/'\n\n var littleOffset = 26;\n var numberOffset = 52;\n\n // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ\n if (bigA <= charCode && charCode <= bigZ) {\n return (charCode - bigA);\n }\n\n // 26 - 51: abcdefghijklmnopqrstuvwxyz\n if (littleA <= charCode && charCode <= littleZ) {\n return (charCode - littleA + littleOffset);\n }\n\n // 52 - 61: 0123456789\n if (zero <= charCode && charCode <= nine) {\n return (charCode - zero + numberOffset);\n }\n\n // 62: +\n if (charCode == plus) {\n return 62;\n }\n\n // 63: /\n if (charCode == slash) {\n return 63;\n }\n\n // Invalid base64 digit.\n return -1;\n};\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nexports.GREATEST_LOWER_BOUND = 1;\nexports.LEAST_UPPER_BOUND = 2;\n\n/**\n * Recursive implementation of binary search.\n *\n * @param aLow Indices here and lower do not contain the needle.\n * @param aHigh Indices here and higher do not contain the needle.\n * @param aNeedle The element being searched for.\n * @param aHaystack The non-empty array being searched.\n * @param aCompare Function which takes two elements and returns -1, 0, or 1.\n * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or\n * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the\n * closest element that is smaller than or greater than the one we are\n * searching for, respectively, if the exact element cannot be found.\n */\nfunction recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {\n // This function terminates when one of the following is true:\n //\n // 1. We find the exact element we are looking for.\n //\n // 2. We did not find the exact element, but we can return the index of\n // the next-closest element.\n //\n // 3. We did not find the exact element, and there is no next-closest\n // element than the one we are searching for, so we return -1.\n var mid = Math.floor((aHigh - aLow) / 2) + aLow;\n var cmp = aCompare(aNeedle, aHaystack[mid], true);\n if (cmp === 0) {\n // Found the element we are looking for.\n return mid;\n }\n else if (cmp > 0) {\n // Our needle is greater than aHaystack[mid].\n if (aHigh - mid > 1) {\n // The element is in the upper half.\n return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);\n }\n\n // The exact needle element was not found in this haystack. Determine if\n // we are in termination case (3) or (2) and return the appropriate thing.\n if (aBias == exports.LEAST_UPPER_BOUND) {\n return aHigh < aHaystack.length ? aHigh : -1;\n } else {\n return mid;\n }\n }\n else {\n // Our needle is less than aHaystack[mid].\n if (mid - aLow > 1) {\n // The element is in the lower half.\n return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);\n }\n\n // we are in termination case (3) or (2) and return the appropriate thing.\n if (aBias == exports.LEAST_UPPER_BOUND) {\n return mid;\n } else {\n return aLow < 0 ? -1 : aLow;\n }\n }\n}\n\n/**\n * This is an implementation of binary search which will always try and return\n * the index of the closest element if there is no exact hit. This is because\n * mappings between original and generated line/col pairs are single points,\n * and there is an implicit region between each of them, so a miss just means\n * that you aren't on the very start of a region.\n *\n * @param aNeedle The element you are looking for.\n * @param aHaystack The array that is being searched.\n * @param aCompare A function which takes the needle and an element in the\n * array and returns -1, 0, or 1 depending on whether the needle is less\n * than, equal to, or greater than the element, respectively.\n * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or\n * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the\n * closest element that is smaller than or greater than the one we are\n * searching for, respectively, if the exact element cannot be found.\n * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'.\n */\nexports.search = function search(aNeedle, aHaystack, aCompare, aBias) {\n if (aHaystack.length === 0) {\n return -1;\n }\n\n var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack,\n aCompare, aBias || exports.GREATEST_LOWER_BOUND);\n if (index < 0) {\n return -1;\n }\n\n // We have found either the exact element, or the next-closest element than\n // the one we are searching for. However, there may be more than one such\n // element. Make sure we always return the smallest of these.\n while (index - 1 >= 0) {\n if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) {\n break;\n }\n --index;\n }\n\n return index;\n};\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2014 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar util = require('./util');\n\n/**\n * Determine whether mappingB is after mappingA with respect to generated\n * position.\n */\nfunction generatedPositionAfter(mappingA, mappingB) {\n // Optimized for most common case\n var lineA = mappingA.generatedLine;\n var lineB = mappingB.generatedLine;\n var columnA = mappingA.generatedColumn;\n var columnB = mappingB.generatedColumn;\n return lineB > lineA || lineB == lineA && columnB >= columnA ||\n util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;\n}\n\n/**\n * A data structure to provide a sorted view of accumulated mappings in a\n * performance conscious manner. It trades a neglibable overhead in general\n * case for a large speedup in case of mappings being added in order.\n */\nfunction MappingList() {\n this._array = [];\n this._sorted = true;\n // Serves as infimum\n this._last = {generatedLine: -1, generatedColumn: 0};\n}\n\n/**\n * Iterate through internal items. This method takes the same arguments that\n * `Array.prototype.forEach` takes.\n *\n * NOTE: The order of the mappings is NOT guaranteed.\n */\nMappingList.prototype.unsortedForEach =\n function MappingList_forEach(aCallback, aThisArg) {\n this._array.forEach(aCallback, aThisArg);\n };\n\n/**\n * Add the given source mapping.\n *\n * @param Object aMapping\n */\nMappingList.prototype.add = function MappingList_add(aMapping) {\n if (generatedPositionAfter(this._last, aMapping)) {\n this._last = aMapping;\n this._array.push(aMapping);\n } else {\n this._sorted = false;\n this._array.push(aMapping);\n }\n};\n\n/**\n * Returns the flat, sorted array of mappings. The mappings are sorted by\n * generated position.\n *\n * WARNING: This method returns internal data without copying, for\n * performance. The return value must NOT be mutated, and should be treated as\n * an immutable borrow. If you want to take ownership, you must make your own\n * copy.\n */\nMappingList.prototype.toArray = function MappingList_toArray() {\n if (!this._sorted) {\n this._array.sort(util.compareByGeneratedPositionsInflated);\n this._sorted = true;\n }\n return this._array;\n};\n\nexports.MappingList = MappingList;\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\n// It turns out that some (most?) JavaScript engines don't self-host\n// `Array.prototype.sort`. This makes sense because C++ will likely remain\n// faster than JS when doing raw CPU-intensive sorting. However, when using a\n// custom comparator function, calling back and forth between the VM's C++ and\n// JIT'd JS is rather slow *and* loses JIT type information, resulting in\n// worse generated code for the comparator function than would be optimal. In\n// fact, when sorting with a comparator, these costs outweigh the benefits of\n// sorting in C++. By using our own JS-implemented Quick Sort (below), we get\n// a ~3500ms mean speed-up in `bench/bench.html`.\n\n/**\n * Swap the elements indexed by `x` and `y` in the array `ary`.\n *\n * @param {Array} ary\n * The array.\n * @param {Number} x\n * The index of the first item.\n * @param {Number} y\n * The index of the second item.\n */\nfunction swap(ary, x, y) {\n var temp = ary[x];\n ary[x] = ary[y];\n ary[y] = temp;\n}\n\n/**\n * Returns a random integer within the range `low .. high` inclusive.\n *\n * @param {Number} low\n * The lower bound on the range.\n * @param {Number} high\n * The upper bound on the range.\n */\nfunction randomIntInRange(low, high) {\n return Math.round(low + (Math.random() * (high - low)));\n}\n\n/**\n * The Quick Sort algorithm.\n *\n * @param {Array} ary\n * An array to sort.\n * @param {function} comparator\n * Function to use to compare two items.\n * @param {Number} p\n * Start index of the array\n * @param {Number} r\n * End index of the array\n */\nfunction doQuickSort(ary, comparator, p, r) {\n // If our lower bound is less than our upper bound, we (1) partition the\n // array into two pieces and (2) recurse on each half. If it is not, this is\n // the empty array and our base case.\n\n if (p < r) {\n // (1) Partitioning.\n //\n // The partitioning chooses a pivot between `p` and `r` and moves all\n // elements that are less than or equal to the pivot to the before it, and\n // all the elements that are greater than it after it. The effect is that\n // once partition is done, the pivot is in the exact place it will be when\n // the array is put in sorted order, and it will not need to be moved\n // again. This runs in O(n) time.\n\n // Always choose a random pivot so that an input array which is reverse\n // sorted does not cause O(n^2) running time.\n var pivotIndex = randomIntInRange(p, r);\n var i = p - 1;\n\n swap(ary, pivotIndex, r);\n var pivot = ary[r];\n\n // Immediately after `j` is incremented in this loop, the following hold\n // true:\n //\n // * Every element in `ary[p .. i]` is less than or equal to the pivot.\n //\n // * Every element in `ary[i+1 .. j-1]` is greater than the pivot.\n for (var j = p; j < r; j++) {\n if (comparator(ary[j], pivot) <= 0) {\n i += 1;\n swap(ary, i, j);\n }\n }\n\n swap(ary, i + 1, j);\n var q = i + 1;\n\n // (2) Recurse on each half.\n\n doQuickSort(ary, comparator, p, q - 1);\n doQuickSort(ary, comparator, q + 1, r);\n }\n}\n\n/**\n * Sort the given array in-place with the given comparator function.\n *\n * @param {Array} ary\n * An array to sort.\n * @param {function} comparator\n * Function to use to compare two items.\n */\nexports.quickSort = function (ary, comparator) {\n doQuickSort(ary, comparator, 0, ary.length - 1);\n};\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar util = require('./util');\nvar binarySearch = require('./binary-search');\nvar ArraySet = require('./array-set').ArraySet;\nvar base64VLQ = require('./base64-vlq');\nvar quickSort = require('./quick-sort').quickSort;\n\nfunction SourceMapConsumer(aSourceMap) {\n var sourceMap = aSourceMap;\n if (typeof aSourceMap === 'string') {\n sourceMap = JSON.parse(aSourceMap.replace(/^\\)\\]\\}'/, ''));\n }\n\n return sourceMap.sections != null\n ? new IndexedSourceMapConsumer(sourceMap)\n : new BasicSourceMapConsumer(sourceMap);\n}\n\nSourceMapConsumer.fromSourceMap = function(aSourceMap) {\n return BasicSourceMapConsumer.fromSourceMap(aSourceMap);\n}\n\n/**\n * The version of the source mapping spec that we are consuming.\n */\nSourceMapConsumer.prototype._version = 3;\n\n// `__generatedMappings` and `__originalMappings` are arrays that hold the\n// parsed mapping coordinates from the source map's \"mappings\" attribute. They\n// are lazily instantiated, accessed via the `_generatedMappings` and\n// `_originalMappings` getters respectively, and we only parse the mappings\n// and create these arrays once queried for a source location. We jump through\n// these hoops because there can be many thousands of mappings, and parsing\n// them is expensive, so we only want to do it if we must.\n//\n// Each object in the arrays is of the form:\n//\n// {\n// generatedLine: The line number in the generated code,\n// generatedColumn: The column number in the generated code,\n// source: The path to the original source file that generated this\n// chunk of code,\n// originalLine: The line number in the original source that\n// corresponds to this chunk of generated code,\n// originalColumn: The column number in the original source that\n// corresponds to this chunk of generated code,\n// name: The name of the original symbol which generated this chunk of\n// code.\n// }\n//\n// All properties except for `generatedLine` and `generatedColumn` can be\n// `null`.\n//\n// `_generatedMappings` is ordered by the generated positions.\n//\n// `_originalMappings` is ordered by the original positions.\n\nSourceMapConsumer.prototype.__generatedMappings = null;\nObject.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', {\n get: function () {\n if (!this.__generatedMappings) {\n this._parseMappings(this._mappings, this.sourceRoot);\n }\n\n return this.__generatedMappings;\n }\n});\n\nSourceMapConsumer.prototype.__originalMappings = null;\nObject.defineProperty(SourceMapConsumer.prototype, '_originalMappings', {\n get: function () {\n if (!this.__originalMappings) {\n this._parseMappings(this._mappings, this.sourceRoot);\n }\n\n return this.__originalMappings;\n }\n});\n\nSourceMapConsumer.prototype._charIsMappingSeparator =\n function SourceMapConsumer_charIsMappingSeparator(aStr, index) {\n var c = aStr.charAt(index);\n return c === \";\" || c === \",\";\n };\n\n/**\n * Parse the mappings in a string in to a data structure which we can easily\n * query (the ordered arrays in the `this.__generatedMappings` and\n * `this.__originalMappings` properties).\n */\nSourceMapConsumer.prototype._parseMappings =\n function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {\n throw new Error(\"Subclasses must implement _parseMappings\");\n };\n\nSourceMapConsumer.GENERATED_ORDER = 1;\nSourceMapConsumer.ORIGINAL_ORDER = 2;\n\nSourceMapConsumer.GREATEST_LOWER_BOUND = 1;\nSourceMapConsumer.LEAST_UPPER_BOUND = 2;\n\n/**\n * Iterate over each mapping between an original source/line/column and a\n * generated line/column in this source map.\n *\n * @param Function aCallback\n * The function that is called with each mapping.\n * @param Object aContext\n * Optional. If specified, this object will be the value of `this` every\n * time that `aCallback` is called.\n * @param aOrder\n * Either `SourceMapConsumer.GENERATED_ORDER` or\n * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to\n * iterate over the mappings sorted by the generated file's line/column\n * order or the original's source/line/column order, respectively. Defaults to\n * `SourceMapConsumer.GENERATED_ORDER`.\n */\nSourceMapConsumer.prototype.eachMapping =\n function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {\n var context = aContext || null;\n var order = aOrder || SourceMapConsumer.GENERATED_ORDER;\n\n var mappings;\n switch (order) {\n case SourceMapConsumer.GENERATED_ORDER:\n mappings = this._generatedMappings;\n break;\n case SourceMapConsumer.ORIGINAL_ORDER:\n mappings = this._originalMappings;\n break;\n default:\n throw new Error(\"Unknown order of iteration.\");\n }\n\n var sourceRoot = this.sourceRoot;\n mappings.map(function (mapping) {\n var source = mapping.source === null ? null : this._sources.at(mapping.source);\n if (source != null && sourceRoot != null) {\n source = util.join(sourceRoot, source);\n }\n return {\n source: source,\n generatedLine: mapping.generatedLine,\n generatedColumn: mapping.generatedColumn,\n originalLine: mapping.originalLine,\n originalColumn: mapping.originalColumn,\n name: mapping.name === null ? null : this._names.at(mapping.name)\n };\n }, this).forEach(aCallback, context);\n };\n\n/**\n * Returns all generated line and column information for the original source,\n * line, and column provided. If no column is provided, returns all mappings\n * corresponding to a either the line we are searching for or the next\n * closest line that has any mappings. Otherwise, returns all mappings\n * corresponding to the given line and either the column we are searching for\n * or the next closest column that has any offsets.\n *\n * The only argument is an object with the following properties:\n *\n * - source: The filename of the original source.\n * - line: The line number in the original source.\n * - column: Optional. the column number in the original source.\n *\n * and an array of objects is returned, each with the following properties:\n *\n * - line: The line number in the generated source, or null.\n * - column: The column number in the generated source, or null.\n */\nSourceMapConsumer.prototype.allGeneratedPositionsFor =\n function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {\n var line = util.getArg(aArgs, 'line');\n\n // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping\n // returns the index of the closest mapping less than the needle. By\n // setting needle.originalColumn to 0, we thus find the last mapping for\n // the given line, provided such a mapping exists.\n var needle = {\n source: util.getArg(aArgs, 'source'),\n originalLine: line,\n originalColumn: util.getArg(aArgs, 'column', 0)\n };\n\n if (this.sourceRoot != null) {\n needle.source = util.relative(this.sourceRoot, needle.source);\n }\n if (!this._sources.has(needle.source)) {\n return [];\n }\n needle.source = this._sources.indexOf(needle.source);\n\n var mappings = [];\n\n var index = this._findMapping(needle,\n this._originalMappings,\n \"originalLine\",\n \"originalColumn\",\n util.compareByOriginalPositions,\n binarySearch.LEAST_UPPER_BOUND);\n if (index >= 0) {\n var mapping = this._originalMappings[index];\n\n if (aArgs.column === undefined) {\n var originalLine = mapping.originalLine;\n\n // Iterate until either we run out of mappings, or we run into\n // a mapping for a different line than the one we found. Since\n // mappings are sorted, this is guaranteed to find all mappings for\n // the line we found.\n while (mapping && mapping.originalLine === originalLine) {\n mappings.push({\n line: util.getArg(mapping, 'generatedLine', null),\n column: util.getArg(mapping, 'generatedColumn', null),\n lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)\n });\n\n mapping = this._originalMappings[++index];\n }\n } else {\n var originalColumn = mapping.originalColumn;\n\n // Iterate until either we run out of mappings, or we run into\n // a mapping for a different line than the one we were searching for.\n // Since mappings are sorted, this is guaranteed to find all mappings for\n // the line we are searching for.\n while (mapping &&\n mapping.originalLine === line &&\n mapping.originalColumn == originalColumn) {\n mappings.push({\n line: util.getArg(mapping, 'generatedLine', null),\n column: util.getArg(mapping, 'generatedColumn', null),\n lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)\n });\n\n mapping = this._originalMappings[++index];\n }\n }\n }\n\n return mappings;\n };\n\nexports.SourceMapConsumer = SourceMapConsumer;\n\n/**\n * A BasicSourceMapConsumer instance represents a parsed source map which we can\n * query for information about the original file positions by giving it a file\n * position in the generated source.\n *\n * The only parameter is the raw source map (either as a JSON string, or\n * already parsed to an object). According to the spec, source maps have the\n * following attributes:\n *\n * - version: Which version of the source map spec this map is following.\n * - sources: An array of URLs to the original source files.\n * - names: An array of identifiers which can be referrenced by individual mappings.\n * - sourceRoot: Optional. The URL root from which all sources are relative.\n * - sourcesContent: Optional. An array of contents of the original source files.\n * - mappings: A string of base64 VLQs which contain the actual mappings.\n * - file: Optional. The generated file this source map is associated with.\n *\n * Here is an example source map, taken from the source map spec[0]:\n *\n * {\n * version : 3,\n * file: \"out.js\",\n * sourceRoot : \"\",\n * sources: [\"foo.js\", \"bar.js\"],\n * names: [\"src\", \"maps\", \"are\", \"fun\"],\n * mappings: \"AA,AB;;ABCDE;\"\n * }\n *\n * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#\n */\nfunction BasicSourceMapConsumer(aSourceMap) {\n var sourceMap = aSourceMap;\n if (typeof aSourceMap === 'string') {\n sourceMap = JSON.parse(aSourceMap.replace(/^\\)\\]\\}'/, ''));\n }\n\n var version = util.getArg(sourceMap, 'version');\n var sources = util.getArg(sourceMap, 'sources');\n // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which\n // requires the array) to play nice here.\n var names = util.getArg(sourceMap, 'names', []);\n var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null);\n var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null);\n var mappings = util.getArg(sourceMap, 'mappings');\n var file = util.getArg(sourceMap, 'file', null);\n\n // Once again, Sass deviates from the spec and supplies the version as a\n // string rather than a number, so we use loose equality checking here.\n if (version != this._version) {\n throw new Error('Unsupported version: ' + version);\n }\n\n sources = sources\n .map(String)\n // Some source maps produce relative source paths like \"./foo.js\" instead of\n // \"foo.js\". Normalize these first so that future comparisons will succeed.\n // See bugzil.la/1090768.\n .map(util.normalize)\n // Always ensure that absolute sources are internally stored relative to\n // the source root, if the source root is absolute. Not doing this would\n // be particularly problematic when the source root is a prefix of the\n // source (valid, but why??). See github issue #199 and bugzil.la/1188982.\n .map(function (source) {\n return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source)\n ? util.relative(sourceRoot, source)\n : source;\n });\n\n // Pass `true` below to allow duplicate names and sources. While source maps\n // are intended to be compressed and deduplicated, the TypeScript compiler\n // sometimes generates source maps with duplicates in them. See Github issue\n // #72 and bugzil.la/889492.\n this._names = ArraySet.fromArray(names.map(String), true);\n this._sources = ArraySet.fromArray(sources, true);\n\n this.sourceRoot = sourceRoot;\n this.sourcesContent = sourcesContent;\n this._mappings = mappings;\n this.file = file;\n}\n\nBasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);\nBasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;\n\n/**\n * Create a BasicSourceMapConsumer from a SourceMapGenerator.\n *\n * @param SourceMapGenerator aSourceMap\n * The source map that will be consumed.\n * @returns BasicSourceMapConsumer\n */\nBasicSourceMapConsumer.fromSourceMap =\n function SourceMapConsumer_fromSourceMap(aSourceMap) {\n var smc = Object.create(BasicSourceMapConsumer.prototype);\n\n var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);\n var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);\n smc.sourceRoot = aSourceMap._sourceRoot;\n smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(),\n smc.sourceRoot);\n smc.file = aSourceMap._file;\n\n // Because we are modifying the entries (by converting string sources and\n // names to indices into the sources and names ArraySets), we have to make\n // a copy of the entry or else bad things happen. Shared mutable state\n // strikes again! See github issue #191.\n\n var generatedMappings = aSourceMap._mappings.toArray().slice();\n var destGeneratedMappings = smc.__generatedMappings = [];\n var destOriginalMappings = smc.__originalMappings = [];\n\n for (var i = 0, length = generatedMappings.length; i < length; i++) {\n var srcMapping = generatedMappings[i];\n var destMapping = new Mapping;\n destMapping.generatedLine = srcMapping.generatedLine;\n destMapping.generatedColumn = srcMapping.generatedColumn;\n\n if (srcMapping.source) {\n destMapping.source = sources.indexOf(srcMapping.source);\n destMapping.originalLine = srcMapping.originalLine;\n destMapping.originalColumn = srcMapping.originalColumn;\n\n if (srcMapping.name) {\n destMapping.name = names.indexOf(srcMapping.name);\n }\n\n destOriginalMappings.push(destMapping);\n }\n\n destGeneratedMappings.push(destMapping);\n }\n\n quickSort(smc.__originalMappings, util.compareByOriginalPositions);\n\n return smc;\n };\n\n/**\n * The version of the source mapping spec that we are consuming.\n */\nBasicSourceMapConsumer.prototype._version = 3;\n\n/**\n * The list of original sources.\n */\nObject.defineProperty(BasicSourceMapConsumer.prototype, 'sources', {\n get: function () {\n return this._sources.toArray().map(function (s) {\n return this.sourceRoot != null ? util.join(this.sourceRoot, s) : s;\n }, this);\n }\n});\n\n/**\n * Provide the JIT with a nice shape / hidden class.\n */\nfunction Mapping() {\n this.generatedLine = 0;\n this.generatedColumn = 0;\n this.source = null;\n this.originalLine = null;\n this.originalColumn = null;\n this.name = null;\n}\n\n/**\n * Parse the mappings in a string in to a data structure which we can easily\n * query (the ordered arrays in the `this.__generatedMappings` and\n * `this.__originalMappings` properties).\n */\nBasicSourceMapConsumer.prototype._parseMappings =\n function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {\n var generatedLine = 1;\n var previousGeneratedColumn = 0;\n var previousOriginalLine = 0;\n var previousOriginalColumn = 0;\n var previousSource = 0;\n var previousName = 0;\n var length = aStr.length;\n var index = 0;\n var cachedSegments = {};\n var temp = {};\n var originalMappings = [];\n var generatedMappings = [];\n var mapping, str, segment, end, value;\n\n while (index < length) {\n if (aStr.charAt(index) === ';') {\n generatedLine++;\n index++;\n previousGeneratedColumn = 0;\n }\n else if (aStr.charAt(index) === ',') {\n index++;\n }\n else {\n mapping = new Mapping();\n mapping.generatedLine = generatedLine;\n\n // Because each offset is encoded relative to the previous one,\n // many segments often have the same encoding. We can exploit this\n // fact by caching the parsed variable length fields of each segment,\n // allowing us to avoid a second parse if we encounter the same\n // segment again.\n for (end = index; end < length; end++) {\n if (this._charIsMappingSeparator(aStr, end)) {\n break;\n }\n }\n str = aStr.slice(index, end);\n\n segment = cachedSegments[str];\n if (segment) {\n index += str.length;\n } else {\n segment = [];\n while (index < end) {\n base64VLQ.decode(aStr, index, temp);\n value = temp.value;\n index = temp.rest;\n segment.push(value);\n }\n\n if (segment.length === 2) {\n throw new Error('Found a source, but no line and column');\n }\n\n if (segment.length === 3) {\n throw new Error('Found a source and line, but no column');\n }\n\n cachedSegments[str] = segment;\n }\n\n // Generated column.\n mapping.generatedColumn = previousGeneratedColumn + segment[0];\n previousGeneratedColumn = mapping.generatedColumn;\n\n if (segment.length > 1) {\n // Original source.\n mapping.source = previousSource + segment[1];\n previousSource += segment[1];\n\n // Original line.\n mapping.originalLine = previousOriginalLine + segment[2];\n previousOriginalLine = mapping.originalLine;\n // Lines are stored 0-based\n mapping.originalLine += 1;\n\n // Original column.\n mapping.originalColumn = previousOriginalColumn + segment[3];\n previousOriginalColumn = mapping.originalColumn;\n\n if (segment.length > 4) {\n // Original name.\n mapping.name = previousName + segment[4];\n previousName += segment[4];\n }\n }\n\n generatedMappings.push(mapping);\n if (typeof mapping.originalLine === 'number') {\n originalMappings.push(mapping);\n }\n }\n }\n\n quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated);\n this.__generatedMappings = generatedMappings;\n\n quickSort(originalMappings, util.compareByOriginalPositions);\n this.__originalMappings = originalMappings;\n };\n\n/**\n * Find the mapping that best matches the hypothetical \"needle\" mapping that\n * we are searching for in the given \"haystack\" of mappings.\n */\nBasicSourceMapConsumer.prototype._findMapping =\n function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName,\n aColumnName, aComparator, aBias) {\n // To return the position we are searching for, we must first find the\n // mapping for the given position and then return the opposite position it\n // points to. Because the mappings are sorted, we can use binary search to\n // find the best mapping.\n\n if (aNeedle[aLineName] <= 0) {\n throw new TypeError('Line must be greater than or equal to 1, got '\n + aNeedle[aLineName]);\n }\n if (aNeedle[aColumnName] < 0) {\n throw new TypeError('Column must be greater than or equal to 0, got '\n + aNeedle[aColumnName]);\n }\n\n return binarySearch.search(aNeedle, aMappings, aComparator, aBias);\n };\n\n/**\n * Compute the last column for each generated mapping. The last column is\n * inclusive.\n */\nBasicSourceMapConsumer.prototype.computeColumnSpans =\n function SourceMapConsumer_computeColumnSpans() {\n for (var index = 0; index < this._generatedMappings.length; ++index) {\n var mapping = this._generatedMappings[index];\n\n // Mappings do not contain a field for the last generated columnt. We\n // can come up with an optimistic estimate, however, by assuming that\n // mappings are contiguous (i.e. given two consecutive mappings, the\n // first mapping ends where the second one starts).\n if (index + 1 < this._generatedMappings.length) {\n var nextMapping = this._generatedMappings[index + 1];\n\n if (mapping.generatedLine === nextMapping.generatedLine) {\n mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;\n continue;\n }\n }\n\n // The last mapping for each line spans the entire line.\n mapping.lastGeneratedColumn = Infinity;\n }\n };\n\n/**\n * Returns the original source, line, and column information for the generated\n * source's line and column positions provided. The only argument is an object\n * with the following properties:\n *\n * - line: The line number in the generated source.\n * - column: The column number in the generated source.\n * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or\n * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the\n * closest element that is smaller than or greater than the one we are\n * searching for, respectively, if the exact element cannot be found.\n * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.\n *\n * and an object is returned with the following properties:\n *\n * - source: The original source file, or null.\n * - line: The line number in the original source, or null.\n * - column: The column number in the original source, or null.\n * - name: The original identifier, or null.\n */\nBasicSourceMapConsumer.prototype.originalPositionFor =\n function SourceMapConsumer_originalPositionFor(aArgs) {\n var needle = {\n generatedLine: util.getArg(aArgs, 'line'),\n generatedColumn: util.getArg(aArgs, 'column')\n };\n\n var index = this._findMapping(\n needle,\n this._generatedMappings,\n \"generatedLine\",\n \"generatedColumn\",\n util.compareByGeneratedPositionsDeflated,\n util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)\n );\n\n if (index >= 0) {\n var mapping = this._generatedMappings[index];\n\n if (mapping.generatedLine === needle.generatedLine) {\n var source = util.getArg(mapping, 'source', null);\n if (source !== null) {\n source = this._sources.at(source);\n if (this.sourceRoot != null) {\n source = util.join(this.sourceRoot, source);\n }\n }\n var name = util.getArg(mapping, 'name', null);\n if (name !== null) {\n name = this._names.at(name);\n }\n return {\n source: source,\n line: util.getArg(mapping, 'originalLine', null),\n column: util.getArg(mapping, 'originalColumn', null),\n name: name\n };\n }\n }\n\n return {\n source: null,\n line: null,\n column: null,\n name: null\n };\n };\n\n/**\n * Return true if we have the source content for every source in the source\n * map, false otherwise.\n */\nBasicSourceMapConsumer.prototype.hasContentsOfAllSources =\n function BasicSourceMapConsumer_hasContentsOfAllSources() {\n if (!this.sourcesContent) {\n return false;\n }\n return this.sourcesContent.length >= this._sources.size() &&\n !this.sourcesContent.some(function (sc) { return sc == null; });\n };\n\n/**\n * Returns the original source content. The only argument is the url of the\n * original source file. Returns null if no original source content is\n * available.\n */\nBasicSourceMapConsumer.prototype.sourceContentFor =\n function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {\n if (!this.sourcesContent) {\n return null;\n }\n\n if (this.sourceRoot != null) {\n aSource = util.relative(this.sourceRoot, aSource);\n }\n\n if (this._sources.has(aSource)) {\n return this.sourcesContent[this._sources.indexOf(aSource)];\n }\n\n var url;\n if (this.sourceRoot != null\n && (url = util.urlParse(this.sourceRoot))) {\n // XXX: file:// URIs and absolute paths lead to unexpected behavior for\n // many users. We can help them out when they expect file:// URIs to\n // behave like it would if they were running a local HTTP server. See\n // https://bugzilla.mozilla.org/show_bug.cgi?id=885597.\n var fileUriAbsPath = aSource.replace(/^file:\\/\\//, \"\");\n if (url.scheme == \"file\"\n && this._sources.has(fileUriAbsPath)) {\n return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]\n }\n\n if ((!url.path || url.path == \"/\")\n && this._sources.has(\"/\" + aSource)) {\n return this.sourcesContent[this._sources.indexOf(\"/\" + aSource)];\n }\n }\n\n // This function is used recursively from\n // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we\n // don't want to throw if we can't find the source - we just want to\n // return null, so we provide a flag to exit gracefully.\n if (nullOnMissing) {\n return null;\n }\n else {\n throw new Error('\"' + aSource + '\" is not in the SourceMap.');\n }\n };\n\n/**\n * Returns the generated line and column information for the original source,\n * line, and column positions provided. The only argument is an object with\n * the following properties:\n *\n * - source: The filename of the original source.\n * - line: The line number in the original source.\n * - column: The column number in the original source.\n * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or\n * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the\n * closest element that is smaller than or greater than the one we are\n * searching for, respectively, if the exact element cannot be found.\n * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.\n *\n * and an object is returned with the following properties:\n *\n * - line: The line number in the generated source, or null.\n * - column: The column number in the generated source, or null.\n */\nBasicSourceMapConsumer.prototype.generatedPositionFor =\n function SourceMapConsumer_generatedPositionFor(aArgs) {\n var source = util.getArg(aArgs, 'source');\n if (this.sourceRoot != null) {\n source = util.relative(this.sourceRoot, source);\n }\n if (!this._sources.has(source)) {\n return {\n line: null,\n column: null,\n lastColumn: null\n };\n }\n source = this._sources.indexOf(source);\n\n var needle = {\n source: source,\n originalLine: util.getArg(aArgs, 'line'),\n originalColumn: util.getArg(aArgs, 'column')\n };\n\n var index = this._findMapping(\n needle,\n this._originalMappings,\n \"originalLine\",\n \"originalColumn\",\n util.compareByOriginalPositions,\n util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)\n );\n\n if (index >= 0) {\n var mapping = this._originalMappings[index];\n\n if (mapping.source === needle.source) {\n return {\n line: util.getArg(mapping, 'generatedLine', null),\n column: util.getArg(mapping, 'generatedColumn', null),\n lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)\n };\n }\n }\n\n return {\n line: null,\n column: null,\n lastColumn: null\n };\n };\n\nexports.BasicSourceMapConsumer = BasicSourceMapConsumer;\n\n/**\n * An IndexedSourceMapConsumer instance represents a parsed source map which\n * we can query for information. It differs from BasicSourceMapConsumer in\n * that it takes \"indexed\" source maps (i.e. ones with a \"sections\" field) as\n * input.\n *\n * The only parameter is a raw source map (either as a JSON string, or already\n * parsed to an object). According to the spec for indexed source maps, they\n * have the following attributes:\n *\n * - version: Which version of the source map spec this map is following.\n * - file: Optional. The generated file this source map is associated with.\n * - sections: A list of section definitions.\n *\n * Each value under the \"sections\" field has two fields:\n * - offset: The offset into the original specified at which this section\n * begins to apply, defined as an object with a \"line\" and \"column\"\n * field.\n * - map: A source map definition. This source map could also be indexed,\n * but doesn't have to be.\n *\n * Instead of the \"map\" field, it's also possible to have a \"url\" field\n * specifying a URL to retrieve a source map from, but that's currently\n * unsupported.\n *\n * Here's an example source map, taken from the source map spec[0], but\n * modified to omit a section which uses the \"url\" field.\n *\n * {\n * version : 3,\n * file: \"app.js\",\n * sections: [{\n * offset: {line:100, column:10},\n * map: {\n * version : 3,\n * file: \"section.js\",\n * sources: [\"foo.js\", \"bar.js\"],\n * names: [\"src\", \"maps\", \"are\", \"fun\"],\n * mappings: \"AAAA,E;;ABCDE;\"\n * }\n * }],\n * }\n *\n * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt\n */\nfunction IndexedSourceMapConsumer(aSourceMap) {\n var sourceMap = aSourceMap;\n if (typeof aSourceMap === 'string') {\n sourceMap = JSON.parse(aSourceMap.replace(/^\\)\\]\\}'/, ''));\n }\n\n var version = util.getArg(sourceMap, 'version');\n var sections = util.getArg(sourceMap, 'sections');\n\n if (version != this._version) {\n throw new Error('Unsupported version: ' + version);\n }\n\n this._sources = new ArraySet();\n this._names = new ArraySet();\n\n var lastOffset = {\n line: -1,\n column: 0\n };\n this._sections = sections.map(function (s) {\n if (s.url) {\n // The url field will require support for asynchronicity.\n // See https://github.com/mozilla/source-map/issues/16\n throw new Error('Support for url field in sections not implemented.');\n }\n var offset = util.getArg(s, 'offset');\n var offsetLine = util.getArg(offset, 'line');\n var offsetColumn = util.getArg(offset, 'column');\n\n if (offsetLine < lastOffset.line ||\n (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) {\n throw new Error('Section offsets must be ordered and non-overlapping.');\n }\n lastOffset = offset;\n\n return {\n generatedOffset: {\n // The offset fields are 0-based, but we use 1-based indices when\n // encoding/decoding from VLQ.\n generatedLine: offsetLine + 1,\n generatedColumn: offsetColumn + 1\n },\n consumer: new SourceMapConsumer(util.getArg(s, 'map'))\n }\n });\n}\n\nIndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);\nIndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;\n\n/**\n * The version of the source mapping spec that we are consuming.\n */\nIndexedSourceMapConsumer.prototype._version = 3;\n\n/**\n * The list of original sources.\n */\nObject.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', {\n get: function () {\n var sources = [];\n for (var i = 0; i < this._sections.length; i++) {\n for (var j = 0; j < this._sections[i].consumer.sources.length; j++) {\n sources.push(this._sections[i].consumer.sources[j]);\n }\n }\n return sources;\n }\n});\n\n/**\n * Returns the original source, line, and column information for the generated\n * source's line and column positions provided. The only argument is an object\n * with the following properties:\n *\n * - line: The line number in the generated source.\n * - column: The column number in the generated source.\n *\n * and an object is returned with the following properties:\n *\n * - source: The original source file, or null.\n * - line: The line number in the original source, or null.\n * - column: The column number in the original source, or null.\n * - name: The original identifier, or null.\n */\nIndexedSourceMapConsumer.prototype.originalPositionFor =\n function IndexedSourceMapConsumer_originalPositionFor(aArgs) {\n var needle = {\n generatedLine: util.getArg(aArgs, 'line'),\n generatedColumn: util.getArg(aArgs, 'column')\n };\n\n // Find the section containing the generated position we're trying to map\n // to an original position.\n var sectionIndex = binarySearch.search(needle, this._sections,\n function(needle, section) {\n var cmp = needle.generatedLine - section.generatedOffset.generatedLine;\n if (cmp) {\n return cmp;\n }\n\n return (needle.generatedColumn -\n section.generatedOffset.generatedColumn);\n });\n var section = this._sections[sectionIndex];\n\n if (!section) {\n return {\n source: null,\n line: null,\n column: null,\n name: null\n };\n }\n\n return section.consumer.originalPositionFor({\n line: needle.generatedLine -\n (section.generatedOffset.generatedLine - 1),\n column: needle.generatedColumn -\n (section.generatedOffset.generatedLine === needle.generatedLine\n ? section.generatedOffset.generatedColumn - 1\n : 0),\n bias: aArgs.bias\n });\n };\n\n/**\n * Return true if we have the source content for every source in the source\n * map, false otherwise.\n */\nIndexedSourceMapConsumer.prototype.hasContentsOfAllSources =\n function IndexedSourceMapConsumer_hasContentsOfAllSources() {\n return this._sections.every(function (s) {\n return s.consumer.hasContentsOfAllSources();\n });\n };\n\n/**\n * Returns the original source content. The only argument is the url of the\n * original source file. Returns null if no original source content is\n * available.\n */\nIndexedSourceMapConsumer.prototype.sourceContentFor =\n function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {\n for (var i = 0; i < this._sections.length; i++) {\n var section = this._sections[i];\n\n var content = section.consumer.sourceContentFor(aSource, true);\n if (content) {\n return content;\n }\n }\n if (nullOnMissing) {\n return null;\n }\n else {\n throw new Error('\"' + aSource + '\" is not in the SourceMap.');\n }\n };\n\n/**\n * Returns the generated line and column information for the original source,\n * line, and column positions provided. The only argument is an object with\n * the following properties:\n *\n * - source: The filename of the original source.\n * - line: The line number in the original source.\n * - column: The column number in the original source.\n *\n * and an object is returned with the following properties:\n *\n * - line: The line number in the generated source, or null.\n * - column: The column number in the generated source, or null.\n */\nIndexedSourceMapConsumer.prototype.generatedPositionFor =\n function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {\n for (var i = 0; i < this._sections.length; i++) {\n var section = this._sections[i];\n\n // Only consider this section if the requested source is in the list of\n // sources of the consumer.\n if (section.consumer.sources.indexOf(util.getArg(aArgs, 'source')) === -1) {\n continue;\n }\n var generatedPosition = section.consumer.generatedPositionFor(aArgs);\n if (generatedPosition) {\n var ret = {\n line: generatedPosition.line +\n (section.generatedOffset.generatedLine - 1),\n column: generatedPosition.column +\n (section.generatedOffset.generatedLine === generatedPosition.line\n ? section.generatedOffset.generatedColumn - 1\n : 0)\n };\n return ret;\n }\n }\n\n return {\n line: null,\n column: null\n };\n };\n\n/**\n * Parse the mappings in a string in to a data structure which we can easily\n * query (the ordered arrays in the `this.__generatedMappings` and\n * `this.__originalMappings` properties).\n */\nIndexedSourceMapConsumer.prototype._parseMappings =\n function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {\n this.__generatedMappings = [];\n this.__originalMappings = [];\n for (var i = 0; i < this._sections.length; i++) {\n var section = this._sections[i];\n var sectionMappings = section.consumer._generatedMappings;\n for (var j = 0; j < sectionMappings.length; j++) {\n var mapping = sectionMappings[j];\n\n var source = section.consumer._sources.at(mapping.source);\n if (section.consumer.sourceRoot !== null) {\n source = util.join(section.consumer.sourceRoot, source);\n }\n this._sources.add(source);\n source = this._sources.indexOf(source);\n\n var name = section.consumer._names.at(mapping.name);\n this._names.add(name);\n name = this._names.indexOf(name);\n\n // The mappings coming from the consumer for the section have\n // generated positions relative to the start of the section, so we\n // need to offset them to be relative to the start of the concatenated\n // generated file.\n var adjustedMapping = {\n source: source,\n generatedLine: mapping.generatedLine +\n (section.generatedOffset.generatedLine - 1),\n generatedColumn: mapping.generatedColumn +\n (section.generatedOffset.generatedLine === mapping.generatedLine\n ? section.generatedOffset.generatedColumn - 1\n : 0),\n originalLine: mapping.originalLine,\n originalColumn: mapping.originalColumn,\n name: name\n };\n\n this.__generatedMappings.push(adjustedMapping);\n if (typeof adjustedMapping.originalLine === 'number') {\n this.__originalMappings.push(adjustedMapping);\n }\n }\n }\n\n quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);\n quickSort(this.__originalMappings, util.compareByOriginalPositions);\n };\n\nexports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar base64VLQ = require('./base64-vlq');\nvar util = require('./util');\nvar ArraySet = require('./array-set').ArraySet;\nvar MappingList = require('./mapping-list').MappingList;\n\n/**\n * An instance of the SourceMapGenerator represents a source map which is\n * being built incrementally. You may pass an object with the following\n * properties:\n *\n * - file: The filename of the generated source.\n * - sourceRoot: A root for all relative URLs in this source map.\n */\nfunction SourceMapGenerator(aArgs) {\n if (!aArgs) {\n aArgs = {};\n }\n this._file = util.getArg(aArgs, 'file', null);\n this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null);\n this._skipValidation = util.getArg(aArgs, 'skipValidation', false);\n this._sources = new ArraySet();\n this._names = new ArraySet();\n this._mappings = new MappingList();\n this._sourcesContents = null;\n}\n\nSourceMapGenerator.prototype._version = 3;\n\n/**\n * Creates a new SourceMapGenerator based on a SourceMapConsumer\n *\n * @param aSourceMapConsumer The SourceMap.\n */\nSourceMapGenerator.fromSourceMap =\n function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) {\n var sourceRoot = aSourceMapConsumer.sourceRoot;\n var generator = new SourceMapGenerator({\n file: aSourceMapConsumer.file,\n sourceRoot: sourceRoot\n });\n aSourceMapConsumer.eachMapping(function (mapping) {\n var newMapping = {\n generated: {\n line: mapping.generatedLine,\n column: mapping.generatedColumn\n }\n };\n\n if (mapping.source != null) {\n newMapping.source = mapping.source;\n if (sourceRoot != null) {\n newMapping.source = util.relative(sourceRoot, newMapping.source);\n }\n\n newMapping.original = {\n line: mapping.originalLine,\n column: mapping.originalColumn\n };\n\n if (mapping.name != null) {\n newMapping.name = mapping.name;\n }\n }\n\n generator.addMapping(newMapping);\n });\n aSourceMapConsumer.sources.forEach(function (sourceFile) {\n var content = aSourceMapConsumer.sourceContentFor(sourceFile);\n if (content != null) {\n generator.setSourceContent(sourceFile, content);\n }\n });\n return generator;\n };\n\n/**\n * Add a single mapping from original source line and column to the generated\n * source's line and column for this source map being created. The mapping\n * object should have the following properties:\n *\n * - generated: An object with the generated line and column positions.\n * - original: An object with the original line and column positions.\n * - source: The original source file (relative to the sourceRoot).\n * - name: An optional original token name for this mapping.\n */\nSourceMapGenerator.prototype.addMapping =\n function SourceMapGenerator_addMapping(aArgs) {\n var generated = util.getArg(aArgs, 'generated');\n var original = util.getArg(aArgs, 'original', null);\n var source = util.getArg(aArgs, 'source', null);\n var name = util.getArg(aArgs, 'name', null);\n\n if (!this._skipValidation) {\n this._validateMapping(generated, original, source, name);\n }\n\n if (source != null) {\n source = String(source);\n if (!this._sources.has(source)) {\n this._sources.add(source);\n }\n }\n\n if (name != null) {\n name = String(name);\n if (!this._names.has(name)) {\n this._names.add(name);\n }\n }\n\n this._mappings.add({\n generatedLine: generated.line,\n generatedColumn: generated.column,\n originalLine: original != null && original.line,\n originalColumn: original != null && original.column,\n source: source,\n name: name\n });\n };\n\n/**\n * Set the source content for a source file.\n */\nSourceMapGenerator.prototype.setSourceContent =\n function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {\n var source = aSourceFile;\n if (this._sourceRoot != null) {\n source = util.relative(this._sourceRoot, source);\n }\n\n if (aSourceContent != null) {\n // Add the source content to the _sourcesContents map.\n // Create a new _sourcesContents map if the property is null.\n if (!this._sourcesContents) {\n this._sourcesContents = Object.create(null);\n }\n this._sourcesContents[util.toSetString(source)] = aSourceContent;\n } else if (this._sourcesContents) {\n // Remove the source file from the _sourcesContents map.\n // If the _sourcesContents map is empty, set the property to null.\n delete this._sourcesContents[util.toSetString(source)];\n if (Object.keys(this._sourcesContents).length === 0) {\n this._sourcesContents = null;\n }\n }\n };\n\n/**\n * Applies the mappings of a sub-source-map for a specific source file to the\n * source map being generated. Each mapping to the supplied source file is\n * rewritten using the supplied source map. Note: The resolution for the\n * resulting mappings is the minimium of this map and the supplied map.\n *\n * @param aSourceMapConsumer The source map to be applied.\n * @param aSourceFile Optional. The filename of the source file.\n * If omitted, SourceMapConsumer's file property will be used.\n * @param aSourceMapPath Optional. The dirname of the path to the source map\n * to be applied. If relative, it is relative to the SourceMapConsumer.\n * This parameter is needed when the two source maps aren't in the same\n * directory, and the source map to be applied contains relative source\n * paths. If so, those relative source paths need to be rewritten\n * relative to the SourceMapGenerator.\n */\nSourceMapGenerator.prototype.applySourceMap =\n function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {\n var sourceFile = aSourceFile;\n // If aSourceFile is omitted, we will use the file property of the SourceMap\n if (aSourceFile == null) {\n if (aSourceMapConsumer.file == null) {\n throw new Error(\n 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' +\n 'or the source map\\'s \"file\" property. Both were omitted.'\n );\n }\n sourceFile = aSourceMapConsumer.file;\n }\n var sourceRoot = this._sourceRoot;\n // Make \"sourceFile\" relative if an absolute Url is passed.\n if (sourceRoot != null) {\n sourceFile = util.relative(sourceRoot, sourceFile);\n }\n // Applying the SourceMap can add and remove items from the sources and\n // the names array.\n var newSources = new ArraySet();\n var newNames = new ArraySet();\n\n // Find mappings for the \"sourceFile\"\n this._mappings.unsortedForEach(function (mapping) {\n if (mapping.source === sourceFile && mapping.originalLine != null) {\n // Check if it can be mapped by the source map, then update the mapping.\n var original = aSourceMapConsumer.originalPositionFor({\n line: mapping.originalLine,\n column: mapping.originalColumn\n });\n if (original.source != null) {\n // Copy mapping\n mapping.source = original.source;\n if (aSourceMapPath != null) {\n mapping.source = util.join(aSourceMapPath, mapping.source)\n }\n if (sourceRoot != null) {\n mapping.source = util.relative(sourceRoot, mapping.source);\n }\n mapping.originalLine = original.line;\n mapping.originalColumn = original.column;\n if (original.name != null) {\n mapping.name = original.name;\n }\n }\n }\n\n var source = mapping.source;\n if (source != null && !newSources.has(source)) {\n newSources.add(source);\n }\n\n var name = mapping.name;\n if (name != null && !newNames.has(name)) {\n newNames.add(name);\n }\n\n }, this);\n this._sources = newSources;\n this._names = newNames;\n\n // Copy sourcesContents of applied map.\n aSourceMapConsumer.sources.forEach(function (sourceFile) {\n var content = aSourceMapConsumer.sourceContentFor(sourceFile);\n if (content != null) {\n if (aSourceMapPath != null) {\n sourceFile = util.join(aSourceMapPath, sourceFile);\n }\n if (sourceRoot != null) {\n sourceFile = util.relative(sourceRoot, sourceFile);\n }\n this.setSourceContent(sourceFile, content);\n }\n }, this);\n };\n\n/**\n * A mapping can have one of the three levels of data:\n *\n * 1. Just the generated position.\n * 2. The Generated position, original position, and original source.\n * 3. Generated and original position, original source, as well as a name\n * token.\n *\n * To maintain consistency, we validate that any new mapping being added falls\n * in to one of these categories.\n */\nSourceMapGenerator.prototype._validateMapping =\n function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource,\n aName) {\n if (aGenerated && 'line' in aGenerated && 'column' in aGenerated\n && aGenerated.line > 0 && aGenerated.column >= 0\n && !aOriginal && !aSource && !aName) {\n // Case 1.\n return;\n }\n else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated\n && aOriginal && 'line' in aOriginal && 'column' in aOriginal\n && aGenerated.line > 0 && aGenerated.column >= 0\n && aOriginal.line > 0 && aOriginal.column >= 0\n && aSource) {\n // Cases 2 and 3.\n return;\n }\n else {\n throw new Error('Invalid mapping: ' + JSON.stringify({\n generated: aGenerated,\n source: aSource,\n original: aOriginal,\n name: aName\n }));\n }\n };\n\n/**\n * Serialize the accumulated mappings in to the stream of base 64 VLQs\n * specified by the source map format.\n */\nSourceMapGenerator.prototype._serializeMappings =\n function SourceMapGenerator_serializeMappings() {\n var previousGeneratedColumn = 0;\n var previousGeneratedLine = 1;\n var previousOriginalColumn = 0;\n var previousOriginalLine = 0;\n var previousName = 0;\n var previousSource = 0;\n var result = '';\n var next;\n var mapping;\n var nameIdx;\n var sourceIdx;\n\n var mappings = this._mappings.toArray();\n for (var i = 0, len = mappings.length; i < len; i++) {\n mapping = mappings[i];\n next = ''\n\n if (mapping.generatedLine !== previousGeneratedLine) {\n previousGeneratedColumn = 0;\n while (mapping.generatedLine !== previousGeneratedLine) {\n next += ';';\n previousGeneratedLine++;\n }\n }\n else {\n if (i > 0) {\n if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) {\n continue;\n }\n next += ',';\n }\n }\n\n next += base64VLQ.encode(mapping.generatedColumn\n - previousGeneratedColumn);\n previousGeneratedColumn = mapping.generatedColumn;\n\n if (mapping.source != null) {\n sourceIdx = this._sources.indexOf(mapping.source);\n next += base64VLQ.encode(sourceIdx - previousSource);\n previousSource = sourceIdx;\n\n // lines are stored 0-based in SourceMap spec version 3\n next += base64VLQ.encode(mapping.originalLine - 1\n - previousOriginalLine);\n previousOriginalLine = mapping.originalLine - 1;\n\n next += base64VLQ.encode(mapping.originalColumn\n - previousOriginalColumn);\n previousOriginalColumn = mapping.originalColumn;\n\n if (mapping.name != null) {\n nameIdx = this._names.indexOf(mapping.name);\n next += base64VLQ.encode(nameIdx - previousName);\n previousName = nameIdx;\n }\n }\n\n result += next;\n }\n\n return result;\n };\n\nSourceMapGenerator.prototype._generateSourcesContent =\n function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {\n return aSources.map(function (source) {\n if (!this._sourcesContents) {\n return null;\n }\n if (aSourceRoot != null) {\n source = util.relative(aSourceRoot, source);\n }\n var key = util.toSetString(source);\n return Object.prototype.hasOwnProperty.call(this._sourcesContents, key)\n ? this._sourcesContents[key]\n : null;\n }, this);\n };\n\n/**\n * Externalize the source map.\n */\nSourceMapGenerator.prototype.toJSON =\n function SourceMapGenerator_toJSON() {\n var map = {\n version: this._version,\n sources: this._sources.toArray(),\n names: this._names.toArray(),\n mappings: this._serializeMappings()\n };\n if (this._file != null) {\n map.file = this._file;\n }\n if (this._sourceRoot != null) {\n map.sourceRoot = this._sourceRoot;\n }\n if (this._sourcesContents) {\n map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot);\n }\n\n return map;\n };\n\n/**\n * Render the source map being generated to a string.\n */\nSourceMapGenerator.prototype.toString =\n function SourceMapGenerator_toString() {\n return JSON.stringify(this.toJSON());\n };\n\nexports.SourceMapGenerator = SourceMapGenerator;\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar SourceMapGenerator = require('./source-map-generator').SourceMapGenerator;\nvar util = require('./util');\n\n// Matches a Windows-style `\\r\\n` newline or a `\\n` newline used by all other\n// operating systems these days (capturing the result).\nvar REGEX_NEWLINE = /(\\r?\\n)/;\n\n// Newline character code for charCodeAt() comparisons\nvar NEWLINE_CODE = 10;\n\n// Private symbol for identifying `SourceNode`s when multiple versions of\n// the source-map library are loaded. This MUST NOT CHANGE across\n// versions!\nvar isSourceNode = \"$$$isSourceNode$$$\";\n\n/**\n * SourceNodes provide a way to abstract over interpolating/concatenating\n * snippets of generated JavaScript source code while maintaining the line and\n * column information associated with the original source code.\n *\n * @param aLine The original line number.\n * @param aColumn The original column number.\n * @param aSource The original source's filename.\n * @param aChunks Optional. An array of strings which are snippets of\n * generated JS, or other SourceNodes.\n * @param aName The original identifier.\n */\nfunction SourceNode(aLine, aColumn, aSource, aChunks, aName) {\n this.children = [];\n this.sourceContents = {};\n this.line = aLine == null ? null : aLine;\n this.column = aColumn == null ? null : aColumn;\n this.source = aSource == null ? null : aSource;\n this.name = aName == null ? null : aName;\n this[isSourceNode] = true;\n if (aChunks != null) this.add(aChunks);\n}\n\n/**\n * Creates a SourceNode from generated code and a SourceMapConsumer.\n *\n * @param aGeneratedCode The generated code\n * @param aSourceMapConsumer The SourceMap for the generated code\n * @param aRelativePath Optional. The path that relative sources in the\n * SourceMapConsumer should be relative to.\n */\nSourceNode.fromStringWithSourceMap =\n function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {\n // The SourceNode we want to fill with the generated code\n // and the SourceMap\n var node = new SourceNode();\n\n // All even indices of this array are one line of the generated code,\n // while all odd indices are the newlines between two adjacent lines\n // (since `REGEX_NEWLINE` captures its match).\n // Processed fragments are removed from this array, by calling `shiftNextLine`.\n var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);\n var shiftNextLine = function() {\n var lineContents = remainingLines.shift();\n // The last line of a file might not have a newline.\n var newLine = remainingLines.shift() || \"\";\n return lineContents + newLine;\n };\n\n // We need to remember the position of \"remainingLines\"\n var lastGeneratedLine = 1, lastGeneratedColumn = 0;\n\n // The generate SourceNodes we need a code range.\n // To extract it current and last mapping is used.\n // Here we store the last mapping.\n var lastMapping = null;\n\n aSourceMapConsumer.eachMapping(function (mapping) {\n if (lastMapping !== null) {\n // We add the code from \"lastMapping\" to \"mapping\":\n // First check if there is a new line in between.\n if (lastGeneratedLine < mapping.generatedLine) {\n // Associate first line with \"lastMapping\"\n addMappingWithCode(lastMapping, shiftNextLine());\n lastGeneratedLine++;\n lastGeneratedColumn = 0;\n // The remaining code is added without mapping\n } else {\n // There is no new line in between.\n // Associate the code between \"lastGeneratedColumn\" and\n // \"mapping.generatedColumn\" with \"lastMapping\"\n var nextLine = remainingLines[0];\n var code = nextLine.substr(0, mapping.generatedColumn -\n lastGeneratedColumn);\n remainingLines[0] = nextLine.substr(mapping.generatedColumn -\n lastGeneratedColumn);\n lastGeneratedColumn = mapping.generatedColumn;\n addMappingWithCode(lastMapping, code);\n // No more remaining code, continue\n lastMapping = mapping;\n return;\n }\n }\n // We add the generated code until the first mapping\n // to the SourceNode without any mapping.\n // Each line is added as separate string.\n while (lastGeneratedLine < mapping.generatedLine) {\n node.add(shiftNextLine());\n lastGeneratedLine++;\n }\n if (lastGeneratedColumn < mapping.generatedColumn) {\n var nextLine = remainingLines[0];\n node.add(nextLine.substr(0, mapping.generatedColumn));\n remainingLines[0] = nextLine.substr(mapping.generatedColumn);\n lastGeneratedColumn = mapping.generatedColumn;\n }\n lastMapping = mapping;\n }, this);\n // We have processed all mappings.\n if (remainingLines.length > 0) {\n if (lastMapping) {\n // Associate the remaining code in the current line with \"lastMapping\"\n addMappingWithCode(lastMapping, shiftNextLine());\n }\n // and add the remaining lines without any mapping\n node.add(remainingLines.join(\"\"));\n }\n\n // Copy sourcesContent into SourceNode\n aSourceMapConsumer.sources.forEach(function (sourceFile) {\n var content = aSourceMapConsumer.sourceContentFor(sourceFile);\n if (content != null) {\n if (aRelativePath != null) {\n sourceFile = util.join(aRelativePath, sourceFile);\n }\n node.setSourceContent(sourceFile, content);\n }\n });\n\n return node;\n\n function addMappingWithCode(mapping, code) {\n if (mapping === null || mapping.source === undefined) {\n node.add(code);\n } else {\n var source = aRelativePath\n ? util.join(aRelativePath, mapping.source)\n : mapping.source;\n node.add(new SourceNode(mapping.originalLine,\n mapping.originalColumn,\n source,\n code,\n mapping.name));\n }\n }\n };\n\n/**\n * Add a chunk of generated JS to this source node.\n *\n * @param aChunk A string snippet of generated JS code, another instance of\n * SourceNode, or an array where each member is one of those things.\n */\nSourceNode.prototype.add = function SourceNode_add(aChunk) {\n if (Array.isArray(aChunk)) {\n aChunk.forEach(function (chunk) {\n this.add(chunk);\n }, this);\n }\n else if (aChunk[isSourceNode] || typeof aChunk === \"string\") {\n if (aChunk) {\n this.children.push(aChunk);\n }\n }\n else {\n throw new TypeError(\n \"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \" + aChunk\n );\n }\n return this;\n};\n\n/**\n * Add a chunk of generated JS to the beginning of this source node.\n *\n * @param aChunk A string snippet of generated JS code, another instance of\n * SourceNode, or an array where each member is one of those things.\n */\nSourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {\n if (Array.isArray(aChunk)) {\n for (var i = aChunk.length-1; i >= 0; i--) {\n this.prepend(aChunk[i]);\n }\n }\n else if (aChunk[isSourceNode] || typeof aChunk === \"string\") {\n this.children.unshift(aChunk);\n }\n else {\n throw new TypeError(\n \"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \" + aChunk\n );\n }\n return this;\n};\n\n/**\n * Walk over the tree of JS snippets in this node and its children. The\n * walking function is called once for each snippet of JS and is passed that\n * snippet and the its original associated source's line/column location.\n *\n * @param aFn The traversal function.\n */\nSourceNode.prototype.walk = function SourceNode_walk(aFn) {\n var chunk;\n for (var i = 0, len = this.children.length; i < len; i++) {\n chunk = this.children[i];\n if (chunk[isSourceNode]) {\n chunk.walk(aFn);\n }\n else {\n if (chunk !== '') {\n aFn(chunk, { source: this.source,\n line: this.line,\n column: this.column,\n name: this.name });\n }\n }\n }\n};\n\n/**\n * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between\n * each of `this.children`.\n *\n * @param aSep The separator.\n */\nSourceNode.prototype.join = function SourceNode_join(aSep) {\n var newChildren;\n var i;\n var len = this.children.length;\n if (len > 0) {\n newChildren = [];\n for (i = 0; i < len-1; i++) {\n newChildren.push(this.children[i]);\n newChildren.push(aSep);\n }\n newChildren.push(this.children[i]);\n this.children = newChildren;\n }\n return this;\n};\n\n/**\n * Call String.prototype.replace on the very right-most source snippet. Useful\n * for trimming whitespace from the end of a source node, etc.\n *\n * @param aPattern The pattern to replace.\n * @param aReplacement The thing to replace the pattern with.\n */\nSourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {\n var lastChild = this.children[this.children.length - 1];\n if (lastChild[isSourceNode]) {\n lastChild.replaceRight(aPattern, aReplacement);\n }\n else if (typeof lastChild === 'string') {\n this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);\n }\n else {\n this.children.push(''.replace(aPattern, aReplacement));\n }\n return this;\n};\n\n/**\n * Set the source content for a source file. This will be added to the SourceMapGenerator\n * in the sourcesContent field.\n *\n * @param aSourceFile The filename of the source file\n * @param aSourceContent The content of the source file\n */\nSourceNode.prototype.setSourceContent =\n function SourceNode_setSourceContent(aSourceFile, aSourceContent) {\n this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;\n };\n\n/**\n * Walk over the tree of SourceNodes. The walking function is called for each\n * source file content and is passed the filename and source content.\n *\n * @param aFn The traversal function.\n */\nSourceNode.prototype.walkSourceContents =\n function SourceNode_walkSourceContents(aFn) {\n for (var i = 0, len = this.children.length; i < len; i++) {\n if (this.children[i][isSourceNode]) {\n this.children[i].walkSourceContents(aFn);\n }\n }\n\n var sources = Object.keys(this.sourceContents);\n for (var i = 0, len = sources.length; i < len; i++) {\n aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);\n }\n };\n\n/**\n * Return the string representation of this source node. Walks over the tree\n * and concatenates all the various snippets together to one string.\n */\nSourceNode.prototype.toString = function SourceNode_toString() {\n var str = \"\";\n this.walk(function (chunk) {\n str += chunk;\n });\n return str;\n};\n\n/**\n * Returns the string representation of this source node along with a source\n * map.\n */\nSourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {\n var generated = {\n code: \"\",\n line: 1,\n column: 0\n };\n var map = new SourceMapGenerator(aArgs);\n var sourceMappingActive = false;\n var lastOriginalSource = null;\n var lastOriginalLine = null;\n var lastOriginalColumn = null;\n var lastOriginalName = null;\n this.walk(function (chunk, original) {\n generated.code += chunk;\n if (original.source !== null\n && original.line !== null\n && original.column !== null) {\n if(lastOriginalSource !== original.source\n || lastOriginalLine !== original.line\n || lastOriginalColumn !== original.column\n || lastOriginalName !== original.name) {\n map.addMapping({\n source: original.source,\n original: {\n line: original.line,\n column: original.column\n },\n generated: {\n line: generated.line,\n column: generated.column\n },\n name: original.name\n });\n }\n lastOriginalSource = original.source;\n lastOriginalLine = original.line;\n lastOriginalColumn = original.column;\n lastOriginalName = original.name;\n sourceMappingActive = true;\n } else if (sourceMappingActive) {\n map.addMapping({\n generated: {\n line: generated.line,\n column: generated.column\n }\n });\n lastOriginalSource = null;\n sourceMappingActive = false;\n }\n for (var idx = 0, length = chunk.length; idx < length; idx++) {\n if (chunk.charCodeAt(idx) === NEWLINE_CODE) {\n generated.line++;\n generated.column = 0;\n // Mappings end at eol\n if (idx + 1 === length) {\n lastOriginalSource = null;\n sourceMappingActive = false;\n } else if (sourceMappingActive) {\n map.addMapping({\n source: original.source,\n original: {\n line: original.line,\n column: original.column\n },\n generated: {\n line: generated.line,\n column: generated.column\n },\n name: original.name\n });\n }\n } else {\n generated.column++;\n }\n }\n });\n this.walkSourceContents(function (sourceFile, sourceContent) {\n map.setSourceContent(sourceFile, sourceContent);\n });\n\n return { code: generated.code, map: map };\n};\n\nexports.SourceNode = SourceNode;\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\n/**\n * This is a helper function for getting values from parameter/options\n * objects.\n *\n * @param args The object we are extracting values from\n * @param name The name of the property we are getting.\n * @param defaultValue An optional value to return if the property is missing\n * from the object. If this is not specified and the property is missing, an\n * error will be thrown.\n */\nfunction getArg(aArgs, aName, aDefaultValue) {\n if (aName in aArgs) {\n return aArgs[aName];\n } else if (arguments.length === 3) {\n return aDefaultValue;\n } else {\n throw new Error('\"' + aName + '\" is a required argument.');\n }\n}\nexports.getArg = getArg;\n\nvar urlRegexp = /^(?:([\\w+\\-.]+):)?\\/\\/(?:(\\w+:\\w+)@)?([\\w.]*)(?::(\\d+))?(\\S*)$/;\nvar dataUrlRegexp = /^data:.+\\,.+$/;\n\nfunction urlParse(aUrl) {\n var match = aUrl.match(urlRegexp);\n if (!match) {\n return null;\n }\n return {\n scheme: match[1],\n auth: match[2],\n host: match[3],\n port: match[4],\n path: match[5]\n };\n}\nexports.urlParse = urlParse;\n\nfunction urlGenerate(aParsedUrl) {\n var url = '';\n if (aParsedUrl.scheme) {\n url += aParsedUrl.scheme + ':';\n }\n url += '//';\n if (aParsedUrl.auth) {\n url += aParsedUrl.auth + '@';\n }\n if (aParsedUrl.host) {\n url += aParsedUrl.host;\n }\n if (aParsedUrl.port) {\n url += \":\" + aParsedUrl.port\n }\n if (aParsedUrl.path) {\n url += aParsedUrl.path;\n }\n return url;\n}\nexports.urlGenerate = urlGenerate;\n\n/**\n * Normalizes a path, or the path portion of a URL:\n *\n * - Replaces consecutive slashes with one slash.\n * - Removes unnecessary '.' parts.\n * - Removes unnecessary '/..' parts.\n *\n * Based on code in the Node.js 'path' core module.\n *\n * @param aPath The path or url to normalize.\n */\nfunction normalize(aPath) {\n var path = aPath;\n var url = urlParse(aPath);\n if (url) {\n if (!url.path) {\n return aPath;\n }\n path = url.path;\n }\n var isAbsolute = exports.isAbsolute(path);\n\n var parts = path.split(/\\/+/);\n for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {\n part = parts[i];\n if (part === '.') {\n parts.splice(i, 1);\n } else if (part === '..') {\n up++;\n } else if (up > 0) {\n if (part === '') {\n // The first part is blank if the path is absolute. Trying to go\n // above the root is a no-op. Therefore we can remove all '..' parts\n // directly after the root.\n parts.splice(i + 1, up);\n up = 0;\n } else {\n parts.splice(i, 2);\n up--;\n }\n }\n }\n path = parts.join('/');\n\n if (path === '') {\n path = isAbsolute ? '/' : '.';\n }\n\n if (url) {\n url.path = path;\n return urlGenerate(url);\n }\n return path;\n}\nexports.normalize = normalize;\n\n/**\n * Joins two paths/URLs.\n *\n * @param aRoot The root path or URL.\n * @param aPath The path or URL to be joined with the root.\n *\n * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a\n * scheme-relative URL: Then the scheme of aRoot, if any, is prepended\n * first.\n * - Otherwise aPath is a path. If aRoot is a URL, then its path portion\n * is updated with the result and aRoot is returned. Otherwise the result\n * is returned.\n * - If aPath is absolute, the result is aPath.\n * - Otherwise the two paths are joined with a slash.\n * - Joining for example 'http://' and 'www.example.com' is also supported.\n */\nfunction join(aRoot, aPath) {\n if (aRoot === \"\") {\n aRoot = \".\";\n }\n if (aPath === \"\") {\n aPath = \".\";\n }\n var aPathUrl = urlParse(aPath);\n var aRootUrl = urlParse(aRoot);\n if (aRootUrl) {\n aRoot = aRootUrl.path || '/';\n }\n\n // `join(foo, '//www.example.org')`\n if (aPathUrl && !aPathUrl.scheme) {\n if (aRootUrl) {\n aPathUrl.scheme = aRootUrl.scheme;\n }\n return urlGenerate(aPathUrl);\n }\n\n if (aPathUrl || aPath.match(dataUrlRegexp)) {\n return aPath;\n }\n\n // `join('http://', 'www.example.com')`\n if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {\n aRootUrl.host = aPath;\n return urlGenerate(aRootUrl);\n }\n\n var joined = aPath.charAt(0) === '/'\n ? aPath\n : normalize(aRoot.replace(/\\/+$/, '') + '/' + aPath);\n\n if (aRootUrl) {\n aRootUrl.path = joined;\n return urlGenerate(aRootUrl);\n }\n return joined;\n}\nexports.join = join;\n\nexports.isAbsolute = function (aPath) {\n return aPath.charAt(0) === '/' || !!aPath.match(urlRegexp);\n};\n\n/**\n * Make a path relative to a URL or another path.\n *\n * @param aRoot The root path or URL.\n * @param aPath The path or URL to be made relative to aRoot.\n */\nfunction relative(aRoot, aPath) {\n if (aRoot === \"\") {\n aRoot = \".\";\n }\n\n aRoot = aRoot.replace(/\\/$/, '');\n\n // It is possible for the path to be above the root. In this case, simply\n // checking whether the root is a prefix of the path won't work. Instead, we\n // need to remove components from the root one by one, until either we find\n // a prefix that fits, or we run out of components to remove.\n var level = 0;\n while (aPath.indexOf(aRoot + '/') !== 0) {\n var index = aRoot.lastIndexOf(\"/\");\n if (index < 0) {\n return aPath;\n }\n\n // If the only part of the root that is left is the scheme (i.e. http://,\n // file:///, etc.), one or more slashes (/), or simply nothing at all, we\n // have exhausted all components, so the path is not relative to the root.\n aRoot = aRoot.slice(0, index);\n if (aRoot.match(/^([^\\/]+:\\/)?\\/*$/)) {\n return aPath;\n }\n\n ++level;\n }\n\n // Make sure we add a \"../\" for each component we removed from the root.\n return Array(level + 1).join(\"../\") + aPath.substr(aRoot.length + 1);\n}\nexports.relative = relative;\n\nvar supportsNullProto = (function () {\n var obj = Object.create(null);\n return !('__proto__' in obj);\n}());\n\nfunction identity (s) {\n return s;\n}\n\n/**\n * Because behavior goes wacky when you set `__proto__` on objects, we\n * have to prefix all the strings in our set with an arbitrary character.\n *\n * See https://github.com/mozilla/source-map/pull/31 and\n * https://github.com/mozilla/source-map/issues/30\n *\n * @param String aStr\n */\nfunction toSetString(aStr) {\n if (isProtoString(aStr)) {\n return '$' + aStr;\n }\n\n return aStr;\n}\nexports.toSetString = supportsNullProto ? identity : toSetString;\n\nfunction fromSetString(aStr) {\n if (isProtoString(aStr)) {\n return aStr.slice(1);\n }\n\n return aStr;\n}\nexports.fromSetString = supportsNullProto ? identity : fromSetString;\n\nfunction isProtoString(s) {\n if (!s) {\n return false;\n }\n\n var length = s.length;\n\n if (length < 9 /* \"__proto__\".length */) {\n return false;\n }\n\n if (s.charCodeAt(length - 1) !== 95 /* '_' */ ||\n s.charCodeAt(length - 2) !== 95 /* '_' */ ||\n s.charCodeAt(length - 3) !== 111 /* 'o' */ ||\n s.charCodeAt(length - 4) !== 116 /* 't' */ ||\n s.charCodeAt(length - 5) !== 111 /* 'o' */ ||\n s.charCodeAt(length - 6) !== 114 /* 'r' */ ||\n s.charCodeAt(length - 7) !== 112 /* 'p' */ ||\n s.charCodeAt(length - 8) !== 95 /* '_' */ ||\n s.charCodeAt(length - 9) !== 95 /* '_' */) {\n return false;\n }\n\n for (var i = length - 10; i >= 0; i--) {\n if (s.charCodeAt(i) !== 36 /* '$' */) {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * Comparator between two mappings where the original positions are compared.\n *\n * Optionally pass in `true` as `onlyCompareGenerated` to consider two\n * mappings with the same original source/line/column, but different generated\n * line and column the same. Useful when searching for a mapping with a\n * stubbed out mapping.\n */\nfunction compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {\n var cmp = mappingA.source - mappingB.source;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalLine - mappingB.originalLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalColumn - mappingB.originalColumn;\n if (cmp !== 0 || onlyCompareOriginal) {\n return cmp;\n }\n\n cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.generatedLine - mappingB.generatedLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n return mappingA.name - mappingB.name;\n}\nexports.compareByOriginalPositions = compareByOriginalPositions;\n\n/**\n * Comparator between two mappings with deflated source and name indices where\n * the generated positions are compared.\n *\n * Optionally pass in `true` as `onlyCompareGenerated` to consider two\n * mappings with the same generated line and column, but different\n * source/name/original line and column the same. Useful when searching for a\n * mapping with a stubbed out mapping.\n */\nfunction compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {\n var cmp = mappingA.generatedLine - mappingB.generatedLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n if (cmp !== 0 || onlyCompareGenerated) {\n return cmp;\n }\n\n cmp = mappingA.source - mappingB.source;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalLine - mappingB.originalLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalColumn - mappingB.originalColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n return mappingA.name - mappingB.name;\n}\nexports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;\n\nfunction strcmp(aStr1, aStr2) {\n if (aStr1 === aStr2) {\n return 0;\n }\n\n if (aStr1 > aStr2) {\n return 1;\n }\n\n return -1;\n}\n\n/**\n * Comparator between two mappings with inflated source and name strings where\n * the generated positions are compared.\n */\nfunction compareByGeneratedPositionsInflated(mappingA, mappingB) {\n var cmp = mappingA.generatedLine - mappingB.generatedLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = strcmp(mappingA.source, mappingB.source);\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalLine - mappingB.originalLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalColumn - mappingB.originalColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n return strcmp(mappingA.name, mappingB.name);\n}\nexports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;\n","/*\n * Copyright 2009-2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE.txt or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\nexports.SourceMapGenerator = require('./lib/source-map-generator').SourceMapGenerator;\nexports.SourceMapConsumer = require('./lib/source-map-consumer').SourceMapConsumer;\nexports.SourceNode = require('./lib/source-node').SourceNode;\n","'use strict';\n\nmodule.exports = (string, separator) => {\n\tif (!(typeof string === 'string' && typeof separator === 'string')) {\n\t\tthrow new TypeError('Expected the arguments to be of type `string`');\n\t}\n\n\tif (separator === '') {\n\t\treturn [string];\n\t}\n\n\tconst separatorIndex = string.indexOf(separator);\n\n\tif (separatorIndex === -1) {\n\t\treturn [string];\n\t}\n\n\treturn [\n\t\tstring.slice(0, separatorIndex),\n\t\tstring.slice(separatorIndex + separator.length)\n\t];\n};\n","/* global window, exports, define */\n\n!function() {\n 'use strict'\n\n var re = {\n not_string: /[^s]/,\n not_bool: /[^t]/,\n not_type: /[^T]/,\n not_primitive: /[^v]/,\n number: /[diefg]/,\n numeric_arg: /[bcdiefguxX]/,\n json: /[j]/,\n not_json: /[^j]/,\n text: /^[^\\x25]+/,\n modulo: /^\\x25{2}/,\n placeholder: /^\\x25(?:([1-9]\\d*)\\$|\\(([^)]+)\\))?(\\+)?(0|'[^$])?(-)?(\\d+)?(?:\\.(\\d+))?([b-gijostTuvxX])/,\n key: /^([a-z_][a-z_\\d]*)/i,\n key_access: /^\\.([a-z_][a-z_\\d]*)/i,\n index_access: /^\\[(\\d+)\\]/,\n sign: /^[+-]/\n }\n\n function sprintf(key) {\n // `arguments` is not an array, but should be fine for this call\n return sprintf_format(sprintf_parse(key), arguments)\n }\n\n function vsprintf(fmt, argv) {\n return sprintf.apply(null, [fmt].concat(argv || []))\n }\n\n function sprintf_format(parse_tree, argv) {\n var cursor = 1, tree_length = parse_tree.length, arg, output = '', i, k, ph, pad, pad_character, pad_length, is_positive, sign\n for (i = 0; i < tree_length; i++) {\n if (typeof parse_tree[i] === 'string') {\n output += parse_tree[i]\n }\n else if (typeof parse_tree[i] === 'object') {\n ph = parse_tree[i] // convenience purposes only\n if (ph.keys) { // keyword argument\n arg = argv[cursor]\n for (k = 0; k < ph.keys.length; k++) {\n if (arg == undefined) {\n throw new Error(sprintf('[sprintf] Cannot access property \"%s\" of undefined value \"%s\"', ph.keys[k], ph.keys[k-1]))\n }\n arg = arg[ph.keys[k]]\n }\n }\n else if (ph.param_no) { // positional argument (explicit)\n arg = argv[ph.param_no]\n }\n else { // positional argument (implicit)\n arg = argv[cursor++]\n }\n\n if (re.not_type.test(ph.type) && re.not_primitive.test(ph.type) && arg instanceof Function) {\n arg = arg()\n }\n\n if (re.numeric_arg.test(ph.type) && (typeof arg !== 'number' && isNaN(arg))) {\n throw new TypeError(sprintf('[sprintf] expecting number but found %T', arg))\n }\n\n if (re.number.test(ph.type)) {\n is_positive = arg >= 0\n }\n\n switch (ph.type) {\n case 'b':\n arg = parseInt(arg, 10).toString(2)\n break\n case 'c':\n arg = String.fromCharCode(parseInt(arg, 10))\n break\n case 'd':\n case 'i':\n arg = parseInt(arg, 10)\n break\n case 'j':\n arg = JSON.stringify(arg, null, ph.width ? parseInt(ph.width) : 0)\n break\n case 'e':\n arg = ph.precision ? parseFloat(arg).toExponential(ph.precision) : parseFloat(arg).toExponential()\n break\n case 'f':\n arg = ph.precision ? parseFloat(arg).toFixed(ph.precision) : parseFloat(arg)\n break\n case 'g':\n arg = ph.precision ? String(Number(arg.toPrecision(ph.precision))) : parseFloat(arg)\n break\n case 'o':\n arg = (parseInt(arg, 10) >>> 0).toString(8)\n break\n case 's':\n arg = String(arg)\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 't':\n arg = String(!!arg)\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'T':\n arg = Object.prototype.toString.call(arg).slice(8, -1).toLowerCase()\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'u':\n arg = parseInt(arg, 10) >>> 0\n break\n case 'v':\n arg = arg.valueOf()\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'x':\n arg = (parseInt(arg, 10) >>> 0).toString(16)\n break\n case 'X':\n arg = (parseInt(arg, 10) >>> 0).toString(16).toUpperCase()\n break\n }\n if (re.json.test(ph.type)) {\n output += arg\n }\n else {\n if (re.number.test(ph.type) && (!is_positive || ph.sign)) {\n sign = is_positive ? '+' : '-'\n arg = arg.toString().replace(re.sign, '')\n }\n else {\n sign = ''\n }\n pad_character = ph.pad_char ? ph.pad_char === '0' ? '0' : ph.pad_char.charAt(1) : ' '\n pad_length = ph.width - (sign + arg).length\n pad = ph.width ? (pad_length > 0 ? pad_character.repeat(pad_length) : '') : ''\n output += ph.align ? sign + arg + pad : (pad_character === '0' ? sign + pad + arg : pad + sign + arg)\n }\n }\n }\n return output\n }\n\n var sprintf_cache = Object.create(null)\n\n function sprintf_parse(fmt) {\n if (sprintf_cache[fmt]) {\n return sprintf_cache[fmt]\n }\n\n var _fmt = fmt, match, parse_tree = [], arg_names = 0\n while (_fmt) {\n if ((match = re.text.exec(_fmt)) !== null) {\n parse_tree.push(match[0])\n }\n else if ((match = re.modulo.exec(_fmt)) !== null) {\n parse_tree.push('%')\n }\n else if ((match = re.placeholder.exec(_fmt)) !== null) {\n if (match[2]) {\n arg_names |= 1\n var field_list = [], replacement_field = match[2], field_match = []\n if ((field_match = re.key.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') {\n if ((field_match = re.key_access.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n }\n else if ((field_match = re.index_access.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n }\n else {\n throw new SyntaxError('[sprintf] failed to parse named argument key')\n }\n }\n }\n else {\n throw new SyntaxError('[sprintf] failed to parse named argument key')\n }\n match[2] = field_list\n }\n else {\n arg_names |= 2\n }\n if (arg_names === 3) {\n throw new Error('[sprintf] mixing positional and named placeholders is not (yet) supported')\n }\n\n parse_tree.push(\n {\n placeholder: match[0],\n param_no: match[1],\n keys: match[2],\n sign: match[3],\n pad_char: match[4],\n align: match[5],\n width: match[6],\n precision: match[7],\n type: match[8]\n }\n )\n }\n else {\n throw new SyntaxError('[sprintf] unexpected placeholder')\n }\n _fmt = _fmt.substring(match[0].length)\n }\n return sprintf_cache[fmt] = parse_tree\n }\n\n /**\n * export to either browser or node.js\n */\n /* eslint-disable quote-props */\n if (typeof exports !== 'undefined') {\n exports['sprintf'] = sprintf\n exports['vsprintf'] = vsprintf\n }\n if (typeof window !== 'undefined') {\n window['sprintf'] = sprintf\n window['vsprintf'] = vsprintf\n\n if (typeof define === 'function' && define['amd']) {\n define(function() {\n return {\n 'sprintf': sprintf,\n 'vsprintf': vsprintf\n }\n })\n }\n }\n /* eslint-enable quote-props */\n}(); // eslint-disable-line\n","(function(root, factory) {\n 'use strict';\n // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.\n\n /* istanbul ignore next */\n if (typeof define === 'function' && define.amd) {\n define('stack-generator', ['stackframe'], factory);\n } else if (typeof exports === 'object') {\n module.exports = factory(require('stackframe'));\n } else {\n root.StackGenerator = factory(root.StackFrame);\n }\n}(this, function(StackFrame) {\n return {\n backtrace: function StackGenerator$$backtrace(opts) {\n var stack = [];\n var maxStackSize = 10;\n\n if (typeof opts === 'object' && typeof opts.maxStackSize === 'number') {\n maxStackSize = opts.maxStackSize;\n }\n\n var curr = arguments.callee;\n while (curr && stack.length < maxStackSize && curr['arguments']) {\n // Allow V8 optimizations\n var args = new Array(curr['arguments'].length);\n for (var i = 0; i < args.length; ++i) {\n args[i] = curr['arguments'][i];\n }\n if (/function(?:\\s+([\\w$]+))+\\s*\\(/.test(curr.toString())) {\n stack.push(new StackFrame({functionName: RegExp.$1 || undefined, args: args}));\n } else {\n stack.push(new StackFrame({args: args}));\n }\n\n try {\n curr = curr.caller;\n } catch (e) {\n break;\n }\n }\n return stack;\n }\n };\n}));\n","(function(root, factory) {\n 'use strict';\n // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.\n\n /* istanbul ignore next */\n if (typeof define === 'function' && define.amd) {\n define('stackframe', [], factory);\n } else if (typeof exports === 'object') {\n module.exports = factory();\n } else {\n root.StackFrame = factory();\n }\n}(this, function() {\n 'use strict';\n function _isNumber(n) {\n return !isNaN(parseFloat(n)) && isFinite(n);\n }\n\n function _capitalize(str) {\n return str.charAt(0).toUpperCase() + str.substring(1);\n }\n\n function _getter(p) {\n return function() {\n return this[p];\n };\n }\n\n var booleanProps = ['isConstructor', 'isEval', 'isNative', 'isToplevel'];\n var numericProps = ['columnNumber', 'lineNumber'];\n var stringProps = ['fileName', 'functionName', 'source'];\n var arrayProps = ['args'];\n var objectProps = ['evalOrigin'];\n\n var props = booleanProps.concat(numericProps, stringProps, arrayProps, objectProps);\n\n function StackFrame(obj) {\n if (!obj) return;\n for (var i = 0; i < props.length; i++) {\n if (obj[props[i]] !== undefined) {\n this['set' + _capitalize(props[i])](obj[props[i]]);\n }\n }\n }\n\n StackFrame.prototype = {\n getArgs: function() {\n return this.args;\n },\n setArgs: function(v) {\n if (Object.prototype.toString.call(v) !== '[object Array]') {\n throw new TypeError('Args must be an Array');\n }\n this.args = v;\n },\n\n getEvalOrigin: function() {\n return this.evalOrigin;\n },\n setEvalOrigin: function(v) {\n if (v instanceof StackFrame) {\n this.evalOrigin = v;\n } else if (v instanceof Object) {\n this.evalOrigin = new StackFrame(v);\n } else {\n throw new TypeError('Eval Origin must be an Object or StackFrame');\n }\n },\n\n toString: function() {\n var fileName = this.getFileName() || '';\n var lineNumber = this.getLineNumber() || '';\n var columnNumber = this.getColumnNumber() || '';\n var functionName = this.getFunctionName() || '';\n if (this.getIsEval()) {\n if (fileName) {\n return '[eval] (' + fileName + ':' + lineNumber + ':' + columnNumber + ')';\n }\n return '[eval]:' + lineNumber + ':' + columnNumber;\n }\n if (functionName) {\n return functionName + ' (' + fileName + ':' + lineNumber + ':' + columnNumber + ')';\n }\n return fileName + ':' + lineNumber + ':' + columnNumber;\n }\n };\n\n StackFrame.fromString = function StackFrame$$fromString(str) {\n var argsStartIndex = str.indexOf('(');\n var argsEndIndex = str.lastIndexOf(')');\n\n var functionName = str.substring(0, argsStartIndex);\n var args = str.substring(argsStartIndex + 1, argsEndIndex).split(',');\n var locationString = str.substring(argsEndIndex + 1);\n\n if (locationString.indexOf('@') === 0) {\n var parts = /@(.+?)(?::(\\d+))?(?::(\\d+))?$/.exec(locationString, '');\n var fileName = parts[1];\n var lineNumber = parts[2];\n var columnNumber = parts[3];\n }\n\n return new StackFrame({\n functionName: functionName,\n args: args || undefined,\n fileName: fileName,\n lineNumber: lineNumber || undefined,\n columnNumber: columnNumber || undefined\n });\n };\n\n for (var i = 0; i < booleanProps.length; i++) {\n StackFrame.prototype['get' + _capitalize(booleanProps[i])] = _getter(booleanProps[i]);\n StackFrame.prototype['set' + _capitalize(booleanProps[i])] = (function(p) {\n return function(v) {\n this[p] = Boolean(v);\n };\n })(booleanProps[i]);\n }\n\n for (var j = 0; j < numericProps.length; j++) {\n StackFrame.prototype['get' + _capitalize(numericProps[j])] = _getter(numericProps[j]);\n StackFrame.prototype['set' + _capitalize(numericProps[j])] = (function(p) {\n return function(v) {\n if (!_isNumber(v)) {\n throw new TypeError(p + ' must be a Number');\n }\n this[p] = Number(v);\n };\n })(numericProps[j]);\n }\n\n for (var k = 0; k < stringProps.length; k++) {\n StackFrame.prototype['get' + _capitalize(stringProps[k])] = _getter(stringProps[k]);\n StackFrame.prototype['set' + _capitalize(stringProps[k])] = (function(p) {\n return function(v) {\n this[p] = String(v);\n };\n })(stringProps[k]);\n }\n\n return StackFrame;\n}));\n","(function(root, factory) {\n 'use strict';\n // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.\n\n /* istanbul ignore next */\n if (typeof define === 'function' && define.amd) {\n define('stacktrace-gps', ['source-map', 'stackframe'], factory);\n } else if (typeof exports === 'object') {\n module.exports = factory(require('source-map/lib/source-map-consumer'), require('stackframe'));\n } else {\n root.StackTraceGPS = factory(root.SourceMap || root.sourceMap, root.StackFrame);\n }\n}(this, function(SourceMap, StackFrame) {\n 'use strict';\n\n /**\n * Make a X-Domain request to url and callback.\n *\n * @param {String} url\n * @returns {Promise} with response text if fulfilled\n */\n function _xdr(url) {\n return new Promise(function(resolve, reject) {\n var req = new XMLHttpRequest();\n req.open('get', url);\n req.onerror = reject;\n req.onreadystatechange = function onreadystatechange() {\n if (req.readyState === 4) {\n if ((req.status >= 200 && req.status < 300) ||\n (url.substr(0, 7) === 'file://' && req.responseText)) {\n resolve(req.responseText);\n } else {\n reject(new Error('HTTP status: ' + req.status + ' retrieving ' + url));\n }\n }\n };\n req.send();\n });\n\n }\n\n /**\n * Convert a Base64-encoded string into its original representation.\n * Used for inline sourcemaps.\n *\n * @param {String} b64str Base-64 encoded string\n * @returns {String} original representation of the base64-encoded string.\n */\n function _atob(b64str) {\n if (typeof window !== 'undefined' && window.atob) {\n return window.atob(b64str);\n } else {\n throw new Error('You must supply a polyfill for window.atob in this environment');\n }\n }\n\n function _parseJson(string) {\n if (typeof JSON !== 'undefined' && JSON.parse) {\n return JSON.parse(string);\n } else {\n throw new Error('You must supply a polyfill for JSON.parse in this environment');\n }\n }\n\n function _findFunctionName(source, lineNumber/*, columnNumber*/) {\n var syntaxes = [\n // {name} = function ({args}) TODO args capture\n /['\"]?([$_A-Za-z][$_A-Za-z0-9]*)['\"]?\\s*[:=]\\s*function\\b/,\n // function {name}({args}) m[1]=name m[2]=args\n /function\\s+([^('\"`]*?)\\s*\\(([^)]*)\\)/,\n // {name} = eval()\n /['\"]?([$_A-Za-z][$_A-Za-z0-9]*)['\"]?\\s*[:=]\\s*(?:eval|new Function)\\b/,\n // fn_name() {\n /\\b(?!(?:if|for|switch|while|with|catch)\\b)(?:(?:static)\\s+)?(\\S+)\\s*\\(.*?\\)\\s*\\{/,\n // {name} = () => {\n /['\"]?([$_A-Za-z][$_A-Za-z0-9]*)['\"]?\\s*[:=]\\s*\\(.*?\\)\\s*=>/\n ];\n var lines = source.split('\\n');\n\n // Walk backwards in the source lines until we find the line which matches one of the patterns above\n var code = '';\n var maxLines = Math.min(lineNumber, 20);\n for (var i = 0; i < maxLines; ++i) {\n // lineNo is 1-based, source[] is 0-based\n var line = lines[lineNumber - i - 1];\n var commentPos = line.indexOf('//');\n if (commentPos >= 0) {\n line = line.substr(0, commentPos);\n }\n\n if (line) {\n code = line + code;\n var len = syntaxes.length;\n for (var index = 0; index < len; index++) {\n var m = syntaxes[index].exec(code);\n if (m && m[1]) {\n return m[1];\n }\n }\n }\n }\n return undefined;\n }\n\n function _ensureSupportedEnvironment() {\n if (typeof Object.defineProperty !== 'function' || typeof Object.create !== 'function') {\n throw new Error('Unable to consume source maps in older browsers');\n }\n }\n\n function _ensureStackFrameIsLegit(stackframe) {\n if (typeof stackframe !== 'object') {\n throw new TypeError('Given StackFrame is not an object');\n } else if (typeof stackframe.fileName !== 'string') {\n throw new TypeError('Given file name is not a String');\n } else if (typeof stackframe.lineNumber !== 'number' ||\n stackframe.lineNumber % 1 !== 0 ||\n stackframe.lineNumber < 1) {\n throw new TypeError('Given line number must be a positive integer');\n } else if (typeof stackframe.columnNumber !== 'number' ||\n stackframe.columnNumber % 1 !== 0 ||\n stackframe.columnNumber < 0) {\n throw new TypeError('Given column number must be a non-negative integer');\n }\n return true;\n }\n\n function _findSourceMappingURL(source) {\n var sourceMappingUrlRegExp = /\\/\\/[#@] ?sourceMappingURL=([^\\s'\"]+)\\s*$/mg;\n var lastSourceMappingUrl;\n var matchSourceMappingUrl;\n // eslint-disable-next-line no-cond-assign\n while (matchSourceMappingUrl = sourceMappingUrlRegExp.exec(source)) {\n lastSourceMappingUrl = matchSourceMappingUrl[1];\n }\n if (lastSourceMappingUrl) {\n return lastSourceMappingUrl;\n } else {\n throw new Error('sourceMappingURL not found');\n }\n }\n\n function _extractLocationInfoFromSourceMapSource(stackframe, sourceMapConsumer, sourceCache) {\n return new Promise(function(resolve, reject) {\n var loc = sourceMapConsumer.originalPositionFor({\n line: stackframe.lineNumber,\n column: stackframe.columnNumber\n });\n\n if (loc.source) {\n // cache mapped sources\n var mappedSource = sourceMapConsumer.sourceContentFor(loc.source);\n if (mappedSource) {\n sourceCache[loc.source] = mappedSource;\n }\n\n resolve(\n // given stackframe and source location, update stackframe\n new StackFrame({\n functionName: loc.name || stackframe.functionName,\n args: stackframe.args,\n fileName: loc.source,\n lineNumber: loc.line,\n columnNumber: loc.column\n }));\n } else {\n reject(new Error('Could not get original source for given stackframe and source map'));\n }\n });\n }\n\n /**\n * @constructor\n * @param {Object} opts\n * opts.sourceCache = {url: \"Source String\"} => preload source cache\n * opts.sourceMapConsumerCache = {/path/file.js.map: SourceMapConsumer}\n * opts.offline = True to prevent network requests.\n * Best effort without sources or source maps.\n * opts.ajax = Promise returning function to make X-Domain requests\n */\n return function StackTraceGPS(opts) {\n if (!(this instanceof StackTraceGPS)) {\n return new StackTraceGPS(opts);\n }\n opts = opts || {};\n\n this.sourceCache = opts.sourceCache || {};\n this.sourceMapConsumerCache = opts.sourceMapConsumerCache || {};\n\n this.ajax = opts.ajax || _xdr;\n\n this._atob = opts.atob || _atob;\n\n this._get = function _get(location) {\n return new Promise(function(resolve, reject) {\n var isDataUrl = location.substr(0, 5) === 'data:';\n if (this.sourceCache[location]) {\n resolve(this.sourceCache[location]);\n } else if (opts.offline && !isDataUrl) {\n reject(new Error('Cannot make network requests in offline mode'));\n } else {\n if (isDataUrl) {\n // data URLs can have parameters.\n // see http://tools.ietf.org/html/rfc2397\n var supportedEncodingRegexp =\n /^data:application\\/json;([\\w=:\"-]+;)*base64,/;\n var match = location.match(supportedEncodingRegexp);\n if (match) {\n var sourceMapStart = match[0].length;\n var encodedSource = location.substr(sourceMapStart);\n var source = this._atob(encodedSource);\n this.sourceCache[location] = source;\n resolve(source);\n } else {\n reject(new Error('The encoding of the inline sourcemap is not supported'));\n }\n } else {\n var xhrPromise = this.ajax(location, {method: 'get'});\n // Cache the Promise to prevent duplicate in-flight requests\n this.sourceCache[location] = xhrPromise;\n xhrPromise.then(resolve, reject);\n }\n }\n }.bind(this));\n };\n\n /**\n * Creating SourceMapConsumers is expensive, so this wraps the creation of a\n * SourceMapConsumer in a per-instance cache.\n *\n * @param {String} sourceMappingURL = URL to fetch source map from\n * @param {String} defaultSourceRoot = Default source root for source map if undefined\n * @returns {Promise} that resolves a SourceMapConsumer\n */\n this._getSourceMapConsumer = function _getSourceMapConsumer(sourceMappingURL, defaultSourceRoot) {\n return new Promise(function(resolve) {\n if (this.sourceMapConsumerCache[sourceMappingURL]) {\n resolve(this.sourceMapConsumerCache[sourceMappingURL]);\n } else {\n var sourceMapConsumerPromise = new Promise(function(resolve, reject) {\n return this._get(sourceMappingURL).then(function(sourceMapSource) {\n if (typeof sourceMapSource === 'string') {\n sourceMapSource = _parseJson(sourceMapSource.replace(/^\\)\\]\\}'/, ''));\n }\n if (typeof sourceMapSource.sourceRoot === 'undefined') {\n sourceMapSource.sourceRoot = defaultSourceRoot;\n }\n\n resolve(new SourceMap.SourceMapConsumer(sourceMapSource));\n }, reject);\n }.bind(this));\n this.sourceMapConsumerCache[sourceMappingURL] = sourceMapConsumerPromise;\n resolve(sourceMapConsumerPromise);\n }\n }.bind(this));\n };\n\n /**\n * Given a StackFrame, enhance function name and use source maps for a\n * better StackFrame.\n *\n * @param {StackFrame} stackframe object\n * @returns {Promise} that resolves with with source-mapped StackFrame\n */\n this.pinpoint = function StackTraceGPS$$pinpoint(stackframe) {\n return new Promise(function(resolve, reject) {\n this.getMappedLocation(stackframe).then(function(mappedStackFrame) {\n function resolveMappedStackFrame() {\n resolve(mappedStackFrame);\n }\n\n this.findFunctionName(mappedStackFrame)\n .then(resolve, resolveMappedStackFrame)\n // eslint-disable-next-line no-unexpected-multiline\n ['catch'](resolveMappedStackFrame);\n }.bind(this), reject);\n }.bind(this));\n };\n\n /**\n * Given a StackFrame, guess function name from location information.\n *\n * @param {StackFrame} stackframe\n * @returns {Promise} that resolves with enhanced StackFrame.\n */\n this.findFunctionName = function StackTraceGPS$$findFunctionName(stackframe) {\n return new Promise(function(resolve, reject) {\n _ensureStackFrameIsLegit(stackframe);\n this._get(stackframe.fileName).then(function getSourceCallback(source) {\n var lineNumber = stackframe.lineNumber;\n var columnNumber = stackframe.columnNumber;\n var guessedFunctionName = _findFunctionName(source, lineNumber, columnNumber);\n // Only replace functionName if we found something\n if (guessedFunctionName) {\n resolve(new StackFrame({\n functionName: guessedFunctionName,\n args: stackframe.args,\n fileName: stackframe.fileName,\n lineNumber: lineNumber,\n columnNumber: columnNumber\n }));\n } else {\n resolve(stackframe);\n }\n }, reject)['catch'](reject);\n }.bind(this));\n };\n\n /**\n * Given a StackFrame, seek source-mapped location and return new enhanced StackFrame.\n *\n * @param {StackFrame} stackframe\n * @returns {Promise} that resolves with enhanced StackFrame.\n */\n this.getMappedLocation = function StackTraceGPS$$getMappedLocation(stackframe) {\n return new Promise(function(resolve, reject) {\n _ensureSupportedEnvironment();\n _ensureStackFrameIsLegit(stackframe);\n\n var sourceCache = this.sourceCache;\n var fileName = stackframe.fileName;\n this._get(fileName).then(function(source) {\n var sourceMappingURL = _findSourceMappingURL(source);\n var isDataUrl = sourceMappingURL.substr(0, 5) === 'data:';\n var defaultSourceRoot = fileName.substring(0, fileName.lastIndexOf('/') + 1);\n\n if (sourceMappingURL[0] !== '/' && !isDataUrl && !(/^https?:\\/\\/|^\\/\\//i).test(sourceMappingURL)) {\n sourceMappingURL = defaultSourceRoot + sourceMappingURL;\n }\n\n return this._getSourceMapConsumer(sourceMappingURL, defaultSourceRoot)\n .then(function(sourceMapConsumer) {\n return _extractLocationInfoFromSourceMapSource(stackframe, sourceMapConsumer, sourceCache)\n .then(resolve)['catch'](function() {\n resolve(stackframe);\n });\n });\n }.bind(this), reject)['catch'](reject);\n }.bind(this));\n };\n };\n}));\n","(function(root, factory) {\n 'use strict';\n // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.\n\n /* istanbul ignore next */\n if (typeof define === 'function' && define.amd) {\n define('stacktrace', ['error-stack-parser', 'stack-generator', 'stacktrace-gps'], factory);\n } else if (typeof exports === 'object') {\n module.exports = factory(require('error-stack-parser'), require('stack-generator'), require('stacktrace-gps'));\n } else {\n root.StackTrace = factory(root.ErrorStackParser, root.StackGenerator, root.StackTraceGPS);\n }\n}(this, function StackTrace(ErrorStackParser, StackGenerator, StackTraceGPS) {\n var _options = {\n filter: function(stackframe) {\n // Filter out stackframes for this library by default\n return (stackframe.functionName || '').indexOf('StackTrace$$') === -1 &&\n (stackframe.functionName || '').indexOf('ErrorStackParser$$') === -1 &&\n (stackframe.functionName || '').indexOf('StackTraceGPS$$') === -1 &&\n (stackframe.functionName || '').indexOf('StackGenerator$$') === -1;\n },\n sourceCache: {}\n };\n\n var _generateError = function StackTrace$$GenerateError() {\n try {\n // Error must be thrown to get stack in IE\n throw new Error();\n } catch (err) {\n return err;\n }\n };\n\n /**\n * Merge 2 given Objects. If a conflict occurs the second object wins.\n * Does not do deep merges.\n *\n * @param {Object} first base object\n * @param {Object} second overrides\n * @returns {Object} merged first and second\n * @private\n */\n function _merge(first, second) {\n var target = {};\n\n [first, second].forEach(function(obj) {\n for (var prop in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, prop)) {\n target[prop] = obj[prop];\n }\n }\n return target;\n });\n\n return target;\n }\n\n function _isShapedLikeParsableError(err) {\n return err.stack || err['opera#sourceloc'];\n }\n\n function _filtered(stackframes, filter) {\n if (typeof filter === 'function') {\n return stackframes.filter(filter);\n }\n return stackframes;\n }\n\n return {\n /**\n * Get a backtrace from invocation point.\n *\n * @param {Object} opts\n * @returns {Array} of StackFrame\n */\n get: function StackTrace$$get(opts) {\n var err = _generateError();\n return _isShapedLikeParsableError(err) ? this.fromError(err, opts) : this.generateArtificially(opts);\n },\n\n /**\n * Get a backtrace from invocation point.\n * IMPORTANT: Does not handle source maps or guess function names!\n *\n * @param {Object} opts\n * @returns {Array} of StackFrame\n */\n getSync: function StackTrace$$getSync(opts) {\n opts = _merge(_options, opts);\n var err = _generateError();\n var stack = _isShapedLikeParsableError(err) ? ErrorStackParser.parse(err) : StackGenerator.backtrace(opts);\n return _filtered(stack, opts.filter);\n },\n\n /**\n * Given an error object, parse it.\n *\n * @param {Error} error object\n * @param {Object} opts\n * @returns {Promise} for Array[StackFrame}\n */\n fromError: function StackTrace$$fromError(error, opts) {\n opts = _merge(_options, opts);\n var gps = new StackTraceGPS(opts);\n return new Promise(function(resolve) {\n var stackframes = _filtered(ErrorStackParser.parse(error), opts.filter);\n resolve(Promise.all(stackframes.map(function(sf) {\n return new Promise(function(resolve) {\n function resolveOriginal() {\n resolve(sf);\n }\n\n gps.pinpoint(sf).then(resolve, resolveOriginal)['catch'](resolveOriginal);\n });\n })));\n }.bind(this));\n },\n\n /**\n * Use StackGenerator to generate a backtrace.\n *\n * @param {Object} opts\n * @returns {Promise} of Array[StackFrame]\n */\n generateArtificially: function StackTrace$$generateArtificially(opts) {\n opts = _merge(_options, opts);\n var stackFrames = StackGenerator.backtrace(opts);\n if (typeof opts.filter === 'function') {\n stackFrames = stackFrames.filter(opts.filter);\n }\n return Promise.resolve(stackFrames);\n },\n\n /**\n * Given a function, wrap it such that invocations trigger a callback that\n * is called with a stack trace.\n *\n * @param {Function} fn to be instrumented\n * @param {Function} callback function to call with a stack trace on invocation\n * @param {Function} errback optional function to call with error if unable to get stack trace.\n * @param {Object} thisArg optional context object (e.g. window)\n */\n instrument: function StackTrace$$instrument(fn, callback, errback, thisArg) {\n if (typeof fn !== 'function') {\n throw new Error('Cannot instrument non-function object');\n } else if (typeof fn.__stacktraceOriginalFn === 'function') {\n // Already instrumented, return given Function\n return fn;\n }\n\n var instrumented = function StackTrace$$instrumented() {\n try {\n this.get().then(callback, errback)['catch'](errback);\n return fn.apply(thisArg || this, arguments);\n } catch (e) {\n if (_isShapedLikeParsableError(e)) {\n this.fromError(e).then(callback, errback)['catch'](errback);\n }\n throw e;\n }\n }.bind(this);\n instrumented.__stacktraceOriginalFn = fn;\n\n return instrumented;\n },\n\n /**\n * Given a function that has been instrumented,\n * revert the function to it's original (non-instrumented) state.\n *\n * @param {Function} fn to de-instrument\n */\n deinstrument: function StackTrace$$deinstrument(fn) {\n if (typeof fn !== 'function') {\n throw new Error('Cannot de-instrument non-function object');\n } else if (typeof fn.__stacktraceOriginalFn === 'function') {\n return fn.__stacktraceOriginalFn;\n } else {\n // Function not instrumented, return original\n return fn;\n }\n },\n\n /**\n * Given an error message and Array of StackFrames, serialize and POST to given URL.\n *\n * @param {Array} stackframes\n * @param {String} url\n * @param {String} errorMsg\n * @param {Object} requestOptions\n */\n report: function StackTrace$$report(stackframes, url, errorMsg, requestOptions) {\n return new Promise(function(resolve, reject) {\n var req = new XMLHttpRequest();\n req.onerror = reject;\n req.onreadystatechange = function onreadystatechange() {\n if (req.readyState === 4) {\n if (req.status >= 200 && req.status < 400) {\n resolve(req.responseText);\n } else {\n reject(new Error('POST to ' + url + ' failed with status: ' + req.status));\n }\n }\n };\n req.open('post', url);\n\n // Set request headers\n req.setRequestHeader('Content-Type', 'application/json');\n if (requestOptions && typeof requestOptions.headers === 'object') {\n var headers = requestOptions.headers;\n for (var header in headers) {\n if (Object.prototype.hasOwnProperty.call(headers, header)) {\n req.setRequestHeader(header, headers[header]);\n }\n }\n }\n\n var reportPayload = {stack: stackframes};\n if (errorMsg !== undefined && errorMsg !== null) {\n reportPayload.message = errorMsg;\n }\n\n req.send(JSON.stringify(reportPayload));\n });\n }\n };\n}));\n","'use strict';\nmodule.exports = str => encodeURIComponent(str).replace(/[!'()*]/g, x => `%${x.charCodeAt(0).toString(16).toUpperCase()}`);\n","var camel2hyphen = function (str) {\n return str\n .replace(/[A-Z]/g, function (match) {\n return '-' + match.toLowerCase();\n })\n .toLowerCase();\n};\n\nmodule.exports = camel2hyphen;","// 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\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\n/**/\n\nvar isEncoding = Buffer.isEncoding || function (encoding) {\n encoding = '' + encoding;\n switch (encoding && encoding.toLowerCase()) {\n case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':\n return true;\n default:\n return false;\n }\n};\n\nfunction _normalizeEncoding(enc) {\n if (!enc) return 'utf8';\n var retried;\n while (true) {\n switch (enc) {\n case 'utf8':\n case 'utf-8':\n return 'utf8';\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return 'utf16le';\n case 'latin1':\n case 'binary':\n return 'latin1';\n case 'base64':\n case 'ascii':\n case 'hex':\n return enc;\n default:\n if (retried) return; // undefined\n enc = ('' + enc).toLowerCase();\n retried = true;\n }\n }\n};\n\n// Do not cache `Buffer.isEncoding` when checking encoding names as some\n// modules monkey-patch it to support additional encodings\nfunction normalizeEncoding(enc) {\n var nenc = _normalizeEncoding(enc);\n if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);\n return nenc || enc;\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters.\nexports.StringDecoder = StringDecoder;\nfunction StringDecoder(encoding) {\n this.encoding = normalizeEncoding(encoding);\n var nb;\n switch (this.encoding) {\n case 'utf16le':\n this.text = utf16Text;\n this.end = utf16End;\n nb = 4;\n break;\n case 'utf8':\n this.fillLast = utf8FillLast;\n nb = 4;\n break;\n case 'base64':\n this.text = base64Text;\n this.end = base64End;\n nb = 3;\n break;\n default:\n this.write = simpleWrite;\n this.end = simpleEnd;\n return;\n }\n this.lastNeed = 0;\n this.lastTotal = 0;\n this.lastChar = Buffer.allocUnsafe(nb);\n}\n\nStringDecoder.prototype.write = function (buf) {\n if (buf.length === 0) return '';\n var r;\n var i;\n if (this.lastNeed) {\n r = this.fillLast(buf);\n if (r === undefined) return '';\n i = this.lastNeed;\n this.lastNeed = 0;\n } else {\n i = 0;\n }\n if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);\n return r || '';\n};\n\nStringDecoder.prototype.end = utf8End;\n\n// Returns only complete characters in a Buffer\nStringDecoder.prototype.text = utf8Text;\n\n// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer\nStringDecoder.prototype.fillLast = function (buf) {\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);\n this.lastNeed -= buf.length;\n};\n\n// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a\n// continuation byte. If an invalid byte is detected, -2 is returned.\nfunction utf8CheckByte(byte) {\n if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;\n return byte >> 6 === 0x02 ? -1 : -2;\n}\n\n// Checks at most 3 bytes at the end of a Buffer in order to detect an\n// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)\n// needed to complete the UTF-8 character (if applicable) are returned.\nfunction utf8CheckIncomplete(self, buf, i) {\n var j = buf.length - 1;\n if (j < i) return 0;\n var nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 1;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 2;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) {\n if (nb === 2) nb = 0;else self.lastNeed = nb - 3;\n }\n return nb;\n }\n return 0;\n}\n\n// Validates as many continuation bytes for a multi-byte UTF-8 character as\n// needed or are available. If we see a non-continuation byte where we expect\n// one, we \"replace\" the validated continuation bytes we've seen so far with\n// a single UTF-8 replacement character ('\\ufffd'), to match v8's UTF-8 decoding\n// behavior. The continuation byte check is included three times in the case\n// where all of the continuation bytes for a character exist in the same buffer.\n// It is also done this way as a slight performance increase instead of using a\n// loop.\nfunction utf8CheckExtraBytes(self, buf, p) {\n if ((buf[0] & 0xC0) !== 0x80) {\n self.lastNeed = 0;\n return '\\ufffd';\n }\n if (self.lastNeed > 1 && buf.length > 1) {\n if ((buf[1] & 0xC0) !== 0x80) {\n self.lastNeed = 1;\n return '\\ufffd';\n }\n if (self.lastNeed > 2 && buf.length > 2) {\n if ((buf[2] & 0xC0) !== 0x80) {\n self.lastNeed = 2;\n return '\\ufffd';\n }\n }\n }\n}\n\n// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.\nfunction utf8FillLast(buf) {\n var p = this.lastTotal - this.lastNeed;\n var r = utf8CheckExtraBytes(this, buf, p);\n if (r !== undefined) return r;\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, p, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, p, 0, buf.length);\n this.lastNeed -= buf.length;\n}\n\n// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a\n// partial character, the character's bytes are buffered until the required\n// number of bytes are available.\nfunction utf8Text(buf, i) {\n var total = utf8CheckIncomplete(this, buf, i);\n if (!this.lastNeed) return buf.toString('utf8', i);\n this.lastTotal = total;\n var end = buf.length - (total - this.lastNeed);\n buf.copy(this.lastChar, 0, end);\n return buf.toString('utf8', i, end);\n}\n\n// For UTF-8, a replacement character is added when ending on a partial\n// character.\nfunction utf8End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + '\\ufffd';\n return r;\n}\n\n// UTF-16LE typically needs two bytes per character, but even if we have an even\n// number of bytes available, we need to check if we end on a leading/high\n// surrogate. In that case, we need to wait for the next two bytes in order to\n// decode the last character properly.\nfunction utf16Text(buf, i) {\n if ((buf.length - i) % 2 === 0) {\n var r = buf.toString('utf16le', i);\n if (r) {\n var c = r.charCodeAt(r.length - 1);\n if (c >= 0xD800 && c <= 0xDBFF) {\n this.lastNeed = 2;\n this.lastTotal = 4;\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n return r.slice(0, -1);\n }\n }\n return r;\n }\n this.lastNeed = 1;\n this.lastTotal = 2;\n this.lastChar[0] = buf[buf.length - 1];\n return buf.toString('utf16le', i, buf.length - 1);\n}\n\n// For UTF-16LE we do not explicitly append special replacement characters if we\n// end on a partial character, we simply let v8 handle that.\nfunction utf16End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) {\n var end = this.lastTotal - this.lastNeed;\n return r + this.lastChar.toString('utf16le', 0, end);\n }\n return r;\n}\n\nfunction base64Text(buf, i) {\n var n = (buf.length - i) % 3;\n if (n === 0) return buf.toString('base64', i);\n this.lastNeed = 3 - n;\n this.lastTotal = 3;\n if (n === 1) {\n this.lastChar[0] = buf[buf.length - 1];\n } else {\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n }\n return buf.toString('base64', i, buf.length - n);\n}\n\nfunction base64End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);\n return r;\n}\n\n// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)\nfunction simpleWrite(buf) {\n return buf.toString(this.encoding);\n}\n\nfunction simpleEnd(buf) {\n return buf && buf.length ? this.write(buf) : '';\n}","/* global window */\nimport ponyfill from './ponyfill.js';\n\nvar root;\n\nif (typeof self !== 'undefined') {\n root = self;\n} else if (typeof window !== 'undefined') {\n root = window;\n} else if (typeof global !== 'undefined') {\n root = global;\n} else if (typeof module !== 'undefined') {\n root = module;\n} else {\n root = Function('return this')();\n}\n\nvar result = ponyfill(root);\nexport default result;\n","export default function symbolObservablePonyfill(root) {\n\tvar result;\n\tvar Symbol = root.Symbol;\n\n\tif (typeof Symbol === 'function') {\n\t\tif (Symbol.observable) {\n\t\t\tresult = Symbol.observable;\n\t\t} else {\n\t\t\tresult = Symbol('observable');\n\t\t\tSymbol.observable = result;\n\t\t}\n\t} else {\n\t\tresult = '@@observable';\n\t}\n\n\treturn result;\n};\n","import { nativeFocus, KEYBORG_FOCUSIN, KEYBORG_FOCUSOUT, createKeyborg, disposeKeyborg } from 'keyborg';\n\n/*!\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\nconst TABSTER_ATTRIBUTE_NAME = \"data-tabster\";\nconst TABSTER_DUMMY_INPUT_ATTRIBUTE_NAME = \"data-tabster-dummy\";\nconst FOCUSABLE_SELECTOR = /*#__PURE__*/[\"a[href]\", \"button:not([disabled])\", \"input:not([disabled])\", \"select:not([disabled])\", \"textarea:not([disabled])\", \"*[tabindex]\", \"*[contenteditable]\", \"details > summary\", \"audio[controls]\", \"video[controls]\"].join(\", \");\nconst AsyncFocusSources = {\n EscapeGroupper: 1,\n Restorer: 2,\n Deloser: 3\n};\nconst ObservedElementAccessibilities = {\n Any: 0,\n Accessible: 1,\n Focusable: 2\n};\nconst RestoreFocusOrders = {\n History: 0,\n DeloserDefault: 1,\n RootDefault: 2,\n DeloserFirst: 3,\n RootFirst: 4\n};\nconst DeloserStrategies = {\n /**\r\n * If the focus is lost, the focus will be restored automatically using all available focus history.\r\n * This is the default strategy.\r\n */\n Auto: 0,\n\n /**\r\n * If the focus is lost from this Deloser instance, the focus will not be restored automatically.\r\n * The application might listen to the event and restore the focus manually.\r\n * But if it is lost from another Deloser instance, the history of this Deloser could be used finding\r\n * the element to focus.\r\n */\n Manual: 1\n};\nconst Visibilities = {\n Invisible: 0,\n PartiallyVisible: 1,\n Visible: 2\n};\nconst RestorerTypes = {\n Source: 0,\n Target: 1\n};\nconst MoverDirections = {\n Both: 0,\n Vertical: 1,\n Horizontal: 2,\n Grid: 3,\n GridLinear: 4 // Two-dimentional movement depending on the visual placement. Allows linear movement.\n\n};\nconst MoverKeys = {\n ArrowUp: 1,\n ArrowDown: 2,\n ArrowLeft: 3,\n ArrowRight: 4,\n PageUp: 5,\n PageDown: 6,\n Home: 7,\n End: 8\n};\nconst GroupperTabbabilities = {\n Unlimited: 0,\n Limited: 1,\n LimitedTrapFocus: 2 // The focus is limited as above, plus trapped when inside.\n\n};\nconst GroupperMoveFocusActions = {\n Enter: 1,\n Escape: 2\n};\nconst SysDummyInputsPositions = {\n Auto: 0,\n Inside: 1,\n Outside: 2 // Tabster will always place dummy inputs outside of the container.\n\n};\n\n/*!\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\nfunction getTabsterOnElement(tabster, element) {\n var _a;\n\n return (_a = tabster.storageEntry(element)) === null || _a === void 0 ? void 0 : _a.tabster;\n}\nfunction updateTabsterByAttribute(tabster, element, dispose) {\n var _a, _b;\n\n const newAttrValue = dispose || tabster._noop ? undefined : element.getAttribute(TABSTER_ATTRIBUTE_NAME);\n let entry = tabster.storageEntry(element);\n let newAttr;\n\n if (newAttrValue) {\n if (newAttrValue !== ((_a = entry === null || entry === void 0 ? void 0 : entry.attr) === null || _a === void 0 ? void 0 : _a.string)) {\n try {\n const newValue = JSON.parse(newAttrValue);\n\n if (typeof newValue !== \"object\") {\n throw new Error(`Value is not a JSON object, got '${newAttrValue}'.`);\n }\n\n newAttr = {\n string: newAttrValue,\n object: newValue\n };\n } catch (e) {\n if (process.env.NODE_ENV === 'development') {\n console.error(`data-tabster attribute error: ${e}`, element);\n }\n }\n } else {\n return;\n }\n } else if (!entry) {\n return;\n }\n\n if (!entry) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n entry = tabster.storageEntry(element, true);\n }\n\n if (!entry.tabster) {\n entry.tabster = {};\n }\n\n const tabsterOnElement = entry.tabster || {};\n const oldTabsterProps = ((_b = entry.attr) === null || _b === void 0 ? void 0 : _b.object) || {};\n const newTabsterProps = (newAttr === null || newAttr === void 0 ? void 0 : newAttr.object) || {};\n\n for (const key of Object.keys(oldTabsterProps)) {\n if (!newTabsterProps[key]) {\n if (key === \"root\") {\n const root = tabsterOnElement[key];\n\n if (root) {\n tabster.root.onRoot(root, true);\n }\n }\n\n switch (key) {\n case \"deloser\":\n case \"root\":\n case \"groupper\":\n case \"modalizer\":\n case \"restorer\":\n case \"mover\":\n // eslint-disable-next-line no-case-declarations\n const part = tabsterOnElement[key];\n\n if (part) {\n part.dispose();\n delete tabsterOnElement[key];\n }\n\n break;\n\n case \"observed\":\n delete tabsterOnElement[key];\n\n if (tabster.observedElement) {\n tabster.observedElement.onObservedElementUpdate(element);\n }\n\n break;\n\n case \"focusable\":\n case \"outline\":\n case \"uncontrolled\":\n case \"sys\":\n delete tabsterOnElement[key];\n break;\n }\n }\n }\n\n for (const key of Object.keys(newTabsterProps)) {\n const sys = newTabsterProps.sys;\n\n switch (key) {\n case \"deloser\":\n if (tabsterOnElement.deloser) {\n tabsterOnElement.deloser.setProps(newTabsterProps.deloser);\n } else {\n if (tabster.deloser) {\n tabsterOnElement.deloser = tabster.deloser.createDeloser(element, newTabsterProps.deloser);\n } else if (process.env.NODE_ENV === 'development') {\n console.error(\"Deloser API used before initialization, please call `getDeloser()`\");\n }\n }\n\n break;\n\n case \"root\":\n if (tabsterOnElement.root) {\n tabsterOnElement.root.setProps(newTabsterProps.root);\n } else {\n tabsterOnElement.root = tabster.root.createRoot(element, newTabsterProps.root, sys);\n }\n\n tabster.root.onRoot(tabsterOnElement.root);\n break;\n\n case \"modalizer\":\n if (tabsterOnElement.modalizer) {\n tabsterOnElement.modalizer.setProps(newTabsterProps.modalizer);\n } else {\n if (tabster.modalizer) {\n tabsterOnElement.modalizer = tabster.modalizer.createModalizer(element, newTabsterProps.modalizer, sys);\n } else if (process.env.NODE_ENV === 'development') {\n console.error(\"Modalizer API used before initialization, please call `getModalizer()`\");\n }\n }\n\n break;\n\n case \"restorer\":\n if (tabsterOnElement.restorer) {\n tabsterOnElement.restorer.setProps(newTabsterProps.restorer);\n } else {\n if (tabster.restorer) {\n if (newTabsterProps.restorer) {\n tabsterOnElement.restorer = tabster.restorer.createRestorer(element, newTabsterProps.restorer);\n }\n } else if (process.env.NODE_ENV === 'development') {\n console.error(\"Restorer API used before initialization, please call `getRestorer()`\");\n }\n }\n\n break;\n\n case \"focusable\":\n tabsterOnElement.focusable = newTabsterProps.focusable;\n break;\n\n case \"groupper\":\n if (tabsterOnElement.groupper) {\n tabsterOnElement.groupper.setProps(newTabsterProps.groupper);\n } else {\n if (tabster.groupper) {\n tabsterOnElement.groupper = tabster.groupper.createGroupper(element, newTabsterProps.groupper, sys);\n } else if (process.env.NODE_ENV === 'development') {\n console.error(\"Groupper API used before initialization, please call `getGroupper()`\");\n }\n }\n\n break;\n\n case \"mover\":\n if (tabsterOnElement.mover) {\n tabsterOnElement.mover.setProps(newTabsterProps.mover);\n } else {\n if (tabster.mover) {\n tabsterOnElement.mover = tabster.mover.createMover(element, newTabsterProps.mover, sys);\n } else if (process.env.NODE_ENV === 'development') {\n console.error(\"Mover API used before initialization, please call `getMover()`\");\n }\n }\n\n break;\n\n case \"observed\":\n if (tabster.observedElement) {\n tabsterOnElement.observed = newTabsterProps.observed;\n tabster.observedElement.onObservedElementUpdate(element);\n } else if (process.env.NODE_ENV === 'development') {\n console.error(\"ObservedElement API used before initialization, please call `getObservedElement()`\");\n }\n\n break;\n\n case \"uncontrolled\":\n tabsterOnElement.uncontrolled = newTabsterProps.uncontrolled;\n break;\n\n case \"outline\":\n if (tabster.outline) {\n tabsterOnElement.outline = newTabsterProps.outline;\n } else if (process.env.NODE_ENV === 'development') {\n console.error(\"Outline API used before initialization, please call `getOutline()`\");\n }\n\n break;\n\n case \"sys\":\n tabsterOnElement.sys = newTabsterProps.sys;\n break;\n\n default:\n console.error(`Unknown key '${key}' in data-tabster attribute value.`);\n }\n }\n\n if (newAttr) {\n entry.attr = newAttr;\n } else {\n if (Object.keys(tabsterOnElement).length === 0) {\n delete entry.tabster;\n delete entry.attr;\n }\n\n tabster.storageEntry(element, false);\n }\n}\n\n/*!\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\n\n/**\r\n * Events sent by Tabster.\r\n */\nconst TabsterFocusInEventName = \"tabster:focusin\";\nconst TabsterFocusOutEventName = \"tabster:focusout\"; // Event is dispatched when Tabster wants to move focus as the result of\n// handling keyboard event. This allows to preventDefault() if you want to have\n// some custom logic.\n\nconst TabsterMoveFocusEventName = \"tabster:movefocus\";\n/**\r\n * Events sent by Deloser.\r\n */\n\nconst DeloserFocusLostEventName = \"tabster:deloser:focus-lost\";\n/**\r\n * Events to be sent to Deloser by the application.\r\n */\n\nconst DeloserRestoreFocusEventName = \"tabster:deloser:restore-focus\";\n/**\r\n * Events sent by Modalizer.\r\n */\n\nconst ModalizerActiveEventName = \"tabster:modalizer:active\";\nconst ModalizerInactiveEventName = \"tabster:modalizer:inactive\";\nconst ModalizerFocusInEventName = \"tabster:modalizer:focusin\";\nconst ModalizerFocusOutEventName = \"tabster:modalizer:focusout\";\n/**\r\n * Events sent by Mover.\r\n */\n\nconst MoverStateEventName = \"tabster:mover:state\";\n/**\r\n * Events to be sent to Mover by the application.\r\n */\n// Event that can be dispatched by the application to programmatically move\n// focus inside Mover.\n\nconst MoverMoveFocusEventName = \"tabster:mover:movefocus\"; // Event that can be dispatched by the application to forget or modify\n// memorized element in Mover with memorizeCurrent property.\n\nconst MoverMemorizedElementEventName = \"tabster:mover:memorized-element\";\n/**\r\n * Events sent by Groupper.\r\n */\n\n/**\r\n * Events to be sent to Groupper by the application.\r\n */\n// Event that can be dispatched by the application to programmatically enter\n// or escape Groupper.\n\nconst GroupperMoveFocusEventName = \"tabster:groupper:movefocus\";\n/**\r\n * Events sent by Restorer.\r\n */\n\nconst RestorerRestoreFocusEventName = \"tabster:restorer:restore-focus\";\n/**\r\n * Events sent by Root.\r\n */\n\nconst RootFocusEventName = \"tabster:root:focus\";\nconst RootBlurEventName = \"tabster:root:blur\"; // Node.js environments do not have CustomEvent and it is needed for the events to be\n// evaluated. It doesn't matter if it works or not in Node.js environment.\n// So, we just need to make sure that it doesn't throw undefined reference.\n\nconst CustomEvent_ = typeof CustomEvent !== \"undefined\" ? CustomEvent : function () {\n /* no-op */\n};\nclass TabsterCustomEvent extends CustomEvent_ {\n constructor(type, detail) {\n super(type, {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail\n });\n this.details = detail;\n }\n\n}\nclass TabsterFocusInEvent extends TabsterCustomEvent {\n constructor(detail) {\n super(TabsterFocusInEventName, detail);\n }\n\n}\nclass TabsterFocusOutEvent extends TabsterCustomEvent {\n constructor(detail) {\n super(TabsterFocusOutEventName, detail);\n }\n\n}\nclass TabsterMoveFocusEvent extends TabsterCustomEvent {\n constructor(detail) {\n super(TabsterMoveFocusEventName, detail);\n }\n\n}\nclass MoverStateEvent extends TabsterCustomEvent {\n constructor(detail) {\n super(MoverStateEventName, detail);\n }\n\n}\nclass MoverMoveFocusEvent extends TabsterCustomEvent {\n constructor(detail) {\n super(MoverMoveFocusEventName, detail);\n }\n\n}\nclass MoverMemorizedElementEvent extends TabsterCustomEvent {\n constructor(detail) {\n super(MoverMemorizedElementEventName, detail);\n }\n\n}\nclass GroupperMoveFocusEvent extends TabsterCustomEvent {\n constructor(detail) {\n super(GroupperMoveFocusEventName, detail);\n }\n\n}\nclass ModalizerActiveEvent extends TabsterCustomEvent {\n constructor(detail) {\n super(ModalizerActiveEventName, detail);\n }\n\n}\nclass ModalizerInactiveEvent extends TabsterCustomEvent {\n constructor(detail) {\n super(ModalizerInactiveEventName, detail);\n }\n\n}\nclass DeloserFocusLostEvent extends TabsterCustomEvent {\n constructor(detail) {\n super(DeloserFocusLostEventName, detail);\n }\n\n}\nclass DeloserRestoreFocusEvent extends TabsterCustomEvent {\n constructor() {\n super(DeloserRestoreFocusEventName);\n }\n\n}\nclass RestorerRestoreFocusEvent extends TabsterCustomEvent {\n constructor() {\n super(RestorerRestoreFocusEventName);\n }\n\n}\nclass RootFocusEvent extends TabsterCustomEvent {\n constructor(detail) {\n super(RootFocusEventName, detail);\n }\n\n}\nclass RootBlurEvent extends TabsterCustomEvent {\n constructor(detail) {\n super(RootBlurEventName, detail);\n }\n\n}\n\n/*!\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\nconst _createMutationObserver = callback => new MutationObserver(callback);\n\nconst _createTreeWalker = (doc, root, whatToShow, filter) => doc.createTreeWalker(root, whatToShow, filter);\n\nconst _getParentNode = node => node ? node.parentNode : null;\n\nconst _getParentElement = element => element ? element.parentElement : null;\n\nconst _nodeContains = (parent, child) => !!(child && (parent === null || parent === void 0 ? void 0 : parent.contains(child)));\n\nconst _getActiveElement = doc => doc.activeElement;\n\nconst _querySelector = (element, selector) => element.querySelector(selector);\n\nconst _querySelectorAll = (element, selector) => Array.prototype.slice.call(element.querySelectorAll(selector), 0);\n\nconst _getElementById = (doc, id) => doc.getElementById(id);\n\nconst _getFirstChild = node => (node === null || node === void 0 ? void 0 : node.firstChild) || null;\n\nconst _getLastChild = node => (node === null || node === void 0 ? void 0 : node.lastChild) || null;\n\nconst _getNextSibling = node => (node === null || node === void 0 ? void 0 : node.nextSibling) || null;\n\nconst _getPreviousSibling = node => (node === null || node === void 0 ? void 0 : node.previousSibling) || null;\n\nconst _getFirstElementChild = element => (element === null || element === void 0 ? void 0 : element.firstElementChild) || null;\n\nconst _getLastElementChild = element => (element === null || element === void 0 ? void 0 : element.lastElementChild) || null;\n\nconst _getNextElementSibling = element => (element === null || element === void 0 ? void 0 : element.nextElementSibling) || null;\n\nconst _getPreviousElementSibling = element => (element === null || element === void 0 ? void 0 : element.previousElementSibling) || null;\n\nconst _appendChild = (parent, child) => parent.appendChild(child);\n\nconst _insertBefore = (parent, child, referenceChild) => parent.insertBefore(child, referenceChild);\n\nconst _getSelection = ref => {\n var _a;\n\n return ((_a = ref.ownerDocument) === null || _a === void 0 ? void 0 : _a.getSelection()) || null;\n};\n\nconst _getElementsByName = (referenceElement, name) => referenceElement.ownerDocument.getElementsByName(name);\n\nconst dom = {\n createMutationObserver: _createMutationObserver,\n createTreeWalker: _createTreeWalker,\n getParentNode: _getParentNode,\n getParentElement: _getParentElement,\n nodeContains: _nodeContains,\n getActiveElement: _getActiveElement,\n querySelector: _querySelector,\n querySelectorAll: _querySelectorAll,\n getElementById: _getElementById,\n getFirstChild: _getFirstChild,\n getLastChild: _getLastChild,\n getNextSibling: _getNextSibling,\n getPreviousSibling: _getPreviousSibling,\n getFirstElementChild: _getFirstElementChild,\n getLastElementChild: _getLastElementChild,\n getNextElementSibling: _getNextElementSibling,\n getPreviousElementSibling: _getPreviousElementSibling,\n appendChild: _appendChild,\n insertBefore: _insertBefore,\n getSelection: _getSelection,\n getElementsByName: _getElementsByName\n};\nfunction setDOMAPI(domapi) {\n for (const key of Object.keys(domapi)) {\n dom[key] = domapi[key];\n }\n}\n\n/*!\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\n\nlet _isBrokenIE11;\n\nconst _DOMRect = typeof DOMRect !== \"undefined\" ? DOMRect : class {\n constructor(x, y, width, height) {\n this.left = x || 0;\n this.top = y || 0;\n this.right = (x || 0) + (width || 0);\n this.bottom = (y || 0) + (height || 0);\n }\n\n};\n\nlet _uidCounter = 0;\n\ntry {\n // IE11 only accepts `filter` argument as a function (not object with the `acceptNode`\n // property as the docs define). Also `entityReferenceExpansion` argument is not\n // optional. And it throws exception when the above arguments aren't there.\n document.createTreeWalker(document, NodeFilter.SHOW_ELEMENT);\n _isBrokenIE11 = false;\n} catch (e) {\n _isBrokenIE11 = true;\n}\n\nconst _updateDummyInputsTimeout = 100;\nfunction getInstanceContext(getWindow) {\n const win = getWindow();\n let ctx = win.__tabsterInstanceContext;\n\n if (!ctx) {\n ctx = {\n elementByUId: {},\n basics: {\n Promise: win.Promise || undefined,\n WeakRef: win.WeakRef || undefined\n },\n containerBoundingRectCache: {},\n lastContainerBoundingRectCacheId: 0,\n fakeWeakRefs: [],\n fakeWeakRefsStarted: false\n };\n win.__tabsterInstanceContext = ctx;\n }\n\n return ctx;\n}\nfunction disposeInstanceContext(win) {\n const ctx = win.__tabsterInstanceContext;\n\n if (ctx) {\n ctx.elementByUId = {};\n delete ctx.WeakRef;\n ctx.containerBoundingRectCache = {};\n\n if (ctx.containerBoundingRectCacheTimer) {\n win.clearTimeout(ctx.containerBoundingRectCacheTimer);\n }\n\n if (ctx.fakeWeakRefsTimer) {\n win.clearTimeout(ctx.fakeWeakRefsTimer);\n }\n\n ctx.fakeWeakRefs = [];\n delete win.__tabsterInstanceContext;\n }\n}\nfunction createWeakMap(win) {\n const ctx = win.__tabsterInstanceContext;\n return new ((ctx === null || ctx === void 0 ? void 0 : ctx.basics.WeakMap) || WeakMap)();\n}\nfunction hasSubFocusable(element) {\n return !!element.querySelector(FOCUSABLE_SELECTOR);\n}\n\nclass FakeWeakRef {\n constructor(target) {\n this._target = target;\n }\n\n deref() {\n return this._target;\n }\n\n static cleanup(fwr, forceRemove) {\n if (!fwr._target) {\n return true;\n }\n\n if (forceRemove || !documentContains(fwr._target.ownerDocument, fwr._target)) {\n delete fwr._target;\n return true;\n }\n\n return false;\n }\n\n}\n\nclass WeakHTMLElement {\n constructor(getWindow, element, data) {\n const context = getInstanceContext(getWindow);\n let ref;\n\n if (context.WeakRef) {\n ref = new context.WeakRef(element);\n } else {\n ref = new FakeWeakRef(element);\n context.fakeWeakRefs.push(ref);\n }\n\n this._ref = ref;\n this._data = data;\n }\n\n get() {\n const ref = this._ref;\n let element;\n\n if (ref) {\n element = ref.deref();\n\n if (!element) {\n delete this._ref;\n }\n }\n\n return element;\n }\n\n getData() {\n return this._data;\n }\n\n}\nfunction cleanupFakeWeakRefs(getWindow, forceRemove) {\n const context = getInstanceContext(getWindow);\n context.fakeWeakRefs = context.fakeWeakRefs.filter(e => !FakeWeakRef.cleanup(e, forceRemove));\n}\nfunction startFakeWeakRefsCleanup(getWindow) {\n const context = getInstanceContext(getWindow);\n\n if (!context.fakeWeakRefsStarted) {\n context.fakeWeakRefsStarted = true;\n context.WeakRef = getWeakRef(context);\n }\n\n if (!context.fakeWeakRefsTimer) {\n context.fakeWeakRefsTimer = getWindow().setTimeout(() => {\n context.fakeWeakRefsTimer = undefined;\n cleanupFakeWeakRefs(getWindow);\n startFakeWeakRefsCleanup(getWindow);\n }, 2 * 60 * 1000); // 2 minutes.\n }\n}\nfunction stopFakeWeakRefsCleanupAndClearStorage(getWindow) {\n const context = getInstanceContext(getWindow);\n context.fakeWeakRefsStarted = false;\n\n if (context.fakeWeakRefsTimer) {\n getWindow().clearTimeout(context.fakeWeakRefsTimer);\n context.fakeWeakRefsTimer = undefined;\n context.fakeWeakRefs = [];\n }\n}\nfunction createElementTreeWalker(doc, root, acceptNode) {\n // IE11 will throw an exception when the TreeWalker root is not an Element.\n if (root.nodeType !== Node.ELEMENT_NODE) {\n return undefined;\n } // TypeScript isn't aware of IE11 behaving badly.\n\n\n const filter = _isBrokenIE11 ? acceptNode : {\n acceptNode\n };\n return dom.createTreeWalker(doc, root, NodeFilter.SHOW_ELEMENT, filter, // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: We still don't want to completely break IE11, so, entityReferenceExpansion argument is not optional.\n false\n /* Last argument is not optional for IE11! */\n );\n}\nfunction getBoundingRect(getWindow, element) {\n let cacheId = element.__tabsterCacheId;\n const context = getInstanceContext(getWindow);\n const cached = cacheId ? context.containerBoundingRectCache[cacheId] : undefined;\n\n if (cached) {\n return cached.rect;\n }\n\n const scrollingElement = element.ownerDocument && element.ownerDocument.documentElement;\n\n if (!scrollingElement) {\n return new _DOMRect();\n } // A bounding rect of the top-level element contains the whole page regardless of the\n // scrollbar. So, we improvise a little and limiting the final result...\n\n\n let left = 0;\n let top = 0;\n let right = scrollingElement.clientWidth;\n let bottom = scrollingElement.clientHeight;\n\n if (element !== scrollingElement) {\n const r = element.getBoundingClientRect();\n left = Math.max(left, r.left);\n top = Math.max(top, r.top);\n right = Math.min(right, r.right);\n bottom = Math.min(bottom, r.bottom);\n }\n\n const rect = new _DOMRect(left < right ? left : -1, top < bottom ? top : -1, left < right ? right - left : 0, top < bottom ? bottom - top : 0);\n\n if (!cacheId) {\n cacheId = \"r-\" + ++context.lastContainerBoundingRectCacheId;\n element.__tabsterCacheId = cacheId;\n }\n\n context.containerBoundingRectCache[cacheId] = {\n rect,\n element\n };\n\n if (!context.containerBoundingRectCacheTimer) {\n context.containerBoundingRectCacheTimer = window.setTimeout(() => {\n context.containerBoundingRectCacheTimer = undefined;\n\n for (const cId of Object.keys(context.containerBoundingRectCache)) {\n delete context.containerBoundingRectCache[cId].element.__tabsterCacheId;\n }\n\n context.containerBoundingRectCache = {};\n }, 50);\n }\n\n return rect;\n}\nfunction isElementVerticallyVisibleInContainer(getWindow, element, tolerance) {\n const container = getScrollableContainer(element);\n\n if (!container) {\n return false;\n }\n\n const containerRect = getBoundingRect(getWindow, container);\n const elementRect = element.getBoundingClientRect();\n const intersectionTolerance = elementRect.height * (1 - tolerance);\n const topIntersection = Math.max(0, containerRect.top - elementRect.top);\n const bottomIntersection = Math.max(0, elementRect.bottom - containerRect.bottom);\n const totalIntersection = topIntersection + bottomIntersection;\n return totalIntersection === 0 || totalIntersection <= intersectionTolerance;\n}\nfunction scrollIntoView(getWindow, element, alignToTop) {\n // Built-in DOM's scrollIntoView() is cool, but when we have nested containers,\n // it scrolls all of them, not just the deepest one. So, trying to work it around.\n const container = getScrollableContainer(element);\n\n if (container) {\n const containerRect = getBoundingRect(getWindow, container);\n const elementRect = element.getBoundingClientRect();\n\n if (alignToTop) {\n container.scrollTop += elementRect.top - containerRect.top;\n } else {\n container.scrollTop += elementRect.bottom - containerRect.bottom;\n }\n }\n}\nfunction getScrollableContainer(element) {\n const doc = element.ownerDocument;\n\n if (doc) {\n for (let el = dom.getParentElement(element); el; el = dom.getParentElement(el)) {\n if (el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight) {\n return el;\n }\n }\n\n return doc.documentElement;\n }\n\n return null;\n}\nfunction makeFocusIgnored(element) {\n element.__shouldIgnoreFocus = true;\n}\nfunction shouldIgnoreFocus(element) {\n return !!element.__shouldIgnoreFocus;\n}\nfunction getUId(wnd) {\n const rnd = new Uint32Array(4);\n\n if (wnd.crypto && wnd.crypto.getRandomValues) {\n wnd.crypto.getRandomValues(rnd);\n } else if (wnd.msCrypto && wnd.msCrypto.getRandomValues) {\n wnd.msCrypto.getRandomValues(rnd);\n } else {\n for (let i = 0; i < rnd.length; i++) {\n rnd[i] = 0xffffffff * Math.random();\n }\n }\n\n const srnd = [];\n\n for (let i = 0; i < rnd.length; i++) {\n srnd.push(rnd[i].toString(36));\n }\n\n srnd.push(\"|\");\n srnd.push((++_uidCounter).toString(36));\n srnd.push(\"|\");\n srnd.push(Date.now().toString(36));\n return srnd.join(\"\");\n}\nfunction getElementUId(getWindow, element) {\n const context = getInstanceContext(getWindow);\n let uid = element.__tabsterElementUID;\n\n if (!uid) {\n uid = element.__tabsterElementUID = getUId(getWindow());\n }\n\n if (!context.elementByUId[uid] && documentContains(element.ownerDocument, element)) {\n context.elementByUId[uid] = new WeakHTMLElement(getWindow, element);\n }\n\n return uid;\n}\nfunction getWindowUId(win) {\n let uid = win.__tabsterCrossOriginWindowUID;\n\n if (!uid) {\n uid = win.__tabsterCrossOriginWindowUID = getUId(win);\n }\n\n return uid;\n}\nfunction clearElementCache(getWindow, parent) {\n const context = getInstanceContext(getWindow);\n\n for (const key of Object.keys(context.elementByUId)) {\n const wel = context.elementByUId[key];\n const el = wel && wel.get();\n\n if (el && parent) {\n if (!dom.nodeContains(parent, el)) {\n continue;\n }\n }\n\n delete context.elementByUId[key];\n }\n} // IE11 doesn't have document.contains()...\n\nfunction documentContains(doc, element) {\n return dom.nodeContains(doc === null || doc === void 0 ? void 0 : doc.body, element);\n}\nfunction matchesSelector(element, selector) {\n const matches = element.matches || element.matchesSelector || element.msMatchesSelector || element.webkitMatchesSelector;\n return matches && matches.call(element, selector);\n}\nfunction getPromise(getWindow) {\n const context = getInstanceContext(getWindow);\n\n if (context.basics.Promise) {\n return context.basics.Promise;\n }\n\n throw new Error(\"No Promise defined.\");\n}\nfunction getWeakRef(context) {\n return context.basics.WeakRef;\n}\nlet _lastTabsterPartId = 0;\nclass TabsterPart {\n constructor(tabster, element, props) {\n const getWindow = tabster.getWindow;\n this._tabster = tabster;\n this._element = new WeakHTMLElement(getWindow, element);\n this._props = { ...props\n };\n this.id = \"i\" + ++_lastTabsterPartId;\n }\n\n getElement() {\n return this._element.get();\n }\n\n getProps() {\n return this._props;\n }\n\n setProps(props) {\n this._props = { ...props\n };\n }\n\n}\n/**\r\n * Dummy HTML elements that are used as focus sentinels for the DOM enclosed within them\r\n */\n\nclass DummyInput {\n constructor(getWindow, isOutside, props, element, fixedTarget) {\n var _a;\n\n this._focusIn = e => {\n if (this._fixedTarget) {\n const target = this._fixedTarget.get();\n\n if (target) {\n nativeFocus(target);\n }\n\n return;\n }\n\n const input = this.input;\n\n if (this.onFocusIn && input) {\n const relatedTarget = e.relatedTarget;\n this.onFocusIn(this, this._isBackward(true, input, relatedTarget), relatedTarget);\n }\n };\n\n this._focusOut = e => {\n if (this._fixedTarget) {\n return;\n }\n\n this.useDefaultAction = false;\n const input = this.input;\n\n if (this.onFocusOut && input) {\n const relatedTarget = e.relatedTarget;\n this.onFocusOut(this, this._isBackward(false, input, relatedTarget), relatedTarget);\n }\n };\n\n const win = getWindow();\n const input = win.document.createElement(\"i\");\n input.tabIndex = 0;\n input.setAttribute(\"role\", \"none\");\n input.setAttribute(TABSTER_DUMMY_INPUT_ATTRIBUTE_NAME, \"\");\n input.setAttribute(\"aria-hidden\", \"true\");\n const style = input.style;\n style.position = \"fixed\";\n style.width = style.height = \"1px\";\n style.opacity = \"0.001\";\n style.zIndex = \"-1\";\n style.setProperty(\"content-visibility\", \"hidden\");\n makeFocusIgnored(input);\n this.input = input;\n this.isFirst = props.isFirst;\n this.isOutside = isOutside;\n this._isPhantom = (_a = props.isPhantom) !== null && _a !== void 0 ? _a : false;\n this._fixedTarget = fixedTarget;\n input.addEventListener(\"focusin\", this._focusIn);\n input.addEventListener(\"focusout\", this._focusOut);\n input.__tabsterDummyContainer = element;\n\n if (this._isPhantom) {\n this._disposeTimer = win.setTimeout(() => {\n delete this._disposeTimer;\n this.dispose();\n }, 0);\n\n this._clearDisposeTimeout = () => {\n if (this._disposeTimer) {\n win.clearTimeout(this._disposeTimer);\n delete this._disposeTimer;\n }\n\n delete this._clearDisposeTimeout;\n };\n }\n }\n\n dispose() {\n var _a;\n\n if (this._clearDisposeTimeout) {\n this._clearDisposeTimeout();\n }\n\n const input = this.input;\n\n if (!input) {\n return;\n }\n\n delete this._fixedTarget;\n delete this.onFocusIn;\n delete this.onFocusOut;\n delete this.input;\n input.removeEventListener(\"focusin\", this._focusIn);\n input.removeEventListener(\"focusout\", this._focusOut);\n delete input.__tabsterDummyContainer;\n (_a = dom.getParentNode(input)) === null || _a === void 0 ? void 0 : _a.removeChild(input);\n }\n\n setTopLeft(top, left) {\n var _a;\n\n const style = (_a = this.input) === null || _a === void 0 ? void 0 : _a.style;\n\n if (style) {\n style.top = `${top}px`;\n style.left = `${left}px`;\n }\n }\n\n _isBackward(isIn, current, previous) {\n return isIn && !previous ? !this.isFirst : !!(previous && current.compareDocumentPosition(previous) & Node.DOCUMENT_POSITION_FOLLOWING);\n }\n\n}\nconst DummyInputManagerPriorities = {\n Root: 1,\n Modalizer: 2,\n Mover: 3,\n Groupper: 4\n};\nclass DummyInputManager {\n constructor(tabster, element, priority, sys, outsideByDefault, callForDefaultAction) {\n this._element = element;\n this._instance = new DummyInputManagerCore(tabster, element, this, priority, sys, outsideByDefault, callForDefaultAction);\n }\n\n _setHandlers(onFocusIn, onFocusOut) {\n this._onFocusIn = onFocusIn;\n this._onFocusOut = onFocusOut;\n }\n\n moveOut(backwards) {\n var _a;\n\n (_a = this._instance) === null || _a === void 0 ? void 0 : _a.moveOut(backwards);\n }\n\n moveOutWithDefaultAction(backwards, relatedEvent) {\n var _a;\n\n (_a = this._instance) === null || _a === void 0 ? void 0 : _a.moveOutWithDefaultAction(backwards, relatedEvent);\n }\n\n getHandler(isIn) {\n return isIn ? this._onFocusIn : this._onFocusOut;\n }\n\n setTabbable(tabbable) {\n var _a;\n\n (_a = this._instance) === null || _a === void 0 ? void 0 : _a.setTabbable(this, tabbable);\n }\n\n dispose() {\n if (this._instance) {\n this._instance.dispose(this);\n\n delete this._instance;\n }\n\n delete this._onFocusIn;\n delete this._onFocusOut;\n }\n\n static moveWithPhantomDummy(tabster, element, // The target element to move to or out of.\n moveOutOfElement, // Whether to move out of the element or into it.\n isBackward, // Are we tabbing of shift-tabbing?\n relatedEvent // The event that triggered the move.\n ) {\n // Phantom dummy is a hack to use browser's default action to move\n // focus from a specific point in the application to the next/previous\n // element. Default action is needed because next focusable element\n // is not always available to focus directly (for example, next focusable\n // is inside isolated iframe) or for uncontrolled areas we want to make\n // sure that something that controls it takes care of the focusing.\n // It works in a way that during the Tab key handling, we create a dummy\n // input element, place it to the specific place in the DOM and focus it,\n // then the default action of the Tab press will move focus from our dummy\n // input. And we remove it from the DOM right after that.\n const dummy = new DummyInput(tabster.getWindow, true, {\n isPhantom: true,\n isFirst: true\n });\n const input = dummy.input;\n\n if (input) {\n let parent;\n let insertBefore; // Let's say we have a following DOM structure:\n //
\n // \n //
\n // \n // \n //
\n // \n //
\n //\n // We pass the \"uncontrolled\" div as the element to move to or out of.\n //\n // When we pass moveOutOfElement=true and isBackward=false,\n // the phantom dummy input will be inserted before Button4.\n //\n // When we pass moveOutOfElement=true and isBackward=true, there are\n // two cases. If the uncontrolled element is focusable (has tabindex=0),\n // the phantom dummy input will be inserted after Button1. If the\n // uncontrolled element is not focusable, the phantom dummy input will be\n // inserted before Button2.\n //\n // When we pass moveOutOfElement=false and isBackward=false, the\n // phantom dummy input will be inserted after Button1.\n //\n // When we pass moveOutOfElement=false and isBackward=true, the phantom\n // dummy input will be inserted before Button4.\n //\n // And we have a corner case for and we make sure that the inserted\n // dummy is inserted properly when there are existing permanent dummies.\n\n if (element.tagName === \"BODY\") {\n // We cannot insert elements outside of BODY.\n parent = element;\n insertBefore = moveOutOfElement && isBackward || !moveOutOfElement && !isBackward ? dom.getFirstElementChild(element) : null;\n } else {\n if (moveOutOfElement && (!isBackward || isBackward && !tabster.focusable.isFocusable(element, false, true, true))) {\n parent = element;\n insertBefore = isBackward ? element.firstElementChild : null;\n } else {\n parent = dom.getParentElement(element);\n insertBefore = moveOutOfElement && isBackward || !moveOutOfElement && !isBackward ? element : dom.getNextElementSibling(element);\n }\n\n let potentialDummy;\n let dummyFor;\n\n do {\n // This is a safety pillow for the cases when someone, combines\n // groupper with uncontrolled on the same node. Which is technically\n // not correct, but moving into the container element via its dummy\n // input would produce a correct behaviour in uncontrolled mode.\n potentialDummy = moveOutOfElement && isBackward || !moveOutOfElement && !isBackward ? dom.getPreviousElementSibling(insertBefore) : insertBefore;\n dummyFor = getDummyInputContainer(potentialDummy);\n\n if (dummyFor === element) {\n insertBefore = moveOutOfElement && isBackward || !moveOutOfElement && !isBackward ? potentialDummy : dom.getNextElementSibling(potentialDummy);\n } else {\n dummyFor = null;\n }\n } while (dummyFor);\n }\n\n if (parent === null || parent === void 0 ? void 0 : parent.dispatchEvent(new TabsterMoveFocusEvent({\n by: \"root\",\n owner: parent,\n next: null,\n relatedEvent\n }))) {\n dom.insertBefore(parent, input, insertBefore);\n nativeFocus(input);\n }\n }\n }\n\n static addPhantomDummyWithTarget(tabster, sourceElement, isBackward, targetElement) {\n const dummy = new DummyInput(tabster.getWindow, true, {\n isPhantom: true,\n isFirst: true\n }, undefined, new WeakHTMLElement(tabster.getWindow, targetElement));\n const input = dummy.input;\n\n if (input) {\n let dummyParent;\n let insertBefore;\n\n if (hasSubFocusable(sourceElement) && !isBackward) {\n dummyParent = sourceElement;\n insertBefore = dom.getFirstElementChild(sourceElement);\n } else {\n dummyParent = dom.getParentElement(sourceElement);\n insertBefore = isBackward ? sourceElement : dom.getNextElementSibling(sourceElement);\n }\n\n if (dummyParent) {\n dom.insertBefore(dummyParent, input, insertBefore);\n }\n }\n }\n\n}\n\nfunction setDummyInputDebugValue(dummy, wrappers) {\n var _a;\n\n const what = {\n 1: \"Root\",\n 2: \"Modalizer\",\n 3: \"Mover\",\n 4: \"Groupper\"\n };\n (_a = dummy.input) === null || _a === void 0 ? void 0 : _a.setAttribute(TABSTER_DUMMY_INPUT_ATTRIBUTE_NAME, [`isFirst=${dummy.isFirst}`, `isOutside=${dummy.isOutside}`, ...wrappers.map(w => `(${what[w.priority]}, tabbable=${w.tabbable})`)].join(\", \"));\n}\n\nclass DummyInputObserver {\n constructor(win) {\n this._updateQueue = new Set();\n this._lastUpdateQueueTime = 0;\n this._changedParents = new WeakSet();\n this._dummyElements = [];\n this._dummyCallbacks = new WeakMap();\n\n this._domChanged = parent => {\n var _a;\n\n if (this._changedParents.has(parent)) {\n return;\n }\n\n this._changedParents.add(parent);\n\n if (this._updateDummyInputsTimer) {\n return;\n }\n\n this._updateDummyInputsTimer = (_a = this._win) === null || _a === void 0 ? void 0 : _a.call(this).setTimeout(() => {\n delete this._updateDummyInputsTimer;\n\n for (const ref of this._dummyElements) {\n const dummyElement = ref.get();\n\n if (dummyElement) {\n const callback = this._dummyCallbacks.get(dummyElement);\n\n if (callback) {\n const dummyParent = dom.getParentNode(dummyElement);\n\n if (!dummyParent || this._changedParents.has(dummyParent)) {\n callback();\n }\n }\n }\n }\n\n this._changedParents = new WeakSet();\n }, _updateDummyInputsTimeout);\n };\n\n this._win = win;\n }\n\n add(dummy, callback) {\n if (!this._dummyCallbacks.has(dummy) && this._win) {\n this._dummyElements.push(new WeakHTMLElement(this._win, dummy));\n\n this._dummyCallbacks.set(dummy, callback);\n\n this.domChanged = this._domChanged;\n }\n }\n\n remove(dummy) {\n this._dummyElements = this._dummyElements.filter(ref => {\n const element = ref.get();\n return element && element !== dummy;\n });\n\n this._dummyCallbacks.delete(dummy);\n\n if (this._dummyElements.length === 0) {\n delete this.domChanged;\n }\n }\n\n dispose() {\n var _a;\n\n const win = (_a = this._win) === null || _a === void 0 ? void 0 : _a.call(this);\n\n if (this._updateTimer) {\n win === null || win === void 0 ? void 0 : win.clearTimeout(this._updateTimer);\n delete this._updateTimer;\n }\n\n if (this._updateDummyInputsTimer) {\n win === null || win === void 0 ? void 0 : win.clearTimeout(this._updateDummyInputsTimer);\n delete this._updateDummyInputsTimer;\n }\n\n this._changedParents = new WeakSet();\n this._dummyCallbacks = new WeakMap();\n this._dummyElements = [];\n\n this._updateQueue.clear();\n\n delete this.domChanged;\n delete this._win;\n }\n\n updatePositions(compute) {\n if (!this._win) {\n // As this is a public method, we make sure that it has no effect when\n // called after dispose().\n return;\n }\n\n this._updateQueue.add(compute);\n\n this._lastUpdateQueueTime = Date.now();\n\n this._scheduledUpdatePositions();\n }\n\n _scheduledUpdatePositions() {\n var _a;\n\n if (this._updateTimer) {\n return;\n }\n\n this._updateTimer = (_a = this._win) === null || _a === void 0 ? void 0 : _a.call(this).setTimeout(() => {\n delete this._updateTimer; // updatePositions() might be called quite a lot during the scrolling.\n // So, instead of clearing the timeout and scheduling a new one, we\n // check if enough time has passed since the last updatePositions() call\n // and only schedule a new one if not.\n // At maximum, we will update dummy inputs positions\n // _updateDummyInputsTimeout * 2 after the last updatePositions() call.\n\n if (this._lastUpdateQueueTime + _updateDummyInputsTimeout <= Date.now()) {\n // A cache for current bulk of updates to reduce getComputedStyle() calls.\n const scrollTopLeftCache = new Map();\n const setTopLeftCallbacks = [];\n\n for (const compute of this._updateQueue) {\n setTopLeftCallbacks.push(compute(scrollTopLeftCache));\n }\n\n this._updateQueue.clear(); // We're splitting the computation of offsets and setting them to avoid extra\n // reflows.\n\n\n for (const setTopLeft of setTopLeftCallbacks) {\n setTopLeft();\n } // Explicitly clear to not hold references till the next garbage collection.\n\n\n scrollTopLeftCache.clear();\n } else {\n this._scheduledUpdatePositions();\n }\n }, _updateDummyInputsTimeout);\n }\n\n}\n/**\r\n * Parent class that encapsulates the behaviour of dummy inputs (focus sentinels)\r\n */\n\nclass DummyInputManagerCore {\n constructor(tabster, element, manager, priority, sys, outsideByDefault, callForDefaultAction) {\n this._wrappers = [];\n this._isOutside = false;\n this._transformElements = new Set();\n\n this._onFocusIn = (dummyInput, isBackward, relatedTarget) => {\n this._onFocus(true, dummyInput, isBackward, relatedTarget);\n };\n\n this._onFocusOut = (dummyInput, isBackward, relatedTarget) => {\n this._onFocus(false, dummyInput, isBackward, relatedTarget);\n };\n\n this.moveOut = backwards => {\n var _a;\n\n const first = this._firstDummy;\n const last = this._lastDummy;\n\n if (first && last) {\n // For the sake of performance optimization, the dummy input\n // position in the DOM updates asynchronously from the DOM change.\n // Calling _ensurePosition() to make sure the position is correct.\n this._ensurePosition();\n\n const firstInput = first.input;\n const lastInput = last.input;\n const element = (_a = this._element) === null || _a === void 0 ? void 0 : _a.get();\n\n if (firstInput && lastInput && element) {\n let toFocus;\n\n if (backwards) {\n firstInput.tabIndex = 0;\n toFocus = firstInput;\n } else {\n lastInput.tabIndex = 0;\n toFocus = lastInput;\n }\n\n if (toFocus) {\n nativeFocus(toFocus);\n }\n }\n }\n };\n /**\r\n * Prepares to move focus out of the given element by focusing\r\n * one of the dummy inputs and setting the `useDefaultAction` flag\r\n * @param backwards focus moving to an element behind the given element\r\n */\n\n\n this.moveOutWithDefaultAction = (backwards, relatedEvent) => {\n var _a;\n\n const first = this._firstDummy;\n const last = this._lastDummy;\n\n if (first && last) {\n // For the sake of performance optimization, the dummy input\n // position in the DOM updates asynchronously from the DOM change.\n // Calling _ensurePosition() to make sure the position is correct.\n this._ensurePosition();\n\n const firstInput = first.input;\n const lastInput = last.input;\n const element = (_a = this._element) === null || _a === void 0 ? void 0 : _a.get();\n\n if (firstInput && lastInput && element) {\n let toFocus;\n\n if (backwards) {\n if (!first.isOutside && this._tabster.focusable.isFocusable(element, true, true, true)) {\n toFocus = element;\n } else {\n first.useDefaultAction = true;\n firstInput.tabIndex = 0;\n toFocus = firstInput;\n }\n } else {\n last.useDefaultAction = true;\n lastInput.tabIndex = 0;\n toFocus = lastInput;\n }\n\n if (toFocus && element.dispatchEvent(new TabsterMoveFocusEvent({\n by: \"root\",\n owner: element,\n next: null,\n relatedEvent\n }))) {\n nativeFocus(toFocus);\n }\n }\n }\n };\n\n this.setTabbable = (manager, tabbable) => {\n var _a, _b;\n\n for (const w of this._wrappers) {\n if (w.manager === manager) {\n w.tabbable = tabbable;\n break;\n }\n }\n\n const wrapper = this._getCurrent();\n\n if (wrapper) {\n const tabIndex = wrapper.tabbable ? 0 : -1;\n let input = (_a = this._firstDummy) === null || _a === void 0 ? void 0 : _a.input;\n\n if (input) {\n input.tabIndex = tabIndex;\n }\n\n input = (_b = this._lastDummy) === null || _b === void 0 ? void 0 : _b.input;\n\n if (input) {\n input.tabIndex = tabIndex;\n }\n }\n\n if (process.env.NODE_ENV === 'development') {\n this._firstDummy && setDummyInputDebugValue(this._firstDummy, this._wrappers);\n this._lastDummy && setDummyInputDebugValue(this._lastDummy, this._wrappers);\n }\n };\n /**\r\n * Adds dummy inputs as the first and last child of the given element\r\n * Called each time the children under the element is mutated\r\n */\n\n\n this._addDummyInputs = () => {\n if (this._addTimer) {\n return;\n }\n\n this._addTimer = this._getWindow().setTimeout(() => {\n delete this._addTimer;\n\n this._ensurePosition();\n\n if (process.env.NODE_ENV === 'development') {\n this._firstDummy && setDummyInputDebugValue(this._firstDummy, this._wrappers);\n this._lastDummy && setDummyInputDebugValue(this._lastDummy, this._wrappers);\n }\n\n this._addTransformOffsets();\n }, 0);\n };\n\n this._addTransformOffsets = () => {\n this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets);\n };\n\n this._computeTransformOffsets = scrollTopLeftCache => {\n var _a, _b;\n\n const from = ((_a = this._firstDummy) === null || _a === void 0 ? void 0 : _a.input) || ((_b = this._lastDummy) === null || _b === void 0 ? void 0 : _b.input);\n const transformElements = this._transformElements;\n const newTransformElements = new Set();\n let scrollTop = 0;\n let scrollLeft = 0;\n\n const win = this._getWindow();\n\n for (let element = from; element && element.nodeType === Node.ELEMENT_NODE; element = dom.getParentElement(element)) {\n let scrollTopLeft = scrollTopLeftCache.get(element); // getComputedStyle() and element.scrollLeft/Top() cause style recalculation,\n // so we cache the result across all elements in the current bulk.\n\n if (scrollTopLeft === undefined) {\n const transform = win.getComputedStyle(element).transform;\n\n if (transform && transform !== \"none\") {\n scrollTopLeft = {\n scrollTop: element.scrollTop,\n scrollLeft: element.scrollLeft\n };\n }\n\n scrollTopLeftCache.set(element, scrollTopLeft || null);\n }\n\n if (scrollTopLeft) {\n newTransformElements.add(element);\n\n if (!transformElements.has(element)) {\n element.addEventListener(\"scroll\", this._addTransformOffsets);\n }\n\n scrollTop += scrollTopLeft.scrollTop;\n scrollLeft += scrollTopLeft.scrollLeft;\n }\n }\n\n for (const el of transformElements) {\n if (!newTransformElements.has(el)) {\n el.removeEventListener(\"scroll\", this._addTransformOffsets);\n }\n }\n\n this._transformElements = newTransformElements;\n return () => {\n var _a, _b;\n\n (_a = this._firstDummy) === null || _a === void 0 ? void 0 : _a.setTopLeft(scrollTop, scrollLeft);\n (_b = this._lastDummy) === null || _b === void 0 ? void 0 : _b.setTopLeft(scrollTop, scrollLeft);\n };\n };\n\n const el = element.get();\n\n if (!el) {\n throw new Error(\"No element\");\n }\n\n this._tabster = tabster;\n this._getWindow = tabster.getWindow;\n this._callForDefaultAction = callForDefaultAction;\n const instance = el.__tabsterDummy;\n\n (instance || this)._wrappers.push({\n manager,\n priority,\n tabbable: true\n });\n\n if (instance) {\n if (process.env.NODE_ENV === 'development') {\n this._firstDummy && setDummyInputDebugValue(this._firstDummy, instance._wrappers);\n this._lastDummy && setDummyInputDebugValue(this._lastDummy, instance._wrappers);\n }\n\n return instance;\n }\n\n el.__tabsterDummy = this; // Some elements allow only specific types of direct descendants and we need to\n // put our dummy inputs inside or outside of the element accordingly.\n\n const forcedDummyPosition = sys === null || sys === void 0 ? void 0 : sys.dummyInputsPosition;\n const tagName = el.tagName;\n this._isOutside = !forcedDummyPosition ? (outsideByDefault || tagName === \"UL\" || tagName === \"OL\" || tagName === \"TABLE\") && !(tagName === \"LI\" || tagName === \"TD\" || tagName === \"TH\") : forcedDummyPosition === SysDummyInputsPositions.Outside;\n this._firstDummy = new DummyInput(this._getWindow, this._isOutside, {\n isFirst: true\n }, element);\n this._lastDummy = new DummyInput(this._getWindow, this._isOutside, {\n isFirst: false\n }, element); // We will be checking dummy input parents to see if their child list have changed.\n // So, it is enough to have just one of the inputs observed, because\n // both dummy inputs always have the same parent.\n\n const dummyElement = this._firstDummy.input;\n dummyElement && tabster._dummyObserver.add(dummyElement, this._addDummyInputs);\n this._firstDummy.onFocusIn = this._onFocusIn;\n this._firstDummy.onFocusOut = this._onFocusOut;\n this._lastDummy.onFocusIn = this._onFocusIn;\n this._lastDummy.onFocusOut = this._onFocusOut;\n this._element = element;\n\n this._addDummyInputs();\n }\n\n dispose(manager, force) {\n var _a, _b, _c, _d;\n\n const wrappers = this._wrappers = this._wrappers.filter(w => w.manager !== manager && !force);\n\n if (process.env.NODE_ENV === 'development') {\n this._firstDummy && setDummyInputDebugValue(this._firstDummy, wrappers);\n this._lastDummy && setDummyInputDebugValue(this._lastDummy, wrappers);\n }\n\n if (wrappers.length === 0) {\n delete ((_a = this._element) === null || _a === void 0 ? void 0 : _a.get()).__tabsterDummy;\n\n for (const el of this._transformElements) {\n el.removeEventListener(\"scroll\", this._addTransformOffsets);\n }\n\n this._transformElements.clear();\n\n const win = this._getWindow();\n\n if (this._addTimer) {\n win.clearTimeout(this._addTimer);\n delete this._addTimer;\n }\n\n const dummyElement = (_b = this._firstDummy) === null || _b === void 0 ? void 0 : _b.input;\n dummyElement && this._tabster._dummyObserver.remove(dummyElement);\n (_c = this._firstDummy) === null || _c === void 0 ? void 0 : _c.dispose();\n (_d = this._lastDummy) === null || _d === void 0 ? void 0 : _d.dispose();\n }\n }\n\n _onFocus(isIn, dummyInput, isBackward, relatedTarget) {\n var _a;\n\n const wrapper = this._getCurrent();\n\n if (wrapper && (!dummyInput.useDefaultAction || this._callForDefaultAction)) {\n (_a = wrapper.manager.getHandler(isIn)) === null || _a === void 0 ? void 0 : _a(dummyInput, isBackward, relatedTarget);\n }\n }\n\n _getCurrent() {\n this._wrappers.sort((a, b) => {\n if (a.tabbable !== b.tabbable) {\n return a.tabbable ? -1 : 1;\n }\n\n return a.priority - b.priority;\n });\n\n return this._wrappers[0];\n }\n\n _ensurePosition() {\n var _a, _b, _c;\n\n const element = (_a = this._element) === null || _a === void 0 ? void 0 : _a.get();\n const firstDummyInput = (_b = this._firstDummy) === null || _b === void 0 ? void 0 : _b.input;\n const lastDummyInput = (_c = this._lastDummy) === null || _c === void 0 ? void 0 : _c.input;\n\n if (!element || !firstDummyInput || !lastDummyInput) {\n return;\n }\n\n if (this._isOutside) {\n const elementParent = dom.getParentNode(element);\n\n if (elementParent) {\n const nextSibling = dom.getNextSibling(element);\n\n if (nextSibling !== lastDummyInput) {\n dom.insertBefore(elementParent, lastDummyInput, nextSibling);\n }\n\n if (dom.getPreviousElementSibling(element) !== firstDummyInput) {\n dom.insertBefore(elementParent, firstDummyInput, element);\n }\n }\n } else {\n if (dom.getLastElementChild(element) !== lastDummyInput) {\n dom.appendChild(element, lastDummyInput);\n }\n\n const firstElementChild = dom.getFirstElementChild(element);\n\n if (firstElementChild && firstElementChild !== firstDummyInput && firstElementChild.parentNode) {\n dom.insertBefore(firstElementChild.parentNode, firstDummyInput, firstElementChild);\n }\n }\n }\n\n}\n\nfunction getLastChild$2(container) {\n let lastChild = null;\n\n for (let i = dom.getLastElementChild(container); i; i = dom.getLastElementChild(i)) {\n lastChild = i;\n }\n\n return lastChild || undefined;\n}\nfunction getAdjacentElement(from, prev) {\n let cur = from;\n let adjacent = null;\n\n while (cur && !adjacent) {\n adjacent = prev ? dom.getPreviousElementSibling(cur) : dom.getNextElementSibling(cur);\n cur = dom.getParentElement(cur);\n }\n\n return adjacent || undefined;\n}\nfunction augmentAttribute(tabster, element, name, value // Restore original value when undefined.\n) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const entry = tabster.storageEntry(element, true);\n let ret = false;\n\n if (!entry.aug) {\n if (value === undefined) {\n return ret;\n }\n\n entry.aug = {};\n }\n\n if (value === undefined) {\n if (name in entry.aug) {\n const origVal = entry.aug[name];\n delete entry.aug[name];\n\n if (origVal === null) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, origVal);\n }\n\n ret = true;\n }\n } else {\n let origValue;\n\n if (!(name in entry.aug)) {\n origValue = element.getAttribute(name);\n }\n\n if (origValue !== undefined && origValue !== value) {\n entry.aug[name] = origValue;\n\n if (value === null) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value);\n }\n\n ret = true;\n }\n }\n\n if (value === undefined && Object.keys(entry.aug).length === 0) {\n delete entry.aug;\n tabster.storageEntry(element, false);\n }\n\n return ret;\n}\nfunction isDisplayNone(element) {\n var _a, _b;\n\n const elementDocument = element.ownerDocument;\n const computedStyle = (_a = elementDocument.defaultView) === null || _a === void 0 ? void 0 : _a.getComputedStyle(element); // offsetParent is null for elements with display:none, display:fixed and for .\n\n if (element.offsetParent === null && elementDocument.body !== element && (computedStyle === null || computedStyle === void 0 ? void 0 : computedStyle.position) !== \"fixed\") {\n return true;\n } // For our purposes of looking for focusable elements, visibility:hidden has the same\n // effect as display:none.\n\n\n if ((computedStyle === null || computedStyle === void 0 ? void 0 : computedStyle.visibility) === \"hidden\") {\n return true;\n } // if an element has display: fixed, we need to check if it is also hidden with CSS,\n // or within a parent hidden with CSS\n\n\n if ((computedStyle === null || computedStyle === void 0 ? void 0 : computedStyle.position) === \"fixed\") {\n if (computedStyle.display === \"none\") {\n return true;\n }\n\n if (((_b = element.parentElement) === null || _b === void 0 ? void 0 : _b.offsetParent) === null && elementDocument.body !== element.parentElement) {\n return true;\n }\n }\n\n return false;\n}\nfunction isRadio(element) {\n return element.tagName === \"INPUT\" && !!element.name && element.type === \"radio\";\n}\nfunction getRadioButtonGroup(element) {\n if (!isRadio(element)) {\n return;\n }\n\n const name = element.name;\n let radioButtons = Array.from(dom.getElementsByName(element, name));\n let checked;\n radioButtons = radioButtons.filter(el => {\n if (isRadio(el)) {\n if (el.checked) {\n checked = el;\n }\n\n return true;\n }\n\n return false;\n });\n return {\n name,\n buttons: new Set(radioButtons),\n checked\n };\n}\n/**\r\n * If the passed element is Tabster dummy input, returns the container element this dummy input belongs to.\r\n * @param element Element to check for being dummy input.\r\n * @returns Dummy input container element (if the passed element is a dummy input) or null.\r\n */\n\nfunction getDummyInputContainer(element) {\n var _a;\n\n return ((_a = element === null || element === void 0 ? void 0 : element.__tabsterDummyContainer) === null || _a === void 0 ? void 0 : _a.get()) || null;\n}\n\n/*!\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\nfunction getTabsterAttribute(props, plain) {\n const attr = JSON.stringify(props);\n\n if (plain === true) {\n return attr;\n }\n\n return {\n [TABSTER_ATTRIBUTE_NAME]: attr\n };\n}\n/**\r\n * Updates Tabster props object with new props.\r\n * @param element an element to set data-tabster attribute on.\r\n * @param props current Tabster props to update.\r\n * @param newProps new Tabster props to add.\r\n * When the value of a property in newProps is undefined, the property\r\n * will be removed from the attribute.\r\n */\n\nfunction mergeTabsterProps(props, newProps) {\n for (const key of Object.keys(newProps)) {\n const value = newProps[key];\n\n if (value) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n props[key] = value;\n } else {\n delete props[key];\n }\n }\n}\n/**\r\n * Sets or updates Tabster attribute of the element.\r\n * @param element an element to set data-tabster attribute on.\r\n * @param newProps new Tabster props to set.\r\n * @param update if true, newProps will be merged with the existing props.\r\n * When true and the value of a property in newProps is undefined, the property\r\n * will be removed from the attribute.\r\n */\n\nfunction setTabsterAttribute(element, newProps, update) {\n let props;\n\n if (update) {\n const attr = element.getAttribute(TABSTER_ATTRIBUTE_NAME);\n\n if (attr) {\n try {\n props = JSON.parse(attr);\n } catch (e) {\n if (process.env.NODE_ENV === 'development') {\n console.error(`data-tabster attribute error: ${e}`, element);\n }\n }\n }\n }\n\n if (!props) {\n props = {};\n }\n\n mergeTabsterProps(props, newProps);\n\n if (Object.keys(props).length > 0) {\n element.setAttribute(TABSTER_ATTRIBUTE_NAME, getTabsterAttribute(props, true));\n } else {\n element.removeAttribute(TABSTER_ATTRIBUTE_NAME);\n }\n}\n\n/*!\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\n\nfunction _setInformativeStyle$3(weakElement, remove, id) {\n if (process.env.NODE_ENV === 'development') {\n const element = weakElement.get();\n\n if (element) {\n if (remove) {\n element.style.removeProperty(\"--tabster-root\");\n } else {\n element.style.setProperty(\"--tabster-root\", id + \",\");\n }\n }\n }\n}\n\nclass RootDummyManager extends DummyInputManager {\n constructor(tabster, element, setFocused, sys) {\n super(tabster, element, DummyInputManagerPriorities.Root, sys, undefined, true);\n\n this._onDummyInputFocus = dummyInput => {\n var _a;\n\n if (dummyInput.useDefaultAction) {\n // When we've reached the last focusable element, we want to let the browser\n // to move the focus outside of the page. In order to do that we're synchronously\n // calling focus() of the dummy input from the Tab key handler and allowing\n // the default action to move the focus out.\n this._setFocused(false);\n } else {\n // The only way a dummy input gets focused is during the keyboard navigation.\n this._tabster.keyboardNavigation.setNavigatingWithKeyboard(true);\n\n const element = this._element.get();\n\n if (element) {\n this._setFocused(true);\n\n const toFocus = this._tabster.focusedElement.getFirstOrLastTabbable(dummyInput.isFirst, {\n container: element,\n ignoreAccessibility: true\n });\n\n if (toFocus) {\n nativeFocus(toFocus);\n return;\n }\n }\n\n (_a = dummyInput.input) === null || _a === void 0 ? void 0 : _a.blur();\n }\n };\n\n this._setHandlers(this._onDummyInputFocus);\n\n this._tabster = tabster;\n this._setFocused = setFocused;\n }\n\n}\n\nclass Root extends TabsterPart {\n constructor(tabster, element, onDispose, props, sys) {\n super(tabster, element, props);\n this._isFocused = false;\n\n this._setFocused = hasFocused => {\n var _a;\n\n if (this._setFocusedTimer) {\n this._tabster.getWindow().clearTimeout(this._setFocusedTimer);\n\n delete this._setFocusedTimer;\n }\n\n if (this._isFocused === hasFocused) {\n return;\n }\n\n const element = this._element.get();\n\n if (element) {\n if (hasFocused) {\n this._isFocused = true;\n (_a = this._dummyManager) === null || _a === void 0 ? void 0 : _a.setTabbable(false);\n element.dispatchEvent(new RootFocusEvent({\n element\n }));\n } else {\n this._setFocusedTimer = this._tabster.getWindow().setTimeout(() => {\n var _a;\n\n delete this._setFocusedTimer;\n this._isFocused = false;\n (_a = this._dummyManager) === null || _a === void 0 ? void 0 : _a.setTabbable(true);\n element.dispatchEvent(new RootBlurEvent({\n element\n }));\n }, 0);\n }\n }\n };\n\n this._onFocusIn = event => {\n const getParent = this._tabster.getParent;\n\n const rootElement = this._element.get();\n\n let curElement = event.composedPath()[0];\n\n do {\n if (curElement === rootElement) {\n this._setFocused(true);\n\n return;\n }\n\n curElement = curElement && getParent(curElement);\n } while (curElement);\n };\n\n this._onFocusOut = () => {\n this._setFocused(false);\n };\n\n this._onDispose = onDispose;\n const win = tabster.getWindow;\n this.uid = getElementUId(win, element);\n this._sys = sys;\n\n if (tabster.controlTab || tabster.rootDummyInputs) {\n this.addDummyInputs();\n }\n\n const w = win();\n const doc = w.document;\n doc.addEventListener(KEYBORG_FOCUSIN, this._onFocusIn);\n doc.addEventListener(KEYBORG_FOCUSOUT, this._onFocusOut);\n\n this._add();\n }\n\n addDummyInputs() {\n if (!this._dummyManager) {\n this._dummyManager = new RootDummyManager(this._tabster, this._element, this._setFocused, this._sys);\n }\n }\n\n dispose() {\n var _a;\n\n this._onDispose(this);\n\n const win = this._tabster.getWindow();\n\n const doc = win.document;\n doc.removeEventListener(KEYBORG_FOCUSIN, this._onFocusIn);\n doc.removeEventListener(KEYBORG_FOCUSOUT, this._onFocusOut);\n\n if (this._setFocusedTimer) {\n win.clearTimeout(this._setFocusedTimer);\n delete this._setFocusedTimer;\n }\n\n (_a = this._dummyManager) === null || _a === void 0 ? void 0 : _a.dispose();\n\n this._remove();\n }\n\n moveOutWithDefaultAction(isBackward, relatedEvent) {\n const dummyManager = this._dummyManager;\n\n if (dummyManager) {\n dummyManager.moveOutWithDefaultAction(isBackward, relatedEvent);\n } else {\n const el = this.getElement();\n\n if (el) {\n RootDummyManager.moveWithPhantomDummy(this._tabster, el, true, isBackward, relatedEvent);\n }\n }\n }\n\n _add() {\n if (process.env.NODE_ENV === 'development') {\n _setInformativeStyle$3(this._element, false, this.uid);\n }\n }\n\n _remove() {\n if (process.env.NODE_ENV === 'development') {\n _setInformativeStyle$3(this._element, true);\n }\n }\n\n} // eslint-disable-next-line @typescript-eslint/no-unused-vars\n\nclass RootAPI {\n constructor(tabster, autoRoot) {\n this._autoRootWaiting = false;\n this._roots = {};\n this._forceDummy = false;\n this.rootById = {};\n\n this._autoRootCreate = () => {\n var _a;\n\n const doc = this._win().document;\n\n const body = doc.body;\n\n if (body) {\n this._autoRootUnwait(doc);\n\n const props = this._autoRoot;\n\n if (props) {\n setTabsterAttribute(body, {\n root: props\n }, true);\n updateTabsterByAttribute(this._tabster, body);\n return (_a = getTabsterOnElement(this._tabster, body)) === null || _a === void 0 ? void 0 : _a.root;\n }\n } else if (!this._autoRootWaiting) {\n this._autoRootWaiting = true;\n doc.addEventListener(\"readystatechange\", this._autoRootCreate);\n }\n\n return undefined;\n };\n\n this._onRootDispose = root => {\n delete this._roots[root.id];\n };\n\n this._tabster = tabster;\n this._win = tabster.getWindow;\n this._autoRoot = autoRoot;\n tabster.queueInit(() => {\n if (this._autoRoot) {\n this._autoRootCreate();\n }\n });\n }\n\n _autoRootUnwait(doc) {\n doc.removeEventListener(\"readystatechange\", this._autoRootCreate);\n this._autoRootWaiting = false;\n }\n\n dispose() {\n const win = this._win();\n\n this._autoRootUnwait(win.document);\n\n delete this._autoRoot;\n Object.keys(this._roots).forEach(rootId => {\n if (this._roots[rootId]) {\n this._roots[rootId].dispose();\n\n delete this._roots[rootId];\n }\n });\n this.rootById = {};\n }\n\n createRoot(element, props, sys) {\n if (process.env.NODE_ENV === 'development') ;\n\n const newRoot = new Root(this._tabster, element, this._onRootDispose, props, sys);\n this._roots[newRoot.id] = newRoot;\n\n if (this._forceDummy) {\n newRoot.addDummyInputs();\n }\n\n return newRoot;\n }\n\n addDummyInputs() {\n this._forceDummy = true;\n const roots = this._roots;\n\n for (const id of Object.keys(roots)) {\n roots[id].addDummyInputs();\n }\n }\n\n static getRootByUId(getWindow, id) {\n const tabster = getWindow().__tabsterInstance;\n\n return tabster && tabster.root.rootById[id];\n }\n /**\r\n * Fetches the tabster context for an element walking up its ancestors\r\n *\r\n * @param tabster Tabster instance\r\n * @param element The element the tabster context should represent\r\n * @param options Additional options\r\n * @returns undefined if the element is not a child of a tabster root, otherwise all applicable tabster behaviours and configurations\r\n */\n\n\n static getTabsterContext(tabster, element, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _a, _b, _c, _d;\n\n if (!element.ownerDocument) {\n return undefined;\n }\n\n const {\n checkRtl,\n referenceElement\n } = options;\n const getParent = tabster.getParent; // Normally, the initialization starts on the next tick after the tabster\n // instance creation. However, if the application starts using it before\n // the next tick, we need to make sure the initialization is done.\n\n tabster.drainInitQueue();\n let root;\n let modalizer;\n let groupper;\n let mover;\n let excludedFromMover = false;\n let groupperBeforeMover;\n let modalizerInGroupper;\n let dirRightToLeft;\n let uncontrolled;\n let curElement = referenceElement || element;\n const ignoreKeydown = {};\n\n while (curElement && (!root || checkRtl)) {\n const tabsterOnElement = getTabsterOnElement(tabster, curElement);\n\n if (checkRtl && dirRightToLeft === undefined) {\n const dir = curElement.dir;\n\n if (dir) {\n dirRightToLeft = dir.toLowerCase() === \"rtl\";\n }\n }\n\n if (!tabsterOnElement) {\n curElement = getParent(curElement);\n continue;\n }\n\n const tagName = curElement.tagName;\n\n if (tabsterOnElement.uncontrolled || tagName === \"IFRAME\" || tagName === \"WEBVIEW\") {\n uncontrolled = curElement;\n }\n\n if (!mover && ((_a = tabsterOnElement.focusable) === null || _a === void 0 ? void 0 : _a.excludeFromMover) && !groupper) {\n excludedFromMover = true;\n }\n\n const curModalizer = tabsterOnElement.modalizer;\n const curGroupper = tabsterOnElement.groupper;\n const curMover = tabsterOnElement.mover;\n\n if (!modalizer && curModalizer) {\n modalizer = curModalizer;\n }\n\n if (!groupper && curGroupper && (!modalizer || curModalizer)) {\n if (modalizer) {\n // Modalizer dominates the groupper when they are on the same node and the groupper is active.\n if (!curGroupper.isActive() && curGroupper.getProps().tabbability && modalizer.userId !== ((_b = tabster.modalizer) === null || _b === void 0 ? void 0 : _b.activeId)) {\n modalizer = undefined;\n groupper = curGroupper;\n }\n\n modalizerInGroupper = curGroupper;\n } else {\n groupper = curGroupper;\n }\n }\n\n if (!mover && curMover && (!modalizer || curModalizer) && (!curGroupper || curElement !== element) && curElement.contains(element) // Mover makes sense only for really inside elements, not for virutal out of the DOM order children.\n ) {\n mover = curMover;\n groupperBeforeMover = !!groupper && groupper !== curGroupper;\n }\n\n if (tabsterOnElement.root) {\n root = tabsterOnElement.root;\n }\n\n if ((_c = tabsterOnElement.focusable) === null || _c === void 0 ? void 0 : _c.ignoreKeydown) {\n Object.assign(ignoreKeydown, tabsterOnElement.focusable.ignoreKeydown);\n }\n\n curElement = getParent(curElement);\n } // No root element could be found, try to get an auto root\n\n\n if (!root) {\n const rootAPI = tabster.root;\n const autoRoot = rootAPI._autoRoot;\n\n if (autoRoot) {\n if ((_d = element.ownerDocument) === null || _d === void 0 ? void 0 : _d.body) {\n root = rootAPI._autoRootCreate();\n }\n }\n }\n\n if (groupper && !mover) {\n groupperBeforeMover = true;\n }\n\n if (process.env.NODE_ENV === 'development' && !root) {\n if (modalizer || groupper || mover) {\n console.error(\"Tabster Root is required for Mover, Groupper and Modalizer to work.\");\n }\n }\n\n const shouldIgnoreKeydown = event => !!ignoreKeydown[event.key];\n\n return root ? {\n root,\n modalizer,\n groupper,\n mover,\n groupperBeforeMover,\n modalizerInGroupper,\n rtl: checkRtl ? !!dirRightToLeft : undefined,\n uncontrolled,\n excludedFromMover,\n ignoreKeydown: shouldIgnoreKeydown\n } : undefined;\n }\n\n static getRoot(tabster, element) {\n var _a;\n\n const getParent = tabster.getParent;\n\n for (let el = element; el; el = getParent(el)) {\n const root = (_a = getTabsterOnElement(tabster, el)) === null || _a === void 0 ? void 0 : _a.root;\n\n if (root) {\n return root;\n }\n }\n\n return undefined;\n }\n\n onRoot(root, removed) {\n if (removed) {\n delete this.rootById[root.uid];\n } else {\n this.rootById[root.uid] = root;\n }\n }\n\n}\n\n/*!\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\nconst _containerHistoryLength = 10;\nclass DeloserItemBase {}\nclass DeloserItem extends DeloserItemBase {\n constructor(tabster, deloser) {\n super();\n this.uid = deloser.uid;\n this._tabster = tabster;\n this._deloser = deloser;\n }\n\n belongsTo(deloser) {\n return deloser === this._deloser;\n }\n\n unshift(element) {\n this._deloser.unshift(element);\n }\n\n async focusAvailable() {\n const available = this._deloser.findAvailable();\n\n const deloserElement = this._deloser.getElement();\n\n if (available && deloserElement) {\n if (!deloserElement.dispatchEvent(new TabsterMoveFocusEvent({\n by: \"deloser\",\n owner: deloserElement,\n next: available\n }))) {\n // Default action is prevented, don't look further.\n return null;\n }\n\n return this._tabster.focusedElement.focus(available);\n }\n\n return false;\n }\n\n async resetFocus() {\n const getWindow = this._tabster.getWindow;\n return getPromise(getWindow).resolve(this._deloser.resetFocus());\n }\n\n}\nclass DeloserHistoryByRootBase {\n constructor(tabster, rootUId) {\n this._history = [];\n this._tabster = tabster;\n this.rootUId = rootUId;\n }\n\n getLength() {\n return this._history.length;\n }\n\n removeDeloser(deloser) {\n this._history = this._history.filter(c => !c.belongsTo(deloser));\n }\n\n hasDeloser(deloser) {\n return this._history.some(d => d.belongsTo(deloser));\n }\n\n}\n\nclass DeloserHistoryByRoot extends DeloserHistoryByRootBase {\n unshiftToDeloser(deloser, element) {\n let item;\n\n for (let i = 0; i < this._history.length; i++) {\n if (this._history[i].belongsTo(deloser)) {\n item = this._history[i];\n\n this._history.splice(i, 1);\n\n break;\n }\n }\n\n if (!item) {\n item = new DeloserItem(this._tabster, deloser);\n }\n\n item.unshift(element);\n\n this._history.unshift(item);\n\n this._history.splice(_containerHistoryLength, this._history.length - _containerHistoryLength);\n }\n\n async focusAvailable(from) {\n let skip = !!from;\n\n for (const i of this._history) {\n if (from && i.belongsTo(from)) {\n skip = false;\n }\n\n if (!skip) {\n const result = await i.focusAvailable(); // Result is null when the default action is prevented by the application\n // and we don't need to look further.\n\n if (result || result === null) {\n return result;\n }\n }\n }\n\n return false;\n }\n\n async resetFocus(from) {\n let skip = !!from;\n const resetQueue = {};\n\n for (const i of this._history) {\n if (from && i.belongsTo(from)) {\n skip = false;\n }\n\n if (!skip && !resetQueue[i.uid]) {\n resetQueue[i.uid] = i;\n }\n } // Nothing is found, at least try to reset.\n\n\n for (const id of Object.keys(resetQueue)) {\n if (await resetQueue[id].resetFocus()) {\n return true;\n }\n }\n\n return false;\n }\n\n}\n\nclass DeloserHistory {\n constructor(tabster) {\n // eslint-disable-next-line @typescript-eslint/ban-types\n this._history = [];\n this._tabster = tabster;\n }\n\n dispose() {\n this._history = [];\n }\n\n process(element) {\n var _a;\n\n const ctx = RootAPI.getTabsterContext(this._tabster, element);\n const rootUId = ctx && ctx.root.uid;\n const deloser = DeloserAPI.getDeloser(this._tabster, element);\n\n if (!rootUId || !deloser) {\n return undefined;\n }\n\n const historyByRoot = this.make(rootUId, () => new DeloserHistoryByRoot(this._tabster, rootUId));\n\n if (!ctx || !ctx.modalizer || ((_a = ctx.modalizer) === null || _a === void 0 ? void 0 : _a.isActive())) {\n historyByRoot.unshiftToDeloser(deloser, element);\n }\n\n return deloser;\n }\n\n make(rootUId, createInstance) {\n let historyByRoot;\n\n for (let i = 0; i < this._history.length; i++) {\n const hbr = this._history[i];\n\n if (hbr.rootUId === rootUId) {\n historyByRoot = hbr;\n\n this._history.splice(i, 1);\n\n break;\n }\n }\n\n if (!historyByRoot) {\n historyByRoot = createInstance();\n }\n\n this._history.unshift(historyByRoot);\n\n this._history.splice(_containerHistoryLength, this._history.length - _containerHistoryLength);\n\n return historyByRoot;\n }\n\n removeDeloser(deloser) {\n this._history.forEach(i => {\n i.removeDeloser(deloser);\n });\n\n this._history = this._history.filter(i => i.getLength() > 0);\n }\n\n async focusAvailable(from) {\n let skip = !!from;\n\n for (const h of this._history) {\n if (from && h.hasDeloser(from)) {\n skip = false;\n }\n\n if (!skip) {\n const result = await h.focusAvailable(from); // Result is null when the default action is prevented by the application\n // and we don't need to look further.\n\n if (result || result === null) {\n return result;\n }\n }\n }\n\n return false;\n }\n\n async resetFocus(from) {\n let skip = !!from;\n\n for (const h of this._history) {\n if (from && h.hasDeloser(from)) {\n skip = false;\n }\n\n if (!skip && (await h.resetFocus(from))) {\n return true;\n }\n }\n\n return false;\n }\n\n}\n\nfunction _setInformativeStyle$2(weakElement, remove, isActive, snapshotIndex) {\n if (process.env.NODE_ENV === 'development') {\n const element = weakElement.get();\n\n if (element) {\n if (remove) {\n element.style.removeProperty(\"--tabster-deloser\");\n } else {\n element.style.setProperty(\"--tabster-deloser\", (isActive ? \"active\" : \"inactive\") + \",\" + (\"snapshot-\" + snapshotIndex));\n }\n }\n }\n}\n\nfunction buildElementSelector(element, withClass, withIndex) {\n const selector = [];\n const escapeRegExp = /(:|\\.|\\[|\\]|,|=|@)/g;\n const escapeReplaceValue = \"\\\\$1\";\n const elementId = element.getAttribute(\"id\");\n\n if (elementId) {\n selector.push(\"#\" + elementId.replace(escapeRegExp, escapeReplaceValue));\n }\n\n if (withClass !== false && element.className) {\n element.className.split(\" \").forEach(cls => {\n cls = cls.trim();\n\n if (cls) {\n selector.push(\".\" + cls.replace(escapeRegExp, escapeReplaceValue));\n }\n });\n }\n\n let index = 0;\n let el;\n\n if (withIndex !== false && selector.length === 0) {\n el = element;\n\n while (el) {\n index++;\n el = el.previousElementSibling;\n }\n\n selector.unshift(\":nth-child(\" + index + \")\");\n }\n\n selector.unshift(element.tagName.toLowerCase());\n return selector.join(\"\");\n}\n\nfunction buildSelector(element) {\n if (!documentContains(element.ownerDocument, element)) {\n return undefined;\n }\n\n const selector = [buildElementSelector(element)];\n let node = dom.getParentNode(element);\n\n while (node && node.nodeType !== Node.DOCUMENT_FRAGMENT_NODE) {\n // Stop at the shadow root as cross shadow selectors won't work.\n if (node.nodeType === Node.ELEMENT_NODE) {\n const isBody = node.tagName === \"BODY\";\n selector.unshift(buildElementSelector(node, false, !isBody));\n\n if (isBody) {\n break;\n }\n }\n\n node = dom.getParentNode(node);\n }\n\n return selector.join(\" \");\n}\n\nclass Deloser extends TabsterPart {\n constructor(tabster, element, onDispose, props) {\n super(tabster, element, props);\n this._isActive = false;\n this._history = [[]];\n this._snapshotIndex = 0;\n\n this.isActive = () => {\n return this._isActive;\n };\n\n this.setSnapshot = index => {\n this._snapshotIndex = index;\n\n if (this._history.length > index + 1) {\n this._history.splice(index + 1, this._history.length - index - 1);\n }\n\n if (!this._history[index]) {\n this._history[index] = [];\n }\n\n if (process.env.NODE_ENV === 'development') {\n _setInformativeStyle$2(this._element, false, this._isActive, this._snapshotIndex);\n }\n };\n\n this.focusFirst = () => {\n const e = this._element.get();\n\n return !!e && this._tabster.focusedElement.focusFirst({\n container: e\n });\n };\n\n this.focusDefault = () => {\n const e = this._element.get();\n\n return !!e && this._tabster.focusedElement.focusDefault(e);\n };\n\n this.resetFocus = () => {\n const e = this._element.get();\n\n return !!e && this._tabster.focusedElement.resetFocus(e);\n };\n\n this.clearHistory = preserveExisting => {\n const element = this._element.get();\n\n if (!element) {\n this._history[this._snapshotIndex] = [];\n return;\n }\n\n this._history[this._snapshotIndex] = this._history[this._snapshotIndex].filter(we => {\n const e = we.get();\n return e && preserveExisting ? dom.nodeContains(element, e) : false;\n });\n };\n\n this.uid = getElementUId(tabster.getWindow, element);\n this.strategy = props.strategy || DeloserStrategies.Auto;\n this._onDispose = onDispose;\n\n if (process.env.NODE_ENV === 'development') {\n _setInformativeStyle$2(this._element, false, this._isActive, this._snapshotIndex);\n }\n }\n\n dispose() {\n this._remove();\n\n this._onDispose(this);\n\n this._isActive = false;\n this._snapshotIndex = 0;\n this._props = {};\n this._history = [];\n }\n\n setActive(active) {\n this._isActive = active;\n\n if (process.env.NODE_ENV === 'development') {\n _setInformativeStyle$2(this._element, false, this._isActive, this._snapshotIndex);\n }\n }\n\n getActions() {\n return {\n focusDefault: this.focusDefault,\n focusFirst: this.focusFirst,\n resetFocus: this.resetFocus,\n clearHistory: this.clearHistory,\n setSnapshot: this.setSnapshot,\n isActive: this.isActive\n };\n }\n\n unshift(element) {\n let cur = this._history[this._snapshotIndex];\n cur = this._history[this._snapshotIndex] = cur.filter(we => {\n const e = we.get();\n return e && e !== element;\n });\n cur.unshift(new WeakHTMLElement(this._tabster.getWindow, element, buildSelector(element)));\n\n while (cur.length > _containerHistoryLength) {\n cur.pop();\n }\n }\n\n findAvailable() {\n const element = this._element.get();\n\n if (!element || !this._tabster.focusable.isVisible(element)) {\n return null;\n }\n\n let restoreFocusOrder = this._props.restoreFocusOrder;\n let available = null;\n const ctx = RootAPI.getTabsterContext(this._tabster, element);\n\n if (!ctx) {\n return null;\n }\n\n const root = ctx.root;\n const rootElement = root.getElement();\n\n if (!rootElement) {\n return null;\n }\n\n if (restoreFocusOrder === undefined) {\n restoreFocusOrder = root.getProps().restoreFocusOrder;\n }\n\n if (restoreFocusOrder === RestoreFocusOrders.RootDefault) {\n available = this._tabster.focusable.findDefault({\n container: rootElement\n });\n }\n\n if (!available && restoreFocusOrder === RestoreFocusOrders.RootFirst) {\n available = this._findFirst(rootElement);\n }\n\n if (available) {\n return available;\n }\n\n const availableInHistory = this._findInHistory();\n\n if (availableInHistory && restoreFocusOrder === RestoreFocusOrders.History) {\n return availableInHistory;\n }\n\n const availableDefault = this._tabster.focusable.findDefault({\n container: element\n });\n\n if (availableDefault && restoreFocusOrder === RestoreFocusOrders.DeloserDefault) {\n return availableDefault;\n }\n\n const availableFirst = this._findFirst(element);\n\n if (availableFirst && restoreFocusOrder === RestoreFocusOrders.DeloserFirst) {\n return availableFirst;\n }\n\n return availableDefault || availableInHistory || availableFirst || null;\n }\n\n customFocusLostHandler(element) {\n return element.dispatchEvent(new DeloserFocusLostEvent(this.getActions()));\n }\n\n _findInHistory() {\n const cur = this._history[this._snapshotIndex].slice(0);\n\n this.clearHistory(true);\n\n for (let i = 0; i < cur.length; i++) {\n const we = cur[i];\n const e = we.get();\n\n const element = this._element.get();\n\n if (e && element && dom.nodeContains(element, e)) {\n if (this._tabster.focusable.isFocusable(e)) {\n return e;\n }\n } else if (!this._props.noSelectorCheck) {\n // Element is not in the DOM, try to locate the node by it's\n // selector. This might return not exactly the right node,\n // but it would be easily fixable by having more detailed selectors.\n const selector = we.getData();\n\n if (selector && element) {\n let els;\n\n try {\n els = dom.querySelectorAll(element.ownerDocument, selector);\n } catch (e) {\n if (process.env.NODE_ENV === 'development') {\n // This should never happen, unless there is some bug in buildElementSelector().\n console.error(`Failed to querySelectorAll('${selector}')`);\n }\n\n continue;\n }\n\n for (let i = 0; i < els.length; i++) {\n const el = els[i];\n\n if (el && this._tabster.focusable.isFocusable(el)) {\n return el;\n }\n }\n }\n }\n }\n\n return null;\n }\n\n _findFirst(element) {\n if (this._tabster.keyboardNavigation.isNavigatingWithKeyboard()) {\n const first = this._tabster.focusable.findFirst({\n container: element,\n useActiveModalizer: true\n });\n\n if (first) {\n return first;\n }\n }\n\n return null;\n }\n\n _remove() {\n if (process.env.NODE_ENV === 'development') {\n _setInformativeStyle$2(this._element, true);\n }\n }\n\n} // eslint-disable-next-line @typescript-eslint/no-unused-vars\n\nclass DeloserAPI {\n constructor(tabster, props) {\n /**\r\n * Tracks if focus is inside a deloser\r\n */\n this._inDeloser = false;\n this._isRestoringFocus = false;\n this._isPaused = false;\n\n this._onRestoreFocus = event => {\n var _a;\n\n const target = event.composedPath()[0];\n\n if (target) {\n const available = (_a = DeloserAPI.getDeloser(this._tabster, target)) === null || _a === void 0 ? void 0 : _a.findAvailable();\n\n if (available) {\n this._tabster.focusedElement.focus(available);\n }\n\n event.stopImmediatePropagation();\n }\n };\n\n this._onFocus = e => {\n if (this._restoreFocusTimer) {\n this._win().clearTimeout(this._restoreFocusTimer);\n\n this._restoreFocusTimer = undefined;\n }\n\n if (!e) {\n this._scheduleRestoreFocus();\n\n return;\n }\n\n const deloser = this._history.process(e);\n\n if (deloser) {\n this._activate(deloser);\n } else {\n this._deactivate();\n }\n };\n\n this._onDeloserDispose = deloser => {\n this._history.removeDeloser(deloser);\n\n if (deloser.isActive()) {\n this._scheduleRestoreFocus();\n }\n };\n\n this._tabster = tabster;\n this._win = tabster.getWindow;\n this._history = new DeloserHistory(tabster);\n tabster.queueInit(() => {\n this._tabster.focusedElement.subscribe(this._onFocus);\n\n const doc = this._win().document;\n\n doc.addEventListener(DeloserRestoreFocusEventName, this._onRestoreFocus);\n const activeElement = dom.getActiveElement(doc);\n\n if (activeElement && activeElement !== doc.body) {\n // Adding currently focused element to the deloser history.\n this._onFocus(activeElement);\n }\n });\n const autoDeloser = props === null || props === void 0 ? void 0 : props.autoDeloser;\n\n if (autoDeloser) {\n this._autoDeloser = autoDeloser;\n }\n }\n\n dispose() {\n const win = this._win();\n\n if (this._restoreFocusTimer) {\n win.clearTimeout(this._restoreFocusTimer);\n this._restoreFocusTimer = undefined;\n }\n\n if (this._autoDeloserInstance) {\n this._autoDeloserInstance.dispose();\n\n delete this._autoDeloserInstance;\n delete this._autoDeloser;\n }\n\n this._tabster.focusedElement.unsubscribe(this._onFocus);\n\n win.document.removeEventListener(DeloserRestoreFocusEventName, this._onRestoreFocus);\n\n this._history.dispose();\n\n delete this._curDeloser;\n }\n\n createDeloser(element, props) {\n var _a;\n\n if (process.env.NODE_ENV === 'development') ;\n\n const deloser = new Deloser(this._tabster, element, this._onDeloserDispose, props);\n\n if (dom.nodeContains(element, (_a = this._tabster.focusedElement.getFocusedElement()) !== null && _a !== void 0 ? _a : null)) {\n this._activate(deloser);\n }\n\n return deloser;\n }\n\n getActions(element) {\n for (let e = element; e; e = dom.getParentElement(e)) {\n const tabsterOnElement = getTabsterOnElement(this._tabster, e);\n\n if (tabsterOnElement && tabsterOnElement.deloser) {\n return tabsterOnElement.deloser.getActions();\n }\n }\n\n return undefined;\n }\n\n pause() {\n this._isPaused = true;\n\n if (this._restoreFocusTimer) {\n this._win().clearTimeout(this._restoreFocusTimer);\n\n this._restoreFocusTimer = undefined;\n }\n }\n\n resume(restore) {\n this._isPaused = false;\n\n if (restore) {\n this._scheduleRestoreFocus();\n }\n }\n /**\r\n * Activates and sets the current deloser\r\n */\n\n\n _activate(deloser) {\n const curDeloser = this._curDeloser;\n\n if (curDeloser !== deloser) {\n this._inDeloser = true;\n curDeloser === null || curDeloser === void 0 ? void 0 : curDeloser.setActive(false);\n deloser.setActive(true);\n this._curDeloser = deloser;\n }\n }\n /**\r\n * Called when focus should no longer be in a deloser\r\n */\n\n\n _deactivate() {\n var _a;\n\n this._inDeloser = false;\n (_a = this._curDeloser) === null || _a === void 0 ? void 0 : _a.setActive(false);\n this._curDeloser = undefined;\n }\n\n _scheduleRestoreFocus(force) {\n if (this._isPaused || this._isRestoringFocus) {\n return;\n }\n\n const restoreFocus = async () => {\n this._restoreFocusTimer = undefined;\n\n const lastFocused = this._tabster.focusedElement.getLastFocusedElement();\n\n if (!force && (this._isRestoringFocus || !this._inDeloser || lastFocused && !isDisplayNone(lastFocused))) {\n return;\n }\n\n const curDeloser = this._curDeloser;\n let isManual = false;\n\n if (curDeloser) {\n if (lastFocused && curDeloser.customFocusLostHandler(lastFocused)) {\n return;\n }\n\n if (curDeloser.strategy === DeloserStrategies.Manual) {\n isManual = true;\n } else {\n const curDeloserElement = curDeloser.getElement();\n const el = curDeloser.findAvailable();\n\n if (el && (!(curDeloserElement === null || curDeloserElement === void 0 ? void 0 : curDeloserElement.dispatchEvent(new TabsterMoveFocusEvent({\n by: \"deloser\",\n owner: curDeloserElement,\n next: el\n }))) || this._tabster.focusedElement.focus(el))) {\n return;\n }\n }\n }\n\n this._deactivate();\n\n if (isManual) {\n return;\n }\n\n this._isRestoringFocus = true; // focusAvailable returns null when the default action is prevented by the application, false\n // when nothing was focused and true when something was focused.\n\n if ((await this._history.focusAvailable(null)) === false) {\n await this._history.resetFocus(null);\n }\n\n this._isRestoringFocus = false;\n };\n\n if (force) {\n restoreFocus();\n } else {\n this._restoreFocusTimer = this._win().setTimeout(restoreFocus, 100);\n }\n }\n\n static getDeloser(tabster, element) {\n var _a;\n\n let root;\n\n for (let e = element; e; e = dom.getParentElement(e)) {\n const tabsterOnElement = getTabsterOnElement(tabster, e);\n\n if (tabsterOnElement) {\n if (!root) {\n root = tabsterOnElement.root;\n }\n\n const deloser = tabsterOnElement.deloser;\n\n if (deloser) {\n return deloser;\n }\n }\n }\n\n const deloserAPI = tabster.deloser && tabster.deloser;\n\n if (deloserAPI) {\n if (deloserAPI._autoDeloserInstance) {\n return deloserAPI._autoDeloserInstance;\n }\n\n const autoDeloserProps = deloserAPI._autoDeloser;\n\n if (root && !deloserAPI._autoDeloserInstance && autoDeloserProps) {\n const body = (_a = element.ownerDocument) === null || _a === void 0 ? void 0 : _a.body;\n\n if (body) {\n deloserAPI._autoDeloserInstance = new Deloser(tabster, body, tabster.deloser._onDeloserDispose, autoDeloserProps);\n }\n }\n\n return deloserAPI._autoDeloserInstance;\n }\n\n return undefined;\n }\n\n static getHistory(instance) {\n return instance._history;\n }\n\n static forceRestoreFocus(instance) {\n instance._scheduleRestoreFocus(true);\n }\n\n}\n\n/*!\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\nclass Subscribable {\n constructor() {\n this._callbacks = [];\n }\n\n dispose() {\n this._callbacks = [];\n delete this._val;\n }\n\n subscribe(callback) {\n const callbacks = this._callbacks;\n const index = callbacks.indexOf(callback);\n\n if (index < 0) {\n callbacks.push(callback);\n }\n }\n\n subscribeFirst(callback) {\n const callbacks = this._callbacks;\n const index = callbacks.indexOf(callback);\n\n if (index >= 0) {\n callbacks.splice(index, 1);\n }\n\n callbacks.unshift(callback);\n }\n\n unsubscribe(callback) {\n const index = this._callbacks.indexOf(callback);\n\n if (index >= 0) {\n this._callbacks.splice(index, 1);\n }\n }\n\n setVal(val, detail) {\n if (this._val === val) {\n return;\n }\n\n this._val = val;\n\n this._callCallbacks(val, detail);\n }\n\n getVal() {\n return this._val;\n }\n\n trigger(val, detail) {\n this._callCallbacks(val, detail);\n }\n\n _callCallbacks(val, detail) {\n this._callbacks.forEach(callback => callback(val, detail));\n }\n\n}\n\n/*!\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\nconst _transactionTimeout = 1500;\nconst _pingTimeout = 3000;\nconst _targetIdUp = \"up\";\nconst CrossOriginTransactionTypes = {\n Bootstrap: 1,\n FocusElement: 2,\n State: 3,\n GetElement: 4,\n RestoreFocusInDeloser: 5,\n Ping: 6\n};\n\nclass CrossOriginDeloserItem extends DeloserItemBase {\n constructor(tabster, deloser, trasactions) {\n super();\n this._deloser = deloser;\n this._transactions = trasactions;\n }\n\n belongsTo(deloser) {\n return deloser.deloserUId === this._deloser.deloserUId;\n }\n\n async focusAvailable() {\n const data = { ...this._deloser,\n reset: false\n };\n return this._transactions.beginTransaction(RestoreFocusInDeloserTransaction, data).then(value => !!value);\n }\n\n async resetFocus() {\n const data = { ...this._deloser,\n reset: true\n };\n return this._transactions.beginTransaction(RestoreFocusInDeloserTransaction, data).then(value => !!value);\n }\n\n}\n\nclass CrossOriginDeloserHistoryByRoot extends DeloserHistoryByRootBase {\n constructor(tabster, rootUId, transactions) {\n super(tabster, rootUId);\n this._transactions = transactions;\n }\n\n unshift(deloser) {\n let item;\n\n for (let i = 0; i < this._history.length; i++) {\n if (this._history[i].belongsTo(deloser)) {\n item = this._history[i];\n\n this._history.splice(i, 1);\n\n break;\n }\n }\n\n if (!item) {\n item = new CrossOriginDeloserItem(this._tabster, deloser, this._transactions);\n }\n\n this._history.unshift(item);\n\n this._history.splice(10, this._history.length - 10);\n }\n\n async focusAvailable() {\n for (const i of this._history) {\n if (await i.focusAvailable()) {\n return true;\n }\n }\n\n return false;\n }\n\n async resetFocus() {\n for (const i of this._history) {\n if (await i.resetFocus()) {\n return true;\n }\n }\n\n return false;\n }\n\n}\n\nclass CrossOriginTransaction {\n constructor(tabster, getOwner, knownTargets, value, timeout, sentTo, targetId, sendUp) {\n this._inProgress = {};\n this._isDone = false;\n this._isSelfResponding = false;\n this._sentCount = 0;\n this.tabster = tabster;\n this.owner = getOwner;\n this.ownerId = getWindowUId(getOwner());\n this.id = getUId(getOwner());\n this.beginData = value;\n this._knownTargets = knownTargets;\n this._sentTo = sentTo || {\n [this.ownerId]: true\n };\n this.targetId = targetId;\n this.sendUp = sendUp;\n this.timeout = timeout;\n this._promise = new (getPromise(getOwner))((resolve, reject) => {\n this._resolve = resolve;\n this._reject = reject;\n });\n }\n\n getTargets(knownTargets) {\n return this.targetId === _targetIdUp ? this.sendUp ? {\n [_targetIdUp]: {\n send: this.sendUp\n }\n } : null : this.targetId ? knownTargets[this.targetId] ? {\n [this.targetId]: {\n send: knownTargets[this.targetId].send\n }\n } : null : Object.keys(knownTargets).length === 0 && this.sendUp ? {\n [_targetIdUp]: {\n send: this.sendUp\n }\n } : Object.keys(knownTargets).length > 0 ? knownTargets : null;\n }\n\n begin(selfResponse) {\n const targets = this.getTargets(this._knownTargets);\n const sentTo = { ...this._sentTo\n };\n\n if (targets) {\n for (const id of Object.keys(targets)) {\n sentTo[id] = true;\n }\n }\n\n const data = {\n transaction: this.id,\n type: this.type,\n isResponse: false,\n timestamp: Date.now(),\n owner: this.ownerId,\n sentto: sentTo,\n timeout: this.timeout,\n beginData: this.beginData\n };\n\n if (this.targetId) {\n data.target = this.targetId;\n }\n\n if (selfResponse) {\n this._isSelfResponding = true;\n selfResponse(data).then(value => {\n this._isSelfResponding = false;\n\n if (value !== undefined) {\n if (!this.endData) {\n this.endData = value;\n }\n }\n\n if (this.endData || this._sentCount === 0) {\n this.end();\n }\n });\n }\n\n if (targets) {\n for (const id of Object.keys(targets)) {\n if (!(id in this._sentTo)) {\n this._send(targets[id].send, id, data);\n }\n }\n }\n\n if (this._sentCount === 0 && !this._isSelfResponding) {\n this.end();\n }\n\n return this._promise;\n }\n\n _send(send, targetId, data) {\n if (this._inProgress[targetId] === undefined) {\n this._inProgress[targetId] = true;\n this._sentCount++;\n send(data);\n }\n }\n\n end(error) {\n if (this._isDone) {\n return;\n }\n\n this._isDone = true;\n\n if (this.endData === undefined && error) {\n if (this._reject) {\n this._reject(error);\n }\n } else if (this._resolve) {\n this._resolve(this.endData);\n }\n }\n\n onResponse(data) {\n const endData = data.endData;\n\n if (endData !== undefined && !this.endData) {\n this.endData = endData;\n }\n\n const inProgressId = data.target === _targetIdUp ? _targetIdUp : data.owner;\n\n if (this._inProgress[inProgressId]) {\n this._inProgress[inProgressId] = false;\n this._sentCount--;\n\n if (this.endData || this._sentCount === 0 && !this._isSelfResponding) {\n this.end();\n }\n }\n }\n\n}\n\nclass BootstrapTransaction extends CrossOriginTransaction {\n constructor() {\n super(...arguments);\n this.type = CrossOriginTransactionTypes.Bootstrap;\n }\n\n static shouldForward() {\n return false;\n }\n\n static async makeResponse(tabster) {\n return {\n isNavigatingWithKeyboard: tabster.keyboardNavigation.isNavigatingWithKeyboard()\n };\n }\n\n}\n\nclass FocusElementTransaction extends CrossOriginTransaction {\n constructor() {\n super(...arguments);\n this.type = CrossOriginTransactionTypes.FocusElement;\n }\n\n static shouldSelfRespond() {\n return true;\n }\n\n static shouldForward(tabster, data, getOwner) {\n const el = GetElementTransaction.findElement(tabster, getOwner, data.beginData);\n return !el || !tabster.focusable.isFocusable(el);\n }\n\n static async makeResponse(tabster, data, getOwner, ownerId, transactions, forwardResult) {\n const el = GetElementTransaction.findElement(tabster, getOwner, data.beginData);\n return !!el && tabster.focusedElement.focus(el, true) || !!(await forwardResult);\n }\n\n}\n\nconst CrossOriginStates = {\n Focused: 1,\n Blurred: 2,\n Observed: 3,\n DeadWindow: 4,\n KeyboardNavigation: 5,\n Outline: 6\n};\n\nclass StateTransaction extends CrossOriginTransaction {\n constructor() {\n super(...arguments);\n this.type = CrossOriginTransactionTypes.State;\n }\n\n static shouldSelfRespond(tabster, data) {\n return data.state !== CrossOriginStates.DeadWindow && data.state !== CrossOriginStates.KeyboardNavigation;\n }\n\n static async makeResponse(tabster, data, getOwner, ownerId, transactions, forwardResult, isSelfResponse) {\n const timestamp = data.timestamp;\n const beginData = data.beginData;\n\n if (timestamp && beginData) {\n switch (beginData.state) {\n case CrossOriginStates.Focused:\n return StateTransaction._makeFocusedResponse(tabster, timestamp, beginData, transactions, isSelfResponse);\n\n case CrossOriginStates.Blurred:\n return StateTransaction._makeBlurredResponse(tabster, timestamp, beginData, transactions.ctx);\n\n case CrossOriginStates.Observed:\n return StateTransaction._makeObservedResponse(tabster, beginData);\n\n case CrossOriginStates.DeadWindow:\n return StateTransaction._makeDeadWindowResponse(tabster, beginData, transactions, forwardResult);\n\n case CrossOriginStates.KeyboardNavigation:\n return StateTransaction._makeKeyboardNavigationResponse(tabster, transactions.ctx, beginData.isNavigatingWithKeyboard);\n\n case CrossOriginStates.Outline:\n return StateTransaction._makeOutlineResponse(tabster, transactions.ctx, beginData.outline);\n }\n }\n\n return true;\n }\n\n static createElement(tabster, beginData) {\n return beginData.uid ? new CrossOriginElement(tabster, beginData.uid, beginData.ownerUId, beginData.id, beginData.rootUId, beginData.observedName, beginData.observedDetails) : null;\n }\n\n static async _makeFocusedResponse(tabster, timestamp, beginData, transactions, isSelfResponse) {\n const element = StateTransaction.createElement(tabster, beginData);\n\n if (beginData && beginData.ownerUId && element) {\n transactions.ctx.focusOwner = beginData.ownerUId;\n transactions.ctx.focusOwnerTimestamp = timestamp;\n\n if (!isSelfResponse && beginData.rootUId && beginData.deloserUId) {\n const deloserAPI = tabster.deloser;\n\n if (deloserAPI) {\n const history = DeloserAPI.getHistory(deloserAPI);\n const deloser = {\n ownerUId: beginData.ownerUId,\n deloserUId: beginData.deloserUId,\n rootUId: beginData.rootUId\n };\n const historyItem = history.make(beginData.rootUId, () => new CrossOriginDeloserHistoryByRoot(tabster, deloser.rootUId, transactions));\n historyItem.unshift(deloser);\n }\n }\n\n CrossOriginFocusedElementState.setVal( // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n tabster.crossOrigin.focusedElement, element, {\n isFocusedProgrammatically: beginData.isFocusedProgrammatically\n });\n }\n\n return true;\n }\n\n static async _makeBlurredResponse(tabster, timestamp, beginData, context) {\n if (beginData && (beginData.ownerUId === context.focusOwner || beginData.force) && (!context.focusOwnerTimestamp || context.focusOwnerTimestamp < timestamp)) {\n CrossOriginFocusedElementState.setVal( // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n tabster.crossOrigin.focusedElement, undefined, {});\n }\n\n return true;\n }\n\n static async _makeObservedResponse(tabster, beginData) {\n const name = beginData.observedName;\n const element = StateTransaction.createElement(tabster, beginData);\n\n if (name && element) {\n CrossOriginObservedElementState.trigger( // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n tabster.crossOrigin.observedElement, element, {\n names: [name],\n details: beginData.observedDetails\n });\n }\n\n return true;\n }\n\n static async _makeDeadWindowResponse(tabster, beginData, transactions, forwardResult) {\n const deadUId = beginData && beginData.ownerUId;\n\n if (deadUId) {\n transactions.removeTarget(deadUId);\n }\n\n return forwardResult.then(() => {\n if (deadUId === transactions.ctx.focusOwner) {\n const deloserAPI = tabster.deloser;\n\n if (deloserAPI) {\n DeloserAPI.forceRestoreFocus(deloserAPI);\n }\n }\n\n return true;\n });\n }\n\n static async _makeKeyboardNavigationResponse(tabster, context, isNavigatingWithKeyboard) {\n if (isNavigatingWithKeyboard !== undefined && tabster.keyboardNavigation.isNavigatingWithKeyboard() !== isNavigatingWithKeyboard) {\n context.ignoreKeyboardNavigationStateUpdate = true;\n tabster.keyboardNavigation.setNavigatingWithKeyboard(isNavigatingWithKeyboard);\n context.ignoreKeyboardNavigationStateUpdate = false;\n }\n\n return true;\n }\n\n static async _makeOutlineResponse(tabster, context, props) {\n if (context.origOutlineSetup) {\n context.origOutlineSetup.call( // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n tabster.outline, props);\n }\n\n return true;\n }\n\n}\n\nclass GetElementTransaction extends CrossOriginTransaction {\n constructor() {\n super(...arguments);\n this.type = CrossOriginTransactionTypes.GetElement;\n }\n\n static shouldSelfRespond() {\n return true;\n }\n\n static findElement(tabster, getOwner, data) {\n let element;\n\n if (data && (!data.ownerId || data.ownerId === getWindowUId(getOwner()))) {\n if (data.id) {\n element = dom.getElementById(getOwner().document, data.id);\n\n if (element && data.rootId) {\n const ctx = RootAPI.getTabsterContext(tabster, element);\n\n if (!ctx || ctx.root.uid !== data.rootId) {\n return null;\n }\n }\n } else if (data.uid) {\n const ref = getInstanceContext(getOwner).elementByUId[data.uid];\n element = ref && ref.get();\n } else if (data.observedName) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n element = tabster.observedElement.getElement(data.observedName, data.accessibility);\n }\n }\n\n return element || null;\n }\n\n static getElementData(tabster, element, getOwner, context, ownerUId) {\n const deloser = DeloserAPI.getDeloser(tabster, element);\n const ctx = RootAPI.getTabsterContext(tabster, element);\n const tabsterOnElement = getTabsterOnElement(tabster, element);\n const observed = tabsterOnElement && tabsterOnElement.observed;\n return {\n uid: getElementUId(getOwner, element),\n ownerUId,\n id: element.id || undefined,\n rootUId: ctx ? ctx.root.uid : undefined,\n deloserUId: deloser ? getDeloserUID(getOwner, context, deloser) : undefined,\n observedName: observed && observed.names && observed.names[0],\n observedDetails: observed && observed.details\n };\n }\n\n static async makeResponse(tabster, data, getOwner, ownerUId, transactions, forwardResult) {\n const beginData = data.beginData;\n let element;\n let dataOut;\n\n if (beginData === undefined) {\n element = tabster.focusedElement.getFocusedElement();\n } else if (beginData) {\n element = GetElementTransaction.findElement(tabster, getOwner, beginData) || undefined;\n }\n\n if (!element && beginData) {\n const name = beginData.observedName;\n const timeout = data.timeout;\n const accessibility = beginData.accessibility;\n\n if (name && timeout) {\n const e = await new (getPromise(getOwner))(resolve => {\n let isWaitElementResolved = false;\n let isForwardResolved = false;\n let isResolved = false; // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\n tabster.observedElement.waitElement(name, timeout, accessibility).result.then(value => {\n isWaitElementResolved = true;\n\n if (!isResolved && (value || isForwardResolved)) {\n isResolved = true;\n resolve({\n element: value\n });\n }\n });\n forwardResult.then(value => {\n isForwardResolved = true;\n\n if (!isResolved && (value || isWaitElementResolved)) {\n isResolved = true;\n resolve({\n crossOrigin: value\n });\n }\n });\n });\n\n if (e.element) {\n element = e.element;\n } else if (e.crossOrigin) {\n dataOut = e.crossOrigin;\n }\n }\n }\n\n return element ? GetElementTransaction.getElementData(tabster, element, getOwner, transactions.ctx, ownerUId) : dataOut;\n }\n\n}\n\nclass RestoreFocusInDeloserTransaction extends CrossOriginTransaction {\n constructor() {\n super(...arguments);\n this.type = CrossOriginTransactionTypes.RestoreFocusInDeloser;\n }\n\n static async makeResponse(tabster, data, getOwner, ownerId, transactions, forwardResult) {\n const forwardRet = await forwardResult;\n const begin = !forwardRet && data.beginData;\n const uid = begin && begin.deloserUId;\n const deloser = uid && transactions.ctx.deloserByUId[uid];\n const deloserAPI = tabster.deloser;\n\n if (begin && deloser && deloserAPI) {\n const history = DeloserAPI.getHistory(deloserAPI);\n return begin.reset ? history.resetFocus(deloser) : history.focusAvailable(deloser);\n }\n\n return !!forwardRet;\n }\n\n}\n\nclass PingTransaction extends CrossOriginTransaction {\n constructor() {\n super(...arguments);\n this.type = CrossOriginTransactionTypes.Ping;\n }\n\n static shouldForward() {\n return false;\n }\n\n static async makeResponse() {\n return true;\n }\n\n}\n\nclass CrossOriginTransactions {\n constructor(tabster, getOwner, context) {\n this._knownTargets = {};\n this._transactions = {};\n this._isDefaultSendUp = false;\n this.isSetUp = false;\n\n this._onMessage = e => {\n if (e.data.owner === this._ownerUId || !this._tabster) {\n return;\n } // eslint-disable-next-line @typescript-eslint/no-explicit-any\n\n\n const data = e.data;\n let transactionId;\n\n if (!data || !(transactionId = data.transaction) || !data.type || !data.timestamp || !data.owner || !data.sentto) {\n return;\n }\n\n let knownTarget = this._knownTargets[data.owner];\n\n if (!knownTarget && e.send && data.owner !== this._ownerUId) {\n knownTarget = this._knownTargets[data.owner] = {\n send: e.send\n };\n }\n\n if (knownTarget) {\n knownTarget.last = Date.now();\n }\n\n if (data.isResponse) {\n const t = this._transactions[transactionId];\n\n if (t && t.transaction && t.transaction.type === data.type) {\n t.transaction.onResponse(data);\n }\n } else {\n const Transaction = this._getTransactionClass(data.type);\n\n const forwardResult = this.forwardTransaction(data);\n\n if (Transaction && e.send) {\n Transaction.makeResponse(this._tabster, data, this._owner, this._ownerUId, this, forwardResult, false).then(r => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const response = {\n transaction: data.transaction,\n type: data.type,\n isResponse: true,\n timestamp: Date.now(),\n owner: this._ownerUId,\n timeout: data.timeout,\n sentto: {},\n target: data.target === _targetIdUp ? _targetIdUp : data.owner,\n endData: r\n };\n e.send(response);\n });\n }\n }\n };\n\n this._onPageHide = () => {\n this._dead();\n };\n\n this._onBrowserMessage = e => {\n if (e.source === this._owner()) {\n return;\n } // eslint-disable-next-line @typescript-eslint/no-explicit-any\n\n\n const send = data => {\n if (e.source && e.source.postMessage) {\n // eslint-disable-next-line @typescript-eslint/ban-types\n e.source.postMessage(JSON.stringify(data), \"*\");\n }\n };\n\n try {\n this._onMessage({\n data: JSON.parse(e.data),\n send\n });\n } catch (e) {\n /* Ignore */\n }\n };\n\n this._tabster = tabster;\n this._owner = getOwner;\n this._ownerUId = getWindowUId(getOwner());\n this.ctx = context;\n }\n\n setup(sendUp) {\n if (this.isSetUp) {\n if (process.env.NODE_ENV === 'development') {\n console.error(\"CrossOrigin is already set up.\");\n }\n } else {\n this.isSetUp = true;\n this.setSendUp(sendUp);\n\n this._owner().addEventListener(\"pagehide\", this._onPageHide);\n\n this._ping();\n }\n\n return this._onMessage;\n }\n\n setSendUp(sendUp) {\n if (!this.isSetUp) {\n throw new Error(\"CrossOrigin is not set up.\");\n }\n\n this.sendUp = sendUp || undefined;\n\n const owner = this._owner();\n\n if (sendUp === undefined) {\n if (!this._isDefaultSendUp) {\n if (owner.document) {\n this._isDefaultSendUp = true;\n\n if (owner.parent && owner.parent !== owner && owner.parent.postMessage) {\n this.sendUp = ( // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data) => {\n owner.parent.postMessage(JSON.stringify(data), \"*\");\n };\n }\n\n owner.addEventListener(\"message\", this._onBrowserMessage);\n }\n }\n } else if (this._isDefaultSendUp) {\n owner.removeEventListener(\"message\", this._onBrowserMessage);\n this._isDefaultSendUp = false;\n }\n\n return this._onMessage;\n }\n\n async dispose() {\n const owner = this._owner();\n\n if (this._pingTimer) {\n owner.clearTimeout(this._pingTimer);\n this._pingTimer = undefined;\n }\n\n owner.removeEventListener(\"message\", this._onBrowserMessage);\n owner.removeEventListener(\"pagehide\", this._onPageHide);\n await this._dead();\n delete this._deadPromise;\n\n for (const id of Object.keys(this._transactions)) {\n const t = this._transactions[id];\n\n if (t.timer) {\n owner.clearTimeout(t.timer);\n delete t.timer;\n }\n\n t.transaction.end();\n }\n\n this._knownTargets = {};\n delete this.sendUp;\n }\n\n beginTransaction(Transaction, value, timeout, sentTo, targetId, withReject) {\n if (!this._owner) {\n return getPromise(this._owner).reject();\n }\n\n const transaction = new Transaction(this._tabster, this._owner, this._knownTargets, value, timeout, sentTo, targetId, this.sendUp);\n let selfResponse;\n\n if (Transaction.shouldSelfRespond && Transaction.shouldSelfRespond(this._tabster, value, this._owner, this._ownerUId)) {\n selfResponse = data => {\n return Transaction.makeResponse(this._tabster, data, this._owner, this._ownerUId, this, getPromise(this._owner).resolve(undefined), true);\n };\n }\n\n return this._beginTransaction(transaction, timeout, selfResponse, withReject);\n }\n\n removeTarget(uid) {\n delete this._knownTargets[uid];\n }\n\n _beginTransaction(transaction, timeout, selfResponse, withReject) {\n const owner = this._owner();\n\n const wrapper = {\n transaction,\n timer: owner.setTimeout(() => {\n delete wrapper.timer;\n transaction.end(\"Cross origin transaction timed out.\");\n }, _transactionTimeout + (timeout || 0))\n };\n this._transactions[transaction.id] = wrapper;\n const ret = transaction.begin(selfResponse);\n ret.catch(() => {\n /**/\n }).finally(() => {\n if (wrapper.timer) {\n owner.clearTimeout(wrapper.timer);\n }\n\n delete this._transactions[transaction.id];\n });\n return ret.then(value => value, withReject ? undefined : () => undefined);\n }\n\n forwardTransaction( // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ) {\n const owner = this._owner;\n let targetId = data.target;\n\n if (targetId === this._ownerUId) {\n return getPromise(owner).resolve();\n }\n\n const Transaction = this._getTransactionClass(data.type);\n\n if (Transaction) {\n if (Transaction.shouldForward === undefined || Transaction.shouldForward(this._tabster, data, owner, this._ownerUId)) {\n const sentTo = data.sentto;\n\n if (targetId === _targetIdUp) {\n targetId = undefined;\n sentTo[this._ownerUId] = true;\n }\n\n delete sentTo[_targetIdUp];\n return this._beginTransaction(new Transaction(this._tabster, owner, this._knownTargets, data.beginData, data.timeout, sentTo, targetId, this.sendUp), data.timeout);\n } else {\n return getPromise(owner).resolve();\n }\n }\n\n return getPromise(owner).reject(`Unknown transaction type ${data.type}`);\n }\n\n _getTransactionClass(type // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ) {\n switch (type) {\n case CrossOriginTransactionTypes.Bootstrap:\n return BootstrapTransaction;\n\n case CrossOriginTransactionTypes.FocusElement:\n return FocusElementTransaction;\n\n case CrossOriginTransactionTypes.State:\n return StateTransaction;\n\n case CrossOriginTransactionTypes.GetElement:\n return GetElementTransaction;\n\n case CrossOriginTransactionTypes.RestoreFocusInDeloser:\n return RestoreFocusInDeloserTransaction;\n\n case CrossOriginTransactionTypes.Ping:\n return PingTransaction;\n\n default:\n return null;\n }\n }\n\n async _dead() {\n if (!this._deadPromise && this.ctx.focusOwner === this._ownerUId) {\n this._deadPromise = this.beginTransaction(StateTransaction, {\n ownerUId: this._ownerUId,\n state: CrossOriginStates.DeadWindow\n });\n }\n\n if (this._deadPromise) {\n await this._deadPromise;\n }\n }\n\n async _ping() {\n if (this._pingTimer) {\n return;\n }\n\n let deadWindows;\n const now = Date.now();\n const targets = Object.keys(this._knownTargets).filter(uid => now - (this._knownTargets[uid].last || 0) > _pingTimeout);\n\n if (this.sendUp) {\n targets.push(_targetIdUp);\n }\n\n if (targets.length) {\n await getPromise(this._owner).all(targets.map(uid => this.beginTransaction(PingTransaction, undefined, undefined, undefined, uid, true).then(() => true, () => {\n if (uid !== _targetIdUp) {\n if (!deadWindows) {\n deadWindows = {};\n }\n\n deadWindows[uid] = true;\n delete this._knownTargets[uid];\n }\n\n return false;\n })));\n }\n\n if (deadWindows) {\n const focused = await this.beginTransaction(GetElementTransaction, undefined);\n\n if (!focused && this.ctx.focusOwner && this.ctx.focusOwner in deadWindows) {\n await this.beginTransaction(StateTransaction, {\n ownerUId: this._ownerUId,\n state: CrossOriginStates.Blurred,\n force: true\n });\n const deloserAPI = this._tabster.deloser;\n\n if (deloserAPI) {\n DeloserAPI.forceRestoreFocus(deloserAPI);\n }\n }\n }\n\n this._pingTimer = this._owner().setTimeout(() => {\n this._pingTimer = undefined;\n\n this._ping();\n }, _pingTimeout);\n }\n\n}\n\nclass CrossOriginElement {\n constructor(tabster, uid, ownerId, id, rootId, observedName, observedDetails) {\n this._tabster = tabster;\n this.uid = uid;\n this.ownerId = ownerId;\n this.id = id;\n this.rootId = rootId;\n this.observedName = observedName;\n this.observedDetails = observedDetails;\n }\n\n focus(noFocusedProgrammaticallyFlag, noAccessibleCheck) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return this._tabster.crossOrigin.focusedElement.focus(this, noFocusedProgrammaticallyFlag, noAccessibleCheck);\n }\n\n}\nclass CrossOriginFocusedElementState extends Subscribable {\n constructor(transactions) {\n super();\n this._transactions = transactions;\n }\n\n async focus(element, noFocusedProgrammaticallyFlag, noAccessibleCheck) {\n return this._focus({\n uid: element.uid,\n id: element.id,\n rootId: element.rootId,\n ownerId: element.ownerId,\n observedName: element.observedName\n }, noFocusedProgrammaticallyFlag, noAccessibleCheck);\n }\n\n async focusById(elementId, rootId, noFocusedProgrammaticallyFlag, noAccessibleCheck) {\n return this._focus({\n id: elementId,\n rootId\n }, noFocusedProgrammaticallyFlag, noAccessibleCheck);\n }\n\n async focusByObservedName(observedName, timeout, rootId, noFocusedProgrammaticallyFlag, noAccessibleCheck) {\n return this._focus({\n observedName,\n rootId\n }, noFocusedProgrammaticallyFlag, noAccessibleCheck, timeout);\n }\n\n async _focus(elementData, noFocusedProgrammaticallyFlag, noAccessibleCheck, timeout) {\n return this._transactions.beginTransaction(FocusElementTransaction, { ...elementData,\n noFocusedProgrammaticallyFlag,\n noAccessibleCheck\n }, timeout).then(value => !!value);\n }\n\n static setVal(instance, val, detail) {\n instance.setVal(val, detail);\n }\n\n}\nclass CrossOriginObservedElementState extends Subscribable {\n constructor(tabster, transactions) {\n super();\n this._lastRequestFocusId = 0;\n this._tabster = tabster;\n this._transactions = transactions;\n }\n\n async getElement(observedName, accessibility) {\n return this.waitElement(observedName, 0, accessibility);\n }\n\n async waitElement(observedName, timeout, accessibility) {\n return this._transactions.beginTransaction(GetElementTransaction, {\n observedName,\n accessibility\n }, timeout).then(value => value ? StateTransaction.createElement(this._tabster, value) : null);\n }\n\n async requestFocus(observedName, timeout) {\n const requestId = ++this._lastRequestFocusId;\n return this.waitElement(observedName, timeout, ObservedElementAccessibilities.Focusable).then(element => this._lastRequestFocusId === requestId && element ? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this._tabster.crossOrigin.focusedElement.focus(element, true) : false);\n }\n\n static trigger(instance, element, details) {\n instance.trigger(element, details);\n }\n\n}\nclass CrossOriginAPI {\n constructor(tabster) {\n this._init = () => {\n const tabster = this._tabster;\n tabster.keyboardNavigation.subscribe(this._onKeyboardNavigationStateChanged);\n tabster.focusedElement.subscribe(this._onFocus); // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\n tabster.observedElement.subscribe(this._onObserved);\n\n if (!this._ctx.origOutlineSetup) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this._ctx.origOutlineSetup = tabster.outline.setup; // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\n tabster.outline.setup = this._outlineSetup;\n }\n\n this._transactions.beginTransaction(BootstrapTransaction, undefined, undefined, undefined, _targetIdUp).then(data => {\n if (data && this._tabster.keyboardNavigation.isNavigatingWithKeyboard() !== data.isNavigatingWithKeyboard) {\n this._ctx.ignoreKeyboardNavigationStateUpdate = true;\n\n this._tabster.keyboardNavigation.setNavigatingWithKeyboard(data.isNavigatingWithKeyboard);\n\n this._ctx.ignoreKeyboardNavigationStateUpdate = false;\n }\n });\n };\n\n this._onKeyboardNavigationStateChanged = value => {\n if (!this._ctx.ignoreKeyboardNavigationStateUpdate) {\n this._transactions.beginTransaction(StateTransaction, {\n state: CrossOriginStates.KeyboardNavigation,\n ownerUId: getWindowUId(this._win()),\n isNavigatingWithKeyboard: value\n });\n }\n };\n\n this._onFocus = element => {\n const win = this._win();\n\n const ownerUId = getWindowUId(win);\n\n if (this._blurTimer) {\n win.clearTimeout(this._blurTimer);\n this._blurTimer = undefined;\n }\n\n if (element) {\n this._transactions.beginTransaction(StateTransaction, { ...GetElementTransaction.getElementData(this._tabster, element, this._win, this._ctx, ownerUId),\n state: CrossOriginStates.Focused\n });\n } else {\n this._blurTimer = win.setTimeout(() => {\n this._blurTimer = undefined;\n\n if (this._ctx.focusOwner && this._ctx.focusOwner === ownerUId) {\n this._transactions.beginTransaction(GetElementTransaction, undefined).then(value => {\n if (!value && this._ctx.focusOwner === ownerUId) {\n this._transactions.beginTransaction(StateTransaction, {\n ownerUId,\n state: CrossOriginStates.Blurred,\n force: false\n });\n }\n });\n }\n }, 0);\n }\n };\n\n this._onObserved = (element, details) => {\n var _a;\n\n const d = GetElementTransaction.getElementData(this._tabster, element, this._win, this._ctx, getWindowUId(this._win()));\n d.state = CrossOriginStates.Observed;\n d.observedName = (_a = details.names) === null || _a === void 0 ? void 0 : _a[0];\n d.observedDetails = details.details;\n\n this._transactions.beginTransaction(StateTransaction, d);\n };\n\n this._outlineSetup = props => {\n this._transactions.beginTransaction(StateTransaction, {\n state: CrossOriginStates.Outline,\n ownerUId: getWindowUId(this._win()),\n outline: props\n });\n };\n\n this._tabster = tabster;\n this._win = tabster.getWindow;\n this._ctx = {\n ignoreKeyboardNavigationStateUpdate: false,\n deloserByUId: {}\n };\n this._transactions = new CrossOriginTransactions(tabster, this._win, this._ctx);\n this.focusedElement = new CrossOriginFocusedElementState(this._transactions);\n this.observedElement = new CrossOriginObservedElementState(tabster, this._transactions);\n }\n\n setup(sendUp) {\n if (this.isSetUp()) {\n return this._transactions.setSendUp(sendUp);\n } else {\n this._tabster.queueInit(this._init);\n\n return this._transactions.setup(sendUp);\n }\n }\n\n isSetUp() {\n return this._transactions.isSetUp;\n }\n\n dispose() {\n var _a;\n\n const tabster = this._tabster;\n tabster.keyboardNavigation.unsubscribe(this._onKeyboardNavigationStateChanged);\n tabster.focusedElement.unsubscribe(this._onFocus);\n (_a = tabster.observedElement) === null || _a === void 0 ? void 0 : _a.unsubscribe(this._onObserved);\n\n this._transactions.dispose();\n\n this.focusedElement.dispose();\n this.observedElement.dispose();\n this._ctx.deloserByUId = {};\n }\n\n}\n\nfunction getDeloserUID(getWindow, context, deloser) {\n const deloserElement = deloser.getElement();\n\n if (deloserElement) {\n const uid = getElementUId(getWindow, deloserElement);\n\n if (!context.deloserByUId[uid]) {\n context.deloserByUId[uid] = deloser;\n }\n\n return uid;\n }\n\n return undefined;\n}\n\n/*!\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\nclass FocusableAPI {\n constructor(tabster) {\n this._tabster = tabster;\n }\n\n dispose() {\n /**/\n }\n\n getProps(element) {\n const tabsterOnElement = getTabsterOnElement(this._tabster, element);\n return tabsterOnElement && tabsterOnElement.focusable || {};\n }\n\n isFocusable(el, includeProgrammaticallyFocusable, noVisibleCheck, noAccessibleCheck) {\n if (matchesSelector(el, FOCUSABLE_SELECTOR) && (includeProgrammaticallyFocusable || el.tabIndex !== -1)) {\n return (noVisibleCheck || this.isVisible(el)) && (noAccessibleCheck || this.isAccessible(el));\n }\n\n return false;\n }\n\n isVisible(el) {\n if (!el.ownerDocument || el.nodeType !== Node.ELEMENT_NODE) {\n return false;\n }\n\n if (isDisplayNone(el)) {\n return false;\n }\n\n const rect = el.ownerDocument.body.getBoundingClientRect();\n\n if (rect.width === 0 && rect.height === 0) {\n // This might happen, for example, if our is in hidden