diff --git a/doc/_static/aws-ux-shortbread/index.js b/doc/_static/aws-ux-shortbread/index.js new file mode 100644 index 0000000000..e0cf788307 --- /dev/null +++ b/doc/_static/aws-ux-shortbread/index.js @@ -0,0 +1,3 @@ +/*! Version: 1.0.13 */ +!function(e,c){if("object"==typeof exports&&"object"==typeof module)module.exports=c();else if("function"==typeof define&&define.amd)define([],c);else{var a=c();for(var t in a)("object"==typeof exports?exports:e)[t]=a[t]}}(window,(function(){return function(e){var c={};function a(t){if(c[t])return c[t].exports;var n=c[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=e,a.c=c,a.d=function(e,c,t){a.o(e,c)||Object.defineProperty(e,c,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,c){if(1&c&&(e=a(e)),8&c)return e;if(4&c&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&c&&"string"!=typeof e)for(var n in e)a.d(t,n,function(c){return e[c]}.bind(null,n));return t},a.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(c,"a",c),c},a.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},a.p="",a(a.s=13)}([function(e,c,a){"use strict";var t=this&&this.__assign||function(){return(t=Object.assign||function(e){for(var c,a=1,t=arguments.length;a0&&r.forEach((function(c){if("string"==typeof c)l.appendChild(t.createTextNode(c));else if("number"==typeof c)l.appendChild(t.createTextNode(r.toString()));else{if(null===c)throw Error("Unsupported child type "+c);e(l,c,t,!0)}})),i?c.appendChild(l):c.insertBefore(l,c.firstChild)}},function(e,c,a){"use strict";var t,n=function(){return void 0===t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t},i=function(){var e={};return function(c){if(void 0===e[c]){var a=document.querySelector(c);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(e){a=null}e[c]=a}return e[c]}}(),o=[];function s(e){for(var c=-1,a=0;a-1?"awsccc-Rtl":"";function b(){return document.querySelector("div[data-id="+s.BANNER_ID+"]")}function f(){return document.querySelector("div[data-id="+s.CUSTOMIZE_ID+"]")}function h(e,c){var a=document.querySelector("label[data-id=awsccc-u-cb-"+e+"-label]"),t=a.classList,n=a.querySelector("input");c?(n.setAttribute("checked",""),t.add("awsccc-u-cb-checkbox-active")):(t.remove("awsccc-u-cb-checkbox-active"),n.removeAttribute("checked")),n.setAttribute("aria-checked",""+c)}var g=function(e){var c=e.event,a=e.category;"checkbox"!==c.target.getAttribute("type")&&"awsccc-cs-s-title"!==c.target.getAttribute("class")||h(a,!p(a))},m=function(c){return function(a,t){var n=b().querySelector("div[data-id=awsccc-cb-tabstart]");document.querySelector("div[data-id="+s.CUSTOMIZE_ID+"]").style.display="none",b().style.display="none",n.setAttribute("tabindex","-1"),e.onSaveConsent(a),document.body.classList.remove("awsccc-cs-modal-open"),e.log("info")(c,{detail:"Save Consent Clicked",source:t,cookie:e.getConsentCookie()})}},k=function(e){"Escape"===e.key&&x()},v=function(){return e.getConsentCookie()||u.DEFAULT_COOKIE},w=function(c){var a;a=v(),o.COOKIE_CATEGORIES.filter((function(e){return e!==o.ESSENTIAL})).forEach((function(e){h(e,a[e])})),f().addEventListener("keydown",k),f().style.display="block",document.body.classList.add("awsccc-cs-modal-open");var t=document.querySelectorAll("div[data-id="+s.TABTRAP_ID+"]");l.convertToArray(t).forEach((function(e,c){0===c&&e.focus({preventScroll:!0}),e.setAttribute("tabindex","0")})),e.log("info")("customizeCookies",{detail:"Customize Consent Clicked",source:c,cookie:e.getConsentCookie()})},x=function(){f().removeEventListener("keydown",k),f().style.display="none",document.body.classList.remove("awsccc-cs-modal-open");var c=f().querySelectorAll("div[data-id="+s.TABTRAP_ID+"]");(l.convertToArray(c).forEach((function(e){e.setAttribute("tabindex","-1")})),"block"===b().style.display)&&b().querySelector("div[data-id=awsccc-cb-tabstart]").focus({preventScroll:!0});e.onModalClose&&e.onModalClose()};return d.default((function(){document.querySelector("#"+s.CONTAINER_ID)||t.render(e.parent||document.body,t.act("div",{id:s.CONTAINER_ID},t.act("div",{id:s.APP_ID,class:a},t.act(n.default,{showConsentSelector:w,handleSaveClick:m("acceptAll"),localizedText:c.consentBanner,hasConsoleNavFooter:e.hasConsoleNavFooter}),t.act(i.default,{consentState:v(),handleSaveClick:m("customize"),handleCheckboxToggle:g,localizedText:c.consentSelector,closeConsentSelector:x,darkModeEnabled:e.hasConsoleNavFooter}))))})),{showConsentSelector:function(e){d.default((function(){w(e)}))},showBanner:function(e){d.default((function(){var c;c=b().querySelector("div[data-id=awsccc-cb-tabstart]"),b().style.display="block",c.setAttribute("tabindex","0"),c.focus({preventScroll:!0}),e()}))}}}c.isChecked=p,c.default={createShortbreadUi:function(e){return b(e)}}},function(e,c,a){"use strict";var t=this&&this.__assign||function(){return(t=Object.assign||function(e){for(var c,a=1,t=arguments.length;a0)try{var o=JSON.parse(atob(n[n.length-1]));return 1===(t=o).e&&"number"==typeof t.p&&"number"==typeof t.f&&"number"==typeof t.a&&"string"==typeof t.i&&"string"==typeof t.v?{essential:1===(a=o).e,performance:1===a.p,functional:1===a.f,advertising:1===a.a,id:a.i,version:a.v}:void i("getCookie",{detail:"Cookie format is not valid",cookie:o})}catch(e){return void i("getCookie",{detail:"Error parsing cookie",cookie:n[n.length-1]})}}function s(e){document.cookie=e}c.getConsentCookie=function(e,c){void 0===e&&(e=function(){return document.cookie});var a=o(e(),c);if(a)return{essential:a.essential,performance:a.performance,functional:a.functional,advertising:a.advertising}},c.setConsentCookie=function(e,c,a,r,l,u,d,p){void 0===c&&(c=".aws.amazon.com"),void 0===a&&(a=i.DEFAULT_COOKIE_AGE),void 0===r&&(r=n.default),void 0===l&&(l=s);var b,f=function(e){void 0===e&&(e=function(){return document.cookie});var c=o(e());if(c&&c.id)return c.id}()||r(u,d,p),h=t(t({},e),{id:f,version:i.COOKIE_VERSION}),g={e:(b=h).essential?1:0,p:b.performance?1:0,f:b.functional?1:0,a:b.advertising?1:0,i:b.id,v:b.version};return l("awsccc="+btoa(JSON.stringify(g))+"; domain="+c+"; path=/; max-age="+a+"; secure=true; SameSite=Lax"),h}},function(e,c,a){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var t=a(46);c.default=function(e,c,a){void 0===c&&(c=t.v4),void 0===a&&(a=function(){return"ts-"+Date.now().toString()});var n=e?e("error"):function(){};try{return c()}catch(e){return n("uuid",{detail:"Error generating UUID",errorMessage:e.message||""}),a()}}},function(e,c,a){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.queryGeolocationByHttpGetRequest=c.timestampUrl=c.QUERY_PARAM_KEY=void 0;var t=a(12);c.QUERY_PARAM_KEY="awsccc",c.timestampUrl=function(e){if(-1!==e.indexOf("?")){var a=e.split("?");e=a[0]+"?"+c.QUERY_PARAM_KEY+"="+Date.now()+"&"+a[1]}else{if(-1===e.indexOf("#"))return e+"?"+c.QUERY_PARAM_KEY+"="+Date.now();a=e.split("#");e=a[0]+"?"+c.QUERY_PARAM_KEY+"="+Date.now()+"#"+a[1]}return e},c.queryGeolocationByHttpGetRequest=function(e,a,n){function i(c,a,t,n,i){c("info")("geolocationLatency",{metric:a,region:t,detail:n,url:e,status:i.status})}return void 0===e&&(e="https://prod.tools.shortbread.aws.dev/1x1.png"),void 0===a&&(a=5e3),void 0===n&&(n=t.DEFAULT_LOGGER),function(o,s){void 0===s&&(s=n||t.DEFAULT_LOGGER);var r=Date.now(),l=new XMLHttpRequest;l.addEventListener("load",(function(){var e=403===l.status?"NON-EU":"EU";i(s,Date.now()-r,e,"Geolocation Response Received",l),o(e)})),l.addEventListener("timeout",(function(){o("EU");var c="Geolocation Request Timed out";i(s,a,"EU",c,l),s("error")("geolocationRequestTimeout",{url:e,timeoutSetting:a,detail:c})})),l.open("GET",c.timestampUrl(e)),l.timeout=a,l.send()}},c.default=c.queryGeolocationByHttpGetRequest},function(e,c,a){"use strict";var t=this&&this.__assign||function(){return(t=Object.assign||function(e){for(var c,a=1,t=arguments.length;aspan{color:#687078}",""]),e.exports=c},function(e,c,a){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var t=a(0),n=a(6),i=a(3);a(35);var o=a(5);c.default=function(e){var c=e.handleSaveClick,a=e.handleCancelClick,s=e.localizedText;return t.act("div",{id:"awsccc-cs-f-c"},t.act(n.default,{dataId:i.CUSTOMIZE_CANCEL_BTN_ID,variant:"secondary",events:{onclick:a},text:s["button-cancel"],props:{"aria-label":s["button-cancel-aria-label"]}}),t.act(n.default,{dataId:i.CUSTOMIZE_SAVE_BTN_ID,variant:"primary",events:{onclick:function(){c({essential:!0,performance:o.isChecked("performance"),functional:o.isChecked("functional"),advertising:o.isChecked("advertising")},"preferencesModal")}},text:s["button-save"],props:{"aria-label":s["button-save-aria-label"]}}))}},function(e,c,a){var t=a(1),n=a(36);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.i,n,""]]);var i={insert:"head",singleton:!1};t(n,i);e.exports=n.locals||{}},function(e,c,a){(c=a(2)(!1)).push([e.i,"#awsccc-sb-ux-c #awsccc-sb-a.awsccc-Rtl #awsccc-cs-f-c{text-align:left}#awsccc-sb-ux-c #awsccc-sb-a #awsccc-cs-f-c{text-decoration:none;padding:10px 20px;text-align:right;border-top:1px solid #eaeded;display:flex;justify-content:center;flex-wrap:wrap}#awsccc-sb-ux-c #awsccc-sb-a #awsccc-cs-f-c .awsccc-u-btn{margin-left:10px}#awsccc-sb-ux-c #awsccc-sb-a #awsccc-cs-f-c .awsccc-u-btn.awsccc-u-btn-secondary{background-color:#fff;border-color:#fff;color:#545b64;margin-bottom:6px}#awsccc-sb-ux-c #awsccc-sb-a #awsccc-cs-f-c .awsccc-u-btn.awsccc-u-btn-secondary:hover{color:#000;background-color:#fafafa}@media screen and (min-width: 700px){#awsccc-sb-ux-c #awsccc-sb-a #awsccc-cs-f-c{display:block}#awsccc-sb-ux-c #awsccc-sb-a #awsccc-cs-f-c .awsccc-u-btn.awsccc-u-btn-secondary{margin-bottom:0}}",""]),e.exports=c},function(e,c,a){var t=a(1),n=a(38);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.i,n,""]]);var i={insert:"head",singleton:!1};t(n,i);e.exports=n.locals||{}},function(e,c,a){(c=a(2)(!1)).push([e.i,"#awsccc-sb-ux-c #awsccc-sb-a #awsccc-cs-container{display:flex;align-items:center;justify-items:center;bottom:0;left:0;right:0;top:0;position:fixed;z-index:10002;outline:0;overflow:hidden}#awsccc-sb-ux-c #awsccc-sb-a #awsccc-cs-container-inner{max-width:820px;box-sizing:border-box;outline:none;margin:10px auto;width:calc(100vw - 20px)}#awsccc-sb-ux-c #awsccc-sb-a #awsccc-cs-content{background-color:#fff;border-radius:0;box-sizing:border-box;margin-bottom:0;word-wrap:break-word;box-shadow:0 1px 1px 0 rgba(0,28,36,.3),1px 1px 1px 0 rgba(0,28,36,.15),-1px 1px 1px 0 rgba(0,28,36,.15)}#awsccc-sb-ux-c #awsccc-sb-a #awsccc-cs-header{background-color:#fafafa;padding:19px 20px;border-bottom:1px solid #eaeded}#awsccc-sb-ux-c #awsccc-sb-a #awsccc-cs-title{min-width:0;word-break:break-word;color:#16191f;flex:auto}#awsccc-sb-ux-c #awsccc-sb-a #awsccc-cs-title h2{font-size:18px;font-weight:700;margin:0}#awsccc-sb-ux-c #awsccc-sb-a #awsccc-cs-modalBody{overflow-y:auto;max-height:calc(100vh - 200px);padding:19px 20px}@media screen and (max-width: 480px){#awsccc-sb-ux-c #awsccc-sb-a #awsccc-cs-modalBody{max-height:calc(100vh - 275px)}}#awsccc-sb-ux-c #awsccc-sb-a #awsccc-cs-modalOverlay{background-color:rgba(242,243,243,.9);position:fixed;z-index:10001;right:0;top:0;bottom:0;left:0}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled{background-color:#2a2e33}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-modalOverlay{background-color:rgba(22,25,31,.8)}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-header{background-color:#21252c;border-bottom:1px solid #414750}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-title h2{color:#eaeded}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-modalBody{background-color:#2a2e33}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-modalBody #awsccc-cs-i-container{border-bottom:1px solid #414750}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-modalBody #awsccc-cs-i-container span{color:#eaeded}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-modalBody .awsccc-cs-s-container{border-bottom:1px solid #414750}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-modalBody .awsccc-cs-s-container h3{color:#eaeded}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-modalBody .awsccc-cs-s-container p{color:#eaeded}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-modalBody .awsccc-cs-s-container span{color:#eaeded}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-modalBody .awsccc-cs-s-container rect{fill:#1a2029}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-modalBody .awsccc-cs-s-container .awsccc-cs-s-text{border-top:0}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-modalBody .awsccc-cs-s-container .awscc-u-cb-checkbox-poly-line{display:none}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-modalBody .awsccc-cs-s-container .awsccc-u-cb-checkbox-active .awscc-u-cb-checkbox-poly-line{display:inline-block}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-modalBody .awsccc-cs-s-container .awsccc-u-cb-checkbox-active .awscc-u-cb-checkbox-rect{fill:#00a1c9;stroke:#00a1c9}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-f-c{border-top:1px solid #414750;background-color:#2a2e33}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-f-c .awsccc-u-btn-secondary{background-color:#2a2e33}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-f-c .awsccc-u-btn-secondary span{color:#d5dbdb}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-f-c .awsccc-u-btn-secondary:hover{background-color:#21252c}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-f-c .awsccc-u-btn-primary span{color:#16191f}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-l-container span{color:#eaeded}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-l-container span a{display:inline-block}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-l-container span a span{color:#44b9d6}#awsccc-sb-ux-c #awsccc-sb-a .dark-mode-enabled #awsccc-cs-l-container path{color:#44b9d6}div[data-id=awsccc-cs]{display:none}",""]),e.exports=c},function(e,c,a){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var t=a(0);a(40),c.default=function(){return t.act("div",{class:"awsccc-u-i-open-c"},t.act("svg",{class:"awsccc-u-i-open",viewBox:"0 0 16 16",focusable:"false","aria-hidden":"true"},t.act("path",{class:"awsccc-stroke-linecap-square",d:"M10 2h4v4"}),t.act("path",{d:"M6 10l8-8"}),t.act("path",{class:"awsccc-stroke-linejoin-round",d:"M14 9.048V14H2V2h5"})))}},function(e,c,a){var t=a(1),n=a(41);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.i,n,""]]);var i={insert:"head",singleton:!1};t(n,i);e.exports=n.locals||{}},function(e,c,a){(c=a(2)(!1)).push([e.i,"#awsccc-sb-ux-c #awsccc-sb-a .awsccc-u-i-open-c{display:inline-block;vertical-align:middle;line-height:1em;padding-left:.3em}#awsccc-sb-ux-c #awsccc-sb-a .awsccc-u-i-open-c svg{stroke-width:2px;pointer-events:none;fill:none;padding-bottom:1px;height:10px;width:10px}#awsccc-sb-ux-c #awsccc-sb-a .awsccc-u-i-open-c svg .awsccc-stroke-linecap-square{stroke-linecap:square}#awsccc-sb-ux-c #awsccc-sb-a .awsccc-u-i-open-c svg .awsccc-stroke-linejoin-round{stroke-linejoin:round}#awsccc-sb-ux-c #awsccc-sb-a .awsccc-u-i-open-c svg path{stroke:currentColor}",""]),e.exports=c},function(e,c,a){var t=a(1),n=a(43);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.i,n,""]]);var i={insert:"head",singleton:!1};t(n,i);e.exports=n.locals||{}},function(e,c,a){(c=a(2)(!1)).push([e.i,'#awsccc-sb-ux-c #awsccc-sb-a *{font-family:"Amazon Ember","HelveticaNeue","Helvetica Neue","Amazon Ember",Roboto,"Roboto-Regular","Amazon Ember",Helvetica,Arial,sans-serif;font-size:14px;line-height:21px;color:#16191f;text-align:left;background:none;border:0}#awsccc-sb-ux-c #awsccc-sb-a.awsccc-Rtl *{direction:rtl;text-align:right}#awsccc-sb-ux-c #awsccc-sb-a.awsccc-Rtl .awsccc-cs-s-container .awsccc-cs-s-action{right:auto;left:20px}@media screen and (min-width: 1020px){#awsccc-sb-ux-c #awsccc-sb-a.awsccc-Rtl #awsccc-cb-c #awsccc-cb-title{padding-right:40px}}#awsccc-sb-ux-c #awsccc-sb-a a,#awsccc-sb-ux-c #awsccc-sb-a a>span,#awsccc-sb-ux-c #awsccc-sb-a a svg path{color:#0073bb;text-decoration:none}#awsccc-sb-ux-c #awsccc-sb-a a:hover,#awsccc-sb-ux-c #awsccc-sb-a a>span:hover,#awsccc-sb-ux-c #awsccc-sb-a a svg path:hover{color:#0073bb;text-decoration:underline}#awsccc-sb-ux-c #awsccc-sb-a .awsccc-tab-helper{outline:0;text-decoration:none}.awsccc-cs-modal-open{overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}',""]),e.exports=c},function(e,c,a){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.convertToArray=c.update=void 0,c.update=function(e,c){return Object.keys(c).forEach((function(a){e[a]=c[a]})),e},c.convertToArray=function(e){return Array.prototype.slice.call(e)}},function(e,c,a){"use strict";Object.defineProperty(c,"__esModule",{value:!0});c.default=function(e,c,a){function t(){c.removeEventListener("DOMContentLoaded",t),a.removeEventListener("load",t),e()}void 0===c&&(c=document),void 0===a&&(a=window),"loading"!==c.readyState?a.setTimeout(e):(c.addEventListener("DOMContentLoaded",t),a.addEventListener("load",t))}},function(e,c,a){"use strict";a.r(c),a.d(c,"v1",(function(){return b})),a.d(c,"v3",(function(){return y})),a.d(c,"v4",(function(){return C})),a.d(c,"v5",(function(){return A}));var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),n=new Uint8Array(16);function i(){if(!t)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(n)}for(var o=[],s=0;s<256;++s)o.push((s+256).toString(16).substr(1));var r,l,u=function(e,c){var a=c||0,t=o;return(t[e[a+0]]+t[e[a+1]]+t[e[a+2]]+t[e[a+3]]+"-"+t[e[a+4]]+t[e[a+5]]+"-"+t[e[a+6]]+t[e[a+7]]+"-"+t[e[a+8]]+t[e[a+9]]+"-"+t[e[a+10]]+t[e[a+11]]+t[e[a+12]]+t[e[a+13]]+t[e[a+14]]+t[e[a+15]]).toLowerCase()},d=0,p=0;var b=function(e,c,a){var t=c&&a||0,n=c||[],o=(e=e||{}).node||r,s=void 0!==e.clockseq?e.clockseq:l;if(null==o||null==s){var b=e.random||(e.rng||i)();null==o&&(o=r=[1|b[0],b[1],b[2],b[3],b[4],b[5]]),null==s&&(s=l=16383&(b[6]<<8|b[7]))}var f=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:p+1,g=f-d+(h-p)/1e4;if(g<0&&void 0===e.clockseq&&(s=s+1&16383),(g<0||f>d)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=f,p=h,l=s;var m=(1e4*(268435455&(f+=122192928e5))+h)%4294967296;n[t++]=m>>>24&255,n[t++]=m>>>16&255,n[t++]=m>>>8&255,n[t++]=255&m;var k=f/4294967296*1e4&268435455;n[t++]=k>>>8&255,n[t++]=255&k,n[t++]=k>>>24&15|16,n[t++]=k>>>16&255,n[t++]=s>>>8|128,n[t++]=255&s;for(var v=0;v<6;++v)n[t+v]=o[v];return c||u(n)};var f=function(e,c,a){function t(e,t,n,i){var o=n&&i||0;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var c=[],a=0;a>>9<<4)+1}function g(e,c){var a=(65535&e)+(65535&c);return(e>>16)+(c>>16)+(a>>16)<<16|65535&a}function m(e,c,a,t,n,i){return g((o=g(g(c,e),g(t,i)))<<(s=n)|o>>>32-s,a);var o,s}function k(e,c,a,t,n,i,o){return m(c&a|~c&t,e,c,n,i,o)}function v(e,c,a,t,n,i,o){return m(c&t|a&~t,e,c,n,i,o)}function w(e,c,a,t,n,i,o){return m(c^a^t,e,c,n,i,o)}function x(e,c,a,t,n,i,o){return m(a^(c|~t),e,c,n,i,o)}var y=f("v3",48,(function(e){if("string"==typeof e){var c=unescape(encodeURIComponent(e));e=new Uint8Array(c.length);for(var a=0;a>5]>>>t%32&255,i=parseInt("0123456789abcdef".charAt(n>>>4&15)+"0123456789abcdef".charAt(15&n),16);c.push(i)}return c}(function(e,c){e[c>>5]|=128<>5]|=(255&e[t/8])<>>32-c}var A=f("v5",80,(function(e){var c=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=[];for(var n=0;n>>0;v=k,k=m,m=_(g,30)>>>0,g=h,h=y}a[0]=a[0]+h>>>0,a[1]=a[1]+g>>>0,a[2]=a[2]+m>>>0,a[3]=a[3]+k>>>0,a[4]=a[4]+v>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,255&a[0],a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,255&a[1],a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,255&a[2],a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,255&a[3],a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,255&a[4]]}))}])})); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/doc/_static/aws-ux-shortbread/init.js b/doc/_static/aws-ux-shortbread/init.js new file mode 100644 index 0000000000..f8cb6ace3b --- /dev/null +++ b/doc/_static/aws-ux-shortbread/init.js @@ -0,0 +1,34 @@ +(function (w) { +w.URLSearchParams = w.URLSearchParams || function (searchString) { + var self = this; + self.searchString = searchString; + self.get = function (name) { + var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(self.searchString); + if (results === null) { + return null; + } + else { + return decodeURI(results[1]) || 0; + } + }; +} +})(window); + +const queryString = window.location.search; +const urlParams = new URLSearchParams(queryString); +const lang = urlParams.get('lang') +window.onload = function () { +var domainName = window.location.hostname; + +// remove an instance of shortbread if already exists +var existingShortbreadEl = document.getElementById("awsccc-sb-ux-c"); +existingShortbreadEl && existingShortbreadEl.remove(); + +var shortbread = AWSCShortbread({ + domain: domainName, + language: lang, + //queryGeolocation: function (geolocatedIn) { geolocatedIn("EU") }, +}); + +shortbread.checkForCookieConsent(); +} diff --git a/doc/conf.py b/doc/conf.py index 0c8aa2837c..94bcadd121 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -68,7 +68,12 @@ htmlhelp_basename = "%sdoc" % project -html_js_files = ["https://a0.awsstatic.com/s_code/js/1.0/awshome_s_code.js", "js/analytics.js"] +# For Adobe Analytics +html_js_files = [ + "https://a0.awsstatic.com/s_code/js/3.0/awshome_s_code.js", + "aws-ux-shortbread/index.js", + "aws-ux-shortbread/init.js", +] html_context = {"css_files": ["_static/theme_overrides.css"]}