PageSourceSearch

https://alma.ai/_next/static/chunks/22845-3a609467a999c47b.js

js alma.ai collected 2026-10-05 11:49:55 UTC 154,652 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[22845],{50888:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var i=n(87462),r=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},s=n(82678),a=function(e,t){return r.createElement(s.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var u=r.forwardRef(a)},11964:function(e,t,n){e.exports=n(22751)},74509:function(e,t,n){"use strict";var i=n(98163),r=n(5979),o=n(14118),s=n(32299),a=n(4832),u=n(77190),c=n(55675),f=n(29667);e.exports=function(e){return new Promise((function(t,n){var l=e.data,p=e.headers;i.isFormData(l)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+g)}var v=a(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),s(v,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:i,config:e,request:d};r(t,n,o),d=null}},d.onabort=function(){d&&(n(f("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(f("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(f(t,e,"ECONNABORTED",d)),d=null},i.isStandardBrowserEnv()){var m=(e.withCredentials||c(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;m&&(p[e.xsrfHeaderName]=m)}if("setRequestHeader"in d&&i.forEach(p,(function(e,t){"undefined"===typeof l&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(S){if("json"!==e.responseType)throw S}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),n(e),d=null)})),l||(l=null),d.send(l)}))}},22751:function(e,t,n){"use strict";var i=n(98163),r=n(19356),o=n(49195),s=n(78666);function a(e){var t=new o(e),n=r(o.prototype.request,t);return i.extend(n,o.prototype,t),i.extend(n,t),n}var u=a(n(25537));u.Axios=o,u.create=function(e){return a(s(u.defaults,e))},u.Cancel=n(71213),u.CancelToken=n(75926),u.isCancel=n(20609),u.all=function(e){return Promise.all(e)},u.spread=n(23183),u.isAxiosError=n(52085),e.exports=u,e.exports.default=u},71213:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},75926:function(e,t,n){"use strict";var i=n(71213);function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},20609:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},49195:function(e,t,n){"use strict";var i=n(98163),r=n(32299),o=n(13261),s=n(26179),a=n(78666);function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[s,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=a(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")}
vendor: 5,225 bytes, line 1
1,i.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,i){return this.request(a(i||{},{method:e,url:t,data:n}))}})),e.exports=u},13261:function(e,t,n){"use strict";var i=n(98163);function r(){this.handlers=[]}r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},4832:function(e,t,n){"use strict";var i=n(28441),r=n(26953);e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},29667:function(e,t,n){"use strict";var i=n(60318);e.exports=function(e,t,n,r,o){var s=new Error(e);return i(s,t,n,r,o)}},26179:function(e,t,n){"use strict";var i=n(98163),r=n(75222),o=n(20609),s=n(25537);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=r(e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return a(e),t.data=r(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(a(e),t&&t.response&&(t.response.data=r(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},60318:function(e){"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},78666:function(e,t,n){"use strict";var i=n(98163);e.exports=function(e,t){t=t||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function c(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=u(void 0,e[r])):n[r]=u(e[r],t[r])}i.forEach(r,(function(e){i.isUndefined(t[e])||(n[e]=u(void 0,t[e]))})),i.forEach(o,c),i.forEach(s,(function(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=u(void 0,e[r])):n[r]=u(void 0,t[r])})),i.forEach(a,(function(i){i in t?n[i]=u(e[i],t[i]):i in e&&(n[i]=u(void 0,e[i]))}));var f=r.concat(o).concat(s).concat(a),l=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===f.indexOf(e)}));return i.forEach(l,c),n}},5979:function(e,t,n){"use strict";var i=n(29667);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(i("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},75222:function(e,t,n){"use strict";var i=n(98163);e.exports=function(e,t,n){return i.forEach(n,(function(n){e=n(e,t)})),e}},25537:function(e,t,n){"use strict";var i=n(83454),r=n(98163),o=n(74604),s={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u={adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof i&&"[object process]"===Object.prototype.toString.call(i))&&(e=n(74509)),e}(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(s)})),e.exports=u},19356:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},32299:function(e,t,n){"use strict";var i=n(98163);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var s=[];
1i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},26953:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},14118:function(e,t,n){"use strict";var i=n(98163);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,n,r,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(r)&&a.push("path="+r),i.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},28441:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},52085:function(e){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},55675:function(e,t,n){"use strict";var i=n(98163);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},74604:function(e,t,n){"use strict";var i=n(98163);e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},77190:function(e,t,n){"use strict";var i=n(98163),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(i.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=i.trim(e.substr(0,o)).toLowerCase(),n=i.trim(e.substr(o+1)),t){if(s[t]&&r.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},23183:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},98163:function(e,t,n){"use strict";var i=n(19356),r=Object.prototype.toString;function o(e){return"[object Array]"===r.call(e)}function s(e){return"undefined"===typeof e}function a(e){return null!==e&&"object"===typeof e}function u(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===r.call(e)}function f(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===r.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:a,isPlainObject:u,isUndefined:s,isDate:function(e){return"[object Date]"===r.call(e)},isFile:function(e){return"[object File]"===r.call(e)},isBlob:function(e){return"[object Blob]"===r.call(e)},isFunction:c,isStream:function(e){return a(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}
1,forEach:f,merge:function e(){var t={};function n(n,i){u(t[i])&&u(n)?t[i]=e(t[i],n):u(n)?t[i]=e({},n):o(n)?t[i]=n.slice():t[i]=n}for(var i=0,r=arguments.length;i<r;i++)f(arguments[i],n);return t},extend:function(e,t,n){return f(t,(function(t,r){e[r]=n&&"function"===typeof t?i(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},55823:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(1)),i(n(2)),i(n(3)),i(n(4)),i(n(5)),i(n(6)),i(n(7)),i(n(8)),i(n(9)),i(n(10)),i(n(11)),i(n(12)),i(n(13))},function(e,t,n){e.exports={a:"Anchor__a___1_Iz8"}},function(e,t,n){e.exports={button:"Button__button___vS7Mv",signInButton:"Button__signInButton___3bUH-",googleSignInButton:"Button__googleSignInButton___1YiCu",signInButtonIcon:"Button__signInButtonIcon___ihN75",auth0SignInButton:"Button__auth0SignInButton___znnCj",facebookSignInButton:"Button__facebookSignInButton___34Txh",amazonSignInButton:"Button__amazonSignInButton___2EMtl",oAuthSignInButton:"Button__oAuthSignInButton___3UGOl",signInButtonContent:"Button__signInButtonContent___xqTXJ"}},function(e,t,n){e.exports={formContainer:"Form__formContainer___1GA3x",formSection:"Form__formSection___1PPvW",formField:"Form__formField___38Ikl",formRow:"Form__formRow___2mwRs"}},function(e,t,n){e.exports={hint:"Hint__hint___2XngB"}},function(e,t,n){e.exports={input:"Input__input___3e_bf",inputLabel:"Input__inputLabel___3VF0S",label:"Input__label___23sO8",radio:"Input__radio___2hllK"}},function(e,t,n){e.exports={navBar:"Nav__navBar___xtCFA",navRight:"Nav__navRight___1QG2J",nav:"Nav__nav___2Dx2Y",navItem:"Nav__navItem___1LtFQ"}},function(e,t,n){e.exports={photoPickerButton:"PhotoPicker__photoPickerButton___2XdVn",photoPlaceholder:"PhotoPicker__photoPlaceholder___2JXO4",photoPlaceholderIcon:"PhotoPicker__photoPlaceholderIcon___3Et71"}},function(e,t,n){e.exports={container:"Section__container___3YYTG",actionRow:"Section__actionRow___2LWSU",sectionHeader:"Section__sectionHeader___2djyg",sectionHeaderHint:"Section__sectionHeaderHint___3Wxdc",sectionBody:"Section__sectionBody___ihqqd",sectionHeaderContent:"Section__sectionHeaderContent___1UCqa",sectionFooter:"Section__sectionFooter___1T54C",sectionFooterPrimaryContent:"Section__sectionFooterPrimaryContent___2r9ZX",sectionFooterSecondaryContent:"Section__sectionFooterSecondaryContent___Nj41Q"}},function(e,t,n){e.exports={selectInput:"SelectInput__selectInput___3efO4"}},function(e,t,n){e.exports={strike:"Strike__strike___1XV1b",strikeContent:"Strike__strikeContent___10gLb"}},function(e,t,n){e.exports={toast:"Toast__toast___XXr3v",toastClose:"Toast__toastClose___18lU4"}},function(e,t,n){e.exports={totpQrcode:"Totp__totpQrcode___1crLx"}},function(e,t,n){e.exports={sumerianSceneContainer:"XR__sumerianSceneContainer___3nVMt",sumerianScene:"XR__sumerianScene___2Tt7-",loadingOverlay:"XR__loadingOverlay___IbqcI",loadingContainer:"XR__loadingContainer___2Itxb",loadingLogo:"XR__loadingLogo___Ub7xQ",loadingSceneName:"XR__loadingSceneName___3__ne",loadingBar:"XR__loadingBar___2vcke",loadingBarFill:"XR__loadingBarFill___3M-D9",sceneErrorText:"XR__sceneErrorText___2y0tp",sce
1neBar:"XR__sceneBar___2ShrP",sceneName:"XR__sceneName___1ApHr",sceneActions:"XR__sceneActions___7plGs",actionButton:"XR__actionButton___2poIM",tooltip:"XR__tooltip___UYyhn",actionIcon:"XR__actionIcon___2qnd2",autoShowTooltip:"XR__autoShowTooltip___V1QH7"}}])},51446:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=void 0;var i=n(70655),r=n(17658),o=n(94079),s=function(){function e(){this.crc32=new o.Crc32}return e.prototype.update=function(e){(0,r.isEmptyData)(e)||this.crc32.update((0,r.convertToBuffer)(e))},e.prototype.digest=function(){return(0,i.__awaiter)(this,void 0,void 0,(function(){return(0,i.__generator)(this,(function(e){return[2,(0,r.numToUint8)(this.crc32.digest())]}))}))},e}();t.AwsCrc32=s},94079:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=t.Crc32=t.crc32=void 0;var i=n(70655),r=n(17658);t.crc32=function(e){return(new o).update(e).digest()};var o=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var r=(0,i.__values)(e),o=r.next();!o.done;o=r.next()){var a=o.value;this.checksum=this.checksum>>>8^s[255&(this.checksum^a)]}}catch(u){t={error:u}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=o;var s=(0,r.uint32ArrayFrom)([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),a=n(51446);Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return a.AwsCrc32}})},44463:function(e,t,n){"use strict";n.d(t,{o:function(){return r},e:function(){return o}});var i=n(70655);var r=function(){function e(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}return e.prototype.withName=function(e){return this.name=e,this},e.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},e.prototype.addChildNode=function(e){return this.children.push(e),this},e.prototype.removeAttribute=function(e){return delete this.attributes[e],this},e.prototype.toString=function(){var e,t,n=Boolean(this.children.length),r="<"+this.name,o=this.attributes;try{for(var s=(0,i.__values)(Object.keys(o)),a=s.next();!a.done;a=s.next()){var u=a.value,c=o[u];"undefined"!==typeof c&&null!==c&&(r+=" "+u+'="'+((""+c).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")+'"'))}}catch(f){e={error:f}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return r+(n?">"+this.children.map((function(e){return e.toString()})).join("")+"</"+this.name+">":"/>")},e}();var o=function(){function e(e){this.value=e}return e.prototype.toString=function(){return(""+this.value).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},e}()},93924:function(e,t,n){"use strict";n.d(t,{default:function(){return fa}});var i,r,o,s,a,u,c,f,l,p,d,h,g,v,m,S,y,b,w,_,L,E,C,N,k,x,A,P,T,O,U,M,I,R,j,K,B,D,z,F,q,V,H,W,X,$,Y,G,Z,J,Q,ee,te,ne,ie,re,oe,se,ae,ue,ce,fe,le,pe,de,he,ge,ve,me,Se,ye,be,we,_e,Le,Ee,Ce,Ne,ke,xe,Ae,Pe,Te,Oe,Ue,Me,Ie,Re,je,Ke,Be,De,ze,Fe,qe,Ve,He,We,Xe,$e,Ye,Ge,Ze,Je,Qe,et,tt,nt,it,rt,ot,st,at,ut,ct,ft,lt,pt,dt,ht,gt,vt,mt,St,yt,bt,wt,_t,Lt,Et,Ct,Nt,kt,xt,At,Pt,Tt,Ot,Ut,Mt,It,Rt,jt,Kt,Bt,Dt,zt,Ft,qt,Vt,Ht,Wt,Xt,$t,Yt,Gt,Zt,Jt,Qt,en,tn,nn,rn,on,sn,an,un,cn,fn,ln,pn,dn,hn,gn,vn,mn,Sn,yn,bn,wn,_n,Ln,En,Cn,Nn,kn,xn,An,Pn,Tn,On,Un,Mn,In,Rn,jn,Kn,Bn,Dn,zn,Fn,qn,Vn,Hn,Wn,Xn,$n,Yn,Gn,Zn,Jn,Qn,ei,ti,ni,ii,ri,oi,si,ai,ui,ci,fi,li,pi,di,hi,gi,vi,mi,Si,yi,bi,wi,_i,Li,Ei,Ci,Ni,ki,xi,Ai,Pi,Ti,Oi,Ui,Mi,Ii,Ri,ji,Ki,Bi=n(93769),Di=n(59222),zi=n(25387),Fi=function(){function e(){this._logger=new Bi.k("ServiceWorker")}return Object.defineProperty(e.prototype,"serviceWorker",{get:function(){return this._serviceWorker},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var n=this;return void 0===e&&(e="/service-worker.js"),void 0===t&&(t="/"),this._logger.debug("registering "+e),this._logger.debug("registering service worker with scope "+t),new Promise((function(i,r){if(!navigator||!("serviceWorker"
1in navigator))return r(new Error("Service Worker not available"));navigator.serviceWorker.register(e,{scope:t}).then((function(e){return e.installing?n._serviceWorker=e.installing:e.waiting?n._serviceWorker=e.waiting:e.active&&(n._serviceWorker=e.active),n._registration=e,n._setupListeners(),n._logger.debug("Service Worker Registration Success: "+e),i(e)})).catch((function(e){return n._logger.debug("Service Worker Registration Failed "+e),r(e)}))}))},e.prototype.enablePush=function(e){var t=this;if(!this._registration)throw new Error("Service Worker not registered");return this._publicKey=e,new Promise((function(n,i){if(!(0,Di.lC)().isBrowser)return i(new Error("Service Worker not available"));t._registration.pushManager.getSubscription().then((function(i){if(!i)return t._logger.debug("User is NOT subscribed to push"),t._registration.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:t._urlB64ToUint8Array(e)}).then((function(e){t._subscription=e,t._logger.debug("User subscribed: "+JSON.stringify(e)),n(e)})).catch((function(e){t._logger.error(e)}));t._subscription=i,t._logger.debug("User is subscribed to push: "+JSON.stringify(i)),n(i)}))}))},e.prototype._urlB64ToUint8Array=function(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=window.atob(t),i=new Uint8Array(n.length),r=0;r<n.length;++r)i[r]=n.charCodeAt(r);return i},e.prototype.send=function(e){this._serviceWorker&&this._serviceWorker.postMessage("object"===typeof e?JSON.stringify(e):e)},e.prototype._setupListeners=function(){var e=this;this._serviceWorker.addEventListener("statechange",(function(t){var n=e._serviceWorker.state;e._logger.debug("ServiceWorker statechange: "+n),zi.dQ.Analytics&&"function"===typeof zi.dQ.Analytics.record&&zi.dQ.Analytics.record({name:"ServiceWorker",attributes:{state:n}})})),this._serviceWorker.addEventListener("message",(function(t){e._logger.debug("ServiceWorker message event: "+t)}))},e}(),qi=n(9432),Vi=n(3877),Hi=n(85389),Wi=n(20490),Xi=n(68346),$i=n(92752),Yi=n(57507),Gi=n(57198);!function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(i||(i={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(r||(r={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(o||(o={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(s||(s={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(a||(a={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(u||(u={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(c||(c={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(f||(f={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(l||(l={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(p||(p={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Gi.oc})}}(d||(d={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(h||(h={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(g||(g={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(v||(v={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(m||(m={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)((0,Yi.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Gi.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Gi.oc})}}(S||(S={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)((0,Yi.pi)((0,Yi.pi)((0,Yi.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:Gi.oc}),e.SSEKMSKeyId&&{SSEKMSKeyId:Gi.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Gi.oc}),e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Gi.oc})}}(y||(y={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(b||(b={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(w||(w={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(_||(_={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(L||(L={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(E||(E={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(C||(C={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)((0,Yi.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Gi.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Gi.oc})}}(N||(N={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)((0,Yi.pi)((0,Yi.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:Gi.oc}),e.SSEKMSKeyId&&{SSEKMSKeyId:Gi.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Gi.oc})}}(k||(k={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(x||(x={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(A||(A={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(P||(P={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(T||(T={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(O||(O={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(U||(U={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(M||(M={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(I||(I={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(R||(R={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(j||(j={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(K||(K={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(B||(B={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(D||(D={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(z||(z={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(F||(F={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(q||(q={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(V||(V={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(H||(H={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(W||(W={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(X||(X={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}($||($={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Y||(Y={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(G||(G={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Z||(Z={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(J||(J={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Q||(Q={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ee||(ee={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(te||(te={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ne||(ne={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ie||(ie={})),function(e){e.visit=function(e,t){return void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:ne.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:ie.filterSensitiveLog(e.And)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(re||(re={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(oe||(oe={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(se||(se={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ae||(ae={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ue||(ue={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.Filter&&{Filter:re.filterSensitiveLog(e.Filter)})}}(ce||(ce={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.AnalyticsConfiguration&&{AnalyticsConfiguration:ce.filterSensitiveLog(e.AnalyticsConfiguration)})}}(fe||(fe={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(le||(le={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(pe||(pe={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(de||(de={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(he||(he={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.KMSMasterKeyID&&{KMSMasterKeyID:Gi.oc})}}(ge||(ge={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({}
1,e),e.ApplyServerSideEncryptionByDefault&&{ApplyServerSideEncryptionByDefault:ge.filterSensitiveLog(e.ApplyServerSideEncryptionByDefault)})}}(ve||(ve={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.Rules&&{Rules:e.Rules.map((function(e){return ve.filterSensitiveLog(e)}))})}}(me||(me={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:me.filterSensitiveLog(e.ServerSideEncryptionConfiguration)})}}(Se||(Se={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ye||(ye={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(be||(be={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(we||(we={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(_e||(_e={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Le||(Le={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ee||(Ee={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ce||(Ce={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.KeyId&&{KeyId:Gi.oc})}}(Ne||(Ne={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ke||(ke={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.SSEKMS&&{SSEKMS:Ne.filterSensitiveLog(e.SSEKMS)})}}(xe||(xe={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.Encryption&&{Encryption:xe.filterSensitiveLog(e.Encryption)})}}(Ae||(Ae={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.S3BucketDestination&&{S3BucketDestination:Ae.filterSensitiveLog(e.S3BucketDestination)})}}(Pe||(Pe={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Te||(Te={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Oe||(Oe={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.Destination&&{Destination:Pe.filterSensitiveLog(e.Destination)})}}(Ue||(Ue={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.InventoryConfiguration&&{InventoryConfiguration:Ue.filterSensitiveLog(e.InventoryConfiguration)})}}(Me||(Me={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ie||(Ie={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Re||(Re={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(je||(je={})),function(e){e.visit=function(e,t){return void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:ne.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:je.filterSensitiveLog(e.And)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(Ke||(Ke={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Be||(Be={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(De||(De={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ze||(ze={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.Filter&&{Filter:Ke.filterSensitiveLog(e.Filter)})}}(Fe||(Fe={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.Rules&&{Rules:e.Rules.map((function(e){return Fe.filterSensitiveLog(e)}))})}}(qe||(qe={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ve||(Ve={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(He||(He={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(We||(We={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Xe||(Xe={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}($e||($e={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ye||(Ye={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ge||(Ge={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ze||(Ze={})),function(e){e.visit=function(e,t){return void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:ne.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:Ze.filterSensitiveLog(e.And)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(Je||(Je={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.Filter&&{Filter:Je.filterSensitiveLog(e.Filter)})}}(Qe||(Qe={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.MetricsConfiguration&&{MetricsConfiguration:Qe.filterSensitiveLog(e.MetricsConfiguration)})}}(et||(et={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(tt||(tt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(nt||(nt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(it||(it={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(rt||(rt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ot||(ot={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(st||(st={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(at||(at={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ut||(ut={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ct||(ct={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ft||(ft={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(lt||(lt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(pt||(pt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(dt||(dt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ht||(ht={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(gt||(gt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(vt||(vt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(mt||(mt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(St||(St={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(yt||(yt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(bt||(bt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(wt||(wt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(_t||(_t={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Lt||(Lt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Et||(Et={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ct||(Ct={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Nt||(Nt={})),function(e){e.visit=function(e,t){return void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:ne.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:Nt.filterSensitiveLog(e.And)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(kt||(kt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(xt||(xt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(At||(At={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Pt||(Pt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.Filter&&{Filter:kt.filterSensitiveLog(e.Filter)})}}(Tt||(Tt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.Rules&&{Rules:e.Rules.map((function(e){return Tt.filterSensitiveLog(e)}))})}}(Ot||(Ot={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.ReplicationConfiguration&&{ReplicationConfiguration:Ot.filterSensitiveLog(e.ReplicationConfiguration)})}}(Ut||(Ut={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Mt||(Mt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(It||(It={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Rt||(Rt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(jt||(jt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Kt||(Kt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Bt||(Bt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Dt||(Dt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(zt||(zt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ft||(Ft={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(qt||(qt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Vt||(Vt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ht||(Ht={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Wt||(Wt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Xt||(Xt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}($t||($t={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Gi.oc})}}(Yt||(Yt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:Gi.oc})}}(Gt||(Gt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Zt||(Zt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Jt||(Jt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Qt||(Qt={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(en||(en={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(tn||(tn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(nn||(nn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(rn||(rn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(on||(on={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(sn||(sn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(an||(an={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(un||(un={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(cn||(cn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(fn||(fn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ln||(ln={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(pn||(pn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(dn||(dn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(hn||(hn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(gn||(gn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(vn||(vn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(mn||(mn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Sn||(Sn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(yn||(yn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(bn||(bn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(wn||(wn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Gi.oc})}}(_n||(_n={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:Gi.oc})}}(Ln||(Ln={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.AnalyticsConfigurationList&&{AnalyticsConfigurationList:e.AnalyticsConfigurationList.map((function(e){return ce.filterSensitiveLog(e)}))})}}(En||(En={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Cn||(Cn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Nn||(Nn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(kn||(kn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.InventoryConfigurationList&&{InventoryConfigurationList:e.InventoryConfigurationList.map((function(e){return Ue.filterSensitiveLog(e)}))})}}(xn||(xn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(An||(An={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.MetricsConfigurationList&&{MetricsConfigurationList:e.MetricsConfigurationList.map((function(e){return Qe.filterSensitiveLog(e)}))})}}(Pn||(Pn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Tn||(Tn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(On||(On={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Un||(Un={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Mn||(Mn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(In||(In={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Rn||(Rn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(jn||(jn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Kn||(Kn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Bn||(Bn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Dn||(Dn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(zn||(zn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Fn||(Fn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}
1(qn||(qn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Vn||(Vn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Hn||(Hn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Wn||(Wn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Xn||(Xn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}($n||($n={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Yn||(Yn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Gn||(Gn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Zn||(Zn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Jn||(Jn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.AnalyticsConfiguration&&{AnalyticsConfiguration:ce.filterSensitiveLog(e.AnalyticsConfiguration)})}}(Qn||(Qn={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ei||(ei={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ti||(ti={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:me.filterSensitiveLog(e.ServerSideEncryptionConfiguration)})}}(ni||(ni={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ii||(ii={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.InventoryConfiguration&&{InventoryConfiguration:Ue.filterSensitiveLog(e.InventoryConfiguration)})}}(ri||(ri={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.Rules&&{Rules:e.Rules.map((function(e){return Fe.filterSensitiveLog(e)}))})}}(oi||(oi={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.LifecycleConfiguration&&{LifecycleConfiguration:oi.filterSensitiveLog(e.LifecycleConfiguration)})}}(si||(si={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ai||(ai={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ui||(ui={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.MetricsConfiguration&&{MetricsConfiguration:Qe.filterSensitiveLog(e.MetricsConfiguration)})}}(ci||(ci={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(fi||(fi={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(li||(li={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(pi||(pi={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.ReplicationConfiguration&&{ReplicationConfiguration:Ot.filterSensitiveLog(e.ReplicationConfiguration)})}}(di||(di={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(hi||(hi={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(gi||(gi={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(vi||(vi={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(mi||(mi={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Si||(Si={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(yi||(yi={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(bi||(bi={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(wi||(wi={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)((0,Yi.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Gi.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Gi.oc})}}(_i||(_i={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)((0,Yi.pi)((0,Yi.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:Gi.oc}),e.SSEKMSKeyId&&{SSEKMSKeyId:Gi.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Gi.oc})}}(Li||(Li={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ei||(Ei={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ci||(Ci={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ni||(Ni={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ki||(ki={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(xi||(xi={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ai||(Ai={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Pi||(Pi={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ti||(Ti={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Oi||(Oi={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ui||(Ui={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Mi||(Mi={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ii||(Ii={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ri||(Ri={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ji||(ji={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.KMSKeyId&&{KMSKeyId:Gi.oc})}}(Ki||(Ki={}));var Zi=n(56226),Ji=n(70655),Qi=n(96877),er=function(e){return"string"===typeof e&&0===e.indexOf("arn:")&&e.split(":").length>=6},tr=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,nr=/(\d+\.){3}\d+/,ir=/\.\./,rr=/\./,or=/^(.+\.)?s3[.-]([a-z0-9-]+)\./,sr=/^s3(-external-1)?\.amazonaws\.com$/,ar="amazonaws.com",ur=function(e){return fr(e)?e.replace(/fips-|-fips/,""):e},cr=function(e){var t=e.match(or);return[t[2],e.replace(new RegExp("^"+t[0]),"")]},fr=function(e){return e.startsWith("fips-")||e.endsWith("-fips")},lr=function(e,t){return e===t||ur(e)===t||e===ur(t)},pr=function(e,t){if(void 0===t&&(t={tlsCompatible:!0}),e.length>=64||!/^[a-z0-9][a-z0-9.-]+[a-z0-9]$/.test(e)||/(\d+\.){3}\d+/.test(e)||/[.-]{2}/.test(e)||(null===t||void 0===t?void 0:t.tlsCompatible)&&rr.test(e))throw new Error("Invalid DNS label "+e)},dr=function(e){var t=e.isCustomEndpoint,n=(e.baseHostname,e.dualstackEndpoint),i=e.accelerateEndpoint;if(t){if(n)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(i)throw new Error("Accelerate endpoint is not supported with custom endpoint")}return function(e){return"string"===typeof e.bucketName}(e)?gr((0,Ji.__assign)((0,Ji.__assign)({},e),{isCustomEndpoint:t})):hr((0,Ji.__assign)((0,Ji.__assign)({},e),{isCustomEndpoint:t}))},hr=function(e){var t,n=e.isCustomEndpoint,i=e.baseHostname,r=(0,Ji.__read)(n?[e.clientRegion,i]:(t=i,sr.test(t)?[t.replace(".amazonaws.com",""),ar]:cr(t)),2),o=r[0],s=r[1],a=e.pathStyleEndpoint,u=e.dualstackEndpoint,c=void 0!==u&&u,f=e.accelerateEndpoint,l=void 0!==f&&f,p=e.tlsCompatible,d=void 0===p||p,h=e.useArnRegion,g=e.bucketName,v=e.clientPartition,m=void 0===v?"aws":v,S=e.clientSigningRegion,y=void 0===S?o:S;!function(e){if(e.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!e.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")}({pathStyleEndpoint:a,accelerateEndpoint:l,tlsCompatible:d});var b=g.service,w=g.partition,_=g.accountId,L=g.region,E=g.resource;!function(e){if("s3"!==e&&"s3-outposts"!==e)throw new Error("Expect 's3' or 's3-outposts' in ARN service component")}(b),function(e,t){if(e!==t.clientPartition)throw new Error('Partition in ARN is incompatible, got "'+e+'" but expected "'+t.clientPartition+'"')}(w,{clientPartition:m}),function(e){if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")}(_),function(e,t){if(""===e)throw new Error("ARN region is empty");
1if(!t.useArnRegion&&!lr(e,t.clientRegion)&&!lr(e,t.clientSigningRegion))throw new Error("Region in ARN is incompatible, got "+e+" but expected "+t.clientRegion);if(t.useArnRegion&&fr(e))throw new Error("Endpoint does not support FIPS region")}(L,{useArnRegion:h,clientRegion:o,clientSigningRegion:y});var C=function(e){var t=e.includes(":")?":":"/",n=(0,Ji.__read)(e.split(t)),i=n[0],r=n.slice(1);if("accesspoint"===i){if(1!==r.length||""===r[0])throw new Error("Access Point ARN should have one resource accesspoint"+t+"{accesspointname}");return{accesspointName:r[0]}}if("outpost"===i){if(!r[0]||"accesspoint"!==r[1]||!r[2]||3!==r.length)throw new Error("Outpost ARN should have resource outpost"+t+"{outpostId}"+t+"accesspoint"+t+"{accesspointName}");var o=(0,Ji.__read)(r,3),s=o[0];return o[1],{outpostId:s,accesspointName:o[2]}}throw new Error("ARN resource should begin with 'accesspoint"+t+"' or 'outpost"+t+"'")}(E),N=C.accesspointName,k=C.outpostId;pr(N+"-"+_,{tlsCompatible:d});var x=h?L:o,A=h?L:y;return k?(function(e){if("s3-outposts"!==e)throw new Error("Expect 's3-posts' in Outpost ARN service component")}(b),pr(k,{tlsCompatible:d}),function(e){if(e)throw new Error("Dualstack endpoint is not supported with Outpost")}(c),function(e){if(fr(null!==e&&void 0!==e?e:""))throw new Error("FIPS region is not supported with Outpost, got "+e)}(x),{bucketEndpoint:!0,hostname:N+"-"+_+"."+k+(n?"":".s3-outposts."+x)+"."+s,signingRegion:A,signingService:"s3-outposts"}):(function(e){if("s3"!==e)throw new Error("Expect 's3' in Accesspoint ARN service component")}(b),{bucketEndpoint:!0,hostname:N+"-"+_+(n?"":".s3-accesspoint"+(c?".dualstack":"")+"."+x)+"."+s,signingRegion:A})},gr=function(e){var t,n=e.accelerateEndpoint,i=void 0!==n&&n,r=e.clientRegion,o=e.baseHostname,s=e.bucketName,a=e.dualstackEndpoint,u=void 0!==a&&a,c=e.pathStyleEndpoint,f=void 0!==c&&c,l=e.tlsCompatible,p=void 0===l||l,d=e.isCustomEndpoint,h=void 0!==d&&d,g=(0,Ji.__read)(h?[r,o]:(t=o,sr.test(t)?["us-east-1",ar]:cr(t)),2),v=g[0],m=g[1];return f||!function(e){return tr.test(e)&&!nr.test(e)&&!ir.test(e)}(s)||p&&rr.test(s)?{bucketEndpoint:!1,hostname:u?"s3.dualstack."+v+"."+m:o}:(i?o="s3-accelerate"+(u?".dualstack":"")+"."+m:u&&(o="s3.dualstack."+v+"."+m),{bucketEndpoint:!0,hostname:s+"."+o})},vr=function(e){return function(t,n){return function(i){return(0,Ji.__awaiter)(void 0,void 0,void 0,(function(){var r,o,s,a,u,c,f,l,p,d,h,g,v,m,S,y,b,w;return(0,Ji.__generator)(this,(function(_){switch(_.label){case 0:return r=i.input.Bucket,o=e.bucketEndpoint,s=i.request,Qi.aW.isInstance(s)?e.bucketEndpoint?(s.hostname=r,[3,7]):[3,1]:[3,8];case 1:return er(r)?(a=function(e){var t=e.split(":");if(t.length<6||"arn"!==t[0])throw new Error("Malformed ARN");var n=(0,Ji.__read)(t);return{partition:n[1],service:n[2],region:n[3],accountId:n[4],resource:n.slice(5).join(":")}}(r),u=ur,[4,e.region()]):[3,5];case 2:return m=u.apply(void 0,[_.sent()]),[4,e.regionInfoProvider(m)];case 3:return c=_.sent()||{},f=c.partition,l=c.signingRegion,p=void 0===l?m:l,[4,e.useArnRegion()];case 4:return d=_.sent(),h=dr({bucketName:a,baseHostname:s.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:e.useDualstackEndpoint,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:"https:"===s.protocol,useArnRegion:d,clientPartition:f,clientSigningRegion:p,clientRegion:m,isCustomEndpoint:e.isCustomEndpoint}),b=h.hostname,w=h.bucketEndpoint,g=h.signingRegion,v=h.signingService,g&&g!==p&&(n.signing_region=g),v&&"s3"!==v&&(n.signing_service=v),s.hostname=b,o=w,[3,7];case 5:return S=ur,[4,e.region()];case 6:m=S.apply(void 0,[_.sent()]),y=dr({bucketName:r,clientRegion:m,baseHostname:s.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:e.useDualstackEndpoint,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:"https:"===s.protocol,isCustomEndpoint:e.isCustomEndpoint}),b=y.hostname,w=y.bucketEndpoint,s.hostname=b,o=w,_.label=7;case 7:o&&(s.path=s.path.replace(/^(\/)?[^\/]+/,""),""===s.path&&(s.path="/")),_.label=8;case 8:return[2,t((0,Ji.__assign)((0,Ji.__assign)({},i),{request:s}))]}}))}))}}},mr={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0},Sr=function(e){return{applyToStack:function(t){t.addRelativeTo(vr(e),mr)}}};var yr={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},br=function(e){return{applyToStack:function(e){e.add(function(){var e=this;return function(t){return function(n){return(0,Ji.__awaiter)(e,void 0,void 0,(function(){var e,i;return(0,Ji.__generator)(this,(function(r){if("string"===typeof(e=n.input.Bucket)&&!er(e)&&e.indexOf("/")>=0)throw(i=new Error("Bucket name shouldn't contain '/', received '"+e+"'")).name="InvalidBucketName",i;return[2,t((0,Ji.__assign)({},n))]}))}))}}}(),yr)}}},wr={step:"build",tags:["USE_REGIONAL_ENDPOINT","S3"],name:"useRegionalEndpointMiddleware",override:!0},_r=function(e){return{applyToStack:function(t){t.add(function(e){return function(t){return function(n){return(0,Ji.__awaiter)(void 0,void 0,void 0,(function(){var i,r;return(0,Ji.__generator)(this,(function(o){switch(o.label){case 0:return i=n.request,!Qi.aW.isInstance(i)||e.isCustomEndpoint?[2,t((0,Ji.__assign)({},n))]:"s3.amazonaws.com"!==i.hostname?[3,1]:(i.hostname="s3.us-east-1.amazonaws.com",[3,3]);case 1:return r="aws-global",[4,e.region()];case 2:r===o.sent()&&(i.hostname="s3.amazonaws.com"),o.label=3;case 3:return[2,t((0,Ji.__assign)({},n))]}}))}))}}}(e),wr)}}},Lr=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},Er=function(e,t){return Lr(e,t).then((function(e){return t.utf8Encoder(e)}))},Cr={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Nr=function(e){return{applyToStack:function(t){t.addRelativeTo(function(e){return function(t){return function(n){return(0,Ji.__awaiter)(void 0,void 0,void 0,(function(){var i,r,o,s,a,u,c;return(0,Ji.__generator)(this,(function(f){switch(f.label){case 0:return[4,t(n)];case 1:return i=f.sent(),r=i.response,Qi.Zn.isInstance(r)?(o=r.statusCode,s=r.body,o<200&&o>=300?[2,i]:[4,Lr(s,e)]):[2,i];case 2:return a=f.sent(),[4,Er(a,e)];case 3:if(u=f.sent(),0===a.length)throw(c=new Error("S3 aborted request")).name="InternalError",c;return u&&u.match("<Error>")&&(r.statusCode=400),r.body=a,[2,i]}}))}))}}}(e),Cr)}}},kr=n(82839);var xr={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},Ar=function(e){return{applyToStack:function(t){t.add(function(e){var t=this;return function(n){return function(i){return(0,Ji.__awaiter)(t,void 0,void 0,(function(){var t,r,o,s,a,u,c,f,l,p,d,h,g,v,m,S,y;return(0,Ji.__generator)(this,(function(b){switch(b.label){case 0:t=(0,Ji.__assign)({},i.input),r=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}],b.label=1;case 1:b.trys.push([1,6,7,8]),o=(0,Ji.__values)(r),s=o.next(),b.label=2;case 2:return s.done?[3,5]:(a=s.value,(u=t[a.target])?(c=ArrayBuffer.isView(u)?new Uint8Array(u.buffer,u.byteOffset,u.byteLength):"string"===typeof u?e.utf8Decoder(u):new Uint8Array(u),f=e.base64Encoder(c),(l=new e.md5).update(c),p=[(0,Ji.__assign)({},t)],(y={})[a.target]=f,d=a.hash,g=(h=e).base64Encoder,[4,l.digest()]):[3,4]);case 3:t=Ji.__assign.apply(void 0,p.concat([(y[d]=g.apply(h,[b.sent()]),y)])),b.label=4;case 4:return s=o.next(),[3,2];case 5:return[3,8];case 6:return v=b.sent(),m={error:v},[3,8];case 7:try{s&&!s.done&&(S=o.return)&&S.call(o)}finally{if(m)throw m.error}
1return[7];case 8:return[2,n((0,Ji.__assign)((0,Ji.__assign)({},i),{input:t}))]}}))}))}}}(e),xr)}}},Pr=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Yi.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,kr.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Nr(t)),this.middlewareStack.use(Ar(t)),this.middlewareStack.use(Sr(t));var i=e.concat(this.middlewareStack),r={logger:t.logger,clientName:"S3Client",commandName:"CopyObjectCommand",inputFilterSensitiveLog:y.filterSensitiveLog,outputFilterSensitiveLog:S.filterSensitiveLog},o=t.requestHandler;return i.resolve((function(e){return o.handle(e.request,n||{})}),r)},t.prototype.serialize=function(e,t){return(0,Zi.R89)(e,t)},t.prototype.deserialize=function(e,t){return(0,Zi.gur)(e,t)},t}(Gi.mY),Tr=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Yi.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,kr.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Ar(t)),this.middlewareStack.use(Sr(t));var i=e.concat(this.middlewareStack),r={logger:t.logger,clientName:"S3Client",commandName:"GetObjectCommand",inputFilterSensitiveLog:Gt.filterSensitiveLog,outputFilterSensitiveLog:Yt.filterSensitiveLog},o=t.requestHandler;return i.resolve((function(e){return o.handle(e.request,n||{})}),r)},t.prototype.serialize=function(e,t){return(0,Zi.LHU)(e,t)},t.prototype.deserialize=function(e,t){return(0,Zi.P3C)(e,t)},t}(Gi.mY),Or=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Yi.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,kr.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Sr(t));var i=e.concat(this.middlewareStack),r={logger:t.logger,clientName:"S3Client",commandName:"DeleteObjectCommand",inputFilterSensitiveLog:F.filterSensitiveLog,outputFilterSensitiveLog:z.filterSensitiveLog},o=t.requestHandler;return i.resolve((function(e){return o.handle(e.request,n||{})}),r)},t.prototype.serialize=function(e,t){return(0,Zi.BrV)(e,t)},t.prototype.deserialize=function(e,t){return(0,Zi.IY3)(e,t)},t}(Gi.mY),Ur=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Yi.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,kr.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Sr(t));var i=e.concat(this.middlewareStack),r={logger:t.logger,clientName:"S3Client",commandName:"ListObjectsCommand",inputFilterSensitiveLog:zn.filterSensitiveLog,outputFilterSensitiveLog:Dn.filterSensitiveLog},o=t.requestHandler;return i.resolve((function(e){return o.handle(e.request,n||{})}),r)},t.prototype.serialize=function(e,t){return(0,Zi.GN9)(e,t)},t.prototype.deserialize=function(e,t){return(0,Zi.d2X)(e,t)},t}(Gi.mY),Mr=n(77643),Ir=n(94079),Rr=n(25644),jr=function(){function e(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}return e.fromNumber=function(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw new Error(t+" is too large (or, if negative, too small) to represent as an Int64");
1for(var n=new Uint8Array(8),i=7,r=Math.abs(Math.round(t));i>-1&&r>0;i--,r/=256)n[i]=r;return t<0&&Kr(n),new e(n)},e.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&Kr(e),parseInt((0,Rr.N)(e),16)*(t?-1:1)},e.prototype.toString=function(){return String(this.valueOf())},e}();function Kr(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}var Br,Dr=function(){function e(e,t){this.toUtf8=e,this.fromUtf8=t}return e.prototype.format=function(e){var t,n,i,r,o=[];try{for(var s=(0,Ji.__values)(Object.keys(e)),a=s.next();!a.done;a=s.next()){var u=a.value,c=this.fromUtf8(u);o.push(Uint8Array.from([c.byteLength]),c,this.formatHeaderValue(e[u]))}}catch(g){t={error:g}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var f=new Uint8Array(o.reduce((function(e,t){return e+t.byteLength}),0)),l=0;try{for(var p=(0,Ji.__values)(o),d=p.next();!d.done;d=p.next()){var h=d.value;f.set(h,l),l+=h.byteLength}}catch(v){i={error:v}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(i)throw i.error}}return f},e.prototype.formatHeaderValue=function(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":var t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":var n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":var i=new Uint8Array(9);return i[0]=5,i.set(e.value.bytes,1),i;case"binary":var r=new DataView(new ArrayBuffer(3+e.value.byteLength));r.setUint8(0,6),r.setUint16(1,e.value.byteLength,!1);var o=new Uint8Array(r.buffer);return o.set(e.value,3),o;case"string":var s=this.fromUtf8(e.value),a=new DataView(new ArrayBuffer(3+s.byteLength));a.setUint8(0,7),a.setUint16(1,s.byteLength,!1);var u=new Uint8Array(a.buffer);return u.set(s,3),u;case"timestamp":var c=new Uint8Array(9);return c[0]=8,c.set(jr.fromNumber(e.value.valueOf()).bytes,1),c;case"uuid":if(!Gr.test(e.value))throw new Error("Invalid UUID received: "+e.value);var f=new Uint8Array(17);return f[0]=9,f.set((0,Rr.H)(e.value.replace(/\-/g,"")),1),f}},e.prototype.parse=function(e){for(var t={},n=0;n<e.byteLength;){var i=e.getUint8(n++),r=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,i));switch(n+=i,e.getUint8(n++)){case 0:t[r]={type:zr,value:!0};break;case 1:t[r]={type:zr,value:!1};break;case 2:t[r]={type:Fr,value:e.getInt8(n++)};break;case 3:t[r]={type:qr,value:e.getInt16(n,!1)},n+=2;break;case 4:t[r]={type:Vr,value:e.getInt32(n,!1)},n+=4;break;case 5:t[r]={type:Hr,value:new jr(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:var o=e.getUint16(n,!1);n+=2,t[r]={type:Wr,value:new Uint8Array(e.buffer,e.byteOffset+n,o)},n+=o;break;case 7:var s=e.getUint16(n,!1);n+=2,t[r]={type:Xr,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,s))},n+=s;break;case 8:t[r]={type:$r,value:new Date(new jr(new Uint8Array(e.buffer,e.byteOffset+n,8)).valueOf())},n+=8;break;case 9:var a=new Uint8Array(e.buffer,e.byteOffset+n,16);n+=16,t[r]={type:Yr,value:(0,Rr.N)(a.subarray(0,4))+"-"+(0,Rr.N)(a.subarray(4,6))+"-"+(0,Rr.N)(a.subarray(6,8))+"-"+(0,Rr.N)(a.subarray(8,10))+"-"+(0,Rr.N)(a.subarray(10))};break;default:throw new Error("Unrecognized header type tag")}}return t},e}();!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(Br||(Br={}));var zr="boolean",Fr="byte",qr="short",Vr="integer",Hr="long",Wr="binary",Xr="string",$r="timestamp",Yr="uuid",Gr=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;var Zr=function(){function e(e,t){this.headerMarshaller=new Dr(e,t)}return e.prototype.marshall=function(e){var t=e.headers,n=e.body,i=this.headerMarshaller.format(t),r=i.byteLength+n.byteLength+16,o=new Uint8Array(r),s=new DataView(o.buffer,o.byteOffset,o.byteLength),a=new Ir.Crc32;return s.setUint32(0,r,!1),s.setUint32(4,i.byteLength,!1),s.setUint32(8,a.update(o.subarray(0,8)).digest(),!1),o.set(i,
112),o.set(n,i.byteLength+12),s.setUint32(r-4,a.update(o.subarray(8,r-4)).digest(),!1),o},e.prototype.unmarshall=function(e){var t=function(e){var t=e.byteLength,n=e.byteOffset,i=e.buffer;if(t<16)throw new Error("Provided message too short to accommodate event stream message overhead");var r=new DataView(i,n,t),o=r.getUint32(0,!1);if(t!==o)throw new Error("Reported message length does not match received message length");var s=r.getUint32(4,!1),a=r.getUint32(8,!1),u=r.getUint32(t-4,!1),c=(new Ir.Crc32).update(new Uint8Array(i,n,8));if(a!==c.digest())throw new Error("The prelude checksum specified in the message ("+a+") does not match the calculated CRC32 checksum ("+c.digest()+")");if(c.update(new Uint8Array(i,n+8,t-12)),u!==c.digest())throw new Error("The message checksum ("+c.digest()+") did not match the expected value of "+u);return{headers:new DataView(i,n+8+4,s),body:new Uint8Array(i,n+8+4+s,o-s-16)}}(e),n=t.headers,i=t.body;return{headers:this.headerMarshaller.parse(n),body:i}},e.prototype.formatHeaders=function(e){return this.headerMarshaller.format(e)},e}();var Jr=function(){function e(e){var t=e.utf8Encoder,n=e.utf8Decoder;this.eventMarshaller=new Zr(t,n),this.utfEncoder=t}return e.prototype.deserialize=function(e,t){var n=function(e){var t,n=0,i=0,r=null,o=null,s=function(e){if("number"!==typeof e)throw new Error("Attempted to allocate an event message where size was not a number: "+e);n=e,i=4,r=new Uint8Array(e),new DataView(r.buffer).setUint32(0,e,!1)};return(t={})[Symbol.asyncIterator]=function(){return(0,Ji.__asyncGenerator)(this,arguments,(function(){var t,a,u,c,f,l,p,d;return(0,Ji.__generator)(this,(function(h){switch(h.label){case 0:t=e[Symbol.asyncIterator](),h.label=1;case 1:return[4,(0,Ji.__await)(t.next())];case 2:return a=h.sent(),u=a.value,a.done?n?[3,4]:[4,(0,Ji.__await)(void 0)]:[3,10];case 3:return[2,h.sent()];case 4:return n!==i?[3,7]:[4,(0,Ji.__await)(r)];case 5:return[4,h.sent()];case 6:return h.sent(),[3,8];case 7:throw new Error("Truncated event message received.");case 8:return[4,(0,Ji.__await)(void 0)];case 9:return[2,h.sent()];case 10:c=u.length,f=0,h.label=11;case 11:if(!(f<c))return[3,15];if(!r){if(l=c-f,o||(o=new Uint8Array(4)),p=Math.min(4-i,l),o.set(u.slice(f,f+p),i),f+=p,(i+=p)<4)return[3,15];s(new DataView(o.buffer).getUint32(0,!1)),o=null}return d=Math.min(n-i,c-f),r.set(u.slice(f,f+d),i),i+=d,f+=d,n&&n===i?[4,(0,Ji.__await)(r)]:[3,14];case 12:return[4,h.sent()];case 13:h.sent(),r=null,n=0,i=0,h.label=14;case 14:return[3,11];case 15:return[3,1];case 16:return[2]}}
1))}))},t}(e),i=function(e,t){var n;return(n={})[Symbol.asyncIterator]=function(){return(0,Ji.__asyncGenerator)(this,arguments,(function(){var n,i,r,o,s,a,u,c,f,l,p,d,h,g,v,m,S;return(0,Ji.__generator)(this,(function(y){switch(y.label){case 0:y.trys.push([0,12,13,18]),n=(0,Ji.__asyncValues)(e),y.label=1;case 1:return[4,(0,Ji.__await)(n.next())];case 2:if((i=y.sent()).done)return[3,11];if(r=i.value,o=t.eventMarshaller.unmarshall(r),"error"!==(s=o.headers[":message-type"].value))return[3,3];throw(a=new Error(o.headers[":error-message"].value||"UnknownError")).name=o.headers[":error-code"].value,a;case 3:return"exception"!==s?[3,5]:(u=o.headers[":exception-type"].value,(g={})[u]=o,c=g,[4,(0,Ji.__await)(t.deserializer(c))]);case 4:if((f=y.sent()).$unknown)throw(l=new Error(t.toUtf8(o.body))).name=u,l;throw f[u];case 5:return"event"!==s?[3,9]:((v={})[o.headers[":event-type"].value]=o,p=v,[4,(0,Ji.__await)(t.deserializer(p))]);case 6:return(d=y.sent()).$unknown?[3,10]:[4,(0,Ji.__await)(d)];case 7:return[4,y.sent()];case 8:return y.sent(),[3,10];case 9:throw Error("Unrecognizable event type: "+o.headers[":event-type"].value);case 10:return[3,1];case 11:return[3,18];case 12:return h=y.sent(),m={error:h},[3,18];case 13:return y.trys.push([13,,16,17]),i&&!i.done&&(S=n.return)?[4,(0,Ji.__await)(S.call(n))]:[3,15];case 14:y.sent(),y.label=15;case 15:return[3,17];case 16:if(m)throw m.error;return[7];case 17:return[7];case 18:return[2]}}
1))}))},n}(n,{eventMarshaller:this.eventMarshaller,deserializer:t,toUtf8:this.utfEncoder});return i},e.prototype.serialize=function(e,t){var n,i=this;return(n={})[Symbol.asyncIterator]=function(){return(0,Ji.__asyncGenerator)(this,arguments,(function(){var n,r,o,s,a,u,c;return(0,Ji.__generator)(this,(function(f){switch(f.label){case 0:f.trys.push([0,7,8,13]),n=(0,Ji.__asyncValues)(e),f.label=1;case 1:return[4,(0,Ji.__await)(n.next())];case 2:return(r=f.sent()).done?[3,6]:(o=r.value,s=i.eventMarshaller.marshall(t(o)),[4,(0,Ji.__await)(s)]);case 3:return[4,f.sent()];case 4:f.sent(),f.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return a=f.sent(),u={error:a},[3,13];case 8:return f.trys.push([8,,11,12]),r&&!r.done&&(c=n.return)?[4,(0,Ji.__await)(c.call(n))]:[3,10];case 9:f.sent(),f.label=10;case 10:return[3,12];case 11:if(u)throw u.error;return[7];case 12:return[7];case 13:return[4,(0,Ji.__await)(new Uint8Array(0))];case 14:return[4,f.sent()];case 15:return f.sent(),[2]}}))}))},n},e}(),Qr=function(){function e(e){var t=e.utf8Encoder,n=e.utf8Decoder;this.eventMarshaller=new Zr(t,n),this.universalMarshaller=new Jr({utf8Decoder:n,utf8Encoder:t})}return e.prototype.deserialize=function(e,t){var n=eo(e)?function(e){var t;return(t={})[Symbol.asyncIterator]=function(){return(0,Ji.__asyncGenerator)(this,arguments,(function(){var t,n,i,r;return(0,Ji.__generator)(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,(0,Ji.__await)(t.read())];case 3:return n=o.sent(),i=n.done,r=n.value,i?[4,(0,Ji.__await)(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,(0,Ji.__await)(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}
1))}))},t}(e):e;return this.universalMarshaller.deserialize(n,t)},e.prototype.serialize=function(e,t){var n=this.universalMarshaller.serialize(e,t);return"function"===typeof ReadableStream?function(e){var t=e[Symbol.asyncIterator]();return new ReadableStream({pull:function(e){return(0,Ji.__awaiter)(this,void 0,void 0,(function(){var n,i,r;return(0,Ji.__generator)(this,(function(o){switch(o.label){case 0:return[4,t.next()];case 1:return n=o.sent(),i=n.done,r=n.value,i?[2,e.close()]:(e.enqueue(r),[2])}}))}))}})}(n):n},e}(),eo=function(e){return"function"===typeof ReadableStream&&e instanceof ReadableStream},to=n(37691);function no(e,t,n){return void 0===n&&(n=1048576),new Promise((function(i,r){var o=new FileReader;o.addEventListener("error",r),o.addEventListener("abort",r);var s=e.size,a=0;function u(){a>=s?i():o.readAsArrayBuffer(e.slice(a,Math.min(s,a+n)))}o.addEventListener("load",(function(e){var n=e.target.result;t(new Uint8Array(n)),a+=n.byteLength,u()})),u()}))}var io=n(35749),ro=n(20519),oo=64,so=[1732584193,4023233417,2562383102,271733878],ao=function(){function e(){this.state=Uint32Array.from(so),this.buffer=new DataView(new ArrayBuffer(oo)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(!function(e){if("string"===typeof e)return 0===e.length;return 0===e.byteLength}(e)){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=function(e){if("string"===typeof e)return(0,ro.fromUtf8)(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(e)}(e),n=0,i=t.byteLength;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,t[n++]),i--,this.bufferLength===oo&&(this.hashBuffer(),this.bufferLength=0)}},e.prototype.digest=function(){return(0,Ji.__awaiter)(this,void 0,void 0,(function(){var e,t,n,i,r,o,s;return(0,Ji.__generator)(this,(function(a){if(!this.finished){if(t=(e=this).buffer,n=e.bufferLength,i=e.bytesHashed,r=8*i,t.setUint8(this.bufferLength++,128),n%oo>=56){for(s=this.bufferLength;s<oo;s++)t.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(s=this.bufferLength;s<56;s++)t.setUint8(s,0);t.setUint32(56,r>>>0,!0),t.setUint32(60,Math.floor(r/4294967296),!0),this.hashBuffer(),this.finished=!0}for(o=new DataView(new ArrayBuffer(16)),s=0;s<4;s++)o.setUint32(4*s,this.state[s],!0);return[2,new Uint8Array(o.buffer,o.byteOffset,o.byteLength)]}))}))},e.prototype.hashBuffer=function(){var e=this.buffer,t=this.state,n=t[0],i=t[1],r=t[2],o=t[3];n=co(n,i,r,o,e.getUint32(0,!0),7,3614090360),o=co(o,n,i,r,e.getUint32(4,!0),12,3905402710),r=co(r,o,n,i,e.getUint32(8,!0),17,606105819),i=co(i,r,o,n,e.getUint32(12,!0),22,3250441966),n=co(n,i,r,o,e.getUint32(16,!0),7,4118548399),o=co(o,n,i,r,e.getUint32(20,!0),12,1200080426),r=co(r,o,n,i,e.getUint32(24,!0),17,2821735955),i=co(i,r,o,n,e.getUint32(28,!0),22,4249261313),n=co(n,i,r,o,e.getUint32(32,!0),7,1770035416),o=co(o,n,i,r,e.getUint32(36,!0),12,2336552879),r=co(r,o,n,i,e.getUint32(40,!0),17,4294925233),i=co(i,r,o,n,e.getUint32(44,!0),22,2304563134),n=co(n,i,r,o,e.getUint32(48,!0),7,1804603682),o=co(o,n,i,r,e.getUint32(52,!0),12,4254626195),r=co(r,o,n,i,e.getUint32(56,!0),17,2792965006),n=fo(n,i=co(i,r,o,n,e.getUint32(60,!0),22,1236535329),r,o,e.getUint32(4,!0),5,4129170786),o=fo(o,n,i,r,e.getUint32(24,!0),9,3225465664),r=fo(r,o,n,i,e.getUint32(44,!0),14,643717713),i=fo(i,r,o,n,e.getUint32(0,!0),20,3921069994),n=fo(n,i,r,o,e.getUint32(20,!0),5,3593408605),o=fo(o,n,i,r,e.getUint32(40,!0),9,38016083),r=fo(r,o,n,i,e.getUint32(60,!0),14,3634488961),i=fo(i,r,o,n,e.getUint32(16,!0),20,3889429448),n=fo(n,i,r,o,e.getUint32(36,!0),5,568446438),o=fo(o,n,i,r,e.getUint32(56,!0),9,3275163606),r=fo(r,o,n,i,e.getUint32(12,!0),14,4107603335),i=fo(i,r,o,n,e.getUint32(32,!0),20,1163531501),n=fo(n,i,r,o,e.getUint32(52,!0),5,2850285829),o=fo(o,n,i,r,e.getUint32(8,!0),9,4243563512),r=fo(r,o,n,i,e.getUint32(28,!0),14,1735328473),n=lo(n,i=fo(i,r,o,n,e.getUint32(48,!0),20,2368359562),r,o,e.getUint32(20,!0),4,4294588738),o=lo(o,n,i,r,e.getUint32(32,!0),11,2272392833),r=lo(r,o,n,i,e.getUint32(44,!0),16,1839030562),i=lo(i,r,o,n,e.getUint32(56,!0),23,4259657740),n=lo(n,i,r,o,e.getUint32(4,!0),4,2763975236),o=lo(o,n,i,r,e.getUint32(16,!0),11,1272893353),r=lo(r,o,n,i,e.getUint32(28,!0),16,4139469664),i=lo(i,r,o,n,e.getUint32(40,!0),23,3200236656),n=lo(n,i,r,o,e.getUint32(52,!0),4,681279174),o=lo(o,n,i,r,e.getUint32(0,!0),11,3936430074),r=lo(r,o,n,i,e.getUint32(12,!0),16,3572445317),i=lo(i,r,o,n,e.getUint32(24,!0),23,76029189),n=lo(n,i,r,o,e.getUint32(36,!0),4,3654602809),o=lo(o,n,i,r,e.getUint32(48,!0),11,3873151461),r=lo(r,o,n,i,e.getUint32(60,!0),16,530742520),n=p
1o(n,i=lo(i,r,o,n,e.getUint32(8,!0),23,3299628645),r,o,e.getUint32(0,!0),6,4096336452),o=po(o,n,i,r,e.getUint32(28,!0),10,1126891415),r=po(r,o,n,i,e.getUint32(56,!0),15,2878612391),i=po(i,r,o,n,e.getUint32(20,!0),21,4237533241),n=po(n,i,r,o,e.getUint32(48,!0),6,1700485571),o=po(o,n,i,r,e.getUint32(12,!0),10,2399980690),r=po(r,o,n,i,e.getUint32(40,!0),15,4293915773),i=po(i,r,o,n,e.getUint32(4,!0),21,2240044497),n=po(n,i,r,o,e.getUint32(32,!0),6,1873313359),o=po(o,n,i,r,e.getUint32(60,!0),10,4264355552),r=po(r,o,n,i,e.getUint32(24,!0),15,2734768916),i=po(i,r,o,n,e.getUint32(52,!0),21,1309151649),n=po(n,i,r,o,e.getUint32(16,!0),6,4149444226),o=po(o,n,i,r,e.getUint32(44,!0),10,3174756917),r=po(r,o,n,i,e.getUint32(8,!0),15,718787259),i=po(i,r,o,n,e.getUint32(36,!0),21,3951481745),t[0]=n+t[0]&4294967295,t[1]=i+t[1]&4294967295,t[2]=r+t[2]&4294967295,t[3]=o+t[3]&4294967295},e}();function uo(e,t,n,i,r,o){return((t=(t+e&4294967295)+(i+o&4294967295)&4294967295)<<r|t>>>32-r)+n&4294967295}function co(e,t,n,i,r,o,s){return uo(t&n|~t&i,e,t,r,o,s)}function fo(e,t,n,i,r,o,s){return uo(t&i|n&~i,e,t,r,o,s)}function lo(e,t,n,i,r,o,s){return uo(t^n^i,e,t,r,o,s)}function po(e,t,n,i,r,o,s){return uo(n^(t|~i),e,t,r,o,s)}var ho=n(97845),go=n(67157),vo=n(22795),mo=n(85731),So="s3.{region}.amazonaws.com",yo=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-south-1","ap-southeast-1","ap-southeast-2","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"]),bo=new Set(["cn-north-1","cn-northwest-1"]),wo=new Set(["us-iso-east-1"]),_o=new Set(["us-isob-east-1"]),Lo=new Set(["us-gov-east-1","us-gov-west-1"]),Eo={apiVersion:"2006-03-01",disableHostPrefix:!1,logger:{},regionInfoProvider:function(e,t){var n=void 0;switch(e){case"af-south-1":n={hostname:"s3.af-south-1.amazonaws.com",partition:"aws"};break;case"ap-east-1":n={hostname:"s3.ap-east-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-1":n={hostname:"s3.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"s3.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"s3.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"s3.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"s3.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"aws-global":n={hostname:"s3.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"ca-central-1":n={hostname:"s3.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":n={hostname:"s3.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"cn-northwest-1":n={hostname:"s3.cn-northwest-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"s3.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"s3.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-south-1":n={hostname:"s3.eu-south-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"s3.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"s3.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"s3.eu-west-3.amazonaws.com",partition:"aws"};break;case"fips-us-gov-west-1":n={hostname:"s3-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"me-south-1":n={hostname:"s3.me-south-1.amazonaws.com",partition:"aws"};break;case"s3-external-1":n={hostname:"s3-external-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"sa-east-1":n={hostname:"s3.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"s3.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":n={hostname:"s3.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-east-1":n={hostname:"s3.us-gov-east-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-west-1":n={hostname:"s3.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-iso-east-1":n={hostname:"s3.us-iso-east-1.c2s.ic.gov",partition:"aws-iso"};break;case"us-isob-east-1":n={hostname:"s3.us-isob-east-1.sc2s.sgov.gov",partition:"aws-iso-b"};break;case"us-west-1":n={hostname:"s3.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":n={hostname:"s3.us-west-2.amazonaws.com",partition:"aws"};break;default:yo.has(e)&&(n={hostname:So.replace("{region}",e),partition:"aws"}),bo.has(e)&&(n={hostname:"s3.{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-cn"}),wo.has(e)&&(n={hostname:"s3.{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-iso"}),_o.has(e)&&(n={hostname:"s3.{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-b"}),Lo.has(e)&&(n={hostname:"s3.{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void 0===n&&(n={hostname:So.replace("{region}",e),partition:"aws"})}return Promise.resolve((0,Yi.pi)({signingService:"s3"},n))},serviceId:"S3",signingEscapePath:!1,urlParser:n(31823).e,useArnRegion:!1},Co=(0,Yi.pi)((0,Yi.pi)({},Eo),{runtime:"browser",base64Decoder:go.G,base64Encoder:go.s,bodyLengthChecker:vo.W,credentialDefaultProvider:function(e){return function(){return Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:(0,mo.f)({serviceId:Eo.serviceId,clientVersion:"3.6.1"}),eventStreamSerdeProvider:function(e){return new Qr(e)},maxAttempts:ho.J,md5:ao,region:(0,io.n)("Region is missing"),requestHandler:new to.B,sha256:Mr.Sha256,streamCollector:to.C,streamHasher:function(e,t){return(0,Ji.__awaiter)(this,void 0,void 0,(function(){var n;return(0,Ji.__generator)(this,(function(i){switch(i.label){case 0:return n=new e,[4,no(t,(function(e){n.update(e)}))];case 1:return i.sent(),[2,n.digest()]}}))}))},utf8Decoder:ro.fromUtf8,utf8Encoder:ro.toUtf8}),No=n(80428),ko=n(50672);var xo={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},Ao=function(e){return{applyToStack:function(t){t.add(function(e){var t=this;return function(n){return function(i){return(0,Ji.__awaiter)(t,void 0,void 0,(function(){var t;return(0,Ji.__generator)(this,(function(r){return t=i.request,Qi.aW.isInstance(t)&&t.body&&"node"===e.runtime&&(t.headers=(0,Ji.__assign)((0,Ji.__assign)({},t.headers),{Expect:"100-continue"})),[2,n((0,Ji.__assign)((0,Ji.__assign)({},i),{request:t}))]}))}))}}}(e),xo)}}},Po=n(43273),To=n(70287),Oo=n(31868),Uo=n(56380),Mo=function(e){function t(t){var n,i=this,r=(0,Yi.pi)((0,Yi.pi)({},Co),t),o=(0,No.Xb)(r),s=(0,No.g4)(o),a=(0,Oo.A$)(s),u=(0,ho.BC)(a),c=function(e){var t=e.bucketEndpoint,n=void 0!==t&&t,i=e.forcePathStyle,r=void 0!==i&&i,o=e.useAccelerateEndpoint,s=void 0!==o&&o,a=e.useDualstackEndpoint,u=void 0!==a&&a,c=e.useArnRegion,f=void 0!==c&&c;return(0,Ji.__assign)((0,Ji.__assign)({},e),{bucketEndpoint:n,forcePathStyle:r,useAccelerateEndpoint:s,useDualstackEndpoint:u,useArnRegion:"function"===typeof f?f:function(){return Promise.resolve(f)}})}((0,Po.S8)(u)),f=(0,Uo.er)(c),l=(n=f,(0,Ji.__assign)((0,Ji.__assign)({},n),{eventStreamMarshaller:n.eventStreamSerdeProvider(n)}));return(i=e.call(this,l)||this).config=l,i.middlewareStack.use((0,Oo.yt)(i.config)),i.middlewareStack.use((0,ho.NQ)(i.config)),i.middlewareStack.use((0,ko.VG)(i.config)),i.middlewareStack.use((0,Po.G2)(i.config)),i.middlewareStack.use((0,To.cV)(i.config)),i.middlewareStack.use(br(i.config)),i.middlewareStack.use(_r(i.config)),i.middlewareStack.use(Ao(i.config)),i.middlewareStack.use((0,Uo.XJ)(i.config)),i}return(0,Yi.ZT)(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Gi.KU),Io=n(39444);function Ro(e){var t=e.port,n=e.query,i=e.protocol,r=e.path,o=e.hostname;i&&":"!==i.substr(-1)&&(i+=":"),t&&(o+=":"+t),r&&"/"!==r.charAt(0)&&(r="/"+r);var s=n?(0,Io.I)(n):"";return s&&"?"!==s[0]&&(s="?"+s),i+"//"+o+r+s}function jo(e,t){return(0,Ji.__awaiter)(this,void 0,void 0,(function(){var n,i,r=this;return(0,Ji.__generator)(this,(function(o){switch(o.label){case 0:return n=function(e){return function(e){return(0,Ji.__awaiter)(r,void 0,void 0,(function(){return(0,Ji.__generator)(this,(function(t){return[2,{output:{request:e.request},response:void 0}]}))}))}},(i=e.middlewareStack.clone()).add(n,{step:"build",priority:"low"}),[4,t.resolveMiddleware(i,e.config,void 0)(t).then((function(e){return e.output.request}))];case 1:return[2,o.sent()]}}))}))}var Ko=n(22099),Bo=function(){function e(e){var t=(0,Ji.__assign)({service:e.signingName||e.service||"s3",uriEscapePath:e.uriEscapePath||!1},e);this.signer=new Ko.L1(t)}return e.prototype.presign=function(e,t){void 0===t&&(t={});var n=t.unsignableHeaders,i=void 0===n?new Set:n,r=t.unhoistableHeaders,o=void 0===r?new Set:r,s=(0,Ji.__rest)(t,["unsignableHeaders","unhoistableHeaders"]);return(0,Ji.__awaiter)(this,void 0,void 0,(function(){return(0,Ji.__generator)(this,(function(t){return i.add("content-type"),Object.keys(e.headers).map((function(e){return e.toLowerCase()})).filter((function(e){return e.startsWith("x-amz-server-side-encryption")}
1)).forEach((function(e){o.add(e)})),e.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",e.headers.host||(e.headers.host=e.hostname),[2,this.signer.presign(e,(0,Ji.__assign)({expiresIn:900,unsignableHeaders:i,unhoistableHeaders:o},s))]}))}))},e}(),Do=n(11964),zo=n.n(Do),Fo=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},qo=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Vo=new Bi.k("axios-http-handler"),Ho="sendUploadProgress",Wo="sendDownloadProgress";var Xo,$o,Yo=function(e,t){var n,i;try{for(var r=Fo(Object.entries(e)),o=r.next();!o.done;o=r.next()){var s=qo(o.value,2),a=s[0],u=s[1];a!==t&&a.toUpperCase()===t.toUpperCase()&&(e[t]=u,delete e[a])}}catch(c){n={error:c}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},Go=[function(e,t){return n=e,"undefined"!==typeof Blob&&n instanceof Blob?(Yo(t,"Content-Type"),Yo(t,"Accept"),e):zo().defaults.transformRequest[0].call(null,e,t);var n}],Zo=function(){function e(e,t,n){void 0===e&&(e={}),this.httpOptions=e,this.emitter=t,this.cancelTokenSource=n}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=this.httpOptions.requestTimeout,i=this.emitter,r=e.path;if(e.query){var o=(0,Io.I)(e.query);o&&(r+="?"+o)}var s=e.port,a=e.protocol+"//"+e.hostname+(s?":"+s:"")+r,u={};u.url=a,u.method=e.method,u.headers=e.headers,delete u.headers.host,e.body?u.data=e.body:u.headers["Content-Type"]&&(u.data=null),i&&(u.onUploadProgress=function(e){i.emit(Ho,e),Vo.debug(e)},u.onDownloadProgress=function(e){i.emit(Wo,e),Vo.debug(e)}),this.cancelTokenSource&&(u.cancelToken=this.cancelTokenSource.token),u.responseType="blob",$i.t4.isReactNative&&(u.transformRequest=Go);var c=[zo().request(u).then((function(e){return{response:new Qi.Zn({headers:e.headers,statusCode:e.status,body:e.data})}})).catch((function(e){throw Vo.error(e.message),e})),Jo(n)];return Promise.race(c)},e}();function Jo(e){return void 0===e&&(e=0),new Promise((function(t,n){e&&setTimeout((function(){var t=new Error("Request did not complete within "+e+" ms");t.name="TimeoutError",n(t)}),e)}))}!function(e){e.NO_CREDENTIALS="No credentials",e.NO_SRC_KEY='source param should be an object with the property "key" with value of type string',e.NO_DEST_KEY='destination param should be an object with the property "key" with value of type string'}(Xo||(Xo={})),function(e){e.CLEANUP_FAILED="Multipart copy clean up failed",e.NO_OBJECT_FOUND="Object does not exist",e.INVALID_QUEUESIZE="Queue size must be a positive number",e.NO_COPYSOURCE="You must specify a copy source",e.MAX_NUM_PARTS_EXCEEDED="Only a maximum of 10000 parts are allowed"}($o||($o={}));var Qo,es,ts,ns,is,rs,os,ss,as,us,cs,fs,ls,ps,ds,hs,gs,vs,ms,Ss,ys,bs,ws,_s,Ls,Es,Cs,Ns,ks,xs,As,Ps,Ts,Os,Us=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Yi.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,kr.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Ar(t)),this.middlewareStack.use(Sr(t));var i=e.concat(this.middlewareStack),r={logger:t.logger,clientName:"S3Client",commandName:"PutObjectCommand",inputFilterSensitiveLog:Li.filterSensitiveLog,outputFilterSensitiveLog:_i.filterSensitiveLog},o=t.requestHandler;return i.resolve((function(e){return o.handle(e.request,n||{})}),r)},t.prototype.serialize=function(e,t){return(0,Zi.gYi)(e,t)},t.prototype.deserialize=function(e,t){return(0,Zi.iIy)(e,t)},t}(Gi.mY),Ms=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Yi.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,kr.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Ar(t)),this.middlewareStack.use(Sr(t));var i=e.concat(this.middlewareStack),r={logger:t.logger,clientName:"S3Client",commandName:"CreateMultipartUploadCommand",inputFilterSensitiveLog:k.filterSensitiveLog,outputFilterSensitiveLog:N.filterSensitiveLog},o=t.requestHandler;return i.resolve((function(e){return o.handle(e.request,n||{})}),r)},t.prototype.serialize=function(e,t){return(0,Zi.jPT)(e,t)},t.prototype.deserialize=function(e,t){return(0,Zi.rVu)(e,t)},t}(Gi.mY);!function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Qo||(Qo={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.Encryption&&{Encryption:Ki.filterSensitiveLog(e.Encryption)})}}(es||(es={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.S3&&{S3:es.filterSensitiveLog(e.S3)})}}(ts||(ts={})),function(e){e.IGNORE="IGNORE",e.NONE="NONE",e.USE="USE"}(ns||(ns={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(is||(is={})),function(e){e.DOCUMENT="DOCUMENT",e.LINES="LINES"}(rs||(rs={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(os||(os={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ss||(ss={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(as||(as={})),function(e){e.ALWAYS="ALWAYS",e.ASNEEDED="ASNEEDED"}(us||(us={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(cs||(cs={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(fs||(fs={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ls||(ls={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ps||(ps={})),function(e){e.SELECT="SELECT"}(ds||(ds={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.OutputLocation&&{OutputLocation:ts.filterSensitiveLog(e.OutputLocation)})}}(hs||(hs={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.RestoreRequest&&{RestoreRequest:hs.filterSensitiveLog(e.RestoreRequest)})}}(gs||(gs={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(vs||(vs={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ms||(ms={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ss||(Ss={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ys||(ys={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(bs||(bs={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(ws||(ws={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(_s||(_s={})),function(e){e.visit=function(e,t){return void 0!==e.Records?t.Records(e.Records):void 0!==e.Stats?t.Stats(e.Stats):void 0!==e.Progress?t.Progress(e.Progress):void 0!==e.Cont?t.Cont(e.Cont):void 0!==e.End?t.End(e.End):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Records?{Records:bs.filterSensitiveLog(e.Records)}:void 0!==e.Stats?{Stats:_s.filterSensitiveLog(e.Stats)}:void 0!==e.Progress?{Progress:ys.filterSensitiveLog(e.Progress)}:void 0!==e.Cont?{Cont:vs.filterSensitiveLog(e.Cont)}:void 0!==e.End?{End:ms.filterSensitiveLog(e.End)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(Ls||(Ls={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.Payload&&{Payload:"STREAMING_CONTENT"})}}(Es||(Es={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Cs||(Cs={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ns||(Ns={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:Gi.oc})}}(ks||(ks={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Gi.oc})}}(xs||(xs={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:Gi.oc})}}(As||(As={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)({},e)}}(Ps||(Ps={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Gi.oc})}}(Ts||(Ts={})),function(e){e.filterSensitiveLog=function(e){return(0,Yi.pi)((0,Yi.pi)((0,Yi.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:Gi.oc}),e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Gi.oc})}}(Os||(Os={}));var Is=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Yi.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,kr.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Ar(t)),this.middlewareStack.use(Sr(t));var i=e.concat(this.middlewareStack),r={logger:t.logger,clientName:"S3Client",commandName:"UploadPartCommand",inputFilterSensitiveLog:As.filterSensitiveLog,outputFilterSensitiveLog:xs.filterSensitiveLog},o=t.requestHandler;return i.resolve((function(e){return o.handle(e.request,n||{})}),r)},t.prototype.serialize=function(e,t){return(0,Zi.t82)(e,t)},t.prototype.deserialize=function(e,t){return(0,Zi.R7p)(e,t)},t}(Gi.mY),Rs=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Yi.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,kr.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Nr(t)),this.middlewareStack.use(Sr(t));var i=e.concat(this.middlewareStack),r={logger:t.logger,clientName:"S3Client",commandName:"CompleteMultipartUploadCommand",inputFilterSensitiveLog:v.filterSensitiveLog,outputFilterSensitiveLog:d.filterSensitiveLog},o=t.requestHandler;return i.resolve((function(e){return o.handle(e.request,n||{})}),r)},t.prototype.serialize=function(e,t){return(0,Zi.l7b)(e,t)},t.prototype.deserialize=function(e,t){return(0,Zi.W5_)(e,t)},t}(Gi.mY),js=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Yi.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,kr.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Sr(t));var i=e.concat(this.middlewareStack),s={logger:t.logger,clientName:"S3Client",commandName:"AbortMultipartUploadCommand",inputFilterSensitiveLog:o.filterSensitiveLog,outputFilterSensitiveLog:r.filterSensitiveLog},a=t.requestHandler;return i.resolve((function(e){return a.handle(e.request,n||{})}),s)},t.prototype.serialize=function(e,t){return(0,Zi.CEs)(e,t)},t.prototype.deserialize=function(e,t){return(0,Zi.WqK)(e,t)},t}(Gi.mY),Ks=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Yi.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,kr.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Sr(t));var i=e.concat(this.middlewareStack),r={logger:t.logger,clientName:"S3Client",commandName:"ListPartsCommand",inputFilterSensitiveLog:Gn.filterSensitiveLog,outputFilterSensitiveLog:Yn.filterSensitiveLog},o=t.requestHandler;return i.resolve((function(e){return o.handle(e.request,n||{})}),r)},t.prototype.serialize=function(e,t){return(0,Zi.DEn)(e,t)},t.prototype.deserialize=function(e,t){return(0,Zi.Y6h)(e,t)},t}(Gi.mY),Bs=n(17187),Ds=function(){return Ds=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ds.apply(this,arguments)}
1,zs=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((i=i.apply(e,t||[])).next())}))},Fs=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},qs=new Bi.k("AWSS3ProviderManagedUpload"),Vs=function(){function e(e,t,n){this.minPartSize=5242880,this.queueSize=4,this.body=null,this.params=null,this.opts=null,this.completedParts=[],this.cancel=!1,this.bytesUploaded=0,this.totalBytesToUpload=0,this.emitter=null,this.params=e,this.opts=t,this.emitter=n}return e.prototype.upload=function(){return zs(this,void 0,void 0,(function(){var e,t,n,i,r,o,s=this;return Fs(this,(function(a){switch(a.label){case 0:return e=this,[4,this.validateAndSanitizeBody(this.params.Body)];case 1:return e.body=a.sent(),this.totalBytesToUpload=this.byteLength(this.body),this.totalBytesToUpload<=this.minPartSize?(this.params.Body=this.body,t=new Us(this.params),[4,this._createNewS3Client(this.opts,this.emitter)]):[3,3];case 2:return[2,a.sent().send(t)];case 3:return[4,this.createMultiPartUpload()];case 4:n=a.sent(),i=Math.ceil(this.totalBytesToUpload/this.minPartSize),r=this.createParts(),o=0,a.label=5;case 5:return o<i?[4,this.checkIfUploadCancelled(n)]:[3,10];case 6:return a.sent(),[4,this.uploadParts(n,r.slice(o,o+this.queueSize))];case 7:return a.sent(),[4,this.checkIfUploadCancelled(n)];case 8:a.sent(),a.label=9;case 9:return o+=this.queueSize,[3,5];case 10:return r.map((function(e){s.removeEventListener(e)})),[4,this.finishMultiPartUpload(n)];case 11:return[2,a.sent()]}}))}))},e.prototype.createParts=function(){for(var e=[],t=0;t<this.totalBytesToUpload;){var n=Math.min(t+this.minPartSize,this.totalBytesToUpload);e.push({bodyPart:this.body.slice(t,n),partNumber:e.length+1,emitter:new Bs.EventEmitter,_lastUploadedBytes:0}),t+=this.minPartSize}return e},e.prototype.createMultiPartUpload=function(){return zs(this,void 0,void 0,(function(){var e,t,n,i=this;return Fs(this,(function(r){switch(r.label){case 0:return e=new Ms(this.params),[4,this._createNewS3Client(this.opts)];case 1:return(t=r.sent()).middlewareStack.add((function(e){return function(t){return i.params.ContentType&&t&&t.request&&t.request.headers&&(t.request.headers["Content-Type"]=i.params.ContentType),e(t)}}),{step:"build"}),[4,t.send(e)];case 2:return n=r.sent(),qs.debug(n.UploadId),[2,n.UploadId]}}))}))},e.prototype.uploadParts=function(e,t){return zs(this,void 0,void 0,(function(){var n,i,r,o=this;return Fs(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,Promise.all(t.map((function(t){return zs(o,void 0,void 0,(function(){var n,i,r,o,s,a,u;return Fs(this,(function(c){switch(c.label){case 0:return this.setupEventListener(t),[4,this._createNewS3Client(this.opts,t.emitter)];case 1:return n=c.sent(),i=this.params,r=i.Key,o=i.Bucket,s=i.SSECustomerAlgorithm,a=i.SSECustomerKey,u=i.SSECustomerKeyMD5,[2,n.send(new Is(Ds(Ds(Ds({PartNumber:t.partNumber,Body:t.bodyPart,UploadId:e,Key:r,Bucket:o},s&&{SSECustomerAlgorithm:s}
1),a&&{SSECustomerKey:a}),u&&{SSECustomerKeyMD5:u})))]}}))}))})))];case 1:for(n=s.sent(),i=0;i<n.length;i++)this.completedParts.push({PartNumber:t[i].partNumber,ETag:n[i].ETag});return[3,3];case 2:return r=s.sent(),qs.error("error happened while uploading a part. Cancelling the multipart upload",r),this.cancelUpload(),[2];case 3:return[2]}}))}))},e.prototype.finishMultiPartUpload=function(e){return zs(this,void 0,void 0,(function(){var t,n,i,r;return Fs(this,(function(o){switch(o.label){case 0:return t={Bucket:this.params.Bucket,Key:this.params.Key,UploadId:e,MultipartUpload:{Parts:this.completedParts}},n=new Rs(t),[4,this._createNewS3Client(this.opts)];case 1:i=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,i.send(n)];case 3:return[2,o.sent().Key];case 4:return r=o.sent(),qs.error("error happened while finishing the upload. Cancelling the multipart upload",r),this.cancelUpload(),[2];case 5:return[2]}}))}))},e.prototype.checkIfUploadCancelled=function(e){return zs(this,void 0,void 0,(function(){var t,n;return Fs(this,(function(i){switch(i.label){case 0:if(!this.cancel)return[3,5];t="Upload was cancelled.",i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.cleanup(e)];case 2:return i.sent(),[3,4];case 3:return n=i.sent(),t+=" "+n.message,[3,4];case 4:throw new Error(t);case 5:return[2]}}
1))}))},e.prototype.cancelUpload=function(){this.cancel=!0},e.prototype.cleanup=function(e){return zs(this,void 0,void 0,(function(){var t,n,i;return Fs(this,(function(r){switch(r.label){case 0:return this.body=null,this.completedParts=[],this.bytesUploaded=0,this.totalBytesToUpload=0,t={Bucket:this.params.Bucket,Key:this.params.Key,UploadId:e},[4,this._createNewS3Client(this.opts)];case 1:return[4,(n=r.sent()).send(new js(t))];case 2:return r.sent(),[4,n.send(new Ks(t))];case 3:if((i=r.sent())&&i.Parts&&i.Parts.length>0)throw new Error("Multi Part upload clean up failed");return[2]}}))}))},e.prototype.removeEventListener=function(e){e.emitter.removeAllListeners(Ho),e.emitter.removeAllListeners(Wo)},e.prototype.setupEventListener=function(e){var t=this;e.emitter.on(Ho,(function(n){t.progressChanged(e.partNumber,n.loaded-e._lastUploadedBytes),e._lastUploadedBytes=n.loaded}))},e.prototype.progressChanged=function(e,t){this.bytesUploaded+=t,this.emitter.emit(Ho,{loaded:this.bytesUploaded,total:this.totalBytesToUpload,part:e,key:this.params.Key})},e.prototype.byteLength=function(e){if(null===e||void 0===e)return 0;if("number"===typeof e.byteLength)return e.byteLength;if("number"===typeof e.length)return e.length;if("number"===typeof e.size)return e.size;if("string"!==typeof e.path)throw new Error("Cannot determine length of "+e)},e.prototype.validateAndSanitizeBody=function(e){return zs(this,void 0,void 0,(function(){return Fs(this,(function(t){return this.isGenericObject(e)?[2,JSON.stringify(e)]:[2,e]}))}))},e.prototype.isGenericObject=function(e){if(null!==e&&"object"===typeof e)try{return!(this.byteLength(e)>=0)}catch(t){return!0}return!1},e.prototype._createNewS3Client=function(e,t){return zs(this,void 0,void 0,(function(){var n,i,r,o,s,a,u;return Fs(this,(function(c){switch(c.label){case 0:return[4,this._getCredentials()];case 1:return n=c.sent(),i=e.region,r=e.dangerouslyConnectToHttpEndpointForTesting,o=e.cancelTokenSource,s=e.useAccelerateEndpoint,a={},r&&(a={endpoint:"http://localhost:20005",tls:!1,bucketEndpoint:!1,forcePathStyle:!0}),(u=new Mo(Ds(Ds({region:i,credentials:n,useAccelerateEndpoint:s},a),{requestHandler:new Zo({},t,o),customUserAgent:(0,$i.Zm)()}))).middlewareStack.remove("contentLengthMiddleware"),[2,u]}}))}))},e.prototype._getCredentials=function(){return Xi.cN.get().then((function(e){if(!e)return!1;var t=Xi.cN.shear(e);return qs.debug("set credentials for storage",t),t})).catch((function(e){return qs.warn("ensure credentials error",e),!1}))},e}(),Hs=function(){return Hs=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Hs.apply(this,arguments)},Ws=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((i=i.apply(e,t||[])).next())}))},Xs=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},$s=new Bi.k("AWSS3Provider"),Ys="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Gs="public",Zs=function(e,t,n,i,r){if(e){var o={attrs:n};i&&(o.metrics=i),Wi.Xb.dispatch("storage",{event:t,data:o,message:r},"Storage",Ys)}},Js=function(){function e(e){this._config=e||{},$s.debug("Storage Options",this._config)}return e.prototype.getCategory=function(){return e.CATEGORY},e.prototype.getProviderName=function(){return e.PROVIDER_NAME},e.prototype.configure=function(e){if($s.debug("configure Storage",e),!e)return this._config;var t=Hi._b.parseMobilehubConfig(e);return this._config=Object.assign({}
1,this._config,t.Storage),this._config.bucket||$s.debug("Do not have bucket yet"),this._config},e.prototype.copy=function(e,t,n){return Ws(this,void 0,void 0,(function(){var i,r,o,s,a,u,c,f,l,p,d,h,g,v,m,S,y,b,w,_,L,E,C,N,k;return Xs(this,(function(x){switch(x.label){case 0:return[4,this._ensureCredentials()];case 1:if(!x.sent()||!this._isWithCredentials(this._config))throw new Error(Xo.NO_CREDENTIALS);if(i=Object.assign({},this._config,n),r=i.acl,o=i.bucket,s=i.cacheControl,a=i.expires,u=i.track,c=i.serverSideEncryption,f=i.SSECustomerAlgorithm,l=i.SSECustomerKey,p=i.SSECustomerKeyMD5,d=i.SSEKMSKeyId,h=e.level,g=void 0===h?Gs:h,v=e.identityId,m=e.key,S=t.level,y=void 0===S?Gs:S,b=t.key,!m||"string"!==typeof m)throw new Error(Xo.NO_SRC_KEY);if(!b||"string"!==typeof b)throw new Error(Xo.NO_DEST_KEY);"protected"!==g&&v&&$s.warn('You may copy files from another user if the source level is "protected", currently it\'s '+g),w=this._prefix(Hs(Hs(Hs({},i),{level:g}),v&&{identityId:v})),_=this._prefix(Hs(Hs({},i),{level:y})),L=o+"/"+w+m,E=""+_+b,$s.debug("copying "+L+" to "+E),C={Bucket:o,CopySource:L,Key:E,MetadataDirective:"COPY"},s&&(C.CacheControl=s),a&&(C.Expires=a),c&&(C.ServerSideEncryption=c),f&&(C.SSECustomerAlgorithm=f),l&&(C.SSECustomerKey=l),p&&(C.SSECustomerKeyMD5=p),d&&(C.SSEKMSKeyId=d),r&&(C.ACL=r),(N=this._createNewS3Client(i)).middlewareStack.remove("contentLengthMiddleware"),x.label=2;case 2:return x.trys.push([2,4,,5]),[4,N.send(new Pr(C))];case 3:return x.sent(),Zs(u,"copy",{method:"copy",result:"success"},null,"Copy success from "+m+" to "+b),[2,{key:b}];case 4:throw k=x.sent(),Zs(u,"copy",{method:"copy",result:"failed"},null,"Copy failed from "+m+" to "+b),k;case 5:return[2]}}
1))}))},e.prototype.get=function(e,t){return Ws(this,void 0,void 0,(function(){var n,i,r,o,s,a,u,c,f,l,p,d,h,g,v,m,S,y,b,w,_,L,E,C,N,k,x;return Xs(this,(function(A){switch(A.label){case 0:return[4,this._ensureCredentials()];case 1:if(!A.sent()||!this._isWithCredentials(this._config))throw new Error(Xo.NO_CREDENTIALS);if(n=Object.assign({},this._config,t),i=n.bucket,r=n.download,o=n.cacheControl,s=n.contentDisposition,a=n.contentEncoding,u=n.contentLanguage,c=n.contentType,f=n.expires,l=n.track,p=n.SSECustomerAlgorithm,d=n.SSECustomerKey,h=n.SSECustomerKeyMD5,g=n.progressCallback,v=this._prefix(n),m=v+e,S=new Bs.EventEmitter,y=this._createNewS3Client(n,S),$s.debug("get "+e+" from "+m),b={Bucket:i,Key:m},o&&(b.ResponseCacheControl=o),s&&(b.ResponseContentDisposition=s),a&&(b.ResponseContentEncoding=a),u&&(b.ResponseContentLanguage=u),c&&(b.ResponseContentType=c),p&&(b.SSECustomerAlgorithm=p),d&&(b.SSECustomerKey=d),h&&(b.SSECustomerKeyMD5=h),!0!==r)return[3,5];w=new Tr(b),A.label=2;case 2:return A.trys.push([2,4,,5]),g&&("function"===typeof g?S.on(Wo,(function(e){g(e)})):$s.warn("progressCallback should be a function, not a "+typeof g)),[4,y.send(w)];case 3:return _=A.sent(),S.removeAllListeners(Wo),Zs(l,"download",{method:"get",result:"success"},{fileSize:Number(_.Body.size||_.Body.length)},"Download success for "+e),[2,_];case 4:throw L=A.sent(),Zs(l,"download",{method:"get",result:"failed"},null,"Download failed with "+L.message),L;case 5:return A.trys.push([5,8,,9]),E=new Bo(Hs({},y.config)),[4,jo(y,new Tr(b))];case 6:return C=A.sent(),k=Ro,[4,E.presign(C,{expiresIn:f||900})];case 7:return N=k.apply(void 0,[A.sent()]),Zs(l,"getSignedUrl",{method:"get",result:"success"},null,"Signed URL: "+N),[2,N];case 8:throw x=A.sent(),$s.warn("get signed url error",x),Zs(l,"getSignedUrl",{method:"get",result:"failed"},null,"Could not get a signed URL for "+e),x;case 9:return[2]}}
1))}))},e.prototype.put=function(e,t,n){return Ws(this,void 0,void 0,(function(){var i,r,o,s,a,u,c,f,l,p,d,h,g,v,m,S,y,b,w,_,L,E,C,N,k;return Xs(this,(function(x){switch(x.label){case 0:return[4,this._ensureCredentials()];case 1:if(!x.sent()||!this._isWithCredentials(this._config))throw new Error(Xo.NO_CREDENTIALS);i=Object.assign({},this._config,n),r=i.bucket,o=i.track,s=i.progressCallback,a=i.contentType,u=i.contentDisposition,c=i.contentEncoding,f=i.cacheControl,l=i.expires,p=i.metadata,d=i.tagging,h=i.acl,g=i.serverSideEncryption,v=i.SSECustomerAlgorithm,m=i.SSECustomerKey,S=i.SSECustomerKeyMD5,y=i.SSEKMSKeyId,b=a||"binary/octet-stream",w=this._prefix(i),_=w+e,$s.debug("put "+e+" to "+_),L={Bucket:r,Key:_,Body:t,ContentType:b},f&&(L.CacheControl=f),u&&(L.ContentDisposition=u),c&&(L.ContentEncoding=c),l&&(L.Expires=l),p&&(L.Metadata=p),d&&(L.Tagging=d),g&&(L.ServerSideEncryption=g),v&&(L.SSECustomerAlgorithm=v),m&&(L.SSECustomerKey=m),S&&(L.SSECustomerKeyMD5=S),y&&(L.SSEKMSKeyId=y),E=new Bs.EventEmitter,C=new Vs(L,i,E),h&&(L.ACL=h),x.label=2;case 2:return x.trys.push([2,4,,5]),s&&("function"===typeof s?E.on(Ho,(function(e){s(e)})):$s.warn("progressCallback should be a function, not a "+typeof s)),[4,C.upload()];case 3:return N=x.sent(),$s.debug("upload result",N),Zs(o,"upload",{method:"put",result:"success"},null,"Upload success for "+e),[2,{key:e}];case 4:throw k=x.sent(),$s.warn("error uploading",k),Zs(o,"upload",{method:"put",result:"failed"},null,"Error uploading "+e),k;case 5:return[2]}}
1))}))},e.prototype.remove=function(e,t){return Ws(this,void 0,void 0,(function(){var n,i,r,o,s,a,u,c,f;return Xs(this,(function(l){switch(l.label){case 0:return[4,this._ensureCredentials()];case 1:if(!l.sent()||!this._isWithCredentials(this._config))throw new Error(Xo.NO_CREDENTIALS);n=Object.assign({},this._config,t),i=n.bucket,r=n.track,o=this._prefix(n),s=o+e,a=this._createNewS3Client(n),$s.debug("remove "+e+" from "+s),u=new Or({Bucket:i,Key:s}),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,a.send(u)];case 3:return c=l.sent(),Zs(r,"delete",{method:"remove",result:"success"},null,"Deleted "+e+" successfully"),[2,c];case 4:throw f=l.sent(),Zs(r,"delete",{method:"remove",result:"failed"},null,"Deletion of "+e+" failed with "+f),f;case 5:return[2]}}))}))},e.prototype.list=function(e,t){return Ws(this,void 0,void 0,(function(){var n,i,r,o,s,a,u,c,f,l,p;return Xs(this,(function(d){switch(d.label){case 0:return[4,this._ensureCredentials()];case 1:if(!d.sent()||!this._isWithCredentials(this._config))throw new Error(Xo.NO_CREDENTIALS);n=Object.assign({},this._config,t),i=n.bucket,r=n.track,o=n.maxKeys,s=this._prefix(n),a=s+e,u=this._createNewS3Client(n),$s.debug("list "+e+" from "+a),c=new Ur({Bucket:i,Prefix:a,MaxKeys:o}),d.label=2;case 2:return d.trys.push([2,4,,5]),[4,u.send(c)];case 3:return f=d.sent(),l=[],f&&f.Contents&&(l=f.Contents.map((function(e){return{key:e.Key.substr(s.length),eTag:e.ETag,lastModified:e.LastModified,size:e.Size}}))),Zs(r,"list",{method:"list",result:"success"},null,l.length+" items returned from list operation"),$s.debug("list",l),[2,l];case 4:throw p=d.sent(),$s.warn("list error",p),Zs(r,"list",{method:"list",result:"failed"},null,"Listing items failed: "+p.message),p;case 5:return[2]}}
1))}))},e.prototype._ensureCredentials=function(){return Ws(this,void 0,void 0,(function(){var e,t,n;return Xs(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,Xi.cN.get()];case 1:return(e=i.sent())?(t=Xi.cN.shear(e),$s.debug("set credentials for storage",t),this._config.credentials=t,[2,!0]):[2,!1];case 2:return n=i.sent(),$s.warn("ensure credentials error",n),[2,!1];case 3:return[2]}}))}))},e.prototype._isWithCredentials=function(e){return"object"===typeof e&&e.hasOwnProperty("credentials")},e.prototype._prefix=function(e){var t=e.credentials,n=e.level,i=e.customPrefix||{},r=e.identityId||t.identityId,o=(void 0!==i.private?i.private:"private/")+r+"/",s=(void 0!==i.protected?i.protected:"protected/")+r+"/",a=void 0!==i.public?i.public:"public/";switch(n){case"private":return o;case"protected":return s;default:return a}},e.prototype._createNewS3Client=function(e,t){var n=e.region,i=e.credentials,r=e.cancelTokenSource,o={};return e.dangerouslyConnectToHttpEndpointForTesting&&(o={endpoint:"http://localhost:20005",tls:!1,bucketEndpoint:!1,forcePathStyle:!0}),new Mo(Hs(Hs({region:n,credentials:i,customUserAgent:(0,$i.Zm)()},o),{requestHandler:new Zo({},t,r)}))},e.CATEGORY="Storage",e.PROVIDER_NAME="AWSS3",e}(),Qs=function(){return Qs=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Qs.apply(this,arguments)},ea=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((i=i.apply(e,t||[])).next())}))},ta=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},na=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},ia=new Bi.k("StorageClass"),ra="AWSS3",oa=function(){function e(){this._config={},this._pluggables=[],this._cancelTokenSourceMap=new WeakMap,ia.debug("Storage Options",this._config),this.get=this.get.bind(this),this.put=this.put.bind(this),this.remove=this.remove.bind(this),this.list=this.list.bind(this)}return e.prototype.getModuleName=function(){return"Storage"},e.prototype.addPluggable=function(e){if(e&&"Storage"===e.getCategory()){this._pluggables.push(e);return e.configure(this._config[e.getProviderName()])}},e.prototype.getPluggable=function(e){var t=this._pluggables.find((function(t){return t.getProviderName()===e}));return void 0===t?(ia.debug("No plugin found with providerName",e),null):t},e.prototype.removePluggable=function(e){this._pluggables=this._pluggables.filter((function(t){return t.getProviderName()!==e}))},e.prototype.configure=function(e){var t=this;if(ia.debug("configure Storage"),!e)return this._config;var n=Hi._b.parseMobilehubConfig(e),i=Object.keys(n.Storage),r=["bucket","region","level","track","customPrefix","serverSideEncryption","SSECustomerAlgorithm","SSECustomerKey","SSECustomerKeyMD5","SSEKMSKeyId"],o=function(e){return r.some((function(t){return t===e}))};return i&&i.find((function(e){return o(e)}))&&!n.Storage.AWSS3&&(n.Storage.AWSS3={}),Object.entries(n.Storage).map((function(e){var t=na(e,2),i=t[0],r=t[1];i&&o(i)&&void 0!==r&&(n.Storage.AWSS3[i]=r,delete n.Storage[i])})),Object.keys(n.Storage).forEach((function(e){"string"!==typeof n.Storage[e]&&(t._config[e]=Qs(Qs({},t._config[e]),n.Storage[e]))}
1)),this._pluggables.forEach((function(e){e.configure(t._config[e.getProviderName()])})),0===this._pluggables.length&&this.addPluggable(new Js),this._config},e.prototype.getCancellableTokenSource=function(){return zo().CancelToken.source()},e.prototype.updateRequestToBeCancellable=function(e,t){this._cancelTokenSourceMap.set(e,t)},e.prototype.cancel=function(e,t){var n=this._cancelTokenSourceMap.get(e);n?n.cancel(t):ia.debug("The request does not map to any cancel token")},e.prototype.copy=function(e,t,n){var i=(n||{}).provider,r=void 0===i?ra:i,o=this._pluggables.find((function(e){return e.getProviderName()===r}));if(void 0===o)return ia.debug("No plugin found with providerName",r),Promise.reject("No plugin found in Storage for the provider");var s=this.getCancellableTokenSource(),a=o.copy(e,t,Qs(Qs({},n),{cancelTokenSource:s}));return this.updateRequestToBeCancellable(a,s),a},e.prototype.get=function(e,t){var n=(t||{}).provider,i=void 0===n?ra:n,r=this._pluggables.find((function(e){return e.getProviderName()===i}));if(void 0===r)return ia.debug("No plugin found with providerName",i),Promise.reject("No plugin found in Storage for the provider");var o=this.getCancellableTokenSource(),s=r.get(e,Qs(Qs({},t),{cancelTokenSource:o}));return this.updateRequestToBeCancellable(s,o),s},e.prototype.isCancelError=function(e){return zo().isCancel(e)},e.prototype.put=function(e,t,n){var i=(n||{}).provider,r=void 0===i?ra:i,o=this._pluggables.find((function(e){return e.getProviderName()===r}));if(void 0===o)return ia.debug("No plugin found with providerName",r),Promise.reject("No plugin found in Storage for the provider");var s=this.getCancellableTokenSource(),a=o.put(e,t,Qs(Qs({},n),{cancelTokenSource:s}));return this.updateRequestToBeCancellable(a,s),a},e.prototype.remove=function(e,t){return ea(this,void 0,void 0,(function(){var n,i,r;return ta(this,(function(o){return n=(t||{}).provider,i=void 0===n?ra:n,void 0===(r=this._pluggables.find((function(e){return e.getProviderName()===i})))?(ia.debug("No plugin found with providerName",i),[2,Promise.reject("No plugin found in Storage for the provider")]):[2,r.remove(e,t)]}))}))},e.prototype.list=function(e,t){return ea(this,void 0,void 0,(function(){var n,i,r;return ta(this,(function(o){return n=(t||{}).provider,i=void 0===n?ra:n,void 0===(r=this._pluggables.find((function(e){return e.getProviderName()===i})))?(ia.debug("No plugin found with providerName",i),[2,Promise.reject("No plugin found in Storage for the provider")]):[2,r.list(e,t)]}))}))},e}(),sa=function(){return sa=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},sa.apply(this,arguments)},aa=new Bi.k("Storage"),ua=null,ca=function(){if(ua)return ua;aa.debug("Create Storage Instance, debug"),(ua=new oa).vault=new oa;var e=ua.configure;return ua.configure=function(t){aa.debug("storage configure called");var n=sa({},e.call(ua,t));Object.keys(n).forEach((function(e){"string"!==typeof n[e]&&(n[e]=sa(sa({},n[e]),{level:"private"}))})),aa.debug("storage vault configure called"),ua.vault.configure(n)},ua}();zi.dQ.register(ca);n(55823);zi.dQ.Auth=qi.g,zi.dQ.Cache=Vi.ZP,zi.dQ.ServiceWorker=Fi;var fa=zi.dQ},17187:function(e){"use strict";var t,n="object"===typeof Reflect?Reflect:null,i=n&&"function"===typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!==e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,i){function r(n){e.removeListener(t,o),i(n)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&g(e,"error",t,n)}(e,r,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,i){var r,o,s,c;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"===typeof s?s=o[t]=i?[n,s]:[s,n]:i?s.unshift(n):s.push(n),(r=u(e))>0&&s.length>r&&!s.warned){s.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=s.length,c=f,console&&console.warn&&console.warn(c)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=f.bind(i);return r.listener=n,i.wrapFn=r,r}function p(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"===typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):h(r,r.length)}function d(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function g(e,t,n,i){if("function"===typeof e.on)i.once?e.once(t,n):e.on(t,n);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function r(o){i.once&&e.removeEventListener(t,r),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!==typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[e];if(void 0===u)return!1;if("function"===typeof u)i(u,this,t);else{var c=u.length,f=h(u,c);for(n=0;n<c;++n)i(f[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,l(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,l(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,i,r,o,s;if(a(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit
1("removeListener",e,n.listener||t));else if("function"!==typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},70259:function(e,t,n){"use strict";const i=n(17849).buildOptions,r={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:"  ",supressEmptyNode:!1,tagValueProcessor:function(e){return e},attrValueProcessor:function(e){return e}},o=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor","rootNodeName"];function s(e){this.options=i(e,r,o),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=g),this.options.cdataTagName?this.isCDATA=v:this.isCDATA=function(){return!1},this.replaceCDATAstr=u,this.replaceCDATAarr=c,this.processTextOrObjNode=a,this.options.format?(this.indentate=h,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=d,this.buildObjNode=l):(this.buildTextNode=p,this.buildObjNode=f),this.buildTextValNode=p,this.buildObjectNode=f}function a(e,t,n){const i=this.j2x(e,n+1);return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextNode(i.val,t,i.attrStr,n):this.buildObjNode(i.val,t,i.attrStr,n)}function u(e,t){return e=this.options.tagValueProcessor(""+e),""===this.options.cdataPositionChar||""===e?e+"<![CDATA["+t+"]]"+this.tagEndChar:e.replace(this.options.cdataPositionChar,"<![CDATA["+t+"]]"+this.tagEndChar)}function c(e,t){if(e=this.options.tagValueProcessor(""+e),""===this.options.cdataPositionChar||""===e)return e+"<![CDATA["+t.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let n in t)e=e.replace(this.options.cdataPositionChar,"<![CDATA["+t[n]+"]]>");return e+this.newLine}function f(e,t,n,i){return n&&-1===e.indexOf("<")?this.indentate(i)+"<"+t+n+">"+e+"</"+t+this.tagEndChar:this.indentate(i)+"<"+t+n+this.tagEndChar+e+this.indentate(i)+"</"+t+this.tagEndChar}function l(e,t,n,i){return""!==e?this.buildObjectNode(e,t,n,i):this.indentate(i)+"<"+t+n+"/"+this.tagEndChar}function p(e,t,n,i){return this.indentate(i)+"<"+t+n+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function d(e,t,n,i){return""!==e?this.buildTextValNode(e,t,n,i):this.indentate(i)+"<"+t+n+"/"+this.tagEndChar}function h(e){return this.options.indentBy.repeat(e)}function g(e){return!!e.startsWith(this.options.attributeNamePrefix)&&e.substr(this.attrPrefixLen)}function v(e){return e===this.options.cdataTagName}s.prototype.parse=function(e){return Array.isArray(e)&&this.options.rootNodeName&&this.options.rootNodeName.length>1&&(e={[this.options.rootNodeName]:e}),this.j2x(e,0).val},s.prototype.j2x=function(e,t){let n="",i="";for(let r in e)if("undefined"===typeof e[r]);else if(null===e[r])i+=this.indentate(t)+"<"+r+"/"+this.tagEndChar;else if(e[r]instanceof Date)i+=this.buildTextNode(e[r],r,"",t);else if("object"!==typeof e[r]){const o=this.isAttribute(r);o?n+=" "+o+'="'+this.options.attrValueProcessor(""+e[r])+'"':this.isCDATA(r)?e[this.options.textNodeName]?i+=this.replaceCDATAstr(e[this.options.textNodeName],e[r]):i+=this.replaceCDATAstr("",e[r]):r===this.options.textNodeName?e[this.options.cdataTagName]||(i+=this.options.tagValueProcessor(""+e[r])):i+=this.buildTextNode(e[r],r,"",t)}else if(Array.isArray(e[r]))if(this.isCDATA(r))i+=this.indentate(t),e[this.options.textNodeName]?i+=this.replaceCDATAarr(e[this.options.textNodeName],e[r]):i+=this.replaceCDATAarr("",e[r]);else{const n=e[r].length;for(let o=0;o<n;o++){const n=e[r][o];"undefined"===typeof n||(i+=null===n?this.indentate(t)+"<"+r+"/"+this.tagEndChar:"object"===typeof n?this.processTextOrObjNode(n,r,t):this.buildTextNode(n,r,"",t))}}else if(this.options.attrNodeName&&r===this.options.attrNodeName){const t=Object.keys(e[r]),i=t.length;for(let o=0;o<i;o++)n+=" "+t[o]+'="'+this.options.attrValueProcessor(""+e[r][t[o]])+'"'}else i+=this.processTextOrObjNode(e[r],r,t);return{attrStr:n,val:i}},e.exports=s},68398:function(e,t,n){"use strict";const i=function(e){return String.fromCharCode(e)},r={nilChar:i(176),missingChar:i(201),nilPremitive:i(175),missingPremitive:i(200),emptyChar:i(178),emptyValue:i(177),boundryChar:i(179),objStart:i(198),arrStart:i(204),arrayEnd:i(185)},o=[r.nilChar,r.nilPremitive,r.missingChar,r.missingPremitive,r.boundryChar,r.emptyChar,r.emptyValue,r.arrayEnd,r.objStart,r.arrStart],s=function(e,t,n){if("string"===typeof t)return e&&e[0]&&void 0!==e[0].val?a(e[0].val,t):a(e,t);{const o=void 0===(i=e)?r.missingChar:null===i?r.nilChar:!(i.child&&0===Object.keys(i.child).length&&(!i.attrsMap||0===Object.keys(i.attrsMap).length))||r.emptyChar;if(!0===o){let i="";if(Array.isArray(t)){i+=r.arrStart;const o=t[0],c=e.length;if("string"===typeof o)for(let t=0;t<c;t++){const n=a(e[t].val,o);i=u(i,n)}else for(let t=0;t<c;t++){const r=s(e[t],o,n);i=u(i,r)}i+=r.arrayEnd}else{i+=r.objStart;const o=Object.keys(t);Array.isArray(e)&&(e=e[0]);for(let r in o){const a=o[r];let c;c=!n.ignoreAttributes&&e.attrsMap&&e.attrsMap[a]?s(e.attrsMap[a],t[a],n):a===n.textNodeName?s(e.val,t[a],n):s(e.child[a],t[a],n),i=u(i,c)}}return i}return o}var i},a=function(e){switch(e){case void 0:return r.missingPremitive;case null:return r.nilPremitive;case"":return r.emptyValue;default:return e}}
1,u=function(e,t){return c(t[0])||c(e[e.length-1])||(e+=r.boundryChar),e+t},c=function(e){return-1!==o.indexOf(e)};const f=n(23543),l=n(17849).buildOptions;t.convert2nimn=function(e,t,n){return n=l(n,f.defaultOptions,f.props),s(e,t,n)}},60284:function(e,t,n){"use strict";const i=n(17849),r=function(e,t,n){const o={};if(!t.alwaysCreateTextNode&&(!e.child||i.isEmptyObject(e.child))&&(!e.attrsMap||i.isEmptyObject(e.attrsMap)))return i.isExist(e.val)?e.val:"";if(i.isExist(e.val)&&("string"!==typeof e.val||""!==e.val&&e.val!==t.cdataPositionChar)){const r=i.isTagNameInArrayMode(e.tagname,t.arrayMode,n);o[t.textNodeName]=r?[e.val]:e.val}i.merge(o,e.attrsMap,t.arrayMode);const s=Object.keys(e.child);for(let a=0;a<s.length;a++){const u=s[a];if(e.child[u]&&e.child[u].length>1){o[u]=[];for(let n in e.child[u])e.child[u].hasOwnProperty(n)&&o[u].push(r(e.child[u][n],t,u))}else{const s=r(e.child[u][0],t,u),a=!0===t.arrayMode&&"object"===typeof s||i.isTagNameInArrayMode(u,t.arrayMode,n);o[u]=a?[s]:s}}return o};t.convertToJson=r},67702:function(e,t,n){"use strict";const i=n(17849),r=n(17849).buildOptions,o=n(23543),s=function(e,t,n){let r="{";const o=Object.keys(e.child);for(let i=0;i<o.length;i++){const n=o[i];if(e.child[n]&&e.child[n].length>1){r+='"'+n+'" : [ ';for(let i in e.child[n])r+=s(e.child[n][i],t)+" , ";r=r.substr(0,r.length-1)+" ] "}else r+='"'+n+'" : '+s(e.child[n][0],t)+" ,"}return i.merge(r,e.attrsMap),i.isEmptyObject(r)?i.isExist(e.val)?e.val:"":(i.isExist(e.val)&&("string"!==typeof e.val||""!==e.val&&e.val!==t.cdataPositionChar)&&(r+='"'+t.textNodeName+'" : '+(!0!==(a=e.val)&&!1!==a&&isNaN(a)?'"'+a+'"':a)),","===r[r.length-1]&&(r=r.substr(0,r.length-2)),r+"}");var a};t.convertToJsonString=function(e,t){return(t=r(t,o.defaultOptions,o.props)).indentBy=t.indentBy||"",s(e,t,0)}},36965:function(e,t,n){"use strict";const i=n(60284),r=n(23543),o=n(23543),s=n(17849).buildOptions,a=n(78501);t.parse=function(e,t={},n){if(n){!0===n&&(n={});const t=a.validate(e,n);if(!0!==t)throw Error(t.err.msg)}t.parseTrueNumberOnly&&!1!==t.parseNodeValue&&!t.numParseOptions&&(t.numParseOptions={leadingZeros:!1});let u=s(t,o.defaultOptions,o.props);const c=r.getTraversalObj(e,u);return i.convertToJson(c,u)},t.convertTonimn=n(68398).convert2nimn,t.getTraversalObj=r.getTraversalObj,t.convertToJson=i.convertToJson,t.convertToJsonString=n(67702).convertToJsonString,t.validate=a.validate,t.j2xParser=n(70259),t.parseToNimn=function(e,n,i){return t.convertTonimn(t.getTraversalObj(e,i),n,i)}},17849:function(e,t){"use strict";const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i="["+n+"][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",r=new RegExp("^"+i+"$");t.isExist=function(e){return"undefined"!==typeof e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,n){if(t){const i=Object.keys(t),r=i.length;for(let o=0;o<r;o++)e[i[o]]="strict"===n?[t[i[o]]]:t[i[o]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.buildOptions=function(e,t,n){let i={};if(!e)return t;for(let r=0;r<n.length;r++)void 0!==e[n[r]]?i[n[r]]=e[n[r]]:i[n[r]]=t[n[r]];return i},t.isTagNameInArrayMode=function(e,t,n){return!1!==t&&(t instanceof RegExp?t.test(e):"function"===typeof t?!!t(e,n):"strict"===t)},t.isName=function(e){const t=r.exec(e);return!(null===t||"undefined"===typeof t)},t.getAllMatches=function(e,t){const n=[];let i=t.exec(e);for(;i;){const r=[];r.startIndex=t.lastIndex-i[0].length;const o=i.length;for(let e=0;e<o;e++)r.push(i[e]);n.push(r),i=t.exec(e)}return n},t.nameRegexp=i},78501:function(e,t,n){"use strict";const i=n(17849),r={allowBooleanAttributes:!1},o=["allowBooleanAttributes"];function s(e,t){const n=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const i=e.substr(n,t-n);if(t>5&&"xml"===i)return p("InvalidXml","XML declaration allowed only at the start of the document.",h(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function a(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}t.validate=function(e,t){t=i.buildOptions(t,r,o);const n=[];let c=!1,d=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let r=0;r<e.length;r++)if("<"===e[r]&&"?"===e[r+1]){if(r+=2,r=s(e,r),r.err)return r}else{if("<"!==e[r]){if(" "===e[r]||"\t"===e[r]||"\n"===e[r]||"\r"===e[r])continue;return p("InvalidChar","char '"+e[r]+"' is not expected.",h(e,r))}{let o=r;if(r++,"!"===e[r]){r=a(e,r);continue}{let v=!1;"/"===e[r]&&(v=!0,r++);let m="";for(;r<e.length&&">"!==e[r]&&" "!==e[r]&&"\t"!==e[r]&&"\n"!==e[r]&&"\r"!==e[r];r++)m+=e[r];if(m=m.trim(),"/"===m[m.length-1]&&(m=m.substring(0,m.length-1),r--),g=m,!i.isName(g)){let t;return t=0===m.trim().length?"Invalid space after '<'.":"Tag '"+m+"' is an invali
1d name.",p("InvalidTag",t,h(e,r))}const S=u(e,r);if(!1===S)return p("InvalidAttr","Attributes for '"+m+"' have open quote.",h(e,r));let y=S.value;if(r=S.index,"/"===y[y.length-1]){const n=r-y.length;y=y.substring(0,y.length-1);const i=f(y,t);if(!0!==i)return p(i.err.code,i.err.msg,h(e,n+i.err.line));c=!0}else if(v){if(!S.tagClosed)return p("InvalidTag","Closing tag '"+m+"' doesn't have proper closing.",h(e,r));if(y.trim().length>0)return p("InvalidTag","Closing tag '"+m+"' can't have attributes or invalid starting.",h(e,o));{const t=n.pop();if(m!==t.tagName){let n=h(e,t.tagStartPos);return p("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+m+"'.",h(e,o))}0==n.length&&(d=!0)}}else{const i=f(y,t);if(!0!==i)return p(i.err.code,i.err.msg,h(e,r-y.length+i.err.line));if(!0===d)return p("InvalidXml","Multiple possible root nodes found.",h(e,r));n.push({tagName:m,tagStartPos:o}),c=!0}for(r++;r<e.length;r++)if("<"===e[r]){if("!"===e[r+1]){r++,r=a(e,r);continue}if("?"!==e[r+1])break;if(r=s(e,++r),r.err)return r}else if("&"===e[r]){const t=l(e,r);if(-1==t)return p("InvalidChar","char '&' is not expected.",h(e,r));r=t}"<"===e[r]&&r--}}}var g;return c?1==n.length?p("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",h(e,n[0].tagStartPos)):!(n.length>0)||p("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):p("InvalidXml","Start tag expected.",1)};function u(e,t){let n="",i="",r=!1;for(;t<e.length;t++){if('"'===e[t]||"'"===e[t])""===i?i=e[t]:i!==e[t]||(i="");else if(">"===e[t]&&""===i){r=!0;break}n+=e[t]}return""===i&&{value:n,index:t,tagClosed:r}}const c=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function f(e,t){const n=i.getAllMatches(e,c),r={};for(let i=0;i<n.length;i++){if(0===n[i][1].length)return p("InvalidAttr","Attribute '"+n[i][2]+"' has no space in starting.",g(n[i]));if(void 0===n[i][3]&&!t.allowBooleanAttributes)return p("InvalidAttr","boolean attribute '"+n[i][2]+"' is not allowed.",g(n[i]));const e=n[i][2];if(!d(e))return p("InvalidAttr","Attribute '"+e+"' is an invalid name.",g(n[i]));if(r.hasOwnProperty(e))return p("InvalidAttr","Attribute '"+e+"' is repeated.",g(n[i]));r[e]=1}return!0}function l(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function p(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function d(e){return i.isName(e)}function h(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function g(e){return e.startIndex+e[1].length}},6468:function(e){"use strict";e.exports=function(e,t,n){this.tagname=e,this.parent=t,this.child={},this.attrsMap={},this.val=n,this.addChild=function(e){Array.isArray(this.child[e.tagname])?this.child[e.tagname].push(e):this.child[e.tagname]=[e]}}},23543:function(e,t,n){"use strict";const i=n(17849),r=n(17849).buildOptions,o=n(6468),s=n(14153);"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,i.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const a={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",numParseOptions:{hex:!0,leadingZeros:!0},tagValueProcessor:function(e,t){return e},attrValueProcessor:function(e,t){return e},stopNodes:[],alwaysCreateTextNode:!1};t.defaultOptions=a;const u=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","numParseOptions","stopNodes","alwaysCreateTextNode"];
1function c(e,t,n){return t&&(n.trimValues&&(t=t.trim()),t=l(t=n.tagValueProcessor(t,e),n.parseNodeValue,n.numParseOptions)),t}function f(e,t){if(t.ignoreNameSpace){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}function l(e,t,n){if(t&&"string"===typeof e){const t=e.trim();return"true"===t||"false"!==t&&s(e,n)}return i.isExist(e)?e:""}t.props=u;const p=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])(.*?)\\3)?","g");function d(e,t){if(!t.ignoreAttributes&&"string"===typeof e){e=e.replace(/\r?\n/g," ");const n=i.getAllMatches(e,p),r=n.length,o={};for(let e=0;e<r;e++){const i=f(n[e][1],t);i.length&&(void 0!==n[e][4]?(t.trimValues&&(n[e][4]=n[e][4].trim()),n[e][4]=t.attrValueProcessor(n[e][4],i),o[t.attributeNamePrefix+i]=l(n[e][4],t.parseAttributeValue,t.numParseOptions)):t.allowBooleanAttributes&&(o[t.attributeNamePrefix+i]=!0))}if(!Object.keys(o).length)return;if(t.attrNodeName){const e={};return e[t.attrNodeName]=o,e}return o}}function h(e,t){let n,i="";for(let r=t;r<e.length;r++){let t=e[r];if(n)t===n&&(n="");else if('"'===t||"'"===t)n=t;else{if(">"===t)return{data:i,index:r};"\t"===t&&(t=" ")}i+=t}}function g(e,t,n,i){const r=e.indexOf(t,n);if(-1===r)throw new Error(i);return r+t.length-1}t.getTraversalObj=function(e,t){e=e.replace(/\r\n?/g,"\n"),t=r(t,a,u);const n=new o("!xml");let s=n,f="";for(let r=0;r<e.length;r++){if("<"===e[r])if("/"===e[r+1]){const n=g(e,">",r,"Closing Tag is not closed.");let o=e.substring(r+2,n).trim();if(t.ignoreNameSpace){const e=o.indexOf(":");-1!==e&&(o=o.substr(e+1))}s&&(s.val?s.val=i.getValue(s.val)+""+c(o,f,t):s.val=c(o,f,t)),t.stopNodes.length&&t.stopNodes.includes(s.tagname)&&(s.child=[],void 0==s.attrsMap&&(s.attrsMap={}),s.val=e.substr(s.startIndex+1,r-s.startIndex-1)),s=s.parent,f="",r=n}else if("?"===e[r+1])r=g(e,"?>",r,"Pi Tag is not closed.");else if("!--"===e.substr(r+1,3))r=g(e,"--\x3e",r,"Comment is not closed.");else if("!D"===e.substr(r+1,2)){const t=g(e,">",r,"DOCTYPE is not closed.");r=e.substring(r,t).indexOf("[")>=0?e.indexOf("]>",r)+1:t}else if("!["===e.substr(r+1,2)){const n=g(e,"]]>",r,"CDATA is not closed.")-2,a=e.substring(r+9,n);if(f&&(s.val=i.getValue(s.val)+""+c(s.tagname,f,t),f=""),t.cdataTagName){const e=new o(t.cdataTagName,s,a);s.addChild(e),s.val=i.getValue(s.val)+t.cdataPositionChar,a&&(e.val=a)}else s.val=(s.val||"")+(a||"");r=n+2}else{const n=h(e,r+1);let a=n.data;const u=n.index,l=a.indexOf(" ");let p=a,g=!0;if(-1!==l&&(p=a.substr(0,l).replace(/\s\s*$/,""),a=a.substr(l+1)),t.ignoreNameSpace){const e=p.indexOf(":");-1!==e&&(p=p.substr(e+1),g=p!==n.data.substr(e+1))}if(s&&f&&"!xml"!==s.tagname&&(s.val=i.getValue(s.val)+""+c(s.tagname,f,t)),a.length>0&&a.lastIndexOf("/")===a.length-1){"/"===p[p.length-1]?(p=p.substr(0,p.length-1),a=p):a=a.substr(0,a.length-1);const e=new o(p,s,"");p!==a&&(e.attrsMap=d(a,t)),s.addChild(e)}else{const e=new o(p,s);t.stopNodes.length&&t.stopNodes.includes(e.tagname)&&(e.startIndex=u),p!==a&&g&&(e.attrsMap=d(a,t)),s.addChild(e),s=e}f="",r=u}else f+=e[r]}return n}},14153:function(e){const t=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const i={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(e,r={}){if(r=Object.assign({},i,r),!e||"string"!==typeof e)return e;let o=e.trim();if(void 0!==r.skipLike&&r.skipLike.test(o))return e;if(r.hex&&t.test(o))return Number.parseInt(o,16);{const t=n.exec(o);if(t){const n=t[1],i=t[2];let s=function(e){if(e&&-1!==e.indexOf("."))return"."===(e=e.replace(/0+$/,""))?e="0":"."===e[0]?e="0"+e:"."===e[e.length-1]&&(e=e.substr(0,e.length-1)),e;return e}(t[3]);const a=t[4]||t[6];if(!r.leadingZeros&&i.length>0&&n&&"."!==o[2])return e;if(!r.leadingZeros&&i.length>0&&!n&&"."!==o[1])return e;{const t=Number(o),u=""+t;return-1!==u.search(/[eE]/)||a?r.eNotation?t:e:-1!==o.indexOf(".")?"0"===u&&""===s||u===s||n&&u==="-"+s?t:e:i?s===u||n+s===u?t:e:o===u||o===n+u?t:e}}return e}}},57507:function(e,t,n){"use strict";n.d(t,{ZT:function(){return r},pi:function(){return o},mG:function(){return s},Jh:function(){return a}});
1var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};function s(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((i=i.apply(e,t||[])).next())}))}function a(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,i=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){s.label=a[1];break}if(6===a[0]&&s.label<r[1]){s.label=r[1],r=a;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(a);break}r[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(u){a=[6,u],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.