@teipublisher/pb-components 2.26.1-next.3 → 3.0.0-next-4.2
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 +53 -0
- package/.github/workflows/node.js.yml +70 -21
- package/.releaserc.json +7 -2
- package/CHANGELOG.md +363 -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/.github/workflows/main.yml +0 -24
- package/.github/workflows/release.js.yml +0 -34
- 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,3336 +1,525 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @license
|
|
17
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
18
|
-
* This code may only be used under the BSD style license found at
|
|
19
|
-
* http://polymer.github.io/LICENSE.txt
|
|
20
|
-
* The complete set of authors may be found at
|
|
21
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
22
|
-
* The complete set of contributors may be found at
|
|
23
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
24
|
-
* Code distributed by Google as part of the polymer project is also
|
|
25
|
-
* subject to an additional IP rights grant found at
|
|
26
|
-
* http://polymer.github.io/PATENTS.txt
|
|
27
|
-
*/const g=new WeakMap,_=e=>(...t)=>{const n=e(...t);return g.set(n,!0),n},y=e=>"function"==typeof e&&g.has(e),b={},v={};
|
|
28
|
-
/**
|
|
29
|
-
* @license
|
|
30
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
31
|
-
* This code may only be used under the BSD style license found at
|
|
32
|
-
* http://polymer.github.io/LICENSE.txt
|
|
33
|
-
* The complete set of authors may be found at
|
|
34
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
35
|
-
* The complete set of contributors may be found at
|
|
36
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
37
|
-
* Code distributed by Google as part of the polymer project is also
|
|
38
|
-
* subject to an additional IP rights grant found at
|
|
39
|
-
* http://polymer.github.io/PATENTS.txt
|
|
40
|
-
*/
|
|
41
|
-
class w{constructor(e,t,n){this.__parts=[],this.template=e,this.processor=t,this.options=n}update(e){let t=0;for(const n of this.__parts)void 0!==n&&n.setValue(e[t]),t++;for(const e of this.__parts)void 0!==e&&e.commit()}_clone(){const t=e?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],i=this.template.parts,r=document.createTreeWalker(t,133,null,!1);let s,o=0,a=0,c=r.nextNode();for(;o<i.length;)if(s=i[o],l(s)){for(;a<s.index;)a++,"TEMPLATE"===c.nodeName&&(n.push(c),r.currentNode=c.content),null===(c=r.nextNode())&&(r.currentNode=n.pop(),c=r.nextNode());if("node"===s.type){const e=this.processor.handleTextExpression(this.options);e.insertAfterNode(c.previousSibling),this.__parts.push(e)}else this.__parts.push(...this.processor.handleAttributeExpressions(c,s.name,s.strings,this.options));o++}else this.__parts.push(void 0),o++;return e&&(document.adoptNode(t),customElements.upgrade(t)),t}}
|
|
42
|
-
/**
|
|
43
|
-
* @license
|
|
44
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
45
|
-
* This code may only be used under the BSD style license found at
|
|
46
|
-
* http://polymer.github.io/LICENSE.txt
|
|
47
|
-
* The complete set of authors may be found at
|
|
48
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
49
|
-
* The complete set of contributors may be found at
|
|
50
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
51
|
-
* Code distributed by Google as part of the polymer project is also
|
|
52
|
-
* subject to an additional IP rights grant found at
|
|
53
|
-
* http://polymer.github.io/PATENTS.txt
|
|
54
|
-
*/const x=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),k=` ${n} `;class S{constructor(e,t,n,i){this.strings=e,this.values=t,this.type=n,this.processor=i}getHTML(){const e=this.strings.length-1;let t="",r=!1;for(let o=0;o<e;o++){const e=this.strings[o],a=e.lastIndexOf("\x3c!--");r=(a>-1||r)&&-1===e.indexOf("--\x3e",a+1);const l=h.exec(e);t+=null===l?e+(r?k:i):e.substr(0,l.index)+l[1]+l[2]+s+l[3]+n}return t+=this.strings[e],t}getTemplateElement(){const e=document.createElement("template");let t=this.getHTML();return void 0!==x&&(t=x.createHTML(t)),e.innerHTML=t,e}}
|
|
55
|
-
/**
|
|
56
|
-
* @license
|
|
57
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
58
|
-
* This code may only be used under the BSD style license found at
|
|
59
|
-
* http://polymer.github.io/LICENSE.txt
|
|
60
|
-
* The complete set of authors may be found at
|
|
61
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
62
|
-
* The complete set of contributors may be found at
|
|
63
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
64
|
-
* Code distributed by Google as part of the polymer project is also
|
|
65
|
-
* subject to an additional IP rights grant found at
|
|
66
|
-
* http://polymer.github.io/PATENTS.txt
|
|
67
|
-
*/const C=e=>null===e||!("object"==typeof e||"function"==typeof e),A=e=>Array.isArray(e)||!(!e||!e[Symbol.iterator]);class P{constructor(e,t,n){this.dirty=!0,this.element=e,this.name=t,this.strings=n,this.parts=[];for(let e=0;e<n.length-1;e++)this.parts[e]=this._createPart()}_createPart(){return new T(this)}_getValue(){const e=this.strings,t=e.length-1,n=this.parts;if(1===t&&""===e[0]&&""===e[1]){const e=n[0].value;if("symbol"==typeof e)return String(e);if("string"==typeof e||!A(e))return e}let i="";for(let r=0;r<t;r++){i+=e[r];const t=n[r];if(void 0!==t){const e=t.value;if(C(e)||!A(e))i+="string"==typeof e?e:String(e);else for(const t of e)i+="string"==typeof t?t:String(t)}}return i+=e[t],i}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class T{constructor(e){this.value=void 0,this.committer=e}setValue(e){e===b||C(e)&&e===this.value||(this.value=e,y(e)||(this.committer.dirty=!0))}commit(){for(;y(this.value);){const e=this.value;this.value=b,e(this)}this.value!==b&&this.committer.commit()}}class E{constructor(e){this.value=void 0,this.__pendingValue=void 0,this.options=e}appendInto(e){this.startNode=e.appendChild(c()),this.endNode=e.appendChild(c())}insertAfterNode(e){this.startNode=e,this.endNode=e.nextSibling}appendIntoPart(e){e.__insert(this.startNode=c()),e.__insert(this.endNode=c())}insertAfterPart(e){e.__insert(this.startNode=c()),this.endNode=e.endNode,e.endNode=this.startNode}setValue(e){this.__pendingValue=e}commit(){if(null===this.startNode.parentNode)return;for(;y(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=b,e(this)}const e=this.__pendingValue;e!==b&&(C(e)?e!==this.value&&this.__commitText(e):e instanceof S?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):A(e)?this.__commitIterable(e):e===v?(this.value=v,this.clear()):this.__commitText(e))}__insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}__commitNode(e){this.value!==e&&(this.clear(),this.__insert(e),this.value=e)}__commitText(e){const t=this.startNode.nextSibling,n="string"==typeof(e=null==e?"":e)?e:String(e);t===this.endNode.previousSibling&&3===t.nodeType?t.data=n:this.__commitNode(document.createTextNode(n)),this.value=e}__commitTemplateResult(e){const t=this.options.templateFactory(e);if(this.value instanceof w&&this.value.template===t)this.value.update(e.values);else{const n=new w(t,e.processor,this.options),i=n._clone();n.update(e.values),this.__commitNode(i),this.value=n}}__commitIterable(e){Array.isArray(this.value)||(this.value=[],this.clear());const t=this.value;let n,i=0;for(const r of e)n=t[i],void 0===n&&(n=new E(this.options),t.push(n),0===i?n.appendIntoPart(this):n.insertAfterPart(t[i-1])),n.setValue(r),n.commit(),i++;i<t.length&&(t.length=i,this.clear(n&&n.endNode))}clear(e=this.startNode){t(this.startNode.parentNode,e.nextSibling,this.endNode)}}class O{constructor(e,t,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=t,this.strings=n}setValue(e){this.__pendingValue=e}commit(){for(;y(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=b,e(this)}if(this.__pendingValue===b)return;const e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=b}}class N extends P{constructor(e,t,n){super(e,t,n),this.single=2===n.length&&""===n[0]&&""===n[1]}_createPart(){return new R(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class R extends T{}let z=!1;(()=>{try{const e={get capture(){return z=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){}})();class I{constructor(e,t,n){this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=t,this.eventContext=n,this.__boundHandleEvent=e=>this.handleEvent(e)}setValue(e){this.__pendingValue=e}commit(){for(;y(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=b,e(this)}if(this.__pendingValue===b)return;const e=this.__pendingValue,t=this.value,n=null==e||null!=t&&(e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive),i=null!=e&&(null==t||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),i&&(this.__options=D(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=b}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const D=e=>e&&(z?{capture:e.capture,passive:e.passive,once:e.once}:e.capture)
|
|
68
|
-
/**
|
|
69
|
-
* @license
|
|
70
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
71
|
-
* This code may only be used under the BSD style license found at
|
|
72
|
-
* http://polymer.github.io/LICENSE.txt
|
|
73
|
-
* The complete set of authors may be found at
|
|
74
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
75
|
-
* The complete set of contributors may be found at
|
|
76
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
77
|
-
* Code distributed by Google as part of the polymer project is also
|
|
78
|
-
* subject to an additional IP rights grant found at
|
|
79
|
-
* http://polymer.github.io/PATENTS.txt
|
|
80
|
-
*/;function M(e){let t=L.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},L.set(e.type,t));let i=t.stringsArray.get(e.strings);if(void 0!==i)return i;const r=e.strings.join(n);return i=t.keyString.get(r),void 0===i&&(i=new o(e,e.getTemplateElement()),t.keyString.set(r,i)),t.stringsArray.set(e.strings,i),i}const L=new Map,F=new WeakMap,B=(e,n,i)=>{let r=F.get(n);void 0===r&&(t(n,n.firstChild),F.set(n,r=new E(Object.assign({templateFactory:M},i))),r.appendInto(n)),r.setValue(e),r.commit()};
|
|
81
|
-
/**
|
|
82
|
-
* @license
|
|
83
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
84
|
-
* This code may only be used under the BSD style license found at
|
|
85
|
-
* http://polymer.github.io/LICENSE.txt
|
|
86
|
-
* The complete set of authors may be found at
|
|
87
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
88
|
-
* The complete set of contributors may be found at
|
|
89
|
-
* 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
|
|
92
|
-
* http://polymer.github.io/PATENTS.txt
|
|
93
|
-
*/
|
|
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
|
|
98
|
-
* http://polymer.github.io/LICENSE.txt
|
|
99
|
-
* The complete set of authors may be found at
|
|
100
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
101
|
-
* The complete set of contributors may be found at
|
|
102
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
103
|
-
* Code distributed by Google as part of the polymer project is also
|
|
104
|
-
* subject to an additional IP rights grant found at
|
|
105
|
-
* http://polymer.github.io/PATENTS.txt
|
|
106
|
-
*/
|
|
107
|
-
class H{handleAttributeExpressions(e,t,n,i){const r=t[0];if("."===r){return new N(e,t.slice(1),n).parts}if("@"===r)return[new I(e,t.slice(1),i.eventContext)];if("?"===r)return[new O(e,t.slice(1),n)];return new P(e,t,n).parts}handleTextExpression(e){return new E(e)}}const $=new H;
|
|
108
|
-
/**
|
|
109
|
-
* @license
|
|
110
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
111
|
-
* This code may only be used under the BSD style license found at
|
|
112
|
-
* http://polymer.github.io/LICENSE.txt
|
|
113
|
-
* The complete set of authors may be found at
|
|
114
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
115
|
-
* The complete set of contributors may be found at
|
|
116
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
117
|
-
* Code distributed by Google as part of the polymer project is also
|
|
118
|
-
* subject to an additional IP rights grant found at
|
|
119
|
-
* http://polymer.github.io/PATENTS.txt
|
|
120
|
-
*/"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const j=(e,...t)=>new S(e,t,"html",$)
|
|
121
|
-
/**
|
|
122
|
-
* @license
|
|
123
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
124
|
-
* This code may only be used under the BSD style license found at
|
|
125
|
-
* http://polymer.github.io/LICENSE.txt
|
|
126
|
-
* The complete set of authors may be found at
|
|
127
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
128
|
-
* The complete set of contributors may be found at
|
|
129
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
130
|
-
* Code distributed by Google as part of the polymer project is also
|
|
131
|
-
* subject to an additional IP rights grant found at
|
|
132
|
-
* http://polymer.github.io/PATENTS.txt
|
|
133
|
-
*/,U=(e,t)=>`${e}--${t}`;let q=!0;void 0===window.ShadyCSS?q=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),q=!1);const V=e=>t=>{const i=U(t.type,e);let r=L.get(i);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},L.set(i,r));let s=r.stringsArray.get(t.strings);if(void 0!==s)return s;const a=t.strings.join(n);if(s=r.keyString.get(a),void 0===s){const n=t.getTemplateElement();q&&window.ShadyCSS.prepareTemplateDom(n,e),s=new o(t,n),r.keyString.set(a,s)}return r.stringsArray.set(t.strings,s),s},W=["html","svg"],K=e=>{W.forEach(t=>{const n=L.get(U(t,e));void 0!==n&&n.keyString.forEach(e=>{const{element:{content:t}}=e,n=new Set;Array.from(t.querySelectorAll("style")).forEach(e=>{n.add(e)}),p(e,n)})})},Y=new Set,G=(e,t,n)=>{Y.add(e);const i=n?n.element:document.createElement("template"),r=t.querySelectorAll("style"),{length:s}=r;if(0===s)return void window.ShadyCSS.prepareTemplateStyles(i,e);const o=document.createElement("style");for(let e=0;e<s;e++){const t=r[e];t.parentNode.removeChild(t),o.textContent+=t.textContent}K(e);const a=i.content;n?m(n,o,a.firstChild):a.insertBefore(o,a.firstChild),window.ShadyCSS.prepareTemplateStyles(i,e);const l=a.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==l)t.insertBefore(l.cloneNode(!0),t.firstChild);else if(n){a.insertBefore(o,a.firstChild);const e=new Set;e.add(o),p(n,e)}},J=(e,n,i)=>{if(!i||"object"!=typeof i||!i.scopeName)throw new Error("The `scopeName` option is required.");const r=i.scopeName,s=F.has(n),o=q&&11===n.nodeType&&!!n.host,a=o&&!Y.has(r),l=a?document.createDocumentFragment():n;if(B(e,l,Object.assign({templateFactory:V(r)},i)),a){const e=F.get(l);F.delete(l);const i=e.value instanceof w?e.value.template:void 0;G(r,l,i),t(n,n.firstChild),n.appendChild(l),F.set(n,e)}!s&&o&&window.ShadyCSS.styleElement(n.host)};window.JSCompiler_renameProperty=(e,t)=>e;const Z={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},X=(e,t)=>t!==e&&(t==t||e==e),Q={attribute:!0,type:String,converter:Z,reflect:!1,hasChanged:X},ee=1,te=4,ne=8,ie=16,re="finalized";class se extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();const e=[];return this._classProperties.forEach((t,n)=>{const i=this._attributeNameForProperty(n,t);void 0!==i&&(this._attributeToPropertyMap.set(i,n),e.push(i))}),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach((e,t)=>this._classProperties.set(t,e))}}static createProperty(e,t=Q){if(this._ensureClassProperties(),this._classProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e))return;const n="symbol"==typeof e?Symbol():"__"+e,i=this.getPropertyDescriptor(e,n,t);void 0!==i&&Object.defineProperty(this.prototype,e,i)}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(i){const r=this[e];this[t]=i,this.requestUpdateInternal(e,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this._classProperties&&this._classProperties.get(e)||Q}static finalize(){const e=Object.getPrototypeOf(this);if(e.hasOwnProperty(re)||e.finalize(),this[re]=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const e=this.properties,t=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(const n of t)this.createProperty(n,e[n])}}static _attributeNameForProperty(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t,n=X){return n(e,t)}static _propertyValueFromAttribute(e,t){const n=t.type,i=t.converter||Z,r="function"==typeof i?i:i.fromAttribute;return r?r(e,n):e}static _propertyValueToAttribute(e,t){if(void 0===t.reflect)return;const n=t.type,i=t.converter;return(i&&i.toAttribute||Z.toAttribute)(e,n)}initialize(){this._updateState=0,this._updatePromise=new Promise(e=>this._enableUpdatingResolver=e),this._changedProperties=new Map,this._saveInstanceProperties(),this.requestUpdateInternal()}_saveInstanceProperties(){this.constructor._classProperties.forEach((e,t)=>{if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,e)}})}_applyInstanceProperties(){this._instanceProperties.forEach((e,t)=>this[t]=e),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,n){t!==n&&this._attributeToProperty(e,n)}_propertyToAttribute(e,t,n=Q){const i=this.constructor,r=i._attributeNameForProperty(e,n);if(void 0!==r){const e=i._propertyValueToAttribute(t,n);if(void 0===e)return;this._updateState=this._updateState|ne,null==e?this.removeAttribute(r):this.setAttribute(r,e),this._updateState=this._updateState&~ne}}_attributeToProperty(e,t){if(this._updateState&ne)return;const n=this.constructor,i=n._attributeToPropertyMap.get(e);if(void 0!==i){const e=n.getPropertyOptions(i);this._updateState=this._updateState|ie,this[i]=n._propertyValueFromAttribute(t,e),this._updateState=this._updateState&~ie}}requestUpdateInternal(e,t,n){let i=!0;if(void 0!==e){const r=this.constructor;n=n||r.getPropertyOptions(e),r._valueHasChanged(this[e],t,n.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==n.reflect||this._updateState&ie||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,n))):i=!1}!this._hasRequestedUpdate&&i&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(e,t){return this.requestUpdateInternal(e,t),this.updateComplete}async _enqueueUpdate(){this._updateState=this._updateState|te;try{await this._updatePromise}catch(e){}const e=this.performUpdate();return null!=e&&await e,!this._hasRequestedUpdate}get _hasRequestedUpdate(){return this._updateState&te}get hasUpdated(){return this._updateState&ee}performUpdate(){if(!this._hasRequestedUpdate)return;this._instanceProperties&&this._applyInstanceProperties();let e=!1;const t=this._changedProperties;try{e=this.shouldUpdate(t),e?this.update(t):this._markUpdated()}catch(t){throw e=!1,this._markUpdated(),t}e&&(this._updateState&ee||(this._updateState=this._updateState|ee,this.firstUpdated(t)),this.updated(t))}_markUpdated(){this._changedProperties=new Map,this._updateState=this._updateState&~te}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((e,t)=>this._propertyToAttribute(t,this[t],e)),this._reflectingProperties=void 0),this._markUpdated()}updated(e){}firstUpdated(e){}}se[re]=!0;
|
|
134
|
-
/**
|
|
135
|
-
@license
|
|
136
|
-
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
|
|
137
|
-
This code may only be used under the BSD style license found at
|
|
138
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
139
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
140
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
141
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
142
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
143
|
-
*/
|
|
144
|
-
const oe=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ae=Symbol();class le{constructor(e,t){if(t!==ae)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(oe?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const ce=e=>new le(String(e),ae),he=e=>{if(e instanceof le)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)},de=(e,...t)=>{const n=t.reduce((t,n,i)=>t+he(n)+e[i+1],e[0]);return new le(n,ae)};
|
|
145
|
-
/**
|
|
146
|
-
* @license
|
|
147
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
148
|
-
* This code may only be used under the BSD style license found at
|
|
149
|
-
* http://polymer.github.io/LICENSE.txt
|
|
150
|
-
* The complete set of authors may be found at
|
|
151
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
152
|
-
* The complete set of contributors may be found at
|
|
153
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
154
|
-
* Code distributed by Google as part of the polymer project is also
|
|
155
|
-
* subject to an additional IP rights grant found at
|
|
156
|
-
* http://polymer.github.io/PATENTS.txt
|
|
157
|
-
*/
|
|
158
|
-
(window.litElementVersions||(window.litElementVersions=[])).push("2.5.1");const pe={};class ue extends se{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const e=this.getStyles();if(Array.isArray(e)){const t=(e,n)=>e.reduceRight((e,n)=>Array.isArray(n)?t(n,e):(e.add(n),e),n),n=t(e,new Set),i=[];n.forEach(e=>i.unshift(e)),this._styles=i}else this._styles=void 0===e?[]:[e];this._styles=this._styles.map(e=>{if(e instanceof CSSStyleSheet&&!oe){const t=Array.prototype.slice.call(e.cssRules).reduce((e,t)=>e+t.cssText,"");return ce(t)}return e})}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow(this.constructor.shadowRootOptions)}adoptStyles(){const e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?oe?this.renderRoot.adoptedStyleSheets=e.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map(e=>e.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){const t=this.render();super.update(e),t!==pe&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(e=>{const t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)}))}render(){return pe}}ue.finalized=!0,ue.render=J,ue.shadowRootOptions={mode:"open"};
|
|
159
|
-
/**
|
|
160
|
-
@license
|
|
161
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
162
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
163
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
164
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
165
|
-
Code distributed by Google as part of the polymer project is also
|
|
166
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
167
|
-
*/
|
|
168
|
-
const fe=!(window.ShadyDOM&&window.ShadyDOM.inUse);let me,ge;function _e(e){me=(!e||!e.shimcssproperties)&&(fe||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&&(ge=window.ShadyCSS.cssBuild);const ye=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?me=window.ShadyCSS.nativeCss:window.ShadyCSS?(_e(window.ShadyCSS),window.ShadyCSS=void 0):_e(window.WebComponents&&window.WebComponents.flags);const be=me;
|
|
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
|
-
*/class ve{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 we(e){return Se(ke(e=xe(e)),e)}function xe(e){return e.replace(Ie.comments,"").replace(Ie.port,"")}function ke(e){let t=new ve;t.start=0,t.end=e.length;let n=t;for(let i=0,r=e.length;i<r;i++)if(e[i]===Re){n.rules||(n.rules=[]);let e=n,t=e.rules[e.rules.length-1]||null;n=new ve,n.start=i+1,n.parent=e,n.previous=t,e.rules.push(n)}else e[i]===ze&&(n.end=i+1,n=n.parent||t);return t}function Se(e,t){let n=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=n.trim(),e.parent){let i=e.previous?e.previous.end:e.parent.start;n=t.substring(i,e.start-1),n=Ce(n),n=n.replace(Ie.multipleSpaces," "),n=n.substring(n.lastIndexOf(";")+1);let r=e.parsedSelector=e.selector=n.trim();e.atRule=0===r.indexOf(Le),e.atRule?0===r.indexOf(Me)?e.type=Ne.MEDIA_RULE:r.match(Ie.keyframesRule)&&(e.type=Ne.KEYFRAMES_RULE,e.keyframesName=e.selector.split(Ie.multipleSpaces).pop()):0===r.indexOf(De)?e.type=Ne.MIXIN_RULE:e.type=Ne.STYLE_RULE}let i=e.rules;if(i)for(let e,n=0,r=i.length;n<r&&(e=i[n]);n++)Se(e,t);return e}function Ce(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 Ae(e,t,n=""){let i="";if(e.cssText||e.rules){let n=e.rules;if(n&&!Pe(n))for(let e,r=0,s=n.length;r<s&&(e=n[r]);r++)i=Ae(e,t,i);else i=t?e.cssText:Te(e.cssText),i=i.trim(),i&&(i=" "+i+"\n")}return i&&(e.selector&&(n+=e.selector+" "+Re+"\n"),n+=i,e.selector&&(n+=ze+"\n\n")),n}function Pe(e){let t=e[0];return Boolean(t)&&Boolean(t.selector)&&0===t.selector.indexOf(De)}function Te(e){return Oe(e=Ee(e))}function Ee(e){return e.replace(Ie.customProp,"").replace(Ie.mixinProp,"")}function Oe(e){return e.replace(Ie.mixinApply,"").replace(Ie.varApply,"")}const Ne={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},Re="{",ze="}",Ie={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},De="--",Me="@media",Le="@",Fe=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Be=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,He=/@media\s(.*)/,$e=new Set,je="shady-unscoped";function Ue(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 qe(e){return e.hasAttribute(je)}
|
|
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
|
-
*/function Ve(e,t){return e?("string"==typeof e&&(e=we(e)),t&&Ke(e,t),Ae(e,be)):""}function We(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=we(e.textContent)),e.__cssRules||null}function Ke(e,t,n,i){if(!e)return;let r=!1,s=e.type;if(i&&s===Ne.MEDIA_RULE){let t=e.selector.match(He);t&&(window.matchMedia(t[1]).matches||(r=!0))}s===Ne.STYLE_RULE?t(e):n&&s===Ne.KEYFRAMES_RULE?n(e):s===Ne.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++)Ke(e,t,n,i)}function Ye(e,t){let n=0;for(let i=t,r=e.length;i<r;i++)if("("===e[i])n++;else if(")"===e[i]&&0==--n)return i;return-1}function Ge(e,t){let n=e.indexOf("var(");if(-1===n)return t(e,"","","");let i=Ye(e,n+3),r=e.substring(n+4,i),s=e.substring(0,n),o=Ge(e.substring(i+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 Je(e){let t=e.localName,n="",i="";return t?t.indexOf("-")>-1?n=t:(i=t,n=e.getAttribute&&e.getAttribute("is")||""):(n=e.is,i=e.extends),{is:n,typeExtension:i}}function Ze(e){const t=[],n=e.querySelectorAll("style");for(let e=0;e<n.length;e++){const i=n[e];qe(i)?fe||(Ue(i),i.parentNode.removeChild(i)):(t.push(i.textContent),i.parentNode.removeChild(i))}return t.join("").trim()}window.ShadyDOM&&window.ShadyDOM.wrap;const Xe="css-build";function Qe(e){if(void 0!==ge)return ge;if(void 0===e.__cssBuild){const t=e.getAttribute(Xe);if(t)e.__cssBuild=t;else{const t=tt(e);""!==t&&nt(e),e.__cssBuild=t}}return e.__cssBuild||""}function et(e){return""!==Qe(e)}function tt(e){const t="template"===e.localName?e.content.firstChild:e.firstChild;if(t instanceof Comment){const e=t.textContent.trim().split(":");if(e[0]===Xe)return e[1]}return""}function nt(e){const t="template"===e.localName?e.content.firstChild:e.firstChild;t.parentNode.removeChild(t)}
|
|
187
|
-
/**
|
|
188
|
-
@license
|
|
189
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
190
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
191
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
192
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
193
|
-
Code distributed by Google as part of the polymer project is also
|
|
194
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
195
|
-
*/function it(e,t){for(let n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}function rt(e,t){const n=window.getComputedStyle(e).getPropertyValue(t);return n?n.trim():""}function st(e){const t=Be.test(e)||Fe.test(e);return Be.lastIndex=0,Fe.lastIndex=0,t}
|
|
196
|
-
/**
|
|
197
|
-
@license
|
|
198
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
199
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
200
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
201
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
202
|
-
Code distributed by Google as part of the polymer project is also
|
|
203
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
204
|
-
*/const ot=/;\s*/m,at=/^\s*(initial)|(inherit)\s*$/,lt=/\s*!important/,ct="_-_";class ht{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 dt=null;class pt{constructor(){this._currentElement=null,this._measureElement=null,this._map=new ht}detectMixin(e){return st(e)}gatherStyles(e){const t=Ze(e.content);if(t){const n=document.createElement("style");return n.textContent=t,e.content.insertBefore(n,e.content.firstChild),n}return null}transformTemplate(e,t){void 0===e._gatheredStyle&&(e._gatheredStyle=this.gatherStyles(e));const n=e._gatheredStyle;return n?this.transformStyle(n,t):null}transformStyle(e,t=""){let n=We(e);return this.transformRules(n,t),e.textContent=Ve(n),n}transformCustomStyle(e){let t=We(e);return Ke(t,e=>{":root"===e.selector&&(e.selector="html"),this.transformRule(e)}),e.textContent=Ve(t),t}transformRules(e,t){this._currentElement=t,Ke(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(Fe,(e,n,i,r)=>this._produceCssProperties(e,n,i,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 n={};let i=!1;return Ke(t,t=>{i=i||t===e,i||t.selector===e.selector&&Object.assign(n,this._cssTextToMap(t.parsedCssText))}),n}_consumeCssProperties(e,t){let n=null;for(;n=Be.exec(e);){let i=n[0],r=n[1],s=n.index,o=s+i.indexOf("@apply"),a=s+i.length,l=e.slice(0,o),c=e.slice(a),h=t?this._fallbacksFromPreviousRules(t):{};Object.assign(h,this._cssTextToMap(l));let d=this._atApplyToCssProperties(r,h);e=`${l}${d}${c}`,Be.lastIndex=s+d.length}return e}_atApplyToCssProperties(e,t){e=e.replace(ot,"");let n=[],i=this._map.get(e);if(i||(this._map.set(e,{}),i=this._map.get(e)),i){let r,s,o;this._currentElement&&(i.dependants[this._currentElement]=!0);const a=i.properties;for(r in a)o=t&&t[r],s=[r,": var(",e,ct,r],o&&s.push(",",o.replace(lt,"")),s.push(")"),lt.test(a[r])&&s.push(" !important"),n.push(s.join(""))}return n.join("; ")}_replaceInitialOrInherit(e,t){let n=at.exec(t);return n&&(t=n[1]?this._getInitialValueForProperty(e):"apply-shim-inherit"),t}_cssTextToMap(e,t=!1){let n,i,r=e.split(";"),s={};for(let e,o,a=0;a<r.length;a++)e=r[a],e&&(o=e.split(":"),o.length>1&&(n=o[0].trim(),i=o.slice(1).join(":"),t&&(i=this._replaceInitialOrInherit(n,i)),s[n]=i));return s}_invalidateMixinEntry(e){if(dt)for(let t in e.dependants)t!==this._currentElement&&dt(t)}_produceCssProperties(e,t,n,i,r){if(n&&Ge(n,(e,t)=>{t&&this._map.get(t)&&(i=`@apply ${t};`)}),!i)return e;let s=this._consumeCssProperties(""+i,r),o=e.slice(0,e.indexOf("--")),a=this._cssTextToMap(s,!0),l=a,c=this._map.get(t),h=c&&c.properties;h?l=Object.assign(Object.create(h),a):this._map.set(t,l);let d,p,u=[],f=!1;for(d in l)p=a[d],void 0===p&&(p="initial"),h&&!(d in h)&&(f=!0),u.push(`${t}${ct}${d}: ${p}`);return f&&this._invalidateMixinEntry(c),c&&(c.properties=l),n&&(o=`${e};${o}`),`${o}${u.join("; ")};`}}pt.prototype.detectMixin=pt.prototype.detectMixin,pt.prototype.transformStyle=pt.prototype.transformStyle,pt.prototype.transformCustomStyle=pt.prototype.transformCustomStyle,pt.prototype.transformRules=pt.prototype.transformRules,pt.prototype.transformRule=pt.prototype.transformRule,pt.prototype.transformTemplate=pt.prototype.transformTemplate,pt.prototype._separator=ct,Object.defineProperty(pt.prototype,"invalidCallback",{get:()=>dt,set(e){dt=e}});
|
|
205
|
-
/**
|
|
206
|
-
@license
|
|
207
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
208
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
209
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
210
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
211
|
-
Code distributed by Google as part of the polymer project is also
|
|
212
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
213
|
-
*/
|
|
214
|
-
const ut={},ft="_applyShimCurrentVersion",mt="_applyShimNextVersion",gt="_applyShimValidatingVersion",_t=Promise.resolve();
|
|
215
|
-
/**
|
|
216
|
-
@license
|
|
217
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
218
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
219
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
220
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
221
|
-
Code distributed by Google as part of the polymer project is also
|
|
222
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
223
|
-
*/function yt(e){let t=ut[e];t&&bt(t)}function bt(e){e[ft]=e[ft]||0,e[gt]=e[gt]||0,e[mt]=(e[mt]||0)+1}function vt(e){return e[ft]===e[mt]}function wt(e){return!vt(e)&&e[gt]===e[mt]}function xt(e){e[gt]=e[mt],e._validating||(e._validating=!0,_t.then((function(){e[ft]=e[mt],e._validating=!1})))}
|
|
224
|
-
/**
|
|
225
|
-
@license
|
|
226
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
227
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
228
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
229
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
230
|
-
Code distributed by Google as part of the polymer project is also
|
|
231
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
232
|
-
*/let kt,St=null,Ct=window.HTMLImports&&window.HTMLImports.whenReady||null;function At(e){requestAnimationFrame((function(){Ct?Ct(e):(St||(St=new Promise(e=>{kt=e}),"complete"===document.readyState?kt():document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&kt()})),St.then((function(){e&&e()})))}))}
|
|
233
|
-
/**
|
|
234
|
-
@license
|
|
235
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
236
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
237
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
238
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
239
|
-
Code distributed by Google as part of the polymer project is also
|
|
240
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
241
|
-
*/const Pt="__seenByShadyCSS",Tt="__shadyCSSCachedStyle";let Et=null,Ot=null;class Nt{constructor(){this.customStyles=[],this.enqueued=!1,At(()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}enqueueDocumentValidation(){!this.enqueued&&Ot&&(this.enqueued=!0,At(Ot))}addCustomStyle(e){e[Pt]||(e[Pt]=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}getStyleForCustomStyle(e){if(e[Tt])return e[Tt];let t;return t=e.getStyle?e.getStyle():e,t}processStyles(){const e=this.customStyles;for(let t=0;t<e.length;t++){const n=e[t];if(n[Tt])continue;const i=this.getStyleForCustomStyle(n);if(i){const e=i.__appliedElement||i;Et&&Et(e),n[Tt]=e}}return e}}Nt.prototype.addCustomStyle=Nt.prototype.addCustomStyle,Nt.prototype.getStyleForCustomStyle=Nt.prototype.getStyleForCustomStyle,Nt.prototype.processStyles=Nt.prototype.processStyles,Object.defineProperties(Nt.prototype,{transformCallback:{get:()=>Et,set(e){Et=e}},validateCallback:{get:()=>Ot,set(e){let t=!1;Ot||(t=!0),Ot=e,t&&this.enqueueDocumentValidation()}}});
|
|
242
|
-
/**
|
|
243
|
-
@license
|
|
244
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
245
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
246
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
247
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
248
|
-
Code distributed by Google as part of the polymer project is also
|
|
249
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
250
|
-
*/
|
|
251
|
-
const Rt=new pt;class zt{constructor(){this.customStyleInterface=null,Rt.invalidCallback=yt}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{Rt.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame(()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()})})}prepareTemplate(e,t){if(this.ensure(),et(e))return;ut[t]=e;let n=Rt.transformTemplate(e,t);e._styleAst=n}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 n=e[t],i=this.customStyleInterface.getStyleForCustomStyle(n);i&&Rt.transformCustomStyle(i)}this.customStyleInterface.enqueued=!1}}styleSubtree(e,t){if(this.ensure(),t&&it(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}=Je(e),n=ut[t];if((!n||!et(n))&&n&&!vt(n)){wt(n)||(this.prepareTemplate(n,t),xt(n));let i=e.shadowRoot;if(i){let e=i.querySelector("style");e&&(e.__cssRules=n._styleAst,e.textContent=Ve(n._styleAst))}}}styleDocument(e){this.ensure(),this.styleSubtree(document.body,e)}}if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const e=new zt;let t=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(t,n,i){e.flushCustomStyles(),e.prepareTemplate(t,n)},prepareTemplateStyles(e,t,n){window.ShadyCSS.prepareTemplate(e,t,n)},prepareTemplateDom(e,t){},styleSubtree(t,n){e.flushCustomStyles(),e.styleSubtree(t,n)},styleElement(t){e.flushCustomStyles(),e.styleElement(t)},styleDocument(t){e.flushCustomStyles(),e.styleDocument(t)},getComputedStyleValue:(e,t)=>rt(e,t),flushCustomStyles(){e.flushCustomStyles()},nativeCss:be,nativeShadow:fe,cssBuild:ge,disableRuntime:ye},t&&(window.ShadyCSS.CustomStyleInterface=t)}window.ShadyCSS.ApplyShim=Rt,
|
|
252
|
-
/**
|
|
253
|
-
@license
|
|
254
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
255
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
256
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
257
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
258
|
-
Code distributed by Google as part of the polymer project is also
|
|
259
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
260
|
-
*/
|
|
261
|
-
window.JSCompiler_renameProperty=function(e,t){return e};
|
|
262
|
-
/**
|
|
263
|
-
@license
|
|
264
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
265
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
266
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
267
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
268
|
-
Code distributed by Google as part of the polymer project is also
|
|
269
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
270
|
-
*/
|
|
271
|
-
let It,Dt,Mt=/(url\()([^)]*)(\))/g,Lt=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function Ft(e,t){if(e&&Lt.test(e))return e;if("//"===e)return e;if(void 0===It){It=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",It="http://a/c%20d"===e.href}catch(e){}}if(t||(t=document.baseURI||window.location.href),It)try{return new URL(e,t).href}catch(t){return e}return Dt||(Dt=document.implementation.createHTMLDocument("temp"),Dt.base=Dt.createElement("base"),Dt.head.appendChild(Dt.base),Dt.anchor=Dt.createElement("a"),Dt.body.appendChild(Dt.anchor)),Dt.base.href=t,Dt.anchor.href=e,Dt.anchor.href||e}function Bt(e,t){return e.replace(Mt,(function(e,n,i,r){return n+"'"+Ft(i.replace(/["']/g,""),t)+"'"+r}))}function Ht(e){return e.substring(0,e.lastIndexOf("/")+1)}
|
|
272
|
-
/**
|
|
273
|
-
@license
|
|
274
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
275
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
276
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
277
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
278
|
-
Code distributed by Google as part of the polymer project is also
|
|
279
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
280
|
-
*/const $t=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const jt=$t&&"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 Ut=window.Polymer&&window.Polymer.rootPath||Ht(document.baseURI||window.location.href),qt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Vt=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Wt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Kt=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Yt=window.Polymer&&window.Polymer.legacyOptimizations||!1,Gt=window.Polymer&&window.Polymer.legacyWarnings||!1,Jt=window.Polymer&&window.Polymer.syncInitialRender||!1,Zt=window.Polymer&&window.Polymer.legacyUndefined||!1,Xt=window.Polymer&&window.Polymer.orderedComputed||!1,Qt=window.Polymer&&window.Polymer.removeNestedTemplates||!1,en=window.Polymer&&window.Polymer.fastDomIf||!1,tn=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,nn=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,rn=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,sn=0;const on=function(e){let t=e.__mixinApplications;t||(t=new WeakMap,e.__mixinApplications=t);let n=sn++;function i(i){let r=i.__mixinSet;if(r&&r[n])return i;let s=t,o=s.get(i);if(!o){o=e(i),s.set(i,o);let t=Object.create(o.__mixinSet||r||null);t[n]=!0,o.__mixinSet=t}return o}return i};
|
|
281
|
-
/**
|
|
282
|
-
@license
|
|
283
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
284
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
285
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
286
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
287
|
-
Code distributed by Google as part of the polymer project is also
|
|
288
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
289
|
-
*/let an={},ln={};function cn(e,t){an[e]=ln[e.toLowerCase()]=t}function hn(e){return an[e]||ln[e.toLowerCase()]}function dn(e){e.querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}class pn extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let n=hn(e);return n&&t?n.querySelector(t):n}return null}attributeChangedCallback(e,t,n,i){t!==n&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Ft(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Ht(t)}return this.__assetpath}register(e){if(e=e||this.id){if(Wt&&void 0!==hn(e))throw cn(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,cn(e,this),dn(this)}}}pn.prototype.modules=an,customElements.define("dom-module",pn);
|
|
290
|
-
/**
|
|
291
|
-
@license
|
|
292
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
293
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
294
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
295
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
296
|
-
Code distributed by Google as part of the polymer project is also
|
|
297
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
298
|
-
*/
|
|
299
|
-
const un="link[rel=import][type~=css]",fn="include",mn="shady-unscoped";function gn(e){return pn.import(e)}function _n(e){const t=Bt((e.body?e.body:e).textContent,e.baseURI),n=document.createElement("style");return n.textContent=t,n}function yn(e){const t=e.trim().split(/\s+/),n=[];for(let e=0;e<t.length;e++)n.push(...bn(t[e]));return n}function bn(e){const t=gn(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...xn(t));const n=t.querySelector("template");n&&e.push(...vn(n,t.assetpath)),t._styles=e}return t._styles}function vn(e,t){if(!e._styles){const n=[],i=e.content.querySelectorAll("style");for(let e=0;e<i.length;e++){let r=i[e],s=r.getAttribute(fn);s&&n.push(...yn(s).filter((function(e,t,n){return n.indexOf(e)===t}))),t&&(r.textContent=Bt(r.textContent,t)),n.push(r)}e._styles=n}return e._styles}function wn(e){let t=gn(e);return t?xn(t):[]}function xn(e){const t=[],n=e.querySelectorAll(un);for(let e=0;e<n.length;e++){let i=n[e];if(i.import){const e=i.import,n=i.hasAttribute(mn);if(n&&!e._unscopedStyle){const t=_n(e);t.setAttribute(mn,""),e._unscopedStyle=t}else e._style||(e._style=_n(e));t.push(n?e._unscopedStyle:e._style)}}return t}function kn(e){let t=e.trim().split(/\s+/),n="";for(let e=0;e<t.length;e++)n+=Sn(t[e]);return n}function Sn(e){let t=gn(e);if(t&&void 0===t._cssText){let e=An(t),n=t.querySelector("template");n&&(e+=Cn(n,t.assetpath)),t._cssText=e||null}return t||console.warn("Could not find style data in module named",e),t&&t._cssText||""}function Cn(e,t){let n="";const i=vn(e,t);for(let e=0;e<i.length;e++){let t=i[e];t.parentNode&&t.parentNode.removeChild(t),n+=t.textContent}return n}function An(e){let t="",n=xn(e);for(let e=0;e<n.length;e++)t+=n[e].textContent;return t}
|
|
300
|
-
/**
|
|
301
|
-
@license
|
|
302
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
303
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
304
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
305
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
306
|
-
Code distributed by Google as part of the polymer project is also
|
|
307
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
308
|
-
*/const Pn=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;
|
|
309
|
-
/**
|
|
310
|
-
@license
|
|
311
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
312
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
313
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
314
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
315
|
-
Code distributed by Google as part of the polymer project is also
|
|
316
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
317
|
-
*/function Tn(e){return e.indexOf(".")>=0}function En(e){let t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function On(e,t){return 0===e.indexOf(t+".")}function Nn(e,t){return 0===t.indexOf(e+".")}function Rn(e,t,n){return t+n.slice(e.length)}function zn(e,t){return e===t||On(e,t)||Nn(e,t)}function In(e){if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let i=e[n].toString().split(".");for(let e=0;e<i.length;e++)t.push(i[e])}return t.join(".")}return e}function Dn(e){return Array.isArray(e)?In(e).split("."):e.toString().split(".")}function Mn(e,t,n){let i=e,r=Dn(t);for(let e=0;e<r.length;e++){if(!i)return;i=i[r[e]]}return n&&(n.path=r.join(".")),i}function Ln(e,t,n){let i=e,r=Dn(t),s=r[r.length-1];if(r.length>1){for(let e=0;e<r.length-1;e++){if(i=i[r[e]],!i)return}i[s]=n}else i[t]=n;return r.join(".")}
|
|
318
|
-
/**
|
|
319
|
-
@license
|
|
320
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
321
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
322
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
323
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
324
|
-
Code distributed by Google as part of the polymer project is also
|
|
325
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
326
|
-
*/const Fn={},Bn=/-[a-z]/g,Hn=/([A-Z])/g;function $n(e){return Fn[e]||(Fn[e]=e.indexOf("-")<0?e:e.replace(Bn,e=>e[1].toUpperCase()))}function jn(e){return Fn[e]||(Fn[e]=e.replace(Hn,"-$1").toLowerCase())}
|
|
327
|
-
/**
|
|
328
|
-
@license
|
|
329
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
330
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
331
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
332
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
333
|
-
Code distributed by Google as part of the polymer project is also
|
|
334
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
335
|
-
*/let Un=0,qn=0,Vn=[],Wn=0,Kn=!1,Yn=document.createTextNode("");function Gn(){Kn=!1;const e=Vn.length;for(let t=0;t<e;t++){let e=Vn[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}Vn.splice(0,e),qn+=e}new window.MutationObserver(Gn).observe(Yn,{characterData:!0});const Jn={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)}},Zn={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},Xn={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},Qn={run:e=>(Kn||(Kn=!0,Yn.textContent=Wn++),Vn.push(e),Un++),cancel(e){const t=e-qn;if(t>=0){if(!Vn[t])throw new Error("invalid async handle: "+e);Vn[t]=null}}},ei=Qn,ti=on(e=>{class t extends e{static createProperties(e){const t=this.prototype;for(let n in e)n in t||t._createPropertyAccessor(n)}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,n){let i=this.__data[e],r=this._shouldPropertyChange(e,t,i);return r&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(e in this.__dataOld)&&(this.__dataOld[e]=i),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,ei.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,n=this.__dataOld;this._shouldPropertiesChange(e,t,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,n)),this.__dataCounter--}_shouldPropertiesChange(e,t,n){return Boolean(t)}_propertiesChanged(e,t,n){}_shouldPropertyChange(e,t,n){return n!==t&&(n==n||t==t)}attributeChangedCallback(e,t,n,i){t!==n&&this._attributeToProperty(e,n),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,n,i)}_attributeToProperty(e,t,n){if(!this.__serializing){const i=this.__dataAttributes,r=i&&i[e]||e;this[r]=this._deserializeValue(t,n||this.constructor.typeForProperty(r))}}_propertyToAttribute(e,t,n){this.__serializing=!0,n=arguments.length<3?this[e]:n,this._valueToNodeAttribute(this,n,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,n){const i=this._serializeValue(t);"class"!==n&&"name"!==n&&"slot"!==n||(e=Pn(e)),void 0===i?e.removeAttribute(n):e.setAttribute(n,""===i&&window.trustedTypes?window.trustedTypes.emptyScript:i)}_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}),ni={};let ii=HTMLElement.prototype;for(;ii;){let e=Object.getOwnPropertyNames(ii);for(let t=0;t<e.length;t++)ni[e[t]]=!0;ii=Object.getPrototypeOf(ii)}const ri=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1;function si(e,t){if(!ni[t]){let n=e[t];void 0!==n&&(e.__data?e._setPendingProperty(t,n):(e.__dataProto?e.hasOwnProperty(JSCompiler_renameProperty("__dataProto",e))||(e.__dataProto=Object.create(e.__dataProto)):e.__dataProto={},e.__dataProto[t]=n))}}const oi=on(e=>{const t=ti(e);class n extends t{static createPropertiesForAttributes(){let e=this.observedAttributes;for(let t=0;t<e.length;t++)this.prototype._createPropertyAccessor($n(e[t]))}static attributeNameForProperty(e){return jn(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 n=this;n.hasAttribute(e)||this._valueToNodeAttribute(n,t,e)}_serializeValue(e){switch(typeof e){case"object":if(e instanceof Date)return e.toString();if(e){if(ri(e))return e;try{return JSON.stringify(e)}catch(e){return""}}default:return super._serializeValue(e)}}_deserializeValue(e,t){let n;switch(t){case Object:try{n=JSON.parse(e)}catch(t){n=e}break;case Array:try{n=JSON.parse(e)}catch(t){n=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:n=isNaN(e)?String(e):Number(e),n=new Date(n);break;default:n=super._deserializeValue(e,t)}return n}_definePropertyAccessor(e,t){si(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 n}),ai={"dom-if":!0,"dom-repeat":!0};
|
|
336
|
-
/**
|
|
337
|
-
@license
|
|
338
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
339
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
340
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
341
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
342
|
-
Code distributed by Google as part of the polymer project is also
|
|
343
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
344
|
-
*/let li=!1,ci=!1;function hi(){if(!li){li=!0;const e=document.createElement("textarea");e.placeholder="a",ci=e.placeholder===e.textContent}return ci}function di(e){hi()&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null)}const pi=(()=>{const e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(t,n,i)=>{const r=n.getAttribute(i);e&&i.startsWith("on-")?t.setAttribute(i,e.createScript(r,i)):t.setAttribute(i,r)}})();function ui(e){let t=e.getAttribute("is");if(t&&ai[t]){let n=e;for(n.removeAttribute("is"),e=n.ownerDocument.createElement(t),n.parentNode.replaceChild(e,n),e.appendChild(n);n.attributes.length;){const{name:t}=n.attributes[0];pi(e,n,t),n.removeAttribute(t)}}return e}function fi(e,t){let n=t.parentInfo&&fi(e,t.parentInfo);if(!n)return e;for(let e=n.firstChild,i=0;e;e=e.nextSibling)if(t.parentIndex===i++)return e}function mi(e,t,n,i){i.id&&(t[i.id]=n)}function gi(e,t,n){if(n.events&&n.events.length)for(let i,r=0,s=n.events;r<s.length&&(i=s[r]);r++)e._addMethodEventListenerToNode(t,i.name,i.value,e)}function _i(e,t,n,i){n.templateInfo&&(t._templateInfo=n.templateInfo,t._parentTemplateInfo=i)}function yi(e,t,n){return e=e._methodHost||e,function(t){e[n]?e[n](t,t.detail):console.warn("listener method `"+n+"` not defined")}}const bi=on(e=>{class t extends e{static _parseTemplate(e,t){if(!e._templateInfo){let n=e._templateInfo={};n.nodeInfoList=[],n.nestedTemplate=Boolean(t),n.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,n,{parent:null})}return e._templateInfo}static _parseTemplateContent(e,t,n){return this._parseTemplateNode(e.content,t,n)}static _parseTemplateNode(e,t,n){let i=!1,r=e;return"template"!=r.localName||r.hasAttribute("preserve-content")?"slot"===r.localName&&(t.hasInsertionPoint=!0):i=this._parseTemplateNestedTemplate(r,t,n)||i,di(r),r.firstChild&&this._parseTemplateChildNodes(r,t,n),r.hasAttributes&&r.hasAttributes()&&(i=this._parseTemplateNodeAttributes(r,t,n)||i),i||n.noted}static _parseTemplateChildNodes(e,t,n){if("script"!==e.localName&&"style"!==e.localName)for(let i,r=e.firstChild,s=0;r;r=i){if("template"==r.localName&&(r=ui(r)),i=r.nextSibling,r.nodeType===Node.TEXT_NODE){let n=i;for(;n&&n.nodeType===Node.TEXT_NODE;)r.textContent+=n.textContent,i=n.nextSibling,e.removeChild(n),n=i;if(t.stripWhiteSpace&&!r.textContent.trim()){e.removeChild(r);continue}}let o={parentIndex:s,parentInfo:n};this._parseTemplateNode(r,t,o)&&(o.infoIndex=t.nodeInfoList.push(o)-1),r.parentNode&&s++}}static _parseTemplateNestedTemplate(e,t,n){let i=e,r=this._parseTemplate(i,t);return(r.content=i.content.ownerDocument.createDocumentFragment()).appendChild(i.content),n.templateInfo=r,!0}static _parseTemplateNodeAttributes(e,t,n){let i=!1,r=Array.from(e.attributes);for(let s,o=r.length-1;s=r[o];o--)i=this._parseTemplateNodeAttribute(e,t,n,s.name,s.value)||i;return i}static _parseTemplateNodeAttribute(e,t,n,i,r){return"on-"===i.slice(0,3)?(e.removeAttribute(i),n.events=n.events||[],n.events.push({name:i.slice(3),value:r}),!0):"id"===i&&(n.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 n=(t=t||this.constructor._parseTemplate(e)).nodeInfoList,i=t.content||e.content,r=document.importNode(i,!0);r.__noInsertionPoint=!t.hasInsertionPoint;let s=r.nodeList=new Array(n.length);r.$={};for(let e,i=0,o=n.length;i<o&&(e=n[i]);i++){let n=s[i]=fi(r,e);mi(this,r.$,n,e),_i(this,n,e,t),gi(this,n,e)}return r=r,r}_addMethodEventListenerToNode(e,t,n,i){let r=yi(i=i||e,t,n);return this._addEventListenerToNode(e,t,r),r}_addEventListenerToNode(e,t,n){e.addEventListener(t,n)}_removeEventListenerFromNode(e,t,n){e.removeEventListener(t,n)}}return t});
|
|
345
|
-
/**
|
|
346
|
-
* @fileoverview
|
|
347
|
-
* @suppress {checkPrototypalTypes}
|
|
348
|
-
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
349
|
-
* This code may only be used under the BSD style license found at
|
|
350
|
-
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
351
|
-
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
352
|
-
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
353
|
-
* Google as part of the polymer project is also subject to an additional IP
|
|
354
|
-
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
355
|
-
*/let vi=0;const wi=[],xi={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ki="__computeInfo",Si=/[A-Z]/;function Ci(e,t,n){let i=e[t];if(i){if(!e.hasOwnProperty(t)&&(i=e[t]=Object.create(e[t]),n))for(let e in i){let t=i[e],n=i[e]=Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e]}}else i=e[t]={};return i}function Ai(e,t,n,i,r,s){if(t){let o=!1;const a=vi++;for(let l in n){let c=t[r?En(l):l];if(c)for(let t,h=0,d=c.length;h<d&&(t=c[h]);h++)t.info&&t.info.lastRun===a||r&&!Ti(l,t.trigger)||(t.info&&(t.info.lastRun=a),t.fn(e,l,n,i,t.info,r,s),o=!0)}return o}return!1}function Pi(e,t,n,i,r,s,o,a){let l=!1,c=t[o?En(i):i];if(c)for(let t,h=0,d=c.length;h<d&&(t=c[h]);h++)t.info&&t.info.lastRun===n||o&&!Ti(i,t.trigger)||(t.info&&(t.info.lastRun=n),t.fn(e,i,r,s,t.info,o,a),l=!0);return l}function Ti(e,t){if(t){let n=t.name;return n==e||!(!t.structured||!On(n,e))||!(!t.wildcard||!Nn(n,e))}return!0}function Ei(e,t,n,i,r){let s="string"==typeof r.method?e[r.method]:r.method,o=r.property;s?s.call(e,e.__data[o],i[o]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function Oi(e,t,n,i,r){let s,o,a=e[xi.NOTIFY],l=vi++;for(let o in t)t[o]&&(a&&Pi(e,a,l,o,n,i,r)||r&&Ni(e,o,n))&&(s=!0);s&&(o=e.__dataHost)&&o._invalidateProperties&&o._invalidateProperties()}function Ni(e,t,n){let i=En(t);if(i!==t){return Ri(e,jn(i)+"-changed",n[t],t),!0}return!1}function Ri(e,t,n,i){let r={value:n,queueProperty:!0};i&&(r.path=i),Pn(e).dispatchEvent(new CustomEvent(t,{detail:r}))}function zi(e,t,n,i,r,s){let o=(s?En(t):t)!=t?t:null,a=o?Mn(e,o):e.__data[t];o&&void 0===a&&(a=n[t]),Ri(e,r.eventName,a,o)}function Ii(e,t,n,i,r){let s,o=e.detail,a=o&&o.path;a?(i=Rn(n,i,a),s=o&&o.value):s=e.currentTarget[n],s=r?!s:s,t[xi.READ_ONLY]&&t[xi.READ_ONLY][i]||!t._setPendingPropertyOrPath(i,s,!0,Boolean(a))||o&&o.queueProperty||t._invalidateProperties()}function Di(e,t,n,i,r){let s=e.__data[t];qt&&(s=qt(s,r.attrName,"attribute",e)),e._propertyToAttribute(t,r.attrName,s)}function Mi(e,t,n,i){let r=e[xi.COMPUTE];if(r)if(Xt){vi++;const s=Bi(e),o=[];for(let e in t)Fi(e,r,o,s,i);let a;for(;a=o.shift();)$i(e,"",t,n,a)&&Fi(a.methodInfo,r,o,s,i);Object.assign(n,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let s=t;for(;Ai(e,r,s,n,i);)Object.assign(n,e.__dataOld),Object.assign(t,e.__dataPending),s=e.__dataPending,e.__dataPending=null}}const Li=(e,t,n)=>{let i=0,r=t.length-1,s=-1;for(;i<=r;){const o=i+r>>1,a=n.get(t[o].methodInfo)-n.get(e.methodInfo);if(a<0)i=o+1;else{if(!(a>0)){s=o;break}r=o-1}}s<0&&(s=r+1),t.splice(s,0,e)},Fi=(e,t,n,i,r)=>{const s=t[r?En(e):e];if(s)for(let t=0;t<s.length;t++){const o=s[t];o.info.lastRun===vi||r&&!Ti(e,o.trigger)||(o.info.lastRun=vi,Li(o.info,n,i))}};function Bi(e){let t=e.constructor.__orderedComputedDeps;if(!t){t=new Map;const n=e[xi.COMPUTE];let i,{counts:r,ready:s,total:o}=Hi(e);for(;i=s.shift();){t.set(i,t.size);const e=n[i];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 Hi(e){const t=e[ki],n={},i=e[xi.COMPUTE],r=[];let s=0;for(let e in t){const i=t[e];s+=n[e]=i.args.filter(e=>!e.literal).length+(i.dynamicFn?1:0)}for(let e in i)t[e]||r.push(e);return{counts:n,ready:r,total:s}}function $i(e,t,n,i,r){let s=Qi(e,t,n,i,r);if(s===wi)return!1;let o=r.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[o]?e._setPendingProperty(o,s,!0):(e[o]=s,!1)}function ji(e,t,n){let i=e.__dataLinkedPaths;if(i){let r;for(let s in i){let o=i[s];Nn(s,t)?(r=Rn(s,o,t),e._setPendingPropertyOrPath(r,n,!0,!0)):Nn(o,t)&&(r=Rn(o,s,t),e._setPendingPropertyOrPath(r,n,!0,!0))}}}function Ui(e,t,n,i,r,s,o){n.bindings=n.bindings||[];let a={kind:i,target:r,parts:s,literal:o,isCompound:1!==s.length};if(n.bindings.push(a),Yi(a)){let{event:e,negate:t}=a.parts[0];a.listenerEvent=e||jn(r)+"-changed",a.listenerNegate=t}let l=t.nodeInfoList.length;for(let n=0;n<a.parts.length;n++){let i=a.parts[n];i.compoundIndex=n,qi(e,t,a,i,l)}}function qi(e,t,n,i,r){if(!i.literal)if("attribute"===n.kind&&"-"===n.target[0])console.warn("Cannot set attribute "+n.target+' because "-" is not a valid attribute starting character');else{let s=i.dependencies,o={index:r,binding:n,part:i,evaluator:e};for(let n=0;n<s.length;n++){let i=s[n];"string"==typeof i&&(i=ar(i),i.wildcard=!0),e._addTemplatePropertyEffect(t,i.rootProperty,{fn:Vi,info:o,trigger:i})}}}function Vi(e,t,n,i,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 i=n[t];t=Rn(c.source,l.target,t),a._setPendingPropertyOrPath(t,i,!1,!0)&&e._enqueueClient(a)}else{let o=r.evaluator._evaluateBinding(e,c,t,n,i,s);o!==wi&&Wi(e,a,l,c,o)}}function Wi(e,t,n,i,r){if(r=Ki(t,r,n,i),qt&&(r=qt(r,n.target,n.kind,t)),"attribute"==n.kind)e._valueToNodeAttribute(t,r,n.target);else{let i=n.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[i]?t[xi.READ_ONLY]&&t[xi.READ_ONLY][i]||t._setPendingProperty(i,r)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,i,r)}}function Ki(e,t,n,i){if(n.isCompound){let r=e.__dataCompoundStorage[n.target];r[i.compoundIndex]=t,t=r.join("")}return"attribute"!==n.kind&&("textContent"!==n.target&&("value"!==n.target||"input"!==e.localName&&"textarea"!==e.localName)||(t=null==t?"":t)),t}function Yi(e){return Boolean(e.target)&&"attribute"!=e.kind&&"text"!=e.kind&&!e.isCompound&&"{"===e.parts[0].mode}function Gi(e,t){let{nodeList:n,nodeInfoList:i}=t;if(i.length)for(let t=0;t<i.length;t++){let r=i[t],s=n[t],o=r.bindings;if(o)for(let t=0;t<o.length;t++){let n=o[t];Ji(s,n),Zi(s,e,n)}s.__dataHost=e}}function Ji(e,t){if(t.isCompound){let n=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),i=t.parts,r=new Array(i.length);for(let e=0;e<i.length;e++)r[e]=i[e].literal;let s=t.target;n[s]=r,t.literal&&"property"==t.kind&&("className"===s&&(e=Pn(e)),e[s]=t.literal)}}function Zi(e,t,n){if(n.listenerEvent){let i=n.parts[0];e.addEventListener(n.listenerEvent,(function(e){Ii(e,t,n.target,i.source,i.negate)}))}}function Xi(e,t,n,i,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,n,{fn:i,info:o,trigger:r});return s&&e._addPropertyEffect(t.methodName,n,{fn:i,info:o}),o}function Qi(e,t,n,i,r){let s=e._methodHost||e,o=s[r.methodName];if(o){let i=e._marshalArgs(r.args,t,n);return i===wi?wi:o.apply(s,i)}r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const er=[],tr="(?:[a-zA-Z_$][\\w.:$\\-*]*)",nr="(?:("+tr+"|"+"(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)"+"|"+("(?:"+"(?:'(?:[^'\\\\]|\\\\.)*')"+"|"+'(?:"(?:[^"\\\\]|\\\\.)*")'+")")+")\\s*)",ir=new RegExp("(\\[\\[|{{)\\s*"+"(?:(!)\\s*)?"+("("+tr+"\\s*"+("(?:\\(\\s*(?:"+("(?:"+nr+"(?:,\\s*"+nr+")*)")+"?)\\)\\s*)")+"?)")+"(?:]]|}})","g");function rr(e){let t="";for(let n=0;n<e.length;n++){t+=e[n].literal||""}return t}function sr(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let e={methodName:t[1],static:!0,args:er};if(t[2].trim()){return or(t[2].replace(/\\,/g,",").split(","),e)}return e}return null}function or(e,t){return t.args=e.map((function(e){let n=ar(e);return n.literal||(t.static=!1),n}),this),t}function ar(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),n={name:t,value:"",literal:!1},i=t[0];switch("-"===i&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':n.value=t.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(t),n.literal=!0}return n.literal||(n.rootProperty=En(t),n.structured=Tn(t),n.structured&&(n.wildcard=".*"==t.slice(-2),n.wildcard&&(n.name=t.slice(0,-2)))),n}function lr(e,t,n){let i=Mn(e,n);return void 0===i&&(i=t[n]),i}function cr(e,t,n,i){const r={indexSplices:i};Zt&&!e._overrideLegacyUndefined&&(t.splices=r),e.notifyPath(n+".splices",r),e.notifyPath(n+".length",t.length),Zt&&!e._overrideLegacyUndefined&&(r.indexSplices=[])}function hr(e,t,n,i,r,s){cr(e,t,n,[{index:i,addedCount:r,removed:s,object:t,type:"splice"}])}function dr(e){return e[0].toUpperCase()+e.substring(1)}const pr=on(e=>{const t=bi(oi(e));class n 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 xi}_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(ur.length){let e=ur[ur.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[xi.READ_ONLY];for(let n in e)t&&t[n]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=e[n])}_addPropertyEffect(e,t,n){this._createPropertyAccessor(e,t==xi.READ_ONLY);let i=Ci(this,t,!0)[e];i||(i=this[t][e]=[]),i.push(n)}_removePropertyEffect(e,t,n){let i=Ci(this,t,!0)[e],r=i.indexOf(n);r>=0&&i.splice(r,1)}_hasPropertyEffect(e,t){let n=this[t];return Boolean(n&&n[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,xi.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,xi.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,xi.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,xi.COMPUTE)}_setPendingPropertyOrPath(e,t,n,i){if(i||En(Array.isArray(e)?e[0]:e)!==e){if(!i){let n=Mn(this,e);if(!(e=Ln(this,e,t))||!super._shouldPropertyChange(e,t,n))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,n))return ji(this,e,t),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,n);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,n){n===e[t]&&"object"!=typeof n||("className"===t&&(e=Pn(e)),e[t]=n)}_setPendingProperty(e,t,n){let i=this.__dataHasPaths&&Tn(e),r=i?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]),i?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(i||this[xi.NOTIFY]&&this[xi.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=n),!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 n=e[t];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(let n in e)!t&&this[xi.READ_ONLY]&&this[xi.READ_ONLY][n]||this._setPendingPropertyOrPath(n,e[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,t,n){let i,r=this.__dataHasPaths;this.__dataHasPaths=!1,Mi(this,t,n,r),i=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(t,n,r),this._flushClients(),Ai(this,this[xi.REFLECT],t,n,r),Ai(this,this[xi.OBSERVE],t,n,r),i&&Oi(this,i,t,n,r),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,n){this[xi.PROPAGATE]&&Ai(this,this[xi.PROPAGATE],e,t,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,n)}_runEffectsForTemplate(e,t,n,i){const r=(t,i)=>{Ai(this,e.propertyEffects,t,n,i,e.nodeList);for(let r=e.firstChild;r;r=r.nextSibling)this._runEffectsForTemplate(r,t,n,i)};e.runEffects?e.runEffects(r,t,i):r(t,i)}linkPaths(e,t){e=In(e),t=In(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=In(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){let n={path:""};cr(this,Mn(this,e,n),n.path,t)}get(e,t){return Mn(t||this,e)}set(e,t,n){n?Ln(n,e,t):this[xi.READ_ONLY]&&this[xi.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){let n={path:""},i=Mn(this,e,n),r=i.length,s=i.push(...t);return t.length&&hr(this,i,n.path,r,t.length,[]),s}pop(e){let t={path:""},n=Mn(this,e,t),i=Boolean(n.length),r=n.pop();return i&&hr(this,n,t.path,n.length,0,[r]),r}splice(e,t,n,...i){let r,s={path:""},o=Mn(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,n,...i),(i.length||r.length)&&hr(this,o,s.path,t,i.length,r),r}shift(e){let t={path:""},n=Mn(this,e,t),i=Boolean(n.length),r=n.shift();return i&&hr(this,n,t.path,0,0,[r]),r}unshift(e,...t){let n={path:""},i=Mn(this,e,n),r=i.unshift(...t);return t.length&&hr(this,i,n.path,0,t.length,[]),r}notifyPath(e,t){let n;if(1==arguments.length){let i={path:""};t=Mn(this,e,i),n=i.path}else n=Array.isArray(e)?In(e):e;this._setPendingPropertyOrPath(n,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(e,t){this._addPropertyEffect(e,xi.READ_ONLY),t&&(this["_set"+dr(e)]=function(t){this._setProperty(e,t)})}_createPropertyObserver(e,t,n){let i={property:e,method:t,dynamicFn:Boolean(n)};this._addPropertyEffect(e,xi.OBSERVE,{fn:Ei,info:i,trigger:{name:e}}),n&&this._addPropertyEffect(t,xi.OBSERVE,{fn:Ei,info:i,trigger:{name:t}})}_createMethodObserver(e,t){let n=sr(e);if(!n)throw new Error("Malformed observer expression '"+e+"'");Xi(this,n,xi.OBSERVE,Qi,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,xi.NOTIFY,{fn:zi,info:{eventName:jn(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,xi.REFLECT,{fn:Di,info:{attrName:t}})}_createComputedProperty(e,t,n){let i=sr(t);if(!i)throw new Error("Malformed computed expression '"+t+"'");const r=Xi(this,i,xi.COMPUTE,$i,e,n);Ci(this,ki)[e]=r}_marshalArgs(e,t,n){const i=this.__data,r=[];for(let s=0,o=e.length;s<o;s++){let{name:o,structured:a,wildcard:l,value:c,literal:h}=e[s];if(!h)if(l){const e=Nn(o,t),r=lr(i,n,e?t:o);c={path:e?t:o,value:r,base:e?Mn(i,o):r}}else c=a?lr(i,n,o):i[o];if(Zt&&!this._overrideLegacyUndefined&&void 0===c&&e.length>1)return wi;r[s]=c}return r}static addPropertyEffect(e,t,n){this.prototype._addPropertyEffect(e,t,n)}static createPropertyObserver(e,t,n){this.prototype._createPropertyObserver(e,t,n)}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,n){this.prototype._createComputedProperty(e,t,n)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let n=this.constructor._parseTemplate(e),i=this.__preBoundTemplateInfo==n;if(!i)for(let e in n.propertyEffects)this._createPropertyAccessor(e);if(t)if(n=Object.create(n),n.wasPreBound=i,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,i=t.lastChild;n.parent=t,t.lastChild=n,n.previousSibling=i,i?i.nextSibling=n:t.firstChild=n}else this.__templateInfo=n;else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(e,t,n){(e.hostProps=e.hostProps||{})[t]=!0;let i=e.propertyEffects=e.propertyEffects||{};(i[t]=i[t]||[]).push(n)}_stampTemplate(e,t){t=t||this._bindTemplate(e,!0),ur.push(this);let n=super._stampTemplate(e,t);if(ur.pop(),t.nodeList=n.nodeList,!t.wasPreBound){let e=t.childNodes=[];for(let t=n.firstChild;t;t=t.nextSibling)e.push(t)}return n.templateInfo=t,Gi(this,t),this.__dataClientsReady&&(this._runEffectsForTemplate(t,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(e){const t=e.templateInfo,{previousSibling:n,nextSibling:i,parent:r}=t;n?n.nextSibling=i:r&&(r.firstChild=i),i?i.previousSibling=n:r&&(r.lastChild=n),t.nextSibling=t.previousSibling=null;let s=t.childNodes;for(let e=0;e<s.length;e++){let t=s[e];Pn(Pn(t).parentNode).removeChild(t)}}static _parseTemplateNode(e,n,i){let r=t._parseTemplateNode.call(this,e,n,i);if(e.nodeType===Node.TEXT_NODE){let t=this._parseBindings(e.textContent,n);t&&(e.textContent=rr(t)||" ",Ui(this,n,i,"text","textContent",t),r=!0)}return r}static _parseTemplateNodeAttribute(e,n,i,r,s){let o=this._parseBindings(s,n);if(o){let t=r,s="property";Si.test(r)?s="attribute":"$"==r[r.length-1]&&(r=r.slice(0,-1),s="attribute");let a=rr(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=$n(r)),Ui(this,n,i,s,r,o,a),!0}return t._parseTemplateNodeAttribute.call(this,e,n,i,r,s)}static _parseTemplateNestedTemplate(e,n,i){let r=t._parseTemplateNestedTemplate.call(this,e,n,i);const s=e.parentNode,o=i.templateInfo,a="dom-if"===s.localName,l="dom-repeat"===s.localName;Qt&&(a||l)&&(s.removeChild(e),(i=i.parentInfo).templateInfo=o,i.noted=!0,r=!1);let c=o.hostProps;if(en&&a)c&&(n.hostProps=Object.assign(n.hostProps||{},c),Qt||(i.parentInfo.noted=!0));else{let e="{";for(let t in c){Ui(this,n,i,"property","_host_"+t,[{mode:e,source:t,dependencies:[t],hostProp:!0}])}}return r}static _parseBindings(e,t){let n,i=[],r=0;for(;null!==(n=ir.exec(e));){n.index>r&&i.push({literal:e.slice(r,n.index)});let s=n[1][0],o=Boolean(n[2]),a=n[3].trim(),l=!1,c="",h=-1;"{"==s&&(h=a.indexOf("::"))>0&&(c=a.substring(h+2),a=a.substring(0,h),l=!0);let d=sr(a),p=[];if(d){let{args:e,methodName:n}=d;for(let t=0;t<e.length;t++){let n=e[t];n.literal||p.push(n)}let i=t.dynamicFns;(i&&i[n]||d.static)&&(p.push(n),d.dynamicFn=!0)}else p.push(a);i.push({source:a,mode:s,negate:o,customEvent:l,signature:d,dependencies:p,event:c}),r=ir.lastIndex}if(r&&r<e.length){let t=e.substring(r);t&&i.push({literal:t})}return i.length?i:null}static _evaluateBinding(e,t,n,i,r,s){let o;return o=t.signature?Qi(e,n,i,r,t.signature):n!=t.source?Mn(e,t.source):s&&Tn(n)?Mn(e,n):e.__data[n],t.negate&&(o=!o),o}}return n}),ur=[];
|
|
356
|
-
/**
|
|
357
|
-
@license
|
|
358
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
359
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
360
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
361
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
362
|
-
Code distributed by Google as part of the polymer project is also
|
|
363
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
364
|
-
*/
|
|
365
|
-
function fr(e){}
|
|
366
|
-
/**
|
|
367
|
-
@license
|
|
368
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
369
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
370
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
371
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
372
|
-
Code distributed by Google as part of the polymer project is also
|
|
373
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
374
|
-
*/function mr(e){const t={};for(let n in e){const i=e[n];t[n]="function"==typeof i?{type:i}:i}return t}const gr=on(e=>{const t=ti(e);function n(e){const t=Object.getPrototypeOf(e);return t.prototype instanceof r?t:null}function i(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",e))){let t=null;if(e.hasOwnProperty(JSCompiler_renameProperty("properties",e))){const n=e.properties;n&&(t=mr(n))}e.__ownProperties=t}return e.__ownProperties}class r extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){fr(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=n(this);e&&e.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const e=i(this);e&&this.createProperties(e)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const e=n(this);this.__properties=Object.assign({},e&&e._properties,i(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}),_r="3.5.1",yr=window.ShadyCSS&&window.ShadyCSS.cssBuild,br=on(e=>{const t=gr(pr(e));function n(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;let t=e._properties;for(let n in t){let i=t[n];"value"in i&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[n]=i)}}return e.__propertyDefaults}function i(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,n,i){n.computed&&(n.readOnly=!0),n.computed&&(e._hasReadOnlyEffect(t)?console.warn(`Cannot redefine computed property '${t}'.`):e._createComputedProperty(t,n.computed,i)),n.readOnly&&!e._hasReadOnlyEffect(t)?e._createReadOnlyProperty(t,!n.computed):!1===n.readOnly&&e._hasReadOnlyEffect(t)&&console.warn(`Cannot make readOnly property '${t}' non-readOnly.`),n.reflectToAttribute&&!e._hasReflectEffect(t)?e._createReflectedProperty(t):!1===n.reflectToAttribute&&e._hasReflectEffect(t)&&console.warn(`Cannot make reflected property '${t}' non-reflected.`),n.notify&&!e._hasNotifyEffect(t)?e._createNotifyingProperty(t):!1===n.notify&&e._hasNotifyEffect(t)&&console.warn(`Cannot make notify property '${t}' non-notify.`),n.observer&&e._createPropertyObserver(t,n.observer,i[n.observer]),e._addPropertyToAttributeMap(t)}function s(e,t,n,i){if(!yr){const r=t.content.querySelectorAll("style"),s=vn(t),o=wn(n),a=t.content.firstElementChild;for(let n=0;n<o.length;n++){let r=o[n];r.textContent=e._processStyleText(r.textContent,i),t.content.insertBefore(r,a)}let l=0;for(let t=0;t<s.length;t++){let n=s[t],o=r[l];o!==n?(n=n.cloneNode(!0),o.parentNode.insertBefore(n,o)):l++,n.textContent=e._processStyleText(n.textContent,i)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,n),rn&&yr&&jt){const n=t.content.querySelectorAll("style");if(n){let t="";Array.from(n).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&&(!Wt||Kt)&&(t=pn.import(e,"template"),Wt&&!t))throw new Error("strictTemplatePolicy: expecting dom-module or null template for "+e);return t}class a extends t{static get polymerElementVersion(){return _r}static _finalizeClass(){t._finalizeClass.call(this);const e=i(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):Yt||(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 n=this.prototype;for(let i=0;i<e.length;i++)n._createMethodObserver(e[i],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=Ht(e.url);else{const e=pn.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=Ut,this.importPath=this.constructor.importPath;let e=n(this.constructor);if(e)for(let t in e){let n=e[t];if(this._canApplyPropertyDefault(t)){let e="function"==typeof n.value?n.value.call(this):n.value;this._hasAccessor(t)?this._setPendingProperty(t,e,!0):this[t]=e}}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return Bt(e,t)}static _finalizeTemplate(e){const t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;const n=this.importPath;s(this,t,e,n?Ft(n):""),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=Pn(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])),Jt&&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=Ft(this.importPath)),Ft(e,t)}static _parseTemplateContent(e,n,i){return n.dynamicFns=n.dynamicFns||this._properties,t._parseTemplateContent.call(this,e,n,i)}static _addTemplatePropertyEffect(e,n,i){return!Gt||n in this._properties||i.info.part.signature&&i.info.part.signature.static||i.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,e,n,i)}}return a});
|
|
375
|
-
/**
|
|
376
|
-
* @fileoverview
|
|
377
|
-
* @suppress {checkPrototypalTypes}
|
|
378
|
-
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
379
|
-
* This code may only be used under the BSD style license found at
|
|
380
|
-
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
381
|
-
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
382
|
-
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
383
|
-
* Google as part of the polymer project is also subject to an additional IP
|
|
384
|
-
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
385
|
-
*/
|
|
386
|
-
/**
|
|
387
|
-
@license
|
|
388
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
389
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
390
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
391
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
392
|
-
Code distributed by Google as part of the polymer project is also
|
|
393
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
394
|
-
*/
|
|
395
|
-
class vr{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,wr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),wr.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,n){return e instanceof vr?e._cancelAsync():e=new vr,e.setConfig(t,n),e}}let wr=new Set;const xr=function(e){wr.add(e)},kr=function(){const e=Boolean(wr.size);return wr.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e};
|
|
396
|
-
/**
|
|
397
|
-
@license
|
|
398
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
399
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
400
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
401
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
402
|
-
Code distributed by Google as part of the polymer project is also
|
|
403
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
404
|
-
*/
|
|
405
|
-
let Sr="string"==typeof document.head.style.touchAction,Cr="__polymerGestures",Ar="__polymerGesturesHandled",Pr="__polymerGesturesTouchAction",Tr=25,Er=5,Or=2,Nr=2500,Rr=["mousedown","mousemove","mouseup","click"],zr=[0,1,4,2],Ir=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function Dr(e){return Rr.indexOf(e)>-1}let Mr=!1;function Lr(e){if(!Dr(e)&&"touchend"!==e)return Sr&&Mr&&Vt?{passive:!0}:void 0}!function(){try{let e=Object.defineProperty({},"passive",{get(){Mr=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}();let Fr=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const Br=[],Hr={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},$r={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function jr(e){return Hr[e.localName]||!1}function Ur(e){let t=Array.prototype.slice.call(e.labels||[]);if(!t.length){t=[];try{let n=e.getRootNode();if(e.id){let i=n.querySelectorAll(`label[for = '${e.id}']`);for(let e=0;e<i.length;e++)t.push(i[e])}}catch(e){}}return t}let qr=function(e){let t=e.sourceCapabilities;if((!t||t.firesTouchEvents)&&(e[Ar]={skip:!0},"click"===e.type)){let t=!1,n=Qr(e);for(let e=0;e<n.length;e++){if(n[e].nodeType===Node.ELEMENT_NODE)if("label"===n[e].localName)Br.push(n[e]);else if(jr(n[e])){let i=Ur(n[e]);for(let e=0;e<i.length;e++)t=t||Br.indexOf(i[e])>-1}if(n[e]===Gr.mouse.target)return}if(t)return;e.preventDefault(),e.stopPropagation()}};function Vr(e){let t=Fr?["click"]:Rr;for(let n,i=0;i<t.length;i++)n=t[i],e?(Br.length=0,document.addEventListener(n,qr,!0)):document.removeEventListener(n,qr,!0)}function Wr(e){Gr.mouse.mouseIgnoreJob||Vr(!0);let t=function(){Vr(),Gr.mouse.target=null,Gr.mouse.mouseIgnoreJob=null};Gr.mouse.target=Qr(e)[0],Gr.mouse.mouseIgnoreJob=vr.debounce(Gr.mouse.mouseIgnoreJob,Jn.after(Nr),t)}function Kr(e){let t=e.type;if(!Dr(t))return!1;if("mousemove"===t){let t=void 0===e.buttons?1:e.buttons;return e instanceof window.MouseEvent&&!Ir&&(t=zr[e.which]||0),Boolean(1&t)}return 0===(void 0===e.button?0:e.button)}function Yr(e){if("click"===e.type){if(0===e.detail)return!0;let t=is(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;let n=t.getBoundingClientRect(),i=e.pageX,r=e.pageY;return!(i>=n.left&&i<=n.right&&r>=n.top&&r<=n.bottom)}return!1}let Gr={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Jr(e){let t="auto",n=Qr(e);for(let e,i=0;i<n.length;i++)if(e=n[i],e[Pr]){t=e[Pr];break}return t}function Zr(e,t,n){e.movefn=t,e.upfn=n,document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)}function Xr(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}document.addEventListener("touchend",Wr,!!Mr&&{passive:!0});const Qr=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],es={},ts=[];function ns(e,t){let n=document.elementFromPoint(e,t),i=n;for(;i&&i.shadowRoot&&!window.ShadyDOM;){let r=i;if(i=i.shadowRoot.elementFromPoint(e,t),r===i)break;i&&(n=i)}return n}function is(e){const t=Qr(e);return t.length>0?t[0]:e.target}function rs(e){let t,n=e.type,i=e.currentTarget[Cr];if(!i)return;let r=i[n];if(r){if(!e[Ar]&&(e[Ar]={},"touch"===n.slice(0,5))){let t=(e=e).changedTouches[0];if("touchstart"===n&&1===e.touches.length&&(Gr.touch.id=t.identifier),Gr.touch.id!==t.identifier)return;Sr||"touchstart"!==n&&"touchmove"!==n||ss(e)}if(t=e[Ar],!t.skip){for(let n,i=0;i<ts.length;i++)n=ts[i],r[n.name]&&!t[n.name]&&n.flow&&n.flow.start.indexOf(e.type)>-1&&n.reset&&n.reset();for(let i,s=0;s<ts.length;s++)i=ts[s],r[i.name]&&!t[i.name]&&(t[i.name]=!0,i[n](e))}}}function ss(e){let t=e.changedTouches[0],n=e.type;if("touchstart"===n)Gr.touch.x=t.clientX,Gr.touch.y=t.clientY,Gr.touch.scrollDecided=!1;else if("touchmove"===n){if(Gr.touch.scrollDecided)return;Gr.touch.scrollDecided=!0;let n=Jr(e),i=!1,r=Math.abs(Gr.touch.x-t.clientX),s=Math.abs(Gr.touch.y-t.clientY);e.cancelable&&("none"===n?i=!0:"pan-x"===n?i=s>r:"pan-y"===n&&(i=r>s)),i?e.preventDefault():fs("track")}}function os(e,t,n){return!!es[t]&&(ls(e,t,n),!0)}function as(e,t,n){return!!es[t]&&(cs(e,t,n),!0)}function ls(e,t,n){let i=es[t],r=i.deps,s=i.name,o=e[Cr];o||(e[Cr]=o={});for(let t,n,i=0;i<r.length;i++)t=r[i],Fr&&Dr(t)&&"click"!==t||(n=o[t],n||(o[t]=n={_count:0}),0===n._count&&e.addEventListener(t,rs,Lr(t)),n[s]=(n[s]||0)+1,n._count=(n._count||0)+1);e.addEventListener(t,n),i.touchAction&&ps(e,i.touchAction)}function cs(e,t,n){let i=es[t],r=i.deps,s=i.name,o=e[Cr];if(o)for(let t,n,i=0;i<r.length;i++)t=r[i],n=o[t],n&&n[s]&&(n[s]=(n[s]||1)-1,n._count=(n._count||1)-1,0===n._count&&e.removeEventListener(t,rs,Lr(t)));e.removeEventListener(t,n)}function hs(e){ts.push(e);for(let t=0;t<e.emits.length;t++)es[e.emits[t]]=e}function ds(e){for(let t,n=0;n<ts.length;n++){t=ts[n];for(let n,i=0;i<t.emits.length;i++)if(n=t.emits[i],n===e)return t}return null}function ps(e,t){Sr&&e instanceof HTMLElement&&Qn.run(()=>{e.style.touchAction=t}),e[Pr]=t}function us(e,t,n){let i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=n,Pn(e).dispatchEvent(i),i.defaultPrevented){let e=n.preventer||n.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function fs(e){let t=ds(e);t.info&&(t.info.prevent=!0)}function ms(e,t,n,i){t&&us(t,e,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:i,prevent:function(e){return fs(e)}})}function gs(e,t,n){if(e.prevent)return!1;if(e.started)return!0;let i=Math.abs(e.x-t),r=Math.abs(e.y-n);return i>=Er||r>=Er}function _s(e,t,n){if(!t)return;let i,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&&(i=s.x-r.x,l=s.y-r.y),us(t,"track",{state:e.state,x:n.clientX,y:n.clientY,dx:o,dy:a,ddx:i,ddy:l,sourceEvent:n,hover:function(){return ns(n.clientX,n.clientY)}})}function ys(e,t,n){let i=Math.abs(t.clientX-e.x),r=Math.abs(t.clientY-e.y),s=is(n||t);!s||$r[s.localName]&&s.hasAttribute("disabled")||(isNaN(i)||isNaN(r)||i<=Tr&&r<=Tr||Yr(t))&&(e.prevent||us(s,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:n}))}
|
|
406
|
-
/**
|
|
407
|
-
@license
|
|
408
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
409
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
410
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
411
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
412
|
-
Code distributed by Google as part of the polymer project is also
|
|
413
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
414
|
-
*/hs({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Xr(this.info)},mousedown:function(e){if(!Kr(e))return;let t=is(e),n=this,i=function(e){Kr(e)||(ms("up",t,e),Xr(n.info))},r=function(e){Kr(e)&&ms("up",t,e),Xr(n.info)};Zr(this.info,i,r),ms("down",t,e)},touchstart:function(e){ms("down",is(e),e.changedTouches[0],e)},touchend:function(e){ms("up",is(e),e.changedTouches[0],e)}}),hs({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>Or&&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,Xr(this.info)},mousedown:function(e){if(!Kr(e))return;let t=is(e),n=this,i=function(e){let i=e.clientX,r=e.clientY;gs(n.info,i,r)&&(n.info.state=n.info.started?"mouseup"===e.type?"end":"track":"start","start"===n.info.state&&fs("tap"),n.info.addMove({x:i,y:r}),Kr(e)||(n.info.state="end",Xr(n.info)),t&&_s(n.info,t,e),n.info.started=!0)},r=function(e){n.info.started&&i(e),Xr(n.info)};Zr(this.info,i,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=is(e),n=e.changedTouches[0],i=n.clientX,r=n.clientY;gs(this.info,i,r)&&("start"===this.info.state&&fs("tap"),this.info.addMove({x:i,y:r}),_s(this.info,t,n),this.info.state="track",this.info.started=!0)},touchend:function(e){let t=is(e),n=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),_s(this.info,t,n))}}),hs({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){Kr(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){Kr(e)&&ys(this.info,e)},touchstart:function(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend:function(e){ys(this.info,e.changedTouches[0],e)}});const bs=on(e=>{class t extends e{_addEventListenerToNode(e,t,n){os(e,t,n)||super._addEventListenerToNode(e,t,n)}_removeEventListenerFromNode(e,t,n){as(e,t,n)||super._removeEventListenerFromNode(e,t,n)}}return t}),vs=/:host\(:dir\((ltr|rtl)\)\)/g,ws=':host([dir="$1"])',xs=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,ks=':host([dir="$2"]) $1',Ss=/:dir\((?:ltr|rtl)\)/,Cs=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),As=[];
|
|
415
|
-
/**
|
|
416
|
-
* @fileoverview
|
|
417
|
-
* @suppress {checkPrototypalTypes}
|
|
418
|
-
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
419
|
-
* This code may only be used under the BSD style license found at
|
|
420
|
-
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
421
|
-
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
422
|
-
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
423
|
-
* Google as part of the polymer project is also subject to an additional IP
|
|
424
|
-
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
425
|
-
*/let Ps=null,Ts="";function Es(){Ts=document.documentElement.getAttribute("dir")}function Os(e){if(!e.__autoDirOptOut){e.setAttribute("dir",Ts)}}function Ns(){Es(),Ts=document.documentElement.getAttribute("dir");for(let e=0;e<As.length;e++)Os(As[e])}function Rs(){Ps&&Ps.takeRecords().length&&Ns()}const zs=on(e=>{Cs||Ps||(Es(),Ps=new MutationObserver(Ns),Ps.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const t=oi(e);class n extends t{static _processStyleText(e,n){return e=t._processStyleText.call(this,e,n),!Cs&&Ss.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0),e}static _replaceDirInCssText(e){let t=e;return t=t.replace(vs,ws),t=t.replace(xs,ks),t}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){t.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&(Rs(),As.push(this),Os(this))}disconnectedCallback(){if(t.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir){const e=As.indexOf(this);e>-1&&As.splice(e,1)}}}return n.__activateDir=!1,n});
|
|
426
|
-
/**
|
|
427
|
-
@license
|
|
428
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
429
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
430
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
431
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
432
|
-
Code distributed by Google as part of the polymer project is also
|
|
433
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
434
|
-
*/let Is=!1,Ds=[],Ms=[];function Ls(){Is=!0,requestAnimationFrame((function(){Is=!1,Fs(Ds),setTimeout((function(){Bs(Ms)}))}))}function Fs(e){for(;e.length;)Hs(e.shift())}function Bs(e){for(let t=0,n=e.length;t<n;t++)Hs(e.shift())}function Hs(e){const t=e[0],n=e[1],i=e[2];try{n.apply(t,i)}catch(e){setTimeout(()=>{throw e})}}function $s(e,t,n){Is||Ls(),Ms.push([e,t,n])}
|
|
435
|
-
/**
|
|
436
|
-
@license
|
|
437
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
438
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
439
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
440
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
441
|
-
Code distributed by Google as part of the polymer project is also
|
|
442
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
443
|
-
*/function js(){document.body.removeAttribute("unresolved")}
|
|
444
|
-
/**
|
|
445
|
-
@license
|
|
446
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
447
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
448
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
449
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
450
|
-
Code distributed by Google as part of the polymer project is also
|
|
451
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
452
|
-
*/
|
|
453
|
-
function Us(e,t,n){return{index:e,removed:t,addedCount:n}}"interactive"===document.readyState||"complete"===document.readyState?js():window.addEventListener("DOMContentLoaded",js);const qs=0,Vs=1,Ws=2,Ks=3;function Ys(e,t,n,i,r,s){let o=s-r+1,a=n-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 n=1;n<o;n++)for(let s=1;s<a;s++)if(eo(e[t+s-1],i[r+n-1]))l[n][s]=l[n-1][s-1];else{let e=l[n-1][s]+1,t=l[n][s-1]+1;l[n][s]=e<t?e:t}return l}function Gs(e){let t=e.length-1,n=e[0].length-1,i=e[t][n],r=[];for(;t>0||n>0;){if(0==t){r.push(Ws),n--;continue}if(0==n){r.push(Ks),t--;continue}let s,o=e[t-1][n-1],a=e[t-1][n],l=e[t][n-1];s=a<l?a<o?a:o:l<o?l:o,s==o?(o==i?r.push(qs):(r.push(Vs),i=o),t--,n--):s==a?(r.push(Ks),t--,i=a):(r.push(Ws),n--,i=l)}return r.reverse(),r}function Js(e,t,n,i,r,s){let o,a=0,l=0,c=Math.min(n-t,s-r);if(0==t&&0==r&&(a=Zs(e,i,c)),n==e.length&&s==i.length&&(l=Xs(e,i,c-a)),r+=a,s-=l,(n-=l)-(t+=a)==0&&s-r==0)return[];if(t==n){for(o=Us(t,[],0);r<s;)o.removed.push(i[r++]);return[o]}if(r==s)return[Us(t,[],n-t)];let h=Gs(Ys(e,t,n,i,r,s));o=void 0;let d=[],p=t,u=r;for(let e=0;e<h.length;e++)switch(h[e]){case qs:o&&(d.push(o),o=void 0),p++,u++;break;case Vs:o||(o=Us(p,[],0)),o.addedCount++,p++,o.removed.push(i[u]),u++;break;case Ws:o||(o=Us(p,[],0)),o.addedCount++,p++;break;case Ks:o||(o=Us(p,[],0)),o.removed.push(i[u]),u++}return o&&d.push(o),d}function Zs(e,t,n){for(let i=0;i<n;i++)if(!eo(e[i],t[i]))return i;return n}function Xs(e,t,n){let i=e.length,r=t.length,s=0;for(;s<n&&eo(e[--i],t[--r]);)s++;return s}function Qs(e,t){return Js(e,0,e.length,t,0,t.length)}function eo(e,t){return e===t}
|
|
454
|
-
/**
|
|
455
|
-
@license
|
|
456
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
457
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
458
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
459
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
460
|
-
Code distributed by Google as part of the polymer project is also
|
|
461
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
462
|
-
*/function to(e){return"slot"===e.localName}let no=class{static getFlattenedNodes(e){const t=Pn(e);return to(e)?(e=e,t.assignedNodes({flatten:!0})):Array.from(t.childNodes).map(e=>to(e)?Pn(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(){to(this._target)?this._listenSlots([this._target]):Pn(this._target).children&&(this._listenSlots(Pn(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(){to(this._target)?this._unlistenSlots([this._target]):Pn(this._target).children&&(this._unlistenSlots(Pn(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,Qn.run(()=>this.flush()))}_processMutations(e){this._processSlotMutations(e),this.flush()}_processSlotMutations(e){if(e)for(let t=0;t<e.length;t++){let n=e[t];n.addedNodes&&this._listenSlots(n.addedNodes),n.removedNodes&&this._unlistenSlots(n.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),n=Qs(t,this._effectiveNodes);for(let t,i=0;i<n.length&&(t=n[i]);i++)for(let n,i=0;i<t.removed.length&&(n=t.removed[i]);i++)e.removedNodes.push(n);for(let i,r=0;r<n.length&&(i=n[r]);r++)for(let n=i.index;n<i.index+i.addedCount;n++)e.addedNodes.push(t[n]);this._effectiveNodes=t;let i=!1;return(e.addedNodes.length||e.removedNodes.length)&&(i=!0,this.callback.call(this._target,e)),i}_listenSlots(e){for(let t=0;t<e.length;t++){let n=e[t];to(n)&&n.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(e){for(let t=0;t<e.length;t++){let n=e[t];to(n)&&n.removeEventListener("slotchange",this._boundSchedule)}}};
|
|
463
|
-
/**
|
|
464
|
-
@license
|
|
465
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
466
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
467
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
468
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
469
|
-
Code distributed by Google as part of the polymer project is also
|
|
470
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
471
|
-
*/const io=function(){let e,t;do{e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=kr()}while(e||t)},ro=Element.prototype,so=ro.matches||ro.matchesSelector||ro.mozMatchesSelector||ro.msMatchesSelector||ro.oMatchesSelector||ro.webkitMatchesSelector,oo=function(e,t){return so.call(e,t)};
|
|
472
|
-
/**
|
|
473
|
-
@license
|
|
474
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
475
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
476
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
477
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
478
|
-
Code distributed by Google as part of the polymer project is also
|
|
479
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
480
|
-
*/class ao{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new no(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(Pn(this.node).contains(e))return!0;let t=e,n=e.ownerDocument;for(;t&&t!==n&&t!==this.node;)t=Pn(t).parentNode||Pn(t).host;return t===this.node}getOwnerRoot(){return Pn(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?Pn(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=Pn(this.node).assignedSlot;for(;t;)e.push(t),t=Pn(t).assignedSlot;return e}importNode(e,t){let n=this.node instanceof Document?this.node:this.node.ownerDocument;return Pn(n).importNode(e,t)}getEffectiveChildNodes(){return no.getFlattenedNodes(this.node)}queryDistributedElements(e){let t=this.getEffectiveChildNodes(),n=[];for(let i,r=0,s=t.length;r<s&&(i=t[r]);r++)i.nodeType===Node.ELEMENT_NODE&&oo(i,e)&&n.push(i);return n}get activeElement(){let e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function lo(e,t){for(let n=0;n<t.length;n++){let i=t[n];e[i]=function(){return this.node[i].apply(this.node,arguments)}}}function co(e,t){for(let n=0;n<t.length;n++){let i=t[n];Object.defineProperty(e,i,{get:function(){return this.node[i]},configurable:!0})}}function ho(e,t){for(let n=0;n<t.length;n++){let i=t[n];Object.defineProperty(e,i,{get:function(){return this.node[i]},set:function(e){this.node[i]=e},configurable:!0})}}class po{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}ao.prototype.cloneNode,ao.prototype.appendChild,ao.prototype.insertBefore,ao.prototype.removeChild,ao.prototype.replaceChild,ao.prototype.setAttribute,ao.prototype.removeAttribute,ao.prototype.querySelector,ao.prototype.querySelectorAll,ao.prototype.parentNode,ao.prototype.firstChild,ao.prototype.lastChild,ao.prototype.nextSibling,ao.prototype.previousSibling,ao.prototype.firstElementChild,ao.prototype.lastElementChild,ao.prototype.nextElementSibling,ao.prototype.previousElementSibling,ao.prototype.childNodes,ao.prototype.children,ao.prototype.classList,ao.prototype.textContent,ao.prototype.innerHTML;let uo=ao;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class e extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(ao.prototype).forEach(t=>{"activeElement"!=t&&(e.prototype[t]=ao.prototype[t])}),co(e.prototype,["classList"]),uo=e,Object.defineProperties(po.prototype,{localTarget:{get(){const e=this.event.currentTarget,t=e&&fo(e).getOwnerRoot(),n=this.path;for(let e=0;e<n.length;e++){const i=n[e];if(fo(i).getOwnerRoot()===t)return i}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else lo(ao.prototype,["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll","attachShadow"]),co(ao.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList","shadowRoot"]),ho(ao.prototype,["textContent","innerHTML","className"]);const fo=function(e){if((e=e||document)instanceof uo)return e;if(e instanceof po)return e;let t=e.__domApi;return t||(t=e instanceof Event?new po(e):new uo(e),e.__domApi=t),t},mo=window.ShadyDOM,go=window.ShadyCSS;
|
|
481
|
-
/**
|
|
482
|
-
@license
|
|
483
|
-
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
|
|
484
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
485
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
486
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
487
|
-
Code distributed by Google as part of the polymer project is also
|
|
488
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
489
|
-
*/function _o(e,t){return Pn(e).getRootNode()===t}function yo(e,t=!1){if(!mo||!go)return null;if(!mo.handlesDynamicScoping)return null;const n=go.ScopingShim;if(!n)return null;const i=n.scopeForNode(e),r=Pn(e).getRootNode(),s=e=>{if(!_o(e,r))return;const t=Array.from(mo.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(let e=0;e<t.length;e++){const s=t[e];if(!_o(s,r))continue;const o=n.currentScopeForNode(s);o!==i&&(""!==o&&n.unscopeNode(s,o),n.scopeNode(s,i))}};if(s(e),t){const t=new MutationObserver(e=>{for(let t=0;t<e.length;t++){const n=e[t];for(let e=0;e<n.addedNodes.length;e++){const t=n.addedNodes[e];t.nodeType===Node.ELEMENT_NODE&&s(t)}}});return t.observe(e,{childList:!0,subtree:!0}),t}return null}
|
|
490
|
-
/**
|
|
491
|
-
* @fileoverview
|
|
492
|
-
* @suppress {checkPrototypalTypes}
|
|
493
|
-
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
494
|
-
* This code may only be used under the BSD style license found at
|
|
495
|
-
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
496
|
-
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
497
|
-
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
498
|
-
* Google as part of the polymer project is also subject to an additional IP
|
|
499
|
-
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
500
|
-
*/const bo="disable-upgrade",vo=e=>{for(;e;){const t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]};on(e=>{const t=br(e);let n=vo(t);class i extends t{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return n.call(this).concat(bo)}_initializeProperties(){this.hasAttribute(bo)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}attributeChangedCallback(e,t,n,i){e==bo?this.__isUpgradeDisabled&&null==n&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,Pn(this).isConnected&&super.connectedCallback()):super.attributeChangedCallback(e,t,n,i)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}return i});
|
|
501
|
-
/**
|
|
502
|
-
@license
|
|
503
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
504
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
505
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
506
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
507
|
-
Code distributed by Google as part of the polymer project is also
|
|
508
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
509
|
-
*/
|
|
510
|
-
const wo="disable-upgrade";let xo=window.ShadyCSS;const ko=on(e=>{const t=bs(br(e)),n=yr?t:zs(t),i=vo(n),r={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class s extends n{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,n){(this.__dataAttributes&&this.__dataAttributes[e]||e===wo)&&this.attributeChangedCallback(e,t,n,null)}setAttribute(e,t){if(nn&&!this._legacyForceObservedAttributes){const n=this.getAttribute(e);super.setAttribute(e,t),this.__attributeReaction(e,n,String(t))}else super.setAttribute(e,t)}removeAttribute(e){if(nn&&!this._legacyForceObservedAttributes){const t=this.getAttribute(e);super.removeAttribute(e),this.__attributeReaction(e,t,null)}else super.removeAttribute(e)}static get observedAttributes(){return nn&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],fr(this.prototype)),this.__observedAttributes):i.call(this).concat(wo)}_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,n,i){t!==n&&(e==wo?this.__isUpgradeDisabled&&null==n&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,Pn(this).isConnected&&this.connectedCallback()):(super.attributeChangedCallback(e,t,n,i),this.attributeChanged(e,t,n)))}attributeChanged(e,t,n){}_initializeProperties(){if(Yt&&this.hasAttribute(wo))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(),nn&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners()}}_takeAttributes(){const e=this.attributes;for(let t=0,n=e.length;t<n;t++){const n=e[t];this.__attributeReaction(n.name,null,n.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,n){this._propertyToAttribute(e,t,n)}serializeValueToAttribute(e,t,n){this._valueToNodeAttribute(n||this,e,t)}extend(e,t){if(!e||!t)return e||t;let n=Object.getOwnPropertyNames(t);for(let i,r=0;r<n.length&&(i=n[r]);r++){let n=Object.getOwnPropertyDescriptor(t,i);n&&Object.defineProperty(e,i,n)}return e}mixin(e,t){for(let n in t)e[n]=t[n];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,n){n=n||{},t=null==t?{}:t;let i=new Event(e,{bubbles:void 0===n.bubbles||n.bubbles,cancelable:Boolean(n.cancelable),composed:void 0===n.composed||n.composed});i.detail=t;let r=n.node||this;return Pn(r).dispatchEvent(i),i}listen(e,t,n){e=e||this;let i=this.__boundListeners||(this.__boundListeners=new WeakMap),r=i.get(e);r||(r={},i.set(e,r));let s=t+n;r[s]||(r[s]=this._addMethodEventListenerToNode(e,t,n,this))}unlisten(e,t,n){e=e||this;let i=this.__boundListeners&&this.__boundListeners.get(e),r=t+n,s=i&&i[r];s&&(this._removeEventListenerFromNode(e,t,s),i[r]=null)}setScrollDirection(e,t){ps(t||this,r[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){let e=Pn(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){const e=fo(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return fo(this).getEffectiveChildNodes()}queryDistributedElements(e){return fo(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))}getEffectiveTextContent(){let e=this.getEffectiveChildNodes(),t=[];for(let n,i=0;n=e[i];i++)n.nodeType!==Node.COMMENT_NODE&&t.push(n.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?fo(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&&Pn(t).contains(e)&&Pn(t).getRootNode()===Pn(e).getRootNode()}isLocalDescendant(e){return this.root===Pn(e).getRootNode()}scopeSubtree(e,t=!1){return yo(e,t)}getComputedStyleValue(e){return xo.getComputedStyleValue(this,e)}debounce(e,t,n){return this._debouncers=this._debouncers||{},this._debouncers[e]=vr.debounce(this._debouncers[e],n>0?Jn.after(n):Qn,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?Jn.run(e.bind(this),t):~Qn.run(e.bind(this))}cancelAsync(e){e<0?Qn.cancel(~e):Jn.cancel(e)}create(e,t){let n=document.createElement(e);if(t)if(n.setProperties)n.setProperties(t);else for(let e in t)n[e]=t[e];return n}elementMatches(e,t){return oo(t||this,e)}toggleAttribute(e,t){let n=this;return 3===arguments.length&&(n=arguments[2]),1==arguments.length&&(t=!n.hasAttribute(e)),t?(Pn(n).setAttribute(e,""),!0):(Pn(n).removeAttribute(e),!1)}toggleClass(e,t,n){n=n||this,1==arguments.length&&(t=!n.classList.contains(e)),t?n.classList.add(e):n.classList.remove(e)}transform(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}translate3d(e,t,n,i){i=i||this,this.transform("translate3d("+e+","+t+","+n+")",i)}arrayDelete(e,t){let n;if(Array.isArray(e)){if(n=e.indexOf(t),n>=0)return e.splice(n,1)}else{if(n=Mn(this,e).indexOf(t),n>=0)return this.splice(e,n,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}),So={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Co={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Ao=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Co);
|
|
511
|
-
/**
|
|
512
|
-
@license
|
|
513
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
514
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
515
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
516
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
517
|
-
Code distributed by Google as part of the polymer project is also
|
|
518
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
519
|
-
*/function Po(e,t,n){const i=e._noAccessors,r=Object.getOwnPropertyNames(e);for(let s=0;s<r.length;s++){let o=r[s];if(!(o in n))if(i)t[o]=e[o];else{let n=Object.getOwnPropertyDescriptor(e,o);n&&(n.configurable=!0,Object.defineProperty(t,o,n))}}}function To(e,t){return Io({},ko(t),e)}function Eo(e,t,n){for(let i=0;i<t.length;i++)Oo(e,t[i],n,Ao)}function Oo(e,t,n,i){Po(t,e,i);for(let e in So)t[e]&&(n[e]=n[e]||[],n[e].push(t[e]))}function No(e,t,n){t=t||[];for(let i=e.length-1;i>=0;i--){let r=e[i];r?Array.isArray(r)?No(r,t):t.indexOf(r)<0&&(!n||n.indexOf(r)<0)&&t.unshift(r):console.warn("behavior is null, check for missing or 404 import")}return t}function Ro(e,t){for(const n in t){const i=e[n],r=t[n];e[n]=!("value"in r)&&i&&"value"in i?Object.assign({value:i.value},r):r}}const zo=ko(HTMLElement);function Io(e,t,n){let i;const r={};class s extends t{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(i)for(let e,t=0;t<i.length;t++)e=i[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(i)for(let e=0;e<i.length;e++)Ro(t,i[e].properties);return Ro(t,e.properties),t}static get observers(){let t=[];if(i)for(let e,n=0;n<i.length;n++)e=i[n],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(),Yt&&o(e);const t=Object.getPrototypeOf(this);let n=r.beforeRegister;if(n)for(let e=0;e<n.length;e++)n[e].call(t);if(n=r.registered,n)for(let e=0;e<n.length;e++)n[e].call(t)}}_applyListeners(){super._applyListeners();const e=r.listeners;if(e)for(let t=0;t<e.length;t++){const n=e[t];if(n)for(let e in n)this._addMethodEventListenerToNode(this,e,n[e])}}_ensureAttributes(){const e=r.hostAttributes;if(e)for(let t=e.length-1;t>=0;t--){const n=e[t];for(let e in n)this._ensureAttribute(e,n[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,n){super.attributeChanged();let i=r.attributeChanged;if(i)for(let r=0;r<i.length;r++)i[r].call(this,e,t,n)}}if(n){Array.isArray(n)||(n=[n]);let e=t.prototype.behaviors;i=No(n,null,e),s.prototype.behaviors=e?e.concat(n):i}const o=t=>{i&&Eo(t,i,r),Oo(t,e,r,Co)};return Yt||o(s.prototype),s.generatedFrom=e,s}const Do=function(e,t){e||console.warn("Polymer.Class requires `info` argument");let n=t?t(zo):zo;return n=Io(e,n,e.behaviors),n.is=n.prototype.is=e.is,n},Mo=function(e){let t;return t="function"==typeof e?e:Mo.Class(e),e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t};
|
|
520
|
-
/**
|
|
521
|
-
@license
|
|
522
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
523
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
524
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
525
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
526
|
-
Code distributed by Google as part of the polymer project is also
|
|
527
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
528
|
-
*/
|
|
529
|
-
/**
|
|
530
|
-
@license
|
|
531
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
532
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
533
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
534
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
535
|
-
Code distributed by Google as part of the polymer project is also
|
|
536
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
537
|
-
*/
|
|
538
|
-
function Lo(e,t,n,i,r){let s;r&&(s="object"==typeof n&&null!==n,s&&(i=e.__dataTemp[t]));let o=i!==n&&(i==i||n==n);return s&&o&&(e.__dataTemp[t]=n),o}Mo.Class=Do;const Fo=on(e=>{class t extends e{_shouldPropertyChange(e,t,n){return Lo(this,e,t,n,!0)}}return t}),Bo=on(e=>{class t extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,n){return Lo(this,e,t,n,this.mutableData)}}return t});Fo._mutablePropertyChange=Lo;
|
|
539
|
-
/**
|
|
540
|
-
@license
|
|
541
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
542
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
543
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
544
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
545
|
-
Code distributed by Google as part of the polymer project is also
|
|
546
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
547
|
-
*/
|
|
548
|
-
let Ho=null;function $o(){return Ho}$o.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:$o,writable:!0}});const jo=pr($o),Uo=Fo(jo);function qo(e,t){Ho=e,Object.setPrototypeOf(e,t.prototype),new t,Ho=null}const Vo=pr(class{});function Wo(e,t){for(let n=0;n<t.length;n++){let i=t[n];if(Boolean(e)!=Boolean(i.__hideTemplateChildren__))if(i.nodeType===Node.TEXT_NODE)e?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if("slot"===i.localName)if(e)i.__polymerReplaced__=document.createComment("hidden-slot"),Pn(Pn(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const e=i.__polymerReplaced__;e&&Pn(Pn(e).parentNode).replaceChild(i,e)}else i.style&&(e?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=e,i._showHideChildren&&i._showHideChildren(e)}}class Ko extends Vo{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 n=this.__templatizeOptions;(e&&n.instanceProps||!n.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,n){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,n(e)});else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(e,t,n)}}_showHideChildren(e){Wo(e,this.children)}_setUnmanagedPropertyToNode(e,t,n){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=n:super._setUnmanagedPropertyToNode(e,t,n)}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}}Ko.prototype.__dataHost,Ko.prototype.__templatizeOptions,Ko.prototype._methodHost,Ko.prototype.__templatizeOwner,Ko.prototype.__hostProps;const Yo=Fo(Ko);function Go(e){let t=e.__dataHost;return t&&t._methodHost||t}function Jo(e,t,n){let i=n.mutableData?Yo:Ko;na.mixin&&(i=na.mixin(i));let r=class extends i{};return r.prototype.__templatizeOptions=n,r.prototype._bindTemplate(e),Qo(r,e,t,n),r}function Zo(e,t,n,i){let r=n.forwardHostProp;if(r&&t.hasHostProps){const s="template"==e.localName;let o=t.templatizeTemplateClass;if(!o){if(s){let e=n.mutableData?Uo:jo;class i extends e{}o=t.templatizeTemplateClass=i}else{const n=e.constructor;class i extends n{}o=t.templatizeTemplateClass=i}let a=t.hostProps;for(let e in a)o.prototype._addPropertyEffect("_host_"+e,o.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Xo(e,r)}),o.prototype._createNotifyingProperty("_host_"+e);Gt&&i&&ia(t,n,i)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),s)qo(e,o),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,o.prototype);const n=t.hostProps;for(let t in n)if(t="_host_"+t,t in e){const n=e[t];delete e[t],e.__data[t]=n}}}}function Xo(e,t){return function(e,n,i){t.call(e.__templatizeOwner,n.substring("_host_".length),i[n])}}function Qo(e,t,n,i){let r=n.hostProps||{};for(let t in i.instanceProps){delete r[t];let n=i.notifyInstanceProp;n&&e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ea(t,n)})}if(i.forwardHostProp&&t.__dataHost)for(let t in r)n.hasHostProps||(n.hasHostProps=!0),e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ta()})}function ea(e,t){return function(e,n,i){t.call(e.__templatizeOwner,e,n,i[n])}}function ta(){return function(e,t,n){e.__dataHost._setPendingPropertyOrPath("_host_"+t,n[t],!0,!0)}}function na(e,t,n){if(Wt&&!Go(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(n=n||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=t;let i=(t?t.constructor:Ko)._parseTemplate(e),r=i.templatizeInstanceClass;r||(r=Jo(e,i,n),i.templatizeInstanceClass=r);const s=Go(e);Zo(e,i,n,s);let o=class extends r{};return o.prototype._methodHost=s,o.prototype.__dataHost=e,o.prototype.__templatizeOwner=t,o.prototype.__hostProps=i.hostProps,o=o,o}function ia(e,t,n){const i=n.constructor._properties,{propertyEffects:r}=e,{instanceProps:s}=t;for(let e in r)if(!(i[e]||s&&s[e])){const t=r[e];for(let n=0;n<t.length;n++){const{part:i}=t[n].info;if(!i.signature||!i.signature.static){console.warn(`Property '${e}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function ra(e,t){let n;for(;t;)if(n=t.__dataHost?t:t.__templatizeInstance){if(n.__dataHost==e)return n;t=n.__dataHost}else t=Pn(t).parentNode;return null}
|
|
549
|
-
/**
|
|
550
|
-
@license
|
|
551
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
552
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
553
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
554
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
555
|
-
Code distributed by Google as part of the polymer project is also
|
|
556
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
557
|
-
*/let sa=!1;function oa(){if(Yt&&!$t){if(!sa){sa=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}
|
|
558
|
-
/**
|
|
559
|
-
@license
|
|
560
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
561
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
562
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
563
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
564
|
-
Code distributed by Google as part of the polymer project is also
|
|
565
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
566
|
-
*/const aa=bs(Bo(pr(HTMLElement)));class la extends aa{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),Wt)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,n,i){this.mutableData=!0}connectedCallback(){oa()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){Pn(Pn(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",la);
|
|
567
|
-
/**
|
|
568
|
-
@license
|
|
569
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
570
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
571
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
572
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
573
|
-
Code distributed by Google as part of the polymer project is also
|
|
574
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
575
|
-
*/
|
|
576
|
-
const ca=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});class ha{constructor(e,t){fa(e,t);const n=t.reduce((t,n,i)=>t+da(n)+e[i+1],e[0]);this.value=n.toString()}toString(){return this.value}}function da(e){if(e instanceof ha)return e.value;throw new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function pa(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof ha)return da(e);throw new Error("non-template value passed to Polymer's html function: "+e)}const ua=function(e,...t){fa(e,t);const n=document.createElement("template");let i=t.reduce((t,n,i)=>t+pa(n)+e[i+1],e[0]);return ca&&(i=ca.createHTML(i)),n.innerHTML=i,n},fa=(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")},ma=br(HTMLElement),ga=Bo(ma);class _a extends ga{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:!tn,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(),oa()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=Pn(Pn(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 n={};n[this.as]=!0,n[this.indexAs]=!0,n[this.itemsIndexAs]=!0,this.__ctor=na(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:n,forwardHostProp:function(e,t){let n=this.__instances;for(let i,r=0;r<n.length&&(i=n[r]);r++)i.forwardHostProp(e,t)},notifyInstanceProp:function(e,t,n){if(zn(this.as,t)){let i=e[this.itemsIndexAs];t==this.as&&(this.items[i]=n);let r=Rn(this.as,`${JSCompiler_renameProperty("items",this)}.${i}`,t);this.notifyPath(r,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if("string"==typeof e){let t=e,n=this.__getMethodHost();return function(){return n[t].apply(n,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 n=0;n<t.length;n++)0===e.indexOf(t[n])&&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=vr.debounce(this.__renderDebouncer,t>0?Jn.after(t):Qn,e.bind(this)),xr(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),io()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),n=this.__calculateLimit(t.length);this.__updateInstances(e,n,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),tn&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=n;return this.__filterFn&&(t=t.filter((t,n,i)=>this.__filterFn(e[t],n,i))),this.__sortFn&&t.sort((t,n)=>this.__sortFn(e[t],e[n])),t}__calculateLimit(e){let t=e;const n=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),i=Math.max(t-n,0),this.__chunkCount=i||1):(i=Math.min(Math.max(e-n,0),this.__chunkCount),t=Math.min(n+i,e)),this.__shouldMeasureChunk=i===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,n){const i=this.__itemsIdxToInstIdx={};let r;for(r=0;r<t;r++){let t=this.__instances[r],s=n[r],o=e[s];i[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 n=Pn(t.root);for(let e=0;e<t.children.length;e++){let i=t.children[e];n.appendChild(i)}return t}__attachInstance(e,t){let n=this.__instances[e];t.insertBefore(n.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,n){let i={};return i[this.as]=e,i[this.indexAs]=t,i[this.itemsIndexAs]=n,new this.__ctor(i)}__insertInstance(e,t,n){const i=this.__stampInstance(e,t,n);let r=this.__instances[t+1],s=r?r.children[0]:this;return Pn(Pn(this).parentNode).insertBefore(i.root,s),this.__instances[t]=i,i}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let n=e.slice(6),i=n.indexOf("."),r=i<0?n:n.substring(0,i);if(r==parseInt(r,10)){let e=i<0?"":n.substring(i+1);this.__handleObservedPaths(e);let s=this.__itemsIdxToInstIdx[r],o=this.__instances[s];if(o){let n=this.as+(e?"."+e:"");o._setPendingPropertyOrPath(n,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 ra(this.template,e)}}customElements.define(_a.is,_a);
|
|
577
|
-
/**
|
|
578
|
-
@license
|
|
579
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
580
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
581
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
582
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
583
|
-
Code distributed by Google as part of the polymer project is also
|
|
584
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
585
|
-
*/
|
|
586
|
-
class ya extends ma{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=vr.debounce(this.__renderDebouncer,Qn,()=>this.__render()),xr(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();const e=Pn(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||Pn(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),oa()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){const e=this;let t=e._templateInfo?e:Pn(e).querySelector("template");if(!t){let e=new MutationObserver(()=>{if(!Pn(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=Pn(this).parentNode;if(this.__hasInstance()){let t=this.__getInstanceNodes();if(t&&t.length){if(Pn(this).previousSibling!==t[t.length-1])for(let n,i=0;i<t.length&&(n=t[i]);i++)Pn(e).insertBefore(n,this)}}else{if(!e)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(e)}return!0}render(){io()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),tn&&!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 ba extends ya{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(Wt&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");const n=t._bindTemplate(this.__template,!0);n.runEffects=(e,t,n)=>{let i=this.__syncInfo;if(this.if)i&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(i.changedProps,t)),e(t,n);else if(this.__instance)if(i||(i=this.__syncInfo={runEffects:e,changedProps:{}}),n)for(const e in t){const t=En(e);i.changedProps[t]=this.__dataHost[t]}else Object.assign(i.changedProps,t)},this.__instance=t._stampTemplate(this.__template,n),Pn(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,Wo(e,this.__instance.templateInfo.childNodes)),e||this.__syncHostProperties()}}class va extends ya{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=na(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[En(e)]=!0))}})),this.__instance=new this.__ctor,Pn(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){let e=this.__instance.children;if(e&&e.length){let t=Pn(e[0]).parentNode;if(t){t=Pn(t);for(let n,i=0;i<e.length&&(n=e[i]);i++)t.removeChild(n)}}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 wa=en?ba:va;customElements.define(wa.is,wa);
|
|
587
|
-
/**
|
|
588
|
-
@license
|
|
589
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
590
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
591
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
592
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
593
|
-
Code distributed by Google as part of the polymer project is also
|
|
594
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
595
|
-
*/
|
|
596
|
-
let xa=on(e=>{let t=br(e);class n 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 n=t.path;if(n==JSCompiler_renameProperty("items",this)){let n=t.base||[],i=this.__lastItems;if(e!==this.__lastMulti&&this.clearSelection(),i){let e=Qs(n,i);this.__applySplices(e)}this.__lastItems=n,this.__lastMulti=e}else if(t.path==JSCompiler_renameProperty("items",this)+".splices")this.__applySplices(t.value.indexSplices);else{let e=n.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 n=0;n<e.length;n++){let i=e[n];t.forEach((e,n)=>{e<i.index||(e>=i.index+i.removed.length?t.set(n,e+i.addedCount-i.removed.length):t.set(n,-1))});for(let e=0;e<i.addedCount;e++){let n=i.index+e;t.has(this.items[n])&&t.set(this.items[n],n)}}this.__updateLinks();let n=0;t.forEach((e,i)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),n,1):this.selected=this.selectedItem=null,t.delete(i)):n++})}__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((n,i)=>{t==e++&&this.deselect(i)})}}__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 n;this.__selectedMap.delete(e),this.multi&&(n=this.__selectedIndexForItemIndex(t)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),n,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 n})(ma);class ka extends xa{static get is(){return"array-selector"}static get template(){return null}}customElements.define(ka.is,ka);
|
|
597
|
-
/**
|
|
598
|
-
@license
|
|
599
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
600
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
601
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
602
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
603
|
-
Code distributed by Google as part of the polymer project is also
|
|
604
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
605
|
-
*/
|
|
606
|
-
const Sa=new Nt;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,n){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,n){},styleSubtree(e,t){Sa.processStyles(),it(e,t)},styleElement(e){Sa.processStyles()},styleDocument(e){Sa.processStyles(),it(document.body,e)},getComputedStyleValue:(e,t)=>rt(e,t),flushCustomStyles(){},nativeCss:be,nativeShadow:fe,cssBuild:ge,disableRuntime:ye}),window.ShadyCSS.CustomStyleInterface=Sa;
|
|
607
|
-
/**
|
|
608
|
-
@license
|
|
609
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
610
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
611
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
612
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
613
|
-
Code distributed by Google as part of the polymer project is also
|
|
614
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
615
|
-
*/
|
|
616
|
-
const Ca="include",Aa=window.ShadyCSS.CustomStyleInterface;class Pa extends HTMLElement{constructor(){super(),this._style=null,Aa.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(Ca);return t&&(e.removeAttribute(Ca),e.textContent=kn(t)+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this),this._style}}window.customElements.define("custom-style",Pa),
|
|
617
|
-
/**
|
|
618
|
-
@license
|
|
619
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
620
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
621
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
622
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
623
|
-
Code distributed by Google as part of the polymer project is also
|
|
624
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
625
|
-
*/
|
|
626
|
-
ko(HTMLElement).prototype,
|
|
627
|
-
/**
|
|
628
|
-
@license
|
|
629
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
630
|
-
This code may only be used under the BSD style license found at
|
|
631
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
632
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
633
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
634
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
635
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
636
|
-
*/
|
|
637
|
-
Mo({is:"iron-media-query",properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},_mq:{value:null}},attached:function(){this.style.display="none",this.queryChanged()},detached:function(){this._remove()},_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler),this._mq=null},queryChanged:function(){this._remove();var e=this.query;e&&(this.full||"("===e[0]||(e="("+e+")"),this._mq=window.matchMedia(e),this._add(),this.queryHandler(this._mq))},queryHandler:function(e){this._setQueryMatches(e.matches)}});
|
|
638
|
-
/**
|
|
639
|
-
@license
|
|
640
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
641
|
-
This code may only be used under the BSD style license found at
|
|
642
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
643
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
644
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
645
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
646
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
647
|
-
*/
|
|
648
|
-
var Ta=new Set;const Ea={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[],this._boundNotifyResize=this.notifyResize.bind(this),this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},attached:function(){this._requestResizeNotifications()},detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(Ta.delete(this),window.removeEventListener("resize",this._boundNotifyResize)),this._parentResizable=null},notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach((function(e){this.resizerShouldNotify(e)&&this._notifyDescendant(e)}),this),this._fireResize())},assignParentResizable:function(e){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this),this._parentResizable=e,e&&-1===e._interestedResizables.indexOf(this)&&(e._interestedResizables.push(this),e._subscribeIronResize(this))},stopResizeNotificationsFor:function(e){var t=this._interestedResizables.indexOf(e);t>-1&&(this._interestedResizables.splice(t,1),this._unsubscribeIronResize(e))},_subscribeIronResize:function(e){e.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(e){e.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(e){this._notifyingDescendant?e.stopPropagation():$t||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var t=fo(e).rootTarget;t!==this&&(t.assignParentResizable(this),this._notifyDescendant(t),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){if(this.isAttached)if("loading"===document.readyState){var e=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",(function t(){document.removeEventListener("readystatechange",t),e()}))}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach((function(e){e!==this&&e._findParent()}),this):(Ta.forEach((function(e){e!==this&&e._findParent()}),this),window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())},_findParent:function(){this.assignParentResizable(null),this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable?Ta.delete(this):Ta.add(this)}},Oa=[Ea,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},_appResetLayoutHandler:function(e){fo(e).path[0]!==this&&(this.resetLayout(),e.stopPropagation())},_updateLayoutStates:function(){console.error("unimplemented")},resetLayout:function(){var e=this._updateLayoutStates.bind(this);this._layoutDebouncer=vr.debounce(this._layoutDebouncer,Zn,e),xr(this._layoutDebouncer),this._notifyDescendantResize()},_notifyLayoutChanged:function(){var e=this;requestAnimationFrame((function(){e.fire("app-reset-layout")}))},_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach((function(e){this.resizerShouldNotify(e)&&this._notifyDescendant(e)}),this)}}];
|
|
649
|
-
/**
|
|
650
|
-
@license
|
|
651
|
-
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
|
652
|
-
This code may only be used under the BSD style license found at
|
|
653
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
654
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
655
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
656
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
657
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
658
|
-
*/
|
|
659
|
-
/**
|
|
660
|
-
@license
|
|
661
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
662
|
-
This code may only be used under the BSD style license found at
|
|
663
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
664
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
665
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
666
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
667
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
668
|
-
*/
|
|
669
|
-
Mo({_template:ua`
|
|
670
|
-
<style>
|
|
1
|
+
const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),r=new WeakMap;let s=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const n=this.t;if(t&&void 0===e){const t=void 0!==n&&1===n.length;t&&(e=r.get(n)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t&&r.set(n,e))}return e}toString(){return this.cssText}};const i=e=>new s("string"==typeof e?e:e+"",void 0,n),a=(e,...t)=>{const r=1===e.length?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[r+1],e[0]);return new s(r,e,n)},o=(n,r)=>{if(t)n.adoptedStyleSheets=r.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const t of r){const r=document.createElement("style"),s=e.litNonce;void 0!==s&&r.setAttribute("nonce",s),r.textContent=t.cssText,n.appendChild(r)}},l=t?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return i(t)})(e):e,{is:c,defineProperty:h,getOwnPropertyDescriptor:u,getOwnPropertyNames:p,getOwnPropertySymbols:d,getPrototypeOf:g}=Object,f=globalThis,m=f.trustedTypes,b=m?m.emptyScript:"",k=f.reactiveElementPolyfillSupport,y=(e,t)=>e,w={toAttribute(e,t){switch(t){case Boolean:e=e?b:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},x=(e,t)=>!c(e,t),$={attribute:!0,type:String,converter:w,reflect:!1,useDefault:!1,hasChanged:x};Symbol.metadata??=Symbol("metadata"),f.litPropertyMetadata??=new WeakMap;let v=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=$){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const n=Symbol(),r=this.getPropertyDescriptor(e,n,t);void 0!==r&&h(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){const{get:r,set:s}=u(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){const i=r?.call(this);s?.call(this,t),this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??$}static _$Ei(){if(this.hasOwnProperty(y("elementProperties")))return;const e=g(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const e=this.properties,t=[...p(e),...d(e)];for(const n of t)this.createProperty(n,e[n])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const n=this._$Eu(e,t);void 0!==n&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(l(e))}else void 0!==e&&t.push(l(e));return t}static _$Eu(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return o(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){const n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(void 0!==r&&!0===n.reflect){const s=(void 0!==n.converter?.toAttribute?n.converter:w).toAttribute(t,n.type);this._$Em=e,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(e,t){const n=this.constructor,r=n._$Eh.get(e);if(void 0!==r&&this._$Em!==r){const e=n.getPropertyOptions(r),s="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:w;this._$Em=r;const i=s.fromAttribute(t,e.type);this[r]=i??this._$Ej?.get(r)??i,this._$Em=null}}requestUpdate(e,t,n){if(void 0!==e){const r=this.constructor,s=this[e];if(n??=r.getPropertyOptions(e),!((n.hasChanged??x)(s,t)||n.useDefault&&n.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(r._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:s},i){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),!0!==s||void 0!==i)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,n]of e){const{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||void 0===r||this.C(t,void 0,n,r)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[y("elementProperties")]=new Map,v[y("finalized")]=new Map,k?.({ReactiveElement:v}),(f.reactiveElementVersions??=[]).push("2.1.1");const _=globalThis,S=_.trustedTypes,A=S?S.createPolicy("lit-html",{createHTML:e=>e}):void 0,E="$lit$",T=`lit$${Math.random().toFixed(9).slice(2)}$`,C="?"+T,R=`<${C}>`,P=document,z=()=>P.createComment(""),F=e=>null===e||"object"!=typeof e&&"function"!=typeof e,L=Array.isArray,O=e=>L(e)||"function"==typeof e?.[Symbol.iterator],N="[ \t\n\f\r]",I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,M=/-->/g,j=/>/g,D=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),H=/'/g,B=/"/g,q=/^(?:script|style|textarea|title)$/i,U=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),W=U(1),Z=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),V=new WeakMap,G=P.createTreeWalker(P,129);function X(e,t){if(!L(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(t):t}const J=(e,t)=>{const n=e.length-1,r=[];let s,i=2===t?"<svg>":3===t?"<math>":"",a=I;for(let t=0;t<n;t++){const n=e[t];let o,l,c=-1,h=0;for(;h<n.length&&(a.lastIndex=h,l=a.exec(n),null!==l);)h=a.lastIndex,a===I?"!--"===l[1]?a=M:void 0!==l[1]?a=j:void 0!==l[2]?(q.test(l[2])&&(s=RegExp("</"+l[2],"g")),a=D):void 0!==l[3]&&(a=D):a===D?">"===l[0]?(a=s??I,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,o=l[1],a=void 0===l[3]?D:'"'===l[3]?B:H):a===B||a===H?a=D:a===M||a===j?a=I:(a=D,s=void 0);const u=a===D&&e[t+1].startsWith("/>")?" ":"";i+=a===I?n+R:c>=0?(r.push(o),n.slice(0,c)+E+n.slice(c)+T+u):n+T+(-2===c?t:u)}return[X(e,i+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),r]};let Y=class e{constructor({strings:t,_$litType$:n},r){let s;this.parts=[];let i=0,a=0;const o=t.length-1,l=this.parts,[c,h]=J(t,n);if(this.el=e.createElement(c,r),G.currentNode=this.el.content,2===n||3===n){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(s=G.nextNode())&&l.length<o;){if(1===s.nodeType){if(s.hasAttributes())for(const e of s.getAttributeNames())if(e.endsWith(E)){const t=h[a++],n=s.getAttribute(e).split(T),r=/([.?@])?(.*)/.exec(t);l.push({type:1,index:i,name:r[2],strings:n,ctor:"."===r[1]?re:"?"===r[1]?se:"@"===r[1]?ie:ne}),s.removeAttribute(e)}else e.startsWith(T)&&(l.push({type:6,index:i}),s.removeAttribute(e));if(q.test(s.tagName)){const e=s.textContent.split(T),t=e.length-1;if(t>0){s.textContent=S?S.emptyScript:"";for(let n=0;n<t;n++)s.append(e[n],z()),G.nextNode(),l.push({type:2,index:++i});s.append(e[t],z())}}}else if(8===s.nodeType)if(s.data===C)l.push({type:2,index:i});else{let e=-1;for(;-1!==(e=s.data.indexOf(T,e+1));)l.push({type:7,index:i}),e+=T.length-1}i++}}static createElement(e,t){const n=P.createElement("template");return n.innerHTML=e,n}};function K(e,t,n=e,r){if(t===Z)return t;let s=void 0!==r?n._$Co?.[r]:n._$Cl;const i=F(t)?void 0:t._$litDirective$;return s?.constructor!==i&&(s?._$AO?.(!1),void 0===i?s=void 0:(s=new i(e),s._$AT(e,n,r)),void 0!==r?(n._$Co??=[])[r]=s:n._$Cl=s),void 0!==s&&(t=K(e,s._$AS(e,t.values),s,r)),t}let ee=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??P).importNode(t,!0);G.currentNode=r;let s=G.nextNode(),i=0,a=0,o=n[0];for(;void 0!==o;){if(i===o.index){let t;2===o.type?t=new te(s,s.nextSibling,this,e):1===o.type?t=new o.ctor(s,o.name,o.strings,this,e):6===o.type&&(t=new ae(s,this,e)),this._$AV.push(t),o=n[++a]}i!==o?.index&&(s=G.nextNode(),i++)}return G.currentNode=P,r}p(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}};class te{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=K(this,e,t),F(e)?e===Q||null==e||""===e?(this._$AH!==Q&&this._$AR(),this._$AH=Q):e!==this._$AH&&e!==Z&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):O(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Q&&F(this._$AH)?this._$AA.nextSibling.data=e:this.T(P.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,r="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=Y.createElement(X(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{const e=new ee(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=V.get(e.strings);return void 0===t&&V.set(e.strings,t=new Y(e)),t}k(e){L(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const s of e)r===t.length?t.push(n=new te(this.O(z()),this.O(z()),this,this.options)):n=t[r],n._$AI(s),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}let ne=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,s){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=s,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Q}_$AI(e,t=this,n,r){const s=this.strings;let i=!1;if(void 0===s)e=K(this,e,t,0),i=!F(e)||e!==this._$AH&&e!==Z,i&&(this._$AH=e);else{const r=e;let a,o;for(e=s[0],a=0;a<s.length-1;a++)o=K(this,r[n+a],t,a),o===Z&&(o=this._$AH[a]),i||=!F(o)||o!==this._$AH[a],o===Q?e=Q:e!==Q&&(e+=(o??"")+s[a+1]),this._$AH[a]=o}i&&!r&&this.j(e)}j(e){e===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}};class re extends ne{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Q?void 0:e}}let se=class extends ne{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Q)}},ie=class extends ne{constructor(e,t,n,r,s){super(e,t,n,r,s),this.type=5}_$AI(e,t=this){if((e=K(this,e,t,0)??Q)===Z)return;const n=this._$AH,r=e===Q&&n!==Q||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==Q&&(n===Q||r);r&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ae=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){K(this,e)}};const oe=_.litHtmlPolyfillSupport;oe?.(Y,te),(_.litHtmlVersions??=[]).push("3.3.1");const le=(e,t,n)=>{const r=n?.renderBefore??t;let s=r._$litPart$;if(void 0===s){const e=n?.renderBefore??null;r._$litPart$=s=new te(t.insertBefore(z(),e),e,void 0,n??{})}return s._$AI(e),s},ce=globalThis;let he=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=le(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Z}};he._$litElement$=!0,he.finalized=!0,ce.litElementHydrateSupport?.({LitElement:he});const ue=ce.litElementPolyfillSupport;ue?.({LitElement:he}),(ce.litElementVersions??=[]).push("4.2.1");const pe={ATTRIBUTE:1,CHILD:2},de=e=>(...t)=>({_$litDirective$:e,values:t});class ge{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const fe=de(class extends ge{constructor(e){if(super(e),e.type!==pe.ATTRIBUTE||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(void 0===this.st){this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e)));for(const e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}const n=e.element.classList;for(const e of this.st)e in t||(n.remove(e),this.st.delete(e));for(const e in t){const r=!!t[e];r===this.st.has(e)||this.nt?.has(e)||(r?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return Z}});class me extends he{static get properties(){return{json:{type:Object},withDemo:{type:Boolean,attribute:"with-demo"},_demos:{type:Object}}}constructor(){super(),this.json=null,this.withDemo=!1}connectedCallback(){super.connectedCallback()}render(){if(this.json){const{tags:e}=this.json;e.sort((e,t)=>e.name.localeCompare(t.name));let t=e;return this.withDemo&&(t=e.filter(e=>e.demo)),W`
|
|
2
|
+
<ul class="component-list">
|
|
3
|
+
${t.map(e=>W` <li>
|
|
4
|
+
<button
|
|
5
|
+
type="button"
|
|
6
|
+
class="component-item"
|
|
7
|
+
@click="${()=>me._viewComponent(e)}"
|
|
8
|
+
>
|
|
9
|
+
<span class="component-name">${e.name}</span>
|
|
10
|
+
${e.demo?W`<span class="badge">demo</span>`:Q}
|
|
11
|
+
</button>
|
|
12
|
+
</li>`)}
|
|
13
|
+
</ul>
|
|
14
|
+
`}return W`<div>Loading ...</div>`}static get styles(){return a`
|
|
671
15
|
:host {
|
|
672
16
|
display: block;
|
|
673
|
-
/**
|
|
674
|
-
* Force app-drawer-layout to have its own stacking context so that its parent can
|
|
675
|
-
* control the stacking of it relative to other elements.
|
|
676
|
-
*/
|
|
677
|
-
position: relative;
|
|
678
|
-
z-index: 0;
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
:host ::slotted([slot=drawer]) {
|
|
682
|
-
z-index: 1;
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
:host([fullbleed]) {
|
|
686
|
-
@apply --layout-fit;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
#contentContainer {
|
|
690
|
-
/* Create a stacking context here so that all children appear below the header. */
|
|
691
|
-
position: relative;
|
|
692
|
-
z-index: 0;
|
|
693
|
-
height: 100%;
|
|
694
|
-
transition: var(--app-drawer-layout-content-transition, none);
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
#contentContainer[drawer-position=left] {
|
|
698
|
-
margin-left: var(--app-drawer-width, 256px);
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
#contentContainer[drawer-position=right] {
|
|
702
|
-
margin-right: var(--app-drawer-width, 256px);
|
|
703
|
-
}
|
|
704
|
-
</style>
|
|
705
|
-
|
|
706
|
-
<slot id="drawerSlot" name="drawer"></slot>
|
|
707
|
-
|
|
708
|
-
<div id="contentContainer" drawer-position\$="[[_drawerPosition]]">
|
|
709
|
-
<slot></slot>
|
|
710
|
-
</div>
|
|
711
|
-
|
|
712
|
-
<iron-media-query query="[[_computeMediaQuery(forceNarrow, responsiveWidth)]]" on-query-matches-changed="_onQueryMatchesChanged"></iron-media-query>
|
|
713
|
-
`,is:"app-drawer-layout",behaviors:[Oa],properties:{forceNarrow:{type:Boolean,value:!1},responsiveWidth:{type:String,value:"640px"},narrow:{type:Boolean,reflectToAttribute:!0,readOnly:!0,notify:!0},openedWhenNarrow:{type:Boolean,value:!1},_drawerPosition:{type:String}},listeners:{click:"_clickHandler"},observers:["_narrowChanged(narrow)"],get drawer(){return fo(this.$.drawerSlot).getDistributedNodes()[0]},attached:function(){var e=this.drawer;e&&e.setAttribute("no-transition","")},_clickHandler:function(e){var t=fo(e).localTarget;if(t&&t.hasAttribute("drawer-toggle")){var n=this.drawer;n&&!n.persistent&&n.toggle()}},_updateLayoutStates:function(){var e=this.drawer;this.isAttached&&e&&(this._drawerPosition=this.narrow?null:e.position,this._drawerNeedsReset&&(this.narrow?(e.opened=this.openedWhenNarrow,e.persistent=!1):e.opened=e.persistent=!0,e.hasAttribute("no-transition")&&$s(this,(function(){e.removeAttribute("no-transition")})),this._drawerNeedsReset=!1))},_narrowChanged:function(){this._drawerNeedsReset=!0,this.resetLayout()},_onQueryMatchesChanged:function(e){this._setNarrow(e.detail.value)},_computeMediaQuery:function(e,t){return e?"(min-width: 0px)":"(max-width: "+t+")"}});
|
|
714
|
-
/**
|
|
715
|
-
@license
|
|
716
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
717
|
-
This code may only be used under the BSD style license found at
|
|
718
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
719
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
720
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
721
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
722
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
723
|
-
*/
|
|
724
|
-
const Na=ua`
|
|
725
|
-
<custom-style>
|
|
726
|
-
<style is="custom-style">
|
|
727
|
-
[hidden] {
|
|
728
|
-
display: none !important;
|
|
729
|
-
}
|
|
730
|
-
</style>
|
|
731
|
-
</custom-style>
|
|
732
|
-
<custom-style>
|
|
733
|
-
<style is="custom-style">
|
|
734
|
-
html {
|
|
735
|
-
|
|
736
|
-
--layout: {
|
|
737
|
-
display: -ms-flexbox;
|
|
738
|
-
display: -webkit-flex;
|
|
739
|
-
display: flex;
|
|
740
|
-
};
|
|
741
|
-
|
|
742
|
-
--layout-inline: {
|
|
743
|
-
display: -ms-inline-flexbox;
|
|
744
|
-
display: -webkit-inline-flex;
|
|
745
|
-
display: inline-flex;
|
|
746
|
-
};
|
|
747
|
-
|
|
748
|
-
--layout-horizontal: {
|
|
749
|
-
@apply --layout;
|
|
750
|
-
|
|
751
|
-
-ms-flex-direction: row;
|
|
752
|
-
-webkit-flex-direction: row;
|
|
753
|
-
flex-direction: row;
|
|
754
|
-
};
|
|
755
|
-
|
|
756
|
-
--layout-horizontal-reverse: {
|
|
757
|
-
@apply --layout;
|
|
758
|
-
|
|
759
|
-
-ms-flex-direction: row-reverse;
|
|
760
|
-
-webkit-flex-direction: row-reverse;
|
|
761
|
-
flex-direction: row-reverse;
|
|
762
|
-
};
|
|
763
|
-
|
|
764
|
-
--layout-vertical: {
|
|
765
|
-
@apply --layout;
|
|
766
|
-
|
|
767
|
-
-ms-flex-direction: column;
|
|
768
|
-
-webkit-flex-direction: column;
|
|
769
|
-
flex-direction: column;
|
|
770
|
-
};
|
|
771
|
-
|
|
772
|
-
--layout-vertical-reverse: {
|
|
773
|
-
@apply --layout;
|
|
774
|
-
|
|
775
|
-
-ms-flex-direction: column-reverse;
|
|
776
|
-
-webkit-flex-direction: column-reverse;
|
|
777
|
-
flex-direction: column-reverse;
|
|
778
|
-
};
|
|
779
|
-
|
|
780
|
-
--layout-wrap: {
|
|
781
|
-
-ms-flex-wrap: wrap;
|
|
782
|
-
-webkit-flex-wrap: wrap;
|
|
783
|
-
flex-wrap: wrap;
|
|
784
|
-
};
|
|
785
|
-
|
|
786
|
-
--layout-wrap-reverse: {
|
|
787
|
-
-ms-flex-wrap: wrap-reverse;
|
|
788
|
-
-webkit-flex-wrap: wrap-reverse;
|
|
789
|
-
flex-wrap: wrap-reverse;
|
|
790
|
-
};
|
|
791
|
-
|
|
792
|
-
--layout-flex-auto: {
|
|
793
|
-
-ms-flex: 1 1 auto;
|
|
794
|
-
-webkit-flex: 1 1 auto;
|
|
795
|
-
flex: 1 1 auto;
|
|
796
|
-
};
|
|
797
|
-
|
|
798
|
-
--layout-flex-none: {
|
|
799
|
-
-ms-flex: none;
|
|
800
|
-
-webkit-flex: none;
|
|
801
|
-
flex: none;
|
|
802
|
-
};
|
|
803
|
-
|
|
804
|
-
--layout-flex: {
|
|
805
|
-
-ms-flex: 1 1 0.000000001px;
|
|
806
|
-
-webkit-flex: 1;
|
|
807
|
-
flex: 1;
|
|
808
|
-
-webkit-flex-basis: 0.000000001px;
|
|
809
|
-
flex-basis: 0.000000001px;
|
|
810
|
-
};
|
|
811
|
-
|
|
812
|
-
--layout-flex-2: {
|
|
813
|
-
-ms-flex: 2;
|
|
814
|
-
-webkit-flex: 2;
|
|
815
|
-
flex: 2;
|
|
816
|
-
};
|
|
817
|
-
|
|
818
|
-
--layout-flex-3: {
|
|
819
|
-
-ms-flex: 3;
|
|
820
|
-
-webkit-flex: 3;
|
|
821
|
-
flex: 3;
|
|
822
|
-
};
|
|
823
|
-
|
|
824
|
-
--layout-flex-4: {
|
|
825
|
-
-ms-flex: 4;
|
|
826
|
-
-webkit-flex: 4;
|
|
827
|
-
flex: 4;
|
|
828
|
-
};
|
|
829
|
-
|
|
830
|
-
--layout-flex-5: {
|
|
831
|
-
-ms-flex: 5;
|
|
832
|
-
-webkit-flex: 5;
|
|
833
|
-
flex: 5;
|
|
834
|
-
};
|
|
835
|
-
|
|
836
|
-
--layout-flex-6: {
|
|
837
|
-
-ms-flex: 6;
|
|
838
|
-
-webkit-flex: 6;
|
|
839
|
-
flex: 6;
|
|
840
|
-
};
|
|
841
|
-
|
|
842
|
-
--layout-flex-7: {
|
|
843
|
-
-ms-flex: 7;
|
|
844
|
-
-webkit-flex: 7;
|
|
845
|
-
flex: 7;
|
|
846
|
-
};
|
|
847
|
-
|
|
848
|
-
--layout-flex-8: {
|
|
849
|
-
-ms-flex: 8;
|
|
850
|
-
-webkit-flex: 8;
|
|
851
|
-
flex: 8;
|
|
852
|
-
};
|
|
853
|
-
|
|
854
|
-
--layout-flex-9: {
|
|
855
|
-
-ms-flex: 9;
|
|
856
|
-
-webkit-flex: 9;
|
|
857
|
-
flex: 9;
|
|
858
|
-
};
|
|
859
|
-
|
|
860
|
-
--layout-flex-10: {
|
|
861
|
-
-ms-flex: 10;
|
|
862
|
-
-webkit-flex: 10;
|
|
863
|
-
flex: 10;
|
|
864
|
-
};
|
|
865
|
-
|
|
866
|
-
--layout-flex-11: {
|
|
867
|
-
-ms-flex: 11;
|
|
868
|
-
-webkit-flex: 11;
|
|
869
|
-
flex: 11;
|
|
870
|
-
};
|
|
871
|
-
|
|
872
|
-
--layout-flex-12: {
|
|
873
|
-
-ms-flex: 12;
|
|
874
|
-
-webkit-flex: 12;
|
|
875
|
-
flex: 12;
|
|
876
|
-
};
|
|
877
|
-
|
|
878
|
-
/* alignment in cross axis */
|
|
879
|
-
|
|
880
|
-
--layout-start: {
|
|
881
|
-
-ms-flex-align: start;
|
|
882
|
-
-webkit-align-items: flex-start;
|
|
883
|
-
align-items: flex-start;
|
|
884
|
-
};
|
|
885
|
-
|
|
886
|
-
--layout-center: {
|
|
887
|
-
-ms-flex-align: center;
|
|
888
|
-
-webkit-align-items: center;
|
|
889
|
-
align-items: center;
|
|
890
|
-
};
|
|
891
|
-
|
|
892
|
-
--layout-end: {
|
|
893
|
-
-ms-flex-align: end;
|
|
894
|
-
-webkit-align-items: flex-end;
|
|
895
|
-
align-items: flex-end;
|
|
896
|
-
};
|
|
897
|
-
|
|
898
|
-
--layout-baseline: {
|
|
899
|
-
-ms-flex-align: baseline;
|
|
900
|
-
-webkit-align-items: baseline;
|
|
901
|
-
align-items: baseline;
|
|
902
|
-
};
|
|
903
|
-
|
|
904
|
-
/* alignment in main axis */
|
|
905
|
-
|
|
906
|
-
--layout-start-justified: {
|
|
907
|
-
-ms-flex-pack: start;
|
|
908
|
-
-webkit-justify-content: flex-start;
|
|
909
|
-
justify-content: flex-start;
|
|
910
|
-
};
|
|
911
|
-
|
|
912
|
-
--layout-center-justified: {
|
|
913
|
-
-ms-flex-pack: center;
|
|
914
|
-
-webkit-justify-content: center;
|
|
915
|
-
justify-content: center;
|
|
916
|
-
};
|
|
917
|
-
|
|
918
|
-
--layout-end-justified: {
|
|
919
|
-
-ms-flex-pack: end;
|
|
920
|
-
-webkit-justify-content: flex-end;
|
|
921
|
-
justify-content: flex-end;
|
|
922
|
-
};
|
|
923
|
-
|
|
924
|
-
--layout-around-justified: {
|
|
925
|
-
-ms-flex-pack: distribute;
|
|
926
|
-
-webkit-justify-content: space-around;
|
|
927
|
-
justify-content: space-around;
|
|
928
|
-
};
|
|
929
|
-
|
|
930
|
-
--layout-justified: {
|
|
931
|
-
-ms-flex-pack: justify;
|
|
932
|
-
-webkit-justify-content: space-between;
|
|
933
|
-
justify-content: space-between;
|
|
934
|
-
};
|
|
935
|
-
|
|
936
|
-
--layout-center-center: {
|
|
937
|
-
@apply --layout-center;
|
|
938
|
-
@apply --layout-center-justified;
|
|
939
|
-
};
|
|
940
|
-
|
|
941
|
-
/* self alignment */
|
|
942
|
-
|
|
943
|
-
--layout-self-start: {
|
|
944
|
-
-ms-align-self: flex-start;
|
|
945
|
-
-webkit-align-self: flex-start;
|
|
946
|
-
align-self: flex-start;
|
|
947
|
-
};
|
|
948
|
-
|
|
949
|
-
--layout-self-center: {
|
|
950
|
-
-ms-align-self: center;
|
|
951
|
-
-webkit-align-self: center;
|
|
952
|
-
align-self: center;
|
|
953
|
-
};
|
|
954
|
-
|
|
955
|
-
--layout-self-end: {
|
|
956
|
-
-ms-align-self: flex-end;
|
|
957
|
-
-webkit-align-self: flex-end;
|
|
958
|
-
align-self: flex-end;
|
|
959
|
-
};
|
|
960
|
-
|
|
961
|
-
--layout-self-stretch: {
|
|
962
|
-
-ms-align-self: stretch;
|
|
963
|
-
-webkit-align-self: stretch;
|
|
964
|
-
align-self: stretch;
|
|
965
|
-
};
|
|
966
|
-
|
|
967
|
-
--layout-self-baseline: {
|
|
968
|
-
-ms-align-self: baseline;
|
|
969
|
-
-webkit-align-self: baseline;
|
|
970
|
-
align-self: baseline;
|
|
971
|
-
};
|
|
972
|
-
|
|
973
|
-
/* multi-line alignment in main axis */
|
|
974
|
-
|
|
975
|
-
--layout-start-aligned: {
|
|
976
|
-
-ms-flex-line-pack: start; /* IE10 */
|
|
977
|
-
-ms-align-content: flex-start;
|
|
978
|
-
-webkit-align-content: flex-start;
|
|
979
|
-
align-content: flex-start;
|
|
980
|
-
};
|
|
981
|
-
|
|
982
|
-
--layout-end-aligned: {
|
|
983
|
-
-ms-flex-line-pack: end; /* IE10 */
|
|
984
|
-
-ms-align-content: flex-end;
|
|
985
|
-
-webkit-align-content: flex-end;
|
|
986
|
-
align-content: flex-end;
|
|
987
|
-
};
|
|
988
|
-
|
|
989
|
-
--layout-center-aligned: {
|
|
990
|
-
-ms-flex-line-pack: center; /* IE10 */
|
|
991
|
-
-ms-align-content: center;
|
|
992
|
-
-webkit-align-content: center;
|
|
993
|
-
align-content: center;
|
|
994
|
-
};
|
|
995
|
-
|
|
996
|
-
--layout-between-aligned: {
|
|
997
|
-
-ms-flex-line-pack: justify; /* IE10 */
|
|
998
|
-
-ms-align-content: space-between;
|
|
999
|
-
-webkit-align-content: space-between;
|
|
1000
|
-
align-content: space-between;
|
|
1001
|
-
};
|
|
1002
|
-
|
|
1003
|
-
--layout-around-aligned: {
|
|
1004
|
-
-ms-flex-line-pack: distribute; /* IE10 */
|
|
1005
|
-
-ms-align-content: space-around;
|
|
1006
|
-
-webkit-align-content: space-around;
|
|
1007
|
-
align-content: space-around;
|
|
1008
|
-
};
|
|
1009
|
-
|
|
1010
|
-
/*******************************
|
|
1011
|
-
Other Layout
|
|
1012
|
-
*******************************/
|
|
1013
|
-
|
|
1014
|
-
--layout-block: {
|
|
1015
|
-
display: block;
|
|
1016
|
-
};
|
|
1017
|
-
|
|
1018
|
-
--layout-invisible: {
|
|
1019
|
-
visibility: hidden !important;
|
|
1020
|
-
};
|
|
1021
|
-
|
|
1022
|
-
--layout-relative: {
|
|
1023
|
-
position: relative;
|
|
1024
|
-
};
|
|
1025
|
-
|
|
1026
|
-
--layout-fit: {
|
|
1027
|
-
position: absolute;
|
|
1028
|
-
top: 0;
|
|
1029
|
-
right: 0;
|
|
1030
|
-
bottom: 0;
|
|
1031
|
-
left: 0;
|
|
1032
|
-
};
|
|
1033
|
-
|
|
1034
|
-
--layout-scroll: {
|
|
1035
|
-
-webkit-overflow-scrolling: touch;
|
|
1036
|
-
overflow: auto;
|
|
1037
|
-
};
|
|
1038
|
-
|
|
1039
|
-
--layout-fullbleed: {
|
|
1040
|
-
margin: 0;
|
|
1041
|
-
height: 100vh;
|
|
1042
|
-
};
|
|
1043
|
-
|
|
1044
|
-
/* fixed position */
|
|
1045
|
-
|
|
1046
|
-
--layout-fixed-top: {
|
|
1047
|
-
position: fixed;
|
|
1048
|
-
top: 0;
|
|
1049
|
-
left: 0;
|
|
1050
|
-
right: 0;
|
|
1051
|
-
};
|
|
1052
|
-
|
|
1053
|
-
--layout-fixed-right: {
|
|
1054
|
-
position: fixed;
|
|
1055
|
-
top: 0;
|
|
1056
|
-
right: 0;
|
|
1057
|
-
bottom: 0;
|
|
1058
|
-
};
|
|
1059
|
-
|
|
1060
|
-
--layout-fixed-bottom: {
|
|
1061
|
-
position: fixed;
|
|
1062
|
-
right: 0;
|
|
1063
|
-
bottom: 0;
|
|
1064
|
-
left: 0;
|
|
1065
|
-
};
|
|
1066
|
-
|
|
1067
|
-
--layout-fixed-left: {
|
|
1068
|
-
position: fixed;
|
|
1069
|
-
top: 0;
|
|
1070
|
-
bottom: 0;
|
|
1071
|
-
left: 0;
|
|
1072
|
-
};
|
|
1073
|
-
|
|
1074
|
-
}
|
|
1075
|
-
</style>
|
|
1076
|
-
</custom-style>`;Na.setAttribute("style","display: none;"),document.head.appendChild(Na.content);var Ra=document.createElement("style");Ra.textContent="[hidden] { display: none !important; }",document.head.appendChild(Ra),
|
|
1077
|
-
/**
|
|
1078
|
-
@license
|
|
1079
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1080
|
-
This code may only be used under the BSD style license found at
|
|
1081
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1082
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1083
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1084
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1085
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1086
|
-
*/
|
|
1087
|
-
Mo({_template:ua`
|
|
1088
|
-
<style>
|
|
1089
|
-
:host {
|
|
1090
|
-
position: fixed;
|
|
1091
|
-
top: -120px;
|
|
1092
|
-
right: 0;
|
|
1093
|
-
bottom: -120px;
|
|
1094
|
-
left: 0;
|
|
1095
|
-
|
|
1096
|
-
visibility: hidden;
|
|
1097
|
-
|
|
1098
|
-
transition-property: visibility;
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
:host([opened]) {
|
|
1102
|
-
visibility: visible;
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
:host([persistent]) {
|
|
1106
|
-
width: var(--app-drawer-width, 256px);
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
:host([persistent][position=left]) {
|
|
1110
|
-
right: auto;
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
:host([persistent][position=right]) {
|
|
1114
|
-
left: auto;
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
#contentContainer {
|
|
1118
|
-
position: absolute;
|
|
1119
|
-
top: 0;
|
|
1120
|
-
bottom: 0;
|
|
1121
|
-
left: 0;
|
|
1122
|
-
|
|
1123
|
-
width: var(--app-drawer-width, 256px);
|
|
1124
|
-
padding: var(--app-drawer-content-padding, 120px 0);
|
|
1125
|
-
|
|
1126
|
-
transition-property: -webkit-transform;
|
|
1127
|
-
transition-property: transform;
|
|
1128
|
-
-webkit-transform: translate3d(-100%, 0, 0);
|
|
1129
|
-
transform: translate3d(-100%, 0, 0);
|
|
1130
|
-
|
|
1131
|
-
background-color: #FFF;
|
|
1132
|
-
|
|
1133
|
-
@apply --app-drawer-content-container;
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
#contentContainer[persistent] {
|
|
1137
|
-
width: 100%;
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
#contentContainer[position=right] {
|
|
1141
|
-
right: 0;
|
|
1142
|
-
left: auto;
|
|
1143
|
-
|
|
1144
|
-
-webkit-transform: translate3d(100%, 0, 0);
|
|
1145
|
-
transform: translate3d(100%, 0, 0);
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
#contentContainer[swipe-open]::after {
|
|
1149
|
-
position: fixed;
|
|
1150
|
-
top: 0;
|
|
1151
|
-
bottom: 0;
|
|
1152
|
-
left: 100%;
|
|
1153
|
-
|
|
1154
|
-
visibility: visible;
|
|
1155
|
-
|
|
1156
|
-
width: 20px;
|
|
1157
|
-
|
|
1158
|
-
content: '';
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
#contentContainer[swipe-open][position=right]::after {
|
|
1162
|
-
right: 100%;
|
|
1163
|
-
left: auto;
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
#contentContainer[opened] {
|
|
1167
|
-
-webkit-transform: translate3d(0, 0, 0);
|
|
1168
|
-
transform: translate3d(0, 0, 0);
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
#scrim {
|
|
1172
|
-
position: absolute;
|
|
1173
|
-
top: 0;
|
|
1174
|
-
right: 0;
|
|
1175
|
-
bottom: 0;
|
|
1176
|
-
left: 0;
|
|
1177
|
-
|
|
1178
|
-
transition-property: opacity;
|
|
1179
|
-
-webkit-transform: translateZ(0);
|
|
1180
|
-
transform: translateZ(0);
|
|
1181
|
-
|
|
1182
|
-
opacity: 0;
|
|
1183
|
-
background: var(--app-drawer-scrim-background, rgba(0, 0, 0, 0.5));
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
#scrim.visible {
|
|
1187
|
-
opacity: 1;
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
:host([no-transition]) #contentContainer {
|
|
1191
|
-
transition-property: none;
|
|
1192
|
-
}
|
|
1193
|
-
</style>
|
|
1194
|
-
|
|
1195
|
-
<div id="scrim" on-click="close"></div>
|
|
1196
|
-
|
|
1197
|
-
<!-- HACK(keanulee): Bind attributes here (in addition to :host) for styling to workaround Safari
|
|
1198
|
-
bug. https://bugs.webkit.org/show_bug.cgi?id=170762 -->
|
|
1199
|
-
<div id="contentContainer" opened\$="[[opened]]" persistent\$="[[persistent]]" position\$="[[position]]" swipe-open\$="[[swipeOpen]]">
|
|
1200
|
-
<slot></slot>
|
|
1201
|
-
</div>
|
|
1202
|
-
`,is:"app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionDuration:{type:Number,value:200},align:{type:String,value:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1},disableSwipe:{type:Boolean,value:!1}},observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDuration(transitionDuration)","_openedPersistentChanged(opened, persistent)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firstTabStop:null,_lastTabStop:null,attached:function(){$s(this,(function(){this._boundEscKeydownHandler=this._escKeydownHandler.bind(this),this.addEventListener("keydown",this._tabKeydownHandler.bind(this)),this.listen(this,"track","_track"),this.setScrollDirection("y")})),this.fire("app-reset-layout")},detached:function(){document.removeEventListener("keydown",this._boundEscKeydownHandler)},open:function(){this.opened=!0},close:function(){this.opened=!1},toggle:function(){this.opened=!this.opened},getWidth:function(){return this._savedWidth||this.$.contentContainer.offsetWidth},_isRTL:function(){return"rtl"===window.getComputedStyle(this).direction},_resetPosition:function(){switch(this.align){case"start":return void this._setPosition(this._isRTL()?"right":"left");case"end":return void this._setPosition(this._isRTL()?"left":"right")}this._setPosition(this.align)},_escKeydownHandler:function(e){var t=27;e.keyCode===t&&(e.preventDefault(),this.close())},_track:function(e){if(!this.persistent&&!this.disableSwipe)switch(e.preventDefault(),e.detail.state){case"start":this._trackStart(e);break;case"track":this._trackMove(e);break;case"end":this._trackEnd(e)}},_trackStart:function(e){this._drawerState=this._DRAWER_STATE.TRACKING;var t=this.$.contentContainer.getBoundingClientRect();this._savedWidth=t.width,"left"===this.position?this._translateOffset=t.left:this._translateOffset=t.right-window.innerWidth,this._trackDetails=[],this._styleTransitionDuration(0),this.style.visibility="visible"},_trackMove:function(e){this._translateDrawer(e.detail.dx+this._translateOffset),this._trackDetails.push({dx:e.detail.dx,timeStamp:Date.now()})},_trackEnd:function(e){var t=e.detail.dx+this._translateOffset,n=this.getWidth(),i="left"===this.position?t>=0||t<=-n:t<=0||t>=n;if(!i){var r=this._trackDetails;if(this._trackDetails=null,this._flingDrawer(e,r),this._drawerState===this._DRAWER_STATE.FLINGING)return}var s=n/2;e.detail.dx<-s?this.opened="right"===this.position:e.detail.dx>s&&(this.opened="left"===this.position),i?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration),this._styleTransitionDuration(this.transitionDuration),this._resetDrawerTranslate(),this.style.visibility=""},_calculateVelocity:function(e,t){for(var n,i=Date.now(),r=i-100,s=0,o=t.length-1;s<=o;){var a=s+o>>1,l=t[a];l.timeStamp>=r?(n=l,o=a-1):s=a+1}return n?(e.detail.dx-n.dx)/(i-n.timeStamp||1):0},_flingDrawer:function(e,t){var n=this._calculateVelocity(e,t);if(!(Math.abs(n)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;var i,r=e.detail.dx+this._translateOffset,s=this.getWidth(),o="left"===this.position,a=n>0;i=!a&&o?-(r+s):a&&!o?s-r:-r,a?(n=Math.max(n,this._MIN_TRANSITION_VELOCITY),this.opened="left"===this.position):(n=Math.min(n,-this._MIN_TRANSITION_VELOCITY),this.opened="right"===this.position);var l=this._FLING_INITIAL_SLOPE*i/n;this._styleTransitionDuration(l),this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION),this._resetDrawerTranslate(),this.debounce("_resetDrawerState",this._resetDrawerState,l)}},_styleTransitionDuration:function(e){this.style.transitionDuration=e+"ms",this.$.contentContainer.style.transitionDuration=e+"ms",this.$.scrim.style.transitionDuration=e+"ms"},_styleTransitionTimingFunction:function(e){this.$.contentContainer.style.transitionTimingFunction=e,this.$.scrim.style.transitionTimingFunction=e},_translateDrawer:function(e){var t=this.getWidth();"left"===this.position?(e=Math.max(-t,Math.min(e,0)),this.$.scrim.style.opacity=1+e/t):(e=Math.max(0,Math.min(e,t)),this.$.scrim.style.opacity=1-e/t),this.translate3d(e+"px","0","0",this.$.contentContainer)},_resetDrawerTranslate:function(){this.$.scrim.style.opacity="",this.transform("",this.$.contentContainer)},_resetDrawerState:function(){var e=this._drawerState;e===this._DRAWER_STATE.FLINGING&&(this._styleTransitionDuration(this.transitionDuration),this._styleTransitionTimingFunction(""),this.style.visibility=""),this._savedWidth=null,this.opened?this._drawerState=this.persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._drawerState=this._DRAWER_STATE.CLOSED,e!==this._drawerState&&(this._drawerState===this._DRAWER_STATE.OPENED?(this._setKeyboardFocusTrap(),document.addEventListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow=""),e!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},resetLayout:function(){this.fire("app-reset-layout")},_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var e=['a[href]:not([tabindex="-1"])','area[href]:not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','iframe:not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])','[contentEditable=true]:not([tabindex="-1"])'].join(","),t=fo(this).querySelectorAll(e);t.length>0?(this._firstTabStop=t[0],this._lastTabStop=t[t.length-1]):(this._firstTabStop=null,this._lastTabStop=null);var n=this.getAttribute("tabindex");n&&parseInt(n,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},_tabKeydownHandler:function(e){if(!this.noFocusTrap){var t=9;this._drawerState===this._DRAWER_STATE.OPENED&&e.keyCode===t&&(e.shiftKey?this._firstTabStop&&fo(e).localTarget===this._firstTabStop&&(e.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&fo(e).localTarget===this._lastTabStop&&(e.preventDefault(),this._firstTabStop.focus()))}},_openedPersistentChanged:function(e,t){this.toggleClass("visible",e&&!t,this.$.scrim),this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});
|
|
1203
|
-
/**
|
|
1204
|
-
@license
|
|
1205
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1206
|
-
This code may only be used under the BSD style license found at
|
|
1207
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1208
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1209
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1210
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1211
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1212
|
-
*/
|
|
1213
|
-
const za=ua`
|
|
1214
|
-
<custom-style>
|
|
1215
|
-
<style is="custom-style">
|
|
1216
|
-
html {
|
|
1217
|
-
|
|
1218
|
-
/* Material Design color palette for Google products */
|
|
1219
|
-
|
|
1220
|
-
--google-red-100: #f4c7c3;
|
|
1221
|
-
--google-red-300: #e67c73;
|
|
1222
|
-
--google-red-500: #db4437;
|
|
1223
|
-
--google-red-700: #c53929;
|
|
1224
|
-
|
|
1225
|
-
--google-blue-100: #c6dafc;
|
|
1226
|
-
--google-blue-300: #7baaf7;
|
|
1227
|
-
--google-blue-500: #4285f4;
|
|
1228
|
-
--google-blue-700: #3367d6;
|
|
1229
|
-
|
|
1230
|
-
--google-green-100: #b7e1cd;
|
|
1231
|
-
--google-green-300: #57bb8a;
|
|
1232
|
-
--google-green-500: #0f9d58;
|
|
1233
|
-
--google-green-700: #0b8043;
|
|
1234
|
-
|
|
1235
|
-
--google-yellow-100: #fce8b2;
|
|
1236
|
-
--google-yellow-300: #f7cb4d;
|
|
1237
|
-
--google-yellow-500: #f4b400;
|
|
1238
|
-
--google-yellow-700: #f09300;
|
|
1239
|
-
|
|
1240
|
-
--google-grey-100: #f5f5f5;
|
|
1241
|
-
--google-grey-300: #e0e0e0;
|
|
1242
|
-
--google-grey-500: #9e9e9e;
|
|
1243
|
-
--google-grey-700: #616161;
|
|
1244
|
-
|
|
1245
|
-
/* Material Design color palette from online spec document */
|
|
1246
|
-
|
|
1247
|
-
--paper-red-50: #ffebee;
|
|
1248
|
-
--paper-red-100: #ffcdd2;
|
|
1249
|
-
--paper-red-200: #ef9a9a;
|
|
1250
|
-
--paper-red-300: #e57373;
|
|
1251
|
-
--paper-red-400: #ef5350;
|
|
1252
|
-
--paper-red-500: #f44336;
|
|
1253
|
-
--paper-red-600: #e53935;
|
|
1254
|
-
--paper-red-700: #d32f2f;
|
|
1255
|
-
--paper-red-800: #c62828;
|
|
1256
|
-
--paper-red-900: #b71c1c;
|
|
1257
|
-
--paper-red-a100: #ff8a80;
|
|
1258
|
-
--paper-red-a200: #ff5252;
|
|
1259
|
-
--paper-red-a400: #ff1744;
|
|
1260
|
-
--paper-red-a700: #d50000;
|
|
1261
|
-
|
|
1262
|
-
--paper-pink-50: #fce4ec;
|
|
1263
|
-
--paper-pink-100: #f8bbd0;
|
|
1264
|
-
--paper-pink-200: #f48fb1;
|
|
1265
|
-
--paper-pink-300: #f06292;
|
|
1266
|
-
--paper-pink-400: #ec407a;
|
|
1267
|
-
--paper-pink-500: #e91e63;
|
|
1268
|
-
--paper-pink-600: #d81b60;
|
|
1269
|
-
--paper-pink-700: #c2185b;
|
|
1270
|
-
--paper-pink-800: #ad1457;
|
|
1271
|
-
--paper-pink-900: #880e4f;
|
|
1272
|
-
--paper-pink-a100: #ff80ab;
|
|
1273
|
-
--paper-pink-a200: #ff4081;
|
|
1274
|
-
--paper-pink-a400: #f50057;
|
|
1275
|
-
--paper-pink-a700: #c51162;
|
|
1276
|
-
|
|
1277
|
-
--paper-purple-50: #f3e5f5;
|
|
1278
|
-
--paper-purple-100: #e1bee7;
|
|
1279
|
-
--paper-purple-200: #ce93d8;
|
|
1280
|
-
--paper-purple-300: #ba68c8;
|
|
1281
|
-
--paper-purple-400: #ab47bc;
|
|
1282
|
-
--paper-purple-500: #9c27b0;
|
|
1283
|
-
--paper-purple-600: #8e24aa;
|
|
1284
|
-
--paper-purple-700: #7b1fa2;
|
|
1285
|
-
--paper-purple-800: #6a1b9a;
|
|
1286
|
-
--paper-purple-900: #4a148c;
|
|
1287
|
-
--paper-purple-a100: #ea80fc;
|
|
1288
|
-
--paper-purple-a200: #e040fb;
|
|
1289
|
-
--paper-purple-a400: #d500f9;
|
|
1290
|
-
--paper-purple-a700: #aa00ff;
|
|
1291
|
-
|
|
1292
|
-
--paper-deep-purple-50: #ede7f6;
|
|
1293
|
-
--paper-deep-purple-100: #d1c4e9;
|
|
1294
|
-
--paper-deep-purple-200: #b39ddb;
|
|
1295
|
-
--paper-deep-purple-300: #9575cd;
|
|
1296
|
-
--paper-deep-purple-400: #7e57c2;
|
|
1297
|
-
--paper-deep-purple-500: #673ab7;
|
|
1298
|
-
--paper-deep-purple-600: #5e35b1;
|
|
1299
|
-
--paper-deep-purple-700: #512da8;
|
|
1300
|
-
--paper-deep-purple-800: #4527a0;
|
|
1301
|
-
--paper-deep-purple-900: #311b92;
|
|
1302
|
-
--paper-deep-purple-a100: #b388ff;
|
|
1303
|
-
--paper-deep-purple-a200: #7c4dff;
|
|
1304
|
-
--paper-deep-purple-a400: #651fff;
|
|
1305
|
-
--paper-deep-purple-a700: #6200ea;
|
|
1306
|
-
|
|
1307
|
-
--paper-indigo-50: #e8eaf6;
|
|
1308
|
-
--paper-indigo-100: #c5cae9;
|
|
1309
|
-
--paper-indigo-200: #9fa8da;
|
|
1310
|
-
--paper-indigo-300: #7986cb;
|
|
1311
|
-
--paper-indigo-400: #5c6bc0;
|
|
1312
|
-
--paper-indigo-500: #3f51b5;
|
|
1313
|
-
--paper-indigo-600: #3949ab;
|
|
1314
|
-
--paper-indigo-700: #303f9f;
|
|
1315
|
-
--paper-indigo-800: #283593;
|
|
1316
|
-
--paper-indigo-900: #1a237e;
|
|
1317
|
-
--paper-indigo-a100: #8c9eff;
|
|
1318
|
-
--paper-indigo-a200: #536dfe;
|
|
1319
|
-
--paper-indigo-a400: #3d5afe;
|
|
1320
|
-
--paper-indigo-a700: #304ffe;
|
|
1321
|
-
|
|
1322
|
-
--paper-blue-50: #e3f2fd;
|
|
1323
|
-
--paper-blue-100: #bbdefb;
|
|
1324
|
-
--paper-blue-200: #90caf9;
|
|
1325
|
-
--paper-blue-300: #64b5f6;
|
|
1326
|
-
--paper-blue-400: #42a5f5;
|
|
1327
|
-
--paper-blue-500: #2196f3;
|
|
1328
|
-
--paper-blue-600: #1e88e5;
|
|
1329
|
-
--paper-blue-700: #1976d2;
|
|
1330
|
-
--paper-blue-800: #1565c0;
|
|
1331
|
-
--paper-blue-900: #0d47a1;
|
|
1332
|
-
--paper-blue-a100: #82b1ff;
|
|
1333
|
-
--paper-blue-a200: #448aff;
|
|
1334
|
-
--paper-blue-a400: #2979ff;
|
|
1335
|
-
--paper-blue-a700: #2962ff;
|
|
1336
|
-
|
|
1337
|
-
--paper-light-blue-50: #e1f5fe;
|
|
1338
|
-
--paper-light-blue-100: #b3e5fc;
|
|
1339
|
-
--paper-light-blue-200: #81d4fa;
|
|
1340
|
-
--paper-light-blue-300: #4fc3f7;
|
|
1341
|
-
--paper-light-blue-400: #29b6f6;
|
|
1342
|
-
--paper-light-blue-500: #03a9f4;
|
|
1343
|
-
--paper-light-blue-600: #039be5;
|
|
1344
|
-
--paper-light-blue-700: #0288d1;
|
|
1345
|
-
--paper-light-blue-800: #0277bd;
|
|
1346
|
-
--paper-light-blue-900: #01579b;
|
|
1347
|
-
--paper-light-blue-a100: #80d8ff;
|
|
1348
|
-
--paper-light-blue-a200: #40c4ff;
|
|
1349
|
-
--paper-light-blue-a400: #00b0ff;
|
|
1350
|
-
--paper-light-blue-a700: #0091ea;
|
|
1351
|
-
|
|
1352
|
-
--paper-cyan-50: #e0f7fa;
|
|
1353
|
-
--paper-cyan-100: #b2ebf2;
|
|
1354
|
-
--paper-cyan-200: #80deea;
|
|
1355
|
-
--paper-cyan-300: #4dd0e1;
|
|
1356
|
-
--paper-cyan-400: #26c6da;
|
|
1357
|
-
--paper-cyan-500: #00bcd4;
|
|
1358
|
-
--paper-cyan-600: #00acc1;
|
|
1359
|
-
--paper-cyan-700: #0097a7;
|
|
1360
|
-
--paper-cyan-800: #00838f;
|
|
1361
|
-
--paper-cyan-900: #006064;
|
|
1362
|
-
--paper-cyan-a100: #84ffff;
|
|
1363
|
-
--paper-cyan-a200: #18ffff;
|
|
1364
|
-
--paper-cyan-a400: #00e5ff;
|
|
1365
|
-
--paper-cyan-a700: #00b8d4;
|
|
1366
|
-
|
|
1367
|
-
--paper-teal-50: #e0f2f1;
|
|
1368
|
-
--paper-teal-100: #b2dfdb;
|
|
1369
|
-
--paper-teal-200: #80cbc4;
|
|
1370
|
-
--paper-teal-300: #4db6ac;
|
|
1371
|
-
--paper-teal-400: #26a69a;
|
|
1372
|
-
--paper-teal-500: #009688;
|
|
1373
|
-
--paper-teal-600: #00897b;
|
|
1374
|
-
--paper-teal-700: #00796b;
|
|
1375
|
-
--paper-teal-800: #00695c;
|
|
1376
|
-
--paper-teal-900: #004d40;
|
|
1377
|
-
--paper-teal-a100: #a7ffeb;
|
|
1378
|
-
--paper-teal-a200: #64ffda;
|
|
1379
|
-
--paper-teal-a400: #1de9b6;
|
|
1380
|
-
--paper-teal-a700: #00bfa5;
|
|
1381
|
-
|
|
1382
|
-
--paper-green-50: #e8f5e9;
|
|
1383
|
-
--paper-green-100: #c8e6c9;
|
|
1384
|
-
--paper-green-200: #a5d6a7;
|
|
1385
|
-
--paper-green-300: #81c784;
|
|
1386
|
-
--paper-green-400: #66bb6a;
|
|
1387
|
-
--paper-green-500: #4caf50;
|
|
1388
|
-
--paper-green-600: #43a047;
|
|
1389
|
-
--paper-green-700: #388e3c;
|
|
1390
|
-
--paper-green-800: #2e7d32;
|
|
1391
|
-
--paper-green-900: #1b5e20;
|
|
1392
|
-
--paper-green-a100: #b9f6ca;
|
|
1393
|
-
--paper-green-a200: #69f0ae;
|
|
1394
|
-
--paper-green-a400: #00e676;
|
|
1395
|
-
--paper-green-a700: #00c853;
|
|
1396
|
-
|
|
1397
|
-
--paper-light-green-50: #f1f8e9;
|
|
1398
|
-
--paper-light-green-100: #dcedc8;
|
|
1399
|
-
--paper-light-green-200: #c5e1a5;
|
|
1400
|
-
--paper-light-green-300: #aed581;
|
|
1401
|
-
--paper-light-green-400: #9ccc65;
|
|
1402
|
-
--paper-light-green-500: #8bc34a;
|
|
1403
|
-
--paper-light-green-600: #7cb342;
|
|
1404
|
-
--paper-light-green-700: #689f38;
|
|
1405
|
-
--paper-light-green-800: #558b2f;
|
|
1406
|
-
--paper-light-green-900: #33691e;
|
|
1407
|
-
--paper-light-green-a100: #ccff90;
|
|
1408
|
-
--paper-light-green-a200: #b2ff59;
|
|
1409
|
-
--paper-light-green-a400: #76ff03;
|
|
1410
|
-
--paper-light-green-a700: #64dd17;
|
|
1411
|
-
|
|
1412
|
-
--paper-lime-50: #f9fbe7;
|
|
1413
|
-
--paper-lime-100: #f0f4c3;
|
|
1414
|
-
--paper-lime-200: #e6ee9c;
|
|
1415
|
-
--paper-lime-300: #dce775;
|
|
1416
|
-
--paper-lime-400: #d4e157;
|
|
1417
|
-
--paper-lime-500: #cddc39;
|
|
1418
|
-
--paper-lime-600: #c0ca33;
|
|
1419
|
-
--paper-lime-700: #afb42b;
|
|
1420
|
-
--paper-lime-800: #9e9d24;
|
|
1421
|
-
--paper-lime-900: #827717;
|
|
1422
|
-
--paper-lime-a100: #f4ff81;
|
|
1423
|
-
--paper-lime-a200: #eeff41;
|
|
1424
|
-
--paper-lime-a400: #c6ff00;
|
|
1425
|
-
--paper-lime-a700: #aeea00;
|
|
1426
|
-
|
|
1427
|
-
--paper-yellow-50: #fffde7;
|
|
1428
|
-
--paper-yellow-100: #fff9c4;
|
|
1429
|
-
--paper-yellow-200: #fff59d;
|
|
1430
|
-
--paper-yellow-300: #fff176;
|
|
1431
|
-
--paper-yellow-400: #ffee58;
|
|
1432
|
-
--paper-yellow-500: #ffeb3b;
|
|
1433
|
-
--paper-yellow-600: #fdd835;
|
|
1434
|
-
--paper-yellow-700: #fbc02d;
|
|
1435
|
-
--paper-yellow-800: #f9a825;
|
|
1436
|
-
--paper-yellow-900: #f57f17;
|
|
1437
|
-
--paper-yellow-a100: #ffff8d;
|
|
1438
|
-
--paper-yellow-a200: #ffff00;
|
|
1439
|
-
--paper-yellow-a400: #ffea00;
|
|
1440
|
-
--paper-yellow-a700: #ffd600;
|
|
1441
|
-
|
|
1442
|
-
--paper-amber-50: #fff8e1;
|
|
1443
|
-
--paper-amber-100: #ffecb3;
|
|
1444
|
-
--paper-amber-200: #ffe082;
|
|
1445
|
-
--paper-amber-300: #ffd54f;
|
|
1446
|
-
--paper-amber-400: #ffca28;
|
|
1447
|
-
--paper-amber-500: #ffc107;
|
|
1448
|
-
--paper-amber-600: #ffb300;
|
|
1449
|
-
--paper-amber-700: #ffa000;
|
|
1450
|
-
--paper-amber-800: #ff8f00;
|
|
1451
|
-
--paper-amber-900: #ff6f00;
|
|
1452
|
-
--paper-amber-a100: #ffe57f;
|
|
1453
|
-
--paper-amber-a200: #ffd740;
|
|
1454
|
-
--paper-amber-a400: #ffc400;
|
|
1455
|
-
--paper-amber-a700: #ffab00;
|
|
1456
|
-
|
|
1457
|
-
--paper-orange-50: #fff3e0;
|
|
1458
|
-
--paper-orange-100: #ffe0b2;
|
|
1459
|
-
--paper-orange-200: #ffcc80;
|
|
1460
|
-
--paper-orange-300: #ffb74d;
|
|
1461
|
-
--paper-orange-400: #ffa726;
|
|
1462
|
-
--paper-orange-500: #ff9800;
|
|
1463
|
-
--paper-orange-600: #fb8c00;
|
|
1464
|
-
--paper-orange-700: #f57c00;
|
|
1465
|
-
--paper-orange-800: #ef6c00;
|
|
1466
|
-
--paper-orange-900: #e65100;
|
|
1467
|
-
--paper-orange-a100: #ffd180;
|
|
1468
|
-
--paper-orange-a200: #ffab40;
|
|
1469
|
-
--paper-orange-a400: #ff9100;
|
|
1470
|
-
--paper-orange-a700: #ff6500;
|
|
1471
|
-
|
|
1472
|
-
--paper-deep-orange-50: #fbe9e7;
|
|
1473
|
-
--paper-deep-orange-100: #ffccbc;
|
|
1474
|
-
--paper-deep-orange-200: #ffab91;
|
|
1475
|
-
--paper-deep-orange-300: #ff8a65;
|
|
1476
|
-
--paper-deep-orange-400: #ff7043;
|
|
1477
|
-
--paper-deep-orange-500: #ff5722;
|
|
1478
|
-
--paper-deep-orange-600: #f4511e;
|
|
1479
|
-
--paper-deep-orange-700: #e64a19;
|
|
1480
|
-
--paper-deep-orange-800: #d84315;
|
|
1481
|
-
--paper-deep-orange-900: #bf360c;
|
|
1482
|
-
--paper-deep-orange-a100: #ff9e80;
|
|
1483
|
-
--paper-deep-orange-a200: #ff6e40;
|
|
1484
|
-
--paper-deep-orange-a400: #ff3d00;
|
|
1485
|
-
--paper-deep-orange-a700: #dd2c00;
|
|
1486
|
-
|
|
1487
|
-
--paper-brown-50: #efebe9;
|
|
1488
|
-
--paper-brown-100: #d7ccc8;
|
|
1489
|
-
--paper-brown-200: #bcaaa4;
|
|
1490
|
-
--paper-brown-300: #a1887f;
|
|
1491
|
-
--paper-brown-400: #8d6e63;
|
|
1492
|
-
--paper-brown-500: #795548;
|
|
1493
|
-
--paper-brown-600: #6d4c41;
|
|
1494
|
-
--paper-brown-700: #5d4037;
|
|
1495
|
-
--paper-brown-800: #4e342e;
|
|
1496
|
-
--paper-brown-900: #3e2723;
|
|
1497
|
-
|
|
1498
|
-
--paper-grey-50: #fafafa;
|
|
1499
|
-
--paper-grey-100: #f5f5f5;
|
|
1500
|
-
--paper-grey-200: #eeeeee;
|
|
1501
|
-
--paper-grey-300: #e0e0e0;
|
|
1502
|
-
--paper-grey-400: #bdbdbd;
|
|
1503
|
-
--paper-grey-500: #9e9e9e;
|
|
1504
|
-
--paper-grey-600: #757575;
|
|
1505
|
-
--paper-grey-700: #616161;
|
|
1506
|
-
--paper-grey-800: #424242;
|
|
1507
|
-
--paper-grey-900: #212121;
|
|
1508
|
-
|
|
1509
|
-
--paper-blue-grey-50: #eceff1;
|
|
1510
|
-
--paper-blue-grey-100: #cfd8dc;
|
|
1511
|
-
--paper-blue-grey-200: #b0bec5;
|
|
1512
|
-
--paper-blue-grey-300: #90a4ae;
|
|
1513
|
-
--paper-blue-grey-400: #78909c;
|
|
1514
|
-
--paper-blue-grey-500: #607d8b;
|
|
1515
|
-
--paper-blue-grey-600: #546e7a;
|
|
1516
|
-
--paper-blue-grey-700: #455a64;
|
|
1517
|
-
--paper-blue-grey-800: #37474f;
|
|
1518
|
-
--paper-blue-grey-900: #263238;
|
|
1519
|
-
|
|
1520
|
-
/* opacity for dark text on a light background */
|
|
1521
|
-
--dark-divider-opacity: 0.12;
|
|
1522
|
-
--dark-disabled-opacity: 0.38; /* or hint text or icon */
|
|
1523
|
-
--dark-secondary-opacity: 0.54;
|
|
1524
|
-
--dark-primary-opacity: 0.87;
|
|
1525
|
-
|
|
1526
|
-
/* opacity for light text on a dark background */
|
|
1527
|
-
--light-divider-opacity: 0.12;
|
|
1528
|
-
--light-disabled-opacity: 0.3; /* or hint text or icon */
|
|
1529
|
-
--light-secondary-opacity: 0.7;
|
|
1530
|
-
--light-primary-opacity: 1.0;
|
|
1531
|
-
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
</style>
|
|
1535
|
-
</custom-style>
|
|
1536
|
-
`;za.setAttribute("style","display: none;"),document.head.appendChild(za.content);
|
|
1537
|
-
/**
|
|
1538
|
-
@license
|
|
1539
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1540
|
-
This code may only be used under the BSD style license found at
|
|
1541
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1542
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1543
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1544
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1545
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1546
|
-
*/
|
|
1547
|
-
const Ia=ua`
|
|
1548
|
-
<custom-style>
|
|
1549
|
-
<style is="custom-style">
|
|
1550
|
-
html {
|
|
1551
|
-
/*
|
|
1552
|
-
* You can use these generic variables in your elements for easy theming.
|
|
1553
|
-
* For example, if all your elements use \`--primary-text-color\` as its main
|
|
1554
|
-
* color, then switching from a light to a dark theme is just a matter of
|
|
1555
|
-
* changing the value of \`--primary-text-color\` in your application.
|
|
1556
|
-
*/
|
|
1557
|
-
--primary-text-color: var(--light-theme-text-color);
|
|
1558
|
-
--primary-background-color: var(--light-theme-background-color);
|
|
1559
|
-
--secondary-text-color: var(--light-theme-secondary-color);
|
|
1560
|
-
--disabled-text-color: var(--light-theme-disabled-color);
|
|
1561
|
-
--divider-color: var(--light-theme-divider-color);
|
|
1562
|
-
--error-color: var(--paper-deep-orange-a700);
|
|
1563
|
-
|
|
1564
|
-
/*
|
|
1565
|
-
* Primary and accent colors. Also see color.js for more colors.
|
|
1566
|
-
*/
|
|
1567
|
-
--primary-color: var(--paper-indigo-500);
|
|
1568
|
-
--light-primary-color: var(--paper-indigo-100);
|
|
1569
|
-
--dark-primary-color: var(--paper-indigo-700);
|
|
1570
|
-
|
|
1571
|
-
--accent-color: var(--paper-pink-a200);
|
|
1572
|
-
--light-accent-color: var(--paper-pink-a100);
|
|
1573
|
-
--dark-accent-color: var(--paper-pink-a400);
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
/*
|
|
1577
|
-
* Material Design Light background theme
|
|
1578
|
-
*/
|
|
1579
|
-
--light-theme-background-color: #ffffff;
|
|
1580
|
-
--light-theme-base-color: #000000;
|
|
1581
|
-
--light-theme-text-color: var(--paper-grey-900);
|
|
1582
|
-
--light-theme-secondary-color: #737373; /* for secondary text and icons */
|
|
1583
|
-
--light-theme-disabled-color: #9b9b9b; /* disabled/hint text */
|
|
1584
|
-
--light-theme-divider-color: #dbdbdb;
|
|
1585
|
-
|
|
1586
|
-
/*
|
|
1587
|
-
* Material Design Dark background theme
|
|
1588
|
-
*/
|
|
1589
|
-
--dark-theme-background-color: var(--paper-grey-900);
|
|
1590
|
-
--dark-theme-base-color: #ffffff;
|
|
1591
|
-
--dark-theme-text-color: #ffffff;
|
|
1592
|
-
--dark-theme-secondary-color: #bcbcbc; /* for secondary text and icons */
|
|
1593
|
-
--dark-theme-disabled-color: #646464; /* disabled/hint text */
|
|
1594
|
-
--dark-theme-divider-color: #3c3c3c;
|
|
1595
|
-
|
|
1596
|
-
/*
|
|
1597
|
-
* Deprecated values because of their confusing names.
|
|
1598
|
-
*/
|
|
1599
|
-
--text-primary-color: var(--dark-theme-text-color);
|
|
1600
|
-
--default-primary-color: var(--primary-color);
|
|
1601
|
-
}
|
|
1602
|
-
</style>
|
|
1603
|
-
</custom-style>`;Ia.setAttribute("style","display: none;"),document.head.appendChild(Ia.content);
|
|
1604
|
-
/**
|
|
1605
|
-
@license
|
|
1606
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1607
|
-
This code may only be used under the BSD style license found at
|
|
1608
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1609
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1610
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1611
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1612
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1613
|
-
*/
|
|
1614
|
-
const Da={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},detached:function(){}};
|
|
1615
|
-
/**
|
|
1616
|
-
@license
|
|
1617
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1618
|
-
This code may only be used under the BSD style license found at
|
|
1619
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1620
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1621
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1622
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1623
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1624
|
-
*/class Ma{constructor(e){Ma[" "](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 Ma.types[e]&&Ma.types[e][t]}set value(e){var t=this.type,n=this.key;t&&n&&(t=Ma.types[t]=Ma.types[t]||{},null==e?delete t[n]:t[n]=e)}get list(){if(this.type){var e=Ma.types[this.type];return e?Object.keys(e).map((function(e){return La[this.type][e]}),this):[]}}byKey(e){return this.key=e,this.value}}Ma[" "]=function(){},Ma.types={};var La=Ma.types;Mo({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,n){var i=new Ma({type:e,key:t});return void 0!==n&&n!==i.value?i.value=n:this.value!==i.value&&(this.value=i.value),i},get list(){return this.__meta&&this.__meta.list},_selfChanged:function(e){e&&(this.value=this)},byKey:function(e){return new Ma({type:this.type,key:e}).value}});
|
|
1625
|
-
/**
|
|
1626
|
-
@license
|
|
1627
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1628
|
-
This code may only be used under the BSD style license found at
|
|
1629
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1630
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1631
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1632
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1633
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1634
|
-
*/
|
|
1635
|
-
let Fa=null;const Ba={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){Fa=new Ma({type:"validator"})},_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},get _validator(){return Fa&&Fa.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)}},Ha={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")}},$a=[Da,Ba,Ha],ja={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()}};
|
|
1636
|
-
/**
|
|
1637
|
-
@license
|
|
1638
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1639
|
-
This code may only be used under the BSD style license found at
|
|
1640
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1641
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1642
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1643
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1644
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1645
|
-
*/
|
|
1646
|
-
/**
|
|
1647
|
-
@license
|
|
1648
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1649
|
-
This code may only be used under the BSD style license found at
|
|
1650
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1651
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1652
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1653
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1654
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1655
|
-
*/
|
|
1656
|
-
var Ua={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},qa={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:"*"},Va={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},Wa=/[a-z0-9*]/,Ka=/U\+/,Ya=/^arrow/,Ga=/^space(bar)?/,Ja=/^escape$/;function Za(e,t){var n="";if(e){var i=e.toLowerCase();" "===i||Ga.test(i)?n="space":Ja.test(i)?n="esc":1==i.length?t&&!Wa.test(i)||(n=i):n=Ya.test(i)?i.replace("arrow",""):"multiply"==i?"*":i}return n}function Xa(e){var t="";return e&&(e in Ua?t=Ua[e]:Ka.test(e)?(e=parseInt(e.replace("U+","0x"),16),t=String.fromCharCode(e).toLowerCase()):t=e.toLowerCase()),t}function Qa(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):qa[e]),t}function el(e,t){return e.key?Za(e.key,t):e.detail&&e.detail.key?Za(e.detail.key,t):Xa(e.keyIdentifier)||Qa(e.keyCode)||""}function tl(e,t){return el(t,e.hasModifiers)===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey)}function nl(e){return 1===e.length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce((function(e,t){var n=t.split(":"),i=n[0],r=n[1];return i in Va?(e[Va[i]]=!0,e.hasModifiers=!0):(e.key=i,e.event=r||"keydown"),e}),{combo:e.split(":").shift()})}function il(e){return e.trim().split(" ").map((function(e){return nl(e)}))}const rl={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 n=il(t),i=0;i<n.length;++i)if(tl(n[i],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 n=e[0].hasModifiers;return n===t[0].hasModifiers?0:n?-1:1}))},_addKeyBinding:function(e,t){il(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],n=this._onKeyBindingEvent.bind(this,t);this._boundKeyHandlers.push([this.keyEventTarget,e,n]),this.keyEventTarget.addEventListener(e,n)}),this)},_unlistenKeyEventListeners:function(){for(var e,t,n,i;this._boundKeyHandlers.length;)t=(e=this._boundKeyHandlers.pop())[0],n=e[1],i=e[2],t.removeEventListener(n,i)},_onKeyBindingEvent:function(e,t){if(this.stopKeyboardEventPropagation&&t.stopPropagation(),!t.defaultPrevented)for(var n=0;n<e.length;n++){var i=e[n][0],r=e[n][1];if(tl(i,t)&&(this._triggerKeyHandler(i,r,t),t.defaultPrevented))return}},_triggerKeyHandler:function(e,t,n){var i=Object.create(e);i.keyboardEvent=n;var r=new CustomEvent(e.event,{detail:i,cancelable:!0});this[t].call(this,r),r.defaultPrevented&&n.preventDefault()}},sl={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,n=fo(t).localTarget;this.isLightDescendant(n)||(t.preventDefault(),t.stopImmediatePropagation(),this._setPressed(!0))},_spaceKeyUpHandler:function(e){var t=e.detail.keyboardEvent,n=fo(t).localTarget;this.isLightDescendant(n)||(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()}},ol=[rl,sl];
|
|
1657
|
-
/**
|
|
1658
|
-
@license
|
|
1659
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1660
|
-
This code may only be used under the BSD style license found at
|
|
1661
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1662
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1663
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1664
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1665
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1666
|
-
*/
|
|
1667
|
-
/**
|
|
1668
|
-
@license
|
|
1669
|
-
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
|
1670
|
-
This code may only be used under the BSD style license found at
|
|
1671
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1672
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1673
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1674
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1675
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1676
|
-
*/
|
|
1677
|
-
var al={distance:function(e,t,n,i){var r=e-n,s=t-i;return Math.sqrt(r*r+s*s)},now:window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now};function ll(e){this.element=e,this.width=this.boundingRect.width,this.height=this.boundingRect.height,this.size=Math.max(this.width,this.height)}function cl(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"),fo(this.waveContainer).appendChild(this.wave),this.resetInteractionState()}ll.prototype={get boundingRect(){return this.element.getBoundingClientRect()},furthestCornerDistanceFrom:function(e,t){var n=al.distance(e,t,0,0),i=al.distance(e,t,this.width,0),r=al.distance(e,t,0,this.height),s=al.distance(e,t,this.width,this.height);return Math.max(n,i,r,s)}},cl.MAX_RADIUS=300,cl.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){var e;return this.mouseDownStart?(e=al.now()-this.mouseDownStart,this.mouseUpStart&&(e-=this.mouseUpElapsed),e):0},get mouseUpElapsed(){return this.mouseUpStart?al.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,n=1.1*Math.min(Math.sqrt(e+t),cl.MAX_RADIUS)+5,i=1.1-n/cl.MAX_RADIUS*.2,r=this.mouseInteractionSeconds/i,s=n*(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,cl.MAX_RADIUS)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,cl.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 ll(this.element)},draw:function(){var e,t,n;this.wave.style.opacity=this.opacity,e=this.radius/(this.containerMetrics.size/2),t=this.xNow-this.containerMetrics.width/2,n=this.yNow-this.containerMetrics.height/2,this.waveContainer.style.webkitTransform="translate("+t+"px, "+n+"px)",this.waveContainer.style.transform="translate3d("+t+"px, "+n+"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,n=this.containerMetrics.height/2;this.resetInteractionState(),this.mouseDownStart=al.now(),this.center?(this.xStart=t,this.yStart=n,this.slideDistance=al.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=n,this.slideDistance=al.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=al.now())},remove:function(){fo(fo(this.waveContainer).parentNode).removeChild(this.waveContainer)}},Mo({_template:ua`
|
|
1678
|
-
<style>
|
|
1679
|
-
:host {
|
|
1680
|
-
display: block;
|
|
1681
|
-
position: absolute;
|
|
1682
|
-
border-radius: inherit;
|
|
1683
|
-
overflow: hidden;
|
|
1684
|
-
top: 0;
|
|
1685
|
-
left: 0;
|
|
1686
|
-
right: 0;
|
|
1687
|
-
bottom: 0;
|
|
1688
|
-
|
|
1689
|
-
/* See PolymerElements/paper-behaviors/issues/34. On non-Chrome browsers,
|
|
1690
|
-
* creating a node (with a position:absolute) in the middle of an event
|
|
1691
|
-
* handler "interrupts" that event handler (which happens when the
|
|
1692
|
-
* ripple is created on demand) */
|
|
1693
|
-
pointer-events: none;
|
|
1694
|
-
}
|
|
1695
|
-
|
|
1696
|
-
:host([animating]) {
|
|
1697
|
-
/* This resolves a rendering issue in Chrome (as of 40) where the
|
|
1698
|
-
ripple is not properly clipped by its parent (which may have
|
|
1699
|
-
rounded corners). See: http://jsbin.com/temexa/4
|
|
1700
|
-
|
|
1701
|
-
Note: We only apply this style conditionally. Otherwise, the browser
|
|
1702
|
-
will create a new compositing layer for every ripple element on the
|
|
1703
|
-
page, and that would be bad. */
|
|
1704
|
-
-webkit-transform: translate(0, 0);
|
|
1705
|
-
transform: translate3d(0, 0, 0);
|
|
1706
|
-
}
|
|
1707
|
-
|
|
1708
|
-
#background,
|
|
1709
|
-
#waves,
|
|
1710
|
-
.wave-container,
|
|
1711
|
-
.wave {
|
|
1712
|
-
pointer-events: none;
|
|
1713
|
-
position: absolute;
|
|
1714
|
-
top: 0;
|
|
1715
|
-
left: 0;
|
|
1716
|
-
width: 100%;
|
|
1717
|
-
height: 100%;
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
|
-
#background,
|
|
1721
|
-
.wave {
|
|
1722
|
-
opacity: 0;
|
|
1723
|
-
}
|
|
1724
|
-
|
|
1725
|
-
#waves,
|
|
1726
|
-
.wave {
|
|
1727
|
-
overflow: hidden;
|
|
1728
|
-
}
|
|
1729
|
-
|
|
1730
|
-
.wave-container,
|
|
1731
|
-
.wave {
|
|
1732
|
-
border-radius: 50%;
|
|
1733
|
-
}
|
|
1734
|
-
|
|
1735
|
-
:host(.circle) #background,
|
|
1736
|
-
:host(.circle) #waves {
|
|
1737
|
-
border-radius: 50%;
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1740
|
-
:host(.circle) .wave-container {
|
|
1741
|
-
overflow: hidden;
|
|
1742
|
-
}
|
|
1743
|
-
</style>
|
|
1744
|
-
|
|
1745
|
-
<div id="background"></div>
|
|
1746
|
-
<div id="waves"></div>
|
|
1747
|
-
`,is:"paper-ripple",behaviors:[rl],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==fo(this).parentNode.nodeType?this.keyEventTarget=fo(this).getOwnerRoot().host:this.keyEventTarget=fo(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 cl(this);return fo(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())}});
|
|
1748
|
-
/**
|
|
1749
|
-
@license
|
|
1750
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1751
|
-
This code may only be used under the BSD style license found at
|
|
1752
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1753
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1754
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1755
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1756
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1757
|
-
*/
|
|
1758
|
-
const hl={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},_downHandler:function(e){sl._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&&fo(t).appendChild(this._ripple),e){var n=fo(this._rippleContainer||this),i=fo(e).rootTarget;n.deepContains(i)&&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)}},dl={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(e){e&&this.ensureRipple(),this.hasRipple()&&(this._ripple.holdDown=e)},_createRipple:function(){var e=hl._createRipple();return e.id="ink",e.setAttribute("center",""),e.classList.add("circle"),e}},pl=[[ol,ja,hl,dl],$a,{_checkedChanged:function(){Ha._checkedChanged.call(this),this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},_buttonStateChanged:function(){hl._buttonStateChanged.call(this),this.disabled||this.isAttached&&(this.checked=this.active)}}],ul=ua`<style>
|
|
1759
|
-
:host {
|
|
1760
|
-
display: inline-block;
|
|
1761
|
-
white-space: nowrap;
|
|
1762
|
-
cursor: pointer;
|
|
1763
|
-
--calculated-paper-checkbox-size: var(--paper-checkbox-size, 18px);
|
|
1764
|
-
/* -1px is a sentinel for the default and is replaced in \`attached\`. */
|
|
1765
|
-
--calculated-paper-checkbox-ink-size: var(--paper-checkbox-ink-size, -1px);
|
|
1766
|
-
@apply --paper-font-common-base;
|
|
1767
|
-
line-height: 0;
|
|
1768
|
-
-webkit-tap-highlight-color: transparent;
|
|
1769
|
-
}
|
|
1770
|
-
|
|
1771
|
-
:host([hidden]) {
|
|
1772
|
-
display: none !important;
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
:host(:focus) {
|
|
1776
|
-
outline: none;
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
.hidden {
|
|
1780
|
-
display: none;
|
|
1781
|
-
}
|
|
1782
|
-
|
|
1783
|
-
#checkboxContainer {
|
|
1784
|
-
display: inline-block;
|
|
1785
|
-
position: relative;
|
|
1786
|
-
width: var(--calculated-paper-checkbox-size);
|
|
1787
|
-
height: var(--calculated-paper-checkbox-size);
|
|
1788
|
-
min-width: var(--calculated-paper-checkbox-size);
|
|
1789
|
-
margin: var(--paper-checkbox-margin, initial);
|
|
1790
|
-
vertical-align: var(--paper-checkbox-vertical-align, middle);
|
|
1791
|
-
background-color: var(--paper-checkbox-unchecked-background-color, transparent);
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
#ink {
|
|
1795
|
-
position: absolute;
|
|
1796
|
-
|
|
1797
|
-
/* Center the ripple in the checkbox by negative offsetting it by
|
|
1798
|
-
* (inkWidth - rippleWidth) / 2 */
|
|
1799
|
-
top: calc(0px - (var(--calculated-paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size)) / 2);
|
|
1800
|
-
left: calc(0px - (var(--calculated-paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size)) / 2);
|
|
1801
|
-
width: var(--calculated-paper-checkbox-ink-size);
|
|
1802
|
-
height: var(--calculated-paper-checkbox-ink-size);
|
|
1803
|
-
color: var(--paper-checkbox-unchecked-ink-color, var(--primary-text-color));
|
|
1804
|
-
opacity: 0.6;
|
|
1805
|
-
pointer-events: none;
|
|
1806
|
-
}
|
|
1807
|
-
|
|
1808
|
-
#ink:dir(rtl) {
|
|
1809
|
-
right: calc(0px - (var(--calculated-paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size)) / 2);
|
|
1810
|
-
left: auto;
|
|
1811
|
-
}
|
|
1812
|
-
|
|
1813
|
-
#ink[checked] {
|
|
1814
|
-
color: var(--paper-checkbox-checked-ink-color, var(--primary-color));
|
|
1815
|
-
}
|
|
1816
|
-
|
|
1817
|
-
#checkbox {
|
|
1818
|
-
position: relative;
|
|
1819
|
-
box-sizing: border-box;
|
|
1820
|
-
height: 100%;
|
|
1821
|
-
border: solid 2px;
|
|
1822
|
-
border-color: var(--paper-checkbox-unchecked-color, var(--primary-text-color));
|
|
1823
|
-
border-radius: 2px;
|
|
1824
|
-
pointer-events: none;
|
|
1825
|
-
-webkit-transition: background-color 140ms, border-color 140ms;
|
|
1826
|
-
transition: background-color 140ms, border-color 140ms;
|
|
1827
|
-
|
|
1828
|
-
-webkit-transition-duration: var(--paper-checkbox-animation-duration, 140ms);
|
|
1829
|
-
transition-duration: var(--paper-checkbox-animation-duration, 140ms);
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
/* checkbox checked animations */
|
|
1833
|
-
#checkbox.checked #checkmark {
|
|
1834
|
-
-webkit-animation: checkmark-expand 140ms ease-out forwards;
|
|
1835
|
-
animation: checkmark-expand 140ms ease-out forwards;
|
|
1836
|
-
|
|
1837
|
-
-webkit-animation-duration: var(--paper-checkbox-animation-duration, 140ms);
|
|
1838
|
-
animation-duration: var(--paper-checkbox-animation-duration, 140ms);
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
@-webkit-keyframes checkmark-expand {
|
|
1842
|
-
0% {
|
|
1843
|
-
-webkit-transform: scale(0, 0) rotate(45deg);
|
|
1844
|
-
}
|
|
1845
|
-
100% {
|
|
1846
|
-
-webkit-transform: scale(1, 1) rotate(45deg);
|
|
1847
|
-
}
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
@keyframes checkmark-expand {
|
|
1851
|
-
0% {
|
|
1852
|
-
transform: scale(0, 0) rotate(45deg);
|
|
1853
|
-
}
|
|
1854
|
-
100% {
|
|
1855
|
-
transform: scale(1, 1) rotate(45deg);
|
|
1856
|
-
}
|
|
1857
|
-
}
|
|
1858
|
-
|
|
1859
|
-
#checkbox.checked {
|
|
1860
|
-
background-color: var(--paper-checkbox-checked-color, var(--primary-color));
|
|
1861
|
-
border-color: var(--paper-checkbox-checked-color, var(--primary-color));
|
|
1862
|
-
}
|
|
1863
|
-
|
|
1864
|
-
#checkmark {
|
|
1865
|
-
position: absolute;
|
|
1866
|
-
width: 36%;
|
|
1867
|
-
height: 70%;
|
|
1868
|
-
border-style: solid;
|
|
1869
|
-
border-top: none;
|
|
1870
|
-
border-left: none;
|
|
1871
|
-
border-right-width: calc(2/15 * var(--calculated-paper-checkbox-size));
|
|
1872
|
-
border-bottom-width: calc(2/15 * var(--calculated-paper-checkbox-size));
|
|
1873
|
-
border-color: var(--paper-checkbox-checkmark-color, white);
|
|
1874
|
-
-webkit-transform-origin: 97% 86%;
|
|
1875
|
-
transform-origin: 97% 86%;
|
|
1876
|
-
box-sizing: content-box; /* protect against page-level box-sizing */
|
|
1877
|
-
}
|
|
1878
|
-
|
|
1879
|
-
#checkmark:dir(rtl) {
|
|
1880
|
-
-webkit-transform-origin: 50% 14%;
|
|
1881
|
-
transform-origin: 50% 14%;
|
|
1882
|
-
}
|
|
1883
|
-
|
|
1884
|
-
/* label */
|
|
1885
|
-
#checkboxLabel {
|
|
1886
|
-
position: relative;
|
|
1887
|
-
display: inline-block;
|
|
1888
|
-
vertical-align: middle;
|
|
1889
|
-
padding-left: var(--paper-checkbox-label-spacing, 8px);
|
|
1890
|
-
white-space: normal;
|
|
1891
|
-
line-height: normal;
|
|
1892
|
-
color: var(--paper-checkbox-label-color, var(--primary-text-color));
|
|
1893
|
-
@apply --paper-checkbox-label;
|
|
1894
|
-
}
|
|
1895
|
-
|
|
1896
|
-
:host([checked]) #checkboxLabel {
|
|
1897
|
-
color: var(--paper-checkbox-label-checked-color, var(--paper-checkbox-label-color, var(--primary-text-color)));
|
|
1898
|
-
@apply --paper-checkbox-label-checked;
|
|
1899
|
-
}
|
|
1900
|
-
|
|
1901
|
-
#checkboxLabel:dir(rtl) {
|
|
1902
|
-
padding-right: var(--paper-checkbox-label-spacing, 8px);
|
|
1903
|
-
padding-left: 0;
|
|
1904
|
-
}
|
|
1905
|
-
|
|
1906
|
-
#checkboxLabel[hidden] {
|
|
1907
|
-
display: none;
|
|
1908
|
-
}
|
|
1909
|
-
|
|
1910
|
-
/* disabled state */
|
|
1911
|
-
|
|
1912
|
-
:host([disabled]) #checkbox {
|
|
1913
|
-
opacity: 0.5;
|
|
1914
|
-
border-color: var(--paper-checkbox-unchecked-color, var(--primary-text-color));
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
:host([disabled][checked]) #checkbox {
|
|
1918
|
-
background-color: var(--paper-checkbox-unchecked-color, var(--primary-text-color));
|
|
1919
|
-
opacity: 0.5;
|
|
1920
|
-
}
|
|
1921
|
-
|
|
1922
|
-
:host([disabled]) #checkboxLabel {
|
|
1923
|
-
opacity: 0.65;
|
|
1924
|
-
}
|
|
1925
|
-
|
|
1926
|
-
/* invalid state */
|
|
1927
|
-
#checkbox.invalid:not(.checked) {
|
|
1928
|
-
border-color: var(--paper-checkbox-error-color, var(--error-color));
|
|
1929
|
-
}
|
|
1930
|
-
</style>
|
|
1931
|
-
|
|
1932
|
-
<div id="checkboxContainer">
|
|
1933
|
-
<div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]]">
|
|
1934
|
-
<div id="checkmark" class$="[[_computeCheckmarkClass(checked)]]"></div>
|
|
1935
|
-
</div>
|
|
1936
|
-
</div>
|
|
1937
|
-
|
|
1938
|
-
<div id="checkboxLabel"><slot></slot></div>`;
|
|
1939
|
-
/**
|
|
1940
|
-
@license
|
|
1941
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1942
|
-
This code may only be used under the BSD style license found at
|
|
1943
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1944
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1945
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1946
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1947
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1948
|
-
*/
|
|
1949
|
-
/**
|
|
1950
|
-
@license
|
|
1951
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1952
|
-
This code may only be used under the BSD style license found at
|
|
1953
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1954
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1955
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1956
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1957
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1958
|
-
*/
|
|
1959
|
-
if(ul.setAttribute("strip-whitespace",""),Mo({_template:ul,is:"paper-checkbox",behaviors:[pl],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){$s(this,(function(){if("-1px"===this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()){var e=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),t="px",n=e.match(/[A-Za-z]+$/);null!==n&&(t=n[0]);var i=parseFloat(e),r=8/3*i;"px"===t&&(r=Math.floor(r))%2!=i%2&&r++,this.updateStyles({"--paper-checkbox-ink-size":r+t})}}))},_computeCheckboxClass:function(e,t){var n="";return e&&(n+="checked "),t&&(n+="invalid"),n},_computeCheckmarkClass:function(e){return e?"":"hidden"},_createRipple:function(){return this._rippleContainer=this.$.checkboxContainer,dl._createRipple.call(this)}}),!window.polymerSkipLoadingFontRoboto){const e=document.createElement("link");e.rel="stylesheet",e.type="text/css",e.crossOrigin="anonymous",e.href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Roboto:400,300,300italic,400italic,500,500italic,700,700italic",document.head.appendChild(e)}
|
|
1960
|
-
/**
|
|
1961
|
-
@license
|
|
1962
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
1963
|
-
This code may only be used under the BSD style license found at
|
|
1964
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
1965
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
1966
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
1967
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
1968
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
1969
|
-
*/const fl=ua`<custom-style>
|
|
1970
|
-
<style is="custom-style">
|
|
1971
|
-
html {
|
|
1972
|
-
|
|
1973
|
-
/* Shared Styles */
|
|
1974
|
-
--paper-font-common-base: {
|
|
1975
|
-
font-family: 'Roboto', 'Noto', sans-serif;
|
|
1976
|
-
-webkit-font-smoothing: antialiased;
|
|
1977
|
-
};
|
|
1978
|
-
|
|
1979
|
-
--paper-font-common-code: {
|
|
1980
|
-
font-family: 'Roboto Mono', 'Consolas', 'Menlo', monospace;
|
|
1981
|
-
-webkit-font-smoothing: antialiased;
|
|
1982
|
-
};
|
|
1983
|
-
|
|
1984
|
-
--paper-font-common-expensive-kerning: {
|
|
1985
|
-
text-rendering: optimizeLegibility;
|
|
1986
|
-
};
|
|
1987
|
-
|
|
1988
|
-
--paper-font-common-nowrap: {
|
|
1989
|
-
white-space: nowrap;
|
|
1990
|
-
overflow: hidden;
|
|
1991
|
-
text-overflow: ellipsis;
|
|
1992
|
-
};
|
|
1993
|
-
|
|
1994
|
-
/* Material Font Styles */
|
|
1995
|
-
|
|
1996
|
-
--paper-font-display4: {
|
|
1997
|
-
@apply --paper-font-common-base;
|
|
1998
|
-
@apply --paper-font-common-nowrap;
|
|
1999
|
-
|
|
2000
|
-
font-size: 112px;
|
|
2001
|
-
font-weight: 300;
|
|
2002
|
-
letter-spacing: -.044em;
|
|
2003
|
-
line-height: 120px;
|
|
2004
|
-
};
|
|
2005
|
-
|
|
2006
|
-
--paper-font-display3: {
|
|
2007
|
-
@apply --paper-font-common-base;
|
|
2008
|
-
@apply --paper-font-common-nowrap;
|
|
2009
|
-
|
|
2010
|
-
font-size: 56px;
|
|
2011
|
-
font-weight: 400;
|
|
2012
|
-
letter-spacing: -.026em;
|
|
2013
|
-
line-height: 60px;
|
|
2014
|
-
};
|
|
2015
|
-
|
|
2016
|
-
--paper-font-display2: {
|
|
2017
|
-
@apply --paper-font-common-base;
|
|
2018
|
-
|
|
2019
|
-
font-size: 45px;
|
|
2020
|
-
font-weight: 400;
|
|
2021
|
-
letter-spacing: -.018em;
|
|
2022
|
-
line-height: 48px;
|
|
2023
|
-
};
|
|
2024
|
-
|
|
2025
|
-
--paper-font-display1: {
|
|
2026
|
-
@apply --paper-font-common-base;
|
|
2027
|
-
|
|
2028
|
-
font-size: 34px;
|
|
2029
|
-
font-weight: 400;
|
|
2030
|
-
letter-spacing: -.01em;
|
|
2031
|
-
line-height: 40px;
|
|
2032
|
-
};
|
|
2033
|
-
|
|
2034
|
-
--paper-font-headline: {
|
|
2035
|
-
@apply --paper-font-common-base;
|
|
2036
|
-
|
|
2037
|
-
font-size: 24px;
|
|
2038
|
-
font-weight: 400;
|
|
2039
|
-
letter-spacing: -.012em;
|
|
2040
|
-
line-height: 32px;
|
|
2041
|
-
};
|
|
2042
|
-
|
|
2043
|
-
--paper-font-title: {
|
|
2044
|
-
@apply --paper-font-common-base;
|
|
2045
|
-
@apply --paper-font-common-nowrap;
|
|
2046
|
-
|
|
2047
|
-
font-size: 20px;
|
|
2048
|
-
font-weight: 500;
|
|
2049
|
-
line-height: 28px;
|
|
2050
|
-
};
|
|
2051
|
-
|
|
2052
|
-
--paper-font-subhead: {
|
|
2053
|
-
@apply --paper-font-common-base;
|
|
2054
|
-
|
|
2055
|
-
font-size: 16px;
|
|
2056
|
-
font-weight: 400;
|
|
2057
|
-
line-height: 24px;
|
|
2058
|
-
};
|
|
2059
|
-
|
|
2060
|
-
--paper-font-body2: {
|
|
2061
|
-
@apply --paper-font-common-base;
|
|
2062
|
-
|
|
2063
|
-
font-size: 14px;
|
|
2064
|
-
font-weight: 500;
|
|
2065
|
-
line-height: 24px;
|
|
2066
|
-
};
|
|
2067
|
-
|
|
2068
|
-
--paper-font-body1: {
|
|
2069
|
-
@apply --paper-font-common-base;
|
|
2070
|
-
|
|
2071
|
-
font-size: 14px;
|
|
2072
|
-
font-weight: 400;
|
|
2073
|
-
line-height: 20px;
|
|
2074
|
-
};
|
|
2075
|
-
|
|
2076
|
-
--paper-font-caption: {
|
|
2077
|
-
@apply --paper-font-common-base;
|
|
2078
|
-
@apply --paper-font-common-nowrap;
|
|
2079
|
-
|
|
2080
|
-
font-size: 12px;
|
|
2081
|
-
font-weight: 400;
|
|
2082
|
-
letter-spacing: 0.011em;
|
|
2083
|
-
line-height: 20px;
|
|
2084
|
-
};
|
|
2085
|
-
|
|
2086
|
-
--paper-font-menu: {
|
|
2087
|
-
@apply --paper-font-common-base;
|
|
2088
|
-
@apply --paper-font-common-nowrap;
|
|
2089
|
-
|
|
2090
|
-
font-size: 13px;
|
|
2091
|
-
font-weight: 500;
|
|
2092
|
-
line-height: 24px;
|
|
2093
|
-
};
|
|
2094
|
-
|
|
2095
|
-
--paper-font-button: {
|
|
2096
|
-
@apply --paper-font-common-base;
|
|
2097
|
-
@apply --paper-font-common-nowrap;
|
|
2098
|
-
|
|
2099
|
-
font-size: 14px;
|
|
2100
|
-
font-weight: 500;
|
|
2101
|
-
letter-spacing: 0.018em;
|
|
2102
|
-
line-height: 24px;
|
|
2103
|
-
text-transform: uppercase;
|
|
2104
|
-
};
|
|
2105
|
-
|
|
2106
|
-
--paper-font-code2: {
|
|
2107
|
-
@apply --paper-font-common-code;
|
|
2108
|
-
|
|
2109
|
-
font-size: 14px;
|
|
2110
|
-
font-weight: 700;
|
|
2111
|
-
line-height: 20px;
|
|
2112
|
-
};
|
|
2113
|
-
|
|
2114
|
-
--paper-font-code1: {
|
|
2115
|
-
@apply --paper-font-common-code;
|
|
2116
|
-
|
|
2117
|
-
font-size: 14px;
|
|
2118
|
-
font-weight: 500;
|
|
2119
|
-
line-height: 20px;
|
|
2120
|
-
};
|
|
2121
|
-
|
|
2122
|
-
}
|
|
2123
|
-
|
|
2124
|
-
</style>
|
|
2125
|
-
</custom-style>`;fl.setAttribute("style","display: none;"),document.head.appendChild(fl.content);
|
|
2126
|
-
/**
|
|
2127
|
-
@license
|
|
2128
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
2129
|
-
This code may only be used under the BSD style license found at
|
|
2130
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
2131
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
2132
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
2133
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
2134
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
2135
|
-
*/
|
|
2136
|
-
const ml=document.createElement("template");ml.setAttribute("style","display: none;"),ml.innerHTML="<dom-module id=\"paper-item-shared-styles\">\n <template>\n <style>\n :host, .paper-item {\n display: block;\n position: relative;\n min-height: var(--paper-item-min-height, 48px);\n padding: 0px 16px;\n }\n\n .paper-item {\n @apply --paper-font-subhead;\n border:none;\n outline: none;\n background: white;\n width: 100%;\n text-align: left;\n }\n\n :host([hidden]), .paper-item[hidden] {\n display: none !important;\n }\n\n :host(.iron-selected), .paper-item.iron-selected {\n font-weight: var(--paper-item-selected-weight, bold);\n\n @apply --paper-item-selected;\n }\n\n :host([disabled]), .paper-item[disabled] {\n color: var(--paper-item-disabled-color, var(--disabled-text-color));\n\n @apply --paper-item-disabled;\n }\n\n :host(:focus), .paper-item:focus {\n position: relative;\n outline: 0;\n\n @apply --paper-item-focused;\n }\n\n :host(:focus):before, .paper-item:focus:before {\n @apply --layout-fit;\n\n background: currentColor;\n content: '';\n opacity: var(--dark-divider-opacity);\n pointer-events: none;\n\n @apply --paper-item-focused-before;\n }\n </style>\n </template>\n</dom-module>",document.head.appendChild(ml.content);
|
|
2137
|
-
/**
|
|
2138
|
-
@license
|
|
2139
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
2140
|
-
This code may only be used under the BSD style license found at
|
|
2141
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
2142
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
2143
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
2144
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
2145
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
2146
|
-
*/
|
|
2147
|
-
const gl=[ol,ja,{hostAttributes:{role:"option",tabindex:"0"}}];
|
|
2148
|
-
/**
|
|
2149
|
-
@license
|
|
2150
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
2151
|
-
This code may only be used under the BSD style license found at
|
|
2152
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
2153
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
2154
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
2155
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
2156
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
2157
|
-
*/
|
|
2158
|
-
Mo({_template:ua`
|
|
2159
|
-
<style include="paper-item-shared-styles">
|
|
2160
|
-
:host {
|
|
2161
|
-
@apply --layout-horizontal;
|
|
2162
|
-
@apply --layout-center;
|
|
2163
|
-
@apply --paper-font-subhead;
|
|
2164
|
-
|
|
2165
|
-
@apply --paper-item;
|
|
2166
|
-
}
|
|
2167
|
-
</style>
|
|
2168
|
-
<slot></slot>
|
|
2169
|
-
`,is:"paper-item",behaviors:[gl]}),
|
|
2170
|
-
/**
|
|
2171
|
-
@license
|
|
2172
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
2173
|
-
This code may only be used under the BSD style license found at
|
|
2174
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
2175
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
2176
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
2177
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
2178
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
2179
|
-
*/
|
|
2180
|
-
Mo({_template:ua`
|
|
2181
|
-
<style>
|
|
2182
|
-
:host {
|
|
2183
|
-
overflow: hidden; /* needed for text-overflow: ellipsis to work on ff */
|
|
2184
|
-
@apply --layout-vertical;
|
|
2185
|
-
@apply --layout-center-justified;
|
|
2186
|
-
@apply --layout-flex;
|
|
2187
|
-
}
|
|
2188
|
-
|
|
2189
|
-
:host([two-line]) {
|
|
2190
|
-
min-height: var(--paper-item-body-two-line-min-height, 72px);
|
|
2191
|
-
}
|
|
2192
|
-
|
|
2193
|
-
:host([three-line]) {
|
|
2194
|
-
min-height: var(--paper-item-body-three-line-min-height, 88px);
|
|
2195
|
-
}
|
|
2196
|
-
|
|
2197
|
-
:host > ::slotted(*) {
|
|
2198
|
-
overflow: hidden;
|
|
2199
|
-
text-overflow: ellipsis;
|
|
2200
|
-
white-space: nowrap;
|
|
2201
|
-
}
|
|
2202
|
-
|
|
2203
|
-
:host > ::slotted([secondary]) {
|
|
2204
|
-
@apply --paper-font-body1;
|
|
2205
|
-
|
|
2206
|
-
color: var(--paper-item-body-secondary-color, var(--secondary-text-color));
|
|
2207
|
-
|
|
2208
|
-
@apply --paper-item-body-secondary;
|
|
2209
|
-
}
|
|
2210
|
-
</style>
|
|
2211
|
-
|
|
2212
|
-
<slot></slot>
|
|
2213
|
-
`,is:"paper-item-body"}),
|
|
2214
|
-
/**
|
|
2215
|
-
@license
|
|
2216
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
2217
|
-
This code may only be used under the BSD style license found at
|
|
2218
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
2219
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
2220
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
2221
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
2222
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
2223
|
-
*/
|
|
2224
|
-
Mo({_template:ua`
|
|
2225
|
-
<style include="paper-item-shared-styles"></style>
|
|
2226
|
-
<style>
|
|
2227
|
-
:host {
|
|
2228
|
-
@apply --layout-horizontal;
|
|
2229
|
-
@apply --layout-center;
|
|
2230
|
-
@apply --paper-font-subhead;
|
|
2231
|
-
|
|
2232
|
-
@apply --paper-item;
|
|
2233
|
-
@apply --paper-icon-item;
|
|
2234
|
-
}
|
|
2235
|
-
|
|
2236
|
-
.content-icon {
|
|
2237
|
-
@apply --layout-horizontal;
|
|
2238
|
-
@apply --layout-center;
|
|
2239
|
-
|
|
2240
|
-
width: var(--paper-item-icon-width, 56px);
|
|
2241
|
-
@apply --paper-item-icon;
|
|
2242
|
-
}
|
|
2243
|
-
</style>
|
|
2244
|
-
|
|
2245
|
-
<div id="contentIcon" class="content-icon">
|
|
2246
|
-
<slot name="item-icon"></slot>
|
|
2247
|
-
</div>
|
|
2248
|
-
<slot></slot>
|
|
2249
|
-
`,is:"paper-icon-item",behaviors:[gl]});class _l extends ue{static get properties(){return{json:{type:Object},withDemo:{type:Boolean,attribute:"with-demo"},_demos:{type:Object}}}constructor(){super(),this.json=null,this.withDemo=!1}connectedCallback(){super.connectedCallback()}render(){if(this.json){const{tags:e}=this.json;e.sort((e,t)=>e.name.localeCompare(t.name));let t=e;return this.withDemo&&(t=e.filter(e=>e.demo)),j`
|
|
2250
|
-
${t.map(e=>j`<paper-item @click="${()=>_l._viewComponent(e)}">${e.name}</paper-item>`)}
|
|
2251
|
-
`}return j`<div>Loading ...</div>`}static get styles(){return de`
|
|
2252
|
-
:host {
|
|
2253
|
-
display: block;
|
|
2254
|
-
}
|
|
2255
|
-
`}static _viewComponent(e,t=0){document.dispatchEvent(new CustomEvent("pb-api-component",{detail:{component:e,tab:t}}))}}customElements.define("pb-components-list",_l),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).marked=t()}(void 0,(function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}function n(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function r(e,t){var i;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(i=n(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(i=e[Symbol.iterator]()).next.bind(i)}function s(e){var t={exports:{}};return e(t,t.exports),t.exports}var o=s((function(e){function t(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function n(t){e.exports.defaults=t}e.exports={defaults:t(),getDefaults:t,changeDefaults:n}})),a=/[&<>"']/,l=/[&<>"']/g,c=/[<>"']|&(?!#?\w+;)/,h=/[<>"']|&(?!#?\w+;)/g,d={"&":"&","<":"<",">":">",'"':""","'":"'"},p=function(e){return d[e]};function u(e,t){if(t){if(a.test(e))return e.replace(l,p)}else if(c.test(e))return e.replace(h,p);return e}var f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function m(e){return e.replace(f,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var g=/(^|[^\[])\^/g;function _(e,t){e=e.source||e,t=t||"";var n={replace:function(t,i){return i=(i=i.source||i).replace(g,"$1"),e=e.replace(t,i),n},getRegex:function(){return new RegExp(e,t)}};return n}var y=/[^\w:]/g,b=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(e,t,n){if(e){var i;try{i=decodeURIComponent(m(n)).replace(y,"").toLowerCase()}catch(e){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!b.test(n)&&(n=C(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}var w={},x=/^[^:]+:\/*[^/]*$/,k=/^([^:]+:)[\s\S]*$/,S=/^([^:]+:\/*[^/]*)[\s\S]*$/;function C(e,t){w[" "+e]||(x.test(e)?w[" "+e]=e+"/":w[" "+e]=T(e,"/",!0));var n=-1===(e=w[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(k,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(S,"$1")+t:e+t}function A(e){for(var t,n,i=1;i<arguments.length;i++)for(n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function P(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var i=!1,r=t;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/),i=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}function T(e,t,n){var i=e.length;if(0===i)return"";for(var r=0;r<i;){var s=e.charAt(i-r-1);if(s!==t||n){if(s===t||!n)break;r++}else r++}return e.substr(0,i-r)}function E(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,i=0,r=0;r<n;r++)if("\\"===e[r])r++;else if(e[r]===t[0])i++;else if(e[r]===t[1]&&--i<0)return r;return-1}function O(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function N(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}var R={escape:u,unescape:m,edit:_,cleanUrl:v,resolveUrl:C,noopTest:{exec:function(){}},merge:A,splitCells:P,rtrim:T,findClosingBracket:E,checkSanitizeDeprecation:O,repeatString:N},z=o.defaults,I=R.rtrim,D=R.splitCells,M=R.escape,L=R.findClosingBracket;function F(e,t,n){var i=t.href,r=t.title?M(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:i,title:r,text:s}:{type:"image",raw:n,href:i,title:r,text:M(s)}}function B(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var i=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=i.length?e.slice(i.length):e})).join("\n")}var H=function(){function e(e){this.options=e||z}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e,t){var n=this.rules.block.code.exec(e);if(n){var i=t[t.length-1];if(i&&"paragraph"===i.type)return{raw:n[0],text:n[0].trimRight()};var r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:I(r,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],i=B(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:i}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var i=I(n,"#");this.options.pedantic?n=i.trim():i&&!/ $/.test(i)||(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:D(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var i,r=n.align.length;for(i=0;i<r;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(r=n.cells.length,i=0;i<r;i++)n.cells[i]=D(n.cells[i],n.header.length);return n}}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,i,r,s,o,a,l,c,h=t[0],d=t[2],p=d.length>1,u={type:"list",raw:h,ordered:p,start:p?+d.slice(0,-1):"",loose:!1,items:[]},f=t[0].match(this.rules.block.item),m=!1,g=f.length;r=this.rules.block.listItemStart.exec(f[0]);for(var _=0;_<g;_++){if(h=n=f[_],_!==g-1){if(s=this.rules.block.listItemStart.exec(f[_+1]),this.options.pedantic?s[1].length>r[1].length:s[1].length>r[0].length||s[1].length>3){f.splice(_,2,f[_]+"\n"+f[_+1]),_--,g--;continue}(!this.options.pedantic||this.options.smartLists?s[2][s[2].length-1]!==d[d.length-1]:p===(1===s[2].length))&&(o=f.slice(_+1).join("\n"),u.raw=u.raw.substring(0,u.raw.length-o.length),_=g-1),r=s}i=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(i-=n.length,n=this.options.pedantic?n.replace(/^ {1,4}/gm,""):n.replace(new RegExp("^ {1,"+i+"}","gm"),"")),a=m||/\n\n(?!\s*$)/.test(n),_!==g-1&&(m="\n"===n.charAt(n.length-1),a||(a=m)),a&&(u.loose=!0),this.options.gfm&&(c=void 0,(l=/^\[[ xX]\] /.test(n))&&(c=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,""))),u.items.push({type:"list_item",raw:h,task:l,checked:c,loose:a,text:n})}return u}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):M(t[0]):t[0]}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:D(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var i,r=n.align.length;for(i=0;i<r;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(r=n.cells.length,i=0;i<r;i++)n.cells[i]=D(n.cells[i].replace(/^ *\| *| *\| *$/g,""),n.header.length);return n}}},t.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1]}},t.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t)return{type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1]}},t.text=function(e,t){var n=this.rules.block.text.exec(e);if(n){var i=t[t.length-1];return i&&"text"===i.type?{raw:n[0],text:n[0]}:{type:"text",raw:n[0],text:n[0]}}},t.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:M(t[1])}},t.tag=function(e,t,n){var i=this.rules.inline.tag.exec(e);if(i)return!t&&/^<a /i.test(i[0])?t=!0:t&&/^<\/a>/i.test(i[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):M(i[0]):i[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var i=I(n.slice(0,-1),"\\");if((n.length-i.length)%2==0)return}else{var r=L(t[2],"()");if(r>-1){var s=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,s).trim(),t[3]=""}}var o=t[2],a="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);l&&(o=l[1],a=l[3])}else a=t[3]?t[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(o=this.options.pedantic&&!/>$/.test(n)?o.slice(1):o.slice(1,-1)),F(t,{href:o?o.replace(this.rules.inline._escapes,"$1"):o,title:a?a.replace(this.rules.inline._escapes,"$1"):a},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(!(i=t[i.toLowerCase()])||!i.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return F(n,i,n[0])}},t.strong=function(e,t,n){void 0===n&&(n="");var i=this.rules.inline.strong.start.exec(e);if(i&&(!i[1]||i[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){t=t.slice(-1*e.length);var r,s="**"===i[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(s.lastIndex=0;null!=(i=s.exec(t));)if(r=this.rules.inline.strong.middle.exec(t.slice(0,i.index+3)))return{type:"strong",raw:e.slice(0,r[0].length),text:e.slice(2,r[0].length-2)}}},t.em=function(e,t,n){void 0===n&&(n="");var i=this.rules.inline.em.start.exec(e);if(i&&(!i[1]||i[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){t=t.slice(-1*e.length);var r,s="*"===i[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(s.lastIndex=0;null!=(i=s.exec(t));)if(r=this.rules.inline.em.middle.exec(t.slice(0,i.index+2)))return{type:"em",raw:e.slice(0,r[0].length),text:e.slice(1,r[0].length-1)}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=M(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var n,i,r=this.rules.inline.autolink.exec(e);if(r)return i="@"===r[2]?"mailto:"+(n=M(this.options.mangle?t(r[1]):r[1])):n=M(r[1]),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var i,r;if("@"===n[2])r="mailto:"+(i=M(this.options.mangle?t(n[0]):n[0]));else{var s;do{s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(s!==n[0]);i=M(n[0]),r="www."===n[1]?"http://"+i:i}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},t.inlineText=function(e,t,n){var i,r=this.rules.inline.text.exec(e);if(r)return i=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):M(r[0]):r[0]:M(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:i}},e}(),$=R.noopTest,j=R.edit,U=R.merge,q={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:$,table:$,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};q.def=j(q.def).replace("label",q._label).replace("title",q._title).getRegex(),q.bullet=/(?:[*+-]|\d{1,9}[.)])/,q.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,q.item=j(q.item,"gm").replace(/bull/g,q.bullet).getRegex(),q.listItemStart=j(/^( *)(bull)/).replace("bull",q.bullet).getRegex(),q.list=j(q.list).replace(/bull/g,q.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+q.def.source+")").getRegex(),q._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",q._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,q.html=j(q.html,"i").replace("comment",q._comment).replace("tag",q._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),q.paragraph=j(q._paragraph).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",q._tag).getRegex(),q.blockquote=j(q.blockquote).replace("paragraph",q.paragraph).getRegex(),q.normal=U({},q),q.gfm=U({},q.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),q.gfm.nptable=j(q.gfm.nptable).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",q._tag).getRegex(),q.gfm.table=j(q.gfm.table).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",q._tag).getRegex(),q.pedantic=U({},q.normal,{html:j("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",q._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:$,paragraph:j(q.normal._paragraph).replace("hr",q.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",q.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var V={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:$,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation*\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation*\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:$,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\s*punctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};V.punctuation=j(V.punctuation).replace(/punctuation/g,V._punctuation).getRegex(),V._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",V._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",V._comment=j(q._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),V.em.start=j(V.em.start).replace(/punctuation/g,V._punctuation).getRegex(),V.em.middle=j(V.em.middle).replace(/punctuation/g,V._punctuation).replace(/overlapSkip/g,V._overlapSkip).getRegex(),V.em.endAst=j(V.em.endAst,"g").replace(/punctuation/g,V._punctuation).getRegex(),V.em.endUnd=j(V.em.endUnd,"g").replace(/punctuation/g,V._punctuation).getRegex(),V.strong.start=j(V.strong.start).replace(/punctuation/g,V._punctuation).getRegex(),V.strong.middle=j(V.strong.middle).replace(/punctuation/g,V._punctuation).replace(/overlapSkip/g,V._overlapSkip).getRegex(),V.strong.endAst=j(V.strong.endAst,"g").replace(/punctuation/g,V._punctuation).getRegex(),V.strong.endUnd=j(V.strong.endUnd,"g").replace(/punctuation/g,V._punctuation).getRegex(),V.blockSkip=j(V._blockSkip,"g").getRegex(),V.overlapSkip=j(V._overlapSkip,"g").getRegex(),V._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,V._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,V._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,V.autolink=j(V.autolink).replace("scheme",V._scheme).replace("email",V._email).getRegex(),V._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,V.tag=j(V.tag).replace("comment",V._comment).replace("attribute",V._attribute).getRegex(),V._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,V._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,V._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,V.link=j(V.link).replace("label",V._label).replace("href",V._href).replace("title",V._title).getRegex(),V.reflink=j(V.reflink).replace("label",V._label).getRegex(),V.reflinkSearch=j(V.reflinkSearch,"g").replace("reflink",V.reflink).replace("nolink",V.nolink).getRegex(),V.normal=U({},V),V.pedantic=U({},V.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:j(/^!?\[(label)\]\((.*?)\)/).replace("label",V._label).getRegex(),reflink:j(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V._label).getRegex()}),V.gfm=U({},V.normal,{escape:j(V.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),V.gfm.url=j(V.gfm.url,"i").replace("email",V.gfm._extended_email).getRegex(),V.breaks=U({},V.gfm,{br:j(V.br).replace("{2,}","*").getRegex(),text:j(V.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var W={block:q,inline:V},K=o.defaults,Y=W.block,G=W.inline,J=R.repeatString;function Z(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function X(e){var t,n,i="",r=e.length;for(t=0;t<r;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}var Q=function(){function e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||K,this.options.tokenizer=this.options.tokenizer||new H,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:Y.normal,inline:G.normal};this.options.pedantic?(t.block=Y.pedantic,t.inline=G.pedantic):this.options.gfm&&(t.block=Y.gfm,this.options.breaks?t.inline=G.breaks:t.inline=G.gfm),this.tokenizer.rules=t}e.lex=function(t,n){return new e(n).lex(t)},e.lexInline=function(t,n){return new e(n).inlineTokens(t)};var n=e.prototype;return n.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},n.blockTokens=function(e,t,n){var i,r,s,o;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&t.push(i);else if(i=this.tokenizer.code(e,t))e=e.substring(i.raw.length),i.type?t.push(i):((o=t[t.length-1]).raw+="\n"+i.raw,o.text+="\n"+i.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.nptable(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),i.tokens=this.blockTokens(i.text,[],n),t.push(i);else if(i=this.tokenizer.list(e)){for(e=e.substring(i.raw.length),s=i.items.length,r=0;r<s;r++)i.items[r].tokens=this.blockTokens(i.items[r].text,[],!1);t.push(i)}else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(n&&(i=this.tokenizer.def(e)))e=e.substring(i.raw.length),this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(n&&(i=this.tokenizer.paragraph(e)))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.text(e,t))e=e.substring(i.raw.length),i.type?t.push(i):((o=t[t.length-1]).raw+="\n"+i.raw,o.text+="\n"+i.text);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return t},n.inline=function(e){var t,n,i,r,s,o,a=e.length;for(t=0;t<a;t++)switch((o=e[t]).type){case"paragraph":case"text":case"heading":o.tokens=[],this.inlineTokens(o.text,o.tokens);break;case"table":for(o.tokens={header:[],cells:[]},r=o.header.length,n=0;n<r;n++)o.tokens.header[n]=[],this.inlineTokens(o.header[n],o.tokens.header[n]);for(r=o.cells.length,n=0;n<r;n++)for(s=o.cells[n],o.tokens.cells[n]=[],i=0;i<s.length;i++)o.tokens.cells[n][i]=[],this.inlineTokens(s[i],o.tokens.cells[n][i]);break;case"blockquote":this.inline(o.tokens);break;case"list":for(r=o.items.length,n=0;n<r;n++)this.inline(o.items[n].tokens)}return e},n.inlineTokens=function(e,t,n,i){var r;void 0===t&&(t=[]),void 0===n&&(n=!1),void 0===i&&(i=!1);var s,o,a,l=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,s.index)+"["+J("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,s.index)+"["+J("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;e;)if(o||(a=""),o=!1,r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e,n,i))e=e.substring(r.raw.length),n=r.inLink,i=r.inRawBlock,t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),t.push(r);else if(r=this.tokenizer.strong(e,l,a))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.em(e,l,a))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.autolink(e,X))e=e.substring(r.raw.length),t.push(r);else if(n||!(r=this.tokenizer.url(e,X))){if(r=this.tokenizer.inlineText(e,i,Z))e=e.substring(r.raw.length),a=r.raw.slice(-1),o=!0,t.push(r);else if(e){var h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}throw new Error(h)}}else e=e.substring(r.raw.length),t.push(r);return t},t(e,null,[{key:"rules",get:function(){return{block:Y,inline:G}}}]),e}(),ee=o.defaults,te=R.cleanUrl,ne=R.escape,ie=function(){function e(e){this.options=e||ee}var t=e.prototype;return t.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,i);null!=r&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",i?'<pre><code class="'+this.options.langPrefix+ne(i,!0)+'">'+(n?e:ne(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:ne(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,n,i){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+i.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+i+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,n){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return n;var i='<a href="'+ne(e)+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>"},t.image=function(e,t,n){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return n;var i='<img src="'+e+'" alt="'+n+'"';return t&&(i+=' title="'+t+'"'),i+=this.options.xhtml?"/>":">"},t.text=function(e){return e},e}(),re=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),se=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do{n=e+"-"+ ++i}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),oe=o.defaults,ae=R.unescape,le=function(){function e(e){this.options=e||oe,this.options.renderer=this.options.renderer||new ie,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new re,this.slugger=new se}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,i,r,s,o,a,l,c,h,d,p,u,f,m,g,_,y,b,v="",w=e.length;for(n=0;n<w;n++)switch((d=e[n]).type){case"space":continue;case"hr":v+=this.renderer.hr();continue;case"heading":v+=this.renderer.heading(this.parseInline(d.tokens),d.depth,ae(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":v+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(c="",l="",s=d.header.length,i=0;i<s;i++)l+=this.renderer.tablecell(this.parseInline(d.tokens.header[i]),{header:!0,align:d.align[i]});for(c+=this.renderer.tablerow(l),h="",s=d.cells.length,i=0;i<s;i++){for(l="",o=(a=d.tokens.cells[i]).length,r=0;r<o;r++)l+=this.renderer.tablecell(this.parseInline(a[r]),{header:!1,align:d.align[r]});h+=this.renderer.tablerow(l)}v+=this.renderer.table(c,h);continue;case"blockquote":h=this.parse(d.tokens),v+=this.renderer.blockquote(h);continue;case"list":for(p=d.ordered,u=d.start,f=d.loose,s=d.items.length,h="",i=0;i<s;i++)_=(g=d.items[i]).checked,y=g.task,m="",g.task&&(b=this.renderer.checkbox(_),f?g.tokens.length>0&&"text"===g.tokens[0].type?(g.tokens[0].text=b+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=b+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:b}):m+=b),m+=this.parse(g.tokens,f),h+=this.renderer.listitem(m,y,_);v+=this.renderer.list(h,p,u);continue;case"html":v+=this.renderer.html(d.text);continue;case"paragraph":v+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(h=d.tokens?this.parseInline(d.tokens):d.text;n+1<w&&"text"===e[n+1].type;)h+="\n"+((d=e[++n]).tokens?this.parseInline(d.tokens):d.text);v+=t?this.renderer.paragraph(h):h;continue;default:var x='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void console.error(x);throw new Error(x)}return v},t.parseInline=function(e,t){t=t||this.renderer;var n,i,r="",s=e.length;for(n=0;n<s;n++)switch((i=e[n]).type){case"escape":r+=t.text(i.text);break;case"html":r+=t.html(i.text);break;case"link":r+=t.link(i.href,i.title,this.parseInline(i.tokens,t));break;case"image":r+=t.image(i.href,i.title,i.text);break;case"strong":r+=t.strong(this.parseInline(i.tokens,t));break;case"em":r+=t.em(this.parseInline(i.tokens,t));break;case"codespan":r+=t.codespan(i.text);break;case"br":r+=t.br();break;case"del":r+=t.del(this.parseInline(i.tokens,t));break;case"text":r+=t.text(i.text);break;default:var o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return void console.error(o);throw new Error(o)}return r},e}(),ce=R.merge,he=R.checkSanitizeDeprecation,de=R.escape,pe=o.getDefaults,ue=o.changeDefaults,fe=o.defaults;function me(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),t=ce({},me.defaults,t||{}),he(t),n){var i,r=t.highlight;try{i=Q.lex(e,t)}catch(e){return n(e)}var s=function(e){var s;if(!e)try{s=le.parse(i,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,s)};if(!r||r.length<3)return s();if(delete t.highlight,!i.length)return s();var o=0;return me.walkTokens(i,(function(e){"code"===e.type&&(o++,setTimeout((function(){r(e.text,e.lang,(function(t,n){if(t)return s(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0===--o&&s()}))}),0))})),void(0===o&&s())}try{var a=Q.lex(e,t);return t.walkTokens&&me.walkTokens(a,t.walkTokens),le.parse(a,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+de(e.message+"",!0)+"</pre>";throw e}}return me.options=me.setOptions=function(e){return ce(me.defaults,e),ue(me.defaults),me},me.getDefaults=pe,me.defaults=fe,me.use=function(e){var t=ce({},e);if(e.renderer&&function(){var n=me.defaults.renderer||new ie,i=function(t){var i=n[t];n[t]=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a=e.renderer[t].apply(n,s);return!1===a&&(a=i.apply(n,s)),a}};for(var r in e.renderer)i(r);t.renderer=n}(),e.tokenizer&&function(){var n=me.defaults.tokenizer||new H,i=function(t){var i=n[t];n[t]=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a=e.tokenizer[t].apply(n,s);return!1===a&&(a=i.apply(n,s)),a}};for(var r in e.tokenizer)i(r);t.tokenizer=n}(),e.walkTokens){var n=me.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens(t),n&&n(t)}}me.setOptions(t)},me.walkTokens=function(e,t){for(var n,i=r(e);!(n=i()).done;){var s=n.value;switch(t(s),s.type){case"table":for(var o,a=r(s.tokens.header);!(o=a()).done;){var l=o.value;me.walkTokens(l,t)}for(var c,h=r(s.tokens.cells);!(c=h()).done;)for(var d,p=r(c.value);!(d=p()).done;){var u=d.value;me.walkTokens(u,t)}break;case"list":me.walkTokens(s.items,t);break;default:s.tokens&&me.walkTokens(s.tokens,t)}}},me.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=ce({},me.defaults,t||{}),he(t);try{var n=Q.lexInline(e,t);return t.walkTokens&&me.walkTokens(n,t.walkTokens),le.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+de(e.message+"",!0)+"</pre>";throw e}},me.Parser=le,me.parser=le.parse,me.Renderer=ie,me.TextRenderer=re,me.Lexer=Q,me.lexer=Q.lex,me.Tokenizer=H,me.Slugger=se,me.parse=me,me}));
|
|
2256
|
-
/**
|
|
2257
|
-
* @license
|
|
2258
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2259
|
-
* This code may only be used under the BSD style license found at
|
|
2260
|
-
* http://polymer.github.io/LICENSE.txt
|
|
2261
|
-
* The complete set of authors may be found at
|
|
2262
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
2263
|
-
* The complete set of contributors may be found at
|
|
2264
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
2265
|
-
* Code distributed by Google as part of the polymer project is also
|
|
2266
|
-
* subject to an additional IP rights grant found at
|
|
2267
|
-
* http://polymer.github.io/PATENTS.txt
|
|
2268
|
-
*/
|
|
2269
|
-
const yl=new WeakMap,bl=_(e=>t=>{if(!(t instanceof E))throw new Error("unsafeHTML can only be used in text bindings");const n=yl.get(t);if(void 0!==n&&C(e)&&e===n.value&&t.value===n.fragment)return;const i=document.createElement("template");i.innerHTML=e;const r=document.importNode(i.content,!0);t.setValue(r),yl.set(t,{value:e,fragment:r})});class vl extends HTMLElement{static get version(){return"1.6.1"}}customElements.define("vaadin-lumo-styles",vl);const wl=document.createElement("template");wl.innerHTML='<custom-style>\n <style>\n html {\n /* Base (background) */\n --lumo-base-color: #FFF;\n\n /* Tint */\n --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);\n --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);\n --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);\n --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);\n --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);\n --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);\n --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);\n --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);\n --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);\n --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);\n --lumo-tint: #FFF;\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);\n --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);\n --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);\n --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);\n --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);\n --lumo-shade-50pct: hsla(214, 45%, 20%, 0.5);\n --lumo-shade-60pct: hsla(214, 43%, 19%, 0.61);\n --lumo-shade-70pct: hsla(214, 42%, 18%, 0.72);\n --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);\n --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);\n --lumo-shade: hsl(214, 35%, 15%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-shade-5pct);\n --lumo-contrast-10pct: var(--lumo-shade-10pct);\n --lumo-contrast-20pct: var(--lumo-shade-20pct);\n --lumo-contrast-30pct: var(--lumo-shade-30pct);\n --lumo-contrast-40pct: var(--lumo-shade-40pct);\n --lumo-contrast-50pct: var(--lumo-shade-50pct);\n --lumo-contrast-60pct: var(--lumo-shade-60pct);\n --lumo-contrast-70pct: var(--lumo-shade-70pct);\n --lumo-contrast-80pct: var(--lumo-shade-80pct);\n --lumo-contrast-90pct: var(--lumo-shade-90pct);\n --lumo-contrast: var(--lumo-shade);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 90%, 52%);\n --lumo-primary-color-50pct: hsla(214, 90%, 52%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 52%, 0.1);\n --lumo-primary-text-color: var(--lumo-primary-color);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 100%, 61%);\n --lumo-error-color-50pct: hsla(3, 100%, 60%, 0.5);\n --lumo-error-color-10pct: hsla(3, 100%, 60%, 0.1);\n --lumo-error-text-color: hsl(3, 92%, 53%);\n --lumo-error-contrast-color: #FFF;\n\n /* Success */\n --lumo-success-color: hsl(145, 80%, 42%); /* hsl(144,82%,37%); */\n --lumo-success-color-50pct: hsla(145, 76%, 44%, 0.55);\n --lumo-success-color-10pct: hsla(145, 76%, 44%, 0.12);\n --lumo-success-text-color: hsl(145, 100%, 32%);\n --lumo-success-contrast-color: #FFF;\n }\n </style>\n</custom-style><dom-module id="lumo-color">\n <template>\n <style>\n [theme~="dark"] {\n /* Base (background) */\n --lumo-base-color: hsl(214, 35%, 21%);\n\n /* Tint */\n --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);\n --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);\n --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);\n --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);\n --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);\n --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);\n --lumo-tint-60pct: hsla(214, 82%, 90%, 0.6);\n --lumo-tint-70pct: hsla(214, 87%, 92%, 0.7);\n --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);\n --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);\n --lumo-tint: hsl(214, 100%, 98%);\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);\n --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);\n --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);\n --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);\n --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);\n --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);\n --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);\n --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);\n --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);\n --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);\n --lumo-shade: hsl(214, 33%, 13%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-tint-5pct);\n --lumo-contrast-10pct: var(--lumo-tint-10pct);\n --lumo-contrast-20pct: var(--lumo-tint-20pct);\n --lumo-contrast-30pct: var(--lumo-tint-30pct);\n --lumo-contrast-40pct: var(--lumo-tint-40pct);\n --lumo-contrast-50pct: var(--lumo-tint-50pct);\n --lumo-contrast-60pct: var(--lumo-tint-60pct);\n --lumo-contrast-70pct: var(--lumo-tint-70pct);\n --lumo-contrast-80pct: var(--lumo-tint-80pct);\n --lumo-contrast-90pct: var(--lumo-tint-90pct);\n --lumo-contrast: var(--lumo-tint);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 86%, 55%);\n --lumo-primary-color-50pct: hsla(214, 86%, 55%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 63%, 0.1);\n --lumo-primary-text-color: hsl(214, 100%, 70%);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 90%, 63%);\n --lumo-error-color-50pct: hsla(3, 90%, 63%, 0.5);\n --lumo-error-color-10pct: hsla(3, 90%, 63%, 0.1);\n --lumo-error-text-color: hsl(3, 100%, 67%);\n\n /* Success */\n --lumo-success-color: hsl(145, 65%, 42%);\n --lumo-success-color-50pct: hsla(145, 65%, 42%, 0.5);\n --lumo-success-color-10pct: hsla(145, 65%, 42%, 0.1);\n --lumo-success-text-color: hsl(145, 85%, 47%);\n }\n\n html {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n [theme~="dark"] {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n color: var(--lumo-header-text-color);\n }\n\n a {\n color: var(--lumo-primary-text-color);\n }\n\n blockquote {\n color: var(--lumo-secondary-text-color);\n }\n\n code,\n pre {\n background-color: var(--lumo-contrast-10pct);\n border-radius: var(--lumo-border-radius-m);\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-color-legacy">\n <template>\n <style include="lumo-color">\n :host {\n color: var(--lumo-body-text-color) !important;\n background-color: var(--lumo-base-color) !important;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(wl.content);const xl=document.createElement("template");xl.innerHTML="<custom-style>\n <style>\n html {\n --lumo-size-xs: 1.625rem;\n --lumo-size-s: 1.875rem;\n --lumo-size-m: 2.25rem;\n --lumo-size-l: 2.75rem;\n --lumo-size-xl: 3.5rem;\n\n /* Icons */\n --lumo-icon-size-s: 1.25em;\n --lumo-icon-size-m: 1.5em;\n --lumo-icon-size-l: 2.25em;\n /* For backwards compatibility */\n --lumo-icon-size: var(--lumo-icon-size-m);\n }\n </style>\n</custom-style>",document.head.appendChild(xl.content);const kl=document.createElement("template");kl.innerHTML="<custom-style>\n <style>\n html {\n /* Border radius */\n --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */\n --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */\n --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */\n --lumo-border-radius: 0.25em; /* Deprecated */\n\n /* Shadow */\n --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);\n --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);\n --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);\n --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);\n --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);\n\n /* Clickable element cursor */\n --lumo-clickable-cursor: default;\n }\n </style>\n</custom-style>",document.head.appendChild(kl.content);const Sl=document.createElement("template");Sl.innerHTML='<custom-style>\n <style>\n html {\n /* Font families */\n --lumo-font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n\n /* Font sizes */\n --lumo-font-size-xxs: .75rem;\n --lumo-font-size-xs: .8125rem;\n --lumo-font-size-s: .875rem;\n --lumo-font-size-m: 1rem;\n --lumo-font-size-l: 1.125rem;\n --lumo-font-size-xl: 1.375rem;\n --lumo-font-size-xxl: 1.75rem;\n --lumo-font-size-xxxl: 2.5rem;\n\n /* Line heights */\n --lumo-line-height-xs: 1.25;\n --lumo-line-height-s: 1.375;\n --lumo-line-height-m: 1.625;\n }\n\n </style>\n</custom-style><dom-module id="lumo-typography">\n <template>\n <style>\n html {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n /* Can’t combine with the above selector because that doesn’t work in browsers without native shadow dom */\n :host {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n small,\n [theme~="font-size-s"] {\n font-size: var(--lumo-font-size-s);\n line-height: var(--lumo-line-height-s);\n }\n\n [theme~="font-size-xs"] {\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: 600;\n line-height: var(--lumo-line-height-xs);\n margin-top: 1.25em;\n }\n\n h1 {\n font-size: var(--lumo-font-size-xxxl);\n margin-bottom: 0.75em;\n }\n\n h2 {\n font-size: var(--lumo-font-size-xxl);\n margin-bottom: 0.5em;\n }\n\n h3 {\n font-size: var(--lumo-font-size-xl);\n margin-bottom: 0.5em;\n }\n\n h4 {\n font-size: var(--lumo-font-size-l);\n margin-bottom: 0.5em;\n }\n\n h5 {\n font-size: var(--lumo-font-size-m);\n margin-bottom: 0.25em;\n }\n\n h6 {\n font-size: var(--lumo-font-size-xs);\n margin-bottom: 0;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n }\n\n p,\n blockquote {\n margin-top: 0.5em;\n margin-bottom: 0.75em;\n }\n\n a {\n text-decoration: none;\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n hr {\n display: block;\n align-self: stretch;\n height: 1px;\n border: 0;\n padding: 0;\n margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);\n background-color: var(--lumo-contrast-10pct);\n }\n\n blockquote {\n border-left: 2px solid var(--lumo-contrast-30pct);\n }\n\n b,\n strong {\n font-weight: 600;\n }\n\n /* RTL specific styles */\n\n blockquote[dir="rtl"] {\n border-left: none;\n border-right: 2px solid var(--lumo-contrast-30pct);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(Sl.content);const Cl=ua`<dom-module id="lumo-tab" theme-for="vaadin-tab">
|
|
2270
|
-
<template>
|
|
2271
|
-
<style>
|
|
2272
|
-
:host {
|
|
2273
|
-
box-sizing: border-box;
|
|
2274
|
-
padding: 0.5rem 0.75rem;
|
|
2275
|
-
font-family: var(--lumo-font-family);
|
|
2276
|
-
font-size: var(--lumo-font-size-m);
|
|
2277
|
-
line-height: var(--lumo-line-height-xs);
|
|
2278
|
-
font-weight: 500;
|
|
2279
|
-
opacity: 1;
|
|
2280
|
-
color: var(--lumo-contrast-60pct);
|
|
2281
|
-
transition: 0.15s color, 0.2s transform;
|
|
2282
|
-
flex-shrink: 0;
|
|
2283
|
-
display: flex;
|
|
2284
|
-
align-items: center;
|
|
2285
|
-
position: relative;
|
|
2286
|
-
cursor: pointer;
|
|
2287
|
-
transform-origin: 50% 100%;
|
|
2288
|
-
outline: none;
|
|
2289
|
-
-webkit-font-smoothing: antialiased;
|
|
2290
|
-
-moz-osx-font-smoothing: grayscale;
|
|
2291
|
-
overflow: hidden;
|
|
2292
|
-
min-width: var(--lumo-size-m);
|
|
2293
|
-
-webkit-user-select: none;
|
|
2294
|
-
-moz-user-select: none;
|
|
2295
|
-
-ms-user-select: none;
|
|
2296
|
-
user-select: none;
|
|
2297
|
-
}
|
|
2298
|
-
|
|
2299
|
-
:host(:not([orientation="vertical"])) {
|
|
2300
|
-
text-align: center;
|
|
2301
|
-
}
|
|
2302
|
-
|
|
2303
|
-
:host([orientation="vertical"]) {
|
|
2304
|
-
transform-origin: 0% 50%;
|
|
2305
|
-
padding: 0.25rem 1rem;
|
|
2306
|
-
min-height: var(--lumo-size-m);
|
|
2307
|
-
min-width: 0;
|
|
2308
|
-
}
|
|
2309
|
-
|
|
2310
|
-
:host(:hover),
|
|
2311
|
-
:host([focus-ring]) {
|
|
2312
|
-
color: var(--lumo-body-text-color);
|
|
2313
|
-
}
|
|
2314
|
-
|
|
2315
|
-
:host([selected]) {
|
|
2316
|
-
color: var(--lumo-primary-text-color);
|
|
2317
|
-
transition: 0.6s color;
|
|
2318
|
-
}
|
|
2319
|
-
|
|
2320
|
-
:host([active]:not([selected])) {
|
|
2321
|
-
color: var(--lumo-primary-text-color);
|
|
2322
|
-
transition-duration: 0.1s;
|
|
2323
|
-
}
|
|
2324
|
-
|
|
2325
|
-
:host::before,
|
|
2326
|
-
:host::after {
|
|
2327
|
-
content: "";
|
|
2328
|
-
position: absolute;
|
|
2329
|
-
display: var(--_lumo-tab-marker-display, block);
|
|
2330
|
-
bottom: 0;
|
|
2331
|
-
left: 50%;
|
|
2332
|
-
width: var(--lumo-size-s);
|
|
2333
|
-
height: 2px;
|
|
2334
|
-
background-color: var(--lumo-contrast-60pct);
|
|
2335
|
-
border-radius: var(--lumo-border-radius) var(--lumo-border-radius) 0 0;
|
|
2336
|
-
transform: translateX(-50%) scale(0);
|
|
2337
|
-
transform-origin: 50% 100%;
|
|
2338
|
-
transition: 0.14s transform cubic-bezier(.12, .32, .54, 1);
|
|
2339
|
-
will-change: transform;
|
|
2340
|
-
}
|
|
2341
|
-
|
|
2342
|
-
:host([selected])::before,
|
|
2343
|
-
:host([selected])::after {
|
|
2344
|
-
background-color: var(--lumo-primary-color);
|
|
2345
|
-
}
|
|
2346
|
-
|
|
2347
|
-
:host([orientation="vertical"])::before,
|
|
2348
|
-
:host([orientation="vertical"])::after {
|
|
2349
|
-
left: 0;
|
|
2350
|
-
bottom: 50%;
|
|
2351
|
-
transform: translateY(50%) scale(0);
|
|
2352
|
-
width: 2px;
|
|
2353
|
-
height: var(--lumo-size-xs);
|
|
2354
|
-
border-radius: 0 var(--lumo-border-radius) var(--lumo-border-radius) 0;
|
|
2355
|
-
transform-origin: 100% 50%;
|
|
2356
|
-
}
|
|
2357
|
-
|
|
2358
|
-
:host::after {
|
|
2359
|
-
box-shadow: 0 0 0 4px var(--lumo-primary-color);
|
|
2360
|
-
opacity: 0.15;
|
|
2361
|
-
transition: 0.15s 0.02s transform, 0.8s 0.17s opacity;
|
|
2362
|
-
}
|
|
2363
|
-
|
|
2364
|
-
:host([selected])::before,
|
|
2365
|
-
:host([selected])::after {
|
|
2366
|
-
transform: translateX(-50%) scale(1);
|
|
2367
|
-
transition-timing-function: cubic-bezier(.12, .32, .54, 1.5);
|
|
2368
|
-
}
|
|
2369
|
-
|
|
2370
|
-
:host([orientation="vertical"][selected])::before,
|
|
2371
|
-
:host([orientation="vertical"][selected])::after {
|
|
2372
|
-
transform: translateY(50%) scale(1);
|
|
2373
|
-
}
|
|
2374
|
-
|
|
2375
|
-
:host([selected]:not([active]))::after {
|
|
2376
|
-
opacity: 0;
|
|
2377
|
-
}
|
|
2378
|
-
|
|
2379
|
-
:host(:not([orientation="vertical"])) ::slotted(a[href]) {
|
|
2380
|
-
justify-content: center;
|
|
2381
|
-
}
|
|
2382
|
-
|
|
2383
|
-
:host ::slotted(a) {
|
|
2384
|
-
display: flex;
|
|
2385
|
-
width: 100%;
|
|
2386
|
-
align-items: center;
|
|
2387
|
-
height: 100%;
|
|
2388
|
-
margin: -0.5rem -0.75rem;
|
|
2389
|
-
padding: 0.5rem 0.75rem;
|
|
2390
|
-
outline: none;
|
|
2391
|
-
|
|
2392
|
-
/*
|
|
2393
|
-
Override the CSS inherited from \`lumo-color\` and \`lumo-typography\`.
|
|
2394
|
-
Note: \`!important\` is needed because of the \`:slotted\` specificity.
|
|
2395
|
-
*/
|
|
2396
|
-
text-decoration: none !important;
|
|
2397
|
-
color: inherit !important;
|
|
2398
|
-
}
|
|
2399
|
-
|
|
2400
|
-
:host ::slotted(iron-icon) {
|
|
2401
|
-
margin: 0 4px;
|
|
2402
|
-
width: var(--lumo-icon-size-m);
|
|
2403
|
-
height: var(--lumo-icon-size-m);
|
|
2404
|
-
}
|
|
2405
|
-
|
|
2406
|
-
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
2407
|
-
:host ::slotted(iron-icon[icon^="vaadin:"]) {
|
|
2408
|
-
padding: 0.25rem;
|
|
2409
|
-
box-sizing: border-box !important;
|
|
2410
17
|
}
|
|
2411
18
|
|
|
2412
|
-
|
|
2413
|
-
|
|
19
|
+
.component-list {
|
|
20
|
+
list-style: none;
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 0;
|
|
2414
23
|
}
|
|
2415
24
|
|
|
2416
|
-
|
|
2417
|
-
margin-
|
|
25
|
+
li + li {
|
|
26
|
+
margin-top: 4px;
|
|
2418
27
|
}
|
|
2419
28
|
|
|
2420
|
-
|
|
29
|
+
.component-item {
|
|
30
|
+
width: 100%;
|
|
2421
31
|
display: flex;
|
|
2422
|
-
flex-direction: column;
|
|
2423
|
-
align-items: center;
|
|
2424
|
-
justify-content: space-around;
|
|
2425
|
-
text-align: center;
|
|
2426
|
-
padding-bottom: 0.5rem;
|
|
2427
|
-
padding-top: 0.25rem;
|
|
2428
|
-
}
|
|
2429
|
-
|
|
2430
|
-
:host([theme~="icon-on-top"]) ::slotted(a) {
|
|
2431
|
-
flex-direction: column;
|
|
2432
32
|
align-items: center;
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
:host([disabled]) {
|
|
2444
|
-
pointer-events: none;
|
|
2445
|
-
opacity: 1;
|
|
2446
|
-
color: var(--lumo-disabled-text-color);
|
|
2447
|
-
}
|
|
2448
|
-
|
|
2449
|
-
/* Focus-ring */
|
|
2450
|
-
|
|
2451
|
-
:host([focus-ring]) {
|
|
2452
|
-
box-shadow: inset 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
2453
|
-
border-radius: var(--lumo-border-radius);
|
|
2454
|
-
}
|
|
2455
|
-
|
|
2456
|
-
/* RTL specific styles */
|
|
2457
|
-
|
|
2458
|
-
:host([dir="rtl"])::before,
|
|
2459
|
-
:host([dir="rtl"])::after {
|
|
2460
|
-
left: auto;
|
|
2461
|
-
right: 50%;
|
|
2462
|
-
transform: translateX(50%) scale(0);
|
|
2463
|
-
}
|
|
2464
|
-
|
|
2465
|
-
:host([dir="rtl"][selected]:not([orientation="vertical"]))::before,
|
|
2466
|
-
:host([dir="rtl"][selected]:not([orientation="vertical"]))::after {
|
|
2467
|
-
transform: translateX(50%) scale(1);
|
|
2468
|
-
}
|
|
2469
|
-
|
|
2470
|
-
:host([dir="rtl"]) ::slotted(iron-icon:first-child) {
|
|
2471
|
-
margin-right: 0;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
gap: 0.5rem;
|
|
35
|
+
padding: 0.5rem 0.75rem;
|
|
36
|
+
border: none;
|
|
37
|
+
border-radius: 6px;
|
|
38
|
+
background: transparent;
|
|
39
|
+
font: inherit;
|
|
40
|
+
text-align: left;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
transition: background-color 120ms ease, color 120ms ease;
|
|
2472
43
|
}
|
|
2473
44
|
|
|
2474
|
-
|
|
2475
|
-
|
|
45
|
+
.component-item:hover,
|
|
46
|
+
.component-item:focus-visible {
|
|
47
|
+
background-color: rgba(33, 150, 243, 0.12);
|
|
48
|
+
outline: none;
|
|
2476
49
|
}
|
|
2477
50
|
|
|
2478
|
-
|
|
2479
|
-
|
|
51
|
+
.component-name {
|
|
52
|
+
flex: 1 1 auto;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
white-space: nowrap;
|
|
2480
56
|
}
|
|
2481
57
|
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
/**
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
*/;class El{static detectScrollType(){const e=document.createElement("div");e.textContent="ABCD",e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e);let t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=2,e.scrollLeft<2&&(t="negative")),document.body.removeChild(e),t}static getNormalizedScrollLeft(e,t,n){const{scrollLeft:i}=n;if("rtl"!==t||!e)return i;switch(e){case"negative":return n.scrollWidth-n.clientWidth+i;case"reverse":return n.scrollWidth-n.clientWidth-i}return i}static setNormalizedScrollLeft(e,t,n,i){if("rtl"===t&&e)switch(e){case"negative":n.scrollLeft=n.clientWidth-n.scrollWidth+i;break;case"reverse":n.scrollLeft=n.scrollWidth-n.clientWidth-i;break;default:n.scrollLeft=i}else n.scrollLeft=i}}const Ol=[];let Nl;new MutationObserver((function(){const e=zl();Ol.forEach(t=>{Rl(t,e)})})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Rl=function(e,t){t?e.setAttribute("dir",t):e.removeAttribute("dir")},zl=function(){return document.documentElement.getAttribute("dir")},Il=e=>class extends e{static get properties(){return{dir:{type:String,readOnly:!0}}}static finalize(){super.finalize(),Nl||(Nl=El.detectScrollType())}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")||(this.__subscribe(),Rl(this,zl()))}attributeChangedCallback(e,t,n){if(super.attributeChangedCallback(e,t,n),"dir"!==e)return;const i=n===zl()&&-1===Ol.indexOf(this),r=!n&&t&&-1===Ol.indexOf(this),s=n!==zl()&&t===zl();i||r?(this.__subscribe(),Rl(this,zl())):s&&this.__subscribe(!1)}disconnectedCallback(){super.disconnectedCallback(),this.__subscribe(!1),this.removeAttribute("dir")}__subscribe(e=!0){e?-1===Ol.indexOf(this)&&Ol.push(this):Ol.indexOf(this)>-1&&Ol.splice(Ol.indexOf(this),1)}__getNormalizedScrollLeft(e){return El.getNormalizedScrollLeft(Nl,this.getAttribute("dir")||"ltr",e)}__setNormalizedScrollLeft(e,t){return El.setNormalizedScrollLeft(Nl,this.getAttribute("dir")||"ltr",e,t)}},Dl=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Ml=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Ll(){function e(){return!0}return jl(e)}function Fl(){try{return!!Bl()||!!Hl()&&(Ml?!$l():!Ll())}catch(e){return!1}}function Bl(){return localStorage.getItem("vaadin.developmentmode.force")}function Hl(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function $l(){if(Ml){if(Object.keys(Ml).map(e=>Ml[e]).filter(e=>e.productionMode).length>0)return!0}return!1}function jl(e,t){if("function"!=typeof e)return;const n=Dl.exec(e.toString());if(n)try{e=new Function(n[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}window.Vaadin=window.Vaadin||{};const Ul=function(e,t){if(window.Vaadin.developmentMode)return jl(e,t)};function ql(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=Fl());const Vl=function(){if("function"==typeof Ul)return Ul(ql)};let Wl;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Vl&&Vl()};const Kl=new Set,Yl=e=>class extends(Il(e)){static finalize(){super.finalize();const{is:e}=this;e&&!Kl.has(e)&&(window.Vaadin.registrations.push(this),Kl.add(e),window.Vaadin.developmentModeCallback&&(Wl=vr.debounce(Wl,Xn,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),xr(Wl)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}
|
|
2502
|
-
/**
|
|
2503
|
-
@license
|
|
2504
|
-
Copyright (c) 2017 Vaadin Ltd.
|
|
2505
|
-
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2506
|
-
*/;class Gl extends(Yl(Pl(Tl(ma)))){static get template(){return ua`
|
|
2507
|
-
<slot></slot>
|
|
2508
|
-
`}static get is(){return"vaadin-tab"}static get version(){return"3.2.0"}ready(){super.ready(),this.setAttribute("role","tab")}_onKeyup(e){const t=this.hasAttribute("active");if(super._onKeyup(e),t){const e=this.querySelector("a");e&&e.click()}}}customElements.define(Gl.is,Gl);const Jl=document.createElement("template");Jl.innerHTML='<custom-style>\n <style>\n @font-face {\n font-family: \'lumo-icons\';\n src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEcAAsAAAAAIiwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2MAABd4h9To2WhlYWQAAA3kAAAAMAAAADZa/6SsaGhlYQAADhQAAAAdAAAAJAbpA35obXR4AAAONAAAABAAAACspBAAAGxvY2EAAA5EAAAAWAAAAFh55IAsbWF4cAAADpwAAAAfAAAAIAFKAXBuYW1lAAAOvAAAATEAAAIuUUJZCHBvc3QAAA/wAAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wgc1Z9N0jpNnEL6kbRVS6HA2hQYGh9TGR1CbCqa2rXrWOkQE/sHNJgmtZvoVNZqE1B1DNHxzTQxCehUTYiJTQyENui0qSLezr3PduyQfgmRWOfde8+9551z7rnn/O4jLoJ/bRP0UaKQMLFJjpBAvphLZC3Dk0ok7WBzR2/upJs7Ryw/nfFbln/uuN/apCvwrKLrSvUqRufbm5pn0fs0w4gYxnGVP6qHnO4bWiDQGQgwtS6lm3lB3QoX1M2vwEmuzirF39y+Es2+DJ8d1pkyqBIqoze3D1+Zz4DrFoazxI8dWwMrDlZ2DMqQAR9AROsJU+2cmlTPazTco52F1xTa2a2+K8vvq92dVHmtLoPeQX/AZPRYGthDYOeZjBjKoFsVGulR3lWU95WeCK44qHU7MhWUGUKZDT3oKUcG2GWuh+EDDfUYA/jhAhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgRW95uEtpJ1Vfn9XiLriRBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKiflqHRSoWZc3m11Wa/fJdFgXD4sSYfleJBKd8GMz7J8dZn/cGRCcKGDnA2Ge3fKzcvlnTDNthGWLXzX/WaXtUAmRgeLlHSr30r0G9UTXMb0AtmwzOoy73fkSlHZkduw/TYuU9cAD4YutPoxTTsA3797wVr4Z/1NC5zARHr4vtxJjxIfiZMhMkbWk+14BnJZKwqGZwDfswLyxWDSg11rFLJF7Nopxjd1h1/QOT+oezgfu3Yq+Hk+duf5x+40o1GTkaIgikK/IEnC6aYxCUBaZJSN4XTYFjU/YMNIKqJwhDGOCCI8FDXnXmXjtGhGJyShqjAOnBOkW2JG9S7GgYeMWAU5JzhnWmBOaOM+CKEPoqSfFDC2Unq+DLlUgUVUFFLZGJg6jtlojsdsa8kPObPuJdi5dnBdBsLJMGTWDa4t2JvtwuPo9s+Y86suv/W33QG1rAaOAUV+vx4K6f2D04PVKlC7WLSrZzAi45ZV6lIC7WoXqmRyvUqoVwrzUoVsIjeTXWQv+RH5GTlBXiB/In8ln0IbBCAFOajAJrgZYyOHWqOfUe/aHjI12R6OQo1jCgt215l+4f6XPb+0MNou0V+43n2F77tSfRb24d7zitgnKmvYHs69zugaPvBwv6ioXkb2LdL65Atw51uLkXlu1bhMMRcXSPcYoqKIRlh34lQP8/5JbuUFye4vxD6/6MxFF11C0uVLr9Ulgw44tS3pMViNLUExbycFgLIct+QDMibRimx1ydUz8FXZiuOIDBOMVX2nUZc+huNE5XUJ81uiJoiabwqaVF0uacKbau/pl4R2VW0XXlJra6boVrYG646TF5NYzwy4vjENVrDlcNpZPl8DH6XX8XWCx0mvWVZY6KFLrvsY66/zPict5FnxaNUR/juvZCM3TvD60E2W1tZizbXTPDuabcm0nbbzpWKpmA1ayBQ8giedLUM+A0kNjBjQjmuYz7YrgIXYvmF63ZLBwSXrpn9Tb9wwdd/U1H0PMQK3XcO8ul3WT7PyPPdpy0TemKxNRcJNauiXJnnUDpUppQWs4SnUIy0EESGYqJYQLGHxzaGWwVIaS6Y7mQFM8ZjYDQ3axjf61SWjU33JwOZA1pwaG1L9mzf71aHRdX1JHw6Fp0aXhNwbqyeGNg4NbdzGCBxoz4ZXjy4Nu69Zr6sDY6vMrLU5nA1P8JkbdWXJ6ERfMryvNh1JfQ9+T4dIhGvK9w3dxjBBzatsQ/MlOHVIDnYpDz6odAXlQ01t2Pa5Iafd8MMpxAeDKP0C6CjgVLT5osB6icUx01lWjXxzT/GyRF2welEM5Z/7jG3VjQ1SrNn5IbyzOG5dobB3/QHxyZvsXcoz8IoEwS7plCg+zxHQk424q9BfEpkESJbFHQusDBSWFkuBkoPO0kLKwRVYjxGXlHTcTDQMJ/H6TX9afkO7mnraTO1feTnZAXLu4cp7HAXMmNG1yeFk9TgS/NHhZR/4QoBTr/ZB+6hCgyl15Nq1UbN6nE1/ZnP1U2cizCBpvs8cJQZJ4LkYx5N/yZPAUZNQQ0V4f3BQllWrK3YRzl30dOT6RVn2upNur6woSa8CqpdT/aKnBM4o3jNur9d9xqtUT6veBEt9Ca9at+ERzEEhUkR8sa5mQ4aVvJoVeEA8zI4ei5mULXFGyU7z/6TAeYLVcpzSWZY8PYYF5yrTV60sT0+XV141vX++Wf16V2bFeGVPZXxFpkvyeKTWLlzfW0mnKxsY6Y3294/0998SCfX1blm5pbcvFGlq/r07MRAMhYIDiW5JFKWW3vdrEpCsZSJG+om7Zu/PSScZJhNkLbmW5Wsr12pWqW5zKtlwRS4bFOxUw17mCzy6lskCDl1WYOGWDYrADrMA7BDDweWWNd5koiJnR1dz+ytLP2q0SqPB1lnK2ccB7RYe4FSoPks3iB3t4txTSHctb2sy1ivk0pvHuCNm6w1f6wxv3+OCgN78LqdQnUVh7R0oTAp0zOf2rbW770Vu5C2dIyGdTnHo8zSji7dppj0USoVCz+lhRMTh53Teq9VbGfbjuSbAooSdXayY4PYHg374C6f7gl1B/DXuJ4/QXxOBdJFJspFsI3egpoWUUCjlTIFnNYNl+ZyZKmBeYKGHkD1QyDlhaKbKwKcIJqJ4TLJ2OmdY/JWXae4DdGBw8HZ7eXcgFF2zr2SoalDry5iKqoa0Puhe3hPQ2s3elTYM+MI+n3rK0KgL7/La3GeMLt6m7u912vGnvtORiIa0qBmhqVi+XW9XNBmqb8eVgKzIHfGI5bNoG7X0UCzeISmqIcO/nY8FH7U8avX9fx/ST+hx0sezPw9Qy8Mum3GWf2N4Uy/yIYGVBXbJHWIZp7dfTcptdMTr9Qmq7DaiK/ukqCL4kt4RUfS5XPnMtmT22/mQFqF7emSqtrlu8SVElxDRJrZODkpuwe0VfTfjdEp1f7A7v+fozNBXUJ/6WTuK2TtFlpFVZAZ3LcFvUi1Z2p2YT+EMAkGJVStOzLTAPg4IqWIAlzRSjOBkl2zxj3TKycpzT/MnvX3uaSMWM+gU0rkXjohhefVRMaps3/kLMSKv23lT23uxQrkQjyOJleMDsdhAnD6ZGElWZ5MjCXzCE/hkWX+WF4knzGhVOyK2eQZekV3eyo0zL8kuYWCnDCvjjhAkcTPOBDXVdoav3HVcFnQjLvtV9S2p0zA6JegPwMQxt+yFb3ll9zGlq/5dRKb3cEyQYoaNYpharJ7xCB7AWxsLY3jjZXY0XsZj0Wjwc9I6PP/dKABnCZaqHpaZEACxk4ZeLZSKNgZABl+lYQX1sJQOSX3n6r410evcoud5JeAGUXVP9H1tZOKejTq4Ono0z0erro1FrnOpohva1d/hTdtVsQdKN5W9RlT3NjD0nznyKNTgKAMfWNWcyodV0IGLPIHOF0o4JyqufaK4z6WIIzuGh3d8c8cwQg8ER+OVxyrjdm8vNuhts4LoOihGxIMuUdgzwiYN7xhh1+oZnJNuTG7gQZvu4XWZ9GAZZjGEubwePqYhtKDTH+9VQkl17/iGybsnJ+8+sKtyPrcll9ty65Zsdst/9iqpEKh7M5VdBxh3csOdNc6tW3I1uyM1PzOXegSOrLFsFNI2O27M+TF2ApnN9MUv5ud6LjxIvEQnHRzxIu4IsA9MLFkJn2tcZoZ7ON7dXe7ujrc8HrusPKamlqXwd77lQUuLpilau4PUMapueBb7irU4RoUXEYXuVuIGlRGmOp+2lNkaRPVziOqmlaZvaqG4dFgSj0jxEJWrv12IUWntmw+rfQarRE0Aph4ocI6nlUlGqs+u3/+T/ethW62PpHp2eHbZstnh/wOO95yDAHicY2BkYGAA4pmJ6QHx/DZfGbiZXwBFGGpUNzQi6P+vmacy3QJyORiYQKIANoULVXicY2BkYGAO+p8FJF8wAAHzVAZGBlSgDQBW9gNvAAAAeJxjYGBgYH4xNDAAzwQmjwAAAAAATgCaAOgBCgEsAU4BcAGaAcQB7gIaApwC6ASaBLwE1gTyBQ4FKgV6BdAF/gZEBmYGtgcYB5AIGAhSCGoI/glGCb4J2goECjwKggq4CvALUAuWC7x4nGNgZGBg0GZMYRBlAAEmIOYCQgaG/2A+AwAYlAG8AHicbZE9TsMwGIbf9A/RSggEYmHxAgtq+jN2ZGj3Dt3T1GlTOXHkuBW9AyfgEByCgTNwCA7BW/NJlVBtyd/jx+8XKwmAa3whwnFE6Ib1OBq44O6Pm6Qb4Rb5QbiNHh6FO/RD4S6eMRHu4RaaT4halzR3eBVu4Apvwk36d+EW+UO4jXt8Cnfov4W7WOBHuIen6MXsCtvPU1vWc73emcSdxIkW2tW5LdUoHp7kTJfaJV6v1PKg6v167H2mMmcLNbWl18ZYVTm71amPN95Xk8EgEx+ntoDBDgUs+siRspaoMef7rukNEriziXNuwS7Hmoe9wggxv+e55IzJMqQTeNYV00scuNbY8+YxrUfGfcaMZb/CNPQe04bT0lThbEuT0sfYhK6K/23Amf3Lx+H24hcj4GScAAAAeJxtjtlugzAQRbkJUEJIuu/7vqR8lGNPAcWx0YAb5e/LklR96EgenSufGY038PqKvf9rhgGG8BEgxA4ijBBjjAQTTLGLPezjAIc4wjFOcIoznOMCl7jCNW5wizvc4wGPeMIzXvCKN7zjAzN8eonQRWZSSaYmjvug6ase98hFltexMJmmVNmV2WBvdNgZUc+ujAWzXW3UDnu1w43asStHc8GpzAXX/py0jqTQZJTgkcxJLpaCF0lD32xNt+43tAsn29Dft02uDKS2cjGUNgsk26qK2lFthYoU27INPqmiDqg5goe0pqR5qSoqMdek/CUZFywL46rEsiImleqiqoMyt4baXlu/1GLdNFf5zbcNmdr1YUWCZe47o+zUmb/DoStbw3cVsef9ALjjiPQA) format(\'woff\');\n font-weight: normal;\n font-style: normal;\n }\n\n html {\n --lumo-icons-align-center: "\\ea01";\n --lumo-icons-align-left: "\\ea02";\n --lumo-icons-align-right: "\\ea03";\n --lumo-icons-angle-down: "\\ea04";\n --lumo-icons-angle-left: "\\ea05";\n --lumo-icons-angle-right: "\\ea06";\n --lumo-icons-angle-up: "\\ea07";\n --lumo-icons-arrow-down: "\\ea08";\n --lumo-icons-arrow-left: "\\ea09";\n --lumo-icons-arrow-right: "\\ea0a";\n --lumo-icons-arrow-up: "\\ea0b";\n --lumo-icons-bar-chart: "\\ea0c";\n --lumo-icons-bell: "\\ea0d";\n --lumo-icons-calendar: "\\ea0e";\n --lumo-icons-checkmark: "\\ea0f";\n --lumo-icons-chevron-down: "\\ea10";\n --lumo-icons-chevron-left: "\\ea11";\n --lumo-icons-chevron-right: "\\ea12";\n --lumo-icons-chevron-up: "\\ea13";\n --lumo-icons-clock: "\\ea14";\n --lumo-icons-cog: "\\ea15";\n --lumo-icons-cross: "\\ea16";\n --lumo-icons-download: "\\ea17";\n --lumo-icons-dropdown: "\\ea18";\n --lumo-icons-edit: "\\ea19";\n --lumo-icons-error: "\\ea1a";\n --lumo-icons-eye: "\\ea1b";\n --lumo-icons-eye-disabled: "\\ea1c";\n --lumo-icons-menu: "\\ea1d";\n --lumo-icons-minus: "\\ea1e";\n --lumo-icons-ordered-list: "\\ea1f";\n --lumo-icons-phone: "\\ea20";\n --lumo-icons-photo: "\\ea21";\n --lumo-icons-play: "\\ea22";\n --lumo-icons-plus: "\\ea23";\n --lumo-icons-redo: "\\ea24";\n --lumo-icons-reload: "\\ea25";\n --lumo-icons-search: "\\ea26";\n --lumo-icons-undo: "\\ea27";\n --lumo-icons-unordered-list: "\\ea28";\n --lumo-icons-upload: "\\ea29";\n --lumo-icons-user: "\\ea2a";\n }\n </style>\n</custom-style>',document.head.appendChild(Jl.content);const Zl=document.createElement("template");Zl.innerHTML="<custom-style>\n <style>\n html {\n /* Square */\n --lumo-space-xs: 0.25rem;\n --lumo-space-s: 0.5rem;\n --lumo-space-m: 1rem;\n --lumo-space-l: 1.5rem;\n --lumo-space-xl: 2.5rem;\n\n /* Wide */\n --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);\n --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);\n --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);\n --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);\n --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);\n\n /* Tall */\n --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);\n --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);\n --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);\n --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);\n --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);\n }\n </style>\n</custom-style>",document.head.appendChild(Zl.content);const Xl=ua`<dom-module id="lumo-tabs" theme-for="vaadin-tabs">
|
|
2509
|
-
<template>
|
|
2510
|
-
<style>
|
|
58
|
+
.badge {
|
|
59
|
+
flex: none;
|
|
60
|
+
font-size: 0.75rem;
|
|
61
|
+
line-height: 1;
|
|
62
|
+
text-transform: uppercase;
|
|
63
|
+
padding: 0.125rem 0.375rem;
|
|
64
|
+
border-radius: 999px;
|
|
65
|
+
background-color: rgba(33, 150, 243, 0.16);
|
|
66
|
+
color: #1565c0;
|
|
67
|
+
}
|
|
68
|
+
`}static _viewComponent(e,t=0){document.dispatchEvent(new CustomEvent("pb-api-component",{detail:{component:e,tab:t}}))}}customElements.define("pb-components-list",me);class be extends ge{constructor(e){if(super(e),this.it=Q,e.type!==pe.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Q||null==e)return this._t=void 0,this.it=e;if(e===Z)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}be.directiveName="unsafeHTML",be.resultType=1;const ke=de(be);function ye(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var we=ye();function xe(e){we=e}var $e={exec:()=>null};function ve(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let s="string"==typeof t?t:t.source;return s=s.replace(Se.caret,"$1"),n=n.replace(e,s),r},getRegex:()=>new RegExp(n,t)};return r}var _e=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Se={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Ae=/^(?:[ \t]*(?:\n|$))+/,Ee=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Te=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ce=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Re=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Pe=/(?:[*+-]|\d{1,9}[.)])/,ze=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Fe=ve(ze).replace(/bull/g,Pe).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Le=ve(ze).replace(/bull/g,Pe).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Oe=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ne=/^[^\n]+/,Ie=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Me=ve(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ie).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),je=ve(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Pe).getRegex(),De="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",He=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Be=ve("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",He).replace("tag",De).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),qe=ve(Oe).replace("hr",Ce).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",De).getRegex(),Ue={blockquote:ve(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",qe).getRegex(),code:Ee,def:Me,fences:Te,heading:Re,hr:Ce,html:Be,lheading:Fe,list:je,newline:Ae,paragraph:qe,table:$e,text:Ne},We=ve("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ce).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",De).getRegex(),Ze={...Ue,lheading:Le,table:We,paragraph:ve(Oe).replace("hr",Ce).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",We).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",De).getRegex()},Qe={...Ue,html:ve("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",He).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:$e,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ve(Oe).replace("hr",Ce).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Fe).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ve=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ge=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Xe=/^( {2,}|\\)\n(?!\s*$)/,Je=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ye=/[\p{P}\p{S}]/u,Ke=/[\s\p{P}\p{S}]/u,et=/[^\s\p{P}\p{S}]/u,tt=ve(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ke).getRegex(),nt=/(?!~)[\p{P}\p{S}]/u,rt=/(?!~)[\s\p{P}\p{S}]/u,st=/(?:[^\s\p{P}\p{S}]|~)/u,it=ve(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",_e?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),at=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,ot=ve(at,"u").replace(/punct/g,Ye).getRegex(),lt=ve(at,"u").replace(/punct/g,nt).getRegex(),ct="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ht=ve(ct,"gu").replace(/notPunctSpace/g,et).replace(/punctSpace/g,Ke).replace(/punct/g,Ye).getRegex(),ut=ve(ct,"gu").replace(/notPunctSpace/g,st).replace(/punctSpace/g,rt).replace(/punct/g,nt).getRegex(),pt=ve("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,et).replace(/punctSpace/g,Ke).replace(/punct/g,Ye).getRegex(),dt=ve(/\\(punct)/,"gu").replace(/punct/g,Ye).getRegex(),gt=ve(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ft=ve(He).replace("(?:--\x3e|$)","--\x3e").getRegex(),mt=ve("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ft).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),bt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,kt=ve(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",bt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),yt=ve(/^!?\[(label)\]\[(ref)\]/).replace("label",bt).replace("ref",Ie).getRegex(),wt=ve(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ie).getRegex(),xt=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,$t={_backpedal:$e,anyPunctuation:dt,autolink:gt,blockSkip:it,br:Xe,code:Ge,del:$e,emStrongLDelim:ot,emStrongRDelimAst:ht,emStrongRDelimUnd:pt,escape:Ve,link:kt,nolink:wt,punctuation:tt,reflink:yt,reflinkSearch:ve("reflink|nolink(?!\\()","g").replace("reflink",yt).replace("nolink",wt).getRegex(),tag:mt,text:Je,url:$e},vt={...$t,link:ve(/^!?\[(label)\]\((.*?)\)/).replace("label",bt).getRegex(),reflink:ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",bt).getRegex()},_t={...$t,emStrongRDelimAst:ut,emStrongLDelim:lt,url:ve(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",xt).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ve(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",xt).getRegex()},St={..._t,br:ve(Xe).replace("{2,}","*").getRegex(),text:ve(_t.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},At={normal:Ue,gfm:Ze,pedantic:Qe},Et={normal:$t,gfm:_t,breaks:St,pedantic:vt},Tt={"&":"&","<":"<",">":">",'"':""","'":"'"},Ct=e=>Tt[e];function Rt(e,t){if(t){if(Se.escapeTest.test(e))return e.replace(Se.escapeReplace,Ct)}else if(Se.escapeTestNoEncode.test(e))return e.replace(Se.escapeReplaceNoEncode,Ct);return e}function Pt(e){try{e=encodeURI(e).replace(Se.percentDecode,"%")}catch{return null}return e}function zt(e,t){let n=e.replace(Se.findPipe,(e,t,n)=>{let r=!1,s=t;for(;--s>=0&&"\\"===n[s];)r=!r;return r?"|":" |"}),r=n.split(Se.splitPipe),s=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(Se.slashPipe,"|");return r}function Ft(e,t,n){let r=e.length;if(0===r)return"";let s=0;for(;s<r;){if(e.charAt(r-s-1)!==t)break;s++}return e.slice(0,r-s)}function Lt(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Ot(e,t,n,r,s){let i=t.href,a=t.title||null,o=e[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:i,title:a,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}function Nt(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let s=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=s.length?e.slice(s.length):e}).join("\n")}var It=class{options;rules;lexer;constructor(e){this.options=e||we}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Ft(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Nt(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Ft(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ft(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Ft(t[0],"\n").split("\n"),n="",r="",s=[];for(;e.length>0;){let t,i=!1,a=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))a.push(e[t]),i=!0;else{if(i)break;a.push(e[t])}e=e.slice(t);let o=a.join("\n"),l=o.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${o}`:o,r=r?`${r}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,s,!0),this.lexer.state.top=c,0===e.length)break;let h=s.at(-1);if("code"===h?.type)break;if("blockquote"===h?.type){let t=h,i=t.raw+"\n"+e.join("\n"),a=this.blockquote(i);s[s.length-1]=a,n=n.substring(0,n.length-t.raw.length)+a.raw,r=r.substring(0,r.length-t.text.length)+a.text;break}if("list"===h?.type){let t=h,i=t.raw+"\n"+e.join("\n"),a=this.list(i);s[s.length-1]=a,n=n.substring(0,n.length-h.raw.length)+a.raw,r=r.substring(0,r.length-t.raw.length)+a.raw,e=i.substring(s.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:s,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),a=!1;for(;e;){let n=!1,r="",o="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],h=!l.trim(),u=0;if(this.options.pedantic?(u=2,o=l.trimStart()):h?u=t[1].length+1:(u=t[2].search(this.rules.other.nonSpaceChar),u=u>4?1:u,o=l.slice(u),u+=t[1].length),h&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(u),n=this.rules.other.hrRegex(u),s=this.rules.other.fencesBeginRegex(u),i=this.rules.other.headingBeginRegex(u),a=this.rules.other.htmlBeginRegex(u);for(;e;){let p,d=e.split("\n",1)[0];if(c=d,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),p=c):p=c.replace(this.rules.other.tabCharGlobal," "),s.test(c)||i.test(c)||a.test(c)||t.test(c)||n.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=u||!c.trim())o+="\n"+p.slice(u);else{if(h||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||s.test(l)||i.test(l)||n.test(l))break;o+="\n"+c}!h&&!c.trim()&&(h=!0),r+=d+"\n",e=e.substring(d.length+1),l=p.slice(u)}}s.loose||(a?s.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(a=!0)),s.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(o),loose:!1,text:o,tokens:[]}),s.raw+=r}let o=s.items.at(-1);if(!o)return;o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),s.raw=s.raw.trimEnd();for(let e of s.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),"text"===e.tokens[0]?.type||"paragraph"===e.tokens[0]?.type){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=n.checked,s.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:"paragraph",raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!s.loose){let t=e.tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));s.loose=n}}if(s.loose)for(let e of s.items){e.loose=!0;for(let t of e.tokens)"text"===t.type&&(t.type="paragraph")}return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=zt(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?i.align.push("right"):this.rules.other.tableAlignCenter.test(e)?i.align.push("center"):this.rules.other.tableAlignLeft.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<n.length;e++)i.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:i.align[e]});for(let e of s)i.rows.push(zt(e,i.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Ft(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=Lt(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),Ot(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return Ot(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,s,i=[...r[0]].length-1,a=i,o=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+i);null!=(r=l.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(s=[...n].length,r[3]||r[4]){a+=s;continue}if((r[5]||r[6])&&i%3&&!((i+s)%3)){o+=s;continue}if(a-=s,a>0)continue;s=Math.min(s,s+a+o);let t=[...r[0]][0].length,l=e.slice(0,i+r.index+t+s);if(Math.min(i,s)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},Mt=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||we,this.options.tokenizer=this.options.tokenizer||new It,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:Se,block:At.normal,inline:Et.normal};this.options.pedantic?(t.block=At.pedantic,t.inline=Et.pedantic):this.options.gfm&&(t.block=At.gfm,this.options.breaks?t.inline=Et.breaks:t.inline=Et.gfm),this.tokenizer.rules=t}static get rules(){return{block:At,inline:Et}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(Se.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(Se.tabCharGlobal," ").replace(Se.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let s=e;if(this.options.extensions?.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(s=e.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(s))){let i=t.at(-1);n&&"paragraph"===i?.type?(i.raw+=(i.raw.endsWith("\n")?"":"\n")+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(r),n=s.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r=e,s=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,s.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(r));)n=s[2]?s[2].length:0,r=r.slice(0,s.index+n)+"["+"a".repeat(s[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let i=!1,a="";for(;e;){let n;if(i||(a=""),i=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,r,a)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let s=e;if(this.options.extensions?.startInline){let t,n=1/0,r=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(s=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(s)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),i=!0;let r=t.at(-1);"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},jt=class{options;parser;constructor(e){this.options=e||we}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(Se.notSpaceStart)?.[0],s=e.replace(Se.endingNewline,"")+"\n";return r?'<pre><code class="language-'+Rt(r)+'">'+(n?s:Rt(s,!0))+"</code></pre>\n":"<pre><code>"+(n?s:Rt(s,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let s=t?"ol":"ul";return"<"+s+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+s+">\n"}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let s=e.rows[t];n="";for(let e=0;e<s.length;e++)n+=this.tablecell(s[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Rt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),s=Pt(e);if(null===s)return r;let i='<a href="'+(e=s)+'"';return t&&(i+=' title="'+Rt(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let s=Pt(e);if(null===s)return Rt(n);let i=`<img src="${e=s}" alt="${n}"`;return t&&(i+=` title="${Rt(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Rt(e.text)}},Dt=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},Ht=class e{options;renderer;textRenderer;constructor(e){this.options=e||we,this.options.renderer=this.options.renderer||new jt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Dt}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){let t="";for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==n||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){t+=n||"";continue}}let s=r;switch(s.type){case"space":t+=this.renderer.space(s);break;case"hr":t+=this.renderer.hr(s);break;case"heading":t+=this.renderer.heading(s);break;case"code":t+=this.renderer.code(s);break;case"table":t+=this.renderer.table(s);break;case"blockquote":t+=this.renderer.blockquote(s);break;case"list":t+=this.renderer.list(s);break;case"checkbox":t+=this.renderer.checkbox(s);break;case"html":t+=this.renderer.html(s);break;case"def":t+=this.renderer.def(s);break;case"paragraph":t+=this.renderer.paragraph(s);break;case"text":t+=this.renderer.text(s);break;default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return t}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let s=e[r];if(this.options.extensions?.renderers?.[s.type]){let e=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=e||"";continue}}let i=s;switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"checkbox":n+=t.checkbox(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}},Bt=class{options;block;constructor(e){this.options=e||we}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?Mt.lex:Mt.lexInline}provideParser(){return this.block?Ht.parse:Ht.parseInline}},qt=class{defaults=ye();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Ht;Renderer=jt;TextRenderer=Dt;Lexer=Mt;Tokenizer=It;Hooks=Bt;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let s=e[r].flat(1/0);n=n.concat(this.walkTokens(s,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new jt(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=n,s=e.renderer[r],i=t[r];t[r]=(...e)=>{let n=s.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new It(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=n,s=e.tokenizer[r],i=t[r];t[r]=(...e)=>{let n=s.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Bt;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,s=e.hooks[r],i=t[r];Bt.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&Bt.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await s.call(t,e);return i.call(t,n)})();let r=s.call(t,e);return i.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await s.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=s.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Mt.lex(e,t??this.defaults)}parser(e,t){return Ht.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},s={...this.defaults,...r},i=this.onError(!!s.silent,!!s.async);if(!0===this.defaults.async&&!1===r.async)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return(async()=>{let n=s.hooks?await s.hooks.preprocess(t):t,r=await(s.hooks?await s.hooks.provideLexer():e?Mt.lex:Mt.lexInline)(n,s),i=s.hooks?await s.hooks.processAllTokens(r):r;s.walkTokens&&await Promise.all(this.walkTokens(i,s.walkTokens));let a=await(s.hooks?await s.hooks.provideParser():e?Ht.parse:Ht.parseInline)(i,s);return s.hooks?await s.hooks.postprocess(a):a})().catch(i);try{s.hooks&&(t=s.hooks.preprocess(t));let n=(s.hooks?s.hooks.provideLexer():e?Mt.lex:Mt.lexInline)(t,s);s.hooks&&(n=s.hooks.processAllTokens(n)),s.walkTokens&&this.walkTokens(n,s.walkTokens);let r=(s.hooks?s.hooks.provideParser():e?Ht.parse:Ht.parseInline)(n,s);return s.hooks&&(r=s.hooks.postprocess(r)),r}catch(e){return i(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+Rt(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},Ut=new qt;function Wt(e,t){return Ut.parse(e,t)}Wt.options=Wt.setOptions=function(e){return Ut.setOptions(e),Wt.defaults=Ut.defaults,xe(Wt.defaults),Wt},Wt.getDefaults=ye,Wt.defaults=we,Wt.use=function(...e){return Ut.use(...e),Wt.defaults=Ut.defaults,xe(Wt.defaults),Wt},Wt.walkTokens=function(e,t){return Ut.walkTokens(e,t)},Wt.parseInline=Ut.parseInline,Wt.Parser=Ht,Wt.parser=Ht.parse,Wt.Renderer=jt,Wt.TextRenderer=Dt,Wt.Lexer=Mt,Wt.lexer=Mt.lex,Wt.Tokenizer=It,Wt.Hooks=Bt,Wt.parse=Wt,Wt.options,Wt.setOptions,Wt.use,Wt.walkTokens,Wt.parseInline,Ht.parse,Mt.lex;var Zt,Qt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Vt={exports:{}};function Gt(){return Zt||(Zt=1,function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},s={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},s.util.type(t)){case"Object":if(i=s.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=s.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(t,s){r[s]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var s=e.classList;if(s.contains(t))return!0;if(s.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=s.util.clone(s.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||s.languages)[e],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(o)||(a[o]=i[o])}var c=r[e];return r[e]=a,s.languages.DFS(s.languages,function(t,n){n===c&&t!=e&&(this[t]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=s.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var l=t[o],c=s.util.type(l);"Object"!==c||i[a(l)]?"Array"!==c||i[a(l)]||(i[a(l)]=!0,e(l,n,o,i)):(i[a(l)]=!0,e(l,n,null,i))}}},plugins:{},highlightAll:function(e,t){s.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),s.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)s.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=s.util.getLanguage(t),a=s.languages[i];s.util.setLanguage(t,i);var o=t.parentElement;o&&"pre"===o.nodeName.toLowerCase()&&s.util.setLanguage(o,i);var l={element:t,language:i,grammar:a,code:t.textContent};function c(e){l.highlightedCode=e,s.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,s.hooks.run("after-highlight",l),s.hooks.run("complete",l),r&&r.call(l.element)}if(s.hooks.run("before-sanity-check",l),(o=l.element.parentElement)&&"pre"===o.nodeName.toLowerCase()&&!o.hasAttribute("tabindex")&&o.setAttribute("tabindex","0"),!l.code)return s.hooks.run("complete",l),void(r&&r.call(l.element));if(s.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var h=new Worker(s.filename);h.onmessage=function(e){c(e.data)},h.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(s.highlight(l.code,l.grammar,l.language));else c(s.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(s.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=s.tokenize(r.code,r.grammar),s.hooks.run("after-tokenize",r),i.stringify(s.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var s=new l;return c(s,s.head,e),o(e,s,t,s.head,0),u(s)},hooks:{all:{},add:function(e,t){var n=s.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=s.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var s=e.exec(n);if(s&&r&&s[1]){var i=s[1].length;s.index+=i,s[0]=s[0].slice(i)}return s}function o(e,t,n,r,l,u){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var d=n[p];d=Array.isArray(d)?d:[d];for(var g=0;g<d.length;++g){if(u&&u.cause==p+","+g)return;var f=d[g],m=f.inside,b=!!f.lookbehind,k=!!f.greedy,y=f.alias;if(k&&!f.pattern.global){var w=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,w+"g")}for(var x=f.pattern||f,$=r.next,v=l;$!==t.tail&&!(u&&v>=u.reach);v+=$.value.length,$=$.next){var _=$.value;if(t.length>e.length)return;if(!(_ instanceof i)){var S,A=1;if(k){if(!(S=a(x,v,e,b))||S.index>=e.length)break;var E=S.index,T=S.index+S[0].length,C=v;for(C+=$.value.length;E>=C;)C+=($=$.next).value.length;if(v=C-=$.value.length,$.value instanceof i)continue;for(var R=$;R!==t.tail&&(C<T||"string"==typeof R.value);R=R.next)A++,C+=R.value.length;A--,_=e.slice(v,C),S.index-=v}else if(!(S=a(x,0,_,b)))continue;E=S.index;var P=S[0],z=_.slice(0,E),F=_.slice(E+P.length),L=v+_.length;u&&L>u.reach&&(u.reach=L);var O=$.prev;if(z&&(O=c(t,O,z),v+=z.length),h(t,O,A),$=c(t,O,new i(p,m?s.tokenize(P,m):P,y,P)),F&&c(t,$,F),A>1){var N={cause:p+","+g,reach:L};o(e,t,n,$.prev,v,N),u&&N.reach>u.reach&&(u.reach=N.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,s={value:n,prev:t,next:r};return t.next=s,r.prev=s,e.length++,s}function h(e,t,n){for(var r=t.next,s=0;s<n&&r!==e.tail;s++)r=r.next;t.next=r,r.prev=t,e.length-=s}function u(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}if(e.Prism=s,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),s.hooks.run("wrap",i);var o="";for(var l in i.attributes)o+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+o+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(s.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(s.highlight(i,s.languages[r],r)),a&&e.close()},!1),s):s;var p=s.util.currentScript();function d(){s.manual||s.highlightAll()}if(p&&(s.filename=p.src,p.hasAttribute("data-manual")&&(s.manual=!0)),!s.manual){var g=document.readyState;"loading"===g||"interactive"===g&&p&&p.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return s}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=t),void 0!==Qt&&(Qt.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};s["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:s},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e="Loading…",n=function(e,t){return"✖ Error "+e+" while fetching file: "+t},r="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},i="data-src-status",a="loading",o="loaded",l="failed",c="pre[data-src]:not(["+i+'="'+o+'"]):not(['+i+'="'+a+'"])';t.hooks.add("before-highlightall",function(e){e.selector+=", "+c}),t.hooks.add("before-sanity-check",function(n){var r=n.element;if(r.matches(c)){n.code="",r.setAttribute(i,a);var h=r.appendChild(document.createElement("CODE"));h.textContent=e;var d=r.getAttribute("data-src"),g=n.language;if("none"===g){var f=(/\.(\w+)$/.exec(d)||[,"none"])[1];g=s[f]||f}t.util.setLanguage(h,g),t.util.setLanguage(r,g);var m=t.plugins.autoloader;m&&m.loadLanguages(g),u(d,function(e){r.setAttribute(i,o);var n=p(r.getAttribute("data-range"));if(n){var s=e.split(/\r\n?|\n/g),a=n[0],l=null==n[1]?s.length:n[1];a<0&&(a+=s.length),a=Math.max(0,Math.min(a-1,s.length)),l<0&&(l+=s.length),l=Math.max(0,Math.min(l,s.length)),e=s.slice(a,l).join("\n"),r.hasAttribute("data-start")||r.setAttribute("data-start",String(a+1))}h.textContent=e,t.highlightElement(h)},function(e){r.setAttribute(i,l),h.textContent=e})}}),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(c),s=0;n=r[s++];)t.highlightElement(n)}};var h=!1;t.fileHighlight=function(){h||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),h=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(e,t,s){var i=new XMLHttpRequest;i.open("GET",e,!0),i.onreadystatechange=function(){4==i.readyState&&(i.status<400&&i.responseText?t(i.responseText):i.status>=400?s(n(i.status,i.statusText)):s(r))},i.send(null)}function p(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],s=t[3];return r?s?[n,Number(s)]:[n,void 0]:[n,n]}}}()}(Vt)),Vt.exports}Gt();var Xt,Jt={};function Yt(){return Xt||(Xt=1,function(e){e.languages.xquery=e.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),e.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,e.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,e.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:e.languages.xquery,alias:"language-xquery"};var t=function(e){return"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(t).join("")},n=function(r){for(var s=[],i=0;i<r.length;i++){var a=r[i],o=!1;if("string"!=typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?s.length>0&&s[s.length-1].tagName===t(a.content[0].content[1])&&s.pop():"/>"===a.content[a.content.length-1].content||s.push({tagName:t(a.content[0].content[1]),openedBraces:0}):!(s.length>0&&"punctuation"===a.type&&"{"===a.content)||r[i+1]&&"punctuation"===r[i+1].type&&"{"===r[i+1].content||r[i-1]&&"plain-text"===r[i-1].type&&"{"===r[i-1].content?s.length>0&&s[s.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?s[s.length-1].openedBraces--:"comment"!==a.type&&(o=!0):s[s.length-1].openedBraces++),(o||"string"==typeof a)&&s.length>0&&0===s[s.length-1].openedBraces){var l=t(a);i<r.length-1&&("string"==typeof r[i+1]||"plain-text"===r[i+1].type)&&(l+=t(r[i+1]),r.splice(i+1,1)),i>0&&("string"==typeof r[i-1]||"plain-text"===r[i-1].type)&&(l=t(r[i-1])+l,r.splice(i-1,1),i--),/^\s+$/.test(l)?r[i]=l:r[i]=new e.Token("plain-text",l,null,l)}a.content&&"string"!=typeof a.content&&n(a.content)}};e.hooks.add("after-tokenize",function(e){"xquery"===e.language&&n(e.tokens)})}(Prism)),Jt}Yt();var Kt,en={exports:{}};function tn(){return Kt||(Kt=1,e=en,function(){if("undefined"!=typeof Prism){var t=Object.assign||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},n={"remove-trailing":"boolean","remove-indent":"boolean","left-trim":"boolean","right-trim":"boolean","break-lines":"number",indent:"number","remove-initial-line-feed":"boolean","tabs-to-spaces":"number","spaces-to-tabs":"number"};r.prototype={setDefaults:function(e){this.defaults=t(this.defaults,e)},normalize:function(e,n){for(var r in n=t(this.defaults,n)){var i=s(r);"normalize"!==r&&"setDefaults"!==i&&n[r]&&this[i]&&(e=this[i].call(this,e,n[r]))}return e},leftTrim:function(e){return e.replace(/^\s+/,"")},rightTrim:function(e){return e.replace(/\s+$/,"")},tabsToSpaces:function(e,t){return t=0|t||4,e.replace(/\t/g,new Array(++t).join(" "))},spacesToTabs:function(e,t){return t=0|t||4,e.replace(RegExp(" {"+t+"}","g"),"\t")},removeTrailing:function(e){return e.replace(/\s*?$/gm,"")},removeInitialLineFeed:function(e){return e.replace(/^(?:\r?\n|\r)/,"")},removeIndent:function(e){var t=e.match(/^[^\S\n\r]*(?=\S)/gm);return t&&t[0].length?(t.sort(function(e,t){return e.length-t.length}),t[0].length?e.replace(RegExp("^"+t[0],"gm"),""):e):e},indent:function(e,t){return e.replace(/^[^\S\n\r]*(?=\S)/gm,new Array(++t).join("\t")+"$&")},breakLines:function(e,t){t=!0===t?80:0|t||80;for(var n=e.split("\n"),r=0;r<n.length;++r)if(!(i(n[r])<=t)){for(var s=n[r].split(/(\s+)/g),a=0,o=0;o<s.length;++o){var l=i(s[o]);(a+=l)>t&&(s[o]="\n"+s[o],a=l)}n[r]=s.join("")}return n.join("\n")}},e.exports&&(e.exports=r),Prism.plugins.NormalizeWhitespace=new r({"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),Prism.hooks.add("before-sanity-check",function(e){var t=Prism.plugins.NormalizeWhitespace;if((!e.settings||!1!==e.settings["whitespace-normalization"])&&Prism.util.isActive(e.element,"whitespace-normalization",!0))if(e.element&&e.element.parentNode||!e.code){var r=e.element.parentNode;if(e.code&&r&&"pre"===r.nodeName.toLowerCase()){for(var s in null==e.settings&&(e.settings={}),n)if(Object.hasOwnProperty.call(n,s)){var i=n[s];if(r.hasAttribute("data-"+s))try{var a=JSON.parse(r.getAttribute("data-"+s)||"true");typeof a===i&&(e.settings[s]=a)}catch(e){}}for(var o=r.childNodes,l="",c="",h=!1,u=0;u<o.length;++u){var p=o[u];p==e.element?h=!0:"#text"===p.nodeName&&(h?c+=p.nodeValue:l+=p.nodeValue,r.removeChild(p),--u)}if(e.element.children.length&&Prism.plugins.KeepMarkup){var d=l+e.element.innerHTML+c;e.element.innerHTML=t.normalize(d,e.settings),e.code=e.element.textContent}else e.code=l+e.code+c,e.code=t.normalize(e.code,e.settings)}}else e.code=t.normalize(e.code,e.settings)})}function r(e){this.defaults=t({},e)}function s(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function i(e){for(var t=0,n=0;n<e.length;++n)e.charCodeAt(n)=="\t".charCodeAt(0)&&(t+=3);return e.length+t}}()),en.exports;var e}tn();var nn,rn={};function sn(){return nn||(nn=1,function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document){var e="line-numbers",t=/\n(?!$)/g,n=Prism.plugins.lineNumbers={getLine:function(t,n){if("PRE"===t.tagName&&t.classList.contains(e)){var r=t.querySelector(".line-numbers-rows");if(r){var s=parseInt(t.getAttribute("data-start"),10)||1,i=s+(r.children.length-1);n<s&&(n=s),n>i&&(n=i);var a=n-s;return r.children[a]}}},resize:function(e){s([e])},assumeViewportIndependence:!0},r=void 0;window.addEventListener("resize",function(){n.assumeViewportIndependence&&r===window.innerWidth||(r=window.innerWidth,s(Array.prototype.slice.call(document.querySelectorAll("pre."+e))))}),Prism.hooks.add("complete",function(n){if(n.code){var r=n.element,i=r.parentNode;if(i&&/pre/i.test(i.nodeName)&&!r.querySelector(".line-numbers-rows")&&Prism.util.isActive(r,e)){r.classList.remove(e),i.classList.add(e);var a,o=n.code.match(t),l=o?o.length+1:1,c=new Array(l+1).join("<span></span>");(a=document.createElement("span")).setAttribute("aria-hidden","true"),a.className="line-numbers-rows",a.innerHTML=c,i.hasAttribute("data-start")&&(i.style.counterReset="linenumber "+(parseInt(i.getAttribute("data-start"),10)-1)),n.element.appendChild(a),s([i]),Prism.hooks.run("line-numbers",n)}}}),Prism.hooks.add("line-numbers",function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0})}function s(e){if(e=e.filter(function(e){var t=i(e)["white-space"];return"pre-wrap"===t||"pre-line"===t}),0!=e.length){var n=e.map(function(e){var n=e.querySelector("code"),r=e.querySelector(".line-numbers-rows");if(n&&r){var s=e.querySelector(".line-numbers-sizer"),i=n.textContent.split(t);s||((s=document.createElement("span")).className="line-numbers-sizer",n.appendChild(s)),s.innerHTML="0",s.style.display="block";var a=s.getBoundingClientRect().height;return s.innerHTML="",{element:e,lines:i,lineHeights:[],oneLinerHeight:a,sizer:s}}}).filter(Boolean);n.forEach(function(e){var t=e.sizer,n=e.lines,r=e.lineHeights,s=e.oneLinerHeight;r[n.length-1]=void 0,n.forEach(function(e,n){if(e&&e.length>1){var i=t.appendChild(document.createElement("span"));i.style.display="block",i.textContent=e}else r[n]=s})}),n.forEach(function(e){for(var t=e.sizer,n=e.lineHeights,r=0,s=0;s<n.length;s++)void 0===n[s]&&(n[s]=t.children[r++].getBoundingClientRect().height)}),n.forEach(function(e){var t=e.sizer,n=e.element.querySelector(".line-numbers-rows");t.style.display="none",t.innerHTML="",e.lineHeights.forEach(function(e,t){n.children[t].style.height=e+"px"})})}}function i(e){return e?window.getComputedStyle?getComputedStyle(e):e.currentStyle||null:null}}()),rn}function an(e){const t=document.querySelector("script[src*=pb-components]");return t?new URL(e,t.src).href:new URL(e,window.location.href).href}function on(e,t,n){const r=getComputedStyle(e).getPropertyValue(t);if(r)try{return JSON.parse(r)}catch(e){return n}return n}sn(),window.TeiPublisher||(window.TeiPublisher={},TeiPublisher.url=new URL(window.location.href));const ln=new Map;function cn(e,t){ln.has(e)?t(ln.get(e)):document.addEventListener(e,n=>{ln.set(e,n.detail),t(n.detail)},{once:!0})}function hn(){const e=document.querySelector("pb-page");if(!e)return null;const t=e.stylesheet;return t||null}!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,r="object"==typeof DOMException?Error:DOMException,s=Object.defineProperty,i=Array.prototype.forEach,a=/@import.+?;?$/gm,o=["addRule","deleteRule","insertRule","removeRule"],l=CSSStyleSheet.prototype;l.replace=function(){return Promise.reject(new r("Can't call replace on non-constructed CSSStyleSheets."))},l.replaceSync=function(){throw new r("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var c=new WeakMap,h=new WeakMap,u=new WeakMap,p=new WeakMap,d=O.prototype;d.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},d.replaceSync=function(e){if(L(this),"string"==typeof e){var t=this;c.get(t).textContent=$(e),p.set(t,[]),h.get(t).forEach(function(e){e.isConnected()&&F(t,P(t,e))})}},s(d,"cssRules",{configurable:!0,enumerable:!0,get:function(){return L(this),c.get(this).sheet.cssRules}}),s(d,"media",{configurable:!0,enumerable:!0,get:function(){return L(this),c.get(this).sheet.media}}),o.forEach(function(e){d[e]=function(){var t=this;L(t);var n=arguments;p.get(t).push({method:e,args:n}),h.get(t).forEach(function(r){if(r.isConnected()){var s=P(t,r).sheet;s[e].apply(s,n)}});var r=c.get(t).sheet;return r[e].apply(r,n)}}),s(O,Symbol.hasInstance,{configurable:!0,value:T});var g={childList:!0,subtree:!0},f=new WeakMap,m=new WeakMap,b=new WeakMap,k=new WeakMap;if(B.prototype={isConnected:function(){var e=m.get(this);return e instanceof Document?"loading"!==e.readyState:v(e.host)},connect:function(){var e=D(this);k.get(this).observe(e,g),b.get(this).length>0&&H(this),M(e,function(e){N(e).connect()})},disconnect:function(){k.get(this).disconnect()},update:function(e){var t=this,n=m.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(T))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var r=b.get(t),s=_(e);S(r,s).forEach(function(e){A(P(e,t)),z(e,t)}),b.set(t,s),t.isConnected()&&s.length>0&&H(t)}},window.CSSStyleSheet=O,I(Document),"ShadowRoot"in window){I(ShadowRoot);var y=Element.prototype,w=y.attachShadow;y.attachShadow=function(e){var t=w.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var x=N(document);x.isConnected()?x.connect():document.addEventListener("DOMContentLoaded",x.connect.bind(x))}function $(e){var t=e.replace(a,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}function v(e){return"isConnected"in e?e.isConnected:document.contains(e)}function _(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function S(e,t){return e.filter(function(e){return-1===t.indexOf(e)})}function A(e){e.parentNode.removeChild(e)}function E(e){return e.shadowRoot||n.get(e)}function T(e){return"object"==typeof e&&(d.isPrototypeOf(e)||l.isPrototypeOf(e))}function C(e){return"object"==typeof e&&l.isPrototypeOf(e)}function R(e,t){var n=document.createElement("style");return u.get(e).set(t,n),h.get(e).push(t),n}function P(e,t){return u.get(e).get(t)}function z(e,t){u.get(e).delete(t),h.set(e,h.get(e).filter(function(e){return e!==t}))}function F(e,t){requestAnimationFrame(function(){t.textContent=c.get(e).textContent,p.get(e).forEach(function(e){return t.sheet[e.method].apply(t.sheet,e.args)})})}function L(e){if(!c.has(e))throw new TypeError("Illegal invocation")}function O(){var e=this,n=document.createElement("style");t.body.appendChild(n),c.set(e,n),h.set(e,[]),u.set(e,new WeakMap),p.set(e,[])}function N(e){var t=f.get(e);return t||(t=new B(e),f.set(e,t)),t}function I(e){s(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return N(this).sheets},set:function(e){N(this).update(e)}})}function M(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,function(e){return E(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},null,!1),r=void 0;r=n.nextNode();)t(E(r))}function j(e,t){return t instanceof HTMLStyleElement&&b.get(e).some(function(t){return P(t,e)})}function D(e){var t=m.get(e);return t instanceof Document?t.body:t}function H(e){var t=document.createDocumentFragment(),n=b.get(e),r=k.get(e),s=D(e);r.disconnect(),n.forEach(function(n){t.appendChild(P(n,e)||R(n,e))}),s.insertBefore(t,null),r.observe(s,g),n.forEach(function(t){F(t,P(t,e))})}function B(t){var n=this;n.sheets=[],m.set(n,t),b.set(n,[]),k.set(n,new MutationObserver(function(t,r){document?t.forEach(function(t){e||i.call(t.addedNodes,function(e){e instanceof Element&&M(e,function(e){N(e).connect()})}),i.call(t.removedNodes,function(t){t instanceof Element&&(j(n,t)&&H(n),e||M(t,function(e){N(e).disconnect()}))})}):r.disconnect()}))}}();const un=e=>class extends e{connectedCallback(){super.connectedCallback(),cn("pb-page-ready",e=>{const t=hn();t&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,t])})}},pn=new Map;function dn(e){const t="default"===e?"prism.css":`prism-${e}.css`;if(pn.has(t))return console.log("Using cached theme: %s",t),pn.get(t);const n=new Promise(n=>{let r;try{if(void 0!==import.meta&&import.meta.env&&import.meta.env.DEV||"undefined"!=typeof location&&/localhost|127\.0\.0\.1/.test(location.hostname)){const e=window.location.hostname;r="8080"===window.location.port||e.includes("tei-publisher")?"/exist/apps/tei-publisher/resources/css/prismjs/"+t:an("../css/prismjs/")+t}else r=an("../css/prismjs/")+t}catch(e){r=an("../css/prismjs/")+t}console.log("<pb-code-highlight> loading theme %s from %s",e,r),fetch(r).then(e=>e.text()).catch(()=>n("")).then(e=>{n(W`<style>
|
|
69
|
+
${e}
|
|
70
|
+
</style>`)})});return pn.set(t,n),n}class gn extends(un(he)){static get properties(){return{language:{type:String},code:{type:String},theme:{type:String},lineNumbers:{type:Boolean,attribute:"line-numbers"},_themeStyles:{type:String}}}constructor(){super(),this.language="xml",this.theme="default",this.lineNumbers=!1,this._themeStyles=null}connectedCallback(){super.connectedCallback();let e=this.getAttribute("theme");null===e&&(e=on(this,"--pb-code-highlight-theme","default"),this.setAttribute("theme",e))}firstUpdated(){if(super.firstUpdated(),!this.code){const e=this.querySelector("template");this.code=e?Prism.plugins.NormalizeWhitespace.normalize(e.innerHTML):Prism.plugins.NormalizeWhitespace.normalize(this.textContent)}}attributeChangedCallback(e,t,n){if(super.attributeChangedCallback(e,t,n),"theme"===e)dn(n).then(e=>{this._themeStyles=e})}updated(e){if(super.updated(e),e.has("code")){const e=this.shadowRoot.getElementById("pb-code-highlight");if(null!=e){const t=document.createElement("code");t.textContent=this.code,e.replaceChildren(t)}this.highlight()}}highlight(){Prism.highlightAllUnder(this.shadowRoot)}render(){return this.code?W`
|
|
71
|
+
${this._themeStyles}
|
|
72
|
+
<pre
|
|
73
|
+
id="pb-code-highlight"
|
|
74
|
+
class="${this.lineNumbers?"line-numbers":""} language-${this.language}"
|
|
75
|
+
><code>${this.code}</code></pre>
|
|
76
|
+
`:W`<pre class="line-numbers"><code><code></pre>`}static get styles(){return a`
|
|
2511
77
|
:host {
|
|
2512
|
-
|
|
2513
|
-
}
|
|
2514
|
-
|
|
2515
|
-
:host(:not([orientation="vertical"])) {
|
|
2516
|
-
box-shadow: inset 0 -1px 0 0 var(--lumo-contrast-10pct);
|
|
2517
|
-
position: relative;
|
|
2518
|
-
min-height: var(--lumo-size-l);
|
|
78
|
+
display: block;
|
|
2519
79
|
}
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
justify-content: center;
|
|
80
|
+
pre[class*='language-'] {
|
|
81
|
+
margin: 0;
|
|
2523
82
|
}
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
box-shadow: -1px 0 0 0 var(--lumo-contrast-10pct);
|
|
83
|
+
code[class*='language-'] {
|
|
84
|
+
white-space: var(--pb-code-highlight-white-space, pre);
|
|
2527
85
|
}
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
86
|
+
pre.line-numbers {
|
|
87
|
+
position: relative;
|
|
88
|
+
padding-left: 3.8em;
|
|
89
|
+
counter-reset: linenumber;
|
|
2531
90
|
}
|
|
2532
91
|
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
92
|
+
pre.line-numbers > code {
|
|
93
|
+
position: relative;
|
|
94
|
+
white-space: inherit;
|
|
2536
95
|
}
|
|
2537
96
|
|
|
2538
|
-
|
|
2539
|
-
[part="back-button"] {
|
|
97
|
+
.line-numbers .line-numbers-rows {
|
|
2540
98
|
position: absolute;
|
|
2541
|
-
|
|
2542
|
-
font-family: lumo-icons;
|
|
2543
|
-
color: var(--lumo-tertiary-text-color);
|
|
2544
|
-
font-size: var(--lumo-icon-size-m);
|
|
2545
|
-
display: flex;
|
|
2546
|
-
align-items: center;
|
|
2547
|
-
justify-content: center;
|
|
2548
|
-
width: 1.5em;
|
|
2549
|
-
height: 100%;
|
|
2550
|
-
transition: 0.2s opacity;
|
|
99
|
+
pointer-events: none;
|
|
2551
100
|
top: 0;
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
}
|
|
2558
|
-
|
|
2559
|
-
:host(:not([dir="rtl"])) [part="forward-button"] {
|
|
2560
|
-
right: 0;
|
|
2561
|
-
}
|
|
2562
|
-
|
|
2563
|
-
[part="forward-button"]::after {
|
|
2564
|
-
content: var(--lumo-icons-angle-right);
|
|
2565
|
-
}
|
|
2566
|
-
|
|
2567
|
-
[part="back-button"]::after {
|
|
2568
|
-
content: var(--lumo-icons-angle-left);
|
|
2569
|
-
}
|
|
2570
|
-
|
|
2571
|
-
/* Tabs overflow */
|
|
2572
|
-
|
|
2573
|
-
[part="tabs"] {
|
|
2574
|
-
--_lumo-tabs-overflow-mask-image: none;
|
|
2575
|
-
-webkit-mask-image: var(--_lumo-tabs-overflow-mask-image);
|
|
2576
|
-
/* For IE11 */
|
|
2577
|
-
min-height: var(--lumo-size-l);
|
|
2578
|
-
}
|
|
2579
|
-
|
|
2580
|
-
/*
|
|
2581
|
-
TODO: CSS custom property in \`mask-image\` causes crash in Edge
|
|
2582
|
-
see https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/15415089/
|
|
2583
|
-
*/
|
|
2584
|
-
@-moz-document url-prefix() {
|
|
2585
|
-
[part="tabs"] {
|
|
2586
|
-
mask-image: var(--_lumo-tabs-overflow-mask-image);
|
|
2587
|
-
}
|
|
2588
|
-
}
|
|
2589
|
-
|
|
2590
|
-
/* Horizontal tabs overflow */
|
|
2591
|
-
|
|
2592
|
-
/* Both ends overflowing */
|
|
2593
|
-
:host([overflow~="start"][overflow~="end"]:not([orientation="vertical"])) [part="tabs"] {
|
|
2594
|
-
--_lumo-tabs-overflow-mask-image: linear-gradient(90deg, transparent 2em, #000 4em, #000 calc(100% - 4em), transparent calc(100% - 2em));
|
|
2595
|
-
}
|
|
2596
|
-
|
|
2597
|
-
/* End overflowing */
|
|
2598
|
-
:host([overflow~="end"]:not([orientation="vertical"])) [part="tabs"] {
|
|
2599
|
-
--_lumo-tabs-overflow-mask-image: linear-gradient(90deg, #000 calc(100% - 4em), transparent calc(100% - 2em));
|
|
2600
|
-
}
|
|
2601
|
-
|
|
2602
|
-
/* Start overflowing */
|
|
2603
|
-
:host([overflow~="start"]:not([orientation="vertical"])) [part="tabs"] {
|
|
2604
|
-
--_lumo-tabs-overflow-mask-image: linear-gradient(90deg, transparent 2em, #000 4em);
|
|
2605
|
-
}
|
|
2606
|
-
|
|
2607
|
-
/* Vertical tabs overflow */
|
|
2608
|
-
|
|
2609
|
-
/* Both ends overflowing */
|
|
2610
|
-
:host([overflow~="start"][overflow~="end"][orientation="vertical"]) [part="tabs"] {
|
|
2611
|
-
--_lumo-tabs-overflow-mask-image: linear-gradient(transparent, #000 2em, #000 calc(100% - 2em), transparent);
|
|
2612
|
-
}
|
|
2613
|
-
|
|
2614
|
-
/* End overflowing */
|
|
2615
|
-
:host([overflow~="end"][orientation="vertical"]) [part="tabs"] {
|
|
2616
|
-
--_lumo-tabs-overflow-mask-image: linear-gradient(#000 calc(100% - 2em), transparent);
|
|
2617
|
-
}
|
|
2618
|
-
|
|
2619
|
-
/* Start overflowing */
|
|
2620
|
-
:host([overflow~="start"][orientation="vertical"]) [part="tabs"] {
|
|
2621
|
-
--_lumo-tabs-overflow-mask-image: linear-gradient(transparent, #000 2em);
|
|
2622
|
-
}
|
|
2623
|
-
|
|
2624
|
-
:host [part="tabs"] ::slotted(:not(vaadin-tab)) {
|
|
2625
|
-
margin-left: var(--lumo-space-m);
|
|
2626
|
-
}
|
|
2627
|
-
|
|
2628
|
-
/* Centered */
|
|
2629
|
-
|
|
2630
|
-
:host([theme~="centered"][orientation="horizontal"]) [part="tabs"] {
|
|
2631
|
-
justify-content: center;
|
|
2632
|
-
}
|
|
2633
|
-
|
|
2634
|
-
/* Small */
|
|
2635
|
-
|
|
2636
|
-
:host([theme~="small"]),
|
|
2637
|
-
:host([theme~="small"]) [part="tabs"] {
|
|
2638
|
-
min-height: var(--lumo-size-m);
|
|
2639
|
-
}
|
|
2640
|
-
|
|
2641
|
-
:host([theme~="small"]) [part="tabs"] ::slotted(vaadin-tab) {
|
|
2642
|
-
font-size: var(--lumo-font-size-s);
|
|
2643
|
-
}
|
|
2644
|
-
|
|
2645
|
-
/* Minimal */
|
|
2646
|
-
|
|
2647
|
-
:host([theme~="minimal"]) {
|
|
2648
|
-
box-shadow: none;
|
|
2649
|
-
/* This doesn't work with ShadyCSS */
|
|
2650
|
-
--_lumo-tab-marker-display: none;
|
|
2651
|
-
}
|
|
2652
|
-
|
|
2653
|
-
/* Workaround for the above ShadyCSS issue */
|
|
2654
|
-
:host([theme~="minimal"]) [part="tabs"] ::slotted(vaadin-tab[selected])::before,
|
|
2655
|
-
:host([theme~="minimal"]) [part="tabs"] ::slotted(vaadin-tab[selected])::after {
|
|
2656
|
-
display: none;
|
|
2657
|
-
}
|
|
2658
|
-
|
|
2659
|
-
/* Hide-scroll-buttons */
|
|
2660
|
-
|
|
2661
|
-
:host([theme~="hide-scroll-buttons"]) [part="back-button"],
|
|
2662
|
-
:host([theme~="hide-scroll-buttons"]) [part="forward-button"] {
|
|
2663
|
-
display: none;
|
|
2664
|
-
}
|
|
2665
|
-
|
|
2666
|
-
:host([theme~="hide-scroll-buttons"][overflow~="start"][overflow~="end"]:not([orientation="vertical"])) [part="tabs"] {
|
|
2667
|
-
--_lumo-tabs-overflow-mask-image: linear-gradient(90deg, transparent, #000 2em, #000 calc(100% - 2em), transparent 100%);
|
|
2668
|
-
}
|
|
2669
|
-
|
|
2670
|
-
:host([theme~="hide-scroll-buttons"][overflow~="end"]:not([orientation="vertical"])) [part="tabs"] {
|
|
2671
|
-
--_lumo-tabs-overflow-mask-image: linear-gradient(90deg, #000 calc(100% - 2em), transparent 100%);
|
|
2672
|
-
}
|
|
2673
|
-
|
|
2674
|
-
:host([theme~="hide-scroll-buttons"][overflow~="start"]:not([orientation="vertical"])) [part="tabs"] {
|
|
2675
|
-
--_lumo-tabs-overflow-mask-image: linear-gradient(90deg, transparent, #000 2em);
|
|
2676
|
-
}
|
|
2677
|
-
|
|
2678
|
-
/* Equal-width tabs */
|
|
2679
|
-
:host([theme~="equal-width-tabs"]) {
|
|
2680
|
-
flex: auto;
|
|
2681
|
-
}
|
|
2682
|
-
|
|
2683
|
-
:host([theme~="equal-width-tabs"]) [part="tabs"] ::slotted(vaadin-tab) {
|
|
2684
|
-
flex: 1 0 0%;
|
|
2685
|
-
}
|
|
2686
|
-
|
|
2687
|
-
/* RTL specific styles */
|
|
2688
|
-
|
|
2689
|
-
:host([dir="rtl"]) [part="forward-button"]::after {
|
|
2690
|
-
content: var(--lumo-icons-angle-left);
|
|
2691
|
-
}
|
|
2692
|
-
|
|
2693
|
-
:host([dir="rtl"]) [part="back-button"]::after {
|
|
2694
|
-
content: var(--lumo-icons-angle-right);
|
|
2695
|
-
}
|
|
2696
|
-
|
|
2697
|
-
:host([orientation="vertical"][dir="rtl"]) {
|
|
2698
|
-
box-shadow: 1px 0 0 0 var(--lumo-contrast-10pct);
|
|
2699
|
-
}
|
|
2700
|
-
|
|
2701
|
-
:host([dir="rtl"]) [part="forward-button"] {
|
|
2702
|
-
left: 0;
|
|
2703
|
-
}
|
|
2704
|
-
|
|
2705
|
-
:host([dir="rtl"]) [part="tabs"] ::slotted(:not(vaadin-tab)) {
|
|
2706
|
-
margin-left: 0;
|
|
2707
|
-
margin-right: var(--lumo-space-m);
|
|
2708
|
-
}
|
|
2709
|
-
|
|
2710
|
-
/* Both ends overflowing */
|
|
2711
|
-
:host([dir="rtl"][overflow~="start"][overflow~="end"]:not([orientation="vertical"])) [part="tabs"] {
|
|
2712
|
-
--_lumo-tabs-overflow-mask-image: linear-gradient(-90deg, transparent 2em, #000 4em, #000 calc(100% - 4em), transparent calc(100% - 2em));
|
|
2713
|
-
}
|
|
101
|
+
font-size: 100%;
|
|
102
|
+
left: -3.8em;
|
|
103
|
+
width: 3em; /* works for line-numbers below 1000 lines */
|
|
104
|
+
letter-spacing: -1px;
|
|
105
|
+
border-right: 1px solid #999;
|
|
2714
106
|
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
/* Start overflowing */
|
|
2721
|
-
:host([dir="rtl"][overflow~="start"]:not([orientation="vertical"])) [part="tabs"] {
|
|
2722
|
-
--_lumo-tabs-overflow-mask-image: linear-gradient(-90deg, transparent 2em, #000 4em);
|
|
2723
|
-
}
|
|
2724
|
-
|
|
2725
|
-
:host([dir="rtl"][theme~="hide-scroll-buttons"][overflow~="start"][overflow~="end"]:not([orientation="vertical"])) [part="tabs"] {
|
|
2726
|
-
--_lumo-tabs-overflow-mask-image: linear-gradient(-90deg, transparent, #000 2em, #000 calc(100% - 2em), transparent 100%);
|
|
107
|
+
-webkit-user-select: none;
|
|
108
|
+
-moz-user-select: none;
|
|
109
|
+
-ms-user-select: none;
|
|
110
|
+
user-select: none;
|
|
2727
111
|
}
|
|
2728
112
|
|
|
2729
|
-
|
|
2730
|
-
|
|
113
|
+
.line-numbers-rows > span {
|
|
114
|
+
pointer-events: none;
|
|
115
|
+
display: block;
|
|
116
|
+
counter-increment: linenumber;
|
|
117
|
+
height: auto !important;
|
|
2731
118
|
}
|
|
2732
119
|
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
120
|
+
.line-numbers-rows > span:before {
|
|
121
|
+
content: counter(linenumber);
|
|
122
|
+
color: #999;
|
|
123
|
+
display: block;
|
|
124
|
+
padding-right: 0.8em;
|
|
125
|
+
text-align: right;
|
|
126
|
+
}
|
|
127
|
+
`}}customElements.define("pb-code-highlight",gn);const fn={code:(e,t,n)=>`<pb-code-highlight language="${e.lang||t||"undefined"}" line-numbers>\n <template>${e.text||e}</template>\n </pb-code-highlight>`};function mn(e){return e?W`${ke(Wt.parse(e))}`:null}function bn(e,t,n=!1){return t?W`
|
|
128
|
+
<section>
|
|
129
|
+
<h2>${e}</h2>
|
|
130
|
+
<table>
|
|
131
|
+
<thead>
|
|
132
|
+
<tr>
|
|
133
|
+
<th>Name</th>
|
|
134
|
+
<th>Description</th>
|
|
135
|
+
${n?W`<th>Default</th>`:null}
|
|
136
|
+
</tr>
|
|
137
|
+
</thead>
|
|
138
|
+
<tbody>
|
|
139
|
+
${t.map(e=>W`<tr>
|
|
140
|
+
<td>${e.name}</td>
|
|
141
|
+
<td>${mn(e.description)}</td>
|
|
142
|
+
${n?W`<td>${e.default}</td>`:null}
|
|
143
|
+
</tr>`)}
|
|
144
|
+
</tbody>
|
|
145
|
+
</table>
|
|
146
|
+
</section>
|
|
147
|
+
`:null}Wt.use({renderer:fn});class kn extends he{static get properties(){return{defaultTitle:{type:String,attribute:"default-title"},_target:{type:String,reflect:!0},_api:{type:String,reflect:!0},_component:{type:Object},_tab:{type:Number}}}constructor(){super(),this._tab=0,this._component=null,this.defaultTitle="Webcomponents API"}show(e,t=0){this._component=e,this._tab=t}clear(){this._component=null,this._tab=0}render(){const e=this._component?W`<h1>
|
|
148
|
+
<${this._component.name}><span class="path">${this._component.path}</span>
|
|
149
|
+
</h1>`:W`<h1>${this.defaultTitle}</h1>`;return W`
|
|
150
|
+
<div class="viewer">
|
|
151
|
+
<header class="viewer__header">${e}</header>
|
|
152
|
+
${this._component?this._renderTabs():null}
|
|
153
|
+
<main class="viewer__body">${this._component?this._renderPanels():null}</main>
|
|
154
|
+
</div>
|
|
155
|
+
`}_renderTabs(){const e=this._component?.demo?Object.values(this._component.demo):[];return W`
|
|
156
|
+
<div class="tabs" role="tablist" aria-label="Component sections">
|
|
157
|
+
${this._renderTab(0,"API","tab-api","panel-api")}
|
|
158
|
+
${e.map((e,t)=>this._renderTab(t+1,e,`tab-demo-${t+1}`,`panel-demo-${t+1}`))}
|
|
159
|
+
</div>
|
|
160
|
+
`}_renderTab(e,t,n,r){const s=this._tab===e,i=fe({tab:!0,"tab--active":s});return W`
|
|
161
|
+
<button
|
|
162
|
+
id="${n}"
|
|
163
|
+
type="button"
|
|
164
|
+
role="tab"
|
|
165
|
+
class="${i}"
|
|
166
|
+
aria-selected="${s?"true":"false"}"
|
|
167
|
+
aria-controls="${r}"
|
|
168
|
+
tabindex="${s?"0":"-1"}"
|
|
169
|
+
@click="${()=>this._selectTab(e)}"
|
|
170
|
+
>
|
|
171
|
+
${t}
|
|
172
|
+
</button>
|
|
173
|
+
`}_renderPanels(){return[W`
|
|
174
|
+
<div
|
|
175
|
+
id="panel-api"
|
|
176
|
+
class="tabpanel ${fe({hidden:0!==this._tab})}"
|
|
177
|
+
role="tabpanel"
|
|
178
|
+
aria-labelledby="tab-api"
|
|
179
|
+
?hidden="${0!==this._tab}"
|
|
180
|
+
>
|
|
181
|
+
${this._renderApiContent()}
|
|
182
|
+
</div>
|
|
183
|
+
`,...this._component?.demo?Object.keys(this._component.demo).map((e,t)=>{const n=t+1,r=n===this._tab?this._getDemo(n):null;return W`
|
|
184
|
+
<div
|
|
185
|
+
id="panel-demo-${n}"
|
|
186
|
+
class="tabpanel ${fe({hidden:this._tab!==n})}"
|
|
187
|
+
role="tabpanel"
|
|
188
|
+
aria-labelledby="tab-demo-${n}"
|
|
189
|
+
?hidden="${this._tab!==n}"
|
|
190
|
+
>
|
|
191
|
+
${this._tab===n?W`<iframe id="iframe" src="${r??""}" title="Component demo"></iframe>`:null}
|
|
192
|
+
</div>
|
|
193
|
+
`}):[]]}_renderApiContent(){return this._component?W`
|
|
194
|
+
<div class="api-content">
|
|
195
|
+
<p class="description">${mn(this._component.description)}</p>
|
|
196
|
+
${bn("Slots",this._component.slots)} ${this._renderPropertiesSection()}
|
|
197
|
+
${bn("Events",this._component.events)}
|
|
198
|
+
${bn("CSS Properties",this._component.cssProperties,!0)}
|
|
199
|
+
${bn("CSS Parts",this._component.cssParts)}
|
|
200
|
+
</div>
|
|
201
|
+
`:null}_renderPropertiesSection(){return this._component?.properties?W`<section>
|
|
202
|
+
<h2>Properties</h2>
|
|
203
|
+
${this._renderProperties()}
|
|
204
|
+
</section>`:null}_renderProperties(){return this._component.properties.map(e=>W`
|
|
205
|
+
<div class="property">
|
|
206
|
+
<table>
|
|
207
|
+
<thead>
|
|
208
|
+
<tr>
|
|
209
|
+
<th>Name</th>
|
|
210
|
+
<th>Attribute</th>
|
|
211
|
+
<th>Type</th>
|
|
212
|
+
<th>Default</th>
|
|
213
|
+
</tr>
|
|
214
|
+
</thead>
|
|
215
|
+
<tbody>
|
|
216
|
+
<tr>
|
|
217
|
+
<td>${e.name}</td>
|
|
218
|
+
<td>${e.attribute?e.attribute:e.name}</td>
|
|
219
|
+
<td>${e.type}</td>
|
|
220
|
+
<td>${e.default?e.default:"undefined"}</td>
|
|
221
|
+
</tr>
|
|
222
|
+
</tbody>
|
|
223
|
+
</table>
|
|
224
|
+
${e.description?W`<p>${mn(e.description)}</p>`:null}
|
|
225
|
+
</div>
|
|
226
|
+
`)}_getDemo(e=this._tab){if(0===e||!this._component?.demo)return null;const t=Object.keys(this._component.demo)[e-1];return this._target?`${t}?_target=${this._target}&_api=${this._api}`:t}_selectTab(e){this._tab!==e&&(this._tab=e,this._pushState())}_showDemo(e){this._selectTab(e)}_showApi(){this._selectTab(0)}_pushState(){if(!this._component)return;const e=`#${this._component.name}.${this._tab}`;history.pushState({component:this._component,tab:this._tab},"view component",e)}static get styles(){return a`
|
|
2751
227
|
:host {
|
|
2752
|
-
display: flex;
|
|
2753
|
-
align-items: center;
|
|
2754
|
-
}
|
|
2755
|
-
|
|
2756
|
-
:host([hidden]) {
|
|
2757
|
-
display: none !important;
|
|
2758
|
-
}
|
|
2759
|
-
|
|
2760
|
-
:host([orientation="vertical"]) {
|
|
2761
228
|
display: block;
|
|
229
|
+
height: 100%;
|
|
2762
230
|
}
|
|
2763
231
|
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
align-self: stretch;
|
|
2768
|
-
overflow-x: auto;
|
|
2769
|
-
-webkit-overflow-scrolling: touch;
|
|
2770
|
-
-ms-overflow-style: none;
|
|
2771
|
-
}
|
|
2772
|
-
|
|
2773
|
-
/* This seems more future-proof than \`overflow: -moz-scrollbars-none\` which is marked obsolete
|
|
2774
|
-
and is no longer guaranteed to work:
|
|
2775
|
-
https://developer.mozilla.org/en-US/docs/Web/CSS/overflow#Mozilla_Extensions */
|
|
2776
|
-
@-moz-document url-prefix() {
|
|
2777
|
-
:host([orientation="horizontal"]) [part="tabs"] {
|
|
2778
|
-
overflow: hidden;
|
|
2779
|
-
}
|
|
2780
|
-
}
|
|
2781
|
-
|
|
2782
|
-
:host([orientation="horizontal"]) [part="tabs"]::-webkit-scrollbar {
|
|
2783
|
-
display: none;
|
|
2784
|
-
}
|
|
2785
|
-
|
|
2786
|
-
:host([orientation="vertical"]) [part="tabs"] {
|
|
232
|
+
.viewer {
|
|
233
|
+
display: grid;
|
|
234
|
+
grid-template-rows: auto auto 1fr;
|
|
2787
235
|
height: 100%;
|
|
2788
|
-
|
|
2789
|
-
-webkit-overflow-scrolling: touch;
|
|
236
|
+
background: #fff;
|
|
2790
237
|
}
|
|
2791
238
|
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
cursor: default;
|
|
239
|
+
.viewer__header {
|
|
240
|
+
background-color: var(--pb-header-background-color, #1a237e);
|
|
241
|
+
color: var(--pb-header-color, #fff);
|
|
242
|
+
padding: 0.75rem 1.5rem;
|
|
2797
243
|
}
|
|
2798
244
|
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
245
|
+
h1,
|
|
246
|
+
h2 {
|
|
247
|
+
font-family: 'Oswald', Verdana, 'Helvetica', sans-serif;
|
|
248
|
+
font-weight: 400;
|
|
249
|
+
line-height: 1.2;
|
|
250
|
+
margin: 0;
|
|
2803
251
|
}
|
|
2804
252
|
|
|
2805
|
-
|
|
2806
|
-
|
|
253
|
+
h1 {
|
|
254
|
+
font-size: 28px;
|
|
255
|
+
font-weight: normal;
|
|
256
|
+
display: flex;
|
|
257
|
+
flex-wrap: wrap;
|
|
258
|
+
gap: 0.75rem;
|
|
259
|
+
align-items: baseline;
|
|
2807
260
|
}
|
|
2808
261
|
|
|
2809
|
-
|
|
2810
|
-
|
|
262
|
+
.path {
|
|
263
|
+
font-size: 16px;
|
|
264
|
+
font-weight: 300;
|
|
2811
265
|
}
|
|
2812
266
|
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
267
|
+
.tabs {
|
|
268
|
+
display: flex;
|
|
269
|
+
flex-wrap: wrap;
|
|
270
|
+
gap: 0.25rem;
|
|
271
|
+
padding: 0.5rem 1rem;
|
|
272
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
273
|
+
background: #fafafa;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.tab {
|
|
277
|
+
border: none;
|
|
278
|
+
background: transparent;
|
|
279
|
+
padding: 0.4rem 0.9rem;
|
|
280
|
+
border-radius: 999px;
|
|
281
|
+
font: inherit;
|
|
282
|
+
cursor: pointer;
|
|
283
|
+
color: #3949ab;
|
|
284
|
+
transition: background-color 120ms ease, color 120ms ease;
|
|
2816
285
|
}
|
|
2817
286
|
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
287
|
+
.tab:hover,
|
|
288
|
+
.tab:focus-visible {
|
|
289
|
+
background-color: rgba(63, 81, 181, 0.12);
|
|
290
|
+
outline: none;
|
|
2822
291
|
}
|
|
2823
292
|
|
|
2824
|
-
|
|
2825
|
-
|
|
293
|
+
.tab--active {
|
|
294
|
+
background-color: #3949ab;
|
|
295
|
+
color: #fff;
|
|
2826
296
|
}
|
|
2827
|
-
</style>
|
|
2828
|
-
<div on-click="_scrollBack" part="back-button"></div>
|
|
2829
297
|
|
|
2830
|
-
|
|
2831
|
-
<slot></slot>
|
|
2832
|
-
</div>
|
|
2833
|
-
|
|
2834
|
-
<div on-click="_scrollForward" part="forward-button"></div>
|
|
2835
|
-
`}static get is(){return"vaadin-tabs"}static get version(){return"3.2.0"}static get properties(){return{orientation:{value:"horizontal",type:String},selected:{value:0,type:Number}}}static get observers(){return["_updateOverflow(items.*, vertical)"]}ready(){super.ready(),this.addEventListener("iron-resize",()=>this._updateOverflow()),this._scrollerElement.addEventListener("scroll",()=>this._updateOverflow()),this.setAttribute("role","tablist"),$s(this,()=>{this._updateOverflow()})}_scrollForward(){this._scroll(-this.__direction*this._scrollOffset)}_scrollBack(){this._scroll(this.__direction*this._scrollOffset)}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return this._vertical||"rtl"!==this.getAttribute("dir")?-1:1}_updateOverflow(){const e=this._vertical?this._scrollerElement.scrollTop:this.__getNormalizedScrollLeft(this._scrollerElement);let t=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;t-=1;let n=e>0?"start":"";n+=e+this._scrollOffset<t?" end":"",1==this.__direction&&(n=n.replace(/start|end/gi,e=>"start"===e?"end":"start")),n?this.setAttribute("overflow",n.trim()):this.removeAttribute("overflow"),this._repaintShadowNodesHack()}_repaintShadowNodesHack(){if(ec&&this.root){const e="-webkit-backface-visibility";this.root.querySelectorAll("*").forEach(t=>{t.style[e]="visible",t.style[e]=""})}}}customElements.define(tc.is,tc),
|
|
2836
|
-
/**
|
|
2837
|
-
@license
|
|
2838
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
2839
|
-
This code may only be used under the BSD style license found at
|
|
2840
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
2841
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
2842
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
2843
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
2844
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
2845
|
-
*/
|
|
2846
|
-
Mo({_template:ua`
|
|
2847
|
-
<style>
|
|
2848
|
-
:host {
|
|
2849
|
-
display: block;
|
|
2850
|
-
/**
|
|
2851
|
-
* Force app-header-layout to have its own stacking context so that its parent can
|
|
2852
|
-
* control the stacking of it relative to other elements (e.g. app-drawer-layout).
|
|
2853
|
-
* This could be done using \`isolation: isolate\`, but that's not well supported
|
|
2854
|
-
* across browsers.
|
|
2855
|
-
*/
|
|
298
|
+
.viewer__body {
|
|
2856
299
|
position: relative;
|
|
2857
|
-
|
|
300
|
+
min-height: 0;
|
|
301
|
+
overflow: auto;
|
|
302
|
+
background: #fff;
|
|
2858
303
|
}
|
|
2859
304
|
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
z-index: 1;
|
|
305
|
+
.tabpanel {
|
|
306
|
+
height: 100%;
|
|
2863
307
|
}
|
|
2864
308
|
|
|
2865
|
-
|
|
2866
|
-
|
|
309
|
+
.tabpanel[hidden] {
|
|
310
|
+
display: none !important;
|
|
2867
311
|
}
|
|
2868
312
|
|
|
2869
|
-
|
|
2870
|
-
|
|
313
|
+
.api-content {
|
|
314
|
+
padding: 1rem 1.5rem 2rem;
|
|
2871
315
|
}
|
|
2872
316
|
|
|
2873
|
-
|
|
2874
|
-
|
|
317
|
+
iframe {
|
|
318
|
+
border: 0;
|
|
319
|
+
width: 100%;
|
|
320
|
+
height: 100%;
|
|
2875
321
|
}
|
|
2876
322
|
|
|
2877
|
-
|
|
2878
|
-
|
|
323
|
+
section {
|
|
324
|
+
margin-bottom: 1.5em;
|
|
2879
325
|
}
|
|
2880
326
|
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
-
|
|
327
|
+
table {
|
|
328
|
+
width: 100%;
|
|
329
|
+
max-width: 840px;
|
|
330
|
+
border-collapse: collapse;
|
|
2885
331
|
}
|
|
2886
332
|
|
|
2887
|
-
|
|
2888
|
-
|
|
333
|
+
.property {
|
|
334
|
+
max-width: 840px;
|
|
335
|
+
margin-bottom: 20px;
|
|
336
|
+
padding-bottom: 8px;
|
|
337
|
+
border-bottom: 1px solid #a0a0a0;
|
|
2889
338
|
}
|
|
2890
339
|
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
340
|
+
th,
|
|
341
|
+
td {
|
|
342
|
+
padding: 8px 4px;
|
|
343
|
+
text-align: left;
|
|
2894
344
|
}
|
|
2895
345
|
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
346
|
+
th {
|
|
347
|
+
color: #909090;
|
|
348
|
+
font-weight: normal;
|
|
349
|
+
font-size: 0.85em;
|
|
2900
350
|
}
|
|
2901
351
|
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
z-index: 0;
|
|
352
|
+
td:nth-child(1) {
|
|
353
|
+
color: #f6a523;
|
|
354
|
+
width: 25%;
|
|
2906
355
|
}
|
|
2907
356
|
|
|
2908
|
-
|
|
2909
|
-
:
|
|
2910
|
-
overflow-y: visible;
|
|
2911
|
-
}
|
|
357
|
+
.property td:nth-child(1) {
|
|
358
|
+
color: inherit;
|
|
2912
359
|
}
|
|
2913
360
|
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
<
|
|
361
|
+
td p {
|
|
362
|
+
margin: 0;
|
|
363
|
+
}
|
|
364
|
+
`}}customElements.define("pb-component-view",kn);class yn extends he{static get properties(){return{file:{type:String},demo:{type:String},_target:{type:String,reflect:!0},_api:{type:String,reflect:!0},_json:{type:Object},_demosOnly:{type:Boolean},_drawerOpen:{type:Boolean}}}constructor(){super(),this.file=null,this.demo=null,this._target=null,this._json=null,this._demosOnly=!1,this._drawerOpen=!1,this.view=null}connectedCallback(){super.connectedCallback();const e=new URL(window.location.href).searchParams.get("_target");e&&(this._target=e);const t=new URL(window.location.href).searchParams.get("_api");t&&(this._api=t),window.addEventListener("popstate",e=>{e.state?this.view?.show(e.state.component,e.state.tab):this.view?.clear()}),document.addEventListener("pb-api-component",e=>{const{component:t,tab:n}=e.detail,r=`#${t.name}.${n}`;history.pushState({component:t,tab:n},"view component",r),this.view?.show(t,n),this._drawerOpen=!1,this.requestUpdate()})}firstUpdated(){super.firstUpdated(),this.view=this.shadowRoot?.getElementById("view"),this._load().then(()=>{const{hash:e}=window.location;if(e){const[t,n]=e.substring(1).split(".");if(t&&n){const e=this._json?.tags?.find(e=>e.name===t);e&&this.view?.show(e,parseInt(n,10))}}})}async _load(){if(!this.file)return null;const e=await fetch(this.file),t=await e.json(),n=await this._loadDemos(t);return this._json=n,n}async _loadDemos(e){if(!this.demo)return e;const t=await fetch(this.demo),n=await t.json();return this._demos=n,e.tags.forEach(e=>{e.demo=n[e.name]||null}),e}_filter(e){const t=e.currentTarget;this._demosOnly=t.checked}_toggleDrawer(){this._drawerOpen=!this._drawerOpen}render(){const e={"docs-layout":!0,"drawer-open":this._drawerOpen};return W`
|
|
365
|
+
<div class="${fe(e)}">
|
|
366
|
+
${this._drawerOpen?W`<div class="backdrop" @click="${this._toggleDrawer}" aria-hidden="true"></div>`:null}
|
|
367
|
+
<aside id="component-sidebar" class="sidebar" aria-label="Component navigation">
|
|
368
|
+
<div class="sidebar__logo">
|
|
369
|
+
<slot name="logo"></slot>
|
|
370
|
+
</div>
|
|
371
|
+
<label class="filter-toggle">
|
|
372
|
+
<input
|
|
373
|
+
id="filter"
|
|
374
|
+
type="checkbox"
|
|
375
|
+
?checked="${this._demosOnly}"
|
|
376
|
+
@change="${this._filter}"
|
|
377
|
+
/>
|
|
378
|
+
<span>only elements with demos</span>
|
|
379
|
+
</label>
|
|
380
|
+
<pb-components-list
|
|
381
|
+
?with-demo="${this._demosOnly}"
|
|
382
|
+
.json="${this._json}"
|
|
383
|
+
></pb-components-list>
|
|
384
|
+
</aside>
|
|
385
|
+
<section class="content">
|
|
386
|
+
<button
|
|
387
|
+
class="drawer-toggle"
|
|
388
|
+
type="button"
|
|
389
|
+
aria-controls="component-sidebar"
|
|
390
|
+
aria-expanded="${this._drawerOpen?"true":"false"}"
|
|
391
|
+
@click="${this._toggleDrawer}"
|
|
392
|
+
>
|
|
393
|
+
${this._drawerOpen?"Hide component list":"Show component list"}
|
|
394
|
+
</button>
|
|
395
|
+
<pb-component-view
|
|
396
|
+
id="view"
|
|
397
|
+
._target="${this._target}"
|
|
398
|
+
._api="${this._api}"
|
|
399
|
+
></pb-component-view>
|
|
400
|
+
</section>
|
|
2921
401
|
</div>
|
|
2922
|
-
|
|
2923
|
-
`,is:"app-header-layout",behaviors:[Oa],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return fo(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var e=this.header;if(this.isAttached&&e){this.$.wrapper.classList.remove("initializing"),e.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;var t=e.offsetHeight;this.hasScrollingRegion?(e.style.left="",e.style.right=""):requestAnimationFrame(function(){var t=this.getBoundingClientRect(),n=document.documentElement.clientWidth-t.right;e.style.left=t.left+"px",e.style.right=n+"px"}.bind(this));var n=this.$.contentContainer.style;e.fixed&&!e.condenses&&this.hasScrollingRegion?(n.marginTop=t+"px",n.paddingTop=""):(n.paddingTop=t+"px",n.marginTop="")}}});
|
|
2924
|
-
/**
|
|
2925
|
-
@license
|
|
2926
|
-
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
|
2927
|
-
This code may only be used under the BSD style license found at
|
|
2928
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
2929
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
2930
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
2931
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
2932
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
2933
|
-
*/
|
|
2934
|
-
const nc={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(e,t){if(this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null),t)if("document"===e)this.scrollTarget=this._doc;else if("string"==typeof e){var n=this.domHost;this.scrollTarget=n&&n.$?n.$[e]:fo(this.ownerDocument).querySelector("#"+e)}else this._isValidScrollTarget()&&(this._oldScrollTarget=e,this._toggleScrollListener(this._shouldHaveListener,e))},_scrollHandler:function(){},get _defaultScrollTarget(){return this._doc},get _doc(){return this.ownerDocument.documentElement},get _scrollTop(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageYOffset:this.scrollTarget.scrollTop:0},get _scrollLeft(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageXOffset:this.scrollTarget.scrollLeft:0},set _scrollTop(e){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,e):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=e)},set _scrollLeft(e){this.scrollTarget===this._doc?window.scrollTo(e,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=e)},scroll:function(e,t){var n;"object"==typeof e?(n=e.left,t=e.top):n=e,n=n||0,t=t||0,this.scrollTarget===this._doc?window.scrollTo(n,t):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=n,this.scrollTarget.scrollTop=t)},get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},_toggleScrollListener:function(e,t){var n=t===this._doc?window:t;e?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),n.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(n.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},toggleScrollListener:function(e){this._shouldHaveListener=e,this._toggleScrollListener(e,this.scrollTarget)}},ic={},rc=[nc,{properties:{effects:{type:String},effectsConfig:{type:Object,value:function(){return{}}},disabled:{type:Boolean,reflectToAttribute:!0,value:!1},threshold:{type:Number,value:0},thresholdTriggered:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0}},observers:["_effectsChanged(effects, effectsConfig, isAttached)"],_updateScrollState:function(e){},isOnScreen:function(){return!1},isContentBelow:function(){return!1},_effectsRunFn:null,_effects:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop)},attached:function(){this._scrollStateChanged()},detached:function(){this._tearDownEffects()},createEffect:function(e,t){var n=ic[e];if(!n)throw new ReferenceError(this._getUndefinedMsg(e));var i=this._boundEffect(n,t||{});return i.setUp(),i},_effectsChanged:function(e,t,n){this._tearDownEffects(),e&&n&&(e.split(" ").forEach((function(e){var n;""!==e&&((n=ic[e])?this._effects.push(this._boundEffect(n,t[e])):console.warn(this._getUndefinedMsg(e)))}),this),this._setUpEffect())},_layoutIfDirty:function(){return this.offsetWidth},_boundEffect:function(e,t){t=t||{};var n=parseFloat(t.startsAt||0),i=parseFloat(t.endsAt||1),r=i-n,s=function(){},o=0===n&&1===i?e.run:function(t,i){e.run.call(this,Math.max(0,(t-n)/r),i)};return{setUp:e.setUp?e.setUp.bind(this,t):s,run:e.run?o.bind(this):s,tearDown:e.tearDown?e.tearDown.bind(this):s}},_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach((function(e){!1!==e.setUp()&&this._effectsRunFn.push(e.run)}),this))},_tearDownEffects:function(){this._effects&&this._effects.forEach((function(e){e.tearDown()})),this._effectsRunFn=[],this._effects=[]},_runEffects:function(e,t){this._effectsRunFn&&this._effectsRunFn.forEach((function(n){n(e,t)}))},_scrollHandler:function(){this._scrollStateChanged()},_scrollStateChanged:function(){if(!this.disabled){var e=this._clampedScrollTop;this._updateScrollState(e),this.threshold>0&&this._setThresholdTriggered(e>=this.threshold)}},_getDOMRef:function(e){console.warn("_getDOMRef","`"+e+"` is undefined")},_getUndefinedMsg:function(e){return"Scroll effect `"+e+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+e+".html ?"}}];
|
|
2935
|
-
/**
|
|
2936
|
-
@license
|
|
2937
|
-
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
|
2938
|
-
This code may only be used under the BSD style license found at
|
|
2939
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
2940
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
2941
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
2942
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
2943
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
2944
|
-
*/
|
|
2945
|
-
/**
|
|
2946
|
-
@license
|
|
2947
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
2948
|
-
This code may only be used under the BSD style license found at
|
|
2949
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
2950
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
2951
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
2952
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
2953
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
2954
|
-
*/
|
|
2955
|
-
Mo({_template:ua`
|
|
2956
|
-
<style>
|
|
402
|
+
`}static get styles(){return a`
|
|
2957
403
|
:host {
|
|
2958
|
-
position: relative;
|
|
2959
404
|
display: block;
|
|
2960
|
-
|
|
2961
|
-
transition-property: -webkit-transform;
|
|
2962
|
-
transition-property: transform;
|
|
2963
|
-
}
|
|
2964
|
-
|
|
2965
|
-
:host::before {
|
|
2966
|
-
position: absolute;
|
|
2967
|
-
right: 0px;
|
|
2968
|
-
bottom: -5px;
|
|
2969
|
-
left: 0px;
|
|
2970
|
-
width: 100%;
|
|
2971
|
-
height: 5px;
|
|
2972
|
-
content: "";
|
|
2973
|
-
transition: opacity 0.4s;
|
|
2974
|
-
pointer-events: none;
|
|
2975
|
-
opacity: 0;
|
|
2976
|
-
box-shadow: inset 0px 5px 6px -3px rgba(0, 0, 0, 0.4);
|
|
2977
|
-
will-change: opacity;
|
|
2978
|
-
@apply --app-header-shadow;
|
|
2979
|
-
}
|
|
2980
|
-
|
|
2981
|
-
:host([shadow])::before {
|
|
2982
|
-
opacity: 1;
|
|
2983
|
-
}
|
|
2984
|
-
|
|
2985
|
-
#background {
|
|
2986
|
-
@apply --layout-fit;
|
|
2987
|
-
overflow: hidden;
|
|
405
|
+
min-height: 100vh;
|
|
2988
406
|
}
|
|
2989
407
|
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
background
|
|
408
|
+
.docs-layout {
|
|
409
|
+
position: relative;
|
|
410
|
+
display: grid;
|
|
411
|
+
grid-template-columns: 320px 1fr;
|
|
412
|
+
min-height: 100vh;
|
|
413
|
+
background: #fafafa;
|
|
2996
414
|
}
|
|
2997
415
|
|
|
2998
|
-
|
|
2999
|
-
|
|
416
|
+
.sidebar {
|
|
417
|
+
border-right: 1px solid rgba(0, 0, 0, 0.08);
|
|
418
|
+
padding: 1rem;
|
|
419
|
+
display: flex;
|
|
420
|
+
flex-direction: column;
|
|
421
|
+
gap: 1rem;
|
|
422
|
+
background: #fff;
|
|
423
|
+
z-index: 3;
|
|
3000
424
|
}
|
|
3001
425
|
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
@apply --app-header-background-rear-layer;
|
|
426
|
+
.sidebar__logo ::slotted(*) {
|
|
427
|
+
display: block;
|
|
3005
428
|
}
|
|
3006
429
|
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
430
|
+
.filter-toggle {
|
|
431
|
+
display: flex;
|
|
432
|
+
align-items: center;
|
|
433
|
+
gap: 0.5rem;
|
|
434
|
+
font-size: 0.9rem;
|
|
435
|
+
color: #333;
|
|
3011
436
|
}
|
|
3012
437
|
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
/* Silent scrolling should not run CSS transitions */
|
|
3018
|
-
:host([silent-scroll]),
|
|
3019
|
-
:host([silent-scroll])::after,
|
|
3020
|
-
:host([silent-scroll]) #backgroundFrontLayer,
|
|
3021
|
-
:host([silent-scroll]) #backgroundRearLayer {
|
|
3022
|
-
transition: none !important;
|
|
438
|
+
.filter-toggle input {
|
|
439
|
+
width: 16px;
|
|
440
|
+
height: 16px;
|
|
441
|
+
accent-color: #2196f3;
|
|
3023
442
|
}
|
|
3024
443
|
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
:host([silent-scroll]) ::slotted(app-toolbar:first-of-type),
|
|
3029
|
-
:host([silent-scroll]) ::slotted([sticky]) {
|
|
3030
|
-
transition: none !important;
|
|
444
|
+
pb-components-list {
|
|
445
|
+
flex: 1 1 auto;
|
|
446
|
+
overflow: auto;
|
|
3031
447
|
}
|
|
3032
448
|
|
|
3033
|
-
|
|
3034
|
-
<div id="contentContainer">
|
|
3035
|
-
<slot id="slot"></slot>
|
|
3036
|
-
</div>
|
|
3037
|
-
`,is:"app-header",behaviors:[rc,Oa],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,value:!1},reveals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0,value:!1}},observers:["_configChanged(isAttached, condenses, fixed)"],_height:0,_dHeight:0,_stickyElTop:0,_stickyElRef:null,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimestamp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeight:this._height+5},get _stickyEl(){if(this._stickyElRef)return this._stickyElRef;for(var e,t=fo(this.$.slot).getDistributedNodes(),n=0;e=t[n];n++)if(e.nodeType===Node.ELEMENT_NODE){if(e.hasAttribute("sticky")){this._stickyElRef=e;break}this._stickyElRef||(this._stickyElRef=e)}return this._stickyElRef},_configChanged:function(){this.resetLayout(),this._notifyLayoutChanged()},_updateLayoutStates:function(){if(0!==this.offsetWidth||0!==this.offsetHeight){var e=this._clampedScrollTop,t=0===this._height||0===e,n=this.disabled;this._height=this.offsetHeight,this._stickyElRef=null,this.disabled=!0,t||this._updateScrollState(0,!0),this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0,this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0,this._setUpEffect(),t?this._updateScrollState(e,!0):(this._updateScrollState(this._lastScrollTop,!0),this._layoutIfDirty()),this.disabled=n}},_updateScrollState:function(e,t){if(0!==this._height){var n=0,i=0,r=this._top;this._lastScrollTop;var s=this._maxHeaderTop,o=e-this._lastScrollTop,a=Math.abs(o),l=e>this._lastScrollTop,c=performance.now();if(this._mayMove()&&(i=this._clamp(this.reveals?r+o:e,0,s)),e>=this._dHeight&&(i=this.condenses&&!this.fixed?Math.max(this._dHeight,i):i,this.style.transitionDuration="0ms"),this.reveals&&!this.disabled&&a<100&&((c-this._initTimestamp>300||this._wasScrollingDown!==l)&&(this._initScrollTop=e,this._initTimestamp=c),e>=s))if(Math.abs(this._initScrollTop-e)>30||a>10){l&&e>=s?i=s:!l&&e>=this._dHeight&&(i=this.condenses&&!this.fixed?this._dHeight:0);var h=o/(c-this._lastTimestamp);this.style.transitionDuration=this._clamp((i-r)/h,0,300)+"ms"}else i=this._top;n=0===this._dHeight?e>0?1:0:i/this._dHeight,t||(this._lastScrollTop=e,this._top=i,this._wasScrollingDown=l,this._lastTimestamp=c),(t||n!==this._progress||r!==i||0===e)&&(this._progress=n,this._runEffects(n,i),this._transformHeader(i))}},_mayMove:function(){return this.condenses||!this.fixed},willCondense:function(){return this._dHeight>0&&this.condenses},isOnScreen:function(){return 0!==this._height&&this._top<this._height},isContentBelow:function(){return 0===this._top?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},_transformHeader:function(e){this.translate3d(0,-e+"px",0),this._stickyEl&&this.translate3d(0,this.condenses&&e>=this._stickyElTop?Math.min(e,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},_clamp:function(e,t,n){return Math.min(n,Math.max(t,e))},_ensureBgContainers:function(){this._bgContainer||(this._bgContainer=document.createElement("div"),this._bgContainer.id="background",this._bgRear=document.createElement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),fo(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},_getDOMRef:function(e){switch(e){case"backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case"backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case"background":return this._ensureBgContainers(),this._bgContainer;case"mainTitle":return fo(this).querySelector("[main-title]");case"condensedTitle":return fo(this).querySelector("[condensed-title]")}return null},getScrollState:function(){return{progress:this._progress,top:this._top}}}),
|
|
3038
|
-
/**
|
|
3039
|
-
@license
|
|
3040
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
3041
|
-
This code may only be used under the BSD style license found at
|
|
3042
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
3043
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
3044
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
3045
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
3046
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
3047
|
-
*/
|
|
3048
|
-
Mo({_template:ua`
|
|
3049
|
-
<style>
|
|
3050
|
-
|
|
3051
|
-
:host {
|
|
3052
|
-
@apply --layout-horizontal;
|
|
3053
|
-
@apply --layout-center;
|
|
449
|
+
.content {
|
|
3054
450
|
position: relative;
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
451
|
+
display: flex;
|
|
452
|
+
flex-direction: column;
|
|
453
|
+
min-width: 0;
|
|
454
|
+
background: #fff;
|
|
3059
455
|
}
|
|
3060
456
|
|
|
3061
|
-
|
|
3062
|
-
|
|
457
|
+
.drawer-toggle {
|
|
458
|
+
align-self: flex-end;
|
|
459
|
+
margin: 0.75rem 1rem 0;
|
|
460
|
+
padding: 0.35rem 0.75rem;
|
|
461
|
+
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
462
|
+
border-radius: 999px;
|
|
463
|
+
background: #fff;
|
|
464
|
+
color: #444;
|
|
465
|
+
font-size: 0.85rem;
|
|
466
|
+
cursor: pointer;
|
|
467
|
+
transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
|
|
3063
468
|
}
|
|
3064
469
|
|
|
3065
|
-
:
|
|
3066
|
-
|
|
3067
|
-
|
|
470
|
+
.drawer-toggle:hover,
|
|
471
|
+
.drawer-toggle:focus-visible {
|
|
472
|
+
background-color: rgba(33, 150, 243, 0.12);
|
|
473
|
+
border-color: rgba(33, 150, 243, 0.4);
|
|
474
|
+
color: #1565c0;
|
|
475
|
+
outline: none;
|
|
3068
476
|
}
|
|
3069
477
|
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
@apply --layout-flex;
|
|
478
|
+
pb-component-view {
|
|
479
|
+
flex: 1 1 auto;
|
|
480
|
+
min-height: 0;
|
|
3074
481
|
}
|
|
3075
482
|
|
|
3076
|
-
|
|
3077
|
-
position:
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
483
|
+
.backdrop {
|
|
484
|
+
position: fixed;
|
|
485
|
+
inset: 0;
|
|
486
|
+
background: rgba(0, 0, 0, 0.32);
|
|
487
|
+
z-index: 2;
|
|
3081
488
|
}
|
|
3082
489
|
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
left: 0;
|
|
3088
|
-
}
|
|
490
|
+
@media (min-width: 961px) {
|
|
491
|
+
.drawer-toggle {
|
|
492
|
+
display: none;
|
|
493
|
+
}
|
|
3089
494
|
|
|
3090
|
-
|
|
3091
|
-
|
|
495
|
+
.backdrop {
|
|
496
|
+
display: none;
|
|
497
|
+
}
|
|
3092
498
|
}
|
|
3093
|
-
</style>
|
|
3094
|
-
|
|
3095
|
-
<slot></slot>
|
|
3096
|
-
`,is:"app-toolbar"});var sc=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,i={},r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof s?new s(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var i,s;switch(n=n||{},r.util.type(t)){case"Object":if(s=r.util.objId(t),n[s])return n[s];for(var o in i={},n[s]=i,t)t.hasOwnProperty(o)&&(i[o]=e(t[o],n));return i;case"Array":return s=r.util.objId(t),n[s]?n[s]:(i=[],n[s]=i,t.forEach((function(t,r){i[r]=e(t,n)})),i);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(i){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(i.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var i="no-"+t;e;){var r=e.classList;if(r.contains(t))return!0;if(r.contains(i))return!1;e=e.parentElement}return!!n}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var i in t)n[i]=t[i];return n},insertBefore:function(e,t,n,i){var s=(i=i||r.languages)[e],o={};for(var a in s)if(s.hasOwnProperty(a)){if(a==t)for(var l in n)n.hasOwnProperty(l)&&(o[l]=n[l]);n.hasOwnProperty(a)||(o[a]=s[a])}var c=i[e];return i[e]=o,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=o)})),o},DFS:function e(t,n,i,s){s=s||{};var o=r.util.objId;for(var a in t)if(t.hasOwnProperty(a)){n.call(t,a,t[a],i||a);var l=t[a],c=r.util.type(l);"Object"!==c||s[o(l)]?"Array"!==c||s[o(l)]||(s[o(l)]=!0,e(l,n,a,s)):(s[o(l)]=!0,e(l,n,null,s))}}},plugins:{},highlightAll:function(e,t){r.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var i={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),r.hooks.run("before-all-elements-highlight",i);for(var s,o=0;s=i.elements[o++];)r.highlightElement(s,!0===t,i.callback)},highlightElement:function(t,n,i){var s=r.util.getLanguage(t),o=r.languages[s];r.util.setLanguage(t,s);var a=t.parentElement;a&&"pre"===a.nodeName.toLowerCase()&&r.util.setLanguage(a,s);var l={element:t,language:s,grammar:o,code:t.textContent};function c(e){l.highlightedCode=e,r.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,r.hooks.run("after-highlight",l),r.hooks.run("complete",l),i&&i.call(l.element)}if(r.hooks.run("before-sanity-check",l),(a=l.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),!l.code)return r.hooks.run("complete",l),void(i&&i.call(l.element));if(r.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var h=new Worker(r.filename);h.onmessage=function(e){c(e.data)},h.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(r.highlight(l.code,l.grammar,l.language));else c(r.util.encode(l.code))},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),s.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var i in n)t[i]=n[i];delete t.rest}var r=new l;return c(r,r.head,e),a(e,r,t,r.head,0),d(r)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var i,s=0;i=n[s++];)i(t)}},Token:s};function s(e,t,n,i){this.type=e,this.content=t,this.alias=n,this.length=0|(i||"").length}function o(e,t,n,i){e.lastIndex=t;var r=e.exec(n);if(r&&i&&r[1]){var s=r[1].length;r.index+=s,r[0]=r[0].slice(s)}return r}function a(e,t,n,i,l,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var u=n[p];u=Array.isArray(u)?u:[u];for(var f=0;f<u.length;++f){if(d&&d.cause==p+","+f)return;var m=u[f],g=m.inside,_=!!m.lookbehind,y=!!m.greedy,b=m.alias;if(y&&!m.pattern.global){var v=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,v+"g")}for(var w=m.pattern||m,x=i.next,k=l;x!==t.tail&&!(d&&k>=d.reach);k+=x.value.length,x=x.next){var S=x.value;if(t.length>e.length)return;if(!(S instanceof s)){var C,A=1;if(y){if(!(C=o(w,k,e,_))||C.index>=e.length)break;var P=C.index,T=C.index+C[0].length,E=k;for(E+=x.value.length;P>=E;)E+=(x=x.next).value.length;if(k=E-=x.value.length,x.value instanceof s)continue;for(var O=x;O!==t.tail&&(E<T||"string"==typeof O.value);O=O.next)A++,E+=O.value.length;A--,S=e.slice(k,E),C.index-=k}else if(!(C=o(w,0,S,_)))continue;P=C.index;var N=C[0],R=S.slice(0,P),z=S.slice(P+N.length),I=k+S.length;d&&I>d.reach&&(d.reach=I);var D=x.prev;if(R&&(D=c(t,D,R),k+=R.length),h(t,D,A),x=c(t,D,new s(p,g?r.tokenize(N,g):N,b,N)),z&&c(t,x,z),A>1){var M={cause:p+","+f,reach:I};a(e,t,n,x.prev,k,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var i=t.next,r={value:n,prev:t,next:i};return t.next=r,i.prev=r,e.length++,r}function h(e,t,n){for(var i=t.next,r=0;r<n&&i!==e.tail;r++)i=i.next;t.next=i,i.prev=t,e.length-=r}function d(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}if(e.Prism=r,s.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var i="";return t.forEach((function(t){i+=e(t,n)})),i}var s={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(s.classes,o):s.classes.push(o)),r.hooks.run("wrap",s);var a="";for(var l in s.attributes)a+=" "+l+'="'+(s.attributes[l]||"").replace(/"/g,""")+'"';return"<"+s.tag+' class="'+s.classes.join(" ")+'"'+a+">"+s.content+"</"+s.tag+">"},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),i=n.language,s=n.code,o=n.immediateClose;e.postMessage(r.highlight(s,r.languages[i],i)),o&&e.close()}),!1),r):r;var p=r.util.currentScript();function u(){r.manual||r.highlightAll()}if(p&&(r.filename=p.src,p.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var f=document.readyState;"loading"===f||"interactive"===f&&p&&p.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return r}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
3097
|
-
/**
|
|
3098
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
3099
|
-
*
|
|
3100
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
3101
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
3102
|
-
* @namespace
|
|
3103
|
-
* @public
|
|
3104
|
-
*/function oc(e){const t=document.querySelector("script[src*=pb-components]");return t?new URL(e,t.src).href:new URL(e,window.location.href).href}function ac(e,t,n){const i=getComputedStyle(e).getPropertyValue(t);if(i)try{return JSON.parse(i)}catch(e){return n}return n}"undefined"!=typeof module&&module.exports&&(module.exports=sc),"undefined"!=typeof global&&(global.Prism=sc),sc.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},sc.languages.markup.tag.inside["attr-value"].inside.entity=sc.languages.markup.entity,sc.languages.markup.doctype.inside["internal-subset"].inside=sc.languages.markup,sc.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(sc.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:sc.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};i["language-"+t]={pattern:/[\s\S]+/,inside:sc.languages[t]};var r={};r[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},sc.languages.insertBefore("markup","cdata",r)}}),Object.defineProperty(sc.languages.markup.tag,"addAttribute",{value:function(e,t){sc.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:sc.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),sc.languages.html=sc.languages.markup,sc.languages.mathml=sc.languages.markup,sc.languages.svg=sc.languages.markup,sc.languages.xml=sc.languages.extend("markup",{}),sc.languages.ssml=sc.languages.xml,sc.languages.atom=sc.languages.xml,sc.languages.rss=sc.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(sc),sc.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},sc.languages.javascript=sc.languages.extend("clike",{"class-name":[sc.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),sc.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,sc.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:sc.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:sc.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:sc.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:sc.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:sc.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),sc.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:sc.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),sc.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),sc.languages.markup&&(sc.languages.markup.tag.addInlined("script","javascript"),sc.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),sc.languages.js=sc.languages.javascript,function(){if(void 0!==sc&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e="Loading…",t=function(e,t){return"✖ Error "+e+" while fetching file: "+t},n="✖ Error: File does not exist or is empty",i={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",s="loading",o="loaded",a="failed",l="pre[data-src]:not(["+r+'="'+o+'"]):not(['+r+'="'+s+'"])';sc.hooks.add("before-highlightall",(function(e){e.selector+=", "+l})),sc.hooks.add("before-sanity-check",(function(t){var n=t.element;if(n.matches(l)){t.code="",n.setAttribute(r,s);var c=n.appendChild(document.createElement("CODE"));c.textContent=e;var p=n.getAttribute("data-src"),u=t.language;if("none"===u){var f=(/\.(\w+)$/.exec(p)||[,"none"])[1];u=i[f]||f}sc.util.setLanguage(c,u),sc.util.setLanguage(n,u);var m=sc.plugins.autoloader;m&&m.loadLanguages(u),h(p,(function(e){n.setAttribute(r,o);var t=d(n.getAttribute("data-range"));if(t){var i=e.split(/\r\n?|\n/g),s=t[0],a=null==t[1]?i.length:t[1];s<0&&(s+=i.length),s=Math.max(0,Math.min(s-1,i.length)),a<0&&(a+=i.length),a=Math.max(0,Math.min(a,i.length)),e=i.slice(s,a).join("\n"),n.hasAttribute("data-start")||n.setAttribute("data-start",String(s+1))}c.textContent=e,sc.highlightElement(c)}),(function(e){n.setAttribute(r,a),c.textContent=e}))}})),sc.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(l),i=0;t=n[i++];)sc.highlightElement(t)}};var c=!1;sc.fileHighlight=function(){c||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),c=!0),sc.plugins.fileHighlight.highlight.apply(this,arguments)}}function h(e,i,r){var s=new XMLHttpRequest;s.open("GET",e,!0),s.onreadystatechange=function(){4==s.readyState&&(s.status<400&&s.responseText?i(s.responseText):s.status>=400?r(t(s.status,s.statusText)):r(n))},s.send(null)}function d(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),i=t[2],r=t[3];return i?r?[n,Number(r)]:[n,void 0]:[n,n]}}}(),function(e){e.languages.xquery=e.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),e.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,e.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,e.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:e.languages.xquery,alias:"language-xquery"};var t=function(e){return"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(t).join("")},n=function(i){for(var r=[],s=0;s<i.length;s++){var o=i[s],a=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?r.length>0&&r[r.length-1].tagName===t(o.content[0].content[1])&&r.pop():"/>"===o.content[o.content.length-1].content||r.push({tagName:t(o.content[0].content[1]),openedBraces:0}):!(r.length>0&&"punctuation"===o.type&&"{"===o.content)||i[s+1]&&"punctuation"===i[s+1].type&&"{"===i[s+1].content||i[s-1]&&"plain-text"===i[s-1].type&&"{"===i[s-1].content?r.length>0&&r[r.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?r[r.length-1].openedBraces--:"comment"!==o.type&&(a=!0):r[r.length-1].openedBraces++),(a||"string"==typeof o)&&r.length>0&&0===r[r.length-1].openedBraces){var l=t(o);s<i.length-1&&("string"==typeof i[s+1]||"plain-text"===i[s+1].type)&&(l+=t(i[s+1]),i.splice(s+1,1)),s>0&&("string"==typeof i[s-1]||"plain-text"===i[s-1].type)&&(l=t(i[s-1])+l,i.splice(s-1,1),s--),/^\s+$/.test(l)?i[s]=l:i[s]=new e.Token("plain-text",l,null,l)}o.content&&"string"!=typeof o.content&&n(o.content)}};e.hooks.add("after-tokenize",(function(e){"xquery"===e.language&&n(e.tokens)}))}(Prism),function(){if("undefined"!=typeof Prism){var e=Object.assign||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},t={"remove-trailing":"boolean","remove-indent":"boolean","left-trim":"boolean","right-trim":"boolean","break-lines":"number",indent:"number","remove-initial-line-feed":"boolean","tabs-to-spaces":"number","spaces-to-tabs":"number"};n.prototype={setDefaults:function(t){this.defaults=e(this.defaults,t)},normalize:function(t,n){for(var r in n=e(this.defaults,n)){var s=i(r);"normalize"!==r&&"setDefaults"!==s&&n[r]&&this[s]&&(t=this[s].call(this,t,n[r]))}return t},leftTrim:function(e){return e.replace(/^\s+/,"")},rightTrim:function(e){return e.replace(/\s+$/,"")},tabsToSpaces:function(e,t){return t=0|t||4,e.replace(/\t/g,new Array(++t).join(" "))},spacesToTabs:function(e,t){return t=0|t||4,e.replace(RegExp(" {"+t+"}","g"),"\t")},removeTrailing:function(e){return e.replace(/\s*?$/gm,"")},removeInitialLineFeed:function(e){return e.replace(/^(?:\r?\n|\r)/,"")},removeIndent:function(e){var t=e.match(/^[^\S\n\r]*(?=\S)/gm);return t&&t[0].length?(t.sort((function(e,t){return e.length-t.length})),t[0].length?e.replace(RegExp("^"+t[0],"gm"),""):e):e},indent:function(e,t){return e.replace(/^[^\S\n\r]*(?=\S)/gm,new Array(++t).join("\t")+"$&")},breakLines:function(e,t){t=!0===t?80:0|t||80;for(var n=e.split("\n"),i=0;i<n.length;++i)if(!(r(n[i])<=t)){for(var s=n[i].split(/(\s+)/g),o=0,a=0;a<s.length;++a){var l=r(s[a]);(o+=l)>t&&(s[a]="\n"+s[a],o=l)}n[i]=s.join("")}return n.join("\n")}},"undefined"!=typeof module&&module.exports&&(module.exports=n),Prism.plugins.NormalizeWhitespace=new n({"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),Prism.hooks.add("before-sanity-check",(function(e){var n=Prism.plugins.NormalizeWhitespace;if((!e.settings||!1!==e.settings["whitespace-normalization"])&&Prism.util.isActive(e.element,"whitespace-normalization",!0))if(e.element&&e.element.parentNode||!e.code){var i=e.element.parentNode;if(e.code&&i&&"pre"===i.nodeName.toLowerCase()){for(var r in null==e.settings&&(e.settings={}),t)if(Object.hasOwnProperty.call(t,r)){var s=t[r];if(i.hasAttribute("data-"+r))try{var o=JSON.parse(i.getAttribute("data-"+r)||"true");typeof o===s&&(e.settings[r]=o)}catch(e){}}for(var a=i.childNodes,l="",c="",h=!1,d=0;d<a.length;++d){var p=a[d];p==e.element?h=!0:"#text"===p.nodeName&&(h?c+=p.nodeValue:l+=p.nodeValue,i.removeChild(p),--d)}if(e.element.children.length&&Prism.plugins.KeepMarkup){var u=l+e.element.innerHTML+c;e.element.innerHTML=n.normalize(u,e.settings),e.code=e.element.textContent}else e.code=l+e.code+c,e.code=n.normalize(e.code,e.settings)}}else e.code=n.normalize(e.code,e.settings)}))}function n(t){this.defaults=e({},t)}function i(e){return e.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))}function r(e){for(var t=0,n=0;n<e.length;++n)e.charCodeAt(n)=="\t".charCodeAt(0)&&(t+=3);return e.length+t}}(),function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document){var e="line-numbers",t=/\n(?!$)/g,n=Prism.plugins.lineNumbers={getLine:function(t,n){if("PRE"===t.tagName&&t.classList.contains(e)){var i=t.querySelector(".line-numbers-rows");if(i){var r=parseInt(t.getAttribute("data-start"),10)||1,s=r+(i.children.length-1);n<r&&(n=r),n>s&&(n=s);var o=n-r;return i.children[o]}}},resize:function(e){r([e])},assumeViewportIndependence:!0},i=void 0;window.addEventListener("resize",(function(){n.assumeViewportIndependence&&i===window.innerWidth||(i=window.innerWidth,r(Array.prototype.slice.call(document.querySelectorAll("pre."+e))))})),Prism.hooks.add("complete",(function(n){if(n.code){var i=n.element,s=i.parentNode;if(s&&/pre/i.test(s.nodeName)&&!i.querySelector(".line-numbers-rows")&&Prism.util.isActive(i,e)){i.classList.remove(e),s.classList.add(e);var o,a=n.code.match(t),l=a?a.length+1:1,c=new Array(l+1).join("<span></span>");(o=document.createElement("span")).setAttribute("aria-hidden","true"),o.className="line-numbers-rows",o.innerHTML=c,s.hasAttribute("data-start")&&(s.style.counterReset="linenumber "+(parseInt(s.getAttribute("data-start"),10)-1)),n.element.appendChild(o),r([s]),Prism.hooks.run("line-numbers",n)}}})),Prism.hooks.add("line-numbers",(function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}))}function r(e){if(0!=(e=e.filter((function(e){var t=s(e)["white-space"];return"pre-wrap"===t||"pre-line"===t}))).length){var n=e.map((function(e){var n=e.querySelector("code"),i=e.querySelector(".line-numbers-rows");if(n&&i){var r=e.querySelector(".line-numbers-sizer"),s=n.textContent.split(t);r||((r=document.createElement("span")).className="line-numbers-sizer",n.appendChild(r)),r.innerHTML="0",r.style.display="block";var o=r.getBoundingClientRect().height;return r.innerHTML="",{element:e,lines:s,lineHeights:[],oneLinerHeight:o,sizer:r}}})).filter(Boolean);n.forEach((function(e){var t=e.sizer,n=e.lines,i=e.lineHeights,r=e.oneLinerHeight;i[n.length-1]=void 0,n.forEach((function(e,n){if(e&&e.length>1){var s=t.appendChild(document.createElement("span"));s.style.display="block",s.textContent=e}else i[n]=r}))})),n.forEach((function(e){for(var t=e.sizer,n=e.lineHeights,i=0,r=0;r<n.length;r++)void 0===n[r]&&(n[r]=t.children[i++].getBoundingClientRect().height)})),n.forEach((function(e){var t=e.sizer,n=e.element.querySelector(".line-numbers-rows");t.style.display="none",t.innerHTML="",e.lineHeights.forEach((function(e,t){n.children[t].style.height=e+"px"}))}))}}function s(e){return e?window.getComputedStyle?getComputedStyle(e):e.currentStyle||null:null}}(),window.TeiPublisher||(window.TeiPublisher={},TeiPublisher.url=new URL(window.location.href));const lc=new Map;function cc(e,t){lc.has(e)?t(lc.get(e)):document.addEventListener(e,n=>{lc.set(e,n.detail),t(n.detail)},{once:!0})}!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,i="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,s=Array.prototype.forEach,o=/@import.+?;?$/gm,a=["addRule","deleteRule","insertRule","removeRule"],l=CSSStyleSheet.prototype;l.replace=function(){return Promise.reject(new i("Can't call replace on non-constructed CSSStyleSheets."))},l.replaceSync=function(){throw new i("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var c=new WeakMap,h=new WeakMap,d=new WeakMap,p=new WeakMap,u=D.prototype;u.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},u.replaceSync=function(e){if(I(this),"string"==typeof e){var t=this;c.get(t).textContent=x(e),p.set(t,[]),h.get(t).forEach((function(e){e.isConnected()&&z(t,N(t,e))}))}},r(u,"cssRules",{configurable:!0,enumerable:!0,get:function(){return I(this),c.get(this).sheet.cssRules}}),r(u,"media",{configurable:!0,enumerable:!0,get:function(){return I(this),c.get(this).sheet.media}}),a.forEach((function(e){u[e]=function(){var t=this;I(t);var n=arguments;p.get(t).push({method:e,args:n}),h.get(t).forEach((function(i){if(i.isConnected()){var r=N(t,i).sheet;r[e].apply(r,n)}}));var i=c.get(t).sheet;return i[e].apply(i,n)}})),r(D,Symbol.hasInstance,{configurable:!0,value:T});var f={childList:!0,subtree:!0},m=new WeakMap,g=new WeakMap,_=new WeakMap,y=new WeakMap;if(j.prototype={isConnected:function(){var e=g.get(this);return e instanceof Document?"loading"!==e.readyState:k(e.host)},connect:function(){var e=H(this);y.get(this).observe(e,f),_.get(this).length>0&&$(this),F(e,(function(e){M(e).connect()}))},disconnect:function(){y.get(this).disconnect()},update:function(e){var t=this,n=g.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(T))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var i=_.get(t),r=S(e);C(i,r).forEach((function(e){A(N(e,t)),R(e,t)})),_.set(t,r),t.isConnected()&&r.length>0&&$(t)}},window.CSSStyleSheet=D,L(Document),"ShadowRoot"in window){L(ShadowRoot);var b=Element.prototype,v=b.attachShadow;b.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=M(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function x(e){var t=e.replace(o,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}function k(e){return"isConnected"in e?e.isConnected:document.contains(e)}function S(e){return e.filter((function(t,n){return e.indexOf(t)===n}))}function C(e,t){return e.filter((function(e){return-1===t.indexOf(e)}))}function A(e){e.parentNode.removeChild(e)}function P(e){return e.shadowRoot||n.get(e)}function T(e){return"object"==typeof e&&(u.isPrototypeOf(e)||l.isPrototypeOf(e))}function E(e){return"object"==typeof e&&l.isPrototypeOf(e)}function O(e,t){var n=document.createElement("style");return d.get(e).set(t,n),h.get(e).push(t),n}function N(e,t){return d.get(e).get(t)}function R(e,t){d.get(e).delete(t),h.set(e,h.get(e).filter((function(e){return e!==t})))}function z(e,t){requestAnimationFrame((function(){t.textContent=c.get(e).textContent,p.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function I(e){if(!c.has(e))throw new TypeError("Illegal invocation")}function D(){var e=this,n=document.createElement("style");t.body.appendChild(n),c.set(e,n),h.set(e,[]),d.set(e,new WeakMap),p.set(e,[])}function M(e){var t=m.get(e);return t||(t=new j(e),m.set(e,t)),t}function L(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return M(this).sheets},set:function(e){M(this).update(e)}})}function F(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return P(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),i=void 0;i=n.nextNode();)t(P(i))}function B(e,t){return t instanceof HTMLStyleElement&&_.get(e).some((function(t){return N(t,e)}))}function H(e){var t=g.get(e);return t instanceof Document?t.body:t}function $(e){var t=document.createDocumentFragment(),n=_.get(e),i=y.get(e),r=H(e);i.disconnect(),n.forEach((function(n){t.appendChild(N(n,e)||O(n,e))})),r.insertBefore(t,null),i.observe(r,f),n.forEach((function(t){z(t,N(t,e))}))}function j(t){var n=this;n.sheets=[],g.set(n,t),_.set(n,[]),y.set(n,new MutationObserver((function(t,i){document?t.forEach((function(t){e||s.call(t.addedNodes,(function(e){e instanceof Element&&F(e,(function(e){M(e).connect()}))})),s.call(t.removedNodes,(function(t){t instanceof Element&&(B(n,t)&&$(n),e||F(t,(function(e){M(e).disconnect()})))}))})):i.disconnect()})))}}();const hc=new Map;function dc(e){const t=document.querySelector("pb-page");if(!t)return null;const n=t.stylesheet;if(!n)return null;const i=uc(e).join("|");if(hc.has(i))return hc.get(i);const r=new RegExp(`^(${i})\\b`);let s=null;const o=pc(n.cssRules,r,[]);return o.length>0&&(s=new CSSStyleSheet,s.replaceSync(o.join(""))),console.log("<theming> caching stylesheet for %s",i),hc.set(i,s),s}function pc(e,t,n){for(let i=0;i<e.length;i++){const r=e[i];if(r instanceof CSSStyleRule){if(t.test(r.selectorText)){const e=r.cssText.replace(t,":host($1) ");n.push(e)}}else r instanceof CSSMediaRule?(n.push(`\n@media ${r.conditionText} {\n`),pc(r.cssRules,t,n),n.push("\n}\n")):r instanceof CSSFontFaceRule||n.push(r.cssText)}return n}function uc(e){const t=[e.localName];return e.id&&t.push("#"+e.id),e.classList.forEach(e=>t.push("."+e)),t}const fc=e=>class extends e{connectedCallback(){super.connectedCallback(),cc("pb-page-ready",e=>{const t=dc(this);t&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,t])})}},mc=new Map;function gc(e){const t="default"===e?"prism.css":`prism-${e}.css`;if(mc.has(t))return console.log("Using cached theme: %s",t),mc.get(t);const n=new Promise(n=>{const i=oc("../css/prismjs/")+t;console.log("<pb-code-highlight> loading theme %s from %s",e,i),fetch(i).then(e=>e.text()).catch(()=>n("")).then(e=>{n(j`<style>${e}</style>`)})});return mc.set(t,n),n}class _c extends(fc(ue)){static get properties(){return{language:{type:String},code:{type:String},theme:{type:String},lineNumbers:{type:Boolean,attribute:"line-numbers"},_themeStyles:{type:String}}}constructor(){super(),this.language="xml",this.theme="default",this.lineNumbers=!1,this._themeStyles=null}connectedCallback(){super.connectedCallback();let e=this.getAttribute("theme");null===e&&(e=ac(this,"--pb-code-highlight-theme","default"),this.setAttribute("theme",e))}firstUpdated(){if(super.firstUpdated(),!this.code){const e=this.querySelector("template");this.code=e?Prism.plugins.NormalizeWhitespace.normalize(e.innerHTML):Prism.plugins.NormalizeWhitespace.normalize(this.textContent)}}attributeChangedCallback(e,t,n){switch(super.attributeChangedCallback(e,t,n),e){case"theme":gc(n).then(e=>{this._themeStyles=e})}}updated(e){if(super.updated(e),e.has("code")){const e=this.shadowRoot.getElementById("pb-code-highlight");if(null!=e){const t=document.createElement("code");t.textContent=this.code,e.replaceChildren(t)}this.highlight()}}highlight(){Prism.highlightAllUnder(this.shadowRoot)}render(){return this.code?j`
|
|
3105
|
-
${this._themeStyles}
|
|
3106
|
-
<pre id="pb-code-highlight" class="${this.lineNumbers?"line-numbers":""} language-${this.language}"><code>${this.code}</code></pre>
|
|
3107
|
-
`:j`<pre class="line-numbers"><code><code></pre>`}static get styles(){return de`
|
|
3108
|
-
:host {
|
|
3109
|
-
display: block;
|
|
3110
|
-
}
|
|
3111
|
-
pre[class*='language-'] {
|
|
3112
|
-
margin: 0;
|
|
3113
|
-
}
|
|
3114
|
-
code[class*='language-'] {
|
|
3115
|
-
white-space: var(--pb-code-highlight-white-space, pre);
|
|
3116
|
-
}
|
|
3117
|
-
pre.line-numbers {
|
|
3118
|
-
position: relative;
|
|
3119
|
-
padding-left: 3.8em;
|
|
3120
|
-
counter-reset: linenumber;
|
|
3121
|
-
}
|
|
3122
|
-
|
|
3123
|
-
pre.line-numbers > code {
|
|
3124
|
-
position: relative;
|
|
3125
|
-
white-space: inherit;
|
|
3126
|
-
}
|
|
3127
|
-
|
|
3128
|
-
.line-numbers .line-numbers-rows {
|
|
3129
|
-
position: absolute;
|
|
3130
|
-
pointer-events: none;
|
|
3131
|
-
top: 0;
|
|
3132
|
-
font-size: 100%;
|
|
3133
|
-
left: -3.8em;
|
|
3134
|
-
width: 3em; /* works for line-numbers below 1000 lines */
|
|
3135
|
-
letter-spacing: -1px;
|
|
3136
|
-
border-right: 1px solid #999;
|
|
3137
499
|
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
}
|
|
3144
|
-
|
|
3145
|
-
.line-numbers-rows > span {
|
|
3146
|
-
pointer-events: none;
|
|
3147
|
-
display: block;
|
|
3148
|
-
counter-increment: linenumber;
|
|
3149
|
-
height: auto !important;
|
|
3150
|
-
}
|
|
3151
|
-
|
|
3152
|
-
.line-numbers-rows > span:before {
|
|
3153
|
-
content: counter(linenumber);
|
|
3154
|
-
color: #999;
|
|
3155
|
-
display: block;
|
|
3156
|
-
padding-right: 0.8em;
|
|
3157
|
-
text-align: right;
|
|
3158
|
-
}
|
|
3159
|
-
`}}customElements.define("pb-code-highlight",_c);const yc=new window.marked.Renderer;function bc(e){return e?j`${bl(window.marked(e))}`:null}function vc(e,t,n=!1){return t?j`
|
|
3160
|
-
<section>
|
|
3161
|
-
<h2>${e}</h2>
|
|
3162
|
-
<table>
|
|
3163
|
-
<thead>
|
|
3164
|
-
<tr>
|
|
3165
|
-
<th>Name</th>
|
|
3166
|
-
<th>Description</th>
|
|
3167
|
-
${n?j`<th>Default</th>`:null}
|
|
3168
|
-
</tr>
|
|
3169
|
-
</thead>
|
|
3170
|
-
<tbody>
|
|
3171
|
-
${t.map(e=>j`<tr>
|
|
3172
|
-
<td>${e.name}</td>
|
|
3173
|
-
<td>${bc(e.description)}</td>
|
|
3174
|
-
${n?j`<td>${e.default}</td>`:null}</tr>`)}
|
|
3175
|
-
</tbody>
|
|
3176
|
-
</table>
|
|
3177
|
-
</section>
|
|
3178
|
-
`:null}yc.code=function(e,t,n){return`<pb-code-highlight language="${t}" line-numbers>\n <template>${e}</template>\n </pb-code-highlight>`},window.marked.setOptions({renderer:yc});class wc extends ue{static get properties(){return{defaultTitle:{type:String,attribute:"default-title"},_target:{type:String,reflect:!0},_api:{type:String,reflect:!0},_component:{type:Object},_tab:{type:Number}}}constructor(){super(),this._tab=0,this._component=null,this.defaultTitle="Webcomponents API"}show(e,t=0){this._tab=t,this._component=e}clear(){this._component=null,this._tab=0}render(){return j`
|
|
3179
|
-
<app-header-layout>
|
|
3180
|
-
<app-header>
|
|
3181
|
-
<app-toolbar>
|
|
3182
|
-
${this._component?j`<h1 main-title><${this._component.name}><span class="path">${this._component.path}</span></h1>`:j`<h1 main-title>${this.defaultTitle}</h1>`}
|
|
3183
|
-
</app-toolbar>
|
|
3184
|
-
</app-header>
|
|
3185
|
-
${this._component?j`<vaadin-tabs id="tabs" selected="${this._tab}">
|
|
3186
|
-
<vaadin-tab @click="${this._showApi}">API</vaadin-tab>
|
|
3187
|
-
${this._renderDemoTabs()}
|
|
3188
|
-
</vaadin-tabs>`:null}
|
|
3189
|
-
<main>
|
|
3190
|
-
${0===this._tab?j`
|
|
3191
|
-
<div id="api">
|
|
3192
|
-
${this._component?j`
|
|
3193
|
-
<p class="description">
|
|
3194
|
-
${bc(this._component.description)}
|
|
3195
|
-
</p>
|
|
3196
|
-
${vc("Slots",this._component.slots)}
|
|
3197
|
-
${this._renderPropertiesSection()}
|
|
3198
|
-
${vc("Events",this._component.events)}
|
|
3199
|
-
${vc("CSS Properties",this._component.cssProperties,!0)}
|
|
3200
|
-
${vc("CSS Parts",this._component.cssParts)}
|
|
3201
|
-
`:null}
|
|
3202
|
-
</div>`:j`<iframe id="iframe" class="${this._tab>0?"":"hidden"}" src="${this._getDemo()}"></iframe>`}
|
|
3203
|
-
</main>
|
|
3204
|
-
</app-header-layout>
|
|
3205
|
-
`}_renderPropertiesSection(){return this._component.properties?j`<section><h2>Properties</h2>${this._renderProperties()}</section>`:null}_renderDemoTabs(){return this._component.demo?Object.values(this._component.demo).map((e,t)=>j`<vaadin-tab @click="${()=>this._showDemo(t+1)}">${e}</vaadin-tab>`):null}_renderProperties(){return this._component.properties.map(e=>j`
|
|
3206
|
-
<div class="property">
|
|
3207
|
-
<table>
|
|
3208
|
-
<thead>
|
|
3209
|
-
<tr>
|
|
3210
|
-
<th>Name</th>
|
|
3211
|
-
<th>Attribute</th>
|
|
3212
|
-
<th>Type</th>
|
|
3213
|
-
<th>Default</th>
|
|
3214
|
-
</tr>
|
|
3215
|
-
</thead>
|
|
3216
|
-
<tbody>
|
|
3217
|
-
<tr>
|
|
3218
|
-
<td>${e.name}</td>
|
|
3219
|
-
<td>${e.attribute?e.attribute:e.name}</td>
|
|
3220
|
-
<td>${e.type}</td>
|
|
3221
|
-
<td>${e.default?e.default:"undefined"}</td>
|
|
3222
|
-
</tr>
|
|
3223
|
-
</tbody>
|
|
3224
|
-
</table>
|
|
3225
|
-
${e.description?j`<p>${bc(e.description)}</p>`:null}
|
|
3226
|
-
</div>
|
|
3227
|
-
`)}_getDemo(){if(0===this._tab)return null;const e=Object.keys(this._component.demo)[this._tab-1];return this._target?`${e}?_target=${this._target}&_api=${this._api}`:e}_showDemo(e){this._tab=e,this._pushState()}_showApi(){this._tab=0,this._pushState()}_pushState(){const e=`#${this._component.name}.${this._tab}`;history.pushState({component:this._component,tab:this._tab},"view component",e)}static get styles(){return de`
|
|
3228
|
-
:host {
|
|
3229
|
-
display: block;
|
|
3230
|
-
height: 100vh;
|
|
3231
|
-
}
|
|
3232
|
-
|
|
3233
|
-
main {
|
|
3234
|
-
height: calc(100vh - 108px);
|
|
3235
|
-
overflow: auto;
|
|
3236
|
-
}
|
|
3237
|
-
.hidden {
|
|
3238
|
-
display: none;
|
|
3239
|
-
}
|
|
3240
|
-
|
|
3241
|
-
section {
|
|
3242
|
-
margin-bottom: 1.5em;
|
|
3243
|
-
}
|
|
3244
|
-
|
|
3245
|
-
h1, h2 {
|
|
3246
|
-
font-family: "Oswald",Verdana,"Helvetica", sans-serif;
|
|
3247
|
-
font-weight: 400;
|
|
3248
|
-
line-height: 1.2;
|
|
3249
|
-
}
|
|
3250
|
-
|
|
3251
|
-
h1 {
|
|
3252
|
-
font-size: 28px;
|
|
3253
|
-
font-weight: normal;
|
|
3254
|
-
}
|
|
3255
|
-
|
|
3256
|
-
.path {
|
|
3257
|
-
font-size: 16px;
|
|
3258
|
-
font-weight: 100;
|
|
3259
|
-
padding-left: 2em;
|
|
3260
|
-
vertical-align: middle;
|
|
3261
|
-
}
|
|
3262
|
-
app-toolbar {
|
|
3263
|
-
background-color: var(--pb-header-background-color);
|
|
3264
|
-
color: var(--pb-header-color);
|
|
3265
|
-
padding: 0;
|
|
3266
|
-
}
|
|
3267
|
-
|
|
3268
|
-
app-header {
|
|
3269
|
-
width: 100%;
|
|
3270
|
-
height: 64px;
|
|
3271
|
-
}
|
|
3272
|
-
|
|
3273
|
-
#api {
|
|
3274
|
-
margin-left: 10px;
|
|
3275
|
-
margin-right: 20px;
|
|
3276
|
-
}
|
|
3277
|
-
|
|
3278
|
-
iframe {
|
|
3279
|
-
border: 0;
|
|
3280
|
-
width: 100%;
|
|
3281
|
-
height: 100%;
|
|
3282
|
-
}
|
|
500
|
+
@media (max-width: 960px) {
|
|
501
|
+
.docs-layout {
|
|
502
|
+
grid-template-columns: 1fr;
|
|
503
|
+
}
|
|
3283
504
|
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
505
|
+
.sidebar {
|
|
506
|
+
position: fixed;
|
|
507
|
+
inset: 0 auto 0 0;
|
|
508
|
+
width: min(320px, 80vw);
|
|
509
|
+
max-width: 100%;
|
|
510
|
+
transform: translateX(-100%);
|
|
511
|
+
transition: transform 160ms ease;
|
|
512
|
+
box-shadow: 4px 0 12px rgba(0, 0, 0, 0.25);
|
|
513
|
+
height: 100%;
|
|
514
|
+
overflow: hidden;
|
|
515
|
+
}
|
|
3288
516
|
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
padding-bottom: 8px;
|
|
3293
|
-
border-bottom: 1px solid #a0a0a0;
|
|
3294
|
-
}
|
|
3295
|
-
|
|
3296
|
-
td {
|
|
3297
|
-
padding: 8px 4px;
|
|
3298
|
-
width: 25%;
|
|
3299
|
-
}
|
|
3300
|
-
.property td {
|
|
3301
|
-
padding: 0 4px 0 0;
|
|
3302
|
-
}
|
|
3303
|
-
td:nth-child(1) {
|
|
3304
|
-
color: #f6a523;
|
|
3305
|
-
}
|
|
3306
|
-
td p {
|
|
3307
|
-
margin: 0;
|
|
3308
|
-
}
|
|
3309
|
-
th {
|
|
3310
|
-
color: #909090;
|
|
3311
|
-
font-weight: normal;
|
|
3312
|
-
font-size: .85em;
|
|
3313
|
-
text-align: left;
|
|
3314
|
-
}
|
|
3315
|
-
`}}customElements.define("pb-component-view",wc);class xc extends ue{static get properties(){return{file:{type:String},demo:{type:String},_target:{type:String,reflect:!0},_api:{type:String,reflect:!0},_json:{type:Object},_demosOnly:{type:Boolean}}}constructor(){super(),this.file=null,this.demo=null,this._target=null,this.view=null}connectedCallback(){super.connectedCallback();const e=new URL(window.location).searchParams.get("_target");e&&(this._target=e);const t=new URL(window.location).searchParams.get("_api");t&&(this._api=t),window.addEventListener("popstate",e=>{e.state?this.view.show(e.state.component,e.state.tab):this.view.clear()}),document.addEventListener("pb-api-component",e=>{const{component:t,tab:n}=e.detail,i=`#${t.name}.${n}`;history.pushState({component:t,tab:n},"view component",i),this.view.show(t,n)})}firstUpdated(){super.firstUpdated(),this.view=this.shadowRoot.getElementById("view"),this._load().then(()=>{const{hash:e}=window.location;if(e){const t=e.substring(1).split("."),n=t[0],i=t[1];if(n&&i){const e=this._json.tags.find(e=>e.name===n);e&&this.view.show(e,parseInt(i))}}})}_load(){return new Promise(e=>{fetch(this.file).then(e=>e.json()).then(t=>{this._loadDemos(t).then(t=>{this._json=t,e(t)})})})}_loadDemos(e){return new Promise(t=>{this.demo?fetch(this.demo).then(e=>e.json()).then(n=>{this._demos=n,e.tags.forEach(e=>{n[e.name]?e.demo=n[e.name]:e.demo=null}),t(e)}):t(e)})}_filter(){this._demosOnly=this.shadowRoot.getElementById("filter").checked}render(){return j`
|
|
3316
|
-
<app-drawer-layout>
|
|
3317
|
-
<app-drawer id="drawer" align="left" slot="drawer" persistent>
|
|
3318
|
-
<slot name="logo"></slot>
|
|
3319
|
-
<paper-checkbox id="filter" @change="${this._filter}">only elements with demos</paper-checkbox>
|
|
3320
|
-
<pb-components-list ?with-demo="${this._demosOnly}" .json="${this._json}"></pb-components-list>
|
|
3321
|
-
</app-drawer>
|
|
3322
|
-
<pb-component-view id="view" ._target="${this._target}" ._api="${this._api}"></pb-component-view>
|
|
3323
|
-
</app-drawer-layout>
|
|
3324
|
-
`}static get styles(){return de`
|
|
3325
|
-
:host {
|
|
3326
|
-
display: block;
|
|
3327
|
-
}
|
|
3328
|
-
pb-components-list {
|
|
3329
|
-
height: calc(100vh - 64px);
|
|
3330
|
-
overflow: auto;
|
|
3331
|
-
}
|
|
517
|
+
.sidebar pb-components-list {
|
|
518
|
+
height: calc(100% - 120px);
|
|
519
|
+
}
|
|
3332
520
|
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
521
|
+
.docs-layout.drawer-open .sidebar {
|
|
522
|
+
transform: translateX(0);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
`}}customElements.define("pb-component-docs",yn);export{yn as PbComponentDocs};
|