@contentstack/management
Version:
The Content Management API is used to manage the content of your Contentstack account
2 lines • 309 kB
JavaScript
/*! For license information please see contentstack-management.js.LICENSE.txt */
(()=>{var t={167(t,e){"use strict";var r;function n(t){return{text:t["#text"],itemUid:t["data-sys-entry-uid"]||t["data-sys-asset-uid"],itemType:t.type,styleType:t["sys-style-type"],attributes:t,contentTypeUid:t["data-sys-content-type-uid"]}}!function(t){t.BLOCK="block",t.INLINE="inline",t.LINK="link",t.DISPLAY="display",t.DOWNLOAD="download"}(r||(r={}));var o=r,a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},a(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var c=function(){return c=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},c.apply(this,arguments)};function s(t){for(var e={},r=0;r<t.attributes.length;r++)e[t.attributes.item(r).name]=t.attributes.item(r).value;return t.childNodes.forEach(function(t){var r=t;e=c(c({},e),function(t){var e={};return 3===t.nodeType?e["#text"]=t.textContent:1===t.nodeType&&(e[t.nodeName.toLowerCase()]=s(t)),e}(r))}),e}"function"==typeof SuppressedError&&SuppressedError;var u,l="documentfragmentcontainer";function p(t,e,r){return void 0===e&&(e=["p","a","strong","em","ul","ol","li","h1","h2","h3","h4","h5","h6","sub","u","table","thead","tbody","tr","th","td","span","fragment","sup","strike","br","img","colgroup","col","div"]),void 0===r&&(r=["href","title","target","alt","src","class","id","style","colspan","rowspan","content-type-uid","data-sys-asset-uid","sys-style-type","data-type","data-width","data-rows","data-cols","data-mtec"]),(t=t.replace(/\n/g,"<br />")).replace(/<\/?([a-z][a-z0-9]*)\b[^<>]*>/gi,function(t,r){return e.includes(r.toLowerCase())?t:""}).replace(/<([a-z][a-z0-9]*)\b[^<>]*>/gi,function(t,n){return e.includes(n.toLowerCase())?t.replace(/\s([a-z\-]+)=['"][^'"]*['"]/gi,function(t,e){return r.includes(e.toLowerCase())?t:""}):t})}String.prototype.forEachEmbeddedItem=function(t){var e="<".concat(l,">").concat(this.toString(),"</").concat(l,">"),r=(new DOMParser).parseFromString(e,"text/html");r.querySelectorAll(".embedded-entry").forEach(function(e){t(e.outerHTML,n(s(e)))}),r.querySelectorAll(".embedded-asset").forEach(function(e){t(e.outerHTML,n(s(e)))})};var f;(u={})[o.BLOCK]=function(t){var e=p(t.title||t.uid),r=p(t._content_type_uid||(t.system?t.system.content_type_uid:""));return"<div><p>".concat(e,"</p><p>Content type: <span>").concat(r,"</span></p></div>")},u[o.INLINE]=function(t){var e=p(t.title||t.uid);return"<span>".concat(e,"</span>")},u[o.LINK]=function(t,e){var r=t.url?encodeURI(p(t.url)):null,n=p(e.text||t.title||t.uid||(t.system?t.system.uid:"")),o=r?' href="'.concat(r,'"'):"";return"<a".concat(o,">").concat(n,"</a>")},u[o.DISPLAY]=function(t,e){var r=t.url?encodeURI(p(t.url)):null,n=p(e.attributes.alt||t.title||t.filename||t.uid||(t.system?t.system.uid:"")),o=r?' src="'.concat(r,'"'):"";return"<img".concat(o,' alt="').concat(n,'" />')},u[o.DOWNLOAD]=function(t,e){var r=t.url?encodeURI(p(t.url)):null,n=p(e.text||t.title||t.uid||(t.system?t.system.content_type_uid:"")),o=r?' href="'.concat(r,'"'):"";return"<a".concat(o,">").concat(n,"</a>")};!function(t){t.DOCUMENT="doc",t.PARAGRAPH="p",t.LINK="a",t.IMAGE="img",t.EMBED="embed",t.HEADING_1="h1",t.HEADING_2="h2",t.HEADING_3="h3",t.HEADING_4="h4",t.HEADING_5="h5",t.HEADING_6="h6",t.ORDER_LIST="ol",t.UNORDER_LIST="ul",t.LIST_ITEM="li",t.FRAGMENT="fragment",t.HR="hr",t.TABLE="table",t.TABLE_HEADER="thead",t.TABLE_BODY="tbody",t.TABLE_FOOTER="tfoot",t.TABLE_ROW="tr",t.TABLE_HEAD="th",t.TABLE_DATA="td",t.COL_GROUP="colgroup",t.COL="col",t.BLOCK_QUOTE="blockquote",t.CODE="code",t.TEXT="text",t.REFERENCE="reference"}(f||(f={}));var h,d=f;!function(t){t.BOLD="bold",t.ITALIC="italic",t.UNDERLINE="underline",t.CLASSNAME_OR_ID="classnameOrId",t.STRIKE_THROUGH="strikethrough",t.INLINE_CODE="inlineCode",t.SUBSCRIPT="subscript",t.SUPERSCRIPT="superscript",t.BREAK="break"}(h||(h={}));var y,b=h,v=function(){};(function(t){function e(){var e=t.call(this)||this;return e.type=d.DOCUMENT,e}i(e,t)})(v),function(t){function e(e){var r=t.call(this)||this;return r.text=e,r}i(e,t)}(v);function m(t,e){var r;return null===(r=t.attrs)||void 0===r?void 0:r[e]}function g(t,e){var r,n=null===(r=t.attrs)||void 0===r?void 0:r[e];return"string"==typeof n?n:void 0}function w(t){if(!t.attrs)return"";var e=[];return t.attrs.style&&e.push(' style="'.concat(t.attrs.style,'"')),t.attrs["class-name"]&&e.push(' class="'.concat(t.attrs["class-name"],'"')),t.attrs.id&&e.push(' id="'.concat(t.attrs.id,'"')),e.join("")}(y={})[d.DOCUMENT]=function(){return""},y[d.PARAGRAPH]=function(t,e){return"<p".concat(w(t),">").concat(p(e(t.children)),"</p>")},y[d.LINK]=function(t,e){var r=p(g(t,"href")||g(t,"url")||""),n=g(t,"target"),o=n?' target="'.concat(n,'"'):"";return"<a".concat(w(t)).concat(r?' href="'.concat(r,'"'):"").concat(o,">").concat(p(e(t.children)),"</a>")},y[d.IMAGE]=function(t,e){var r=g(t,"src")||g(t,"url"),n=r?encodeURI(p(r)):"";return"<img".concat(w(t)).concat(n?' src="'.concat(n,'"'):""," />").concat(p(e(t.children)))},y[d.EMBED]=function(t,e){var r=g(t,"src")||g(t,"url"),n=r?encodeURI(p(r)):"";return"<iframe".concat(w(t)).concat(n?' src="'.concat(n,'"'):"",">").concat(p(e(t.children)),"</iframe>")},y[d.HEADING_1]=function(t,e){return"<h1".concat(w(t),">").concat(p(e(t.children)),"</h1>")},y[d.HEADING_2]=function(t,e){return"<h2".concat(w(t),">").concat(p(e(t.children)),"</h2>")},y[d.HEADING_3]=function(t,e){return"<h3".concat(w(t),">").concat(p(e(t.children)),"</h3>")},y[d.HEADING_4]=function(t,e){return"<h4".concat(w(t),">").concat(p(e(t.children)),"</h4>")},y[d.HEADING_5]=function(t,e){return"<h5".concat(w(t),">").concat(p(e(t.children)),"</h5>")},y[d.HEADING_6]=function(t,e){return"<h6".concat(w(t),">").concat(p(e(t.children)),"</h6>")},y[d.ORDER_LIST]=function(t,e){return"<ol".concat(w(t),">").concat(p(e(t.children)),"</ol>")},y[d.FRAGMENT]=function(t,e){return"<fragment>".concat(p(e(t.children)),"</fragment>")},y[d.UNORDER_LIST]=function(t,e){return"<ul".concat(w(t),">").concat(p(e(t.children)),"</ul>")},y[d.LIST_ITEM]=function(t,e){return"<li".concat(w(t),">").concat(p(e(t.children)),"</li>")},y[d.HR]=function(){return"<hr>"},y[d.TABLE]=function(t,e){var r="",n=m(t,"colWidths");if(n&&Array.isArray(n)){var o=n.reduce(function(t,e){return t+e},0);r="<".concat(d.COL_GROUP,' data-width="').concat(o,'">'),n.forEach(function(t){var e=t/o*100;r+="<".concat(d.COL,' style="width:').concat(e.toFixed(2),'%"/>')}),r+="</".concat(d.COL_GROUP,">")}return"<table".concat(w(t),">").concat(r).concat(p(e(t.children)),"</table>")},y[d.TABLE_HEADER]=function(t,e){return"<thead".concat(w(t),">").concat(p(e(t.children)),"</thead>")},y[d.TABLE_BODY]=function(t,e){return"<tbody".concat(w(t),">").concat(p(e(t.children)),"</tbody>")},y[d.TABLE_FOOTER]=function(t,e){return"<tfoot".concat(w(t),">").concat(p(e(t.children)),"</tfoot>")},y[d.TABLE_ROW]=function(t,e){return"<tr".concat(w(t),">").concat(p(e(t.children)),"</tr>")},y[d.TABLE_HEAD]=function(t,e){if(m(t,"void"))return"";var r=m(t,"rowSpan"),n=m(t,"colSpan"),o=r?' rowspan="'.concat(r,'"'):"",a=n?' colspan="'.concat(n,'"'):"";return"<th".concat(o).concat(a).concat(w(t),">").concat(p(e(t.children)),"</th>")},y[d.TABLE_DATA]=function(t,e){if(m(t,"void"))return"";var r=m(t,"rowSpan"),n=m(t,"colSpan"),o=r?' rowspan="'.concat(r,'"'):"",a=n?' colspan="'.concat(n,'"'):"";return"<td".concat(o).concat(a).concat(w(t),">").concat(p(e(t.children)),"</td>")},y[d.BLOCK_QUOTE]=function(t,e){return"<blockquote".concat(w(t),">").concat(p(e(t.children)),"</blockquote>")},y[d.CODE]=function(t,e){return"<code".concat(w(t),">").concat(p(e(t.children)),"</code>")},y.reference=function(t,e){var r=m(t,"type"),n=m(t,"display-type");if(("entry"===r||"asset"===r)&&"link"===n){var o=g(t,"href")||g(t,"url")||"",a=g(t,"target"),i=g(t,"asset-uid"),c=w(t);return o&&(c+=' href="'.concat(o,'"')),a&&(c+=' target="'.concat(a,'"')),"asset"===r&&(c+=' type="asset" content-type-uid="sys_assets"',i&&(c+=' data-sys-asset-uid="'.concat(i,'"')),c+=' sys-style-type="download"'),"<a".concat(c,">").concat(p(e(t.children)),"</a>")}if("asset"===r){var s=g(t,"asset-link"),u=s?encodeURI(s):"",l=m(t,"redactor-attributes"),f=null==l?void 0:l.alt,h=g(t,"link"),d=(a=g(t,"target")||"",(null==l?void 0:l["asset-caption"])||g(t,"asset-caption")||""),y=g(t,"style"),b=(i=g(t,"asset-uid"),g(t,"class-name")),v=i?' asset_uid="'.concat(i,'"'):"",O=b?' class="'.concat(p(b),'"'):"",k=u?' src="'.concat(p(u),'"'):"",x=f?' alt="'.concat(f,'"'):"",j="_blank"===a?' target="_blank"':"",S=y?' style="'.concat(y,'"'):"",P="<img".concat(v).concat(O).concat(k).concat(x).concat(j).concat(S," />"),_=y?' style="'.concat(y,'"'):"";return"<figure".concat(_,">")+(h?'<a href="'.concat(h,'" target="').concat(a||"",'">'):"")+P+(h?"</a>":"")+(d?"<figcaption>".concat(d,"</figcaption>"):"")+"</figure>"}return""},y.default=function(t,e){return p(e(t.children))},y[b.BOLD]=function(t){return"<strong>".concat(p(t),"</strong>")},y[b.ITALIC]=function(t){return"<em>".concat(p(t),"</em>")},y[b.UNDERLINE]=function(t){return"<u>".concat(p(t),"</u>")},y[b.STRIKE_THROUGH]=function(t){return"<strike>".concat(p(t),"</strike>")},y[b.INLINE_CODE]=function(t){return"<span data-type='inlineCode'>".concat(p(t),"</span>")},y[b.SUBSCRIPT]=function(t){return"<sub>".concat(p(t),"</sub>")},y[b.SUPERSCRIPT]=function(t){return"<sup>".concat(p(t),"</sup>")},y[b.BREAK]=function(t){return/^\n+$/.test(t)?p(t):"<br />".concat(p(t))},y[b.CLASSNAME_OR_ID]=function(t,e,r){return"<span".concat(e?' class="'.concat(e,'"'):"").concat(r?' id="'.concat(r,'"'):"",">").concat(p(t),"</span>")};var O={regions:[{id:"na",name:"AWS North America",cloudProvider:"AWS",location:"North America",alias:["na","us","aws-na","aws_na","NA","US","AWS-NA","AWS_NA"],isDefault:!0,endpoints:{application:"https://app.contentstack.com",contentDelivery:"https://cdn.contentstack.io",contentManagement:"https://api.contentstack.io",auth:"https://auth-api.contentstack.com",graphqlDelivery:"https://graphql.contentstack.com",preview:"https://rest-preview.contentstack.com",graphqlPreview:"https://graphql-preview.contentstack.com",images:"https://images.contentstack.io",assets:"https://assets.contentstack.io",automate:"https://automations-api.contentstack.com",launch:"https://launch-api.contentstack.com",developerHub:"https://developerhub-api.contentstack.com",brandKit:"https://brand-kits-api.contentstack.com",genAI:"https://ai.contentstack.com/brand-kits",personalizeManagement:"https://personalize-api.contentstack.com",personalizeEdge:"https://personalize-edge.contentstack.com",composableStudio:"https://composable-studio-api.contentstack.com"}},{id:"eu",name:"AWS Europe",cloudProvider:"AWS",location:"Europe",alias:["eu","aws-eu","aws_eu","EU","AWS-EU","AWS_EU"],isDefault:!1,endpoints:{application:"https://eu-app.contentstack.com",contentDelivery:"https://eu-cdn.contentstack.com",contentManagement:"https://eu-api.contentstack.com",auth:"https://eu-auth-api.contentstack.com",graphqlDelivery:"https://eu-graphql.contentstack.com",preview:"https://eu-rest-preview.contentstack.com",graphqlPreview:"https://eu-graphql-preview.contentstack.com",images:"https://eu-images.contentstack.com",assets:"https://eu-assets.contentstack.com",automate:"https://eu-prod-automations-api.contentstack.com",launch:"https://eu-launch-api.contentstack.com",developerHub:"https://eu-developerhub-api.contentstack.com",brandKit:"https://eu-brand-kits-api.contentstack.com",genAI:"https://eu-ai.contentstack.com/brand-kits",personalizeManagement:"https://eu-personalize-api.contentstack.com",personalizeEdge:"https://eu-personalize-edge.contentstack.com",composableStudio:"https://eu-composable-studio-api.contentstack.com"}},{id:"au",name:"AWS Australia",cloudProvider:"AWS",location:"Australia",alias:["au","aws-au","aws_au","AU","AWS-AU","AWS_AU"],isDefault:!1,endpoints:{application:"https://au-app.contentstack.com",contentDelivery:"https://au-cdn.contentstack.com",contentManagement:"https://au-api.contentstack.com",auth:"https://au-auth-api.contentstack.com",graphqlDelivery:"https://au-graphql.contentstack.com",preview:"https://au-rest-preview.contentstack.com",graphqlPreview:"https://au-graphql-preview.contentstack.com",images:"https://au-images.contentstack.com",assets:"https://au-assets.contentstack.com",automate:"https://au-prod-automations-api.contentstack.com",launch:"https://au-launch-api.contentstack.com",developerHub:"https://au-developerhub-api.contentstack.com",brandKit:"https://au-brand-kits-api.contentstack.com",genAI:"https://au-ai.contentstack.com/brand-kits",personalizeManagement:"https://au-personalize-api.contentstack.com",personalizeEdge:"https://au-personalize-edge.contentstack.com",composableStudio:"https://au-composable-studio-api.contentstack.com"}},{id:"azure-na",name:"Azure North America",cloudProvider:"Azure",location:"North America",alias:["azure-na","azure_na","AZURE-NA","AZURE_NA"],isDefault:!1,endpoints:{application:"https://azure-na-app.contentstack.com",contentDelivery:"https://azure-na-cdn.contentstack.com",contentManagement:"https://azure-na-api.contentstack.com",auth:"https://azure-na-auth-api.contentstack.com",graphqlDelivery:"https://azure-na-graphql.contentstack.com",preview:"https://azure-na-rest-preview.contentstack.com",graphqlPreview:"https://azure-na-graphql-preview.contentstack.com",images:"https://azure-na-images.contentstack.com",assets:"https://azure-na-assets.contentstack.com",automate:"https://azure-na-automations-api.contentstack.com",launch:"https://azure-na-launch-api.contentstack.com",developerHub:"https://azure-na-developerhub-api.contentstack.com",brandKit:"https://azure-na-brand-kits-api.contentstack.com",genAI:"https://azure-na-ai.contentstack.com/brand-kits",personalizeManagement:"https://azure-na-personalize-api.contentstack.com",personalizeEdge:"https://azure-na-personalize-edge.contentstack.com",composableStudio:"https://azure-na-composable-studio-api.contentstack.com"}},{id:"azure-eu",name:"Azure Europe",cloudProvider:"Azure",location:"Europe",alias:["azure-eu","azure_eu","AZURE-EU","AZURE_EU"],isDefault:!1,endpoints:{application:"https://azure-eu-app.contentstack.com",contentDelivery:"https://azure-eu-cdn.contentstack.com",contentManagement:"https://azure-eu-api.contentstack.com",auth:"https://azure-eu-auth-api.contentstack.com",graphqlDelivery:"https://azure-eu-graphql.contentstack.com",preview:"https://azure-eu-rest-preview.contentstack.com",graphqlPreview:"https://azure-eu-graphql-preview.contentstack.com",images:"https://azure-eu-images.contentstack.com",assets:"https://azure-eu-assets.contentstack.com",automate:"https://azure-eu-automations-api.contentstack.com",launch:"https://azure-eu-launch-api.contentstack.com",developerHub:"https://azure-eu-developerhub-api.contentstack.com",brandKit:"https://azure-eu-brand-kits-api.contentstack.com",genAI:"https://azure-eu-ai.contentstack.com/brand-kits",personalizeManagement:"https://azure-eu-personalize-api.contentstack.com",personalizeEdge:"https://azure-eu-personalize-edge.contentstack.com",composableStudio:"https://azure-eu-composable-studio-api.contentstack.com"}},{id:"gcp-na",name:"GCP North America",cloudProvider:"GCP",location:"North America",alias:["gcp-na","gcp_na","GCP-NA","GCP_NA"],isDefault:!1,endpoints:{application:"https://gcp-na-app.contentstack.com",contentDelivery:"https://gcp-na-cdn.contentstack.com",contentManagement:"https://gcp-na-api.contentstack.com",auth:"https://gcp-na-auth-api.contentstack.com",graphqlDelivery:"https://gcp-na-graphql.contentstack.com",preview:"https://gcp-na-rest-preview.contentstack.com",graphqlPreview:"https://gcp-na-graphql-preview.contentstack.com",images:"https://gcp-na-images.contentstack.com",assets:"https://gcp-na-assets.contentstack.com",automate:"https://gcp-na-automations-api.contentstack.com",launch:"https://gcp-na-launch-api.contentstack.com",developerHub:"https://gcp-na-developerhub-api.contentstack.com",brandKit:"https://gcp-na-brand-kits-api.contentstack.com",genAI:"https://gcp-na-ai.contentstack.com/brand-kits",personalizeManagement:"https://gcp-na-personalize-api.contentstack.com",personalizeEdge:"https://gcp-na-personalize-edge.contentstack.com",composableStudio:"https://gcp-na-composable-studio-api.contentstack.com"}},{id:"gcp-eu",name:"GCP Europe",cloudProvider:"GCP",location:"Europe",alias:["gcp-eu","gcp_eu","GCP-EU","GCP_EU"],isDefault:!1,endpoints:{application:"https://gcp-eu-app.contentstack.com",contentDelivery:"https://gcp-eu-cdn.contentstack.com",contentManagement:"https://gcp-eu-api.contentstack.com",auth:"https://gcp-eu-auth-api.contentstack.com",graphqlDelivery:"https://gcp-eu-graphql.contentstack.com",preview:"https://gcp-eu-rest-preview.contentstack.com",graphqlPreview:"https://gcp-eu-graphql-preview.contentstack.com",images:"https://gcp-eu-images.contentstack.com",assets:"https://gcp-eu-assets.contentstack.com",automate:"https://gcp-eu-automations-api.contentstack.com",launch:"https://gcp-eu-launch-api.contentstack.com",developerHub:"https://gcp-eu-developerhub-api.contentstack.com",brandKit:"https://gcp-eu-brand-kits-api.contentstack.com",genAI:"https://gcp-eu-ai.contentstack.com/brand-kits",personalizeManagement:"https://gcp-eu-personalize-api.contentstack.com",personalizeEdge:"https://gcp-eu-personalize-edge.contentstack.com",composableStudio:"https://gcp-eu-composable-studio-api.contentstack.com"}}]};function k(t){if("string"==typeof t)return t.replace(/^https?:\/\//,"");var e={};for(var r in t)e[r]=k(t[r]);return e}e.bx=function(t,e,r){if(void 0===t&&(t="us"),void 0===e&&(e=""),void 0===r&&(r=!1),""===t)throw new Error("Empty region provided. Please put valid region.");var n=O,o=t.toLowerCase().trim()||"us";if(!Array.isArray(n.regions))throw new Error("Invalid Regions file. Please install the SDK again to fix this issue.");var a=function(t,e){var r=t.find(function(t){return t.id===e});return r||((r=t.find(function(t){return t.alias.some(function(t){return t.toLowerCase()===e.toLowerCase()})}))||null)}(n.regions,o);if(!a)throw new Error("Invalid region: ".concat(t));if(e){var i=a.endpoints[e];if(!i)throw new Error('Service "'.concat(e,'" not found for region "').concat(a.id,'"'));return r?k(i):i}return r?k(a.endpoints):a.endpoints}},9793(t,e){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function n(t,e,r){return e=a(e),function(t,e){if(e&&("object"==s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,o()?Reflect.construct(e,r||[],a(t).constructor):e.apply(t,r))}function o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(o=function(){return!!t})()}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach(function(e){p(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function p(t,e,r){return(e=y(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,y(n.key),n)}}function d(t,e,r){return e&&h(t.prototype,e),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function y(t){var e=function(t){if("object"!=s(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==s(e)?e:e+""}function b(t){return Object.keys(t).map(function(e){return t[e]})}var v;Object.defineProperty(e,"__esModule",{value:!0}),(v=e.HashAlgorithms||(e.HashAlgorithms={})).SHA1="sha1",v.SHA256="sha256",v.SHA512="sha512";var m,g=b(e.HashAlgorithms);(m=e.KeyEncodings||(e.KeyEncodings={})).ASCII="ascii",m.BASE64="base64",m.HEX="hex",m.LATIN1="latin1",m.UTF8="utf8";var w,O=b(e.KeyEncodings);(w=e.Strategy||(e.Strategy={})).HOTP="hotp",w.TOTP="totp";var k=b(e.Strategy),x=function(){throw new Error("Please provide an options.createDigest implementation.")};function j(t){return/^(\d+)$/.test(t)}function S(t,e,r){if(t.length>=e)return t;var n=Array(e+1).join(r);return"".concat(n).concat(t).slice(-1*e)}function P(t){var e="otpauth://".concat(t.type,"/{labelPrefix}:{accountName}?secret={secret}{query}"),r=[];if(k.indexOf(t.type)<0)throw new Error("Expecting options.type to be one of ".concat(k.join(", "),". Received ").concat(t.type,"."));if("hotp"===t.type){if(null==t.counter||"number"!=typeof t.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');r.push("&counter=".concat(t.counter))}return"totp"===t.type&&t.step&&r.push("&period=".concat(t.step)),t.digits&&r.push("&digits=".concat(t.digits)),t.algorithm&&r.push("&algorithm=".concat(t.algorithm.toUpperCase())),t.issuer&&r.push("&issuer=".concat(encodeURIComponent(t.issuer))),e.replace("{labelPrefix}",encodeURIComponent(t.issuer||t.accountName)).replace("{accountName}",encodeURIComponent(t.accountName)).replace("{secret}",t.secret).replace("{query}",r.join(""))}var _=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,t),this._defaultOptions=Object.freeze(l({},e)),this._options=Object.freeze({})}return d(t,[{key:"create",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.create(l(l({},this._defaultOptions),t));return e.options=this._options,e}},{key:"options",get:function(){return Object.freeze(l(l({},this._defaultOptions),this._options))},set:function(t){this._options=Object.freeze(l(l({},this._options),t))}},{key:"allOptions",value:function(){return this.options}},{key:"resetOptions",value:function(){this._options=Object.freeze({})}}])}();function E(t){if("function"!=typeof t.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof t.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof t.digits)throw new Error("Expecting options.digits to be a number.");if(!t.algorithm||g.indexOf(t.algorithm)<0)throw new Error("Expecting options.algorithm to be one of ".concat(g.join(", "),". Received ").concat(t.algorithm,"."));if(!t.encoding||O.indexOf(t.encoding)<0)throw new Error("Expecting options.encoding to be one of ".concat(O.join(", "),". Received ").concat(t.encoding,"."))}var A=function(t,e,r){return Buffer.from(e,r).toString("hex")};function R(){return{algorithm:e.HashAlgorithms.SHA1,createHmacKey:A,createDigest:x,digits:6,encoding:e.KeyEncodings.ASCII}}function T(t){var e=l(l({},R()),t);return E(e),Object.freeze(e)}function D(t){return S(t.toString(16),16,"0")}function H(t,e){var r=Buffer.from(t,"hex"),n=15&r[r.length-1],o=((127&r[n])<<24|(255&r[n+1])<<16|(255&r[n+2])<<8|255&r[n+3])%Math.pow(10,e);return S(String(o),e,"0")}function I(t,e,r){var n=r.digest||function(t,e,r){var n=D(e),o=r.createHmacKey(r.algorithm,t,r.encoding);return r.createDigest(r.algorithm,o,n)}(t,e,r);return H(n,r.digits)}function U(t,e,r,n){return!!j(t)&&t===I(e,r,n)}function N(t,r,n,o,a){return P({algorithm:a.algorithm,digits:a.digits,type:e.Strategy.HOTP,accountName:t,counter:o,issuer:r,secret:n})}var C=function(t){function e(){return f(this,e),n(this,e,arguments)}return i(e,t),d(e,[{key:"create",value:function(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}},{key:"allOptions",value:function(){return T(this.options)}},{key:"generate",value:function(t,e){return I(t,e,this.allOptions())}},{key:"check",value:function(t,e,r){return U(t,e,r,this.allOptions())}},{key:"verify",value:function(t){if("object"!==s(t))throw new Error("Expecting argument 0 of verify to be an object");return this.check(t.token,t.secret,t.counter)}},{key:"keyuri",value:function(t,e,r,n){return N(t,e,r,n,this.allOptions())}}])}(_);function z(t){if("number"==typeof t)return[Math.abs(t),Math.abs(t)];if(Array.isArray(t)){var e=(i=2,function(t){if(Array.isArray(t))return t}(a=t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],s=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(a,i)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(a,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=e[0],o=e[1];if("number"==typeof n&&"number"==typeof o)return[Math.abs(n),Math.abs(o)]}var a,i;throw new Error("Expecting options.window to be an number or [number, number].")}function L(t){if(E(t),z(t.window),"number"!=typeof t.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof t.step)throw new Error("Expecting options.step to be a number.")}var M=function(t,e,r){var n=t.length,o=Buffer.from(t,e).toString("hex");if(n<r){var a=new Array(r-n+1).join(o);return Buffer.from(a,"hex").slice(0,r).toString("hex")}return o},F=function(t,r,n){switch(t){case e.HashAlgorithms.SHA1:return M(r,n,20);case e.HashAlgorithms.SHA256:return M(r,n,32);case e.HashAlgorithms.SHA512:return M(r,n,64);default:throw new Error("Expecting algorithm to be one of ".concat(g.join(", "),". Received ").concat(t,"."))}};function B(){return{algorithm:e.HashAlgorithms.SHA1,createDigest:x,createHmacKey:F,digits:6,encoding:e.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function q(t){var e=l(l({},B()),t);return L(e),Object.freeze(e)}function W(t,e){return Math.floor(t/e/1e3)}function K(t,e){return I(t,W(e.epoch,e.step),e)}function G(t,e,r,n){var o=[];if(0===n)return o;for(var a=1;a<=n;a++){var i=e*a*r;o.push(t+i)}return o}function V(t,e,r){var n=z(r),o=1e3*e;return{current:t,past:G(t,-1,o,n[0]),future:G(t,1,o,n[1])}}function $(t,e,r){return!!j(t)&&t===K(e,r)}function Q(t,e,r,n){var o=null;return t.some(function(t,a){return!!$(e,r,l(l({},n),{},{epoch:t}))&&(o=a+1,!0)}),o}function J(t,e,r){if($(t,e,r))return 0;var n=V(r.epoch,r.step,r.window),o=Q(n.past,t,e,r);return null!==o?-1*o:Q(n.future,t,e,r)}function Y(t,e){return Math.floor(t/1e3)%e}function X(t,e){return e-Y(t,e)}function Z(t,r,n,o){return P({algorithm:o.algorithm,digits:o.digits,step:o.step,type:e.Strategy.TOTP,accountName:t,issuer:r,secret:n})}var tt=function(t){function e(){return f(this,e),n(this,e,arguments)}return i(e,t),d(e,[{key:"create",value:function(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}},{key:"allOptions",value:function(){return q(this.options)}},{key:"generate",value:function(t){return K(t,this.allOptions())}},{key:"checkDelta",value:function(t,e){return J(t,e,this.allOptions())}},{key:"check",value:function(t,e){return"number"==typeof this.checkDelta(t,e)}},{key:"verify",value:function(t){if("object"!==s(t))throw new Error("Expecting argument 0 of verify to be an object");return this.check(t.token,t.secret)}},{key:"timeRemaining",value:function(){var t=this.allOptions();return X(t.epoch,t.step)}},{key:"timeUsed",value:function(){var t=this.allOptions();return Y(t.epoch,t.step)}},{key:"keyuri",value:function(t,e,r){return Z(t,e,r,this.allOptions())}}])}(C);function et(t){if(L(t),"function"!=typeof t.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(t.keyEncoder&&"function"!=typeof t.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function rt(){return{algorithm:e.HashAlgorithms.SHA1,createDigest:x,createHmacKey:F,digits:6,encoding:e.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function nt(t){var e=l(l({},rt()),t);return et(e),Object.freeze(e)}function ot(t,e){return e.keyEncoder(t,e.encoding)}function at(t,e){return e.keyDecoder(t,e.encoding)}function it(t,e){return ot(e.createRandomBytes(t,e.encoding),e)}function ct(t,e){return K(at(t,e),e)}function st(t,e,r){return J(t,at(e,r),r)}var ut=function(t){function e(){return f(this,e),n(this,e,arguments)}return i(e,t),d(e,[{key:"create",value:function(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}},{key:"allOptions",value:function(){return nt(this.options)}},{key:"generate",value:function(t){return ct(t,this.allOptions())}},{key:"checkDelta",value:function(t,e){return st(t,e,this.allOptions())}},{key:"encode",value:function(t){return ot(t,this.allOptions())}},{key:"decode",value:function(t){return at(t,this.allOptions())}},{key:"generateSecret",value:function(){return it(arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,this.allOptions())}}])}(tt);e.Authenticator=ut,e.HASH_ALGORITHMS=g,e.HOTP=C,e.KEY_ENCODINGS=O,e.OTP=_,e.STRATEGY=k,e.TOTP=tt,e.authenticatorCheckWithWindow=st,e.authenticatorDecoder=at,e.authenticatorDefaultOptions=rt,e.authenticatorEncoder=ot,e.authenticatorGenerateSecret=it,e.authenticatorOptionValidator=et,e.authenticatorOptions=nt,e.authenticatorToken=ct,e.createDigestPlaceholder=x,e.hotpCheck=U,e.hotpCounter=D,e.hotpCreateHmacKey=A,e.hotpDefaultOptions=R,e.hotpDigestToToken=H,e.hotpKeyuri=N,e.hotpOptions=T,e.hotpOptionsValidator=E,e.hotpToken=I,e.isTokenValid=j,e.keyuri=P,e.objectValues=b,e.padStart=S,e.totpCheck=$,e.totpCheckByEpoch=Q,e.totpCheckWithWindow=J,e.totpCounter=W,e.totpCreateHmacKey=F,e.totpDefaultOptions=B,e.totpEpochAvailable=V,e.totpKeyuri=Z,e.totpOptions=q,e.totpOptionsValidator=L,e.totpPadSecret=M,e.totpTimeRemaining=X,e.totpTimeUsed=Y,e.totpToken=K},6277(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0});var o,a=(o=r(4750))&&"object"===n(o)&&"default"in o?o.default:o;e.createDigest=function(t,e,r){return a.createHmac(t,Buffer.from(e,"hex")).update(Buffer.from(r,"hex")).digest().toString("hex")},e.createRandomBytes=function(t,e){return a.randomBytes(t).toString(e)}},9359(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"__esModule",{value:!0});var o,a=(o=r(2398))&&"object"===n(o)&&"default"in o?o.default:o;e.keyDecoder=function(t,e){return a.decode(t).toString(e)},e.keyEncoder=function(t,e){return a.encode(Buffer.from(t,e).toString("ascii")).toString().replace(/=/g,"")}},565(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(6277),o=r(9359),a=r(9793),i=new a.HOTP({createDigest:n.createDigest}),c=new a.TOTP({createDigest:n.createDigest}),s=new a.Authenticator({createDigest:n.createDigest,createRandomBytes:n.createRandomBytes,keyDecoder:o.keyDecoder,keyEncoder:o.keyEncoder});e.authenticator=s,e.hotp=i,e.totp=c},1258(t,e,r){"use strict";var n=r(9561),o=r(6796),a=r(3102),i=r(8581);t.exports=i||n.call(a,o)},6796(t){"use strict";t.exports=Function.prototype.apply},3102(t){"use strict";t.exports=Function.prototype.call},4736(t,e,r){"use strict";var n=r(9561),o=r(8241),a=r(3102),i=r(1258);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new o("a function is required");return i(n,a,t)}},8581(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},5222(t,e,r){"use strict";var n=r(3163),o=r(4736),a=o([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&a(t,".prototype.")>-1?o([r]):r}},1750(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o,a=r(4736),i=r(7581);try{o=[].__proto__===Array.prototype}catch(t){if(!t||"object"!==n(t)||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var c=!!o&&i&&i(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;t.exports=c&&"function"==typeof c.get?a([c.get]):"function"==typeof u&&function(t){return u(null==t?t:s(t))}},6249(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},4159(t){"use strict";t.exports=EvalError},3933(t){"use strict";t.exports=Error},3880(t){"use strict";t.exports=RangeError},2524(t){"use strict";t.exports=ReferenceError},218(t){"use strict";t.exports=SyntaxError},8241(t){"use strict";t.exports=TypeError},8679(t){"use strict";t.exports=URIError},6358(t){"use strict";t.exports=Object},3476(t){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}t.exports="object"===("undefined"==typeof self?"undefined":e(self))?self.FormData:window.FormData},8943(t){"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<e.length;o+=1)r[o+t.length]=e[o];return r};t.exports=function(t){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var a,i=function(t){for(var e=[],r=1,n=0;r<t.length;r+=1,n+=1)e[n]=t[r];return e}(arguments),c=r(0,o.length-i.length),s=[],u=0;u<c;u++)s[u]="$"+u;if(a=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(s)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var e=o.apply(this,n(i,arguments));return Object(e)===e?e:this}return o.apply(t,n(i,arguments))}),o.prototype){var l=function(){};l.prototype=o.prototype,a.prototype=new l,l.prototype=null}return a}},9561(t,e,r){"use strict";var n=r(8943);t.exports=Function.prototype.bind||n},3163(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o,a=r(6358),i=r(3933),c=r(4159),s=r(3880),u=r(2524),l=r(218),p=r(8241),f=r(8679),h=r(5228),d=r(7962),y=r(4638),b=r(8416),v=r(386),m=r(9804),g=r(1031),w=Function,O=function(t){try{return w('"use strict"; return ('+t+").constructor;")()}catch(t){}},k=r(7581),x=r(6249),j=function(){throw new p},S=k?function(){try{return j}catch(t){try{return k(arguments,"callee").get}catch(t){return j}}}():j,P=r(6329)(),_=r(5746),E=r(3318),A=r(6694),R=r(6796),T=r(3102),D={},H="undefined"!=typeof Uint8Array&&_?_(Uint8Array):o,I={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":P&&_?_([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":D,"%AsyncGenerator%":D,"%AsyncGeneratorFunction%":D,"%AsyncIteratorPrototype%":D,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":c,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":D,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&_?_(_([][Symbol.iterator]())):o,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":n(JSON))?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&P&&_?_((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":a,"%Object.getOwnPropertyDescriptor%":k,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&P&&_?_((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&_?_(""[Symbol.iterator]()):o,"%Symbol%":P?Symbol:o,"%SyntaxError%":l,"%ThrowTypeError%":S,"%TypedArray%":H,"%TypeError%":p,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":T,"%Function.prototype.apply%":R,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":h,"%Math.floor%":d,"%Math.max%":y,"%Math.min%":b,"%Math.pow%":v,"%Math.round%":m,"%Math.sign%":g,"%Reflect.getPrototypeOf%":A};if(_)try{null.error}catch(t){var U=_(_(t));I["%Error.prototype%"]=U}var N=function t(e){var r;if("%AsyncFunction%"===e)r=O("async function () {}");else if("%GeneratorFunction%"===e)r=O("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=O("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&_&&(r=_(o.prototype))}return I[e]=r,r},C={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},z=r(9561),L=r(3999),M=z.call(T,Array.prototype.concat),F=z.call(R,Array.prototype.splice),B=z.call(T,String.prototype.replace),q=z.call(T,String.prototype.slice),W=z.call(T,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,V=function(t,e){var r,n=t;if(L(C,n)&&(n="%"+(r=C[n])[0]+"%"),L(I,n)){var o=I[n];if(o===D&&(o=N(n)),void 0===o&&!e)throw new p("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new l("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new p('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,t))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=q(t,0,1),r=q(t,-1);if("%"===e&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return B(t,K,function(t,e,r,o){n[n.length]=r?B(o,G,"$1"):e||t}),n}(t),n=r.length>0?r[0]:"",o=V("%"+n+"%",e),a=o.name,i=o.value,c=!1,s=o.alias;s&&(n=s[0],F(r,M([0,1],s)));for(var u=1,f=!0;u<r.length;u+=1){var h=r[u],d=q(h,0,1),y=q(h,-1);if(('"'===d||"'"===d||"`"===d||'"'===y||"'"===y||"`"===y)&&d!==y)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&f||(c=!0),L(I,a="%"+(n+="."+h)+"%"))i=I[a];else if(null!=i){if(!(h in i)){if(!e)throw new p("base intrinsic for "+t+" exists, but the property is not available.");return}if(k&&u+1>=r.length){var b=k(i,h);i=(f=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:i[h]}else f=L(i,h),i=i[h];f&&!c&&(I[a]=i)}}return i}},3318(t,e,r){"use strict";var n=r(6358);t.exports=n.getPrototypeOf||null},6694(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},5746(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=r(6694),a=r(3318),i=r(1750);t.exports=o?function(t){return o(t)}:a?function(t){if(!t||"object"!==n(t)&&"function"!=typeof t)throw new TypeError("getProto: not an object");return a(t)}:i?function(t){return i(t)}:null},8767(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},7581(t,e,r){"use strict";var n=r(8767);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},6329(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o="undefined"!=typeof Symbol&&Symbol,a=r(9563);t.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"===n(o("foo"))&&"symbol"===n(Symbol("bar"))&&a()}},9563(t){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===e(Symbol.iterator))return!0;var t={},r=Symbol("test"),n=Object(r);if("string"==typeof r)return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var o in t[r]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var a=Object.getOwnPropertySymbols(t);if(1!==a.length||a[0]!==r)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,r);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},3999(t,e,r){"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,a=r(9561);t.exports=a.call(n,o)},9678(t,e,r){var n=r(704)(r(7891),"DataView");t.exports=n},2219(t,e,r){var n=r(3610),o=r(4732),a=r(5855),i=r(6451),c=r(5739);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=c,t.exports=s},1937(t,e,r){var n=r(7356),o=r(8522),a=r(5429),i=r(6121),c=r(6401);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=c,t.exports=s},7917(t,e,r){var n=r(704)(r(7891),"Map");t.exports=n},5735(t,e,r){var n=r(8718),o=r(2712),a=r(1339),i=r(5175),c=r(9647);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=c,t.exports=s},4094(t,e,r){var n=r(704)(r(7891),"Promise");t.exports=n},8219(t,e,r){var n=r(704)(r(7891),"Set");t.exports=n},1059(t,e,r){var n=r(1937),o=r(3906),a=r(4708),i=r(8951),c=r(4011),s=r(2707);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=c,u.prototype.set=s,t.exports=u},1815(t,e,r){var n=r(7891).Symbol;t.exports=n},4530(t,e,r){var n=r(7891).Uint8Array;t.exports=n},5461(t,e,r){var n=r(704)(r(7891),"WeakMap");t.exports=n},363(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},8440(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,a=[];++r<n;){var i=t[r];e(i,r,t)&&(a[o++]=i)}return a}},7649(t,e,r){var n=r(2130),o=r(7630),a=r(7107),i=r(6254),c=r(7607),s=r(3733),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=a(t),l=!r&&o(t),p=!r&&!l&&i(t),f=!r&&!l&&!p&&s(t),h=r||l||p||f,d=h?n(t.length,String):[],y=d.length;for(var b in t)!e&&!u.call(t,b)||h&&("length"==b||p&&("offset"==b||"parent"==b)||f&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||c(b,y))||d.push(b);return d}},7282(t){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},7509(t,e,r){var n=r(2978),o=r(1530),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var i=t[e];a.call(t,e)&&o(i,r)&&(void 0!==r||e in t)||n(t,e,r)}},6079(t,e,r){var n=r(1530);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},5631(t,e,r){var n=r(3361),o=r(7560);t.exports=function(t,e){return t&&n(e,o(e),t)}},2804(t,e,r){var n=r(3361),o=r(2119);t.exports=function(t,e){return t&&n(e,o(e),t)}},29