@teipublisher/pb-components 2.26.1-next.3 → 3.0.0-next-4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/docker-cypress.yml +54 -0
- package/.github/workflows/main.yml +6 -4
- package/.github/workflows/node.js.yml +56 -21
- package/.github/workflows/release.js.yml +19 -17
- package/.releaserc.json +1 -1
- package/CHANGELOG.md +346 -11
- package/Dockerfile +78 -70
- package/README.md +112 -4
- package/css/components.css +5 -5
- package/css/gridjs/mermaid.min.css +1 -1
- package/css/leaflet/Control.Geocoder.css +1 -126
- package/css/leaflet/images/layers.png +0 -0
- package/css/tify/tify.css +6 -5
- package/css/tom-select/tom-select.bootstrap4.min.css +1 -1
- package/css/tom-select/tom-select.bootstrap5.min.css +1 -1
- package/css/tom-select/tom-select.default.min.css +1 -1
- package/css/tom-select/tom-select.default.min.css.map +1 -0
- package/css/tom-select/tom-select.min.css +1 -1
- package/cypress.config.js +84 -0
- package/dist/api.html +1 -1
- package/dist/css/design-system.css +607 -0
- package/dist/demo/bundle-test.html +4 -3
- package/dist/demo/components.css +46 -1
- package/dist/demo/design-system.html +710 -0
- package/dist/demo/dts-client.html +2 -2
- package/dist/demo/pb-autocomplete.html +23 -11
- package/dist/demo/pb-autocomplete2.html +66 -55
- package/dist/demo/pb-autocomplete3.html +17 -8
- package/dist/demo/pb-blacklab-highlight.html +28 -11
- package/dist/demo/pb-blacklab-results.html +3 -2
- package/dist/demo/pb-browse-docs.html +24 -24
- package/dist/demo/pb-browse-docs2.html +3 -3
- package/dist/demo/pb-clipboard.html +32 -28
- package/dist/demo/pb-code-editor.html +6 -6
- package/dist/demo/pb-code-highlight.html +63 -63
- package/dist/demo/pb-codepen.html +1 -1
- package/dist/demo/pb-collapse.html +1 -1
- package/dist/demo/pb-collapse2.html +2 -2
- package/dist/demo/pb-combo-box.html +135 -130
- package/dist/demo/pb-custom-form.html +64 -55
- package/dist/demo/pb-dialog.html +12 -6
- package/dist/demo/pb-document.html +1 -1
- package/dist/demo/pb-download.html +68 -59
- package/dist/demo/pb-drawer.html +67 -46
- package/dist/demo/pb-drawer2.html +65 -58
- package/dist/demo/pb-edit-app.html +2 -2
- package/dist/demo/pb-edit-xml.html +1 -1
- package/dist/demo/pb-facsimile-2.html +26 -11
- package/dist/demo/pb-facsimile-3.html +25 -10
- package/dist/demo/pb-facsimile-dedup-test-2.html +48 -0
- package/dist/demo/pb-facsimile-dedup-test.html +48 -0
- package/dist/demo/pb-facsimile.html +4 -4
- package/dist/demo/pb-formula.html +1 -1
- package/dist/demo/pb-grid.html +22 -8
- package/dist/demo/pb-highlight.html +2 -2
- package/dist/demo/pb-i18n-simple.html +1 -0
- package/dist/demo/pb-i18n.html +15 -5
- package/dist/demo/pb-image-strip-standalone.html +2 -2
- package/dist/demo/pb-image-strip-view.html +2 -2
- package/dist/demo/pb-leaflet-map.html +3 -3
- package/dist/demo/pb-leaflet-map2.html +2 -2
- package/dist/demo/pb-leaflet-map3.html +3 -3
- package/dist/demo/pb-link.html +1 -1
- package/dist/demo/pb-load.html +2 -6
- package/dist/demo/pb-login.html +1 -3
- package/dist/demo/pb-manage-odds.html +9 -4
- package/dist/demo/pb-markdown.html +1 -1
- package/dist/demo/pb-media-query.html +2 -2
- package/dist/demo/pb-mei.html +2 -2
- package/dist/demo/pb-mei2.html +2 -2
- package/dist/demo/pb-message.html +2 -3
- package/dist/demo/pb-odd-editor.html +54 -52
- package/dist/demo/pb-page-header.html +27 -0
- package/dist/demo/pb-popover.html +1 -1
- package/dist/demo/pb-print-preview.html +2 -2
- package/dist/demo/pb-progress.html +4 -4
- package/dist/demo/pb-repeat.html +32 -36
- package/dist/demo/pb-search.html +16 -5
- package/dist/demo/pb-search2.html +4 -4
- package/dist/demo/pb-search3.html +3 -3
- package/dist/demo/pb-search4.html +3 -3
- package/dist/demo/pb-select-feature.html +4 -4
- package/dist/demo/pb-select-feature2.html +4 -4
- package/dist/demo/pb-select-feature3.html +2 -2
- package/dist/demo/pb-select-i18n.html +58 -53
- package/dist/demo/pb-select-odd.html +1 -1
- package/dist/demo/pb-select.html +190 -75
- package/dist/demo/pb-select2.html +91 -37
- package/dist/demo/pb-select3.html +109 -41
- package/dist/demo/pb-svg.html +1 -1
- package/dist/demo/pb-table-grid.html +26 -15
- package/dist/demo/pb-tabs.html +15 -7
- package/dist/demo/pb-tify.html +7 -7
- package/dist/demo/pb-timeline.html +1 -1
- package/dist/demo/pb-timeline2.html +1 -1
- package/dist/demo/pb-toggle-feature.html +26 -23
- package/dist/demo/pb-toggle-feature2.html +4 -4
- package/dist/demo/pb-toggle-feature3.html +2 -2
- package/dist/demo/pb-toggle-feature4.html +56 -54
- package/dist/demo/pb-version.html +2 -2
- package/dist/demo/pb-view.html +78 -40
- package/dist/demo/pb-view2.html +69 -46
- package/dist/demo/pb-view3.html +53 -48
- package/dist/demo/pb-view4.html +70 -49
- package/dist/demo/pb-zoom.html +2 -2
- package/dist/{es-global-bridge-d8ce175d.js → es-global-bridge-D8ZcUcx_.js} +0 -4
- package/dist/focus-mixin-VCsFap6b.js +768 -0
- package/dist/images/icons.svg +217 -0
- package/dist/jinn-codemirror-DETLdm08.js +1 -0
- package/dist/lib/openseadragon.min.js +80 -0
- package/dist/lib/openseadragon.min.js.map +1 -0
- package/dist/pb-code-editor.js +25 -20
- package/dist/pb-component-docs.js +414 -3225
- package/dist/pb-components-bundle.js +3046 -4402
- package/dist/pb-dialog-tklYGWfc.js +121 -0
- package/dist/pb-edit-app.js +208 -107
- package/dist/pb-elements.json +716 -249
- package/dist/pb-facsimile.js +46 -0
- package/dist/pb-i18n-C0NDma4h.js +1 -0
- package/dist/pb-leaflet-map.js +23 -23
- package/dist/pb-mei.js +152 -134
- package/dist/pb-mixin-DHoWQheB.js +1 -0
- package/dist/pb-odd-editor.js +1671 -1231
- package/dist/pb-tify.js +1 -27
- package/dist/unsafe-html-D5VGo9Oq.js +1 -0
- package/dist/urls-BEONu_g4.js +1 -0
- package/eslint.config.mjs +92 -0
- package/gh-pages.js +5 -3
- package/i18n/common/en.json +6 -0
- package/i18n/common/pl.json +2 -2
- package/images/icons.svg +217 -0
- package/index.html +0 -5
- package/lib/leaflet-src.js.map +1 -0
- package/lib/leaflet.markercluster-src.js.map +1 -0
- package/lib/openseadragon.min.js +6 -6
- package/package.json +56 -81
- package/pb-elements.json +716 -249
- package/rollup.config.mjs +312 -0
- package/src/assets/components.css +5 -5
- package/src/assets/design-system.css +607 -0
- package/src/authority/airtable.js +20 -21
- package/src/authority/anton.js +129 -129
- package/src/authority/custom.js +70 -27
- package/src/authority/geonames.js +38 -32
- package/src/authority/gnd.js +50 -42
- package/src/authority/kbga.js +136 -134
- package/src/authority/metagrid.js +44 -46
- package/src/authority/reconciliation.js +66 -68
- package/src/authority/registry.js +4 -4
- package/src/docs/demo-utils.js +91 -0
- package/src/docs/pb-component-docs.js +287 -147
- package/src/docs/pb-component-view.js +380 -273
- package/src/docs/pb-components-list.js +115 -51
- package/src/docs/pb-demo-snippet.js +199 -174
- package/src/dts-client.js +306 -303
- package/src/dts-select-endpoint.js +125 -85
- package/src/parse-date-service.js +184 -135
- package/src/pb-ajax.js +175 -173
- package/src/pb-authority-lookup.js +198 -158
- package/src/pb-autocomplete.js +731 -313
- package/src/pb-blacklab-highlight.js +266 -260
- package/src/pb-blacklab-results.js +230 -225
- package/src/pb-browse-docs.js +601 -484
- package/src/pb-browse.js +68 -65
- package/src/pb-clipboard.js +97 -76
- package/src/pb-code-editor.js +111 -103
- package/src/pb-code-highlight.js +234 -204
- package/src/pb-codepen.js +81 -73
- package/src/pb-collapse.js +265 -152
- package/src/pb-combo-box.js +191 -191
- package/src/pb-components-bundle.js +1 -7
- package/src/pb-components.js +2 -6
- package/src/pb-custom-form.js +230 -141
- package/src/pb-dialog.js +99 -63
- package/src/pb-document.js +118 -91
- package/src/pb-download.js +214 -198
- package/src/pb-drawer.js +146 -149
- package/src/pb-edit-app.js +471 -240
- package/src/pb-edit-xml.js +101 -98
- package/src/pb-events.js +126 -107
- package/src/pb-facs-link.js +130 -101
- package/src/pb-facsimile.js +494 -410
- package/src/pb-fetch.js +389 -0
- package/src/pb-formula.js +152 -154
- package/src/pb-geolocation.js +130 -132
- package/src/pb-grid-action.js +59 -56
- package/src/pb-grid.js +388 -228
- package/src/pb-highlight.js +142 -142
- package/src/pb-hotkeys.js +40 -42
- package/src/pb-i18n.js +115 -127
- package/src/pb-icon-button.js +108 -0
- package/src/pb-icon.js +283 -0
- package/src/pb-image-strip.js +85 -79
- package/src/pb-lang.js +142 -57
- package/src/pb-leaflet-map.js +551 -483
- package/src/pb-link.js +132 -126
- package/src/pb-load.js +495 -428
- package/src/pb-login.js +303 -248
- package/src/pb-manage-odds.js +384 -338
- package/src/pb-map-icon.js +90 -90
- package/src/pb-map-layer.js +86 -86
- package/src/pb-markdown.js +107 -110
- package/src/pb-media-query.js +75 -73
- package/src/pb-mei.js +523 -303
- package/src/pb-message.js +144 -98
- package/src/pb-mixin.js +268 -265
- package/src/pb-navigation.js +83 -96
- package/src/pb-observable.js +39 -39
- package/src/pb-odd-editor.js +1209 -948
- package/src/pb-odd-elementspec-editor.js +375 -310
- package/src/pb-odd-model-editor.js +1189 -941
- package/src/pb-odd-parameter-editor.js +269 -170
- package/src/pb-odd-rendition-editor.js +184 -131
- package/src/pb-page.js +451 -422
- package/src/pb-paginate.js +260 -178
- package/src/pb-panel.js +217 -183
- package/src/pb-popover-themes.js +16 -9
- package/src/pb-popover.js +297 -288
- package/src/pb-print-preview.js +128 -128
- package/src/pb-progress.js +52 -52
- package/src/pb-repeat.js +141 -108
- package/src/pb-restricted.js +85 -78
- package/src/pb-search.js +258 -230
- package/src/pb-select-feature.js +210 -126
- package/src/pb-select-odd.js +184 -118
- package/src/pb-select-template.js +113 -78
- package/src/pb-select.js +330 -229
- package/src/pb-split-list.js +181 -176
- package/src/pb-svg.js +81 -80
- package/src/pb-table-column.js +55 -55
- package/src/pb-table-grid.js +334 -205
- package/src/pb-tabs.js +238 -61
- package/src/pb-tify.js +3331 -126
- package/src/pb-timeline.js +394 -255
- package/src/pb-toggle-feature.js +196 -188
- package/src/pb-upload.js +201 -176
- package/src/pb-version.js +22 -34
- package/src/pb-view-annotate.js +138 -102
- package/src/pb-view.js +1722 -1272
- package/src/pb-zoom.js +144 -46
- package/src/search-result-service.js +256 -223
- package/src/seed-element.js +14 -22
- package/src/settings.js +4 -4
- package/src/theming.js +98 -91
- package/src/urls.js +403 -289
- package/src/utils.js +53 -51
- package/vite.config.js +86 -0
- package/css/pb-styles.css +0 -51
- package/dist/iron-form-3b8dcaa7.js +0 -210
- package/dist/jinn-codemirror-da0e2d1f.js +0 -1
- package/dist/paper-checkbox-515a5284.js +0 -1597
- package/dist/paper-icon-button-b1d31571.js +0 -398
- package/dist/paper-listbox-a3b7175c.js +0 -1265
- package/dist/pb-i18n-0611135a.js +0 -1
- package/dist/pb-mixin-b1caa22e.js +0 -158
- package/dist/polymer-hack.js +0 -1
- package/dist/vaadin-element-mixin-fe4a4883.js +0 -527
- package/lib/Control.Geocoder.min.js +0 -2
- package/lib/Control.Geocoder.min.js.map +0 -1
- package/src/assets/pb-styles.css +0 -51
- package/src/pb-light-dom.js +0 -41
- package/src/polymer-hack.js +0 -6
|
@@ -1,1597 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
@license
|
|
3
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
4
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
5
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
6
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7
|
-
Code distributed by Google as part of the polymer project is also
|
|
8
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
9
|
-
*/
|
|
10
|
-
const e=!(window.ShadyDOM&&window.ShadyDOM.inUse);let t,i;function n(i){t=(!i||!i.shimcssproperties)&&(e||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(i=window.ShadyCSS.cssBuild);const r=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?t=window.ShadyCSS.nativeCss:window.ShadyCSS?(n(window.ShadyCSS),window.ShadyCSS=void 0):n(window.WebComponents&&window.WebComponents.flags);const s=t;
|
|
11
|
-
/**
|
|
12
|
-
@license
|
|
13
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
14
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
15
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
16
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
17
|
-
Code distributed by Google as part of the polymer project is also
|
|
18
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
19
|
-
*/class o{constructor(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}}function a(e){return d(c(e=l(e)),e)}function l(e){return e.replace(v.comments,"").replace(v.port,"")}function c(e){let t=new o;t.start=0,t.end=e.length;let i=t;for(let n=0,r=e.length;n<r;n++)if(e[n]===g){i.rules||(i.rules=[]);let e=i,t=e.rules[e.rules.length-1]||null;i=new o,i.start=n+1,i.parent=e,i.previous=t,e.rules.push(i)}else e[n]===b&&(i.end=n+1,i=i.parent||t);return t}function d(e,t){let i=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=i.trim(),e.parent){let n=e.previous?e.previous.end:e.parent.start;i=t.substring(n,e.start-1),i=h(i),i=i.replace(v.multipleSpaces," "),i=i.substring(i.lastIndexOf(";")+1);let r=e.parsedSelector=e.selector=i.trim();e.atRule=0===r.indexOf(P),e.atRule?0===r.indexOf(C)?e.type=y.MEDIA_RULE:r.match(v.keyframesRule)&&(e.type=y.KEYFRAMES_RULE,e.keyframesName=e.selector.split(v.multipleSpaces).pop()):0===r.indexOf(w)?e.type=y.MIXIN_RULE:e.type=y.STYLE_RULE}let n=e.rules;if(n)for(let e,i=0,r=n.length;i<r&&(e=n[i]);i++)d(e,t);return e}function h(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){let e=arguments[1],t=6-e.length;for(;t--;)e="0"+e;return"\\"+e}))}function p(e,t,i=""){let n="";if(e.cssText||e.rules){let i=e.rules;if(i&&!u(i))for(let e,r=0,s=i.length;r<s&&(e=i[r]);r++)n=p(e,t,n);else n=t?e.cssText:_(e.cssText),n=n.trim(),n&&(n=" "+n+"\n")}return n&&(e.selector&&(i+=e.selector+" "+g+"\n"),i+=n,e.selector&&(i+=b+"\n\n")),i}function u(e){let t=e[0];return Boolean(t)&&Boolean(t.selector)&&0===t.selector.indexOf(w)}function _(e){return m(e=f(e))}function f(e){return e.replace(v.customProp,"").replace(v.mixinProp,"")}function m(e){return e.replace(v.mixinApply,"").replace(v.varApply,"")}const y={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},g="{",b="}",v={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},w="--",C="@media",P="@",S=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,x=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,k=/@media\s(.*)/,E=new Set,A="shady-unscoped";function T(e){const t=e.textContent;if(!E.has(t)){E.add(t);const e=document.createElement("style");e.setAttribute("shady-unscoped",""),e.textContent=t,document.head.appendChild(e)}}function O(e){return e.hasAttribute(A)}
|
|
20
|
-
/**
|
|
21
|
-
@license
|
|
22
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
23
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
24
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
25
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
26
|
-
Code distributed by Google as part of the polymer project is also
|
|
27
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
28
|
-
*/function N(e,t){return e?("string"==typeof e&&(e=a(e)),t&&M(e,t),p(e,s)):""}function I(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=a(e.textContent)),e.__cssRules||null}function M(e,t,i,n){if(!e)return;let r=!1,s=e.type;if(n&&s===y.MEDIA_RULE){let t=e.selector.match(k);t&&(window.matchMedia(t[1]).matches||(r=!0))}s===y.STYLE_RULE?t(e):i&&s===y.KEYFRAMES_RULE?i(e):s===y.MIXIN_RULE&&(r=!0);let o=e.rules;if(o&&!r)for(let e,r=0,s=o.length;r<s&&(e=o[r]);r++)M(e,t,i,n)}function D(e,t){let i=0;for(let n=t,r=e.length;n<r;n++)if("("===e[n])i++;else if(")"===e[n]&&0==--i)return n;return-1}function R(e,t){let i=e.indexOf("var(");if(-1===i)return t(e,"","","");let n=D(e,i+3),r=e.substring(i+4,n),s=e.substring(0,i),o=R(e.substring(n+1),t),a=r.indexOf(",");return-1===a?t(s,r.trim(),"",o):t(s,r.substring(0,a).trim(),r.substring(a+1).trim(),o)}function L(e){let t=e.localName,i="",n="";return t?t.indexOf("-")>-1?i=t:(n=t,i=e.getAttribute&&e.getAttribute("is")||""):(i=e.is,n=e.extends),{is:i,typeExtension:n}}function F(t){const i=[],n=t.querySelectorAll("style");for(let t=0;t<n.length;t++){const r=n[t];O(r)?e||(T(r),r.parentNode.removeChild(r)):(i.push(r.textContent),r.parentNode.removeChild(r))}return i.join("").trim()}window.ShadyDOM&&window.ShadyDOM.wrap;const B="css-build";function H(e){if(void 0!==i)return i;if(void 0===e.__cssBuild){const t=e.getAttribute(B);if(t)e.__cssBuild=t;else{const t=j(e);""!==t&&U(e),e.__cssBuild=t}}return e.__cssBuild||""}function z(e){return""!==H(e)}function j(e){const t="template"===e.localName?e.content.firstChild:e.firstChild;if(t instanceof Comment){const e=t.textContent.trim().split(":");if(e[0]===B)return e[1]}return""}function U(e){const t="template"===e.localName?e.content.firstChild:e.firstChild;t.parentNode.removeChild(t)}
|
|
29
|
-
/**
|
|
30
|
-
@license
|
|
31
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
32
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
33
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
34
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
35
|
-
Code distributed by Google as part of the polymer project is also
|
|
36
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
37
|
-
*/function K(e,t){for(let i in t)null===i?e.style.removeProperty(i):e.style.setProperty(i,t[i])}function q(e,t){const i=window.getComputedStyle(e).getPropertyValue(t);return i?i.trim():""}function $(e){const t=x.test(e)||S.test(e);return x.lastIndex=0,S.lastIndex=0,t}
|
|
38
|
-
/**
|
|
39
|
-
@license
|
|
40
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
41
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
42
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
43
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
44
|
-
Code distributed by Google as part of the polymer project is also
|
|
45
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
46
|
-
*/const Y=/;\s*/m,V=/^\s*(initial)|(inherit)\s*$/,J=/\s*!important/,X="_-_";class W{constructor(){this._map={}}set(e,t){e=e.trim(),this._map[e]={properties:t,dependants:{}}}get(e){return e=e.trim(),this._map[e]||null}}let G=null;class Z{constructor(){this._currentElement=null,this._measureElement=null,this._map=new W}detectMixin(e){return $(e)}gatherStyles(e){const t=F(e.content);if(t){const i=document.createElement("style");return i.textContent=t,e.content.insertBefore(i,e.content.firstChild),i}return null}transformTemplate(e,t){void 0===e._gatheredStyle&&(e._gatheredStyle=this.gatherStyles(e));const i=e._gatheredStyle;return i?this.transformStyle(i,t):null}transformStyle(e,t=""){let i=I(e);return this.transformRules(i,t),e.textContent=N(i),i}transformCustomStyle(e){let t=I(e);return M(t,e=>{":root"===e.selector&&(e.selector="html"),this.transformRule(e)}),e.textContent=N(t),t}transformRules(e,t){this._currentElement=t,M(e,e=>{this.transformRule(e)}),this._currentElement=null}transformRule(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}transformCssText(e,t){return e=e.replace(S,(e,i,n,r)=>this._produceCssProperties(e,i,n,r,t)),this._consumeCssProperties(e,t)}_getInitialValueForProperty(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}_fallbacksFromPreviousRules(e){let t=e;for(;t.parent;)t=t.parent;const i={};let n=!1;return M(t,t=>{n=n||t===e,n||t.selector===e.selector&&Object.assign(i,this._cssTextToMap(t.parsedCssText))}),i}_consumeCssProperties(e,t){let i=null;for(;i=x.exec(e);){let n=i[0],r=i[1],s=i.index,o=s+n.indexOf("@apply"),a=s+n.length,l=e.slice(0,o),c=e.slice(a),d=t?this._fallbacksFromPreviousRules(t):{};Object.assign(d,this._cssTextToMap(l));let h=this._atApplyToCssProperties(r,d);e=`${l}${h}${c}`,x.lastIndex=s+h.length}return e}_atApplyToCssProperties(e,t){e=e.replace(Y,"");let i=[],n=this._map.get(e);if(n||(this._map.set(e,{}),n=this._map.get(e)),n){let r,s,o;this._currentElement&&(n.dependants[this._currentElement]=!0);const a=n.properties;for(r in a)o=t&&t[r],s=[r,": var(",e,X,r],o&&s.push(",",o.replace(J,"")),s.push(")"),J.test(a[r])&&s.push(" !important"),i.push(s.join(""))}return i.join("; ")}_replaceInitialOrInherit(e,t){let i=V.exec(t);return i&&(t=i[1]?this._getInitialValueForProperty(e):"apply-shim-inherit"),t}_cssTextToMap(e,t=!1){let i,n,r=e.split(";"),s={};for(let e,o,a=0;a<r.length;a++)e=r[a],e&&(o=e.split(":"),o.length>1&&(i=o[0].trim(),n=o.slice(1).join(":"),t&&(n=this._replaceInitialOrInherit(i,n)),s[i]=n));return s}_invalidateMixinEntry(e){if(G)for(let t in e.dependants)t!==this._currentElement&&G(t)}_produceCssProperties(e,t,i,n,r){if(i&&R(i,(e,t)=>{t&&this._map.get(t)&&(n=`@apply ${t};`)}),!n)return e;let s=this._consumeCssProperties(""+n,r),o=e.slice(0,e.indexOf("--")),a=this._cssTextToMap(s,!0),l=a,c=this._map.get(t),d=c&&c.properties;d?l=Object.assign(Object.create(d),a):this._map.set(t,l);let h,p,u=[],_=!1;for(h in l)p=a[h],void 0===p&&(p="initial"),d&&!(h in d)&&(_=!0),u.push(`${t}${X}${h}: ${p}`);return _&&this._invalidateMixinEntry(c),c&&(c.properties=l),i&&(o=`${e};${o}`),`${o}${u.join("; ")};`}}Z.prototype.detectMixin=Z.prototype.detectMixin,Z.prototype.transformStyle=Z.prototype.transformStyle,Z.prototype.transformCustomStyle=Z.prototype.transformCustomStyle,Z.prototype.transformRules=Z.prototype.transformRules,Z.prototype.transformRule=Z.prototype.transformRule,Z.prototype.transformTemplate=Z.prototype.transformTemplate,Z.prototype._separator=X,Object.defineProperty(Z.prototype,"invalidCallback",{get:()=>G,set(e){G=e}});
|
|
47
|
-
/**
|
|
48
|
-
@license
|
|
49
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
50
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
51
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
52
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
53
|
-
Code distributed by Google as part of the polymer project is also
|
|
54
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
55
|
-
*/
|
|
56
|
-
const Q={},ee="_applyShimCurrentVersion",te="_applyShimNextVersion",ie="_applyShimValidatingVersion",ne=Promise.resolve();
|
|
57
|
-
/**
|
|
58
|
-
@license
|
|
59
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
60
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
61
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
62
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
63
|
-
Code distributed by Google as part of the polymer project is also
|
|
64
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
65
|
-
*/function re(e){let t=Q[e];t&&se(t)}function se(e){e[ee]=e[ee]||0,e[ie]=e[ie]||0,e[te]=(e[te]||0)+1}function oe(e){return e[ee]===e[te]}function ae(e){return!oe(e)&&e[ie]===e[te]}function le(e){e[ie]=e[te],e._validating||(e._validating=!0,ne.then((function(){e[ee]=e[te],e._validating=!1})))}
|
|
66
|
-
/**
|
|
67
|
-
@license
|
|
68
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
69
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
70
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
71
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
72
|
-
Code distributed by Google as part of the polymer project is also
|
|
73
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
74
|
-
*/let ce,de=null,he=window.HTMLImports&&window.HTMLImports.whenReady||null;function pe(e){requestAnimationFrame((function(){he?he(e):(de||(de=new Promise(e=>{ce=e}),"complete"===document.readyState?ce():document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&ce()})),de.then((function(){e&&e()})))}))}
|
|
75
|
-
/**
|
|
76
|
-
@license
|
|
77
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
78
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
79
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
80
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
81
|
-
Code distributed by Google as part of the polymer project is also
|
|
82
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
83
|
-
*/const ue="__seenByShadyCSS",_e="__shadyCSSCachedStyle";let fe=null,me=null;class ye{constructor(){this.customStyles=[],this.enqueued=!1,pe(()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}enqueueDocumentValidation(){!this.enqueued&&me&&(this.enqueued=!0,pe(me))}addCustomStyle(e){e[ue]||(e[ue]=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}getStyleForCustomStyle(e){if(e[_e])return e[_e];let t;return t=e.getStyle?e.getStyle():e,t}processStyles(){const e=this.customStyles;for(let t=0;t<e.length;t++){const i=e[t];if(i[_e])continue;const n=this.getStyleForCustomStyle(i);if(n){const e=n.__appliedElement||n;fe&&fe(e),i[_e]=e}}return e}}ye.prototype.addCustomStyle=ye.prototype.addCustomStyle,ye.prototype.getStyleForCustomStyle=ye.prototype.getStyleForCustomStyle,ye.prototype.processStyles=ye.prototype.processStyles,Object.defineProperties(ye.prototype,{transformCallback:{get:()=>fe,set(e){fe=e}},validateCallback:{get:()=>me,set(e){let t=!1;me||(t=!0),me=e,t&&this.enqueueDocumentValidation()}}});
|
|
84
|
-
/**
|
|
85
|
-
@license
|
|
86
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
87
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
88
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
89
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
90
|
-
Code distributed by Google as part of the polymer project is also
|
|
91
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
92
|
-
*/
|
|
93
|
-
const ge=new Z;class be{constructor(){this.customStyleInterface=null,ge.invalidCallback=re}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{ge.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame(()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()})})}prepareTemplate(e,t){if(this.ensure(),z(e))return;Q[t]=e;let i=ge.transformTemplate(e,t);e._styleAst=i}flushCustomStyles(){if(this.ensure(),!this.customStyleInterface)return;let e=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(let t=0;t<e.length;t++){let i=e[t],n=this.customStyleInterface.getStyleForCustomStyle(i);n&&ge.transformCustomStyle(n)}this.customStyleInterface.enqueued=!1}}styleSubtree(e,t){if(this.ensure(),t&&K(e,t),e.shadowRoot){this.styleElement(e);let t=e.shadowRoot.children||e.shadowRoot.childNodes;for(let e=0;e<t.length;e++)this.styleSubtree(t[e])}else{let t=e.children||e.childNodes;for(let e=0;e<t.length;e++)this.styleSubtree(t[e])}}styleElement(e){this.ensure();let{is:t}=L(e),i=Q[t];if((!i||!z(i))&&i&&!oe(i)){ae(i)||(this.prepareTemplate(i,t),le(i));let n=e.shadowRoot;if(n){let e=n.querySelector("style");e&&(e.__cssRules=i._styleAst,e.textContent=N(i._styleAst))}}}styleDocument(e){this.ensure(),this.styleSubtree(document.body,e)}}if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const t=new be;let n=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(e,i,n){t.flushCustomStyles(),t.prepareTemplate(e,i)},prepareTemplateStyles(e,t,i){window.ShadyCSS.prepareTemplate(e,t,i)},prepareTemplateDom(e,t){},styleSubtree(e,i){t.flushCustomStyles(),t.styleSubtree(e,i)},styleElement(e){t.flushCustomStyles(),t.styleElement(e)},styleDocument(e){t.flushCustomStyles(),t.styleDocument(e)},getComputedStyleValue:(e,t)=>q(e,t),flushCustomStyles(){t.flushCustomStyles()},nativeCss:s,nativeShadow:e,cssBuild:i,disableRuntime:r},n&&(window.ShadyCSS.CustomStyleInterface=n)}window.ShadyCSS.ApplyShim=ge,
|
|
94
|
-
/**
|
|
95
|
-
@license
|
|
96
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
97
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
98
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
99
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
100
|
-
Code distributed by Google as part of the polymer project is also
|
|
101
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
102
|
-
*/
|
|
103
|
-
window.JSCompiler_renameProperty=function(e,t){return e};
|
|
104
|
-
/**
|
|
105
|
-
@license
|
|
106
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
107
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
108
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
109
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
110
|
-
Code distributed by Google as part of the polymer project is also
|
|
111
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
112
|
-
*/
|
|
113
|
-
let ve,we,Ce=/(url\()([^)]*)(\))/g,Pe=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function Se(e,t){if(e&&Pe.test(e))return e;if("//"===e)return e;if(void 0===ve){ve=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",ve="http://a/c%20d"===e.href}catch(e){}}if(t||(t=document.baseURI||window.location.href),ve)try{return new URL(e,t).href}catch(t){return e}return we||(we=document.implementation.createHTMLDocument("temp"),we.base=we.createElement("base"),we.head.appendChild(we.base),we.anchor=we.createElement("a"),we.body.appendChild(we.anchor)),we.base.href=t,we.anchor.href=e,we.anchor.href||e}function xe(e,t){return e.replace(Ce,(function(e,i,n,r){return i+"'"+Se(n.replace(/["']/g,""),t)+"'"+r}))}function ke(e){return e.substring(0,e.lastIndexOf("/")+1)}
|
|
114
|
-
/**
|
|
115
|
-
@license
|
|
116
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
117
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
118
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
119
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
120
|
-
Code distributed by Google as part of the polymer project is also
|
|
121
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
122
|
-
*/const Ee=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const Ae=Ee&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();let Te=window.Polymer&&window.Polymer.rootPath||ke(document.baseURI||window.location.href),Oe=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Ne=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Ie=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Me=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,De=window.Polymer&&window.Polymer.legacyOptimizations||!1,Re=window.Polymer&&window.Polymer.legacyWarnings||!1,Le=window.Polymer&&window.Polymer.syncInitialRender||!1,Fe=window.Polymer&&window.Polymer.legacyUndefined||!1,Be=window.Polymer&&window.Polymer.orderedComputed||!1,He=window.Polymer&&window.Polymer.removeNestedTemplates||!1,ze=window.Polymer&&window.Polymer.fastDomIf||!1,je=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Ue=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Ke=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,qe=0;const $e=function(e){let t=e.__mixinApplications;t||(t=new WeakMap,e.__mixinApplications=t);let i=qe++;function n(n){let r=n.__mixinSet;if(r&&r[i])return n;let s=t,o=s.get(n);if(!o){o=e(n),s.set(n,o);let t=Object.create(o.__mixinSet||r||null);t[i]=!0,o.__mixinSet=t}return o}return n};
|
|
123
|
-
/**
|
|
124
|
-
@license
|
|
125
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
126
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
127
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
128
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
129
|
-
Code distributed by Google as part of the polymer project is also
|
|
130
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
131
|
-
*/let Ye={},Ve={};function Je(e,t){Ye[e]=Ve[e.toLowerCase()]=t}function Xe(e){return Ye[e]||Ve[e.toLowerCase()]}function We(e){e.querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}class Ge extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=Xe(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,n){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Se(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=ke(t)}return this.__assetpath}register(e){if(e=e||this.id){if(Ie&&void 0!==Xe(e))throw Je(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Je(e,this),We(this)}}}Ge.prototype.modules=Ye,customElements.define("dom-module",Ge);
|
|
132
|
-
/**
|
|
133
|
-
@license
|
|
134
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
135
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
136
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
137
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
138
|
-
Code distributed by Google as part of the polymer project is also
|
|
139
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
140
|
-
*/
|
|
141
|
-
const Ze="link[rel=import][type~=css]",Qe="include",et="shady-unscoped";function tt(e){return Ge.import(e)}function it(e){const t=xe((e.body?e.body:e).textContent,e.baseURI),i=document.createElement("style");return i.textContent=t,i}function nt(e){const t=e.trim().split(/\s+/),i=[];for(let e=0;e<t.length;e++)i.push(...rt(t[e]));return i}function rt(e){const t=tt(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...at(t));const i=t.querySelector("template");i&&e.push(...st(i,t.assetpath)),t._styles=e}return t._styles}function st(e,t){if(!e._styles){const i=[],n=e.content.querySelectorAll("style");for(let e=0;e<n.length;e++){let r=n[e],s=r.getAttribute(Qe);s&&i.push(...nt(s).filter((function(e,t,i){return i.indexOf(e)===t}))),t&&(r.textContent=xe(r.textContent,t)),i.push(r)}e._styles=i}return e._styles}function ot(e){let t=tt(e);return t?at(t):[]}function at(e){const t=[],i=e.querySelectorAll(Ze);for(let e=0;e<i.length;e++){let n=i[e];if(n.import){const e=n.import,i=n.hasAttribute(et);if(i&&!e._unscopedStyle){const t=it(e);t.setAttribute(et,""),e._unscopedStyle=t}else e._style||(e._style=it(e));t.push(i?e._unscopedStyle:e._style)}}return t}function lt(e){let t=e.trim().split(/\s+/),i="";for(let e=0;e<t.length;e++)i+=ct(t[e]);return i}function ct(e){let t=tt(e);if(t&&void 0===t._cssText){let e=ht(t),i=t.querySelector("template");i&&(e+=dt(i,t.assetpath)),t._cssText=e||null}return t||console.warn("Could not find style data in module named",e),t&&t._cssText||""}function dt(e,t){let i="";const n=st(e,t);for(let e=0;e<n.length;e++){let t=n[e];t.parentNode&&t.parentNode.removeChild(t),i+=t.textContent}return i}function ht(e){let t="",i=at(e);for(let e=0;e<i.length;e++)t+=i[e].textContent;return t}
|
|
142
|
-
/**
|
|
143
|
-
@license
|
|
144
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
145
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
146
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
147
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
148
|
-
Code distributed by Google as part of the polymer project is also
|
|
149
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
150
|
-
*/const pt=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e
|
|
151
|
-
/**
|
|
152
|
-
@license
|
|
153
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
154
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
155
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
156
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
157
|
-
Code distributed by Google as part of the polymer project is also
|
|
158
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
159
|
-
*/;function ut(e){return e.indexOf(".")>=0}function _t(e){let t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function ft(e,t){return 0===e.indexOf(t+".")}function mt(e,t){return 0===t.indexOf(e+".")}function yt(e,t,i){return t+i.slice(e.length)}function gt(e,t){return e===t||ft(e,t)||mt(e,t)}function bt(e){if(Array.isArray(e)){let t=[];for(let i=0;i<e.length;i++){let n=e[i].toString().split(".");for(let e=0;e<n.length;e++)t.push(n[e])}return t.join(".")}return e}function vt(e){return Array.isArray(e)?bt(e).split("."):e.toString().split(".")}function wt(e,t,i){let n=e,r=vt(t);for(let e=0;e<r.length;e++){if(!n)return;n=n[r[e]]}return i&&(i.path=r.join(".")),n}function Ct(e,t,i){let n=e,r=vt(t),s=r[r.length-1];if(r.length>1){for(let e=0;e<r.length-1;e++){if(n=n[r[e]],!n)return}n[s]=i}else n[t]=i;return r.join(".")}
|
|
160
|
-
/**
|
|
161
|
-
@license
|
|
162
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
163
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
164
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
165
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
166
|
-
Code distributed by Google as part of the polymer project is also
|
|
167
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
168
|
-
*/const Pt={},St=/-[a-z]/g,xt=/([A-Z])/g;function kt(e){return Pt[e]||(Pt[e]=e.indexOf("-")<0?e:e.replace(St,e=>e[1].toUpperCase()))}function Et(e){return Pt[e]||(Pt[e]=e.replace(xt,"-$1").toLowerCase())}
|
|
169
|
-
/**
|
|
170
|
-
@license
|
|
171
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
172
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
173
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
174
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
175
|
-
Code distributed by Google as part of the polymer project is also
|
|
176
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
177
|
-
*/let At=0,Tt=0,Ot=[],Nt=0,It=!1,Mt=document.createTextNode("");function Dt(){It=!1;const e=Ot.length;for(let t=0;t<e;t++){let e=Ot[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}Ot.splice(0,e),Tt+=e}new window.MutationObserver(Dt).observe(Mt,{characterData:!0});const Rt={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},Lt={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},Ft={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},Bt={run:e=>(It||(It=!0,Mt.textContent=Nt++),Ot.push(e),At++),cancel(e){const t=e-Tt;if(t>=0){if(!Ot[t])throw new Error("invalid async handle: "+e);Ot[t]=null}}},Ht=Bt,zt=$e(e=>{class t extends e{static createProperties(e){const t=this.prototype;for(let i in e)i in t||t._createPropertyAccessor(i)}static attributeNameForProperty(e){return e.toLowerCase()}static typeForProperty(e){}_createPropertyAccessor(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}_addPropertyToAttributeMap(e){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let t=this.__dataAttributes[e];return t||(t=this.constructor.attributeNameForProperty(e),this.__dataAttributes[t]=e),t}_definePropertyAccessor(e,t){Object.defineProperty(this,e,{get(){return this.__data[e]},set:t?function(){}:function(t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}_initializeInstanceProperties(e){Object.assign(this,e)}_setProperty(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}_getProperty(e){return this.__data[e]}_setPendingProperty(e,t,i){let n=this.__data[e],r=this._shouldPropertyChange(e,t,n);return r&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(e in this.__dataOld)&&(this.__dataOld[e]=n),this.__data[e]=t,this.__dataPending[e]=t),r}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Ht.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const e=this.__data,t=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(e,t,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,i)),this.__dataCounter--}_shouldPropertiesChange(e,t,i){return Boolean(t)}_propertiesChanged(e,t,i){}_shouldPropertyChange(e,t,i){return i!==t&&(i==i||t==t)}attributeChangedCallback(e,t,i,n){t!==i&&this._attributeToProperty(e,i),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,i,n)}_attributeToProperty(e,t,i){if(!this.__serializing){const n=this.__dataAttributes,r=n&&n[e]||e;this[r]=this._deserializeValue(t,i||this.constructor.typeForProperty(r))}}_propertyToAttribute(e,t,i){this.__serializing=!0,i=arguments.length<3?this[e]:i,this._valueToNodeAttribute(this,i,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,i){const n=this._serializeValue(t);"class"!==i&&"name"!==i&&"slot"!==i||(e=pt(e)),void 0===n?e.removeAttribute(i):e.setAttribute(i,""===n&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(e){switch(typeof e){case"boolean":return e?"":void 0;default:return null!=e?e.toString():void 0}}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}return t}),jt={};let Ut=HTMLElement.prototype;for(;Ut;){let e=Object.getOwnPropertyNames(Ut);for(let t=0;t<e.length;t++)jt[e[t]]=!0;Ut=Object.getPrototypeOf(Ut)}const Kt=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1;function qt(e,t){if(!jt[t]){let i=e[t];void 0!==i&&(e.__data?e._setPendingProperty(t,i):(e.__dataProto?e.hasOwnProperty(JSCompiler_renameProperty("__dataProto",e))||(e.__dataProto=Object.create(e.__dataProto)):e.__dataProto={},e.__dataProto[t]=i))}}const $t=$e(e=>{const t=zt(e);class i extends t{static createPropertiesForAttributes(){let e=this.observedAttributes;for(let t=0;t<e.length;t++)this.prototype._createPropertyAccessor(kt(e[t]))}static attributeNameForProperty(e){return Et(e)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(e){for(let t in e)this._setProperty(t,e[t])}_ensureAttribute(e,t){const i=this;i.hasAttribute(e)||this._valueToNodeAttribute(i,t,e)}_serializeValue(e){switch(typeof e){case"object":if(e instanceof Date)return e.toString();if(e){if(Kt(e))return e;try{return JSON.stringify(e)}catch(e){return""}}default:return super._serializeValue(e)}}_deserializeValue(e,t){let i;switch(t){case Object:try{i=JSON.parse(e)}catch(t){i=e}break;case Array:try{i=JSON.parse(e)}catch(t){i=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:i=isNaN(e)?String(e):Number(e),i=new Date(i);break;default:i=super._deserializeValue(e,t)}return i}_definePropertyAccessor(e,t){qt(this,e),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}return i}),Yt={"dom-if":!0,"dom-repeat":!0};
|
|
178
|
-
/**
|
|
179
|
-
@license
|
|
180
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
181
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
182
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
183
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
184
|
-
Code distributed by Google as part of the polymer project is also
|
|
185
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
186
|
-
*/let Vt=!1,Jt=!1;function Xt(){if(!Vt){Vt=!0;const e=document.createElement("textarea");e.placeholder="a",Jt=e.placeholder===e.textContent}return Jt}function Wt(e){Xt()&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null)}const Gt=(()=>{const e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(t,i,n)=>{const r=i.getAttribute(n);e&&n.startsWith("on-")?t.setAttribute(n,e.createScript(r,n)):t.setAttribute(n,r)}})();function Zt(e){let t=e.getAttribute("is");if(t&&Yt[t]){let i=e;for(i.removeAttribute("is"),e=i.ownerDocument.createElement(t),i.parentNode.replaceChild(e,i),e.appendChild(i);i.attributes.length;){const{name:t}=i.attributes[0];Gt(e,i,t),i.removeAttribute(t)}}return e}function Qt(e,t){let i=t.parentInfo&&Qt(e,t.parentInfo);if(!i)return e;for(let e=i.firstChild,n=0;e;e=e.nextSibling)if(t.parentIndex===n++)return e}function ei(e,t,i,n){n.id&&(t[n.id]=i)}function ti(e,t,i){if(i.events&&i.events.length)for(let n,r=0,s=i.events;r<s.length&&(n=s[r]);r++)e._addMethodEventListenerToNode(t,n.name,n.value,e)}function ii(e,t,i,n){i.templateInfo&&(t._templateInfo=i.templateInfo,t._parentTemplateInfo=n)}function ni(e,t,i){return e=e._methodHost||e,function(t){e[i]?e[i](t,t.detail):console.warn("listener method `"+i+"` not defined")}}const ri=$e(e=>{class t extends e{static _parseTemplate(e,t){if(!e._templateInfo){let i=e._templateInfo={};i.nodeInfoList=[],i.nestedTemplate=Boolean(t),i.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,i,{parent:null})}return e._templateInfo}static _parseTemplateContent(e,t,i){return this._parseTemplateNode(e.content,t,i)}static _parseTemplateNode(e,t,i){let n=!1,r=e;return"template"!=r.localName||r.hasAttribute("preserve-content")?"slot"===r.localName&&(t.hasInsertionPoint=!0):n=this._parseTemplateNestedTemplate(r,t,i)||n,Wt(r),r.firstChild&&this._parseTemplateChildNodes(r,t,i),r.hasAttributes&&r.hasAttributes()&&(n=this._parseTemplateNodeAttributes(r,t,i)||n),n||i.noted}static _parseTemplateChildNodes(e,t,i){if("script"!==e.localName&&"style"!==e.localName)for(let n,r=e.firstChild,s=0;r;r=n){if("template"==r.localName&&(r=Zt(r)),n=r.nextSibling,r.nodeType===Node.TEXT_NODE){let i=n;for(;i&&i.nodeType===Node.TEXT_NODE;)r.textContent+=i.textContent,n=i.nextSibling,e.removeChild(i),i=n;if(t.stripWhiteSpace&&!r.textContent.trim()){e.removeChild(r);continue}}let o={parentIndex:s,parentInfo:i};this._parseTemplateNode(r,t,o)&&(o.infoIndex=t.nodeInfoList.push(o)-1),r.parentNode&&s++}}static _parseTemplateNestedTemplate(e,t,i){let n=e,r=this._parseTemplate(n,t);return(r.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),i.templateInfo=r,!0}static _parseTemplateNodeAttributes(e,t,i){let n=!1,r=Array.from(e.attributes);for(let s,o=r.length-1;s=r[o];o--)n=this._parseTemplateNodeAttribute(e,t,i,s.name,s.value)||n;return n}static _parseTemplateNodeAttribute(e,t,i,n,r){return"on-"===n.slice(0,3)?(e.removeAttribute(n),i.events=i.events||[],i.events.push({name:n.slice(3),value:r}),!0):"id"===n&&(i.id=r,!0)}static _contentForTemplate(e){let t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,t){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);let i=(t=t||this.constructor._parseTemplate(e)).nodeInfoList,n=t.content||e.content,r=document.importNode(n,!0);r.__noInsertionPoint=!t.hasInsertionPoint;let s=r.nodeList=new Array(i.length);r.$={};for(let e,n=0,o=i.length;n<o&&(e=i[n]);n++){let i=s[n]=Qt(r,e);ei(this,r.$,i,e),ii(this,i,e,t),ti(this,i,e)}return r=r,r}_addMethodEventListenerToNode(e,t,i,n){let r=ni(n=n||e,t,i);return this._addEventListenerToNode(e,t,r),r}_addEventListenerToNode(e,t,i){e.addEventListener(t,i)}_removeEventListenerFromNode(e,t,i){e.removeEventListener(t,i)}}return t});
|
|
187
|
-
/**
|
|
188
|
-
* @fileoverview
|
|
189
|
-
* @suppress {checkPrototypalTypes}
|
|
190
|
-
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
191
|
-
* This code may only be used under the BSD style license found at
|
|
192
|
-
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
193
|
-
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
194
|
-
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
195
|
-
* Google as part of the polymer project is also subject to an additional IP
|
|
196
|
-
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
197
|
-
*/let si=0;const oi=[],ai={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},li="__computeInfo",ci=/[A-Z]/;function di(e,t,i){let n=e[t];if(n){if(!e.hasOwnProperty(t)&&(n=e[t]=Object.create(e[t]),i))for(let e in n){let t=n[e],i=n[e]=Array(t.length);for(let e=0;e<t.length;e++)i[e]=t[e]}}else n=e[t]={};return n}function hi(e,t,i,n,r,s){if(t){let o=!1;const a=si++;for(let l in i){let c=t[r?_t(l):l];if(c)for(let t,d=0,h=c.length;d<h&&(t=c[d]);d++)t.info&&t.info.lastRun===a||r&&!ui(l,t.trigger)||(t.info&&(t.info.lastRun=a),t.fn(e,l,i,n,t.info,r,s),o=!0)}return o}return!1}function pi(e,t,i,n,r,s,o,a){let l=!1,c=t[o?_t(n):n];if(c)for(let t,d=0,h=c.length;d<h&&(t=c[d]);d++)t.info&&t.info.lastRun===i||o&&!ui(n,t.trigger)||(t.info&&(t.info.lastRun=i),t.fn(e,n,r,s,t.info,o,a),l=!0);return l}function ui(e,t){if(t){let i=t.name;return i==e||!(!t.structured||!ft(i,e))||!(!t.wildcard||!mt(i,e))}return!0}function _i(e,t,i,n,r){let s="string"==typeof r.method?e[r.method]:r.method,o=r.property;s?s.call(e,e.__data[o],n[o]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function fi(e,t,i,n,r){let s,o,a=e[ai.NOTIFY],l=si++;for(let o in t)t[o]&&(a&&pi(e,a,l,o,i,n,r)||r&&mi(e,o,i))&&(s=!0);s&&(o=e.__dataHost)&&o._invalidateProperties&&o._invalidateProperties()}function mi(e,t,i){let n=_t(t);if(n!==t){return yi(e,Et(n)+"-changed",i[t],t),!0}return!1}function yi(e,t,i,n){let r={value:i,queueProperty:!0};n&&(r.path=n),pt(e).dispatchEvent(new CustomEvent(t,{detail:r}))}function gi(e,t,i,n,r,s){let o=(s?_t(t):t)!=t?t:null,a=o?wt(e,o):e.__data[t];o&&void 0===a&&(a=i[t]),yi(e,r.eventName,a,o)}function bi(e,t,i,n,r){let s,o=e.detail,a=o&&o.path;a?(n=yt(i,n,a),s=o&&o.value):s=e.currentTarget[i],s=r?!s:s,t[ai.READ_ONLY]&&t[ai.READ_ONLY][n]||!t._setPendingPropertyOrPath(n,s,!0,Boolean(a))||o&&o.queueProperty||t._invalidateProperties()}function vi(e,t,i,n,r){let s=e.__data[t];Oe&&(s=Oe(s,r.attrName,"attribute",e)),e._propertyToAttribute(t,r.attrName,s)}function wi(e,t,i,n){let r=e[ai.COMPUTE];if(r)if(Be){si++;const s=Si(e),o=[];for(let e in t)Pi(e,r,o,s,n);let a;for(;a=o.shift();)ki(e,"",t,i,a)&&Pi(a.methodInfo,r,o,s,n);Object.assign(i,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let s=t;for(;hi(e,r,s,i,n);)Object.assign(i,e.__dataOld),Object.assign(t,e.__dataPending),s=e.__dataPending,e.__dataPending=null}}const Ci=(e,t,i)=>{let n=0,r=t.length-1,s=-1;for(;n<=r;){const o=n+r>>1,a=i.get(t[o].methodInfo)-i.get(e.methodInfo);if(a<0)n=o+1;else{if(!(a>0)){s=o;break}r=o-1}}s<0&&(s=r+1),t.splice(s,0,e)},Pi=(e,t,i,n,r)=>{const s=t[r?_t(e):e];if(s)for(let t=0;t<s.length;t++){const o=s[t];o.info.lastRun===si||r&&!ui(e,o.trigger)||(o.info.lastRun=si,Ci(o.info,i,n))}};function Si(e){let t=e.constructor.__orderedComputedDeps;if(!t){t=new Map;const i=e[ai.COMPUTE];let n,{counts:r,ready:s,total:o}=xi(e);for(;n=s.shift();){t.set(n,t.size);const e=i[n];e&&e.forEach(e=>{const t=e.info.methodInfo;--o,0==--r[t]&&s.push(t)})}if(0!==o){const t=e;console.warn(`Computed graph for ${t.localName} incomplete; circular?`)}e.constructor.__orderedComputedDeps=t}return t}function xi(e){const t=e[li],i={},n=e[ai.COMPUTE],r=[];let s=0;for(let e in t){const n=t[e];s+=i[e]=n.args.filter(e=>!e.literal).length+(n.dynamicFn?1:0)}for(let e in n)t[e]||r.push(e);return{counts:i,ready:r,total:s}}function ki(e,t,i,n,r){let s=Bi(e,t,i,n,r);if(s===oi)return!1;let o=r.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[o]?e._setPendingProperty(o,s,!0):(e[o]=s,!1)}function Ei(e,t,i){let n=e.__dataLinkedPaths;if(n){let r;for(let s in n){let o=n[s];mt(s,t)?(r=yt(s,o,t),e._setPendingPropertyOrPath(r,i,!0,!0)):mt(o,t)&&(r=yt(o,s,t),e._setPendingPropertyOrPath(r,i,!0,!0))}}}function Ai(e,t,i,n,r,s,o){i.bindings=i.bindings||[];let a={kind:n,target:r,parts:s,literal:o,isCompound:1!==s.length};if(i.bindings.push(a),Mi(a)){let{event:e,negate:t}=a.parts[0];a.listenerEvent=e||Et(r)+"-changed",a.listenerNegate=t}let l=t.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let n=a.parts[i];n.compoundIndex=i,Ti(e,t,a,n,l)}}function Ti(e,t,i,n,r){if(!n.literal)if("attribute"===i.kind&&"-"===i.target[0])console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character');else{let s=n.dependencies,o={index:r,binding:i,part:n,evaluator:e};for(let i=0;i<s.length;i++){let n=s[i];"string"==typeof n&&(n=Yi(n),n.wildcard=!0),e._addTemplatePropertyEffect(t,n.rootProperty,{fn:Oi,info:o,trigger:n})}}}function Oi(e,t,i,n,r,s,o){let a=o[r.index],l=r.binding,c=r.part;if(s&&c.source&&t.length>c.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let n=i[t];t=yt(c.source,l.target,t),a._setPendingPropertyOrPath(t,n,!1,!0)&&e._enqueueClient(a)}else{let o=r.evaluator._evaluateBinding(e,c,t,i,n,s);o!==oi&&Ni(e,a,l,c,o)}}function Ni(e,t,i,n,r){if(r=Ii(t,r,i,n),Oe&&(r=Oe(r,i.target,i.kind,t)),"attribute"==i.kind)e._valueToNodeAttribute(t,r,i.target);else{let n=i.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[n]?t[ai.READ_ONLY]&&t[ai.READ_ONLY][n]||t._setPendingProperty(n,r)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,n,r)}}function Ii(e,t,i,n){if(i.isCompound){let r=e.__dataCompoundStorage[i.target];r[n.compoundIndex]=t,t=r.join("")}return"attribute"!==i.kind&&("textContent"!==i.target&&("value"!==i.target||"input"!==e.localName&&"textarea"!==e.localName)||(t=null==t?"":t)),t}function Mi(e){return Boolean(e.target)&&"attribute"!=e.kind&&"text"!=e.kind&&!e.isCompound&&"{"===e.parts[0].mode}function Di(e,t){let{nodeList:i,nodeInfoList:n}=t;if(n.length)for(let t=0;t<n.length;t++){let r=n[t],s=i[t],o=r.bindings;if(o)for(let t=0;t<o.length;t++){let i=o[t];Ri(s,i),Li(s,e,i)}s.__dataHost=e}}function Ri(e,t){if(t.isCompound){let i=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),n=t.parts,r=new Array(n.length);for(let e=0;e<n.length;e++)r[e]=n[e].literal;let s=t.target;i[s]=r,t.literal&&"property"==t.kind&&("className"===s&&(e=pt(e)),e[s]=t.literal)}}function Li(e,t,i){if(i.listenerEvent){let n=i.parts[0];e.addEventListener(i.listenerEvent,(function(e){bi(e,t,i.target,n.source,n.negate)}))}}function Fi(e,t,i,n,r,s){s=t.static||s&&("object"!=typeof s||s[t.methodName]);let o={methodName:t.methodName,args:t.args,methodInfo:r,dynamicFn:s};for(let r,s=0;s<t.args.length&&(r=t.args[s]);s++)r.literal||e._addPropertyEffect(r.rootProperty,i,{fn:n,info:o,trigger:r});return s&&e._addPropertyEffect(t.methodName,i,{fn:n,info:o}),o}function Bi(e,t,i,n,r){let s=e._methodHost||e,o=s[r.methodName];if(o){let n=e._marshalArgs(r.args,t,i);return n===oi?oi:o.apply(s,n)}r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const Hi=[],zi="(?:[a-zA-Z_$][\\w.:$\\-*]*)",ji="(?:("+zi+"|"+"(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)"+"|"+("(?:"+"(?:'(?:[^'\\\\]|\\\\.)*')"+"|"+'(?:"(?:[^"\\\\]|\\\\.)*")'+")")+")\\s*)",Ui=new RegExp("(\\[\\[|{{)\\s*"+"(?:(!)\\s*)?"+("("+zi+"\\s*"+("(?:\\(\\s*(?:"+("(?:"+ji+"(?:,\\s*"+ji+")*)")+"?)\\)\\s*)")+"?)")+"(?:]]|}})","g");function Ki(e){let t="";for(let i=0;i<e.length;i++){t+=e[i].literal||""}return t}function qi(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let e={methodName:t[1],static:!0,args:Hi};if(t[2].trim()){return $i(t[2].replace(/\\,/g,",").split(","),e)}return e}return null}function $i(e,t){return t.args=e.map((function(e){let i=Yi(e);return i.literal||(t.static=!1),i}),this),t}function Yi(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),i={name:t,value:"",literal:!1},n=t[0];switch("-"===n&&(n=t[1]),n>="0"&&n<="9"&&(n="#"),n){case"'":case'"':i.value=t.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(t),i.literal=!0}return i.literal||(i.rootProperty=_t(t),i.structured=ut(t),i.structured&&(i.wildcard=".*"==t.slice(-2),i.wildcard&&(i.name=t.slice(0,-2)))),i}function Vi(e,t,i){let n=wt(e,i);return void 0===n&&(n=t[i]),n}function Ji(e,t,i,n){const r={indexSplices:n};Fe&&!e._overrideLegacyUndefined&&(t.splices=r),e.notifyPath(i+".splices",r),e.notifyPath(i+".length",t.length),Fe&&!e._overrideLegacyUndefined&&(r.indexSplices=[])}function Xi(e,t,i,n,r,s){Ji(e,t,i,[{index:n,addedCount:r,removed:s,object:t,type:"splice"}])}function Wi(e){return e[0].toUpperCase()+e.substring(1)}const Gi=$e(e=>{const t=ri($t(e));class i extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return ai}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Zi.length){let e=Zi[Zi.length-1];e._enqueueClient(this),this.__dataHost=e}}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){let t=this[ai.READ_ONLY];for(let i in e)t&&t[i]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[i]=this.__dataPending[i]=e[i])}_addPropertyEffect(e,t,i){this._createPropertyAccessor(e,t==ai.READ_ONLY);let n=di(this,t,!0)[e];n||(n=this[t][e]=[]),n.push(i)}_removePropertyEffect(e,t,i){let n=di(this,t,!0)[e],r=n.indexOf(i);r>=0&&n.splice(r,1)}_hasPropertyEffect(e,t){let i=this[t];return Boolean(i&&i[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,ai.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,ai.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,ai.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,ai.COMPUTE)}_setPendingPropertyOrPath(e,t,i,n){if(n||_t(Array.isArray(e)?e[0]:e)!==e){if(!n){let i=wt(this,e);if(!(e=Ct(this,e,t))||!super._shouldPropertyChange(e,t,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,i))return Ei(this,e,t),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,i);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,i){i===e[t]&&"object"!=typeof i||("className"===t&&(e=pt(e)),e[t]=i)}_setPendingProperty(e,t,i){let n=this.__dataHasPaths&&ut(e),r=n?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,r[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),n?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(n||this[ai.NOTIFY]&&this[ai.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=i),!0)}_setProperty(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let e=this.__dataPendingClients;if(e){this.__dataPendingClients=null;for(let t=0;t<e.length;t++){let i=e[t];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(let i in e)!t&&this[ai.READ_ONLY]&&this[ai.READ_ONLY][i]||this._setPendingPropertyOrPath(i,e[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,t,i){let n,r=this.__dataHasPaths;this.__dataHasPaths=!1,wi(this,t,i,r),n=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(t,i,r),this._flushClients(),hi(this,this[ai.REFLECT],t,i,r),hi(this,this[ai.OBSERVE],t,i,r),n&&fi(this,n,t,i,r),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,i){this[ai.PROPAGATE]&&hi(this,this[ai.PROPAGATE],e,t,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,i)}_runEffectsForTemplate(e,t,i,n){const r=(t,n)=>{hi(this,e.propertyEffects,t,i,n,e.nodeList);for(let r=e.firstChild;r;r=r.nextSibling)this._runEffectsForTemplate(r,t,i,n)};e.runEffects?e.runEffects(r,t,n):r(t,n)}linkPaths(e,t){e=bt(e),t=bt(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=bt(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){let i={path:""};Ji(this,wt(this,e,i),i.path,t)}get(e,t){return wt(t||this,e)}set(e,t,i){i?Ct(i,e,t):this[ai.READ_ONLY]&&this[ai.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){let i={path:""},n=wt(this,e,i),r=n.length,s=n.push(...t);return t.length&&Xi(this,n,i.path,r,t.length,[]),s}pop(e){let t={path:""},i=wt(this,e,t),n=Boolean(i.length),r=i.pop();return n&&Xi(this,i,t.path,i.length,0,[r]),r}splice(e,t,i,...n){let r,s={path:""},o=wt(this,e,s);return t<0?t=o.length-Math.floor(-t):t&&(t=Math.floor(t)),r=2===arguments.length?o.splice(t):o.splice(t,i,...n),(n.length||r.length)&&Xi(this,o,s.path,t,n.length,r),r}shift(e){let t={path:""},i=wt(this,e,t),n=Boolean(i.length),r=i.shift();return n&&Xi(this,i,t.path,0,0,[r]),r}unshift(e,...t){let i={path:""},n=wt(this,e,i),r=n.unshift(...t);return t.length&&Xi(this,n,i.path,0,t.length,[]),r}notifyPath(e,t){let i;if(1==arguments.length){let n={path:""};t=wt(this,e,n),i=n.path}else i=Array.isArray(e)?bt(e):e;this._setPendingPropertyOrPath(i,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(e,t){this._addPropertyEffect(e,ai.READ_ONLY),t&&(this["_set"+Wi(e)]=function(t){this._setProperty(e,t)})}_createPropertyObserver(e,t,i){let n={property:e,method:t,dynamicFn:Boolean(i)};this._addPropertyEffect(e,ai.OBSERVE,{fn:_i,info:n,trigger:{name:e}}),i&&this._addPropertyEffect(t,ai.OBSERVE,{fn:_i,info:n,trigger:{name:t}})}_createMethodObserver(e,t){let i=qi(e);if(!i)throw new Error("Malformed observer expression '"+e+"'");Fi(this,i,ai.OBSERVE,Bi,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,ai.NOTIFY,{fn:gi,info:{eventName:Et(e)+"-changed",property:e}})}_createReflectedProperty(e){let t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,ai.REFLECT,{fn:vi,info:{attrName:t}})}_createComputedProperty(e,t,i){let n=qi(t);if(!n)throw new Error("Malformed computed expression '"+t+"'");const r=Fi(this,n,ai.COMPUTE,ki,e,i);di(this,li)[e]=r}_marshalArgs(e,t,i){const n=this.__data,r=[];for(let s=0,o=e.length;s<o;s++){let{name:o,structured:a,wildcard:l,value:c,literal:d}=e[s];if(!d)if(l){const e=mt(o,t),r=Vi(n,i,e?t:o);c={path:e?t:o,value:r,base:e?wt(n,o):r}}else c=a?Vi(n,i,o):n[o];if(Fe&&!this._overrideLegacyUndefined&&void 0===c&&e.length>1)return oi;r[s]=c}return r}static addPropertyEffect(e,t,i){this.prototype._addPropertyEffect(e,t,i)}static createPropertyObserver(e,t,i){this.prototype._createPropertyObserver(e,t,i)}static createMethodObserver(e,t){this.prototype._createMethodObserver(e,t)}static createNotifyingProperty(e){this.prototype._createNotifyingProperty(e)}static createReadOnlyProperty(e,t){this.prototype._createReadOnlyProperty(e,t)}static createReflectedProperty(e){this.prototype._createReflectedProperty(e)}static createComputedProperty(e,t,i){this.prototype._createComputedProperty(e,t,i)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let i=this.constructor._parseTemplate(e),n=this.__preBoundTemplateInfo==i;if(!n)for(let e in i.propertyEffects)this._createPropertyAccessor(e);if(t)if(i=Object.create(i),i.wasPreBound=n,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,n=t.lastChild;i.parent=t,t.lastChild=i,i.previousSibling=n,n?n.nextSibling=i:t.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(e,t,i){(e.hostProps=e.hostProps||{})[t]=!0;let n=e.propertyEffects=e.propertyEffects||{};(n[t]=n[t]||[]).push(i)}_stampTemplate(e,t){t=t||this._bindTemplate(e,!0),Zi.push(this);let i=super._stampTemplate(e,t);if(Zi.pop(),t.nodeList=i.nodeList,!t.wasPreBound){let e=t.childNodes=[];for(let t=i.firstChild;t;t=t.nextSibling)e.push(t)}return i.templateInfo=t,Di(this,t),this.__dataClientsReady&&(this._runEffectsForTemplate(t,this.__data,null,!1),this._flushClients()),i}_removeBoundDom(e){const t=e.templateInfo,{previousSibling:i,nextSibling:n,parent:r}=t;i?i.nextSibling=n:r&&(r.firstChild=n),n?n.previousSibling=i:r&&(r.lastChild=i),t.nextSibling=t.previousSibling=null;let s=t.childNodes;for(let e=0;e<s.length;e++){let t=s[e];pt(pt(t).parentNode).removeChild(t)}}static _parseTemplateNode(e,i,n){let r=t._parseTemplateNode.call(this,e,i,n);if(e.nodeType===Node.TEXT_NODE){let t=this._parseBindings(e.textContent,i);t&&(e.textContent=Ki(t)||" ",Ai(this,i,n,"text","textContent",t),r=!0)}return r}static _parseTemplateNodeAttribute(e,i,n,r,s){let o=this._parseBindings(s,i);if(o){let t=r,s="property";ci.test(r)?s="attribute":"$"==r[r.length-1]&&(r=r.slice(0,-1),s="attribute");let a=Ki(o);return a&&"attribute"==s&&("class"==r&&e.hasAttribute("class")&&(a+=" "+e.getAttribute(r)),e.setAttribute(r,a)),"attribute"==s&&"disable-upgrade$"==t&&e.setAttribute(r,""),"input"===e.localName&&"value"===t&&e.setAttribute(t,""),e.removeAttribute(t),"property"===s&&(r=kt(r)),Ai(this,i,n,s,r,o,a),!0}return t._parseTemplateNodeAttribute.call(this,e,i,n,r,s)}static _parseTemplateNestedTemplate(e,i,n){let r=t._parseTemplateNestedTemplate.call(this,e,i,n);const s=e.parentNode,o=n.templateInfo,a="dom-if"===s.localName,l="dom-repeat"===s.localName;He&&(a||l)&&(s.removeChild(e),(n=n.parentInfo).templateInfo=o,n.noted=!0,r=!1);let c=o.hostProps;if(ze&&a)c&&(i.hostProps=Object.assign(i.hostProps||{},c),He||(n.parentInfo.noted=!0));else{let e="{";for(let t in c){Ai(this,i,n,"property","_host_"+t,[{mode:e,source:t,dependencies:[t],hostProp:!0}])}}return r}static _parseBindings(e,t){let i,n=[],r=0;for(;null!==(i=Ui.exec(e));){i.index>r&&n.push({literal:e.slice(r,i.index)});let s=i[1][0],o=Boolean(i[2]),a=i[3].trim(),l=!1,c="",d=-1;"{"==s&&(d=a.indexOf("::"))>0&&(c=a.substring(d+2),a=a.substring(0,d),l=!0);let h=qi(a),p=[];if(h){let{args:e,methodName:i}=h;for(let t=0;t<e.length;t++){let i=e[t];i.literal||p.push(i)}let n=t.dynamicFns;(n&&n[i]||h.static)&&(p.push(i),h.dynamicFn=!0)}else p.push(a);n.push({source:a,mode:s,negate:o,customEvent:l,signature:h,dependencies:p,event:c}),r=Ui.lastIndex}if(r&&r<e.length){let t=e.substring(r);t&&n.push({literal:t})}return n.length?n:null}static _evaluateBinding(e,t,i,n,r,s){let o;return o=t.signature?Bi(e,i,n,r,t.signature):i!=t.source?wt(e,t.source):s&&ut(i)?wt(e,i):e.__data[i],t.negate&&(o=!o),o}}return i}),Zi=[];
|
|
198
|
-
/**
|
|
199
|
-
@license
|
|
200
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
201
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
202
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
203
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
204
|
-
Code distributed by Google as part of the polymer project is also
|
|
205
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
206
|
-
*/
|
|
207
|
-
function Qi(e){}
|
|
208
|
-
/**
|
|
209
|
-
@license
|
|
210
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
211
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
212
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
213
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
214
|
-
Code distributed by Google as part of the polymer project is also
|
|
215
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
216
|
-
*/function en(e){const t={};for(let i in e){const n=e[i];t[i]="function"==typeof n?{type:n}:n}return t}const tn=$e(e=>{const t=zt(e);function i(e){const t=Object.getPrototypeOf(e);return t.prototype instanceof r?t:null}function n(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",e))){let t=null;if(e.hasOwnProperty(JSCompiler_renameProperty("properties",e))){const i=e.properties;i&&(t=en(i))}e.__ownProperties=t}return e.__ownProperties}class r extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){Qi(this.prototype);const e=this._properties;this.__observedAttributes=e?Object.keys(e).map(e=>this.prototype._addPropertyToAttributeMap(e)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const e=i(this);e&&e.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const e=n(this);e&&this.createProperties(e)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const e=i(this);this.__properties=Object.assign({},e&&e._properties,n(this))}return this.__properties}static typeForProperty(e){const t=this._properties[e];return t&&t.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return r}),nn="3.5.1",rn=window.ShadyCSS&&window.ShadyCSS.cssBuild,sn=$e(e=>{const t=tn(Gi(e));function i(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;let t=e._properties;for(let i in t){let n=t[i];"value"in n&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[i]=n)}}return e.__propertyDefaults}function n(e){return e.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",e))||(e.__ownObservers=e.hasOwnProperty(JSCompiler_renameProperty("observers",e))?e.observers:null),e.__ownObservers}function r(e,t,i,n){i.computed&&(i.readOnly=!0),i.computed&&(e._hasReadOnlyEffect(t)?console.warn(`Cannot redefine computed property '${t}'.`):e._createComputedProperty(t,i.computed,n)),i.readOnly&&!e._hasReadOnlyEffect(t)?e._createReadOnlyProperty(t,!i.computed):!1===i.readOnly&&e._hasReadOnlyEffect(t)&&console.warn(`Cannot make readOnly property '${t}' non-readOnly.`),i.reflectToAttribute&&!e._hasReflectEffect(t)?e._createReflectedProperty(t):!1===i.reflectToAttribute&&e._hasReflectEffect(t)&&console.warn(`Cannot make reflected property '${t}' non-reflected.`),i.notify&&!e._hasNotifyEffect(t)?e._createNotifyingProperty(t):!1===i.notify&&e._hasNotifyEffect(t)&&console.warn(`Cannot make notify property '${t}' non-notify.`),i.observer&&e._createPropertyObserver(t,i.observer,n[i.observer]),e._addPropertyToAttributeMap(t)}function s(e,t,i,n){if(!rn){const r=t.content.querySelectorAll("style"),s=st(t),o=ot(i),a=t.content.firstElementChild;for(let i=0;i<o.length;i++){let r=o[i];r.textContent=e._processStyleText(r.textContent,n),t.content.insertBefore(r,a)}let l=0;for(let t=0;t<s.length;t++){let i=s[t],o=r[l];o!==i?(i=i.cloneNode(!0),o.parentNode.insertBefore(i,o)):l++,i.textContent=e._processStyleText(i.textContent,n)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,i),Ke&&rn&&Ae){const i=t.content.querySelectorAll("style");if(i){let t="";Array.from(i).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),e._styleSheet=new CSSStyleSheet,e._styleSheet.replaceSync(t)}}}function o(e){let t=null;if(e&&(!Ie||Me)&&(t=Ge.import(e,"template"),Ie&&!t))throw new Error("strictTemplatePolicy: expecting dom-module or null template for "+e);return t}class a extends t{static get polymerElementVersion(){return nn}static _finalizeClass(){t._finalizeClass.call(this);const e=n(this);e&&this.createObservers(e,this._properties),this._prepareTemplate()}static _prepareTemplate(){let e=this.template;e&&("string"==typeof e?(console.error("template getter must return HTMLTemplateElement"),e=null):De||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(let t in e)r(this.prototype,t,e[t],e)}static createObservers(e,t){const i=this.prototype;for(let n=0;n<e.length;n++)i._createMethodObserver(e[n],t)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let e=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof e&&(e=e()),this._template=void 0!==e?e:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&o(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(e){this._template=e}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const e=this.importMeta;if(e)this._importPath=ke(e.url);else{const e=Ge.import(this.is);this._importPath=e&&e.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Te,this.importPath=this.constructor.importPath;let e=i(this.constructor);if(e)for(let t in e){let i=e[t];if(this._canApplyPropertyDefault(t)){let e="function"==typeof i.value?i.value.call(this):i.value;this._hasAccessor(t)?this._setPendingProperty(t,e,!0):this[t]=e}}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return xe(e,t)}static _finalizeTemplate(e){const t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;const i=this.importPath;s(this,t,e,i?Se(i):""),this.prototype._bindTemplate(t)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(e){const t=pt(this);if(t.attachShadow)return e?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Le&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)}resolveUrl(e,t){return!t&&this.importPath&&(t=Se(this.importPath)),Se(e,t)}static _parseTemplateContent(e,i,n){return i.dynamicFns=i.dynamicFns||this._properties,t._parseTemplateContent.call(this,e,i,n)}static _addTemplatePropertyEffect(e,i,n){return!Re||i in this._properties||n.info.part.signature&&n.info.part.signature.static||n.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${i}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,e,i,n)}}return a});
|
|
217
|
-
/**
|
|
218
|
-
* @fileoverview
|
|
219
|
-
* @suppress {checkPrototypalTypes}
|
|
220
|
-
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
221
|
-
* This code may only be used under the BSD style license found at
|
|
222
|
-
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
223
|
-
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
224
|
-
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
225
|
-
* Google as part of the polymer project is also subject to an additional IP
|
|
226
|
-
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
227
|
-
*/
|
|
228
|
-
/**
|
|
229
|
-
@license
|
|
230
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
231
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
232
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
233
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
234
|
-
Code distributed by Google as part of the polymer project is also
|
|
235
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
236
|
-
*/
|
|
237
|
-
class on{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,an.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),an.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(e,t,i){return e instanceof on?e._cancelAsync():e=new on,e.setConfig(t,i),e}}let an=new Set;const ln=function(e){an.add(e)},cn=function(){const e=Boolean(an.size);return an.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e};
|
|
238
|
-
/**
|
|
239
|
-
@license
|
|
240
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
241
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
242
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
243
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
244
|
-
Code distributed by Google as part of the polymer project is also
|
|
245
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
246
|
-
*/
|
|
247
|
-
let dn="string"==typeof document.head.style.touchAction,hn="__polymerGestures",pn="__polymerGesturesHandled",un="__polymerGesturesTouchAction",_n=25,fn=5,mn=2,yn=2500,gn=["mousedown","mousemove","mouseup","click"],bn=[0,1,4,2],vn=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function wn(e){return gn.indexOf(e)>-1}let Cn=!1;function Pn(e){if(!wn(e)&&"touchend"!==e)return dn&&Cn&&Ne?{passive:!0}:void 0}!function(){try{let e=Object.defineProperty({},"passive",{get(){Cn=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}();let Sn=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const xn=[],kn={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},En={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function An(e){return kn[e.localName]||!1}function Tn(e){let t=Array.prototype.slice.call(e.labels||[]);if(!t.length){t=[];try{let i=e.getRootNode();if(e.id){let n=i.querySelectorAll(`label[for = '${e.id}']`);for(let e=0;e<n.length;e++)t.push(n[e])}}catch(e){}}return t}let On=function(e){let t=e.sourceCapabilities;if((!t||t.firesTouchEvents)&&(e[pn]={skip:!0},"click"===e.type)){let t=!1,i=Hn(e);for(let e=0;e<i.length;e++){if(i[e].nodeType===Node.ELEMENT_NODE)if("label"===i[e].localName)xn.push(i[e]);else if(An(i[e])){let n=Tn(i[e]);for(let e=0;e<n.length;e++)t=t||xn.indexOf(n[e])>-1}if(i[e]===Rn.mouse.target)return}if(t)return;e.preventDefault(),e.stopPropagation()}};function Nn(e){let t=Sn?["click"]:gn;for(let i,n=0;n<t.length;n++)i=t[n],e?(xn.length=0,document.addEventListener(i,On,!0)):document.removeEventListener(i,On,!0)}function In(e){Rn.mouse.mouseIgnoreJob||Nn(!0);let t=function(){Nn(),Rn.mouse.target=null,Rn.mouse.mouseIgnoreJob=null};Rn.mouse.target=Hn(e)[0],Rn.mouse.mouseIgnoreJob=on.debounce(Rn.mouse.mouseIgnoreJob,Rt.after(yn),t)}function Mn(e){let t=e.type;if(!wn(t))return!1;if("mousemove"===t){let t=void 0===e.buttons?1:e.buttons;return e instanceof window.MouseEvent&&!vn&&(t=bn[e.which]||0),Boolean(1&t)}return 0===(void 0===e.button?0:e.button)}function Dn(e){if("click"===e.type){if(0===e.detail)return!0;let t=Kn(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;let i=t.getBoundingClientRect(),n=e.pageX,r=e.pageY;return!(n>=i.left&&n<=i.right&&r>=i.top&&r<=i.bottom)}return!1}let Rn={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Ln(e){let t="auto",i=Hn(e);for(let e,n=0;n<i.length;n++)if(e=i[n],e[un]){t=e[un];break}return t}function Fn(e,t,i){e.movefn=t,e.upfn=i,document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}function Bn(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}document.addEventListener("touchend",In,!!Cn&&{passive:!0});const Hn=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],zn={},jn=[];function Un(e,t){let i=document.elementFromPoint(e,t),n=i;for(;n&&n.shadowRoot&&!window.ShadyDOM;){let r=n;if(n=n.shadowRoot.elementFromPoint(e,t),r===n)break;n&&(i=n)}return i}function Kn(e){const t=Hn(e);return t.length>0?t[0]:e.target}function qn(e){let t,i=e.type,n=e.currentTarget[hn];if(!n)return;let r=n[i];if(r){if(!e[pn]&&(e[pn]={},"touch"===i.slice(0,5))){let t=(e=e).changedTouches[0];if("touchstart"===i&&1===e.touches.length&&(Rn.touch.id=t.identifier),Rn.touch.id!==t.identifier)return;dn||"touchstart"!==i&&"touchmove"!==i||$n(e)}if(t=e[pn],!t.skip){for(let i,n=0;n<jn.length;n++)i=jn[n],r[i.name]&&!t[i.name]&&i.flow&&i.flow.start.indexOf(e.type)>-1&&i.reset&&i.reset();for(let n,s=0;s<jn.length;s++)n=jn[s],r[n.name]&&!t[n.name]&&(t[n.name]=!0,n[i](e))}}}function $n(e){let t=e.changedTouches[0],i=e.type;if("touchstart"===i)Rn.touch.x=t.clientX,Rn.touch.y=t.clientY,Rn.touch.scrollDecided=!1;else if("touchmove"===i){if(Rn.touch.scrollDecided)return;Rn.touch.scrollDecided=!0;let i=Ln(e),n=!1,r=Math.abs(Rn.touch.x-t.clientX),s=Math.abs(Rn.touch.y-t.clientY);e.cancelable&&("none"===i?n=!0:"pan-x"===i?n=s>r:"pan-y"===i&&(n=r>s)),n?e.preventDefault():er("track")}}function Yn(e,t,i){return!!zn[t]&&(Jn(e,t,i),!0)}function Vn(e,t,i){return!!zn[t]&&(Xn(e,t,i),!0)}function Jn(e,t,i){let n=zn[t],r=n.deps,s=n.name,o=e[hn];o||(e[hn]=o={});for(let t,i,n=0;n<r.length;n++)t=r[n],Sn&&wn(t)&&"click"!==t||(i=o[t],i||(o[t]=i={_count:0}),0===i._count&&e.addEventListener(t,qn,Pn(t)),i[s]=(i[s]||0)+1,i._count=(i._count||0)+1);e.addEventListener(t,i),n.touchAction&&Zn(e,n.touchAction)}function Xn(e,t,i){let n=zn[t],r=n.deps,s=n.name,o=e[hn];if(o)for(let t,i,n=0;n<r.length;n++)t=r[n],i=o[t],i&&i[s]&&(i[s]=(i[s]||1)-1,i._count=(i._count||1)-1,0===i._count&&e.removeEventListener(t,qn,Pn(t)));e.removeEventListener(t,i)}function Wn(e){jn.push(e);for(let t=0;t<e.emits.length;t++)zn[e.emits[t]]=e}function Gn(e){for(let t,i=0;i<jn.length;i++){t=jn[i];for(let i,n=0;n<t.emits.length;n++)if(i=t.emits[n],i===e)return t}return null}function Zn(e,t){dn&&e instanceof HTMLElement&&Bt.run(()=>{e.style.touchAction=t}),e[un]=t}function Qn(e,t,i){let n=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(n.detail=i,pt(e).dispatchEvent(n),n.defaultPrevented){let e=i.preventer||i.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function er(e){let t=Gn(e);t.info&&(t.info.prevent=!0)}function tr(){Rn.mouse.mouseIgnoreJob&&Rn.mouse.mouseIgnoreJob.flush()}function ir(e,t,i,n){t&&Qn(t,e,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:n,prevent:function(e){return er(e)}})}function nr(e,t,i){if(e.prevent)return!1;if(e.started)return!0;let n=Math.abs(e.x-t),r=Math.abs(e.y-i);return n>=fn||r>=fn}function rr(e,t,i){if(!t)return;let n,r=e.moves[e.moves.length-2],s=e.moves[e.moves.length-1],o=s.x-e.x,a=s.y-e.y,l=0;r&&(n=s.x-r.x,l=s.y-r.y),Qn(t,"track",{state:e.state,x:i.clientX,y:i.clientY,dx:o,dy:a,ddx:n,ddy:l,sourceEvent:i,hover:function(){return Un(i.clientX,i.clientY)}})}function sr(e,t,i){let n=Math.abs(t.clientX-e.x),r=Math.abs(t.clientY-e.y),s=Kn(i||t);!s||En[s.localName]&&s.hasAttribute("disabled")||(isNaN(n)||isNaN(r)||n<=_n&&r<=_n||Dn(t))&&(e.prevent||Qn(s,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i}))}Wn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Bn(this.info)},mousedown:function(e){if(!Mn(e))return;let t=Kn(e),i=this,n=function(e){Mn(e)||(ir("up",t,e),Bn(i.info))},r=function(e){Mn(e)&&ir("up",t,e),Bn(i.info)};Fn(this.info,n,r),ir("down",t,e)},touchstart:function(e){ir("down",Kn(e),e.changedTouches[0],e)},touchend:function(e){ir("up",Kn(e),e.changedTouches[0],e)}}),Wn({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(e){this.moves.length>mn&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Bn(this.info)},mousedown:function(e){if(!Mn(e))return;let t=Kn(e),i=this,n=function(e){let n=e.clientX,r=e.clientY;nr(i.info,n,r)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&er("tap"),i.info.addMove({x:n,y:r}),Mn(e)||(i.info.state="end",Bn(i.info)),t&&rr(i.info,t,e),i.info.started=!0)},r=function(e){i.info.started&&n(e),Bn(i.info)};Fn(this.info,n,r),this.info.x=e.clientX,this.info.y=e.clientY},touchstart:function(e){let t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove:function(e){let t=Kn(e),i=e.changedTouches[0],n=i.clientX,r=i.clientY;nr(this.info,n,r)&&("start"===this.info.state&&er("tap"),this.info.addMove({x:n,y:r}),rr(this.info,t,i),this.info.state="track",this.info.started=!0)},touchend:function(e){let t=Kn(e),i=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),rr(this.info,t,i))}}),Wn({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(e){Mn(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){Mn(e)&&sr(this.info,e)},touchstart:function(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend:function(e){sr(this.info,e.changedTouches[0],e)}});const or=Kn,ar=$e(e=>{class t extends e{_addEventListenerToNode(e,t,i){Yn(e,t,i)||super._addEventListenerToNode(e,t,i)}_removeEventListenerFromNode(e,t,i){Vn(e,t,i)||super._removeEventListenerFromNode(e,t,i)}}return t}),lr=/:host\(:dir\((ltr|rtl)\)\)/g,cr=':host([dir="$1"])',dr=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,hr=':host([dir="$2"]) $1',pr=/:dir\((?:ltr|rtl)\)/,ur=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),_r=[];
|
|
248
|
-
/**
|
|
249
|
-
@license
|
|
250
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
251
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
252
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
253
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
254
|
-
Code distributed by Google as part of the polymer project is also
|
|
255
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
256
|
-
*/let fr=null,mr="";function yr(){mr=document.documentElement.getAttribute("dir")}function gr(e){if(!e.__autoDirOptOut){e.setAttribute("dir",mr)}}function br(){yr(),mr=document.documentElement.getAttribute("dir");for(let e=0;e<_r.length;e++)gr(_r[e])}function vr(){fr&&fr.takeRecords().length&&br()}const wr=$e(e=>{ur||fr||(yr(),fr=new MutationObserver(br),fr.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const t=$t(e);class i extends t{static _processStyleText(e,i){return e=t._processStyleText.call(this,e,i),!ur&&pr.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0),e}static _replaceDirInCssText(e){let t=e;return t=t.replace(lr,cr),t=t.replace(dr,hr),t}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){t.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&(vr(),_r.push(this),gr(this))}disconnectedCallback(){if(t.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir){const e=_r.indexOf(this);e>-1&&_r.splice(e,1)}}}return i.__activateDir=!1,i});
|
|
257
|
-
/**
|
|
258
|
-
@license
|
|
259
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
260
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
261
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
262
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
263
|
-
Code distributed by Google as part of the polymer project is also
|
|
264
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
265
|
-
*/let Cr=!1,Pr=[],Sr=[];function xr(){Cr=!0,requestAnimationFrame((function(){Cr=!1,kr(Pr),setTimeout((function(){Er(Sr)}))}))}function kr(e){for(;e.length;)Ar(e.shift())}function Er(e){for(let t=0,i=e.length;t<i;t++)Ar(e.shift())}function Ar(e){const t=e[0],i=e[1],n=e[2];try{i.apply(t,n)}catch(e){setTimeout(()=>{throw e})}}function Tr(e,t,i){Cr||xr(),Sr.push([e,t,i])}
|
|
266
|
-
/**
|
|
267
|
-
@license
|
|
268
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
269
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
270
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
271
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
272
|
-
Code distributed by Google as part of the polymer project is also
|
|
273
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
274
|
-
*/function Or(){document.body.removeAttribute("unresolved")}
|
|
275
|
-
/**
|
|
276
|
-
@license
|
|
277
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
278
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
279
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
280
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
281
|
-
Code distributed by Google as part of the polymer project is also
|
|
282
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
283
|
-
*/
|
|
284
|
-
function Nr(e,t,i){return{index:e,removed:t,addedCount:i}}"interactive"===document.readyState||"complete"===document.readyState?Or():window.addEventListener("DOMContentLoaded",Or);const Ir=0,Mr=1,Dr=2,Rr=3;function Lr(e,t,i,n,r,s){let o=s-r+1,a=i-t+1,l=new Array(o);for(let e=0;e<o;e++)l[e]=new Array(a),l[e][0]=e;for(let e=0;e<a;e++)l[0][e]=e;for(let i=1;i<o;i++)for(let s=1;s<a;s++)if(Ur(e[t+s-1],n[r+i-1]))l[i][s]=l[i-1][s-1];else{let e=l[i-1][s]+1,t=l[i][s-1]+1;l[i][s]=e<t?e:t}return l}function Fr(e){let t=e.length-1,i=e[0].length-1,n=e[t][i],r=[];for(;t>0||i>0;){if(0==t){r.push(Dr),i--;continue}if(0==i){r.push(Rr),t--;continue}let s,o=e[t-1][i-1],a=e[t-1][i],l=e[t][i-1];s=a<l?a<o?a:o:l<o?l:o,s==o?(o==n?r.push(Ir):(r.push(Mr),n=o),t--,i--):s==a?(r.push(Rr),t--,n=a):(r.push(Dr),i--,n=l)}return r.reverse(),r}function Br(e,t,i,n,r,s){let o,a=0,l=0,c=Math.min(i-t,s-r);if(0==t&&0==r&&(a=Hr(e,n,c)),i==e.length&&s==n.length&&(l=zr(e,n,c-a)),r+=a,s-=l,(i-=l)-(t+=a)==0&&s-r==0)return[];if(t==i){for(o=Nr(t,[],0);r<s;)o.removed.push(n[r++]);return[o]}if(r==s)return[Nr(t,[],i-t)];let d=Fr(Lr(e,t,i,n,r,s));o=void 0;let h=[],p=t,u=r;for(let e=0;e<d.length;e++)switch(d[e]){case Ir:o&&(h.push(o),o=void 0),p++,u++;break;case Mr:o||(o=Nr(p,[],0)),o.addedCount++,p++,o.removed.push(n[u]),u++;break;case Dr:o||(o=Nr(p,[],0)),o.addedCount++,p++;break;case Rr:o||(o=Nr(p,[],0)),o.removed.push(n[u]),u++}return o&&h.push(o),h}function Hr(e,t,i){for(let n=0;n<i;n++)if(!Ur(e[n],t[n]))return n;return i}function zr(e,t,i){let n=e.length,r=t.length,s=0;for(;s<i&&Ur(e[--n],t[--r]);)s++;return s}function jr(e,t){return Br(e,0,e.length,t,0,t.length)}function Ur(e,t){return e===t}
|
|
285
|
-
/**
|
|
286
|
-
@license
|
|
287
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
288
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
289
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
290
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
291
|
-
Code distributed by Google as part of the polymer project is also
|
|
292
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
293
|
-
*/function Kr(e){return"slot"===e.localName}let qr=class{static getFlattenedNodes(e){const t=pt(e);return Kr(e)?(e=e,t.assignedNodes({flatten:!0})):Array.from(t.childNodes).map(e=>Kr(e)?pt(e=e).assignedNodes({flatten:!0}):[e]).reduce((e,t)=>e.concat(t),[])}constructor(e,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){Kr(this._target)?this._listenSlots([this._target]):pt(this._target).children&&(this._listenSlots(pt(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,e=>{this._processMutations(e)}):(this._nativeChildrenObserver=new MutationObserver(e=>{this._processMutations(e)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){Kr(this._target)?this._unlistenSlots([this._target]):pt(this._target).children&&(this._unlistenSlots(pt(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,Bt.run(()=>this.flush()))}_processMutations(e){this._processSlotMutations(e),this.flush()}_processSlotMutations(e){if(e)for(let t=0;t<e.length;t++){let i=e[t];i.addedNodes&&this._listenSlots(i.addedNodes),i.removedNodes&&this._unlistenSlots(i.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;let e={target:this._target,addedNodes:[],removedNodes:[]},t=this.constructor.getFlattenedNodes(this._target),i=jr(t,this._effectiveNodes);for(let t,n=0;n<i.length&&(t=i[n]);n++)for(let i,n=0;n<t.removed.length&&(i=t.removed[n]);n++)e.removedNodes.push(i);for(let n,r=0;r<i.length&&(n=i[r]);r++)for(let i=n.index;i<n.index+n.addedCount;i++)e.addedNodes.push(t[i]);this._effectiveNodes=t;let n=!1;return(e.addedNodes.length||e.removedNodes.length)&&(n=!0,this.callback.call(this._target,e)),n}_listenSlots(e){for(let t=0;t<e.length;t++){let i=e[t];Kr(i)&&i.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(e){for(let t=0;t<e.length;t++){let i=e[t];Kr(i)&&i.removeEventListener("slotchange",this._boundSchedule)}}};
|
|
294
|
-
/**
|
|
295
|
-
@license
|
|
296
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
297
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
298
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
299
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
300
|
-
Code distributed by Google as part of the polymer project is also
|
|
301
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
302
|
-
*/const $r=function(){let e,t;do{e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=cn()}while(e||t)},Yr=Element.prototype,Vr=Yr.matches||Yr.matchesSelector||Yr.mozMatchesSelector||Yr.msMatchesSelector||Yr.oMatchesSelector||Yr.webkitMatchesSelector,Jr=function(e,t){return Vr.call(e,t)};
|
|
303
|
-
/**
|
|
304
|
-
@license
|
|
305
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
306
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
307
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
308
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
309
|
-
Code distributed by Google as part of the polymer project is also
|
|
310
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
311
|
-
*/class Xr{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new qr(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(pt(this.node).contains(e))return!0;let t=e,i=e.ownerDocument;for(;t&&t!==i&&t!==this.node;)t=pt(t).parentNode||pt(t).host;return t===this.node}getOwnerRoot(){return pt(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?pt(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=pt(this.node).assignedSlot;for(;t;)e.push(t),t=pt(t).assignedSlot;return e}importNode(e,t){let i=this.node instanceof Document?this.node:this.node.ownerDocument;return pt(i).importNode(e,t)}getEffectiveChildNodes(){return qr.getFlattenedNodes(this.node)}queryDistributedElements(e){let t=this.getEffectiveChildNodes(),i=[];for(let n,r=0,s=t.length;r<s&&(n=t[r]);r++)n.nodeType===Node.ELEMENT_NODE&&Jr(n,e)&&i.push(n);return i}get activeElement(){let e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function Wr(e,t){for(let i=0;i<t.length;i++){let n=t[i];e[n]=function(){return this.node[n].apply(this.node,arguments)}}}function Gr(e,t){for(let i=0;i<t.length;i++){let n=t[i];Object.defineProperty(e,n,{get:function(){return this.node[n]},configurable:!0})}}function Zr(e,t){for(let i=0;i<t.length;i++){let n=t[i];Object.defineProperty(e,n,{get:function(){return this.node[n]},set:function(e){this.node[n]=e},configurable:!0})}}class Qr{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}Xr.prototype.cloneNode,Xr.prototype.appendChild,Xr.prototype.insertBefore,Xr.prototype.removeChild,Xr.prototype.replaceChild,Xr.prototype.setAttribute,Xr.prototype.removeAttribute,Xr.prototype.querySelector,Xr.prototype.querySelectorAll,Xr.prototype.parentNode,Xr.prototype.firstChild,Xr.prototype.lastChild,Xr.prototype.nextSibling,Xr.prototype.previousSibling,Xr.prototype.firstElementChild,Xr.prototype.lastElementChild,Xr.prototype.nextElementSibling,Xr.prototype.previousElementSibling,Xr.prototype.childNodes,Xr.prototype.children,Xr.prototype.classList,Xr.prototype.textContent,Xr.prototype.innerHTML;let es=Xr;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class e extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(Xr.prototype).forEach(t=>{"activeElement"!=t&&(e.prototype[t]=Xr.prototype[t])}),Gr(e.prototype,["classList"]),es=e,Object.defineProperties(Qr.prototype,{localTarget:{get(){const e=this.event.currentTarget,t=e&&ts(e).getOwnerRoot(),i=this.path;for(let e=0;e<i.length;e++){const n=i[e];if(ts(n).getOwnerRoot()===t)return n}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else Wr(Xr.prototype,["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll","attachShadow"]),Gr(Xr.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList","shadowRoot"]),Zr(Xr.prototype,["textContent","innerHTML","className"]);const ts=function(e){if((e=e||document)instanceof es)return e;if(e instanceof Qr)return e;let t=e.__domApi;return t||(t=e instanceof Event?new Qr(e):new es(e),e.__domApi=t),t},is=window.ShadyDOM,ns=window.ShadyCSS;
|
|
312
|
-
/**
|
|
313
|
-
@license
|
|
314
|
-
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
|
|
315
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
316
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
317
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
318
|
-
Code distributed by Google as part of the polymer project is also
|
|
319
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
320
|
-
*/function rs(e,t){return pt(e).getRootNode()===t}function ss(e,t=!1){if(!is||!ns)return null;if(!is.handlesDynamicScoping)return null;const i=ns.ScopingShim;if(!i)return null;const n=i.scopeForNode(e),r=pt(e).getRootNode(),s=e=>{if(!rs(e,r))return;const t=Array.from(is.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(let e=0;e<t.length;e++){const s=t[e];if(!rs(s,r))continue;const o=i.currentScopeForNode(s);o!==n&&(""!==o&&i.unscopeNode(s,o),i.scopeNode(s,n))}};if(s(e),t){const t=new MutationObserver(e=>{for(let t=0;t<e.length;t++){const i=e[t];for(let e=0;e<i.addedNodes.length;e++){const t=i.addedNodes[e];t.nodeType===Node.ELEMENT_NODE&&s(t)}}});return t.observe(e,{childList:!0,subtree:!0}),t}return null}
|
|
321
|
-
/**
|
|
322
|
-
* @fileoverview
|
|
323
|
-
* @suppress {checkPrototypalTypes}
|
|
324
|
-
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
325
|
-
* This code may only be used under the BSD style license found at
|
|
326
|
-
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
327
|
-
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
328
|
-
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
329
|
-
* Google as part of the polymer project is also subject to an additional IP
|
|
330
|
-
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
331
|
-
*/const os="disable-upgrade",as=e=>{for(;e;){const t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]};$e(e=>{const t=sn(e);let i=as(t);class n extends t{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return i.call(this).concat(os)}_initializeProperties(){this.hasAttribute(os)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}attributeChangedCallback(e,t,i,n){e==os?this.__isUpgradeDisabled&&null==i&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,pt(this).isConnected&&super.connectedCallback()):super.attributeChangedCallback(e,t,i,n)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}return n});
|
|
332
|
-
/**
|
|
333
|
-
@license
|
|
334
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
335
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
336
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
337
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
338
|
-
Code distributed by Google as part of the polymer project is also
|
|
339
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
340
|
-
*/
|
|
341
|
-
const ls="disable-upgrade";let cs=window.ShadyCSS;const ds=$e(e=>{const t=ar(sn(e)),i=rn?t:wr(t),n=as(i),r={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class s extends i{constructor(){super(),this.isAttached,this.__boundListeners,this._debouncers,this.__isUpgradeDisabled,this.__needsAttributesAtConnected,this._legacyForceObservedAttributes}static get importMeta(){return this.prototype.importMeta}created(){}__attributeReaction(e,t,i){(this.__dataAttributes&&this.__dataAttributes[e]||e===ls)&&this.attributeChangedCallback(e,t,i,null)}setAttribute(e,t){if(Ue&&!this._legacyForceObservedAttributes){const i=this.getAttribute(e);super.setAttribute(e,t),this.__attributeReaction(e,i,String(t))}else super.setAttribute(e,t)}removeAttribute(e){if(Ue&&!this._legacyForceObservedAttributes){const t=this.getAttribute(e);super.removeAttribute(e),this.__attributeReaction(e,t,null)}else super.removeAttribute(e)}static get observedAttributes(){return Ue&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],Qi(this.prototype)),this.__observedAttributes):n.call(this).concat(ls)}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}connectedCallback(){this.__needsAttributesAtConnected&&this._takeAttributes(),this.__isUpgradeDisabled||(super.connectedCallback(),this.isAttached=!0,this.attached())}attached(){}disconnectedCallback(){this.__isUpgradeDisabled||(super.disconnectedCallback(),this.isAttached=!1,this.detached())}detached(){}attributeChangedCallback(e,t,i,n){t!==i&&(e==ls?this.__isUpgradeDisabled&&null==i&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,pt(this).isConnected&&this.connectedCallback()):(super.attributeChangedCallback(e,t,i,n),this.attributeChanged(e,t,i)))}attributeChanged(e,t,i){}_initializeProperties(){if(De&&this.hasAttribute(ls))this.__isUpgradeDisabled=!0;else{let e=Object.getPrototypeOf(this);e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))||(this._registered(),e.__hasRegisterFinished=!0),super._initializeProperties(),this.root=this,this.created(),Ue&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners()}}_takeAttributes(){const e=this.attributes;for(let t=0,i=e.length;t<i;t++){const i=e[t];this.__attributeReaction(i.name,null,i.value)}}_registered(){}ready(){this._ensureAttributes(),super.ready()}_ensureAttributes(){}_applyListeners(){}serialize(e){return this._serializeValue(e)}deserialize(e,t){return this._deserializeValue(e,t)}reflectPropertyToAttribute(e,t,i){this._propertyToAttribute(e,t,i)}serializeValueToAttribute(e,t,i){this._valueToNodeAttribute(i||this,e,t)}extend(e,t){if(!e||!t)return e||t;let i=Object.getOwnPropertyNames(t);for(let n,r=0;r<i.length&&(n=i[r]);r++){let i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i)}return e}mixin(e,t){for(let i in t)e[i]=t[i];return e}chainObject(e,t){return e&&t&&e!==t&&(e.__proto__=t),e}instanceTemplate(e){let t=this.constructor._contentForTemplate(e);return document.importNode(t,!0)}fire(e,t,i){i=i||{},t=null==t?{}:t;let n=new Event(e,{bubbles:void 0===i.bubbles||i.bubbles,cancelable:Boolean(i.cancelable),composed:void 0===i.composed||i.composed});n.detail=t;let r=i.node||this;return pt(r).dispatchEvent(n),n}listen(e,t,i){e=e||this;let n=this.__boundListeners||(this.__boundListeners=new WeakMap),r=n.get(e);r||(r={},n.set(e,r));let s=t+i;r[s]||(r[s]=this._addMethodEventListenerToNode(e,t,i,this))}unlisten(e,t,i){e=e||this;let n=this.__boundListeners&&this.__boundListeners.get(e),r=t+i,s=n&&n[r];s&&(this._removeEventListenerFromNode(e,t,s),n[r]=null)}setScrollDirection(e,t){Zn(t||this,r[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){let e=pt(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){const e=ts(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return ts(this).getEffectiveChildNodes()}queryDistributedElements(e){return ts(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))}getEffectiveTextContent(){let e=this.getEffectiveChildNodes(),t=[];for(let i,n=0;i=e[n];n++)i.nodeType!==Node.COMMENT_NODE&&t.push(i.textContent);return t.join("")}queryEffectiveChildren(e){let t=this.queryDistributedElements(e);return t&&t[0]}queryAllEffectiveChildren(e){return this.queryDistributedElements(e)}getContentChildNodes(e){let t=this.root.querySelector(e||"slot");return t?ts(t).getDistributedNodes():[]}getContentChildren(e){return this.getContentChildNodes(e).filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))}isLightDescendant(e){const t=this;return t!==e&&pt(t).contains(e)&&pt(t).getRootNode()===pt(e).getRootNode()}isLocalDescendant(e){return this.root===pt(e).getRootNode()}scopeSubtree(e,t=!1){return ss(e,t)}getComputedStyleValue(e){return cs.getComputedStyleValue(this,e)}debounce(e,t,i){return this._debouncers=this._debouncers||{},this._debouncers[e]=on.debounce(this._debouncers[e],i>0?Rt.after(i):Bt,t.bind(this))}isDebouncerActive(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];return!(!t||!t.isActive())}flushDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.flush()}cancelDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.cancel()}async(e,t){return t>0?Rt.run(e.bind(this),t):~Bt.run(e.bind(this))}cancelAsync(e){e<0?Bt.cancel(~e):Rt.cancel(e)}create(e,t){let i=document.createElement(e);if(t)if(i.setProperties)i.setProperties(t);else for(let e in t)i[e]=t[e];return i}elementMatches(e,t){return Jr(t||this,e)}toggleAttribute(e,t){let i=this;return 3===arguments.length&&(i=arguments[2]),1==arguments.length&&(t=!i.hasAttribute(e)),t?(pt(i).setAttribute(e,""),!0):(pt(i).removeAttribute(e),!1)}toggleClass(e,t,i){i=i||this,1==arguments.length&&(t=!i.classList.contains(e)),t?i.classList.add(e):i.classList.remove(e)}transform(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}translate3d(e,t,i,n){n=n||this,this.transform("translate3d("+e+","+t+","+i+")",n)}arrayDelete(e,t){let i;if(Array.isArray(e)){if(i=e.indexOf(t),i>=0)return e.splice(i,1)}else{if(i=wt(this,e).indexOf(t),i>=0)return this.splice(e,i,1)}return null}_logger(e,t){switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":console[e](...t)}}_log(...e){this._logger("log",e)}_warn(...e){this._logger("warn",e)}_error(...e){this._logger("error",e)}_logf(e,...t){return["[%s::%s]",this.is,e,...t]}}return s.prototype.is="",s}),hs={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},ps={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},us=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},ps);
|
|
342
|
-
/**
|
|
343
|
-
@license
|
|
344
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
345
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
346
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
347
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
348
|
-
Code distributed by Google as part of the polymer project is also
|
|
349
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
350
|
-
*/function _s(e,t,i){const n=e._noAccessors,r=Object.getOwnPropertyNames(e);for(let s=0;s<r.length;s++){let o=r[s];if(!(o in i))if(n)t[o]=e[o];else{let i=Object.getOwnPropertyDescriptor(e,o);i&&(i.configurable=!0,Object.defineProperty(t,o,i))}}}function fs(e,t){return ws({},ds(t),e)}function ms(e,t,i){for(let n=0;n<t.length;n++)ys(e,t[n],i,us)}function ys(e,t,i,n){_s(t,e,n);for(let e in hs)t[e]&&(i[e]=i[e]||[],i[e].push(t[e]))}function gs(e,t,i){t=t||[];for(let n=e.length-1;n>=0;n--){let r=e[n];r?Array.isArray(r)?gs(r,t):t.indexOf(r)<0&&(!i||i.indexOf(r)<0)&&t.unshift(r):console.warn("behavior is null, check for missing or 404 import")}return t}function bs(e,t){for(const i in t){const n=e[i],r=t[i];e[i]=!("value"in r)&&n&&"value"in n?Object.assign({value:n.value},r):r}}const vs=ds(HTMLElement);function ws(e,t,i){let n;const r={};class s extends t{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(n)for(let e,t=0;t<n.length;t++)e=n[t],e.properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);e.properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties),this._prepareTemplate()}else t._finalizeClass.call(this)}static get properties(){const t={};if(n)for(let e=0;e<n.length;e++)bs(t,n[e].properties);return bs(t,e.properties),t}static get observers(){let t=[];if(n)for(let e,i=0;i<n.length;i++)e=n[i],e.observers&&(t=t.concat(e.observers));return e.observers&&(t=t.concat(e.observers)),t}created(){super.created();const e=r.created;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}_registered(){const e=s.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){e.__hasRegisterFinished=!0,super._registered(),De&&o(e);const t=Object.getPrototypeOf(this);let i=r.beforeRegister;if(i)for(let e=0;e<i.length;e++)i[e].call(t);if(i=r.registered,i)for(let e=0;e<i.length;e++)i[e].call(t)}}_applyListeners(){super._applyListeners();const e=r.listeners;if(e)for(let t=0;t<e.length;t++){const i=e[t];if(i)for(let e in i)this._addMethodEventListenerToNode(this,e,i[e])}}_ensureAttributes(){const e=r.hostAttributes;if(e)for(let t=e.length-1;t>=0;t--){const i=e[t];for(let e in i)this._ensureAttribute(e,i[e])}super._ensureAttributes()}ready(){super.ready();let e=r.ready;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}attached(){super.attached();let e=r.attached;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}detached(){super.detached();let e=r.detached;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}attributeChanged(e,t,i){super.attributeChanged();let n=r.attributeChanged;if(n)for(let r=0;r<n.length;r++)n[r].call(this,e,t,i)}}if(i){Array.isArray(i)||(i=[i]);let e=t.prototype.behaviors;n=gs(i,null,e),s.prototype.behaviors=e?e.concat(i):n}const o=t=>{n&&ms(t,n,r),ys(t,e,r,ps)};return De||o(s.prototype),s.generatedFrom=e,s}const Cs=function(e,t){e||console.warn("Polymer.Class requires `info` argument");let i=t?t(vs):vs;return i=ws(e,i,e.behaviors),i.is=i.prototype.is=e.is,i},Ps=function(e){let t;return t="function"==typeof e?e:Ps.Class(e),e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t};
|
|
351
|
-
/**
|
|
352
|
-
@license
|
|
353
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
354
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
355
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
356
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
357
|
-
Code distributed by Google as part of the polymer project is also
|
|
358
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
359
|
-
*/
|
|
360
|
-
/**
|
|
361
|
-
@license
|
|
362
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
363
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
364
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
365
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
366
|
-
Code distributed by Google as part of the polymer project is also
|
|
367
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
368
|
-
*/
|
|
369
|
-
function Ss(e,t,i,n,r){let s;r&&(s="object"==typeof i&&null!==i,s&&(n=e.__dataTemp[t]));let o=n!==i&&(n==n||i==i);return s&&o&&(e.__dataTemp[t]=i),o}Ps.Class=Cs;const xs=$e(e=>{class t extends e{_shouldPropertyChange(e,t,i){return Ss(this,e,t,i,!0)}}return t}),ks=$e(e=>{class t extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,i){return Ss(this,e,t,i,this.mutableData)}}return t});xs._mutablePropertyChange=Ss;
|
|
370
|
-
/**
|
|
371
|
-
@license
|
|
372
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
373
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
374
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
375
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
376
|
-
Code distributed by Google as part of the polymer project is also
|
|
377
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
378
|
-
*/
|
|
379
|
-
let Es=null;function As(){return Es}As.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:As,writable:!0}});const Ts=Gi(As),Os=xs(Ts);function Ns(e,t){Es=e,Object.setPrototypeOf(e,t.prototype),new t,Es=null}const Is=Gi(class{});function Ms(e,t){for(let i=0;i<t.length;i++){let n=t[i];if(Boolean(e)!=Boolean(n.__hideTemplateChildren__))if(n.nodeType===Node.TEXT_NODE)e?(n.__polymerTextContent__=n.textContent,n.textContent=""):n.textContent=n.__polymerTextContent__;else if("slot"===n.localName)if(e)n.__polymerReplaced__=document.createComment("hidden-slot"),pt(pt(n).parentNode).replaceChild(n.__polymerReplaced__,n);else{const e=n.__polymerReplaced__;e&&pt(pt(e).parentNode).replaceChild(n,e)}else n.style&&(e?(n.__polymerDisplay__=n.style.display,n.style.display="none"):n.style.display=n.__polymerDisplay__);n.__hideTemplateChildren__=e,n._showHideChildren&&n._showHideChildren(e)}}class Ds extends Is{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let e in this.__hostProps)this._setPendingProperty(e,this.__dataHost["_host_"+e]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,i(e)});else{let n=this.__dataHost.__dataHost;n&&n._addEventListenerToNode(e,t,i)}}_showHideChildren(e){Ms(e,this.children)}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do{e=e.__dataHost.__dataHost}while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}Ds.prototype.__dataHost,Ds.prototype.__templatizeOptions,Ds.prototype._methodHost,Ds.prototype.__templatizeOwner,Ds.prototype.__hostProps;const Rs=xs(Ds);function Ls(e){let t=e.__dataHost;return t&&t._methodHost||t}function Fs(e,t,i){let n=i.mutableData?Rs:Ds;Ks.mixin&&(n=Ks.mixin(n));let r=class extends n{};return r.prototype.__templatizeOptions=i,r.prototype._bindTemplate(e),zs(r,e,t,i),r}function Bs(e,t,i,n){let r=i.forwardHostProp;if(r&&t.hasHostProps){const s="template"==e.localName;let o=t.templatizeTemplateClass;if(!o){if(s){let e=i.mutableData?Os:Ts;class n extends e{}o=t.templatizeTemplateClass=n}else{const i=e.constructor;class n extends i{}o=t.templatizeTemplateClass=n}let a=t.hostProps;for(let e in a)o.prototype._addPropertyEffect("_host_"+e,o.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Hs(e,r)}),o.prototype._createNotifyingProperty("_host_"+e);Re&&n&&qs(t,i,n)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),s)Ns(e,o),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,o.prototype);const i=t.hostProps;for(let t in i)if(t="_host_"+t,t in e){const i=e[t];delete e[t],e.__data[t]=i}}}}function Hs(e,t){return function(e,i,n){t.call(e.__templatizeOwner,i.substring("_host_".length),n[i])}}function zs(e,t,i,n){let r=i.hostProps||{};for(let t in n.instanceProps){delete r[t];let i=n.notifyInstanceProp;i&&e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:js(t,i)})}if(n.forwardHostProp&&t.__dataHost)for(let t in r)i.hasHostProps||(i.hasHostProps=!0),e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Us()})}function js(e,t){return function(e,i,n){t.call(e.__templatizeOwner,e,i,n[i])}}function Us(){return function(e,t,i){e.__dataHost._setPendingPropertyOrPath("_host_"+t,i[t],!0,!0)}}function Ks(e,t,i){if(Ie&&!Ls(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(i=i||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=t;let n=(t?t.constructor:Ds)._parseTemplate(e),r=n.templatizeInstanceClass;r||(r=Fs(e,n,i),n.templatizeInstanceClass=r);const s=Ls(e);Bs(e,n,i,s);let o=class extends r{};return o.prototype._methodHost=s,o.prototype.__dataHost=e,o.prototype.__templatizeOwner=t,o.prototype.__hostProps=n.hostProps,o=o,o}function qs(e,t,i){const n=i.constructor._properties,{propertyEffects:r}=e,{instanceProps:s}=t;for(let e in r)if(!(n[e]||s&&s[e])){const t=r[e];for(let i=0;i<t.length;i++){const{part:n}=t[i].info;if(!n.signature||!n.signature.static){console.warn(`Property '${e}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function $s(e,t){let i;for(;t;)if(i=t.__dataHost?t:t.__templatizeInstance){if(i.__dataHost==e)return i;t=i.__dataHost}else t=pt(t).parentNode;return null}
|
|
380
|
-
/**
|
|
381
|
-
@license
|
|
382
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
383
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
384
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
385
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
386
|
-
Code distributed by Google as part of the polymer project is also
|
|
387
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
388
|
-
*/let Ys=!1;function Vs(){if(De&&!Ee){if(!Ys){Ys=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}
|
|
389
|
-
/**
|
|
390
|
-
@license
|
|
391
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
392
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
393
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
394
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
395
|
-
Code distributed by Google as part of the polymer project is also
|
|
396
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
397
|
-
*/const Js=ar(ks(Gi(HTMLElement)));class Xs extends Js{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),Ie)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,i,n){this.mutableData=!0}connectedCallback(){Vs()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){pt(pt(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}render(){let e;if(!this.__children){if(e=e||this.querySelector("template"),!e){let t=new MutationObserver(()=>{if(e=this.querySelector("template"),!e)throw new Error("dom-bind requires a <template> child");t.disconnect(),this.render()});return void t.observe(this,{childList:!0})}this.root=this._stampTemplate(e),this.$=this.root.$,this.__children=[];for(let e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}customElements.define("dom-bind",Xs);
|
|
398
|
-
/**
|
|
399
|
-
@license
|
|
400
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
401
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
402
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
403
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
404
|
-
Code distributed by Google as part of the polymer project is also
|
|
405
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
406
|
-
*/
|
|
407
|
-
const Ws=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});class Gs{constructor(e,t){to(e,t);const i=t.reduce((t,i,n)=>t+Zs(i)+e[n+1],e[0]);this.value=i.toString()}toString(){return this.value}}function Zs(e){if(e instanceof Gs)return e.value;throw new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function Qs(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof Gs)return Zs(e);throw new Error("non-template value passed to Polymer's html function: "+e)}const eo=function(e,...t){to(e,t);const i=document.createElement("template");let n=t.reduce((t,i,n)=>t+Qs(i)+e[n+1],e[0]);return Ws&&(n=Ws.createHTML(n)),i.innerHTML=n,i},to=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")},io=sn(HTMLElement),no=ks(io);class ro extends no{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!je,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Vs()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=pt(pt(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let e=new MutationObserver(()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Ks(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(e,t){let i=this.__instances;for(let n,r=0;r<i.length&&(n=i[r]);r++)n.forwardHostProp(e,t)},notifyInstanceProp:function(e,t,i){if(gt(this.as,t)){let n=e[this.itemsIndexAs];t==this.as&&(this.items[n]=i);let r=yt(this.as,`${JSCompiler_renameProperty("items",this)}.${n}`,t);this.notifyPath(r,i)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if("string"==typeof e){let t=e,i=this.__getMethodHost();return function(){return i[t].apply(i,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn)if(e){if(this.__observePaths){let t=this.__observePaths;for(let i=0;i<t.length;i++)0===e.indexOf(t[i])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=on.debounce(this.__renderDebouncer,t>0?Rt.after(t):Bt,e.bind(this)),ln(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),$r()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length);this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),je&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=i;return this.__filterFn&&(t=t.filter((t,i,n)=>this.__filterFn(e[t],i,n))),this.__sortFn&&t.sort((t,i)=>this.__sortFn(e[t],e[i])),t}__calculateLimit(e){let t=e;const i=this.__instances.length;if(this.initialCount){let n;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),n=Math.max(t-i,0),this.__chunkCount=n||1):(n=Math.min(Math.max(e-i,0),this.__chunkCount),t=Math.min(i+n,e)),this.__shouldMeasureChunk=n===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){const n=this.__itemsIdxToInstIdx={};let r;for(r=0;r<t;r++){let t=this.__instances[r],s=i[r],o=e[s];n[s]=r,t?(t._setPendingProperty(this.as,o),t._setPendingProperty(this.indexAs,r),t._setPendingProperty(this.itemsIndexAs,s),t._flushProperties()):this.__insertInstance(o,r,s)}for(let e=this.__instances.length-1;e>=r;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){let t=this.__instances[e];const i=pt(t.root);for(let e=0;e<t.children.length;e++){let n=t.children[e];i.appendChild(n)}return t}__attachInstance(e,t){let i=this.__instances[e];t.insertBefore(i.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){let n={};return n[this.as]=e,n[this.indexAs]=t,n[this.itemsIndexAs]=i,new this.__ctor(n)}__insertInstance(e,t,i){const n=this.__stampInstance(e,t,i);let r=this.__instances[t+1],s=r?r.children[0]:this;return pt(pt(this).parentNode).insertBefore(n.root,s),this.__instances[t]=n,n}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let i=e.slice(6),n=i.indexOf("."),r=n<0?i:i.substring(0,n);if(r==parseInt(r,10)){let e=n<0?"":i.substring(n+1);this.__handleObservedPaths(e);let s=this.__itemsIdxToInstIdx[r],o=this.__instances[s];if(o){let i=this.as+(e?"."+e:"");o._setPendingPropertyOrPath(i,t,!1,!0),o._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return $s(this.template,e)}}customElements.define(ro.is,ro);
|
|
408
|
-
/**
|
|
409
|
-
@license
|
|
410
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
411
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
412
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
413
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
414
|
-
Code distributed by Google as part of the polymer project is also
|
|
415
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
416
|
-
*/
|
|
417
|
-
class so extends io{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=on.debounce(this.__renderDebouncer,Bt,()=>this.__render()),ln(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();const e=pt(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||pt(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),Vs()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){const e=this;let t=e._templateInfo?e:pt(e).querySelector("template");if(!t){let e=new MutationObserver(()=>{if(!pt(this).querySelector("template"))throw new Error("dom-if requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}this.__template=t}return!0}__ensureInstance(){let e=pt(this).parentNode;if(this.__hasInstance()){let t=this.__getInstanceNodes();if(t&&t.length){if(pt(this).previousSibling!==t[t.length-1])for(let i,n=0;n<t.length&&(i=t[n]);n++)pt(e).insertBefore(i,this)}}else{if(!e)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(e)}return!0}render(){$r()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),je&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(e){}__teardownInstance(){}_showHideChildren(){}}class oo extends so{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){const t=this.__dataHost||this;if(Ie&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");const i=t._bindTemplate(this.__template,!0);i.runEffects=(e,t,i)=>{let n=this.__syncInfo;if(this.if)n&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(n.changedProps,t)),e(t,i);else if(this.__instance)if(n||(n=this.__syncInfo={runEffects:e,changedProps:{}}),i)for(const e in t){const t=_t(e);n.changedProps[t]=this.__dataHost[t]}else Object.assign(n.changedProps,t)},this.__instance=t._stampTemplate(this.__template,i),pt(e).insertBefore(this.__instance,this)}__syncHostProperties(){const e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){const e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}_showHideChildren(){const e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,Ms(e,this.__instance.templateInfo.childNodes)),e||this.__syncHostProperties()}}class ao extends so{constructor(){super(),this.__ctor=null,this.__instance=null,this.__invalidProps=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.children}__createAndInsertInstance(e){this.__ctor||(this.__ctor=Ks(this.__template,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[_t(e)]=!0))}})),this.__instance=new this.__ctor,pt(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){let e=this.__instance.children;if(e&&e.length){let t=pt(e[0]).parentNode;if(t){t=pt(t);for(let i,n=0;n<e.length&&(i=e[n]);n++)t.removeChild(i)}}this.__invalidProps=null,this.__instance=null}}__syncHostProperties(){let e=this.__invalidProps;if(e){this.__invalidProps=null;for(let t in e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}}_showHideChildren(){const e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e)),e||this.__syncHostProperties()}}const lo=ze?oo:ao;customElements.define(lo.is,lo);
|
|
418
|
-
/**
|
|
419
|
-
@license
|
|
420
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
421
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
422
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
423
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
424
|
-
Code distributed by Google as part of the polymer project is also
|
|
425
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
426
|
-
*/
|
|
427
|
-
let co=$e(e=>{let t=sn(e);class i extends t{static get properties(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}static get observers(){return["__updateSelection(multi, items.*)"]}constructor(){super(),this.__lastItems=null,this.__lastMulti=null,this.__selectedMap=null}__updateSelection(e,t){let i=t.path;if(i==JSCompiler_renameProperty("items",this)){let i=t.base||[],n=this.__lastItems;if(e!==this.__lastMulti&&this.clearSelection(),n){let e=jr(i,n);this.__applySplices(e)}this.__lastItems=i,this.__lastMulti=e}else if(t.path==JSCompiler_renameProperty("items",this)+".splices")this.__applySplices(t.value.indexSplices);else{let e=i.slice((JSCompiler_renameProperty("items",this)+".").length),t=parseInt(e,10);e.indexOf(".")<0&&e==t&&this.__deselectChangedIdx(t)}}__applySplices(e){let t=this.__selectedMap;for(let i=0;i<e.length;i++){let n=e[i];t.forEach((e,i)=>{e<n.index||(e>=n.index+n.removed.length?t.set(i,e+n.addedCount-n.removed.length):t.set(i,-1))});for(let e=0;e<n.addedCount;e++){let i=n.index+e;t.has(this.items[i])&&t.set(this.items[i],i)}}this.__updateLinks();let i=0;t.forEach((e,n)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),i,1):this.selected=this.selectedItem=null,t.delete(n)):i++})}__updateLinks(){if(this.__dataLinkedPaths={},this.multi){let e=0;this.__selectedMap.forEach(t=>{t>=0&&this.linkPaths(`${JSCompiler_renameProperty("items",this)}.${t}`,`${JSCompiler_renameProperty("selected",this)}.${e++}`)})}else this.__selectedMap.forEach(e=>{this.linkPaths(JSCompiler_renameProperty("selected",this),`${JSCompiler_renameProperty("items",this)}.${e}`),this.linkPaths(JSCompiler_renameProperty("selectedItem",this),`${JSCompiler_renameProperty("items",this)}.${e}`)})}clearSelection(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}isSelected(e){return this.__selectedMap.has(e)}isIndexSelected(e){return this.isSelected(this.items[e])}__deselectChangedIdx(e){let t=this.__selectedIndexForItemIndex(e);if(t>=0){let e=0;this.__selectedMap.forEach((i,n)=>{t==e++&&this.deselect(n)})}}__selectedIndexForItemIndex(e){let t=this.__dataLinkedPaths[`${JSCompiler_renameProperty("items",this)}.${e}`];if(t)return parseInt(t.slice((JSCompiler_renameProperty("selected",this)+".").length),10)}deselect(e){let t=this.__selectedMap.get(e);if(t>=0){let i;this.__selectedMap.delete(e),this.multi&&(i=this.__selectedIndexForItemIndex(t)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),i,1):this.selected=this.selectedItem=null}}deselectIndex(e){this.deselect(this.items[e])}select(e){this.selectIndex(this.items.indexOf(e))}selectIndex(e){let t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}return i})(io);class ho extends co{static get is(){return"array-selector"}static get template(){return null}}customElements.define(ho.is,ho);
|
|
428
|
-
/**
|
|
429
|
-
@license
|
|
430
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
431
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
432
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
433
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
434
|
-
Code distributed by Google as part of the polymer project is also
|
|
435
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
436
|
-
*/
|
|
437
|
-
const po=new ye;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,i){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,i){},styleSubtree(e,t){po.processStyles(),K(e,t)},styleElement(e){po.processStyles()},styleDocument(e){po.processStyles(),K(document.body,e)},getComputedStyleValue:(e,t)=>q(e,t),flushCustomStyles(){},nativeCss:s,nativeShadow:e,cssBuild:i,disableRuntime:r}),window.ShadyCSS.CustomStyleInterface=po;
|
|
438
|
-
/**
|
|
439
|
-
@license
|
|
440
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
441
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
442
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
443
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
444
|
-
Code distributed by Google as part of the polymer project is also
|
|
445
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
446
|
-
*/
|
|
447
|
-
const uo="include",_o=window.ShadyCSS.CustomStyleInterface;class fo extends HTMLElement{constructor(){super(),this._style=null,_o.addCustomStyle(this)}getStyle(){if(this._style)return this._style;const e=this.querySelector("style");if(!e)return null;this._style=e;const t=e.getAttribute(uo);return t&&(e.removeAttribute(uo),e.textContent=lt(t)+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this),this._style}}window.customElements.define("custom-style",fo);
|
|
448
|
-
/**
|
|
449
|
-
@license
|
|
450
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
451
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
452
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
453
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
454
|
-
Code distributed by Google as part of the polymer project is also
|
|
455
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
456
|
-
*/
|
|
457
|
-
const mo=ds(HTMLElement).prototype,yo=eo`
|
|
458
|
-
<custom-style>
|
|
459
|
-
<style is="custom-style">
|
|
460
|
-
[hidden] {
|
|
461
|
-
display: none !important;
|
|
462
|
-
}
|
|
463
|
-
</style>
|
|
464
|
-
</custom-style>
|
|
465
|
-
<custom-style>
|
|
466
|
-
<style is="custom-style">
|
|
467
|
-
html {
|
|
468
|
-
|
|
469
|
-
--layout: {
|
|
470
|
-
display: -ms-flexbox;
|
|
471
|
-
display: -webkit-flex;
|
|
472
|
-
display: flex;
|
|
473
|
-
};
|
|
474
|
-
|
|
475
|
-
--layout-inline: {
|
|
476
|
-
display: -ms-inline-flexbox;
|
|
477
|
-
display: -webkit-inline-flex;
|
|
478
|
-
display: inline-flex;
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
--layout-horizontal: {
|
|
482
|
-
@apply --layout;
|
|
483
|
-
|
|
484
|
-
-ms-flex-direction: row;
|
|
485
|
-
-webkit-flex-direction: row;
|
|
486
|
-
flex-direction: row;
|
|
487
|
-
};
|
|
488
|
-
|
|
489
|
-
--layout-horizontal-reverse: {
|
|
490
|
-
@apply --layout;
|
|
491
|
-
|
|
492
|
-
-ms-flex-direction: row-reverse;
|
|
493
|
-
-webkit-flex-direction: row-reverse;
|
|
494
|
-
flex-direction: row-reverse;
|
|
495
|
-
};
|
|
496
|
-
|
|
497
|
-
--layout-vertical: {
|
|
498
|
-
@apply --layout;
|
|
499
|
-
|
|
500
|
-
-ms-flex-direction: column;
|
|
501
|
-
-webkit-flex-direction: column;
|
|
502
|
-
flex-direction: column;
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
--layout-vertical-reverse: {
|
|
506
|
-
@apply --layout;
|
|
507
|
-
|
|
508
|
-
-ms-flex-direction: column-reverse;
|
|
509
|
-
-webkit-flex-direction: column-reverse;
|
|
510
|
-
flex-direction: column-reverse;
|
|
511
|
-
};
|
|
512
|
-
|
|
513
|
-
--layout-wrap: {
|
|
514
|
-
-ms-flex-wrap: wrap;
|
|
515
|
-
-webkit-flex-wrap: wrap;
|
|
516
|
-
flex-wrap: wrap;
|
|
517
|
-
};
|
|
518
|
-
|
|
519
|
-
--layout-wrap-reverse: {
|
|
520
|
-
-ms-flex-wrap: wrap-reverse;
|
|
521
|
-
-webkit-flex-wrap: wrap-reverse;
|
|
522
|
-
flex-wrap: wrap-reverse;
|
|
523
|
-
};
|
|
524
|
-
|
|
525
|
-
--layout-flex-auto: {
|
|
526
|
-
-ms-flex: 1 1 auto;
|
|
527
|
-
-webkit-flex: 1 1 auto;
|
|
528
|
-
flex: 1 1 auto;
|
|
529
|
-
};
|
|
530
|
-
|
|
531
|
-
--layout-flex-none: {
|
|
532
|
-
-ms-flex: none;
|
|
533
|
-
-webkit-flex: none;
|
|
534
|
-
flex: none;
|
|
535
|
-
};
|
|
536
|
-
|
|
537
|
-
--layout-flex: {
|
|
538
|
-
-ms-flex: 1 1 0.000000001px;
|
|
539
|
-
-webkit-flex: 1;
|
|
540
|
-
flex: 1;
|
|
541
|
-
-webkit-flex-basis: 0.000000001px;
|
|
542
|
-
flex-basis: 0.000000001px;
|
|
543
|
-
};
|
|
544
|
-
|
|
545
|
-
--layout-flex-2: {
|
|
546
|
-
-ms-flex: 2;
|
|
547
|
-
-webkit-flex: 2;
|
|
548
|
-
flex: 2;
|
|
549
|
-
};
|
|
550
|
-
|
|
551
|
-
--layout-flex-3: {
|
|
552
|
-
-ms-flex: 3;
|
|
553
|
-
-webkit-flex: 3;
|
|
554
|
-
flex: 3;
|
|
555
|
-
};
|
|
556
|
-
|
|
557
|
-
--layout-flex-4: {
|
|
558
|
-
-ms-flex: 4;
|
|
559
|
-
-webkit-flex: 4;
|
|
560
|
-
flex: 4;
|
|
561
|
-
};
|
|
562
|
-
|
|
563
|
-
--layout-flex-5: {
|
|
564
|
-
-ms-flex: 5;
|
|
565
|
-
-webkit-flex: 5;
|
|
566
|
-
flex: 5;
|
|
567
|
-
};
|
|
568
|
-
|
|
569
|
-
--layout-flex-6: {
|
|
570
|
-
-ms-flex: 6;
|
|
571
|
-
-webkit-flex: 6;
|
|
572
|
-
flex: 6;
|
|
573
|
-
};
|
|
574
|
-
|
|
575
|
-
--layout-flex-7: {
|
|
576
|
-
-ms-flex: 7;
|
|
577
|
-
-webkit-flex: 7;
|
|
578
|
-
flex: 7;
|
|
579
|
-
};
|
|
580
|
-
|
|
581
|
-
--layout-flex-8: {
|
|
582
|
-
-ms-flex: 8;
|
|
583
|
-
-webkit-flex: 8;
|
|
584
|
-
flex: 8;
|
|
585
|
-
};
|
|
586
|
-
|
|
587
|
-
--layout-flex-9: {
|
|
588
|
-
-ms-flex: 9;
|
|
589
|
-
-webkit-flex: 9;
|
|
590
|
-
flex: 9;
|
|
591
|
-
};
|
|
592
|
-
|
|
593
|
-
--layout-flex-10: {
|
|
594
|
-
-ms-flex: 10;
|
|
595
|
-
-webkit-flex: 10;
|
|
596
|
-
flex: 10;
|
|
597
|
-
};
|
|
598
|
-
|
|
599
|
-
--layout-flex-11: {
|
|
600
|
-
-ms-flex: 11;
|
|
601
|
-
-webkit-flex: 11;
|
|
602
|
-
flex: 11;
|
|
603
|
-
};
|
|
604
|
-
|
|
605
|
-
--layout-flex-12: {
|
|
606
|
-
-ms-flex: 12;
|
|
607
|
-
-webkit-flex: 12;
|
|
608
|
-
flex: 12;
|
|
609
|
-
};
|
|
610
|
-
|
|
611
|
-
/* alignment in cross axis */
|
|
612
|
-
|
|
613
|
-
--layout-start: {
|
|
614
|
-
-ms-flex-align: start;
|
|
615
|
-
-webkit-align-items: flex-start;
|
|
616
|
-
align-items: flex-start;
|
|
617
|
-
};
|
|
618
|
-
|
|
619
|
-
--layout-center: {
|
|
620
|
-
-ms-flex-align: center;
|
|
621
|
-
-webkit-align-items: center;
|
|
622
|
-
align-items: center;
|
|
623
|
-
};
|
|
624
|
-
|
|
625
|
-
--layout-end: {
|
|
626
|
-
-ms-flex-align: end;
|
|
627
|
-
-webkit-align-items: flex-end;
|
|
628
|
-
align-items: flex-end;
|
|
629
|
-
};
|
|
630
|
-
|
|
631
|
-
--layout-baseline: {
|
|
632
|
-
-ms-flex-align: baseline;
|
|
633
|
-
-webkit-align-items: baseline;
|
|
634
|
-
align-items: baseline;
|
|
635
|
-
};
|
|
636
|
-
|
|
637
|
-
/* alignment in main axis */
|
|
638
|
-
|
|
639
|
-
--layout-start-justified: {
|
|
640
|
-
-ms-flex-pack: start;
|
|
641
|
-
-webkit-justify-content: flex-start;
|
|
642
|
-
justify-content: flex-start;
|
|
643
|
-
};
|
|
644
|
-
|
|
645
|
-
--layout-center-justified: {
|
|
646
|
-
-ms-flex-pack: center;
|
|
647
|
-
-webkit-justify-content: center;
|
|
648
|
-
justify-content: center;
|
|
649
|
-
};
|
|
650
|
-
|
|
651
|
-
--layout-end-justified: {
|
|
652
|
-
-ms-flex-pack: end;
|
|
653
|
-
-webkit-justify-content: flex-end;
|
|
654
|
-
justify-content: flex-end;
|
|
655
|
-
};
|
|
656
|
-
|
|
657
|
-
--layout-around-justified: {
|
|
658
|
-
-ms-flex-pack: distribute;
|
|
659
|
-
-webkit-justify-content: space-around;
|
|
660
|
-
justify-content: space-around;
|
|
661
|
-
};
|
|
662
|
-
|
|
663
|
-
--layout-justified: {
|
|
664
|
-
-ms-flex-pack: justify;
|
|
665
|
-
-webkit-justify-content: space-between;
|
|
666
|
-
justify-content: space-between;
|
|
667
|
-
};
|
|
668
|
-
|
|
669
|
-
--layout-center-center: {
|
|
670
|
-
@apply --layout-center;
|
|
671
|
-
@apply --layout-center-justified;
|
|
672
|
-
};
|
|
673
|
-
|
|
674
|
-
/* self alignment */
|
|
675
|
-
|
|
676
|
-
--layout-self-start: {
|
|
677
|
-
-ms-align-self: flex-start;
|
|
678
|
-
-webkit-align-self: flex-start;
|
|
679
|
-
align-self: flex-start;
|
|
680
|
-
};
|
|
681
|
-
|
|
682
|
-
--layout-self-center: {
|
|
683
|
-
-ms-align-self: center;
|
|
684
|
-
-webkit-align-self: center;
|
|
685
|
-
align-self: center;
|
|
686
|
-
};
|
|
687
|
-
|
|
688
|
-
--layout-self-end: {
|
|
689
|
-
-ms-align-self: flex-end;
|
|
690
|
-
-webkit-align-self: flex-end;
|
|
691
|
-
align-self: flex-end;
|
|
692
|
-
};
|
|
693
|
-
|
|
694
|
-
--layout-self-stretch: {
|
|
695
|
-
-ms-align-self: stretch;
|
|
696
|
-
-webkit-align-self: stretch;
|
|
697
|
-
align-self: stretch;
|
|
698
|
-
};
|
|
699
|
-
|
|
700
|
-
--layout-self-baseline: {
|
|
701
|
-
-ms-align-self: baseline;
|
|
702
|
-
-webkit-align-self: baseline;
|
|
703
|
-
align-self: baseline;
|
|
704
|
-
};
|
|
705
|
-
|
|
706
|
-
/* multi-line alignment in main axis */
|
|
707
|
-
|
|
708
|
-
--layout-start-aligned: {
|
|
709
|
-
-ms-flex-line-pack: start; /* IE10 */
|
|
710
|
-
-ms-align-content: flex-start;
|
|
711
|
-
-webkit-align-content: flex-start;
|
|
712
|
-
align-content: flex-start;
|
|
713
|
-
};
|
|
714
|
-
|
|
715
|
-
--layout-end-aligned: {
|
|
716
|
-
-ms-flex-line-pack: end; /* IE10 */
|
|
717
|
-
-ms-align-content: flex-end;
|
|
718
|
-
-webkit-align-content: flex-end;
|
|
719
|
-
align-content: flex-end;
|
|
720
|
-
};
|
|
721
|
-
|
|
722
|
-
--layout-center-aligned: {
|
|
723
|
-
-ms-flex-line-pack: center; /* IE10 */
|
|
724
|
-
-ms-align-content: center;
|
|
725
|
-
-webkit-align-content: center;
|
|
726
|
-
align-content: center;
|
|
727
|
-
};
|
|
728
|
-
|
|
729
|
-
--layout-between-aligned: {
|
|
730
|
-
-ms-flex-line-pack: justify; /* IE10 */
|
|
731
|
-
-ms-align-content: space-between;
|
|
732
|
-
-webkit-align-content: space-between;
|
|
733
|
-
align-content: space-between;
|
|
734
|
-
};
|
|
735
|
-
|
|
736
|
-
--layout-around-aligned: {
|
|
737
|
-
-ms-flex-line-pack: distribute; /* IE10 */
|
|
738
|
-
-ms-align-content: space-around;
|
|
739
|
-
-webkit-align-content: space-around;
|
|
740
|
-
align-content: space-around;
|
|
741
|
-
};
|
|
742
|
-
|
|
743
|
-
/*******************************
|
|
744
|
-
Other Layout
|
|
745
|
-
*******************************/
|
|
746
|
-
|
|
747
|
-
--layout-block: {
|
|
748
|
-
display: block;
|
|
749
|
-
};
|
|
750
|
-
|
|
751
|
-
--layout-invisible: {
|
|
752
|
-
visibility: hidden !important;
|
|
753
|
-
};
|
|
754
|
-
|
|
755
|
-
--layout-relative: {
|
|
756
|
-
position: relative;
|
|
757
|
-
};
|
|
758
|
-
|
|
759
|
-
--layout-fit: {
|
|
760
|
-
position: absolute;
|
|
761
|
-
top: 0;
|
|
762
|
-
right: 0;
|
|
763
|
-
bottom: 0;
|
|
764
|
-
left: 0;
|
|
765
|
-
};
|
|
766
|
-
|
|
767
|
-
--layout-scroll: {
|
|
768
|
-
-webkit-overflow-scrolling: touch;
|
|
769
|
-
overflow: auto;
|
|
770
|
-
};
|
|
771
|
-
|
|
772
|
-
--layout-fullbleed: {
|
|
773
|
-
margin: 0;
|
|
774
|
-
height: 100vh;
|
|
775
|
-
};
|
|
776
|
-
|
|
777
|
-
/* fixed position */
|
|
778
|
-
|
|
779
|
-
--layout-fixed-top: {
|
|
780
|
-
position: fixed;
|
|
781
|
-
top: 0;
|
|
782
|
-
left: 0;
|
|
783
|
-
right: 0;
|
|
784
|
-
};
|
|
785
|
-
|
|
786
|
-
--layout-fixed-right: {
|
|
787
|
-
position: fixed;
|
|
788
|
-
top: 0;
|
|
789
|
-
right: 0;
|
|
790
|
-
bottom: 0;
|
|
791
|
-
};
|
|
792
|
-
|
|
793
|
-
--layout-fixed-bottom: {
|
|
794
|
-
position: fixed;
|
|
795
|
-
right: 0;
|
|
796
|
-
bottom: 0;
|
|
797
|
-
left: 0;
|
|
798
|
-
};
|
|
799
|
-
|
|
800
|
-
--layout-fixed-left: {
|
|
801
|
-
position: fixed;
|
|
802
|
-
top: 0;
|
|
803
|
-
bottom: 0;
|
|
804
|
-
left: 0;
|
|
805
|
-
};
|
|
806
|
-
|
|
807
|
-
}
|
|
808
|
-
</style>
|
|
809
|
-
</custom-style>`;
|
|
810
|
-
/**
|
|
811
|
-
@license
|
|
812
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
813
|
-
This code may only be used under the BSD style license found at
|
|
814
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
815
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
816
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
817
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
818
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
819
|
-
*/yo.setAttribute("style","display: none;"),document.head.appendChild(yo.content);var go=document.createElement("style");go.textContent="[hidden] { display: none !important; }",document.head.appendChild(go);
|
|
820
|
-
/**
|
|
821
|
-
@license
|
|
822
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
823
|
-
This code may only be used under the BSD style license found at
|
|
824
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
825
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
826
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
827
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
828
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
829
|
-
*/
|
|
830
|
-
class bo{constructor(e){bo[" "](e),this.type=e&&e.type||"default",this.key=e&&e.key,e&&"value"in e&&(this.value=e.value)}get value(){var e=this.type,t=this.key;if(e&&t)return bo.types[e]&&bo.types[e][t]}set value(e){var t=this.type,i=this.key;t&&i&&(t=bo.types[t]=bo.types[t]||{},null==e?delete t[i]:t[i]=e)}get list(){if(this.type){var e=bo.types[this.type];return e?Object.keys(e).map((function(e){return vo[this.type][e]}),this):[]}}byKey(e){return this.key=e,this.value}}bo[" "]=function(){},bo.types={};var vo=bo.types;Ps({is:"iron-meta",properties:{type:{type:String,value:"default"},key:{type:String},value:{type:String,notify:!0},self:{type:Boolean,observer:"_selfChanged"},__meta:{type:Boolean,computed:"__computeMeta(type, key, value)"}},hostAttributes:{hidden:!0},__computeMeta:function(e,t,i){var n=new bo({type:e,key:t});return void 0!==i&&i!==n.value?n.value=i:this.value!==n.value&&(this.value=n.value),n},get list(){return this.__meta&&this.__meta.list},_selfChanged:function(e){e&&(this.value=this)},byKey:function(e){return new bo({type:this.type,key:e}).value}}),
|
|
831
|
-
/**
|
|
832
|
-
@license
|
|
833
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
834
|
-
This code may only be used under the BSD style license found at
|
|
835
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
836
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
837
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
838
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
839
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
840
|
-
*/
|
|
841
|
-
Ps({_template:eo`
|
|
842
|
-
<style>
|
|
843
|
-
:host {
|
|
844
|
-
@apply --layout-inline;
|
|
845
|
-
@apply --layout-center-center;
|
|
846
|
-
position: relative;
|
|
847
|
-
|
|
848
|
-
vertical-align: middle;
|
|
849
|
-
|
|
850
|
-
fill: var(--iron-icon-fill-color, currentcolor);
|
|
851
|
-
stroke: var(--iron-icon-stroke-color, none);
|
|
852
|
-
|
|
853
|
-
width: var(--iron-icon-width, 24px);
|
|
854
|
-
height: var(--iron-icon-height, 24px);
|
|
855
|
-
@apply --iron-icon;
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
:host([hidden]) {
|
|
859
|
-
display: none;
|
|
860
|
-
}
|
|
861
|
-
</style>
|
|
862
|
-
`,is:"iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String},_meta:{value:mo.create("iron-meta",{type:"iconset"})}},observers:["_updateIcon(_meta, isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(e){var t=(e||"").split(":");this._iconName=t.pop(),this._iconsetName=t.pop()||this._DEFAULT_ICONSET,this._updateIcon()},_srcChanged:function(e){this._updateIcon()},_usesIconset:function(){return this.icon||!this.src},_updateIcon:function(){this._usesIconset()?(this._img&&this._img.parentNode&&ts(this.root).removeChild(this._img),""===this._iconName?this._iconset&&this._iconset.removeIcon(this):this._iconsetName&&this._meta&&(this._iconset=this._meta.byKey(this._iconsetName),this._iconset?(this._iconset.applyIcon(this,this._iconName,this.theme),this.unlisten(window,"iron-iconset-added","_updateIcon")):this.listen(window,"iron-iconset-added","_updateIcon"))):(this._iconset&&this._iconset.removeIcon(this),this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,ts(this.root).appendChild(this._img))}});
|
|
863
|
-
/**
|
|
864
|
-
@license
|
|
865
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
866
|
-
This code may only be used under the BSD style license found at
|
|
867
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
868
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
869
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
870
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
871
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
872
|
-
*/
|
|
873
|
-
const wo=eo`
|
|
874
|
-
<custom-style>
|
|
875
|
-
<style is="custom-style">
|
|
876
|
-
html {
|
|
877
|
-
|
|
878
|
-
/* Material Design color palette for Google products */
|
|
879
|
-
|
|
880
|
-
--google-red-100: #f4c7c3;
|
|
881
|
-
--google-red-300: #e67c73;
|
|
882
|
-
--google-red-500: #db4437;
|
|
883
|
-
--google-red-700: #c53929;
|
|
884
|
-
|
|
885
|
-
--google-blue-100: #c6dafc;
|
|
886
|
-
--google-blue-300: #7baaf7;
|
|
887
|
-
--google-blue-500: #4285f4;
|
|
888
|
-
--google-blue-700: #3367d6;
|
|
889
|
-
|
|
890
|
-
--google-green-100: #b7e1cd;
|
|
891
|
-
--google-green-300: #57bb8a;
|
|
892
|
-
--google-green-500: #0f9d58;
|
|
893
|
-
--google-green-700: #0b8043;
|
|
894
|
-
|
|
895
|
-
--google-yellow-100: #fce8b2;
|
|
896
|
-
--google-yellow-300: #f7cb4d;
|
|
897
|
-
--google-yellow-500: #f4b400;
|
|
898
|
-
--google-yellow-700: #f09300;
|
|
899
|
-
|
|
900
|
-
--google-grey-100: #f5f5f5;
|
|
901
|
-
--google-grey-300: #e0e0e0;
|
|
902
|
-
--google-grey-500: #9e9e9e;
|
|
903
|
-
--google-grey-700: #616161;
|
|
904
|
-
|
|
905
|
-
/* Material Design color palette from online spec document */
|
|
906
|
-
|
|
907
|
-
--paper-red-50: #ffebee;
|
|
908
|
-
--paper-red-100: #ffcdd2;
|
|
909
|
-
--paper-red-200: #ef9a9a;
|
|
910
|
-
--paper-red-300: #e57373;
|
|
911
|
-
--paper-red-400: #ef5350;
|
|
912
|
-
--paper-red-500: #f44336;
|
|
913
|
-
--paper-red-600: #e53935;
|
|
914
|
-
--paper-red-700: #d32f2f;
|
|
915
|
-
--paper-red-800: #c62828;
|
|
916
|
-
--paper-red-900: #b71c1c;
|
|
917
|
-
--paper-red-a100: #ff8a80;
|
|
918
|
-
--paper-red-a200: #ff5252;
|
|
919
|
-
--paper-red-a400: #ff1744;
|
|
920
|
-
--paper-red-a700: #d50000;
|
|
921
|
-
|
|
922
|
-
--paper-pink-50: #fce4ec;
|
|
923
|
-
--paper-pink-100: #f8bbd0;
|
|
924
|
-
--paper-pink-200: #f48fb1;
|
|
925
|
-
--paper-pink-300: #f06292;
|
|
926
|
-
--paper-pink-400: #ec407a;
|
|
927
|
-
--paper-pink-500: #e91e63;
|
|
928
|
-
--paper-pink-600: #d81b60;
|
|
929
|
-
--paper-pink-700: #c2185b;
|
|
930
|
-
--paper-pink-800: #ad1457;
|
|
931
|
-
--paper-pink-900: #880e4f;
|
|
932
|
-
--paper-pink-a100: #ff80ab;
|
|
933
|
-
--paper-pink-a200: #ff4081;
|
|
934
|
-
--paper-pink-a400: #f50057;
|
|
935
|
-
--paper-pink-a700: #c51162;
|
|
936
|
-
|
|
937
|
-
--paper-purple-50: #f3e5f5;
|
|
938
|
-
--paper-purple-100: #e1bee7;
|
|
939
|
-
--paper-purple-200: #ce93d8;
|
|
940
|
-
--paper-purple-300: #ba68c8;
|
|
941
|
-
--paper-purple-400: #ab47bc;
|
|
942
|
-
--paper-purple-500: #9c27b0;
|
|
943
|
-
--paper-purple-600: #8e24aa;
|
|
944
|
-
--paper-purple-700: #7b1fa2;
|
|
945
|
-
--paper-purple-800: #6a1b9a;
|
|
946
|
-
--paper-purple-900: #4a148c;
|
|
947
|
-
--paper-purple-a100: #ea80fc;
|
|
948
|
-
--paper-purple-a200: #e040fb;
|
|
949
|
-
--paper-purple-a400: #d500f9;
|
|
950
|
-
--paper-purple-a700: #aa00ff;
|
|
951
|
-
|
|
952
|
-
--paper-deep-purple-50: #ede7f6;
|
|
953
|
-
--paper-deep-purple-100: #d1c4e9;
|
|
954
|
-
--paper-deep-purple-200: #b39ddb;
|
|
955
|
-
--paper-deep-purple-300: #9575cd;
|
|
956
|
-
--paper-deep-purple-400: #7e57c2;
|
|
957
|
-
--paper-deep-purple-500: #673ab7;
|
|
958
|
-
--paper-deep-purple-600: #5e35b1;
|
|
959
|
-
--paper-deep-purple-700: #512da8;
|
|
960
|
-
--paper-deep-purple-800: #4527a0;
|
|
961
|
-
--paper-deep-purple-900: #311b92;
|
|
962
|
-
--paper-deep-purple-a100: #b388ff;
|
|
963
|
-
--paper-deep-purple-a200: #7c4dff;
|
|
964
|
-
--paper-deep-purple-a400: #651fff;
|
|
965
|
-
--paper-deep-purple-a700: #6200ea;
|
|
966
|
-
|
|
967
|
-
--paper-indigo-50: #e8eaf6;
|
|
968
|
-
--paper-indigo-100: #c5cae9;
|
|
969
|
-
--paper-indigo-200: #9fa8da;
|
|
970
|
-
--paper-indigo-300: #7986cb;
|
|
971
|
-
--paper-indigo-400: #5c6bc0;
|
|
972
|
-
--paper-indigo-500: #3f51b5;
|
|
973
|
-
--paper-indigo-600: #3949ab;
|
|
974
|
-
--paper-indigo-700: #303f9f;
|
|
975
|
-
--paper-indigo-800: #283593;
|
|
976
|
-
--paper-indigo-900: #1a237e;
|
|
977
|
-
--paper-indigo-a100: #8c9eff;
|
|
978
|
-
--paper-indigo-a200: #536dfe;
|
|
979
|
-
--paper-indigo-a400: #3d5afe;
|
|
980
|
-
--paper-indigo-a700: #304ffe;
|
|
981
|
-
|
|
982
|
-
--paper-blue-50: #e3f2fd;
|
|
983
|
-
--paper-blue-100: #bbdefb;
|
|
984
|
-
--paper-blue-200: #90caf9;
|
|
985
|
-
--paper-blue-300: #64b5f6;
|
|
986
|
-
--paper-blue-400: #42a5f5;
|
|
987
|
-
--paper-blue-500: #2196f3;
|
|
988
|
-
--paper-blue-600: #1e88e5;
|
|
989
|
-
--paper-blue-700: #1976d2;
|
|
990
|
-
--paper-blue-800: #1565c0;
|
|
991
|
-
--paper-blue-900: #0d47a1;
|
|
992
|
-
--paper-blue-a100: #82b1ff;
|
|
993
|
-
--paper-blue-a200: #448aff;
|
|
994
|
-
--paper-blue-a400: #2979ff;
|
|
995
|
-
--paper-blue-a700: #2962ff;
|
|
996
|
-
|
|
997
|
-
--paper-light-blue-50: #e1f5fe;
|
|
998
|
-
--paper-light-blue-100: #b3e5fc;
|
|
999
|
-
--paper-light-blue-200: #81d4fa;
|
|
1000
|
-
--paper-light-blue-300: #4fc3f7;
|
|
1001
|
-
--paper-light-blue-400: #29b6f6;
|
|
1002
|
-
--paper-light-blue-500: #03a9f4;
|
|
1003
|
-
--paper-light-blue-600: #039be5;
|
|
1004
|
-
--paper-light-blue-700: #0288d1;
|
|
1005
|
-
--paper-light-blue-800: #0277bd;
|
|
1006
|
-
--paper-light-blue-900: #01579b;
|
|
1007
|
-
--paper-light-blue-a100: #80d8ff;
|
|
1008
|
-
--paper-light-blue-a200: #40c4ff;
|
|
1009
|
-
--paper-light-blue-a400: #00b0ff;
|
|
1010
|
-
--paper-light-blue-a700: #0091ea;
|
|
1011
|
-
|
|
1012
|
-
--paper-cyan-50: #e0f7fa;
|
|
1013
|
-
--paper-cyan-100: #b2ebf2;
|
|
1014
|
-
--paper-cyan-200: #80deea;
|
|
1015
|
-
--paper-cyan-300: #4dd0e1;
|
|
1016
|
-
--paper-cyan-400: #26c6da;
|
|
1017
|
-
--paper-cyan-500: #00bcd4;
|
|
1018
|
-
--paper-cyan-600: #00acc1;
|
|
1019
|
-
--paper-cyan-700: #0097a7;
|
|
1020
|
-
--paper-cyan-800: #00838f;
|
|
1021
|
-
--paper-cyan-900: #006064;
|
|
1022
|
-
--paper-cyan-a100: #84ffff;
|
|
1023
|
-
--paper-cyan-a200: #18ffff;
|
|
1024
|
-
--paper-cyan-a400: #00e5ff;
|
|
1025
|
-
--paper-cyan-a700: #00b8d4;
|
|
1026
|
-
|
|
1027
|
-
--paper-teal-50: #e0f2f1;
|
|
1028
|
-
--paper-teal-100: #b2dfdb;
|
|
1029
|
-
--paper-teal-200: #80cbc4;
|
|
1030
|
-
--paper-teal-300: #4db6ac;
|
|
1031
|
-
--paper-teal-400: #26a69a;
|
|
1032
|
-
--paper-teal-500: #009688;
|
|
1033
|
-
--paper-teal-600: #00897b;
|
|
1034
|
-
--paper-teal-700: #00796b;
|
|
1035
|
-
--paper-teal-800: #00695c;
|
|
1036
|
-
--paper-teal-900: #004d40;
|
|
1037
|
-
--paper-teal-a100: #a7ffeb;
|
|
1038
|
-
--paper-teal-a200: #64ffda;
|
|
1039
|
-
--paper-teal-a400: #1de9b6;
|
|
1040
|
-
--paper-teal-a700: #00bfa5;
|
|
1041
|
-
|
|
1042
|
-
--paper-green-50: #e8f5e9;
|
|
1043
|
-
--paper-green-100: #c8e6c9;
|
|
1044
|
-
--paper-green-200: #a5d6a7;
|
|
1045
|
-
--paper-green-300: #81c784;
|
|
1046
|
-
--paper-green-400: #66bb6a;
|
|
1047
|
-
--paper-green-500: #4caf50;
|
|
1048
|
-
--paper-green-600: #43a047;
|
|
1049
|
-
--paper-green-700: #388e3c;
|
|
1050
|
-
--paper-green-800: #2e7d32;
|
|
1051
|
-
--paper-green-900: #1b5e20;
|
|
1052
|
-
--paper-green-a100: #b9f6ca;
|
|
1053
|
-
--paper-green-a200: #69f0ae;
|
|
1054
|
-
--paper-green-a400: #00e676;
|
|
1055
|
-
--paper-green-a700: #00c853;
|
|
1056
|
-
|
|
1057
|
-
--paper-light-green-50: #f1f8e9;
|
|
1058
|
-
--paper-light-green-100: #dcedc8;
|
|
1059
|
-
--paper-light-green-200: #c5e1a5;
|
|
1060
|
-
--paper-light-green-300: #aed581;
|
|
1061
|
-
--paper-light-green-400: #9ccc65;
|
|
1062
|
-
--paper-light-green-500: #8bc34a;
|
|
1063
|
-
--paper-light-green-600: #7cb342;
|
|
1064
|
-
--paper-light-green-700: #689f38;
|
|
1065
|
-
--paper-light-green-800: #558b2f;
|
|
1066
|
-
--paper-light-green-900: #33691e;
|
|
1067
|
-
--paper-light-green-a100: #ccff90;
|
|
1068
|
-
--paper-light-green-a200: #b2ff59;
|
|
1069
|
-
--paper-light-green-a400: #76ff03;
|
|
1070
|
-
--paper-light-green-a700: #64dd17;
|
|
1071
|
-
|
|
1072
|
-
--paper-lime-50: #f9fbe7;
|
|
1073
|
-
--paper-lime-100: #f0f4c3;
|
|
1074
|
-
--paper-lime-200: #e6ee9c;
|
|
1075
|
-
--paper-lime-300: #dce775;
|
|
1076
|
-
--paper-lime-400: #d4e157;
|
|
1077
|
-
--paper-lime-500: #cddc39;
|
|
1078
|
-
--paper-lime-600: #c0ca33;
|
|
1079
|
-
--paper-lime-700: #afb42b;
|
|
1080
|
-
--paper-lime-800: #9e9d24;
|
|
1081
|
-
--paper-lime-900: #827717;
|
|
1082
|
-
--paper-lime-a100: #f4ff81;
|
|
1083
|
-
--paper-lime-a200: #eeff41;
|
|
1084
|
-
--paper-lime-a400: #c6ff00;
|
|
1085
|
-
--paper-lime-a700: #aeea00;
|
|
1086
|
-
|
|
1087
|
-
--paper-yellow-50: #fffde7;
|
|
1088
|
-
--paper-yellow-100: #fff9c4;
|
|
1089
|
-
--paper-yellow-200: #fff59d;
|
|
1090
|
-
--paper-yellow-300: #fff176;
|
|
1091
|
-
--paper-yellow-400: #ffee58;
|
|
1092
|
-
--paper-yellow-500: #ffeb3b;
|
|
1093
|
-
--paper-yellow-600: #fdd835;
|
|
1094
|
-
--paper-yellow-700: #fbc02d;
|
|
1095
|
-
--paper-yellow-800: #f9a825;
|
|
1096
|
-
--paper-yellow-900: #f57f17;
|
|
1097
|
-
--paper-yellow-a100: #ffff8d;
|
|
1098
|
-
--paper-yellow-a200: #ffff00;
|
|
1099
|
-
--paper-yellow-a400: #ffea00;
|
|
1100
|
-
--paper-yellow-a700: #ffd600;
|
|
1101
|
-
|
|
1102
|
-
--paper-amber-50: #fff8e1;
|
|
1103
|
-
--paper-amber-100: #ffecb3;
|
|
1104
|
-
--paper-amber-200: #ffe082;
|
|
1105
|
-
--paper-amber-300: #ffd54f;
|
|
1106
|
-
--paper-amber-400: #ffca28;
|
|
1107
|
-
--paper-amber-500: #ffc107;
|
|
1108
|
-
--paper-amber-600: #ffb300;
|
|
1109
|
-
--paper-amber-700: #ffa000;
|
|
1110
|
-
--paper-amber-800: #ff8f00;
|
|
1111
|
-
--paper-amber-900: #ff6f00;
|
|
1112
|
-
--paper-amber-a100: #ffe57f;
|
|
1113
|
-
--paper-amber-a200: #ffd740;
|
|
1114
|
-
--paper-amber-a400: #ffc400;
|
|
1115
|
-
--paper-amber-a700: #ffab00;
|
|
1116
|
-
|
|
1117
|
-
--paper-orange-50: #fff3e0;
|
|
1118
|
-
--paper-orange-100: #ffe0b2;
|
|
1119
|
-
--paper-orange-200: #ffcc80;
|
|
1120
|
-
--paper-orange-300: #ffb74d;
|
|
1121
|
-
--paper-orange-400: #ffa726;
|
|
1122
|
-
--paper-orange-500: #ff9800;
|
|
1123
|
-
--paper-orange-600: #fb8c00;
|
|
1124
|
-
--paper-orange-700: #f57c00;
|
|
1125
|
-
--paper-orange-800: #ef6c00;
|
|
1126
|
-
--paper-orange-900: #e65100;
|
|
1127
|
-
--paper-orange-a100: #ffd180;
|
|
1128
|
-
--paper-orange-a200: #ffab40;
|
|
1129
|
-
--paper-orange-a400: #ff9100;
|
|
1130
|
-
--paper-orange-a700: #ff6500;
|
|
1131
|
-
|
|
1132
|
-
--paper-deep-orange-50: #fbe9e7;
|
|
1133
|
-
--paper-deep-orange-100: #ffccbc;
|
|
1134
|
-
--paper-deep-orange-200: #ffab91;
|
|
1135
|
-
--paper-deep-orange-300: #ff8a65;
|
|
1136
|
-
--paper-deep-orange-400: #ff7043;
|
|
1137
|
-
--paper-deep-orange-500: #ff5722;
|
|
1138
|
-
--paper-deep-orange-600: #f4511e;
|
|
1139
|
-
--paper-deep-orange-700: #e64a19;
|
|
1140
|
-
--paper-deep-orange-800: #d84315;
|
|
1141
|
-
--paper-deep-orange-900: #bf360c;
|
|
1142
|
-
--paper-deep-orange-a100: #ff9e80;
|
|
1143
|
-
--paper-deep-orange-a200: #ff6e40;
|
|
1144
|
-
--paper-deep-orange-a400: #ff3d00;
|
|
1145
|
-
--paper-deep-orange-a700: #dd2c00;
|
|
1146
|
-
|
|
1147
|
-
--paper-brown-50: #efebe9;
|
|
1148
|
-
--paper-brown-100: #d7ccc8;
|
|
1149
|
-
--paper-brown-200: #bcaaa4;
|
|
1150
|
-
--paper-brown-300: #a1887f;
|
|
1151
|
-
--paper-brown-400: #8d6e63;
|
|
1152
|
-
--paper-brown-500: #795548;
|
|
1153
|
-
--paper-brown-600: #6d4c41;
|
|
1154
|
-
--paper-brown-700: #5d4037;
|
|
1155
|
-
--paper-brown-800: #4e342e;
|
|
1156
|
-
--paper-brown-900: #3e2723;
|
|
1157
|
-
|
|
1158
|
-
--paper-grey-50: #fafafa;
|
|
1159
|
-
--paper-grey-100: #f5f5f5;
|
|
1160
|
-
--paper-grey-200: #eeeeee;
|
|
1161
|
-
--paper-grey-300: #e0e0e0;
|
|
1162
|
-
--paper-grey-400: #bdbdbd;
|
|
1163
|
-
--paper-grey-500: #9e9e9e;
|
|
1164
|
-
--paper-grey-600: #757575;
|
|
1165
|
-
--paper-grey-700: #616161;
|
|
1166
|
-
--paper-grey-800: #424242;
|
|
1167
|
-
--paper-grey-900: #212121;
|
|
1168
|
-
|
|
1169
|
-
--paper-blue-grey-50: #eceff1;
|
|
1170
|
-
--paper-blue-grey-100: #cfd8dc;
|
|
1171
|
-
--paper-blue-grey-200: #b0bec5;
|
|
1172
|
-
--paper-blue-grey-300: #90a4ae;
|
|
1173
|
-
--paper-blue-grey-400: #78909c;
|
|
1174
|
-
--paper-blue-grey-500: #607d8b;
|
|
1175
|
-
--paper-blue-grey-600: #546e7a;
|
|
1176
|
-
--paper-blue-grey-700: #455a64;
|
|
1177
|
-
--paper-blue-grey-800: #37474f;
|
|
1178
|
-
--paper-blue-grey-900: #263238;
|
|
1179
|
-
|
|
1180
|
-
/* opacity for dark text on a light background */
|
|
1181
|
-
--dark-divider-opacity: 0.12;
|
|
1182
|
-
--dark-disabled-opacity: 0.38; /* or hint text or icon */
|
|
1183
|
-
--dark-secondary-opacity: 0.54;
|
|
1184
|
-
--dark-primary-opacity: 0.87;
|
|
1185
|
-
|
|
1186
|
-
/* opacity for light text on a dark background */
|
|
1187
|
-
--light-divider-opacity: 0.12;
|
|
1188
|
-
--light-disabled-opacity: 0.3; /* or hint text or icon */
|
|
1189
|
-
--light-secondary-opacity: 0.7;
|
|
1190
|
-
--light-primary-opacity: 1.0;
|
|
1191
|
-
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
|
-
</style>
|
|
1195
|
-
</custom-style>
|
|
1196
|
-
`;wo.setAttribute("style","display: none;"),document.head.appendChild(wo.content);
|
|
1197
|
-
/**
|
|
1198
|
-
@license
|
|
1199
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1200
|
-
This code may only be used under the BSD style license found at
|
|
1201
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1202
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1203
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1204
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1205
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1206
|
-
*/
|
|
1207
|
-
const Co=eo`
|
|
1208
|
-
<custom-style>
|
|
1209
|
-
<style is="custom-style">
|
|
1210
|
-
html {
|
|
1211
|
-
/*
|
|
1212
|
-
* You can use these generic variables in your elements for easy theming.
|
|
1213
|
-
* For example, if all your elements use \`--primary-text-color\` as its main
|
|
1214
|
-
* color, then switching from a light to a dark theme is just a matter of
|
|
1215
|
-
* changing the value of \`--primary-text-color\` in your application.
|
|
1216
|
-
*/
|
|
1217
|
-
--primary-text-color: var(--light-theme-text-color);
|
|
1218
|
-
--primary-background-color: var(--light-theme-background-color);
|
|
1219
|
-
--secondary-text-color: var(--light-theme-secondary-color);
|
|
1220
|
-
--disabled-text-color: var(--light-theme-disabled-color);
|
|
1221
|
-
--divider-color: var(--light-theme-divider-color);
|
|
1222
|
-
--error-color: var(--paper-deep-orange-a700);
|
|
1223
|
-
|
|
1224
|
-
/*
|
|
1225
|
-
* Primary and accent colors. Also see color.js for more colors.
|
|
1226
|
-
*/
|
|
1227
|
-
--primary-color: var(--paper-indigo-500);
|
|
1228
|
-
--light-primary-color: var(--paper-indigo-100);
|
|
1229
|
-
--dark-primary-color: var(--paper-indigo-700);
|
|
1230
|
-
|
|
1231
|
-
--accent-color: var(--paper-pink-a200);
|
|
1232
|
-
--light-accent-color: var(--paper-pink-a100);
|
|
1233
|
-
--dark-accent-color: var(--paper-pink-a400);
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
/*
|
|
1237
|
-
* Material Design Light background theme
|
|
1238
|
-
*/
|
|
1239
|
-
--light-theme-background-color: #ffffff;
|
|
1240
|
-
--light-theme-base-color: #000000;
|
|
1241
|
-
--light-theme-text-color: var(--paper-grey-900);
|
|
1242
|
-
--light-theme-secondary-color: #737373; /* for secondary text and icons */
|
|
1243
|
-
--light-theme-disabled-color: #9b9b9b; /* disabled/hint text */
|
|
1244
|
-
--light-theme-divider-color: #dbdbdb;
|
|
1245
|
-
|
|
1246
|
-
/*
|
|
1247
|
-
* Material Design Dark background theme
|
|
1248
|
-
*/
|
|
1249
|
-
--dark-theme-background-color: var(--paper-grey-900);
|
|
1250
|
-
--dark-theme-base-color: #ffffff;
|
|
1251
|
-
--dark-theme-text-color: #ffffff;
|
|
1252
|
-
--dark-theme-secondary-color: #bcbcbc; /* for secondary text and icons */
|
|
1253
|
-
--dark-theme-disabled-color: #646464; /* disabled/hint text */
|
|
1254
|
-
--dark-theme-divider-color: #3c3c3c;
|
|
1255
|
-
|
|
1256
|
-
/*
|
|
1257
|
-
* Deprecated values because of their confusing names.
|
|
1258
|
-
*/
|
|
1259
|
-
--text-primary-color: var(--dark-theme-text-color);
|
|
1260
|
-
--default-primary-color: var(--primary-color);
|
|
1261
|
-
}
|
|
1262
|
-
</style>
|
|
1263
|
-
</custom-style>`;Co.setAttribute("style","display: none;"),document.head.appendChild(Co.content);
|
|
1264
|
-
/**
|
|
1265
|
-
@license
|
|
1266
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1267
|
-
This code may only be used under the BSD style license found at
|
|
1268
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1269
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1270
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1271
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1272
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1273
|
-
*/
|
|
1274
|
-
const Po={properties:{focused:{type:Boolean,value:!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:String},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}},observers:["_changedControlState(focused, disabled)"],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0),this.addEventListener("blur",this._boundFocusBlurHandler,!0)},_focusBlurHandler:function(e){this._setFocused("focus"===e.type)},_disabledChanged:function(e,t){this.setAttribute("aria-disabled",e?"true":"false"),this.style.pointerEvents=e?"none":"",e?(this._oldTabIndex=this.getAttribute("tabindex"),this._setFocused(!1),this.tabIndex=-1,this.blur()):void 0!==this._oldTabIndex&&(null===this._oldTabIndex?this.removeAttribute("tabindex"):this.setAttribute("tabindex",this._oldTabIndex))},_changedControlState:function(){this._controlStateChanged&&this._controlStateChanged()}};
|
|
1275
|
-
/**
|
|
1276
|
-
@license
|
|
1277
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1278
|
-
This code may only be used under the BSD style license found at
|
|
1279
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1280
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1281
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1282
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1283
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1284
|
-
*/var So={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},xo={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},ko={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},Eo=/[a-z0-9*]/,Ao=/U\+/,To=/^arrow/,Oo=/^space(bar)?/,No=/^escape$/;function Io(e,t){var i="";if(e){var n=e.toLowerCase();" "===n||Oo.test(n)?i="space":No.test(n)?i="esc":1==n.length?t&&!Eo.test(n)||(i=n):i=To.test(n)?n.replace("arrow",""):"multiply"==n?"*":n}return i}function Mo(e){var t="";return e&&(e in So?t=So[e]:Ao.test(e)?(e=parseInt(e.replace("U+","0x"),16),t=String.fromCharCode(e).toLowerCase()):t=e.toLowerCase()),t}function Do(e){var t="";return Number(e)&&(t=e>=65&&e<=90?String.fromCharCode(32+e):e>=112&&e<=123?"f"+(e-112+1):e>=48&&e<=57?String(e-48):e>=96&&e<=105?String(e-96):xo[e]),t}function Ro(e,t){return e.key?Io(e.key,t):e.detail&&e.detail.key?Io(e.detail.key,t):Mo(e.keyIdentifier)||Do(e.keyCode)||""}function Lo(e,t){return Ro(t,e.hasModifiers)===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey)}function Fo(e){return 1===e.length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce((function(e,t){var i=t.split(":"),n=i[0],r=i[1];return n in ko?(e[ko[n]]=!0,e.hasModifiers=!0):(e.key=n,e.event=r||"keydown"),e}),{combo:e.split(":").shift()})}function Bo(e){return e.trim().split(" ").map((function(e){return Fo(e)}))}const Ho={properties:{keyEventTarget:{type:Object,value:function(){return this}},stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},_imperativeKeyBindings:{type:Object,value:function(){return{}}}},observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},attached:function(){this._listenKeyEventListeners()},detached:function(){this._unlistenKeyEventListeners()},addOwnKeyBinding:function(e,t){this._imperativeKeyBindings[e]=t,this._prepKeyBindings(),this._resetKeyEventListeners()},removeOwnKeyBindings:function(){this._imperativeKeyBindings={},this._prepKeyBindings(),this._resetKeyEventListeners()},keyboardEventMatchesKeys:function(e,t){for(var i=Bo(t),n=0;n<i.length;++n)if(Lo(i[n],e))return!0;return!1},_collectKeyBindings:function(){var e=this.behaviors.map((function(e){return e.keyBindings}));return-1===e.indexOf(this.keyBindings)&&e.push(this.keyBindings),e},_prepKeyBindings:function(){for(var e in this._keyBindings={},this._collectKeyBindings().forEach((function(e){for(var t in e)this._addKeyBinding(t,e[t])}),this),this._imperativeKeyBindings)this._addKeyBinding(e,this._imperativeKeyBindings[e]);for(var t in this._keyBindings)this._keyBindings[t].sort((function(e,t){var i=e[0].hasModifiers;return i===t[0].hasModifiers?0:i?-1:1}))},_addKeyBinding:function(e,t){Bo(e).forEach((function(e){this._keyBindings[e.event]=this._keyBindings[e.event]||[],this._keyBindings[e.event].push([e,t])}),this)},_resetKeyEventListeners:function(){this._unlistenKeyEventListeners(),this.isAttached&&this._listenKeyEventListeners()},_listenKeyEventListeners:function(){this.keyEventTarget&&Object.keys(this._keyBindings).forEach((function(e){var t=this._keyBindings[e],i=this._onKeyBindingEvent.bind(this,t);this._boundKeyHandlers.push([this.keyEventTarget,e,i]),this.keyEventTarget.addEventListener(e,i)}),this)},_unlistenKeyEventListeners:function(){for(var e,t,i,n;this._boundKeyHandlers.length;)t=(e=this._boundKeyHandlers.pop())[0],i=e[1],n=e[2],t.removeEventListener(i,n)},_onKeyBindingEvent:function(e,t){if(this.stopKeyboardEventPropagation&&t.stopPropagation(),!t.defaultPrevented)for(var i=0;i<e.length;i++){var n=e[i][0],r=e[i][1];if(Lo(n,t)&&(this._triggerKeyHandler(n,r,t),t.defaultPrevented))return}},_triggerKeyHandler:function(e,t,i){var n=Object.create(e);n.keyboardEvent=i;var r=new CustomEvent(e.event,{detail:n,cancelable:!0});this[t].call(this,r),r.defaultPrevented&&i.preventDefault()}},zo={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown:{type:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,readOnly:!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaActiveAttributeChanged"}},listeners:{down:"_downHandler",up:"_upHandler",tap:"_tapHandler"},observers:["_focusChanged(focused)","_activeChanged(active, ariaActiveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown":"_spaceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse/,_tapHandler:function(){this.toggles?this._userActivate(!this.active):this.active=!1},_focusChanged:function(e){this._detectKeyboardFocus(e),e||this._setPressed(!1)},_detectKeyboardFocus:function(e){this._setReceivedFocusFromKeyboard(!this.pointerDown&&e)},_userActivate:function(e){this.active!==e&&(this.active=e,this.fire("change"))},_downHandler:function(e){this._setPointerDown(!0),this._setPressed(!0),this._setReceivedFocusFromKeyboard(!1)},_upHandler:function(){this._setPointerDown(!1),this._setPressed(!1)},_spaceKeyDownHandler:function(e){var t=e.detail.keyboardEvent,i=ts(t).localTarget;this.isLightDescendant(i)||(t.preventDefault(),t.stopImmediatePropagation(),this._setPressed(!0))},_spaceKeyUpHandler:function(e){var t=e.detail.keyboardEvent,i=ts(t).localTarget;this.isLightDescendant(i)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},_asyncClick:function(){this.async((function(){this.click()}),1)},_pressedChanged:function(e){this._changedButtonState()},_ariaActiveAttributeChanged:function(e,t){t&&t!=e&&this.hasAttribute(t)&&this.removeAttribute(t)},_activeChanged:function(e,t){this.toggles?this.setAttribute(this.ariaActiveAttribute,e?"true":"false"):this.removeAttribute(this.ariaActiveAttribute),this._changedButtonState()},_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},jo=[Ho,zo];
|
|
1285
|
-
/**
|
|
1286
|
-
@license
|
|
1287
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1288
|
-
This code may only be used under the BSD style license found at
|
|
1289
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1290
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1291
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1292
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1293
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1294
|
-
*/
|
|
1295
|
-
/**
|
|
1296
|
-
@license
|
|
1297
|
-
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
|
1298
|
-
This code may only be used under the BSD style license found at
|
|
1299
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1300
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1301
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1302
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1303
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1304
|
-
*/
|
|
1305
|
-
var Uo={distance:function(e,t,i,n){var r=e-i,s=t-n;return Math.sqrt(r*r+s*s)},now:window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now};function Ko(e){this.element=e,this.width=this.boundingRect.width,this.height=this.boundingRect.height,this.size=Math.max(this.width,this.height)}function qo(e){this.element=e,this.color=window.getComputedStyle(e).color,this.wave=document.createElement("div"),this.waveContainer=document.createElement("div"),this.wave.style.backgroundColor=this.color,this.wave.classList.add("wave"),this.waveContainer.classList.add("wave-container"),ts(this.waveContainer).appendChild(this.wave),this.resetInteractionState()}Ko.prototype={get boundingRect(){return this.element.getBoundingClientRect()},furthestCornerDistanceFrom:function(e,t){var i=Uo.distance(e,t,0,0),n=Uo.distance(e,t,this.width,0),r=Uo.distance(e,t,0,this.height),s=Uo.distance(e,t,this.width,this.height);return Math.max(i,n,r,s)}},qo.MAX_RADIUS=300,qo.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){var e;return this.mouseDownStart?(e=Uo.now()-this.mouseDownStart,this.mouseUpStart&&(e-=this.mouseUpElapsed),e):0},get mouseUpElapsed(){return this.mouseUpStart?Uo.now()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1e3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1e3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var e=this.containerMetrics.width*this.containerMetrics.width,t=this.containerMetrics.height*this.containerMetrics.height,i=1.1*Math.min(Math.sqrt(e+t),qo.MAX_RADIUS)+5,n=1.1-i/qo.MAX_RADIUS*.2,r=this.mouseInteractionSeconds/n,s=i*(1-Math.pow(80,-r));return Math.abs(s)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){var e=.3*this.mouseUpElapsedSeconds,t=this.opacity;return Math.max(0,Math.min(e,t))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,qo.MAX_RADIUS)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,qo.MAX_RADIUS)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},resetInteractionState:function(){this.maxRadius=0,this.mouseDownStart=0,this.mouseUpStart=0,this.xStart=0,this.yStart=0,this.xEnd=0,this.yEnd=0,this.slideDistance=0,this.containerMetrics=new Ko(this.element)},draw:function(){var e,t,i;this.wave.style.opacity=this.opacity,e=this.radius/(this.containerMetrics.size/2),t=this.xNow-this.containerMetrics.width/2,i=this.yNow-this.containerMetrics.height/2,this.waveContainer.style.webkitTransform="translate("+t+"px, "+i+"px)",this.waveContainer.style.transform="translate3d("+t+"px, "+i+"px, 0)",this.wave.style.webkitTransform="scale("+e+","+e+")",this.wave.style.transform="scale3d("+e+","+e+",1)"},downAction:function(e){var t=this.containerMetrics.width/2,i=this.containerMetrics.height/2;this.resetInteractionState(),this.mouseDownStart=Uo.now(),this.center?(this.xStart=t,this.yStart=i,this.slideDistance=Uo.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)):(this.xStart=e?e.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=e?e.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2),this.recenters&&(this.xEnd=t,this.yEnd=i,this.slideDistance=Uo.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)),this.maxRadius=this.containerMetrics.furthestCornerDistanceFrom(this.xStart,this.yStart),this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px",this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px",this.waveContainer.style.width=this.containerMetrics.size+"px",this.waveContainer.style.height=this.containerMetrics.size+"px"},upAction:function(e){this.isMouseDown&&(this.mouseUpStart=Uo.now())},remove:function(){ts(ts(this.waveContainer).parentNode).removeChild(this.waveContainer)}},Ps({_template:eo`
|
|
1306
|
-
<style>
|
|
1307
|
-
:host {
|
|
1308
|
-
display: block;
|
|
1309
|
-
position: absolute;
|
|
1310
|
-
border-radius: inherit;
|
|
1311
|
-
overflow: hidden;
|
|
1312
|
-
top: 0;
|
|
1313
|
-
left: 0;
|
|
1314
|
-
right: 0;
|
|
1315
|
-
bottom: 0;
|
|
1316
|
-
|
|
1317
|
-
/* See PolymerElements/paper-behaviors/issues/34. On non-Chrome browsers,
|
|
1318
|
-
* creating a node (with a position:absolute) in the middle of an event
|
|
1319
|
-
* handler "interrupts" that event handler (which happens when the
|
|
1320
|
-
* ripple is created on demand) */
|
|
1321
|
-
pointer-events: none;
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
:host([animating]) {
|
|
1325
|
-
/* This resolves a rendering issue in Chrome (as of 40) where the
|
|
1326
|
-
ripple is not properly clipped by its parent (which may have
|
|
1327
|
-
rounded corners). See: http://jsbin.com/temexa/4
|
|
1328
|
-
|
|
1329
|
-
Note: We only apply this style conditionally. Otherwise, the browser
|
|
1330
|
-
will create a new compositing layer for every ripple element on the
|
|
1331
|
-
page, and that would be bad. */
|
|
1332
|
-
-webkit-transform: translate(0, 0);
|
|
1333
|
-
transform: translate3d(0, 0, 0);
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
#background,
|
|
1337
|
-
#waves,
|
|
1338
|
-
.wave-container,
|
|
1339
|
-
.wave {
|
|
1340
|
-
pointer-events: none;
|
|
1341
|
-
position: absolute;
|
|
1342
|
-
top: 0;
|
|
1343
|
-
left: 0;
|
|
1344
|
-
width: 100%;
|
|
1345
|
-
height: 100%;
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
#background,
|
|
1349
|
-
.wave {
|
|
1350
|
-
opacity: 0;
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
#waves,
|
|
1354
|
-
.wave {
|
|
1355
|
-
overflow: hidden;
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
.wave-container,
|
|
1359
|
-
.wave {
|
|
1360
|
-
border-radius: 50%;
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
:host(.circle) #background,
|
|
1364
|
-
:host(.circle) #waves {
|
|
1365
|
-
border-radius: 50%;
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
:host(.circle) .wave-container {
|
|
1369
|
-
overflow: hidden;
|
|
1370
|
-
}
|
|
1371
|
-
</style>
|
|
1372
|
-
|
|
1373
|
-
<div id="background"></div>
|
|
1374
|
-
<div id="waves"></div>
|
|
1375
|
-
`,is:"paper-ripple",behaviors:[Ho],properties:{initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Array,value:function(){return[]}},animating:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Function,value:function(){return this.animate.bind(this)}}},get target(){return this.keyEventTarget},keyBindings:{"enter:keydown":"_onEnterKeydown","space:keydown":"_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){11==ts(this).parentNode.nodeType?this.keyEventTarget=ts(this).getOwnerRoot().host:this.keyEventTarget=ts(this).parentNode;var e=this.keyEventTarget;this.listen(e,"up","uiUpAction"),this.listen(e,"down","uiDownAction")},detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction"),this.unlisten(this.keyEventTarget,"down","uiDownAction"),this.keyEventTarget=null},get shouldKeepAnimating(){for(var e=0;e<this.ripples.length;++e)if(!this.ripples[e].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null),this.async((function(){this.upAction()}),1)},uiDownAction:function(e){this.noink||this.downAction(e)},downAction:function(e){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(e),this._animating||(this._animating=!0,this.animate()))},uiUpAction:function(e){this.noink||this.upAction(e)},upAction:function(e){this.holdDown||(this.ripples.forEach((function(t){t.upAction(e)})),this._animating=!0,this.animate())},onAnimationComplete:function(){this._animating=!1,this.$.background.style.backgroundColor="",this.fire("transitionend")},addRipple:function(){var e=new qo(this);return ts(this.$.waves).appendChild(e.waveContainer),this.$.background.style.backgroundColor=e.color,this.ripples.push(e),this._setAnimating(!0),e},removeRipple:function(e){var t=this.ripples.indexOf(e);t<0||(this.ripples.splice(t,1),e.remove(),this.ripples.length||this._setAnimating(!1))},animate:function(){if(this._animating){var e,t;for(e=0;e<this.ripples.length;++e)(t=this.ripples[e]).draw(),this.$.background.style.opacity=t.outerOpacity,t.isOpacityFullyDecayed&&!t.isRestingAtMaxRadius&&this.removeRipple(t);this.shouldKeepAnimating||0!==this.ripples.length?window.requestAnimationFrame(this._boundAnimate):this.onAnimationComplete()}},animateRipple:function(){return this.animate()},_onEnterKeydown:function(){this.uiDownAction(),this.async(this.uiUpAction,1)},_onSpaceKeydown:function(){this.uiDownAction()},_onSpaceKeyup:function(){this.uiUpAction()},_holdDownChanged:function(e,t){void 0!==t&&(e?this.downAction():this.upAction())}});
|
|
1376
|
-
/**
|
|
1377
|
-
@license
|
|
1378
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1379
|
-
This code may only be used under the BSD style license found at
|
|
1380
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1381
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1382
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1383
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1384
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1385
|
-
*/
|
|
1386
|
-
const $o={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},_downHandler:function(e){zo._downHandler.call(this,e),this.pressed&&this.ensureRipple(e)},ensureRipple:function(e){if(!this.hasRipple()){this._ripple=this._createRipple(),this._ripple.noink=this.noink;var t=this._rippleContainer||this.root;if(t&&ts(t).appendChild(this._ripple),e){var i=ts(this._rippleContainer||this),n=ts(e).rootTarget;i.deepContains(n)&&this._ripple.uiDownAction(e)}}},getRipple:function(){return this.ensureRipple(),this._ripple},hasRipple:function(){return Boolean(this._ripple)},_createRipple:function(){return document.createElement("paper-ripple")},_noinkChanged:function(e){this.hasRipple()&&(this._ripple.noink=e)}};
|
|
1387
|
-
/**
|
|
1388
|
-
@license
|
|
1389
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1390
|
-
This code may only be used under the BSD style license found at
|
|
1391
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1392
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1393
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1394
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1395
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1396
|
-
*/Ps({is:"iron-iconset-svg",properties:{name:{type:String,observer:"_nameChanged"},size:{type:Number,value:24},rtlMirroring:{type:Boolean,value:!1},useGlobalRtlAttribute:{type:Boolean,value:!1}},created:function(){this._meta=new bo({type:"iconset",key:null,value:null})},attached:function(){this.style.display="none"},getIconNames:function(){return this._icons=this._createIconMap(),Object.keys(this._icons).map((function(e){return this.name+":"+e}),this)},applyIcon:function(e,t){this.removeIcon(e);var i=this._cloneIcon(t,this.rtlMirroring&&this._targetIsRTL(e));if(i){var n=ts(e.root||e);return n.insertBefore(i,n.childNodes[0]),e._svgIcon=i}return null},removeIcon:function(e){e._svgIcon&&(ts(e.root||e).removeChild(e._svgIcon),e._svgIcon=null)},_targetIsRTL:function(e){if(null==this.__targetIsRTL)if(this.useGlobalRtlAttribute){var t=document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement;this.__targetIsRTL="rtl"===t.getAttribute("dir")}else e&&e.nodeType!==Node.ELEMENT_NODE&&(e=e.host),this.__targetIsRTL=e&&"rtl"===window.getComputedStyle(e).direction;return this.__targetIsRTL},_nameChanged:function(){this._meta.value=null,this._meta.key=this.name,this._meta.value=this,this.async((function(){this.fire("iron-iconset-added",this,{node:window})}))},_createIconMap:function(){var e=Object.create(null);return ts(this).querySelectorAll("[id]").forEach((function(t){e[t.id]=t})),e},_cloneIcon:function(e,t){return this._icons=this._icons||this._createIconMap(),this._prepareSvgClone(this._icons[e],this.size,t)},_prepareSvgClone:function(e,t,i){if(e){var n=e.cloneNode(!0),r=document.createElementNS("http://www.w3.org/2000/svg","svg"),s=n.getAttribute("viewBox")||"0 0 "+t+" "+t,o="pointer-events: none; display: block; width: 100%; height: 100%;";return i&&n.hasAttribute("mirror-in-rtl")&&(o+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;"),r.setAttribute("viewBox",s),r.setAttribute("preserveAspectRatio","xMidYMid meet"),r.setAttribute("focusable","false"),r.style.cssText=o,r.appendChild(n).removeAttribute("id"),r}return null}});
|
|
1397
|
-
/**
|
|
1398
|
-
@license
|
|
1399
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1400
|
-
This code may only be used under the BSD style license found at
|
|
1401
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1402
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1403
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1404
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1405
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1406
|
-
*/
|
|
1407
|
-
let Yo=null;const Vo={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){Yo=new bo({type:"validator"})},_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},get _validator(){return Yo&&Yo.byKey(this.validator)},hasValidator:function(){return null!=this._validator},validate:function(e){return void 0===e&&void 0!==this.value?this.invalid=!this._getValidity(this.value):this.invalid=!this._getValidity(e),!this.invalid},_getValidity:function(e){return!this.hasValidator()||this._validator.validate(e)}},Jo={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},detached:function(){}},Xo={properties:{checked:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0,observer:"_checkedChanged"},toggles:{type:Boolean,value:!0,reflectToAttribute:!0},value:{type:String,value:"on",observer:"_valueChanged"}},observers:["_requiredChanged(required)"],created:function(){this._hasIronCheckedElementBehavior=!0},_getValidity:function(e){return this.disabled||!this.required||this.checked},_requiredChanged:function(){this.required?this.setAttribute("aria-required","true"):this.removeAttribute("aria-required")},_checkedChanged:function(){this.active=this.checked,this.fire("iron-change")},_valueChanged:function(){void 0!==this.value&&null!==this.value||(this.value="on")}},Wo={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(e){e&&this.ensureRipple(),this.hasRipple()&&(this._ripple.holdDown=e)},_createRipple:function(){var e=$o._createRipple();return e.id="ink",e.setAttribute("center",""),e.classList.add("circle"),e}},Go=[jo,Po,$o,Wo],Zo=[Go,[Jo,Vo,Xo],{_checkedChanged:function(){Xo._checkedChanged.call(this),this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},_buttonStateChanged:function(){$o._buttonStateChanged.call(this),this.disabled||this.isAttached&&(this.checked=this.active)}}],Qo=eo`<style>
|
|
1408
|
-
:host {
|
|
1409
|
-
display: inline-block;
|
|
1410
|
-
white-space: nowrap;
|
|
1411
|
-
cursor: pointer;
|
|
1412
|
-
--calculated-paper-checkbox-size: var(--paper-checkbox-size, 18px);
|
|
1413
|
-
/* -1px is a sentinel for the default and is replaced in \`attached\`. */
|
|
1414
|
-
--calculated-paper-checkbox-ink-size: var(--paper-checkbox-ink-size, -1px);
|
|
1415
|
-
@apply --paper-font-common-base;
|
|
1416
|
-
line-height: 0;
|
|
1417
|
-
-webkit-tap-highlight-color: transparent;
|
|
1418
|
-
}
|
|
1419
|
-
|
|
1420
|
-
:host([hidden]) {
|
|
1421
|
-
display: none !important;
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
:host(:focus) {
|
|
1425
|
-
outline: none;
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
.hidden {
|
|
1429
|
-
display: none;
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
#checkboxContainer {
|
|
1433
|
-
display: inline-block;
|
|
1434
|
-
position: relative;
|
|
1435
|
-
width: var(--calculated-paper-checkbox-size);
|
|
1436
|
-
height: var(--calculated-paper-checkbox-size);
|
|
1437
|
-
min-width: var(--calculated-paper-checkbox-size);
|
|
1438
|
-
margin: var(--paper-checkbox-margin, initial);
|
|
1439
|
-
vertical-align: var(--paper-checkbox-vertical-align, middle);
|
|
1440
|
-
background-color: var(--paper-checkbox-unchecked-background-color, transparent);
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
#ink {
|
|
1444
|
-
position: absolute;
|
|
1445
|
-
|
|
1446
|
-
/* Center the ripple in the checkbox by negative offsetting it by
|
|
1447
|
-
* (inkWidth - rippleWidth) / 2 */
|
|
1448
|
-
top: calc(0px - (var(--calculated-paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size)) / 2);
|
|
1449
|
-
left: calc(0px - (var(--calculated-paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size)) / 2);
|
|
1450
|
-
width: var(--calculated-paper-checkbox-ink-size);
|
|
1451
|
-
height: var(--calculated-paper-checkbox-ink-size);
|
|
1452
|
-
color: var(--paper-checkbox-unchecked-ink-color, var(--primary-text-color));
|
|
1453
|
-
opacity: 0.6;
|
|
1454
|
-
pointer-events: none;
|
|
1455
|
-
}
|
|
1456
|
-
|
|
1457
|
-
#ink:dir(rtl) {
|
|
1458
|
-
right: calc(0px - (var(--calculated-paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size)) / 2);
|
|
1459
|
-
left: auto;
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
#ink[checked] {
|
|
1463
|
-
color: var(--paper-checkbox-checked-ink-color, var(--primary-color));
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
#checkbox {
|
|
1467
|
-
position: relative;
|
|
1468
|
-
box-sizing: border-box;
|
|
1469
|
-
height: 100%;
|
|
1470
|
-
border: solid 2px;
|
|
1471
|
-
border-color: var(--paper-checkbox-unchecked-color, var(--primary-text-color));
|
|
1472
|
-
border-radius: 2px;
|
|
1473
|
-
pointer-events: none;
|
|
1474
|
-
-webkit-transition: background-color 140ms, border-color 140ms;
|
|
1475
|
-
transition: background-color 140ms, border-color 140ms;
|
|
1476
|
-
|
|
1477
|
-
-webkit-transition-duration: var(--paper-checkbox-animation-duration, 140ms);
|
|
1478
|
-
transition-duration: var(--paper-checkbox-animation-duration, 140ms);
|
|
1479
|
-
}
|
|
1480
|
-
|
|
1481
|
-
/* checkbox checked animations */
|
|
1482
|
-
#checkbox.checked #checkmark {
|
|
1483
|
-
-webkit-animation: checkmark-expand 140ms ease-out forwards;
|
|
1484
|
-
animation: checkmark-expand 140ms ease-out forwards;
|
|
1485
|
-
|
|
1486
|
-
-webkit-animation-duration: var(--paper-checkbox-animation-duration, 140ms);
|
|
1487
|
-
animation-duration: var(--paper-checkbox-animation-duration, 140ms);
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
@-webkit-keyframes checkmark-expand {
|
|
1491
|
-
0% {
|
|
1492
|
-
-webkit-transform: scale(0, 0) rotate(45deg);
|
|
1493
|
-
}
|
|
1494
|
-
100% {
|
|
1495
|
-
-webkit-transform: scale(1, 1) rotate(45deg);
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
@keyframes checkmark-expand {
|
|
1500
|
-
0% {
|
|
1501
|
-
transform: scale(0, 0) rotate(45deg);
|
|
1502
|
-
}
|
|
1503
|
-
100% {
|
|
1504
|
-
transform: scale(1, 1) rotate(45deg);
|
|
1505
|
-
}
|
|
1506
|
-
}
|
|
1507
|
-
|
|
1508
|
-
#checkbox.checked {
|
|
1509
|
-
background-color: var(--paper-checkbox-checked-color, var(--primary-color));
|
|
1510
|
-
border-color: var(--paper-checkbox-checked-color, var(--primary-color));
|
|
1511
|
-
}
|
|
1512
|
-
|
|
1513
|
-
#checkmark {
|
|
1514
|
-
position: absolute;
|
|
1515
|
-
width: 36%;
|
|
1516
|
-
height: 70%;
|
|
1517
|
-
border-style: solid;
|
|
1518
|
-
border-top: none;
|
|
1519
|
-
border-left: none;
|
|
1520
|
-
border-right-width: calc(2/15 * var(--calculated-paper-checkbox-size));
|
|
1521
|
-
border-bottom-width: calc(2/15 * var(--calculated-paper-checkbox-size));
|
|
1522
|
-
border-color: var(--paper-checkbox-checkmark-color, white);
|
|
1523
|
-
-webkit-transform-origin: 97% 86%;
|
|
1524
|
-
transform-origin: 97% 86%;
|
|
1525
|
-
box-sizing: content-box; /* protect against page-level box-sizing */
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
|
-
#checkmark:dir(rtl) {
|
|
1529
|
-
-webkit-transform-origin: 50% 14%;
|
|
1530
|
-
transform-origin: 50% 14%;
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
/* label */
|
|
1534
|
-
#checkboxLabel {
|
|
1535
|
-
position: relative;
|
|
1536
|
-
display: inline-block;
|
|
1537
|
-
vertical-align: middle;
|
|
1538
|
-
padding-left: var(--paper-checkbox-label-spacing, 8px);
|
|
1539
|
-
white-space: normal;
|
|
1540
|
-
line-height: normal;
|
|
1541
|
-
color: var(--paper-checkbox-label-color, var(--primary-text-color));
|
|
1542
|
-
@apply --paper-checkbox-label;
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
:host([checked]) #checkboxLabel {
|
|
1546
|
-
color: var(--paper-checkbox-label-checked-color, var(--paper-checkbox-label-color, var(--primary-text-color)));
|
|
1547
|
-
@apply --paper-checkbox-label-checked;
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
|
-
#checkboxLabel:dir(rtl) {
|
|
1551
|
-
padding-right: var(--paper-checkbox-label-spacing, 8px);
|
|
1552
|
-
padding-left: 0;
|
|
1553
|
-
}
|
|
1554
|
-
|
|
1555
|
-
#checkboxLabel[hidden] {
|
|
1556
|
-
display: none;
|
|
1557
|
-
}
|
|
1558
|
-
|
|
1559
|
-
/* disabled state */
|
|
1560
|
-
|
|
1561
|
-
:host([disabled]) #checkbox {
|
|
1562
|
-
opacity: 0.5;
|
|
1563
|
-
border-color: var(--paper-checkbox-unchecked-color, var(--primary-text-color));
|
|
1564
|
-
}
|
|
1565
|
-
|
|
1566
|
-
:host([disabled][checked]) #checkbox {
|
|
1567
|
-
background-color: var(--paper-checkbox-unchecked-color, var(--primary-text-color));
|
|
1568
|
-
opacity: 0.5;
|
|
1569
|
-
}
|
|
1570
|
-
|
|
1571
|
-
:host([disabled]) #checkboxLabel {
|
|
1572
|
-
opacity: 0.65;
|
|
1573
|
-
}
|
|
1574
|
-
|
|
1575
|
-
/* invalid state */
|
|
1576
|
-
#checkbox.invalid:not(.checked) {
|
|
1577
|
-
border-color: var(--paper-checkbox-error-color, var(--error-color));
|
|
1578
|
-
}
|
|
1579
|
-
</style>
|
|
1580
|
-
|
|
1581
|
-
<div id="checkboxContainer">
|
|
1582
|
-
<div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]]">
|
|
1583
|
-
<div id="checkmark" class$="[[_computeCheckmarkClass(checked)]]"></div>
|
|
1584
|
-
</div>
|
|
1585
|
-
</div>
|
|
1586
|
-
|
|
1587
|
-
<div id="checkboxLabel"><slot></slot></div>`;
|
|
1588
|
-
/**
|
|
1589
|
-
@license
|
|
1590
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1591
|
-
This code may only be used under the BSD style license found at
|
|
1592
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1593
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1594
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1595
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1596
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1597
|
-
*/Qo.setAttribute("strip-whitespace",""),Ps({_template:Qo,is:"paper-checkbox",behaviors:[Zo],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){Tr(this,(function(){if("-1px"===this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()){var e=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),t="px",i=e.match(/[A-Za-z]+$/);null!==i&&(t=i[0]);var n=parseFloat(e),r=8/3*n;"px"===t&&(r=Math.floor(r))%2!=n%2&&r++,this.updateStyles({"--paper-checkbox-ink-size":r+t})}}))},_computeCheckboxClass:function(e,t){var i="";return e&&(i+="checked "),t&&(i+="invalid"),i},_computeCheckmarkClass:function(e){return e?"":"hidden"},_createRipple:function(){return this._rippleContainer=this.$.checkboxContainer,Wo._createRipple.call(this)}});export{fs as A,mo as B,on as D,qr as F,ar as G,Po as I,ds as L,Ps as P,jo as a,$o as b,Tr as c,ts as d,Lt as e,ln as f,io as g,eo as h,Yn as i,Vo as j,Jo as k,Se as l,$s as m,$r as n,Ge as o,Ft as p,Ho as q,tr as r,kt as s,Ks as t,Ee as u,or as v,pt as w,zo as x,Go as y,Rt as z};
|