# app.folio.finance

## In short (as of 18 Nov 2026)

app.folio.finance is a website titled “folio”.

- Behind Fastly (AS54113 Fastly, Inc.), certificate from Google Trust Services.
- The domain folio.finance was registered on 9 Feb 2017 through Squarespace Domains II LLC.
- Mail for folio.finance is received via Google Workspace.
- It loads 2 scripts, which name 1 API endpoint on this host and refer to 7 other domains.
- It loads 5 third-party domains, among them ajax.googleapis.com, fonts.googleapis.com, www.google-analytics.com and 2 more.
- Observed once, on 18 Nov 2026.

The public xpaling record of app.folio.finance: 1 observation since 18 Nov 2026. Page: https://xpaling.com/host/app.folio.finance

## Found and changed on app.folio.finance
Timeline (1 observation, newest first)

- **18 Nov 2026** — [report](https://xpaling.com/host/app.folio.finance/rep/g9mm9sdmck) — “folio” · First observation · 10 findings

## Findings of app.folio.finance
Findings (as of 18 Nov 2026)

- Keystrokes on the password field are captured by script. Key listeners on keydown@document, keydown@password; the browser recorded 4 events, caused by scripts from [app.folio.finance](https://xpaling.com/host/app.folio.finance). — first seen 18 Nov 2026
  
  
    What to do: Remove document-level key listeners that forward input; legitimate hotkeys never read password fields.
- Opens WebSocket to another domain (folio-1e899.firebaseio.com). 1 request to folio-1e899.firebaseio.com. — first seen 18 Nov 2026
    - wss://folio-1e899.firebaseio.com/.ws?v=5
    What to do: Name the service the WebSocket connects to in the privacy policy, or connect through your own domain.
- Google Analytics measurement ID. Google Analytics property [UA-93767805-2](https://xpaling.com/ga/UA-93767805-2) is set in the response of https://app.folio.finance/ itself (text/html). — first seen 18 Nov 2026
    What to do: Nothing to change if the property is yours; load analytics only after consent where the law asks for it.
- A value named like a secret is assigned in client-side code. A secret-looking value (0bdc…a7a3) is written in https://app.folio.finance/folio-app.min.html (text/html). — first seen 18 Nov 2026
    What to do: If the value is a real secret, move it to the server and replace it; if it is a public identifier, nothing to change.
- Google API key exposed: 2 values (AIza…8v_g, AIza…cQ-A) — first seen 18 Nov 2026
    - Google API key exposed. A Google API key (AIza…8v_g) is written in https://app.folio.finance/folio-app.min.html (text/html).
    - Google API key exposed. A Google API key (AIza…cQ-A) is written in https://app.folio.finance/folio-app.min.html (text/html).
    What to do: Restrict the key by HTTP referrer and API scope in Google Cloud Console.
- Internal IP address referenced in client-side code. The private network address 192.….138 is written in https://app.folio.finance/folio-app.min.html (text/html). — first seen 18 Nov 2026
    What to do: Remove private addresses from client-side code; they show the internal network layout.
- 1 JavaScript source map referenced in production — first seen 18 Nov 2026
    - data:text/firebase-app.js.map
    What to do: Do not ship .map files or sourceMappingURL comments to production; they expose original source code.
- The response has no Referrer-Policy, X-Frame-Options, Permissions-Policy, X-Content-Type-Options, Content-Security-Policy (Strict-Transport-Security max-age=31556926) — first seen 18 Nov 2026
  What to do: Send the missing headers from the server or the CDN, starting with Strict-Transport-Security and Content-Security-Policy.
- Of 3 cookies, 3 lack Secure and 3 lack HttpOnly (without Secure: _ga, _gid, _gat · without HttpOnly: _ga, _gid, _gat) — first seen 18 Nov 2026
  What to do: Set Secure on every cookie, and HttpOnly on every cookie that scripts do not need to read.
- Mail is received via [Google Workspace](https://xpaling.com/mail/google-workspace); SPF authorises Google Workspace to send (~all); no DMARC; DKIM selector google (MX aspmx.l.google.com, alt2.aspmx.l.google.com · v=spf1 include:_spf.google.com ~all) — first seen 18 Nov 2026
  What to do: Publish a DMARC record: start with p=none and a rua address, then move to quarantine or reject.

### Facts and the date each was first recorded (as of 18 Nov 2026)

- The homepage contacts 5 third-party domains before any click: [ajax.googleapis.com](https://xpaling.com/thirdparty/ajax.googleapis.com), [fonts.googleapis.com](https://xpaling.com/thirdparty/fonts.googleapis.com), [www.google-analytics.com](https://xpaling.com/thirdparty/www.google-analytics.com), [www.gstatic.com](https://xpaling.com/thirdparty/www.gstatic.com), folio-1e899.firebaseio.com (13 requests to third parties · www.gstatic.com 9 · www.google-analytics.com 2 · ajax.googleapis.com 1) — first seen 18 Nov 2026
- 2 scripts: 1 first-party, 1 from known services (first-party: app.folio.finance/webcomponents-lite.mi… abe23ee1) — first seen 18 Nov 2026
- 1 API endpoint appears in the page's requests and scripts (/folio-app.min.html) — first seen 18 Nov 2026
- Scripts reference open-source repositories [github.com/polymer/polymer](https://xpaling.com/repo/github.com%2Fpolymer%2Fpolymer), [github.com/polymerelements/iron-a11y-keys-behavior](https://xpaling.com/repo/github.com%2Fpolymerelements%2Firon-a11y-keys-behavior), [github.com/polymerelements/iron-overlay-behavior](https://xpaling.com/repo/github.com%2Fpolymerelements%2Firon-overlay-behavior), [github.com/promises-aplus/promises-spec](https://xpaling.com/repo/github.com%2Fpromises-aplus%2Fpromises-spec) (4 repositories) — first seen 18 Nov 2026
- Technology: [Fastly](https://xpaling.com/tech/fastly), [jQuery 3.1.0](https://xpaling.com/tech/jquery) (response headers: fastly · window: jquery = 3.1.0) — first seen 18 Nov 2026
- The certificate is issued by [Google Trust Services](https://xpaling.com/cert/97efa5ade5c2e04197b0eb46212d80cd5c5ed2838ded070495a525d6ecf7c6b4), valid until 20 Dec 2026, TLS 1.3 (SAN 100 · timstaging.3diq.com, static.ges.digital, marshal.rallyx.online · 97efa5ade5c2…) — first seen 18 Nov 2026
- IPs [151.101.1.195](https://xpaling.com/ip/151.101.1.195), [151.101.65.195](https://xpaling.com/ip/151.101.65.195) belong to [AS54113 Fastly, Inc.](https://xpaling.com/asn/54113), behind [Fastly](https://xpaling.com/cdn/fastly) (151.101.0.0/22 · RPKI valid) — first seen 18 Nov 2026
- Traffic passes through [Fastly](https://xpaling.com/cdn/fastly) first (WAF / DDoS scrubbing in front): DDoS protection included, WAF optional, platform-level protection with no published figure (Fastly DDoS mitigation); routing: prefix 151.101.0.0/22 has a valid RPKI ROA (www.fastly.com/products/ddos-mitigation) — first seen 18 Nov 2026
- NS hosted by [Google Cloud DNS](https://xpaling.com/ns/google-cloud-dns) (ns-cloud-c1.googledomains.com, ns-cloud-c2.googledomains.com, ns-cloud-c3.googledomains.com and 1 more), no CAA record, DNSSEC not signed (apex A 151.101.1.195, 151.101.65.195) — first seen 18 Nov 2026
- Domain folio.finance was registered on 9 Feb 2017 through [Squarespace Domains II LLC](https://xpaling.com/registrar/squarespace-domains-ii-llc), expires 9 Feb 2027 (client delete prohibited client transfer prohibited · changed 12 Aug 2026) — first seen 18 Nov 2026
- 1 more site file answered: /.well-known/apple-app-site-association — first seen 18 Nov 2026
- The page carries the identifier [GA UA-93767805-2](https://xpaling.com/ga/UA-93767805-2) — first seen 18 Nov 2026
- Served over h2 (h3 advertised), first byte in 134 ms, 988 KB in total, gzip compressed, cache MISS (connect 26 ms · TLS 26 ms · 178 requests) — first seen 18 Nov 2026

## Endpoints, routes and files on app.folio.finance

- `/folio-app.min.html` — seen at run time
- 200 `/.well-known/apple-app-site-association` — file · 37 bytes · application/json · Declares iOS universal links (apple-app-site-association)

## Hostnames under folio.finance

2 hostnames are known under folio.finance (1 web, 1 type not recorded).

| Host name | Type | IP | CNAME | In front | First seen | Last seen |
| --- | --- | --- | --- | --- | --- | --- |
| folio.finance (registered domain) | not recorded | 151.101.1.195, 151.101.65.195 |  |  | 18 Nov 2026 | 18 Nov 2026 |
| app.folio.finance (this host) | Web | 151.101.1.195, 151.101.65.195 |  | Fastly | 18 Nov 2026 | 18 Nov 2026 |
| www.folio.finance | not recorded | 151.101.1.195, 151.101.65.195 |  |  | 18 Nov 2026 | 18 Nov 2026 |

## Values in the scripts of app.folio.finance

2 google API keys are written in the page HTML.

### Google API key in the page HTML (2)

- `this` = `AIza…8v_g`
- `api-key` = `AIza…cQ-A`

## Cookies and storage of app.folio.finance

- Cookie `_ga` (26 characters) — .folio.finance · not Secure · not HttpOnly · no SameSite · persistent
- Cookie `_gid` (26 characters) — .folio.finance · not Secure · not HttpOnly · no SameSite · persistent
- Cookie `_gat` (1 character) — .folio.finance · not Secure · not HttpOnly · no SameSite · persistent
- Local storage `firebase:host:folio-1e899.firebaseio.com` = `"s-gke-usc1-nssi2-58.firebaseio.com"`

## Third parties and requests of app.folio.finance

5 third-party domains receive requests from the page. The page made 178 requests; 14 went to them and 164 stayed on first-party hosts. 7 domains are named in the page or its scripts without being requested.

Receives requests (5 domains · 14 requests):

- ajax.googleapis.com — Google Hosted Libraries · libraries from a public CDN — 1 script request
- fonts.googleapis.com — Google Fonts · web fonts and icons — 1 stylesheet request
- www.google-analytics.com — Google Analytics · analytics — 2 requests: 1 xhr, 1 script
- www.gstatic.com — 9 requests: 7 script, 2 stylesheet
- folio-1e899.firebaseio.com — 1 request

First-party hosts seen (164 requests): app.folio.finance

Named in the page, not requested (7 domains): ampcid.google.com, polymerfire-test.firebaseio.com, somesite.com, stats.g.doubleclick.net, tagassistant.google.com, www.google.com, www.googletagmanager.com

### Services used (as of 18 Nov 2026)

- Libraries from a public CDN: jQuery 3.1.0 (ajax.googleapis.com)
- Analytics: Google Analytics
- Web fonts and icons: Google Fonts

## Scripts and behaviour of app.folio.finance

Scripts: analytics.js, webcomponents-lite.min.js

Repositories:

- github.com/polymer/polymer — in javascript;charset=utf-8,%0A%20%20(function()%20%7B%0A%20%20%20%20'use%20strict'%3B%0A%0A%20%20%20%20Polymer(%7B%0A%20%20%20%20%20%20is%3A%20'app-route'%2C%0A%0A%20%20%20%20%20%20properties%3A%20%7B%0A%20%20%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20%20%20*%20The%20URL%20component%20managed%20by%20this%20element.%0A%20%20%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20%20%20route%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20type%3A%20Object%2C%0A%20%20%20%20%20%20%20%20%20%20notify%3A%20true%0A%20%20%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20%20%20*%20The%20pattern%20of%20slash-separated%20segments%20to%20match%20%60path%60%20against.%0A%20%20%20%20%20%20%20%20%20*%0A%20%20%20%20%20%20%20%20%20*%20For%20example%20the%20pattern%20%22%2Ffoo%22%20will%20match%20%22%2Ffoo%22%20or%20%22%2Ffoo%2Fbar%22%0A%20%20%20%20%20%20%20%20%20*%20but%20not%20%22%2Ffoobar%22.%0A%20%20%20%20%20%20%20%20%20*%0A%20%20%20%20%20%20%20%20%20*%20Path%20segments%20like%20%60%2F%3Anamed%60%20are%20mapped%20to%20properties%20on%20the%20%60data%60%20object.%0A%20%20%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20%20%20pattern%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20type%3A%20String%0A%20%20%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20%20%20*%20The%20parameterized%20values%20that%20are%20extracted%20from%20the%20route%20as%0A%20%20%20%20%20%20%20%20%20*%20described%20by%20%60pattern%60.%0A%20%20%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20%20%20data%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20type%3A%20Object%2C%0A%20%20%20%20%20%20%20%20%20%20value%3A%20function()%20%7Breturn%20%7B%7D%3B%7D%2C%0A%20%20%20%20%20%20%20%20%20%20notify%3A%20true%0A%20%20%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20%20%20*%20%40type%20%7B%3FObject%7D%0A%20%20%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20%20%20queryParams%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20type%3A%20Object%2C%0A%20%20%20%20%20%20%20%20%20%20value%3A%20function()%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20return%20%7B%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%20%20notify%3A%20true%0A%20%20%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20%20%20*%20The%20part%20of%20%60path%60%20NOT%20consumed%20by%20%60pattern%60.%0A%20%20%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20%20%20tail%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20type%3A%20Object%2C%0A%20%20%20%20%20%20%20%20%20%20value%3A%20function()%20%7Breturn%20%7Bpath%3A%20null%2C%20prefix%3A%20null%2C%20__queryParams%3A%20null%7D%3B%7D%2C%0A%20%20%20%20%20%20%20%20%20%20notify%3A%20true%0A%20%20%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%20%20active%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20type%3A%20Boolean%2C%0A%20%20%20%20%20%20%20%20%20%20notify%3A%20true%2C%0A%20%20%20%20%20%20%20%20%20%20readOnly%3A%20true%0A%20%20%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%20%20_queryParamsUpdating%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20type%3A%20Boolean%2C%0A%20%20%20%20%20%20%20%20%20%20value%3A%20false%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20%20%20*%20%40type%20%7B%3Fstring%7D%0A%20%20%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20%20%20_matched%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20type%3A%20String%2C%0A%20%20%20%20%20%20%20%20%20%20value%3A%20''%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20observers%3A%20%5B%0A%20%20%20%20%20%20%20%20'__tryToMatch(route.path%2C%20pattern)'%2C%0A%20%20%20%20%20%20%20%20'__updatePathOnDataChange(data.*)'%2C%0A%20%20%20%20%20%20%20%20'__tailPathChanged(tail.path)'%2C%0A%20%20%20%20%20%20%20%20'__routeQueryParamsChanged(route.__queryParams)'%2C%0A%20%20%20%20%20%20%20%20'__tailQueryParamsChanged(tail.__queryParams)'%2C%0A%20%20%20%20%20%20%20%20'__queryParamsChanged(queryParams.*)'%0A%20%20%20%20%20%20%5D%2C%0A%0A%20%20%20%20%20%20created%3A%20function()%20%7B%0A%20%20%20%20%20%20%20%20this.linkPaths('route.__queryParams'%2C%20'tail.__queryParams')%3B%0A%20%20%20%20%20%20%20%20this.linkPaths('tail.__queryParams'%2C%20'route.__queryParams')%3B%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20Deal%20with%20the%20query%20params%20object%20being%20assigned%20to%20wholesale.%0A%20%20%20%20%20%20%20*%20%40export%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20__routeQueryParamsChanged%3A%20function(queryParams)%20%7B%0A%20%20%20%20%20%20%20%20if%20(queryParams%20%26%26%20this.tail)%20%7B%0A%20%20%20%20%20%20%20%20%20%20this.set('tail.__queryParams'%2C%20queryParams)%3B%0A%0A%20%20%20%20%20%20%20%20%20%20if%20(!this.active%20%7C%7C%20this._queryParamsUpdating)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20%20%20%2F%2F%20Copy%20queryParams%20and%20track%20whether%20there%20are%20any%20differences%20compared%0A%20%20%20%20%20%20%20%20%20%20%2F%2F%20to%20the%20existing%20query%20params.%0A%20%20%20%20%20%20%20%20%20%20var%20copyOfQueryParams%20%3D%20%7B%7D%3B%0A%20%20%20%20%20%20%20%20%20%20var%20anythingChanged%20%3D%20false%3B%0A%20%20%20%20%20%20%20%20%20%20for%20(var%20key%20in%20queryParams)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20copyOfQueryParams%5Bkey%5D%20%3D%20queryParams%5Bkey%5D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20if%20(anythingChanged%20%7C%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20!this.queryParams%20%7C%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20queryParams%5Bkey%5D%20!%3D%3D%20this.queryParams%5Bkey%5D)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20anythingChanged%20%3D%20true%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%2F%2F%20Need%20to%20check%20whether%20any%20keys%20were%20deleted%0A%20%20%20%20%20%20%20%20%20%20for%20(var%20key%20in%20this.queryParams)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20if%20(anythingChanged%20%7C%7C%20!(key%20in%20queryParams))%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20anythingChanged%20%3D%20true%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20break%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20%20%20if%20(!anythingChanged)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20this._queryParamsUpdating%20%3D%20true%3B%0A%20%20%20%20%20%20%20%20%20%20this.set('queryParams'%2C%20copyOfQueryParams)%3B%0A%20%20%20%20%20%20%20%20%20%20this._queryParamsUpdating%20%3D%20false%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20%40export%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20__tailQueryParamsChanged%3A%20function(queryParams)%20%7B%0A%20%20%20%20%20%20%20%20if%20(queryParams%20%26%26%20this.route)%20%7B%0A%20%20%20%20%20%20%20%20%20%20this.set('route.__queryParams'%2C%20queryParams)%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20%40export%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20__queryParamsChanged%3A%20function(changes)%20%7B%0A%20%20%20%20%20%20%20%20if%20(!this.active%20%7C%7C%20this._queryParamsUpdating)%20%7B%0A%20%20%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20this.set('route.__'%20%2B%20changes.path%2C%20changes.value)%3B%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20__resetProperties%3A%20function()%20%7B%0A%20%20%20%20%20%20%20%20this._setActive(false)%3B%0A%20%20%20%20%20%20%20%20this._matched%20%3D%20null%3B%0A%20%20%20%20%20%20%20%20%2F%2Fthis.tail%20%3D%20%7B%20path%3A%20null%2C%20prefix%3A%20null%2C%20queryParams%3A%20null%20%7D%3B%0A%20%20%20%20%20%20%20%20%2F%2Fthis.data%20%3D%20%7B%7D%3B%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20%40export%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20__tryToMatch%3A%20function()%20%7B%0A%20%20%20%20%20%20%20%20if%20(!this.route)%20%7B%0A%20%20%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20var%20path%20%3D%20this.route.path%3B%0A%20%20%20%20%20%20%20%20var%20pattern%20%3D%20this.pattern%3B%0A%20%20%20%20%20%20%20%20if%20(!pattern)%20%7B%0A%20%20%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20if%20(!path)%20%7B%0A%20%20%20%20%20%20%20%20%20%20this.__resetProperties()%3B%0A%20%20%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20var%20remainingPieces%20%3D%20path.split('%2F')%3B%0A%20%20%20%20%20%20%20%20var%20patternPieces%20%3D%20pattern.split('%2F')%3B%0A%0A%20%20%20%20%20%20%20%20var%20matched%20%3D%20%5B%5D%3B%0A%20%20%20%20%20%20%20%20var%20namedMatches%20%3D%20%7B%7D%3B%0A%0A%20%20%20%20%20%20%20%20for%20(var%20i%3D0%3B%20i%20%3C%20patternPieces.length%3B%20i%2B%2B)%20%7B%0A%20%20%20%20%20%20%20%20%20%20var%20patternPiece%20%3D%20patternPieces%5Bi%5D%3B%0A%20%20%20%20%20%20%20%20%20%20if%20(!patternPiece%20%26%26%20patternPiece%20!%3D%3D%20'')%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20break%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20var%20pathPiece%20%3D%20remainingPieces.shift()%3B%0A%0A%20%20%20%20%20%20%20%20%20%20%2F%2F%20We%20don't%20match%20this%20path.%0A%20%20%20%20%20%20%20%20%20%20if%20(!pathPiece%20%26%26%20pathPiece%20!%3D%3D%20'')%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20this.__resetProperties()%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20matched.push(pathPiece)%3B%0A%0A%20%20%20%20%20%20%20%20%20%20if%20(patternPiece.charAt(0)%20%3D%3D%20'%3A')%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20namedMatches%5BpatternPiece.slice(1)%5D%20%3D%20pathPiece%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%20else%20if%20(patternPiece%20!%3D%3D%20pathPiece)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20this.__resetProperties()%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20this._matched%20%3D%20matched.join('%2F')%3B%0A%0A%20%20%20%20%20%20%20%20%2F%2F%20Properties%20that%20must%20be%20updated%20atomically.%0A%20%20%20%20%20%20%20%20var%20propertyUpdates%20%3D%20%7B%7D%3B%0A%0A%20%20%20%20%20%20%20%20%2F%2Fthis.active%0A%20%20%20%20%20%20%20%20if%20(!this.active)%20%7B%0A%20%20%20%20%20%20%20%20%20%20propertyUpdates.active%20%3D%20true%3B%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20%2F%2F%20this.tail%0A%20%20%20%20%20%20%20%20var%20tailPrefix%20%3D%20this.route.prefix%20%2B%20this._matched%3B%0A%20%20%20%20%20%20%20%20var%20tailPath%20%3D%20remainingPieces.join('%2F')%3B%0A%20%20%20%20%20%20%20%20if%20(remainingPieces.length%20%3E%200)%20%7B%0A%20%20%20%20%20%20%20%20%20%20tailPath%20%3D%20'%2F'%20%2B%20tailPath%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20if%20(!this.tail%20%7C%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20this.tail.prefix%20!%3D%3D%20tailPrefix%20%7C%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20this.tail.path%20!%3D%3D%20tailPath)%20%7B%0A%20%20%20%20%20%20%20%20%20%20propertyUpdates.tail%20%3D%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20prefix%3A%20tailPrefix%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20path%3A%20tailPath%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20__queryParams%3A%20this.route.__queryParams%0A%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20%2F%2F%20this.data%0A%20%20%20%20%20%20%20%20propertyUpdates.data%20%3D%20namedMatches%3B%0A%20%20%20%20%20%20%20%20this._dataInUrl%20%3D%20%7B%7D%3B%0A%20%20%20%20%20%20%20%20for%20(var%20key%20in%20namedMatches)%20%7B%0A%20%20%20%20%20%20%20%20%20%20this._dataInUrl%5Bkey%5D%20%3D%20namedMatches%5Bkey%5D%3B%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20this.__setMulti(propertyUpdates)%3B%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20%40export%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20__tailPathChanged%3A%20function(path)%20%7B%0A%20%20%20%20%20%20%20%20if%20(!this.active)%20%7B%0A%20%20%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20var%20tailPath%20%3D%20path%3B%0A%20%20%20%20%20%20%20%20var%20newPath%20%3D%20this._matched%3B%0A%20%20%20%20%20%20%20%20if%20(tailPath)%20%7B%0A%20%20%20%20%20%20%20%20%20%20if%20(tailPath.charAt(0)%20!%3D%3D%20'%2F')%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20tailPath%20%3D%20'%2F'%20%2B%20tailPath%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20newPath%20%2B%3D%20tailPath%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20this.set('route.path'%2C%20newPath)%3B%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20%40export%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20__updatePathOnDataChange%3A%20function()%20%7B%0A%20%20%20%20%20%20%20%20if%20(!this.route%20%7C%7C%20!this.active)%20%7B%0A%20%20%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20var%20newPath%20%3D%20this.__getLink(%7B%7D)%3B%0A%20%20%20%20%20%20%20%20var%20oldPath%20%3D%20this.__getLink(this._dataInUrl)%3B%0A%20%20%20%20%20%20%20%20if%20(newPath%20%3D%3D%3D%20oldPath)%20%7B%0A%20%20%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20this.set('route.path'%2C%20newPath)%3B%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20__getLink%3A%20function(overrideValues)%20%7B%0A%20%20%20%20%20%20%20%20var%20values%20%3D%20%7Btail%3A%20null%7D%3B%0A%20%20%20%20%20%20%20%20for%20(var%20key%20in%20this.data)%20%7B%0A%20%20%20%20%20%20%20%20%20%20values%5Bkey%5D%20%3D%20this.data%5Bkey%5D%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20for%20(var%20key%20in%20overrideValues)%20%7B%0A%20%20%20%20%20%20%20%20%20%20values%5Bkey%5D%20%3D%20overrideValues%5Bkey%5D%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20var%20patternPieces%20%3D%20this.pattern.split('%2F')%3B%0A%20%20%20%20%20%20%20%20var%20interp%20%3D%20patternPieces.map(function(value)%20%7B%0A%20%20%20%20%20%20%20%20%20%20if%20(value%5B0%5D%20%3D%3D%20'%3A')%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20value%20%3D%20values%5Bvalue.slice(1)%5D%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20return%20value%3B%0A%20%20%20%20%20%20%20%20%7D%2C%20this)%3B%0A%20%20%20%20%20%20%20%20if%20(values.tail%20%26%26%20values.tail.path)%20%7B%0A%20%20%20%20%20%20%20%20%20%20if%20(interp.length%20%3E%200%20%26%26%20values.tail.path.charAt(0)%20%3D%3D%3D%20'%2F')%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20interp.push(values.tail.path.slice(1))%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20interp.push(values.tail.path)%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20return%20interp.join('%2F')%3B%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20__setMulti%3A%20function(setObj)%20%7B%0A%20%20%20%20%20%20%20%20%2F%2F%20HACK(rictic)%3A%20skirting%20around%201.0's%20lack%20of%20a%20setMulti%20by%20poking%20at%0A%20%20%20%20%20%20%20%20%2F%2F%20%20%20%20%20internal%20data%20structures.%20I%20would%20not%20advise%20that%20you%20copy%20this%0A%20%20%20%20%20%20%20%20%2F%2F%20%20%20%20%20example.%0A%20%20%20%20%20%20%20%20%2F%2F%0A%20%20%20%20%20%20%20%20%2F%2F%20%20%20%20%20In%20the%20future%20this%20will%20be%20a%20feature%20of%20Polymer%20itself.%0A%20%20%20%20%20%20%20%20%2F%2F%20%20%20%20%20See%3A%20https%3A%2F%2Fgithub.com%2FPolymer%2Fpolymer%2Fissues%2F3640%0A%20%20%20%20%20%20%20%20%2F%2F%0A%20%20%20%20%20%20%20%20%2F%2F%20%20%20%20%20Hacking%20around%20with%20private%20methods%20like%20this%20is%20juggling%20footguns%2C%0A%20%20%20%20%20%20%20%20%2F%2F%20%20%20%20%20and%20is%20likely%20to%20have%20unexpected%20and%20unsupported%20rough%20edges.%0A%20%20%20%20%20%20%20%20%2F%2F%0A%20%20%20%20%20%20%20%20%2F%2F%20%20%20%20%20Be%20ye%20so%20warned.%0A%20%20%20%20%20%20%20%20for%20(var%20property%20in%20setObj)%20%7B%0A%20%20%20%20%20%20%20%20%20%20this._propertySetter(property%2C%20setObj%5Bproperty%5D)%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%2F%2Fnotify%20in%20a%20specific%20order%0A%20%20%20%20%20%20%20%20if%20(setObj.data%20!%3D%3D%20undefined)%20%7B%0A%20%20%20%20%20%20%20%20%20%20this._pathEffector('data'%2C%20this.data)%3B%0A%20%20%20%20%20%20%20%20%20%20this._notifyChange('data')%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20if%20(setObj.active%20!%3D%3D%20undefined)%20%7B%0A%20%20%20%20%20%20%20%20%20%20this._pathEffector('active'%2C%20this.active)%3B%0A%20%20%20%20%20%20%20%20%20%20this._notifyChange('active')%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20if%20(setObj.tail%20!%3D%3D%20undefined)%20%7B%0A%20%20%20%20%20%20%20%20%20%20this._pathEffector('tail'%2C%20this.tail)%3B%0A%20%20%20%20%20%20%20%20%20%20this._notifyChange('tail')%3B%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D)%3B%0A%20%20%7D)()%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fapp.folio.finance%2Ffolio-app.min.html-7.js%0A
- github.com/polymerelements/iron-a11y-keys-behavior — in javascript;charset=utf-8,%0A%20%20(function()%20%7B%0A%20%20%20%20'use%20strict'%3B%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Chrome%20uses%20an%20older%20version%20of%20DOM%20Level%203%20Keyboard%20Events%0A%20%20%20%20%20*%0A%20%20%20%20%20*%20Most%20keys%20are%20labeled%20as%20text%2C%20but%20some%20are%20Unicode%20codepoints.%0A%20%20%20%20%20*%20Values%20taken%20from%3A%20http%3A%2F%2Fwww.w3.org%2FTR%2F2007%2FWD-DOM-Level-3-Events-20071221%2Fkeyset.html%23KeySet-Set%0A%20%20%20%20%20*%2F%0A%20%20%20%20var%20KEY_IDENTIFIER%20%3D%20%7B%0A%20%20%20%20%20%20'U%2B0008'%3A%20'backspace'%2C%0A%20%20%20%20%20%20'U%2B0009'%3A%20'tab'%2C%0A%20%20%20%20%20%20'U%2B001B'%3A%20'esc'%2C%0A%20%20%20%20%20%20'U%2B0020'%3A%20'space'%2C%0A%20%20%20%20%20%20'U%2B007F'%3A%20'del'%0A%20%20%20%20%7D%3B%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Special%20table%20for%20KeyboardEvent.keyCode.%0A%20%20%20%20%20*%20KeyboardEvent.keyIdentifier%20is%20better%2C%20and%20KeyBoardEvent.key%20is%20even%20better%0A%20%20%20%20%20*%20than%20that.%0A%20%20%20%20%20*%0A%20%20%20%20%20*%20Values%20from%3A%20https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FAPI%2FKeyboardEvent.keyCode%23Value_of_keyCode%0A%20%20%20%20%20*%2F%0A%20%20%20%20var%20KEY_CODE%20%3D%20%7B%0A%20%20%20%20%20%208%3A%20'backspace'%2C%0A%20%20%20%20%20%209%3A%20'tab'%2C%0A%20%20%20%20%20%2013%3A%20'enter'%2C%0A%20%20%20%20%20%2027%3A%20'esc'%2C%0A%20%20%20%20%20%2033%3A%20'pageup'%2C%0A%20%20%20%20%20%2034%3A%20'pagedown'%2C%0A%20%20%20%20%20%2035%3A%20'end'%2C%0A%20%20%20%20%20%2036%3A%20'home'%2C%0A%20%20%20%20%20%2032%3A%20'space'%2C%0A%20%20%20%20%20%2037%3A%20'left'%2C%0A%20%20%20%20%20%2038%3A%20'up'%2C%0A%20%20%20%20%20%2039%3A%20'right'%2C%0A%20%20%20%20%20%2040%3A%20'down'%2C%0A%20%20%20%20%20%2046%3A%20'del'%2C%0A%20%20%20%20%20%20106%3A%20'*'%0A%20%20%20%20%7D%3B%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20MODIFIER_KEYS%20maps%20the%20short%20name%20for%20modifier%20keys%20used%20in%20a%20key%0A%20%20%20%20%20*%20combo%20string%20to%20the%20property%20name%20that%20references%20those%20same%20keys%0A%20%20%20%20%20*%20in%20a%20KeyboardEvent%20instance.%0A%20%20%20%20%20*%2F%0A%20%20%20%20var%20MODIFIER_KEYS%20%3D%20%7B%0A%20%20%20%20%20%20'shift'%3A%20'shiftKey'%2C%0A%20%20%20%20%20%20'ctrl'%3A%20'ctrlKey'%2C%0A%20%20%20%20%20%20'alt'%3A%20'altKey'%2C%0A%20%20%20%20%20%20'meta'%3A%20'metaKey'%0A%20%20%20%20%7D%3B%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20KeyboardEvent.key%20is%20mostly%20represented%20by%20printable%20character%20made%20by%0A%20%20%20%20%20*%20the%20keyboard%2C%20with%20unprintable%20keys%20labeled%20nicely.%0A%20%20%20%20%20*%0A%20%20%20%20%20*%20However%2C%20on%20OS%20X%2C%20Alt%2Bchar%20can%20make%20a%20Unicode%20character%20that%20follows%20an%0A%20%20%20%20%20*%20Apple-specific%20mapping.%20In%20this%20case%2C%20we%20fall%20back%20to%20.keyCode.%0A%20%20%20%20%20*%2F%0A%20%20%20%20var%20KEY_CHAR%20%3D%20%2F%5Ba-z0-9*%5D%2F%3B%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Matches%20a%20keyIdentifier%20string.%0A%20%20%20%20%20*%2F%0A%20%20%20%20var%20IDENT_CHAR%20%3D%20%2FU%5C%2B%2F%3B%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Matches%20arrow%20keys%20in%20Gecko%2027.0%2B%0A%20%20%20%20%20*%2F%0A%20%20%20%20var%20ARROW_KEY%20%3D%20%2F%5Earrow%2F%3B%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Matches%20space%20keys%20everywhere%20(notably%20including%20IE10's%20exceptional%20name%0A%20%20%20%20%20*%20%60spacebar%60).%0A%20%20%20%20%20*%2F%0A%20%20%20%20var%20SPACE_KEY%20%3D%20%2F%5Espace(bar)%3F%2F%3B%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Matches%20ESC%20key.%0A%20%20%20%20%20*%0A%20%20%20%20%20*%20Value%20from%3A%20http%3A%2F%2Fw3c.github.io%2Fuievents-key%2F%23key-Escape%0A%20%20%20%20%20*%2F%0A%20%20%20%20var%20ESC_KEY%20%3D%20%2F%5Eescape%24%2F%3B%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Transforms%20the%20key.%0A%20%20%20%20%20*%20%40param%20%7Bstring%7D%20key%20The%20KeyBoardEvent.key%0A%20%20%20%20%20*%20%40param%20%7BBoolean%7D%20%5BnoSpecialChars%5D%20Limits%20the%20transformation%20to%0A%20%20%20%20%20*%20alpha-numeric%20characters.%0A%20%20%20%20%20*%2F%0A%20%20%20%20function%20transformKey(key%2C%20noSpecialChars)%20%7B%0A%20%20%20%20%20%20var%20validKey%20%3D%20''%3B%0A%20%20%20%20%20%20if%20(key)%20%7B%0A%20%20%20%20%20%20%20%20var%20lKey%20%3D%20key.toLowerCase()%3B%0A%20%20%20%20%20%20%20%20if%20(lKey%20%3D%3D%3D%20'%20'%20%7C%7C%20SPACE_KEY.test(lKey))%20%7B%0A%20%20%20%20%20%20%20%20%20%20validKey%20%3D%20'space'%3B%0A%20%20%20%20%20%20%20%20%7D%20else%20if%20(ESC_KEY.test(lKey))%20%7B%0A%20%20%20%20%20%20%20%20%20%20validKey%20%3D%20'esc'%3B%0A%20%20%20%20%20%20%20%20%7D%20else%20if%20(lKey.length%20%3D%3D%201)%20%7B%0A%20%20%20%20%20%20%20%20%20%20if%20(!noSpecialChars%20%7C%7C%20KEY_CHAR.test(lKey))%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20validKey%20%3D%20lKey%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%20else%20if%20(ARROW_KEY.test(lKey))%20%7B%0A%20%20%20%20%20%20%20%20%20%20validKey%20%3D%20lKey.replace('arrow'%2C%20'')%3B%0A%20%20%20%20%20%20%20%20%7D%20else%20if%20(lKey%20%3D%3D%20'multiply')%20%7B%0A%20%20%20%20%20%20%20%20%20%20%2F%2F%20numpad%20'*'%20can%20map%20to%20Multiply%20on%20IE%2FWindows%0A%20%20%20%20%20%20%20%20%20%20validKey%20%3D%20'*'%3B%0A%20%20%20%20%20%20%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20%20%20%20%20validKey%20%3D%20lKey%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20return%20validKey%3B%0A%20%20%20%20%7D%0A%0A%20%20%20%20function%20transformKeyIdentifier(keyIdent)%20%7B%0A%20%20%20%20%20%20var%20validKey%20%3D%20''%3B%0A%20%20%20%20%20%20if%20(keyIdent)%20%7B%0A%20%20%20%20%20%20%20%20if%20(keyIdent%20in%20KEY_IDENTIFIER)%20%7B%0A%20%20%20%20%20%20%20%20%20%20validKey%20%3D%20KEY_IDENTIFIER%5BkeyIdent%5D%3B%0A%20%20%20%20%20%20%20%20%7D%20else%20if%20(IDENT_CHAR.test(keyIdent))%20%7B%0A%20%20%20%20%20%20%20%20%20%20keyIdent%20%3D%20parseInt(keyIdent.replace('U%2B'%2C%20'0x')%2C%2016)%3B%0A%20%20%20%20%20%20%20%20%20%20validKey%20%3D%20String.fromCharCode(keyIdent).toLowerCase()%3B%0A%20%20%20%20%20%20%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20%20%20%20%20validKey%20%3D%20keyIdent.toLowerCase()%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20return%20validKey%3B%0A%20%20%20%20%7D%0A%0A%20%20%20%20function%20transformKeyCode(keyCode)%20%7B%0A%20%20%20%20%20%20var%20validKey%20%3D%20''%3B%0A%20%20%20%20%20%20if%20(Number(keyCode))%20%7B%0A%20%20%20%20%20%20%20%20if%20(keyCode%20%3E%3D%2065%20%26%26%20keyCode%20%3C%3D%2090)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%2F%2F%20ascii%20a-z%0A%20%20%20%20%20%20%20%20%20%20%2F%2F%20lowercase%20is%2032%20offset%20from%20uppercase%0A%20%20%20%20%20%20%20%20%20%20validKey%20%3D%20String.fromCharCode(32%20%2B%20keyCode)%3B%0A%20%20%20%20%20%20%20%20%7D%20else%20if%20(keyCode%20%3E%3D%20112%20%26%26%20keyCode%20%3C%3D%20123)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%2F%2F%20function%20keys%20f1-f12%0A%20%20%20%20%20%20%20%20%20%20validKey%20%3D%20'f'%20%2B%20(keyCode%20-%20112)%3B%0A%20%20%20%20%20%20%20%20%7D%20else%20if%20(keyCode%20%3E%3D%2048%20%26%26%20keyCode%20%3C%3D%2057)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%2F%2F%20top%200-9%20keys%0A%20%20%20%20%20%20%20%20%20%20validKey%20%3D%20String(keyCode%20-%2048)%3B%0A%20%20%20%20%20%20%20%20%7D%20else%20if%20(keyCode%20%3E%3D%2096%20%26%26%20keyCode%20%3C%3D%20105)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%2F%2F%20num%20pad%200-9%0A%20%20%20%20%20%20%20%20%20%20validKey%20%3D%20String(keyCode%20-%2096)%3B%0A%20%20%20%20%20%20%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20%20%20%20%20validKey%20%3D%20KEY_CODE%5BkeyCode%5D%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20return%20validKey%3B%0A%20%20%20%20%7D%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20%20*%20Calculates%20the%20normalized%20key%20for%20a%20KeyboardEvent.%0A%20%20%20%20%20%20*%20%40param%20%7BKeyboardEvent%7D%20keyEvent%0A%20%20%20%20%20%20*%20%40param%20%7BBoolean%7D%20%5BnoSpecialChars%5D%20Set%20to%20true%20to%20limit%20keyEvent.key%0A%20%20%20%20%20%20*%20transformation%20to%20alpha-numeric%20chars.%20This%20is%20useful%20with%20key%0A%20%20%20%20%20%20*%20combinations%20like%20shift%20%2B%202%2C%20which%20on%20FF%20for%20MacOS%20produces%0A%20%20%20%20%20%20*%20keyEvent.key%20%3D%20%40%0A%20%20%20%20%20%20*%20To%20get%202%20returned%2C%20set%20noSpecialChars%20%3D%20true%0A%20%20%20%20%20%20*%20To%20get%20%40%20returned%2C%20set%20noSpecialChars%20%3D%20false%0A%20%20%20%20%20*%2F%0A%20%20%20%20function%20normalizedKeyForEvent(keyEvent%2C%20noSpecialChars)%20%7B%0A%20%20%20%20%20%20%2F%2F%20Fall%20back%20from%20.key%2C%20to%20.detail.key%20for%20artifical%20keyboard%20events%2C%0A%20%20%20%20%20%20%2F%2F%20and%20then%20to%20deprecated%20.keyIdentifier%20and%20.keyCode.%0A%20%20%20%20%20%20if%20(keyEvent.key)%20%7B%0A%20%20%20%20%20%20%20%20return%20transformKey(keyEvent.key%2C%20noSpecialChars)%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20if%20(keyEvent.detail%20%26%26%20keyEvent.detail.key)%20%7B%0A%20%20%20%20%20%20%20%20return%20transformKey(keyEvent.detail.key%2C%20noSpecialChars)%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20return%20transformKeyIdentifier(keyEvent.keyIdentifier)%20%7C%7C%0A%20%20%20%20%20%20%20%20transformKeyCode(keyEvent.keyCode)%20%7C%7C%20''%3B%0A%20%20%20%20%7D%0A%0A%20%20%20%20function%20keyComboMatchesEvent(keyCombo%2C%20event)%20%7B%0A%20%20%20%20%20%20%2F%2F%20For%20combos%20with%20modifiers%20we%20support%20only%20alpha-numeric%20keys%0A%20%20%20%20%20%20var%20keyEvent%20%3D%20normalizedKeyForEvent(event%2C%20keyCombo.hasModifiers)%3B%0A%20%20%20%20%20%20return%20keyEvent%20%3D%3D%3D%20keyCombo.key%20%26%26%0A%20%20%20%20%20%20%20%20(!keyCombo.hasModifiers%20%7C%7C%20(%0A%20%20%20%20%20%20%20%20%20%20!!event.shiftKey%20%3D%3D%3D%20!!keyCombo.shiftKey%20%26%26%0A%20%20%20%20%20%20%20%20%20%20!!event.ctrlKey%20%3D%3D%3D%20!!keyCombo.ctrlKey%20%26%26%0A%20%20%20%20%20%20%20%20%20%20!!event.altKey%20%3D%3D%3D%20!!keyCombo.altKey%20%26%26%0A%20%20%20%20%20%20%20%20%20%20!!event.metaKey%20%3D%3D%3D%20!!keyCombo.metaKey)%0A%20%20%20%20%20%20%20%20)%3B%0A%20%20%20%20%7D%0A%0A%20%20%20%20function%20parseKeyComboString(keyComboString)%20%7B%0A%20%20%20%20%20%20if%20(keyComboString.length%20%3D%3D%3D%201)%20%7B%0A%20%20%20%20%20%20%20%20return%20%7B%0A%20%20%20%20%20%20%20%20%20%20combo%3A%20keyComboString%2C%0A%20%20%20%20%20%20%20%20%20%20key%3A%20keyComboString%2C%0A%20%20%20%20%20%20%20%20%20%20event%3A%20'keydown'%0A%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20return%20keyComboString.split('%2B').reduce(function(parsedKeyCombo%2C%20keyComboPart)%20%7B%0A%20%20%20%20%20%20%20%20var%20eventParts%20%3D%20keyComboPart.split('%3A')%3B%0A%20%20%20%20%20%20%20%20var%20keyName%20%3D%20eventParts%5B0%5D%3B%0A%20%20%20%20%20%20%20%20var%20event%20%3D%20eventParts%5B1%5D%3B%0A%0A%20%20%20%20%20%20%20%20if%20(keyName%20in%20MODIFIER_KEYS)%20%7B%0A%20%20%20%20%20%20%20%20%20%20parsedKeyCombo%5BMODIFIER_KEYS%5BkeyName%5D%5D%20%3D%20true%3B%0A%20%20%20%20%20%20%20%20%20%20parsedKeyCombo.hasModifiers%20%3D%20true%3B%0A%20%20%20%20%20%20%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20%20%20%20%20parsedKeyCombo.key%20%3D%20keyName%3B%0A%20%20%20%20%20%20%20%20%20%20parsedKeyCombo.event%20%3D%20event%20%7C%7C%20'keydown'%3B%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20return%20parsedKeyCombo%3B%0A%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20combo%3A%20keyComboString.split('%3A').shift()%0A%20%20%20%20%20%20%7D)%3B%0A%20%20%20%20%7D%0A%0A%20%20%20%20function%20parseEventString(eventString)%20%7B%0A%20%20%20%20%20%20return%20eventString.trim().split('%20').map(function(keyComboString)%20%7B%0A%20%20%20%20%20%20%20%20return%20parseKeyComboString(keyComboString)%3B%0A%20%20%20%20%20%20%7D)%3B%0A%20%20%20%20%7D%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20%60Polymer.IronA11yKeysBehavior%60%20provides%20a%20normalized%20interface%20for%20processing%0A%20%20%20%20%20*%20keyboard%20commands%20that%20pertain%20to%20%5BWAI-ARIA%20best%20practices%5D(http%3A%2F%2Fwww.w3.org%2FTR%2Fwai-aria-practices%2F%23kbd_general_binding).%0A%20%20%20%20%20*%20The%20element%20takes%20care%20of%20browser%20differences%20with%20respect%20to%20Keyboard%20events%0A%20%20%20%20%20*%20and%20uses%20an%20expressive%20syntax%20to%20filter%20key%20presses.%0A%20%20%20%20%20*%0A%20%20%20%20%20*%20Use%20the%20%60keyBindings%60%20prototype%20property%20to%20express%20what%20combination%20of%20keys%0A%20%20%20%20%20*%20will%20trigger%20the%20callback.%20A%20key%20binding%20has%20the%20format%0A%20%20%20%20%20*%20%60%22KEY%2BMODIFIER%3AEVENT%22%3A%20%22callback%22%60%20(%60%22KEY%22%3A%20%22callback%22%60%20or%0A%20%20%20%20%20*%20%60%22KEY%3AEVENT%22%3A%20%22callback%22%60%20are%20valid%20as%20well).%20Some%20examples%3A%0A%20%20%20%20%20*%0A%20%20%20%20%20*%20%20%20%20%20%20keyBindings%3A%20%7B%0A%20%20%20%20%20*%20%20%20%20%20%20%20%20'space'%3A%20'_onKeydown'%2C%20%2F%2F%20same%20as%20'space%3Akeydown'%0A%20%20%20%20%20*%20%20%20%20%20%20%20%20'shift%2Btab'%3A%20'_onKeydown'%2C%0A%20%20%20%20%20*%20%20%20%20%20%20%20%20'enter%3Akeypress'%3A%20'_onKeypress'%2C%0A%20%20%20%20%20*%20%20%20%20%20%20%20%20'esc%3Akeyup'%3A%20'_onKeyup'%0A%20%20%20%20%20*%20%20%20%20%20%20%7D%0A%20%20%20%20%20*%0A%20%20%20%20%20*%20The%20callback%20will%20receive%20with%20an%20event%20containing%20the%20following%20information%20in%20%60event.detail%60%3A%0A%20%20%20%20%20*%0A%20%20%20%20%20*%20%20%20%20%20%20_onKeydown%3A%20function(event)%20%7B%0A%20%20%20%20%20*%20%20%20%20%20%20%20%20console.log(event.detail.combo)%3B%20%2F%2F%20KEY%2BMODIFIER%2C%20e.g.%20%22shift%2Btab%22%0A%20%20%20%20%20*%20%20%20%20%20%20%20%20console.log(event.detail.key)%3B%20%2F%2F%20KEY%20only%2C%20e.g.%20%22tab%22%0A%20%20%20%20%20*%20%20%20%20%20%20%20%20console.log(event.detail.event)%3B%20%2F%2F%20EVENT%2C%20e.g.%20%22keydown%22%0A%20%20%20%20%20*%20%20%20%20%20%20%20%20console.log(event.detail.keyboardEvent)%3B%20%2F%2F%20the%20original%20KeyboardEvent%0A%20%20%20%20%20*%20%20%20%20%20%20%7D%0A%20%20%20%20%20*%0A%20%20%20%20%20*%20Use%20the%20%60keyEventTarget%60%20attribute%20to%20set%20up%20event%20handlers%20on%20a%20specific%0A%20%20%20%20%20*%20node.%0A%20%20%20%20%20*%0A%20%20%20%20%20*%20See%20the%20%5Bdemo%20source%20code%5D(https%3A%2F%2Fgithub.com%2FPolymerElements%2Firon-a11y-keys-behavior%2Fblob%2Fmaster%2Fdemo%2Fx-key-aware.html)%0A%20%20%20%20%20*%20for%20an%20example.%0A%20%20%20%20%20*%0A%20%20%20%20%20*%20%40demo%20demo%2Findex.html%0A%20%20%20%20%20*%20%40polymerBehavior%0A%20%20%20%20%20*%2F%0A%20%20%20%20Polymer.IronA11yKeysBehavior%20%3D%20%7B%0A%20%20%20%20%20%20properties%3A%20%7B%0A%20%20%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20%20%20*%20The%20EventTarget%20that%20will%20be%20firing%20relevant%20KeyboardEvents.%20Set%20it%20to%0A%20%20%20%20%20%20%20%20%20*%20%60null%60%20to%20disable%20the%20listeners.%0A%20%20%20%20%20%20%20%20%20*%20%40type%20%7B%3FEventTarget%7D%0A%20%20%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20%20%20keyEventTarget%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20type%3A%20Object%2C%0A%20%20%20%20%20%20%20%20%20%20value%3A%20function()%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20return%20this%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20%20%20*%20If%20true%2C%20this%20property%20will%20cause%20the%20implementing%20element%20to%0A%20%20%20%20%20%20%20%20%20*%20automatically%20stop%20propagation%20on%20any%20handled%20KeyboardEvents.%0A%20%20%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20%20%20stopKeyboardEventPropagation%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20type%3A%20Boolean%2C%0A%20%20%20%20%20%20%20%20%20%20value%3A%20false%0A%20%20%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%20%20_boundKeyHandlers%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20type%3A%20Array%2C%0A%20%20%20%20%20%20%20%20%20%20value%3A%20function()%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20return%20%5B%5D%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%20%20%2F%2F%20We%20use%20this%20due%20to%20a%20limitation%20in%20IE10%20where%20instances%20will%20have%0A%20%20%20%20%20%20%20%20%2F%2F%20own%20properties%20of%20everything%20on%20the%20%22prototype%22.%0A%20%20%20%20%20%20%20%20_imperativeKeyBindings%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20type%3A%20Object%2C%0A%20%20%20%20%20%20%20%20%20%20value%3A%20function()%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20return%20%7B%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20observers%3A%20%5B%0A%20%20%20%20%20%20%20%20'_resetKeyEventListeners(keyEventTarget%2C%20_boundKeyHandlers)'%0A%20%20%20%20%20%20%5D%2C%0A%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20To%20be%20used%20to%20express%20what%20combination%20of%20keys%20%20will%20trigger%20the%20relative%0A%20%20%20%20%20%20%20*%20callback.%20e.g.%20%60keyBindings%3A%20%7B%20'esc'%3A%20'_onEscPressed'%7D%60%0A%20%20%20%20%20%20%20*%20%40type%20%7B!Object%7D%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20keyBindings%3A%20%7B%7D%2C%0A%0A%20%20%20%20%20%20registered%3A%20function()%20%7B%0A%20%20%20%20%20%20%20%20this._prepKeyBindings()%3B%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20attached%3A%20function()%20%7B%0A%20%20%20%20%20%20%20%20this._listenKeyEventListeners()%3B%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20detached%3A%20function()%20%7B%0A%20%20%20%20%20%20%20%20this._unlistenKeyEventListeners()%3B%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20Can%20be%20used%20to%20imperatively%20add%20a%20key%20binding%20to%20the%20implementing%0A%20%20%20%20%20%20%20*%20element.%20This%20is%20the%20imperative%20equivalent%20of%20declaring%20a%20keybinding%0A%20%20%20%20%20%20%20*%20in%20the%20%60keyBindings%60%20prototype%20property.%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20addOwnKeyBinding%3A%20function(eventString%2C%20handlerName)%20%7B%0A%20%20%20%20%20%20%20%20this._imperativeKeyBindings%5BeventString%5D%20%3D%20handlerName%3B%0A%20%20%20%20%20%20%20%20this._prepKeyBindings()%3B%0A%20%20%20%20%20%20%20%20this._resetKeyEventListeners()%3B%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20When%20called%2C%20will%20remove%20all%20imperatively-added%20key%20bindings.%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20removeOwnKeyBindings%3A%20function()%20%7B%0A%20%20%20%20%20%20%20%20this._imperativeKeyBindings%20%3D%20%7B%7D%3B%0A%20%20%20%20%20%20%20%20this._prepKeyBindings()%3B%0A%20%20%20%20%20%20%20%20this._resetKeyEventListeners()%3B%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20Returns%20true%20if%20a%20keyboard%20event%20matches%20%60eventString%60.%0A%20%20%20%20%20%20%20*%0A%20%20%20%20%20%20%20*%20%40param%20%7BKeyboardEvent%7D%20event%0A%20%20%20%20%20%20%20*%20%40param%20%7Bstring%7D%20eventString%0A%20%20%20%20%20%20%20*%20%40return%20%7Bboolean%7D%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20keyboardEventMatchesKeys%3A%20function(event%2C%20eventString)%20%7B%0A%20%20%20%20%20%20%20%20var%20keyCombos%20%3D%20parseEventString(eventString)%3B%0A%20%20%20%20%20%20%20%20for%20(var%20i%20%3D%200%3B%20i%20%3C%20keyCombos.length%3B%20%2B%2Bi)%20%7B%0A%20%20%20%20%20%20%20%20%20%20if%20(keyComboMatchesEvent(keyCombos%5Bi%5D%2C%20event))%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20return%20true%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20return%20false%3B%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20_collectKeyBindings%3A%20function()%20%7B%0A%20%20%20%20%20%20%20%20var%20keyBindings%20%3D%20this.behaviors.map(function(behavior)%20%7B%0A%20%20%20%20%20%20%20%20%20%20return%20behavior.keyBindings%3B%0A%20%20%20%20%20%20%20%20%7D)%3B%0A%0A%20%20%20%20%20%20%20%20if%20(keyBindings.indexOf(this.keyBindings)%20%3D%3D%3D%20-1)%20%7B%0A%20%20%20%20%20%20%20%20%20%20keyBindings.push(this.keyBindings)%3B%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20return%20keyBindings%3B%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20_prepKeyBindings%3A%20function()%20%7B%0A%20%20%20%20%20%20%20%20this._keyBindings%20%3D%20%7B%7D%3B%0A%0A%20%20%20%20%20%20%20%20this._collectKeyBindings().forEach(function(keyBindings)%20%7B%0A%20%20%20%20%20%20%20%20%20%20for%20(var%20eventString%20in%20keyBindings)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20this._addKeyBinding(eventString%2C%20keyBindings%5BeventString%5D)%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%2C%20this)%3B%0A%0A%20%20%20%20%20%20%20%20for%20(var%20eventString%20in%20this._imperativeKeyBindings)%20%7B%0A%20%20%20%20%20%20%20%20%20%20this._addKeyBinding(eventString%2C%20this._imperativeKeyBindings%5BeventString%5D)%3B%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20%2F%2F%20Give%20precedence%20to%20combos%20with%20modifiers%20to%20be%20checked%20first.%0A%20%20%20%20%20%20%20%20for%20(var%20eventName%20in%20this._keyBindings)%20%7B%0A%20%20%20%20%20%20%20%20%20%20this._keyBindings%5BeventName%5D.sort(function%20(kb1%2C%20kb2)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20var%20b1%20%3D%20kb1%5B0%5D.hasModifiers%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20var%20b2%20%3D%20kb2%5B0%5D.hasModifiers%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20return%20(b1%20%3D%3D%3D%20b2)%20%3F%200%20%3A%20b1%20%3F%20-1%20%3A%201%3B%0A%20%20%20%20%20%20%20%20%20%20%7D)%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20_addKeyBinding%3A%20function(eventString%2C%20handlerName)%20%7B%0A%20%20%20%20%20%20%20%20parseEventString(eventString).forEach(function(keyCombo)%20%7B%0A%20%20%20%20%20%20%20%20%20%20this._keyBindings%5BkeyCombo.event%5D%20%3D%0A%20%20%20%20%20%20%20%20%20%20%20%20this._keyBindings%5BkeyCombo.event%5D%20%7C%7C%20%5B%5D%3B%0A%0A%20%20%20%20%20%20%20%20%20%20this._keyBindings%5BkeyCombo.event%5D.push(%5B%0A%20%20%20%20%20%20%20%20%20%20%20%20keyCombo%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20handlerName%0A%20%20%20%20%20%20%20%20%20%20%5D)%3B%0A%20%20%20%20%20%20%20%20%7D%2C%20this)%3B%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20_resetKeyEventListeners%3A%20function()%20%7B%0A%20%20%20%20%20%20%20%20this._unlistenKeyEventListeners()%3B%0A%0A%20%20%20%20%20%20%20%20if%20(this.isAttached)%20%7B%0A%20%20%20%20%20%20%20%20%20%20this._listenKeyEventListeners()%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20_listenKeyEventListeners%3A%20function()%20%7B%0A%20%20%20%20%20%20%20%20if%20(!this.keyEventTarget)%20%7B%0A%20%20%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20Object.keys(this._keyBindings).forEach(function(eventName)%20%7B%0A%20%20%20%20%20%20%20%20%20%20var%20keyBindings%20%3D%20this._keyBindings%5BeventName%5D%3B%0A%20%20%20%20%20%20%20%20%20%20var%20boundKeyHandler%20%3D%20this._onKeyBindingEvent.bind(this%2C%20keyBindings)%3B%0A%0A%20%20%20%20%20%20%20%20%20%20this._boundKeyHandlers.push(%5Bthis.keyEventTarget%2C%20eventName%2C%20boundKeyHandler%5D)%3B%0A%0A%20%20%20%20%20%20%20%20%20%20this.keyEventTarget.addEventListener(eventName%2C%20boundKeyHandler)%3B%0A%20%20%20%20%20%20%20%20%7D%2C%20this)%3B%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20_unlistenKeyEventListeners%3A%20function()%20%7B%0A%20%20%20%20%20%20%20%20var%20keyHandlerTuple%3B%0A%20%20%20%20%20%20%20%20var%20keyEventTarget%3B%0A%20%20%20%20%20%20%20%20var%20eventName%3B%0A%20%20%20%20%20%20%20%20var%20boundKeyHandler%3B%0A%0A%20%20%20%20%20%20%20%20while%20(this._boundKeyHandlers.length)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%2F%2F%20My%20kingdom%20for%20block-scope%20binding%20and%20destructuring%20assignment..%0A%20%20%20%20%20%20%20%20%20%20keyHandlerTuple%20%3D%20this._boundKeyHandlers.pop()%3B%0A%20%20%20%20%20%20%20%20%20%20keyEventTarget%20%3D%20keyHandlerTuple%5B0%5D%3B%0A%20%20%20%20%20%20%20%20%20%20eventName%20%3D%20keyHandlerTuple%5B1%5D%3B%0A%20%20%20%20%20%20%20%20%20%20boundKeyHandler%20%3D%20keyHandlerTuple%5B2%5D%3B%0A%0A%20%20%20%20%20%20%20%20%20%20keyEventTarget.removeEventListener(eventName%2C%20boundKeyHandler)%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20_onKeyBindingEvent%3A%20function(keyBindings%2C%20event)%20%7B%0A%20%20%20%20%20%20%20%20if%20(this.stopKeyboardEventPropagation)%20%7B%0A%20%20%20%20%20%20%20%20%20%20event.stopPropagation()%3B%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20%2F%2F%20if%20event%20has%20been%20already%20prevented%2C%20don't%20do%20anything%0A%20%20%20%20%20%20%20%20if%20(event.defaultPrevented)%20%7B%0A%20%20%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20for%20(var%20i%20%3D%200%3B%20i%20%3C%20keyBindings.length%3B%20i%2B%2B)%20%7B%0A%20%20%20%20%20%20%20%20%20%20var%20keyCombo%20%3D%20keyBindings%5Bi%5D%5B0%5D%3B%0A%20%20%20%20%20%20%20%20%20%20var%20handlerName%20%3D%20keyBindings%5Bi%5D%5B1%5D%3B%0A%20%20%20%20%20%20%20%20%20%20if%20(keyComboMatchesEvent(keyCombo%2C%20event))%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20this._triggerKeyHandler(keyCombo%2C%20handlerName%2C%20event)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20exit%20the%20loop%20if%20eventDefault%20was%20prevented%0A%20%20%20%20%20%20%20%20%20%20%20%20if%20(event.defaultPrevented)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20_triggerKeyHandler%3A%20function(keyCombo%2C%20handlerName%2C%20keyboardEvent)%20%7B%0A%20%20%20%20%20%20%20%20var%20detail%20%3D%20Object.create(keyCombo)%3B%0A%20%20%20%20%20%20%20%20detail.keyboardEvent%20%3D%20keyboardEvent%3B%0A%20%20%20%20%20%20%20%20var%20event%20%3D%20new%20CustomEvent(keyCombo.event%2C%20%7B%0A%20%20%20%20%20%20%20%20%20%20detail%3A%20detail%2C%0A%20%20%20%20%20%20%20%20%20%20cancelable%3A%20true%0A%20%20%20%20%20%20%20%20%7D)%3B%0A%20%20%20%20%20%20%20%20this%5BhandlerName%5D.call(this%2C%20event)%3B%0A%20%20%20%20%20%20%20%20if%20(event.defaultPrevented)%20%7B%0A%20%20%20%20%20%20%20%20%20%20keyboardEvent.preventDefault()%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%3B%0A%20%20%7D)()%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fapp.folio.finance%2Ffolio-app.min.html-20.js%0A
- github.com/polymerelements/iron-overlay-behavior — in javascript;charset=utf-8,%0A(function()%20%7B%0A%20%20'use%20strict'%3B%0A%0A%20%20%2F**%20%40polymerBehavior%20*%2F%0A%20%20Polymer.IronOverlayBehaviorImpl%20%3D%20%7B%0A%0A%20%20%20%20properties%3A%20%7B%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20True%20if%20the%20overlay%20is%20currently%20displayed.%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20opened%3A%20%7B%0A%20%20%20%20%20%20%20%20observer%3A%20'_openedChanged'%2C%0A%20%20%20%20%20%20%20%20type%3A%20Boolean%2C%0A%20%20%20%20%20%20%20%20value%3A%20false%2C%0A%20%20%20%20%20%20%20%20notify%3A%20true%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20True%20if%20the%20overlay%20was%20canceled%20when%20it%20was%20last%20closed.%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20canceled%3A%20%7B%0A%20%20%20%20%20%20%20%20observer%3A%20'_canceledChanged'%2C%0A%20%20%20%20%20%20%20%20readOnly%3A%20true%2C%0A%20%20%20%20%20%20%20%20type%3A%20Boolean%2C%0A%20%20%20%20%20%20%20%20value%3A%20false%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20Set%20to%20true%20to%20display%20a%20backdrop%20behind%20the%20overlay.%20It%20traps%20the%20focus%0A%20%20%20%20%20%20%20*%20within%20the%20light%20DOM%20of%20the%20overlay.%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20withBackdrop%3A%20%7B%0A%20%20%20%20%20%20%20%20observer%3A%20'_withBackdropChanged'%2C%0A%20%20%20%20%20%20%20%20type%3A%20Boolean%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20Set%20to%20true%20to%20disable%20auto-focusing%20the%20overlay%20or%20child%20nodes%20with%0A%20%20%20%20%20%20%20*%20the%20%60autofocus%60%20attribute%60%20when%20the%20overlay%20is%20opened.%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20noAutoFocus%3A%20%7B%0A%20%20%20%20%20%20%20%20type%3A%20Boolean%2C%0A%20%20%20%20%20%20%20%20value%3A%20false%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20Set%20to%20true%20to%20disable%20canceling%20the%20overlay%20with%20the%20ESC%20key.%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20noCancelOnEscKey%3A%20%7B%0A%20%20%20%20%20%20%20%20type%3A%20Boolean%2C%0A%20%20%20%20%20%20%20%20value%3A%20false%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20Set%20to%20true%20to%20disable%20canceling%20the%20overlay%20by%20clicking%20outside%20it.%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20noCancelOnOutsideClick%3A%20%7B%0A%20%20%20%20%20%20%20%20type%3A%20Boolean%2C%0A%20%20%20%20%20%20%20%20value%3A%20false%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20Contains%20the%20reason(s)%20this%20overlay%20was%20last%20closed%20(see%20%60iron-overlay-closed%60).%0A%20%20%20%20%20%20%20*%20%60IronOverlayBehavior%60%20provides%20the%20%60canceled%60%20reason%3B%20implementers%20of%20the%0A%20%20%20%20%20%20%20*%20behavior%20can%20provide%20other%20reasons%20in%20addition%20to%20%60canceled%60.%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20closingReason%3A%20%7B%0A%20%20%20%20%20%20%20%20%2F%2F%20was%20a%20getter%20before%2C%20but%20needs%20to%20be%20a%20property%20so%20other%0A%20%20%20%20%20%20%20%20%2F%2F%20behaviors%20can%20override%20this.%0A%20%20%20%20%20%20%20%20type%3A%20Object%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20Set%20to%20true%20to%20enable%20restoring%20of%20focus%20when%20overlay%20is%20closed.%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20restoreFocusOnClose%3A%20%7B%0A%20%20%20%20%20%20%20%20type%3A%20Boolean%2C%0A%20%20%20%20%20%20%20%20value%3A%20false%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20Set%20to%20true%20to%20keep%20overlay%20always%20on%20top.%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20alwaysOnTop%3A%20%7B%0A%20%20%20%20%20%20%20%20type%3A%20Boolean%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20Shortcut%20to%20access%20to%20the%20overlay%20manager.%0A%20%20%20%20%20%20%20*%20%40private%0A%20%20%20%20%20%20%20*%20%40type%20%7BPolymer.IronOverlayManagerClass%7D%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20_manager%3A%20%7B%0A%20%20%20%20%20%20%20%20type%3A%20Object%2C%0A%20%20%20%20%20%20%20%20value%3A%20Polymer.IronOverlayManager%0A%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%2F**%0A%20%20%20%20%20%20%20*%20The%20node%20being%20focused.%0A%20%20%20%20%20%20%20*%20%40type%20%7B%3FNode%7D%0A%20%20%20%20%20%20%20*%2F%0A%20%20%20%20%20%20_focusedChild%3A%20%7B%0A%20%20%20%20%20%20%20%20type%3A%20Object%0A%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20listeners%3A%20%7B%0A%20%20%20%20%20%20'iron-resize'%3A%20'_onIronResize'%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20The%20backdrop%20element.%0A%20%20%20%20%20*%20%40type%20%7BElement%7D%0A%20%20%20%20%20*%2F%0A%20%20%20%20get%20backdropElement()%20%7B%0A%20%20%20%20%20%20return%20this._manager.backdropElement%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Returns%20the%20node%20to%20give%20focus%20to.%0A%20%20%20%20%20*%20%40type%20%7BNode%7D%0A%20%20%20%20%20*%2F%0A%20%20%20%20get%20_focusNode()%20%7B%0A%20%20%20%20%20%20return%20this._focusedChild%20%7C%7C%20Polymer.dom(this).querySelector('%5Bautofocus%5D')%20%7C%7C%20this%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Array%20of%20nodes%20that%20can%20receive%20focus%20(overlay%20included)%2C%20ordered%20by%20%60tabindex%60.%0A%20%20%20%20%20*%20This%20is%20used%20to%20retrieve%20which%20is%20the%20first%20and%20last%20focusable%20nodes%20in%20order%0A%20%20%20%20%20*%20to%20wrap%20the%20focus%20for%20overlays%20%60with-backdrop%60.%0A%20%20%20%20%20*%0A%20%20%20%20%20*%20If%20you%20know%20what%20is%20your%20content%20(specifically%20the%20first%20and%20last%20focusable%20children)%2C%0A%20%20%20%20%20*%20you%20can%20override%20this%20method%20to%20return%20only%20%60%5BfirstFocusable%2C%20lastFocusable%5D%3B%60%0A%20%20%20%20%20*%20%40type%20%7BArray%3CNode%3E%7D%0A%20%20%20%20%20*%20%40protected%0A%20%20%20%20%20*%2F%0A%20%20%20%20get%20_focusableNodes()%20%7B%0A%20%20%20%20%20%20return%20Polymer.IronFocusablesHelper.getTabbableNodes(this)%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20ready%3A%20function()%20%7B%0A%20%20%20%20%20%20%2F%2F%20Used%20to%20skip%20calls%20to%20notifyResize%20and%20refit%20while%20the%20overlay%20is%20animating.%0A%20%20%20%20%20%20this.__isAnimating%20%3D%20false%3B%0A%20%20%20%20%20%20%2F%2F%20with-backdrop%20needs%20tabindex%20to%20be%20set%20in%20order%20to%20trap%20the%20focus.%0A%20%20%20%20%20%20%2F%2F%20If%20it%20is%20not%20set%2C%20IronOverlayBehavior%20will%20set%20it%2C%20and%20remove%20it%20if%20with-backdrop%20%3D%20false.%0A%20%20%20%20%20%20this.__shouldRemoveTabIndex%20%3D%20false%3B%0A%20%20%20%20%20%20%2F%2F%20Used%20for%20wrapping%20the%20focus%20on%20TAB%20%2F%20Shift%2BTAB.%0A%20%20%20%20%20%20this.__firstFocusableNode%20%3D%20this.__lastFocusableNode%20%3D%20null%3B%0A%20%20%20%20%20%20%2F%2F%20Used%20by%20__onNextAnimationFrame%20to%20cancel%20any%20previous%20callback.%0A%20%20%20%20%20%20this.__raf%20%3D%20null%3B%0A%20%20%20%20%20%20%2F%2F%20Focused%20node%20before%20overlay%20gets%20opened.%20Can%20be%20restored%20on%20close.%0A%20%20%20%20%20%20this.__restoreFocusNode%20%3D%20null%3B%0A%20%20%20%20%20%20this._ensureSetup()%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20attached%3A%20function()%20%7B%0A%20%20%20%20%20%20%2F%2F%20Call%20_openedChanged%20here%20so%20that%20position%20can%20be%20computed%20correctly.%0A%20%20%20%20%20%20if%20(this.opened)%20%7B%0A%20%20%20%20%20%20%20%20this._openedChanged(this.opened)%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20this._observer%20%3D%20Polymer.dom(this).observeNodes(this._onNodesChange)%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20detached%3A%20function()%20%7B%0A%20%20%20%20%20%20Polymer.dom(this).unobserveNodes(this._observer)%3B%0A%20%20%20%20%20%20this._observer%20%3D%20null%3B%0A%20%20%20%20%20%20if%20(this.__raf)%20%7B%0A%20%20%20%20%20%20%20%20window.cancelAnimationFrame(this.__raf)%3B%0A%20%20%20%20%20%20%20%20this.__raf%20%3D%20null%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20this._manager.removeOverlay(this)%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Toggle%20the%20opened%20state%20of%20the%20overlay.%0A%20%20%20%20%20*%2F%0A%20%20%20%20toggle%3A%20function()%20%7B%0A%20%20%20%20%20%20this._setCanceled(false)%3B%0A%20%20%20%20%20%20this.opened%20%3D%20!this.opened%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Open%20the%20overlay.%0A%20%20%20%20%20*%2F%0A%20%20%20%20open%3A%20function()%20%7B%0A%20%20%20%20%20%20this._setCanceled(false)%3B%0A%20%20%20%20%20%20this.opened%20%3D%20true%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Close%20the%20overlay.%0A%20%20%20%20%20*%2F%0A%20%20%20%20close%3A%20function()%20%7B%0A%20%20%20%20%20%20this._setCanceled(false)%3B%0A%20%20%20%20%20%20this.opened%20%3D%20false%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Cancels%20the%20overlay.%0A%20%20%20%20%20*%20%40param%20%7BEvent%3D%7D%20event%20The%20original%20event%0A%20%20%20%20%20*%2F%0A%20%20%20%20cancel%3A%20function(event)%20%7B%0A%20%20%20%20%20%20var%20cancelEvent%20%3D%20this.fire('iron-overlay-canceled'%2C%20event%2C%20%7Bcancelable%3A%20true%7D)%3B%0A%20%20%20%20%20%20if%20(cancelEvent.defaultPrevented)%20%7B%0A%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20this._setCanceled(true)%3B%0A%20%20%20%20%20%20this.opened%20%3D%20false%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Invalidates%20the%20cached%20tabbable%20nodes.%20To%20be%20called%20when%20any%20of%20the%20focusable%0A%20%20%20%20%20*%20content%20changes%20(e.g.%20a%20button%20is%20disabled).%0A%20%20%20%20%20*%2F%0A%20%20%20%20invalidateTabbables%3A%20function()%20%7B%0A%20%20%20%20%20%20this.__firstFocusableNode%20%3D%20this.__lastFocusableNode%20%3D%20null%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20_ensureSetup%3A%20function()%20%7B%0A%20%20%20%20%20%20if%20(this._overlaySetup)%20%7B%0A%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20this._overlaySetup%20%3D%20true%3B%0A%20%20%20%20%20%20this.style.outline%20%3D%20'none'%3B%0A%20%20%20%20%20%20this.style.display%20%3D%20'none'%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Called%20when%20%60opened%60%20changes.%0A%20%20%20%20%20*%20%40param%20%7Bboolean%3D%7D%20opened%0A%20%20%20%20%20*%20%40protected%0A%20%20%20%20%20*%2F%0A%20%20%20%20_openedChanged%3A%20function(opened)%20%7B%0A%20%20%20%20%20%20if%20(opened)%20%7B%0A%20%20%20%20%20%20%20%20this.removeAttribute('aria-hidden')%3B%0A%20%20%20%20%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20%20%20this.setAttribute('aria-hidden'%2C%20'true')%3B%0A%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%2F%2F%20Defer%20any%20animation-related%20code%20on%20attached%0A%20%20%20%20%20%20%2F%2F%20(_openedChanged%20gets%20called%20again%20on%20attached).%0A%20%20%20%20%20%20if%20(!this.isAttached)%20%7B%0A%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20this.__isAnimating%20%3D%20true%3B%0A%0A%20%20%20%20%20%20%2F%2F%20Use%20requestAnimationFrame%20for%20non-blocking%20rendering.%0A%20%20%20%20%20%20this.__onNextAnimationFrame(this.__openedChanged)%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20_canceledChanged%3A%20function()%20%7B%0A%20%20%20%20%20%20this.closingReason%20%3D%20this.closingReason%20%7C%7C%20%7B%7D%3B%0A%20%20%20%20%20%20this.closingReason.canceled%20%3D%20this.canceled%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20_withBackdropChanged%3A%20function()%20%7B%0A%20%20%20%20%20%20%2F%2F%20If%20tabindex%20is%20already%20set%2C%20no%20need%20to%20override%20it.%0A%20%20%20%20%20%20if%20(this.withBackdrop%20%26%26%20!this.hasAttribute('tabindex'))%20%7B%0A%20%20%20%20%20%20%20%20this.setAttribute('tabindex'%2C%20'-1')%3B%0A%20%20%20%20%20%20%20%20this.__shouldRemoveTabIndex%20%3D%20true%3B%0A%20%20%20%20%20%20%7D%20else%20if%20(this.__shouldRemoveTabIndex)%20%7B%0A%20%20%20%20%20%20%20%20this.removeAttribute('tabindex')%3B%0A%20%20%20%20%20%20%20%20this.__shouldRemoveTabIndex%20%3D%20false%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20if%20(this.opened%20%26%26%20this.isAttached)%20%7B%0A%20%20%20%20%20%20%20%20this._manager.trackBackdrop()%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20tasks%20which%20must%20occur%20before%20opening%3B%20e.g.%20making%20the%20element%20visible.%0A%20%20%20%20%20*%20%40protected%0A%20%20%20%20%20*%2F%0A%20%20%20%20_prepareRenderOpened%3A%20function()%20%7B%0A%20%20%20%20%20%20%2F%2F%20Store%20focused%20node.%0A%20%20%20%20%20%20this.__restoreFocusNode%20%3D%20this._manager.deepActiveElement%3B%0A%0A%20%20%20%20%20%20%2F%2F%20Needed%20to%20calculate%20the%20size%20of%20the%20overlay%20so%20that%20transitions%20on%20its%20size%0A%20%20%20%20%20%20%2F%2F%20will%20have%20the%20correct%20starting%20points.%0A%20%20%20%20%20%20this._preparePositioning()%3B%0A%20%20%20%20%20%20this.refit()%3B%0A%20%20%20%20%20%20this._finishPositioning()%3B%0A%0A%20%20%20%20%20%20%2F%2F%20Safari%20will%20apply%20the%20focus%20to%20the%20autofocus%20element%20when%20displayed%0A%20%20%20%20%20%20%2F%2F%20for%20the%20first%20time%2C%20so%20we%20make%20sure%20to%20return%20the%20focus%20where%20it%20was.%0A%20%20%20%20%20%20if%20(this.noAutoFocus%20%26%26%20document.activeElement%20%3D%3D%3D%20this._focusNode)%20%7B%0A%20%20%20%20%20%20%20%20this._focusNode.blur()%3B%0A%20%20%20%20%20%20%20%20this.__restoreFocusNode.focus()%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Tasks%20which%20cause%20the%20overlay%20to%20actually%20open%3B%20typically%20play%20an%20animation.%0A%20%20%20%20%20*%20%40protected%0A%20%20%20%20%20*%2F%0A%20%20%20%20_renderOpened%3A%20function()%20%7B%0A%20%20%20%20%20%20this._finishRenderOpened()%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Tasks%20which%20cause%20the%20overlay%20to%20actually%20close%3B%20typically%20play%20an%20animation.%0A%20%20%20%20%20*%20%40protected%0A%20%20%20%20%20*%2F%0A%20%20%20%20_renderClosed%3A%20function()%20%7B%0A%20%20%20%20%20%20this._finishRenderClosed()%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Tasks%20to%20be%20performed%20at%20the%20end%20of%20open%20action.%20Will%20fire%20%60iron-overlay-opened%60.%0A%20%20%20%20%20*%20%40protected%0A%20%20%20%20%20*%2F%0A%20%20%20%20_finishRenderOpened%3A%20function()%20%7B%0A%20%20%20%20%20%20this.notifyResize()%3B%0A%20%20%20%20%20%20this.__isAnimating%20%3D%20false%3B%0A%0A%20%20%20%20%20%20this.fire('iron-overlay-opened')%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Tasks%20to%20be%20performed%20at%20the%20end%20of%20close%20action.%20Will%20fire%20%60iron-overlay-closed%60.%0A%20%20%20%20%20*%20%40protected%0A%20%20%20%20%20*%2F%0A%20%20%20%20_finishRenderClosed%3A%20function()%20%7B%0A%20%20%20%20%20%20%2F%2F%20Hide%20the%20overlay.%0A%20%20%20%20%20%20this.style.display%20%3D%20'none'%3B%0A%20%20%20%20%20%20%2F%2F%20Reset%20z-index%20only%20at%20the%20end%20of%20the%20animation.%0A%20%20%20%20%20%20this.style.zIndex%20%3D%20''%3B%0A%20%20%20%20%20%20this.notifyResize()%3B%0A%20%20%20%20%20%20this.__isAnimating%20%3D%20false%3B%0A%20%20%20%20%20%20this.fire('iron-overlay-closed'%2C%20this.closingReason)%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20_preparePositioning%3A%20function()%20%7B%0A%20%20%20%20%20%20this.style.transition%20%3D%20this.style.webkitTransition%20%3D%20'none'%3B%0A%20%20%20%20%20%20this.style.transform%20%3D%20this.style.webkitTransform%20%3D%20'none'%3B%0A%20%20%20%20%20%20this.style.display%20%3D%20''%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20_finishPositioning%3A%20function()%20%7B%0A%20%20%20%20%20%20%2F%2F%20First%2C%20make%20it%20invisible%20%26%20reactivate%20animations.%0A%20%20%20%20%20%20this.style.display%20%3D%20'none'%3B%0A%20%20%20%20%20%20%2F%2F%20Force%20reflow%20before%20re-enabling%20animations%20so%20that%20they%20don't%20start.%0A%20%20%20%20%20%20%2F%2F%20Set%20scrollTop%20to%20itself%20so%20that%20Closure%20Compiler%20doesn't%20remove%20this.%0A%20%20%20%20%20%20this.scrollTop%20%3D%20this.scrollTop%3B%0A%20%20%20%20%20%20this.style.transition%20%3D%20this.style.webkitTransition%20%3D%20''%3B%0A%20%20%20%20%20%20this.style.transform%20%3D%20this.style.webkitTransform%20%3D%20''%3B%0A%20%20%20%20%20%20%2F%2F%20Now%20that%20animations%20are%20enabled%2C%20make%20it%20visible%20again%0A%20%20%20%20%20%20this.style.display%20%3D%20''%3B%0A%20%20%20%20%20%20%2F%2F%20Force%20reflow%2C%20so%20that%20following%20animations%20are%20properly%20started.%0A%20%20%20%20%20%20%2F%2F%20Set%20scrollTop%20to%20itself%20so%20that%20Closure%20Compiler%20doesn't%20remove%20this.%0A%20%20%20%20%20%20this.scrollTop%20%3D%20this.scrollTop%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Applies%20focus%20according%20to%20the%20opened%20state.%0A%20%20%20%20%20*%20%40protected%0A%20%20%20%20%20*%2F%0A%20%20%20%20_applyFocus%3A%20function()%20%7B%0A%20%20%20%20%20%20if%20(this.opened)%20%7B%0A%20%20%20%20%20%20%20%20if%20(!this.noAutoFocus)%20%7B%0A%20%20%20%20%20%20%20%20%20%20this._focusNode.focus()%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20else%20%7B%0A%20%20%20%20%20%20%20%20this._focusNode.blur()%3B%0A%20%20%20%20%20%20%20%20this._focusedChild%20%3D%20null%3B%0A%20%20%20%20%20%20%20%20%2F%2F%20Restore%20focus.%0A%20%20%20%20%20%20%20%20if%20(this.restoreFocusOnClose%20%26%26%20this.__restoreFocusNode)%20%7B%0A%20%20%20%20%20%20%20%20%20%20this.__restoreFocusNode.focus()%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20this.__restoreFocusNode%20%3D%20null%3B%0A%20%20%20%20%20%20%20%20%2F%2F%20If%20many%20overlays%20get%20closed%20at%20the%20same%20time%2C%20one%20of%20them%20would%20still%0A%20%20%20%20%20%20%20%20%2F%2F%20be%20the%20currentOverlay%20even%20if%20already%20closed%2C%20and%20would%20call%20_applyFocus%0A%20%20%20%20%20%20%20%20%2F%2F%20infinitely%2C%20so%20we%20check%20for%20this%20not%20to%20be%20the%20current%20overlay.%0A%20%20%20%20%20%20%20%20var%20currentOverlay%20%3D%20this._manager.currentOverlay()%3B%0A%20%20%20%20%20%20%20%20if%20(currentOverlay%20%26%26%20this%20!%3D%3D%20currentOverlay)%20%7B%0A%20%20%20%20%20%20%20%20%20%20currentOverlay._applyFocus()%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Cancels%20(closes)%20the%20overlay.%20Call%20when%20click%20happens%20outside%20the%20overlay.%0A%20%20%20%20%20*%20%40param%20%7B!Event%7D%20event%0A%20%20%20%20%20*%20%40protected%0A%20%20%20%20%20*%2F%0A%20%20%20%20_onCaptureClick%3A%20function(event)%20%7B%0A%20%20%20%20%20%20if%20(!this.noCancelOnOutsideClick)%20%7B%0A%20%20%20%20%20%20%20%20this.cancel(event)%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Keeps%20track%20of%20the%20focused%20child.%20If%20withBackdrop%2C%20traps%20focus%20within%20overlay.%0A%20%20%20%20%20*%20%40param%20%7B!Event%7D%20event%0A%20%20%20%20%20*%20%40protected%0A%20%20%20%20%20*%2F%0A%20%20%20%20_onCaptureFocus%3A%20function%20(event)%20%7B%0A%20%20%20%20%20%20if%20(!this.withBackdrop)%20%7B%0A%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20var%20path%20%3D%20Polymer.dom(event).path%3B%0A%20%20%20%20%20%20if%20(path.indexOf(this)%20%3D%3D%3D%20-1)%20%7B%0A%20%20%20%20%20%20%20%20event.stopPropagation()%3B%0A%20%20%20%20%20%20%20%20this._applyFocus()%3B%0A%20%20%20%20%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20%20%20this._focusedChild%20%3D%20path%5B0%5D%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Handles%20the%20ESC%20key%20event%20and%20cancels%20(closes)%20the%20overlay.%0A%20%20%20%20%20*%20%40param%20%7B!Event%7D%20event%0A%20%20%20%20%20*%20%40protected%0A%20%20%20%20%20*%2F%0A%20%20%20%20_onCaptureEsc%3A%20function(event)%20%7B%0A%20%20%20%20%20%20if%20(!this.noCancelOnEscKey)%20%7B%0A%20%20%20%20%20%20%20%20this.cancel(event)%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Handles%20TAB%20key%20events%20to%20track%20focus%20changes.%0A%20%20%20%20%20*%20Will%20wrap%20focus%20for%20overlays%20withBackdrop.%0A%20%20%20%20%20*%20%40param%20%7B!Event%7D%20event%0A%20%20%20%20%20*%20%40protected%0A%20%20%20%20%20*%2F%0A%20%20%20%20_onCaptureTab%3A%20function(event)%20%7B%0A%20%20%20%20%20%20if%20(!this.withBackdrop)%20%7B%0A%20%20%20%20%20%20%20%20return%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20this.__ensureFirstLastFocusables()%3B%0A%20%20%20%20%20%20%2F%2F%20TAB%20wraps%20from%20last%20to%20first%20focusable.%0A%20%20%20%20%20%20%2F%2F%20Shift%20%2B%20TAB%20wraps%20from%20first%20to%20last%20focusable.%0A%20%20%20%20%20%20var%20shift%20%3D%20event.shiftKey%3B%0A%20%20%20%20%20%20var%20nodeToCheck%20%3D%20shift%20%3F%20this.__firstFocusableNode%20%3A%20this.__lastFocusableNode%3B%0A%20%20%20%20%20%20var%20nodeToSet%20%3D%20shift%20%3F%20this.__lastFocusableNode%20%3A%20this.__firstFocusableNode%3B%0A%20%20%20%20%20%20var%20shouldWrap%20%3D%20false%3B%0A%20%20%20%20%20%20if%20(nodeToCheck%20%3D%3D%3D%20nodeToSet)%20%7B%0A%20%20%20%20%20%20%20%20%2F%2F%20If%20nodeToCheck%20is%20the%20same%20as%20nodeToSet%2C%20it%20means%20we%20have%20an%20overlay%0A%20%20%20%20%20%20%20%20%2F%2F%20with%200%20or%201%20focusables%3B%20in%20either%20case%20we%20still%20need%20to%20trap%20the%0A%20%20%20%20%20%20%20%20%2F%2F%20focus%20within%20the%20overlay.%0A%20%20%20%20%20%20%20%20shouldWrap%20%3D%20true%3B%0A%20%20%20%20%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20%20%20%2F%2F%20In%20dom%3Dshadow%2C%20the%20manager%20will%20receive%20focus%20changes%20on%20the%20main%0A%20%20%20%20%20%20%20%20%2F%2F%20root%20but%20not%20the%20ones%20within%20other%20shadow%20roots%2C%20so%20we%20can't%20rely%20on%0A%20%20%20%20%20%20%20%20%2F%2F%20_focusedChild%2C%20but%20we%20should%20check%20the%20deepest%20active%20element.%0A%20%20%20%20%20%20%20%20var%20focusedNode%20%3D%20this._manager.deepActiveElement%3B%0A%20%20%20%20%20%20%20%20%2F%2F%20If%20the%20active%20element%20is%20not%20the%20nodeToCheck%20but%20the%20overlay%20itself%2C%0A%20%20%20%20%20%20%20%20%2F%2F%20it%20means%20the%20focus%20is%20about%20to%20go%20outside%20the%20overlay%2C%20hence%20we%0A%20%20%20%20%20%20%20%20%2F%2F%20should%20prevent%20that%20(e.g.%20user%20opens%20the%20overlay%20and%20hit%20Shift%2BTAB).%0A%20%20%20%20%20%20%20%20shouldWrap%20%3D%20(focusedNode%20%3D%3D%3D%20nodeToCheck%20%7C%7C%20focusedNode%20%3D%3D%3D%20this)%3B%0A%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20if%20(shouldWrap)%20%7B%0A%20%20%20%20%20%20%20%20%2F%2F%20When%20the%20overlay%20contains%20the%20last%20focusable%20element%20of%20the%20document%0A%20%20%20%20%20%20%20%20%2F%2F%20and%20it's%20already%20focused%2C%20pressing%20TAB%20would%20move%20the%20focus%20outside%0A%20%20%20%20%20%20%20%20%2F%2F%20the%20document%20(e.g.%20to%20the%20browser%20search%20bar).%20Similarly%2C%20when%20the%0A%20%20%20%20%20%20%20%20%2F%2F%20overlay%20contains%20the%20first%20focusable%20element%20of%20the%20document%20and%20it's%0A%20%20%20%20%20%20%20%20%2F%2F%20already%20focused%2C%20pressing%20Shift%2BTAB%20would%20move%20the%20focus%20outside%20the%0A%20%20%20%20%20%20%20%20%2F%2F%20document%20(e.g.%20to%20the%20browser%20search%20bar).%0A%20%20%20%20%20%20%20%20%2F%2F%20In%20both%20cases%2C%20we%20would%20not%20receive%20a%20focus%20event%2C%20but%20only%20a%20blur.%0A%20%20%20%20%20%20%20%20%2F%2F%20In%20order%20to%20achieve%20focus%20wrapping%2C%20we%20prevent%20this%20TAB%20event%20and%0A%20%20%20%20%20%20%20%20%2F%2F%20force%20the%20focus.%20This%20will%20also%20prevent%20the%20focus%20to%20temporarily%20move%0A%20%20%20%20%20%20%20%20%2F%2F%20outside%20the%20overlay%2C%20which%20might%20cause%20scrolling.%0A%20%20%20%20%20%20%20%20event.preventDefault()%3B%0A%20%20%20%20%20%20%20%20this._focusedChild%20%3D%20nodeToSet%3B%0A%20%20%20%20%20%20%20%20this._applyFocus()%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Refits%20if%20the%20overlay%20is%20opened%20and%20not%20animating.%0A%20%20%20%20%20*%20%40protected%0A%20%20%20%20%20*%2F%0A%20%20%20%20_onIronResize%3A%20function()%20%7B%0A%20%20%20%20%20%20if%20(this.opened%20%26%26%20!this.__isAnimating)%20%7B%0A%20%20%20%20%20%20%20%20this.__onNextAnimationFrame(this.refit)%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Will%20call%20notifyResize%20if%20overlay%20is%20opened.%0A%20%20%20%20%20*%20Can%20be%20overridden%20in%20order%20to%20avoid%20multiple%20observers%20on%20the%20same%20node.%0A%20%20%20%20%20*%20%40protected%0A%20%20%20%20%20*%2F%0A%20%20%20%20_onNodesChange%3A%20function()%20%7B%0A%20%20%20%20%20%20if%20(this.opened%20%26%26%20!this.__isAnimating)%20%7B%0A%20%20%20%20%20%20%20%20%2F%2F%20It%20might%20have%20added%20focusable%20nodes%2C%20so%20invalidate%20cached%20values.%0A%20%20%20%20%20%20%20%20this.invalidateTabbables()%3B%0A%20%20%20%20%20%20%20%20this.notifyResize()%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Will%20set%20first%20and%20last%20focusable%20nodes%20if%20any%20of%20them%20is%20not%20set.%0A%20%20%20%20%20*%20%40private%0A%20%20%20%20%20*%2F%0A%20%20%20%20__ensureFirstLastFocusables%3A%20function()%20%7B%0A%20%20%20%20%20%20if%20(!this.__firstFocusableNode%20%7C%7C%20!this.__lastFocusableNode)%20%7B%0A%20%20%20%20%20%20%20%20var%20focusableNodes%20%3D%20this._focusableNodes%3B%0A%20%20%20%20%20%20%20%20this.__firstFocusableNode%20%3D%20focusableNodes%5B0%5D%3B%0A%20%20%20%20%20%20%20%20this.__lastFocusableNode%20%3D%20focusableNodes%5BfocusableNodes.length%20-%201%5D%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Tasks%20executed%20when%20opened%20changes%3A%20prepare%20for%20the%20opening%2C%20move%20the%0A%20%20%20%20%20*%20focus%2C%20update%20the%20manager%2C%20render%20opened%2Fclosed.%0A%20%20%20%20%20*%20%40private%0A%20%20%20%20%20*%2F%0A%20%20%20%20__openedChanged%3A%20function()%20%7B%0A%20%20%20%20%20%20if%20(this.opened)%20%7B%0A%20%20%20%20%20%20%20%20%2F%2F%20Make%20overlay%20visible%2C%20then%20add%20it%20to%20the%20manager.%0A%20%20%20%20%20%20%20%20this._prepareRenderOpened()%3B%0A%20%20%20%20%20%20%20%20this._manager.addOverlay(this)%3B%0A%20%20%20%20%20%20%20%20%2F%2F%20Move%20the%20focus%20to%20the%20child%20node%20with%20%5Bautofocus%5D.%0A%20%20%20%20%20%20%20%20this._applyFocus()%3B%0A%0A%20%20%20%20%20%20%20%20this._renderOpened()%3B%0A%20%20%20%20%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20%20%20%2F%2F%20Remove%20overlay%2C%20then%20restore%20the%20focus%20before%20actually%20closing.%0A%20%20%20%20%20%20%20%20this._manager.removeOverlay(this)%3B%0A%20%20%20%20%20%20%20%20this._applyFocus()%3B%0A%0A%20%20%20%20%20%20%20%20this._renderClosed()%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20%2F**%0A%20%20%20%20%20*%20Executes%20a%20callback%20on%20the%20next%20animation%20frame%2C%20overriding%20any%20previous%0A%20%20%20%20%20*%20callback%20awaiting%20for%20the%20next%20animation%20frame.%20e.g.%0A%20%20%20%20%20*%20%60__onNextAnimationFrame(callback1)%20%26%26%20__onNextAnimationFrame(callback2)%60%3B%0A%20%20%20%20%20*%20%60callback1%60%20will%20never%20be%20invoked.%0A%20%20%20%20%20*%20%40param%20%7B!Function%7D%20callback%20Its%20%60this%60%20parameter%20is%20the%20overlay%20itself.%0A%20%20%20%20%20*%20%40private%0A%20%20%20%20%20*%2F%0A%20%20%20%20__onNextAnimationFrame%3A%20function(callback)%20%7B%0A%20%20%20%20%20%20if%20(this.__raf)%20%7B%0A%20%20%20%20%20%20%20%20window.cancelAnimationFrame(this.__raf)%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20var%20self%20%3D%20this%3B%0A%20%20%20%20%20%20this.__raf%20%3D%20window.requestAnimationFrame(function%20nextAnimationFrame()%20%7B%0A%20%20%20%20%20%20%20%20self.__raf%20%3D%20null%3B%0A%20%20%20%20%20%20%20%20callback.call(self)%3B%0A%20%20%20%20%20%20%7D)%3B%0A%20%20%20%20%7D%0A%0A%20%20%7D%3B%0A%0A%20%20%2F**%0A%20%20Use%20%60Polymer.IronOverlayBehavior%60%20to%20implement%20an%20element%20that%20can%20be%20hidden%20or%20shown%2C%20and%20displays%0A%20%20on%20top%20of%20other%20content.%20It%20includes%20an%20optional%20backdrop%2C%20and%20can%20be%20used%20to%20implement%20a%20variety%0A%20%20of%20UI%20controls%20including%20dialogs%20and%20drop%20downs.%20Multiple%20overlays%20may%20be%20displayed%20at%20once.%0A%0A%20%20See%20the%20%5Bdemo%20source%20code%5D(https%3A%2F%2Fgithub.com%2FPolymerElements%2Firon-overlay-behavior%2Fblob%2Fmaster%2Fdemo%2Fsimple-overlay.html)%0A%20%20for%20an%20example.%0A%0A%20%20%23%23%23%20Closing%20and%20canceling%0A%0A%20%20An%20overlay%20may%20be%20hidden%20by%20closing%20or%20canceling.%20The%20difference%20between%20close%20and%20cancel%20is%20user%0A%20%20intent.%20Closing%20generally%20implies%20that%20the%20user%20acknowledged%20the%20content%20on%20the%20overlay.%20By%20default%2C%0A%20%20it%20will%20cancel%20whenever%20the%20user%20taps%20outside%20it%20or%20presses%20the%20escape%20key.%20This%20behavior%20is%0A%20%20configurable%20with%20the%20%60no-cancel-on-esc-key%60%20and%20the%20%60no-cancel-on-outside-click%60%20properties.%0A%20%20%60close()%60%20should%20be%20called%20explicitly%20by%20the%20implementer%20when%20the%20user%20interacts%20with%20a%20control%0A%20%20in%20the%20overlay%20element.%20When%20the%20dialog%20is%20canceled%2C%20the%20overlay%20fires%20an%20'iron-overlay-canceled'%0A%20%20event.%20Call%20%60preventDefault%60%20on%20this%20event%20to%20prevent%20the%20overlay%20from%20closing.%0A%0A%20%20%23%23%23%20Positioning%0A%0A%20%20By%20default%20the%20element%20is%20sized%20and%20positioned%20to%20fit%20and%20centered%20inside%20the%20window.%20You%20can%0A%20%20position%20and%20size%20it%20manually%20using%20CSS.%20See%20%60Polymer.IronFitBehavior%60.%0A%0A%20%20%23%23%23%20Backdrop%0A%0A%20%20Set%20the%20%60with-backdrop%60%20attribute%20to%20display%20a%20backdrop%20behind%20the%20overlay.%20The%20backdrop%20is%0A%20%20appended%20to%20%60%3Cbody%3E%60%20and%20is%20of%20type%20%60%3Ciron-overlay-backdrop%3E%60.%20See%20its%20doc%20page%20for%20styling%0A%20%20options.%0A%0A%20%20In%20addition%2C%20%60with-backdrop%60%20will%20wrap%20the%20focus%20within%20the%20content%20in%20the%20light%20DOM.%0A%20%20Override%20the%20%5B%60_focusableNodes%60%20getter%5D(%23Polymer.IronOverlayBehavior%3Aproperty-_focusableNodes)%0A%20%20to%20achieve%20a%20different%20behavior.%0A%0A%20%20%23%23%23%20Limitations%0A%0A%20%20The%20element%20is%20styled%20to%20appear%20on%20top%20of%20other%20content%20by%20setting%20its%20%60z-index%60%20property.%20You%0A%20%20must%20ensure%20no%20element%20has%20a%20stacking%20context%20with%20a%20higher%20%60z-index%60%20than%20its%20parent%20stacking%0A%20%20context.%20You%20should%20place%20this%20element%20as%20a%20child%20of%20%60%3Cbody%3E%60%20whenever%20possible.%0A%0A%20%20%40demo%20demo%2Findex.html%0A%20%20%40polymerBehavior%0A%20%20*%2F%0A%20%20Polymer.IronOverlayBehavior%20%3D%20%5BPolymer.IronFitBehavior%2C%20Polymer.IronResizableBehavior%2C%20Polymer.IronOverlayBehaviorImpl%5D%3B%0A%0A%20%20%2F**%0A%20%20%20*%20Fired%20after%20the%20overlay%20opens.%0A%20%20%20*%20%40event%20iron-overlay-opened%0A%20%20%20*%2F%0A%0A%20%20%2F**%0A%20%20%20*%20Fired%20when%20the%20overlay%20is%20canceled%2C%20but%20before%20it%20is%20closed.%0A%20%20%20*%20%40event%20iron-overlay-canceled%0A%20%20%20*%20%40param%20%7BEvent%7D%20event%20The%20closing%20of%20the%20overlay%20can%20be%20prevented%0A%20%20%20*%20by%20calling%20%60event.preventDefault()%60.%20The%20%60event.detail%60%20is%20the%20original%20event%20that%0A%20%20%20*%20originated%20the%20canceling%20(e.g.%20ESC%20keyboard%20event%20or%20click%20event%20outside%20the%20overlay).%0A%20%20%20*%2F%0A%0A%20%20%2F**%0A%20%20%20*%20Fired%20after%20the%20overlay%20closes.%0A%20%20%20*%20%40event%20iron-overlay-closed%0A%20%20%20*%20%40param%20%7BEvent%7D%20event%20The%20%60event.detail%60%20is%20the%20%60closingReason%60%20property%0A%20%20%20*%20(contains%20%60canceled%60%2C%20whether%20the%20overlay%20was%20canceled).%0A%20%20%20*%2F%0A%0A%7D)()%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fapp.folio.finance%2Ffolio-app.min.html-24.js%0A
- github.com/promises-aplus/promises-spec — in javascript;charset=utf-8,%2F**%0A%40license%0ACopyright%20(c)%202016%20The%20Polymer%20Project%20Authors.%20All%20rights%20reserved.%0AThis%20code%20may%20only%20be%20used%20under%20the%20BSD%20style%20license%20found%20at%20http%3A%2F%2Fpolymer.github.io%2FLICENSE.txt%0AThe%20complete%20set%20of%20authors%20may%20be%20found%20at%20http%3A%2F%2Fpolymer.github.io%2FAUTHORS.txt%0AThe%20complete%20set%20of%20contributors%20may%20be%20found%20at%20http%3A%2F%2Fpolymer.github.io%2FCONTRIBUTORS.txt%0ACode%20distributed%20by%20Google%20as%20part%20of%20the%20polymer%20project%20is%20also%0Asubject%20to%20an%20additional%20IP%20rights%20grant%20found%20at%20http%3A%2F%2Fpolymer.github.io%2FPATENTS.txt%0A*%2F%0Afunction%20MakePromise%20(asap)%20%7B%0A%20%20function%20Promise(fn)%20%7B%0A%09%09if%20(typeof%20this%20!%3D%3D%20'object'%20%7C%7C%20typeof%20fn%20!%3D%3D%20'function')%20throw%20new%20TypeError()%3B%0A%09%09this._state%20%3D%20null%3B%0A%09%09this._value%20%3D%20null%3B%0A%09%09this._deferreds%20%3D%20%5B%5D%0A%0A%09%09doResolve(fn%2C%20resolve.bind(this)%2C%20reject.bind(this))%3B%0A%09%7D%0A%0A%09function%20handle(deferred)%20%7B%0A%09%09var%20me%20%3D%20this%3B%0A%09%09if%20(this._state%20%3D%3D%3D%20null)%20%7B%0A%09%09%09this._deferreds.push(deferred)%3B%0A%09%09%09return%0A%09%09%7D%0A%09%09asap(function()%20%7B%0A%09%09%09var%20cb%20%3D%20me._state%20%3F%20deferred.onFulfilled%20%3A%20deferred.onRejected%0A%09%09%09if%20(typeof%20cb%20!%3D%3D%20'function')%20%7B%0A%09%09%09%09(me._state%20%3F%20deferred.resolve%20%3A%20deferred.reject)(me._value)%3B%0A%09%09%09%09return%3B%0A%09%09%09%7D%0A%09%09%09var%20ret%3B%0A%09%09%09try%20%7B%0A%09%09%09%09ret%20%3D%20cb(me._value)%3B%0A%09%09%09%7D%0A%09%09%09catch%20(e)%20%7B%0A%09%09%09%09deferred.reject(e)%3B%0A%09%09%09%09return%3B%0A%09%09%09%7D%0A%09%09%09deferred.resolve(ret)%3B%0A%09%09%7D)%0A%09%7D%0A%0A%09function%20resolve(newValue)%20%7B%0A%09%09try%20%7B%20%2F%2FPromise%20Resolution%20Procedure%3A%20https%3A%2F%2Fgithub.com%2Fpromises-aplus%2Fpromises-spec%23the-promise-resolution-procedure%0A%09%09%09if%20(newValue%20%3D%3D%3D%20this)%20throw%20new%20TypeError()%3B%0A%09%09%09if%20(newValue%20%26%26%20(typeof%20newValue%20%3D%3D%3D%20'object'%20%7C%7C%20typeof%20newValue%20%3D%3D%3D%20'function'))%20%7B%0A%09%09%09%09var%20then%20%3D%20newValue.then%3B%0A%09%09%09%09if%20(typeof%20then%20%3D%3D%3D%20'function')%20%7B%0A%09%09%09%09%09doResolve(then.bind(newValue)%2C%20resolve.bind(this)%2C%20reject.bind(this))%3B%0A%09%09%09%09%09return%3B%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%09this._state%20%3D%20true%3B%0A%09%09%09this._value%20%3D%20newValue%3B%0A%09%09%09finale.call(this)%3B%0A%09%09%7D%20catch%20(e)%20%7B%20reject.call(this%2C%20e)%3B%20%7D%0A%09%7D%0A%0A%09function%20reject(newValue)%20%7B%0A%09%09this._state%20%3D%20false%3B%0A%09%09this._value%20%3D%20newValue%3B%0A%09%09finale.call(this)%3B%0A%09%7D%0A%0A%09function%20finale()%20%7B%0A%09%09for%20(var%20i%20%3D%200%2C%20len%20%3D%20this._deferreds.length%3B%20i%20%3C%20len%3B%20i%2B%2B)%20%7B%0A%09%09%09handle.call(this%2C%20this._deferreds%5Bi%5D)%3B%0A%09%09%7D%0A%09%09this._deferreds%20%3D%20null%3B%0A%09%7D%0A%0A%09%2F**%0A%09%20*%20Take%20a%20potentially%20misbehaving%20resolver%20function%20and%20make%20sure%0A%09%20*%20onFulfilled%20and%20onRejected%20are%20only%20called%20once.%0A%09%20*%0A%09%20*%20Makes%20no%20guarantees%20about%20asynchrony.%0A%09%20*%2F%0A%09function%20doResolve(fn%2C%20onFulfilled%2C%20onRejected)%20%7B%0A%09%09var%20done%20%3D%20false%3B%0A%09%09try%20%7B%0A%09%09%09fn(function%20(value)%20%7B%0A%09%09%09%09if%20(done)%20return%3B%0A%09%09%09%09done%20%3D%20true%3B%0A%09%09%09%09onFulfilled(value)%3B%0A%09%09%09%7D%2C%20function%20(reason)%20%7B%0A%09%09%09%09if%20(done)%20return%3B%0A%09%09%09%09done%20%3D%20true%3B%0A%09%09%09%09onRejected(reason)%3B%0A%09%09%09%7D)%0A%09%09%7D%20catch%20(ex)%20%7B%0A%09%09%09if%20(done)%20return%3B%0A%09%09%09done%20%3D%20true%3B%0A%09%09%09onRejected(ex)%3B%0A%09%09%7D%0A%09%7D%0A%0A%09Promise.prototype%5B'catch'%5D%20%3D%20function%20(onRejected)%20%7B%0A%09%09return%20this.then(null%2C%20onRejected)%3B%0A%09%7D%3B%0A%0A%09Promise.prototype.then%20%3D%20function(onFulfilled%2C%20onRejected)%20%7B%0A%09%09var%20me%20%3D%20this%3B%0A%09%09return%20new%20Promise(function(resolve%2C%20reject)%20%7B%0A%20%20%20%20%20%20handle.call(me%2C%20%7B%0A%20%20%20%20%20%20%20%20onFulfilled%3A%20onFulfilled%2C%0A%20%20%20%20%20%20%20%20onRejected%3A%20onRejected%2C%0A%20%20%20%20%20%20%20%20resolve%3A%20resolve%2C%0A%20%20%20%20%20%20%20%20reject%3A%20reject%0A%20%20%20%20%20%20%7D)%3B%0A%09%09%7D)%0A%09%7D%3B%0A%0A%09Promise.resolve%20%3D%20function%20(value)%20%7B%0A%09%09if%20(value%20%26%26%20typeof%20value%20%3D%3D%3D%20'object'%20%26%26%20value.constructor%20%3D%3D%3D%20Promise)%20%7B%0A%09%09%09return%20value%3B%0A%09%09%7D%0A%0A%09%09return%20new%20Promise(function%20(resolve)%20%7B%0A%09%09%09resolve(value)%3B%0A%09%09%7D)%3B%0A%09%7D%3B%0A%0A%09Promise.reject%20%3D%20function%20(value)%20%7B%0A%09%09return%20new%20Promise(function%20(resolve%2C%20reject)%20%7B%0A%09%09%09reject(value)%3B%0A%09%09%7D)%3B%0A%09%7D%3B%0A%0A%09%0A%20%20return%20Promise%3B%0A%7D%0A%0Aif%20(typeof%20module%20!%3D%3D%20'undefined')%20%7B%0A%20%20module.exports%20%3D%20MakePromise%3B%0A%7D%0A%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fapp.folio.finance%2Ffolio-app.min.html-12.js%0A

Technology:

- Fastly
- Google Analytics
- Google Fonts
- jQuery 3.1.0

## Network and DNS of app.folio.finance

- Address: 151.101.1.195, 151.101.65.195 in AS54113 Fastly, Inc. · prefix 151.101.0.0/22 · RPKI valid
- In front: Fastly
- Apex folio.finance (the registered domain): A 151.101.1.195, 151.101.65.195
- www.folio.finance (of folio.finance): A 151.101.1.195, 151.101.65.195
- Name servers (of folio.finance): ns-cloud-c1.googledomains.com, ns-cloud-c2.googledomains.com, ns-cloud-c3.googledomains.com, ns-cloud-c4.googledomains.com (Google Cloud DNS) · DNSSEC unsigned
- CAA (of folio.finance): no CAA record
- Takeover: none: every CNAME target resolves
- Header vary: `x-fh-requested-host, accept-encoding`
- Header alt-svc: `h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400`
- Header x-cache: `MISS`
- Header content-type: `text/html; charset=utf-8`
- Header cache-control: `max-age=3600`
- Header content-encoding: `gzip`
- Header Strict-Transport-Security: `max-age=31556926`

## Mail for folio.finance

- MX: aspmx.l.google.com, alt2.aspmx.l.google.com, alt1.aspmx.l.google.com, alt3.aspmx.l.google.com, alt4.aspmx.l.google.com (Google Workspace)
- SPF: v=spf1 include:_spf.google.com ~all
- DMARC: no record
- DKIM: google

## Domain and certificate of app.folio.finance

- Domain folio.finance · registered 9 Feb 2017 (3,569 days before the latest scan) through Squarespace Domains II LLC · expires 9 Feb 2027
- Certificate: Google Trust Services · valid until 20 Dec 2026 · covers timstaging.3diq.com, static.ges.digital, marshal.rallyx.online, beta.snowjoe.com, deli-board.jp, auth.dailynotes.cc, congressplus-stg.flipsidegroupstaging.com, cementum-client-dev.geoservice24.ru, www.restauranteelpikoteo.com, calnorthex.com, stg.truepay.com.br, connectybim.com, onehealth.care, dairyhomeorganic.com, track.cmsmailservices.com, monettcommunity.church, online.arattupuzhapathisserildevi.com, www.nordia-precision.com, coppertone-demo.jnv.dev, cogni-dev.cogniapp.com, calendar.totik1.ro, theatre-workshop.spwn.jp, demo.hemisphere.digital, delish.no, tommykim.me, gabriele-storz.de, www.qaml.net, iontrack.me, admin.gakal.com.au, nativealien.co.nz, staff.dev4.skool.sg, sv.energyfilament.org, contaagora.com.br, walkietalkie.live, www.awmtraining.com, empirepsok.com, www.sylo.uk, dev.read.land, asafamran.com, www.asafamran.com, approveddevelopments.com, bonyxdd.com, tapp.thinkair.co.uk, commoditiesirongate.com, es.owner.pocketpost.life, www.chouhansmysore.in, multisensorial.unlp.edu.ar, guidefastly.com, chateaulune.writerduet.studio, latribupropiedades.com, momo.quest, sani-crm.com, radiokactus.com, lunchbestellen.nl, getflipscan.com, sinfincreations.com, beta.swingwizard.ai, www.empirepsok.com, cfg.sakumetall.ee, roubler.smartwage.co.za, effortlessclean.co, trivias.com.mx, www.publicolegalgroup.com, www.helsinki-vantaa.fi, javi.rocola.es, imgur-reloaded.matthewbeandev.com, vexterra.com, shizendesignstudio.com, auth.goosecast.com, www.arturoojeda.com, moca.co.in, www.redditonaturale.org, feedr-dev.accendo.com.my, runamokclub.com, seudev.com, www.simplewallet.net, ead.operand.com.br, twotabsweb.com, docs.thesportstation.com, app.folio.finance, vintageparadisepottery.com, guion.ricardocabret.com, best-home-configurator-cert.3dcloud.io, envs.kato.rocks, www.stefaniloppi.fr, www.arenafinancegroup.com, epanda.cl, www.rubion.it, ramanresearch.in, inventrak.tandemdiabetes.com, promley.com, rainbowpixels.io, urbanbricks.clau.io, steelspace.io, www.startshow.it, www.appnorge.io, d.helok.app, melissamolina.dev, authstaging.allwayswithyou.com, www.citynode.de

## Related hosts of app.folio.finance

- timstaging.3diq.com, static.ges.digital, marshal.rallyx.online, beta.snowjoe.com, [deli-board.jp](https://xpaling.com/host/deli-board.jp), auth.dailynotes.cc and 14 more are covered by the same certificate (20 hosts) — first seen 18 Nov 2026
- 54,600 other hosts in [AS54113 Fastly, Inc.](https://xpaling.com/asn/54113); 57,271 with NS at [Google Cloud DNS](https://xpaling.com/ns/google-cloud-dns); 232,704 receiving mail via [Google Workspace](https://xpaling.com/mail/google-workspace); 1,530 other hosts on IP [151.101.1.195](https://xpaling.com/ip/151.101.1.195) — first seen 18 Nov 2026
- More than 20 hosts look like it above the fold: [groundtruth.madhive.com](https://xpaling.com/host/groundtruth.madhive.com), [www.labmark.info](https://xpaling.com/host/www.labmark.info), [mail.mercedes-benz-bus.com](https://xpaling.com/host/mail.mercedes-benz-bus.com), [apps.moodysanalytics.com](https://xpaling.com/host/apps.moodysanalytics.com), [mail.mhaboss.net](https://xpaling.com/host/mail.mhaboss.net), [accounts.moodysanalytics.com](https://xpaling.com/host/accounts.moodysanalytics.com) and 14 more (groundtruth.madhive.com 97% · www.labmark.info 97% · mail.mercedes-benz-bus.com 97%) — first seen 18 Nov 2026

## Scan history of app.folio.finance

### Record

- Cite: xpaling, app.folio.finance, 18 Nov 2026, https://xpaling.com/host/app.folio.finance
- This record as Markdown: https://xpaling.com/host/app.folio.finance.md · JSON: https://xpaling.com/host/app.folio.finance.json
- Latest report (18 Nov 2026): https://xpaling.com/host/app.folio.finance/rep/g9mm9sdmck · https://xpaling.com/host/app.folio.finance/rep/g9mm9sdmck.md · https://xpaling.com/host/app.folio.finance/rep/g9mm9sdmck.json
- Submitted URL: https://app.folio.finance/
- Archive: desktop screenshot https://xpaling.com/i/app.folio.finance/2026-11-18-f256e7ca52865eb1ba9d93eb220ac4a1e8b31e5f969ba6a459c67d0437a71cf1.webp · phone screenshot https://xpaling.com/i/app.folio.finance/2026-11-18-958f626eb2afe530104c1559a304fa526bc6815716c87bac28be6abea6a4151e.webp · OG https://xpaling.com/og/g9mm9sdmck.png
- Records are observations, not verdicts. Corrections within two working days: https://xpaling.com/corrections
