From 9e9e1bb5cf50a20e1e111b8fd098d91c470c63e9 Mon Sep 17 00:00:00 2001 From: David Benson Date: Thu, 17 Aug 2017 11:20:43 +0100 Subject: [PATCH] Updates to draw 7.1.6 --- doc/_config.yml | 34 -- .../2017-08-16-welcome-to-jekyll.markdown | 25 - doc/about.md | 15 - doc/index.md | 6 - docs/_config.yml | 1 - .../2017-08-16-welcome-to-jekyll.markdown | 25 - docs/about.md | 15 - docs/download_files/v0.js | 430 ------------------ docs/index.html | 81 ---- docs/index.md | 6 - package.json | 2 +- 11 files changed, 1 insertion(+), 639 deletions(-) delete mode 100644 doc/_config.yml delete mode 100644 doc/_posts/2017-08-16-welcome-to-jekyll.markdown delete mode 100644 doc/about.md delete mode 100644 doc/index.md delete mode 100644 docs/_config.yml delete mode 100644 docs/_posts/2017-08-16-welcome-to-jekyll.markdown delete mode 100644 docs/about.md delete mode 100644 docs/download_files/v0.js delete mode 100644 docs/index.html delete mode 100644 docs/index.md diff --git a/doc/_config.yml b/doc/_config.yml deleted file mode 100644 index 9a2bee453..000000000 --- a/doc/_config.yml +++ /dev/null @@ -1,34 +0,0 @@ -# Welcome to Jekyll! -# -# This config file is meant for settings that affect your whole blog, values -# which you are expected to set up once and rarely edit after that. If you find -# yourself editing these this file very often, consider using Jekyll's data files -# feature for the data you need to update frequently. -# -# For technical reasons, this file is *NOT* reloaded automatically when you use -# 'bundle exec jekyll serve'. If you change this file, please restart the server process. - -# Site settings -# These are used to personalize your new site. If you look in the HTML files, -# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on. -# You can create any custom variable you would like, and they will be accessible -# in the templates via {{ site.myvariable }}. -title: Your awesome title -email: your-email@domain.com -description: > # this means to ignore newlines until "baseurl:" - Write an awesome description for your new site here. You can edit this - line in _config.yml. It will appear in your document head meta (for - Google search results) and in your feed.xml site description. -baseurl: "" # the subpath of your site, e.g. /blog -url: "" # the base hostname & protocol for your site, e.g. http://example.com -twitter_username: jekyllrb -github_username: jekyll - -# Build settings -markdown: kramdown -theme: minima -gems: - - jekyll-feed -exclude: - - Gemfile - - Gemfile.lock diff --git a/doc/_posts/2017-08-16-welcome-to-jekyll.markdown b/doc/_posts/2017-08-16-welcome-to-jekyll.markdown deleted file mode 100644 index fb2fff837..000000000 --- a/doc/_posts/2017-08-16-welcome-to-jekyll.markdown +++ /dev/null @@ -1,25 +0,0 @@ ---- -layout: post -title: "Welcome to Jekyll!" -date: 2017-08-16 17:48:22 +0100 -categories: jekyll update ---- -You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated. - -To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works. - -Jekyll also offers powerful support for code snippets: - -{% highlight ruby %} -def print_hi(name) - puts "Hi, #{name}" -end -print_hi('Tom') -#=> prints 'Hi, Tom' to STDOUT. -{% endhighlight %} - -Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk]. - -[jekyll-docs]: http://jekyllrb.com/docs/home -[jekyll-gh]: https://github.com/jekyll/jekyll -[jekyll-talk]: https://talk.jekyllrb.com/ diff --git a/doc/about.md b/doc/about.md deleted file mode 100644 index 19d6b978b..000000000 --- a/doc/about.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -layout: page -title: About -permalink: /about/ ---- - -This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](http://jekyllrb.com/) - -You can find the source code for the Jekyll new theme at: -{% include icon-github.html username="jekyll" %} / -[minima](https://github.com/jekyll/minima) - -You can find the source code for Jekyll at -{% include icon-github.html username="jekyll" %} / -[jekyll](https://github.com/jekyll/jekyll) diff --git a/doc/index.md b/doc/index.md deleted file mode 100644 index 1eb5d6724..000000000 --- a/doc/index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -# You don't need to edit this file, it's empty on purpose. -# Edit theme's home layout instead if you wanna make some changes -# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults -layout: home ---- diff --git a/docs/_config.yml b/docs/_config.yml deleted file mode 100644 index 2f7efbeab..000000000 --- a/docs/_config.yml +++ /dev/null @@ -1 +0,0 @@ -theme: jekyll-theme-minimal \ No newline at end of file diff --git a/docs/_posts/2017-08-16-welcome-to-jekyll.markdown b/docs/_posts/2017-08-16-welcome-to-jekyll.markdown deleted file mode 100644 index fb2fff837..000000000 --- a/docs/_posts/2017-08-16-welcome-to-jekyll.markdown +++ /dev/null @@ -1,25 +0,0 @@ ---- -layout: post -title: "Welcome to Jekyll!" -date: 2017-08-16 17:48:22 +0100 -categories: jekyll update ---- -You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated. - -To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works. - -Jekyll also offers powerful support for code snippets: - -{% highlight ruby %} -def print_hi(name) - puts "Hi, #{name}" -end -print_hi('Tom') -#=> prints 'Hi, Tom' to STDOUT. -{% endhighlight %} - -Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk]. - -[jekyll-docs]: http://jekyllrb.com/docs/home -[jekyll-gh]: https://github.com/jekyll/jekyll -[jekyll-talk]: https://talk.jekyllrb.com/ diff --git a/docs/about.md b/docs/about.md deleted file mode 100644 index 19d6b978b..000000000 --- a/docs/about.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -layout: page -title: About -permalink: /about/ ---- - -This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](http://jekyllrb.com/) - -You can find the source code for the Jekyll new theme at: -{% include icon-github.html username="jekyll" %} / -[minima](https://github.com/jekyll/minima) - -You can find the source code for Jekyll at -{% include icon-github.html username="jekyll" %} / -[jekyll](https://github.com/jekyll/jekyll) diff --git a/docs/download_files/v0.js b/docs/download_files/v0.js deleted file mode 100644 index 1c3ac4151..000000000 --- a/docs/download_files/v0.js +++ /dev/null @@ -1,430 +0,0 @@ -self.AMP_CONFIG={"allow-doc-opt-in":["visibility-v3","amp-animation"],"allow-url-opt-in":["pump-early-frame"],"canary":0,"expAdsenseA4A":0.01,"expDoubleclickA4A":0.01,"dbclk_a4a_viz_change":0.02,"a4aProfilingRate":0.1,"ad-type-custom":1,"ios-embed-wrapper":1,"amp-apester-media":1,"amp-playbuzz":1,"chunked-amp":1,"sticky-ad-early-load":1,"amp-auto-ads":1,"amp-auto-ads-adsense-holdout":0.1,"slidescroll-disable-css-snap":1,"version-locking":1,"visibility-v3":1,"a4aFastFetchDoubleclickLaunched":0,"a4aFastFetchAdSenseLaunched":0,"pump-early-frame":1,"a4a-measure-get-ad-urls":0,"ad-loader-v2":1,"3p-use-ampcontext":0,"amp-animation":1,"v":"011502819823157"};/*AMP_CONFIG*/try{(function(){var f;function aa(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var d in b)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(a,d,e)}else a[d]=b[d]}var da=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global?global:a}(this);function ea(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function fa(a,b){return b.length>a.length?!1:0==a.lastIndexOf(b,0)};function ga(a,b){b=void 0===b?"":b;try{return decodeURIComponent(a)}catch(c){return b}};var ha=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function ia(a){var b=Object.create(null);if(!a)return b;for(var c;c=ha.exec(a);){var d=ga(c[1],c[1]).trim(),e=c[2]?ga(c[2],c[2]).trim():"";b[d]=e}return b};var ja=""; -function p(a){var b=a||self,c;if(b.AMP_MODE)c=b.AMP_MODE;else{c=b;if(c.context&&c.context.mode)c=c.context.mode;else{var d=ia(c.location.originalHash||c.location.hash),e=ia(c.location.search);ja||(ja=c.AMP_CONFIG&&c.AMP_CONFIG.v?c.AMP_CONFIG.v:"011502819823157");c={localDev:!1,development:!("1"!=d.development&&!c.AMP_DEV_MODE),examiner:"2"==d.development,filter:d.filter,minified:!0,lite:void 0!=e.amp_lite,test:!1,log:d.log,version:"1502819823157",rtvVersion:ja}}c=b.AMP_MODE=c}return c} -;var pa=Object.prototype.toString;function qa(a){return Array.isArray(a)}function ra(a){return"[object Object]"===pa.call(a)}function sa(a){return"number"===typeof a&&isFinite(a)};var ta=Date.now();function va(a){return 0<=a.indexOf("\u200b\u200b\u200b")}function wa(a,b,c){this.win=a;this.If=b;this.Ma=this.win.console&&this.win.console.log&&"0"!=p().log?this.If({localDev:!1,development:p(void 0).development,filter:p(void 0).filter,minified:!0,lite:p(void 0).lite,test:!1,log:p(void 0).log,version:p(void 0).version,rtvVersion:p(void 0).rtvVersion}):0;this.nc=c||""} -function xa(a,b,c,d){if(0!=a.Ma){var e=a.win.console.log;"ERROR"==c?e=a.win.console.error||e:"INFO"==c?e=a.win.console.info||e:"WARN"==c&&(e=a.win.console.warn||e);d.unshift(Date.now()-ta,"["+b+"]");e.apply(a.win.console,d)}}f=wa.prototype;f.isEnabled=function(){return 0!=this.Ma};f.fine=function(a,b){4<=this.Ma&&xa(this,a,"FINE",Array.prototype.slice.call(arguments,1))};f.info=function(a,b){3<=this.Ma&&xa(this,a,"INFO",Array.prototype.slice.call(arguments,1))}; -f.warn=function(a,b){2<=this.Ma&&xa(this,a,"WARN",Array.prototype.slice.call(arguments,1))};f.ee=function(a,b){if(1<=this.Ma)xa(this,a,"ERROR",Array.prototype.slice.call(arguments,1));else{var c=ya.apply(null,Array.prototype.slice.call(arguments,1));za(this,c);return c}};f.error=function(a,b){var c=this.ee.apply(this,arguments);c&&(c.name=a||c.name,self.reportError(c))};f.expectedError=function(a,b){var c=this.ee.apply(this,arguments);c&&(c.expected=!0,self.reportError(c))}; -f.createError=function(a){var b=ya.apply(null,arguments);za(this,b);return b};f.createExpectedError=function(a){var b=ya.apply(null,arguments);za(this,b);b.expected=!0;return b}; -f.assert=function(a,b,c){var d;if(!a){var e=(b||"Assertion failed").split("%s"),g=e.shift(),h=g,k=[];""!=g&&k.push(g);for(g=2;gba.call(gb,a)&&gb.push(a)),d&&(c=a[b+Ia])&&c.call(a))}function u(){}function B(a,c,d){d=d&&d[hb]||"";var e=c.prototype,g=Tc(e),h=c.observedAttributes||Uc,k={prototype:g};Sb(g,fb,{value:function(){if(Tb)Tb=!1;else if(!this[ib]){this[ib]=!0;new c(this);e[fb]&&e[fb].call(this);var a=jb[Ub.get(c)];(!Sa||1>0),ma="addEventListener",ka="attached",Ia="Callback",ca="detached",hb="extends",ua="attributeChanged"+Ia,ii=ka+Ia,Ke="connected"+Ia,Le="disconnected"+Ia,fb="created"+Ia,ji=ca+Ia,Ob="ADDITION",Yc="MODIFICATION",Pc="REMOVAL",Ha="DOMAttrModified",Ie="DOMContentLoaded",hi="DOMSubtreeModified",eb="<",Nb="=",li=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,mi="ANNOTATION-XML COLOR-PROFILE FONT-FACE FONT-FACE-SRC FONT-FACE-URI FONT-FACE-FORMAT FONT-FACE-NAME MISSING-GLYPH".split(" "), -Ga=[],db=[],U="",Ra=A.documentElement,ba=Ga.indexOf||function(a){for(var b=this.length;b--&&this[b]!==a;);return b},Zc=E.prototype,$c=Zc.hasOwnProperty,Vb=Zc.isPrototypeOf,Ua=E.defineProperty,Uc=[],ad=E.getOwnPropertyDescriptor,Oe=E.getOwnPropertyNames,ni=E.getPrototypeOf,Pe=E.setPrototypeOf,Qe=!!E.__proto__,ki=!1,ib="__dreCEv1",oa=a.customElements,Sa="force"!==c&&!!(oa&&oa.define&&oa.get&&oa.whenDefined),Re=E.create||E,oi=a.Map||function(){var a=[],b=[],c;return{get:function(c){return b[ba.call(a, -c)]},set:function(d,e){c=ba.call(a,d);0>c?b[a.push(d)-1]=e:b[c]=e}}},Me=a.Promise||function(a){function b(a){for(d=!0;c.length;)c.shift()(a)}var c=[],d=!1,e={"catch":function(){return e},then:function(a){c.push(a);d&&setTimeout(b,1);return e}};a(b);return e},Tb=!1,jb=Re(null),Ta=Re(null),Ub=new oi,Tc=E.create||function Mb(a){return a?(Mb.prototype=a,new Mb):this},fi=Pe||(Qe?function(a,b){a.__proto__=b;return a}:Oe&&ad?function(){function a(a,b){for(var c,d=Oe(b),e=0,g=d.length;e=e||127==e||0==d&&48<=e&&57>=e||1==d&&48<=e&&57>=e&&45==h?g+("\\"+e.toString(16)+" "):0==d&&1==c&&45==e?g+("\\"+b.charAt(d)):128<=e||45==e||95==e||48<=e&&57>=e||65<=e&&90>=e||97<=e&&122>=e?g+b.charAt(d):g+("\\"+b.charAt(d));return g};function ec(a,b,c){if(b(a))c();else{var d=a.ownerDocument.defaultView;if(d.MutationObserver){var e=new d.MutationObserver(function(){b(a)&&(e.disconnect(),c())});e.observe(a,{childList:!0})}else var g=d.setInterval(function(){b(a)&&(d.clearInterval(g),c())},5)}}function fc(a,b){ec(a.documentElement,function(){return!!a.body},b)}function gc(a){return new Promise(function(b){fc(a,b)})}function hc(a,b){for(var c,d=a;d&&d!==c;d=d.parentElement)if(b(d))return d;return null} -function ic(a,b){for(;a;a=a.parentNode)if(b(a))return a;return null}function jc(a,b){if(a.closest)return a.closest(b);b=b.toUpperCase();return hc(a,function(a){return a.tagName==b})}function kc(a,b){var c=[];for(a=a.firstElementChild;a;a=a.nextElementSibling)b(a)&&c.push(a);return c}function lc(a,b){for(a=a.lastElementChild;a;a=a.previousElementSibling)if(b(a))return a;return null}function mc(a,b){var c=[];for(a=a.firstChild;a;a=a.nextSibling)b(a)&&c.push(a);return c}var nc; -function oc(a){try{return a.ownerDocument.querySelector(":scope"),!0}catch(b){return!1}}function pc(a,b){null==nc&&(nc=oc(a));if(nc)return a.querySelector(":scope "+b);var c="i-amphtml-scoped";a.classList.add(c);b=a.querySelector("."+c+" "+b);a.classList.remove(c);return b}function qc(a,b,c){var d,e;try{e=a.open(b,c,d)}catch(g){x().error("DOM","Failed to open url on target: ",c,g)}e||"_top"==c||(e=a.open(b,"_top"))}function rc(a){return a.parent&&a.parent!=a};function sc(a,b,c){var d=Zb(a,b);return d?d:tc(a,b,c,!0)}function uc(a,b){return a.ampExtendedElements?!!a.ampExtendedElements[b]:!1}function vc(a,b,c){return wc(a,b,c,void 0).then(function(a){return r().assert(a,"Service %s was requested to be provided through %s, but %s is not loaded in the current page. To fix this problem load the JavaScript file for %s in this page.",b,c,c,c)})} -function wc(a,b,c,d){var e=Fb(a),g=Yb(a,b);return g?g:Promise.resolve().then(function(){return!d&&uc(e.win,c)?Ib(a,b):e.whenBodyAvailable().then(function(){return d?Yb(a,b):uc(e.win,c)?Ib(a,b):null})})}function xc(a){var b=xb(a,"bind");if(b)return Promise.resolve(b);if(a.nodeType){var b=(a.ownerDocument||a).defaultView,c=Bb(b);return b!==c?tc(b,"bind","amp-bind"):wc(a,"bind","amp-bind")}return Promise.resolve(null)} -function tc(a,b,c,d){return Promise.resolve().then(function(){return!d&&uc(a,c)?Jb(a,b):gc(a.document).then(function(){return d?Zb(a,b):uc(a,c)?Jb(a,b):null})})};function yc(a){return wc(a,"access","amp-access")}function zc(a){return H(a,"ampdoc")}function Ac(a){return zb(a,"documentInfo").get()}function Bc(a){return H(a,"documentState")}function Cc(a){return H(a,"extensions")}function Dc(a){return H(a,"platform")}function Ec(a){return zb(a,"resources")}function I(a){return H(a,"timer")}function Fc(a){return xb(a,"url-replace",!0)}function J(a){return zb(a,"viewer")}function K(a){return H(a,"vsync")}function Gc(a){return zb(a,"viewport")};function Hc(a){return"undefined"!==typeof TextEncoder?(new TextEncoder("utf-8")).encode(a):Ic(unescape(encodeURIComponent(a)))}function Ic(a){for(var b=new Uint8Array(a.length),c=0;c=d&&(b[c]=Math.random()a?"":a}function oe(a,b){var c=a.performance&&a.performance.navigation;if(c&&void 0!==c[b])return c[b]}function pe(){this.pb=void 0;this.ba=Object.create(null);this.Oc=!1}f=pe.prototype;f.Gb=function(){this.initialize();this.Oc=!0};f.initialize=function(){}; -f.get=function(a){this.Oc||this.Gb();return this.ba[a]};f.set=function(a,b){a.indexOf("RETURN");this.ba[a]=this.ba[a]||{sync:void 0,async:void 0};this.ba[a].sync=b;this.pb=void 0;return this};f.setAsync=function(a,b){a.indexOf("RETURN");this.ba[a]=this.ba[a]||{sync:void 0,async:void 0};this.ba[a].async=b;this.pb=void 0;return this};f.setBoth=function(a,b,c){return this.set(a,b).setAsync(a,c)}; -f.getExpr=function(a){var b=this;this.Oc||this.Gb();var c=a?Object.keys(a):null;if(c&&0=a){c=1.1*(a-c)=a/c?d+1:d;break a}c=e}c=0}else if(this.qf){a=-1;c=1E6;for(d=0;d=c)g=d-1;else break}this.m.splice(d,0,{item:a,priority:b})};qf.prototype.dequeue=function(){return this.m.length?this.m.pop().item:null}; -da.Object.defineProperties(qf.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.m.length}}});var rf=/nochunking=1/.test(self.location.hash),sf=Promise.resolve();function tf(a,b){rf?sf.then(b):(G(a,"chunk",uf),a=zb(a,"chunk"),b=new vf(b,a.c,a.qg),wf(a,b,Number.POSITIVE_INFINITY))}function xf(a){this.state="not_run";this.Gc=a}function yf(a,b){if("run"!=a.state){a.state="run";try{a.Gc(b)}catch(c){throw a.De(c),c;}}}xf.prototype.Ag=function(){return this.Gc.displayName||this.Gc.name};xf.prototype.De=function(){};xf.prototype.oe=function(){return!1};xf.prototype.Ze=function(){return!0}; -function vf(a,b,c){var d=this;xf.call(this,a);this.c=b;this.a=null;c.then(function(a){d.a=a;d.a.isVisible()&&yf(d,null);d.a.onVisibilityChanged(function(){d.a.isVisible()&&yf(d,null)})})}aa(vf,xf);vf.prototype.De=function(){Ld(self.document)};vf.prototype.oe=function(){return this.a?this.a.isVisible():this.c.document.hidden?!1:!/visibilityState=(hidden|prerender)/.test(this.c.location.hash)};vf.prototype.Ze=function(){return!!this.a}; -function uf(a){var b=this;this.yg=a;this.c=a.win;this.u=new qf;this.Md=this.fe.bind(this);this.qg=Ib(a,"viewer");this.c.addEventListener("message",function(a){"amp-macro-task"==a.data&&b.fe(null)})}uf.prototype.run=function(a,b){var c=new xf(a);wf(this,c,b)};function wf(a,b,c){a.u.enqueue(b,c);sf.then(function(){a.za()})}function zf(a,b){for(var c=a.u.peek();c&&"not_run"!==c.state;)a.u.dequeue(),c=a.u.peek();c&&b&&a.u.dequeue();return c} -uf.prototype.fe=function(a){var b=this,c=zf(this,!0);if(!c)return!1;var d=Date.now();yf(c,a);sf.then(function(){b.za()});return!0};function Af(a){sf.then(function(){a.Md(null)})}uf.prototype.za=function(){var a=zf(this);a&&(a.oe()?Af(this):a.Ze()&&this.c.requestIdleCallback?Bf(this.c,this.Md):this.c.postMessage("amp-macro-task","*"))}; -function Bf(a,b){var c=15,d=2E3;function e(h){if(h.timeRemaining()=k||h.didTimeout?b(h):a.requestIdleCallback(e,{timeout:k})}else b(h)}var g=Date.now();a.requestIdleCallback(e,{timeout:d})};/* - - Copyright (c) 2014 The Polymer Project Authors. All rights reserved. - This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt - The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt - The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt - Code distributed by Google as part of the polymer project is also - subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt -*/ -var Cf;function Df(){var a;if(void 0===Cf){var b=a||Element;Cf=b.prototype.attachShadow?"v1":b.prototype.createShadowRoot?"v0":"none"}return Cf};var Ef={composed:!1};function Ff(a){return"none"!=Df()&&Node.prototype.getRootNode?a.getRootNode(Ef):ic(a,function(a){return a?"I-AMPHTML-SHADOW-ROOT"==a.tagName?!0:11==a.nodeType&&"[object ShadowRoot]"===Object.prototype.toString.call(a):!1})};function Gf(){var a=self,b=0,c=a.performance;c&&c.timing&&c.timing.responseStart&&(b=Date.now()-c.timing.responseStart);var d=Math.max(1,1E3-b);a.setTimeout(function(){if(!se(a.document))for(var b=a.document.querySelectorAll('link[rel~="stylesheet"]'),c={},h=0;h=a||b.tickDelta("fp",a)}b.flush()}); -If(this)}f=Hf.prototype;f.coreServicesAvailable=function(){var a=this;this.a=J(this.win.document);this.g=Ec(this.win.document);this.hb=this.a.isEmbedded()&&"1"===this.a.getParam("csi");this.a.onVisibilityChanged(this.flush.bind(this));Jf(this);var b=this.a.whenMessagingReady();this.a.whenFirstVisible().then(function(){a.tick("ofv");a.flush()});return b?b.then(function(){a.Uc=!0;a.tickDelta("msr",a.win.Date.now()-a.pe);Kf(a);a.flush()}):Promise.resolve()}; -function If(a){a.win.PerformancePaintTiming&&(new a.win.PerformanceObserver(function(b){b.getEntries().forEach(function(b){"first-paint"==b.name?a.tickDelta("fp",b.startTime+b.duration):"first-contentful-paint"==b.name&&a.tickDelta("fcp",b.startTime+b.duration)})})).observe({entryTypes:["paint"]})} -function Jf(a){var b=!a.a.hasBeenVisible(),c=b?-1:a.pe;b&&a.a.whenFirstVisible().then(function(){c=a.win.Date.now()});Lf(a).then(function(){if(b){var d=-1=n||"A"<=n&&"Z">=n||"0"<=n&&"9">=n);k--);r().assert(k=n||"A"<=n&&"Z">=n||"0"<=n&&"9">=n);k--);0<=k?(c=a.substring(0,k+1).trim(),e=a.substring(k+1).trim()):(e=a,c=void 0);d.push({mediaQuery:c,size:l?e:b?je(e):ie(e)})}});return new gg(d)} -function gg(a){r().assert(0c.right)return!1;if(b.bottomc.bottom)h=b.top-c.bottom,1==d&&(g=2);else return lg(this),!0;var k=ha.top&&0<=a.top&&K(this.ownerDocument.defaultView).mutate(function(){b.Kb()&&b.He()}))};b.prototype.je=function(){void 0===this.Ta&&"responsive"===this.layout_&&(this.Ta=this.querySelector("i-amphtml-sizer"));return this.Ta||null};b.prototype.applySizesAndMediaQuery=function(){void 0===this.Rb&&(this.Rb=this.getAttribute("media")||null);if(this.Rb){var a=this.ownerDocument.defaultView;this.classList.toggle("i-amphtml-hidden-by-media-query",!a.matchMedia(this.Rb).matches)}if(void 0=== -this.ic){var b=this.getAttribute("sizes");this.ic=b?fg(b):null}this.ic&&T(this,"width",this.ic.select(this.ownerDocument.defaultView));void 0===this.Fb&&"responsive"===this.layout_&&(this.Fb=(b=this.getAttribute("heights"))?fg(b,!0):null);this.Fb&&(b=this.je())&&T(b,"paddingTop",this.Fb.select(this.ownerDocument.defaultView))};b.prototype.changeSize=function(a,b,c){var d=this.je();d&&(this.Ta=null,T(d,"paddingTop","0"),this.g&&this.g.deferMutate(this,function(){d.parentElement&&d.parentElement.removeChild(d)})); -void 0!==a&&T(this,"height",a,"px");void 0!==b&&T(this,"width",b,"px");c&&(null!=c.top&&T(this,"marginTop",c.top,"px"),null!=c.right&&T(this,"marginRight",c.right,"px"),null!=c.bottom&&T(this,"marginBottom",c.bottom,"px"),null!=c.left&&T(this,"marginLeft",c.left,"px"));this.Bf()&&this.hg()};b.prototype.connectedCallback=function(){this.everAttached||(this.classList.add("i-amphtml-element"),this.classList.add("i-amphtml-notbuilt"),this.classList.add("amp-notbuilt"));void 0===ng&&(ng="content"in self.document.createElement("template")); -ng||void 0!==this.gb||(this.gb=!!jc(this,"template"));if(!this.gb)if(this.F||(this.F=zc(this.ownerDocument.defaultView).getAmpDoc(this)),this.g||(this.g=Ec(this.F)),this.getResources().add(this),this.everAttached){var a=this.reconstructWhenReparented();a&&this.Le();this.isUpgraded()&&(a&&this.getResources().upgraded(this),this.Ja())}else{this.everAttached=!0;try{var b;var c=this.getAttribute("i-amphtml-layout");if(c){var h=fe(c);"responsive"==h&&this.firstElementChild?this.Ta=this.querySelector("i-amphtml-sizer")|| -void 0:"nodisplay"==h&&tg(this);b=h}else{var k=this.getAttribute("layout"),l=this.getAttribute("width"),m=this.getAttribute("height"),n=this.getAttribute("sizes"),q=this.getAttribute("heights"),w=k?fe(k):null;r().assert(void 0!==w,"Unknown layout: %s",k);var v=l&&"auto"!=l?he(l):l;r().assert(void 0!==v,"Invalid width value: %s",l);var t=m?he(m):null;r().assert(void 0!==t,"Invalid height value: %s",m);var C,y,u,B;if(!(B=w&&"fixed"!=w&&"fixed-height"!=w||v&&t)){var M=this.tagName,M=M.toUpperCase(); -B=void 0===de[M]}if(B)C=v,y=t;else{var S=this.tagName.toUpperCase();if(!de[S]){var na=this.ownerDocument,P=S.replace(/^AMP\-/,""),Q=na.createElement(P);Q.controls=!0;V(Q,{position:"absolute",visibility:"hidden"});na.body.appendChild(Q);de[S]={width:(Q.offsetWidth||1)+"px",height:(Q.offsetHeight||1)+"px"};na.body.removeChild(Q)}var A=de[S];C=v||"fixed-height"==w?v:A.width;y=t||A.height}u=w?w:C||y?!y||C&&"auto"!=C?y&&C&&(n||q)?"responsive":"fixed":"fixed-height":"container";"fixed"!=u&&"fixed-height"!= -u&&"responsive"!=u||r().assert(y,"Expected height to be available: %s",m);"fixed-height"==u&&r().assert(!C||"auto"==C,'Expected width to be either absent or equal "auto" for fixed-height layout: %s',l);"fixed"!=u&&"responsive"!=u||r().assert(C&&"auto"!=C,'Expected width to be available and not equal to "auto": %s',l);"responsive"==u?r().assert(ke(C)==ke(y),"Length units should be the same for width and height: %s, %s",l,m):r().assert(null===q,'Unexpected "heights" attribute for none-responsive layout'); -this.classList.add("i-amphtml-layout-"+u);ge(u)&&this.classList.add("i-amphtml-layout-size-defined");if("nodisplay"==u)tg(this);else if("fixed"==u)V(this,{width:C,height:y});else if("fixed-height"==u)T(this,"height",y);else if("responsive"==u){var E=this.ownerDocument.createElement("i-amphtml-sizer");V(E,{display:"block",paddingTop:le(y)/le(C)*100+"%"});this.insertBefore(E,this.firstChild);this.Ta=E}else"fill"!=u&&"container"!=u&&"flex-item"==u&&(C&&T(this,"width",C),y&&T(this,"height",y));b=u}this.layout_= -b}catch(Vc){Vd(Vc,this)}this.implementation_ instanceof dg||this.Ve();this.isUpgraded()||(this.classList.add("amp-unresolved"),this.classList.add("i-amphtml-unresolved"),this.Ja())}};b.prototype.Bf=function(){return this.classList.contains("i-amphtml-layout-awaiting-size")};b.prototype.hg=function(){this.classList.remove("i-amphtml-layout-awaiting-size")};b.prototype.attachedCallback=function(){this.connectedCallback()};b.prototype.Ve=function(){var a=this,b=this.implementation_;if(1==this.Va){this.Va= -4;var c=b.upgradeCallback();c?"function"==typeof c.then?c.then(function(c){a.Ec(c||b)}).catch(function(b){a.Va=3;Ba(b)}):this.Ec(c):this.Ec(b)}};b.prototype.disconnectedCallback=function(){this.gb||(this.getResources().remove(this),this.implementation_.detachedCallback())};b.prototype.detachedCallback=function(){this.disconnectedCallback()};b.prototype.dispatchCustomEvent=function(a,b){b=b||{};var c=this.ownerDocument.defaultView.document.createEvent("Event");c.data=b;c.initEvent(a,!0,!0);this.dispatchEvent(c)}; -b.prototype.Ja=function(){};b.prototype.prerenderAllowed=function(){return this.implementation_.prerenderAllowed()};b.prototype.createPlaceholder=function(){return this.implementation_.createPlaceholderCallback()};b.prototype.renderOutsideViewport=function(){return this.implementation_.renderOutsideViewport()};b.prototype.getLayoutBox=function(){return this.getResources().getResourceForElement(this).getLayoutBox()};b.prototype.getPageLayoutBox=function(){return this.getResources().getResourceForElement(this).getPageLayoutBox()}; -b.prototype.getOwner=function(){return this.getResources().getResourceForElement(this).getOwner()};b.prototype.getIntersectionChangeEntry=function(){var a=this.implementation_.getIntersectionElementLayoutBox(),b=this.getResources().getResourceForElement(this).getOwner(),c=this.implementation_.getViewport().getRect(),h=b&&b.getLayoutBox(),k=ye(a,h,c)||X(0,0,0,0),b=k.width*k.height/(a.width*a.height),l=c;c&&(k=Ae(k,-c.left,-c.top),a=Ae(a,-c.left,-c.top),l=Ae(l,-c.left,-c.top));return{time:"undefined"!== -typeof performance&&performance.now?performance.now():Date.now()-kf,rootBounds:l,boundingClientRect:a,intersectionRect:k,intersectionRatio:b}};b.prototype.getResourceId=function(){return this.getResources().getResourceForElement(this).getId()};b.prototype.vf=function(){return this.getResources().getResourceForElement(this).getState()};b.prototype.isRelayoutNeeded=function(){return this.implementation_.isRelayoutNeeded()};b.prototype.getImpl=function(){var a=this;return this.whenBuilt().then(function(){return a.implementation_})}; -b.prototype.layoutCallback=function(){var a=this;this.isBuilt();this.Ja();var b=0==this.T;this.D.reset("unload");b&&this.D.signal("load-start");this.Ee&&this.ie().startLayout();var c=this.implementation_.layoutCallback();this.preconnect(!0);this.classList.add("i-amphtml-layout");return c.then(function(){b&&a.D.signal("load-end");a.readyState="complete";a.T++;a.Ua(!1,!0);a.Rc||(a.implementation_.firstLayoutCompleted(),a.Rc=!0,a.dispatchCustomEvent("amp:load:end"))},function(c){b&&a.D.rejectSignal("load-end", -c);a.T++;a.Ua(!1,!0);throw c;})};b.prototype.viewportCallback=function(a){var b=this;this.la=a;0==this.T&&(a?I(this.ownerDocument.defaultView).delay(function(){b.la&&b.ownerDocument&&b.ownerDocument.defaultView&&b.Ua(!0)},100):this.Ua(!1));this.isBuilt()&&this.We(a)};b.prototype.We=function(a){this.implementation_.inViewport_=a;this.implementation_.viewportCallback(a);a&&this.Ee&&this.ie().enterViewport()};b.prototype.pauseCallback=function(){this.isBuilt()&&this.implementation_.pauseCallback()}; -b.prototype.resumeCallback=function(){this.isBuilt()&&this.implementation_.resumeCallback()};b.prototype.unlayoutCallback=function(){if(!this.isBuilt())return!1;this.D.signal("unload");var a=this.implementation_.unlayoutCallback();a&&this.Le();return a};b.prototype.Le=function(){this.T=0;this.Rc=!1;this.D.reset("render-start");this.D.reset("load-start");this.D.reset("load-end");this.D.reset("ini-load")};b.prototype.unlayoutOnPause=function(){return this.implementation_.unlayoutOnPause()};b.prototype.reconstructWhenReparented= -function(){return this.implementation_.reconstructWhenReparented()};b.prototype.collapse=function(){this.implementation_.collapse()};b.prototype.collapsedCallback=function(a){this.implementation_.collapsedCallback(a)};b.prototype.expand=function(){this.implementation_.expand()};b.prototype.expandedCallback=function(a){this.implementation_.expandedCallback(a)};b.prototype.mutatedAttributesCallback=function(a){this.implementation_.mutatedAttributesCallback(a)};b.prototype.enqueAction=function(a){this.isBuilt()? -this.ge(a,!1):(void 0===this.sa&&(this.sa=[]),this.sa.push(a))};b.prototype.pf=function(){var a=this;if(this.sa){var b=this.sa;this.sa=null;b.forEach(function(b){a.ge(b,!0)})}};b.prototype.ge=function(a,b){try{this.implementation_.executeAction(a,b)}catch(g){Ba("Action execution failed:",g,a.target.tagName,a.method)}};b.prototype.getRealChildNodes=function(){return mc(this,function(a){return!ug(a)})};b.prototype.getRealChildren=function(){return kc(this,function(a){return!ug(a)})};b.prototype.toggleLayoutDisplay= -function(a){this.classList.toggle("i-amphtml-display",a)};b.prototype.getPlaceholder=function(){return lc(this,function(a){return a.hasAttribute("placeholder")&&!("placeholder"in a)})};b.prototype.togglePlaceholder=function(a){if(a){var b=this.getPlaceholder();b&&b.classList.remove("amp-hidden")}else{null==nc&&(nc=oc(this));nc?b=this.querySelectorAll(":scope > [placeholder]"):(this.classList.add("i-amphtml-scoped"),b=this.querySelectorAll(".i-amphtml-scoped > [placeholder]"),this.classList.remove("i-amphtml-scoped")); -for(var c=b,b=0;b [fallback]")};b.prototype.toggleFallback=function(a){var b=this.vf();if(!a||0!=b&&1!=b&&2!=b)if(this.classList.toggle("amp-notsupported",a),1==a){var c=this.getFallback();c&&this.getResources().scheduleLayout(this,c)}};b.prototype.renderStarted=function(){this.D.signal("render-start");this.togglePlaceholder(!1);this.Ua(!1)};b.prototype.Kb=function(){if(this.Df())return!1;void 0=== -this.ad&&(this.ad=this.hasAttribute("noloading"));var a;(a=this.ad)||(a=this.tagName.toUpperCase(),a=!("AMP-AD"==a||"AMP-EMBED"==a||ee[a]));return a||100>this.layoutWidth_||0c;c++){var k=a.createElement("div");k.classList.add("i-amphtml-loader-dot");h.appendChild(k)}b.appendChild(h);this.appendChild(b);this.va=b;this.bd=h}};b.prototype.Ua=function(a,b){var c=this;if(!a||!(0 [overflow]"))&&(this.U.hasAttribute("tabindex")||this.U.setAttribute("tabindex","0"),this.U.hasAttribute("role")||this.U.setAttribute("role","button"));return this.U};b.prototype.overflowCallback=function(a,b,c){var d=this;this.getOverflowElement();this.U?(this.U.classList.toggle("amp-visible",a),this.U.onclick=a?function(){d.getResources().changeSize(d,b,c);K(d.ownerDocument.defaultView).mutate(function(){d.overflowCallback(!1,b,c)})}:null):a&&r().warn("CustomElement", -"Cannot resize element and overflow is not available",this)};a.BaseCustomElementClass=b;return a.BaseCustomElementClass}function qg(a,b,c){og(a)[b]=c;var d=vg(a,b),e="customElements"in a;e?a.customElements.define(b,d):a.document.registerElement(b,{prototype:d.prototype})};function xg(){var a=self,b=a.location.href;fa(b,"about:")||(p().development?yg(a.document,Kc.urls.cdn+"/v0/validator.js").then(function(){amp.validator.validateUrlAndLog(b,a.document,p().filter)}):p().examiner&&yg(a.document,Kc.urls.cdn+"/examiner.js"))}function yg(a,b){var c=a.createElement("script");c.src=b;b=Qd(c).then(function(){a.head.removeChild(c)},function(){});a.head.appendChild(c);return b};function zg(a){this.element=a;this.win=a.ownerDocument.defaultView;this.compileCallback()}zg.prototype.compileCallback=function(){};zg.prototype.render=function(){throw Error("Not implemented");};zg.prototype.unwrap=function(a){for(var b=null,c=a.firstChild;null!=c;c=c.nextSibling)if(3==c.nodeType){if(c.textContent.trim()){b=null;break}}else if(8!=c.nodeType)if(1==c.nodeType)if(b){b=null;break}else b=c;else b=null;return b||a};function Ag(a){this.c=a;this.sb={};this.xd={};this.Ab=void 0}f=Ag.prototype; -f.renderTemplate=function(a,b){return Bg(this,a).then(function(a){return a.render(b)})};f.renderTemplateArray=function(a,b){return 0==b.length?Promise.resolve([]):Bg(this,a).then(function(a){return b.map(function(b){return a.render(b)})})};f.findAndRenderTemplate=function(a,b){return this.renderTemplate(Cg(a),b)};f.findAndRenderTemplateArray=function(a,b){return this.renderTemplateArray(Cg(a),b)};f.hasTemplate=function(a){return!!Dg(a)}; -function Cg(a){var b=Dg(a);r().assert(b,"Template not found for %s",a);r().assert("TEMPLATE"==b.tagName,'Template element must be a "template" tag %s',b);return b}function Dg(a){var b=a.getAttribute("template");return b?a.ownerDocument.getElementById(b):pc(a,"> template")} -function Bg(a,b){var c=b.__AMP_IMPL_;if(c)return Promise.resolve(c);var c=r().assert(b.getAttribute("type"),"Type must be specified: %s",b),d=b.__AMP_WAIT_;if(d)return d;d=Eg(a,b,c).then(function(a){var c=b.__AMP_IMPL_=new a(b);delete b.__AMP_WAIT_;return c});return b.__AMP_WAIT_=d}function Eg(a,b,c){if(a.sb[c])return a.sb[c];Fg(a,b,c);var d;b=new Promise(function(a){d=a});a.sb[c]=b;a.xd[c]=d;return b} -function Fg(a,b,c){if(!a.Ab){a.Ab=a.c.Object.create(null);for(var d=a.c.document.querySelectorAll("script[custom-template]"),e=0;e",b,c)};var Gg={PRERENDER:"prerender",VISIBLE:"visible",HIDDEN:"hidden",PAUSED:"paused",INACTIVE:"inactive"};var Hg="__AMP_ACTION_MAP__"+Math.random(),Ig={form:["submit"]};function Jg(a,b,c,d,e,g){this.target=a;this.method=b;this.args=c;this.source=d;this.event=e;this.trust=g}Jg.prototype.satisfiesTrust=function(a){return sa(this.trust)?this.trust?',k,b);else{var n=Ig[m];(a=b.getAttribute("id")||"")&&"amp-"==a.substring(0,4)||n&&-1!=n.indexOf(c)?(c=b.__AMP_ACTION_HANDLER__)?(b=c.handler,d.satisfiesTrust(c.minTrust)&&b(d)):(b.__AMP_ACTION_QUEUE__= -b.__AMP_ACTION_QUEUE__||[],b.__AMP_ACTION_QUEUE__.push(d)):Xg("Target element does not support provided action",k,b)}}}function Mg(a){this.detail=null;var b=this||z(),c;for(c in a)b[c]="function"===typeof a[c]?Yg:a[c]}function Yg(){}function Ug(a){return 0==a.length?null:1==a.length?a[0].value:{expression:a.map(function(a){return a.value}).join(".")}} -function Vg(a,b){if(!a)return a;var c=z();b&&b.detail&&(c.event=b.detail);var d=z();Object.keys(a).forEach(function(b){var e=a[b];if("object"==typeof e&&e.expression){e=e.expression;if("."==e)e=c;else{for(var e=e.split("."),h=c,k=0;k=a.w.length)return{type:Qg,index:a.Lc};var d=a.w.charAt(c);if(-1!=" \t\n\r\f\v\u00a0\u2028\u2029".indexOf(d)){for(c++;c=a.w.length)return{type:Qg,index:c};d=a.w.charAt(c)}if(b&&($g(d)||"."==d&&c+1=l){g=d;break}}if(-1==g)return{type:0,index:c};a=a.w.substring(c,g+1);c=g;return{type:Tg,value:a,index:c}}for(g=c+1;g=a};var ah={googleanalytics:"AMP_ECID_GOOGLE"};function bh(a){this.F=a;this.a=J(this.F)}function ch(a,b){var c=a.document.head.querySelector("meta[name=amp-google-client-id-api]");if(!c||!c.hasAttribute("content"))return null;var d=c.getAttribute("content").split(",");for(a=0;ac.message.indexOf("secure origin")&&x().error("Crypto","SubtleCrypto failed, fallback to closure lib.",c);return Ah(b).then(function(){return b.sha384(a)})})}catch(c){return x().error("Crypto","SubtleCrypto failed, fallback to closure lib.", -c),Ah(this).then(function(){return b.sha384(a)})}};f.sha384Base64=function(a){return this.sha384(a).then(function(a){return be(a)})};f.uniform=function(a){return this.sha384(a).then(function(a){for(var b=0,d=2;0<=d;d--)b=(b+a[d])/256;return b})};function Ah(a){return a.mb?a.mb:a.mb=Cc(a.c).loadExtension("amp-crypto-polyfill").then(function(){return H(a.c,"crypto-polyfill")})}f.isPkcsAvailable=function(){return!!this.Da&&!1!==this.c.isSecureContext}; -f.importPkcsKey=function(a){this.isPkcsAvailable();return this.Da.importKey("jwk",this.Hf?Hc(JSON.stringify(a)):a,{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},!0,["verify"])};f.verifyPkcs=function(a,b,c){this.isPkcsAvailable();return this.Da.verify({name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},a,b,c)};f.sha1=function(a){this.isPkcsAvailable();return this.Da.digest({name:"SHA-1"},a)};var Bh=["prefetch","preload","preconnect","dns-prefetch"];function Ch(a){this.F=a;this.Mc=null}Ch.prototype.get=function(){if(this.Mc)return this.Mc;var a=this.F,b=a.getUrl(),c=ld(b),d=a.getRootNode(),e=d&&d.AMP&&d.AMP.canonicalUrl;if(!e)var g=d.querySelector("link[rel=canonical]"),e=g?N(g.href).href:c;var h=String(Math.floor(1E4*a.win.Math.random())),k=Dh(a.win.document);return this.Mc={get sourceUrl(){return ld(a.getUrl())},canonicalUrl:e,pageViewId:h,linkRels:k}}; -function Dh(a){var b=z();if(a.head){var c=a.head.querySelectorAll("link[rel]");a={};for(var d=0;d=a.h?Promise.resolve():a.b.pop(a.h).then(function(b){a.P(b)})},"goBack")};f.replaceStateForTarget=function(a){var b=this,c=this.F.win.location.hash;return this.push(function(){b.F.win.location.replace(c||"#")}).then(function(){b.b.replaceStateForTarget(a)})};f.getFragment=function(){return this.b.getFragment()};f.updateFragment=function(a){"#"==a[0]&&(a=a.substr(1));return this.b.updateFragment(a)}; -f.P=function(a){this.h=a;if(!(this.h>=this.Ba.length-1)){a=[];for(var b=this.Ba.length-1;b>this.h;b--)this.Ba[b]&&(a.push(this.Ba[b]),this.Ba[b]=void 0);this.Ba.splice(this.h+1);if(0 -b.win.history.length-2&&(d=b.win.history.length-2,b.qa(d));d=void 0==c?d+1:c=b)return Promise.resolve(a.h);a.Ea=Oh(a,a.h-b);var c=Rh(a);a.win.history.go(-b);return c.then(function(){return Promise.resolve(a.h)})}f.me=function(a,b,c){a||(a={});var d=this.h+1;a["AMP.History"]=d;this.Wf(a,b,c);d!=this.win.history.length-1&&(d=this.win.history.length-1,a["AMP.History"]=d,this.cc(a));this.qa(d)}; -f.replaceStateForTarget=function(a){var b=this;Ph(this,function(){b.Lb=a;b.win.location.replace(a);b.ne();return Promise.resolve()})};f.ne=function(a,b,c){a||(a={});var d=Math.min(this.h,this.win.history.length-1);a["AMP.History"]=d;this.cc(a,b,c);this.qa(d)};f.qa=function(a){a=Math.min(a,this.win.history.length-1);this.h!=a&&(this.h=a,this.P&&this.P(a))};f.getFragment=function(){var a=this.win.location.hash,a=a.substr(1);return Promise.resolve(a)}; -f.updateFragment=function(a){this.win.history.replaceState&&this.win.history.replaceState({},"","#"+a);return Promise.resolve()};function Sh(a,b){this.win=a;this.a=b;this.h=0;this.P=null;this.mg=this.a.onMessage("historyPopped",this.Nf.bind(this))}f=Sh.prototype;f.replaceStateForTarget=function(a){this.win.location.replace(a)};f.Ga=function(){this.mg()};f.setOnStackIndexUpdated=function(a){this.P=a}; -f.push=function(){var a=this;this.qa(this.h+1);return this.a.sendMessageAwaitResponse("pushHistory",D({stackIndex:this.h})).then(function(){return a.h})};f.pop=function(a){var b=this;return a>this.h?Promise.resolve(this.h):this.a.sendMessageAwaitResponse("popHistory",D({stackIndex:this.h})).then(function(){b.qa(a-1);return b.h})};f.Nf=function(a){this.qa(a.newStackIndex)};f.qa=function(a){this.h!=a&&(this.h=a,this.P&&this.P(a))}; -f.getFragment=function(){return this.a.hasCapability("fragment")?this.a.sendMessageAwaitResponse("getFragment",void 0,!0).then(function(a){if(!a)return"";"#"==a[0]&&(a=a.substr(1));return a}):Promise.resolve("")};f.updateFragment=function(a){return this.a.hasCapability("fragment")?this.a.sendMessageAwaitResponse("replaceHistory",D({fragment:a}),!0):Promise.resolve()}; -function Th(a){var b=J(a);b.isOvertakeHistory()||a.win.AMP_TEST_IFRAME?b=new Sh(a.win,b):(F(a.win,"global-history-binding",Nh),b=H(a.win,"global-history-binding"));return new Kh(a,b)};function Uh(a){this.N=a.navigator}f=Uh.prototype;f.isAndroid=function(){return/Android/i.test(this.N.userAgent)};f.isIos=function(){return/iPhone|iPad|iPod/i.test(this.N.userAgent)};f.isSafari=function(){return/Safari/i.test(this.N.userAgent)&&!this.isChrome()&&!this.isIe()&&!this.isEdge()&&!this.isFirefox()};f.isChrome=function(){return/Chrome|CriOS/i.test(this.N.userAgent)&&!this.isEdge()};f.isFirefox=function(){return/Firefox|FxiOS/i.test(this.N.userAgent)&&!this.isEdge()};f.isIe=function(){return/Trident|MSIE|IEMobile/i.test(this.N.userAgent)}; -f.isEdge=function(){return/Edge/i.test(this.N.userAgent)};f.isWebKit=function(){return/WebKit/i.test(this.N.userAgent)&&!this.isEdge()};f.isStandalone=function(){return this.isIos()&&this.N.standalone}; -f.getMajorVersion=function(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:Vh(this,/\sVersion\/(\d+)/,1):this.isChrome()?Vh(this,/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?Vh(this,/(Firefox|FxiOS)\/(\d+)/,2):this.isIe()?Vh(this,/MSIE\s(\d+)/,1):this.isEdge()?Vh(this,/Edge\/(\d+)/,1):0};function Vh(a,b,c){if(!a.N.userAgent)return 0;a=a.N.userAgent.match(b);return!a||c>=a.length?0:parseInt(a[c],10)} -f.getIosVersionString=function(){if(!this.N.userAgent||!this.isIos())return"";var a=this.N.userAgent.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/);return a?a=a[1].replace(/_/g,"."):""};f.getIosMajorVersion=function(){var a=this.getIosVersionString();return""==a?null:Number(a.split(".")[0])};function Wh(a){this.j=a;this.Ue=Object.create(null)}Wh.prototype.addTransition=function(a,b,c){var d=a+"|"+b;this.Ue[d]=c};Wh.prototype.setState=function(a){var b=this.j;this.j=a;(a=this.Ue[b+"|"+a])&&a()};function Xh(a,b){var c=this;this.win=a;this.Vf=b;this.C=[];this.Ce=new W;this.Zd=function(a){a.target&&Yh(c,a.target)};this.Yd=function(){I(a).delay(function(){Yh(c,c.win.document.activeElement)},500)};this.win.document.addEventListener("focus",this.Zd,!0);this.win.addEventListener("blur",this.Yd)}f=Xh.prototype;f.Ga=function(){this.win.document.removeEventListener("focus",this.Zd,!0);this.win.removeEventListener("blur",this.Yd)};f.onFocus=function(a){return this.Ce.add(a)}; -function Yh(a,b){var c=Date.now();0==a.C.length||a.C[a.C.length-1].el!=b?a.C.push({el:b,time:c}):a.C[a.C.length-1].time=c;a.purgeBefore(c-a.Vf);a.Ce.fire(b)}f.getLast=function(){return 0==this.C.length?null:this.C[this.C.length-1].el};f.purgeBefore=function(a){for(var b=this.C.length-1,c=0;c=a){b=c-1;break}-1!=b&&this.C.splice(0,b+1)}; -f.hasDescendantsOf=function(a){this.win.document.activeElement&&Yh(this,this.win.document.activeElement);for(var b=0;ba&&(a=10);var b=Date.now()+a;return!this.isPending()||-10>b-this.kd?(this.cancel(),this.kd=b,this.ca=this.I.delay(this.hf,a),!0):!1};Zh.prototype.Xb=function(){this.ca=-1;this.kd=0;this.oa=!0;this.yf();this.oa=!1}; -Zh.prototype.cancel=function(){this.isPending()&&(this.I.cancel(this.ca),this.ca=-1)};function $h(){this.u=[];this.rb={};this.se=this.te=0}f=$h.prototype;f.getSize=function(){return this.u.length};f.getLastEnqueueTime=function(){return this.te};f.getLastDequeueTime=function(){return this.se};f.getTaskById=function(a){return this.rb[a]||null};f.enqueue=function(a){this.u.push(a);this.rb[a.id]=a;this.te=Date.now()};f.dequeue=function(a){var b=this.removeAtIndex(a,this.u.indexOf(this.rb[a.id]));if(!b)return!1;this.se=Date.now();return!0}; -f.peek=function(a){for(var b=1E6,c=null,d=0;dc)a.clearInterval(e),b(),h||x().error("ie-media-bug","IE media never resolved")},10)})}function bi(a){var b="(min-width: "+(a.innerWidth-1)+"px)"+(" AND (max-width: "+(a.innerWidth+1)+"px)");try{return a.matchMedia(b).matches}catch(c){return x().error("ie-media-bug","IE matchMedia failed: ",c),!0}};function ci(a){this.win=a;this.Od=this.Of.bind(this);this.Pd=this.Pf.bind(this);this.yc=this.Nd=this.zc=null;this.Jc="ontouchstart"in a||void 0!==a.navigator.maxTouchPoints&&0=this.Ae&&Od(this.win.document,"mousemove",this.zc)};function si(a){var b=this;this.ampdoc=a;this.win=a.win;this.a=J(a);this.aa=this.a.isRuntimeOn();this.Cf=!1;this.xe=this.win.devicePixelRatio||1;this.dg=0;this.g=[];this.kf=this.Gd=0;this.Z=this.a.isVisible();this.na=this.a.getPrerenderSize();this.bb=!1;this.he=!0;this.Hd=!1;this.ka=-1;this.Sa=!0;this.ob=-1;this.Zc=this.Nb=0;this.Xb=new Zh(this.win,function(){return b.doPass()});this.Ke=new Zh(this.win,function(){b.Sa=!0;b.schedulePass()});this.da=new $h;this.m=new $h;this.Rd=function(a){var c=b.o.getRect(), -e=a.resource.getLayoutBox(),c=Math.floor((e.top-c.top)/c.height);Math.sign(c)!=b.getScrollDirection()&&(c*=2);c=Math.abs(c);return 10*a.priority+c};this.V=[];this.Ia=[];this.ea=[];this.Pc=!1;this.o=Gc(this.ampdoc);this.l=K(this.win);this.Fd=new Xh(this.win,6E4);this.Ed=!1;this.ec=0;this.Na=!1;this.bf=new Wh(this.a.getVisibilityState());ti(this,this.bf);this.o.onChanged(function(a){b.Nb=Date.now();b.Zc=a.velocity;b.Sa=b.Sa||a.relayoutAll;b.schedulePass()});this.o.onScroll(function(){b.Nb=Date.now()}); -this.a.onVisibilityChanged(function(){-1==b.ka&&b.a.isVisible()&&(b.ka=Date.now());b.schedulePass()});this.a.onRuntimeState(function(a){b.aa=a;b.schedulePass(1)});this.Fd.onFocus(function(a){ui(b,a)});this.schedulePass();this.ampdoc.whenReady().then(function(){function a(){return b.Ke.schedule()}b.bb=!0;vi(b);b.ea=null;var d=ai(b.win);d?d.then(a):a();wi(b);Promise.race([Qd(b.win),I(b.win).promise(3100)]).then(a);b.win.document.fonts&&"loaded"!=b.win.document.fonts.status&&b.win.document.fonts.ready.then(a)})} -f=si.prototype;f.get=function(){return this.g.slice(0)};f.isRuntimeOn=function(){return this.aa};f.renderStarted=function(){this.ampdoc.signals().signal("render-start")}; -f.getMeasuredResources=function(a,b){var c=this;return this.ampdoc.signals().whenSignal("ready-scan").then(function(){var b=[];c.g.forEach(function(d){d.hasBeenMeasured()||d.hostWin!=a||d.hasOwner()||b.push(xi(c,d))});return Promise.all(b)}).then(function(){return c.g.filter(function(c){return c.hostWin==a&&!c.hasOwner()&&c.hasBeenMeasured()&&b(c)})})}; -f.getResourcesInRect=function(a,b,c){return this.getMeasuredResources(a,function(a){return!a.isDisplayed()||!a.overlaps(b)&&!a.isFixed()||c&&!a.prerenderAllowed()?!1:!0})};function wi(a){F(a.win,"input",ci);var b=H(a.win,"input");b.onTouchDetected(function(b){yi(a,"amp-mode-touch",b)},!0);b.onMouseDetected(function(b){yi(a,"amp-mode-mouse",b)},!0);b.onKeyboardStateChanged(function(b){yi(a,"amp-mode-keyboard-active",b)},!0)} -function yi(a,b,c){a.ampdoc.whenBodyAvailable().then(function(d){a.l.mutate(function(){d.classList.toggle(b,c)})})}f.getMaxDpr=function(){return this.xe};f.getDpr=function(){return this.xe};f.getResourceForElement=function(a){return Y(a)};f.getResourceForElementOptional=function(a){return Y(a)};f.getElementLayoutBox=function(a){var b=this,c=this.getResourceForElementOptional(a);return c?xi(this,c):this.l.measurePromise(function(){return b.getViewport().getLayoutRect(a)})}; -function xi(a,b){return b.hasBeenMeasured()?Promise.resolve(b.getPageLayoutBox()):a.l.measurePromise(function(){b.measure();return b.getPageLayoutBox()})}f.getViewport=function(){return this.o};f.getScrollDirection=function(){return Math.sign(this.Zc)||1};f.add=function(a){this.Gd++;1==this.Gd&&this.o.ensureReadyForElements();var b=Y(a);b&&0!=b.getState()&&!a.reconstructWhenReparented()?b.requestMeasure():b=new kg(++this.dg,a,this);this.g.push(b);this.Ke.schedule(1E3)}; -f.grantBuildPermission=function(){return 20>this.kf++||this.a.hasBeenVisible()};function zi(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!0:d;if(a.aa||a.Cf)a.bb?Ai(a,b,d):b.isBuilt()||b.isBuilding()||c&&a.ea.includes(b)||(a.ea.push(b),vi(a,d))} -function vi(a,b){if(!a.Pc)try{a.Pc=!0;b=void 0===b?!0:b;b=void 0===b?!0:b;for(var c=0;cMath.abs(a.Zc)&&500=c.bottom-g||0==B&&y.bottom+Math.min(A,0)>=c.bottom-g)E=!0;else if(1A&&c.top+v<-A)continue;l?(v+=A,w.push(t)):a.V.push(t);continue}else u.bottom>=k||y.bottom>=k?E=!0:0>A||0>B||0>M||t.resource.overflowCallback(!0,t.newHeight,t.newWidth, -P);E&&(0<=y.top&&(q=-1==q?y.top:Math.min(q,y.top)),t.resource.changeSize(t.newHeight,t.newWidth,P),t.resource.overflowCallback(!1,t.newHeight,t.newWidth,P),a.Na=!0);t.callback&&t.callback(E)}-1!=q&&Ki(a,q);0=d){var m=k.isDisplayed();k.measure(); -m&&!k.isDisplayed()&&(l||(l=[]),l.push(k))}l&&a.l.mutate(function(){l.forEach(function(b){b.unload();Ci(a,b)})});var d=a.o.getRect(),n;n=a.Z?ze(d,.25,2):0a.da.getLastDequeueTime()+ -5E3)for(var v=0,b=0;bthis.Kf){var c=Infinity,d=null;for(a=0;a=c)return 0;if(1<=c)return 1;for(var d=0,e=1,g=0,h=0;8>h;h++){var g=this.getPointX(c),k=(this.getPointX(c+b)-g)/b;if(Math.abs(g-a)b&&8>h;h++)gc;c++)if(isNaN(b[c]))return null;return ej(b[0],b[1],b[2],b[3])}return null}return kj[a]}return a};function mj(){}function nj(a,b){this.$a=a;this.l=b||K(self);this.ae=null;this.L=[]}function oj(a,b,c,d){return(new nj(a)).setCurve(d).add(0,b,1).start(c)}nj.prototype.setCurve=function(a){a&&(this.ae=lj(a));return this};nj.prototype.add=function(a,b,c,d){this.L.push({delay:a,func:b,duration:c,curve:lj(d)});return this};nj.prototype.start=function(a){var b=new pj(this.l,this.$a,this.L,this.ae,a);b.vd();return b}; -function pj(a,b,c,d,e){var g=this;this.l=a;this.$a=b;this.L=[];for(b=0;b=d.delay&&(d.started=!0)}for(c=0;cq&&(!!m&&0==parseInt(m,10)||!!l&&0==parseInt(l,10)));M&&(b=!0);c[k.id]={fixed:u,sticky:B,transferrable:M,top:m,zIndex:C, -transform:v}}else c[k.id]={fixed:!1,sticky:!1,transferrable:!1,top:"",zIndex:""}}},mutate:function(c){if(b&&a.ub){var d=wj(a);d.className!=a.ampdoc.getBody().className&&(d.className=a.ampdoc.getBody().className)}a.B.forEach(function(b,d){var e=c[b.id];if(e){var g=e,l=b.element,m=b.fixedNow;b.fixedNow=g.fixed;b.stickyNow=g.sticky;b.top=g.fixed||g.sticky?g.top:"";b.transform=g.transform;!m||g.fixed&&g.transferrable||vj(a,b);g.top&&(g.fixed||g.sticky)&&(g.fixed||!a.ub?T(l,"top","calc("+g.top+" + "+a.s+ -"px)"):a.yb===a.s?T(l,"top",g.top):T(l,"top","calc("+g.top+" - "+a.yb+"px)"));a.ub&&g.fixed&&!m&&g.transferrable&&xj(a,b,d,g)}})}},{}).catch(function(a){x().error("FixedLayer","Failed to mutate fixed elements:",a)})}; -f.trySetupSelectorsNoInline=function(a,b){try{for(var c=0;cMath.random()&&x().error("Viewport","viewport has zero dimensions")}return this.ha};f.getHeight=function(){return this.getSize().height};f.getWidth=function(){return this.getSize().width}; -f.getScrollWidth=function(){return this.b.getScrollWidth()};f.getScrollHeight=function(){return this.b.getScrollHeight()};f.getRect=function(){if(null==this.nb){var a=this.getScrollTop(),b=this.getScrollLeft(),c=this.getSize();this.nb=X(b,a,c.width,c.height)}return this.nb}; -f.getLayoutRect=function(a){var b=this.getScrollLeft(),c=this.getScrollTop(),d=ac(a,this.ampdoc.win);return d?(a=this.b.getLayoutRect(a,0,0),b=this.b.getLayoutRect(d,b,c),X(Math.round(a.left+b.left),Math.round(a.top+b.top),Math.round(a.width),Math.round(a.height))):this.b.getLayoutRect(a,b,c)};f.isDeclaredFixed=function(a){return this.S.isDeclaredFixed(a)};f.scrollIntoView=function(a){var b=this.b.getLayoutRect(a).top,c=Math.max(0,b-this.s);this.b.setScrollTop(c)}; -f.animateScrollIntoView=function(a,b,c,d){b=void 0===b?500:b;c=void 0===c?"ease-in":c;d=void 0===d?"top":d;var e=this;a=this.b.getLayoutRect(a);switch(d){case "bottom":d=-this.getHeight()+a.height;break;case "center":d=-this.getHeight()/2+a.height/2;break;default:d=0}var g=a.top-this.s+d;d=Math.max(0,g);var h=this.getScrollTop();if(d==h)return Promise.resolve();var k=yj(h,d);return oj(this.ampdoc.getRootNode(),function(a){e.b.setScrollTop(k(a))},b,c).then()};f.onChanged=function(a){return this.$d.add(a)}; -f.onScroll=function(a){return this.X.add(a)};f.onResize=function(a){return this.W.add(a)};f.enterLightboxMode=function(a){this.a.sendMessage("requestFullOverlay",{},!0);this.enterOverlayMode();this.hideFixedLayer();a&&this.maybeEnterFieLightboxMode(a);return this.b.updateLightboxMode(!0)};f.leaveLightboxMode=function(a){this.a.sendMessage("cancelFullOverlay",{},!0);this.showFixedLayer();this.leaveOverlayMode();a&&this.maybeLeaveFieLightboxMode(a);return this.b.updateLightboxMode(!1)}; -f.isLightboxExperimentOn=function(){return O(this.ampdoc.win,"amp-lightbox-a4a-proto")};f.maybeEnterFieLightboxMode=function(a){var b=Bj(this,a);b&&(this.isLightboxExperimentOn(),b.enterFullOverlayMode())};f.maybeLeaveFieLightboxMode=function(a){(a=Bj(this,a))&&a.leaveFullOverlayMode()};function Bj(a,b){var c=ac(b,a.ampdoc.win);return c&&c.__AMP_EMBED__}f.enterOverlayMode=function(){this.disableTouchZoom();this.disableScroll()};f.leaveOverlayMode=function(){this.resetScroll();this.restoreOriginalTouchZoom()}; -f.disableScroll=function(){var a=this;this.l.mutate(function(){a.b.disableScroll()})};f.resetScroll=function(){var a=this;this.l.mutate(function(){a.b.resetScroll()})};f.resetTouchZoom=function(){var a=this,b=this.ampdoc.win.innerHeight,c=this.ta.documentElement.clientHeight;b&&c&&b===c||this.disableTouchZoom()&&this.I.delay(function(){a.restoreOriginalTouchZoom()},50)}; -f.disableTouchZoom=function(){var a=Cj(this);if(!a)return!1;var b=a.content,c={"maximum-scale":"1","user-scalable":"no"};var d=Object.create(null);if(b)for(var e=b.split(/,|;/),g=0;g=b)return Promise.resolve();var e=yj(a.Mb-a.s,0);return oj(a.ampdoc.getRootNode(),function(b){b=e(b);a.S.transformMutate("translateY("+b+"px)")},b,c).thenAlways(function(){a.S.transformMutate(null)})}function Fj(a,b,c){var d=a.getSize(),e=a.getScrollTop(),g=a.getScrollLeft();a.$d.fire({relayoutAll:b,top:e,left:g,width:d.width,height:d.height,velocity:c})} -f.fg=function(){var a=this;this.nb=null;this.Oe++;this.fc=this.b.getScrollLeft();var b=this.b.getScrollTop();if(!(0>b)){this.Aa=b;if(!this.rd){this.rd=!0;var c=Date.now();this.I.delay(function(){a.l.measure(function(){a.yd(c,b)})},36)}this.X.fire()}};f.yd=function(a,b){var c=this,d=this.Aa=this.b.getScrollTop(),e=Date.now(),g=0;e!=a&&(g=(d-b)/(e-a));.03>Math.abs(g)?(Fj(this,!1,g),this.rd=!1):this.I.delay(function(){return c.l.measure(c.yd.bind(c,e,d))},20)}; -f.gg=function(){var a=this;this.qd||(this.qd=!0,this.l.measure(function(){a.qd=!1;a.a.sendMessage("scroll",D({scrollTop:a.getScrollTop()}),!0)}))};f.Me=function(){var a=this;this.nb=null;var b=this.ha;this.ha=null;var c=this.getSize();this.S.update().then(function(){var d=!b||b.width!=c.width;Fj(a,d,0);var e=d||b.height!=c.height;e&&a.W.fire({relayoutAll:d,width:c.width,height:c.height})})}; -function Gj(a,b){var c=this;this.ampdoc=a;this.win=a.win;this.Zb=Dc(this.win);this.a=b;this.X=new W;this.W=new W;this.Za=function(){return c.X.fire()};this.Ya=function(){return c.W.fire()}}f=Gj.prototype;f.connect=function(){this.win.addEventListener("scroll",this.Za);this.win.addEventListener("resize",this.Ya)};f.disconnect=function(){this.win.removeEventListener("scroll",this.Za);this.win.removeEventListener("resize",this.Ya)};f.ensureReadyForElements=function(){};f.getBorderTop=function(){return 0}; -f.requiresFixedLayerTransfer=function(){return!1};f.onScroll=function(a){this.X.add(a)};f.onResize=function(a){this.W.add(a)};f.updatePaddingTop=function(a){T(this.win.document.documentElement,"paddingTop",a+"px")};f.hideViewerHeader=function(a){a||this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){this.win.document.documentElement.classList.add("i-amphtml-scroll-disabled")};f.resetScroll=function(){this.win.document.documentElement.classList.remove("i-amphtml-scroll-disabled")}; -f.updateLightboxMode=function(){return Promise.resolve()};f.getSize=function(){var a=this.win.innerWidth,b=this.win.innerHeight;if(a&&b)return{width:a,height:b};var c=this.win.document.documentElement;return{width:c.clientWidth,height:c.clientHeight}};f.getScrollTop=function(){var a=Hj(this).scrollTop||this.win.pageYOffset,b=this.ampdoc.getRootNode().host;return b?a-b.offsetTop:a};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return Hj(this).scrollWidth};f.getScrollHeight=function(){return Hj(this).scrollHeight}; -f.getLayoutRect=function(a,b,c){var d=void 0!=c?c:this.getScrollTop(),e=void 0!=b?b:this.getScrollLeft();a=a.getBoundingClientRect();return X(Math.round(a.left+e),Math.round(a.top+d),Math.round(a.width),Math.round(a.height))};f.setScrollTop=function(a){Hj(this).scrollTop=a};function Hj(a){var b=a.win.document;return b.scrollingElement?b.scrollingElement:b.body&&a.Zb.isWebKit()?b.body:b.documentElement} -function Ij(a,b){var c=this;this.win=a;this.ampdoc=b;this.Ka=this.pa=this.ga=null;this.wa={x:0,y:0};this.X=new W;this.W=new W;this.s=0;this.win.document.documentElement.classList.add("i-amphtml-ios-embed-legacy");we(this.win.document).then(function(){return c.gc()});this.win.addEventListener("resize",function(){return c.W.fire()})}f=Ij.prototype;f.ensureReadyForElements=function(){};f.getBorderTop=function(){return 0};f.requiresFixedLayerTransfer=function(){return!0}; -f.gc=function(){var a=this.win.document.body;V(this.win.document.documentElement,{overflowY:"auto",webkitOverflowScrolling:"touch"});V(a,{overflowX:"hidden",overflowY:"auto",webkitOverflowScrolling:"touch",position:"absolute",top:0,left:0,right:0,bottom:0});this.ga=this.win.document.createElement("div");this.ga.id="i-amphtml-scrollpos";V(this.ga,{position:"absolute",top:0,left:0,width:0,height:0,visibility:"hidden"});a.appendChild(this.ga);this.pa=this.win.document.createElement("div");this.pa.id= -"i-amphtml-scrollmove";V(this.pa,{position:"absolute",top:0,left:0,width:0,height:0,visibility:"hidden"});a.appendChild(this.pa);this.Ka=this.win.document.createElement("div");this.Ka.id="i-amphtml-endpos";V(this.Ka,{width:0,height:0,visibility:"hidden"});a.appendChild(this.Ka);a.addEventListener("scroll",this.Ub.bind(this));zj(this.ampdoc)};f.connect=function(){};f.disconnect=function(){}; -f.hideViewerHeader=function(a,b){var c=this;a?ue(this.win.document,function(a){a=a.body;var d=(c.win.getComputedStyle(a)||z()).paddingTop||"0";V(a,{paddingTop:"calc("+d+" + "+b+"px)",borderTop:""})}):this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){};f.resetScroll=function(){};f.updatePaddingTop=function(a){var b=this;ue(this.win.document,function(c){b.s=a;V(c.body,{borderTop:a+"px solid transparent",paddingTop:""})})}; -f.updateLightboxMode=function(a){var b=this;return new Promise(function(c){ue(b.win.document,function(d){K(b.win).mutatePromise(function(){T(d.body,"borderTopStyle",a?"none":"solid")}).then(c)})})};f.onScroll=function(a){this.X.add(a)};f.onResize=function(a){this.W.add(a)};f.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}};f.getScrollTop=function(){return Math.round(this.wa.y)};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return this.win.innerWidth}; -f.getScrollHeight=function(){return this.Ka?Math.round(this.Ka.getBoundingClientRect().top-this.ga.getBoundingClientRect().top):0};f.getLayoutRect=function(a){a=a.getBoundingClientRect();return X(Math.round(a.left+this.wa.x),Math.round(a.top+this.wa.y),Math.round(a.width),Math.round(a.height))};f.setScrollTop=function(a){Jj(this,a||1)}; -f.Ub=function(a){this.ga&&(this.ga&&this.pa&&0==-this.ga.getBoundingClientRect().top+this.s&&(Jj(this,1),a&&a.preventDefault()),a=this.ga.getBoundingClientRect(),this.wa.x!=-a.left||this.wa.y!=-a.top)&&(this.wa.x=-a.left,this.wa.y=-a.top+this.s,this.X.fire())};function Jj(a,b){a.pa&&(T(a.pa,"transform","translateY("+(b-a.s)+"px)"),a.pa.scrollIntoView(!0))} -function Kj(a){var b=this;this.win=a;var c=this.win.document.documentElement.className;this.win.document.documentElement.className="";this.win.document.documentElement.classList.add("i-amphtml-ios-embed");this.J=this.win.document.createElement("html");this.J.id="i-amphtml-wrapper";this.J.className=c;this.X=new W;this.W=new W;this.Za=this.Ub.bind(this);this.Ya=function(){return b.W.fire()};this.Pe=!1;fc(this.win.document,this.gc.bind(this));we(this.win.document).then(function(){b.win.document.documentElement.classList.add("i-amphtml-ios-overscroll")})} -f=Kj.prototype;f.ensureReadyForElements=function(){this.gc()};f.gc=function(){if(!this.Pe){this.Pe=!0;var a=this.win.document,b=a.body;a.documentElement.appendChild(this.J);this.J.appendChild(b);Object.defineProperty(a,"body",{get:function(){return b}});this.Ub()}};f.connect=function(){this.win.addEventListener("resize",this.Ya);this.J.addEventListener("scroll",this.Za)};f.disconnect=function(){this.win.removeEventListener("resize",this.Ya);this.J.removeEventListener("scroll",this.Za)}; -f.getBorderTop=function(){return 1};f.requiresFixedLayerTransfer=function(){return!0};f.onScroll=function(a){this.X.add(a)};f.onResize=function(a){this.W.add(a)};f.updatePaddingTop=function(a){T(this.J,"paddingTop",a+"px")};f.hideViewerHeader=function(a){a||this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){this.J.classList.add("i-amphtml-scroll-disabled")};f.resetScroll=function(){this.J.classList.remove("i-amphtml-scroll-disabled")}; -f.updateLightboxMode=function(){return Promise.resolve()};f.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}};f.getScrollTop=function(){return this.J.scrollTop};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return this.J.scrollWidth};f.getScrollHeight=function(){return this.J.scrollHeight}; -f.getLayoutRect=function(a,b,c){c=void 0!=c?c:this.getScrollTop();b=void 0!=b?b:this.getScrollLeft();a=a.getBoundingClientRect();return X(Math.round(a.left+b),Math.round(a.top+c),Math.round(a.width),Math.round(a.height))};f.setScrollTop=function(a){this.J.scrollTop=a||1};f.Ub=function(a){0==this.J.scrollTop&&(this.J.scrollTop=1,a&&a.preventDefault());a&&this.X.fire()}; -function Lj(a){var b=J(a),c;if(c=a.isSingleDoc()){c=a.win;var d=b.getParam("viewportType")||Mj;Dc(c).isIos()&&d==Mj?!rc(c)&&p(c).development?c=Nj:(rc(c),c=rc(c)&&b.isEmbedded()?Nj:d):c=d;c=c==Nj}c=c?8a.tb} -function Pj(a){Qj(a)&&Rj(a.c)&&(a.jb=new a.c.PerformanceObserver(function(b){for(var c=b.getEntries(),d=0;dc?g(Error("timeout")):(k=d,l(a)):e()}});l({})}):Promise.reject(Error("CANCELLED"))};f.za=function(){this.ca||(this.ca=!0,this.re.onScheduled(),Uj(this))};function Uj(a){Vj(a)?(a.Xf(a.Ac),a.Jd.schedule()):a.Af.schedule()} -f.eg=function(){this.Jd.cancel();this.ca=!1;this.re.onRun();var a=this.u,b=this.wd,c=this.gd;this.Tb=this.gd=null;this.u=this.jd;this.wd=this.hd;for(var d=0;dMath.random()&&N(a).origin!=this.win.location.origin&&!J(this.uc).hasBeenVisible()&&x().error("XHR","attempted to fetch %s before viewer was visible",a);var c=b.credentials;return"document"==b.responseType?bk(a,b):(this.win.fetch||bk).apply(null,arguments)}; -function ck(a,b,c){c=void 0===c?{}:c;!1!==c.ampCors?b=a.getCorsUrl(a.win,b):c.requireAmpResponseSourceOrigin=!1;!0===c.requireAmpResponseSourceOrigin&&x().error("XHR","requireAmpResponseSourceOrigin is deprecated, use ampCors instead");void 0===c.requireAmpResponseSourceOrigin&&(c.requireAmpResponseSourceOrigin=!0);var d=N(a.win.location.href).origin,e=N(b).origin;d==e&&(c.headers=c.headers||{},c.headers["AMP-Same-Origin"]="true");return a.tf(b,c).then(function(b){var d=b.headers.get("AMP-Access-Control-Allow-Source-Origin"); -if(d){var e=md(a.win.location.href);r().assert(d==e,"Returned AMP-Access-Control-Allow-Source-Origin is not equal to the current: "+d+(" vs "+e))}else c.requireAmpResponseSourceOrigin&&r().assert(!1,"Response must contain the AMP-Access-Control-Allow-Source-Origin header");return b},function(a){throw r().createExpectedError("XHR","Failed fetching"+(" ("+e+"/...):"),a&&a.message);})} -f.fetchJson=function(a,b){var c=dk(b,"application/json");"POST"==c.method&&"[object FormData]"!==pa.call(c.body)&&(Yj.some(function(a){return a(c.body)}),c.headers["Content-Type"]=c.headers["Content-Type"]||"text/plain;charset=utf-8",c.body=JSON.stringify(c.body));return this.fetch(a,c)};f.fetchText=function(a,b){return this.fetch(a,dk(b,"text/plain"))};f.fetchDocument=function(a,b){b=dk(b,"text/html");b.responseType="document";return this.fetch(a,b).then(function(a){return a.G()})}; -f.fetch=function(a,b){b=dk(b);return ck(this,a,b).then(function(a){return ek(a)})};f.sendSignal=function(a,b){return ck(this,a,b).then(function(a){return ek(a)})};f.getCorsUrl=function(a,b){nd(b);a=md(a.location.href);a=encodeURIComponent("__amp_source_origin")+"="+encodeURIComponent(a);return ed(b,a,void 0)};function dk(a,b){a=a||{};var c;c=a.method;void 0===c?c="GET":(c=c.toUpperCase(),Xj.includes(c));a.method=c;a.headers=a.headers||{};b&&(a.headers.Accept=b);return a} -function bk(a,b){return new Promise(function(c,d){var e=fk(b.method||"GET",a);"include"==b.credentials&&(e.withCredentials=!0);b.responseType in Zj&&(e.responseType=b.responseType);b.headers&&Object.keys(b.headers).forEach(function(a){e.setRequestHeader(a,b.headers[a])});e.onreadystatechange=function(){2>e.readyState||(100>e.status||599b;c.response=a;throw c;})}function gk(a){this.ra=a;this.status=this.ra.status;this.ok=200<=this.status&&300>this.status;this.headers=new hk(a);this.bodyUsed=!1;this.body=null}f=gk.prototype;f.clone=function(){return new gk(this.ra)};function ik(a){a.bodyUsed=!0;return Promise.resolve(a.ra.responseText)}f.text=function(){return ik(this)};f.json=function(){return ik(this).then(td)}; -f.G=function(){this.bodyUsed=!0;r().assert(this.ra.responseXML,"responseXML should exist. Make sure to return Content-Type: text/html header.");return Promise.resolve(this.ra.responseXML)};f.arrayBuffer=function(){return ik(this).then(Hc)};function hk(a){this.ra=a}hk.prototype.get=function(a){return this.ra.getResponseHeader(a)};hk.prototype.has=function(a){return null!=this.ra.getResponseHeader(a)};function jk(a){ak.call(this,a);this.eb=z()}aa(jk,ak);jk.prototype.fetch=function(a,b){var c=this,d=b&&b.headers&&b.headers.Accept||"",e=!b||!b.method||"GET"===b.method,g=id(a)+d,h=!!this.eb[g];if(e&&h)return this.eb[g].then(function(a){return a.clone()});var k=ak.prototype.fetch.call(this,a,b);e&&(this.eb[g]=k.then(function(a){delete c.eb[g];return a.clone()},function(a){delete c.eb[g];throw a;}));return k};var kk="alt title referrerpolicy aria-label aria-describedby aria-labelledby".split(" ");function lk(a){$f.call(this,a);this.qe=this.Xa=!0;this.kc=this.H=null}aa(lk,$f);f=lk.prototype;f.mutatedAttributesCallback=function(a){if(void 0!==a.src||void 0!==a.srcset)this.kc=mf(this.element),this.H&&mk(this);if(this.H){var b=kk.filter(function(b){return void 0!==a[b]});this.propagateAttributes(b,this.H,!0)}}; -f.preconnectCallback=function(a){var b=this.element.getAttribute("src");if(b)this.preconnect.url(b,a);else{var c=this.element.getAttribute("srcset");if(c){var d=c.match(/https?:\/\/[^\s]+/);d&&this.preconnect.url(d[0],a)}}};f.buildCallback=function(){this.qe=!this.element.hasAttribute("noprerender")};f.isLayoutSupported=function(a){return ge(a)}; -f.Gb=function(){this.H||(this.kc||(this.kc=mf(this.element)),this.Xa=!0,this.element.hasAttribute("fallback")&&(this.Xa=!1),this.H=new Image,this.element.id&&this.H.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),r().error("AMP-IMG","Setting role=img on amp-img elements breaks screen readers please just set alt or ARIA attributes, they will be correctly propagated for the underlying element.")),this.propagateAttributes(kk, -this.H),this.applyFillContent(this.H,!0),this.element.appendChild(this.H))};f.prerenderAllowed=function(){return this.qe};f.isRelayoutNeeded=function(){return!0};f.reconstructWhenReparented=function(){return!1};f.layoutCallback=function(){var a=this;this.Gb();var b=mk(this);this.Xa&&(b=b.catch(function(b){nk(a);throw b;}),this.Xa=!1);return b}; -function mk(a){if(0>=a.getLayoutWidth())return Promise.resolve();var b=a.kc.select(a.getLayoutWidth(),a.getDpr()).url;if(b==a.H.getAttribute("src"))return Promise.resolve();a.H.setAttribute("src",b);return a.loadPromise(a.H).then(function(){!a.Xa&&a.H.classList.contains("i-amphtml-ghost")&&a.getVsync().mutate(function(){a.H.classList.remove("i-amphtml-ghost");a.toggleFallback(!1)})})} -function nk(a){a.getVsync().mutate(function(){a.H.classList.add("i-amphtml-ghost");a.toggleFallback(!0);a.togglePlaceholder(!1)})};function ok(a){$f.call(this,a);this.zd=null}aa(ok,$f);ok.prototype.isLayoutSupported=function(){return!0};ok.prototype.buildCallback=function(){this.element.setAttribute("aria-hidden","true");(this.$b=this.element.getAttribute("referrerpolicy"))&&r().assert("no-referrer"==this.$b,'amp-pixel: invalid "referrerpolicy" value "'+this.$b+'". Only "no-referrer" is supported');J(this.getAmpDoc()).whenFirstVisible().then(this.lg.bind(this))}; -ok.prototype.lg=function(){var a=this;if(this.zd)return x().error("amp-pixel","duplicate pixel"),this.zd;this.zd=I(this.win).promise(1).then(function(){var b=a.element.getAttribute("src");if(b)return Fc(a.element).expandAsync(pk(b)).then(function(b){var c;if(a.$b)if(c=a.element,"referrerPolicy"in Image.prototype)c=qk(c.ownerDocument.defaultView,b,!0);else{var e=c.ownerDocument,g=D({src:"about:blank"}),e=e.createElement("iframe"),h;for(h in g)e.setAttribute(h,g[h]);c.appendChild(e);qk(e.contentWindow, -b);c=e}else c=qk(a.win,b);var k=c;x().info("amp-pixel","pixel triggered: ",b);return k})})};function pk(a){r().assert(/^(https\:\/\/|\/\/)/i.test(a),'The src attribute must start with "https://" or "//". Invalid value: '+a);return a}function qk(a,b,c){a=new a.Image;c&&(a.referrerPolicy="no-referrer");a.src=b;return a};var rk=["amp-ad","amp-embed","amp-video"];function sk(a){this.win=a;this.Bb={};this.zb=null}f=sk.prototype;f.waitForExtension=function(a){return tk(uk(this,a))}; -f.loadExtension=function(a,b){b=void 0===b?!0:b;"amp-embed"==a&&(a="amp-ad");var c=uk(this,a),d=b,e;c.loaded||c.error?e=!1:(void 0===c.scriptPresent&&(e=this.win.document.head.querySelector('[custom-element="'+a+'"]'),c.scriptPresent=!!e),e=!c.scriptPresent);if(e){e=this.win.document.createElement("script");e.async=!0;e.setAttribute("custom-element",a);e.setAttribute("data-script",a);e.setAttribute("i-amphtml-inserted","");var g=Kc.urls.cdn+"/rtv/"+p().rtvVersion+"/v0/"+a+"-0.1.js";e.src=g;this.win.document.head.appendChild(e); -c.scriptPresent=!0;d&&sg(this.win,a)}return tk(c)};f.reloadExtension=function(a,b){this.Bb[a]&&delete this.Bb[a];b.removeAttribute("custom-element");b.setAttribute("i-amphtml-loaded-new-version",a);return this.loadExtension(a,!1)};f.loadElementClass=function(a){return this.loadExtension(a).then(function(b){return b.elements[a].implementationClass})};function vk(a,b,c,d){wk(a,b).extension.elements[b]={implementationClass:c,css:d}}f.wg=function(a,b){wk(this,b).docFactories.push(a)}; -f.xg=function(a,b){wk(this,b).shadowRootFactories.push(a)};f.installFactoriesInShadowRoot=function(a,b){var c=this,d=[];b.forEach(function(b){var e=uk(c,b);d.push(tk(e).then(function(){e.shadowRootFactories.forEach(function(c){try{c(a)}catch(k){Ba("ShadowRoot factory failed: ",k,b)}})}))});return Promise.all(d)}; -f.installExtensionsInChildWindow=function(a,b,c){var d=this,e=this.win;$b(a,a.frameElement.ownerDocument.defaultView);xk(a);Id(a.document,cssText$$module$build$css,function(){},!0,"amp-runtime");c&&c(a);yk(a);zk(e,a);Ak(a);var g=[];b.forEach(function(b){sg(e,b);rk.includes(b)||qg(a,b,dg);var c=d.loadExtension(b).then(function(c){c.services.forEach(function(b){cc(a,b)});var d=c.elements[b];return d&&d.css?(new Promise(function(c){Id(a.document,d.css,c,!1,b)})).then(function(){return c}):c}).then(function(b){Object.keys(b.elements).forEach(function(b){var c= -og(e)[b];c||x().warn("CustomElement","%s is not stubbed yet",b);pg(a,b,c)})});g.push(c)});return Promise.all(g)};function uk(a,b){var c=a.Bb[b];c||(c={extension:{elements:{},services:[]},docFactories:[],shadowRootFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},a.Bb[b]=c);return c}function wk(a,b){a.zb||x().error("extensions","unknown extension for ",b);return uk(a,a.zb||"_UNKNOWN_")} -function tk(a){a.promise||(a.promise=a.loaded?Promise.resolve(a.extension):a.error?Promise.reject(a.error):new Promise(function(b,c){a.resolve=b;a.reject=c}));return a.promise}function zk(a,b){var c=og(a)["amp-img"];qg(b,"amp-img",c||dg);a=og(a)["amp-pixel"];qg(b,"amp-pixel",a||dg)}function Ak(a){rk.forEach(function(b){sg(a,b)})}function xk(a){Ja(a);wb(a);ub(a)}function yk(a){cc(a,"action");cc(a,"standard-actions");cc(a,"clickhandler")};var Bk=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/]; -function Ck(a,b){var c=this;this.ampdoc=a;this.win=a.win;this.Jb=rc(this.win);this.ab=Bc(this.win);this.aa=!0;this.nd=!1;this.af=this.rc="visible";this.na=1;this.dd=z();this.Ne=new W;this.wb=new W;this.Wd=new W;this.Sb=this.Oa=null;this.Pa=[];this.A={};this.Ad=this.Dd=this.fd=this.ve=this.ka=this.cf=null;this.tg=new Promise(function(a){c.cf=a});b?Object.assign(this.A,b):(this.win.name&&0==this.win.name.indexOf("__AMP__")&&Dk(this.win.name.substring(7),this.A),this.win.location.hash&&Dk(this.win.location.hash, -this.A));this.aa=!parseInt(this.A.off,10);this.nd=!(!parseInt(this.A.history,10)&&!this.nd);Ek(this,this.A.visibilityState);this.na=parseInt(this.A.prerenderSize,10)||this.na;this.Wc=!this.Jb&&"1"==this.A.webview;this.Hb=!(!(this.Jb&&!this.win.AMP_TEST_IFRAME&&(this.A.origin||this.A.visibilityState||-1!=this.win.location.search.indexOf("amp_js_v"))||this.Wc)&&a.isSingleDoc());this.Hc=this.isVisible();this.ab.onVisibilityChanged(this.Je.bind(this));this.ed=this.Hb?I(this.win).timeoutPromise(2E4,new Promise(function(a){c.fd= -a})).catch(function(a){throw Fk(a);}):null;this.ye=this.Hb?this.ed.catch(function(a){Vd(Fk(a))}):null;var d,e;this.Hb?this.win.location.ancestorOrigins&&!this.Wc?(d=0 - - - - - - - - Download draw.io - - - - - - - - - -
- -
-
-
- - - -
-
-
-
- - diff --git a/docs/index.md b/docs/index.md deleted file mode 100644 index 1eb5d6724..000000000 --- a/docs/index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -# You don't need to edit this file, it's empty on purpose. -# Edit theme's home layout instead if you wanna make some changes -# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults -layout: home ---- diff --git a/package.json b/package.json index 9a6470ab4..40f236d67 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "draw.io", - "version": "6.8.0", + "version": "7.1.6", "description": "draw.io desktop", "main": "electron.js", "scripts": {